Posts by Antony Leme • 197 points
15 posts
-
-1
votes1
answer76
viewsQ: Laravel order by
I’m having trouble sorting data that are organized as follows: 1 1.1 2.2 2.2.1 2.2.1.1 10 11 The result I have is: 1 1.1 10 11 2.2 2.2.1 2.2.1.1 To order I’m using: Schedule::where(…
-
0
votes1
answer126
viewsQ: Break mPdf page using view
I am using mPdf generating the pdf directly through a view because using the methods via php I could not make the css of my page work properly $pdf = \PDF::loadView('contrato', array('desconto'…
-
0
votes0
answers36
viewsQ: jQuery cannot find elements added via append
I have the following request that lists the students in a table: jQuery('#presencaExibir').click(function(e){ e.preventDefault(); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN':…
-
2
votes2
answers39
viewsA: High error when extracting data
I was able to solve it. Besides config clear I had to use: php artisan cache:clear php artisan config:cache
-
3
votes2
answers39
viewsQ: High error when extracting data
Migrate does not give any error and also get popular table normally with Seed. But when I try to extract data from my database, it does not work. namespace App\Http\Controllers; use App\Todo; use…
-
2
votes2
answers1229
viewsQ: Catch tags within tags in Beautifulsoup
I have the following situation: <a href="https://g1.globo.com">Globo</a> <h3 class="b"> <a href="https://www.google.com">Google</a> </h3> Using Beautifulsoup, as…
-
0
votes1
answer157
viewsQ: Python3 in module named tld
I’m trying to use tld https://pypi.org/project/tld/ and I can’t use it in python3, only in python 2.7, which doesn’t suit me, since my whole project is in python3. The documentation says it is…
python-3.xasked Antony Leme 197 -
0
votes1
answer54
viewsA: Quicksort C - Contest. c:16:50: error: request for Member' name in Something not a Structure or Union
I was able to solve this. I was missing a pointer on the next line: return strcmp(((Jogador*)a).nome, ((Jogador*)b).nome); Corrected line: return strcmp((*(Jogador*)a).nome, (*(Jogador*)b).nome);…
-
0
votes1
answer54
viewsQ: Quicksort C - Contest. c:16:50: error: request for Member' name in Something not a Structure or Union
I’m trying to make this URI thing: Tetris His high school class decided to organize a tetris championship. After discussion about the rules, it was defined that each student would play a total of 12…
-
6
votes1
answer372
viewsQ: Execution Time in Programming Solution Challenge
Hello, I need to ask the following question: https://olimpiada.ic.unicamp.br/pratique/p2/2017/f3/arranhaceu/ That is the statement: A residential skyscraper has N floors, numbered from 1 to N. The…
casked Antony Leme 197 -
0
votes1
answer48
viewsQ: Synchronize player and host movements
Hello. I am doing a school project and am following the tutorial of Unity Multiplayer Netorking. Everything worked correctly, but the tutorial teaches to have a player and a host, both with a…
-
1
votes1
answer3520
viewsA: Save text file in Python
I ended up finding a solution on the Internet. It turns out that on the Python site where it shows how to save and open a file, it does not explain the part of Oce having to take the text of "Text"…
-
1
votes1
answer3520
viewsQ: Save text file in Python
I am creating a simple text editor with Python and Tkinter and I want to do a function to save what was typed. I made the save function, but it only creates the txt file and does not save what was…
-
0
votes2
answers70
viewsA: Conditional operator ?: not working
Use normal if Else if(num1 < num2) resposta = 10; else resposta = -10;
-
2
votes3
answers8071
viewsQ: ASCII in Python
Hi. I’m from C and I’m starting to learn Python. I have a question to move the characters of a string 3 positions and in C would look something like this: str[i] += 3; I tried to do the same thing…