2011-12-10, 10:18
Externe Tools mögen zwar deutlich performanter sein, manchmal reicht es aber auch, MD5 Prüfsummen in Excel selbst zu bestimmen. Unter http://www.tutorials.de/visual-basic-6-0/275442-md5-per-vba.html findet man entsprechenden VBA Code, der die entsprechende Funktion als Formel bereitstellt. Es empfiehlt sich, den kompletten Thread zu lesen, da in diesem Code noch Referenzen auf eine Progressbar entfernt oder auskommentiert werden müssen.
Informationen zu MD5 selbst finden sich zum Beispiel in der Wikipedia: http://de.wikipedia.org/wiki/Message-Digest_Algorithm_5.
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
2011-11-27, 17:47
Gelegentlich ist es hilfreich, die Namen aller Arbeitsblätter in einer Excel-Mappe zu kennen. Der folgende VBA Code gibt genau dies aus:
Sub SheetNames()
For i = 1 To Sheets.Count
Cells(i, 1) = Sheets(i).Name
Next i
End Sub
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
Schlagwörter:
Excel Category:
MS Office & VBA |
Kommentare deaktiviert für Mit VBA die Namen aller Excel Arbeitsblätter ausgeben
2011-11-26, 23:22
Standardmäßig synchronisiert VirtualBox die Zeit des Clients mit der des Hosts. Will man dies nicht, so verhindert der folgende Befehl die Synchronisation:
vboxmanage setextradata ‚VBOX‘ “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″
‚VBOX‘ steht für den Namen der Virtual Machine, gefunden habe ich den Tipp bei http://rickguyer.com/virtualbox-disable-time-sync-between-host-and-client/.
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
Category:
Linux, Windows & Co. |
Kommentare deaktiviert für Die Zeitsynchronisation zwischen VirtualBox Client und Host verhindern
2011-11-05, 07:17
Hier ein kurzer Code-Schnipsel, um die Gruppen des aktuellen Users auszugeben:
$groups = [System.Security.Principal.WindowsIdentity]::GetCurrent().Groups
foreach($i in $groups){
$i.Translate([System.Security.Principal.NTAccount]).value
} |
$groups = [System.Security.Principal.WindowsIdentity]::GetCurrent().Groups
foreach($i in $groups){
$i.Translate([System.Security.Principal.NTAccount]).value
}
Um die Gruppen eines beliebigen Users auszulesen muss ein anderer Ansatz gewählt werden: (http://stackoverflow.com/questions/8009593/list-group-memberships-for-ad-users)
Add-Type -AssemblyName System.DirectoryServices.AccountManagement
$username = read-host -prompt "Enter a username"
$ct = [System.DirectoryServices.AccountManagement.ContextType]::Domain
$user = [System.DirectoryServices.AccountManagement.UserPrincipal]::FindByIdentity($ct, $username)
$groups = $user.GetGroups()
foreach($i in $groups){
$i.SamAccountName
} |
Add-Type -AssemblyName System.DirectoryServices.AccountManagement
$username = read-host -prompt "Enter a username"
$ct = [System.DirectoryServices.AccountManagement.ContextType]::Domain
$user = [System.DirectoryServices.AccountManagement.UserPrincipal]::FindByIdentity($ct, $username)
$groups = $user.GetGroups()
foreach($i in $groups){
$i.SamAccountName
}
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
2011-11-01, 12:47
Mit EPUBReader gibt es ein Firefox Addon, mit dem man direkt im Browser ePubs lesen kann.
http://www.epubread.com/de/
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
Category:
Allgemein |
Kommentare deaktiviert für EPub im Firefox lesen
2011-10-22, 21:49
Hier ein paar Materialien zur Erstellung von LaTeX Dokumenten durch PHP. Sie stammen von einem Vortrag, den ich 2004 auf dem Brandenburger Linux-Tag gehalten habe.
braburg_materialien
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
2011-10-15, 19:48
Aus gegebenem Anlass muss ich die Tastendrücke eines HP 12C Taschenrechners mit LaTeX darstellen. Bei der Umsetzung war das folgende Beispiel von texample.net von großem Vorteil: http://www.texample.net/tikz/examples/class-diagram/. (Eine Alternative wäre das keystroke
Paket von Rolf Niepraschk gewesen.)
\documentclass[12pt]{scrartcl}
\usepackage[]{amsmath}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,shadows}
\tikzstyle{abstract}=[rectangle, draw=black, rounded corners, fill=gray!20,drop shadow, text centered, text=black, text width=8mm]
\tikzstyle{fkey}=[rectangle, draw=black, rounded corners, fill=orange,drop shadow, text centered, text=black, text width=8mm]
\tikzstyle{gkey}=[rectangle, draw=black, rounded corners, fill=blue!40,drop shadow, text centered, text=black, text width=8mm]
\newcommand{\mykey}[2]{%
\begin{tikzpicture} \node (Item) [abstract, rectangle split, rectangle split parts=2]{\textbf{\scriptsize{#1}} \nodepart{second}\textbf{\tiny{#2}}};%
\end{tikzpicture}}
\newcommand{\myfkey}{%
\begin{tikzpicture} \node (Item) [fkey, rectangle split, rectangle split parts=2]{\textbf{\footnotesize{f}} \nodepart{second}};%
\end{tikzpicture}}
\newcommand{\mygkey}{%
\begin{tikzpicture} \node (Item) [gkey, rectangle split, rectangle split parts=2]{\textbf{\footnotesize{g}} \nodepart{second}};%
\end{tikzpicture}}
\begin{document}
\mykey{n}{$12x$}
\mykey{SST}{$\Delta \text{DYS}$}
\myfkey
\mygkey
\mykey{Enter}{=}
\end{document} |
\documentclass[12pt]{scrartcl}
\usepackage[]{amsmath}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,shadows}
\tikzstyle{abstract}=[rectangle, draw=black, rounded corners, fill=gray!20,drop shadow, text centered, text=black, text width=8mm]
\tikzstyle{fkey}=[rectangle, draw=black, rounded corners, fill=orange,drop shadow, text centered, text=black, text width=8mm]
\tikzstyle{gkey}=[rectangle, draw=black, rounded corners, fill=blue!40,drop shadow, text centered, text=black, text width=8mm]
\newcommand{\mykey}[2]{%
\begin{tikzpicture} \node (Item) [abstract, rectangle split, rectangle split parts=2]{\textbf{\scriptsize{#1}} \nodepart{second}\textbf{\tiny{#2}}};%
\end{tikzpicture}}
\newcommand{\myfkey}{%
\begin{tikzpicture} \node (Item) [fkey, rectangle split, rectangle split parts=2]{\textbf{\footnotesize{f}} \nodepart{second}};%
\end{tikzpicture}}
\newcommand{\mygkey}{%
\begin{tikzpicture} \node (Item) [gkey, rectangle split, rectangle split parts=2]{\textbf{\footnotesize{g}} \nodepart{second}};%
\end{tikzpicture}}
\begin{document}
\mykey{n}{$12x$}
\mykey{SST}{$\Delta \text{DYS}$}
\myfkey
\mygkey
\mykey{Enter}{=}
\end{document}
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
2011-09-17, 21:37
Hier ein Beispiel, wie man Blobs auf die Festplatte extrahieren kann:
http://blogs.technet.com/b/austria/archive/2010/02/25/wie-bekomme-ich-bin-re-dokumente-blobs-aus-dem-sql-server.aspx
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
Schlagwörter:
SQL Category:
SQL |
Kommentare deaktiviert für Blobs auf der Festplatte speichern
2011-08-26, 17:37
Interessante Powershell-Codeschnipsel findet man unter http://www.msxfaq.de/code/powershell.htm
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
Category:
Powershell |
Kommentare deaktiviert für Interessante Powershell-Codeschnipsel
2011-08-26, 17:34
Gegeben seien n Ordner, in denen jeweils eine Datei mit festgelegtem Namen liegt. Folgendes Skript extrahiert den Inhalt der Datei und gibt ihn zusammen mit dem Pfad aus.
Clear-Host
Clear-History
cd d:\
$folders = gci | ? {$_.PSisContainer -eq $true}
foreach ($folder in $folders){
if ((Test-Path -path $folder\template.txt)){
"" + $folder + ", " + (Get-Content $folder\template.txt)
} else {
"No template.txt in " + $folder
}
} |
Clear-Host
Clear-History
cd d:\
$folders = gci | ? {$_.PSisContainer -eq $true}
foreach ($folder in $folders){
if ((Test-Path -path $folder\template.txt)){
"" + $folder + ", " + (Get-Content $folder\template.txt)
} else {
"No template.txt in " + $folder
}
}
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website
Schlagwörter:
Powershell Category:
Powershell |
Kommentare deaktiviert für Dateien aus Unterordnern auslesen