I wrote earlier about compiling libgpgme for use with Visual Studio. Forgot to mention that this is an useless effort because the filedescriptor passing does not work and as such you can only encrypt decrypt from or to memory.
Category Archives: Programmieren
Butter
While developing with Vala I found myself writing some stuff over and over again. So I decided to make a library out of it: Libbutter. Currently only available via git on http://github.com/phako/butter
Früher, als ich klein war…
… da mochte ich am liebsten Lego Technik. Und für jemanden, der den Rubik’s Cube genau einmal geschafft hat (ohne ihn auseinander zu nehmen), ist das hier einfach nur genial
Gefunden auf schockwellenreiter.de
Learning something new every day….
Just in case someone wonders what %~d0 in a .bat or .cmd file means, here’s the excerpt from help call:
[...]
In addition, expansion of batch script argument references (%0, %1, etc.) have been changed as follows:
%* in a batch script refers to all the arguments (e.g. %1 %2 %3 %4 %5 …)
Substitution of batch parameters (%n) has been enhanced. You can
now use the following optional syntax:%~1Â Â Â Â Â Â Â Â – expands %1 removing any surrounding quotes (“)
%~f1Â Â Â Â Â Â Â – expands %1 to a fully qualified path name
%~d1Â Â Â Â Â Â Â – expands %1 to a drive letter only
%~p1Â Â Â Â Â Â Â – expands %1 to a path only
%~n1Â Â Â Â Â Â Â – expands %1 to a file name only
%~x1Â Â Â Â Â Â Â – expands %1 to a file extension only
%~s1Â Â Â Â Â Â Â – expanded path contains short names only
%~a1Â Â Â Â Â Â Â – expands %1 to file attributes
%~t1Â Â Â Â Â Â Â – expands %1 to date/time of file
%~z1Â Â Â Â Â Â Â – expands %1 to size of file
%~$PATH:1Â Â – searches the directories listed in the PATH
environment variable and expands %1 to the fully
qualified name of the first one found. If the
environment variable name is not defined or the
file is not found by the search, then this
modifier expands to the empty stringThe modifiers can be combined to get compound results:
%~dp1Â Â Â Â Â Â – expands %1 to a drive letter and path only
%~nx1Â Â Â Â Â Â – expands %1 to a file name and extension only
%~dp$PATH:1 – searches the directories listed in the PATH
environment variable for %1 and expands to the
qualified name of the first one found. If the
environment variable name is not defined or the
file is not found by the search, then this
modifier expands to the empty stringThe modifiers can be combined to get compound results:
%~dp1Â Â Â Â Â Â – expands %1 to a drive letter and path only
%~nx1Â Â Â Â Â Â – expands %1 to a file name and extension only
%~dp$PATH:1 – searches the directories listed in the PATH
environment variable for %1 and expands to the
drive letter and path of the first one found.
%~ftza1Â Â Â Â – expands %1 to a DIR like output lineIn the above examples %1 and PATH can be replaced by other
valid values. The %~ syntax is terminated by a valid argument
number. The %~ modifiers may not be used with %*
I bet the guy meant %~dp0 in the call to cacls