Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alkh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
alkh
2y ago
While I haven't personally tried it myself, ArchiveBox seems to be tailored specifically for archiving[1]. Mb you should give it a try? [1] https://archivebox.io/
62.
▲
by
alkh
2y ago
Imo, everyone should check https://terminaltrove.com/ from time to time. There, I have found easy replacements to commonly used tools: find -> fd, time(for runtime comparison) -> hyperfine, grep->ripgrep, asciinema
63.
▲
by
alkh
2y ago
When parameter names are meaningless for the final result def abs_days_difference(date1, date2, /): # note that swapping passed params will yield the same result delta = abs((date2 - date1).days) return delta d1 = d
64.
▲
by
alkh
2y ago
Yeah, it's very convenient. Here are a few of mine(tested on OS X): alias -g L="| less" alias -g T="| tee" alias -g C="| pbcopy" alias -g @all="> /dev/null 2>&1" i
65.
▲
by
alkh
2y ago
I have an alias reload="exec zsh" for fast reloading. Admittedly, this does wreck up everything set up locally but I doubt you will be modifying ~/.[zsh|bash]rc file often
66.
▲
by
alkh
2y ago
Unfortunately, poop and urine is one of the main reasons for soil contamination by Perfluoroalkyl and Polyfluoroalkyl Substances (PFAS).[1] [2] . I think farmers will have to rethink using those as fertilisers soon [1] https://ww
67.
▲
by
alkh
2y ago
What is the best solution for recognizing handwritten text that combines multiple languages, especially in cases where certain letters look the same but represent different sounds? For example, the letter 'p' in English versus &#x
68.
▲
by
alkh
2y ago
Thanks for the useful link! I guess I am being overly paranoid, but I always also add a virus total check on top of it to make sure the file is clean [1] [1] https://www.virustotal.com/gui/home/upload
69.
▲
by
alkh
2y ago
To add a few cents, I just tested it and it seems mandatory nowadays to add --display_charset=utf-8 option if you are viewing non-english websites. Otherwise, lynx seems to be converting non-ascii chars into ascii. [1] [1] https:/
70.
▲
by
alkh
2y ago
Hey, I didn't confuse them but I guess I should have been more specific. I've addressed 2 main points in my text. 1) In my opinion, for the vast majority of cases you don't need to be worried about comparability, as you can e
71.
▲
by
alkh
2y ago
I am a huge proponent of zstd after I learned about it on HN. I've recently had to compress a 12 Gb csv file. zstd took ~3 sec for compression and ~11 sec for decompression and got the file to ~1.1 Gb. Xz took ~3.5 min for compression(
72.
▲
by
alkh
2y ago
Today, I almost had a heart attack cause I couldn't log in into BW Web. Strangely, both mobile and Desktop versions worked fine with the same password... The issue resolved automatically in a few hours, still no idea what this was. Sti
73.
▲
by
alkh
2y ago
I thought you could simply add `restrict`[1] to indicate that only one pointer points to a specific object? Shouldn't this help? [1] https://en.cppreference.com/w/c/language/restrict
74.
▲
by
alkh
2y ago
Just gave it a try, looks promising for sure. What I don't get is how to add more habits. Are you only allowed to keep 3 by design or am I missing something?
75.
▲
by
alkh
2y ago
+1. On top of that, even with the new resolver it still takes ages to resolve a dependency for me, so somethimes I end up just using pip directly. Not sure if I am doing something wrong(mb you have to manually tweak something in the configs
76.
▲
by
alkh
2y ago
Would recommend you to install pyenv[1]. It was very useful when my team had to update a lot of projects using <=3.10 to 3.11 [1] https://github.com/pyenv/pyenv
77.
▲
by
alkh
2y ago
Kudos to the Tenstorrent team for being so open to having a discussion. I wish more companies would be like that, as constructive criticism is very useful, especially for a startup
78.
▲
by
alkh
2y ago
As far as I can tell, one of zstandard's main benefits is compression/decompression speed. Is the ratio still worse than xz though?
79.
▲
by
alkh
2y ago
In my mind,I just automatically translate a EXPRESSION1 b EXPRESSION2 c as (a EXPRESSION1 b) and (b EXPRESSION2 c), so there's no ambiguity. But I agree, it can be very confusing,so I tend to write code that is easy to read without be
80.
▲
by
alkh
2y ago
Is there anything similar and lightweight that is cross-platform(or at least is available both on Linux and OS X)? I am not a Windows user, so that's a secondary priority for me
81.
▲
by
alkh
2y ago
Thanks for reminding me about this gem! :)
82.
▲
by
alkh
2y ago
In my university you could technically use any computer but must ensure that your code would work/compile on lab PCs cause that's where TAs would check it. As a result, during labs most people would just use computers there(too mu
83.
▲
by
alkh
2y ago
I swear to God that all of these CS labs at different unis look the same. I am getting flashbacks of labs in Toronto that looked exactly like pictures in the post
84.
▲
by
alkh
2y ago
Sorry for a stupid question but to clarify, even though it is a 1-bit model, it is supposed to be working with any types of embeddings, even taken from larger LLMs(in their example, they use HF1BitLLM/Llama3-8B-1.58-100B-tokens). I.e.
85.
▲
by
alkh
2y ago
Just to chime in, what's the situation with getting an H1B visa for a Russian Citizen? Are there similar issues or is it still possible to get one?
86.
▲
by
alkh
2y ago
To be honest, I knew about the speed limitations of sshfs already, so I typically use rsync to work with large files. This way, I wouldn't write the data locally even if the connection fails. I've checked the github repo and it lo
87.
▲
by
alkh
2y ago
I've recently discovered sshfs and learned about needing to have FUSE as a dependency for OS X, which spiked by interest. The code looks very clean and easy to understand, so thanks for that! Is there any guide/course you would re
88.
▲
by
alkh
2y ago
I am personally using https://github.com/st3w/neo (from the Matrix) as my screensaver. Feels good to feel yourself looking at that side of the world from time to time :)
89.
▲
by
alkh
2y ago
Makes sense, thanks for the confirmation! :)
90.
▲
by
alkh
2y ago
I had a similar idea to track my caffeine intake(assuming that the half-life is 6 hours). The only question I haven't had time to look into yet is what is the biological effect of previously taken vs newly taken caffeine? Say I had a c
More ›