Rob Gonda's Blog

ajaxCFC quick patch

I just uploaded a small patch into ajaxCFC for the Model-Glue examples to work on the CFMX DevNet Edition. I had the core examples already patched, but I found that the MG were not.

I will release a major engine update within the next few days.

South Florida CFUG Reminder

Quick reminder: I'll be speaking tomorrow at the South Florida CFUG. The session is on Model-Glue and Unity. I will start with defining design patterns, implicit invocation, MVC, and then go into detail about the MG implementation: data flow, event handlers, listeners, models, views, ... To cover Unity I would probably need several hours, so I don't think I will get into scaffolding, and ColdSpring in details (autowiring, proxies, aop) ...

I'll post my slides tomorrow.

weird pages linking back

Has anyone seen this type of crap before? Every single day I find new sites with dummy content mentioning my name/blog linking back ... What could be the reason for this? Traffic, clickthroughs, ad-sense? Does anyone else have this problem?

e.g. these just came up last night

http://rajax.rafflesiapages.com/?p=36
http://encleangreaseoffpansthe.blogspot.com/2006/08/clean-grease-off-pans_17.html
http://howcleangreaseoffpanswith.blogspot.com/2006/08/clean-grease-off-pans_24.html
http://whenasseenontvdoggierampto.blogspot.com/2006/08/as-seen-on-tv-doggie-ramp_24.html
http://thecleangreaseor.blogspot.com/2006/08/clean-grease_25.html
http://thisasseenontvdoggierampwhat.blogspot.com/2006/08/as-seen-on-tv-doggie-ramp_25.html

Ajax Debugging Tip

Rey Bango posted a nice entry to help debug Ajax calls. The problem people usually run into is that Ajax triggers a remote call in the background and they have no idea to see why it failed. ajaxCFC will show you the ColdFusion error, if any, but if the problem breaks to communication for some reason it will just say invalid reply from the server... but why?! I always tell people to install a nice http sniffer, and Rey confirms it.
The moral of the story is: use Firefox, use FireBug.

little tip for model-glue: unity

If you're developing in Model-Glue:Unity, you may already know that you are working with ColdSpring and Reactor. ColdSpring may seem obvious because you set up all Model-Glue's properties with ColdSpring; as the matter of fact, Model-Glue is a ColdSpring application.
However, Model-Glue also ties to Reactor, which you may decide to use or not. A little performance tip is to set Reactor to production mode if you're not using it, because whether you use it or not, it will take up resources.
To chance it to production mode open ColdSpring.xml, find the reactorConfiguration bean, and modify the mode to <property name="mode"><value>production</value></property>

I am still not sure exactly why it would make such a difference, but in the project I'm currently working, which does not use Reactor at all, it improved the load time from 700ms to 100ms, having Model-Glue set to always reload.

Google Analytics Open to Everyone

Google just removed the wait to receive a Google Analytics account. Now anyone with a website can instantly create one for free by simply by visiting google.com/analytics or by clicking on the "Analytics" tab within AdWords. After you create an account, they suggest reading the Installation Guide to get it set up quickly and correctly.

I've been using Google Analytics for a while and I like it a lot; the best part: it's free!

Script.aculo.us 1.6.2 Released

Script.aculo.us V1.6.2 (2006-08-15): Bug fix galore! was released yesterday. 

  • Fix a problem in the drag and drop logic if an reverting/drag ending draggable was initialized for a new drag (for example by clicking repeatedly) for all cases where the default start/revert/end-effects are used, fixes #4706 [thx tecM0]
  • Fix possible memory leaks with Draggables, fixes #3436 [thx aal]
  • Throw nicer errors when requires script.aculo.us libraries are not loaded, fixes #5339
  • Make slider handles work when not displayed initially by using CSS width/height, fixes #4011 [thx foysavas]
  • Update sortable functional test with onUpdate counter
  • Make more Element extensions unit tests work on Safari
  • Add the assertMatch unit test assertion for asserts with RegExps [thx Ian Tyndall]
  • Fix a problem with Effect.Move causing “jumping” elements because of very low float numbers in some situations
  • Fix a missing semicolon in dragdrop.js, fixes #5569 [thx mackalicious]
  • Fix a slight inaccuracy with Effect.Scale that could lead the scaling to be one pixel off
  • Be more prototypish with Effect.Transitions.linear
  • Make Effect.Scale recognize font sizes that use the pt unit, fixes #4136 [thx aljoscha]
  • Fix IE hack in Effect.Opacity, fixes #5444 [thx nicholas]
  • Fix IFRAME layout fix for IE and Autocompleter, fixes #5192 [thx tommy skaue]
  • Fix only option in onEmptyHover, fiex #5348 [thx glenn nilsson]
  • Fix Effect.BlindDown and SwitchOff handling of supplied callbacks, fixes #5089 [thx martinstrom]
  • Fix a problem with field focus on Ajax.InPlaceEditor and loading external text, fixes #4988, #5244 [thx rob]
  • Do not attempt to scroll if scrollspeed is 0/0, fixes #5035 [thx tomg]
  • Fix a problem with Sortable Tree serialization, fixes #4939, #4688, #4767 [thx Sammi Williams]
  • Fix an endless loop with sliders, fixes #3226, #4051, #4765 [thx jeff]
  • Make autocompleter work with update DIVs that have scrollbars, fixes #4782 [thx Tommy Skaue]
  • Corrected options parsing on switchoff effect, fixes #4710 [thx haldini]

JavaScript Model-View-Controller with Dojo toolkit

You probably know how I love design patterns and apply them all over CF ... You also know I love Dojo :) ... I just found this nice article showing how to apply MVC in JavaScript with Dojo. I don't extensively use JavaScript, but it's a nice implementation.

updated to blogcfc 5.1.004

I just updated my blog from v5.004 to 5.1.004. I was reading in the blogsphere that this update was a bit of a hassle, or did not go smoothly for some people. In my case, so far so good (knock on wood). I just upgraded 5 mins ago and thus far nothing's broken. I backed up my entire 5.004 folder and overwrote everything with the new version; then I modified some custom files I have, such as application, layout, admin entry pages (fckeditor), ping rpc .. that's it ...

If someone notice something broken please let me know.

Thanks again Ray, you rock!

CFMX7 + W2k3sp1 = Access is denied

I just can't believe there is no official documentation on this issue. If you ever tried to install ColdFusion MX7 on a Windows 2003 Server with sp1 pre installed, your ColdFusion will not install properly.

I just tried to install it over 20-30 times, changing settings, nt security, firewall, web server, jrun, man .. everything! I tried to install it on an AMD 64 bit CPU running Windows 2003 Server. The 64 bit threw me off, and I almost returned it and ordered a new system... the strange fact is that I have other AMD 64bits running ...

Regardless of the installation type, standalone, multiserver, using the built-in web server, iis, or apache, it will always finish the install with errors. If you look at the logs you will see 2 or 3 non-fatal errors:

ERROR - jrun.xmljava.io.FileNotFoundException: C:\JRun4\tmpmove.bat (Access is denied)

or

ERROR - jrun.xmljava.io.FileNotFoundException: C:\CFusionMX7\tmpmove.bat (Access is denied)

Web Server Connector Configuration Error
Status: ERROR
Additional Notes: ERROR - JNDI port 2902 for server cfusion is not active

The last one I don't have the exact error, but it was something along the line of cannot find C:\CFUsionMX7\lib

Missing the entire /lib folder does not look so 'non-fatal' to me. Anyways, ColdFusion would not start. After trying everything known to man, I even tried to copy the /lib folder from another server.... nada, nothing.

I found two solutions to this problem:
1) Reinstall sp1 on top of the pre-installed sp1.
2) A little easier, and I still don't know why this works, install CF with the silent mode. Run the CF install file from a command line (DOS box) with "-f silent.properties" and it will take 2 mins to install. Silent.properties is a file that you must create using a text editor. See this technote for details.

I installed it silently with the built-in server, and then manually attached the IIS connectors. It also installed the Report Builder, I guess it's part of the silent install... so I removed it after it was done. I kept a copy of the silent.properties if anyone needs it, but it's close to the template provided in the technote.

Adobe should document this issue! Next time you're installing CFMX7 on a W2k3 box, remember this post, it may save you days.


More Entries

This blog is running version 5.9.003. Contact Blog Owner