IIS + PHP 404 hack for Wordpress

July 30th, 2008

Finally decided to fix and re-release this little code snippet.

You can have fancy urls for wordpress in IIS without any need for a url rewriter. Then again, this is really the only way I know to do fancy urls in IIS..

Anyway, simply take this code:

<?php
//404 hack
//by the mickelphin

//Get the end of the url
$urlstub = substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'],”:80/”)+4);
$_SERVER['REQUEST_URI'] = $urlstub;
$_SERVER['PATH_INFO'] = $urlstub;

//Attempts to repair corrupted get data, iis bug
foreach ($_GET as $id => $data) {
$_GET[substr($id, strpos($id,"?")===false?0:strpos($id,"?")+1)] = $data;
}

require “index.php”;

?>

And insert it in a file called 404.php in your blog directory.

Then open up IIS’s config and move to your blog directory. Open up properties for that, and go to the Custom Errors tab. Click on the first 404 entry [and only the first], press edit, change it to url, and put in ‘ /[your blog directory, if any]/404.php ‘.

Ok on out. In wordpress, change your permalink style to exclude index.php. ie simply: ‘ /%year%/%postname%/ ‘ or whatever.

And have fun. I’m using it now.

If you have any issues, feel free to leave a comment.

Amiga Demos

July 17th, 2008

Let’s go back a bit shall we? Back to when I randomly posted Demoscene Demos on here.

Here’s a few demos by The Black Lotus, done for Amigas. Of course, the amiga they were using is fairly well modified with extra ram and etc, but meh.

Captured in WinUAE, so both have a fairly high framerate then on the real machine.

This one was ported to Atari Falcon. Here it is running on the machine [once again, fairly well modified]

Project Wonderful 1 Month Review

July 14th, 2008

Finally, after 1 whole month I feel experienced enough to do a preliminary review.

The really short version: It sucks.
The lesser short version: Project Wonderful is not good for content providers, however, for advertisers it’s a great low-cost way to do ads.

Our site’s average CPD [Cost Per Day] for our adspot [a add on the bottom of T.RScript.org] was 33 cents. 33 freaking cents for 10k ad views. Click ratio was about 0.15%.
For comparison, our Google AdSense click ad ratio has been 0.17%, and it’s average CPD is $2.

Project Wonderful: $0.02 per click, $0.04 per 1k views, $0.33 a day [338 clicks, 252k views, 31 days]
AdSense: $0.13 per click, $0.23 per 1k views, $2.01 a day [448 clicks, 252k views, 31 days]
[Both costs are AFTER the ad services take their cut]

Quite a big different if you ask me. Project wonderful is great for advertisers who want cheap ads, but suckage for content owners, with the low return we’ve been experiencing. Personally, I don’t think Project Wonderful is that well balanced as they say it is.

At least, not for smaller sites like t.rscript.org with only 10k views a day.

But, even on larger sites like PVPonline.com, it doesn’t seem to get the full value out of Project Wonderful. $20/day for 120k+ page views of your ad. Not sure about clicks, but I imagine it’s fairly decent, I’ve found a few things interesting on their adspace anyway.

In Conclusion: Project Wonderful Sucks for Content Providers; But Awesome for Advertisers. With it’s super-low cost per click ratio, the ratio of fairness between Content Providers and Advertisers is leaned heavily toward Advertisers.

————————-

Anyway, the ad place on the bottom will be removed later today once we have finally cleared the cash withdraw point of $10. Google ads, on the other hand, are making us about $60 for t.rscript.org.

Hopefully, the removal of that ad will help lighten the visual load. Also will allow us to add site statistics in it’s place as per the original plan.

That’s all for now. Back to working on Capped. And job-hunting. [Anyone need a PHP Dev? Contact me and I'll send my resume]

Removal from Google’s Index

June 26th, 2008

Dear site owner or webmaster of t.rscript.org,

While we were indexing your webpages, we detected that some of your pages were using techniques that were outside our quality guidelines, which can be found here: http://www.google.com/webmasters/guidelines.html

In order to preserve the quality of our search engine, we have temporarily removed some webpages from our search results. Currently pages from t.rscript.org are scheduled to be removed for at least 30 days.

Specifically, we detected the following practices on your webpages:

* The following hidden text on t.rscript.org:

e.g.

RPG roleplaying game games mmorpg mmo runescape runescript game games mmorpg rpg mmo ok seriously GIVE US BETTER TARGETED ADS

[...]

We would prefer to have your pages in Google’s index. If you wish to be reconsidered, please correct or remove all pages that are outside our quality guidelines.

Sincerely,
Google Search Quality Team

Just so you know, we’re changing ad services. Thanks google, your adsense cannot sense right, therefore me following a recommendation off your site to add keywords, which then you turn around and slap me with this. Thanks.

Back to Web Dev

June 24th, 2008

So I’m back to developing web pages and stuff for a bit here.

Today’s for-fun project was: http://t.rscript.org/custom

Works in Opera 9.5, FF3/Gecko, IE7 [and IE6 I think], and Safari/WebKit/KHTML.

I ran into many fun problems, including this IE bug - as well as a Safari bug with handing JavaScript comments.

The color picker is from here: http://johndyer.name/post/2007/09/PhotoShop-like-JavaScript-Color-Picker.aspx

And so on. Glad that’s done, now to go look for a real job.