Midori Browser – Moving the New Tab button

I am running the Midori browser inside of Cygwin-X at work.  This allows me to browse and download within Cygwin easier, as well as bypass some of the security imposed on the network at work.

One thing I have found that I absolutely hate is the order Midori puts its task buttons in.  The first button on EVERY other browser is Back – Midori uses “New Tab”  – WTF?!  I find myself clicking “New Tab” meaning to go back.  This has got to go!

I found that the easy fix for this is by editing the configuration file.  On Cygwin this file is located in .config/midori/config

Make sure you exit out of Midori, then open the config file in vi.  The line to look for is toolbar-items=.  I moved TabNew from the first entry to the last.  Saved the file and then restarted Midori.

 

Upgrade your ESXi vmtool isos

Need to update the vmtools in your ESXI 4.0 server?

You can download the ESXI 4.1 ISO updates free from VMware. Log in/Register at https://www.vmware.com/tryvmware/index.php and then look for “VMware Tools CD image for Linux Guest OSes” and download the ISO image.

You will have need to enabled SSH on your ESXi host before this – as well have enough disk space to accomodate this file. The new linux.iso is more then 2X the old and I had to pull all of the unused iso’s (linux.iso, freebsd.iso, netware.iso, solaris.iso, and winPre2k.iso) off my ESXi host to make room.

Once I have replaced linux.iso with the new file, a new file signature also needs to be generated.

I did not find the original private key this was signed with, but its easy to generate a new private/public key pair and resign all iso’s if needed.

You will find the iso images in the following directory:

/store/packages/4.0.0/vmtools

Using openssl you can generate the private key:

openssl genrsa -out tools-priv.pem 2048

using the private key you just generated, we can now recreate the tools-key.pub that ESXi verfies the iso images against:

mv tools-key.pub tools-key.pub.orig
openssl rsa -in tools-priv.pem -pubout -out tools-key.pub

Now we can recreate the linux.iso.sig

openssl dgst -sha1 -sign tools-priv.pem < linux.iso > linux.iso.sig

Now you should be able to install/upgrade all of your Vmtool’s with this latest and greatest version.

WordPress – Squash Spam Comments

A quick and easy way to squash the damn WordPress Spam bots.

 

First step is to turn off comments on all of your posts using the following SQL query:

UPDATE wp_posts p SET comment_status = ‘closed’, ping_status = ‘closed’ WHERE comment_status = ‘open’;

* Note you may have to adjust the wp_posts table name to suit your install.

Second step:

The default comment and ping status is open on all new posts – change the default to ‘closed’ with the following 2 queries:

alter table wp_posts change comment_status comment_status varchar(20) default ‘closed’;
alter table wp_posts change ping_status ping_status varchar(20) default ‘closed’;

Again, you may need to adjust the wp_posts table name to your install.

 

 

Joomla – Editing “Advanced Attribs” from Front end

I have run into a project that requires attaching some addition “Advanced” attributes to Joomla articles.

I have extended the “blog category” menu type to incorporate jQuery to display the blog category with the titles as vertical tabs, and the introtext displayed in a content div when each tab is clicked.

Articles selected for this vertical tabbed menu will also have an associated “menu image” and a “video file”.  The menu image will be a thumbnail that gets displayed in the tab, and the video file will be a flv video that is used to populate (using javascript) a fixed video player that will appear in another module position on the website.

Continue reading

Joomla Content 101

I like to think of Joomla as the content management system that I love to hate. I know WAY too much about it to just stop what I am doing and start over again with another CMS. I have done some simple things with WordPress and Drupal, when it comes right down to it, I can install a working Joomla site with 4 server commands.

People often ask me about how Joomla organizes its pages/articles, so I figured I would make up a quick blog entry.

Continue reading

Bing Misses the mark – BING Failure #2

I have been doing a little Geneaology research lately and found that my Great Grandfather sold a family product named Laws’ Bluing – which was a laundry additive to whiten clothing.  Google gives me 10 results for the search of “Laws Bluing”.  As much as I hate it, I decided to give Bing.com a try.   I think they missed the mark just a little …

laws