Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aumerle
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
121.
▲
by
aumerle
4y ago
If you want fast HTML parsing in python+lxml, use html5-parser https://github.com/kovidgoyal/html5-parser
122.
▲
by
aumerle
4y ago
https://sw.kovidgoyal.net/kitty/shell-integration does that and many other things for you out of the box.
123.
▲
by
aumerle
5y ago
It is a kitty thing: https://sw.kovidgoyal.net/kitty/shell-integration
124.
▲
by
aumerle
5y ago
https://sw.kovidgoyal.net/kitty/kittens/hints/
125.
▲
by
aumerle
5y ago
See https://sw.kovidgoyal.net/kitty/shell-integration in particular Open the output of the last command in a pager such as less
126.
▲
by
aumerle
5y ago
That is not true. There is nothing provable about hash functions. The best that you can say is that there is no known algorithm that can calculate a pre-image for any given hash function in less than some super linear time. You certainly ca
127.
▲
by
aumerle
5y ago
Sure, many can, for example: https://sw.kovidgoyal.net/kitty/open_actions/
128.
▲
by
aumerle
5y ago
Trivial to do in many modern terminal emulators, the most flexible approach being in kitty, where you can map clicks on filenames printed by ls to arbitrary actions: https://sw.kovidgoyal.net/kitty/open_actions/
129.
▲
by
aumerle
5y ago
Yes, CVEs are often exaggerated and sometimes just plain wrong. The bulk of them tend to be created by people that gain somehow, either financially or reputationally by creating them, and have no affiliation with either the person who origi
130.
▲
by
aumerle
5y ago
Yes, in such a case, use the terminals native reset capabilities. And hopefully someday shells will learn how to interpret the full keyboard protocol, making it possible to type reset in any mode.
131.
▲
by
aumerle
5y ago
The first couple of parapgraphs tell you that it is based on that and list all the issues with fixterms that it fixes.
132.
▲
by
aumerle
6y ago
I cant reply to your other post, so: you need to run the other kitty instance also with -1. If you do that, you will get the same numbers I got.
133.
▲
by
aumerle
6y ago
You need to run kitty -1 to start kitty and leave it running. Then all future kitty -1 invocations will open new windows instantaneously.
134.
▲
by
aumerle
6y ago
time kitty -1 false real 0.098 user 0.080 sys 0.017 maxmem 23 MB faults 0 time xterm false real 0.052 user 0.035 sys 0.000 maxmem 9 MB faults 1 Doesnt look like an order of magnitude to me.
135.
▲
by
aumerle
6y ago
kitty startup time was slow because of a bug in GLFW, fixed a while ago. And you can have its startup time be 0 with --single-instance.
136.
▲
by
aumerle
6y ago
This proposal is incomplete and has various bugs: https://sw.kovidgoyal.net/kitty/keyboard-protocol.html#fixte...
137.
▲
by
aumerle
6y ago
https://sw.kovidgoyal.net/kitty/keyboard-protocol.html https://sw.kovidgoyal.net/kitty/graphics-protocol.html
138.
▲
by
aumerle
8y ago
Just use a shell alias for ssh that does a reset if the ssh command exits with an error code.
139.
▲
by
aumerle
8y ago
You can freely resize layouts using hte keyboard (but not the mouse) see https://sw.kovidgoyal.net/kitty/#layouts but be aware that it currently does not work in the released kitty because of a regression, so you will
140.
▲
by
aumerle
8y ago
It's simple, take for example scrolling a file in less. Most modern terminals are fast enough that you can do it at the key repeat rate of your computer. The difference with kitty is that the scrolling feels smoother and uses less CPU,
141.
▲
by
aumerle
8y ago
kitty has remote control (the ability to contrl it fro scripts/shell prompt) which you can use to integrate its windowing/layouts with other programs. Not sure what else the terminal emulator could do in this space, but if you hav
142.
▲
by
aumerle
8y ago
https://sw.kovidgoyal.net/kitty/faq.html#i-get-errors-about-...
143.
▲
by
aumerle
8y ago
https://sw.kovidgoyal.net/kitty/faq.html#using-a-color-theme...
144.
▲
by
aumerle
8y ago
https://sw.kovidgoyal.net/kitty/graphics-protocol.html
145.
▲
by
aumerle
8y ago
Why not? Is the GPU in your machine purely ornamental? More seriously https://sw.kovidgoyal.net/kitty/performance.html
146.
▲
by
aumerle
8y ago
As far as pretty CLI diff tools goes, the prettiest by far is: https://sw.kovidgoyal.net/kitty/kittens/diff.html The downside being it requires the kitty terminal as it uses features not present in other terminals
147.
▲
by
aumerle
8y ago
Terminal graphics protocol: https://sw.kovidgoyal.net/kitty/graphics-protocol.html
148.
▲
by
aumerle
8y ago
Makes sense, this is somewhat analogous to the import speedup you can get by putting all the python modules into a zip file. I tend to do that when distributing python applications on windows, where the speedup is more noticeable.
149.
▲
by
aumerle
8y ago
It's somewhat counter-intuitive that start times with XAR are lower than start times without it. Is fuse faster than a kernel filesystem? Even with compression?
150.
▲
by
aumerle
8y ago
The article is discussing a technique used to dispose of waste plastic. In other words plastic that would exists in macro and micro form regardless of its use to improve roads.
More ›