skysight-inc/HackerNews huggingface dataset:
Thanks for this. Recently I've been getting frustrated by some code. Your message helped me sort it out :-)

Interestingly, when I was a child I saw some artists making chalk drawings on the side walk outside of a church. It started raining, slowly ruining the drawings. The artists didn't budge, but kept on drawing until they were finished. They didn't care about the drawing (the thing), only the drawing (the action). Since then I've tried to live my life that way, but sometimes it is hard to remember.
So the alternative is to mock out every database call or use a full database to run the tests.
Using an in-memory database is convenient, keeps your tests portable and most importantly it helps catch a lot of bugs that might of been missed with mocking.
It might not be as good as using the real DB, but its better nothing.
IMO the most natural interpretation of "random" with no qualifiers is the one that gives you 1/3. Pick a point, pick another point, a third of the time the second point in within the far arc of the triangle.

I'm not sure the ninja method gives you what I'd call a representative sample of possible chords. Looks like he only cuts vertically, so he can never give you a skew-slice.

Similar with the dragon.
You could of course read the source (although it's likely very few people do), but how do you assure that the code you download and install from the Firefox Add-On store is the same as the code that you read?

As to it being computer operation 101, not to run code you don't trust, how do you establish the trustworthiness of all the pieces of code that run on your computer? there's far too much for anyone to audit by themselves and there is no good way of assessing the security or intent of most of the organisations that you get code from.
The man who plans to be ringmaster of a drone circus
Dimes Card, an app that wants to gamify your spending
Reinventing Performance Management
True, most of the superstars are "architects" who can both come up with excellent technical plans and then socialize/communicate them. I have a had a few "put on head phones and pump out 5 developers worth of excellent code" types as well.
Some comments on the arguments:

(1) SQLite did never claim to be as "complete" as other databases -- it is and will be a "lightweight" database.

(2) Everybody with marginal knowledge of different databases should know, that using different databases always puts you on risk and needs extra testing. You would also not recommend to develop your application on Linux, use a crosscompiler and ship the product on Windows untested. And with that said, most of the arguments can be deleted.

(3) When you are using an ORM, most of the arguments are obsolete, too.
> It's not a coincidence that the startup scene is nearly non-existent where unions have a strong presence (France, Sweden, Denmark, Norway).

FYI, there is a very strong startup scene in Sweden. I can't speak for the other countries, but the part about Sweden is incorrect. You might have heard about Skype, Spotify, Minecraft, iZettle... :)
What's the government's rationale here? How can you have market competition if they ban competition?
> I imagine that deaths from starvation and disease would rival or exceed immediate death ...

This is the case for nearly every war ever fought.
For the lottery, yes. I believe because the tickets themselves are taxed you aren't taxed when you win.

I believe the same is true of gambling winnings (The reasoning being that you aren't given tax refunds when you lose, so it's unfair to tax when you win)

Prizes that you haven't payed for entry might be different.
Can someone explain why the Python version is lazy? I don't understand where the lazy generator appears.
In-the-wild attack exploits unpatched OS X zero-day vulnerability
Awesome work and a great read!
I wrote my own solution[0] in emacs-lisp.
If you have a recent version of emacs you can use it to run scripts via `emacs --script myscript.el`.

It's simple, it just installs some packages and copy dotfiles where they have to be but I had fun working on it.

[0] https://github.com/dgellow/home-bootstrapping
you could get quite close just from triangulation
Your HR Team Needs to See Slack's Defiant Take on 'Values'
Thanks for the coaching offer, its really nice of you! However, you could consider writing a set of ramping up tutorials on using vim/spf13 and publish them somwhere, so that more than one person at a time could use your hard work.
Wigwamm | Back-end Dev | London, UK – Full Time – ONSITE
We're building the best property finding app in the world, which means building the best property database in the world.

We have track record of building beautiful products [0]. We're hiring for a back-end dev to turbo charge this new app and help people find property properly [1].

Market-rate salary, freedom to be creative, no hassle work environment.

rayhan@wigwamm.com

[0] http://wgmm.tumblr.com/

[1] https://www.dropbox.com/s/fn8wrfml1f5vbzs/wigwamm_property_a...
One point, please?
Want to confirm my identity on keybase.io. Anyone wanna give me a point so that I can use the API? :)
I am starting to see a trend of GUI being structure-less / hierarchy-less. A prime example is amazon's Music App for windows. It moves from screen to screen with no apparent logic, with some screens (like the download manager tab) appearing sometimes but with no obvious way to get back to it if we hide it. Same thing for the itunes app which doesn't show on a screen how we got to it. Both seem to be inspired from the web, except that the web pretty much always has a menu at the top which gives a good idea of where we are.

The Windows 10 UI also seems to follow this logic and seems to have ditched the idea to show any apparent hierarchy in the sub menus of the control panels. Particularly in full screen mode.

I can't tell if it is because I am used to deal with GUIs that have a clear hierarchy that this design upsets me, or if it is simply because it is badly designed. I guess the acid test is whether a kid can find his way comfortably.
How I gave up alternating current
Facebook's shady tricks for its anti-netneutrality Internet.org campaign
The the discussion of the paper at the tor project or ars technica is much more informative for the HN crowd; if for no other reason than the simple fact that they include a link to the paper:

Paper: http://people.csail.mit.edu/devadas/pubs/circuit_finger.pdf

TorProject: https://blog.torproject.org/blog/technical-summary-usenix-fi...

Ars Technica: http://arstechnica.com/security/2015/07/new-attack-on-tor-ca...
> While Yahoo acknowledged the attack, the company said that it was not nearly as big as Malwarebytes had portrayed it to be.

Prove it, give us the numbers

> “The majority of attacks we are seeing are exploiting software installations that are not up-to-date on the latest security updates,” said Wiebke Lips, a spokeswoman for Adobe.

Then your plugin should stop working by itself when a new version is available, that's how you force users to update if you are a responsible vendor. But of course you don't do that.

I like Flash as a creative tool, but clearly people should stop using it on the web,and browsers should ban it like they banned java on the web. It's just too dangerous and vendors often wash their hands off any consequences. Hopefully the flash IDE can work with webassembly and give up the plugin. If Adobe doesn't do that, someone else will and Flash will be buried for good.
I assume you don't have a spare tire in that case. Or jumper cables?
It looks like inline performs better on firefox and not on chrome - I just made a bunch of attempts both ways, and I'm seeing cached sideband as significantly better on Chrome, and only roughly equal on firefox.

I was not expecting to see such a difference between the two browsers, but I'm not familiar enough with firefox to guess what's causing it :-\
I tend to abstract away my queries using database views. This way the query in application becomes very simple (select * from view where $simplepredicate).

In my test database (sqllite,hsqldb,derby,...) i create actual tables containing test data with the same definition as the views.

This allows me to have rather complex queries that are database specific and still have fast running database queries.

The views themselves i test separately. They are also easier to fix in production than code releases, and can also be replaced by materialized views if necessary.

Inserts/updates are typically simple too.
Big Learnings from Our QA to Dev Transition
This is a good point. Maybe come back and defend them once they've actually made good on the refunds.
" The art of browsing and the serendipity of finding unconnected books are hard to emulate in the virtual world. "

I am not so sure about this. I always felt internet made this experience seamless and super convenient. Also, the higher confidence(with more data) with which I buy a book has decreased the regret value in case it turned out to be not so good.

Of course, if their was a highly interactive bookstore which had best of both the worlds, I would always prefer it over the virtual one. Maybe someone should focus on making those.
Hackers Can Seize Control of Electric Skateboards and Toss Riders
Can we all go through and s/SQLLite/SQLite? The inconsistency in the article and the comments is overwhelming.
LessWrong against scientific rationality
Cyber attack: How easy is it to take out a smart city? – New Scientist
I can't say I agree.

Advertising is psychological manipulation and in 99% of cases all it does is create a need for something where there was none and where there need not be one.

As a society the West is driven by an obscene need for perpetual and ever-increasing consumption and advertising is primarily responsible for this.

It's a psychological attack on millions, even billions of people that uses their fears, their neuroses and their insecurities against them to generate profits.

They say advertising affects everying whether they know it or not and I do agree with this. The simple act of being exposed to say a Coca-Cola advert is enough to put that brand in your mind.

Here's the kicker though; for many people this is having the opposite effect as intended. I see an advert, for pretty much anything and all it does it make me want to avoid that company's products.

Anything from obnoxious internet ads to cringe-worthy TV ads full of happy care-free dancing actors singing headache inducing jingles. I'll avoid the products they advertise out of pure annoyance and spite.

It seems like more and more people are starting to react this way to advertising and it's a good thing.
I wonder if this could, in any way, be covered under bait and switch laws. Yes, I know people are getting their money back. I'm just thinking to help prevent other people on kickstarter from trying to switch up their product midway.
Can+Customers+Find+You?+Check+Now+For+Free
Replaying IIS request logs using Apache JMeter to simulate real world users
It's controversial:

https://en.wikipedia.org/wiki/Fixed_book_price_agreement#Ass...

Some people think it improves availability of less popular books.
AtomPair – Pair-programming plugin for Atom, now with multi-tab syncing
What did they do with the things they didn't claim? Just seems a shame to have let the unclaimed prizes go to waste.
That's the one :)
Location: Gurgaon (India)

Remote: Yes

Willing to relocate: Yes

Technologies: Python, Django, Flask, AngularJs, Bootstrap, Nodejs, Jquery, HTML, CSS, Apache Spark

Resume: https://in.linkedin.com/pub/savinay-narendra/17/2b8/984

Email: savinay.90@gmail.com
> Trying to start them off with a language like Java or C# would be a terrible idea

I'm not sure how you got the idea that I argued for Java or C#. I only mentioned them to rule out the argument that being widely used is a necessary or sufficient quality when determining what language you should teach to a beginner.

In the same vein I think we can also agree that Pascal is a horrible choice although it is still frequently used as an introduction to programming.
Comics recommendation demo
The comments here are full of people bucking against this advice. I've worked at TWO companies now where people said NO we want to use SQLIte in dev. Both switched in under a year despite fierce internal opposition. Everyone had changed their tune once they hit growth in users and complexity. Why? Because being ideologically right is not as nice as being sure you're writing code that works.

The fact is if you have a serious site there's a good chance SOME specific feature will start looking appealing ( maybe array values, JSON , window functions, a pg extension...). These features are written because people use them, we aren't all writing dead simple CRUD apps. Or you your ORM will interact with one slightly differently than the other. I don't expect to convince any of you doubters, but the first time you get a bug in prod that slipped through the testing process but really could have been caught in dev, you'll ask yourself why you weren't using pg there too.

There's no sane reason to complicate your life by running two databases unless you either have a dead simple app, or are one of the jabbering idealists I see on here. Productive programmers simplify the problem and minimize their tech stacks.
Star Trek: but instead of normal, it's with philosophers
That was the point, you want a certain kind of new, not running around in circles at high speed.
Why link to a paywalled article? I'm not going to purchase a subscription.
http://googler700.blogspot.com/2015/07/list-of-java-projects...
If I see one more "considered harmful" post/presentation I'm gonna lose my sh1t. and no matter if the author is Alan Kay, Dijkstra or Wirth.

maybe I should do a "Using Cosidered Harmful, considered harmful"

EDIT: seems somebody already beat me to it http://meyerweb.com/eric/comment/chech.html
Apparently down right now. So what was it about?
Also see the extensive discussion from earlier:

https://news.ycombinator.com/item?id=9996038
Note, the photo of the car battery shows it inside the home. This is not a good idea. Charging of lead-acid cells (i.e., car batteries) releases hydrogen gas, having the battery inside in an enclosed space creates a risk of fire or explosion from the very flammable hydrogen gas.
woho! thank you very much!
Within a year, this is the third out of the four bookstores I frequented as a child, that have gone out of business. Those are Bookworm CP, Landmark in Lucknow, Fact & Fiction. Only one remains, and that guy refuses to give a single rupee as discount, so I don't know how long will he last.

That's not all. Most Landmark stores are reducing in size, if not shutting down. Same is happening with Crossword.
Refunds + appropriate interest rates for such a high-risk “investment” + penalty for not upholding their end of a promise + …. I don’t see how they could afford to satisfy any morally (if not legally) reasonable demands.
An Oculus Rift use case? :)

I mostly agree with your statement... Goodreads has made me discover a lot of books.

On the other hand, there are many good books I wouldn't have read if I had the selection available over the Internet (of course, many bad ones too, but I think everyone needs to read a few of those)... it makes it very easy to stay on your comfort zone.
I don't understand the argument against this. I have had even small sites behave differently when moving between Postgres and SQLite. I <3 SQLite but it's not a golden hammer.
Has already been done.

http://meyerweb.com/eric/comment/chech.html
As an Eclipse / Aptana user, can I ask what you think is so bad about it, and what I would benefit from changing?

I see plenty of minor issues (mainly in setting up the dev environment), but for most things its good enough. I know it reasonably well, and it has plugins for Perl and SQL which is a nice benefit.
One advantage to physical books is their lack of sleep-altering screen time. The blue light from screens is supposedly bad for sleep patterns (Recent freakonomics podcast: http://freakonomics.com/2015/07/06/the-economics-of-sleep-pa... )

That being said I still am a supporter of digital technical books. The information goes out of date too quickly for a physical book to be useful. However, if you want to read Homer's The Iliad, it may be better to have a physical copy you can read before bed and retain on your shelves for easy access.
same goes for "eating your own dog food".
I don't understand the rationale of your comments. An electric only car would need a larger (heavier) battery for a longer range too, is that also wasteful in your view?.
We need technologies like these to fill the gap until we can depend solely on batteries
http://googler700.blogspot.com/2015/03/operating-system.html
STA-BIL will keep it good for 12 months.
We don't disagree.
Sociology is a big field, with a long history of bad ideas. For every sociologist, there's an equal and opposite sociologist.

Let's just pick on one area, education.

https://en.wikipedia.org/wiki/Constructivism_%28philosophy_o...

> After a half century of advocacy associated with instruction using minimal guidance, there appears no body of research supporting the technique. In so far as there is any evidence from controlled studies, it almost uniformly supports direct, strong instructional guidance rather constructivist-based minimal guidance during the instruction of novice to intermediate learners. Even for students with considerable prior knowledge, strong guidance while learning is most often found to be equally effective as unguided approaches. Not only is unguided instruction normally less effective; there is also evidence that it may have negative results when student acquire misconceptions or incomplete or disorganized knowledge

So .. the big "theory" in education is that "students learn better by teaching themselves". That's probably not untrue, for a bored upper-middle-class student who's ahead of the class (who do you think does a PhD in education?), but for most students it turns out to be a bad idea.

But it feels good to say "Teach the students how to learn, not what to learn!". And if you can write hundreds of thousands of words on the topic, and give a feel-good summary to peers, what's stopping the idea from gaining traction?
Location: Green Bay, WI

Remote: Yes

Relocate: Yes

Technologies: C#, SQL Server, Javascript, HTML/CSS, Ruby on Rails

Resume: http://reecesession.com/resume

Email: reeceh.hn@gmail.com
Haha, great, thanks!
You need to tell your non-techie friends to run adblockers for their own safety. https://news.ycombinator.com/item?id=10002606
"backed by the largest company on Earth."

Wal-Mart?
You could always release a revised version under another name that was not do heavily linked to weddings. Anything wedding related can be charged at a higher rate so your $5 price is worth paying for those special events, although probably only paid by one or two people (bride and groom) . If it is juts me and my mates at a weekend away the we would all want the pictures so would all want the paid for version but $5 is well above the impulse range. If it was $2 or even $1 you would be looking at selling a paid version to every attendee.
Alt-V, Y, N has long been my very favourite Firefox finger-macro.
It would take an in-depth study to be sure, but we may already live in a world where a hybrid is better than a conventional car on most measurements, and if we don't we're heading in that direction.

The basic theory is that an ICE that only need to cover part of the driving range can be more efficient than one that needs to scale from pulling out of the drive to speeding down a freeway overtaking a lorry at short notice. Bus manufacturers were experimenting with flywheels and all sorts of crazy tech to take strain of the main engine because this hit them hardest for various reasons.

As battery and electric car tech improves and lowers in price, purr electric cars will encroach further onto hybrids, but the same forces will let hybrids encroach further onto ICE territory at the same time.
Why I am an entrepreneur
Vertical integration is so passé. Now you've got two problems, you'll end up competing with your other wood suppliersor supply your furniture competitors. Using the profit from your core business to prop up the weak one; whichever way round that ends up being.

The world just spent the last decade de-integrating.
https://news.ycombinator.com/item?id=10002606

Not telling all your non-techie friends to run an adblocker is grossly negligent of their welfare.
> Then your plugin should stop working by itself when a new version is available, that's how you force users to update if you are a responsible vendor

That's an interesting idea. Is it practical? I think you'd need to run some flash code first to determine the flash version before loading the ad code... I suspect it would take too long.
This has to be the worst UI decision I've seen in any app ever.

Especially as when you're lying down the phone can switch between landscape and portrait seemingly randomly, and suddenly the exact same action for scrolling becomes delete
This one statement could easily trigger an avalanche larger than all the other comments combined. I’ll start:

What is the difference between a transpiler and a compiler?
Epson Kills the Printer Ink Cartridge
Quite; particularly considering that the strategies of the bombings were reversed.

In WWII, Germany was bombed so that strategic bombers (B-17) attacked strategic targets (civilians and factories in cities), and tactical bombers (P-47) attacked tactical targets (tanks or trains near combat).

In Vietnam war, Vietnam was bombed so that strategic bombers (B-52) attacked tactical targets (jungle with suspected Viet Cong activity in combat area), and tactical bombers (F-4) attacked tactical targets within strategic targets (a bridge in Hanoi).

And WWII was the last "good" war for Americans.
Show HN: Discoverall.net – discover the world and its beauty
Say Goodbye to Your Feedback Tool
This depends on what the other options are. If you have

* test with SQLite

* test with Postgres

then using the same environment as production (Postgres) is of course better, but if the real options are

* test with SQLite

* don't test

SQLite is much better!
Because Google actively work to make it a bad experience.

Look at GMail in Firefox Android. Now look at GMail in Chrome Android.
People commenting on the original article say there are sensors that keep an eye on the fuel and run the gas motor as necessary to use gas before it goes bad (water accumulates, etc.).
Simple 8-bit Assembler Simulator in JavaScript
Data directory on tmpfs is close enough to an in-memory database.
The trouble is how do you find the needle in the haystack?

If there isn't financial reward you won't have experts who can devote their lives to finding & sharing the good stuff.

Maybe it will work like this: Before there would be people who's full time job was to find great books. Now there are tens of thousands of people who, on their spare time, find those books & report back online.

The reality though is that any sort of review system gets hacked. Amazon, yelp, & trip advisor are good examples.
Citing porn, India blocks websites
>In those cases, I just messaged them back and told them to give the prize to someone else.
Ive found running the tests in docker works quite well.
The volt will run the gas engine to keep the gasoline from goin bad.
Buzz Aldrin's $33.31 in expenses for 'business trip' to Moon published
It's definitely not an investment (as Kickstarter continually remind you), and there were no penalties agreed upfront. Seriously, do you want more restrictive consumer protection on KS projects than when you buy offered products at retail that have the order cancelled because it wasn't in stock?

I'm normally the last person to get libertarian about "you agreed to this contract", but this seems to be one case where it's appropriate. Or does it need more warning that you're not buying an extant product?