I have two young sons. I can’t believe how quickly their childhoods are passing before my eyes. In an attempt to savor this time I decided to begin writing down things about the boys everyday. I have been doing this consistently for one year. Some of the reasons I think I’ve been successful at this […]
htaccess Redirect with Hashtag
I had to setup a redirect the other day with a hashtag. Whenever a visitor hit a specific URL, I wanted to redirect them to another URL but I also wanted to include a hashtag to indicate where they came from when tracking the information in Google Analytics. It appears the secret is the NE […]
Git file force as binary
Goal Mark generated (concatenated and minified) JavaScript files and CSS files as binary files within Git to allow checking them in while avoiding merge conflicts (currently, I don’t check these files in). Failure I have been unable to get this to work so I thought I’d document my issue here and update this page when […]
WordPress Conditional Tags Earliest Hook
When using conditional tags in WordPress, if you hook in too early the conditional tags don’t work because WordPress hasn’t determined their values yet. The earliest hook for conditional tags Hook wp Example Hook Function to wp add_action( ‘wp’, ‘function_that_uses_is_front_page’ ); Examples of conditional tags is_home() main blog page is_front_page() front of the site is […]
Git Submodule fatal: Could not read from remote repository
Why to Setup Your Git Submodules as https:// not ssh I was pulling a public GitHub repo the other day which featured submodules. The frustrating problem is whenever I tried to init the submodules with the line git submodule update –init –recursive I got the error Git Submodule fatal: Could not read from remote repository […]
Inexpensive 27″ Monitor
I’ve been very impressed with the 27″ IPS-ZERO-G Slim Monitor WQHD 2560×1440 – Dual Link DVI, VGA from Monoprice. At just under $400, this was an excellent purchase for the money. It is disappointing that it uses a DVI connection rather than HDMI but with my Mini DisplayPort to DVI Adapter, also from Monoprice, hooking up my […]
Contribution to WordPress Core
WordPress 3.9 released yesterday and I’m excited to see my name as one of the contributors. Looking forward to contributing more to future releases. You can see more of my open source work at http://github.com/salcode
How to Ramp Up WordPress Developer
WordPress Framework Buy and learn to build with the WordPress Genesis Framework. When I started using the Genesis Framework my work improved tremendously, not only because it is a great framework but because it showed me the power of and got me using hooks and filters, which are the key to building in WordPress. I haven’t […]
Chrome Clear Redirect Cache
Chrome Caches Redirects Google Chrome caching redirects, is a known behavior and not one that is planned to change. This is a logical decision, unfortunately the lack of any obvious mechanism to clear these redirects is frustrating at times. There are generally two situations where this occurs. When the Website Returns a HTTP Status Code […]
Undo Git Commit
That is Not What I Meant to Commit It seems no matter how many times I do git status, I still managed to sneak in a completely wrong commit sometimes. Additionally, I never remember how to undo a commit so I end up googling “undo git commit” and I get way more information than I […]