Posts by Felipe Pereira • 306 points
15 posts
-
-4
votes1
answer75
viewsA: Replace PHP with Javascript and Node JS
Yes my friend! Totally viable, by the way! What you should understand is that in frontend, HTML, CSS and Javascript ALWAYS will be running in the browser. PHP and Nodejs are for backend, only to…
-
1
votes1
answer149
viewsA: Is it possible to add Expo to an existing project?
Unfortunately it is not possible, because the Expo offers you a whole workflow in a slightly different development environment than the React-Native-cli. So much so that once the project is ejected…
-
0
votes1
answer142
viewsA: React Native - How to show value saved with Asyncstorage in a Text component
You forgot to create a state called newValue so you could change the value visually, and format it correctly within the tag Text import React, { useState } from 'react' import { View, Text,…
react-nativeanswered Felipe Pereira 306 -
0
votes1
answer85
viewsA: How to create React Native button that redirects to a social networking page
You can use the native method Linking react Native! Example: import { Linking, ToastAndroid } from 'react-native' const openUrl = async(url) => { if(await Linking.canOpenURL(url)) { await…
react-nativeanswered Felipe Pereira 306 -
1
votes1
answer680
viewsA: How to turn Selenium into an executable (python)
I recommend you use the library auto-py-to-exe, it allows you to generate an executable as a single file. Just run the prompt de comando as administrator, and enter the command pip install…
-
0
votes1
answer50
viewsA: Question: random answer
Your program was bugging out because you were asking repeatedly, using multiple ifs instead of a repeat loop. Look how the program should behave: import random from time import sleep pergunta =…
python-3.xanswered Felipe Pereira 306 -
0
votes1
answer51
viewsA: Input text is behind icon
Just add a paddingRight: searchInput: { backgroundColor: '#FFF', width: '97%', borderColor: '#CCC', borderWidth: 1, marginTop: 5, borderRadius: 5, padding: 10, paddingRight: 50, } If "50" still…
react-nativeanswered Felipe Pereira 306 -
1
votes1
answer80
viewsA: expo init/npm init creating many files
This is due to the update (which occurs in the background) of the Expo SDK (which should be in version 37). This update came full of Features, and bugs too. They added several files by default, so…
-
0
votes4
answers312
viewsA: Limit input value with Javascript
Rewrite your Javascript code like this: function process(quant) { var value = parseInt(document.getElementById("quant").value); value+=quant; if(value <= 1){ value = 1;…
-
1
votes1
answer42
viewsA: How to assign the result of a while/for to a list so it can operate with the values
n = int(input('What range? ')) f1 = 0 f2 = 2 lista = [] cont = 0 while cont < n: f3 = f1 + f2 f1 = f2 f2 = f3 if f3 % 2 == 0: …
-
2
votes1
answer303
viewsA: Problem updating Pip on CMD
Your Pip is in the latest version, that is, it has already been updated. The command python -m pip install --upgrade pip does not take effect when your Pip is already in the latest version.…
-
1
votes1
answer215
viewsA: python compiler
If you want to convert your script to the extension .exe without the console, you can install a library called auto-py-to-exe, which allows you to convert the code into a single executable file and…
-
0
votes1
answer280
viewsA: Syntax error in mathematical equation (pyflakes E)
Python cannot work with an expression of this size, however, you can break it down by parts into variables and put it together later.
-
0
votes1
answer116
viewsA: I made a pdf reader in python with a counter to read the page of this pdf but I’m missing something and my "reader" only reads the last page:
See if it works like this: import PyPDF2 contador = 0 def acessarPDF(c): arq = r"C:\Users\Neto\Desktop\Springer Ebooks.pdf" lerPdf = PyPDF2.PdfFileReader(arq) pagina = lerPdf.getPage(c) conteudo =…
-
0
votes1
answer50
viewsA: Why when consulting firebase via snapshot, is returning that maps is not a function?
The function map works only with arrays. If it tells you that map is not a function, it means that the component you are trying to traverse is not an array, it could be anything else. Before using…