Monday, November 24, 2008

Cutting and installing laminate countertop

I had a small base cabinet next to my washer that I needed to get a countertop for. Leaving 1/16" gap for the appliance and a 1" overhang on the end resulted in 24 5/8 width. I found a 5' countertop at Mr. Seconds that was reasonable for $44.

I was concerned about cutting the countertop but it turns out that a 36 tooth finishing blade on my circular saw did the job perfectly. I made a cleat as a saw guide to be sure I got a nice straight line.

I stood the countertop on the front edge to cut the backsplash as my first cut, then called over my neighbor for a spare set of hands and made the second cut for the remainder. I cut in a smooth motion to minimize chipping. No masking tape along cut on face of countertop required.

The next step was to put the edge laminate on the exposed edges. Anne did much better than I did at this. I suggest enlisting the wife, especially for the detail work of filing the extra laminate off. Hot iron set on Acrylic did the job for the adhesive.

Observations: when determining the width of the countertop, consider any extra molding on the outside edge of the base cabinet. I had a 1/4" strip near the front that I didn't consider, so my gap next to the washer ended up being more like 5/16".

Also, when putting in screws up into the countertop to affix it to the base cabinet, be sure the screws will not come anywhere near the surface. This seems like a no-brainer, but the cabinet's hardware for holding said screw was a flimsy piece of #2 plastic which flexed and allowed extra reach for the screw I used, which punctured the laminate. I used a clamp overnight and a dab of glue to fix the small puncture.

Saturday, September 6, 2008

Ubuntu: Synaptic not in menu and cannot start/run from command line

My otherwise blissful installation and use of Ubuntu on an aging 2.4ghz athlon was rudely interrupted today when I could not find Synaptic package manager in my menus, and when, when I tried to run it from the command line, I was informed that there was a su problem and I should contact my administrator. Oy. I am the administrator...

Turns out that the problem was that I somehow removed myself from the admin group, therefore, I lost privileges to do sudo type things (such as fixing the fact that I lost sudo priviliges).

To correct this, I had to reboot and go to the recovery console and choose the root shell option. From there, I used the following command to restore the admin group to my user account.

# usermod --group admin rcs

I then rebooted and everything was good again. So Ubuntu is back in my good graces.

Wednesday, September 3, 2008

Dual-head kubuntu alt-tab only shows windows on the active screen

I've been plagued by this problem since I installed and configured my Kubuntu 7.04 and I just happened upon the solution by entering the just-right search terms. When I alt-tab to find a window, the list of windows are only the windows on the active screen. Meaning that I get a different list when my mouse pointer is in the left screen and the right screen. I'm used to just seeing all the windows across screens regardless of which screen my mouse pointer is in.

Solution found on ubuntuforums.org (http://ubuntuforums.org/archive/index.php/t-284693.html)

Run: "kcmshell kwinfocus", in the resulting dialog, check "Separate Screen Focus". Save changes and press alt-tab. You should see all windows.

Thursday, August 28, 2008

Jump-starting a car using jumper cables

Yesterday, I absent-mindedly left my headlights on when I returned to work from lunch and when I went to leave for a doctor appointment at 4:15, the battery was completely dead. A friend and I tried to pop-start it, but had no luck. Then someone who works in the building came over to give a jump start.

After playing with the jumper cables for a little while, we got it started. Which led me to look into the correct way to connect the cables, which is:

Dead battery: jumper cable to positive terminal
Live battery: jumper cable to positive terminal
Live battery: jumper cable to neutral terminal
Dead battery: jumper cable to some ground on or near the engine (shiny metal)

They also recommended shutting off the engine of the car giving the jump-start to protect the alternator.

So there you go. And here you go: http://www.carbuyingtips.com/jumpstart.htm

Wednesday, July 30, 2008

Date tricks in Firebird

Stolen from: http://www.firebirdsql.org/rlsnotesh/rlsnotes210.html

Tricks for Firebird dates.


A Useful Trick with Date Literals
H. Borrie

In days gone by, before the advent of context variables like CURRENT_DATE, CURRENT_TIMESTAMP, et al., we had predefined date literals, such as 'NOW', 'TODAY', 'YESTERDAY' and so on. These predefined date literals survive in Firebird's SQL language set and are still useful.

In InterBase 5.x and lower, the following statement was “legal” and returned a DATE value ( remembering that the DATE type then was what is now TIMESTAMP):

select 'NOW' from rdb$database /* returns system date and time */


In a database of ODS 10 or higher, that statement returns the string 'NOW'. We have had to learn to cast the date literal to get the result we want:

select cast('NOW' as TIMESTAMP) from rdb$database


For a long time—probably since IB 6— there has been an undocumented “short expression syntax” for casting not just the predefined date/time literals but any date literals. Actually, it is defined in the standard. Most of us were just not aware that it was available. It takes the form . Taking the CAST example above, the short syntax would be as follows:

select TIMESTAMP 'NOW'


This short syntax can participate in other expressions. The following example illustrates a date/time arithmetic operation on a predefined literal:

update mytable
set OVERDUE = 'T'
where DATE 'YESTERDAY' - DATE_DUE > 10

Tuesday, July 15, 2008

Firefox 3 and Java 6 (Java 1.6) on Kubuntu 7.04

Was having trouble getting a certain applet to run in Firefox 3 so I started digging into the problem. Through a little Firefox configuration and installation/configuration of the latest Java from Sun, it's all working now. Here are the steps I used.

If all goes for you as it did for me, you can now go to this URL to verify that Java is working: http://www.cyberdyne-systems.co.uk/bz/bzsplash.html

Friday, July 11, 2008

More on remote desktop using x11vnc

On January 8, 2008, I posted about remote desktop. I've since found two nice features of x11vnc that I wanted to share.

The first is scaling. My work desktop is 1680x1024 and 1600x1280. My home desktop is 1280x1024 and 1280x1024 (both lcd native resolutions). I wanted my entire work desktop to fit on my home desktop. The solution was using scaling.

x11vnc -scale 5/8

This scales the desktop by the named fraction. The fraction can be less than one (reduction) or greater than one (zoom). It does seem to slow down the display.

Another nice feature is sharing a single window rather than the entire desktop. My naming a window id to share, x11vnc will only share that window, not the entire desktop. To get the window ID, connect to the remote Linux host and run

xwininfo -display [display] -name [name]

Where [display] is the display on which the window is being shown on. I use localhost:0 as my display, which maps to my left monitor at work.

And where [name] is a substring of the window title. I use 'Eclipse'. This will return a hex window id (and other information). Note this id.

Now, run x11vnc with the -id parameter:

x11vnc -id 0x12345678

Then on your local host, run your vnc viewer.