November 30, 2013
Smarter Archives 2.6 is now available to download from the WordPress plugin repository. Big changes include internationalization support (with a Spanish translation included for now), the addition of a new shortcode, and the plugin’s options are now fully documented.
Now, instead of having to use a PHP call to use the template tag (dangerous if you use a runPHP-style plugin), you can just use the
smarter-archives shortcode to include it anywhere. See the usage section for what options are available to customize the output.
- Standardized i18n calls — fully translatable
- Added a POT file for translating
- Added a lang folder
- Spanish (es_ES) translation added — thanks to Andrew Kurtis of WebHostingHub
- New shortcode:
smarter-archives, see Usage for more details
- Fixed bug:
order now actually does something
See the complete changelog here.
November 12, 2013
I did it. I broke down and got an iPhone 5s.
- It is. So. Fast. Compared to my old 4
- The camera is amazing
- LTE is a godsend, and T-Mobile actually has good coverage
- I can’t live without Touch ID anymore, and I wish my MacBook Pro had it
- AirDrop is kind of useless given that it doesn’t work between iOS and OS X
- The UI translucency that wasn’t available on my 4 makes iOS 7 look way better
- Finally have flyover navigation in iOS Maps, it works great
- Seriously, it’s so fast
If you have an iPhone 4 still, you 100% should upgrade. Really.
October 13, 2013
I’ve spent some time putting together a solution for automated database backups (from MariaDB in this case) to a remote data storage. Since my web host only does backups for my site itself, I was left to find a solution on my own. My goal was to find something that was simple, efficient, and most importantly of all, automated.
Here’s a brief overview of what my backup solution consists of:
- A bash script is run weekly through
- This script first creates a gzipped database dump using
- The dump is then uploaded to Dropbox1 using Dropbox Uploader
- Once it’s uploaded to Dropbox, the local copy is deleted
The bash Script
mysqldump --user=username --password=password --host=hostname --databases database1 database2 | gzip >$_file
./dropbox_uploader.sh -q upload $_file "/DB Backups/$_file"
You can download a copy of this script here. Most of it should be self-explanatory. Here’s where you might want to change something:
- You can change the date format
- I have it set to upload to the DB Backups folder in the root of my Dropbox; you can set this to whatever you want
- Put your own database info in to the
Setting Dropbox Uploader Up
dropbox_uploader.sh is a
bash script that provides an interface to Dropbox. You can download it from the Github page, and follow the instructions to set it up. Place this file in the same directory as the script above unless you change the reference in the script.
I ended up giving the Uploader script full access to my Dropbox, as I wasn’t sure how to give it application-specific storage and yet still access a folder in the root of my Dropbox.
Once all of this is set up, the script will automatically upload a backup of your database to your Dropbox at whatever interval you set.
September 24, 2013
Spotted in a restaurant bathroom in Portland.
September 20, 2013
I’ve been using iOS 7 on my iPhone 4 for a few days now, and it’s not as bad as I thought it would be. It can get laggy, especially when opening and switching applications, but that’s to be expected. Unfortunately this lag hits a lot while I’m typing. A common problem is the keystrokes being processed lag behind my actual strokes by a fair bit. This happened in iOS 6 too, but the problem now is that it processes me hitting Send or Done before it processes the rest of my keystrokes.
This causes me to accidentally send texts cut in the middle. On iOS 6 this was never a problem so I’m not sure why this behavior changed between versions. Minor inconvenience that I have to adjust for I guess.
The camera is greatly improved. Since it’s still the same hardware, this means the changes must have been made on the software end. That just makes the changes even more impressive. The camera initiates faster, focusing is faster and seems to do a better job, but most importantly of all the camera takes photos much faster.
I don’t know if this is because they got rid of the shutter animation, but I’m sure that helps make it seem faster. I was having a rough time on iOS 6 with my camera taking forever to open, focus, and take the picture. But now it’s worlds better.
Overall verdict for iOS 7 on an iPhone 4? Bearable. But I think at this point it’s a matter of how long before I break down and get a 5S. The lack of translucency in the UI and missing out on features like Siri, turn-by-turn voice navigation and more are just one nail after the other in my iPhone 4′s coffin. God, I wish I had AirDrop and AirPlay.
At least the iOS 7 lock screen makes my background look awesome.