Posts by Marcelo • 165 points
8 posts
-
0
votes1
answer124
viewsQ: How do I call an asynchronous corotine within a function that is initialized into a thread?
import telepot, time, threading, asyncio from telepot.loop import MessageLoop from datetime import datetime from telepot.namedtuple import ReplyKeyboardMarkup, KeyboardButton, InlineKeyboardMarkup,…
-
0
votes1
answer818
viewsQ: I need to know the size of a file even before it is created
I’m on a college job and it’s hard to solve... it’s like those wordlists that hackers use, but it’s for didactic study. QT: Generates a file with all possible groupings using the concept of simple…
-
-2
votes1
answer75
viewsQ: Is it necessary to memorize everything about XML files while I have the IDE to do it for me?
I’m starting to learn Android and wanted to know if it is necessary to memorize the attributes that a component has as layout_height, layout_width, layout_gravity, etc.. It has certain attributes…
-
3
votes1
answer140
viewsQ: How to escape all metacharacters using Pattern.Compile(.)?
Filing cabinet: ftp://paginaqualquer.html https://othersine.net/ http://mydeletina.php?id= My code: public static void main(String[] args){ //Supondo que o readLine() esteja no loop != null String…
-
-1
votes1
answer1818
viewsQ: How to pick up only links in a source code?
Since last night I try to make an algorithm to search line by line and return only links, but it’s complicated, either I’m dumb or the class methods String , that I know, doesn’t help much.…
-
5
votes1
answer64
views -
3
votes2
answers117
viewsQ: What’s wrong with this while? The || is not working
Scanner input = new Scanner(System.in); String str = input.nextInt(); while ( (str.nextInt() != 5) || (str.nextInt() != 10) ){ str = input.nextInt() } The code should invoke the method nextInt()…
-
0
votes1
answer455
viewsQ: Can I become a programmer studying Python using Qpython?
For example, if possible make money. I have version Qpython 2.7 and 3