Posts by Lucas Oliveira • 458 points
18 posts
- 
		3 votes1 answer142 viewsQ: Regex is not checking the accented character, even though it is in the expressionI have the following Python regex to filter my application text input: import re good_chars_regexp = re.compile(r"^[A-Za-záéíóúÁÉÍÓÚâêîôÂÊÎÔãõÃÕçÇ00-9\,\.\-\?\"\'\’\!\“\s\;\:\“\”\–\‘\’\’\/\\]+$",… 
- 
		-1 votes1 answer336 viewsQ: Modify only one React Hooks componentHello, I’m running a simple application on Reactjs. I created some check buttons, which when clicked changes color, but I press these buttons on a map and when I click to change the color of one,… 
- 
		1 votes0 answers50 viewsQ: Doubt Array SolidityI am trying to assign the value of an array to two arrays, as follows: pragma solidity ^0.4.24; pragma experimental ABIEncoderV2; contract ArrayExamples { int[][] public matriz; // Os dados são… blockchainasked Lucas Oliveira 458
- 
		1 votes1 answer59 viewsQ: Doubt with matrix in PythonI have the following code: matrix = [[0 for x in range(2)] for y in range(10)] I’m trying to implement this in another language, in which there is no such structure above for matrix creation. I… 
- 
		4 votes1 answer93 viewsQ: Data Cleanup - SQL ServerI’m working with a column of phones, but some lines have two phones separated by ";". 99999999 ; 99999222 12345678 ; 87654321 40028922 123123456 ; 1122334455 My goal is to put duplicate phones on… 
- 
		1 votes2 answers245 viewsQ: How to remove a character-specific string from a Python stringI would like to know how I can remove a specific string string string. The string would be: \r\n. The texts are as follows:: 'Let the Bird of loudest lay r non the Sole Arabian Tree r nHerald Sad… 
- 
		0 votes1 answer117 viewsQ: Keras Model for TensorflowI am learning Tensorflow and am trying to pass a Deep Learning model in Keras to Tensorflow, however, I am having difficulties. Model Keras: model = Sequential()… 
- 
		0 votes1 answer53 viewsQ: Post loaded with ajax in repeated wordpressI have a post page on my site, in it are shown all the posts created in wordpress, however are many post, so I put an application that shows only 5 post on the page, and when you click the button… 
- 
		0 votes1 answer77 viewsQ: Use of React in backend and small projectsYou can integrate the React application with some back end language? I can apply React to small projects or only when needed? React came to break the standard web development paradigm, where I… 
- 
		1 votes1 answer125 viewsQ: Grab information from a JSON file with spacesI am developing an application using Javascript and I need to get some information from a JSON file, but this file comes with spaces. I wonder if it is possible to get this information even with the… 
- 
		1 votes1 answer417 viewsQ: Take string size inside array with PHPI have the following problem, in the program below, I took the forms of a site, but I have to specify the exact length of the line that has the form(96), I would have the possibility to take this… 
- 
		0 votes1 answer410 viewsA: Change a certain line in a PHP fileI managed to change the line this way. In the case it was a very specific line. <?php $url = file_get_contents('index.html'); $var1 = explode("<form", $url); $string = array(); for($i = 0; $i… 
- 
		0 votes1 answer410 viewsQ: Change a certain line in a PHP fileI’m writing an application to change a particular line in an HTML file. I’ve been able to locate the word I want to replace, but for that, I need the line number to write the new content. function… 
- 
		1 votes1 answer1398 viewsQ: Picking up an element of a class with JavascriptI want to take an HTML element that is with a class, but that same class is in other elements. <img class="imagens-noticias" src="imagens-noticias/noticia-1.png" alt="imagem"> <img… 
- 
		0 votes0 answers55 viewsQ: Playing sound with MIDI - JavaI wrote a code to play a certain sound, but it’s not playing. package reprodutormusical; public class TestDrive { public static void main(String[] args) { MiniMusicApp mini = new MiniMusicApp();… javaasked Lucas Oliveira 458
- 
		6 votes3 answers137 viewsQ: Access to pointer on mainWhy in the statement as argument in function main(): char* argv[] instead of char argv[] i can access the information. I know one is pointer. I can’t access when it’s not pointer. #include… 
- 
		1 votes2 answers524 viewsQ: Problem storing data in ArrayI’m creating a program that stores a person’s tasks in an array, and shows them these tasks. But I’m having trouble showing the tasks. I can’t show the old tasks. Only the last task typed is shown.… 
- 
		10 votes2 answers925 viewsQ: How do C’s hands work?first What is the difference between declaring: char* s and char *s? 2nd It is always necessary to use the function malloc when declaring a inter? Example: char* s = malloc(sizeof(char)); //ou…