I’m not good in Graphics so I mostly use the default HTML Table with border=1 which does look pretty awkward…
So I decided to create a little CSS to make the default Table look a bit nicer.
Here’s the CSS:
Continue reading CSS formatted Table
You are browsing the site archives for July 2009.
I’m not good in Graphics so I mostly use the default HTML Table with border=1 which does look pretty awkward…
So I decided to create a little CSS to make the default Table look a bit nicer.
Here’s the CSS:
Continue reading CSS formatted Table
I worked with PHP and MySQLi for the last few days and still don’t like it that much but got used to it.
Something that was annoying me pretty much was the Binding of Parameters in an SQL-Statement.
So I decided to write a little Helper Function for this. Continue reading PHP, MySQLi and Dynamic Parameter Binding
I tried to make a simple Application which connects to my Digital Camera (which is detected as Portable Device) and Copy or Move the Files to my Harddisk (and put them in Directories, named by the DateTaken of the Photo). At first I tried to use the .NET FolderBrowserDialog
but it was soon clear, that it can’t handle Portable Devices and doesn’t even show them.
My approach was to use the shell32.dll
. It contains a BrowseForFolder
which is able to handle Portable Devices. Continue reading Copy/Move Files from Portable Device
An Image can contain additional Information about the Camera or the Date it was taken. It’s quite easy to access those Information with C-Sharp. All you need to do is to add a Reference to PresentationCore
and WindowsBase
, include the System.Windows.Media.Imaging
Namespace and use the following Code-Snippet as a StartingPoint:
public DateTime GetDateTaken(string filePath) { using (FileStream fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read)) { BitmapFrame bitmapFrame = BitmapFrame.Create(fileStream, BitmapCreateOptions.DelayCreation, BitmapCacheOption.None); BitmapMetadata bitmapMetadata = bitmapFrame.Metadata as BitmapMetadata; return DateTime.Parse(bitmapMetadata.DateTaken); } }