Mar 4, 2019

AWS Products Catalog


I have been following AWS and their services very closely since last 3-4 years. However recently they have increased their pace of releasing new services and its becoming hard to keep up with the pace.

We rely very heavily on AWS services and it is very important to know the various services offered to reduce cost, time and effort for our customers.

Here is a compiled list of AWS services till date along with comprehensive collection of various learning resources e.g. Podcast, Videos, Courses, Quick Starts, etc.


References:

Technorati Tags: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Aug 2, 2012

Boost performance for your Flex Mobile apps


  1. Use assets swf instead of swc to have faster startup time.
  2. Always use splash screens.
  3. Use Tweener for animations instead of the one built into flex.
  4. For View based mobile applications, create your own implementation of ViewNavigator than the built in one, as it is slow and heavy.
  5. Create your own View Manager than relying on built in ViewNavigator as it doesn't cleanup memory properly which is utmost necessary for your poor mobile app.

More Readings:

Mar 29, 2012

Video Recording from Latin Flash Tour – Buenos Aires

Lee Brimelow's presentation from Buenos Aires. It contains a lot of information about the things he talked about MAX and also includes a Q/A session about the recent events surrounding Flash and HTML5.

Nov 10, 2011

How to disable Flash Player for various browsers

If you are creating a site where Flash is used, but want to have this site viewable in platforms where flash is NOT enabled/installed/supported, then you must think of the down level experience you will provide to your users.
Previously the down level experience was to show a "No Flash" module where users were suggested to install flash player by clicking on given link.
The other approach is to have an basic HTML version of your website as a down level experience.
What could be the best is that you use HTML5 capabilities of modern browsers and show higher rich content.

Whatever is your decision, you will have to develop a down level experience. Now there is a small problem during developing such down level experiences. The problem is that how would you test it locally before signing it off for Testers, and how would Testers test it.

There are two approaches to this:

  • Uninstall flash player (Plugin+ActiveX) from your system, test for down level. Install flash player again to check whether switching between down level and flash is working. Uninstall, Install, Uninstall, Install .... 
  • Disable the Flash Player (Plugin OR ActiveX/Addon). This seems to be very very easy and fast to test and develop. Now there are different ways Flash Player is installed in browsers. For Internet Explorer, it installs as ActiveX or Addon. For Firefox and Chrome, it installs as Plugin.
    • Firefox: Go to Tools > Add Ons > Plugins and do as directed in screenshot below
Disable Flash in Firefox
    • Google Chrome: Open new tab and write chrome://plugins and do as directed in screenshot below

Disable flash in Chrome

    •  Internet Explorer: Go to Tools > Manage Addons and do as directed in screenshot below. 

Disable flash in Internet Explorer 9
    • Safari: Click on the Preferences > Uncheck 'Enable plug-ins'.
    • Opera: Press F12 > Uncheck 'Enable plug-ins'.

Apr 4, 2010

Flex: Item Renderer v/s Item Editor

Item renderer only renders the particular row/column. The item in this case is read-only. It is always present in all controls.
However Item Editor allows you to display and make the item editable.
   1:  <mx:DataGridColumn dataField="vacationEligibility"


   2:      headerText="Vacation Days">


   3:          <mx:itemRenderer>


   4:              <fx:Component>


   5:                  <mx:Box>


   6:                       <mx:NumericStepper minimum="2" maximum="26" 


   7:                           stepSize="2"/>


   8:                       </mx:Box>


   9:               </fx:Component>


  10:          </mx:itemRenderer>


  11:  </mx:DataGridColumn>


Mar 29, 2010

Flex 4: ArrayList vs ArrayCollection

ArrayList and ArrayCollection both can be used to store and manipulate list data. Both supports flex data binding which can drive the watching object to update itself on data change.
However the key difference between ArrayList and ArrayCollection is that ArrayCollection has additional logic to sort and filter the list data however ArrayList is created specifically to hold and manipulate data and still be bindable. Thus ArrayList is lighter version of ArrayCollection.
Note: ArrayList is added in Flex 4 thus it will not be availalble in previous versions of flex sdk.
Technorati Tags: ,

May 8, 2007

Installing Red5 on SUSE Linux

The following are steps used to get Red5 running on SUSE Linux 10.0.

You would need the following files:

  1. JDK 1.5
  2. Apache Ant
  3. Red5

Before beginning this make sure you are running these commands as root.
  1. Make sure you have downloaded and installed the jdk 1.5 from java.sun.com
    • For this tutorial just download the .bin file. Change the permissions of the bin file
      chmod 755 jdk-1_5_0

      and then execute it.

      ./jdk-1_5_0

      Once it’s done you just copy the contents of the folder it made and put them in /usr/java/jdk1.5.0

    • Then set your JAVA_HOME variable. It may have to be set two different ways. First way:
      JAVA_HOME=/usr/java/jdk1.5.0

      and the second way.

      export JAVA_HOME=’/usr/java/jdk1.5.0′
  2. Install apache-ant. Install the binary for it.
    • Download and unzip the file. Then copy the contents to a directory, something like /usr/ant. Then set your ANT_HOME variable. If it doesn’t work then don’t worry about it. We will not be using that pointer in this tutorial.
  3. Once java and ant are all set up you simply pull the latest trunk for red5 to your box.
    • svn co http://svn1.cvsdude.com/osflash/red5/java/server/trunk red5-trunk

      That will create a folder in your current directory called red5-trunk. Then you will want to copy the contents of that folder to /opt/red5 like so

      cp -R red5-trunk /opt/red5
  4. Navigate to the /opt/red5 directory and run
    /usr/ant/bin/ant

    That will build the project on your machine.

  5. Finally run the red5.sh file. You can do this by either running
    sh red5.sh &

    or

    ./red5.sh &

    This will start the red5 service.

  6. Run
    netstat -ant

    and verify the correct ports are being bound to. You may need to edit the red5.properties file in the /opt/red5/conf directory if you can’t connect to your server from an external location. Try to connect to the server before you modify the properties file because you may be able to connect to it with no problems.

Apr 15, 2007

Installing Tomcat 5.5 + OpenLaszlo + Red5 Flash Server on Windows XP

  • Tomcat is a free, open source implementation of Java Servlet and JavaServer Pages (jsp) technologies.
  • OpenLaszlo is a free, open source platform for creating zero-install web applications with the user interface capabilities of desktop client software. In fact, it’s a free Adobe® Flex Server.
  • Red5 is a free, open source Flash server that supports streaming and recording audio/video, live stream publishing and Flash remoting. Its commercial brother is Adobe® Flash Media Server.

Prerequisites:

Download the following files:
  1. JDK 5.0 Update ‘xx’ (Java SE Development Kit (JDK)) from http://java.sun.com/javase/downloads
  2. Tomcat 5.5 from http://tomcat.apache.org:
    • Core (windows service installer)
    • Administration Web Application
  3. Openlaszlo dev kit (war file) from www.openlaszlo.org
  4. Red5 war file from www.osflash.org/red5
On my system, I ended up with the following files:
  1. jdk-1_5_0_09-windows-i586-p.exe
  2. apache-tomcat-5.5.20.exe
  3. apache-tomcat-5.5.20-admin.zip
  4. openlaszlo-3.3.3.war
  5. red5-0.6rc1.war
Installing JDK + Tomcat 5.5:
  • Perform a standard installation of JDK (next, next… finish)
  • Install Apache Tomcat (use the default server port 8080 and remember your admin login credentials)
Test the installation in your browser: http://localhost:8080
The last thing we’ve to do is installing the Admin Web Application for easy Tomcat administration.
  • Stop the Tomcat Service (from taskbar)
  • Open “apache-tomcat-5.5.20-admin.zip” and drop the folders “conf” and “server” into “C:\Program Files\Apache Software Foundation\Tomcat 5.5\”. (Windows warns you about already existing folders, but that’s OK. Simply ignore this)
  • Start the Tomcat Service again
  • Test the installation again in your browser (http://localhost:8080) by clicking on “Tomcat Manager”. Please enter your login credentials you’ve thought earlier.
Installing OpenLaszlo:

We’re going to install OpenLaszlo from within the Admin Web Application.
  • Login (again) into the Admin Web Application and click on “Tomcat Manager”.
  • Locate “WAR file to deploy” and use the buttons “Browse…” and “Deploy” to install “openlaszlo-3.3.3.war”.
  • Test your OpenLaszlo installation by accessing the following URL: http://localhost:8080/openlaszlo-3.3.3/
All right!
Note: if you’re planning to use OpenLaszlo in a live environment use the servlet (openlaszlo-3.3.3-servlet.war) instead of the dev kit. The dev kit contains extras like examples and documentation.

Installing Red5:

Next, we’re going to install Red5 in the same way.
  • Rename “red5-0.6rc1.war” into “red5.war” to get a nice deployment URL (context path) and deploy it.
  • Test your Red5 installation by accessing the following URL: http://localhost:8080/red5
  • Also try this “real” demo: http://localhost:8080/red5/flvdemo.html
Done!