News for hackers. Stuff that matters.

rainbowgarden

Re:Wikicoding, the wikipedia of code on Monday June 01, 2015 @10:27PM (#9643467)
Here's the link to the project repository: https://github.com/arjun024/wikicoding
Re:Socket programming – well commented examples on Sunday February 22, 2015 @06:44AM (#9089074)
It will overflow to filler[3]. ie the 4th byte. see the struct sockaddr:

	 * first 2 bytes: Address Family,

	 * next 2 bytes: port,

	 * next 2 bytes: ipaddr,

	 * next 8 bytes: zeroes.
so filler[2] and filler[3] will form a short which will contain the port number.
Re:ImageTweet – Tweet longer messages using Images on Friday January 02, 2015 @04:34PM (#8828683)
not better than splitting a 1000 character message??
Re:Decoding Floats on Wednesday December 17, 2014 @04:03AM (#8761633)
When dealing with floats, it should be noted that unlike a 32-bit `int` which is a signed 2's complement representation; a 32-bit `float` follows single precision floating point representation which is 1 sign bit, 8 exponent bits and 23 mantissa bits. Not that there's anything wrong with the article, i just wanted to put it here.
Re:Linus Torvalds on semaphores (1999) on Wednesday December 17, 2014 @03:54AM (#8761617)
Can you blame Linus for saying that? I can't speak with precision about 1999, but someone assumed to have a CS education should know the difference between semaphore and spinlock.

Older »