Posts by Luitame • 2,215 points
29 posts
-
0
votes1
answer152
viewsA: Grid with Laravel 5.3 searching for the Foreign Keys
You can bring it to your collection relationship data via the method withof the Eloquent ORM. Take a look here in the documentation to better understand. In your case it would look something like…
-
2
votes2
answers2125
viewsQ: Copy (cp) to current folder on LINUX
It is possible to display destination path by giving a command to copy (cp) from the linux console to the current/current folder? Ex: cp ~/Origem ~/Destino What I desire is some shortcut in bash…
-
7
votes3
answers823
viewsQ: Assign array type in PHP
I know PHP is a weakly typed language. But there is some alternative way to "type" a array in PHP? Example, I can do this below to force receive a specific type of data in a function. function…
-
0
votes1
answer1520
viewsQ: Full screen when loading the page
How to give a Full Screen on a page as soon as the browser finishes loading it, but that works also in the browsers of the Android OS? I’ve used the famous load to fire the event after loading the…
-
2
votes2
answers1434
viewsQ: PHP imagecopyresampled() function cutting in the wrong place
I already reversed the parameters several times to check if I was passing them erroneously, but I was not successful. What is happening is that Crop is performed in a different location than…
-
1
votes1
answer60
viewsQ: JS function using jQuery bugging with Foundation 5
I am generating a random number by clicking on a button and after generating this number enter as the value of a input. However, when clicking the button everything follows normally the value is…
-
-3
votes1
answer263
viewsQ: How gives an infinite loop
How do I treat the exception below: Fatal error: Maximum execution time of 30 seconds exceeded in ...
-
3
votes2
answers1985
viewsQ: Clone data insertion box from with jQuery
I wanted to make it work with js(jQuery) the interface below: I am using the CSS Foundation framework to develop this project. However, I don’t know how to make a clone using the jQuery of this…
-
1
votes1
answer1708
viewsQ: Centralize in vertical form with Zurb Foundation
I am using the CSS framework Zurb Foundation, and have made several attempts to center this form in the center of the screen. I’ve tried attacking with a normal CSS of putting 50% at the top and…
-
4
votes1
answer2484
viewsQ: Default prompt opening directory in Node.js
How do I make Node.js always open in a directory that I want? I’m new to this technology. I wanted to know how to change the standard path opening, because currently it always opens in…
-
2
votes1
answer179
viewsQ: SELECT display difference between browsers
I have the following code HTML that marks a SELECT: <select name="filtro"> <option value="">Mais visualizados</option> <option value="">Menos visualizados</option>…
-
3
votes1
answer1642
viewsQ: Error clone with Git
When I try to clone a repository through Git Bash by command line it returns me this error, as in the image below: I’m on a corporate network, can it be the firewall blocking me? Has anyone ever…
-
3
votes2
answers3872
viewsQ: Right align font icon
I try to align an ico font on the right side of the screen within a header HEADER, but I can’t even use one float: right. But then it goes to the right, however I lose the other alignment settings.…
-
1
votes3
answers901
viewsQ: Infinite loop with $_SESSION and redirect
What would be the best practices for maneuvering the following PHP code? if(!isset($_SESSION['email'], $_SESSION['senha'], $_SESSION['nivel'], $logado)){ header("location: index.php"); } And it’s…
-
3
votes2
answers1406
viewsQ: Change registry key values Windows
It is possible to build an application which it searches for a key in the Windows registry with an exact name and when finding change its value by a user-defined value? If possible what is the best…
-
3
votes2
answers807
viewsQ: Do not view PDF inside the browser
I have the following anchor: <a href="http://localhost/refazer/uploads/0503-14.pdf">Conteúdo</a> By clicking this link automatically the browser recognizes that it is PDF and views it.…
-
4
votes5
answers8743
viewsQ: Center a form vertically
I have the following screen and I can’t vertically center this form below on the screen. I define how position: absolute; and I add the top:20% and does not move! Follows my html: <header>…
-
1
votes2
answers3447
viewsQ: PDF view in browser
I am searching a way to view PDF file in the browser and print everything through the web (This action will be done by the user). Someone knows a tool that works with it. I’m using PHP and Mysql in…
-
87
votes8
answers75484
viewsQ: Error - "Cannot Modify header information - headers already sent"
I have the following code using the function header() of PHP: header("location: painel.php?spv=nav/regMove"); exit; and when it is triggered reports the following error: Cannot Modify header…
-
4
votes10
answers29077
viewsQ: Scroll through an Array and check if any element is empty
Is there a native PHP function to traverse a array and check if any element of this array is empty null? Observe the code below: if(isset($_POST['btnCriaModelo'])){ $instArray =…
-
6
votes1
answer2385
viewsQ: Load content dynamically with AJAX
I have the following HTML code: <label id="meuTemplate" for="criaAssoc" class="instAssoc" style="display:none"> <strong>ID:</strong> <input name="idInstrucao" type="text">…
-
12
votes2
answers9742
viewsQ: Dynamically adding element with jQuery
I have assembled the following structure in HTML: <form name="criaModelo" method='post' action=''> <label for="name"> <strong>Nome:</strong> <input name="nomeModelo"…
-
10
votes3
answers3229
views -
7
votes4
answers4319
viewsQ: String concatenation in SQL
I perform a query in a table in my Mysql database that returns the following fields to me: usuarioId nome sobrenome idade sexo escolaridade modeloNome hora Follow the sql below: SELECT…
-
8
votes3
answers1076
viewsQ: Is anchoring a TR possible?
It is possible outside an element tr link some address as below? <a href="www.enderecodesejado.com.br"></a> If it is not possible, Javascript would solve this or better forget? I have…
-
9
votes2
answers495
viewsQ: Parse error given when checking variables with the Empty() function
I have a little problem in my PHP when I step over a variable to check separated by comma it generates a parse error. Look at my code below: if (isset($_POST['btnCriaTempo'])){ $ordem =…
-
7
votes1
answer655
viewsA: Problem with printing HTML elements on the screen
Personal apologies for tormenting you with this question. But then it takes more than an hour and a half to see who is causing this problem. I found that the reason this is happening is the fault of…
-
8
votes1
answer655
viewsQ: Problem with printing HTML elements on the screen
I’m making a software (minigame) that works with a deck. In the administrative panel of the same I need to view and consult the game deck. I perform a query in the database and, with the results…
-
8
votes3
answers7789
viewsQ: Built-in form action parameter is not passed via GET
I have the following HTML code, and in the action Seto the address obeying my query string: <form name="searchCard" class="serachCard" method="get" action="painel.php?spv=nav/buscarCard">…