All My Brain Where stuff from my brain lands

February 11, 2010

AllMyBrain is Tweeting

Filed under: Web — Tags: , , — Dennis @ 7:50 am

I’ve succumbed to the Micro Blogging movement. I figure it’s a little easier to keep people posted on various topics by posting a tweet rather than adding a new blog post for small items of information or links. Fell free to follow @allmybrain. I added a Twitter widget to WordPress as well, which seems to work just fine.

January 22, 2010

A review of sponsoredreviews

Filed under: Miscellaneous — Tags: , — Dennis @ 8:21 pm

I’ve terminated my sponsoredreviews.com account. It was a fun experiment, and I did indeed receive some cash on the side, but it’s just not worth the time I guess. I don’t think any readers of this site are actually are interested in the reviews anyway. I tried to write them in a way that was at least somewhat educational, or pointed out how I thought the service could be useful. It seemed to me however that the only people ever purchasing reviews on the site were ISPs or email hosting services. I think readers AllMyBrain.com are advanced enough to find an email provider that works for them and are also probably happy enough with their ISP. On occasion, I would see something I thought actually applied to the community and bid on it. None of those advertisers ever accepted though. Recently, SR raised the amount they take from the advertisers. I figured it was good enough time toss in the hat and focus my energy elsewhere.

October 9, 2007

Upgrading to WordPress 2.3 and the New Built-in Tagging Feature

Filed under: Web — Tags: , , , , , , — Dennis @ 2:24 pm

I’ve barely completed an upgrade to WordPress 2.3. Out of many new improvements, one which stood out to me is the integrated tagging support. No longer, is it necessary to download one of the many tagging plugins.

Some things I noticed during the upgrade:

  1. My existing tagging plugin broke at the time of the upgrade. I found, after searching on Google, that some of the database schema that most tag and link plugins depend on was removed. (wp_post2cat et. al.) Simply disabling my two plugins for Simple Tagging fixed the database error message at the top of the pages
  2. WordPress has importers for a lot of tagging widgets. All I had to do was go to the “Manage” tab and choose “Import”. Importing the tags worked flawlessly.
  3. The new tag cloud widget applies unique styles to each tag. They are in the format < a class=”tag-link-$tag_id” … >. To get around the tags not having a style, I modified my style sheet and added color and link styles to the container div that the tag widget is in.
  4. I had to modify my page template to print a list of tags at the bottom of each post. There is a pretty good reference for that here.

October 5, 2007

Pardon my dust

Filed under: Web — Tags: , , , , , , — Dennis @ 2:27 pm

I found that my theme was not working correctly in Internet Explorer (Gee, imagine that.)

Rather than search for another, I’ve decided to tweak it myself. Pardon my lack of styles for a bit.

Edit There. I’ve created a new template, based on my old template’s stylesheet, that uses YUI Grids instead of a home grown template layout. Not that I’m opposed to creating your own layout, but hey, I really didn’t want to find out why my left column displayed at the bottom of the page instead of where it was supposed to in Internet Explorer.

Anyway, this is still a work in progress. I need to go through the styles that I didn’t tweak much and delete things I don’t need. I also need to clean up the styles on some of the templates. I also need to re-comment all the template pages. Perhaps when I get a moment I’ll upload this somewhere.

October 2, 2007

My New Bookmark Widget

Filed under: Web — Tags: , , , , — Dennis @ 9:15 am

Ok, I found a widget that could replace the bookmark widget by simply allowing a customizable interface to the wp_list_bookmarks function. This is a highly customizable function that not only lets you grab all the bookmarks, but allows customization of how they are displayed. The widget gives you an interface that lets you change parameters to the function without having to modify the template.

My 1st attempt at using the widget didn’t work. After examining the HTML, I realized that there were a few tags I needed to not leave at the default. I got the links to work how I want making the following modification in my functions file of the theme I’m using.

function widget_mytheme_blogroll() {
?>
-<h3>Blogroll</h3>
- <ul>
- <?php get_links(-1, '<li>', '</li>', ' - '); ?>
- <?php
+ wp_list_bookmarks('title_before=<h3>&title_after=</h3>&category_before=&category_after=');
- </ul>
-<? php
} ?>

This gave me the category tree and also changed the titles of the categories to be in the same format that the rest of the template was in.

Now that I’d figured out which parameters were of importance to me, I gave the link widget another go. I found that the reason I was having problems is that the category_before and category_after parameters are always displaying <li>,</li> respectively instead of my desired blank setting. I tried spaces, &nbsp; and even random strings. Nothing seemed to work so I went back to my hacked template function instead. Oh well, I guess I can hack additional themes not that I’ve got the basics of what I want down. It’d be nice to get that working in the widget though.

October 1, 2007

WordPress and Caching

Filed under: Web — Tags: , , , , , , — Dennis @ 9:11 pm

I just installed the plugin wp-cache. I’m not sure why more WordPress users don’t enable this. From the Wp-Cache description:

WP-Cache is an extremely efficient WordPress page caching system to make you site much faster and responsive. It works by caching Worpress pages and storing them in a static file for serving future requests directly from the file rather than loading and compiling the whole PHP code and the building the page from the database. WP-Cache allows to serve hundred of times more pages per second, and to reduce the response time from several tenths of seconds to less than a millisecond.

I don’t know how many times I’ve gone to a link on Digg.com and found an unusable site with mysql database connect errors, or simply a crashed web server. The comments always say “Another WordPress Blog”.

The problem isn’t WordPress specifically. Any site with a database backend for storage could have the same issues. The problem is that WordPress doesn’t cache pages by default. Any site serving static content with Apache as a front end should be able to handle digg traffic for a while assuming that they enough memory, bandwidth, and the apache directive “MaxClients” set high enough. Well, WP-Cache turns your dynamic WordPress installation into static pages and only regenerates them when they change.

We were marveling at the efficiency of this all when Scott’s Site was dugg twice on the same day.

Older Posts »

Powered by WordPress

css.php
%d bloggers like this: