Fork me on GitHub

Tag: code

Tag Archives: code

Announcing the SP Source Code Highlighter plugin for WordPress

Maybe you noticed already, maybe you didn’t (I’ll wager on the latter 😉 ) that recently this site got new source code highlighting in posts. Or, should I say, that it GOT source code highlighting in posts. I had made a simple Script Source viewer a while back. Something simple and straight forward that I […]

July 7, 2009 | Code, PHP Scripting, Plugins | 1 comment

WordCamp Denver, 2009. My humble experience.

Amazingly enough I had the opportunity to speak at WordCamp Denver. As nervous as I was before hand (I very well could have puked) I came out pumped. Hopefully a few others did as well.

March 2, 2009 | PHP Scripting | 3 comments

Lipsum Plugin for WordPress, Version 2

After a while of using and not using this plugin I decided that it needed an update. The previous version would simply insert paragraphs of lipsum but now the plugin is set up to return a few helpful elements as well.

February 22, 2009 | Plugins, Web Design & Development | Comments Off on Lipsum Plugin for WordPress, Version 2

jQuery Image Slider: Improved

In a previous post I talked about a quick and dirty jQuery image slider technique that was conceived late at night and on a tight deadline. Now, with the attention of a friend (thanks John!) and a little time to work on it, the image slider has been improved! Ya. View the demo here: /stuff/slider/improved.html#2 […]

February 19, 2009 | Web Design & Development | Comments Off on jQuery Image Slider: Improved

Stupid ASCII Addition Answer Page

So, I found a neat little math trick this morning that would build numbers out of ascii characters, so I modded it to respond to user content. Sound riveting and useless? Ya, well, it is. But it kept me entertained making it. The Stupid ASCII Addition Answer Page. Update: 2009-02-20 And then there’s the analytics… […]

February 17, 2009 | PHP Scripting | Comments Off on Stupid ASCII Addition Answer Page

Javascript table row highlighting. Then and Now.

Just so that you’re sufficiently warned: This post offers no practical information. Its a "remember when? didn’t that suck?" post. I think it was 2004. Prototype.js was new and was rocking my world. But it was still just a few convenience features put on top of JavaScript. I needed to stripe table rows dynamically and […]

February 12, 2009 | Web Design & Development | Comments Off on Javascript table row highlighting. Then and Now.

30 Minute, 4 AM, jQuery image slider

Update: This script has been overhauled since this post. View the new code and demo here. As fate would have it the first night of my trip to Provo, Utah turned in to an all night work session to get a few things wrapped up so that we could release them during WordCamp Utah. As […]

September 28, 2008 | Web Design & Development | 1 comment

SU from within VIM

I can’t even count how many times I’ve edited a read only file in VIM, not even noticing the warning that pops up telling me so. Its a royal pain to type in thing twice, especially config changes. After a little looking around I found a way around it. Its not perfect and its not […]

July 28, 2008 | Computers | Comments Off on SU from within VIM

SSH Connect Script, Hax, Whatever…

I work with many different servers at work. Most tedious part is that I need to ssh in to them on a regular basis. Not all of them can I, nor do I feel should I, be adding SSH keys on to. So I finally got around to writing a little script to hold onto […]

June 26, 2008 | Computers | Comments Off on SSH Connect Script, Hax, Whatever…

WordPress Lipsum Plugin

Update 2009-02-22: This plugin has been upgraded to version 2. Read about it by clicking here. Tired of copying/pasting Lipsum placeholder text? Me too. Behold Gippy’s Lipsum Plugin. Bask in its laziness. With a simple {lipsum} in your post, page or comment you can embed 3 paragraphs of Lipsum text. It works on the creation […]

June 20, 2008 | Web Design & Development | Comments Off on WordPress Lipsum Plugin

Neglected!

Yep. Work has been time consuming. I’ve been reading more (currently reading up "World War Z"). I’ve been focusing more on photography and boning up on my lighting skills. Been programming plenty, just all at work. Life is good, but this poor, poor, excuse for a blog is dying a horrible death. He didn’t totally […]

April 23, 2008 | Life | 1 comment

It is Alive!

After a probably much non-missed stint of downtime this piece of shit blog is finally back up and running. The upgrade process took a bit more than expected. Read on for the whole boring story.

February 25, 2008 | Computers | 3 comments

Embed Flash Video in a page via JavaScript

I just finished up a new version of my script that embeds flash video in a web page to make it more diversified in what kinds of video it can handle. There are some that will not work since they’re doing some url manipulation on the ID of the flash object that make it impossible […]

January 17, 2008 | Web Design & Development | Comments Off on Embed Flash Video in a page via JavaScript

tmbundle update

I’ve been making incremental updates to my TextMate bundle updater for a while now and can finally publish the updated script. It now properly handles updating installed bundles and adds the ability to update only a single bundle and to list installed bundles. Read on for the nitty gritty.

| Computers | Comments Off on tmbundle update

File upload class – it is fixed!

After a long time of knowing there was an issue with the script I finally got around to checking it out. Its a little embarrassing to say, but, here’s the dish: I wrote all the functionality to check the file type, but forgot to actually implement it… oops. The file is correct now, so to […]

August 30, 2007 | PHP Scripting | Comments Off on File upload class – it is fixed!

XHTMLr (beta)

The name plays off the older Web 2.0 trends of funky names being copied from Flickr and constant beta status of a lot of emerging projects. The XHTMLr is the beginnings of an online companion to the Fuzzy Coconut XHTML Reference Widget. Designed to be clean and straight forward it still needs a database expansion to have […]

July 5, 2007 | Code | Comments Off on XHTMLr (beta)

Classes for file uploading in PHP

Surprisingly, I still get a lot of referrals from The Stickman for his work on a multi-file javascript upload helper on which I briefly assisted on Safari compatibility. The script adds and removes file upload form elements as requested by the user. So a form can be designed to handle as many uploads as you’d […]

December 22, 2006 | PHP Scripting | 45 comments

Convert file size denominations in PHP

Convert a file size from one measure to another. For example, take a file that is recorded as 512KB and have it converted to .5MB. Yeah, that’s an easy example, but that’s ’cause I was writing it off the top of my head. So, if you need this sort of thing, here’s a function that […]

December 20, 2006 | PHP Scripting | Comments Off on Convert file size denominations in PHP

Embed Google Video and YouTube – Now bigger and better

Well, technically smaller. This new version actually has less lines of code. See, I was trying to be a good boy when I first wrote the script. I tried to be fully DOM compliant and not use innerHTML as it is a non-standard function and has somewhat of a dubious reputation. Well. Screw it. IE […]

December 14, 2006 | Web Design & Development | Comments Off on Embed Google Video and YouTube – Now bigger and better

Javascript to embed YouTube and Google Video

NOTICE: This script has been updated and there is a new version available here. Thanks! A while back I got the urge to write this for no other reason than to make my life over at the Clubhouse a bit more convenient. Frankly, I didn’t want to have to click through to watch YouTube and […]

October 13, 2006 | Web Design & Development | 7 comments

Is this a normal coding enviroment?

Or: Editors, Editors Everywhere. Go Nuts I know I’ve done an "Editor Roundup" before, but: Doing work in a variety of languages has had me jumping editors and IDEs looking for the single perfect editor for handling PHP, HTML, CSS, JavaScript, SQL and the occasional Bash script. I recently gave up and just settled on […]

August 14, 2006 | PHP Scripting | 4 comments

mySQL Class Updated for PHP 5 part 1

I’ve updated the SQL class to use some native PHP 5, namely constructors and destructors and include some backward compatibility so PHP 4 does not freak out when it loads the class. I’ll hopefully be making this 100% PHP 5 native soon enough as I’ll actually have a native PHP 5 environment to apply it […]

March 6, 2006 | PHP Scripting | Comments Off on mySQL Class Updated for PHP 5 part 1

Alternate Syntax for PHP Control Structures

I posted a link to this in my links section but get excited about it every time I use it, so I have to post a blurb on it here just in case any PHP geeks that read this didn’t click the link. Its cool, dammit! Really, it is. No more curley braces for if, […]

November 17, 2005 | PHP Scripting | 5 comments

mySQL Class Updated

The change is minor but has significant meaning to the script. I added two functions – escapeData() and buildQuery(). The significance of adding these is mainly in the escapeData() function. Instead of encouraging the user the use addslashes before using submitted data or, worse yet, encouraging the user to rely on magic_quotes, the escapeData function […]

September 12, 2005 | PHP Scripting | 7 comments