Online Poker

August 25, 2005 by Oliver · Comments Off
Filed under: Personal 

Unfortunately the minimum deposit to play for money is $50 which is far more than I'm willing to spend...

Poker, PartyPoker, Texas Holdem, Holdem, cards, gambling]]>

Reading style info with JavaScript

August 24, 2005 by Oliver · Comments Off
Filed under: Javascript 

DIV and then puts it back as it was. Changing the style is easy. For example to make the text green:

// Some code to get the DIV object and  store it in obj.

obj.style.color = "green";

Storing the old style information is a little difficult. I tried:

obj.oStyle = obj.style;
obj.style.color = "green";

But that didn't work for two reasons: firstly objects are passed by reference so oStyle always contained the same thing as style. And secondly style (when used for reading) only contains explicitly set properties. So if you set width and left you'd still have to work out right yourself.

I found out there is another property you can use, getComputedStyle. This has it's own little quirks however. Firstly it isn't an method of the object, but used more like a function and secondly it doesn't seem to work in IE6.

Firefox (W3 DOM):

temp = document.defaultView.getComputedStyle(obj, "");
temp.getPropertyValue(prop);

IE6

obj.currentStyle[prop];

I personally think the IE way makes more sense in this case but we have to cope wtih both. One thing that is slightly awkward is that one is a function the other is an array. So to make a simple to use interface to the correct function, we can use Javascript's ability to use functions as first class objects (which means you can assign them to variables):

if (document.defaultView) {
    var cStyle = function(obj, prop) {
        var temp = document.defaultView.getComputedStyle(obj, "");
        return temp.getPropertyValue(prop);
    }
} else if (document.body.currentStyle) {
    var cStyle = function(obj, prop) {
        return obj.currentStyle[prop];
    }
}

You can now call cStyle like a normal function to get the computed value of any style property of any object.

Javascript, ECMAScript, DOM, code, programming, tutorial, code sample]]>

Make money from links people don’t click on

August 24, 2005 by Oliver · Comments Off
Filed under: Technology 

It's quite a popular idea these days with a few sites offering text link brokering services. You pay them and they get several high PR sites to link to you. Doesn't matter if the sites content don't match, just that Google finds the link.

I never had a site with a high enough PageRank until now to actually join. Now I do, I thought I'd give it a spin; I joined Text Link Brokers.

A quick search on Google revealed little information (lots of question on forums with no answers). There was one negative comment but it was apparently about one of the competitors instead that has a very similar name.

Anyway a couple of days after signing up I was told I need to reduce the number of external links since they only allow 20 in total and want to be responsible for five of them (that’s whay I now have a bit at the bottom of the page counting external links). After sorting that out they sent an email for the rates they are willing to pay. And they’re pretty good. Not marvelous but they don’t actually require people to click like Adsense ads do. The one problem is I now have to wait for someone to actually buy links.

Adsense, TextLinkBrokers, text links, PR, PageRank]]>

Adsense section targetting

August 24, 2005 by Oliver · Comments Off
Filed under: Google 

A couple of comments is all you need:

<! — google_ad_section_start –>

<! -- google_ad_section_end -->

Apparently Google only take this as a suggestion but in some situations it could help. Of course sticking to one topic per page is better nearly all the time anyway.

Google, Adsense, Adwords, PPC, contextual]]>

Demo of GIS thing

August 23, 2005 by Oliver · Comments Off
Filed under: Javascript, MPOGs, PHP 

Demo.

GIS, online game, MPOG, CashWars, PHP, GD]]>

New MPOG idea

August 19, 2005 by Oliver · Comments Off
Filed under: MPOGs, PHP 

PHP, GD, GIS, maps, CashWars, MPOG, online games, multiplayer, MMORPG, MORPG]]>

Using blogs, tags and trackbacks to replace forums

August 17, 2005 by Oliver · Comments Off
Filed under: Technology 

I used to run an online game called Galaxia. And it had some forums. And the game changed and it moved and my forum software changed and all sorts of things happened to make me lose the forums. It occured to me that blogs could be used to essentially distribute the forums.

If some user had a problem with the game they could write a blog entry about it and tag it appropiately ("Galaxia-Support" for instance). Somewhere on the Galaxia site would be a list of such posts (using Technorati for instance http://feeds.technorati.com/feed/posts/tag/galaxia-support). People could then reply as neccesary (or even trackback from their own blog).

All that would be needed would be a list of the tags the site wished to use (which should be complicated enough to avoid collecting the wrong posts but simple enough to remember) and an area for non-bloggers to post entries.

As I said I'm not sure how useful the idea is but the whole distributed content things feels like a good idea.

blogs, forums, trackbacks, tags, Galaxia, discussion, distributed]]>

Google Adwords change

August 17, 2005 by Oliver · Comments Off
Filed under: Google 

computer was too slow). This morning when I logged in, half was good and half was bad. I only have two campaigns running. My important is using the budget advertiser and is unaffected. My not-so-important one had every single keyword (that had actually had a view) disabled. And as I said it’s not-so-important – I’m not preared to pay more than $0.05 per click (they wanted $1 for one keyword).

AdWords, PPC, contextual]]>

A problem with Firefox

August 17, 2005 by Oliver · Comments Off
Filed under: Technology 

A (not so) quick look in task manager revealed a possible culprit - Firefox was running and taking up 80Mb of memory and it was increasing.

Anybody any ideas what could cause a sudden and persistent memory leak in Firefox? The only extra I have installed is LiveHeaders. Until it's fixed I've had to revert to IE.

Firefox, browser, IE, IE6, Internet Explorer, memory leak]]>

A tacky competition

August 15, 2005 by Oliver · Comments Off
Filed under: Personal 

So check it out and you might just win $10.

money, competition, contest, traffic]]>

« Previous PageNext Page »