Questions tagged [embedding]

An embedding is one instance of some structure contained within another instance, such as a group that is a subgroup.

An embedding is one instance of some structure contained within another instance, such as a group that is a subgroup.

Links:

1356 questions
6
votes
3 answers

Private embedded struct when importing a struct from another package

I have a project which relies on a struct imported from another package, which I will call TheirEntity. In the example below, I (ahem) embed TheirEntity in MyEntity, which is an extension of TheirEntity, with added functionality. However, I don't…
dtg
  • 1,803
  • 4
  • 30
  • 44
6
votes
2 answers

Calling C++ class functions from Ruby/Python

In my specific circumstance, I have a complex class (a class of classes of classes) that I want to expose to a scripting language (aka Ruby). Rather that directly pass that complex class, someone gave me the idea of just opening up a few functions…
bboy3577
  • 417
  • 5
  • 14
6
votes
2 answers

Twitter embedded timeline never updates

We're using the Twitter Embedded Timeline widget which is documented here. According to the documentation, it is supposed to auto-update its self "in real time": These new timeline tools are built specifically for the web, mobile web, and touch…
emersonthis
  • 32,822
  • 59
  • 210
  • 375
6
votes
1 answer

need a web browser in my desktop application

part of the specification of this desktop application is to have a mini browser built in, so that you can enter URL, and navigate the site as you would on a normal browser. Access to the browser page's DOM is required, should let me programmatically…
javadahut
  • 133
  • 1
  • 1
  • 4
6
votes
2 answers

Embedding Python in C: Having problems importing local modules

I need to run Python scripts within a C-based app. I am able to import standard modules from the Python libraries i.e.: PyRun_SimpleString("import sys") But when I try to import a local module can PyRun_SimpleString("import can") returns the…
Drew
  • 71
  • 1
  • 4
6
votes
4 answers

How to handle value types when embedding IronPython in C#?

There is a well known issue when it comes to using .NET value types in IronPython. This has recently caused me a headache when trying to use Python as an embedded scripting language in C#. The problem can be summed up as follows: Given a C# struct…
kloffy
  • 2,928
  • 2
  • 25
  • 34
6
votes
1 answer

Lua trouble: attempt to call global 'unpack' (a nil value)

I am relatively new to Lua, and am experimenting with embedding it in a library. I can execute the script just fine from the command line, but I hit the following error when calling a function in my script when embedded PANIC: unprotected error in…
learnvst
  • 15,455
  • 16
  • 74
  • 121
6
votes
1 answer

Propagating embedded Python Exceptions up to C++

If I have C++ code with embedded Python functions, i.e. it uses Python's C API to call Python's interpreter, how can I get Python exceptions to bubble up to the C++ level? Note: This is not the inverse question (about propagating C++ extension…
Will
  • 4,241
  • 4
  • 39
  • 48
6
votes
5 answers

Is that possible to embbed Scheme(lisp) interpreter into iPhone app?

I'm finding embeddable Scheme interpreter(or JIT compiler or anything) into Cocoa Touch. I think just a C compatible Scheme engine may be fine. Please recommend some. I wish it's MIT/BSD style free license, but commercials are fine too. And.. does…
eonil
  • 83,476
  • 81
  • 317
  • 516
6
votes
4 answers

Embedding Fonts in AS3 - Dynamic Text Field disappears

This is hopefully a new problem or just me missing something obvious. Please help! I'm embedding a font into my AS3 application. I'm doing everything by-the-book and it half-works. In my main class, [Embed(source="Art/moolbor.ttf",…
Andy Moore
  • 865
  • 3
  • 16
  • 36
6
votes
2 answers

How to make Ghostscript's `ps2pdf14` 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…
Gavin
  • 2,153
  • 2
  • 25
  • 35
6
votes
4 answers

Security in embedded javascript and HTML

I'm trying to find a solution for the following situation: I've a web application made of HTML, javascript, AJAX, ad so on. I want users to contribute to my application/website creating plugin that will embedded in it. This plugin will be created…
oltreseba
  • 142
  • 9
6
votes
3 answers

As3 font embedding

I have seen lots of questions related to font embedding in flash and I can't seem to find an answer to my problem. I load fonts from a font swf and register them at a high level so that they can be used in child swfs. The issue is the child swf…
Jordan
  • 1,233
  • 2
  • 12
  • 32
6
votes
1 answer

Instantiating custom C# classes from IronPython

Is there any way to make a class available to IronPython scripts so that I can create objects inside the code? For example, if I have a class that I want to be able to instantiate from the script called MyClass defined in the C# code like so: public…
jmegaffin
  • 1,162
  • 11
  • 22
5
votes
1 answer

Does the Python 3 interpreter leak memory when embedded?

This bug report states that the Python interpreter, as of June 2007, will not clean up all allocated memory after calling Py_Finalize in a C/C++ application with an embedded Python interpreter. It was recommended to call Py_Finalize once at…