News for hackers. Stuff that matters.

Triave

Re:Plaintext HTTP in a Modern World on Sunday July 10, 2022 @08:54AM (#32044266)
The article recommends redirecting if the browser sends a Upgrade-Insecure-Requests header.
Re:The tale of aux.c on Tuesday September 26, 2017 @01:34AM (#15336449)
ADFS allowed directories, but used "." as the separator, giving you paths like "Letters.Memo1".

Were you thinking of DFS?

Re:Dwarf Fortress starting during apt-get upgrade on Wednesday August 16, 2017 @07:58AM (#15026753)
I'm guessing the interactive fiction interpreter [1], which predated the version control system by a couple of years.

[1] http://web.archive.org/web/20120826174233/http://diden.net/i...

Re:Return True to Win on Friday August 12, 2016 @12:26PM (#12276879)
In C, empty strings are truthy, being a non-null pointer to a NUL character. Depending on what you mean by "an empty array" that might also be a non-null pointer to a zero-length region of memory, and thus also truthy in C.
It's information about an identifiable living individual. (In this context, Personal information is information about a person, not information owned by a person.)
Re:How to C in 2016 on Friday January 08, 2016 @07:58AM (#10864511)
"int" doesn't reveal the intention of the programmer - they might just have used it because it's "int", not because it changes size based on what system you are targeting.

If they used 'int_fast16_t' from <stdint.h>, you have at least an idea that they considered that it might only be 16 bits, and that it can be a larger type on systems where operations on 64-bit types are faster.

Re:Achron, time shifting RTS on Wednesday March 27, 2013 @08:20AM (#5448939)
It is available through Steam. http://store.steampowered.com/app/109700
Re:C-based Virtual Machine for Notch's DCPU-16 on Wednesday April 04, 2012 @04:50PM (#3799765)
Depends how left shift is implemented: on some processors (including x86), only the lowest order bits of the number of positions to shift by are used. In Java:

char A = 1; A = ((char) ((A << 32) & 0xFFFF)); System.out.println(Integer.toHexString(A));

actually outputs 1.

Re:C-based Virtual Machine for Notch's DCPU-16 on Wednesday April 04, 2012 @03:29PM (#3799388)
Note that this VM can depend on behaviour that is explicitly left undefined by the C11 standard. For example, this DCPU-16 program can cause a shift by an amount greater than the width of uint16_t:

SET A, 0x1 SHL A, 0x100