After doing my first example with CF8 and .NET, I got a little excited and wanted to do more with it. I am not really a .NET guy and have very little know-how of how it works. However, I have been trying to do something rather useful with it and I thought it might be a good idea to actually try to mimick the CFDirectory functionality using .NET objects. I have done that previously in Java as well but this time around its .NET .
For those, who are not aware, the mscorlib assembly is always included by default whenever .NET objects are created using Coldfusion. Therefore, we dont need to specify explicitly the “Assembly” attribute in the CFOBJECT or CreateObject call. Because my example uses System.IO.DirectoryInfo which is a part of mscorlib, so I dont need to specify an assembly here.
More »
We all know Coldfusion8 has some aded functionality for .NET integration. What that basically means is, Coldfusion can now interact with .NET assemblies simply by creating an object. We could always consume .NET webservices in Coldfusion in earlier versions but that had some datatype compatibility problems. In Coldfusion 8, it allows us to access native .NET objects as CFML objects and it also converts data types automatically. That sounds cool enough. So, I decided to go ahead and try it out, just a very little “hello world” kinda example. More »
I had some free time this weekend so I decided to work on some of the requested features of coldfusiondocs.com. I could not get a lot done but here is what I have done :-
The search now allows for a “type search” which means you can now search for e.g. Application framework tags, data manipulation tags etc. This was the most asked for feature. So here it is now!
Secondly, I really wanted to work on some way of bookmarking feature to be available. So I used this SWFAddress tool to implement some Deep Linking, it seems to work, however, I am still not confident that its got to a point where I want it to be. More to come on this later. But for now, just those minor updates have been implemented.
The app can be found here .
Any problems, please get in touch.
There is an interesting post from Radek here . I kinda agree that we as developers shouldnt be left with the job of having to deal with NULLs on our own. It would be better if there was some sort of inbuilt way to deal with it.
Back in 2001, when CFComet was live, I wrote a little script to read detailed drive information (windows only) via COM. I thought it might be a good idea to post it here as well. This code makes use of the FileSystemObject and displays some useful information. I did a little search and its still Live. Here is the code :- More »
I have just put up a new project at riaForge ( http://diggcfc.riaforge.org/ ). The purpose of this CFC is to interact with Digg API and retrieve information from it. Currently it supports the following methods :-
getUser() - get user information from Digg (must be a registered Digg username)
getContainers() - Digg calls its main categories as Containers, so this gets all available containers.
getTopics() - All Topcs available
getDiggsByuser() - Diggs by a particualr user.
getStoryById() - if you know the storyId, this will get it for you.
getCommentsByStory() - all comments for a particualr story
getStories() - get all latest stories (popular, hot, upcoming or top)
getStoriesByContainer() - get all latest stories from a particualr container/category.
There is a usage example file in the zip. Code is also available from SVN here (http://svn.riaforge.org/diggcfc.)
Hope its useful for some out there.
As a minor update, I have just setup Forums on coldfusiondocs.com for users to report bugs/issues/feature requests etc.
Its here. http://www.coldfusiondocs.com/forum/ (yes, its the Galleon Forums by Ray Camden, thanks Ray:) ).
I just came across this so I thought I should blog. I always used a custom UDF whenever I had to use dump inside cfscript and because I happen to write most of my code inside CFSCRIPT, I needed it a lot. But Apparently, you can do this as well using the adminapi.
More »
As a result of feedback from one of my previous posts , I have made a few changes based on the feedback and the site is now live. This site is basically about giving a new face to the Coldfusion documentation, valid upto the latest version.
Website : www.coldfusiondocs.com
Documentation : www.coldfusiondocs.com/app/
I’ve got a scheduled task running that generates a file and sends the file over to a FTP server every day. I have been expereincing some very inconsistent behaviour with the way this works.
Almost 50% of the time, the FTP connections gets opened and then when it tries to upload the file, it fails. If I just go in and re-run the scheduled task, there is a chance that it might work in the first attempt but if not, it works in the second attempt. When I try to access the FTP server via other means like command prompt or FTP clients, I never get any kind of timeouts or connection problems. I tried increasing the timout on CFFTP tag but didnt help as well.
Does anyone know if this is something to do with the CFFTP tag ? has anyone else come across this before. ?