Code

Update on the Twitter Auto Post Bot’s Progress

This entry is part 4 of 4 in the series Auto Tweeting

If you will allow my musing, I launched a couple killer new features to my Twitter Bot the other day that I’d like to pat myself on the back about. My Twitter Bot now retweets other Twitter accounts posts! Wow Terri, that’s revolutionary (NOT!) you say? Well here’s some other details about why I think [...]

Read the full article →

Automated Tweets: Rules of the Road

This entry is part 3 of 4 in the series Auto Tweeting

I thought about just amending this to each of the posts in this series but I think it’s an important enough topic to cover on it’s own. Twitter has rules and even though everyone else doesn’t follow then you should. Now their listed rules of the road are subject to some interpretation but if you [...]

Read the full article →

Extending Code Ignitor’s Loader / View Classes

One of my Code Ignitor based projects desperately needed a iPhone view. I didn’t have many requirements but I knew I needed to find a way to do the following NOT restructure the architecture of my existing controllers or models Display the same content in a slightly different format Use the same URLs and not [...]

Read the full article →

Auto Tweeting Random Tweets

This entry is part 1 of 4 in the series Auto Tweeting

The first twitter bot I created for a site was an ugly critter. It consisted of ~30 pre-constructed tweets that the cronjob would randomly go through. Some messages were double posted, some were too similar and it was just terrible. I didn’t track numbers but I’m wiling to bet I lost a lot of REAL [...]

Read the full article →

Auto Tweeting User’s Actions on Your Site (Part 1)

This entry is part 2 of 4 in the series Auto Tweeting

Automated tweets are the worst, right? What about intelligently automated tweets with a splash of randomness, some spinning as well as name and link dropping? You with me now? Let’s take a ride through a bit of back story. Looking for Code? If you are just looking for code you are in the wrong place. [...]

Read the full article →

cURL on Local WAMP Returns Empty! (Solved)

Okay so let me first clarify this is not specific to WAMP server but may well be an issue there as well. XAMPP may also have this problem but I don’t know because I don’t use it. I installed each Apache, PHP and MySQL manually to my Windows 7 machine and had this problem. The [...]

Read the full article →

CodeIgniter Using _remap() and Named Methods

One of the most important methods I’ve found in CodeIgnitor is the _remap() method. When you use it within a controller it hiijacks all other methods and does your bidding. This is great when you have a controller Article.php and you want the 2nd value in your urls to be the ID number or a [...]

Read the full article →

Duplicate or Clone a CodeIgniter Controller, by Extending it!

I was working on a project a while back using CodeIgnitor and had a kind-of unusual case where I was developing two completely identical controllers and I needed to streamline the way I updated them. I hated adding changes line by line so I looked into using helpers, models or libraries. After some research, tearing [...]

Read the full article →

Safe Wrapper for JavaScript Debugging

Thumbnail image for Safe Wrapper for JavaScript Debugging

I’ve been doing a lot of JavaScript work lately, and while I have been a big Firebug fan/user, I never knew how easy it was to debug JavaScript using console.log() until a buddy at my previous job showed me. The problem with console.log is that if you don’t have the console open you will be [...]

Read the full article →

Fix: jQuery("ul.sf-menu").superfish is not a function

Is your file throwing you a superfish is not a function or some other jQuery(‘blah blah blah’).functionname is not a function? Surround your call to that function with the ready() function to help ensure everything is loaded before the file tries calling non existent functions.

Read the full article →