Pavol Rusnak #cypherpunk #hacker #openhw #privacy #bitcoin #newmediaart

openSUSE Counter for Facebook

Gnokii pointed me to Ubuntu countdown banner for Facebook and asked me if I could rework it to show openSUSE Counter instead. Unfortunately I was not able to reuse the code because it was written in Python as a plugin for Google AppEngine and I wanted something lightier. After some time I was able to come up with my own simple solution in PHP. :-)

Here are the steps for you:

  1. login to Facebook
  2. go to http://apps.facebook.com/opensuse-counter
  3. application will ask for permission to access your profile, to accept click Allow fbcounter1
  4. click Add to Profile on the following page fbcounter2
  5. click Add to confirm your choice fbcounter3
  6. you’ll be taken to your profile page where you click Keep fbcounter4
  7. enjoy openSUSE counter on your Facebook profile! :-)

Update: When the counter seems to be stuck on 43 days, just remove and re-add the profile box.

Failgeeko

Today morning I was working on some packages in openSUSE Build Service when suddenly OSC started to throw 403/503 error messages. I went to http://build.opensuse.org/ site to see this:

outage

Then it occurred to me - it would be much better if we had some funny image on this page to cheer user up, something like twitter failwhale or the one Jimmac made for SUSE Studio. I started Inkscape and after a couple of minutes I created this one:

failgeeko

I know it is far from perfect (I’m no artist), but feel free to grab the original SVG and create a better one! We’ll include it in the 2.0 release of Build Service which will be using Bento theme by Robert. :-)

LinuxWochen Vienna 2010

From Thursday to Saturday there was an event in Vienna held as a part of longer Austrian tour called LinuxWochen. This opportunity could not have been missed by openSUSE, so we formed a team consisting of me, Michal and Sirko.

All three days were packed with more than 70 talks and workshops. We had a stand directly next to Fedora’s one, handled by Fabian and Zoltan, so we also had an opportunity to talk about our distros and also to make fun about each other. :-) Sirko lead a very crowded workshops about Inkscape and Gimp on Friday, where people were able to create a very nice drawing of Tux and great space wallpaper with Earth and Moon. In the meantime we were dealing with very curious questions from visitors at the stand. One man was so satisfied with Michal’s patience and expertise, that he joined us for Friday’s Linuxwochen After Hour Party at Museum Quartier and bought us a dinner! :-) The party was organized by quintessenz, which is an organization to “restore civil rights that have been abolished by technical means during the first stage of the information revolution”.

On Saturday I gave a talk about Game Store and Michal told a few words about upcoming openSUSE 11.3 release. After mine talk Horst Jens, one of the pygame.org maintainers, told me that he really likes the concept of GameStore and Build Service games repository and he would love to have all games from pygame.org available from games repo. I will try to create a generic SPEC template for games written in pygame or even create an automated generator for this.

In the afternoon we held a Build Service workshop and although we had problems with network connection (which was really slow), we managed to create a package in OBS together with the people that came. We also covered the basics of OSC usage including the creation of submit requests.

Some photos can be found in Sirko’s blogpost and on his flickr.

Prezi Offline in Linux

For creating my GameStore talk at LinuxWochen Wien I decided to use new and hip tool called Prezi. I’m not going to write about its features, you have to try and see for yourself. :-) What I can say is that I really like the tool, but it has one big disadvantage - it’s written in Flash.

During the event we had a wireless connection available, but it was rather unreliable, so it was no option for me to present the talk online. I started to investigate the offline options. Either you can download the full blown Prezi Desktop, which is available if you subscribe the service, or you just download the Prezi “Player”. But wait, the page claims it is compatible only with Windows and Mac OS X. Let’s see. I downloaded the ZIP archive and indeed - it contains data folder with your presentation, Windows application (prezi.exe) and Mac OS X application (prezi.app).

Let’s get hacking! Mac OS X application is in fact just a directory structure. I copied the file prezi.app/Contents/Resources/movie.swf to the same location as my data directory and tried to run flashplayer movie.swf. Wow! The presentation started to load, but unfortunately it stopped after few seconds and I ended with this:

prezi1

I tried straceing the process, but found nothing unusual (like failed open calls). Then I downloaded the debug version of Flash Player, run the command again and got this exception:

An ActionScript error has occurred:
Error #2044: Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation:
file:///.../movie.swf/[[DYNAMIC]]/1 cannot load file:///.../data/fonts/LiberationSerif-Regular.swf.
Local-with-filesystem and local-with-networking SWF files cannot load each other.

Aha! Locally stored SWF files cannot load other SWF files, neither local ones, nor remote ones. That’s the problem. Ok, let’s change the standalone player settings. But how?! I tried various command line switch with no success. After couple minutes of searching I found that standalone Flash Player settings could be changed via Flash plugin that loads Settings manager from the Internet? WTF?! :-)

I will make it easier for you: let’s google for “flash global security settings content creators”. The first result at the time of writing this article was this one. Go to this URL, wait until the Settings manager is loaded and then click on the “Edit locations …” button.

prezi2

After that select “Add directory” and choose local directory where you store your presentations. From now on you enabled standalone Flash player to run your Prezis. Congratulations!

Even though I like Prezi, I would be ecstatic if they dropped Flash and used SVG instead as its presentation and interchange format, probably using the uber-cool SVG-edit as the core. :-) It would also enable iPad users to use the tool. And yes, I know about JessyInk, but that’s not exactly what I have on mind …

xkcd 715

I was playing with the idea to write an application inspired by xkcd comics 715 since it was released, but today I finally found time to whip it up! The whole source code is a single webpage (HTML+Javascript/jQuery) around 100 lines long. It basically forms the query by replacing hash sign “#” with the particular number from loop and then asks Google via its Search API. Resulting data are shown via Google Visualization API. It doesn’t have much eye-candy yet, but it works and that’s what counts. :-) I put the presets Randall came up with and also added some of my own. I will now describe the first three in detail:

The first one was "xkcd #", which easily showed that the most popular issues were: 10, 12, 244, 385, 427, 449, 452, 505, 701, 705 and 714.

img

I continued with "# czechoslovakia", which of course spotted the most important years of the 20th century for this country (1918, 1938, 1945, 1948, 1968, 1989 and 1993).

img

The last one, "favorite number is #", shows the distribution of favorite numbers. Three, seven, eight and thirteen were expected, but I was surprised to see peak also at 42. I guess you know why. :-)

img

Bear in mind that there are still some outstanding issues and also if you have any ideas for interesting presets to add, I’d be more than happy to include them!

Ah, I almost forgot the link, so here it is: http://gk2.sk/cargo/xkcd715/. Enjoy!