Code snippets, ideas and events from IT related projects

by Robert Gawron

Archive for January, 2010

Domain Specific Language in Ruby used as a Virtual Machine

22.01.2010 17:59, Posted in , 17 comments, 0 pingbacks

Abstract

Post describes a simple DSL language (in Ruby), that is used as a virtual machine, for a simple assembly language. This assembly language was used by me a couple of months ago, when I created a simple programming language — there are already implementation of its VM written in C (by czarodziej) and in Python (by me).

continue reading

How to use cheap camera as a night vision device

Abstract

Not many people know, that regular camera can be used as night vision device due to the fact, that it’s able to take pictures in infra-red rays. If we will provide a source of those rays, environment will stay in dark, but we will be able to see things.

continue reading

Simple power supply based on step motor

16.01.2010 18:26, Posted in , 2 comments, 0 pingbacks

Abstract

There is more and more small of devices around us, like phones or mp3 players and as any other they needs batteries or other power supplies. It can be problematic if you don’t have money for new batteries and you don’t have charger — basically this what was my problem with mp3 player.

Interesting solution in its case may be power supply based on power of muscles. You just push or roll something and this creates power needed for the player. In this note I would like to present prototype of such device.

continue reading