In the world of build tools this is big news : Steve Ebersole announced that he wanted to migrate from Maven to Gradle for the Hibernate project. A list of reasons is given for the switch (and I utterly understand what they mean).
Well, it is a very good incentive to try Gradle (and really Groovy + Ivy is a very enticing combination).
Affichage des articles dont le libellé est groovy. Afficher tous les articles
Affichage des articles dont le libellé est groovy. Afficher tous les articles
lundi 12 juillet 2010
mercredi 13 mai 2009
OPML import for Rhythmbox, kind of
Update : it seems that Rhythmbox now has support for OPML import, you may type the path to the OPML import in the new feed dialog box. I didn't try it, though
I've just installed the brand new Ubuntu 9.04 to replace my good old 6.06, and now I must find a way to import all my podcast feeds exported in opml format from Juice, to Rhythmbox, the official Ubuntu music manager.
However, it seems that Rhythmbox does not manage opml imports. I don't feel like copying manually 70 rss feeds...
An opportunity to learn the XML library of Groovy !
Save this groovy script as opml2rhythmbox.groovy
Then if it is not already done, install Groovy
Execute the script on your exported opml file
Now, you must manually copy the content of the generated generated.xml file, into the ~/local/share/rhythmbox/rhythmdb.xml db file of Rhythmbox (make a backup of the rhythmdb.xml file before !)
The generated file content must be inserted after the rhythmdb opening tag at the begining of the rhythmdb.xml file
Then start Rhythmbox and run "Update all Feeds"
You're done !
I've just installed the brand new Ubuntu 9.04 to replace my good old 6.06, and now I must find a way to import all my podcast feeds exported in opml format from Juice, to Rhythmbox, the official Ubuntu music manager.
However, it seems that Rhythmbox does not manage opml imports. I don't feel like copying manually 70 rss feeds...
An opportunity to learn the XML library of Groovy !
Save this groovy script as opml2rhythmbox.groovy
Then if it is not already done, install Groovy
Execute the script on your exported opml file
Now, you must manually copy the content of the generated generated.xml file, into the ~/local/share/rhythmbox/rhythmdb.xml db file of Rhythmbox (make a backup of the rhythmdb.xml file before !)
The generated file content must be inserted after the rhythmdb opening tag at the begining of the rhythmdb.xml file
Then start Rhythmbox and run "Update all Feeds"
You're done !
mardi 14 octobre 2008
Sanitize dates in podcast title with groovy + jid3lib
When I sort the podcasts I download by their ID3 titles, I want to see an older episode sorted after a newer episode.
Here is a groovy script that modifies the MP3 title of an MP3 file passed as first parameter of the script, and replaces any dd.mm.20yy date by a 20yy.mm.dd date. It also moves the date at the beginning of the title.
You need the Java ID3 Tag Library (jid3lib) and an embeddable Groovy (groovy-all.jar)
Now in order to run the script after each download, your podcast receiver must be able to run a custom command after each download. You can use Juice.
So here is a quick and dirty script sanitize_dates.groovy :
In the preferences of Juice you can use Run this command after each download with for exemple :
Here is a groovy script that modifies the MP3 title of an MP3 file passed as first parameter of the script, and replaces any dd.mm.20yy date by a 20yy.mm.dd date. It also moves the date at the beginning of the title.
You need the Java ID3 Tag Library (jid3lib) and an embeddable Groovy (groovy-all.jar)
Now in order to run the script after each download, your podcast receiver must be able to run a custom command after each download. You can use Juice.
So here is a quick and dirty script sanitize_dates.groovy :
In the preferences of Juice you can use Run this command after each download with for exemple :
Inscription à :
Articles (Atom)