All Questions

2
answers

How to make code that uses string properties readable?

I have a string that uses parts of another String, how to make this code "cleaner"? Since it is very difficult to understand. String sessionHash = dirPath.substring(dirPath.substring(0, dirPath.length() - 1).lastIndexOf("/"));    sessionHas...
asked on 17.03.2015 / 19:48
4
answers

How to check if a String completes another?

I would like to know if there is any function or operator that can check if a String looks like another in javascript for example: var str1 = "joao foi ao mercado"; var str2 = "joao fo"; What I need is to compare the first with the second o...
asked on 14.08.2017 / 20:55
2
answers

StreamWriter Class

My idea is to create a system to insert new employees through the CadastrarFuncionario() method, putting the properties of the class ( ID, nome, CPF ) inside a file named officials.txt. With the logic used by me, the values are i...
asked on 02.08.2017 / 15:40
2
answers

Serve libraries with CDN or own server?

For performance purposes it is more performative to use a CDN (which provides the full and primary version of the library) or distribute versions of Custom Libraries (ex: jQuery UI which provides only the accordion effect). I...
asked on 28.05.2015 / 15:57
5
answers

How to select with Regular Expression a full xml / html tag even though there are equal tags internally?

I'm trying to do the following treatment in a string in javascript using ER (Regular Expression): With this input: um <b>negrito<b>negrito interno</b>externo</b> aqui <b>negrito</b> <i>italico</...
asked on 12.06.2015 / 14:48
2
answers

What is the difference between Encoding, Encryption and Hashing?

I would like to understand the difference between Encoding , Encryption and Hashing and also examples of when using one or the other.     
asked on 27.05.2015 / 17:49
2
answers

-ms-flexbox and flexbox do not work in Internet Explorer

I'm having trouble identifying what I should do to fix this error - I recently used CSS Progress Wizard , it works perfectly in google chrome and other browsers: ButwhenIlookatinternetexplorer9,ithassomeerrors: Here is the code for CSS...
asked on 17.06.2015 / 17:49
3
answers

Is it possible to back up a remote bd sql server via C #?

I am using the Microsoft.SqlServer.Management.Smo assembly to back up a Sql Server database in C #. The problem is that in the way it is implemented I can only perform the action if I am running the application on the same database server. Wo...
asked on 14.04.2015 / 14:41
2
answers

What are the differences between __autoload and spl_autoload_register?

In php, we have two methods of doing autoload of classes: function __autoload Example: function __autoload($class_name) { require_once $class_name . '.php'; } $obj = new MyClass1(); $obj2 = new MyClass2(); function spl_au...
asked on 16.07.2015 / 17:29
3
answers

What's the difference between these 2 PHP codes?

I'm studying PHP and I came across the following question: what would be the difference between the following codes: <?php class ClasseTeste { protected $db_host = 'localhost'; protected $db_user = 'root'; protected $db_pass = '...
asked on 14.05.2015 / 17:05