ingen slogan
Inlägg taggade drupal
2010 – Goals for the year
1 Jan 10
I didn’t make any new year promise to myself. Mostly because there’s nothing more broken than a promise made when welcoming the new year. So, instead of making promises, I’ve made goals that i’ll try to complete and deliver.
#1 – My first iPhone application released
A couple of months ago I beta tested MonoTouch, the .NET framework for the iPhone. It’s a great tool for all of us who doesn’t want to learn Objective-C. After some testing I started to do some actual work for an application. It still needs more work to be functional but at least I have something to go on. I all goes well this will be done somewhat in April.
#2 – Payson Drupal Module
This one is a bit disturbing and embarrasing. For a long time I’ve wanted to make this module for Drupal where you, as a user have the possibility to sponsor sites by paying a small amount of cash using paysons money transaction system. I like Payson, and it really deserves more focus
. Hopefulle this will come handy to Drupal site administrators. Hopefully this will can be expected in fall of 2010.
#3 – Community Site based on Django
The Swedish Community has for a long time lacked a good community web site for tracking one of the finest things with open source – The great open project that makes whatever disitribution worthy of. It can be all from background search engines like beagle to music players like Listen. All small components that makes the linux experience that great! This should be expected in late 2010.
That’s the three prioritized goals that I have as it is right now. I’ll end this post now to get started
.
See you!
/Marcus
Getting Drupal Modules using Python
23 Okt 09
A good friend of mine wrote yesterday a small python script that allows the user to search and download Drupal modules directly via the official ftp.
This was made since it is quite boring/irritating to first browse through the module page on drupal.org and then copy the link to a shell where you download the module you want on your web server.
Instead, Jonas (that’s my friends name, btw) wrote this program that directly scans through the drupal module directory on the ftp and returns the output in a shell where the user just enter the choice that he/she wants. Example:
jonas@thinkpad61:~$ ./idm.py hello Found 32436 files! [0] hellomobile-5.x-1.0.tar.gz [1] hellomobile-5.x-1.1.tar.gz [2] hellomobile-5.x-1.x-dev.tar.gz [3] hellotxt-6.x-1.x-dev.tar.gz Which module do you want to download? 1 Ok, lets get hellomobile-5.x-1.1.tar.gz jonas@thinkpad61:~$ ls -l hellomobile-5.x-1.1.tar.gz -rw-r--r-- 1 jonas jonas 824473 2009-10-22 22:34 hellomobile-5.x-1.1.tar.gz
I believe that this is quite usefull and interesting. But, as Jonas mentions in this post. It does not contain the functions that you might need, such as: version filter and dev filter. Meaning that you don’t want to see results for drupal 5 if you are running six. Nor do you want to use developer packages when you are in a critical installation.
I had some time so I made some improvements on the original:
tomburk@linux-e9bm:~> python idm-mf.py --help Usage: idm-mf.py [options] Options: -h, --help show this help message and exit -f version, --filter=version Filter the results in version numbers. -d, --dev Show developer packages
This allows the user to filter between the version, of course ”all” can be applied, if one wants to show all the results. Plus, It’s possible to toggle between showing the developer packages or not.
Final result:
tomburk@linux-e9bm:~> python idm-mf.py -f 5 hello Found a total of 32451 files! Files containing "hello" Based on filter: 5 Not showing developer packages [0] hellomobile-5.x-1.0.tar.gz [1] hellomobile-5.x-1.1.tar.gz Which module do you want to download? 1 Ok, lets get hellomobile-5.x-1.1.tar.gz tomburk@linux-e9bm:~> ls -s hellomobile-5.x-1.1.tar.gz 812 hellomobile-5.x-1.1.tar.gz
The file is available here: http://marcusfollrud.net/wp-content/idm-mf.py
Or at github: http://github.com/marcusfollrud/idm
See you!
A small update
2009-10-24 – Added support for multiple file download, Available on both github and in wp-content