Where're my damn icons?

I don’t get it. My lifestream icons are not loading for some reason even though you will see in the page source that they are loaded as part of the class. For some reason, initially the last.fm and facebook icons stopped loading after I hacked the SimpleLife plugin to make it play with all kinds of feeds. Then, I discovered why the colours of the custom feeds were not being used (a missing colon) and fixed it, and now <a>all</a> my icons are gone…

Grrr!

Nothing I do seems to fix this and I just cannot see why it is happening. There does not seem to be an obvious error in the code and the rest of the css class (text, background colours) are loading just fine. In the source of the page, you can see the css clearly loading correclty


a.lastfm {
background: 0c0c0c url(http://dbzer0.com/wp-content/plugins/simplelife/lastfm.png) no-repeat 10px 50% !important;
border-top: 1px solid 0c0c0c !important;
border-bottom: 1px solid 0c0c0c !important;
color: #BFBFBF !important;
}

And then the item call

<li class=”item”><a href=”http://www.last.fm/music/Machinae+Supremacy/_/Stand” class=”lastfm” title=”db0’s Recently Played Tracks”><span class=”timesf”>09:48</span> Machinae Supremacy – Stand</a></li>

And the icon exists…
Anyone have any idea what is going on?

At least now I can have feeds from any source (feedburner, del.icio.us, google reader) without losing formatting. I just need to wait for the next plugin version to add options for more streams 🙂

UPDATE: Nevermind. I found the culprit. Apparently I’m blind…

Mighty plugin hacking

Well…for my newbie standards at least 😛

I’ve been playing around with the SimpleLife WordPress plugin, trying to create a simple lifestream I can embed in my about page and perhaps in my sidebar as well. It turned out that this was a job which needed a bit more attempt to make it work.

Below are the changes I did in order to wrangle it.

  • Had to edit the plugin in order to get it to diplay correctly in the plugins page. For some reason it floods the screen with it’s contents. Apparently editing and saving should solve it but in my case I needed to delete some newlines as well.
  • Changed the classes .date and .time to .datesf and .timesf and modified where they were called. Leaving them as they were, they were screwing with other css classes on my site under the same name
  • Changed the if statement for last.fm to look for the string ‘last.fm‘ instead of ‘last‘ since that string may be a part of any other url.
  • Put three new if statements, similar to the ones that check for last.fm and facebook, that check if the link goes to this blog, the ACP or the Wesnoth Journals. Then set the class according to that. The way the plugin is setup, it does not assign the class depending on the feed url bur rather according to the current link url. This means that you cannot use feedburner as your feeds address as it will never trigger an if statement[1]. I actully find the way this is handled a bit weird as it would serve much better to check the feed url and assign a class, rather than check the current link. I’ll have to check if that’s actually feasible…
  • Commented away the if statements for the first three feeds. I’m using the custom ones instead now.
  • Manually set the colour of the last two feeds within the plugin. For some reason even though the php call takes the variable I’ve set in the plugin configuration page (I can see it in the source code of the page) the colour is not being used and the text stays black. Weirdly enough, the background colour is changed well enough and the “blog feed” works just fine.
  • I didn’t want all my delicious feeds to be posted because I seem to be doing an awful lot of them. I prefer to log only the ones that signify my comments for which I use the mycomments tag. Fortunately I’ve discovered that you can use a del.icio.us tag by using the form: username/tagname
  • Created a new page template and inserted the php code there.

All-in-all, the plugin seems very promising and it already seems to work fine for me. However it does seem quite error-prone and lots of people most likely won’t be able to use it yet. Fortunately this will be fixed in the short future.

Now I just have to see if I can add more stuff for it to track.

Liars

Unfortunately it seems that creationists are not the only ones limited to lying. There are many others who even though they claim an intellectual base (in biology no-less) but are just as shallow and quick to turn to comment deleting and banning in order to silence and the ones that refute them.

Thus, witness the my recent exchange with one such liar with whom I tried to engage in a conversation after I read a recent post from the Black Sun journal. Initially I left a simple comment and didn’t expect to respond any more. However after taking a second look and seeing that I’ve been labeled as an Objectivist (of all things)I decided to leave a second one.

I expected it to be deleted in short order which is why I kept my browser window open to it. And this is exactly what happened. Not only that, but the blog author decided to tell blatant lies in order to save whatever credence she had left with her audience. Unfrotunately, for some reason my browser window reloaded and I lost my comment (although you can see when I tagged it here) which means I cannot easily copy-paste it here.

Within my reply, in short, I tried to actually discuss the matter with her. I explained that she was doing the all too common fallacy of appealing to emotion. I explained how having the goverment take an active hand in the curriculum does not lead to totalitarianism, as exemplified by the situation in Europe where not only is the education level superior to the USA but homeschooling is also illegal. I asked her to put aside for a moment the communism/fascism idea and actually try to discuss the issue at hand.

What did I get for my trouble? I am being labeled as Black Sun’s alias, an Objectivist and a Troll.

Now, you would assume that anyone with even 2 minutes to space would very easily discover the validity of the first two claims by visiting my blogger profile, clicking on the “My Website” link and then coming to the Division by Zer0. Then it would be obvious that I am independent from BSJ and also find out my thoughts on objectivism (Hint: They’re not positive). It would also be easy to surmise that I am also not a Troll, unless Troll for this particular hypocrite includes anyone who disagrees with her…

But no. Even that simple task was too much to ask for this Homeschooler. It was just so much easier to delete my comment, put her comments on moderation (so that we don’t spoil her party) and put invalid labels on me and everyone else who dissagreed with her. Just read Black Sun’s latest post for more amusement.

If this is the kind of discussion she is having, I’m feeling sorry for her kid(s). I really am. Here is a child who will grow up learning that you should never challenge your authority figures or else you risk losing your rights to speech. And Gawd help the kid if he so much as dares to say that Communism/Socialism has some nice ideas. Seeing how she reacted to people proposing goverment intervention in order to save children from being kept ignorant, I’m half-expecting her to explode and start urgent brainwashing procedures (Yeah right, as if she’s not doing so now…)

It’s impressive though. Even Objectivists were not so rude so as to delete comments without a fair warning and an attempt to discussion.

Unfortunately people like this seem to be perfectly happy to live in their little bubble world where all they hear is praises from their friends. Putting their head in the sand is apparently a very appropriate method of dealing with issues and they’re displaying the classic “Live and let die” mind frame that has, and still is, creating so many problems in the world. It is a pity but like a hedgehog, when reality rears its ugly head, they will prefer to curl up in a ball rather than face it.

I have no specific problem with that when it affects only themselves but unfortunately not only do they brainwash their children to act in such a manner but they are also spreading their lies to the blogosphere without havign to deal with any feedback. Against such action, like Alonzo Fyfe says, our only course of action is Words and Private Actions. You have seen my own actions already and these are to spread the word and label them as appropriate.

I urge any and all of you (yes, all five) to expose such people for what they are by linking to them with keywords that describe them. I selected “Liar” in this caseand Black Sun selected the quite appropriate “Hypocrite”. They may be able to delete comments but  unfortunately for them, they cannot delete linkbacks on the web. Hopefully anyone who is looking at whom is linking to them is bound to discover the antilogue…

If you dissagree with my action on the other hand, I’d love to hear your opinion on this.

ClickComments on Feed

I’ve hacked the clickcomments plugin in order to make it display only in the feed (since my layout places the script on the single post’s sidebar).

However I’ve been trying to see it and it is failing for some reason. It just won’t display in my feedburner human-readable feed. I’m not certain if feedburner prevents scripts from running or if the script is malfunctioning but I can see the correct code in the source of the feedburner page.

Can any of me feed readers else see the clickcomments panel under the content? If so I’d appreciate to hear from you.

Just in case you want to do the same with your own blog, in order to make the plugin display the panel only in the feed, you need to edit the plugin in your wordpress installation and just after the function begins, insert:

if(is_feed()) {

and close the bracket just before the return $content; part

In case you want to place the panel in your sidebar (in a widget for example) I’ve found that the folllowing code works just fine

<div class="postreachclickcomments"><script src="http://www.postreach.com/ccengine/display_iframe?perlink=<?php the_permalink(); ?><!-- &url=<?php echo get_settings('home'); ?>" type="text/javascript">
// --></script></div>

And this doesn’t even need the plugin to be installed (but you do need a postreach account)
Hmmm…perhaps I should wrap this in a widget…

As an aside, I’ve figured out why clickcomments stops loading for me eventually. Initially I thought it stopped loading from my specific IP (which is why it kept working from anonymouse) but it’s not that. Apparentlythe script saves a cookie on your browser which stops loading the panel after you’ve voted 3 times.

Unfortunately this created some problems for me as a web designer as I could not actually check if the clickcomments panel is working or not with the changes I made on the layout (I could only see that the source existed). By clearing out all cookies under the Postreach name, the pannel appears again and you can vote once more.

The problem is that this is prone to abuse. Anyone who wished to get a higher rank could just clear his comments and vote his posts once more. Since postreach does not require an account before you vote and it does not check the IP (or so it seems) it is bound to be played by any unscrupulous blogger who dreams of more visitor hits and tries to achieve it through the showcase.

I just hope that Postreach has not implemented a simple security through obscurity method to avoid it and they actually have some checkpoints that I have not seen.

Comment Quickly

I’ve just discovered a neat little service that allows readers who want to rate an article to quickly rate it.

I’ve now spent the last hour hacking it so that it integrates nicely with my site so currently you should see it on the single post page, on the sidebar. Hopefully this will allow people who don’t have anything specific to say on the post to simply press a button and label it as cool, insightful or fun (or on the opposite, boring, bad or just dissagree).

It should also embed itself into my feed but for some reason I doubt it will work. Oh well, we’ll just have to see 😉

Unofrtunately from the limited time I’ve used it, it seems that their servers are severely overloaded so the script most often than not does not appear at all, and when it does, it tends to appear last (after all the items in the page have loaded).

I’m still wondering where to place it as it is. By placing it on the sidebar, it means that you might miss it after you finish reading. By placing it on the bottom of the post, it’s very easy to see but it also does not merge as well as I would have liked with my site :-/

Opinions appreciated.

OOXML Irony

This particular phrase over at Groklaw made my day

ECMA decided not to wait for the ISO official announcement either. That made it possible to announce on April Fool’s Day. Perfection.

After such barefaced corruption of the ISO approval process, this is most appropriate.

No OpenID for you

I’ve given up trying to make the WP-OpenID plugin work with my theme. It seems it just doesn’t want to. Watever I do, it either tries to always authenticate on the url (even if it isn’t a provider) or never. I can’t get to it actually check the site.

Also, even if I do use a url that provides openid auth, the comment is rejected as spam (probably by bcspamblock) and I can’t be bollocksed to troubleshoot that.

So for now, unfortunately, I’m disabling OpenID functionality on this site. Let’s hope this can be fixed in the future.

My 3Dyssey

I have finally managed to make the display drivers on my girlfriend’s laptop (Dell Inspiron 6400) work with the propriertary ATI drivers.

It took me about a week and a lot of research but I finally managed to make it work. To make a long story short, the problem was that before I tried to install the propriertary drivers, I had installed the xserver-xgl package as it is necessary to have 3d acceleration with Ubuntu’s restricted drivers. Unfortunately, as the propriertary drivers can finally work with AIGLX, XGL is not needed anymore. Also unfortunately, this is not mentioned anywhere and not are you warned about it at all. As a result, I didn’t even think of that this might be the cause.

Furthemore, the ATI installation wiki, does not even mention this in the verification section either. I have now added it just to save other the same frustration I went through.

Hopefully, once I uninstalled the xserver-xgl driver, ATI became the default renderer. Unfortunately since compiz is used to work with XGL, it refused to activate. Fortunately the envy script is setup to configure compiz to use AIGLX so all I needed to do to fix this was run the script and have it reinstall the ATI drivers.

Finally I have normal 2D and 3D Capabilities. I especially hated not being able to see a fullscreen movie.

Lesson for the future learned: Ignore manual installations and just run the goddamn Envy

Now, all I need to do is figure out why power management is not working :-/