Made of Everything You're Not

Personal blog of PHP programmer Eric Lamb.
  • Blog
  • Portfolio

Archive for November, 2008

phpdocumentor cheat sheet

Posted in Programming on November 16th, 2008 by Eric Lamb – 0 Comments

I've been documenting my code in phpdoc style for a while and have compiled a cheat sheet of common tasks and cheats.

To process a given directory use the following:

phpdoc -o HTML:frames:default, HTML:Smarty:PHP, HTML:frames:phpedit, PDF:default:default, CHM:default:*, HTML:frames:phphtmllib, HTML:frames:l0l33t, HTML:frames:earthli -t /Path/To/Storage/Directory -d/Path/To/Directory/To/Parse

For a full outline of all available command options

A list of default tags:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
* @abstract
* @access       public or private
* @author       author name <author@email>
* @copyright    name date
* @deprecated   description
* @deprec       alias for deprecated
* @example      /path/to/example
* @exception    Javadoc-compatible, use as needed
* @global       type $globalvarname
or
* @global       type description of global variable usage in a function
* @ignore
* @internal     private information for advanced developers only
* @param        type  description
* @return       type description
* @link         URL
* @name         procpagealias
or
* @name         $globalvaralias
* @magic        phpdoc.de compatibility
* @package      package name
* @see          name of another element that can be documented,
*                produces a link to it in the documentation
* @since        a version or a date
* @static
* @staticvar    type description of static variable usage in a function
* @subpackage    sub package name, groupings inside of a project
* @throws       Javadoc-compatible, use as needed
* @todo         phpdoc.de compatibility
* @var        type    a data type for a class variable
* @version    version

Fix for "convert: no decode delegate for this image format "

Posted in Servers on November 10th, 2008 by Eric Lamb – 14 Comments

While working with ImageMagick on one of my servers I was getting the following error:

convert: no decode delegate for this image format

This means that, more than likely, I was missing the decoding library. Apparently you need to install it and then recompile ImageMagick to work with Jpg files. I'm not sure why it wasn't installed by the OS though...

Anyway, to fix:

  1. Go to: http://www.imagemagick.org/download/delegates/ and download the required/missing delegate library.
  2. Execute "gunzip libjpeg-6b.tar.gz"
  3. Execute "tar -xvf libjpeg-6b.tar"
  4. Change directories to the newly created "libjpeg-x"
  5. Execute "./configure"
  6. Execute "make"
  7. Execute "make test"
  8. Execute "make -n install" first to see if the makefile will put the files where you want them.
  9. If there are no errors and you're ok with the installation path go ahead and install with "make install"

NOTE: On my system the manual directory wasnt' in the expected path so an error was thrown: "/usr/bin/install: cannot create regular file `/usr/local/man/man1/cjpeg.1': No such file or directory".

To fix I just created the expected directory "/usr/local/man/man1/" and install went smooth.

After that it was a simple matter of reinstalling ImageMagick.

Install Imagemagick from source on CENTOS 1386 4.5

Posted in Servers on November 04th, 2008 by Eric Lamb – 0 Comments

  1. Execute "wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz" to download the tarball.
  2. Execute "tar xvfz ImageMagick.tar.gz" to extract the tarball.
  3. Execute "cd ImageMagick-x.x.x" to change the directory
  4. Execute "./configure"
  5. Execute "make"
  6. if no errors execute "make install"

Mount HD Linux

Posted in Servers on November 04th, 2008 by Eric Lamb – 1 Comments

Setting up:

  1. Run fdisk -l. This will show what hard drives are available for mounting.
  2. Next, execute "fdisk /dev/DRIVE_NAME" to go into the fdisk utility
  3. If the drive doesn't have any partitions, or to create a new one, use the "n" command
  4. Choose whether it's a primary or extended partition
  5. Enter the number of partions you want to make.
  6. Choose where the first cylindar starts.
  7. Finalize the partitioning with the "w" command.

Formatting:

  1. Execute "mkfs -t ext3 /dev/DRIVE_NAME"

Mount:

  1. Create a directory for the mount point
  2. Edit /etc/fstab and and a new entry
  3. Execute "mount /dev/DRIVE_NAME"

You're done!

  • Subscribe: Entries | Comments
  • About Me

    Email Email
    Twitter Twitter
    310.739.3322
  • Categories

    • Brain Dump
    • Business
    • Code
    • IT
    • Programming
    • Rant
    • Servers
  • Archives

    • February 2012
    • October 2011
    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
  • Advertisement

Copyright © 2008 - 2013 Eric Lamb - All rights reserved