![]() |
|
Spaces home Bug VanquisherProfileFriendsBlogMore ![]() | ![]() |
|
Thanks for visiting! Bug VanquisherAugust, 2008 To CelebrateThe 61st independence day in exactly 2 hours and 34 minutes. To reflect the colors of our flag as closely as possible. August, 2008 Farewell IEI finally decided to change system’s default browser from IE to FF. About time, it is. July, 2008 Dear God, Why Brits?Why do they have to talk about something when they don't know anything? Just the hype. Just the news they get from CNet/ZD Magazine/w-e. Just the little, tiny bits of information their minds retain. Case in question:
Please read the funny stream of comments. And a bit unleashing of my own wrath.
[Update: 30/07/08 As expected, my comment wasn’t approved.] July, 2008 Deep Dive into WPF Graphics-The Lost OneJust a (minor) revival to the forgotten series I was supposed to write. With service pack 1 for .netfx 3.5, milcore.dll no longer provides the low level rendering primitives for WFP. Instead to preserve compatibility with DWM, all new APIs are provided in wpfgfx.dll, which has some minor inclusions (yet unknown to the world, because WPF team refuses to disclose any information). This blog post reasons about the decision as:
Features include things like new Effects framework (H/W accelerated this time, not the weenie S/W rendered loonies), integration with DirectX surfaces [all I can remember right now :)]. Apart from that, all DllImports which used to be like DllImport( “milcore.dll” ) now reference the new wpfgfx.dll. P.S.: I SO hate this post. I don’t do this sort of news aggregator things! Especially when it is so late. Memorable
That is all. July, 2008 Someone Please Fix ASLR!Not the feature but what it means. I have heard/read over 3 different expansions for the abbreviation. ASLR: Address space layout randomization. And some more which I forgot. Its just a mass confusion over what the term actually means while the implementation is simple to explain. One boot, you get dlls loaded like A B C D E F And that's it. July, 2008 What Spring Had!And I thought ASP.Net didn't have it. And yes, I am talking about this Spring. And the feature in question in Spring's DWR or direct web remoting. A feature similar in functionality exists in WCF 3.5 incarnation, namely, "AJAX Integration and JSON Support". This also allows an ASP.Net AJAX (or w/e it is called these days) client side to call a WCF service endpoint. June, 2008 Promote FirefoxGet is from here people! http://ftp.twaren.net/Unix/Mozilla//firefox/releases/3.0/win32/en-US/Firefox%20Setup%203.0.exe June, 2008 Catch the MistakesHot off facebook's profile home...
Now, this is SO horribly wrong. 1- Urdu is/was never spoken in KSA. Even the immigrants don't make up much. 2- There is no positive option. 3- It is impossible to answer for a blind person. 4- Not wanting to read is no one particular language's fault, perhaps the individual is real dumb, stupid moron. For all we know. May, 2008 C++ - The Power of TemplatesDo you read Ian Griffiths? If not, please start reading. Belongs in the group of smart people (by my classification). But smarties don't know everything either, nor do I. However, there is one thing Ian gets wrong in one of his articles. He specifically writes, The fact that there is no implied type becomes even more striking when you consider some more interesting Python examples. Because Python performs its type checks even later than C++, you have even more flexibility: def speak(speaker, mood):
if mood == "verbose":
speaker.WaxLyrical()
elif mood == "shy":
speaker.Whisper()
else:
speaker.Talk()
yada yada yada... Note that in C++ we'd see a different result here. Python defers its type checking until the point at which you try to use a member. In a C++ template, the check is done when the template is instantiated. So C++ would actually require all three methods to be present, despite the fact that only one will be used for any given execution of the However, the part about "C++ would actually require all three methods to be present" is wrong assertion. It is entirely possible to have the same behavior like Python in C++. Never, ever, underestimate the power of compile time Turing-complete templates available. :) The code given below requires only one function at a time. My only humble request is to compile it on a sane compiler (implicitly exclude MSVC 7 and earlier). #ifdef _MSC_VER && _MSC_VER <= 1300
Hopefully, a little more C++ will bring peace and harmony in the world :). One can only hope. Flat PerspectiveNot mine, about some stupid movies. As a rule of thumb if the thing you are watching (in other words, wasting time) does not have a flat perspective, something like spherical projection or, even more obtusely, oblong, then, its simply not worth the time. There will be no story, just stupid flash backs (strong analogy to 'Lost'). And it will end so suddenly, you'll scratch your head longer than the time it took you to watch it figuring out what just happened. May, 2008 Who said Mac was horribleMay, 2008 Previous VersionsThey don't exist in Windows Vista Enterprise Edition, or do they? For me they do and this is how. Woes and WorriesI wonder why people cry of the sucky video drivers pushed out by NVidia. The monsters Intel rolls out for their D946 GZ chipsets must be on par. I have had more GPU resets from them than power failures! Even new yahoo messenger causes the graphics stack to crash weirdly. [Update-After five minutes] Here's the most charming, updated EULA of the driver I downloaded.
I mean what they are playing at? May, 2008 Male vs. Female[Notice: If you are not male, proceed with caution.]A new sign in the Bank Lobby reads: May, 2008 Storm or Strom?EarthStorm's (probably a sucky movie because I don't like William Baldwin) name is written EarthStrom on HBO. :) P.S. I should add "sarcastic" to the categories, soon. :) :) April, 2008 Threat Levels[Disclaimer: No intended offense to any English, French, Italian, German, Belgian, Spanish or Aussie reader who happens to come across this post.]The English are feeling the pinch in relation to recent terrorist threats and have raised their security level from "Miffed" to "Peeved." Soon, though, security levels may be raised yet again to "Irritated" or even "A Bit Cross." Londoners have not been "A Bit Cross" since the blitz in 1940 when tea supplies all but ran out. Terrorists themselves have been re-categorized from "Tiresome" to "A Bloody Nuisance." The last time the British issued a "Bloody Nuisance" warning level was during the great fire of 1666. Also, the French government announced yesterday that it has raised its terror alert level from "Run" to "Hide." The only two higher levels in France are "Surrender" and "Collaborate." The rise was precipitated by a recent fire that destroyed France's white flag factory, effectively paralyzing the country's military capability. It's not only the English and French that are on a heightened level of alert. Italy has increased the alert level from "Shout Loudly and Excitedly" to "Elaborate Military Posturing." Two more levels remain: "Ineffective Combat Operations" and "Change Sides." The Germans also increased their alert state from "Disdainful Arrogance" to "Dress in Uniform and Sing Marching Songs." They also have two higher levels: "Invade a Neighbor" and "Lose." Belgians, on the other hand, are all on holiday as usual, and the only threat they are worried about is NATO pulling out of Brussels. The Spanish are all excited to see their new submarines ready to deploy. These beautifully designed subs have glass bottoms so the new Spanish navy can get a really good look at the old Spanish navy. The Australian's level has increased from "What the f#ck?" to "Who the f#ck?". The next level for Australia will be "Well, f#ck me" all the way up to "Enough is a f#ckin nuff". April, 2008 Horribilus TotalusI can't properly write anything from Live Writer if I have IE8 installed. For some weird reason, mshtml.dll seems to decide that an AV is in order at some random instant whenever playing with tables or particularly (read pretty) formatted text. April, 2008 The Myth Called OverloadingThere is no such thing as function overloading in this world! Period.
Whatever you see in HLLs is the compiler lulling you into the false sense that function overloading exists.
Cases in point:
1- C++: Most major compilers (at least from Microsoft) use name mangling. Here is dump of four constructors on std::bad_cast from msvcrt.dll
2- CLR:Everything compiles down to IL, whether you like it or not. And here's IL for typical function calls: call class System.ServiceModel.Channels.Message System.ServiceModel.Channels.Message::CreateMessage( class [System.Runtime.Serialization]System.Xml.XmlDictionaryReader, int32, class System.ServiceModel.Channels.MessageVersion) from System.ServiceModel.Channels.Message. That's it, you get the whole nine yards. Return type + fully qualified function name + fully qualified parameter types. It does not matter whether you use call, callvirt or calli. If its a call, its going to use everything fully qualified. 3- You may want to argue about operator overloading. But that's just syntactic sugar. Here is >> from std::basic_istream.
4- In CLR, the case is even simpler. You get op_Add straight away, then, its off to fully qualified function calls in IL. End of story. It does not exist. Anywhere. Ever. April, 2008 Stick Your Leg [Here]
This is what you get when someone who is no programmer tries to stick their leg into matters no one in their ancestors ever understood. By the looks, it seems that T-SQL itself natively supports LINQ. :) April, 2008 It is comingint array [ ] = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 }; The first revision is here! Compare the above to this. Almost all the clutter is gone. exit( 0 );I upgraded [it]s project to VS 2008 format, only three days before the semi-official end (on Wednesday, if I remember correctly) of development. Only to find that VS 2008 does not play too well with only 1 GB memory.
|
|
||||||||||||||||||||
|
|