numbers

How to find serial number of Android device?

I need to use a unique ID for an Android app and I thought the serial number for the device would be a good candidate. How do I retrieve the serial number of an Android device in my app ? ...

What is compiler flagging for numbers in C#?

What is compiler flagging for numbers in C#? What is the advantage of this work? I can't understand this concept. ...

How to find out if a character in a string is an integer

Let's say I want to look at the character at position 10 in a string s. s.at(10); What would be the easiest way to know if this is a number? ...

Beautiful, meaningful numbers in arbitrary distributions (e.g. bar charts)

Hi, How-Not-To: http://yfrog.com/0kqvap The chart show way too many decimal places. how would solve this problem, or are there any solutions/approaches available? I'd straight forward calculate the needed decimals to be able to distinguish two neighboring values. It does not necessarily have to be percentages. It can also be time e.g....

WM5 device using alternate number when connecting using modem connection

Hello, WM5 Symbol MC70 device I am trying to find out settings for modem connection so to make it try to dial one number first and if it is not successfull try to dial other number, something like alternates in windows xp connections. My problem is that i need to connect to ISP but some devices can use internal and some external dial(ex...

Evenly distributed integers within a range

Lets say I have a range between 0 and 100 and I want an array returned containing 3 integers which are evenly distributed within that range, what would be the best way to do this? For example: Range: 0-100 Wanted: 3 Returned: 25, 50, 75 ...

Read all contact's phone numbers in android.

Hello! I'm using this code to retrieve all contact names and phone numbers: String[] projection = new String[]{ People.NAME, People.NUMBER }; Cursor c = ctx.getContentResolver().query(People.CONTENT_URI, projection, null, null, People.NAME + " ASC"); c.moveToFirst(); ...

How is the lagged fibonacci generator random?

I dont get. If it has a fixed length, choosing the lags and the mod over and over again will give the same number, no? ...

Count what number that appears the most. In VBScript

Hello I got this comma separated file with a bunch of numbers The only thing that I need to be able to do is to find what number that appears the most time Ex: 817;9;516;11;817;408;9;817 then the result will be 817 I hope you understand what I am trying to do. ...

Translating Mouse gestures into Numbers (.NET)

Hello, I am looking for a way to translate mouse movements - while the left mouse button is kept pressed down - into numbers 0 - 9. Are there any existing .NET libraries for this? many Thanks for any advice on this, Kave ...

Setting Upper Bound for a Number in JFormatterTextfield in Java

Hi All, I want to set upper bound for a number in formatter textfield. Let's say that there is a string which has following format: 036 12' 23.67" The first number must be less than 180, so when the user tries to type a number greater than 180, it must be masked. I used MaskFormatter to format string as above, but I couldn't set an up...

Generate 8 unique random numbers between 1 and 100

Hey guys, i have trouble generating unique random numbers using js. Can someone lend me a hand? ...

read gsm number from iphone through javascript

Is it possible through javascript to read the number from the iphone. Lets say i have a html page where they have to fill in the gsm number, can javascript read the number from the phone and fill the form with it? ...

Fortran: handling integer values of size: ~700000000000

Hey All... Currently I'm brushing up on my Fortran95 knowledge (don't ask why)... I'm running in to a problem though. How does one handle large integers, eg. the size of: ~700000000000 INTEGER(KIND=3) cannot hold this number. If anyone is interested the compiler I have available is Silverfrost FTN95. I am using the integer to run thr...

help with number calculation algorithm [hw]

Hi - I'm working on a hw problem that asks me this: given a finite set of numbers, and a target number, find if the set can be used to calculate the target number using basic math operations (add, sub, mult, div) and using each number in the set exactly once (so I need to exhaust the set). This has to be done with recursion. So, for...

How to split big numbers?

I have a big number, which I need to split into smaller numbers in Python. I wrote the following code to swap between the two: def split_number (num, part_size): string = str(num) string_size = len(string) arr = [] pointer = 0 while pointer < string_size: e = pointer + part_size arr.append(int(stri...

Javascript: prototype of Number

var x= 1; Number.prototype.test = function () { return this }; x.test() === x.test() // false Why does the === test return false? ...

Why does does my stack overflow error occur after 518669 specifically?

I created a java program to count up toward infinity: class up { public static void up (int n) { System.out.println (n) ; up (n+1) ; } public static void main (String[] arg) { up (1) ; } } i didn't actually expect it to get there but the thing that i noticed that was a bit curious was that it st...

Are there other languages besides English that append suffixes to Arabic numerals?

Are there any other languages besides English or cultures, that append suffixes to Arabic Numerals such as 1st or 2nd? Do other cultures/locales use the English suffixes? Reference - Wikipedia I'm including this on stackoverflow because it directly relates to localization in applications I work on. ...

jquery get number from id

how can i get the number from a div tag's id? example: <div id="button1"></div> how can i get the 1 and store it in a variable? ...