extension

URL Etiquette?

Given my new understanding of the power of "includes" with PHP, it is my guess that ALL of my pages on my site will be .php extension. Would this be considered strange? I used to think that most pages would be .htm or .html, but in looking around the net, I am noticing that there really isn't any "standard". I don't really think I hav...

Fastest javascript page search

I am writing a Firefox extension. I would like to search the current webpage for a set of words, and count how many times each occurs. This activity is only performed when the user asks, but it must still happen reasonably quickly. I am currently using indexOf on the BODY tag's innerHTML element, but am finding it too slow to run repeat...

How do I create a Python class in C?

I have a legacy C library that creates a tree of objects. I would like to convert the tree into a pre-existing Python class. How do I create the PyObject for that class? ...

Browser Add-On/Extension and Browser Form data

Can someone point me to an article (or discuss here) that explains how an add-on/extension can read what a user has completed in a form in a browser so you can present data to them based on the search parameters? An example would be the Sidestep extension that opens a sidebar when a user searches on an airline/travel site and presents t...

Finding the currently logged in user from a Firefox extension

I'm writing a Firefox extension that needs to know what the username of the currently logged in user is in Windows, Mac, or Linux. So if I'm logged into my machine as "brh", it'll return "brh". Any idea how to do that from extension JavaScript? ...

[Firefox Extension Development] Beginner Assistance - Where does this code belong?

I'm trying to develop a firefox extension that inserts additional HTTP header fields into outgoing HTTP requests (to interface with an apache extension i'm concurrently developing). While I understand the individual components of an extension and understand the basic tutorials that are presented on the web, I'm finding it difficult goin...

Why is this E4X code not respecting the default namespace?

I'm hacking around in a Firefox extension, trying to use E4X. However, I've come across a weird problem: var myXml = <test xmlns="http://test.com"&gt; Hey <inner> Guys </inner> </test>; var ns = myXml.namespace(); default xml namespace = ns; this.log(myXml.*::inner); this.log(myXml.ns::inner); this.log(myXm...

http-on-examine-response observer - possible to block response from further processing?

I am attempting to implement a firefox extension which filters incoming HTTP responses and handles them accordingly. I wish to block HTTP responses containing a specific header. Having read through some of the MDC articles, it appears the most common way of observing HTTP responses is by registering an http-on-examine-response observer....

(g)Vim 7.x :: Possible to trick Vim into allowing lower-case user-defined commands

Not that it is seriously burdensome to type :My_custom_foobar() instead of just :my_custom_foobar() but it just feels odd considering how virtually every other aspect of Vim is so extensible. Some searching for an answer has not turned up much, but I know it's got to be possible without having to recompile Vim from source. Does a...

Windows XP: Replace the standard "New Folder" action with a WSH script

Problem: I have a custom WSH script that creates a new directory in a similar manner to the standard "New Folder" action in the Windows desktop. This script, however, does a couple of extra things; such as allowing me to create a pre-defined set of child directories (optional); as well as allowing me to add notes and reminders if the dir...

Firefox extension compatibility

I've encountered posts which have stated, "I'd love to use Extension A but it doesn't work with Extension B". Is this something that I need to be concerned about when building a Firefox extension? What are some of the common reasons for extensions to conflict with one another? What are the best practices to ensure that my extension play...

How does firefox know when an update is available for an extension (plugin)

I am in the process of creating my first firefox extension and am starting to think about deployment. There is a nice discussion about creating an template here and signing the extension here But later down the road ... how does firefox know that an extension has been updated? ...

How to hide the .jsp extension in my web server urls

I have a JSP web server, with pages that all end with the .jsp extension. How can I hide it in my web server urls without resorting to non-java tricks (e.g., apache rewrite)? For example: instead of typing http://www.sample.com/search.jsp?xxx the user would just type http://www.sample.com/search?xxx ...

extension method as a way to rename property

Some class has ugly field called URL, but Id rather call it file. public static void setFile(this AxWMPLib.AxWindowsMediaPlayer mp, string filename) { mp.URL = filename; } and public static string file(this AxWMPLib.AxWindowsMediaPlayer mp) { return mp.URL; } Is there any way to not use setFile, but make file act like p...

How to use jQuery in Firefox Extension

I want to use jQuery inside a firefox extension, I imported the library in the xul file like this: <script type="application/x-javascript" src="chrome://myExtension/content/jquery.js"> </script> but the $() function is not recognized in the xul file neither do the jQuery(). I googled about the problem and found some solutions but no ...

Visual studio custom build step rule?

Using Visual Studio 2008, When I add to a C++ project a file that is not .c/.cpp/.h/.rc or anything the IDE doesn't recognize a dialog pops up which asks me if I want to create a custom build step rule for this kind of files. Does anybody know how to get to this dialog without adding a file? I can't seem to be able to find in any of the...

Combined Python & Ruby extension module

I have a C extension module for Python and I want to make it available to Rubyists. The source has a number of C modules, with only one being Python-dependent. The rest depend only on each other and the standard library. I can build it with python setup.py build in the usual way. I've been experimenting with adding Ruby support using n...

ExpressionEngine: which hooks to use to rewrite field contents on save and edit?

Not having much luck with this query in the ExpressionEngine forums and it's time-sensitive, so I figured I'd see if there's any EE-junkies hanging around Stack Overflow. I'm working on an EE extension and I need to know what hooks to use to parse a custom field's contents when it's first saved, parse it before being displayed to be edi...

Which lightweight database should I use in a Firefox extension?

I currently use a flat-file to store data in a Firefox Extension, but think this is inadequate. Which lightweight databases are commonly used within Firefox extensions? ...

Where can I get php_tidy.dll for PHP 4.4.2 or 4.4.4?

Hi! I need to get tidy extension for PHP 4.4.2 and 4.4.4 (win32). I have tried to find dlls for these old PHP versions, but with no luck. ...