skysight-inc/HackerNews huggingface dataset:
~/apps isn't the answer.

There is already a well-established convention for ~/bin.

Applications should not be installed in user profile space.

Many supported *nixes deprecate your touching system directories /bin, /usr etc and there's a well-established convention for placing added software in /opt, a filer share, removable media etc.

An advantage of AppImage is that they don't change the system package database and can be run from /opt a share or removable media.

Yes, there needs to be a mechanism for update of third-party applications. ~/apps isn't it.

Imagine in a corporation that uses Linux desktops, 1,000 users clicking to update a third-party bloated electron app to ~/apps.
we use these three questions:
- what you did?
- what will you do?
- do you have any blockers?
usually the blockers part is useful to know if anyone is having any issues with anything that others could help.
rms mentions ITS in the movie Revolution OS, I think
No woods left
> To uproot racism, you need to rally your population behind common denominators and values.

That's all very nice but how do you apply it to the situation where you have a minority group with little to no interest in integrating into the indigenous culture?
The pip/pip3 thing is partly the fault of distros and partly due to lazy training and insufficient tooling for python.

The only distro I'm aware of which tries to protect users shooting themselves in the foot with pip is Gentoo. Most of the others will happily let you "sudo pip install" stuff and lead people to think that's the correct way to do things.

Unfortunately pipx has come too late. Pipx provides a real way for users to install arbitrary python tools, but too many docs out there tell users to use pip. Then you've got all the users who want to "play around" with python and install libraries. Even things like jupyter have crap support for virtualenvs and make it far too easy for users to have all their projects in a single env. It's a mess.

Regular users should never have been exposed to pip2/pip3. They should never have even been interacting with the OS python interpreter. Pip should only exist in a "global" contexy to support bootstrapping virtualenvs and nothing else. Poetry does a lot of this right.
Why? The onus is on you to support your argument. Not on others to disprove yours with no sources.
It's a test, you shouldn't have to sugar-coat explanations to an instructor (unless you're acting out some other scenario as part of the test).
>In September, 30,644 people moved out of Tokyo, up 12.5% year-on-year, while the number moving in fell 11.7% to 27,006, the data showed.

There was a net outflow of, wait for it, 3000 people out of Tokyo in September... the city has 14 million inhabitants. That is during a pandemic with a government that's actively trying to curb the inflow into the capital. The population right now actually appears to be up compared to one year ago crossing 14 million first time mid 2020.
I've gotten into more fights in the suburbs than in the city. My n=1 says the suburbs are more violent.
That’s absolutely not true though.
There is some truth in here. However, CMS come and go and Wordpress is here to stay. Rules, rights, extensibility. It ain't perfect, however overall rating is still best in my opinion.

I pretty much enjoy headless CMS, but at the moment in my opinion nothing beats the ease and use of Wordpress overall, devs and authors.
I have a few suggestions regarding search performance.

As others have mentioned, there isn't one "right answer" but there are a few nifty tricks you can use to boost performance.

You could try a trigram index[0] as the primary search index. You'd loose stemming, but gain language support and indexed regular expression search which is a nice power user feature.

Looking at your where clause, did you index language and textsearchable_index_col together ? If not, you are giving the planner the opportunity to skip your full text index.

if you order by ts_rank_cd then the query will sort all rows, including those that don't match. A better pattern is to take the ranking score as a column and then sort it in a subquery. [1] from stack overlfow has an example. (As an aside, from pg2, CTEs are no longer an optimization fence, so you can write the query out more cleanly with a CTE and still get the desired performance).

You should experiment with GIN vs GIST indices. GIN are larger, so on a large dataset the index might not fit in memory. You could pay more to have more memory, but worth trying a GIST index to see if that makes things faster just because it fits in memory.

A final frontend comment, I'm a fan of infinite scroll for this kind of stuff. You already have pagination effectively set up, you could spoil me as a user with infinite scroll. react-virtualized[2] is a great library for that.

Hope that helps.

[0] https://www.postgresql.org/docs/9.6/pgtrgm.html
[1] https://dba.stackexchange.com/questions/4054/ts-rank-massive...
[2] https://github.com/bvaughn/react-virtualized
The PEP [0] has been revised since then, and the current recommendation regarding /usr/bin/python is "equivalent to python2 OR equivalent to python3 OR not available at all OR configurable by user/sysadmin".

[0] https://www.python.org/dev/peps/pep-0394/
OP made a judgement call and ranked his/her preferences. So be it. I understand the sentiment.

Comparing work I do, the higher up I go the less it can feel like coding. Javascript, Python, and Ruby frameworks at times can feel like a paint by numbers puzzle - and I don't mean that to be complimentary under any interpretation.

That doesn't make good web development "easy", nor does it diminish the value of good ideas and fast product development.
Show HN: Receive Tasty Treats for Exercising
Hey! I got this idea for a small service and hacked it out as a classic MPA over a couple of weeks in node JS.

Train for Treats lets you set a target for how many activities you want to complete in a month or week. If you hit it, we send out something sweet to you like a brownie or a cookie. At its core, its a service that helps people find motivation to start or maintain a fitness routine.

It is completely compatible with Strava. So after signing up, you can continue logging activities in Strava and get rewarded for it without needing to manually log things through yet another app. I'm currently able to serve the United Kingdom.
Thanks! I would love for an experienced designer to join the project (and DevOps, and front end, and...). My email is in the profile.
There is ILS, but only on RW 22 -- https://flightaware.com/resources/airport/ELP/IAP/ILS+OR+LOC...

Based on the article, I assume they tried that a few times but (cross)winds made it too risky.
Understanding the dark nature of 'withholding s*x.'
What if $10k in India gets you the same lifestyle as $100k in the U.S.?
I used to do this, and then I got the flu.

I was unable to function for 2-3 days (as in, I would fall asleep if I attempted to read a book) and was pretty rough for a week after.

Flu != cold.
In Racket it still gets used all the time with macros. Macros are can be used like a customizable JIT compiler if you need the performance. In Racket's case, you can even run the expansion step separately like a compiler since it separates macros out as a distinct execution phase.

Functions aren't represented as lists at runtime, but you still get a lot of control via continuations. You can even serialize continuations to send them over the network or save it to disk. That does have security implications, but it is flexible and convenient.
Releasing a new version of some code is usually easier than making structural changes to a database that's in active use.

Yes, and on top of that, code-only changes need to be internally consistent to make sense but DB schema changes almost inevitably require some corresponding code change as well to be useful. Then you have all the fun of trying to deploy both changes while keeping everything in sync and working throughout.
I did not. Never felt the need for house.

Imo what kids need (in terms od environment) is locality with other kids to socialize with that is safe enough that they can navigate and play in independently from parents. By navigate I mean public transport or walkable distances.

Whether it is house or not matters less.
That is one explanation, but the explanation I tend to believe is another: Twitter quickly bans new accounts to force you to "prove your identity" by adding a phone number.
The whole string/bytearray disaster could have been prevented if strings would always be UTF-8 encoded. That way strings and bytearrays can continue to be different views on the same data. The great divide between byte- and string-data was completely pointless, especially in 2008 when python3 was started because by that time UTF-8 was already firmly established for at least a decade (it would be an excusable design fault only in the 1990's).
institutionalised
Don’t be so sure about that.

Rokos is up 44% - they are much smaller in terms of capital but probably trade similar strategies (global macro).

https://www.bloomberg.com/news/articles/2021-01-11/chris-rok...
Show HN: Hush – Swift UI cookie notice blocker for Safari
That's more of an indicator of the difficulty to gain citizenship. See https://en.wikipedia.org/wiki/Swiss_nationality_law#Ordinary...
2to3 does 95% of the job. The other 5% requires manually fixing up all the bits it missed, and until you do that, your codebase will be subtly (not not so subtly) broken. The most common problem I saw was relating to iterating over dictionary keys.

That 5% that requires manually fixing up is the sticking point. You still need to audit every line of the codebase, and each line that gets missed is a guaranteed bug introduced to your codebase by the conversion. This is not much of an issue for small scripts or tiny programs. It is an issue for big applications. This migration really highlights (yet again), the dangers of using interpreted languages at scale. With no compiler to pick up errors, no typechecking by default etc., identifying all of the remaining faults is a huge task.

Like it or not, this is a huge risk to a business. There is a risk of introducing vast quantities of bugs, and there a huge developer cost to performing the migration.

For the record, I have migrated several medium-sized codebases with 2to3 and python-modernize. Because these were internal tools with defined inputs and outputs, it was trivial to validate that the behaviour was unchanged after the conversion. But for most projects this will not be the case.

The 2 to 3 conversion will be a textbook case of what not to do for many decades to come. For the many billions it will cost for worldwide migration efforts, the interpreter could have retained two string types and handled interpreting both old and new scripts. The cost would have been several orders of magnitude less.
As far as I'm aware, France and to a lesser degree Germany also don't collect this information.

> https://www.theguardian.com/world/2020/jun/16/france-and-ger...
> I know all the people who work at the butcher, and at the fish market, and at the grocery store that I frequently go to, and always have a conversation about something with them when I go in.

This feels like a commercial transaction to me.
I'd recommend Elixir as a nice introduction to functional programming while not being too arcane.
I agree with everything that you've said except this:

> why in the world would anyone bother?

I think that historians in a hundred years would find opportunity to revive Larry King to be priceless.
Likely a key factor is leaving support for the old version. If they had immediately deprecated python 2, users would have quickly updated their packages over to a supported version.
Human brains can just barely follow deterministic logic. Computers are many orders of magnitude better at the task.

It's probably layered on top of fuzzier tasks we're better at.

Maybe a sufficiently advanced iteration of GPT could do deterministic tasks as slowly and unreliably as we can.
>> Experts hope that with the incoming Biden administration, the federal government will finally regulate a class of chemicals known as PFASs.

I'll believe it when I see it.
I live in London. We have entered our third lockdown and I struggle with my memory. The last funny one was "Game of Thrones". I just could not recall the name of the TV show. I found this article very helpful to understand potential explanations of this phenomena: memory loss x lockdown.
I think for some people that's the appeal: they want Dwarf Fortress style storytelling but the game's UI/graphics/etc are too difficult to learn/understand. So they are willing to give up some complexity of interactivity and world for a game they can play.
Totally agree. I grew up in a detached house about 1 mile from the town centre. We had fast internet, good schools and good neighbours. After moving to London I lived in apartments for a few years but decided to move back to suburbia as it's a much nicer environment to raise children in.
What types of meetups did you find worked best?
Also, reasoning in cited sentence is wrong.

If U.S. is "93% American" then on average 7 out 100 people you meet will not be "American", whereas for Japan only 2 out of 100 will not be "Japanese" - based on those numbers Japan is about "350% more homogeneous" country, not "5%" as suggested.

It is a case of Potato Paradox, where small numerical differences between values given as percentages can hide big differences in real world.

https://en.wikipedia.org/wiki/Potato_paradox
Having them wasn't a hindrance, luckily for intel. But using them to the full extent was far slower than not. E.g. call gates as a syscall mechanism have a far higher overhead compared to int80. Segments, when used in the intended finer-than-page granularity are also too slow, because changing a segment register often is very costly in terms of cache and TLB flush. That's why everyone just used a few fixed segments that almost never changed and did the interesting stuff with page-based memory management.
RaspberryFish
Created a bash script to check existing keys, create new more secure key, protect existing keys with password.

https://github.com/pforret/bumpkeys
I live in Dagenham in the UK.

The neighbourhood I live in was originally for dock workers around the Thames. Then the docks containerized and electrified.

Then the neighborhood was for employees of the local Ford plant. Then they downsized and replaced most people with robots.

Now the neighbourhood is for a mix of people being housed by the state (the unemployed, single mums etc) and people working service jobs in Central London who take the train up every morning.

That's all in the last 90 years. Less really as my house is one of the older ones.

With covid meaning everyone works from home, us service workers might all move out over the next decade.

My point is, people (including governments, companies and other groups) find uses for the infrastructure (including houses) that they have. Not the other way around.

And this is all cyclical: I remember when the inner cities were "crime ridden hell holes". They depopulated. Then suddenly people (often gay men apparently?) moved in and suddenly you can't turn around with seeing million dollar appartments, 8 dollar coffee places and high fashion outlets...
>optimal temporal span for tasting a single wine is no more than a few hours.

If you have tanin heavy wine, you might need to air it for 1-2 hours before drinking. Fortified wines can stay good for weeks after opening.
I always thought dd stood for "duplicate disk" or "duplicate device" and as such it was the "right" command to use here.

Apparently it's nothing to do with that and originally comes from "data definition" though.

https://en.m.wikipedia.org/wiki/Dd_(Unix)
Docker Installation in Ubuntu
I've had good experiences with pumping out the air from the bottle with a wine saver vacuum pump and special bottle cap. Very effective solution, next to finishing the bottle.
Why so many pages to say this?? Omg
> I think a lot about David Graeber’s work on bulls*t jobs. In an efficient market, why would profit-focused companies employ a bunch of people who by their own admission aren’t doing anything valuable?

Because the State either makes it profitable for them, or forces them to do it. Costs of that are paid by consumers (not owners or investors).

Because it's so expensive to deal with that crap, let alone lawsuits, companies automate, outsource and lawyer up.

And the worst is yet to come - as soon as Biden gets his socialist measures going, watch unemployment jump 5% by end of 2021.
You mean the same exact problems urban areas have? Read about San Francisco’s sewer issues, state of roads, and how 1 mile of tunnel costs over 1 billion dollars. Read about NYC’s water issues and how one tunnel supplying water to the city is in disrepair.

https://www.sfgate.com/news/article/Sea-Cliff-Mansion-Tumble...

https://www.sfexaminer.com/the-city/new-central-subway-direc...

That Central subway is probably going to be roughly 10 years late.

I read the roads are better now after 650M dollars.
After a decade of dealing with a fleet of wordpress sites (most of our smaller clients has a wordpress site), our team has settled on a workflow when dealing with wordpress sites for our clients:

- a custom docker image suitable for use in docker/kubernetes environment. Vanilla wodpress docker image is not suitable for most of our needs, so we build our own images which includes everything we need an nothing more.

- security issues are rare if you follow basic security practice: strong password for administrative users, not installing plugin/themes from sketchy sources (pirated plugins/themes), and keep the number of installed plugins minimal.

- Sometimes a site was hacked by automated bots exploiting zero days in some popular plugins, but we have a clamav instance scanning the wordpress fleet's nfs volume regularly that flags them in timely manner. Containerization is a huge win here because it allows us to quickly redeploy the site with fresh install and prevent the bots from jumping between hosts (none of the bots we're dealing with are sophisticated enough to escape the container).

- Content was a major headache. Each site can use different themes with varying level of quality. We solved this by using Beaver Builder for all new sites with a custom, super minimal theme. This allow our content people to build the site layout visually while minimizing code bloats. This setup is also very cache friendly, unlike some of the themes I encountered in the past.

- Caching is very easy as everything is containerized. Just add a new memcache/redis container into the pod, which is just a few lines of yml or a checkbox in our internal tool. Same with daily backup and granting sftp access to external parties.

- When a client outgrows wordpress, we'll transition them away into a custom solution.
The hardship of porting from 2 to 3 very much depends on how critical the software is. Porting 1000 lines of python 2 that deals with files encoded in various ways where it’s impossible to test all edge cases and where a failure might lead to huge liability charges is hard not because it’s hard to run 2to3 and do some random tests, but because you don’t know what you have missed. And still, a 300k lines of code project might be fine to just run 2to3 on and then find the bugs as you go. It’s a matter of context.
The problem was that you could only port once all the libraries you use had ported, but libraries didn't want to commit to abandoning Python 2 quickly.
I expect better phrasing than “Forever Chemicals” from Scientific American. Using ‘chemical’ as a scare word is unbefitting of actual science. I mean water is a “forever chemical “ by their definition.

I’m not saying there are not harmful chemicals in drinking water, I'm not saying this article isn't raising good points. I just think using “chemical” the way it’s used by fear mongers who don’t understand or care that literally everything is a chemical isn’t helpful.

Here is a post from Scientific American on the very topic

https://blogs.scientificamerican.com/guest-blog/chemical-is-...
Finland has this exact same thing. We call them "Rintamamiestalo", translates to something like "Soldier house".

They're all pretty much the same kind of two-story wooden house, people built them in bulk when they got home from the war. It was an event like an Amish barn raising, the same guys built a ton of the exact same house one after the other.

Now they've got maybe the second or third owner and the designs have diverged quite a bit, but you can still find the central house if you know how to look.
My project builds 20 binary wheels supporting most platforms except ARM (todo): https://pypi.org/project/elkai/#files It's one line of code using CMake. [1]

Granted, you also need CI that has most Python versions/platforms and the Python CMake extension by scikit team too. Ex. MacOS Travis with brew [2]

[1] https://github.com/filipArena/elkai/blob/ef8ee98d8114240b204...

[2] https://github.com/filipArena/elkai/blob/master/.travis.yml
This isn’t “coming from Stanford”. It’s a paper written by three researchers, one of whom is on the faculty at Stanford. But that person doesn’t speak for Stanford and has nothing to do with Stanford’s policies in re COVID.
Just off the top of my head for countries that also track ethnicity/race in government statistics: Belgium (because the Walloon/Fleming ethnic divide is so central to its politics), Germany (under the euphemism "migration background"), Russia, Israel, Lebanon...

Ethnicity is an extremely important identity category, and if you want to manage that diversity you need information.
Small web and simple web is html. Why this?
> About 2.2% of Japan's total legal resident population are foreign citizens

You've conflated "citizenship" with "ethnicity".
You make them do it anyway.

It's interesting to note in this context that unlike most countries, China fully assimilated its Jewish population.
Yes, but the reason for that is, that Switzerland has a really difficult naturalisation process and is a smaller country.

If all humans migrate a similar distance on average, you would expect that a smaller country that is surrounded by other countries to have a higher proportion of immigrants.

Notice that for Switzerland, you need to use the term non-citizens and can't use the term immigrant. That is because a good portion of the non-citizens are not immigrants and have lived here for their entire life.
I wonder why they don't just do a direct listing and sell it to retail investors.
It's a great move but nearly every lang on Earth has a solid 3rd party Win32 library built over years and battle hardened.

Waiting patiently for Microsoft to actually put some effort into the obscure TPM documentation along with making it easier for developers to implement.
I guess it could be if you wanted it to be. But if you just wanted a coffee with no social interaction or sense of local community, you’d be better off going to a Starbucks over a local shop.

Any human behaviour examined from the correct perspective can be attributed to an egoist motive.
Don't forget about native dependencies. Any Python module that embeds native libraries needs to remain binary compatible with the host system. And because Python doesn't control this in anyway whatsoever, it's a lottery if things break on a current system, let alone an obsolete virtualenv one where the chances are even higher.
Somehow it feels like PHP being a synonym to WordPress and Node going though babel makes these languages different too from perl and python too.
> Telegram has plans to monetize metadata just like WhatsApp.

This is a blatant lie without any evidence. Durov said they might consider advertising in channels, as is currently already done in many languages -- just not through Telegram directly.