skysight-inc/HackerNews huggingface dataset:
No, this form of strength reduction can often eliminate modulo operations in a loop even when the modulus is not a constant. The example given is:

for(t = 0; t < T; t++)
for(i = 0; i < NN; i++)
A[i%N] = 0;

which is optimised to this, without a modulo in sight:

_invt = (NN-1)/N;
for(t = 0; t <= T-1; t++) {
for(_Mdi = 0; _Mdi <= _invt; _Mdi++) {
_peeli = 0;
for(i = N*_Mdi; i <= min(N*_Mdi+N-1,NN-1); i++) {
A[_peeli] = 0;
_peeli = _peeli + 1;
}
}
}

I find the modulo easier to read in this case, but I guess that's a question of taste. It's certainly not 'wrong' to use a modulo, and probably worth the trade off in most cases if it makes your code clearer.
Was looking at GrubWithUs' background, and thought people might be interest in this interview with Eddy Lu: http://mixergy.com/eddy-lu-grubwithus-interview/

How does a founder, who tries everything end up finding his hit business?

We started off with a gold apparel line. I mean, I enrolled in sewing classes at Santa Monica College...
Making a noise doesn't need to be troubleshooted or debugged. Making music does, unless you're trained in musical theory well enough to not make the mistake. There are many compositions that come across my desk for advice when the author knows there's something missing, something wrong, something out of place but they can't tell what.

You can have clashing chord progressions which are "good enough to ship", but to a keen listener might throw the whole performance away. It's not a perfect analogy (none of them ever are) but it might be more apt than you think.
> doing this all the time seems absurd to me.

Then maybe you shouldn't do it?

I don't mean to pick on you too much, but one of the things that makes me crazy about Hacker News on topics like this is the amount of "you're doing it wrong" that people produce.

The guy has a routine that he likes and meets his needs. He was smart enough to put together a routine that works for him; presumably he's smart enough to change it when he notices something negative about it.
they constructed a relevant sql query. that is more than enough for that scene.
compare with this:
http://www.youtube.com/watch?v=hkDD03yeLnU
I happen to like fast food.
I see two main targets: Grandmas (sorry to stereotype the tech savvy grandmas out there) or rather tech savvy sons of grandmas which want something that just works for their mothers and that automatically backs things up for them.
And enterprises who want to kick Microsoft prices in the nuts.
It's getting to the point where we might as well just implement a feed of Facebook's stock price at the top of every HN page.
I think you are right - I would also imagine that you could have a collage of images with meaning to you e.g. places you've worked and you pick the order your worked at them - thus the same set of pictures could be presented in different configurations changing your tap-pattern each time.
GM CEO Dan Akerson: 'We're dancing as fast as we can'
I believe in the same way as iTunes Match works, you would be legitimising your own creations to ensure that they were free from potential infringement actions.
Because when Twitter started, pushState wasn't available to them. It will take time to transition over, and to fully deprecate hash bangs.

(Hash Bangs were still the wrong way to do it of course, even back then).
After I wrote out "fuck just programming, cs is fucking awesome", I immediately thought it sounded like a good name for a blog post :)

Is my hipster showing?
Dragon de-orbit burn in progress ...
Yea. All this and more is covered in the fantastic paper by Ulrich Drepper: What Every Programmer Should Know About Memory[1]. Was very enlightening.

1: http://www.akkadia.org/drepper/cpumemory.pdf
Is that even a problem? Compared to how many kernel-level rootkits there are, are you really worried about getting a bios rootkit that much?

If this was really about security, MS would focus on fixing their sandboxing. This is about locking people into their software once they buy the machine. You can't install another system by using something like wubi anymore - now you have to know how to disable secure boot or get new keys into it.
Dolfie
Parmi les sneakers les plus à la mode ces dernières années, Dolfie est l'une des marques les plus inventives. A découvrir d'urgence !
For fun... see my decoding of the Morse Code at the start of Downton Abbey: http://blog.jgc.org/2011/11/downton-abbey-series-1-episode-1...
Thanks! I didn't know about tee.
My gripes were from working with something like this ( http://i.imgur.com/LnAvV.jpg ), and then trying to emulate that in CLI. (The picture shows a graph-based image processing system, Blender's compositing mode)
---
Source: http://www.blender.org/typo3temp/pics/ca33eb4833.png
"they should probably quit, start a company, and enjoy infinity time to themselves."

A shining example of "Shit's Easy Syndrome".
By warm up he's talking about the pre-heat system that helps diesels start when they are cold. Diesel engines ignite fuel by compression heat alone, there are no spark plugs. When it's cold, they can be harder to start. Two approaches, one is to heat the intake air with a heating element in the intake, the other is to have a glow plug (heating element) in each cylinder. Once the engine is running those pre-heating devices shut off.

With a diesel car, it's better to not let them "warm up" after starting... diesels don't warm up very quickly if they are not under load and they will accumulate carbon and parts will wear more if you let them "warm up" at idle after starting.
I would give slightly different advice: sign up for races, but don't compete.

I like having a race booked because it gives me a reason to get out and run even when it's cold and rainy: I want to be ready.

On the other hand, I've stopped caring how I do relative to other people. I go run the race. Sometimes I just run it for fun. Other times I'm working to beat a previous time. But either way, I keep in mind that my main goal is fitness, not victory.
The Dreaded Density Issue
>> "One of the side effects was sleep paralysis"

That's interesting. For me lucid dreaming is more a side effect of sleep paralysis. I usually realise I am dreaming when I experience the symptoms of sleep paralysis and am then able to continue the dream (aware that it is a dream).
Unscripted Steve Jobs Video Interviews Now Free on iTunes
Also Cory Doctorow's 2007 short story "Printcrime"

http://craphound.com/?p=573
I paused the movie on all computer shots, and they're all legit. He's using emacs to hack Perl code in the beginning, all of the computers have Linux desktops, and most importantly, when they say things like "I need a dedicated Linux box running Apache with a MySQL back end", it sounds like something the character says all the time. Typically in movies, you can tell actors aren't familiar with the terms they're using because they emphasize them, as if they're trying them out.
It's worth noting that a sharp high schooler can learn to program - many do.

It's a rare, rare high schooler that can learn how to use computer science. Most CS grads don't.

And we wonder sometimes why our software is so cruddy.
Nice try, Morrissey.
I get depressed whenever I read about these people who get bitten by the DMCA and then don't do the 5 minutes of internet research needed to figure out how to fight it.

It sounds to me like this guy had a clear case of DMCA abuse. If he designed the models himself, from scratch, then the best claim Games Workshop could have against him would be trademark infringement, and that's not what the DMCA is for. Therefore, all he has to do is send Thingiverse a counter-notification and, unless Games Workshop files a lawsuit (which they almost certainly won't), Thingiverse will restore the content in 14 days (they are required to do this in order to receive safe harbor protection under the DMCA).

Chilling Effects even has a page for automatically generating these counter-notifications, so there's really no excuse for not protecting yourself from abuse: http://www.chillingeffects.org/dmca/counter512.pdf
If there is anything I've learned over having a "successful" career as an employed person its that it eventually comes to a point where the benefits of moving forward/up in my opinion outweigh the benefits. (and in my experience this happens pretty quick in tech)

You get to a point where you increasingly can take on responsibility but the relative upside is no longer commensurate with the increasing value you are adding to the company. On top of it you inevitably start to become at odds with your employer in that as your abilities expand you wonder why you work for the person above you.

I guess from my perspective, its become apparent to me that moving up is generally a fools game at a certain point while "moving out" is the real version of moving up. I'm not going to say that taking that step of being independent is easy in that I'm still working on it myself but its hard for me to get excited about that next promotion these days no matter what perks it comes with.
Please help: entrepreneurs raising money for entrepreneurs while learning
Hi all,

We're running an experiment that I really hope will help raise some money for a very good cause.

Kiva.org connects people with low-income entrepreneurs in the developing world through loans. By investing in their businesses, people empower these entrepreneurs to achieve economic independence.

Instead of yet-another-adwords-webinar we're trying to do something a little different.

All we're asking for is a donation to the charity of any size at all.

I don't know if this will work, but think that this community is sharing enough to give it a try.

So please join me on Thursday the 21st of June - details at the following URL:

http://www.softwarepromotions.com/webinar.asp

If you also have the opportunity to share these details, I'd really appreciate it.

Let's make the world a tiny bit better while helping our own businesses in the process.

Thanks.
Swordfish was really funny to me because Hugh Jackman had the "kinetics" of a hard night of hacking exactly right, while he's typing at that ridiculous interface.
So where do mathematicians fall in that spectrum?
Without event horizon all the matter that spirals into it would emit a lot of EM radiation as it collides with the matter already there, converting kinetic energy into radiation. In this case they see matter spiraling in, but they don't see results of collision. So they conclude that no photons escape, and that's pretty much definition of event horizon.
Movies always abuse the gun-cocking sound, and/or have characters cock (or pump, for shotguns) the guns at inappropriate times because it looks cool.
the article fails to mention the food industry, despite the fact that the French Culinary Institute is very publicly developing food printers. You can imagine how Nabisco will feel when you can download the plans to print out Oreos in your own home.
Well put. My focus on the robotic aspect probably only reflects my personal struggles, not the poster's reality :)
Let's assume, for the sake of argument, that the questionable premise is true.

I don't know about the rest of you, but when an action is bad for 'class X which I happen to belong to' but right for me personally, I'm still going to take the action that's right for me personally. I don't know why Ellen Pao (or women in general, or any other group) should be expected to behave any differently.

A weak column by a normally strong writer.
I think L3 is much faster; perhaps 1/3rd of main memory, assuming the line is available and not in another core. Here are some numbers for L3 cache, from Intel (probably specific to the 5500 series)[1]:

L3 CACHE hit, line unshared ~40 cycles
L3 CACHE hit, shared line in another core ~65 cycles
L3 CACHE hit, modified in another core ~75 cycles
remote L3 CACHE ~100-300 cycles
Local Dram ~60 ns
Remote Dram ~100 ns

60ns at 2.4GHz is ~144 cycles, right?

1: http://software.intel.com/sites/products/collateral/hpc/vtun...
Totally agree... yet it lands on the first page... Although I am glad to see market realizing the true value of fb.
Cognitive Democracy
".net magazine would like to apologise to its readers for the temporary removal of this article. As a result of a production error, this article was posted without editing."
I agree it's more of a mathematical discipline than a science.

But it isn't just "studying man-made creations". It's about studying computation in general. Not just man-made machines that compute.
the capital required to start a profitable business is orders of magnitude lower than ever before.

Disagree. It's cheaper than it was in 1997 or 1967, sure, but I don't think it's cheaper than "ever before". For one thing, time is becoming more expensive, if one looks at costs like rent, health insurance, long-term career opportunity cost, and business risk (competitors advancing, unexpected change) imposed by the passage of time. Desirable real estate is insanely expensive, and that drives up everything, especially the cost of hiring people. Cities in which VC is an option are especially expensive: rent alone is more than many people make after taxes.

It's easier to build a CRUD-app than a chip factory, for sure, but I don't think that's a fair comparison. The right comparison might be a restaurant or a gas station in an area with extremely low real estate costs and regulatory overhead... in a time like 1928, when startup costs for brick-and-mortar businesses were very low by today's standards.

The percentage of people who can reliably start a business at scale X for various values of X has changed, but not a whole lot, over the past 100 years. What has changed in the scale range for internet businesses; businesses at smaller X's can now be delivered over the internet, which wasn't the case 20 years ago.
I really don't understand why people need to nitpick humorous little blog posts like this. I mean, it's a joke -- the point is to have some fun picking apart the technical details of a movie that clearly went above and beyond in that aspect compared to other movies. That goes without saying. It's just faux pedantry; it's all in good fun.
Affordable fun and flirty fashion 24hours-7days-1week
Until you run into the recursive base case, then you stop. ;)
Cricket is CDMA.
Just imagine the fame a researcher or a team would get should they explain dark matter by updating current theories (in a way that fits _all_other_explained_ observations). I don't think if anybody had a good idea they would care about mass layoffs.
The real question is "How little are Intel willing to sell the CPU in this phone for?".

A fairly up to date Cortex-A8 ARM CPU can be had for under $5 [1] and as impressive as Intel's manufacturing base is, their profits are based on selling CPUs at 50-100x higher prices than this.

Whatever happens, I think the coming battle between generic ARM chips and x86 is going to slash Intel's profitability.

[1] - http://www.ti.com/lsds/ti/dsp/arm.page?DCMP=TIHeaderTracking...
We tend to frown upon sensationalism here; it tends to correlate positively with bullshit.
The Depth Jam
Is it me, or is this article just segments of what basically amounts to the comments section of a Slashdot article? It seems like everyone who is quoted is referenced as a "Slashdot blogger".
How APIs should be: Drop in keys, running in 1 minute
I did write it like that yes.

And it would still be faster than a mod, too, even though one byte might be better for registry usage, it won't affect cycles that much iirc.
Back in 2004 the sample capsule from the Genesis spacecraft crashed into the ground after the planned in-air retrieval by a helicopter failed. The plan was to hook the parachute canopy.

Presumably aircraft have an advantage over helicopters in that they fly higher and give you more opportunities for capture.

http://www.astrobio.net/exclusive/1185/genesis-suffers-a-cra...
http://en.wikipedia.org/wiki/Genesis_(spacecraft)#Recovery_p...
Often in Russia. You are right that it was (and is) intended for the on-land, not on-water, landing, although there are provisions for the on-water landings as well. See Wikipedia entries for Soyuz 23 and, more generally, splashdown.
How many people turn down a job because of a benefits administrator? Do you take a job based if they have their 401k administered by Vanguard vs Fidelity?

Similarly, I've never known anyone to take or refuse a job based on a comparison of dental plans or vision plans or medical plans. They're sometimes nice side perks, but if I like the company/job/position, I'm taking it. If I don't like it, the fact that they have a better dental plan than where I'm currently at is a non-factor for probably almost everyone who'd be in that position.

tl;dr - I've never known anyone take or refuse a job because of any specifics in a benefits package.
Show HN: My first personal app - HackerNews for iPhone/iPad
Will Mirth kill the Groupon model?
Yes it is. He's committed no crime against the US at all so why do they want him? They can't charge him for anything so it's pretty clear he won't be getting a fair trial or any at all.
Follow the Dragon's position: http://www.n2yo.com/?s=38348
Never seen the movie but my take away from the article was that I was really impressed they went as far as they did. The author of the article is just having fun, not criticizing it really.
Yay for generalizations and buzzwords!
App Academy: Free nine week iOS course
This article could be republished verbatim in The Onion.
Amazon granted patent on ‘electronic gifting,’ with a twist
Upvoted just for the title. C'mon, value judgements of CS vs programming aside, there needs to be a broader awareness of the difference between the two.
Likewise. At least I cracked a huge grin reading it, especially at this golden paragraph: "Immediately moviegoers will notice that this can't be Oracle SQL - obviously the AS keyword is not valid for table aliases. In fact as we pull back for a thrilling query results listing we see the mysql prompt and giveaway use [dbname] connect syntax and over-elaborate box drawing."
Oh surely that's what they'd expect.
Introducing Tooyoou - Where mobile advertising on Android is different
I'm curious about what you think those differences are, and how you think it hurts or helps.
Sergey Brin shows off Project Glass - Amazing or Disappointing?
Visual Robotics Startup Diffbot Raises $2 Million to Read the Web
How do businesses currently share Word docs? They either email them around or put them in a shared folder. And when that happens, and the ChromeBox user clicks it, GMail or Google Drive will happily open that Word doc in Google Apps.
The only reason a screenshot (or a default image) is used is because of the way applications are launched. They expand from the center of the screen, and the image expanded cannot be a live view of the application. This is opposed to Android, which uses a fade animation to launch applications (at least on ICS).

It is not deceptive, it is smart. Android applications appear to have a delay in launching because there is a moment of inaction after tapping an icon. Apple made it so that immediate action is taken after an icon is tapped, and that does make it more responsive.
Except you're a single person and they're this scary huge corporation. If they do sue, what are you going to do? Not many are willing to take that risk.
Maybe its my physics background, but I've always found the problem to be a lack of analogues.

We have physics, but we also have mechanical and civil engineering. Likewise we should have a computer science major and a developer major. Just as how mechanical and civil engineers still take some physics and math courses, the developers will take some of the CS courses in addition to specialized courses for their major.
Rushing for tomorrow's Mac App Store Sandboxing deadline? Too bad.
Y'know the 3D filesystem in Jurassic Park was a real program too, and it was based on a UNIX system.

(I think it's a file explorer for an old SGI box; which makes sense as SGI was commonly used in the production of movies.)
Yes. Unfortunately, I have only but one fuck to give, so I find your title a bit overwhelming ;)
Especially true with new users as they flick between several apps quickly to transfer or gather information. (Such as phone numbers and addresses.) There is often no immediate need to manipulate the screen, but there always a need to see what is on it.
True but what about musicians who write songs and don't release them until many years later (stuff that is written and not released until it fits on an album 5 years down the road). If we shorten the copyright period too much it could be problematic for them.

It may just be an issue that we are trying to protect too many different types of work under one law. Having vastly different lengths for writers, musicians, software, movies, games etc. may help (although it could also make things 10 times worse).
Not surprising, but that's not showing the descent. That altitude isn't decreasing. Interesting nonetheless - thanks.
I find myself thinking of figures like these every time I see results for benchmarks that barely touch the main memory brought up in debates about the relative merits of various programming languages.
CaseApp for iPhone - design and deliver custom iphone cases.
“Computer science is no more about computers than astronomy is about telescopes.” - Edsger Dijkstra
I like the question. I would never expect a candidate to know a perfect implementation but they better understand the general concepts. It's hard to tell the tone from his writing, but if a candidate was snarky about "why not java utils" I'd be less inclined to want to work with them. The question can be answered many ways without being hostile to the interviewer.
Here's how to sandbox an app using the PubSub framework
Top 17 Web Design Resources: May 2012 | BOCO Creative Blog
Post PC Era will begin in earnest when the functionality that we currently see in the home computer is replaced by numerous small appliance-type devices

The truth is that large numbers of home PC owners don't really want a computer for everything a computer can do. They want to be able to do email, surf/shop, maybe play games and stream movies, without having to deal with a lot of "geeky" system stuff. This is why iPads are doing so well at replacing computers in homes.

Other devices we're already seeing include "the oven that you can turn on with a text message, the espresso machine that you can control with a text message, home security systems and cars that can be controlled from your smartphone

Here I disagree. When I want to make a pizza, I want to walk up to the oven, turn a dial to 425, done. I do NOT want to send a text message to my oven telling it to turn on. This whole idea of "smart" appliances seems to me to be pushed by people who don't actually use appliances.
> I remember one totally shocking clip where a guy was 'hacking' and you could plainly see it was Windows Media Player.

This is not made up, folks. See http://www.youtube.com/watch?v=DURk7VQhW-k
That depends what kind of object it is. Take the example of warhammer figurines - these things are incredibly expensive and cheap to manufacture.
I think it would be useful to see the his models and relevant GW models side-by-side to assess whether any similarities are present. He has obviously had sight of GW models which would allow GW to argue a form of copying has taken place.

Also, contrast this story with the outcry over EA's alleged copying of GW models albeit digitally.

http://www.reddit.com/r/gaming/comments/s4s7f/tank_in_new_cc...