Creating Bookmarklets and Smart Bookmarks

Bookmarklets are small pieces of JavaScript code that can be bookmarked to perform the intended action later on any web page. The are a way of making your browsing and web searching much more productive.
With the advent of more applications being ‘cloud based’ the browser is becoming the ‘operating system or portal’ to most information and applications. Using bookmarklets to better perform repeated and common tasks makes lots of sense.
Bookmarklets and Smart bookmarks can be made and used in Firefox, IE and Chrome.
I primarily use Firefox so I will demonstrate how to create them there. The process is nearly identical in Chrome, and Internet Explorer.

Here is one way to create some custom ones.
Open up the Bookmarks Organizer by going to the Bookmarks Menu, and click the Organize Bookmarks option.
image
In the ‘Library’ windows that pops up select the ‘Bookmarks Menu’
image
Click the Organize Menu and choose the New Bookmark option:
image
Now you need to type in whatever name you would like for the Smart Bookmark. In the location field, however, is where you will insert the specialized “URL” which we’ll cover in the next section. This screenshot shows an example location that will return the top 10 bookmarks you visit the most:

The Smart Bookmark that you just created should now be visible in the Bookmark Organizer, and you can place it wherever you would like. The content will dynamically change based on the criteria that you specified in the previous step.

The beauty is that you can create all kinds of specialized queries and actions.

As an example someone asked me about searching for films that certain actors or actresses have been in. Since IMDB is pretty much the place to start looking why not do a Google search OF the IMDB.COM site?

So just follow the steps above and call your bookmark ‘IMDBfinder’ or something and copy in this java code into the ‘Location’:

javascript:var searchterms = escape(prompt(‘Actor or Actress’));var query = searchterms + ‘ site:imdb.com’;window.location=’http://www.google.com/search?q=’ + query;

to make a Google search of that site.
image
In action – when I click on that new bookmark I am prompted to enter a name
image
and the results are then presented. Google searches only that specific site and returns all results from it.
image
This can be really valuable for limiting searches to specific sites you may frequent.  I have some for Lifehacker, HowToGeek, Drudgereport, Mediafire and many others.

The really cool thing is that bookmarklets can run all kinds of code to do things like resize images, browser windows, do translations and much more! The limit is up to you and your creativity and willingness to learn.
Mozilla has some pretty good ones here:
http://mozillalinks.org/wp/resources/bookmarklets-collection/
Simply right-click and choose ‘Bookmark this site’ (in Firefox) or ‘Add to Favorites’ (in Internet Explorer).

How to fix the “Cannot attach the virtual hard disk …

Little backround.
I use Acronis to create images for true disaster recovery ability. With Acronis I can also mount back up images and retrieve any needed files in minutes! The newer versions of Acronis also allow you to convert your Acronis images (.tib) into Microsoft Virtual Hard Drives (VHDs).
[Acronis has solutions for home and enterprise users and is worth every penny! Personal edition is under $50.00 and for corporations it is well worth the price for true peace of mind.]
So back to my VHD issue.
Virtual hard drives can be used to create full blown Virtual Machines (VM)and are ready to use with MS Virtual PC or MS Virtual Server. I am a long time VMWare user too, but I am working on getting much more profecient with MS’s solutions since they are my primary support calls
Another cool tool is the Microsoft Sysinternals Disk2vhd tool. This can create VHDs from any MS Windows version from XP forward.
I’ve been able to mount the VHDs created with this tool and been able to retrieve files with ease.
So after creating a few VHDs with the Disk2vhd tool I decided I wanted to use one of those VHDs to create a full blown VM and run it with Virtual PC on my Windows 7 laptop.
With Windows 7 and 2008 Server you can very easily ‘mount’ VHDs right from the Disk Management console. They can also be very easily converted to other image formats that can also be ‘mounted’ so you can retrieve your files.

However after trying to create the VM and ‘attach existing VHD’ I keept running into a very frustrating problems.
I kept getting this message “Cannot attach the virtual hard disk …”
What does it mean? Not much info in the error, arrrg.

It means you have a Virtual Hard Disk file larger than 127.5GB. Which Virtual PC does not support.
After lot’s of searching I found this article:
How to fix the “Cannot attach the virtual hard disk …” wisefaq.com

This very well presented article is great. It helped me to solve the problem fairly easily!
But I have something to add to this fix that make it so much easier!
You can simply ‘attach’ the drive in Windows 7 (Windows 2008 Server too) Computer Management Console>Disk Management, then right click and ‘shrink it’. Once that is done ‘un mount’ and then use VHD Resizer!
That’s it. Skipping the use of DiskPart. Very easy and quick.
Just thought I’d pass that on for any of you other techies who have run into that or may in the future.

Windows 7 Demo and Trials

If you haven’t yet tried or missed the initial public beta of Windows 7 you can still try this fantastic new Operating System in two distinct ways. One is an ‘online demo’ the other is and actual installation of a time limited trial.

I you are still using XP I highly recommend getting familiar with Windows 7 – your next computer WILL have it [or maybe OS X ;)] installed. If you have been using XP for the nearly entire decade that it has been out there are some adjustments to make; though most things are still very easy to find. If you are already using Vista you will see a lot of similarities and a great deal of improvements.

The online demo route:
Microsoft has Virtual Labs that are great for tech students, or those of you who want to get a first-hand trial of the new features with out having to actually install the OS. Also, if you’re not sure on how to deploy something and want to practice in a virtual environment, these labs are quite valuable.While these labs are geared toward IT professionals, it’s a good way for anyone to try out Windows 7 features from the comfort of your current computer.
[Please note that the online version is not nearly as responsive as a full standard install of Windows 7. It also does not run the full Aero interface or desktop effects, and may refresh slowly depending on your Internet connection. So don’t judge Windows 7’s performance based on this virtual lab, but use it as a way to learn more about Windows 7 without installing it.]

Visit this page and click on the TestDrive to ‘Try It Now’.
Microsoft has some very good tutorials there on getting accuainted with the function and features of the operating system.
The folks over at the How To Geek site have a superb walkthrough too.

Install route:
If you wish to actually install a full working 90 day trial/evaluation copy of Windows 7 Enterprise you can.
Visit the MS Technet site here.
From here you can choose the version 64 or 32 bit and download the ISO. Then burn it to a DVD for installation.

Alternatively you could ‘mount’ the ISO and do an install that way but that is not recommended.
See my posts on freeware that I use to mount and/or burn ISO images.

If you are going to use the trial version (installing to hard drive) I would HIGHLY suggest you back up your current system completely – see my posts on imaging.
http://mycraniumdrain.blogspot.com/2009/11/back-ups-and-system-restores.html

http://mycraniumdrain.blogspot.com/2009/05/device-driversmanager-and-disk-tools.html

If things don’t work out it is always nice to have a complete system image to return to!
Also make sure that your hardware meets the minium requirements (preferable much more) for an optimum experience.
I hope this helps some take the proverbial ‘look’ before the leap.

Easy file transers with iGoogle/Google Talk

Over at the Google Blog today they’ve announced new file transfer capabilities in iGoogle and orkut. That’s fun! But what I’m most excited about is their promise of file transfer in Gmail Chat.

For now, file transfer only works directly in the browser for iGoogle and orkut, allowing you to send files without saving them as attachments in email. It’s also compatible with Google Talk software client, so you can share with desktop users as well.
It seems easy enough to use: once you’ve started a chat, just click on “Send a file…” in the “Actions” menu. The person on the other end of the line can then either accept or decline, depending on how they feel about you and the types of files you’re inclined to send.

I have sent a few large test files (30MB and 45MB) and the transfer is quite fast. Seems to work on both Windows and OS X. Haven’t tried it on Linux yet. Of course a lot would depend on your Internet connection speeds. For ‘one off’ transfers of large files I think this is a really neat tool to add to your file management box of tricks.

Managing Passwords – Using KeePass

In the digital age remembering your usernames and passwords can be very difficult. You need a password for the Windows network logon, your e-mail account, your homepage’s FTP password, online passwords (like website member account), etc. etc. etc. The list is endless. Also, you should use different passwords for each account. Because if you use only one password everywhere and someone gets this password you have a problem… A serious problem. The thief would have access to ALL your e-mail accounts, banking, mortgage, homepage, etc.

Here is a list of what I have to manage.
My corporate accounts: 64, my logmein accounts: 22,Personal Internet sites and services: 38, my internet email accounts(gmail, hotmail, yahoo): 14,personal banking/credit: 9.
That is a total of 147! And there are probably some I can’t remember!
As you can see having to manage these could be a nightmare without some kind of password management system.

To that end I use KeePass.
KeePass is a free open source password manager, which helps you to manage your passwords in a secure way. You can put all your passwords in one database, which is locked with one master key or a key file. So you only have to remember one single master password or select the key file to unlock the whole database. The databases are encrypted using the best and most secure encryption algorithms currently known (AES and Twofish). I also use KeePass to store my non-digital passwords such as ‘PINs’ for banking and credit cards. Because the database is digital and can be exported it can be copied to many locations for back up purposes – such as USB drives, CDROMs, place in a save deposit box and/or to an Internet storage solution.

http://keepass.info/features.html

There are versions for Windows, Linux, OSX and portable devices such as Blackberrys, iPhones and Windows Mobile (PPC).

There are also ‘Portable Versions’ that can be installed on a USB drive with your Key database for use on other non-secure machines.

Here is a good video how to:
[youtube=http://www.youtube.com/watch?v=hqOe03s9SCs]
Here is another pretty good video on how to setup and use KeePass. It is a little ‘slow’ and it is covering the portable version but the instruction is right on.
http://showmedo.com/static/flowplayer/flowplayer-3.1.5.swf

Windows 7 Media Center HTPC

I have been using some of my home PC’s as Media Centers for a long time. Watching recording, scheduling and converting live TV for some time.[since 1998 actually].
To this end I have, for the most part, relied on third party software to do this.

You do need to have a TV Tuner Card to watch live TV.  There are many available but I am partial to Hauppauge and ATI. Both seem to have no issues if the correct Operating System drivers are used. And you will need a Video card with an output that can connect to your TV [HDMI is preferable] if you wish to watch your shows on your television and not just your PC. There are plenty reasonable priced options available.
I have used ATI’s Media Center(included with the ALL-In-Wonder and TV Cards), Hauppauge’s WinTV(included with their TV cards), Beyond TV (a great software solution), GBPVR, and I’ve tried many others.
However with the advent of Microsoft’s Vista Media Center Microsoft really improved the ability to do this ‘natively’ within Windows.
With Windows 7, Microsoft has really hit it out of the park for anyone wishing to create an HTPC (Home Theater PC). The integration, ease of use, available plug-ins and native functionality are amazing! Nearly anyone can install a TV card and be recording and watching TV through their PC very quickly and just as easily using their PC as a PVR for the TV shows, watching them on their TV. There is so much that can be done with  the media center including; streaming movies and music to other machines on your local network (or even the internet!), copying or moving your recorded movies or music to other devices and more.

I have sent out a number of Windows Media Center how to’s in the past and helped many others to build their system. Many of the tips and instructions including information I put together from various sites and my own experiences and insights. Trouble is most people will not take the time to do any research and to learn something new and will instead contact someone else to ‘set it up for them’. Granted I have and sometimes still do earn some decent money from these people but usually it is family and close friends who insist on not learning for themselves. If you take the time and learn you will be far ahead of the game and have a great deal more enjoyment from your technology.

What I am going to do here is try and put together one of the most complete set of links to information on how to setup, configure and tweak a Windows 7 Media Center.

The 1st place to start is Microsoft’s site. Microsoft has what I believe to be some of the best tutorials and how to’s available anywhere! There loads of videos on how to do just about everything.
Start with the ‘Do I have it?’ video
http://www.microsoft.com/windows/windows-media-center/get-started/default.aspx
and work your way through the whole batch of videos. VERY well done.

In my very long history in supporting Microsoft Products I have watched as their training/tutorials for end users has become nothing less than spectacular.

Next stop would be the folks at the How To Geek site. They have put together some very good tutorials and walkthroughs. Many much like the ones I have sent out myself in the past only some of theirs are a little more thorough.

From the HowToGeek site:
Stream Music and Video Over the Internet with Windows Media Player 12
Share and Stream Digital Media Between Windows 7 Machines On Your Home Network
Learning Windows 7: Setup Live TV in Windows Media Center.
Automatically Start Windows 7 Media Center in Live TV Mode.
How To Skip Commercials in Windows 7 Media Center.
Increase Live TV Pause Buffer in Windows 7 Media Center.
Increase Skip and Replay Intervals in Windows 7 Media Center.
Learning Windows 7: Manage Your Music with Windows Media Player.
Share Digital Media With Other Computers on a Home Network with Windows 7.
View Weather Conditions in Windows 7 Media Center.

Some other plug-ins:
Media Center Plug-Ins you should get.
http://www.hack7mc.com/2009/04/5-plug-ins-every-windows-7-media-center-install-should-be-using.html
Copy TV to iPod or other Media player:
http://lifehacker.com/software/ipod/alpha-geek-copy-tv-shows-to-your-ipod-241398.php
You will need:
DVRMSToolbox
http://babgvant.com/files/folders/8659/download.aspx
and
iPodifier
http://ipodifier.com/
My Movies
http://www.mymovies.dk/products/windows-media-center.aspx

Android on Windows Mobile Touch Pro 2

For the techies here is something I found kinda cool. You can actually run the newer Adroid Phone OS from within Windows Mobile:
Below, a video demonstrates Android running successfully on the HTC Touch Pro2.

http://www.youtube.com/watch?v=fa1Eu_hzX8Q&feature;=player_embedded

This android version is on Micro SD not on the ROM which means that you will have some lags here and there.
It doesnt replace the WnMo Operating system. In fact you have to run Haret.exe from within WinMobile.

Android runs from HARET, it is just an exe file, no modifications or flashes are needed for the OS to run. So your warranty is just fine!!! Also there is really zero possibilities to brick your phone as a single soft-reset (power off and on) will reset back to Windows mobile. [HaRET = Handheld Reverse Engineering Tool; It is a Linux bootloader which works from Windows CE environment (a-la loadlin for DOS or older Linexec tool for Windows CE). It is a tool for accessing the hardware internals of a Windows CE handheld to help get Linux up and running on it.]

It’s fun to mess around with Android, but it has some lag. Also not all of the phone features are functioning – but most do. And, it cuts your battery life beyond belief for now.

This is just something to mess around with if you have a TouchPro2 (Verizon or Sprint) and I don’t make any gaurantees as to how well it will work for you. My usual ‘don’t call me’ if you mess something up warnings apply. 🙂

Instructions, FAQ and Tips:
Here at the PPC Geeks Forum

Download the files and more info:
http://forum.ppcgeeks.com/showpost.php?p=1614791&postcount;=69

It is really simple thanks to these guys.
1. Grab the actual download Here It contains all the files in zip format. Then just extract the folder contents on the root of the SD card.

2. Run Haret.exe, and wait about five to ten minutes. Takes time to load.

3. Make sure to watch the video to learn about the functioning of the phone keys if you have never used an Android phone before!

To exit and return to your Windows Mobile OS simply ‘soft reset’ the phone – restart/power off and on.
Have fun, I will.

Windows Mobile ROM upgrade

Recent phone OS adventure:
I have had and or used just about every smart phone and been with virtually every US carrier there is since they came out in the late 90’s. Yes I have used custom carrier OS’s, Symbian, Blackberry, iPhone and Palm. But have always come back to Window Mobile. I have even demoed an Android for a few days and was NOT happy with it. I think the newer versions coming this year may prove better, but I still doubt I will have all my Windows applications available.
My reasons for choosing the Windows Mobile platform have primarily to do with my position as a network administrator. I require applications and functionalities only available in a Windows operating systems.
I have also learned how absolutely amazingly configurable the Windows Mobile platform is. Much like the Windows Operating system on the Desktop. And nearly all of the worthwhile applications and tweaks are free for the taking and searching or at very low cost. And the ability to ‘tweak’ and adjust the OS is unmatched. [Don’t bring Linux into the equation as it does not have the user, application or development base of the Windows platform as of yet and for most users is WAY to difficult to administer. And yes I do have a few Linux servers and desktops I use, but as I said I am a network admin and have been working with all kinds of OS’s for over two decades.]
   mac-vs-pc Chuckle, chuckle.

With my previous HTC Touch Pro (ver. 1) I flashed my ROM to give me access to features that were ‘disabled’ by my carrier. Most important to me was the ‘tethering/internet sharing’ abilities.
I found a ROM (OS upgrade) on the PPC Geeks and XDA sites and had no issues updating the phone and was very happy until my phone died and had to be replaced. I can’t stress enough the assistance and knoweldge I have gained through these two sites! I wish to thank them and their users for all the support.
That was nearly a year and a half ago and I have since moved to the latest version of the Touch Pro2 from Sprint.
I was more that a little disappointed upon learning that my new phone would not contain Windows Mobile 6.5 and would NOT be able to be upgraded!

So I set about searching for an upgrade.
The ROM (Operating system for Phone) I chose was created by the folks at MightROM (with Windows Mobile 6.5).
Good video showing it’s use:
http://www.youtube.com/watch?v=fplCcb4zU-4
From extensive reading over the last year this ROM appears to be the most stable and quickest of the bunch while at the same time containing loads more functionality that the stock carrier(s) WinMo 6.1 version. Also being Windows Mobile 6.5 it allows access to the Windows Mobile Marketplace. http://marketplace.windowsphone.com/Default.aspx
So on to how.
I started Here:
http://ppcgeeks.com/
and
http://www.xda-developers.com/

Most importantly, it was the forums section of each where I gained an unbelievable amount of information over the past few years. From simple applications and tweaks to more complex configurations and ROM updates.
Though often hard to sift through so many posts doing prodigious searching and more importantly – actually reading each and every post COMPLETELY, I was able to find the proper techniques and tools needed for my ROM upgrades.
Registration is free for both forums and is often required for access to ‘downloads’ (.cabs) posted in threads.
XDA forum:
http://forum.xda-developers.com/
PPC Geeks Forum:
http://forum.ppcgeeks.com/
Here is the actual ROM information.
http://www.mightyrom.com/
The forum concerning most things about this ROM is here:
http://forum.ppcgeeks.com/showthread.php?t=79579
AND
I recommend reading as many posts as possible! I can’t stress that enough. The people at the forums are incredibly helpful but will NOT tolerate someone who asks questions that have been answered already numerous times. Spend a great deal of time reading posts, links and searching for question and answers you may have as you contemplate/plan an update. Asking questions that have already been asked will quickly get you flamed and not provide you any answers.

The actual download is here:
http://www.mightyrom.com/mightyrom/touch-pro-2/?did=6
The process involves first ‘unlocking’ the phone 1st and then ‘flashing the ROM’.
There are two ways to do that.
One is the ‘free’ way and use the ‘Hard-SSPLunlocker’ method. This should enable you to then flash your ROM.
http://rhodiumw.htc-unlocks.com/hard-spl.php
and
http://forum.xda-developers.com/archive/index.php/t-578660.html
and more info
http://forum.xda-developers.com/showthread.php?p=5731732&posted;=1#post5731732
[note the disable antivirus warnings!]

The second is the ‘Full’ way to unlock your CID (enable you to flash) AND it also unlocks your SIM (allowing you to unlock the CID AND unlock your ‘Radio’ – Carrier if you wish.)
For those that wish to use a phone from another carrier on a different network (complete unlock) you need to unlock the SIM too.  This is NOT required to flash the ROM if you are staying with your current carrier.
I did not wish to change carriers so I really only needed the hard-spl unlocker.

However I was having troubles getting the unlocker to actually ‘unlock’ my phone. You cannot update/flash your ROM until your phone is ‘unlocked’.
So I sprung for the ‘Full CID/SIM unlocker from the Rhodium-htcunlock guys. Made a small ‘donation’ and received the complete unlocker tailored to my phone. Well worth it for me. It actually worked and unlocked my phone and also allows me to switch the carrier should I desire to later (if I sell the phone).

The ‘Full unlocker’ which lets you unlock your phone and also the SIM and to update your ROM is here:
http://rhodium.htc-unlocks.com/
The actual download is here:
http://www.mightyrom.com/mightyrom/touch-pro-2/?did=6

After unlocking my phone I ran the MightROM upgrade with out a hitch.
I then did the ‘carrier provisioning’ on the phone (provided by MightROM in the ‘Systems’ folder.) then installed the ‘carrier cabs’ from Sprint (my provider).  And was good to go! It literally only took 15 minutes to be able to use my phone again!!
My phone has never been faster and more functional!!

There are many other applications that I installed after the upgrade and all went without a hitch.
If your phone is any type of Windows Mobile phone (not just a Touch Pro/Tilt) there are loads of ROMs and upgrade available.

I have loaded a crap load of productivity and media applications(there is NO media format I can’t watch or listen to!). I may list them later or you can post and request them if you
like.

Remember when doing upgrades to your phone you risk the chance of ‘bricking’ it. So proceed with caution and great deals of due diligence. [see picture above :)]. One ‘skin/theme’ I downloaded and installed ‘torqued’ my new system. So I had to ‘re-flash’. No big deal after already having done it. But just a warning.
Here are some good links to applications:
Frequently asked questions:
http://forum.ppcgeeks.com/showthread.php?t=91619
User recommended softwares:
http://forum.xda-developers.com/showthread.php?t=550973
and
http://forum.ppcgeeks.com/showthread.php?t=111190
Just thought I’d pass on some information some of you may use.

I know many of you have iPhones too. I have written previously on how to do upgrades on those too so I won’t go into great detail here. But I will provide the links to two of the top places for information on ‘Jailbreaking’ your phone. If you have one and would like to be free of the ‘lockdown’s’ imposed by AT&T; and Apple I would look at these:
http://wikee.iphwn.org/howto:rs9

http://www.quickpwn.com/category/phones/iphone/jailbreak

Confronting the lies of man made global warming

I’ve sent out comments and links on this before and was going to take the time and put them all in one spot here.

However looks like Robert A. Hall on his blog “The Old Jarhead” put together one of the best posts I’ve seen in a while.
He has loads of links with facts and commnetary.

I recently had a discussion with someone who was trying to tell me that even though ALL the data underlying the whole ‘theory of man made global warming’ was has been proven to be lies and fabrications at the very least completely incorrect, it did not change the ‘fact’ as he put it that all this ‘bad’ stuff would happen if humans didn’t stop blah, blah blah.

I had to try and get him to understand that if the basis for his theory, the underlying structure and underpinnings, were false, then EVERY thing drawn from them is also false!
He could not understand that! It seems most of our country has lost the ability to reason based on facts.

Even with undeniable facts and science it is hard to overcome a dogma that has been brainwashed into the minds of nearly an entire generation. And unbelievably, is still preached by the media and ruling elite in an effort to assert more control over us and reduce our freedoms and liberties.

When I get the chance I will also add some other good info but for now many thanks to Sgt. Hall.
Well have a read, gather some ammo (facts) for the fight for truth:
http://tartanmarine.blogspot.com/2010/03/global-warming-articles.html

Convert Dynamic Disk back to Basic Disk WITHOUT data loss

Here is the story.

I had a Windows 7 machine that I was using as a test bed for various applications and settings.
I was trying to recover some files from an old hard drive. I attached the drive via a usb dock. And I was able to grab most of the files I wanted via a rescue start up disk.

I then wanted to delete the partitions on that old drive and format it. Simple enough. But the damaged drive was still giving me problems. I should have used the boot CD to kill it there. But instead, like a maroon, I booted into Windows & and tried to just ‘add’ the disk in the disk manager.
But somewhere in my sleepiness after a 16+ hour day I converted my Windows 7 drive to a dynamic volume that included the messed up drive!
Before I realized what I had done it was too late.

What to do?

With the damaged drive not working my ‘dynamic volume’ was now in accessable after restarting the machine!
So on with the searching for a solution.
I read over and over how a Dynamic Disk could NOT be converted back to a Basic Disk.
Even Microsoft say this is so!

But I knew I had read somewhere about editing the MBR and setting the drive back to basic year ago. I may have even done it.
And after many days and many hours I found a simple elegant solution in an old post that WORKED!

I simply pulled out the affected Windows 7 drive and used my HDD dock to attach it to one of my main machines and edit the MBR sector to change the disk back to a Basic Disk.

Basically it involves using a freeware hex disk editor to open the MBR and just change one sector(sector 0 location 1C2) value from ’42’ to ’07’ saving the change. Then running a check disk and fix (chkdsk x: /f).
I put the drive back in booted and after a few moments of ‘recovery’ at start up my entire OS was back!
Here is the post.

It is very detailed and easy to follow.
I hope no one needs it but if you do this is good to have in your tech notes file.