Hi Just to let you know that I have just had some joy with the Logic3 nunchuck and version 1.7 of WiimoteLib.
You must start with the chuck turned off then once everything has been initialized hit the fc paring button and your all systems go.


The lib views the chuck as the unknown device: a42000000, thus, in order to get it working at this initial stage Read..
With the ps-wii-elite engine revampĀ 95% complete, lets have at what once was so.
A Bit of History
Before I introduce some of the new features and site ethos, here is how things used to be: theme archive

The dyadic-night implementation (above) was really where ps-wii-elite really started to take shape. Driven by blogging and wordpress experience the theme matured to be both crisper and more accessible. Read..
There have been a few changes here at dyadica.net over the last few days, primarily involving color. Cornily entitled the abyss I’m about 80% through the theme revamp, however doubt is already setting in.
Initial focus behind the current change was to combat some of the old themes non intentional contrast issues, that have been highlighted by a few folks. For reference and comparison here is a picture of the old setup:

Now I really liked the gray theme however feedback indicated that things could look a little washed out… ho humm. Read..
Let me introduce you to my geeky side and also QR Code:
Although initially used for tracking parts in vehicle manufacturing, QR Codes are essentially 2D bar codes. I first came across them when I purchased my N95 and found the N95’s Barcode Scanner article over at Jason Bradbury’s blog.
If you got to this post by entering 010101010 into the search box then UBER KUDOS to you (your also a bit sad lol) otherwise you probably are wondering what the hell I am typing about so Ill explain.
Basically If you have a camera phone equipped with the correct reader software you can scan a QR Code produced image and obtain the data within, cool huh. Anyhoo take a look at the following image:

This image is a QR Generated barcode that states:
Hello and welcome to http://blog.dyadica.net. I hope you enjoy this little QR Code Demo. Read..
Due to last nights shenanagens I have decided to start a little spring cleaning (early bird and all that). There are still some areas that vitally need addressing to improve both the ergonomics and functionality of this site. You know those bits that you will do later etc.
I have started by removing the Archives list from the root page (1). Really if you want to delve into the archives there is more than enough functionality provided by the papertrail and the main archives page.
The purpose of a root (snapshot) page should be to capture the interest of new visitors and provide veterans with immediate access to new content. Realistically at present this one is far to er.. hectic or eclectic which ever floats your boat lol.
I have also decided to remove the wiisource collective (2) completely (content can easily be accessed via standard surfing: tags, cats archives etc) and replace it with new focused projects and tutorial pages. The first of these being the wii connect project detailing the wiimote windows driver I am currently developing.
The plan is for all wiisource content to migrate to a bespoke sub domain (3) ala wii.dyadica.net. This will make things easier to find and let those who are solely wii orientated to avoid the general blog.
Read..
I do not know what happened last night. For some strange reason all bookmarks / blogroll related bits just disappeared from dyadica.net.
A little googling revealed this is not a sole occurrence but perhaps wordpress related…? However this morning everything is back as it should be and I cannot find any reference to the issue… WEIRD.
I should have bookmarked the relevant pages.
On the upside this event has forced me to fully update from the depreciated get_links() tag to the new (2.1) wp_list_bookmarks() tag in a vain attempt to get things working. Something which needed doing for a while anyway.
From memory my research last night ( Can’t create/write to file ‘#sql_eac_0.MYD’ (Errcode: 17) ) pointed to my database tmp file needing to be flushed, but now it will forever be a mystery.
I have added a little extra functionality to the old Paper Trail script to allow for a pages parents child pages to be shown if required as in earlier versions. This is very useful if you have a collection of articles under a single banner such as the TBG tutorials here at this site. The code is as follows:
<?php if (function_exists(‘pollChildren’)) {
if ( get_post_meta($post->ID, “poll-dad”, true) == “TRUE” ) {
$post = $posts[0];
$dad = $post->post_parent;
$name = str_replace(“/”.$post->post_name,”",$_SERVER['REQUEST_URI']);
$nDad = $wpdb->get_results(“SELECT ID, post_title, post_name FROM wp_posts WHERE ID=”.$dad);
echo “<div class=’post-head’>”.$nDad[0]->post_title.” chapters</div>”;
echo “<ul class=’paper-trail-child’>”;
pollChildren($dad, $wpdb, $name );
echo “</ul>”;
}
} ?>
As you can see I am utilizing the get_post_meta() command to trigger the code. This means that I can call the function as and when required on any page that I assign the key “poll-dad” simple eh. For more information and additional usages for get_post_meta() command have a look at the adding an intro to wordpress pages post. Read..
Yup I have been modding wordpress again.
Here is a little snipit that some of you might find useful. You can use the get_post_meta() call to add additional fields to your wordpress posts.
Whist developing the latest theme I decided that I needed an equivalent to the_excerpt() for pages, or an into as so to speak.
All you need to do is add the following or an equivalent to your page loop, the div class and style are bespoke:
<?php
$key=”post-intro”;
$intro = get_post_meta($post->ID, $key, true);
if ($intro){
echo “<div class=’post-body’ style=’clear:both;’>”;
echo $intro;
echo “</div>”;
}
?>
Then if your page has a custom field of “post-intro” the value will be outputted.
Read..
With the advent of wordpress 2.1 the get_links() and associated tags have been depreciated and replaced with the new wp_list_bookmarks() call.
However for dyadica.net I needed to be able to manipulate the returned link data a little more deeply than wp_list_bookmarks() allows e.g. the ability to be able to exclude by category.
Take a look at the following:
<?phpglobal $wpdb;
$terms = $wpdb->get_results(“SELECT term_taxonomy_id, taxonomy, term_id, count FROM $wpdb->term_taxonomy WHERE ‘link_category’ = taxonomy”);
foreach ( (array) $terms as $term ) {
$items = $wpdb->get_results(“SELECT name, term_id FROM $wpdb->terms WHERE term_id = $term->term_id”);
foreach ( (array) $items as $item ) {
$links = wp_list_bookmarks(“echo=0&title_li=0&show_images=0&categorize=0&category=”.$item->term_id);
if ($links) {
echo “<h3 class=’post-title’>”.$item->name.”</h3>”.”<br />”;
echo “<ul class=’ilist’>”;
echo $links;
echo “</ul>”;
}
}
}
?>
Above is a custom call to the wordpress database that acts as a wrapper for the wp_list_bookmarks() providing facility for additional filtering / functionality as required.
Read..
Last time we left off with the original script being separated into functions resulting in a new script with similar functionality. Today we are going to focus on a little more cleaning and the addition of a new if statement and change to the SQL statement, to handle attachment posts (uploads eg images etc).
$kids = $data->get_results(“SELECT * FROM wp_posts WHERE post_parent=”.$pID);
The current SQL call above, caters for all (*) information within the respective tables to be gathered. Whilst this can be useful it really is a bit overkill and not very efficient. As all we have really needed up to this stage is the post_title and ID data this can be rationalized as follows.
$kids = $data->get_results(“SELECT ID, post_title FROM wp_posts WHERE post_parent=”.$pID);
However due to the archiving structure implemented within wordpress attachments are also outputted by the current version of Paper Trail, as they are also stored via the post table. To deal with this we need an additional chunck of information, the post_type. With this added the call now looks as follows:
$kids = $data->get_results(“SELECT ID, post_title, post_type FROM wp_posts WHERE post_parent=”.$pID);
With this now sorted an additional if statement can be added to the code to separate this “unwanted” data eg:
if ( $pType == “page” || $pType == “post” ) {
echo “type: “.$pType.”<br />”;
} else {
echo “dont show me”;
} // [$pType check, if]
Ok, simple enough however what this also does is provide another use for the Paper Trail script. Now we have the ability to separate and output attachment data if required. Cool! (I smell another script function, lol)
Read..