<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://hardcode.ro/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hardcode</title><link>http://hardcode.ro/default.aspx</link><description>Making it happen</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.2)</generator><item><title>Windows 7 Old Right Click on Taskbar Windows</title><link>http://hardcode.ro/archive/2010/03/09/windows-7-old-right-click-on-taskbar-windows.aspx</link><pubDate>Tue, 09 Mar 2010 08:33:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9829</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9829.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9829</wfw:commentRss><description>&lt;p&gt;Do you sometimes need the old right click menu on a taskbar icon in Windows 7 ? The one with Restore, Move, Minimize, etc ? Here's what happens when you right click a taskbar item:&lt;/p&gt;&lt;p&gt;&lt;img src="http://hardcode.ro/photos/pics/images/9825/original.aspx" border="0"&gt;&lt;/p&gt;&lt;p&gt;Should you miss the old menu, press &lt;span style="font-weight:bold;"&gt;shift+right-click&lt;/span&gt;:&lt;/p&gt;&lt;p&gt;&lt;img src="http://hardcode.ro/photos/pics/images/9826/original.aspx" border="0"&gt;&lt;/p&gt;&lt;p&gt;If you have multiple windows open: &lt;br&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://hardcode.ro/photos/pics/images/9828/original.aspx" border="0"&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9829" width="1" height="1"&gt;</description></item><item><title>Linq Select Indices of Top Ordered Elements</title><link>http://hardcode.ro/archive/2010/02/24/linq-select-indices-of-top-ordered-elements.aspx</link><pubDate>Wed, 24 Feb 2010 13:13:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9824</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9824.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9824</wfw:commentRss><description>&lt;p&gt;I've recently got over the second Select variant, so now I can do the following to find the top 3 elements:&lt;/p&gt;&lt;p&gt;double[] output = new double[] { 5,6,7,8,9 };&lt;br&gt;var indices = output.Select( (v,i) =&amp;gt; new { v = v, i = i}).OrderByDescending( p =&amp;gt; p.v).Take(3).Select( p =&amp;gt; p.i);&amp;nbsp; &lt;/p&gt;&lt;p&gt;Result: 4,3,2. Anyone has a better solution ?&lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9824" width="1" height="1"&gt;</description></item><item><title>Free ASP.NET Profiler</title><link>http://hardcode.ro/archive/2009/11/03/free-asp-net-profiler.aspx</link><pubDate>Tue, 03 Nov 2009 16:49:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9815</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9815.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9815</wfw:commentRss><description>&lt;p&gt;At last a free and brilliant asp.net profiler, &lt;a href="http://www.eqatec.com/tools/profiler" target="_blank"&gt;here&lt;/a&gt;. Instructions for starting it &lt;a href="http://stackoverflow.com/questions/378617/profiling-asp-net-websites-with-eqatec-profiler" target="_blank"&gt;here&lt;/a&gt;. 10 minutes and I've already got a 100% increase in speed.&lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9815" width="1" height="1"&gt;</description></item><item><title>IKEA Prank</title><link>http://hardcode.ro/archive/2009/09/16/ikea-prank.aspx</link><pubDate>Wed, 16 Sep 2009 15:14:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9812</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9812.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9812</wfw:commentRss><description>&lt;p&gt;And btw check our latest prank in the IKEA store: &lt;a href="http://culturavura.fourhooks.com/cat54435/art6451142070/" target="_blank"&gt;http://culturavura.fourhooks.com/cat54435/art6451142070/&lt;/a&gt;. Pictures from &lt;a href="http://cocalari.com" target="_blank"&gt;http://cocalari.com&lt;/a&gt; and &lt;a href="http://pitzipoanca.org" target="_blank"&gt;http://pitzipoanca.org&lt;/a&gt;. &lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9812" width="1" height="1"&gt;</description></item><item><title>CodeJam 2009</title><link>http://hardcode.ro/archive/2009/09/16/codejam-2009.aspx</link><pubDate>Wed, 16 Sep 2009 15:05:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9811</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9811.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9811</wfw:commentRss><description>&lt;p&gt;If you've participated be sure to check out the &lt;a href="http://www.go-hero.net/jam/09/languages/0" target="_blank"&gt;solutions&lt;/a&gt; written in some exotic programming languages like BrainFuck, SQL, Fortran and even PostScript ...&lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9811" width="1" height="1"&gt;</description></item><item><title>C# Initialize Dictionary</title><link>http://hardcode.ro/archive/2009/08/05/c-initialize-dictionary.aspx</link><pubDate>Wed, 05 Aug 2009 12:40:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9806</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9806.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9806</wfw:commentRss><description>&lt;p&gt;I've recently found the magic way to do it:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new Dictionary&amp;lt;string,string&amp;gt;() { &lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ "from_uid", "1" }, &lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ "to_uid", "2"}, &lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ "ocurred", "1000" }&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;p&gt;The language feature for this is not the ability to do the following:&lt;/p&gt;&lt;p style="margin-left:40px;"&gt;&amp;nbsp;KeyValuePair&amp;lt;string,string&amp;gt; pair = { "a", "b"} &lt;br&gt;&lt;/p&gt;&lt;p&gt;and then have the list constructor enumerator feature that we already know: new List&amp;lt;int&amp;gt; () { 1,2,3 }, but rather a shortcut to Dictionary&amp;lt;string,string&amp;gt;.Add(string key, string value). More on this &lt;a href="http://blogs.msdn.com/madst/archive/2006/10/10/What-is-a-collection_3F00_.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9806" width="1" height="1"&gt;</description></item><item><title>Entity Framework Related Entities Queries</title><link>http://hardcode.ro/archive/2009/07/22/entity-framework-related-entities-queries.aspx</link><pubDate>Wed, 22 Jul 2009 09:35:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9803</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9803.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9803</wfw:commentRss><description>&lt;p&gt;In Linq to SQL the following works by issuing a second query, in Linq to Entities it does not (and this sucks):&lt;/p&gt;&lt;p&gt;&amp;nbsp; Shortcut sh = db.Shortcuts.First();&lt;br&gt;&amp;nbsp; int count = sh.Redirects.Where( r =&amp;gt; r.ocurred &amp;lt; dt).Count();&lt;/p&gt;&lt;p&gt;You have to do the following instead:&lt;/p&gt;&lt;p&gt;&amp;nbsp; int count = db.Redirects.Where( r =&amp;gt; r.shortid == sh.id &amp;amp;&amp;amp; r.ocurred &amp;lt; dt).Count();&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9803" width="1" height="1"&gt;</description></item><item><title>Some quick stats</title><link>http://hardcode.ro/archive/2009/07/08/some-quick-stats.aspx</link><pubDate>Wed, 08 Jul 2009 07:59:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9801</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9801.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9801</wfw:commentRss><description>... for &lt;a href="http://oracolulmeu.ro/" target="_blank"&gt;http://oracolulmeu.ro/&lt;/a&gt; for the last Monday: 1K visits and 42K pageviews (same day).&lt;br&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9801" width="1" height="1"&gt;</description></item><item><title>S4H</title><link>http://hardcode.ro/archive/2009/07/08/s4h.aspx</link><pubDate>Wed, 08 Jul 2009 07:44:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9800</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9800.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9800</wfw:commentRss><description>
&lt;p&gt;So now we have or own url-shortener service: &lt;a href="http://s4h.ro/" target="_blank"&gt;http://s4h.ro/&lt;/a&gt;. Give it a try !&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9800" width="1" height="1"&gt;</description></item><item><title>The Holy Grail of Webdesign</title><link>http://hardcode.ro/archive/2009/06/22/the-holy-grail-of-webdesign.aspx</link><pubDate>Mon, 22 Jun 2009 16:01:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9794</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9794.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9794</wfw:commentRss><description>.... is almost live : &lt;a href="http://psdbreaker.com" target="_blank"&gt;http://psdbreaker.com&lt;/a&gt;.&lt;br&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9794" width="1" height="1"&gt;</description></item><item><title>Provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified</title><link>http://hardcode.ro/archive/2009/04/27/provider-sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx</link><pubDate>Mon, 27 Apr 2009 00:36:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9789</guid><dc:creator>andrei</dc:creator><slash:comments>1</slash:comments><comments>http://hardcode.ro/comments/9789.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9789</wfw:commentRss><description>&lt;p&gt;I recently got the dreadful error when starting the website, even if the database connection string was more than correct and it worked in sql management studio. If you've tried anything else without success of getting your website started, and you use SQL Server-backed session persistance, be sure to &lt;i&gt;also check for the sessionState connection string..&lt;/i&gt;.&lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9789" width="1" height="1"&gt;</description></item><item><title>Nokia Friend View</title><link>http://hardcode.ro/archive/2009/04/21/nokia-friend-view.aspx</link><pubDate>Tue, 21 Apr 2009 12:04:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9788</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9788.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9788</wfw:commentRss><description>&lt;p&gt;Similar to &lt;a href="http://www.jaiku.com/" target="_blank"&gt;Jaiku&lt;/a&gt; and &lt;a href="http://www.google.com/latitude/intro.html" target="_blank"&gt;Google Latitude&lt;/a&gt;: &lt;a href="http://betalabs.nokia.com/betas/view/nokia-friend-view" target="_blank"&gt;Friend View&lt;/a&gt; from Nokia. &lt;i&gt;(thanks, &lt;a href="http://tase.ro/" target="_blank"&gt;Tase&lt;/a&gt;!)&lt;/i&gt;&lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9788" width="1" height="1"&gt;</description></item><item><title>John Carmack on iPhone Development</title><link>http://hardcode.ro/archive/2009/03/30/john-carmack-on-iphone-development.aspx</link><pubDate>Mon, 30 Mar 2009 16:40:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9782</guid><dc:creator>andrei</dc:creator><slash:comments>2</slash:comments><comments>http://hardcode.ro/comments/9782.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9782</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://www.idsoftware.com/wolfenstein3dclassic/" target="_blank"&gt;Wolfenstein 3D&lt;/a&gt; for iPhone is out, &lt;a href="http://www.idsoftware.com/wolfenstein3dclassic/wolfdevelopment.htm" target="_blank"&gt;here&lt;/a&gt; are John Carmack's comments. &lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9782" width="1" height="1"&gt;</description></item><item><title>Digi Cafe Awards</title><link>http://hardcode.ro/archive/2009/03/27/digi-cafe-awards.aspx</link><pubDate>Fri, 27 Mar 2009 09:25:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9781</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9781.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9781</wfw:commentRss><description>&lt;p&gt;Yey both Coolio and Urbee won prizes at last night's &lt;a href="http://www.digicafe.ro/awards.html" target="_blank"&gt;Digi Cafe Awards&lt;/a&gt;, Urbee even won the big prize! &lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9781" width="1" height="1"&gt;</description></item><item><title>Exceptions when DataBinding</title><link>http://hardcode.ro/archive/2009/03/26/exceptions-when-databinding.aspx</link><pubDate>Thu, 26 Mar 2009 13:47:00 GMT</pubDate><guid isPermaLink="false">2628939f-8971-486a-979f-0afcb1fc0c46:9780</guid><dc:creator>andrei</dc:creator><slash:comments>0</slash:comments><comments>http://hardcode.ro/comments/9780.aspx</comments><wfw:commentRss>http://hardcode.ro/commentrss.aspx?PostID=9780</wfw:commentRss><description>&lt;p&gt;A really annoying thing if you use the DataSourceID databinding is that you can't identify the control that throws the exception, the only thing that you get is an ID-less stacktrace and the debugger doesn't break at all ...&lt;br&gt;&lt;/p&gt;&lt;img src="http://hardcode.ro/aggbug.aspx?PostID=9780" width="1" height="1"&gt;</description></item></channel></rss>