Posts by SuperMax • 456 points
12 posts
-
-1
votes1
answer247
viewsQ: How to find nearest value in an array?
var dados=[0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 4.75, 5.0, 5.7, 6.0, 6.2, 6.5, 7.0, 7.1, 7.5, 8.0]; var DadoMaisPertoDe = 3.8; //preciso encontrar o valor 4.0 //outra demanda //dado o valor encontrado…
-
2
votes1
answer44
viewsQ: What is the OPTION=3 parameter for in the Database connections?
A database connection is usually something like this Driver=MySQL ODBC 5.1 Driver;Server=XXX;Database=XXX;UID=XXX;PWD=XXX;OPTION=3; Most google searches suggest this OPTION=3. In the mysql manual…
-
0
votes1
answer683
views -
0
votes2
answers830
viewsQ: Filter number of characters with SED or grep
I have a file with strings I need at first filter for example only lines that has 5 characters And in a second moment filter only those that have at least 2 characters repeated together Example:…
-
2
votes1
answer41
viewsQ: Set variables to call a function
I’m trying to include variables to call a function, but I’m not getting it function Geral() { xmlHttp=GetXmlHttpObject(); var url="pagina.asp?a=1"; xmlHttp.onreadystatechange=stateChanged;…
-
0
votes2
answers408
viewsQ: Responsive content with fixed size sidebar
Is it possible to make a layout with flexible lagura content and a fixed-size sidebar? Example <body> <header></header> <article></article> <aside></aside>…
-
3
votes1
answer1732
viewsQ: replace with regular expression (regex) ignoring accents
I recently changed the friendly url, because the querystryng used for searches was filtered to without accents. Regarding the queries to the database regardless of whether the word has accent or is…
-
3
votes1
answer221
viewsQ: Doubts about gzip compression on IIS servers
I have a question, I have accommodation in kinghost and before activating the support I would like to know if what happens is even a problem. what happens is that the static files (mainly in…
-
2
votes1
answer451
viewsQ: Index limit with LIMIT
I have never been an expert in sql but I will always come, nothing that a googlada has not solved. But I have a doubt that I did not find information on this. Recently I did some testing to find out…
-
9
votes2
answers2637
viewsQ: What is the point and difference of using <![CDATA[]]> inside a <script> tag?
What is the point, or what is the difference of using or not the content of the script with this CDATA? <script type="text/javascript"> //<![CDATA ... //]] </script>…
-
5
votes1
answer1098
viewsQ: What alternative to use instead of Document.write
It is said that Document.write is not a good practice, and it also doesn’t work after window.onload, which is the case I need. I have the following function that needs to change Document.write, the…
javascriptasked SuperMax 456 -
7
votes2
answers1691
viewsQ: How to make a Function wait for jQuery loaded with the async tag
I’m having a problem making a Function wait the loading of the package.js with the async tag <script id="packjs" async type="text/javascript" src="pacote.js"></script> This file contains…