Chrome Edit With Emacs
Namebench - 60% Faster Web
Go Man Go!
We have a pretty good Net connection. Our ISP, O2 has excellent uptime and speed is okay. The only issue I have is with name resolution. You know, DNS. O2s DNS servers are overworked and most times when our Net connection is slow, its down to the DNS servers not responding quickly enough to DNS requests.
I came across a Google Code utility to speed test available DNS servers in each locale, and suggest alternatives.
If you can speed up your web browsing and it costs nothing, what have ya got to lose? (apart from the time taken to read this post, download the package, install it, run it, and change your DNS entries). Not a lot!
The package is called namebench and can be found at:
I installed and ran namebench, it found a DNS server that was 60% faster than O2s servers which I presently use. After updating DNS server names, web surfing was definitely quicker.
After download, unzip the package and cd into namebench dir. I checked out the README file, starting it was easy. In an XTerm, do:
./namebench.py
Silently, namebench runs off and does its thing, then comes back with a few recommendations.
To change your DNS server entries on Debian Linux, as root, open:
/etc/resolv.conf
copy the DNS entries from namebench, then close and save resolv.conf.
Now enjoy faster browsing at no extra cost.
How good is that?
Hasta luego!
Gnome Theme Color
XTerm Font Size
Way Too Small
The font size in XTerm by default is way small. To increase its size, you have a number of options.
1. Launch XTerm with -font argument
You can give the font face and size as an argument
xterm -font -*-fixed-medium-r-*-*-14-*-*-*-*-*-iso8859-* -geometry 80x24
or try
xterm -font -*-lucidatypewriter-medium-r-*-*-12-120-*-*-*-*-iso8859-1 -geometry 80x24
Run xlsfonts to find out which fonts are available on your system. If results scroll off screen, pipe it to less
xlsfonts | less
Run xfontsel to select your font and get font details
You can also create a panel launcher on the desktop with the same settings as above.
2. Configure .Xdefaults
Add an entry in your .Xdefaults file located in your home directory
xterm*font: -*-fixed-medium-r-*-*-14-*-*-*-*-*-iso8859-1
xterm*font1: -*-lucidatypewriter-medium-*-*-*-12-120-*-*-*-*-8859-1
Unix Wipe To Secure Erase Disk Data
Clean 'em Up
One of the many great things about Linux are the free utilities at your disposal.
If you have old an computer, some disks you want to sell on or give away, you need to wipe clean the disks to ensure all your personal data is erased.
A great Unix utility is Wipe. If your running Debian or Ubuntu, its available in the main repository for download.
You know the routine:
aptitude install wipe
Instantly you have a great utility to securely wipe/erase all data on disk.
Its easy to use. From the man page:
wipe -rcf /home/bark/text/
Wipe every file under /home/bark/text/ including /home/bark/text/. Recursive wipe (-r) and don't ask for confirmation (-f). Files without correct permission will be chmod'd (-c).
wipe -kq /dev/sdb1
Wipes all data from the first partition on the second SCSI/SATA disk drive, using the quick option (-q). Before starting it will ask you to confirm.
On a fast multicore machine, an 18GB SCSI disk took 7 mins to wipe with four passes. A 72GB SCSI disk took 26 mins with four passes. For large size disks you probably want to run the Wipe utility overnight.
Password Cracking
Emacs Shell Garbage
What Is That?
If start a shell buffer in Emacs, you may find garbage printed onscreen instead of a listing of files and directories. This is a problem with ansi color settings.
From Emacs manual:
"If you want Shell mode to handle color output from shell commands, you can enable ANSI Color mode. Here is how to do this:"
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
Fixing the problem requires adding the above line to your .emacs init file.
Its that simple!
Chrome Extensions On Debian Laptop
Debian WiFi Drivers
Look Ma No Wires
Installing Debian Squeeze on my laptop today, and early in the install process the installer stopped and requested the following WiFi drivers:
iwlwifi-3945-2.ucode & iwlwifi-3945-1.ucode
I found them at Intel's Linux Wireless website:
http://intellinuxwireless.org/?n=downloads
Remap Caps Lock To Ctrl
Useless Key No More
Caps Lock must be the most useless key on modern keyboards. I mean who locks their CAPS before typing, apart from angry flamers and the unwary?
Well with that question out the way, here's how to remap the Caps_Lock key to a second Ctrl key using xmodmap.
Create an .xmodmap file in your home directory and copy the following to it:
remove Lock = Caps_Lock
remove Control = Control_L
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
Save and close the file.
Create an .xsession file in your home directory and add the following:
xmodmap ./.xmodmap
Save and close the file.
Now type the following to source the .xsession file:
. ./.xsession
Test it and see.
Done!
Debian LXDE
Chrome Iron Browser
If you're concerned about privacy issues, go have a look at Iron. The browser is free and fully compatible with Google Chrome. You can use all Chrome extensions and Chrome themes to customize and beautify your browser.
Using Debian dpkg With .deb Files
Install Chrome On Debian
Browse This
Chrome is not part of the standard Debian software repository, and will not show up if you do
apt-get search google-chrome
or
aptitude search google-chrome.
Both will draw a blank. Instead go to the Chromium Project site and download a developer release.
http://dev.chromium.org/getting-involved/dev-channel
Scroll down till you get to Linux and select the 64-bit unstable current version:google-chrome-unstable_current_amd64.deb
If your not running multi-core cpu, or your not sure, go with the i386.deb download.
google-chrome-unstable_current_i386.deb
Once the download is complete, click it and it self-installs, after you give root password.
You need to add a couple of Chrome goodies, like adblock, etc to round it off. I posted on these already.
You can run a search on the blog entries using the search box at the top left hand corner of your browser. Search for something such as chrome and it will pull up all the chrome entries in this blog.
Although its probably familiar territory for most people, I mention this as someone commented on having a problem searching previous blog entries.
Done!
Debian Linux Net Install
Linux Does Not Recognise SATA Disk
Google Chrome Shortcuts #2 - Linux OS
Address Bar Shortcuts
Use the following shortcuts in the address bar:| Type a search term, then press Enter. | Performs a search using your default search engine. |
| Type a search engine keyword, press Space, type a search term, and press Enter. | Performs a search using the search engine associated with the keyword. |
| Begin typing a search engine URL, press Tab when prompted, type a search term, and press Enter. | Performs a search using the search engine associated with the URL. |
| Ctrl+L | Highlights the URL. |
| Ctrl+E | Places a '?' in the address bar. Type a search term after the question mark to perform a search using your default search engine. |
| Press Ctrl+Shift and the left arrow together. | Moves your cursor to the preceding key term in the address bar |
| Press Ctrl+Shift and the right arrow together. | Moves your cursor to the next key term in the address bar |
| Ctrl+Backspace | Deletes the key term that precedes your cursor in the address bar |
| Select an entry in the address bar drop-down menu with your keyboard arrows, then press Shift+Delete. | Deletes the entry from your browsing history, if possible. |
| Click an entry in the address bar drop-down menu with your middle mouse button (or mousewheel). | Opens the entry in a new tab in the background. |
| Press Page Up or Page Down when the address bar drop-down menu is visible. | Selects the first or last entry in the drop-down menu. |
Webpage Shortcuts
| Ctrl+P | Prints your current page. |
| Ctrl+S | Saves your current page. |
| Ctrl+R | Reloads your current page. |
| Esc | Stops the loading of your current page. |
| Ctrl+F | Opens the find bar. |
| Ctrl+G or Enter | Finds the next match for your input in the find bar. |
| Ctrl+Shift+G or Shift+Enter | Finds the previous match for your input in the find bar. |
| Press Alt and click a link. | Downloads the target of the link. |
| Drag a link to bookmarks bar | Bookmarks the link. |
| Ctrl+D | Bookmarks your current webpage. |
| Space bar | Scrolls down the web page. |
| Home | Goes to the top of the page. |
| End | Goes to the bottom of the page. |
Text shortcuts
| Ctrl+C | Copies highlighted content to the clipboard. |
| Ctrl+V or Shift+Insert | Pastes content from the clipboard. |
| Ctrl+Shift+V | Paste content from the clipboard without formatting. |
| Ctrl+X or Shift+Delete | Deletes the highlighted content and copies it to the clipboard. |
Google Chrome Shortcuts #1 - Linux OS
| Ctrl+N | Opens a new window. |
| Ctrl+T | Opens a new tab. |
| Ctrl+Shift+N | Opens a new window in incognito mode. |
| Ctrl+B | Toggles the bookmarks bar on and off. |
| Press Ctrl+O, then select file. | Opens a file from your computer in Google Chrome. |
| Press Ctrl and click a link. Or click a link with your middle mouse button (or mousewheel). | Opens the link in a new tab in the background . |
| Press Ctrl+Shift and click a link. Or press Shift and click a link with your middle mouse button (or mousewheel). | Opens the link in a new tab and switches to the newly opened tab. |
| Press Shift and click a link. | Opens the link in a new window. |
| Ctrl+Shift+T | Reopens the last tab you've closed. Google Chrome remembers the last 10 tabs you've closed. |
| Drag a link to a tab. | Opens the link in the tab. |
| Drag a link to a blank area on the tab strip. | Opens the link in a new tab. |
| Drag a tab out of the tab strip. | Opens the tab in a new window. |
| Drag a tab out of the tab strip and into an existing window. | Opens the tab in the existing window. |
| Press Esc while dragging a tab. | Returns the tab to its original position. |
| Ctrl+1 through Ctrl+8 | Switches to the tab at the specified position number on the tab strip. |
| Ctrl+9 | Switches to the last tab. |
| Ctrl+Tab or Ctrl+PgDown | Switches to the next tab. |
| Ctrl+Shift+Tab or Ctrl+PgUp | Switches to the previous tab. |
| Ctrl+Shift+Q | Closes Google Chrome. |
| Ctrl+W or Ctrl+F4 | Closes the current tab or pop-up. |
| Click a tab with your middle mouse button (or mousewheel). | Closes the tab you clicked. |
| Right-click, or click and hold either the Back or Forward arrow in the browser toolbar. | Displays your browsing history in the tab. |
| Press Backspace | Goes to the previous page in your browsing history for the tab. |
| Press Shift+Backspace | Goes to the next page in your browsing history for the tab. |
| Click either the Back arrow, Forward arrow, or Go button in the toolbar with your middle mouse button (or mousewheel). | Opens the button destination in a new tab in the background. |
| Double-click the blank area on the tab strip. | Maximizes or minimizes the window. |
Google Chrome Shortcuts #2 - Windows OS
Google Chrome Feature Shortcuts
| Alt+F | Opens the Tools menu, which lets you customize and control Google Chrome. |
| Alt+E | Opens the Page menu, which lets you control the page you're viewing. |
| Ctrl+B | Toggles the bookmarks bar on and off. |
| Ctrl+Shift+B | Opens the Bookmark manager. |
| Ctrl+H | Opens the History page. |
| Ctrl+J | Opens the Downloads page. |
| Shift+Esc | Opens the Task Manager. |
| Shift+Alt+T | Sets the focus on the browser toolbar. Use right and left arrows on the keyboard to navigate to different buttons on the toolbar. Press Shift+F10 to bring up any associated context menu (e.g. browsing history for the Back button). Press Escape to move the focus back to the page. |
| Ctrl+Shift+J | Opens Developer Tools. |
| Ctrl+Shift+Delete | Opens the Clear Browsing Data dialog. |
| F1 | Opens the Help Center in a new tab (our favorite). |
Address Bar Shortcuts
Use the following shortcuts in the address bar:| Type a search term, then press Enter. | Performs a search. |
| Type a search engine keyword, press Space, type a search term, and press Enter. | Performs a search using the search engine associated with the keyword. |
| Begin typing a search engine URL, press Tab at prompt, type search term, and Enter. | Performs a search using the search engine associated with the URL. |
| Ctrl+Enter | Adds www. and .com to your input in the address bar and open the resulting URL. |
| Type a URL, then press Alt+Enter. | Opens the URL in a new tab. |
| F6 or Ctrl+L or Alt+D | Highlights the URL. |
| Ctrl+K or Ctrl+E | Places a '?' in the address bar. Type a search term after the question mark to perform a search using your default search engine. |
| Press Ctrl and the left arrow together. | Moves your cursor to the preceding key term in the address bar |
| Press Ctrl and the right arrow together. | Moves your cursor to the next key term in the address bar |
| Ctrl+Backspace | Deletes the key term that precedes your cursor in the address bar |
| Select an entry in the address bar drop-down menu with your keyboard arrows, then press Shift+Delete. | Deletes the entry from your browsing history, if possible. |
| Click an entry in the address bar drop-down menu with your middle mouse button (or mousewheel). | Opens the entry in a new tab in the background. |
| Press Page Up or Page Down when the address bar drop-down menu is visible. | Selects the first or last entry in the drop-down menu. |
Webpage Shortcuts
| Ctrl+P | Prints your current page. |
| Ctrl+S | Saves your current page. |
| F5 or Ctrl+R | Reloads your current page. |
| Esc | Stops the loading of your current page. |
| Ctrl+F | Opens the find bar. |
| Ctrl+G or F3 | Finds the next match for your input in the find bar. |
| Ctrl+Shift+G, Shift+F3, or Shift+Enter | Finds the previous match for your input in the find bar. |
| Click the middle mouse button (or mousewheel). | Activates auto-scrolling. As you move your mouse, the page automatically scrolls according to the direction of the mouse. |
| Ctrl+F5 or Shift+F5 | Reloads your current page, ignoring cached content. |
| Press Alt and click a link. | Downloads the target of the link. |
| Ctrl+U | Opens the source of your current page. |
| Drag a link to bookmarks bar | Bookmarks the link. |
| Ctrl+D | Bookmarks your current webpage. |
| F11 | Opens your page in full-screen mode. Press F11 again to exit full-screen. |
| Ctrl and +, or press Ctrl and scroll your mousewheel up. | Enlarges everything on the page. |
| Ctrl and -, or press Ctrl and scroll your mousewheel down. | Makes everything on the page smaller. |
| Ctrl+0 | Returns everything on the page to normal size. |
| Space bar | Scrolls down the web page. |
| Home | Goes to the top of the page. |
| End | Goes to the bottom of the page. |
| Press Shift and scroll your mousewheel. | Scrolls horizontally on the page. |
Text Shortcuts
| Ctrl+C | Copies highlighted content to the clipboard. |
| Ctrl+V or Shift+Insert | Pastes content from the clipboard. |
| Ctrl+Shift+V | Paste content from the clipboard without formatting. |
| Ctrl+X or Shift+Delete | Deletes the highlighted content and copies it to the clipboard. |
Google Chrome Shortcuts #1 - Windows OS
Tab and Window Shortcuts
Tab and Window Shortcuts
| Ctrl+N | Opens a new window. |
| Ctrl+T | Opens a new tab. |
| Ctrl+Shift+N | Opens a new window in incognito mode. |
| Press Ctrl+O, then select file. | Opens a file from your computer in Google Chrome. |
| Press Ctrl and click a link. Or click a link with your middle mouse button (or mousewheel). | Opens the link in a new tab in the background . |
| Press Ctrl+Shift and click a link. Or press Shift and click a link with your middle mouse button (or mousewheel). | Opens the link in a new tab and switches to the newly opened tab. |
| Press Shift and click a link. | Opens the link in a new window. |
| Ctrl+Shift+T | Reopens the last tab you've closed. Google Chrome remembers the last 10 tabs you've closed. |
| Drag a link to a tab. | Opens the link in the tab. |
| Drag a link to a blank area on the tab strip. | Opens the link in a new tab. |
| Drag a tab out of the tab strip. | Opens the tab in a new window. |
| Drag a tab out of the tab strip and into an existing window. | Opens the tab in the existing window. |
| Press Esc while dragging a tab. | Returns the tab to its original position. |
| Ctrl+1 through Ctrl+8 | Switches to the tab at the specified position number on the tab strip. |
| Ctrl+9 | Switches to the last tab. |
| Ctrl+Tab or Ctrl+PgDown | Switches to the next tab. |
| Ctrl+Shift+Tab or Ctrl+PgUp | Switches to the previous tab. |
| Alt+F4 | Closes the current window. |
| Ctrl+W or Ctrl+F4 | Closes the current tab or pop-up. |
| Click a tab with your middle mouse button (or mousewheel). | Closes the tab you clicked. |
| Right-click, or click and hold either the Back or Forward arrow in the browser toolbar. | Displays your browsing history in the tab. |
| Press Backspace, or Alt and the left arrow together. | Goes to the previous page in your browsing history for the tab. |
| Press Shift+Backspace, or Alt and the right arrow together. | Goes to the next page in your browsing history for the tab. |
| Press Ctrl and click either the Back arrow, Forward arrow, or Go button in the toolbar. Or click either button with your middle mouse button (or mousewheel). | Opens the button destination in a new tab in the background. |
| Double-click the blank area on the tab strip. | Maximizes or minimizes the window. |
| Alt+Home | Opens your homepage in your current window. |
Emacs Time Stamp
Champions League
Not!!!
Its been a while since I posted about Soccer, after tonight's results, I felt the urge to get something down. Manchester United were knocked out by Bayern Munich. Last night Barcelona thumped Arsenal and sent them on their way, tail between their legs. Liverpool were thoroughly beaten by Lyon weeks ago and Inter Milan thumped Chelsea and showed them how it should be done.
How sweet that must have been for Jose Mourinho the ex-Chelsea coach, now at Inter Milan. Revenge tastes sweet. His 'V' sign to Abramovich.
So its on to the Semi-Finals and no English clubs left in the competition. Huh? How come?
Only a few weeks ago, with 3 English teams in the competition, some online papers were touting the possibility of an all English final, and the very least an English Semi.
The truth unfolds. English football has stagnated. Spanish and Italian teams have forged ahead, with bold tactics and heavy investment on players and coaches. It was only a couple of years ago it was plain to see how strong English teams were against their continental counterparts.
This year, no English team makes it to the Semi's.
Liverpool were regular visitors to Quarter, Semi, and Finals. Chelsea too. Manchester United and Arsenal also pitched in from time-to-time.
After the 4-1 caning by Barcelona, Arsenal must look for new inspiration. Maybe its time for Wenger to hang up his training boots? Barcelona beat Arsenal in the Champions League Final 2006 and have failed to improve since then.
Manchester United have also rans in Europe since beating Chelsea for the Cup in 2008. Last year they were beaten in the final by Barcelona. Chelsea came close two seasons ago have joined the list of also rans.
Liverpool are playing so badly they will not qualify for Champions League football next season. Maybe its time for Rafa (Liverpools coach) to take the money and run.
The English teams have lost ground. They are no longer the dominant force in European football. Its the Spanish silly.
Maybe a revival will happen next year. I'm not sure. The problems run deep. The Premier League seems to produce a weaker side technically. When you watch Barcelona play they have a melodic rhythm to their football and a cheeky opportunism in the penalty area. Their set play's are varied.
Emacs And Google Chrome
Google Chrome Dictionary
What Word?
I've been using Google's Chrome browser for sometime, though it lacked several features available in Firefox. The biggest drawback was the absence of adblock, but I learned to live without adblock for a while. Adblock is now available for Chrome.
The problem for the fledgeling browser was the lack of Extensions or what Firefox calls Add-ons. This has been fixed with a plethora of extensions made available now and more coming on stream each week.
I installed a number of Chrome Extensions this morning and they are brilliant. Google Dictionary is just great. Come across a word you don't know or cant remember? Double click and the meaning is there.
Before Google's Dictionary Extension, I would launch a tab, go to dictionary.com, type the word and wade through the various results.
What a time saver. This thing is just so fast.










