Posts by Luan pedro • 609 points
39 posts
-
0
votes1
answer50
viewsQ: SQL - Command for general classification
Hello, I have a table similar to: user_id server_id record date_record 123 333 3 2020-05-10 343 343 4 2020-05-12 133 333 5 2020-05-15 123 333 10 2020-06-10 343 343 12 2020-05-12 123 333 5 2020-05-15…
-
1
votes0
answers17
viewsQ: Problem sending strings with special characters in xmlrpc
I’ve been getting the bug for some time: xmlrpclib.Fault: <Fault -32700: 'parse error. not well formed'> When trying to send the following string via xmlrpc, In the python 2.7 base =…
-
0
votes1
answer23
viewsQ: Solution to replicate wordpress posts
I have a Wordpress site, let’s call it site01 On the other hand, I have the site02, in wordpress again. I would like all the content(posts and pages), modified on SITE01 was also updated on site02.…
wordpressasked Luan pedro 609 -
0
votes1
answer61
viewsQ: Sort mysql search by function
I have a considerable problem: - I want to list a search for a function that does a count. I want it to be displayed at the value of notifications The counting of notifications is done from the…
-
3
votes1
answer39
viewsQ: Simulate _GET php in string
I have a simulate string to: <li><a title="string" href="http://geting.com/?v=123?t=abc">Opção 1</a></li> I’d like something to take the parameter ?v=, just him, just like…
-
0
votes1
answer287
viewsQ: moviepy: reduce video to 100mb
I’d like to know if there’s any way to narrow a video down to 100mb. I have some videos and I want to convert it to 100mb, regardless of the quality it will stay. In this example, I reduce to 360p…
pythonasked Luan pedro 609 -
1
votes1
answer627
viewsQ: Grab image address, jquery
Hello, good morning! I’d like to get the value SRC of the IMG tag, using js/jquery. In case it would be https://i.imgur.com/1gIalgU.jpg <html> <head> <title>hello</title>…
-
1
votes1
answer58
viewsQ: Redirect without being detected
I would like my user to be redirected without it being detected from source. Example:<a href="ola.php">oi</a> The ola.php takes the source, with the attribute $_SERVER['HTTP_REFERER']. I…
-
1
votes0
answers83
viewsQ: Iframe blocking flash property
I need to add an iframe of the game TRANSFORMICE. Sounds easy, right? Being: <iframe src="http://transformice.com" frameborder="0" width="100%" height="100%" ></iframe> However, there is…
-
-1
votes1
answer20
viewsQ: I need to use only wp_posts from another db Wordpress
I have 2 sites with different themes in Wordpress: Website 01: MAIN Site 02: Secundario (I need the site 02 access the database site 01 and take the posts from there always) I don’t know how to do…
-
0
votes0
answers70
viewsQ: Open DB Berkeley Python
I received a project where I have a file . db I tried to open it with Sqlitestudio and Sqlitemanager, I was unsuccessful. I was informed that this db was a database Berkeley. I would like to open…
-
0
votes0
answers669
viewsQ: Html5 notification system, javascript
I would like to understand more about this system, however, no publication helped me. I already know how to create a notification <!DOCTYPE html> <html lang="en"> <head> <meta…
-
0
votes1
answer410
viewsQ: Sort TXT lines in numerical order
I need to invert all the columns of my txt file, using python. txt file (example): Regra n10 - exemplo Regra n9 - exemplo Regra n8 - exemplo Regra n7 - exemplo Regra n6 - exemplo Regra n5 - exemplo…
-
2
votes2
answers801
viewsQ: How to get X and Y click on Canvas
I would like to get X and Y one click on my canvas. var canvas;//o elemento canvas sobre o qual desenharemos var ctx;//o "contexto" da canvas que será utilizado (2D ou 3D) var dx = 5;//a tava de…
-
1
votes1
answer231
viewsQ: Before loading images with javascript, what is the right way to do this?
I’m having trouble uploading images to the server. I would like to know what is the correct way to pre-load these images. // JavaScript Functions function sleep (time) { return new Promise((resolve)…
javascriptasked Luan pedro 609 -
8
votes2
answers1082
viewsQ: Collision system for game in Html5!
I’m learning a little about games in Html5,css and js. I made a very basic game, player drive, enemy and a collision system, see: var canvas;//o elemento canvas sobre o qual desenharemos var ctx;//o…
-
5
votes3
answers5180
viewsQ: How to generate random numbers in javascript, differently
I need to generate random in javascript, so that they are only generated 5 out of 5 and that it is within a limitation, for example 5 to 555. Example: 5, 355, 425, 125, 550 Multiples of 5…
javascriptasked Luan pedro 609 -
2
votes1
answer3130
viewsA: Place background image in HTML canvas
I solved this, I’ll leave it here for if one day someone needs <3 Create the background function(): function fundo(){ fundoImg.src = "fundo.png"; ctx.drawImage(fundoImg, 0, 0); } Add this at the…
-
2
votes1
answer3130
viewsQ: Place background image in HTML canvas
I’m trying to learn a little more about canvas for Html5 games. var canvas;//o elemento canvas sobre o qual desenharemos var ctx;//o "contexto" da canvas que será utilizado (2D ou 3D) var dx = 5;//a…
-
0
votes1
answer184
viewsQ: Adding 5 variables instead of one! PHP/MYSQL
Hello, I’m having a problem in my conditions(if). Note that I am very new to php/mysql, so this is the reason why possibly my codico is a mess, but it is possible to understand it. <?php…
-
0
votes1
answer635
viewsQ: Python: Error translating text with the Translate api
I’m trying to do a translation with the Googletrans api(https://pypi.org/project/googletrans/). Code: # -*- coding: utf-8 -*- from googletrans import Translator translator = Translator() print…
-
0
votes1
answer26
viewsQ: Get content from email
I’m using the following: import imaplib import email m = imaplib.IMAP4_SSL("imap.gmail.com", 993) m.login("myemail","mypass") m.select("Inbox") result, data = m.uid('search', None, "ALL") # search…
-
6
votes3
answers1996
viewsQ: Open external videos(mp3/mp4) with PHP
Hello! I am using a "player" (in php) to open my external videos. However the user does not have control of the length bar of the video, he can not have control, nor return the video, nor advance,…
-
1
votes1
answer137
viewsQ: Scamming shorteners with python
I need for my project, some function using Python 2.7 enter a URL, and get the next URL from it. -> Example: goo.Gl/LAKFXG = / bit.ly/2D3SEnZ = / I don’t want to use the API of these URLS, but…
-
1
votes2
answers95
viewsQ: HTML alignment using Python
I need to line up a html code, in some parts it comes totally "messy", example: <li><a href="dsadas">dsadaads</a></li><li><a…
-
1
votes0
answers247
viewsQ: Phpmailer error while connecting
I’m trying to send an email from my Localhost, but I can’t. My code: <?php require_once('config/phpmailer/class.phpmailer.php'); // //$email = $_POST["email"]; // $mail = new PHPMailer(); //…
-
2
votes1
answer9584
viewsQ: Syntax error sql, #1064
I’m trying to create a table in my phpmyadmin database. SQL CREATE TABLE IF NOT EXISTS 'chat' ( 'id' int(11) NOT NULL AUTO_INCREMENT, 'time' timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 'username'…
-
4
votes3
answers9942
viewsQ: Remove non-numeric characters from a Python string
Let’s say, I have: a = "0LÁM@UN@D0 I would like something to remove all letters (A-Z) and other characters, I just want to get the numbers, in the example, would be only 0 and 0 b = "A1B2C3"…
-
1
votes1
answer1294
viewsQ: Is it possible to collect html source code using python?
I would like something in python, some library that could access the site and get its source code (HTML). Example: Talsite.com <h1>hello</h1> Is it possible for python to log into…
-
1
votes1
answer810
viewsQ: How to keep a key press in pyautogui
I would like to keep a key pressed for x seconds. I know that pressing the button is: pyautogui.press("key") But how can I keep her pressed?
-
0
votes1
answer223
viewsA: pyhon error, pyautogui
As a security feature, a fault protection feature is enabled by default. When the Pyautogui functions increase, if the mouse cursor is in the upper left corner of the screen. If you lose control and…
-
0
votes1
answer223
viewsQ: pyhon error, pyautogui
I created a bot(macro) which has the function of making a few clicks in X time. I made the loop for this. def afkLoop(): #Loop pycontrol.broken() #Função time.sleep(1800) #Timer afkLoop() def…
-
0
votes1
answer66
viewsQ: pyautogui error, values
I want to create a macro that performs some tasks. [OK] 1° Step: Remember the X and Y. COD: def recordMouse(): time.sleep(5) print "New record in 3s" x, y = pyautogui.position() c =…
-
3
votes3
answers4130
viewsQ: Get X and Y from the screen using PYTHON
I want to create a bot(macro) that performs some click tasks, for this I am using the autopygui in python! But I don’t have much experience in X and Y, and testing it manually and boring. I would…
-
3
votes2
answers95
viewsQ: Doubt about importing libraries
Let’s say, there’s folder A. In this folder A there is the lib folder. In this lib folder, there is a library called example.py. How do I stop importing the.py example? I see it’s possible to import…
-
0
votes1
answer1335
viewsQ: Convert word(DOC) document to pdf using python
I would like to convert a word(doc) document to pdf using the python 2.7. I have this script, but I didn’t understand anything about it. import sys import os import comtypes.client wdFormatPDF = 17…
-
1
votes2
answers1978
viewsQ: How to count the number of "Rows" in a python table
For example, I have a database called 123, in this database is the players table, which is where the players' accounts are. I want to count how many accounts there are in the database. Finally,…
-
2
votes3
answers3219
viewsQ: How to align image next to image
I’m trying to put one image next to another, but: I want you to stand next to the gray image, like this: html: <div class="ads01"> <img src="img/160x600.png"/> </div> Css: #ads01{…
-
1
votes2
answers11713
viewsQ: How do I make python read line by line?
Let’s assume I have a txt file, with some data: [File.txt] Oie Olá Tudo bem? I want something (in python) that reads line by line and prints(print).