![]() |
|
Spaces home Bug VanquisherProfileFriendsBlogMore ![]() | ![]() |
|
Thanks for visiting! Bug VanquisherJuly, 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. April, 2008 Analyze This!Consider this little piece of ****. I mean piece of code. :) template< typename U , typename T > U convert( T t ) template< typename T , typename projection , > class blah_blah_blah projection& operator * ( ) If you decide to do blah_blah_blah< float , double > x = get_blahblahblah( ); The second statement will fail with some cryptic error message. The real problem is the return type of operator * and the statement return t; in convert. The implicit conversion from T to projection (which is to say, promotion from float to double) loses the l-value[dness] of *current. And since a reference requires l-value upon return, it fails to compile. Given the constraint the convert< projection > was absolutely necessary, and upon further thought, that projection& was not a requirement, a fix was born. projection operator * ( ) Who Says Harry Potter Is Worse?There are thing far, far more worst than Harry Potter in the mortal world, mere mortals. I am talking about 'The Davinci Code'. If Harry Potter movies were off the plot, The Davinci Code seems like the producer(s) and director(s) never read the wretched novel themselves. By the looks, they had just the remotest idea of what was supposed to be in the novel and how they should produce the movie, which they then off shored to some sit-together, under-paid, road-killed Indian company. I half expected some cheap song to spring to front at the end. Thank God I only spent 15 minutes watching the twisted end game. It is much better than the 90 minutes spent on 'Jarhead', where I couldn't decide the entire time whether I should continue watching it or not. That was the first for me in living history where I didn't make up my mind this long. April, 2008 'The' Source CodeIf you haven't heard that .Net framework source code is available while debugging under Visual Studio 2008 Professional (may be standard too?) or higher, I suggest you crawl out of the rock you are living under so far. Specific details about how to set up your environment to enable source level debugging in FX assemblies is here. And it works too. :) However, what amazes me is that the build tree is even more cryptic than ROTOR. Take a look at the monstrous path to AppDomain.cs. F:\NetFX Symbols\src\source\FX1434\1.0\DEVDIV\depot\DevDiv\releases\whidbey\REDBITS\ndp\clr\src\BCL\System\AppDomain.cs\7 Yes, the actual .cs file is under <blah blah blah>\AppDomain.cs\7 directory. [Update: about one hour later] 1- Go to definition does not use this particular source server for whatever reason. Bug filed here. 2- Downloaded source code is not persisted for whatever reason. Suggestion filed here. March, 2008 Muslims Being HolocaustThis deserved a break from my busy facebook schedule. :) http://razzita.blogspot.com/2008/03/israel-minister-warns-palestinians-of.html March, 2008 The Stupidest Thing I Have Ever HeardMind it I hear a lot of stupid things too.
Problem: IE8 Beta 1. ;) Of course, I'll be reporting Windows Update as broken. PS: Apparently, I can't even report Windows Update as broken on Windows XP. It won't let me. ;( Why The Hell Are You Still Here!
Everything 100% complete, yet still on computer screen!
|
|
||||||||||||||||||||
|
|