Tag Archives: Work

Count occurrences both greater than, less than, or equal in MySQL

  SELECT COUNT(recycled) AS “Total”, SUM(CASE WHEN recycled = 1 THEN 1 ELSE 0 END) AS “New”, SUM(CASE WHEN recycled > 1 THEN 1 ELSE 0 END) AS “Recycled” FROM (a SELECT phone_number, count(*) AS recycled, sale_date FROM ( SELECT DISTINCT * FROM ( SELECT customers.phone_number, customers.sale_date FROM customers INNER JOIN ( SELECT customers.phone_number FROM customers WHERE sale_date BETWEEN ‘2014-05-23’ AND ‘2014-05-30’) list on customers.phone_number = list.phone_number ORDER BY phone_number DESC, sale_date DESC ) AS multiple_sales ) AS sale_dates_analysis GROUP

Fidelity Communications internet and phone service down

The internet and phone service was down in Salem MO this morning for customers of Fidelity Communications. It was quite perplexing at first, because I was working on a wireless upgrade at the Crossroads Inn & Suites hotel in Salem. During the middle of the upgrade, internet connectivity was lost. Eventually we determined that it was not our system’s issue but rather Fidelity’s. After contacting them we learned that a router went down in Kansas City and that caused widespread

Download the latest version of ESXi for Dell

Today I needed to download the latest Dell customized ISO of VMWare ESXi. It took me a moment to find the latest version, so here is a link to help you find it faster: http://www.dell.com/support/drivers/us/en/19/driverdetails?driverid=RD5JN This is VMware ESXi 5.1 Update 1 and it was released on April 29th 2013. You can burn it to a CD or mount it via an IPMI/DRAC interface if you so desire. Also, you will need a USB thumbdrive to install ESXi to as you

Determine if TRIM is supported and enabled on an SSD!

Today I was installing a Samsung 840 Pro 512GB SSD in a new server. Everything went smoothly, but I wanted to make sure that TRIM was actually working. This turned out to be slightly trickier than one might imagine! 😉 First Samsung’s SSD Magician Tool was of no use. CrystalDiskInfo reported that my SSD supported TRIM (which I already knew) but really gave no indication that Windows 7 and the SSD were working in concert to accomplish TRIMming. Nothing really

St. Louis Retail: the good, the bad and the ugly

I spent the past few days with Samantha and Hazel in St. Louis. We were visiting my longtime buddy and business partner John. We had a great trip and accomplished a lot of fun stuff (dining out, talking, playing) as well as some serious work (computer & server installation, house planning, etc.) One thing that really struck me though was how poorly St. Louis retail locations were performing. Service at Best Buy, Target, Old Navy and several other places was

Shed to office conversion!

Misc progress report below: 2011.10.18 finished cleaning out shed and removing all existing fixtures/items 2011.10.19 reinforced west wall, installed 36″x36″ window Thurs 10/20 x Seal gaps with expanding foam Fri 10/21 x roofing felt x wood supports x Install foam Sat/Sun 22/23 Taking a break for a trip to play disc-golf in Winona and visit John in STL. Stopped by Lowe’s to pickup supplies including screws and trim. Mon 24th (x) Pickup poplar wood for trim (80%) Plywood up (80%

ProFTPd MySQL configuration / Linux free space check / setting Gentoo static IP

Links and info that were useful during a recent database server move: #1 Setting (or changing) a static IP address on Gentoo: Gentoo Forums :: View topic – Switching to a static IP (within your network)http://forums.gentoo.org/viewtopic-t-747458-start-0.html #2 Find out how much disk space is left in Linux, or what the disk size is Linux Command To Find How Much Disk Space Is Being Used Show Displayhttp://www.wallpaperama.com/forums/linux-command-to-find-how-much-disk-space-is-being-used-show-display-t713.htmla simple linux shell command to show you how much space a directory is using

Fixing Warning: date() [function.date] in PHP 5.3 [solved]

If you recently upgraded to a newer version of PHP, like PHP 5.3, you may be getting some errors similar to this in your PHP scripts: Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/Chicago’ for […]  instead