HNHacker News
TopNewBestAskShowJobs

rainbowgarden

353 karma · joined November 9, 2013

submissionscomments
rainbowgarden··on Wikicoding, the wikipedia of code
Here's the link to the project repository: https://github.com/arjun024/wikicoding
rainbowgarden··on Socket programming – well commented examples
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.
rainbowgarden··on ImageTweet – Tweet longer messages using Images
not better than splitting a 1000 character message??
rainbowgarden··on Decoding Floats
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.
rainbowgarden··on Linus Torvalds on semaphores (1999)
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.
rainbowgarden··on This site produces a browsable tree of related info if you enter a keyword
'sandwich' gives a great result. there is some song called sandwiches and it's taking that into context. may be looking for the closest match of the given word.
rainbowgarden··on This site produces a browsable tree of related info if you enter a keyword
it's fun to browse through. I started with "India", ended up at Charlie Sheen ..