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....

<span title='2007-08-20 20:40:15 +0000 UTC'>August 20, 2007</span>&nbsp;·&nbsp;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 [!...

<span title='2007-08-06 21:37:11 +0000 UTC'>August 6, 2007</span>&nbsp;·&nbsp;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....

<span title='2007-07-25 21:43:23 +0000 UTC'>July 25, 2007</span>&nbsp;·&nbsp;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....

<span title='2007-07-18 17:55:33 +0000 UTC'>July 18, 2007</span>&nbsp;·&nbsp;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....

<span title='2007-07-15 16:51:38 +0000 UTC'>July 15, 2007</span>&nbsp;·&nbsp;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....

<span title='2007-07-11 21:31:58 +0000 UTC'>July 11, 2007</span>&nbsp;·&nbsp;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....

<span title='2007-07-11 17:33:55 +0000 UTC'>July 11, 2007</span>&nbsp;·&nbsp;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....

<span title='2007-07-10 13:52:16 +0000 UTC'>July 10, 2007</span>&nbsp;·&nbsp;len

The eating habits

In the last few years I continuously battled to keep my weight under control. All the work, stress and deadlines pushed me out of balance and I had to fight it back each time. Inside I always known it’s a question of speed and volume but I could never formulate in such an applicable way. Not until a few weeks ago and I waited for so long until I would reach one of the otherwise impossible targets in order to try to write it down....

<span title='2007-07-05 10:43:56 +0000 UTC'>July 5, 2007</span>&nbsp;·&nbsp;len

Does Date() returns localtime?

Getting the correct date and time was always a problem but I could not expect it’s still a problem on today java and OS versions. Trying to deploy a JBoss on various Linux and JBoss I could not notice that on each system the date in the log was different from the localtime. Initially I thought it’s just a JBoss configuration problem but a simple example shows it’s not: import java....

<span title='2007-07-03 16:19:51 +0000 UTC'>July 3, 2007</span>&nbsp;·&nbsp;len