Questions tagged [identifier]

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

1353 questions
9
votes
1 answer

use of undeclared identifier 'connect'

I'm trying to write a simple downloader in qt. It's based on this example: http://www.ggkf.com/qt/qnetworkrequest-to-download-an-image downloader.cpp: void Downloader::GetImage( QString _url, QNetworkAccessManager *qnam ) { connect( qnam,…
btzs
  • 1,048
  • 3
  • 14
  • 17
8
votes
2 answers

AdMob: Missing required XML attribute adUnitID

I'm new to the ad stuff, and I can't get it working. I've done what's stated at http://code.google.com/intl/nl-NL/mobile/ads/docs/android/banner_xml.html. This is my main.xml:
nhaarman
  • 98,571
  • 55
  • 246
  • 278
8
votes
1 answer

Non-ASCII Python identifiers and reflectivity

I have learnt from PEP 3131 that non-ASCII identifiers were supported in Python, though it's not considered best practice. However, I get this strange behaviour, where my identifier (U+1D70F) seems to be automatically converted to τ (U+03C4). class…
iago-lito
  • 3,098
  • 3
  • 29
  • 54
8
votes
2 answers

What is the Java annotation in Hibernate used to auto increment a MySQL Primary Key - @Id

In this code I need the id to be the primary key and also it must be incremented. is getter and setter required for id ? @Entity public class Contact { @Id private Integer id; private String firstName; public Integer getId() { return…
Ashwant Manikoth
  • 355
  • 3
  • 17
8
votes
4 answers

Python globals, locals, and UnboundLocalError

I ran across this case of UnboundLocalError recently, which seems strange: import pprint def main(): if 'pprint' in globals(): print 'pprint is in globals()' pprint.pprint('Spam') from pprint import pprint pprint('Eggs') if…
cdleary
  • 69,512
  • 53
  • 163
  • 191
8
votes
2 answers

Is \u65549 a valid Java identifier?

I have these statements: int \u65549 = 9; System.out.println(\u65549); This compiles perfectly. And outputs 9 But : System.out.println(Character.isJavaIdentifierStart(\u65549)); outputs false I did some research on this topic. I read the…
dryairship
  • 6,022
  • 4
  • 28
  • 54
8
votes
3 answers

PHAsset (or ALAsset) cross-device identifier

I am actually creating an iOS app, and want to store some details about Photo Library pictures in an SQLite database. I also would like to be able to share this data across the different devices the user has (imagine someone wanted to reorganize…
Lucio
  • 632
  • 5
  • 21
8
votes
1 answer

Bundle identifier changed after changing application name

a little stuck here, I changed the name of my application, the bit that will show under the icon on a device, bundle identifier right ? I want to submit an update to my app, but now my bundle identifier is different, and there is no code signing…
holtii
  • 165
  • 2
  • 12
8
votes
1 answer

How can I quote a named argument passed in to psql?

psql has a construct for passing named arguments: psql -v name='value' which can then be referenced inside a script: SELECT :name; which will give the result ?column? ---------- value (1 row) During development, I need to drop and recreate…
jpmc26
  • 28,463
  • 14
  • 94
  • 146
7
votes
2 answers

How do I get the Android Bundle/Packager Identifier

I am writing a library for android that need the bundle identifier I can not figure out how to get the bundle identifier or equivalent for my running android application. I think it is related to the Intent object by can not figure it out. Thank you…
CoderDan
  • 442
  • 1
  • 4
  • 10
7
votes
2 answers

Multiple apps are using the same FaceBook Single Sign-On account, how to choose which one opens the login screen?

I have an issue with the Facebook iOS SDK. Here is what happens: I have one Facebook app I have 2 versions of my iPhone app (one free, one paid), so 2 different bundle identifiers (com.company.iphone-free and com.company.iphone-paid). both apps…
7
votes
1 answer

How and where is it possible that a variable does not has an associated name in C++?

In the C++17 standard is stated (emphasize mine): "A variable is introduced by the declaration of a reference other than a non-static data member or of an object. The variable’s name, if any, denotes the reference or object." Source: ISO/IEC…
7
votes
3 answers

How to retrieve EditText's xml id

I have a form with many EditTexts, and when I press a certain button, I need to retrieve all these controls and put them into a HashMap so the key is the name (key1 int the following code)
xain
  • 13,159
  • 17
  • 75
  • 119
7
votes
6 answers

can I load a javascript file under a context other than 'window'?

I try to load some external .js files, and have some irresolvable namespace conflicts. I had the idea of loading some of the files in their own context somehow, replacing the "this" from pointing at the window object to some custom…
Amir Arad
  • 6,724
  • 9
  • 42
  • 49
7
votes
3 answers

Why # is not allowed in an identifier?

Java allows identifier to start with or contain $ (dollar sign). e.g int a$b; But why # is not allowed in an identifier? What is the specific reason? Is # an operator or something in Java? e.g int a#b;
Ajinkya Kulkarni
  • 984
  • 2
  • 11
  • 19