Better HN
topnewbestaskshowjobs
Log inSign up

panic

29,749 karma · joined Sep 16, 2009 (17y ago) · 3,593 submissions

Submissions

comment 13y ago · link · parent

This is a very sad-looking man: http://360gigapixels.com/tokyo-tower-panorama-photo/?v=-82.7...

Or maybe he's just sneezing?

comment 13y ago · link · parent

It also helps me to look at this image: http://i.imgur.com/39U4k.png. Each box is one month of your life. There really aren't that many of them.

comment 13y ago · link · parent

Although, I wonder if I really fucked my brain/habits up so much that I'll never reach my full capacity.

There's no such thing as your "full capacity". What you're doing right now, that is your full capacity. Either accept that you're at your limit or actually do something to prove you're not.

comment 13y ago · link · parent

I don't think "curry" is quite the right name for that function. For a function

    int f(int, int, int);
the curried version of f,

    auto f_curried = curry(f);
must be able to take multiple arguments one-at-a-time, so

    f_curried(x)(y)(z) == f(x, y, z)
The code at https://dpaste.de/a8g9D/ just partially applies the function to one set of arguments, which isn't enough -- you have to keep partially applying until you get them all.

comment 13y ago · link · parent

When we were designing NT 3.1, one of the issues that came up fairly early was the secure attention sequence - we needed to have a keystroke sequence that couldn't be intercepted by any application.

So the security architect for NT (Jim Kelly) went looking for a keystroke sequence he could use.

It turned out that the only keystroke combination that wasn't already being used by a shipping application was control-alt-del, because that was used to reboot the computer.

And thus was born the Control-Alt-Del to log in.

I've got to say that the first time that the logon dialog went into the system, I pressed it with a fair amount of trepidation - I'd been well trained that C-A-D rebooted the computer and....

- http://blogs.msdn.com/b/larryosterman/archive/2005/01/24/359...

comment 13y ago · link · parent

You can find the original paper at http://www.foodpolitics.com/wp-content/uploads/HFCS_Rats_10.....

The statistics are a bit confusing to me, but it looks like they only find a significant difference for males over 8 weeks, not females over 7 months. The "significant" difference for males seems pretty small given that the rats started out weighing between 300 and 375 grams. And the conclusion doesn't mention sucrose at all:

In summary, rats maintained on a diet rich in HFCS for 6 or 7 months show abnormal weight gain, increased circulating TG and augmented fat deposition. All of these factors indicate obesity. Thus, over-consumption of HFCS could very well be a major factor in the “obesity epidemic,” which correlates with the upsurge in the use of HFCS.

Does anyone know if these results have been replicated anywhere?

comment 13y ago · link · parent

To a novice, a car is about driving. After you learn more about cars, a car is still about driving. You're still doing the same basic things -- your extra knowledge doesn't give you much more power.

On the other hand, to a novice, a computer is about browsing the web, playing games, sending email, and so on. But after you learn more about computers, you can do so many more things. Extra knowledge gives you a lot of extra power.

comment 13y ago · link · parent

CompCert (http://compcert.inria.fr/doc/index.html) is a "real-world", optimizing compiler the core of which was written and verified using Coq.

comment 13y ago · link · parent

He didn't.

The phone didn’t make me avoid the human connection, but it did make ignoring her easier in that moment, and more likely, by comfortably encouraging me to forget my choice to do so.

comment 13y ago · link · parent

It does! See, for example, http://en.wikipedia.org/wiki/Chicxulub_crater -- the asteroid that killed the dinosaurs left a very noticeable gravity anomaly, which helped us identify the site as an impact crater.

comment 13y ago · link · parent

CAGradientLayer is absolutely GPU-backed. Your colors and locations are drawn into a 1-D texture and stretched on the GPU.

3402.

PolyHédronisme - building polyhedra by recipe(levskaya.github.io ↗)

1 points · by panic · 13y ago · discuss

comment 13y ago · link · parent

Such comments are explicitly encouraged—see http://ycombinator.com/newswelcome.html:

Empty comments can be ok if they're positive. There's nothing wrong with submitting a comment saying just "Thanks." What we especially discourage are comments that are empty and negative—comments that are mere name-calling.

comment 13y ago · link · parent

Thinking Forth was published the same year and is still very relevant.

http://www.amazon.com/Thinking-Forth-Leo-Brodie/dp/097645870...

comment 13y ago · link · parent

I think that's backwards -- if it's a very accurate simulation of water, it will pass the U test, but you can add hacks to make a simple, inaccurate system pass it, too. See, for example, Dwarf Fortress's pressure system: http://dwarffortresswiki.org/index.php/DF2012:Flow#Fluids_un....

comment 13y ago · link · parent

Kind of. From the description in the YouTube video:

Set up your camera and switch it to 24 fps. The higher the shutter speed the better the results. But also keep in the mind that the higher your shutter speed, the more light you need.

Motion blur isn't something you "turn off" -- it's the natural effect of light being collected over time. The faster the shutter speed, the less time the camera spends collecting light each frame. That means both less motion blur and a darker image.

comment 13y ago · link · parent

Gentlemen, we are going to relentlessly chase perfection, knowing full well we will not catch it, because nothing is perfect. But we are going to relentlessly chase it, because in the process we will catch excellence. I am not remotely interested in just being good. —Vince Lombardi

comment 13y ago · link · parent

You could use the verb in English, but fall back to Yes/No/Cancel in other languages for which you don't have a localization.

comment 13y ago · link · parent

Diving into source code is a really great way to learn. You see not just the nuts and bolts described in documentation, but examples of how the parts fit together in actual software. I wish CS degrees included more of this sort of literary analysis of software.

comment 13y ago · link · parent

23andMe doesn't fully sequence your genes. They just look for specific patterns.

comment 13y ago · link · parent

It actually looks pretty nice here: http://i.imgur.com/pgqun.png (frame from http://vimeo.com/53530934). I wonder why they added the weird gradient.

comment 14y ago · link · parent

Your C compiler can also generate NEON instructions if you use NEON intrinsics:

http://gcc.gnu.org/onlinedocs/gcc/ARM-NEON-Intrinsics.html

http://blog.llvm.org/2010/04/arm-advanced-simd-neon-intrinsi...

comment 14y ago · link · parent

And git checkout -p to interactively bring over parts of another commit (or interactively revert uncommitted changes, if you're checking out HEAD).

comment 14y ago · link · parent

I dunno, but this looks pretty: http://waves.arelikefacebook.com/

comment 14y ago · link · parent

A user interface is subjective -- even more subjective than other things you might design. The point of a chair is clear. It looks "sittable". How can I convince you that this pattern of lit-up phosphors looks "tappable" or "grabbable"? When you click on a file in the sidebar, do you want to open it or just select it? You want my program to do something, and I want to show you how to do it. We're trying to figure each other out -- you and I -- through this computer program.

All the tools we have to communicate are very subjective. We've both used other programs before. You know what a printer looks like and what buttons with printers on them do. I can make some physical allusion like a page curl (you can drag it to see more) or a nubby, grabbable texture (you can grab and pull whatever it's attached to). But without this shared language, there's literally nothing to go on. Objectively, my pretty interface is just a grid of lights.

comment 14y ago · link · parent

In this case, "hardware accelerated" means drawing web content into an offscreen image -- as the content is transformed using CSS, the image is re-drawn and blended using the GPU. This is faster than re-laying-out and re-drawing the web content directly (even if re-drawing the web content itself uses the GPU). It's a good trade-off when you have animations that update every frame.

The biggest cost is memory. Every pixel of hardware accelerated web content gets 4 bytes of memory. This adds up quickly, especially since any content that overlaps hardware accelerated content must become hardware accelerated as well.

The other big cost, as olsn already pointed out, is that blending these offscreen images onto the screen takes time and power on every frame. In extreme cases this can cause scrolling to stutter.

See the "Optimizing Web Content in UIWebViews and Websites on iOS" session from WWDC 2012 for more information about this.

comment 14y ago · link · parent

MobileMe replaced .Mac, which provided crucial functionality like email. There were many fewer people affected, but the situation is similar.

3418.

What are the theoretical and practical weaknesses of Objective-C?(quora.com ↗)

1 points · by panic · 14y ago · discuss

1
113114115
120