aglasspool

Swimming Sets You Free

In Uncategorized on November 22, 2010 at 3:18 pm

This page is an attempt to promote rational debate on the question of whether the above concrete construction at Auschwitz concentration camp was a fire-brigade reservoir, as confirmed by the official story:

Or whether the fire-brigade reservoir story is just a cover-up and it was in fact a swimming pool for inmates as according to this video:

Now, the only facts we have so far are the photo of the pool and a photo of the plaque.

In order to enter into a rational debate on whether or not it was a swimming pool we would first need some facts disproving that it was indeed a reservoir.

Vim + Autocompletion

In Uncategorized on April 19, 2010 at 8:14 pm

The following pasted into your vimrc file will auto-complete on pressing tab.
It will offer you suggestions based on your current text first, then on dictionary entries.
I also had to enter this in my buffer:

:set complete-=k complete+=k

put this in vimrc:

“Use TAB to complete when typing words, else inserts TABs as usual.
“”Uses dictionary and source files to find matching words to complete.

“See help completion for source,
“Note: usual completion is on <C-n> but more trouble to press all the time.
“Never type the same word twice and maybe learn a new spellings!
“”Use the Linux dictionary when spelling is in doubt.
“Window users can copy the file to their machine.
function! Tab_Or_Complete()
if col(‘.’)>1 && strpart( getline(‘.’), col(‘.’)-2, 3 ) =~ ‘^\w’
return “\<C-N>”
else
return “\<Tab>”
endif
endfunction
:inoremap <Tab> <C-R>=Tab_Or_Complete()<CR>
set dictionary+=/usr/share/dict/words

Arduino + Electrisave/Cent-a-meter

In Uncategorized on March 29, 2010 at 6:00 pm

Trying to get Arduino to talk to an Electrisave energy consumption meter.

With an AC clamp, it is possible to measure the current traveling through a wire without physically touching it. Basically it is a simple transformer where the wire of interest acts as the primary coil and the AC clamp is the secondary coil. Most AC clamps are integrated into a multi-meter. It outputs 10mV per ampere and is intended to be connected to a multi-meter. All you do is multiply the voltage reading by 100 to get the current in the wire. This one is made by Steren, model MUL-285.

Here is a sample of the readings:

0
0
0
0
31
29
0
0
0
3
34
21
0
0
0
13
42
1
0
0
0
23
37
0
0
0
0
34
28
0
0
0
4
34
20
0
0
0
1

First question: Are these mv? Is it pumping out 10mv per ampere?

If so, all we need to do is times these by 100 to get the current.

But they are not consistent:

The readings come in groups of two or three positive integers surrounded by zeros. If we sum these groups of positive values we can see a pattern; the groups of integers which are preceded by four zeros are consistently higher than those preceded by only three zeros.

Okay, here is the code to convert the raw data into approximate MW consumption, and then post it to my Sinatra app hosted by heroku.com:

http://gist.github.com/547873

Follow

Get every new post delivered to your Inbox.