Better HN
topnewbestaskshowjobs
Log inSign up

mdzn

14 karma · joined Jan 31, 2016 (10y ago) · 13 submissions

Submissions

comment 1y ago · link · parent

A while ago I have implemented something similar to that in Python, although specifying versions requires using function calls instead of imports. Turns out in Python you can execute arbitrary code during imports via hooks, including calling out to pip to install a dependency.

https://github.com/miedzinski/import-pypi

comment 4y ago · link · parent

The article says that Consul or etcd are designed to always be up, but it’s actually quite the opposite. They both leverage Raft for maintaining consensus and thus optimize for consistency at the cost of availability in case of network partitions. See CAP theorem.

comment 4y ago · link · parent

Wouldn't this cause lots of out-of-order packets?

comment 5y ago · link · parent

You can’t parse HTML with regexps. It’s not a regular language.

comment 5y ago · link · parent

Great work! I did something similar, albeit with less features, for one of my uni classes. If anyone is curious about Rust code: https://github.com/miedzinski/regex.

comment 9y ago · link · parent

Is it possible to turn it off? I don't want these, but looks like I have effectively given you password to my email account. Can you remove it from your database?

comment 9y ago · link · parent

Okay, something is weird. I have Outlook.com email with custom domain (previously Windows Live Domains). These kind of accounts had problems with Nylas since forever (see my old GitHub issue - https://github.com/nylas/nylas-mail/issues/859). I have tried adding it to new Nylas app with Office 365/custom IMAP with no success.

The weird thing is, in last 15 minutes someone from USA - AWS instance, 35.167.235.231 - tried to connect to my account. This app is said to sync locally, right? But I see no attempts from my IP in Outlook.com panel, but about ten from AWS. All of these started when I installed Nylas and tried to configure it; remaining logins logged by Microsoft are 100% by me (web client, iPhone Mail.app). WTF?

edit: https://a.pomf.cat/gxhabs.png

2nd edit: According to https://github.com/nylas/nylas-mail/issues/3405#issuecomment... someone else is unable to connect with GMail because of Nylas servers throwing HTTP 502. Does it sync locally or through Nylas' AWS instances? Is this why I can't configure my account with IMAP?

comment 9y ago · link · parent

Stuck on "Still trying to reach Nylas..." (https://a.pomf.cat/sxiair.png). Good.

edit: Looks like it tries to fetch some PNG file, but all it gets is HTTP 502, I guess. (https://a.pomf.cat/xiblzy.png)

comment 9y ago · link · parent

I'd recommend safety for Python.

https://github.com/pyupio/safety

10.

Bret Victor – Inventing on Principle(vimeo.com ↗)

4 points · by mdzn · 9y ago · 2 comments

11.

Fireplace – Wayland window manager written in Rust(github.com ↗)

6 points · by mdzn · 9y ago · discuss

comment 9y ago · link · parent

Of course it's just a recommendation. Why would you think otherwise? To Rust, module name is just a bunch of characters, it doesn't recognize words anyhow.

comment 9y ago · link · parent

References (lifetimes and borrow checking) and mutability are there for safety, not speed.