Posted by Paul Verreth
Sat, 16 Jun 2007 14:18:00 GMT
jxmltv
jxmltv is een uitstekende xmltv grabber, gericht op de Belgische zenders, zowel NL- als FR-talig.
Dit programma is java gebaseerd, en is in staat om alle programmavelden op te halen zoals titel, afleveringstitel, inhoud, acteurs, categorie, icoon van de zenders, ..., en nog heel wat meer.
Er zijn enkele configuratiebestandenmeegeleverd, die elk verwijzen naar een bron van de programmaroosters. We gebruiken jxmltv.be.tvb.properties.
Enkele instellingen hierin:
Je kan bijvoorbeeld bepaalde zenders uitschakelen om te vermijden dat er teveel overbodige data moete worden gedownload.
channel.enable.ned1=true
channel.enable.ned2=true
channel.enable.ned3=true
channel.enable.net5=false
channel.enable.nickelodeon=true
channel.enable.playboytv=false
channel.enable.primeaction=false
channel.enable.primefezztival=false
channel.enable.primemovies=false
channel.enable.primeone=false
channel.enable.primesport1=false
channel.enable.raiuno=false
channel.enable.realitytv=false
Dit geeft een mapping voor kanalen met meerdere namen zoals Canvas/Ketnet
channel.name.map.Canvas=Ketnet/Canvas
channel.id.map.canvas=ketnet/canvas
channel.name.map.Ketnet=Ketnet/Canvas
channel.id.map.ketnet=ketnet/canvas
Kanaalinfo downloaden
Met volgend commando wordt enkel de kanaalinfo gedownload, dus nog zonder programma informatie. be.tvb verwijst naar de configfile.
java -jar jxmltv.jar be.tvb -download.days=0
Het resultaat is xmltv.xml, die dan kan dienen voor mythfilldatabase.
mythfilldatabase
mythfilldatabase --preset --file 2 -1 xmltv.xml
Hiermee wordt de initiële kanaalinfo in de mythtv database ingeladen.
Nu kan je merken dat de kanalen beschikbaar zijn, maar dat de frequentie nog moet ingegeven worden. Hiervoor kan je het best mythweb gebruiken, want makkelijker en sneller dan myth-setup. Het is makkelijk te downloaden met synaptic.
In mythweb: instellingen -> zenderinfo
De frequentie kan je vinden bij zenderinfo (zie lager). Maar opgelet je moet de waardes wel omzetten: Als er bijvoorbeeld staat voor Canvas 203,25, moet je dat omzetten in mythweb naar 203250.
En zo moet je dat doen voor elke zender.
EPG: programmagids inladen
Van zodra de kanalen correct zijn ingesteld, en je dus life tv kan kijken, kan je ook de EPG-info inladen.
Zenderinfo
Tags jxmltv, mythtv, ubuntu
Posted by Paul Verreth
Mon, 26 Mar 2007 06:30:00 GMT
This is an init script you can use so that typo will be started after an system reboot. Using chkconfig, it wil be activated in the runlevel system (/etc/rc[0-6].d)
Also see: Installing typo with the installer
#!/bin/bash
#
# /etc/rc.d/init.d/typo_sos
#
# Start typo blogging engine
#
# chkconfig: - 65 35
# description: Typo blogging engine
# processname: typo
# Source function library.
. /etc/init.d/functions
TYPO=/usr/bin/typo
TYPODIR=/var/www/your-website-directory/blog
test -x $TYPO || exit 0
RETVAL=0
prog="Typo blogging engine"
start() {
echo -n $"Starting $prog: "
cd $TYPODIR
$TYPO start $TYPODIR
RETVAL=$?
echo
}
stop() {
echo -n $"Stopping $prog: "
cd $TYPODIR
$TYPO stop $TYPODIR
RETVAL=$?
echo
}
#
# See how we were called.
#
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $RETVAL
Read more...
Posted in quick refs | Tags linux, rails, typo
Posted by Paul Verreth
Mon, 26 Mar 2007 05:54:00 GMT
Mongrel is IMHO the preferred (web)server for Ruby on Rails applications hence for Radiant.
Here you can find a startup script for Fedora linux, but of course also usable for Ubuntu, ...
#!/bin/bash
#
# /etc/rc.d/init.d/radiant_cms
#
# Start mongrel & radiant
#
# chkconfig: - 65 35
# description: Mongrel & radiant
# processname: mongrel
# Source function library.
. /etc/init.d/functions
MONGREL=/usr/bin/mongrel_rails
RAILSDIR=/var/www/radiant
CONFFILE=mongrel_config
test -x $MONGREL || exit 0
RETVAL=0
prog="Mongrel for radiant"
start() {
echo -n $"Starting $prog: "
cd $RAILSDIR
$MONGREL start -C $CONFFILE
RETVAL=$?
echo
}
stop() {
echo -n $"Stopping $prog: "
cd $RAILSDIR
$MONGREL stop
RETVAL=$?
echo
}
#
# See how we were called.
#
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $RETVAL
Read more...
Posted in artikels, interessant open source | Tags mongrel, radiant
Posted by Paul Verreth
Wed, 14 Feb 2007 16:22:00 GMT
Open Source, Open Genomics, Open Content
Posted in interessant open source
Posted by Paul Verreth
Wed, 14 Feb 2007 16:13:00 GMT
The OpenDocument Format (ODF) just keeps on getting stronger. It is now an official ISO standard; there are numerous applications that support it, with varying degrees of fidelity, including Google’s online word processor and spreadsheet; there’s an official Microsoft-funded plug-in for Microsoft Office that allows it to open and save ODF files, and a program that converts between ODF and the Chinese UOF XML office format; and the ODF community has largely sorted out issues of accessibility that threatened to de-rail its adoption by Massachusetts.
At the same time, Microsoft is clearly beginning to feel the pressure. Its attempts to ram its own XML format through as an ISO standard, and the unseemly haste with which its 6000 pages of documentation were approved as an ECMA standard, are an indication that it is playing catch-up in this sector, even if it remains the dominant player.
Read the rest of this Linux Journal article
Posted in artikels, interessant open source
Posted by Paul Verreth
Sun, 11 Feb 2007 13:09:00 GMT
EasyUbuntu is an easy to use (duh!) script that gives the Ubuntu user the most commonly requested apps, codecs, and tweaks that are not found in the base distribution – all with a few clicks of your mouse.
EasyUbuntu is so easy to use in fact, that even your grandma could be playing encrypted dvds, streaming Windows Media, and sporting the latest Nvidia or Ati drivers in minutes! And yes, EasyUbuntu is GPL.
EasyUbuntu works on (X/K)ubuntu and on all the three architectures (x86, AMD64 and PPC).

EasyUbuntu
Tags linux, ubuntu
Posted by Paul Verreth
Wed, 07 Feb 2007 08:48:00 GMT
Soms is het niet mogelijk om op niveau van het OS, de voorkeur browser in te stellen.
Hier is een methode om de voorkeurbrowser in te stellen voor Thunderbird, zodat die dan gebruikt zal worden bij het klikken op een link in een mailbericht.
In de prefs.js van Thunderbird, die zich bevind in een directory zoals $HOME/.mozilla-thunderbird/d5bnqttu.default kan je volgende lijn bijvoegen:
user_pref("network.protocol-handler.app.http", "firefox");
Opgelet: Enkel doen wanneer Thunderbird niet actief is, want anders wordt prefs.js toch terug overschreven.
Posted in tips, quick refs | Tags thunderbird
Posted by Paul Verreth
Tue, 06 Feb 2007 22:06:42 GMT
Voor het maken van een thumbnail met een bepaalde maximum grootte, maar met behoud van de verhoudingen:
convert een.png -thumbnail 500x500 een-thumb.png
Dit maakt van een png van 778×605 een thumbnail die past binnen een box van 500×500. De grootte van deze thumbnail is dan 500×389.
Posted in tips, quick refs
Posted by Paul Verreth
Mon, 05 Feb 2007 16:00:00 GMT
English version of this quickref
Kort overzicht van de meest nuttige show commando’s voor het opvragen van systeem informatie:
pager less;
show databases;
show tables;
show create database|table database|table;
show [full] processlist; (\G)
show table status;
show status;
show engine innodb status; (\G)
show privileges;
show grants;
show variables;
show warnings;
show error;
Opmerking:
Output voor de show table status:
Voor innodb: InnoDB free: ... geeft de vrije ruimte in de tablespace.
Posted in quick refs | Tags mysql
Posted by Paul Verreth
Mon, 05 Feb 2007 16:00:00 GMT
Nederlandse versie van dit artikel
Shortlist of the most useful show command’s:
pager less;
show databases;
show tables;
show create database|table database|table;
show [full] processlist; (\G)
show table status;
show status;
show engine innodb status; (\G)
show privileges;
show grants;
show variables;
show warnings;
show error;
Attention:
Output from show table status:
For the innodb engine: InnoDB free: ... : free space in the tablespace.
Posted in quick refs | Tags mysql