Archive for the “How-to” Category

Gift box mini drawer

Louis Vuitton Gift Box Mini DrawerI had a bunch of Louis Vuitton gift boxes lying around the house from last Christmas that I decided to recycle them into something a little more useful.  These gift boxes are pretty nice so it seemed like a waste to just throw them out.  Stacking them on their sides and suddenly — instant stylish mini-drawer for your desk.

I didn’t want to glue them together so I just tied them together with the original ribbon they came with.

This works with other gift boxes too of course, assuming they’re appropriate dimensions.

Popularity: 2% [?]

Comments 9 Comments »

Undermount Cabinet Laptop Swivels

I had a Lenovo Thinkpad X41 Tablet that I purchased a few years ago with high hopes of using it in the classroom. The idea sounded a lot better on paper and the tablet ended up not getting much use. Instead of selling it (goes for a couple hundred dollars these days), I decided to put it to better use by mounting it under a kitchen cabinet.

This way I can use it to listen to music, watch movies, or to look up recipes while I cook!

The process of mounting it was rather simple. You’ll only need the following:

  • Industrial strength adhesive velcro
  • Old laptop (preferably a touchscreen tablet)

Undermount Velcro on Cabinet

Velcro on Underside of Laptop

I bought 4 feet of industrial strength velcro from Office Depot/Staples for about $10.  You won’t need 4 feet but it was the smallest amount it came in.  Unfortunately, the X41 is not a touchscreen tablet which means I need to have use digitizer pen instead of poking with my fingers.  Theoretically, any laptop could be mounted but tablets are best because of the swivel-able screen and light weight.

And of course, if you’re not looking to make the laptop removable/swappable, one could always use something more secure than velcro.

Note: Sorry for the poor iPhone 2G picture quality.

Step 1 – Put velcro under the cabinet
I would use the “hook” part of the velcro for this.  You’ll want to save the soft side for the underside of your laptop for comfort.  I also put an extra piece on the side for the power adapter. Make sure you leave room on either side in case you need to plug in USB devices later.

Step 2 – Put velcro onto the underside of your laptop
Underview of Undermount Cabinet LaptopSideview of Undermount Cabinet LaptopThe basic idea is to put as much velcro on the underside as possible (making sure the velcro is higher than the laptop feet).  You’ll want to leave any vents uncovered and ideally avoid areas of high heat output.  I also removed the battery to decrease the weight.

Step 3 – Mount it up.
Make sure you let the adhesive set first before mounting.  I put a beach towel under the laptop for the first few days just in case it fell but it seems to be very secure.  I would worry about leaving the laptop running 24/7 in case the heat generated wears out the adhesive.  I keep my laptop on stand-by most of the time.

Step 4 – Set up the Software
Make sure you’re using a tablet-supported operating system (e.g. Windows 7/Vista/XP Tablet edition) and using either the video driver or some other software, flip the displayed image so that it appears right side up when in use.

That’s it, enjoy!  If you like this simple DIY project, check out my ethernet cable mod and IBM Model M Keyboard mod.

Popularity: 3% [?]

Comments 21 Comments »

National Do Not Call ListThe Canadian government has just opened registration today on the National Do Not Call List.  Basically, by putting your name on this list, you will significantly reduce the number of telemarketing calls to you.  Registration is completely free and will take effect within 31 days.

It won’t completely eliminate all unsolicited calls however.  The following organizations will still be able to call you:

  • Registered charities asking for donations
  • Newspapers selling subscriptions
  • Political parties and their candidates
  • Companies that you have dealt with in the previous 18 months (i.e. to follow up on an order)

Aside from those exceptions, you can expect all other telemarketing calls to stop.  If you don’t want the above calls either, you can ask them to put you on their own do not call list whenever they first call.

I was a little weary about this at first but having gone to the site, it is a legitimate site owned by the Government of Canada so I do think it will work and will be enforced.

United States
If you’re from the US, you guys are a little bit ahead.  You’ve had the Do Not Call Registry since February 2008 which works in much the same way.

Popularity: 39% [?]

Comments 75 Comments »

So you’ve managed to watch movies and videos on your windows mobile device and you’ve managed to check your e-mail without a data plan.  But you can’t seem to manage to connect to those pesky WPA-PSK and WPA-PSK2 networks, is that right? Well probably not, but that’s exactly what happened to me so hopefully this post will help someone.

My home wireless network is set to use WPA-PSK2 security which is currently the strongest security that is publicly available and supported.  Unfortunately, it’s not supported by all devices such as my i-mate SP5.  So the first thing I had to do was to set my network to WPA-PSK & WPA-PSK2 dual compatibility mode.  You could also opt for just WPA-PSK but I would highly recommend against choosing WEP as a solution since it can be easily cracked within minutes using easily obtainable tools.

Now Windows Mobile 6 appears to have issues connecting to WPA-PSK networks but there’s a little trick I found on the PPCGeeks forum to get it to work.  Just follow these steps:

  1. Restart your device (optional but recommended)
  2. Connect to your desired network and input the proper settings. Here are mine:
    • Authentication: WPA-PSK
    • Encryption: TKIP
    • The key is automatically provided: no
    • Network key: <your network key>
  3. When it attempts to connect, go back to the Connection Manager and turn OFF Wifi.
  4. Wait about 1-2 seconds and then turn Wifi back on.
  5. WM6 should now be able to connect to your WPA-PSK network.

It really shouldn’t be this complicated but until Microsoft fixes these issues with Windows Mobile 6, this is a nifty little workaround.

Popularity: 38% [?]

Comments 14 Comments »

With the advent of AJAX, JavaScript heavy scripts and applications are becoming more and more popular on the web.  As is the nature of AJAX applications, many of these will pull/generate data dynamically.  With images this can cause minor performance lag if an image needs to be loaded.  Another situation where image lag can be a hinderance is a simple onmouseover image changes common on menus and navigation bars.

Since the early days of the Internet, there have been many ways of preloading images to prevent this lag.  By loading the image into the browser’s cache, there is no need to refetch an image over the Internet.  Throughout the years, each new method poses more advantageous and simpler than previous methods.  I’ll discuss three ways of preloading images, starting from the earliest and most cumbersome to the most recent and efficient.

The Pixel Image
Perhaps the earliest form of preloading images is the pixel image.  By embedding many images on a page (usually at the end of the page) and then forcing the size to be 1 by 1 pixel, you essentially still load the image without displaying much.  Setting a border doesn’t matter too much but doesn’t hurt.

<img src=”img/mypic.jpg” width=”1″ height=”1″ border=”0″ />
<img src=”img/mypic2.jpg” width=”1″ height=”1″ border=”0″ />
<img src=”img/aREALLYbigpic.jpg” width=”1″ height=”1″ border=”0″ />

Setting the size to 0 by 0 pixels works in some browsers as well and is a better solution.

Create an Image in JavaScript
With two simple lines of JavaScript, you can create an image and load it up without having it actually display on a page.

mypic = new Image();
mypic.src = “img/mypic.jpg”;
mypic2 = new Image();
mypic2.src = “img/mypic2.jpg”;
mypic3 = new Image();
mypic3.src = “img/aREALLYbigpic.jpg”;

Hide Images with CSS
Using CSS, you can choose to not display certain elements with the display property.  You can either make each individual image you wish to preload not display or you may make an entire section of images not display.

In your CSS file,

#preloadarea { display:none; }

In your HTML,

<div id=”preloadarea”>
<img src=”img/mypic.jpg” />
<img src=”img/mysecondpic.jpg” />
<img src=”img/aREALLYbigpic.jpg” />
</div>

Or you can set each image to not display individually by creating a CSS class,

.preloadimage { display:none; }

and then assigning that class to each image you wish to preload,

<img src=”img/mypic.jpg” class=”preloadimage” />
<img src=”img/mypic2.jpg” class=”preloadimage” />
<img src=”img/aREALLYbigpic.jpg” class=”preloadimage” />

Which way is best?
Of the ways above, the second and third are much more elegant than the first.  Also, keeping in mind that there is a small minority with JavaScript disabled, the third way is perhaps the most versatile.

You may ask yourself, why would I care about preloading images to user without JavaScript enabled?  Well, preloading images also help if you know what page the user will load next.  It’ll make their web experience more seamless and more enjoyable!

Too Many Images to Preload?
If you have too many images to preload (especially many small images), consider loading a single large image containing all the smaller images stiched together and then use CSS to position the single large image with the appropriate offset to display only the portion of the image you want.

Known commonly as CSS Sprites, it’ll make a good topic for the next How-to :)

Popularity: 15% [?]

Comments 15 Comments »