Petition to bring Pink Floyd to Spotify

I’ve started an experiment, an online petition to try to bring my favourite band Pink Floyd to my favorite music service Spotify. I’ve read about these massive Facebook groups that manages to perform real world actions. Since I’m not on (and have no desire to be on) Facebook  I decided to try out Petitions Online. So head over to http://www.petitiononline.com/pf2sptfy/ and sign that petition.

In reality I have not reals hopes, and without spending a lot of time promoting the petition I’ll be lucky to get half a dusin signatures, but hey, no harm in trying…

Posted in Uncategorized | Tagged , | 1 Comment

The long winded road of XAML

I was playing with Silverlight and Expression Blend trying to create a small animated figure to use in a project. I had the image in PNG format, but I needed it in XAML so I could animate parts of it.

Surely Blend would have an import from PNG option? Or convert PNG to XAML? Nope! Ok, Google is my friend. Must be a whole lot of free software that does the trick. Well, either there aren’t or I’ve become really lousy at using Google.

What I did find however was a lot of people asking the same question on different forums and sites. The best solution I found was a two step method. First convert the PNG into SVG, and then convert the SVG into XAML.

For converting an image into SVG I came over a site called Vector Magic, they have a really good online flash based service with lots of options and preview capabilities. The downside is that they actualy cost money, but if you register you’ll get a couple of conversions for free.

So after a couple of minutes of tinkering with different options I ended up with a nice vector version of my PNG image in SVG format.

Back to Google to search for SVG to XAML. Again a nice online service, this time actually free and as a bonus written in Silverlight. XamlTune lets you paste in the SVG code and will convert and preview the resulting XAML.

So now I had a XAML version of my original image. The downside was that it was just a couple of endless PATH’s with x,y coordinates. I used a small eternity to find out where to cut the PATH’s into the figure’s various parts so that I could animate the right part or it.

Silverlight, XAML and Blend are all nice and fun, but if your design is all about photoshop and PNG then prepare for a lot of extra work :)

And what was this image all about? I can not tell you, if I did I’d have to kill you. Sorry.

Posted in Development, Ramblings, Technology | Tagged , , , | 1 Comment

Media Connect Configuration Add-In

Main screenThis add-in allows you to edit the settings for Microsoft’s media serving software, Media Connect, which comes bundled with Windows Home Server.

The configuration software is available in-box on HP’s MediaSmart Server or it can be downloaded from here if you have other brands of Home Server.

This add-in simply starts that configurator from within a Windows Home Server Console Tab and allows you to allow and block access from your home server to various media devices in the home – an Xbox 360 for example.

Released: 2009-04-28
Version: 1.0.0.2

Continue reading

Posted in Development, HomeServer | Tagged , , | 13 Comments

WHS FileManager updated

I’ve updated the WHS FileManager AddIn to v1.0.0.3. Improvements are support for drag and drop (hold CTRL down to copy, otherwise files are moved). Also support for renaming files and folder (select item to rename and press F2).

Read post for more information.

Posted in Development, HomeServer | Tagged , | 1 Comment

WHS File Manager Add-In

WHS File Manager Add-In

8752 downloads

Released: 2009-05-16
Version: 1.1.1.0

This is a simple dual-pane file manager for the WHS management console. It allows you to safely copy, move and delete files on your home server. You can navigate all files shares on the server and any removable storage devices attached to the server. The latest version even lets you open/run files locally from your server.

Use command buttons in the middle to copy, move or delete files. Or you can drag and drop files and folders from one side to the other.
Continue reading

Posted in Development, HomeServer | Tagged , , , | 33 Comments

Silverlight 3

Microsoft has just released the first beta of Silverlight 3. I encourage you to check out  Tim Heuer’s great guide to the new features.

Posted in Development, Technology | Tagged , , , | Leave a comment

(M)Apple's true face

I won’t say that I would mind owning an iPhone or even a iPod touch. But since I don’t wade in money I don’t (own one that is). Anyway this Simpson’s parody of Apple and Steve Jobs is just hilarious and it makes it a bit more easy not owning an iPhone.


Mapple – The Simpsons from Mykl i am on Vimeo.

Posted in Fun, Technology | Tagged , , | Leave a comment

Twitterfri møter

No twitter

I en artikkel på Digi.no kan man lese at IBM har levert inn en patentsøknad på en «metode og prosess for å slå ned på defokuserende virksomhet under utvalgte avtalte møter». Oppfinnelsen beskrives som programvare for å hindre distraherende pc-relaterte aktiviteter på møter. Man kan vel anta at det er chat, twitter, facebook, blogging etc. under møter man ønsker komme til livs.

Må si jeg ble noe sjokkert over at det kan være behov for noe slikt i bedrifter. Enten må du ha utrolig lite motiverte og interesserte ansatte, eller så har du totalt bomma på møtets innhold eller hvem du har kalt inn til møtet. Ansatte som sittet og twittrer eller surfer på Face Book i møter bør spørre seg selv om dette er jobben for dem. Jeg har alltid hatt som krav til jobben at den skal være interessant og utfordrende. Om jeg ikke lenger glede med til å gå på jobb så er tiden inne for å se etter andre alternativer.

Det er i mine øyne mangel på respekt for både arbeidsplass og møteholder å drive med slik aktivitet under et møte. Greit nok er ikke alle møte like interessante, men et minimum av profesjonalitet bør man kunne opprettholde.

Jeg husker tilbake til høgskolen hvor det oppsto et problem når det foregikk forelesninger på klasserommene som hadde Unix terminal på hver pult. Det gjenlød en konstant klapring av tastatur gjennom alle timene og det var ikke folk som skrev notater elektronisk for å si det sånn.

Full stopp

Løsningen ble at en stor rød “nødstoppbryter” ble installert. Når foreleser kom inn var det første han gjorde å smelle inn bryteren og strømmen fra samtlige skjermer forsvant (kremt, bortsett fra min fordi jeg flyttet skjermen min over på den andre kursen). Uansett et effekivt tiltak for å holde oppmerksomheten til studentene.

Tilbake til sakens kjerne. Jeg ser ikke helt hva slags møtet som krever bruk av Twitter (jeg har ennå ikke helt sett verdien av tjenesten i det hele tatt, men det er en annen sak) eller andre sosiale nettverk/kommunikasjonsformer.Kan noen forklare med hva som er så galt med å kreve at dine ansatte/medarbeidere har fokus på møtet og møtets innhold?

I en oppfølgene artikkel uttaler markedsdirektøren i Den norske dataforening (DND) at man bare kan tape på å prøve å sperre moderne verktøy. Er Twitter, facebook og what not verktøy? Fremmer det produktiviteten i prosjektet eller kunnskapsnivået til den ansatte å lese at en venn venter på bussen, akkurat har kjøpe pizza som han skal ha til middag e.l.? Jeg har som sagt forsøkt å prøve Twitter (og før det facebook), men 90% av meldingene er søppel og har liten eller ingen relevans til meg. Da er det mye bedre og følge en blog, delta i forum eller abonnere på andre kilder med informasjon (mail lister etc).

Ingen gidder sende en epost til alle vennene sine fra mobilen om at du står og venter på 20-bussen, men gjennom Twitter får jeg nesten daglig meldinger med et sånt type innhold. Enten må jeg få et slags spam-filter på twitter eller så kutter jeg snart ut. Folk har fått et, for meg, uforklarlig behov for å kringkaste alle sine bevegelser, opplevelser og tanker.

Du kan påstå at jeg ikke er noe bedre som har både blog, er på LinkedIn, Flickr og Delicious. Men det er ifallefall tjenester eller verktøy som gir en betydelig verdi. Fortell meg verdien i Twitter!

Posted in Ramblings, Technology | Tagged , , , | Leave a comment

PI day

Today is PI day (3.14) at least in the part of the world that writes the month before the day. To celebrate I wrote this little silverlight application that calculates the first 1000 digits of PI. Update: Added the every so catchy PI song to the post.

Continue reading

Posted in Development, Technology | Tagged , , | Leave a comment

Project Euler and Linq

First I’d like to thank Stefaan for introducing me to Project Euler. Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.

Most of the problems you can brute force in resonable time, but the challenge is more of a personal level in trying to solve them elegant or in as few lines as possible.

I quickly found that the magic of yield return and Linq was well suited to solve several of the problems I’ve encountered yet. So I decided to write a blog post about them and share my new-found knowlege of Linq.

Problem 1: Add all the natural numbers below one thousand that are multiples of 3 or 5

The Enumerable pattern is quite extraordinary when used in Linq like this. So I decided to use the same pattern on other problems as well.

[code lang="csharp"]
return Enumerable.Range(1, 999)
.Where(x => x % 5 == 0 || x % 3 == 0)
.Sum();
[/code]

Problem 2: Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed four million

First I made a sequence generator for Fibonacci numbers:

[code lang="csharp"]
internal static IEnumerableFibonacciSequence()
{
  long last1 = 1;
  yield return 1;

  long last2 = 2;
  yield return 2;

  while (true)
  {
    long next = last1 + last2;
    last1 = last2;
    last2 = next;
    yield return next;
  }
}
[/code]

Problem 3: What is the largest prime factor of the number 600851475143 ?

Again I start with creating a sequence generator. This one returns the sequence of factors for any number.

[code lang="csharp"]
internal static IEnumerable GetFactors(long x)
{
    for (long factor = 1; factor * factor <= x; factor++)
    {
        if (x % factor == 0)
        {
            yield return factor;
            if (factor * factor != x)
                yield return x / factor;
        }
    }
}
[/code]

We also need a small helper function to check if a number if a prime number:

[code lang="csharp"]
private static bool IsPrime(long num)
{
  long limit = (long)Math.Sqrt(num);

  for (long d = 2; d <= limit; d++)
  {
      if (num % d == 0)
          return false;
  }

  return true;
}
[/code]

Finally the actual Linq query to find the largest prime factor of the number 600851475143 :

[code lang="csharp"]
var primeFactors = from factor in GetFactors(600851475143)
                          where IsPrime(factor)
                          select factor;

return primeFactors.Max();
[/code]

I also have use the same pattern on several of the other problems like nr 10: Find the sum of all prime numbers below 2 000 000:

[code lang="csharp"]
return PrimeNumbers()
         .TakeWhile(x => x < 2000000)
         .Sum();
[/code]

Posted in Development, Technology | Tagged , , , , | 1 Comment