Account: (login)

More Channels


Are you the publisher? Claim this channel

Search in 126,056,635 RSS articles:

Channel Description:

This is a personal blog of Ernst van der Linden about Coldfusion, Java and ColdBox.

Latest Articles in this Channel:

  • 10/22/08--09:48: ColdBox Spry Plugin 2.0 Released (chan 2690398)
  • I've updated the ColdBox Spry Plugin to version 2.0

    spryexample

    New implementations due many user requests:

    • TextField Validation
    • TextArea Validation
    • Radio Validation
    • Checkbox Validation
    • Select Validation
    • Password Validation
    • Confirm Validation

    I also added effect examples to the Spry live sample application.

    Download Spry Plugin + Sample App


  • 10/28/08--09:20: JS Calendar - ColdBox plugin (chan 2690398)
  • I've created a ColdBox plugin which makes use of JS Calendar of Dynarch.

     

    datepicker

     

    LIVE SAMPLE (requested by Sana):

    JS Calendar Sample

    Usage:

    #calendar.render()#

    Downloads:

    JS Calendar (unzip and place it in your includes directory. It should look like this: {YOURAPP}/includes/jscalendar/..)

    ColdBox Plugin (without JS Calendar!)


  • 11/04/08--14:53: It only takes three minutes... (chan 2690398)
  • We need some input about our new ColdBox CBOX 101 course.

    It only takes three minutes to complete the ColdBox CBOX 101 Training Seminar Survey

    Thanks!


  • 01/20/09--16:24: ColdBox Training Seminar, 14-15 March in Ontario (chan 2690398)
  • ColdBox Training Seminar will be held in Ontario, California on March 14-15th, 2009.

    It is a 2-day hands on intense training on our flagship course: CBOX-101.

    Check our press release


  • 02/08/09--08:46: WHOIS your Daddy? (chan 2690398)
  • I was playing around with querying a whois server. Actually I didn't know it was that easy...

    Here's the code:

    var whoisData = ''; var whoisClient = createObject("java","org.apache.commons.net.WhoisClient"); // use default whois server? if ( not isDefined("arguments.whoisServer") ){ arguments.whoisServer = whoisClient.DEFAULT_HOST; } try { whoisClient.connect(arguments.whoisServer); whoisData = whoisClient.query(arguments.whoisQuery); whoisClient.disconnect(); } catch (Any exception) { whoisData = exception.message; } return whoisData;

    Some examples:

    ? [whois.internic.net]

    #getWhoisData('?')#

    domain microsoft.com [whois.internic.net]

    #getWhoisData('domain microsoft.com')#

    =microsoft.com [whois.internic.net]

    #getWhoisData('=microsoft.com')#

    registrar TUCOWS INC. [whois.internic.net]

    #getWhoisData('registrar TUCOWS INC.')#

    -G -B 192.113.224.88 [whois.ripe.net]

    #getWhoisData('-G -B 192.113.224.88','whois.ripe.net')#

  • 02/25/09--10:30: What do you think...? MySQL Toad (chan 2690398)
  • I just came across Toad for MySQL

     image

    Please let me know if you think it's worth a try and if it's a good replacement for MySQL WorkBench (which contains more bugs after every update!)


  • 03/07/09--17:33: ColdDoc, created by Mark Mandel, ROCKS! (chan 2690398)
  • In case you missed it, check out http://colddoc.riaforge.org/

    Another piece of magic by Mark Mandel. It creates docs of your cfcs in JavaDoc-style and most important, it shows inherited methods too!


  • 03/09/09--09:48: OFC-CFC: Open Flash Chart - Coldfusion CFC Library (chan 2690398)
  • I just released version 1.0 of OFC-CFC on Google Code.

    OFC-CFC is a Coldfusion CFC Library which produces JSON-data for Open Flash Chart version 2.0

    The real power of Open Flash Chart is, you can update charts using JSON-data. Which means. update your charts using e.g. JQuery or Spry, without reloading a page.

    So you can create charts like:

    barchartAnimated

    Please let me know if you have any questions or remarks.


  • 04/05/09--06:21: IE auto content fit IFrame HACK (chan 2690398)
  • I ran into 'another' strange IE-browser behavior yesterday. It took me an hour of two to solve this iframe-height-problem.

    If you call this.document.body.scrollHeight in an iframe twice, the first value is wrong, but the second value is okay.

    Look at the example below:

    function autoFitIFrame(elementId){ if (!window.opera && !document.mimeType && document.all && document.getElementById){ parent.document.getElementById(elementId).style.height=this.document.body.offsetHeight+"px"; } else if(document.getElementById) { // ErnestoZ HACK: if you call scrollHeight TWICE, the second value is the real height of the iframe var scrollHeightWrong = this.document.body.scrollHeight; var scrollHeight = this.document.body.scrollHeight; alert(scrollHeightWrong); alert(scrollHeight); parent.document.getElementById(elementId).style.height = scrollHeight+"px"; } }

  • 09/30/09--19:11: Europe's First Official ColdBox Training 22-24 October in AMSTERDAM! (chan 2690398)
  • Tom de Manincor, my colleague and ColdBox Team Member, will give a 101+ ColdBox course in our office in Amsterdam.

    If you want to know the ins,outs and best practices of ColdBox, you should definitely attend Europe's first official ColdBox Course.

    ....and you finally have a good excuse to visit Amsterdam :-)

     Please check out Tom's blog for the ColdBox Course details

    UPDATE

    Well, it's NOT the first CB course in Europe, Luis gave one at CFUG in Munich last year.

    ...thanks Chris for notifying!

     


  • 12/02/09--21:20: ColdBox Book Released and READY for Purchase! (chan 2690398)
  • THE ColdBox Book has been released and is available for purchase. And YES it will be in ALL online book retails in 4-8 weeks.

    Thanks Luis for putting this masterpiece together!!

    Check out the ColdBox blog post for details.


  • 05/07/10--06:00: ColdBox JQueryUI Plugin (chan 2690398)
  • I work quite a lot with JQueryUI 1.8 lately, so time has come to create a new CB plugin. The JQueryUI Plugin handles (core)JS dependencies and CSS links for you, so no CFHTMLHEADs in your views anymore to include the proper files. You can just write:

    jQueryUI = getPlugin("JQueryUI",true); jQueryUI.setEnableWidget('tabs'); ...or to enable multiple widgets at once: jQueryUI.setEnableWidgets('tabs,datepicker'); What about effects and adding different ones along your code? Well, you can keep adding them and the plugin handles the boring stuff for you. jQueryUI.setEnableEffect('bounce'); // other code jQueryUI.setEnableEffects('bounce,blind'); // other code jQueryUI.setEnableEffect('explode'); Adding interactions is rather simple as well. The following enables 'droppable and sortable' and includes the proper core JS files for you. jQueryUI.setEnableInteractions('droppable,sortable'); What if you only need one specific core file only? jQueryUI.setEnableCore('ui.position'); If you want to know which effects/widgets are supported by the plugin, you could use CFDUMP e.g. Ok, we're almost done. What if you want to add your own CSS file which overrides style definitions from the core CSS? jQueryUI.setCustomCssLink('includes/css/mytabs.css'); ...which is exactly the same as: jQueryUI.setCustomCssLink(href='includes/css/mytabs.css',media='screen',renderPosition=arrayLen(jQueryUI.getCustomCssLinks())); As you noticed in the code above, we used an attribute 'renderPosition'. this attribute gives you control over the order how the CSS links are rendered. Having control over the rendering order is rather important for JS files (Thanks bro Tom de Man for notifying......or 'G. Ramsey' for the insiders). So let's say you have a couple of JS files which you're adding along your code and you want the last JS file being rendered as first. jQueryUI.setCustomJsLink('includes/js/myfile1.js'); jQueryUI.setCustomJsLink('includes/js/myfile2.js'); jQueryUI.setCustomJsLink(src='includes/js/myfile3.js',renderPosition=( arrayLen(jQueryUI.getCustomJsLinks() )-1 )); jQueryUI.setCustomJsLink(src='includes/js/myfile4.js',renderPosition=2); // first position jQueryUI.setCustomJsLink(src='includes/js/myfile5.js',renderPosition=1); Ok, all features discussed. Still interested?...let's set everything up.
    • Grab the JQueryUI plugin from RIAForge and place it into your plugin folder
    • Download jqueryui 1.8.1, unzip it into your includes folder (See screenshot below)

      image
    • Add the following lines to your coldbox config file
    • Place this code somewhere in your layout file. This renders the output of the plugin. #getPlugin("JQueryUI",true).render()#
    Enjoy!

  • 12/20/10--11:41: You want to join my team? (chan 2690398)
  • RemuNet , located in Amsterdam (The Netherlands), is looking for ColdFusion developers.

    If you live in the Netherlands and you would like to work in my team, please send an email with your resume to evdlinden[at]gmail.com.

    Qualification / Requirements

    • 2-5 years development experience with ColdFusion
    • 2-5 years of experience as database developer(not administrator) working with SQL
    • 2-5 years of experience with JavaScript, CSS, HTML
    • Basic understanding of OOP
    • Good written and verbal communication skills (English)

    Preferred skills but not required

    • Working knowledge of at least one ColdFusion MVC framework
    • Familiar with development tools such as Eclipse, SubVersion, Trac

    Education

    • Bachelor of Science in Computer Science or Mathematics (required)

  • 01/01/11--20:00: Do you remember this one? (chan 2690398)
  • Brings up memories ...those days where customers were extremely happy with LIST/EDIT/VIEW/DELETE.

    No AJAX, no  open source frameworks and no Google...

    cfserver3.1


  • 01/11/11--19:44: Convert RTF to Plain TEXT....Java Swing rescue (chan 2690398)
  • You want to convert RTF to plain text? Here's the code:

    var RTFEditorKit = CreateObject("java","javax.swing.text.rtf.RTFEditorKit").init(); var styledDocument = CreateObject("java","javax.swing.text.DefaultStyledDocument").init(); var reader = CreateObject("java","java.io.StringReader").init(arguments.richText); RTFEditorKit.read(reader,styledDocument,0); return styledDocument.getText(0,styledDocument.getLength());

    If you know a better solution, please let me know...

    ....and to strip HTML tags and let Java do the regex..:

    var HTMLEditorKit = CreateObject("java","javax.swing.text.html.HTMLEditorKit").init(); var styledDocument = CreateObject("java","javax.swing.text.html.HTMLDocument").init(); var reader = CreateObject("java","java.io.StringReader").init(arguments.html); HTMLEditorKit.read(reader,styledDocument,0); return styledDocument.getText(0,styledDocument.getLength());