Thursday, October 17, 2013

Cygwin commands execute really slow from commandline

Seems to be caused by evaluation of /cygdrive/. So, open network connections and disable the following:

Monday, September 30, 2013

Screenshots on Mac OSX

Best resource I found about capturing screenshots on Mac OSX

Thursday, March 14, 2013

Eclipse on Linux Missing Icons

Sorry! No time to create a proper post.

Here is the solution: 

gsettings set org.gnome.desktop.interface menus-have-icons true



Wednesday, May 5, 2010

How to change window border thickness in Ubuntu 10.04 (Gnome)

prompt%> sudo vi /usr/share/themes/Human/metacity-1/metacity-theme-1.xml

Change following values to 5 or higher:
<distance name="left_width" value="3"/>
<distance name="right_width" value="3"/>
<distance name="bottom_height" value="3"/>


Sunday, December 6, 2009

Show Desktop Quick Launch in Windows 7

Old habits die hard. I understand. So, for those who have gotten used to going to the bottom-left cornet of your desktop and clicking the "Show Desktop" quick launch icon for years, here is some help in your transition to Windows 7.

First of all, the new show desktop is now on the bottom-right corner of the screen. See screen cap below. Of course, I know that won't satisfy you. =) So keep reading.

If you want to get the old fashioned "Show Desktop" icon on the bottom-left, here are the instructions:

Step 1:
Using notepad, create a file named "desktop.scf" with the contents below:


In the Save dialog, select "All Files (*.*)" as file type. Then, save it to: "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar".

Step 2:
Duplicate a shortcut on your desktop. Just do this using copy-paste. (I'm using Zoom Browser on my example. But you can use any other program.) Go to the shortcut properties and change the comment, name, and icon to your preferred icon. (You can use explorer.exe for the desktop icon.) Now, pin the shortcut you just created onto the taskbar.

Step 3:
Right-click on your new launcher, then right-click again onto the icon itself and bring up its properties. On the shortcut tab, change the Target to desktop.scf you created in Step 1. Click OK, and your done!

I hope this helps. Enjoy!


Monday, August 31, 2009

The best iPhone bike mount

I recently (re)started on a new hobby: road biking. And given that I never go anywhere without my iPhone, of course I had to find a way to make most use of it on my bike.

I've been trying for days to find a decent bike mount (on ebay) but couldn't find one. So, I decided to make my own.

1) Broken iPhone leather case - Broke the top frame while pulling it out of my pocket. Happy I decided to keep it for a while.
2) Zip ties
3) (Optional) 1 cm diameter tube. I got this from a broken RC heli tail boom.

1) Cutting knife
2) (Optional) Drill. I used a dremel rotary tool.

1) Cut two holes into leather case. The distance between the holes should be the same as the width of your bike stem (one that attaches your handle bar).
2) (Optional) Cut the tube to your preferred length. Drill two holes of the same distance as your holes on the iPhone case.
3) Put it all together with zip ties.

(Click on pictures to enlarge.)

Hehehe! All of this from junk parts. Not bad eh?

Was worried it would still pop out, so I wrapped 1 rubber band around it. But, it may have been fine without it. Got 50 km with it on road and rough without any problems.


Saturday, August 29, 2009

How to fix mouse not working after hibernate (USB device not recognized) on Windows 7

I've been having this problem since Vista. And, it's still happening on Windows 7. So, I decided to search around to find a solution. Here is the combined solution that worked for me:

1) Start Device Manager. This can be done (1) by right-clicking on My Computer and selecting Manage. Or (2) clicking the Start menu and typing device manager. Or (3) other ways.

2) Expand the Universal Serial Bus Controllers node.

3) For each instances of Generic USB Hub and USB Root Hub, right-click and go to Power Management tab.

4) Uncheck the option: Allow the computer to turn off this device to save power.

5) Repeat for ALL instances of Generic USB Hub and USB Root Hub.

6) Then, refresh everything by right-clicking and selecting Scan for Hardware Changes. Now, double-check all nodes you've changed and see if any has reverted back to the previous settings. On mine, one of the nodes kept resetting the power management. If this happens, just uncheck the box again and repeat the refresh until it sticks.

7) Retry sleeping or hibernating. It should now resume properly.

If that still doesn't work, you need to change some registry keys.

1) Open regedit. This can be done by clicking Start and typing regedit.

2) Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.

3) Add new key with name: USB

4) Add new DWORD Value. Name it: DisableSelectiveSuspend with value of 1.

5) Exit the registry editor.

6) Now try it again.

I hope this helps! Enjoy!