Category Archives: Finland

wtangy.se – site rename and automatic deployments!

This is a good one!

Previous entries in this series: http://www.guldmyr.com/blog/wasthereannhlgamelastnight-com-now-using-object-storage/ and  http://www.guldmyr.com/blog/wasthereannhlgamelastnight-appspot-com-fixed-working-again/

Renamed to wtangy.se

First things first! The website has been renamed to wtangy.se! Nobody in their right mind would type out wasthereannhlgamelastnight.com.. so now it’s an acronym of wasthereannhlgameyesterday. wtangy.se . Using Sweden .se top level domain because there was an offer making it really cheap :)

 

Automatic testing and deployment

Second important update is that now we do some automatic testing and deployment.

This is done with travis-ci.org where one can view builds, the configuration is done in this file.

In google cloud there’s different versions of the apps deployed. If we don’t promote a version it will not be accessible from wtangy.se (or wasthereannhlgamelastnight.appspot.com) but via some other URL.

Right now the testing happens like this on every commit:

  1. deploy the code to a testing version (which we don’t promote)
  2. then we run some scripts:
    1. pylint on the python scripts
    2. an end to end test which tries to visit the website.
  3. if the above succeeds we do deploy to master (which we do promote)

wasthereannhlgamelastnight.appspot.com – fixed – working again!

With NHL 2017-2018 season coming up and I had some extra spare time I thought why not finally fix this great website again :)

As NHL changed the layout of their schedule page about two seasons ago – there’s these days “infinite scrolling” or whatever it’s called when the page only loads what you see on the screen. This means it’s a bit difficult to scrape the page (but not impossible).

Lately I’ve been using REST API and JSON data for quite many things – after a short search I managed to find this hidden gem: https://statsapi.web.nhl.com/api/v1/schedule?startDate=2016-01-31&endDate=2016-02-05&expand=schedule.teams,schedule.linescore,schedule.broadcasts,schedule.ticket,schedule.game.content.media.epg&leaderCategories=&site=en_nhl&teamId=

Now that’s a link to an API provided by NHL where you get the schedule and you can filter it. I’m not sure what all the parameters do, they’re not all needed. You just need the startDate and endDate. The API also has standings and results. I have not managed to find any documentation for it. Best so far seems to be this blog post.  So I’m not sure about if it’s OK to use it or if there are any restrictions.

p.s. – there is a shorter URL to the main page: https://rix.fi/nhl – but the commands – like  https://wasthereannhlgamelastnight.appspot.com/MTL – does not work.

Was there an NHL game last night?

Finnish words from ankidroid

Lately I’ve been using ankidroid to study Finnish – or at least to expand my vocabulary a bit. I think it’s great but it won’t work by itself and requires quite a bit of tenacity.

The good Finnish deck:https://ankiweb.net/shared/info/1918695216 it’s called “Finnish järjestyksessä”.

It’s made by Rendall and it’s quite good, it took a list of the most common Finnish words (assembled by my company ;)

The deck won’t work by itself though, I get a lot of help by:

  • Get the word in a sentence helps tremendously for learning it. Just learning the words helps a lot, especially if you don’t care so much about using the exact right form. Learning how to use them is also important, and that’s where talking or reading things help.
  • Asking someone for assistance or clarifications about words is important. For example you might have words that are translated to the same word in English but you’d use them differently in Finnish.

Some notes about the contents:

  • Some translations are not awesome or the first word that shows up is the archaic meaning. So for those you’d want to click the edit card and change the meaning to something modern.
  • Some erisnimi words are just fairly useless unless you want to learn a city /person name, like NATO, Salo, Joensuu, Jorma or Jukka. They might have a different meaning besides the city name but they’re rarely/never used for that meaning.

 

Making changes to the template:

On each card there is this “info” and sometimes hints. I found myself wanting to change the URL to wiktionary on the cards because google chrome didn’t redirect wiktionary.org to en.wiktionary org but to www.m.wiktionary.org which doesn’t exist. It’s quite easy to change this, because that part is done with a template and is not added in each card. To change:

  • synch your decks
  • install anki on your compute
  • login with your account and synch it
  • browse the deck and on the right-hand side you’ll see your decks and the ones you have marked and so on, there’s also a few called “adjektiivi”, “prononimit” and so on. These are the templates.
  • Click on a template and then on the “Cards…” button.
  • This will show “Card 1” and “Card 2”. In the back template you can then change the URL to whatever you want!

Meta Post: Blog is now also mobile friendly!

Update! If you view this blog on an a mobile device with the right user agent (and apparently very few of you do that) there’s now very little white space wasted! It’s not perfect yet but I’m working on it making it nicer. It seems to have some

Now about the normal Hemingway Ex theme, I like it. But there’s a lot of unused white areas when on 1920×1080 (17% of visitors – also the one I use ;) 

So I tweaked the stylesheets to make some sections thinner and some wider. Don’t like it? Please let me know in the comment section below.

P.s. Developer Tools in web browser are full of awesome! Trying to find the right CSS section to edit would have been mental without it.
P.s2. Just to be clear, the Blog was not hostile towards mobile users before.

Post Frisco

  • Bicycle up to and over a fog covered Golden Gate bridge, pretty awesome downhills!
  • Eaten at a relative’s french gourmet food (not expensive!) – it’s name is: sous beurre. It is up on 24th mission street together with a cafe called sugarlump.
  • Went to great coffee place called: Sightglass Coffee. Real, good coffee with flavour. 
  • Also went for breakfast at an awesome American breakfast by Chinese folks. Don’t think I’ll find it again though :) I may want to give it a try ;) It was Golden!
  • Lots of walking around the hills, no car chases yet though.
  • Many other conferences happen here, quite often it seems. For example Intel’s IDF which was over yesterday and saleforce’s cloud computing (next week).

Trip to San Francisco

Made it through flights and security checkpoints and buses and trains!

Next time I’m going on this long flight it woud be awesome to actually bring tooth paste and tooth brush in the hand luggage. Also possibly some own food in case the air plane food is not so awesome. And some water :) Besides that the hoodie, sleeping/eye covers, scarf and Kindle and head phones were enough.

Weather is way better here than in Helsinki :) Pretty cool to get to see Greenand from above with no clouds, also Yukun is pretty impressive. But the farmlands of USA are pretty cool too – so structured and organized.

So what’s a good way to get rid of jet lag? Tomorrow I’l see if a bike ride is it :)

The hostel I’m in is the same as in 2008 when I was here last time  – although this time there’s way more folks hanging out in the “social room” – but all people do is play with their phones and tablest/computers.. maybe because it’s Sunday people chill out a bit more.

Exchanging Foreign Drivers License for a Finnish One

Today I applied to exchange my Swedish driver’s license for a Finnish one.

This is because after two years in Finland the foreign is not valid anymore.

Poliisi.fi is the main resource for information.

The Finnish page has a bit more information than both the Swedish and the English one.

Some tips:

  • The two photographs can be color and they should probably follow the passport restrictions (at least that’s what the link on the Finnish page indicates)
  • Bring your passport to the Police, not only the driver’s license.
  • On my account detailing that I’ve driven in Finland I just wrote when I’ve rented car in Finland, which rental companies I used and name/contact details/signature of two witnesses and me.
  • Gather some patience, Police told me today (August 2012) that it takes a long time, maybe 10 weeks or more. So if your license is about to expire, apply in time. You get to keep your drivers license until you go pick up the Finnish one.
  • They don’t tell you when it’s ready – you need to call or go to the station and ask..
  • The doctor’s certificate you can get from a public health station or from a private, most likely a lot less waiting with a private one.

Finnish Sentences – Kaivopuistu

Disclaimer: I am still studying Finnish and not so good :)

The posts that I’m trying to write here are just a way for me to practice writing Finnish.

Kaivopuisto on iso, vihreä ja meri vieressä. Sisällä ovat puut ja kukat.

Kaivopuisto is big, green and next to the sea. Inside are trees and flowers.

 

— Turned out this sentence was not the best finnish :) Puistossa and partitivi might be better to use!

My broken amazon kindle :(

During the weekend the screen on my amazon kindle 6″ decided to go partially broken.It happened while it was in my backpack inside a ‘leather cover’ that I also got from amazon at the time of purchase.

Usually with these electronic devices it’s that if the screen breaks you’re on your own / can try to get some help from home insurance. So my hopes were not so high when I sent an e-mail to amazon.

They however just asked me to start a chat or call them. I started a chat because I didn’t feel like calling a US number (although they had apparently some service that they’d call me back too), and got a very quick and efficient response. They just asked me to reboot the device (hold the release thing for 30 seconds).
They’re sending a new one and will let me send back the broken one in the same package and with a pre-paid shipment too!

Hope to get it soon, I feel nekkid without this e-book (or anything to read really), and of course it happened just when things were getting really excited in “A storm of Swords” (part of the “game of thrones” book series)!

EMP

Do you print pictures or keep all of them online?
What about if you’ve written a lot of text on some obscure blog on the Intertubez.
What if something happens and you can’t retrieve it?

Maybe this is just because I just started reading a post-apocalypsian book where an EMP just got set off. And it’s making me a bit paranoid.

But I think I need to go print some pictures to ease my mind :)

Ubuntu 11.04 Natty

Time for another ‘do-release-upgrade’!

This took away dwm-tools and suckless-tools (amonger other stuff). This means that META+p does not work anymore. So you cannot start any apps. Just install them again with ‘sudo apt-get install dwm’ and you’re good to go. Don’t even need to restart anything.

Found this cool command to check what release you’re on: lsb_release -d -s -c.

Maybe this only works on Ubuntu?

Install Scientific Linux 6 in VMWare Workstation

Time for some more Linux testing.

The reason for this is because I think I will go ahead and try to study for the RHCSA – Red Hat Certified System Administrator. Work might send me to a course in December, probably wise to play around with it before this.

So here we go.

Scientific Linux (SL) is a free clone of Red Hat Enterprise Linux (RHEL). Historically it’s been updated faster than CentOS. It’s same as Enterprise Linux (EL) – it’s re-compiled from source.

New VM, \SL-61-x86_64-2011-07-27-Install-DVD.iso, RHEL6 64-bit. 1 Core, 2G RAM, NAT, LSI Logic, New virtual disk, SCSI, 20G. Then boot the VM.

SL.org has this in pictures.

First thing you see is the Grub menu:

  1. Install or Upgrade
  2. Install with basic video driver
  3. Rescue
  4. Boot from local drive
  5. Memtest (I like that memtest is pretty standard now)

Chose 1. Next screen is a graphical interface where you click and write, so you need keyboard/mouse. Next screen asks if you want local disks or external storage (fc, iSCSI, or zFCP – for system Z). Hostname: SL1.localdomain.

Create disks. Custom/full size. xfs/encryption/lvm cannot be used for boot volumes.

Role: Virtual Host (I want to try KVM). Enabling SL 6.1 and SL 6.1 Security Updates repositories.

Pinging to something on the Intertubes work from the start.

More posts coming with more fun stuff :)

Book Review – Stonewielder by Ian C. Esslemont

This is the third book in the Malazan world. The previous ones by Ian are Night of Knives and The Return of the Crimson Guard.

Beware, this post will/may contain spoilers.

I’m now roughly 41% through the book (reading it on my Kindle) and I must say that the writing style is fairly similar to the Stephen Erikson books. OK, there’s a bit of change in how the chapters are ordered with the books.

The plots centers around the continent of Fist (also called Korel).Supposedly they would all come together in the end as there aren’t any additional books planned after that would initially appear to be in the same series, but here’s where we might be mistaken. As this book is not directly after The Return of the Crimson Guard (supposedly a few year after, but not directly, there are some gaps). Some of the important characters are common between the books.

http://the-void.co.uk/book/interview-damn-contrarian-steven-erikson-conversation-094/ if you want to know what’s happening after the Malazan Empire, apparently there’s going to be books about the huge Toblakai Karsa Orlong!

Back to the Stonewielder. The Mael priest is now the Emperor and has managed to persuade some highly influential (and old) folks to join the cause to do something about the black stain on the Malazan empire: Korel. It appears that they’ve pretended to be Malaz but have in fact been running their own little empire. Not happy.

There’s also the famous Stormwall, which has been mentioned quite often previously in the books but not too much has been written about the setups and what happens there. I believe Traveller hung out there for a while but he escaped. One side-plot surrounds a few Crimson Guard survivors that are prisoners/defenders on the wall, there are also a few of the Crimson Guard that have been crossing an ice wasteland and later they all meet up for some nasty fighting. Good times.

Kyle with the “normal” name, (he was not a Malazan empire recruit) is quite funny. I mean a guy named Kyle kicking some ass just feels odd after dudes like Greymane, Paran, or Whiskeyjack.

I almost like this book more than the Steven Erikson books, but that I think is because they are different. There’s not as much poetry in them for one, but maybe also because the Crimson Guard are bad ass!

After this one I decided to give Erikson’s Crack Pot Trail a go, but this is one weird book. There is a narrator who is very present. At least in the beginning. This is one odd duck, but I suppose after so many books in normal ‘Malazan’ style this ought to be refreshing.

 

NHL12

Got this for ps3 from verkkokauppa.com when it was released (yay, shipping from Åland = no taxes = lots cheaper games). Great if you live in Finland :)

Anyway, the game is pretty awesome (I haven’t played it since NHL ’94) but there are quite a lot of bugs that cause the game to freeze. For example they have this one mode where you use cards as players. Each card can only be used so many times. You use this to make a team and play tournaments, online, singleplayer whatever. Quite often when I play single player tournament the game freezes (often it sounds like the opponent hit the bar so it’s almost/probably goal). This causes a deduction of -1 in the player contracts and probably other nasty things that I haven’t bothered to check. It’s quite annoying anyway.

– Real NHL is starting soon! Too bad Kronwall got injured in Detroit, but I hope he gets back. Bertuzzi looks like he’s just getting better, see this shootout goal: http://video.redwings.nhl.com/videocenter/console?id=124735&catid=-6

Science-Fiction Books

Been reading a bit, is nice to get to read something other than fibre channel :)

1.) The Stainless Steel Rat by Harry Harrison

If you like Douglas Adams this should work for you too.
It’s quite old books (first one is from ’61) but the language does not feel archaic (like James Bond books for example). Slippery Jim is quite devious and goes through evil plots like some folks go through t-shirts. The book has a quite high tempo but sometimes I couldn’t see the logic/reasoning behind what DiGriz was doing, but maybe that is justified because he is ‘smart’, arrogant and a con-man in a universe where there are supposed to be none.
There’s a few of the books, the first one was quite short and it did feel like an introduction without starting when the main character was born but with jumping straight into the action.

2.)

Second one I’m on now is one about a Doctor at the “Hospital to end all hospitals”. Gigantic one in space somewhere that could accomodate people/species/aliens/whatever from everywhere. The series is called Sector General. First one is ‘Hospital Station’ which contains 5 shorter stories. I’ve only read the first one so far and it contains a bit of drama, not very interesting main character, yet.

The book so far has focused on Dr Mara’s treatment/feeding (basically not killing it) of a baby which could seem quite boring but honestly the baby/species is described in such detail and I just want to know more. Also older books (’60s and ’70s).

20110919 Update: Just finished the 5 short stories that constitute Sector General. Altogether quite pleasing and interesting stories. Will definitely give more of these a go in the future!

Bicycling in Helsinki

Some things to remember:

  • Follow the rules of the road, like, stay on the right side :)
  • People tend to follow the rules and get confused if you start bicycling on the left side, there’s also some streets where the bicycle part of the road is one-way (like Boulevardi).
  • Don’t bicycle on walk ways. Old people get upset and the cops might stop you. Even though many of the streets in Helsinki downtown are made out of cobble stone making the bike ride somewhat amusement-parky.
  • Pay attention to your surrounding but pay more attention to where you’re bicycling so you don’t run into stuff or people.
  • True, the Finns are generally an honest people, but do lock your bike.

SunOS 5.11 OpenSolaris Man Page Trick

Ever had to read a man page on a Solaris system?
You’ll see these

SunOS 5.11
System Administration Commands

on each page in the manpage, making it quite hard to read.

To make it more readable you can run this:
man $1|grep -v ‘SunOS 5.11’|grep -v ‘System Administration Commands’|less

With $1 being the command, for example mpathadm.

You could also put it in a bash script file, for example /usr/bin/man2, :

#!/bin/sh
man $1|grep -v ‘SunOS 5.11’|grep -v ‘System Administration Commands’|less

Don’t forget to set executable permissions with chmod 755 on the script file so that normal users can run it.
Then instead of running man, run ‘man2 mpathadm’ and you’ll have a much more readable manpage.

BCFP – VF – Virtual Fabrics

The free material does not go through the virtual fabrics and the exam objectives does not mention them specifically. Even so – it’s probably a good idea to get some grip about it anyway as it is mentioned in the BCFP 8G material and there are questions concerning it in the Nutshell Guide and the BCFP 8 knowledge assessment. Also it is mentioned in the pre-requisites for the BCFP (the AFS 141).

Brocade’s overview page of Virtual Fabrics.

 FAQ on Virtual Fabrics

 

There is also quite a lot of information about VF in the FOS Administration Guide. You can find this guide in lots of places but it is in the exam objectives in the link above.

The theory

It is what it says it is – a way to create independent and logical fabrics and switches that you can use to segment your SAN.
It does not require a license.

There’s logical fabrics and logical switches.

From the FAQ:
A Logical Fabric is an implementation of a Fibre Channel fabric with one or more Logical
Switches participating in the fabric. A Logical Fabric has its own independent instance of
fabric services, name server, zoning database, and so on.

A logical switch needs a fabric id. Default is 128 but can be changed. Same FID cannot be used for same logical switch in the same chassi. You move ports from the default to the new switches. VE_ and EX_ ports needs to be configured after the move. LD, QoS, F_port buffers/trunking may not be enabled on the port.

Max 8 VFs in the DCX, enabling it is disruptive (requires a reboot).

DCX uses 10-bit addressing. Uses part of the last part of the ALPA part of the PID.
Means that that part of the PID does not always indicate a port area.
Increases limit of NPIV, support loop devices.

Hardware

For 8G products it’s available on the DCX, B5100 and the B5300.
For 16G it’s available on 6510, VA-40FC
FC10-6, FS8-18, FCOE10-24 ports can only be part of the default switch.

 

(X)ISL — interconnecting switches

The default switch – is the first logical switch you create.

To connect a logical switch (henceforth known as LS) to another one you can just have one of the ports in the LS as an E_port, or you can use XISL – extended ISL.

To use XISL you designate one LS as a base switch. This is used for interconnects and you can have ISLs for several fabrics on this one port/cable. It can have E, VE and EX, VEX ports. *x_ports can only be in the base switch. One base switch per chassi, on DCX platforms the default cannot be the base switch. You connect the base switch to other base switches and then the other logical switches with the same FID merge. By default the logical switches are enabled to use XISL. You can combine normal ISL and XISL. Normal ISL have a lower cost.

ISL (between physical switches)
DISL (between Logical Switches)
IFL (routing, not merging)
XISL (several LISLs inside)
LISL (part of an XISL)

With XISL a logical port is created, their WWN start with 5x.

CLI

fosconfig –enable vf
lscfg –create FID [-base] [-force]; setcontext FID; swichdisable (set Domain ID etc); configure; switchenable
lscfg –config 128 -slot <slot> -port <port>
lscfg –delete non-default-logical-switches
lscfg –show
lscfg –change 5 –newfid 7 (disables switch and sets it); fosexec –fid FID -cmd “switchenable”

fosexec –fid FID  -cmd “cmd” (how to run a command on another LS)
fosexec –fid all -cmd “cmd” (on all logical switches)
ipaddrset -ls 123 –add 10.10.10.10/24 (set an IP for a logical switch, to segment management)

 

Fantasy Book Review – Steven Erikson – The Crippled God – Part 4

From about 2/3 to the end:
And as usual –  there’s lots of spoilers below. If you haven’t read the book yet, I’d advise you not to read the below.

Part1
Part2
Part3 

There is actually quite a lot going on about the First Shore.
The malazans found the kids, they’re running out of water. How are they going to cross this thing? It needs to be magical!
There the Tiste comes back (Nimander).
The queen goes crazy. But as with the High Mage of Shadow (where is he by the way? Still in Darujistan?) there are some lucid comments that tell quite a bit.
Where is Silchas Ruin going? Well we have the Draconus and then the Kilmandros stuff, maybe he’s going there for a visit.

The battle is like a vinyl slowly turning into a majestic battle – soon getting out of proportions I wager. OK, we got dragons. We got some army slowly crossing the deadly desert. When are the gods entering? =)

Tehol for the King! Oh wait. Anyway, He’s funny.

I immensely enjoy the short scenes in this book staring some of the notorious characters from previous books but those that don’t have a major part of the story (yet). I also enjoy that there’s no need to describe who they are. I mean of course when they first are introduced you may not remember who they are until they’ve been around for a while, and maybe still you don’t but at least the name rings a bell right?

I’m already at 70% and this is now chapter 22. Is this book not going to be 24 chapters?? My world is shattering!

*** Reached the end:

Turned out that there was indeed 24 chapters + two epilogues including the world’s longest poem. I like that the God wrote a book.
I’m not so sure I liked the few random happy endings at the end of the book. But it sure didn’t go through all of the characters which leaves lots of openings for more stories afterwards.

Now I can finally put this series to rest :)

Fantasy Book Review – Steven Erikson – The Crippled God – Part 3

Part 3 Review

Part 2
Part 1

I think this book is easier to read than the previous ones. For some reason I kind of like all the thinking, pondering and analyzing that the characters do. They grow on you?
I wonder if it’s just the book or maybe the Kindle assists me in reading;  I’ve been reading quite swiftly (in comparison to how fast I read one of the previous Malazan ‘real’ books).

Of course after 33% there’s a lot of stuff about the bonehunters. They’re walking through the Glass Desert. Hellian is sober and thinks they’re going to Y’Ghatan. They’re not.

Fiddler is quite depressing, most of them are but there’s a good amount of stubborn exceptions that cling on to life like super glue. Urb for example, the under dog. I hope he gets her.

Mappo starts walking through the desert, he meets a D’Ivers (all the butter flies that the Snake met explained) and he is saved by Badalle. Maybe Mappo will find his meaning when he meets these kids. First I thought maybe the kids would meet with the Bonehunters, maybe they still will. But supposedly Mappo is going to find Icarium. But where is he? It’s a bit disorienting – people are going along/across the desert but there’s not any good maps (there is even a world map online if you search for it).

*Update – Aha – it is the Bonehunters who meet the kids first (or at least that’s how I interpreted  the end of the last chapter I read).

The Shake’s fighting down at the breach is also a pretty cool part. Quite a few times in the books there have been a small amount of people holding off another force trying to get through a small opening. This sword-type Husk – there hasn’t been much about these in the previous books now has there?
Take your average fantasy book and then there’s this type of sword that slices through dragons like butter – how often would that be a pretty major chunk of the story? Like how the fabled Heroes go battle some Mountain Troll and get the sword back to it’s rightful heir? About all of them. Not in this book though!
Here the wielder finds it on the b(r)each where the big fight will be :)

Why

One personal reason why I’m writing these review posts as I read the book is because my memory sucks and I don’t feel like rereading the series again sometime soon :) 10000 pages is a lot.

Artwork

There’s some pretty awesome artwork for the Malazan books on deviantart – do check them out!

Kindle

Two more things that are awesome about the kindle: a) it is better in direct sunlight than in the shadow and b) there’s a built-in dictionary that works even offline.

Ubuntu + Automatic Software Updates

How often do you actually log on to your machine – hit
sudo apt-get update; sudo apt-get upgrade
without reading what the changes are? I do it every time, unless it’s a dist-upgrade we’re talking about.

So how do we get this going?

The tool you’re looking for is called cron-apt.

$sudo apt-get install cron-apt

This installs postfix for you as well (I chose local server, bah to e-mails, no pain, no gain).
After this, edit /etc/cron.d/cron-apt to your preferences.
If you want to see what it does – just hit what it says in that file:

test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt

and see what it does!

Test -x (file exists and execute permission is granted)
Second one runs it (but this did not produce any output)
Check out /var/log/cron-apt/log for details of what it does.

Please note that the cron-apt also runs “apt-get dist-upgrade” which would upgrade your distribution. So be careful.
It also runs autoclean :)

If you want more details – it’s possible to do this other ways (for example with anacron and /or bash scripts).
See this link: https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo