embedding

Blocking https url's in a embedded gecko browser

Hi, I have an application in which a gecko browser is embedded. The application is crashing when I try to access any https url's because nss is not properly initialised at this point. The crash is in PK11_TokenExists(). I want to block my browser from rendering https sites. If a user clicks on a https link I can block that load in OnSta...

.NET Winforms Deployment

Is there anyway to combine all resources into a single exe file such as app.config and associated DLL's? Some applications seem to do this such as eMule. I don't want my app.config sitting there waiting to be edited. Thanks ...

Embedding the Java h2 database programmatically

At the moment we use HSQLDB as an embedded database, but we search for a database with less memory footprint as the data volume grows. Derby / JavaDB is not an option at the moment because it stores properties globally in the system properties. So we thought of h2. While we used HSQLDB we created a Server-object, set the parameters and...

Embedding binary video data in a swf file

Is it possible to play video from data that has been embedded in a swf at compile time (with the [Embed] metatag)? The "Import Video->Embed" feature provided by Flash CS3 etc. is not acceptable because it has many severe limitations (including sound synchronization issues, a maximum number of frames, and other caveats) I'm interested i...

How to convert a C string (char array) into a Python string?

I have embedded a Python interpreter in a C program. Suppose the C program reads some bytes from a file into a char array and learns (somehow) that the bytes represent text with a certain encoding (e.g., ISO 8859-1, Windows-1252, or UTF-8). How do I decode the contents of this char array into a Python string? The Python string should ...

We have a graphical designer, now they want a text based designer. Suggestions?

I'm sorry I could not think of a better title. The problem is the following: For our customer we have created (as part of a larger application) a graphical designer which they can use to build "scenario's". These scenario's consist of "Composites" which in turn consist of "Commands". These command objects all derive from CommandBase a...

how can I check what site a javascript badge is embedded on?

I want to allow users to embed badges on their personal site or blogs with a snippet of javascript. The badge is customized on our site based on information in their profiles that at some point is "approved". Is there a best practice to check what website the javascript is embedded on and if it does not match the website in their "appr...

Issues with embedding IronPython 2 in a C# web application

First Some Background (incase it helps): My application is a Web-based framework recently upgraded to v3.5 of the .Net Framework but does not use a Master Pages / User Controls system. It's more akin to the MVC pattern (although much older) and outputs pure HTML down the response stream from Templates. The Python expressions allow som...

How do I host an application window as a child of a window belonging to another process?

I would like to host an application window from a process "A" into the main window of a process "B", just as if "A"'s window were a MDI child window. Is this possible in Windows? Or are there some tricks which would allow me to fake this? By the way, I'd like to remove the title bar (or better yet, all the non-client stuff) of "A"'s win...

Best replacement for var flashElements = document.getElementsByTagName("EMBED");

I want to find all flash objects on a random page (to make them wmode=transparent so they wont hide a menu). IE does not support EMBED in: document.getElementsByTagName("EMBED"); Any idea what is the most efficent to find all embeds (no jQuery...) Also for the more advanced: I came across sites where the embed tag was written as eMBE...

How do I embed one WPF form into another ?

I would like to have master WPF form with tab control where each tab contains one independent WPF form. Those forms do not depend on each other, so I thought it will be easier to develop each of them separately and then just embed them into master form. Number of forms is known, so there is no need for dynamic plugin system. ...

How to quickly and easily embed fonts in winforms app in C#

This is probably noob territory but what the heck: I want to embed fonts in my winforms application so that I don't have to worry about them being installed on the machine. I've searched a bit on the MSDN site and found a few hints about using native Windows API calls, for instance Michael Caplans (sp?) tutorial linked to by Scott Hanse...

Embedding: mono vs lua

I am interested in hearing about peoples experience with embedding mono (open source implementation of .NET) in a C/C++ application. How is it to distribute such an application and what are the dependencies? I have tested on OS X and mono comes as a huge framework (hundreds of MB). Do users of my app all need this big framework or can it...

Python embedding with threads -- avoiding deadlocks?

Is there any way to embed python, allow callbacks from python to C++, allowing the Pythhon code to spawn threads, and avoiding deadlocks? The problem is this: To call into Python, I need to hold the GIL. Typically, I do this by getting the main thread state when I first create the interpreter, and then using PyEval_RestoreThread() to ...

Embedded fonts in flash with the same fontName property

I'm using an external swf containing a number of font classes to load and register the fonts for my flash site at runtime. (exported in the library panel Flash IDE then registered in the frame script) In this particular case the swf contains a number of different weights of the same family. eg. font roman, font italic, font light, font ...

WebKit or Gecko - which one is better for embedding in C++ app?

Hi Which one would you choose and why? I'd like to hear opinions from people having experience with embedding a web browser engine in C++ application. I should stress I need all features of web browser engine except rendering i.e. HTTP client, cookie handling, DOM style HTTP parser, JavaScript engine. How can one strip either WebKit or ...

Embedding LaTeX content in Flash animation

I would like to create a flash presentation for a web page. It would read content from files in LaTeX format and would display the content properly. This would require to call a LaTeX compiler and generate the proper output every time the content in the latex files changes. How can I do that? Any other ideas around this? ...

Wimpy Player not working, could it just be an incorrect Flash embedding?

I have a list of clients taken over from a competitor that went under ;) Anyway, they supposedly fixed the Flash Wimpy Player on the home page, here's the link but now I am being told it doesn't work again. I am wondering if it's simply an embedding issue, and I would like to learn how to fix it. Code is below, and it looks like way to...

Incorrectly Embedding a Flash Movie - Guess I'm Guilty

I have tried through another user's suggestion, to use the swfobject methos of embedding Flash. I however, must not be as smart. Below is the monster I have come up with, but no movie plays, and I cannot even distinguish it as a Flash movie when I control+click (Mac)... as if it doesn't even exist. Any direction on how I could fix this...

Embedding a binary file inside a class library

Hi, Is it possible to embed a custom binary file inside a C# class library and then at runtime read it with a binary reader? I'm guessing it might be possible through resources. Many thanks ...