Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Avernar
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
211.
▲
by
Avernar
11y ago
Yes, I read your comment. :) What I was saying is that when you're using shared memory to talk to another thread or process (which by definition is running on another thread) you need to use memory barriers or the processor may do the
212.
▲
by
Avernar
11y ago
Volatile only affects how the compiler handles memory access. It does not tell the processor anything at all. The processor is still free to reorder reads and writes. You need to use the fence and lock instructions to create memory barri
213.
▲
by
Avernar
11y ago
The maglocks we installed had a field sensor that measured the bond strength. The LED on the maglock would turn red when powered and then turn green when the bond strenght was correct. Even a tiny piece of paper would keep the LED from goi
214.
▲
by
Avernar
11y ago
There were secure alternatives available several years ago. Unfortunately the industry is moving from code running on bare metal to having the main panels and now the door controllers run a full embedded OS. The complexity of how everthin
215.
▲
by
Avernar
11y ago
> It is also worth noting that earth in the show built their own DHD which presumably would have different computer limitations than the ancient built DHD The gate itself has control crystals as you can dial out without a DHD if you jus
216.
▲
by
Avernar
11y ago
I loved the active/passive mode feature of FTP back before getting broadband. I had an FTP client that would put one server in active mode and one server in passive mode and transfer files directly between them with only status messag
217.
▲
by
Avernar
11y ago
Using the ibi/ebi notation is fine when it is written, especially when you have base 2 and 10 in the same document. Speaking it however makes you sound like you have a speach impediment and non geeks will think your're a moron. Y
218.
▲
by
Avernar
11y ago
> Frequencies are irrelevant. No they're not. They're very relavent for anything dealing with networkig and communications. I recently programmed an atmega chip for a homebrew project and the frequency of the SPI bus was very
219.
▲
by
Avernar
11y ago
> thumb drive capacities I don't recall ever seeing a thumb drive advertised base 10. Have you seen base 10 for thumb drives often?
220.
▲
by
Avernar
11y ago
I grew up with computers so tinking binary is not an issue for me. Storage capacity has always been wierd. A 1.44MB floppy actually has 2,880 512byte sectors. Base 2 and base 10 in the same measurement!
221.
▲
by
Avernar
11y ago
Compact Flash, SD, thumb drives are all advertised base 2. SSD are advertised usually base 10 but I've seen some advertised base 2. No consistency. But that's marketing for you.
222.
▲
by
Avernar
11y ago
I personally prefer base 2 units for file size. A 2GB file will take 2GB of memory when I load it in. Hard drive page sizes are also base two, 512 bytes for most drives and 4096 bytes (4K) for newer large capacity drives. I also prefer ba
223.
▲
by
Avernar
11y ago
Flash drives are base 2. The memory chips inside are base 2 capacity. The flash control chip just reserves some space for wear leveling and other internal functions.
224.
▲
by
Avernar
11y ago
I agree. When the return type changes now you'd have to change every spot it's called regardless if the return value is used or not. This would be very annoying if you don't have a refactor function in your IDE or if the am
225.
▲
by
Avernar
11y ago
The postgres documentations says exactly that. Other databases might do something else so it's best to read the documentation.
226.
▲
by
Avernar
11y ago
Nice article. For your rule of thumb section there is a third case. For a future event that must happen x number of seconds/minutes/hours/days into the future you want to store it as UTC and not wall time. For example, the
227.
▲
by
Avernar
11y ago
> The event was literally moved to a different time UTC. I'm glad we agreed that it was rescheduled. I think I see the confusion here. If you went to a group of people and said the movie you were all going to was rescheduled from 1
228.
▲
by
Avernar
11y ago
We don't agree. It was not rescheduled in reality. Your system would have said it was rescheduled to 7pm Toronto time while in reality the event would still be 6pm Tronto time. The people using your site/app/whatever would
229.
▲
by
Avernar
11y ago
Wrong. Let's say an event is scheduled for 6pm daily in Toronto (EST -0500). You store it as 11pm UTC. Now eventually we switch to EDT -0400 due to DST. Now your system will say the event is at 7pm local time. YOU just rescheduled
230.
▲
by
Avernar
11y ago
Not for events like shows, movies, work hours, etc. An event starts and stops at a specific local time. If the DST rules change then the UTC version will be wrong but the one stored in local time + TZ will be correct. Intervals should be
231.
▲
by
Avernar
11y ago
Funny thing is I read this about the Saudis and OPEC last night: https://np.reddit.com/r/worldnews/comments/4203ko/oil_price_... Basically he says that the Saudis don't trust OPEC, are pro productio
232.
▲
by
Avernar
11y ago
I am also type B and prefer statically typed languages and the compiler telling me as much as possible what's wrong with my code. I really hate finiding errors at runtime that should have easily been detected by my compiler.
233.
▲
by
Avernar
11y ago
Except that with the current reality people are commiting patent infringement for replicating objects based on obvious and trivial patents. And unlike large corporations with their war arsenals of patents, the little guy has little hope of
234.
▲
by
Avernar
11y ago
"They’re awarded for inventions that are nontrivial advances in the state of the art." I stopped reading right there.
235.
▲
by
Avernar
11y ago
> Let's Encrypt follows all redirects and ignores expired certificates Didn't know that. It will simplify my http to https redirect configuration. Do you know where the redirect and ignoring expiry dates is documented?
236.
▲
by
Avernar
11y ago
Going to PyPy4 would be nice. But mod_wsgi doesn't support it. It has something to do with PyPy not implementing Python's embedding API I belive. So I'll be sticking with 2.7 for now.
237.
▲
by
Avernar
11y ago
Except that in the windows example you gave the .rsrc section is part of the main data stream. It is counted in the file's size when doing a dir command. When the file is copied by all command line and shell tools or sent over the in
238.
▲
by
Avernar
11y ago
> Using utf-8 as the internal unicode representation is flawed too - index and length operations are slow. And this perfectly illustrates what I posted in another comment elsewhere. Thinking that doing operations on code points (indexin
239.
▲
by
Avernar
11y ago
> But seriously, all what python (and as a matter of the fact majority of languages) is placing a clear distinction between a byte and a character. No, they make a clear distinction between bytes and code points. This is the wrong appro
240.
▲
by
Avernar
11y ago
Nice, down voted for someone not agreeing with me. I'd rather know what you though was wrong with what I wrote. I've always wanted to know how things are done internally. Makes me a better programmer. What I said about all this
More ›