tag:blogger.com,1999:blog-87812147270912878052024-03-04T22:27:55.501-08:00Small Business Tech GuyThese are the daily tidbits from two technical guys serving small businesses. We do everything from Linux to Windows, web hosting, website design the list of languages is long (and boring).Unknownnoreply@blogger.comBlogger100125tag:blogger.com,1999:blog-8781214727091287805.post-59014369499499878042017-04-15T14:01:00.001-07:002017-04-15T14:01:27.354-07:00Setting Up nginx and php on Windows 10Got a new laptop recently and hadn't set up php and nginx in a long time went looking for a simple setup and thanks to TechTuts they had just what the doctor ordered.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-32709445031586320112017-04-07T22:26:00.001-07:002017-04-07T22:26:47.347-07:00Find All Files Modified In Last Day Excluding PathRecently had a situation where we were trying to track down which files had been modified in the last 24 hours but needed to exclude the cache directory since it builds files often and for a large site sifting through this is time consuming.
The following command will show all files, recursively, that have been modified in the last 24 hours and exclude the cache directory.
user@machine> Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-2893407237172141852016-05-01T22:50:00.001-07:002016-05-01T22:50:54.664-07:00Add YouTube Channel to Your Podcast SoftwareGo to http://podsync.net/ and past the channel URL.
If you're not sure of the channel URL perform the following:
1) Subscribe to the channel
2) Go to your channel listing in youtube.
3) Right click and select Copy link address
4) Paste into box on podsync.net and copy the link they provider to your podcast software, I use pocketcasts.com.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-45829991408535094802016-02-11T20:40:00.001-08:002016-02-11T20:40:25.986-08:00Recursive Replace Text in FilesIf you ever have a need to replace text in files (including subfolders) execute the following linux command.
In the below example we wanted to replace a copyright on a group of html and php pages.
2010 - 2015 became 2010 - 2016
user@machine> find . -type f -name "*" -exec sed -i'' -e 's/2010 - 2015/2010 - 2016/g' {} +
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-27765372172609167142015-05-17T13:47:00.001-07:002015-05-17T13:50:07.625-07:00Nokia 635 - Consumer Cellular MMS and InternetMoved to Consumer Cellular a year or so ago using Apple and Android phones. A family member has a Lumia 635 running Microsoft Phone 8.1 and was unable to send/receive group SMS messages and picture text messages.
The below settings resolved the issue on the 635, see this point for the fix for a Lumia 520.
To edit/add the settings perform the following:
1) Go to System Settings > cellular+Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8781214727091287805.post-53070207470568044352015-04-27T10:17:00.000-07:002015-05-17T13:48:43.206-07:00Nokia 520 - Consumer Cellular MMS and InternetMoved to Consumer Cellular a year or so ago using Apple and Android phones. Recently switched to a Lumia 520 running Microsoft Phone 8.1 and was unable to send/receive group SMS messages and picture text messages.
The below settings resolved the issue on my 520, see this point for the solution for a Lumia 635.
To edit/add the settings perform the following:
1) Go to System Settings > Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-65703261049329947912013-09-24T13:11:00.000-07:002013-09-24T13:11:10.982-07:00Create Archive of WebsiteIf you have a website that you're retiring but would like to copy it from your current registrar without having to sFTP/FTP the following command will copy it in Linux.
wget --recursive --domain [domain] --no-parent --page-requisites [location]Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-12755938453118984902013-09-18T22:15:00.001-07:002013-09-19T06:23:33.284-07:00Force Verizon Galaxy S3 to CDMA OnlyThere are quite a few people searching for an old app that would force the S3 to CDMA only or maybe they are wanting a way to turn off 4g on an Android phone. In my case it was necessary because I had invested big $$ in a signal booster however it only handles the 800 MHz and 1900 MHz frequencies. Well guess what 4G uses, if you're with Verizon not those two frequencies.
The old app was Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-91005435182029039532013-09-10T18:13:00.002-07:002013-09-10T18:13:49.683-07:00Nginx - Count of IP addresses in /var/log/nginx/access.logInspired by this post which supposedly works for Apache and also works for my Nginx installation. It seems however, some of the comments didn't work quite right on our Debian Lenny equipment.
Did away with grep (instead using cat) and tweaked to fix sorting not working correctly.
cat access.log | cut -d' ' -f1 | sort | uniq -c | sort -rg
If your log is big enough to scroll multiple pages when Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-67738143304208685112012-10-16T14:14:00.002-07:002012-10-16T14:18:39.610-07:00Wordpress on SteriodsWe have corporately started moving all of our clients which use a CMS from Drupal to Wordpress. There are a few reasons but we have been pleased with the functionality and performance of Wordpress on our hosted infrastructure. One of the primrary things we've done in our migration to Wordpress in buying some products which expedite our ability to take clients from concept to live site. We've doneUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-6594222166637146222012-03-06T10:51:00.003-08:002012-03-06T10:53:14.871-08:00Bulk File RenameAs usual there are command I use just often enough to forget them when the time cose. In our case we had a group of files that has the file extension in caps which was causing a problem with some 3rd party javascript so instead of modifying the .js files we change the extension to lower case (.JPG to .jpg).for file in *.JPG ; do mv $file `echo $file | sed 's/\(.*\.\)JPG/\1jpg/'` ; doneUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-53798592482776406882011-09-16T08:06:00.000-07:002011-09-16T08:15:24.113-07:00Drupal 7 Painfully Slow PerformanceWe recently (yes, finally) started testing Drupal 7 and there is only one word for its performance....SLOW! It seemed to load quickly on the home page after the installation but once we logged back in it was as if we were attempting to run the site on a x86 with 512MB of RAM from a USB RAID array.This server has a dev version of Drupal 6 that screams along without any issues but the defaul DrupalUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-79670025352730784702011-04-19T08:55:00.000-07:002011-04-19T09:02:20.626-07:00Compound Interest CalculatorHave you ever wanted to do a compound interest calculation but don't have a calculator in front of you? Here is a nifty way of doing it with Google.A more detailed description of the below formula is provided in the Wikipedia link above however here is simple example which takes US$10,000 which is compounded at 5% annual interest 2 times per year for 20 years.10000(1+(.05/2))^(2*20)=Each number Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-47630837174755880342011-03-29T11:07:00.001-07:002011-03-29T11:17:49.319-07:00Find Text Within FilesIf you're a Linux Geek who likes to spend time figuring out a problem and writing grep commands this post is not for you. If you're using Linux, specifically a Debian distro such as Ubuntu, and need a quick solution and do not have a mastery of the command line nor time to write scripts for Gnome Nautilus this is your post!Background:Started using Ubuntu again due to finally having decent supportUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-67750740445260049542011-03-21T11:52:00.000-07:002011-03-21T12:01:34.014-07:00Help - SearchFilterHost.exe is hogging CPU!Are you having the problem of SearchFilterHost.exe, SearchProtocolHost.exe and/or SearchIndexer.exe performing a HIIT workout on your CPU? We had the same problem with our Vista machines having an usually high CPU utilization and found that the following minor change helped fixed the problem.Try and disabling the .XML file extension from being indexed in the Indexing Options control panel.Answer Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-64357147061965414312010-10-22T17:54:00.000-07:002010-10-22T17:56:30.604-07:00Show all NVRAM Settings in Tomato1. Log onto the router2. Go to Tools > System3. In the textbox type nvram show 4. Click Execute button5. Should see results similar to below:DD_BOARD=Asus WL-520GU/GC Fix_WL520GUGC_clock=1 NC_DocumentRoot=/www NC_ExcludePorts=25 NC_GatewayMode=Open [snip]Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-88871545894170166832010-10-22T17:51:00.000-07:002010-10-22T17:53:58.537-07:00For NTP Update on Tomato1. Log onto the router2. Go to Tools > System3. Type ntpc in the text box. If U.S. based you can use ntpc 0.us.pool.ntp.org 4. Click Execute button5. Should see results similar to below:Trying 0.us.pool.ntp.org [72.14.177.132]: Time: Sat, 23 Oct 2010 00:53:23 +0000, no change was needed. Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-46586787169392382892010-07-06T08:54:00.000-07:002010-07-06T08:59:33.984-07:00Send MySQL Backup thru Google Apps Email using PHPThis post combines items that were gathered from a few sites. The problem we were trying to solve is emailing a MySQL database backup using PHP PEAR through Google Apps. This script could also be easily modified to send through gmail. The file includes some hints and links to assist you whenever/wherever possible. Thank you Peter for providing the starting point for this script.<?php// enhanced Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-47013082758012149612010-05-07T06:08:00.000-07:002010-05-07T06:33:17.505-07:00Installing Tomato Firmware on Asus WL520GUIf you're like me having an integrated router and NAS is a big plus. Our needs at my house are somewhat tame, we don't need the fastest NAS nor do we need a full-on Cisco Firewall/Router setup. Also being constrained by US$ (aren't we all) a low cost solution that would allow us to run custom firmware such as dd-wrt and USB storage was what I was looking for.The WL-520GU was right up our alley Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-71252593824832906842010-04-19T08:00:00.000-07:002010-04-19T08:06:49.852-07:00Drupal 6 Shortened URL to Files DirectoryWe recently had a situation where a client wanted shorter URLs since they were sending out emails and e-newsletters to clients and wanted things shortened up. Since Drupal 6 requires that uploaded files have the entire path it is obvious how that can be an eyesore for some people.Current URL:http://{domain}/sites/{domain or alias}/files/{file}.{extension}A workaround is to go to the file system Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-54596846374164043232010-04-19T05:51:00.000-07:002010-04-19T05:56:15.867-07:00This Week's Offender - LongTail VideoWe will be starting a new installment to help people understand the websites bombarding users with spam. It may not be published every week but we thought the title was catchy. For a little background it is possible to isolate a specific website because we use a service which generates a unique email address for each site we sign up for. We use this service when signing up for e-updates, Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-54930904953227467662010-01-22T08:51:00.000-08:002010-01-22T08:55:18.372-08:00Internet Speed TestIt is arguable which website offers the best speed test however I recently stumbled across this tidbit.Hi Jim,thanks for your fast response!I like both the Java and the Flash version, however the Flash version offers a nicer gui.Let me explain our requirements in a bit more detail :-)As a provider, we want to modify the results ... our customers should see a better speed then they actually have, Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-73988341021081246612009-09-18T21:32:00.001-07:002009-09-18T21:34:15.630-07:00Searching Craigslist Autos For Specific YearsHave you ever wondered how to search craigslist for a specific years of vehicles? It is possible using the pipe "|", here is an example search for a 1969-1979 ford truck.ford truck (1979|1978|1977|1976|1975|1974|1973|1972|1971|1970|1969)Go to your city and past the above search into the search bar and see what happens, you should be able to take it from here.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-53385087917642120702009-08-14T08:15:00.000-07:002009-08-14T08:17:03.754-07:00UPS HumorNot sure if this is actually true but funny either way.Never let it be said that ground crews lack a sense of humor. Here are some actual maintenance complaints submitted by UPS ' pilots (marked with a P) and the solutions recorded (marked with an S) by maintenance engineers. By the way, UPS is the only major airline that has never, ever, had an accident.P: Left inside main tire almost needs Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8781214727091287805.post-55451476260246861672009-07-17T22:35:00.000-07:002009-07-17T22:45:11.758-07:00Problem with Debian "apt-get upgrade"Recently when attempting to upgrade a server that was being neglected we ran across an issue with Debian stating.trying to overwrite `/usr/sbin/add-shell’, which is also in package passwd The solution was simple and was required on a few similar errors where the overwrite and package names changed. Again we had really neglected this server and had not run the apt-get upgrade in a long time.The Unknownnoreply@blogger.com0