Posts by Mário Rodeghiero • 389 points
22 posts
-
0
votes1
answer21
viewsQ: How to convert all_timezones to another format
I need to convert the timezones pytz to the following format below, but I’m having trouble doing this with python. How does this type of conversion work? from pytz import all_timezones time_zones =…
-
0
votes1
answer57
viewsA: Error inserting data with Mysql and Laravel
As the help of @André_lins in the comments the error was occurring due to the item_id that did not exist in the other table, because I thought I was changing the data type to pass as integer, but…
-
0
votes1
answer57
viewsQ: Error inserting data with Mysql and Laravel
I have a table called "item" in which I need to enter data, but for some reason does not process the Insert. I’m new to backend so I don’t know if there is any restriction on the table that prevents…
-
1
votes1
answer809
viewsQ: Bootstrap 4 - change Carousel Indicators to text
I am using Bootstrap 4 and I cannot change the indicator to appear the text in relation to the item. I tried some options of other Stackoverflow answers but none worked, if anyone can give an…
twitter-bootstrapasked Mário Rodeghiero 389 -
0
votes1
answer176
viewsQ: Sum the values of each item equal, stored in one object and store in another array
I am making an application using firebase and reactjs, which returns an object with the output stream(outflow). As I am using chartjs to display a chart, I need to generate an array where each…
-
0
votes1
answer34
viewsQ: Filter the month inside a extracted object with Object.Keys
I am studying React and have made a cash flow application using firebase as database. I would like to perform a query using the "map()" or another way that traversed the object showing only the…
-
1
votes1
answer307
viewsQ: Webpack + Sass generating style.css
Why the webpack when performing the Extract in the archives .scss, he creates the file Styles.css all right in the folder dist/css, but it removes the quotes and dots from the path of a photo for…
-
0
votes1
answer46
viewsQ: Open a tab, passing data brought from the firebase result
Guys, I’m testing how firebase authentication works, I can authenticate anyway(Github, FB, Twitter, Google) but I can only use the result data on the homepage. I would like to know how I could open…
-
3
votes1
answer277
viewsQ: Select Checkbox and maintain CSS styling
Dear ones, I have stylized my checkbox, but I would like to be able to select more than one option while maintaining the style of CSS which I created.Only due to my CSS rule, this is selecting only…
-
1
votes1
answer103
viewsA: Using Chartsjs
Dear, the closest I came to meeting your need, was the way down. I could not make it executable here stackoverflow, because it generates error. But you can access in my codepen.io/mariorodeghiero if…
-
0
votes0
answers986
viewsQ: Fetch API - CORS error
Dear, I have a javascript application, using fetch APIto fetch the information in a static file .json. It works normally when used on a live server(localhost) in the Vscode editor. However when not…
-
1
votes1
answer597
viewsA: How to edit tables in Javascript
Dear, I edited a code that I already had here on PC and adapted its need, with the values of Name, CPF and RG. Now just read to understand and change the style as your need... <html>…
-
1
votes1
answer69
viewsA: Only the last case of the switch runs
I chose to decrease the code of its function calculatValue() and also created fictitious values for height and width. This way the calculation is performed. <script> function…
-
1
votes1
answer1994
viewsQ: Automatic closing of single and double quotes vscode
My vscode does not automatically close single and double quotes. I’ve disabled all extensions, autoclosing is already true, but the problem still persists. vscodeVersion 1.15.0 (1.15.0) MAC osx:…
-
1
votes2
answers879
viewsA: Linkedin profile plugin on web page
Guys, I couldn’t make it work with the above solution, but I did, because it might work for other people. At this link…
-
3
votes2
answers879
viewsQ: Linkedin profile plugin on web page
Dear, I would like to add my Linkedin profile on my site made in HTML, I thought it was just copy the code generated in the link: https://developer.linkedin.com/plugins/member-profile, but adding it…
-
2
votes1
answer671
viewsQ: Specify DNS server when resolving address
I would like to perform something like a "nslookup" to resolve a site address through my DNS servers, because in the example below, I get only through the DNS I have on my machine. How could I…
-
1
votes2
answers3871
viewsQ: Matrix multiplication
Could you help with Matrix in python?! The exercise is as follows, a function matriz_mult(n1, n2) takes two matrices as parameter and returns True if the matrices are multiplied in the given order…
-
1
votes1
answer385
viewsQ: Python: problem with list
Would anyone know how to explain and correct why the problem occurs in the exit below when I use repeated numbers? Thank you! The return must be presented in the reverse form and without the "0"…
-
-1
votes1
answer347
viewsA: Kivy importing from the terminal does not work, but in IDLE it usually matters
Good evening, have you tried to reinstall/install kivy by passing the python version you are using?! Below a few possible attempts, you can also find a help at…
-
0
votes2
answers338
viewsA: How to get all ips associated with a Python domain?
Good afternoon Gurion, I think the code below may help you: import socket lista_de_ip = [] site = socket.getaddrinfo("www.facebook.com.br" ,0) for i in site: lista_de_ip.append(i[-1][0]) lista_de_ip…
-
5
votes5
answers13183
viewsQ: Python - NIM game
Enunciation You must write a program in the Python language, version 3, which will allow a "victim" to play the NIM against the computer. The computer, of course, must follow the winning strategy…
pythonasked Mário Rodeghiero 389