All Questions

4
answers

Use color, RGB or hexa names?

In this MDN documentation I find a huge list of color names that can be used in CSS with their respective values in hexadecimal. For example: -------------------------------------- | nome em En | nome em Pt | hexa | -----------------...
asked on 11.06.2018 / 19:19
2
answers

What's the difference between: UrlEncode, EscapeUriString, and EscapeDataString

And which of the three is equivalent to encodeURIComponent of JavaScript? String: 'apostrophe' "double quotes" StackOverflow! string teste = "'apĆ³strofo' \"aspas duplas\" StackOverflow!"; HttpUtility.UrlEncode(teste); // %27ap%c3%b3...
asked on 24.07.2014 / 14:19
3
answers

What is Code Smell?

I started to study swift and came across a heavily used term called Code Smell from what I could understand at Wikipedia > and on some other sites it is any symptom in the source code that indicates a deeper problem, eg: duplicat...
asked on 24.11.2015 / 11:46
2
answers

Can I use MIT together with GPL?

There are a number of software licenses around the world, but I have come across a problem that can sometimes even reach the legal level. And that would not be very good for my project. My software is licensed under the MIT license, so far...
asked on 22.12.2014 / 19:46
3
answers

How to compare HTML elements by real z-index?

Given two arbitrary HTML elements A and B on the same page, how can I find which one is "closest" to the user (i.e. if they overlap, which one would obscure the other)? The W3C CSS specification describes "stacking contexts" ( stacking cont...
asked on 22.12.2013 / 21:47
5
answers

How to remove auto complete from google Chrome input?

I want to remove yellow background when auto completion of Google Chrome is enabled. I tried disabling auto complete by applying: autocomplete="off" and I was not successful. The image above is the view in Chrome and the bottom is...
asked on 05.05.2015 / 22:24
2
answers

Result difference between MySql 5.5 and MariaDB 5.5

I have a query running on my site that has Mysql 5.5.43 installed, but when I went up on the server (which has MariaDB 5.5.38 and I only know it now) the query does not return the same result, I would like to know if anyone could t...
asked on 01.07.2015 / 05:49
3
answers

Where to create your own class, and how to instantiate it later?

I have a class of its own (i.e. external to the standard libraries of PHP and Laravel) that makes some connections with equipment of my network and in addition I need to create notifications routines by email and SMS. For reference, this is...
asked on 15.01.2014 / 19:17
2
answers

Why is AddRange much faster than Add?

I'm working on a data integration between two bases, and I'm using Entity Framework for this. I then generated the following code, which iterates each record in the Situations table of base dbExterno and feeds my base db :...
asked on 11.12.2013 / 18:36
2
answers

How to check if a file is in use without throwing C #

I have an application that processes a file queue. I need to open the files for reading and writing. Sometimes the files are in use when I process them. How can I check if the file is in use? Today I deal more or less like this. I cr...
asked on 14.02.2014 / 18:08