transformation

MATLAB: How do I get 3D coordiantes from a user-click?

I'm using Matlab to create a small chess game for one of my courses this semester. The thing I'm having trouble with is having the user be able to select one of the chess pieces. To simplify things, I'm making it so that the user selects a piece by clicking on the square that the chess piece resides on rather than clicking the piece it...

How to make smooth movements in OpenGL?

So this kind of on topic to my other OpenGL question (not my OpenGL ES question but OpenGL the desktop version). If you have someone press a key to move a square how do you make the square movement naturally and less jumpy but also at the same speed I have it now? This is my code for the glutKeyboardFunc() function: void handleKeypress(...

Is it possible, with simple F# pattern matching transformations, to ignore unmatched values without a warning?

So, I previously asked this question: http://stackoverflow.com/questions/2820234/can-someone-help-me-compare-using-f-over-c-in-this-specific-example-ip-address I was looking at the posted code and I was wondering if this code could be written without it producing a warning: let [|a;b;c;d|] = s.Split [|'.'|] IP(parseOrParts a, parseOrP...

OpenGL ES rotation in fixed coordinate system

Hi, I'm having real trouble finding out how to rotate an object arround two axes without changing axes orientation. I need only local rotation, first arround X axis and then arround Y axis(only example, it doesn't matter how many transformations arround which axes) without transforming the whole coordinate system, only the object. The p...

Interpolation and Morphing of an image in labview and/or openCV

I am working on an image manipulation problem. I have an overhead projector that projects onto a screen, and I have a camera that takes pictures of that. I can establish a 1:1 correspondence between a subset of projector coordinates and a subset of camera pixels by projecting dots on the screen and finding the centers of mass of the re...

how to change culture date format in c#?

how to change culture date format in c# ...

Advanced tasks using Web.Config transformation

Does anyone know if there is a way to "transform" specific sections of values instead of replacing the whole value or an attribute? For example, I've got several appSettings entries that specify the Urls for different webservices. These entries are slightly different in the dev environment than the production environment. Some are less...

How to pss a ObjectMessage from perl to JMS

I want to send a perl object as a message to JMS server. I am using Net::Stomp to send a message from perl client to jms server. I am able to send text message but i want to construct a object similar to java object and send it to jms and convert that perl object back to java object at jms server. Can anybody help? ...

Transformation to get rid of collinear points

Hi, I'm writing a program to solve a geometry problem. My algorithm doesn't treat collinear point very well. Is there any transformation I can apply to the points to get rid of the collinearity? ...

Remove XML comments using Visual Studio 2010 Web Config Transformation

We are using Team Build to handle our deployments to our development server, and we have a need to remove comments from our web config when it's transformed. Does anyone know how to remove the "" comment lines from the web config file using a transformation? ...

Recursive xsl transformation

I have a xml document on the following format and want to transform it using a xsl template. I'm a beginner at xsl transformations and I only need to know how to recurse trough the tree but a solution to the whole problem would be nice. This is the xml document: <?xml version="1.0" encoding="UTF-8" ?> <nodes xmlns:xsi="http://www.w3....

Cannot add namespace prefix to children using XSL

I checked many answers here and I think I am almost there. One thing that is bugging me (and for some reason my peer needs it) follows: I have the following input XML: <?xml version="1.0" encoding="utf-8"?> <MyRoot> <MyRequest CompletionCode="0" CustomerID="9999999999"/> <List TotalList="1"> <Order CustomerID="999999999" OrderN...

jQuery + Webkit +... switching between CSS3 transitions/transforms and javascript automatically?

it may sound a weird question not easy also to explain: Jquery works flawless on any desktop web browser but as you may have already noticed is pretty cluncky on iphone/ipad/ipod because is not hardware accelerated as the webkit transforms are...the latter are very smooth...but they work only on apple products. my question is if do you...

jQuery script to move an attribute of matched elements to their children

I have a set of anchors like <a class="lb" href="#">text</a> <a class="lb" href="#" style="width:200px">text</a> <a class="lb" href="#" style="color: reen; width:200px">text</a> that needs to be transformed to the following: <a class="lb" href="#"><span>text</span></a> <a class="lb" href="#"><span style="width:200px">text</span></a> ...

Transform RSS-Feed into another "standard" XML-Format with PHP

Hey friends, quick question: I need to transform a default RSS Structure into another XML-format. The RSS File is like.... <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>Name des RSS Feed</title> <description>Feed Beschreibung</description> <language>de</lang...

How to apply VS2010 web.config transformation to an element with a namespace attribute?

I'd like to use the new VS2010 web.config transformation feature to change the connection string within the nhibernate configuration in my web.config file. The relevant snippet is something like this: <?xml version="1.0"?> <configuration> <configSections> <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSe...

Core Animation and Transformation like zoomRectToVisible

Hi ! I'm trying to get an effect like the zoomRectToVisible-method of UIScrollview. But my method should be able to center the particular rect in the layer while zooming and it should be able to re-adjust after the device orientation changed. I'm trying to write a software like the marvel-comic app and need a view that presents each pa...

Scale a CALayer to base unit size

My app relies heavily on Core Animation; the main view contains dozens of CALayers. In order to facilitate zooming in/out, I have a master layer which contains all layers that I wish to be 'zoomable'. When I zoom, simply modify the sublayerTransform of the master layer. This works fine, however I would like the actual content rendered b...

transform .SVG images by the help of PHP - Image Magick similar

Hello. There's a need to transform .svg files and save em either in .svg or jpeg format. The problems with ImageMagick is that it saves transformed files on white background and I deadly need it on transparent. Any suggestions with other tools or clear php? Would really appreciate it. ...

Can Web.config transformations be used with App.config files?

Sorry folks, my search fu was low when looking for a version of this question. It's asked and answered here: http://stackoverflow.com/questions/3004210/app-config-transformation-for-visual-studio-2010 Basically, the question above. The new config transformations that are provided for a web.config file for different environments are re...