Hi! I'm Tyler, a freelance web developer. I have a beautiful daughter and wife, with another baby on the way (due September 12, 2014)!
You can find me on twitter or Google+, and Github.
I didn’t have nearly the urge to go outside just to smoke like I thought I would. I did manage to keep pretty busy though, so I attribute the apparent “ease” to that. I really had no nicotine cravings, the patch definitely did its job.
I did have a few instances yesterday where I got this urge to go outside for a cigarette, but got past it by doing a bit of physical activity. If that urge was still there, I’d just sit down and start working to get my mind off it. The physical activity usually took care of it, though.
I’m currently on the 21mg patch, and will be using it for 4 weeks. Then I’l step down to the 14mg patch for 2 weeks, and then down to a 7mg patch for another 2 weeks.
I’ve never been this long without a cigarette before, feels good man.
Keep your customizations in place, like that driftwood up there
A functionality plugin is a WordPress plugin that is specific to your site, and contains the additional functionality you need your site to have. This is a much better option than adding features to your theme’s functions.php file, because it allows you to change themes at will, yet keep your customizations via the plugin.
WPCandy has a great write-up on creating a functionality plugin and does a great job of explaining why you’d want to use one, and also what kind of things belong in a functionality plugin. Here’s one of my favorite pieces from that WPCandy article:
To decide what belongs in a functions.php file and what belongs in a functionality plugin, think long term. Rather than thinking about how your website will look and behave this week, think about how it will look and behave five years from now. With few exceptions, I bet all of our sites will have new and upgraded themes in five years’ time.
If a feature is theme-specific, such as sidebars or menus, is should go into your functions.php file. If the feature interacts with content of any type, it belongs in a functionality plugin.
Creating The Plugin
This piece is so easy, we’re essentially creating our own WordPress plugin. First, create a new folder called functionality-plugin. Create it inside the plugins folder for your WordPress site.
You can safely use that code as a starting point for your own functionality plugin. Just make sure to save that code in the functionality-plugin folder.
The filename doesn’t matter, just make sure to save it with a .php extension. Navigate in your web browser to your WordPress Dashboard, go to Plugins, and enable your plugin just like you would any other plugin. That’s it!
There’s this plugin at WordPress.org, too, called Functionality. It’s essentially a plugin for creating a functionality plugin it looks like, but I’m really not sure. Anybody used it before? Comments are open below.
I use TWRP (TeamWin Recovery Project) on my Nexus 4. Back in the day (read: 3 years ago) I used ClockworkMod Recovery, on my Moto Defy, but have since switched to TWRP. I believe there were some licensing issues that drove a lot of people away from CWM. In any case, you’ll want to install adb and fastboot before proceeding.
After adb and fastboot have been installed, boot your Nexus 4 into fastboot mode. Just switch your Nexus 4 off, then turn it back on while holding the volume down button. Keep holding the down button until you see a menu (usually with an Android guy somewhere on the screen). Entering fastboot mode may be different for your device, check the TWRP site, they have instructions for a lot of different devices.
Now, make sure your PC sees your device in fastboot mode. In a terminal window, run fastboot devices. If nothing is printed to the terminal, something is wrong, you probably don’t have fastboot enabled. If you did see some output, you should be good to go.
Download the latest recovery .img file from the TWRP site. Current version as of this post is 184.108.40.206. To flash it using fastboot, do this in a terminal:
If you see something other than OKAY messages, something is probably wrong, and I have no idea what. If you do see the OKAY messages, you can either reboot your phone to Android or go to recovery which will take you to TWRP. With TWRP you can make a nandroid backup, flash new roms, flash new gapps, and all kinds of other things.