Quick Intro: Page scroll position indicator gives the user a sense of where they are when scrolling through a page/article. Working Demo
I’ve been using nProgress.js for years now on AJAX triggered pages/events as it offers some really nice loading effects on dynamic pages. This gives you a YouTube style loading page indicator on static or AJAX data loads.
Quick Intro: Drag and Drop, re-ordering of HTML Table Rows. Working Demo
I love simple, easy things and love even more when those things involve programming! When needing to re-arrange table rows in an HTML table via drag & drop UI/UX, it doesn’t get much easier than jQuery UI. This basic library make this task so quick you can move on to more pressing issues. Here is the working demo. (more…)
Here is a quick little snippet on refreshing a PHP script into an HTML page element using AJAX and automating it with setInterval:
I picked up a couple Raspberry Pi units recently to mess around with and start working on some automation projects as well as learn more Python programming. These things are awesome! One setup I wanted to incorporate was connecting a PIR motion sensor into the Rpi and use it to trigger a text/SMS message to my phone.
For a recent project (PeakVibe.com) there was a need to create a tag system to link various data together. In this case it was event data with various tags associated to each event. Since each event could have many tags and each tag could have many events a many-to-many relational database schema was needed.
Here is a neat little PHP function that pulls out the most common words from a string and ranks them based on frequency used. A preset list of words in an external .txt file provide the “skip word” reference, meaning they are not counted as a common occurrence. This prevents the, a, and etc from showing up.
One of the best programming tools I discovered recently was a PHP micro-framework called SLIM. Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. I am a sucker when it comes to translating data into usable formats for consumption by great user interfaces. (more…)