2007-10-12

Bucky-Moire Posted

Well here it is, the 4:3 version re-rendered and posted to YouTube!

2007-10-06

Bucky Moire Revisited Wide (16:9)

Tried to re-render my Bucky Moire project, and found that the MPEG files were making Powerdirector crash. Investigating, I decided to re-render in 16:9, with better aspect-ratio management.


- so rendering in 720x480, with an explicit aspect ratio in pov files:
camera{ .. right x*1.778 ..} does the trick (implicitly 4:3 is the default.)
-That makes the png picture distorted (when viewing with sqaure pixels.)
- I also removed the -f dvd flag from the ffmpeg line
- old vs new ffmpeg, is the one that I built in the dome directory vs the one from rpmforge under centos5
- so the MPEG file needs to be told about the aspect ratio: e.g.
/home/daniel/dome/ffmpeg/ffmpeg/ffmpeg -r 30 -i work/buckyMoireF2427-%03d.png -aspect 1.778 -b 9000 -y oldffmpeg-nodvd-aspect169-nonsquare.mpg

This is what it looks like on the DVD after rescaling to 16:9.


I must also redo the intro storyboard with the same mods.

Moved all scripts into svn:
svn checkout https://snookr.googlecode.com/svn/trunk/buckyMoire buckyMoire --username daniel.lauzon

-Parts, there are now three top level scripts.
all scripts run for both 1.778 (16:9), and 1.333 (4:3) aspect ratios)
doStory.sh   : story board animation
doMesh.sh    : creates 24...48x24..48 sequences
doAnnotate.sh: creates longer seamless animations
-combine the 9 styoryBoard parts (with repeats into one sequence)
as in 1,1,1,2,3,3,3,4,5,5,5,6,7,7,7,8,9,9,9
-combines all mesh animations for one constant outter frequency
and adds freq pair anotation to bottom of image.


2007-09-28

Gmail transfer

Setup pop server on boole.

netstat -anop --tcp :to find open ports. 993/995 are listening
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 3260/xinetd off (0.00/0/0)
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 3260/xinetd off (0.00/0/0)

map hole in firewall to 995 (pop3s), say rd:8995 -> 201:995
load up the mailboxes one by one, in /var/mail/spool/catherine, and let it rip
Sometimes have problems with mbox locks...
kill the ipop process and restarting xinet seem to help.

2007-07-24

Using Virtual Ethernet Adapters in Promiscuous Mode on a Linux Host

Reference from vmware:
http://www.vmware.com/support/ws5/doc/ws_net_advanced_linux_vadapter_promiscuous.html

change permissions on /dev/vmnet[018] to specific group or all
before:
[root@euler ~]# ls -ltr /dev/vm*
crw------- 1 root root 10, 165 Jul 20 13:38 /dev/vmmon
crw------- 1 root root 119, 0 Jul 20 13:38 /dev/vmnet0
crw------- 1 root root 119, 1 Jul 20 13:38 /dev/vmnet1
crw------- 1 root root 119, 8 Jul 20 13:38 /dev/vmnet8
after:
[root@euler ~]# chmod go+rw /dev/vmnet[018]
[root@euler ~]# ls -ltr /dev/vm*
crw------- 1 root root 10, 165 Jul 20 13:38 /dev/vmmon
crw-rw-rw- 1 root root 119, 0 Jul 20 13:38 /dev/vmnet0
crw-rw-rw- 1 root root 119, 1 Jul 20 13:38 /dev/vmnet1
crw-rw-rw- 1 root root 119, 8 Jul 20 13:38 /dev/vmnet8

and back:
[root@euler ~]# chmod go-rw /dev/vmnet[018]
[root@euler ~]# ls -ltr /dev/vm*
crw------- 1 root root 10, 165 Jul 20 13:38 /dev/vmmon
crw------- 1 root root 119, 0 Jul 20 13:38 /dev/vmnet0
crw------- 1 root root 119, 1 Jul 20 13:38 /dev/vmnet1
crw------- 1 root root 119, 8 Jul 20 13:38 /dev/vmnet8

2007-06-29

Restoring Cantor after disk failure

Well, after much effort, (spinrite 6.0) could not repair the failed system disk for cantor; Conclusion use raid1 for /boot and put / on raid5 volume!
The plan is to do that when cantor is moved the the new Core2 box.

-Gbe went smoothly under CentOS-5.0 for the DLink DGE-530T
-restoring the VG1 LVM volume (raid5) went smoothly after I vgscann'ed, pvscann'ed my way home, to enable the volumes however I had to lvchange -ay /dev/VG1/LVx for x in 0,1,2,3.

now for basic software installs; rpmforge:
google'd for rpmforge-release dag
wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
VMWare: got version 5.5.4: 6.0 soon...
Java:
installed from rhes5 supplementary, by loop mounting iso:
mount -o loop /archive/iso/rhes5/rhel-5-server-supplementary-i386-disc1.iso /mnt/coco
adding keys, then yum localinstall jaba*ibm*rpm
This setsup plugina appropriately: config with alternatives --config libjavaplugin.so
also installed jdk 1.5, and 1.6 from sun.
for java6: turned off magical execution with:
chkconfig --level 0123456 jexec off
Acrobat: installed from rhel5 suppl.: yum localinstall acroread-*.rpm
Flash: installed from rhel5 suppl.: rpm -Uvh flash-plugin-*.rpm
Groovy: already had groovy .tar.gz in downloads.
Grails: groovy home 0.4 already in /home/daniel/grails-0.4

iSCSI on axial blades/filers

Just added these for autostart..
on filer1: 192.168.3.62:
chkconfig --add iscsi-target
chkconfig --level 345 iscsi-target on
chkconfig --list iscsi-target
and on blade02:192.168.3.114 service was aloready set to run..
chkconfig --list iscsi

Just grep'ed history on blade02: 192.168.3.114
iscsiadm -m discovery
iscsiadm -m discovery -p 192.168.3.62
iscsiadm -m discovery -t st -p 192.168.3.62
/etc/init.d/iscsi restart
fdisk -l /dev/sdb
mke2fs /dev/sdb1
/etc/init.d/vmware stop
mv vmware vmware.local.old
time scp -rp ../../vmware.local.old/Virtual\ Machines/c44-64 .
time scp -rp ../../vmware.local.old/Virtual\ Machines/w2k3-ent-x64 .
mount /dev/sdb1 /var/lib/vmware
/etc/init.d/vmware start
and on filer1: 192.168.3.62
/etc/init.d/iscsi-target restart
config in /etc/ietd.conf

2007-06-28

Gigabit Ethernet on Cantor: D-Link DGE-530T

Under Centos4.4 my notes indicate that the SKGE module was the right one...

Installing the Gigabit Ethernet Controller under RHEL5 was without issue, and produced the following /etc/modprobe.conf:
[root@cantor ~]# more /etc/modprobe.conf
alias eth0 r8169
alias eth1 forcedeth
...
This is what lspci had to say:
[root@cantor ~]# lspci
01:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)

2007-06-16

convert flac to mp3

This is the gem that I found:
flac -d -o - "$filename" | lame -b 320 -h - > "${filename:0:${#filename}-5}".mp3

So using this trick for filenames with spaces: (while read does not break on spaces as for does !)

find -type f -name \*flac | while read f; do
echo "-=-= $f =-=-";
flac -d -o - "$f" | lame -b 320 -h - > "${f:0:${#f}-5}".mp3
done

Don't thimk this will do id3 tags though....Music Brainz...And done

2007-05-19

iperf setup and results

Link to iperf home page http://dast.nlanr.net/Projects/Iperf/
Simple:
Server side: ./iperf -s
Client side: ./iperf -c

Explicit:
./iperf -s -P 0 -i 1 -p 5001 -l 8K -f m -t 10

./iperf -c

aria has a linksys EG1032
lascala has an onboard NVidia nForce Gbe
cantor has a Trendnet TEG-PCITXR (RTL-8169)
piaget has a D-Link DGE-530T

Results (lascala was busy.. redo, and add openfiler)
cantor-lascala: 418 Mbits/sec
lascala-lascala: 594 Mbits/sec
cantor-cantor: 2.25 Gbits/sec
aria-aria: 637 Mbits/sec
lascala-aria: 251 Mbits/sec
aria-cantor: 453 Mbits/sec
cantor-aria: 538 Mbits/sec

2007-05-13

transcode re-encode mp3 with lame

Doin this to shrink collection for Sylvie'e iPod.

yum install lame
yum install id3lib

# make parallel directory structure
find -type d -exec mkdir ../mp3_128/{} \;
# do actual transcoding
find -type f -name \*mp3 -exec
lame -b 128 --mp3input {} ../mp3_128/{} \;
# and now id3cp -1 -2 (necessaru caus lame does not bring over id3 tags
find -type f -name \*mp3 -exec id3cp -1 -2 {} ../mp3_128/{} \;

-=-= dual Core 2 = 4 cores ::
To accelerate on dual core 2 machines, manually split into 4(5) source directories, all of which encode to same mp3_128 target dfirectory.

2007-01-21

WWYDIYWNA

Considering options for rapid developpment.
Lifted considerations:
-common environment, simplified installtion recipes
-distribution
-source for java sdk, , can use java 1.5, from sun/ibm, 1.6 when it gets FLOSSED.
-svn to replace cvs
-planing: trac for details vs solodesk.

Trac on cantor

Installing trac on cantor
Decided to up2date instead of yum
http://trac.edgewall.org/wiki/TracOnRhel4
Change the directories from instructions:
Subversion repos
mkdir -p /var/lib/subversion/repos
svnadmin create --fs-type fsfs /var/lib/subversion/repos
Trac projects.
mkdir -p /var/lib/trac
trac
-admin /var/lib/trac/solotrac initenv
permissions, root.apache didn't cut it...
chown -R apache:apache /var/lib/trac
chown -R apache:apache /var/lib/subversion/repos

and put a logo into /usr/share/trac/htdocs/sologlobe.png by changing /var/lib/trac/solotrac/conf/trac.ini

for i in CONFIG_VIEW MILESTONE_ADMIN MILESTONE_CREATE MILESTONE_DELETE MILESTONE_MODIFY REPORT_ADMIN REPORT_CREATE REPORT_DELETE REPORT_MODIFY REPORT_VIEW ROADMAP_ADMIN ROADMAP_VIEW SEARCH_VIEW TICKET_ADMIN TICKET_APPEND TICKET_CHGPROP TICKET_CREATE TICKET_MODIFY TICKET_VIEW TIMELINE_VIEW TRAC_ADMIN WIKI_ADMIN WIKI_CREATE WIKI_DELETE WIKI_MODIFY WIKI_VIEW; do trac-admin solotrac

Then we svn,
And define milestones for hibernate and clustering unit/integration/load testing...