skip to main content

kiesler.at

Random Guide to whatever
updated by rck, 2004-10-10

Another case of trying out the swallow hack 0.2. This time, I'm shuffling some sections around. Enjoy!

0 < n < 100

Im sogenannten NCSA extended/combined log format finden sich folgende Informationen:


  1. %h...Remote host
  2. %l...Remote logname (from identd, if supplied)
  3. %u...Remote user (from auth, may be bogus if returnstatus (%s) is 401)
  4. %t...Time, in common log format time format (standard english format)
  5. %r...First line of request
  6. %>s...Status of the last request (%s would be the original request, which could be "follow" or what ever)
  7. %\{Referer\}i...Inserts the Referer-String from the user's browser (without the backslashes)
  8. %\{User-agent\}i...Inserts the User's Browsername (without the backslashes)

...somit so ziemlich alles, was von Interesse sein könnte.


Folgender Eintrag in die httpd.conf aktiviert dieses Format:

     # CustomLog with format nickname
LogFormat "%h %l %u %t \"%r\" %>s %b \"%\{Referer\}i\" \"%i\{User-agent\}\"" ncsa
CustomLog logs/access_log ncsa

100 < n < 200

Fall A. Sie denken sich eine tolle Programmbibliothek aus. Eine Klasse, oder gleich eine ganze Klassenbibliothek, welche sämtliche Konfigurationsarbeiten wie "Parameter einlesen", "neue Parameter schreiben", und so weiter erledigt. Sehr benutzerfreundlich, ganz einfach zu bedienen. Nur sie erzählen niemandem davon. Fall B. Kollege X hat ein Problem. Schon seit Stunden recherchiert er im Internet, wie man Dialogelemente gruppieren könnte. Kollege Y hätte die Lösung, weis aber natürlich nicht, dass Kollege X ein Problem hat. Weil: Er hat keine Plattform, auf der er dieses Problem schildern könnte. Fall C. Manager Heinz Wichtig bekommt einen Projektstatus Bericht. Es wären irrsinnig wichtige Informationen darin. Beispielsweise ist ein Server eingegangen und die Lieferung der Ersatzteile nimmt zwei Monate in Anspruch, wodurch natürlich sämtliche Deadlines platzen. Dummerweise hat der Projektleiter mit der Information drei Wochen gewartet, weil der Projektstatusbericht nur monatlich zu verfassen ist.

200 < n < 300

125         public static String toFixed(double d) {
126                 DecimalFormat decimalformat = new DecimalFormat("#0.000");
127                 DecimalFormatSymbols decimalformatsymbols =
                          decimalformat.getDecimalFormatSymbols();

128                 decimalformatsymbols.setDecimalSeparator('.');
129                 decimalformat.setDecimalFormatSymbols(decimalformatsymbols);
130                 return decimalformat.format(d);
131         }

here you can see some nonsense article. in case it makes sense, it's all fault of Swallow Hack 0.5 for Article Manager!



RSSComments - Make a comment
The comments are owned by the poster. We are not responsible for its content.
RSSAll Articles
2008, 2007, 2006, 2005, 2004

What's Related

Article Manager

Hacks

Latest Updates

AdministrativeTexts
updated by freddiemac1993, 2013-06-14
wiki

Re: adventures
created by brittdavis10, 2012-02-23 (1 rply, 3 views)
thread

Re: how to run phpwebsite...
created by alexander, 2011-08-25 (2 rpls, 3607 views)
thread

Re: Forum tags
created by HaroldFaragher, 2011-08-22 (3 rpls, 8488 views)
thread


Zu den KO2100 Foren