Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
paavoova
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
121.
▲
by
paavoova
8y ago
Nonetheless, it's quite commonly used in popular code. E.g. I was looking at some dynamic string libraries, and a popular one (sds) casts a struct header from a char * and modifies its values. This code is used in Redis.
122.
▲
by
paavoova
8y ago
I wonder why the author chooses to write buf[offset]*256 + buf[offset+1] instead of the more common method to load bytes using bitwise arithmetic, e.g. b[k]<<8 | b[k+1]. This is far clearer instead of using potentially magic numbers.
123.
▲
by
paavoova
8y ago
It's not Luddism, because the "tech" in question here isn't technology but consumerism via consumer technology. When everything is abstracted how it is nowadays, the technological aspects are hidden from the end user. Te
124.
▲
by
paavoova
8y ago
Well, with a defeatist attitude like that, you have. "Google searches"? Don't use Google search. Pay with cash for the little things - you'll still be tracked from point A to M to Z with your CC and purchase history, but
125.
▲
by
paavoova
8y ago
You still have to compile the library each time you recompile whichever source file includes it. If the library had its own source file, you would only have to compile once and link it thereafter. This adds up if you have a lot of header-on
126.
▲
by
paavoova
8y ago
It's invalid for unix filenames to have a null character. Therefore, if your application is printing filenames in their unicode representation, it doesn't ever need to consider there to be a null byte. This of course isn't an
127.
▲
by
paavoova
8y ago
Perhaps ignorance on my part, but: why do they require highspeed cameras and laser illumination to figure this out in 2018? Shouldn't physics by able to model such a relatively simply structure and how air would move through and around
128.
▲
by
paavoova
8y ago
"Recently" can mean anything from now or months. It could be he only went public much later when the full details and scope of the disease came out - no use fearmongering at the first sign of trouble when the doctors haven't
129.
▲
by
paavoova
8y ago
Women have been giving birth since creation with minimal enough problems for humans to survive and succeed as a species - it absolutely is natural, no idea why you put that in quotations. Why stop at C-sections? Raise them in test tubes a l
130.
▲
by
paavoova
8y ago
You don't need to use any libraries, you can do something as simple as: $ zip -r mymodule.zip mymodule/ $ echo '#!/usr/bin/env python3' > myapp $ cat mymodule.zip >> myapp $ chmod 755 my
131.
▲
by
paavoova
8y ago
Python can do something similar albeit far simpler via packaging as an executable zipfile. Just structure everything you need in a directory and zip up with __main__.py in the root. All resources are available as an in-memory binary stream,
132.
▲
by
paavoova
8y ago
Haven't read the link, but that's quite terrible, and the title is misleading. No idea why it's getting buzz in this thread. It means if tmpfs/equivalent isn't available, it will cause disk writes each application l
133.
▲
by
paavoova
8y ago
The parent post? Evidently, for whatever reason, male applicants and coworkers are a problem for their organization, so they go out of their way and invest in "additional resources" to hire female candidates from the hiring pool.
134.
▲
by
paavoova
8y ago
> The caller might turn the element after the (struct header_t ) into something else Isn't this exactly the issue with this malloc implementation? The pointer returned that points past the header by sizeof(header) may not be aligne
135.
▲
by
paavoova
8y ago
So UB, then? All complaint solutions I could find to this use memcpy() instead. Some use __attribute__ ((__packed__)) for structs, but that seems to have its own gotchas ( https://stackoverflow.com/a/7956942 ), but not
136.
▲
by
paavoova
8y ago
header = (struct header_t*)block - 1; Isn't this UB?
137.
▲
by
paavoova
8y ago
Soma is a fictional drug popularized in Huxley's Brave New World, and used to ritually sedate the populace in seemingly benign but pervasive manner. It's closely associated with with consumerism, in the of form of "feelies&qu
138.
▲
by
paavoova
8y ago
Marijuana is pure Soma. The people pushing, fighting for legalization are digging their own grave in one form or another, especially as far as sentiments of freedom are concerned - the government wins one way or another. You cannot argue ag
139.
▲
by
paavoova
8y ago
That depends on your needs and values. As far as freedom is concerned, Windows is a far cry from what Linux offers. Windows restricts you to NTFS as root filesystem, for example. Windows offers no open-source disk encryption. Linux distros
140.
▲
by
paavoova
8y ago
Yes, and this applies outside of computers, to cars, etc. But the PC/PC gaming enthusiast market is probably some appreciable percentage of the population. And people building Hackintoshes are certainly tinkering with their computer an
141.
▲
by
paavoova
8y ago
> Back when end users could replace (upgrade) RAM and storage They still can, by purchasing an older laptop or newer "business class" device. A 2011 Sandy-bridge Thinkpad is perfectly usable even today, and is serviceable in mo
142.
▲
by
paavoova
8y ago
Consider this: the majority of the consumer demographic is largely ignorant to these issues. As such, Apple's largest customer demographic is in no place to make informed decisions. By restricting hardware and serviceability, Apple dir
143.
▲
by
paavoova
8y ago
It's absolutely baffling how so many seemingly educated, knowledgeable people such as those found in tech can support these anti-user practices via their support of Apple's products. It goes further than just Apple's hardware
144.
▲
by
paavoova
8y ago
the simple pleasure of doing something you merely, but truly, enjoy. I, for one, don't enjoy perpetually wallowing in mediocrity. The sense of fleeting time gone to waste weighs heavily on both the conscious and unconscious of my min
145.
▲
by
paavoova
8y ago
Note that this requires using dm-crypt in plain mode, which allows only one passphrase, doesn't perform any passphrase mangling or salting, and performs no passphrase checking on decryption. It requires one to re-enter exact parameters
146.
▲
by
paavoova
8y ago
> If your appendix ruptures, it is life threatening and has to come out. It is life-threatening, but it most certainly doesn't have to come out for full recovery. In some cases, it's impossible to remove due to the infection (i
147.
▲
by
paavoova
8y ago
uBlock Origin allows you to block remote fonts and use system fonts instead. You can selectively enable them on a per-domain basis, and, for cases like this, have them blocked them by default. With remote fonts enabled on https://
148.
▲
by
paavoova
8y ago
You're entirely correct that it isn't even comparable. However, I was responding to the specific surveillance practices linked in the OP, and the comment I replied to was discussing the "presence on the Internet", not as
149.
▲
by
paavoova
8y ago
Forget about state organizations, Google itself is already malware-as-a-service as far as the Android ecosystem is concerned. Regardless of whether or not the user expects it, the fact is most Android phones ship with Google play and this i
150.
▲
by
paavoova
8y ago
I find this reality highly disturbing, but, as you mention, the average user is impartial if not completely ignorant. I think Google is very clearly exploiting both its monopoly and this end-user ignorance to centralize and control all aspe
More ›