Posts

Showing posts from 2015

Mozilla Firefox Full Download for Offline Installation

Image
Where Can I Download Old Versions of FireFox Get the Most Current Versions https://www.mozilla.org/en-US/firefox/all/ Download Past Versions https://ftp.mozilla.org/pub/firefox/releases/ A Very Stable Enterprise ESR Version https://ftp.mozilla.org/pub/firefox/releases/52.5.0esr/win64/en-US/ If you see this message:  "Gah. Your Tab Just Crashed" You may need to use the ESR version.

Magento Cookbook - Teaching Old Dogs New Tricks, Easy Hacks to Make Magento Work Right

Magento Tricks and Hacks For Developers In this posting, we will show you some cool and interesting hacks for developers.  These all require SSH access and R/W access to the Magento PHP code.  We have been developing custom templates and shopping carts and this is how we do it.    Magento pricing for standard carts is available here. 1) Dump Session Variables into your Magento 1column view (Magento 1.9 Trick) Put this into your 1-column phtml template file. ... <div class="col-main">       <pre> <?php var_dump($_SESSION); ?> </pre>       <?php echo $this->getChildHtml('global_messages') ?>       <?php echo $this->getChildHtml('content') ?> </div> ... ... <pre> <?php var_dump($_SESSION["checkout"]); ?> </pre> <hr> <pre> <?php var_dump($_SESSION["core"]["messages"]); ?> </pre> <hr> <pre...

Rename a Microsoft CRM 2011 Server and it's MSSQL Server

Step1: Edit the MS CRM Config Registry Step A: Change this registry key HKLM\SOFTWARE\MICROSOFT\MSCRM\configdb change: Data Source=VCRM1;Initial Catalog=MSCRM_CONFIG;Integrated Security=SSPI to: Data Source=VCRM2;Initial Catalog=MSCRM_CONFIG;Integrated Security=SSPI Step B: Change this other registry key HKLM\SOFTWARE\MICROSOFT\MSCRM\ServerUrl change: http://VCRM1/MSCRMServices to: http://VCRM2/MSCRMServices Step 2: Edit the MSCONFIG database ( example VCRM1 to VCRM4 ) use MSCRM_CONFIG; update dbo.Server set name='VCRM4' where NAME='VCRM1'; update dbo.ConfigSettings set HelpServerUrl='http://VCRM4/' where HelpServerUrl='http://VCRM1/'; update dbo.DeploymentProperties set NVarCharColumn='http://VCRM4.homeslice.net:80' where NVarCharColumn LIKE '%VCRM1:80'; update dbo.Organization set ConnectionString='Data Source=VCRM4;Initial Catalog=HomesliceInsurance_MSCRM;Connection Timeout=60;Integrated Security=SSPI'; update ...

Bourne Shell Cookbook

Bourne Shell Scripting Cookbook for the masses 1) Numeric for loop #! /bin/bash N = 10 for ( ( c = $N ; c > 0 ; c-- ) ) do echo "Counting $c times" done

Debricking the Western Digital Mybook Live - with a new WD Red Disk

Image
Sometimes it happens, your Western Digital Mybook Live dies and you are left with a blinking blue/green light.  Perhaps it's internal hard disk is making the famous click of death sound.  Rebuild it by purchasing a new 3TB WD Red Drive. Here's how to prepare the new disk, using Ubuntu linux.  I have copied the highlights of the famous debrick script.  Remove the disk from the WD MBL housing, and toss into a landfill or drop into your favourite ocean. Insert new disk in your favourite desktop PC's SATA port, boot with Ubuntu USB drive, and then prepare the new WD disk using these steps. You should boot from a Live CD or Live bootable USB, so that your disk is /dev/sda. Assuming that your new disk is /dev/sda parted /dev/sda --align optimal <<EOP mklabel gpt mkpart primary 528M  2576M mkpart primary 2576M 4624M mkpart primary 16M 528M mkpart primary 4624M -1M set 1 raid on set 2 raid on quit EOP sync reboot  ... mdadm --create /dev/md0 --verb...

The WMI Cookbook

WMI Filters to Select Computers to which to apply group policy: Target Win 7 32 bit machines: select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1" AND NOT OSArchitecture = "64-bit" Target Win 7 64Bit machines: select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1" AND OSArchitecture = "64-bit" Target any 32 bit OS; SELECT AddressWidth FROM Win32_Processor WHERE AddressWidth ='32' Target any 64Bit OS: SELECT AddressWidth FROM Win32_Processor WHERE AddressWidth ='64'

The processing of Group Policy failed: One way to fix it

Group Policy Replication Errors - How to Fix All of a sudden one of your workstations seems to not be able to update its own group policy objects. It appears that the workstation has failed the trust relationship. For Example C:\Users\Biff> gpupdate /force Updating Policy... User Policy update has completed successfully. Computer policy could not be updated successfully. The following errors were encountered: The processing of Group Policy failed. Windows attempted to read the file \\homeslice.net\SysVol\homeslice.net\Policies\{2B44EB00-32DD-42E3-8C83-9B6C6CA6D 6D6}\gpt.ini from a domain controller and was not successful. Group Policy settings may not be applied until this event is resolved. This issue may be transient and could be caused by one or more of the following: a) Name Resolution/Network Connectivity to the current domain controller. b) File Replication Service Latency (a file created on another domain controller  has not replicated to the current dom...

My tcpdump cookbook - favourite examples

Image
Use the tcpdump command on linux to monitor network traffic. Here are some of my favourite recipies for tcpdump success.  My little cookbook shows typical TCPDump tasks. 0) Monitor Web Traffic 1) Monitor web service traffic on an apache server. given that your server has an eth0 network port. If your web client device is at 192.168.99.10, this following command will monitor all traffic from that device that enter eth0 on port 80. tcpdump -i eth0 -vvv tcp port 80 and src 192.168.99.10 Options:  -vvv       Verbose dump of network headers                 -i           network interface selector                 -A         Display all cleartext packet details. (optional) 1)Dump SIP Traffic from eth0 E...

Suddenly it happens ... OWA error Rights management operation failed it says...

Image
Suddenly it happens, you start seeing this message in your exchange 2010 OWA When they try to open an e-mail with outlook web acces. They get the following error message Rights management operation failed . OWA error Rights management operation failed Ouch! What to do? Open exchange powershell  First step is to figure out that IRM is enabled in your exchange 2010 Next step is to figure out what your identity is: in this case the full identit is EXCHANGE2010\owa (Default Web Site) Final step is to turn off the doggone IRM!  Using the identity located in step 2.   1. Log on to the exchange server and open (as Administrator) the Exchange Management Shell (EMS) 2. Run "Get-OWAVirtualDirectory | FL" and search for IRM; you'll probably see that it's enabled. 3. Run "Set-OWAVirtualDirectory -IRMEnabled $false" or you could provide the name of the identity using the -Identity "<identity goes here>" for example: [PS] C:\Windo...

Shoretel IP Phone Mute Codes

Image
Shoretel Mute Codes Below are a list of the "Mute" Codes for Shoretel IP Phones.  These codes will perform some common Shoretel tasks without physically power cycling the phone.  On IP210 and IP230 phones, press the mute button, then enter the code, then press the # key. On the IP655 and newer phones, press the * key, then code, then # key. Note: If you have a G series shoretel phone such as a IP655 or IP480G and you see the message "no ethernet" on your screen, it usually means that you have connected the phone to a 10/100 network, and these phones do not work on 10/100 networks, only gigabit ethernet will do. To Clear Cached Values <Mute> + CLEAR (25327) # To Reset A Phone <Mute> + RESET (73728) #  RESET may also be 73738 To Enter Setup <Mute> + SETUP (73887) # View Current Configuration Settings <Mute> + INFO (4636) # Ping From Phone <Mute> + PING (7464) # Factory Reset A Phone <Mute> + RRAMOS (772667) #...

Exchange 2010 Public Folders Will Not Mount

You see this message in the Windows Application Log: (PID 7644, Thread 26) Task Mount-Database writing error when processing record of index 0. Error: System.InvalidOperationException: Couldn't mount the database that you specified. Specified database: Public Folder Database 1998117930; Error code: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionJetErrorMissingLogFile: Unable to mount database. (hr=0x80004005, ec=-528)  [Database: Public Folder Database 1998117930, Server: Exchange2010.homeslice.net]. ---> Microsoft.Exchange.Cluster.Replay.AmDbActionWrapperException: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionJetErrorMissingLogFile: Unable to mount database. (hr=0x80004005, ec=-528)  ---> Microsoft.Exchange.Data.Storage.AmOperationFailedException: An Active Manager operation failed. Error: Operation failed with messag...

MySQL Database Cookbook

-- MYSQL Cookbook. Make databases and tables, create a user, set his password -- the password shown here " PutYourFavePasswordHere " should be changed to your -- preferred password, before running these scripts. -- Instructions: -- SSH into your MYsql server or open a dos prompt on your server -- use this command to logon to mysql as the root user:   mysql -u root -p -- Copy & paste these scriptlets into the window, or save them to a file, and use -- this command to run them:  source afile.sql; -- that's all. -- -- MAKE A DATABASE FOR MAGENTO CE EDITION DROP database magento_ce; CREATE DATABASE magento_ce; USE magento_ce; GRANT ALL ON magento_ce.* TO magentosql@localhost IDENTIFIED BY ' PutYourFavePasswordHere '; FLUSH PRIVILEGES; -- ADD AN ISAM TABLE FOR STORE LOCATIONS   CREATE TABLE IF NOT EXISTS `location` ( `id` int(10) NOT NULL AUTO_INCREMENT, `lat` varchar(256) NOT NULL, `lan` varchar(256) NOT NULL, `name` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) EN...

My Silly Quotes and Stupid Jokes Collection

--------------------- Feb 15, 2015 ------------------------------- My Building Permit: Some have asked what I've been doing in retirement. Well, I applied for a building permit for a new house. It was going to be 100 ft tall and 400 ft wide, With 12 gun turrets at various heights, and windows All over the place and a loud outside entertainment sound system. It would have parking for 200 cars, and I was going to paint it Snot green with pink trim. The City Council told me “Forget it...AIN'T GONNA HAPPEN!” So, I sent in the application again, but this time I called it a "Mosque." Work starts on Monday. And here is the best part, it's going to be tax exempt! I love this country. It’s the government that scares the shit out of me. -------------------- Feb 23, 2015 -------------------------------- We had a guy walking his Magellanic penguin down the side walk in town.   When the police chief saw him, he told him not to walk the penguin there, but take i...

The Magento Cookbook and Tricks Bag

Stupid tricks that you can do using PHP in the Magento CE backend: 1) Search the Product Catalog function getProductIdsBySearch ( $searchstring , $storeId = '' ) { $ids = array (); // Code to Search Product by $searchstring and get Product IDs $product_collection = Mage :: getResourceModel ( 'catalog/product_collection' ) -> addAttributeToSelect ( '*' ) -> addAttributeToFilter ( 'name' , array ( 'like' => '%' . $searchstring . '%' )) -> load (); foreach ( $product_collection as $product ) { $ids [] = $product -> getId (); } //return array of product ids return $ids ; } Magento 1.7+ Source: StackOverflow 2) Find an image in a product 3) Automatic Color Swatches for Products with different colors, each being their own product Search the product catalog for items with the exact same name, find the image called ...

Avocent DSR 4020 Configuration Guide - Using the Serial Port like a boss

Image
How to Configure The Avocent DSR 4020 The Avocent DSR 4020 is a legacy/old skool keyboard video, mouse (KVM) server with a network management interface, and a DB9 serial port based management interface.  Unfortunately, the remote console feature requires Java JRE 1.6. (6u45)  It has 16 ports.  The bank of RJ45 jacks on the back are NOT network jacks, instead you need to use DSIQ dongles to connect them to video and USB ports on your servers.   You can also get DSIQ dongles with PS/2 connectors.  Both network and serial interfaces can be used to configure the KVM.  The serial interface is a closely guarded secret.  If you bought a used KVM from ebay, you can use Serial to reset and wipe out the password.  The Avocent manuals do not explain this port.  We will explain how to use it.  If you need assistance with your Avocent, call us, we can help .  Consider hiring a real IT pro to properly install your KVM. Check out our low IT...

MSSQL+CRM2011 FUD: The instance name must be the same as computer name

while installing MS CRM 2011 or 2013 you get this stupid message and all activtiy grinds to a halt: "The instance name must be the same as computer name" it happened because you took a virtual machine template and cloned it, and renamed it, and then started to use it immediately without any consideration of the SQL server within. You have to rename the MSSQL server. use these commands one by one: in the master database to query the binds  SELECT @@Servername to drop the invalid name  Sp_dropserver 'OLD_SERVERNAME' to add the correct machine name  Sp_addserver 'ACTUAL_MACHINE_NAME',local  These command are case sensitive, so be careful.  Finally, restart the MSSQL services, and close and reopen the MSSQL studio. This KB tidbit applies to MSSQL 2008 R2 Enterprise, Windows Server 2008, MS CRM 2011