I was thinking along the lines of using typeid() but I don't know how to ask if that type is a subclass of another class (which, by the way, is abstract)
Edit: I should definitely mention the language, C++
...
I'll phrase this in the form of an example to make it more clear.
Say I have a vector of animals and I want to go through the array and see if the elements are either dogs or cats?
class Dog: public Animal{/*...*/};
class Cat: public Animal{/*...*/};
int main()
{
vector<Animal*> stuff;
//cramming the dogs and cats in...
for(/*all ele...
Which is the best Java library for automatic language identification/classification?
Hypothetical syntax:
String languageCode = LanguageIdentificationAPI.identifyLanguage("Hello world.");
// languageCode would now contain "en" for English.
Thanks a lot in advance!
...
Sorry I couldn't find the best heading for this question. Following is my requirement.
I a working on a project which deals which large amount of money transactions to different account. The system automatically transfers money to accounts of A,B, C etc etc,, But before this is done Some one from A,B or C should approve(electronically) ...
Does anybody know of a library or piece of software out there that will locate irregularities in text? For example, lets say I have...
1. Name 1, Comment
2. Name 2, Comment
3. Name 3 , Comment
5. Name 10, Comment
This software or library would first cut up portions of text that it would find similar (much alike a piece of compression...
I'd like to be able to determine what music album CD is in a CD drive. For example, if someone claims that the CD in their drive is Eminem - The Eminem Show, I would like to be able to verify that the CD is indeed The Eminem Show.
Any ideas? I've applied for a Gracenote developer license, but they won't get back to me for five days.
Al...
Given an executable that is compiled from C to run on Solaris, is it possible to determine which compiler was used to compile the associated incomplete executable?
I can't see anything when using either the strings or the file command, and magic doesn't seem to contain anything specific.
Do compilers generally put a fingerprint in thei...
I was wondering, is there some type of disc ID i can use to search in my database to see if that disc is has been scanned or not? All disc were created by me typically burnt on windows.
-edit- I could compare write time and volume label to see if the disc has been scanned but i notice if i put in certain commercial disc that fields are ...
I have a website and I would like to open it to some of our corporate IPhone users, but without their intervention :
I enter their IPhone "serial #" into our webapp
When they connect to the webapp, if their "serial #" is recognised they can pass, otherwise, access denied.
Is there such a "serial #" ?
I've thought about a SMS with a...
Hello, first time poster here.
I'm working on a client-server Android application and trying to figure out how to identify different phones/users to the server unambiguously. My first attempt would be to use the phone number on the SIM card. Although now that I think about it, how common is it these days that your phone number changes w...
Anyone knows what is the system that allow blogs / websites to generate a random picture for anonymous commenters? Its always the same picture if you input the same name and email, seems very useful but can't track down what it is.
It's used here on stackoverflow, and I've seen it on a number of other sites and blogs.
Thanks!
...
What is the best-practise way of Identifying dynamically generated element on page?
Let me explain. I have a list of elements, there can be as few or as many elements as the user defines, on a page. Each one of these corresponds to an item each with it's own id. Now, the user has the ability to edit or delete these elements on the page...
I've read this question: http://stackoverflow.com/questions/762937/whats-the-difference-between-identifying-and-non-identifying-relationships
But I'm still not too sure...
What I have is three tables.
Users
Objects
Pictures
A user can own many objects and can also post many pictures per individual object.
My gut feeling tells me thi...
How would one identify what algorithm is used to generate codes with? Both common, open source ones, and the more difficult, custom unpublished algorithms? For example here are a sample...
x3vbhzcouy
g3zy453f4
srix1gtvri
3ewnubic5vz
4bu9ksba6yj
r1u3rxfd82n
fs30bew9eq
b8gr8w5f3
tz6t998ulr
ycd1zued
oizyviwv
7w6eownv0
s15zxpid9uoo
u8is4ulx...
I'm coding a new website that will need users to enter their mobile phone number, the problem I'm facing is that I need to make sure that the user is in fact the owner of (or in this case, has access to) the mobile number.
The solution I've come up with is, upon number submission I send them a SMS with a token and ask the user to enter ...
How can I know if a TIFF image is in the format CCITT T.6(Group 4)?
...
This is why I need to put user_id()'s in the Datastore:
A User value in the datastore does not
get updated if the user changes her
email address. This may be remedied in
a future release. Until then, you can
use the User value's user_id() as the
user's stable unique identifier.
http://code.google.com/appengine/docs/pyt...
(Note: The project is in Python.)
I'm running a simulation in which I have many objects that I want to show on the screen and manipulate with. There needs to be a way to identify each object, because they'll be moving from place to place abruptly and I want to be able to track which object moved where.
What I've been thinking is, to ev...
How would I accomplish this? Is there a specific brand of card reader/writer that works easily with linux and windows (linux being more important as I need to deploy these to cheap kiosks).
...
Hi,
I want to get the BIOS Build number and Identification number. I am already using WMI class Win32_Bios dataclass but I it is not returing the value for Build number and Identification number on any of the windows OS.
can any one let me know how should I go to get the above fileds mentioned for bios?
...