Archive for March, 2006

Nine Feet

Posted on March 27, 2006 in Textual by Jeff Starr

I’m a moral in a secret box,
An earthworm, chewing through a sour meal,
A home, still within the daisy farm.
Oh, black ants, parasites, nematodes.
This trunk’s cold with its precious relics.
Jackpot’s dying for foxy diggers.
I’m an end, a joke, a passing fad.
I’ve left my mark to make a payment,
Jumped in the lake with my mom and dad.

Digital Units

Posted on March 27, 2006 in Technology by Jeff Starr

Digital units and their relative capacities1:

Byte: (100 bytes)
A single digital character.
Kilobyte: (103 bytes)
A small page of digital text.
Megabyte: (106 bytes)
A small novel, or a screen-resolution digital image.
Gigabyte: (109 bytes)
A symphony in hi-fi sound, or a pickup truck filled with paper.
Terabyte: (1012 bytes)
One-tenth of the printed collection of the Library of Congress.
Petabyte: (1015 bytes)
All of the email produced in the world in one day, or about a half-million hours worth of television.
Exabyte: (1018 bytes)
Two exabytes estimated to be all the information generated worldwide in one year; five exabytes, all the words ever spoken by human beings.
Zettabyte: (1021 bytes)
Oprah Winfrey’s annual salary.
Yottabyte: (1024 bytes)
Alot.

References

  • 1 Source: UC Berkeley, CNET News.com

Business is No Object

Posted on March 27, 2006 in Textual by Jeff Starr

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2000 Microsoft Corp.

H:\>ping localhost

Pinging mozilla.biz [127.0.0.1] with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128

Ping statistics for 127.0.0.1:
     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
     Minimum = 0ms, Maximum = 0ms, Average = 0ms

JavaScript Notes Plus

Posted on March 22, 2006 in Function by Jeff Starr

Welcome to Perishable Press! This article covers a plethora of useful JavaScript tips and tricks. For more excellent JavaScript information, check out the JavaScript tag archive. If you like what you see, I encourage you to subscribe to Perishable Press for a periodic dose of online enlightenment ;)

Nifty JavaScript Design Tricks

Clickable divs

Standard design practice dictates that the site logo or banner located at the top of the page links to the home page of the site. There are several methods for including such functionality into a design, including this JavaScript trick that transforms an entire element (e.g., any div) into a link pointing to the site root:

<div id="banner" onclick="location.href='/';" style="cursor:pointer;">
   [ content goes here ]
</div>

Hide/Validate JavaScript Code

JavaScript Comments

Commenting your scripts is an excellent and highly recommended practice. Here are two methods of commenting within a block of JavaScript.

<script type="text/javascript">

// Use two forward slashes for single line comments

/* Use this method for
multi-line comments */

</script>

Link to an External JavaScript File

This is the preferred method of including JavaScript files. It is invisible to non-JavaScript browsers, and keeps the document from breaking during validation. Use if possible.

<script src="external.js" type="text/javascript"></script>

Hiding JavaScript

Hiding JavaScript code from non-compliant browsers is rather easy, just employ the following lines of code:

<script type="text/javascript">
<!--

JavaScript goes here
JavaScript goes here

//-->
</script>

Unfortunately, JavaScript code does not validate as XHTML. Fortunately, it is possible to present your code as invisible to the validators by enveloping it with the following lines of code:

<script type="text/javascript">
<![CDATA[

JavaScript goes here
JavaScript goes here

]]>
</script>

Combining these two methods produces a deadly weapon in the hellish JavaScript battle:

<script type="text/javascript">
<!--//--><![CDATA[//><!--

JavaScript goes here
JavaScript goes here

//--><!]]>
</script>

And, an alternate method has been suggested, but sustains inconsistent consensus:

<script type="text/javascript">
/* <![CDATA[ */

JavaScript goes here
JavaScript goes here

/* ]]> */
</script>

Here is the same commenting method used for CSS:

<style type="text/css">
/* <![CDATA[ */

CSS goes here
CSS goes here

/* ]]> */
</style>

A slightly modified version of the previous method:

<style type="text/css">
/* //<![CDATA[ */
<!--

CSS goes here
CSS goes here

//-->
/* //]]> */
</style>

Here is yet another way to comment out CSS content:

<style type="text/css">
<!--/*--><![CDATA[/*><!--*/

CSS goes here
CSS goes here

/*]]>*/-->
</style>

Finally, although popular, avoiding this method has been recommended:

<script type="text/javascript">
//<![CDATA[
<!--

JavaScript goes here
JavaScript goes here

//-->
//]]>
</script>

Non-JavaScript Browser Support

Use the <noscript> tag to provide support for antiquated browsers and serve 'em some alternate content. The <noscript> tag operates according to the presence/absence of JavaScript. Consider the following:

<noscript>
 <p>This will not be displayed if JavaScript is enabled.</p>
</noscript>

Here is a specific example that would provide a user with the option to continue browsing without JavaScript:

<noscript>
 <p>
  It appears your browser doesn't support JavaScript.
  Please visit <a href="http://domain.tld/noscript.html">the no-script page</a>
  to see a non-JavaScript version of this page.
 </p>
</noscript>

Phish Phight

Posted on March 22, 2006 in Nonsense by Jeff Starr

I love reading these things..

Your online credit card account has high-risk activity status. We are contacting you to remind you that on March. 13, 2006 our Account Review Team identified some unusual activity in your account. In accordance with Chase Bank’s User Agreement and to ensure that your account has not been compromised, access to your account was limited. Your account access will remain limited until this issue has been resolved.

We encourage you to log in and perform the steps necessary to restore your account access as soon as possible. Allowing your account access to remain limited for an extended period of time may result in further limitations on the use of your account and possible account closure. If you would like close your credit card account, please contact us, as soon as possible.

Login to your limit account and restore online access: https://www.[…].com. This notification is part of the All-Electronic Program you enrolled in to receive your activity report online.

To protect the security of your account, Chase Bank, employs some of the most advanced security systems in the world and our anti-fraud teams regularly screen the Chase Bank system for unusual activity. […]

Good times.

Phish or Die

Posted on March 22, 2006 in Nonsense by Jeff Starr

Ahh, the joys of stealing from people…

Dear Customer Of The WellsFargo Internet Banking

? We Have Noticed That Your Wells Fargo Online Bank Account Needs To Be Updated, because we have made a new updates on our online banking service and we lost some information of our customer online banking accounts, we are sorry for that but you should update your Wells Fargo online bank account. To verify your online account and access your bank account, to be able to send and recive money online.

please click on the link below to continue :

simply sign on from Account Services to Active Your Account .

Have additional questions? Send us an email by clicking on “Contact Us” while you are signed on to Online Banking, or call 1-800-956-4442. We’re available 24 hours a day, 7 days a week.

Sincerely,

R. Thomas
Senior Vice President

Good times.

March 2006

Posted on March 22, 2006 in Textual, Timeline by Jeff Starr

i fight a hellish battle everyday.
always something or someone demanding attention,
time, effort. i am most often glad to help, but looking ahead
i see only miles and miles of work, stress, and struggle.
every moment is a profound gift that passes before it is realized.
i am learning how to put the needs of others ahead of my own.
the constant talking may very well drive me insane.

Welcome to Perishable Press

Posted on March 5, 2006 in Perishable by Jeff Starr

Website makeover in progress (again). Actually, this website will probably exist in a perpetually evolving state until the end of time. It is simply too much fun to tweak, build, and learn. I now consider this website a project devoted to writing articles and practicing WordPress, web design, scripting, accessibility, and SEO. So feel free to look around, read some Nonsense, and get into some Business, but don’t be surprised if the universe folds or the sky turns red during your visit…