All Questions

2
answers

How to access next and previous record with C # using Entity Framework

I'm developing a Windows Form application, with Entity Framework 6 + MySQL. As is common in systems, I have in each form navigation buttons (First Record, Previous Record, Next Record, Last Record) The question: Is there any definite synta...
asked on 02.08.2015 / 02:54
1
answer

When using Interfaces

I always had the following question: When should I really use an interface rather than inheritance and what advantages can I get?     
asked on 08.05.2015 / 06:25
1
answer

How to remove duplicate lines efficiently?

I'm normalizing a table here and found that there are duplicate rows. The way I chose to clean these lines is through: CREATE TABLE tabela_nova AS ( SELECT DISTINCT * FROM tabela_antiga ); The problem this way is that it is very slo...
asked on 10.06.2015 / 01:56
2
answers

NFC-e integration API (electronic consumer invoice) with PHP

Does anyone know of any Electronic Consumer Invoice integration manual for PHP usage? I am developing a system that contains sales control, and I would need to issue an NFC-e, but I do not find any documentation talking about it anywhere.     
asked on 28.07.2015 / 21:06
5
answers

Get content from another page by javascript or jquery

I need to get content from another page inside the site using Javascript, I tried to use ajax, however it gives this error "Cross-origin request blocked: Same Origin Policy prevents reading of the remote resource in < (Reason: CORS 'Access-Contr...
asked on 12.06.2015 / 19:57
5
answers

Do not open keyboard automatically when you enter screen with EditText

I have a screen with a EditText ai whenever I enter it already open the keyboard. I wanted to just open the keyboard when I clicked on it. I tried this but the keyboard is not opening at all: mItemDescriptionTextView.setFocusable(fal...
asked on 13.08.2015 / 00:24
3
answers

How to measure the complexity of an algorithm?

Hello everyone. I need to know if my algorithm meets the demand of the following statement: "Implement an algorithm with complexity O (n) that realizes the factorial of a number x such that x belongs to the Natural." #include <stdio.h> /...
asked on 20.02.2016 / 17:57
3
answers

Transform jQuery code into JavaScript

I have a problem similar to this: Insert text - Stack But in my case I need the code in pure JavaScript and I have no idea (rookie in web prog) of how to change the jQuery they gave in response. jQuery: $('.botao_add').click(function()...
asked on 08.08.2014 / 14:34
2
answers

Join two tables with PHP

I have two tables in the database, one listing the posts made and the other one of the registered users. Columns that I have in the posts table: ID || TEXTO || ID_USER || Columns that I have in the user table: ID || NOME_USER || SENHA...
asked on 31.08.2014 / 07:31
1
answer

Finding Unknown Heroes in Stack Overflow using Data Explorer

I know there are no Unknown Hero here in SOPT, but I know there are several not SOEN. My intention is to rank the percentage of votes accepted without the votes of the people holding this medal. And so I tried to create a SQL for Data Explore...
asked on 18.08.2014 / 23:12