Questions tagged [scale]

1

votes
1

answer
264

Views

gimp: resize and “unsharp mask” via script

I need to do the same operations for more than 60 files: scale image unsharpen mask Is it possible to execute this from a script possibly passing the scale value ? I'm on Ubuntu if this could influence the answer. edit: What I need to do is to resize some Android icons from 64x64 to 96x96 (as far, m...
marco
1

votes
1

answer
1.4k

Views

seaborn modify y axis (log scale) to show more values

I have plotted a boxplot using seaborn, the y axis is uses a log scale (time in miliseconds). I would like to make the y axis more clear by including more values on the axis. How could I achieve that? The code used and the graph generated are below. ax2 = sns.boxplot(x='xVals', y='Time', data=df2, w...
RegUser
1

votes
0

answer
39

Views

MySQL: Retrieve millions of rows from multiple shards at the same time

We have 2 MySQL DBs(both tables in 16 shards) with 100M+ rows and growing/updating. For reporting purposes, I need to fetch all the rows(50M+) on a daily basis, from 1st DB I need to fetch all the rows(50M+) created on that day, from 2nd DB These rows might update/insertion can happen anytime. Requ...
Pankaj Singhal
1

votes
2

answer
237

Views

Azure VMSS with Powershell DSC disabled TLS 1.0 cannot download script

I have a DSC script that configures a VMSS on Azure. Part of the script disables TLS1.0 and TLS1.1 client and server roles. After disabling, the VMSS cannot download the DSC script in the zip file anymore. Says it timed out after 29 attempts. If I enable the TLS protocols, it works again. Is the...
MPavlak
1

votes
0

answer
97

Views

R ggsn scalebar distorted in m projection

I seem not to be able to create a proper scale bar with EPSG:31287. The documentation of scalebar() states, that if the option dd2km = FALSE, no model is required. Still it is not possible to run without that option. WGS84 works, but the display of the whole map is a bit distorted, thus I would pre...
Krisselack
1

votes
1

answer
51

Views

Can you have SLA on an azure worker role with one instance?

From what I know MS Azure guarantees SLA 99.95% for worker role when there is more than one instance (https://azure.microsoft.com/en-us/support/legal/sla/cloud-services/v1_5/). However I also do know that SLA 99.9% is guaranteed for a single VM in case it uses premium storage (https://azure.microsof...
csg
1

votes
0

answer
44

Views

Solution - Scale and center iframe proportional horizontally and vertcal

I have a div on my index.php with an iframe containing all my other php-pages. What I wanted was to scale the div horizontally and vertcal and still keep the content proportional in center. It's easy with an img, but I could'nt figure it out with a div or an iframe. I don't know if this has been sol...
MrLES
1

votes
1

answer
129

Views

kubernetes rollout triggered on scaling

I have a simple kubernetes deployment with 3 replicas of an nginx container. The Kubernetes documentation here says: Note: A Deployment’s rollout is triggered if and only if the Deployment’s pod template (that is, .spec.template) is changed, for example if the labels or container images of the...
mumshad
1

votes
0

answer
63

Views

How to scale down a game world (AR) without losing precision

I am trying to combat z-fighting, where the cpu/gpu has trouble rendering objects in a large world. As the math is now, the whole world is represented in MKMapPoints...and then there is a scale of 2.12732213757614 meters/unit applied to that. This scale is nowhere near good enough to work without z-...
ewizard
1

votes
0

answer
32

Views

Make Image drag, rotate and scale more slowly while still being smooth

I have these ImageViews: And I've set to ivRingPinky onTouchListener(), but before that, I have applied the following animation Animation zoomIn, zoomIn = AnimationUtils.loadAnimation(this, R.anim.iv_zoom_in_1_finger); ivBgHand.startAnimation(zoomIn); ivRingPinky.startAnimation(zoomIn); XML file R....
vsemeruk
1

votes
1

answer
48

Views

Scaled svg path on hover is not centered

I have an svg that I want scaled on mouse hover. The scaled path should be centered on top of its original location. I have read other similar posts but could not get it done. I tried using transform-origin: 50% 50%;, transform-origin: 0 0;, and transform-origin: center; and also tried removing tra...
JAT86
1

votes
0

answer
66

Views

Scaling TextView animation without scaling text in it

I have an animation: ScaleAnimation anim = new ScaleAnimation(0.0f, 0.2f , 1.0f, 1.0f, Animation.RELATIVE_TO_SELF,1.0f, Animation.RELATIVE_TO_SELF, 0.5f); anim .setDuration(700); anim .setFillAfter(true); anim .setInterpolator(new DecelerateInterpolator()); and I start it for a TextView textView.sta...
JonnyJo
1

votes
0

answer
83

Views

Recycle bitmaps made with createScaledBitmap

I wrote an example code to generically show my issue. Basically, inside the onDraw of a View, I want to create a scaled up bitmap, draw it on canvas, recyle that bitmap and free its memory, and do it again and again, in a loop. The problem is that memory grows and grows at each step of the loop, and...
Luke B.
1

votes
1

answer
332

Views

Emergency - CSS - Scale - Calc - Viewport

I'm not a coder (which will soon become apparent) but I'm working on something for a work project and I'm stuck on the final bit. I need to add a calc() working into the scale but it just won't work. Without going in to the in's and outs of why I need this, I know generally there would be better way...
Kyriakos1986
1

votes
1

answer
68

Views

Setting Font Size Does Not Respect adjustsFontSizeToFitWidth

I'm setting the font size and weight of a label: self.title.font = [UIFont systemFontOfSize:24 weight:UIFontWeightSemibold]; self.title.adjustsFontSizeToFitWidth = YES; self.title.minimumScaleFactor = 0.4; However, the adjustsFontSizeToFitWidth is not respected. When I set the font size and weight t...
tentmaking
1

votes
0

answer
91

Views

Query Windows 10/8 Monitor Scaling from Python Script?

I have written an application in python 3.6 and would like to run a command to see what the current scaling for a monitor is in Windows 10 or 8 - something like how the following returns screen resolution: user32 = ctypes.windll.user32 screensize_l = user32.GetSystemMetrics(0) screensize_w = user32....
Torvoor
1

votes
1

answer
39

Views
1

votes
0

answer
235

Views

How can I scale an element to fit its parent?

I want to know if it's possible to scale an element (not an image) to fit its div parent. transform: scale(); and transform-origin: n n n; are useful for what I want to do, however, I can't seem to adjust scale to fit the container (tried using percentage values), so the element will always be at a...
Gabriel I.
1

votes
1

answer
86

Views

Chef node not consistently saving run list on server during first boot - Azure Scale set VM

I'm presently hosting an Azure Scale set running Windows Server 2012 R2 that is setup with the Chef extension (Chef.Bootstrap.WindowsAzure.ChefClient). When the VM is provisioned, the extension reports back that it succeeded via the Azure portal however the registered node on the Chef server is not...
Scott
1

votes
0

answer
42

Views

Scaling Stateful NodeJS Services - Stickiness/Affinity Based on Object ID (not user session)

I am trying to find a good way to horizontally scale a stateful NodeJS service. The Problem The problem is that most of the options I find online assume the service is stateless. The NodeJS cluster documentation says: Node.js [Cluster] does not provide routing logic. It is, therefore important to d...
Felipe Taiarol
1

votes
0

answer
72

Views

Update certificates in all instances of a VM scale set (service fabric)

I use Service Fabric in Azure and have an Azure VM scale set that is provisioned via a template and fetches all the required certificates from Azure Key Vault and installs the certificate into the certificate store of the instances. Some certificates need to be renewed periodicaly, so I replace the...
Ramon de Klein
1

votes
2

answer
122

Views

Scale out azure continuous webjob

I am trying to scale out a continuous webjob. My service plan is set on standard so i am able to scale out 10 instances. The problem is that the webjob does not scale out and at any time, only one is running. Number of instances: Functions: Function code:
1

votes
2

answer
57

Views

change the scale of a two-axis graph Y - ggplot2

Wanting to study the impact of the weather on road traffic, I would like to make a graph with the x axis, the months, as the Y axis on the right, the temperatures and precipitation, and the Y axis on the left, the number of cars. However, when I generate this graph, precipitation and temperatures di...
Elodie P.
1

votes
0

answer
169

Views

Apache FOP external graphics auto height to fit the page

I have a scenario in which I'm embedding an image in pdf using fo:external graphic. However the image size is dynamic and I have to fit it in single page. I'm scaling down the image both horizontal and vertical by maintaining the aspect ratio as below. url('data:image/png ;base64, ') This works fin...
Koushik
1

votes
0

answer
43

Views

Securing VMM Scale Set using Security Center

I am trying to use security center for intrusion prevention of my web front end deployed in a VMM scale set behind a WAF. I dont't see the VMs in the VMM scale set under Security center blade. How can VMs in Scale Set be protected using Azure Security Center. Thanks
Zak
1

votes
1

answer
679

Views

In ExoPlayer, how exactly to use SimpleExoPlayer.setVideoScalingMode to be like in ImageView center-crop?

Background I'm trying to have a video shown in center-crop manner (like on ImageView). I also hope I can find how to scale in other ways, as done on this library. The problem I use this for this purpose : player!!.videoScalingMode = C.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING But for some reaso...
1

votes
1

answer
55

Views

css only solution for scaling + overflow

I want to show a html of undefined width and height at a scale of 0.5 in a scrollable pane. So I style the container this way .container { position:absolute; top:40px; left:40px; bottom:40px; right:40px; overflow:scroll; } and the content .content { transform:scale(0.5); transform-origin: top left...
frenchone
1

votes
0

answer
50

Views

Translate point along the path that has been translated and scaled

I have gone through the 'point-along-path' d3 visualization through this code: https://bl.ocks.org/mbostock/1705868. I understood the code. And used it in my code and works successfully for moving the circle along the path between two locations on the map. The problem arises on translating the path...
Sarthak Saxena
1

votes
0

answer
24

Views

eXtreme Scale Object Grid Unresponsive after 1 hour approx

I am using Spring ObjectGridClientBean in my application to access eXtreme Scale distributed Object Grid. After server startup - it works fine able read/write from cache; but after sometime (I believe it is about 1 hour) it becomes unresponsive - meaning, cannot read/write anything from/to the cache...
Arun S
1

votes
0

answer
85

Views

Using simultaneously 2 USB digital scales for monitoring

I have a technical issue with digital scales. Let me introduce the context of my work : I want to use 3 digital scales simultaneously to monitor a flume experiment (scaled model of a river) sedimentary and water outputs. Now I am new to Python (and coding to be honest), so this is my first script. I...
LPP
1

votes
0

answer
59

Views

How to make the heatmap legend in ggplot2 3.0.0 with the same height as my plot?

This is the same question as mentioned in How can I make the legend in ggplot2 the same height as my plot?. But when I update the ggplot2 to 3.0.0 version, Sandy Muspratt's answer doesn't work. It is because that leg[[1]][[1]][[1]][[1]][[1]][[3]]$y = pos doesn't work any more for ggplot2 3.0.0 chan...
李子逸
1

votes
0

answer
174

Views

Transform.scale() not scalling the given spaces

I have used Animated API to scale my center item of FlatListtwice the size and it's working perfectly. The problem is the margins or paddings are not being scaled causing center item to overlap with previous and next item. My Animated.View ....other components I have also tried putting all component...
Bilal Haider
1

votes
0

answer
75

Views

Internet Explorer doesn't properly scale svg inside flex-box

I have an inline svg with a viewBox. When the svg is wrapped in a div, which is then inside a flexbox, the dimensions are not calculated properly by IE(11). Here is a example of the issue: HTML: CSS: #main { background: blue; width: 100%; height: 100px; display: flex; } #main > div { height: 80%; b...
Jozef Méry
1

votes
0

answer
108

Views

iOS 12 safari can not prevent pinch scale with “touchmove” eventlistener when scrolling

I add this code document.addEventListener('touchmove', function(event) { if (event.touches.length > 1) { event.preventDefault(); event.stopPropagation(); } }, { passive: false }); It worked when you don't move your page. But when you are scrolling the page and pinch scale the page at the same time,...
mania_U
1

votes
0

answer
53

Views

Panning a coordinate system using the mouse (taking zooming in account)

One of my projects contains a working custom coordinate system, which different objects are placed on. The coordinate system class stores the scale and the offset, which in turn affects the scale and location of all the objects in the coordinate system. While it works correctly, I am stumped on usin...
Ansel Chang
1

votes
0

answer
232

Views

Error in hclust(., method = “average”) : NA/NaN/Inf in foreign function call (arg 11) in R

text% quanteda::tokens( remove_numbers = T, remove_punct = T, remove_symbols = T, remove_separators = T ) %>% quanteda::tokens_tolower() %>% quanteda::tokens_remove(valuetype='regex', pattern = c('^\\d.*')) %>% quanteda::dfm() %>% textstat_simil(method = 'jaccard') %>% magrittr::multiply_by...
d-max
1

votes
0

answer
45

Views

Jquery on scroll decrease scale of div

I'm trying to create an animation like apple watch. https://www.apple.com/apple-watch-series-4/ on scroll full-width video section. They are decreasing scale value from 1 to 0. i.e scale (1,1) I've written below code. But the scale is moving from 0 to 1. var docHeight = document.documentElement.o...
Semal Vora
1

votes
1

answer
347

Views

Scale and Save Images (AttributeError: 'NoneType' object has no attribute 'shape')

I'm trying to scale and save a thousand images to a directory. I succeeded to resize images. However, errors occur while saving. Code is below. Help me pls. import cv2 import numpy as np import os def scaling_shirink(addr): img = cv2.imread(addr) height, width = img.shape[:2] shrink = cv2.resize(img...
makatyu
1

votes
0

answer
165

Views

System.UnauthorizedAccessException: Access to the port is denied C#

Currently i am working on commercial weighbridge software in c# and facing some issues.. My serial port open just fine but i am getting exception when i restart my PC.. System.UnauthorizedAccessException: Access to the port is denied i tried so many methods but unable to resolve this issue.... pleas...
1

votes
0

answer
123

Views

Azure container registry + MSI (in service fabric) - is it possible?

Here's the setup: Azure Container Registry Service Fabric VMSS with SystemAssigned identity (aka 'Managed Service Identity' aka MSI) VMSS identity given 'Reader' role access to the Azure Container Registry ApplicationManifest.xml ServiceManifest.xml referencing a container in the registry Cool. Exce...
Josh

View additional questions