Tutorials Page 134
Prevent Posts in a Category From Displaying in WordPress’ Loop
This code snippet has become a WordPress plugin! Categories are obviously a major "classification" utility for websites and blogs that use WordPress. Sometimes you want a category to represent more than just a basic post subject classification -- you may want a category of your blog...
Python Decorator for Preventing Robot Indexing
Much of my time at Mozilla has been spent catching up to the rest of the MDN team with respect to python. The new MDN backend, codenamed Kuma, is entirely Django-based and has been a joy to learn. My latest python adventures have been focused on...
Disable WordPress autop
Back when I first started this blog, and in turn using WordPress, the most annoying part of blogging was WordPress' auto-formatting. WordPress would strip out custom attributes, mess with my DIV and paragraph structure, and just generally raise havoc. It bugged me so much that since...
Full Width Textareas
Working with textarea widths can be painful if you want the textarea to span 100% width. Why painful? Because if the textarea's containing element has padding, your
"width:100%"
textarea will likely stretch outside of the parent container -- a frustrating prospect to say the least. Luckily...Mighty Deals: Win an iPhone 5!
Mighty Deals has been putting together some great deals lately but this is the best one yet! Mighty Deals is simply giving away an iPhone 5 to one lucky person, anywhere in the world! All you have to do is click the button below! Not like I...
Retrieve Headers with cURL
We all know the cURL is incredibly useful. We can retrieve remote content with curl, post to a remote URL, and perform hundreds of other tasks. One simple task that can be completed is simply retrieving basic response headers. To test the robot...
Prevent Robot Indexing with Response Headers
Every so often you have parts of your website that would be better off not indexed by search engines. API calls, search result pages, PDF documents -- all examples of responses which may not have value outside of the current user. No we all know we...
12 Incredible CodePen.IO Demos
Whenever I need to put my ego in check, I go to Chris Coyier's new CodePen.IO site. CodePen.IO is an incredible showcase of HTML, CSS, and JavaScript, displaying the talents of developers creating effects that 99% of the world's front-end developers couldn't create.
Create and Retrieve Nested Objects with jQuery
The ability to create and retrieve nested objects by objectified string path is incredibly useful. Not only do you not need to do the manual string of object/property checks to avoid "{x} is not defined" errors, but if you create your method properly, you can also...
HTML5 autofocus Attribute
HTML5 threw a whole bunch of awesomeness at us. Tasks we accomplished with JavaScript and Flash, like basic form validation,
INPUT
placeholders, client side file naming, and audio/video, can now be completed using basic HTML. Another simple functionality HTML now allows us...