Divis Blog

Just another geeks blog.

Much to do!

clock July 20, 2008 22:21 by author Divi

Since a while I had no time anymore to write some texts for my blog, but because there was just a little break, I thought I could add a short summary of my projects:

That thing that swallowed most of my time during the last weeks was the Microsoft exam 70-536: "Microsoft .NET Framework - Application Development Foundation". After I investigated all my free time in it and couldn't get it at the first try, I had to take my second shot. But the passing of the exam didn't release that much of my time, because all that projects that had been bottled-up had to be done now.

Here're some of them:

Pixelkaempferin - alias Jessika Wollstein

image

A good friend of mine, which wanted to demonstrate her abilities of graphic design. I really enjoyed working on that page, because I could try out some gimmicks. One of them was a the fact that she is now able to configure almost every page by XML and the icons are loaded automatically (matching to the config). Another thing was a diagonal menu, wherefore I just had the idea of an imagemap and some attached mouseover effects.

Spielefinder.Net

image

On a party one evening I talked to my girlfriends brother and asked him about some tools the web is still missing. I wanted to write a new project as a little training, but it needed to be a project which didn't already exist. During our conversation about verious ideas, he got me on the point of a game database. There're many of them, but none allows to filter the games by hardware. So about a week ago I got a page online which was able to filter its database for a specific hardware setup. Over that the client is able to specify a tolerance via some sliders (from the ASP.Net ajax toolkit) for the case they want to upgrade their PCs.

Codeplex - DownloadCounter

And last but not least: I added a new project to Codeplex named "DownloadCounter". At the moment it's just a very simple assembly and a demo project. I started that project, because the boyfriend of my sister asked me if I could put some files online for download and I decided to give him the ability to track how many times these music tracks where downloaded (he's a little hip-hopper) so that he can measure his success (or not :-D). And because I already wrote several download counters, I thought I could write one in .Net which was reusable and put it on Codeplex so that it can be improved over time - so I'm now hoping that some guys will download it and give me some good hints for improving it.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Various 20080406

clock April 6, 2008 15:28 by author Divi

In the last time I haven't had much time to work on my blog or some of my private sites, because at my job we've (fortunately) very much work to do which is sometimes (unfortunately) a little bit short of time.

To not open a larger theme in here, which I'd like to explain much more detailed, but wouldn't have the time to, I decided to just post some things that I found during the daily work of the last weeks:

 

VSO DivxToDVD

Some days ago I was asked to get a very debatable video from the internet on DVD, because a friend of mine has no computer to use the internet himself or at least watch the downloaded video. After some flops of software I tried, I was guided by Google to the page of Softonic, where I found the VSO DivxToDVD Converter 0.5.2.99. It's a pretty cool tool, simple to use and free:

image

As I went to the producers page to check out for some updates, I found out (to my regret) that the nice (and, much more important, free ;-D) Tool became fee required. I think it's a good thing that VSO decided to bring it to the market, because I really like that tool, but I don't want to pay for it as long as I just need it from that rarely. The new name of the tool is ConvertXToDVD and costs about 40€.

(Hint: Softonic still offers the link to the old, free version).

 

SDP Multimedia

As I was searching for the solution of a problem during the last week, I found a webcast which I'd like to watch, but which had no download link. It seemed as if there'd be some very interesting infos inside of it, but because it was to long, I tried to download it on various ways (which didn't actually work) - until I found the stream ripper SDP Multimedia.

image

It's a little bit slow while downloading (or perhaps it has just been the streaming-server :-D), but in any case: It's also free!

You only need to add a stream via the MMS protocoll and instantly the SDP starts downloading it to your harddisc.

 

FileSystemWatcher

At work we're using VisualCron since several months to do our filesystem-based cronjobs. Some days ago I found out that that the .Net framework allready offers a helper class, which can be used to do exactly this thing: System.IO.FileSystemWatcher.

This object allows you to watch filesystem and react on various events (e.g. changes, updates,...). Therefore you only have to instantiate the object, choose the directory to watch, (optionally define a file mask (e.g. to just react on .cs-files)) and to tell the object to start watching:

 

System.IO.FileSystemWatcher fsWatcher = new System.IO.FileSystemWatcher();

fsWatcher.Path = @"C:\fsWatcherTest";
fsWatcher.Created += new System.IO.FileSystemEventHandler(FileCreated);
fsWatcher.WaitForChanged(System.IO.WatcherChangeTypes.Created);

 

With this code, you get the FileSystemWatcher to wait for the creation of exactly one file and call the method FileCreated afterwards. To react on the renaming of this file - and this not once, but several times, I extended the program in the following way:

 

class Program
{
    static void Main(string[] args)
    {
        System.IO.FileSystemWatcher fsWatcher = new System.IO.FileSystemWatcher();

        fsWatcher.Path = @"C:\fsWatcherTest";
        fsWatcher.Created += new System.IO.FileSystemEventHandler(FileCreated);
        fsWatcher.Renamed += new System.IO.RenamedEventHandler(FileRenamed);

        while (true)
        {
            fsWatcher.WaitForChanged(System.IO.WatcherChangeTypes.Created);
            fsWatcher.WaitForChanged(System.IO.WatcherChangeTypes.Renamed);
        }
    }

    static void FileCreated(object sender, System.IO.FileSystemEventArgs e)
    {
        Console.WriteLine(String.Format("File Created: {0}", e.FullPath));
    }

    static void FileRenamed(object sender, System.IO.RenamedEventArgs e)
    {
        Console.WriteLine("---");
        Console.WriteLine("File Renamed:");
        Console.WriteLine(String.Format("Old path: {0}", e.OldFullPath));
        Console.WriteLine(String.Format("Old name: {0}", e.OldName));
        Console.WriteLine(String.Format("New path: {0}", e.FullPath));
        Console.WriteLine(String.Format("New name: {0}", e.Name));
        Console.WriteLine("---");
    }
}

 

After I entered the code I did the following steps

1.) Started the program.

2.) Created a text file in the specified directory.

3.) Renamed the newly created text file.

This caused the following output:

image

 

Interesting: If I create a new file on Vista via right clicking, I get a new file where the file name (without the extension) is marked, to ease the renaming. As I just said - the file is firste created an renamed later on (as can be seen at the image above). So take care that a file you handle might not have its final name after the creation.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Outlook-Odyssey

clock January 19, 2008 17:11 by author Divi

As I already told you some days ago, I've bought the Office package. Full of anticipation to not get my mails anymore through the web interface but to just open my Outlook, I opened it and selected "Exchange" as mail server type. Obviously the biggest fault I could do :-D 

After I entered all required information for connecting to our Exchange server, my Outlook told me that they couldn't be verified ... Pity ;-) ... but the best joke came after that: Our admin had a good advice for me: First create another account and then set up the Exchange account manually in the configuration menu ... said - tried - failed.

The problem: Outlook offered the following options after reopening it:

1.) Enter valid account information for the Exchange (see above: that didn't work)

2.) Cancel

So I clicked "Cancel" to enter an alternative mailing server as primary account ... but ... hmm ... obviously the "Cancel" button forced Outlook not to go back one step to choose another server but to close ... Hard luck. Outlook wanted me to enter valid data for an Exchange accoutn and NOTHING ELSE!

 

So I thought: There must be any way out and started searching my registry for the name of the Exchange server. I found it on two places. One of them was the browser history (from the web interface) - the other one was at:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\<username>\13dbb0c8aa05101a9bb000aa002fc45a

First first try was, who'd have guessed, to clear that value... didn't work. So I simply deleted the whole key ... FAULT :-D!

After I started Outlook again, I got the following miraculous message:

MessagingServiceError

(You don't have the current version of the Microsoft Exchange-Message service. Please Create an profile first.)

Hmm ... ok - attempt failed - it was late - I haven't had a backup ... so: repair Outlook ... didn't work - deinstall Outlook and install it again - also didn't work ...

Slowly I got a little bit frustrated... Last try: Got the "work"-laptop and searched the key on it (To go the save way I deleted the whole <username>-key and replaced it with the information from the laptop) ... And when I just were destroying my new system, I also copied the whole profile-directory from the Vista directory:

DRIVE:\USER\<username>\AppData\Local\Microsoft\Outlook

En voila - my Outlook started the first time - the Exchange was already configured and all of my mails were already available (only the mails from the shared folders were missing) - and now I can finally write my mails at home :-D. 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Windows-Fonts Dialog

clock January 8, 2008 10:29 by author Divi

The original reason, why I decided to start a blog was the following:

 

You can find this beautiful Window 3.1(?) dialog-box in the Windows-fonts directory of (attention!) Windows-XP (Addition: and Vista :-D). So I was asking me: Was it to much work to replace them? I really had tears-of-joy in my eyes, as, for the first time, I tried to install a font via the menu (all the time before, I just dropped the font-files into that directory - btw.: that just works really fine!).

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5