<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Head.SmackOnTable();</title>
        <link>http://blog.muntedharalhakim.net/Default.aspx</link>
        <description>The psychotic ranting of Muntedhar Alhakim.</description>
        <language>en-US</language>
        <copyright>Muntedhar Alhakim</copyright>
        <managingEditor>me@muntedharalhakim.com</managingEditor>
        <generator>Subtext Version 1.9.5.176</generator>
        <image>
            <title>Head.SmackOnTable();</title>
            <url>http://blog.muntedharalhakim.net/images/RSS2Image.gif</url>
            <link>http://blog.muntedharalhakim.net/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Stored Procedures are BAD</title>
            <link>http://blog.muntedharalhakim.net/archive/2008/04/15/stored-procedures-are-bad.aspx</link>
            <description>&lt;p&gt;This seems to be a really controversial topic between developers. The "Old Skool" developers insist that Stored Procedures are better, faster, and more secure. Maybe 5 - 10 years ago this was the case, but unfortunately these days, it isn't.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;"Its More Secure"&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Err, not anymore its not. You can have parameterised &lt;em&gt;adhoc&lt;/em&gt; SQL :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/StoredProceduresareBAD_1C2/WindowClipping%20(155)_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="110" alt="WindowClipping (155)" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/StoredProceduresareBAD_1C2/WindowClipping%20(155)_thumb.png" width="521" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;That is fully functioning code (Albeit it wont work, because of no connection string etc etc etc). Sql Injection wont work with that code.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;"Its Faster"&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Since SQL 2000 SP4 (I think?), SQL Server now caches the execution plan for adhoc queries too - assuming you run the same query, and only change parameters. And if speed REALLY is an issue, instead of trying to squeeze 0.004% extra speed out of the query (WOW It runs in 58.9 seconds instead of 59 seconds!), maybe have a look at clustering the database.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Other reasons I don't like Stored Procs&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;People who insist that you have to write stored procedures for all database operations need their head examined. Writing a stored proc for simple CRUD is a waste of developer time, and violates the DRY principle. There is simply NO point in writing a stored procedure that will insert a record - you can simply do that from adhoc sql, and it will be easier to manage.&lt;/p&gt;  &lt;p&gt;If you have logic in your stored proc, then you should read up on n-Tier applications, and separation of logic. The stored proc's are simply an extension of the Data Access tier - the DA's tier is simply to fetch the data. &lt;strong&gt;IT SHOULD NOT HAVE LOGIC&lt;/strong&gt; inside it. That's the job of things higher up.&lt;/p&gt;  &lt;p&gt;Personally, I think writing SQL statements for CRUD is soo 1999. We have code generators, we have libraries to speed things up. In the 2 years, I havnt really seen a reason to hand write SQL code for use in apps. Simply point a code generator towards it, and hit the magic button, and you have all your CRUD for you. &lt;/p&gt;  &lt;p&gt;Even things like nHibernate I dont agree with - personally I see them as DRY violators too. You have to declare the name of the table in the database, then in the code. You have to declare a column in the database, then use the same name in the code. Where you have more than one point you have to declare something, you will run into problems where one of them isnt upto date.&lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4d434b1d-7af1-4b94-ba14-703c201fb4b0" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Stored%20Procedure" rel="tag"&gt;Stored Procedure&lt;/a&gt;,&lt;a href="http://technorati.com/tags/SQL%20Server" rel="tag"&gt;SQL Server&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Quackeroo" rel="tag"&gt;Quackeroo&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blog.muntedharalhakim.net/aggbug/70.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2008/04/15/stored-procedures-are-bad.aspx</guid>
            <pubDate>Mon, 14 Apr 2008 23:07:53 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/70.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2008/04/15/stored-procedures-are-bad.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/70.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/70.aspx</trackback:ping>
        </item>
        <item>
            <title>Faulty assumptions waste time</title>
            <link>http://blog.muntedharalhakim.net/archive/2008/04/06/faulty-assumptions-waste-time.aspx</link>
            <description>&lt;p&gt;Iv spent the last 3 hours looking into the Facebook.NET api, which is a headache. I would have expected alot better code from someone who is very high up in the .NET community. The issue is, when visiting this Facebook application, if you don't have the application added, this redirects you to add the application. I know this is wrong, because I read alot of the Facebook documentation, and it says you dont have to do this. After tracking down the code through alot of painful debugging (Facebook dont make things easy), I came across this line:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/Faultyassumptionswastetime_147A8/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="47" alt="image" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/Faultyassumptionswastetime_147A8/image_thumb.png" width="500" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Facebook.Web.FacebookFbmlSession.cs line 61&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;That piece of code, buried deep in the Facebook.Net framework makes a faulty assumption - you can only view this application if you have added it. I have proven you dont need to do this, the only requirement is to have your self logged into the Facebook application.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Implications?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Basically, the way the Facebook.net API was written, if you want a user to interact with your application, they will HAVE to add the application - this is a pain in the arse for what im trying todo, since I only want certain people to have the application added (and stuff added to their profile) - for simple things like registering a vote, you shouldn't need to have the application added - only their uid (user id), and we can do the rest.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Way forward?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Well im taking out that line, since it makes a wrong assumption. I'm not sure if it was an oversight on the developers side, or wishful thinking.&lt;/p&gt;&lt;img src="http://blog.muntedharalhakim.net/aggbug/69.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2008/04/06/faulty-assumptions-waste-time.aspx</guid>
            <pubDate>Sun, 06 Apr 2008 21:02:06 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/69.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2008/04/06/faulty-assumptions-waste-time.aspx#feedback</comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/69.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/69.aspx</trackback:ping>
        </item>
        <item>
            <title>Stating the obvious</title>
            <link>http://blog.muntedharalhakim.net/archive/2008/01/10/stating-the-obvious-again.aspx</link>
            <description>&lt;style&gt;&lt;![CDATA[\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}]]&gt;&lt;/style&gt;&lt;style&gt;&lt;/style&gt;     &lt;div class="Section1"&gt;&lt;p class="MsoNormal"&gt;Well here is a nice lovely error I get at work:&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="419" height="279" id="Picture_x0020_1" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/stating_the_obvious/image001.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;So I try the hibernate website, and I get the really usefulfollowing information:&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="565" height="123" id="Picture_x0020_2" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/stating_the_obvious/image002.png" alt="WindowClipping (8).png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;Oh how useful. VERY useful. &lt;b&gt;YOU HAVE NOT GIVEN ANYADDITIONAL INFORMATION, ONLY REORGANISED WHATS SAID IN THAT DIALOGUE BOX.&lt;/b&gt;Maybe a link to the documentation?&lt;/p&gt;&lt;p class="MsoNormal"&gt;Incompetent twats.&lt;/p&gt;&lt;/div&gt;&lt;p&gt;Published with &lt;a href="http://www.blogmailr.com/"&gt;BlogMailr&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.muntedharalhakim.net/aggbug/68.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2008/01/10/stating-the-obvious-again.aspx</guid>
            <pubDate>Thu, 10 Jan 2008 17:08:18 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/68.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2008/01/10/stating-the-obvious-again.aspx#feedback</comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/68.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/68.aspx</trackback:ping>
        </item>
        <item>
            <title>Getting &amp;quot;In the Zone&amp;quot;</title>
            <link>http://blog.muntedharalhakim.net/archive/2007/12/06/getting-quotin-the-zonequot.aspx</link>
            <description>&lt;p&gt;I dont know about anyone else, iv never really been anyone else before, but I find getting into the zone quite hard, but when I get there, I really try to not let myself get knocked out. When im in the zone, I code really good, accurate code, very fast. I dont realize how much I spend on the machine, and I can usually code till 2 or 3am.&lt;/p&gt; &lt;p&gt;A big problem I have with working in the office is Coworkers. The biggest problem I have, is Coworkers. When I get in the zone, and they ask me an unrelated question, it knocks me out of the zone. I loose all those tiny variable names and interface names that were zipping around in my head. I loose the name of the page that I was working on, and I forget what I was doing.&lt;/p&gt; &lt;p&gt;Headphones only work to an extent. A coworker who wants to know why his hosts file entry isnt working will keep trying to get my attention, regardless of weather im wearing headphones or not.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;What can I do?&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://blog.muntedharalhakim.net/aggbug/66.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2007/12/06/getting-quotin-the-zonequot.aspx</guid>
            <pubDate>Thu, 06 Dec 2007 10:18:55 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/66.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2007/12/06/getting-quotin-the-zonequot.aspx#feedback</comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/66.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/66.aspx</trackback:ping>
        </item>
        <item>
            <title>You have accessed an ActiveRecord class t.hat wasn't properly initialized. The only explanation is that the call to ActiveRecordStarter.Initialize() didn't include System.Int32 class</title>
            <category>.NET</category>
            <category>Moments</category>
            <link>http://blog.muntedharalhakim.net/archive/2007/10/18/you-have-accessed-an-activerecord-class-t.hat-wasnt-properly-initialized.aspx</link>
            <description>&lt;p&gt;Actually, that &lt;span style="font-weight: bold;"&gt;isnt the only explanation&lt;/span&gt;. It is a &lt;a href="http://en.wikipedia.org/wiki/Red_herring"&gt;Red Herring&lt;/a&gt;. It will distract you from the actual problem, and that is your are using Castle.ActiveRecord.Queries.SimpleQuery&amp;lt;int&amp;gt; INSTEAD of Castle.ActiveRecord.Queries.ScalarQuery&amp;lt;int&amp;gt;, since you are probably just trying to pull just an integer like what im doing:&lt;/p&gt;
&lt;br /&gt;
&lt;div style="font-family: Monospace; font-size: 10pt; background-color: white;"&gt; &lt;span style="color: Blue;"&gt;string&lt;/span&gt;&lt;span style="color: Black;"&gt; hql = &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;"SELECT max(map.HighestNewRating) FROM XXX map WHERE map.Id = ?"&lt;/span&gt;&lt;span style="color: Black;"&gt;;&lt;/span&gt; &lt;/div&gt;
&lt;p&gt; Im guessing that you can only use SimpleQuery to return values that have been initialised, and you cant return anything else, whereas the ScalarQuery can be used for Ints and strings and stuffs like that - in my opinion that is just overcomplicating things, why not just have one query structure, instead of two? Both implement from Castle.ActiveRecord.Queries.HqlBasedQuery but then just add their own flavour of blah'ness ontop to make things extra complicated.&lt;/p&gt;
&lt;hr style="width: 100%; height: 2px;" /&gt;
&lt;br /&gt;
&lt;div style="font-family: Monospace; font-size: 10pt; background-color: white;"&gt; &lt;span style="color: Blue;"&gt;string&lt;/span&gt;&lt;span style="color: Black;"&gt; hql = &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;"SELECT max(map.HighestNewRating) FROM ModelClassTypeMap map WHERE map.Id = ?"&lt;/span&gt;&lt;span style="color: Black;"&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;SimpleQuery&lt;/span&gt;&lt;span style="color: Black;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Blue;"&gt;int&lt;/span&gt;&lt;span style="color: Black;"&gt;&amp;gt; query = &lt;/span&gt;&lt;span style="color: Blue;"&gt;new&lt;/span&gt;&lt;span style="color: Black;"&gt; &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;SimpleQuery&lt;/span&gt;&lt;span style="color: Black;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Blue;"&gt;int&lt;/span&gt;&lt;span style="color: Black;"&gt;&amp;gt;(hql, id);&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style="color: Blue;"&gt;int&lt;/span&gt;&lt;span style="color: Black;"&gt;[] response = query.Execute();&lt;/span&gt; &lt;/div&gt;
&lt;br /&gt;
&lt;hr style="width: 100%; height: 2px;" /&gt;
&lt;br /&gt;
Will give you an error, whereas this wont:&lt;br /&gt;
&lt;br /&gt;
&lt;hr style="width: 100%; height: 2px;" /&gt;
&lt;br /&gt;
&lt;div style="font-family: Monospace; font-size: 10pt; background-color: white;"&gt;                 &lt;span style="color: Blue;"&gt;string&lt;/span&gt;&lt;span style="color: Black;"&gt; hql = &lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;"SELECT max(map.HighestNewRating) FROM ModelClassTypeMap map WHERE map.Id = ?"&lt;/span&gt;&lt;span style="color: Black;"&gt;;&lt;br /&gt;
&lt;br /&gt;
                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;ScalarQuery&lt;/span&gt;&lt;span style="color: Black;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Blue;"&gt;int&lt;/span&gt;&lt;span style="color: Black;"&gt;&amp;gt; query = &lt;/span&gt;&lt;span style="color: Blue;"&gt;new&lt;/span&gt;&lt;span style="color: Black;"&gt; &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;ScalarQuery&lt;/span&gt;&lt;span style="color: Black;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: Blue;"&gt;int&lt;/span&gt;&lt;span style="color: Black;"&gt;&amp;gt;(&lt;/span&gt;&lt;span style="color: Blue;"&gt;typeof&lt;/span&gt;&lt;span style="color: Black;"&gt;(&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;ModelClassTypeMap&lt;/span&gt;&lt;span style="color: Black;"&gt;), hql, id);&lt;br /&gt;
                &lt;br /&gt;
                &lt;/span&gt;&lt;span style="color: Blue;"&gt;int&lt;/span&gt;&lt;span style="color: Black;"&gt; response = query.Execute();&lt;br /&gt;
&lt;br /&gt;
                &lt;/span&gt;&lt;span style="color: Blue;"&gt;return&lt;/span&gt;&lt;span style="color: Black;"&gt; response;&lt;/span&gt; &lt;/div&gt;
&lt;hr style="width: 100%; height: 2px;" /&gt;
&lt;br /&gt;
Also, why do you have to declare the type when doing a ScalarQuery ? Whats that all about?&lt;img src="http://blog.muntedharalhakim.net/aggbug/65.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2007/10/18/you-have-accessed-an-activerecord-class-t.hat-wasnt-properly-initialized.aspx</guid>
            <pubDate>Thu, 18 Oct 2007 10:55:21 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/65.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2007/10/18/you-have-accessed-an-activerecord-class-t.hat-wasnt-properly-initialized.aspx#feedback</comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/65.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/65.aspx</trackback:ping>
        </item>
        <item>
            <title>How to skin a live monkey by using just your teeth</title>
            <category>.NET</category>
            <link>http://blog.muntedharalhakim.net/archive/2007/10/10/how-to-skin-a-live-monkey-by-using-just-your.aspx</link>
            <description>&lt;p&gt;... has nothing todo with what im about to tell you. No, really, it dosent. Although, its about the same - a quick how to on how to write SQL JOIN's with nHibernates "super-shitty" HQL&lt;/p&gt;
&lt;br /&gt;
Say heres your bog standard JOIN statement that you want to run:&lt;br /&gt;
&lt;br /&gt;
&lt;address style="font-weight: bold;"&gt;SELECT * from MODEL INNER JOIN ModelClassTypeMap ON Model.Id = ModelClassTypeMap.ModelID &lt;/address&gt;
&lt;address style="font-weight: bold;"&gt;WHERE ClassTypeId=2 ORDER BY HighestNewRating DESC&lt;/address&gt;
&lt;br /&gt;
&lt;p&gt; You cant simply just rewrite that in HQL. &lt;a href="http://forum.castleproject.org/viewtopic.php?p=2434"&gt;HQL dosent use the "ON" directive&lt;/a&gt;. So you have to do multiple FROM statements, then tell it what you want to select. Sound easy? Welp, it isnt:&lt;/p&gt;
&lt;br /&gt;
&lt;span style="font-style: italic; font-weight: bold;"&gt;SELECT model FROM Model model, ModelClassTypeMap classTypeMap WHERE &lt;/span&gt;&lt;br style="font-style: italic; font-weight: bold;" /&gt;
&lt;span style="font-style: italic; font-weight: bold;"&gt;model.Id = classTypeMap.Model AND classTypeMap.ClassType = ? ORDER BY classTypeMap.HighestNewRating DESC&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt; To me this just seems retarded. You cant copy the sql that youv spent minutes perfecting, but you have to go and rewrite the whole thing so a 3 year old blind child whos been on cocaine for the last 6 months can understand it. Why not just do it so that you can reuse queries that you already have, instead of having to rewrite the whole way you write them? HQL is a poor mans SQL, its shoddy and flaky, and hardly documented.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Happiness is a warm gun.&lt;/span&gt;&lt;/p&gt;&lt;img src="http://blog.muntedharalhakim.net/aggbug/64.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2007/10/10/how-to-skin-a-live-monkey-by-using-just-your.aspx</guid>
            <pubDate>Wed, 10 Oct 2007 17:55:16 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/64.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2007/10/10/how-to-skin-a-live-monkey-by-using-just-your.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/64.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/64.aspx</trackback:ping>
        </item>
        <item>
            <title>Small Tip - Preprocessor Directives</title>
            <category>.NET</category>
            <link>http://blog.muntedharalhakim.net/archive/2007/10/10/small-tip---preprocessor-directives.aspx</link>
            <description>Some people say that using preprocessor directives is just plain evil in c#.net, but it has uses. For example, the #warning and the #error directives will generate a warning and / or an error when used, like so:&lt;br /&gt;
&lt;br /&gt;
C:\Work\SVN\xxx\xxx\xxx\xxx.cs(67,10): warning CS1030: #warning: 'REMOVE ME BEFORE GO LIVE'&lt;br /&gt;
&lt;br /&gt;
Quite useful as a reminder...and you can replace that with an error if you want to make sure something dosent compile, until you have finished the code (useful for working over weekends, in my opinion at least)&lt;img src="http://blog.muntedharalhakim.net/aggbug/63.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2007/10/10/small-tip---preprocessor-directives.aspx</guid>
            <pubDate>Wed, 10 Oct 2007 11:03:38 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/63.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2007/10/10/small-tip---preprocessor-directives.aspx#feedback</comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/63.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/63.aspx</trackback:ping>
        </item>
        <item>
            <title>Announcing Sky Motoring</title>
            <link>http://blog.muntedharalhakim.net/archive/2007/10/02/announcing-sky-motoring.aspx</link>
            <description>&lt;p&gt;If you have visited the Sky.com site from Monday, you might have noticed the following:&lt;/p&gt; &lt;p&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="223" alt="image" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/AnnouncingSkyMotoring_949C/image_e38193b7-4f4a-4ed1-ab22-8f8a3bb5ac72.png" width="476" border="0" /&gt; &lt;/p&gt; &lt;p&gt;&lt;a href="http://motoring.sky.com/" target="_blank"&gt;Sky Motoring&lt;/a&gt; has gone live!&lt;/p&gt; &lt;p&gt;&lt;a href="http://motoring.sky.com/" target="_blank" atomicselection="true"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" alt="image" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/WindowsLiveWriter/AnnouncingSkyMotoring_949C/image_e87599d0-f685-4984-8feb-29eef6b6598e.png" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.muntedharalhakim.net/aggbug/62.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2007/10/02/announcing-sky-motoring.aspx</guid>
            <pubDate>Tue, 02 Oct 2007 09:33:51 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/62.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2007/10/02/announcing-sky-motoring.aspx#feedback</comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/62.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/62.aspx</trackback:ping>
        </item>
        <item>
            <title>[Picture Post] Im sick in the head, for finding this funny...</title>
            <link>http://blog.muntedharalhakim.net/archive/2007/09/17/picture-post-im-sick-in-the-head-for-finding-this.aspx</link>
            <description>&lt;style&gt;&lt;![CDATA[\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}]]&gt;&lt;/style&gt;&lt;style&gt;&lt;/style&gt;     &lt;div class="Section1"&gt;&lt;p class="MsoNormal"&gt;On this forum that I read:&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="302" height="89" id="Picture_x0020_1" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image001.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;There was this thread titled “Pets”, the openingpost was:&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="571" height="104" id="Picture_x0020_2" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image002.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;There were a few responses, which I found absolutely hilarious:&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="567" height="44" id="Picture_x0020_3" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image003.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="567" height="60" id="Picture_x0020_4" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image004.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="571" height="60" id="Picture_x0020_5" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image005.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="574" height="68" id="Picture_x0020_6" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image006.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="574" height="45" id="Picture_x0020_7" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image007.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="574" height="45" id="Picture_x0020_8" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image008.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img width="574" height="45" id="Picture_x0020_9" src="http://blog.muntedharalhakim.net/images/blog_muntedharalhakim_net/picture_post_im_sick_in_the_head_for_finding_this_funny/image009.png" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;I just found those posts really REALLY funny. Im sick in thehead &lt;span style="font-family:Wingdings"&gt;J&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;Published with &lt;a href="http://www.blogmailr.com/"&gt;BlogMailr&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.muntedharalhakim.net/aggbug/61.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2007/09/17/picture-post-im-sick-in-the-head-for-finding-this.aspx</guid>
            <pubDate>Mon, 17 Sep 2007 13:27:34 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/61.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2007/09/17/picture-post-im-sick-in-the-head-for-finding-this.aspx#feedback</comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/61.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/61.aspx</trackback:ping>
        </item>
        <item>
            <title>I saw the strangest thing on the tube today</title>
            <category>Misc</category>
            <category>Moments</category>
            <link>http://blog.muntedharalhakim.net/archive/2007/09/11/i-saw-the-strangest-thing-on-the-tube-today.aspx</link>
            <description>&lt;p&gt;I saw an old man (over 70), Asian looking (turns out hes from Bangladesh), in the full &lt;a target="_blank" href="http://en.wikipedia.org/wiki/Ihram"&gt;Ihram&lt;/a&gt; kit - he was going to Umrah (minor pilgrimage, its not required like the Hajj, but you can go whenever you want to do it, as opposed to just going when its Hajj.&lt;/p&gt;
&lt;p&gt;I felt a bit sorry for the guy, as he didn't realise that you don't have to wear it immediately after leaving the house, but when you reach the &lt;a target="_blank" href="http://en.wikipedia.org/wiki/Miqat"&gt;Miqat&lt;/a&gt; - the pilgrimage boundary which is a about 200km around Makkah.&lt;/p&gt;
&lt;p&gt;A small note - &lt;a target="_blank" href="http://www.islamonline.net/servlet/Satellite?cid=1124781357911&amp;amp;pagename=IslamOnline-English-Hajj_Umra%2FHajjE%2FHajjE"&gt;some Sunni's say that you should perfume your body&lt;/a&gt; when you enter the state of Ihram - they are wrong, as perfume is one of the 25 "banned" things.&lt;/p&gt;
&lt;p&gt;*Edit - I stand correcte d - it turns out, that if the flight goes over the boundaries of the mosque (a few hundred km in each direction), you still have to be wearing the full Ihram kit, so thats a possible reason to be wearing it on the plane. My dad had to do the same a few years ago, when he flew from Kuwait.&lt;br /&gt;
&lt;/p&gt;
&lt;div style="margin: 0px; padding: 0px; display: inline;" contenteditable="false" id="0767317B-992E-4b12-91E0-4F059A8CECA8:f747b730-fc7f-4079-ae2d-04e86124d954" class="wlWriterSmartContent"&gt;Technorati Tags: &lt;a rel="tag" href="http://technorati.com/tags/Hajj"&gt;Hajj&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/Umrah"&gt;Umrah&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/Ihram"&gt;Ihram&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blog.muntedharalhakim.net/aggbug/60.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Muntedhar Alhakim</dc:creator>
            <guid>http://blog.muntedharalhakim.net/archive/2007/09/11/i-saw-the-strangest-thing-on-the-tube-today.aspx</guid>
            <pubDate>Tue, 11 Sep 2007 08:53:21 GMT</pubDate>
            <wfw:comment>http://blog.muntedharalhakim.net/comments/60.aspx</wfw:comment>
            <comments>http://blog.muntedharalhakim.net/archive/2007/09/11/i-saw-the-strangest-thing-on-the-tube-today.aspx#feedback</comments>
            <wfw:commentRss>http://blog.muntedharalhakim.net/comments/commentRss/60.aspx</wfw:commentRss>
            <trackback:ping>http://blog.muntedharalhakim.net/services/trackbacks/60.aspx</trackback:ping>
        </item>
    </channel>
</rss>