Lost and Found, NotifyIcon

I am currently making a program that will display in the task-bar on the bottom right of desktop. I had created a program like this in college but am trying to relearn the process using WPF. Now this is all fine and good til I realized there was no such feature inside the WPF. You could add references to the form versions of NotifyIcon, but I found like to be less then desirable with some odd side effects.

A simple project became more of an issue, but rather then changing it to a forms project I looked around for a third party library. Luckily I was able to find a few. While the application is not complete yet I at least wanted to post my findings. The resource is on Codeproject.

And then a step to the right.

I wanted to move the form to the bottom right. The code was fairly simple but I am unsure if it’s really good for a WPF project. So my research is not going to stop here. For the time being I am happy with the results.

The following gist shows the code needed to get the job done. I did have to add two references: System.drawing, System.Windows.Forms .

The code just changes the placement away from the top and left sides of the screen minus the size of the window in question. Luckily it is based on the size of the working area of the desktop so it can handle different resolutions. This will also be useful if I change the size of the window and need to reapply it.

Happy coding,
Michael.

Rails Windows platform

I am currently using windows for my development which has caused several issues over the last month. Honestly I have tried to keep all my development on my Ubuntu laptop but it’s starting to show it’s age. So while I was looking for a good IDE, I experimented with several different setups. I think at the end of the day I am settling with rubymine.

One of the main things I wanted to make sure I could do was rapid deployment with out a lot of overhauling or insane amounts of setups for basic projects. The more I can automate the better which this is currently allowing me to do.

Current state of fibon

While I have not used fibon gem in awhile I am going to start working on it on free time. The general idea of the gem was to allow the user to pull out and test Fibonacci numbers. While not complex I was happy about the size compared to other gems that did similar feats.

At the time of the writing I had over two thousand downloads of the gem and over five hundred with this current version. The lack of updates were due to the change in directions with projects I had at the time but at this point I think it would be a shame to not update it.

Save Engine

I have several projects I am working on and one thing they all have in common is I need to be able to save clusters of data inside unique structures. On Saturday I started working on a C# class that should be able to do just that.

The strings are mainly there to clean up the other text and for making sure that when I want to change the variables then I will not have to hunt through the code, fairly standard stuff.

The first thing I had to check was to make sure the folder was currently there. I did want to allow the method to take different file names down the road so I pass the full path name to the Directory.Exists. If it does not find the folder then it will create it.

The second part of the method is the Stream writer that creates the text file (in this case) which then will write Testing file.. inside the document. You could easy use binary writer if you don’t want people looking into the document. At least the lazy people out!