extension

How does one save a variable in a Tab for use with one's Firefox extension?

I am writing an extension that opens new tabs and I need to save the value of a var in the current tab, such that it will exist even if the user restarts Firefox. How can I do this? ...

Getting Started with PHP Extension-Development

Please suggest help articles or tutorials about PHP "low" level С-modules programming interface. ...

variables hell - problem with vars and tabs (firefox extension)

I try to make firefox extension, that display two buttons: 1 and 2. When you press button1 to var path get value, that is address of current open page, then new tab is opening becoming active. In this tab there is button2, that allow to put (innerHTML) value of var path (this address of first tab). And now the problem: button1 uses funct...

Count number of files with certain extension in Python

I am fairly new to Python and I am trying to figure out the most efficient way to count the number of .TIF files in a particular sub-directory. Doing some searching, I found one example (I have not tested), which claimed to count all of the files in a directory: file_count = sum((len(f) for _, _, f in os.walk(myPath))) This is fine, ...

Install Firefox extension using windows registry

I have followed the instructions here [MDC - Adding Extensions using the Windows Registry], but haven't been able to get Firefox to automatically install my extension when I restart it. I have written an application that is half windows service and half FF extension. I have built an installer and want it to be able to install the Firef...

Catching close tab event in a firefox extension.

Hi, i'm writing a extension, which needs to call some JS from the current tab/document when user closes this tab (some saving etc). document.onbeforeunload doesn't do it for me, because it's also called when the page is reloaded. I'm looking for something like tryToClose but for tabs. ...

how to store different values in every tab (firefox extension)

Hello, Im making firefox extension. One function stores value in every tab, to use it later by other function. function setValue(value) { var attr = gBrowser.document.createAttribute("value"); attr.value = value; gBrowser.document.attributes.setNamedItem(attr); }; function getValue() { var attr = gBrowser.document.att...

ENTER_FRAME listener in extended classes for as3

I'm working on learning the basics of AS3 and have been working through a tutorial book. We just made a class that, when linked to movie clips (or conceivably any sprite) would enlarge them when rolling the mouse over them. To make sure I remembered all the principles, I tried to make a class that would make the sprite spin when moused...

How to debug AD users and computers Property sheets extension?

I have upgraded what had been a working AD Users and Computers property sheets extension from Visual Studio 2003 to 2008 and am trying to debug it. The symptoms are that MMC.EXE crashes when selecting that property sheet tab. I tried attaching to mmc.exe, but although the property sheet displayed the tab, the DLL is not on the call sta...

CMD: file extensions recognition?

I want to have my batch file to recognise the extension of the file the user types in in the following situation: The user has to type in a folder OR a .zip/.rar file. if its a folder, it should use GOTO :folder if its a .zip/.rar, it should use GOTO :ziprar (if it is possible without 3rd party software, than dont going to say about i...

Windows Media Center Plugin

Hi, it is possible to make own plugin to media center in windows (in .NET)? Thanks ...

CMD: Batch as default program to open extension

Hello, i want to let my batch file CMD set itself as the default opener for a certain extension. Can anyone give me a code for this??? ...

FF 3.5 extension: window.title is 'undefined'

From a sidebar in Firefox 3.5 I am getting a reference to the main window with: var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIDocShellTreeItem) .rootTreeItem ...

How can I extract and use images from an archive in a Jasper report?

I need to put images in my Jasper reports that match rows in a database. I have the image data in proprietary archive files which I can easily extract in Java code. I need to know how to connect my Java code to the Jasper report to make the extraction process happen, something like BIRT's onRowSets() method. (I need overview documentatio...

Which version of OpenGL supports rectangular textures (w/o extensions)?

Rectangular textures used to be support through extensions and at some version of OpenGL are now directly supported, i.e I can create textures with the same basic opengl methods just supplying non-power-of-two sizes. I've googled and can't seem to find a definitive changelog for the OpenGL spec. I need this information to dynamically de...

VIM: Linux/Ubuntu directory location ~/.vim/syntax/

Where is the default location for the folder ~/.vim/syntax/ on a linux system? I am trying to add a python addon. Thanks. ...

How do I install/use Extjs extensions and plugins

Sorry for the newbie question, but how do I install or go about using an Extjs Extension or plugin I found through the extjs forums? ...

magento extension installtion

hi i want to install magento extension but not from the magento connect how can i do this i have the module(extension) code and i allready install the sample data in magento installtion ...

How do I propagate C++ exceptions to Python in a SWIG wrapper library?

I'm writing a SWIG wrapper around a custom C++ library which defines its own C++ exception types. The library's exception types are richer and more specific than standard exceptions. (For example, one class represents parse errors and has a collection of line numbers.) How do I propagate those exceptions back to Python while preserving t...

Detect Operating System From Firefox Extension

I am developing a firefox extension, i need to detect which operating system firefox is running on but i can't seem to find and info on how to do it? ...