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
2 answers

NGINX rewrite rule with exclusions

I'm new to NGINX and horrible with regular expressions. This is what I need: A rewrite rule that: Masks mysite.com/SOMETHING over mysite.com/profile.html?id=SOMETHING EXCLUDES mysite.com/images/ (and anything in that directory) from this…
Keon Ramezani
  • 388
  • 2
  • 10
0
votes
2 answers

Masked Array Calculation on np.array

Suppose, for example, I have a Numpy nd.array which has the shape (10,10): import numpy as np a = np.linspace(-1,1,100).reshape(10,10) I'd like to perform a calculation on the first element of each row if and only if the first element is smaller…
astromax
  • 6,001
  • 10
  • 36
  • 47
0
votes
1 answer

Domain Masking one page

Good afternoon, Is it possible to use domain masking for only one page on a site? For example we are using an LMS (Learning Management System) for one of our sites but still want to create landing pages externally on a site we have access to, as…
FrankT
  • 133
  • 1
  • 1
  • 10
0
votes
7 answers

How to mask a value in java?

I have a pinNumber value. How to mask it (ie) say if my pinNumber is 1234 and mask it with four asteriks symbol instead of showing the numbers. This masked value will be shown in a webpage using a jsp.
ACP
  • 34,682
  • 100
  • 231
  • 371
0
votes
1 answer

How to pass events through a canvas to underlying HTML

I need to create a canvas that is mostly transparent, ie masks the underlying HTML .. I need mouse events to go to the canvas and the HTML underneath ... The canvas is almost full size of the browser window Is it possible to do this ? Update: It…
John
  • 11
  • 3
0
votes
1 answer

Mask background picture so it links to different pages depending on position clicked

I am creating a website and as I am kinda new with html, I want all of my homepage to be a background picture taking up all the page - with two logos on it - and each logo, if clicked, would direct you to it's respective page. I know that you can…
0
votes
2 answers

Masking a number by showing last "x" digits with 1 mask character in front

Im attempting to get this function to return a masked number. Say i have number 123456789. Im trying to get it to return *6789 if i give in an unmasked value of 4, or *789 if i give it an unmasked value of 3. Currently it is showing the number of…
Derek Meyer
  • 497
  • 7
  • 22
0
votes
1 answer

Background Masking CSS Only Technique on Facebook Profile preview Popover

So Facebook displays a popover showing a profile-preview of the person on whose name you're hovering. If you have problems reproducing this, because the popover always appears on top of the name, just scroll down a little, leaving it not enough room…
user2562426
0
votes
1 answer

Invert a radial gradient mask in core graphics

I am able to mask a picture with black/white radial gradient in iOS using core graphics. But I am getting result just the opposite I want. I want the picture to be transparent from the region where gradient is applied and shall display the remaining…
maven25
  • 231
  • 2
  • 12
0
votes
2 answers

UIImageView masking creates memory warnings

I have 4 UIViews each view contains around 16 UIImageViews. And i am applying mask to all the UIImageViews through below code -(void)setMask:(UIImage*)maskImage forImageView:(UIImageView*)imageView { CALayer *mask = [[[CALayer alloc] init]…
DipakSonara
  • 2,598
  • 3
  • 29
  • 34
0
votes
1 answer

Retina image blows up 4 times in Xcode

At the moment I'm working on a streaming radio app for a friend for iPhone and iPad. While implementing my designs into code I struck a funny bug(?). I wish to display album art on the background and masking that, using this example tutorial. It…
0
votes
1 answer

CSS Masking (Webkit) - How does one code this circle?

first of all, I'm very new to web design and this website. I would've asked this question on the chat but I don't have enough reputation and I don't think I can reply to an existing answered question, so I hope this is all okay if I post this…
Ken
  • 3
  • 2
0
votes
2 answers

URL Aliasing using .htaccess

I have a directory 'Domainname1/folder/'. In Domainname1, I have a sub-directory which is a sub-domain (abc.mydomain.com) of another domain. This is a reference to 'domainname1/folder/'. The thing is I want the URL links accessing…
0
votes
1 answer

Many Input masks for the same input field

Is it possible to have different input mask patterns for the same input field? I am trying to validate a Postal Code field where the user can enter codes of the format AA9A , AA9 9AA and a few more. I am using PrimeFaces.
SnS
  • 175
  • 2
  • 16
0
votes
1 answer

Creating a round (clipping) mask to unveil a ray of lights

Imagine having a set of light rays surrounding a circle - just like the sun. What I want to do is reveil the rays, so the appear to be "rising" from the sun. In Flash I would be able to create a nice effect for this by doing something like the…
user1231561
  • 3,239
  • 6
  • 36
  • 55