All Questions

1
answer

What is the hash generation algorithm that Laravel uses?

By default Laravel already comes with a pre-ready authentication system, however, someone would know to tell me what the default algorithm this framework uses for hash and what version thereof?     
asked on 01.03.2017 / 14:04
2
answers

Hiperfatorial in C by recursion

I'm trying to make a program with a recursive function to return a hyper-factor from a number in C, but the only value the function returns is 1. Where am I going wrong? #include <math.h> #include <stdio.h> #include <stdlib.h>...
asked on 16.11.2017 / 19:24
2
answers

How can I optimize my access to the Python dictionary?

I have a dictionary of the following form: dicionario = {'1':'Banana','7':'Maçã','3':'Pera','2':'Melancia'} If I check the '2' key in the dictionary: if '2' in dicionario: . My programmer's intuition tells me that the c...
asked on 24.01.2018 / 18:17
1
answer

Can I call a method when the application is closed?

What happens when the user closes the application without calling a pre-defined method in the app, what I mean is when it removes the app from the list of active applications. What happens at the moment?     
asked on 20.03.2017 / 04:08
2
answers

Simple quotes are allowed in JSON?

Can I represent a JSON object in this way? { 'helloWorld': true }     
asked on 10.03.2017 / 18:51
1
answer

Check if all items in a string are different?

How can I check if all items in a string are different? For example: x:"abcdefga" = False y:"abcdefg" = True Since x[0] == x[7] , then it would be False . But in this case I would use this condition in if . Is th...
asked on 02.05.2017 / 01:37
4
answers

month / year SELECT in DATES

I need the select to return all rows that were entered in July 2010, as shown in the example, regardless of the day. How do I return this query? SELECT * FROM FRCAST WHERE DATA_ID = TO_CHAR('07-2010', 'mm-yyyy');     
asked on 17.03.2017 / 18:10
1
answer

Function in MySQL to return text according to numeric index

I have a table named tb_usuarios with columns id_usuario nome email telefone tipo_de_acesso I would like to create a function in MySQL, where when using echo $row['tipo_de_acesso'] , the correct type already exists, but in text...
asked on 10.04.2017 / 21:11
2
answers

Swift 3 / Xcode 8 - How to change the native language of my App?

I'm finalizing an application and I could not help noticing that some components of my app are in English: How to change the native language of the app? How to make it change automatically according to the language of my device?    ...
asked on 17.03.2017 / 23:08
2
answers

How to check if a directory exists, if there is a prompt to enter a new directory? I'm using innosetup to create an installer

I need to check if the C: \ SISAUTO, C: \ BASESISAUTO folder exists. If there are folders, create a new one for example C: \ SISAUTO2, C: \ BASESISAUTO2 Follow the code below. ; Script generated by the Inno Setup Script Wizard. ; SEE THE DO...
asked on 28.02.2017 / 15:41