Interesting questions
-
1
votes2
answers1344
viewsHow to set random images in Imagebutton
Guys, I’m trying to make every 0.5s a random image of the folder drawable be set in mine ImageButton but I’m having problems the way I did. I tried to do it this way: I put the following names in…
-
7
votes3
answers1494
viewsWhy is Python so current?
I noticed that the world’s leading sites (Google, Facebook, Youtube) still use Python. I found in several sites the advantages of using Python (simplicity, robustness...), but I still follow with…
pythonasked 7 years, 7 months ago Luiz Augusto 2,482 -
4
votes1
answer13184
viewsassignment list index out of range
Part of my Python program is: dt=1 maxt=3600*2 t=range(0,maxt,dt) r=len(t) Tsup_i=20 for i in range(1,r): Tsup[0]=Tsup_i P[i]=((I_dc)**2) * R20 * (1 + a * (Tsup[i] - (20+K))) And the error is…
-
-1
votes1
answer347
viewsKivy importing from the terminal does not work, but in IDLE it usually matters
I had enough difficulty installing the kivy and get it working on Ubuntu. But now I can’t make the kivy work in interactive mode directly from the terminal, but I can do it through IDLE. Can anyone…
-
6
votes1
answer1115
viewsHow to format php mail?
I’m having trouble inserting formatting into the code. Whenever I send, I receive the email the formatting tags as <html> <body>, <strong>, <b>, <p>, etc.... Follow…
-
0
votes1
answer33
viewsHow to change the date format for the between to work
I have a form type date , which returns values of type 2019-10-24 , however in my database is recorded as 20191024 , this implies that if the user puts in a search two dates equal my between does…
-
0
votes0
answers32
viewsFatal error: Cannot redeclare Wp_post_type
I am having a problem in a client’s Wordpress, I can not fix. You are presenting the following error. Fatal error: Cannot redeclare Wp_post_type::$show_in_rest in…
-
0
votes1
answer350
viewsRecords being inserted in two tables between Entities with (Doctrine - Foreign Key)
I have two tables, one States and another Customers. When entering the records in the two tables, an error is occurring, instead of entering the state reference in the foreign key of the table…
-
0
votes1
answer2087
viewsHow to accept a list as input?
This is an exercise of a USP course. I will post the statement and the code to make the doubt clear. Write the remove_repeated function that takes as a parameter a list of integer numbers, checks…
python-3.xasked 9 years, 1 month ago Gabriel Stagni Aquino 1 -
11
votes2
answers252
viewsDifference between instantiating class and using
I can instantiate a class in two ways in C#, they being: HttpClient http = new HttpClient(); or using (var http = new HttpClient()) { // } Is there any difference between these means? Performance?…
-
0
votes0
answers224
viewsPopular selects with php, jquery and mysql
Good afternoon, colleagues I am with a doubt that for a long time I have been trying to solve and I can not get that is popular 4 selects using php, mysql, ajax and jquery. Searching for answers on…
-
0
votes1
answer278
viewsMongodb - Add documents that have a certain value within an array
Hello, thank you for your attention. If I have left any questions, please let me know. I found a problem that is driving me crazy. I have the following collection: { "_id":…
-
0
votes1
answer31
viewsFailed to run a Python file
I want to make this executable code to use it in crontab: import data import mensagem from skpy import Skype sk = Skype(data.USERNAME, data.PASSWORD) def post_message_group(mensage, channel_id):…
pythonasked 5 years, 6 months ago user219931 -
-2
votes1
answer79
viewsPython - Brute Force reading TXT file and generating an output with six password variations
The function of this code is to read a txt file (let’s imagine that in this txt have two words: Beautiful house and, in the other line, dirty car), after reading, is created an output txt…
python-3.xasked 5 years, 6 months ago Anderson Nunes 1 -
0
votes1
answer69
viewsError when trying to implement Swagger in my API
Good evening, I am trying to implement Swagger in my api however it is presented the following error in my console (node:28024) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]:…
-
3
votes0
answers153
viewsMatch of the contours
I created the program below, to make the correction of tests. https://gist.github.com/andreemidio/d2cdf3d301fd8df1677e9a315ff845f0 I was able to outline, identify the fillers, I need to match the…
-
0
votes1
answer214
viewsHow do I make 3D work on pyglet?
I was trying to create using Opengl, Python and pyglet, a flat triangle in a 3D space, I saw some tutorials on the internet, some videos on Youtube, and in the end I wrote this code down there, the…
-
1
votes2
answers451
viewsGet which div was clicked correctly
I got some Ivs: <div class="filter__filters tamanho"></div> <div class="filter__filters preco"></div> <div class="filter__filters cor"></div> I’m trying to catch…
-
2
votes1
answer47
viewsGet json through ajax/javascript
I have a webservice developed in Java that is responsible for returning all the compositions of a particular fabric/piece (textile area). The webservice is first of all returning the existing…
-
0
votes1
answer33
viewsSend the result of two Mysql tables to a view (ejs)
I am working with Ejs and Node.JS with Mysql. I need to move to a two table info calculation view, but I am facing this error: app.get("/calc", (req, res)=>{ Palpite.findAll().then(calc =>{…