Posts by Nicolas S. • 427 points
33 posts
-
0
votes1
answer811
viewsQ: How to provide more data correctly to a Flatlist?
I’m building an app on React Native using the services of Firebase and Redux. Every day, I register new Documents there and so my database gets bigger. In my app I was giving a rescue all records of…
-
1
votes1
answer47
viewsQ: How do I know whether or not to update a component?
I’m using the React, React Native and Redux to make an app. I tried to study a little about the life cycles of a component but ended up getting confused about the various options present when…
-
1
votes1
answer358
viewsQ: How to insert paragraphs and then recognize them with a textarea
I wonder how I could do to insert and then recognize in my code specific paragraph moments in typing in a textarea. Example: This is my textarea. I want to rescue the content of this textarea and…
-
2
votes1
answer44
viewsQ: What is the most efficient way to obtain a property from an Entity?
I’m using the EF6 and would like to know how to get the best performance when redeeming a unique property from a Entity. Assuming the following case: Let’s say I need to fetch all the names from a…
-
1
votes1
answer305
viewsQ: Entity - Infinite loop in JSON conversion
What happens I’m having a problem using Entity with my application MVC. What happens is that when converting a class to JSON the program enters an infinite loop and ends up returning no-content…
-
0
votes2
answers417
viewsA: Pick image coordinate by clicking on it
I solved my problem by doing the following: First I created a relationship between my ImageView and my Activity: private ImageView _myImage; _myImage =…
-
1
votes2
answers417
viewsQ: Pick image coordinate by clicking on it
I’m in a Xamarin/Android project. I need that when the user touches on a ImageView I can get the coordinates (from the image) from that touch. How to do this?
-
1
votes2
answers117
viewsA: How to turn an array of bytes into an image in WPF?
My solution To solve the problem I actually had to create, somehow, a PictureBox of WF within my project of WPF. To do this, I first added references to the following assemblies.…
-
2
votes2
answers117
viewsQ: How to turn an array of bytes into an image in WPF?
I have an array of bytes like this: private byte[] m_Frame I need to turn him into an image, only how I’m in one WPF it is not possible to simply play a bitmap within a PictureBox because that…
-
1
votes1
answer127
viewsQ: How do you expect a bool to stay true?
I have this method async currently waiting for a time declared by me. The program first restarts the boolean result and then send commands to a serial that after a certain time returns in my program…
-
1
votes0
answers468
viewsQ: Save data to a file and recover them with jquery
I want to simulate a blog article and save a comment purely by Javascript then I have 3 files to accomplish this task: $("#enviar-comentario").click(function(){ var nome = $("#nome").val(); var…
-
1
votes1
answer411
viewsQ: Help with using JS delay or setTimeout
I’m trying to create a loop function that switches between 2 Divs. But the result is that when restarting the function, I cannot make it wait again the 5 seconds of the alternation interval,…
-
5
votes2
answers90
viewsQ: Does the unit of measurement "in" change on each device?
When I put as unit "1em" in a "font-size" for a desktop for example, it will become 15px by default already from the browser. But the "in" is worth a smaller size for a mobile device for example,…
-
5
votes3
answers2116
viewsQ: How to rewrite a URL?
Hi, I want to rewrite a URL and I know it needs to be by .htaccess. I have this URL: www.nomedomeusite.com/visualizar?id=8 My page visualizar.php at the very beginning of body take this one id and…
htaccessasked Nicolas S. 427 -
3
votes2
answers1156
viewsQ: How to do slow zoom/zoom effect?
Hello, I’m trying to make in Javascript a function that gives a zoom very slow in my image, ie increasing my background-size slowly, to give the impression of movement in the image. I tried to do…
-
1
votes3
answers201
viewsQ: What’s wrong with my script? - setTimeOut
Hello! The script below takes an id image assinatura and applies an effect on it when my scroll is at a certain site height. $(window).scroll(function() { var scroll = $(window).scrollTop(); if…
javascriptasked Nicolas S. 427 -
3
votes1
answer369
viewsQ: How to do this with Javascript?
I’m still studying Javascript and a friend of mine introduced me a site that has a very cool effect on your texts. This is the site: (example site) As we can see, when the site loads, it gives an…
-
1
votes2
answers1193
viewsQ: How to exchange the position (css) attribute of a div
I have a div of id = 'retangulo' with position:absolute;. When the page loads, this vertical rectangle only appears in half. I want when the person rolls the site at a time when the whole rectangle…
-
0
votes1
answer653
viewsQ: Error sending email form by PHP
I don’t know the right way to send data from a form to an email using PHP. So that’s the situation: Page contato.php: <form id="form-contato" action="enviar.php" method="post"> <h2>Fale…
-
1
votes1
answer158
viewsQ: How to create a "back" link
I have the index page that collects some information she sends to herself. Then the user accesses a detail page, where on this page, I created a link called "back". However, when you return to the…
-
1
votes1
answer193
viewsQ: How to smooth appearance of Ivds
At the event onloadfrom my site, I carry a function in which makes a loading gif that was appearing, so that the content of the site appears. <body onload="carregar()"> <div…
-
1
votes1
answer10202
viewsQ: How to put a link in a background-image?
I have a div that has these characteristics: div#circulo{ height:200px width:200px background-image: url(minhaimagem.png); background-size:200px; } The image that this is is a centralized circle,…
-
1
votes0
answers675
viewsQ: Mysql Error 2002: Can’t connect to local Mysql server through socket
I’m just putting a website for hosting and already set up the connections mysqli, but it’s giving this error here when trying to run the site: Warning: mysqli::mysqli(): (HY000/2002): Can’t connect…
-
0
votes0
answers923
viewsQ: How to open a new tab with javascript?
Hello! I have that function here: function mostrar(id){ window.location = "visualizar.php?id=" + id;} That I call when the user clicks on a <a href="javascript:mostrar(id)"…
-
0
votes1
answer61
viewsQ: Check if an option already exists not to repeat it
Hello! I have a problem maybe simple, but I can’t think of any way to solve it. I have a database where I have a product table in it. In this table, there is the column cor. So, I’m creating a…
-
2
votes1
answer121
viewsQ: How to pass php variable as parameter in a JS function call
Hello, I want to pass a php variable as a parameter in a Javascript function call. So: <a href="calcular($numero)">Calcular</a> I’ve tried it this way: <a href="calcular(<?php echo…
-
0
votes2
answers534
viewsQ: How to send a php variable in a javascript function parameter?
I want to send a php variable when calling a javascript function. Thus: href="javascript:calcular($valor1)" I try to do this, it doesn’t seem to work. Is there some other way to do this?…
javascriptasked Nicolas S. 427 -
1
votes2
answers796
viewsQ: How do I view data from a specific line in a database without knowing which line it is?
Hello. I have a while that prints on the screen a list of all the names of the companies in my database: $sql = "SELECT `nomep` FROM `cadastropn` WHERE `cidade` = '$cidade'"; $result =…
-
0
votes1
answer78
viewsQ: What’s wrong with my script?
I’m kind of new with javascript, and I have this script here: function mostrar() { var el = document.getElementsByClassName("detalhes"); el[0].classList.toggle("show"); } .detalhes { display: none;…
javascriptasked Nicolas S. 427 -
0
votes3
answers85
viewsQ: How to hide and then show an article?
I have this article: <article class="detalhes"> <?php $sql = "SELECT `nomep`, `cidade`,`bairro`, `endereco`, `site`, `site`, `email`, `facebook`, `googleplus`, `descricao`, `funciona` FROM…
javascriptasked Nicolas S. 427 -
0
votes1
answer42
viewsQ: PHP error with Mysql
I’m making a mistake, and I don’t understand why. The mistake: Fatal error: Call to a member function fetch_assoc() on boolean the excerpt from the error: require 'conecta.php'; $sql = "SELECT…
-
0
votes1
answer408
viewsQ: How to send forms automatically without using Ubmit and without updating the page
Hello, I am a relatively new programmer in php and I am developing a website. It is a site where there is a list of companies. And I wanted to implement in it, search filters, the first of them…
-
-1
votes2
answers3659
viewsQ: How to send data from a form without the Submit button and without updating the page
Hello, I am a relatively new programmer in php and I am developing a website. It is a site where there is a list of companies. And I wanted to implement in it, search filters, the first of them…