I've made an extension inside a package and I am calling the following code (occurs when a user presses a button in the toolbar):
DocumentEvents documentEvents = (DTE2)GetService(typeof(DTE));
_dte.Events.DebuggerEvents.OnEnterBreakMode += DebuggerEvents_OnEnterBreakMode;
_dte.Events.DebuggerEvents.OnEnterDesignMode += DebuggerEvents_On...
Lets say I'm writing a sinatra extension which mounts a second public directory at a given mount point.
require 'sinatra'
require 'sinatra/moar-public'
set :moar_local, './downloads/'
set :moar_remote, 'dls'
I now expect a user going to http://myapp.com/downloads/thing.bin to be given the file at [sinatra_root]/dls/thing.bin.
Writin...
So I have this in my C# lib:
public static TOut IfNotNull<TIn, TOut>
(this TIn instance, Func<TIn, TOut> func)
{
return instance == null ? default(TOut) : func(instance);
}
Used like:
DateTime? expiration = promo.IfNotNull(p => p.TermsAndConditions.Expiration)
.IfNotNull(e => e.Date);
I keep wrac...
I need a simple interpreter which will do execution (evaluation) of simple expressions/statements and also call functions from main C++ applications. At the moment I do not need scripting of the application, but it may be useful later.
It should also be strait-forward for other team members to pull my application from Source Repository ...
I'm developing my own PHP extension with a class in it. I recently upgraded from Ubuntu 9.04 to 9.10 and the extension broke. I since tried to update to 10.04 to see if it fixes it as my dev environment is 10.04 and it works fine on there. The only major difference from what I can understand is the server is 64 bit and my laptop 32 bit a...
In a Xul app, is there a high-level way to list the installed extensions?
Is the "Add-ons" window available for easy use?
I'm trying to search in the firefox source, but it's a long way... if someone could give a shortcut I would be thankful... :)
Maybe something related to RDF? (not sure..)
...
There's a lot of functionality available in PHP for scripts. Is this functionality available somehow to the extension writer? I'd really like to use the multibyte functions but can't find an example thereof.
...
Hello folks,
I'm developing a google chrome extension and I'm running into a relative path problem.
If I give a relative path to an image and open the plugin in a certain page it will look for that image in the website's path rather than the extension's.
Any ideas?
thanks,
fbr
...
I hope this is not a misuse of stackoverflow; recently I've seen some great questions here on Parallel Extensions, and it got my interest piqued.
My question:
Are you using Parallel Extensions, and if so, how?
My name is Stephen Toub and I'm on the Parallel Computing Platform team at Microsoft. We're the group responsible for Parallel...
I am trying to create a "Quick Edit" adornment which would help the user in providing the information below.
This is the Nafestis Info text in a .vb class file
#Region "Nafestis Information Block"
'**<!--Scroll over to the line above this one to use the quick editor**'-->
'**<name>Create a JSPF page from a config file</name>
'**<prefix...
Typo3 - Question:
In the extensionmanager when you click on "Information" there often is a (red) error which reads like this: "No XCLASS inclusion code found in file xxxxx".
Especially when developing an extension I am looking for a way to fix this this.
Any ideas?
...
When I open the extensions manager in my Xul app using:
app = "chrome://mozapps/content/extensions/extensions.xul";
window.open(app,'Test','chrome, width=640, height=480').moveTo(0,0);
I get the following error in the javascript console:
Error: uncaught exception:
[Exception... "Component returned
failure code: 0x8000ffff
(N...
I am using PyCXX to write an extension that exposes multiple (new style) classes to Python.
A method of one of the classes (say A) needs to return an instance of another (say B) of these classes. I can't see an obvious way of constructing an instance of B from within C++ code. The constructors of new style classes require a PythonClass...
So I've been working on updating old extensions for use with FF4 and Gecko 2 but I am having some issues where I am getting an error that says, classID missing or incorrect for component....
Has anyone else had a similar issue or know of how to get around this?
function jsshellClient() {
this.classDescription = "sdConnector JavaScrip...
Can I listen to hotkeys with safari extension?
I want to respond to Cmd+SomeKey with action done by extension, but I've read intro on apple developer and there is nothing about hotkeys.
You can add custom buttons to the Safari toolbar, create bars of your own, add contextual menu items, display content in bars or tabs, and inject sc...
Cabal is giving me mixed messages. When I say:
Extensions: DeriveFunctor
It says:
Warning: Unknown extensions: DeriveFunctor
But when I say:
GHC-Options: -XDeriveFunctor
It says:
Warning: Instead of 'ghc-options: -XDeriveFunctor' use 'extensions:
DeriveFunctor'
For now I'm just going to use the {#- LANGUAGE DeriveFunctor -#} ...
I'm trying to connect a browser extension (Firefox, Chrome, IE...) with an external application. Using a non-polling system to notify the messages between the components.
I've already seen several approaches, but I'm not sure which ones are possible and which ones are the best.
One solution could be trying to use a IPC (Os-dependant) s...
Writing a tag extension. Suppose I want tag <foo> to add its character contents as another entry in the page's table of contents. Surrounding the content with == (for instance) doesn't work. It creates an <h2> and 'edit' hyperlink but no TOC update (I've made sure to test with more than four <foo>s since anything less won't render a TOC,...
Hey guys,
My question is very simple: Is it possible to pack plugins into extensions for Safari? For instance, the exact NPAPI plugins which work on Google Chrome also work on Safari. However in Chrome I'm shipping the plugins as a part of an extension (a CRX package). This is needed because HTML and JavaScript is injected into a specif...
I am trying to use geometry shaders in my OpenGL application that is currently using Freeglut, and I am trying to use GLEW to do that because as I understand it, the geometry shader functionality is in an extension. My include order is as follows:
#define GLEW_STATIC
#include <glew.h>
#include "freeglut.h"
However when I do t...