skysight-inc/HackerNews huggingface dataset:
I completely agree that a business model based around companies paying to let their adverts get shown is awful. If I used ABP, this would stop me using it.

I just disagreed with your opinion that this is bad because "the end user should have ultimate say in what does and does not come across their computer" - as they still do, even now that ABP is open to taking bribes.
Ubuntu does too ... Ubunchu. http://divajutta.com/doctormo/ubunchu/
I also let it encrypt the disks that Time Machine writes to. Works well.
I don't know how it is on the GNex, but I did a quick unscientific test with the original Droid and it rarely used more than half of the CPU while using Google's Nav app. I was actually quite shocked at how little CPU it used.
When I Grew up I Ended up Being a Writer
Yes, charging every night is easy to get used to, and having a couple of charged battery in your pocket when on the road is a bearable annoyance.
My MacBook Pro Battery Life Issues
Just pushed an update that should help the performance a bit. (thanks eivindbekk/John Resig)
> Civilization hangs on a fine thread of voluntary compliance to the government.

That sounds pretty much exactly backwards from any society I want to be a part of. I don't exist in service of a government, but can choose to tolerate a government that provides value to me.
I went nutritarian after checking out "Eat to Live". Starting at the same time as Jeremy and odly enough weighing the same as him but now weigh 159. After a while you lose the need or taste to eat refined flour, dairy, and lots of meat.

It's not a diet, but a life style change. I recommend it to anyone willing to try it.
Rosetta Code on CoffeeScript
Raytracing vs Rasterization
I cannot actually speak German, but isn't German relation of pronunciation to spelling much clearer than in English (for which it's notoriously intractable, see the famous "ghoti" joke)?
The future of your music collection: physical or digital?
One thing I like about early returns/continues, as opposed to nesting, is that when you're collaborating with people the diffs are much easier to read and make sense of. You practically never re-indent code.

OK, with changes in nesting you could just use a whitespace-free diff, but then you can't just apply/commit it. If you apply it, you have to reindent before committing. (This is tricky in python.) Alternatively, if you get a full diff, you have to apply it and then extract a whitespace-free diff yourself in order to read the actual changes properly.
What 2012 Holds for Google
Search for climate email leaker grows warmer
I can vouch for the quality of PDFKit, it is highly pleasant to work with
Sleep Buster: Japanese Company Develops Anti-Sleep Driver Seat Sheet
Yeah, ultimately I'd love to see ABP offer a tip jar or subscription I could pay that could then be distributed to the operators of the sites I visit. Perhaps take all the sites I visited and divide out the subscription fee. This way you could support even infrequently visited sites without resorting to advertising.
Summary: the kind of food matters. Avoid processed foods and too many carbs.

My family switched to a Pescetarian diet (vegetarian, but with some seafood). Even totally enjoying my food, I started to lose more weight than I wanted to so I added a fourth meal most days and my weight stabilized where I want it (I am 6'4" tall, and my preferred weight is 200 pounds).

Also, I personally love carbs: I eat lots of cauliflower, carrots, some pasta and whole wheat bread. It is a matter of seeing what diet works for you as an individual.
Unlike the phone in the link, iPhone 4 can charge twice as fast as the nav GPS + 3D mapping + cellular voice or data usage + bright screen can use, as long as you're using a supported 2 AMP / 10 W charger.
The title is outright lying in action. The law being cited only talks about civil offences. Didn't see anything about criminal offence.

The law in question seems to be vague, stupid and prone to interpretations, but that doesn't make lying right.
As others are noting both here and there, I do not experience this problem. My GN charges slightly or at least stays at the same battery level.
One thing that my physics professors have consistently said is that students who do well on homework do well in the course. I think it's because the students who are motivated to learn the material do the homework to test their own understanding. My own experience is that time spent in lecture doesn't really affect these students. In fact, they would only show up for most lectures if attendance was mandatory. The students who want to learn, learn. Unfortunately, lectures don't exactly motivate learning. They just seem like meetings where you discuss what's on the next exam.

if every lecturer had the skill of Feynman, though, there would be no problem.
That's how my country got to the top of Hacker News.
Ask HN: Can my new side project be turned into a business?
I built http://little.io/ over the holidays and I'm wondering whether you guys think there's a business there. The idea is to provide common small features as a service (micro-services). (actually, I started in november but had to drop it for a while)

The inspiration came from a Show HN post a while back for http://www.mapcrunch.com/. I noticed that you could vote for your favorite image and sort by most voted...I wondered how often that same code has been written and will be written. When I showed it to a friend, he pointed me to http://parse.com which is similar (you could call them a micro-service provider for mobile developers, whereas little.io is for web developers).

Anyways, I suck at business and all that, and I'm a pessimist, I personally don't see it, but I thought I'd get some input :)
http://little.io (clickable)
The statement that always throws me for a loop is, "Everyone is (physically) beautiful". Besides not making sense (right up there with "... and all the children are above average"), it seems irresponsible to actually embrace being unhealthy in the name of feeling good about yourself.
Check the Work Ethic In Your Company, If You Dare
And by "phone" I mean "always-on internet-connected portable computer". Come to think of it that may be the source of the dissatisfaction: thinking of your device as a phone rather than a portable computer that also makes phone calls.
That charger actually provides more amps. The real problem is the shitty generic chargers carriers are providing for cars. But apple people will love to make more of this than it warrants.
Digital guide
digital guide
digital guide digital guide HTC Desire smartphone Operating System Android Has become a classic HTC Desire digital guide
"The tax authorities, together with the police and secret police, are authorized to initiate, investigate, and prosecute such violations."

This sounds like criminal prosecution, no?

Edit: or maybe just a bad/misleading translation.
Second lie: the cited law says nothing about individuals being liable. It says, that if you sell or provide services in belarus then your hardware should be located there.

The problem is, of course, that everything is a service. webmail? service. wikipedia? service! or not? interpretation.

And also that cloud hosting is pervasive yet becomes useless.
It's stupid but still you should not lie.
I'd like to understand a little more about the technical requirements here. 'Running with different credentials than the webserver' sure could've been solved with a fastcgi/wsgi setup and a decent way for expiration/monitoring of these processes (which the author admits failing to get his head around at the time of the implementation/writing of the blog post).

As soon as you remove the startup time from the equation (by stopping to spawn a tool per request) the result is really just IO (writing a couple headers, serving a file) which _should_ perform quite similar in most applicable languages.

While I'd like to see more (practical) Haskell content, this seems to be a lot of reinvention (see for example the mime-table commits). Whatever the language ended up being, was there no way to solve that issue more easily (and arguably, cleaner)?
Anyone with any legitimate navigation need gets a third party app with offline maps, like the above mentioned Navigon, which supports all your mentioned features and more, such as live traffic based re-routing (which works extremely well) and the full Zagat guide for finding nearest decent food.

While running a full blown GPS app, talking on a conference call with Bluetooth, and using live traffic so the data connection is running as well, the iPhone 4 gains about 1% charge per minute with a 2 AMP charger.
Will the real mobile marketing please stand up
From my reading, the title seems to be a mis-representation:

* Scratch that, the text notes a misdemeanor, is there no way to strike text on HN? ~~The offense is entirely civil, not criminal.~~

* Belarusians registered as entrepreneurs (individuals or companies) must provide their service to belarusians from a belarusian domain.

* Owners of internet cafés or other places providing internet access must restrict their access to belarusian domains or identify, record and report any access to a non-belarusian domain to the authorities.

* The law includes a provision for government-ordered blocking of banned websites by ISPs.

The note linked does not seem to specify any offense by citizens not registered as entrepreneurs and not business owners, although the second paragraph may hint at information missing from this note:

> The newly published Law imposes restrictions on visiting and/or using foreign websites by Belarusian citizens and residents. Under this new Law, the violation of these rules is recognized as a misdemeanor and is punished by fines of varied amounts, up to the equivalent of US$125. (Id.)

(immediately following this paragraph is the section on entrepreneurs in point 1)

As I can not read Belarusian, I can not assert the correctness of the english note linked or which informations are missing, I'm interested in corrections or more complete informations from native speakers.

edit: I seem to have missed a section of the second paragraph which, while it does not make the title any more correct, makes the law even more worrying: foreign internet use would not be a civil offense for belarusian citizens but being a foreign service used by belarusians in business contexts would be:

> It appears that business requests from Belarus cannot be served over the Internet if the service provider is using online services located outside of the country.
Yes, it's phairly phonetic, but there are a few different 'h', 'ch', and 'k' sounds that were initially completely undistinguishable to my ears.
I've not looked much for optimization. First, what you can do is reduce the number of allocations. Instead of creating a new vector3 for each operation, you can do it in place.

Another way to optimize is to make all the ray calculation on the GPU with WebGL shaders. There are a lot of demos of real time small ray tracers. It works well because it's massively parallel and vector operations are hard-wired. The downside is it's harder to debug and you cannot make long operations or it will crash the graphic driver.
UK album sales fell in 2011 but digital downloads rose ~ Daily World News
This water WebGL is another cool demo of raytracing on WebGL:
http://madebyevan.com/webgl-water/

HN comments: http://news.ycombinator.com/item?id=2884141
75 CSS3 Monochrome Icon Set
Субъектам хозяйствования, осуществляющим деятельность по реализации товаров, выполнению работ, оказанию услуг на территории Республики Беларусь с использованием информационных сетей, систем и ресурсов, имеющих подключение к сети Интернет, следует обратить внимание: если эти сети, системы или ресурсы не размещены на территории Беларуси и (или) не зарегистрированы в установленном порядке, к субъектам может быть применено административное взыскание в виде штрафа от 10 до 30 базовых величин.

Didn't see anything about secret service in the law.
But административное means civil in Russian. Criminal would be уголовное.
I scrolled through the original text, I think that note is correct, citizens using internet in their home aren't restricted [yet].
IPad Stand on the Go: Satechi R1 Arm Hinge
I have a strange feeling that actually implementing this globally would be the easiest way to reverse the law. There has to be a large number of government agencies which rely on 'foreign' internet for many reasons. This would pretty much paralyse a lot of the country for some days...

Also... How many security patches are obtained from foreign servers?
> Get 'em to do it once, put it on the Web, and fire the faculty.

Even better, find the greatest lecturers out there, get them to do it once and put it on the web.
Very nice little library: I used it to make a 5-year planner for my mother (who is one of the few who still uses such things: you can't buy them anywhere any more, presumably everyone else plans online now) this year.

Some things seem locked to integer multiples of 1/72th of an inch (so A4 comes out at 8.3x11.7 rather than 8.27x11.69 and laying out lines and text more precisely than that doesn't work) though I didn't delve into it to see if this could be rectified (by using using a smaller unit perhaps) as I didn't need more precision (which I'm guessing most people don't either). Line drawing widths and such take non-integer values fine, just not the line start/end coordinates.

Nice library though, I'll be using it again in future and may even be able to contribute. It may even be my impetus to play with CoffeeScript properly.
I have a PhD in physics though I became an entrepreneur. My loose definition of science is that you observe, predict, experiment, and honestly report your results.

Five-year-olds can do that.

I have found exploring and studying nature one of the more rewarding and pleasurable parts of my life. I've done it as a member of academic institutions, but I also do it just walking in the park.

Three things I wouldn't confuse:

a) membership or funding in an academic institution

b) recognition from peers

c) practicing science

I consider them orthogonal. I consider a) a job, b) a nice perk, and c) an enjoyable pasttime or hobby. Great when they overlap but unnecessary.
To the second point:
Not only domain, but all the hardware should be situated in Belaus.
edit: don't downvote guard-of-terra, according to goshakkk's comment [http://news.ycombinator.com/item?id=3416018] the english note is incomplete and guard-of-terra is correct that this affects "networks, systems, or [hardware] resources"

> Second lie: the cited law says nothing about individuals being liable. It says, that if you sell or provide services in belarus then your hardware should be located there.

Can you read the law in the text? The english note only talks about domains:

> only domestic Internet domains for [...]

Furthermore, this is only a constraint for belarusians providing services in/to belarus:

> The Law requires that all companies and individuals who are registered as entrepreneurs in Belarus

> The problem is, of course, that everything is a service. webmail? service. wikipedia? service!

Essentially all internet communication yes, there's a (non-exhaustive, I assume) list:

> for providing online services, conducting sales, or exchanging email messages.

> And also that cloud hosting is pervasive yet becomes useless.

Yes it looks like there's a blanket ban on using services external to belarus if there's a business transaction involved:

> It appears that business requests from Belarus cannot be served over the Internet if the service provider is using online services located outside of the country.

although it's not clear whether the offense would be put on the user or on the service provider. The final paragraph hints it would be the latter.
Do you actually need tech? I have locked myself out of several cars. It rarely takes me more than a few minutes to get back in, even if the best tool I've got is a tree branch.
Didn't vote because it asks for permission to update my profile info and repository's as well as reading my public data. Can't see why it would need anything but read-access to my github profile.
A way to "save" threads, so that I don't have to comment on them to keep them.
Psd to joomla
Joomla is one of the best open source CMS available with huge community support. Our PSD to Joomla service helps in converting your psd file to Joomla template or theme.
I'm willing to risk that since I rarely use any of my swap.
Is that part of the original law which was not included in the translated note? Because the note linked here does not — as far as I can tell — make any mention of hardware.
How to Be Considerate on The Internet
Yeah, it's much cleaner vs. the old FileVault. The decryption happens at boot-time, as far as most of the OS is concerned (incl. TimeMachine) there's no encryption at all.
Several years ago I started doing the same thing except that I used Gambit/C Scheme: small fast executables written in a convenient to use programming language.

I have been programming since the mid-1960s and in retrospect the only C/C++ code I have written that really needed to be written in C/C++ were games for Nintendo and for the PC.
> Any tips from musician hacker types here on how to get past this kind of 'improvisor's block' ?

I've been a pro musician before being a programmer and here's my advice: look someone else's playing, that's it. Of course you can do it the hard way and painfully learn to play chorus from recordings, but it's really tough. However, you can learn a lot simply by observing someone playing on your instrument.

The latest trick I learnt this way is incredibly simple, really the kind of slap-my-forefront discovery: to play be bop tunes (Ornithology, Billie's bounce, Night in Tunisia) on solo piano, a good way to play both the bass and chords is to ditch the classic be-bop triads described in this article (7th-3rd-11th, 3rd-7th-9th and the likes) and simply play 1st-7th-10th (yes, a good ol' 7th chord) with the left hand, which provides both enough bass and enough harmony, while keeping the right hand free :)
Thanks yeah, I've heard of VPRI and read a few of thier papers and seen some of their videos. Alan Kay is one of my heroes and I really do think that the idea of breaking down problems to domains and working within that is very important going forward.
A misdemeanor is a criminal offense, even if it does not involve jail time.
WarVOX - telephony and VoIP hacking
Here are 15 studies showing that diet composition doesn't matter much and the most important thing is calories in/calories out.

http://examine.com/faq/what-should-i-eat-for-weight-loss.htm...

Here is a detailed debunking of Taubes science.

http://wholehealthsource.blogspot.com/2011/08/carbohydrate-h...

The only known benefit of a low carb diet is that some people are more willing to stick to it than other types of diets.
Tom Sepper (COO of Site5) posted on Web Hosting Talk (http://www.webhostingtalk.com/showpost.php?s=fed7907b397ade5...) when someone asked this same question. His response included the following:

"With respect to everyone in mind, it's not our place to release any details (nor are they fully known)."
And then get nailed to the wall for the jump in unemployment.
Title is quite wrong. In both cases there is _civil_ offense. Here are two main cases:

- Belarusian companies have to offer service from servers located in Belarus physically.

- Owners of internet-cafe have to identify all users so any connection could be tied to particular identity anytime.

I am not saying this is right, but for country like Belarus it is quite minor issue. I was almost excluded from university due my participation in opposition movement and know a bit about wire tapping phone lines (including mobile - have no clue how they do it actually).

I am glad it did to front page of HN. It means someone still bother what is going on there.. :)
Ask HN: Do you run a server at home?
Just curious to find out if it is common for hacker to run own server at home. An always on computer for running web query scripts, serving media files, personal git server etc. If you have one, what do you use it for? Or you're running everything off the cloud?
4 Digital Marketing (SEO) Predictions for 2012
It is because it is unstructured -- in the Dijkstra 'structured programming' sense. The flow is no longer nested, so you cannot skim over -- mentally fold -- parts. It also means the effects of transformations are less 'limited'.

With structured code, if you put a statement after a block it will be executed (notwithstanding exceptions, but that is a slightly different matter...), no matter what is changed. But if you have returns, breaks, etc. that structural condition is lost.

If you have a function with a statement, or block, at the very end, to clear something up or something, but then someone puts an early return in, the clear-up will be missed. There is a certain error-proneness there.

The best use of the early-return pattern ('replace nested conditional with guard clauses' in the Refactoring book) is where that is the only thing going on in the function. So you are effectively reading/understanding the whole thing as an 'early-return function'.

(And software is very different from natural languages. When you look at software what you see is not language, but a machine. And it has a particular hierarchical structure.)
Yeah that's what I mean - it looks more trustworthy than something over-designed with 5 carefully-crafted price plans. Think I'll give it a shot soon. Thanks!
So why is the offense described as a misdemeanor?
Субъектам хозяйствования, осуществляющим деятельность по реализации товаров, выполнению работ, оказанию услуг на территории Республики Беларусь с использованием информационных сетей, систем и ресурсов, имеющих подключение к сети Интернет, следует обратить внимание: если эти сети, системы или ресурсы не размещены на территории Беларуси и (или) не зарегистрированы в установленном порядке, к субъектам может быть применено административное взыскание в виде штрафа от 10 до 30 базовых величин.

сети, системы или ресурсы mean networks, systems, or [hardware] resources.

It reads that networks, systems, or resources must be located in Belarus.
Safari Extension to Disable Google Link Tracking for URL Copies, History
Reminds me of an old comic: A gas station attendant is filling up a 70s-era gas-guzzler; he yells to the driver: "Better shut off the engine! She's gaining on us!"

(I've spent the last 10 minutes searching google images and the New Yorker cartoon bank for this, but can't find it anywhere – does it ring a bell with anyone?)
Show HN: Now Adopt (crowdfunded adoption) landing page
Turbulence in HTML5 Canvas
Can anyone explain why they implemented this law for those of us with little-no knowledge of Belorussian politics?
Not|soon to be confused with the Ruby gem, PDFKit.

https://github.com/jdpace/PDFKit
I've never had the broken back button behaviour, but often, when a site is down, the indirection page replaces whatever I was looking at with a blank screen while the real site tries to load. For a technology that's meant to be completely invisible, it doesn't do a great job of hiding itself.
Yeah, living in Belarus and participating in opposition movement, they told me at school that they're able to report about my political views (yeah, we're not free about that in Belarus) and exclude me.
This page could benefit greatly from any sort of explanation. What should my criteria be?

Also consider either changing the "Nominate" form to an actual <form> or adding a keypress event on the button so that I can submit by pressing enter.
The Law states that this provision may apply to private individuals if they allow other persons to use their home computers for browsing the Internet.

I can't read Russian, but a machine-translated version of the official notice (linked in the article) also mentions home use.
What have you started using instead? I really dislike all the versions of Safari for offering only Google/Bing/Yahoo.
I don't see any email in your profile.
"RIP privacy", amirite??
I don't get it. Can you provide an example use case?
Python-Dev: Adding braces to __future__