All Questions

3
answers

Store values representing a user's 'sex' in databases

I have some doubts about the representation of some fields in the database. How do I store fields as "sex" in tables in the database? In the literal form "masculine" and "feminine" or through numbers that represent each sex as "1" and "2", respe...
asked on 08.04.2015 / 14:04
1
answer

How does the $ .when () and the .then () aligned

In my studies of javascript with Jquery framework , I have come across several times with $.when() and .then() aligned. I wonder how they work together. an example that I came across was the code below. $.when(loadView, setData)...
asked on 25.08.2015 / 01:18
2
answers

How to create a single method to handle errors with ajax

I have a web app that runs several ajax calls . My faculty professor challenged me to create a generic message and unite the entire error handling in a single function. Can anybody help me ? function getShoes() { $.get( "/Shoes/List", fu...
asked on 04.09.2015 / 04:45
1
answer

Difference in use Unique and Unique Constraint index in Informix?

I would like to know what behavior / differences between a Unique Index and Unique Constraints for Informix ?     
asked on 21.12.2013 / 21:39
1
answer

What is CultureInfo.InvariantCulture?

I have installed Resharper and in this section x.Id.ToString() it suggests changing to x.Id.ToString(CultureInfo.InvariantCulture) . What is CultureInfo.InvariantCulture and why is it better?     
asked on 06.10.2015 / 20:03
2
answers

BIT (1) versus TINYINT (1) for Boolean values

I may be wrong, but I get the impression that, in practice, the default in MySQL is to use columns of type TINYINT(1) to store boolean values, true / false or 0 / 1 . Only TINYINT accommodates up to 1 byt...
asked on 18.01.2016 / 13:33
1
answer

SSL socket dying on the client and no errors on the server

I have a problem with connections to ssl sockets in python When I perform a stress test on the SMTP daemon that I am writing the client some sending threads die with " Connection reset by peer ", but server side does not there is no exceptio...
asked on 20.02.2014 / 19:03
1
answer

Desktop development with Electron

With the growth of web many people have abandoned desktop development, but some interesting technologies have come out, such as Electron :    Electron lets you create desktop applications with pure JavaScript through   of a runtime wi...
asked on 04.11.2015 / 16:27
2
answers

Using methods from a DLL

I'm having to use methods from a DLL that was developed by third parties. I have only the ".DLL" file. The DLL documentation is scarce ... there is an example of executing the method I need in VB Private Const TamMsgErro As Long = 1000 Dim...
asked on 20.02.2014 / 19:49
1
answer

What is the advantage of using the ENUM type?

When I use type ENUM because until today where I saw this type being used it could be replaced with VARCHAR or even with a simple CHAR , I can not see a case where it really is needed ? A practical example would be useful.  ...
asked on 21.08.2015 / 13:01