Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
orivej
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
orivej
2y ago
In fact, in a way C and Rust do the same thing! When you run ./configure or cmake for a C program, it often prints something like "configure: checking size of long long" or "-- Check size of long long". This is done
2.
▲
by
orivej
2y ago
Some Common Lisp FFIs have opted to coax this information out of the compiler. https://github.com/rpav/c2ffi is a C++ tool that links to libclang-cpp and literally outputs JSON with sizes and alignments. (It is then us
3.
▲
by
orivej
5y ago
The attack relies on the fact that when downscaling by a large factor, the tested downscalers (except Pillow in non-nearest neighmode mode, and all of them in area averaging mode) ignore most of the pixels of the original image and compute
4.
▲
by
orivej
5y ago
Gentoo (actually Funtoo) was the last distribution I used on my main laptop before switching to NixOS. (I have tried Guix, but not GuixSD, so won't talk about it.) > 1) Are these kind of systems overkill for the desktop user? There
5.
▲
by
orivej
6y ago
City Car Driving [1] is a simulator that I have seen used in a driving school. [1] https://store.steampowered.com/app/493490/City_Car_Driving/
6.
▲
by
orivej
7y ago
Surprisingly I also got 292 (156+136 bonus) on the first try on Lenovo X1 gen 4 (NixOS, Xorg). Both synaptics and libinput powered touchpads have always felt perfect for me, with minor to none customization. (Currently my only setting for l
7.
▲
by
orivej
8y ago
There is a Pedro Medeiros pixel art tutorial about spaceships shaped from ordinary things: https://www.patreon.com/posts/spaceship-design-16838125
8.
▲
by
orivej
8y ago
Here is a good starting point to research the critique of this document: https://bugs.ruby-lang.org/issues/12004#note-6 . Its point is particularly apt: > Given a choice between only two extremes, I'd far rathe
9.
▲
by
orivej
8y ago
> it was also found to break some client software -- in particular, the Go DNS library The issue for the curious: https://github.com/miekg/dns/issues/234
10.
▲
by
orivej
8y ago
An interesting alternative to SMS over XMPP/IRC over Twilio is SMS over XMPP over your Android phone. This lets you send and receive SMS on the computer and share the history with the phone. For this I'm using MAXS ( http:/&#
11.
▲
by
orivej
8y ago
with gdb 7.12 or later, you can exclude files matching a glob with "skip -gfile", e.g. "skip -gfile /usr/*".
12.
▲
by
orivej
8y ago
> piping all your internet traffic through a single 3rd party has some obvious consequences Your internet service provider is one of these parties. With VPN, you have a large choice of whom to trust and an easy option to switch.
13.
▲
by
orivej
8y ago
You can copy the output of "vgo list -m" (the list of transitive dependencies with the selected versions) into the "require" section of "go.mod" and increase the versions that you want to change. (The next invo
14.
▲
by
orivej
8y ago
Breaking API between 0.* releases conforms to SemVer: https://semver.org/#spec-item-4
15.
▲
by
orivej
8y ago
> And then the tool does not even have a proper feature to enable you fixing it on your side (e.g., by pinning a whole dependency tree). vgo allows you to pin your transitive dependencies to the exact versions of your choice, as long as
16.
▲
by
orivej
8y ago
vgo trades some safety (by not supporting upper bounds) for some utility (by not artificially limiting the lifetime of a released library). Yet package managers that do support upper bounds do not guarantee safety, because libraries may not
17.
▲
by
orivej
8y ago
vgo was explicitly designed to balance out two needs: (1) the need to use known good versions of the dependencies, and (2) the need not to burden dependency consumers with meaningless constraints (especially with an upper limit on the versi
18.
▲
by
orivej
8y ago
I believe I can quote the response to my support request: «We added iptables rules to hijack all DNS requests on port 53 going via the VPN tunnel, this is to protect users having set a DNS server unknowingly (or by malware). We are aware th
19.
▲
by
orivej
8y ago
I'm using Mullvad. On the plus side, their servers are the most reliable I have seen, and they provide IPv6 addresses (behind NAT, which is reasonable for privacy). On the minus side, since November 2017 they intercept DNS queries and
20.
▲
by
orivej
8y ago
> Use Mutt carefully or copy/paste into GPG for now. According to [1], Claws Mail is also unaffected. I don't know if it was tested with or without its HTML plugin, but this should make no difference as long as the plugin is n
21.
▲
by
orivej
8y ago
> I knew about 'ed' but never really understood what made it special or where/how you could use it. ed script is one of the formats supported by diff and patch (with their -e or --ed command line switch). (diff generates
22.
▲
by
orivej
8y ago
This problem is easily solved with a regexp that processes the input as a whole, rather than working on it line by line. I had this need often enough that I exported Go regexp engine as a command line tool regrep, which can insert "el
23.
▲
by
orivej
8y ago
The principal feature that I consider when evaluating XMPP servers and clients is their support for reliable message delivery (no message loss on connection interruptions), and the main method of achieving it is with XEP-0198 ("Stream
24.
▲
by
orivej
9y ago
SubGit (an application to mirror subversion to git) is using git notes to attribute git commits to svn revisions: https://subgit.com/book.html#client_config
25.
▲
by
orivej
9y ago
This list is not entirely accurate: Faber & Faber is not associated with Holtzbrinck.
26.
▲
by
orivej
9y ago
Actually you can strace strace! Try strace -o 1.log strace -o 2.log ls and observe in 1.log how the second strace uses ptrace call. The limitation is that a process can not be ptraced by multiple processes at the same time. If you ad
27.
▲
by
orivej
9y ago
Re. My Library Is Not Loading! , a pretty useful trick to find what files are missing is to extend your path env var with an empty directory and then grep strace output for its occurrences, e.g. mkdir /tmp/empty LD_LIBRARY_
28.
▲
by
orivej
9y ago
If you have to use an internet provider that does not provide reasonably direct access to the internet, you should tunnel your traffic through the service that does (e.g. a VPN). The idea that all internet sites have to compensate for the l
29.
▲
by
orivej
9y ago
I wrote `defer` (or rather `atexit`) for Bash: https://github.com/orivej/bash-traps/blob/master/atexit.sh
30.
▲
by
orivej
10y ago
> IMO, all languages should follow this trend as it is an essential component for many stuff. On the one hand, using different kinds of clock (clock_realtime and clock_monotonic) for different purposes currently is the only robust option
More ›