skysight-inc/HackerNews huggingface dataset:
When I was inexperienced I feared ORMs because of the negative performance impacts I've read they could have. I constantly worried about what would happen if the amount of data increased and I hit ORM induced problem that I could not resolve without major rewrite of data access layer. However, whenever I've actually hit those problems in production, I found the similar thing the authors of the article did - ORM induced performance problems can be fixed by 1-5 lines of code changes, if you knew where the actual problem was. In fact, I learnt that there's no "ORM induced performance problems", there are only problems induced by lack of understanding of how ORM works.

As for the knowing where the performance problem is, I find that skill (that I think should be basic) is in fact very elusive in the engineers I encounter. When I interview people, even in what would be upper intermediate to senior level in terms of years of experience, alarmingly small number have ever done or could do (or even would do) performance profiling like described in the article. Yet they do describe how they changed this ORM for that ORM, this DB for that DB, this language for that language, in the name of higher performance.

I've seen or heard of:

- Teams spending weeks exchanging SQL DB for No SQL DB because of unsolvable performance problem. When hitting the same problem with NoSQL DB, they find that addition of a simple index is solution in both cases

- Teams spending weeks exchanging Hibernate for OpenJPA in a complex application, because of performance, without doing any performance analysis, because they've read article that says Hibernate is slow

- Teams choosing complex architectures they don't really understand, for performance reasons, without being able to articulate performance requirements of the system they're building

These days, whenever someone mentions performance as a reason for anything, I judge their competence based on their response to the question "And how are you measuring and monitoring it?"
> the minute you drop it, it's shattered or unuseable

For Apple, that might be a feature ...
The Smart Future of Commuting
Fair enough. It seems the issue is more subtle than I'd thought.
Why not both? Truly, we should work to have better abstractions. We shouldn’t glorify making our own lives more difficult. And we shouldn’t glorify ignorance either! It’s not an either/or dichotomy here
One of the other examples in the same article is a middle-aged aerospace engineer, so maybe that's more to your liking.
Thank you! The algorithms are universal and not tied to any particular modality (rhythm/melody/harmony) or particular tuning though they can exploit certain given relationships eg consonance if the algorithm is given knowledge of them. Exploring other tunings and making them available in the UI is definitely on the list. The core algorithm works by creating repetition/variation at multiple levels over time which is modality agnostic.
http://slickdealsindia.com/forum/threads/free-samples-india-...
Show HN: Static JSON Hosting Built with Crystal and Amber
+1 :)
I use the exact same machine and I simply don't want to upgrade it with the current options.

I don't even need anything higher resolution (retina is great), honestly. In fact, I don't even need a more performant (or more cores on my) processor (my quad-core i7 works great with everything), or better GPU - all I need is:

- 64GB RAM;

- 2TB SSD;

- better camera.
The fact that MacOS/Darwin has BSD utilities instead of GNU is a common gotcha. Not a showstopper though, `brew install coreutils` will get you the tools you are used to!
It boils down to what kind of trade-offs we are willing to make.

I might have been one of those Linux users that didn't have many serious issues for decades. Tried OSX for a while (2013-14), but didn't like how OSX gets in the way, though Mac hardware seemed decent. I would rather put up with an unusable fingerprint reader under Linux (Thinkpad Carbon X1), rather than OSX idiosyncrasies. There are other issues with the current Thinkpad (screen mirroring doesn't work reliably), but that is not a deal breaker for me
All this Facebook-bashing in the recent months and then m$ office is spying on everything you do. This is like a "legit" keylogger, which is activated per default, because it's a product feature. But, you have to trust it also per default, it seems. Damn.
So I have been a Rubyist for most of my professional life and I was looking to build a static JSON hosting service when I explored Crystal and Amber and within two days of picking it up, had deployed it to production.

Let's see if Hacker News traffic can bring the $5/mo server down.
Yeah, In retrospect I should have done my research on this front. Mea culpa.
Read Nikola Teslas books. We found intelligent life in the universe about 120 years ago. Mankind may not have been ready then but we certainly are now.
I've had tons of problems on the occasions I've built a windows machine -- took me 12 hours to get a windows 7 machine running casparcg successfully in 2015.

I guess it's what you know.
I think you misunderstand, the video isn't a happy colorful animation about an optimistic conclusion to humanity's problems. It discusses one specific problem: over-population. And distills a ton of data collected over the several decades to offer the conclusion.

Historical evidence supports that a decrease in mortality rates is followed by a decrease in birth rate. Here, check out the data for yourself[1]

The theory of population growth leading to resource depletion is fairly old. Thomas Malthus published this in 1798[2], but guess what: we're all still alive, despite growing over 7 billion in size, and the empirical evidence debunked this theory. There are a fairly large number of theories why this didn't happen, but that's off topic.

My point is:

- The shortage of resource because of over-population is an old theory, but we've seen no evidence to it yet.

- Population growth eventually slows down when the mortality rate decreases.

- The population growth rate is expected to begin slowing[3]

- Colorful animations help people understand a point, but that doesn't necessarily mean they're wrong.

[1]: https://ourworldindata.org/grapher/Demographic-Transition-Mi...

[2]:https://www.intelligenteconomist.com/malthusian-theory/

[3]:https://esa.un.org/unpd/wpp/Graphs/Probabilistic/POP/TOT/
I was in the queue to buy one, message of those popping without accidente - e.g. someone just opens the door to his home - made me not buy one.
The 840 G5 has an off center trackpad with buttons and a number key block. How this is still a thing is absolutely beyond me.
I wasn't familiar with jOOQ before. It looks pretty comprehensive.
I am trying to choose a book to read to learn testing my _Flask_ web application. Should I go with "Python Testing with Pytest" by Brian Okken or the book mentioned in this thread?

"Test-Driven Web Development with Python" book says it uses Django and I don't know Django. So I am hesitating to read this book even though I want to learn TDD for my web app.

PS: I don't have much TDD experience.
How not to be a mediocre developer
Propaganda piece by the Chinese government more like.
Not this again. ORMs are tools, basically dynamic code generators that run SQL and map the results to in-memory objects, and vice-versa. Some are simplistic and others are incredibly advanced, and the code itself is usually faster than your own sql->objects logic that you would write otherwise.

The issues with performance are almost always with the way the tool is used, like choosing a bad algorithms or the wrong data structure for a certain situation.

Lazy-loading a large child object in a tight loop over 100s of entries will always be slow because it's an improper approach, and nothing other than knowledge and competency will resolve that. It's rather amazing ORMs can be so controversial when the real issue is the developer, which speaks to the far bigger problem of expertise and quality in this industry.
> Sure, but like Imagenet, these datasets already exist.

I'm pretty sure that making it cheap to use new datasets is very valuable in the long run
Sure, that's more plausible to the central point they are trying to make.
Here's a UN chart: https://esa.un.org/unpd/wpp/Graphs/Probabilistic/POP/TOT/
WTF  That's crazy
Bravo – Shopify Multi-Purpose Responsive Theme
They (and all other companies) have one goal - successful sustainable business. The keyword here is sustainable.
Thanks for this wonderful piece of article. I take it as a guide.
> and I don't really know why the thing is so sturdy since it truly looks good.

One factor is that the cover glass doesn't go all the way out to edges and corners. This leaves some "crumble zone", as phones by the laws of probability most often land on edges.

What do the corners of your phone look like? I bet they're dented, at least that used to be the case for me.
I guess I am the only one happy with the new macpro keyboard lol.
Given that these are the people who wrote the Rails ORM, you'd expect that they know how to use the ORM to generate high quality SQL. Which is actually quite doable - in Rails / ActiveRecord you're much better served by knowing what happens for every ORM call, and the default development log prints every generated SQL query as well. Think it now also provides alerts when the queries are slow.
I've been thinking the same.

Another option might be jamming with ultrasonic white noise, but I'm not sure about the health & comfort effects of having something like that going 24/7.
Yep! See here[0] and here[1] for that idea done with Postgres

[0] https://postgrest.org/en/v5.0/

[1] https://www.graphile.org/postgraphile/
Now I want to know if using two input videos to mimic our two eyes makes this even more robust, or even gives depths sense for free?
I understand what you're saying, but I don't think you are correct. Yes these are just people, but to me this is a typical Silicon Valley insider story. It would be more interesting if he was some talented AI researcher or something like that. But no, he's a founder/CTO of a different successful company, so he meets up with other successful people and dreams up the idea for his next successful idea. And of course there will be no issues with funding or finding the best people, he already has those cards in his pocket.
>If sales increase when it is thinner, it stands to reason that customers want thinner devices.

No it means consumers think they want thinner phones, not that they actually prefer using them in practice. That's what marketing means.

And of course, the reason they think thinner is better is also marketing. Keep repeating something and people will internalise it without criticism.
Friendly web development tutorials for complete beginners
tl;dr - Shifted my knowledge of the hosting market by exposing me to cheap dedicated servers

I had previously thought that dedicated servers were doomed to be too expensive/heavy weight for me. I also felt like most VPS providers charged too much (especially true in the case of AWS -- $10/mo for a t2.micro is ridiculous).

I first found INIZ (http://iniz.com/) and was super happy with them, then someone introduced me to Hetzner Robot Marketplace and I was blown away by the affordable prices (+/- setup fee) and have had one ever since. Hetzner also has a cloud offering that is also pretty great -- slight limits on operating system choice and some other features and you can have very competitively priced machines in a more cloud-friendly fire-up-and-go format.

I wrote about the revelation here (including link to HN thread where it happened): https://vadosware.io/post/fresh-dedicated-server-to-single-n...

Now I have a ~6 Core (12 vCore/hyper-thread) 24GB RAM monster that I can run experiments with for a decent monthly price.

If you go to other providers like Packet, OVH or Amazon, you're going to see way higher prices -- I'm don't have too many requirements so Hetzner worked for me.
Few months back I was working together with a group of framework programmers from a large consulting company.

They seem to spend solid third of their time googling for how to write a code. Write code, hit a jam, google, find something in stackoverflow, ruminate between what is found, copy paste and try if it works. They don't know their framework well enough to just write a code.

I'm a more of a embedded software/hardware guy and manager, but I can sit down and write pivot pivot query in plain sql without consulting any references.

I'm not saying these guys are doing something wrong. It may be that in the typical consultant work where you have existing old frameworks, new frameworks and new stuff coming in constantly, there is less value to master the tools that you are using. You write some glue, then move on.
Did you actually read the article? The looked up in a database for the initial hint, then followed up by matching his DNA (taken from a piece of chewed gum) to DNA found at the crime scene.
Appreciate the book, don't get me wrong – but I've never understood how anyone can call something a "unit test" when it takes more 2-3 milliseconds to run.
Yet another file in the .git directory. The work is impressive and certainly helpful, but I can already hear Fossil proponents say "just use SQLite", which is getting more and more true.
“Righteousness exalts a nation” regardless of its form of government.
To save people some time, an alias for your .gitconfig

create-graph = "!f() { git show-ref -s | git commit-graph write --stdin-commits ; } ; f"
Is it worth reading or is it just about how things are more expensive and we don't make enough?
First of all, I disagree that people _want_ to put furry cases on their phones. Too many people have walked around for too long with giant cracks on their screens that they've realised it's better to slap on a case, even with the ugliness that goes with it. Having some minion drawing on the back of the case is just a minor positive.

More importantly though, I cannot stand how glib Apple is with their devices. Surely the engineers and managers in charge _must_ realise the responsibility on their shoulders. Are they OK with many more people contracting carpal tunnel or RSI because of the choices they made? What about the environmental costs of needing to replace perfectly functioning components like speakers just to replace a keyboard? Just for the sake of A E S T H E T I C S?
Bought the XPS 15, unpacked it, touched it and sent it back on the same day.

I am not paying 2k for a laptop that wobbles.
How to Avoid Fake Profiles When You Hookup with BBW on BBW Dating Sites
Built multiple complex systems using TDD and the unittest package in Python. No monolithic frameworks, almost zero test infrastructure and ~ 1000 unit tests/sec. Do not share your perspective.
Kubernetes 1.11 includes In-Cluster Service Load Balancing and CoreDNS
I can confirm that window's wsl and bash systems are moving along very quickly. I moved to windows about a month back and have only one use case for which I need to boot ubuntu up: docker with symlinked folders.

Apart from the above use case, I've missed nothing. There's some hacking I'm attempting to do to get vscode to use the underlying bash mechanism for its code linting tools but that's more a preparation for the inevitable moment when some linting tool or package depends purely on a Linux/Unix environment.
Ask HN: How do you memorize/discover a new city after moving?
I had very bad experience of -O flag especially in case of ISRs. I don't use any optimisation levels... even at -O0 GCC seems to do something.

Good practice as per my experience is to check MCDC and code coverage at unit test level
I am always confused buy the expression "anything but".
I assume you want to suggest that people should read the Pinker's book, but I think it could be interpreted also as read everything except that book.
https://english.stackexchange.com/questions/8061/what-is-the...
Currently I’m trying to use Dapper if possible. It allows me to write efficient queries manually and just maps the results to objects.

For simple queries though (single-table), Entity Framework is just as fast.

Because I’m mostly working on dashboards and stuff, writing to the database isn’t much of a concern.
> It discusses one specific problem: over-population

As I said, they make exactly zero effort to say anything of substance about that issue. Key word is "over". I refer back to my comment. They say something about "population" - but the vital "over-" part is not addressed at all. For good reason, that's a complex topic with mostly unknowns.

> Colorful animations help people understand a point, but that doesn't necessarily mean they're wrong.

If there is no substance and the topic is complex and big than that alone is wrong already.
I thought the RAM thing would decrease battery life, because it requires a different intel chipset — as shown by the contemporary laptops from other manufacturers with the same CPUs and chipset topping out at 16GB as well?

I could be misremembering, and it frustrates me either way, but I was certain that Intel also held some blame for this?
How to get away with financial fraud
I'm surprised it's taken this long to achieve a Linux-distro WorkSpaces, but I'm pleased it's now available regardless.

Outside of rolling your own EC2 instance and configuring your own PCoIP services (Teradici protocol managers and similar), it's a very manual and intensive process for managing the service.

I'll be happy to give this a crack over the weekend.
You realize they are only using data that is already publicly available right?
I would never call someone who can only do serverless on the "backend" full-stack.
Me too, would immidiately buy 2015 mbp if i could get it with the ssd, memory and cpu of my 2017 mbp!
You're demonstrating my point. Portable cassette/CD/MP3 players have existed for what, four decades? The vast majority of humans only experienced music through bards and family/friends up until the last century. This is all a vastly unexplored topic and that's exactly why calling it an addiction is inaccurate. Our understanding of pleasure and neurological dependency is still in its infancy yet our ability to manipulate it at a commercial level through sound, visuals, and base human instinct has grown exponentially - despite the fact that the latter has happened largely through free market trial and error.

The phrase "you could just accept that [music/video games/heroin] is a good addition to most peoples' lives and that their spending time and money on experiencing it is an entirely reasonable decision" is right out of the hardcore addicts' self-defense-from-intervention playbook (been there). Likewise, it's equally ridiculous to use music, a passive art form that has existed for thousands of years, to argue in good faith about the kind of technology that we have today. Especially when that technology has spawned several unique industries ranging from social media to gaming that are dependent on "whales" spending thousands of dollars a month and other behaviors distinguishable from clinical addiction only by the lack of violent withdrawals.
They do it really straightforwardly where I live in Wales. Garbage is collected every six weeks, from a 120L wheelie bin. Recycling (six streams) is collected weekly. Either you recycle, or you drown in trash.
Oh, I thought this was going to be a technique for humans to find their way. We need some other word for "learning" that specifies "training a computer model".
Should every programmer learn C as their first programming language?
Show HN: Meqem – Forecast as a Service
Show HN: Diceroll.app
One of our recent projects is an Ethereum Data Oracle service (https://dAppBridge.com)... the aim of this is to provide efficiency in terms of performance (Which leads to lower Ethereum gas costs) and also ease of use (Much faster dev time and integration).

So, moving on... One of the regular uses of an Data Oracle is the Ethereum Gaming area so we've now created one ourself to show the use of dAppBridge.

You can play this now at:

https://diceroll.app
How many different tech jobs are there at a medium size city? In Berlin hundreds of companies in a small area are competing to attract talent with the best pay, perks and work life balance. Even if you have kids and prefer stability, you get some of the benefits of that. And if a job change becomes necessary, you'll have a much higher chance in Berlin of finding a good fit without moving home or lengthening your commute.
What a remarkable history.
The Dell XPS 13 has been a solid work machine for me.

Portable, powerful, comes with USB Type A and C ports, Thunderbolt 3 and comes with one of the best keyboards in laptops.
VR blockchain startup founded by Second Life co-creator raises $35M
Video: Cryptocurrency trading, complete guide to trading altcoins
I wish impendia had left out of his otherwise excellent explanation the "squinting" part and stuck to explaining that the zeta function is defined by the infinite series where that series converges, and defined where that series diverge using a tool called analytic continuation.

In short:

Where the series obviously converge, use the summing formula.

Where the series is mis-behaving, use analytic continuation instead of resorting to weird infinite series re-ordering tricks (which I've always felt to be borderline offensive from a mathematical rigor pov).

My understanding of analytic continuation is that if a function f of the complex plane is sufficiently well behaved on a certain domain of the plane, it can be "extended" to the rest of the plane in a unique way that preserves the well-behavedness.

In the case of zeta, it can be shown that zeta obeys a functional equation that allows it to be extended everywhere.

A better explanation than mine is here:

https://math.stackexchange.com/questions/437883/what-is-the-...
Good response. Specifically I was objecting to this response after submitting your email address - https://imgur.com/toJaSYW. It's not clearly an advert, but also feels a little too commercial for the average user who's probably just been sent the HIBP link but isn't necessarily technical.
> You could install Linux on a 500€ laptop but you wouldn't have the keyboard or screen quality of the Macbook, nor would have access to the Apple ecosystem.

I used a 2009 MacBook pro for close to 3 years.

The following are my opinions, they are not valid for everyone but for some of us they are very valid:

Keyboard had ctrl in a different spot than every other keyboard I ever spent significant time with. (Disclaimer: some other laptops come configured this way but I remap it in bios if it is my machine.)

Keyboard lacked home, end, page up and page down keys. Instead it had extra arrow keys that non of the two resident apple fans in my office could tell me the idea behind.

Basic things like selecting a word using the keyboard would take one of three key combos depending on which app. I think sometimes it was ctrl-shift-arrow, sometimes alt-shift-arrow and sometimes fn-shift-arrow. Resident mac fan explained it was because of an ongoing transition between quartz and cocoa or something.

The application menus would appear on one screen only, often far away from the application it belonged to.

So, while I wish more people would use Macs (because 1. Lots of people like it. 2. it forces application developers to think cross platform which benefits me as a Linux user, and 3. It also increases competition) I also wish people would understand that Macs are not the best choice for everyone.
Not perfectly vertical, and you still have friction of the wheels on the track.
Laptops are not designed to be handled with one hand. It's a nice benefit but it definitely should not be the target, especially at the cost of better usability, which is the entire issue here.
Double Layer Kraft Paper Machine Line
What is the code to get the number of cars with expired insurence when using Dapper?
170T/M Corrugated Paper Machine
The XPS 15 is a bit better, I got one from last year for about the same price as my 13
People - lots of people - absolutely want to put furry cases on their phones. Don’t underestimate the desire to accessorize.