Tags
adsense animation apache apple auto future date blog coding compsci css diy flash forum game hard drive internet explorer iphone itunes java javascript link linux mac mysql netbeans Photography photoshop php plugin Programming proofbuddy prototype python reliti robot robotics scratch teaching theme tips twitter usb video web design wordpress youtubePopular This Week
- Difference in Hub, Switch, Bridge, & Router
- JavaScript Error ‘expected identifier, string or number’ in IE
- How to get a screen shot from an iPhone
- Multiple cases for switch construct
- PHP: A function to return the first n words from a string
- DIY: Make Your Own Ethernet Loopback Cable
- Chrome not saving cPanel password since upgrade
- Datatables jQuery plugin – Refresh table
- How to revive a dead Western Digital MyBook
- A routine to create GUIDs in PHP
My Other Sites
Category Archives: Programming
fsockopen / fgets very slow in PHP
I’ve been using a PHP class in a project that pulls a URL and then caches the result so it doesn’t have to get loaded again until it’s considered stale. Works pretty well, but every time it went out to … Continue reading
Posting to Twitter with PHP and OAuth class
Needed a bit of an update on a font site I threw up a few years ago. Specifically I wanted to put a script together to tweet a random font each day. Should have been easy since I already had … Continue reading
How to create a very simple space game in Flash
Admit it, you’ve played an online game while at work. And odds are very good it was written in Flash / ActionScript. We’re going to cook up a very simple Flash project that might serve as the start of a … Continue reading
trac error – Unable to get database connection within 0 seconds
Spent the better part of today fighting to get trac installed on my server so I can keep track of development tasks. Finally gave up trying to get the RVSkin version installed as it seemed to be a mess and … Continue reading
Problem with SyntaxHighlighter and 2 character strings
Had a very odd, very frustrating issue come up trying to get SyntaxHighlighter working on a project I’m working on. When the code to be highlighted was only two characters long it would blank it out and the code would … Continue reading
PHP function to reset instance variables
Quick snippet to reset all public instance variables inside a PHP class back to their original values. Can’t take credit for the code though. Found it on a website somewhere and have used it in pretty much every class I … Continue reading
How to close all projects in NetBeans
File this under “duh.” I typically have several projects open in NetBeans and occasionally go through and close them all to clean up a little. Turns out if you shift click on the projects you want closed there’s a new item on … Continue reading
Just finished up a couple of WordPress plugins
Needed a break from a larger web app I’m working on and this weekend kicked out a couple of WordPress plugins that I’ve had on my idea file for a while now. The first is called rTwit and lets you … Continue reading
Posted in Programming Tagged ajax, blog, coding, javascript, link, php, plugin, Programming, twitter, wordpress Leave a comment
JavaScript version of PHP __FILE__ or __DIR__
This is one of those issues I keep coming back to. I need a way to get the path of the current JavaScript file. Something analogous to the PHP __DIR__ constant or dirname(__FILE__). Found something close on Stack Overflow. The … Continue reading
Trimming all members of an array in PHP
Needed a quick way to go through and trim leading and trailing spaces off of a string array in PHP. I’ve used array_walk to do it before, but with the addition of anonymous functions it makes it a little quicker … Continue reading