Friday tip: How to quickly serve files from any directory

This tip is very short, but in my opinion very useful. I used it so many times and it saved me in some situations.

When you need to share files from a directory just go this directory and run:

now you can see the list of files in your browser. You may access it on port 8000 via url:

http://<your_pi_ip>:8000

If you want it to listen on different port just run:

Using SimpleHTTPServer you can even host simple HTML websites. It’s not recommended for longer period but in some situations it may be useful.

Python and PyPy on Raspberry Pi 1 nad 2 – Benchmarks

The new Raspberry Pi is out. How fast is it? About 6x they say, 6x using 4 cores! What about one core? How fast will your code run? Let’s use The Grand Unified Python Benchmark Suite and check it. What is it?

This project is intended to be an authoritative source of benchmarks for all
Python implementations. The focus is on real-world benchmarks, rather than
synthetic benchmarks, using whole applications when possible.

Continue reading…