Refractoring Me

Programming to become a better programmer

Codename Renaldo becomes Service Hammer

clock February 24, 2009 06:25 by author Erik

I renamed Renaldo to Service Hammer with the impending public release.  I need to get the GodsOfSoftware site up first to host the project.  I am really toying with open sourcing the project.  It doesnt do all that much, but philosophy has become unless the application will make me Scrooge McDuck rich and the source is not a train wrech I am going to open source it.

What it does...

It is a .Net 2.0 applcation that sits in the system tray.  When you click on it it gives you the ablity to start or stop any service on your computer.  You can assign favorites and favorite groups.  You can start or stop all the services in a goup with one click.

 The application interface is completely menu driven

 Here are some screens.

 
 

 

 
 
 
Any feedback is appreciated. 
 
 

Be the first to rate this post

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


Codename Renaldo becomes Service Hammer

clock February 24, 2009 06:25 by author Erik

I renamed Renaldo to Service Hammer with the impending public release.  I need to get the GodsOfSoftware site up first to host the project.  I am really toying with open sourcing the project.  It doesnt do all that much, but philosophy has become unless the application will make me Scrooge McDuck rich and the source is not a train wrech I am going to open source it.

What it does...

It is a .Net 2.0 applcation that sits in the system tray.  When you click on it it gives you the ablity to start or stop any service on your computer.  You can assign favorites and favorite groups.  You can start or stop all the services in a goup with one click.

 The application interface is completely menu driven

 Here are some screens.

 
 

 

 
 
 
Any feedback is appreciated. 
 
 

Be the first to rate this post

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


Your my boy Blue!

clock August 13, 2008 09:36 by author Erik

So it has been about three weeks since I have moved to primariliy coding in C#.  In that time I have converted 75% of my OurSite project I am working on.  In the project I have embedded the dotWiki project.  I like the idea of a blog of sorts with an embedded wiki. Anyway, it was interesting converting someone else code from VB to C#.  I guess it made me feel better.  There were just as many issues or more than my code.  I am close to the entire conversion of the project.  Once that occurs the refactoring will begin.  I would like to release the project on SourceForge, but I still feel like it just is not good enough. 

 

On the issue of C#.  I love it to tell you the truth.  I don't know it seems to give you more pride in your code.  It allows you to have a better feel of what is going on.  VB.net has its place I am working with it now at work, but I really prefer C# now.  I know C#is simplified C++ to alot of people.  And there are even more people that would say you need to know straight C (Joel).  That maybe the case.  But for now, for what I do, for what time I have... I like C#.

Be the first to rate this post

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


Update: Moving from VB.net to C# in a Current ASP.net Project.

clock July 29, 2008 17:24 by author Erik

<update>

There are some things I should share with you. 

  • This was done in VS2005.
  •  I was able to do this since it was a website and not a web application.  In a web application all the code (even code behind) is complied into one assembly.
  •  Another thing to watch for when making the conversion is once you start in the App_Code folder you need to convert all the code in folder.  The code in there is compiled in one assembly and therefore can not be mixed.
I'm about 75% done the conversion if I run across anything else I will post an update.

 </update>

 

Back in highschool and college I used C/C++.  Since I have worked with VB* in the last 10 years I have kinda dwindled on my C skills.  So I decided to strart using C# (It's not C/C++ i know) instead of VB.net on my current homebrew apps.  So here is how I converted the first of my webpages (pictures.aspx) in the OurSite project I am working on.

  1. Checked the web.config to make sure C# was included as compilable language.
  2. Added Pictures.aspx.cs file
  3. Changed page directives in the Pictures.aspx
    1. Changed CodeFile to the CS page
    2. Changed Language to C#
    3. Changed AutoEventWire to true (You can add events to the actual controls and leave this set to false)
    4. Closed and reopened page
  4. Converted Code
    1. Copied VB Code to clipboard
    2. Replaced all &s with +s for string concatination in notepad++
    3. Went to: http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx (Page can go from VB to C#)
    4. Converted code
    5. Pasted new code in Pictures.aspx.cs
    6. Commented out all code in Pictures.aspx.vb
  5. The converter does not detect the difference between array parens vs method parens so I had to change a bunch to []
  6. The .ToString (and other functions) came through the converter without the parens so I had to add them

Yeah so that was it.  The code worked flawlessly.  So I can change one page at a time in my ASP project over to C# code.  Only prereq for this is VS2k5+.

 Any other ideas or better converters please let me know.

 

kick it on DotNetKicks.com

Be the first to rate this post

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


New Application - Vesta

clock July 18, 2008 18:39 by author Erik

Keeping with my software naming policy (www.GodsOfSoftware.com) I named my next piece of software after Vesta godess of the hearth.

Reason for this is that I'm tired of having to use a dynamic naming service to host my sites on my personal Comcast connection.  So since my Comcast connection IP address changes very unoften I figured I can point the DNS records directly to my Comcast IP.  The only problem is if the IP address changes.

So long story short the software I'm working on will monitor your router's external IP address with uPnP and email you when the IP changes so you can update your dns records.  Simple appication, but those are my favorite to write.

I will post the application once it becomes stable.

Be the first to rate this post

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