embedding

Embed images for use in email message using PHP?

I know how to embed an image into an email as an attachment, but that's not really what I want to do. What I want to do is embed an image into the message and use that within the body of the email message itself. Is it possible to do this or possibly reference an attached file somehow to be used in the message? Should I even worry about...

Preview JPG for a windows media player.

I'd like to have a JPG preview for my simple .wmv player. Any ideas? Here it is... <div id="embed"> <OBJECT id='mediaPlayer1' width="360" height="240" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52...

If you can embedd php into a .html file, why would you use .php?

Is there a reason why certain pages are made as .php when you can put php into a .html file? Is it simply for the sake of organizing your files? Or does it affect how the page loads? (I'm talking about the file extension) ...

.NET LicenseManager license embedding for redistributable components

Hi all, We are trying to use the .NET LicenseManger/Provider for our own custom component. However, it seems that this can't really be used if the licensed control will be wrapped in a 3rd party user control itself, since the saved license is always embedded in the control assembly in that case, which would force the consumer of that co...

Sanitizing video embedding code in Rails. What's a good solution?

What's your preferred method of sanitizing embed code entered in a form? In other words, is there an easy way of ONLY allowing users to embed video from YouTube and Vimeo for example? Do you use the Sanitize helper? If there is a proven solution to this I'd prefer to use it rather than reinventing the wheel. Thank you for reading my ques...

Flash Embed: how do i add a message that appears instead of a flash video if a user has not installed flash?

i have a flash video called abc.swf that i would like to play when a user first registers to our website. however, if the user does not have flash, i need it to tell them that in an easy way. for this reason, i am trying to tell them how to download flash with the following html: <div style="text-align:center;"> <p><strong>You do ...

Embed many graphics using an array

In AS3 you can embed a graphic into a Class variable: [Embed(source="MenuAssets.swf", symbol="topSquare")] public var TopMenuItem:Class; I have hundreds of assets in this one website project I'm doing, so I want to embed assets into an array for quick access. Can I do something like this? Its not compiling so I'm wonderi...

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 screen which would contain the other activity, and below that would be buttons and control...

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 SpiderMonkey? ...

What is the Wordpress Add Video icon supposed to do?

I love Wordpress, and for the most part it is self-explanitory and easy to use. However, the "Add Video" icon on the edit post page seems to be almost completely useless. Here's what I did: Press the "Add Video" button Uploaded a video file from my local machine called ballon.mpg Pressed the "Insert into post" button The result i...

Calling a python method from C/C++, and extracting its return value.

I'd like to call a custom function that is defined in a python module from C. I have some preliminary code to do that, but it just prints the output to stdout. mytest.py import math def myabs(x): return math.fabs(x) test.cpp #include <Python.h> int main() { Py_Initialize(); PyRun_SimpleString("import sys; sys.path.appe...

Prevent a user from closing an application that is opened through a C# program

I have a old command line based program (its fortran if that matters) that is opened from a C# application when a user clicks a button. If the command line program is shut down while it is running data becomes corrupted. Is there any way to prevent people shutting it down while it is running? Like make the [x] not be available or some...

Embeddable formula interpreter

I need something to embed in my C/C++ program to interpret formulas of the like x*log(x) or sin(x). I would like something small and simple, otherwise I can just embed Python, or Ch, or Scheme, or you name it. But all I need is simple formulas. I have searched the web without luck. Although I don't require it, performance (e.g., the use ...

Emedding Ruby into GTK+ application

Hi. I'm creating GTK+ application that has embedded Ruby interpreter, small logic functions w/o side effects (those who only return some values) are working ok already, but I would like Ruby scripts to interact with main programs widgets. I know there is ruby-gtk2 gem, but how do I tell Ruby that widget passed from C must be wrapped wit...

VB Style CD Embedding with .Net Framework

Hi there, In the old VB6 days it was possible to embed the runtime onto a cd and run the app automatically when the CD was popped in without having to run through an installation. Is there anything available in .Net that mimics this? Thanks Jacques ...

How to build JavaScriptCore for iOS device?

I've downloaded Webkit nightly build. I open JavaScriptCore and built it. Compilation done without any error. But the output was a Framework contains only OS X binary. I tried unchecking 'build active architecture only' but only desktop architectures built. (I looked in the binary with lipo tool) Is there any simple way to do this? I'm ...

Is it good style to call bash commands within a Python script using os.system("bash code")?

I was wondering whether or not it is considered a good style to call bash commands within a Python script using os.system(). I was also wondering whether or not it is safe to do so as well. I know how to implement some of the functionality I need in Bash and in Python, but it is much simpler and more intuitive to implement it in Bash. H...

Specify embeded flash object directory?

How should I change the following code if I want to put my flash object into a directory named "flash/", I tried changing the value to "flash/photo.swf" but it didn't work. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="...

Quicktime Playback using Javascript

I have been reading the JavaScript Scripting Guide for Quicktime and in there it gives you an example on how to play a video using a javascript command. Unfortunately whenever I try, I am given the error document.Camera_0.Play() is not a function in firebug. My code is as follows: QT_WriteOBJECT_XHTML( 'video_place...

C++ Object & Javascript Object life cycle mis-synchronization

Dear all, I got a question regarding C++ Object & Javascript Object life cycle mis-synchronization and hope here your gurus could help me out. Specifically, I am embedding SpiderMonkey in my C++ program. I am not sure if my approach is right or not. What I am doing is like (1) C++ program loads a Javascript file and call an entry fun...