Hide friends’ status in GMail chat

Posted by tHeSiD on February 25th, 2010

If you are wondering why your friends list in GMail chat is suddenly showing friends’ status messages, wonder no longer! You are not alone. With Google concentrating on useless new stuff like buzz, wave etc, they seem to have forgotten what the users really want.

As I value screen space more than gold, I hate it when status messages show up and bloat my list size to twice its original size. Most people think that this is the aftermath of Google’s new Buzz. Well, no actually, this happens because the setting to hide the statuses isn’t an inbuilt feature in Google Chat, but is a Google Labs feature. Its called Muzzle and Google have silently removed it from the Labs database, along with it some other features listed here [Gmail Labs graduation and retirement]. I can understand when they say they want to clean up, but keeping the Back to Beta feature which just adds a beta label to GMail and eliminating Muzzle seems utterly stupid.

The only solution that I have found so far is to use a greasemonkey script which will hide the statuses and make it behave normally. You can find it here [GMail Muzzle Lab Reviving]. If you are not familiar with scripts read this [Installing Scripts]. I will update this post when there is a better alternative to this.

Upgrade WordPress 2.6.* to 2.7

Posted by tHeSiD on December 11th, 2008

WordPress 2.7 is out! Here is the way to upgrade from any of the previous versions of wordpress ( 2.6.*  /  2.6.5) to the latest version i.e. 2.7. The process is very simple, involves only a few steps and I assure you the upgrade is worth the effort. WordPress 2.7 was released to wordpress.com users earlier but for individual sites it is out now! Lets get started.
Read the rest of this entry »

Call of Duty – World at War, Solo start error (fixed)

Posted by tHeSiD on November 18th, 2008

When you start a new solo game in COD-World at War, it refuses to start, especially with the RELOADED version. It doesn’t start even if you go via the missions menu, it just stays idle. If you are facing this issue, there is a simple fix thankfully. Follow these simple steps.
EDIT : FIXED VISTA PATH

  1. Navigate to the folder :
    • XP users :C:Documents and Settings\USER_NAME\Local Settings\Application Data\Activision\CoDWaW\players\profiles\
    • Vista users : C:Users\USER_NAME\AppData\Local\Activision\CoDWaW\players\profiles\
  2. Delete all the folders in there.
  3. Create a new folder with the name of the Profile ex: tHeSiD (folder remains empty)
  4. Create text file: active.txt (must NOT be readonly)
  5. Open active.txt and type in your profile folder name (tHeSiD)

Thanks to ju7er117 at mininova for this fix :)

WordPress post title rearrangement

Posted by tHeSiD on November 3rd, 2008

I had the All-in-one SEO package installed and I thought it took care of the titles but it didn’t. The only thing in the title tag was the blogs name/title. Even though the settings in the SEO plugin were set properly, it just refused to show the post title in the main title. I even tried setting the custom title for a post individually and that didnt work either. Sucks really coz all the pages in google had only one title, the title of the blog.

I eventually disabled the plugin and the titles were reverted back to WordPress default. Blog name – Post title. I didnt want that either. I want Post title | Blog name. I checked the template header file and rearranged the wp_title() function and the bloginfo(‘name’) variable. There was still a problem with that, the separator was still on the left side. The title looked like this ” » Post title | Blog name “.

I went on to codex and researched a bit, unlike the older versions wp_title() does take parameters. Setting the right parameters can help customize the way the title of the post is displayed. Here is an example, one I used for this blog.

Originally

1
<?php bloginfo('name'); ?><?php wp_title(); ?>

This resulted in a Title of this format. “Blogname » Post title”

You can change that to this

1
<?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?>

This results in a title of this format “Post title | Blogname”

A small tweak but really helpful when you want your search listings proper.

For more information and customizations of your own read the wp_title() documentation here. Template Tags/wp title

Fedora 9 on VMware, mouse tracking issue

Posted by tHeSiD on October 12th, 2008

I recently upgraded from VMware 6.0.3 to VMware 6.5, after installing the latest VMwareTools, the mouse went haywire. I click at one place and X thinks its somewhere else. Basically the co-ordinate system seems messed up. There are two ways to fix this.

1. Replace vmmouse driver with mouse driver in xorg.conf
Open the xorg.conf file

1
sudo gedit /etc/X11/xorg.conf
1
2
3
Section "InputDevice"
Identifier  "VMware Mouse"
Driver      "vmmouse"

Scroll down to the Driver entry in that section and change vmmouse to mouse
Save and reboot.
This is just a minor fix, in some cases there might still be problems in full screen mode and you cant shift from the virtual machine to the host easily.

2. To fix all the above issues and enable proper vmmouse implementation in the guest,
Open the xorg.conf file

1
sudo gedit /etc/X11/xorg.conf

and add this to the xorg.conf file

1
2
3
Section "ServerFlags"
        Option      "AutoAddDevices" "false"
EndSection

Save the file and reboot.
This will enable true vmmouse and the mouse will track perfectly.

PS: I used sudo here, if you haven’t configured sudo on your system, enable it or just use the root shell.

Paste with middle click in Firefox

Posted by tHeSiD on September 11th, 2008

I was just exploring the about:config page in Firefox and I managed to stumble upon a nice little tweak. In firefox you can paste text from the clipboard into any text field or the address bar with a middle click, just like in Linux. If you are used to middle click paste in Linux, this will save you a lot of time, even otherwise, a simple middle click is better than Ctrl+V.

Tested on (FF3.0 Vista/XP)

To get it to work,

  1. Enter about:config in the address bar and hit enter
  2. Look for a value named middlemouse.paste, you can use the filter for searching it.
  3. Double click on the value to change it to true.
  4. Thats it, you can now paste with the Middle Click!
about:config showing the default setting for the option

about:config showing the default setting for the option

about:config page showing the option

about:config page showing the option changed to true

IGZones WordPress Widget

Posted by tHeSiD on August 28th, 2008

IGZones provides a unique service where in you can get the live game ratings. They can be either your ratings or your clan’s. I wanted to display my n00b rating here on this site in the sidebar. Its very easy you just have to write a small piece of code and you are off.

First of all, go here » Rating Services and familiarise yourself with the type of requests and the variables.

Now, to add the ratings to the sidebar, there are two ways. One, You can directly edit the template and add the code in the sidebar.php. This is the simplest way. There is a problem with this though, you cannot place the widget at any place you like, you can only add it either at the top or the bottom of the dynamic sidebar which is controlled by wordpress.

The other and a better way is to add the a widget with your code via wordpress so that you have full control over its position. WordPress has a Text/Html widget but it doens’t parse PHP on the fly, so download and install this plugin » PHP Code Widget. This plugin allows us to insert and execute php code in a widget. After installing the plugin, in the widgets page, a “PHP Code” widget will appear, add it to your sidebar, click on edit and enter the php code. Save and refresh. The code will now be executed.

Coming to the code to display the ratings, its similar to the example on the Rating Services page. Its simpler if you are displaying the ratings of just one user. First, we have to prepare the request URL. If your user name is tHeSiD and you want the ratings from the AoC Random Map ladder, the URL will be

http://www.igzones.com/ratingservices?ladder=AoCRM&player=tHeSiD

The format would be

http://www.igzones.com/ratingservices?ladder=<ladder>&player=<username without clan tag>

The response to this will be a Comma Separated Values string

example : 114752,tHeSiD,1622,56,53,0,1,AoCRM,1233541,2008-08-27 19:14:43

The values are in the following order

User ID, User name, Rating, Wins, Losses, Incomplete, Streak, Ladder, Last Match, Last Match Date & Time

Rest is just to explode this string into an array and get the values from it. The code will explain this better.

This code is for single user only. Prepare your Request URL and replace the URL in the code with yours.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
	$igz_site = fopen("http://www.igzones.com/ratingservices?ladder=AoCRM&player=tHeSiD", "r");
	$ratingservices_page = fread($igz_site, filesize($igz_site));
	fclose($igz_site);
	$igz = explode(",", $ratingservices_page);
		$userid = $igz[0];
		$name = $igz[1];
		$rating = $igz[2];
		$wins = $igz[3];
		$losses = $igz[4];
		$inc = $igz[5];
		$streak = $igz[6];
		$ladder = $igz[7];
		$lastmatch = $igz[8];
		$date = $igz[9];
 
	$data = '<ul>
		<li>Tag : <a href="http://www.igzones.com/user/'.$userid.'">'.$name.'</a></li>
		<li>Ladder : '.$ladder.'</li>
		<li>Rating : '.$rating.'</li>
		<li>Wins : '.$wins.'</li>
		<li>Losses : '.$losses.'</li>
		<li>Streak : '.$streak.'</li>
		<li>Last match : <a href="http://www.igzones.com/matches/'.$lastmatch.'" target="_blank">'.$date.'</a></li></ul>';
	echo '<a align="center" href="http://www.igzones.com" target="_blank"><img class="igzimg" src="http://www.igzones.com/images/microbanner.png"  border="0" alt="Age of Empires IGZones"></a><br/>';
	echo $data;
?>

If in any case you have a problem with the filesize() function, just replace filesize($igz_site) with a numerical value. I recommend 75. so line 3 should be

1
$ratingservices_page = fread($igz_site,75);

Save the widget and refresh your site. Your ratings will now be visible in the sidebar.

Vista Explorer Tip

Posted by tHeSiD on August 28th, 2008

Here is a small tip for all you Vista users out there. The new explorer has a nifty feature of displaying favourites links along wih the folders explorer bar. In XP, we could either use the folders bar or the favorites bar at any given time. Also, the favorites bar would be the same as the Internet explorer favorites, which made it even more confusing and unusable. But this new feature in Vista is a real helper when it comes to using explorer efficiently.

In the explorer, above the folders bar, there is a Favorites link section which has links to <User Folder> My Docs etc. To that list you can add as many links as you want. All you have to do to add a link is drag the folder into that section and it automatically creates a link.

Add your most frequently visited folders in it. After adding the folder you can directly go to it with just a click! No more C:>Folder1>Folder2 navigation. However deep the folder maybe, you can go there in an instant. Its really helpful when you handle a lot of files with explorer. You can also switch between folders in an instant making copying and moving very very easy and less confusing.

After adding the link, if you are unable to see the link in the section, find the separator between the links and the folders bar sections and drag it till all your links are visible.

Here is a screenshot.

Favourite Links section in action

Favorite Links section in action

Dissecting a Laptop

Posted by tHeSiD on June 4th, 2006






Windows

Linux

Ofcourse all this was before the screen broke to bits and pieces. Why I am posting this now? Coz I thought of posting this long back and found it now when backing up stuff on monster. Why now? Coz Theres no fuking monster and I cant think of a way to spend time :D.


Theme : Webby Blue modified, Powered by Wordpress 2.7
Copyright © 2009 Siddharth Abbineni. All rights reserved.