<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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"
	>

<channel>
	<title>asztal.net</title>
	<atom:link href="http://wp.asztal.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.asztal.net</link>
	<description>Blah blah blah blah</description>
	<pubDate>Fri, 11 Jul 2008 18:52:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Linq is cool.</title>
		<link>http://wp.asztal.net/2008/01/linq-is-cool/</link>
		<comments>http://wp.asztal.net/2008/01/linq-is-cool/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 22:15:30 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code]]></category>

		<category><![CDATA[Szótár]]></category>

		<category><![CDATA[linq]]></category>

		<guid isPermaLink="false">http://asztal.net/2008/01/linq-is-cool/</guid>
		<description><![CDATA[var types = from type in System.Reflection.Assembly.GetExecutingAssembly().GetTypes()
	let attr = Attribute.GetCustomAttribute(type, typeof(PreferencePageAttribute), true)
	where attr != null
	select new { Attribute = attr as PreferencePageAttribute, Type = type };
]]></description>
			<content:encoded><![CDATA[<pre class="csharp"><code>var types = from type in System.Reflection.Assembly.GetExecutingAssembly().GetTypes()
	let attr = Attribute.GetCustomAttribute(type, typeof(PreferencePageAttribute), true)
	where attr != null
	select new { Attribute = attr as PreferencePageAttribute, Type = type };</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://wp.asztal.net/2008/01/linq-is-cool/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vista-style menus in .NET</title>
		<link>http://wp.asztal.net/2007/12/vista-style-menus-in-dotnet/</link>
		<comments>http://wp.asztal.net/2007/12/vista-style-menus-in-dotnet/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 21:16:17 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Code]]></category>

		<category><![CDATA[GDNet]]></category>

		<category><![CDATA[Szótár]]></category>

		<category><![CDATA[.net]]></category>

		<category><![CDATA[menu]]></category>

		<category><![CDATA[netfx]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[toolstrip]]></category>

		<category><![CDATA[uxtheme]]></category>

		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://asztal.net/2007/12/vista-style-menus-in-net/</guid>
		<description><![CDATA[Update: you might want to check out the WindowsFormsAero project, which uses an improved version of this code, if you&#8217;re looking for a way to get vista-like/aero-style menus for System.Windows.Forms. (July 2008)
Ever noticed that .NET-style menus are ugly?
Windows Vista comes with a new style of menus (which allow images, too), and a few updates to [...]]]></description>
			<content:encoded><![CDATA[<div class="post-update-box"><strong>Update:</strong> you might want to check out the <a href="http://www.codeplex.com/windowsformsaero">WindowsFormsAero</a> project, which uses an improved version of this code, if you&#8217;re looking for a way to get vista-like/aero-style menus for System.Windows.Forms. <small><i>(July 2008)</i></small></div>
<p><img src='http://asztal.net/wp-content/uploads/2007/12/preview.png' alt='' title='Vista-style menu preview' align='right' style="margin-left: 0.2em; margin-bottom: 0.2em" />Ever noticed that .NET-style menus are <a href="http://asztal.net/wp-content/uploads/2007/12/luna.png">ugly</a>?</p>
<p>Windows Vista comes with a new style of menus (which allow images, too), and a few updates to the <a href="http://msdn2.microsoft.com/en-us/library/bb773187.aspx">UxTheme API</a>, including the ability to render these themed menus. When the .NET framework was designed, however, this functionality wasn&#8217;t available; and you can see this clearly by looking at a default <tt>MenuStrip</tt>.</p>
<p>But <tt>ToolStrip</tt> allows you to give it a new renderer (via its <tt>Renderer</tt> property), and you can write a <tt>ToolStripRenderer</tt> that draws menus using UxTheme with not <em>too</em> much effort.</p>
<p>And that&#8217;s exactly what I&#8217;ve done, and you can have the <a href="http://svn.asztal.net/szotar/trunk/Sz%C3%B3t%C3%A1r/NativeToolStripRenderer.cs">source code</a>. Do what you like with it. It only really works with menu bars and context menu bars, because I didn&#8217;t need it for anything else. </p>
<p>You can apply it in one of two ways, both pretty simple.</p>
<ul>
<li><code>toolStrip1.Renderer = new NativeToolStripRenderer();</code></li>
<li><code>NativeToolStripRenderer.SetToolStripRenderer(menuStrip, contextMenuStrip);</code></li>
</ul>
<p>Here&#8217;s some screenshots:<br />
<a href="http://asztal.net/wp-content/uploads/2007/12/aero.png">Using Aero (Vista) Theme (120dpi)</a><br />
<a href="http://asztal.net/wp-content/uploads/2007/12/luna.png">Using Luna (XP) Theme (120dpi)</a><br />
<a href="http://asztal.net/wp-content/uploads/2007/12/classic.png">Using Windows Classic Theme (120dpi)</a></p>
<p>If you do use this, here are some scenarios to test:
<ul>
<li>Starting with Aero on, and turning it on/off and switching into classic mode a few times</li>
<li>Starting with Aero off, and turning it on/off and switching into classic mode a few times</li>
</ul>
<p>In a similar vein, there is also a <a href="http://www.codeproject.com/KB/vista/WindowsVistaRenderer.aspx">WindowsVistaRenderer</a> on The Code Project, which draws the sort of dark toolbars you can see in Windows Media Player 11, Windows Photo Gallery, etc.</p>
<p>Comments welcome!<br />
- Lee</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.asztal.net/2007/12/vista-style-menus-in-dotnet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fractals with Canvas 3D</title>
		<link>http://wp.asztal.net/2007/12/fractals-with-canvas-3d/</link>
		<comments>http://wp.asztal.net/2007/12/fractals-with-canvas-3d/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 13:05:16 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://asztal.net/2007/12/fractals-with-canvas-3d/</guid>
		<description><![CDATA[If you have the beta of Firefox 3 and feel like watching some hypnotic fractals, I recently made a demo using the Canvas 3D preview. It&#8217;s done using an OpenGL 2.0 fragment shader, so the precision isn&#8217;t amazing - there&#8217;s only so much you can do with 32-bit floating point numbers&#8230; But it&#8217;s not too [...]]]></description>
			<content:encoded><![CDATA[<p>If you have the <a href="http://www.mozilla.com/en-US/firefox/all-beta.html" title="Get it, it's awesome!">beta of Firefox 3</a> and feel like watching some hypnotic fractals, I recently made a demo using the <a href="http://blog.vlad1.com/2007/11/26/canvas-3d-gl-power-web-style/">Canvas 3D</a> preview. It&#8217;s done using an OpenGL 2.0 fragment shader, so the precision isn&#8217;t amazing - there&#8217;s only so much you can do with 32-bit floating point numbers&#8230; But it&#8217;s not too bad if you can&#8217;t zoom in.</p>
<p><strong><a href="http://asztal.net/demos/canvas3d/mandel.html">See it here</a></strong>. It requires the <a href='http://asztal.net/wp-content/uploads/2007/12/canvas3doptions.png' title='Enabling Canvas3D in web pages'>canvas 3d extension to be enabled</a>, and OpenGL 2.0 support.</p>
<p><a href='http://asztal.net/wp-content/uploads/2007/12/juliaset1.png' title='Julia Set 1'><img src='http://asztal.net/wp-content/uploads/2007/12/juliaset1.thumbnail.png' alt='Julia Set 1' /></a> <a href='http://asztal.net/wp-content/uploads/2007/12/juliaset2.png' title='Julia Set 2'><img src='http://asztal.net/wp-content/uploads/2007/12/juliaset2.thumbnail.png' alt='Julia Set 2' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.asztal.net/2007/12/fractals-with-canvas-3d/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PropertyGrid</title>
		<link>http://wp.asztal.net/2007/12/propertygrid/</link>
		<comments>http://wp.asztal.net/2007/12/propertygrid/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 12:45:26 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Szótár]]></category>

		<guid isPermaLink="false">http://asztal.net/2007/12/propertygrid/</guid>
		<description><![CDATA[I quite like PropertyGrid. Here&#8217;s a simple dictionary editor made by binding a PropertyGrid to a DictionaryInfo object.  
 
]]></description>
			<content:encoded><![CDATA[<p>I quite like PropertyGrid. Here&#8217;s a simple dictionary editor made by binding a PropertyGrid to a DictionaryInfo object. <img src='http://wp.asztal.net/wp-includes/images/smilies/face-smile.png' alt=':)' title=':)' class='wp-smiley' /> </p>
<p><a href='http://asztal.net/wp-content/uploads/2007/12/dicteditor.png' title='Dictionary Info Editor'><img src='http://asztal.net/wp-content/uploads/2007/12/dicteditor.thumbnail.png' alt='Dictionary Info Editor' /></a> <a href='http://asztal.net/wp-content/uploads/2007/12/chooseencoding.png' title='Selecting an Encoding'><img src='http://asztal.net/wp-content/uploads/2007/12/chooseencoding.thumbnail.png' alt='Selecting an Encoding' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.asztal.net/2007/12/propertygrid/feed/</wfw:commentRss>
		</item>
		<item>
		<title>And the prize for worst installer of 2006 goes to&#8230;</title>
		<link>http://wp.asztal.net/2006/12/and-the-prize-for-worst-installer-of-2006-goes-to/</link>
		<comments>http://wp.asztal.net/2006/12/and-the-prize-for-worst-installer-of-2006-goes-to/#comments</comments>
		<pubDate>Fri, 29 Dec 2006 19:40:46 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://asztal.net/2006/12/and-the-prize-for-worst-installer-of-2006-goes-to/</guid>
		<description><![CDATA[Visual Studio 2005 Professional SP1!
It&#8217;s brilliant. Here are the installation steps, along with rough times.

Extract 460MB .msp (windows installer patch) file from the executable into the user&#8217;s temp directory. (a few minutes).
Run the 460MB patch file. This will cause it to validate the file&#8217;s digital signature. It reads the entire 460MB file into memory, and [...]]]></description>
			<content:encoded><![CDATA[<p><em>Visual Studio 2005 Professional SP1</em>!</p>
<p>It&#8217;s brilliant. Here are the installation steps, along with rough times.</p>
<ol>
<li>Extract 460MB .msp (windows installer patch) file from the executable into the user&#8217;s temp directory. <em>(a few minutes)</em>.</li>
<li>Run the 460MB patch file. This will cause it to validate the file&#8217;s digital signature. It reads the entire 460MB file into memory, and performs the verification. <em>About 20 minutes</em>.</li>
<li>Copy the 460MB patch file into the parent directory (not move, copy) with a random name. <em>A few seconds</em></li>
<li>Run the second version of the 460MB patch file. This will also validate the file&#8217;s digital signature. <em>About 20 minutes</em>.</li>
<li>Copy the 460MB patch file into <em>C:\Windows\Installer</em>. There are now 3 copies of it. If you previously installed SP1 and it broke (which it probably will), it won&#8217;t overwrite the existing one, because it chose a random name in step 3. So you may have any number of these 460MB patch files lying around on your windows partition.</li>
<li>&#8220;Gathering required information&#8221;. It does this for about 2 hours.</li>
<li>&#8220;Configuring &lt;product name&gt;&#8221;. It does this for about 30 minutes.</li>
</ol>
<p>If you don&#8217;t have about 4 gigabytes of space free on your system partition (less if you move your temp directories elsewhere), don&#8217;t install this. It <em>won&#8217;t</em> install, the &#8220;retry&#8221; button you get when the install fails doesn&#8217;t work, and the installer will roll back all its changes.</p>
<p><strong>&#8230;Or will it?</strong> As it happens, it doesn&#8217;t. If you&#8217;re unlucky enough to have experienced this, you&#8217;ll probably find that <a hreflang="en-US" href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=226009">no .NET 2.0 application will run at all</a>. Visual studio 2005 won&#8217;t run, neither will Office 2007, etc. The error message should be &#8220;The application failed to initialize properly (0xc0150004). Click on OK to terminate the application.&#8221;.</p>
<p>If you get this, Microsoft&#8217;s recommended <a hreflang="en-US" href="http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=226009">workaround</a> is to uninstall visual studio 2005, uninstall the .NET 2.0 framework, delete the policy files, and reinstall. A nice and quick procedure! In fact, that didn&#8217;t even work for me. Visual studio 2005 wouldn&#8217;t uninstall, presumably because ngen wouldn&#8217;t work, and the .NET 2.0 framework wouldn&#8217;t uninstall because it said things were using it.</p>
<p>Microsoft responded with: <q lang="en-US">If you run into this problem again or for other people seeing this post after a search, first run &#8220;ngen update&#8221; from the command line (in %WINDIR%\Microsoft.NET\Framework\v2.0.50757) to fix the NGEN issues.</q>. Unfortunately this wouldn&#8217;t work either, as ngen refused to even start up (0xc0150004 again).</p>
<p>At this point it was looking like a reinstall of windows might be in order, then I looked further down in the the the thread, at xumix&#8217;s post:</p>
<blockquote lang="en-US" id="workaround" class="showtarget" cite="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=226009"><p>I managed to fix the problem:</p>
<ul>
<li>go to c:\WINDOWS\WinSxS</li>
<li>search for 8.0.50727.163 AND 8.0.50727.762, then delete all files/folders that have this numbers in their name</li>
<li>then free up space and try to reinstall the SP1</li>
</ul>
<p><i>Posted by xumix on 25/12/2006 at 01:12</i></p></blockquote>
<p>So I tried this, and it was instantly fixed. How interesting. I don&#8217;t think I&#8217;ll be following the last part of his advice, in fact, I think I&#8217;m going to stay away from SP1&#8230; That sucks, because I believe it fixes this <a href="http://support.microsoft.com/kb/907757" hreflang="en-US">bug</a> <img src='http://wp.asztal.net/wp-includes/images/smilies/face-sad.png' alt=':(' title=':(' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.asztal.net/2006/12/and-the-prize-for-worst-installer-of-2006-goes-to/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The eightfold path to Enlightenment</title>
		<link>http://wp.asztal.net/2006/01/eight/</link>
		<comments>http://wp.asztal.net/2006/01/eight/#comments</comments>
		<pubDate>Fri, 20 Jan 2006 01:39:14 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://asztal.onfiar.com/?p=12</guid>
		<description><![CDATA[1. Can you change £1 for me?
2. Can you change £2 for me?
3. Can you change £3 for me?
4. Can you give me £3?
5. Do you want your face smashed in?
6. I&#8217;m a nice guy, and I need the money
7. I&#8217;m seriously going to wait out here, smash your face in, and steal your money [...]]]></description>
			<content:encoded><![CDATA[<p>1. Can you change £1 for me?<br />
2. Can you change £2 for me?<br />
3. Can you change £3 for me?<br />
4. Can you give me £3?<br />
5. Do you want your face smashed in?<br />
6. I&#8217;m a nice guy, and I need the money<br />
7. I&#8217;m seriously going to wait out here, smash your face in, and steal your money and pizza<br />
8. I &lt;3 Middlesbrough</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.asztal.net/2006/01/eight/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Gamedev has a new theme&#8230;</title>
		<link>http://wp.asztal.net/2005/12/gamedev-has-a-new-theme/</link>
		<comments>http://wp.asztal.net/2005/12/gamedev-has-a-new-theme/#comments</comments>
		<pubDate>Fri, 09 Dec 2005 13:01:45 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[GDNet]]></category>

		<guid isPermaLink="false">http://asztal.onfiar.com/?p=5</guid>
		<description><![CDATA[Or will do, hopefully. I&#8217;m currently writing a new theme for www.gamedev.net. A sneak preview is available here, and at my GDNet Journal. Note that the journal doesn&#8217;t display all the images correctly yet, due to a bug which I have yet to report&#8230;
Screenshot of pink theme for Gamedev.net
A possible benefit of all this is [...]]]></description>
			<content:encoded><![CDATA[<p>Or will do, hopefully. I&#8217;m currently writing a new theme for <a href="http://www.gamedev.net" title="Game development news, articles and stuff">www.gamedev.net</a>. A sneak preview is available here, and at my <a href="http://www.gamedev.net/community/forums/mod/journal/journal.asp?jn=319036" title="Le GDNet+ Journal">GDNet Journal</a>. Note that the journal doesn&#8217;t display all the images correctly yet, due to a bug which I have yet to report&#8230;<br />
<a href="/wp-content/PinkTheme.png" title="Screenshot of pink theme for Gamedev.net">Screenshot of pink theme for Gamedev.net</a><br />
A possible benefit of all this is that if they use my theme on the website, I&#8217;ll get a free year&#8217;s subscription of GDNet+, which works out at around 20 quid <img src='http://wp.asztal.net/wp-includes/images/smilies/face-laugh.png' alt=':D' title=':D' class='wp-smiley' /> </p>
<p>A staff member (JohnHattan) said</p>
<blockquote cite="http://www.gamedev.net/community/forums/viewreply.asp?ID=2368285"><p>
My votes in the above are for Classic Black 2 (pretty), <em>Pink! (funny)</em>, and Slim (decent alternative).
</p></blockquote>
<p>so perhaps I have a chance of getting my theme made available to people <img src='http://wp.asztal.net/wp-includes/images/smilies/face-smile.png' alt=':)' title=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.asztal.net/2005/12/gamedev-has-a-new-theme/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 4.085 seconds -->
