Tag Archives: Programming

Linking shared object files that aren’t explicity used.

Today I learned something from a nice stranger I met on the internet in the #stackoverflow channel on irc.freenode.net named at cky944. For a personal project I’m modifying the Hoard memory allocator — a shared object library that application programs can link with to replace memory allocation code (e.g., malloc, free, etc.). Other users of [...]

Posted in Programming, Ubuntu Linux | Also tagged | Comments closed

Calculating a square root.

I was just recently asked to calculate the square root of 17 without a math library. I couldn’t do it when I was asked to, so the question has been bugging me of awhile. I was bored today, so I decided to figure it out. The following is a Python function that calculates the square [...]

Posted in Programming | Also tagged , , | Comments closed

Write HTTP request to web server with PHP.

I’ve recently built a proxy server that manually handles a lot of HTTP exchanges. I summarized the proxy’s read/writing to the server here. It actually is very simple: format a request in the form of an HTTP header, send the request to the server, and then read the server’s response. // OPEN SOCKET TO SERVER [...]

Posted in Programming | Also tagged , , | Leave a comment