<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>Blinded by the lights</title>
	
	<link>http://dobrzanski.net</link>
	<description>Jarosław Dobrzański's technical blog</description>
	<lastBuildDate>Fri, 17 Jul 2009 10:07:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/BlindedByTheLights" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Reporting Services – how to change font style in the toolbar of ReportViewer?</title>
		<link>http://dobrzanski.net/2009/07/17/reporting-services-change-font-style-toolbar-reportviewer/</link>
		<comments>http://dobrzanski.net/2009/07/17/reporting-services-change-font-style-toolbar-reportviewer/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 10:05:50 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[ReportingServices]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=454</guid>
		<description><![CDATA[




I created a report with SQL Server Reporting Services. It displayed some data and the toolbar with list of checkboxes that defined which columns should be displayed on the report (see the screenshot below). The problem was the font on the toolbar didn&#8217;t match the font on the report, i.e. it was huge in comparison [...]]]></description>
			<content:encoded><![CDATA[<!-- AdSense Now! V1.50 -->
<!-- Post[count: 3] -->
<div class="adsense adsense-leadin" style="float:left;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-3073441708954853";
/* 468x60_20090605 */
google_ad_slot = "1901217300";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>I created a report with <a class="zem_slink" href="http://en.wikipedia.org/wiki/SQL_Server_Reporting_Services" title="SQL Server Reporting Services" rel="wikipedia">SQL Server Reporting Services</a>. It displayed some data and the toolbar with list of checkboxes that defined which columns should be displayed on the report (see the screenshot below). The problem was the font on the toolbar didn&#8217;t match the font on the report, i.e. it was huge in comparison to the report. In short it needed resizing&#8230;</p>
<p><a rel="lightbox[300]" href="http://dobrzanski.net/wp-content/uploads/2009/07/toolbar.jpg" rel="lightbox[454]"><img src="http://dobrzanski.net/wp-content/uploads/2009/07/toolbar-350x65.jpg" alt="ReportViewer Toolbar" title="ReportViewer Toolbar" class="alignnone size-medium wp-image-455" width="350" height="65" /></a></p>
<p><span id="more-454"></span></p>
<h2>Solution</h2>
<p>I used <a class="zem_slink" href="http://www.mozilla.com/en-US/firefox/" title="Firefox" rel="homepage">Firefox</a> and <a class="zem_slink" href="http://en.wikipedia.org/wiki/Firebug_%28Firefox_extension%29" title="Firebug (Firefox extension)" rel="wikipedia">Firebug</a> to find out the container that kept the toolbar (see below). </p>
<p><a rel="lightbox[300]" href="http://dobrzanski.net/wp-content/uploads/2009/07/firebug_console.jpg" rel="lightbox[454]"><img src="http://dobrzanski.net/wp-content/uploads/2009/07/firebug_console-350x85.jpg" alt="firebug console 350x85 Reporting Services   how to change font style in the toolbar of ReportViewer?" title="firebug_console" class="alignnone size-medium wp-image-456" width="350" height="85" /></a></p>
<p>Once I learned the identifier of that container I know what CSS definition should be added to the page that contained the ReportViewer:</p>
<pre name="code" class="css">
<style type="text/css">
    #checkboxTable { font-size: 12px; }
</style>
</pre>
<p>That&#8217;s it!</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/ad673493-dc0b-489d-87ed-50c688091f10/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=ad673493-dc0b-489d-87ed-50c688091f10" alt="Reblog this post [with Zemanta]" title="Reporting Services   how to change font style in the toolbar of ReportViewer? Photo" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>

<p><a href="http://feedads.g.doubleclick.net/~a/rDMovCv-zkx1h4ujE-0q5YRqFbk/0/da"><img src="http://feedads.g.doubleclick.net/~a/rDMovCv-zkx1h4ujE-0q5YRqFbk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rDMovCv-zkx1h4ujE-0q5YRqFbk/1/da"><img src="http://feedads.g.doubleclick.net/~a/rDMovCv-zkx1h4ujE-0q5YRqFbk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/07/17/reporting-services-change-font-style-toolbar-reportviewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>T-SQL – How to select multiple rows into a single row</title>
		<link>http://dobrzanski.net/2009/07/16/tsql-select-multiple-rows-single-row/</link>
		<comments>http://dobrzanski.net/2009/07/16/tsql-select-multiple-rows-single-row/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 11:30:01 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sqlserver]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=449</guid>
		<description><![CDATA[I spend too long on finding the solution for this problem&#8230;
Basically I had a table which looked like this

What I wanted was to select all as one row as a set of items separated with a comma, where an item was &#8216;id: name&#8217;. The items had to be sorted by the id. So the result [...]]]></description>
			<content:encoded><![CDATA[<p>I spend too long on finding the solution for this problem&#8230;</p>
<p>Basically I had a table which looked like this<br />
<img src="http://dobrzanski.net/wp-content/uploads/2009/07/table.jpg" alt="table T SQL   How to select multiple rows into a single row" title="table" width="116" height="112" class="alignnone size-full wp-image-450" /></p>
<p>What I wanted was to select all as one row as a set of items separated with a comma, where an item was &#8216;id: name&#8217;. The items had to be sorted by the id. So the result was supposed to look as below:<br />
<img src="http://dobrzanski.net/wp-content/uploads/2009/07/result.jpg" alt="result T SQL   How to select multiple rows into a single row" title="result" width="287" height="39" class="alignnone size-full wp-image-451" /></p>
<p><span id="more-449"></span></p>
<h2>Solution</h4>
<p>Initially I tried to write one <code>SELECT</code>:</p>
<pre name="code" class="sql">SELECT
STUFF
(
	(
	SELECT ', ' + cast(id AS NVARCHAR(max)) + ': ' + name
	FROM People
	ORDER BY Id
	FOR XML PATH ('')
	),1,1,''
)</pre>
<p>The problem here was <code>FOR XML PATH</code> escaped characters that could break the XML (e.g. &#8216;<' was replaced with '&lt;'), which was not acceptible for me.</p>
<p>I looked for another solution but whatever I tried didn't work because of the <code>ORDER BY</code> statement which can't be used in a subquery or inline view.<br />
Finally I decided to use a temporary table filling it with correct data and then create the final result. Here is the code:</p>
<pre name="code" class="sql">DECLARE @res NVARCHAR(max)
SET @res = ''

CREATE TABLE #Result ( item nvarchar(max) )

INSERT INTO #Result
SELECT CAST(Id AS NVARCHAR(max)) + ': ' + Name AS item
FROM People
ORDER BY id

SELECT @res = @res + item + ', ' from #Result
SELECT substring(@res,1,len(@res)-1) as Result</pre>
<p>If you find a better solution can you please post it as a comment? I could use in in future <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="T SQL   How to select multiple rows into a single row Photo" />  Thanks in advance!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/pZoYg7CWrT94tl3wcUGuuqDfRsM/0/da"><img src="http://feedads.g.doubleclick.net/~a/pZoYg7CWrT94tl3wcUGuuqDfRsM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pZoYg7CWrT94tl3wcUGuuqDfRsM/1/da"><img src="http://feedads.g.doubleclick.net/~a/pZoYg7CWrT94tl3wcUGuuqDfRsM/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/07/16/tsql-select-multiple-rows-single-row/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wireless Configuration: Incorrect MFC DLL version installed</title>
		<link>http://dobrzanski.net/2009/07/06/wireless-configuration-incorrect-mfc-dll-version-installed/</link>
		<comments>http://dobrzanski.net/2009/07/06/wireless-configuration-incorrect-mfc-dll-version-installed/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 17:01:54 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=447</guid>
		<description><![CDATA[Out of the blue when I started my laptop (Dell D600, Windows XP SP2) I started getting the following error:
Wireless Configuration
Incorrect MFC DLL version installed on this system; minimum requirement is MFC SP4 Dlls.
The message wouldn&#8217;t stop popping up, rebooting didn&#8217;t help.
Solution
Google was not much of help there. The best advice found was this; it [...]]]></description>
			<content:encoded><![CDATA[<p>Out of the blue when I started my laptop (Dell D600, Windows XP SP2) I started getting the following error:</p>
<blockquote><p><b>Wireless Configuration</b><br />
Incorrect MFC DLL version installed on this system; minimum requirement is MFC SP4 Dlls.</p></blockquote>
<p>The message wouldn&#8217;t stop popping up, rebooting didn&#8217;t help.</p>
<h2>Solution</h2>
<p>Google was not much of help there. The best advice found was <a href="http://esdeeblog.blogspot.com/2008/09/wireless-configuration-incorrect-mfc.html">this</a>; it didn&#8217;t help though. Finally I decided to remove Dell Wireless Manager because&#8230; it had the same icon that this annoying pop-up <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Wireless Configuration: Incorrect MFC DLL version installed  Photo" />  This helped!</p>
<p>At the moment I can&#8217;t do much more about the wireless because my router is in the service. When it&#8217;s back I&#8217;m going to reinstall the software for wireless and I hope all works grand. If I have any problems I&#8217;ll update this post.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/S8UvgNeFUCGv4Fl2sghXVCHRvZw/0/da"><img src="http://feedads.g.doubleclick.net/~a/S8UvgNeFUCGv4Fl2sghXVCHRvZw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/S8UvgNeFUCGv4Fl2sghXVCHRvZw/1/da"><img src="http://feedads.g.doubleclick.net/~a/S8UvgNeFUCGv4Fl2sghXVCHRvZw/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/07/06/wireless-configuration-incorrect-mfc-dll-version-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade do Wordpress 2.8 i problem z kodowaniem polskich znaków [PL]</title>
		<link>http://dobrzanski.net/2009/06/12/upgrade-wordpress-28-problem-kodowaniem-polskich-znakw-pl/</link>
		<comments>http://dobrzanski.net/2009/06/12/upgrade-wordpress-28-problem-kodowaniem-polskich-znakw-pl/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 19:49:37 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=426</guid>
		<description><![CDATA[I&#8217;m sorry if you are an English spoken reader but this post is published in Polish. The reason for that is it describes a problem with encoding of some Polish characters after upgrading to Wordpress 2.8, so a problem that only Poles should be interested in.
This blog is still supposed to be maintained in English [...]]]></description>
			<content:encoded><![CDATA[<p><em>I&#8217;m sorry if you are an English spoken reader but this post is published in Polish. The reason for that is it describes a problem with encoding of some Polish characters after upgrading to Wordpress 2.8, so a problem that only Poles should be interested in.<br />
This blog is still supposed to be maintained in English so please do not get discouraged.</em></p>
<p>Dziś postanowiłem zrobić upgrade <a href="http://natjar.dobrzanski.net/">swojego fotobloga</a> z Wordpress 2.6.1 na 2.8. Wszystko poszło sprawnie ale okazało się, że kodowanie polskich znaków totalnie się posypało &#8211; zamiast nich kwadraciki i krzaczki. </p>
<p>Pomimo mocnego zaplecza, przyznam, że zabawa z kodowaniem znaków totalnie mi nie odpowiada. Miałem już kiedyś problem z ukraińską stroną <a href="http://znimky.net">znimky.net</a>, która stała się nieczytelna po zmianie <a class="zem_slink" href="http://www.mysql.com" title="MySQL" rel="homepage">MySQL</a> z 4.0 na 4.1. Po długich bojach problem został rozwiązany poprzez dodanie poniższych 3 linii kodu PHP po ustnawieniu połączenia z bazą danych:</p>
<pre name="code" class="php">mysql_query("SET character_set_results=\"utf8\"");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET NAMES \"utf8\"");
</pre>
<p>Zacząłem szukać ale nie znalazłem zbyt wiele&#8230; </p>
<p><span id="more-426"></span></p>
<p>Dwa najciekawsze zasoby to <a href="http://www.wordpress.org.pl/">Polski Support WordPress</a> oraz post <a href="http://luke.szkudlarek.pl/blog/2007/08/11/polskie-znaki-w-wordpress-na-serwerze-homepl/">Polskie znaki w Wordpress na serwerze home.pl</a>. Ten ostatni okazał się strzałem w dziesiątkę, chwila zabawy i blog znów był czytelny!</p>
<p>W moim przypadku rozwiązaniem było edycja pliku <eme>/wp-includes/wp-db.php. Tak jak radził Luke Szkudlarek, na końcu funkcji <code>select($db)</code> dodałem ustalanie kodowania połączenia z bazą danych:</p>
<pre name="code" class="php">mysql_query('SET NAMES latin2');</pre>
<p>W moim przypadku musiałem użyć innego kodowania. Zmiana ustawień Wordpresa (<em>Options -&gt; Reading</em>) nie była konieczna.</eme></p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/25d51d79-79f6-4c07-8531-17ec31fd1739/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=25d51d79-79f6-4c07-8531-17ec31fd1739" alt="Reblog this post [with Zemanta]" title="Upgrade do Wordpress 2.8 i problem z kodowaniem polskich znaków [PL] Photo" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>

<p><a href="http://feedads.g.doubleclick.net/~a/Kirwig2qEL82tNm5XZh3QlPcDzo/0/da"><img src="http://feedads.g.doubleclick.net/~a/Kirwig2qEL82tNm5XZh3QlPcDzo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Kirwig2qEL82tNm5XZh3QlPcDzo/1/da"><img src="http://feedads.g.doubleclick.net/~a/Kirwig2qEL82tNm5XZh3QlPcDzo/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/06/12/upgrade-wordpress-28-problem-kodowaniem-polskich-znakw-pl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Robust generation of XML documentation comments for C#</title>
		<link>http://dobrzanski.net/2009/05/30/robust-generation-of-xml-documentation-comments-for-c/</link>
		<comments>http://dobrzanski.net/2009/05/30/robust-generation-of-xml-documentation-comments-for-c/#comments</comments>
		<pubDate>Sat, 30 May 2009 18:46:42 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=407</guid>
		<description><![CDATA[Writing comments is something you need to get used to; sooner or later you will understand it&#8217;s worth writing comments. Haven&#8217;t you find yourself in a sitation where you don&#8217;t understand what a couple of lines of YOUR OWN code do? I have&#8230;
XML documentation comments are also important, particularly for public members/methods. Even if your [...]]]></description>
			<content:encoded><![CDATA[<p>Writing comments is something you need to get used to; sooner or later you will understand it&#8217;s worth writing comments. Haven&#8217;t you find yourself in a sitation where you don&#8217;t understand what a couple of lines of YOUR OWN code do? I have&#8230;</p>
<p>XML documentation comments are also important, particularly for public members/methods. Even if your project doesn&#8217;t require generating full XML documentation of the code, using <a class="zem_slink" href="http://en.wikipedia.org/wiki/IntelliSense" title="IntelliSense" rel="wikipedia">Intellisense</a> can be much more effective if it summarizes the method you are trying to use. If you want to generate XML documentation for C# in the twinkling of an eye you MUST install Roland Weigelt&#8217;s  GhostDoc plugin for <a class="zem_slink" href="http://msdn.microsoft.com/vstudio/" title="Microsoft Visual Studio" rel="homepage">Visual Studio</a>. Let me cite the author:</p>
<p><span id="more-407"></span></p>
<blockquote><p>GhostDoc is a free add-in for Visual Studio that automatically generates XML documentation comments for C#. Either by using existing documentation inherited from base classes or implemented interfaces, or by deducing comments from name and type of e.g. methods, properties or parameters.</p></blockquote>
<p>Once the plugin is installed and you have restared Visual Studio, go inside a method and press <code>Ctrl + Shift + D</code>. The XML documentation for the method appears just like that; it contain the summary, description of parameters, and information what the method returns. The only thing you have to do is to give a method a descriptive name and eventually polish what&#8217;s been generated. BTW, it works too for attributes and classes.</p>
<p>GhostDoc really saves your time and makes you a better developer &#8211; yet you care about the XML documentation, which is something of a higher level of understanding than your perfect code <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Robust generation of XML documentation comments for C# Photo" /> </p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/17174617-e233-4225-bd71-ed5745ed93aa/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=17174617-e233-4225-bd71-ed5745ed93aa" alt="Reblog this post [with Zemanta]" title="Robust generation of XML documentation comments for C# Photo" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>

<p><a href="http://feedads.g.doubleclick.net/~a/2UeQH8w4raNQ6lKbG0KVDPhcBaE/0/da"><img src="http://feedads.g.doubleclick.net/~a/2UeQH8w4raNQ6lKbG0KVDPhcBaE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2UeQH8w4raNQ6lKbG0KVDPhcBaE/1/da"><img src="http://feedads.g.doubleclick.net/~a/2UeQH8w4raNQ6lKbG0KVDPhcBaE/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/05/30/robust-generation-of-xml-documentation-comments-for-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code snippets have changed on dobrzanski.net</title>
		<link>http://dobrzanski.net/2009/05/30/code-snippets-changed-dobrzanskinet/</link>
		<comments>http://dobrzanski.net/2009/05/30/code-snippets-changed-dobrzanskinet/#comments</comments>
		<pubDate>Sat, 30 May 2009 18:27:22 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Google Code]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=394</guid>
		<description><![CDATA[Following my friend&#8217;s post I decided to change the plugin for highliting code snippets on this blog from Google Code Prettifier to Google Syntax Highlighter for WordPress.
This tool is much better &#8211; now code looks more fancy and you can always show/copy to clipboard the very code (without additional characters that need removing). If you&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>Following my <a href="http://fczaja.blogspot.com/2009/03/code-snippets-on-blogger.html">friend&#8217;s post</a> I decided to change the plugin for highliting code snippets on this blog from <a href="http://wordpress.org/extend/plugins/google-code-prettify-for-wordpress/">Google Code Prettifier</a> to <a href="Google%20Syntax%20Highlighter%20for%20WordPress">Google Syntax Highlighter for WordPress</a>.</p>
<p>This tool is much better &#8211; now code looks more fancy and you can always show/copy to clipboard the very code (without additional characters that need removing). If you&#8217;re running a blog where you publish fragments of code &#8211; don&#8217;t wait and install this tool now!</p>
<p>The only problem that change introduced was I had to change all old posts so that code is picked up by this plugin. It took an hour but was worth it.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/d5378d5e-ef6d-4e93-ad8a-e7367d928019/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=d5378d5e-ef6d-4e93-ad8a-e7367d928019" alt="Reblog this post [with Zemanta]" title="Code snippets have changed on dobrzanski.net Photo" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>

<p><a href="http://feedads.g.doubleclick.net/~a/eyht4iR2d_3DHBRNA3A3gFbhZkk/0/da"><img src="http://feedads.g.doubleclick.net/~a/eyht4iR2d_3DHBRNA3A3gFbhZkk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/eyht4iR2d_3DHBRNA3A3gFbhZkk/1/da"><img src="http://feedads.g.doubleclick.net/~a/eyht4iR2d_3DHBRNA3A3gFbhZkk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/05/30/code-snippets-changed-dobrzanskinet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal server has exceeded maximum number of allowed connection – how to kill open sessions?</title>
		<link>http://dobrzanski.net/2009/05/29/terminal-server-exceeded-maximum-number-allowed-connection-kill-open-sessions/</link>
		<comments>http://dobrzanski.net/2009/05/29/terminal-server-exceeded-maximum-number-allowed-connection-kill-open-sessions/#comments</comments>
		<pubDate>Fri, 29 May 2009 06:59:05 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=354</guid>
		<description><![CDATA[When you RDC (connecting remotely using Remote Desktop Connection) to a server and get &#8220;Terminal server has exceeded maximum number of allowed connection&#8221; message there&#8217;s still light at the end of the tunnel. 
Solution (tested on Windows 2003)
RDC to another server in the same workgroup as the one you cannot access and go to Administrative [...]]]></description>
			<content:encoded><![CDATA[<p>When you RDC (connecting remotely using <a class="zem_slink" href="http://en.wikipedia.org/wiki/Terminal_Services" title="Terminal Services" rel="wikipedia">Remote Desktop Connection</a>) to a server and get <em>&#8220;Terminal server has exceeded maximum number of allowed connection&#8221;</em> message there&#8217;s still light at the end of the tunnel. </p>
<h3>Solution (tested on Windows 2003)</h3>
<p>RDC to another server in the same <a class="zem_slink" href="http://en.wikipedia.org/wiki/Workgroup_%28Computer_networking%29" title="Workgroup (Computer networking)" rel="wikipedia">workgroup</a> as the one you cannot access and go to <em>Administrative Tools / Terminal Services Manager</em>.</p>
<p><span id="more-354"></span></p>
<p><a href="http://dobrzanski.net/wp-content/uploads/2009/05/terminal_services_manager.png" rel="lightbox[354]"><img src="http://dobrzanski.net/wp-content/uploads/2009/05/terminal_services_manager-350x236.png" alt="terminal services manager 350x236 Terminal server has exceeded maximum number of allowed connection   how to kill open sessions?" title="terminal_services_manager" class="alignnone size-medium wp-image-355" height="236" width="350" /></a></p>
<p>From the menu select <em>Actions / Connet to Computer&#8230;</em> and provide the name of the server you couldn&#8217;t reach. Press OK and you will see open sessions on that server &#8211; users who logged in but for some reason haven&#8217;t logged out. Right click on the desired user and choose <em>Log Off</em>.</p>
<p>That should solve the case.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/b6a66161-ef8b-4cfa-859b-9fe518e3a365/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=b6a66161-ef8b-4cfa-859b-9fe518e3a365" alt="Reblog this post [with Zemanta]" title="Terminal server has exceeded maximum number of allowed connection   how to kill open sessions? Photo" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>

<p><a href="http://feedads.g.doubleclick.net/~a/St5zjQeR2K8lp_J9i5Q4-QDNYQA/0/da"><img src="http://feedads.g.doubleclick.net/~a/St5zjQeR2K8lp_J9i5Q4-QDNYQA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/St5zjQeR2K8lp_J9i5Q4-QDNYQA/1/da"><img src="http://feedads.g.doubleclick.net/~a/St5zjQeR2K8lp_J9i5Q4-QDNYQA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/05/29/terminal-server-exceeded-maximum-number-allowed-connection-kill-open-sessions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Castle.ActiveRecord.Framework.ActiveRecordException: Could not perform Delete for XXX —&gt; NHibernate.Exceptions.GenericADOException: could not delete collection</title>
		<link>http://dobrzanski.net/2009/05/19/castleactiverecordframeworkactiverecordexception-perform-delete-xxx-nhibernateexceptionsgenericadoexception-delete-collection/</link>
		<comments>http://dobrzanski.net/2009/05/19/castleactiverecordframeworkactiverecordexception-perform-delete-xxx-nhibernateexceptionsgenericadoexception-delete-collection/#comments</comments>
		<pubDate>Tue, 19 May 2009 15:02:56 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[hibernate]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=348</guid>
		<description><![CDATA[The beginning of the stack trace I got today looked as below:

2009-05-19 11:01:45,078 ERROR [5232] XXX - Speaker already deleted: Castle.ActiveRecord.Framework.ActiveRecordException: Could not perform Delete for Speaker ---> NHibernate.Exceptions.GenericADOException: could not delete collection: [XXX#XXX][SQL: SQL not available] ---> System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'SpeakerId', table 'XXX.dbo.lnk_Session_Speaker'; column does not allow nulls. UPDATE [...]]]></description>
			<content:encoded><![CDATA[<p>The beginning of the stack trace I got today looked as below:</p>
<pre name="code" class="c#">
2009-05-19 11:01:45,078 ERROR [5232] XXX - Speaker already deleted: Castle.ActiveRecord.Framework.ActiveRecordException: Could not perform Delete for Speaker ---> NHibernate.Exceptions.GenericADOException: could not delete collection: [XXX#XXX][SQL: SQL not available] ---> System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'SpeakerId', table 'XXX.dbo.lnk_Session_Speaker'; column does not allow nulls. UPDATE fails.
The statement has been terminated.
   ...
   at SpeakerProxy3e9fd3b0e82745c2b91b8a353acaa93d.DeleteAndFlush()</pre>
<h3>Background</h3>
<p>I had three tables and classes representing them: <code>Session</code> / <code>app_Session</code>, <code>Speaker</code> / <code>app_Speaker</code>, and <code>SessionSpeaker</code> / <code>lnk_Session_Speaker</code>.</p>
<p><span id="more-348"></span></p>
<p><code>Speaker</code> declared collection of links session-speaker as follows:</p>
<pre name="code" class="c#">[HasMany(Lazy = true, Table = "lnk_Session_Speaker", ColumnKey = "SpeakerId", Cascade = ManyRelationCascadeEnum.Delete)]
public virtual IList<SessionSpeaker> SessionSpeakers
{
   get { return _sessions; }
   set { _sessions = value; }
}</pre>
<p>The above described problem occured when I tried to delete a speaker who was assigned to a session &#8211; there was a row in <code>lnk_Session_Speaker</code> which represented this connection. Speakers who were not linked could be deleted just fine.</p>
<h3>Solution</h3>
<p>The reason for the difficulties was lack of <code>Inverse = true</code> declaration for collection of links session-speaker in Speaker class. This statement means that this side (from <code>Speaker</code>&#8217;s perspective) is the inverse side &#8211; that a <code>Speaker</code> is pointed by <code>SessionSpeaker</code>. </p>
<pre name="code" class="c#">[HasMany(Lazy = true, Table = "lnk_Session_Speaker", ColumnKey = "SpeakerId", Cascade = ManyRelationCascadeEnum.Delete, Inverse = true)]
public virtual IList<SessionSpeaker> SessionSpeakers
{
   get { return _sessions; }
   set { _sessions = value; }
}</pre>
<p>With this link objects (rows from <code>lnk_Session_Speaker</code> table) could be removed first and and then the speaker themselves could be removed.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/sPs_iFq2CWsKgjZ2QqGtyUEsCAw/0/da"><img src="http://feedads.g.doubleclick.net/~a/sPs_iFq2CWsKgjZ2QqGtyUEsCAw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/sPs_iFq2CWsKgjZ2QqGtyUEsCAw/1/da"><img src="http://feedads.g.doubleclick.net/~a/sPs_iFq2CWsKgjZ2QqGtyUEsCAw/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/05/19/castleactiverecordframeworkactiverecordexception-perform-delete-xxx-nhibernateexceptionsgenericadoexception-delete-collection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adapt your blog for mobile devices</title>
		<link>http://dobrzanski.net/2009/05/16/adapt-your-blog-for-mobile-devices/</link>
		<comments>http://dobrzanski.net/2009/05/16/adapt-your-blog-for-mobile-devices/#comments</comments>
		<pubDate>Sat, 16 May 2009 21:59:40 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Opera Mini]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=344</guid>
		<description><![CDATA[Make your blog look and behave well on a mobile device.]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl style="width: 170px;" class="wp-caption alignright">
<dt class="wp-caption-dt"><a href="http://www.flickr.com/photos/31442459@N00/3388372944"><img src="http://farm4.static.flickr.com/3606/3388372944_f094ca95cd_m.jpg" alt="Wordpress blog with WordPress Mobile 3.0" title="Wordpress blog with WordPress Mobile 3.0" height="240" width="160" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image by <a href="http://www.flickr.com/photos/31442459@N00/3388372944">Wesley Fryer</a> via Flickr</dd>
</dl>
</div>
</div>
<p>Since I received <a class="zem_slink" href="http://en.wikipedia.org/wiki/Nokia_E51" title="Nokia E51" rel="wikipedia">Nokia e51</a> I&#8217;ve been browsing web pages with <a class="zem_slink" href="http://www.operamini.com/" title="Opera Mini" rel="homepage">Opera Mini</a>. This is a decent browser which makes reading pages easier but it can&#8217;t do all. The best case is when not only the browser cares to display the page best it can, but also the owner of the page does so, i.e. only important content is downloaded so that the page is lighter and loads faster (which is important if you are not having a free <a class="zem_slink" href="http://en.wikipedia.org/wiki/Wi-Fi" title="Wi-Fi" rel="wikipedia">WI-FI</a> connection).</p>
<p><span id="more-344"></span></p>
<p>Thus I&#8217;ve decided to adapt my blog for mobile devices. Because I&#8217;m using Wordpress engine I looked for a plugin which can do this work for me. I&#8217;ve found a couple of plugins and I desided to install <a href="http://mobiforge.com/running/story/the-dotmobi-wordpress-mobile-pack">WordPress Mobile Pack</a>. Now this blog looks on a mobile devices as a sample screen shot displayed above. </p>
<p>Happy reading, even on a phone <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Adapt your blog for mobile devices Photo" /> </p>
<p>P.S. Let me know if you use a different plugin. Maybe there&#8217;s something even better than WordPress Mobile Pack. Thanks in advance!<br />
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.killerstartups.com/Mobile/mobilepress-co-za-making-your-blog-go-mobile">Mobilepress.co.za &#8211; Making Your Blog Go Mobile</a> (killerstartups.com)</li>
<li class="zemanta-article-ul-li"><a href="http://netwala.blogspot.com/2009/03/think-mobile-wordpress-think.html">Think Mobile Wordpress &#8211; Think MobilePress!</a> (netwala.blogspot.com)</li>
<li class="zemanta-article-ul-li"><a href="http://www.allaboutsymbian.com/news/item/9149_Looking_at_web_browsers_on_the.php">Looking at web browsers on the Nokia 5800</a> (allaboutsymbian.com)</li>
<li class="zemanta-article-ul-li"><a href="http://jkontherun.com/2009/03/16/3-reasons-why-mobile-browsing-doubled-last-year/">3 Reasons Why Mobile Browsing Doubled Last Year</a> (jkontherun.com)</li>
<li class="zemanta-article-ul-li"><a href="http://crenk.com/mobilepress-wordpress-plugin-to-turn-your-blog-mobile-compatible/">MobilePress: Wordpress Plugin To Turn Your Blog Mobile Compatible</a> (crenk.com)</li>
<li class="zemanta-article-ul-li"><a href="http://www.blogperfume.com/plugin-render-your-wp-blog-on-mobile-handsets/">Plugin: Render Your WP Blog on Mobile Handsets</a> (blogperfume.com)</li>
</ul>
<p><!--more--></p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/495ef2a0-9ed6-4558-976f-e697801df805/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=495ef2a0-9ed6-4558-976f-e697801df805" alt="Reblog this post [with Zemanta]" title="Adapt your blog for mobile devices Photo" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>

<p><a href="http://feedads.g.doubleclick.net/~a/XiuuewhwTnQhwnaYnzYrNnGY4kU/0/da"><img src="http://feedads.g.doubleclick.net/~a/XiuuewhwTnQhwnaYnzYrNnGY4kU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XiuuewhwTnQhwnaYnzYrNnGY4kU/1/da"><img src="http://feedads.g.doubleclick.net/~a/XiuuewhwTnQhwnaYnzYrNnGY4kU/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/05/16/adapt-your-blog-for-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# 3.0 Pocket Reference: Instant Help for C# 3.0 Programmers</title>
		<link>http://dobrzanski.net/2009/05/14/c-30-pocket-reference-instant-help-for-c-30-programmers/</link>
		<comments>http://dobrzanski.net/2009/05/14/c-30-pocket-reference-instant-help-for-c-30-programmers/#comments</comments>
		<pubDate>Thu, 14 May 2009 18:47:59 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[books]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=328</guid>
		<description><![CDATA[



Cover via Amazon



For those who work with C# I&#8217;d like to recommend a book which is a kind of summary of knowledge on C# 3.0. The book is quite short (and small by the way &#8211; yet pocket reference) but it covers lots of details on C# and describes what&#8217;s new in C# 3.0. Everything [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl style="width: 131px;" class="wp-caption alignright">
<dt class="wp-caption-dt"><a href="http://www.amazon.com/3-0-Pocket-Reference-Instant-Programmers/dp/0596519222%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0596519222"><img src="http://ecx.images-amazon.com/images/I/41yai83GGYL._SL200_.jpg" alt="Cover of &quot;C# 3.0 Pocket Reference: Instan..." title="Cover of &quot;C# 3.0 Pocket Reference: Instan..." height="200" width="121" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"><a href="http://www.amazon.com/3-0-Pocket-Reference-Instant-Programmers/dp/0596519222%3FSubscriptionId%3D0G81C5DAZ03ZR9WH9X82%26tag%3Dzemanta-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0596519222">Cover via Amazon</a></dd>
</dl>
</div>
</div>
<p>For those who work with C# I&#8217;d like to recommend a book which is a kind of summary of knowledge on C# 3.0. The book is quite short (and small by the way &#8211; yet pocket reference) but it covers lots of details on C# and describes what&#8217;s new in C# 3.0. Everything in short and simple, with code snippets.</p>
<p>I read this book as a first step towards <a href="http://www.microsoft.com/learning/en/us/exams/70-536.mspx">TS: Microsoft .NET Framework &#8211; Application Development Foundation</a>. Basically, I&#8217;ve started wondering if passing this exam is not a good step in my .NET career and this is the entry point. </p>
<p>Anyway this book is not a C# bible, but it can really help as a knowledge reresher.</p>
<p><strong>Recommended.</strong></p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/77cd8280-a5ff-4ddd-a644-0a6accf2f070/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=77cd8280-a5ff-4ddd-a644-0a6accf2f070" alt="Reblog this post [with Zemanta]" title="C# 3.0 Pocket Reference: Instant Help for C# 3.0 Programmers Photo" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>

<p><a href="http://feedads.g.doubleclick.net/~a/KqPIqUjpCXIFv4qRAMjbZhh5nxw/0/da"><img src="http://feedads.g.doubleclick.net/~a/KqPIqUjpCXIFv4qRAMjbZhh5nxw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KqPIqUjpCXIFv4qRAMjbZhh5nxw/1/da"><img src="http://feedads.g.doubleclick.net/~a/KqPIqUjpCXIFv4qRAMjbZhh5nxw/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2009/05/14/c-30-pocket-reference-instant-help-for-c-30-programmers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.332 seconds. --><!-- Cached page generated by WP-Super-Cache on 2009-07-17 11:10:42 -->
