skysight-inc/HackerNews huggingface dataset:
Copy pasting huge amount of JS libraries does not seem to work for me. Is there a way of uploading files from my local hard drive?
absolutely..!
Dropproxy (Dropbox privacy tool) public API released
I agree completely, it's not like "intelligent routing" is some standardized feature that people have come to expect from Heroku. What people expected was that their app could scale easily on Heroku which as it happens was not strictly true, but to some extent below some threshold it was probably true for most people. People here keep showing a poor understanding of the basics of queueing theory and system administration, as if "intelligent routing" is something they purposely removed just to screw people over.
Put a litmus paper in it, and you will be delighted by the red color that you will see. When you clean something you need either base or an acid. Vinegar will do just fine too.
because they can only be set on server side, thus they have more priority
Last time this came up on HN, it was thought to be a clang feature.

Edit: While we're talking about dark corners, please stop casting functions that return void * . If your code lacks the declaration of the function, the compiler will assume pre ANSI-C semantics and generate code returning an int.

On machines where pointers do not fit ints (basically all 64bit machines), you just silently (due to the cast there is no warning) truncated a pointer. Worse, it may work depending on the malloc implementation and how much memory you allocate.

We have to fix these kinds of bugs on OpenBSD a lot, please help by typing less and let the compiler warn you about silly mistakes :-)

And yes, C++ fucked this up for C. I'll leave it to Linus to say something nice about that..
bookmyshow has a good simple form as well
yes it does. yeah, *.heroku.com was a bad idea too.
It's not "just technology", it's a new kind of hometown, a new place of existence, a new appendage of the mind and body. If you don't get it, you probably never will, just like I'll never know what it's like to have six fingers.
I'm sorry but how is this post hacker news worthy? One can just read the mongodb manual [1] and find out for himself.

[1] http://docs.mongodb.org/manual/reference/method/cursor.sort/
Preserving the “Web before the Web:” Minitel history in danger of being lost
It's a C99 feature, and clang's the only compiler I know of that produces the diagnostic (and only in later versions)

btw; I wrote this talk.
the reason I prefer measuring energy use rather than distance travelled is that it also taxes less efficient cars.

safe + efficient is the goal for transport in my view!
The most egregious example in common usage: PHP.

http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-de...
I think it looks worse.
I remember when the Pentium F00F bug was reported, I tested it by doing:

char main[] = { 0xf0, 0x0f, 0xc7, 0xc8, 0xc3 };

(and yes, my machine -- a Pentium MMX -- hung solid and I was rather shocked!)
One hour video tour of the International Space Station
I didn't know that. To answer my previous question, clang doesn't fire a warning when passing pointers of any size to the function foo.

And by the way, nice talk, it's great learning these dark secrets of C.
That flash grenade example seems contrived. The incident sounds like the result of poor decisions made by the police, not because of the usage of that grenade.
And I don't think the site has improved in any meaningful way. Someone should fork it and make something better.

(Also, the headline should be 'Dark Patterns: Are They Ethical?' not 'Is It Ethical'.)
What about only letting users customise CSS and HTML? Can that be secure?
I wouldn't rule out remote work. You just need a business/team that works together and values learning.
3D printing is not a system for intercontinental information interchange. The Internet is fundamentally different from any other technology (apart from its direct predecessors like BBSes), and cannot be reasoned about by analogy to any other technology. It's another layer of abstraction in human interaction that supersedes all previous layers (e.g. spoken language, written language, printing press, telephone).

Not "understanding" the Internet (as I intended the word "understanding" in my previous post) is like not "understanding" what it's like to be born with an extra arm.

In the same vein, those who will grow up with 3D printing, never knowing a world in which it doesn't exist, will think of it in ways that those of us who already had well-formed views of the world can't fathom.
That's fun. Cause I remember this "x+++y;" as a question in one of my university entrance exams!
A very well-known and recommended book in this space is "The Web Application Hacker's Handbook."
Sharing a room with a brother is not that bad. You just learn to share the spaces. If I wanted to be alone, I usually took a walk.
How Duff’s Device Works
Hidden features of C
At the end of the day Heroku are in the wrong here. Performance issues which Heroku basically wouldn't admit until they were outed about them meant that companies would have invested tonnes of time and effort which in turn equals money on trying to fix issues that were caused by Heroku the whole time.
Curious. I've seen some more people saying this... and the game being not a MMO is precisely the reason I've just pledged.

Don't get me wrong, I love MMOs, but they're not only games, they're designer drugs. I keep away from them because I fear losing my social life. So I'm glad this game is not an MMO.
It's a good measure, but I'd say most marketing is ethical

Several are sleazy yes, but I wouldn't say it's most of them
Bomb dropping algorithm
More Flexible Linking
I find it odd that whoever build those houses decided to make tiny apartments instead of larger shared ones. For cooking, having a shared kitchen - even if used by many families - would probably help a lot, specially since it's cheaper and easier to make a big communal meal than having to cook for each family.
JS CSS HTML are very mixed in each other. It is very hard to allow only CSS/HTML.
I think we all know what language (s)he meant.

But about those dark corners, I guess the point wasn't to present any particularly nasty gotchas, but rather some precious little lesser known tricks. C has plenty of very well known features you can be bitten by (mostly related to memory management, of course). While the presentation reiterates over some of them, the most valuable parts are about various _good_ parts of the language which are rarely heard of (viz. the usage of `static` inside brackets).
Very cool.

I remember hearing that the disallowal of pointer aliasing was the main reason that it was possible for a Fortran compiler to produce code that could outperform code from a C compiler: It allows the compiler to perform a new class of optimizations.

It would appear that the restrict keyword lets C programs regain that class of compiler optimizations.
The Day After Patch Tuesday: Effects Observable in IP Darkspace Traffic
Is being a programmer really THAT cool?
Isn't that basically the entire point of Mint?
I'm not sure if this is the future. Perhaps for the masses, to some point, as you write. However, I already find myself uninterested in any large productions, cause in the end they are indeed all the same... I gamed a lot in the past. Nowadays, I am buying Humble Indie Bundles, and I am truly excited about Kickstarter funded games. It seems to me, that the real creativity is transitioning to there.
Maybe they didn't swear on the bible, but when you use a tool from a company with which Heroku has a partnership, you expect that tool to give accurate readings. I would, at least.
But a pointer is not the same thing as an array, a pointer does not carry the size of the allocated space which an array does in the same scope.
Surely must be a reason why?
Could we not reverse-engineer it and write our own servers?
I use shutterstock.com - with their cheaper plan it works out at 2$ per picture up to 1000px wide which is usually great for blog posts.
I like their search too.
I'm looking forward to a more open development model, than the "dump here is the latest code" model Google seems to be using.
Sleazy is a subset of non-ethical, not an intersection.

If you wouldn't want to see it done to your mom, it's unethical.

It can also be sleazy but it starts with not ethical.

You cannot do something sleazy that is ethical.

You might be thinking of illegal.

You can be sleazy and legal. You can also be legal and unethical. (Thanks to some lawmakers and enforcers who are also unethical and sleazy.)
The compiler can't know at compile time with a naked pointer like it can with an array. [static 1] is handy to say it must not explicitly be NULL, as if it were optional, however.
For a shining example of dark patterns, simply try to book a flight on Ryanair without accidentally opting in to their upsell products.

Try to continue without insurance? Massive popup. "Last year X,000 people lost $$$... can you really take the risk?"

And two buttons. One big green one, "Continue with insurance" and one, tiny, non-button text link saying "No thanks, I'll take the risk."

That's one example. There are dozens.
If the simulation is more complex than a gaming PC can handle, wouldn't that mean that EA needed to (if at capacity) provide a better machine (that they have to maintain) for every copy sold? That doesn't seem sane.
it was AUD12 per square foot. So something like AUD180/month for one of the cages.
That sounds like a university to avoid.
requiring anything from the user is already.
If San Francisco allowed the sale of contaminated food there would be demand for it from people who have no choice. This is really a consumer rights issue. The landlords should provide a basic standard of safety for such high rents. The scope for exploitation is huge and the government should protect people from that. The size issue is less important.
Preventing cheating might make sense in competitive PvP games, but makes no sense at all in a single player game that has traditionally been played offline.
I dont have much money , but i'll never fly with these punks. I did it once in 2002 to go to Eire , thought the plane would crash.
It's impossible to have a static decision procedure about dynamic properties of programs, such as the size of dynamically allocated memory areas (Rice's theorem). So, it is necessary to either include false positives (correct programs rejected) or false negatives (incorrect programs accepted).

Sound static analyzers fall in the first case, but require a lot of work to become precise enough to be used (ie, to reduce the number of false alarms). Compilers fall in the second case in the sense that they don't have to honor such a clause. And in the C99 norm it's actually a "shall" (it just couldn't honor a "must" in that case):

"If the keyword static also appears within the [ and ] of the array type derivation, then for each call to the function, the value of the corresponding actual argument shall provide access to the first element of an array with at least as many elements as speciﬁed by the size expression."
Coka-Cola needs to quickly bring to market a sugar-based pesticide under a different name that costs less than Coke.
I wouldn't be too terribly shocked if people just sucked it
up and bought it anyway as long as the servers are stable.

Agreed. I have a couple of friends who are avoiding it, but I have colleagues that are going to get the game anyway despite whinging about EA being terrible.

(The above is anecdotal at best, but my gut feeling is that this will hurt EA in more than the very short term. See also: Blizzard with Diablo 3.)
SellMojo Wishes To Help SMEs Set Up Stores On Facebook
The worst I've encountered recently was Mastercard. They call thanking you and your family for using their service. They say as a thank you they give for free, card protection services, by accepting their thank you/free gift your opting in for a reoccurring service that will charge you next month. Its the devil's wording.
People are (even I was) taught Java to believe that if you embrace Java, you no longer have to worry about security, without detailing them on what kind of security problems are alleviated by Java. And Oracle has proved itself highly inefficient when it comes to responding fast with patches.
In my university they always told me to cast the return of void * functions, I thought it was just to avoid the warning saying "automatic cast of void* to int*" or similar.

Thanks, I will take that into account.
6 Time Management Hacks
Yes, but I expected some kind of "You're passing a pointer as an array of size n. I can't check the size, but you should make sure you've checked it".
Good, because I was missing a slide:

= Bitfields =

Not even once.

;)
Whether HUD makes or does not make any sense is really up to discussion, I like pieces of the HUD and I think it can be great for my laptop (12''). That's a bit irrelevant though, since Unity does not work, has tons of bugs and you can't change anything (well, you can, but then you just expose more bugs). Also, even if the HUD were useful, it's responsivness is so sub-par, that's impossible to use. I for one don't have patience to wait after keystroke and before starting typing. It's an absolute engineering disaster and this is what is the real problem.
Thanks for posting this, I'm going do try writing a NLP bot that identifies some "dark patterns"
It's pretty well explained here

http://en.wikipedia.org/wiki/Restrict
Yupe. :|
What if they are closing the api simply because no good or successful product came out of it and very few people use it. ..

"Even more sadly, I think Netflix won't even realize what they are missing out on"

They probably know better than you and most of us what they are missing since this is their API and it's been out for a couple of years...
when it rains, it pours.
New Thermoplastic Makes 3-D Printed Skull Implants a Reality
May I recommend https://js-quasis-libraries-and-repl.googlecode.com/svn/trun... as a good read. It examines a system that can safely escape content based on its context, and forms the basis of one of the template packages of Go.
You are free to hold your opinion. But at least be upfront with that you consider it an ideological issue as there obviously are reasonable alternatives to having poor people live in prison cells.
even original bootstrap goes flat in its new rc..!
Here in Sweden, we have students who have to live in old military-tents because of a crappy housing market.

http://www.sydsvenskan.se/lund/husvilla-lth-studenter-tvinga...
Sourcing the files from other servers solved that for me. I am still thinking in terms of a locked down jsfiddle I guess.
-Og patch for gcc - Optimize for debugging
A very interesting read!

By the way, shouldn't the right hand side text on slide 7 (the final part of slide 7) talk about the pointers z and x, instead of the values pointed at? (Aside: How do I write "asterisk x" on HN without getting an italicized x?)
Or, take money from people who are minted and have lots of money and use said money to make these poor people's lives less awful.

Wealth distribution on this planet is fucking terrible.
I'm not sure this is the case for Netflix, I think the answer is much simpler : very few people use it and no meaningful project came out of it in the last few years.

Also Netflix will eventually sell or shut down its dvd business. What will remain is a relatively small library of titles available on streaming...
If anything Bitcoin provides a full transaction record with transaction participant IDs (even if those IDs are not names). It probably helps intelligence gathering.
I don’t know 95% of my passwords. Opera does, though, and so does a little encrypted text file somewhere on my harddrive. And neither of the two mind if my passwords are all of the form GgSGlIXrPE1IrbhgWFBU.

Of course, I only use one computer rather than five different laptops, three tablets and fifty-two smartphones, in which case I imagine it to be tedious to sync them (unless you trust Opera enough to use Opera Sync or some such thing).
Science Explains Why You Have to Die
You know if you make 1 account = 1 game policy, you gain something else - ability to resell games.

Think about it.
This. Most marketing is all about getting the click, the sign up or the sale, regardless whether what's being marketed is good or the best option for the possible customer. That's not something I'd avise to do to my mother.
نصرت البدر 2013 ، اغنية نصرت البدر على الموت اخذنه ، على الموت اخذنه 2013
OpenStand: Principles for The Modern Standard Paradigm
No, I don't. What exactly is the problem and would it still be one if the servers were running smoothly?
Samsung executive says Windows 8 is 'no better than Windows Vista'
Firefox OS devices will be first opened to the markets of the following countries: Brazil, Colombia, Hungary, Mexico, Montenegro, Poland, Serbia, Spain and Venezuela.

Wow this is the first global company I've seen opening up first to countries outside Western Europe + US/Canada. I wonder what the motivation for that is.
Doubt it. As I understand it, the outer envelope is a fairly important functional part of HIV - it needs to be very similar to normal human cells or the immune system will destroy the virus.
Tell me one game with always-online DRM where the makers shut it down and people lost their content.
Code Britannia: Sandy White
Don't give them military weapons and allow them to make such stupid mistakes. Would you feel any better if they "made a mistake" with a tank?
Germany ready to block Google Maps for patent infringement
they are not being forced to live there, they are choosing to do so and paying rent. they are free to move anywhere else they want, including across the border to mainland china where it is much cheaper.
Probably the target consumers. From what I saw they're targeting the lower end of smartphones with cheaper devices and people in developing countries such as most of those above are more likely to buy something like that compared to US/Canada or Western Europe, where more people afford higher end devices.
Hypnoses
The "Load 80" icon in the upper-right corner of the first page indicates that the code was on the issue's counterpart cassette tape ... which could be purchased separately.
Hungary first to discover revolutionary new music service
How China censors 100 million tweets per day
Free Interactive Java Tutorial
My favorite remains BSD style (rc.conf+rc.d/) init - which for some reason receives no mention here. Arch Linux used to have it too, but then inexplicably dumped it.

http://www.freebsd.org/cgi/man.cgi?query=rc&amp;sektion=...
5 Easy Ways to Drive Traffic to Your Website
Honestly... you guys lost me in the first few minutes. It's great you guys were having a good time and laughing and stumbling around (and that's probably why you did this video - to have a good time), but it didn't translate into something particularly watchable. The editing was also kind of jarring.
Hmm...I think if the SimCity folks shut down their servers tomorrow they could be prosecuted for something like fraud.
People value not sharing space a lot. In first world countries most of the worst things about being poor come from being surrounded by other poor people. Communal cooking is more efficient at basically every scale from 2 peson household up, where at its most egalitarian it's just taking turns to cook. But I am aware of no modern culture where most people eat communal meals; in fact the only exceptions I'm aware of are total institutions like prisons, monasteries or the military.
Tesla earned ten percent of its revenue by selling emissions credits last year
'Brain Friendly' Website Design Attracts More Viewers
I doubt MakerBot will target anything like the precision one would assume from that. The printers aren't capable of very high resolution, so it's just not needed. Yet.
>I disagree it is the governments job to give people a place to live. From the sounds of it, Hong Kong already does a lot of this. At some point, people need to take care of themselves.

The government IS the people. It's not some alien body as some people (mostly in the US) seem to think.

The government is the people voting to elect some representatives, so they can get some things done for them ("the country") that need massive co-ordination and central planning.

Of course it can go astray (politicians taking advantage of their power for their own benefit and such), but it's not like there such thing as "perfection" anywhere in life, be it private or public.
Libertarians are not the only ones who believe it is not the governments responsibility to provide for the poor.
Gridlock Plagues the New Online-Only SimCity
Show HN: Squidee - A tool to help designers manage changes with frontend devs
Most of these apartments appear to be somewhat clean. I would totally life in such a place for some time without being worried about my health. SHARED facilities in similar settings tend to end up very dirty and problematic (or at least I experienced it like that in Europe - and no, I am not talking about student dorms :)).
Inexplicably? They didn't want to fight against upstream. You'd have to maintain your own scripts for every daemon you supported if you didn't use systemd. Also other software like udev is getting sucked into systemd as well. Arch is a small distro and doesn't have the development power to customize everything.
This quickly turns into EA not being allowed to sell other people a $5 game because you only want the $10 version.

Which is the point of accurate labeling, it creates fewer restrictions for everybody.

(I do think fit for purpose is a good test, but it can't just apply to any imagined purpose that any person can come up with)
Solar Wind Energy Source Discovered
One thing I always found annoying is, say I am on a shared host like WebFaction, and I use supervisord to manage my uWSGI (or whatever) instances. What do I do to ensure supervisord itself starts? Current approach is a script run by cron that greps ps for supervisord and if not found, launches it. But that seems rather flakey and unreliable.

Suggestions?
Which is curious - there were, as far as I know, no restrictions on them putting the exact same ads or films out over the Internet or through any means other than TV broadcasts (which are of course a Government-granted monopoly and therefore can reasonably be argued to need more regulation).
Ridiculous Fishing: The Game that Nearly Ended Vlambeer
Because having long bash scripts and every process implementing it's own daemonisation in weird and wonderful ways is redundant and inconsistent, and makes making something a daemon frustrating.
A Makefile for Python bindings for the Boilerpipe Java package
I was first exposed to Forth by a member of the PSU Timex-Sinclair UG (while I was still in high-school) and (much) later used it to program a system that controlled the terminals used by stock traders. I'm not saying I'd want to go back to writing software in Forth, but it was a strong language for control systems ... perhaps the Erlang of its day?
Right and if the people of Hong Kong thought the government should be providing suitable housing for everybody who comes to Hong Kong (note that many of these people are foreigners) then they would vote in politicians who would make that happen.
Unfortunately, he doesn't give any arguments at all for his recommendations against those tools.
That works once, then it stops working in the future and backfires because people would no longer be motivated to create wealth in that jurisdiction. Which means no jobs and no tax revenue.
About evil preprocessor construct, there is a nice collection in the comment of this Jonh Regehr post : http://blog.regehr.org/archives/574
I agree that there are some very interesting hardware startups and that we will read some great stories in 20 years, but I disagree that the most of us will have a chance to work on them. I'm under the impression that the average HNer is working on some location aware social networking mobile thingy.

This is not a "in the days of old, when men were men and women were men, too" kind of thing. Most of us will, probably, spend the next 20 years doing the web/mobile stuff.
Say that to Linus.