Categories
Other Programming

The “Project You Don’t Want to Do” Life Cycle

  • Day 1: Okay, quick and easy project.  I should at least try to have fun with it.
  • Day 2: What!? I have to do this in Visual Basic?  I don’t even have visual studio, let alone any VB knowledge.
  • Day 3: Visual Studio is installed, created a gui for this project.  Hey, this gui designer is pretty nice.
  • Day 4: Beginning to realize why I love PHP so much.  I’ve never had so much trouble connecting to a database in my life.
  • Day 5: Screw this, I could make this program in 10 minutes in Python!
  • Day 6: Crap, my Python is rusty.  Oh well, I’ve made some good progress.
  • Day 7: Man, gui programming in python is weird.  I guess making a gui in any language kind of sucks.
  • Day 8: Bleh, back to Visual Studio.
  • Day 9: Suck it up and do is VB.  Learn something new!
Categories
Other

Free ISO Mounting Tool

Every so often you need to mount an ISO file.  I generally use Linux, so I can just create a loop back interface.  On Windows though, things are a bit trickier.  If your are lucky enough to have money, you could always buy a tool to do this.  However, most of us are either poor or cheap, so that’s where this tool comes in.  Microsoft apparently created a free iso mounting tool that it doesn’t support.  I have used this with great success over the years, so I wanted to share it with everyone.

Click here to download VCDControlTool.sfx.exe

Categories
Other Programming

Computer Information using WMI Scripting

A few years ago, I worked at the OIT Help Desk at Central Michigan University.  While there, I was asked to write a little utility that would pull information about the machine out of the system.  In order to do so, I learned VBScript and the WMI library that comes with Windows.  WMI is really handy for projects like this because it allows you to pull machine specific information in an easy way.  For instance, let’s say I want to get the machine name:

Option Explicit
Dim objWMIService, objComputer, colComputer
Dim strLogonUser, strComputer

strComputer = “.”

Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!\\” _
& strComputer & “\root\cimv2”)
Set colComputer = objWMIService.ExecQuery _
(“Select * from Win32_ComputerSystem”)

For Each objComputer in colComputer
Wscript.Echo “System Name: ” & objComputer.Name _
& vbCr & “Total RAM ” & objComputer.TotalPhysicalMemory
Next

WScript.Quit

Easy as pie.  The only problem is that you have to have a loop in there.   Even with only 1 computer.

Categories
Other Programming

Ajax Utility Function

Edit:  This post was made before I started using JQuery or Mootools.  This can safely (luckily) be ignored now.

For the past couple months I’ve been playing around with Ajax style events on a few pages I’ve been working on.  One of the main problems I’ve run into is cross-browser compatibility (surprise!).  To solve that problem, I took the advice of a book that I’m reading and made a utility file for some of the most annoying cross-browser issues:  Event Handlers, Activated Objects, and Request Objects.  You can download the utility file by clicking the link below.

Download utils.js here.

Enjoy!  If you have any questions, please leave them in the comments and I’d be happy to get back with you.

Categories
Other Programming

Useful Tools for Startups and Freelancers

Sometimes starting a business can seem like a lot of work.  Actually, it can, and will be a lot of work.  However, there are some tools out there for free (or at a small cost) that can make managing your business a lot easier.  After all, don’t you won’t to focus on your work, and not your bookkeeping?  Here’s a list of tools that I’m currently using, or plan to use in the future once business starts to increase.

  • Toggl – Toggle is a free time tracking tool.  You can create tasks, track time on tasks, and run reporting operations.  It’s also handy because it includes a timer that can be accessed via the web or a desktop widget.  That way you can keep track of how many hours you’re actually working on a project.
  • Billing Manager – Billing Manager is a tool that allows small companies the ability to invoice clients, set up payment plans, add customers to Christmas card lists, and a host of other options.  The real winner for this service though is that it allows for online payments, which means you won’t need to handle cash directly.  The software is by Intuit, so you know it can be trusted.
  • Google Docs / Email – You may or may not know this, buy you can set up your companies e-mail to be handled via Google.  Not only can you get email set up via Google, but company chat, and shared documents via Google Docs.
Categories
Wordpress Development

Plugin Development

While working on the new Wrestling Addix Beta site, I was recently charged with the task to create a new wordpress plugin for the “Featured Videos” section of the site.  When I realized that I needed to do this, I was a bit overwhelmed.  I thought that making WordPress plugins was for the real rockstar wordpress developers, but it turns out that almost anyone can do it.  I found a nice site that had a wordpress plugin template already worked out for you (complete with admin backend!), so that made it a lot easier to get things done.  If you’re interested, the site can be found here.

Categories
Other

Web-Based Subversion Management Tool

Edit:  Sorry, I didn’t look hard enough.  Check out Submin if you are still interested in this.

For those not in the know, Subversion is a piece of software that manages source code in something called a repository.  While this in itself is nothing special, Subversion and other software like it, allow developers to keep a detailed revision history of the source code.  You can even revert back to previous version in the blink of an eye!  Managing a Subversion repository can be a bit of pain though.

Here’s what I’m thinking:  We need a web-based subversion management tool.  Currently there aren’t any good soluti/ons for this and I’d really like to help the community out with this if I could.  What features would you like to see in a web-based subversion management tool?

Categories
Other Programming

Javascript + CSS Fade In

Edit:  This was created before I had discovered JQuery or MooTools.  Please, for the love of God, use those instead.

You’re working on your first sweet ajax form implementation.  You’ve got the form communicating asynchronously with the server and sending status updates between to the two.  However, when you want to let users know that the form is processing, the processing image just kind of “pops” in there.  What you need is an easy “fade in implementation”.

The HTML

<div id=”myimage”>
<img src=”myimage.gif” />
</div>

The CSS

#myimage {
opacity: 0;
}

The Javascript

function fadeIn(id, level) {
if(document.getElementById) {
object = document.getElementById(id);
if(level <= 100) {
setOpacity(object, level);
level += 10;
window.setTimeout(“fadeIn(‘”+id+”‘,”+level”)”, 100);
}
}
}

function setOpacity(object, level) {
level = (level == 100)?99.999:level;
object.style.filter = “alpha(opacity:”+level+”)”;
object.style.KHTMLOpacity = level/100;
object.style.MozOpacity = level/100;
object.style.opacity = level/100;
}

How To Use It
Using this code is pretty easy.  Make sure that the CSS & Javascript are included in your document correctly, then do the following.

fadeIn(“myimage”,0);

If you have any questions, leave a comment and I’d be glad to help.