All Questions

1
answer

What does this piece of sql statement mean?

I have this statement in the database modeling file and would like to know what it is about. 'price_type' enum("S" "M")     
asked on 27.06.2016 / 12:38
2
answers

Validation of two fields with jQuery.validate and DataAnnotations

Good afternoon guys, Next, I need to validate if one of two fields is filled, I tried to create an Attribute function with ValidationAttribute but it did not validate correctly, I think jQuery.validate does not recognize it. Follow the cod...
asked on 14.09.2016 / 19:15
2
answers

How to get the executable path open in C

How can I capture the path of the executable in C and put it inside a string ?     
asked on 03.09.2016 / 02:40
1
answer

How do I change everything to a single php value

My question is this: In a table, I have a column named nomecliente . In this table I have several records, however the column nomecliente of the records are different from each other. How could I make a mysql_query UPDAT...
asked on 29.07.2016 / 21:34
1
answer

PDO with Emulated prepares is insecure? What's the difference?

Recently I did some research on the internet and noticed that several people say that PDO does not protect 100% against injection, specifically with emulated preparations. If possible, someone gives me an example of SQL that would pass the PDO w...
asked on 09.09.2016 / 20:41
2
answers

How to identify a number (in words) in a phrase

I need a script to identify a number in a sentence. Ex: " Two weeks ago" - > number = 2 It can be even by replacement even. So: If str contains two , replace ("two", 2) Is there a node module that does this? I have already sea...
asked on 25.07.2016 / 01:07
3
answers

How to sort sql queries in the RUBY on Rails model?

I have the following method an ROR application. query_student = "SELECT name, registration, room FROM students WHERE registration = "+ params[:registration]+" AND password = "+params[:password] @student = ActiveRecord::Base.connection.exe...
asked on 19.08.2016 / 19:56
2
answers

Generate random password

Hello, I noticed that there are generate-password libraries and password-generator for random password generation. But importing a library just for this might not be a good idea. Is there any way in the node itself to do this?     
asked on 10.08.2016 / 14:18
3
answers

Javascript - Line break in .txt file

How do I identify a line break in a txt using javascript? Example: Essa é a linha 1 Essa é a linha 2 Essa é a linha 3 The file has these 3 lines and I want to put them in an array separated by the line break, array [0] is line 1, array [...
asked on 20.07.2016 / 16:29
1
answer

How to Detect DOM and API Resources

How to tell if your browser supports certain methods , properties and events Checking whether an object querySelector , querySelectorAll , addEventListener , classList exists via Javascript. I've been trying so...
asked on 02.07.2016 / 05:46