A friend of mine came to me with the following issue. Her computer was slow and they took it to PC World. All the technicians did was to reinstall Windows from the Recovery partition. No change in performance… Then my friend realised she was missing some important documents!… I told her to stop using it immediately […]
import sys, BaseHTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler HandlerClass=SimpleHTTPRequestHandler ServerClass=BaseHTTPServer.HTTPServer protocol = "HTTP/1.0" host = "192.168.0.185" port = 8888 server_address = (host, port) HandlerClass.protocol_version = protocol httpd = ServerClass(server_address, HandlerClass) sa = httpd.socket.getsockname() print "Serving HTTP on", sa, "port", sa, "…" httpd.serve_forever()import sys, BaseHTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler HandlerClass=SimpleHTTPRequestHandler ServerClass=BaseHTTPServer.HTTPServer protocol = "HTTP/1.0" […]
If you want to switch off your monitor from your command line in linux, there is an easy way: sleep 1 && xset -display :0.0 dpms force offsleep 1 && xset -display :0.0 dpms force off What if you want to run this command remotely? Here is my take on this question: – use Python […]
I needed a case for the RaspberryPi. The good thing about the RPi being a business card-sized computer is that it fits nicely in a plastic box from old business cards. If you look on Ebay, you can buy 20 of them for £5 including delivery. The boxes make fantastic custom RPi cases! I didn’t […]
An IKEA mirror gradually becomes a control panel…
An example of how to merge the first page of multiple PDF.