Quantcast
Channel: Rommel Santor's Clog
Browsing all 18 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Dynamic Drop-Down Navigation Menu Like Wired.com’s

A friend recently asked me for a tip on how to create a dynamic pop-up menu like the one used on the main navigation bar of Wired.com. It’s a pretty typical implementation of a menu that pops open when...

View Article



Solution for Facebook Error “FB.login() called before calling FB.init().”

Just thought I’d share this in case anyone comes googling, as I could not find a satisfactory search result, but was fortunate that it was obvious enough that I realized the issue. I had a page that...

View Article

PHP Shared Session Encoding Solution

I came up against a really baffling problem the other day. I was tasked with adding a Wiki for VideoSift. Rather than just dumping MediaWiki onto the primary VideoSift web server, we wanted to keep it...

View Article

IE8 Crash – Inline-Block Scroll with DOM Append

Was struggling for many hours today to figure out what has turned out to be a really stupid bug in IE8. In the hopes I can prevent even a single person from wasting their day like I have trying to...

View Article

TH Float jQuery Plugin – Fixed THEAD and TFOOT

I recently found myself in need of an elegant, simple solution allowing users to know which column in a table contained which value once the table header has scrolled out of view. A quick google lead...

View Article


Fancy Opts jQuery Plugin – Custom Radio and Checkbox Inputs

I was in need of a quality jQuery plugin that would allow me to customize radio buttons and checkboxes. After a bit of googling, I was only able to find offerings that weren’t fully featured....

View Article

Automated PDF Manipulation

I recently found myself on a project involving PDF file organization. I’ve always known there to be countless open source PDF manipulation tools, but I’ve never really used many myself, and especially...

View Article

PHP 5.3 Dynamic Namespace Resolution

As PHP continues evolving, it just keeps getting better and better. One of the features added in version 5.3 is support for namespaces. If you’ve started trying to actually use PHP namespaces, you’ve...

View Article


PHP 5.3 Class Friendship Support

One of the useful features of OOP languages like C++ is class friendship via the friend keyword. What this allows you to do is define a class that permits other explicitly named classes to touch its...

View Article


jQuery Placeholder Fallback

One of the handy new features for <input> elements in HTML5 is the “placeholder” attribute. If you’re unfamiliar with this attribute, it allows you to pre-populate a text input with instructions...

View Article

PHP Uppercase Sentences

I’ve never really had a need to write code to uppercase only sentences in a string, but I now am dealing with large blocks of text content that is often written all uppercase by the author. So I popped...

View Article

PHP Human File Size Function

Just found myself needing to display bytes in a human readable format. There are countless examples that use a lot of complex techniques to achieve this, but I wanted a simpler solution. This is the...

View Article

Text Beautify WordPress Plugin

I’ve just submitted my first ever plugin to the WordPress repository. It’s called Text Beautify and can be found at the following URL: http://wordpress.org/extend/plugins/text-beautify/ The purpose of...

View Article


Generate UUID in PHP

I posted this last year to PHP.net and thought I’d just share it here as well. It’s a short write-up and demonstration of a PHP class you can use to generate various versions of a Universally-Unique...

View Article

Fixing the IE7 Submit Value

If you’ve ever used <BUTTON> tags in your HTML forms, you’ve probably noticed that there are a couple of problems with them in IE7 and older. For starters, clicking a BUTTON does not cause its...

View Article


AngularJS Auto-Focus Input After Router Template is Loaded in SPA

It’s been just a little while (oh, only about 3.5 years) since I last published any new posts here. Too busy. At the moment I’ve been delving head-first into some modern frameworks like AngularJS and...

View Article

AngularJS Scroll to Top for New Pages on Single-Page-App

As promised in my last post, I’m going to try to keep updating with things I learn on my trek down the long road to Angular-ville. As far as I could tell, there isn’t much info about the issue I was...

View Article


30 Second Delay with PHP and Memcache Sessions

We upgraded the servers at NeatoShop.com and Neatorama.com a couple of weeks ago, and in the past week we started noticing and receiving reports that on “some” page loads there was a 30-second delay...

View Article
Browsing all 18 articles
Browse latest View live




Latest Images