skysight-inc/HackerNews huggingface dataset:
Strangely, alloc checks no longer work in Linux and possibly other OSes. Because of overcommit you can have malloc give you an non-NULL result that will fail when you try to write to it.

I still include them in my code, but I don't expect they will save me.
Bummer. Now watch the dev behind this come out and say it was not 'ready for prime time'. Happens all the time with my submissions.

Nothing eludes www.functionn.in! They should know better than to name there stuffs Elusive :P
It has a column for clojure...
The coffee one wouldn't really work at Dunkin' Donuts. The steps of making coffee there is: Get the cup size the customer asked for, add cream/milk, add sugar, and then pour the coffee to the top. If you're going to do the whole 'a medium but in a large cup', the person behind the counter is just going to guess when he should stop and depending on the person, you might get more or less. Also if you keep asking them to make it like that, you'll eventually piss everyone off and end up getting a lot less.

If you want to get more for your buck at Dunkin' Donuts, go when they are about to close and ask for donuts and bagels. Most likely, if the people working are even remotely nice, you'll get a ton more than you ordered. The donuts and bagels get thrown away and most decent humans feel bad and try to give away as many as they can.
Property taxes being set on increasing market values of properties?
I think it would be wise to add a `shrink` operation when the array ends up being 1/4 full (shrink to 1/2 size). Otherwise you might end up hoarding memory you don't need anymore. The operation would be called automatically whenever you delete an item from the array, checking if a `shrink` is appropriate.
I usually just switch my user agent on my Android Phone to be a desktop one permanently. Though, that requires a browser that can do it from the Android Market or using a ROM with it like Cyanogen (or modding the AOSP browser and recompiling it with the feature). Many cases, you can just pull the browser from Cyanogen and stick it in /system/app if rooted (though I think the feature was only added with ICS).

I can't stand that popup either though and have a severe dislike for tapatalk. From my experience with administering a forum, they charge quite a bit for their software and then charge quite a bit more on top for small bug fixes they won't fix otherwise :(

One example is tapatalk users not being aware you're part of the forum staff when you're attempting to calm down some users and they go off on you. Though that works two ways I suppose, since they can't see you're part of the staff and go off on you as well and gives you an excuse to give them a couple day vacation :)
They are contractually obligated to pay me, but it isn't worth it to collect. Plus, I still like them. It's mostly just startups that ran out of money.
There's really no need for the pointer inside the struct. You could just use a flexible array member (introduced in C99) or a "struct hack" if you're still using C89.
You don't need an iPhone to use Facetime.

I have a 6 and 8 yr old and both received iPad minis for Christmas and they have already FaceTimed with their friends and cousins via their new devices.

And we are now spending a lot of time educating our children how to properly utilize technology to communicate with their friends. That includes a number of very firm rules and regulations.
What about the whole Objective-C > HTML5 thing though?
I have a difficult time believing that. As someone who made a living repairing appliances, the microwave is one of the most simple. Often you will find a complete instruction guide for the repair inside, provided by the manufacturer. Components are easily removable and replaceable.
Granted, I'm in 11th grade, but I and most others I know have a non-trivial amount of cash. (Though, since I have no income for 75% of the year, I try not to spend anything.)

Most people in my cohort aren't exactly destitute. Certainly, a business could make money selling to teenagers. They just couldn't achieve the volume that something like Facebook has.

Generally, people like free things and have a disregard for their privacy, (myself included) which is why ads are far more lucrative.

HOWEVER: This observation is not necessarily reflective of the generation at large, so I would take this with a grain of salt.
"Initially as spokesperson, and then as President, of the Movement for the Survival of the Ogoni People (MOSOP), Saro-Wiwa led a nonviolent campaign against environmental degradation of the land and waters of Ogoniland by the operations of the multinational petroleum industry, especially the Royal Dutch Shell company. He was also an outspoken critic of the Nigerian government, which he viewed as reluctant to enforce environmental regulations on the foreign petroleum companies operating in the area."

And there was an international shitstorm regarding this which is how I came to know about it. Shell was implicated as having leaned on the Nigerian government to get rid of this troublemaker which they promptly did.

Bits like "At least two witnesses who testified that Saro-Wiwa was involved in the murders of the Ogoni elders later recanted, stating that they had been bribed with money and offers of jobs with Shell to give false testimony – in the presence of Shell’s lawyer." in the wikipedia article should hopefully convince you of that.

Really, I feel a bit insulted by your references to being trolled, it's not as if I'm the new guy around here. Feel free to disagree with me but calling names is really bad form.

Shell did what they did because they thought they could get away with it.

1995 is today enough that I remember clearly reading about this in the papers, and about many other big oil crimes since then. I purposefully selected something that should clearly register as an outrage on your spectrum and the only thing you bring up to defend it is that it wasn't 'today'. There are many more recent crimes by large corporations but this one stood out for me.

And no, I don't limit my criticism to corporations but if you look back a bit then you'll notice that this thread started about corporations so that is the topic.
Well, here in China, cutting food (specially raw meat) with scissors is actually quite standard in restaurants.

But I guess the pizza part may not be so common. ;)
> Cybernetic Hate Crime

Are you fucking kidding me? That is not a thing. And if it were, the thing that happened at McDonald's would not qualify.
"then rent increases are limited by law"

In certain cases, yes, but personally I lived in SOMA in an apartment for 2 years and my rent was going to go from 2k to 3k because Google had asked the building if they could rent some of the units. So I mean, maybe it was illegal and I don't know about it, but I can certainly say I don't live in San Francisco anymore because I was priced out by new incoming tech employees.
It depends on the size of the update. From my experience in social gaming and consumer web, we use tooltips and login modals greetings for most changes. For more significant ones, we use blog posts (kind of like doing a press release) and then email all users to let them know. As long as you have a unsubscribe link, you're not going to be considered a spammer especially if they signed up for your service. The benefit of engaging with users (increasing conversions and building community) outweighs the cost of annoying your fringe users (churn).

This is an interesting experiment on emailing users.
http://searchengineland.com/extreme-email-experiment-how-muc...
Extreme Email Experiment: How Much Is Too Much?
If you do this, the Vector could likely move when resized.
I don't see any evidence presented that it is smaller or faster on this page.
The halmark of HN: a myriad of down-votes with no elucidation.
Its just crap, he doesn't understand what social is so he can't internalize the value of it. He, like others, thinks Facebook's IPO performance marked it as a 'failure' except that they are making money and a profitable business [1]. People are writing off Google+ because it doesn't do anything for 'them' but to often people fall into the trap of not seeing the value for others.

What Facebook hasn't picked up on yet is that Social is "search" and "search" is Social. They are two sides of the same coin (pun intended). Search is a powerful economic engine because it marries people who are searching for something with people who want to sell it. But that is ultimately a singular experience, in our day to day lives we are ultimately affected by our peers in our commerce, we want to know what movies they like, what clothes they wear, etc. We want to fit into our group, its instinctual, and as folks have known forever that drives fashion and it drives commerce. So the economics of social are the same as search, except contextualized by your social graph.

By all accounts Google understands that and they are making good progress with G+, Facebook still doesn't quite get it and they are vulnerable. The only question in my mind is will FB figure it out fast enough to stay relevant, and if so can they execute on that understanding. If not they are toast and Google wins.

[1] http://www.google.com/finance?q=NASDAQ%3AFB&fstype=ii...
"Landlords are reluctant to negotiate mainly because the next person in line is a Googler who will pay $1000/month above the asking price without thinking twice."

I actually lived in 388 Beale, right by the Google towers. My rent went up exactly $1,000/month when Google started renting units at insane prices for their interns/traveling employees. So yeah, pretty familiar with this and this is why I no longer live in SF. Also, it really feels like shit to get pushed out of your apartment so some sales exec at Google can stay there once a week. Yay efficiency?
"You could always build upward to house the rich people instead. I'm sure a lot of the incoming startup-types are young and would be happy to live in a high-rise"

You have to remember that San Francisco is a prime earthquake zone. I'm not sure how many rich people would want to live in what is essentially a death trap if a major earthquake (which is supposedly long overdue) were to strike California.

Also, gentrification tends to happen when wealthier people decide to move in to "hip", "happening" areas with "character". In other words, areas that the poor artists and the blue-collar melting pot have managed to just lift out of being a hellhole, through their hard effort. That's when the yuppie and hipster colonization begins. Witness the fate of the Greenwich Village and Williamsburg in NYC, and what's described in the original article in respect to SF.

So, I'm not sure how attractive high rises built for the rich would be to the rich themselves, as they'd be cultureless islands. No, they much prefer to take over brownstones and victorians that poor artists have fixed up, in an area full of "character".
One of the examples in the article is a couple who have lived in san francisco for a long time, and feel the need to move to a bigger place because they now have kids. But they keep getting outbid on houses.
"Turn your faucet on full blast with a measuring cup underneath and count how many seconds it takes"

There's nothing more annoying then someone wasting water like that.
Bhe, Github handles all the github.com links. Yet, when it's not something supported by their app (like 95% of the links I stumble upon), they simply redirect the handling to a browser.

The result is:

- Click github link.

- Prompt menu : which application do you wish to use? List of browsers and the github app.

- Click on github.

- Github loads, then...

- Prompt menu : which application do you wish to use? List of browsers.

I could use the 'Always' option, but then the github app wouldn't recognize the links it actually handles.
8-8.
I agree with your sentiment, but just for completeness, there are a few ways existing residents get 'priced out':

1) the 'assessed value' of owned property (used to calculate property tax) can be raised ~2% per year[a], so over a decade a home owner's property tax may increase ~22%

2) Not all of SF has rent control. Any building constructed after 1979 does not. [b]

3) Not all renters are savvy enough to not get kicked out by greedy landlords, despite the laws protecting them. Apparently landlords often use 'renovations' as a way to do that. Just last week I overheard a conversation in Trader Joes about someone who had fallen pray to that [c]

TLDR: money is like water - it will find its way through the cracks to the place it wants to be (the pockets of those with capital).

a: http://www.sftreasurer.org/index.aspx?page=66
b: http://www.sftu.org/rentcontrol.html
c: time travel to TJ's on 8th, ~8.30am last Sunday.
I can tell you that my SOMA apartment's rent went up 1k because Google wanted to rent some units in it. This pushed me out of San Francisco. I don't think most of these Embarcadero/SOMA startups are interested in high rises in the Sunset or in West Portal, they want high rises in SOMA, which is where they're being built.
There's a measuring cup underneath that catches the water which then goes into a pot to boil. No water wasted.
I found casperjs (http://casperjs.org/) to be a pleasant framework to work with.
Democracy does not mean civilized society. On the contrary, the same goes for other "democracies." Sad indeed.
Based on my observations (qualifications: I go to a fair number of busy cafes a lot :): Around here (Tokyo area, mostly western Tokyo [Shibuya, Shinjuku, etc]) there was a big jump in coffee-shop tablet usage a year or two back. They largely seemed to displace laptop users.

Subsequently, however, tablets seem to have almost completely disappeared from cafe/coffee-shops; usage on trains is also down. Maybe people still use them at home or something I dunno, but at least in public usage they showed every sign of a classic fad...

Interestingly, laptop usage doesn't seem to have recovered... most people either chat to real friends, use their smartphone (often together with their friends), ... or read (yes, real book usage seems to be up quite a bit)...

I wager it's just too annoying to carry around a tablet, and smartphones are now good enough that they've largely displaced them in public "on the go" usage, where portability is a key factor.
A better explanation is that apps are simply the fashion right now. Everybody and their brother doesn't need a web page any more than they need an app.
However, it is perfectly possible in Linux to turn overcommit off. So you still need to check (or segfault…).
He's definitely a keeper.
Could you state explicitly what conclusion you think mathbabe draws, the one you're not sure follows?
Most of these seem really iffy. Brought to you by a guy who also blogs about how to interpret your dreams. Hrm.
True, the vector_append function would have to return a pointer to the new location; this might or might not be a problem, depending on how your program is structured.
Facebook. Twitter. Uninstalled. What about a moratorium on Hacker News? Personally, I could have launched several apps with the time I've spent reading Hacker News. However, I get a lot out of HN ... Damn ...
Indeed, democracy is nothing more than a tool. Without proper built-in safeties, it can be used for evil just as easily as it can be used for good; that is why the constitutions of democratic countries are all longer than "Vote on stuff, majority wins." The US constitution, for example, has a built-in safety to ensure that a mere majority cannot vote away freedom of speech (changing amendments has a much higher bar).

It shouldn't surprise us when shitty things happen in democratic countries. Merely being democratic implies next to nothing about a country.
But it's much more likely for it to land on "any other time" than "on an interestingly repetitive time."
There’s A Difference Between Private And Personal
Hacker Node works pretty well, but doesn't support voting, commenting or submitting.
A little over a year ago, I moved out to San Francisco from D.C. because I knew this was the hotbed of innovation and start-ups. Before moving here, I had no prior knowledge of any of the culture or neighborhoods (beyond a little about the Mission) but after being a resident of this city for a little over a year I love it. The people I've met since I've been here are some of the smartest people I've associated with; the food is better than any city I've lived in, the people are friendly, and I feel like I can have intellectual discussions with like minded people that understand my passions.

One thing I do struggle with is making this a permanent home. I feel like right now, people are coming here (as I did) because frankly, this is where the money is. Even Y-Combinator advertises that if they invest in your company; They want you to move here and encourage you to stay here.

> If we invest in you, your group is expected to move to the Bay Area for January through March 2013. (You can of course leave afterward if you want, but it's a good place for a startup to be.)

I'm curious to see what happens when/if the bubble pops. Will people stay or will they go back home? For people that have been here 15+ years, could you shed some insight into what happend in between 1999 and 2003 as the last influx of innovation left the area? I feel like those were the years when giants such as Apple, Yahoo, Google, Sales Force, and Mozilla were essentially minted.
In some places- for instance, my school- iOS penetration is probably above 60%. Mind you, this is a school district populated by quite a few low-income families. In more affluent areas, it's north of 90%.
How does this change the fact that if you allow more high rises in SoMa, you can accommodate both the existing tenants and the new techies moving in, all without raising rents?
It is not on GitHub at this time it is still under construction and so not ready to be published just yet.

I am definitely considering publishing it open source though.

As for your project, I am currently writing this blogging platform in perl, though it could be ported to ruby.
Why? Just because lots of people don't do it for their own personal reasons doesn't make it taboo. Lots and lots of people really like seeing these posts (as evidenced by this and patio11's post being at the top of HN all day) and they can be very useful. Patio11 for instance said he started doing what he is doing in part because of a similar post by someone else.

I think it's more likely that it's human nature for people to be jealous. Some people keep it to themselves, and others lash out on forums like this one.
If you can't spare 30 seconds to floss outside of the shower, maybe attack the serious time sinks first before micromanaging less than a minute of your day. By the time you're done reading this comment, I will have wasted more time than you will ever save with any of these tips.

Also, the frying pan trick unnecessarily forces you to wash a pan later. Preheat the oven for a couple of minutes at 350F, leave the pizza right on the rack for 5 minutes, enjoy. Some pizza tastes better the second time this way.
In earthquakes Taller buildings are safer than smaller buildings http://articles.latimes.com/2007/mar/25/opinion/op-little25

Also, go to the the hip neighborhoods in NYC (LES Williamsburg), notice the tall buildings being built. Units in these buildings are being bought for large amounts of money.

I think
So the government passes laws to limit housing stock, then passes laws to artificially keep rent low, then people complain about prices going up and a lack of housing stock? Has anyone in SF read an Economics 101 textbook?
I also have separate scissors in kitchen to be used for cooking. Cutting chicken for salad, slicing bacon or whatever.
You need to realize that life is going to kick your ass and leave you bleeding on the floor from time time. Your job is to get up as quickly as possible and to keep moving forward. Life is never going to be easy. Never. Not with a degree. Not with money. Nothing makes it easy. Its an a fight right until the end.

Keep your arms up, keep fighting, and keep your eyes on the prize.
Isn't building earthquake safe highrises pretty much a solved problem? When I think "ring of fire", I don't think "flats".
ImageOptim includes it, I just couldn't remember the full name at the time.
The argument against Java as a starting language (libraries doing too much for you) is equally applicable to any high level language. I don't see how this is unique to Java.
Ask HN: An Apple App Store strategy
I've been an Apple shareholder for a while and I've been thinking about their iPhone/iPad business and the threat from Android, Windows Phone, Blackberry, etc. Currently, an iOS competitive advantage is the large number of high quality apps in the App Store. However, this could change if iOS continues to slip in market share and developers focus their efforts on other platforms.

What if Apple allowed developers to enter into an agreement with them wherein Apple's cut of the revenue would be only 15% if their apps were exclusive to iOS? This would incentivize developers to focus their development on iOS which could be more profitable than having the app on multiple platforms (as far as I know iOS is still the better platform for monetizing apps). App Store revenue is an immaterial amount to Apple and it would likely be worth it to strengthen the moat around iOS.

My question is would such an arrangement be considered anti-competitive by regulators? I can't think of any precedents related to this other than exclusive games for PS3/Xbox 360, though I'm unsure if Sony or Microsoft does anything to incentivize it or if it's simply developer choice.
malloc failure isn't just bound to running out of physical memory. It can fail because of fragmentation, with or without overcommit.
Hit me up on Twitter - @windexh8er and we'll go from there.
There are much better libs out there that do this.

I always use the utarray and uthash stuff when I can.
I can speak a little from my experience in electronics at GE Appliances. I hated most of interfaces we put on things, but that wasn't my call to make in engineering. I seriously doubt it's a patent thing. Note that we didn't make microwaves -- we outsourced them. There aren't a lot of companies that make them any more. Competition is primarily on price. You want to keep costs low -- R&D, development, manufacture and warranty. Justifying an increase of pennies per unit is tough in that environment if you can't prove a direct increase in sales. Think of decisions being made with the mindset that you don't get promoted by increasing the cost 50 cents per board. ;)
I didn't know that the Groovy folks were involved in Kotlin. That's great to hear. I think this team has exactly the right experience to build a potential Java killer.
rut roh, all those new highrises in downtown LA....
>They’re the best all-around tool on the counter, useful for butterflying or quartering chicken, trimming pie dough, shaping parchment to line cake pans, snipping herbs, or cutting lengths of kitchen twine

http://www.cooksillustrated.com/equipment/overview.asp?docid...

I use kitchen shears (kitchen name for scissors, only used for food stuff and washed like knives) frequently. I haven't tried it for pizza, though!
> So, I'm not sure how attractive high rises built for the rich would be to the rich themselves

There are four units for sale at the (42-story) Infinity now, and the cheapest one has an asking price over $1.2 million. In my book, that's for rich people. If you consider a $1.2 million condo a middle-class dwelling, you may have lived in San Francisco for too long.
> The problem with opt-in is that people won't use it unless they (a) know it's available, (b) know how to get it, and (c) actually go get it. So people don't really do that. But establishing an opt-out convention like this solves the problem entirely, and it's simple.

I don't see any of those things as "problems". IMO, it should be opt-in, on a per-project basis. There could be another checkbox in each project's "Settings" tab. The default should be that people are left alone.