I recently see a good deal from Staples for a Dell monitor – it’s 50% off , unfortunately it’s out of stock very soon. I can’t visit it everyday, so let do some funny stuff , writing a simple command to alert me when it’s in stock again. Here is what it comes withRead More →

The most common problem with all Mac machine is overheating. if you are using a Macbook Pro or Imac , you sometime feel it’s too hot. This might result in killing your graphic card. It’s very expensive to replace that card or unable to replace it ( you have to replace the whole mother board). I have experienced this with my Macbook Pro 2011 and IMac 2011, they are all dead after sometimes because the overheat. Since then, i need to find a way to monitor my cpu temperature and adjust the fan speed to cool down the cpu. For a normal user, i suggestRead More →

I have a graphite setup using a docker , now i setup another stand-alone graphite instance , i setup them as a cluster meaning both of them can see data each other. The weird thing is that the docker instance can see data from stand alone instance. But stand alone instance can’t see data in docker instance. i doubt it’s a network issue, but it’s not , i can see stand-alone sending query to docker. i don’t see any error in the graphite web log, i finally find a way to turn on the log. We need to turn on DEBUG=True in local_settings.py , thenRead More →

I had some difficulties when trying to install collectd on Redhat 7 – the error was No package collectd available. I tried different method, and ends up with this solutionRead More →

I think i need to bookmark this website https://mitmproxy.org/ . This is an open source proxy. Why do i bookmark this instead of other proxy? The beauty of this proxy is coming from the fact it can interfere with the content, meaning you can modify the web traffic between your browser , it’s like the middle man , it can watch the traffic and modify it as well. Another great feature is that it will also allow you to capture https traffic, this is done by installing a root certificate to your machine. This will remove all https warning.Read More →

I hava a small utility which accept some input from command line from another system. To keep the utility more open, i don’t want to restrict some parameters, the caller can provide more parameters, i will just need to ignore them. In Python, we use argparse for this job, by default if the user provide more parameters that you expect, it will trigger the error. There is a way to overcome this Below is the script i use for this job,  Read More →