I wrote a post yesterday about testing your internet connectivity using a Windows batch file, but since I cannot leave well-enough alone, I decided to keep working on it.
A few things to keep in mind…
- The line “set ESC=” ends with a non-printable ASCII ESC character (ASCII 27; Hexadecimal 0x1B) that may not be visible in your browser. Editors like Notepad++ show non-printable characters.
- If you add “hosts” you should also add “names” – hosts entry will be displayed otherwise.
- hosts index should start at zero with no sequence gaps
- The “for” loop’s “end” should match count(hosts + 1)
Continue reading Better Windows Batch (.bat) File for Testing Internet Connections
I was hardening a server this morning and decided my reference for disabling root access within Linux / cPanel / WHM may benefit someone else.
Note: Some may end up here trying to find out how to disable the WHM’s root user login. I do not believe that is possible. Continue reading Disable SSH (Secure Shell) “root” user login Linux / cPanel / WHM
I finally decided to tackle a site that had over 20GB of images in a single folder. I won’t say who created this monster (whoops), but while moving the site to a new dedicated server, I decided it was time to remedy the situation.
The first issue is with anything you want to (graphically) process folders is limited greatly by the GUI and how much data needs to be processed for each request. This is why I decided a hashed folder naming convention would be the best approach. The folder names do not matter, just so long as there is reasonable grouping and/or separation. Continue reading Organizing Images or Other Files with Hashed Folder Names
There are multiple ways to remove an application from most Macintosh operating systems. Choose the one that suits your tastes and environment. Continue reading How to Uninstall Applications on Macintosh
I have always been of the mindset, the more you add to a system to automate mundane tasks, the more you open yourself to exploits. I have had to deal with many workstations, servers, and personal computers that were previously maintained by other (less experienced) administrators that swear by the use of CCleaner, Defraggler, and Speccy (not linking intentionally, use Google if you want links to their software). I have always immediately removed them as one of my first clean-up tasks. Continue reading CCleaner… loved by many, avoided by me (with good reason)
Do you have a password field that the user wants to be able to view at the click of a button? Here is the solution I came up with to handle that need…
<input type="password" name="password" value="P@$$w0rD" placeholder="Password" id="input-password" class="form-control" required>
<span id="view-password" class="input-group-addon"><i class="fa fa-eye" aria-hidden="true"></i></span>
Found this on reddit. Reposting here for my reference an in case the original post/comment is ever removed…
Comment by LetsGo:
Open the file manager and then add the following to the URL in the address bar (and press enter to go)
Continue reading Cannot View Hidden (dot) Files in cPanel File Manager on BlueHost
Save yourself the trouble and don’t bother asking BlueHost support when you run into a problem trying to assign a domain from one BlueHost account to another. They misinformed us about more than a few aspects and the notices displayed on the page when the assignment encounters a problem is not very intuitive.
First things first: If you are using BlueHost for email and have your email program configured for IMAP, you have a bit of work ahead of you.
Continue reading How to Move a Domain Between BlueHost Accounts
Most apps for Windows 10 use an installation program such as Windows Installer to install the application in the system.
Here are two ways to remove an app from Windows 10… Continue reading How to Uninstall Apps on Windows 10
Most applications for Windows 7 use an installation program such as Windows Installer to install the application in the system.
Windows Installer ensures that installed programs can be easily removed from the system. Under no circumstances should you simply delete the program folder of the application. Doing so would leave numerous files and registry entries in the system, which could compromise operating system stability. Continue reading How to Uninstall a Program on Windows 7 (with pictures)
I have a project where the geographical coordinates for records are stored in a single field separated by a comma. While this may suit general display purposes, it eliminates the capability to search by distance.
Sample data: 34.7451738,-86.5941693
My solution was to add two new FLOAT(10, 6) fields named “lat” and “lng” to the database table. Then I ran this query to populate the two new fields with the existing “coordinates” data.
UPDATE `locations` SET `lat` = SUBSTRING_INDEX(SUBSTRING_INDEX(`coordinates`, ',', 1) , ',', -1), `lng` = SUBSTRING_INDEX(SUBSTRING_INDEX(`coordinates`, ',', 2), ',', -1);
Who doesn’t love one-liners for mass-updates in a table 😉
Module & Extension Development
Whether you need a new payment gateway, changes to existing modules or extensions, or a new extension developed from scratch… rest assured it will be developed for your version of Open Cart and guaranteed¹ to be free of programming errors.
Check out our list of commercial (and free) extensions developed for Open Cart 1.4.x, 1.5.x and 2.x. Some were created for clients upon request, while others were added simply because we noticed the need in the Open Cart community. Continue reading Modules and extensions developed for all versions of OpenCart