RailsLogVisualizer meets Adobe AIR

I recompiled the Log Visualizer with Adobe AIR. You can download it here.

20070702RailsLogVisualizer.jpg

I tried it under Windows XP (Parallels) and it seems that the File.browseForOpen doesn’t fire the Event.SELECT event under Windows. So the bug is that you can open a file, but the application doesn’t know when you selected it. I was contacted by Logan today who wanted to know if there is a Windows version. So sorry for the Windows users out there for the moment. Note that the Apollo version of the Log Visualizer was working under windows.

Download: RailsLogVisualizer0.5.air

Posted by Daniel Wanja Tue, 03 Jul 2007 03:22:59 GMT


Comments

  1. philipp about 12 hours later:

    hi,
    File.browseForOpen works but you can’t initialize the file and the eventlistener in the same function. this works …

    <mx:Script>
    		<![CDATA[
    			
    			import flash.filesystem.File;
    			import flash.events.Event;
    			
    			private var myFile:File = File.desktopDirectory;
    			
    			private function openFile():void
    			{				
    				try
    				{
    					myFile.browseForOpen("open file...");
    				}
    				catch(e:Error)
    				{
    					
    				}
    				myFile.addEventListener(Event.SELECT, onSelectFileToOpen);
    			}
    			
    			private function onSelectFileToOpen(e:Event):void
    			{
    				trace("onSelectFileToOpen() " + e.target);
    			}
    		]]>
    </mx:Script>
    
  2. Daniel Wanja about 14 hours later:

    Now that you mention it, I had the same issue with the WebSnapshot browseForSave. I guess is was a little too late for me yesterday. I’ll try to Fix that and see if it works on both Windows and OSX. Still strange that it works on OSX. The fix Philipp mentions allows to avoid the File reference to be garbage collected I assume. At least that seemed to have been the issue with my browseForSave problem. Thanks.

  3. Ladislav Martincik 2 days later:

    Hey, I’m actualy running on MS Win, can you recompile the application for me, so I can use it. Thank you,

  4. E Lee 7 days later:

    Nice app! Does your Air app talk to a Rails server?

    I am unclear how the two can communicate. Thank you.

  5. Daniel Wanja 7 days later:

    The RailsLogVisualizer his is a pure AIR/Flex application. The first version had an embedded Ruby web server (not Rails but GServer) to allow accessing the file system. But since an Adobe AIR application provide that functionality I dropped the Ruby part. Hope that clarifies.

  6. Mutiny Design 15 days later:

    Is there anywhere I can go to overview the features of this app? Want to check it out against Google Analytics. Also what would you say the reliablity of the results are. I recently played about with collecting analytical data from PHP, to find out there are a great number of pitfalls you can fall into.

  7. Daniel Wanja 15 days later:

    The source code of a prior version that wasn’t pure Flex/AIR can be seen on http://rubyforge.org/projects/railslogvislzr/. I haven’t changed much on the analytical part. Now I can not garantie any reliability of the results :-) but the approach I took is pretty simple and all of the data that is aggregated comes from individual lines in the log files, so I avoid issues where some request data is spread over several lines but where the lines can be intermingled, resulting in erroneous analytical data. Any other pitfalls you could point me to?

  8. Simon about 1 month later:

    Same problem as stated above but on Mac OS X. The file dialog only works if you define the variable out of the function scope. So it’s not only a Vista thing. That’s why it’s still beta probably…

  9. Daniel Wanja about 1 month later:

    Did you try version 0.6 ?

  10. DAddYE 4 months later:

    Not work whit lastest air

  11. Gabbo Web Design 9 months later:

    Excellent application. I have been playing with the features and I find it very useful and very easy to use. I look forward to future releases.

  12. ICTINSITE about 1 year later:

    Is there anywhere I can go to overview the features of this app? Want to check it out against Google Analytics. Also what would you say the reliablity of the results are. I recently played about with collecting analytical data from PHP, to find out there are a great number of pitfalls you can fall into.

  13. website designers norwich over 1 year later:

    Wow, nice application