we love web standards, css, html, actionscript, php, javascript, accesibility and usability

Movies I Want To See

June 6th, 2008 Jonathan expand/collapse this entry
  • Gonzo
  • Indiana Jones and the Kingdom of the Crystal Skull
  • Taxi To The Dark Side
  • Love Guru
  • Kontroll
  • The Visitor
  • All Star Burn
  • The Happening
  • King of California

I will post some sketches later on tonight or sometime tomorrow, I’ve been swamped with work before my move.

Time Wasted

March 6th, 2008 Jonathan expand/collapse this entry

I’m currently ensuring some scripts I’m working on will be GNU/GPL compliant in hopes to avoid being sued for porting technology from a corporate identity with the mental capacity of a 2 years old. In the meantime enjoy this.

Windows vs. Mac vs. Linux

Banksy Desktop Backgrounds

January 31st, 2008 Jonathan expand/collapse this entry

Banksy Desktop 1

 

Banksy Desktop 2

 

Banksy Desktop 3

 

Banksy Desktop 4

 

Banksy Desktop 5

 

Banksy Desktop 6

 

Banksy Desktop 7

download them all or download the originals

I was really bored tonight and decided to revamp my background selections. So bored with work. So incredibly bored…

PHP Image Watermarking

January 28th, 2008 Jonathan expand/collapse this entry

I had to build this for a client rather swiftly but here is the brass tax of the matter. My client requested that every image in a section would be automatically water marked. I read a few good articles and played around a bit before creating this based on the others I had been reading about.

Criteria:

  1. Auto centered mark
  2. semi transparency
  3. works with 24-bit .png files for image watermark
  4. Must work on the fly
  5. must be able to watermark png/jpeg file types
  6. due Monday by noon :P

That being said I produced the following based on notes I took from various sites:

<?php
// example url
watermark.php?i=display.php?show=23
$imageUrl = $_GET['i'];
$watermarkUrl = “watermark.png”;
$orgimage=imagecreatefromjpeg(”{$imageUrl}”);
$watermark=imagecreatefrompng(”{$watermarkUrl}”);
$watermarkDetails=getimagesize(”{$watermarkUrl}”);
$imageDetails = getimagesize(”{$imageUrl}”);
$centerx = (($imageDetails[0] - $watermarkDetails[0])/2);
$centery = (($imageDetails[1] - $watermarkDetails[1])/2);
imagecopy($orgimage,$watermark,$centerx,$centery,0,0,
imagesx($watermark),imagesy($watermark));
header(”Content-Type: image/jpeg”);
imagejpeg($orgimage);
imagedestroy($watermark);
imagedestroy($orgimage);
exit;
?>

SWF Communication and XKCD Christmas

January 16th, 2008 Jonathan expand/collapse this entry

Over the last few months I have been playing with C++, ASP, MySQL, Perl, Javascript, AS and PHP. In that time I have learning to make the web languages communicate with one another and figured I should post something to make SWF to SWF communication as easy as possible (the way it was designed to be).

Preferred Using Globals:

first.swf
_global.BruceLee = Oaklandish;

second.swf
this.varForThisSwf = _global.BruceLee;

Loading into levels:

_level1.BruceLee = _level2.BruceLee;

Loading into movieclips:

Swf1_mc.BruceLee = swf2_mc.BruceLee;

And now for something completely different…
Family going to bed at 10 PM is so much worse than jet lag.

Del Taco’s AllNightLongBaby.com Database Fun!

December 16th, 2007 Jonathan expand/collapse this entry

I was cruising around Del Taco’s website, scouring up and down for coupons other than Free Macho Drink or Big Fat Breakfast taco (Buy 1 get 1 Free) I found a small exploit in their admin tool, you can’t write to the database but you have read access:
http://shared.sprokkit.com/admin/?task=display&object_type=slist&object_id=252 (here’s a backup link in case Del Taco or Sprokkit catches this error after appearing on Dig

Del Taco has a minisite to promote their “All Night / 24 hour a day / It’s 3am, I’m drunk and need to sober up” Fast Mex grub (allnightlongbaby.com/). where users submit how they define the difference between a “late night” and “all night”. These are their responses with the approved AND rejected submissions.

Samples:

Order 1219
Late Night Text Red Bull
All Night Text Cocaine
Approval Status Rejected
Order 1263
Late Night Text a head ache
All Night Text a butt ache
Approval Status Rejected
Order 1307
Late Night Text wondering where you left your coat
All Night Text wondering where you left your underwear
Approval Status Rejected
Order 1366
Late Night Text breaking her bed
All Night Text staining her walls
   
Approval Status Rejected
Late Night Text a donkey
All Night Text a donkey punch
Approval Status Rejected

Brought to you by someone with a love for Del Taco who went on a hunt only for Del Taco Coupons but found much more. Cheers!

UPDATE: Del Taco’s director of marketing just sent me an email, the jig is up, but they were very kind about the whole thing. Thanks for having a sense of humor!

How I Spent My Winter Vacation

December 10th, 2007 Jonathan expand/collapse this entry

Sorry for the lack of updates due to “assloads” of work, but there are good things coming. I’ve got an address book importer in PHP, flash toys for photo manipulation, some new DOM validation script, more Flash apps via PHP/mySQL/XML/Flash, an updated version of slightestBox and much more than I care to list.

Random note: I needed to install cURL on my Windows box install of XAMPP and found a handy comment on Roman’s blog that did the trick. It’s also been installed on my LAMP box as well but that was easy enough to install and required no Google research.

Navigate to XAMPP > apache > bin
Open php.ini
Find “php_curl”
Remove the “;” from “;extension=php_curl.dll”
Save and close it.
Restart Apache via Control Panel > Administrative Tools > Services
and you are done!

If this solution did not work for you, you might be using an old/incompatible version of XAMPP or someone upstairs with a big beard has it in for you. Either way you should download the newest build from http://apachefriends.org. This was tested on a WinXP using XAMPP version 1.6.4 Beta 3.

jQuery Image Swap

October 12th, 2007 Jonathan expand/collapse this entry

jQuery does a fantastic job at simplifying JavaScript. Below is an example for those of you still relying on DreamWeaver’s Image Rollover (MM Image Swap). The better alternative is using proper image replacement techniques.

$('img#nav1').hover(function() {
	$(this).attr("src","/images/headerNav/1-over.gif");
		}, function() {
	$(this).attr("src","/images/headerNav/1.gif");
});

<img src="1.gif" id="nav1" />

And there you have it! Coming up next is the SEO case study of duffynewport.com.

slightestBox (lightbox/litebox replacement)

June 2nd, 2007 Jonathan expand/collapse this entry

Sometimes I like to share artwork or photos with the readers of my site but I loathe manual entry of classes or relevance tags. So I modified the php script from Slimbox by Hardi P. This will automatically add rel=”imagebox[set]“ on image links. Now powered by jQuery (instead of moo.fx).

Why would you use jQuery instead of (insert name of your favorite script library)?
I prefer jQuery to most other script libraries as it can be used for everything you’d need. It may be a bit heavier (20k compressed) but the cross browser support is fantastic. Plus if 20k in javascript is too heavy for your site, you should probably revise your page assets (images, flash, inline scripting, etc). Enough ranting here are some examples of this plugin in action.

Text link examples:

Alex and her purposely blurred roommate | Oh many a night we play around the halls of Goathill Tavern | Lindsey at Goathill

Image link examples:

Release Notes and Download

As this was made in one afternoon and made for fun the image set is for any image links on the page (I will fix this later) In the download package just drag and drop the folder into your wordpress plugins folder and that should take care of it.

download without jQuery included
download with jQuery included

If you use it please credit me somewhere and/or leave a comment here! Please don’t directly link to my script!

UPDATE: further development has ceased on this project as since its inception there have been great advances by other developers offering a standalone and Wordpress plugin that works fantastically! Check out Lytebox (standalone) or WP-Lytebox (WordPress Plugin for version 1.5+)

« Previous Entries