I recently created a new site, but I visited the domain before the site and was redirected to a cgi default page. And as a result Chrome cached the URL as http://example.com/cgi-sys/defaultwebpage.cgi
After I got the site up and running, Chrome continued to redirect the domains to the cgi default page even though it was working properly in other browsers and an incognito Chrome window.
After a week or so of this annoyance, I searched the web for a solution and I found one on Sal Ferrarello’s site. It turns out that Chrome caches redirects and there isn’t a clear way to clear the redirect cache.
The solution that worked for me was Sal’s first idea to disable the cache from the Chrome Developer Tools. The easiest way to open the Developer Tools is Command Option I
Once the Developer Tools are open, click on the settings icon shown here:
Once the settings modal opens, check the box next to Disable Cache (while DevTools is open) option as shown here:
Now visit the page that is cached and the old redirect cache should be permanently removed.
Check out Sal’s post for more details.
A few years ago Atul Gwande wrote about the medical cost conundrum in the U.S. He follows up on that article with Overkill. This article is an in-depth look at the harm caused by unnecessary medical care.
I’ve become cautiously skeptical of most medical advice and this article reinforces much of my skepticism.
Here are a couple of interesting quotes from the article:
Doctors generally know more about the value of a given medical treatment than patients, who have little ability to determine the quality of the advice they are getting. Doctors, therefore, are in a powerful position. We can recommend care of little or no value because it enhances our incomes, because it’s our habit, or because we genuinely but incorrectly believe in it, and patients will tend to follow our recommendations.
The forces that have led to a global epidemic of overtesting, overdiagnosis, and overtreatment are easy to grasp. Doctors get paid for doing more, not less. We’re more afraid of doing too little than of doing too much. And patients often feel the same way. They’re likely to be grateful for the extra test done in the name of “being thorough”—and then for the procedure to address what’s found.
One of my favorite things about Craigslist is the Free Stuff section. For the past six months we’ve had some old glass shower doors sitting in our garage. I finally took a picture and put them on Craigslist and within a couple hour five people contacted me asking for more details. And by the next day they were gone.
Over the last couple years we’ve gotten rid of old BBQs, rusty bikes, and other odds and ends. It easier than throwing something away in a dumpster and I’m glad someone else is getting more use out of our old junk.
My brother-in-law turned me onto a WiFi hotspot device called Karma that’s being released in December. I work on the road a few weeks a year and if Karma works as advertised, I’ll be able to work in my car and I won’t have to rely on abysmally slow hotel/airport/cafe WiFi networks.
Karma previously sold a WiFi hotspot, but it didn’t run on LTE networks. Their new device is set to be shipped in December and can be pre-ordered now. If you pre-order one today you can get it for $99 instead of $149. And if you use this link you’ll get an additional $10 off (and I’ll get $10 of data credits):
– No contract
– Pay as you go data – $14/GB
– Runs over the Sprint LTE and CDMA network (view coverage)
– Your Karma connection is shared with other Karma users
– If other Karma users use your connection you get data credits
Karma kind of downplays the security risk of sharing a network connection, which concerns me a bit. Here’s a related response from one of Karma’s employees:
In order to minimize the security risk, I’ll just use a proxy or VPN whenever I’m connected to a Karma device.
I’m really looking forward to using it and I’ll add a review once I get a chance to use it.
One of the first things I noticed when looking around OS X 10.10 (Yosemite) was the Game Center icon in the Applications folder.
Game Center has been in Mac OS X since 10.8 (Mountain Lion), but the icon recently changed to match the bubbly iOS icon:
I never really use Game Center on iOS and am always annoyed with the spammy friend requests. I’ve turned off Game Center friend requests multiple times, but it always seems to get turned back on.
Once I saw Game Center in Yosemite, I immediately tried to drag the icon to the Trash. No luck:
It took a couple minutes, but I figured out how to remove it. Here’s how your remove Game Center:
Warning! Don’t do this unless you’re comfortable with the command line and have a recent backup of your hard drive. If you don’t know what
sudo means, then please don’t proceed. A simple mistake with
sudo rm could cause major issues.
– Open Terminal
– Navigate to the Applications folder
– Enter the following:
sudo rm -rf "Game Center.app"
After removing Game Center, I restarted my computer. Game Center didn’t reappear and everything is seems fine. So far. There are probably some ramifications if you try to play Mac App Store games that support Game Center, but I’m not sure. And now I’m wondering if Game Center will reappear then next time I update OS X. Regardless, it’s nice to be rid of that extraneous icon
Otherwise, I really like Yosemite. It’s really snappy (on a wiped 2012 MacBook Air).
I own a lot of Jeff Tweedy’s albums, but the only ones I really listen to are Yankee Hotel Foxtrot and the first Mermaid Avenue album.
Today I downloaded his new album Sukierae and I’m really enjoying it. Notably, Tweedy made Sukierae with his 18 year old son Spencer and the album is named after his wife (who recently went through cancer treatment). The family influences are readily apparent as the songs are heartfelt and sincere. Summer Noon and Wait for Love are the first standout songs of the album.
If you’re not familiar with Jeff Tweedy, he was the lead singer of Uncle Tupelo and since 1995 he’s been the lead singer of Wilco. Along with the rest of Wilco, he worked with Billy Bragg to create the Mermaid Avenue series of albums that contain songs created from unused Woody Guthrie lyrics.
Also, video from the making of the album Yankee Foxtrot Hotel was turned into a really great documentary, I’m Trying to Break Your Heart.
Here’s the video for Summer Noon:
I’m going through Zed Shaw’s online course Learn Python the Hard Way and I ran into a study drill that gave me some trouble.
In lesson 15 the seventh study drill is a little tricky if you’re not familiar with the command line. Instead of opening a Python file, you’re instructed to enter the commands from the Python prompt.
open(example.txt) may not work because the Python interpreter only looks in the current folder to find the file. If you don’t start Python in the same folder, you need to tell the interpreter exactly where the file is is located. Here’s one way to do this:
>>> txt = open("/Users/Kevin/Dev/example.txt")
>>> print txt.read()
If you’re not sure if you’re in the right directory, you can double check your directory. First start Python:
Then type these two commands:
>>> import os
Remember to always import the os module before calling any os commands/functions.
Your result should look like this:
I just spent about an hour searching the internet trying to figure out the keyboard shortcut to tab (or move) between the split windows within a tab in Coda 2. After looking through the Apple shortcuts, I finally found one that works:
Control + Tab
It’s so simple. But there’s a catch. To get this to work you first must open another tab before opening the Terminal window.
1. Create a new tab/document
2. Add a new split Document or Preview window
3. Add a new split Terminal window
4. Close the second Document or Preview
At this point you should be able to Control + Tab between the Document window and the Terminal window. It’s not ideal, but it works when needed.
On a related note, I’m interested to see what Panic has up their sleeve for Coda 2.5. It should be released soon.
I help a family member run a website for a small business and we recently discovered that the contact form notification emails were not being delivered. The contact submissions were in the Feedback section of the dashboard, but the notification emails were not being delivered to the email address on the form.
Domain Registrar: Namecheap
Web host: Namecheap
cPanel Version: 11.40.1 (build 13)
DNS: Namecheap hosting servers
Email: Google Apps
Contact Form: Jetpack
Contact email: Generic Gmail account
I spent a couple hours playing around with the WP-Mail-SMTP plugin, Google App settings, cPanel settings and nothing was helping.
My initial thought was that the MX record shouldn’t affect outgoing email, but I was wrong. Finally, I found a Namecheap support page which explained the problem:
..to send emails from our server, domain should be added to it and have MX records pointed to the server where this domain is hosted.
To summarize: Email generated by the server will not be sent unless the domain is added to the hosting account AND the MX records point to the same location.
- Create a subdomain (because the subdomain isn’t setup with Google Apps)
- Install the WP-Mail-SMTP plugin
- In order to force outgoing emails to use the subdomain, configure the plugin as is explained on the Namecheap support page
Once I completed the setup, the email notifications were fixed. I had a hosting account on Bluehost for years and I never ran into this issue, so I’m assuming that they don’t have the same limitation on emails. Has anyone else run into this issue with other shared hosts?
I’m really excited about WordPress 3.9, which was released today.
There are so many great additions, especially to the post editor.
This video is shown on the update page and has a great overview of all the changes:
Both Post Status and WP Tavern have great recaps.
Check it out!