jQuery Plugins

July 3rd, 2008

Masked Input Plugin
jQuery Coda Popup Bubbles
Color Picker

http://www.brunildo.org/test/img_center.html

Timeline Exhibit Survey

June 27th, 2008
  1. Elevator Museum Timeline
  2. Schulz & Peanuts Time Line
  3. The Metropolitan Museum of Art - Timeline of Art History
  4. Timeline of Black Inventors and inventions
  5. Victorian Age Timeline
  6. Centennial Exhibitions: Timeline
  7. * British History Timeline [DL]
  8. USC Bicentennial Timeline
  9. * Abbe museum - Wabanaki Timeline
  10. Natural History Museum Life Through Time Exhibit
  11. * St. Augustine Exhibition Timeline
  12. * IT2 expo Histor of Supercomputing exhibit 5/18/1999
  13. * New York State Museum - World Trade Center Timeline
  14. * Timelines - “I Raised My Hand to Volunteer” Exhibit
  15. The stamford Historical Society: Civil War Exhibit 2003
  16. * Public Lands Visitor Center
  17. ** R/GA -> Who we Are History
  18. * World Timeline
  19. The Story of Wrigley Gum
  20. Monuments of the Future: Designs by El Lissitzky (Getty Research Institute)
  21. Terra Incognita Productions
  22. Churchill and the Great Republic
  23. Sea Monsters: A Prehistoric Adventure Movie
  24. The Presidential Timeline
  25. Forces of Change El Nino
  26. Lewis & Clark: The National Bicentennial Exhibition
  27. *** Tempus Fugit: Time Flies
  28. *** Blinklist Timeline
  29. Requiem: The Analog Cellphone Timeline
  30. 1968 The Year That Rocked Our World

*F Museum of disABILITY History

The Price of Freedom: Americans at War ***
Antisemitism
Timeline: Mirror of the World, State Library of Victoria
* NMAH | Legendary Coins & Currency : Timeline
* PM A-D & The Composing Room: Timelines in Context

Virtual Tour
Saratoga National Historical Park - Virtual Tour

*Making Parallel Timeline | Bee Docs’ Timeline Tutorial
*Bee Doc’s Timeline 3D

Blog Article
Design Writing
Design Writing Timeline

Tools
Wibbit - SIMILE
Timeline + MediaWiki
* Easy Timeline
TimeBridge
xtimeline

Exhibit Design
Adrian Van Allen

Solaris 10 Samba Notes

June 19th, 2008

Windows XP

Disconnect all network connections

net use * /delete

Howto clear saved password

Control panel -> user account -> Advanced tab -> manage passwords

Solaris 10

/usr/sfw/bin/smbpasswd

/etc/sfw/smb.conf

/etc/sfw/private/smbpasswd
# svcadm restart network/samba

Samba:

a) Configuration file (if it does not exist, create it):

#/etc/sfw/smb.conf

b) To determine the version of Samba installed, the following command can be run:

#/usr/sfw/sbin/smbd -V

c) Create folder and adjust permissions: (e.g.)

#mkdir /disk2
chmod 777 /disk2
chmod +t /disk2
chown sys /disk2
chgrp sys /disk2

d) Sample smb.conf file:

[global]
workgroup = WORKGROUP
security = SHARE
preferred master = No
local master = No
domain master = No
ldap ssl = no
hosts allow = localhost, myPC, 192.168.1.
hosts deny = All

[utility]
comment = Utilities to re-build
path = /utility
read only = No
guest ok = Yes

[disk2]
comment = Disk 2 storage
path = /disk2
read only = No
guest ok = Yes

[disk1]
comment = Disk 1 storage
path = /disk1
read only = No
guest ok = Yes

[respaldo]
comment = Backup
path = /backup
read only = No
guest ok = Yes
browseable = No

e) To test configuration:

# /usr/sfw/bin/testparm

f) Edit /etc/services and /etc/inetd.conf

* For /etc/services, after the line which reads:

ldaps		636/udp		# LDAP protocol over TLS/SSL (was sldap)

insert the line:

swat 		901/tcp		# Samba swat
-- For /etc/inetd.conf add the following 2 lines to the end of the file:

netbios-ssn	stream	tcp	nowait	root	/usr/sfw/sbin/smbd smbd
swat	stream	tcp	nowait	root	/usr/sfw/sbin/swat swat

* NOTE: Use ‘tabs’ for spaces.

To connect to Swat, simply start your Web browser and point it at: http://localhost:901
You can edit your smb.conf file from within the web browser.

( Note: You will receive the following error message on ‘dmesg’:

Configuration file /etc/inet/inetd.conf has been modified since inetconv was last run.

"inetconv -i/etc/inet/inetd.conf" must be run to apply any changes to SMF

Just run:

# inetconv -i/etc/inet/inetd.conf

Must Have OS X Apps & Utils

March 18th, 2008
  1. Chmox - Read CHM documents on your Mac.
  2. CocoaWget - front-end for GNU wget. You can use it to download entire websites or parts of websites for offline viewing.
  3. HandBrake - Open-Source, multiplatform, multithreaded DVD to MPEG-4 converter.
  4. X-Chat Aqua - IRC chat client with an Aqua interface for MacOS X.

Installing Mac OS X Leopard 10.5 on PowerMac G4

March 14th, 2008

1. Boot to Open Firmware (Cmd-Option-O-F)

2. Set CPU Speed Above 867MHz

-- Single CPU --

dev /cpus/@0 d# 999000000 encode-int " clock-frequency" property
multi-boot
-- Multiple CPUs --

dev /cpus/@0 d# 999000000 encode-int " clock-frequency" property
dev /cpus/@1 d# 999000000 encode-int " clock-frequency" property
multi-boot

3. Select boot device with Leopard Installer and start installation.

Named Virtual Host Setup for Local Development

March 14th, 2008

Apache Configuration (httpd.conf)

ServerName 127.0.0.1:80

NameVirtualHost *

   ServerName 	local
   DocumentRoot "c:\webserv\htdocs"



   ServerName 	chm.local
   DocumentRoot "C:\webserv\htdocs\mysite"



   ServerName 	archive.local
   DocumentRoot "C:\webserv\htdocs\archive"



   ServerName 	shc.local
   DocumentRoot "C:\webserv\htdocs\shc"



   ServerName 	dev.local
   DocumentRoot "C:\webserv\htdocs\dev"



   ServerName 	n9.local
   DocumentRoot "C:\webserv\htdocs\n9"

Add the following to your hosts file. On Unix system, the hosts file is located in /etc/hosts. On Windows system like Windows XP, the hosts file is located in c:\windows\system32\drivers\etc\hosts.

Hosts file

127.0.0.1	localhost local
127.0.0.1	mysite.local
127.0.0.1	archive.local
127.0.0.1	shc.local
127.0.0.1	dev.local
127.0.0.1	n9.local

Typing http://mysite.local/ in your browser will bring up the site you want.

MySQL Notes

January 20th, 2008

 

There are two ways to delete all the data in a MySQL database table. Auto Increment Columns for MyISAM Tables

If you have an auto increment primary key column in your MyISAM table the result will be slightly different depending which delete method you use. When using the "TRUNCATE TABLE" method the auto increment seed value will be reset back to 1. When using the "DELETE FROM" method the auto increment seed will be left as it was before (eg if the auto increment field of last inserted record was 123 the next inserted record will be set to 124).

Note that this is true for MySQL 4.0; from my reading of the TRUNCATE manual page in MySQL 3.23 TRUNCATE works just like DELETE which would mean the auto increment seed is not reset. I do not currently have a 3.23 database set up to test it so cannot confirm this.

Auto Increment Columns for INNODB Tables

For INNODB tables, whether you use the "TRUNCATE TABLE" or "DELETE FROM" methods, the auto increment field will not be reset. If you inserted 5 records into a new table, then deleted all records and inserted another record, the field would have a value of 6, regardless of which method you used.

TRUNCATE TABLE tablename;

 

This will delete all data in the table very quickly. In MySQL the table is actually dropped and recreated, hence the speed of the query. The number of deleted rows for MyISAM tables returned is zero; for INNODB it returns the actual number deleted.

DELETE FROM tablename; This also deletes all the data in the table, but is not as quick as using the "TRUNCATE TABLE" method. In MySQL 4.0 the number of rows deleted is returned; in MySQL 3.23

Solaris 10 Notes

January 20th, 2008

After Adding New Hardware

# touch /reconfigure
# shutdown -i 6

Disabling Sendmail

Persistent Across Boot, Patching, and Upgrade
# svcadm disable sendmail

Temporary Disable Sendmail
# svcadmin -t disable sendmail

Remove Sendmail
# pkgrm SUNWsndmu
# pkgrm SUNWsndmr

FS Web Administration Console

https://system-name:6789 	ZFS Web Administration Console

Start ZFS Administration Console
# /usr/sbin/smcwebserver start

Start ZFS Administration Console Automatically When System Boots
# /usr/sbin/smcwebserver enable

Samba:

a) Configuration file (if it does not exist, create it):
#/etc/sfw/smb.conf

b) To determine the version of Samba installed, the following command can be run:
#/usr/sfw/sbin/smbd -V

c) Create folder and adjust permissions: (e.g.)
#mkdir /disk2
chmod 777 /disk2
chmod +t /disk2
chown sys /disk2
chgrp sys /disk2

d) Sample smb.conf file:

[global]
workgroup = WORKGROUP
security = SHARE
preferred master = No
local master = No
domain master = No
ldap ssl = no
hosts allow = localhost, myPC, 192.168.1.
hosts deny = All

[utility]
comment = Utilities to re-build
path = /utility
read only = No
guest ok = Yes

[disk2]
comment = Disk 2 storage
path = /disk2
read only = No
guest ok = Yes

[disk1]
comment = Disk 1 storage
path = /disk1
read only = No
guest ok = Yes

[respaldo]
comment = Backup
path = /backup
read only = No
guest ok = Yes
browseable = No

e) To test configuration:
# /usr/sfw/bin/testparm

f) Edit /etc/services and /etc/inetd.conf

* For /etc/services, after the line which reads:

ldaps 636/udp # LDAP protocol over TLS/SSL (was sldap)

insert the line:
swat 901/tcp # Samba swat

* For /etc/inetd.conf add the following 2 lines to the end of the file:

Solaris 10:
netbios-ssn stream tcp nowait root /usr/sfw/sbin/smbd smbd
swat stream tcp nowait root /usr/sfw/sbin/swat swat

* NOTE: Use ‘tabs’ for spaces.

To connect to Swat, simply start your Web browser and point it at: http://localhost:901
You can edit your smb.conf file from within the web browser.

( Note: You will receive the following error message on ‘dmesg’:

Configuration file /etc/inet/inetd.conf has been modified since inetconv was last run.
“inetconv -i/etc/inet/inetd.conf” must be run to apply any changes to SMF

Just run:
# inetconv -i/etc/inet/inetd.conf

How to download whole directory using Wget?

January 18th, 2008

Wget is a wonderful little utility from the Unix world used for retrieving files from web server. Using Wget is similar to having your own personal web crawler. Give it a few options and it’s off analyzing html files, extracting links in the html page and downloading them in sequence until all links has been downloaded. Of course, you control it all; how deep it crawls; what to download and what not to download.

It has loads of features including:

  • Recursive download and ability to set how the traversing depth.
  • Resume. Continue where you left off.
  • Converting links in html files for offline viewing.
  • Support HTTP, HTTPS, and FTP protocols.
  • Support Proxy
  • Work in the background
  • Options to set number of retries
  • Option to only download newer files
  • Option to limit how much you download
  • IPv6 Support

Download:

#
# Download everything from Gooogle.com ^_^
#
wget -np -r -m http:\\www.google.com\

-np don’t go backward and download content from the parent directory. -r recursive; go and download all sub-directory -m mirror, turn on options for mirroring

GNU Wget 1.5.3.1, a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...

Mandatory arguments to long options are mandatory for short options too.

Startup:
  -V,  --version           display the version of Wget and exit.
  -h,  --help              print this help.
  -b,  --background        go to background after startup.
  -e,  --execute=COMMAND   execute a `.wgetrc' command.

Logging and input file:
  -o,  --output-file=FILE     log messages to FILE.
  -a,  --append-output=FILE   append messages to FILE.
  -d,  --debug                print debug output.
  -q,  --quiet                quiet (no output).
  -v,  --verbose              be verbose (this is the default).
  -nv, --non-verbose          turn off verboseness, without being quiet.
  -i,  --input-file=FILE      read URL-s from file.
  -F,  --force-html           treat input file as HTML.

Download:
  -t,  --tries=NUMBER           set number of retries to NUMBER (0 unlimits).
  -O   --output-document=FILE   write documents to FILE.
  -nc, --no-clobber             don't clobber existing files.
  -c,  --continue               restart getting an existing file.
       --dot-style=STYLE        set retrieval display style.
  -N,  --timestamping           don't retrieve files if older than local.
  -S,  --server-response        print server response.
       --spider                 don't download anything.
  -T,  --timeout=SECONDS        set the read timeout to SECONDS.
  -w,  --wait=SECONDS           wait SECONDS between retrievals.
  -Y,  --proxy=on/off           turn proxy on or off.
  -Q,  --quota=NUMBER           set retrieval quota to NUMBER.

Directories:
  -nd  --no-directories            don't create directories.
  -x,  --force-directories         force creation of directories.
  -nH, --no-host-directories       don't create host directories.
  -P,  --directory-prefix=PREFIX   save files to PREFIX/...
       --cut-dirs=NUMBER           ignore NUMBER remote directory components.

HTTP options:
       --http-user=USER      set http user to USER.
       --http-passwd=PASS    set http password to PASS.
  -C,  --cache=on/off        (dis)allow server-cached data (normally allowed).
       --ignore-length       ignore `Content-Length' header field.
       --header=STRING       insert STRING among the headers.
       --proxy-user=USER     set USER as proxy username.
       --proxy-passwd=PASS   set PASS as proxy password.
  -s,  --save-headers        save the HTTP headers to file.
  -U,  --user-agent=AGENT    identify as AGENT instead of Wget/VERSION.

FTP options:
       --retr-symlinks   retrieve FTP symbolic links.
  -g,  --glob=on/off     turn file name globbing on or off.
       --passive-ftp     use the "passive" transfer mode.

Recursive retrieval:
  -r,  --recursive             recursive web-suck -- use with care!.
  -l,  --level=NUMBER          maximum recursion depth (0 to unlimit).
       --delete-after          delete downloaded files.
  -k,  --convert-links         convert non-relative links to relative.
  -m,  --mirror                turn on options suitable for mirroring.
  -nr, --dont-remove-listing   don't remove `.listing' files.

Recursive accept/reject:
  -A,  --accept=LIST                list of accepted extensions.
  -R,  --reject=LIST                list of rejected extensions.
  -D,  --domains=LIST               list of accepted domains.
       --exclude-domains=LIST       comma-separated list of rejected domains.
  -L,  --relative                   follow relative links only.
       --follow-ftp                 follow FTP links from HTML documents.
  -H,  --span-hosts                 go to foreign hosts when recursive.
  -I,  --include-directories=LIST   list of allowed directories.
  -X,  --exclude-directories=LIST   list of excluded directories.
  -nh, --no-host-lookup             don't DNS-lookup hosts.
  -np, --no-parent                  don't ascend to the parent directory.

Mail bug reports and suggestions to

PHP File Manipulation

January 13th, 2008

 

getID3()

getID3() is a PHP script that extracts useful information from MP3s & other multimedia file formats:

getID3() can write:

  • ID3v1 (v1 & v1.1)
  • ID3v2 (v2.3, v2.4)
  • APE (v2)
  • Ogg Vorbis comments
  • FLAC comments