Freitag, 22. August 2008

How to split MPEG files on GNU/Linux

You can easily split MPEG files on GNU/Linux with mpgtx. (yum install mpgtx on Fedora Core 9):

[root@sundaysister lennart]# mpgtx -2 /tmp/happ.mpg -b m
Now processing /tmp/happ.mpg [1/2] ... 100.00%
Now processing /tmp/happ.mpg [2/2] ... 100.00%

After this you will have the first parameter defines how many parts you want to split the second parameter (the MPEG file) to. After the process has finished you will have the splitted files in the directory you executed mpgtx from.

Have fun! Great for VCDS (Video-CDs) ;)

Montag, 14. Juli 2008

Twitux - A GNOME Twitter client

I recently re-activated my Twitter account and searched for a desktop client. Twitux integrates well into GNOME and seems to be the best client out there:


Twitux is available in the Fedora repository and should be in others too.

http://sourceforge.net/projects/twitux

Have fun! And add me - I need some Twitter friends ;)

Freitag, 6. Juni 2008

Fedora 9: No sound with flash?

This blog post has moved to the new blog: http://blog.scopeport.org/fedora/fedora-core-9-sound-flash/

Sonntag, 9. März 2008

ScopePort talking SMTP

strace of scopeport-server

The web interface may reach an alpha state soon!

Freitag, 7. März 2008

Eclipse: PHPEclipse editor does not open?

When your PHPEclipse Editor does not open and tells you to look at the error log it is likely because you use the wrong JVM.

How to set the right JVM:
  • Install the Sun Java JRE ((k)ubuntu: sudo apt-get install sun-java6-jre)
  • In the file /etc/eclipse/java_home insert /usr/lib/jvm/java-6-sun on the line right above /usr/lib/jvm/java-gcj
  • Start eclipse. It might find a new workspace - Just select the workspace you used with the old JVM.

Mittwoch, 5. März 2008

How to use your KDE QT style in GTK applications like Firefox

When you want to use your QT Style in Firefox on Kubuntu you will have to install QT GTK Engine.
lennart@sundaysister:~$ sudo aptitude install gtk2-engines-gtk-qt

Montag, 3. März 2008

Found the mysterious memory leak in the ScopePort server

Never forget to use mysql_free_result(MYSQL_RES*)!

I found the leak with the help of the wonderful Valgrind. ( valgrind --tool=memcheck --leak-check=full ./scopeport-server)



Mittwoch, 27. Februar 2008

Music to hack to

Whoever spent a whole day and night (or two) with hacking a server or any other type of code knows about the importance of music in the background. The music should push you forward, motivate you and keep you from falling into sleep. But it shouldn't make you nervous or aggressive. It must give yo u that feeling of peace and satisfaction that keeps you working on the code for hours.

Today i want to show you my favorite music to listen to while hacking:

Explosions In The Sky
(Photo by nailest)

An American instrumental rock band from Texas. They know how to make you feel the music even without lyrics. Guitarist Munaf Rayani said about their status as instrumentalists, "I mean, I think we discussed singing for half a second, and then it just kinda, we just dropped it. We just didn't go back to it because we were comfortable enough." [wikipedia]

YouTube Video: Your Hand In Mine (Live)

Blackmail
(Photo by rockzoom_de)

A German independent band from Koblenz. Their debut album "Blackmail" was released in 1997 - Their first really successful album was "Friend Or Foe" (Released in 2003) which was heavily played on Viva2 (a German independent/rock music tv station).
Blackmail is currently working on a new album "Tempo, Tempo" which is planned to
be released on March, 28th.

YouTube Video: Moonpigs

Embee

Embee is a popular swedish DJ. Be prepared: His music keeps you unbelievably warm and loose! In the mid 1990 Embee worked as a solo DJ in the USA and released a number of singles and album although none made an lasting impact.

He is part of the famous swedish hip-hop group Looptroops and won a Swedish Grammy for his first solo album "Tellings from Solitaria" (best hip-hop or soul release of 2004).

YouTube Video: Send Someone Away

Kings Of Leon
(Photo by cheekymonkey_princess)

Kings Of Leeon are a rock band from Tennessee, USA. Their sound is a kind of southern rock or blues. They consist of three brothers and a cousin.

In an interview Caleb Followill (one of the three brothers) said that their early influences where The Rolling Stones, Neil Young and Bob Dylan.

YouTube Video: Knocked Up



Songs: Ohia
(Photo by smallestbones)

My very favorite! Songs: Ohia was mainly a project of Jason Molina (who does also release single albums) and other revolving musicians. In 2003 they changed their name to "Magnolia Electric Co.".

Their music is very emotional and enthralling. Feel the goose bumps touching your skin when listening to Cabwaylingo (from the very first album "Songs: Ohia").

YouTube Video: Cabwaylingo (Live)

Montag, 25. Februar 2008

Subnetting sucks

/16 means the last 16 bits ...or the first? ...Class A network? argh

Samstag, 23. Februar 2008

New vinyl!

I was not able to resist... I am back from my favorite record dealer! ~50 Euros later:

Songs: Ohia - Magnolia Electric Co

Songs: Ohia - Songs: Ohia

Die Skeptiker - Dada In Berlin, Tondokumente 2007 (German punk)

Razzia - Tag Ohne Schatten (German punk)

How to mount an ISO image in linux

You can mount a standard ISO image using this command (as root):

mount -o loop image.iso /mnt/myisoedcd

Note that /mnt/myisoedcd must exist. (mkdir /mnt/myisoedcd)

The content of the ISO image is now available at /mnt/myisoecdc (as your deskop environment may already have informed you about)

Freitag, 22. Februar 2008

ScopePort development debug data

Currently hacking the "Warnings" module...

Donnerstag, 21. Februar 2008

No fonts in Steam/Half Life 1 on Wine

When Half Life 1 on Wine is running but does not display any menu entries you need to install the Microsoft TTF fonts. On Ubuntu/Debian you can install them with "aptitude install msttcorefonts". You also need to place the Tahoma font into "~/.wine/drive_c/windows/fonts" - Don't know where to get the Tahoma TTF file? Google is your friend.

Sonntag, 10. Februar 2008

The first ScopePort console is ready!

I am currently finishing hacking the first ScopePort console! It's a ncurses-based C++ console that uses the ScopePort remote.php:


Useful ncurses tutorials/examples:
  • http://web.cs.mun.ca/~rod/ncurses/ncurses.html
  • http://www.captain.at/howto-curses-example.php
  • http://www.apmaths.uwo.ca/~xli/ncurses.html

Freitag, 8. Februar 2008

Developing C++ QT applications using Eclipse

You can easily develop C++ QT applications with Eclipse CDT! There is no need for another plugin.

It is important to define the correct libs in the Eclipse project settings. You can find out the correct g++ command string by using qmake(-qt4).
  1. Create a new C++ project.
  2. Add a source file (e.g. the hello world program from the QT4 tutorial)
  3. Use a shell to navigate to the source folder of your hello world program.
  4. Execute "qmake -project && qmake && make" (or qmake-qt4 if you want to use QT4)
  5. You should see the correct g++ line.
  6. Configure your Eclipse project to use the g++ settings.
My project settings (Kubuntu Gutsy, QT4):




You can now delete the files that were created by qtmake and use Eclipse CDT for developing your QT applications. Have fun!

How to download entire websites using wget (Linux [,*NIX])

You can download a whole website with the handy wget program:
wget -r http://example.org/somefolder
This is very useful for downloading documentations which are not available as a tarball or PDF.