Posts by Rogers Corrêa • 2,596 points
59 posts
-
0
votes2
answers3707
viewsA: How to fill a select with Eloquent?
It’s very simple! In the controller should stay this way: Just reverse the order of the factors and get a different result. No need to scroll through the object! $tipos = Tipo::pluck('id', 'nome');…
-
2
votes4
answers14424
viewsA: Validate form before sending
For you are calling getElementById, but if you check none of the fields have the attribute id. Example: <input type="text" class="text" value="Nome" id="nome" name="nome" required…
-
3
votes3
answers2942
viewsA: How to get $_POST value automatically?
If I understood your question correctly it would be this way: <form> <input type="text" name="nome"> </form> foreach($_REQUEST as $key => $value) { if($key == 'nome') { echo…
-
6
votes2
answers271
viewsQ: What defines a neural network as perceptron?
I think it’s important to talk about artificial intelligenceoverflow and I couldn’t find anything relevant about it. Could someone with experience explain well the definition of a Perceptron-type…
-
1
votes0
answers191
viewsQ: How to classify data with a Perceptron Neural Network?
I created a perceptron neural network to understand the concept. My goal would be to define what an orange is by its number of chemical elements and what an apple is by the same formula. It’s a…
artificial-intelligenceasked Rogers Corrêa 2,596 -
1
votes1
answer582
viewsA: Enter and search data in the database per user with Laravel
Dear friend I suggest you to create a table of logs where you bind by id user to the activity performed by the user. Example: Create a Model for the Logs table. Create a Helper that you can call on…
-
0
votes2
answers42
viewsA: My query that used to work, now does not go to bd at all
Friend if you set that field id cannot be null must inform a value for it as below: $query = "INSERT INTO despesas ('id',descricao, vencimento, valor, recibo) values(1,'$desc', '$venc', '$val', '" .…
-
2
votes3
answers829
viewsA: How can I check if a variable is in date format?
You can perform a single function as well. As below: function checkData($date, $format = 'Y-m-d H:i:s') { if (preg_match('/^[0-9]{1,2}[-][0-9]{1,2}[-][0-9]{1,2}$/', $date)) { $d =…
phpanswered Rogers Corrêa 2,596 -
3
votes1
answer955
viewsQ: What are Events in the Flat for?
I never used Event in Laravel and I would like to know what is the purpose and if it has some advantage.
-
0
votes2
answers431
viewsQ: Creating a website and back-end with PHP frameworks
I’m creating a website with back-end system. I have always done this process using only a framework like Laravel or Codeigniter, but talking to some people more experienced in this subject,…
-
0
votes1
answer79
viewsA: Startup App Phonegap Titlebar
I have found the solution and I know that many will be happy for this solution. Add this line below within the widget tag config.xml: xmlns:android="http://schemas.android.com/apk/res/android" And…
-
-1
votes1
answer79
viewsQ: Startup App Phonegap Titlebar
Because when I buid my app and run it on my mobile appears on startup of the same gray bar with the application name and black background? Someone knows how to take it off?
-
4
votes2
answers1718
viewsQ: How to place two Ivs next to a container?
How do I place two Ivs, one on the left and one on the right side of a container with the bootstrap? Since you would like the side Divs to increase in size depending on the screen.
-
0
votes4
answers25607
viewsA: Load page and scroll automatically to a particular element
You can wear an anchor: place at the end of your page this code <script> window.location.href='#ancora'; </script> and now put a field <a href="#" id="ancora"> below the use div or…
-
1
votes2
answers787
viewsQ: How to loop with input select PHP?
I have an array named $c that I made through a explode need to count with the for to see if it is Selected. The problem is that it echo option 2 or how many times there are records. Does anyone have…
-
0
votes3
answers1771
viewsQ: How to confirm that the page has left?
How can I confirm if the user really left the page, because when I click on the browser to exit and say I want to remain it turns the name of mine a 1 and then no longer 0. Does anyone have a…
-
0
votes1
answer157
viewsQ: Why use @ in a variable?
I was analyzing some codes PHP I didn’t program and I found a @ (arroba) before a variable. What is its usefulness in the code? if( @$f_outro_valor ){ $where[] = " `f_valor` = '{$f_outro_valor}'"; }…
phpasked Rogers Corrêa 2,596 -
1
votes1
answer377
viewsQ: How to use ajax inside a Sweetalert?
I tried this way, but I believe it is not the right way. I am actually sure, because the code does not work. function removeCliente(id) { swal({ title: "Are you sure?", text: "You will not be able…
-
1
votes3
answers203
viewsA: Return Time.zone.now in C#
The closest I could get to the Ruby command is below: namespace ConsoleApplication1 { class Program { static void Main(string[] args) { DateTime agora = DateTime.Now; DateTime utc = DateTime.UtcNow;…
c#answered Rogers Corrêa 2,596 -
1
votes1
answer897
viewsA: Streaming type 'livestreaming' with javascript
You can use the technology webRTC which is present in Chrome version 18+. But you need to go to about:// flags and turn on getUserMedia()' or Mediastream. Use the F control to find with ease. Here’s…
-
2
votes1
answer323
viewsQ: Webservice SOAP uses XML only?
Working some time with webservice for mobile application realized that SOAP uses XML and REST uses JSON. Using SOAP means I have to use only XML?…
-
2
votes1
answer56
viewsQ: God x jQuery Mobile class
I have always been interested in studying methodologies in relation to programming and I have heard many professors mainly in the universities speaking badly of the famous Gods classes, who do…
-
0
votes1
answer205
viewsQ: How to type by voice Phonegap Framework?
I’m making an application, using the phonegap framework together with jQuery Mobile. The question is: I would like to add the voice typing function, and my field input is number type, or is only…
-
1
votes1
answer172
viewsA: Javascript validation of an Multiple field
The validation for files is a little different I found several methods and managed to solve my problem. var fileInput = document.getElementById ("file"); if ('files' in fileInput){ for (var i = 0; i…
-
0
votes1
answer172
viewsQ: Javascript validation of an Multiple field
I’m having trouble validating the files of a input of the kind file which has an array and is also a multiple. As in the function below the variable appointing just give me back the name of the…
-
1
votes1
answer1344
viewsQ: How to change Textview of a View in another View?
I’m facing the problem, below: I have 2 xml layout: list_single.xml and tela_authorization.xml I have 1 class: Authorization.class In the Authorization class I have:…
-
1
votes2
answers1783
viewsQ: How to run database on Android?
I’m making an application that connects to a database that is in sao paulo, it serves as a ratchet, checking by QRCODE users card if they are registered or not. It’s just that the company I’m…
-
7
votes3
answers941
viewsQ: What is the purpose of the daily meeting in the SCRUM methodology?
To my superficial glance towards ageic methodologies and based on management books, a recurring or fixed meeting followed by short breaks are useless. The question is: What differentiates the daily…
asked Rogers Corrêa 2,596 -
8
votes4
answers1428
viewsQ: Application of 5S in agile methods
A lot has been said in Scrum, XP, Lean... But here at work they also talk a lot in Japanese 5S. There is some connection of this working methodology for software development?
-
1
votes1
answer106
viewsQ: How to capture parameters by XSL?
I’m modifying a form in Sharepoint and want to get the parms that are being passed in the url, someone has a suggestion? <xsl:element name='a'> <xsl:attribute name='href'>…
-
5
votes2
answers4221
viewsA: What is the difference between SOAP 1.1 and SOAP 1.2?
Some differences: SOAP 1.1 is based on XML 1.0 as long as the SOAP 1.2 in XML Information Set (Infoset XML). The set of information XML (infoset) provides a way to describe the document XML scheming…
-
0
votes1
answer164
viewsQ: Difficulty with AJAX picking nodes values
I would like to separate this data with ajax, but I’m having a hard time with the nodes: <?xml version="1.0" encoding="ISO-8859-1"?> <android_ecs.xml>…
-
4
votes2
answers706
viewsQ: How to control Javascript file type without capturing extension?
Example: <input type="file" name="meu arquivo"> I know there is a method to capture the name of the described extension, but my goal is to prevent the client to change the file extension, for…
javascriptasked Rogers Corrêa 2,596 -
2
votes2
answers773
viewsQ: Is it possible to use two frameworks in php?
I will create a stock system and would like to use a framework to facilitate the process. How to choose the ideal framework to work with? Does this depend on what my business is about? If I want two…
-
0
votes1
answer2468
viewsQ: Bootstrap increase input
I’m making a mobile application and I’m testing the creation with Bootstrap, only a problem has arisen: <input type="tel" class="form-control" placeholder="Código Estabelecimento" required…
-
1
votes1
answer71
viewsQ: Runtime calculation module(%)
Statement of variables: var x= 200; var y= 50; Module: var resposta = x % y; What the module should do, I believe (I calculate): s1 = x / y; s2 = s1 * y; resposta = s2 - x; The question in itself…
algorithmasked Rogers Corrêa 2,596 -
28
votes3
answers8297
viewsA: What are the principles DRY, KISS and YAGNI?
DRY - Don’t Repeat Yourself If you use too many repetitions, you don’t have full knowledge of the subject, namely you’re stalling. Thinking about just not repeating the code doesn’t mean you are…
-
3
votes3
answers165
viewsQ: What defines good logic?
I was thinking about some code questions that I changed and I remembered what my development teacher android I said, "A good logic has few lines of code". I asked some people who told me that it…
algorithmasked Rogers Corrêa 2,596 -
2
votes3
answers864
viewsA: What happens in detail in the destruction of a variable?
Well, I ran some tests and look what happened... The code: <?php var_dump($xacrinha); print "<br/><br/><br/><br/><br/><br/>"; $xacrinha = 12;…
phpanswered Rogers Corrêa 2,596 -
16
votes3
answers864
viewsQ: What happens in detail in the destruction of a variable?
I wonder what really happens behind the command unset in a variable in the PHP. I believe this happens in memory, but I would like to deepen my knowledge of this and get the certainty of what…
phpasked Rogers Corrêa 2,596 -
50
votes4
answers58057
viewsQ: What is the purpose of @Override?
I’m having some doubts about @override, read somewhere and remember vaguely on the question of rewriting, but what is it? And what is it for? How does it apply in a code JAVA. Exists in some other…
javaasked Rogers Corrêa 2,596 -
3
votes1
answer228
viewsA: Because when I write in the div she changes position?
Now that I understand your question I’ll explain to you: First this happens because of the inline-block, it behaves according to the contents of the page. Try adding content outside the DIV and you…
-
0
votes9
answers166445
viewsA: How to hide/show a div in HTML?
Very simple, I made with a button, but can be done in the div itself <script> function Mudarestado(divid){ document.getElementById(divid).style.display = "none"; } </script> <html>…
-
21
votes2
answers15418
viewsQ: Doesn’t Java have multiple inheritance?
I had seen somewhere now I don’t remember, I think it was in a course on object orientation, which Ruby possesses. But in Java I’ve never seen it. Is that why abstract classes are used? Or is this…
-
1
votes2
answers5630
viewsA: Keep image next to text inside a button
Ever tried to put android:drawableRight= instead of android:drawableleft= or places android:drawableleft= with bigger padding. In the shopping cart for example.…
androidanswered Rogers Corrêa 2,596 -
0
votes2
answers276
viewsA: Input image
What I did to resolve this issue did not involve 1 line of code just edited an image with the drawing on the side I wanted with the resolutions required for the android API.
androidanswered Rogers Corrêa 2,596 -
9
votes1
answer536
viewsQ: Why do we have to use mplements?
What’s the difference between using btn.setOnClickListener(new OnClickListener() { and public class MainActivity extends Activity implements OnClickListener{ I’ve been doing an Android course and my…
-
17
votes2
answers3105
viewsQ: What is the question mark in a query?
Use ? in a query really avoids the SQL Injection? Avoids 100%? I saw this code and I heard many people talking about it, saying it helps in this case and how to use it? Could someone give a better…
-
0
votes2
answers3708
viewsA: How to normalize this database?
The ideal would be to separate everything possible, for example up to the functions of the employees, there should be a table called functions and there be registered and then linked by ID to the…
mysqlanswered Rogers Corrêa 2,596 -
0
votes1
answer551
viewsA: How to get the color of a pixel on the screen in JAVA 2D game?
A little vague your question, but try to use: package teste2; import java.awt.Color; import java.awt.Robot; public class teste { public static void main(String[] args) throws Exception{ Robot robot…