6,033 questions
-1
votes
0
answers
41
views
How binding the slider value property to a scale property makes the pivot calculation go wrong in a zoom and pan application [duplicate]
Introdution
In a previous post, I asked about why the zoom-by-slider doesn't work as expected when I bind the slider bidirectionally to the scale, to ensure that the slider updates during wheel ...
5
votes
2
answers
260
views
Zoom-by-slider goes awry when binding the slider to the scale property
Intro
The following code demonstrates the Zoom and Drag functionalities of an ImageView in a viewport. Zoom can be adjusted either by scrolling the mouse wheel or through a Slider. Meanwhile, dragging ...
1
vote
1
answer
66
views
Can you extract a world (or world-view) matrix from a World-View-Projection (WVP) matrix?
Can you extract a world (or world-view) matrix from a World-View-Projection matrix? Some apps might only provide a WVP matrix to vertex shader inputs. If you intercept them you can't transform ...
0
votes
2
answers
175
views
CSS transform-scale does not work on Safari on iPhone 17 Pro iOS 26
My webpage utilises the transform/scale() function to downsize it for mobile devices. While it works quite well on most of the test devices, it breaks on iPhone 17 Pro iOS 26.
The webpage loads zoomed ...
0
votes
0
answers
57
views
Line chart> (swimlane/ngx-charts) In zoom-in mode, the chart marker is displaying the value of the next data point instead of the selected one
1. Marker Display Issue in Zoom-In Mode
When zooming into the line chart, the marker/tooltip is showing the value of the next data point instead of the currently selected one.
2. Tooltip Position ...
1
vote
1
answer
89
views
VBA Excel Stack multiple columns together / transpose
Here is how the data is presented (it's in pivot table style but not a true pivot table):
and this is how I need it to transform to:
For each visit, which always start in column H and needs to ...
0
votes
1
answer
64
views
Changing style.transform property of a cdkDrag element
I am showing some cdkDrag elements in a parent component as bellow:
parent.html:
<app-parent>
@for (item of Items; track item; let index = $index) {
<app-child [id]="index"...
0
votes
0
answers
55
views
issue when filtering into a dataframe that seems partitioned
I come here to expose my problem:
I'm currently working on a python repository for timeseries analysis.
In my repo, I create different transform functions.
In a particular code, I have an input that ...
1
vote
1
answer
226
views
Failing to load FBX meshes with correct transform. Assimp 5.2.5
I exported a model to fbx format inside 3ds max. Inside Max the scene look like this:
When i import it in my software i get this:
https://youtu.be/WPQnkxzL24g
The meshes transform is wrong. But if I ...
0
votes
2
answers
81
views
How convert a list into list of object in ansible
In my playbook I have a list like this
users:
- readonly
- write
and I need to translate it to a list of objects/dictionaries
userDict:
- {'username': readonly, 'database': admin}
- {'...
2
votes
1
answer
92
views
why is transforming a string to octal value \ooo isnt working when i use an f-string and a variable inside {}?
When using a backslash followed by three integers, Python interprets them as an octal value:
# A backslash followed by three integers will result in an octal value:
txt = "\110\145\154\154\157&...
1
vote
1
answer
104
views
Why is the transform.position.y acting wierd?
it's my first time asking something, I hope I'll do it right.
I am looking to fix the y position of an image in a scroll rect. I have done so on the x axis for another image, and it works perfectly. ...
-1
votes
1
answer
53
views
transform pyspark a single row of input condition values into multiple rows of individual conditions
I have a PySpark DataFrame that contains a single row but multiple columns (in context of sql where clause). It just like column start_date with value >date("2025-01-01") then new column ...
0
votes
0
answers
35
views
SVG transform on foreignObject's parent doesn't work in Safari [duplicate]
In Safari transform attribute on the foreignObject's parent doesn't work. I couldn't find any workaround other than using native SVG elements like rect, etc., but in my I case I need to use HTML ...
1
vote
3
answers
73
views
Transforming 3-tuples to "unique" form for comparison of other property
Being primarily a crystallographer and chemist/physicist I encounter rather simple problems, which turn out not to be straightforward :-) My task here is that I have a set of, for example, integer ...
1
vote
0
answers
143
views
DOM elements correctly initialized but not visible after slider transform
I am dynamically adding DOM elements during initialization using JavaScript.
All the elements are correctly added to the DOM (see developer tools screenshot — all tags are inside the container).
...
0
votes
3
answers
52
views
How can I use a rotated, repeating background image (inside a partially flex-box-ed container)?
I want to create fancy borders for an element but the vertical lines are giving me trouble
the right side looks correct in this example but only works for this specific size (which i don't want) and ...
0
votes
1
answer
43
views
How do I stop Overflow from interfering with TranslateZ()?
I am trying to have a scrollable area that has a parallax effect using Vanilla Tilt.js when hovering over a Div. When I don't have Overflow on the Div, the parallax effect works, CodePen, but when I ...
0
votes
0
answers
35
views
ggplot and geom_sf returning axes in Latitude and Longitude not UTM [duplicate]
I have some code for a plot below
ggplot() +
geom_tile(data = pred, aes(x = x, y = y, fill = .fitted)) +
geom_sf(data = shape_simp, fill = NA, colour = "black") +
facet_grid(lunar4 ~ ...
1
vote
1
answer
951
views
Snowflake Invalid argument types for function 'GET': (VARCHAR(134217728), VARCHAR(11)) using a CSV file
I'm trying to transform and load a CSV using the COPY INTO command in Snowflake. I keep getting the SQL compilation error in the screen capture below. I've also included an image of the code. How do ...
0
votes
2
answers
134
views
How to wrap text in quotes using powerQuery?
I'm trying to replace all values in a column with the same values but in quotes
Examples
Words
words22
to
"Words"
"words22"
I tried doing things like with 'FileName' being the name ...
1
vote
2
answers
57
views
Trying to animate background element by hovering foreground element in SVG. I suspect I need :has() for that but can't figure out how
In my original code, both squares pulsate when hovering anywhere on the SVG canvas. But I need them to pulsate only when hovering over the smallest square. I suspect that :has() could solve this but ...
0
votes
4
answers
139
views
Reformat data so repeating value is column header and data is row
I have a column with values that repeat and need the unique values to be column headers. Then, I need to add the associated data as a row. I have 20k of these rows and cannot figure out how to ...
0
votes
0
answers
43
views
Rotating data to actual coordinates
I have some 2D diffraction data stored as a numpy array. In reciprocal space however the data is not uniform, so I have two additional arrays with the x and y reciprocal space coordinates. Each ...
1
vote
1
answer
41
views
XSLT3.0 Parameter Not Passing in transform() Function
I'm encountering an issue with my XSLT transformation where a parameter, encapsulateNodes, is not being passed correctly to the stylesheet.
<xsl:variable name="d"
select=&...
0
votes
0
answers
78
views
Transform.InverseTransformPoint Unexpected Return Values in Unity 6
I am working on a game for a game jam. I'm working in unity2D version 6000.0.32f1. I am attempting to get a circle which is my enemy to face my player which is also a circle by updating the enemy ...
0
votes
1
answer
86
views
How force Fabric.js polygon to update his points correctly after modify
I’m using the latest version of Fabric.js, and I have a problem with a polygon. As we know, in Fabric.js, the points field of a polygon doesn’t update after modification (it always contains the ...
1
vote
2
answers
177
views
SICP exercise 1.19, transformations
From Structure and Implementation of Computer Programs, second edition:
Exercise 1.19: There is a clever algorithm for computing the Fibonacci numbers in a logarithmic number of steps.Recall the
...
1
vote
1
answer
98
views
Why doesn't ReplacementTransform work consistently?
I took the example from https://docs.manim.community/en/stable/reference/manim.animation.transform.ReplacementTransform.html and changed it a bit (I added more numbers):
class ...
0
votes
2
answers
75
views
Using Jolt specs to remove all array elements if a field has one of the values
I have a JSON like this (edited)
{
"status": "ACTIVE",
"users": [
{
"id": "1",
"name": "Aaron",
...
0
votes
0
answers
54
views
Transformation conventions and ROS Issue
I have given following transformation:
arguments=['-0.005', '0.1370', '0.00548', '0.0148379', '-0.1494206', '0.9886599', '-0.0021957', 'wrist_3_link', 'camera_color_optical_frame']
This is being ...
1
vote
1
answer
55
views
Using Jolt transform to use value of a key to locate another value in map
I need to use value of a field to lookup another value in map.
{
"name": "Smith",
"Occupation": {
"Smith": "Engineer",
"John": &...
-1
votes
1
answer
278
views
Palantir Foundry repository pyspark @transform problem
i have a problem with a pyspark foundry repository transform.
Until now I have been using for what I needed an @transform incremental that allowed me to queue a db each month to a historical "_h&...
1
vote
1
answer
45
views
Jolt transform for nested json unexpected output
I have the below JSON and need to filter based on field
[
{
"firstname": "ABC",
"lastname": "PQR",
"id": 1,
"address": {
...
0
votes
0
answers
108
views
Lookup would require extrapolation into the future
I am using the code below (ROS2 iron) to transform roll, pitch, and yaw (RPY) from os_imu_front (imu sensor) frame to base_link frame. Although, I get the transformed RPY, I get this warning:
[WARN] [...
2
votes
0
answers
173
views
how to modify imu_filter_madgwick to transform RPY from imu_sensor frame to base_link frame?
I am utilizing imu_filter_madgwick (https://github.com/CCNYRoboticsLab/imu_tools/blob/noetic/imu_filter_madgwick/src/imu_filter_ros.cpp) (ros2 iron) to obtain roll, pitch, and yaw (RPY) from the ...
1
vote
2
answers
72
views
Is SFML transform for vertex arrays not actually applied to vertices?
I'm trying to implement SAT collision detection in a game i'm making with SFML but I noticed that the vertices positions from the vertex array I used to make the player are not changing position even ...
0
votes
1
answer
112
views
Translate-z-[100px] doesn't work in Tailwind css
I use the follwoing code to 3-d rotating in Tailwind :
<span className='absolute whitespace-nowrap transform-style-3d translate-x-[-50%] translate-y-[-50%] rotate-x-[0deg] translate-z-[100px]'> ...
0
votes
0
answers
13
views
CSS pseudo elements appearance error when i try to use transform or z-index [duplicate]
While I was trying to create a specific shape using CSS to practice what I learned about the transform property, especially the rotate property, but I encountered a problem, which is that when I try ...
1
vote
0
answers
50
views
Autorest (swagger) question, how to transform/use directive to get rid of duplicate names
I’m looking into autorest but encounter an issue with duplicate names, one of the parts in the yaml file that I try to transform into a powershell module is as follows:
parameters:
- ...
0
votes
1
answer
162
views
Is there a way to avoid quaternion precision error?
I am trying to use quaternions to deal with 3D rotation.
I noticed that sometime I have small errors here and there. I am using Eigen as math library.
Here the shortest code that shows the issue:
...
0
votes
2
answers
116
views
how can I do the transform first then animation in js?
I want the item1 can be larger and rotate first, and then keep spinning,
however the result shows that it only excutes the animation but transform.
Thank you for your help.
In css
#item1 {
...
1
vote
1
answer
67
views
How to transform an x-axis scale both right and left of a density peak to zoom in with R?
Consider the density histogram of the depth variable from the diamonds data.
dat0 <- ggplot2::diamonds %>% select(depth)
gg0 <- ggplot(dat0, aes(x = depth)) +
scale_x_continuous(limits = c(...
0
votes
1
answer
238
views
Convert XML to JSON with Attributes and Text as Keys Without __text
I have a payload in XML format, and I need to convert it to JSON. The XML contains many key-value pairs and also a lot of attributes, and I need those attributes to be included in the JSON as well.
&...
0
votes
0
answers
27
views
Resizing a div that has a transform: how to play with the top/left/width properties such that it remains in one place?
I am trying to make my shape stay in place when performing a resize. Unfortunately, the following code:
element.style.left =
initialPositionsTransformed.originalXPosition -
Math.abs(...
0
votes
1
answer
34
views
Matplotlib does not consistently transform plotted elements with plt.xscale('log')
When plotting data, vertical line gets incorrectly transformed by matplotlib. With linear x axis, my curve and the vertical line pointing to a specific location on the curve match perfectly.
After ...
1
vote
2
answers
74
views
Shift geom by same visual proportion on a transformed scale
I make a plot with a log10() transformed x axis and I want to add labels to it. Let's assume I am making a scatter plot and for some reason I want to label the points. I do not want the points and ...
0
votes
1
answer
440
views
React Native Reanimated Rotate an Animated.View on a negative y-axis value
I haven't been able to find any instructions on how to do this.
So, currently, I can "flip" an Animated.View using Gesture Handler. It works just like I want except that I want the bottom of ...
0
votes
1
answer
45
views
Jolt Spec to filter multiple value in json field
I have the following json and would like to filter few object only -
{
"field1": "xyz",
"field2": "mno",
"res1": "pqrs",
&...
2
votes
2
answers
122
views
Calculate rotation to have div in "front" when parent container is rotated
I have a problem to calculate the good angle to rotate a div child of a div rotated on x axis.
To make it more understandable, I did a fast draw of what I have:
In a scene with configurable ...