skysight-inc/HackerNews huggingface dataset:
I bought a Brother HL-5140 back in 2004 which cost me around GBP200.00 including taxes. It's still going strong with 7000 pages printed so far. I managed to squeeze out just under 5k pages on the original toner cartridge with some judicious horizontal shaking despite the lifespan stated in the manual as ~3500 pages.

I've only replaced the toner cartridge once (cost: GBP ~50.00) and the "new" one still has another 2500-3000 impressions left.

The diagnostics report that drum is still good for another 13k pages, the fuser for 73k pages and the and the "PF KIT 1" (I think that's the paper lift foot) for 43k pages.

I would definitely go back and buy another HL series of similar capability, they're damn fine work horses.
Speaking as someone with no Android or security background, this was an exceedingly well-written article. Big thumbs-up to saurik.
A combination, I suppose. First optimize the code so that the number of instructions are kept to a minimum and then use a minifier tool to shorten variable names and such. http://compressorrater.thruhere.net/
You mean the Haskell code stays equally incorrect in a concurrent environment...
Perseid Fireballs
The syntax in Haskell for dealing with side effects is tedious/verbose by design.

In the entire history of computer programming, I’m not sure language designers taking that kind of attitude has ever worked.

Good Haskell programs are pure; side effects are usually isolated in a "shell"

The real world is stateful, and many useful programming techniques rely on mutable state. Indeed, programs with no externally observable effect would be rather uninteresting, since by definition they can’t do anything useful!

Please don’t misunderstand my position here. I’m strongly in favour of programming languages providing tools to control that state and avoid unexpected effects (or combinations of effects, or ordering of effects). This would prevent many common classes of programmer error, surely improving the quality of production software significantly.

However, I don’t accept that trying to completely separate the two worlds is necessarily the best way to achieve that benefit. I think adopting the hard line you describe is one of the reasons that functional programming languages haven’t taken off in the industry as a whole, yet several useful tools found in those languages have been widely adopted in recent years.
Did Frank Lloyd Wright create America's greatest office?
Thanks, barce. I'm curious - by "using time communiting to learn" does that imply that a podcast would be the right form factor?
It seems you've missed the point. The article is still arrogant and pretentious but also sarcastic. The writer sees himself as a Passive Income Hacker.
A fellow HN'er posted a collection of all the best tutorials and docs into one cohesive training programme.

It's an excellent resource for those of us trying get our heads around Angular's woeful documentation:

Website:
http://www.thinkster.io/

HN Submission:
https://news.ycombinator.com/item?id=6072383
The Barnaby Jack HacKid Fund
What about two-factor auth?
"protection from SQL injection attacks"

In the module he's using, there is a postgres_escape function.. so there's no reason he couldn't have used it.

http://labs.frickle.com/nginx_ngx_postgres/README
I had only met him in person once, but he was clearly a great human being. I'll remember the drinks we shared.
Because PNG-rendering REST services wouldn't make it to the front page of HN
Django 1.6: The best new features & the important changes
The fiber we're talking about has an outer diameter of 250µm (standard single mode) so it packs pretty densely; we can actually do a bit better using some more exotic (expensive) fibers and some of our proprietary tricks to packing a bit more in there, but the size I gave is pretty typical. The largest ones we have made fit in a 5U rack enclosure, but I can't remember the length we had on those offhand and some of the internal space was used for amplifiers.
'Worse than AIDS' - sex 'superbug' discovered in Japan
Sorry I didn't make that clearer -- "whose passive income businesses are based on" means "who operate a subset of passive income businesses that are based on" (no longer possible to edit).

FWIW, I've read Ferris' book, and agree with a lot of what he says. I also realize that passive income can be generated by products that deliver real value. Some are mentioned on this thread. But the movement has also spawned a lot of low-value products pumped up by SEO or spammy tactics. It doesn't help the image of passive income.
Ouch ;)

On a less painful note, these types of scripts that do so much with so little are exactly the type of problem that interest me. I don't even care that I was beaten; I just love the fact that something like this exists.

Just goes to show how algorithmic chess can be. And code, no matter how "primitive" will trump neurons when it comes to algorithms.
What about people with dual nationality? AFAIK a country can only make you surrender the passport they have issued since the other passports you may possess are property of the governments that issued them.
I thought the same thing.. page could use some whitespace at the end or a footer.
I started saving all my page views in a postgresql database. Schema is pretty simple.

I have the following tables:

sessions
session_id (uuid type)
created_at

page_views
page_view_id
session_id
created_at
site_id
path
query_string (hstore)
user_agent
referral_url
ip_address
user_id
http_method (get, post, etc)
details (hstore, used to tag page views/actions)

This allows me to simply query all my page views against data in my live database. I can see the path a user took to place an order. I can easily integrate a/b tests. If someone uses a coupon on the site and we want to see if they later came back and viewed/purchased more, we can easily write a sql query to figure that out. We can simply figure out lifetime customer value, even if not logged in. If we're getting a large amount of traffic from a certain affiliate, we can alert our staff.

It's really awesome to be able to have your data in the same place. Having analytics data spread out to GA made it difficult to match that data against ours. If we need to scale out to multi-terabytes, postgres_fdw will make querying against the analytical database simple.

Since we're also tracking affiliate purchases to pay out commissions, I also have another table that that stores additional information about a page view if they came from an affiliate site (click id, the affiliate network, etc).

Here's the plpgsql function I use for saving the sessions and page views: https://gist.github.com/joevandyk/f63523cdd1a3aa75d0ec
Goodbye 4K: $17,000 12K gaming PC pushes 1.5 billion pixels per second
That isn't a risk for relay nodes, because you would be relaying encrypted traffic. It would just be noise.

For exit nodes, the issue of legal liability for routing other's traffic is less clear. You'd basically run the same risks as providing an open wireless network: https://openwireless.org/myths-legal
Can you explain what you feel is hard about IO in Haskell that isn't hard in other languages? Sure, you need to get used to the different way of working with IO (remembering to use <- instead let, calling return to wrap the result back into the IO type, etc.), but after some time, it's pretty much automatic.
I've had the opposite experience. Everyone I know who does web development is frustrated by the poor quality of work they produce, and how hard it is to maintain the projects they've done. Re-writing a project from scratch every ~5 years is essentially normal development practice. I learned haskell just for web development. I am not smarter as a result, I just have a better tool now that helps me produce better results. My wife then decided to learn haskell for web development too. Neither of us have a background in computer science, or even a degree at all. We learned haskell for purely practical reasons, and we keep using it for those purely practical reasons.
Sellbox – Sell your files from Dropbox and Google Drive with Paypal
That data is easy to sample if necessary, whereas the crash data is not.
Agreed. Ruby used to be my go-to scripting language but I've switched over to Haskell because it's much easier to reason about.
Maybe I should have just said that I think GPU support would be a great addition.

Distributed memory and GPUs are not mutually exclusive. Multi-GPU clusters are extremely common. In fact the latest devices (e.g. Tesla K10) have multiple GPU processors packaged in a single card, so it is necessary for applications to target multiple GPUs. There is explicit support for distributed-memory applications in GPUs through the "GPUDirect" technology that allows peer-to-peer DMA and RDMA transfers between GPUs.

Given that reports of 30-50x GPU performance gains (versus CPUs) are common, the issue is important because it means solving a problem with (say) $10,000 of kit instead of $500,000.
Custom variables don't let you consolidate on users though? In the visitor count, for instance, I don't think there's a way to tell GA to use a custom var to distinguish between visitors.
Update: "We lost the primary database for the Heroku API. Our engineers are failing over to a replacement."

https://status.heroku.com/incidents/543
What are you talking about? PIH is the Myles surrogate in that conversation. He's making fun of Startup Guy for thinking that anyone who does what he (Myles) is doing is "unethical or lazy."
This is the normal procedure in civil litigation.
Tile Raises $2.6M, Surpasses Lockitron As Most Successful Selfstarter Campaign
To clarify, this incident did not impact running applications. It only affected the ability to make changes to running apps. AKA, this incident did not affect application uptime.

Feel free to view Heroku's 12-month historical uptime data here: https://status.heroku.com/uptime
Hope this will help you
http://blog.cloudflare.com/pushing-nginx-to-its-limit-with-l...

This helped me setting up nginx/lua/redis setup on Ubuntu
https://github.com/ehazlett/nginx-rt-log/blob/master/readme....
I think the real problem with the logic is that it equates "reasoning about unsigned logic is hard" with "unsigned logic isn't required". Sadly it is. There are solutions that can only be expressed cleanly in unsigned logic, and others that can only be done signed.

Now, clearly there are more problems out there that need a sign bit and comparison operators that honor it than there are problems that don't. So Java made the "right" choice about which one to eject.

Still, hard code remains hard code, and there is no free lunch. Hard code is going to have bugs, and designing your language to make hard code harder (in the interest of making easy code easy) is probably a bad tradeoff in hindsight.
It has nothing to do with race, and everything to do with the concern of having a company that there are concerns might be influenced by the government of a dictatorship that are renowned for using net censorship to maintain its political control, potentially be in control of a network filter that most UK network traffic will end up going through.

I don't see anything in the article that complains about Huawei because it is Chinese in itself, as opposed to because of concerns there might be political connections at play, or the generic issue of having such filtering under control of a commercial actor in general.
Can this be done with redis, or memcache?
Mostly free Visual Programming Languages for desktop,web and mobile
Given that the rest of the planet is more worries about American spying, I wonder if Apple may want to rethink their "made in California" slogan.
The argument is actually whether it's "testimony".

Saying "turn over the physical object used to commit crime" makes turning it over testimonial! But saying "turn over the rifle with the serial number 98980843" is not testimony.
A normal, non-exit relay node will not be identified as "trafficking in illegal bits" by any sane police force. A normal relay will trade from A to B in only encrypted traffic and will not touch websites on the behalf of users, only other relays.

It is rare that an exit node is raided but there has been no known occurrence in which a normal relay was raided.. nor would it make any sense for there to be. Many people run non-exit relays as they are uncomfortable with the risk of exiting for the Tor network, perhaps you should be one of them.
Yes, and others. I believe Nuance's CEO, Paul Ricci, has sued at least eight companies for alleged patent infringements over the past ten years.
In Russia, it's actually super important since foreigners need to register at the local police station with their passport in any town/city where they state more than a few days. Not registering within the allotted time period, based on dates of transportation tickets like a train ticket or flight stub, makes you the target of police extortion.

Russia is definitely one of those "Ihre papiere bitte" countries.
Myles identifies with Personal Income Hacker there, not the Startup Guy. He's making fun of that attitude.
Elemental is available via PETSc (http://mcs.anl.gov/petsc), which is part of ACTS. We might be able to talk ACTS into giving Jack a session at the tutorial session next year. (Disclaimer: I'm a PETSc developer and helped with the Elemental interface.)
good point on misalignment...
The title of this story, "Apps are down" is a complete mischaracterization of this incident. "Heroku Dashboard/API" would be more appropriate.

Nobody's app stopped running because of this.

Edit: Thanks for correcting it!
I believe Virgin offers ADSL outside of the coverage of their cable network, but then it is over BTs copper, just as all the other ADSL providers.
>I don't know what mature means, but they are not used by high-profile applications.

Does that mean that if my website becomes "high-profile" next month haskell will have suddenly become a better language than it is now, without the language changing at all?
Yeah, we do that kind of stuff as well. At least you know what your data means. But when you start getting millions of hits a day, you won't necessarily want to spend some time scaling your system... In that case leaving it to the pros and focusing instead on your product may prove the most sensible move.
>I for one support "made in USA" and buy that if I can

I'd never understood this kind of nationalism. I don't care if the items I purchase happen to have been made in the country I happen to live. I want to buy the product that best suits my needs regardless of where it was manufactured.

Sure, if an American product happens to have a higher quality and I'm looking for that, then I can choose to buy it. In that case you can abstract away the manufacturing country, so "made in country X" shouldn't be a factor in any case.

If anything, Western people should buy products from poor countries. It's the best aid they can get.
I built and run http://theclunkerjunker.com. It started as an affiliate site I started on a whim one night (Or a few hours, more accurately). Within a year it was pulling in $30k/month with almost no expenses. Eventually the affiliate program fell apart and I completely re-wrote it and turned it into a legit service. I don't quite make $30k a month anymore, and it's noticeably more work now, but it's still profitable and I can work at my own pace.
Thanks to you and arbuge I understand this now. irishcoffee added no alternative explanation as to how my comment's source was misinformation. I figured I should give irishcoffee a chance to explain his/her reason for calling it misinformation when the title of the site itself was called answers.usa.gov.
For example, IIRC US national IDs (passport and green card) are not a form of valid ID for the sake of notarization services in the State of California. However the IDs issued by other states are.
How do you come to that conclusion? I am all about the product, which is why it isn't open source.
I guess a judge can impose whatever conditions they want on your bail. "Surrender all the passports you have, or if you don't want to do that you can go sit in jail."
The Pros and Cons of Iterative Development
How Kaley Cuoco Is Crushing Expedia
Binding or not, the US would be in a very bad spot diplomatically if they were to break their word on such a promise.
What's The Difference Between Static Analysis of C and C++ Versus Java Programs
PDFs are fairly easy to read on computers, especially high res iPads.
Although, they would probably prefer having computers capable of playing chess sign up than humans that can't.
I have to disagree with this post. Passive Income Hackers are usually hustlers with more street smarts than technical skills. Startup Hackers are the opposite.
Makes sense.

Another thought: Barnaby Jack was one of the top speakers and was to speak on a very controversial subject. I would guess that out of the 5000 speeches that were presented in your scenario only a few of them, maybe 2%, would contain information controversial enough that foul play would appear as a reasonable scenario to an outside observer (and this is being generous).

Let F = foul play occurred in order to disrupt a conference,
D = death of speaker one month before conference

Let P(D) = (.02 deaths per year for 25-35 y.o) / (12 months in a year) = 0.0017
Let P(F|D) = .001 (assuming 1 in 1000 chance foul play was involved given a death of a speaker at a conference)
P(F) = P(F|^D) * P(^D) + P(F|D) * P(D)
= 0 * 0.98 + 0.001 * .02
= 0.00002
Let P(D|F) = 1 (chance of death if foul play is involved, assumed 100%)

So Bayes theorem gives us:

P(F|D) = P(D|F)*P(F)/P(D)
= 1 * 0.00002 / 0.0017
= 0.018 (chance of foul play for a single speech given the speaker died 1 month before)

Let P(C) = 0.02 (probability of a controversial speech)
P(D) = .0017 (from above)

Let P(C&D|F) = .5 (assuming there is a 50% chance the speech was controversial given foul play did occur, and death always occurs from foul play)
P(C&D) = .02 * 0.0017 = 0.000034
P(F) = 0.00002 (from above)

P(F|C&D) = P(C&D|F) * P(F) / P(C&D)
= 0.5 * 0.00002 / .000034
= around a 30% foul play was involved in Barnaby Jack's death

There are a lot of assumptions here that could adjust the final figure up or down, but if I did my math right, foul play does seem a reasonable scenario, (but not a foregone conclusion).

edit: removed line "P(F|D) = 0.00058 (from above)" as pointed out by user 0003. End result didn't change, though.
Thanks a lot for posting these, David.
The Importance of Heart
If you were any good at jumping to conclusions, you wouldn't have to ask!
Contrary to the hype, I think plenty of useful code does still run in a single-threaded environment, so I find your argument unconvincing.

That said, even in an environment with concurrency, I’m not advocating uncontrolled state changes as typified by current imperative programming languages. I’m arguing that we could benefit from the robust theory underlying languages like Haskell, but used more transparently so the developer only has to worry about it when it matters.

For example, you could be running a second thread in parallel with the one we’re looking at here, but if its effects are constrained to replying to a network-supplied request for the current time and reading the system’s clock, it doesn’t matter at all that our interactive adder is running at the same time. These effects affect different, independent resources and will never interact, so there is no benefit to cluttering either code path with extra details.

What I’d really like to see is a language that could understand those resources and how they are affected by each thread in terms of reads and updates. I want it to stop me from modifying the code later so that it accidentally becomes vulnerable to interactions that I’m not fully controlling. I want it to provide me with tools to specify how potential interactions should be handled, in a way that is systematic and robust but otherwise as simple as possible, and that can be applied at whatever level of my design makes the most sense.

Research into type and effect systems is addressing challenges like these, but I’m hoping that when the dust settles, the final version will look a lot more like Python with a few strategically placed annotations than Haskell where these implementation details are in your face all the time (even if most of the time you don’t actually need to worry about them).
It affected my ability to run commands on production applications. The fact that the status was degraded only for 'development' was, in my mind, disingenuous. Production should should have been orange, not green.
They are only paranoid because they know they have introduced backdoors into products their countries produce. Do you really think the US/UK/AUS has not introduced something into a Cisco product or some other hardware manufacturer in their respective country.

Just look at what has come to light with the PRISM program. They already have access to the major software companies what makes people think they havent done some secret FISA order to Dell/Cisco/HP/Apple etc.

edit: typo
you missed obnoxious I'd add obnoxious in there too.
Man survives James Bond-style attack by car rigged with remote control guns
If they weren't buying off the shelf computers to begin with this announcement wouldn't have been required.
No, low price bad developers are bad but this assumption says all low price developers are bad. There is a difference!
No one is going to argue that this is cheaper than doing your laundry at home. The simple fact is: people pay a premium for convenience. You should be comparing Prim's pricing with other laundry delivery services not the cost of doing laundry at home. Many laundromats deliver for free and charge between $1-1.25 per pound. If you figure that 20 lbs of laundry fits into a standard laundry bag, then Prim's per pound rate is $1.25; on par with many laundromats offering "free" delivery and pick up. Now, assuming you send your laundry out already, and Prim is offering a superior service (better customer service, an easy to manage online UI, etc) than other laundromats, selecting them as your provider is a no brainer.

*Disclaimer: I've been working on the same model as Prim for a few months and will be launching in a major city in the next few months. The economics are there, even on a small scale. Scaling up is where things get really interesting.
It's kind of depressing to see that the current mindset seems to be to quit as soon as it gets a little difficult.

I have gotten used to taking pride in the fact that I deliver only slightly shitty work under very shitty circumstances.
My first reaction was to click on the HuffPo link to triumphantly find where they linked to a primary source that they excerpted heavily from...but in this case, HuffPo was the primary source:

> In a statement to The Huffington Post, Netflix categorically denied that it intentionally cuts off portions of the picture for movies it streams, claiming that any altered aspect ratio is a mistake.

> "We want to offer the best picture and provide the original aspect ratio of any title on Netflix," Netflix spokesman Joris Evers said in an email. "However, unfortunately our quality controls sometimes fail and we end up offering the wrong version of a title. When we discover this error, we replace that title as soon as possible."

I'll be the first to say...huhh? I thought this was completely a situation of what arrangements Netflix had with the studios (perhaps to get a cheaper rate on deals)...but it turns out it was just a mistake that would've gone on if people hadn't made a good sized ruckus? Good for the Internet.
>The Python code has the added advantage of actually being correct, assuming that the intended behaviour really is to add up the total of all entered numbers over time as the output suggests.

What output? I don't understand why you wrote python code that does something different than the haskell example does, and then decided that makes the haskell code wrong.
The title is both linkbait and inaccurate.