skysight-inc/HackerNews huggingface dataset:
That this implementation being uncomfortable for me is my subjective feeling, I've mentioned several times. That I don't want to depend on JavaScript is clear. I don't want to depend on JavaScript. Using the word centralize the way I have, I can't see otherwise. But I'm not defaming anyone. I'm not attacking anything. I'm very motivated to help the standard advance, but I would never for a moment install this implementation. Stupid of me? Sure, maybe. But it's not an attack.

What I wanted I already got, confirmation by the OP that this is in fact a reference implementation and not the all-end-all.

Were that clear to start with, I wouldn't have commented other than to say, awesome! This is extremely exciting to me.
Why is that better than just getting `sizeof(* foo)`? Even with typedef, I can see this happening in the future:

typedef int thing_t;
...
thing_t *foo_internal;
thing_wrapper_t *foo;
// code
foo = malloc(sizeof(thing_t));

If you do:

foo = malloc(sizeof(*foo));

That's at least always on the same line.
> prefer static typing

That's all very well, until you look at a few Java programs in the million line range, and it turns out the source code for most of them also includes a million lines of XML, and the reason for that is Java's type system doesn't really match the problem domain, so people resort to XML basically as a way around the type system. And if you're going to be effectively writing a large chunk of your program in XML, you'd be better off using something like JavaScript or Python that is actually designed to be a dynamic programming language.

Now you could make the counterargument that this is because Java's type system isn't very good and if you used a language like Haskell with a better type system you'd have better results. Maybe, but then the objective isn't so much 'use a static type system' as 'make Haskell palatable to a decent percentage of programmers'. I'm not saying it's impossible to do that, just that it's a different challenge and needs to be understood for what it is.
That just makes it more verbose.

This, on the other hand, always allocates one object of foo's pointed-to-size, whatever its type:

foo = malloc(sizeof(*foo));
The URL is broken, needs `resubmit1` removing from the end of it.
fstorm: [nodejs] fantastic fast and reliable filewriter
Use MyFitnessPal

get spammed with weight loss products
Sneaky. Most syntax highlighting would make it stick out like a sore thumb, but still, sneaky.
MOTES have an average lifetime of 5 years. Unless they are linked to a power grid and stable internet. Most of these are either broken/frozen/unreachable/out of power.

We actually study this special case in Embedded systems engineering.
In C99, sizeof is compile-time only if VLAs are not involved.

In C89, sizeof is always compile-time.
This is from 2009. Hasn't ldd(1) been patched since then not to perform direct execution?
just some trick, in fact, It also use builtin `fs.readFile` to write file
UK proposes law to force Google, Apple and fB to decrypt and hand over messages
Many years ago I did a job for a big corporation with a big IT department. Servers were in the data center of course and to get one you had to fill out a lot of different forms.
When the project was on fire we were allowed to bring in our own machine and use it as a server.

Later, when the project ended no one bothered to go through the whole formal process to get the machine out of the premises again. The machine was just left there connected to the network.

In the months after the project ended different departments moved into the building. Different people with different tasks. Yet the machine stayed connected. I guess no one had the courage to shut down a machine they didn't know about.

For a year or so I still used to check occasionally if I still could log into the machine.
It disappeared eventually but unfortunately I don't remember how long exactly it lasted.
I don't see how this is different from finding an ingenious way to jimmy open the lock of the door at night, figuring out how to take cash from the register, and then phoning them up to tell them they need to spend money on a new door.
Paypal: don't do it
An app that passively records your life so you always have a witness
The underwriting process is designed for stable businesses with a proven track record. It's not very suitable for today's crowdfunded projects, which is why those projects have to resort to PayPal. Just telling them to go through the good ol' underwriting process doesn't really help.
Beware of assuming that every law passed with the intent of protecting workers actually has that effect. Yes, some laws really do protect workers (e.g. banning noncompete employment clauses). But laws that make it very difficult to get rid of employees (either because they're not doing a good job or just because you can't afford them anymore) act as strong deterrents to hiring, and that tilts the power balance strongly in favour of employers over workers - which is exactly what causes so many problems in the first place.
That's fiction. Even in cases of manifest faults employees sue and win. I am certain you can't fire someone for a typo in France.

There was an amusing anecdote. A guy working for EDF I think. Except that he was never showing up and instead was working as a waiter in the family restaurant. EDF sent someone to the restaurant to check that he was there instead of at work, and he was, and decided to fire him. The lay-off was cancelled in court on the basis that an employee has to receive a notice in advance of a control!

The French labour system has been modelled after Kafka.
The 2015 Internet Trends Report – An Urbantech Perspective
But that should infuriate you!

America pays more per capita for their health system, and yet here's this guy struggling to know if he's going to be treated or not.

Cancer is a disease of mostly older people. They get treatment via medicaid / medicare. That "socialised" health care distorts US spending to the diseases of old age.
It's certainly not US insurance that pays for that cancer research.
Surely everybody knows an "English Lit expert" but even after reading this exquisite requiem to believers I still find it impossibly hard to argue with these people. It always feels like they are trying to make the last stand of humanitarian values against the dictat of science.

In all their glorious "everything science says will be as wrong as religion and you my friend are blindly following it" it seems they can't understand the basic principle of science advancing toward some kind of truth yet admitting it is -still- wrong.

I don't know if trying to convince someone who doesn't trust science - and to some extent, logical thinking - with mathematics really works. Sure it convinces me but does it matter?
Like many commentators here, I am tremendously opposed to the prohibitionist approach to law-enforcement of any sort.

One of the greatest tragedies of prohibition (and there are a multitude), is that it transfers so much money and other resources into the hands of existing criminal organisations. It also creates criminals as these profits incentivise illicit trade and legislates users as criminals.

That being said, what Ulbricht was doing was clearly nefarious and the punishment should come as no surprise.
Probably uncool but I like facebook too. Maybe I should have a more happening social life but in the absence of that it's not a bad way to keep up with people. I'm not even especially bothered about the privacy / surveillance stuff. I don't post anything I'd be particularly worried about being public and I'm not to fussed about the add tracking thing effecting which ads uBlock ends up blocking or that I don't read. I just scrolled through the last 35 posts in the main feed and couldn't find anything obviously sponsored. If there's one thing that bugs me it's not having much control over the filtering. On the phone I only tend to get quite a small subset of my friends posts.
It's neither:

sizeof belongs in its own category of unary compile-time(-ish) operators, whose only other member is _Alignof.

If you're so inclined, you might add _Generic and _Pragma to that mix as well, but they aren't really a close fit.
The War on Crypto Terror
To add some context, starbucks do appear to invite whitehat security testing in a bug-bounty like manner:

http://www.starbucks.com/about-us/company-information/online...

That means that Homakov was likely not breaking the law, and you would expect starbacks to be more welcoming of the report.
Yes but this issue doesn't save customers from losing money or data so there isn't really a moral reason to disclose this. It directly impacts Starbucks, and their balance sheet.

It's more like Jimmy phones up the owner, and tells the maid that there is an issue with the door, after not liking the maids response he tells a group of people about the issue, and the next day the house gets robbed...
Couldn't he configure it to do Bitcon Mining, then go look for it with thermal imaging?
Thanks for the link. Daniel Kish's story is inspiring.
Ultrasonic testing level 1 training
This is a really great example why you SHOULDN'T think of sizeof as a function. If sizeof were a function, the code

int *foo = NULL;
foo = malloc(sizeof(*foo));

would be undefined behavior (dereferencing NULL)!
I've always thought it a bad idea to make the dynamic loader its own executable, and allow binaries to specify their own. In this way dynamic linking on *nix seems like it was just a tacked-on afterthought, and not designed particularly well.

On Windows, you can find dependencies by just parsing import tables and following the chain as deep as you want to go. No need to execute any foreign code.
Languages are not just languages. They're also a component of a wider culture. Foreign language education exposes students to cultures and ways of thinking not present in their day to day culture and allows them to understand and possibly communicate with people around them who speak that language (living in central Texas, you ought to know a bit of Spanish).
We would all be better off if semi colons had just been required in JavaScript. The problem is that semi colons are not actually optional in JavaScript. Instead JavaScript use ASI, automatic semi colon invasion, where the compiler attempts to determine where semi colons should go. Unfortunately the rules are complex, prone to certain errors, and I can't rely on everyone I ever work with understanding all of those rules. For all of these reasons if you are writing JavaScript you should just use semi colons.
Self identification is even worse: it is seen (by those who do something like this) as an attempt to hide behind feminism to stab it in the back.
The BMI concept is volume based. If people grew equally in all dimensions, and this was proportional across all tissue types, then height would be cubed.

What Trefethen is doing there is arguing that although muscle is more dense (and so a muscular person of the same weight and height has less volume than a fat person), it doesn't make that much difference.

In other words, I think he's arguing that the height ^ 2.5 is still a good normalizer if we restrict ourselves to the population of muscular people. Like say, if we focus on males who have 4% body fat, of different heights, the height ^ 2.5 based BMI could tell you how built they are, corrected for height, still in a better way than using an exponent of 2.

On a related topic, there is a "fat-free mass index" (FFMI) which applies the BMI formula to just an individual's lean mass. This could work well with the same correction.
If my neighbor sues me because of my action $X and wins, most people would conclude that that I did $X was the problem. Not that the laws around $X are to blame. I should have known the laws and should have known that $X is punishable with hefty fines. If I went to the media, I should be laughed at for blaming someone else because I wouldn't follow the laws.

If I drive I must accept and follow all traffic laws (even if I think some are stupid and pointless) and if I do CEO:ing, I must follow the labor laws. If I reject that, then I shouldn't drive or CEO.
US calls for land reclamation 'halt' in South China Sea
I would add to this that looking at the 'intent' of a law is the worst possible way to look at it.

There's no law out there with the disclosed intent of killing children, or making sure some people stay poor, or protecting a market from competition.

Every law is always 'for the good of the Universe and it's a wonder we survived this long without it'.

The only way we can judge a law is by its REAL consequences, not the PR surrounding it.
Thank you, I have, er... resubmitted it, as the URL can't be edited
Solicitation is a serious crime in itself.
French here. Often, pro-employees partisans are enclined to believe that Prud'hommes are neutral. However I have never heard the same opinion from a boss who's had experience with firing someone. By the way the name Prud'hommes is a family name, and although it looks like "prudence", it has no ethymologic origin here.

I'm frightened of hiring the first person in my startup, precisely because I can't get rid of them and an upset employee can draw lifetime savings in lawyer fees, penalties and fines. Therefore if you could convince me that Prud'hommes and French employment rules can be fair and deterministic, and make me meet bosses who reckon the Prudhommes took a fair position, you would literally create at least one job.

Apart from that, you are right that some bosses aren't nice and we don't known enough about Mandriva to judge.
We came across one at work (NASA) a few years back, a server running in a far off room that no one remembered anything about. It had probably last been used by a grad student at least a decade ago, but was still up and running and doing, well, something. We eventually had it removed and turned the room into a collaboration space.
Agreed. Not sure which is worse - that he's a terrible role model, or that he's proud of that fact.
Yes, it happens. From the small company to a corportation, those can be: vms, old servers, racks of servers...

Having a perfect CMDB for hardware and following all procedures step by step could identify / prevent cases like that. But in reality, in normal environment it's going to happen.
I act as a hobby, I've been in several shorts and quite a few features, all produced locally. Because of this, I am exposed to quite a lot of artists in my community: Not the ones who make the front page or go to major socialite events, no, those are the ones who've made it.

The artists I see, the vast majority, are the ones struggling to be artists full time. They all want to be, but they have to eat.

The artists who are full time artists are really, really good at one thing: Their art. They may be good at some other things as well, but they are best at their art.

Every single comment like the one above misses that point: The comment wants these artists to make t-shirts, run kickstarters, etc., etc.

I'm a consultant. I market myself. I do all those things I need to do to get work. But most of my effort goes into my work, as it should - marketing is a small part of it.

Those who would have artists work the way described in the comment above don't fully appreciate the economics of what they suggest. I can afford to market myself, a few hours a week/month, because I make so much on my work.

Artists, for the most part, make so little on their work, that if they are to live as described above, they will spend all of their time collecting donations, running campaigns, etc., and none making art.

Which is why so few of them work as described above. Most have jobs, and do what art they can when they are not working.
http://www.catb.org/esr/faqs/smart-questions.html#keepcool
Exactly, this kind plain speaking talk works well with tiny startups, but it becomes blatant manipulation when written by a marketing department
I certainly read that the wrong way first time around.
https://github.com/kanaka/mal

This is more than a weekend's worth of work, but the work is incremental, so you will see benefits from point 0. This was a lot of fun for me, and it helped shine light on some of the darker corners of Go.

I'm still working on a version of it myself, using it to experiment with different coding styles, interfaces, and libraries. A lot of fun.
> How do you know if the proof is valid, or if they're just scratching each others' backs and pretending they're all brilliant?

(Professional mathematician here)

Such a conspiracy could never happen. Mathematicians are, in general, scrupulously honest to a fault. There are exceptions of course, but such a scam would need everybody's cooperation.

Moreover, if you have tenure then you would have no incentive to participate in such a fraud (even to the extent of keeping quiet about it). Once you get tenure you are basically working for pride and for the sheer joy of solving problems, and maintaining a big lie would do nothing for either.
"Quite frankly, if you do this, you should be shot. "

Ah, yes. No comment from Torvalds is complete without a gratuitous ad hominem.
This story has so many fascinating aspects to it:

Firstly, that coastal land territory, a kind of currency of nationhood, with immense value, can just be created from nothing.

Next, that the faraway US is almost demanding that China stop, while most of the APAC nations whose sphere of influence is being encroached upon, Singapore, Malaysia, Indonesia, seem to only make some barely audible sounds of displeasure. Vietnam and the Philippines have raised more significant objections, I think.

Of course, apart from those issues, there is also the interesting question of the assumed rise of Chinese power, assumed weakening of US (and Western) power.
I always find stories about common people from the past to be some of my favorite historical writing. While it's true that history is made by great people and great events, most people are not great and reading about the common people of the time is always fascinating.

Ones I have read and enjoyed are:

- As The Romans Did by Jo-Ann Shelton. This book tries to paint a picture of everyday life in the Roman Empire

- History of Hadley by Sylvester Judd, Lucius Manlius Boltwood. Details the history of a small town in Massachusetts.
Did they fix it ?

Perhaps they cannot fix it ?

Maybe their IT is in denial ?

Interested to see a follow-up report.
Technology in Africa – Weekly Newsletter
I've always wanted to intentionally setup servers in hidden places just to see how long they stay online. For example, putting a Raspberry Pi in the back of a rack in a server closet. Maybe run a Tor relay on it or something like that.
Show HN: Create quick and beautiful image polls
Join our team and help alleviate poverty! We're looking for talented people who want to code and change the lives of people in poverty around the world.

Check out this webinar with Mercy Corps where we changed the lives of 20,000 survivors of Typhoon Haiyan: http://solutionscenter.nethope.org/blog/view/hitting-it-home...
Hello. I am one survey point for you. I believe women should have equal political and social rights, which makes me a feminist.

I massively disagree with the general thrust of these "inquisitions" as discussed in the article, although the original Title IX, if I understand it, was meant to be about equalising opportunity[1] and not about whatever this is all about.

[1] "The principal objective of Title IX is to avoid the use of federal money to support sex discrimination in education programs", from http://www.justice.gov/crt/about/cor/coord/titleix.php
What advantage does 'visually balanced' give? That's like saying the letter A is better than B because it's 'stands up better.'

Indentation is how you should identify blocks.
That's probably incomplete. They were probably on probation, the initial 3-to-8 month period where the permanent employment contract can be revoked without a reason (except if discrimination can be demonstated, once again).
For which he was duly convicted.

Oh right he wasn't. He was convicted solely for selling drugs, and sentenced for being a geek.

Make no mistake about it - the world hate us, it just tolerates us right now because we are effective and need.
Those are actually pretty good statistics. Only 0.005% of these 'indiscriminate killers' manage to kill innocent civilians. I suspect that's better than actual soldiers...
Also see: "A Technical Explanation of Technical Explanation": http://www.yudkowsky.net/rational/technical/
Exactly. When you find an old newspaper, you read the classified ads. Because ordinary people wrote about their daily needs there. Its so human.
Spider: An Exciting Alternative to JavaScript
To be fair, he's referring to the code `sizeof(*p)->reference`, in which case I'd probably shoot the writer too.
I'm one of the people you're caricaturing here. I understand science, and mathematics, and logical thinking, which is why I believe (most) people blindly follow science as if it were a religion. (For a very recent example, see this article - io9.com/i-fooled-millions-into-thinking-chocolate-helps-weight-1707251800 )

See also Scott Adams' musings on the subject: http://blog.dilbert.com/post/109880240641/sciences-biggest-f...
Unlimited starbucks coffee can also be had by visiting any large wildfire and scooping the ashes into a container full of water. It essentially the same thing.
Soli: Radar-Based Gesture Control Could Be the Perfect Wearable Interface
Oh, that takes me back...
http://en.wikipedia.org/wiki/Microsoft_account
That's because they're rooted to one spot. They kill anybody that gets near them. The point is, of course, that nobody cares about killer robots. Especially if they're not killing anyone you know. Its just a political football for now.
ok, well. Whatever floats his boat I guess.
And we are in the middle of this scale. I wonder if there is any significance to that.
A developer knows, through hard-won experience, that the algorithm to decide whether driving over a cliff is better for everyone is bound to have bugs, and will therefore gladly throw you off a cliff when it is the wrong thing to do ;(

Non-developers would assume the computer to be (somewhat) infallible.
At a place I worked we had a service that relied on a cron job running a script every hour. One day someone wanted to know where the server was so he could connect an external hard drive to it and copy some files in. Not a single person knew where the server was or even what it's IP address was. Since it had been setup years ago, everyone who had worked on it had since left the company and no one ever documented it. So somewhere either in our office or in one of three public clouds we used was a server happily running a script every hour that no one could locate or stop. We eventually found it when we moved offices and a super old Dell box in a tiny dusty closet was unplugged and the script stopped running. Now I always document the physical locations of services too.