All Questions

2
answers

Dynamic allocation and runtime of functions

When we use some of the C dynamic allocation functions (malloc, calloc, realloc etc) inside a function that is called by main, will the memory remain allocated at the end of the execution of this function or will it automatically be deallocated?...
asked on 17.09.2015 / 15:50
2
answers

Get select selected (only getting first value)

An alert is displayed (with the sweetalert plugin) and in this alert has a select with names. After selecting the name, the person has to click the Add button, when the person clicks the function of the code below is executed and...
asked on 01.11.2015 / 02:29
3
answers

How to create mandatory exceptions in C #?

Is there any way to make a method throw an exception that should be handled when the method is invoked? I used throw new Exception("mensagem de erro") but the treatment is still optional when invoking the method.     
asked on 06.08.2015 / 02:33
2
answers

Difference of performance and situation of use of numerical types

I would like to know the difference between Long , Double , Float , Decimal and Int types, taking into consideration when it is best used in real cases. Ex: "use float in interest as it is ..." . And also the dif...
asked on 13.03.2014 / 15:23
4
answers

How do I put a Python module in a folder other than my script?

I am trying to run a script in Python ( v2.4 and v2.7 ) and created a module with some methods. Unfortunately this module needs to be in a separate folder. At Python documentation and up to here in Stack Overflow I found numerous post tal...
asked on 25.04.2014 / 22:11
1
answer

Problem with .Include () in the Entity Framework (Postgres)

I've been having a problem with EntityFramework, it's the following: When I use the ORM (.Include) string to join tables to foreign keys, it automatically renames the keys in the string automatically generated by it and ends up not finding it...
asked on 19.10.2015 / 17:11
3
answers

How to leave vertically self-adjusting DIVs?

I'm having trouble trying to leave some% s of self-tuning% s vertically. Thereisspacerequiredforthedivtobeexactlybelowtheoneaboveit,butitdoesnotrise,thereisanemptyspacebetweenthetwo.(i.e. Example in JSFiddle     
asked on 06.07.2014 / 22:21
1
answer

Meaning of (void *)

What does it mean to call a function with one that was int and is passed as (void *) ? If the variable was declared as int because it is passed as a parameter to a *(void *)variavel* function? Example int var =...
asked on 20.05.2014 / 21:26
3
answers

Login system

I made a site where I have implemented this file that belongs to the login but it does not work for me <script type="text/javascript"> function loginsuccessufully(){ setTimeout("window.location='backoffice/view.php'", 3000); } fun...
asked on 24.04.2014 / 15:45
1
answer

Convert date dd / mm / yyyy to yyyy-mm-dd'T'HH: mm: ss

How do I convert a date in the format dd / mm / yyyy to the format supported by sqlite yyyy-MM-dd'T'HH: mm: ss Example: public static String converteStringEmData(String stringData) throws ParseException { SimpleDateFormat sdf = new S...
asked on 11.07.2014 / 20:07