Better HN
topnewbestaskshowjobs
Log inSign up

perlwle

86 karma · joined Jul 8, 2015 (11y ago) · 54 submissions

Submissions

comment 3y ago · link · parent

A few months ago I was working on migrating cloud build for a personal project and hit a documentation error. Submitted a correction via the feedback button and it got fixed few days later. To be honest I was a little surprised by how fast it got fixed.

comment 3y ago · link · parent

totally agree with you.

Regardless where you are, removable battery is a huge fire hazard. News about devastating fires caused by e-bikes batteries shows up from time to time. In China, It's common to see posters advocating for the storage of e-bikes outside building.

So don't store it in your home.

comment 3y ago · link · parent

As a huge fan of podcasts, I am building a podcast information database that includes metadata on shows and episodes.

2 millions shows, 70 million episodes collected so far.

Now, I just need to find the perfect audience for it ¯\_(ツ)_/¯

comment 3y ago · link · parent

A couple in Canada were reportedly scammed out of $21,000 after getting a call from an AI-generated voice pretending to be their son.

https://www.businessinsider.com/couple-canada-reportedly-los...

comment 3y ago · link · parent

repos sitting in my Bookmarks.

* https://github.com/docker/awesome-compose

* https://github.com/PostHog/posthog

* https://github.com/growthbook/growthbook

* https://github.com/fleetdm/fleet

Supposedly, One can search github using `language:typescript filename:docker-compose.yml stars:>1000` but it's not working for me somehow.

comment 3y ago · link · parent

DB data can be stored in volume and persisted.

There are a lot of dockerfile / compose examples on github.

* https://github.com/docker/awesome-compose * https://github.com/jessfraz/dockerfiles

comment 3y ago · link · parent

Vimium is the vim mode for browser.

I have been living with the broken yank feature for the past two weeks and just found out that Vimium has been disabled on the Mozilla addon site and leaving me no way to get the yank fix.

8.

Vimium has been disabled on Mozilla addons site due to major security risk(github.com ↗)

3 points · by perlwle · 3y ago · 1 comment

comment 3y ago · link · parent

Also a long time keepass user.

The db file on my Mac is shared with iCloud and is acted as the master file. All updates happen on the mac and the rest of the clients just sync and do read only. It has been working well.

All my website passwords are saved in firefox account so I rarely need to update the db file.

comment 4y ago · link · parent

I have both PHPStorm and Pycharm running, each takes up 4+GB memory on a 8G M1. Slowly growing memory usage for WindowServer process makes matter worse.

For the last week, I have been playing with Neovim in spare time using a setup based on https://github.com/LunarVim/nvim-basic-ide It does pinning plug-in too.

It's working well for small projects so far.

comment 4y ago · link · parent

Software I use the daily

Apptivate - set global keyboard shortcut for Mac. Firefox - been using it for 20 years and still loving it. Vimium - vim binding for Firefox. Make web browsing more productive.

comment 4y ago · link · parent

You don't invite friends to your home just because his/her mom has strict rule in their home?

comment 4y ago · link · parent

I built a historical feed builder[0] so I can listen to previous episodes in one feed.

Most podcast feeds only include last ~100 episodes. Podcasts such as Planet Money and Radio Lab have more than 1000 episodes in total.

Manually combining the feeds is too time consuming and I enjoy building this tool.

[0] https://backpod.podcastdrill.com/

comment 4y ago · link · parent

the Canadian Centre on Substance Abuse and Addiction just released a new report[1] on Low-Risk Alcohol Drinking Guidelines.

> Among healthy individuals, there is a continuum of risk for alcohol-related harms whereby the risk is: > • Negligible to low for individuals who consume two standard drinks or less per week; > • Moderate for those who consume between three and six standard drinks per week; and > • Increasingly high for those who consume more than six standard drinks per week.

standard drink is the equivalent of a bottle of beer (12 oz., 341 ml, 5% alcohol) read more on the old report [2]

I know I will watch my beer intake more closely now.

[1] https://ccsa.ca/update-canadas-low-risk-alcohol-drinking-gui... [2] https://www.canada.ca/en/health-canada/services/substance-us...

comment 4y ago · link · parent

Tried to sign up with credit card issued by Chinese Bank. Failed with 3 different cards(VISA or MASTERCARD).

I gave up.

comment 4y ago · link · parent

At least the company was being honest.

I have heard some companies hide the truth of relocating to another city and announce it right before the move. As employee, you either move with the company or find a new job.

It's probably better to build a team in the new location then announce the move in advance. It will be a shock either way.

comment 4y ago · link · parent

I afraid that I may say it out loud if I type `fuck` too many times.. ;0

comment 4y ago · link · parent

already blocked by GFW. sigh..

comment 4y ago · link · parent

https://www.vinaysahni.com/best-practices-for-a-pragmatic-re...

Helped me get started with API design in my early career. Learning from other existing APIs helps too. such as stripe, github, shopify. Any others?

Something that We do at my current job:

* set a standard and stick with it. tweak it if needed. we even have naming standard on some of the json key. for example, use XXX_count for counting. when it doesn't make sense, use total_XXX.

* Document your API, we use postman and code review API changes too.

comment 4y ago · link · parent

Doesn't work when windows are in full screen..

comment 4y ago · link · parent

HN has been blocked for more than a year now.

comment 4y ago · link · parent

Auto-Update doesn't work anymore. It's the first thing I tried when encounter this issue like 20 minutes ago.

Can't access any website or making any connection without disable `network.http.http3.enabled` and restart.

This impact is huge for million of firefox users!

comment 4y ago · link · parent

Source?

It is rather the opposite based on mirantis latest blog post on Swarm https://www.mirantis.com/blog/docker-swarm-webinar-qa-long-l...

> It all stems from when Mirantis first acquired the Docker Enterprise business two years ago, they put out a blog saying, “We’re gonna support Swarm for at least two more years and we’re gonna take that time to kind of see what the need is, what the market dictates…”

> Unfortunately, some third parties took that and said, “Oh, they’re only going to support it for two years and then they’re going to sunset it.” That’s not true at all. This is important to us and to our future direction. We continue to invest in it and we have lots of large enterprise customers using Swarm in production at scale.

comment 5y ago · link · parent

Building a side project using python scrapy to scrape podcast shows. I use it to search by title/description etc to find interesting podcasts. Also as a way to learn different tools and frameworks.

comment 5y ago · link · parent

Would love to get some feedback on M1 for development.

I am used to work in Linux OS VM(Virtualbox and Vagrant in MacOS) and do most PHP/Python web development. It seems that Virtualbox won't be supported and There is only one Linux VM option available [UTM](https://github.com/utmapp/UTM)

I would hate to invest too much time for a new dev environment just for M1. How's your experience?

comment 5y ago · link · parent

JD used to include fapiao in the delivery too. Now It's using E-Fapiao.

> If you're shopping at the local corner store or restaurant, they're not declaring sales unless you specifically ask for a fapiao (and even then, half of them will lie and say their machine is broken).

Yeah. I agree. Though it's bit extreme to say `half of them`.

comment 5y ago · link · parent

Well it certainly is not a state secret. Just google 'China business tax reform' It was a hot topic back 2, 3 years ago because businesses complained about the high tax rate.

Average Chinese may not think about paying tax for each sale because it's not printed on the receipt. But the price they pay do include all the taxes incurred to the business.

It's been a while, I remember that the receipts I got from IKEA and 711 do print the exact tax applied to this sale.

comment 5y ago · link · parent

I can imagine that It's far cheaper to make friend with the police chief by giving him a free meal. Just in case the restaurant need special attention from the chief for situations like local gangs ask for protection money(probably very rare) or fight with drunken eaters. You never know.

It's still norm to bribe local officials so they will go easy on the businesses, such as speedy things up when dealing with the local gov, not enforcing laws when the business wants to pay less taxes.. etc.

comment 6y ago · link · parent

Ha. I was super surprised that my dad(almost 70) mentioned IPFS to me the other day. It turns out the people he know are running or thinking of running IPFS nodes because of filecoin incentive. Apparently, the people don't want to miss another bitcoin opportunity.

filecoin is also promoting in China. https://mp.weixin.qq.com/s/T0Qt2CEP7QsA6Zy9Vzvdkw

comment 6y ago · link · parent

Perl is very much like this too.

$ perl -le 'print join(" ", "00".."20")' 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20

12