All Questions

1
answer

Problem with types in function parameter

When you run the following code: function foo(string $text) { echo $text; } foo('bar'); I get the following error:    PHP Catchable fatal error: Argument 1 passed to foo () must be an instance of string, given string, called in / hom...
asked on 24.01.2014 / 01:33
3
answers

How to generate a hash on the client side?

I am researching ways to create a login system with a secure encryption that does not weigh to the server. Home Taking the example this answer I'm looking for a way to do client-side encryption, thus sending the password already encrypted for...
asked on 20.02.2015 / 16:52
3
answers

What is the most correct way to query with LINQ?

I'm trying to make a LINQ query on my DB SQL Server, but its result always comes 'null'. I need the first userid on which I query. This is the way I try to query it: public decimal GetCustomerBalance(long accountCurrentAdvisorId) {...
asked on 11.04.2015 / 05:46
3
answers

Nth value of a binary search tree

I've been trying to create a recursive function from the function that lists a binary tree in order. This function would return the nth term, in order, from a binary search tree. Each node is in the following format: typedef struct nodo...
asked on 05.11.2014 / 04:07
3
answers

How to get ID from another table and INSERT another?

I have two tables: destinations and entry: In the destinations table: dest_id (AI) and destination; In the entry table: id (id), target_id (relative to destination id of the destinations table) I created a query to insert the first...
asked on 11.04.2014 / 02:18
3
answers

what is the difference between gift and virtual gift?

I saw a framework that worked with virtual dom and for that fact it became faster than the others. (framework: facebook reactjs) What is the advantage and disadvantage in each? How do you work with each one? Example in pure js     
asked on 07.12.2014 / 17:08
2
answers

What are .phtml files and when should I use them?

Until recently, I had never heard of phtml , however recently I see that it is being used a lot, mainly by some frameworks (such as Zend2). Since I can usually put html content inside a .php file, I ask myself what is the use of...
asked on 05.12.2014 / 12:01
2
answers

Test an application's internet connection

I have an app that connects to webservice but the problem is that when I get 3G, it gives error. When the connection is good, with a wi-fi for example it works perfectly. I have some algorithms that test the connection, but everyone validat...
asked on 18.08.2014 / 15:26
2
answers

Using hashcode as id is a good practice?

I have a short list of strings (where strings will never be repeated) and would like to use hashcode as id is it a good practice?     
asked on 11.02.2016 / 22:45
2
answers

Look up values in one data.frame and add in another (R)

I have 2 data.frames, the first is a data.frame that contains stock data and a column with a unique identifier (column "ISIN") , as shown below: > Teste=data.frame(matrix(runif(20), nrow=5, ncol=4)) Teste$ISIN <- c("A1","A2","A3","A4","A5"...
asked on 19.04.2016 / 21:30