December 27, 2013

According to wikipedia:

In computing, a quine is a computer program which produces a copy of its own source code as its only output. … Quines are named after philosopher Willard Van Orman Quine (1908–2000), who made an extensive study of indirect self-reference. He coined, among others, the following paradox-producing expression, known as Quine’s paradox. “Yields falsehood when preceded by its quotation” yields falsehood when preceded by its quotation.

Coming up with simple quine in python is not hard…

s="s=%s;print s%%`s`";print s%`s`

There is also alternative approach. The output is program’s source code, this is not really allowed but loading its source code works like a charm…

import sys; print "".join(open(sys.argv[0]).readlines())

For some more self-reproducing programs have a look at: self_pyth.txt.

Fun with iBeacons

iBeacons: tutorials, documentation, sample projects and limitations. Continue reading

Programmers' humor

Published on January 11, 2014

Monitor wireless traffic with TShark

Published on December 31, 2013