Category: elbow
-
Project Elbow: FileManager
Another night of programming. Since it’s just not a good idea for loaded modules to be calling the FileLoader (or SQLManager) classes directly, I’ve created the FileManager class to load files for them. The FileManager also limits the numbers of files being simultaneously loaded to a preset number so in case the files are actually…
-
Project Elbow: Files by Name
The SQLManager class was extended to manage a table that maps a logical filename to a cache ID. The FileLoader class was extended to accept either a FileId or string (filename) in its constructor. Once FileLoader.load() is called, if the class was instantiated with a filename, then it will search the database for a mapping…
-
Project Elbow: Using the Adobe AIR SQLite Database
Much happy face this morning. Yesterday I worked from like 1:30am ’till 5 on trying to store the media files downloaded from the Elbow service provider in the SQLite database provided by the Adobe AIR platform. In my mind, this was a better alternative than caching the file on the PC’s file system, but I…
-
Project Elbow: Working with flash.data.SQL
Joe Winett 32 minutes ago near Shawnee Getting back into 100% gear mode today, less spaz, more bacon. Trying to learn AIR’s on-board SQL server before work. Like · · Share Joe Winett And, wouldn’t you know it, it’s easy. I swear, everything Macromedia and then Adobe did with Flash/Flex/AIR is easy. about an hour ago · Like Joe Winett And, of course, all…
-
Project Elbow: Storing Metadata Along with File
Woke up at 2:30, so decided to do some Elbow. Decided I needed a more spread out directory structure for the cache files. I could probably look up the most efficient way to do this, cross-platform, or by using some AIR facility, but 26 top level directories each leading to 26 second level directories is…
-
Project Elbow: Transparent Caching
The FileLoader class now moves the downloaded file into a hashed directory system. When a new FileLoader is created and load() called, the class first checks to see if the file already exists in the directory system. If so, it transparently dispatches the Complete event. The FileManager class is actually used to create FileLoader instances.…
-
Project Elbow: Magic Cookie + AS3 Plus is not PHP Dot
I woke up at 5 this morning. I need to leave for work at 7, so I decided to do a little morning time rushing on Project Elbow. My PHP service script was crashing because I used a + instead of a . to stick the content-length onto the end of the content-length header. This…
-
Project Elbow: File Loader
The service provider for Elbow is written in PHP and the application and user files are stored in MongoDB. The Elbow desktop application is written in Adobe AIR. The AS3 FileManager and FileLoader classes were started and successfully tested. I decided to use a mixed binary and JSON format for the getFile service result. It…
-
Project Elbow: File Manager / Weak References to BitmapDatas in Actionscript Flash.Utils.Dictionary
The FileManager was written to run FileManagerTasks which run FileLoaders. The FileManager keeps a queue of tasks waiting to run and a list of the tasks running. The FileManager will not run another task if there are too many already running. It also won’t run a task if we’re already loading something with the…
-
Project Elbow: Files Collection
I’ve added a separate collection to map names to files. Two reasons: First, the GridFS collection will eventually be sharded and I’m pretty sure I read somewhere that you don’t want to be adding indexes to sharded collections — you want a separate collection to contain your indexed items and then use the primary shard…