or tag

453 questions


1 answers
116 views
0
What is map(&:name) like?

I saw this code in RailsCast and I don't know what map(&:name) is like (&:name).def tag_names @tag_names || tags.map(&:name).join(' ')end


1 answers
64 views
0
Can you tell me what calculations you do in C?

...!ErrorHasOccured() ??!??! HandleError();`...I've never seen an operator like this in C code.All I've seen so far is ? is to go inside a trinomial operator? Can we use it together?I can't find anyth...

2 years ago

1 answers
128 views
0
Please teach me a simple way to repeat Android Cursor.

I need a lot of code to check the results of the database over and over again.Cursor cursor = db.rawQuery(...);cursor.moveToFirst();while (cursor.isAfterLast() == false) { ... cursor.moveToNext();}Cur...

2 years ago

1 answers
123 views
0
TypeError: Cannot cast ufunc multi output from dtype('float64') to dtype('uint16') with casting rule 'same_kind' error(Crying)

I posted a question earlier, but as soon as I solved that error, I encountered a new error... Like this, it's a code that combines three RGB images to make one image, but does anyone know what the pro...

2 years ago

3 answers
77 views
0
Python Multiple FOR Statements (3-fold?)

first = ['a', 'b', 'c', 'd', 'e' ] second = ['x', 'y', 'z' ] third = ['apple', 'banana' ] N = 10I'd like to repeat it N times with For Moon using the list above. I can't think of an answer. T If I do ...

2 years ago

1 answers
143 views
0
Is there a way to speed up the Android emulator?

My computer specifications are Windows XP, 1.21 gigabytes, and my CPU uses 2.67 GHz CeleronAndroid emulators are very slow. Can't you do it fast?


1 answers
94 views
0
Python ImportError: No module named 'sympy' error

'''the solution of a linear equation'''from sympy import Symbol, solvex=Symbol('x')expr = x-5-7solve(expr)The program is the same as above There's an error at the bottom. Traceback (most recent call l...

2 years ago

1 answers
99 views
0
Questions about the android webview editor.

The view with the cursor now is the Wizwick editor. In the emulator, when you click on the editor, the keyboard does not block the editor, but when you run it with the actual terminal, the keyboard bl...

2 years ago

1 answers
104 views
0
Python for

y = 0for i in range(4): Text(Point(-0.3, y), y).draw(win) y += 10 max = ????What I don't know is that I don't know what to do with the above maxLike that, y would be 0, 10, 20, 30I want to print 30 wh...

2 years ago

1 answers
81 views
0
How do I make Python function errors?

I am a freshman in college who entered Python. I tried to express the dead rule operation as a function, but the first elif keeps showing an error window called invalid syntax with a red line. I don't...

2 years ago
« - 22 - »

© 2024 OneMinuteCode. All rights reserved.