skysight-inc/HackerNews huggingface dataset:
The realloc implementation in this blog is incorrect: the passed in pointer must not be freed if realloc is called with a non-zero length and returns NULL. This will cause a double free in correct callers.

As someone else pointed out, the example call of realloc is also incorrect.

edit: also, malloc is incorrect for three reasons: 1) sbrk doesn't return NULL on failure, 2) a large size_t length will cause a contraction in the heap segment rather than an allocation, and 3) sbrk doesn't return a pointer aligned in any particular way, whereas malloc must return a pointer suitably aligned for all types.
I'm not too interested in the details of yet another probably snake oil medical device, but I am now curious about exactly what IndieGoGo's standards for fraudulent campaigns are. Can you say that it isn't IGG's responsibility to evaluate whether the product being sold actually meets claims that might be complicated and ambiguous? Is their side of the deal okay as long as this company actually manages to deliver some sort of device to the customers? Assuming they can verify that the company actually intends to deliver something, how ridiculous does it have to be before they say the campaign is invalid?

In other words, can I make and sell a space-alien repellant on IGG? If people bought it and are happy with their purchase, well, you can't prove that it isn't repelling space aliens, and IGG gets their cut too.
It depends, sometimes it's even switchable, e.g. take df.

$ df -k /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 151798672 47602008 102615608 32% /

$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 145G 46G 98G 32% /

$ df -H /
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 156G 49G 106G 32% /

(-h "human readable" with powers of 2^10, -H "human readable" with powers of 10^3)

$ df --version
df (GNU coreutils) 8.22

ls has -h/--si/-k ...

$ ls -h -l /proc/kcore
-r-------- 1 root root 128T Apr 6 19:02 /proc/kcore
$ ls --si -l /proc/kcore
-r-------- 1 root root 141T Apr 6 19:03 /proc/kcore

(/proc/kcore is 2^47 = 140737488355328 = 128 * 2^40 = 128 TiBi bytes)
The ABA needs to be a part of these reforms, for sure.
Memory allocation failures are virtually non-existent in modern desktop computers. Good practice is to not test return values from malloc, new, etc.

Memory can be allocated beyond RAM size, so by the time a failure occurs your program really should crash and return its resources.

Embedded systems have fewer resources and some will not have virtual memory and so the situation will be different. But unless you know better, the best practice is still to not check the return from allocators. Running out of memory in a program intended for an embedded platform should be considered a bug.
The Hypocrisy Of Sam Yagan and OkCupid
Nice to see this rolled out. In the notes it's mentioned that you won't offer a fallback. Was this a bandwidth consideration or that you decided simply not to try and support the remaining 14%? Or that you didn't want to maintain the infrastructure for transcoding the fallback file. In my experience at work I've found that whilst webm is generally smaller the difference is minute especially when you are dealing with files as small as 3MB.
If anyone wants to use a desktop client with gmail-like conversation view, this add-on for Thunderbird does a great job: https://addons.mozilla.org/en-us/thunderbird/addon/gmail-con...
CryptoCLASS
Except, most UK undergraduates in mathematics, engineering and the sciences now do a 4-year first degree, albeit a taught masters.

If you meet someone styled MEng, MMath, MSci or MChem, that's generally what they've got. Note they generally do not have e.g. BEng MEng or BSc MEng: the fourth year has an extended project/thesis element but is not a separate degree.

It's all very nice to have a masters as your first degree, but you can't really escape the fact that university expansion and the eroding standards of A-levels, together with the technological demands of the modern world, mean it's very hard for three years of higher education in the sciences to be enough.
Are you aware of the history of the US after 1868? Ever wanted to understand why the first section of the fourteenth amendment says "Subject to the jurisdiction" of the United States?

Subject, in this case, means subordinate. The newly-minted dual citizens (of federal and state citizenship) of 1868 and beyond are no longer "the people" that the government serves. They are the subordinates (slaves) of an authority no longer accountable to "The People", as there are technically none left post-1868.

If you think I'm exaggerating, I invite you to read SCOTUSblog sometime, and you'll eventually find someone (often a SCOTUS justice) mentioning how the first ten amendments of the bill of rights have now been "filtered" through the fourteenth, to see what stands and what doesn't. The only one yet to be filtered through the fourteenth is the third amendment (quartering troops). Thanks to DC V. Heller, the only one to escape unscathed is the second.

here's[1] a list of interesting cases directly affected by the 14th amendment.

[1] http://americanhistory.about.com/od/supremecourtcases/tp/Key...
It is obviously false. There are many people that were alive 1000 years ago that you have no relation to due to geographic separation. Just because you can analyze something using statistics doesn't make it right. It even explains some of the discrepancy in the description of that chart — your ancestors are not unique and therefore the entire chart is just statistical hyperbole.
Can you fire the co-founder? Can the co-founder choose exactly what they're working on, or do they take direction from someone else?
Re: AWS using 2^30 for bandwidth. That's a serious error - I have never seen bandwidth ever measured in anything other than SI Prefixes. In fact, on the few occasions I've seen data transmissions measurements called out as GiB, I've done a bit of research, and discovered that the author was incorrect, and that the actual data transmission was really GB. Memory is the only place you should ever see GB mean 2^30 - and, it would be nice (though unlikely) if everyone could just switch to GiB when referring to memory, and then GB=GB, and GiB=GiB.
MySQL_Diff: Database Schema Difference Reconciliation
Flysystem – Many filesystems, one API
Well, have you tried IndieGoGo? It appears that they won't reject you as fraudsters, at least. :P

...and who is "we"? A claim like you're making might be better backed up with at least a link to your company or some of those publications.
Also keep in mind that Formula E debuts this year; it will be the sport we all eventually follow (not sure how I feel about the passing cars sounding more like aircraft than cars): http://www.fiaformulae.com/
The use of IQ is usually criticized in the context of comparing one person to another. What we're talking about here is the effect for a fixed individual. If all else is equal, is higher IQ more advantageous? Probably.
Nah, you just set target="iframe name" on the form and post into a (hidden) iframe. Then in 2 seconds you redirect to LinkedIn. In my experience, getting clicks from targets is easy. One simple way is to show a page with a single link that just says "Redirecting". After a moment most users will just click the link.
For anyone interested in industrial revolutions in fantasy or medieval settings, I'd recommend checking out de Camp's "Lest Darkness Fall" and Twain's "A Connecticut Yankee in King Arthur's Court".

Arcanum: Of Steamworks and Magick Obscura is a pretty great CRPG in that setting as well, with fantastic writing and worldbuilding--even if the vanilla version of the game is somewhat buggy and imbalanced.
Wait a minute..

I think most of this considering the work required was Ballmer's last push..Remember BG is still on the board, and the tell he gave in indicating disagreement with Ballmer was the lack of thanks when Ballmer left.

Let me tell you why it might be this way. Ballmer was behind the push to settle with the DOJ and the States over BG's objections..its why BG ws asked to leave Chairmen spot.

If it was Ballmer's push than its not anew company..just a small pivot..
You probably know this but the blog breaks with https everywhere.
There was also the invitation text which might contain private messages.
As a teenager, I joked that for political reasons, I prefered turning 3 times right rather than going left.

Note: This says nothing of my political views, it was only a joke.
As an F1 fan, it isn't the noise, and speed that are making this championship "boring". It's the fact that Mercedes is so superior that you really have to ignore them in order to enjoy the "real" racing / fights behind them. (It's true that the Hamilton-Rosberg fight in Bahrain was also fun to watch)

Mercedes' dominance is ridiculous - and I don't want to take engineering credits away, but there are no fights to watch at the top. Just take a look at the 22 second difference they managed to create in just 11 laps, the laps left after the safety car at Bahrain went in the pit lane. The fun was behind, Force India vs Red Bull vs Williams (vs Ferrari, sigh). Lets hope that other teams can catch up.
you just showed that you dont get what this discussion is about. once you do get back to me.
Well, I don't know how Google Now works but I presume there is a machine learning component in there and it should get better as you have lot more data to train the model. So, may be its early to dismiss such a product very soon.
Tumblr doesn't support HTTPS, unfortunately. HTTPS Everywhere will need to update the 4chan config to account for it.
Who cares about the sound? I'm tired of seeing blog comments on Jalopnik complaining about it. Of the many dumb excuses car nuts use to whine about electric cars, "they sound different!" is by far the worst.
I had seen WIMP (windows icons menus pointers) interfaces before I saw a Mac. BBC Micro I think. No mouse, but keyboard could achieve the same thing. Ok, that was for specific applications, and not the OS that was based on it though.
Most Linux distributions run using an optimistic memory allocation system, whereby memory (RAM plus swap space) can be over-allocated. On these systems, your program can die due to lack of memory at any point in time. I.e. Even if you test the return values of every malloc() call, you still won't be safe.
Disagree with a few things, the title 'static is better', is hyperbole, its a different environment. Also the 'the doesnt mean they are any less capable' is pretty much by definition wrong.

That being said I absolutely love the architecture, pretty much every application I build these days starts with switching my github default branch to gh-pages. I work on http://pouchdb.com and use that for storing and syncing data. not having to worry about how my servers are configured / how they are running, how to move an application makes me feel like I can build what I want then when I come back in 2 years it 'just works', with dynamic applications I always feel there is a maintenance burden that I cant shake.
I find it a little bit weird to not be able to collaborate with anything smaller than 20€.
We don't have the resources to support transcoding, and since so much of our userbase is on browsers that support it I don't think we would regardless.
Code in the article for realloc is dangerous and wrong:

void *realloc(void *ptr, size_t size) {
void *nptr = malloc(size);
if (nptr == NULL) {
free(ptr);
return NULL;
}
memcpy(nptr, ptr, size); // KABOOM
free(ptr);
return nptr;
}

Line marked KABOOM copies $DEST_BYTE_COUNT, rather than $SOURCE_BYTE_COUNT.

Say you want to realloc a 1 byte buffer to a 4 byte buffer - you just copied 4 bytes from a 1 byte buffer which means you're reading 3 bytes from 0xDEADBEEF/0xBADF000D/segfault land.

EDIT: Also, this is why the ENTIRE PREMISE of implementing your own reallocator speced to just the realloc prototype doesn't make much sense. You simply don't know the size of the original data with just a C heap pointer as this is not standardized AFAIK.
What is your optimal way of staying in touch with the world?
Do you care to stay in touch?
How do you stay current with the world?
What topics to you follow and how?
Is it the most efficient way or do you think their could be a better way?
It always calls (the equivalent of) malloc + memcpy + free for each grow, so it can be anywhere from the exact same speed (when realloc does the same thing internally) to absurdly slower (in the given case of a large array that has to be paged in). The first case is by far the most common case, but it is something that sometimes matters.
I think there are a lot of jurisdictions where you can still "read the law" and be admitted to the bar. I have always wanted to meet someone who took this route.
Has anyone had experience optimizing for webm? I really want to support this codec, but it's insanely slow in my experience. I'm finding that it's generally around 4x slower than mp4, but I've also had cases where it's taken up to a minute to encode a file where h264 take under 10 seconds.

My use case is to have the best performance/quality ratio for a 30 second video under 3mb.

These are my ffmpeg flags:

h264: "-vcodec libx264 -crf 28"

webm: "-c:v libvpx -qmin 0 -qmax 50 -crf 5 -b:v 1M -c:a libvorbis -aq 4"

The video I tested with these setting last night took 5 seconds on h264 and 35 seconds for webm, both outputting to a 2.6mb file.

System Specs:
- Intel Core i7 4770 Quad-Core 3.4GHz
- 16gb 1866mhz memory
- ssd drive
- 64bit ubuntu 12.04 lts

What further frustrates this is that I can use OpenCL to improve encoding times even more, but only with h264 in ffmpeg (as far as I know).
Why not use a <video> tag with the 'loop' attribute to better simulate animated GIFs?
Are you going to be using this tumblr blog instead of /news from now on?
In Quebec, between secondary school and university, you usually do a two year preparatory college called CÉGEP. For sciences, for example, you do all your general science classes (Chem 101, Math 101, etc) with professors with master degrees in CÉGEP at a cost of ~200$ a semester, and then spend three years in university specialized in your major.

That way you can faf about for two (or more) years in CÉGEP at a lower cost (to you and society) and then go into university a lot more focused. A lot of people complain of the completion rate of students in CÉGEPs but I wonder how the completion rate of people once they get into university compared to the rest of the world.
Why Microsoft is Chasing the Trend and not Innovating?
I wonder if people who advocate this as "better" have ever build anything even remotely complex. It's this kind of simplistic tunnel vision why many engineers look down their noses at "web development".

Also, this is nothing but a marketing site for a "static web hosting service", which explains the superficial buzzword bingo.
Actually, what you're arriving at is energy use per unit distance. The unit of area result you're getting (correcting from original content) is a misuse of units: "liters/100km" is more properly "liters of fuel/100km", where liters-of-fuel is a shorthand for quantity (that is, mass) of fuel used per 100km -- it's more convenient to measure fluid volume than mass (though you'll find that aircraft will measure fuel by weight). And that is still a shorthand for "energy contained per unit of fuel over distance travelled". That reduces to energy/distance, or: ( kg × m ) / s^2. That doesn't have a unit applied to it, though it works out to mass times acceleration.

So, as noted, "Liters of petrol" (or diesel) are actually a shorthand for "energy contained in a liter of fuel". There's an imperial unit for this, the barrel of oil equivalent, "barreloil" in GNU Units. This is equivalent to:

• 6.12 billion Joules

• 1.70 MWh

• 5.8 million BTU

• 0.000107 Hiroshima bombs

• 0.21 tons of coal

• 3.82e+28 electron volts

• 1.46 million kilocalories (food calories)

So, a 30 MPG car (7.8 liters/100km) is burning 0.049 barrels of oil per 100km, or roughly 83.4 kWh/100km.

I happened to catch a recent video Robert Llewellyn posted to G+ on the VW e-Golf, an all-electric version of the Golf (previously the Rabbit in the US)[1]. He mentioned getting approximately 15 kWh/100km driving performance, with the manufacturer claiming efficiency as high as 12 kWh/100km. This means that, overall, the electric vehicle is a lot more efficient than a typical internal-combustion vehicle. Checking on Edmunds.com[2], the 2014 Golf Diesel 2.0L 6 speed manual is rated for 30/42 mpg -- the eGolf uses nearly 7x less energy (6.95x) on the road. Mind that generating and transmission losses run around 30%, so the net efficiency gain is only 4.87x, but that's still a lot more efficient than an oil-powered vehicle.

The eGolf does offer far less range than the oil-powered version, however, as a result of the much lower energy storage density offered by batteries over liquid fuels.

_______________________________

Notes:

1. https://plus.google.com/114018232303831249060/posts/SLeXV2o4... http://www.youtube.com/watch?v=C2ZDVfa3x7Y

2. http://www.edmunds.com/volkswagen/golf/2014/?sub=diesel#spec...
Ask HN: Idea Sunday
A small HN experiment. Every Sunday, a thread will be started to share product ideas. Why? Because many people have ideas they will simply not have the time to implement, and many need product ideas to work on.
Moot, fix the mime type of those pages. On Android it opens the new url on the browser and only when the browser got the file header it calls the video app to start the download again. I'm pretty sure there are ways for the link to go directly to the video app
So is this just another way to talk about the now-ubiquitous thick-client app? Or is there something revolutionary I don't see in my cursory look at this site? There is definitely something to be said for building separate services as your API, rather than thinking your static assets have to be married to the data processing backend. But calling that a static app is misleading -- it's still dynamic, and in fact the server is still processing data, it's just distributed.
How Soviet Artists Imagined Communist Life in Space
I entered college exempted from one year of classes. Rather than graduate in 3, I used those credits to graduate leisurely in 4 with a pure math degree. Math majors had the lowest gpas on campus and by far the hardest workload. Abstract algebra is tough! I don't regret my pace... It allowed me to play bar trivia every once in a while.
I think most of the people who find Microsoft as a sinister mega-corporation forget the majority of work force in Microsoft are developers and share the "culture" with developer community in general. I read Scott Hanselman blogging that Microsoft is too damn unorganized to come with a master evil plan. I think the Nixonian conspiracy lot of Microsoft bashers use to portray is mostly their imagination.
you probably would benefit by knowing som people not in the tech industry. For them this problem is very real, but i see the appologist are blinded by the beauty of the market. Would be easier to convince someone that god doesent exist than make them realize how out of sync with reality ghey are.
OP's link is 404ing and moot's won't connect at all for me. There's no way HN took down 4chan. Anyone have additional info/a mirror?
You've mentioned this twice in the same thread. Do you have any references? I would love to learn more, but you're being vague. Can you provide a link to your papers/your lab?
They cannot within the rules of the sport supply power trains of different designs to the different teams — all Mercedes power trains are identical.
Date-rape drugs are likely more often delivered to women than men. It's not the drugs, but the drugger, who is doing the discrimination.
This article was only written to promote something called HyperDex which he is in some way involved.
Looks like they are in a freeze period waiting for a stable release and won't touch any rules for the time being. Happy regular expression fun times ahead.
Walmart's newer fleet already tends to be trucks and trailers with side skirts and other aerodynamic features, plus tend to not be of the cabover design which pretty much mandates a brick wall of a front end that rams into the air around it. Most prototypes, like what this truck is, tend to be like high fashion designs. Yes, they look ridiculous and extreme and weird, but the aspects, the bits and pieces of the designs tend to show up in the finished product.

A truck like this lets them see with one rig how much is saved by the aspects they want to explore -- a new cab design, even more radical aerodynamics, a new powertrain, new materials for the trailer -- altogether, and do tests to see which areas are worth further exploration in a finished product. Plus, it's flashy and eye-catching, which is useful for the departments that work on these sorts of things. It lets them say, "hey, we make neat things, and get people talking about walmart, keep funding us."
I think it'll be in the new release; there was a ruleset freeze to work out kinks for quite some time.
HN is pseudonymous, 4chan is mostly anonymous. Probably moot simply isn't a tripfag.
This article is already dated. Today's race was one of the most thrilling races of all time. "Hamilton defeats Rosberg after epic duel": http://www.formula1.com/default.html

F1 2014 is more exciting than season 2013 where Red Bull was superior (and '12 & '11) - that was boring.
Any reason to not support h264, which seems to have similar levels of browser support? (trades Firefox on Linux/OS X/WinVista for support on IE/Safari/iOS/Android)
Thanks for reading the report behind the Wikipedia summary. I just did as well and I agree it's more the in ballpark of 1%. You should update Wikipedia.

The bigger question here is whether bitcoin can actually improve on this or just change the type of fraud that happens. If for example it shifts the burden from merchants (who absorb most of it with cards) to consumers (who can never recover lost bitcoins) then it's not going to gain traction. It's got to appeal to both sides of the market.
Isn't this the exact text that's quoted in the nVidia reply from the other day?

What's the news (without sounding snarky), Confirming that nVidia's is being ignored in this decision?
i was asuming you had at least basic understanding of what happens to people who make 15k a year in the US. I guess i was wrong and you dont.
I know IMAP is hard way, but it most used nowadays.
Now I try to work with gmail imap, so it is easier for support just one server for first.

BTW. I had seen unicode issues... And yes, there is a lot of work...
I started age 19 in 1967. Maybe even earlier. Dropped untrained into the deep end commissioning 4100 computers at Elliott Bros near London, and turned out I could swim. Passion - always had the feeling of "You actually want to _pay_ me to do this?"

Now I am 66, still fully employed, latest thing you might have heard (of) is the WiiU Audio engine. For unrelated reasons I went through a battery of cognitive function tests a couple of years ago and came out sharper than I was at 19 by at least a full sigma. I have no plans to retire.

I would add Don Knuth to the the honors list. And Minsky. Tony Hoare. Ted Nelson. Alan Kay. The original Homebrew Club members are getting up there. And about 100 others I know but you probably won't recognize. A peer group in which I am merely average.

As to selectivity and numbers. Yes, there have been programmers since WWII. But mot that many. So my age group has far fewer members than the upcoming geriatric programmer generation. But I have noticed one very encouraging feature we share: barring serious health issues (and even in spite of in some cases), a high percentage are still very active and passionate. No comment on causality, could easily be that it takes a active mind of a peculiar bent to get into the field in the first place and these just last, or it could be that the mental excersize it takes to keep relevant keeps the mind young, or both. But I'm pretty sure I won't last long if I have to stop doing it.