Show more
Outvi V boosted

想方设法坑蒙拐骗让你不用网页版去装应用,应用里没几个原生页面净是webview:2019年互联网最傻逼的现象之一。

Outvi V boosted

《上下文》Git 大师与一个 API 开发新手站在拥挤喧嚷的办公室内。

“我正试图合并两个巨大的 XML 文件,”API 新人解释道,“但现在出现了海量的合并冲突。大师,对于这类问题,您一定有个得当的策略(strategy),可以将两个文件的各行以人类可读的形式相互对应起来。我应该怎么办?”

“耐心(patience),”Git 大师说道,同时转身离开屏幕。

“但我手工解决冲突已经花了了好几个小时了!”API 开发者抗议道。“mergetool 作为合并的工具,理应具有判断上下文对齐行号的功能!”

Git 大师无言地离开了房间。

数个小时过后,Git 大师回到房间。沉默的办公室空无一人,只有 API 开发者还坐在屏幕前,垂着头向合并冲突投降。

Git 大师默默叹了口气,低声言道:

$ git merge --strategy-option=耐心(patience)

在听到了大师相同话语的上下文后,新人顿时开悟。

来源:news.ycombinator.com/item?id=5

Outvi V boosted
Outvi V boosted

US residents:

Jump on the Equifax leak claim wagon. You get $125 in the settlement, automatically. ALSO, you can be compensated at the rate of $25 per hour for time spend remediating their fuckup, and only have to provide documentation if you spent more than 10 hours unfucking them. The official claim site is equifaxbreachsettlement.com/

Outvi V boosted

Someone from Cisco went on stage to propose weakening TLS 1.3 for "network-based security solutions" (enterprise spyware).

There was a long line at the mic of people pushing back on it... I almost felt bad for the poor speaker 🙂

tools.ietf.org/html/draft-camw

@outvi Further investigation show that seems to be also a problem related to mail service provider.

Configure your mail client well or they will give your external address (and internal address) away.

Use web interface to ensure a better privacy.

(Not blaming ThunderBird since it's just observing the standard but that is really a privacy risk.)

Outvi V boosted

In addition to those GitHub spammers, another bunch of stupid Chinese companies are scanning "git log" of torvalds/linux.git, days and nights. You got a patch merged into the mainline by Greg K.H, and you have a Chinese sign-off name?

Congrats! You'll get automated spams immediately: We offers top job opportunities for experts like you (lol, I don't even believe myself is one), blabla.

EVERY SINGLE TIME. 😡

Outvi V boosted

哈萨克斯坦运营商要求用户安装政府提供的根证书以进行中间人攻击。

bugzilla.mozilla.org/show_bug.

Outvi V boosted

不建议现在通过gofundme等捐赠,这种方式京都不一定愿意接受,什么时候到帐到帐多少比例如果被拒是否退钱都存在未知。

推荐直接去Kyoanishop.com消费或者kyoani.shop-pro.jp买壁纸。

没有合适支付手段的建议先等待后续消息,重建不是一两天能完成的。

Bilibili 似乎买了《白箱》(Shirobako)。很不错的番剧,趁着限免看一下...

Outvi V boosted

另外两个不错的替代方案是
for (let i of array.keys())

for(const [i,x] of array.entries())

(via @benpigchu@t.me)

Javascript 中对 array 进行 for ... in 操作会返回类型为 string 的下标。在取数组值时这不是什么问题,但如果不小心把这个 string 当作 number 传给其它函数,就够程序员受的...
请用 Array.prototype.forEach。

Server status:
Matomo - 🔵 working again
Private Bin - 🔵 working again
Blog - ⚪ unaffected

Server status:
Matomo - 🔵 working again
Private Bin - 🔴 still down, expected to be up again at 21:30 (UTC+8)
Blog - ⚪ unaffected

Show more
Moew!

Have fun and play together~