timsblogstuff.blogspot.com
Tim's Ramblings: .NET Image Resizing!
http://timsblogstuff.blogspot.com/2010/08/net-image-resizing.html
Thursday, August 12, 2010. I have had a function in my personal library for quite a few years called "ResizeImage" which takes a filename, width, and height as parameters. It creates a new file with the width and height and saves it with the same filename and a number appended to it to indicate the new size. It handles JPG, GIF, and PNG files. It did the job for a while but wasn't perfect. Here is the final product:. Dim imgPhoto As System.Drawing.Image = Drawing.Image.FromFile(sFilename). XD = x / iMaxW.
timsblogstuff.blogspot.com
Tim's Ramblings: April 2010
http://timsblogstuff.blogspot.com/2010_04_01_archive.html
More Fun With XML and XSLT! Friday, April 30, 2010. More Fun With XML and XSLT! This was a fun one. A client wanted to receive an email whenever a new user account is created on their web site. Simple enough, but they wanted all of the customer information such as address, email, etc. Now it's not a lot of data, about 10 fields and I could have just concatenated it into a string and sent it as the HTML body. But that's no fun! And we will do it all in memory without writing any files! CREATE PROC usp user.
timsblogstuff.blogspot.com
Tim's Ramblings: More Fun With XML and XSLT!
http://timsblogstuff.blogspot.com/2010/04/more-fun-with-xml-and-xslt.html
More Fun With XML and XSLT! Friday, April 30, 2010. More Fun With XML and XSLT! This was a fun one. A client wanted to receive an email whenever a new user account is created on their web site. Simple enough, but they wanted all of the customer information such as address, email, etc. Now it's not a lot of data, about 10 fields and I could have just concatenated it into a string and sent it as the HTML body. But that's no fun! And we will do it all in memory without writing any files! CREATE PROC usp user.
timsblogstuff.blogspot.com
Tim's Ramblings: November 2009
http://timsblogstuff.blogspot.com/2009_11_01_archive.html
Welcome to my blog. Wednesday, November 4, 2009. OK kids, time for some stupid SQL tricks. Actually these are mostly things that I don't use that often so it's hard to keep them memorized when I do need them. I have these in a Sharepoint list but you don't have access to that, so here they are. 1 First, converting date formats. Sometimes you need to store the day without the time, and sometimes you need to return a string that does not contain the time. This converts '1/1/2000 4:20 PM' into '1/1/2000':.
timsblogstuff.blogspot.com
Tim's Ramblings: February 2013
http://timsblogstuff.blogspot.com/2013_02_01_archive.html
Secondary DNS vs. Conditional Forwarders. Wednesday, February 6, 2013. Secondary DNS vs. Conditional Forwarders. I came across an interesting problem today. I have a client with three sites, all connected by VPN, each with their own Active Directory forests connected via Trust Relationships. All servers deliver mail to each others Hub Transport servers through internal IPs and host names across the VPN, external SMTP delivery is locked down pretty tight. Now I remember when I had setup the mail routing b...
timsblogstuff.blogspot.com
Tim's Ramblings: Powershell progress bar for Exchange mailbox moves
http://timsblogstuff.blogspot.com/2015/03/powershell-progress-bar-for-exchange.html
Powershell progress bar for Exchange mailbox moves. Thursday, March 5, 2015. Powershell progress bar for Exchange mailbox moves. While( get-moverequest -MoveStatus InProgress) -ne $null) {get-moverequest -MoveStatus InProgress Get-MoveRequestStatistics; start-sleep -s 5}. But I thought it would be cool to have a GUI progress bar so I did a little Googling and found two. That combined provided me with what I needed and I used my free time to build a cool script that my client can use for their migrations.
timsblogstuff.blogspot.com
Tim's Ramblings: Welcome to my blog
http://timsblogstuff.blogspot.com/2009/11/welcome-to-my-blog.html
Welcome to my blog. Wednesday, November 4, 2009. Welcome to my blog. Hopefully I'll make regular postings here, I tend to get into it for a while then forget about it, then come back to it again later. My goal for this is to provide some technical information that I've come across in my many years as an IT Consultant, helpful tips and programming samples that have made my life easier. Subscribe to: Post Comments (Atom).
timsblogstuff.blogspot.com
Tim's Ramblings: SQL Stuff!
http://timsblogstuff.blogspot.com/2009/11/sql-stuff.html
Welcome to my blog. Wednesday, November 4, 2009. OK kids, time for some stupid SQL tricks. Actually these are mostly things that I don't use that often so it's hard to keep them memorized when I do need them. I have these in a Sharepoint list but you don't have access to that, so here they are. 1 First, converting date formats. Sometimes you need to store the day without the time, and sometimes you need to return a string that does not contain the time. This converts '1/1/2000 4:20 PM' into '1/1/2000':.
timsblogstuff.blogspot.com
Tim's Ramblings: February 2010
http://timsblogstuff.blogspot.com/2010_02_01_archive.html
Monday, February 1, 2010. First, a couple of tables, Categories and Products. Categories ID Category Parent ID. Products ID ProductName Categories ID. 1 Red Apples 4. 2 Green Apples 4. 5 Chicken Wings 6. 6 Breast Meat 6. 7 Pork Chops 2. 8 Ground Beef 7. Now for the stored procedure to build the navigation:. CREATE PROC [dbo].[mysp catnav]. SELECT Categories ID, Category As CategoryName. WHERE Parent ID Is NULL. SELECT Categories ID As Subcategories ID, Category As SubcategoryName,. Asp:treenodebinding da...