How to Remove jQuery Migrate from WordPress 3.6

How to Remove jQuery Migrate from WordPress 3.6

April 5, 2013 by aaron
WordPress 3.6 now automatically includes jQuery Migrate on all pages. If you keep your own jQuery code up-to-date and are sure that none of your plugins are incompatible with jQuery 1.9 or jQuery 1.10.2 (the new default version in WordPress 3.6), you can just remove the script from on the front-end. Why remove jQuery Migrate? If you care about performance, there is no reason to serve an extra JS file. It’s better to keep your code, themes and plugins updated than it is to patch in support with an extra file.
Sublime Text 3: Open File’s Parent Folder in Linux

Sublime Text 3: Open File’s Parent Folder in Linux

April 12, 2013 by aaron
Here is a very quick script for Sublime Text 3 to open the current file’s parent folder in nautilus for Ubuntu. Installation is simple: edit the keybind files and save the python script below to the ~/.config/sublime-text-3/Packages/User/ folder. If you are using sublime-text-2 or a different Linux distro, you may need to change your config folder url. Obviously, you can change Nautilus to be another file manager such as Dolphin or Thunar if you prefer.
PHP Syntax Highlighting For Prism.js

PHP Syntax Highlighting For Prism.js

April 31, 2012 by aaron
I wanted to test the newly-released Prism.js since it promised clean markup and easy plugin development, but I found it was lacking a major feature for my own use: PHP Syntax Highlighting. So, letting the code be my guide, I present an add-on to Prism.js less than 10 hours after it was released into the wild publicly. Update: Instead of using the below code-blocks, you can just grab it from my forked repository.
Add Ext2,  Ext3 and Ext4 partitions to Picasa 3 under Windows.

Add Ext2, Ext3 and Ext4 partitions to Picasa 3 under Windows.

April 13, 2012 by aaron
When dual-booting Linux with Windows 7, Picasa will not recognize mounted EXT2, EXT3 or EXT4 partitions under Windows. (First of course, you need to get windows to recognise the partitions with the EXT2Fsd drivers.) To add EXT4 (etc) partitions to Picasa under windows: Mount your EXT2, EXT3 or Ext 4 partition under windows. Network share the partition. Browse your network shares and Map a drive letter to the shared partition. Add the Network Share to Picasa.
Dynamically Resizing Text with jQuery

Dynamically Resizing Text with jQuery

April 27, 2012 by aaron
Dynamically resized text ensures that when necessary, text can fit to a pixel-perfect width in any browser and any operating system. While fonts are similar enough across most browsers and OS, in headlines or other locations where overflow text would break layout, occasionally, one browser will have issues where otheres don’t. In this case, we can ensure that all browsers work at once with a little jQuery. The demo is made of three snippets: The HTML: <div id="demo"> <p>All of these lines will have different font sizes.</p> <p>This is because we have set the white-space property of the p tags to "pre."</p> <p>This means that these lines won't wrap, and because they won't ever wrap, when the page loads,</p> <p>The JS will attempt to fit the spans inside the p tags.
Executing inline JavaScript when using AJAX

Executing inline JavaScript when using AJAX

April 27, 2011 by aaron
AJAX is full of stumbling blocks. From browser support to user expectations, it can cause more problems than it solves when used at the CMS level. In AJAXed WordPress, I had to find a way to enable javascript processing on arbitrary scripts from other plugins loaded with AJAX. Typically, this is impossible because most inline JS uses the document.write function to output content. Once the page is written with the updated content, document.write is dangerous and can overwrite the entire page.

Do you have an awesome idea?

Let us know what you want to create.

Start your project