Tag: webdev

Fixing HTTPS on DreamHost with Cloudflare

One solution to fix an ERR_SSL_VERSION_OR_CIPHER_MISMATCH error

HTTP vs HTTPS

HTTPS is a speed demon…

Deleting an element from an array in Dreamweaver with RegEx

You have a multidimensional array where the elements’ keys/values are each on their own line. You want to remove all elements that have the same key.

Resizing a VirtualBox Windows hard drive on a Mac

Distilled info from this OSX Daily article: “How to Resize a VirtualBox VDI or VHD File on Mac OS X“.

Responsive images – 2014 and beyond

I’ve read a couple of interesting articles about the future of images on the web. The Picture Element from HTML5 Rocks  Responsive Images in Practice on ALA There are two image problems that need solving in our multi-dimensional device landscape:… Continue Reading →

Box model headaches a thing of the past?

There ain’t no fool like an old-school-fool.

Prevent line breaks on a forward slash

Need to prevent “£/$/€1,000,000!!!” or similar breaking over two lines at the forward slashes? CSS word-break, word-wrap, white-space not working for you?

On migrating and merging WordPress (local to remote)

Few things to note on the process of bringing this site to life…

Mac OS Apache ownership fix

Because the Apache user on a Mac OS X box is called “_www” not the more Linux-common “apache”…

Building a GIT changelog with PHP

The below PHP generates a cachefile used to display a GIT changelog. (Because I didn’t have the power to get GIT installed onto the production server…) If the following simple script in your repo directory doesn’t do it you may… Continue Reading →

Dynamically create a PHP variable name

Thanks to this post “Dynamic variable names in PHP” for enlightening me on how easy this is. There’s a lot of stuff out there about PHP variable variables but if you just want to craft a variable’s name based on… Continue Reading →

Remove and ignore dreamweaver dwsync.xml files from your GIT repo

1. Remove any files already added form the working directory. For example: $ git rm -f *dwsync.xml 2. Set up (or create) your global git ignore file in your home directory: $ printf “dwsync.xmlnThumbs.dbn” >> ~/.gitignore 3. using git config… Continue Reading →

Hard coding your site URL in WordPress

I discovered this handy feature when troubleshooting a login problem for a client of mine. If you swap your WP database between your local development and production server at all regularly — and don’t fancy editing your site URL and… Continue Reading →

Nice WordPress article in .Net

Nice article about WordPress in my favourite web design and develpment magazine (issue 217  of .NET). Usual stuff but well written without either speeding or jabbering. There’s a nice overview of Custom Menus, Multisite, Custom Post Formats, Custom Post types and… Continue Reading →

PHP 101. Basic stuff: get value from URL querystring with PHP

As I’m still an idiot when it comes to media queries and mobile devices and can pass this stuff on to other folks – but needed to give myself and the interested parties a visual representation of how different sized… Continue Reading →

JavaScript redirect based on referrer

Basic stuff (as often the case not immediately findable). You want a simple script to redirect to a different page if te referrer is such and such. In the following example the two referral page options ( foo.html and bar.html… Continue Reading →

CSS 3 pseudo-classes and attribute selectors in Internet Explorer

Thanks to my mate Tony I’ve been introduced to this rather delicious (and very small) jQuery plugin that adds support for, among other things the :nth-child pseudo class. If this had been around a year ago ‘d have avoided having… Continue Reading →

Getting a page ID in WordPress

Q. Want to get something in your theme to work with data from a particular page or post – but don’t know for sure what that post’s ID is? A. Try this in your functions.php file: …then you can then… Continue Reading →

Passing a variable about in a WordPress theme

I’m used to using php variables set in included file being used in another included file if all are included in the same document. This doesn’t work in WordPress theme parts. It’s easy to overcome though… you just need to… Continue Reading →

Multiple WordPress excerpt lengths

Q. Got a theme that needs two different excerpt lengths? A. Found here: set the standard, longer excerpt as normal in the functions.php file and the override locally using this code:

Rollback a GIT commit

GIT is great, Git is good. I mostly use git to track changes (very useful to check on what I’ve  been up to when it’s late in the night!) but occasionally I need to use it to roll back to… Continue Reading →

Using GIT to manage a website…

Nice little write-up on pushing your local GIT repo to a live web site: http://toroid.org/ams/git-website-howto

Magazine framework in Javascript

treesaverjs.com/ Incredible, clever, simple looking demo: http://demo.nomadeditions.com/real-eats/index.html

MySQL Command Line stopped working in Mac OS 10.6?

Do what this guy says and add /usr/local/mysql/bin back into your paths file

© 2007-2019 qreativbox/Gabriel de Kadt — Powered by WordPress

Qreativbox Hack of BaskervilleUp ↑