transformation

How to do relative animating with Jquery on mouseover and mouseout?

I'm trying to have the following: There is a fixed positioned div on the bottom of my page. When the mouse enters and exits the div animates its height to resp. 100px and 50px. The default height is 50px. I've found that Jquery does this correctly with only one big no-no. When the mouse exits while animating and then reenters again it ...

perspective view/transformation matrix

How do I do a perspective view transformation in Java? As I understand it there is some magical 4 dimensional matrix I can use which will determine the FOV, Aspect Ratio, and Near and Far viewing distances, but I don't know how to create that matrix. I'm able to implement a "PerspectiveTransform" in Java, but I see no effect when using ...

XSL Transform remove Xml Elements

I am stumped. Given an xml doc like: <Frag> <DirRef Id="BeemzDir"> <Com Id="BEED24F05AB78FB588F61D4092654B6D" Guid="{A11AB356-2F45-4157-92EF-ED49F5BE0F70}"> <FileName Id="fil1" KeyPath="yes" Source="My.Exe" /> </Com> <Com Id="FFF24F05AB78FB588F61D4092654CCC" Guid="{A11AB356...

XSL for converting all rows and columns of XSL for Export to Excel. dynamic looping

Hi, I have an xml resultset which has to be converted using XSL for display into an excel spreadsheet in a vb.net application. The xml resultset has 15 columns (15 properties of client like firstname,lastname,address etc) and I don't want to hardcode the select attribute of xsl/xpath with property or xml element names. I need an XSL tha...

Concatenate data into one variable

An XML file has data like: <AddtlStsRsnInf>/00000002/Level 2 Reject</AddtlStsRsnInf> <AddtlStsRsnInf>The Transaction Reference Number is</AddtlStsRsnInf> <AddtlStsRsnInf>not unique.</AddtlStsRsnInf> How do you concatenate the data from all the three tags into a variable? Thanks and regards, Kiran ...

how do I convert from one cartesian system to another

2D problem: I measure the position of the 3 ends of a triangle in a cartesian system. Now i move the system (triangle) to another cartesian system and measure the position of just two ends. How can I identify the location of the 3rd end based on this data? thanks! (and sorry for the bad english as a second angle) ...

parsing date and time

Hello All, Currently In my source file, i am getting date and time values like below. 2010-07-06T19:06:47 i want to put date in one variable and time in another one. Please let me know how to do this. Thanks and Regards, Kiran. ...

Concatenate data into one variable

Hello All, Source file looks like below. </StsRsn> <AddtlStsRsnInf>/00000002/Level 2 Reject</AddtlStsRsnInf> <AddtlStsRsnInf>The Transaction Reference Number is</AddtlStsRsnInf> <AddtlStsRsnInf> not unique.</AddtlStsRsnInf> </StsRsnInf> now the requirement is to concatenate the <AddtlStsRsnInf> value into one signle variable. Could...

Xsl transformation question.

Hi, All, Next question: I have "InputDoc" xml document and xslt file in order to transform into other "OutputDoc" xml document. You can find examples xslt and xml documents below. <?xml version="1.0" encoding="UTF-8"?> <InputDoc> <InputCollection> <InputItem> <InputValue>Value_1</InputValue> </InputItem> </InputCollec...

Scaling a polygon toward an edge?

I know that to scale verticies I simply have to multiply by a scale factor. But I noticed that most vector drawing applications show the shapes bounding box and by dragging one of the edge it will scale the geometry toward the opposite edge, then if you go past this edge it will end up mirroring the geometry on that axis. How is scaling ...

Define PHP-Function in XSL and calling it. Possible? How?

Like the title tells: Is it possible to write a PHP-Function in a XSL-Document and call it afterwards? I have no case, where I wanna do that. Its just a thing it came into my mind while learning XSL. In XSL you can compose something like: <xsl:processing-instruction name="php"> ...some php... </xsl> The PHP code will be run in yo...

Move control along path

Hi, I want to move a control along a path in WPF with a transformation. The movement should be smooth and the path is like a sine curve. Currently no idea how to start... -sa ...

The easiest way to transform collection to array?

Suppose we have a Collection<Foo>. What is the best (shortest in LoC in current context) way to transform it to Foo[]? Any well-known libraries are allowed. UPD: (one more case in this section; leave comments if you think it's worth to create another thread for it): What about transforming Collection<Foo> to Bar[] where Bar has construc...

Is the WPF Matrix3D.Rotate() function innacurate?

I'm currently trying to wrap my head around WPF, and I'm at the stage of converting between coordinate spaces with Matrix3D structures. After realising WPF has differences between Point3D and Vector3D (thats two hours I'll never get back...) I can get a translation matrix set up. I'm now trying to introduce a rotation matrix, but it see...

Migrating data from MSSQL to MySQL

I have a few tables in SQL Server Express that contain data with high characters - ex: Häagen-Dazs I've exported SQL inserts and when I run in MySQL they fail on these characters. SQL Express doesn't have DTS so I can't do an ODBC transformation. I've used FileMaker Pro's external table functionality but the characters show up as odd c...

Set transformation

I'm looking for a way to transform a set, and having trouble. This is because the requirements are rather rigorous. Set A contains a bunch of integers, the details are really irrelevant. Set B contains a bunch of integers, such that: Each value in A directly maps to one and only one value in B. Each bit is true in one, and only one, v...

Find and replace entire HTML nodes with Nokogiri

Hi, i have an HTML, that should be transformed, having some tags replaced with another tags. I don't know about these tags, because they will come from db. So, "set_attribute" or "name" methods of Nokogiri are not suiteable for me I need to do it, in a way, like in this pseudo-code: def preprocess_content doc = Nokogiri::HTML( self...

ASP.NET 4 web.config transformation MSBUILD

Hi, I want to use the newly introduced web.config transformation options in VS2010. But I'm not using the Deploy option of VS2010, i'm using Web Deployment Projects with MSBUILD tasks. Can I apply the transformation with an MSBUILD task? ...

Pivot / Crosstab Query in Oracle 10g (Dynamic column number)

I have this table view UserName Product NumberPurchaces -------- ------- --------------- 'John Doe' 'Chair' 4 'John Doe' 'Table' 1 'Jane Doe' 'Table' 2 'Jane Doe' 'Bed' 1 How can I create a query that will provide this pivot view in Oracle 10g ? UserName Chair Table Bed --------...

jQuery carousel transformation

How can I transform jQuery carousel to show 3x3 square of images instead of 1x3? From: <- |image| |image| |image| -> To: |image| |image| |image| <- |image| |image| |image| -> |image| |image| |image| My source code is like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/x...