Plone, WordPress discussion

One week ago I migrated my personal site/blog from Plone to WordPress. As such I’ve decided to write a small comparison of the 2 systems. Let’s pun things in my context. A few years ago I’ve worked on a custom CMS implementation. The goal was to develop a product targeted for accesibility and simplicity of use. And, as it was the golden age it was decided to implement it from scratch using java....

October 20, 2008 · len

Another way to use Quartz in JBoss

I was explaining here how to create a Quartz job using the standard Quartz-ra service which comes bundled with JBoss. The method is rather limited, or I was not able to find the proper documentation on how to register new jobs on the fly. This is why in this post I will show how to access the quartz scheduler directly. Note: everything here applies to JBoss 4.2.2GA Remove the existing Quartz You need to remove the existing Quartz-ra and quartz....

October 13, 2008 · len

Len NG #3 – un pic de istorie

Va mai aduceti aminte cum arata primul site pe care l-ati avut? Noroc ca sunt pastrator si am un CVS plin de vechituri lucruri folositoare. Am gasit cateva versiuni de site-uri pe care le-am avut de-a lungul timpului: Acum, http://www.len.ro 2006 – 2008, http://www.len.ro 2004 – 2006, http://len.is-a-geek.org 2001, la home.ro 1999 Comments: Pitzi - Nov 2, 2008 interesant ca ai revenit la un logo asemanator cu cel din 1999 … nitzel mai derivat....

October 12, 2008 · len

Plone to WordPress migration

The task ahead was to migrate my old plone based blog/site to a wordpress site. Here was a short list of items to keep in mind: plone import content (normal content ~ 600 entries, special:ContentPanels) keep old links still valid including RSS !? handle relative links in posts handle google (sitemap, adwords, analytics) design (find theme, modify css, logo/photo, php part) others (the photos, favicon, 404 page, pre style for code snippets) Export data My first idea was to use the XML export of Plone but this seemed buggy in my install so I decided to create an XML export of my own....

October 12, 2008 · len

Ghicitoare

Ghicitoare: din 3000 vezi 200, chemi 14, vin 5, chemi 2, vine 1 si nu sta mai mult de 2 zile. Ce-i? Comments: aaaa - Oct 3, 2008 recrutare? vezi 200 din 3000 de cv-uri, 14 chemi la interviu… etc ce post si ce salariu? Ciupercutza - Oct 3, 2008 selectie de personal in Romania :D Imi pare rau ca nu gasesti ceea ce cauti :( Len - Oct 3, 2008 @aaaa, ciupercutza: DA!...

October 7, 2008 · len

Cand doarme blogosfera?

Idea Ma gandesc de ceva timp la niste grafice care sa arate orele de maxim si de minim din blogosfera romanesca repartizate pe ore ale saptamanii. Asa ca m-am apucat de “joaca” si iata ce-a iesit. Metoda e descrisa la sfarsit. Concluzii mi se pare cool ca luni cea mai mare activitate are loc in timpul orelor de servici restul concluziilor as vrea sa le trageti voi, ce ziceti? Metoda am pornit de la lista blogurilor din harta blogosferei am parsat paginile cautand feedurile rss in <link rel=”alternate” … am obtinut o lista de 683 9915 feeduri am parsat feedurile folosind feedparser care e si responsabil pentru toate conversiile de date (fieldul updated pe care se bazeaza graficele de mai sus) am stocat intr-o baza de date toate rezultatele (am obtinut 10260 144932 de entries valide) am generat un fisier oocalc pe baza de date grupand dupa zi a saptamanii si ora in care am generat charturile de mai sus Avertizare toate datele sunt oferite “AS IS” fara nici un fel de responsabilite pentru corectitudinea lor....

June 27, 2008 · len

Working with namespaces

First when you start working with XML in flex you are completely wondered about how easy the xpath like syntax is used. However some botlenecks might occur. One of them is using namespaces. Consider the following example: <?xml version="1.0" encoding="UTF-8"?><report version="3.2.15" xmlns="http://www.len.ro/report"> <item name="user">len</item></report> First approach is to do something like: var myXML:XML = XML(event.result);trace("XML: " + myXML.item.@name); you will see nothing and start wondering what you are doing wrong. Some time later you realize it’s namespace related and you try (according to flex doc) to do this:...

June 16, 2008 · len

Locale files

When using flex and java in parallel the localization mechanism might be clear. One aspect which is not clear is the encoding of the properties files: Flex locale files encoding: UTF-8 Java locale files encoding: ISO-8859-1 Convertor script: ..$ cat fixUTF.sh #!/bin/bash TMP=iconv.tmp if [ "!$2" == "!rev" ]; then iconv -t ISO_8859-1 -f UTF-8 -o $TMP $1else iconv -f ISO_8859-1 -t UTF-8 -o $TMP $1fimv $TMP $1

May 13, 2008 · len

Replace F-Spot

I can only say good things about the ease to fetch photos from a digital camera in ubuntu now but the F-Spot interface is completely dummy. I can’t understand any good reason to use it. In order to revert to the old gutsy photo import option here are the steps: apt-get install gthumb go to System -> Preferences -> Removable drives and media -> Cameras and remove the f-spot-import with...

May 10, 2008 · len

Logging

In the code just add trace(…) calls as you would add printf of System.out.println calls The plugin first you will need the debugger version of the plugin. In ubuntu the plugin can be found in /usr/lib/firefox/plugins which is usualy a link in /etc/alternatives which links to the actual plugin. root@black:/home/len# ls -l /usr/lib/firefox/plugins/total 8628lrwxrwxrwx 1 root root 37 2008-04-27 22:43 flashplugin-alternative.so -> /etc/alternatives/firefox-flashpluginroot@black:/home/len# ls -l /etc/alternatives/firefox-flashplugin lrwxrwxrwx 1 root root 99 2008-05-01 17:33 /etc/alternatives/firefox-flashplugin -> /phantom/linux/Adobe_Flex_Builder_Linux/Player/linux/install_flash_player_9_linux/libflashplayer....

May 8, 2008 · len