All Questions

3
answers

Function that returns function in Javascript

I started to study Javascript a short time ago and I came across a situation in a code (exercise) that I can not understand. function hi(a,b) { return a*b; } function hello(a,b) { return hi(a,b+1); } hello(3,3); What I understand fr...
asked on 15.03.2015 / 15:33
2
answers

Why can not I declare a variable with a number in front?

I'm curious to know why not being able to create variables with a number up front. I did some tests in JavaScript, ActionScript and C #. var 4teste:String = "teste"; //ActionScript, erro! var 4teste = "teste"; //Javascript, erro! String 4teste...
asked on 29.07.2015 / 15:43
3
answers

Error for unknown cause: "SyntaxError: invalid range in character class"

Situation: I have a page that contains a <iframe> of another, on this other page, I have a simple HTML element input : <input type="text" required="" pattern="[a-Z]{2,35}" tabindex="6" name="edtCidade" id="edtCidade"&g...
asked on 14.02.2014 / 16:40
4
answers

Permission error when trying to access database [closed]

   Error: SQLSTATE [28000] [1045] Access denied for user 'root' @ 'localhost'   (using password: YES)     
asked on 06.02.2014 / 21:19
2
answers

What is http / ftp status 220?

Contextualizing ... when trying to connect to the hosting server, by FTP, always returns status 220 and, after a few seconds, disconnects by time Because it is a status of type 2xx it is not an error neither my (4xx) nor the server (5xx), but...
asked on 23.07.2018 / 00:45
2
answers

How do I not cache image cache with HTML or PHP?

I'm creating a web page that is almost just image, every day I change the images of the page but their name remains the same. The browser is caching a lot and every time I update the images they do not change visually if you have already accesse...
asked on 13.06.2014 / 16:17
1
answer

Can I change more than one record at a time?

This is the code: UPDATE PESSOAS SET COR = ('Pardo') WHERE ID = 1; But I have 2 more records to do the same procedure, would you do it all at once by adding ID ?     
asked on 27.10.2017 / 19:55
2
answers

Implement composite key C #

I'm running some tests and I've been able to implement using this form: public class Residencia { public object Id { get { return String.Concat(Cidade, Estado); } set { } } priva...
asked on 14.04.2014 / 14:24
4
answers

Select string randomly

I need a way to randomly create a string between some options. Let's say I have the strings "A" "B" and "C", would it be possible for Java to choose randomly?     
asked on 10.11.2014 / 19:17
3
answers

Classic ASP out of IIS? Windows x64

Does anyone know of a program / server capable of running classic asp (VBScript, JScript)? and other than IIS?     
asked on 06.03.2014 / 13:48