skysight-inc/HackerNews huggingface dataset:
We are straying a bit off topic here. I don't think any country has been stable for a "few" hundred years. A few is 3. This is before the US was founded.

I would say a stable country is one which has had a legit democracy for 70 or so years and doesn't share a border with a non-democratic / non-legit-democratic state. These two points suggests its unlikely to have a revolution or be invaded any time soon.

Of course, if you look at the UK governments track record with IT.. you wouldn't trust it. I would say the same with the US, especially in concern with data security.
I'm completely amused that there's an internet service named "Glacier" in such a way that it is a positive connotation!
The 10b5-1 is actually bit fuzzy on whether you can cancel trading plan. SEC basically says that if you cancel the trade than you are not legally liable because no transaction actually occurred and so one cannot claim that you profited from insider trading. So in theory you can cancel the trading plan if you like. However if SEC feels that you cancelled only because of price drop then they can come after you for ALL your future trading plans or may even re-examine previous trades to see if you were trying to game the system. Therefore executives are advised by to cancel only under extraordinary circumstances.

So I think Thiel had lot of legal pressure, although technically not an obligation, to sell as per his trading plan filing. He could have taken risk but it's probably not worth it for another half-a-billion of profit if you are already multi-billionaire and if you are already cultivating 1000X returns as it is.

On the other hand it is surprising that he decided to sell most of his stock instead say only quarter or so. I would think Thiel as a long term investor in FB from what I've read in the book "Facebook Effect". Thiel is one of the few person that probably knows most upcoming plans and products in works and problems at FB. A typical strategy for investors like Thiel is to cash out in stages instead of dumping most stock at once like regular VCs do (10-25% each quarter, for example). Considering his level of insider knowledge this only means he did not expect FB stock going up at the time of trade filing in at least 1 to 2 year horizon.

This is even more surprising because I keep thinking FB is going to come out with something like AdSense any day now and almost instantly double its revenues bringing stock back to $25-30. Obviously Thiel has calculated things differently.
Totally, but that's kind of the reason the industry is exciting. I get bored writing the same piece of code twice, I'm not sure I'd survive in any other kind of job where I'm doing the same thing day in/day out. I LOVE the fact I still get excited when I learn something new or find a new way of doing something I've done several times before!
Thats what up at previous discussion
http://news.ycombinator.com/item?id=4042495
Oskar, I didn't know you were an HN'er. Thanks for posting. I have studied malicious use of DNS for a long time and have not yet found any reference prior to your post in 1998. In fact, I used your original bugtraq post as a reference to kick off a whitepaper detection solution approach for enterprises: http://armatum.com/blog/2009/dns-part-ii/ I'd sincerely welcome your feedback.

HN'ers -- Despite Kaminsky's ego, all signs indicate Oskar invented DNS tunneling.
A free 10 week rails course
In general, thinking about the different valid rewrites of the type signatures of the various higher order functions in Haskell tends to reveal quite a bit!
Sweden is a small pond with a few big fish
I am a bit confused with the pricing of retrieval.

Could some good soul tell me how much would cost to:

Store 150 GB as one big file for 5 years. To this I will add 10 GB (also as one file) every year. And lets say I will need to retrieve the whole archive (original file + additions) at the end of year 2 and 5.

How much will it cost?
Though this is straying a bit from the topic at hand, I must point out that quality speakers employ a range of designs, from simple sealed designs, to the ported designs you mention, on up to folded or full-scale (built with cinder block walls[0]) subwoofer horns.

The purpose of the port in ported designs is not just to allow movement of air, but to control the resonant frequency and Q-factor of the speaker. The individual dimensions, size, shape, and materials of quality speaker enclosures are all tuned to control resonance.

To sum up, there's a lot more to it than "an airhole to allow movement of air."

[0] I can't find the actual system I recall, but here is an older system with a similar design: http://www.burwenaudio.com/images/20000_WATT_HOME_HI-FI_0476...
But then you can do incremental backups which should be faster. Although I admit I am not sure how to do it with encryption (impossible?).
I'm playing wiki-facts here, but Unilever bought one of the breakup companies in 1987. The Unilever conglomerate established itself very much without being part of Standard Oil.
I wonder if Glacier support in Duplicity will be possible without large changes. AFAIK, duplicity also reads some state from the remote end to determine what to backup (Although it also keeps a local cache of this?). To use glacier, the protocol would have to completely write-only.
There's also Amazon Direct Connection (http://aws.amazon.com/directconnect/) if you happen to be on the same backbone / data center.
Why the Rich Don't Give
There are different values of "support". I "support" IE6 and 7 (I make sites for small businesses in the UK), as in, the site works, and the content is accessible. Those browsers make up 0.8% and 4.1% of the traffic last month respectively. (Why the hell is IE7 still used? How do people even have it installed???). For those, I'm happy to strip out sections if needed to get things to work, though this is rarely needed to be honest.

IE8 makes up 11.9%, so we do proper testing there, and the content should look as close as possible to modern browsers, but I'm happy to include polyfills etc where needed.

For us, Chrome is 21.1%, Mobile Safari is 17.5%, IE9 is 17.1%, and Firefox is 15.6%, so for us over 70% of users have a modern browser. These 4 are our target browsers, where everything should work.
35 young innovators
> What is the relationship between fold + cons (::) and monadic bind? What is the natural transformation from fold to functorial map? Is there a sensical dual?

Whew, working backwards.

Fold is like your swiss army knife for working with entire lists at once; you just need to tell it what to do when it sees a node (Cons) or a terminator (Nil). If, for example, you instruct fold to apply a function to each element of the list but leave the linked structure intact, you've implemented map! And for lists, the fuctorial map, or fmap, is exactly map.

The monadic bind in the List monad is a way of expressing Nondeterminism. Let's say I have two functions...

b = makeSomeBsFromAnA(a); c = makeSomeCsFromAB(b);

In the context of the List Monad, you would evaluate the first statement to produce a list of Bs. Then, for each B, you would generate a list of Cs, and then concatenate all of those lists into a big list. That's why bind is sometimes referred to as flatmap in the List Monad - take each element generate in the last list computation to generate a bunch of new lists, and then flatten them (smoosh them together; concatenate them). flatmap could of course be implemented using fold and cons.

The point here is that, since we're working within the context of the list monad, I can deal with a single B and a single C, even though the function calls are really giving back lists of those respective types.

By the way, in Haskell the code would really look like this

makeSomeCsFromAnA a = do
b <- makeSomeBsFromAnA a
makeSomeCsFromAB b
One of my main beefs with Bootstrap was that it felt cramped. The switch to 14px body text with 20px line height addresses that. Personally, I'd increase the default line height a bit more.
I'm looking into supporting Glacier in Arq. It sure is cheap -- $10/month for a terabyte.
Google Shopping has moved to a paid inclusion model, and it looks like no one in the vitamin sector has paid...

Here's Google's May 31st announcement on the change: http://googlecommerce.blogspot.com/2012/05/building-better-s...
I believe you had a sample/demo page with v1? I thought that highlighted what the stylesheet achieves quite nicely.

Also, I reckon test case examples for each browser quirk would be cool, so people who wanna see what each thing changes/causes, can go through the commented code and see what removing certain declarations would change/effect.

Keep developing cool stuff necolas!
I guess this is software's version of security theater. Make the users feel like the website is secure because there is a javascript running on the login screen to prevent you from pasting, never mind that you can probably not use pass phrases or spaces because the backend was built in 1995. :)
Chicago Mercantile Exchange (CME) Planning Derivatives Exchange in London
Sadistic Baby Accessories
> Because leaving the friggin' docs online costs so much?

It's not so much about cost but about polluting the Google index with obsolete information. For example, look up a Java API and it's very likely that the first link you will get will point to Java 5. Google is not wrong, that API link is most likely the most linked to, but it's very often not the one you are looking for and certainly not the one that the author of the API wants you to find first.
I personally believe that data should never be deleted (or overwritten), but only appended to. Kinda like what redis/datomic does. So, keep live data onsite, along with an onsite (small) backup, and all the old data in Glacier.
ITG Launches Indonesian Dark Pool
Lockups and Insider Selling
Yes, that's what I am thinking: a week of backups to S3 and a script that does moves the oldest one from S3 to Glacier. You would rarely need a backup older than a week if you've already got a week of backups. I'm still figuring out if there is a practical way to do this with incremental backups without introducing to much risk that the backup process gets messed up.
Thanks for sharing this! This looks awesome.
The Mindset List for the Class of 2016
Congratulations on shipping the alpha Ben!

At SnowPlow we're hugely excited about using Sky/Qip to do agile analyses on big volumes of web clickstream data generated by SnowPlow (https://github.com/snowplow/snowplow).

One thing I didn't see in the blog post was: what is the recommended way of loading data (e.g. csv or JSON flatfiles) into Sky? So we can get started with our prototyping :-)
Great work! I just sent this off to my team so we can all enjoy a much friendlier color scheme :)

I wonder if most engineers find the terminal unpleasant to look at, or is it mostly the "artsy" engineers that are bothered by it...
That's pretty awesome! I've always wondered why popular css grids weren't also CDN'd. Bootstrap, 960, etc, etc - it makes great sense to have many of these things cached across 100s of sites 1 time - instead of 100 times. Modify the cdn version in a seperate style sheet afterwards.
Let's Ban English in School ... Except in English Class
Bypassing CAPTCHAs by Impersonating CAPTCHA Providers
That's what duplicity is for: http://duplicity.nongnu.org/

It uses rsync's algorithm to figure out what has changed, and everything is encrypted locally.

(The site says it's in beta, but it's said that for years.)
Q: I run "less ./less/bootstrap.less > bootstrap.css" – but the bootstrap.css just contains links to all the less-files, and not one full css-file. What command do I need to do?
At first look, filepicker.io seems to provide javascript API for developers to quickly and easily implement a file picker.

addfs.com provides users with the ability to access files kept in box, Dropbox and Google Drive in ONE window. Think of it as an online file explorer with ability to mount cloud storage (box, dropbox and Google Drive) and manage files (create, update, delete, view, and in future perhaps copy, paste or move files between clouds).
Good points over all. If you don't want to disable transaction fixtures for certain specs and still want to use after_commit, I have this little patch - https://gist.github.com/3205621 which works flawlessly.

And I liked author's solution of tracking attribute changes. But may be there is a cleaner way. I had similar problem where, I needed a handle on after_commit :on => :update but in observer.
f5less is cross-platform (being based on java7 fs watching feature) and cross-browser (because it uses websockets for reloading stuff). I Haven't checked livereload in a while so i don't know exactly how far they have come with the windows support, but last time i checked it wasn't quite there yet. That being said livereload probably offers more features on the live reloading side.

The strength of f5less lies, IMHO, on being essentially a command line tool: you can do anything you want when a fs notification is triggered, and in addition you can reload web content using websockets.

Another strength is that the client reloading is very flexible and extensible, being javascript you can just change the f5less.js file to do whatever you want when a file with a certain filename is changed. I just encoded the basic and probably most common behaviours.

If you want f5less is something like watchr + guard-livereload, only command line and easily extensible.
These kind of blog posts are gold for people looking to gain a deeper understanding of Rails development. Thanks!
Printers are spontaneously printing odd "SQL" strings
The top-level is hopeless. Fexprs? in Scheme?
Judge demands Google must reveal paid commentators
Yes, thank you. I'm just a sucker for GUIs.
Huge opportunity here for somebody to jump in and make giant piles of money through an affiliate network. Outside of membership programs vitamins and "health" goods have crazy affiliate payouts.
For this and related predictability/absence-of-surprise reasons, I have generally moved away from ActiveRecord callbacks in my Rails projects. It's very easy to forget that you e.g. have an after_save defined for accounts which made sense when accounts necessarily represented people with credit cards in the system but doesn't make sense for e.g. people paying via purchase order. It is also easy to forget an after_save which e.g. takes a consequential action like "purchases a phone number" which doesn't hurt when there is only one account.save in the code base but after you add the second one, say in a Rake task that executes every 5 minutes, blows up terribly.

These days if I find myself wishing I have a callback that probably means a related model method or controller needs to be one line longer than it is right now. (e.g. I moved the welcome email out of the after_save and into the controller in charge of online signups months ago. This was the right call, as it means that e.g. my magic administrator create-a-free-account-for-a-customer-who-pays-via-PO button doesn't actually mail them prior to their account being configured correctly.)
Using standard language constructs like lists and maps is idiomatic in Scala as well:

val myMap = Map("foo" -> 1, "bar" -> 2)

An idiomatic way to make a map from the columns of a csv file:

val myMap = fromFile("filename")
.map( x => x.split(','))
.map( x => (x._1, x._2) ).toMap

I've written plenty of lisp (Clojure and non-Clojure) and I haven't observed it to be significantly shorter than Scala/Haskell.

Scala has a two-pronged nature. It can be a superior Java or an inferior Haskell. I suspect the author of this post was treating it as the former.
Wow, didn't realize Sweden was such a candidate for ending the phrase: "something is rotten in the state of..."! Was floored to learn that:

- Jurors in court cases appointed by the political parties in power.

- Apparently, the current Minister of Justice doesn't see any conflict in the fact that police officer involved in a ongoing corruption case has started working for one of the sides.

- The current Foreign Minister was recently a board member of a company being investigated for genocide and has given conflicting statements about his involvement.
Presumably the standard S3 SLA will apply: http://aws.amazon.com/s3-sla/

Realistically, you'd want to have at least two diverse cloud backup systems - I doubt you'd be happy with Service Credits if your data went missing.
"It was also influenced by the educational level of the parents, a higher rate of success being associated with fewer years of education attained by mother and father combined."

This seems counterintuitive to me. A LOWER educational level of the parents correlated to a HIGHER rate of success of escape, it seems.
the command you want is 'lessc'. 'less' is the standard Unix command for displaying text files
The Lost Years of Internet Start-ups
Who pays for this ? How do I know you're not going to replace some of that javascript with malicious content ?
Maybe implement an API of some sort or a batch URL option so that they can create a book.

Or something that I can click from my rss reader and it can create a book so that would be e-mailed to me so when I am on the bus I can open the .pdf and read all my news.

I don't know just thinking out loud.
It is great to see these posts and I absolutely applaud him for what he has achieved.

Programming, like any other profession takes time to master, how would you react to "How to become a brain surgeon in less than 6 months"?

If you were to have a brain surgery would you choose the guy who was unemployed 6 months ago, or the other one who has been performing these surgeries for the last 20 years, every day?

My point, comparing the two, is to highlight that both of these professions affect us, one a bit more dramatically than the other.

If every medical student got to be a brain surgeon in less than 6 months we would have many more tragic accidents costing lives or making someone permanently disabled but there are many barriers in front of them that prevents this kind of thing and gives the patient some confidence.

I argue that there should be something similar in place in the field of development/programming.

In the same way that I would prefer the more experienced surgeon, I'd prefer the websites I use to be programmed by more experienced programmers, how about the cars we use? the airplanes?
Nice to see some actual data!!
Near-universal Mexican Healthcare Coverage Results From Science-informed Changes
Any plans for dropping JQuery as a dependency on the controls?
I think I could argue that England has been pretty stable since at least the end of the Civil War - which is 360 years ago. A lot of the institutions that form part of the current UK go back an awful lot further than that.

[NB I'm not English]
The same people who are doing the cdnjs have been planning do a CSS one as well, https://github.com/cdnjs/cdncss
Was going to say the same thing. Models should not know or care about background queues or mailings, and callback use has always caused problems for me later on.

Nothing against the OP, it does explain a common edge case that many people will run into and for that it's a good article, but I wish more people would see the violations of SRP going on here and try to lead people away from this trap.

I'd recommend watching http://www.youtube.com/watch?v=CGN4RFkhH2M (Hexagonal Rails GoRuCo talk) for one way to re-architect to get away from these inter dependencies.
US. UK. Sweden. It is really hard to come up with countries where the government has been stable "for a couple of centuries".
Fixing Hacker News: A mathematical approach
Announcing the first Bombay (Mumbai) MathsJam
While you're at it, consider switching to a 256-color terminal.
How Hollywood Is Encouraging Online Piracy
This isn't actually an isolated Rails issue (although the example is perfectly explained with Rails).

To tell a quick little story, I have experienced this issue in a system on a very unpredictable way. It cost me hours (days?) of repeated bug hunting to figure out what was happening.

So, our users will save an "Entity". The entity is actually pretty complex, and has the potential to span 40-50 tables. (O how I wish I used a Document Store rather than relational). Anyway, when the "entity" gets saved, I need to update Solr search, with an updated reflection of the model.
There are two flags within this model, "enabled" and "deleted", and I use these flags to filter on the Documents within Solr.

All jobs are sent to Solr by going through a Gearman Job Server worker process.. However, the worker, was receiving the job before the database had persisted the updated model, so it was always one snapshot before the user initialized the request.

But oddly enough, this issue would only ever happen when the server was under very very small load. I could not for the life of me track this issue down, and it took me months before I realised this was almost akin to a race condition, especially since when under load the bug never happened... And.. If I artificially added load, the bug wouldn't happen. It would only happen when the server was running smoothly.

Once I spotted this, I was able to fork the request off to Gearman at the correct time, (rather than as a prePersist lifecycle event that I was previously).

I definitely learnt a lot from this little issue. It was such a simple issue, that eluded me for months, and just goes to show, that not all code runs the same... given different conditions, (ie Load), you will find that your code can behave differently.
How to count words and get basic info from a file with Java
CSS Object Model Explained
Internet Technologies - II
ok, gotcha that is a pretty nifty feature :)
Very cool idea. You might also want to check out ZURB Joyride (http://www.zurb.com/playground/jquery-joyride-feature-tour-p...) for more inspiration. A good looking jQuery tour plugin we are using on our product.
Show HN: Athenians, an HN clone for Christians and theology.
I moonlight on this, and any constructive feedback is appreciated.
What every software engineer should know: your career is a business
Personally I already have - I'm still supporting IE8, because there's no upgrade path from that if you're still on Windows XP, but there's really no reason to be stuck on IE7 these days. (If your workplace has any legacy apps with weird requirements, it's more likely you'll be stuck on IE6 than 7)
This is a really common issue that can be tricky for users unfamiliar with it to track down. There is no need to try and schedule all of your jobs in the "hopefully-later-than-your-transaction-completes"!
Windows 8 gets Personal Use License for anyone building their own PC
Indeed, it was not meant as an attack, merely trying explain his style. I enjoy reading his blog posts, but I readily admit that I often have to seek out some sort of elaboration, as it's not always evident what his stance is, or even what he's talking about (I often wish he'd provide some more context).
How do you know Google/Microsoft won't either?
This looks awesome! We are currently developing a P2P-based backup solution (http://degoo.com) where we are using S3 as fall-back. This will allow us to be much cheaper and I am sure it will enable many other backup providers to lower their prices to.
That's one of the more ridiculous bugs I've heard of...

I wonder what the root cause is.
Cloudflare pays for this. They've been sponsoring cdnjs for around a year now.

As for the security of our system, all javascript files are verified against official sources before going on the cdn. Additionally, we have many library maintainers submitting updates to their own libraries.

Beyond that the only question remaining is our personal integrity. Like any relationship with a third party, you're going to have to decide whether trusting us is an acceptable level of risk. If past performance is any indication of integrity, we have had no security incidents since we began in January 2011.