Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
scoutt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
511.
▲
by
scoutt
6y ago
What amazes me most is the cascade of reasoning. It's the most obscene misuse of logic, that might be fine only if it comes from a toddler. "criticising protesters" leads to "support militia", that leads to "su
512.
▲
by
scoutt
6y ago
VERY interesting analogy! Never thought about it this way.
513.
▲
by
scoutt
6y ago
> make value judgements There is a whole branch of philosophy dedicated to that: it's called Ethics ( https://en.wikipedia.org/wiki/Ethics ). When an entire branch of philosophy exists for that sole purpose, cate
514.
▲
by
scoutt
6y ago
In a world where all the electronic devices are composed of x86 cores and/or have a data and/or instruction cache, it could be true. But there are plenty of architectures out there where space-time tradeoffs (by optimized compiler
515.
▲
by
scoutt
6y ago
Except when loops unrolls make things faster.
516.
▲
by
scoutt
6y ago
> good or bad I think the question, although genuine, has a flaw, that is, reasoning in terms of "good or bad". "Good or bad" for whom? Is something that is "not good" inherently "bad" and vicevers
517.
▲
by
scoutt
6y ago
> Buy a dog! Don't buy a dog. Adopt one.
518.
▲
by
scoutt
6y ago
Interesting. Thanks. But I am not so sure about disabling SELinux: > Disable SELinux on Red Hat or CentOS if it has been enabled. Countly may not work on a server where SELinux is enabled. In order to disable SELinux, run "setenforc
519.
▲
by
scoutt
6y ago
If I put you in front of a wall full of numbers, and I tell you "point a number with your finger and remember it", what is your finger? A number? Or the thing you use to point a number?
520.
▲
by
scoutt
6y ago
pointer != address Unless there is no difference between a pointer and an address , in a register you can store an address, maybe the address of a pointer (and so on). But you can be right if we talk about some registers that always poin
521.
▲
by
scoutt
6y ago
A variable that is a pointer occupies space in memory. In that memory (the pointer of the pointer) is stored the number. char* ptr = (char*) 0x80000000; By doing `&ptr` you can know the address of the pointer `ptr`. In that add
522.
▲
by
scoutt
6y ago
If you declare a structure of unaligned size, the compiler might (probably must) introduce some padding bytes at the end of the structure to fit the alignment. In some architectures you cannot do unaligned accesses (ARM for example). Unless
523.
▲
by
scoutt
6y ago
I think the real difference comes with the knowledge the person is carrying when learning C. For example, people that are familiar with concepts like classes, string objects, arrays, etc. brought from higher level languages are the ones tha
524.
▲
by
scoutt
6y ago
But what is an array anyway? It's just a bunch of (contiguous) memory. That bunch of memory has to start somewhere. Since an array is just a bunch of memory, by pointing to the beginning of that bunch of memory you are pointing to the
525.
▲
by
scoutt
6y ago
> that would make the char pointer the 'first char in the array' then? That would make the char pointer to point to the 'first char in the array'.
526.
▲
by
scoutt
6y ago
> A pointer is an integer that indicates a position in RAM, ROM, NVRAM, flash, etc. A pointer stores a number that represents an address, without making reference where is located. Can be 0 (NULL). "p+1" can be the next byte in
527.
▲
by
scoutt
6y ago
Some sites make you download the PDF instead of showing it in the browser. The new tab opens and closes immediately after fetching the URL, so you don't get to see the URL in the bar. If the browser is set to open files with known edit
528.
▲
by
scoutt
6y ago
I know. You have to set the browser to ask what to do for every download. Then you download the PDF. After that go to "downloads" and right-click and select "copy source URL" or something like that. That's the only
529.
▲
by
scoutt
6y ago
You can also say something like "sei proprio uno stupido" which means "you are actually stupid".
530.
▲
by
scoutt
6y ago
Phones is just one example. I didn't wanted to write "... including, but not limiting to, ...". But I am sure you knew when you read it. Still being billed for an universal human right (as health) is a problem, but you can
531.
▲
by
scoutt
6y ago
While in "in the last few decades" you could dream about owning a computer, today you have a supercomputer in your pocket that you can use to complain about the remainder of unresolved issues of our imperfect human society. And we
532.
▲
by
scoutt
6y ago
> human rights ... they're not compromisable ... or there's some greater good that needs to be enforced ... Well, there is (was?) the Patriot Act because 3000 were killed in a terrorist attack. This allowed for indefinite deten
533.
▲
by
scoutt
6y ago
You have been Microsoft'd.
534.
▲
by
scoutt
6y ago
But they "take issues of security extremely seriously"... Typical. When are we going to get tired of the same PR, damage-controlling, bullshit that we all know are blatant lies? EDIT: we need a GDPR hero.
535.
▲
Useful tips for learning embedded programming
(artekit.eu)
1 points
by
scoutt
6y ago
|
0 comments
536.
▲
by
scoutt
6y ago
This is correct, and applies (and is helpful) to many cases. But the moment you need to shift an "Int", or do bitwise operations or transmit it in a network packet (think about endianness, etc.), is the moment you may regret that
537.
▲
by
scoutt
6y ago
It's amazing! I've been doing some AOSP customization (Android 9) and I have several remote (Ubuntu) servers hosting/building OS images for different implementations (it takes too much disk space for a local PC and even so, I
538.
▲
by
scoutt
6y ago
I read it as 'extremely disillusioned with business/capitalism side of technology'. I think is normal and everyone sooner or later crash into it. Then one becomes like a drug dealer: I sell it but I don't use it (techn
539.
▲
by
scoutt
7y ago
> void memset(void s, int c, size_t n); > The memset() function shall copy c (converted to an unsigned char) into each of the first n bytes of the object pointed to by s. The standard just declares an interface, to be added to a C l
540.
▲
by
scoutt
7y ago
The article kind of lost me at the first example. struct{ char x char y; }a; memset(&a, 0, sizeof(char) * 2); What does the compiler know about memset ? Why it should? It can be a function called heyLetsFillTheMemo
More ›