The Unreasonable Man

Januar 10, 2010 von chr15t0ph

The reasonable man adapts himself to the world;
the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
–George Bernard Shaw

Optimistic Foolishness

Januar 10, 2010 von chr15t0ph

The evidence so far suggests that that would be optimistic to the point of foolishness.
– Albus Dumbledore

Battlefield Mind

Januar 10, 2010 von chr15t0ph

A weapon is a device for making your enemy change his mind. The mind is the first and final battleground, the stuff in between is just noise.
– L.M. Bujold

Life

Dezember 19, 2009 von chr15t0ph

Life is like a taxi. The meter just keeps a-ticking whether you are getting somewhere or just standing still. — Lou Erickso

Excel für Fortgeschrittene

Dezember 15, 2009 von chr15t0ph

Hab lange gesucht um eine Excel-Methode zu finden, mit der man den Median auf Basis eines Histogramms (i.S.v. klassierte Häufigkeitsverteilung) berechnen kann, ohne (!) eine Urliste zu besitzen.

Die Lösung ist durch “Janni 07″ beschrieben unter:
http://www.office-loesung.de/ftopic261471_0_0_asc.php

Meine Anwendung des Mechanismus:
Notenspiegel (= Histogramm über die Häufigkeiten der Notenstufen 1,0 bis 5,0 je 0,3-Stufe)
Ergo: Nur per Notenspiegel den Noten-Median ermitteln!

– Ausschnitt zur Bewahrung:

“{=(INDEX(B$1:F$1;MIN(WENN(SUMME(B2:F2)/2<=TEILERGEBNIS(9;BEREICH.VERSCHIEBEN(B2;;;;ZEILE($1:$5)));ZEILE($1:$5))))+INDEX(B$1:F$1;MIN(WENN(SUMME(B2:F2)/2<TEILERGEBNIS(9;BEREICH.VERSCHIEBEN(B2;;;;ZEILE($1:$5)));ZEILE($1:$5)))))/2}”

  1. Enthält Matrixformel: Umrandende { } nicht miteingeben, sondern Formel mit STRG+SHIFT+RETURN abschließen!
  2. In B$1:F$1 sind die klassierenden Faktoren gespeichert.
  3. In B2:F2 sind die Häufigkeiten erfasst.
  4. Der Formelbestandteil “ZEILE($1:$5)” kann beliebig auf Klassierungen gedehnt werden. Z.B. “ZEILE($1:$13)” bei meinen 13 Notenstufen von 1,0 bis 5,0.
  5. Der Formelbestandteil “SUMME(B2:F2)/2″ ist die Postion i.S.v. 50%-Zentralwert. Der Teiler kann beliebig durch eine Multiplikator ersetzt werden, der einer beliebigen anderen Percentile entspricht, z.B. “SUMME(B2:F2)*XY%”

Übertragen auf die Notenspiegel-Anwendung entsteht daraus also:

“{=(INDEX(B$1:N$1;MIN(WENN(SUMME(B2:N2)*50%<=TEILERGEBNIS(9;BEREICH.VERSCHIEBEN(B2;;;;ZEILE($1:$13)));ZEILE($1:$13))))+INDEX(B$1:N$1;MIN(WENN(SUMME(B2:N2)*50%<TEILERGEBNIS(9;BEREICH.VERSCHIEBEN(B2;;;;ZEILE($1:$13)));ZEILE($1:$13)))))/2}”

Nebenbei: Der Mittelwert berechnet sich bei einem solchen Notenspiegel per Excel-Funktion “Summenprodukt”:

“=SUMMENPRODUKT(B2:N2;B$1:N$1)/SUMME(B2:N2)”

How To: Batch Printing PDF Files

September 30, 2009 von chr15t0ph

http://support.adobe.com/devsup/devsup.nsf/docs/51412.htm

The DDE command line parameters for Acrobat and Reader are as follows. These are unsupported but have worked for some developers.

AcroRd32.exe /p filename – executes the Reader and prints a file
AcroRd32.exe /t path printername drivername portname – Initiates

Acrobat Reader, prints a file while suppressing the Acrobat print dialog box, then terminates Reader.

The four parameters of the /t option evaluate to path,printername, drivername, and portname (all strings).
printername – The name of your printer.
drivername – Your printer driver’s name. Whatever appears in the Driver Used box when you view your printer’s properties.
portname – The printer’s port. portname cannot contain any “/” characters; if it does, output is routed to the default port for that printer.

Note: If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the command lines.

History of audio solutions

September 20, 2009 von chr15t0ph

History of audio solutions at the GNU/Linux/*BSD-Session

  1. LPD (basic)
  2. LPD-Jukebox
  3. CUPS-based solution … not relevant!
  4. MPD (basic)
  5. MPD (session-advanced)
    • Keywords: ftp, index, auto-playlist inference
    • Experts: Schorsch (+Tobias L.)
    • URL: ?

Solutions to be tried in the future:

  1. A very long audio cable
  2. Dedicated central Jukebox-PC wo/remoteness
  3. UPnP

lpd configuration at audio server

September 20, 2009 von chr15t0ph

LPD configuration at audio server — pitfalls:

  1. LPD needs “+” entry in /etc/hosts.lpd to allow printing from any remote
  2. to accept remote host rhost LPD needs working DNS entries for reverse AND forward dnslookup (why the forward one? don’t know! But they both should match each other …)

HowTo print MP3 files from Windows to a LPD network queue

September 18, 2009 von chr15t0ph

This is for printing MP3 from Windows to a LPD network queue.
If you don’t know why you should do this … don’t ask.

Download and install a PostScript driver (for pass-through):
“Adobe Universal PostScript Windows Driver Installer” (e.g. v1.0.6)
http://www.adobe.com/support/downloads/product.jsp?product=44&platform=Windows

Install windows component
“File- and Printservices for the Network” » “Print services for Unix”

Set up LPR printer:
“Local Printer …” » “New Port” with port type: “LPR Port”
Now provide the LPD server name and the queue name.
(e.g. the LPD is on a server named “audio”, and the queue is named “lp” => printer port “audio:lp”)
At this moment simply use Provider=”Standard” with Printer=”Generic / Text Only”, even if this is NOT the final configuration.
(As printer name, I will now use “audiocentral”, representing the remote “audio:lp” queue.)

Now open the printer properties (e.g. “audiocentral”) use the tab “extended” (german “erweitert”) and set the driver to “AdobePSGenericPostScriptPrinter”.
Press “Apply”.
Then change the setting in the same tab to not use a spooler; this is not necessary with the remote queue.
Then press “Default values…” (german “Standardwerte…”).
And in the new dialogue the “Extended…” button.
Swing open the “PostScript options” in the tree.
AND FINALLY: set the PostScript output option to “Archive format” (german “Format archivieren”).

The original printer instance form the Adobe Installation can now be deleted. The required thing from Adobe was only the driver component, to use it with the LPR printer configuration.

At this point you have a printer that this will do a pass-through and without nonsense interpretation, pure binary delivery.
But now: how to print the MP3? If it would be a local printer one could simply copy the file with the /b option to LPTx. This works not with the LPR printer.
Yet there is a nice solustion…

Download and install “PrintFile” program
http://www.lerup.com/printfile/

Set the PrintFile Printer to the LPR printer (“audiocentral”).
Deactivate the “Show printer selection dialog” option.

Done.
You can drag’n'drop the MP3s to the PrintFile icon, which will deliver them to the lpd queue.

TeXnicCenter and Sumatra PDF viewer

September 15, 2009 von chr15t0ph

TeXnicCenter PDF viewer settings

September 15, 2009 von chr15t0ph

The TeXnicCenter settings for “LaTeX => PDF” in tab “Viewer” using DDE and Acrobat Reader are as follows:

View project’s output:
command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
server: acroview
topic: control

Forward search:
command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
server: acroview
topic: control

Close document before running (La)TeX:
command: [DocClose("%bm.pdf")]
server: acroview
topic: control

There also exists very good information about the topic under en.allexperts.com/e/t/te/texniccenter.htm

Quote: “If you want Acrobat to reopen the file after a recompilation at the exact same location as it was just before, and if you have the full version of Acrobat (the following is not supported by the free Acrobat Reader!) set the “view project’s output” and “forward search” DDE command to: command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")][MenuitemExecute("GoBack")]“

java.lang.IllegalStateException: Unable to acquire application service ==> arg “-initialize”

Juni 9, 2009 von chr15t0ph

If you get an error like this:

!ENTRY org.eclipse.osgi 4 0 2009-06-09 23:06:24.578
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

While you are trying to run an headless Eclipse like this:

<java classname=”org.eclipse.equinox.launcher.Main” classpath=”${proj.root}/${internal.targetplatforms}/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar” fork=”true” dir=”.” failonerror=”yes” timeout=”7200000″ outputproperty=”__era.eclipse.output” logerror=”true”>
<jvmarg line=”@{jvmarg}” />
<arg line=”-data @{workspace}” />
<arg line=”-configuration @{configuration}” />
<arg line=”-install ${proj.root}/${internal.targetplatforms}/” />
<arg line=”-application @{application}” />
<args />
<sysproperties />
</java>

The solution is to provide the “-initialize” command like this:

<java classname=”org.eclipse.equinox.launcher.Main” classpath=”${proj.root}/${internal.targetplatforms}/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar” fork=”true” dir=”.” failonerror=”yes” timeout=”7200000″ outputproperty=”__era.eclipse.output” logerror=”true”>
<jvmarg line=”@{jvmarg}” />
<arg line=”-initialize” />
<arg line=”-data @{workspace}” />
<arg line=”-configuration @{configuration}” />
<arg line=”-install ${proj.root}/${internal.targetplatforms}/” />
<arg line=”-application @{application}” />
<args />
<sysproperties />

Zitate für Architektur- und Systemdiskussionen

Dezember 22, 2008 von chr15t0ph

Findest du Honig, iss nur so viel dir bekommt.
(Salomon)

Ein großer Gedanke, kennt keine Grenzen.

Es ist besser, ein kleines Licht anzuzünden, als über die Dunkelheit zu fluchen.
(Konfuzius)

Was kannst du bewirken, wenn die Erde bebt?
(M. Echelle)

Balsam für die Seele

Dezember 22, 2008 von chr15t0ph

Glaube bringt Liebe, Liebe bringt Hoffnung.

Ein gesunder Mensch ist einer der ausdrückt, nicht unterdrückt, was in seinem Inneren steckt.

Lebe im Licht, liebe im Licht, lache im Licht.

Schönheit und Liebe

Dezember 22, 2008 von chr15t0ph

Nicht die Schönheit entscheidet wen ich liebe, sondern die Liebe entscheidet wen ich schön finde.