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
298
votes
14 answers

How do I force files to open in the browser instead of downloading (PDF)?

Is there a way to force PDF files to open in the browser when the option "Display PDF in browser" is unchecked? I tried using the embed tag and an iframe, but it only works when that option is checked. What can I do?
elloalisboa
  • 3,053
  • 2
  • 17
  • 10
147
votes
16 answers

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?
dougoftheabaci
135
votes
8 answers

Embed SVG in SVG?

I have an SVG document, and I would like to include an external svg image within it, i.e. something like: ("object" is just an example - the outer document will be SVG rather than…
Marcin
  • 48,559
  • 18
  • 128
  • 201
134
votes
8 answers

Best practice for embedding arbitrary JSON in the DOM?

I'm thinking about embedding arbitrary JSON in the DOM like this: This is similar to the way one might store an arbitrary HTML…
Ben Lee
  • 52,489
  • 13
  • 125
  • 145
70
votes
4 answers

Embedding small plots inside subplots in matplotlib

If you want to insert a small plot inside a bigger one you can use Axes, like here. The problem is that I don't know how to do the same inside a subplot. I have several subplots and I would like to plot a small plot inside each subplot. The example…
Argitzen
  • 783
  • 1
  • 8
  • 7
57
votes
7 answers

Embedding instead of inheritance in Go

What is your opinion of this design decision? What advantages does it have and what disadvantages? Links: Embedding description
Casebash
  • 114,675
  • 90
  • 247
  • 350
56
votes
6 answers

"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…
Thilo
  • 257,207
  • 101
  • 511
  • 656
51
votes
1 answer

Embed Python3 without standard library

EDIT: I have asked an opposing question here: How to embed Python3 with the standard library A solution for Python2 is provided here: Is it possible to embed python without the standard library? However, Python3 fails on Py_Initialize(); with: Fatal…
P i
  • 29,020
  • 36
  • 159
  • 267
49
votes
3 answers

How do I embed a mp4 movie into my html?

I have a blog section on my site that has the TinyMce editor. I want to embed a video when I post a blog and it's just spitting out the code. I have added the tag on my output script. This is the code I'm using to for the video:
Ralph The Mouf
  • 1,007
  • 1
  • 14
  • 21
42
votes
5 answers

Is it ok for an HTML element to have the same [name] as its [id]?

I'm working on embedding a flash app in a webpage using the Satay method: I want flash to provide the…
zzzzBov
  • 174,988
  • 54
  • 320
  • 367
40
votes
5 answers

How do I embed my own fonts in a WinForms app?

I want to embed fonts in my WinForms application so that I don't have to worry about them being installed on the machine. I've searched a bit on the MSDN site and found a few hints about using native Windows API calls, for instance Michael Caplan's…
Niklas Winde
  • 1,761
  • 3
  • 23
  • 33
38
votes
3 answers

Pytorch RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got CUDAType instead

I am trying to re-execute a GitHub project on my computer for recommendation using embedding, the goal is to first embed the user and item present in the movieLens dataset, and then use the inner product to predict a rating, when I finished the…
Ilyes
  • 581
  • 1
  • 5
  • 12
38
votes
3 answers

How to embed WebKit into my C/C++/Win32 application?

The solutions I have found are irrelevant: someone used WebKit in a Delphi project someone used it with Java there is QtWebKit (about:blank demo app takes 44 megs) .Net port of it GTK+ port I need a guide how to embed WebKit instance into a pure…
Pavel Vlasov
  • 4,206
  • 6
  • 41
  • 54
34
votes
11 answers

Tiny javascript implementation?

I need an extremely tiny implementation of (maybe a subset of?) Javascript. Code size and memory usage are extremely important (speed isn't in the question, it can run as slow as it likes). It must be written in C (not C++), and that too, ANSI C…
Dhaivat Pandya
  • 6,499
  • 4
  • 29
  • 43
33
votes
3 answers

Embedding the Java h2 database programmatically

At the moment we use HSQLDB as an embedded database, but we search for a database with less memory footprint as the data volume grows. Derby / JavaDB is not an option at the moment because it stores properties globally in the system properties. So…
Georgi
  • 4,402
  • 4
  • 24
  • 20
1
2 3
90 91