skysight-inc/HackerNews huggingface dataset:
I can't figure out why some developers love writing lines of code like that. It's like they think there is a cost for every line of code so they attempt to use the fewest lines possible while making their intent difficult to discern without comments.

I had a young developer work for me that did this all the time. He was actually quite brilliant - but he would put sometimes 20 statements into one line of code that would scroll past the end of the screen. It was difficult to discern intent but even worse it was impossible to debug. I asked him several times if he was taking his programming style from:

http://thc.org/root/phun/unmaintain.html
They can lock you out, when you are not using DRM.
Mac OS Screenshot does not Allow DVD Player to Appear in Captured Region
The secret button at pedestrian crossings
You could write (or re-use) a RPython brainfuck interpreter, so you'd get a JIT for free :)
I starts conquest of muslims from 15-16 century , effect of that in society and culture. Then european conquests from 18 century and then british rule for 200 years, first 100 under british east india company and then under queen victoria.
India got its freedom in 1947 but for me it was never free. Indian and african countries were not freed to be developed and stand up for themselves. colonizers made sure of it before granting freedom to these countries. As an Indian living in the capital all my life I can say that I dont see the country getting better until everything that is working here is dismantled and fresh new start happens with new models and technology. Which seem like it will take a long and hard time added with a lot of destruction thats already happening to achieve that.
I've actually just looked at the standard and there is a clear example something like this:

int x;
int const *cpx = &x;
int *px = const_cast<int *>(cpx);
*px = 1; // defined behavior, modifying non-const object through non-const pointer

While this may seem ok here, consider that the same applies to functions taking pointers to const. While this usually means the function won't modify the pointed-to objects, there is no guarantee from the language about that.
That makes a lot of sense. However, I'd still consider your work a success if it broke the 30,000 barrier in cell count. The brainfuck spec says at least 30k cells. It's not an upper limit.

I get why you excluded negative numbers. I was wondering if I was correct in understanding the cell size to be 2 bytes because it's typical for it to be 1 byte.

Am I correct that - on a cell at 0 (or + on a cell at MaxVal) is a no-op, just like < and > at the end of the tape?
What you describe is a reoccurring theme when it comes to JavaScript applications in general, but it's much more visible when games are involved.

The unfortunate reality is that JavaScript, WebGL, and these other technologies running on extremely powerful computers (even if we're talking modern mobile devices) still can't compete with games written back in the 1980s, in C and assembly, which ran perfectly fine on what are now 25-year-old 386 PCs with a mere fraction of the processing capabilities of a modern system.

As an industry, or even as hobbyists, we should not be in this position. At best, we can call the current situation a complete stall in advancement. At worst, but more realistically, it's been a significant step backward.
They thought of that:

> Yep, it’s an axe trophy.

> Good luck clearing airport security

http://battlehack.org/berlin/#prizes

Just didn't have a solution obviously ;)
aren't games on google+ now being deprecated?
anyway, I think one logic game there had an internal scoreboard (as it was being published from many other locations) and scoreboard copy was also being pushed to g+.
I recommend temporarily disabling web workers, which should provide better visibility into js bottlenecks in tools such as Chrome's timeline panel [1]. Also check out this google IO talk [2] on performance debugging the WebGL/HTML5 demo "Find Your Way to Oz" [3].

[1] https://developers.google.com/chrome-developer-tools/docs/ti...

[2] https://developers.google.com/events/io/sessions/324908972

[3] http://www.findyourwaytooz.com/
...worse, Japan's addresses are chronologically assigned! You're essentially limited to a big lookup table by the structure of the system.

This is both a comical inconvenience for travelers (try finding an address without speaking the language), and a huge problem for porting any sort of local-data application to Japan.
There is a tutorial on how to add JIT to the interpreter written in RPython (if CPython 3 happens to be slow) http://morepypy.blogspot.ru/2011/04/tutorial-part-2-adding-j...
Microsoft just become irrelevant :-)
> Singapore [...] being a city-state, there is nothing useful to put in a "city" field

Good point, which should apply to most city-states (e.g. Monaco, or the Vatican)
The posited malware can't initiate an automatic transaction, since an OTP from the bank dongle is needed.

This attack hinges on intercepting a human entering in authentication information by hand into what they think is a secure, valid site. The human will be doing manual stuff, but the code is automated.

The account number has been passed out of band

If it was not passed out of band, or a phishing or mitm attack changes the account number and the user doesn't notice, this attack will work. It's a difficult but rewarding targeted attack similar to those used by the chinese, eastern europeans, etc.
Easy test: If you type you password in on random sites, it's not secure at all.

Also:

momof3g8kids

It would take a desktop PC about
37 years
to crack your password

But radix had that password (and thousands of others) in an hour[1]

[1] http://arstechnica.com/security/2013/05/how-crackers-make-mi...
My god, people would use this? I was hoping it was one of the sites where as soon as you started typing, it flashed "wtf are you thinking you moron".
This looks like brainfuck compiler (frontend, as in, it takes brainfuck and makes executable), not brainfuck to llvm (backend) compiler.
Bug #1

"Microsoft has a majority market share in the new desktop PC marketplace. This is a bug which Ubuntu and other projects are meant to fix. As the philosophy of the Ubuntu Project states, "Our work is driven by a belief that software should be free and accessible to all."

"Ubuntu software is free. Always was, always will be. Free software gives everyone the freedom to use it however they want and share with whoever they like. This freedom has huge benefits. At one end of the spectrum it enables the Ubuntu community to grow and share its collective experience and expertise to continually improve all things Ubuntu. At the other, we are able to give access to essential software for those who couldn’t otherwise afford it – an advantage that’s keenly felt by individuals and organisations all over the world."
* http://www.ubuntu.com/project/about-ubuntu/our-philosophy

Non-free software leaves users at the mercy of the software owner and concentrates control over the technology which powers our society into the hands of a few. Additionally, proprietary software stifles innovation, maintains artificial scarcities, and enables malicious anti-features such as DRM, surveillance, and other monopolistic practices.

... etc ...

A majority of the PCs for sale should include only free software.

* http://www.gnu.org/philosophy/free-sw.html
* http://www.debian.org/social_contract#guidelines
* http://www.opensource.org/docs/osd
sure, but you still have problems, even with a well structured system. Postcodes and addresses are designed for delivering mail, but then society tries to shoehorn them into doing other things. As an example consider the query "show me all addresses in the database in Bavaria". It sounds very straight forward, but it isn't because postal address don't contain that info, you have to keep a mapping of postcodes to Länder or whatever other geo unit you want to use. Likewise there are all sorts of very well known places that have no correspondence to official postal directories, for example here in London if I ask someone to meet me in Chinatown they will know exactly where that is. But it doesn't exist as an "official" address.

We (my company Nestoria - a real estate search engine in 8 markets) have to geocode tens of thousands of listings a day all with incomplete or haphazard address info. Here's a talk one of our guys gave a few months ago about how we do it. TL;DR - geocoding real world data is hard

http://www.lokku.com/nestoria-geo-system/

he's going to give a much more detailed talk at the next #geomob if anyone is in London and interested:
http://geomobldn.org/post/47481139743/date-set-for-july-geom...
The language doesn't define "correct const usage" the way you see it. It only specifies what is defined and undefined behavior. Casting a pointer-to-const to a pointer-to-non-const and modifying an object via that is defined behavior as long as the original object is not declared const. (see my comment above)
Another point I'd like to add. Quite a few addresses in India tend to have popular "landmarks" listed with them. Something like: Opposite <a popular establishment> or Near <a well known park> etc. This makes it very easy to physically locate them!

Here's an example from Citibank India website:

Citibank,
No. 91, Prestige South End,
South End Road, Opposite Surana College,
Jayanagar, Bengaluru - 560 004
5 reasons to hate hackathons
Oh, we're still fighting this "war"?

Software is about choice and productivity. It's great that we have choices and I embrace a variety of them throughout my personal and professional life, but this "us against them" philosophy belongs in a boardroom and not in the hands of users and creatives.

We can say Ubuntu has come a long way (and it has) and that it's done a lot for gaining mind share (bingo), but a huge turn off for me in OSS is this "us against THE MAN" philosophy, why can't software just be software, a means of expression that you gives you choice?
A Future Human Tagging World presented as "cool" by media
How Google-Plus can kill your traffic by 90%
"We have a tradition at PayPal of supporting hackers. " Really?
The future of classical music
interesting... After about 3 years I agree. But a first job, someone's got to show you the ropes and get you up to speed with processes, testing, coding standards, help you get unstuck from time to time. I guess by boss I don't necessarily mean team manager, but whoever that is, mentor, direct senior. If nobody has that role, you'd better be pretty self-directed. 'Flat' better not be a synonym for free-for-all with no process, standards, code review, or you might learn some bad habits if you're not a natural (and even then.)
No southern hemisphere city? :(

Why we down here are always forgotten?
Please look at the link I provided above.
There is the link to an early revision of wikipedia.
Where it states clearly he was an investor.
Obviously you shouldn't enter your real passwords there, but the site could have a valid use for discovering the strength of passwords you would generate for some hypothetical service that is actually not used.
Unix time is monotonically increasing, as long as there are no negative leap seconds (and there never have been). It's just not uniformly increasing, since it tracks UTC.
Ah my friends, this is what happens when you reach scale. It means you have to protect against every little black swan that comes along (mainly for PR reasons) which overburdens the rest of the white swans.

This reminds me of all of the companies trying to compete against PayPal, who tell themselves and customers that "We'll do it better this time I swear!". I can't wait until they try to reach the size of PayPal and realize their whole business model is based solely on fraud prevention. Something not easily, dare I say possibly, solved by any algorithm.

This is also why I like 37Signals, since they let their customers outgrow their software. For every project manager that says "ugh basecamp doesnt do this, I need something else", 37Signals quietly says "see ya later, you'll be back in a year!"
That is pretty special. Looking at the code it would take me years to make that!
Shuttleworth's well-articulated comment and decision to close bug #1 show the kind of open-minded, flexible thinking I wish I would see more frequently from other project leaders in the free/open source ecosystem.

The decision to close the bug reminds me of a quote attributed to John Maynard Keynes. During the Great Depression, he was accused of changing his position on monetary policy, to which he responded, "When the facts change, I change my mind. What do you do, sir?"

As an Ubuntu user, I'm happy to see the project shifting its long-term goal from "dethroning Microsoft on the desktop" to "delivering the best possible experience for developers and regular people across all devices."

--

Edits: added "on the desktop" to "dethroning Microsoft."
I know nothing of the back story. I want to give praise to the Marco for this: "I accidentally built a business that I’m not very well-suited to run." A profound admission, showing real personal insight. I had to realize this about myself recently, and it wasn't easy.
"It's all about the he says she says bullsh*t."
I've read the OReilly AngularJS book, and am now reading a new pre-published version of an AngularJS book from Packt: http://www.packtpub.com/angularjs-web-application-developmen...

I'm only 2 chapters into it, but it is excellent so far. If you search for Packt coupons, you can pick up the ebook for around $16.
>And then finally Europeans happened - the same Europeans who invented "individual rights, scientific enlightenment, and all that".

And what was their effect? Governance that, while not fully democratic, was less capricious than that which preceded it. A dampening of some of the worst effects of the caste system. Fewer women burning on pyres. A national language that's internationally prominent, which India has reaped enormous economic benefits from even as the country's leaders deny its value for political reasons (and suppress the poor and entrench their own position by promoting regional languages, while sending their own children to english-speaking schools).

It's fashionable to pretend that colonialism was nothing but evil European exploitation. But the reality is that many of the people at the bottom saw great benefits (and conversely the mother country rarely if ever saw a return on investment).
The "creepy questions" -- in the USA at least -- are just another revenue stream for the three credit reporting agencies. They (or third party companies paying them for the data) pull data from your credit report and then ask multiple-choice questions based on the data. It's absurdly insecure given the large number of people who have subscription access to credit reports (landlords, car dealerships, employers, etc.). Even more ridiculous is that the questions are based on data that is often false. A scammer who applies for a credit card in your name provides a false address; that false address is added to your credit report and now can become part of the identity verification scheme. And of course the onus is on you to fix the bad data held by these companies.
Text Free Browsing: Chrome Extension
Because software freedom is important?
Memorial Day 2013: The Greatest Casualty of War Is Our future
Memorial Day serves as a reminder that “beneath the beauty of the lilies lies the ugliness of war.” This James Carroll metaphor perfectly captures the most profound meaning of war, and of all the things that we have lost because of it.
Thanks! That's a lot clearer.

(PS: Despite my criticism, HN is by far the best tech news site around. To everyone involved: Keep it up!)
I've turned it on, it instantly categorized my emails perfectly. Just yesterday I was bitching about having to create filter rules for mailing lists and such.

And then today this thing comes up. I'm happy, today is a good day. Unicorns and puppies everywhere!
I hear lots of objection to DRM in HTML but no alternatives. If EME is rejected and not added to the HTML spec, lets consider some alternatives:

1. Leave things as they are, so Flash and Silverlight limp along to serve DRMed content, and native apps are required to watch on devices which don't support plugins. Verdict: Not great, but hey it's how it is now.

2. Lobby the media owners to drop DRM. Verdict: Highly improbable

3. Lobby the media distributers (Netflix etc) to boycott media owners who won't drop DRM. Verdict: Highly improbable

4. Ask end-users to boycott purchase of un-DRMed content (and no pirate it, as they will only encourage the media owners to use more DRM). Verdict: Highly improbable. Us nerds may do it, but regular folk don't really care about DRM.

5. EME is implemented as a convention, but not in the official spec. Verdict: Possible, I think EME will be implemented in IE and Chrome with or without it being in the spec. Mozilla wouldn't I presume.

Can anyone think of any others?
I might be in the minority here, but these hackathons are a waste of time for exceptional talent; like asking a Heisman trophy winner to compete in Battle of the Network Stars.

These rising stars shouldn't be competing against each other to develop the best tool in the shortest amount of time. That ROI bullshit is at the heart of the problem.

If you want to challenge hackers, in the traditional sense, then continue to improve the security of your systems; they will still find ways to impress you.

If you want challenge hackers, in the more "dorm-room entrepreneurial" sense, then hire a bunch of them on 2-year contracts and let them do their own thing; they just might find a way to fill your pockets with cash.
.~#>'k

Hgdaa
>Oh, we're still fighting this "war"?

No, we're not. That's pretty much the point of the comment and the closing of the bug.
Simple experiment: Who’s tracking me online the most: Google or Facebook?
The Twitter logo at the top left is very disconcerting. It looks as if the website was made by Twitter, but it only points to the BattleHack Twitter account.
I don't think irrelevant is appropriate. Microsoft has very talented people on board and it keeps introducing novel products (Kinect, WP8,etc) You might like them or not but one has to give credit to try new approaches.

They are not the unstoppable force that they were before but I think that calling them irrelevant is a bit too much.
> Oh, we're still fighting this "war"?

I'm disenchanted with your double quotes.

This war is real and it will remain so as long as motherboards of generic PCs/laptops come preinfected with microsoft's signing key (which is even more evil than DRM).
Most interesting feature of the site is the counting of years :).
I got to 29 million nonagintillion years before I reached Infinity :).
I feel there's plenty of new technology around to make the cost of ignoring apps specific to a platform I don't use (at least on my phone, anyway) not a problem.
Why would you implement it yourself? Just integrate this standard and now your browser can talk to Hulu's CDM.
The topic is that the bug has been closed. Surely it is not fair to interpret that as a divisive action.
They can only lock you out of their content (as they are already doing). They can't lock you out of HN for example.
I would be very happy to be a tenth as irrelevant.
That's the first "wait, what?". However, if you actually try and work out that horrible if statement

!((_ok) ? true : (Math.random() > 0.1))

_ok ? false : !(Math.random() > 0.1)

!_ok && Math.random() <= 0.1

Seems fine...until you realise that this is the condition to exit early, it's still logging 90% of the time which is almost certainly not the desired behavior.

Not to mention _ok is a terrible name for that variable, and it's only ever being used as a negation. Why isn't it called _error or something?
I replied in edit but said the wrong thing. Corrected version:

Edit reply: it's a few refills but each is quick and lasts shorter than a battery charge. Would estimate 5 minutes for human needs every 3-6 hours is reasonable. I don't believe this is unusual long-distance driving behavior. And again, I don't think Tesla should be judged right now on their ability to cater to that market; we should be looking at how well Tesla serves those driving a couple hundred miles or several hundred miles in a more leisurely fashion.
Either you haven't read mark's comment entirely or you have serious reading comprehension issues.
My Epic Farewell Poem
In France there's a button at the same location that activates a (very annoying and very loud) bell sound when it's safe to cross. Needless to say I've seen it mostly used by curious/bored non-blind people.
Some tests:

'badpassword' 10 days
'bad1password' 37 years
'bad password' 546 years
'bad 1password' 333 thousand years
'bad password 1' 18 million years
'bad 123password' a billion years

As with all password checkers, there are problems here.

If you want a password checker, this one is still the best I've seen: http://dl.dropboxusercontent.com/u/209/zxcvbn/test/index.htm... (it correctly identifies all my above examples as terrible passwords)

But password security is much more about using bcrypt or scrypt (in case someone gets your database) and having timeouts and lockouts on password entry (to prevent brute-forcing through public channels).
Maybe it's an age thing, but I remember a time I could walk into most major computer stores and have literally no choice but to buy a PC loaded with Windows. The market had been distorted, and this prevented software being about choice and productivity, and instead about who had the larger marketing muscle.

To some extent this is still the case in some major retailers today, but they at least recognise that they're not offering choices. Their brush-off of Mac OS and Linux may be flawed (or not), but that the existence of alternate OSes is even acknowledged is quite a marked change from about a decade back.
His statement addresses your complaint.

> There is a social element to this bug report as well, of course. It served for many as a sort of declaration of intent. But it's better for us to focus our intent on excellence in our own right, rather than our impact on someone else's product.

So you're right, and he agrees, Ubuntu should be focused on being the best it can, rather than trying to "fight" the competition.
calc is bitwise const function and therefore is perfectly threadsafe: http://herbsutter.com/2013/05/24/gotw-6a-const-correctness-p...

Threadsafety(in this context) means that any sequence of calls of const-functions from any number of threads will have the same result. In your case there is a single const function, and you may call calc(0) from several threads and it always will return the same value. So it is pretty threadsafe.
Also, if we ignore for a moment how hacky it is to implement throttling like this - why would someone write

if(!((_ok) ? true : (Math.random() > 0.1)))

when you could use

if(!(_ok || Math.random() > 0.1))

or just

if(!_ok && Math.random() < 0.1)

?
"the site could have a valid use for discovering the strength of passwords you would generate"

That's what I did - generate a new password using my usual method.

Apparently "it would take a desktop PC about 13 duovigintillion years to crack your password" - is that long enough?
Of course, it is Google.
That's not even the worst part - searching for a Parse specific issue usually requires "parse.com" in the query (with the quotes) because it's such a common word in programming.

That said, I'm a happy customer!
This will save me a lot of time! Ps: I Love the Stubborn programmer!
Recent Google Video Dives into Mobile Shopping Growth [webinar]
Glad you posted this, the title originally had me wondering if "cloudstack" was a new generic term for "stack", with the implication that the stack used cloud services, or if it was a name-brand product they were using.