Headerbild

Nachdem ich ja immer Probleme hatte, dass TwitterFeed den RSS-Feed unserer Feuerwehr-Einsätze nicht in meinen Twitter-Account überträgt, habe ich mich heute mal hingesetzt und ein kleines Ruby-Script gebaut, was das zuverlässiger für mich übernimmt.

Das Script holt sich einen beliebigen RSS-Feed, sortiert die Beiträge nach Datum und twittert alle Posts, die nach dem letzten Versendedatum erstellt wurden an den in der Konfiguration spezifizierten Twitter-Account.

Das Script habe ich unter die GPL gestellt. Somit könnt Ihr im Rahmen der GPL damit machen was Ihr wollt. Eventuell müsst Ihr für den Einsatz in eurem Feed noch Kleinigkeiten ändern. Momentan ist das Script speziell auf einen Feed entwickelt.

Rückmeldungen gerne als Kommentar hier.

Zum Script gehts hier: GitHub

Angeregt durch einen Artikel im “EDV – Ende der Vernunft“-Blog heute Abend, wo eine Möglichkeit vorgestellt wurde aus einer FIFO (named pipe) Nachrichten an einen Jabber-Account zu senden habe ich mir das Thema auch einmal angeschaut.

Was mich am dort vorgeschlagenen “XMPPLogger” in Perl allerdings ziemlich störte ist, dass man zur Installation auf einem Debian-System erstmal diverse Dateien patchen soll. Das ist für mich nicht wirklich etwas was man Useability nennen kann. Somit habe ich in ein paar Minuten ein Äquivalent zu dem dort vorgestellten Script eine kleine Ruby-Lösung gebaut.

Meine Ruby-Lösung hat als Abhängigkeit nur das “xmpp4r”-ruby-gem und läuft dann nach kurzer Konfiguration out of the box. So kann man dann, genau wie es im Artikel im EDV-Blog vorgestellt wurde, einfach etwas in die FIFO schreiben und bekommt es in den Jabber-Account gesendet.

Wie der Header meines Scripts schon sagt habe ich das ganze unter keine Lizenz gestellt, halte mich aber aus der Verantwortlichkeit raus. Macht damit was Ihr wollt und freut euch, wenn es funktioniert :)

Hier gehts zum Download: GitHub

Gerade habe ich wieder eins meiner Scripte für die Öffentlichkeit aufbereitet und zur Verfügung gestellt. Dabei handelt es sich diesmal um ein relativ kleines Script, welches von mir dazu genutzt wird um täglich einen Bericht zu erhalten, wer meinem Twitter-Account nicht mehr oder jetzt neu folgt bzw. wem ich plötzlich nicht mehr folge.

Dazu gibt es zwar auch mehrere Dienste, die genau das auch auswerten, allerdings gibt es dabei ja das Problem, dass wegen der fehlenden sicheren Authentifizierung das Passwort und der Username des Twitter-Accounts an einen fremden Dienst weiter gegeben werden müssen.

Das Problem lässt sich mit diesem Script für jeden vermeiden, der einen eigenen Server betreibt oder einen vertrauenswürdigen Bekannten mit einem Server hat. Dort kann mit ein paar kleinen Voraussetzungen das Script als Cronjob eingerichtet werden und Ihr bekommt eine Übersicht was sich bei euren Verfolgern und Verfolgten ändert.

Systemanforderungen:

  • Ruby >= 1.8.6 (andere könnten funktionieren, sind aber nicht getestet)
  • Ruby-Gem ’sequel’
  • Das entsprechende Ruby-Gem für die Datenbankverbindung (mysql / sqlite / etc.)

Ob und wie das Script unter Windows läuft kann ich nicht sagen, da ich es nur mit Ruby-Versionen auf OSX 10.5.6 und Gentoo Linux 2008.0 getestet habe.

Wer dazu Anmerkungen hat, darf sich gerne in den Kommentaren verewigen. Ich würde mich auch über einen kurzen Kommentar freuen, wenn Ihr das Script einsetzt.

Der Download erfolgt über GitHub: TwitterFollowerWatcher

Today I released version 0.7 of the iUseThis_Profiler. This new version includes an update checker which keeps you informed about the latest release of the software. So you don’t have to check the blog or some other pages for new versions. If there is a new version available you will see a tiny line of text at the top of the script output and can check the repository at GitHub to download it.
[note]The new version of the script is available using the already known link:

Script: GitHub
Changelog: GitHub[/note]

Okay there is one last release for today of this tool. In this new release 0.5 there is a bug fixed which was introduced in version 0.3. This bug caused the problem that you did not get any app found as a question. So some apps were added to your profile without asking you.

Also there are some feature improvements:

  • You don’t have to edit the script itself any longer to set your username and password. This option is removed by now. Instead the script will ask you for this information.
  • The script will not longer ask for already added applications whether you want to add it. Already added applications will be marked as not to add automatically.
  • The messages the script passes out while problems occur are now more user-friendly.[/note]

Thanks to Marcus for passing the feature requests to me.
[note]The new version of the script is available using the already known link:

Script: GitHub
Changelog: GitHub[/note]

Today I added support for preference panes to the iUseThis_Profiler. As a second point the progress is displayed while asking the user which applications to add to iUseThis so there is a feedback how many questions will follow.

Additional there is now a changelog for the iUseThis_Profiler available in the GitHub-Repository. The new version of the script is available using the already known link:

Script: GitHub
Changelog: GitHub

Thanks to Andrew Turner there is a new version of the iUseThis_Profiler available. The new version has an improvement to ask the user whether to send an application or not. After collecting the applications and widgets the user is asked to confirm on every application if he wants to send it to his profile. Also he can answer ‘a’ to send all applications and get rid of the ~200 following questions ;)

The script is available at the same place again: GitHub

Today my work at the evening was to create a little script which can be used to fill the iusethis.com profile with all the apps installed on an osx system. This script is called iUseThis_Profiler and available via Github at version 0.1.

As I said in the first paragraph it will work only for mac osx! Linux or Windows users will not be able to use it because their application structure is much different from the one on osx. To execute this script download it from Github and change the two variables in the head of the script. There you have to enter your iusethis.com-username and password for the script to work. If you have done this you can execute the script using “ruby <scriptname>”. It will output what it is currently doing so you can follow its actions.

Just a little warning before you use it: It will transmit every application you have installed if it is present at iusethis.com! So if you are using applications no one should know so please don’t use the script or if you use it: Don’t blame me for adding these applications to the service. After the upload you should take some minutes and click the osx-default applications and applications you don’t use but even don’t uninstall away from your profile.

Now have fun with the script :D

knuttr2@knut.me