Questions tagged [identifier]

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

1353 questions
63
votes
4 answers

What characters are valid in an SQL Server database name?

We're going to provide our clients with a tool that (among other things) creates a new SQL Server database, and I want to be able to do basic validation on the database name they provide. SQL Server's documentation explains what characters are valid…
Joe White
  • 94,807
  • 60
  • 220
  • 330
61
votes
5 answers

Unicode identifiers in Python?

I want to build a Python function that calculates, and would like to name my summation function Σ. In a similar fashion, would like to use Π for product, and so on. I was wondering if there was a way to name a python function in this fashion? def Σ…
viksit
  • 7,542
  • 9
  • 42
  • 54
55
votes
5 answers

C# Variable Name "_" (underscore) only

I was just hit with a minor issue in C#, it was just a copy-paste mistake but don't know how C# accept it. This code gets compiled successfully...HOW namespace DemoNS { class DemoClass { String _ = new String('a', 1); …
Samy
  • 749
  • 1
  • 5
  • 8
51
votes
1 answer

Maximum characters in labels (table names, columns etc)

Hope this question wasn't asked before. Does anyone know the character limit for domain names? For example if I write this: CREATE DOMAIN d_complement_activite_etablissement AS character varying it will create a domain with the…
Florin Vistig
  • 1,639
  • 2
  • 22
  • 31
51
votes
5 answers

Is there an ISO standard for city identification?

I want to make service with API that give some info about a city (in any country) by some id. What I should choose as id for cities? Does there exist an ISO standard for city identification? If so, where I can get a list of city ids?
petRUShka
  • 9,812
  • 12
  • 61
  • 95
50
votes
5 answers

Is there a spec that the id of elements should be made global variable?

If I have a
in Chrome then in javascript I can do a.stuff() (it's like as if a is a global variable). However this does not work with FireFox - I will need to use document.getElementById('a'). What is the correct behaviour here?…
Name
  • 741
  • 1
  • 8
  • 8
48
votes
4 answers

Selecting an ID with a colon in it with jQuery

I'm working on a pre-written module for a site, and I need to target an element with the id test:two. Now, this element has a colon in it, so jQuery is presumably and understandably seeing the 'two' as a pseudo class. Is there any way of targeting…
Geoff
  • 747
  • 3
  • 11
  • 16
43
votes
5 answers

Why class { int i; }; is not fully standard-conformant?

This is a follow-up question. In the previous question, @JohannesSchaub-litb said that the following code is not fully standard-conformant: class { int i; }; //unnamed-class definition. § 9/1 allows this! and then he added, while it is…
Nawaz
  • 353,942
  • 115
  • 666
  • 851
43
votes
9 answers

Can't change bundle ID in project, greyed out

I'm having a problem with bundle identifiers. In the Summary section of my project in Xcode and under 'Identifiers', I can't seem to change the name of my bundle ID as it is greyed out. For example, my project name is 'My App'. In the identifier…
Moo33
  • 1,251
  • 3
  • 15
  • 27
38
votes
9 answers

How to deep copy a Hibernate entity while using a newly generated entity identifier

I'm using a relational DB using a single column pk with a few nested tables. I need to add a simple archiving to my project. The archiving only happens when the application reaches a particular state, so what I was hoping to do was copy my existing…
Code Junkie
  • 7,602
  • 26
  • 79
  • 141
38
votes
1 answer

Using keywords as identifiers in F#

In C#, I can do the following: int @private = 15; And in VB.NET, I can do the following: Dim [Private] As Integer = 15 I am wondering if there is a way in F# to use reserved keywords as identifiers, like there is in VB.NET and C#?
Icemanind
  • 47,519
  • 50
  • 171
  • 296
37
votes
11 answers

Xcode unable to dequeue a cell with identifier

my work is about `UITableView. Each time I run my project, this error appears : Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Cell1 - must register a nib or a class…
GoldXApp
  • 2,397
  • 3
  • 17
  • 26
36
votes
4 answers

Why are List and String identifiers named "xs" (in Scala and other languages)?

A lot of sample Scala code contains Strings and Collections named "xs". Why xs? Examples: var xs = List(1,2,3) val xs = "abc"
Adrian
  • 3,762
  • 2
  • 31
  • 40
35
votes
4 answers

Dollar sign in variable name

I stumble upon some C++ code like this: int $T$S; First I thought that it was some sort of PHP code or something wrongly pasted in there, but it compiles and runs nicely (on MSVC 2008). What kind of characters are valid for variables in C++ and are…
Valmond
  • 2,897
  • 8
  • 29
  • 49
35
votes
6 answers

Best method to generate unique filenames when uploading files PHP

Can any one suggest the best practice to generate unique file names for file uploads to avoid duplicate Entries? Thanks In Advance.
Adamski
  • 5,769
  • 9
  • 32
  • 32
1
2
3
90 91