extensions

How can I turn a string of HTML into a DOM object in a Firefox extension?

I'm downloading a web page (tag soup HTML) with XMLHttpRequest and I want to take the output and turn it into a DOM object that I can then run XPATH queries on. How do I convert from a string into DOM object? It appears that the general solution is to create a hidden iframe and throw the contents of the string into that. There has been ...

GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errors

I'm using FBOs in my OpenGL code and I'm seeing compilation errors on GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT. What's the cause of this and how do I fix it? ...

Using OpenGL extensions On Windows

I want to use the functions exposed under the OpenGL extensions. I'm on Windows, how do I do this? ...

What are OpenGL extensions and what are the benefits/tradeoffs of using them?

In relation to this question on Using OpenGL extensions, what's the purpose of these extension functions (why would I want to use them), and are there any tradeoffs or gotchas associated with using them. ...

Using GLEW to use OpenGL extensions under Windows

I've been using OpenGL extensions on Windows the painful way. Is GLEW the easier way to go? How do I get started with it? ...

Sending e-mail from a Custom SQL Server Reporting Services Delivery Extension

Hi I've developed my own delivery extension for Reporting Services 2005, to integrate this with our SaaS marketing solution. It takes the subscription, and takes a snapshot of the report with a custom set of parameters. It then renders the report, sends an e-mail with a link and the report attached as XLS. Everything works fine, until...

Tips / Resources for building a Google Chrome plugin

After test driving Google Chrome for 30 minutes or so, I like it, even if it seems bare-bones at the moment. The obvious way to add a few things I can't live without would be through plugins. Does anyone have any links to resources on how to get started building a plugin/addon for Chrome? Thanks. ...

Mediawiki custom tag Stops page parsing.

I created a few mediawiki custom tags, using the guide found here http://www.mediawiki.org/wiki/Manual:Tag_extensions I will post my code below, but the problem is after it hits the first custom tag in the page, it calls it, and prints the response, but does not get anything that comes after it in the wikitext. It seems it just stops p...

Determine file type of an image

I'm downloading some images from a service that doesn't always include a content-type and doesn't provide an extension for the file I'm downloading (ugh, don't ask). What's the best way to determine the image format in .NET? The application that is reading these downloaded images needs to have a proper file extension or all hell breaks...

How to check for memory leaks in Guile extension modules?

I develop an extension module for Guile, written in C. This extension module embeds a Python interpreter. Since this extension module invokes the Python interpreter, I need to verify that it properly manages the memory occupied by Python objects. I found that the Python interpreter is well-behaved in its own memory handling, so that...

How do you sign your Firefox extensions?

I have developed a couple of extensions for Firefox, and am annoyed that it is so hard to get the extension signed. When an extension isn't signed, it says "Author not verified" when it is installed, and to me that just looks wrong. I have a simple build script that builds my .xpi file from sources, and I have a licenced copy of PKZip ...

Initial skeleton for Firefox extensions?

I always seem to have a hard time starting a new Firefox extension. Can anyone recommend a good extension skeleton, scaffold, or code generator? Ideally one that follows all the best practices for FF extensions? ...

What do you use to test your browser extension / BHO?

What are the best approaches / tools to test browser extensions? In my case I work on an IE Browser Helper Object (C#) which has a small UI of its own and a good deal of database interaction. Up till now we've used automated unit tests for testing our model/business objects but manual testing for the UI/scenario testing. I'm thinking of...

What is the first thing you do when you install Visual Studio?

What is the first thing you do when you install Visual Studio? I am talking about anything customization-wise (so we don't get answers based on 'I create a new project'). Do you have a favorite font? Do you have a must have extension you couldn't possibly live without? Do you have a keyboard shortcut you like to set? I am interest...

How to update Firefox 2 compatible extensions using IFRAME to Firefox 3?

I am trying to update a custom firefox extension that I created for some tasks at work. Basically it is a sidebar that pulls up one of our webpages in an iframe for various purposes. When moving to Firefox 3 the iframe won't appear at all. Below is an example of the XUL files that contains extension specific code including iframe, curre...

Is using resharper a time saver?

I have installed ReSharper and "played" with it twice now. I have always found it annoying and that it got in the way of the hotkeys I was already using in Visual Studio. The people that use it tend to swear by it. For those of you that do use it, where do you find it saves you the most time or what do you think its best feature is? Pl...

How can I create a Firebug-like bottom window Firefox extension

Several extensions offer a "bottom window" for viewing their content. Firebug and ScribeFire are good examples where the main content appears at the bottom of the browser. This appears to be very similar to the sidebar functionality in the browser. Is there a best practice/method to create a bottom window in an extension, since there ...

How can I change a files extension using PHP?

How can I change a files extension using PHP? ...

Updated Firefox Extension - Still says "No updates were found."

I am working on a new version of a firefox extension, but after releasing it, and incrementing the em:version in install.rdf and update.rdf, when I click "Find updates" Firefox reports that "No updates were found." When I run it with debugging on, the output in the console is actually identical to what I see when I don't put the update ...

Can you add new statements to Python's syntax?

Can you add new statements (like print, raise, with) to Python's syntax? Say, to allow.. mystatement "Something" Or, new_if True: print "example" Not so much if you should, but rather if it's possible (short of modifying the python interpreters code) ...