Difference between revisions of "Engine Room"
(xattr where from) |
(LaCie 500 GB Big Disk) |
||
Line 122: | Line 122: | ||
==Mac OS X 10.5 and Apache Tomcat== | ==Mac OS X 10.5 and Apache Tomcat== | ||
*See http://www.malisphoto.com/tips/tomcatonosx.html | *See http://www.malisphoto.com/tips/tomcatonosx.html | ||
==LaCie 500 GB Big Disk== | |||
*2010-13-09 power supply fails, gives ticking noise, like a time bomb | |||
**LaCie 500 GB d2 Big Disk, power supply 706479, 34 W, 5V 2.0A, 10W and 12V, 2.2A, 26,4W | |||
**[http://www.lacie.com/nl/support/faq/faq.htm?faqid=10564 LaCie » Identifying your power supply] | |||
**[http://www.lacie.com/imgstore/support/faq_10564_d2_p3_34w.jpg LaCie » Identifying your power supply » 706479 info tag] |
Revision as of 08:59, 13 August 2010
Welcome to AardRock's Engine Room—The place where all instruments, tools and infrastructure come to live and evolve.
rsync
Always run rsync through ssh:
rsync -e 'ssh -l ssh_account' -vaz src_dir target_tld:dst_dir
xattr: set where from
Sometimes the ‘where from’ metadata contains an unreadable URL from some cache. Replace it with the most human readable version of the original. This way, you can always find out the source of the original document (image, movie, etc.).
xattr -w 'com.apple.metadata:kMDItemWhereFroms' source_url file_name
xattr: UTF-8 copy & paste
Mac OS X stores a special attribute: http://www.nabble.com/MacVim-file-encoding-and-Quicklook-td17289501.html
To create an UTF-8 file using vi(1) and open it correctly as UTF-8 file in TextEdit (as opposed to Open As… UTF-8):
- vi file
- xattr -w com.apple.TextEncoding 'UTF-8;134217984' file
- open file
Cobble
See Cobble for it's IP address.
Server Room
Please see Engine Room/Server.
Wiki installation
Mailing Lists
NOTA BENE:
- Adding and removing mailing lists is done using Plesk.
- Managing mailing lists (posts, subscription, digests) is done using MailMan directly.
To add a new mailing list:
- Login to Plesk as administrator.
- Select Domains in the General section of the left navigation bar.
- Select the domain to which you want to add a mailing list, e.g. aardrock.
- Select Mail under Services.
- Select the Mailing lists tab.
- Select Add new mailing list.
- Enter the mailing list name, password and administrators email and press OK.
To manage mailing lists:
- Use Mailman's adminstrative interface.
URLs and subdomains
To add a redirection
- Login on server
- Switch directory to the subdomain's directory.
- Create the directory.
- Create
index.php
containing theLocation:
header instruction.
For example, to have http://cheetah.aardrock.com/faq/ redirect to http://wiki.aardrock.com/Cheetah_FAQ:
# cd /var/www/vhosts/aardrock.com/subdomains/cheetah/httpdocs # mkdir faq # echo '<? header("Location: http://wiki.aardrock.com/Cheetah_FAQ"); ?>' > index.php
Publishing presentations online
To publish a presentation online:
- In Keynote, choose File > Export.
- Select the HTML tab.
- Select Format > JPEG (variable quality).
- Set Quality > 50%
- Click Next; the Save As dialog appears.
- Enter a descriptive name for your presentation, as this is used in all subseqent communication.
- Click Export. Keynote will start exporting the HTML
Note that a HTML file with name presentation.html is generated along with a folder called presentation_files containing slide images.
Next, use ImageMagick to convert the high-resolution images into more convenient low resulotion images.
- %
cd presentation_files
- %
mkdir hi
- %
mv *.jpg hi
- %
cd hi
- %
convert -verbose -crop '1008x768+0+0!' 'presentation.*.jpg[504x384]' ../presentation.%03d.jpg
SVN
- Alle svn data staat op /var/svn/repositories
To list the AardRock repository:
of, wanneer ingelogd op svn server:
- svn list file:///var/svn/repositories/AardRock/trunk/MediaWikiSkin/
To check out the AardRock repository:
- /usr/local/bin/svn co svn+ssh://martien@aardrock.com/var/svn/repositories/AardRock/trunk/MediaWikiSkin/
To check in changed files into the repository:
- svn commit
NOTE: you must be in the directory containing the working files, or specify the path.
To see differences between revision X and your current working version of main.css:
- svn diff -rX main.css
- svn diff -r2:7 main.css
To get an overview of all revisions of upload do:
- svn log upload
To install:
- ARUN=martien ./upload
To create a working copy of the complete repository:
- svn co file:///var/svn/repositories/AardRock
To create a new project in the AardRock repository:
Either:
- cd AardRock/trunk/
- mkdir Apache
- svn add Apache
- svn commit
Or import an existing directory into the desired location in the AardRock trunk:
- mkdir Apache
- svn import Apache file:///var/svn/repositories/AardRock/trunk/Apache
HP scanjet 4670
Nice vertical flatbed scanner but shitty crappy software. Come on HP, you can do better! After upgrade to Mac OS X 10.5.8 scanner did not work anymore.
- First, follow instructions on hp scanjet 4670 and OS X 10.4.8 -- YIKES! » I Did Get It Going....
- Next, follow instructions on Scanjet 4670 driver for Mac OS Leopard 10.5? » Kenneth Koller's comment.
- Download COL10842b.dmg
- Double-click COL10842b.dmg to mount.
- Once the window opens with the installers...control click it...and select see package contents.
- Navigate to contents/macos/subinstallers.
- Double-click on the hp scanjet 4600.
- Go to top directory of SJ4600 (mount point *.dmg) and double-click HP ScanJet Software Installer to install all components (not sure if this is still necessary).
- Enjoy
I will never buy any HP products anymore.
Mac OS X 10.5 and Apache Tomcat
LaCie 500 GB Big Disk
- 2010-13-09 power supply fails, gives ticking noise, like a time bomb
- LaCie 500 GB d2 Big Disk, power supply 706479, 34 W, 5V 2.0A, 10W and 12V, 2.2A, 26,4W
- LaCie » Identifying your power supply
- LaCie » Identifying your power supply » 706479 info tag