All Questions

3
answers

Error Segmentation fault (core dumped)

I'm getting the following error message in my code:    Segmentation fault (core dumped) Another thing is that when I performed the same operation as preenche on main , using ficha.name instead of dados , the syst...
asked on 01.03.2015 / 23:59
1
answer

Accessing MySQL with C #

I am creating a simple Form that has 3 TextBoxes and 3 buttons and I want to save the information entered in Textboxes in a table. I have already created querys all within a class acessoBD , but I can not acc...
asked on 24.09.2015 / 03:00
2
answers

Where to put Data Annotation? View Model or Model?

Using Entity Framework Code First, with view model and model . To create a column with varchar(2) , I need to put MaxLength(2) in model and view model ?     
asked on 28.08.2015 / 21:32
1
answer

Differences between Natural Join and Inner Join

What characteristics differentiate a query performed using Natural Join from another with the use of Inner Join ? Is there any performance related question or any other condition that leads me to choose one over the other? For th...
asked on 21.03.2015 / 15:53
3
answers

How to get the key pressed?

I'm breaking my head to create a function that returns the code of the key pressed. I found this: function inicializa(){ document.addEventListener('keydown', pegaTecla); } function pegaTecla(){ var tecla = event.keyCode; alert(tecla);...
asked on 16.02.2015 / 04:58
1
answer

Why do DBMSs use their own paging if the operating system already has one?

I'm studying database and I ended up getting to the subject of replacing pages like LRU and MRU. The operating system already does this normally, why does the DB need to do its own paging?     
asked on 15.11.2015 / 06:55
2
answers

Which IDE is supported by PHP 7?

Does anyone know of any IDE (or simpler code editor) with PHP 7 support? I use NetBeans, but it looks like PHP 7 support on it may be added in future releases, but that's still unclear. I'm looking for an IDE or code editor that has PHP 7...
asked on 08.02.2016 / 20:42
2
answers

Is it correct to concatenate PHP in JavaScript?

I often use this method, but I do not know if it is appropriate, to redeem the id in JS I use echo php <script type="text/javascript" src ="js/jquery.js"></ script> <script type ="text/javascript"> $("document").ready(functi...
asked on 09.01.2016 / 15:24
2
answers

Is it possible to name a parameter when the function is called?

Can I "access" a specific parameter of a JavasScript function, ie give a value for a given parameter? As an example is better than text (since I can not explain myself right), here's one: In Python, having a function: def funcX(A="A",B="B",...
asked on 28.01.2015 / 15:36
4
answers

How to check if the properties of the window object are native?

I'm using shim that modifies several of the properties in the browsers window object. At this point I need to validate if one of the specific properties is native or a shim. Because shim can modify the native property. For example: (fu...
asked on 06.03.2014 / 15:50