Posts by Silvio Andorinha • 8,394 points
171 posts
-
0
votes1
answer97
viewsA: How to remove the Header Columns border
Import: import javax.swing.BorderFactory and try: tbl.setBorder(BorderFactory.createLineBorder(Color.GRAY,1));
-
3
votes1
answer94
viewsQ: What is the probability of the Crc32b hash repeating?
What is the probability of hash Crc32b repeat itself? For example, two different strings return the same code: echo hash('crc32b', 'Teste');
hashasked Silvio Andorinha 8,394 -
0
votes3
answers556
viewsA: Change class after 3s via javascript
Very simple: setTimeout(function(){ (document.getElementsByTagName('div')[0]).classList.remove("oculto"); (document.getElementsByTagName('div')[0]).classList.add("visivel"); },3000) As the…
-
3
votes1
answer81
viewsA: Laravel 5.3 update JSON Mysql field - #3143 - Invalid JSON path Expression
I made a change to the Laravel file MySqlGrammar.php located in: vendor\laravel\framework\src\Illuminate\Database\Query\Grammars Row 155 Method compileJsonUpdateColumn of: $accessor =…
-
2
votes1
answer81
viewsQ: Laravel 5.3 update JSON Mysql field - #3143 - Invalid JSON path Expression
Query generated by Laravel: update `informations` set `parameters` = json_set(`parameters`, "$.'Campo teste'.type", 'string'), `parameters` = json_set(`parameters`, "$.'Campo teste'.value", 'Novo…
-
2
votes0
answers74
viewsQ: Call HTTP error ERR_RESPONSE_HEADERS_TOO_BIG
I am submitting a form with lots of information and I receive the following message: ERR_RESPONSE_HEADERS_TOO_BIG Small section of the code: $("#editForm").submit(); I understand that the error is…
-
8
votes4
answers260
viewsQ: Send data to server even if window is closed
I’m wearing the event beforeunload to try to send an ajax request to the server before the user leaves the page but it has not worked out very well.. Is there any way to send a request that…
-
3
votes1
answer32
viewsQ: 'Search in All' using Linqjs
I’m using the linqJs When I try to get the id 5512 he returns null, but when I catch the 124, works. $.Enumerable.From(structure).Where("$.id==5512").ToArray(); Object structure: [{ "id": 124,…
-
2
votes2
answers80
viewsQ: Array losing field after exiting foreach
I have an object array I want to add a field in each item I do a foreach for this, but the field disappears after exiting the loop foreach ($this->questions as $question) { var_dump($question);…
phpasked Silvio Andorinha 8,394 -
1
votes1
answer173
viewsQ: Migration in several tables with the same prefix
Is it possible with the Laravel to generate a migration that changes several tables with the same prefix? for example: in the tables pesquisas_187 and pesquisas_146 (tables that have the same…
-
2
votes2
answers2165
viewsQ: Mac Address validation algorithm
Does anyone know the validation algorithm used by this site? http://sqa.fyicenter.com/Online_Test_Tools/MAC_Address_Format_Validator.php I searched a lot on the Internet but I could not find, the…
-
5
votes2
answers518
viewsQ: Grab File without knowing the extension of it
How do I pick up an image even if I don’t know its extension? for example: Image name is moon, but I don’t know the extension and when I try to use php commands error and says it did not find the…
phpasked Silvio Andorinha 8,394 -
2
votes2
answers97
viewsQ: Laravel 5 Querybuilder, simplified collection results
I’m using the method get() of Laravel’s Querybuilder and would like to know if it is possible to return the id’s in a simple one-dimensional array, for example: [35,45] Instead of:…
-
1
votes1
answer616
viewsQ: Laravel 5 mail format html with css
I’m sending an email through Mail of Laravel 5 $data = Input::all(); Mail::send('mails.sendteste', $data, function ($message) { $message->from('[email protected]', 'Sistema');…
-
2
votes2
answers1331
viewsQ: HTTPS server consults postal zip code
I am trying to order the address by zip code on a website, but is giving the following error: Mixed Content: The page at 'https://meusite.com.br' was Loaded over HTTPS, but requested an insecure…
-
2
votes1
answer76
viewsQ: Set click for elements not yet existing
$(".item").on('click',function(){ alert($(this).text()); }); count=0; $("#new").on('click',function(){ count++; $li = $("<li class='item'>LI "+count+"</li>");…
-
2
votes2
answers100
viewsQ: Default record if no other - mysql
Is it possible to program the database to have a default record if there is no other record in the table? making the table impossible to be empty. then if there are other records it ignores the…
-
0
votes2
answers978
viewsA: Send email with PHP containing HTML
Try trading for this Header $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; Note: Swap the whole Header. I noticed an error in your code…
-
1
votes1
answer47
viewsA: Problems when defining width in div, tab system
Friend, this is due to padding change the passage to input.tabs + label + div { width: 100%; padding:0px; opacity: 0; position: absolute; border: 1px solid #d7d7d7; top: 40px; left: 0; padding: 25px…
-
0
votes1
answer1150
viewsQ: Migration change only the default value of a field - Laravel
I want to launch a migration that updates only the default value of a field, I tried it as follows : $table->string('mikrotik_rate_limit')->default('1048576/1048576');…
-
0
votes1
answer40
viewsQ: Call slider slide method - jQuery Ui
How do I call the method slide ? $("#slider-range-min-idle_timeout" ).slider({ range: "min", min: 10, max: 60, step:10, slide: function( event, ui ) { $("input:text#idle_timeout").val(ui.value+"…
-
5
votes1
answer77
viewsA: <select> does not work Ajax
I think the right event would be change, in the keyup it detects the key. The change it is triggered when the element obtains a different value, then when the user chooses another option it will be…
-
3
votes2
answers1031
viewsQ: Validate jpg file - Laravel 5
I’m trying to use the Validator to validate the upload file type but not sure if the syntax is correct $data=Input::all(); $file = $data["picture_url"]; $rules = array('picture_url' =>…
-
2
votes1
answer94
viewsQ: Make tooltip read html tag
I am using the jQuery tooltip and need to display a message formatted with html, for example $(function(){ $("input:file").tooltip(); }); <link…
-
1
votes2
answers4863
viewsA: Laravel Eloquent pick only one field of a record
I got!! Profile::where("customer_id",$data["customer_id"])->where('is_default', 1)->select('id')->first()->id;
-
1
votes2
answers4863
viewsQ: Laravel Eloquent pick only one field of a record
I’m new to the Laravel and I have a little problem $profile_id = Profile::where("customer_id",$data["customer_id"])->where('is_default', 1)->select('id')->first()->get(); from this…
-
0
votes2
answers655
viewsQ: Mysql reserved keywords
When I enter php my admin it displays the following message The column name 'default' is a Mysql reserved keyword. referring to a field called default of my table my question is: this can bring some…
-
6
votes1
answer214
viewsQ: Undo click of jQuery parent element
As I can prevent the click of the #b it runs the click of the #link, I would like it to alert only "b" $("#link").on('click',function(){ alert('link') }); $("#b").on('click',function(){ alert('b')…
-
1
votes1
answer293
viewsQ: What is the correct way to pass the view data to the model?
Using Laravel, what is the best way to pass data from view to model? For example, form data and etc... A while ago, I used Codeigniter and sent the data by ajax. In the case of Laravel, it would be…
-
2
votes1
answer30656
viewsQ: Internal Error Server UID of script is smaller than min_uid
When I enter the page I am developing the following error appears: Internal Server Error UID of script "/home/httpd/html/index.php" is smaller than min_uid suPHP 0.7.2 Does anyone know what can be…
phpasked Silvio Andorinha 8,394 -
2
votes1
answer1323
viewsQ: Read XML attribute
I am reading an XML file with the command simplexml_load_file() which has the following structure: <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00"> <NFe></NFe>…
-
0
votes1
answer48
viewsQ: Syntax error in PHP reset() command
This syntax is incorrect? $impostos[$value['prod']['cProd']]['ICMS']['vicms']=reset($value['imposto']['ICMS'])['vICMS']; my doubt is in relation to the command reset() can be used this way Is making…
phpasked Silvio Andorinha 8,394 -
3
votes2
answers154
viewsQ: Read XML received from ajax - PHP
In php using the command var_dump($_FILES ['filexml']); I receive the following values from ajax array(5) { ["name"]=> string(56) "nomeficticio.xml" ["type"]=> string(8) "text/xml"…
-
6
votes1
answer1197
viewsA: INNER JOIN with matching column conflict
Assign the field value to a reference for example in select use SELECT p.id_saida as id_saidaTabelap, p.id_saida as id_saidaTabelaf and when you go get the value do it $id_saidaP =…
phpanswered Silvio Andorinha 8,394 -
0
votes5
answers444
viewsQ: PHP array types and values
How I turn that kind of data $pessoas->nome for $pessoas['nome'] and vice versa with php and because they are different?
-
2
votes3
answers11918
viewsA: Enlarge an image by clicking it (HTML5 and CSS3)?
You can do it using jQuery’s Animate, as in the example I created EXAMPLE HERE
-
-2
votes0
answers7097
viewsQ: Text font that all letters occupy the same space
There is another source outside the monospace and the courier where all letters occupy the same space? or if there is no, can you do this with javascript? for example, take any font and make all its…
-
7
votes5
answers1500
viewsA: Keep displaying the date and time in the javascript browser
It turns out that in this case the function session() is called only once in the last line of the code session(tempo); and then in no time do you call the function pegaSession() which is the one…
javascriptanswered Silvio Andorinha 8,394 -
3
votes1
answer56
viewsQ: Always leave line at the top
I’m using the plugin Datatables and wanted a line to always be at the top regardless of the sort or search that was done as if it had a static "position", always in the first place Does anyone know…
-
15
votes3
answers2478
viewsQ: How do C graphic libraries work?
How graphic libraries work? For example, the standard C execution mode is the application console, as from that only text can create the graphical libraries where you understand pixel instead of…
-
1
votes1
answer132
viewsQ: Cross-platform C program
If I make a program in C and don’t use any Windows library leaving the program totally pure in C I can compile it for Linux as well? and will function normally?
-
1
votes2
answers1967
viewsQ: Programming language directly with hardware
I will make applications that need a direct connection to the hardware, for example a mini-Programmable robot that receives information from a sensor and sends to the programming treat and return…
-
2
votes2
answers301
viewsA: The space key also becomes a character? LENGHT
You can do the following: if($("#userChat").val().replace(/ /g,'')!=""){ alert(mensagem); } then I used replace to remove the blank characters
-
2
votes3
answers154
viewsQ: There is some significant difference between the IMG tag and INPUT IMAGE
What is the difference of <img src=''> and <input type='image' src=''> ? Any specific occasion that would be better the use of any of them?
htmlasked Silvio Andorinha 8,394 -
0
votes1
answer72
viewsA: Sort by a specific value
I solved my problem using the attribute data-order that it is possible to customize the value used at the time of the order Visualized in JSFIDDLE Documentation…
-
3
votes1
answer72
viewsQ: Sort by a specific value
I’m using the plugin Datatables and in a column I possess the following structure JSFIDDLE And by default the plugin creates the default sort form that I don’t know which rule you obey, I would like…
-
1
votes3
answers73
viewsQ: What is the best option to use in relation to performance
I need to make all products disappear from the screen, but I have products that are no longer on the screen. So my question is: If I hide only the products that are visible will perform better?…
-
1
votes1
answer52
viewsQ: Sort by javascript sales node
How can I make javascript sort this array by sales node?…
-
0
votes3
answers268
viewsQ: Use reference in MYSQL query condition
I am doing a query to calculate the balance and after calculated I want it to bring only the products whose balance is equal to 0 so I tried to assign the total value using the AS only when I went…
mysqlasked Silvio Andorinha 8,394 -
3
votes1
answer553
viewsA: What is the maximum limit of PHP/Mysql/Nginx in a request before giving error 504 Time-out Gateway
I managed to solve the problem, I changed the max_execution_time for 900 which is equivalent to 15 minutes and worked!