There are SDKs to use and files to include and libraries to use and, often, you might end up with problems when compiling your software. Many times it happens when you customize you include folders in Visual Studio.
I bumped into this problem when I shifted to x64 coding and found a solution I decided to add here for those who need it:
How to reset your includes in VS 2005
- Go to C:\Documents and Settings\%user%\Local Settings\Application Data\Microsoft\VisualStudio\8.0
- Find this hidden file VCComponents.dat
- Rename / Delete it
Go back to Tools > Options > Projects and Solutions > VC++ Directories and you will see the includes are back to the defaults. This time keep'em clean!
One thing clear up-front. I have no problem with black people. With no race actually. Not even with gay as long as they don't gain gayn interest in me :)
I'm watching the presidential shift in the USA and one thing comes to my mind: LORDI! In 2006 the Eurovision song contest was won by a band of rockers from Finland that won just because they appealed a large category of people that never had representation there. Heavy metal crazy-ass rockers! And the rockers voted, oh shit they voted! And they won! For their music ... no. Just because they represented a niche which no one else appealed to.
I look at Barack Hussein Obama (as in Saddam Hussein) and I see a winner who did the same thing. Found his niche and appealed to it. And people bought it. He appealed to all those who were / felt different. And he won! I won't discuss whether he will be a good president or not. Whoever is naive enough to think that the President rules the USA and Presidents are elected democratically (and anyone can get President) still has a shitload of homework to do and needs proper grounding. Maybe people did vote for him ... after brainwashed / manipulated.
Choice between two is no choice. Especially if the other one has been preceded by George War Bush. Yet, I do think/hope that maybe he'll act smarter the GWB. Do learn from me that nothing has changed. Except the skin color and popular support ... for now!
Same war for oil, same fake anti-terrorist struggle, same world domination / policing ideas ... same ol' shit!
PS: Absolute power corrupts absolutely!

This was fun! I wanted to get the IE8 Beta and take a look at it but noticed the ad that left me speechless. I do understand the concept of hijacking Microsoft IE's rendering engine and writing your own pseudo-browser (like Avant Browser or AOL) but distributing custom (adding your toolbar and setting your own service as default search engine) versions of your competitor's product is really messed up ... imho!
And on top if it all ... pretending to be an upgrade?!
These magic constants are not as well known as they should be, neither as appreciated as they should be. These constants do magic if one knows how to use them. But, to know how to use them, one has to actually understand them. I'll try in this post to explain them to you and somehow change the way you code and distribute your files. So let's try to understand each of them.
Read the rest of this entry »
I was pretty confident I knew RegExp in PHP but sort of missed one modifier and learned that the hard way few days ago. The D (PCRE_DOLLAR_ENDOLNY) gave me a lof of grief.
Read the rest of this entry »
As you might notice there's an ad at the bottom of the post. And it's added by a plugin using the the_content filter. My plugin has an option to produce JS output using document.write so the robots don't index it and leak the link juice but I bumped into a problem. The wpautop internal wordpress filter was messing up the JS code, breaking lines and taking names leaving my heroic attempt at a cool plugin almost dead on the battlefield. But perseverence is a defining trait of mine ... and I'm lazy. So I started looking into the matter and everyone suggested disabling the filter.
Read the rest of this entry »
I like the concept of widgets and I especially like the simple text widget where I can put in my own HTML and do some magic in the sidebar. But ... what if I want custom text on each post? I want to add a text widget and add custom text on each post with obvious advertising purposes. But Wordpress does not do that. So, as I'm too lazy to search for anything like that on the Wordpress site, I wrote it myself.
Read the rest of this entry »
I like Wordpress. I hate the slow loading time of the admin side and the code can be shorter but it's the best I got with all its features right now. I've been testing it for a few days now and I started to put together a list of things I need.
I liked the fact that the learning curve was actually: none. Intuitive, especially for those who know what their doing. The plugins are another story. Not so great documented I managed to scratch the surface enough for my current needs. Maybe I did more then scratch the surface but I'm acting modest here ;) Ido think the DB design could have been a lot better.
And I have their if: endif; kind of PHP coding. This is something to laugh at for a C++ coder. Any (if/for/while ...) that is going to a new line needs a {}. This allows you to better follow the code and ... it's the C++ way, the way of our forefathers!
Read the rest of this entry »