skysight-inc/HackerNews huggingface dataset:
Gospel Singer Poses Nude & Writes Strip Club Song
BioShock Infinite Lighting
Perhaps "all" is an overstatement. An overhaul starting from zero may not be a very realistic or efficient answer, but it seems a little optimistic to suggest that there is nothing our financial systems do that couldn't be changed or dropped.
The naming thing is huge. Give things good names. One can also factor out some specialized code into its own method / class - but because you want to re-use it necessarily but because you want to describe what it is doing. Divide et impera.

Having to explain to another what you're doing - I found that to be great as well. It removes bugs and produces cleaner code. You don't even need another - at check-in time, for every change, you can ask yourself "what is this doing" and "why". And if the answer isn't convincing, change what you're doing.

The value of peer-review was rarely on the peer's side - the other person doesn't really know what you're doing and is unlikely to catch a bug. But the peer would ask some question so you would start thinking about it and discover a problem.

The best thing about asking somebody for advice is often to come up with a good question. If you ask the right question, it contains the answer.
Immigration reform: Integrating the skilled
They need to have your money before they can execute a trade from you, otherwise they're opening themselves up for significant fraud. If it's trade-then-send, I could sell some bitcoin, then wait a few minutes to see whether the price went up or down before I send them. If the price went up, just refuse to send the bitcoin, and execute a new sale at the higher price.

You can certainly put money in right before you execute a trade, and pull it back out right after. But that introduces significant lag, up to an hour for bitcoin, depending on how many confirmations you wait for, and several days for USD.

That said, I don't understand why people keep significant balances in these places. Keep a small amount to trade with and save the rest yourself!
Should I Learn PHP?
Why we are shifting away from software and towards content
When two of the six points don't have answers, and one of those has "I will have to write something", it's pretty clear that the talk is not 'stop using Nagios right now', but 'what do we need to replace Nagios and do it right'. It's not a talk about a tool that is ready now.
Once upon a time, back when I first installed NetSaint, the configuration was so bad that I learned OCaml to write a preprocessor to generate its configuration.[1] Nagios is the improvement!

And yeah, it's horrible.

[1] http://www.crsr.net/Software/nscc.html
I love the RT news channel but cannot comprehend what good any military action by Russia will bring.

Well done to Abby for adding her strong personal opinion, not to be outvoiced by that of the state.
> I agree on the point of frameworks. I don't like any that exist so I made my own Rails-inspired one.

Thats a joke right ? RIGHT ? PHP probably has one of the best, most mature and versatile selection of frameworks there is.
He was slightly mistaken, but Tymoshenko's incarceration was supported by Yushchenko, and their squabbling was the end of the 'Orange' revolution...
Agreed, these are the type of heroes that change the world and often go unnoticed.
Someone's never heard of unit tests.
Yeah, it was 4 rupees in 1998
> This incident is an example of the Bitcoin community's best practices "working."

It's also an example of all the best engineering practices missing.

I thought that checking the account balances and wrapping the withdrawal in a transaction was an introductory example of concurrency issues. What were they thinking, handling money while allowing negative balances?!
Looks good, but here's the practical question: Can I enter this REPL with all the libraries and models of my web framework loaded so that I can query a model through it, modify the object and save?
> The thing which Rails and DHH offer no guidance whatsoever is the separation of persistence from the domain model.

This seems to suggest you were looking for guidance or sane defaults for this. If that's not what you intended it to mean, I'm sorry for misreading it.
The first two don't involved the abuse of an actual, physical child though so I think a fairly clear depiction could be drawn between them and a photo or video of an actual act of abuse.

As to "who gets to decide which of these acts sends you to prison?" that would be our elected representatives, right? They make all sorts of decisions at our request on our behalf.
Two second mobile time? Google says it’s vital to success
Thank you, quite right. The ongoing fight by (a slowly shrinking segment of) American society to continue blatant persecution of gay people is one of our most shameful failings. And I agree, the Church (big C) is largely responsible.
If you download the pixel blender version of the kill white plugin, you can read the source. It looks pretty simple to implement; does just a little work while in the HSV color space.
Yes. He was in the process of passing legislation that doubled the fine for "lazy" employers that didn't fully check the immigration status of their employees.
It wouldn't be a secret ingredient if it was listed somewhere. :-P
Is this some sort of joke? Maybe it is intentionally down and alerting him? :)
The link to the HD version should be: http://www.austinheap.com/assets/rsaconf2014/Stephen%20Colbe...
By the way, according to the Russia-Ukraine treaty Russia does have a right to be in Crimea, and the head of state of Ukraine asked Russia for assistance, further bolstering their legal right to be in Ukraine.
I wish I could upvote this comment more than once.

Many complex systems are complex because they solve complex problems, not just because they have evolved over time from different simple conditions. You can't always (if ever) replace a complex system with a simple one. You can't escape complexity by coding around it. This is the attitude that killed Netscape and kills many Enterprise projects.
Right, I read about it all the time on Facebook and Blogspot.

Many people have concerns, but a) even most of them don't all the time, and b) as a proportion of world adult population, not many.
Sure, the United States and the European Union have no inclination to send troops to defend Ukraine, but they have economic weapons that could severely undermine Russia’s tottering economy.

No, they don't. Germany, for instance has a huge energy deficit and gets about a third of it's energy from Russia at a discounted rate primarily through the Nordstream pipeline.

The low debt load and the fact that Europe depends on it as a source of energy means that the economic ball is more in Russia's court than the EU's.

The US can block all trade between Russia and itself, and all that would do is hurt vodka sales.
Goxcoin - A proposal by Humint and the Mastercoin Foundation
http://www.youtube.com/watch?v=_T7qzufEI9U
I think this is his best speech, straight from heart.
Android Accounted for 97% of All Mobile Malware in 2013
Who in the heck is writing this stuff? Are they just hacking together crappy sites in an effort to get things running as soon as possible?

Bitcoin isn't going anywhere until the people who trade in it approach competence.
Experienced programmers refuse to take the job.

We once tried to contract this really fancy team to take over some code. They asked if we had unit tests. "No". "Then we can't do it, sorry, bye."

And I agree with them.
It really pains me that there are so many utter misunderstandings about modern PHP from people that used it years ago and have no clue about the current landscape, even in this thread.

Yes, the PHP core api is still a bit messy due to backward compatibility, but everything else it pretty awesome really. Please take a closer look if you haven't touched PHP in years, before you talk it down.
My favorite one is being unable to delete an open file - this has consequences on upgrading software that has to stop running and release its files before the upgrade starts. There are also the various ways Windows Explorer fails with very long paths. Or the subtly different ways the CMD.EXE fails on the same use case.
This is one of the weird things about puppet. The core of puppet has general types, and software-specific stuff is in modules... except for Nagios rules, which are core types. Struck me as odd that only Nagios gets this 'star' treatment in the core.

http://docs.puppetlabs.com/references/latest/type.html
Are you in San Fransisco? I live in a major city (top 10 population in us) and I'm not aware of any place I could go buy grocery, gas, or withdraw money with BTC.
The rules in the bible are hebrew purity laws, which do not apply to gentiles (as decided in Acts). The verses most often used against homosexuality are not hebrew purity law - they're from St. Paul's letters.
No more than you could with any other execution environment. Autoloaders should find your libraries if you are using the same entry point, and you can query a model as you could in any other language. It looks like people have made something like this for CakePHP: http://josediazgonzalez.com/2013/12/04/interactive-command-l...

And there are some REPLs with tab completion: https://github.com/ErikDubbelboer/php-repl
Most people inside the US don't understand the perception of the US from the outside. This is one of the reasons why Ukraine will be completely lost by the US and become a place where Russia and the EU can have a lot of common ground and realize a closer relationship.
Radio Shack will close 20% of its stores
I work in the same market as Lyst, and can say for a fact that the images variations we get from clients even from renowned fashion houses is huge. By variations I mean compression, quality, subject's clarity and the list just goes on...

A good algorithm would surely solve part of the problem, but given the imagery non-uniform patterns a great deal of resources (engineering skills + computing power) would likely be required. Given Lyst's recent VC rounds maybe they can afford that, but I surely cannot.

So I went for the poor-man option: https://gist.github.com/mvsantos/5554663

(I'm definitely bookmarking the link you suggested and also the one suggested by sjtgraham.)
Cryptocat, now on iPhone
Yes, but who would pay if you won? The corporation's assets have been stolen, and presumably there aren't enough left over to cover the shortfall (hence the closure of the site). Moreover, unless they screwed up their corporate formalities, the individual shareholders should be protected from this type of loss. Limited liability is one of the main reasons why corporations exist in the first place.
Cool, you're welcome, and good luck!
We have them in San Francisco. Apparently, they are not so great. http://www.sfgate.com/bayarea/nevius/article/It-s-time-to-ra...
It's a strawman, though. The problem isn't PHP developers per se, it seems to be a lack of awareness that dealing with money is in any different than dealing with, say, any other CRUD operation (see - Mt.Gox just casting things to floats, it's just numbers, right?.)

Just wait until people start announcing their exchanges and business written in Rails or Python, or "anything but PHP" but still turning out to have been written by webapp developers with no idea how to actually deal with currency transactions or basic security.
>>>On a busy new york street with tons of foot traffic at $.50 the machine could easily generate $5-10k/day gros

I think you're an order of magnitude too high on that estimate. If a bathroom was used for 45 seconds, cleaned for 15, and then immediately back in use every minute of the day (which is probably a crazy estimate), it would generate $30 an hour, or $720 a day.
Sure, but at MtGox, the theft was 477 millions.

http://news.yahoo.com/mtgox-opens-call-centre-500m-bitcoin-l...

That's a lot of duffle bags to haul.
People have been conditioned to think "UFO" = "Whacko". This runs throughout society .. calling something a "UFO cult" is a pretty easy and cheap way of discrediting the whole subject in the minds of the public. I can think of quite a few perfectly valid subjects that have had this treatment .. and which would also result in an upheaval of society were this veneer not smeared all over the subject.
Nothing in that article fixes the issues that make PHP unpalatable to me. They are all new features added to the current broken set. Even if they are new and shiny they don't make the rest of the language suddenly better.

Which is really kind of the problem with PHP. All of that broken stuff was allowed to be broken for so long that it's effectively impossible to fix it. All you can do is layer on more features.
What if you're trying to bash the likely competence of people who, when deciding to write a bank, decide that PHP is the best tool for the job.

To make that decision requires that you be insane, or don't know any other tools.
I would think that topic worthy of it's own blog post rather than a footnote or a distraction.
I think it's just the rush to be first on the scene and capture the perceived network advantages that arise from being first. These are MVP's.
A single data point is insufficient to draw meaningful conclusions about a person's IQ.

The positive spin on the comment is that your ability to understand is not limited, or is less limited, than the current depth of your knowledge. Knowledge can always be gained.

The negative spin would be that the manager thinks you're an idiot with no understanding of anything meaningful.
And most of those who don't like Putin are supporters of all the other parties which are much less likely to get along with the West in any capacity.
I have conducted research in exactly this. Their results would likely be much more accurate by applying Canny edge detection instead of the simpler Sobel edge detection
Pakyow 0.8: New Router, Updated View Syntax, and Smarter View Transformation
There is a great Seinfeld episode where Jerry, George, and Kramer all pretend to be interested in a home for sale so that they can use the bathroom.
That would, in all likelihood, be illegal. In a lot of jurisdictions it'd be kidnapping.
Public infrastructure needs to be financed somehow and it would make most sense to do so based on usage of them. Energy tax, vehicle purchase tax or tolls are the three main options to do that as far as I can see.

Combustion taxes makes sense if it's only used by transportation means, but that is not the case of electric energy. You could tax at the plug/socket level, but that's probably something that will be easy to tamper with.

There could always be something fancy such as remotely tracking the vehicles, but that will open a can of privacy worms.

The only viable option is to do tolls. Not necessarily representative of actual use, but a good enough approximation of use.
Yeah, but that reason is nonsense. The Sobel operator uses convolution to approximate the magnitude of the gradient. It doesn't "look for" anything.

And since it's the magnitude of the gradient that Sobel finds, Sobel(Invert(img)) is mathematically equivalent to Sobel(img). The invert step is essentially an expensive noop.
That said, I don't understand why people keep significant balances in these places. Keep a small amount to trade with and save the rest yourself!

Yeah, that's what I mean.

You can certainly put money in right before you execute a trade, and pull it back out right after. But that introduces significant lag, up to an hour for bitcoin, depending on how many confirmations you wait for, and several days for USD.

Thanks, that's definitely something to consider. I can see it being very inconvenient, though I still agree that the idea of keeping a balance larger than your trade volume in a service like this is hard to fathom.
It's good that these guys appear to be very transparent and accept full responsibility for their error.

But, this is an outlandishly amateurish oversight. Race conditions and atomicity where balance-affecting transactions are concerned would seem to be one of the first considerations that pops to mind. That, along with sanity checks just before final execution of the transaction.

It's clear that there are a lot of people building exchanges with little to no experience in the financial/transactional software field. But, I am beginning to wonder how much experience they have building any software.
Gnutls goto fail
The missing link for bitcoin is coverage under something like the Uniform Commercial Code- a system that specifies general principles governing transactions and the framework for their completion and resolution of conflicting claims. Caveat emptor is not a foundation for a currency.In practice bitcoin's very anonymity makes it a more attractive target for theft- bitcoins come pre-fenced. As Patio points out, the bitcoin community is inclined to build magic bullet software that assumes theft can be prevented and policies whereby the victims of theft are shit out of luck as in this case and Mt Gox. For an ordinary good citizen bitcoin is a bet that the people holding the funds are not only honest but the smartest people in the world or at least smarter than all the criminals.

Saying that a company has the most secure bitcoin system in the industry, even after proof it was the case, doesn't change the fundamental design tradeoff in bitcoin. Bitcoin offers anonymous possession in exchange for risk. Because the risk is high relative to normal forms of commercial exchange, bitcoin attracts rational actors for whom the rewards outweigh the risks and the distribution curve of interested parties has a tail that skews criminal.

The missing link for bitcoin is coverage under something like the Uniform Commercial Code- a system that specifies general principles governing transactions and the framework for their completion and resolution of conflicting claims. Caveat emptor is not a solid foundation for a banking system..
Ask HN: How does your company handle internationalization?
Does your company?
A) Have teams responsible to internationalize their own stack/product.
B) Have a team called "International" that goes around to other stacks/products and internationalizes the product for them.
C) Other?
The whole point of stricter examinations is to avoid 1-star drivers to begin with.
What's pathetic is the west supporting a coup d'État and passing it off as democratic...
Exactly! I know how to fire a gun, tie a tourniquet, extinguish a structure fire, and set aside an emergency fund. I also know that paying someone else to relieve me of having to worry about these things is money well spent. You call it regulation, I call it peace of mind.
Here take a billion.
I haven't pushed. That is the benefit/detriment to coding on the train: no internet. Right now the streak is still valuable and not oppressive. As long as I'm taking the train to work and have a working laptop it's not hard to keep up, perhaps if things change I'll consider ending it.

I think there is some obligation, but usually I only feel that about the book or project, not the streak. I did about a month solid of SICP, and last week started to feel a little burnt out, so I started a "for fun" project to help take the edge off. I'll do that to "recharge" until I'm feeling more energy to tackle the next minor section of SICP.
Salt Codename Hydrogen Release Notes
I'm in Boston and there's a handful of places I can use BTC. But not many. The ATM is at South Station. I could do a bit with them when I lived in NYC over the summer too.
Facebook buying Titan Aerospace for about $60 million
Penzhin Tidal Power Plant Project
I'm against Code Climate because it promulgates nonsensical metrics in ways that are actively harmful to good engineering. Just like Bob Martin and his concept of “clean code”. All of these things are at best sigil markers. They aren't solutions, and they can't provide any answers.

I don't have a max length to a method, because I'm not a prescriptivist. What I have is a point where I stop understanding what a method is doing, or I can't explain it cleanly. Sometimes I keep the method as long, but better comment it. Sometimes I factor it out. The point at which I do so varies based on the code, time, and many other factors.

I've worked on a C++ codebase that had a 3,000+ line function that was nearly impossible to factor out because of a non-trivial amount of state that would have either:

a. required passing much of that state as parameters to the factored out functions/methods (even if you put it in a wrapper object/struct); or

b. extracting all of the (working) behaviour into one or more objects whose sole purpose is to encapsulate the behaviour of this function.

I absolutely hated working on that function, but it was essentially the main loop of the program. You could step through those 3k lines and get a fairly decent feel for what the program was going to do, when, and how often it would repeat. The hardest part was where people before had extracted code out…that was called exactly once. We tried three times to extract the code—and failed three times, ending up leaving the code the way it was because our extractions were more complex and less understandable than the existing crappy code.

My point is that there's no such thing as a reasonable max for the majority of use cases. It depends on what you're doing and in what code.
Drunk on Vanity Metrics (& my decision to get sober)
Brief Daily. The most important news of the day.
شاهد بالصور: البطلة زهرة لاري أول إماراتية تشارك في الأولمبياد الشتوي
"The U. S. Air Force has just given us a contract to take E.T. back home."

"We already have the means to travel among the stars, but these technologies are locked up in black projects and it would take an act of God to ever get them out to benefit humanity… ...anything you can imagine we already know how to do."

"We have things at Area 51 that you and the best minds in the world won't even be able to conceive that we have for 30 or 40 years, and won't be made public for another 50."

--Ben Rich, former head of Lockheed Martin Skunkworks

"We have things in the Nevada desert that are alien to your way of thinking far beyond anything you see on Star Trek."
I've been using a Bathroom Finder app on my in-car tablet. It only maps public restrooms but it's very helpful and has reviews. It seems like there would be a lot more public restrooms than private ones available for "rent".
Happens all the time http://en.wikipedia.org/wiki/2012%E2%80%9313_Cypriot_financi...
Meetup’s Multi-Day Outage Was Due To A Newer, More Powerful Type Of DDoS Attack
Animal protein-rich diets could be as harmful to health as smoking
Twister : A P2P Twitter Alternative with a twist
China’s Largest Exchange, BTC China, Now Supports Litecoin!
Yeah, the walled gardens are hellish. Makes it very hard to manage things... sadly, it is getting worse not better.
"not looking for negative balances."
If this caused the problem here, this shows that this is just the tip of the iceberg.
Someone should start an open source project for BTC Exchange's back-end.
That's precisely what I mean by it being a game of semantics. Any computer/science-related degree gets you through the border. Anecdotally, I've heard numerous friends claim that the distinction at the border was their title being changed from "Developer" to "Engineer". Mind you, they all had various computer-related degrees but the scenarios were different depending on whether their degree was titled "Computer Engineering" or "Computer Science".
Twitter employees to dine in vintage log cabins
HUVr Board
How to increase productivity from your top employees
She also paid $600 for January on a nonObama plan and was just issued a refund of $500 once she switched to an Obama plan. Sounds like you choose the wrong plan and network.