Показ дописів із міткою ElasticFox. Показати всі дописи
Показ дописів із міткою ElasticFox. Показати всі дописи

вівторок, 29 березня 2011 р.

Problems with Elastic Fox in FF4

 I was happy to know that Firefox team push new, 4-th version of FF which works faster and support HTML5 and many other great features. But unfortunately this release have one very small disadvantage - ElasticFox does not show background for pages. That's nothing wrong with FireFox itself, but because ElasticFox is used in my dayly job, and I already tweak ElasticFox earlier, I was decide fix this small quirck, which really annoys me.

Obiviously problem was easy to fix - you have to just add one line to the CSS which comes with ElasticFox and set non transparent background for the tag popup. That's all! :)

Short list of steps:

  1. Close FireFox.
  2. Open your FireFox profile, which is located in the %APPDATA%\Mozilla\Firefox\Profiles\ folder.
  3. Navigate to extensions\{2204c510-88f3-11db-b606-0800200c9a66}\chrome subfolder inside your profile.
  4. Make a backup of your ec2ui.jar and rename ec2ui.jar to ec2ui.jar.zip
  5. Inside archive, extract ec2ui.jar.zip\skin\classic\ec2ui\ec2ui.css file and add line
    popup { background-color: white; border: 1px solid threedshadow; }

    to the end of CSS file.
  6. Pack modified file back to ec2ui.jar.zip
  7. Launch Firefox and check how ElasticFox looks like. :)
Hopefully this is helps.

четвер, 18 листопада 2010 р.

Adding support for new instance types in Elastic Fox

Recently Amazon announce new instance types, but don't add support for these types in the ElasticFox. At least these changes not
Maybe you are interested too in adding support for t1.micro and
clustered version of instance types (cc1.4xlarge, cg1.4xlarge) to your
ElasticFox.

Here the steps you could do to enjoy working with ElasticFox and new Aamzon features:
  1. Close FF. Check that firefox.exe is gone from process list
    Kill if it will stay too long after closing FF.
  2. Go to C:\Documents and Settings\Application
    Data\Mozilla\Firefox\Profiles\
    Go inside XXXXX.default folder. This actually your FF profile.
  3. Than go deeper in the
    extensions\{2204c510-88f3-11db-b606-0800200c9a66}\chrome
    This folder should have file ec2ui.jar to ec2ui.jar.bak
  4. Make backup of the file
  5. Change extension to ZIP. Unpack ZIP archive to ec2ui_patched folder.
  6. Go to ec2ui_patched\content\ec2ui
  7. Open newinstancesdialog.js in your favorite JS editor. This is a
    file that represent New Instance dialog in ElasticFox.
  8. In the init function found block
    // Add the instance sizes based on AMI architecture
    if (this.image.arch == "x86_64") {
        typeMenu.appendItem("m1.large", "m1.large");
        typeMenu.appendItem("m1.xlarge", "m1.xlarge");
        typeMenu.appendItem("c1.xlarge", "c1.xlarge");
        typeMenu.appendItem("m2.xlarge", "m2.xlarge");
        typeMenu.appendItem("m2.2xlarge", "m2.2xlarge");
        typeMenu.appendItem("m2.4xlarge", "m2.4xlarge");
    } else {
        typeMenu.appendItem("m1.small", "m1.small");
        typeMenu.appendItem("c1.medium", "c1.medium");
    }
    
    Replace with following
    // Add the instance sizes based on AMI architecture
    if (this.image.arch == "x86_64") {
        typeMenu.appendItem("m1.large", "m1.large");
        typeMenu.appendItem("m1.xlarge", "m1.xlarge");
        typeMenu.appendItem("c1.xlarge", "c1.xlarge");
        typeMenu.appendItem("m2.xlarge", "m2.xlarge");
        typeMenu.appendItem("m2.2xlarge", "m2.2xlarge");
        typeMenu.appendItem("m2.4xlarge", "m2.4xlarge");
        typeMenu.appendItem("t1.micro", "t1.micro");
        typeMenu.appendItem("cc1.4xlarge", "cc1.4xlarge");
        typeMenu.appendItem("cg1.4xlarge", "cg1.4xlarge");
    } else {
    typeMenu.appendItem("m1.small", "m1.small");
        typeMenu.appendItem("c1.medium", "c1.medium");
        typeMenu.appendItem("t1.micro", "t1.micro");
    }
    
  9. Package content of ec2ui_patched folder as ZIP archive.
  10. Rename ZIP archive with patched version to ec2ui.jar and place it inside C:\Documents and Settings\\Application Data\Mozilla\Firefox\Profiles\\extensions\{2204c510-88f3-11db-b606-0800200c9a66}\chrome
  11. Launch FF and enjoy support for new instance types in ElasticFox.