embedding

How can I embed firefox in a GUI application?

别等时光非礼了梦想. 提交于 2019-11-30 06:30:01
问题 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 firefox? I'm open to anything as long as I can use it with non-GPL code. My needs are fairly basic; I only need fundamental HTML parsing and display of static local files, but I'd take advantage of more sophisticated technology, if I can get it. I'd

Lua Wrapper for C#? [closed]

倖福魔咒の 提交于 2019-11-30 06:18:58
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? Mark Rushakoff I believe LuaInterface is the most popular one for C#. If I'm wrong, I'm sure someone will correct me. There's a little more information (from Lua's developers) on integrating Lua and .NET, on the Lua website . Update: As of April 2013, the primary developer announced that the project was stalling due to other committements, and has pointed new developments to NLua instead. 来源: https://stackoverflow

Bullet-proof groovy script embedding

回眸只為那壹抹淺笑 提交于 2019-11-30 03:52:27
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 overload the server. I have studied various possibilities and the final solution may be a combination of these: Run the script within a very restricted security manager . The script is run within a no permission SecurityManager. Additional permissions have to be declared (like Android). Launch a new JVM . Create a ScriptProcess wrapper around Runtime

Embedding HTML in embedded SVG in HTML?

梦想与她 提交于 2019-11-30 03:40:03
问题 It's allowed to embed SVG in HTML... <!DOCTYPE html> <html lang="en"> <head> <title>Hmmm....</title> </head> <body> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="500px" height="100%"> <text>Hello cruel world!</text> </svg> </body> </html> ...and vice versa: <svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="500px" height="100%"> <foreignObject x="0" y="0" width="100%" height="100%"> <body xmlns="http://www.w3.org/1999/xhtml"> <h1>Goodbye cruel

Embed Python3 without standard library

 ̄綄美尐妖づ 提交于 2019-11-30 01:44:17
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 Python error: Py_Initialize: unable to load the file system codec ImportError: No module named 'encodings' This makes sense because py3 source files are utf-8 by default. So it seems that it requires an external binary just in order to parse py3 source files. So what to do? It looks as though I need to locate the encodings binary in my system

TensorBoard Embedding Example?

回眸只為那壹抹淺笑 提交于 2019-11-29 23:09:26
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 https://www.tensorflow.org/how_tos/embedding_viz/ Does someone knows a basic tutorial for this functionality? Basics: 1) Setup a 2D tensor variable(s) that holds your embedding(s). embedding_var = tf.Variable(....) 2) Periodically save your embeddings in a LOG_DIR. 3) Associate metadata with your embedding. It sounds like you want to get the Visualization section with

How to make Ghostscript's `ps2pdf14` stop subsetting fonts

瘦欲@ 提交于 2019-11-29 15:35:11
问题 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 document. e.g -dPDFSETTINGS#/prepress -dEmbedAllFonts#true -dSubsetFonts#false -dMaxSubsetPct#0 Note that the # is because the command is running on Windows, it is the same as =. If anyone has any idea how to tell ps2pdf not to subset fonts, I would be very grateful. ----

Instantiating custom C# classes from IronPython

随声附和 提交于 2019-11-29 15:11:52
问题 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 class MyClass { string text; public MyClass(string text) { this.text = text; } public void Write() { Console.WriteLine(text); } } How can I do this in the Python script? obj = MyClass("Hello, World!") obj.Write() Thanks! 回答1: Assuming MyClass is

MongoDB: automatically generated IDs are zeroes

Deadly 提交于 2019-11-29 11:17:36
问题 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 IEnumerable<Address> Addresses { get;set; } } public class Address { public ObjectId _id { get; set; } public string Street { get; set; } public string House { get; set; } } I create a new user: var user = new User { Name = "Sam", Addresses = (new Address[] { new Address {

Can I embed other files in a DLL?

限于喜欢 提交于 2019-11-29 06:21:41
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 plug-in but I'd still like to retain the ability to distribute the plug-in as a single file the user can just drag and drop onto the application to install. Sure, you can embed a resource in your DLL. Then at runtime you just do: Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("com.stackoverflow.plugin.example.Foo.pdf"); This