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
1 answer

IP masking with Python

I am using Python Beautiful Soup for website Scrapping. My program hits different urls of a website more than thousand times. I don not wish to get banned. As a first step, I would like to introduce IPmasking in my project. Is there any possible way…
V Manikandan
  • 370
  • 6
  • 24
0
votes
2 answers

Python - replace masked data in arrays

I would like to replace by zero value all my masked values in 2D array. I saw with np.copyto it was apparently possible to do that as : test=np.copyto(array, 0, where = mask) But i have an error message...'module' object has no attribute 'copyto'.…
user3601754
  • 3,792
  • 11
  • 43
  • 77
0
votes
1 answer

NodeJS Write a Masked WebSocket frame?

im need help, please. im making small chat app and server using node.js masked and unmasked data read eveything ok. write unmasked data ok no problem. now im need sending masked data. need small revision unmasked data sending script. please help.…
NovaYear
  • 167
  • 1
  • 2
  • 13
0
votes
1 answer

String masking - inserting dashes

I am writing a function to format a string. I receive a string of numbers, sometimes with dashes, sometimes not. I need to produce an output string of 14 characters, so if the input string contains less than 14, I need to pad it with zeros. then I…
Coding Duchess
  • 6,445
  • 20
  • 113
  • 209
0
votes
0 answers

PHP imagealphablending alternative for svg

Following is a task I have done using PHP GD. And I want to do similar thing in SVG. //Part One $img = @imagecreatetruecolor(80, 80); $red = imagecolorallocatealpha($img,255,0,0,0); $green =…
Moin
  • 26
  • 3
0
votes
0 answers

How do I animate svg polygons in Safari?

Here it is: http://jsfiddle.net/vbsLpz7h/
rpeg
  • 228
  • 3
  • 14
0
votes
1 answer

as3 MovieClip masking not working

I'm having difficulties trying to add some masks mc1.mask = randMc; Where mc1 = loaded MovieClip, and randMc is a pic imported to flash and converted as MovieClip. This is a very big game code I have there so I thought the Indexes might be the…
ig.
  • 15
  • 1
  • 1
  • 8
0
votes
1 answer

restrict invalid chars from being typed - jquery-validate

I am using the jquery-validation plugin to validate a simple form. It's working great. Is it possible to restrict the keys from being typed in the textbox completely. I got this FIDDLE which is somewhat close to what I want.
user2322507
  • 141
  • 1
  • 5
  • 19
0
votes
1 answer

How I can mask PNG image with another PNG image with KineticJS?

So, I have a picture, and I need to overlay it with another picture by PNG mask (black/transparent image). How I can to do this with KineticJS? sorry for my bad english
0
votes
1 answer

Matlab creating a mask

How to use mod() to create a mask of where A contains an even number? C = How to replace values with a mask. Using your mask, C, assign the even values in var1 into the corresponding values of var2. D = Use 'and' and 'or' to find a mask of where…
Jason Thapa
  • 123
  • 9
0
votes
2 answers

Transfer mouse events on the masked region of a QWidget to it's parent

I have a QMainWindow which contains a circular QWidget inside it. In order to have a circular shaped QWidget I am making use of QWidget::setMask. The intended behaviour of the application on mouse press is inside the MainWindow depends on the…
sajas
  • 1,599
  • 1
  • 17
  • 39
0
votes
1 answer

Need to mask encrypted field in SQL

I want to mask some SQL data by #######. I am trying following SQL: SELECT CONCAT ( SUBSTRING(email_address,1,3), '#####' , SUBSTRING(email_address,LENGTH(email_address) - 2, LENGTH(email_address) ) ) AS Result, REPLACE(…
0
votes
1 answer

JQuery mask not working properly

I have a problem with mask in jquery, I want to make a mask that will allows me to input any letter 0-n times. I have something like this: $.mask.definitions['@']='[A-Za-z]'; $('#textMask').mask("@@@@@@@@@@"); But with my code I could insert only…
LEEL
  • 25
  • 1
  • 8
0
votes
1 answer

HTML canvas dynamic masking

Simply put, I'm drawing a red line across the screen on an HTML canvas and I would like a moving white circle to only be visible on the current portion of the line that it's touching. I read a lot about canvas masking but I haven't run into a…
CountingStacks
  • 267
  • 2
  • 10
0
votes
1 answer

Mask Password in Input Box in Jython

I'm using Jython and trying to get the user to input a password. However, I would like it to show an asterisk rather than the characters that the user is inputting. I managed to do something similar using getpass, but it required you to type into…
user2869231
  • 1,431
  • 5
  • 24
  • 53