July 2010
1 post
3 tags
Using utPLSQL with multiple schemas
I really like unit testing, and nowadays there is an helping framework for almost every environment and/or programming language. For PL/SQL this is utPLSQL, which consists of a bunch of packages that you need to put on your database and then you should be good to test your could. You should. I just spent some hours debugging my test code, so I want to share this with you, maybe I can save...
Jul 12th
May 2010
1 post
3 tags
Erroneous copyFrom() method in JCIFS/VFS
At the HSR (University of Applied Science Rapperswil) we are currently developing a software to synchronize files from the central fileserver to the students computers. This should help the students to get the latest slides for their lectures. The software is based on VFS (Virtual Filesystem) from the Apache Commons project. The file server is a classic Samba server that uses the CIFS protocol,...
May 30th
December 2009
5 posts
Guardian: How do I know China wrecked the... →
Dec 23rd
How to make your eye feel like it's closed, when... →
Dec 22nd
Dec 3rd
190 notes
Charles Lewinsky äussert sich in einem Essay über... →
Dec 3rd
1 tag
Dec 2nd
November 2009
7 posts
Nov 17th
1 tag
The Go Programming Language
Today I came across a new programming language called Go, developed by Google It is meant to be fast, but still garbage collected and type safe. They use pointers, but no pointer arithmetic. The questions remains: Do we really need another C++-like language? See Yourself:
Nov 11th
2 tags
5. Trivadis Java Lounge
Endlich schaffte ich es auch mal an die Trivadis Java Lounge, welche nun bereits zum fünften Mal stattfand. Diesmal wurde das Hallenstadion als Location ausgewählt, eingeladen waren Kunden und Partner von Trivadis. Es wurden folgende Präsentationen gezeigt: Spring Dynamic Modules - OSGi mit dem Spring Framework (Slides bei Slideshare) Google App Engine - Java in der Cloud Mehr Infos bald...
Nov 11th
1 tag
30 Google Wave Invites
Ich habe noch Google Wave Einladungen, falls jemand eine will kann er sich bei mir via Mail, Twitter, Kommentar oder persönlich melden. I got some Google Wave invites left, if you like one, get in contact with me via mail, twitter, comments or personally.
Nov 10th
1 tag
Extract .tar.gz to specific directory
I want to extract all files form a “.tar.gz” file to a specific directory (not the current). When you ask Google you quickly come up with the elegant solution: $ gzip -cd /some/dir/something.tar.gz | tar -xvf - -C /specific/directory Somehow my development machine doesn’t accept this, as I keep getting the error: File -C not present in the archive. File /specific/directory...
Nov 9th
1 tag
WWFM IV in Zürich
Am nächsten Wochenende (14. November 2009) ist wieder mal ein World-Wide-Flash-Mob (WWFM) der Geocache-Anhänger. Dieser Event steht ganz im Zeichen der kalten Jahreszeit und wird mit Wunderkerzen und Räbeliechtli bestritten. Der Clou ist etwas Verwirrung und Verwunderung zu stiften und natürlich sich mal wieder zu treffen. Solche Event-Caches sind immer eine wunderbare Gelegenheit sich über...
Nov 9th
1 tag
Kino: Der Fürsorger
Ich habe diese Woche wieder das Überraschungskino der Kitag besucht, wo jeweils Vorpremieren von Filmen gezeigt werden. Der Clou: vorher ist nicht bekannt, welcher Film das läuft. Das Prozedere ist ganz einfach: Zuerst werden 4-5 Trailer gezeigt, einer der Filme läuft danach in voller Länge. Diesmal wurde eine Schweizer Produktion gezeigt: Der Fürsorger. Der Film erzählt die Geschichte einen...
Nov 6th
October 2009
23 posts
3 tags
BarCamp Rapperswil
Das gestrige BarCamp in Rapperswil hat riesigen Spass gemacht. Als erstes will ich mich gleich bei Corsin als Organisator bedanken, war echt super. Das BarCamp fand in der Hochschule für Technik Rapperswil (HSR) statt, von dem her ein für mich vertrautes Terrain. Es war ein Treffen technisch interessierter Leute über die unterschiedlichsten Facetten der IT. Da gab es einen Speech von Urs...
Oct 25th
Frauen und Bahnübergänge
Einfache Frage: Was tun Sie wenn Sie zu Fuss auf einen Bahnübergang zulaufen und dieser zu blinken und läuten beginnt? Einfache Antwort Sie laufen weiter über den Bahnübergang, da Sie wissen, dass dieses Signal bedeutet, dass in Kürze (jedoch nicht in den nächsten 2 Sekunden) folgendes passiert: Die Schranken werden sich in Bewegung setzen und langsam den Weg über den Bahnübergang...
Oct 23rd
Ein kurzes Kaffeestück
Personen: Frau mit einem Becher Kaffee (FmK) Kioskverkäuferin (KV) Alte Dame mit ungetrübten Wahrheitssinn (Dame) Ort Ein Bus der Linie 70 von Wollishofen nach Leimbach, wartend an der Endhaltestelle in Wollishofen. 1. Akt Die Frau mit dem Becher Kaffee verlässt den Kiosk neben der Haltestelle und setzt sich in den vorderen Teil des Busses. Plötzlich stürzt die Kioskverkäuferin aus dem...
Oct 23rd
PostFinance SMS Service
Vor einigen Tagen bekam ich Post von PostFinance, meinem Kontoverwalter der Wahl. Darin wurde ihr neuer SMS Service angepriesen (mit einem etwas arg lustigen Comic) Die Idee an sich gefällt mir: Ich kann jederzeit von unterwegs Zahlungen tätigen, vor allem spannend wenn ich kein Bargeld da habe, und ich welches von einem Freund bekomme (“Gib mir doch 100.-, ich überweise es dir aufs...
Oct 23rd
PostFinance SMS Service
Vor einigen Tagen bekam ich Post von PostFinance, meinem Kontoverwalter der Wahl. Darin wurde ihr neuer SMS Service angepriesen (mit einem etwas arg lustigen Comic) Die Idee an sich gefällt mir: Ich kann jederzeit von unterwegs Zahlungen tätigen, vor allem spannend wenn ich kein Bargeld da habe, und ich welches von einem Freund bekomme (“Gib mir doch 100.-, ich überweise es dir aufs...
Oct 23rd
1 tag
Insert text at top of a file
If you want to insert text at the end of a file (“append”) you can simply use: $ echo "test" >> my_file.txt which then adds “test” on a new line at the end of the “my_file.txt”. In my case I had to insert text at top of a file. If you start to google for that you discover quite fancy solution like using vi or some sed magic. For me this was all too...
Oct 23rd
1 tag
Delete all symlink of a directory
It seems like a simple task, and it really is. But I always have to google for such simple stuff, that’s why I start to post things here, so I don’t have to look up the same things over and over again. To list all files of a directory you can use (sort by date) $ ls -lt total 35 lrwxrwxrwx 1 oracle dba 13 Jan 30 09:47 etc -> /etc/ drwxr-xr-x 2 oracle dba ...
Oct 23rd
Sie haben Post: Ihre Admin.
Erstmal: Mit “Admin” meine ich die Administration einer Firma, also meist das Team rund um den “Empfang”. Bekanntlich sind dies die “Tätschmeister”… Ich kenne zwar noch nicht viele Firmen, aber es scheint gängiger Kodex zu sein: 1. Grundsätzlich alle Mails nur im Subject zu schreiben (sonst liest sie eh niemand) 2. Möglichst viele Ausrufezeichen (!) zu...
Oct 23rd
Ausreden fürs Nicht-Trinken
Es soll vorkommen. In der Abteilung in der ich zur Zeit arbeite, ist es der Donnerstag. In der Cafeteria trifft man sich. Es wird eine Flasche Wein geöffnet und reihum kriegt jeder sein Glas gefüllt. Wenn man das nicht will, steht man blöd da. Hier Tipps für die passende Ausrede: Ich komme gerade von einem anderen Apéro Ich habe einen 0,0 Promille-Grenze für die Autoversicherung Ich trinke...
Oct 23rd
Zusammengesetzte Wörter
Zur Zeit ist wieder ein Deutsch-Groove in mir. Ich weiss nicht ob dies schubweise kommt - was am ehesten mit einer Krankheit zu vergleichen wäre - oder ob es gar ein Dauerzustand ist, der immer in mir schlummert und zu gegebenen Zeiten ausbricht. Dies wäre wohl eine … äähm … chronische Krankheit? Egal, jedenfalls fällt es mir wieder vermehrt auf, seitdem ich intensiver mit unseren...
Oct 23rd
Oct 23rd
2 tags
Using Pidgin with msn-pecan
Today when I was starting pidgin I could connect to ICQ, but when trying to connect to MSN Pidgin comes up with: unable to retrieve MSN address book So I was googeling a little bit and found a bug @ pidgin from yesterday. The problem is not pidgin, although the official MSN client and some others clients still work (e.g. meebo). There are several different versions of the MSN protocol, pidgin...
Oct 23rd
2 tags
Generate n rows from dual
I needed to generate exactly n rows and then this is very handy. select * from ( select level lvl from dual connect by level <= N ) Found at: http://awads.net/wp/2005/07/01/generating-n-rows-from-dual/
Oct 23rd
1 tag
dvd::rip and gentoo
dvd::rip (or dvdrip at the gentoo repository) is a very comfortable ripping software to bring your DVDs on your harddisk. When I emerged it and wanted to rip a dvd, I just got no result. the logfile showed no error in the status bar the text appeared Grab preview - title #3 Duration: 00:01 [Error] dvd::rip did nothing. The chapter has been ripped and the file existed on the filesystem,...
Oct 23rd
Wie schreibt man eine Rede
Die letzten 2 Wochen habe ich mich intensiv mit einer Rede die ich an einer Geburtstagsfeier halten musste/durfte. :D Dr. Ankowitsch nicht vergessen Ein guter Einstieg um die Leute abzuholen Wenn möglich etwas persönliches einbinden Ideen für eine Rede kommen einem meist nicht wenn man vor dem Computer sitzt, sondern wenn man unterwegs ist, im Restaurant, im Gespräch etc. WICHTIG: immer...
Oct 23rd
IPA - Client Backup Services
Da es mir zu mühsam ist, die Arbeit in HTML zu konvertieren (werde ich vielleicht noch nachholen), hier die Arbeit als PDF. PDF: backup_services.pdf [4MB] Da zur Arbeit auch eine Präsentation gehört, liefere ich diese natürlich auch mit (im neue Trivadis-Firmen-Look): PDF: backup_services_pp.pdf [1MB] Viel Spass beim lesen. PS: Ja ich weiss sie hat viele Rechtsschreibfehler, evtl. auch mal...
Oct 23rd
Im Bus
Frau: lacht.
Ein Mann der neben ihr sitzt und sie offenbar kennt sagt: "Wie kannst du lachen? Deine Schwestern sind tot."
Stille
Oct 23rd
2 tags
Doom for Sysadmins
Das Projekt Doom for Sysadmins lässt Kinderträume wahr werden: Wenn man es startet findet man sich in der Doom-Welt (ja, der Shooter Doom) und kann alle Prozesse die auf dem System laufen “killen”, bzw. durch verwunden “renicen”. Ach das Admin-Leben ist schön, den ganzen Tag schiessen und Räume voller Monster überprüfen. Sobalds zu viele sind: losballern!
Oct 23rd
1 tag
Find old Files and their size
The first part is clear, find the old files like that: find . -type f -mtime +365 -print This gets all Files (-type f, -type d for directories) in the current directory (.) older than a year (-mtime +365) and prints them on stdout (-print) to delet them, just use: find . -type f -mtime +365 -exec rm {} \; But if you want to use them further, a pipe will help you. For any reasons (I...
Oct 23rd
5 tags
ODBC Hell
It is so easy: I have a testing environement where an OCI8-Driver is installed. Therefore I can use the OCI-Function if PHP to Bind Variables, get return values and everything is just fine. Then on the production I needed to switch to ODBC, and thought: Easy just write this stuff for ODBC and you’re done. Unfortunately the driver does simply not support return values of functions. The...
Oct 21st
2 tags
Brainfucked Logo
++++++++++[>++++++++++<-]>——-<++++++++++[»+++++++++++++«-] »———«+++++[»>++++++++++«<-]»>—-«<++++++++++[»»+++««-] »»++>+++++++++++++««<++++[»»»++++++++++«««-]»»»++++«.» ...
Oct 21st
Ein Tisch ist ein Tisch
Nach einem Text vom Peter Bichsel, im Stile von “Kunst aufräumen” ordne ich mal Bichsels Text neu. Orginal Text: http://www.yolanthe.de/stories/bichsel01.htm Nomen Mann Menschen Bild Bett Wecker Stuhl Teppich Tisch Bett Zeitung Stuhl Spiegel Fotoalbum Wecker Zeitung Schrank Schrank Teppich Spiegel Fotoalbum Fuss Mann Morgen Fuss Mann Morgen ...
Oct 8th
Papier - Zum Tragen kein Problem
Wenn ich eine Tüte für mein Brötchen bekomme finde ich es immer angenehm, dass die auch halten. Eine normale Tüte, aber… DAS ist wichtig! In dem Sinne: trägt euch sorge, denn es ist gut.
Oct 8th
August 2007
1 post
2 tags
MS Access: Let lines in Reports grow with it's...
The problem is the following: You create a report with MS Access with a text field. To display the whole text, you have to set the “CanGrow” property to “Yes” (on the section and on the text-field). When running the report that has vertical lines as column seperator you have an ungly effect: The line keeps its size, as this has been fixed in the design view. One might...
Aug 24th
June 2007
1 post
1 tag
MS Access and not updatable Recordsets
The whole thing is just plain stupid: Someone in the department I work in has created an MS Access Database to track our customers. Above this application are some forms to insert the data. Now we already have much of the data in various excel sheets etc. So my task was to write a function (or method or sub or whatever you call it in your world) to get some values from an excel sheet and insert it...
Jun 29th
May 2007
1 post
3 tags
Convert fixed length column to Excel
I had to convert the output from sqlplus to an excel sheet. The problem was, that I had no influence on the creation, so I could spool the file directly to excel. All I got were spool files like that: CLASS_ID SUPER_CLASS_ID COUNT(*) ============== ============== ========== 128 8765 18 128 8765 131 128 8765 7 ...
May 14th
December 2006
3 posts
1 tag
Information about Oracle Directories
I know what I write is quite newbieish, but I needed information about a directory I’ve created, means which path it’s pointing to: select * from all_directories dir; There simply is no user_directories, and with all_objects I didn’t get what I wanted.
Dec 26th
2 tags
Excel to CSV with Python
I wanted to handle a simple task: convert a bunch of XSLs to CSVs. Well I wrote a small Script in VBScript and it worked. Then I needed to change the List separator, so I did that in my System settings, and then my Script didn’t work anymore, because it just ignored my changed settings. I googled a lot and didn’t find the solution (only people with the same problem). It seems that...
Dec 26th
2 tags
SQL Start-Script generator
Sometimes it’s so simple: import glob files = glob.glob('*.*'); f=open('start_script.sql', 'w') f.write('PROMPT This is an automatic generated start script\n'); f.write('PROMPT\n'); f.write('SPOOL start_script.LOG\n\n'); for filename in files: if filename == 'start_script.sql': continue f.write('PROMPT Starting script ' + filename + '\n'); f.write('@@' + filename +...
Dec 11th
November 2006
2 posts
2 tags
Delete duplicate records with Orcle
Don’t ask me why I needed to to that, but I had a lot (about 14 Mio.) duplicate records in a table. DELETE FROM our_table WHERE rowid not in (SELECT MIN(rowid) FROM our_table GROUP BY column1, column2, column3... ; helped me out. (thanks to www.devx.com) Next time I write my queries to filter those out before inserting them…
Nov 6th
1 tag
PISA-Test
Danke Baba fürs schicken des Artikels ;) War so im Tagi (weiss leider nicht genau von welchem Tag):
Nov 1st
October 2006
1 post
2 tags
Need to generate a GUID with Oracle?
I just searched the web for this simple task, and it was difficult to find. Maybe anyone working a bit with Oracle knows this, but it helped me, maybe I can help someone out there too, so here it is: select sys_guid() from dual This generates a 32 character GUID (fits best in a RAW(16) field).
Oct 17th
September 2006
1 post
2 tags
Images Titles for Firefox users
The W3C Standard describes, that to a HTML-Images tag () there is a must-attribute “alt” that describes the alternate text if the images can not be displayed. MS Internet Explorer also uses this attribute to show a so called tooltip, this is a text that is showed when you move your mouse over an element (in this case over the image). Other browsers use the title-attribute instead,...
Sep 24th
May 2006
1 post
2 tags
Badminton - neue Regeln
Endlich mal wieder was neues: Neue Regeln. Das wichstigste: Ein spiel geht auf 21 Jeder Ballwechsel (*Rally) punktet, also auch wenn man keinen Anschlag hat Im Doppel gibt es keinen 2. Aufschlag mehr, der Punktestand entscheidet von wo man aufschlägt Im Doppel wird das Feld nur gewechselt, wenn man selbst einen Punkt gemacht hat Aufschlagrecht hat die Seite, welche den letzen Punkte...
May 28th
January 2006
1 post
Psychologie vs. Psychiatrie
Wie das so ist, wenn man gemütlich zusammen sitzt, vorzugsweise mit gutem Essen, spricht man über Gott und die Welt und plötzlich: Was ist eigentlich der Unterschied zwischen einem Psychologen und einem Psychiater? Solche Dinge brennen auf der Zunge, man gibt sich der Unwissenheit zu erkennen, hat aber gute Aussichten nach dem Gespräch mehr Wissen zu haben, denn schon das Fernsehen hat uns...
Jan 23rd
October 2005
1 post
CSV seperator character
In my particular case I got an excel sheet from the customer to import in a DB. The idea is to use a CSV as the base for an Oracle external table and then import the data in the real table with a “insert into select”. When I loaded the excel sheet and saved it as a CSV, the semicolon (“;”) was used as a seperator. I therefore created my external table and worked with the...
Oct 24th