HackerTrans
TopNewTrendsCommentsPastAskShowJobs

karlicoss

no profile record

Submissions

The Decline of Mobile Development

donnfelker.com
23 points·by karlicoss·2 वर्ष पहले·17 comments

Fsearch, a fast file search utility for Unix-like systems

github.com
207 points·by karlicoss·3 वर्ष पहले·95 comments

comments

karlicoss
·पिछला वर्ष·discuss
Seems like official export [0] has tags and annotations along with timestamps. However in case you'd like more structured full data from the API (instead of a mess with csv + json?), you can use my tool [1] to export it. Here's example of its output [2]

[0] https://getpocket.com/export

[1] https://github.com/karlicoss/pockexport?tab=readme-ov-file#s...

[2] https://github.com/karlicoss/pockexport/blob/master/example-...
karlicoss
·पिछला वर्ष·discuss
datetime handling can absolutely be a hot spot, especially if you're parsing or formatting them. Even for relatively simple things like "parse a huge csv file with dates into dataclasses".

In particular, default implementation of datetime in cpython is a C module (with a fallback to pure python one) https://github.com/python/cpython/blob/main/Modules/_datetim...

Not saying it's necessarily justified in case of this library, but if they want to compete with stdlib datetime in terms of performance, some parts will need to be compiled.
karlicoss
·2 वर्ष पहले·discuss
I argued that point in my article some time ago https://beepb00p.xyz/configs-suck.html also HN discussion at the time news.ycombinator.com/item?id=22787332
karlicoss
·3 वर्ष पहले·discuss
I was annoyed by cron/fcron limitations and figured systemd is the way go because of its flexibility and power, but also was annoyed about manually managing tons of unit files. So I wrote a tool with a config that looks kinda like a crontab, but uses systemd (or launchd on mac) behind the scenes: https://github.com/karlicoss/dron#what-does-it-do

E.g. a simplest job definition looks like this

  job(every(mins=10), 'ping https://beepb00p.xyz', unit_name='ping-beepb00p')
But also it's possible to add more properties, e.g. arbirary systemd properties, or custom notification backends (e.g. telegram message or desktop notification)

Since it's python, I can reuse variables, use for loops, import jobs from other files (e.g. if there are shared jobs between machines), and check if it's valid with mypy.

Been using this for years now, and very happy, one of the most useful tools I wrote.

It's a bit undocumented and messy but if you are interested in trying it out, just let me know, I'm happy to help :)
karlicoss
·3 वर्ष पहले·discuss
Another thing I noticed is that homebrew python was noticeably slower on M2 comparing to the pyenv one. I imagine homebrew compiles it with too generic flags to support wide range of macs.
karlicoss
·3 वर्ष पहले·discuss
It sparks a discussion around knowledge management, that's kinda nice :)
karlicoss
·5 वर्ष पहले·discuss
Yep, what kind of issues you had? Works well for me. Not sure what do you mean by efficiently -- but my tip is pressing alt-e to edit the command in external editor when it's multiline (although it's not limited to vi mode in fish)
karlicoss
·6 वर्ष पहले·discuss
Oh thanks for the info! Even better, I'm not a big fan of Slack threads anyway :)
karlicoss
·6 वर्ष पहले·discuss
There is some ongoing work on threading https://github.com/vector-im/element-web/issues/2349

Apparently it's already in the protocol, just needs UI support from the clients. Not sure if they use Slack model though