Posts by Dudaskank • 1,876 points
76 posts
-
0
votes2
answers1029
viewsA: Bootstrap: Modal with dropdown for caption
I believe that what you want can be achieved without extra javascript, using the bootstrap accordion. Another option would still be a navigation with vertical tabs. See this example: <link…
-
0
votes2
answers23
viewsA: Enable buttons for windows, and Windows 32 and 64 Bit
This line is wrong: else if(window.navigator.userAgent.indexOf("Windows NT 10.0")!= -1)&&(navigator.userAgent.indexOf('64')!= -1){ You can switch to: else…
-
8
votes2
answers431
viewsA: Check if git is installed using Node
I haven’t had a chance to use Node and everything, but I think you can call git straight, you don’t have to call the shell executable to do this. let git = spawn('git', ['--version']) Even, for what…
-
1
votes4
answers774
viewsA: Concatenate variables from an array
The function implode(), already quoted by colleagues, will do the service as you planned. But if I understand correctly, you want to add the array values to use in your SQL. If you don’t need to…
-
0
votes2
answers61
viewsA: jQuery.get runs after all the rest of the function
The jQuery.get() method is by default asynchronous, that is, it creates a new thread to download the page in question and continues javascript. The new thread then responds to the download performed…
-
9
votes2
answers39989
viewsA: What are data-target and data-toggle attributes for?
As Mr Uzumakiartanis explained very well, the attributes data-* are created to add more information related to the element, and this is widely used in various libraries and plugins. In the case of…
-
5
votes3
answers754
viewsA: <form action = ". /"> where will you go?
Negative, when it sends to "./" will fall to the root of the current folder. Then in this case, who enters the scene and receives the form parameters will be the index of this folder. Unless, of…
-
1
votes1
answer68
viewsA: Bulk Data Insertion | Spservices | Sharepoint
I don’t know anything about Sharepoint, but I’d follow that answer and would look fondly at this method SPServices.SPAddMultipleListItems, that looks promising. Note that in the examples, where…
sharepointanswered Dudaskank 1,876 -
1
votes3
answers455
viewsA: Trying to fill an array with days from now until thirty days from now
Another method to achieve this is to take year, month and day today, and make a loop only incrementing the day. When you spend a day with date above that has the month, for example January 32, the…
javascriptanswered Dudaskank 1,876 -
1
votes2
answers599
viewsA: jquery n.fn.init(0) in production in n.fn.init test(1)
When you connect the element in the event blur, using the method blur(), it searches the page at that time the selectors and directly attaches the Handler function. If after this you enter the new…
-
1
votes3
answers1803
views -
9
votes2
answers12319
viewsA: Format date and time with PHP
Well, you’re complicating your code to tell the truth... the function date() already formats the pro date you need, even you are already formatting it there, just need to adjust the same format:…
-
1
votes3
answers392
viewsA: UPDATE SUM +1 to decimal
SUM() is an aggregation function, will not serve for what you want. For this, just add with the value you want to increase. UPDATE callcenter.chamada_agente SET uniqueid = uniqueid + 0.0000001 --…
postgresqlanswered Dudaskank 1,876 -
3
votes2
answers209
viewsA: String for Double - Help!
Some points I saw here: On the screen, the column should be showing decimal places with "," rather than ".", which is what is expected by the method Double.parseDouble(). Use the class…
-
1
votes3
answers274
viewsA: Add javascript to Wordpress plugin
Your code is correct, I did a test on a page only with a button with this id and it worked. See if at the time you try to attach the event the object already exists, put before an instruction to…
-
1
votes2
answers150
viewsA: Doubt with SELECT in MYSQL database
I can’t open the link presented by Motta, but must be quoting the function MAX(). Just completing the query would look like this: SELECT max(data), id, nome, cidade, pais, endereco FROM tabela GROUP…
-
0
votes2
answers849
viewsA: How to pass a float without loss of value to an integer?
Well, when you are converting a float, double or other type that has decimal to integer, you will always have the loss of the decimal part. Also worth noting that float and double are not accurate,…
-
1
votes1
answer142
viewsA: Is it possible to cancel a transaction using the Pay.me API?
It is possible to block a transaction via API. To block a transaction via API just follow the route: https://docs.pagar.me/api/#reverse transaction. In the case of a credit card transaction, only…
-
0
votes2
answers1373
viewsA: Menu does not fade when clicked on responsive bootstrap site
Well, if all your code is this, it’s because the end of the page is missing... the tags and classes are all correct, I did the test here, I just needed to add the final part and modify the links of…
-
0
votes2
answers212
viewsA: How to prevent my site from falling, when running a "heavy" script?
An output is, instead of running the task and waiting, it would run the task in the background and the script go checking from time to time if the process is over. For this, you have the so-called…
-
0
votes2
answers529
viewsA: Load page without loading music player
It’s a mix of loading the new content via Ajax and using an HTML5 API called History. This similar question in Soen will give you a North to follow.…
-
1
votes1
answer77
viewsA: Two-dimensional array does not change value of second array position
When you do the foreach($seuArray as $item), the $item is a copy of the array element. By changing it, you are changing the copy and not the original item that is in the array. To use the array…
-
0
votes1
answer119
viewsA: PHP does not consider listing when it has a filter
This datatable It works that way, just sends the form of what’s on the screen. To be able to send other fields, you need to do a little manual work rs. What needs to be done is, when submitting the…
-
0
votes8
answers3166
viewsA: Fewer moves from a horse to a given house in Chess
I already did something similar in a final work of course, it was a library map that had an origin, which would be the computer where the system was being accessed, and the destination the book on…
-
4
votes1
answer893
viewsA: How to optimize iframe load time?
Yes, it would be possible to decrease the page load time, you should only load what is visible on the screen, the others would leave for later. See if the Lazy load XT plugin in this link helps you:…
-
2
votes2
answers769
viewsA: Send file to remote server with PHP
Outside of the application, as you have done, the ideal would be to use SFTP. I particularly do not use Digital Ocean, but everywhere I use FTP and SFTP I give preference to Filezilla. These…