Thursday, December 27, 2007
Polish?
- My friend doesn't believe that you're English.
- Well, I'm not.
Friend:
- Where are you from?
- Russia.
- Oh, nice, I don't know that many Polish people!
- WTF?
Wednesday, December 26, 2007
Boxing Day
Tuesday, December 25, 2007
Merry Christmas
But living in a country where Christmas is one of the most important holidays makes me follow the local traditions and celebrate with everybody the way they do it. So we went to Ylläs last Saturday and came back today. I'm back with a bottle of Glen Parker Single Malt Scotch Whisky, a bottle of Absolut Disco Limited Edition Vodka, Leatherman Multi-Tool and 800 grams of Fazer chocolate sweets. Nice. I'll have something to do before the school starts in the middle of January. :)
On Sunday I went to slopes to snowboard and it was no good. Lack of snow felt even in Ylläs. Slopes were icy and hard. I hope this spring it will be better.
Wednesday, December 19, 2007
Sunday, December 16, 2007
Deluge
Thursday, December 13, 2007
Courses
FreeBSD
Tuesday, December 11, 2007
Teamwork Sucks. Sometimes.
But not this time. And I'm quite happy about it. I'd prefer to be graded for my skills and my own contribution as there are freeriders and they will always be. I know it will be different in real working life when work is carried out in teams but the level of teammates' skills will be surely way higher than here in school. Sometimes it seems that most of the students aren't that interested but I doubt that non-interested person will pursue a career in the field he's not interested or not good in. I'm really wondering sometimes why did they even start studying here. But it's their business. Not mine. But why should I suffer?
Sunday, December 09, 2007
Loafing Again
Saturday, December 08, 2007
Liver, I'm Sorry
Tuesday, December 04, 2007
Monday, December 03, 2007
Saturday, December 01, 2007
Ounasvaara
Password Generator
Instead of finding ready solution I made one myself. Just for fun because I was bored. Yes, I have life and I did have it today. Just took a little break for awhile. It's pretty simple but platform-independent. Written in Java. Grab the jar if you need. If double clicking it doesn't work try
java -jar PassGen.jar
in console.
Friday, November 30, 2007
Wishlist
When I'm gonna have some spare hundred thousands euros or somebody would like to donate some hundred thousands euros to me I'm definitely gonna buy all these or the up-to-date versions if these become old. I hope it won't take me too long to become a billionaire. :)
i-Mate Ultimate 7150
Quite an advanced communicator with 520MHz processor inside, VGA screen, QWERTY keyboard, two cameras, FM radio, TV out and WiMAX and HSDPA support. For all these features I can even stand Windows Mobile 6 it is running.
MacBook Pro
Thin and stylish with 2.6Ghz dual-core processor and 2GB of memory on board running Unix-based operating system which heavily borrows from BSD with all the standard Unix facilities available from the command line interface. Isn't it every geeks's dream?
Canon EOS 40D
Photography is something I've always wanted to pursue but I've never had a proper camera for that. I used to have Canon PowerShot S30 which wasn't that bad and had manual and several semi-automatic modes and even could take RAW pictures but this one is a way better anyway.
Sony PlayStation 3
I'm not that much into gaming and I've never been but I wouldn't mind having such to kill time sometimes or play some media. I can also install Linux which is officially supported.
BMW M6 Convertible
The quickest BMW ever produced with more than 500 horse powers under the hood with programmable engine power, gear transmission speed as well as Dynamic Stability Control and Electronic Damping Control. Who wouldn't want such?
Permanently here. Will be updated when I figure out something else.Wednesday, November 28, 2007
Yoghurt And Spoons
Tuesday, November 27, 2007
Farewell, Auto-Helander
Monday, November 19, 2007
Being Minority Again
Russians do the same. Germans do the same. Everybody does. But I know how bad it feels. I remember those days I spent on Malta. 99% Germans, 1% Polish and me. That's why nowadays when I notice Ruxi being left out I just start "dubbing" Russian speech, translating what people are saying right after them, or just start having a conversation in English with her.
Today we picked Andrei from Haparanda who came to visit Ruxi. It was him, Ruxi, Ovidiu and me. We bought some beers and huge family kebab pizza from Sweden and went to Ruxi's place. I was bored the whole evening and there was nobody willing to translate Romanian to me. I hope it won't be this way the whole week he's here.
P.S. I'm neither pissed at you guys nor upset. Don't worry.
Another Boring Sunday
Saturday, November 17, 2007
Smarty Template Engine
Basically web-development can be divided into two parts: actual programming (database access, data processing etc.) and web-design (interface, data presentation, page make up etc.). Program code generates the content and template engine is responsible for its presentation. This way separation of concerns can be easily achieved.
Features available are quite impressive:
- Caching
- Compiling
- Variable modifiers
- Template functions
- Control structures
- Loops
- Filters
- Resources
- Plug-ins
- Add-ons
- Debugging
{foreach from=$posts key=id item=post}
<h1>
{$post.title}<br />
{if $lang == 'en'}
{atom_convert_date date=$post.published}
{else}
{rss_convert_date date=$post.pubdate}
{/if}
</h1>
<div class="post">
{if $lang == "en"}
{$post.atom_content}
{else}
{$post.description}
{/if}
<div class="comments">
{if $lang == "en"}
<a href="{$post.link}" target="_blank">
{blogger_comments_number comments=$post.replies_title}
</a>
{else}
<a href="{$post.link}" target="_blank">
Комментарии
</a>
{/if}
</div>
</div>
{/foreach}
Variable
$posts
is assigned with parsed feed object which can be either parsed RSS feed of my Russian blog or parsed Atom feed of my English blog. I defined three custom template functions: atom_convert_date
, rss_convert_date
and blogger_comments_number
to parse the dates and number of comments supplied in the feeds. The code is included to the page skeleton using {include file=$include}
statement where $include
variable indicates whether parsed feed or just text should be included. The whole page is generated the following way:$template = new DmitryFi();
$template->assign('lang', $lang);
$template->assign('title', $title);
$template->assign('feed', $feed);
$template->assign('balloon', 'Have a job to offer?<br/>Check my <a href="/cv.xhtml">CV</a>!');
$template->assign('label', $label);
if($posts = @fetch_rss($feed['url']))
{
$template->assign('include', 'feed.tpl');
$template->assign('posts', $posts->items);
}
else
{
$template->assign('include', 'text.tpl');
$template->assign('text', 'Unable to parse the feed. Please try again later.');
}
$template->display(TEMPLATE.'.tpl');
The result is compiled and stored increasing the performance significantly next time the page is requested.
Thursday, November 15, 2007
Alko Strike
- Go to Sweeden to Systembolaget
- Be contenet with beer and cider
- Quit drinking and partying
Wednesday, November 14, 2007
New Layout
Thursday, November 08, 2007
Wednesday, November 07, 2007
Jokela Massacre
Sturmgeist89
Name: Pekka-Eric Auvinen
Age: 18
Male from Finland.
I am a cynical existentialist, antihuman humanist, antisocial socialdarwinist, realistic idealist and godlike atheist.
SI VIS PACEM, PARA BELLUM! JUSTITIA SUUM CUIQUE DISTRIBUIT! SIC SEMPER TYRANNIS!
I am prepared to fight and die for my cause. I, as a natural selector, will eliminate all who I see unfit, disgraces of human race and failures of natural selection.
You might ask yourselves, why did I do this and what do I want. Well, most of you are too arrogant and closed-minded to understand... You will proprably say me that I am"insane", "crazy", "psychopath", "criminal" or crap like that. No, the truth is that I am just an animl, a human, an individual, a dissident.
I have had enough. I don't want to be part of this fucked up society. Like some other wise people have said in the past, human race is not worth fighting for or saving... only worth killing. But... When my enemies will run and hide in fear when mentioning my name... When the gangsters of the corrupted governments have been shot in the streets... When the rule of idioracy and the democratic system has been replaced with justice... When intelligent people are finally free and rule the society instead of the idiocratic rule of majority... In that great day of deliverance, you will know what I want.
Long live the revolution... revolution against the system, which enslaves not only the majority of weak-minded masses but also the small minority of strong-minded and intelligent individuals! If we want to live in a different world, we must act. We must rise against the enslaving, corrupted and totalitarian regimes and overthrow the tyrants, gangsters and the rule of idiocracy. I can't alone change much but hopefully my actions will inspire all the intelligent people of the world and start some sort of revolution against the current systems. The system discriminating naturality and justice, is my enemy. The people living in the world of delusion and supporting this system are my enemies.
I am ready to die for a cause I know is right, just and true... even if I would lose or the battle would be only remembered as evil... I will rather fight and die than live a long and unhappy life.
And remember that this is my war, my ideas and my plans. Don't blame anyone else for my actions than myself. Don't blame my parents or my friends. I told nobody about my plans and I always kept them inside my mind only. Don't blame the movies I see, the music I hear, the games I play or the books I read. No, they had nothing to do with this. This is my war: one man war against humanity, governments and weak-minded masses of the world! No mercy for the scum of the earth! HUMANITY IS OVERRATED! It's time to put NATURAL SELECTION & SURVIVAL OF THE FITTEST back on tracks!
Mum, WiFi, Insomnia
And I finally got that Lappia certificate from IT support and installed to my Windows Mobile based PDA. I had some difficulties installing it as Windows Mobile didn't want to open files with .crt extension. Changing it to .cer helped. I configured PEAP and now I have wireless network all around the school.
Once again I cannot sleep. I shouldn't have taken that nap after school. I slept for about two hours and now don't feel sleepy at all. I should stop taking naps. They make no good to my day regimen.
Tuesday, November 06, 2007
Mio DigiWalker C220
I've been driving around with this gadget for awhile and my verdict is that it sucks. The device itself is not that bad but without proper maps it's just a useless piece of crap. The maps seem to be quite out of date. It doesn't have a roundabout built couple of years ago and it takes me to roads which don't exist for something like 5 years already. There's no update available and it won't be in the nearest future as the producer claims that the maps are from the January of this year. Definitely not.
Pedestrian Crossing
Saturday, November 03, 2007
Huttunen
This is Huttunen and me next to him with weird hair and face expression. I used to rent him and now he's for sale. The more I look at this picture the more I want to buy him. This horse-buying fever is contagious! Damn it.
Saturday
Thursday, November 01, 2007
RFID Timer
Competitor passes the first reader, ID is read, first board tells the second one to start counting time. Competitor passes the second reader, ID is read, second boards tells the PC the time and ID which are stored in database. Pretty simple.
Wednesday, October 31, 2007
School Stuff
Tuesday, October 30, 2007
Comments Number
Monday, October 29, 2007
Can It Get Even Worse? Surely It Can!
Sunday, October 28, 2007
Saturday, October 27, 2007
Thursday, October 25, 2007
Tuna Junkie
Easy Geotagging
Alex has a camera with Wi-Fi which is quite useless. He never uses Wi-Fi. Why not to make a camera with GPS? I would surely use it. It could store coordinates in EXIF and services like Flickr could place the photos on a map automatically. Travelers would love it. I guess. At least I would love it for sure. Make the community love the product or create a community around it and it will be successful. You can easily keep track of places you've visited and remember what you've seen there.
I shared the idea with Ruxi. She needs something for Business Enterprise Project. I hope when she's gonna go to Hawaii she's gonna take me with her.
Tuesday, October 23, 2007
Somebody To Blame
Monday, October 22, 2007
I'm Being Avoided
Orbital
Go on, do it.
It was last May in Thailand where we went together. I was quite surprised to get such an answer cause she was totally disapproving my both ears being pierced though last summer when I was visiting my home town she wasn't complaining that much. I had the idea to pierce my nipples for awhile until I saw an orbital ear piercing and completely fallen in love with it from the first sight. Now I want this one.
Sunday, October 21, 2007
I Want
Friday, October 19, 2007
Ballmer Peak
http://xkcd.com/323/
Thursday, October 18, 2007
Wednesday, October 17, 2007
Less Dirty Using Dbus
#!/usr/bin/env python
import dbus
import time
import commands
try:
purpleObject = dbus.SessionBus().get_object("im.pidgin.purple.PurpleService", \
"/im/pidgin/purple/PurpleObject")
purple = dbus.Interface(purpleObject, \
"im.pidgin.purple.PurpleInterface")
except dbus.exceptions.DBusException:
print "Unable to connect to Pidgin! Make sure it is running."
exit(1)
class Track:
__message = ""
def setMessage(self, message):
currentStatus = purple.PurpleSavedstatusGetCurrent()
currentStatusType = purple.PurpleSavedstatusGetType(currentStatus)
currentStatusId = purple.PurplePrimitiveGetIdFromType(currentStatusType)
accounts = purple.PurpleAccountsGetAllActive()
saved = purple.PurpleSavedstatusNew("", currentStatusType)
purple.PurpleSavedstatusSetMessage(saved, message)
purple.PurpleSavedstatusActivate(saved)
def update(self):
if commands.getoutput('audtool playback-status') == 'playing':
artist = commands.getoutput('audtool current-song-tuple-data performer')
title = commands.getoutput('audtool current-song-tuple-data track_name')
message = artist + " - " + title
else:
message = ""
if self.__message != message:
self.__message = message
self.setMessage(message)
track = Track()
while True:
time.sleep(1)
track.update()
Hail Tuna & Pidgin
Btw, do you know a way to put track title from Audacious to Pidgin status message? I do! Quick and dirty but works for me.
#!/usr/bin/env python
import os
import time
import commands
def update():
status = commands.getoutput('audtool playback-status')
if status == 'playing':
artist = commands.getoutput('audtool current-song-tuple-data performer')
title = commands.getoutput('audtool current-song-tuple-data track_name')
os.system('purple-remote "setstatus?status=available&message=' \
+ artist + ' - ' + title + '"')
else:
os.system('purple-remote "setstatus?status=available&message="')
while True:
time.sleep(5)
update()
Tuesday, October 16, 2007
Tuna Again
Monday, October 15, 2007
Tuna
Thursday, October 11, 2007
I Did It!
Some Complaints
Tuesday, October 02, 2007
CarFix
So what did I get for 160€? Seats covered with dust and hair. Their vacuum cleaner never touched them. They take additional 70€ for washing the textile but for those 60€ for inside cleaning they could at least vacuum them! Not in CarFix. They didn't open the trunk either which is still covered with dust. Ten minutes worth customer's satisfaction. Not in CarFix. So for 60€ they washed the rugs, vacuumed under them and left some stains on the panels. Is it worth 60€? I don't think so.
The frame under the doors was quite dirty before and became even worse. It was covered with stains and they added quite a thick layer of polishing dust. It's hard not to notice such so they just didn't bother to clean it. All the gaps outside are filled with dust and polishing paste leftovers. They didn't bother to clean them either. Bumpers seems untouched and it's still dirty around the gas tank cover. Too low to bend to wash and polish probably. The windows weren't just left dirty. They were covered with stains after polishing and waxing. They didn't bother to clean even them. Is it worth 100€? I don't think so.
Monday, September 03, 2007
New Stuff
New shoes. Not planned but bought anyways. Luckily I like them because usually I start to feel sorry after a spontaneous purchase especially when I'm being pushed. But this was completely my decision.
New rush on my chest. What the hell is this? Maybe I'm panicking without a reason as it's quite small and not that bothering but anyways I'm seeing doctor in a couple of weeks. I guess it's a good idea to ask though I don't expect much of Finnish health care as I got disappointed several times already.
New acquaintances thanks to last Saturday. Seems like it's worth coming to party to Tornio some other day again.
New courses. New project.
Tuesday, August 28, 2007
Worth Spending Time On
Untitled
And I see dead squirrels. Every day on a highway on my way to Tornio to work. And not only squirrels, also rabbits and sometimes even birds.
I don't know how did this bird manage to get under somebody's wheels. Was it shot or something before falling on the asphalt and being smashed? Well, noone knows.
Monday, May 14, 2007
Tuesday, April 10, 2007
Tuesday, March 20, 2007
Riding
The photos are quite dark because it was dark inside and even flash didn't help. This is the best I can have:
Friday, March 16, 2007
Friday I'm In Love
Tuesday Wednesday heart attack
Thursday never looking back
It's Friday I'm in love