Monthly Archives: December 2010

Phil 12.17.2010

8:00 – 4:30VISIBILITY

  • Meeting with the new TD of S2F, who’s name I can’t recall. It went well. He want’s a diagram of the tables in PPM to figure out what he can do with them. He also liked the idea of being able to use the scripting engine to read and write RESTfully to a Sharepoint DB. Something that he’d like developed is PKI-enabled opening of a dashboard or slide show in VISIBILITY. More as this progresses.
  • Spent the morning getting a printout of the structure of PPM.
  • More work on the Telnet client/OS interface framework

Dong Shin 12.17.2010

  • created Maven SWC Project, FGMUtils, using Flex SDK 4. Adding stuff as we go
    • added ConfigManger, Loggers
    • installed, deployed to fgmdev.com, checked in to svn as well
  • PPM ER Diagram for customer?
  • add debug flag to pom.xml for Flex App
    • <debug>true</debug>

Mike 12.16.2010

  • Started combing everything in to a new application framework which is going to look at lot more like a Mac desktop
  • I started out trying to create 2 separate Flex library project: FGMUtils and FGMGraphicUtils but all the graphics stuff required references to FMUtils so I just combined them in to FGMCoreLib
  • Created a MenuBar that pulls it’s menu option from another class that manages them.  This other class will monitor the data model and listen for event pertaining to menu options (maybe a swf module gets loaded with new apps or who knows what).  It also removes all that code from the main app file which can get out of control with a massive switch case statement
  • Added the creation date class Dong found in to my debug panel after updating it to work in Flex 4

Next on the To Do:

  • Background images
  • Add in the Dock bar
  • Log in screen

Dong Shin 12.16.2010

  • deployed BlazeDS jars to one single Group ID – com.adobe.blazeds
    • flex-messaging-common 4.0.0.14931
    • flex-messaging-core 4.0.0.14931
    • flex-messaging-opt 4.0.0.14931
    • flex-messaging-proxy – 4.0.0.14931
    • flex-messaging-remoting – 4.0.0.14931
    • cfgatewayadapter – 4.0.0.14931
    • xalan – 2.6.0
    • flex-rds-server 1.5.0
    • commons-codec – 1.3
    • commons-httpclient – 3.0.1
    • commons-logging – 1.0.4
  • finally got BlazeDS up and running from Maven
  • flexmojos:flexbuilder doesn’t create project files properly for Flex SDK 4.0, manually add name spaces
  • Flex 4 webapps needs some dependencies? These are added to the output directory from Flash  Builder, but not included from pom.xml…. causing Remote Methods to fails and other problems….. updated pom to use these, but fails!!!!
    • framework_4.5.0.17689.swc
    • mx_4.5.0.17689.swc
    • osmf_1.0.0.16316.swc
    • rpc_4.5.0.17689.swc
    • spark_4.5.0.17689.swc
    • sparkskins_4.5.0.17689.swc
    • textLayout_2.0.0.139.swc
  • using Flex 4.0 SDK results in different swc’s
    • framework_4.0.0.14159.swf
    • osmf_flex.4.0.0.13495.swf
    • rpc_4.0.0.14159.swf
    • spark_4.0.0.14159.swf
    • sparkskins_4.0.0.14159.swf
    • textLayout_1.0.0.595 ????? 4.0.0.14159?
  • turned out Maven builds swc included
  • services configuration needed in Flex Project in order to work with BlazeDS – source/main/resources directory

    Phil 12.16.2010

    7:30 – 9:30VISIBILITY

    • Meeting with S33P folks Thursday the 23rd at 11:00
    • Brought in my other old windows box to Linuxify

    9:30 – 12:30 FP

    • Finishing paper
    • Ordered an audio oscillator and small amplifier kit. I had the thought last night that sound plus vibration could either augment the kinetic interaction, or possibly replace it. If that’s true, then it’s possible that we might be able to get by with simple force sensitive resistors, which would be pretty cool…

    12:30 – 5:30 VISIBILITY

    • Working on commons-net telnet sandbox application
    • Hmmm. MavenAssist isn’t creating eclipse-compatible jars. Looking into that.
    • Success!!!  To get the listing below, the program started telnet, logged in to 127.0.0.1, and sent the command ‘ls -la’ to the Cygwin intetd:
    • drwxr-xr-x+ 1 phil.feldman ????????       4096 2010-12-15 13:52 .
      drwxrwxrwt+ 1 phil.feldman Administrators    0 2010-12-15 13:26 ..
      -rw-------  1 phil.feldman Administrators  328 2010-12-16 17:02 .bash_history
      -rwxr-xr-x  1 phil.feldman ????????       1150

    Dong Shin 12.15.2010

    • set up dataObjectServer to use BlazeDS
    • use <finalName>${project.artifactId}</finalName> to build swf and war files, default is artifactId.version!!
    • trying to get blazeDS up and running…. looks like missing some jar files.

    Mike 12.15.2010

    • Fixed a problem with DynamicPanels getting lost to the right / bottom out of bounds of the application, as usual it was the parent’s fault
    • Fixed several issues with panels getting states mixed up / display in the wrong size
    • Fixed issues with making a panel minimized before adding it to the display list
    • Got all the kinks out and DynamicPanel seems to be working well.  Did not add any resize animation as I’m almost positive it would screw up any layout that contain them.  Animations can be left to the layouts.
    • Documented the hell out of the component.  With documentaion and skin classes it’s 1,480 lines.

    Phil 12.15.2010

    8:00 – 4:00 VISIBILITY

    • Looks like the PPM new features meeting will be here Tuesday or Wednesday of next week at 11:00
    • PPM DB still growing and being used. After importing the data for Masha, no activity. Hmmm.
    • Let’s see if I can get the Cygwin telnet functioning…
      • Yes, after flailing until 2:00. In the end, I deleted the current install and pulled the version from the gatech ftp mirror. I think that the version at vatech may be corrupted.
    • Starting with the java user/telnet manager. I think it will need to do the following:
      • Create/Delete users. Note that this will have to be OS-specific.  In addition, in the case of cygwin on Windows, the user account will have to be added within cygwin as well by running mkpasswd as admin before the user can be logged in through telnet
      • Open a telnet channel on 127.0.0.1. Commands and responses go through this channel. For example “javac foo.java” is the command and error messages from the compiler are the responses.
      • Copy files from the client to the appropriate directory on the server (and with the correct permissions). This may require a pwd command to be run to determine where the user is. Or we do this all graphically (preferred), and keep track on the client
    • Spent some time pondering how apps might deploy using dynamically created virtual servers. Looks surprisingly straightforward?

    Tom.DeVito 12.14.2010(cygwin inetd configuration)

    This is how to get telnet running locally using cygwin:

    • Install inetutiles and tcp-wrapper package for cygwin (Use the gatech ftp mirror).
    • Run cygwin as Administrator or just run it if you have UAC disabled
    • Enter the command:
    • cygrunsrv -I inetd -d "Cygwin inetd" -p /usr/sbin/inetd -a -D
      • Or try this: cygrunsrv --install inetd --path /usr/sbin/inetd --disp "Cygwin inetd" --args -D
    • Open etc/inetd.config in VI and uncomment the line for telnet(should say “telnet stream tcp nowait root /usr/sbin/tcpd telnetd”)
    • Now that the service is installed you can start it with
      • cygrunsrv -S inetd
    • to start it or to stop it:
      • cygrunsrv -E inetd
    • Run telnet and enter “open 127.0.0.1 23”  enter your user name and password and the hippo should welcome you.

    Permissions were not required to be changed because localhost has full permission by default.  You may need to disable all the windows telnet features you enabled so that you don’t end up using the microsoft telnet client when you type telnet(best to do it anyways for security).  One kinda annoying thing if you use this manually is that as you type it puts a space between each letter and doesn’t delete the console characters when you back space.  I omitted a lot of stuff I did that I don’t think mattered in the end so if you have any problems tell me and I’ll figure out what exactly was missing.

    Mike 12.14.2010

    Started work on DynamicPanel for Flex 4 today:

    • Started by making a Resizeable panel that extends the Spark TitleWindow
    • Added logic for drag / drop moving of the panel
    • added in a resize button and a listener to the title bar for double-click maximizing
    • Created a SparkSkin to be the layout for the panel, including the buttons, title, content, and resize handle
    • Tried to put the minimized and maximized dimension stuff in the skin but it turns out that if explicit(Width|Height) is set in actionscript, the skin can no longer resize itself
      • This is a pretty annoying fact because if we want to reskin out minimizable panel down the road with, say, a title bar that’s smaller, we have to go in to the non-skin related code and change the minimized height instead of doing it in the skin where it belongs
    • Started putting logic in for minimize/maximize/restore size and position but either I’m making a mistake saving/setting values, the transitions are screwing things up, or the states are getting mixed up/overlapped somewhere

    Phil 12.14.2010

    7:30 – 3:30 VISIBILITY

    • For the record, I’d like to state that it is too damn cold.
    • Fixed Masha’s data
    • Had a conversation with Christine about PPM. It looks like they are going to need a new section to track “real-time” inflows and outflows of cash from projects. Head’s up, Dong! Working on scheduling a meeting to go over things in detail.
    • Adding the Cygwin Telnet/Ftp server to my machine. So far, here are the steps (from http://www.wiley.com/legacy/compbooks/nilsson/InetdunderWindows2000.doc):
      1. Run “mkpasswd -l > /etc/passwd” at the Cygwin prompt.  This creates the passwd file which is similar in format and function to the Linux passwd file.  Run mkpasswd with no parameters for a usage summary.  You might need to add a -d parameter to grant domain users access.
      2. Edit /etc/passwd and delete everything but the accounts you want to have access permissions.  (In most cases, you’ll end up with only two lines in this file — your account and Administrator.)
      3. Make sure that your home directory (ie, c:cygwinhomephil.feldman) exists.
      4. Right-click “My Computer” and select Properties.  Click the “Environment Variables” button on the “Advanced” tab.  Add a new system variable…the name is CYGWIN and the value is “ntsec” (no quotes).  This tells Cygwin to use your Windows 2000 security.
      5. Add C:CygwinBin to the PATH system variable.  (Stick it at the end, separated from everything else with a semicolon (“;”)).
      6. Run “/usr/sbin/xinetd.exe –install-as-service”.
      7. Reboot!
      8. Well, that didn’t work. Started up the Windows Telnet server for now.  That’s just a matter of turning on the service.
    • Looking at the apache.commons-net package as my telnet interface

    Dong Shin 12.14.2010

    • working at home
    • DataObject
      • adding dependencies to the DataObject webapp project – lot more than Flex SDK 3.0?
      • modular webapp project doesn’t like properties…
        • set compiler using ${flexVersion} in SWF project
        • war project cannot figure out inherited ${flexVersion} property?
      • using 5.1.14 of mysql-connector-java, old 5.1.6 or 5.1.12?
      • using log4j 1.2.14, 1.2.15 causing missing artifact error!!!!
      • xerces 2.4.0 – org.apache.xml.*
      • found JDBC Utility for SQL ResultSet conversion to XML at http://www.developer.com/xml/article.php/10929_3329001_2/Converting-JDBC-Result-Sets-to-XML.htm
      • set up the server to post rest results in XML – done
      • downloaded the latest BlazeDS libs – 4.0.0.14931
        • flex-messaging-common.jar
        • flex-messaging-core.jar
        • flex-messaging-opt.jar
        • flex-messaging-proxy.jar
        • flex-messaging-remoting.jar
      • uploaded the BlazeDS libs to fgmdev.com repo – com.adobe.blazeds

      Christine 12.13.2010

      • On Friday, met with Dong who helped me get MavenAssist up and running; also learned more about POM files, dependencies, etc.
      • Spent time Friday learning what MavenAssist is about
      • Continued with MavenAssist today and tried to create an Air project with MavenAssist, which failed.
        • Error thrown was that Flex plug-in was needed for Eclipse
        • Contact Dong about Flex plugin and Eclipse version were compatible for Mac and installed on my machine (now I am using Flash Builder Burrito with Eclipse Helios 32-bit version.
      • Ran MavenAssist again – another error.
        • Now I’m told I MUST have Maven version 3 installed. And I thought I was set to go. If time permits tonight I’ll install version 3, otherwise the fun continues tomorrow.
      • Am documenting the various environments and what works/doesn’t work (esp. for Mac users) so the environment setup craziness is kept to a minimum

      Mike 12.13.2010

      • Finished up the focusing / unfocusing of tooltips
      • Combined the window dock and tooltipping so now docked windows will present a preview image in the tooltip much like Mac and Windows taskbars
      • Need to work on remaking DynamicPanel for Flex 4

      Phil 12.13.2010

      8:00 – 4:00 VISIBILITY

      • Spent some time with Brian on site this morning working out the details of what our server needs
      • Looking at ways to deal with interacting with the shell as a way of dealing with the server. Developers write code as text files that are compiled using whatever tools we integrate. Files are saved as files with some kind of namespacing. The key to all this is to have some kind of workable interface to the OS that is essentially a terminal window. From there we load commands, parse results, use command-line debuggers, etc.
      • Found a java telnet server that handles all the issues of sending commands to the OS and getting responses (and errors) back. It’s built around the same Runtime.getRuntime.exec() command that we are using in MavenAssist, just a lot more complete. It’s here: https://sourceforge.net/projects/pwts/. In addition to building a remote object around it, we should refit the version in MavinAssist.
      • Talked to Anne about Masha’s data woes. Promised to take a look at it tomorrow