Posts by durtto • 3,109 points
104 posts
-
1
votes1
answer895
views -
1
votes2
answers1328
viewsQ: Calling javascript function with null parameter
The function verificaCampoVazios has two parameters (fs and campos). verificaCamposVazios = function (fs, campos) { console.log(campos[0]); } Example of how it is called function:…
-
2
votes1
answer123
viewsQ: Start Development App Result Board Games
I want to develop a android platform app who manages the scoreboard of board games between my friends. I know almost nothing about android, and I need to start. One of my questions is how to save…
-
3
votes1
answer1281
viewsA: Various products within an order
Use foreach to include multiple items. Below is an example I use. $InsereProduto = "INSERT INTO exemploext_crudusuario.itensPedido (idPedido, idProduto, quantidadeDiasProduto, quantidadeProduto,…
-
-2
votes4
answers877
viewsA: How to search for an element with the same class depending on the number of children?
Try this, put an id on your ul. <ul id="minhaLista"> <li>Elemento 1</li> <li>Elemento 2</li> </ul> To know the size: $("#minhalista li"). length…
-
6
votes2
answers2250
viewsA: ASP.NET needs a Windows server?
Depends on what the technologies .NET specific you are using. The Project Mono provides an Apache module (mod_mono) to enable ASP.net applications on the three Windows, Linux and MAC platforms. Mono…
-
1
votes2
answers356
viewsA: Take id from last sale and register in the codsale field of the items table.
Use mysql_insert_id - Get the ID generated by the previous INSERT operation <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Erro na conexão: ' .…
-
2
votes3
answers426
viewsA: When should I wear the new one or not?
String dataFormated = new Date(). format("dd/MM/yyyy") A String dataFormatada is receiving today’s date in "dd/MM/yyyy format"; def data = Date.parse('dd/MM/yyyy', '31/12/1980') data is receiving…
-
2
votes4
answers756
viewsA: Remove a specific space in a string
String comEspaco = "8 hrs 2 mins"; String semEspaco; if (comEspaco.constains("hrs")){ semEspaco = comEspaco.replace(" hrs", "hrs").replace(" mins", "mins") } else{ …
-
1
votes1
answer168
viewsA: bar spacing in a barcode
Change as shown. And create a thickness variable and give it value and see if it looks the way you need it. const digitos : array['0'..'9'] of string[5]= ('00110', '10001', '01001', '11000',…
-
1
votes2
answers792
viewsA: Format date and monetary value to save to database
Your question was: Would I have to play like that on the bench, and then catch them, convert the date and value and play in another table? Transform your data the way you want and after that you…
-
0
votes1
answer3720
viewsA: Clear screen prompt Mysql
Unable to perform this procedure on Windows. Look at this one link, the bug was found in 2010 and does not yet have a similar command for Windows.…
-
-1
votes6
answers49720
viewsA: Convert DATA dd/mm/yyyy hh:mm:ss to yyyy/mm/dd
Try this: SELECT CONVERT(VARCHAR(10), GETDATE(), 120) Or this select date(Columnname) from tablename
-
0
votes5
answers1041
viewsA: localhost does not have access to the requested page
Politics of the same Origin Try this on your web.config <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add…
-
0
votes3
answers1267
viewsA: Is there an alternative method to window.print()?
I couldn’t find another method to print an iframe. The alternative was to create a window and pass the html content to her. I used the Handlebars library to pass the data to the html window. So I…
-
2
votes2
answers652
viewsA: Convert a date to Java
Make sure below is enough for you. If you still have doubts, comment. var st = "26-04-2013"; var pattern = /(\d{2})\-(\d{2})\-(\d{4})/; var dt = new Date(st.replace(pattern,'$3-$2-$1')); alert(dt);…
-
2
votes2
answers2637
viewsA: What is the point and difference of using <![CDATA[]]> inside a <script> tag?
Sometimes, within XML syntax, developers will place a sequence of entries between character data, or supports CDATA. The information that is placed between these media is unrecognizable to the XML…
-
0
votes4
answers1962
viewsA: How to repeat the fields of a form?
See if it fits you. var counter = 1; jQuery('a.add-author').click(function(event){ event.preventDefault(); counter++; var newRow = jQuery('<tr><td><input type="text" name="first_name'…
-
2
votes3
answers125
viewsA: Enable/Disable input by id
jQuery <1.9 $('#inputId'). attr('readonly', true); jQuery 1.9+ $('#inputId'). prop('readonly', true); Source…
-
1
votes2
answers245
viewsA: System in Bogotá
Creating a complete system in Joomla is a programming task yes, so it is consistent with the site proposal. Making a complex system in Joomla will depend on your skill. If you are an advanced…
-
1
votes1
answer583
views -
1
votes1
answer203
viewsA: Error "No package dkim-milter available" Centos 5.8
WHAT IS DKIM DKIM (Domainkeys Identified Mail) is an important authentication mechanism to help protect both email receivers and email senders from forged e-maiils and phishing. The DKIM (Domainkeys…
-
1
votes1
answer119
viewsA: What happens when the subscription key expires?
In 25 Years you can be sure that Google will make several improvements regarding how to make an application available, and surely the developers will not be on hand. The technology advances and will…
-
0
votes1
answer20
viewsA: Backup and redirect Hd windows server 2003
Thumbs.db is created when using thumbnail preview. Do the following, disable the option that shows the Thumbs file type, so the Thumbs file will be hidden and will not be copied.
-
4
votes1
answer37
viewsA: Hide PHP error log
Search your php.ini and alters of display_errors = on for display_errors = off
-
1
votes3
answers1267
viewsQ: Is there an alternative method to window.print()?
I want to print an iframe, but the print() method does not work because my "src" attribute contains "data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%3Efoo%3C/body%3E%3C/html%3E", There is a method…
-
5
votes7
answers13486
viewsA: Is Delphi an IDE or programming language?
Miguel, Delphi is an IDE used to create native programs for windows platform. The history of this IDE is long, there are hundreds of chapters. I have with me that the history of computer science (as…
-
14
votes9
answers41109
viewsA: What is a programming language, IDE and compiler?
IDE Integrated Development Environment is a computer program that, when installed on your machine, offers several features that help the developer in his programming task. There is paid IDE and open…
-
1
votes1
answer438
viewsA: Database loca + Node.js
There are many options for your need. Check that library Taffydb, an opensouce library that brings database resources into your javascript apps. Characteristics: Small file size, extremely fast…
-
2
votes2
answers288
viewsA: Decimal home approximation in Javascript
Number is a javascript function that converts the string to a floating point value Note that within parentheses there is .(dot), then the string within parentheses is converted to floating point.…
javascriptanswered durtto 3,109 -
1
votes2
answers1889
views -
3
votes1
answer46
viewsA: Old site first in organic search, if I reform it, lose rankings?
SEO involves dozens of resources, such as meta tags, . htaccess, sitemap, meta Keywords etc. SEO works directly with the content of these tags, and so you should redo your site as closely as…
-
0
votes1
answer38
viewsA: Wordpress Translation Plugin
In your case try to install the plugin qTranslate, it is simpler than others and will keep your site with two languages.
-
2
votes1
answer1498
viewsA: Asp.Net MVC Project in Medium-Trust
I’ll translate that reply. The official position of the ASP.NET team is that average confidence is obsolete. This means some things: We are automatically solving all Trust-related bugs Medium…
-
4
votes1
answer615
viewsQ: How to check the size of a javascript object (in memory)
How to check the size of a javascript object (in memory) using pure javascript?
javascriptasked durtto 3,109 -
0
votes1
answer84
viewsQ: Set mysql variable with the name {parametro1}
The way to set a variable in mysql is like this: SET @variavel = valor In the Documentation says that the variable name may contain other characters, in which case it should be set like this SET…
-
1
votes1
answer1176
viewsQ: How to make select using mask on output
I have a client table, and a command field of varchar type. Cpf is stored without mask. Ex:"00751595170" I would like to do a select that format the result by putting on the masks. "007.515.951.70"…
-
2
votes6
answers5628
viewsQ: Calculate age in years using javascript
How to calculate age from an input type="text" using javascript? I have the input: <input style="width: 100%" type="text" readonly id="data_nascimento"/> How to perform this calculation? The…
-
2
votes1
answer930
viewsQ: How to create variable dynamically?
I would like to create a variable for each iteration of a for. Example: for(u=0;u<tamanho;u++) { int variavel[u] = "valor" } It is possible? UPDATE This is the real code. SearchConstraint c1 =…
-
3
votes1
answer565
viewsQ: Is it possible to call an anonymous function?
I wonder if it is possible to call an anonymous function outside her scope. When I call the function, this error occurs: Uncaught TypeError: consomeCsr is not a function Example: consomeCsr =…
-
0
votes3
answers9315
viewsA: Ask if the user really wants to leave the page?
Put this script on your page and test: <script language="JavaScript"> window.onbeforeunload = confirmExit; function confirmExit() { return "Se você fechar o navegador, seus dados serão…
javascriptanswered durtto 3,109 -
1
votes1
answer120
viewsQ: Understand context given statement
I have this particular function statement: datasetCSR = this.execECM(function () { var co = this.DatasetFactory.createConstraint("ibv", instance, instance, this.ConstraintType.MUST); return…
javascriptasked durtto 3,109 -
2
votes1
answer711
viewsA: Multer file upload callback - Nodejs
Look, I’ll try to help just by translating that answer here. It seems that the usage has changed over time. Currently, multer constructor only accepts following options…
-
9
votes3
answers42573
viewsA: Calculate difference between two dates to validate date fields
Good morning. Try this: var date1 = new Date("7/11/2010"); var date2 = new Date("12/12/2010"); var timeDiff = Math.abs(date2.getTime() - date1.getTime()); var diffDays = Math.ceil(timeDiff / (1000 *…
-
2
votes2
answers758
viewsQ: Certain function does not work in Firefox
I got a parole like that: // 1.º - Verificar se existe a matrícula no sistema function existeColaborador() { if(DSdetalhesColaborador.values[0] == undefined) { //alert('Matricula inválida');…
-
8
votes3
answers446
viewsQ: Could someone explain to me the term "Specification Pattern", applied in Javascript?
I did some research on the net, I found this website with valuable information. I work a lot with conditionals using javascript, see an excerpt of my function that receives radiogroup as a parameter…
-
0
votes1
answer28
viewsA: About Object and Extensions
Well, I will consider that you are running this code below: var album = new Object(); album.title = "Metallica (Black Album)"; album.released = 1991; album.showInfo = function() { alert("Título do…
-
10
votes3
answers6632
viewsA: How do I know if an object is a javascript array (without jquery)?
The Array.isArray() method returns true if an object is an array, and false if it is not. Example: Array.isArray([]); Source: http://phpdojo.com.br/javascript/arrays-e-objetos-em-javascript/ //…
-
0
votes3
answers644
viewsA: Hide html img tag
You can use onerror event, an event handler for runtime script errors. Follow an example: <img src="broken.png" onerror="this.style.display='none'" />…
-
0
votes2
answers2823
viewsA: Maximum number of concurrent connections exceeded in Apache HTTP
Which operating system you are using? To view active connections on your server, type this command at the prompt: netstat -an | grep :8025 | grep -i EST | wc -l *where 8025 is the door of your…