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
30
votes
3 answers

Golang embedded struct type

I have these types: type Value interface{} type NamedValue struct { Name string Value Value } type ErrorValue struct { NamedValue Error error } I can use v := NamedValue{Name: "fine", Value: 33}, but I am not able to use e :=…
Ayman
  • 11,265
  • 16
  • 66
  • 92
27
votes
1 answer

Embedding Lua in C++

I've been trying to embed lua in a c++ application but to no avail since the compiler complains about "lua_open".I'm using Lua 5.2. I found alot of articles claiming that lua_open() was replaced in the fifth version but none of them mentioned with…
NT_SYSTEM
  • 367
  • 1
  • 6
  • 14
26
votes
1 answer

luaL_openlib replacement for Lua 5.2

I am adapting a library written for Lua < 5.2 and got to a call I don't know the equivalent of: luaL_openlib(L, "Polycore", polycoreLib, 0); Where polycoreLib is a static const struct luaL_Reg polycoreLib [] How can I replace the call to…
Appleshell
  • 7,088
  • 6
  • 47
  • 96
25
votes
2 answers

What "exactly" happens inside embedding layer in pytorch?

From multiple searches and pytorch documentation itself I could figure out that inside embedding layer there is a lookup table where the embedding vectors are stored. What I am not able to understand: what exactly happens during training in this…
Rituraj Kaushik
  • 353
  • 3
  • 5
22
votes
6 answers

TensorBoard Embedding Example?

I'm looking for a tensorboard embedding example, with iris data for example like the embedding projector http://projector.tensorflow.org/ But unfortunately i couldn't find one. Just a little bit information about how to do it in…
Patrick
  • 684
  • 1
  • 9
  • 18
21
votes
5 answers

How can I embed firefox in a GUI application?

Has anyone ever embedded the firefox web browser technology in their own [unmanaged] C/C++ GUI application in the same way that IE can be embedded as a COM object? (I would like to do this on Linux, not Windows). Are there "better" alternatives to…
Matt Ervin
  • 311
  • 1
  • 2
  • 5
19
votes
5 answers

Can I embed other files in a DLL?

I'm writing a plug-in for another application through an API. The plug-ins are distributed a DLLs. Is it possible to embed other files in the DLL file like pdfs, images, chm help files etc... I want to be able to provide documentation with my…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
18
votes
3 answers

MongoDB: automatically generated IDs are zeroes

I'm using MongoDB and official C# driver 0.9 I'm just checking how embedding simple documents works. There are 2 easy classes: public class User { public ObjectId _id { get; set; } public string Name { get; set; } public…
Alex
  • 34,581
  • 26
  • 91
  • 135
18
votes
5 answers

Idiomatic way to embed struct with custom MarshalJSON() method

Given the following structs: type Person struct { Name string `json:"name"` } type Employee struct { *Person JobRole string `json:"jobRole"` } I can easily marshal an Employee to JSON as expected: p := Person{"Bob"} e := Employee{&p,…
Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
18
votes
1 answer

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?
RCIX
  • 38,647
  • 50
  • 150
  • 207
17
votes
4 answers

Better page load performance when loading multiple embedded Youtube videos?

I have a page which displays multiple (usually 10) embedded videos. The videos use the new IFRAME embed code of youtube and apparently for every IFRAME there is a separate request when loading the page. Is there a way to defer loading the videos…
Tom
  • 7,515
  • 7
  • 38
  • 54
17
votes
2 answers

"Could not find transactional storage type" error with embedded RavenDB

I was able to successfully run a simple test for RavenDB based on the code found at: http://ravendb.net/tutorials/hello-world Next I tried to run it in an Embedded Manner, but I keep on getting the following error: Message: Could not find…
Pranav Shah
  • 3,233
  • 3
  • 30
  • 47
16
votes
1 answer

How to embed Lua inside Python?

This sounds like a weird question, so I'll explain circumstances surrounding first. Basically, I have a 3D game development kit, written in Python, that works excellently by itself. However, most of my users will be used to using Lua as a scripting…
DangerOnTheRanger
  • 456
  • 1
  • 3
  • 10
16
votes
2 answers

How to inherit a C++ class in JavaScript?

I am embedding SpiderMonkey to make my C++ library scriptable. To make it extendable, I need it possible to define a new class (JavaScript) inheriting one C++ base class of the library. Is there an example showing me how to do that using…
ims
  • 161
  • 3
16
votes
2 answers

Embed files into Excel using Apache POI

I am exporting data to Excel file using Apache POI. In one weird requirement, I need to embed one file in the Excel using this POI. I have the file, and can be taken into streams or as byte arrays. After googling for much time, I am in a doubt…
Anoop
  • 1,439
  • 5
  • 20
  • 37
1
2
3
90 91