skysight-inc/HackerNews huggingface dataset:
Can 100% unit test coverage give you intellisense, real-time warnings, and refactoring capabilities? Nope.

Unit testing is great for verifying that a piece of code works conforms to specification, but typing verifies that you're using a piece of code as expected. Two different things.
Normally I am usually very susceptible to motion sickness from FPS games, reading in cars/trains and theme park rides which can all easily make me feel like throwing up, but I've not had effects of any degree from using iOS 7 since the very first betas.
A Python Framework for a New Mobile Era
A product, it seems: https://www.clinkle.com/news

Edit: more information in their blog https://www.clinkle.com/blog
Settings.app > General > Accessibility > Reduce Motion

Doesn't remove all the whsihy in and out of Springboard.app ones though, so you'll have to wait for a jailbreak to be completely animation-free.
You are talking about halvm I think - is it still in use or is it a dead project? The github project page does not seem to have seen commits for a while, but maybe it just ... works.

And can you please point me to the talk?
Article says:

"The lack of a solution is the bigger problem. Apple provides a "Reduce Motion" option within the iOS 7 Settings app, but it is poorly labelled; it merely disables the parallax effect, but doesn't stop zooming or sliding. Apple did not respond to requests for comment for this article. Which for now, leaves affected people on their own."

(I haven't got iOS7 so can't check)
You can still mock the Foo class... by using class_alias.

Don't tell anyone else, though :p
I find all of these visual effects to be disorienting... And superfluous at best. I was closing my eyes when switching apps for the first few days also. I'm disappointed Apple provided no way to disable the zoom animation - just like I would on a desktop OS, the first thing I tried to do was disable that option.
The parallax scrolling of the icons over the background when the phone is titled on the home screen is bizarre. I'm not sure what Apple intends there.
> Facebook’s PHP Codebase
> x * 105 files
> y*107 LoC
> 10 releases per week
> Anecdotally, good engineers are astonishingly productive in PHP

Erm... are you kidding me? LoC != productivity, not even close. And it goes downhill from there :( I really, really don't want to rail on PHP (people do that enough, it gets old, yada yada), but you're kinda asking for it here. The only useful point made is about state, although that's a double edged sword.

...Fuck it, I'll rail. It's 2013. Do yourself a favor. Use something better than a horribly inconsistent glorified cgi script.
What in tobacco is addictive other than nicotine?
CodeIgniter is still okay. Smarty, on the other hand...
That's right, just the parallax effects are gone. The main annoying ones that take a full second or so are the ones in the unlock screen, and they can't be disabled.
I've already toggled "Reduce Motion" on, not because the movement was making me ill, but just because I thought the effect looked somehow bad. The parallax effect on the homescreen is nice enough, but far too subtle to justify having to also look at the dumb wiggling modals that it produces. I'd be interested in hearing if other people find the effect genuinely pleasant to look at.
Right. It is labeled badly. The "Increase Contrast" options is even more badly labeled because it in part increases contrast by disabling blur. I think that Apple does not want an explicit "Disable Blur" setting because down the road the blur effect may become outdated again. Then they had to rename the setting again. So I can see the reasoning: They name the settings after what their effect is not how those settings are implemented.
Also, as easy as PHP to deploy. That's a big matter. The "save and reload" workflow, as said in the slides, is really a big point.
> a fairly broken situation

You missed the problem as well. Don't ask for trouble by creating broken situations.
I've read them both and still have no idea what this product/service/thing is.
There is a large difference between CoD and CS. That's what you would have to convince me with... that or SC.
They've already launched in a few colleges, but won't be available to the public, until about a year from now I guess. And for the amount of funding they've taken, they should be making products :D
I wonder why exactly he's leaving.
I feel some of the symptoms myself! Not as strong as some descriptions in the article, but definitely I do.

I have an older iPhone with iOS 7, so I don't see the parallax, but as I wanted to talk about the parallax effect with somebody, I've searched for video with the parallax effect on YouTube -- and just watching the video made me feel slightly sick. Maybe holding the phone in the hand and seeing the parallax as the response of my own motions wouldn't produce the same effect but that video did. "OK it moves, now more under it should be visible, ah it's not" -- it hit some kind of an "uncanny" by me.

Second, I have big problems with automatic sliding of the lower tabbar and upper urlbar in and out in Safari. For example I keep the finger on the text, wanting to scroll, but I read the top part of the page -- now the movement that should enable me to see more of what I'm looking at effectively causes the sliding in the opposite direction exactly obscuring what I want to see. So this effect where I do something in order to see more but the "automatic sliding" kicks in and "helpfully" obscures exactly what I'm trying to see also produces a strange feeling. I can't call it dizziness but certainly a conflicting one.

Safari in iOS 6 never had such effects -- "obscuring" against the actions of the user never happened.

Otherwise I don't have problems with iOS 7 animations, except that general impression that they take "too long," after using iOS 6. But maybe it's only on the older phones so.
I think you've missed the point. If your procedure calls other procedures, how do you test its functionality individually? How do you know if the problem exists in the procedure itself or one of the procedures it calls. Without DI in some form you are stuck with your procedures being tightly coupled together.
Other way round: we could have public research into codecs, but you can't make incremental improvement because of the licensing requirements.
Sorry I got distracted. Basically if you host material which runs contrary to the moral and ethical views of the Somali government or Somali culture (primarily pornography, gambling and other vices) then you're domain will probably be revoked.

Thats regardless of whether Somalis in Somalia can access it themselves.
According to wikipedia, Snus is illegal in the european union with "special excemptions" for sweden and norway https://en.wikipedia.org/wiki/Snus
This astounding video just took projection-mapping to the next level
Advice from cryptographers and mathematicians
I have a question regarding a simple hash-based encryption scheme I'm thinking of (forgive my ignorance if this already exists).

Let's suppose we have a function hash(T) that is cryptographically secure; a function combine(T,C) that simply concatenates token T with constant C; and a function xor(H1,H2) that performs bitwise exclusive or between H1 and H2 (of same length) and returns result. Is it safe to:

ask user for a token t and plaintext m;

let ha = hash(combine(t,"a"));
let hb = hash(combine(t,"b"));
let he = xor(hb,m);

then store ha,he on a database (assuming m and hb are of same length)?

to decrypt m, user has to provide token t only;
we then:

let ha = hash(combine(t,"a"));
let hb = hash(combine(t,"b"));

and select xor(he,:hb) where ha=:ha to retrieve plaintext m.

Is it really that simple, or am I missing something? Or, can an attacker brute-force hb out of ha knowing that inputs differ by "a" and "b" only (assuming hash is SHA-256 or similar)? Then, would it be any safer to use xor(t,X) instead of (or together with) simple string concatenation?

I will really appreciate any suggestions. Thank you!

Andrea
Is that even a good example? Mirror's Edge without the speed and precision of the mouse sounds awful for speed runs, and nothing is lost with the lack of an analog stick for movement (since you're always running).

If you haven't tried before, I highly recommend doing time trials with KB+M. It's a completely different game.
Free embeddable fair-use photo resource
mobile payment startup http://finance.fortune.cnn.com/2013/06/27/clinkle-25-million...
Nanoparticle vaccine offers better protection
I was looking too. Maybe he didn't have slides, but a live demo.
I often have trouble watching many FPS games much less playing them. Been using iOS7 since the early betas and I never even considered any of this an issue, nor did any of my coworkers many of whom upgraded early as well. The parallax view is a pretty pointless trick. I wonder how much of this is real and how much is suggested by all the articles? It's hard to imagine that a real problem wouldn't have been seen by people at Apple and all the developers who like me have used it for months. It's strange to think a small device's virtual motion could cause that much reaction.
I think PHP's strength is that the default way of how sessions work makes you intuitively build shared-nothing architectures that parallellize easily and have session data that is hard to corrupt. Sessions are locked at the beginning of the request, and the changes are committed atomically at the end of the request. The next request by the same user is blocked until the session is unlocked. This means that any error causes a rollback to the last known valid session state, and that it is basically impossible to have concurrency bugs (though obviously a PHP server can handle more than one request at a time if they're coming from muliple user sessions). A PHP app that gets an error will typically recover just by pressing F5, whereas in other platforms often you have to log out to throw away corrupted session data. I had little appreciation for this myself until the PHP app I work on reached the point where it had both a large codebase and a large userbase.

Remember also that a large part of the reason why facebook won over its competitors (friendster and myspace) was technology. Both myspace and friendster had trouble scaling up their featureset at the same time as their userbase, whereas facebook pulled it off relatively well. It's hard to know without inside knowledge whether PHP had anything to do with that, but it obviously didn't prevent facebook from winning.
This will only work for casual SP FPS - at best. It certainly won't work for hard-core stuff like CS.
Hey Matt, it was great to meet you at rubyconf last year. Did you get that lawnmower back from Sal? All the best, Kevin
> If you want others to see the benefit, I'd encourage you to pick a specific area of the code, test the hell out of it, and make sure that a) tests are easy and quick to run on dev boxes, and b) every checkin is automatically tested. I'd start small, and one good place is a chunk of important business logic. It's even better if you use the tests to support refactoring and general cleanup of an area people know is messy.

Ah, this is really good advice, thanks. I'll give it a shot.
This is the most annoying hn post I've encountered. Ever.

Every single link here(post & comments) redirect me(on my android phone) to the Play store listing for their "Wait" app, that doesn't contain any useful information at all(and obviously I'm not going to install).
This is true, but the chance of an incident occurring during neither takeoff or landing, when both pilots happen to be asleep at the same time is fairly low.

On the other hand, sleep deprivation (which as the article mentions, can be far worse than being legally drunk) is common and pilots probably often perform the most difficult parts of the flight while under its effects.

I would think the risks of pilots sleeping (and, very rarely, getting caught unprepared for an emergency) would be minimal compared to the risks of pilots being regularly incapacitated by fatigue during the most difficult parts of the flight.
I disagree actually. It's obviously not a legitimate scientific hypothesis, and shouldn't be presented as such, but it's still a really useful way to think about procrastination.
I've seen brands do this type of marketing in an attempt to build "buzz". I just find it so annoying and patronizing.

If you have spare time (and money!) why wouldn't you put it into the product instead?
I'm honestly curious about this, not trolling or something;

How can a person survive the daily life if a couple of animations on a screen makes them sick? What I mean is, if the zoom effect makes someone dizzy I'd expect them to be dizzy around moving cars, approaching trains or watching sports, playing games etc..

But it seems that this is common enough. Is it the bright small screen itself causing such an issue? You know like some people getting nauseous when they read in a car. Or is it just that 3D effects?
> Always compile your code down to JavaScript before posting a question to StackOverflow, or replying to a blog post. You might even learn things about JavaScript itself, too.

I don't see author's enormous arrogance backed by any efforts to think about his reasoning.
Actually the video leaves a bit of sadness at the very end, when you realize that everything was just said to promote something.

I would love if this video would be refocused on promoting a serious charitable organization instead, while still showing clinkle's logo on screen as a partner.
That's just the standard disclaimer anyone would use if they allow user submitted content. If you change your service in the future, then you need to protect yourself from litigious users.
A) Why should I believe you?, and
B) Is this some metaphorical or religious uncleanliness you mean when you say filthy?

These issues fixed, you might have presented coherent argument.
usually it is when the movement perceived from sight doesn't match what sense of balance tells you. so you get sick while reading in a car in the back seat but not when riding in the front...
I just get the feeling that someone at Apple probably should have spoken up but didn't. Who's going to tell Jony Ive that his UX might be causing motion sickness.
That's why you've got the touchscreen.
Yes, you can make it work for at least Java (JDE, I think?) and Python (I forget the mode, it's to do with Pymacs).
I'm only moderately experienced (1200 hours or so, single and multi-engine rated). Put me in any airliner with all systems working (dead crew, no mechanical faults, weather above minimums and sufficient fuel), and I'll get the thing to a safe landing 999 out of 1000.

I can't start it; I might not be able to taxi it in to the ramp; I surely can't diagnose system faults on an unfamiliar plane, but it's easy to get it to the ground and generally easy to get it stopped (especially if you choose an 8000+ runway, rather than the 5000 foot that might have been the original destination).

The vast differences don't matter much when everything is working and there are plenty of margins and you only have to land/stop.
You can have the best of both worlds, just backup your feature head before rebasing.
If you read the whole file, then process that file, the program first blocks on disk I/O for the time it takes to read the file, then it blocks the CPU for the time it takes to process it.

By streaming the data, you can do both at the same time. (The OS will already fetch the next line from the disk while you are still processing the previous one.)
In case anyone didn't catch it, Stephen Fry extolling GNU and free software:

https://gnu.org/fry/happy-birthday-to-gnu.html

This man is a wonderful person.
I understand the moving thing, though I got used to it really well - but the accuracy of my mouse is so much better that it makes the difference between getting killed and dominating.
Talk at EuroBSDCon 2013 about building Tarsnap
Wait, AArch64 really drops conditional execution?

Some, yes (but it is retained in 32 bit mode).

The reason it was dropped is that it's hard to implement. It adds an implicit data dependency between an instruction and previous results. In a pipeline, the results of previous instructions aren't available immediately, there is usually a delay of many cycles before a "previous" instruction actually finishes and retires. So if your "current" instruction needs the result of the one before it, it's going to have to wait, stalling the pipeline. Adding extra dependencies such as instructions that depend on the state of the flags register is not desirable. IIRC it also makes register renaming hard when one implicit register (the flags) is heavily used.
Screenshot of clinkle mobile App http://clinkler.tumblr.com/
I don't have that problem myself, but just watching the videos of iOS7 made me think I'd be very frustrated to see all those 1 second animations long everytime I do something. I don't think I could handle seeing those animations hundreds of times every day, and for a couple of years of owning the device.

I want my phone to do stuff fast, especially if it has a benchmark-breaking chip inside. What's the point of having such a fast chip, if you can't feel it's fast in everyday use?

Whoever is in charge of the design of iOS7 clearly had no coherent vision about what iOS should do, like Scott Forestall (and Steve Jobs) did. The UI is all over the place, and it seems filled with random design gimmicks of the 2005-era (translucency, parallax, zooming in and out, very bright colors, etc) to make it "feel cool" or whatever. Reminds me of Vista and all of those crazy Linux environments.

I want my OS to help me do stuff fast, and productively, not show me a circus on the screen, with everything I do.
http://www.ntsb.gov/aviationquery/brief.aspx?ev_id=20001206X... (pilot asleep, non-fatal)

http://www.ntsb.gov/aviationquery/brief.aspx?ev_id=20120922X... (pilot asleep, fatal)

http://www.ntsb.gov/aviationquery/brief.aspx?ev_id=20020715X... (pilot asleep, fatal)

http://www.ntsb.gov/aviationquery/brief.aspx?ev_id=20110323X... (ATC-no crash)

http://www.ntsb.gov/aviationquery/brief.aspx?ev_id=20091223X... (fuel truck driver)

I spent 5 minutes looking, which appears to have been more fruitful than the research the original author did.
Which is maybe why one of the things that can help with seasickness is watching the horizon, so that what you see with your eyes starts to match what your body feels as the boat pitches around.
Nice idea for a battery-free wireless feature, but then I guess we'd be complaining about this security issue.
I'm curious on how many servers does it run :)
My father suffers from this (and vertigo if that's any correlation). For him, it's when perspective and shape transformations don't compare to reality. This is something that 2d graphics pretending to do 3d transformations is pretty good at screwing up.

He can sit at quake 3 for an hour fine, but the effects in osx make him feel sick (so he turns them off).

Edit: I just emailed him and iOS 7 is doing his nut in as well. He's switched back to his 4S with iOS 6 on it.
Embarrassing indeed. They were mulling stopping govt employees to stop using gmail and yahoo. http://articles.economictimes.indiatimes.com/2013-08-30/news... . But I guess the education has to start from Minister of Communication & IT who is using a gmail address.
wow, that really improved the feel of the mouse in OSX for me, thanks alot!
Easy Ways To Make Money Online on Craigslist
Técnico Promove Curso de Reabilitação de Construções Antigas
> And it hasn't been turning out too badly.

Yeah it's been very smooth sailing :) Only pain point was @ pointers in BytesReader interface, but aside from that it's way less bumpy than anticipated.
PHP(.net) doesnt have strict typing ,but type hinting, which is not the same.
ARM already has multiple-cycle instructions and variable clock rates. Why shouldn't they release a faster-clocked processor where every instruction in 32 bit mode takes 2 clock cycles?
That's been done years ago http://www.dafont.com/geobats.font
Where do fungi and parasites fall on that spectrum?
I think that if nobody had spoken up, the "Reduce Motion" option wouldn't even exist (or bold text, for that matter).
I would take that one step further and never rebase any branch ever.
Ask HN Photographers: rent equipment from the owner (London)
I'm trying to get some feedback from hobby photographers.
I'm working on a new idea allowing owners of photographic equipment to rent it out to others. You can post your equipment for rental on our website and people can rent it there directly from the owner. We would offer insurance options for expensive equipment rentals.
Is there anybody here at HN who sometimes rents cameras or equipment from a rental shop? Have you ever given your camera/equipment to a friend?
Facebook denies images based on their privacy controls even if you are viewing a .jpg URL. People try to share those links often on a forum on which I'm a member, and when you view the link not logged in to FB or not connected to the proper proper 'friend', you receive a 'this content is not currently available' message.
Perhaps these people are looking at it wrong?
Can you believe it? The GNU system is thirty years old today!

In 1983, Richard Stallman launched the free software movement
with the words, "Free Unix!" We've freed a lot more than that in
the last thirty years. The GNU system is now a vast universe of
fully free operating systems, window managers, and software that
serves almost every imaginable purpose. More than 95 percent of
the world's supercomputers run free software. A majority of web
servers run free software. Even more impressive, there are
estimated to be tens of millions of free software users worldwide.

That's a lot to celebrate. This weekend, the Free Software
Foundation will be honoring thirty years of GNU with a
[celebration and hackathon in Cambridge, MA][1]. Around the
world, there are over [eighteen celebrations][2] planned on
almost every inhabited continent. And online, people are showing
their love for GNU by embedding the [special 30th anniversary
badge][2] on their websites and [donating to support GNU's future
work][3].

Please join us in the celebration:

* [Watch the livestream from the Cambridge celebration][4] to see
John Sullivan speak at 10am EDT (14:00 UTC) and Richard Stallman
speak live at 5pm EDT (21:00 UTC) on Saturday, September 28.
* Find the [celebration][2] nearest you.
* Embed the [special 30th anniversary badge][2].
* [Donate][3] to keep GNU going strong for another thirty years.

Happy Hacking,

The entire Free Software Foundation team

[1]: https://gnu.org/gnu30/celebration
[2]: https://gnu.org/gnu30/
[3]: https://my.fsf.org/associate/support_freedom
[4]: http://live.fsf.org/gnu30.ogv "GNU 30th live streaming"
does no one see that this is a joke?
Left SFO last night on a red-eye and woke up on Romulus
On kickstarter's hostility towards science