Listing all header files your cpp depends on

Listing all header files your cpp depends on

I needed to extract certain Boost headers from its huge code base for memory mapped file & shared memory containers. The first idea came to my mind was a simple grep command for ‘#include’ statements and then parse the paths. This is simple but not so useful for the cases when headers are conditionally included. For example: #ifndef NO_STL #include… Read more →

WebSocket Being Served Via NginX Proxy Now

WebSocket Being Served Via NginX Proxy Now

The NginX server from the Ubuntu LTS repo was 1.1.x and did not support WebSockets. The minimum version of NginX that supports WebSockets is 1.3.13. Note that supports comes in the proxy module. I upgraded to 1.4.1 by compiling from source and the proxy module is enabled by default. Now you can taste WebSockets via NginX proxy at http://pico.simpleit.us/ . Only valid… Read more →

SimpleIT Blog is Now Powered by NginX & PHP FPM

SimpleIT Blog is Now Powered by NginX & PHP FPM

After much consideration, I finally moved away from Apache & mod_php to NginX & PHP FPM. The site works much faster and no more I/O & CPU issues. I suspect my Apache was hacked last time, resulting in weird I/O behaviour and spikes in CPU usage. The next steps: Install uWSGI for Python and Ruby Run NodeJS behind NginX proxy… Read more →

Why does Apache link sites-enabled/000-default to sites-available/default?

Why does Apache link sites-enabled/000-default to sites-available/default?

I was cleaning up Apache config and removed the default 000-default & default-ssl from the Apache sites-enabled sub-folder. To my surprise the default page now goes to a web app that I did not expect. It took me a sec to realize 2 things: The first VirtualHost config that has format *:80 (HTTP) or *:443 (HTTPS) was considered the default… Read more →

Solving password input problem with Snow Leopard

Solving password input problem with Snow Leopard

Snow Leopard is supposed to be a slimmer and more stable version than Leopard. When it comes to default password input, Leopard is far better as Snow Leopard has a few drawbacks: 1. It cannot input password in languages other than English! Leopard did that just smoothly. 2. It does not have input language at password by default like Leopard…. Read more →

Migrated DNS to Linode

Migrated DNS to Linode

Previously I hosted all DNS records for simpleit.us with NearlyFreeSpeech (https://www.nearlyfreespeech.net/). They provide cheap DNS hosting at 1c/day per zone. Initially I didn’t hosted my DNS records with Linode as I was interested in redundancy. However, later I realized that I didn’t have any back-up/disaster recovery site on par with the VPS hosted with Linode. The  account I have with… Read more →