skysight-inc/HackerNews huggingface dataset:
> With me - after 4-5 hours in the flow - I am done, squeezed like a lemon.

That's what I'm currently trying to establish for myself - 4 to 5 hours of work a day tops. I used to think that I could do more, used to work hard on trying to do more, but the truth is pretty simple. If you want to get more done, you need to become more efficient, not work longer hours. And structure your life around those 4-5 hours so that within them, you are able to deliver.

I recommend limiting work hours to everybody these days, but it seems that the mindset is simply too ingrained.

> The only benefit after that is for task that require very out of the box thinking [...] when i am sleepy dead tired etc [...]

Maybe those "you need to put in more than 10 hours a day" people should switch to 4 hours of work, plus a full-out boxing match plus 1 hour of "crazy stuff" work?

Next up on News At Ten - The crazy new crossover trend sweeping through Silicon Valley: A breakthrough mixture of Extreme Programming and Fight Club that has blue collar workers eyes twitching.
What sort of work are you looking for? Would you be willing to relocate to London, e.g. for an internship?
Log base 10 would be a good compromise with the ridiculously vague "N figure salary" descriptions.

Makes for much more accurate boasting: "they were offering me a 6.3 figure salary, but in the industry I'm in, it's no big deal"
"Her experience is not representative of anything."

I've seen her speak in person at a state fair. She's a pretty good inspirational speaker, would recommend if you ever get a chance. She does better in person than her biographical movie would seem to imply. If she ever gets tired of livestock she probably could 2nd career as a motivational speaker. I'd summarize her state fair speech about her life experiences to something like success comes exclusively from grit, which isn't too far from the original post and/or my own observational experience. For whatever local definition of "greater good" and "success" applies.

(edited because I feel the need to rephrase: I saw a speech of hers in person, which (hopefully accurately) summarizes to its a universal fact of ALL humanity that success is the result of grit. Which I'd agree with. However the friction comes from no universal definition of what "greater good" and "success" means across individuals.)
I don't mean value in the financial sense, but rather in the sense of helping a person improve as a developer.

As for mixing praise and criticism, that is appropriate for certain situations; for example when dealing with a student with low self confidence. However there is a danger in praise which I outlined in my previous comment, it really doesn't accomplish much besides stroking a person's ego, and that can have unintended negative consequences for their long term development.
I have to totally agree with this. I have almost completed Learn Python The Hard Way and it has been very good to me. I have been programming in many different languages while in school (I just graduated this May, lucky me...). I must say that this might be the most complete way that I have seen to learn a new language. I am definitely doing Learn C The Hard Way and I am definitely going to donate/pay for these materials. They are extremely beneficial to any programmer even if you know all of the information.
>they just might have different value systems such that our pursuit of technology seems very foreign and strange.

I believe the value systems which govern our diets also seem very foreign and strange to the other species with whom we share Earth.
I'm aware, I'm just pointing out how Fred is implying you already have investors when you find product market fit.
Which part is false? What fact are you objecting in his post? I think what he has written is easily verifiable so there is no need to trust him or me. As far as I have checked they are accurate.

As I understand, you have been protesting freely with the support from military, judiciary (it looks that recently Kemalist supreme court tried to close AKP while it had a majority in Turkish parliament and had just won another democratic election), and media for years and you still haven't been able to even stop the increase of AKP's popularity. Is that true? Is his claim that you are minority false?
Anyone happen to know what lib is used to generate the QRCode in the terminal?
When the cable is properly connected into the ground stake, any stray current is diverted to the ground. If the cable had resistance, you could (in theory) measure voltage drop over it but a heavy copper cable has a very low resistance. You can't measure current without interrupting the circuit, so it's really hard to know which grounds are actually being used. And in power systems, the ground is the sum of the grounds throughout the system. If you look near where the power goes into your meter, there should be a 1/2" (or more) copper rod driven 8-10' into the ground and the ground for your house is connected directly to it.

Disclaimer: I'm not a power engineer (optics, RF, embedded systems and software) but I understand the basic principles. Someone else can probably talk about how the earth ground is actually established (after every transformer I believe) with a lot more detail.
I think oarmstrong's question is whether the two factors (key+TOPT) provides any real security over just key, assuming the key storage is encrypted.
The first crowdfunding platform for small business loans
Advancements in the accessibility of Facebook
"Weighted average of the volatility" is an odd baseline. It presumes that the assets are perfectly correlated. But assuming 0 correlation isn't defensible either. If you didn't have information about the pairwise correlations, what default value would you use for investment volatility?
By design TFA uses something one possesses that nobody else does, isn't this identical in principal as the private key?

I understand why and how this adds the extra security for the 'traditional' password authentication due to all the methods of compromising a password: brute force, guessing, exploits etc.; so for TFA to add an extra layer surely the private key would have to be exploitable in some form?

Maybe I phrased myself incorrectly in that I still see how it adds an extra layer of security but I fail to see why one would do this on top of a key based auth method.

I know the original article didn't mention using it on top of key auth but I wanted some insight as to whether or not it would be worth doing. As do many, I use TFA for any online service I can so I do appreciate its point in that sense.

EDIT: I never really considered the fact that the private key could be stolen via malicious software. Taking that into account I see the value in TFA for SSH.
Copyright Monopoly Enforcement Today Is A Mass Psychosis
I thought dysoco hinted at the brainfuck self-interpreter,
as linked to by peterwaller. There acutally is a brainfuck
compiler called awib (http://code.google.com/p/awib/), but
it's not that small (very artistic though). So I assumed
the discussion had drifted into interpreter territory...
Steve Jobs I Hate You : Volume 2 
But there is a cottage industry of haters who know the real score, and I'm one of them. The truth is, Jobs was a stingy computer giant who treated his employees horribly, provided poor customer service for his products for decades, and nearly destroyed the computer industry in its crib when his obsession with proprietary control. And that's just for starters.
That's what I meant, thanks. Don't know how I had such a hard time trying to explain that!
This protects you if someone manages to get a trojan into your laptop.
"Free as in beer, not free as in speech."

https://en.wikipedia.org/wiki/Free_Beer
So, are you suggesting

a) that in the USA you are _legally_ allowed to kill others and to pollute?

or

b) that no, the USA doesn't legally allow that, but in practice it does (any stats on how many guilty people got off the hook?)

or what?
I don't know how the media is governed in Singapore, but the traditional media in Turkey didn't cover the protests at all. News about the protests (could only) spread through the internet, and today I'm proud to be a techie.

The Turkish Prime Minister expressing his concerns on news spreading, "There is now a menace which is called Twitter. The best examples of lies can be found there. To me, social media is the worst menace to society.”

http://goo.gl/MLTCL (Washington Post)
From the paper:

3.5 Summarization: Overall assessment. On the basis of the available evidence, we rate summarization as low utility. It can be an effective learning strategy for learners who are already skilled at summarizing; however, many learners (including children, high school students, and even some undergraduates) will require extensive training, which makes this strategy less feasible. Our enthusiasm is further dampened by mixed find-ings regarding which tasks summarization actually helps.
Although summarization has been examined with a wide range of text materials, many researchers have pointed to fac-tors of these texts that seem likely to moderate the effects of summarization (e.g., length), and future research should be aimed at investigating such factors. Finally, although many studies have examined summarization training in the class-room, what are lacking are classroom studies examining the effectiveness of summarization as a technique that boosts stu-dents’ learning, comprehension, and retention of course content.

I read through a good portion of it and they are mainly focused on k-12. The research they cite consists of remembering facts, not understanding technical content such as physics and math.

Getting through an advanced math textbook is nearly impossible without taking notes and summarizing the main ideas.
The author mentions the soda stream carbonation doesn't really produce the desired effect. A tangentially related question: How does commercial carbonation work? Is it just keeping the liquid under pressure for a while with CO2 present? Is it done on a per bottle / can basis, or is it done in big vats and then sealed quickly afterwards?
A clip on ammeter is is a good recommendation. I don't know how sensitive they were and the nature of the stray voltage.

The video was indeed terrible. I'm guessing the scaffolding was metal but that the wheels were rubber (it seemed as though the current was only going though the workers).
It seems that some of what you are saying is not that different to the claims I was replying to, but with a different interpretation.

E.g. you consider weakening the power of legal bodies, the media and the military to be bad, but from their point of view, these bodies were supporting an undemocratic power structure that favored the pro-secular minority.

On alcohol, there is not a blanket ban, but fairly strict restrictions (in particular limiting sales of alcohol from 6am to 10pm). And lifting the ban on head-scarfs seems like the lifting of excessive restrictions, not the imposition of Islamic ideas.

As to Erdogan's general ideas on the nature of democracy, can you be more specific?
Hyde plugin for publishing to Github User Pages
> First of all, he was commenting about this page not displaying ANY content at all. At the very least there should be a noscript tag to tell the user to enable JS.

For most sites that sounds like a good idea, but this is a Javascript project. The number of people interested in a Javscript framework that don't have Javascript enabled and are still befuddled when things don't work correctly must be vanishingly small.
I made a hexagonal maze once: http://www.dllu.net/hexmaze/
Great use of hexagonal gameplay ==> weewar.com
His actual quote about news spreading through social media is near the middle of the article.

"There is now a menace which is called Twitter," Erdogan said. "The best examples of lies can be found there. To me, social media is the worst menace to society."
Facebook Is Killing Me
My impression of Amazon was that they really are customer obsessed.

They did say I was too technical, but what I think they really meant is that they were looking for someone with more business/customer-facing experience and a bit of tech... it was an AWS Solutions Architect position.

What they offered instead was a very compelling purely technical position, but I have this deep belief that technology is a set of tools that solves customer problems. I didn't feel comfortable accepting a position in which I could not directly hear from a customer.
Ok, agreed more or less, and the mud slinging is terrible, but by political debate, what exactly do you mean?

I don't think you mean simply election politics, so my assumption is that you mean any kind of debate over government policy. In this example it would be a debate over the US government policy of pursuing suspects in high speed car chases.

I can understand how these kinds of things are off topic in the general case (Istanbul protests, Boston marathon, etc.), but are you saying they're still off topic when there's a fairly clear connection to a hacking / startup story? Are the discussions about rent control in SF off topic, for instance?

My belief is that there's a grey zone where considered discussion of the pros and cons is okay, even good. For instance, I wasn't even aware that there were debates about high speed chases at all, so for me this was something new and interesting. Most of the community wrecking I've seen has happened due to in-fighting and drama, but yes political mud fights are a common enough precursor to that, because they encourage people to hold grudges and take sides, at least in my experience.
This stuff is pretty hard to get right when doing it all by heart. Last year I tried to make a multiplayer fighter on a hexagonal grid using websockets for a Ludum Dare, but I wasted the first day on making moving around on the hexagonal grid work, and the second on making the multiplayer code work, so at the end of the 48 hours the game was working technically, but I had no art whatsoever, and it wasn't fun at all :P

Ofcourse if I had taken the time to look for resources on building hexagonal game I would have found a lot of things like this article (though probably not as concisely summarised as in this one), but for some reason it didn't occur to me that it could actually be hard, since it seems like it's just some simple trigonometry.

Others said it was a fools errand to make a multiplayer game for a Ludum Dare (48 hour game compo), but actually if I hadn't been so stubborn with the hexagons I think I would have had enough time to build a pretty cool game.
That's awfully condescending and presumptuous, don't you think? I've taken zero Coursera courses (but did take the original AI course with Norvig and Thrun), but have been busy taking max credit loads at school, TAing, becoming the lead dev at a startup, and starting my own startup. I'm sure a ton of people here can say something similar. MOOCs are great--as highlighted by the article--and I intend to take more. But there are other worthy things to do too. "The good is the enemy of the best."
Well, pushing to someone else's local copy is a little harsh, since that copy probably won't be bare. Also git will slap your wrists if you try to do that. Instead, the coworker should pull from you. This is why GitHub's calls them pull requests.
Eye contact is so important http://en.wikipedia.org/wiki/Saccadic_masking
Entering universities while wearing head-scarves was forbidden. You couldn't physically enter them wearing a head-scarf until very recently.

Is it the eastern part trying to impose its will on the western part or is it the eastern part trying to remove what western part imposed on them over decades?

Here are what I see people are claiming to be signs of AKP Islamizing Turkey: allowing women with headscarves attend universities, forbidding shops sell alcohol in late night hours (after 10PM).

In Ontario only government owned LCBO can sell liquor and its shops close at 6PM. The consumption of liquor in public places is forbidden completely in Canada. Surely Canada is not an Islamic state. Are we sure Turkey is a Muslim majority country?

http://en.wikipedia.org/wiki/Drinking_in_public#Canada

He says he doesn't remember a source but he has heard it several times that over 70% wears headscarf. I found this article by Google:

http://www.hurriyetdailynews.com/default.aspx?pageid=438&...
Maybe It’s Time For Apple To Go Back Behind The Curtain
> Are we even allowed to own those in the States?

You, as far as I gathered, and probably depending on state etc, have a constitutional right to arm yourself to the teeth; somehow, gas masks seem a bit trivial compared to rifles.
re: the social value of emacs-lisp parsers/code-completion etc, perhaps someone could supply an API where other programs can query a headless emacs runtime. I defer to the author's experience when he says that emacs is a poor runtime for simultaneous editing + compute, but perhaps it's acceptable for compute-only (and this separate-process approach could in theory improve interactivity for the emacs editor as well).

My emacs at times can't keep up with my typing. But I love what it does for me. The lack of threading is a huge headache for elisp developers - they have to resort to manual cooperative-task-slicing hacks.
Interesting. Who runs libgen.org? How are they in compliance with copyright laws?
It uses libpam-google-authenticator, looking at the source for google-authenticator.c[0] (line 156-7) it appears to use the Google Chart Infographic[1] API (which as a side note has been officially deprecated).

Can't quite work out how it is displaying it, I'm not competent enough with plain old C, but I'm sure someone can follow the code and chime in.

EDIT: Looks like it uses libqrencode and if that's not found it just uses Unicode block elements for actually displaying it from Google's API.

[0] http://google-authenticator.googlecode.com/git/libpam/google...

[1] https://developers.google.com/chart/infographics/
Thanks! Registered over there, and there does seem plenty of jobs going.
It would be great if this was supported along with key based authentication. Using the PAM method outlined here works only with password based authentication and the TFA is completely bypassed when a key is used.

I researched this a few months back and was not able to find a clean way to add TFA to a key based login. Any suggestions from other HN readers?
LindyPi: Fanless Raspberry Pi NAS weekend project
If you want to try connecting to a Lahana server without setting up your own node, try this:

Username: bob

Password: bob

Secret: whoop

Hostname: ec2-50-19-10-247.compute-1.amazonaws.com

There's a guide for iOS users[1], I haven't got round to posting a guide for Windows and Mac OSX yet.

[1] - http://lahana.dreamcats.org/ios-howto/
Many Turkish people interpret these as important signs, there are many more, which, when listed in isolation sound small (e.g. ban on red lipstick for Turkish Airlines female flight attendants), but when taken together and in the context of Erdogan's no-reconciliation-no-matter-what tone are quite alarming.

As for the "police sprayed my friend yesterday", it wasn't just that, the level of brutality was amazing.
Patent: Artificial Intelligence System
This is an amazing resource. Bookmarked.

I recently implemented the board game Hex[1] using canvas. I didn't need most of this stuff... really only "neighbors", "hex to pixel" and "pixel to hex".

Hex uses a rhombus grid, a possibility surprisingly not mentioned in this article, which makes choosing a coordinate system easier. It's simply row and column, and finding a cell's neighbors is simple, if slightly counterintuitive. From my code:

(let [possible-neighbors
[[ col (dec row)] ; Upper left
[(inc col) (dec row)] ; Upper right
[(dec col) row ] ; Left
[(inc col) row ] ; Right
[(dec col) (inc row)] ; Lower left
[ col (inc row)]]] ; Lower right
...)

I found drawing the board unexpectedly tricky. In my first iteration I simply wrote a "draw hexagon" function that plugged in all the mathematical values, then called this function for each cell. The result looked terrible due to aliasing artifacts. Some lines were doubled and not all cells appeared the same size. In the end I precomputed integer values for the length of the vertical sides and the dy and dx for the diagonal sides, then used these integer values repeatedly to draw the board.

For converting pixel coordinates to hexes I used a different method[2]. If the pixel is inside the interior rectangle of a hex (the part of the hex with top and bottom removed), we know it's in that hex. Otherwise it's in the top or bottom of a hex, and I use the direct algebraic formula (y=mx+b style) for the hex tops' diagonal lines to find out if the point is above or below that line.

Maybe these approaches of mine would be helpful for someone whose needs are more basic, as they rely on less cleverness than the techniques in this article.

[1] http://toxicsli.me/hex/

[2] https://github.com/graue/cljs-hex/blob/master/src-cljs/locat...
While we're at it, we might start to wonder why Vietnamese are not currently blowing up Americans, Indians are not currently blowing up the British, and Gabonese are not currently blowing up the French.
Of course.

And not just Twitter. Any platform where people can express their opinions freely without being afraid of anyone is a serious menace to his power.
"Anyone who drinks alcohol is an alcoholic."

Right, well, how can we debate the voice of reason? He's right! The world is black and white. I hereby invoke Godwin's law to declare that anyone who orders police brutality against largely peaceful protesters is Hitler reincarnated.
That's just for the URL. The QRCode in the terminal is generated locally using libqrencode and displayed using ANSI or Unicode chars, on function displayQRcode right below: https://code.google.com/p/google-authenticator/source/browse...
What do people write about in customer product reviews?
I'm not siding with or against you here, but each of your examples is of something originally being in a language other than C.

Your position isn't strengthened if you can only name systems that were written in something else before someone converted them to C. In fact, by design, that's kind of benefitting the opposing side. I'm just saying.
> But IMHO, lots of these systems are a little creaky in the support structures (cabal for example) and deploy features

Cabal used to be horrendous. Now it's just mediocre, and better than the distribution tools I've seen in the Python world (e.g: easy_install). Much better than the lack of distribution tools in the C and C++ world.

> That said, I think a lot of what makes Go great is because of its simplicity, lack of surprises, and general lack of cleverness. You can get your hands around the language features very easily, in mere hours

nil everywhere is an easy to explain language feature. It might be easier to explain than pattern matching. It's definitely worse though.

I'm not saying that Go has no strong points in its favor.

It has plenty surrounding it that you mention.

It's just sad that this is all around such a poor language.
Weekly payments are certainly possible, but I challenge your claim that they are common, at least in software development. It's just a personal anecdote, but I have literally never seen it in my entire career, not in my own contract work, not when any client or employer I worked with brought on someone else, not even in a job ad on any serious contracting forum. Unless you're doing either a lot of very short-term or fixed-price jobs, I would think the overheads of sorting out invoices and tax records so often would make it too much hassle for a lot of contractors anyway, but maybe if you're used to it and have all the tools and shortcuts in place it's possible for some people.

Edit: Also, I'm talking about working directly with clients here. What goes on with agencies or other intermediaries involved might be a different question.
Ask HN: What are some good free resources to learn Ruby (not Rails)?