Search Content Through Tags
bands Berlin debian disk exim flickr geek Germany gigs Hard disk Holiday images internet Linux load balancing mail server mta Music Photography rant servers solaris spammers squid storage stuff unix Vacation vps warehouseexpress wordpress
removing blank newlines using sed.
Most people won’t find this paticularly useful, but as I’m prone to forget things:
sed -e '/^$/d'
will delete blank newlines from whatever it’s input is.
Tags: geek, Linux, stuffChristmas, work, and a bloody massive move
So I haven’t written anything for a while because I’ve been super busy…
This is mainly because I have made a rather life changing move over to York to go and work on new things at a new company.
Suffice to say the last month or two have been pretty hard going, getting the courage up to quit my job at autotrader was pretty difficult, finding somewhere to live in York was hard going too.
Good news though; I should start studying for my SCSA soon, so expect tidbits of fun information as I figure my way through the funky new features in solaris 10 (yeah I’m a bit behind the times I guess seeings sol10 has been out for like, forever).
tootles.
Tags: geek, solaris, stuffTanTan flickr photo gallery broken after upgrade to Wordpress 2.3
So I realised that the admin part of the Flickr Photo gallery plugin I use (which is at http://www.thefraggle.com/flickr/) was a bit broken after upgrading wordpress to v2.3.
It appeared to work with the configuration I had set previously. However, when on the options page for the plugin, it was complaining of not being able to find a standard wordpress include.
A quick google search showed me a couple of resources, that told me where I needed to make a slight alteration to the source of my flickr plugin …
in the file “/path/to/your/wordpress-install/wp-content/plugins/silaspartners/flickr/admin-options-load.php”
require_once(dirname(__FILE__).$tmpPath.'/wp-admin/admin-db.php');
needs to change to
require_once(dirname(__FILE__).$tmpPath.'/wp-admin/includes/user.php');
Once that’s done, the plugin works a treat!
Tags: geek, internet, wordpressupgrading to wordpress 2.3
This Was quite an easy upgrade really, and prompted me to split off my different website content stuff a bit differently.
The upgrade went as expected and so far doesn’t seem to have broken anything. The big win for me though is the new native tags feature. I’d tried messing about in previous releases with the categories, but tagging really does seem a bit of a better way to do it.
It took me a few minutes of google searching and looking around codex, but managed to find the code examples on making a “tag cloud”.
Basically you need to call the following function:
wp_tag_cloud();
At it’s most basic, you can tell it the maximum size of the text for the entities that have been tagged least, and the maximum size for entities that have been tagged the most, so I use something like follows as the code for my sidebar:
<p id="TagCloud">
<?php wp_tag_cloud('smallest=8&largest=25'); ?>
</p>
I just put this into the sidebar.php file under the current theme I’m using, and hey presto, I have a tag cloud in my sidebar!
You can also do nifty things like have a tag archive, so that whenever you go to http://www.thefraggle.com/tag/photography you can see a tag cloud at the top of the page, then the listing of the articles tagged with the selected tag.
All that was involved here was creating a file called tag.php in my themes directory, then filling this with the way I wanted the page to look, basically with a call to wp_tag_cloud() and a loop to display the tagged articles:
...
<h2 class="storytitle">Search Content Through Tags</h2>
<p id="TagCloud">
<?php wp_tag_cloud(''); ?>
</p>
<div style='clear: both;'></div>
<br /><br />
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>"
rel="bookmark" title="Permanent Link to<?php the_title(); ?>">
<?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
...
There’s more to my paticular tag.php file, as I have formatting things to make the page match the rest of the site and it’s template, but you get the gist
If you want to find out more information on the tagging features that wordpress-2.3 can do, then take a look at http://codex.wordpress.org/Template_Tags/wp_tag_cloud
There don’t seem to be a huge amount of plugins yet that help you manage your tags, but there is one that seems to do pretty much everything I think I would need to. It’s called “Simple Tags” and I found it via the all knowing Wordpress Plugin Directory, http://wordpress.org/extend/plugins/simple-tags/
There’s not a huge amount to say about it, but from there you can add and delete tags, mass edit the tags for posts and find untagged posts and pages.
Overall, I’d highly suggest to anyone that if you have the time to be bothered, and don’t have any plugins that might break due to the upgrade, get your upgrade on and get wordpress up to v2.3
Suggestions and other ideas welcome on what else I can do with this nifty new feature ![]()
cheap portable hard disks a go go
I decided to buy a portable hard disk this week for my trip to germany, so that I can ensure I don’t run out of CF space.
It’s a vosonic vp2160, and at £109 for a 60gb model I’m pretty happy. It happily reads my CF card fresh from the camera, and copies over all the images pretty speedily.
The interface is super simple and easy to use, it doesn’t play music or anything like that, but all I wanted it for was to store pictures on till I get home and can process the images.
The USB2.0 interface is speedy enough to copy over files i’ve copied to the disk, and also allows you to use the device as a CF/MMC/whatever reader for your PC, which is handy. It’s pretty handy too how you can charge the Li-ion battery via USB too (you have to plug two usb connectors into your pc, but that’s no biggie really)
What really impressed me the most, however, is how it actually seems to suggest you should be fine upgrading the hard disk at some point. They include (amongst the power adapter to charge it up and the install cd for win98 drivers etc) a mini screwdriver to uncouple the back off it, which reveals a bog standard fujitsu 2.5″ hard disk. So if I decide 60gb isn’t enough in this little device I will be able to have a good go at upgrading the hard disk!.
I also purchased a Creative Zen Vision:M 30gb today too today to tide me for my trip to germany, but will druel more at that when it arrives tomorrow ![]()