<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
<title>AndreaCfm</title>
<link>http://www.andreacfm.com/</link>
<description>Web programming and development : Coldfusion,Javascript,Ruby and what I find cool!</description>
<generator>Mango 1.6</generator>

<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/andreacfm" /><feedburner:info uri="andreacfm" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
<title>Something about bundler and gems dependencies</title>
<description>&lt;p&gt;Since some months I have started to programm in Ruby and especially using the Rails framework. I have to say I find Rails so great that I realized, that after some months, that I can be quite productive knowing very little about Ruby itself. This tells you how powerfull can be a dsl written in Ruby and talks about the nice job Rails developers did but is not going to make me shine as a Ruby developer.&lt;/p&gt;
&lt;p&gt;I have decided to step back and I am finally going to open a Programming Ruby book seriously. I will go throught my Ruby discovering writing here my tests and anything I will discover in my learning Ruby travel. This will help me to fix some concept in my mind and hopefully someone else will learn from my mistakes. &lt;/p&gt;
&lt;p&gt;For the moment I discovered something about bundler I really didn't know before and I 'd like to share. I have just ended reading a post of Yehuda Katz about &lt;a href="http://yehudakatz.com/2011/05/30/gem-versioning-and-bundler-doing-it-right/?utm_source=rubyweekly&amp;amp;utm_medium=email" target="_blank"&gt;Bundler and Gems dependencies&lt;/a&gt; that really opened my eyes.&lt;/p&gt;
&lt;p&gt;Something from Yehuda post:&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Basic Versioning Rules for Apps&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;After bundling, always check your &lt;code&gt;Gemfile.lock&lt;/code&gt; into
version control. If you do this, you do not need to specify exact
versions of gems in your Gemfile. Bundler will take care of ensuring
that all systems use the same versions.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;After updating your &lt;code&gt;Gemfile&lt;/code&gt;, always run &lt;code&gt;bundle install&lt;/code&gt; first. This will conservatively update your &lt;code&gt;Gemfile.lock&lt;/code&gt;. This means that except for the gem that you changed in your &lt;code&gt;Gemfile&lt;/code&gt;, no other gem will change.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;If a conservative update is impossible, bundler will prompt you to run &lt;code&gt;bundle update [somegem]&lt;/code&gt;. This will update the gem &lt;strong&gt;and any necessary dependencies&lt;/strong&gt;. It will not update unrelated gems.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;If you want to fully re-resolve all of your dependencies, run &lt;code&gt;bundle update&lt;/code&gt;. This will re-resolve all dependencies from scratch.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;When running an executable, &lt;strong&gt;ALWAYS&lt;/strong&gt; use &lt;code&gt;bundle exec [command]&lt;/code&gt;. Quoting from the bundler documentation: &lt;em&gt;
In some cases, running executables without bundle exec may work, if the
executable happens to be installed in your system and does not pull in
any gems that conflict with your bundle. However, this is unreliable and
is the source of considerable pain. Even if it looks like it works, it
may not work in the future or on another machine.&lt;/em&gt; See below, “Executables” for more information and advanced usage.
&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Remember that you can always go back to your old Gemfile.lock by using &lt;code&gt;git checkout Gemfile.lock&lt;/code&gt; or the equivalent command in your version control.&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Executables&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;When you install a gem to the system, Rubygems creates wrappers for
every executable that the gem makes available. When you run an
executable from the command line &lt;strong&gt;without bundle exec&lt;/strong&gt;,
this wrapper invokes Rubygems, which then uses the normal Rubygems
activation mechanism to invoke the gem’s executable. This has changed in
the past several months, but Rubygems will invoke &lt;strong&gt;the latest version of the gem installed in your system&lt;/strong&gt;, even if your &lt;code&gt;Gemfile.lock&lt;/code&gt; specifies a different version. In addition, it will activate the &lt;strong&gt;latest (compatible) installed version of dependencies of that gem&lt;/strong&gt;, even if a different version is specified in your &lt;code&gt;Gemfile.lock&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This means that invoking executables as normal system executables
bypasses bundler’s locked dependencies. In many cases, this will not
pose a problem, because developers of your app tend to have the right
version of the system-installed executable. For a long time, the Rake
gem was a good example of this phenomenon, as most &lt;code&gt;Gemfile.lock&lt;/code&gt;s declared &lt;code&gt;Rake 0.8.7&lt;/code&gt;, and virtually all Ruby developers had &lt;code&gt;Rake 0.8.7&lt;/code&gt; installed in their system.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;As a result, users fell into the unfortunate belief that running
system executables was compatible with bundler’s locked dependencies. To
work around some of the remaining cases, people often advocate the use
of rvm gemsets. Combined with manually setting up application-specific
gemsets, this can make sure that the “system executables” as provided
via the gemset remain compatible with the &lt;code&gt;Gemfile.lock&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Unfortunately, this kludge (and others) sufficiently reduced the pain
that most people ignored the advice of the bundler documentation to
always use &lt;code&gt;bundle exec&lt;/code&gt; when running executables tied to gems in the application’s &lt;code&gt;Gemfile.lock&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;It’s worth noting that typing in &lt;code&gt;rake foo&lt;/code&gt; (or &lt;code&gt;anyexecutable foo&lt;/code&gt;) in the presence of a &lt;code&gt;Gemfile.lock&lt;/code&gt;,
and expecting it to execute in the bundler sandbox doesn’t make any
sense, since you’re not invoking Bundler. Bundler’s sandbox relies on
its ability to be present at the very beginning of the Ruby process, and
to therefore have the ability to ensure that the versions of all loaded
libraries will reflect the ones listed in the &lt;code&gt;Gemfile.lock&lt;/code&gt;.
By running a system executable, you are executing Ruby code before
Bundler can modify the load path and replace the normal Rubygems loading
mechanism, allowing arbitrary unmanaged gems to get loaded into memory.
Once that happens, all bets are off.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have to say I learn new things about Ruby  every day and I really have to thank devs like Yehuda that keep posting so interesting topics.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/something-about-bundler-and-gems-dependencies</link>
<guid>http://www.andreacfm.com/post.cfm/something-about-bundler-and-gems-dependencies</guid>
<category>bundler</category><category>ruby</category>
<pubDate>Sun, 05 Jun 2011 17:43:01 GMT</pubDate>
</item>
<item>
<title>Railo cfmap addEvent() support</title>
<description>&lt;p&gt;A couple of weeks ago I was reading a post from Raymond Camden that remembered me I completely forgot to add support to addevent() in Railo cfmap implementation. The blog post was quite interesting and showed a way to add streetview to a google map, generated by cfmap, using the Coldfusion.Map.addEvent function. Read the post &lt;a href="http://www.coldfusionjedi.com/index.cfm/2011/2/11/Adding-Google-Streetview-to-ColdFusion-CFMAP" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Of course code was not running in Railo due to the lack of the method in the Railo js library.&lt;/p&gt;
&lt;p&gt;I made a patch and support was added in Railo 3.2.1.005/3.3.0.005.&lt;/p&gt;
&lt;p&gt;So following the Ray example (all credits to Ray for the following code) you can run the following code in Railo and adding a streeview to your cfmap using the addEvent() function. &lt;/p&gt;
&lt;p&gt;&lt;script src="http://gist.github.com/835275.js"&gt;&lt;/script&gt;&lt;/p&gt;
&lt;p&gt;Please note that in Railo js library are available both the &lt;strong&gt;Railo&lt;/strong&gt; and &lt;strong&gt;Coldfusion&lt;/strong&gt; namespaces so &lt;strong&gt;Railo.Map.addEvent()&lt;/strong&gt; is equivalent as running &lt;strong&gt;Coldfusion.Map.addEvent()&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Have fun! &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railo-cfmap-addevent-support</link>
<guid>http://www.andreacfm.com/post.cfm/railo-cfmap-addevent-support</guid>
<category>railo</category>
<pubDate>Wed, 02 Mar 2011 09:30:18 GMT</pubDate>
</item>
<item>
<title>MongoDb Cache Extension for Railo - New Update</title>
<description>&lt;p&gt;A new update the the MongoDB Cache extension for Railo is on the extension provider.&lt;/p&gt;
&lt;p&gt;Some bug was fixed and performance improved by a better tuning of the query that respects the cache expiration timeout. In my tests I could reach 400 interactions ( put and get of 400 items ) in in average time of 1200ms. Pretty awesome!!!!&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/mongodb-cache-extension-for-railo-new-update</link>
<guid>http://www.andreacfm.com/post.cfm/mongodb-cache-extension-for-railo-new-update</guid>
<category>mongodb</category><category>railo</category>
<pubDate>Sun, 13 Feb 2011 18:35:58 GMT</pubDate>
</item>
<item>
<title>Railo WebSockets Gateway Extension</title>
<description>&lt;p&gt;I have just uploaded the Railo WebSockets Gateway Extension to the Railo preview extension provider.&lt;/p&gt;
&lt;p&gt;This extension enables you to launch a server that is capable to manage messaging from HTML &lt;a title="http://dev.w3.org/html5/websockets/" rel="nofollow" href="http://dev.w3.org/html5/websockets/"&gt;WebSockets&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt; The server runs on a dedicated port. Railo will receive notifications when a connection is opened, closed and any time a message is sent invoking a cfc listener class. The gateway can also being invoked via SendGatewayMessage so to allow your app to push message to all the connected clients.&lt;/p&gt;
&lt;p&gt;While only few browsers natively support WebSockets up to now exists many libraries that mange the failover to flash sockets or other technologies like ajax long polling etc... WebSockets are a great way to implement messaging and data pushing using well known technologies like javascript. The gateway just makes it a breeze pushing data from your Railo application to any connected client.&lt;/p&gt;
&lt;p&gt;You can find docs about the extension in the &lt;a href="http://wiki.getrailo.org/wiki/Extensions:WebSockets_Gateway" target="_blank"&gt;Railo wiki&lt;/a&gt; and some sample code cloning the following github repo https://github.com/andreacfm/websockets_example_apps.&lt;/p&gt;
&lt;p&gt;Please post any feedback in the &lt;a href="http://groups.google.com/group/railo" target="_blank"&gt;Railo Google Group&lt;/a&gt; and any bug in the Railo Jira bugtraker.&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railo-websockets-gateway-extension</link>
<guid>http://www.andreacfm.com/post.cfm/railo-websockets-gateway-extension</guid>
<category>railo</category>
<pubDate>Mon, 24 Jan 2011 19:44:17 GMT</pubDate>
</item>
<item>
<title>Railo MongoDB cache extension updated</title>
<description>&lt;p&gt;I have uploaded yesterday a main update of the MongoDB Cache extension for Railo. See installation details &lt;a href="http://wiki.getrailo.org/wiki/extensions:mongodb" target="_blank"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have improved the management of timespan and timeidle expiring using some incredible feature that MongoDB offers. &lt;/p&gt;
&lt;p&gt;1) Any time you ask for a key the plugin attempts to delete it running a MongoDB query ( optimized using index on any relevant field ) and then fetch it. If key is still there means that is a still valid entry.&lt;/p&gt;
&lt;p&gt;2) Any 20 seconds a clean process is runned so to keep the db more updated as possible and making the the flush operation on cacheGet() more efficient.&lt;/p&gt;
&lt;p&gt;In my test this has improved speed of about 30% delegating more operation to the db itself.&lt;/p&gt;
&lt;p&gt;The following code makes 2000 read/write operation in an average of 1500/1600 ms.&lt;/p&gt;
&lt;p&gt;&lt;pre class="brush: cf"&gt;
&amp;lt;cfset start = gettickcount()&amp;gt;
&amp;lt;cfloop from="1" to="1000" index="i"&amp;gt;
    &amp;lt;cfcache action="put" id="a#i#" value="#i#"&amp;gt;
    &amp;lt;cfcache action="get" id="a#i#" name="v"&amp;gt;
    &amp;lt;cfcache action="put" id="b#i#" value="#{value = i}#"&amp;gt;
    &amp;lt;cfcache action="get" id="b#i#" name="v"&amp;gt;
&amp;lt;/cfloop&amp;gt;
&amp;lt;cfset end = gettickcount()&amp;gt;
&amp;lt;cfoutput&amp;gt;#end - start# millis&amp;lt;/cfoutput&amp;gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Amazing !!!!!&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railo-mongodb-cache-extension-updated</link>
<guid>http://www.andreacfm.com/post.cfm/railo-mongodb-cache-extension-updated</guid>
<category>mongodb</category><category>railo</category>
<pubDate>Sat, 13 Nov 2010 09:20:12 GMT</pubDate>
</item>
<item>
<title>Railo Membase Cache Extension available for beta testing. </title>
<description>&lt;p&gt;&lt;img style="float: left; border: 0; margin: 10px;" src="http://www.andreacfm.com/assets/content/membase_logo.png" alt="" width="274" height="68" /&gt;&lt;em&gt;NorthScale Membase Server is an elastic key-value database that stores
web application data far more efficiently and cost effectively than it
can be stored in a relational database. With NorthScale Membase Server,
organizations can deploy a highly available, cloud-friendly data layer
that expands dynamically as application needs change, delivering
performance exceeding that of any other NoSQL solution. API compatible
with memcached, the de facto standard web caching software, Membase is
easy to use and supported by virtually every programming language and
application framework.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.northscale.com/products/membase_server.html" target="_blank"&gt;Membase&lt;/a&gt; gives you an easy way to access and use &lt;a href="http://memcached.org/" target="_blank"&gt;memcached &lt;/a&gt;as a key-value database. Membase is a very powerfull solution if you need a reliable, fast and distribuited cache engine. &lt;/p&gt;
&lt;p&gt;The Extension allows you to use Membase as a key/value cache for your
Objects (components), Templates, Queries and Resources (such as files
etc).&lt;/p&gt;
&lt;p&gt;More info can be found in the&lt;a href="http://www.getrailo.org/" target="_blank"&gt; Railo&lt;/a&gt; wiki : &lt;a href="http://wiki.getrailo.org/wiki/extensions:membase" target="_blank"&gt;http://wiki.getrailo.org/wiki/extensions:membase &lt;/a&gt;&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railo-membase-cache-extension-available-for-beta-testing</link>
<guid>http://www.andreacfm.com/post.cfm/railo-membase-cache-extension-available-for-beta-testing</guid>
<category>membase</category><category>railo</category>
<pubDate>Sat, 09 Oct 2010 18:14:50 GMT</pubDate>
</item>
<item>
<title>Railo MongoDB Cache Extension on Beta Test </title>
<description>&lt;p&gt;&lt;img style="border: 0; float: left; margin-left: 10px; margin-right: 10px; margin-top: 5px; margin-bottom: 5px;" src="http://www.andreacfm.com/assets/content/logos/mongodb-logo.png" alt="" width="256" height="117" /&gt;In these days I am really interested in &lt;a href="http://it.wikipedia.org/wiki/NoSQL" target="_blank"&gt;nosql&lt;/a&gt; tools and especially in the  &lt;a href="http://www.mongodb.org/" target="_blank"&gt;MongoDB&lt;/a&gt;  document databse. &lt;/p&gt;
&lt;p&gt;What amazes me about mongo is that is much more than a key value pair storage while it expose a quite complete query api, a full indexes support and an atomic Fast-In-Place data update.&lt;/p&gt;
&lt;p&gt;Over this MongoDB supports asynchronous replication of data between servers for failover and redundancy. This makes really easy to share and replicate data between a cluster.&lt;/p&gt;
&lt;p&gt;The result is that Mongodb is an incredibly fast and flexible document database. &lt;/p&gt;
&lt;p&gt;Following what &lt;a href="http://www.markdrew.co.uk/blog/post.cfm/couchdb-cache-extension-beta-for-railo" target="_blank"&gt;Mark Drew&lt;/a&gt; was  doing for CouchDb I thought was a good idea to implement a &lt;a href="http://www.getrailo.org/" target="_self"&gt;Railo&lt;/a&gt; Cache plugin that bring into Railo world the power of MongoDB used as cache engine. &lt;/p&gt;
&lt;p&gt;The extension implements the Railo Cache interface at 100%. This means that you can switch from any other cache that Railo support to MongoDb cache with safety. The driver serialize  any object ( or queries or templates etc... ) you want to cache and will reinflate them up when you need to read them. An index is created over the key of your cache objects so that reading them will be a breeze. The plugin also support the &lt;a href="http://www.mongodb.org/display/DOCS/Replica+Sets" target="_blank"&gt;mongodb replica Sets&lt;/a&gt; ( cluster )  and makes your application wait if a failover is in place.&lt;/p&gt;
&lt;p&gt;Many thanks to &lt;a href="http://www.markdrew.co.uk/blog/post.cfm/couchdb-cache-extension-beta-for-railo" target="_blank"&gt;Mark Drew&lt;/a&gt; that made the installation docs over the Railo wiki. You can find more info, installation step by step and details here: &lt;/p&gt;
&lt;p&gt;&lt;a href="http://wiki.getrailo.com/wiki/extensions:mongodb" target="_blank"&gt;http://wiki.getrailo.com/wiki/extensions:mongodb&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://wiki.getrailo.com/wiki/extensions:mongodb" target="_blank"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railo-mongodb-cache-extension-on-beta-test</link>
<guid>http://www.andreacfm.com/post.cfm/railo-mongodb-cache-extension-on-beta-test</guid>
<category>mongodb</category><category>railo</category>
<pubDate>Thu, 30 Sep 2010 19:17:13 GMT</pubDate>
</item>
<item>
<title>RailoAjax is going to close</title>
<description>&lt;p&gt;&lt;img style="border: 0; float: left; margin: 5px;" src="http://www.andreacfm.com/assets/content/logos/railoajax.png" alt="" width="95" height="99" /&gt;While this can looks like a bad new .... well it is not.&lt;/p&gt;
&lt;p&gt;Latest Railo BER ( 3.1.2.019 ) has included also the missing part of RailoAjax project into the Railo core distribution. From this point the development and maintenanace of the tags will be made directly from the Railo project itself.&lt;/p&gt;
&lt;p&gt;As per today Railo included the following tags:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cfajaxproxy&lt;/li&gt;
&lt;li&gt;cfajaximport&lt;/li&gt;
&lt;li&gt;cfdiv&lt;/li&gt;
&lt;li&gt;cfmap&lt;/li&gt;
&lt;li&gt;cfmapitem&lt;/li&gt;
&lt;li&gt;cfwindow&lt;/li&gt;
&lt;li&gt;cflayout and cflayoutarea ( just for tabs )&lt;/li&gt;
&lt;li&gt;ajaxonload function&lt;/li&gt;
&lt;li&gt;the js library that support the previous tags &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I am quite happy about this step. RailoAjax just started like a fun coding of the ajaxproxy and ended into the Railo core..... I really have to thanks all the Railo Team for the support received.&lt;/p&gt;
&lt;p&gt;So please note the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you have a RailoAjax extension installed into your server or we context please remove it before update to 3.1.2.019. Or if you have already updated just remove the extension and restart the Railo.&lt;/li&gt;
&lt;li&gt;The RailoAjax &lt;a href="http://projects.getrailo.org/projects/railoajax/" target="_blank"&gt;website&lt;/a&gt; and the &lt;a href="http://trac.getrailo.org/railoajax" target="_blank"&gt;trac&lt;/a&gt;  will be shutted down when Railo 3.2 will be delivered.&lt;/li&gt;
&lt;li&gt;The RailoAjax extension provider &lt;a href="http://railoajax.org/extensionProvider.cfc"&gt;http://railoajax.org/extensionProvider.cfc &lt;/a&gt; will be still available up to the 31 december 2010.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you have any issues please contact me or raise a &lt;a href="http://jira.jboss.org/browse/RAILO" target="_blank"&gt;JIRA&lt;/a&gt; tickect&lt;em&gt;&lt;/em&gt;. &lt;/p&gt;
&lt;p&gt;If you want to help coding new functionalities the source code is available on &lt;a href="http://github.com/andreacfm/railoajax" target="_blank"&gt;github&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railoajax-is-going-to-close-1</link>
<guid>http://www.andreacfm.com/post.cfm/railoajax-is-going-to-close-1</guid>
<category>railo</category><category>Railo Ajax</category>
<pubDate>Sat, 21 Aug 2010 17:12:09 GMT</pubDate>
</item>
<item>
<title>Mango Github Gists plugin</title>
<description>&lt;p&gt;&lt;img style="border: 0pt none; margin: 5px; float: left;" src="http://www.andreacfm.com/assets/content/logo_gist.png" alt="" width="152" height="41" /&gt;Something very cool about &lt;a href="https://github.com/" target="_blank"&gt;github&lt;/a&gt; services are &lt;a href="http://gist.github.com/" target="_blank"&gt;gists&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Gists are a sort of snippets than you can create, share and embedd using a simple js script tag. I have started to use them very often and I think I will that more and more in the future. JUst think about that gists are also plain git repo and as any git repo can be cloned and shared between your team.&lt;/p&gt;
&lt;p&gt;I have created a very simple Mango plugin ( mango in very easy when you want to create plugins !!! ) so that you can embed your gists in your mango posts.&lt;/p&gt;
&lt;p&gt;Syntax is incredibly easy .... just have a look &lt;a href="http://wiki.github.com/andreacfm/mango.gists/" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The mango auto install url is : &lt;strong&gt;http://github.com/downloads/andreacfm/mango.gists/com.andreacfm.mango.gists_1.0.zip&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can also download the zip or clone the source form the same GitHub repo.&lt;/p&gt;
&lt;p&gt;Have fun !&lt;/p&gt;
&lt;p&gt;&lt;script src="http://gist.github.com/525626.js"&gt;&lt;/script&gt;&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/mango-github-gists-plugin</link>
<guid>http://www.andreacfm.com/post.cfm/mango-github-gists-plugin</guid>
<category>mangoblog</category><category>plugins</category>
<pubDate>Mon, 16 Aug 2010 14:31:21 GMT</pubDate>
</item>
<item>
<title>CfEclipse and script based cfcs</title>
<description>&lt;p&gt;While the &lt;a href="http://www.cfeclipse.org/" target="_blank"&gt;cfeclipse&lt;/a&gt; team is working on giving support to the new scripting syntax added recently in cfml I falled into something that can help someone to have a better feeeling in the meantime.&lt;/p&gt;
&lt;p&gt;I was not aware, until yesterday, that this syntax is supported in a script based cfc:&lt;/p&gt;
&lt;p&gt;&lt;pre class="brush: cf"&gt;&amp;lt;cfscript&amp;gt;
component{
   
    public String function getname(String name="Andrea"){
        return name;
    }
    public String function getlastname(String lastname="Campolonghi"){
        return lastname;
    }
}
&amp;lt;/cfscript&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So while it does not really looks "amazing" this will give you code colouring and syntax highlighting. But, most important, the syntax is fully supported from ACF and Railo too ( did not test on OpenBD ).&lt;/p&gt;
&lt;p&gt;Some of you will be asking why to do that ? Just use cfbuilder .... and I agree. Cfbuilder is a great tool also if , in my opinion , lack of linux support. But I am one of those who are convinced that cfml deserves an open and strong ide to attract more developers so ... if you think like me consider to donate something to &lt;a href="http://www.cfeclipse.org/" target="_blank"&gt;cfeclipse project&lt;/a&gt;.&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/cfeclipse-and-script-based-cfcs</link>
<guid>http://www.andreacfm.com/post.cfm/cfeclipse-and-script-based-cfcs</guid>
<category>cfeclipse</category><category>cfml</category><category>eclipse</category>
<pubDate>Wed, 11 Aug 2010 12:08:09 GMT</pubDate>
</item>
<item>
<title>BlazeDS 3.2 integration in Railo</title>
<description>&lt;p&gt;&lt;img style="border: 0; float: left; margin: 10px;" src="http://www.andreacfm.com/assets/content/logos/flex.jpg" alt="" width="130" height="130" /&gt;In the &lt;a href="http://groups.google.com/group/railo?lnk=" target="_blank"&gt;Railo mailing lists &lt;/a&gt;are often required informations about the settings needed to implement calls via the AMF protocol. If you use the &lt;a href="http://trac.getrailo.org/installers/" target="_blank"&gt;Railo Installers&lt;/a&gt; ( thanks again Jordan for this !! ) anything should already being setted up and ready to use but in case of any needs there was a lack of public informations about this topic.&lt;/p&gt;
&lt;p&gt;We have now a nice &lt;a href="http://wiki.getrailo.org/wiki/Amf:configuration" target="_blank"&gt;wiki section&lt;/a&gt; where you can find a very exhaustive explanations of many aspect of this topic ( credits to &lt;a href="http://www.getrailo.com/index.cfm/about-us/railo-team/roland-ringgenberg/" target="_blank"&gt;Roland Ringgenberg&lt;/a&gt; ) .&lt;/p&gt;
&lt;p&gt;Have a nice Railo/Blaze Ds integration !!&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/blazeds-3-2-integration-in-railo</link>
<guid>http://www.andreacfm.com/post.cfm/blazeds-3-2-integration-in-railo</guid>
<category>amf</category><category>railo</category>
<pubDate>Tue, 27 Jul 2010 11:20:00 GMT</pubDate>
</item>
<item>
<title>Railo tip: cffile action touch</title>
<description>&lt;p&gt;For linux/unix user is quite common to use the command &lt;em&gt;&lt;strong&gt;touch&lt;/strong&gt;&lt;/em&gt; (from the shell) to update the last modified date of a file (to the current time) or to create a new file.&lt;/p&gt;
&lt;p&gt;You can do that as well from Railo :&lt;/p&gt;
&lt;p&gt;&lt;pre class="brush: cf"&gt;
&amp;lt;cffile action="touch" file="whatever.cfm"&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial, sans-serif; font-size: medium; "&gt;&lt;span style="border-collapse: collapse; font-size: 15px;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railo-tip-cffile-action-touch</link>
<guid>http://www.andreacfm.com/post.cfm/railo-tip-cffile-action-touch</guid>
<category>railo</category>
<pubDate>Wed, 30 Jun 2010 17:44:48 GMT</pubDate>
</item>
<item>
<title>StructNew takes arguments</title>
<description>&lt;p&gt;During last Sotr I was talking with &lt;a href="http://www.markdrew.co.uk/blog/" target="_blank"&gt;Mark Drew&lt;/a&gt; and &lt;a href="http://getrailo.org" target="_blank"&gt;Micheal Offner-Streit ( the Railo cto )&lt;/a&gt;  and we discovered one of the many gems hidden into Railo engine.&lt;/p&gt;
&lt;p&gt;Any cf developer has always fight with the missing support for a linked hash map in cfml. This lack has made a task  keeping a struct in a defined order. In railo you can simple do this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="brush: cf"&gt;
&amp;lt;cfset str = structNew('linked') /&amp;gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What you have now is a struct 100% similar to a normal struct that has the whole capabilities of a linked hash map. For example the map keep the elements into an ordered stack.&lt;/p&gt;
&lt;p&gt;You can read more in the &lt;a href="http://wiki.getrailo.org/wiki/FUNCTION:STRUCTNEW" target="_blank"&gt;railo wiki docs&lt;/a&gt;.&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/structnew-takes-arguments</link>
<guid>http://www.andreacfm.com/post.cfm/structnew-takes-arguments</guid>
<category>cfml</category><category>railo</category>
<pubDate>Wed, 02 Jun 2010 18:22:19 GMT</pubDate>
</item>
<item>
<title>Railo Amazon S3 extension included into core</title>
<description>&lt;p&gt;As you can read from the official &lt;a href="http://www.railo.ch/blog/index.cfm/2010/5/27/Paid-Railo-Extension-Amazon-S3-now-free-moves-to-the-core" target="_blank"&gt;Railo Blog&lt;/a&gt; the Amazon S3 extension will now be free to download and will be soon moved into the Railo core package. &lt;br /&gt;This is an amazing news from Railo and just one of the extra feature Railo will add in the next future. &lt;/p&gt;
&lt;p&gt;So let's stay tuned!!! &lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railo-amazon-s3-extension-included-into-core</link>
<guid>http://www.andreacfm.com/post.cfm/railo-amazon-s3-extension-included-into-core</guid>
<category>railo</category>
<pubDate>Fri, 28 May 2010 09:27:38 GMT</pubDate>
</item>
<item>
<title>Railo starts ajax support</title>
<description>&lt;p&gt;I am a bit late blogging about this but I had a quite 'intense' maech. &lt;/p&gt;
&lt;p&gt;Since version 3.1.2.009 &lt;a href="http://getrailo.org" target="_blank"&gt;Railo&lt;/a&gt; starts the ajax tags support . You can read more &lt;a href="http://www.railo.ch/blog/index.cfm/2010/3/24/Railo-Ajax-changes-in-312009" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Ok so what's teh big news? What make me proud is that I developed those tags and after a long debugging they are finally part of the Railo core engine. The tags comes from the RailoAjax project that will go on focusing on the remaining ajax tags to fill the gap with ACF ( that's the plan .... but it's a long road to do ....).&lt;/p&gt;
&lt;p&gt;This is an example of how a community effort can really contribute to the main project. I am sure more efforts will come in the future ... so if you an idea .... some spare time ..... and you wish to contribute do not hesitate to contact me .... Railo needs you.&lt;/p&gt;</description>
<link>http://www.andreacfm.com/post.cfm/railo-start-ajax-support</link>
<guid>http://www.andreacfm.com/post.cfm/railo-start-ajax-support</guid>
<category>railo</category><category>Railo Ajax</category>
<pubDate>Mon, 12 Apr 2010 18:39:44 GMT</pubDate>
</item>
</channel>
</rss>

