Enter your email address to subscribe to this blog.

Recent Comments

Intro to Spring Security Core for Grails
Eric Pierce said: Thanks for these screencasts, Dan! You made it crazy simple to get up and running w/security core h... [More]

Removing duplicates from an array of objects
Arvind said: Great tip, can't thank you enough for this. [More]

Intro to Spring Security Core for Grails
Santosh said: Thanks much for putting up these screencasts. As the others here I'm a beginner and I've been having... [More]

Grails Spring Security Plugin - Logout postOnly setting
eriihine said: I still had some issues with this one. It seems that the href link is always generating a GET method... [More]

Intro to Spring Security Core for Grails
Dan Vega said: Just a heads up but I decided to write up a quick post on your question just in case it trips up any... [More]

Odd bug fixed in RocketFM

If you asked me to evaluate my knowledge of Flex / ActionScript I am not sure what I would say. I don't use them enough to say either way but I think at this point I understand programming enough to get around any language. RocketFM is my file manager application that I started a couple months ago and has turned into a great project. I found a strange bug and It was nothing I have seen before so I was not quite sure where to begin. First let's take a look at the issue and then we can walk through the path to the answer.

If you take a look at the video below you can see the bug. When you open a folder pay attention to the number and then watch as I scroll all the way down and then all the way back up. When you get back to the top the wrong folder is open / selected.

Continue Reading >>


Rocket FM Port

Someone emailed me about porting my RocketFM application over to another language such as Java/Groovy. I am unable to locate that email so please contact me if you are reading this. Thinking about that brought up some interesting questions for me that I would love some thoughts on. Right now I just have a single project that is hosted over at RIAForge. How can I create a new project based off of this. While most of the changes are back end I think there needs to be a few changes in a couple places and I am not quite sure how to make these changes available to others. Do I treat it as a totally new project? Any ideas would be great, thanks!

RocketFM: 2 New Features Explained

Today I thought I would walk you through 2 features I pushed into the repository last night. The first is the ability to download an entire directory by right clicking on it. The other was a naming issue with the zip file download so we are going to change how that works.

We will start with the ability to download an entire directory. Right now if you clicked on a directory and selected every single file in the directory you are essentially downloading that directory. The selected files are passed to a download method and if its more than one we pass an array of file paths to our download zip method. What we want to do is add a right clicking menu to our tree to download directory menu item. To do that we are going to update our Tree Item Renderer (com.rocketfm.customTreeItemRenderer). The only addition is the new download menu item and when its clicked we are going to dispatch a custom event named download directory that will pass the data for that tree item with it.

Continue Reading >>


ColdFusion Case Sensitive Directory Rename

Working through some bugs and upgrades to my RocketFM application I came across a pretty inter sting problem. I was trying to rename a directory from dan to DAN. It is the same directory but the file sytem is case sensitive so this should work right? Wrong! If you try and do this using cfdirectory you will get the following error.

The specified newdirectory attribute value is invalid.
c:\DAN already exists and cannot be overwritten. The exception occurred during a cfdirectory action="rename".

This is because of the fact that ColdFusion does not care about case. This was a bummer for me because users in the end will come back with I am unable to rename this directory and explaining the nature of case sensitivity is not really an answer. Lucky for me I always have a beast in the bullpen (Java) so this should be a pretty easy fix. This is the old rename directory method in my File manager component. To make sure we allow for case sensitive changes we can simply change our code to the following.


Real World Flex/ColdFusion: Part 11

This will be the last post in this series. While I will continue to add features to this project and share the details with you, I wanted to find a clear line where I could close this series. The last feature is probably the most important. What good is a file manager if you can't upload new files. This post will cover the upload component.

First we are going to create a new file components/RocketUploader. The component we are creating is going to be based on a Title Window because we are going to launch the uploader as a popup from our application. The layout of the component is pretty simple. I know we talked about layouts at the beginning of this series and I am doing the exact opposite of what I preached but I just like the look and feel of the panel component here. In the panel we have some buttons, a data grid to display the files and progress bar to show file upload progress.

Continue Reading >>


More Entries