<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4081509313348409613</id><updated>2011-11-27T19:05:12.221-06:00</updated><category term='c#'/><category term='Media Player 11'/><category term='Rhapsody'/><category term='ring of death'/><category term='Reflection'/><category term='Windows 2003'/><category term='LINQPad'/><category term='halo'/><category term='javascript'/><category term='ssl'/><category term='xbox 360'/><category term='IIS6 Compression'/><category term='OneNote'/><category term='iText'/><category term='SQLite'/><category term='Generics'/><category term='date validation'/><category term='cross domain'/><category term='pdf'/><category term='barcode'/><category term='ASP.NET'/><title type='text'>Yeah, It's THAT Boring!</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-1042504262715339580</id><published>2011-04-13T21:41:00.003-05:00</published><updated>2011-04-13T21:45:33.969-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQLite'/><category scheme='http://www.blogger.com/atom/ns#' term='LINQPad'/><title type='text'>LINQPad + SQLite =&gt; An Hour Saved</title><content type='html'>Recently, I lost all the images for my website due to some technical issues.  All the images were also being saved in a SQLite database with the description as the file name.  Instead of writing a brand new console app, I fired up LINQPad, added the SQLite driver and saved myself an hour's time&lt;br /&gt;&lt;br /&gt;var images = (from img in ImageTables where img.Description.StartsWith("images") select img);&lt;br /&gt;foreach (var img in images) {&lt;br /&gt;var fi = new FileInfo(img.Description);&lt;br /&gt;    fi.Directory.Create();&lt;br /&gt;    File.WriteAllBytes(fi.FullName, img.Image);&lt;br /&gt;    img.Description.Dump();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-1042504262715339580?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/1042504262715339580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=1042504262715339580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/1042504262715339580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/1042504262715339580'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2011/04/linqpad-sqlite-hour-saved.html' title='LINQPad + SQLite =&gt; An Hour Saved'/><author><name>ahsar</name><uri>http://www.blogger.com/profile/12207438506328364043</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-5273011098738732466</id><published>2010-02-13T12:47:00.003-06:00</published><updated>2010-02-13T12:59:48.600-06:00</updated><title type='text'>iPhone App Compiles For Simulator And Not For Device</title><content type='html'>I was writing a quick app using the MKMapView and CoreLocation.  The application compiled fine for the simulator and pulled up the correct view when running on the simulator.  Once I changed the config to compile to the device, all hell broke lose.  The compiler started generating link errors.  After a couple of hours of hitting my head against the wall I was able to find the solution &lt;a href="http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/21617-xcode-can-build-simulator-but-not-device.html"&gt;here&lt;/a&gt;.  But essentially, the project.pbxproj file contained items that shouldn't have been in the file.  After I updated the framework search path, the application compiled correctly.  Below is the fix&lt;br /&gt;&lt;br /&gt;FRAMEWORK_SEARCH_PATHS = "$(inherited)";&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-5273011098738732466?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/5273011098738732466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=5273011098738732466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/5273011098738732466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/5273011098738732466'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2010/02/iphone-app-compiles-for-simulator-and.html' title='iPhone App Compiles For Simulator And Not For Device'/><author><name>ahsar</name><uri>http://www.blogger.com/profile/12207438506328364043</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-8030065080648085233</id><published>2008-12-13T23:43:00.001-06:00</published><updated>2008-12-13T23:43:13.517-06:00</updated><title type='text'>Wondering About Getting My Own Blog Site</title><content type='html'>&lt;p&gt;I am really tired of formatting code for the blogspot.&amp;#160; It is a major PITA.&amp;#160; Wondering whether hosting my own blogs would make things easier?&amp;#160; Then again, I don’t blog enough to justify the cost… &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-8030065080648085233?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/8030065080648085233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=8030065080648085233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/8030065080648085233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/8030065080648085233'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/12/wondering-about-getting-my-own-blog.html' title='Wondering About Getting My Own Blog Site'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-6504671928422778597</id><published>2008-12-13T23:24:00.010-06:00</published><updated>2009-11-14T11:09:35.025-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reflection'/><category scheme='http://www.blogger.com/atom/ns#' term='Generics'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>C#, Generics, and Reflection</title><content type='html'>&lt;p&gt;On my current project, we are using a homegrown ORM framework that works against stored procedures.  The framework is fairly slick, uses generics, and does save time by producing basic plumbing as well as the stored procedures.  As to why we are not using NHibernate and Spring.NET, the client does not have much faith in Open Source projects and only allows stored procedures to access their database.  Though I have opinions about that, we will not share those here.&lt;/p&gt;&lt;p&gt;Since the application we are writing must coexist side by side with the legacy application and it’s other modules, we must also use the legacy tables.  The application uses lots of lookup tables, which could really all be rolled up into a single table with types but I digress.  We decided that instead of having several classes to do the CRUD for the lookup types, we will be writing a single class to manage all of lookup tables.&lt;/p&gt;&lt;p&gt;So my team member, Jes, created the stored procedure to let us return any of the lookup values based on the parameters that we pass in.  The problem reared its ugly head when she tried to use the framework in association with a single common stored procedure.  The framework expects the generic type parameter and we don’t have this value till runtime and there is not much that could be done here without the use of reflection.&lt;/p&gt;&lt;p&gt;Reflection allows an application to use introspection to to work with some piece of code and can be a very powerful tool in the bag o’ tricks.  I have used reflection extensively in my days of java development but not much in the .NET world.  While thinking about the problem, I started thinking about reflection once again and started playing with it.  As it turns out, reflection is even easier in .NET than it was in java (which was really cool and easy).  &lt;/p&gt;&lt;p class="MsoNormal" style=""&gt;After playing with it a little, I realized that you can check to see if a method is a generic method and whether it has a generic type parameter.  Once I realized that, I knew our problem had been solved.  Below is an example of a class that has a method with a type parameter.  The code uses reflection to dynamically pass the parameter type.  No, the code is not production quality and makes assumptions that should always be validated but that’s not the point here&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre name="code" class="csharp"&gt;using System;&lt;br /&gt;using System;&lt;br /&gt;namespace Test {&lt;br /&gt;  public class Hello {&lt;br /&gt;    public void PrintTypeName&lt;T&gt;() {&lt;br /&gt;      Console.WriteLine("Parameter Type Name: {0}", typeof(T).FullName);&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  class Program {&lt;br /&gt;    static void Main(string[] args) {&lt;br /&gt;      // instantiate the object and store the type information...will need it again&lt;br /&gt;      var instance = Activator.CreateInstance(Type.GetType("Test.Hello"));&lt;br /&gt;      var type = instance.GetType();&lt;br /&gt;&lt;br /&gt;      // lookup the method you want to work on.  This is just for demonstration purposes&lt;br /&gt;      // only...there are better ways to lookup information&lt;br /&gt;      var m = type.GetMethod("PrintTypeName");&lt;br /&gt;&lt;br /&gt;      // this call makes the method into a generic method passing in the type parameter&lt;br /&gt;      // information.  DO note that you must assign back the value returned from the&lt;br /&gt;      // method call.  If you fail to do the assignment, you will get the following exception&lt;br /&gt;      // which I did but didn't find much help on google and is the whole point of this blog&lt;br /&gt;      // Exception: "Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true"&lt;br /&gt;      m = m.MakeGenericMethod(type);&lt;br /&gt;&lt;br /&gt;      // now that you have a generic method, all that is needed is the invocation.&lt;br /&gt;      // Since there are no argument values for the method, we are passing in the null&lt;br /&gt;      // Also note that we must have an instance to execute the method on since the method is not&lt;br /&gt;      // static.  If the method was static, instance would be passed in as null as well&lt;br /&gt;      m.Invoke(instance, null);&lt;br /&gt;&lt;br /&gt;      // Sam Bradford of OU won the Heisman today [12.13.2008]&lt;br /&gt;      // Boomer Sooner!&lt;br /&gt;      Console.Write("Press any key...");&lt;br /&gt;      Console.ReadKey();&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-6504671928422778597?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/6504671928422778597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=6504671928422778597' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6504671928422778597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6504671928422778597'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/12/c-generics-and-reflection.html' title='C#, Generics, and Reflection'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-2870709750787951662</id><published>2008-08-23T09:07:00.002-05:00</published><updated>2008-08-23T09:10:06.883-05:00</updated><title type='text'>Going Home</title><content type='html'>&lt;span style="font-size:85%;"&gt;My Employer and I have agreed that I can work from home starting September.  This is a big change for them as I live 600 miles away from the office but something they have agreed to try with me.&lt;br /&gt;&lt;br /&gt;I am a little nervous, but also excited about.  I already have an office at home and the family is excited about the prospects as well&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-2870709750787951662?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/2870709750787951662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=2870709750787951662' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/2870709750787951662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/2870709750787951662'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/08/going-home.html' title='Going Home'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-6619654349822645659</id><published>2008-07-12T00:02:00.002-05:00</published><updated>2008-07-12T00:09:58.141-05:00</updated><title type='text'>Text Inverter Application</title><content type='html'>Once upon a long time, I worked for a mega company (now, I work for a different mega company) and we had disparate systems.  We had applications written in COBOL, Delphi, and of course, java. &lt;br /&gt;&lt;br /&gt;Applications started out on the MainFrame eons ago and a decision was made to invert the order numbers.  I, for the life of me, cannot remember what the reason was but anyhow, our java apps used the correct order number and there was a disparity.  Sometimes we had to take the copy the order number from the MainFrame into our java apps/sql executor to see why things were not running correctly.  It was a pain in the butt to invert the numbers so I wrote this utility in 2003 with Sharp Develop to invert the values.  Double clicking the textbox copies the value to the clipboard (wonder what it will do under Vista).&lt;br /&gt;&lt;br /&gt;This might come in handy some day or to anyone else.  The file can be downloaded here: &lt;a href="http://www.mediafire.com/download.php?nmq3xthldgm"&gt;http://www.mediafire.com/download.php?nmq3xthldgm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-6619654349822645659?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/6619654349822645659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=6619654349822645659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6619654349822645659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6619654349822645659'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/07/text-inverter-application.html' title='Text Inverter Application'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-7189854264574992379</id><published>2008-06-29T10:57:00.004-05:00</published><updated>2008-06-29T12:39:05.984-05:00</updated><title type='text'>Stuff You Need</title><content type='html'>Eclipse/NetBeans&lt;br /&gt;Visual Studio (latest version)&lt;br /&gt;Resharper&lt;br /&gt;NHibernate&lt;br /&gt;Spring.NET&lt;br /&gt;Firebug&lt;br /&gt;Fiddler&lt;br /&gt;Process Explorer&lt;br /&gt;TCPView&lt;br /&gt;SQL Server Profiler&lt;br /&gt;Microsoft Virtual PC (only because it's free)&lt;br /&gt;ISO Recorder&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-7189854264574992379?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/7189854264574992379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=7189854264574992379' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/7189854264574992379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/7189854264574992379'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/06/toolbelt-for-net-development.html' title='Stuff You Need'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-4439427597936602540</id><published>2008-06-23T19:28:00.002-05:00</published><updated>2008-06-23T19:29:04.717-05:00</updated><title type='text'>Tweeting Out</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ik5g1oKiKWE/SGA_x8YIApI/AAAAAAAAABM/lEt_ROh91l0/s1600-h/tweets.JPG"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_ik5g1oKiKWE/SGA_x8YIApI/AAAAAAAAABM/lEt_ROh91l0/s320/tweets.JPG" alt="" id="BLOGGER_PHOTO_ID_5215238495748489874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Seems like I may be close to my tweeting days, which is a shame!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-4439427597936602540?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/4439427597936602540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=4439427597936602540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/4439427597936602540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/4439427597936602540'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/06/tweeting-out.html' title='Tweeting Out'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ik5g1oKiKWE/SGA_x8YIApI/AAAAAAAAABM/lEt_ROh91l0/s72-c/tweets.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-138678138136838103</id><published>2008-06-22T23:38:00.000-05:00</published><updated>2008-06-22T23:39:05.771-05:00</updated><title type='text'></title><content type='html'>Twitter is crapping out again!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-138678138136838103?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/138678138136838103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=138678138136838103' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/138678138136838103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/138678138136838103'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/06/twitter-is-crapping-out-again.html' title=''/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-416353180301867938</id><published>2008-05-18T18:17:00.002-05:00</published><updated>2008-05-18T18:20:51.860-05:00</updated><title type='text'></title><content type='html'>I just saw Ironman and it is an awesome movie!  I wonder, though, why was one of the bad dudes switching languages between Urdu and Arabic?  Then he goes on and talks to someone from a "small village" in Afghanistan and talks to him in Urdu...Wrong!  They speak Pushtu, from what I know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-416353180301867938?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/416353180301867938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=416353180301867938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/416353180301867938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/416353180301867938'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/05/i-just-saw-ironman-and-it-is-awesome.html' title=''/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-6208986086086855497</id><published>2008-05-06T21:21:00.000-05:00</published><updated>2008-05-06T21:22:28.105-05:00</updated><title type='text'>Twitter</title><content type='html'>Has anyone else noticed that &lt;a href="http://www.twitter.com"&gt;Twitter &lt;/a&gt;is down almost every day?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-6208986086086855497?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/6208986086086855497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=6208986086086855497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6208986086086855497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6208986086086855497'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/05/twitter.html' title='Twitter'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-7193833223940713350</id><published>2008-05-06T20:07:00.004-05:00</published><updated>2008-05-06T20:11:50.517-05:00</updated><title type='text'>PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE</title><content type='html'>&lt;span xmlns=""  style="font-size:85%;"&gt;&lt;p&gt;The other day one of our developers decided to create some code that he wanted to be accessible from SQL Server 2005 Stored Proc.  While he was on vacation, we deployed the application on the client's server for UAT and got the following message:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;"Executed as user: xxx\SVCSQLAGENT. An error occurred in the Microsoft .NET Framework while trying to load assembly id 65545. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: System.IO.FileLoadException: Could not load file or assembly…"&lt;br /&gt;&lt;/p&gt;&lt;p&gt;After digging around a little bit, I delegated the problem to one of my colleagues (Jos) who solved the problem promptly.  Below is the solution:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;ALTER DATABASE MY_DATABASE&lt;br /&gt;SET TRUSTWORTHY ON;&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;USE MY_DATABASE&lt;br /&gt;go&lt;br /&gt;sp_configure 'show advanced options', 1;&lt;br /&gt;GO&lt;br /&gt;RECONFIGURE;&lt;br /&gt;GO&lt;br /&gt;sp_configure 'Ole Automation Procedures', 1;&lt;br /&gt;GO&lt;br /&gt;RECONFIGURE;&lt;br /&gt;GO &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-7193833223940713350?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/7193833223940713350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=7193833223940713350' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/7193833223940713350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/7193833223940713350'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/05/permissionset-externalaccess-or-unsafe.html' title='PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-1397554914444586878</id><published>2008-04-26T20:03:00.006-05:00</published><updated>2008-04-26T21:04:01.563-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Accessing Controls on the Master Page</title><content type='html'>&lt;span style="font-size:85%;"&gt;The other day, a colleague of mine had a problem where he needed to disable a control on the master page.  The page that he was working on was fairly big, as far as the amount of data is concerned.  There were buttons on the master page that let the user manipulate the content page.  The problem was that master page got rendering way before the content page and if the user clicked on the button to control the content page, ASP.NET got ticked off and threw some kind of ViewState exception.&lt;br /&gt;&lt;br /&gt;The solution that I proposed was to disable the button until the content page gets rendered and have the content page enable the button on the master page using javascript.  Since the button was on the master page, we had to do the following&lt;br /&gt;&lt;br /&gt;1.  Added a method that will find any control recursively.  We “borrowed” this code from the Coding Horror site &lt;a href="http://www.codinghorror.com/blog/archives/000307.html"&gt;here&lt;/a&gt;&lt;br /&gt;2.  Add a public variable that was the actual id of the control we were trying to access.  ASP.NET assigns a unique id to each control and needed to make sure we get the exact id&lt;br /&gt;3.  Used javascript after the data was done rendering to get the element by id and enabled it&lt;br /&gt;&lt;br /&gt;Content page looked like this&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt; public string btnName;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)    {&lt;br /&gt;Control o = FindControlRecursive(this.Master, "Button1");&lt;br /&gt;btnName = o.UniqueID;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And the javascript looks like this&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;var lnk = document.getElementById("&lt;%= btnName %&gt;");&lt;br /&gt;alert("enabling the button");&lt;br /&gt;lnk.disabled = false;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;You can download the solution &lt;a href="http://www.mediafire.com/?oumez2ujyij"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-1397554914444586878?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/1397554914444586878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=1397554914444586878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/1397554914444586878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/1397554914444586878'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/04/accessing-controls-on-master-page.html' title='Accessing Controls on the Master Page'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-609938449269785676</id><published>2008-04-24T00:16:00.001-05:00</published><updated>2008-04-24T00:16:13.145-05:00</updated><title type='text'>I think I need to blog about…</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;There have been a couple of topics that I want to blog about but due to several factors, laziness mainly, I haven't been able to do so.  The topics that I am going to write about are&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt; Controlling controls on the master page in an ASP.NET site&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Playing more with the barcodes with iTextSharp&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-609938449269785676?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/609938449269785676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=609938449269785676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/609938449269785676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/609938449269785676'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/04/i-think-i-need-to-blog-about.html' title='I think I need to blog about…'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-2218223608735967945</id><published>2008-04-14T22:21:00.002-05:00</published><updated>2008-04-14T22:23:30.632-05:00</updated><title type='text'>Amazon Toll Free Number</title><content type='html'>&lt;span style="font-size:85%;"&gt;If anyone is looking for amazon.com's toll free number, here it is:&lt;br /&gt;(800) 201-7575&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-2218223608735967945?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/2218223608735967945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=2218223608735967945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/2218223608735967945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/2218223608735967945'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/04/amazon-toll-free-number.html' title='Amazon Toll Free Number'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-3641062408797126708</id><published>2008-04-12T19:31:00.004-05:00</published><updated>2008-04-12T19:37:41.311-05:00</updated><title type='text'>Office 2007 and Spell Check</title><content type='html'>&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;At office, we are in the process of upgrading from Office 2003 to Office 2007.  Couple of weeks ago, I decided to bite the bullet and upgraded to Office 2007.  At first, the I wasn't comfortable with the new "Ribbon" interface, but the more I used it the more I liked it.  I started noticing that Word was not doing a good job of catching my spelling mistakes; to prove myself correct, I typed bunch of garbage and there were no red underlines.  I hit F7 and again it failed to register anything.&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;After a couple weeks of living without the spell check, I was annoyed enough to where I decided to google it.  Seems like I wasn't the only dude having problems after upgrading.  After trying several things that I read on blogs, my spelling didn't get any better.  After looking more I stumbled upon Microsoft KB document that helped me out. &lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;Basically, you have to delete a few registry keys.  These are listed below.  Please &lt;strong&gt;DO NOT&lt;/strong&gt; take these steps lightly as your computer can become unusable.  Always export your setting as a backup scenario.  Once you delete these keys and start Word, it will regenerate these keys and you should be in business.&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word  &lt;br /&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Proofing Tools&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;You can find the the original document from Microsoft &lt;a href="http://support.microsoft.com/kb/822005/en-us"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-3641062408797126708?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/3641062408797126708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=3641062408797126708' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/3641062408797126708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/3641062408797126708'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/04/office-2007-and-spell-check.html' title='Office 2007 and Spell Check'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-8730407333226584670</id><published>2008-04-08T01:55:00.001-05:00</published><updated>2008-04-12T19:34:28.709-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS6 Compression'/><title type='text'>Turn on IIS6 Compression</title><content type='html'>&lt;span style="font-family: verdana;font-size:85%;" &gt;&lt;br /&gt;&lt;span xmlns=""&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;When I was working for my previous employer, one of the applications that we had developed was based on the "Software as a Service" (SaaS) premise. I was at the client site (a school district), at a VERY remote location with no AT&amp;amp;T cell phone service, and loading their data over the internet into our system. This was our first attempt at SaaS so we were learning as we went along. At one point, we had about 5 different people loading data into our system by scanning the serial numbers on the items. During our testing, within our network, the application was scaling just fine and we were thinking that we will gain insight into what else we need to do to make it scale even more.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Since the application was written in ASP.NET using the 2.0 Framework, every scan required a postback. As it turned out, the internet connection was slow at the client site but not that slow. They were using a dedicated T1 amongst the school district and it was summer time, 1 week before the start of fall session. There should have been enough bandwidth to enter the data without any noticeable latency but we were waiting about 20 seconds per scan. My first thought was that the internet connection back in the office was having troubles (yeah, we were sharing our T1 in the office with this application!). After confirming back at the office that we were not having any issues, I had to turn my attention to the amount of data being chunked back and forth. I used the excellent &lt;/span&gt;&lt;a href="http://www.fiddlertool.com/fiddler/"&gt;&lt;span style="font-size:85%;"&gt;Fiddler&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt; tool to figure out the data transfer and the roundtrip time. SQL Server Profiler also came in handy as I was watching the tables being hit. Each scan was posting back about 100K of data in about 10 seconds. That means that the application was taking 10 seconds to process the information which, to me, was unacceptable. Since this was our beta test customer, nobody was panicking except for me and my boss.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;After the first week at the client and nowhere being done, something had to be done as I didn't plan on not being ready when the school opened. So, over the weekend my first stab was at "fixing" the indexes. That helped…just a little. Now, each scan was taking about 7 seconds to process. Still not good! After looking at the code, (I was not the original developer and was &lt;strong&gt;only&lt;/strong&gt; helping out since "the dude" had gone on vacation) I realized that NHibernate was not setup correctly and it was issuing N+1 queries. I fixed that as well and the application started humming. The data was getting loaded in less than half a second now.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;This was only half the battle. We had to load thousands of items and at this rate it would have taken us forever. There was still the issue of sending 100K of data across the country. OK, I have done enough development to know that pages can be g-zipped. On the java side, I had written custom filters to compress the jsp pages and expected to find something on the ASP.NET side as well. First reads of the symptom were discouraging as it was hard to turn it on IIS5 (Windows XP) and it has issues, but luckily at home I use Win2K3 for my main machine and was able to find several documents that showed how to turn it on IIS6. After messing with the settings, I was able to get things going. 100K of data transfer was history; IIS6 was doing an excellent job of compression the data and we were only transferring about 30K of data. This made my week bearable and we were able to load all of the data that was required before the week was over.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Of course, I turned on AJAX in the coming weeks and the application ran just as fast on a dialup as on broadband (except for the initial load) but that wasn't bad either on the dialup due to compression.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;I am writing this blog 9 months after the fact and I the site that came in really handy was Scott Forsyth's blog especially this post&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://weblogs.asp.net/owscott/archive/2004/01/12/57916.aspx"&gt;http://weblogs.asp.net/owscott/archive/2004/01/12/57916.aspx&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="text-decoration: underline;font-size:85%;" &gt;&lt;strong&gt;To Turn On IIS6 Compression&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;From the IIS snap-in, right-click on the Web Sites node and click on Properties&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Select the Service tab - Enable Compress application files&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Enable Compress static files&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Select a new Temporary directory or leave the default in there&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Make sure The IUSR_{machinename} has write permissions to this directory. This is the id that IIS runs as&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Save and close the Web Site Properties dialog&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ik5g1oKiKWE/R_r47YZZpGI/AAAAAAAAAA0/_bZ4p-hGqtk/s1600-h/1.JPG"&gt;&lt;span style="font-size:85%;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5186731619915506786" style="cursor: pointer;" alt="" src="http://3.bp.blogspot.com/_ik5g1oKiKWE/R_r47YZZpGI/AAAAAAAAAA0/_bZ4p-hGqtk/s320/1.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-decoration: underline;font-size:85%;" &gt;&lt;strong&gt;Create a Web Service Extension&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;In the IIS snap-in right-click Web Service Extensions&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Add a new web service extension&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Call it HTTP Compression&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Point it to c:\windows\system32\inetsrv\gzip.dll&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Select Set extension status to Allowed&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ik5g1oKiKWE/R_r5M4ZZpHI/AAAAAAAAAA8/VFKdsXl558Y/s1600-h/2.JPG"&gt;&lt;span style="font-size:85%;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5186731920563217522" style="cursor: pointer;" alt="" src="http://1.bp.blogspot.com/_ik5g1oKiKWE/R_r5M4ZZpHI/AAAAAAAAAA8/VFKdsXl558Y/s320/2.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-decoration: underline;font-size:85%;" &gt;&lt;strong&gt;Changing Metabase.xml&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Shutdown IIS&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;Backup %windir%/system32/inetsrv/Metabase.xml to your desktop or another directory away from inetsrv directory&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Open Metabase.xml for editing&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Find "&amp;lt;IisCompressionScheme" section in the xml file. There should be 2 entries for this. One for deflate and one for gzip. Both these sections will need to be edited&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Update HcDynamicCompressionLevel to 9. Valid values are from 0 to 10. 10 is not recommended by Microsoft.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;Make sure to follow the already entered format for the below sections&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Update HcScriptFileExtensions and add aspx and axd&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Update HCFileExtensions and add css and js&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Save the file and restart IIS.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Once IIS is up and running, make sure to browse the deployed websites to make sure everything is running as expected&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;There should be some files in the temporary directory. If there are no files in that directory, browse some pages with css files. If there still aren't any files in the temporary directory, you may have to restart this process again.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Afterwards, I found out that you can use the &lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;amp;displaylang=en"&gt;&lt;span style="font-size:85%;"&gt;Metabase Explorer&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt; from Microsoft to edit the Metabase file as well.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-8730407333226584670?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/8730407333226584670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=8730407333226584670' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/8730407333226584670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/8730407333226584670'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/04/turn-on-iis6-compression.html' title='Turn on IIS6 Compression'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ik5g1oKiKWE/R_r47YZZpGI/AAAAAAAAAA0/_bZ4p-hGqtk/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-7408326210095990696</id><published>2008-03-23T20:33:00.000-05:00</published><updated>2008-03-23T22:42:18.921-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Media Player 11'/><category scheme='http://www.blogger.com/atom/ns#' term='Rhapsody'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>Installing Windows Media Player 11 on Windows Server 2003</title><content type='html'>&lt;span style="font-size:85%;"&gt;I use Windows Server 2003 as my primary development machine for various reasons.  The other day, I decided that I will start listening to my music library on my development machine.  I tried installing the Yahoo Jukebox and Rhapsody both of which failed miserably.  iTunes installed successfully, but I don't like it...besides it installs QuickTime and I plain just hate that!  Also, I tried watching movies on NetFlix and it told me that it needed WM Player 11 for DRM purposes.&lt;br /&gt;&lt;br /&gt;After doing some research, I found out that WM player 11 is not available for Win 2K3.  So, off I went looking for how to install WMP 11 on my machine.  The process turned out to be very simple on my machine running SP2.  You can get the details from &lt;span style="font-family:verdana;"&gt;&lt;a href="http://www.msblog.org/2006/12/17/install-windows-media-player-11-on-windows-server-2003/"&gt;Zack Whittaker's&lt;/a&gt; blog.&lt;br /&gt;&lt;br /&gt;Even though, the music players still didn't work, I can now watch media files from NetFlix.  After some digging around, I gave up and ran Rhapsody in compatibility mode.  Out with iTunes!&lt;br /&gt;&lt;br /&gt;It also goes to show the dependency everyone, except for Apple, has on Microsoft.  And, why is the Xbox360 not able to connect to my machine?  May be, Yahoo should let Microsoft buy them after all.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-7408326210095990696?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/7408326210095990696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=7408326210095990696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/7408326210095990696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/7408326210095990696'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/03/installing-windows-media-player-11-on.html' title='Installing Windows Media Player 11 on Windows Server 2003'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-8498707300090760287</id><published>2008-02-25T20:57:00.000-06:00</published><updated>2008-02-25T21:05:58.567-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ssl'/><category scheme='http://www.blogger.com/atom/ns#' term='cross domain'/><title type='text'>uncaught exception: Permission denied to get property</title><content type='html'>&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;The other day, we implemented SSL on our production site and all of a sudden some of the popup screens, that were calling javascript functions on the opening window, stopped working.  After digging around this is what I discovered:&lt;br /&gt;&lt;br /&gt;You cannot switch protocols between https and http or the other way around.  As far as the browsers are concerned, this is a cross-domain permissions issue.  Yes, even though the application may be calling a function on the same domain, the browsers treat it as cross domain call.  Unless of course, you are truly make a cross domain call.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-8498707300090760287?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/8498707300090760287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=8498707300090760287' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/8498707300090760287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/8498707300090760287'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/02/uncaught-exception-permission-denied-to.html' title='uncaught exception: Permission denied to get property'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-6027291397657509484</id><published>2008-02-19T22:27:00.000-06:00</published><updated>2008-02-21T13:42:53.420-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OneNote'/><title type='text'>Microsoft OneNote Trick</title><content type='html'>&lt;span style="font-size:85%;"&gt;Today, I was looking for Google Desktop plugin for OneNote and found a little trick.  Apparently, you can do some interesting math in your notes.  For example, you can type&lt;br /&gt;&lt;/span&gt;  &lt;p   style="margin: 0in;font-family:Consolas;font-size:10pt;"&gt;&lt;span style="font-size:85%;"&gt;Sqrt(33) + 12 + 254 = &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;and hit the enter key to show your results.  You can find the original post and more cool tricks &lt;a href="http://blogs.msdn.com/chris_pratley/archive/2006/02/27/one-percent-for-art-napkin-math-a-k-a-the-calculator-in-onenote-2007.aspx"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-6027291397657509484?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/6027291397657509484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=6027291397657509484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6027291397657509484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6027291397657509484'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/02/microsoft-onenote-trick.html' title='Microsoft OneNote Trick'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-2641867254675049992</id><published>2008-02-13T20:00:00.000-06:00</published><updated>2008-02-13T21:36:02.382-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xbox 360'/><category scheme='http://www.blogger.com/atom/ns#' term='halo'/><title type='text'>XBox 360 -- The Return</title><content type='html'>&lt;span style="font-size:85%;"&gt;I finally got my 360 back last Thursday.  It seems like these things are sent to Mexico for repair.  After 2 weeks of doing nothing with my console, Microsoft decided that it would be better to exchange my console for a different one.&lt;br /&gt;&lt;br /&gt;Since I was checking the status on my console several times a day, I noticed that one day the status changed to something like "No repair info".  At first I started to freak out; then I thought they must have shipped it back...but where is the return info?  Hmmm...3 LONG days later, the status changed to "Device shipped to customer" and the serial number looked different since mine, from what  I could remember, had lots of 6s and 0s.  Sure enough, I got a nice little letter from Microsoft declaring that my console had been swapped out so that I could get back to gaming.&lt;br /&gt;&lt;br /&gt;When I got the console back, I fired it up only to notice the freaking CD drive was louder than a turbo diesel truck!  I wasn't too happy about this "new" development.  OK, let's test Halo...what the f@#k?!  Why does it keep locking and restarting the game...I wasn't getting a good feeling in my gut.  I decided to start the level again and viola, it worked!  I was  kinda excited as well as upset...I  am  playing  at the  legendary level and  had  to lose a lot of progress.&lt;br /&gt;&lt;br /&gt;I guess, you win some and you lose some.  As long as you are in the winning column more than the losing column, it should be alright&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-2641867254675049992?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/2641867254675049992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=2641867254675049992' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/2641867254675049992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/2641867254675049992'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/02/xbox-360-return.html' title='XBox 360 -- The Return'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-2385039070550881971</id><published>2008-01-23T20:53:00.000-06:00</published><updated>2008-02-13T20:00:01.029-06:00</updated><title type='text'>XBox 360 -- The Coffin</title><content type='html'>The coffin for my 360 arrived today.  I promptly packed it up and it will be shipping out tomorrow morning.  Let's just hope that it has a quicker turn around time than 2 months&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-2385039070550881971?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/2385039070550881971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=2385039070550881971' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/2385039070550881971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/2385039070550881971'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/01/xbox-360-coffin.html' title='XBox 360 -- The Coffin'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-5468573805285118043</id><published>2008-01-18T23:31:00.000-06:00</published><updated>2008-01-20T22:18:49.175-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xbox 360'/><category scheme='http://www.blogger.com/atom/ns#' term='ring of death'/><title type='text'>Aaaahhh...Joys of Being an Xbox 360 Owner</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_ik5g1oKiKWE/R5JOEEwQgAI/AAAAAAAAAAs/GZCVR42YW3c/s1600-h/drod.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5157270355195232258" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_ik5g1oKiKWE/R5JOEEwQgAI/AAAAAAAAAAs/GZCVR42YW3c/s320/drod.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I was big into computer/console games when I was in college. Once I entered my professional life, I kind of gave up on upgrading my computer every year just so that I can play the latest games. So, after years of inactivity, my little brother convinced me to buy an Xbox 360 console this past April. I did my research and read horror stories about the dreaded "&lt;span style="color:#ff0000;"&gt;Red Ring of Death&lt;/span&gt;". I thought to myself, what are my chances of getting a bummed console?&lt;br /&gt;&lt;br /&gt;I bit the bullet and bought my first Xbox from the beloved Wal-Mart for instant gratification. 5 days into my gaming, just when I was getting used to the controller, the red lights lit up...I packed up my dead console and went back to the wally world and explained what had just happened. It felt like I had been cavity searched before they took the stupid thing back!&lt;br /&gt;&lt;br /&gt;OK...not gonna get another one...not gonna do it...no way Jose...should I do it?...let me think about it...lightning doesn't hit the same spot twice...yeah, that makes sense...I should get another one...remember, it was fun!..OK...I got another one...from amazon.com this time.&lt;br /&gt;&lt;br /&gt;Sure, I have been hooked on Halo ever since I first played it. I own the whole trilogy...and I love playing it. So, last night after the kids were in bed, it was Halo time baby!&lt;br /&gt;&lt;br /&gt;NO IT WASN'T! My console locked up right when the Xbox logo came on the screen. None of the light came on...hmm...not a big deal...let's try again...this is ridiculous...I am seeing red...no, I am seeing the "Ring 'o Death!" OH CRAP!!!!&lt;br /&gt;&lt;br /&gt;This is total &lt;strong&gt;bullcrap&lt;/strong&gt;! Microsoft should have done a better job of getting its suppliers and materials right. If they were in such a competition to come out earlier than Sony, the least they could have done was to make sure that the console were made to last at least a year or two before Sony got its mojo going! Who dumps $400 (I know it's cheaper now) on a piece of hardware just so that it can go poof twice in less than a year?! I can't!&lt;br /&gt;&lt;br /&gt;I am just glad that they covered the console, which I still happen to love, for 3 years! I am going to call Microsoft in the morning and hopefully get this resolved soon, by which I mean 2 months or more of course!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-5468573805285118043?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/5468573805285118043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=5468573805285118043' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/5468573805285118043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/5468573805285118043'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/01/aaaahhhjoys-of-being-xbox-360-owner.html' title='Aaaahhh...Joys of Being an Xbox 360 Owner'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ik5g1oKiKWE/R5JOEEwQgAI/AAAAAAAAAAs/GZCVR42YW3c/s72-c/drod.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-335761241293959395</id><published>2008-01-17T20:09:00.013-06:00</published><updated>2010-05-15T08:40:03.689-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iText'/><category scheme='http://www.blogger.com/atom/ns#' term='barcode'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Barcode Generation Using iText</title><content type='html'>&lt;span style="font-size: 85%;"&gt;In my previous life as a java developer, I had used &lt;a href="http://www.lowagie.com/iText/"&gt;iText&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt; to generate barcodes and attach them to pdf files for faxing. Recently, we had a need where our warehouse users were mistyping the RMA code thus slowing down the process. We decided that barcodes would be a perfect idea as the warehouse is littered with scanners.&lt;br /&gt;&lt;br /&gt;I was pleasantly surprised to find that iText (&lt;a href="http://itextsharp.sourceforge.net/"&gt;iTextSharp&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt;) has been ported to the .Net world without any dependencies on the J# runtime. Below is a sample piece of code to generate a barcode as a png file&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="c-sharp" name="code"&gt;private void GenerateBarCode(string strBarCodeValue) {&lt;br /&gt; //Barcode&lt;br /&gt;Response.ContentType = "image/png";&lt;br /&gt;MemoryStream stream = new MemoryStream();&lt;br /&gt;Document doc = new Document(PageSize.A4, 50, 50, 50, 50);&lt;br /&gt;PdfWriter writer = PdfWriter.GetInstance(doc, stream);&lt;br /&gt;doc.Open();&lt;br /&gt;&lt;br /&gt;PdfContentByte cb = writer.DirectContent;&lt;br /&gt;Barcode39 code39 = new Barcode39();&lt;br /&gt;code39.Code = strBarCodeValue;&lt;br /&gt;code39.StartStopText = true;&lt;br /&gt;code39.GenerateChecksum = false;&lt;br /&gt;code39.Extended = true;&lt;br /&gt;&lt;br /&gt;MemoryStream mem = new MemoryStream();&lt;br /&gt;code39.CreateDrawingImage(System.Drawing.Color.Black, System.Drawing.Color.White)&lt;br /&gt;.Save("E:\\abcd.png");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-335761241293959395?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/335761241293959395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=335761241293959395' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/335761241293959395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/335761241293959395'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/01/barcode-generation-using-itext.html' title='Barcode Generation Using iText'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-6856260678615459011</id><published>2008-01-14T21:03:00.000-06:00</published><updated>2008-01-19T00:49:12.744-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='date validation'/><title type='text'>Date Validation Using Javascript in ASP.Net</title><content type='html'>I ran across an issue today where I had to use javascript to validate the user date. The pattern I matched against is "mm/dd/yyyy". Below is the code that does the trick&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;  var pattern = /^(?=\d)(?:(?:(?:(?:(?:0?[13578]&amp;#124;1[02])(\/&amp;#124;-&amp;#124;\.)31)\1&amp;#124;(?:(?:0?[1,3-9]&amp;#124;1[0-2])(\/&amp;#124;-&amp;#124;\.)(?:29&amp;#124;30)\2))(?:(?:1[6-9]&amp;#124;[2-9]\d)?\d{2})&amp;#124;(?:0?2(\/&amp;#124;-&amp;#124;\.)29\3(?:(?:(?:1[6-9]&amp;#124;[2-9]\d)?(?:0[48]&amp;#124;[2468][048]&amp;#124;[13579][26])&amp;#124;(?:(?:16&amp;#124;[2468][048]&amp;#124;[3579][26])00))))&amp;#124;(?:(?:0?[1-9])&amp;#124;(?:1[0-2]))(\/&amp;#124;-&amp;#124;\.)(?:0?[1-9]&amp;#124;1\d&amp;#124;2[0-8])\4(?:(?:1[6-9]&amp;#124;[2-9]\d)?\d{2}))($&amp;#124;\ (?=\d)))?(((0?[1-9]&amp;#124;1[012])(:[0-5]\d){0,2}(\ [AP]M))&amp;#124;([01]\d&amp;#124;2[0-3])(:[0-5]\d){1,2})?$/;&lt;br /&gt;       function validateDate(userDate) {&lt;br /&gt;         var fld = document.getElementById(userDate);&lt;br /&gt;         if(fld.value != &amp;quot;&amp;quot;) {&lt;br /&gt;            if(!fld.value.match(pattern)) {&lt;br /&gt;              alert(&amp;quot;Date must be in mm/dd/yyyy format&amp;quot;);&lt;br /&gt;            }&lt;br /&gt;          }&lt;br /&gt;       }&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-6856260678615459011?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/6856260678615459011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=6856260678615459011' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6856260678615459011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/6856260678615459011'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/01/date-validation-using-javascript-in.html' title='Date Validation Using Javascript in ASP.Net'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4081509313348409613.post-950766510029798536</id><published>2008-01-14T20:27:00.000-06:00</published><updated>2008-01-15T17:54:30.003-06:00</updated><title type='text'>In the Beginning</title><content type='html'>&lt;span style="font-size:85%;"&gt;This is my first blog. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;I am a software developer by trade and have been writing software for a while. I have been thinking about blogging about coding issues that I run into at work and how I solve these issues. The problem is that I forget how I "fixed" a certain problem and have to find the solution again.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;I will be writing short blurbs about:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;1. &lt;a href="http://java.sun.com/"&gt;java&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;2. &lt;a href="http://msdn2.microsoft.com/en-us/vcsharp/default.aspx"&gt;c#&lt;/a&gt;, &lt;a href="http://www.asp.net/"&gt;asp.net&lt;/a&gt;, and .net in general&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;3. &lt;a href="http://www.hibernate.org/"&gt;hibernate &lt;/a&gt;and &lt;a href="http://www.hibernate.org/343.html"&gt;nhibernate&lt;/a&gt;&lt;/span&gt;&lt;a href="http://www.hibernate.org/343.html"&gt; &lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;4. &lt;a href="http://www.springframework.org/"&gt;spring &lt;/a&gt;and &lt;a href="http://www.springframework.net/"&gt;spring.net&lt;/a&gt;&lt;/span&gt;&lt;a href="http://www.springframework.net/"&gt; &lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;5. misc.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;This blog is mostly for my consumption, but I will be happy if it comes in handy for others as well.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4081509313348409613-950766510029798536?l=twinzlover.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://twinzlover.blogspot.com/feeds/950766510029798536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4081509313348409613&amp;postID=950766510029798536' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/950766510029798536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4081509313348409613/posts/default/950766510029798536'/><link rel='alternate' type='text/html' href='http://twinzlover.blogspot.com/2008/01/in-beginning.html' title='In the Beginning'/><author><name>Twinz Lover</name><uri>http://www.blogger.com/profile/02537897502007254243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
