Saturday, February 22, 2014

About The Voynich Manuscript

The other day news broke about Stephen Bax publishing a proposed partial decoding of The Voynich Manuscript.

This naturally led me to have a look.

But first: I am not a linguist, and not a biologist. Dont take my observations too seriously.

The document is available in a semi OK resolution from Yale, here:

http://brbl-dl.library.yale.edu/pdfgen/exportPDF.php?bibid=2002046&solrid=3519597

The page numbering used below is taken from the Yale PDF.

Some of my notes:

* All plants are depicted with their root system. Several appear to have more focus of the root system than the top part of the plant. Examples 16r (the "cannabis plant"), 16v, 17r, 17v and many more.
The connection between the root system and the above-earth part of the plant often displays a "clear cut" (ie 16v), suggesting to me that the root is the important part.
Also, cannabis does not have red flowers, suggesting to me this is not a cannabis plant.

* All plants have been painted on the pages before the text was written. This can be seen on almost every page, where the text "floats" around the remaining space of the page.
(for example 22v). On 24v you notice that the coloring of the plant was made after the text and the plant has been painted (the coloring of the blue flowers is smearing a few letters of the text)

* It may be possible that the plant drawer and the writer may not be the same person.

* The written text does appear to follow the same style over the documents, suggesting it was written by one person.

* The text does follow left-to-right style, and what appears to be some form of letter capitalisation in beginning of sentences, suggesting that the writer had previous knowledge of some latin language.

* There does not seem to be a punctuation symbol. Text are simply separated by new paragraph.

* Due to the stylisation of the written text, it is highly unlikely this is written by someone who previously did not have a history of writing. The cursivation and estethical decorations suggest that the writer did have excessive training in writing, likley in another language.

* On 25v you see a little animal on the right corner of the image, eating on the leaf of the plant.
To me it looks like a childrens drawing. The style of the little animal suggest that it was not painted by the same person who painted the plants.

* On 33r, two faces have been painted in the roots, similar to the 25v animal ?

* On 33v, aka "the sunflower". The roots have some wierd spiky balls, which may or may not be similar to https://en.wikipedia.org/wiki/Jerusalem_artichoke  however the blue coloring of the
flowers suggests this is not a sunflower, but rather something similar as to what is also shown on 33r.
These looks to me like sorts of Cirsium, 34v also seems like a Cirsium.

* On 38r, wierd "sperm like" drops are seen in the leafs of the flower. Could it be water droplets as in morning dew?

* On the top left page of 42v, a very curious symbol is painted out from the initial letter.

* On page 49v in the left margin, you can clearly read "1 2 3 4 5", suggesting again to me that the writer had previous knowledge of other languages. The same page has more arabic number series in the left margin of the page, "0 2 9" repeats, and "8 9" occurs (read top-down). I may be confused by the apperance of the symbols. However the "1 2 3 4 5" sequence is a extremely unlikely coincidence.

* These numbers in the left margin can be seen on several other pages, such as 54v. Again, i may be confused by the appearance of the symbols. However the more i look at it, it does look like a code.

* On 57v, we can see what appears to be an alphabet sequence in the circles. The sequence is mirrored on the other part of the same circle in the second circle counted from the outside.

* Page 58r, 58v is decorated by what seems to be stars, and no other paintings. Is these pages about astronomy?

* Page 66r again has a left-column top-down list of symbols, what looks like a encryption key of sorts.

* Page 66r also has a scribble of a person laying on their back.

* Page 66v has some leftover scribble in the bottom left corner, what looks to be the works of a child.

* Page 67r, here starts the astronomical drawings. The right image would be a depiction of the calendar year, broken up into 12 months. The little symbols looks like moon phases.

* Page 73v has a crossbowman in the center of the image.

* Page 76r again has some code in the left margin

* Page 77r, 77v, 78r, 78v, 79r, 79v (and more) appears to depict some water pipes with people bathing in them.
A general obsession with bathing barrels and naked women appears on several of the pictures.

* Page 84r seems to depict a bathing house, wich makes me think of turkish bath house tradition.

* Page 88r, 88v again seem to focus strongly on the plant roots.

* From page 103r and several pages forward, stars are painted in the left margin. Each star seems to  correspond to the beginning of a sentence on the same line (these "capital" letters does seem to occur on every place
next to the star). May be coincidental and more detailed analysis may reveal i am totally wrong :-)

Tuesday, February 11, 2014

mysql UCWORDS, UCFIRST, IS_UPPER, IS_LOWER

Been writing some mysql stored procedures lately,
and have started making some stored functions and corresponding tests.

since finding examples and other snippets to look at was kind of hard, i'm leaving these here.


DROP FUNCTION IF EXISTS UCWORDS;

DELIMITER $$
CREATE FUNCTION UCWORDS (input VARCHAR(255))
    RETURNS VARCHAR(255)
    DETERMINISTIC

BEGIN
    -- --
    -- based on PHP's ucwords()
    -- Uppercase the first character of each word in a string
    -- --
    DECLARE len INT;
    DECLARE i INT;

    SET len   = CHAR_LENGTH(input);
    SET input = LOWER(input);
    SET i = 0;

    WHILE (i < len) DO
        IF (MID(input, i, 1) = ' ' OR i = 0) THEN
            IF (i < len) THEN
                SET input = CONCAT(
                    LEFT(input, i),
                    UPPER(MID(input, i + 1, 1)),
                    RIGHT(input, len - i - 1)
                );
            END IF;
        END IF;
        SET i = i + 1;
    END WHILE;

    RETURN INPUT;
END$$

DELIMITER ;





DROP FUNCTION IF EXISTS UCFIRST;

DELIMITER $$
CREATE FUNCTION UCFIRST (input VARCHAR(255))
    RETURNS VARCHAR(255)
    DETERMINISTIC

BEGIN
    -- --
    -- based on PHP's ucfirst()
    -- Make a string's first character uppercase
    -- --
    DECLARE len INT;

    SET len = CHAR_LENGTH(input);

    RETURN CONCAT(
        UPPER(MID(input, 1, 1)),
        RIGHT(input, len - 1)
        );
END$$

DELIMITER ;




DROP FUNCTION IF EXISTS IS_UPPER;

DELIMITER $$
CREATE FUNCTION IS_UPPER (input VARCHAR(255))
    RETURNS BOOL
    DETERMINISTIC

BEGIN
    -- --
    -- return TRUE if input string is all upper case
    -- --
    DECLARE i INT;
    DECLARE len INT;

    SET len = CHAR_LENGTH(input);
    SET i = 0;


    WHILE (i <= len) DO
        IF (MID(input, i, 1) != UPPER(MID(input, i, 1))) THEN
            RETURN FALSE;
        END IF;
        SET i = i + 1;
    END WHILE;

    RETURN TRUE;

END$$

DELIMITER ;




DROP FUNCTION IF EXISTS IS_LOWER;

DELIMITER $$
CREATE FUNCTION IS_LOWER (input VARCHAR(255))
    RETURNS BOOL
    DETERMINISTIC

BEGIN
    -- --
    -- return TRUE if input string is all lower case
    -- --
    DECLARE i INT;
    DECLARE len INT;

    SET len = CHAR_LENGTH(input);
    SET i = 0;


    WHILE (i <= len) DO
        IF (MID(input, i, 1) != LOWER(MID(input, i, 1))) THEN
            RETURN FALSE;
        END IF;
        SET i = i + 1;
    END WHILE;

    RETURN TRUE;

END$$

DELIMITER ;

the UCWORDS function are based on http://www.flynsarmy.com/2011/12/ucfirst-function-for-mysql/

Saturday, October 05, 2013

Compiling MonoDevelop from git for Debian Sid

Having recently struggled again with getting a current version of MonoDevelop compiled and running on my Debian laptop, i thought i share my findings.

This will install the full mono toolchain from git.

In order to complete the first step, "compile mono", we will actually have to rely on Debians "mono-gmcs" package.


Before you begin

The first thing to do is to nuke all traces of existing mono packages on your system. You can reinstall them later but in order to simplify the installation, you should avoid having them around when trying to configure these packages so the correct versions are used.

This command should remove mono:

sudo apt-get remove mono-* monodevelop

First, build Mono:

sudo apt-get build-dep mono
sudo apt-get install mono-gmcs
git clone https://github.com/mono/mono.git
cd mono
./autogen.sh --prefix=/usr/local
make

sudo make install
sudo apt-get remove mono-gmcs



Next, build gtk-sharp (gtk#), using the gtk 2.0 branch

sudo apt-get install libgtk2.0-dev libpango1.0-dev libglade2-dev libgdiplus
git clone -b gtk-sharp-2-12-branch https://github.com/mono/gtk-sharp.git
cd gtk-sharp/
./bootstrap-2.12 --prefix=/usr/local
make
sudo make install



Then, build gnome-sharp (gnome#):

sudo apt-get install libgnome2-dev libgnomeui-dev libgnomecanvas2-dev
git clone https://github.com/mono/gnome-sharp.git
cd gnome-sharp
./bootstrap-2.24 --prefix=/usr/local
make

sudo make install


Next up is mono-addins:

git clone https://github.com/mono/mono-addins.git
cd mono-addins
./autogen.sh --prefix=/usr/local
time make

sudo make install 


Finally, you can build monodevelop using your previously compiled
packages:

sudo apt-get install git
sudo apt-get build-dep monodevelop
git clone git://github.com/mono/monodevelop.git
cd monodevelop
git submodule update --init --recursive


You are now on the master branch of monodevelop and will be building the latest alpha code. If you want the latest stable (as of this writing), now is the time to switch to the correct branch:

git checkout monodevelop-4.0.13-branch 

./configure
time make
make install 




PS: i also came across (stable) debs of monodevelop 4.0.12 for Debian which works on sid too, here: http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=monodevelop-opt

Wednesday, December 02, 2009

Howto compile Monodevelop 2.2 from trunk in Ubuntu 9.10

I wanted to try out the new monodevelop 2.2 beta in Ubuntu but had some trouble installing it, so I thought i'd share.

sudo aptitude remove monodevelop
sudo apt-get build-dep monodevelop
sudo aptitude install subversion gnome-sharp2 libmono-microsoft-build2.0-cil

svn co svn://anonsvn.mono-project.com/source/trunk/monodevelop monodevelop-svn

cd monodevelop-svn
./configure --profile=core
make
sudo make install

Labels: ,

Thursday, January 12, 2006

Speeding up page load times with Firefox and Adblock

I have been trying to fight ads on the web for many years now. So when i switched to Firefox from IE as my preferred browser, I was very happy with the built in popup blocking, and possibility to ban images based on their source host. It worked ok for me, until I stumbled on the excellent Firefox extension Adblock.

http://adblock.mozdev.org/

To use this extension you need the Firefox browser, get it here: http://www.getfirefox.com/

This extension lets you specify either exact paths to files you want blocked, or wildcard patterns.
This lets you block javascript, flash, images, external iframes, or just about anything you can think of.
When I started using this extension, I first uninstalled Flashblock and NoScript extensions. They do work together, but Adblock offers more fine-grained control over what content is allowed and what is not.

For example, instead of blocking the address
http://adserver.adtech.de/adlink|3.0|552|1044469|0|608|ADTECH;loc=300;grp=1

You can just block
http://*adtech.de/*

And all links from adtech.de (and subdomains) will be blocked.

To test this out, I have visited some of the most popular swedish websites, and blocked all advertisement I could find. I also choosed to block so called tracking pixels. 1x1 transparent pixels, often located on a remote server that is used to track your surf behaviour.

I went through all commercial swedish sites I could find, and blocked them from all ads & tracking pixels.

Here are some before & after screenshots:

aftonbladet.se - before, after
expressen.se
svd.se
dn.se
metro.se
torget.se
eniro.se
gulasidorna.se
spray.se
skunk.spray.se
helgon.net
lunarstorm.se
playahead.com
whoa.nu
gon.se
regeringen.se
posten.se
nordea.se