Grepping Hell

Well that was a tad embarrassing I thought I had lost the ability to grep. All I wanted to do was find any instances of jt1.name in files in the current directory, simple I thought :
grep jt1.name *

Nope
That returned loads of hits that didn’t match at all eg :


modules/UpgradeWizard/commit.php:$from_dir = clean_path(remove_file_extension($install_file) . "-restore");
modules/UpgradeWizard/SugarMerge/EditViewMerge.php: * this will store the meta data for the original file
modules/UpgradeWizard/SugarMerge/EditViewMerge.php: * this will store the meta data for the new file
modules/UpgradeWizard/SugarMerge/EditViewMerge.php: * this will store the meta data for the custom file
modules/UpgradeWizard/SugarMerge/EditViewMerge.php: * this will store an associative array contianing all the fields that are used in the original meta data file
modules/UpgradeWizard/SugarMerge/EditViewMerge.php: * this will store an associative array contianing all the fields that are used in the new meta data file
modules/UpgradeWizard/SugarMerge/EditViewMerge.php: * this will store an associative array contianing all the fields that are used in the custom meta data file
modules/UpgradeWizard/SugarMerge/EditViewMerge.php: * this will store an associative array contianing all the merged fields
modules/UpgradeWizard/SugarMerge/EditViewMerge.php: * Merges the fields together and stores them in $this->mergedFields
modules/UpgradeWizard/preflight.php: //Check the current and target versions and store them in session variables
modules/UpgradeWizard/silentUpgrade.php://look for session vars there and restore them
modules/UpgradeWizard/uw_ajax.php: $desc .= $persistence['uw_restore_dir']."\n\n";
modules/UpgradeWizard/uw_utils.php: * Backs-up files that are targeted for patch/upgrade to a restore directory
modules/UpgradeWizard/uw_utils.php: // create restore file directory
modules/UpgradeWizard/uw_utils.php: $_SESSION['uw_restore_dir'] = clean_path($rest_dir);
modules/UpgradeWizard/uw_utils.php: // get name of current file to place in restore directory
modules/UpgradeWizard/uw_utils.php: // only copy restore files for replacements - ignore new files from patch
modules/UpgradeWizard/uw_utils.php: $desc .= $_SESSION['uw_restore_dir'] . "\n\n";
modules/UpgradeWizard/uw_utils.php: if(isset($_SESSION['uw_restore_dir']))
modules/UpgradeWizard/uw_utils.php: unset($_SESSION['uw_restore_dir']);
modules/Meetings/Meeting.php:// Meeting is used to store customer information.

Pages of this came up. When I found the culprit I nearly fell off my chair, some fluffy-kittening person at SugarCRM decided that when doing an upgrade they would make a backup unfortunately they made an interesting choice of names…


drwxrws--- 3 www-data www-data 4096 Jan 12 10:42 -restore
drwxr-xr-x 19 www-data www-data 4096 Mar 9 16:43 .
drwxr-xr-x 3 root root 4096 Jan 23 2009 ..
-rw-r--r-- 1 www-data www-data 342 Mar 9 16:43 .htaccess
-rw-r--r-- 1 www-data www-data 2535 Mar 9 16:43 HandleAjaxCall.php
-rw-r--r-- 1 www-data www-data 155 Dec 17 2008 INSTALLATION.txt
-rw-r--r-- 1 www-data www-data 35147 Dec 17 2008 LICENSE.txt
drwxr-xr-x 3 www-data www-data 4096 Oct 22 14:52 ModuleInstall
-rw-r--r-- 1 www-data www-data 5075 Dec 17 2008 SugarSecurity.php
-rw-r--r-- 1 www-data www-data 5590 Dec 17 2008 TreeData.php
-rw-r--r-- 1 www-data www-data 2488 Mar 9 16:43 WebToLeadCapture.php
drwxr-xr-x 2 www-data www-data 4096 Dec 17 2008 XTemplate
-rw-r--r-- 1 www-data www-data 2490 Dec 17 2008 acceptDecline.php
drwxr-xr-x 17 www-data www-data 4096 Mar 9 16:44 cache

That explains why it recursed too…. I didn’t think you could add flags after the search string…

Cisco Standard Answers

Developed by Tommeh and myself on #staffslug on irc.freenode.org

# 1: “You probably need a new IOS”
# 2: “It’s a feature”
# 3: “That hardware isn’t supported on your platform”
# 4: “That hardware is about to go EOL”
# 5: “That feature is not licensed on your device”
# 6 : “Insufficient memory / space”
# 7 : “Your configuration file does not meet Ciscos MAS” (Minimum Acronym Standard)
# 8 : “User licenses on ASA hardware”    (new from Tommeh 03/11/2010)
# 9 : “You installed from the Warranty CD” (added 3/8/2011)*

 

* http://www.cisco.com/warp/public/707/cisco-sr-20110803-cd.shtml

 

 

Lastminute copyrighting a colour?

I am not a lawyer but I would have thought that you could only trademark something in reference to a particular aspect of your business. The lastminute website though currently reads :

lastminute.com”, “lastminute” and the colour (block of magenta) colour are all trademarks owned by Last Minute Network Limited and/or its group companies.

Erm wtf. I know the Easy Group will hunt you down if you use easysomething and use a predominantly orange colour scheme but I don’t think even they actually claim they have trademarked orange itself.

If this sort of nonsense carries with other companies some of my more colourful trousers may have so many copyright notices on that they will start resembling a F1 car….

The Vista with many apologies to E.A.Poe

aOne night when I was weary,and the night was cold and dreary
Over the man pages of Vim an Emacs and their cryptic lore
Whilst I slumpt on the mousemat suddenly a polling,
As some client asking for an IP address at my chamber door.
‘Tis some client, I muttered tossing an IP at the door, polling at my chamber door,
only this and nothing more.

Fast forward :>>

And the client always flapping, like the users always weeping
at the network rules of gateway like portal door
and whilst the traffic is archaic and the protocol anarcic
the traffic will fail to flow without this stupid flaw
and my soul was rather lifted but saddened for the afflicted
to know that Vista does not work…

Anymore…..

PAT testing….

Well we have someone doing PAT tests in the office and I am not sure he is paying attention, sure he refused to test my heavy duty power over Ethernet adapter 🙂 (16A commando to an RJ45 :):) “er you don’t plug that in do you?!?” ) but he has amusingly signed off something he shouldn’t have 🙂

The 3 socket 16A adapter from this story : http://theinquirer.net/default.aspx?article=30533 has now got a big shiny PAT test passed sticker on it 🙂

I don’t think his heart is really in it 😛

ed: 19/7/07 Someone tipped him off about it and it is now marked failed 🙂