skysight-inc/HackerNews huggingface dataset:
Historically some people were against early returns, loop flow control, and the like as part of structured programming's overreaction to the widespread unstructured use of goto for flow of control. They wanted every body of code, be it a function or a loop, to have one entry point and one exit point.

Over time programmers have learned that one entry point, multiple exit points, is OK. But I feel that it is a good habit to flag that with a comment in capital letters so that someone skimming the code can't miss it.
That's abs awesome to hear! Thanks for the wonderful complement.

I played with price. Until now, most of my sales were word of mouth, and the $1.99 price hindered "growth".

It's been an interesting game. Many people whom I demo the app to in person love it, then when they reach into their pocket to download it, realize it's a paid app, they place their phone back into the pocket.

Still have lessons to learn in sales and marketing... but am enjoying the schooling.
The continuous flash didn't fire. I'm running the stock settings.
Yep, I use it every day, mostly to save steps to build or run something complex. Search across all notes is fantastic.
Yes, they really were behind it here in America. The overwhelming majority of the people on this planet are unamendably stupid.
This is neat tech and works pretty much as advertised, but man, this UI is pretty rough. The blue background and curvy borders are strangely superfluous; tapping the left-bottom corner controls pops up an intermediate selector but the right-bottom controls work in-place; taking a shot produces a big "infinity" symbol that fades in and out of view -- I don't know what it means.

Good work on tech, please hire a UX specialist :-)
I actually wrote a tumblr post about that a while ago. It also included a user engagement aspect that would allow users to subscribe to topics of interest to receive a curated feed of changes that could each have a dialogue/poll emerge. I hadn't really thought through the specifics but its awesome to know that something like this is already started to some degree. Thanks for that!

Here's the post if interested.

http://proggr.tumblr.com/post/52801512630/githubberment
I would say nice try, but after seeing your EDIT, I'm shocked that it works that good.
Perhaps. But with Starbucks I know exactly what I'm going to get. I know I'll have decent wifi. I know I can sit there and use it all day long.

When I travel, I look for Starbucks. It's just the safest bet to know I'm going to get work done that day.
Click on the BUGS link to get to http://www.cs.cmu.edu/afs/cs.cmu.edu/Web/People/rgs/pl-bugs.... which ends with the alternate definition.

Larry Wall has told me that the fact that he had two acronyms that he liked for it was one of the reasons that he chose the name Perl.
Is it so hard to believe that some people just want to share their thoughts with the world and don't care about profit or building their personal brand?
Given that niche social/mobile networks for short videos are so hot right now (ie. Vine, Instagram Video), it might be more fruitful for you to plan on creating a new one.
Apps for Privacy
Ask HN: I’ve burnt out at a megacorp and don’t know what to do next
(This is a throwaway account)

I’ve been working for a megacorp for the past 3 years, with some time at other megacorps and a startup before that. I’ve had my own company on the side but recently sunsetted my products as they were not going to scale.

I’ve been working on a VERY prominent part of a VERY large product. In my short time at the company I’ve secured a niche position where I’m on point for a large component that is critical for the product. I think there was a misunderstanding about the complexity and relative size of the area when I was assigned the role. Over the past year I’ve really stepped up to own the area and contribute across my team in substantial ways which have directly led to the success of my product and team. I worked 100hr weeks for months on end, ensuring that we were able to deliver the right features. Obviously working this much was the wrong choice, but passion drove me to the “the right thing.”

But this role and this work, it has damaged my passion. I’ve become something of a machine—problems in and solutions out. I see where our product engineers created designs that were arrogant and inflexible. I replaced “caring” with raw engineering.

In the process of working 100hr weeks, I’ve optimized out the rest of “life.” I have roughly ten years of experience and while I am a junior engineer, I know that I am very rapidly approaching the senior level. I know how analyze the larger problem and look past the problem at hand. The role I’m in now has provided me the opportunity to debug very challenging problems not at just the program level but at the operating system level.

I’ve always dreamed of starting a company. I don’t have any plan and don’t know how to get there, but at the high level I believe that’s where I want to go. I’m not ready for that just yet, though.

What can I do next? I’m very much a “systems guy.”
This is pretty cool. You got my buck!

I was kinda hoping I could also turn the speed down to multiple seconds per photo, since it talks about doing time-lapse shots. One of my major uses for my phone's camera is selfies for art reference, currently done with Genius - which annoyingly won't do repeated shots at anything less than 10 seconds. Being able to take one shot every 1-3 seconds would be pretty damn cool for me.
Fair comments, and much appreciated.

I did all of the graphics design myself, in the app and on the web. :-)

The infinite sign you see does require an explanation. I'll take your advice and think about how it can be done more simply.

It's basically telling you, the user, that the capture buffer has filled, and you're now dropping (some) shots.
Doesn't github also store it in a json response?
This looks fantastic. Watching people's reactions in that example image was really interesting, and it occupied me for a good few minutes. "Why can't you do the same thing with video?" Because rewinding video is really painful, especially online video.

Criticism:

I use my thinkpad's pointer stick to move the mouse cursor. It's impossible to keep the cursor inside the "control strip" while moving it up and down and also looking away from the strip (and at the image). Too much accidental x motion is introduced.

It would be better for me if you were to enable the scroll wheel (which I can simulate on my pointer) as an alternative time control, or perhaps let me click on the control strip and then hold down mouse1 for as long as I want my y motion to control the position in time.
Here's some software for generating them;

http://gnaural.sourceforge.net/

http://discord.sourceforge.net/

http://sbagen.sourceforge.net/

http://entrainer.sourceforge.net/
Calling all data scientists -- why not consider working on medical and/or biological data instead?

There is not necessarily less money in these fields, but a much much greater potential impact!
The datasheet does not have any power consumption info. How big does the PS have to be? Otherwise it could be a useful board, $200 is a little steep now-a-days. The APC is $100, the RPi is $40 etc.
Classmint Launches Study Notes That Can Fold, Talk, Tweet and Interact
I am interested in limited image recognition and pattern matching for an iPad app of mine. For example, I'd like to recognize when there are the red, yello, and green buttons to the left of a point in an image and the edge of an active window just above, so I can provide instant feedback of some kind (probably based on a filtered+recolored version of the top of the window which is being moved) for a VNC app. Eventually, there will be feedback from the server, but limited feedback generated locally will feel much better.

Any recommendations? I already know of OpenCV.
the gravatar email recovery hack has been known for years, they are recycling an old topic.

luckily my email isn't a secret as I publish it everywhere willingly.
Show HN: HeresHotels for iOS, Find Hotel deals on the go
What is bad writing?

You can spell. Grammar seems good enough. I can understand what you are trying to say.

How is your writing bad?

BTW. Always amuses me that some of the best selling authors are said by the writing snobs to be bad writers. Funny that. Might be that the writing snobs having got much of a clue.

IMHO, if you are getting your message across, then the writing is good. Maybe not "art", or "excellent", but "good" is often more than good enough.

My advice: just write.
[how to] push to gists over ssh
The article is missing at least one useful thing: how to declare a typedef for a function pointer. This can be used both to avoid error-prone duplication of declarations and to simplify excessively complex declarations.

Here's a simple example:

http://en.wikipedia.org/wiki/Typedef#Using_typedef_with_func...

Here's a more complex example:

http://www.devx.com/tips/Tip/13829

Here's a tutorial on how to interpret the complex declarations like the one at the top of the previous example:

http://www.codeproject.com/Articles/7042/How-to-interpret-co...

Here's a discussion about using typedefs for function pointers on StackOverflow:

http://stackoverflow.com/questions/1591361/understanding-typ...

See also: The Linux command "cdecl":

http://linux.die.net/man/1/cdecl

Plus, there's an on-line version:

http://www.lemoda.net/c/cdecl
Thanks!

You can reduce the capture rate in the app settings, down to 1 photo per {1, 5, 10, 30, ... } seconds.

Move the slider toward the turtle under "Camera Lens".

jpap
As a system administrator Snowden presumably had lower-level access to the systems than analysts.
We are here. I check out some of the designer job posts, often I find they lack key information such as a location. Not everyone on here is in San Francisco. As to why you aren't getting lots of candidates...I'd say there is a lack right now of experienced designers interested in the startup community.

I also think that a lot of designers are not as into the hacker culture as much. Many come from backgrounds far removed from the explorative, geek & techie culture and just aren't as interested in those aspects. I know from my own experience I was a huge geek as a teen and was as interested in computers, hacking and coding as I was with design. But when I went to college I'm pretty certain I was the only one in the department at the time that was even interested in working with the web and building things. Some were afraid of the web and stuck to print design, and some just didn't have the background or interest. Unfortunately even those that were interested in it could not learn what they needed since the design program did not teach much of anything to do with the web.

Ultimately I think because of this there is a lack of designers with web experience and the hacker/entrepreneurial desire to be part of the startup community. It's something that I wish would change and I try to encourage designers I know to get more interested in building things for the web... to be more entrepreneurial, more geeky.
I'm not completely sure I agree with you yet, but this argument does mesh very well with the trope that so many programmers first started programming when they were very young. I was playing with BASIC at age 5, and anecdotally I've heard very similar stories from other programmers at a rate that exceeds what my expectation would be of a random distribution, and definitely exceeds corresponding anecdotal evidence from other professions (i.e. number of people in profession X who were doing X at a very young age).

The point of possible disagreement is that I'm still inclined to think that any person can learn how to program at any point in time, but that it is just exceedingly uncommon for them to actually do so. Typical CS classes are certainly not going to accomplish it. Like you said, it's about thinking logically, systematically, and formally. I think very few people actually try to learn how to do that late in life. If you don't already have it, you probably don't value it enough to try to get it. It's almost tautological: how would someone who doesn't think rigorously be convinced of the value of thinking rigorously?
Yes, I agree. I wasn't saying that we should pursue nerd determinism, only that cynicism with such a political system makes some us more inclined to find non-political solutions. But the unfortunate reality is that it is not enough, and we need to get involved in politics, however painful that may be.
I would complain if a reward was offered and I didn't get one. I don't think that makes me a bad person. I'd save the child either way.
What he's talking about there isn't SSA. In SSA you never assign to a variable more than once. Instead you shadow the existing variable with a new version.

Converting to something akin to SSA (but not quite the same thing) is actually what he's talking about superscalar architectures doing in register renaming.

That said, just because you use an SSA IR doesn't mean your code generation doesn't require register renaming. But it would be a very good basis to generate code for this architecture.
I actually agree with you. They could operate completely outside the boundaries of the airport, in which case they would not have to pay the use fees to the airport.

The problem is that part of their value prop to customers is that they offer airport pickup (they send a black car to bring you from the airport to the rental agency). This puts them in a position where the airport has a right to demand use fees, since they are using the same roads and infrastructure as any other rental car service.

Reducing costs by not using the infrastructure, and therefore completely circumventing the need to pay the use fees, would be disruptive. Using the infrastructure but refusing to pay is not disruption. They are not doing anything more efficiently, they are just refusing to pay.

This issue should be understood as completely distinct from their core car-sharing business model, which is disruptive to the rental car industry.
I'll bite. Which browser is that?
It also doesn't work for me in Chrome on Win8. It does work in IE10, though.
@gosu, despite what Josh wrote, you can traverse your pointer across any part of the living photo online. :-)

Love that you picked up on the expressions! It wasn't until I got the photos out of the app was I fascinated by the same thing. I really can't wait to enable this functionality for everyone soon. :-)

More elaborate mouse movements are possible, only in HTML5 full screen mode; required to "capture" the mouse (think a game).

The problem with that, too, is that instruction or a tutorial is required. (I'd try to make things as intuitive as possible, despite the failure in the other thread RE UX and the infinite shutter.)
Looks like somebody just read "	How 'One Weird Trick' Conquered The Internet" article and used all the techniques described there to deceive HN users. Maybe this is an experiment. If so, you all must be ashamed that such a big part of you fell for it. And even trying to have a moderate discussion on a matter. "Hackers hate him! How 1 weird trick would help 5 year olds learn programming!" turns out work here as well as for others, all you need is more advanced deception.
it always makes me cringe whenever they use forward-deployed soldiers as a defense of the higher-level states "nobility"

In another context they might be called human shields. Shields in the PR war.

I'm sorry for your loss.
Vimium shortcut: "HA". I'm amused, yet terrified, at their response.
Staying Ahead of the Game: IP Surveillance
Singling out GitHub seems silly. If you're on GitHub, have a .gitconfig with name + email, and you've made a commit, then that's all public.

If a site uses your Gravatar, game over: Gravatar's literally a raw MD5 of your email with the aim to give you a globally identifiable avatar. That's been known (documented!) for a long time and unlikely to be a surprise to many of us here.

The only place this is likely to be an issue is when a site knows you but you assume you're anonymous. If you're using a web service where you want to be anonymous, connecting anything with your identity is a bad idea.
Congrats, 10% of a $10 million company makes you a millionaire.

I'd recommend helping the founder with the exit, have you thought of using a vc to help with your exit? A big part of their jobs are related to selling companies and even if they ask for a small cut, if they get you a higher acquisition price, you benefit.

Who owns the other 10%?
I'm confused as to why you'd need a third-party for this.

The Authy app is better.

Look at the screenshots at https://itunes.apple.com/us/app/google-authenticator/id38849... . The buttons are ugly, labels are misaligned, and the colors are ghastly.

Re-ordering tokens in the Google Authenticator app is janky as hell too, and the only way you'll know if it's going to work is if the regular view switches to one with subtly different font sizes.

Authy's not without its rough edges, but it never looks that bad.

From down-thread, regarding Google Authenticator:
e.g. setting up 2-factor with MS with the same email you use for Google will overwrite the Google one unless you rename it.

Authy does this correctly.
Perhaps there are people one would trust to be judges when there's a full public record of their proceedings, but not when those proceedings take place behind closed doors with no public oversight.
The problem is people don't necessarily know know they're sending a postcard when they think they're sending a sealed envelope.
Quite right, I am less concerned about my nosy-neighbor who happens to be a low level NSA analyst and more concerned about a hypothetical J Edgar Hoover Jr.
But why that whole mess with function pointers?
Where do they have the key advantage compared to directly calling the function?
Certainly new algorithms and data structures are going to be crucial (e.g. Bowtie), but statistical analysis/scoring, even in a heuristic way, is always going to be an essential component just from the nature of the work being mostly about evaluating hypotheses from evidence.
> On Writing: A Memoir of the Craft, by Stephen King (really!)

I can't second this enough. I read it once a year, at least. King's writing nonfiction, he's writing nonfiction about writing, and yet his command of his own literary voice is so strong that you feel like he's sitting on the other side of the table from you. It's an amazing, honest book.
The largest photo ever taken of Tokyo is zoomable, and it is glorious
Was it a mistake, or did the USA conveniently expand their military presence?
Knew about them for a long time. I am still not sure if these work for some people or not, because they don't work for me at all.
My writing is bad. Do you have any recommendations for how I could improve?

Better question: Would you mind describing what your own path was like going from "I'm a bad writer" to "Hey, I'm fairly good"?

Read a lot, write a lot, and get an editor. Here are more specifics: https://jseliger.wordpress.com/2009/08/19/the-very-very-begi....

Here's something specific: I'd like to get better at using metaphor

Read Metaphors We Live By and How Fiction Works.
I always use a single exit point in my functions and also a goto to get there from the middle.
Okay, so if ~3,000 people died in the 9/11 attacks, and we prevented 300 of those, then that saves 900,000 people.

But in order to save 900,000 people, it required a bold attempt to eavesdrop on all ~1.3 billion people currently using the entire internet, leaving us with an efficiency of 0.1%.

Not only that, but the process needed to occur continuously, for a decade, ramping up, over time.

But wait! It took nearly 20 hijackers to accomplish one 9/11, so that means it only stopped 15 9/11's in a decade, or rather 1 and a half per year.

So that means we saved 4,500 people a year, by eavesdropping on over one billion each year.

But remember, when you tally up all those ten long years of life saving:

Those 45,000 people weren't just ordinary human beings...

They were Americans.
They were Freedom.

And at the end of the day... well... ✼sniff!✼ I think you and I both know that you can't put a price... on FREEDOM.
The problem is that since they know your email address, they can find your email from leaked databases... Then try that password to own your repo...
Take five weeks off and don't engage with work in any way. Don't program, don't read technical books, no nothing. Slow down and let yourself feel the toll the amount of work you've done has taken on you.

If you give yourself a lot of space and maybe try something new and different (kayaking, mountain biking, running, painting, music, whatever) an inspiration will come to you. You've obviously gained a lot of experience and are ready for something new. But you have to give yourself a healthy amount of room for the real creative energy to return.

Good luck!
What caught my attention was the use of "analytic tools" as a euphemism for "surveillance tools." One could dismiss it as corporate-speak or techie-speak, but it rings in my head more like newspeak, and you know the purpose of that.

http://en.wikipedia.org/wiki/Newspeak
Can't upvote this enough. They reprogram their language at their whim. #define lawful ..
I don't know what happened, but I got to level 21 somehow. :)

This is cool and handy for lecturers explaining sorting/searching.

In practice: merge, insertion and dual pivot [1] /single pivot quick(er)sort [2] are the usual tools in the toolbox, that like everything, depend on the specific use. Oh, and radix sort for rainbow tables.

On DPQS, there's apparently a method for 1.8n ln n + O(n) [3]

References:

1. http://www.iaroslavski.narod.ru/quicksort/DualPivotQuicksort.pdf

2. The FlashSort Algorithm
http://www.neubert.net/FSOIntro.html

3. Optimal Partitioning for Dual Pivot Quicksort
http://arxiv.org/abs/1303.5217

4. Algorithm 271: quickersort (1965)
http://citeseerx.ist.psu.edu/showciting?cid=846385

5. (and, of course) https://www.amazon.com/Art-Computer-Programming-Volume-Searching/dp/0201896850

(same shrtnd) http://amzn.to/134daLz
Hollywood by itself had absolutely no chance of reaching across to new zealand and persuading the NZ police to break NZ laws to arrest him.

Just to be clear, Kim Dotcom was a NZ resident, and had broken no NZ laws.

At this point it would be a bold man who made the claim that the NSA had nothing to do with investigating a foreign person and/or their company, tracking that company's international internet usage, monitoring their involvement in possible illegal activities and providing that information to US authorities who could use it to reach out across the world and attempt to have that person extradited to the US.

In fact, I cannot understand for a second why you are trying to make that claim?
facepalm

What was happening is that I was trying to keep the mouse in the control strip, and it would go off the right side of the image.

Thanks a lot, Josh.

Edit: By the way, the fullscreen functionality isn't launching. But I do have a weird browser (conkeror on xulrunner 22.0).
If you need to determine which function to call dynamically, in an extensible way. Take a signal handler or other callback. There are more sophisticated uses, but that seems a clear and straightforward example.
"Accidentally" Freelance