Archive for the ‘Dev Tools’ Category

CF Online Meetup – VirtualBox for the CF Developer: Results

Thursday, January 14th, 2010

Questions about VMs, VirtualBox, Linux, ColdFusion or any combination are welcome at DavidHenry |at| coldfusionpowered.com

A link to the recording:

http://experts.na3.acrobat.com/p36124700/

Slides

http://blog.coldfusionpowered.com/wp-content/uploads/2010/01/vbox_for_cf_dev.pdf

Better Answers to Questions I Answered Poorly

Is Xen dead? No, Xen is alive and kickin’

Can you run a VM inside of another VM? To my surprise, yes. VirtualBox seems to allow this but it is extra slow.

What was the problem when you tried to use snapshots? The machine I was presenting from was using an old version of VirtualBox (3.0.12).  The feature I was trying to show was introduced in VirtuaBox 3.1.  Download directly from virtualbox.org to get the latest version for your operating system.  Proper use of snapshots can be found at http://www.virtualbox.org/manual/UserManual.html#snapshots.

Magic commands to forward a port from host to guest “MyVM”

DOS/Terminal Commands


VBoxManage setextradata "MyVM" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol" TCP
VBoxManage setextradata "MyVM" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort" 80
VBoxManage setextradata "MyVM" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort" 8585

–== OR ==–

Edit {vboxhome}/Machines/MyVM/MyVM.xml

“pcnet” is the default network card, “0″ is the first network card

Add this to the <ExtraData></ExtraData> section:

<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/GuestPort" value="80"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/HostPort" value="8585"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/Protocol" value="TCP"/>

Links

http://www.virtualbox.org/
http://download.virtualbox.org/virtualbox/3.0.12/UserManual.pdf
http://forthedeveloper.com/2009/coldfusion-virtualbox-and-ubuntu/

http://blog.zoobiesoft.com/index.cfm/2009/10/22/

http://httpd.apache.org/docs/2.0/mod/mod_alias.html#alias
Making the cfide directory map correctly in Apache2.

http://help.adobe.com/en_US/ColdFusionBuilder/Using/WS0ef8c004658c1089-38317734121cdfd5fd3-7fff.html#WS0ef8c004658c1089-38317734121cdfd5fd3-7ffe
ColdFusion Builder RDS setup instructions.

CFInNC Conference Registration Open!

Wednesday, August 26th, 2009

Registration opens today! Get registered now for this FREE conference! http://cfinnc.com/
http://cfinnc.com/page.cfm/badges

AS3 Value Objects With a Quickness!

Monday, June 29th, 2009

Yesterday I found myself in dire need of a value object for something Flex I’m working on but was feeling too lazy to type it out.  I decided to hit Google before writing out the class by hand.  I hit this gem for blasting out quick ‘n easy value objects in AS3.  Just throw down your list of properties and go!

Blog -  http://blog.stroep.nl/2009/04/as3-valueobject-generator-beta/

Tool -  http://projects.stroep.nl/ValueObjectGenerator/

Thanks Mark Knol,  I love saving time and typing!

Eclipse Update Error (SOLVED)

Wednesday, March 4th, 2009

eclipse_error

Are you getting this error when updating/installing with the Eclipse editor? Is it just me?


An error occurred while collecting items to be installed
No repository found containing: org.eclipse.draw2d/osgi.bundle/3.4.2.v20090114-1330
No repository found containing: org.eclipse.draw2d/org.eclipse.update.feature/3.4.2.v20090218-1145-3317w311_122502441
No repository found containing: org.eclipse.emf/osgi.bundle/2.4.0.v200902171115
No repository found containing: org.eclipse.emf.codegen/osgi.bundle/2.4.0.v200902171115
No repository found containing: org.eclipse.emf.common/osgi.bundle/2.4.0.v200902171115
No repository found containing: org.eclipse.emf.common/org.eclipse.update.feature/2.4.0.v200902171115
No repository found containing: org.eclipse.emf.common.ui/osgi.bundle/2.4.0.v200902171115
No repository found containing: org.eclipse.emf.ecore/osgi.bundle/2.4.2.v200902171115
No repository found containing: org.eclipse.emf.ecore.change/osgi.bundle/2.4.0.v200902171115
No repository found containing: org.eclipse.emf.ecore.change.edit/osgi.bundle/2.4.0.v200902171115
No repository found containing: org.eclipse.emf.ecore.edit/osgi.bundle/2.4.1.v200902171115
No repository found containing: org.eclipse.emf.ecore.edit/org.eclipse.update.feature/2.4.1.v200902171115
No repository found containing: org.eclipse.emf.ecore/org.eclipse.update.feature/2.4.2.v200902171115
No repository found containing: org.eclipse.emf.ecore.xmi/osgi.bundle/2.4.1.v200902171115
No repository found containing: org.eclipse.emf.edit/osgi.bundle/2.4.2.v200902171115
No repository found containing: org.eclipse.emf.edit/org.eclipse.update.feature/2.4.2.v200902171115
No repository found containing: org.eclipse.emf.edit.ui/osgi.bundle/2.4.2.v200902171115
No repository found containing: org.eclipse.emf.edit.ui/org.eclipse.update.feature/2.4.2.v200902171115
No repository found containing: org.eclipse.gef/org.eclipse.update.feature/3.4.2.v20090218-1145-67728084A56B4I233613552
No repository found containing: org.eclipse.jem/osgi.bundle/2.0.202.v200810282000
No repository found containing: org.eclipse.jem.workbench/osgi.bundle/2.0.102.v200810230530
No repository found containing: org.eclipse.jst.common.frameworks/osgi.bundle/1.1.201.v200810161330
No repository found containing: org.eclipse.jst.j2ee/osgi.bundle/1.1.206.v200902052030
No repository found containing: org.eclipse.jst.j2ee.core/osgi.bundle/1.1.203.v200901221030
No repository found containing: org.eclipse.jst.j2ee.jca/osgi.bundle/1.1.203.v200811060900
No repository found containing: org.eclipse.jst.j2ee.web/osgi.bundle/1.1.203.v200901290400
No repository found containing: org.eclipse.jst.jee/osgi.bundle/1.0.103.v200901220530
No repository found containing: org.eclipse.jst.jsf.common/osgi.bundle/1.1.4.v20090128
No repository found containing: org.eclipse.jst.jsf.common.runtime/osgi.bundle/1.0.101.v20090128
No repository found containing: org.eclipse.jst.jsf.core/osgi.bundle/1.1.103.v200902042324
No repository found containing: org.eclipse.jst.jsf.facesconfig/osgi.bundle/1.1.1.v20090129
No repository found containing: org.eclipse.jst.jsp.core/osgi.bundle/1.2.121.v200901290830
No repository found containing: org.eclipse.jst.jsp.ui/osgi.bundle/1.1.312.v200901290909
No repository found containing: org.eclipse.jst.server.core/osgi.bundle/1.1.3.v20090115
No repository found containing: org.eclipse.xsd/osgi.bundle/2.4.2.v200902171115
No repository found containing: org.eclipse.xsd.edit/osgi.bundle/2.4.0.v200902171115
No repository found containing: org.eclipse.xsd.edit/org.eclipse.update.feature/2.4.0.v200902171115
No repository found containing: org.eclipse.xsd/org.eclipse.update.feature/2.4.2.v200902171115
No repository found containing: org.eclipse.rse.core/osgi.bundle/3.0.3.v200902042310
No repository found containing: org.eclipse.rse.ui/osgi.bundle/3.0.3.v200902042310

Either a server somewhere is not available or I have defiled my configuration.

UPDATE!

I am 92% certain this issue is caused by a transparent proxy cache on the network at my office.  They network engineers had better things to do than worry about my Eclipse updates but I managed to squeeze enough information of of them to determine that there IS a proxy server and it DOES cache.  Combined with some information I found on an Eclipse ticket here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=249990 I managed to find a way around.  Try the methods they suggest in that thread first.  If that doesn’t work, try this:

  • Browse to http://www.eclipse.org/downloads/download.php?file=/releases/ganymede/site.xml&format=xml&protocol=http
  • Pick a url at random from the list of mirror sites.
  • Copy that url and add it in Eclipse as a site under help>Software Updates…Available Software:Add Site…
  • Find and check the plug-in you were looking for directly under the tree of plugins for the mirror site, leave the Ganymede Update Site tree closed.
  • Sacrifice a live chicken, burn some scented candles, and then click install (with your left pinky finger).

If you are lucky like me, your software will install!  Idealy I’d like to put a stop to this evil, invisible proxy server but I don’t have the knowledge or the power.

Another option is to take your system home and update from your own ISP.  I wish I’d thought of that before the chicken…

Add Cookies to Firebug

Wednesday, February 11th, 2009

firecookie_logoIf I were to make a list of useful things Firebug would be right up there with seat belts, calculators, sun screen, and forks. Today I found myself chasing a piece of data while tracking down an elusive bug in unfamiliar code when <cfcookie> stopped me dead in my tracks.

First stop with any problem is Google (add that to the list of useful things) which provided a list of hundreds of cookie tracking tools. After much deliberation I wound up selecting “Firecookie 0.7″ by Jan Odvarko.

Thus far I have to say I like it. Firecookie fits nicely into Firebug 1.3.1 without making me think about where to go find it. Cookie events get logged to console so I can see when cookies are created and deleted. The cookie tab lets me see all relevant cookies, add my own cookies, or delete current cookies. Just what I needed.

https://addons.mozilla.org/en-US/firefox/addon/6683

firecookie-sshots

Much thanks to Jan Odvarko!

MYLYN + Bugzilla error:

Monday, January 5th, 2009

Using Mylyn on Eclipse to add a comment to, accept, or assign a Bugzilla task/bug produces the following error message:

Bugzilla was unable to make any match at all for one or more of the names and/or email addresses you entered on the previous page. Please go back and try other names or email addresses. Assignee: djhenry did not match anything

The assignee should be djhenry@——.— so what happened to the rest of it?

Un-checking the ‘Local users enabled:’ checkbox resolved the issue. Anyone know what this option is for? Enabling a local user I’d assume but what does that mean?

The Mylyn interface is so much faster and easier than the Bugzilla web interface IMO (and Trac too for that matter). Give it a try, share your findings here.