All Questions

3
answers

How to find "Happy Numbers" within a range?

I'm making an application where I need to find Happy Numbers within a certain range, in the case of 0 to 50, and found this in Wikipedia :    Happy numbers are defined by the following procedure.   Starting with any positive integer, the...
asked on 14.03.2018 / 01:13
3
answers

What are "code units"?

I want to know what code units mean? I saw this term in an answer here in SOpt and I was in doubt.    Code units should be short and have only one responsibility. Question link where I saw the term > > What defines clean code ?...
asked on 28.06.2017 / 18:59
5
answers

How to separate "words" in CamelCase in C #?

How can I separate "words" into CamelCase using hyphen for example? With a string: string example = "CamelCase"; // CamelCase para: // Camel-Case and enumerator: enum Example { CamelCase } Example.CamelCase.ToString(); // CamelC...
asked on 24.02.2018 / 15:37
5
answers

Is it possible to program for web with Lua?

I see many tutorials on the internet that assimilate the use of language Lua to game development. But I would like to know the following: Is it possible to develop for web using language Lua ? Is there a framework that c...
asked on 10.12.2015 / 19:50
4
answers

Is it recommended to use a natural primary key?

Natural primary key is one that contains a real data, not just a random value, as an integer. Example: // comum CREATE TABLE pessoas ( id INTEGER PRIMARY KEY, cpf INTEGER NOT NULL, // outros campos ); // chave natural CREATE TABLE pe...
asked on 11.08.2014 / 15:26
1
answer

What is the difference between = and = in Java?

Reading a book about the Java language, I came across some operators that I had never seen before. They are: >> , << , >>= , <<= , >>> , <<< , >>>= and...
asked on 27.03.2017 / 01:53
5
answers

How to dim the blue light on a website?

I'm developing a website, and I would like to dim the blue light (as night mode), however, I have not found a way to do that. Is there a way for CSS, JS, or some other language?     
asked on 11.10.2017 / 09:09
4
answers

How to make this arrow in CSS

I have this following arrow in a layout, but I do not want to make an image but only with CSS. How do I do? do I have to use borders?     
asked on 24.11.2014 / 11:47
6
answers

How to remove a "href" from a tag with JQuery / JavaScript?

I have a <a> tag with hyperlink properly set. However, I would like to remove it when firing from an event. The same tag has an ID set properly, also (unique, valid, and related). I would like to know if there is a function to re...
asked on 05.02.2014 / 19:57
3
answers

How to check if you have connected to the database?

How do I check if my PHP + PDO code successfully connected to the MySQL database? With the code it works: <?php /* Connect to a MySQL database using driver invocation */ $dsn = 'mysql:host=localhost;port=3306;dbname=bancoservico'; $us...
asked on 24.09.2016 / 20:14