FAQ Database Discussion Community


how to prevent transformation of text inherited from a skewed parent

html,css,transformation
Hie,i am trying to prevent the text inside a link from skewing together with the parent. here is how it looks .one { width:300px; height:250px; list-style:none; color:#FFF; } .one li { width: 115px; height: 100px; text-align:center; display: inline-block; -moz-transform: translate(0px, -1px) skew(0deg, -5deg); -webkit-transform: translate(0px, -1px) skew(0deg, -5deg); -o-transform: translate(0px,...

How to automate file transformation with simultanous execution?

bash,automation,transformation,simultaneous
I am working on transforming a lot of image files (png) into text files. I have the basic code to do this one by one, which is really time consuming. My process involves converting the image files into a black and white format and then using tesseract to transform those...

Transformation Hierarchy - applying a parent's orientation to its children

c++,opengl,vector,transformation,quaternions
My goal: When being rendered, a child object needs to render relative to its parent; thus its own position and orientation need to be relative to its parent My problem: Translations work, but the parent's rotation/orientation isn't correctly being added to a child's transformation calculation; the child rotates on its...

3D Rotation of a pose around origin

python,transformation,ros,euler-angles
I want to transform a pose around origin. The pose I have contains a position [x,y,z] and an orientation [x,y,z,w] represented as a quaternion. I have a 4x4 transformation matrix which I use to translate and rotate the position of the pose around origin. np.dot(transforma_mat, np.transpose(np.append(pose.position, 1))) So, as the...

UIImageView height and width changes after rotation

ios,objective-c,uiimageview,transformation
Hey guys I've been trying to use two UISliders to manipulate one UIImageView. One slider to scale the image and one to rotate it. However, when I switch from one slider to the other it resets the previous rotation. (So if I scale the image to say 125x125 when its...

Scale and translate transformations on a matrix

c#,matrix,windows-phone,transformation
I am currently trying to port the following Java or Swift code in C# (in a Windows Phone library) : Here the Java code : public Matrix zoom(float scaleX, float scaleY, float x, float y) { final Matrix save = new Matrix(); save.set(anotherMatrix); save.postScale(scaleX, scaleY, x, y); return save; }...

How to XSLT transform XML nested attribute elements and concatenate name

xml,xslt,transformation,pubmed
I am not savvy with XML/XSLT at all. I'm just trying to learn enough to transform this XML file into something that my Access database can use. The XML data was output in an attribute format and Access only likes the element format. I have the basic transformations down, but...

Error in using gdal java binding

java,transformation,gdal,coordinate-systems
I am using the java binding of gdal to project a set of coordinate points from UTM to lat/log using the CoordinateTransformation Class of gdal. I have written the code as follows: SpatialReference oUTM = new SpatialReference(); SpatialReference oLatLog = new SpatialReference(); oUTM.SetProjCS("UTM 44/ WGS84"); oUTM.SetWellKnownGeogCS("WGS84"); oUTM.SetUTM(44, 1); oLatLog =...

Scene rendering wonky when camera transformations occur

c++,matrix,camera,transformation,glm
I've recently switched over to GLM for managing my matrices and vectors, however when I change my variables such as camera angles or position, the whole rendered scene goes haywire. I really don't know how to describe it other than stretching and moving all over the place. Problem: "Camera" transformations...

What does &(0,1) mean in jolt transformation?

json,transformation,jolt
Here (click Convert 'prefix soup', to nested data item) is example of translating prefix json into nested json. Interesting string is "rating-*": "SecondaryRatings.&(0,1)" I understand that * is regular expression for keys, & somehow refer to value, but what does (0,1) mean in jolt?...

Zero average in image processing ( Pascal transformation )

image,processing,transformation,pascal
I am doing pascal transformation on 4x4 block of image.Anyway i am having some problems at specific placeses.I know how to reduce effect of noice. 1.One point of text i don't understand and that is : Shifting the data values to zero average first will improve this effect. 2.How can...

Scaled and transform Qgraphicspixmapitem

c++,qt,transformation,image-quality,qgraphicspixmapitem
I have a problem while scaling and transforming QGraphicsPixmapItem. I have created graphics editor in which I am using QGraphicsItem of initial size 100,100 and after that I am resizing and rotating it by setTransform() method. After that I am storing this transform and using these for my another application...

SlowCheetah: How to Inlcude transformed files from a class library referenced in a a second project to that projects output?

.net,transformation,web.config-transform,slowcheetah,config-transformation
Using SlowCheetah I have a custom.config file in my class library and I want this file transformed and included in the output of my console application which references it. Slow Cheetah transforms the custom.config into its own bin folder, and I can included the custom.config by using copy-always/newer, but then...

Java3D Sphere Orbit

java,animation,transformation,java-3d
I've looked everywhere and I can't find anything on how to make a sphere orbit a central point in Java 3D. Specifically I want to make a sphere do a circular motion around the origin at a constant speed and for it to loop forever. I guess that these equations...

Interaction plot - coding fail for Two-way anova in R

r,transformation,interaction,anova,sqrt
I am trying to analyse and present the results of Gastropod abundance vs. height on the shore and species in a Two-Way ANOVA. This is the dataset http://dropcanvas.com/ercb6 The data has been sqrt transformed and an ANOVA test was successful. In my sample code below I was able to make...

dplyr transmute returning fewer rows than the original data frame

r,transformation,dplyr,mutated
I need to get a summary of a grouped data set that is 4 rows (basically the square the would surround the set of data points in the subet of the data frame. A function: myfun <- function(F1,F2){ out <-structure(list(f2 = c(1097.81431421448, 2331.43870452636, 2154.84583430979, 1210.68973077198), f1 = c(411.462078942253, 334.070858898298, 834.761924536241,...

How to link XSLT from another server on XML

xml,xslt,transformation
In my XML file I have <?xml version="1.0" encoding='utf-8'?> <?xml-stylesheet type="text/xsl" href="http://anotherServerLocation/file.xslt" ?> And I get: XML-25026: Stylesheet URL references an untrusted server. If I add XSLT file inside application and call only file.xslt, it works. I also can open the XSLT file with my browser....

Transforming irregular data into usable format in R

r,data.table,transformation
Suppose I work in a company that provides a number of different services to their customers. I have been given a data report on the services provided that I need to analyse. The report is formatted in a way to be easily read and printed, but not suitable for data...

Pentaho - CSV Input not understanding special character [Windows to Linux]

linux,pentaho,transformation,business-intelligence,pdi
I have a transformation on Pentaho Data Integration where the first thing I do is I use the "CSV Input" to map my flat file. I've never had a problem with it on windows, but now I'm chaning my server that spoon is going to run to a linux server...

XSL transformation - how to look for linking node

xml,xslt,transformation
I am new to XSL transformation. I am transforming the following XML to another XML format: <root> <header> <section id="a1"> <color>red</color> </section> <section id="a2"> <color>blue</color> </section> </header> <body> This is the sample text <reference link="a1">with color red</reference> and <reference link="a2">with color blue</reference> </body> </root> The section id (in header) is...

XSLT function to filter alphabets and phone number from phone number

xml,xslt,transform,transformation
I have to transform xml date into csv by using XSLT. There is a field for phone number which may contains alphabets, space, country code(+1 for USA) as well as special characters too. I have to remove space, special characters, country code and alphabets and retain only 10 digits numerica...

Matrix Transformation in R - from aggregate output to outer-like matrix

r,matrix,aggregate,transformation,outer-join
I need to transform the output of an aggregate (mean) into a matrix outer-like style. data(mtcars) aggregate(disp ~ cyl + gear, data = mtcars, FUN = mean ) cyl gear disp 4 3 120.1000 6 3 241.5000 8 3 357.6167 4 4 102.6250 6 4 163.8000 4 5 107.7000 6...

Insert element between self-closing elements

xml,xslt,transformation
In an XML document, I intend to insert elements between two self-closing elements. Consider the following example: <body> <p>Lorem ipsum dolor sit amet, <lb/>consectetur adipisici elit, <lb/>sed eiusmod tempor incidunt <lb/>ut labore et dolore magna aliqua. </p> <p>Ut enim ad minim veniam, <lb/>quis nostrud exercitation ullamco <lb/>laboris nisi ut aliquid...

Stacking order (z-index) when using transform

jquery,css3,z-index,transformation,transitions
At the the fiddle below I have a right nav which has a submenu, the submenu should appear as the user enters text in the search field. ATM. I had to place the search box outside of the navbar (.link-list) since the element containing the submenu appears over it thus...

Card flip program in HTML not fliping properly

html,css,web,transition,transformation
Link to the Card Flip program! The card do get flipped but then when it turns over there is an error for a split second which disappears immediately.How am i supposed to remove that error? I guess the error is mostly occuring when the backface-visibility:hidden; is used. *{margin:0px; padding:0px; }...

Powershell Invoke-Command with PSCredential Cannot process argument transformation on parameter 'Credential'

powershell,arguments,transformation,credentials,invoke-command
I'm trying to run a powershell invoke-command call with a PSCredential as parameter. But the call fails with the error: Invoke-Command : Cannot process argument transformation on parameter 'Credential'. userName" Here is the detailed output I get : error 17-Jun-2015 14:33:53 Invoke-Command : Cannot process argument transformation on parameter 'Credential'....

XQuery XML insert

xml,xslt,xquery,transformation,osb
I have XML based target data: <myTargetData> <myMap> <pairs> <key>KEY_1</key> <value> <myMap> <pairs> <key>INNER_KEY_1</key> <value/> </pairs> <pairs> <key>INNER_KEY_2</key> <value/> </pairs> <pairs> <key>INNER_KEY_3</key> <value> <myMap> <pairs> <key>INNER_INNER_KEY_1</key> <value/> </pairs> <pairs> <key>INNER_INNER_KEY_2</key> <value/>...

web.config transformation based on solution configuration

c#,asp.net,.net,web-config,transformation
Morning/afternoon/evening all. I am trying to apply a web.config transformations as part of a Jenkins build. I have got the transformation running by adding the following to my csproj: <Target Name="BeforeBuild"> <TransformXml Source="Web.config" Transform="Web.$(Configuration).config" Destination="Web.config" /> </Target> Which is great except for the fact that it now transforms the file...

Moving and renaming contents of an XML node

xslt,transformation
i am a newbie when it comes to XSLT translations, and have been searching with this question for a while, but did not find any answher to it. I have an XML file looking like this: <item> <code>I001</code> <description>DEF</description> <properties> <line1> <key>key 1</key> <value>value 1</value> </line1> <line2> <key>key 2</key> <value>value...

JavaFX clock number transitions

java,javafx,rotation,javafx-2,transformation
I am attempting to create a clock in JavaFX, everything worked out well, except for the numbers which represent the time (from 1 to 12). I have this piece of code: Group numbers = new Group(); for(int i = 0; i < 12; i++){ //create a label. Label label =...

jQ: transformin json to tsv on Windows

json,transformation,tsv,jq
I am using jQ on a windows machine and I have the following data: {"a":"Person","birthDay":"12","deathDay":"15", ...} {"a":"Person","birthDay":"13","deathDay":"16", ...} ... And I would like to have a tab separated file format: Person 12 15 Person 13 16 I can get the values with ".a" or ".birhtDay". But how can I get...

Change 'handedness' of a Row-major 4x4 transformation matrix

math,matrix,transformation
I have transformation and rotation coordinate data that is in a Row-major 4x4 transformation matrix format. Ux Vx Wx Tx Uy Vy Wy Ty Uz Vz Wz Tz 0 0 0 1 The source of the data and the software that I need to send it to have different handed...

XSL for transformation of text node

xml,xslt,attributes,element,transformation
There is a xml (for the example the xml is simplified) <object attr1="1" attr2="2"> xxxxxxxxx <someattrs> <someattr1>a</someattr1> <someattr2>b</someattr2> <someattr3>c</someattr3> <someattr4 attr3="3"> yyyyyyy <someattr5>d</someattr5> <someattr6>e</someattr6> <someattr7 attr8="f"> <![CDATA[ zzzzzzz zzzzzz zzzzzz zzzzzzzzzzzz ]]> </someattr7> </someattr4> </someattrs> </object> With the xls transformation which is meant to...