\d+\.?\d{0,2}?
Wednesday, July 16, 2008
Friday, July 11, 2008
Applescript to close all open applications
tell application "System Events" to set the visible of every process to true
tell application "System Events" to set theApps to (name of every process whose visible is true and name is not "Finder" and name is not (my name as text))
repeat with theApp in theApps
tell application theApp to quit
end repeat
Applescript to unmount disk image
tell application "Finder"
if exists "MyDisk" then
do shell script "hdiutil detach \"/Volumes/MyDisk\""
end if
end tell
Another way:
tell application "Finder"
if (exists the disk "local_home_backup") then
eject "local_home_backup"
delay 2
end if
end tell
Wednesday, July 9, 2008
MySQL use CONCAT and UPDATE together in mysql to add to an existing string
UPDATE products SET SHIPPING = CONCAT('+', SHIPPING) WHERE SHIPPING != "" AND SHIPPING REGEXP '^[^\+]'
Wednesday, July 2, 2008
Subscribe to:
Comments (Atom)

