Why on earth doesn’t MS Word have zoom in or zoom out options?

Time for a rant.

I can’t be the only person on earth annoyed about how MS Word doesn’t have the options to (let alone have any keyboard shortcuts for) zooming in/out by a certain increment. If you use Adobe Reader/Photoshop you will know what I’m talking about. Open up a PDF -> “oh, looks kinda small”, you think -> “Ctrl+=” -> Done!

But on MS Word 2007, to do the same you have to move your mouse all the way to a tiny slider at the bottom right of the screen to zoom in/out, and there’s no keyboard shortcuts to do this! I tried customizing my keyboard shortcuts to do this, but, alas, there was no command to zoom in/out. There were only commands like “Zoom100″, “ViewZoomPageWidth”.

Granted, you probably won’t have to zoom in/out in MS Word as often as in Adobe Reader, but I’ve still found it annoying enough to write a blog post about it. What do you think?

EDIT: Found just what I needed: http://word.tips.net/Pages/T001734_Zooming_With_the_Keyboard.html. Still sad that there’s no default for this in Word though.

Leave a comment

How to Change the My Music folder on right hand side of Vista or XP start menu to any other folder

OK, I haven’t been posted in a LONG time, and I’m back to share something which I think more people should know about. I’ve been trying to customize my Vista installation to work for me whenever I have the time to do so ever since I decided to use it as my main OS. Truly, Windows would benefit from being more customizable, and one of the main things people want to change is the shortcuts on the right hand side of the start menu. While there’s no option within the OS to do this, it can be accomplished through modifying the registry.

Some very nice people at WinVistaClub have written a VBScript which modifies the “My Music” folder shortcut in the start menu to another folder of your choosing. It even updates the icon shown at the top of the start menu when you mouse over! Here’s the link and instructions. I’ve also attached that script here just in case that link goes down (That’s actually a .vbs file. WordPress won’t let me upload that filetype, so make you choose “save link as…” and change its extension to .vbs before executing it).

Hope this helps someone!

Leave a comment

Hide Root Node of XML Bound TreeView (ASP.NET)

You have a treeview with an XML file as a data source, but XML files by default must have a single root element, which shows up on your treeview. A lot of us don’t want it to show up, and there’s no obvious way to hide it. After an hour or so of searching for a solution, I found it here. This solution really needs to be more visible on the web!

Basically you just need to set the XMLDataSource XPath property as XPath = “/*/*”. I’m not entirely sure what this means, but you can read up more about it here.

13 Comments

Your Domain Name in XAMPP

This probably applies to many other things while working with XAMPP or any webserver on your machine, but I specifically used it when using AJAX. Just determine your LAN/local/internal ip address and use that ip address as your domain name. For example, if this is what you had on another webserver,

var myDomain = "www.domainName.com/location/"; //where your proxy file is placed
var proxy_name = "phpProxy.php";  //proxy's filename
var actualReq = "http://search.yahoo.com/blablabla?=...." //actual request
var url = "http://"+myDomain+proxy_name+"/?"+actualReq;
httpRequest("GET",url,true,handleResponse);
...

and your local ip for example is 192.168.123.321, replace

www.domainName.com/

with

192.168.123.321/

Also, when you call the file from your browser, instead of using “http://localhost/….”, use “http://192.168.123.321/….” instead.

Happy XAMPPing!

1 Comment

PHP Proxy for Cross-Domain Requests That Works!

So I’ve been working on some AJAX stuff, dealing with Yahoo! Weather, specifically, and I realized I needed some way to make cross domain xmlhttprequests. Using a PHP Proxy seemed for me to be the easiest way to go, so I first tried what was suggested by Yahoo! I then tried some similar methods from others here and here, both to no avail. I then did some asking around on forums and made the necessary changes to make Yahoo’s example work. Just thought I’d share that with those of you who have similar troubles.

This is the PHP Proxy that I used. Note that:

  1. Your webserver’s PHP needs to support cURL
  2. This code doesn’t support POST requests, only GET.
<?php
// PHP Proxy example for Yahoo! Web services.
// Responds to both HTTP GET and POST requests
//
// Author: Jason Levitt
// December 7th, 2005
//(Modified by Suan-Aik Yeo)
$path = $_SERVER["QUERY_STRING"];
$url = $path;
// Open the Curl session
$session = curl_init($url);
// Don't return HTTP headers. Do return the contents of the call
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
// Make the call
$xml = curl_exec($session);
// The web service returns XML. Set the Content-Type appropriately
header("Content-Type: text/xml");
echo $xml;
curl_close($session);
?>

When you’re using javascript to actually make the request, do something like this:

var proxy_name = "phpProxy.php";  //proxy's filename
var actualReq = "http://search.yahoo.com/blablabla?=...."; //actual request
var myDomain = "www.domainName.com/location/"; //where your proxy file is placed
var url = "http://"+myDomain+proxy_name+"/?"+actualReq;

//go on to do the usual httprequest steps...
httpRequest("GET",url,true,handleResponse);
...
...

Hope this helps!

1 Comment

Penang Malaysian Restaurant, Chinatown Chicago

Yesterday a few of us went up to Chicago just for fun, and for Malaysians, no trip to Chicago is complete without dinner or lunch at the PENANG Malaysian restaurant at the entrance of Chinatown. We ordered Nyonya Tofu, Assam fish (which we didn’t know cost > $20), kangkung belacan, and beef rendang, along with chicken rice rice ;) Anyways, the food was pretty good, and I already kinda knew what to expect as it was probably my 3rd or 4th time there. Praveen, Winnie’s classmate who also drove us there, also ordered some stuff to go for his roommates.

When the bill came though, it was about $140 with about $20 gratuity on top of that. Why were we charged gratuity? There were only 4 of us! And we also shouldn’t be charged tips for to-go food…..So Praveen went up to the guy who handed us the bill, and eventually was sent to a lady manager. She then said to another waitress, “他们本来有六个人, 过后四个就走到后面的桌子去了。” (“they had 6 people at first, and later on 2 of them went to the table behind them”). Then, to her astonishment, Praveen replied in Chinese that that wasn’t the case (he’s singaporean, btw). They were pretty much forced to take away the gratuity at that point, and we ended up giving them barely more than 10% tips for our troubles.

Granted, there was a table of other people we knew sitting behind us, but only one of them came and sat with us (she didn’t order anything) and none of us went over to their table. And, the restaurant was pretty packed that night. Still, what annoyed me was how they came up with the “theory” that there were 6 of us and that 2 left….why not 5 to 2 instead? Makes me wonder if they always take advantage of such situations to charge gratuity. I also wonder if they try to charge gratuity for to-gos all the time. If anything, it DOES sound alot like a Malaysian “get what you can out of the customer” business attitude. They also could’ve been more apologetic.

Bottom line is, just remember to check through your receipt the next time you’re there.

1 Comment