skysight-inc/HackerNews huggingface dataset:
> it is not a function from the standard's point of view is that C does not have any builtin functions

The problem with sizeof is that is should be able to accept a type as an argument. No function in C can do that, according to the standard C grammar.

Somewhat similarly, the standard va_arg is a macro, not a function, also because it accepts a type.
Denim might just be the perfect material for wearable controlers. I just hope the product number of the jeans wont be 404 - tech not found
How to Fix Authentication Problems for Visual Studio Online and Git
I put it on the line that makes the code following it the most clear
I don't agree. You have no idea how broken the French labor law is.
MIT Cheetah robot learned the running jump
Another oddity of C that amuses me is the do/while loop without braces:

int i = 4;
do
printf("hey\n");
while (--i > 0);

Even though do/while is a keyword bracketing pair in C, it still only lets you use a single statement (because nested whiles). So everybody uses braces, and thus it looks quite disturbing without them.
sorry to high jack the topic, whats the big deal with Rust? I have heard it has memory safety, but are the language syntax and standard library stable?
What law allows killing to prevent a robbery? I think you're mistaken. Some places allow using lethal force when your own life is threatened. I am not aware of any place in the US where one is justified in killing merely to prevent a robbery.

And if there is, can you show me a law in the US where a citizen can go after a robber long after the robbery is over and then kill them?

I think not.
You had PTSD flashbacks from reading an article about Apple? http://en.m.wikipedia.org/wiki/Trauma_trigger
I live in the EU. The French labor law is not much different from other EU countries.

Also, the law exists for a reason. Putting the blame on employees in this case is an ideologial opinion, not a fact.
Ah, to join the bikeshedding: { on newlines make imho more sense, the block of code is visually balanced that way. We have high-res screens now, no reason to pretend we're still on 80 char terminals.

But work long enough in either one of those styles, and the other one will start to look strange.
How do you handle auto-format? If a rules doesn't survive that, its not practical, at least for me.
Except algebra said that about algebraic functions and operators.

I know a CS major who insisted in pointing out the same thing. He was extremely surprised when dragons hatched from his eggs instead of the chickens he expected. It was a really heated event. He barely escaped -- and then ranted for several weeks how they were really just eggs and couldn't explain what happened.
AMA Wihh Joi Ito, Director of the MIT Media Lab
Well, `a` could overload the "=" operator, in which case you would get `sizeof(a.operator=(12))`. But as far as pure C goes I believe you are right.

Edit: Via the C99 spec (http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf).

The sizeof operator yields the size (in bytes) of its operand, which may be an expression or the parenthesized name of a type. The size is determined from the type of the operand. The result is an integer. If the type of the operand is a variable length array type, the operand is evaluated; otherwise, the operand is not evaluated and the result is an integer constant.

The type of an assignment expression is the type of the left operand unless the left operand has qualified type, in which case it is the unqualified version of the type of the left operand.

So it is indeed the case that `sizeof(a = 12)` is equivalent to `sizeof(a)` in the C world.
Hi

That's rough and I'm sorry you have to face it.

1 - Try to think positive, I know it sounds hard but it actually helps a lot.

2 - Keep working as much as you can, it will help you not to think about the negative stuff

3 - If your employer doesn't understand the problem then the job's not worth it.
"it won't happen to me"
Lojban is logical but very difficult; it is so logical that the mental discipline required to use it correctly far exceeds that of natural languages. (Which may be an insight into why natural languages are not logical). Quoting Akira Okrent:

> To all the language curmudgeons out there who insist that people ought to speak more logically, I say, be careful what you wish for. You go on about the "logical" mismatch between "everyone" and "their" in perfectly normal sounding sentences like "Everyone clapped their hands." You argue that phrases like "very unique" and "sufficiently enough" don't make logical sense. You harp on "hopefully" and "literally" and "the reason is because," all the while calling logic to your side to defend your righteous anger. Before you judge me as some kind of "anything goes" language heathen, let me just say that I'm not against usage standards. I don't violate them when I want to sound like an educated person, for the same reason I don't wear a bikini to a funeral when I want to look like a respectful person. There are social conventions for the way we do lots of things, and it is to everyone's benefit to be familiar with them. But logic ain't got nothin' to do with it.

> And oh, how grateful I am. Do you know how good we have it, how much easier our speaking lives are made by the fact that language and logic part ways? Consider the word "and." Why, you barely have to know what you mean when you say it! When you say you “like ham and eggs” do you have to specify whether you like each of those things as evaluated on its own merits separately or whether you like them served together as an entrée? No. You just lazily throw out your "and" and let context do the rest of the work for you. When you say you “woke up and ate breakfast” do you mean that you woke up first and then ate breakfast? Or did you do the two things simultaneously? Or, maybe your breakfast was asleep, so you woke it up and then ate it. Pshaw, you say. You know what I mean. Perhaps I do, says the Lojbanist. Perhaps I don’t.

Taking on the project of learning a logical language like Lojban may not end in your being able to speak the language well, but who cares--you will learn a lot about linguistics and you will focus on potential ambiguity in how you use English or other languages.

By comparison, Esperanto's grammar is very easy--sixteen rules, easily learned by anyone familiar with a European language. It's wonderful to have a learning curve that is so short.
Compile-time functions are a thing. Not in C, but in other languages, including C++.

This all comes down to what you think "function" means. If you're living in a C bubble, of course sizeof isn't a function. If you have a wider mapping (!) for the word, then it is a kind of function.
We got higher resolution and with it not taller but wider screens. So following your reasoning the { should be on the right ;-)
One of my mistakes out of many: eating like I was still a teenager.
That detail wouldn't have happened if android manufacturers had their shit together.

Faulting blockchain for not properly handling such ridiculous OS behaviour is pointless.
This is only for subscribers...
In C there are no functions that take a type as argument.

So

sizeof(type)

is a special case anyway.

I'm all for using sizeof like a function, but that doesn't make it consistent. sizeof is just a special syntactical construct.

I like to think that sizeof is called an operator just for
syntactic convenience much in the same way as typedef is a storage-class specifier.
Yeah, responding to a limited (experimental) exploitation of a vulnerability in a hostile way will usually make people think twice, and selling the vulnerability to 3rd parts will seem more interesting.
As a polyglot, I tried to get into Esperanto several times, but can't get over its ugliness, complex phoneme inventory, unnecessary grammar complexity, strong European roots, abundance of consonant clusters, and overall language bugs. Sure natural languages are worse, but you expect a lot more from a language that was designed from scratch to be consistent and easy to learn. If you don't already speak a European language, good luck.

I really wish Reformed Esperanto had usurped Esperanto, which fixed a lot of the bugs.
Surely drug traffickers in the USA are complicit with the US Government? They respond to one injustice (victimisation of users) by inflicting another injustice (drug cartel violence). They exploit the law to further their own interests at the expense of innocent bystanders. Yet you act like this guy is some activist who has never hurt anyone!
Its worse. Its approaching "Darmok and Jalad at Tanagra" territory amongst the nerdy set.(1)

(1) It's turtles all the way down. (1)
I recently went to Bangkok, Chinatown. They openly sell their "chinese medicine" stuff like tiger penises and whatnot, plainly visible in their shop windows. And around the corner, you can probably order a shark fin soup.

The "low risk, high profit" assessment seems pretty accurate to me.
Only? I don't want Twitter to collect a list of applications I have installed. That is none of their business, massively violates my privacy, is an illegal practice in many countries, and constitutes a unique fingerprint.
So it is! You would think the first thing he would have done given access to the internet would be to take it down.

Kind of suggests he hasn't even been online since the day he was arrested, crazy!
Apples to oranges.

How about any of the major GC languages?

How about the great debugger tooling Java has. Had that in ObjC? How about performance and threading related tooling? How about refactoring tooling?
I think changing your name to be a rather obvious trademark infringement is a pretty bad place to start (Lindows)

Uhm, what? Lindows became Linspire. Mandriva was originally Mandrake (renamed after merging with Conectiva). As far as I know, Lindows never had anything to do with Mandriva.
just my opinion, but at first I was mostly a C/C++ developer, I like the idea of controlling everything and not wasting memory, and the idea of being really fast as well as the idea of compile time type checking . But for a living I have to write websites/webservices etc. so most I have to use PHP etc.

So Rust is hype (let's admit it, new is always better, like your new toy for christmas) and its standard library come with enough webservices-friendly things to make it sexy to develop small webservices with it. Also it introduces a lot of interesting features (functionnal programming, immutability by default, primitives to write parallel code) in a C-syntax language that was before in some more exotic language.
The naming is unfortunate, period. I'd be surprised if any German business uses them at all.
Do You Dress Like a Slob? Click Here for Daily Outfit Inspiration
I was in the same boat, but I stumbled upon http://www.jsgraphs.com/ most are based on d3 and they simplify using it. I just picked the one that had the features I needed
Enterprises already run very heterogeneous stacks/software and more often than not a large portion of that is proprietary or outside of their direct control in other ways. I don't see why any enterprise would take the risk of not having additional layers of security, layers that they can actually control.

I only see that going away if all software is reliably mechanically auditable for security.

Edit: actually thinking of it, there's still many firewall features that one wouldn't want to reimplement app-level each time like rate limiting, network access logging or even basic routing the list goes on. I'm not sure what definition of "firewall" you all are thinking about. To me it's any hardware or software appliance that processes incoming connections.
Long-Run Trend – Unaffordable Housing
There are many (possibly apocryphal) stories about servers lost in ceilings, locked closets, etc that just kept on serving, sometimes critical services.

I think we as an industry have gotten much better about this. In the old days, as small minicomputers and micros expanded into less and less technical businesses, wiring standards and server room design guides were not well-known or followed.

Often, people just sort of winged it. Some employees are more naturally methodical, have better memories, and are longer-tenured than others. Also, many of the stories are from universities, where long-term thinking isn't guaranteed (but embarrassing stories have always been popular to share!).

A quick DDG finds this story from the University of North Carolina:

http://www.bradleymonk.com/wp/weve-lost-server-54/

USENET archives would be a great source for more of these.
Considering that's (AFAICT) my only comment that ever ended up dead, I'm guessing it's a word-based block. Which is amazing considering Wix itself would likely trigger the same block if HN were German-speaking.
I know of one interesting story here. Early on in (what would eventually become a very successful) tech company's life, they acquired some collocated space for free thanks to a friend (call him Brad) of an early employee.

Eventually Brad left that particular DC operator, leaving the startup with no inside contact - but the servers stayed up for years to come (and the company was never charged for the resources).

These machines were eventually "replaced" with newer hardware in a nearby facility, but the DC operator has no idea where these old machines are physically located within the facility (thus cannot remove them), so they remain active to this very day, sitting idly by...
These stories depends on whether you are using PayPal as seller or buyer. Usually buyers don't run into these kind of trouble. Also there is dedicated website to share PayPal horror stories. http://letskillpaypal.com/?page_id=40
Apparently one of the common scams in Eastern Europe is to drop a wallet by a tourist. When the tourist picks up the wallet and hands it back, the scammer starts loudly yelling that the tourist stole their wallet, threatening to call the police if the tourist doesn't give them some cash. So I guess sometimes it does pay to punch they guy handing you your own wallet.
It is hard to say what feminists broadly speaking think when we do not have a survey of self-identified feminists in front of us.
Ask HN: How can project transitions be properly communicated?
As a user/consumer of (various) open source projects - I can accept that they change/die/merge/etc over time. A lot of time it is volunteer time and priorities changes. With that in mind...how can you properly communicate a transition from a current project to another?

StyleCop would be a helpful example here. The current version appears (or at least seems to be) dead and/or dying [1]. It has been cloned to github [2] (from codeplex) but nobody is making an effort. I would be willing _but_ after further research I found out that in fact it is sort of rising as a re-implementation with all the Microsoft open sourcing [3]. Which is really great...except the effort of finding this out wasn't exactly easy for me and I was pretty interested in finding out what was going on.

It seems like this is sort of the middle ground of one still being valuable and the replacement not being fully ready but at some point you would hope there would be an announcement on the original project's page (or something). As just a consumer/user I can point people I know or projects I manage at this information but what about people who just think "StyleCop is dead" when they see there hasn't really been activity for weeks/months/years/etc? Not as a member of either project it would be nice to communicate findings like this outwardly, do you reach out to the owners of the projects and see if they will do something? Do you just post to the discussions on the old and point to the new? As just the end-user of some of this how do you get other people informed?

[1] http://stylecop.codeplex.com/
[2] https://github.com/citizenmatt/StyleCop
[3] https://github.com/DotNetAnalyzers/StyleCopAnalyzers
Updating a Node.js web application without downtime
I wish you to get well soon.
Stay strong.
Once I was an intern at an air force base. In my cubicle, stuffed into a corner, was an old SGI Octane workstation. It was absolutely covered in dust and looked neglected. Its fan was very annoying to me. One day, I unplugged the machine because I figured that it was completely purposeless. Less than 2 minutes later, someone I had never seen was standing at my desk, berating me for turning off a server that ran a set of critical data reduction processes for the nearby wind tunnel.

After that I added a sign to the machine. "DO NOT TURN OFF UNDER ANY CIRCUMSTANCES." And made sure I wore headphones to block out the sound of the fan.
As reluctant as I am to agree with this on principle.. yeah, the logic checks out. It's not like helping an elderly person across the street, you're dealing with an (a|im)moral entity who can and will nail you to the wall with on a whim if they think it'll improve their balance sheet.
Thanks for the reply ...

I've spent hours searching for a clean example that has the features I want. I can't believe that what I want is new, or even unusual, and yet I can't find an example to copy and mutate.

I want

* text boxes containing a small amount of text - about 10 words - that are connected by arrows;

* force directed layout, with the ability to drag boxes, and in some cases pin them in place.

* Buttons to click on the arrows with call-backs that adjust the underlying data

* Buttons to click on the boxes with call-backs that adjust the underlying data

I find it hard to believe no one has done this, and I find it hard to believe, looking at all the D3 stuff out there, that this is difficult. Many, many hours of searching is making me doubt my beliefs.
I have tried preaching similar message while I have worked for a C4I unit. I found it extremely hard to get anyone understand what the actual point was, and even after that I got mostly "but we're all COTS now" with a shrug.

The previous, while working with netsec, stands practially for abandoning the sound principles and going for superficial compliance models. There is no real security architecture in place for most systems, there are not trusted paths of handling information, and the assurance level is at rock bottom. The result is scary, when you take it into the context of your adversaries being hostile, active, and very well funded (typically state sponsored).

Actually I considered elaborating the previous with examples from real life, but then I realized that stuff might be classified, so... Meh.
I'm generally conservative too but this won't happen until we have tort reform (which won't happen so long as politics is governed by lawyers).

I heard someone say that health care is completely provided in Australia for about 2% of your gross pay because the leeches have been removed from the process ... is this true?

P.S. Leeches = anyone that inserts themselves into the process without adding meaningfully to the quality of care provided.
Well, on some level it's just further along the cog dissonance spectrum...

Do you eat meat/dairy? Wear cheap clothes? Use oil? Etc etc? (I do!)

Maybe you try hard not to, but many people don't.
I am a (lapsing) mindful meditator, and I'm still not sure this article contradicts any of that stuff (which is the distilled science from things like Buddhism.)
> Another note: Don't you think it's worthwhile not down-voting every idea that hasn't become widely used?

Yes. Bullshit deserves to be downvoted and flagged. Every time someone discloses they have or possibly have cancer people come out of the woodwork pushing total bollocks.

"You got cancer because you're stressed"; "you can cure cancer with fasting"; "you can cure cancer by not eating sugar"; "you can cure cancer with this particular herb or spice"; "you can cure cancer with medidation and exercise".

It's fucking disgusting and I proudly downvote and flag this bullshit.

See also John Diamond's books about the things people said to him when he disclosed his cancer.
Apart from normal servers, lots of embedded devices probably also have integrated servers. There must be many, many of them idling away somewhere.
One important item discussed in the parable was the "slush fund", and how it succeeded in influencing the city council. This is the most corrosive aspect.

About 35 years ago the FBI's Abscam[1] public corruption investigation and sting operation brought down quite a few people, including Congressmen. My favorite excuse was from the Congressman videotaped stuffing cash into his pockets, and who later claimed he "was only pretending to be involved with the bribery" and "was conducting his own operation dealing with corruption and that the FBI was ruining his own investigation".

IIRC Congress was so upset about being caught taking bribes that they actually cut the FBI budget the following year!

Public corruption needs to be investigated and prosecuted more often.

[1] https://en.wikipedia.org/wiki/Abscam
Nginx can also be extended with modules and Lua scripts, which can add authentication, rate-limiting and logging.

EDIT: It seems Kong doesn't really replace Nginx, it's actually a set of Lua scripts for Nginx.
“Lone wolf” and “roving wiretap” US surveillance powers expire Sunday
Nice show trial. The US justice system is a joke. Cops regularly murder unarmed citizens - nothing. The 'evidence' used to convict Mr Ulbricht should have been inadmissable as it was obtained illegally.
I've recently tried to use play with scala on a new project after having had a very pleasant first experience with play/java, but found the overall experience much much less convincing. IDEs often don't work well with the language, and some key parts of the framework such as ORM seem still a work in progress.

Anyone else had the same feeling here ? I came to the conclusion that play should advocate the use of java as the preferred language if they want to grow their user base even more.
Once you realize that everything on an IRC service is tied to a user account, it makes a bit more sense. And extending from there, different user accounts are responsible for different things. (The *serv accounts on most networks).

I always thought it made sense in a way - it makes for a very neat separation of concerns and makes the stack more modular, since you can now use almost any combination of IRC daemon and services package.
We don't use auto format for one because as far as I know it's not available for our languages (objective-c and swift)
Autodesk Inventor Student 2016 Incl Professional Download
And you really shouldn't use it with a type if you can avoid it anyway, it makes code brittle e.g.

int *foo;
// code
foo = malloc(sizeof(int));

a few months later, change foo to be a double. Code still compiles, no warning, but you're allocating half the memory you need.
> I wonder, if we could write one single file that would handle client side, server side, and DB code using the same types, objects, functions, and language with no visible boundaries to the programmer, would MV* become less practical?

GWT, basically?
This guy's server: http://bash.org/?5273

<erno> hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.
Takes the luster off?

Nobody died so how is he a murderer?
I swear the amount of stupidity written on the matter defies belief. People are unable to think critically and be objective.
Disregarding the facts that:
He wasn't charged/convicted of murdering anyone
He wasn't charged/convicted of attempting to murder anyone
The supposed "hitmen" were law enforcement agents, entrapment anyone?

Ulbricht got life without parole for selling some mushrooms and running a fucking forum. Guess what the HSBC scum who laundered hundreds of millions for drug cartels got: A huge fucking paycheck and nice fat bonus.

There is no justice in this country.
There is no justice in this sentencing. The sentence is to set an example (words of the judge) which by it's very definition is unjust. Regardless of what you think of the laws relating to this case everyone deserves the same treatment under the law.