With a little side of applesauce...

Friday, May 16, 2008

Ubuntu Hardy - vmware install

These links fixed it for me. I installed workstation-5.5.6:
http://czarism.com/easy-peasy-vmwareplayer-vmplayer-ubuntu-hardy-804

https://lists.ubuntu.com/archives/ubuntu-users/2006-June/080987.html

Wednesday, May 14, 2008

CF 8 - operators reference

After about a five minute google search, plus some time sifting through livedoc search results I finally found this:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Expressions_05.html

Yikes! I just needed a list of operators...

emacs - dos2unix

Posting, since I always forget this:
<snip>
Let’s fix the nastier problem first. When you find a file corrupted with half LFs and half CRLFs, strip out the ^M (CR) characters with a quick search and replace. Run M-% (query-replace) and substitute C-q C-m with nothing. C-q runs quoted-insert and is useful for inserting control characters (e.g. ^M, entered as C-m). Afterwards hit the exclamation point (!) to tell query-replace to replace all matches with no questions.
</snip>


From this great blog entry:
http://www.emacsblog.org/2007/04/30/quick-tip-dos2unix-et-al/

Thursday, May 8, 2008

LDAP - custom schema - using OIDs

I don't want to lose this great article on objectIdentifier variables in your custom schemas:
http://linuxgazette.net/130/peterson.html

Wednesday, May 7, 2008

LDAP - attributetype names

Ok, so attributetype names cannot have an underscore "_". (ie pre_post)

coldfusion 8 on Ubuntu Hardy

You need to install libstdc++5 to support "C++ custom tags, webservices and some cfimage
functionality".

sudo apt-get install libstdc++5


Then run the installer:

sudo ./coldfusion-801-lin.bin


Here is the configure web server section, (wow!! It actually does it... Not like the old days :P ):
===============================================================================
Configure Web Servers
---------------------

Please configure your web server(s). If you do not configure a web server the
built-in web server will be used on port 8500 or the next available port.

1- Add Web Server Configuration
->2- Continue with installation

Choice: 1

****************************************************

->1- Apache
2- Sun ONE Web Server (iPlanet)
3- Cancel

What kind of web server are you configuring:

What directory contains your Apache configuration file (httpd.conf)? (For
example, on Red Hat Linux it could be located in the /etc/httpd/conf
directory if you installed from an rpm, or for SuSe Linux, it could be in
/etc/apache2)

Directory: /etc/apache2

****************************************************


Where is the Apache program binary file? (For example, on Red Hat Linux it
could be /usr/sbin/httpd if you installed from an rpm, or for SuSE Linux it
could be located at /usr/sbin/httpd2) If you have more than one instance of
Apache on your computer, enter the binary file location for the Apache web
server that will use ColdFusion. (Note: this is not the Apache start and
stop script.)

File: /usr/sbin/apache2

****************************************************


Where is the control file that you use to start and stop the Apache web
server? (For example, this could be /etc/init.d/httpd on Red Hat Linux if
you installed from an rpm, /usr/sbin/apache2ctl on SuSe Linux, or it could
be /usr/local/apache/bin/apachectl on hand-compiled versions.)

File: /etc/init.d/apache2

****************************************************


Please configure your web server(s). If you do not configure a web server the
built-in web server will be used on port 8500 or the next available port.

1- Add Web Server Configuration
2- Remove Web Server Configuration
3- Edit:Apache : /etc/apache2
->4- Continue with installation

Choice:



===============================================================================
Choose Adobe ColdFusion 8 Administrator Location
------------------------------------------------

Select the location of the web root for Adobe ColdFusion 8. This is where the installer places the Adobe ColdFusion 8 Administrator.

This directory must be the web root for one of the websites to be configured for use with Adobe ColdFusion 8.

Directory: (DEFAULT: /etc/htdocs): /var/www




===============================================================================
Runtime User
------------

Enter the name of the runtime user. This user must already exist on the system.

User Name: (DEFAULT: nobody): www-data


gmail - search for unread messages

gmail treats unread as a label, so you can search for unread messages like so:

label: mylabel label: unread

Tuesday, May 6, 2008

Office Open XML - So it is a standard now...

http://en.wikipedia.org/wiki/Office_Open_XML

base64 - use openssl to replace the GNUlib base64 binary

Since I am no longer a system administrator, I have found it easier to come up with work-arounds, instead of bothering the sysadmins with RPM installation or compilation dependencies. Here is a work-around for a missing GNUlib base64 binary:

    #cat "${TMPFOLDER}/${file}" | base64
openssl enc -base64 -in "${TMPFOLDER}/${file}"

Monday, May 5, 2008

RedHat - archived versions

ftp://archive.download.redhat.com/pub/redhat/linux/

XML - replace tidy with sed to grep status codes

The following will add a newline to XML, so that you can grep it out:

sed 's|/*>|&\n|g'


Handy!!

BASH - export environment variable to parent shell

Interesting... To export an environment variable to a parent shell, you need to source the file, not just export the variable in a script. ie:

speeves@hk:~/scripts$ ./x.sh 
speeves@hk:~/scripts$ echo $authtoken

speeves@hk:~/scripts$ . ./x.sh
speeves@hk:~/scripts$ echo $authtoken
hello world



x.sh:
export authtoken="hello world"

Mozilla Thunderbird - X-Mozilla-Status{,2}

Here are a couple of links to help read the message status for each file in a Mozilla Thunderbird mbox:
http://lxr.mozilla.org/seamonkey/source/mailnews/base/public/nsMsgMessageFlags.h#45

http://lxr.mozilla.org/seamonkey/source/mailnews/base/public/nsMsgMessageFlags.h#108

Thanks to Christian Eyrich for pointing the way:
http://www.eyrich-net.org/mozilla/X-Mozilla-Status.html?en