<?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:blogger='http://schemas.google.com/blogger/2008' 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-7023576929606369407</id><updated>2026-05-22T23:16:47.065+02:00</updated><category term=".net"/><category term="asp.net"/><category term="C#"/><category term="exception"/><category term="SQL"/><category term="C++"/><category term="OpenCV"/><category term="weeknumber"/><category term="SQL Server"/><category term="datetime"/><category term="iis"/><category term="javascript"/><category term="Analytics"/><category term="Authentication"/><category term="Entity Framework"/><category term="Facebook"/><category term="Google+"/><category term="Guide"/><category term="Installation"/><category term="Magento"/><category term="SQL Azure"/><category term="Social Media"/><category term="Task scheduler"/><category term="Windows"/><category term="Windows Azure"/><category term="convert"/><category term="crystal reports"/><category term="culture"/><category term="json"/><category term="menu"/><category term="multi-threading"/><category term="transparency"/><category term="visual studio"/><category term="web.config"/><title type='text'>Jepson&#39;s Blog</title><subtitle type='html'>A blog about anything a software engineer might encounter during his programming efforts.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-5089486422033834180</id><published>2012-11-28T10:23:00.000+01:00</published><updated>2015-11-29T10:23:21.848+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenCV"/><title type='text'>Rotation in 3D using OpenCV&#39;s warpPerspective</title><summary type="text">In order to easily rotate an image in 3D space, I have written a simple method that will do just that. It accepts rotations (in degrees) along each of the three axis (x, y and z), with 90 degrees being the &quot;normal&quot; position.
It also supports translations along each of the axis, and a variable focal distance (you would usually want the focal distance to be the same as your dz).

The parameters are</summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/5089486422033834180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/5089486422033834180' title='33 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5089486422033834180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5089486422033834180'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2012/11/rotation-in-3d-using-opencvs.html' title='Rotation in 3D using OpenCV&#39;s warpPerspective'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>33</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-6783851047708248816</id><published>2012-10-26T18:16:00.000+02:00</published><updated>2012-11-28T11:18:22.138+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenCV"/><category scheme="http://www.blogger.com/atom/ns#" term="transparency"/><title type='text'>Overlay transparent image in OpenCV</title><summary type="text">
It seems OpenCV does not provide very much support for transparent images. It has images with 4 channels, which are treated as BGRA images, with the fourth channel being the Alpha channel. It also supports saving these images using the PNG format, yet it does not support properly displaying these images in highgui, nor does it support combining these images.









I have looked a while for a </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/6783851047708248816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/6783851047708248816' title='58 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/6783851047708248816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/6783851047708248816'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2012/10/overlay-transparent-image-in-opencv.html' title='Overlay transparent image in OpenCV'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis3qq9zlZKITiZTD9HlTJ-hntYM4PEpcC-Kyy8oqaFAsjvkarMh5KvK6IMl-q4OWTzS6sp2ps7bDV6bV7Hs0GY5AGe6dIBGxnZ0fYpUm14k61F_tEfp6_ElYI0ubov6g7Jrg1A1Kn_a54y/s72-c/Overlay.png" height="72" width="72"/><thr:total>58</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-5133752187115194279</id><published>2012-07-11T21:55:00.000+02:00</published><updated>2012-07-31T14:37:34.241+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Guide"/><category scheme="http://www.blogger.com/atom/ns#" term="Installation"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenCV"/><title type='text'>Installation guide: OpenCV 2.4 with Visual Studio C++ 2010</title><summary type="text">After some trouble installing OpenCV 2.4 in Windows and using it with Visual C++ 2010, I decided to write a post about this, so I can hopefully save you some time figuring this one out.&amp;nbsp;It is based on this wiki, but that describes how to build with CMake etc, which is not necessary (anymore?).

Okay, so first you need to download OpenCV 2.4 here. After downloading, you need to extract it. I </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/5133752187115194279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/5133752187115194279' title='297 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5133752187115194279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5133752187115194279'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2012/07/installation-guide-opencv-24-with.html' title='Installation guide: OpenCV 2.4 with Visual Studio C++ 2010'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeaWyiLTVnkrum4ifdsgXfixxwCCTxiogZ0Uln9J8UE0tyAviKDdcaSRlGTypV4mkYfg0Oj6GDiDo2fYZB9ZF_ocPZL0JRyIBu-xyt3w_ORitidk8XmMsGFXZEHLQI_ieRXnYfzP1wbJ8t/s72-c/SystemProperties.PNG" height="72" width="72"/><thr:total>297</thr:total><georss:featurename>Rijen, The Netherlands</georss:featurename><georss:point>51.5841138 4.9241989</georss:point><georss:box>51.5446483 4.8452349 51.623579299999996 5.0031629</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-8147770146930157192</id><published>2012-02-09T20:22:00.000+01:00</published><updated>2012-02-12T14:24:12.014+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="Google+"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="Social Media"/><title type='text'>Add a Facebook &quot;like&quot; and Google &quot;+1&quot; button to Magento and integrate them with Google Analytics</title><summary type="text">Let&#39;s start with adding the Facebook like button. On this page: https://developers.facebook.com/docs/reference/plugins/like/, you can create the button as you would like it to appear on your site. When you press &quot;Get Code&quot;, you&#39;ll get 2 pieces of code.

First we have to add the JavaScript code. To do this, open your head.phtml page, which can be found here:
app/design/frontend/&amp;lt;your template&amp;</summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/8147770146930157192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/8147770146930157192' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/8147770146930157192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/8147770146930157192'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2012/02/add-facebook-like-and-google-1-button.html' title='Add a Facebook &quot;like&quot; and Google &quot;+1&quot; button to Magento and integrate them with Google Analytics'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAfY_uJ57Af48GO5x25_dHwmF7BfkF4faGOT8V_lwPqoHsV8dsM7B5J_fIyIYp20AYaPVgVta8a-znAp7fQ9PcZHpK-FR1Fl0H4QQBfzRM-o9ysRKOAUt0EmfUr_DIjXjPbynePWB78EJ0/s72-c/Screen+Shot+2012-02-09+at+20.08.11.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-1825195378954850539</id><published>2011-11-29T10:14:00.001+01:00</published><updated>2012-02-12T19:12:01.124+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="exception"/><category scheme="http://www.blogger.com/atom/ns#" term="iis"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="json"/><category scheme="http://www.blogger.com/atom/ns#" term="web.config"/><title type='text'>Error during serialization or deserialization using the JSON JavaScriptSerializer</title><summary type="text">
Today one of the internal web applications that we have wouldn&#39;t run properly on my development machine (it works fine on the production server). When opened it would produce the following exception:



Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.



It seems that the production </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/1825195378954850539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/1825195378954850539' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/1825195378954850539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/1825195378954850539'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2011/11/error-during-serialization-or.html' title='Error during serialization or deserialization using the JSON JavaScriptSerializer'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-7522825664835510385</id><published>2011-11-22T20:27:00.003+01:00</published><updated>2011-12-06T11:16:02.420+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>The Null coalescing operator</title><summary type="text">It seems that a lot of people do not know of the&amp;nbsp;existence&amp;nbsp;of this handy little operator, so I decided to put it up here, so it may help somebody clean up their code.

Have you ever had a Nullable&amp;lt;...&amp;gt; type which you needed to read to a regular value type, but needed a &quot;default&quot; value for when it was NULL, as the regular value type cannot handle it?
Chances are, you&#39;ve written it </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/7522825664835510385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/7522825664835510385' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/7522825664835510385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/7522825664835510385'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2011/11/null-coalescing-operator.html' title='The Null coalescing operator'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-6853808998247973704</id><published>2011-11-22T20:15:00.001+01:00</published><updated>2014-07-08T11:47:10.693+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Entity Framework: duplicate rows in resultset from a view</title><summary type="text">After including a view I have in my database in an Entity Framework data model, I noticed that for some strange reason, the result was showing duplicates. When a set should have for instance 10 different rows, it might contain only 4 different rows, some of which were duplicated so it was still a total of 10 rows.
The view itself showed the correct results, but when called from code using the </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/6853808998247973704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/6853808998247973704' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/6853808998247973704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/6853808998247973704'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2011/11/enitity-framework-duplicate-rows-in.html' title='Entity Framework: duplicate rows in resultset from a view'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-5757318627306192597</id><published>2011-11-22T20:06:00.000+01:00</published><updated>2012-02-12T19:11:25.965+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Task scheduler"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Windows Task Scheduler error 2147942667</title><summary type="text">If you have created a task within Windows Task Scheduler, you might encounter a task that does not run properly. When you look into the history of the task, you might find the following error message:

Task Scheduler failed to start instance &quot;&amp;lt;guid value&amp;gt;&quot; of &quot;&amp;lt;task name&amp;gt;&quot; task for user &quot;&amp;lt;user name&amp;gt;&quot; . Additional Data: Error Value: 2147942667.

The reason for this error is the </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/5757318627306192597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/5757318627306192597' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5757318627306192597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5757318627306192597'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2011/11/windows-task-scheduler-error-2147942667.html' title='Windows Task Scheduler error 2147942667'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-9030760728495348913</id><published>2011-02-25T22:17:00.005+01:00</published><updated>2011-02-25T23:08:51.832+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Azure"/><title type='text'>aspnet_regsql.exe doesn&#39;t work with SQL Azure</title><summary type="text">If you want to create the database structure for using Forms Authentication in your Windows Azure hosted ASP.Net application, you&#39;ll probably have noticed that running aspnet_regsql.exe on your Azure database doesn&#39;t work.
I have tried merging a local database using Red Gate SQL Compare 9 (you can of course also use the SQL Azure Migration Wizard), but that also gave me some errors regarding some</summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/9030760728495348913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/9030760728495348913' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/9030760728495348913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/9030760728495348913'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2011/02/aspnetregsqlexe-doesnt-work-with-sql.html' title='aspnet_regsql.exe doesn&#39;t work with SQL Azure'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-725955273031689602</id><published>2011-01-09T22:10:00.003+01:00</published><updated>2011-01-21T17:09:33.274+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="multi-threading"/><title type='text'>Thread.Sleep(1) waits approx. 15 ms in stead of 1</title><summary type="text">Ever noticed how the time Thread.Sleep(int x) waits is not equal to x? I just noticed it happening with 2 threads with different values for the sleep, yet they were running just as quick.
After some research I discovered that the .Net runtime and Windows map this to a lower resolution in time, due to the way they handle threads. According to some sites it is 15.6 ms.
This means that any x between</summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/725955273031689602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/725955273031689602' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/725955273031689602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/725955273031689602'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2011/01/threadsleep1-waits-approx-15-ms-in.html' title='Thread.Sleep(1) waits approx. 15 ms in stead of 1'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-3357084493631542311</id><published>2011-01-05T20:08:00.005+01:00</published><updated>2011-01-07T19:10:06.332+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="exception"/><title type='text'>ThreadAbortException on Response.Redirect(), Response.End() and Response.Transfer()</title><summary type="text">If you have ever used a call to Response.Redirect(&quot;url&quot;),&amp;nbsp;Response.End() or&amp;nbsp;Server.Transfer()&amp;nbsp;within a try block, you will probably have noticed that these calls always throw a ThreadAbortException.
This is normal behaviour, but can mess up your program if the corresponding catch is executed unexpectedly.
To avoid this, catch the ThreadAbortException in a separate catch, or write a</summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/3357084493631542311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/3357084493631542311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/3357084493631542311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/3357084493631542311'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2011/01/threadabortexception-on.html' title='ThreadAbortException on Response.Redirect(), Response.End() and Response.Transfer()'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-5343164634129565848</id><published>2010-12-30T15:54:00.009+01:00</published><updated>2011-01-05T21:07:56.026+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="crystal reports"/><category scheme="http://www.blogger.com/atom/ns#" term="exception"/><title type='text'>Crystal Reports: The maximum report processing jobs limit configured by your system administrator has been reached.</title><summary type="text">This exception is produced by Crystal Reports when the maximum number of concurrent report processes have been initiated.&amp;nbsp;I have had troubles with this exception in my asp.net application, but at first it seemed almost to occur at random. Recycling the app pool solved the problem when it occurred. After a while (when the application was used more intensively) this became a real problem, as </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/5343164634129565848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/5343164634129565848' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5343164634129565848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5343164634129565848'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/maximum-report-processing-jobs-limit.html' title='Crystal Reports: The maximum report processing jobs limit configured by your system administrator has been reached.'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCjNQ-o4TsPJKEVuUeyIE6zMBZCd2wKVhfjdcmx6uVG-hJZ5jJ_sWxFjvTqbKzjUev_skdMza3Y_N3KjT1WvE1CotF4noAIT7EdBYIGg9TirvM3iP8mDOpCRY78PoQz7PmyAM9ffFf0smT/s72-c/registry.png" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-3480257256927638660</id><published>2010-12-30T09:49:00.005+01:00</published><updated>2011-01-17T10:11:19.412+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="exception"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>An error occurred while validating. HRESULT = &#39;80004005&#39;</title><summary type="text">I was having trouble with this error today, when I was trying to build a Deployment package. I also noticed that my deployment package showed no Detected References anymore.
The weird thing was, that my solution build properly and I could even run the software. It was just the deployment package that was producing errors.

As I found, the first thing to check is missing references. If they are </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/3480257256927638660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/3480257256927638660' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/3480257256927638660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/3480257256927638660'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/error-occurred-while-validating-hresult.html' title='An error occurred while validating. HRESULT = &#39;80004005&#39;'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-6236800373014155789</id><published>2010-12-22T16:48:00.005+01:00</published><updated>2011-01-05T21:05:16.083+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="menu"/><title type='text'>ASP Menu leaving empty space above menu items</title><summary type="text">Today I was having trouble with an ASP.Net Menu control that kept a bit of empty space above, which made it render too low in the div element it was supposed to stay inside of:
This problem just came out of nowhere, one day my menu is showing as it should, the next day, it is not. I even tried rolling back to the older version of the files, but somehow this didn&#39;t change a thing. It might have </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/6236800373014155789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/6236800373014155789' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/6236800373014155789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/6236800373014155789'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/asp-menu-leaving-empty-space-above-menu.html' title='ASP Menu leaving empty space above menu items'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipyAvJvByVb5lym1oLHNv0tFobbf_8GwcWQHkTjv_a4ArHr249TmoUY2Th4OwL6cepPkX-8DDomFOoBMSm0h8LTx-nb6LxwMQe_zt8vBXpLUrRlJ48LfbxYn2WX8KIFbEMgDjrllUn8Tpc/s72-c/wrong.png" height="72" width="72"/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-121248887309032392</id><published>2010-12-21T15:58:00.003+01:00</published><updated>2011-01-09T19:01:41.763+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Reseed a table in SQL Server</title><summary type="text">In Microsoft SQL Server, it is possible to reseed an identity column of a table.&amp;nbsp;If you want to start an identity column at a different value (for instance, after clearing it), you can use the following syntax:
DBCC CHECKIDENT (myTable, reseed, 0)
The next row that is added to the table will have 1 in its identity column. If we would useDBCC CHECKIDENT (myTable, reseed, 41)the next row would</summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/121248887309032392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/121248887309032392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/121248887309032392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/121248887309032392'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/reseed-table-in-sql-server.html' title='Reseed a table in SQL Server'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-2789680148267363447</id><published>2010-12-20T19:15:00.010+01:00</published><updated>2011-11-22T20:38:41.484+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="convert"/><category scheme="http://www.blogger.com/atom/ns#" term="culture"/><title type='text'>Convert objects to string and back without culture problems</title><summary type="text">After storing various values as strings in a database, I had some troubles with parsing these values back to their original types (doubles, datetimes, etc.) on various clients.
As it seems, the most commonly used ways (such as ToString(), Convert.ToString(), Convert.ToDecimal() and DateTime.Parse()) perform these conversions based on the current culture. This means that the whole format of a </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/2789680148267363447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/2789680148267363447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/2789680148267363447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/2789680148267363447'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/convert-objects-to-string-and-back.html' title='Convert objects to string and back without culture problems'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-8530252249275483671</id><published>2010-12-17T12:51:00.008+01:00</published><updated>2012-07-12T20:09:18.867+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="exception"/><category scheme="http://www.blogger.com/atom/ns#" term="iis"/><title type='text'>Could not load file or assembly &#39;System.Data&#39; or one of its dependencies</title><summary type="text">The full exception is:
Could not load file or assembly &#39;System.Data&#39; or one of its dependencies. An attempt was made to load a program with an incorrect format.

This problem seems to occur rather a lot and it seems there are different causes for it to occur. I have had this problem today and the information I found on the internet did not help at all. I have tried setting System.Data to not copy</summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/8530252249275483671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/8530252249275483671' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/8530252249275483671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/8530252249275483671'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/could-not-load-file-or-assembly.html' title='Could not load file or assembly &#39;System.Data&#39; or one of its dependencies'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUxmG-w0pAB8ZkBQpnWEvmrRh3ON06LIq5_R6XkwShHTK99n717hfm_6gimIiL0Uvth6Csdk5cAcLEF8bctf8ZxUpAJ4ULDGOHoImtseU2ScizEmc3J0ME9hsLv95F7J6AL9roSuxTxQTZ/s72-c/AppPool+setting.png" height="72" width="72"/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-8481625847029125048</id><published>2010-12-16T11:51:00.009+01:00</published><updated>2010-12-17T20:21:43.503+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="weeknumber"/><title type='text'>Getting the ISO weeknumber in SQL Server 2005 (and earlier)</title><summary type="text">I just discovered that SQL Server often returns the wrong week number when using DatePart(wk, @date).
For instance, SELECT DatePart(wk, &#39;2010-12-17&#39;) returns 47 while it should be 46.
This is because SQL Server starts counting weeks from 1 Jan, so 1 Jan is always in week 1 of the year.
The ISO standard states that week 1 is the first week with 4 days in it.
The following code can be used (with @</summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/8481625847029125048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/8481625847029125048' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/8481625847029125048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/8481625847029125048'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/getting-iso-weeknumber-in-sql-server.html' title='Getting the ISO weeknumber in SQL Server 2005 (and earlier)'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-3425638415441921517</id><published>2010-12-16T11:04:00.002+01:00</published><updated>2012-01-04T10:17:46.486+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="datetime"/><category scheme="http://www.blogger.com/atom/ns#" term="weeknumber"/><title type='text'>Get the date of the Nth day of a given year and weeknumber</title><summary type="text">Given a year and a weeknumber, you can calculate the date of the Nth day of that week. The best way to do this as far as I have been able to come up with is this:


public static DateTime GetNthDayOfWeek(int year, int weeknumber, int n, CultureInfo culture)
{
&amp;nbsp;&amp;nbsp;// Get 1st jan of given year
&amp;nbsp;&amp;nbsp;DateTime date = new DateTime(year, 1, 1);


&amp;nbsp;&amp;nbsp;// Get the weeknumber of this </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/3425638415441921517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/3425638415441921517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/3425638415441921517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/3425638415441921517'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/get-date-of-nth-day-of-given-year-and.html' title='Get the date of the Nth day of a given year and weeknumber'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7023576929606369407.post-5301127463027676772</id><published>2010-12-16T10:46:00.006+01:00</published><updated>2011-11-22T20:39:36.458+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="datetime"/><category scheme="http://www.blogger.com/atom/ns#" term="weeknumber"/><title type='text'>Get the culture specific weeknumber in .NET</title><summary type="text">The easiest way to get a culture specific weeknumber is the following:
culture.Calendar.GetWeekOfYear(inputDate,&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;culture.DateTimeFormat.CalendarWeekRule,&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;culture.DateTimeFormat.FirstDayOfWeek);

Where culture is the culture you wish to use for determining the weeknumber. To use the current culture, you can use the following:
CultureInfo culture = </summary><link rel='replies' type='application/atom+xml' href='http://jepsonsblog.blogspot.com/feeds/5301127463027676772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7023576929606369407/5301127463027676772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5301127463027676772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7023576929606369407/posts/default/5301127463027676772'/><link rel='alternate' type='text/html' href='http://jepsonsblog.blogspot.com/2010/12/get-culture-specific-weeknumber-in-net.html' title='Get the culture specific weeknumber in .NET'/><author><name>Michael Jepson</name><uri>http://www.blogger.com/profile/16073118583952778532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>