All Questions

2
answers

Authentication with two different tables

I need to do two authentications, one for other clients for admins, so I have to have two instances of auth; how to do this in Laravel, where do I have a client table and another admin table?     
asked on 14.01.2014 / 04:31
1
answer

What are extended functions?

I'm writing an article on programming in Kotlin, I came across this name, what are extended functions?     
asked on 25.10.2017 / 19:58
1
answer

What is the difference of global and nonlocal in Python?

In Python, there are two statements that are used to reference variables external to the local scope: global and nonlocal . What's the difference between the two statements? When to use each?
asked on 27.10.2017 / 23:10
1
answer

Because the practice of "constant parameter" only exists in C

In C, there is the practice of applying the modifier "const" to function parameters when the function is not intended to change the parameter. As in this code: char process_string(const char *str); Because in other languages there is no suc...
asked on 13.03.2014 / 08:04
2
answers

Empty delegate (delegate {})

What does the delegate { } statement return? Would you be an empty delegate? In what situations would it be necessary to create an empty delegate?     
asked on 13.12.2016 / 01:17
2
answers

Which one performs better? For or Foreach + Range?

In the two ways below, which one performs better? For : for( $x=1; $x < 31; $x++ ) echo $x . PHP_EOL; Foreach + range : foreach( range(1,30) as $x ) echo $x . PHP_EOL; I know the difference will proba...
asked on 08.05.2015 / 21:03
3
answers

Is it a good idea to declare variables with accents?

I was taking a look at the PHP Manual on the variables . There I found a snippet of code that left me with the "back foot". $täyte = 'mansikka'; // válido; 'ä' é um caracter ASCII (extendido) 228 I always see in php beginner tutorials t...
asked on 01.09.2015 / 17:57
1
answer

Creating a timer with JAVA

I need a help here, I want to make a timer with JFrame but I can not get it to repeat until I get to zero, and if I leave setRepeats to true I can not make it stop when it reaches zero import java.awt.event.ActionEvent; import java.awt....
asked on 14.02.2014 / 18:19
3
answers

How to do NOT IN SQL?

I want to get all the pilots who have never performed flights on route 12345, already experimented with NOT IN and thus: SELECT pl.id FROM Piloto pl, Voo v, Rota r WHERE pl.id = v.id_comandante AND pl.id = v.id_c...
asked on 25.11.2015 / 15:41
2
answers

Convert a collection of type Set to List

I have a class that has an attribute of type Set, because I want repeated values to be ignored, however I need to return this in List form to fill in a ListView , so what is the best way to implement this feature? Reader.java packag...
asked on 12.08.2015 / 19:52