With a little side of applesauce...

Wednesday, March 25, 2009

LDIF - handling line breaks in exports

Thanks to Novell, I finally understand how LDAP handles LDIF line breaks in exports:

"""
Line Folding within LDIF Files

To fold a line in an LDIF file, simply insert a line separator (a newline or a carriage return/newline pair) followed by a space at the place where you want the line folded. When the LDIF parser encounters a space at a beginning of the line, it knows to concatenate the rest of the data on the line with the data on the previous line. The leading space is then discarded.

You should not fold lines in the middle of a multi-byte UTF-8 character.

The following is an example of an LDIF file with a folded line (see lines 13 and 14):

1 version: 1
2 dn: cn=Peter Michaels, ou=Artists, l=San Francisco, c=US
3 sn: Michaels
4 givenname: Peter
5 objectClass: top
6 objectClass: person
7 objectClass: organizationalPerson
8 objectClass: iNetOrgPerson
9 telephonenumber: +1 415 555 0001
10 mail: Peter.Michaels@aaa.com
11 userpassword: Peter123
12 description: Peter is one of the most popular music
13 ians recording on our label. He's a big concert dr
14 aw, and his fans adore him.
15
"""

http://www.novell.com/documentation/ndsedir86/index.html?page=/documentation/ndsedir86/taoenu/data/a6i0f1p.html

cfeclipse - ctrl - t to generate CF tags quickly

I just found this cool tidbit about using ctrl-t with cfeclipse to get a helper dialogue for many Coldfusion tags...

The quick and dirty of it is to type the start of the tag:
<cflocation

then hit ctrl-t. You will either get a pop-up window with helper text, or form fields, to help you complete the tag.

Nice!

Friday, March 20, 2009

cfeclipse - change background color for comments

The dark green background was just not me :P
Window->Preferences->CFEclipse->Editor->CFML Colour->CFML Comment BackGround

This is fixed in 1.3.2, (was a 1.4 milestone), and is found in my 1.3.2.200901041029.

Here is the history of the bug:
http://trac.cfeclipse.org/cfeclipse/attachment/ticket/38/comment%20background.txt

Tuesday, March 17, 2009

Ubuntu Intrepid - xrandr, laptop, and two external monitors

I have installed Ubuntu Intrepid on my Gateway E-475m, and have struggled with xrandr and two external monitors. xrandr is both great, and frustrating at the same time, methinks... This time around, I was having video corruption issues on TMDS-1, when running the following, (after docking my laptop):
xrandr --output LVDS --off  --output VGA --mode 1440x900 --crtc 0 --output TMDS-1 --mode 1440x900  --left-of VGA --crtc 1



Or, one display that would never come up, when running:
xrandr --output LVDS --off  --output VGA --mode 1440x900 --crtc 1 --output TMDS-1 --mode 1440x900  --left-of VGA --crtc 0



After beating my head against the wall for a few days, I tried the following, (which worked!):
#####GOOD DUAL MONITOR 1400X900: 
xrandr --output LVDS --off --output VGA --mode 1440x900 --crtc 0 --output TMDS-1 --mode 1440x900 --left-of VGA --crtc 1
xrandr --output LVDS --off --output VGA --mode 1440x900 --crtc 1 --output TMDS-1 --mode 1440x900 --left-of VGA --crtc 0

#### puts the start menu bar back on the laptop
gconftool --type int --set /apps/panel/toplevels/top_panel_screen0/monitor 0



(The gconftool line had nothing to do with the fix, but is included because it's cool :) ).

Sunday, March 8, 2009

Ubuntu - Using Google Apps Gmail as default Mail Reader

I just wanted to add a Google Apps Gmail setup for this great posting:
http://crunchbang.org/archives/2007/12/04/gmail-as-default-email-client-in-ubuntu/

My script looks like this:
#!/bin/bash

/usr/bin/firefox -remote "openurl(https://mail.google.com/a/mydomain.com/mail/?extsrc=mailto&url=$(echo $1 | sed 's/mailto://') )"



I prefer the config above, as I tend to use multiple browsers, but as of version 3, Firefox can be configured to use your Google Apps email as the default mailto responder, a la:
http://www.stolaf.edu/services/iit/gae/faq/index.cfm?details=1#47