Chris Nizzardini, Salt Lake City Utah, Web Developer Specializing in LAMP+Ajax Since 2006

My Blog

Here is my awesome blog.

Archive for the ‘other’ Category

making your email not show up in spam folders

Posted by chris on March 15th, 2008 Comments(0)

I operate a website http://www.mp3crib.com that requires users to validate accounts. Unfortunately my email server was looked upon as a spam server. Though not blacklisted providers such as AOL and MSN/Hotmail were sending my emails directly to users spam folders. Luckily there are steps you can take to prevent this:

Read the rest of this entry »

In other ()

WaitForExit method, running command line args in c#, and other hacks

Posted by chris on February 12th, 2007 Comments (3)

I’ve been writing an application that allows me to easily deploy files to our corporate website. Since I had to build under the guidelines of my boss and this is my first c# project I needed to do some hacking that most experienced c# programmers would laugh at.

The application does a few things. One it allows you to select any number of files or folders and click a button to automatically add them to zip file via winzip, open an sftp connection with SecureFX, and make an ssh call using plink for additional commands which unzip the file and sync the files across multiple web servers. . I needed a way for my ssh function to wait for my sftp function, and for that to wait for my zip function to complete.

I use the Process.Start method to access the windows command line and pass arguments. Then I used the WaitForExit method to stop any further code from executing until the current process completed. Both are in the System.Diagnostics namespace.

Read the rest of this entry »

In other ()