All Questions

1
answer

PHP array of objects without access to get

I'm trying to access the getters that refer to an object, however this object is in an array, and by no means do you want to access them. Here is the class DAO (where you are giving the mess and I am doing test) and class VO: DAO: <?...
asked on 14.07.2015 / 05:08
2
answers

Send javascript object to php

I have the following class in php: class Corretor { private $id; private $nome; private $registro; private $email; private $senha; function __construct() {} /* Getters e Setters*/ } And in my html code, I have...
asked on 11.03.2015 / 16:11
2
answers

Splashcreen Plugin (Cordova) and icons do not work on Crosswalk

I'm using this module that automatically adds a Crosswalk wrapper to a Cordova project. Obs : It requires that the "platform" be [email protected]. Ok, so I give the command to do the Crosswalk Wrap in the project and everything goes well....
asked on 06.03.2015 / 07:02
1
answer

Why can not I access a field but the method succeeds?

I have the following code in C #: namespace ConsoleApplication4 { public class BaseClass { public BaseClass() { System.Console.WriteLine("BaseClass::BaseClass();"); } } public class DerivedCl...
asked on 18.03.2015 / 06:34
2
answers

Catch the user's city with IP [duplicate]

I need to get the city the user is at the moment of access to the Site Control Panel. Why do I need this? I want to block access to the control panel only for my client's city, when it does not have fixed , if it does, I block access on...
asked on 11.08.2015 / 21:02
1
answer

How to remove a remote branch in Git?

To delete a local branch from Git, just use the command git branch -d <branch> , but how do you get this branch removed on the remote server?     
asked on 03.03.2015 / 13:28
2
answers

Alternative for Exists ()

I'm looking for an alternative to using the command Exists in procedures that I need to perform a large query and check if it returns some data, if it does not return to look for it should return a select with all its columns with the val...
asked on 08.04.2015 / 22:13
2
answers

Passage of variables to the view in CodeIgniter

I'm finding some problems to pass the result of a query in the model to the view in CodeIgniter. What would be the best way to do this? My query: $query = $this->db->query("SELECT * FROM crm.usuario limit 50"); And I want to m...
asked on 19.03.2015 / 17:52
1
answer

How to generate a random number within a range?

Using the arc4random_uniform() method, how should I assemble the logic to generate a random within a given range? For example, given the range [5, 10] Random Candidates:    5, 6, 7, 8, 9, 10     
asked on 20.03.2015 / 21:05
3
answers

Formatting Strings for RG

How can I format this String : 12345678x for this: 12.345.678-X? I tried to use String.Format but I could not. Resolved: public string RgFormat(object rg) { string strRg = rg.ToString(); return strRg.Substring(0, 2) + "."...
asked on 19.03.2015 / 19:49