transform

C# - Transform text in ListView column into password characters

Is there a ways to transform text that is in a specific column of a listview control into password characters? Thank you. ...

XSLT to transform list into table with columns determined dynamically

I need this XML, <list columns="3"> <item>martin</item> <item>donald</item> <item>whistler</item> <item>mother</item> <item>carl</item> <item>liz</item> <item>cosmo</item> </list> to look like this: <table> <tr> <td>martin</td> <td>donald</td> <td>whistler</td> </tr> <tr> <td>mother</td> <td>ca...

c#: transform a string targeted for the unix shell use for the windows command prompt.

Here is a sample string I got off a socket stream. \033[H\033[J\033[1;30HSUPERVISOR MAIN MENU\033[6;5H 0. Exit Exit\033[7;5H 1. Help Display help\033[8;5H 2. Control Calling lists and users\033[9;5H 3. Campaign Campaigns\033[10;5H 4. Manage If you want to see the output I expect open a unix/linux shell, t...

Something like xslt for presenting plain-text EDI messages?

I often encounter EDI messages in various plain text formats, for example the format: HEAD[customer,8][date,8][reference,10] [lineno, 3][product, 8][quantity, 3][currency, 3][price, 10]... ..resulting in messages like this: HEAD1122334420091031 LINDAHL 00100004711010USD0000234055 00200004712005USD0000004543 ... Reading the above ...

CSS Transformation

Hello, how can I change with CSS (-moz-transform) a div that should look like this: ...

OpenESB Nested BPEL?

Hi all, I have an unusual design goal that I would like to solve using OpenESB. We have a number of files that will be generated by our system to be transferred to another system. Depending on the data type, the source system and the destination system, a series of transforms will need to take place before the data can be uploaded to th...

Dynamic XSL file

I have 3 XSL files which have paths in them to something like C:\templates\Test\file.pdf This path isn't always going to be the same and rather than having it hard coded in the XSL, I'd like it so that the path C:\templates\test\ is replaced with a tag [BASEPATH] and when I read in the xsl file into the XSLTransform object (yes I know i...

PHP create 3D Array from Array with 3 Values

Hi, again me: following array; $myArray = array('FOO', 'BAR', 'HELLO'); i need: $myArray['FOO']['BAR']['HELLO'] = 0; any ideas? ...

Rotate image through Y-axis on web page

What are my options for rotating an image on a web page through the Y-axis? I'm not sure if I even have the terminology right. Is this called a rotate or a transform. Most of the searches that I've done with "rotate image" show images being turned. What I'm looking for is the mirror image of the image or what it looks like if you were st...

How to get UIView frame position after transform ?

Hi, I want to get the current position of a UIView after a transform rotate has been applied to it. How can i do that ? In the UIView doc i found this about the transform property : "If this property is not the identity transform, the value of the frame property is undefined and therefore should be ignored." I tried to use center...

XSLT Transform XML with Namespaces

I have some XML that I am trying to transform to HTML using XSLT, but I can't get it to work for the life of me. Can someone tell me what I am doing wrong? XML <ArrayOfBrokerage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.test.com/"&gt; <Brokerage> <BrokerageID>91</BrokerageID> <LastYodleeUpdate>0001-01-01T0...

mem_fun and bind1st problem

I've following class: class A { public: // ctr and etc ... A* clone(B* container); }; Now, I've a vector<A*> availableObjs populated already. I want to call clone on each of those, so and insert cloned objects into a new container clonedObjs of type vector<A*>. I'm trying following - but it doesn't compile: transform(availableObjs....

WPF 3D - How can I save and load a Camera view?

I have a WPF 3D scene where I can pan, rotate and zoom using the TrackballDecorator from the 3DTools library. I would like to save the camera settings (transformation) and be able to re-apply them when the application restarts the next time (so the view is restored). I tried to save each individual value of the Camera: private void Sav...

nokogiri: xml to html

Hi, I just want to do some straight conversion (almost just search and replace) but I'm having trouble just getting things to sit in place - I'm ending up with links out of place and duplicated content. I'm sure I'm doing something silly with my attempts at traversing the xml : ) I'm trying with: builder = Nokogiri::HTML::Builder.new d...

ScaleTransform applied to elements in stackpanel causes "white" space

When I add UserControls that have a ScaleTransform applied to them to a StackPanel, I see that there is extra space in between the controls as though the transform was not applied. From what I understand, a transform doesn't actual change the width/height of a control, but rather changes the render width/height. If this is the case, ho...

From Rectangle into trapezoid

Hi, how can i transform rectangle into trapezoid with ActionScript3 my trapezoid is a floor of 3D room, and i want to texturize it (bitmap tile). _____________ | | | | | |_____| | | / \ | | / trapez.\ | |/__________\| ...

Varying xpath-default-namespace in XML source files

I have a set of XML files that I am processing with an XSL transform. They have a default namespace, so my XSL transform must contain the declaration: xpath-default-namespace="urn:CZ-RVV-IS-VaV-XML-NS:data-1.2.2" The problem is that this value changes from time to time, and my transform suddenly stops working, until I look at an exampl...

Extract default namespaceID from XML file

I have a file that contains a default namespace declaration, first few lines of one such here: <?xml version="1.0" encoding="UTF-8"?> <dodavka xmlns="urn:CZ-RVV-IS-VaV-XML-NS:data-1.2.2" xmlns:v="urn:xmlns:mathan.vklap.annotations-1.0" v:faze="finalni" struktura="RIV09A"> <zahlavi v:posledni-zmena="06.09.2009 21:28 +0200 1.4.46"> ...

Whats the best way to resize all the elements in the silverlight canvas on resize?

Hi, I just started learning SL. I have tried to resize all the elements inside the canvas on its resize. But i cant find the right way. this is what i did Iterate throgh the all child elements in canvas calaculate the scale X & Y based on the new size And multiply the scale values with each elements size properties But in SL3.0 i...

How to transform directional light to camera space in GLSL

I have the following GLSL code for lighting: uniform vec3 lightDir; // Parallel light uniform float ambient; uniform vec3 lightColour; void main() { gl_Position = ftransform(); vec3 eyeNormal = normalize(gl_NormalMatrix * gl_Normal); float intensity = max(ambient, dot(eyeNormal, normalize(-lightDir)); gl_FrontColo...