skysight-inc/HackerNews huggingface dataset:
Is this what sexual harassment looks like?
The dispose pattern puts the work on the user of the resource. In addition I have seen cases of classes that didn't need to be disposable but later changes were made that required them to be disposable. Now you have code using these classes that don't dispose them.

I much prefer destructors like in C++ (or VB or even PHP) that run when the reference count goes to 0.
What about faraday cages?
How we hire engineers (2016)
to avoid schema migrations
I don't know. I was just in a meeting where a team announced that they would need a ton of money and time to move off of MongoDB. The VP reminded them of when they had chosen to move to MongoDB years ago and asked them what happened to all of their promises about how great MongoDB would be. They responded that the promise of MongoDB and the reality are very different and MongoDB has turned out to be a disaster.
You need a 2500 mile range? That's also a >600kWh battery, and even at 1/10th the price it's a $15,000 element.

Lithium ion car batteries will get to 1/2 or 1/3 the price within a decade. By that point, electric cars will always be cheaper (edit: than current ICE TCO)

When we're at 1/10th the cost (which may happen!) it seems quite likely that fossil fuels will all be more expensive than storage backed renewable energy. As the demand for fossil fuels shrinks to a tiny fraction of its previous size, prices will also go down, as only the cheapest to extract oil will still be profitable.

In this hypothetical future, it may be possible for gas cars to be as cheap as an electric car, but it remains to be seen. In any case, the cost of energy will be lower than it is now.
Author here: Only a few years ago the idea of the browser connecting directly to a cloud database was considered unthinkable from a security standpoint. Now backend APIs are used directly by browser and mobile apps everywhere.

Has anything changed other than developer's comfort with connecting directly from the browser to the backend? Mobile apps are common, and single page applications are accepted. In my experience moving to a simpler stack is good for security.
> NoSQL originally meany to not use SQL as the query language

I'm pretty sure that's wrong and it always meant not to use the relational model; it was only “NoSQL” because it's short, easily memorable, and there's a percieved (though not exactly true) equivalence between SQL-based and relational databases.
Yeah as a trainer those are my pet peeve as well. And of course hard vs soft reset and so many ways to undo work.

Those 2 commands would be a great idea.
ITT no one admitting that the problem with the recorded music industry is now the fans who expect bits that make sound to be free while other bits are paid.

Spotify, Pandora, and Soundcloud fixed just about everything that people said was wrong with the industry from the consumer point of view. And don't give me that line about the labels screwing artists because thanks to fans who won't even pay for a premium subscription, Spotify literally can't afford to pay artists more without going under entirely.

TL;DR - music doesn't want to be free. Selfish people want it to be free.
I wonder what made them to open offices in some of the most expensive cities in the world in the first place?

Was it in order to find the right talent? There are great people in other, less expensive cities.
C# has a using block that makes resource deallocation explicit syntax, which I far prefer to implicit destructor behaviour.

That said, we need IDEs that sound the klaxons if a Closeable is not placed in a using statement.
We (Songtrust) are a music startup helping songwriters get paid more money, we are hiring python engineers, tech support, and a marketing/growth lead: http://blog.songtrust.com/jobs/
I'm too very happy with Bandcamp, and it's usually the first place I check to see if an album I want is available, if it's not directly for sale on an artist's website.

That said, music is extremely portable, so it's easy to buy from several online shops and combine it all in your own library later.

Based on that I sometimes remind myself that, unlike streaming services, where you are forced to put all your eggs in one basket and can only have one source, with music sales there might be other options too. There's actually a free market out there!

That's extremely rare on today's internet, and I want to support that. Therefore I consciously try to buy stuff from other sources too, like Ninjashop, 7 digital, Waste, etc. But it's just very easy to come back to bandcamp.
Insignificant in the grand scheme of things.

The music industry is a shade of what it once was, and both CDBaby and Bandcamp are tiny slithers off of that.
This is where it gets tricky.

Is your negative attitude due to a medical condition or you just being an asshole who has an attitude problem?

And is that even material to the decision to hire you or not? No one really cares why you act like that, they simply care that you do.

I'm going to say it's entirely on you to present yourself in a positive light at work, and I honestly think your ex-manager was doing you a solid there. The typical way this plays out is your mental condition (or possibility of one) gets discussed by management behind closed doors and you never know why you didn't receive that offer or promotion. And yes, based on my limited experience with larger companies this is exceedingly common at the executive level. The one thing you don't want on your "record" is a history of mental health issues - there is no recovery to your (management) career once that is known.

In your case I think you simply had the curtain pulled back a little, out of consideration from your past manager.

Your other points stand though.
Huh really, didn't get that vibe but okay.
But MongoDB's own cite cites Indeed.com Job Trends data only through 2012, on the basis that Mongo's growth is a reason to use it.

Current Indeed.com Job Trends data actually show better numbers than the 2102 stats, but nonetheless show MongoDB jobs in decline.

https://www.indeed.com/jobtrends/q-MongoDB.html
I don't understand what you're saying MongoDB solved. Mongo has ORMs too like Mongoose.

Why did you think you can only use SQL with an ORM? And if you didn't think that, then what was your point?
That's very deep. I'm impressed. Sincerely.
Because of how SI units evolved historically; basically, there was the "cgs" version of the metric system, and the "mks" version, and the latter won out. (Note that neither version has all three "base" units pure in terms of metric prefixes--the first has centimeters instead of meters, the second has, as you note, kilograms instead of grams.)
My guess...

SQL is a lot for newcomers to grasp on top of learning the rest of their stack. The appeal of "no schema" is most likely what gets them as it seems easier than SQL. Simple things at first seem daunting like: constraints, joins, and indexes. What they fail to see is that doing these database level things in the application layer becomes the final level hell and you get to live it.

People also undervalue their data and it's integrity.

I personally do not like mongo and see zero reason for it except perhaps in some very niche use cases and even then, I'd still choose another document store over it.
I did have two acquaintances from long ago when I was a humanities major at school who did this. They were roommates in college, both worked for the same lab, then worked at the same tech company after college.

They later moved to California, continued living together and working on the same teams at work. Eventually, they got separate houses but still work together as a high functioning mini-team in their own shared office at a huge SV company last I heard. It probably raised eyebrows at interviews saying they wanted to work together, but they excelled technically and in the long run it seems to have been a significant career advantage that raised their productivity and possibly even rate of learning.

The impression I get is that the situation is something almost no manager would ask for or have any desire to disrupt.
I rarely ever use the Git CLI anymore. Instead, I use Magit, an Emacs extension. It is, hands down, the best Git tool available. Things that are cumbersome on the CLI become painless, like staging hunks of files, interactive rebases, viewing a blame of the file I'm currently looking at, quickly amending a commit that isn't the current HEAD, reverting parts of commits, browsing stashes, partially applying stashed changes, and much more. It is the single best tool I use every day aside from Emacs itself.

https://magit.vc

P.S. - to those worried about what git wrappers are doing behind the scenes, in Magit you just press `$` to see the command log.
I blogged up some security issues with the Lavabit.com service which uses this Magma server. Some of you may be interested - https://www.grepular.com/Lavabit_Security_Misconfiguration
Honestly none of these. I program across the stack.
The Computer Recycling Center
Well, Facebook and Wikipedia are using HHVM to execute their PHP code, so at least those two are not really satisfied with PHP. I bet they'd like to rewrite their code in a faster, more memory-efficient, language but are hindered by the complexity of their code base.
I use the ffind program instead. It's just so much easier with saner defaultq.
Startup coming soon...ahem ahem
For a wireless update you need to be able to store the new firmware in a temp area, verify it and then activate it. Old devices don't have enough memory but that's changing. Also, most new firmware needs new hardware features so this capability may not be that useful in practice.
An option in the Bay area, http://www.crc.org/
I think there may be better role models but I have a hard time finding ones that are jargon-free (to a degree, "pipes" and other terms are jargon but generally accessible to people who work with Linux), approachable, and functional for people that do not have the mental model.
I wish my city was more proactive about pedestrians, but they allowed the city to grow for years without sidewalks in our residential areas, and we can't even pass legislation to get the small amount of sidewalks we do have cleaned of snow and ice in the winter. Only the oldest parts of the city are walkable, newer parts of the city you just walk on the side of the road and people give you odd looks.
I have been paid by two companies to remove Mongo. One that was hosted at the Mongo HQ. (The mongo HQ guys are really nice). At small startups, things are on fire and people need answers quick. "How many users tried this, how many times was feature x used," on and on. If it is in mysql, well i just setup a vpn and a read mysql access, done -- they can query away.

If it is all in mongo? Welp. How is your python? "See there is this key, and you need to sum this -- OH and remember that this does.. Hmm, "
Infinite Looping of Siri , Alexa and Google Home
I'd argue there's a difference between plumbing commands and UI commands. ls is strictly a UI command, a sort of mini-language to quickly and efficiently explore the file system. If ls didn't exist as a binary, we'd all have an ls bash function in our .bashrc that does the same thing with some perverse combination of for, globs, and stat. If you ever pipe the output of ls to anything (barring very simple cases), you're probably doing it wrong and should switch to find -exec stat instead.
That's pretty rare! Almost all great teams have great players

You're disagreeing with something I never said.

Imagine you're a baseball GM. You decide to build a winning roster by taking an unlimited amount of money, and then identifying the statistically best left fielder, the statistically best center fielder, the statistically best right fielder, and so on through all the field positions. You also identify the five statistically best starting pitchers, etc., and sign all of them.

There are franchises which try this "just sign a bunch of superstars, they have to win because they're so good" approach, and the track record of that approach is very, very mixed. But "just sign a bunch of superstars" is basically how tech companies claim they try to hire.
Primary though? Which are you strongest in?
Jeffrey Dahmer didn’t eat everyone he met, either
Because that wouldn't be as much fun.
If an entire office is being shut down, then there's no issue with adverse selection. It's a rare chance for great engineers to be actively on the market.
Google Blocks lets you make gorgeous low-poly VR art
I've been told my numerous people who grew up there that the winters in Edmonton were brutal. Despite Toronto's reputation being a Canadian city the winters are very mild by comparison and Vancouver, of course, is even easier.

Having lived in Montreal on the other hand I was surprised at the impact a lengthier far snowier winter can have on a city if you didn't grow up with it, after being familiar with Toronto/southern Ontario I found the winters in MTL hard to deal with. A winter-heavy city really does create two very different cities, the summers in Montreal are really amazing though, half the year it's the best city in Canada.

Keeping people inside for winter may be a non-negative in academic research but it's probably the most serious implication to consider lifestyle-wise when moving to Edmonton. Not to mention the lack of access to events (both culturally and industry-wise).

I'm not sure I could be optimistic for a Canadian city for technology outside of Toronto, MTL, and Vancouver, besides the current available talent pool which can create at least a decade-long attraction with someone exceptional like Rich Sutton. Similar to sports teams talent attracting free agents. Which is what we're talking about in this case, with advanced research in AI.

The Manhattan project's success was largely a result of the talent they attracted early on, which blossomed into even more talent as a result, and it was located in the middle of nowhere in an isolated New Mexico town.

City-wise it might not be attractive but talent is what matters at the end of the day. The only risk then is that it can maintain an active research community, aka consistently attracting talent. I'd be measuring the output of the universities with highest priority in this case more than anything.
Sea level during the Pleistocene glaciation got to be ~150 m lower than today. You are absolutely right that during times of low sea level, the rivers eroded this part of the shelf just as today. However, these canyons go all the way down the continental slope to ~3000 m below current sea level, with the same basic erosional forms (check out Monterey Canyon in Google Earth, it's gorgeous). These mud flows (called turbidites in the literature) are quite capable of eroding the seafloor when they flow down steep slopes, though at rates well below what rivers do on the surface.
Not to me. This happens all the time when you're learning the tool.
> Today, I specifically want to call attention to two commits by the lead maintainer of Git, Junio Hamano, that left the deepest scars.

Why call the maintainer out by name (and continually do so throughout the essay)? What purpose does that serve? To embarrass him for volunteering his time on an open source project that you've built your business on, just because you didn't like these two features he added? There was no personal behavior of his at play; he simply made some technical choices you disagree with.

Keep it technical, dude. This is ad-hominem and smug.
I find the using syntax pretty ugly especially once you have several objects. Some keyword like "autodispose" may help. Managed C++ has this. Objects that are allocated with the stack syntax get disposed at the end of the scope.
Former Dogecoin Exchange CEO Faces Fraud Charges
These PostgreSQL features are relatively recent. The jsonb column type dates back to 9.4, which was released in Dec 2014, less than three years ago. MongoDB had been around for well over five years by that point.

There are few applications that need distributed scalability beyond what PostgreSQL can provide, but I'd argue that it's not uncommon to have problems with Oracle scalability, if you don't have deep pockets for licensing.
Not only citizens, laws protect all workers
The kilogram is a measure of mass, not weight which is a measure of force. In order to really figure out mass, I'd think the localized gravity has to be accounted for. e.g. GRACE maps gravity variation around the earth by measuring the acceleration difference between a pair of satellites.
I'm not trolling. It's 100% true and far more prevalent than you would expect.

People always choose the path of least resistance.
We (askspoke.com) are hiring in San Francisco:

Software Engineer - AI and Learning: https://jobs.lever.co/askspoke/135f082c-de82-4875-bbd1-35f6a...

Software Engineer - Backend: https://jobs.lever.co/askspoke/cb915664-4ba0-482c-b824-73a3d...
It's more than liability, reducing physical access requirements opens up a much larger attack surface.

I know if someone's opened up my skull. I assume everyone has some sort of multi-band wireless transceiver in their pocket, because that's a cell phone.
It's not great -- but it is a good example because nearly everything else in wide use is far worse.
Can it be used with lxml's parser, and does it have support for what Requests calls `Session()`?
Your concern of memory management and undefined behavior is not unfounded. But in my opinion all languages have these problems, in the C the blame is shifted to the software engineer instead of the language authors.
This is my go to page for untangling the behaviour of git reset and checkout: https://git-scm.com/blog/2011/07/11/reset.html . And I find myself going to it quite often because another problem with this kind of slippery design is it just doesn't stick, in your head.

(Amusingly, the author begins by admitting he wrote a whole book on Git - and perhaps the most popular one - before strongly understanding this himself.)
Agreed. I found calling out the maintainer weird and awkward.
I am hiring for a project I am running at A^3 ("A Cubed"), Airbus' office in San Jose. Looking for smart generalists with experience in Python and interested in a hybrid R&D and product environment.

http://airbus-sv.com

You can email me - [HN username minus last letter] @ airbus-sv.com
Survey of Rounding Implementations in Go
You don't get to say "all major CAs" referring to everybody else now, Let's Encrypt is definitely a major CA too now :-)

Also some (maybe you don't think they're major?) don't offer DV. After all they can't be cheapest or fastest so why not focus on a product with higher value.
https://gravitational.com | Devops Engineer | US | Remote or Bay Area

Gravitational, an early stage systems & cloud startup in San Francisco, is looking for devops engineers.

Responsibilities:

- Maintain Kubernetes clusters.
- Assist our customers in porting their applications to Kubernetes.
- Travel to conferences and occasionally present or train other engineers.

We are well-funded by fantastic Silicon Valley investors. We are an experienced team: we founded Mailgun which was acquired by Rackspace, we created Vulcand and some other cool stuff at Rackspace and are authors of Teleport and Telekube

About our team: we love Linux and low level systems programming and we love helping open source communities and other engineers to get things done.

jobs@gravitational.com
> I go to a support group for people with deep brain stimulation implants and I gave a talk about interference. I asked how many people had an experience like mine at Best Buy and all 50 people put their hands up.
if you don't fear negativity it can't hurt you
Agree so much. I'm originally from just outside of Edmonton, but have been living in southern Ontario for work since the late 90s. At this point in my life with two kids and with the rest of my family back there, I'd seriously consider moving back there despite the terrible winter and right wing politics [which seems to be changing].

The river valley is fantastic wonderful greenspace. Great festivals and arts culture. Big enough to have most things you need but not too congested. Very friendly people. And the UofA is a wonderful university.

As a Google employee I hope that this DeepMind presence grows over time to be a real Google office. Although I doubt this will happen, I'd certainly welcome the ability to transfer there.

The other big Google engineering office in Canada is in Waterloo. So we at least have a history of co-locating beside excellent engineering universities. The UofA is up there with Waterloo in terms of a excellent CS/engineering.
I think what I learned the most about my past year of working heavily in Elixir is this.. Don't learn elixir.. learn Erlang/OTP if you really want to harness the power of Elixir. Elixir is nothing but a series of macros which give erlang some convenience and better syntax.

If you learn to harness the power of Erlang, while writing it in Elixir, then you will see the beauty of it. Get away from Phoenix as fast as possible. Seriously it will do you wonders. It's so unnecessary and cumbersome.

OTP, OTP, OTP.. can't say it enough.
Does FMLA leave apply for cases like yours?
I use Mongo & its been working great. Our data is not relational (imagine you were tasked with building "Powerpoint" on the web).

Compared to mysql I like that it has automatic failover out of the box. I can also just add new replica set members without having to stop the master or bring a slave offline to rsync it over.

With something like mysql I have to learn about & choose between row based replication or statement based replication. I have to choose between binary logging or global transaction ID logging. With Mongo I just call rs.init() and rs.add() and it "just works".

Perhaps I'm just not hitting the level of traffic where the problems begin to surface, or maybe postgres would be better... but its been great so far. No complaints. The only issue was de-normalized data getting out of sync due to bad coding in our app, which i do not blame Mongo for (and was simple to fix).
Sounds like a great way to create even more unrealistic standards for beauty. Just a thought.
Edmontons winters are brutal, but they are dry and sunny and the buildings are properly built for them.

They are just a month or two too long.
If you can automate your job you deserve to keep it and get paid for it, IMHO. :)
https://write.narwhal.space/ maybe?
This lack of insight is why PHP developers have lower average salaries than non-PHP developers.

If you think PHP is looked down on by those who care about language features because of a popularity context, rather than because of asinine language decisions and limited support for modern programming paradigms, I think it's you who is missing it. Since any program can technically be written in any (Turing Complete) language, the fact that some big sites were made to work with PHP also sort of misses the point. When most of the big "success stories" adopted PHP, options for web-friendly open source languages were much thinner. Now if you look at the new development projects they highlight, you don't see PHP come up that much. Facebook, for example, is prominently using Haskell. I don't know anyone who both programs in Haskell and is willing to touch PHP.

Of course, many thoughtful criticisms of PHP have been discussed on HN. e.g. https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ & http://poincare101.blogspot.com/2011/11/php-sucks-but-some-f....
Learn from my mistakes (startup to chapter 11 as antidote to survivorship bias)