Friday, August 13, 2010

Kleine Siege

  • Freeware entdeckt, mit der man das Kontextmenu unter Windows schick anpassen kann (von einem Spanier: http://www.lopesoft.com)
  • Systemsteuerung > Software kann ich auch mit "appwiz.cpl" aufrufen, ich werde mir jetzt mehr davon merken, das Aufrufen der Systemsteuerung nervt einfach, vor allem wenn man nach Verwaltung weiter muss, um z.B. eine ODBC-Verbindung anzulegen, na, wie heißt das???? Na klar: odbccp32.cpl
  • Es geschafft, in einer Microsoft Access Datenbank verknüpfte Tabellen zu SQL Server ganz ohne ODBC Datasource anzulegen, mit ein wenig VBA!

Wednesday, August 11, 2010

Nichts nicht gleich false

Meine Güte, Konstruktionen wie diese gehen mir sowas von auf den Wecker:
select_options.insert(0, [blank_message, ""]) if include_none || (this.nil? && include_none != false)

include_none nicht gleich false!! Das ist ja schon dreimal verneint, oder wie? Ich mag nicht dreimal um die Ecke denken!

Tuesday, March 30, 2010

Fragen, Fragen, Fragen

Wieviele Fragen man sich beim Programmieren ständig stellen muss...
  • Ist die blöde Timeoutangabe bei einer Funktion in Sekunden oder Millisekunden?
    (Warum ist es letztendlich doch immer in Millisekunden? Und warum habe ich überhaupt noch die Hoffnung mal eine "normale" Angabe wie 30 (Sekunden) bei sowas machen zu können?)
  • Wie kann ich eine Textdatei schreiben mit VBA?
    (Wieso kann ich mir das in keiner Programmiersprache merken? Und wieso finde ich immer so schlecht ein geeignetes Beispiel?)
  • Und warum überschreibt der meine Datei nicht?
    (Und warum schaue ich eigentlich die falsche Datei an?)
  • Und wo ist der Pfad der geöffneten MS Access Datenbank?
    (Wieso ist das CurrentProject.Path? Wieso nicht CurrentDb.Path?)
....und so geht es ständig dahin.

Friday, September 26, 2008

Ganz ohne Excel Exceldateien erzeugen, öffnen, ändern, speichern...

Vorhandene Exceldatei bearbeiten? Hier - http://sheet.zoho.com/excelviewer - hochladen, im Browser editieren, mit "Export" wieder lokal speichern.

Neue Exceldatei? Leere Datei hier - http://sheet.zoho.com/scratch - öffnen, im Browser bearbeiten, mit "Export" abspeichern.

Für beides ist nicht mal ein Account erforderlich! Und dass die Spreadsheets bei Zoho auch VBA Makros (VBA? Ja, VBA!) und Pivot Tables können, habe ich das schon erwähnt? Ziemlich faszinierend, oder?

Thursday, September 11, 2008

Amsterdam

Christopher Alexander on Amsterdam:
"If we look at the evolution of traditional Amsterdam, we see how gradually the canals were formed, bridges were built to span (and thus enhance) the canals, edges were formed for the canals, houses were built one by one along the canals - all enhancing the canals - and slowly, over two or three hundred years, a wonderful living harmony was built.

And why did it work? Because, again, all or almost all the actions were structure-preserving, structure-enhancing. At every step, minute adaption was occurring. Everything fit perfectly into the whole.

What is remarkable is that the structure-preserving process which goes on in the large scale - as we see from the evolving plan of Amsterdam, the entire structure of sea, land, canals, and bridges - is accomplished by a parallel process which forms the streets and allows them to unfold. This, in turn, is followed, in parallel, by another process, in which the windows, doors, steps, buildings, flower boxes, and railings are unfolded too - all going forward in parallel - and leads, in the harmony which results, to the almost bursting joy we see in the skaters on the canal.

It is true, too, that the very largest and most imposing structures were built by the unfolding process. In the houses along the canals of Amsterdam, you can see the impact of time. Each board, window, step, was added in enough time for it to be fitted perfectly for use. Thus the whole governed the position and shape of each board as it was added. We can see and feel the underlying sequence of unfolding. Just to look at the resulting structure, we can feel the sequence of what it must have taken to make it.

Imagine a process in which, at each step, some new center is created (or intensified), and that this center is already present weakly in the previously existing wholeness. Under these conditions, what is done next always has a natural and comfortable relation to what existed before: it has a similar structure and never violates the previously existing structure."

Wednesday, July 09, 2008

Code Metrics

Hochinteressant! Netter Hinweis in Jeff Atwoods Blog Coding Horror auf spartanisches Programmieren:
Spartan programming is a programming discipline by which the programmer tries to minimize use of various elements of the programming language which may contribute to complexity. The main motivation of the discipline is that terser programs are easier to understand, and therefore tend to be more correct.
Genau! Gute Idee!

Tuesday, July 08, 2008

Ich will nichts recyceln, ich will löschen

Beim Löschen einer Page im Sharepoint Server bekomme ich eine Meldung, die mich etwas verwirrt und die ich so erstmal nicht recht deuten kann, und zwar ob ich die Seite "recyceln" möchte?! Wie, sollte das irgendetwas damit zu tun haben, dass ich die Seite gleich ganz löschen möchte (ohne sie in den Papierkorb zu tun)? Oder doch auch in den Papierkorb tun, um sie später wieder herstellen zu können? Quasi recyceln kann? Nein, nein, was mir scheinbar noch nie aufgefallen ist, dass der Papierkorb im Englischen eben Recycle Bin heißt, und der Vorgang etwas hinein zu tun dann eben scheinbar "to recycle". Was dann eigentlich löschen bedeutet. Beim Apple heißt das Ding übrigens ganz einfach und sinnvoll "Trash"!