IE6/IE7 form element margin inheritance bug

This was a repost of content found on the netscapes blog.

Posted in Design, Web Development | Tagged , | 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

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 | Tagged | Leave a comment

NC’s commitment to biomanufacturing

I love this graphic
clipped from www.ncbiotech.org

Welcome to North Carolina: Home of Biomanufacturing
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

real world FIND usage

clipped from www.wagoneers.com
sudo find / -type f -name *.jpg -exec cp {} . \;
find . -type f -size +10000 -exec ls -al {} \;
find . -atime +1 -type f -exec mv {} TMP \; # mv files older then 1 day to dir TMP
find . -name “-F” -exec rm {} \; # a script error created a file called -F
find . -exec grep -i “vds admin” {} \;
find . \! -name “*.Z” -exec compress -f {} \;
find . -type f \! -name “*.Z” \! -name “.comment” -print | tee -a /tmp/list
find . -name *.ini
find . -exec chmod 775 {} \;
find . -user xuser1 -exec chown -R user2 {} \;
find . -name ebtcom*
find . -name mkbook
find . -exec grep PW0 {} \;
find . -exec grep -i “pw0” {} \;
find . -atime +6
find . -atime +6 -exec ll | more
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . -name auth*
find . -exec grep -i plotme10 {};

find files modified in the last 90 days

find . -mtime -90

find . -mtime 0 # find files modified between now and 1 day ago
# (i.e., within the past 24 hours)
find . -mtime -1 # find files modified less than 1 day ago
# (i.e., within the past 24 hours, as before)
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +1 # find files modified more than 48 hours ago

find . -mmin +5 -mmin -10 # find files modifed between
# 6 and 9 minutes ago

from:

http://content.hccfl.edu/pollock/Unix/FindCmd.htm

find . -mtime -30

Posted in Web Development | Leave a comment

Sean O’s javaScript MP3 player / jQuery Plugin

clipped from www.sean-o.com

What is it?

jMP3 (javaScript MP3 player) is an easy way make any MP3 playable directly on most any web site (to those with Flash & javaScript enabled),
using the sleek Flash Single MP3 Player
& the fantabulous jQuery.

The Del.icio.us Playtagger is OK for basic purposes, but is not very configurable, can often incur startup delays, and is just not very attractive.

jMP3 aims to fix all that!

Listen to, scrub and download this sound (conceal the filename):
 

Listen to MP3s from any website (hide download option… let’s not get the MAFIAA involved!):
 yourepitiful.mp3

Posted in Web Development | Leave a comment