Recent submissions

Comment · 7 years ago
How do you know that this individual driver has a one in a billion miles chance of crashing? By statistics from other human drivers I assume?
Comment · 7 years ago
I am from Terengganu. And yes people in Terengganu can speak standard Malay, but among themselves they speak a different dialect, which is very different. People from other parts of Malaysia often have difficulty understanding it. It’s more like Scottish to English I would say.
Comment · 8 years ago
Not sure if things has changed but 1 year ago my brother in law has opened an account in bank of China 中国银行 while he was on a 1 year traveling visa. You may want to try with another bank

And no, we’re not trying to spread rumors :)

Comment · 8 years ago
Any foreigners can open a bank account in China even on tourist visa. No special documents needed other than your passport.

Yes, being a foreigner in China does suck but not for this case.

Comment · 8 years ago
WhatsApp was only started to be blocked recently (last year) when WeChat was already way ahead of WhatsApp in the market. WeChat's success was not due to lack of contender
Comment · 9 years ago
Easy, have a self driving cart to follow you wherever you go!
Comment · 9 years ago
> 3. You need access to a reliable electric grid and reliable fast internet (the firewall rules out mainland China completely--1/5 of the world).

Every competent developer in China knows how to bypass the firewall.

Comment · 9 years ago
Just like how you learn any other programming language: use it to solve your problems.

Anyway, here's a few steps that I would recommend:

1. Go through http://tldp.org/LDP/abs/html/ and http://www.tldp.org/LDP/Bash-Beginners-Guide/html/ , or at least go through the table of contents so that you have a feeling of what bash is capable of. A few important things are: if, while, for, switch, functions, string manipulation, pipe, subshell, command substitution

2. Understand the execution model. Variables in subshell cannot be accessed from the parent shell, this is a common mistake

3. Learn to avoid common pitfalls. I always recommend my colleagues to always quote the variables in double quote, always use "$@" instead of "$*", always use double square bracket instead of single square bracket for testing, use echo to pass return value from functions instead of assigning to global variable

4. Learn awk, sed, grep. Bash can be quite limiting when it comes to data processing and these tools can be quite powerful. You can use bash to glue different filters together at a higher level.

Bash is a fantastic language and there are quite a lot of things that can be much more quickly in bash than in other "proper" languages. A lot of people says that it's too difficult to maintain a shell script beyond a "critical mass" but I believe that if you follow good practices and write modular codes, shell scripts can be very manageable.

Comment · 11 years ago
The problem with using the English message as the key is that, when we changed the English text, we'd have to change the keys in all other languages as well. Also, the same English text might translate to different texts in a foreign language depending on the context / location appeared.

Disclaimer: I've never used gettext before.

Comment · 11 years ago
Yes, I'm a Chinese and to me this is just two rare Chinese characters placed together. It doesn't have any meaning.
Comment · 11 years ago
Shouldn't it be "a UI toolkit" instead of "an UI toolkit"?
Comment · 12 years ago
Can anyone explain to me why I couldn't write

  n.forEach(console.log);

Just tested on Chrome, it gives me an error

  TypeError: Illegal invocation
Comment · 12 years ago
When PHP announced that they will skip PHP6, we joked that it is a smart move to avoid PHP version 6.4
Comment · 12 years ago
Comment · 12 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton