embedding

is it possible to call python methods from a C program?

I remember seeing somewhere that you could call python methods from inside C using #include "python.h" But I can't seem to find the source for this or any examples. How can I call python methods from inside a C program? ...

Embedding Mono in Delphi Win32

Does anyone know the specifics of how to embed the Mono runtime in a Delphi Win32 application? The official documentations is not very helpful with regards to the Win32 environment (www.mono-project.com/Embedding_Mono). Upate: I am very familiar with the vagaries of static linking in Delphi and would be perfectly happy with a DLL. Mono...

Embedding a 3-D editor (such as Blender) in a wxPython application

Is it possible to embed a 3-D editor inside my wxPython application? (I'm thinking Blender, but other suggestions are welcome.) My application opens a wxPython window, and I want to have a 3-D editor inside of it. Of course, I want my program and the 3-D editor to interact with each other. Possible? How? ...

How do I embed a flash SWF file and get around the IE security layer without using swfobject (to keep down file size)

I'm looking for a way to embed an SWF into a page and get around the Internet Explorer security issue (where it requires an extra click to "activate" the flash file). I've got my code working with swfobject, but I'm using this in an embedded widget context (eg a clickable banner ad) so I am really trying to keep my file size down, and ...

Embeding Flash - movie and src parameter

Hi In this object element there is a child element called param[@name = 'movie'] <object type="application/x-shockwave-flash" width="300" height="324" data="flashlet.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"> <param name="movie" value="flashlet.swf"> <param name="swliveconnect" value="true"> <param name="allowful...

Parse URLs of major video streaming sites and generate appropriate code for embedding.

Posting a video on tumblr.com allows you to just paste the URL of the video on youtube, vimeo, whatever and tumblr automatically does the embedding for you. I assume that this would be nothing more than a mapping between an URL-regex and the belonging HTML construct for embedding the video. Or it is just parsing the response of the URL ...

Image Replacement not working

I had used the CUFON image replacement for one of the site.The following is the api link http://wiki.github.com/sorccu/cufon/api in that they say Using Cufon.replace() with CSS selectors Cufon.replace('#message'); Cufon.replace('h2'); Cufon.replace('#content > h3'); when i tried its not working can anyone help me how to achive this ...

"eval" in Scala

Can Scala be used to script a Java application? I need to load a piece of Scala code from Java, set up an execution scope for it (data exposed by the host application), evaluate it and retrieve a result object from it. The Scala documentation shows how easy it is to call compiled Scala code from Java (because it gets turned into to re...

Embedded IronPython scripts and converting types

I've got a WPF application that embeds IronPython to use as a scripting language. I've got an object model that IronPython scripts can use to do 'stuff'. However I've come across a strange problem that I've solved in a way that I don't believe is correct. In my script I want to type the following to set the location of an object in WPF...

Automatic video resize functionality in Wordpress

Just wondering how the likes of Woothemes.com control the re-sizing of video embed code in their premium themes: Groovy Video and Woo Tube Any idea of how this would be done? ...

JavaFX: Embedded JavaFX applet loses width and height?

I have a JavaFX applet with the stage's initial height and width defined as such: var stage:Stage = Stage { title: "Blah" scene: Scene { height: 768 width: 1024 fill: Color.WHITE ... Additionally, I have elements laid out in the scene that are bound to the height and width for layout purposes. All works fine as...

Lua Wrapper for C#?

I am looking to embed Lua into my C# application and i thought there was a wrapper around the lua API for C#, but don't remember what it is. Can someone point me in it's direction? ...

Embedding Windows Python in Cygwin/GCC C++ program

I am currently working on a Cygwin/GCC application written in C++. The application requires embedding of python to run plug-ins, I've successfully embedded using the Cygwin python libraries and was able to run simple python files as part of the program. However, the python files now require the use of a windows GUI framework (wxPython), ...

Preloading @font-face fonts?

Is it possible to preload or otherwise cache @font-face fonts, most likely with javascript, before the page loads so you don't get that ugly jump when the page finally does load? ...

How to get to the IronPython Lib directory?

I am embedding IronPython in a C# program. I understand that I need to call ScriptEngine.SetSearchPaths with a list of search paths so that my Python code can import modules. In particular I have to let it know where the standard library modules are, which in my case are here: C:\Program Files (x86)\IronPython 2.0.2\Lib My question is...

How to make GhostScript PS2PDF stop subsetting fonts

I am using the ps2pdf14 utility that ships with GhostScript, and I am having a problem with fonts. It does not seem to matter what instructions I pass to the command, it insists on subsetting any fonts it finds in the source document. e.g -dPDFSETTINGS#/prepress -dEmbedAllFonts#true -dSubsetFonts#false -dMaxSubsetPct#0 Note that...

Flash Font embedding problem

I am facing a wired problem with a project. I am embedding Arial font as project is multi-lingual. If I build this project on one of my development machine, Font gets embedded successfully but in any of other machine, project successfully gets published without any warning but font just dont get embedded in SWF. Note : Project code base...

How are strings embedded in binary files?

I'm writing my own bytecode and virtual machine (on .NET) and one thing i can't figure out is how to embed strings into my bytecode. Any ideas now how i should do it? ...

Python interpreter as a c++ class

I am working on embedding python in to c++. In some peculiar case I require two separate instances of the interpreter in same thread. Can I wrap Python interpreter in to a c++ class and get services from two or more class instances? ...

Possible to launch JWS applet within browser instead of standalone?

Is it possible to embed an applet in HTML so that it will be displayed within the browser window yet launched through Java Web Start via a JNLP file instead of using the browser's Java plugin? If so, how is this done? I've only been able to launch my applet in a standalone window, but disliking the user experience pop-ups create, I'd p...