Watching Localhost Traffic with Fiddler

9 Dec

If you’ve tried to use Fiddler to debug your ajax script locally, you’ve probably noticed that it doesn’t log the traffic to http://localhost/. Well, it can! And it’s a really easy hack. Just put a dot at the end of localhost. Like this:

http://localhost.:321/

AMAZING!!!

(and here’s why it works)

Subversion Tip – What Has Changed

12 Oct

Have you ever wanted to know what others on your team have changed BEFORE you get the latest changes? Well, you can.

From Windows Explorer, use TortoiseSVN’s context menu to “show log”. From the log messages report, you can right-click on the most recent revision and “Compare with Working Copy.”

You’ll get a window like the below with the files that have changed on the left and the differences on the right. I’m using TortoiseMerge for my diff tool so you might see something a little different. I’ve also switched the left and right views so my working copy is on the left and the latest revision version is on the right.

Testing Email from Local Apps with a Pickup Directory

28 Sep

I just learned about this neat trick that’s helpful for developing email features locally.

In your web.config file you can tell your application to save emails to a folder instead of sending through an smtp server.  This way you can have your application code work as normal and check all the emails it sends by just looking in a folder.  The folder has to exist first.  For instance, I created a local folder called c:\TempEmail\ and then changed my local web.config to this:

<!–
<system.net>
<mailSettings>
<smtp from=”email@address.com”>
<network host=”smtp.address.com” password=”” userName=”” defaultCredentials=”true” />
</smtp>
</mailSettings>
</system.net>
–>

<!– use a pickup directory for debugging –>

<system.net>
<mailSettings>
<smtp from=”email@address.com” deliveryMethod=”SpecifiedPickupDirectory”>
<specifiedPickupDirectory pickupDirectoryLocation=”C:\TempEmail”/>
</smtp>
</mailSettings>
</system.net>

All email sent through your application will end up as a file in the c:\TempEmail\ folder instead of actually being sent out. And I didn’t have to change my code at all!

MailDefinition md = new MailDefinition();
…..
MailMessage msg = md.CreateMailMessage(user.Email, replacements, bodyHtml, newSystem.Web.UI.Control());

//send it!
SmtpClient smtp = new SmtpClient();
smtp.Send(msg);

You can open the eml file in Outlook and it’ll look just like it’ll look in the real world – except that you didn’t bother your user with a test email.  Sweet!

I like Take Solace

12 May

Of course, I’m a bit biased..

Fighting Multiple Sclerosis with Music

30 Apr

Take Solace, Wolfgang Schaefer, MBird and Bryan Cherry will be playing a benefit to help raise money for MS research. The event will be at the Art Bar on 4/30/2010.  Music starts around 8:30pm.  Take Solace will most likely play around 11.

Rock to Challenge MS (Art Bar)
Milwaukee, WI
8:00pm
Suggested Donation of $10
722 E. Burleigh St., Milwaukee, WI
Venue phone: 414.372.7880

See the Facebook page for details (login required):
http://www.facebook.com/event.php?eid=298793726834

The beauty of Iceland’s Eyjafjallajokull volcano

21 Apr

This slideshow requires JavaScript.

I wish I could give credit to the photographers that took these. If anyone knows, just let everyone else know in the comments section.

SSMS Tip – See who changed a stored procedure

8 Apr

I just found this cool little report built into SSMS 2005. Right click on a database and look in the reports section. Find the “Schema Changes History” report and you can see a summary of who changed a stored procedure or other item. Neat eh?

Updating a Project and Editing Conflicts with TortoiseSVN

3 Mar

In TortoiseSVN, when getting the latest of multiple files, you may that there were conflicts in the merge process. Before you close this window, just scroll up and right click on the file with the conflict.

Select “Edit conflicts” and use the Merge tool to resolve them.

Compare 2 Local Files with TortoiseSVN

2 Mar

You can compare 2 different files using SVN Diff! Just go into Windows Explorer, select 2 files (ctrl click) and right click on one of them. You’ll get a context menu like this:

Just click SVN Diff (or you might see TortoiseSVN > Diff instead).

You’ll get a nice side-by-side comparison of the differences in the two files.

(P.S. This was done using Tortoise 1.6.6)

Wisconsin Legal Nurse Consulting Services

30 Dec

We just launched a new site, Wisconsin Legal Nurse Consulting Services, at http://wilegalnurse.com/. Check it out.