skysight-inc/HackerNews huggingface dataset:
Because function pointers in C++ carry no state. Given:

class A { void foo(); };
A a;

There is no such construct that lets you store a call to foo specialized for the instance 'a':

??? thing = a.foo; // doesn't exist

The only option in C++ is to take the address of the member function:

&A::foo

But even this is not sufficient as it is equivalent to:

void (*)(A * __this)

That is, the "this" pointer is not stored. Along comes mem_fun:

struct mem_fun{ A *a; void(A::*ptr)(); };

Now you can store a call to foo for the instance a:

mem_fun fun;
fun.a = &a;
fun.ptr = &A::foo;

Adding an operator() to mem_fun lets you treat a mem_fun instance as a function:

void operator()(){ a->*ptr(); }

...
fun()

Now, lets say you need to store this as a generic "callback". Well, how would you do that? Sure, you can store mem_fun instances but what about just plain function pointers? Now you can't store them. In comes std::function. With a little bit of VERY simple to understand magic, you can do:

std::function<void()> foo = fun; // mem_fun
std::function<void()> foo2 = global_fun; // simple member pointer
Really? Our applicants came from Perth, Brissy and even Tasmania as well. In fact, the Sydney ones were cheaper. But we target people with around 5-10 years experience. I would say if x is the market value of a Singaporean developer, Australia is around 3x, the US 0.8x but this is hypothetical since we have yet to hire a Singaporean into the Haskell team (the language is pretty much unknown here).

I was looking at real estate in various Australian cities. There's a 3 bedroom house 1km from Bankstown station (not as bad as it used to be but still, no Kirribilli) that went for 750k AUD 2 months ago - imagine what that would buy in most US cities! Even moving to the suburbs isn't an option anymore.
> ... OOM killer nukes it and sh receives only "rm -rf /"

If curl was SIGKILLed, wouldn't that result in a "broken pipe", therefore causing the shell to abort? The only way the "rm -rf /" would be executed would be if the pipe shut down cleanly and the shell saw an EOF (since obviously there would not be a newline in the scenario you described).
I put this up too soon.. so I am trying to deal with scaling and some other issues right now but to briefly try to answer those questions/points..

The point is not to get anyone to be your "part time DBA" that was just some example question I came up with, hopefully to spark some kind of debate or just usage of the site. I am basically just giving someone $3 for their 2 cents on a scaling question. I think asking for someones opinion on scaling is a little different then asking them to be your part-time DBA.

About the financial incentives, the creator of the question can set the "Bounty" for whatever price they want. And if it is not worth someone's time to answer the question for that price then they can just ignore it right?

Really I am just trying to create an environment where people can offer "something" for help if they are not getting it elsewhere. It is not meant to be a source of employment but just a nice reward for someone willing to lend their time and knowledge.

I have a hand full of friends still in college who would pay a few dollars someone to walk them through a math proofs problem for example..
Should be fixed. Was that due to a "Unreadable CAPTCHA token file" error? That was a permissions issue with my deployment..
> Exactly. Higher prices provides the signal to increase supply.

This assumes supply is elastic. Supply of housing in SF is anything but.
Chip implanted in brain reads thoughts, activates sleeve to move paralyzed hand
Moderator goes through and does his best to ascertain whether or not the question was answered and who answered it best/first.

If no suitable answer is available coins are refunded. Otherwise an appropriate answer is chosen after 5 days from question post.
Similar to cPanel, but open source, and has a much more modern design... I like it - might have to try it out later.
"It's super expensive to do business in Australia because it's super expensive to do anything in Australia. It has a high cost of living, high salaries, high property prices, small population and it located far from everyone."

Labor jobs pay $16/hour minimum. There is heavy regulations and taxes on businesses. With a company over a certain amount of employees, firing an employee ends up being a court case with the head of the labor union.

Startups can't thrive in an environment like this, which is why we don't see VC firms flocking there. It's no coincidence that they are flocking to the US.

"They do serve an incredibly valuable part of society being the only counterweight to large corporations who are easily able to buy their way into politics."

Labor unions are just as bad as corporations. They destroyed GM in the US and continue to create waste in many other industries (teacher unions creating an environment where bad teachers can't be fired).

It's not a shock to me that I was down voted. The leftists here on HN love unions.
"As long as we beat New Zealand." It's good to have goals.

https://www.youtube.com/watch?v=Dr3laDc1SeM&feature=kp
>>I think there is a certain mentality amongst Australian startups that the US is the land of milk and honey for startups and Australia sucks.

This is true for many other parts of the world too. In my country its a big craze among young people to move to the US ASAP(I'm from India).

Unrealistic expectations, overall frustration with the government, corruption, bureaucracy, and infrastructure problems padded with heavy watching of Hollywood movies on HBO- transports people into a scheme of thinking that nothing is or will be ever wrong with US.

Only recently I heard two people talking while traveling back in the office cab, as to how all their problems would magically disappear if they immigrate to the US.

People seem to think that no one is poor in America, and that all Americans live in posh homes and drive expensive cars. And once you enter the US, all your troubles shall come to an end.

But people here don't have a very high opinion about the overall social and cultural aspects of the American society.
All assets are bundled into the executable and the measured size is the size of that executable.

If you download the 14k .zip file available on that web page, inside you will find a 128 byte .com file. In this case, there is no sound and the textures are generated procedurally.
not directly related, but the article mentions Singapore many times: can any non-Singaporean with experience in running (ramen) startup in Singapore give some information? maybe in a blog post like this?

EDIT: to clarify, esp. if you're not there (e.g. you're an Australian in Australia thinking of starting up in Singapore).
I make a big mistake, next time I will read more carefully.
Court Rules No Fly List Process Is Unconstitutional and Must Be Reformed
As a software engineer who moved to Australia from Southern California 3.5 years ago, my experience is that development jobs in Australia pay well, but there are very few of them around. http://www.seek.com.au/ will give you an idea of what programming jobs are around.

Apart from a handful of larger companies (Google, Atlassian, Campaign Monitor) there isn't much of a software industry in Australia, and even then it's essentially limited to Sydney and Melbourne. Most developers work in-house for banks, the government, web agencies etc. I've met some very capable developers, but many of them are working in roles below their potential.

Longer term I fear that without a significant software industry, Australia will find it difficult to develop new talent and keep experienced top-flight developers from seeking greener pastures overseas. Personally I believe the high-cost issue will largely solve itself as the mining boom slows and the property bubble pops...
You might want to look into roundcube [1] which is another PHP webmail application that has a very nice UI,, (more) mature codebase, and is on an (arguably) better license (GPL3). I can't say how it compares to rainloop because the demo servers are slammed right now, but I would recommend roundcube in general.

[1] http://roundcube.net/
I'm talking about the electronic version of breaking and entering, which would be incredibly difficult to prove someone did. And if falsely accused, would be incredibly difficult to disprove.
I'm an Australian that left 8 years ago, and have been living and working in the US and Canada ever since.

I agree with you 100%.

Australia being expensive: Anyone that says that needs to wake up to how lucky they are to live in "the lucky country". After living a few years in America (and to a lesser extent Canada) I'm more than happy to pay extra for "stuff", given life is so, so much better. Heath Care, Education, decent infrastructure, paid vacation, sick and maternity leave, just to name a few. Also consider someone working minimum wage in the US ($7.25/hr) has to work ~206 hours to get that $1500USD MacBookPro. In Australia, someone on minimum wage ($16.37/hr) has to work ~113 hours for the same $1849AUD MacBookPro. Obviously minimum wage earners are not buying MacBookPros, but given that wages scale similarly, you see living/working Australia is actually better than living/working in the US.

Timezones: Wait, it's a complaint that the world has timezones now? Give me a break!

Foreign Investors want a global vision: The OP of the article is upset that foreign investors want to get a boat-load of money back on their money by reaching as many customers as possible? Does this person not understand how investors think?

In short, cry me a river. I challenge any Australian who disagrees with me to go and live in the US for a few years, then see what you have to complain about.
Embarrassing.. and fixed. Thank you
Creating it in Go would relieve the user of installing and/or compiling any other libs to run the application in Python, a set of static binaries which could be compiled to run on FreeBSD,OSX,Linux,Windows without much effort.
..which is surprising. Housing prices are at an all time low. Many of my friends now have houses..and they don't make that much more than minimum wage.
Drone.vc RFC #2: Precision Passive Tracking
* * With the original weights for the rules:

- Simulation without information about already played games:

Brazil 25%, Spain 14%, Argentina 14%, Germany 14%, others <3% each

- Simulation with information about already played games:

Brazil 29%, Argentina 17%, Germany 16 %, Netherlands 7%, others <5% each

* * I tried to find “better” weights. The only rule that said that Spain was not so good was the SPI (ESPN's Soccer Power Index), Let’s cheat and use ELO=0.5, SPI=1, Home=1 and the others = 0.

- Simulation without information about already played games:

Brazil 26%, Argentina 15%, Germany 11%, Spain 10%, Chile 4%, others <3% each

- Simulation with information about already played games:

Brazil 28%, Argentina 19%, Germany 14 %, France 7%, Netherlands 5%, others <4% each
YouTube doesn't even allow downloading in 1080p anymore.

Offtopic, but what do you mean YouTube doesn't "allow" downloading in 1080p? If you can watch it in 1080p, you can download it in 1080p.
https://hn.algolia.com/?q=yunohost#!/story/forever/0/yunohos...
Can it make the opposite and turn code into music?
You can also have procedural music.

Viznut (a legendary Finnish democoder) did some experiments to see how short you could code something that still sounds at least interesting:

https://www.youtube.com/watch?v=GtQdIYUtAHg

I also wrote piece of JavaScript that can play these programs in case you want to try create your own: http://www.bemmu.com/music/index.html
Interesting perspectives.

To touch on your 3rd point, that is the inherent problem in these industries: the companies are in it for the long-haul. Do they wind up innovating? No. Epic Systems in healthcare is a fabulous example: http://www.forbes.com/sites/zinamoukheiber/2013/05/15/a-chat...

They code in MUMPS. MUMPS predates C. Yes, you heard me right. The healthcare IT platform that is espoused across the industry is based on what should, for all intents and purposes, be a dead language.

I've taken a bit different approach with some of these industries, and I come from the belief that it's going to require a combination of intellectual partners (like universities and research centers) together with startups to make any sort of meaningful difference.

I'm right now in a niche segment of behavioral health. Funny enough, there is a law that was passed right before the ACA ("Obamacare") that mandates that hospitals put electronic medical records into practice, and over time develop "meaningful use." The big guys have been slow to deliver, the insurance companies want to see change, and the hospitals have to do it for fear of penalty. A lot of people saw disaster, but I saw an opportunity. Over the last several months, I've been working to commercialize some of my research coming out of grad school on this. I was fortunate enough to balance theory and application in school, and this definitely left me jaded towards the SnapChats of the world.

As to your 4th point, that doesn't surprise me at all. I'm Chicago-based, and everyone views the Midwest as a rust belt. I co-led a research initiative that looked at startup activity in the Midwest around ag, health-tech, and advanced manufacturing: http://worldbusinesschicago.com/techcluster

Sorry for the shameless self-promotion, but I feel bad that more dev guys just aren't aware of what's out there. It frustrates me so, so much. We glorify things in the industry that we just don't need.

Here is Siebel's talk: http://ecorner.stanford.edu/authorMaterialInfo.html?mid=2110

Watch it. He's a horribly boring speaker, but the content spoke to me. It's what convinced me to look for the low-hanging fruit in health-tech. Funny; now that I found a problem that can be addressed (that isn't), and have a defensible business model, bringing on a technical co-founder can be so hard for all the reasons we just named. Ha!
> Even moving to the suburbs isn't an option anymore.

Sure it is. Just rent instead of buying. I pay less to rent a 3 bedroom house in Melbourne's inner suburbs than I did for a 3 bedroom unit in Irvine, CA. Granted buying a house in Australia is very expensive, but Aussies will learn soon enough the folly of not heeding the lessons of the property bubbles in the US, Ireland, Spain etc...
I wonder if tactile VR gloves will be reality soon. I'd imagine that there will be some tiny nano linings inside the glove that could be controlled digitally, which would create a tactile sensation, such as holding a gun or a steering wheel.

Moving on from just hand gloves, we could even produce g-force enducing hydraulic chair, for example, when a car accelerates inside the game, the chair would lean you back, causing you to feel gravity pulling you back to the ground, when inside the game, it would feel like you were being thrust backwards to your seats.
I like the idea of using a MIDI trigger pad for things like keyboard shortcuts or text snippets. I'm sure you could make something similar on the cheap with an arduino.
http://thecodelesscode.com/case/132 ;)
Bypass PayPal's Two-Factor Authentication
"God Particle" Collider Rebooting to Be Most Powerful Yet
Yeah, about 5 years or so. I'm using the vim plugins for both atom and sublime. I liked the minimap, and the default font. More importantly, it was hard for teamates to get used to when doing pair programming.

Also, it's not really that different, save for the modal editing stuff. Anything else there is either a plugin, or a clone, or better stuff.
Messi is one of the smallest soccer players at the WC and yet the best player there. Size doesn't matter.
I also like Seattle. The tech scene, lots of good coffee shops, nice people, nature nearby, music, great food, interesting neighborhoods. I like cold rainy weather, but don't like a lot of snow, so Seattle is ideal for my weather preferences.
Then again, the big tech players are hardly good sports.
>People seem to think that no one is poor in America, and that all Americans live in posh homes and drive expensive cars. And once you enter the US, all your troubles shall come to an end.

Well, to be fair if those countrymen are solid programmers that image of the US is pretty true. Solid coders are in huge demand and you certainly won't be poor if you apply yourself in that field. As to the social/cultural aspects, it's worth mentioning that the culture changes massively depending on where you're physically located in the country.

I don't mean to say everything is perfect here, but it's not the den of poverty and violence that a lot of media outlets try to make it out to be. Like everywhere else, there's good,bad, and everything in between.
Finally, find out: was the zero really reinvented in India?
300,000 Websites Still Haven’t Patched Against Heartbleed
Actually, there are both closed and open source drivers for Thinkpad fingerprint readers. The open source ones are even well-maintained:

https://launchpad.net/~fingerprint/+archive/fingerprint-gui
It's not clear in the post; why was Krebs targeted by this criminal?
It may have improved, but when I used roundcube on webfaction a year or two ago, it was unusably slow.
Another point is _who_ should visit. Not just the sales guys. Not just field support. Not just the CEO.

Have low level development folks able to visit. Have the CFO (a consummate insider job) or someone from accounts receivables visit a customer. Their impressions will spread through your company. We did this at Cygnus and it was great!
I don't want to get too political here but the previous government massively understated the cost of FTTP broadband. The money saved is much more substantial than $1bn. Whether it's a more effective long term investment is another question altogether.

Also, prices were not scheduled to drop for the broadband service. The Labor governments $30bn costing was predicated on NBN users paying more than they currently pay for ADSL services, and for those charges to increase annually.
Still patiently waiting for a miracle in the area of male pattern baldness... That is, something other than a can of crap you sprinkle on your head. Sigh.
A lot of this stems from the fact that health IT systems aren't interoperable. Take a look at Epic Systems (the leading vendor). They code in MUMPS, which predates C as a language.

I'm exploring a startup in data analytics for behavioral health, and there it's even worse. Unlike blood pressure or cholesterol, everything is based on intuition. It's what Vinod Khosla means when he refers to modern medicine as being like witchcraft.
FWIW I used the word "pipe" very loosely to mean everything to the left of the interpreter. That means the unix pipe itself, but also the curl program, OS feeding it, network it's on, remote server feeding it, etc.

There are several scenarios where that logical pipe can fail. It doesn't have to happen cleanly on a 64-kb unix pipe buffer boundary. Some examples may include someone bouncing an office router and all TCP connection states getting reset, a neighbor microwaving lunch and WiFi radios croaking, a carrier having networking issues and connections timing out, the remote server restarting the web server after a software upgrade, etc..

I'm not sure curl (even with -s) will gracefully handle all of these cases defensively (doubly-so if the HTTP server was sending back chunked-encoding without explicitly specifying a Content-Length)

(anecdotally, since you mentioned flipping bits, it's possible but unlikely until you have to deal with it - http://mina.naguib.ca/blog/2012/10/22/the-little-ssh-that-so... )

At the end of the day, having not even considered what an active attacker could do but just what could naturally blow-up a small percentage of the time I'm inclined to say "that's bad, mmkay?" and try to persuade developers not to push that as a safe installation method. Even if they've triple-checked that the code they've written + interpreter can not possibly do harm in that case, the signal we should be sending (primarily to end-users) is that this may be an unsafe operation.
On a VPS, you are compressing your entire network architecture down to a single OS instance. Still, the basic rules apply:

- Do not run unnecessary services. You probably don't need to run ntpd, for example.

- Choose your necessary service packages carefully, and learn how to configure them securely. qmail or Postfix over sendmail.

- Bind all non-public services to internal addresses or sockets only.

- Enable your host packet filter, write good rules.

- Separate services as much as practical. Jails, zones, etc, whatever your OS provides.

- Configure sshd properly. Consider blocking connections from untrusted IP addresses. Consider port knocking.

- Minimize user accounts.

- Follow security announce lists for the few public-facing servers you run.

- If you're running your own software (web app or whatever), make sure you learn how to avoid common mistakes.

- If you find you must run something with a poor security history, do it on a sacrificial host/jail/zone/etc that can be recreated with minimal effort. Make the public facing server a content-clone of some other protected instance.

That's pretty much the minimum for a standard random-acts-of-violence threat model, in my estimation. If you have more pernicious attackers, this will not be adequate. If it sounds like too much work, keep good backups and hope for the best -- but remember, recovering from a breach is a heck of a lot of work too. Time spent now saves multiples later.

If you're handling sensitive user data, hire someone who can do all of the above in his or her sleep. Or reconsider your choice to handle sensitive user data.

There is always a balance to be struck, but this is the baseline because it accomplishes two things: it prevents all known and most expected vectors of attack, and it contains the damage if you are ever surprised.
I just want to say that this sounds like an amazing and much-needed service. I totally understand where the comment from MarcScott is coming from, but from my brief experiences in the edtech world, it definitely seemed like teachers were the ones largely uninterested in helping developers make a better product, not the other way around.

At every edtech or digital learning meetup/conference my developer colleagues and I went to, it was all other developers, non-profits, and edtech startup people, but almost never any teachers. And yet, all of us were dying to connect with classroom instructors! We understood of course that teachers were super busy, but edtech is a two-way street. Teachers have to meet developers at least part of the way if they want edtech products to improve, right?

Anyway, I'm really thrilled that you're finding those teachers who are willing to give feedback and beta test and putting them in touch with developers. I wish this had been around a few years ago.
I dont mean to hijack the post, but I recently found LinkedIn's resume generator

http://resume.linkedinlabs.com/

and I love it. Would Purzue have a plugin to import your LinkedIn profile or Github profile for example?
Absolutely disgusting.

@everyone

Did you vote for the 2 party dictatorship?

Are you going to vote for it again?

You are aren't you?
This could be related to the fact that soundcloud is an european company and none of the legislation in Europe actually provides a means for donating works to the public domain (see http://en.wikipedia.org/wiki/Public_domain#Dedicating_works_...)

I remember the creator of SQLite talking about this on a very old episode of the FLOSSWeekly podcast where he said that this was somewhat hindering adoption because in Europe the legal status of SQLite wasn't clear.
I think one of the biggest things people should learn from their first startup dying is that it's better to say here ran a coward than here died a lion though.