DRÄ Studio

Pixel pushing and pencil shavings

Home Blog Projects Wallpapers Themes Fonts


Journal Entries for “Code”

Little snippets of HTML, CSS, PHP or ActionScript 3.0 code goodness … though a few other languages may sneak in every now and then.

Should I write HTML with single or double quotes?

Posted on Wednesday, January 2nd, 2013 under Code | No comments

By point of personal preference, I am always encouraging students to be consistent with their usage of capitalization, indentations and quotation mark usage. Code should be as clean as possible and consistency throughout is an easy way to catch small errors or discrepancies.

In some cases, however, you can actually find valid reasoning behind those personal preferences; in the case of All Caps vs. Sentence Case vs. lower case, different servers and languages perceive filenames and ...

ECMAScript and ActionScript 3.0

ECMAScript and ActionScript 3.0

Posted on Monday, January 11th, 2010 under Code | No comments

I have been working to understand more aspects of the Flash platform and how we are implementing it in our Full Sail curriculum and this XML basics article I just found was really helpful in explaining E4X syntax and how to traverse the XML node tree.

The article does mention implementing the Flash IDE for their code, but Flex Builder is a much nicer environment for building ActionScript projects. Plus, you can install a copy of ...


Hater Blockers

Posted on Saturday, October 17th, 2009 under Code Sketches | No comments

All the unnecessary hatin' that has been happening lately toward the Flash platform has been getting out of hand and definitely on my nerves ... so I have decided to start animating small little nuggets of fun into some of my drawings here on the blog. If you are not among the misinformed and propaganda-gobbling masses, please enjoy! Of course, I am also adding a nice bit of accessibility for all the iPhone users, ...


Code Nerd

Posted on Sunday, October 4th, 2009 under Code Sketches | No comments

One of my favorite Action Script-ers to follow, Felix Turner of AirTight Interactive, recently posted about all of the applications, plugins and resources he uses for Flash development. It is definitely a list worth checking out (as are many of the lists compiled by the great Smashing Magazine) and if nothing else, it gave me a reason to draw this nerdy guy, marking out all of the languages and frameworks I am either working with ...


Snow Leopard & Perl – Having 64-bit babies

Posted on Tuesday, September 29th, 2009 under Code Design | 3 comments

Sadly, one of my favorite lil' Mac tools, Validator, which is perfect for validating XML files against custom Document Type Declarations (DTDs), is currently not working with Snow Leopard, or more specifically, Snow Leopard's implementation of 64-bit Perl.

There is an easy way have 10.6 load the 32-bit version of Perl, but unfortunately, even after doing so, it looks like Validator is still having some other issues.

There is no contact information on Robert Crews' website, so ...


Flex Builder is evil about Undos

Posted on Tuesday, September 29th, 2009 under Code | No comments

While creating an example AS3 file for our Deployment of Flash Projects class just now in Flex Builder, I almost found myself in an absurd "the-files-are-missing" predicament that we hear about every now and then from our students. Turns out some of it may not be so absurd ...

While Flex Builder allows for multiple Undos in several areas of its interface, it also has a subtle way of not indicating where those Undos are taking ...


Snow Leopard needs a default timezone

Posted on Tuesday, September 22nd, 2009 under Code | 1 comment

I happend to be testing one of the current Illustrative projects locally and notice the following PHP error on my date('y') function:

Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in ...


Enabling AIR Code Completion in an AS3 Project

Posted on Saturday, September 19th, 2009 under Code Video | No comments

One of the problems Norm and I have found with our DFP students building ActionScript 3 projects in Flex Builder is that any AIR-specific code that is implemented lacks code-completion and error-resolving. A really simple solution, though, is including the Global AIR SWC in the project's Library. You can follow along with the video for a demonstration on how.


Apple's App Wall

Posted on Wednesday, June 17th, 2009 under Code Design | No comments

If you haven't already, definitely check out AppleInsider's or TechCrunch's coverage of the sweet App Wall that developers at Apple made for the recent WWDC event.

Here are all the deets:

"What you're looking at:
Over 3,000 apps - and growing - are downloaded every minute from the App Store. This is a live feed showing the activity of 20,000 popular apps currently on the store. Every time a customer downloads an app, its icon lights up (5 ...


jQuery Cheat Sheet

Posted on Friday, June 5th, 2009 under Code | No comments

Another instructor on the Web team at Full Sail (Michael Smotherman) put out this handy little jQuery Cheat Sheet that I thought you all might find helpful when working with that wonderful client-side library. He also worked up this great little MooTools add-on, for creating slide animations between areas of HTML content. Enjoy!


Coloring DTD in Coda

Posted on Wednesday, June 3rd, 2009 under Code Design Downloads | 1 comment

During the DFP lab session yesterday, Norm and my students were having issues validating their XML data files using a couple of the services we normally recommend. Namely, their XML files were showing no errors, despite adding intentional mal-formed tags and whatnot.
It just so happened that Norm was reading through one of FlashTuts newer posts about different methods for setting up a Flash Development Sandbox and discovered a great Eclipse plugin for writing and validating ...


March 19th – Whiteboard

Posted on Saturday, March 21st, 2009 under Code Sketches | No comments

I really been working hard to get back on track with the Bible reading I normally do in the morning, but have been slack on for a few months now. And even though it means that I have been needing to go to bed earlier (or actually at normal hours for most people) and wake up in the dark morning hours, it has already begun to feel beneficial.
Near the end of class on Thursday, I ...


Coloring Coda like Textmate

Posted on Thursday, February 12th, 2009 under Code Design Downloads | 1 comment

In my ongoing attempt to fall more and more in love with the “One-Window Web Development” amazingness that is Panic’s Coda app, I have reached another yet milestone. I present to you the following Syntax Modes, re-colored to match the ever-popular Textmate “Twilight” theme:ActionScriptCSSHTMLJavascriptJSP-HTMLPHP-HTMLXMLCoda Coloring Theme - "Twlight"In case you are wondering, the font I am using is the delicious Inconsolata by Raph Levien.P.S. If anyone wants to send me a few example files of ...


Adding More Coda Books – Version 1

Posted on Saturday, November 29th, 2008 under Code Design Downloads | 33 comments

After Sitepoint showed us all how easy it is to add custom references to the "Books" section of Coda (using their excellent HTML and CSS references as examples), I began my search for even more handy code guides with which to fill out that big empty gray space at Command+6.

Jon Hicks had some good stuff to say, as did the Coda Google Group, but what really got me moving was when I found Ray Brown's ...


How to implement an iPhone-specific stylesheet

Posted on Wednesday, October 8th, 2008 under Code Design Downloads | No comments

I am a little late to the game on this, but recently I was creating an iPhone screen optimized version of a site for my personal usage and thought I would share some of my findings.

The InitialThough Apple recommends through the expansive information in its iPhone Developer Connection to implement CSS3 conditional statements to effectively achieve alternate style-sheets for personal computers and for the iPhone, I wasn’t satisfied with the resulting functionality. Yes, it did ...


How to customize form elements like Apple

Posted on Wednesday, September 24th, 2008 under Code Design | No comments

or maybe an even better question: Should I customize my form elements like Apple? Let me explain.The DilemmaUp until recently, I haven’t really worked too directly with the <form> elements, but when finding that I needed to add more screen sizes for the Desktop section of my page on this site (as well as wanting to expand on the demonstrations I offered in my GWD classes), I decided to implementing drop-down listings, using ...


Scrapped Plans

Posted on Wednesday, July 23rd, 2008 under Code Design News | No comments

Secret Friend Society by DraStudio on ZooomrIn light of the recent Dra Studio re-design, I thought it might be fun to share some of my ruminations and recent thoughts about back-end content management systems and such that I saw as possible solutions for both the this site and the Illustrative. site, but for some reason or another, abandoned. I also wanted to share some of the more influential sites that I found inspiring me ...


Open in Textmate

Posted on Thursday, June 12th, 2008 under Code | No comments

Open in Textmate (uploaded by DRA Studio)Had a really fun lunch meeting with one of the WDD (Web Design & Development and) degree course directors yesterday. It is so enjoyable being able to sit around and talk about web standards, markup and CSS syntax. Yes, Courtney, that is really nerdy … but still, so much fun. For all of you coding-kids, Chris dropped a little script on me that I am finding really handy. MacroMates, the ...


Hiding via CSS

Posted on Friday, May 16th, 2008 under Code | No comments

I am in the middle of some research for my Graphic Web Design course and I am in search of an article I thought I had read a while ago.If I am remembering correctly, it outlined the pros and cons of using the two typical methods of hiding content using CSS styles.Option #1:selector { display:none; }Option #2:selector { text-indent: -9999px; }The second is a little trick I first saw Zeldman use, but I know the ...


Back to Top