skysight-inc/HackerNews huggingface dataset:
This approach works well when you want to cache data from an existing integration database and don't have the luxury of rearchitecting the whole thing.

At my previous job, we had a bunch of systems talking to a single database. Some were rails, some were not. We wanted to add memcached to the rails apps via cache-money[1]. That'll handle read-through/write-through caching for vanilla rails stuff, but we had to somehow invalidate the cache for updates that happen outside of ActiveRecord::Base#save (e.g. update_all, or a write from a non-rails system). In the end, we settled upon the same approach[2] as in the article.

The trigger-backed cache invalidator was also written in ruby, and knew from rails/cache-money what key(s) needed to be invalidated when it got a notification. IIRC you didn't need to do anything special when you added a new cache key (e.g. cache user lookups by username), since the invalidator would just know what to do.

[1] https://github.com/nkallen/cache-money

[2] This was actually on 8.4, so unfortunately there was no NOTIFY. Instead, a plpython trigger would send a message to invalidator (persistent tcp conn per pg process), but this had the unfortunate consequences of 1. firing before the commit and 2. firing even in the event of a rollback
Stop thinking you'll get by on your high I.Q.
Please. We call the "Patriot Act" the "Patriot Act". We called SOPA by its name despite disagreeing that it would "Stop Online Piracy".
Sell side analyst recommendations are a complete joke. They are basically trailing indicators (i.e. price drops and then the sell recommendations come out). I don't think anyone takes them seriously.
Hi tbran, thanks for leaving a comment. Here's my take on your concerns:
Easypost is a really great service. They were in YC and I think they are a great choice for the flow you mentioned. We're quite different from them (while we're still addressing the same problem).

The address_line 1 is not necessary to get an accurate quote. However, it is necessary to generate a label that you'll need for sending the package. You'll have to be careful to enter the correct address. FedEx charges extra afterwards for address corrections. Our goal was to build an API that allows you to get accurate quotes without having to enter a lot of data. However for the final label purchase the exact address will be necessary.

UPS/FedEx etc. don't allow you to pass on your account to people that are not directly connected with your business. I assume that is what you meant by "messy." If you still want to do that stripe connect is certainly a good choice. This is exactly what we're working on - to get contracts with courier services to eliminate this problem.

About the flow that we had envisioned for our service:
customers choose the product they want to buy -> tell us in which country they live -> we show them all available courier services -> they chose the servicelevel that suits their needs best (fastest, cheapest, whatever) -> check out -> the label is directly sent to the vendor -> vendor sticks it on the package -> brings it to the post office/gets pickup (vendor can specify if only pickups are allowed & which day is best for pick up) -> done (all through API)

Just email me at laura(at)goshippo.com if you have any more questions. Happy to help out.
Indentation should be done with tabs.

However, after a character that's not a tab, i.e. any printable character, spaces should be used.

It is the best of both worlds, and can never be misconfigured by changing the number of spaces that a tab represents.

It is also what tab advocates have been saying for years now.
The 3 Biggest Excel Blunders of all time
Good.

IE10 is awful and introduced weird regressions into canvas and event.detail.

Canvas clipping regions are completely broken in IE10: http://jsfiddle.net/simonsarris/8nNnb/

Microsoft's reply was essentially "lol, next release" : https://connect.microsoft.com/IE/feedback/details/782736/can...

They're fine leaving it broken for IE10 for all time.

Event.detail never resets when you move the mouse: http://jsfiddle.net/uDhwX/

In fact event.detail doesn't reset even after you've reloaded the page

The IE team closed that one as won't fix back in June: http://connect.microsoft.com/IE/feedback/details/789773/ie-i...

Both of these are just fine in IE9.

What's worse, these aren't the kind of things I can use feature detection to figure out. They're not missing features, they're features that worked in the last version that are broken in this one (IE10), that will remain broken in this one, and may be fixed in the future.

So thanks for fixing one of those, IE11. Maybe you could get around to event.detail some time.

~~~

The biggest problem I have with IE is disjointed updates. They don't care enough to fix the one thing they need to fix. And don't tell me they're doing automatic updates now, they need to go back and fix all versions. Including on Windows XP.

In 2009 the IE team released IE8 on Windows XP. Some time before before that I set my parents up with Chrome 1.

Do you know what they're using almost 5 years later? Chrome 30. And they have no idea. And we're all the better for it.

Do you know what they would be using if it were not for Chrome?

It's not IE11. Or 10, or 9. Nevermind automatic updating, plain old updating isn't an option for my parents.
Comparing Command-Line JSON Pretty Printers
I don't know. I would worry about the fact that SHA256 was chosen for the hashing algorithm. There's good reason to believe that the NSA has attempted to develop hardware that can perform incredible quantities of SHA256 hashes, because it is also used as the standard for most encryption online.

They might not have powerful enough machines to actually brute-force normal Internet encryption standards, but they are probably still attempting to develop them, and it shouldn't be surprising if they now have a SHA256 hashing network that can blow the entire world's bitcoin mining operations out of the water.

Alternatively, some other entity may have attempted to build a hashing network to crack online encryption, and they developed bitcoin as another way to try to use their network.

Conspiracy theories, yeah I know, but come on. Is it not at least plausible?
Angular and Ember have the same use case. They're just different approaches to client-side MVC.
Sad that one would have to ask a lawyer for something as simple as this.
i run a bootstrapped company that i founded in 2006, and i have some extra money i am totally comfortable of losing entirely. i view this as an experiment. i am looking for a serious practical advice.
No. It's only for accredited investors, and those that have connections into the deal.
Help us build CodeCombat: a multiplayer programming game
Rough Draft VC - The Best Thing Happening in the Boston Startup Scene Right Now
That code snippet is a matryoshka doll of brainfuck.
Yes because every company will eventually be a startup with only a handful of employees and little investment in technology so that they can jump on the newest technology without costing the company billions. /snark
I'm told that political decisions regarding the architecture have greatly hampered gcc's progress, does anybody know if this is the case?

Either way, the better error messages in clang make it worth sticking to.
We're grateful, thanks!
Servlet container restarts don't have to have a huge overhead for development (not sure about using a full j2ee container). If you use SBT[1] plus the the xsbt-web-plugin[2] then restarts are just as fast as they are for node projects.

Disclaimer - I contribute to the xsbt-web-plugin

[1] http://www.scala-sbt.org/
[2] https://github.com/JamesEarlDouglas/xsbt-web-plugin
On a day-to-day basis, the stock market is a random walk. There is no way to know WHY Facebook is dropping and Twitter is rising. If somebody knew, he or she would have been billionaire many times over.
QA Contractors?
We're looking for someone to design and implement a thorough suite of tests (automated and manual) for an app that we can run ourselves as part of a continuous deployment development cycle. Does anyone know of a reputable company that provides this sort of service, and what sort of rates one might expect?

At present it's iOS only, but we plan to expand to other platforms.
> doubling everyone's monthly premiums

[citation needed]
Noone calls Obamacare Obamasux or something stupid like the name you came up with.

A more apt analogy would be Bushtactics.
To add to this, just remember one simple fact: When you are a long a stock, the most you can lose is the amount you paid. When you are short, you can lose unlimited money.
I would recommend Linux / Ubuntu / OpenOffice / LibreOffice. :)
Thank you.

[Edit] ...and yes.
Virtually every IPO is priced such that the market price is substantially higher than the offer price. This unquestionably transfers money from the market to those who are allowed to buy at the IPO price. That they are designed to do that seems like a reasonable conclusion from the fact that it happens over and over again.

Furthermore, when an IPO is priced such that this does not happen, such as with Facebook, it's criticized and called out as a disaster even though they sold all the stock they wanted to issue and made much more money for their company than they would have otherwise.
Unit tests and basic code reviews aren't exactly exclusive to enterprise-level system architecture these days.

Regarding unit tests, their utility is actually mostly independent of the size of the team. The more relevant factor is the size of the codebase. A small team can end up producing a pretty huge codebase, and solid unit tests can end up saving a lot of frustration in the future. They also can be critical in helping new developers familiarize themselves with the codebase and its interdependencies.

Code reviews are an investment not just in the code and the product but also in the human capital producing it. One thing you'll learn with experience is that even very good developers will write bad code sometimes. If you've got millions of users, simply doing code reviews can be a lot less stressful than finding small mistakes later on when bugs pop up in production and a hotfix has to be pushed. It leads to less blame, fewer production bugs, and a more collaborative, academic environment. People can learn and grow a lot from code reviews (both receiving and giving). They'll improve the product and codebase not just in the short term, but doubly so in the long run.
//NOTE: Danielna indicates that OP may not actually give that much of a fuck
The legislation does lots of things, including making it possible for people like me with pre-existing conditions to actually get insurance. Plans are cancelled because free market corporations decide to cancel them -- the law could have forced all those companies to continue policies while bringing them up to standards, but if it did, you'd be complaining about that.
A plurality of the population doesn't want full-on socialized health care. Those insisting on making it happen anyway concocted this crazy implementation as a means of squeezing something thru in that direction, quite possibly in hopes that the fallout would make "single payer" the only viable option.

Yes, we're not "like the rest of the civilized world": this country was founded on valuing individual rights above the whims of the majority.
Can someone with more clue please tell me that the following cynical thought I keep having is wrong and laughably misinformed (and then explain why)?

Twitter's investors (who have plowed hundreds of millions in to a loss making company) decide to sell some of their stock at $26/share (after consulting with banks to arrive at this price). This will make right the losses they've experienced so far and pass the problem down the line. The banks buy at $26 and then immidiately flip for north of $40. This lines their pockets and passes the problem down the line once more to joe public.

End result: investors in loss making company cover their investment and make some profit, banks make some juicy profit for facilitating the game, joe public swallows the hype and makes the whole dance possible by eventually footing the bill.

Edit 1: thanks everyone for the thoughtful replies. I guess I can only continue to feel cynical if I believe that the original investors did all of this knowing full well that twitter never has a chance of living up to its valuation i.e. they just wanted to cover their losses, make a nice profit on top and punt the problem down river. The alternative is that the investors do honestly believe in the future profitability of the company and have decided now is the time to take some well earned profit as a reward for taking the financial risks in getting the company to where it is today.

It's going to take me some time to make my mind up as to which of those two scenarios I believe.

Edit 2: still difficult to understand why the banks have managed to come away with doubling their money though.

Edit 3 (final one!): See https://news.ycombinator.com/item?id=6691157 for a nice reply that seems (to my clearly very untrained eye) to make the investors motives a little less cynical.
On the left, people are upset it didn't go further and provide universal coverage via a single-payer system. On the right, people are upset that they are being mandated to buy insurance from a private company. There's irony in there somewhere. When voters are polled on the individual components of the plan, it is very popular. When polled on the plan as a whole, it is unpopular.
I tried to install PIL the other day via `pip` I believe, and a warning appeared basically saying PIL is not being maintained (is dead), use an alternative.
The only exception I can think for the 'use tabs' rule in languages without Lisp syntax is precisely Python.

Therefore, to me, your 'every language' reduces to a list of one.
I saw an interesting article about GOOG recently that had explicit instructions about where to buy/sell and how long to hold. I laughed.
Its not just rummaging through google accounts. Its recording 5 days of all Internet traffic.

But I agree with you: change the politicians in power, change the laws.
Maybe because Windows XP is 12 years old now, and people who use Windows XP are mostly from third world countries who don't really care wether they have IE6 or IE11 installed.
Quant bots make the market better by increasing liquidity.
I too prefer the concept of codemirror, but the difference is that codemirror is just a text editor and doesn't have any file management fucntionality, so while I apprecite codemirror more, I think they are two slightly different things
Support for Node and previewing with Node? (or Meteor?)
Google doesn't care about Google Finance or most of the other copycat sites they made in the early 2000s. I'm more surprised that Google Finance hasn't been shut down.
I was pretty sure that the financial companies demanded massive bribes in exchange for orchestrating an IPO, but it's still amazing to see it admitted in such a blatant fashion.
If you'd like to cast Andresen's innuendo in the best possible light, I won't object.

But my assessment of his post is descriptive, not normative. When you respond to a detailed technical report by criticizing the way it was presented to the press, then suggest technical flaws without actually explaining what those flaws are, that is innuendo.

Maybe you feel innuendo is warranted. Whether the mining game in Bitcoin is or isn't tenable over the long term doesn't much matter to me, because I'm one of those people who feel Bitcoin has no intrinsic value, and has a spot price today that represents in part irrational excitement about Bitcoin and in part a cynical scalping of that excitement by speculators. Bitcoin could be the most solid imaginable distributed cryptosystem and I'd still have problems with it.

I was motivated to comment about Andresen's post because I was also struck by his Reddit comment on the ES paper, where it seemed that random laypeople on Reddit were better prepared to discuss the technical implications of the paper than he was.
IE is certainly making good progress lately.

If IE is making progress in usability, I don't really see it. I typically use Chrome for three reasons:

1. It's fast

2. It has better plugin support (i.e. Adblock)

3. It doesn't have random freezes

Just today I thought I'd give IE 11 another try on my Windows 8.1 system. It wasn't long before I started experiencing weird random freezes that I literally never get in Chrome. Anyone reading my comment history will show that I use a lot of Microsoft technologies (Visual Studio, Windows Phone, etc) but I am frequently left wondering what the heck Microsoft is doing with IE because it's not working.
ColourBrightness.js - Determine if the background colour is light or dark.
A typical P/E ratio is around 13. Take Apple, smack on 13. If it is too high, you're spending too much. No official numbers for Twitter's profits, all guesses, but a suggested $116M profit this year gives a current P/E of 207. That means it would take 207 years, ignoring inflation (which would make it much worse) for the company to actually pay its investors/owners back the price of the company.

This is why people are suggesting going short. It is clearly over valued. The $26 initial valuation was more reasonable, if you assume the market information is wrong, and that Twitter will generate a far higher profit in the future. Your valuation is a bet on the market being wrong and Twitter's mobile potential being stellar.
> You might also be surprised by how many source files with indentation spaces have off-by-one indentation errors.

I will add that to my list of arguments against using spaces for indentation. It is so true.
Help the Internet Archive - their offices were destroyed in a fire
Can a Language be Safe? (2012)
The phone industry caught the PC industry because they were not innovating anymore, its was just about how to make more profits by reusing the same infastructure and just iterating enough so people would buy the "new things" - see Intel.

Now its only a matter of the PC industry learn with this punch in the stomach, and really innovate; once it does it; its back on track again..

Intel board copying Arduino for instance, is showing they are learning..

Also, imagine when they start to create something like Raspberry PI but with movable parts.. where people could change its small pieces with something to give it different functionality according to the pieces used... Even if the big ones from the industry do not see that, some small player will do it.. and the PC industry are restarted with a fresh cool air
the person you sell TWTR to later, buys it off you at a higher price. I don't think you're buying TWTR for the dividend, you're looking for the capital gain.
HN is becoming (very) popular. HN has always been a very influencial media, despite its minimal nature,in IT.

So more people posting => less quality news maybe.

HN has something other networks dont have : the ability for users to engage with very prestigious IT people in more than 140 characters, and to get relevant feedback on a product. It would be a pity HN lose that crowd because of a few bad apples.
At vLine (https://vline.com) we often work remotely (or from home) and use that as a way to dogfood our service. We just set up a "vLine link" to a TV in our office and people can jump in and out throughout the day when they want to talk. Some people stay connected all day (or just keep the audio on and enable video when they need it).
Summary: my health care insurance is a matter between me, my doctor, and my chosen insurer - which is none of the government's business. Disrupting my insurance because of issues not relevant to my treatment is intolerable.
How to design a mobile application - Scoutzie.com
Yep. I don't think doing an 'art review' is going to turn many amateur painters into a picasso.

Code reviews also suck up time of your most senior people. Personally, I'd rather just have some fucking TESTERS. (manual or automatic script writers).
There are, sadly, a ton of Enterprise clients still using Windows XP as well as a ton of home users in first world countries.

Windows XP still works "good enough" for most computing tasks. Having said that, since I'm used to more modern operating systems I find I'm lost on XP now but for people that never left it, it generally works "good enough".
You can always short the stock, but that is quite risky as your maximum downside is theoretically infinite (the stock can always go up). A bearish options strategy[1] can at least define your risk. Thinkorswim[2] options platform is my favorite, they were acquired by TD Ameritrade a while ago, but the thinkorswim platform is still independent from the larger TD Ameritrade system.

[1] http://en.wikipedia.org/wiki/Options_strategies
[2] www.thinkorswim.com
FTA:

>I recommend RabbitMQ

I recommend anything but.
I'm still waiting for someone to show their canceled plan side-by-side to the new plans on healthcare.gov and show how much better their old plan was.

I mean just one example on a website that can be reviewed for accuracy, other than say fox.
I, for one, enjoy the liberal use of white space. No academic reasoning for it. I think it's a pleasing aesthetic in general.
Twitter ads only appear in your stream, which I at least keep very curated, since the volume people tweet can destroy it's value. I find Twitter ads much more intrusive. Also, go back through your likes (if you haven't). You'll be surprised how often stuff gets in there that you don't remember liking (you may be an exception and keep it very curated, most people do not). Facebook can target you based on any one of the pieces of information on your profile, which includes everything Twitter tracks, plus the additional fields. This doesn't even go into Partner Categories, which you cannot avoid being a part of, Custom Audiences from companies whose email list you are on, and Lookalike Audiences where you show up as similar to customers on another companies email lists (none of which Twitter offers). While you can target users on Twitter based on what they tweet about, something I don't believe Facebook offers yet, that is something that I would be shocked if Facebook doesn't roll it out. From my experience using both platforms, the one major targeting option Twitter offers that I'm not sure if Facebook is near being able to offer is sentiment analysis (you can target based on positive or negative feelings on a given topic). The only reason I lean towards assuming Twitter is ahead here is I know they have put resources into sentiment analysis.

Overall, the amount of targeting you can do on Facebook dwarfs Twitter, regardless of how atypical a user you are.
What does it mean for a market to be "highly irrational"? Normally the term "irrational" is applied to actors, while "efficient" refers to markets.

Are you suggesting markets are not efficient? In that case, when can we expect you to become extremely wealthy from your inefficiency-proving strategy? (Claiming the EMH is false is equivalent to claiming that such a strategy exists.)

Incidentally, when an actor behaves irrationally in an efficient market, this happens:

https://www.google.com/finance?chdnp=1&chdd=1&chds=1&chdv=0&...
To be fair, the article does not report or claim that this tool has had any effect on the site.

I guess Ars just finds it newsworthy, from a social perspective, that someone bothered to create this software.
What Aristotle can teach us about nanotechnology
You know how when the US invaded Iraq and you said "Wow, the American government is evil". And then when the US did a terrible job of handling the Hurricane Katrina disaster you said "Wow, the American government is incompetent". And then when the US bailed out well-connected wall street banks in the financial crisis you said "Wow, the American government is corrupt".

It turns out, some Americans don't want that same evil, incompetent, corrupt government controlling their healthcare.
I bet they still don't support PNG favicons. :/