Visual Cryptography

After admiring the Krypto-Kekkonen, I thought I’d roll my own.

Here’s a Python script called split_pic.py to split an image of your choosing into two shares as described by the Naor-Shamir “visual cryptography” scheme. See the script for details.

The script requires PIL (Python Image Library). The outputs are two files, “share1.png” and “share2.png”. Print share1.png on paper, and share2.png on transparency/foil/plastic and carefully align them on top of each other to see the hidden image.

Or, you can use an image editor such as Gimp. Note, the layer effect must be “multiply” for both layers.

Here are two examples you can play with:

First share of the hidden image

First share of the hidden image

Second share of the hidden image

Second share of the hidden image

The Lost Sounds of Modern Music

Nowadays a lot of music is in digital format. One of the most popular digital encoding methods is MPEG-1 Audio Layer III, aka. “MP3“. Typically an MP3 file takes around 1/10 the size of the uncompressed original (depending on quality), thereby saving storage space.

MP3 uses a form of lossy compression. This means that the original sound can not be perfectly recovered. What is recovered (sound you hear) is some kind of approximation of the original.

MP3 does this lossy compression by removing the sounds which a human ear cannot distinguish, using so-called “perceptual coding“. The sounds which are removed are specified by a psychoacoustic model, which is created using human input, for example listening tests.

In other words, this means that many people are all the time listening to music with “something missing”. But what is this something, what does this something sound like?
(more…)

Make Dutch Country Cheese Soup!

After you’ve made some nice onion soup, how about trying a different soup? The soup is called Dutch country cheese soup.

Yet again, it is a soup that is perfect for the cold winter days (speaking of which, today it’s -15 C here).
(more…)

Make Onion Soup!

Winter will soon be here in full effect at the Northern hemisphere, especially here in Scandinavia. What better way to thaw from the subzero temperatures than with some good, hot food. Here’s an easy recipe for some damn good onion soup.
(more…)

Zenburn v2.4

Zenburn v2.4 is released!

Changes: 256-color syntax fixes (in Spellchecker and PMenu). Toggle for forcing dark background (Tim Smith).

Grab it from Vim.sf.net or from the Zenburn page.

Do-It Yourself Ominously Apocalyptic Prophecy Generator

Found this old crappy program I made a long time ago. It autogenerates ominous-sounding “prophecies” รก la Nostradamus. Have a look at Nostra and run for cover!

Example:

“You know how to handle contradicting of singularity, but you cannot read the signs of the times. It is the exile asking for a crown jewel, but the only thing given will be the sign of the Equator.” (3 John 9:44)

New Zenburn version (v2.3)

Includes CursorLine fix for 256-color mode by Pablo Castellazzi. Get it here! Also up at vim.sf.net.

LibGMP Version of Rowland’s Prime Generating Function

I took Christian Sonne’s C-language version of Eric Rowland’s algorithm to generate prime numbers, optimized it and enhanced it to use the GNU MP multiple precision arithmetic library.

This means you can keep on running it as long as you like and occasionally peek which primes pop out. It might be good to redirect the output to a file, too.

Grab the source here.

The Missiles of Iran – Photoshopped or Not? (updated)

In the ongoing waltz around the issue of nuclear power / nuclear weapons of Iran, recently Iran conducted a missile launch test using long-range missiles capable of hitting Tel Aviv and other cities of Israel. This test was obviously in response to Israel’s earlier military exercise in the Mediterranean. And that was in response to the fear of Iranian nuclear weapons and threatening political rhetoric by Iran’s leaders, and so on and so on.

Anyway, some pictures and video were released from the missile test. In the pictures, due to self-similarities in the dust clouds resulting from a missile launch, claims were made that Iran’s missile test pictures had been digitally altered. And, of all things, using the simple “stamp” aka. clone aka. copy-move tool available in most image editing software…
(more…)

New Zenburn version

Incorporates a small fix for StatusLine in the 256-color terminal mode. Thanks to Charlie for spotting it. Get it here.

Update: v2.2 also now in vim.sf.net. (I found my password, hooray)