skysight-inc/HackerNews huggingface dataset:
The idiomatic way to get a pointer to one past the end of an array x with element-type foo is

x + sizeof x / sizeof *x

which is equivalent to

(foo *)((char *)x + sizeof x)

whereas

x + sizeof x

is equivalent to

(foo *)((char *)x + sizeof (foo) * sizeof x))

The expression

&x + 1

is not idiomatic as it has the type pointer-to-array-of-foo instead of pointer-to-foo.

As to your final question: Parameter declarations discard the size of array types - they are actually pointer-declarations in disguise.

To enforce a fixed array size, you need to declare a parameter of type pointer-to-array, eg

void bar(int (*arg)[42]);

which you'd have to call like this:

int x[42] = { 0 };
bar(&x);
.. and I probably wouldn't know the alphabet ;)
Introducing HTML5 Resource Center - Facebook Developers
And its not a reason to not. If the kids can pick up ABCs/Numbers while watching 1/2 hr of TV or 1/2 hr of you working hands on with them, doesn't change anything. So advocating no TV is a poor reason in this particular case. I think we all agree there is a healthy balance to be met.
Fast-moving people will also be Lorentz contracted, so there will be plenty of room... if there's enough energy.
Fixed the typo-- thanks!

Siri is interesting-- and may (someday) kill us, but I think it remains to be seen how practical it is for communicating/mapping around your calendar. I get plenty of stalls and "I don't understand you" on the Siri front-- especially with people or cafe names.

Of course, even if Siri PERFECT, there's still a huge swath of people with older iPhones, a hatred for voice controls, accents, etc.

While we're committed to the app, it's definitely in the "revenue generating project" category (versus the "I hope I'm doing this 10 years from now" category! :-) ).
Facebook releases HTML5 Resource Center
Twitter CEO Costolo on Apple, Privacy, Free Speech and Google; Far From IPO
The biggest problem that I have with Bitcoin is that there's a bit of an impedance of trading dollars for BTC and vice versa. When you could use Dwolla, that helped, but now that Dwolla pulled out (at least that's my understanding), it's even more difficult to get BTC.

What would be ideal, is to be able to use your credit card to buy BTC. But that won't happen because credit cards need the ability to support charge backs and that makes it difficult with BTC's anonymous nature.

Once this problem is solved, I think you'll find a lot more people becoming involved with BTC again.
Up until now, I'd argue that the comparison has been kind of apples and oranges. Being limited to one carrier has been a huge disadvantage to Apple in terms of mass adoption, and the shadow of "the next iPhone" even loomed large over the February Verizon launch. An iPhone launch across all the major carriers is huge - it's not unimaginable that people will just "buy Apple" without the carrier restrictions. In terms of market share, the next 6 months will be far more indicative than the last three years.
That doesn't invalidate the study at all. A correlation is still a very real statistical thing. It doesn't automatically imply causation, but it doesn't rule it out either. In fact, it's usually pretty good evidence in favor of causality. If this correlation shows up in enough studies without any alternative explanations, causality would become the prevailing theory. Dealing with human subjects and long term effects is difficult; controlled experiments are rarely an option.
Regina 3D Launcher For Android
i doubt it
It should-- it actually uses the data from your native calendar and should behave the same with regard to timezones.
I beg to differ.

How is a bitcoin different from a Dollar? A Dollar is a piece of paper denoted with an acceptable value. Bitocins are mined on a GPU, Dollars are printed on paper.

You cannot guarantee that dollar is indeed backed by a piece of a golden bar, since it is very much not the case.
> It's a cellphone.

Not so. It's a magical device, especially to those of us who remember the world prior to the beeper.
Another brilliant part of their strategy: it's borderline impossible to friend people. It's like Google+'s closed Beta strategy except it's not a Beta, it's just the whole entire product!

This is the future y'all, I'm telling you.
I set up an acct on Twitter with a bot. How long before it starts tweeting anything? And can the activity level be changed?
I don't think that's necessarily true: http://en.wikipedia.org/wiki/Wampum#Currency
My guess is that this is an advertisement for LCD monitors... the guy went crazy because he's still using a CRT... poor fella.
Signed up for an account. Easy, simple, and fast, but when I tried to send a message, my test phone didn't receive the text message. So great design, but the basic functionality doesn't work!
I couldn't live without Fuzzy Finder, and the following two lines in my .vimrc file which really make it fast and simple:

"re-map <leader> from \ to , (comma) to avoid a reach

let mapleader = ","

" map comma-f to open fuzzy finder in the working dir,

" ready for a wildcard filename search

map <leader>f :FufFileWithFullCwd /<CR>
Berlin Startup, need an extra pair of hands?
I'm moving to Berlin next month, so I wonder if any web startup there needs some help.
I'm good at html/css/php and I know some js (jquery). Would like to learn RoR.
I founded http://ma.rs in Belgrade last year, also looking for a partner for that :)
Internet Explorer Canvas Tag Massively Faster Than Chrome
Agreed - but I have had code just like this come up as an interview question.
Chime.in launches to disrupt publishing
Nokia awards clone of Zuma (available in their store) $250,000 innovation prize
Bethesda should have played Quake.
The above is correct. The lab is an FFRDC managed by MIT. It's a really great place to work! I'm in the computer security group and we're hiring for full time and summer internships. There's a description of my typical day in my profile. I'd love to chat with anyone that is interested at tsally@mit.edu.
There doesn't have to be any-- the reality is that for a vast majority of parents, it's easy to slip and let your kid watch Yo Gabba Gabba for a half hour once every few days, just to catch the slightest break.
After looking through it, these pages seem light on content, aside from the fact that they want you to distribute apps through their platform. A select listing of links to somewhat useful sites. Not sure that this is worthy of front page on HN because of it's lack of new or insightful content.
Thoughts?
Julia Roberts Biography
Julia Roberts Biography
he was already acting in the soap opera Another World and the following year became an instant hit in a movie called The,
Curiously, my name is Mars, and I support the legalization of all drugs.

The drug war causes far more harm than the drugs ever could.
ViSalus Sciences Review - How is your business wellness?
On 64-bit machines, int is typically 4 bytes. Longs are typically 8 bytes. But if you really need to assume a certain length, use the typedefs from ctype.h. (For example, if you wanted a 4 byte signed integer, you would say int32_t. An 8 byte unsigned integer would be uint64_t.)
You're misreading the headline or misinterpreting your parents. When you were reading as a "two year old", they mean you were between your second and third birthday[1].

When the study says "No TV for infants under 2" they mean babies between birth and their second birthday. And the recommendation isn't about "bullshit" TV, it's about the fact that kids watching a screen aren't interacting with a human being and learning how to communiate. The studies correlating TV watching with delayed speech are very well supported.

[1] Obviously it's likely you were closer to three. And knowing now how parental memories can, heh, embellish things, I strongly suspect that most of your most memorable reading tricks happened when you were, in fact, three.
"If the kids can pick up ABCs/Numbers while watching 1/2 hr of TV or 1/2 hr of you working hands on with them, doesn't change anything."

I really hope you didn't just say that there's no difference in learning between talking with your kid, or having them zone out in front of the tv.
Flipkart 50% Discount on Online Book Shopping
What happens if a kid doesn't have a phone?
Android really doesn't run quicker than WebOS yet. There isn't any 2D hardware acceleration (last I knew, a few days ago). This means that sometimes Android is really fluid, but then it starts studdering and kind of ruins the experience.

I also had a ton of Force-Close's on the browser. I'm back to WebOS until the Android CM7 builds get past Alpha. It looks like it'll be usable, but not really yet.
Thanks for the clarification. I was thinking may be they were mucking with shared libraries. I found this useful link on digging further. Doesn't seem like too much of black art. http://www.culater.net/wiki/moin.cgi/CocoaReverseEngineering
Or sold on Amazon.com:

http://www.amazon.com/Inside-Giant-Machine-Amazon-com-Story/...
Indeed. I, for one, profited quite well for a few months as one of the many driving speculative conversion rates. I also predicted the short-term effect of the speculation and exited early. I do not see Bitcoin recovering any time soon.
How Science Can Teach You to Easily Spot a Liar
Revision history would be nice, but I can't really agree about lock-in: you can very quickly/easily download all of your files (even allowing you to specify different formats for each file type). Switching to, say, Dropbox, would take a few minutes at most.
I started with FuzzyFinder, and although I've been using PeepOpen lately, I think I'll be going back to FuzzyFinder. It makes it easy to traverse the entire filesystem (which PeepOpen does not), and it makes directory structure apparent for situations where I don't remember the exact filename, but I don't want to mess with a full tree browser either.
I'm pretty sure the code is undefined once you do x+1 (that is, treat an array like a pointer). Arrays are auto-converted to pointers in, for example, function calls, but until that is done doing arithmetic on them is undefined.
My wife and I chose to adopt a "no screen time" policy for our child, who is presently 7 months old. Here are my observations so far:

1. At a restaurant with TVs, we've observed our child go from laughing and socially engaged, to completed zoned out and unaware of people in mere seconds, just because the television appeared in his field of view. :-(

2. At less than three months of age, he had a fit when pulled away from the television, under the watch of in-laws.

3. Both parents have iPhones, Macbooks, and have a tendency to flop in front of the TV (Roku, Hulu, Daily Show) in the evening. Our no screen time policy prevents us from gazing into our own screens without paying attention to the needs of our son.

4. Finally, most advertising is obnoxious and has no place in my home. Why expose our infant to it? He'll have the rest of his life to be accosted by ads.
Typically on 32-bit:

sizeof(char) == 1
sizeof(short) == 2
sizeof(int) == 4
sizeof(long) == 4
sizeof(long long) == 8
sizeof(void* ) == 4

Typically on 64-bit:

sizeof(char) == 1
sizeof(short) == 2
sizeof(int) == 4
sizeof(long) == 8
sizeof(long long) == 8
sizeof(void* ) == 8
How Startups Have Changed the Way American Business Thinks
What you're saying is:

A) Wrong

B) Ridiculous
Do YC funded companies hire non-technical people at all?
I keep looking at the jobs listed at YC's jobs section and I don't remember seeing any job for non-engineers. Is my observation right? How will the management positions filled?
Seriously, the texting feature didn't work!
I think this is a great idea. As a student right now, I know I would love to use this. But I would love it even more if teachers would use something like this to keep us updated (as opposed to the crappy school-district run sites they barely know how to use..)
Starting a pointless argument on the Internet? Sounds like it's doing a smashing job at mimicking the average Internet user. It could get worse if it uses YouTube comments as a training set!
sizeof(int) is either 2 or 4 on all reasonable architectures. On all modern and reasonable architectures, it must be 4.

Short answer: if sizeof(int)=8, then you lose either the 2 byte integer, or the 4 byte integer. This would make it harder to minimize memory footprint in programs which work with large amounts of data.

The reason for this is that char, short, int, long, and long long are the only names you have for various integer sizes. Since sizeof(char) is fixed at 1
and sizeof(char) <= sizeof(short) <= sizeof(int)
if you make int eight bytes, you must either drop the two-byte or four-byte integer since you only have one name left for it. Dropping one of those types will make programmers unhappy since they packing structs careful is a valid thing to do for memory minimization in large-memory programs.

Note that int32_t and friends are not valid names since they MUST be a typedef for one of char, short, int, long or long long.

Disclaimer: if C11 has fixed this, I'm ignorant of it.
How does something like this work where not all kids have phones? Are some school districts now distributing mobile phones and access plans?
I got all questions right, although I was not confident (so sizeof(int)is 4).
Google's SERP for Android 4 returns hits about Ice Cream Sandwich as expected... Also, it just launched today, a general lack of cotent may be what you're running up against.
I am a java programmer and got the first and the last answer correct and the last answer only because the explanation of the second and third one were good enough to understand the last one.

Learned something, so thanks for the link.
I had the sync issue solved initially by using gmail contacts via Exchange sync on my iPhone and the built-in "synchronize with google" via the address book on my macbook. (Actually synced with Yahoo mail via the address book as well; this 3-way sync actually worked fine).

I switched to iCloud contact sync, because it has a richer data model (try to tell your 4S that a certain contact is your mom, and it would creation the relationship as "supervisor" or something).

Now this creates a problem, because I very frequently add/edit contact in Gmail and I want that to sync to my phone automatically over the air, and pretty quickly.

Is there something that will keep iCloud and Google contacts in sync, without losing the richer data from iCloud?
I prefer Raph Koster's way of putting it, that good games are really just "satisfying work".
How Fast If Your Browser - Simple HTML5 Tests
Minus updates their free file sharing app
I think you raise a good point and I wouldn't want to put others off if this isn't commensurate with their learning style. I suspect the overlap between math geeks and haskell learners is pretty big, but one should, as you are, evaluate one's own preferred learning style against this approach.

I find human languages are the same for me. I have always liked to approach them from a bottom up linguistic direction, but this means largely self-structured study.
What this also does, and they won't mention this, is get their cookies through your firewall filter because they are encrypted and cannot be read except direct by your browser.

This is why I use https for gmail and http for search. But I guess I have to use browser based filtering now.
Might as well say vast swaths of all young men are off-putting. These are pretty standard motivations (though usually not stated so bluntly + publicly).
Oracle Eying Endeca? (Oct 18th Update: Oracle Acquires Endeca)
I get the impression that full frame is never going to get cheaper than ~$2,500.
Ask HN: Buying a domain with someone else's brand in the title
What's the legality of using other peoples' brand names in your url.

For instance
http://www.googlefight.com/
http://www.google-analytics-book.com/

The first is descriptive of the service, and the second appends a product to the brand and application.

Does anyone know where/how the line is drawn?

gogggle.com?
googleappengine.com
Perhaps the most useful way of looking at this, is to think about whether a child who isn't exposed to TV until two years old would gain benefit, over children who are.

I agree with the premise that, being able to respond to feedback, and alter and hone their responses over time is a central part of any child's development. TV isn't as passive as some commentators make out - but the mechanisms required to process the sound and images we see in an interactive way require a degree of development that a very young child isn't likely to possess.

There's one thing that I am certain of; I think advertising aimed towards children should be banned. If there's any evil that could (and should) be stopped it's the drastic effect that commercial advertising can have on impressionable minds.
Anecdotal evidence. I listened to NPR a lot with my first child, and other than a faint liberal bias, he has turned out just fine.
Feeling slightly underwhelmed by what's seems to be on offer here. A shame since I was really looking forward to this when I first heard about everyme.

I do think address books are a bit broken these days, especially with how you get info in/out of them. Reconciling duplicates and adding social info is definitely useful. However, building yet-another social-network based on it is not enough to entice me to use it (I already have enough of those).

I guess, what I'd prefer is something like rapportive and writethat.name but as a stand-alone address book.
What about

*(x+1)

that is equivalent to x[1]? Here, in principle, you do x+1 before applying *.

EDIT

HN formatting magic.
So for question 4 it was a matter of realizing that the type for &x is a pointer to an array of 5 ints:

int (*y)[5];
y = &x;
printf("%p, %p\n", y, y+1);
So, interacting with your children is better than letting a TV babysit them. I think the same thing can be said for adults.
I'm glad the study excluded interactive educational games, which I think can be very beneficial when used in moderation along with reading and creative play.
Yet another resolution for devs to worry about. Thankfully iOS makes it easy for developers.
They're getting there. Cairo is fairly neat these days, you can actually take vector screenshots of applications.
A few are looking for sales people.
Daily Mobile Minute: There is but one retailer
It's a pretty big feature, I'd say.

Anybody who was a mac user before 2000 can tell you how painful it was to use a mac when your friends or coworkers had windows. It was horrible. Problems with file sharing between systems created huge network effects for microsoft. It killed the possibility of having a mac for a lot of people.

The fundamental problem of compatibility requires not only technological and architectural commitment but also willingness to cooperate with competitors for the sake of the user.
> Most of the world's currencies don't have backing these days.

Not true. They have the backing of their government's tax payers. Backing doesn't need to be a hard asset like gold, it can merely be the full faith and credit of said government.

> Also for the record the only reason backing is important at all is because backing means there's a finite amount of currency that can be created.

Again, not true; backing is important because you want to know your money is safe, not because it's impossible or difficult to inflate.
no trackball with alerts like the first nexus.

i'm unimpressed.
Details Emerge on a Possible Precursor to the Next Stuxnet
The call is coming from inside the house!
Bill Gates & Warren Buffet Plan the World’s Biggest Bank Job
> Call me back when someone has actually locked out FOSS.

The whole point of this article is to prevent that from ever happening. By the time vendors start implementing this plan it will be too late.
I got all right except 2 because I thought that sizeof(int)==8 on 64 bit systems.

Array vs. pointer is one of the more advanced interview questions I like to use to probe C knowledge. I don't actually expect any correct answers, just the knowledge that array != pointer.
Really? Would you like to back that up? I mean, it's a good thought, and sounds good, but people say it _all_ the time without giving reasons. If something is limited, for whatever reason, it can become valuable. We see that all the time. If something is valuable, it can be used as a currency. Maybe something is not as stable when its value is tied to itself only? Bitcoin could sure make a good case for that. But, then again, Gold's value is backed by nothing but scarcity (with its value at $1600/oz I'd say its value as a metal is no longer a significant factor, if it ever was) and it's stable enough.
They found out that loosing money and then getting bailed out gives even more profits.
Creating Rich Interactive Web Apps With KnockOut.js - Part 2
I kind of agree.

Although Microsoft and Google have tried this sort of thing before (and a long time ago if we include WebDAV & Web folders) there is nothing quite like a successful product that gets it right and takes over to light a rocket underneath the bigger companies.

If iCloud takes off most Apple users won't look at Dropbox. Those of us already using it may find we use it less and if they then add a simple, cross-platform way to share files & folders we may just move on completely.

There's a lot of ifs there, but I believe that iCloud will at the least hamper Dropbox's move into the mainstream.
Norway's Statoil is selling an oil platform in the North Sea
YC companies definitely hire non-engineers. But often the first few hires will be engineers; at Zencoder, we were 7 engineers and 1 business/office manager before we hired for sales/marketing.

We're currently looking for a marketing manager. http://zencoder.com/jobs/
In fact, it's usually pretty good evidence in favor of causality.

What is that statement based on?
Hey sorry for the late reply.

Asking people what their biggest problem is sounds like a good idea! I should do that too.

Have you tried telephone sales, by the way?
My first instinct was that sizeof(int) was the same width as the system architecture (64 bits)... specifically because you mentioned it was a 64 bit system.

Either way, after I realised that sizeof(int) == 4 the test was surprisingly simple. Are pointers really that hard to grasp?
Apparently, they wouldn't have to drop the registration, because it has been denied anyway by the USPTO. Also I don't understand why someone with the trademark on the game Scrolls cannot sue other games named Scrolls. It's the same reason why we don't have Teachbook, Faceporn or Lamebook. And that's the whole point of trademarks.
My wife and I have found similar results as an experiment with three of our children (yes, experiment) progressively allowing more screen time per child at a younger age. We have found that attention span alone is inversely proportional to the amount of screen time allowed.

We now limit to just 1/2 hour per day per child in a family of iphones, ipads, itv, laptops, kindle, etc.

As a result, our oldest who collectively has as much screen time as our youngest is into reading/writing, drawing and someday soon I intend to get her writing some code. Of course, your millage may very, and I'm not quick to judge others when it comes to parenting. Not an easy task.
That's clever. The Forbes story mentions the use of google advertising done directly by dropbox, but noted they found it ineffective. However that probably referred to the uptake of paid subscriptions?
"They toyed with advertising. “That’s what you’re supposed to do: hire a marketing guy, buy Google AdWords,” says Houston. “We sucked at it.” It was costing them $300 to hook one sign-up.".
http://www.forbes.com/sites/victoriabarret/2011/10/18/dropbo...