February 17, 2019 SVG as Background
When using an SVG as background with background-size: cover, the background would sometimes appear with a space on the left ...February 15, 2019 Print a trace of the call stack
In javascript you can print the call stack with something like this: function print_call_stack() { var stack = new Error().stack; ...October 22, 2018 Javascript Done Resize
Normally code in the resize event is meant to just run once when the user is done resizing. This code ...April 23, 2018 PHPUnit and PHP 7 problems
Problem I'm using PHPUnit 5.5, upgraded my PHP version to 7.2. Two problems actually occur. First there's this weird error: Fatal error: ...December 11, 2017 How to stop redirect from http:// to https:// in Chrome
Problem I've been trying like crazy to get to my local website at site.dev, but I keep getting redirected to https://site.dev ...November 14, 2017 SVG height not scaling properly on IE 10
Problem IE 10 shows a skewed svg image who's width is set to a specific value and height is auto. Solution The problem ...October 14, 2017 wpdb insert returning false
Problem When running wpdb->insert the result returns false. All the values seem to check out to be fine. Solution The problem might be ...October 12, 2017 WP Cron with Basic Authentication
Problem Wordpress' cron doesn't work when a site has basic authentication. You basically would get a 401 error. Solution Thanks to Nick Ohrn ...October 5, 2017 Where is wp_capabilities?
Problem After creating a user with a certain role I need to do a custom sql query where it only selected ...October 3, 2017 Chrome Zoom Shifts Layout
Problem: When zooming in or out on Chrome, the widths of elements increases very slightly and causes some elements to shift ...April 13, 2017 WordPress REST API schema property format: email
Problem: When setting a property type to 'email' like so: $schema = array( '$schema' => 'http://json-schema.org/schema#', 'title' => 'user', 'type' => 'object', 'properties' => array( 'email' ...February 16, 2017 WordPress Capabilities with map_meta_cap and user_has_cap
The two functions, map_meta_cap and user_has_cap allow you to change capabilities on the fly without having to add to roles in ...September 2, 2016 WordPress 4.6 crashed my site
Fatal error: Cannot redeclare the_post_thumbnail_caption() (previously declared in .... This error occurs because the_post_thumbnail_caption is a new function in WordPress 4.6. However, ...June 4, 2016 WordPress the_title filter changed in nav menus
I haven't had time to look into the exact reason or the exact version this changed, but as of at ...May 19, 2016 Relative positioning of table rows and row groups is now supported. This site may need to be updated because it may depend on this feature having no effect.
Firefox displayed this warning in the Firebug console. This warning indicates an absolutely positioned does not consider a table element relatively ...April 28, 2016 Draggable Icon in Font Awesome
This is weird. Font Awesome has a ton of fonts, but no draggable icon. Issue #816 is on github shows ...March 28, 2016 Link from Google Redirecting
After years of not having a client get hacked, I got 2 in a few weeks. One client (client A) ...January 29, 2016 Speed up WP_Query
In WordPress, when a query does not need paging and you only want a limited amount of results, like the ...January 29, 2016 Disable Responsive Images in WordPress
In WordPress 4.4 images are displayed with the srcset attribute. This attribute allows the browser to select alternative images for best viewing. ...October 26, 2015 Escape strings for use in JavaScript
When using parameters from the URL, it should always be sanitized before using it in your javascript. Using jQuery you can ...June 8, 2015 Left Sidebar Under Content
Problem Having a left sidebar move under the content in a responsive design needs a bit more thinking. You can't just ...June 1, 2015 Run WP-Cron with no visitors
Got a website with noone visits or simply a website that is private but still need WP-Cron to be run? no ...May 15, 2015 Order Non-hierarchical Custom Post Types
Non-hierarchical post types are like regular posts which normally do not have a menu_order attribute. Hierarchical post type are like ...April 20, 2015 iPad textarea not selectable
Problem The textarea on iPad could not be selected and could not have anything entered. Solution The textarea in iPad only responds to the 'touchstart' event and ...February 3, 2015 What keyboard does an HTML input bring up?
I was having trouble figuring out what input type brings up what keyboard on the iPhone and iPad. Turns out ...October 23, 2014 Line in Firefox background
Problem When scaling the FireFox and having a background image size set to 100%, the bottom of the image sometimes shows a line ...September 3, 2014 2 color horizontally expanding background
All done in css, no images. Float the background past the normal page width based on percentage. one on the left, ...August 4, 2014 Disabled Trackbacks, but still getting them
Problem I disabled trackbacks in the general WordPress settings, used the Simple Trackback Disabler plugin (because i'm too lazy to do it ...July 8, 2014 CSS iOS div lines disappear on zoom in
Problem In iOS devices sometimes safari can display an annoying line above and below div elements. Like so: Solution The solution is quite ...June 30, 2014 Pseudo Selector First Child of Class
Problem How do you apply a style to only the first element with a certain class? [css] .just-this-one { background:blue; } [/css] [html] <div class="top"> <div class="not-this-one">not this one</div> <div ...June 23, 2014 Vertically Center Anything With Dimensions
One way to easily vertically center a div is to set it to be absolute, set the width, height and ...June 20, 2014 Easy Way to Add a Class to a Menu Item in WordPress
Go to Appearance -> Menus. Open up Screen Options in the top right. Click on the CSS Classes checkbox under ...May 20, 2014 Best way to detect Retina with Javascript
Best way according to W3C standards: http://stackoverflow.com/questions/19689715/what-is-the-best-way-to-detect-retina-support-on-a-device-using-javascriptApril 29, 2014 WordPress Heartbeat API
I could not find any extensive documentation on the WordPress Heartbeat API, so I am writing here to remember what I ...April 29, 2014 edit_users capability on multisite
No matter how hard you try, if you add the edit_user capability to a user on multi-site and that user ...April 28, 2014 WordPress is Not Remembering Me
Problem All these years I've been checking the "Remember Me" checkbox when logging in every once in a while in hopes that WordPress ...April 18, 2014 Migrating Multisite to Single Site
I needed to migrate a site on a multisite installation to a single installation. This article did the trick for the most ...March 26, 2014 Bootstrap Tab linking
If you use Bootstrap (v3.x) you would see that clicking on a tab does add anything to the url so ...March 25, 2014 Javascript defaultValue
For some reason I have never needed to use the defautlValue property up until today. I was pleased to find ...March 22, 2014 Careful with supporting all versions of IE 8
Problem Internet Explorer 8 is still mildly popular and so probably needs to be accommodated for on websites. However, like different ...March 20, 2014 How does WordPress redirect mistyped URLs to the correct one?
Well, I'm not sure exactly because it is A LOT of code, but to make it stop, you can use ...January 11, 2014 Google Analytics Measurement Protocol for Subscriptions
Send Analytics Data Directly From Your Server Google Analytics Measurement Protocol is available for Google's Universal Analytics. It was released in ...December 6, 2013 Font not showing properly in IE 8
Problem I'm using a google font that works fine in the menus, but seems to have a shadow of some sort ...November 26, 2013 WordPress has its own magic quotes
Apparently WordPress has it's own magic quotes. It is not included everywhere so you need to check if the function ...November 13, 2013 Easy WordPress Localization
If you want to localize a plugin or theme or even just change some wording around, or if you are ...October 25, 2013 Environment Setup
This week I had to temporarily work on a new laptop so I had to set up my dev environment ...October 17, 2013 Change plugin text in WordPress
Using the Codestyling Localization plugin and some steps from this awesome post, replace text in WordPress or any plugin is ...October 3, 2013 Google CDN
A lot of scripts and even styles can be retrieved from google's cdn. Save yourself some time, save your server ...September 3, 2013 Additional P tags in Contact Form 7
Problem I noticed that I had paragraph (<p>) tags around some of my contact form 7 elements. I tried adding this ...August 29, 2013 Fancybox not working after second click
Problem Setting up fancybox 1.3.4 with inline content doesn't work when clicking on the link twice. Solution The problem I think is with ...August 27, 2013 Fancybox and Datepicker Error
Problem Using fancybox and datepicker I got an "a is undefined" javascript error. I added datepicker to the fancybox by using ...August 24, 2013 What is box-sizing and border-box?
Problem In the latest WordPress theme, twentythirteen, I noticed styles that had padding didn't affect the width of my box. Whenever ...August 19, 2013 template_include vs template_redirect
WordPress has a filter called 'template_include' and it also has an action called 'template_redirect'. The filter allows you to change ...August 6, 2013 WordPress 3.6 update caveats
The main problem in updating Wordpress is the version of jQuery that is used is also updated. jQuery is updated ...July 25, 2013 IE Doesn’t see padding on hover
Problem Internet Explorer 8 (I no longer even look at IE 7) seems to not be able to see the padding ...June 25, 2013 Optimize WordPress Plugins: Woocommerce
Woocommerce is the best ecommerce solution for wordpress, but it loads a hecka lot of javascript (countries) in each page ...June 25, 2013 WordPress only displays “error”
In trying to copy over a theme and partially start over I ran into an issue where Wordpress wouldn't show ...May 5, 2013 Z-Index, iFrames, and IE
Problem I'm using the Apprise jQuery plugin to show a fancy alert box on a webpage. The problem is I also ...April 15, 2013 jQuery – When to use return false or preventDefault
Ran into a great article that explains the differences between return false, preventDefault and stopPropagation. Here's a summary: return false does ...March 21, 2013 WP_Query and posts_per_page
Problem The following code does not seem to limit the posts to 3 posts. Instead uses the wordpress setting of 10 ...March 20, 2013 Space Under Image Link
Problem I had the following code like so: <div class="someborder"><a href="#"><img src="someimage.png"></a></div><div>some text</div> The class "someborder" basically made a border around the image. ...March 8, 2013 WordPress Maintenance Page
If you've updated Wordpress, you should have noticed that wordpress goes into "maintenance mode" whenever mass plugins or Wordpress itself ...February 8, 2013 Google font WOFF in Firefox
Problem In a website that gets fonts from Google's CDN, the browser window loading icon continuously runs. In Firebug you can ...February 5, 2013 Load SSH key at startup for Mac OS X
If your ssh key is not adding and you continuously have to keep doing ssh-add -l ~/.ssh/mykey then do the ...February 5, 2013 Fade in, fade out not smooth in jQuery
Problem: I had a large banner with multiple layers and animation going on. I was trying to fade out a 1000px+ ...January 31, 2013 Text with Inner Shadow
The guys on stackoverflow are just geniuses. This is one way to make beautiful text inner shadows: .depth { ...January 18, 2013 jQuery Legacy Versions
jQuery is a great javascript library that I have beeen using for a while now. The problem with using it ...December 20, 2012 WordPress Cron
A great way to take more control of your wp-cron and also slightly speed up wordpress is to disable cron ...December 18, 2012 Hardening WordPress
I'll be updating this post as I find more and better explanations to hardening wordpress. The more secure, the better. ...December 14, 2012 How to use your own template for specific times
There's a great post on how to get Wordpress to use your own template and override the default template. The basic ...December 12, 2012 jPlayer doesn’t play in IE9
Problem Using jPlayer to play video works fine in Chrome and Firefox and the iPhone, but does not play in Internet ...December 6, 2012 WP Query inconsistencies in query
Problem In Wordpress, I created a new WP_Query with a few simple args to get a custom post type. However, no ...November 27, 2012 OSCommerce admin pages show 401
Problem The OSCommerce admin pages were working fine a couple months ago. Now I go to it and it shows a ...November 20, 2012 Optimize Custom WordPress Queries
A couple things that may optimize your custom wordpress queries. First there is a parameter called 'fields' where you can ...November 19, 2012 Gray / Grey Scale images
It is now easier than ever to make an image greyscale in CSS. [prettify class="xml"] <svg xmlns="http://www.w3.org/2000/svg"> <filter id="grayscale"> <feColorMatrix type="matrix" values="0.3333 0.3333 0.3333 ...November 16, 2012 Buddypress User Ids
Buddypress has several methods to get the user ids. This post attempts to clarify the differences between these: bp_current_user_id - Exactly the ...October 9, 2012 WordPress – Change Post Counts on edit.php
Problem I wanted to change what posts were displayed to a user when they logged into wordpress and view the Posts ...September 28, 2012 Scroll to Top with jQuery
A very simple and easy solution: var container = $('div'), scrollTo = $('#row_8'); container.scrollTop( scrollTo.offset().top - container.offset().top + container.scrollTop() ); // Or ...September 24, 2012 Caching With Widgets
W3 Total Cache is a great WordPress plugin that will help your Google Page Speed score and will also speed ...September 21, 2012 CSS Height 100%
ProblemI have a fixed footer and some content with a background. The designer wants the content background to expand all ...September 19, 2012 WordPress Widget Image Field
I found a great utility plugin to help with adding a Image picker field to a widget. Basically you install ...September 19, 2012 IE and inline-block
Apparently IE 8 cannot change the display of a element to inline-block unless it natively is inline. The fix is ...September 12, 2012 Custom Post Type Templates in Plugins
Problem I made a plugin that created a custom post type, but the only way I could customize the single-customposttype.php and ...September 11, 2012 wp_insert_post post_category problem
Problem I was wp_insert_post to programmatically create a custom post type with a custom category. Using the following code did not work ...September 11, 2012 WordPress “The plugin generated xxxx characters of unexpected output during activation”
Problem I was developing a plugin for wordpress and receive a messsage: The plugin generated 496 characters of unexpected output during activation Solution I ...August 30, 2012 Insert HTML into PHP DOM object
Problem I recently had an html string that needed to be added to a DOM object. At first I had ...August 15, 2012 CSS IE Printing A Lot of Blank Pages
Problem One of the smaller pages on a wordpress site I was working on printed about 75 pages in Interent Explorer ...August 8, 2012 Contact Form 7 Multi-Step Forms
UPDATE: This plugin still works as expected for most people, but if it doesn't work for you, I have found a ...August 8, 2012 Extending Contact Form 7
Contact Form 7 is a wordpress plugin that allows users to easily put forms into wordpress pages. These forms are ...July 23, 2012 Get rid of category in wordpress url permalink
To get rid of the '/category/' in your wordpress peramlink url, download the following plugin: WP No Category BaseJuly 12, 2012 Passing parameters to setTimeout in a loop
Problem I know to pass a parameter to a setTimeout function you would use javascript's "closure" to get it to work: setTimeout(function(){alert(someParameter)}, ...July 11, 2012 Opacity in multiple browsers
A collection of opacity syntax for multiple browsers. .img_transparent_class { /* IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE ...July 10, 2012 Vertically Centering Multi-line Text
Found a great article that demonstrates vertically centering multiline text. It uses display:table and display:table-cell among some IE hacks. Found a ...June 30, 2012 CSS Width not working
Problem I am replacing a two-column table where the first column is on the left with a width about 90% and ...June 29, 2012 How to Remove CVS folders recursively in Terminal
In mac os x terminal (linux) you can navigate to the desired directory and run the following command to remove ...June 12, 2012 Cannot redeclare class require_once
Problem I'm using classes and making each class a file. when I'm including dependet classess, I use require_once to avoid multiple declarations - ...May 29, 2012 Other Languages showing as ??? in WordPress
Problem I copy-pasted some Japanese text into the Wordpress editor and it shows as ????. On another server, pasting the same ...May 25, 2012 WordPress debugging
Some useful tips for debugging wordpress will be listed here for future reference. Display All Hooks If you need to display all ...May 18, 2012 MAMP optimizations
"Optimizations" in the sense that you'll have to do less work. This website gives some great tips on saving you ...April 30, 2012 Firefox Table Row Height
Problem In Firefox and Chrome, having a table with an image of height 1 causes the row height to be 6px. ...April 21, 2012 jQuery add table row
Problem How do you add a table row using jQuery? A table has so many different elements in it that things ...April 10, 2012 Media Uploader Crunching Issue
Problem Wordpress has a bug. When uploading an image (even a small, 1KB image) the Media uploader stalls and freezes in ...April 5, 2012 WordPress Deactive Plugin
Problem I had a wordpress site where the public side was fine, but the admin side was throwing a Internal Server ...April 4, 2012 Page Speed SEO
One of the metrics for Search Engine Optimization is the time it takes to load a page. With Google's PageSpeed ...March 22, 2012 WordPress Custom Types
Below is a great example on creating custom post types and also not using the edit_posts capability. Blog: http://www.jsterup.com/dev/wordpress/custom-post_type-without-edit_post-capability Code: http://pastebin.com/FfftYVYSMarch 7, 2012 WordPress Next Gen Gallery Skinny Thumbnails in IE8
Problem The thumbnails for the next-gen gallery wordpress plugin show up very skinny. However using the nggallery widget with IE8 Webslices ...March 7, 2012 WordPress Post Status Transition
Wordpress has actions for every transition of a post or page. From new_to_publish to trash_to_draft... pretty useful and sometimes hard ...March 6, 2012 wp_nav_menu adding a class to a menu item
Problem I have a menu which uses wp_nav_menu and I need to add a class to the first item because my ...February 24, 2012 Images not showing in my browser
Problem I created a site with temporary ad images. It shows fine in chrome, firefox, safari, internet explorer (it's a miracle) ...February 9, 2012 Crosswalk Table with No Primary Key
Problem I have a "crosswalk" table like so: CREATE table `usergroup` ( `userId` int NOT NULL DEFAULT '', `groupId` int NOT NULL ...January 25, 2012 Creating a New Yii Application – Quick Reference
This post is here to remind me how to create a Web application using the Yii framework. It will ...January 20, 2012 mysqldump – Using password: NO error
Problem I need to back up a mysql database on a shared hosting server. I am using the cron job to ...January 20, 2012 iPhone Viewport and position absolute
Problem I have a div with id "stripe" that is using absolute positioning to be at the top of the page ...January 19, 2012 Debugging Websites for iPhone
Problem I created a website that looked great in IE7+, FF, Chrome, and Safari, but on the iPhone a few things ...January 12, 2012 Additional P tags in code
I recently discovered that I had additional paragraph (<p>) tags in my code and filters. It was screwing up my ...January 11, 2012 WordPress pagination
Just wanted to post this because of a great pagination solution I found for Wordpress blog posts. It is beautiful ...January 11, 2012 Extra Line Breaks in Contact Form 7
Problem: I added the Contact Form 7 wordpress plugin and created my form. I created it with no line breaks whatsoever. ...January 9, 2012 IE nasty black on jquery fade
Problem Fading a semi-transparent image in or out causes the whole image to go black before or after fadeIn and fadeOut ...January 4, 2012 Make outer div expand with inner div
Problem I have two divs, one inside the other. I make the inner div have a height of 100px. The problem ...December 30, 2011 No Shadow in Internet Explorer
Who Will Cry When You Die? Problem I need some shadows using CSS in the non-modern browsers IE 7 and IE 8. ...December 14, 2011 IE z-index
Z-Index troubles for IE. From what I got from the link below... don't use position:relative as much as possible. ...December 13, 2011 Recursivley delete a specific file in windows
Problem I had WS_FTP.log in almost all my folders. I didn't want them anymore so I needed a way to easily ...December 1, 2011 get_permalink returning wrong link in excerpt
Problem In Wordpress, the default theme, twenty_eleven, has a function called twentyeleven_continue_reading_link. This method is supposed to return the permalink for the ...November 22, 2011 Font2Web
Problem Using your own fonts with HTML 5 can be great, but different browsers require different font formats. I only had ...November 15, 2011 prettyPhoto undefined description
Problem I had "undefined" showing up in the description of my lightbox whenever I left out the "title" attribute in my ...October 19, 2011 PHP money_format for Windows
Problem: I wanted to display money using the money_format. It's so simple to use, but it doesn't work on Windows platform. Solution: The ...October 13, 2011 Get the YouTube Thumbnail Image
To get the YouTube thumbnail image, you would either use their API or a simpler method would be to use ...October 5, 2011 Javascript Files with PHP
Below is a great article on getting your PHP to print out a javascript file and including it like any ...September 18, 2011 apos in IE – no work!
There is nothing so irritating as somebody with less intelligence and more sense than we have - Don Herold Problem Microsoft Internet Explorer ...September 1, 2011 Caching Issue
Problem: Changed a javascript file, but the browser still detects it. Take out the javascript file, and the page still runs ...August 25, 2011 Chain from Cloth Experiment
I needed to make a chain that was free flowing and looked like a real dangling chain. I remembered Andrew ...August 24, 2011 Blank Images
Problem: When using Canvas and making a image appear with a grayscale when loading, the images sometimes do not display. Solution: Use "onload" ...August 20, 2011 Box-Shadow CSS3
A great explanation on box shadows: http://www.css3.info/preview/box-shadow/August 12, 2011 jQuery bgpos fix
Problem: IE was throwing a 'undefined' error when using the jquery.bgpos.js script. Here is an example of what it can do: http://snook.ca/technical/jquery-bg/ Solution: Found ...July 29, 2011 TinyMCE add Custom Characters
Problem: The Hawaiian language has the kahako but tinymce does not have these in their charmap. Solution: To add more characters to the ...July 21, 2011 Hide WordPress Admin Bar by Default
Problem: When users register for a site, they are usually just registering to comment on a page. This means they DO ...July 9, 2011 Restrict Comments on WordPress Page
Problem: A client needed just one page to have comments where the user must log in. The client wanted the rest ...July 9, 2011 IE screenSize
Problem: Apparently no one cares about a user's actual screen resolution. Usually I don't too, but in this case I do. ...July 6, 2011 Share Buttons with jQuery
Simple as pie... Adding share buttons using jQuery and CSS: http://www.webanddesigners.com/floating-share-box/July 1, 2011 Styling for Mobile Web
Developing for IE, Firefox, Safari, and Chrome is a pain! But now we have mobile devices like the iPhone and ...June 30, 2011 Slow Javascript in IE
Problem: The menu on this website: http://www.sohtanaka.com/web-design/side-navigation-tooltip-popup-bubble/ ran fine in IE. It was quick and worked fine. On my website however, ...June 27, 2011 Custom WordPress Comments
This guy explains how to customize Wordpress comments pretty well: http://devpress.com/blog/using-the-wordpress-comment-form/ Disable HTML in Comments You can try this plugin found on : ...June 15, 2011 IIS 7 PHP Write Permissions
Problem: PHP is throwing errors saying it cannot find a directory when trying to upload a file. This usually means PHP ...June 15, 2011 WordPress CMS Plugins
Wordpress has tons of features, but most clients just need to edit pages and want a content management system. I ...June 15, 2011 Preload Images with Jquery
Very impressive preloading: http://www.dynamicwp.net/articles-and-tutorials/how-to-create-preload-images-with-jquery-in-wordpress/June 15, 2011 Drop Shadow with CSS
.shadow { -moz-box-shadow: 3px 3px 4px #000; -webkit-box-shadow: 3px 3px 4px #000; box-shadow: 3px 3px 4px #000; /* For IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, ...June 14, 2011 Use the Same Arg in Sprintf
When using sprintf you can use the same argument like so: sprintf("You want the %1$s? You can't handle the %1$s!", "truth"); The ...June 12, 2011 MySQL UTF-8
Problem: I have a database that needs to accommodate all languages. Currently it is set to the default latin1_swedish_c1. I'm thinking I ...June 10, 2011 All Available Backups in MS SQL
In SQL Server 2008, to see all available db backups: select * from msdb.dbo.backupsetJune 9, 2011 Spaces Between Images
Problem: I can't center the Image or there are spaces between my images. If I delete the spacing in the code ...June 7, 2011 IE Back Bug
Apparently IE clears the form data by design. Mozilla and other browsers keep form data when the back button is ...May 31, 2011 Position Relative and Fade
These two hated with a hate Found only on the stage - Lord Byron Problem: Having a position:relative on an element causes the ...May 29, 2011 Onload Event When Back button is Pressed
Problem: I have some ajax that pulls search results similar to how google images dynamically loads more images using javascript. So ...May 28, 2011 MySQL Query Examples
MySQL examples and queries: http://www.artfulsoftware.com/infotree/queries.php This great resource showed me a simple way to pivot in MySQL. If you have the following ...May 27, 2011 Curvy Corners … Fun with IE!
I have decided to stick with love. Hate is too great a burden to bear. - Martin Luther King, Jr. Problem: I was ...May 26, 2011 BR Tag Being Ignored by Firefox
Problem: I had a couple of <br> tags in my text from a content editor and Firefox was not displaying the ...May 25, 2011 Get TinyMCE to use Absolute Paths
Problem: I was working with a customized CMS which uses the TinyMCE editor. This editor was placed in a subfolder to ...May 25, 2011 Centering w/o Absolute
Problem: I needed to add some jquery popups to my code, but the popup appeared at the very top outside the ...May 24, 2011 Absolute Positioning Inside Float or Relative
Problem: I have a gallery with varying images so I need to use float so that the images line up correctly. ...May 24, 2011 DOC TYPE or Die
All men kill the thing they hate, too, unless, of course, it kills them first. -James Thurber After countless hours of trying ...May 22, 2011 No Multiple Upload for IE
Problem: I wanted a way for users to upload multiple files to a server on a webpage. I found a great ...May 21, 2011 VARCHAR vs TEXT Performance
Ever wonder if VARCHAR(255) or TEXT is a better data type? This thread suggests VARCHAR(255) is better because it is ...May 20, 2011 Optimize MySQL using EXPLAIN
If you need to optimize or find out how a MySQL query is doing, type in "EXPLAIN" before the query ...May 17, 2011 Favicon
Problem When the simplest things don't work it can drive you nuts. I had a task to add a favicon to ...May 15, 2011 Creating an Instance of a PHP Class
Problem: This works in PHP 5.3+: $CLASS_NAME = 'TheName'; $class_instance = new $CLASS_NAME; This doesn't define('CLASS_NAME', 'TheName'); $class_instance = new CLASS_NAME; Workaround: Use the way that works. There ...May 13, 2011 No table-cell or table-row in IE CSS
Internet Explorer, How do I loathe thee? Let me count the ways. As stated on the w3schools website, [quote]The values "inline-table", "run-in", "table", ...May 13, 2011 Get All rows into One String
This is an easy way to get all rows from a SQL table into a string: select stuff(( ...May 12, 2011 Converting Google Maps v2 to v3
Problem: I was given a project where the client switched from using http to https. Everything worked fine except for their ...May 12, 2011 Resizing Background Image
Demo: Resizing Background Image Demo Problem: I've been given a project to make a background image resize with the browser window size ...
Leave a Reply