All Questions

2
answers

Generate unique color for each result

So .. I have a system of comments anonymously in a project of mine that in place of the avatar it puts the abbreviation of the name of the person, for example: Vinicius Eduardo -> VE and I want to create a system or function that generat...
asked on 19.06.2014 / 03:28
2
answers

What is the real meaning of using ε-transitions in the NFA?

Well, I still do not understand the logic of using ε-transitions in the NFA, what's the real meaning? Skip status without reading? For example, given the regex: a* NFA: DFA:
asked on 19.07.2014 / 02:58
2
answers

Yield return within a using

Consider the following situation: public class MeuRecursoBemCaro : IDisposable { public T FazerOperacaoBemCara(T item) { //Do operação } public void Dispose() { //Dispose logi...
asked on 22.05.2014 / 20:43
2
answers

Alternatives to developing VBA in Office

At work I have a large code base written in VBA (about 13 active projects) for both Access and Excel applications. I have been trying to refactor some things, but several factors are making my work difficult, like: The IDE that comes with...
asked on 17.10.2014 / 15:26
1
answer

How to sort an array of numbers from largest to smallest?

The sort function exists, but it sorts from the smallest to the largest, and I'd like to sort from highest to lowest. Is there any function in javascript for this? Code with sort : var numeros = [200,100,400,900,600,700]; numer...
asked on 15.06.2014 / 16:37
1
answer

How to read folder and subfolder files?

I have a function to read the files from the folder, and it is not working. I need a functional function that reads files from folders and subfolders. Here is the code: FolderBrowserDialog fbd = new FolderBrowserDialog(); DialogRes...
asked on 05.09.2014 / 19:31
1
answer

PHP says that two equal strings have different lengths

I'm trying to compare two strings, but something unusual happens. I have the code: <?php $char = 'Á'; var_dump('Á'); var_dump($char); The variable $char receives 'Á' and the result is as follows. string 'Ã' (length=2)...
asked on 21.07.2014 / 10:08
1
answer

Count characters string

I am counting the characters of a string in PHP. The content of the string is: 10,12,12,22,33. I want to scroll to print one by one and with a "\ n". The problem is that I use strlen, and it counts all the characters including the commas. I want...
asked on 17.12.2014 / 11:46
3
answers

User Authentication with Laravel 4

I'm starting to authenticate users with Laravel 4 as a basis for this link . My doubt and the next, every route, I have to use this way? Route::get('/', array('before' => 'auth'), 'HomeController@index'); I mean, do I have to ent...
asked on 03.07.2014 / 16:52
2
answers

How to run a PHP application in IIS?

I have a website in PHP that I want to install on IIS (Apache for Windows is not an option). It will not run naturally as a .NET application. So I've already downloaded a PHP release on link , but I still have to configure IIS to interpret...
asked on 23.06.2014 / 18:48