| item |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
cfObjective
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
railo
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>Before I forget, I thought I would point you to the code that I used to do my Top 10 Railo features presentation. </p>
<p>The presentation was actually written using the features and hence there are no slides as such, since it's a living presentation/document that I might add more features of bug fixes to. Hence it's also under version control over in GitHub! </p>
<p>Go check out the code yourself: <a href="https://github.com/cybersonic/railo-top10-features">https://github.com/cybersonic/railo-top10-features</a> and let me know what you think. </p>
<p> </p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/top10-railo-features-cfobjective-2013
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/top10-railo-features-cfobjective-2013
|
| pubDate |
Sat, 18 May 2013 13:15:32 GMT
|
| title |
cf.Objective() 2013: Top 10 Railo Features Presentation
|
|
| 2 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
personal
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p> </p>
<p>On April 6th, I shall be running the <a href="http://www.thefixevents.com/content/the-tough5-10-15-greenwich-park-2013" target="_blank">Tough 5</a> in Greenwich Park. This will be a challenge for me, an ex smoker and overweight developer with a penchant for drinking Jack Daniels, as the run is not just nice and level, it is up and down the undulating hills of the park! Should be fun! </p>
<p>Of course, this is the bit where you expect me to put up a link to my justgiving page or some other charity, but I don't want to do that.</p>
<p>I know a great diversity of people and I am sure you all know a worthy cause, so here is the deal: Just give five of something to the group/charity/community/product of your choice. That's it. Be it $5, £5, 5 minutes, or 5 hours, it doesn't matter. Just make sure you do it before Saturday April 6th.</p>
<p>Oh, and why not let me know what you did, either privately or by commenting below! </p>
<p> </p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/give-me-5-please
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/give-me-5-please
|
| pubDate |
Mon, 18 Feb 2013 14:39:29 GMT
|
| title |
Give Me 5... Please?
|
|
| 3 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
eclipse
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
Java
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>This is going to be a bit of a technical post, and it's to do with views in Eclipse. I tried to find this all over the place but in the end it was bits and pieces from different posts that actually gave me the answer, which is kinda odd. </p>
<p>So, here’s the problem. You are writing a plugin for Eclipse. You have a view, say a <code>TreeViewer</code> in there that is going to be populated with some content. You do the following:</p>
<p>
<script src="https://gist.github.com/3946901.js"> </script>
</p>
<p>All is great, we have a content provider which basically allows you to find children and parents in your Tree, and the LabelProvider which displays the right image and label for each item. </p>
<p>The content provider is notified when you change anything in the tree, but how about the other way?</p>
<p>So say I have a background process that updates <code>MyDataStore</code>? How do you then tell the tree to refresh?</p>
<p>This is something that has been bugging me for a long while and today I come up with a quick solution, which I hope works. </p>
<p>First off, we want to somehow subscribe to any changes that <code>MyDataStore</code> might recieve. To do that you can make <code>MyDataStore</code> Observable.</p>
<p>Now whenever MyDataStore is changed (for example, when someone calls the <code>updateMeSomehow()</code> method) you should also add the following calls within the method:</p>
<p>
<script src="https://gist.github.com/3946919.js"> </script>
</p>
<p>Now in your View, you can add a new observer, that will now have the <code>update()</code> methop triggered whenever something changes in myDataStore!</p>
<p>
<script src="https://gist.github.com/3946926.js"> </script>
</p>
<p>Now that’s not the end of it. If you were to call (as you would presume) <code>myTreeViewer.refresh()</code> you will get a <code>org.eclipse.swt.SWTException: Invalid thread access</code> error. That is because the TreeView is running in a UI thread, and the thread that updated your DataStore is probably in a different thread (usually). So what you need to do is go back to the Display thread and do the update asynchronously. </p>
<p>I know there are few people out there doing this, but hopefully this will help you, since I couldn’t find this answer that easily (in completeness).</p>
<p>References:
<ul>
<li><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Observable.html" title="Observable (Java 2 Platform SE v1.4.2)">java.util.Observable</a></li>
<li><a href="http://www.vogella.com" title="Java, Eclipse, Android and Web programming tutorials">Vogella</a>, a great site for Eclipse related stuff</li>
<li><a href="http://stackoverflow.com/questions/6292523/eclipse-plug-in-how-to-update-a-view-once-a-job-is-complete" title="java - Eclipse plug-in: how to update a view once a Job is complete - Stack Overflow">Stack Overflow question</a></li>
</ul>
</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/passing-events-back-to-your-view-in-eclipse
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/passing-events-back-to-your-view-in-eclipse
|
| pubDate |
Wed, 24 Oct 2012 15:52:39 GMT
|
| title |
Passing events back to your view in Eclipse
|
|
| 4 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
railo
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>Today on the Railo mailing list someone asked if there was a way to start railo from any directory and use that directory as the web root. A fair enough question and it got me intrigued.</p>
<p>So after a bit of research I come up with the following, of course this works for OS X, change the relevant bits to suit your OS (hey, send me how to do it and I shall update the post)</p>
<p>First off, I downloaded Railo Express (3.3.4.003) and saved it to:</p>
<p><code>/Applications/railo_runner</code></p>
<p>Then I copied the <code>./start</code> and renamed it to <code>./railo_runner</code></p>
<p>I added the path to <code>~/.bash_profile</code> by adding:</p>
<p>
<code>export RAILO_RUNNER=/Applications/railo_runner/<br />export PATH=$PATH:$RAILO_RUNNER</code>
</p>
<p>so now, to change the <code>railo_runner</code> script. Mine looks like this:</p>
<p><code>#!/bin/bash<br />CURRPATH=$(pwd)<br />cd $(dirname $0)<br />java -DSTOP.PORT=8887 -DSTOP.KEY=railo -jar -Xms256M -Xmx512M lib/start.jar -Drespath=$CURRPATH</code></p>
<p>The only thing I added was the current path and added it as a System property with the -D flag, as you can see by the <code>-Drespath=$CURRPATH</code>. All is good so far, now to tell Jetty to do something with it!</p>
<p>In the <code>/Applications/railo_runner/contexts/railo.xml</code> I changed the system property that is used for the resourceRoot:</p>
<p>
<code><?xml version=<span class='cc_value'>"1.0"</span> encoding=<span class='cc_value'>"ISO-8859-1"</span>?><br /><span class='cc_normaltag'><!DOCTYPE Configure PUBLIC <span class='cc_value'>"<span class='cc_comment'>-//Jetty//Configure//EN"</span> <span class='cc_value'>"http://www.eclipse.org/jetty/configure.dtd"</span>></span></span><Configure class=<span class='cc_value'>"org.eclipse.jetty.webapp.WebAppContext"</span>><br /> <span class='cc_normaltag'><span class='cc_formtag'><Set name=<span class='cc_value'>"contextPath"</span>></span></span>/<span class='cc_normaltag'><span class='cc_formtag'></Set></span></span><br /><span class='comment'><!--<br /> <Set name=<span class='cc_value'>"resourceBase"</span>><SystemProperty name=<span class='cc_value'>"jetty.home"</span> default=<span class='cc_value'>"."</span>/>/webroot/</Set><br />--></span><br /> <span class='cc_normaltag'><span class='cc_formtag'><Set name=<span class='cc_value'>"resourceBase"</span>></span></span><span class='cc_normaltag'><SystemProperty name=<span class='cc_value'>"respath"</span> default=<span class='cc_value'>"./webroot/"</span>/></span><span class='cc_normaltag'><span class='cc_formtag'></Set></span></span><br /> <span class='cc_normaltag'><span class='cc_formtag'><Set name=<span class='cc_value'>"defaultsDescriptor"</span>></span></span><span class='cc_normaltag'><SystemProperty name=<span class='cc_value'>"jetty.home"</span> default=<span class='cc_value'>"."</span>/></span>/etc/webdefault.xml<span class='cc_normaltag'><span class='cc_formtag'></Set></span></span><br /></Configure></code>
</p>
<p><code>Now I can do the following:<br />Earth:~ markdrew$ cd ~/Sites/<br />Earth:Sites markdrew$ mkdir demo_site1<br />Earth:Sites markdrew$ cd demo_site1<br />Earth:demo_site1 markdrew$ railo_runner</code></p>
<p>And voila! It creates the WEB-INF and you are good to go by http://localhost:8888!</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/running-railo-from-any-directory
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/running-railo-from-any-directory
|
| pubDate |
Tue, 11 Sep 2012 17:37:50 GMT
|
| title |
Running Railo from any directory
|
|
| 5 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
railo
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>Today I shared some important news about the Railo company and how we are setting up the future. </p>
<p>You can read the post over in the Railo blog: <a href="http://blog.getrailo.com/post.cfm/railo-at-cf-objective-the-evolution-of-railo">http://blog.getrailo.com/post.cfm/railo-at-cf-objective-the-evolution-of-railo</a></p>
<p>In essence we have set it up so we can say to all CFML developers:</p>
<blockquote>
CFML is HERE TO STAY
<br />We are MARKETING it<br />We are SUPPORTING it<br />We are DEVELOPING it<br />For the next 10 years and foreseeable future</blockquote>
<p>
Viva la Railo-vucion!</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/the-evolution-of-the-railo-company
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/the-evolution-of-the-railo-company
|
| pubDate |
Tue, 22 May 2012 10:56:25 GMT
|
| title |
The Evolution of the Railo Company
|
|
| 6 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
apple
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
OSX
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>I have recently moved home and I am of course, without cable internet for a while whilst they install it (don't get me started on that yet!). So that I can have a bit of internet, I am using my iPhone tethering feature, but I also want to connect to the house wifi (so I can share printers and what have you). </p>
<p>The problem comes in that whenever I connect to the wifi (that has no connection to the internet) my computer then ignores my phone (as it should) and therefore I don't have internet connection! </p>
<p>There is a simple way to change this in OS X: Go to the Apple Menu Item -> System Preferences -> Network</p>
<p> </p>
<p>Then click on the little gear item below the list of services and select "Set Service Order..."</p>
<p><img src="/blog/assets/content/SelectServiceOrder.png" alt="" width="301" height="693" /></p>
<p>And finally you can drag up (or down) the priority of the services! </p>
<p><img src="/blog/assets/content/ChangeServiceOrder.png" alt="" width="373" height="316" /></p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/setting-the-priority-of-network-connections-in-os-x
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/setting-the-priority-of-network-connections-in-os-x
|
| pubDate |
Tue, 01 May 2012 08:25:28 GMT
|
| title |
Setting the priority of network connections in OS X
|
|
| 7 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
Book
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
CFConferences
|
|
| 3 |
| Stomach Contents: Structure - struct |
| value |
cfObjective
|
|
| 4 |
| Stomach Contents: Structure - struct |
| value |
getrailo
|
|
| 5 |
| Stomach Contents: Structure - struct |
| value |
railo
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>A couple of weeks ago I run a competition to win my <a href="http://bit.ly/RailoBook" target="_blank">Railo 3 Beginner's Guide book</a>. So now is the time to announce the winners! </p>
<p>In first place is Ben B. who wins a signed copy of the book for his myth "The cost for creating a cfc object is minimal and has no real cost."</p>
<p>In joint second place, winning an electronic copy of the book are:<br />Ray V. with his myth "Is there really a cookie called CFMagic?"<br />and<br />Steven R. with his myth "ColdFusion will always timeout to the value I provide in the ColdFusion Adminsitrator."</p>
<p>In third place, winning a mention in my presentation is Brendan with his myth "cfml produced html is full of whitespace"</p>
<p>Congratulations to you all! I shall get the presentation updated for <a href="http://www.cfobjective.com/" target="_blank">cf.Objective</a>! </p>
<p>I have also put the code up on how I run the code and presentation on github, so you can check out the <a href="https://github.com/cybersonic/CFML-Mythbusters" target="_blank">CFML Mythbusters</a> presentation for yourself!</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/railo-book-competition1-winners
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/railo-book-competition1-winners
|
| pubDate |
Wed, 29 Feb 2012 09:04:03 GMT
|
| title |
Railo Book Competition: The Winners!
|
|
| 8 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
Book
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
railo
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>A couple of weeks ago, I posted about running a competition to be in my <a href="http://www.markdrew.co.uk/blog/post.cfm/competition-cfml-mythbusters-win-my-book" title="Competition: CFML Mythbusters! Win my book! — Mark Drew (Redux)- cf_etc...">CFML Mythbusters competition</a>, well the competition is now over and it's time to choose the winners</p>
<p>Before choosing them, I thought I would post the code I am using to choose them and the process, so to be nice and transparent.</p>
<p>First off, everyone could post multiple times and this went into a Google Docs spreadsheet, so they could have multiple entries. Since I could see how many entries there were, for example 1-20, this is easy.</p>
<p>I decided to create an array (because they are much sexier than lists), each position with the number of the entry. Then randomise those positions and then simply choose positions 1,2,3 and 4 from their positions in their array</p>
<p>So here is the code (not including the form, since I am pretty sure you know how to make a form.):</p>
<code><span class='cc_cftag'><cfscript></span><br /> aEntries = [];<br /> loop from=<span class='cc_value'>"#FORM.from#"</span> to=<span class='cc_value'>"#FORM.to#"</span> index=<span class='cc_value'>"e"</span>{<br /> ArrayAppend(aEntries,e);<br /> }<br /> <br /> collection = CreateObject(<span class='cc_value'>"java"</span>, <span class='cc_value'>"java.util.Collections"</span>);<br /> collection.shuffle(aEntries);<br /> <span class='cc_cftag'></cfscript></span><br /> <span class='cc_cftag'><cfoutput></span><br /> <span class='cc_normaltag'><ol></span><br /> <span class='cc_normaltag'><li></span>First Place: #aEntries[1]#<span class='cc_normaltag'></li></span><br /> <span class='cc_normaltag'><li></span>Second Places: #aEntries[2]# and #aEntries[3]#<span class='cc_normaltag'></li></span><br /> <span class='cc_normaltag'><li></span>Third Place: #aEntries[4]#<span class='cc_normaltag'></li></span><br /> <span class='cc_normaltag'></ol></span><br /> <span class='cc_cftag'></cfoutput></span></code>
<p>Did you spot the Java class? Yep! The java.util.Collections class is really handy for manipulating Arrays in different ways, and of course, since (in Railo at least) an Array can be used by the Collections it is perfect. </p>
<p>So what do you think? Is this a fair way to select some random people?</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/cfml-mythbusters-competition-choosing-the-winners
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/cfml-mythbusters-competition-choosing-the-winners
|
| pubDate |
Thu, 02 Feb 2012 16:09:54 GMT
|
| title |
CFML Mythbusters competition: Choosing the winners
|
|
| 9 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
cfeclipse
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
cfml
|
|
| 3 |
| Stomach Contents: Structure - struct |
| value |
coldfusion
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>Following on from a post that <a href="http://blog.whiletrue.com/2012/01/visual-studio-achievements-now-a-reality/" target="_blank">Visual Studio has an Achievements Plugin</a> (very funny if you play on the XBox, Steam or PS3) I was just thinking what Achievements could we unlock if we had a plugin for CFEclipse (or CFBuilder) whilst coding CFML?</p>
<p>I love some of the ones mentioned here: <a href="http://blog.whiletrue.com/2011/01/what-if-visual-studio-had-achievements/"> http://blog.whiletrue.com/2011/01/what-if-visual-studio-had-achievements/</a></p>
<p>As a starter for 10, here would be the ones I would add (and any sugestions welcome!) </p>
<ul>
<li><strong>Big Boy Pants</strong>: Finally created a CFC</li>
<li><strong>If you build it, they will come</strong>: Created a build.xml ant file</li>
<li><strong>Sign o' the Times</strong>: renamed an Application.cfm to Application.cfc</li>
<li><strong>So Close!</strong>: Created a CFC with more than 20 functions</li>
<li><strong>Confusious Say!: </strong>Created a function with more than 10 arguments</li>
<li><strong>"Where? What??": </strong>Have an include with lots of variables that come from "nowhere" (are set in the caller)</li>
</ul>
<p>(EDIT:And now for some reader contributions:)</p>
<ul>
<li><strong>The Over Clocker</strong>: 40+ hours in the IDE in a week
</li>
<li><strong>The Mole</strong>: 50+ hours in the IDE in a week
</li>
<li><strong>UberCoder</strong>: 60+ hours...
</li>
<li><strong>The Hacker</strong>: 70+ hours!
</li>
<li><strong>The Lawyer</strong>: 80+ hours!!!
</li>
<li><strong>"Scriptaculous!"</strong>: Create all your CFCs using cfscript syntax without using any tags at all.
</li>
<li><strong>"The Butler did it"</strong>: Hook up a continuous integration server to run all your unit tests.
</li>
<li><strong>"Lethal Injection? Bring it on!"</strong> Use <cfqueryparam> in all your database queries.
</li>
<li><strong>"Var she blows!"</strong>: Make sure you var all your local variables before you use them.
</li>
<li><strong>"Digging Deeper"</strong>:Call at least one underlying java method directly from within coldfusion.
</li>
<li><strong>"To infinity and beyond!"</strong>: Created an infinite loop.
</li>
<li><strong>"Manual-Complete"</strong> : Write a template over a set length without using auto-complete once.
</li>
<li><strong>"Hey Beavis, he wants to see your unit!"</strong> : Ran unit tests
</li>
<li><strong>"Old school"</strong>: Use any deprecated language feature.
</li>
<li><strong>"Everyone isn't created equal"</strong>: Use == and eq in the same file.
</li>
<li><strong>"....and then?"</strong>: Use && and "and" in the same file.
</li>
<li><strong>"..or you'll do what?"</strong>: Use || and "or" in the same file.
</li>
</ul>
<p>
And now for some Arnie based ones:
</p>
<ul>
<li><strong>"Stick around"</strong> - Use sleep().
</li>
<li><strong>"Who is your daddy and what does he do?"</strong> - Use CFlogin
</li>
<li><strong>"Consider that a divorce!"</strong> - First use of CFAbort
</li>
<li><strong>"I'm a cop you idiot!"</strong> - CFlocation tag with a 401 status code.
</li>
</ul>
<p>And back to some community based ones:</p>
<ul>
<li><strong>"If you build it, they will come (Corfield of Dreams)"</strong> - Make use of FW/1
</li>
<li><strong>"Big Ben"</strong> - Found Ben Nadel formatted comments.
</li>
<li><strong>"Use the Forge Luke!"</strong> - Found a Riaforge project.
</li>
<li><strong>"You say Rail-o, I say Rhylo, Let's call the whole thing off!"</strong> - Railo exclusive code found.
</li>
<li><strong>"01000100011101010110010001100101"</strong> - Use bitwise operators.
</li>
<li><strong>"Lost in space"</strong> - More than 10 CFC's without output="false".
</li>
<li><strong>"You're a bad mother BEEP"</strong> - Detect use of Chr(8)
</li>
<li><strong>"Chuck Norris"</strong> - All achievements earned
</li>
<li><strong>"Evil Dead, Chainsaw"</strong> - Detected use of Groovy (CFGroovy).
</li>
<li><strong>"Mezcal, not Tequila"</strong> - Bug found at the bottom of your file.
</li>
<li><strong>"Go Duplicate(your.self)!"</strong> - Copied, pasted and then saved without changing.
</li>
<li><strong>"You want the truth!?"</strong> - If statement containing >= 20 logic operators.
</li>
<li><strong>"At least open a window!"</strong> - 10 or more CFDump / WriteDump in a single file.
</li>
<li><strong>"Toilet break"</strong> - first use of cflog
</li>
<li><strong>"Getting rid of the evidence"</strong>: first use of CFFlush
</li>
<li><strong>"Laxatives?"</strong> - Several uses of CFFlush in a single file.
</li>
<li><strong>"Dr. Strangelove"</strong>: first use of ORM.
</li>
</ul>
<p>What would you add that is CFML specific? </p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/just-for-fun-what-if-your-ide-had-achievements
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/just-for-fun-what-if-your-ide-had-achievements
|
| pubDate |
Thu, 19 Jan 2012 14:13:51 GMT
|
| title |
Just for fun: What if your IDE had Achievements?
|
|
| 10 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
Book
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
railo
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<img src="http://www.markdrew.co.uk/blog/enclosures/mythbusters_busted..png" width="100" align="left" vspace="10" hspace="10">
<p>I shall be presenting the topic "CFML Mythbusters" at a couple of conferences this year so far (<a href="http://www.cfobjective.com/" title="cf.Objective() 2012: The Only Enterprise ColdFusion Conference... - cf.Objective()">cf.Objective</a> and <a href="http://opencfsummit.org/" title="Home - OpenCF Summit">OpenCF Summit</a>)!
<br>
So that you just don't have to hear about my chosen "myths" I thought I would open it up as a competition to all the readers of my blog! </p>
<p>
I shall be answering a lot of questions already, but would like to get some reader suggestions, for example, here are just some of the few I have (sent in by some very honorable people I have to say!):
<ul>
<li>“CFScript is always faster! ?Even when using for loops!” - Alfred Einstein</li>
<li>“Inline IF’s are much better than <CFIF>. I will stake my stake on it” - Abraham Van Helsing</li>
<li>“Is isDefined() bad?” - Abe Simpson</li>
<li>“<cfoutput>#Item#</cfoutput> is the only way to go” - Mohandas Gandhi</li>
</ul>
to give you some ideas!
</p>
<p>
Of course, it wouldn't be any kind of competition if you didn't win anything! So what's the prize I hear you ask?
<br>
<ol>
<li>First place gets a physical, signed copy of my book, <a href="bit.ly/RailoBook">Railo 3: Beginners Guide</a>, their question answered in the presentation (obiously) and my blog, the question dedicated to them and a big shout out when I cover their question EACH time I present it. WOW!</li>
<li>Two second places also get their question answered in the presentation, another shout out, and an electronic version of <a href="bit.ly/RailoBook">Railo 3: Beginners Guide</a>
</li>
<li>The third place ALSO gets their question answered in the presentation and this blog, and a shout out</li>
</ol>
</p>
<p>
I shall be drawing the results at the end of January 2012 so get your thinking hats on and then <a href="https://docs.google.com/spreadsheet/viewform?formkey=dDE5ZUpNeVZ1T21GbjFKU0s3MlJoaEE6MQ">submit your Myths to be Busted</a>!
</p>
<p>
EDIT: You can submit multiple suggestions!
</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/competition-cfml-mythbusters-win-my-book
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/competition-cfml-mythbusters-win-my-book
|
| pubDate |
Mon, 16 Jan 2012 16:37:05 GMT
|
| title |
Competition: CFML Mythbusters! Win my book!
|
|
| 11 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
Book
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
coldfusion
|
|
| 3 |
| Stomach Contents: Structure - struct |
| value |
railo
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>
<a href="http://bit.ly/RailoBook"><img style="float: left; margin-left: 10px; margin-right: 10px;" src="/blog/assets/content/railo_book_230.jpg" alt="" width="200" align="left" /></a>Happy New Year dear readers of my little blog! Just before the break for the holidays I was informed by the awesome guys and gals at Packt Publishing that my book "Railo 3: Beginner's Guide" was finally out!
</p>
<p>It wasn't enough that they told me it was out, they even sent me a few paper versions of the book, which I shall of course treasure as my first work in print! </p>
<p>Anyway, the book that is over 300 pages long (actually 364), has 10 chock-a-block chapters filled with Railo Server Goodness:
</p>
<ul>
<li>Chapter 1: Introducing Railo Server</li>
<li>Chapter 2: Installing Railo Server</li>
<li>Chapter 3: CFML Language</li>
<li>Chapter 4: Railo Server Administration</li>
<li>Chapter 5: Developing Applications with Railo Server</li>
<li>Chapter 6: Advanced CFML Functionality</li>
<li>Chapter 7: Multimedia and AJAX</li>
<li>Chapter 8: Resources and Mappings</li>
<li>Chapter 9: Extending Railo Server</li>
<li>Chapter 10: Creating a Video-sharing Application</li>
</ul>
<p> </p>
<p>Of course, if just reading that list is not enough, why not check out the <a href="http://bit.ly/RailoBookTOC">FULL listing</a> or even download a <a href="http://bit.ly/RailoBookChapter">Sample Chapter?</a></p>
<p>But instead of just skimming over the top, why not get a full copy if the book? You can get it <a href="http://bit.ly/RailoBook">HERE</a> from the Packt Publishing website! It comes in many flavours, including Paper,PDF, ePub and Mobi downloads and also on <a href="http://packtlib.packtpub.com/">PacktLib</a></p>
<p>If you do get a copy, let me know what you think! I am currently thinking of the next book too!</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/railo-3-beginner-s-guide-out-now
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/railo-3-beginner-s-guide-out-now
|
| pubDate |
Tue, 03 Jan 2012 11:29:56 GMT
|
| title |
Railo 3: Beginner's Guide out now!
|
|
| 12 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
apple
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
iPhone
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>If you have been having problems finding your Personal Hotspot Wifi from your iPhone after the slew of updates recently, here is how I managed to fix it. </p>
<p>Ok, so let's be clear, this is not about finding how to enable it, or if your cellular carrier allows you to use it, but rather, that you used to be able to find your phone in the list of Wifi hotspots, and now when you switch it on, you can't find it. </p>
<p>Not all the steps are necessary, but they worked for me:</p>
<ul>
<li><strong>Rename your phone to something without spaces or strange characters</strong>: Settings - General - About - Name</li>
<li><strong>Reset your network settings (your phone will reboot)</strong>: Settings - General - Reset - Reset Network Settings</li>
<li><strong>Restart your Personal Hotspot from Network (not from the main screen)</strong>: Settings - General - Network - Personal Hotspot</li>
</ul>
<p>I hope this helps!</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/enabling-personal-hotspot-on-your-iphone
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/enabling-personal-hotspot-on-your-iphone
|
| pubDate |
Tue, 15 Nov 2011 18:56:09 GMT
|
| title |
Enabling Personal Hotspot on your iPhone
|
|
| 13 |
| Stomach Contents: Structure - struct |
| description |
| Stomach Contents: Structure - struct |
| value |
<p>Edit: Now with screencast! see the bottom of the post</p>
<p>There are a number of times when a webservice returns some very complicated data, or inversely it requires some even more complicated parameters to be sent. In the past I have spent hours trying to figure out how to send the right parameters to remote method calls, but instead of wasting a long time using either Adobe ColdFusion's or Railo Server's Axis adaptors, I go straight to the source, and in this post, I shall show you how to do it. </p>
<p>To start off, I am just going to use a simple web service I have created, but you can do this for even more complex services and get an idea what they return. </p>
<p>This is the webservice I am going to be calling:</p>
<code><span class='cc_cftag'><cfcomponent output=<span class='cc_value'>"false"</span>></span><br /> <span class='cc_cftag'><cffunction name=<span class='cc_value'>"getTime"</span> returntype=<span class='cc_value'>"String"</span> access=<span class='cc_value'>"remote"</span> output=<span class='cc_value'>"false"</span>></span><br /> <span class='cc_cftag'><cfreturn Now()></span><br /> <span class='cc_cftag'></cffunction></span><br /> <span class='cc_cftag'></cfcomponent></span></code>
<p>Ok, not the most complicated, but I just want to use it so that we all know how to do the process. </p>
<p>Next, I use a tool that comes with axis called WSDL2Java (both ACF and Railo use this in the background when making webservice calls. In CF they are called stubs), to do this I create a Java Project in Eclipse.</p>
<img src="http://www.markdrew.co.uk/blog/assets/content/wsdl/webservice_01.png">
<p>Then I create a lib folder, into which I copy ALL the .jar files that come with Railo Server (all the files in , for example /Railo-Express/lib/ext/). Now you won't need ALL of them but it's easier than trying to find out which ones you need. </p>
<img src="http://www.markdrew.co.uk/blog/assets/content/wsdl/webservice_02.png">
<p>Next, by right clicking on your project > Properties > Java Build Path > Libraries I add all the .jar files that I copied over and click OK </p>
<img src="http://www.markdrew.co.uk/blog/assets/content/wsdl/webservice_03.png">
<p>Awesome, now we are ready to use the WSDL2Java function, create a new run configuration under the "Java Application" section , give it a name and then set the main class to be "org.apache.axis.wsdl.WSDL2Java"</p>
<img src="http://www.markdrew.co.uk/blog/assets/content/wsdl/webservice_04.png">
<p>Then in the arguments section, add the WSDL url (in my case http://dev.local:8888/RemoteService.cfc?wsdl):</p>
<img src="http://www.markdrew.co.uk/blog/assets/content/wsdl/webservice_05.png">
<p>Now you can click "Apply" and then "Run"</p>
<p>If you now click Refresh on your project you will see a new folder has been added to the root: </p>
<img src="http://www.markdrew.co.uk/blog/assets/content/wsdl/webservice_06.png">
<p>We can now move that folder to the "src" folder in our project to get it to compile:</p>
<img src="http://www.markdrew.co.uk/blog/assets/content/wsdl/webservice_07.png">
<p>Now for the real "Java Bit". I tend to write it first in Java to test the service, so create a new class in the src folder of your project, I called in Runner and make sure you tick the create "public static void main(String[] args)" checkbox, you should get some code like:</p>
<code>public class Runner {<br /><br /> /**<br /> * @param args<br /> */<br /> public static void main(String[] args) {<br /> <span class='cc_comment'> // TODO Auto-generated method stub</span><br /> }<br />}</code>
<p>Great, now let's use the ServiceLocator to get our webservice and call methods on it:</p>
<code>public static void main(String[] args) throws RemoteException, ServiceException {<br /> Remoteservice_wrapServiceLocator ws = new Remoteservice_wrapServiceLocator();<br /> String timeItem = ws.getRemoteServiceCfc().getTime();<br /> System.out.println(timeItem);<br />}</code>
<p>If we run this now we get the time returned from the webservice! But we are not finished yet. You want to use these stubs from your CFML code right?</p>
<p>First thing to do is wrap all this up as a JAR file, luckily this is pretty easy, just right click on the project and select Export... > Java > JAR file, and then select where you want to save it, I am saving it into my /Railo-Express/lib/ as a file called DemoWebService.jar.</p>
<p>Now to restart Railo so that the new jar gets picked up. </p>
<p>Ok, let's use this in Railo, in this example, I just used the CreateObject() function with the third param that defines which jar to use:</p>
<code><span class='cc_cftag'><cfscript></span><br /> ws = CreateObject(<span class='cc_value'>"java"</span>, <span class='cc_value'>"local.dev.RemoteService_cfc.Remoteservice_wrapServiceLocator"</span>, <span class='cc_value'>"/Applications/railo-express/lib/DemoWebService.jar"</span>);<br /> timeItem = ws.getRemoteServiceCfc().getTime();<br /> WriteOutput(timeItem);<br /><span class='cc_cftag'></cfscript></span></code>
<p>And there you go, you have called the method easily.</p>
<p>This is a simple example, but if you can do it from Java you can do it from CFML. If there are complex objects to pass, you can just create an instance of that object and pass it to the webservice too. </p>
<p><strong>Edit:</strong> I have now also created some screencasts so you can see how it works<p>
<p>Part One</p>
<!-- copy and paste. Modify height and width if desired. --> <object id="scPlayer" width="1002" height="716" type="application/x-shockwave-flash" data="http://content.screencast.com/users/MarkRailo/folders/Jing/media/ad25bc72-297c-45d1-9157-272e48dfdc20/jingh264player.swf" > <param name="movie" value="http://content.screencast.com/users/MarkRailo/folders/Jing/media/ad25bc72-297c-45d1-9157-272e48dfdc20/jingh264player.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/MarkRailo/folders/Jing/media/ad25bc72-297c-45d1-9157-272e48dfdc20/FirstFrame.jpg&containerwidth=1002&containerheight=716&content=http://content.screencast.com/users/MarkRailo/folders/Jing/media/ad25bc72-297c-45d1-9157-272e48dfdc20/00000003.mp4&blurover=false" /> <param name="allowFullScreen" value="true" /> <param name="scale" value="showall" /> <param name="allowScriptAccess" value="always" /> <param name="base" value="http://content.screencast.com/users/MarkRailo/folders/Jing/media/ad25bc72-297c-45d1-9157-272e48dfdc20/" /> <iframe type="text/html" frameborder="0" scrolling="no" style="overflow:hidden;" src="http://www.screencast.com/users/MarkRailo/folders/Jing/media/ad25bc72-297c-45d1-9157-272e48dfdc20/embed" height="716" width="1002" ></iframe> </object>
<p>Part Two</p>
<!-- copy and paste. Modify height and width if desired. --> <object id="scPlayer" width="996" height="716" type="application/x-shockwave-flash" data="http://content.screencast.com/users/MarkRailo/folders/Jing/media/780a5ae3-e085-4da3-a715-7e799a66ff85/jingh264player.swf" > <param name="movie" value="http://content.screencast.com/users/MarkRailo/folders/Jing/media/780a5ae3-e085-4da3-a715-7e799a66ff85/jingh264player.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/MarkRailo/folders/Jing/media/780a5ae3-e085-4da3-a715-7e799a66ff85/FirstFrame.jpg&containerwidth=996&containerheight=716&content=http://content.screencast.com/users/MarkRailo/folders/Jing/media/780a5ae3-e085-4da3-a715-7e799a66ff85/00000004.mp4&blurover=false" /> <param name="allowFullScreen" value="true" /> <param name="scale" value="showall" /> <param name="allowScriptAccess" value="always" /> <param name="base" value="http://content.screencast.com/users/MarkRailo/folders/Jing/media/780a5ae3-e085-4da3-a715-7e799a66ff85/" /> <iframe type="text/html" frameborder="0" scrolling="no" style="overflow:hidden;" src="http://www.screencast.com/users/MarkRailo/folders/Jing/media/780a5ae3-e085-4da3-a715-7e799a66ff85/embed" height="716" width="996" ></iframe> </object>
<p>Part Three</p>
<!-- copy and paste. Modify height and width if desired. --> <object id="scPlayer" width="1002" height="716" type="application/x-shockwave-flash" data="http://content.screencast.com/users/MarkRailo/folders/Jing/media/daaa1ef1-1dbe-4d94-a43a-26308af1b05e/jingh264player.swf" > <param name="movie" value="http://content.screencast.com/users/MarkRailo/folders/Jing/media/daaa1ef1-1dbe-4d94-a43a-26308af1b05e/jingh264player.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/MarkRailo/folders/Jing/media/daaa1ef1-1dbe-4d94-a43a-26308af1b05e/FirstFrame.jpg&containerwidth=1002&containerheight=716&content=http://content.screencast.com/users/MarkRailo/folders/Jing/media/daaa1ef1-1dbe-4d94-a43a-26308af1b05e/00000005.mp4&blurover=false" /> <param name="allowFullScreen" value="true" /> <param name="scale" value="showall" /> <param name="allowScriptAccess" value="always" /> <param name="base" value="http://content.screencast.com/users/MarkRailo/folders/Jing/media/daaa1ef1-1dbe-4d94-a43a-26308af1b05e/" /> <iframe type="text/html" frameborder="0" scrolling="no" style="overflow:hidden;" src="http://www.screencast.com/users/MarkRailo/folders/Jing/media/daaa1ef1-1dbe-4d94-a43a-26308af1b05e/embed" height="716" width="1002" ></iframe> </object>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/accessing-complex-web-services-with-railo
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/accessing-complex-web-services-with-railo
|
| pubDate |
Mon, 14 Nov 2011 15:28:45 GMT
|
| title |
Accessing complex web services with Railo
|
|
| 14 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
cfcamp
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
CFConferences
|
|
| 3 |
| Stomach Contents: Structure - struct |
| value |
html5
|
|
| 4 |
| Stomach Contents: Structure - struct |
| value |
iPhone
|
|
| 5 |
| Stomach Contents: Structure - struct |
| value |
PhoneGap
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p>
<a title="CFCamp 2011 | Home" href="http://www.cfcamp.org/?ChangeLanguageTo=en">CFCamp</a> this year was again, a great event! Some awesome presentations from everyone that presentend!</p>
<p>I did promise to post my <a href="/blog/enclosures/JQueryAndPhoneGap.pdf">JQuery Mobile and PhoneGap</a> presentation as soon as, so here you go!</p>
<p>Had a total blast today, I highly recommend this condensed conference! It's a total brain filler!</p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/cfcamp-jquery-mobile-and-phone-gap
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/cfcamp-jquery-mobile-and-phone-gap
|
| pubDate |
Fri, 28 Oct 2011 20:51:41 GMT
|
| title |
CFCamp: JQuery Mobile and Phone Gap
|
|
| 15 |
| Stomach Contents: Structure - struct |
| category |
| Stomach Contents: Structure - array
|
| 1 |
| Stomach Contents: Structure - struct |
| value |
cfcamp
|
|
| 2 |
| Stomach Contents: Structure - struct |
| value |
CFConferences
|
|
| 3 |
| Stomach Contents: Structure - struct |
| value |
getrailo
|
|
| 4 |
| Stomach Contents: Structure - struct |
| value |
railo
|
|
|
| description |
| Stomach Contents: Structure - struct |
| value |
<p> </p>
<p>Munich! City of Oktober fest and Pretzels! The big soft ones with butter inside. What could be more delicious than that? I tell you what is... CFCAMP 2011 is! </p>
<p>That's right ladies and gentle-folks, after a three year hiatus, there is going to be a stomping and knowledge-infusing conference in Munich this year, filled to the gills with awesome presenters and me! </p>
<p>For a measly €90 a ticket (going up to €119 in October, so get them whilst they are fresh!), your mind can be blown by the likes of Charlie Arehart (he of the inside secrets into ColdFusion 10!), Luis Majano (he of the mobile knowledge), Gary Gilbert exposing his JQuery to the public, Bilal Soylu will also be locking down your apps, and of course Andy Allan and myself, giving it all from our presenter's pulpit. </p>
<p>Sure you can't miss this?!</p>
<p>Head over to <del><a href="http://www.cfcamp.org/anmeldung.cfm">http://www.cfcamp.org/anmeldung.cfm</a></del><a href="http://www.cfcamp.org/registration.cfm?ChangeLanguageTo=en"> http://www.cfcamp.org/registration.cfm?ChangeLanguageTo=en</a> to get your tickets (<del>yep, it's in German, just use Chrome and translate it, you are a clever person right?</del> This time in English! Don't say we don't spoil you!)</p>
<p> </p>
<p> </p>
|
|
| guid |
| Stomach Contents: Structure - struct |
| isPermaLink |
NO
|
| value |
http://www.markdrew.co.uk/blog/post.cfm/cfcamp-2011-be-there-or-be-a-pretzel
|
|
| link |
http://www.markdrew.co.uk/blog/post.cfm/cfcamp-2011-be-there-or-be-a-pretzel
|
| pubDate |
Mon, 26 Sep 2011 10:12:28 GMT
|
| title |
CFCamp 2011! Be there or be a Pretzel!
|
|
|