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
15
votes
2 answers

Embedding a binary file inside a class library

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
Andy
  • 739
  • 1
  • 9
  • 18
15
votes
1 answer

android: using ActivityGroup to embed activities

Im in the conceptualizing/design phase of building an app and i've hit a bit of a snag. Essentially i was looking for a way to embed one activity into the UI of another similar to how a TabHost/TabActivity. There would be a window at the top of the…
mtmurdock
  • 12,756
  • 21
  • 65
  • 108
15
votes
1 answer

How to embed LLVM assembly or intrinsics in C program with Clang?

C compilers allows to embed assembly code in a C program. I am pretty sure that Clang should allow embedding LLVM assembly or intrinsic code in C program. How can I embed LLVM assembly in C code?
eonil
  • 83,476
  • 81
  • 317
  • 516
14
votes
2 answers

Embedding Localization Resources .DLL's to the Executable in C#?

I want to make my program multilingual. I have successfully made the program multilingual via Form's Localizable and Language properties. It made some .resx files. Then I deleted non-needed files such as images (which they are the same in all…
PythEch
  • 932
  • 2
  • 9
  • 21
14
votes
1 answer

Include / embed vs. link in RESTful APIs

So the general pattern for a RESTful API is to return a single object with embedded links you can use to retrieve related objects. But sometimes for convenience you want to pull back a whole chunk of the object graph at once. For instance, let's say…
David Moles
  • 48,006
  • 27
  • 136
  • 235
14
votes
0 answers

Sending an email with an image embedded in the body from C#

My problem is how to send an email with attachemnts to the default mail client programmatically. My requirements are: setting destination, CC, BCC link to attachment(s) adding and image like a banner in the message body I succeded to compose an…
Patrik
  • 141
  • 1
  • 1
  • 3
14
votes
2 answers

How to pass an array from C to an embedded python script

I am running to some problems and would like some help. I have a piece code, which is used to embed a python script. This python script contains a function which will expect to receive an array as an argument (in this case I am using numpy array…
user1750948
  • 719
  • 2
  • 10
  • 27
13
votes
4 answers

Keras embedding layers: how do they work?

I am starting using Keras to build neural networks models. I have a classification problem, where the features are discrete. To manage this case, the standard procedure consists in converting the discrete features in binary arrays, with a one-hot…
Ulderique Demoitre
  • 1,029
  • 3
  • 11
  • 26
13
votes
3 answers

How to embed Python3 with the standard library

I am attempting to embed Python in an (ultimately multiplatform) C++ app. It's important that my app contains its own Python implementation (in the same way that blender does), so that it is entirely self-contained. (Else it becomes a configuration…
P i
  • 29,020
  • 36
  • 159
  • 267
12
votes
4 answers

Preloading a youtube embed

I want to have an embedded chromeless youtube video preload its video WITHOUT playing when the page loads. Right now I'm using an awkward "play then quickly pause" script which causes small problems (half-second audio leaks and fails quite a bit).…
zakdances
  • 22,285
  • 32
  • 102
  • 173
12
votes
3 answers

metric learning and contrastive learning difference

I researched some materials,and know that the goal of contrastive learning and metric learning are both to learn such an embedding space in which similar sample pairs stay close to each other while dissimilar ones are far apart. But what is the…
12
votes
3 answers

Bullet-proof groovy script embedding

I'm working on a server app that may be extended by user-supplied Groovy scripts. It's evident that I want to make sure these scripts run in a very tight sandbox where they cannot disrupt the core application code or consume too much resources to…
Joel Grenon
  • 3,173
  • 1
  • 19
  • 19
12
votes
2 answers

Embedding youtube video in markdown?

i use the ruby gem formatize to parse my markdown-formated text. now i want to embed a youtube-video into the markdown text, but whenever i add the iframe snippet, the gem (or markdown?) just removes it from the output. any advise? thanks!
trnc
  • 20,581
  • 21
  • 60
  • 98
12
votes
3 answers

Is it possible to embed perl6 in a C (or C++) program?

In perl5 it was easy to link in libperl.so, set some variables and run some code, with callbacks. Is there a story for doing this in perl6?
Andrew
  • 166
  • 4
12
votes
1 answer

how do I use a very large (>2M) word embedding in tensorflow?

I am running a model with a very big word embedding (>2M words). When I use tf.embedding_lookup, it expects the matrix, which is big. When I run, I subsequently get out of GPU memory error. If I reduce the size of the embedding, everything works…
thang
  • 3,466
  • 1
  • 19
  • 31
1 2
3
90 91