With a little side of applesauce...

Friday, April 30, 2010

Ubuntu Lucid Lunx / Mac OS X 10.6 - no sound

This is fixed via alsamixer a la this post to the Ubuntu forums:
http://swiss.ubuntuforums.org/showpost.php?s=ec74430d14147ea775c37409064bb423&p=9066041&postcount=3

Wednesday, April 14, 2010

Coldfusion - Content Is Not Allowed In Prolog

Once again, Ben Nadel comes to the rescue with his blog posting, "Content Is Not Allowed In Prolog - ColdFusion XML And The Byte-Order-Mark (BOM)"
http://www.bennadel.com/blog/1206-Content-Is-Not-Allowed-In-Prolog-ColdFusion-XML-And-The-Byte-Order-Mark-BOM-.htm

It talks about my exact situation with authorize.net ARB XML responses, and the REReplace() example he gives does the trick. Thanks, Ben!!

Monday, April 12, 2010

Windows 7 - telnet...?

telnet is one of the most important tools in the network testing, so a quick google helped me figure out how to turn it on in Windows 7, (not sure why they 'disabled' the client...):
http://www.leateds.com/2009/telnet-for-windows-vista-windows-7/

Thursday, April 8, 2010

VIM - undo and redo

I always forget how to redo in VIM, so posting this link here:
http://vim.wikia.com/wiki/Undo_and_Redo

Eclipse - startup error caused by read-only file

My instance of Eclipse Galileo was failing to start, but was doing so silently... My only clue was a startup dialogue complaining about a read-only file that was persisting into the new session. To find more information, I ran the following command, which failed silently:
myhost:eclipse speeves$ Eclipse.app/Contents/MacOS/eclipse




which failed silently. Next, I tried this:
myhost:eclipse speeves$ Eclipse.app/Contents/MacOS/eclipse -h
Exception in thread "Thread-3" org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Display.error(Display.java:961)
at org.eclipse.swt.widgets.Display.wake(Display.java:4110)
at org.eclipse.ui.application.WorkbenchAdvisor$1.run(WorkbenchAdvisor.java:797)



Ok, so now I have something to work with! This led me to the following post:
http://dev.eclipse.org/newslists/news.eclipse.tools/msg62937.html

Which, in turn, let me to this file:
ECLIPSE_DIR\workspace\.metadata\.plugins\org.eclipse.ui.workbench\workbench.xml

which stores all of the saved session information for each session. I then removed the 'editor' elements, which referred to an open file from my previous session:

<editor id="org.cfeclipse.cfml.editors.CFMLEditor" name="test.cfm" partName="test.cfm" title="test.cfm" tooltip="/Users/speeves/Documents/workspace/test/test.cfm" workbook="DefaultEditorWorkbook">
<input factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" uri="file:/Users/speeves/Documents/test/test.cfm"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="0" selectionTopPixel="0"/>
</editor>



And, all of the 'file' elements as well:
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="org.cfeclipse.cfml.editors.CFMLEditor" name="test.cfm" tooltip="/Users/speeves/Documents/workspace/test/testsp_form.cfm"><persistable uri="file:/Users/speeves/Documents/workspace/test/test.cfm"/></file>



That fixed it!

Wednesday, April 7, 2010

Tuesday, April 6, 2010

Eclipse SQL Explorer - a better SQL interface

I have been a longtime user of QuantumDB, and it has been a good and faithful SQL interface for my purposes. My issues with it are:

(On OSX 10.6 / Eclipse Galileo )
1. It doesn't honor the global keybindings settings in Eclipse.
2. It slows down eclipse if you have a large query.
3. It isn't easy to access recent queries, so I tend to pile them up in the editor, and highlight the one I want to execute. This eventually leads to problem #2.
4. No undo functionality in the SQL editor, (to put back the part of the query that you accidentally deleted).

Today, I found Eclipse SQL Explorer, and it addresses problems 1, 2, and 4. I haven't used it long enough to know about problem #3.

Coldfusion Builder - going back to CFEclipse

I tried to install Coldfusion Builder into my existing Eclipse installation, (to preserve all of my database bookmarks, LDAP configurations, etc.), and was unable to get syntax highlighting, nor a connection to my remote RDS server to work. These are probably due to my issues, but I have lost enough time trying to install and uninstall both the Eclipse plugin and the standalone version to go back to CFEclipse. It just works...