Saturday, October 13, 2007

Mathematics in Blogger

Installed LaTeX for blogger which will enable me to write math stuff on my blog :-)

So I use Open Office Math module to write the formulas, export it to a LaTeX file, copy and paste it into my blog and with the push of the button I transform:

$$\prod _{i=1}^{i=100}{\frac{(x_{i}+1)\cdot x_{i}^{3}}{x_{i}^{2}-1}}=\text{?}$$

into a nice picture:



Update:
Looking a bit further into the code I noticed the actual conversion is done by this website [John Forkosh]. The previous link only provides the greasemonkey script. On his website he requests to install it yourself and provide this service for free to other people. So I adjusted some of the scripts, compiled mathtex.cgi and installed it on my server. So here is a quick install guide:

  1. Have Firefox as browser
  2. Install the Greasmonkey plugin in Firefox
  3. Install the Greasemonkey script
  4. Change your blogger template:
    img.latex_eq {
    padding: 0;
    margin: 0;
    border: 0;
    }
    just before the line: ]]>
  5. Test: write in blog a formula: $$\pi = \int_{0}^{1} \frac{4}{1+x^{2}}$$
    Select it and click on the LaTeX button :-)
And here is the actual LaTeX conversion cgi script on my website.

Thanks to John Forkosh for the mathtext cgi script and Logan Wolverine for the greasemonkey script.

Monday, May 22, 2006

Art is Fun


Went to the National Portrait Gallery on Sunday. This interesting picture of King Edward VI was on display. It uses a technique called anamorphosis. The picture is distorted (stretched) to amaze the viewer. If you look from right to left (leaning against the wall) you see it in the correct perspective.

Friday, May 12, 2006

Quote

Bruce says: That's my solution; Noise polution!!

Monday, May 08, 2006

Music throughout the House

I like to listen to a bit of internet radio and once and a while to some songs I've stored on a computer in the cupboard. The whole thing must play continuously even if I change workplace or computer without me having to push buttons or pull levers.

Solution: centralize everything, broadcast it through the house, and make sure I can access this broadcasting solution from anywhere (including toilet) in the house via a web browser


Technical


Tiny bit of flash (Created with Open Office Draw):






Main components



  • MPD - Music Player daemon - background process for playing music

  • Jinzora - Web Frontend for music collection - can also interface towards MPD

  • Icecast - Streaming Server

  • MySQL - Database for meta data storage (id3 tags) for Jinzora

  • LVM - Logical Volume Manager

  • RAID1 - Redundant File System

  • Wi-Fi - Wireless network



So now I access Jinzora via a browser and I can choose music, create a playlist or select an internet radio. Jinzora tells MPD to stream this to Icecast. Icecast re-encodes it into a Ogg Vorbis stream and streams it onto the network. Different clients (XMMS/Winamp/iTunes/MPlayer/VLC) can then connect :-) One little downside, icecast isn't capable of multicast :-( But that has to wait anyway cause the wireless network isn't multicast either.

The LVM + RAID solution I created to easily stack harddisks together and configure them in one single volume (redundant), much needed if you have 50,000+ songs (I've backed up every single cd I ever listened to)

Ok next step is a similar solution for video, probable via VLC.

Sunday, May 07, 2006

Diggers website


My Cambridge narrow boat friends Marcus and Letty, , will create maps of an archeological dig as freelancers near the north Pole in Russia. So to secure me a bottle of wodka I made him a website for his new company.

First version is a basic copy of my palestine voluntering work with different logo and colors.

Version 1.0beta:
Cartographic Antiquity

Saturday, May 06, 2006

Birthday Blog

I decided as of today to start a blog concentrating on my ventures in the technical worlds of computers.

Well, Happy Birthday me :-)