News for hackers. Stuff that matters.

mdzn

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

Re:What's the big deal about embedded key-value databases? on Tuesday August 23, 2022 @02:57PM (#32569571)
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.
Re:Things we finally know about network queues (2017) on Sunday January 30, 2022 @03:57AM (#30135177)
Wouldn't this cause lots of out-of-order packets?
Re:Htmlq: like jq, but for html on Tuesday September 07, 2021 @04:02AM (#28442201)
You can’t parse HTML with regexps. It’s not a regular language.
Re:Show HN: Regular expression compilation visualized on Tuesday March 23, 2021 @12:30PM (#26556912)
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.
Re:Announcing Nylas Mail 2.0 on Tuesday April 18, 2017 @10:49AM (#14139247)
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?
Re:Announcing Nylas Mail 2.0 on Tuesday April 18, 2017 @10:34AM (#14139110)
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?

Re:Announcing Nylas Mail 2.0 on Tuesday April 18, 2017 @09:58AM (#14138832)
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)

Re:The Frequency of Known Vulnerabilities in JavaScript on Thursday March 09, 2017 @04:35PM (#13833947)
I'd recommend safety for Python.

https://github.com/pyupio/safety

Re:What can Rust do for astrophysics? on Monday February 13, 2017 @08:15AM (#13634953)
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.
Re:Rust's 2017 Roadmap on Monday February 06, 2017 @05:44PM (#13585020)
References (lifetimes and borrow checking) and mutability are there for safety, not speed.