Pages

Tuesday, September 28, 2010

Zend Framework Performance - specifically helper vs partial vs action helper vs action stack

There is a good section in the ZF reference guide regarding performance.  Specifically, pertaining to helpers, partials, action helpers, and action stacks.  This article hates on the partial because it is expensive to clone the view object.

http://framework.zend.com/manual/en/performance.view.html
http://framework.zend.com/manual/en/


Sunday, September 12, 2010

Wipe or shred hard drive before selling to remove personal data

sudo shred /dev/sda1 -f -v -z --iterations=1

Where /dev/sda1 is the partition you wish to wipe clean.

Increase the iterations for a "deeper" wipe.

This actually runs two iterations because of the -z.  The first pass is random and the second pass is zeros.

I've also used wipe which seems to be held in higher regard by some.  It just ran and ran on the default settings.. I let it run for a full day and it was still going.

The major problem with wipe is that it does not come on the Ubuntu live disk and shred does.  Makes it a bit easier if connecting to a network is not handy.

If you need to use wipe, you can add it using the package manager, but you have to add the "user contributions" package repository to find it.  -- Lightly paraphrased.

Thursday, August 19, 2010

BigCommerce.com

May need to look into this verse an yahoo store.

Looks interesting.



Sunday, August 15, 2010

Mounting an ext2 or ext3 drive to a MAC

UPDATE 8/19/2010!!! MACFUSE works, but is slow. I hooked a SSD through a USB external. Read speed when connected to a SATA controller are over 200MB/sec. Hooked through USB2.0 to linux over 50MB/sec... USB2.0 to MACFUSE 5MB/sec.

Others report that write access is in MACFUSE is flakey. I'm going with an unjournaled hfsplus for sharing between mac and linux.

Seems to me it should be built in.. But it isn't.

The bottom line as to the easiest way to share a disk between Mac and linux is to use a Mac File system (not journaled). Journaling seems to impair Linux from writing.

http://www.mguhlin.org/2010/01/mounting-linux-formatted-ext3-usb-drive.html

Not exactly true. Mac fuse with ext3 (journaled works fine too) There were a couple of problems that I had to figure out. You must partition the drive.. you cannot format /dev/sda.. it must /dev/sda1... or something like that. Otherwise it only mounts readonly. Further, the automounting only works readonly as well. So if you manually mount then you can have rw access.

http://www.gearhack.com/Forums/DisplayComments.php?file=Computer/Mac%20OS/Read.Write_EXT2.EXT3_Volumes_on_Mac_OS_X

sudo fuse-ext2 -o rw+ /dev/disk1s1 /Users/matt/tmp/

The above link also leads me to believe that I can automount rw... still need to experiment.

http://code.google.com/p/macfuse/
http://sourceforge.net/projects/fuse-ext2/
sudo ./fuse-ext2 /dev/disk1s2 /Volumes/journeyer/ -o force

Mac dot underscore (._) or AppleDot problem

http://www.litfuel.net/plush/?postid=147

"So it seems OSX likes to add ._ (dot-underscore or AppleDot) copies of files when transferring files between operating systems."

Seems to be a finder issue
from the bash: export COPY_EXTENDED_ATTRIBUTES_DISABLE =true You could also try ftp/scp before you tar the files (since it's the tar itself that creates the resource forks).