Adding bit.ly support to mu-feeder

My twitterfeed haven’t been working for  a while now. The last update was 2009-11-25, so I went out googling on ”twitterfeed replacement” and found mu-feeder. A small python script that publish your blog entrys (or whatever RSS feed that you might have) to twitter. It’s very sweet but i missed the bit.ly support.

But, since it’s open source, there’s nothing that you can’t do about it :) . I went out hunting and i found python-bitly. A library for the bit.ly API!

After some tweaking in the bitly file I got it working.

Step 1: Download mu-feeder and unpack it.
Step 2: Download the modified bitly file and put it in mu-feeder/shorteners (diff here)
Step 3:  Edit your mu-feeder settings.py. set URL_SHORTENING_SERVICE to ”bitly” and URL_SHORTENER_LOGIN plus URL_SHORTENER_PASSWORD to your bit.ly username and the API key that you have on bit.ly.

That’s it. Now it should work just fine :) .

Have a nice weekend.
Marcus

Spread the word
  • Facebook
  • Twitter

6 Spotify invites

Hi folks. I have 6  invites to spotify. As always, enter your email in the comment and I’ll give you a ”Spotify Free” invite.
First come, first served.

Oh and yeah. I will delete the mail info asap.

/marcus

Spread the word
  • Facebook
  • Twitter

2010 – Goals for the year

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

Spread the word
  • Facebook
  • Twitter

No.. I’m not dead

It’s been several weeks since I made a post in my blog.

The reason for me beeing inactive is mainly because I’ve had tons of stuff to do at work, and no real spare time, when it comes to my small projects at home.

8-10 weeks ago, me and my girlfriend Andjelka, started to work out, as we used to do before we met eachother.
Lets just say that we’ve had a little too much tv and potatoe chips, without working out the slightest bit. Which can be seen on my BMI / Weight over all.

So, we came to the conclusion that something needs to be done. And here we are :) . Eight weeks later, we’re working out 3-5 times a week. Which we both find great :)

See my progress on shapelink

Alright. Enough with the private life.
I’ve done a little research on web development. What is better, PHP or Python?

Most people would say PHP as it’s so easy to learn and that it’s so widely used. And say that python is better, since it’s a lot faster than PHP and have tons of complete modules, classes and frameworks.

I tried some of the python projects out. For instance, Django is a really nice python framework. Easy to learn, GREAT setup page and is done with the DRY method. Which keep you as productive as possible :) .

Another one, that doesn’t seem to be as famous is Tornado web server. Which is used by FriendFeed for example. This one seems to be the fastest one around, and it seems quite simple to take in.

The reason for me checking those things out is that I’ve a little projekt (it might not be considered ”little”) that needs a web server for handling data. I’ll get back to you as soon as I have any good information :) .

Yeah.. this was a sloppy blog post. I’m sorry. Cu

Spread the word
  • Facebook
  • Twitter

Say hello to Moblin

Today I downloaded moblin, as it were supposed to be good for netbooks. After I’ve testing it for awhile I can’t do anything but agree. It’s really that great!

It everything that a good os needs, and all the applications seem to be highy integrated in the main interface!

Try it out at: moblin.org!

Spread the word
  • Facebook
  • Twitter

Getting Drupal Modules using Python

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

Spread the word
  • Facebook
  • Twitter
februari 2010
m ti o to f l s
« Jan    
1234567
891011121314
15161718192021
22232425262728