Games I play

Games I play from time to time. Of course all of them are linux based. Crack-attack Very nice OpenGL tetris like game. Can be found in ubuntu repositories. Check the site. Be warned however that this game can be very, very addictive. apt-get install crack-attack World of Padman A game I heard recently about but captivated me right away. Based on Quake engine but the levels and weapons are all the fun....

August 30, 2007 · len

Pidgin friendly for yahoo users

I am installing feisty for friends trying to convince them to migrate to linux yet I have found some more or less stupid things which hold some of them (or make them revert from time to time) to windows. It’s not MS office or games which they miss but some features in yahoo messenger which I cannot replicate using pidgin (gaim). Here is a list of what has been qualified as great improvements from a yahoo user point of view....

August 21, 2007 · len

Partial static sitemap

As one can expect I am using a template to generate a google-sitemap for my site. However I am experiencing the problem that the photos are static (generated by JAlbum) and I wanted to separate the static and dynamic part. Dynamic part <?xml version="1.0" encoding="UTF-8"?><br></br><urlset xmlns="http://www.google.com/schemas/sitemap/0.84"<br></br> xmlns:tal="http://xml.zope.org/namespaces/tal"<br></br> xmlns:metal="http://xml.zope.org/namespaces/metal"<br></br> tal:define="results python:container.portal_catalog(<br></br> portal_type = ['News Item','Document', 'Topic'], <br></br> review_state=['published','visible'],<br></br> sort_on='modified' ,sort_order='reverse');<br></br> dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml');<br></br> dummy2 python:request.RESPONSE.setHeader('charset', 'UTF-8');"<br></br> tal:condition="results"<br></br> tal:on-error="nothing"><br></br> <url tal:repeat="result results"><br></br> <tal:block tal:define="resultObject result/getObject;"<br></br> tal:on-error="nothing"><br></br> <loc tal:content="resultObject/absolute_url">http://www....

August 20, 2007 · len

iptables rule for dyndns host

Goal Add a iptables rule for a dynamic changing IP with an associated dyndns host. How to make your computer register your changing IP #apt-get install inadyn Create a /etc/inadyn.conf #cat /etc/inadyn.conf --username ******** --password ******** --update_period 60000 --alias *****.dyndns.org --background Start the process: /usr/sbin/inadyn Make it start at reboot: #crontab -l @reboot /usr/sbin/inadyn First idea Use the hostname directly in iptables. There are 2 problems: the iptables manual says (quote): -s, --source [!...

August 6, 2007 · len

One more issue to go

The office space, the guys with ties and suits. They all stay around me, watch me, expect from me. It’s my job to install things, to make them work in a completely new environment in a predetermined time. It’s the last day of the install and I need to have everything working now to avoid being late. Driven to improve, to assure stability only generates new issues and when problems appear for a moment I loose hope, I feel everything is falling apart and that those guys are looking at me with heavy eyes....

July 25, 2007 · len

Screencasts with xvidcap

Creating screencasts should be an easy task. After some trial and error I realised it’s more a question of luck. Target Create a web based screencast using only linux tools. Install xvidcap Install required packages: apt-get install libglade2-dev libXmu-dev<br></br>apt-get install liba52-dev libdts-dev libfaac-dev libgsm1-dev liblame-dev libogg-dev libvorbis-dev libtheora-dev <br></br>libxvidcore4-dev libx264-dev libavcodec-dev libavformat-dev liboggflac++-dev liboggflac++2c2 liboggflac-dev <br></br>liboggflac3 libtheora-dev libtheora0 ffmpeg2theora<br></br> Compile and install xvidcap: tar xvfz xvidcap-1.1.5.tar.gz <br></br>cd xvidcap-1.1.5/<br></br>./configure <br></br>make<br></br>make install #will install in /usr/local/bin<br></br> Creating the screencast Using the gui it’s easy to create a screencast but you have several choices related to the format....

July 18, 2007 · len

5h migration to 2.5.3

I’ve hoped that migrating plone from 2.5.1 to 2.5.3 would be simple as a breeze but I ended up loosing 5h during my saturday. Initially. Initial configuration: plone 2.5.1 installed on zope 2.8.8 on gentoo. Production machine running 4 plone sites with various added products. Try 1. backup everything download the plone 2.5.3 tgz create a backup of all plone related products copy the plone products into the zope products directory do a portal_migration for all the plone sites go to the add/remove products and upgrade installed products when trying to upgrade from linguaplone 0....

July 15, 2007 · len

Upgrading php, ssmtp blocks qmail

The environment: 3 years old gentoo system The problem: ACCEPT_KEYWORDS=~x86 USE="bzip2 mysql postgres sqlite imap" emerge -pv php<br></br><br></br>Calculating dependencies... done!<br></br>[ebuild N ] net-mail/mailwrapper-0.2.1 7 kB <br></br>[ebuild N ] net-nds/openldap-2.3.36 USE="berkdb crypt gdbm ipv6 perl readline ssl tcpd -debug -kerberos -minimal -odbc -overlays -samba -sasl (-selinux) -slp -smbkrb5passwd" 3,710 kB <br></br>[ebuild N ] mail-mta/ssmtp-2.61-r2 USE="ipv6 mailwrapper ssl -md5sum" 53 kB <br></br>[ebuild U ] dev-lang/php-5.2.2-r1 [5.1.6-r6] USE="apache2 berkdb bzip2 cli crypt gdbm iconv imap ipv6 ldap* mysql ncurses nls pcre postgres readline reflection session snmp* spl sqlite ssl truetype unicode* xml zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter% -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -inifile -interbase -iodbc -java-external -json% -kerberos -ldap-sasl% -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pdo-external -pic -posix -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -soap -sockets -solid -spell* -suhosin% -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external% (-apache%) (-filepro%) (-hardenedphp%) (-hyperwave-api%) (-informix%) (-memlimit%) (-ming%) (-sasl%) (-vm-goto%) (-vm-switch%)" 7,151 kB <br></br>[blocks B ] mail-mta/ssmtp (is blocking mail-mta/qmail-1....

July 11, 2007 · len

Dojo calendar integration

I have been working to create a dojo based calendar which can show events in a way similar to google calendar. After searching the web with no results and starting working on my own I found by chance this wonderful tutorial on how to create a dojo calendar. This only shows how to load the calendar entries from an external XML format (trimmed down format similar to google calendar). <feed><br></br> <entry><br></br> <id>1</id><br></br> <title>energomontaj IEA 19225</title><br></br> <summary>When: 2007-07-11T10:00:00 60</summary><br></br> <content>Intalnire de prezentare energomontaj</content><br></br> <link href="https://devel....

July 11, 2007 · len

Creating a Quartz job

In new versions of JBoss (such the 4.0.5 which I am using) there is a quartz-ra.sar service which should allow me to define some a job with a cron like specification. Searching the forums and the jboss site I was able to put together quickly an example: import org.jboss.annotation.ejb.ResourceAdapter;import org.jboss.logging.Logger;import org.quartz.Job;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException; import javax.ejb.MessageDriven;import javax.ejb.ActivationConfigProperty; @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "cronTrigger", propertyValue = "0/2 * * * * ?") }) @ResourceAdapter("quartz-ra....

July 10, 2007 · len