Questions tagged [identifier]

An identifier is a name that identifies either a unique object or a unique class of objects.

1353 questions
11
votes
1 answer

Getting User's Token Subject Identifier (sub) From Within Azure AD

My web app is using multiple OAuth 2.0 Identity Providers, and would like to retrieve the 'sub' from the id_token of the Access Token Response and match it with one stored in my app's DB, since 'sub' is an unique id across whatever system the user…
gye
  • 1,374
  • 3
  • 16
  • 27
11
votes
2 answers

Can CSS identifiers begin with two hyphens?

CSS 2.1 defines identifiers as In CSS, identifiers can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen…
Oriol
  • 274,082
  • 63
  • 437
  • 513
11
votes
3 answers

How to get a device identifier using Phonegap

I need to get any number, serial, key or whatever to identify every device where my phonegap app is running, I think uuid also changes when the app updates so it wouldn't work for me. The scenario here is that the user can synchronize data from the…
Agustín
  • 1,546
  • 7
  • 22
  • 41
11
votes
1 answer

How to use EL with in id attribute of a JSF component

I have following code: However, when I open the page, it errors as…
Niko
  • 1,054
  • 5
  • 25
  • 52
11
votes
2 answers

Get Resource Id from ImageView

I am trying to develop a little game. I have a ViewFlipper which has 50 pictures (random frequence of 4 pictures) in ImageViews. Then I have 4 Buttons with the same 4 pictures which can appear in the ViewFlipper. The task is to click the right…
Billabong
  • 457
  • 2
  • 8
  • 23
10
votes
3 answers

Django - URL design and best practices for identify one object

Im actually working in a django project and I'm not sure about the best format of the URL to access into one particular object page. I was thinking about these alternatives: 1) Using the autoincremental ID => .com/object/15 This is the simplest and…
Martin Zugnoni
  • 1,439
  • 2
  • 14
  • 21
10
votes
1 answer

Symbols that break the identifier rules, e.g. `sub ::("☺") { }`

With the current Rakudo compiler (v2021.10), symbols declared with the ::(…) form do not need to follow the rules for identifiers even when they declare the name of a routine. This means that the following is code produces the indicated…
codesections
  • 8,900
  • 16
  • 50
10
votes
3 answers

PHP imagick detect transparency

I want to be able to detect whether an image is transparent or not using the Imagick PHP extension. So far, the only luck I've been having is to run the exec() / some other command, and use the ImageMagick command line tool to achieve this. Here's…
Scott
  • 101
  • 1
  • 3
10
votes
1 answer

Does identifierForVendor change on app update?

I have heard stories where UIDevice.identifierForVendor changed during an app update from App Store. This answer goes like "...There was a bug affecting the calculation of identifierForVendor when updating an app from app store...". See…
Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
10
votes
3 answers

Using a variable as identifier in a json array

I'm wondering if it is possible to use assigned variables as identifier in a json array. When I tried this, I was getting some unexpected results: (Code is simplified, parameters are passed in a different way) var parameter = 'animal'; var value =…
10
votes
5 answers

Why does Wicket changes the id of the html elements?

If I write
... Then the rendered HTML shows the id 'form' appended with different numbers whenever the page is refreshed e.g.
Monis Iqbal
  • 1,987
  • 7
  • 26
  • 42
10
votes
4 answers

Get table id by click in td using jQuery

I have a tr in a table header that contains several input fields. Is there a way that by click on one of these input fields I can get the id of the parent table ? My tr looks like this: …
user2571510
  • 11,167
  • 39
  • 92
  • 138
9
votes
3 answers

How to implement a custom String sequence identifier generator with Hibernate

I'm using hibernate with spring, h2 and liquibase and I'm trying to make a custom String id generator for my entities by taking example with this blog post but I'm getting an error : Caused by: org.hibernate.id.IdentifierGenerationException: Unknown…
Takmashido
  • 95
  • 1
  • 1
  • 5
9
votes
2 answers

What's the rationale/history for the # convention of identifying methods in Ruby?

For example, I've always seen methods referred to as String#split, but never String.split, which seems slightly more logical. Or maybe even String::split, because you could consider #split to be in the namespace of String. I've even seen the…
Justin L.
  • 13,510
  • 5
  • 48
  • 83
9
votes
3 answers

How efficient is Last_insert_id?

I recently came across a problem where I needed to be able to grab the last ID of a query I've inserted on a page. The process was quite simple, but I'd like some reassurance on how the process is done. Here's how my code is: $query30 =…
Josh Potter
  • 1,629
  • 2
  • 13
  • 11