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

Function which modifies any structure which has particular fields

I have a couple of structures, which inherit some basic structure. Something like this: type s1 struct { a string `json:"a"` b string `json:"b"` } type s2 struct { s1 c string `json:"c"` d string `json:"d"` } type s3 struct { …
Salvador Dali
  • 214,103
  • 147
  • 703
  • 753
-1
votes
2 answers

Embedding youtube videos with URLs in an XML file

I've set up a site for watching videos I've uploaded to YouTube. I'm currently using multiple html docs with each different video which is inconvenient. I'm wondering if there's a way I could read the URL of the video from a .xml file and run every…
-1
votes
2 answers

Embedding Google Maps - With multiple markers

I am trying to embed a map into my website with multiple locations marked on it. This is the code I have for the map section, please can someone help as it stopped working once I added the third location.
-1
votes
1 answer

Adjusting the Play Button Size for the Kaltura Video Player?

I'm having trouble adjusting the size of the play button on an embedded Kultura video. When I embed a video within a smaller container or screen size, the play button is so large that it nearly covers the entire thumbnail on any state. (see…
Shapada
  • 89
  • 1
  • 3
  • 11
-1
votes
1 answer

Python:embedded for loops: numbering list output

Thank you for clicking. Trying to print a numbered list. Have a for loop for printing list. Ie. print("COMPOUND:EMBED=okay but not right") # for num in range(1,6+1): # for error in errors_list: # num=str(num) # print(num + ".", error,…
user5363084
-1
votes
1 answer

Youtube player is not being displayed in mobile browsers

My website displays embedded Youtube video player in desktop browsers but nothing in mobile. Nothing shows up instead a blank space created for youtube player. Here is a sample link: http://nepali.rocks/1974-ad-hinda-hindai-4/187467
Scriptaty
  • 13
  • 3
-1
votes
1 answer

Embedding Files into existing .Net Executable

I am writing an installer. This installer should be able to embed 1..n files in .exe body. I dont want to ship 2 seperate files (like an .exe and a .cab). First i have tried mono.cecil variant to Add new external resources (each file is single…
turkey
  • 1
-1
votes
1 answer

PyQt4 and matplotlib: Legend outside of the plot is cut off

I've been googling a lot, but I haven't found a solution. The problem is the same as here: Moving matplotlib legend outside of the axis makes it cutoff by the figure box But I don't want to save the figure, I just want to have the legend inside the…
ProgrammingIsAwsome
  • 1,109
  • 7
  • 15
-1
votes
3 answers

how to read values from a structure in C

#include #define msize 4096 struct memory { int a[msize]; }; void main() { struct memory m; m.a[0]=250; // temperature value of 25,0 m.a[4]=01; // heater status OFF m.a[8]=240; // temperature value of 24,0 …
user2306769
  • 11
  • 2
  • 4
-2
votes
1 answer

PyObject_CallObject is returning NULL when trying to pass an array

I am trying to pass a 2D array from C++ to Python function but the PyObject_CallObject function is returning NULL.This happens in case of 1D array as well. It works fine when I do not pass any argument or in case the argument is just single variable…
surajj4837
  • 49
  • 1
  • 10
-2
votes
1 answer

extract_features sentence embedding BERT

I'm using this code to get the embeddings of sentences that are in my dataset(I'm using my pretrained model). `python extract_features.py \ --input_file=/tmp/input.txt \ --output_file=/tmp/output.jsonl \ --vocab_file=$BERT_BASE_DIR/vocab.txt…
-2
votes
2 answers

Distinguishing Words with other Words within It

so I'm trying to be able to detect only "astro" (case insensitive) in a sentence with other words that contain the word "astro" in it. For example: message = 'Astro, the astronaut, studies astrology.' if 'astro' in message: count =…
-2
votes
1 answer

Undefined error where calling a promoted function

I am getting an undefined error when using a promoted function in GO. import "log" type logger struct { log.Logger } logError := logger.New(os.Stderr, "ERROR", log.LstdFlags) logOut := logger.New(os.Stdout, "INFO", log.LstdFlags) This results…
geexee
  • 339
  • 2
  • 13
-2
votes
1 answer

How to avoid a golang function having different behaviors between calling the embedding and embedded types?

Let's say in a 3rd party library we have an interface and a struct implementing this interface. Let's also assume there is a function that takes ParentInterface as argument, which have different behavior for different types. type ParentInterface…
David M
  • 433
  • 1
  • 4
  • 10
-3
votes
2 answers

Making APK for flutter project on VSCode windows

I am working on a project and while converting it to an APK file, I am facing an error: Warning ────────────────────────────────────────────────────────────────────────────── Your Flutter application is created using an older version of the…
programmer
  • 25
  • 1
  • 4
  • 11
1 2 3
90
91