skysight-inc/HackerNews huggingface dataset:
It can be done, but it is tricky, especially if you have to report capital gains as FIFO. The documentation is in ledger is misleading/wrong (or was the last time I looked). I have been meaning to write a blog post on this topic for ages (a year???).

Warning: This may be wrong. I just grabbed it randomly out of a test file I was using to try this out and I don't have time to verify it. However, I think it will put you on the right track even if it is wrong (also not sure how to get it formatted correctly here). Anyway this is the kind of thing you have to do:

2014/09/04 Exchange Currency
; Note that the next line generates 20 GBP, not 10 GBP as you might expect
; This is so that the excess is captured by the capital gains account at the bottom
; Also note that the @ 0.50 GBP is not actually used by ledger in this case
; You could put @ 5000 GBP and it would do the same thing. The rate is
; determined by the lot price.
Assets:CDN -20.00 CDN {1.00 GBP} @ 0.50 GBP
; It is unfortunate that you can't get ledger to calculate or assert the next value
Assets:GBP 10.00 GBP ; Proceeds without commission
Expenses:Commissions 0.20 GBP
Assets:GBP -0.20 GBP ; Balance the commission
Income:Capital Gains

The main things you have to understand are that you need to specify the lot price in the transaction. Second, you must specify the price of the transaction. The P line is only used for calculating current value -- it will not set the price of the transaction correctly (if you don't specify it, I think it sets it to whatever the P line is set to when you run the report, which is clearly wrong). Also, you have to calculate either the total proceeds for the balancing account or the capital gains. Also, very unfortunately, with this scheme you can not use the @@ method of specifying the price. I do the math and calculate the result and let ledger calculate capital gains, because that seems the most reasonable thing to do. Some people feel very strongly that a human should calculate the capital gains by hand and enter that value. Either way should work.

Hopefully the above should unstick you. If you are using average method for capital gains, it is dramatically simpler, but I don't have an example handy.

Printing reports with the lot prices is incredibly useful as the lots should balance out to zero. If they do not, then you have an error somewhere (and boy does that suck). It's also very frustrating when doing FIFO or LIFO that you constantly need to run the report to show you how much you have left in each lot, and then go and figure out which lots are the next ones to use. I think this can be automated, but I haven't gotten around to doing it.
This may blow your mind, but I code in 40 columns. By choice. It's amazing.
Can I talk to someone not on my seed server?
> Even with these rough numbers it’s hard to see how anyone living any distance from the Equator is going to be able to justify the cost of installing enough batteries to go off-grid with a domestic rooftop solar PV installation.

If you go off grid on purely solar your backup is not a battery, your backup is a genset.

It's a nonsense proposition leading to nonsense conclusions based on nonsense numbers. Very tiring.
Why is that? Just a personal observation, but I only actually started to understand programming my junior year of college and would find myself to be pretty technically proficient, and I know plenty of terrific developers who started of programming after a career in something completely unrelated (selling phones, painting, vet school).

Yeah it's hard to start learning how to program and become efficient at it, but there is no reason that we can't attack the issue at later stages in the pipeline.
Ah, so tempting - putting the device drivers in the kernel. After all, how else would you start up?

The QNX solution to this is that drivers are always user processes, but you can put additional programs in the boot image which start at boot. That's how the first drivers get started. This is valuable for embedded systems, which may not have a keyboard, screen, or disk drive, but may have other ways to get info to someplace useful.
Adventures in debugging: etcd, HTTP pipelining, and file descriptor leaks
Airtame looking for alpha testers of early release software
How to learn LaTex quickly (good enough to create an awesome looking resume)?
Just let it drift, yes, I assume.

Then maybe in a few thousand years when we're a full hour out we can think about having a leap hour.

Abolishing leap years, on the other hand, would cause the calendar to shift relative to the seasons by a notable amount during your lifetime.
I challenge that it has been successful. Many people have been slain in the name of christ.
Not sure why you were downvoted. I assume you mean you didn't know that it was illegal to be under the influence of drugs, as opposed to it being illegal to have drugs in your possession?
How Eye Tracking Will TOTALLY Change the Way You Game
Interesting, I wasn't aware of it.
"René would never have experienced such a career in France," said Benoît Chantre, president of Paris' Association Recherches Mimétiques, one of the organizations that have formed around Girard's work. "Such a free work could indeed only appear in America ".

Yeah, who really believes that ?
Url changed from https://github.com/amplab/tachyon, which points to this, which seems like a better starting place.
You say it like there's a choice.
If that's what you too from the article then you're right 'pure solar' is impractical (anywhere). You always need a battery and you always need some kind of backup.

But if you're going to think like that grid power is also impractical anywhere, since it too could fail. Power is so important that no single source should be relied on anywhere. In inner cities of course your only chance of getting power is the local electricity company hookup, but if that should fail for any extended period of time such a city would rapidly become a place where you could no longer live, especially at latitudes where it tends to get very cold in the winter.

So, nobody (in their right mind, at least) will do a 'pure' photovoltaic system. There will always be some kind of backup-power mechanism, either the grid, a wind-turbine, a battery to tide you over, a pelton wheel fed from a stream, grid power or any combination of the above.
Yes, that. Use or influence as opposed to possession/distribution.

edit: And as for downvotes, I'd say the "going just by the title" part is a bit offensive :)
While I'll certainly agree that the rate is variable, the underlying mechanism seems fundamental to how trade/markets/capitalism function. Perhaps my definition of 'environment' is wonky.
You'd do the same in cash accounting. Otherwise you're recording wrong values, as compared to the actual account statements. Double entry means balancing active and passive sides for all activities, asset and debt. When you buy a laptop with a credit card, you add (for example - the details depend on legal requirements, how much detail you want to capture etc) an entry with 1000 on the passive side, in the cc account, 500 on the active side (asset it's not worth what you paid for it any more) and 500 under depreciaton. Then when you pay the bill, you reduce the cc account and the checking account. Each of these operations individually are balanced, ie they sum to 0.
And I'm sure we can keep that formula updated.
I don't like having batteries in-house for a very simple reason: if the pack should ever catch fire it will put a whole pile of noxious fumes out. So yes, you could keep your lithium batteries in the space where you live because they don't gas out. But pack-failures are not all that uncommon.
Yes and no.

Alcohol is legal in most countries and is widely consumed, certainly much more so than it would be if it were illegal. It can be very addictive, and it an be very destructive, like many drugs which are currently illegal.

I agree use of drugs would probably increase overall, but that society can adapt without collapse. Many people take illegal drugs now from time to time, and are able to function and live normally, have jobs, and not have their world implode.
That's potentially true unfortunately, largely due to opening of the Northwest Passage: https://en.wikipedia.org/wiki/Northwest_Passage
I've seen this a lot with our junior developers who are just out of college. My take on it is that the oversharing generation is encouraged to "put something out there" and make it sound authoritative. Then it is discussed and either supported or shouted down.

Unfortunately the blog posts stick around for a lot longer than they ought to, making it very hard for Googling newbies to decide whether they can trust the advice or not.

Reminds me of the old adage "the more you know, the less you know". Works in reverse!
Chinese rule Asia but Indians rule the world
http://blogs.blackberry.com/2015/11/managing-android-securit...

a bit full of themselves but it seems that they will follow the security updates.
I mean that balance report had 0 total. More precisely, I want to convert everything to a single currency, and than have 0 balance. I.g. I want to check my net worth in USD, or my net worth in EUR. To see capital gains/losses.
Huh? Terrible analogy, he didnt die because of his theories or for being a "charlatan"
This book is very short, up and to the point. Provided you don't stop at the symbolic language that is only clarified a bit late into the book.
Australia Deploys Sheepdogs to Save a Penguin Colony
It's actually explained in the post. To sum it up, this seems to be less rigid and doesn't come with a lot of expectations about your project/structure, which is nice.

However, I still think it's better to design a custom solution tailored to your very individual needs.
In the first article you point to, Thiel says that:

> Economics will tell you that competition dilutes profits, and that’s one big reason to question it.

Hmm, actually, no and no. Economics don't tell you that competition dilutes profits, it tells you that competition drives down prices until profits are zero, which isn't the same thing.

And it also tells you that low prices are good, not bad; only companies care about "profits", but the public at large benefits not from profits but from low prices. Walmart is the best thing that ever happened to the US, economy-wise.

Didn't know that Peter Thiel was an admirer of René Girard, but since he's also a disciple of Ayn Rand, I guess it makes sense (in that he revels in big empty bullshit).
Isn't that the whole point? If legalization goes through and the crime is only localized to the U.S., then Mexico's supreme court reduced crime in Mexico.
I'd agree, I was just pointing out the basis that the author was coming from which was the reason why he was considering seasonal variations in battery calculations.

With that said, from reading some articles about off-grid living, it's not outwith the bounds of possibility that people are looking at pure solar (or pure renewable anyway) off-grid living, for priniple-based reasons , rather than a more pragmatic rationale.
I meant to say if women are especially penalized in an unfair way that hinders them from other basic stuff like career and community. Of course people are free to dislike abrasive styles of talking. But combined with gender discrimination, it becomes a problem. I don't think men should be excessively punished for cursing either, but they generally aren't (in secular societies).
I probably would have never started smoking pot if there wasn't that edgy/cool/illegal vibe to it. Once pot is legal, the stigma around recreational use will probably turn into something like drinking cough syrup for the DXM.
What's so striking is the high percentage of family-owned large companies in emerging economies. Arguably, this is also happening in the US, with two-tier stock schemes keeping founders in control. 80 people now own half the world's net worth. Here's the list.[1] The 20th century was the century of the big, publicly held corporation. The 21st century may be the century of the oligarch.

This is new. Only four years ago, it was 388 people, not just 80.

The top 10:

1 Bill Gates	$76B	USA	Tech

2	Carlos Slim	$72B	Mexico	Telecom

3	Amancio Ortega	$64B	Spain	Retail

4	Warren Buffett	$58B	USA	Finance

5	Larry Ellison	$48B	USA	Tech

6	Charles Koch	$40B	USA	Diversified

7	David Koch	$40B	USA	Diversified

8	Sheldon Adelson	$38B	USA	Entertainment

9	Christy Walton	$37B	USA	Retail

10	Jim Walton $35B	USA	Retail

In the 1960s, there was one billionaire in the world - John Paul Getty, of Getty Oil. We've come a long way.

[1] http://fivethirtyeight.com/datalab/meet-the-80-people-who-ar...
Basecamp 3 Will Change the Way You Think About Work–Again
Hawkins' mantra is sequence based memory. I love this guy and his work. And although I think his company has had success with sequence based AI, it still doesn't totally answer how the brain works. His model basically works by taking encoded symbols and being able to predict the next encoded symbol. This works great for things with patterns (power consumption, traffic patterns, etc), but it doesn't work with language. You will not be able to predict what I am going to say, or predict my answer based on the question, at least not very well. The problem is that he needs to figure out meta computation. His product, nupic, would take in a string of words, which gets encoded into a semantic representation, and tries to predict what's next. But concepts are larger than a single word, and until it can build a working semantic representation of what it's currently processing, it will not prove to be a useful model in describing how the brain works, or at least being able to compare it to our brain.
Well, representatives and the documentation from the TV Licensing authority themselves that they provided me with would seem to disagree with you.

A lengthy correspondence with them led them to conclude that because my TV was not connected to a TV aerial or cable, and I only used it to watch Netflix and iPlayer from my computer, I did not in fact need a TV license.

I've been through this dance with them three or four times.
the link is empty. What were you trying to show me?
Ok just tried it and it's not great for all occasions.

Ex. i have a dir with 2 million files with an avg size of about 3 kilobytes.

ls -f /data/ | wc -l
2183060

So I try to find a pattern:

time find "/data/" -name "*txt" -type f -print0 | LC_ALL=C xargs -0 -P 6 -n 40 fgrep -iq "let the right one in"

real	0m3.755s
user	0m3.085s
sys	0m17.764s

Then try sift with same command:

time find "/data/" -name "*txt" -type f -print0 | LC_ALL=C xargs -0 -P 6 -n 40 sift -iq "let the right one in

real	0m35.956s
user	0m55.170s
sys	3m32.120s

Or try sift by itself:

time sift -rq --files="*txt" "let the right one in" /data/

And it is:

real	0m9.298s
user	0m29.620s
sys	0m12.371s

Sticking with grep for now.
Oculus Live Coding Session with John Carmack
You noticed that "things hidden since the creation of the world" is a quote from the Gospel, right? (Matthew, chapter 13, verse 35.) And that Girard's point is to show that the Gospel tries its best to uncover the scapegoating phenomenon?
This is a simple html5 angular.js app for freelance programmers. It can do basic client/project management, payment management with currency conversion, time tracking, has notifiers for reddit and hackernews that can watch for new comments and posts appearing in subreddits or a hacker news thread or even watch multiple message inboxes for reddit, provision for adding encrypted notes to projects. All the data is stored in browsers localstorage.
What I also don't like is that its python.
Nothing against python, however it's really aweful that I need to somehow distribute that files either via tar.gz, unpack install the requirements, etc..
I think a static binary would've been way better, ie. rust, golang, c, c++. even a simple *.jar file would've been better, however that comes with another cost.
So do you cook with gas then?
lol, I can't believe we're still having this conversation. Let me guess, someone has already pointed out Portugal? Or any of the ~dozen other places where legalization or decriminalization has lead to decreased usage. Both in the US and elsewhere.
Google’s Inbox by Gmail ‘Smart Reply’ Lets AI Reply to Your Emails
Beautiful story. Not very relative to HN I think, but it's good to see the world throught other points of view, sometimes.

Thanks for this post.
How to use 5 emails to automate converting trial users to customers
I'm sorry if this was ambiguous. The analogy isn't about death or how one dies, it's about what's "proper" and what isn't.

People will always try to silence dissenting opinions by arguing it's not the proper time to voice them, that one should wait a while... until we have changed subjects and whatever you had to say can't even be heard anymore, that is.

We shouldn't care about "proper"; the death of an author is an excellent opportunity to discuss his work, for and against, just as the effect of a policy is an excellent time to discuss the policy itself.
Ufs explorer professional recovery portable
Adobe Audition CS6 Crack Serial Number
Only if they don't care about their lives. Look, I've lived off the grid for a number of years. 99% of the time things work just fine and all your plans come out. And then, in the middle of January there is a 9 day spell without wind and solar and you're going to have to fire up the genset. Tough, but preferable over having all your waterlines freeze due to 'principles'. Principles are nice to have but when you go off-grid out of principle the one principle you don't want to throw overboard is reliability and a good generator is worth gold when everything else you carefully planned out fails. If there is one thing that you can predict about the weather then it is that it is unpredictable.
"I helped a little with the technical concept"

"Hold the smartphone firmly in your hands"

Seriously?!

Why didn't you help more?
I think every starting Go coder snorts in disgust and writes their own logging lib. Then as they get wiser and more experienced in the "Go way" they take another look at the std lib and start to realise the inherent wisdom of the log package. Finally they throw away their over-featured logging lib and refactor everything back to the vanilla log. It's like a zen progression of understanding or something
You act like prop F was a national proposition or somehow international, this was just one city. Even if prop F passed it would not bring airbnb down as they operate in 34k+ cities around the world. Expedia is also targeting the int'l market. I doubt they would reconsider just over SF.
Leap years run into a similar issue that the ratio of days to years is changing as well. Our current algorithm will eventually be off. No one cares because the people doing time standards will be long dead.

And arguably the situation is similar for leap seconds as well. No one cares because of how far out substantial drift is. By the time it adds up to an hour, people will be used to it, or just shift their timezones (which happens all the time).
Show HN: WeChat-like QRCode reader, drop-in version
GoScreen
> it's an equivalent set of principles to what you would do in C++ to keep your pointers safe.

The things you can prove statically with the borrow checker are a subset of the things that wont trigger UB in C++.
Fourth, a 16-year-old Hacker, Arrested Over TalkTalk Hack
Wow that is great that you were 70% solar in North Canada. Yes I've heard that panels can output actually more than their rated capacity when sunny & cold.

I think the big problem people have with going PV, is that there isn't a good manual on how to go solar. & much of it is changing and improving as we speak.
That is a video
For me he is the champion of "people mimic stuff and people". Since I agree that it is human nature to do so he's also part of my foundation of favoring FLOSS software and being opposed to software patents (or limits on the ability to mimic things in general).
Clicking a name votes on it, right? That was not obvious.
Do you use a gas fridge and stove?
>"Moreover, our analysis suggests that rising labor costs could reduce profits by a further $800 billion."

Outrageous ! So you are saying we need to give the peasants MORE money ?? How am I supposed to live !
YNAB is double-entry but not the way you would normally do it (note, I have no idea how it is implemented under the hood, I'm just referring to how I explain YNAB's system to myself). YNAB essentially puts your accounts (assets and liabilities) on one side of the balance sheet and the budgets on the other. It is double-entry in the sense that every transaction is either between two accounts, or between an account and a category (a budget account), so there are two sides to every transaction.

However, in "normal" double-entry accounting, you would not have assets and liabilities on the same side of the balance sheet, and the way YNAB does this leads to some strange behavior. For example, if your net wealth (assets and liabilities) is negative, you need a negative budget ("pre-YNAB debt"). So now you have in your budget both money you plan to spend on actual expenses, and debt.

You could, in principle, design a YNAB-like double-entry accounting system where your assets balance against equity and debt, and where the money that is "available to budget" matches the actual money you have available, regardless of whether that money originates from equity or debt. That would be closer to the normal understanding of double-entry accounting.
Overall I think it's good that we now have a pretty direct way to pay upfront for increased convenience of faster delivery time. This value is akin to the (opportunity) cost of actually going out to physically buy something if you want/need it almost immediately but starting to increase the market of goods beyond just that you can get in local shops.

Minor niggle: They mention the Amazon Prime Now $8 fee for one hour delivery but neglect to mention there is no additional fee for delivery within only two hours. There is of course the recommended "tip" which sits at around 10%, but for a fairer comparison with the other mentioned services generally providing delivery within a day, I think the free option within two hours is more comparable.
Google screws up cables as well. My Chromecast (V1) came with a dud cable that will provide some charge to some devices, but won't power or charge anything I've tried it on. So my Chromecast is now powered courtesy of Lenovo.

It's a statistic though, just as anything mass-produced. But I found his comment on the quality of 3rd party manufactured cables vs Google and Apple slightly amusing. Apple cables in my household and everywhere I've come across them are no prize pigs. Samsung Galaxy provided cables on the other hand have proved to be exceptionally durable in my experience. Nokia cables and chargers also seem to be made out of solid Kevlar or some flexible Titanium, seeing that every single one I've owned since the late '90s is still working. My blue LED modded Nokia 3310 is still going strong, battery and all, but that's another story.
I get Marina Bay as a background and I'm not in Asia.
TinyOwl’s hostage crisis
I've used ledger for years, but it's not a 'real' double entry system, despite what the manual says. It's more halfway between cash and double entry. The 'auto balancing' for example, which is sold as its big feature, doesn't make sense from a double accounting perspective - the whole point is to not have it be 'auto'. Other basic things are missing - the difference balance and profit/loss accounts, for example. It's fine for personal and small business accounting, but if you've had training in real accounting some things will be confusing (because of terms meaning something else) and don't expect your accountant to be able to work with your reports if you haven't set up your system in cooperation with him/her.