All Questions

2
answers

Number of repetitions per character

A friend gave me the following exercise:    Create a text-frequency function that returns an object containing the number of occurrences of each character in the text. I assumed that the argument passed is a string. According to my logic...
asked on 09.09.2014 / 17:57
4
answers

Why do my webfonts only work with Chrome?

I'm creating a website through a child theme of Shoestrap, based on Bootstrap. When I use webfonts they just work in Chrome. What am I doing wrong? My CSS is this @font-face { font-family: 'open_sansitalic'; src: url('assets/font...
asked on 06.03.2014 / 19:52
3
answers

How to know which DATETIME format used in a particular SQL Server column?

I have a table in SQL Server and one of the fields was created as DATETIME . As I can tell, via query or SQL Server Studio , what is the default format used of this DATETIME in my SQL Server ?     
asked on 15.04.2015 / 14:11
1
answer

Concatenate Strings in Java Loops - StringBuilder or '+'?

Java allows us to concatenate Strings in Java using just the '+' operator String str = "a" + "b" + "c"; It's a simple way to do the job, and much less verbose than using StringBuilder. But in cases of Loops like the one below, which appr...
asked on 27.06.2015 / 14:53
2
answers

What is the difference between define () and const?

What is the difference between declaring constants with define() or with const . Would it be the same or are there any details that I should know about? define('TESTE', 'constante 1'); const TESTE2 = 'constante 2'; echo TEST...
asked on 04.01.2015 / 19:17
2
answers

How to redirect page in Angular?

After completing the data update, I want the system to redirect the user to another page. I am using ui-router and was instructed to use $ state.go. But how do I use this command? Follow my code: app.controller("AtualizarUsuarioController",...
asked on 11.01.2016 / 18:44
3
answers

How to use a different logo if the default does not exist?

I wonder if there is a solution to the following problem, If there is a company logo, consider it and apply it to css, if there is no use of logo_default, then I could control versions and my users could customize the application without fear...
asked on 14.05.2015 / 15:08
2
answers

Is processing time affected by the size of variable names?

I was analyzing some frameworks developed by large companies and noticed a particular uniqueness, their variables and functions usually have small names. Does the size of the variable or function name interfere with processing time? By...
asked on 18.11.2014 / 15:20
3
answers

What is the purpose of returning the main function and the importance of this function?

I would like to know what is the importance of the function main and what is the purpose of the return of it that is an integer? Here is a minimal example of the implementation of the main function: int main() { printf("St...
asked on 21.04.2016 / 03:40
1
answer

Connection to database - MySQL and Java

I already have a local server on my machine (localhost) with MySQL running normally. From there, I would like to connect my database with Java, but ... how do I do this? Is there a Swing component that displays the fields of a given MySQL table?...
asked on 13.05.2015 / 20:10