All Questions

2
answers

What is the difference between an empty string and NULL in SQL?

What's the difference if you store a string as NULL or empty in SQL? How can these two behave when I make a SELECT , or INSERT with value '' in that column that is of type varchar ? If I leave the de...
asked on 13.01.2017 / 15:58
1
answer

How do you know if a dot (x, y) is within the filled percentage of a pie chart?

I came up with this code that shows whether a point (x, y) is inside or outside a circle on a Cartesian plane. def dentro_fora(p, x = 0, y = 0): r = cx = cy = 50 if (x - cx)**2 + (y - cy)**2 < r**2: return 'dentro' els...
asked on 07.01.2017 / 16:55
2
answers

How to comment code block in JSX (React)

I want to know if it's possible to comment a block of code inside the render () method in React, I've tried all the ways I know and none of them worked. render() { return ( <div className="Events"> <div className="Ev...
asked on 21.11.2016 / 13:43
3
answers

What happens in the expression "$ a +++ (++ $ a)"?

I was joking with PHP to see if I could find something that sounded strange with the syntax, inspiring me in the question What happens in 1 ... 1 in PHP? . I ended up with the code: $a = 0; $a+++(++$a) The above "joke" returned 2...
asked on 05.08.2017 / 21:14
3
answers

Typecast of malloc is recommended?

I have already read that it is not recommended to do typecast of malloc when allocating memory for a new pointer variable, and a lot of sites and books teach this practice in memory allocation, left with some doubts. Why is it not r...
asked on 13.04.2016 / 20:43
2
answers

Word hunter can not find the word

Well, I'm trying to make a hunting game in java, but I can not find the word, can anyone help? Follow the code: import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.Scanner; public class...
asked on 15.04.2015 / 21:18
4
answers

How to make a Hello World in ASP.NET MVC?

I already program but I'm starting with C # and ASP.NET MVC. I wanted to make a Hello World program and add things gradually as I always did with any language I've learned. I thought creating a project in Visual Studio would create a Hello...
asked on 29.12.2014 / 17:44
4
answers

Function within another

In JavaScript, I can structure my code well by putting auxiliary functions inside other functions. For example: Can I get something similar in C #? If not, how do you do not leave the auxiliary functions "loose" in the project? function Sal...
asked on 29.09.2015 / 16:54
3
answers

How to put icon inside input using Awesome Font?

I'm trying to do a search field with an icon using Awesome Font, I want it to look like this: Butitlookslikethis: What is the best way to put button within input ? HTML : <form> <input type="search" /> <bu...
asked on 20.10.2014 / 02:53
3
answers

CSS DIV diagonal

I recently received a layout to develop, in which I have a specific aside that I can not do, I need a div that is tilted, as in the example, the more that the text flows normally, the text is not turned over in case of using transform. Anyon...
asked on 24.01.2015 / 18:21