Author: Nicholas Rowe
-
Node Dependencies & Packages – Help!
Node Package Manager Updating Packages global: npm update -g local project: npm update -g Finding outdated packages global: npm update -g local project: npm update -g
-
iPad Media Queries
iPad Media Queries (All generations – including iPad mini) Thanks to Apple’s work in creating a consistent experience for users, and easy time for developers, all 5 different iPads (iPads 1-5 and iPad mini) can be targeted with just one CSS media query. The next few lines of code should work perfect for a responsive…
-
Quick snippet to change all instances of WordPress URL
Sometimes you are moving a websites folder structure, or sometimes you are moving a website hosts. This quick and easy sql script will allow you to update all instances of the current URL with a new URL so moving wordpress sites is painless. UPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name =…
-
WordPress SSL Offloading
Understanding what’s happening When your page is accessed over HTTPS, but the Load Balancer is performing SSL offloading and actually requesting your content on the non-SSL port 80, the webserver, PHP, or anything else for that matter, does not understand or see that it’s being accessed over https://. The fix for this, is that Load…
-
Hiding Applications from the Mac Osx Dock
I have a few applications that I run whilst I’m using my computer, these applications are literally only used upon startup and then never touched again until I need to restart my computer. What’s the point in having them in the system dock? Well, none. Usually you can do a simple right click on the…
-
Bundling plugins with WordPress themes.
First off, many people will disagree with including Plugins with your themes. Yes and generally rightly so: Automatic Updates: If the plugin is freely available from WordPress.org already, then so are automatic updates to the plugin. The original author can add features, fix bugs, and deploy them quickly. Your clients and customers then benefit from on-going development.…
-
Fonts. What and where.
Found a great little font “cheat sheet” I’m going to leave it here, else I’ll never remember where I found it!
-
Vertically aligning elements
For a long time I’ve always been using the following method of vertically aligning elements on a web page: [css].parent{ display: table; width: 100%; } .child{ display: table-cell; text-align: center; vertical-align: middle; } [/css] This method works good across all browsers and includes solid IE support down to IE7. The downfall of this particular method…
-
One thing you didn’t know about WordPress images.
By default in WordPress when you server up a .JPEG file, WordPress optimizes the image to save bandwidth and space. 90% of the time, no one will realize this as the WordPress function behind image optimization does a fantastic job at keeping it’s quality the same, unless you are using very large high quality photo…