Singpolyma

Going Down

Posted on

Often on weekends a thought pops into my head — ‘I should do a personal post on all that’s happening!’. I begin to mentally catalogue what the post will contain so I’m ready. By the time Monday comes and I sit to write… nothing comes. Aint that the way of it? I guess a breif update on the state of affairs in Chad is in order. Elections went well and rebel activity seems to be back to normal. Of course that’s all unpredictable, but everything’s looking fine as of now. I burned a backup of all our data onto DVD the other day, which took forever, but is well worth it to have all our data on a nice small disk ๐Ÿ™‚ I’ve done almost no school today. All I have left is my English final and Math stuff. Yup, kinda cool.

We watched The Sound of Music on Saturday — really funny! J’adore ces anciens films! ๐Ÿ˜‰ We also got this new season pack from Uncle Larry… 24. It’s 24 1-hour episodes that each cover 1 hour of time over a whole day. Really well done, and really addicting. They always leave you hanging!

Man it’s hot here! Blah! The time to Chels’ return is approaching, but it still a fair ways off. Of course we’ll get but a breif time to talk and then both will be off to Canada and readjustment scedules. Deputation for her (bleagh!) and random whoknowswhat for me. mmm. *thinks* I should say something else, but my mind has gone blank… maybe I’ll go write a chapter in my book, hehe, I got some inpiration the other day so it should be easier ๐Ÿ˜‰

’til I next do post or chat or whatever avec thou

Comment Photos and Highlighting

Posted on

PurpleMoggy has created a set of instructions for using this on Blogger BETA. I have updated my hack to support his new features and fix the bugs he found. There is also now a new ‘no image’ image.

Awhile back I wrote a post detailing my hack for adding profile photos to comments. Unfortunately that post was rather technical in its explanation. This post attempts to deal with adding the hack to your blog in a more user-friendly fashion and also with using the hack to highlight blog-contributor comments.

Step 1 – The first thing you need to do is find the comment section in your blog template. Edit your template and scroll down until you find the <BlogItemComments> tag. The code inside should look something like this:

<div class=”comment-poster” id=”c<$BlogCommentNumber$>”>
<a name=”c<$BlogCommentNumber$>”></a>
<$BlogCommentAuthor$> said…
</div>

<div class=”comment-body”>
<div class=”innerCmntBody”><$BlogCommentBody$></div>
</div>

<div class=”comment-timestamp”>
<a href=”#c<$BlogCommentNumber$>” title=”comment permalink”>4/26/2006 07:49:51 PM</a>
</div>

Step 2 – If you plan to use comment highlighting (so that the comments made by blog authors look different from those of users) this must be wrapped in another tag so that all of the code for each comment is in one tag. Like so:

<div class=”commentelem”>

<div class=”comment-poster” id=”c<$BlogCommentNumber$>”>
<a name=”c<$BlogCommentNumber$>”></a>
<$BlogCommentAuthor$> said…
</div>

<div class=”comment-body”>
<div class=”innerCmntBody”><$BlogCommentBody$></div>
</div>

<div class=”comment-timestamp”>
<a href=”#c<$BlogCommentNumber$>” title=”comment permalink”>4/26/2006 07:49:51 PM</a>
</div>

</div>

Some blog templates will already have a tag around their comments, as will those using the ‘standard’ comment markup. If you have one of those templates just write down the class of the wrapping tag or add one (the underlined section above).

Step 3 – Next we need the class of the element where we can look for the link to the author. In the example code above this would be comment-poster. When in doubt use the class of the overall wrapping tag. Once you have it, write it down. Count the number of <a> tags there are before the <$BlogCommentAuthor$> tag and write this number down (in the above example it is 1).

Step 4 – The only thing left to do in this part of the code is to insert the element where the profile photo will go. Add this code right before the <$BlogCommentBody$> tag: <div class=”commentphoto”></div>

Step 5 – Now go to the <head> section of your blog and add the following code:

<script type=”text/javascript” src=”http://jscripts.ning.com/get.php?xn_auth=no&amp;id=830605;
<script type=”text/javascript”>
//<![CDATA[
function thisblog_showCommentPhotos() {showCommentPhotos(‘commentphoto’,’class of author wrapper‘,# of a tags,’main wrapper class‘,'<$BlogURL$>’,’highlighted text colour‘,’highlighted text background‘;}
addLoadEvent(thisblog_showCommentPhotos);});
//]]>
</script>

Where class of author wrapper is the class you wrote down in step 3, the # of a tags is the number you wrote down in step 3, and the main wrapper class is the class you wrote down in step 2. If you are not going to use comment highlighting the last for parameters can be left off (from main wrapper class to highlighted tex background) otherwise you have to fill in the color you with the text and background of highlighted comments to be in their appropriate spots above.

Step 6 – Save and Republish!

Windows XP Recovery Console

Posted on

Well this is a bit of a different-style post for me, but this discovery struck me as extremely useful and so I thought I’d share it with any of my readers who may not have seen it yet.

On the transition to Windows XP I was horrified to discover that the ’emergency boot disk’ that XP creates cannot read NTFS partitions. It boots to MSDOS7.0 and then if your computer is NTFS you can do nothing. This essentially destroyed any chance of accessing your data if you could not boot to Windows. Many times during computer repair this was a hindrance and either elaborate workarounds had to be devised, or I fell back to the cure-all ‘reformat and reinstall’.

Yesterday I tried to get cheap Excel, but discovered an incredibly useful tool from Microsoft in an incredibly obvious place: the Windows XP install CD. If you boot from the CD and press ‘R’ at the ‘Welcome to Setup’ screen you are taken to the Windows XP Recovery Console. This is exactly what I had been looking for for so long: a reformulation of MSDOS that can access NTFS partitions! I was able to use it to run CHKDSK (scandisk seems to be out) and fix the minor problem the drive had — saving potentially hours of work to fix the problem any other way. There are even some XP-centric commands for dealing with user accounts etc.

What this does not help is users of many preinstalled systems, especially laptops. Most (if not all) of the ‘restore disks’ sent with such systems do not have the Recovery Console. However, techies who have a copy of the install disks can use their copy to run the Recovery Console on another person’s system. No activation procedure ๐Ÿ˜‰ Even XP Professional install disks’ Console will work just fine with XP Home systems ๐Ÿ™‚

Google AJAX

Posted on

Google AJAX is an interface for Google search that allows you to get the search results AJAX-style. This can be really handy when doing a series of quick searches. Better yet, however, is the widget that comes with it. Simply cut-and-paste the given code into your blog sidebar and you have inline Google search power — the results are displayed right in your sidebar! You can also (optionally) specify a URL to restrict the search to, thus creating a widget to do an AJAX-style search on your own site using the power of Google right from your sidebar! You can see an example of this in my own sidebar. The script is built using the power of YubNub.

Posting

Posted on

So I’m almost done school YAY! didn’t do too well on my final chem exam… hope I pass :S *sigh* but hey, let’s not let that get me down! ๐Ÿ˜‰ nothing I can do about it anyway. In a few short weeks I should be done all my schoolwork… if I don’t procrastinate through it all ;P Been doing a lot of code lately to keep myself busy. Chels has like two months left of grounding (don’t remind me!) but I’m making it ok — one day at a time ๐Ÿ˜‰ uhh *thinks* the pool is open again! ๐Ÿ˜€ they had closed it to drain+clean+repaint it, but they’re done so we can go again, so that’s cool. Ah, right, the ‘situation’ here, I should mention that. As of right now the official word is that the rebels are licking their wounds in Soudan and the election is tomorrow. Word on the street is that they’ve regrouped and are ‘moving south’ — which means to Sahr and then here. The military in town are prepping just in case. Should be interesting, hehe. Aaaand, nothing much else happening so I’ll end this post for now ๐Ÿ˜‰