All Questions

2
answers

How to perform an action before 'mousedown' in javascript / jquery?

My intention in the end is to transform a 'mousedown' into a 'ctrl + mousedown'. But I can only activate 'ctrl' after the mousedown has been processed. Example: $(document).ready(function(){ $('#CC option').on('mousedown', function(even...
asked on 13.03.2014 / 22:42
1
answer

In DevTools is there any way to capture the entire screen of the site, even if it has scroll?

I'm not looking for Chorme extension or screen capture code etc. I just want to know if this developer tool has any such native options. I know that if you open DevTools of Chrome and press Ctrl + Shift + C and make a selection on...
asked on 14.12.2018 / 12:24
1
answer

Add sequence of numbers in Javascript

Suppose the user types the value 40391, so I need to incrementally add all values from 1 to 40390, which results in the value 815696245. Today I do this with a simple for but I realized that the performance is not the best ... Is there...
asked on 02.09.2018 / 01:31
1
answer

What does T mean in .NET?

I'm working on a project and I saw a lot of code like this public class ExemploCollection<T> { ... } And I do not understand what this <T> means. What's the name of it, what do I look for? How does this work? What does...
asked on 22.12.2013 / 00:24
2
answers

Why use Bytes instead of using Image? What is the best practice?

I'd like to know why to use the data type Bytes instead of using Image itself. If the SQL Server database has the Image data type, then it should be easier and more convenient to insert it in Image right mode? I would lik...
asked on 10.02.2014 / 19:25
1
answer

"#define" defines a global variable?

I have always used some define s, but now this question has arisen, when I use #define am I creating a global variable? Are there any losses in this usage? Example: Make program to read 10 numbers: I put% with% amount 10 and...
asked on 30.11.2018 / 22:52
1
answer

What are the best practices for working with Legacy Database in Django?

I have a legacy database and would like to know what good practices for naming tables, or tips on how to use inflections (as in Rails) for Django in the latest version.     
asked on 21.01.2014 / 18:34
3
answers

Select months even without records

I need to select the data stored in the database and separate them by month, but when the month does not have data yet, the month is not returned. I need the month to be returned with the value zero but to bring the month anyway. My Query...
asked on 22.11.2018 / 18:07
4
answers

CSS transitions in expandable menu

Having an expandable menu how to use the CSS transition to open / close at the same time the part that is open and the part you are closing? The problem does not arise if the menus are the same size (example) , but when the size is diff...
asked on 11.12.2013 / 20:01
1
answer

How to produce JSON in the format that Highcharts expects?

I have the following code in C #: Dictionary<string, object> dataResult = new Dictionary<string, object>(); dataResult["data"] = new List<object[]>(); dataResult["name"] = i; foreach (var item in query) { object[] values...
asked on 15.02.2014 / 13:57