Time moved backwards
Posted by micele - 30/01/08 at 06:01:41 pmHaving a look at certain log files, sometimes brings strange things forward. It seems that today especially one of my mail services has some interesting problems with the time wrap.
Jan 30 17:13:33: Time just moved backwards by 303 seconds. This might cause a lot of problems, so I’ll just kill myself now.
Well… maybe you got some problems with the black hole called NTP!?
Sometimes I really would like some politicians out there to have this kind of understanding.
- micele
KDE4 native on Mac OS X
Posted by Nils - 30/01/08 at 03:01:04 pm
For all the K people out there loving their shiny macbook* whatever, there’s KDE 4 available native for mac OS.
I didn’t try it myself, but it seems to be pretty easy to use, with the installer disk image, packaged by RangerRick (of opennms).
So grab the torrent, get the .dmg and have fun-time new K-Apps running native in your copy of mac OS.
- Nils
TrueCrypt for Mac OS X
Posted by micele - 29/01/08 at 01:01:15 amYeah - this is the first post about OS X. And I really didn’t know, that I would be supposed to write it *hint@nils*
So far the volume encryption software formerly known as TrueCrypt was only available for Linux and Windows. Now it becomes available for OS X as well.
I really appreciate having this nice piece of software implemented on the Mac OS as well. But let the authors tell on their own:
Ok guys, you accused us of cheating, scamming, phishing, terrorism and even stolen candies but at the end of it we’re OUT with the First OpenSource Platform for Volume Encryption on MacOs X (aka ‘Look, mom! Truecrypt on my Macbook!’).
Having the opportunity to not trust FileVault has never been so sweet…
It’s still an alpha release and maybe it’s not a good idea to already use it for productive operation. But hey - once there is a alpha release usually a beta release follows. And so on…
Even if this is supposed to be an alpha (may we say pre-beta?), considering the several hundreds of downloads and the complete lack of problem reporting please consider this to be a safe enough to use it, as long as you keep regular backups (but you ALWAYS do it, don’t you?).
So mac folks: get it, try it, report and help improving the interoperability of TrueCrypt volumes all over the world ![]()
For the conclusion I hand over again to the OSXCrypt guys:
Happy
PornSecrets again, now with even more confidence!
via aptgetupdate.de
- micele
Proof of Concept
Posted by micele - 28/01/08 at 07:01:05 pmIt’s gonna be neeerdy right here
If you don’t get the joke, this is not your blog… ![]()
acts_as_ferret on associations
Posted by Nils - 28/01/08 at 01:01:50 amJust before anyone else runs into this §$%&/, I’ll do a quick post:
Let’s assume you have a rails app, want to add full-text search via Jens’ great acts_as_ferret(ferret) plugin and you’d also like to have attributes from multiple models in ONE index. In this case you probably found the same resources on the net as I did:
- http://railsenvy.com/2007/2/19/ac….
- http://www.ruby-foru…
- http://blog.codefront.net/2006/12/04/adding-full-….
All of these are really great tutorials, with just a little flinch that I (!!) missed the whole day:
THEY all have one to one or one to many associations, but in any case do the cross indexation on the model which has exactly one associated row, with something like this:
class Book < ActiveRecord::Base
acts_as_ferret :additional_fields => [:author_first_name,
:author_surname]
belongs_to :author
###
def author_first_name
return author.first_name
end
###
def author_surname
return author.surname
end
end
I (!!) did the whole thing on the model which can have multiple associated items on it and (i know this may be a little embarassing) missed the following line, wondering how this could possibly work for ME in the first place, because of the magic-undefined-instance variable:
def job_title
return job.title
end
What you have to do is this:
def job_title
jobs.collect { |job| job.title }.join ' '
end
Note the plural in here - I’ll give you a sec - and now you’re probably laughing
So - as i said, just in case - I wanted to share this little secret with those people out there, beeing as rubber ducked as me.
cheers, Nils
Linux 2.6.24
Posted by bene - 26/01/08 at 10:01:16 pmAm Donnerstag Abend wurde Version 2.6.24 vom Linux Kernel veröffentlicht.
Spektakulär ist dieses Release nun wirklich nicht – Linus hat ihm noch nicht mal einen eigenen Namen spendiert. Dafür gibt es aber einige kleinere Änderungen unter der Haube.
Wer sich den Kernel selbst baut, wird vermutlich zunächst seine Konfigurationsdatei .config mit make oldconfig an die aktuelle Version anpassen.
Im Laufe der Zeit ist diese Datei einigen Änderungen unterzogen, die durch verschiedene Kernel Versionen und geänderte Hardware notwendig werden. Möchte man diese Änderungen aufzeichnen, bietet sich das Versionsverwaltungssystem Git an. Git wird nicht nur vom Kernel selbst verwendet, sondern wurde sogar extra für das verteilte Entwicklungsmodell von Linux entworfen.
Jeder Entwickler pflegt dabei seine vollkommen eigenständige Version und tauscht lediglich seine Änderungen über Email, SSH, git:// o.a. mit den anderen Entwicklern aus. Dem liegt eine sehr ausgereifte Möglichkeit zum Erstellen und Verschmelzen von verschiedenen Entwicklungszweigen zu Grunde (branching / merging). Genau diese Möglichkeit kann man sich auch für das Versionieren seiner .config Datei zu Nutze machen.
Nachdem man sich eine Kopie vom offiziellen Kernel erstellt hat…
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git /usr/src/linux-git
…muss zunächst in der Liste der ignorierten Dateien (.gitignore) die Zeile
!.config
eingefügt werden, damit man die sonst ignorierte .config Datei (mit einer sinnvollen Bezeichnung) aufnehmen kann:
git add .config
git commit -am "added .config for v2.6.24"
Um z.B. Änderungen aus dem offiziellen Kernel zu übernehmen (z.B. beim v2.6.25 Release), reicht bereits ein
git pull
aus. Auch zum Editieren, Hinzufügen, Vergleichen, Publizieren, Zurücksetzen, … bringt Git eine sehr umfangreiche Liste an Werkzeugen mit, die grundsätzlich den Möglichkeiten von CVS oder Subversion ähneln.
Wessen Interesse an Git nun geweckt wurde, der möge sich dieses nette Tutorial anschauen, um in die restlichen 99.9% der Git Features eingeführt zu werden.
Theme updates
Posted by Nils - 25/01/08 at 09:01:52 pmfirst geekery! *hooray*
also bevor man hier überhaupt ANFANGEN kann zu bloggen musste erstmal das Theme auf den aktuellsten hip-web-zwonull-mega-standard gebracht werden. Einmal mit Profis arbeiten ne?!
Falls jemand ‘mal von seinem Wordpress die Meldung bekommen sollte “Your theme is not widgetized” der folge einfach folgenden einfachen Anweisungen:
Eure sidebar sieht wahrscheinlich etwa so aus:
Um jetzt Wordpress’ großartige “Widget” Funktion einzubauen, fügt man folgendes einfach in die sidebar ein:
|| !dynamic_sidebar() ) ?>
und legt (falls nicht vorhanden) die datei functions.php im Theme-Verzeichnis an:
if ( function_exists('register_sidebar') )
register_sidebar();
?>
letztere teilt Wordpress mit, dass die sidebar Widgets unterstützt.
Von nun an, kann man unter “Presentation -> Widgets” einfach per drag and drop die sidebar konfigurieren, wie hier in unserem Fall zum Beispiel mit der wunderschönen, noch sehr leeren Tag Cloud.
cheers, Nils
Hello world!
Posted by admin - 24/01/08 at 12:01:45 amWillkommen - blog.foosion.org erblickt das Licht!
Powered by WordPress with GimpStyle Theme design by Horacio Bella. Get Entries and comments.
