Tag: int

59 votes
4 answers
2.9K views
Jython and python modules

I've just started using the PythonInterpreter from within my Java classes, and it works great! However, i

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
53 votes
14 answers
1.8K views
How to pretty-print a numpy.array without scientific notation and with given precision?

I'm curious, whether there is any way to print formatted numpy.arrays, e.g., in a way similar to this: x

avatar
Joseph
0 1 0 9
asked 07 September, 2021
63 votes
30 answers
1.5K views
Xcode 6 Bug: Unknown class in Interface Builder file

I upgraded to Xcode 6 beta 4 and now my App continuously crashes with the message Unknown class X in Inter

avatar
Alba
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
2.5K views
Loaded nib but the 'view' outlet was not set

I added a new nib file to my project, and tried to load it. However, when I click on the toolbar icon that is

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
43 votes
30 answers
2.7K views
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?

I'm trying to link a UILabel with an IBOutlet created in my class. My application is crashing with the f

avatar
Forrest
0 1 0 9
asked 07 September, 2021
61 votes
1 answers
2.1K views
Android app starts updating with cordova-webintent and force stops

Steps: I Opened the android application (built with cordova) Then I called cordova-webintent for installing u

avatar
Sydney
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
841 views
Yii: Multi-language website - best practices

I find Yii great framework, and the example website created with yiic shell is a good point to start... howeve

avatar
Serina
0 1 0 9
asked 07 September, 2021
55 votes
15 answers
3K views
How to fix missing dependency warning when using useEffect React Hook

With React 16.8.6 (it was good on previous version 16.8.3), I get this error when I attempt to prevent an infi

avatar
Rufus
0 1 0 9
asked 07 September, 2021
61 votes
29 answers
1.6K views
Rounding a double value to x number of decimal places in swift

Can anyone tell me how to round a double value to x number of decimal places in Swift? I have: var totalWor

avatar
Ali
0 1 0 9
asked 07 September, 2021
49 votes
19 answers
1K views
How to add constraints programmatically using Swift

I'm trying to figure this out since last week without going any step further. Ok, so I need to apply some

avatar
Corrin
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1K views
UIScrollView Scrollable Content Size Ambiguity

Fellow devs, I am having trouble with AutoLayout in Interface Builder (Xcode 5 / iOS 7). It's very basic

avatar
Stacia
0 1 0 9
asked 07 September, 2021
63 votes
23 answers
433 views
Convert Int to String in Swift

I'm trying to work out how to cast an Int into a String in Swift. I figure out a workaround, using NSNum

avatar
Deedee
0 1 0 9
asked 07 September, 2021
55 votes
11 answers
1.4K views
Why is "1000000000000000 in range(1000000000000001)" so fast in Python 3?

It is my understanding that the range() function, which is actually an object type in Python 3, generates its

avatar
Elicia
0 1 0 9
asked 07 September, 2021
57 votes
29 answers
1.5K views
How do I parse a string to a float or int?

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or par

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
52 votes
8 answers
541 views
Pretty print in MongoDB shell as default

Is there a way to tell Mongo to pretty print output? Currently, everything is output to a single line and it&a

avatar
Percy
0 1 0 9
asked 07 September, 2021
55 votes
20 answers
2.9K views
How to print binary tree diagram in Java?

How can I print a binary tree in Java so that the output is like: 4 / \ 2 5 My node: public cla

avatar
Alba
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
1.5K views
Simplest code for array intersection in javascript

What's the simplest, library-free code for implementing array intersections in javascript? I want to writ

avatar
Clarice
0 1 0 9
asked 07 September, 2021
67 votes
2 answers
744 views
Syntax error in printf command in c programming

Just for context, I am a complete beginner at programming and learning C is my first experience at coding. I d

avatar
Basil
0 1 0 9
asked 07 September, 2021
60 votes
0 answers
1.9K views
SCANF probably not reading the correct value

If you enter more than five characters in the "name" field the function giving wrong output,otherwise if the

avatar
Nereida
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1.3K views
Hide scroll bar, but while still being able to scroll

I want to be able to scroll through the whole page, but without the scrollbar being shown. In Google Chrome i

avatar
Arline
0 1 0 9
asked 07 September, 2021