Monthly Archives: July 2009

High Tech Cowboys of the Deep Seas: The Race to Save the Cougar Ace

clipped from www.wired.com Latitude 48° 14 North. Longitude 174° 26 West. Almost midnight on the North Pacific, about 230 miles south of Alaska’s Aleutian Islands. A heavy fog blankets the sea. There’s nothing but the wind spinning eddies through the mist. Out of the darkness, a rumble grows. The water begins to vibrate. Suddenly, the prow of a massive ship splits the fog. Its steel hull rises seven stories above the water and stretches two football fields back into the night. A 15,683-horsepower engine roars through the holds, pushing 55,328 tons of steel. Crisp white capital letters — COUGAR ACE — spell the ship’s name above the ocean froth. A deep-sea car transport, its 14 decks are packed with 4,703 new Mazdas bound for North America. Estimated cargo value: $103 million.

Posted in Random, Science | Leave a comment

IE6/IE7 form element margin inheritance bug

This is a repost of content found on this blog. It is no longer available (to the best of my knowledge) so I am making it available here: Today I ran across an IE6/7 (and who knows, probably IE5 too) margin inheritance bug, involving block elements with IE’s hasLayout property triggered, that contain certain form elements. This bug appears to have very little online documentation or discussion (UPDATE: now documented by positioniseverything, see links section below). Any side margins (the blue 100px) applied to block-level hasLayout elements will be erroneously inherited (the red 100px) by text, submit, button and textarea fields contained within the block elements. Select boxes, checkboxes & radio buttons are not affected. Applying margin: 0 to the input or textarea fields has no effect. All your margin are belong to us. Here is my test page » If your design does not have a border on the block-level element, this bug has the identical visual effect as the well-known IE6 floated element/margin-doubling bug, but the real cause is not the IE6 margin-doubling bug. I found this issue having just installed IE7, still giddy over the wide array of css fixes. For a few minutes, I thought maybe the IE team had forgotten to fix the float/margin-doubling bug with blockified labels, but no.. this margin inheritance bug is an entirely different beast. My findings are a little different from the other information I found (at the time of this post, the only existing explanation of this bug I … Continue reading

Posted in Design, Web Development | Leave a comment

Parse JSON with jQuery and JavaScript

clipped from blog.reindel.com While exploring the options for traversing JSON, I discovered that there is no official W3C documentation, or even a draft. As a subset of the ECMAScript language specification, it will probably remain under the governance of ECMA International. So unlike XPath, which is a commonly accepted language for traversing XML, JSON must rely on JavaScript’s object notation. As such, some custom JavaScript will always be required (i.e. – no jQuery selectors). Some progress has been made in addressing the overarching need, but I maintain a high level of specificity in the following snippet. Getting JSON using jQuery is extremely straightforward. Just like $.ajax(), there is a $.getJSON() method, with a call to a file, and a function to pass the data through for parsing. The common $.each() method in jQuery can be used to traverse the “nodes” (keys) that you indicate. You could just as easily use your own for loop.

Posted in Web Development | Leave a comment

Occam’s razor

clipped from en.wikipedia.org Occam’s razor, also Ockham’s razor,[1] is the principle that “entities should not be multiplied unnecessarily.” It is apocryphally attributed to 14th-century English logician and Franciscan friar, William of Ockham. The principle states that the explanation of any phenomenon should make as few assumptions as possible, eliminating those that make no difference in the observable predictions of the explanatory hypothesis or theory. The principle is often expressed in Latin as the lex parsimoniae (“law of parsimony“, “law of economy“, or “law of succinctness“): entia non sunt multiplicanda praeter necessitatem, roughly translated as “entities must not be multiplied beyond necessity.” An alternative version Pluralitas non est ponenda sine necessitate translates “plurality should not be posited without necessity.”[2]

Posted in History, Etymology | Leave a comment

CSS tips and tricks

clipped from www.blogherald.com 1. Size text without using pixels body { font-size: 62.5% } p { font-size: 1.2em; line-height: 1.5em; } 2. Make your code easy to read h1 {} h1#logo { font-size: 2em; color: #000; } h2 {} h2.title { font-size: 1.8em; font-weight: normal; } 3. Separate code into blocks /* Structure */ /* Typography */ /* Links */ /* Lists, images, etc. */ 4. Stop using so many divs! 5. Style everything at once * { margin: 0; padding: 0; }

Posted in Web Development | Leave a comment

Refresh the Triad

Just set up a Refresh the Triad site. This is based on the Refresh model.

Posted in Web Development | Tagged | Leave a comment

WWW prefix in Web addresses

Also see: http://no-www.org/ Canonical names (CN) (cname, c-name) Wikipedia’s WWW  article clipped from en.wikipedia.org Many Web addresses begin with www, because of the long-standing practice of naming Internet hosts (servers) according to the services they provide. So, the host name for a web server is often www as it is ftp for an FTP server, and news or nntp for a USENET news server etc. These host names then appear as DNS subdomain names, as in “www.example.com”. The use of such subdomain names is not required by any technical or policy standard; indeed, the first ever web server was called “nxoc01.cern.ch”,[16] and many web sites exist without a www subdomain prefix, or with some other prefix such as “www2″, “secure” etc. These subdomain prefixes have no consequence; they are simply chosen names. Many web servers are set up such that both the domain by itself (e.g., example.com) and the www subdomain (e.g., www.example.com) refer to the same site, others require one form or the other, or they may map to different web sites.

Posted in Web Development | Leave a comment

Google to reveal PC operating system

clipped from www.watoday.com.au July 8, 2009 Google will on Wednesday announce plans for a personal computer operating system, the New York Times reported, in what will be another clash between the Internet search king and software giant Microsoft. Details on the system were unavailable, other than it would be based on Google’s Chrome browser. The Mountain View, California company was set to make the announcement on its blog later on Wednesday, the Times said, citing sources briefed on the plans. Chrome was launched in September but has failed to enjoy the spectacular success of Google’s search engine. The company floated its first US television advertisements in recent months for the browser, which has captured just a tiny share of a market dominated by Microsoft’s Internet Explorer. Microsoft’s new search engine Bing was launched in a bid to hit back at Google’s gains in the search market, but still lags behind its rival.

Posted in Software, Tech Opinion | Leave a comment

NC’s commitment to biomanufacturing

I love this graphic clipped from www.ncbiotech.org

Posted in Design | Leave a comment

Change Google Chrome’s User Agent String

clipped from lifehacker.com Change Google Chrome’s User Agent String: Step 1: No patching necessary. Just open up your Chrome shortcut and append the switch -user-agent=”Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)”

Posted in Web Development | Tagged | Leave a comment