skysight-inc/HackerNews huggingface dataset:
It's a bit horrible and unsafe, but you can use offsetof and some nasty pointer casting to get from a member of a class back to the class. I've done this, and it compiles to extremely efficient code. You can even template a class on the value of offsetof, so you can use the same class as multiple members.

I'm on my phone, so no code examples (sorry). If you want one, reply and I'll write one when I get to a computer!
I'm collecting my personal notes/tips at: https://gingkoapp.com/git-notes
So true. Here the use fits the application. In past, people objected to using a Playboy centerfold as standard image in science, software distros, etc...
I remember Lena on my Amiga 1000...
I didn't see a LICENSE file on github. What is this code licensed under?

Edit: Nevermind - it's in the README.
I kinda wish we could get more wood behind a single arrow -- like I understand they have 80k lines in C extensions, but that has to be something like 8k lines if rewritten in Python -- and then that gives you access to pypy and now you can contribute to making that better instead of doing a new thing.
There are also a few compilers out there -- I've used: http://nuitka.net/ a bit.
Slack is planning to release threaded conversations later this year [1], so maybe this will answer some of the criticism on this post.

[1] http://www.theverge.com/2016/4/13/11418594/slack-threaded-me...
Sorry but that's not the case.

(r/create-class
{:reagent-render render-fn
:component-did-mount (fn [] (js/alert "hi"))})

No metadata there
Firebird 3.0 Is Available Now
This Central Bank Needs a More Efficient Communication Strategy for Digital Age
> Your interest in jelly bean factories is probably not predicated on whether the presenter is hot

TV networks seem to disagree with you... or at least place an immense amount of emphasis on finding hot presenters, for some reason.
I always proffered Chop Suey
Vacation rental software: Barcelona-based Lodgify raises €1.4M
Usually the "obvious junk" is discarded by the editor of the journal itself (with help of reviewers if necessary).

>since outsiders often pay for it.

I doubt the percentage of "outsiders" actually paying for individual papers is significant. Overwhelmingly, it's libraries paying subscriptions.
Technically the toy is called matryoshka, babushka is Russian for grandmother.
I work with git daily for couple years and I find it quite tiring to follow git branches/commits in command line.

I rather use Git Extensions on windows and on mac Git Kraken. For beginners I think it would be better to use GUI tools.
Rubbish Removal Romford
Back then OOP was everywhere in C++ world.

I think that HNers that bash J2EE and JEE designs never had the "pleasure" to enjoy mid-90's C++ OO frameworks.
He was a patent examiner. Not a government funded researcher.
Show HN: Issue Tracking with Usersnap
disclosure: I work on eversnap

eversnapapp.com was never meant to replace pro photography wedding photos, but to add some authenticity to the mix (and capturing any friends and family get together), plus we offer live slideshow moderation ;)

We also complete the offer with our own professional photography service on eversnappro.com

That said, best of luck to you and your team!
love this one :

git diff --name-only | uniq | xargs $EDITOR

(opens all modified files)

and this one to open files with conflicts

git diff --name-only --diff-filter=U | uniq | xargs $EDITOR
Six things to learn from iOS Game – Spellspire
Relevant:

https://youtu.be/u6XAPnuFjJc - "RSA Animate: Drive: the surprising truth about what motivates us"

Short version: internal motivation is much stronger than external motivation.
What about in relation to population density in a given area and estimated water use per person?
Although I never used ROOT while at CERN, it surely was part of many of our discussion subjects at ATLAS-DAQ.

Nice to see it on HN.
LazyDOM – an experiment to bring virtual DOM to the browser natively
Thanks for clarifying. You're right that I was too broad, and it's certainly true that many physicists don't share my opinion (I'm working on that).

Speed is always a concern, but I don't think it dictates that C++ should be the primary ‘user-facing’ interface. Numpy is fast, but it doesn't sacrifice a nice API to achieve it.

Personally, a big difference is that a lot of the Python packages feel fast to use and, most importantly, to write. ROOT can be fast to execute, no question, but I feel like I'm fighting against it (and I'm sorry that's very vague and qualitative).

It would be very interesting to hear more about the genomics use-case, and how they evaluated the other options.
Thanhphat
Data Driven Testing Made Easy – Selenium vs. TestingWhiz
Design Purists Hate Him. Or - How I learned to stop worrying and love singletons. Lose software bloat with this one weird tip. etc.

You know your software better than anyone and you clearly know enough about the design tradeoffs involved. Just try to contain your solution to as few classes as possible.
This is a really interesting discussion about the production tech in the i3. "Cutting Edge" and "Revolutionary" are used.

https://www.youtube.com/watch?v=uDr4L6BzpP8

You can buy the report for $500k: http://leandesign.com/bmw/
I am another person who had a grandmother die just before exams (that is the short story, the long story is far messier).

I managed to push it aside and got good grades for the exams themselves, but I felt so guilty in the weeks and months that followed that I made a real mess of the next semester (to the point that I simply had to withdraw from all my papers and take a break).

Not sure what I would do if I met/knew someone faking a death for those sort of reasons...
I think they meant it. As in, a grandmother who is full of energy and can do a dozen things before anybody is ever awake.

Always coming to the rescue of her grandchildren.
Mitsubishi Motors admits falsifying fuel economy tests
I think #2 is true. It's never any good.

There are a lot of rudimentary "caveman completion" packages available for Ruby coding, but nobody has ever written a good "intellisense" feature for Ruby, where "good" means something on the level of, say, Xcode's "CodeSense" auto-completion for Objective-C or Swift, or JetBrains IDEA's support for Java.

I work in Xcode a lot, but I also maintain a couple Rails apps at work. A few times a year, I get so aggravated I spend an afternoon googling the state of the art in code completion for Ruby, and trying out various editors and IDEs.

JetBrains RubyMine is consistently the best, but it is far, far inferior to Xcode in this regard. It suggests methods but not the one I am looking for, or it suggests inappropriate methods that would cause an error, etc. It can't always jump to the definition of something, or tell me all the places the method I am currently editing is called from.

Xcode has a lot of things I could complain about, but the code completion, finding caller/callees, jump to definition/counterpart... all that stuff is incomparably better than it is for Ruby in any editor I have ever seen.

And of course it is — it is incredibly hard and complicated to do a complete or even mostly-complete job of it with Ruby code. There are just too many ways to metaprogram and too little information available to the editor to make it a straightforward task.
How to Become the Perfect Language Learner
Constitutional Complaints Agaist Anti-Terror Law Partially Successful
My mate works for a water treatment company, so he's regularly down the sewers doing stuff. His best ever comment was that he hates it in the rich towns cos the shit stinks vile. But in the poor towns it smells OK.

I had always thought all shit smells the same.
Webinar – Automated Database Testing to Maximize ROI
What is UGC, in this context?
I find the i3 and particularly the i8 rather nice looking - certainly better than most other current BMWs. Then again I do like Tron!
Just curious, but why do you refer to it as "he", especially in this context where you are touting it as an actual non-human? Not to single you out, I see people referring to all these other things as (usually female) "her" and it just unsettles me to think that people are anthropomorphizing these things so much.

On a related tangent, often these same people will refer to animals as "it", too, which is even more curious. A living being with an actual gender doesn't rate a gendered pronoun, yet a piece of software does.
My biggest advice about ROOT is: Don't use it really.

Look, ROOT is a very complex framework for data gathering and analysis build by physics and it shows every step of the way. The bugs are everywhere and it does really weird things like setting global variables when you analyze some piece of data for instance, changing your results for all subsequent analysis (this particular bug cost me about 2 weeks).

And in the end, there isn't really any point in using ROOT.

- Data gathering can be done with a simple CSV (binary if you wish), a more advanced SQL database, or in the realm of research with the venerable HDF5 format.

- Data analysis in C++ or any compiled language, just doesn't make much sense. You can use Python or R. The libraries to read and treat data are optimized and will make the process much less error prone and probably faster in the end.

Seriously, don't make the same mistakes as I did just because some older people in your lab use ROOT and you feel compelled to do it as well. There are much better tools for the job and I regret not searching for them before wasting about 6 months of my PhD thesis trying to integrate ROOT in my research workflow.
I'm still not even quite sure how to a) discard edits that I've made but not added/committed yet and b) delete something from a repo that I added accidentally.
Global Shell Games
IRC for chitchat and a issue tracker are great. I agree.

I prefer Etherpad for meetings, especially for virtual meetings. It includes a simple chat, but I never used that.
http://beza1e1.tuxen.de/articles/meeting.html

A wiki is ok for meetings minutes, but I prefer documents now. Wikis always seem to deteriorate to the point of uselessness.
Yup, already saw this ages ago. Very old news.
MOON – the most accurate lunar globe
Clearly you don't know shit.

Dietary differences I guess? I'm sure there are scientists, especially in the wildlife area that specialize in the compounds in feces.
git checkout somefile

will discard edits which you've not added to the index. This command is destructive of course.

git rm -f somefile

will delete a file from the repo (you then have to commit the change). If you want to permanently delete a file, including from history, eg because it contains a password, that's a bit more difficult, but possible in some circumstances.
For experienced users, I do agree wholeheartedly. However, to learn how and why git works, it is much more intuitive to work from the command line for a while. For example, you can browse the .git directory, see how refs work, browse through the logs, etc. etc.

Another reason why I advice learning the command line interface first is that it is the most versatile, so it's helpful to be able to fall back to it when necessary. Every GUI tool I've seen so far lacks a feature or two.
What options are better?
The i8 is serious car. The i3 is not bad, either.

> Make an all-electric version of the 3, 5 series and X series to go toe-to-toe with Tesla directly

I have my popcorn ready for Tesla's production ramp-up.
Graal is comparable to RPython in the PyPy system isn't it?
This is probably the only logical outcome from the drug war.

Continuing the vicious circle of violence and drug prohibition enforcement will continue to cost enormous amounts of money with little to no benefit (even harm).

It's overdue for the UN to change drug policy.
git checkout <file> to discard. This will checkout the full file to latest version tracked. Alternatively If you wanna save some of the file you can use git add -p <file> and stage the individual parts you want. After you've committed those you can checkout the file.

git rm <file> to delete something you've added accidentally
Yes one can learn but when one's investment is correlated to how one talks about it, best to keep those lessons to yourself and make better investments in future.

"My investments are over valued, oh the lessons I have learned"

"All investments are overvalued, oh the lessons we will learn"

are two very different statements.
I think GP is referring to outsiders paying for the science (through public grants) rather than the publication.
It can't distinguish low use by everybody vs. heavy use by a few. And some people may be harmed by low use, while others may be unharmed by heavy use.
PVS-Studio: Static Code Analysis of UE4 (Part 1)
1986 and http://www.cs.virginia.edu/~robins/YouAndYourResearch.html are more canonical. Plus: https://hn.algolia.com/?query=You%20and%20Your%20Research&so... .
Oh, man, I love industrial automation. If my educational path had gone differently, I could see myself designing those machines. So cool.
Hello! I am one of PVS-Studio developers. Thanks a lot for the article, it’s great to see that you like the way the tool works.

It should be said, that you won’t probably find a lot of bugs in the code. The thing is, that once we have already delved in code of this project and fixed those bugs that were found (at that moment of course)

It all started with an article http://www.viva64.com/en/b/0249/

Later we worked cooperatively with Epic Games company and this work had the following results: http://www.viva64.com/en/b/0330/

Which means that at this moment you will be finding bugs that appeared after our fixes. But it’s not a big deal, we’ll be still very interested to see the articles you write. I just wanted to let you know about the previous articles.

Thank you once more, we are looking forward to reading Part II.
You also pay for a bureaucracy to perform administration and fight abuse. That consumes a fraction of the system's resources. It's hard to argue that this adds much value, or any.

What this system boils down to is a compulsory savings scheme. So an alternative would be a voluntary savings scheme, which would have higher efficiency by not consuming resources for administration.
I have an ongoing affection for this database even though we opted for postgresql as the backend database for our software.
We have a requirement to provide a single user installation from time to time and it always feels like a chore setting up postgresql in those situations.
Firebird's small footprint, the fact that it has both embedded and server modes, requires almost zero administration and the fact that it's a database in a single file are all attractions. Its ancestor interbase was the first to have MVCC and the origins of that database is a David and Goliath story in itself.

http://www.firebirdsql.org/en/ann-harrison-s-reminiscences-o...

Jim Starkey the inventor of interbase is still involved with Firebird.
Yet, it was really upsetting for me to see the smart and very experienced guys who wrote the beautiful CERNLIB to fall into this.
Newcastle mengambil titik berharga
My thought was maybe other things go down the drains that alter the chemistry? Cheap bleach vs expensive bleach? Hummus? Shampoo? Or maybe just a meat rich diet vs a more vegetarian diet of the poor folks.

He also said that in the pumping stations there are thousands of frogs and toads that have fallen into the road side drains and have been swept down the sewers. They get chewed up in the pumps.
>We're talking about Chrome

No we aren't. We are talking about the Google Safe Browsing service. They are different things. One is a web browser, the other is a blacklist that any software can use.

It's used by Firefox, Chrome and Safari. Together those make up a majority of browsers.
More anecdotes. I saw one of the full-electric i3s today. (Though, I probably also saw three Model Ss.)
The splinternet is here
It's all harmful, baby. Now show us the funding!

-DEA
This is presented as revolutionary somehow, but it's just a stripped-down (early version?) of what the other configuration management tools do: e.g. Chef, puppet, ansible.
London Rubbish Abomination
I tried, they told me I’d have to sue, as they couldn’t easily determine if the law would apply to them just by Googling.

Worst of all, I had to pay 5€ actual money to activate the 100€ of promotional credit.

I made a purchase, which contained at the moment that I'd get 100€ of promotional credit for an unspecified time (therefore 3 years), and instead I wasted 5€ on nothing.

EDIT: I should probably just to a chargeback via PayPal.
A* – A Truly Iterative Development Process
This:

[...] recorded the brain activity of people [...] while they looked at a series of 500 images designed specifically to elicit unique responses from person to person [...]. Each image flashed on a monitor for only half a second.

Wasn't further addressed as far as I could see. I realize it's a research prototype, and perhaps they can condense that image set down once they figure out which are really good triggers, since spending 250 * 0.5 = 125 seconds = more than two minutes for an authenitication seems a bit much to be practical.

I'm a bit scared of what those (hypothetical, I don't know they exist) "power-images" might end up being, though.
very true, one needs to attain proper skills to do online dating and these skills develop with time, you may not get the desired result in the first attempt, but slowly you will understand the optimal ways of doing it, some tips are there that I would like to share with all those who like to attract their mates online: https://datetingtips.quora.com/Secret-Tricks-to-Attract-Some..., these tricks can help in getting closer to the one you love.
That's just the broken IT industry. The car industry is generally still unionised, especially in Germany.
I think that Graal+Truffle is comparable to RPython, as Graal is the actual compiler, and Truffle is the API for interacting with Graal, i.e. analogous to the RPython language.
Agreed. ROOT is an idiosyncratic mess, that hasn't really benefitted from the developments in data processing from other fields. Much better off with Python,numpy, pandas and friends. CSV for simple tables, SQL for complex ones, and HDF5 for n-dimensional arrays. Cython or numba to speed up the slow bits.
Journalism has often been terrible. US journalism was better at maintaining a facade of respectability.
Swallowing exceptions? Choke on it, motherfucker
Solving .NET WebRequest's excessive client caching issues
> I've never once ran into a chat "bot" that wasn't human.

Well that's absurd. Siri? Eliza? There are multitudes of actual chat bots out there. They usually good to fool a good lot of the general population. But the tapestry unravels with just a little bit of effort if you know what to ask.
Meteor Roadmap
True. We started out trying to limit the conversation to just scheduling-related topics. But very early on we realized that since this is all happening in a conversation, people expect him to be able to carry some smalltalk - because when he doesn't, he's perceived as stupid - he can't even say "hello" properly, how can he possibly do scheduling?
(if this is interesting, I wrote about it a few month ago in much more detail: https://medium.com/building-the-robot-assistant/cheating-on-... )
3. Integrations are mostly gimmicks. FTFY
Exactly although for me it would have been just after IPO.
VW 'Dieselgate' software developed at Audi in 1999: report
How Black Hat Hacker Phineas Phisher Hacked Hacking Team
> Would be a shame if their data centers were seized if they wouldn’t comply...

> (I’m not sure if German courts use this technique, but it’s commonly used by US courts to force German companies to adhere to US laws, like in the many "Germans can’t sell Cuban cigarettes to Danes in Germany due to US embargo of Cuba" cases, so precedent exists.)

Could happen, but not easily. If they got sued, lost and had to pay, ignored that as well, then a gerichtsvollzieher would try to force giving over existing assets. In the most extreme cases that would include a data center, it happened for example that they tired to size an airplane when an airline did not pay a (comparably small) fee.

Of course it won't happen as no one will sue (I could've, but had way too small an amount in credits and asked for a prolongation of the deadline instead), and I'm sure DO would react in such a case.

Still: To have promotional credits run out after some time is not customer friendly, and this discussion shows that the dollars they save pales in comparison to the amount of goodwill and thus business they lose. I told them so.
With speech-to-text yet struggling on my iPhone to distinguish between what I said and what it figured I said.

Let's spare the ideology, I think the two of them are very much not yet there.

I'm elated though to learn that a meaningful university research got a honorable mention. There should be more searchlight on what's going on behind the closed doors of those hardworking varsity labs.
Lots of folks disagree with you. How can the absence of anything in this case be at all useful? Not obvious to me I'm afraid.

I don't feel I was out of line at all.
Show HN: GearAward – web artists exhibit code-driven art
D.A.P
I use git often on the command line, especially for non-trivial tasks, but do not quite understand why someone would pick it for routine committing/tree view over a GUI. I find the ability to graphically see the state of the working tree and the index, and being able to stage/unstage individual lines by visual selection in a non-linear way absolutely natural. Likewise, the ability to get a context menu for a commit in a tree view and fire a command (rebase/branch most often) seems like something git was "built" for.
Accessibility for non-technical users, and formatting.

In MatterMost (a very nice self-hosted Slack alternative) the integrated MarkDown-support means that sharing code and more extensive reports can be done with a helpful amount of formatting. I much rather read the ten lines of code a colleague is asking me about with code highlighting than without, and a summary of a colleague's visit to a customer reads a lot more pleasant with headings than without.

Also, emoji. Not something most of us on HN would miss, but a lot of the non-technical users seem to appreciate being able to nuance messages with them.
>Nowadays, you typically have the right to refuse an order if you know it's illegal, but I doubt that was the case in the SS in 1944

That was the breakthrough of the Nuremburg trials. Judges cut through that and established the principle that everyone in the SS could have known they are committing genocide and could have known that a genocide is not covered by the rules of war. That's why you can refuse an illegal order in Western armies now.

The alternative would have been that everyone in the chain of command had claimed duress up to the NSDAP leadership - and those were mostly dead by then.

Post-Nuremburg, everyone knows that you will get punished and the higher your rank, the worse for you if you are part of genocide. Ideally. In reality, a lot of war crimes and genocide still goes without punishment.
It says "by default" implying it could still be leaked, their "fix" is a Skype setting that masks your IP until you're in a call with somebody.
That probably has something to do with it yes. Would it be a good idea to unionise for such things? Or are there benefits to not having unions?
I find it very hard to believe that those excreted drug residues don't react with detergents, chemicals used for cleaning, oils from foods and all kinds of other pills, drugs and plants that end up in sewage.
Does the study take that into account ?

Also, it is said that about 80% of dollar bills contain traces of cocaine. So combine the measurements of drugs on money and of drugs in shit and you end up with an interesting picture of society..
The Kate Bush fan in me remembers this.