skysight-inc/HackerNews huggingface dataset:
Ask HN: Do you do any mental exercise before work?
It is well known that musicians or athletes do warm up exercises to prepare themselves for a performance. Is it common to perform any mental exercises to boost up your productivity? What's your routine to get into the best shape of mind possible?
That's not true, you can write a basic app with a UI entirely in JS. I have done this to have control over some home automation bits and bobs.
Everyone has noticed. This cannot be solved overnight and rolled out to the entire planet. Stop beating this dead horse.
Actually I wouldn't want to see a crypto library in Haskell - crypto is quite special in that there is a requirement of deterministic timing, to prevent leaking secrets via timing attacks, which is rather impossible to guarantee in a high-level language, especially with a "smart" compiler like GHC that may optimize in non-obvious ways.

Hence it could actually be most secure to implement cryptographic primitives in assembler, however counter-intuitive that may sound.

(Also, how do you erase or overwrite secrets from memory after use in a purely functional language?)
Frankly speaking, I think you need to throw some more light on the 'service' you are talking about. As an entrepreneur and/or a probable customer, I want to understand what your service/offering is and how it will help me mitigate the risks associated with my venture or help me overcome the fear of failing.
Minute: Productive Meetings, Together!
Minute is the complete iPad app for preparing, sharing and running successful and productive meetings. You can run any meeting anywhere, any time on your iPad and everyone works on the same materials at the same time!
A longer quote rather puts the "scum of the Earth" thing in context:

A French army is composed very differently from ours. The conscription calls out a share of every class — no matter whether your son or my son — all must march; but our friends — I may say it in this room — are the very scum of the earth. People talk of their enlisting from their fine military feeling — all stuff — no such thing. Some of our men enlist from having got bastard children — some for minor offences — many more for drink; but you can hardly conceive such a set brought together, and it really is wonderful that we should have made them the fine fellows they are.
I don't think this is a valid test case, as far as I understand, //go:generate works like "preprocessor directive".

Maybe I can agree that // prefix is a bad choice, as coming from C world I would prefer #
The Year in Management, Told in 20 Charts
AFAIK The reactive part is not that easy to with Mysql et al - sure, you can hack around stored procedures, UDF and such, but it's far from being elegant. If you "think in SQL", then of course nosql seems to make everything difficult, but in reality, you're just taking back some of the logic and heavy lifting from the DB server in exchange for more freedom/scalability, which may or may not be something you want.
IMAP is a terrible protocol. It's a poorly designed filesystem with all the baggage that comes with it. Read the IMAP overview in the IMAP ruby module -- it's disgusting and was never meant for the modern world.

http://rxr.whitequark.org/mri/source/lib/net/imap.rb
We download the book. If the pdf is in parts, we will use pdftk etc to join it into one document. We will then move it to a relevant spot in a well organized folder hierarchy, renaming it for consistency if necessary. Then we never open it again.
Tech in Boston Podcast: Bettina Hein – Founder and CEO, Pixability
Succeeding outside Silicon Valley isn't a major feat. More people have done that than have succeeded inside Silicon Valley.

Now, mostly, although not exclusively, they have done this in other large urban areas - New York, London, Boston, etc. Succeeding outside one of those, in a rural area with no historical track record in technology, though, is something of a feat.
Then don't use C++. There's a tool for every need. I wouldn't use C++ either if there was an option for cross-platform, high performance, non-garbage collected way to program highly interactive VR -applications. There simply isn't, so I must use C++ and learn it.

But got to say, my experiences with learning C++11 has changed how I view C++, it's much more robust and nice environment than what I thought, the new C++11 and C++14 really bring some nice things to the table.
Light-emitting e-readers before bedtime can adversely impact sleep
Wireloss: North Korea
The request for contact would be just as bad as the spam itself...
How will the cyber-attack on Sony affect History?
For commuters, may be that's all there is to it. If I want to go out on a trip with my little one, I'd rather have a bunch of her favorite things in the car (without me having to lug it around every time), and have the convenience of not having to drive, which also makes it much easier to keep her entertained. I'm hoping she'd grow up by the time these are generally available, but I'm sure there are others reasons to own one.
I thought you meant by viewing source and using web inspectors to learn javascript and I thought yes that's a great way to learn how things work... Otherwise, Mozilla provides good reference materials. I think you need to just build something now to figure it out. - you have to learn it from solving problems. Pick a problem and solve it.
The Year’s Worst Hacks, from Sony to Celebrity Nude Pics
Not entirely true; many of the concepts from Linda (Jini/Javaspaces) are around in the form of KV stores.
Well 1968 happened, I would expect there to be massive demonstrations as there have been in the past on much smaller issues.
CIA analyst at the center of torture report is outed
Who is your target customer?
Pull down menu
I would hope that it's possible to implement a memory allocator or garbage collector in Rust (given that it's marketed as a system programming language), and you definitely need something like "unsafe" for that.
How Possibilities of Life Elsewhere Might Alter Held Notions of Faith
Could you elaborate on that? I'm pretty sure you mean something more sophisticated than a key-value store, which is about as old and dead simple a concept as we have.
Essentially every country with a Muslim majority is an "Islamic state". Hence the title could mislead some.
I'm glad someone brought this up. (I'm the author of the FastCo piece.)

I wasn't sure if Samsung's claim of 1,000 apps included watchfaces, so I went through the Galaxy store and counted them by hand. The results (sections may be off by a few numbers as I was counting kind of quickly):

108 clocks
11 health
21 finance
211 lifestyle
17 social networking
129 entertainment
171 utilities
TOTAL = 668
Note that the actual number is lower, since several apps were repeated across multiple sections and I didn't subtract them from the total.

So, Samsung does include watch faces, but the ratio of apps:faces is much greater. As for the actual number not being 1,000 apps, I'm guessing Samsung is counting apps for different languages that wouldn't appear in the US store. I wasn't sure whether to get into this level of hair-splitting in the piece, but ultimately figured I could get into it more if someone brought it up.

Anyway, I wouldn't really discount the importance of watch faces, especially on Pebble since they're key to customizing the look of your device. And I think they'll get more useful with time; Jawbone's app is technically a watch face, for instance, and some faces can display the weather, battery and calendars.

I agree that bragging about app count stops being instructive at some point, but in this case I think they show Pebble has done a fine job of establishing itself.

Thanks for reading!
Wherever the code refers to a variable or function, the compiler only allows this if it has previously seen a declaration for that variable or function—the declaration is a promise that a definition exists somewhere else in the whole program.

The notable exception here is implicitly declared functions, but they were dropped in C99 anyway.
The "School of the Americas" a US military training facility for middle and south american militaries has been known for training some of worst human rights violators in the region. So it is not like the US government is new to the idea of creating monsters.
Redis easily creates millions of dollars in value, but antirez doesn't get to capture any of it. A 6 figure sponsorship is a drop in the bucket of what antirez should be earning.
Is the elevator pitch game actually scored? Are there right and wrong answers?
JS objects don't have the same property, whatever order you see from iterating JS objects is only a side effect of the standard hidden class optimization, not because there was intention of having a certain order. In fact if you mix integer keys (which are represented differently) you will not get the "expected" iteration order:

var o = {
key: 3,
1: 4,
value: 10,
0: 2
};
Object.keys(o)
["0", "1", "key", "value"]

If iteration order was specified you couldn't do those optimizations, note how even PHP7 is still paying a lot for the iteration order: the 100k element array only takes roughly 25% of the memory in JavaScript. And what is it even for? How often do you even need to iterate integer keys in insertion order over value order?
Which the US does not submit to.
You can build more space from local materials.

Also excursions, though you need a space suit.
I agree with your point, it's definitely not simple. That's why it's probably not fitted for a lot of projects (IMHO, you need inherent complexity in your project to make it profitable).
Among other reasons: setting different passwords for different staging levels or databases reduces the chances of accidentally shooting yourself in the foot.

"Oh, our staging code references the prod DB password. Wups!"

Passwords can also be changed and rotated with some frequency, though that's more often observed in the breech.

Preferably not the data breech.
Epigram 119, Programming is an unatural act, is undoubtedly a double entendre [1] playing on the common lay use of 'unnatural acts' as a term for sexual practices which might be deemed a 'crime against nature' [2] by a person of less libertine views. A rough equivalent: Programming can get a programmer off more satisfactorily than the missionary position.

As an aside, the list at Yale does not contain Epigrams 121~130.

Note: Footnotes are to help non-native English speakers

[1] https://en.m.wikipedia.org/wiki/Double_entendre

[2] https://en.m.wikipedia.org/wiki/Unnatural_act
Being stable for five years rather than still being under development can be seen as a feature. It is a strong selling point of Go, actually : solving actual problems rather than making a perfect language. It's a perfect example of Stroustrup's quote about languages everybody hates vs languages nobody uses.
FBI Cyber Careers
Wow this is a really interesting style of navigation. I honestly have never seen this befor, well done!

I really like how smooth transitions are. Also, the action of dragging down to match your menu item is very "fun" for the user. Overall a wonderful UI to use.

Are you planning on using this for a project or just playing around?
P.S. I was admiring your pen before you put it up on HN, small world!
Hey, what ones are there? could you tell me and I will change it?
No it isn't (eg turkey, albania, etc etc etc.). IS is meant for a radical islamist group that wants to establish a theocratic state.
Would anyone like to comment how these are implemented in Hack?
Good comments about the details of the protocol. But I'm wondering why nobody found anything to comment about it on higher level than the crypto? We all know(?) that Tor and multihop data passing isn't efficient way to implement 'anonymity' for distributed file sharing.

For that particular reason I was personally amazed that they did select Tor as example. Tor wastes a lot of bandwidth as well as allows easy traffic correllation attacks in the cases where that's generally feasible. I really loved Freenet and GNUnet designs, because those use really efficient caching, partitioning, routing compared to Tor. At least in theory anonymous downloads could be even faster than when using non-anonymous downloads, due to improved efficiency of the network resource utilization due to distribution and caching. When Tor is used as base, all these benefits are lost and in addition there will be huge bandwidth overhead causing about 600% slowdown.

Does anyone agree with me? I was almost sure that someone would immediately comment this aspect, but as far as I can see, nobody has noticed these facts(?) yet.
Japanese workers are known for exercising before work to focus
Probably both, but autopilot can't "shake off" turbulence

However, it can fly more direct routes and do smoother curves.

I remember the last time I felt really bad was in an AA Super-80, doing a lot of curves to reach an airport.

Bigger planes (737s/A320) were not so bad
Yeah im thinking eventually that would be good, but im not entirely sure about the best way to do it, I will for sure take a look into it though.

Thanks for the feedback :)
What Lies Below at the South Pole
I'm with you. I had a friend that had cats. His home smelled. I had to get all the hair off myself when I went home. And the cats didn't seem to like the owners.

I know there are lots of cat lovers out there but I confess I just don't get it. Thankfully it's a completely voluntary thing - the owning of cats.
A metaphor of the tragedy of the commons. Try to draw something and it's quite quickly overwritten by some wild person just spinning the cursor.
I'm surprised that people actually like make and autotools.
Some caveats on that Saez wealth-inequality chart:

First, of course, is that it's missing almost 10% of the households and 50% of the wealth.

Second, what a typical "household" in the U.S. is has changed substantially since the halcyon days of 1979. They're smaller, and they have more old people and fewer young people[1]. Unsurprisingly, wealth disparities are amplified with age: A young doctor loaded with debt is probably much poorer in "real" net worth terms than his groundskeeper neighbor. But as an old doctor he will be much wealthier. Similar math applies as households are increasingly headed by singles as opposed to couples. Regardless of whether society is getting more or less equitable in "wealth distribution" for the average Joe, these demographic changes would show up as movement in this chart.

Third, I suspect that Saez did not account for the value (admittedly subject to the whims of Congress) of entitlement programs such as Social Security and Medicare. Their political stability is at least as reliable as the stock market, and again, as society ages, more usable "wealth" is tied to them.

Finally, a massively lower interest rate environment (look up rates in the '70's!) makes it much more attractive for the bottom 90% to use credit for day-to-day living rather than keeping large cash buffers around. The same logic applies on a grander scale with housing and education: Even post-financial crisis, the "90%" can afford to leverage themselves much more dramatically than in 1979. That's more debt and lower wealth today, but presuming they can deleverage over time (as households did post '08), there's no reason to assume it must be a deep problem of inequality.

[1] http://web.stanford.edu/group/siepr/cgi-bin/siepr/?q=system/...
> In the latter case, it would have been fairly easy to reason that the interests of the human (seeing a monkey in a zoo) are in no way vital and cannot establish a right

That's a rather poor argument because it is non-specific. By that argument I can not own a potato either because there is no vital need for me to do so.
Remember, we're talking about the outliers here, the tail end of the distribution founding billion dollar companies. Here's a thought experiment. Take two normally distributed populations with the same mean. But one of them has a slightly higher standard deviation. How much higher does the standard deviation need to be before the combined population tails (at both ends) are dominated by the population with the higher standard deviation?

You see men don't even necessarily need to have inherent (biological or social) advantages over women... they may just be more erratic and have a higher spread, and bam, they're producing both more serial killers and more geniuses. You can speculate as to why they might have a higher st. dev, but I think it is an interesting line of thought.
Your UI is err, pixelated ;)
He said that many times throughout the war. At a formal settings obvious he'll say it a little nicer. British soldiers get paid only one shilling per day and are constantly short on supply and had to plunder to survive. There is even a book on why soldiers are not 'scum of the Earth'

http://www.amazon.com/All-Kings-Shilling-Wellington-Commande...
I agree with you it's a bit misleading - they do make it seem like "home cooked food" inherently has less calories when it obviously doesn't.

I think the real point they were trying to make was that when you are actually cooking your food, you are more conscious of what you're eating and therefore more likely to choose lower calorie/healthier options.

However, I am not sure I really agree with them. I can make a giant plate of spaghetti at home or eat several peanut butter sandwiches really easily - burning through 2000 calories without paying attention. And since some restaurants have calorie counts on their meals anyway - it's pretty easy for me to choose that if I want to be on a diet.
Khalid ibn al-Walid

Some others, often overlooked from a Western viewpoint, would be Subutai, Timur the Lame (Tamerlane), Belisarius, Zhukov, and Suleiman I. There are more.

Arguably Marius and Sulla were the equal, if not better than, Caesar. And Pompey was no slouch either. And another great Roman general was Scipio.

Some more modern generals not mentioned are Fredrick the Great and Gustavus Adolphus, plus Rommel.
It's only scored for the startups themselves ( hi-score list on frontpage )
Yes the degree gets less relevant, but there are companies who will require a degree to get above a certain level. These are probably larger companies where HR sets a lot of requirements. If you want to/end up working at one of these companies, they may offer a degree program.

Smaller companies won't care, or would be able to waive any such requirements they had.
I've run into this as well. Of course, it was ultimately a good negative filter; if the interviewer could not clearly explain what he wanted out of such a simple program, how would he have done at explaining the requirements for a much more complicated program?
Flipping bits in memory without accessing them [pdf]
Add Support for creating and dropping SQL views in Rails
Internet Celebrities Are Changing Crowdfunding This Holiday Season
Waiting for the day a robot has the same trial.
This is really cool. What would be awesome is a design rotation for engineers. The way some of the top designers work is a joy to experience. Even their scratch book looks so well organized.
Similarly to mosquitoes, bedbugs serve no nessesary propose in the food chain that couldn't be immediately fulfilled and replaced over-night. Bedbugs could indeed be "erased".
Right now it says "Penis Bro," "Shitcock," and also has a picture of a penis.

I'm shocked!
You haven't done much by defining rights, because who defines those rights?

ISIS will say everyone has the right to have a slave. The UN says everyone has the right to paid vacations (yes, it really does say that).

Who decides which rights should be accepted?

There is no one who can do so. Rights are arbitrary and reflect the culture of those who defined them.

You either decide to accept them or you don't. i.e. it's pretty much identical to "rational argument".
I finally found a use for mixed string/int keys.

I have a routine that plucks key/value pairs out of one associative array and builds another, and allows you to rename the resulting key names at the same time. Using mixed keys allows you to be more terse if you don't want to change the name:

$json = $data->valuesForKeyPaths(array(
'foo' => 'path.to.foo',
'bar',
'baz' => 'path.to.baz',
));
" the array is already sorted"

Oh come on.
We target businesses that want to fulfil their web data extraction needs in-house rather than hiring a third-party provider – which we originally are. Espion was built for our own needs at first and we’re still in the customer discovery phase. I expect we’ll find many use cases in the coming months.
How Twitter counts those 140 characters
Allow me to summarize your post as "OCaml syntax is not and never was fashionable", thus proving the OP's point :)
IT Life: Fixing Other People’s Mistakes
That could be confusing misinformation for startups. The only opinion that matters in an elevator pitch is the investor you're pitching to. The people who play this game are other startup people. They don't know any more about pitching than the founders in the game. I hope nobody seriously uses this for testing their pitch.
Are you being serious
The Inventor's Spirit
The pebble team have done a great job, but I think increasing the 8 apps limit would really help.

It would also make things very interesting if they could release a color version that achieved similar battery life.
A lot is lost in the translation when it comes to OpenCL. Current nVidia and AMD GPUs are just wide SIMD machines, just like current x86 cores. GPUs are just just wider and with much less cache, slower serial execution.
Try nmtui
How to Implement Growth Hacking for Business?
Regardless of what the post is about, its lede is demonstrably incorrect. Speeding up CRC is great, but "we have to because we can't parallelize it" is a false reason.

Anyway the tricks I outlined would probably help even on a single core, since it allows you to pipeline fetches to the CRC table. (If the table is sitting in L2 you've got ~10 cycles latency between successive CRCs. That's enough downtime to run a second CRC in parallel.)
No, I mean, tuple spaces were always quite simple as well as a simplification, and the use of KV stores in many distributed computing tasks continued that trend under another less soiled name.
I hope you realize that by giving rights in abundance you have diminished the very meaning of the concept.

You have this assumption that in the future everything will have rights. All that will happen if that occurs is that the concept of "rights" will be laughed at and ignored.

The more rare something is, the more powerful and special, and meaningful.
Learn Sketch: Plugins, resources, articles and tutorials
The author of dhcpcd (Roy Marples) also weighs in the discussion, saying that the former matches the same speed as long as ARP checking is disabled.

So really, it seems to me that the only reason networkd's DHCP is fast is because it's bare bones (and also skips a few sections of RFC 1531, according to Jayson Vantuyl... which doesn't sound good). Only dealing with lease negotiation, if Gundersen's statement near the end is still true.
>> "super effective drugs"

Any recommendations? I've 'grown out' of most of my motion sickness over the years but boats still get me bad. I can just about make 60 mins without being sick and then I feel awful for the next several hours. I've tried lots of stuff but most of it doesn't seem to help.
Ruby 1.9.x and later (at least in MRI) also guarantee to iterate over hash elements in the order in which keys were inserted.

http://www.ruby-doc.org/core-1.9.3/Hash.html
Learning to use facial expressions can be quite useful. It's similar to learning negotiation techniques and sales strategies. In this context, spending 15 minutes a day working on the ability to one's facial expression skills (Samsung app: even improve the daily performance in a "performance dashboard") is not necessarily a bad idea.

However, it should be remembered that this is primarily about imitation. It is not about "self-expression". People do not move their position on the autistic spectrum by using this app. They just improve their ability to use facial expressions in the way that is expected by the surrounding society.