My thoughts on Slackware, life and everything

Tag: browser

Slackware package browser

It was not announced with a lot of brouhaha, but there is a significant change on this Slackware page: http://www.slackware.com/packages/. As you can see, the old (and seriously outdated) Slackware Package Browser (PB) has been replaced with a new one, developed by Mario of slackverse.org.

Please check out the new PB at http://packages.slackware.com/ and give your feedback. Robby Workman has been working hard behind the scenes to create a Slackware mirror infrastructure based on MirrorBrain and the new PB hooks directly into this new mirror infrastructure. A big hooray for both Robby and Mario!

On a related note: if you are willing to setup and maintain a Slackware mirror that should become part of the new mirror infrastructure, you should definitely check out the mirroring guidelines.

Eric

Watching multimedia in Slackware’s browser

While I was sitting in my chair with little room for escape (I sprained my lower back yesterday when trying to lift something and can barely move) I thought, I need to do something useful while being constrained.

So, I created some new packages and wrote a few blog posts – this one being the last, because sitting in this chair is becoming equally painful.

What packages? You can already find them in my repository or its mirrors. They are dconf (new package altogether) and updates to gnome-mplayer as well as gecko-mediaplayer for which I did not yet have Slackware 13.37 packages.

And why exactly these three?

I was not too satisfied with the state of viewing embedding media clips in a web browser on Slackware. In the past, I used to check out the new movie trailers on Apple.com, In Slackware, that has never been possible I think. The VLC browser plugin crashes more than that it works, and the mplayerplug-in program which uses MPlayer to show the embedded video did not work reliably. I had built the gecko-mediaplayer browser plugin for earlier versions of Slackware – it uses gnome-mplayer to display embeeded media – but that too never worked with the Apple trailers and it had some of the same quirks that mplayerplug-in also had (all too natural since gnome-mplayer is a continuation of the abandoned mplayerplug-in by the same author).

But today, I grabbed the latest sources and built packages. And lo and behold! I can view Apple’s trailers!

Now, why did I mention that dconf package? Well, it turns out that gnome-mplayer which should not depend on any Gnome library, in fact does depend on an “application settings storage backend” – which is Gnome’s gconf… which is not part of Slackware. So, my Slackware package has gconf support disabled, but that only lead me to the next issue – my firefox kept crashing after installing the gecko-mediaplayer & gnome-mplayer packages.

Easy to spot the cause: you only need to run either firefox or gnome-mplayer from the console and you’ll see the following error message:

GLib-GIO-ERROR **: Settings schema ‘apps.gnome-mplayer.preferences’ is not installed
aborting…

That error was fixed by adding the following command to gnome-mplayer’s post-installation script.

glib-compile-schemas /usr/share/glib-2.0/schemas

But we are not there yet. Without a settings backend to store the app’s preferences (your preferences), many of the preference settings that you change do not survive an application restart. Running gnome-mplayer from the commandline shows why:

GLib-GIO-Message: Using the ‘memory’ GSettings backend.  Your settings will not be saved or shared with other applications.

This is where the dconf package enters. Let me quote: “Dconf’s main purpose is to provide a backend to GSettings on platforms that don’t already have configuration storage systems.” It’s a small and efficient program without dependencies, and after installing dconf, our gnome-mplayer no longer complains. All its preferences are now being stored on disk.

Looking back on the weekend which is almost over now, I have performed a number of related plumbing activities: I upgraded my MPlayer package to a recent snapshot – you can grab that and use it to upgrade Slackware’s version of MPlayer with mine. Plus, I have not one, but two graphical front-ends for the mplayer binary: my repository now has the entirely new UMPlayer (universal multimedia player) which has a Qt4 interface, and an updated gnome-mplayer whose GUI is based on the GTK widget set. The choice is yours! But you should definitely give UMPlayer a trial run if you are a regular YouTube visitor – it has an awesome YouTube search & play feature that does not require a webbrowser.

Eric

Game of SET

An old game and I never had seen, played or heard about it… I am referring to the game of SET.

My son went on a school camp where they played SET, and back home we bought a boxed version. It is very addictive!

This card game was created by Marsha Jean Falco in 1974. As part of a genetics study she wrote down the information she collected in the form of colored symbols. This made it easier for her to compare combinations of inherited genes and the resulting behaviour of her subjects (german sheperd dogs). At some point, someone suggested that there was potential for having some fun with these cards, and that is how the game was born. It took until 1991 before SET appeared on the market though.

The rules are very simple. They involve creating sets of 3 cards out of a total of 81 cards. These cards have four different characteristics: each card has a unique combination of numbers (one, two or three), shapes (diamonds, ovals or squiggles), colours (red, green and purple), and fillings (solid, striped or open). Three cards form a set if the following is true for each and all four characteristics: all cards have the same property, or, all cards are completely different. An example of a set is the combination of three cards that display:

  1. one red striped oval
  2. two green open ovals
  3. three purple solid ovals

You try to find sets of three cards and take these off the board. The game ends when no more sets can be found, and the winner is the one who has collected most sets. When you hear people yell “SET!” you will realize that they are actually playing this game.

I will not try to explain the full rules here. The SET website has documented the SET rules, and the mathematics behind it., They also have a daily puzzle competition and more worthwhile things to read.

I have found several online versions of the game. Because the rules are so simple and well-defined, it does not take a lot of code to write.

  • Browser-based:
  • Windows/Linux
    • The best program to use (in my opinion and that of my wife) is TATset. It is open source and although the homepage (http://www.tatset.com/) seems to be off-line, the Sourceforge page is still there. Screenshot:
TATset

TATset

I hope you will have as much fun with SET as I am having!

Eric

© 2024 Alien Pastures

Theme by Anders NorenUp ↑