Questions tagged [masking]

Force user input to conform to given rules.

Input masking restricts inputs for a given UI element without actually performing validation. Instead of collecting and validating user input, the masking approach restricts the inputs that a user can make in the first place.

An example of this would be a text field that is set to accept telephone numbers from a given country: instead of collecting digits and letters, and then validating them against the format, an input-masked field will only allow digits to be input, and will only accept them in an order that forms a valid input.

When dealing with arrays / matrices 'masking' means to ignoring certain parts of the array an only use the unmasked elements for further calculations.

1153 questions
0
votes
5 answers

Masked password in php

Hi There is one xml in which i am assigning the value of password that i get by third party . I want to masked in it. I want to hide that password. Code is in php. Is it possible to mask password in php ?
Pranav
  • 143
  • 1
  • 3
  • 15
0
votes
1 answer

confused about .htaccess subdomain rewrite (not redirect)

I have 2 domains pointing to the root of my site: http://site1.com http://site2.com both point to http://dXXXXXXX.domain.com/ I have each site set up to look for its files in a subdirectory (of the same name) so http://site1.com files are located…
alyda
  • 559
  • 1
  • 8
  • 17
0
votes
1 answer

Combining multiple queries with numpy masks

what i am trying to do is plot two rows out of a file looking like this: number pair atom count shift error 1 ALA ALA CA 7624 1.35 0.13 1 ALA ALA HA …
tarrasch
  • 2,630
  • 8
  • 37
  • 61
0
votes
1 answer

custom shape vertical Slider

I have to prototype a bulb shape (even an ellipse would be fine) vertical slider. I started with using http://jqueryui.com/demos/slider/slider-vertical.html and changed the shape of the parent element to the desired (ellipse for now) shape. The…
0
votes
1 answer

AS3 copying masked bitmap onto another bitmap

I'm having a bit of a problem copying the masked only pixels from one bitmap onto another. Basically I'm masking bitmap A with bitmap B, which is working fine, but I'm unsure how to copy just the masked pixels onto Bitmap C which is the only one I…
user1369030
  • 1
  • 1
  • 1
0
votes
1 answer

How do you create an inverse mask using AS2?

Possible Duplicate: Flash inverted mask So here's the mask: imageMC.setMask(maskMC); This displays the masked area, and nothing outside of it. What I need to do is the opposite; to display only the unmasked area. I need to do this dynamically…
0
votes
1 answer

input masking to show single character place - " _ _ _ "

i'm wondering is there any possiblity to mask input to be showing something like this -> " _ _ _ _ _ _ " where single " _ " is a place to type character. So the final result when user is typing should look similar to this " t y p _ _ _ " Thanks…
-1
votes
1 answer

classifying data masking correctly

Is data masking a synonym for anonymisation, or or is one of several methods to anonymise data? I read alot about it but now i got a bit confused. Maybe it's because people use it as a synonym, or it really is.
nercc
  • 1
  • 1
-1
votes
2 answers

Using this script on an input tag but it removes the entered text slightly after a letter is entered

function formatPhoneNumber(value) { if (!value) return value; const phoneNumber = value.replace(/[^\d]/g, ''); const phoneNumberLength = phoneNumber.length; if (phoneNumberLength < 4) return phoneNumber; if…
Jane Smith
  • 35
  • 5
-1
votes
1 answer

Creating a Cylindrical Mask of a 3D Image using Numpy

I attempting to create cylindrical mask for a 3D image in order to remove the green circle seen around the image. With the script I have written I am able to mask the image but I am cutting out a large portion of the image in the end. I want to…
-1
votes
1 answer

Question on decimal masking to configure inputs

I have a situation where I need to dynamically mask my decimals up to 2 decimal places. The user can only type in whole numbers. Examples: If the user types in 5, the output will be .05 If the user types in 57, the output will be .57 If the user…
Tim
  • 478
  • 4
  • 15
-1
votes
1 answer

How to extract numpy arrays (pairs) from a list which are subjected to condition depending on both the elements in pair?

I want to generate a number of random points in hexagon. To do so, i generate random points in square and then try to use conditions to drop not suitable pairs. I tried solutions like this: import scipy.stats as sps import numpy as np size=100 kx =…
goroshek
  • 1
  • 1
-1
votes
1 answer

erasing all data and populate with dummy data

what is the best way to transfer database copy as backed up file for outside maintenance on the application? But that copy should not have any sensitive data and it can only have dummy data. What is the efficient and best practice to erase all data…
-1
votes
1 answer

Bit masking with hexadecimal in c++

I need to mask my output in binary with hexadecimals variables. Do I need to convert the binary output to hexadecimal (or hexadecimals variables to binary)? Or is there any way in C++ to directly mask them and store it to a new variable? #Edit : The…
iamgroot
  • 85
  • 8
-1
votes
2 answers

Masking colors using opencv

I tried to mask image by its color using opencv. import cv2 import numpy as np import matplotlib.pyplot as plt After importing libraries, I load the image img = cv2.imread('gmaps.jpg') image =…
zzzz
  • 71
  • 7