skysight-inc/HackerNews huggingface dataset:
Not bash but git aliases, as a consequence of our gerrit workflow:

alias.gerritpush=push origin HEAD:refs/for/develop
alias.fixlast=!git commit -a --fixup=HEAD && GIT_EDITOR=true git rebase -i --autosquash HEAD~2
alias.loglast=log -n 1 -p
Well it was you who picked the century to illustrate your point.

Many of scientific/technology terms have different colloquial uses. Context makes all the difference, as am sure you are fully aware.
I was at university working on a side project: I wanted to have my own movie torrent website. The idea was to list movies and under each movie list the best available torrents.

This is now a pretty common feature, but at the time trackers only had a list of file going like Titanic.1998.DVDRiP.Proper.MyGroup.

I was able to fetch the torrent, but the hard part was linking each torrent the correct movie (by IMDb ID). I tried for ages to get it right with reg exp to extract the movie title from the torrent name, use the IMDb API, and so on until I found the solution.

The solution, was to just simply take the torrent name, extract the year as the last 4 digit sequence, remove all regular tokens like dvdrip, TS, xvid and so on and perform an automated google search on the string: IMDb "Everything else" (Year). and extract the ID from the first result. It took me less than an hour to implement, and gave absolutely glorious results, matching movies with typos, rejecting non movie torrent and generally getting a fantastic accuracy.

I went on to release the website, which went on to become semi famous in the field and the consequences for me were :

- Sometimes complex problems actually have simple solution, think outside the box, you don't have to do everything yourself.

- I actually earned money from some ads I put there, which made uni life a lot funnier. I also experienced what it's like to put a ton of efforts in a product only to get a very slow growth. And then see "something" happen, and you get rewarded for all of that. In a way I felt like a founder.

- I maintained the website for years. I was able to apply most of what I learned in my lessons on an actual product, learn new stuff on my own, and faced challenges like scaling that my peers simply could not grasp. I finished uni with top grades and a significant reason for that was my illegal torrent website.

- I got a ton of recognition for my work from friends and family. Even met someone at a bar that wanted to show me the cool website he found when we started discussing movies. One of my bets memories. I started working at BigCo and did not get that kick anymore, which prompted me to change path and work in startups. Really happy with that choice.

The code itself was simple, not really beautiful or efficient, non scalable, completely against any TOS you can dream of, and the goal was to aid movie piracy. It dod not generate million of USD. It probably did not change the life of many, but it changed mine
Core observation I have about a lot of startups (and other businesses): the ROI for sales and marketing is much better than the ROI for delivering actual value to your customers. Therefore, bullshitters tend to outcompete people who care about the product.

"If you can’t sell, starting a business is probably unwise" may be realistic, but it saddens me deeply as a human being.
Interesting. Mine was a Motorola handset. I gave up with Android in the end due to stuff like this. I don't want to have to fight the tech I use to keep it doing what I want it to do.
This site has been invaluable to me in the past, especially when I was traveling by train through India and China.
An example of this problem is casting shows to Chromecast. Android often kills your app in the background while you're watching, and now your Chromecast controls don't work and you have to reconnect.
Re: 2. You say that happened at coffee gallery, why would strangers at a coffee shop be aware of your suicide bag? I feel like I’m missing something as to how this would occur, or why it would be relevant.

Regarding duplicates; when I’ve reciever campus alerts from various institutions, I have on occasion reciever duplicates.
This is awesome! Be sure to mkdir ~/.vim/undodir first as vim won't do it for you (or didn't for me)
I agree, but for me, I prefer having some symlinks than having to deal with git CLI :(.
> I gave myself 9 hours per day to make progress on research. I gave the rest of my time to my family. I negotiated some exceptions with my wife (paper deadlines, conference travel, late meetings that others scheduled),

Wait, missing a crucial detail here - so his wife was a SAHM, or a PhD student as well?
> in Brighton £38k

Interesting. This is roughly the amount they're offering contractors in Poland.

Everywhere in Poland on top of that, because it's considered a single region, so you could possibly live in a small town where rent is ~£250 and other expenses proportional to that.
> Smartphones are turning back into dumbphones. We have to fight back!

Actually, it is not a bad thing.
> alias .....="cd ../../../.."

How often do you use that and how often do you get it right? :-)

My cd related aliases are the following. Especially the .<number> is surprisingly useful, although most of the time I only use .2 and .3

alias ..='cd ../'
alias .1='cd ../'
alias .2='cd ../../'
alias .3='cd ../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../../'
# sometimes, the space gets swallowed
alias cd.='cd .'
alias cd..='cd ..'

But that gave me an idea for another useful directory changer: "go to project root".

Project root definition could vary, although nowadays it is probably "go to the first directory upstream with a .git directory"

Edit: found this elsewhere in this discussion posted by jgresty https://news.ycombinator.com/item?id=18901834

# go to root git directory
alias cdgit='cd $(git rev-parse --show-toplevel)'
I can't believe i never thought of using command line switches for that kind of stuff, i always just have firefox set to forget all data on close.

Not exactly a bash alias, but might be useful too: Since I often get bug reports for specific versions of firefox, i've set up a small script for downloading and starting a given firefox version:
https://pastebin.com/t2PHxJqE
You know, can you just stop it with the superiority complex ? I'm European and I travel to the US on a very regular basis. European healthcare is mostly market based, and where it's not it has exactly the problem economics predict: rationing. And rationed health care is quite simply worse than expensive health care.

"Markets" simply means that mostly people can take care of each other. For the most part, that's true, and has many very positive sides.
use parallel compression/decompression

alias bzip2='pbzip2'
alias bunzip2='pbzip2 -d'
alias gzip='pigz'
alias gunzip='pigz -d'
alias xz='pixz'
alias tar='tar --use-compress-program=pbzip2'
alias tar='tar --use-compress-program=pigz'
I've always been an optimistic and motivated person, so I can't speak for depression and laziness. But I can speak for burnout.

For me, burnout is the result of a long period of intense work and effort that accomplishes little. I experienced this in my last job, where I was brought in to a specific purpose by a motivated boss who quit the company a few weeks later. The rest of the org was too bogged down with politics, lack of tech leadership, and other organizational issues. I put in a lot of effort as an individual SWE to fix bugs and help other teammates when they got stuck, but nobody else was putting in so much diligent effort for the sake of the team. I burned out and a t the same time realized that I was on the wrong team, when (1) people kept coming to me for help with the same things I'd already taught them in the past (2) I had way too many moments teaching other people how their own code works (code that they own, that I'd barely looked at) (3) too much energy was spent dealing with other teams rather than on our own team getting work done (4) I had three managers in 18 months (5) everything was owned by multiple teams, and I wore myself out working with too many components that should have been strictly divided between teams.

I have since moved to a new team. This is a much better team -- no politics, no BS, just a few diligent individuals getting things done.

But being on the right team doesn't fix burnout. I'm still burned out from my last job. I took the last six months to ramp up on my current job but I need to take time off soon.
Your Easy Guide to Latent Dirichlet Allocation – Lettier – Medium
Ten years ago, every browser would have featured a prominent orange button. People wouldn't have a clue what it was for, but you could point them to it, and the browser would present som sort of live bookmark system or whatever. It was worthwhile to deliver a feed.
Then Google embraced, extended, and extinguished, and also the Facebook nightmare began in earnest.
Therefore less undead today than then.
My git related aliases:

alias master='git checkout master'
alias f='git fetch --all'
alias s='git status --untracked-files=all'
# go to the last branch I worked on, excluding master and the current branch
alias lb='git checkout `git for-each-ref --sort=-committerdate refs/heads/ | grep -v refs/heads/master$ | grep -v \`git rev-parse --abbrev-ref HEAD\`| head -n1 | cut -d \/ -f 3-`'
Indeed it felt that way, but in practice the 6502’s indirect addressing gives you 128 16-bit registers compared to the z80’s 5+3 (hl,de,bc,ix,iy,hl’,de’,bc’) which is a winner for code generation and macro programming.
No, you're forgetting tape-based operation tracking (requires_grad=True).
Dead drop based drug distribution doesn’t scale to retail levels. It is used in Moscow and I know of people who will order from a dealer, then search the surrounding area and clear out all the drops they find. It works for them, although one questions the sanity of stealing from Russian drug dealers.

For more practical guides on how people who sell drugs avoid the negative repercussions:

• AlpraKing’s business guide is hard to beat. https://archive.is/K7j1U
(It’s a great business guide in general, actually)

• Gary Cooper’s Never Get Busted Again and Never Get Raided Again shows practical use of dead drops for dealing.

Busted: https://m.youtube.com/watch?v=ZyAjLkBCWKI

Raided: https://m.youtube.com/watch?v=ML6VAy_ygVs
ah, I've been using `nyancat -f1`
related recent thread: https://news.ycombinator.com/item?id=18898523
Why my startup took four steps back in 2018
There is no "core location", and also you can't demand remote companies to implement completely equal salaries while in-situ jobs (and rents) vary wildly. It's a double standard.
Structure and Interpretation of Computer Programs (1985)
Funnily enough, I did the exact same thing but for zsh's two-argument cd:

cd() { if [[ -n "$2" && "$1" != "--" ]]; then builtin cd "${PWD/"$1"/"$2"}"; else builtin cd "$@"; fi; };

It's niche functionality, but super useful when you hit its niche:

user@machine:/usr/src/linux-kbuild-4.9/scripts/mod$ cd 4.9 4.8
user@machine:/usr/src/linux-kbuild-4.8/scripts/mod$

I'll leave combining these two as an exercise for the reader.
"It might not be the perfectly optimal…"

Indeed.

I recently discovered Pomodoro helps me stop worrying about doing the most optimal thing: it gives me an "excuse" to just do one thing for 25 minutes at a time. What's the harm!

An interesting side effect of doing something/anything is that soon enough the real priorities become clearer.
How to solve missing push notifications in Android
Problem with Product Roadmaps
Such a relief to find this! Some of our users use our Android app for very time sensitive notifications. They constantly come to us saying that our apps and push notifications are slow. It always seems to come back to battery saving modes for their specific Android device, and a quick Google and following the top steps never seem to work. This is so very helpful!
Seconded, I take psyllium husk powder daily. Am I missing something by doing this that I would gain with more typical sources of fiber?
Grandpa is exactly the target market for GoDaddy. Look who they've got advertising the company in Australia.

http://yaffa-cdn.s3.amazonaws.com/adnews/live/images/yafNews...
Excellent if you also use gundo, which gives a nice visual interface to the undo tree in vim.

https://sjl.bitbucket.io/gundo.vim/
It gives you more real estate on your monitor.
This is rather like "bits have no colour", which is true if you only look at the bits. It relies on not looking at the context, and then declaring the context irrelevant.
Then society (government) should try to fix the problem structurally, by shifting the demand curve and supply curves.

Increasing supply of housing, of kids who can perform high wage jobs, etc. The prices coming down will be a marker of successful efforts to make society more equitable.

And if everyone wants to live on the California coastal region though, since you can only shift the supply curve of ideal real estate so much without affecting its ideal-ness and then it becomes a problem of how to triage, which thus far has been letting people who can afford it, pay for it. Only other option I see is some type of random lottery.
That's most of the internet for me (off black text on off white backgrounds). Firefox reader mode is my saviour.
I was in this camp too, but bought iPhone X and very satisfied. Bigger screen and easier to read. It’s interesting that iPhone XR has some other virtual resolution, so text on the default settings is actually smaller than on iPhone SE. Don’t tell me about font settings and accessibility controls, it looks awful. :(
Go to the developers settings and turn off MIUI optimization. That's the only setting that worked for me. No more killed bg apps.
> United States and North Korea agree on nuclear physics: they use the exactly same number for cross section. They don't agree much on humanist issues.

This is true but concluding that therefore there's "not much to learn" seems like the worst possible way of resolving this conflict.
Designers Spill the Beans: How to Make Your Own Logo from Scratch
Recently I limited the number of background processes on my phone(Galaxy S8) to two.

On one hand lag is essentially gone, on the other I usually have to "restart" an app(in the Android sense of the word) if I want it to regain focus. E.g. tabs in Chrome always refresh, which has its downsides.
UseContext Hook to create Compound components
I've never had any issues with alarms not going off either, on my Nokia device running Android P
> Rabies shots came to around $17k billed, I paid around $2k

Am I understanding something wrong or what ? Rabies vaccinations are something about $10 in India. I knew prices are up in US but this seems another level.
"Stack Frames"? I think they just pushed the current values of pertaining variables onto CPU stack upon entering a recursive function. Does Pascal even have lexical/dynamic binding issues? I do not think so.
I'm reading the three body problem right now and I find the declarative (Tell) nature of characters emotional states and descriptions ("beautiful young girl") to be a real weakness.

In reality both are a highly nuanced and subjective. I would say my own emotional state is rarely definable as a single adjective with a direct cause.

I'm trying to ascribe it to translation and cultural difference, but it really does just seem like poor or childish writing. I'll have to read some other Chinese fiction as a control experiment.
> People in here talking about relying on RSS, what software do you even use it with?

While I wouldn't say I rely on RSS, I use Feedly [1] as my RSS reader on Android & sometimes through the browser. I think Feedly are the biggest player in the space now that Google Reader is gone, but they have lots of competitors. On the Mac, I tend to use Reeder [2] as my desktop client, though I hear NetNewsWire [3] is being rewritten & re-released soon.

A few years ago I did some work with a law firm that used RSS to keep up with what's new in their field, and they wanted me to develop RSS feeds for sites that didn't provide one. Instead of visiting dozens of websites every morning to check for updates (and delegating that task to an assistant), RSS brings all the latest news in one place they can check each morning. A pro/commercial reader like Feedly also provides highlighting & note-taking functions, so you can highlight/quote important paragraphs in an article & keep them in a searchable database, together with your own annotations.

[1] https://feedly.com/

[2] http://reederapp.com/mac/

[3] http://netnewswireapp.com/
China's exports shrink most in two years, raising risks to global economy
Interesting. Batteries in smartphones usually have five times more battery capacity then feature phones, it should last over a month!
> If it contains x86 parts it isn't a mainframe for sure.

Nitpick: mainframes often contain x86 chips supporting various I/O devices, much in the same way that a modern x86 machine may have an ARM core or two or ten lying around somewhere.

Even when tweaking the definition to "uses x86 as the main CPU" this would rule out certain vendors (Unisys being the primary example that comes to mind) whose mainframes consist of an emulator running on a locked down Linux or Windows Xeon system.
Not conquering the world doesn't mean you're dead. I never conquered the world, but I'm very much alive.

We need to get rid of this idea that the only way to survive is to dominate. You can survive in a niche. There are still people using IRC, even. New things become popular, but there will always be people who don't go along with the latest fad and either stick with a previous one or jump ahead to the next one.

Personally, I've never really used RSS, but I'm seriously thinking of starting, particularly because of the demise of Google+. (Google+ really is dead, or at least dying soon, but that is because Google is actively pulling the plug.) Google+ got me into contact with a number of blogs whose owners posted their blog updates on G+. Now that G+ is dying, I need a new way to keep up to date, and I find myself looking for a new social network that allows me to follow blogs of people who themselves may not be using that network. RSS is the obvious answer here. I believe Hubzilla supports RSS, so that's immediately an interesting candidate to me.
But they used pseudonyms, right? He didn't say "I'm Peter Boghossian with PSU".

Anyway, what's shocking to me coming from Physics is how hard it is to read these papers from outside of academia (no arXiv even to at least see pre-prints). So I'm already more sympathetic to the hoaxers.
Such a timesaver indeed. The other one would be fzf [1]. Together they get rid of the endless cd'ing and cursing on the default Ctrl-R for being rather stupid and useless :) And there are powershell counterparts as well (ZLocation and PsFzf).

[1] https://github.com/junegunn/fzf
alias emacs='emacs -nw'

Speaking of, what's this vi thing people keep mentioning? :>
Love this, but I'm getting an error:

"DeprecationWarning: Buffer() is deprecated due to security and usability issues"

Opened an issue: https://github.com/retroplasma/earth-reverse-engineering/iss...
But why? Outside of a few big names (eg. Bootstrap), open-source CSS frameworks come and go on whim. This is CSS Framework that is also dependent on government funding, being supported by the very shallow Australia tech sector - no offense but working in Australia, many high quality developers are lured away from Australia to higher paying areas.

While this is neat, whats the guarantee this will be kept up to date over the next 1,2 or 5 years?
So then why not let them close? Seems like the supply-and-demand problem will eventually reach a new equilibrium.
Badly written apps make 99% of Google Play, no wonder vendors are trying to resolve it.
Dude - spoilers!
The first thing I do on any Xiaomi phone is to install Lineage OS - because MIUI is just unusable for me. Lineage 16 release for Poco F1 is very stable although it's not an official release yet.
Almost all the laptops, they neglected to mention the refreshed thinkpads
If your app is in the background it shouldn't need a load of resources. These resource limits are there to prevent bad developers using all your resources in the background. If you are having issues with this limit you are probably one of these bad developers. Removing the limit is not the solution, writing a better app is.
>> Do you seriously think someone could spend a year just learning the lingo of a real STEM discipline and get similarly farcical work published?

I think it would be possible to publish a paper in one of the large machine learning venues with completely made up results and techniques, that nonetheless looked very impressive. One would have to take a bit of care to make the paper look legitimate, in other words, copy the style and conventions of a machine learning paper- but it's not that hard to do. After all, a great deal of machine learning research is, well, not quite made up, but for example there are important details left out of papers, experiments are poorly described, data is not available, results are interpreted in fanciful manner, etc etc.

Of course, such a "hoax" would be immediately condemned by the whole field because results would have to be fabricated. Then again, that is what Boghossian is accused of.
Because I want to do file completion on files with datetimes (think colons)

COMP_WORDBREAKS=${COMP_WORDBREAKS//:}

See the Bash FAQ for more info.
The article does discuss vegans—in the intro and throughout—but I can't see any conflation. Neither in the intro nor elsewhere. Where are you seeing this?

I get that the title refers to "vegetarians at the gate" and the article goes on to mostly discuss vegans and vegan food, but vegatarians eat vegan food, and even the tagline itself says "Many vegans want to destroy the modern food system. Investor Chris Kerr wants to use it to take plant-based products mainstream.", which to me implies that his plans cater to vegetarians (and pesce-/flexe-tarians, et al.) rather than siding with the implied antagonistic vocal vegan minority.
alias cdl="cd (ls -ltr1 | grep '^d' | tail -1 | awk '{print $9}');"

cd to last directory by date.
You can also delete old (older than 90 days) undo files with the following in your .vimrc:

let s:undos = split(globpath(&undodir, '*'), "\n")
call filter(s:undos, 'getftime(v:val) < localtime() - (60 * 60 * 24 * 90)')
call map(s:undos, 'delete(v:val)')
Upgrading Bash on macOS
I think that the purpose of a design system like this is the ability to create a uniform UI over various government agencies. Not to serve as a general purpose framework.
What to expect from South Africa's FinTech sector in 2019
Indian startup turns plastic bottles into T-Shirts
I have similar but I remove some visually ambiguous chars.

tr -d iIlLOo0
I have aliases with the name of every project that open up a productive environment.

Eg. open a project with “Visual Studio Code” get latest version from git, reset db and run seeding. Then install dependencies and run dev server, while opening chrome at the right localhost address. I usually run the command walk away to get a drink or food and when I’m back everything is running so I can just start working!
Most push notifications are spam, and even when they aren't, they are usually from self-important apps that think they are the most important thing running on your phone.

The only push notifications I want are messages from humans.
So how do you propose to write a sleep tracking app that doesn't run a background process for longer than 20 minutes?
function certchain() {
# Usage: certchain
# Display PKI chain-of-trust for a given domain
# GistID: https://gist.github.com/joshenders/cda916797665de69ebcd
if [[ "$#" -ne 1 ]]; then
echo "Usage: ${FUNCNAME} <ip|domain[:port]>"
return 1
fi

local host_port="$1"

if [[ "$1" != *:* ]]; then
local host_port="${1}:443"
fi

openssl s_client -connect "${host_port}" </dev/null 2>/dev/null | grep -E '\ (s|i):'
}
Editors of Informetrics resign at Elsevier and start new journal
Standards are good.