skysight-inc/HackerNews huggingface dataset:
Depends on your goals. For example, when writing a real-world application today, the standard library provides you with a "good enough" sorting and searching algorithms and dictionary structures. The whole 600+ pages of volume 3 are dedicated just to these topics. You aren't going to be a better "everyday" programmer after studying that book. (Though I'm not aware of any language that has radix sort in its stdlib :-))

However, they are a well of ideas as well as extensive treaties on "esoteric" topics (e.g., testing sequences for randomness, derivation of FFT, sorting networks, external sorting...)

Knuth has written that he plans to remove the section on external sorting from the next edition of vol 3 (if _that_ ever happens)… though think about the cache effects on modern CPUs: could we sort faster by thinking of the cache as "internal memory" and of RAM as a "tape or disk drive" and applying a decades old external sorting algorithm?

Similarly, most sorting routines rely only on less-than, but often your comparison routine returns -1, 0 or 1. I implemented string sorting in C++ using 3-way comparison (instead of just less-than) and it was actually faster!

The exercises and their answers are source of gems as well, even if you just look up the answer to use the result.

Also, I never read them cover-to cover. When I'm bored, I take one volume, pick a chapter/section and read it and skim through exercises, at the same time thinking of what that could be applied to.
Games of Thrones – Wie Im Realen Leben (German)
Conversational Commerce History
The Complete Guide on Conversational Commerce https://blog.kore.ai/the-complete-guide-on-conversational-commerce
Evolution Is Not That into Sex
What 40k Videos Tell Us About the Trending Tab
> Personally, I've found numeric computation more useful in 99% of the cases; do others have a different experience?

Yes, of course they do. For example, if they want to obtain a general, symbolic, solution to a problem, rather than estimates of particular numerical values. I'm sorry to sound a bit dismissive, but on HN it is common to hear people say stuff like "Oh, I find code much more helpful than math" and it's a bit embarrassing.

Just to give one example out of the entire universe of human mathematical activity, suppose you're doing statistical inference. You've developed a likelihood model for the data-generating process, and now it's time to implement the actual inference, say in a Bayesian MCMC, or a rejection sampler, or importance sampler, or whatever. Those are numerical algorithms of course; but they need to repeatedly evaluate the likelihood function at millions of different points in parameter space. Now, your likelihood function, was developed to model the real world. And perhaps the resulting equations are a little complicated. You may be able to achieve a vast speed-up of your numerical algorithm if you use a symbolic algebra system to find/confirm a symbolic simplification of your likelihood function.
Go does not have generic arrays any more than C does. You cannot e.g. write a generic Go function to reverse an array.

You seem to be conflating type-parameterized collections with generics. You can use generics to implement type-parameterized collections, but it doesn't really make sense to think of type-parameterized collections as a form of generics unless you can actually abstract over the type parameters (which you can't in Go).
Great website! really puts in persepective the change over the year, for example:

https://quicksold.co.uk/house-prices/cb58qu

Over 20 years the price in this post code (residential area in Cambridge, not luxurius) went from ~40k to ~250k

I am also always excited about how well the UK handles it's open data. There is just so much and it's all well available.
PDFs to web form, make your users effortlessly to fill out
Generics should have been in Java (and Go) from the beginning.

Those surely are not the proof that Java adds "everybody's favorite feature". I think the parent means the newest Oracle projects (Valhalla, modules, value types, streams, and so on).
Even saying "Islam/Christianity/Judaism" is too broad. There are many sects within each religion.

If someone wished to paint with an equally broad brush, they could say "atheists persecute homosexuals", citing the behavior of Russia and China. And that would be true, in the same useless sense the above argument against religion is true.
I think the guilt itself exacerbates procrastination. Perversely, I only stopped procrastinating once I stopped beating myself up about it.

Now, I tell myself that some problems just need to marinate, or that I have some other need that I'm not addressing. I use procrastination as a signal that something else is wrong. It's been very helpful.
I think this is related to the "normalization of deviance" which permeates all domains.
Formation of the moon brought water to Earth
Compiling SQL -> native I'm not sure deserves to be described as niche, since lots of analytical queries can benefit from that. Worth pointing out that Postgres has a JIT compiler [0].

[0] https://www.postgresql.org/docs/current/jit.html
Definitely.

Apple has a couple of eGPUs they made with Blackmagic (AMD RX580 - you don't want this one - and Vega 56), very slick looking and silent but unfortunately GPUs not user upgradeable and not great value for money.

You can use most tb3 eGPU enclosures and an AMD GPU of your choice. Vega64 prob the best choice now, Navi around the corner, can't use NVidia at all thanks to Apple. It'll cost you less than the official Apple eGPU and the GPU will be upgradeable
The way I see it based on atemerev's comment, the American treatment of immigrants is part of their strong local culture.
I much prefer the touchpad. It's so nice being able to click the top part easily.
Ah, like the C based security exploits are the fault of programmer and not the lack of safety features to start with.
China Deserves Donald Trump
Use two Mac apps side by side in Split View
Europe has not given itself a free pass when it comes to colonialism.
For example, at the moment they're hiding a bell in Cambridge University lest it turns out to have formerly been used on a slave plantation.
There was no government organised genocide in British colonial history that I know of, not even in Ireland in the 17th century where arguably the worst atrocities were carried out.
Saying Britain killed millions in India in WW2 is complete hyperbole.
That is unfortunately not scalable. It is nice to have for example a team of devs using the same distro. It makes it easier to help one another, debug the system and install packages. I at work couldn't have prompted the team's switch from ubuntu to arch without Antergos. It basically made widespread adoption of Arch with little compromises possible.
Thank you for your kind words. If you are interested in getting to know more about CB5 8QU, we also have a page that lists even more information about it. https://quicksold.co.uk/area-information/CB58QU
Shame its only available in the US
Wow. I guess the art world will really buy anything. Surely the computer will die at somepoint and become worthless?
It's already done: https://microg.org
You want to revolt against how society has worked pretty much since the dawn of civilisation?
There is already microG: https://microg.org
Hi, first of all I love VLC, but I have to say that if an ad is being served on my website, I would absolutely consider myself responsible for it.
How to Play Call of Duty Mobile on PC with NoxPlayer?
I'm not sure I follow your point. We aren't talking about pop history; we are talking about whether there is shared Christian morality.
Viva La Keyboard Shortcuts
This was the one that got me:

> model.get(4); // out-of-range, undefined behavior (probably segfault)
Very true. We have some cluster users on Gentoo, who are happy that they can simply flip off all those pesky performance-eating security mitigations system-wide. Not only in the kernel, but also userspace side PIC/PIE/SSP/etc.
> why are you opting for Arch?

Because it has fast, rolling-release updates, little changes from upstream, and any package you will ever need (either in the repos or the AUR).

There are many things nice to arch apart from the basic install. You can install very minimal debian systems, very minimal centos systems, very minimal gentoo systems. All with this and that bootloader and partition layout. It's not what people usually pick a distro for.
Yes it does. Manjaro provides a GREAT user experience. I tried it on my laptop and I truly enjoyed it.
> Can modern windows or linux come even close?

The Surface line trackpads are extremely close and their keyboards actually surpass current Apple boards.
Wow really? Interesting! Citation needed please!
Be careful. Rob Pike asserted Googlers can't handle an "advanced language" or whatever his exact words were, but he provided no evidence this was true, or that others at Google agreed with him, or that this was even the reason Go was created to begin with.

The most obvious evidence he's wrong is that Google's codebase is all C++ and Java, both languages that have generics and other more advanced features than Go. So apparently Googlers can use such languages just fine. What Pike was claiming was that Google had at some point dropped their hiring bar dramatically and somehow nobody had noticed this or commented on it, despite how controversial it'd have been inside the company.

I rather think that this comment about Go is not reflective of any real strategy or decision inside Google. Go's creators were bored and wanted to make a new language, so they did. The justification for what it looks like was then retrofitted on top.
Show HN: WordPress on AWS interactive architecture diagram
They are not trying too hard to make it fun and entertaining. But it ends up much more entertaining than modern chewing gum tutorial videos.
The goal of an MVP is not to write crappy code to get something quickly out of the door but to not build every feature into all details to get all of the parts together and see how they work first. It's about the code you don't write, not about the quality of what you do write.
The given example was send to jail until the end of his life. Looks like standards enforced to me.

It's also the whole point of licensing: You have a standard you can enforce and if people fail to fulfill it there are consequences.
It still lives on fine, turn on the developer tab in Excel and there is VBA 7.1 (which is basically still VB6 with a different forms engine)
sure, but the trackpad criticism is still valid.
Exactly this part of the project gives it it‘s value! The fun part everbody does in the beginning is over.

Knowing this gives me the motivation to push through.
Important Changes to Seller Fee Taxability on Amazon
Money? Low taxes? Richest country in the world?
Sadly, I've mostly come to the same conclusion in that I at least need a MIP Gap to tell me how far I am from the optimal solution.

My only issue with LP and MILP solvers is scalibility. You have none! Multicore doesn't really seem to help any.
I've been running Ubuntu on my Latitude 6650 since new a couple years back. Unfortunately due to my company moving to Office365 fully, its no longer viable for a daily driver - mostly due to no support for Teams (except for a crappy broken web interface), Outlook & OneDrive.

Always had Windows available in Virtualbox, but its definitely slower & had endless audio issues with conferencing (you don't want to be the guy who always has sound problems)

Now switched to Windows 10 on a dual boot - which is much easier on the fan, laptop not running nearly as hot as switching between the GPU & onboard graphics is seamless. Despite decades of Linux experience (servers & desktop) I could never get Prime working properly to switch to onboard graphics when needed...wasted days of my life on this.

Despite this Ubuntu 19.04 has big improvements in driver support & if it wasn't for Office, I would have gladly stayed on Linux.

Now its Kali in Virtualbox for me which is almost as good as running natively.

Windows has better toolbar management, mouseovers & switching between apps. Also since Ubuntu moved back to Gnome, switching between Virtualbox VMs has been buggy (display driver issues no doubt)

Linux has a better file browsers (windows explorer hasn't changed in a decade, no tabs & looks terrible) & much better terminal options.

I'll miss Linux as my daily OS, but I guess MS has its grip tightly on most organizations balls these days.
Hi, author here.

I believe the inputs are already appropriately escaped by passing them through `sql.Identifier`. I have added a comment in the gist about this as well.
If it was about skin colour, the deaths of a million Irish in the Great Potato Famine would not be considered “totally different” to the deaths of 3-7 million in the Holodomor, also known as (Stalin’s) “Famine-Genocide in Ukraine”.

I think it’s mainly that the UK, as the winner, got to write the history books.

(I’m not claiming that it cannot be partly racism — how many of “us” know about the Belgian Congo? — but mainly it’s “we are settlers, you are colonisers, they are invaders” and “our boys are heroes, your boys are soldiers, their boys are barbarians” in people’s minds).
A math-aware search engine
Fortunately it is not as grim as you describe. People have different levels of resistance to motion sickness. Even with titles that offer significant disconnect between physical and virtual motion (e.g Climbey), an hour is something that for me is easily achivable and enjoyable (and even beyond that it's more a problem of getting physically tired of the activity, than of motion sickness). I believe I am not that unique in that regard and there is actually significant percentage of population who could also easily go beyond those "15 minutes of VR".
I have never understood the effect CQRS seems to have on developers ? It's a pattern that should be treated and applied with absolute cautiosness.
---
A command feeds a data store, without ever returning anything back.

Given a query a system returns some relatively useful model back.

Honestly, why is this so interesting ?

Sure, you might want to add some autonomous component(s) that manipulate data before returning them.

A good example of applying CQRS to a small part of a system is e.g

1. Data is constantly being written (commands) into the system, excessively.
2. You want to present a "snapshot" of the data, because trying to do it "realtime" for all your users will demand too many resources, and your system will come to a hault.
3. You create the "snapshot" every 10 seconds, from code in an autonomous component, and then store it as a serialized object in a data store. Like a cache sort of.
4. When the query asks the system, the system loads up the "snapshot", deserialze it, and returns that.

Here you have two independent read and write systems. That's CQRS for you.

Do not apply this pattern with a loose hand.
Well I'll take you at your word that you're interested and 'not doubting' my story. But can you at least see why that isn't the impression I got from reading your comment? You even said you thought people were swayed by bouncing animations and fancy docks! [Edit: and that very dismissive status symbol comment - believe me, you'd laugh at that if you saw me in my crude rainforest shack, with nothing resembling a developer's office within 100 miles] FWIW, which isn't much, I always auto-hide docks, and DE preference is roughly i3/sway > Gnome > macOS > Windows.

Linux use for me isn't so much a matter of large technical hurdles, but the death of a thousand cuts. By the time of my last f/t Linux use round (just a couple of weeks ago) I didn't have any outstanding tech issues. There was nonessential hardware I couldn't get working at all or well (fingerprint scanner, SD card reader, gpu switching), but I could live with that.

It's more a matter of having a constant barrage of small issues, often with new software I install, each of which is quite soluble, but only after reading documentation (often poor). That's just not how I want to spend my time. I'm not going to enumerate the issues because, as I say, by and large I solved them. They are mostly trivial but constant. I would rather have spent that time listening to music, or learning Mandarin.

I keep logs of all my computer admin & troubleshooting in markdown files. I've been roughly 50/50 linux and windows over the last year. Eyeballing the logs, it's clearly true for me - Windows gives me hardly any issues to solve at all. I install stuff. It works. I get on with my work and the rest of my life. In contrast I have vast reams of notes about the various little niggles I had with Ubuntu and then Fedora.

[Edit: sorry - I forgot your I just find it somewhat hard to wrap my mind around the specifics. So just one example. Nothing big, but bear in mind I'd have something like this at least 3 or 4 times a week. I want to be able to dial down power use sometimes - if I'm low on battery, doing undemanding stuff and won't be near an outlet for a while. Windows: I didn't have to read any docs. Click on battery icon, and slide left on the popup control. Fedora: click around in gnome and find nothing. Search for info on how the Gnome power management interacts with whatever service is started by systemd. Find nothing up to date (Fedora doc on the topic was from version 14 or 17 and bore no resemblance to my version 30). Read up a bit on tlp and powertop, but still unclear on their relationship to whatever Gnome does. Find broken links to relevant AskFedora posts because they've deleted all the old pages moving to Discourse. Ask a question. Get no answer. I could have solved it eventually with a bit more reading, sure. But like most things I wanted to do, it would take orders of magnitude more time to figure out than on macOS or Windows.]
Got the 6-core one a few months ago, what a great machine. I love the 4 usb-c ports that can turn into anything I want. I like the Touch Bar, the only question is why I cannot get this for my iMac Pro as well. The keyboard is very nice to type on. It is a super fast machine. Love the screen. And with AppleCare plus, I am not afraid of components failing. Stop the whining, bitches.
Migrating React Native App to React Hooks
You can't fully make that distinction until it happens.

Sometimes you can say "I know this will need to be rewritten later" and be pretty sure you're seeing technical debt be accrued.

But other times you have no idea. It might be a tool that was intended to be used for a few weeks, but turned out to be incredibly useful and lasted years. Had you known, you might have written it better if the first place.

Technical debt isn't like financial debt in that there's nobody with an accounts sheet telling you that you owe them anything from the start. You don't necessarily make a deal with anyone. So you can't judge its existence in the same way.
Samsung Launches Wireless Power Bank and Wireless Charging Duo Pad
Sure they did. They rewrote it in another language and phased out the Silverlight language completely.
Ankara.
It does indeed thinking about it like that. But since the gears would be bumping into each other rather than just pushing each other would that cause them to deteriorate faster?
It also benefits large players as a chain of companies producing a product would have a larger combined revenue than a single company with teams doing the same work.
> so he’d be wise to curb his nationalistic “no-one-tells-China-what-to-do” bluster

This comment highlights both ignorance of Chinese history and continuing American arrogance.

China has been painfully dictated what to do during the last 200 years. This has had a profound effect on the country and has led to the collapse of imperial rule and the drive to 'rejuvenate' the country (to use the official term in China).

This is also arrogant because it suggests that China should be told what to do coming from THE country (the USA) that really is the archetype of "no-one tells us what to do".

I would quip that one of the US's issues with China is that China is not told what to do and is too big to be easily coerced. A bit of a rude awakening for the US...

> Huawei then uses ... its rising global market dominance to set the next generation of global 5G telecom standards around its own technologies, not those of Qualcomm or Sweden’s Ericsson.

Which is exactly what Qualcomm did for 3G. Don't hate the player, hate the game.
So it was actually a specific group that had a specific problem with it and it wasn't a wide spread and general opinion. Well...
Ouch. Sucks to read that. For anyone who might be interested in a possible alternative to this, I keep two bank accounts with the same bank with only one being connected to my debit card. I keep a tiny balance in the account connected to the debit card so that even if I lose it, the damage is minimal. Whenever my balance is running low, I do a quick transfer via online banking.

No idea how feasible this might be in other countries, but wanted to share in case its helpful. It's really helped me have ease of mind in using my card when I've been abroad.

Doesn't stop me from attempting to dismantle any ATM though whenever I use one :')
Yes, I was thinking that the benefits of k8s must be huge to invest in this upgrade cycle. That or the upgrade pains must be small.

AWS is very good about avoiding premature deprecation (you can still use simpleDB as far as I know) so for them to have this policy means that k8s deprecation is very prevalent and that customers must be prepared for the move. Because I am sure they spoke to customers.
Rapatronic Camera: An Atomic Blast Shot at 1/100k,000th of a Second (2014)
Modern problems require modern solutions.
Edge is getting an IE mode, right? That should help test/view sites on that were meant to run on IE.

I realize this is an edge-case (pun not intended) but just pointing it out.
The Five Universal Laws of Human Stupidity (2017)
I really do wonder whether Apple is running afoul of consumer law here. Surely $1300 is not a reasonable cost for a battery replacement.

Last time I looked I was quoted somewhere in the neighbourhood of $600 for a rMBP battery replacement - but that was just the battery. Even that IMO is not a reasonable cost for what it is - the only reason it costs that much is the fact that it's glued in, and the fact that Apple charge so much for the part.
Interesting. I can't reproduce that problem. Piping to less works perfectly fine on both my Linux and macOS machines.

If you're willing, I'd definitely appreciate it if you could update #513 with your environment. In particular, by answering these questions: https://github.com/BurntSushi/ripgrep/issues/513#issuecommen...

If it's convenient and you could try it in a different environment (perhaps a different terminal emulator or a different shell), then that would be great.

Also, this doesn't sound like a multi-threading issue to me, but if you want to rule that out, then `-j1` will force ripgrep into single threaded mode.
Tor Browser 8.5
Majority of open source contributors have a day job.
Exabeam joins hands with Deakin University to fortify security management
I wouldn't call Go a systems programming language. Having a GC alone sort of removes it from that category.
Merci Romain pour tout ce taf :)
Here's the announcement: https://www.youtube.com/watch?v=VeqF7zcBOVA

It was revolutionary, and they removed it.
People who understand financial debt don't think of it as evil. It's a tool they use.

Technical debt is the same way, and I often talk about it that way at work. But it's a phrase that means something that "business investment" doesn't. When I tell my boss that we're incurring technical debt (and what exactly that debt is), he is already in the "business investment" mindset on the matter. I'm the one trying to reign that in and focus on making the future easier by avoiding some of that debt now. But I fully understand both sides of the matter.