All Questions

1
answer

Google Search Tool for my site

How to include a search within the Google search engine? Would you include a meta tag in my site for this to appear on Google? A little difficult to explain, so I'll illustrate with an image.     
asked on 30.03.2015 / 19:03
1
answer

How to use a try catch within another?

I need to write data to a database, and if it succeeds, then I will generate a .pdf with PHP. Even though I put try catch in a part of the code and it gives exception , still the rest of the code will be executed. Would it...
asked on 03.10.2014 / 16:45
2
answers

Convert expiration factor (number of days) from ticket to date dd / mm / yyyy

I have the following digitable line: 74893.12004 21627.007186 37931.981056 7 60750000001400 As I've already seen in this question, I found out how to calculate maturity mathematically: Extract Digitable Line Maturity I need the JS e...
asked on 29.05.2014 / 21:25
3
answers

Create a class dynamically in C #

I have a class "ClassA" and it has a "Attribute" attribute protected. public class ClasseA { protected string Atributo { get; set; } public int Codigo { get; set; } public ClasseA (int codigo) { Codigo = codigo; }...
asked on 20.11.2014 / 18:16
3
answers

How do one column occupy the rest of the available space?

I would like two blocks within a parallel-sized div, one with a fixed size, and another that fits exactly in the remaining space. For example: div#container { width: 50%; /* este tamanho se altera */ height: 100px; } #esquerdo { widt...
asked on 08.04.2015 / 06:27
4
answers

How to transform the output of a command into a variable in CMD?

Hello, since I started searching on these CMD commands, this question about how to turn the output of a command into a variable has been the one that took the most time. I've seen many codes out there, many quoted that the FOR command cou...
asked on 26.11.2014 / 15:19
1
answer

Encapsulation and Java Access Modifiers

A very simple question: Given this class: public class User { private String nome; //get/set public boolean fazQualquerCoisa(){ **duvida**.equals("algumacoisa"); } } Within the method Does AnyCase () , should I access the n...
asked on 05.05.2015 / 16:36
2
answers

Is there a difference between strtr and str_replace?

I was looking at how the strtr and str_replace functions behaved and I noticed that, at first glance, the two seem to do exactly the same thing. Example: $translators = [ 'da hora' => 'bacana', 'ser' => 'é', ]; $st...
asked on 27.02.2015 / 13:30
2
answers

How to calculate direct treasury custody rate

Consider the following investment: Capital inicial (C) = 1000,00 reais Juros (J) = 12% ao ano Período (n) = 8 anos Taxa de Custódia (TC) = 3% ao ano The custody fee (TC) is a fee charged annually on the amount accumu...
asked on 05.11.2014 / 17:07
3
answers

How to integrate AngularJS with common scripts?

My question started when I tried to use the twitter bootstrap Carousel within an AngularJS project, it did not work at all. I found the angular-ui , I solved my problem using this component, but my doubts are as follows: 1 - For every c...
asked on 03.12.2014 / 17:35