sunnuntai, kesäkuuta 29, 2008

tiistaina, kesäkuuta 24, 2008

Auto-op my IRC friends

I finally managed to make a plugin for Colloquy, the IRC client I use on the Mac. The plugin grants channel operator status to my friends when they join the channel.

My first stab at this plugin caused the version prior to 2.1 to crash. 2.1 seems to work, almost. Colloquy does not pass input from plugins thru the same parser which processes commands like /op, so it seems to be necessary to send raw IRC protocol command to give ops. Thanks for Juha Autero for his help.

You can download the plugin. Put it in Application Support/Colloquy/Plugins

lauantaina, kesäkuuta 21, 2008

Kännykän sterilointi?

Kännykän latausasema Kampin linja-autoasemalla

----
Lähetetty Sony Ericsson -matkapuhelimella

sunnuntai, kesäkuuta 15, 2008

Hevoset kesälomalle


Olimme tänään viemässä Primadonnaa, Nasua, Akashaa, Paavoa ja Pinkiä laitumelle. Tämä oli vain etujoukko. Loput hevoset tulevat ensi viikon lopulla kun Sandbackenin viimeisetkin kurssit on pidetty. Täällä ne saavat sitten syödä ja telmiä koko heinäkuun.

40 tuli mittariin

Syntymäpäivä vietettiin viemällä hevosia kesälaitumelle.

----
Lähetetty Sony Ericsson -matkapuhelimella

Erlang process spawning, continued

I forgot to explain why this obsession to use spawn/1 instead of spawn/3. spawn/3 calls the named function in the named module, which means the function must be exported by the module. In my program it felt unnecessary to export the helper function just for the purpose of being able to start a second process to run it. Only start/1 needs to be exported by the pingpong module now and life is good.

lauantaina, kesäkuuta 14, 2008

Erlang process spawning solved

I did not understand how to use the one-parameter spawn call in Erlang. Later I was looking for a tutorial on socket programming in Erlang and came across this. Among other things, spawn/1 was also used in there. This is how I now start a second process in my first Erlang program:

Pid = spawn(fun () -> pinger() end)

It works!

Erlang process spawning

I'm a bit puzzled about Erlang process spawning. Why does spawn/1 exist? Let me explain.

The normal way to spawn a process is apparently with spawn/3 (which means that spawn takes 3 arguments): spawn(Module, Function, Argumentlist). A "module" in Erlang means the file in which the function is specified.

There is also a variant of spawn that takes only one parameter, spawn/1: spawn(Function). It starts a process running that function with no parameters. One could easily think it is a shorthand for spawning a process that runs a function defined in the same module where spawn was called, but I have never gotten it to work.

When I try spawn/1 in my first Erlang program, all I get is this error: {"init terminating in do_boot",{badarg,[{erlang,spawn,[pinger]},{pingpong,start_pings,1},{init,start_it,1},{init,start_em,1}]}}

Anyone have any ideas?

perjantaina, kesäkuuta 13, 2008

My first Erlang program

I wrote a program to test how fast is the message passing and process scheduling in Erlang.

-module(pingpong).
-export([start/1, pinger/0]).

% This would be something that got its params from command line
% like: ['123']
start([PingH|_]) ->
start_pings(list_to_integer(atom_to_list(PingH)));

start(Pings) ->
start_pings(Pings).

start_pings(Pings) ->
Pid = spawn(?MODULE, pinger, []),
io:format("Processes ~w and ~w will exchange ~w pings~n", [self(), Pid, Pings]),
Pid ! { self(), Pings - 1 },
pinger().

pinger() ->
receive
{ Pid, 0 } ->
Pid ! quit,
done;
{ Pid, Pingsleft } ->
Pid ! { self(), Pingsleft - 1 },
pinger();
quit ->
done
end.

Save it into a file, like pingpong.erl, then compile with erlc pingpong.erl. Run with: time erl -noshell -s pingpong start 100000000 -s init stop

Sending 100 million messages takes roughly 60 seconds on my 1.4 GHz PowerPC Mac mini.

lauantaina, kesäkuuta 07, 2008

Hyvin parkkeerattu

Kuvattu työpaikan autotallissa. Autonhan voi jättää mihin haluaa jos oven vieressä ei ole vapaata pysäköintipaikkaa.

----
Lähetetty Sony Ericsson -matkapuhelimella

Sony Ericsson K810 muutaman kuukauden käytön jälkeen

Maaliskuun alussa kirjoitin uudesta puhelimestani alustavia kokemuksia. Ajattelin että nyt pitää kirjoittaa tuntemuksia muutaman kuukauden käytön jälkeen.

Kuvan lähettäminen blogiin on kiva toiminto ja käytin sitä ahkerasti niin kauan kuin se toimi. Sitten se vaan eräänä päivänä lakkasi toimimasta. Ruudulla palkki kulkee vasemmasta reunasta oikeaan ja sitten tulee teksti: "Kuvan lähettäminen blogiin ei onnistu." En ole keksinyt mitään tapaa korjata sitä, lähinnä siksi kun en ole löytänyt mitään asetuksia tälle toiminnolle. Tai voihan se vika olla Bloggerin päässäkin.

No, ei hätää, sähköpostin lähetys toimii ja kuvat kulkevat Bloggeriin sitä kautta aivan kuten ennenkin.

Kirjoitin aiemmin, että musiikkisoitin ei muista kuinka pitkälle mp3-tiedostoa on kuunneltu. Tämä ei näköjään pidä ihan paikkaansa. Jos musiikkisoittimesta poistuu kesken mp3-tiedoston kuuntelun ja tulee myöhemmin takaisin, soitto jatkuu siitä mihin viimeksi jäätiin.

Sen sijaan jos vaihdat kappaleen keskeltä seuraavaan ja päätätkin palata takaisin, toisto jatkuu edellisen kappaleen alusta, ei siitä kohdasta mistä hyppäsit eteenpäin. Tämä on vähän ikävää pitkien podcastien kuuntelussa, jos sattuu vahingossa tökkäämään tikkua niin, että soitin vaihtaa kappaletta.

Mac OS X 10.5 ei tietenkään osaa sykronoida kaletereita sun muita K810:aan. Sen sijaan jos puhelimen liittää Macintoshiin tiedostonsiirtotilassa, se näyttää ihan tavalliselta USB-massamuistilta. Macin työpöydälle ilmaantuu kaksi levyä: PHONE ja PHONE CARD. Olen sittemmin askarrellut iTunesin älykkään soittolistan ja Automator-työnkulun yhdistelmän, joka poistaa vanhat podcastit puhelimen muistikortilta ja kopioi sinne uudet.

PHONE- ja PHONE CARD -levyjen irrottamiseen liittyy pieni kauneusvirhe: Vain toisen levyistä pystyy irrottamaan, sen, jota yrittää irrottaa ensin. Jälkimmäistä levyä ei pysty irrottamaan. Puhelimen mielestä jo ensimmäisen levyn irrotus on riittävä ja puhelin pyytää irrottamaan kaapelin. Kaapelin irrotus kuitenkin saa Macin heittämään ruudulle pari ilmoitusta siitä kuinka levyä ei koskaan saisi noin vain poistaa ja nyt tietoja on voinut hukkua.

Tietoliikenneyhteydet toimivat ehkä suunnilleen samalla tavalla kuin Nokian 6630:n kanssa: Muutaman minuutin weppisurffailun jälkeen puhelimen selain alkaa valittaa tietoliikennevirheistä. Kun vaan sitkeästi yrittää niin kohta taas sivut latautuvat.

Puheluissakin on jotain vikaa. Pari kertaa on käynyt niin, että puhelin ilmoittaa tekstiviestillä uudesta puhepostista. Kun soitan takaisin minua tavoitelleelle ihmiselle, hän on sanonut että puhelu ohjautui suoraan puhepostiin. Kun näin on tapahtunut, puhelin ei ole soinut kertaakaan.

Eli ilmeisesti Nokia 6630:ssa ei sitten ollutkaan suurempaa vikaa ja syy lienee Soneran 3G-verkossa.

K810:n selaimessa on sama ongelma kuin 6630:ssa: Kumpikaan ei näytä tallentavan evästeitä. Tämä ilmenee siten, että jos kirjaudun jollekin sivustolle ja laitan kirjautumissivulla rastin ruutuun "Muista minut ensi kerralla," minua pyydetään silti kirjautumaan joka ikinen kerta. Ainut sivusto, joka ei vaadi kirjautumista jokaisella käyttökerralla on Google Readerin mobiiliversio, mutta se taitaakin tunnistaa jollakin muulla tavalla, ehkä WAP-puhelinnumeron perusteella tms.

Ericssonin käyttöliittymä on parempi kuin Nokian: Esimerkiksi jos johonkin paikkaan pitää kirjoittaa esimerkiksi sähköposti-tai weppiosoite, tekstinsyöttö menee automaattisesti pois T9-tilasta. 6630:ssa T9 piti itse ottaa pois päältä. Ja samaisessa tilanteessa joutuu usein osoitetta syöttäessään kirjoittamaan pisteen tai @-merkin. Ericssonissa kun painaa 1-näppäintä kerran, saa pisteen, toisen kerran niin saa @-merkin. Nokialaisessa ainakin @-merkki piti kalastaa paljon kauempaa. Muuten, kolmas painallus 1-näppäimestä tekee /-merkin. Näppärää, koska sitäkin usein tarvitaan weppiosoitteiden kirjoittamiseen. Ja Nokialaisessa sekin merkki piti hakea jostain kaukaa.

Olen edelleen positiivisesti yllättynyt kameran kuvanlaadusta. Zoomatut kuvat näyttävät melko huonoilta, mutta jos kuvia ei zoomaa, olen aika tyytyväinen moniin kuviin. Erityisen huomionarvoista on, että kelvollisia kuvia tuntuu tulevan jopa sisätiloissa ilman salamaa. Lisäksi asiakirjakuvaustilassa kamera tarkentaa aivan naurettavan lähelle, ihan parin sentin päähän paperista.

Kameran ollessa perustilassa ihmisten ihonväri ei näytä ihan oikealta. Jos kameran laittaa muotokuvatilaan (ja miksei laittaisi jos tarkoitus on kuvata ihmisiä,) ihonväri korjaantuu luonnolliseksi.

Radio on pienoinen pettymys koska se ei tunnu kovin herkältä. Se ei automaattihaulla löydä monia paikallisradioasemia ja jopa Yleisradion kanavat kuuluvat rakennusten sisällä erittäin huonosti. Jos YLEn kanavat riittävät ja kuuntelee radiota ulkoilmassa, äänenlaatu on hyvä.

Sijoitin muutaman kympin Ericssonin lisävarusteeseen, jossa saa piuhan, jonka toinen pää sopii puhelimen persiiseen ja toisessa päässä on vastausnappi ja normaali 3.5mm kuulokeliitin. Paketissa oli myös in-ear-tyyppiset kuulokkeet ja niihin 3 erikokoista tuttiparia. Pienimmällä tuttiparilla kuulokkeet ovat todella mukavat minunkin ahtaissa korvissani ja pysyvät hyvin paikoillaan. Kuulokkeet myös eristävät hieman ympäristön melua. Äänenlaatu on kyllä etenkin bassotoistossa melko kehno.

Kuulokkeissa on pieni nipsu, jolla kuulokejohdon saa kiinni takkiin tai paidankaulukseen. Se on hyvä keksintö, jonka toivoisin yleistyvän myös iPodin kuulokkeissa.

K810:aan ei saa ladattua kaikenmaailman omia ja ostettuja ohjelmia, mutta en ole niitä yhtään kaivannut. Kaikki kaipaamani tuntuu olevan jo valmiina ja toimii aika lailla niin kuin luontevalta tuntuu. Oikeastaan harmittelen vain sitä, että jos olisin odotellut muutaman kuukauden, olisin voinut muutaman kympin lisärahalla saada mallin C702, jossa on muuten samat toiminnat ja vielä GPS lisänä.

perjantaina, kesäkuuta 06, 2008

Erotilanne?


Tämän päivän Helsingin Sanomissa ollut pikku-uutinen. Mikä ihme on "erotilanne koiran ja omistajan välillä"? Päättivät muuttaa erilleen? Kumpi pani eron vireille?

sunnuntai, toukokuuta 25, 2008

Perusmerkin koulukoe

Kävin tänään yrittämässä perusmerkin koulukoetta. Tulos yllä. Ei mennyt läpi. Muuten meni kohtuullisen hyvin. En ollut edes huonoin :)

----
Lähetetty Sony Ericsson -matkapuhelimella

perjantaina, toukokuuta 23, 2008

Voi johtaja parkaa!

Eikö kukaan voi auttaa veripäistä johtajaa?

----
Lähetetty Sony Ericsson -matkapuhelimella

lauantaina, toukokuuta 10, 2008

Pelataan kitarapeliä saunalla

----
Lähetetty Sony Ericsson -matkapuhelimella

Friteerattu kuha

----
Lähetetty Sony Ericsson -matkapuhelimella

Linux Security 7 postmortem lounas

Empire Plaza ravintola, Kamppi

----
Lähetetty Sony Ericsson -matkapuhelimella

Nojapyörien testiajo työpaikalla

Janne järjesti pihalle paljon erilaisia nojapyöriä. Tahtoo kuvassa näkyvän. Valitettavasti hinta on 2900 euroa.

----
Lähetetty Sony Ericsson -matkapuhelimella

tiistaina, toukokuuta 06, 2008

lauantaina, toukokuuta 03, 2008

Hesarilla lukihäiriöinen töissä lauantaisin?

Tai sitten saksalaisautoilla voi nykyään tehdä latuja...

----
Lähetetty Sony Ericsson -matkapuhelimella

tiistaina, huhtikuuta 29, 2008

sunnuntai, huhtikuuta 27, 2008

Pyörätien tukko

Pakettiauto ja kuorma-auto tukkivat pyörätien perjantaina Meilahdessa.

----
Lähetetty Sony Ericsson -matkapuhelimella

perjantaina, huhtikuuta 18, 2008

sunnuntai, huhtikuuta 13, 2008

Gekko hengailee


... just oven päällä. Miten ne nyt juotetaan?

What does your shell history say about you?

Vasco had come up with an interesting meme: shell history statistics.

Here's mine from my home Macintosh:

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head

101 ls
49 man
43 cd
35 sudo
26 find
21 less
20 port
16 which
16 ssh
11 vi


What does that say about me? I think it says I do not use my home Mac for much command line work. I'm a bit surprised that which and vi are on the list. I try to use a GUI editor on the Mac whenever possible. I use Aquamacs, TextWrangler and a bit of Eclipse. 

And why do I need less so often?

I'm sure the results would be quite different on my Linux machine at work.

perjantaina, huhtikuuta 11, 2008

Tapiola pankki: Emme voi ottaa vastaan käteistä rahaa


Kyseessä lienee konttori, jossa on vain neuvontaa tms. mutta hiukan hätkähdin kun pankin ovessa sanotaan ettei käteinen käy.

lauantaina, huhtikuuta 05, 2008

torstaina, maaliskuuta 20, 2008

tiistaina, maaliskuuta 18, 2008

Sprintin suunnittelua


Suunnitellessa katsotaan asioita asiakkaan silmin (Tiimarin aurinkolasit simuloivat asiakasta.)

lauantaina, maaliskuuta 08, 2008

Uusi puhelin, Sony Ericsson K810

Työpaikalla on taas se aika kun saadaan uusia puhelimia. Edellisellä kerralla en jaksanut paljon perehtyä asiaan ja otin vain sen peruspuhelimen, jota IT suositteli, Nokia 6630. Se oli virhe ja jäin kaipaamaan edellistä puhelintani, joka oli Sony Ericsson K500.

Vahingosta viisastuneena tutustuin nyt huolella puhelinmalleihin ja olin pitkään Nokia E51:n, Nokia 6110 navigatorin ja Sony Ericsson K810 välillä.

Valitsin sitten kuitenkin K810:n koska K500 oli jättänyt niin hyvän muiston. Tärkeää oli myös se, että K810:ssä oli noista kolmesta ehdottomasti paras kamera. Halusin puhelimen, jossa olisi ainakin 3 megapixelin kamera salamalla ja tarkennuksella, jotta se korvaisi rikkoutuneen Canon PowerShot SD100:n.

Seuraavaksi pieniä huomioita K810:stä muutaman päivän pikakäyttötestin perusteella.

Kiitämme:
  • Ohut ja kevyt.
  • Erinomainen kamera (puhelimen kameraksi).
  • Kuvan saa heti näppäyksen jälkeen lähetettyä blogiin.
  • Nopea ja kaunis käyttöliittymä.
  • Automaattinen näppäinlukko.
  • Web-selain on nopea ja sivun sisältö jouheasti vieritettävissä ja luettavissa vaikka kuvat vielä latautuisivat.
  • Web-selain toimii aina. (Nokia 6630 väitti joka toisella yrityksellä että pakettidata ei ole käytettävissä.)
  • Akun kesto.
  • Puhelut tulevat perille (ainakin toistaiseksi. Nokia 6630 ei aina ollut yhteydessä verkkoon, vaikka väittikin olevansa.)
Moitimme:
  • Epästandardi kuulokeliitin.
  • Nappikuulokkeet liian isot, jopa ilman vaahtokumeja.
  • Musiikkisoitin ei muista kuinka pitkälle musiikkitiedostoa on kuunneltu tai onko sitä vielä kuunneltu ollenkaan.
  • Synkronointi iTunesin kanssa ei toimi. Kappaleet pitää raahata yksitellen iTunesista puhelimen muistikortille.
  • Web-selain skaalaa kuvat niin että ne mahtuvat näytölle. Kuvat eivät suurene, vaikka sivua zoomaa.
  • T9-kirjoituksen kielen vaihto vaatii turhan monta napin painallusta (vaikkakin vähemmän kuin Nokia 6630:ssa.)
  • Jos osoitekirjassa on nimi "Sukunimi Etunimi", sitä ei löydä kirjoittamalla muutama kirjain etunimestä.
En ole vielä asentanut työpaikan Windows-koneeseen puhelimen mukana tulleita ohjelmia, joten kalenterin ja osoitekirjan synkronointi ovat vielä kokeilematta.

Veera siivoaa kaappeja


Tänään melkein myöhästyttiin ratsastuksesta kun neiti ei löytänyt ratsastushanskoja

Isi harjaa, Foxy syö



tiistaina, helmikuuta 05, 2008

Unohtuiko jotain?


Unohtuiko jotain?
Originally uploaded by sti.
Tämän päivän Helsingin Sanomissa oli USA:n esivaaleista kertovan jutun lopussa unohtunut täyttää tai poistaa valmiissa sivupohjassa ollut laatikko. Usein ison jutun lopussa on laatikko, jossa viitataan muualla lehdessä olevaan juttuun tai kehoitetaan keskustelemaan uutisesta Hesarin nettisivuilla.

lauantaina, tammikuuta 05, 2008

EU aikoo tukea DRM-järjestemiä

EU-komissaari Viviane Reding on ilmoittanut, että EU aikoo tukea digitaalisten käytönrajoitusjärjestelmien (DRM) kehittämistä yhteensopivammiksi ja käyttäjäystävällisemmiksi (klikkaa otsikkoa.)

Jos sinustakin tuntuu siltä, että et halua uusia järjestelmiä rajoittamaan mitä haluat tietokoneellasi ja muilla vehkeilläsi tehdä laillisesti ostamallesi musiikille ja elokuville, allekirjoita sinäkin avoin kirje, jossa komissaaria vaaditaan perumaan sanansa.

sunnuntai, joulukuuta 09, 2007

Time Machine internals

When I browsed the contents of my Time Machine backup, I saw lots of files which had a large link count. This led me to believe OS X 10.5 backs up files by making a single copy on the backup disk and the hourly backups only have a hard link to the file if it has not been modified.

Now I'm not sure anymore.

Take the stat of these two files, which probably do not change:

$ stat -f "dev=%d devnum=%r ino=%i links=%l" "/Volumes/Isolevy/Backups.backupdb/Sarah/2007-12-09-124244/Sarah/Applications/Address Book.app/Contents/Resources/Dutch.lproj/AddressBookHelp/gfx/border_top.gif" "/Volumes/Isolevy/Backups.backupdb/Sarah/2007-12-09-134304/Sarah/Applications/Address Book.app/Contents/Resources/Dutch.lproj/AddressBookHelp/gfx/border_top.gif"
dev=234881030 devnum=0 ino=236409 links=1
dev=234881030 devnum=0 ino=236409 links=1

The inode of the two files is the same but their link count is only 1. According to my understanding of the unix file system semantics, this should not be possible! Perhaps there is some HFS+ magic involved that is visible thru the "unix" disguise OS X is wearing. I think I read somewhere that hard links were a bit difficult to implement in HFS+ and they at least used to be very slow.

Anyone have any info?

Better-looking Squeak


Better-looking Squeak
Originally uploaded by sti.
A blogger who likes Smalltalk has customized his Squeak installation a bit. Squeak seems like a wonderful tool, it just badly needs someone with an eye for graphic design to have a go at it

maanantaina, marraskuuta 12, 2007

Turha popup


Turha popup
Originally uploaded by sti.
"Työpöydälläsi on käyttämättömiä pikakuvakkeita"

tiistaina, lokakuuta 30, 2007

Leopard firewall problems

The link in the title takes you to a story where the Leopard firewall was tested and the results were not pretty. (Thank you Timo for sharing this link.)

I also forgot to mention that I was a bit surprised to find the firewall was set to accept all incoming connections, although I'm sure my Panther was set to allow only some limited set of ports.

I'm very happy I'm behind a wireless NAT router using WPA.

If I set up my own firewall rules with ipfw, I wonder if Leopard's firewall will get upset with it. In Panther the firewall System Prefs was all grayed out when I had custom ipfw rules. Only after removing my own rules could I use Panther's System Prefs to e.g. allow access to Apple file sharing.

sunnuntai, lokakuuta 28, 2007

Leopard second impressions

Safari version 3 is much better than version 1 in old Panther. Even some Google services work with it. I made it my default browser instead of Firefox.

Mail told me it needs to import my existing emails. Importing about 3000 messages took couple of minutes and then Mail worked with no problems.

I set up iChat with my Google Talk account. (Panther's iChat only supported AIM accounts.) No problems there either.

I turned Coverflow on in Finder and started to browse thru my Applications folder to throw away old apps I did not need. E.g. I removed Internet Explorer.

I did not notice any new games in there. 

Spaces was disabled by default. I enabled it. I had not realized how great it is to get more screen real estate, even when it is only virtual.

I enabled Time Machine. You need to tell it on which disk to put the backups. My external disc had 10 GB free. Time Machine immediately started to make a backup and told me it could not fit the 60+ GB on that volume. I removed a bunch of old TV recordings and now Time Machine has a small status window floating on my screen where I can follow the progress of the backup.

Even though "man crontab" says the cron functionality has been taken over by launchd, cron is still running and executing tasks from /etc/crontab. (I wonder if it should be?)

I removed my old Carbon Copy Cloner backup task from /etc/crontab.

Apparently Leopard also executes all old startup items from /Library/Startup. I had an old-style startup script that runs throttled. Killed that and removed the startup item. (OS X newer than Panther should have QoS built into the kernel.)

The firewall settings have moved. They are no longer under Sharing in System Prefs. Now they are under Security. It would appear that no matter which firewall setting I choose, "ipfw list" always prints just one line: "allow ip from any to any". I hope this does not mean the firewall is always disabled.

That's all for now... I should get some sleep.

Leopard first impressions

I got myself Mac OS X Leopard from MacPeople store on Friday. This is what happened since:

I read the installation instructions that came with the DVD box. They said to insert the DVD into the Mac and run the installer. I did so but the Leopard disc never appeared on my Mac desktop. Also the Mac became very, very slow.

I spent the better part of an hour trying to launch System Monitor and Terminal and Console to try to find out why the Mac was crawling along and why the Leopard disc was not mounted. I also launched Disk Utility, which never appeared either.

After watching a spinning beach-ball for almost an hour, I powered off the Mac and restarted. It spit out the Leopard disc and it was working perfectly, no slowness anywhere. The only hint to the problems was in system.log where something complained about timeout in connecting systemuiserverd. (I cannot find that anywhere now, apparently the Leopard install somehow lost yesterday's syslog.)

I plugged in a USB keyboard and mouse and booted from Panther installation disc, ran Disk Utility and did Repair Disk and Repair Permissions. There were some incorrect permissions in some files relating to iso9660 filesystem.

Reboot. Insert Leopard disc. This time it mounted. Run Leopard installer. It rebooted from the disc. The Microsoft USB mouse did not work in the installer, but the installer was fully operational with the keyboard. I chose default installation, which upgrades an existing OS X to Leopard. It told me it will take more than 3 hours to finish installation. I went to bed.

In the morning I was greeted by the OS X login window and hidden behind it was a window that asked what kind of keyboard I was using. Unfortunately I was unable to bring that window to the front because the Microsoft mouse was still not working. But the Mac was now up and running, so I turned on my bluetooth mouse. It worked, I managed to get the Mac recognize my keyboard and logged in.

The first thing that popped up was a window that asked me which wireless network I wanted to connect to but there were no wireless networks available. In reality my Linksys AP was on and working. I had no time to debug it any further at that time, so I shut down the Mac.

The next time I booted the Mac, the Microsoft mouse worked! And when I logged in, I was presented with a list of all wireless networks. I connected to my WPA-protected wlan with no problems.

I haven't booted the Mac since and I haven't had any other problems so far.

tiistaina, lokakuuta 23, 2007

Mac minin muistipäivitys


After memory upgrade
Originally uploaded by sti.
Mac OS X Leopard julkaistaan perjantaina. Sen sanotaan toimivan 512 megatavulla muistia, mutta Xcode-kehitystyökalu vaatii 1 gigatavun. Koska haluan päästä mukaan parantamaan erinäisiä vapaita Mac-ohjelmia, pitää Xcoden toimia ja siksi kävin ostamassa 1 gigan muistikamman.

Printtasin netistä ohjeet Mac minin avaamiseen ja muistin vaihtamiseen suurempaan ja luin niitä sydän sykkyrällään. Vaikutti vaikealta operaatiolta, jossa oli monta mahdollisuutta rikkoa mini.

Loppujen lopuksi kyseessä oli kuitenkin varsinainen antikliimaksi. Koppa aukeni melko nätisti parilla kapeateräisellä ruuvimeisselillä ja muistikamman vaihtamiseksi piti irrottaa vain yksi ruuvi, jotta sai siirrettyä wlan-antennin tieltä pois.

Paketti kasaan käänteisessä järjestyksessä, piuhat kiinni ja se on siinä.

sunnuntai, lokakuuta 21, 2007

DVD, a standard or not? And why would it be?

I have learned that Mac mini (G4 1.42 GHz, OS X 10.3.9) cannot play DVD discs recorded with Sony RDR-HXD870B, a digital set-top-box with a built-in DVD-recorder.

This seems to be the case no matter if the DVD is recorded as DVD-VR or DVD-video. The disc was finalized.

The discs can be played on the Sony itself and on a Philips DVDR-3400 player.

I will try to get more data points before pointing an accusing finger to somebody. Right now I'm just pissed that it won't work. DVD is such an old standard that it should have matured by now. But I guess I should not be surprised. After all, I did own an old PlayStation 2 that would not recognize some of our Disney DVDs as playable discs.

But surely it was just a glitch that Sony PlayStation 2 would not play some Disney content. After all, what would Sony, itself a major movie studio, benefit from such a situation?

I can't help but recall the olden days when all the VCRs played all the videos, provided you were trying to insert a VHS tape into a VHS device and not into a Betamax device. This mistake would have been difficult to do, given the different physical characteristics of VHS and Betamax systems. You would immediately know you were trying to shove a Betamax tape into a VHS device, even in dark and your eyes closed.

After you managed to insert the cassette into the device, it would play back the video. If the recording device and playing device were not very well compatible, you would get a slightly fuzzy or noisy picture, but if the story of the video was any good, you could overlook little things like the picture quality.

Your chance of getting satisfaction were pretty high.

Fast-forward to present day of digital entertainment systems and high-definition TV screens. There are several incompatible systems on the market from several consortiums of companies who have realized it is not in their best interests to have a level playing field where every device just plays any medium.

If you were an alien who was just dropped on this planet, you might think there was a level playing field with a standard medium. The medium was a shiny, plastic disc, about 12 cm in diameter. The alien would probably be surprised to find, even though the discs all look alike (although they might have different coloring or images imprinted on them), the data on the disc can be encoded in a number of different ways, all ever so slightly different and incompatible.

The alien would need to study the economy and culture of this planet to realize the entities called companies, who the capitalistic system relies on to bring new wonderful things for people (who are called consumers), are really afraid of the the very system they are part of. In the capitalistic system, companies compete on the marketplace and the one to make the superior product will win the hearts (and pocketbooks) of the consumers.

But in this system nothing is permanent. Any time another company could arise and make an even better product and steal the customers from the previous winner. This means the winner cannot rest on its laurels, as they say, but must keep on innovating. This is hard work. It is much easier for the company if it can create a product that locks people into the system, makes it hard for them to switch the product of one company to a product of another.

The first step of creating such lock-in is to make products that are incompatible. Once the consumer has invested into one product, it would cost him a lot of money to switch to a better system because he would have to buy everything new instead of using his older products.

Hmm... this is developing into a nice conspiracy theory. Perhaps I should just take a deep breath and get a grip of myself. Obviously I'm just getting overexcited over such a little thing as Apple failing to make proper DVD player software. I'll try the disc in some other Macs first...

Ankkuri Kotkan Katariinan puistossa


Ankkuri Kotkan Katariinan puistossa
Originally uploaded by sti.
Paikalla jossa tuhkat lasketaan mereen.

sunnuntai, lokakuuta 14, 2007

Warning: your OpenID login might be compromised

For a few months now I have used one web service that supports OpenID logins. I decided it was time for me to get me an OpenID and start using it.

The good thing about OpenID is it is a completely open system where multiple providers can compete. It is not a proprietary system that would be tied to the success or failure of one company and it is not encumbered by patents or other intellectual property issues.

I looked at some of the OpenID providers and could not really see much difference there. I knew OpenID makes it possible to use any URL as your identity, so I wanted to use my blog URL. When I was looking, the only provider that openly told how to do that was claimID.com. So I chose to register with them.

I have also started using Tor, The Onion Router to hide my location on the web (and also turned off cookies by default, installed NoScript and Adblock Firefox extensions.)

Yesterday I was told Tor was used to steal passwords.

I immediately thought this can only happen if people mistook Tor for something else than it is: Tor does not encrypt or scramble your traffic and magically make it secure, it only hides where and who you are. Tor cannot hide who you are if you reveal that in the content of the messages in the form of user names and passwords.

So, if you are dumb enough to send passwords in the clear, you deserve to get your password stolen. And of course I'm not that stupid. All the important web sites I use login over SSL-protected pages... except claimID.com.

When I use my OpenID URL to log into OpenID-enabled web services, I'm redirected to claimID.com's login page where I log in. I had been lazy and not verified that login page is secured with SSL. It is not. Sometimes the login page is not SSL protected, but the login form is posted back to the server over SSL. But this is not the case with claimID.com either.

This means it is possible someone running a Tor exit node has seen my claimID.com login name and password in the clear.

I started to fix this issue. First, I wanted to know if there is a way to login to clamID.com securely and I just haven't used it for some reason. If there was no secure login available, I would find another OpenID provider.

After some digging around, I found claimID.com has recently made it possible to login securely on an SSL protected page. (Link to announcement in the title of this post.)

I have now updated my login settings to use the SSL protected login page and changed my password at claimID.com. Also I sent an email to claimID.com's support and asked them to: 1) Add a secure login link to the old cleartext login page and 2) email their users telling them to start using the secure login and change their passwords.

I think it would be decent of them to do these things but if I were claimID.com, I would probably be too embarrassed to tell my users I have made them send cleartext passwords.

perjantaina, lokakuuta 12, 2007

Parkkeerattu puoliksi nurmikolle


Parkkeerattu puoliksi nurmikolle
Originally uploaded by sti.

EU ja Galileo

Tämän päivän Helsingin Sanomien pääkirjoituksessa tuskaillaan EU-maiden eripuraisuutta ja lyhytnäköisyyttä Galileo-projektin rahoituksen järjesteämiseksi. Galileohan on EU:n epätoivoinen yritys rakentaa amerikkalaisten GPS:ää vastaava järjestelmä. Yksi järjestelmän satelliiteista on jo laukaistu vuonna 2005.

Kun Nokia osti juuri yhden yrityksen 5.7 miljardilla, koko EU ei saa kasaan paria miljardia.

Päätoimittaja lohkaisee aika hyvin:
Jos Galileo Galilei olisi tarvinnut kaukoputken kehittämiseen eurooppalaisten päättäjien yhteistä apua, työ olisi taatusti vieläkin kesken intressiristiriitojen vuoksi.
Kokonaan toinen asiahan sitten on, onko koko hankkeessa ylipäätään mitään järkeä. Miksi kukaan valmistaisi Galileoa käyttäviä paikannuslaitteita kun GPS toimii ihan hyvin? GPS-paikantimia saa nykyään pikkurahalla ja sellainen alkaa löytymään jo puhelimistakin. 3 vuoden kuluttua se on varmasti jo kännyköiden vakiovaruste, aivan kuten datayhteys ja weppiselain ja kamera ovat nykyään.

Tietysti kilpailun lisääntyminen on hyvä asia, koska se yleensä ajaa hintoja alas, mutta käykö niin tässä tapauksessa? Eikö GPS-järjestelmän käyttäminen ole ilmaista? Jos ilmaisen järjestelmän rinnalle tehdään toinen ilmainen, miksi siirtyä järjestelmästä toiseen?

Galileon pitäisi ilmeisesti houkutella käyttäjiä paremmalla laadulla, paikan pystyy määrittämään metrin tarkkuudella. Mikä mahtaa olla GPS:n tarkkuus? Ilmeisesti se on kuitenkin jokapäiväisiin sovelluksiin riittävä.

Näin ruohonjuuritasolta asiaa katsoen Galileo-järjestelmässä ei ole mitään järkeä. Ehkä juuri siitä syystä EU:lla oli niin suuria vaikeuksia löytää yrityskumppaneita kantamaa suurin osa järjestelmän rahoituksesta.

maanantaina, lokakuuta 08, 2007

We want to hear from you. Yeah, right...

Remember the good old times when the only way to get your voice heard by other people was to write a letter to the editor of the local newspaper? Of course, the editor might not publish it, but perhaps he read it.

Then the Internet came. Everyone and everything was on it. Everyone had an email address. Newspapers had them. Some newspapers had separate addresses for every section of the paper printed at the top of every page.

Then there were newsgroups, bulletin boards and finally, social networks.

Communication is the big thing. Call us, email us, send us the phonecam pic you snapped of the upside-down car on your way to work. Tell us what you think! Help us make this site better!

Usually you have nothing to say. Sometimes you have something to say but you're busy or just can't be bothered.

And then there are the times when you really feel you have something you want to share.

You click that link.

"You need to register before you can post comments." Grrr... do I look like I need another login/password to keep track of? Well, ok, just this once.

You fill in the form, click the next-button... and they slap you with a captcha.

Ok, these guys are paranoid. You type in what the barely readable picture says.

And it tells you you got it wrong. Ok, perhaps my fingers slipped. Let's try again.

Wrong again! There's no way my motor functions are this bad. I need to complain to them and tell them they are making it too difficult to contribute and their captcha is not working. Now how do I contact them? Searching the page .... finds link called Contact Us. This looks good. Clicking... New page loading.... with ANOTHER CAPTCHA!

That does it. It is past midnight and I finally get the message: whatever it was I wanted to say was not that important and by now I have already forgotten what it was.

Good night.

maanantaina, lokakuuta 01, 2007

torstaina, syyskuuta 27, 2007

tiistaina, syyskuuta 18, 2007

Pyörätie on autotie

Kun tänään pyöräilin kotia kohti, tunsin kulkevani mahtavaa vauhtia. Vieressäni Vihdintiellä autot seisoivat paikallaan iltapäiväruuhkassa ja minä puskin eteenpäin 25 km/h.

Juuri ennen Vihdintien ja Kaupintien risteystä, ohitseni pyörätiellä ajoi vaaleanruskea Ford Mondeo! Ohitettuaan minut Fordin piti kurvata tiukasti pyörätien oikeaan laitaan, koska mutkan takaa tuli vastaan keskellä tietä pyöräilevä vanhempi naishenkilö.

Kyllähän vanhempien naishenkilöidenkin pitäisi ymmärtää, että pyörätiellä ajetaan tien oikeassa reunassa, jotta nopeampien ja leveämpien kulkuneuvojen on helpompi mahtua tielle.

Koko tilanne oli niin yllättävä, että en tajunnut painaa rekisterinumeroa muistiin. Harmi. Olisin soittanut poliisille ja pyytänyt, että käyvät kysymässä auton omistajalta, miksi auto oli harmaana sadepäivänä 18.9.2007 eksynyt pyörätielle kruisailemaan.

Mondeokuski oli varmaan kyllästynyt seisomaan paikallaan jonossa ja päätti ohittaa jonon pyörätietä myöten.

Onkohan pyöräteiden hyödyntäminen autojen oikotienä yleistäkin? Ainakin itse olen nähnyt samaa tapahtuvan täällä Martinlaaksossa. Martinlaakso on suuri asuinalue, jonka halki ei kulje autoteitä, ainoastaan pyöräteitä. Olen useamman kerran nähnyt autojen oikaisevan alueen halki pyöräteitä myöten.

Seuraavan kerran yritän olla valppaampi ja tehdä vähintään kengän muotoisen lommon autoon muistoksi kuskille.

sunnuntai, elokuuta 05, 2007

Asiakkaan kusetusta

Soitin 2 viikkoa sitten Welhon (entinen HTV) asiakaspalveluun vikailmoituksen toimimattomasta internet-yhteydestäni. Ystävällisen asiakaspalveluhenkilön opastuksella irrotin ja kytkin piuhoja ja käynnistin kaapelimodeemin uudelleen ja kuten aina ennenkin, se korjasi ongelman. Itse vaan kovasti haluaisin, ettei kaapelimodeemia tarvitsisi vähän väliä räplätä.

Kun olimme jo lopettelemassa tätä hyödytöntä puhelua, asiakaspalveluhenkilö kysyi kiinnostaisiko minua saada 2 viikoksi MTV3 ja Viasat Kulta kanavapaketit koekäyttöön ilmaiseksi. Siis 2 viikkoa on ilmainen ja jatkuu sitten automaattisesti maksullisena ja sen voi peruuttaa 2 viikon kuluessa, siis viimeistään 3.8. mennessä.

Suostuin, koska tulevana viikonloppuna oli Formulakilpailut tiedossa ja olisin mielelläni katsonut sen Maikkarin maksukanavalta. Hieno juttu.

No, kun jonkun ajan kuluttua kokeilin digiboxilla katsella näitä maksukanavia, huomasin että MTV3 MAX -kanava ei näkynyt. Muut MTV3:n maksulliset kanavat kyllä näkyivät. Eli Formulat jäävät näkemättä. Laitoin kuitenkin kalenteriin merkinnän, jotta muistan peruuttaa nämä kanavapaketit ennen kuin niistä pitää ruveta maksamaan.

Sitten oli paljon kaikkea muuta puuhaa ja kun huomasin, että kanavat pitää peruuttaa, en ollut vielä ehtinyt katsomaan niitä ollenkaan.

Soitin Welholle 2.8. klo 19:25 ja ystävällinen asiakaspalveluhenkilö otti peruutuksen vastaan. Luulin, että tämä oli tässä.

Sitten posti toi laskun. Laskussa oli normaalin internetin lisäksi 2 kanavapakettia 12 kk kestotilauksena. Laskun summa oli 66,57. Welhon ystävällinen asiakaspalvelu saa maanantaina taas uuden puhelun, jossa saavat selittää miksi minun pitää maksaa kahdesta kanavapaketista, jotka a) eivät näy digiboxillani ja b) jotka olen peruuttanut. En aio maksaa kuin normaalit 36 euroa internetistä.