import sys, BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
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, "..."
The above example serves all pages/files in the current directory, as long as the host:port combination is accessible.
And when we thought things couldn’t get smaller… Here is an amazing little board with plenty of i/o, wifi, micro-usb and on board antenna.
Almost same size as an SD card and can be programmed with the Arduino IDE we all know and love.
There is one thing this board needs. A new name. ESP-8266?! Come on!
LadyAda has a better name for it: Huzzah!
I wanted to convert these IKEA stools to bedside tables. The reason was that they match the rest of the bedroom furniture abd there was limited space near the beds, so we could not really use normal bedside tables.
INGOLF is a great basic stiol from IKEA
To add a shelf to it, I just got an extra shelf of KOMOLEMENT and cut two pieces at the right size, using my table saw.
I decided to remove the diagonal support pieces, to make it look more like a bedside table and less like a stool.
it was then easy to fit the custom shelf using a couple of plastic fittings:
I used iron-on tape I bought on Ebay to hide the cut sides of the shelf. I got 5cm, to cover both the shelf side and the horizontal support piece. The tape was a but wider than required, so I removed the excess using a chisel. It was the first time I used this simple iton-on tape and I think it worked pretty well.
And here is the final result. One extra shelf where we need it!
The following setup has worked for me in the past. I’m sharing it online in case someone else find it useful too.
First I bought and activated a hotspot jetpack from Verizon. I got the card from a Walmart while I was there. Before you buy a hotspot, check online to see which companies cover the area you are planning on visiting.
i pay $100 for 10GB and that’s active for 2 months.
Recharging it is a bit if a pain. Verizon won’t accept a non-US credit card, and I don’t really like the scratch cards, so what I do is to use the Recharge.com service.
Looks dodgy (come on guys spend $100 on making your site a bit better!), but it seems to work. There is a max limit, so it takes a few paypal payments to get it to the limit I want. Still!…
I recently got a 4G phone and realised that my then provider, Virgin, did not support 4G. I started looking for alternatives and EE was the obvious choice.
I ran a speednet test before I removed the Virgin simcard and one with the new EE simcard installed.
I just couldn’t believe the difference!
Clearly this is a 3G vs 4G comparison, but still!…
In the UK we have been bombarded with EE ads that tell us how great their service is. They should show examples of their speed tests compared to other networks. Had I seen a test similar to the above I would have switched earlier!