Posts tagged: Computers

World of Warcraft Macros – Fishing

By Brian, September 27, 2009 1:25 pm

One of the nice features of World of Warcraft is the ability to create custom macros to simplify common tasks in the game. I have a nice little on that you can place on a button for fishing.

What it does: If you do not have a fishing rod equipped, clicking the button will equip one. If a fishing rod is equipped, it will cast. If you hold down any modifier key it will re-equip your weapons.

Code (insert your object names where indicated in italics):

/equip [noequipped:Fishing Poles, nomodifier] fishing rod name;
/equip [modifier] main weapon name;
/cast [equipped:Fishing Poles, nomodifier] Fishing;

For example:

/equip [noequipped:Fishing Poles, nomodifier] Nat Pagle's Extreme Angler FC-5000;
/equip [modifier] Staff of Dark Mending;
/cast [equipped:Fishing Poles, nomodifier] Fishing;

If you are not using two handed weapons, you will need to enter an equip command for your offhand weapon as well:


/equip [noequipped:Fishing Poles, nomodifier] fishing rod name;
/equip [modifier] main weapon name;
/equip [modifier] offhand weapon name;
/cast [equipped:Fishing Poles, nomodifier] Fishing;

Happy fishing!

Installing Windows 7

By Brian, August 14, 2009 7:07 pm

Microsoft has released Windows 7 RC 1 into the wild that is the Internet. Until August 20th of 2009 (basically this is the last week) you can sign up for a license key and a link to download the disk image in iso format.

This version will work until June 2010 at which point it will no longer boot, also it will have some other restrictions starting in March 2010. That still provides many months to try it out. I have done just that and would like to relate my experiences, and solutions for particular problems that have arisen.

For more details on the promotion, or to register for your own copy visit windows.microsoft.com.

Items of Note

  • I am NOT responsible if anything described here damages your PC or causes data loss. The software is ‘use at your own risk’ and so is this article.
  • Back up your data. Microsoft will remind you of this, and so do I. Not backing up data before an operating system install is asking for trouble.

My Setup

Here is my configuration:
Motherboard: nVidia GeForce based
CPU: Intel Pentium 2.8Ghz Dual Core (64bit)
RAM: 4GB
Storage: 2×1TB SATA II drives on a RAID 1 (mirror)
Optical Media: SATA DVD-RW
Current System: XP Home / Ubuntu

Where to Start

Firstly, I assume you have succesfully run the Windows 7 Advisor with no issues and have made a working copy of the Windows 7 install disk.

If you are running Windows XP you cannot do an upgrade. Period. Clean install is the only option. This means you either need to start without an OS, or have an empty NTFS formatted partition prior to attempting the install.
If you do not have a blank NTFS partition the installer will stall after the language setting screen.

Once this is ready, reboot your PC with the Windows 7 DVD in the drive – make sure your BIOS is set to boot from it.

If all goes well you should be now installing Windows 7. I wasn’t this lucky.

The Windows 7 Installer Stalls after Loading Windows…

If you get a pretty blue screen with some leaves and a mouse cursor but nothing else after several minutes you may have the problem I had.
There are several reports online of problems installing from a SATA DVD drive. I presume in my case it is because of the way nVidia handles the DVD in relation to the RAID but I’m not certain.

Solution: Create a USB flash drive version of the installer disk (you’ll need 4gb) and boot from that, or (what I did) install an IDE DVD drive temporarily while installing.

Safely Unloading Linux First

Perhaps this should be higher up, but if you have a dual-boot XP/Linux environment and intend on removing the Linux installation to try out Windows 7 be very careful when you delete the Linux partitions from within Windows. Keep in mind that the boot loader (likely GRUB) resides there as well. Deleting the Linux partition will cause your PC to not boot!
With this in mind, I first booted from the XP install disk (after installing a floppy drive for the nVidia RAID drivers) and from the recovery console I ran fixmbr and rebooted. This puts the boot loader back to the original Windows one allowing you to safely remove the Linux partition. (you did back everything up, right?)

Initial Impressions

Once resolving the SATA optical drive issues and creating the NTFS partition (Windows 7 RC 1 does not appear to have a formatting tool like the XP installer) things went smoothly. In fact, the first have of this article was typed up on another PC nearby while I watched the Windows setup run fully automated. The setup will reboot your computer several times during installation.

My computer scores an average 5.9 for the user experience rating, and things are working mostly as they should. My Belkin wireless adapter does not have working drivers (Belkin hasn’t made them for Vista yet either – no fault to Microsoft for this one). I was able to use another USB wireless adapter sucessfully.
My WinTV-GO (analog PCI tv tuner card) does not appear to have working drivers at the moment either, which is frustrating since I wanted to try the Windows Media Player tv functions and the Windows 7 Upgrade Advisor said they would be available via Windows Update.

Overall, it works fairly well. I found switching between World of Warcraft and the desktop to be agonizingly slower than the same task on XP. I am intending to do a reinstallation of the game (rather than a program folder copy) on Windows 7 to see if it perhaps will install a more compatible version of the programs and perform better.
Actual game play has no noticeable differences.

I’ll try to keep an updated set of entries here over the next few months detailing more tests of this new system. Overall, I would say that I’m not about to run out and buy it yet, but it’s more promising than Vista.

Painless Web 2.0 with jQuery

By Brian, November 28, 2008 1:04 pm

Allow me introduce you to my new favorite web tool: jQuery. jQuery is a handy java script that allows you to add AJAX functionality to your website without too much fuss at all.

After placing the jquery.js (obtained from jQuery.com) file in your website’s path (ex. yoursite.com/include/) you simply need to add two javascript references in your page header:

<script src='include/jquery.js'></script>
<script src='include/scripts.js'></script>

The scripts.js file is where all the custom functionality code goes. Here’s an example, where links clicked in a div named #nav will load the new content into the #content div without refreshing the whole page:

$(document).ready(function() {           // after page is loaded, this is called automagically $('#nav li a').click(function() {     var query = $(this).attr('href');                  // this is what appears in the href tag     $('#content').hide('slow',loadContent);            // hides the div, calls loadContent()

     function loadContent() {         $('#content').load(query,'',showNewContent()); // pull the request into the div     }                                                  // calls showNewContent()

     function showNewContent() {         $('#content').show('fast');                    // show the new page content     }     return false; // returning false indicates the event was processed });});

No change to the actual page markup was required to make this happen at all. A small hurdle I encountered working with jQuery was that having an event bound to content inside the div #content would cease to function once new content was brought in. The reason for this is that jQuery loads the event binding based on what is on the page at first load. The easy way to solve this is to add the Live Query plugin for jQuery. Put it in your include directory with the other two scripts, and reference the script after jQuery but before your site’s script:

<script src='include/jquery.js'></script>
<script src='include/jquery.livequery.js'></script>
<script src='include/scripts.js'></script>

You will need to perform the related event binding to use Live Query slightly different from a normal jQuery binding:

$(document).ready(function() {    // after page is loaded, this is called automagically $('#content a').livequery('click', function() {        // livequery auto-binds when tags change     var query = $(this).attr('href');                  // this is what appears in the href tag     alert('You clicked this link: ' + query);     return false; // returning false indicates the event was processed });});

Yup, it’s just that easy – and once again, no change was made to the page markup. There is no end to the applications of jQuery and it’s related plugins. Happy coding, and welcome to Web 2.0!

Panorama Theme by Themocracy