skysight-inc/HackerNews huggingface dataset:
$ clang --version
Debian clang version 3.5-1~exp1 (trunk) (based on LLVM 3.5)
Target: x86_64-pc-linux-gnu
Thread model: posix
$ clang -o intmin_c -std=c99 intmin.c
$ ./intmin_c
INT_MIN = -2147483648
INT_MIN * -1 = -2147483648
Floating point exception

$ gcc --version
gcc-4.7.real (Debian 4.7.2-5) 4.7.2
(...)
$ gcc -o intmin -std=c99 intmin.c
$ ./intmin
INT_MIN = -2147483648
INT_MIN * -1 = -2147483648
INT_MIN / -1 = -2147483648

$ tcc -v
tcc version 0.9.25
$ tcc -run intmin.c
INT_MIN = -2147483648
INT_MIN * -1 = -2147483648
Floating point exception

$ cat intmin.c
#include <limits.h>
#include <stdio.h>

int main(void) { // Change from void to int for c99
int x = INT_MIN;
printf(" INT_MIN = %d\n", x);
printf("INT_MIN * -1 = %d\n", x * -1);
printf("INT_MIN / -1 = %d\n", x / -1);
return 0; // return 0 - c99
}

So, is this a gcc thing?
Spreadsheet.
Ask HN: Looking for advice – Failed startup, long term relationship at same time
Spent the last 12 months on a startup that's basically failed and over the last 2 months fallen into a dark and lonely place. I'm typically an upbeat and positive person, but this failure has taken a bit of a toll. All of the family and friends money is gone. I feel guilty. I'm in tons of debt and have constant waves of disbelief at how I actually got into this spot. Especially as it's all self-inflicted.

Adding another layer, my long term relationship with my gf just ended. We were together for 8 years.

Looking for advice from other founders that have gone through some dark days. Preferably over email or IM
Not a single negative reaction? that seems weird, surely there should be dissenting voices, what do they say?
Motif investing: invest in ideas and not stocks
I've worked at a startup that got a large infusion of capital. I hope never to work at such a place again. I would aim for organic growth over VC and plans that aim for high-octane supercharged expansion any day. I would bootstrap if necessary.
I try not to be. Did you have something specific in mind?
http://paydirtapp.com has a convenient Chrome extension that reminds you to clock in, based on a page matching filters you define. It also has uses server-side state, which can be handy across multiple devices or VMs.
Video recording and processing in Android
Looks like you're right (re my sibling comment above):

$ gcc -std=c99 -S intmin.c -o intmin.s
$ clang -std=c99 -S intmin.c -o intmin.sc
$ grep -i div intmin.s*
intmin.sc: idivl %esi

(No idivl in the gcc version)
Tough to beat pen & paper as an easy to use UI.
Not necessarily. The login page could be http, but as long as it posts to an https address, the password is never transmitted in plain text.
You can do it either way. We'll make it possible for attendees to get in touch with one another beforehand if they'd like to try forming a team in advance.
It's probably not important to track down to the second. So no real need to use a timer app. Most important thing is to track it every day. Don't fool yourself into thinking you'll take care of it at the end of the week. You'll never remember what you worked on, then end of the week turns into end of the month.

Just be diligent. And it's tough to beat pen & paper as a good UI.
Or thinking about it more, get ready to downvote this too, governments are more likely do the exact opposite.

Want to cause a revolution against a dictator? Talk to the social networking sites, see if you can increase unrest. We already know the US government talked to social networking sites to help the Iranian people overthrow their government.

http://www.cbsnews.com/news/state-dept-asked-twitter-to-dela...

A few small steps from that, and you're manipulating the emotions of nations in an attempt to start a revolution, instead of just help one that formed by itself.
How do you reconcile the direct DOM manipulation that d3 does (with data binding, element creation/append, etc.) with React's virtual DOM? Or do you only use d3's non-rendering functionality (scales, etc.) combined with React for rendering?
Unless Google ports their UI framework to iOS, I don't see how iOS developers will use Material.
can this be integrated with wolfram alphas new language?

Or do I have the wrong idea
And what are the chances they get all the Android Ruby stuff to work perfectly in the initial release? As opposed to 6 months later after the bug fixes are deployed; hope you didn't have a release window for that fall 2014 app!

(Perhaps I'm overly cynical, though I've seen this before on other platforms.)
I too would like to see a lot more work done on Dart web frameworks (particularly client side) and a lot more documentation/tutorials demonstrating non-trivial real applications which have a complex UI, data binding, and talk to a database on the backend. Right now it's the dearth of documentation/tutorials/books holding me back as I'm on the beginner end of the spectrum--but still very interested in Dart.
In which countries?

Just had a look at the curriculum of the Portuguese university I graduated from, a couple of decades ago and they still teach OOP, FP, LP across multiple languages.
This might help:

https://news.ycombinator.com/item?id=7933155

Also, you'll need to put a contact email address in the 'about' section of your
profile so people can contact you.
don't kill yourself
Why would you assume FB is going to engineer/optimize against negativity?

Who knows, the next, probably internal, research is going to reveal that people on certain parts of the negative emotional spectrum are way more likely to click on ads than happy people.
Becoming famous by wasting time is something to consider...
Get an ftp on Godaddy shared hosting. Create folders for all your friends. Share the u/p with friends.
Aha, is this why I am able to think so clearly after a fast, I wonder! If anyone else wants to try it, this is what works for me : skip dinner, (take as much water as you feel like, though), sleep early, wake up early, and feel the clarity. It's amazing.
boring article
> Your $GOPATH is a list of directories, not a single directory. This is almost never useful in practice (most people should just use a single directory as their GOPATH).

I disagree. I use and recommend a 2 directory GOPATH setup. The first path being the one where all 'go get' packages are installed and the second being where you put your packages. I've found keeping these separated makes long term management easier.
2048 was so last month
Evidence is only circumstantial if you can frequently prove that the evidence cannot stand alone. Sounds like common sense, but many facts throughout history have been debunked after new ways of looking at them challenged the common view.

You would call me an idiot of I was adamant about the sun rotating around the Earth, but that wasn't always so. Similarly, triangulation has been used for a long time to pinpoint locations, but only now do we know that passive cellular triangulation is actually a singular approximation and so the idea that a deterministic location can be derived from the observation of transmissions is flawed.
I think an honest conversation like you said is good and a working relationship will be helpful.
PS: Maybe what you can "teach" your employees is not so important, but some other things do, like opportunities，other brilliant colleagues that you can offer. They can figure out how to be better themselves :)
Nobody could have predicted, except Vernor Vinge.
Amazingly well said.

OP: Eventually the narrative will shift to "I was young and stupid, and it was a long time ago," which is exactly what you want. By continuing to defend what you did, you're actively delaying the time until you can begin using that line. Frankly, whether you believe you're right or not is beside the point; no hiring manager is going to care, and your current attitude towards it presents as toxic.
This was proven practically by George W. Bush, as reported by Steven Colbert here: http://www.youtube.com/watch?v=U7FTF4Oz4dI
Louis Vuitton Outlet,Louis Vuitton Outlet Online 2014
You are probably not seeing this but your point needs refutation.

Dawkins model(not his actually but he presented to general public) was not competition-centric. Main idea was gene centric view of life. Competition, cooperation, symbiosis etc all were explained from the genes point of view. The thing to note is, even when we see apparent 'cooperation' between species, at the genes level there is a competition with other gene pools. So the non-competitive forces look so on the surface, but the only thing genes care about is moving on to the next generations and spreading as much copies as possible even if that happens with symbiosis.

Gould on the other hand, was not happy with this selfish view of life(everyone says he had Marxist ideologies which made him a bit bias). He thought of selection as happening at multiple levels, not just limited at genes but also species and individual. This was the main controversy between him and dawkins.

So, to reply to GPs query, yes that quote is sort of incorrect since everyone agreed that cooperation and symbiosis(Darwin too) are very much part of evolution.
No 6502?
Perfect picture for his russian dating profile
IMHO, there are amazing tutorials for rails available. Both free and paid tutorials. If you have the basic of ruby, you can pick up rails pretty easily.
I find a lot of the behaviors of these UIs to be surprising in an undesirable way. When a UI does something unexpected I should be surprised by how much sense the interaction has, rather than the novelty of it or a cool animation. I should be able to anticipate the behavior in a future context.

They are touting this supposed underlying physical metaphor (almost as if that is their own newly developed idea in UI), but it sure looks like a mask over the fact that they just threw in a bunch of shiny animations everywhere with much less regard for physical metaphor and reproducibility than one should expect.
How to add nested navigation to Shopify themes 
In this article we will discuss how to implement a fully content managed multi-level navigation system within a Shopify theme.Shopify themes use Liquid, a flexible and powerful template language, to output data from a store into a template. If you aren’t familiar with Liquid, and Shopify theme building in general then I recommend checking out the official Shopify theme documentation.
Negotiations or market research?

When Staples started, the founder proved the concept of an office-oriented superstore meticulously with a single store in the northeast. He picked a neighborhood, mapped every business around it, knew exactly how many accountants and offices were around his area through a survey, you get the idea. With the evidence, he talked to a number of investors. One investor gave him a pretty high valuation. In a meeting with another investor soon after, the investor asked a number of questions, hmm-ed the answers and escorted the founder out the door. In investor then promptly returned to his desk, opened up his rolodex and called the best retail exec on the list to start what is now Office Depot - in a different part of the country, to avoid a direct clash, because chains such as these expand geographically.

While this is an extreme case, it is not uncommon. Many investors who like a business idea from one startup, look up and talk to every competitor in order to pick their best bet for the race to that market. If the research surfaces a better competitor, the firm doesn't invest or choses the competitor. If it didn't it is useful as "market research" to help the startup. Either way, the entrepreneurs share plenty of information to appear attractive, and probably feel good about the VC attention they are getting. The "ideas are worth nothing" mantra is out there for a reason - execution is everything at the end of the entrepreneurial race.

The really sleazy negotiations happen when the competing firm starts applying "cloning" tactics to misinform or undercut its opponent. For example, having multiple uninterested parties call the seller with really low prices to create the impression the item for sale is worth little. Then the actual buyer comes in with a low offer that looks lush in comparison. Prepare for the worst and do your due diligence thoroughly if you are worried about this kind of stuff.
Jeez, everyone is talking incubators, YC, angels, etc. People don't realise that this type of money is the most expensive you will EVER get. And trying to get this funding will consume your business for the better part of a year, at least, with everything else on-hold to the point where you have neglected the actual business long enough that you will need the funding, and die without it.

Bootstrap for as long as you can. Be smart. Be imaginative. Seek out partnerships with customers as they can be a great source of money/advise/contacts if they feel it can benefit them. Sounds like customers love the concept, so get them to pony-up some money or contacts. Then, the cheapest money is the money you don't need.

Equity should be treated as gold. And a lot of founders who create successful businesses kick themselves for the mindless throwing-around of equity in the early stages.

I would suggest setting-up an advisory board. I'm sure you and your co-founders will know several smart people, or ask customers who they recommend.
There is a professional meme manager for famous meme cats
Why would you make this comment? Do you really think it's a waste of time to try to better understand the world? Are you aware that there exist many, many, many examples of experiment showing commonly-held beliefs to be incorrect?
Here are the patches referenced in the article:

https://kib.kiev.ua/kib/pig1.patch.txt

https://kib.kiev.ua/kib/patch-2
The self-improving employee is my favorite kind! I do like to be as useful as I can be, though. The highest leverage thing I can do as a manager is help to make the people who work for me more effective.
The fact is you have tried your best and everyone knows startup is not easy. Your friends and family will get that.
Very poor advice. The business is always the product.
Just in the past week I've been more strict about fasting between dinnertime and breakfast. I did this thinking that it might move my sleep schedule earlier, but now that I've done it for a little while, I think it might be helping my thinking and energy too.
And if outside money helps curing e.g. a women in Kenya will she on the other hand restrict the number of babies she'll have to one or two?

Without such 'contracts' watsi is - imho - bullshit.
This is great. can you recommend a few readings to someone who is interested in artificial life(and has some programming experience) but not sure where to start?
He also has a cool rug to go with it.
Yes, that title was badly editorialized and in violation of the rules here. We'll revert it.
Was hoping for more engineering samples, m'self. Like one of those P2 "500" early P3's.
Oh wow, what if someone in the negatively influenced group committed suicide? It would be unlikely that the tinkering actually caused the suicide, but the media would probably jump to this conclusion quickly.
For git (and probably others) It actually looks for a "go1" tag, and if not there it uses the head of master.

I honestly don't care for all these version managers. If I didn't trust the author of whatever library I'm pulling in to keep their API stable, then I wouldn't use that library or I'd preemptively fork. This is actually a language convention and if more people were familiar with it, there would be even less issues (though I haven't ever had any personally). If you're interested in helping the community familiarize themselves with Go's language conventions, I made a package[0] that developers should read after going through the Go Tour. It's meant to teach best practices and conventions for library design in Go.

[0] https://github.com/jzelinskie/conventions
I went through something similar. And the business stuff is easy compared to the relationship issues.
I think there is a little bit of confusion in this discussion about changing GOPATH as in changing the value of the env var vs changing the content of the directory tree pointed by the env var.
You should absolutely get a camel over a mustang.

Even though they look like they're designed by committee, camels are an example of form following function. They're very well suited for their environment, and although they're stubborn, make good work animals.

A mustang on the other hand, is a feral horse. They're harder to domesticate because they've known freedom, and they've adapted to living in the wild by being smaller and more timid than horses selectively bred for doing work. If you really do need a horse, there are few cases where you need that horse to be a mustang.

If someone is hiring you because they think you're a mustang, you better hope they're caught up in the romanticism of cowboy stories instead of them being desperate for cheap labor or meat.
Love the red states. Protect the foetus at all costs, then abandon the kid once born.
Google docs. If I forget to record it I reconstruct the history from Git logs and Moves app.
I feel almost ashamed to admit it being a SharePoint consultant and all but I use Emacs Org Mode. I keep my org files on Dropbox so I can switch between devices.
How would you regulate such a thing?
“It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; but who does actually strive to do the deeds; who knows great enthusiasms, the great devotions; who spends himself in a worthy cause; who at the best knows in the end the triumph of high achievement, and who at the worst, if he fails, at least fails while daring greatly, so that his place shall never be with those cold and timid souls who neither know victory nor defeat.” - Teddy Roosevelt

...now pick yourself up and try again.
Tip: disable Ghostery or you will not understand what's going on...
In this post, I do another deep dive into JavaScript prototypes...
Ahh, from the title I was hoping for someone who'd amassed a hobby supercomputer or something.

While I'm thinking along those lines: would the effective processing power of all of Cat Vaska's old CPUs be anything substantial, or is my year old Retina MacBook more powerful than everything he's got?
s/uses/pays for/, and a joke becomes a somber realization.
I've used Paymo in my last consultancy job, it was amazingly handy (time track, reports and invoice generation) http://app.paymoapp.com
I'm not sure if this will help or not, but this is my story of failure: http://christopherbull.name/2014/06/19/three-years/

Feel free to email me, can be found through my blog. It sucks and is crushing, there's no way around that. Things get better though, often this can be like being set free - it certainly was for me.

My advice - though my situation wasn't anywhere near as complex so I'm not going to pretend to fully understand what you're going through - is to reach out to your friends and move forward somehow, whether that's into exercise, a new job, or something similar. Find something to keep yourself busy and people who will do the same.

Also, remember one important thing, even if you don't quite believe it right now: You're going to be OK.
Worse than dogs
Ethically, I don't see the problem.

The problem is, classically, lack of informed consent: the vast majority of Facebook users simply don't know they can be subjects of emotionally manipulative behavioral experiments at any time via UI tinkering, so it could be argued the TOS small-print waiver does not de facto ethically (nor legally) constitute informed consent proper.

An altogether different matter of course is whether you agree with the Belmont report principles in the first place, or the adequacy of principlism for social science research in general [1,2]. But as far as vanilla regulatory research ethics is concerned, this study should rightly raise several flags in any self-respecting IRB.

[1] http://www.uvu.edu/ethics/seac/Bulger-Principlism.pdf

[2] http://eprints.ncrm.ac.uk/85/1/MethodsReviewPaperNCRM-001.pd...
I learnt (somewhere around 15 years ago) Haskell as 6th programming language and I remember finding it very confusing while my friends who had never programmed before didn't have as much issues with it. The second language they got taught was Java and after Haskell they very much disliked it. All of them (of course...) ended up as Java programmers in boring banking (etc) projects, but I do remember how they liked Haskell over it. Now, Java isn't exactly Python...
This was the conclusion I came to when I first considered the question. I later decided it was a moot point. The question "is there free will" generally assumes or implies to most people, I think, that if there is not free will there is no matter in day to day choices. But that's silly because as far as I can see determinism applies to systems and from within the system our will is indistinguishable from free will. (Not sure how to word the leap here.) And believing in not free will, if it causes paralysis, results in less desirable deterministic outcomes anyway. So it's best for most people to assume free will.
Different strokes for different folks. I will be very happy when the PG >9.3 performance regressions are addressed in the FreeBSD kernel.
SYCL – Abstraction layer for leveraging C++ and OpenCL
> The worst thing that could happen to Project Euler is people creating profiles and populating them with answers they didn't come up with, so they can pad their resume or other.

That would be quite a feat, considering:

"As of 27 June 2014, problems are now accessible again and their solutions can be checked. However registering and logging into accounts remains disabled, and no new problems are being added."

I was actually going to add a feature request to allow "solving" problems via the command line -- but I see the site itself (while it doesn't register profiles/solutions) uses a captcha -- So I guess the script would have to fetch that, display it, and ask for the captcha number as well :-/

(Or try to defeat the captcha which would of course be much more interesting, but perhaps less good for the euler project...)
The LZ4 Memory corruption was already fully described at the LZ4 issue board, and accepted by the LZ4 author. What is this article supposed to learn us ?
btw : http://fastcompression.blogspot.fr/2014/06/lets-move-on.html
Anyone interested will probably also enjoy Mike's talk “Design is a search problem” from Openvis conference: http://www.youtube.com/watch?v=fThhbt23SGM
Well researched article. If a little out there:

> His work with the gut's nervous system has led him to think that in coming years psychiatry will need to expand to treat the second brain in addition to the one atop the shoulders.

I'm pretty sure that will still be the Gastroenterology...

Shameless self plug: if you are in the bay area and interested in taking probiotics, I'd like to give you a free months supply in exchange for tracking mood & stomach function.

email me: david@generalbiotics.com
> the general upside to googling for an answer is that often when someone is providing you with the numeric solution they are also describing their algorithm and implementation

Can't this be seen as a downside as well? I'd much rather have an option of first just seeing if I'm eg off by a magnitude, or an iteration -- rather than having my fun ruined by someone showing me the whole solution...
Sorry, I don't understand what's so hard about this problem? Why not just emit a warning when the compiler exploits undefined behavior to make some line of code unreachable. By "line of code" I mean code that's written by the user, not code after macroexpansions, inlinings or whatever. So the warning would mean that either you have a bug, or you can safely delete some code. Both of these are helpful.