All Questions

3
answers

What is the correct way to remove the border with CSS?

To remove borders in CSS I usually use one of two values: .exemplo{ border:0; /* ou */ border:none; } The funny thing is that both work, and this happens with other properties like outline , but which of the two properties...
asked on 09.06.2014 / 19:52
2
answers

Returning direct and array function string

What works: void *teste(); int main () { printf("\nRESULTADO: %s\n", teste()); return 0; } void *teste(){ return "Ponteiro"; } What goes wrong: void *teste(); int main () { printf("\nRESULTADO: %s\n", teste()); retu...
asked on 03.11.2017 / 15:11
3
answers

Hover effect in JS

I have a problem that is as follows: I want the user to move the mouse on a certain image to another location and gain a class so that I can style it, can they help me? I'm trying this way: var $JQuery2 = jQuery.noConflict() $JQuery2(functi...
asked on 11.01.2018 / 18:44
2
answers

Doubt - SaveChanges does not work, only returns 0

Follow the code below: using (var db = new Entities()) { var result = db. Tabela1 .Where(x => x.Id == 1) .Select(x => new SuaClasse { Coluna1 = x.Coluna1, }) .FirstOrDefault...
asked on 30.10.2017 / 23:45
3
answers

How to declare a constant in Ruby?

How to declare a constant in Ruby? In other languages I do something like: const CONSTANTE = 1024 And CONSTANTE can not be changed at run time. But I do not think anything like it in Ruby.     
asked on 13.11.2017 / 15:21
2
answers

How to make a "LIKE" in a DJANGO ORM query?

To make a query to get the data exactly in Django, I use filter , like this: usuarios = Usuarios.objects.filter(nome='Jonh') This will generate a SQL similar to: SELECT * FROM usuarios wHERE nome = 'Jonh' Since I've been using Dj...
asked on 15.02.2018 / 14:03
3
answers

How would that code be in JQuery in pure JS?

This code snippet is to activate the .nav class but in JS there are some options like: classList.toggle('active-nav') But what about to disable when you click pure JS again? follow script with Jquery! $(document).ready(function(){ $(...
asked on 01.11.2017 / 16:05
2
answers

Column 'XXX' in field list is ambiguous

I'm having trouble executing the following Query: SELECT product_id, presentation FROM Variant INNER JOIN productCategory ON product_id = product_id LIMIT 10; Error: ERROR 1052 (23000): Column 'product_id' in field list is am...
asked on 12.12.2017 / 19:47
1
answer

Configure ng-bootstrap DatePicker for PT-Br

I'm using a Ng-Bootstrap DatePicker with Angular 2 and I want to put the date format (YYYY / MM / DD) into the format (DD / MM / YYYY) I also need to change the days and months of the calendar to Portuguese. Any ideas how to do this?...
asked on 27.10.2017 / 18:07
1
answer

Optimistic Lock; Why not throw an exception?

I tried to simulate an optimistic Lock situation where you try to update the same record twice, but the exception is not triggered. I think it's interesting that even after changing the value of the holder and giving a MERGE, the version valu...
asked on 28.02.2017 / 21:25