All Questions

2
answers

Read the entire contents of a text file

I need to read the entire contents of a text file and put it in a string . Generally, I do this: using(var reader = new StreamReader("arquivo.txt")) { var strBuilder = new StringBuilder(); while (objReader.ReadLine() != null)...
asked on 15.10.2015 / 19:22
3
answers

Difference between '$ ()' and 'jQuery ()'

It is common to see, in codes that use jQuery, references to selectors using $() . But I've already found codes using jQuery() to make selection queries . What's the difference between them? Can I use either one or have specific...
asked on 10.04.2017 / 14:51
3
answers

MemoryStream vs Stream

What would be the main difference between the two? Are there any advantages to performance gain? For web use, which one is the right one? I am using to "read" an array Byte[] : private void bytetoStrem(byte[] pdf) { Stream...
asked on 05.08.2017 / 15:39
3
answers

How to calculate the difference between the server time and the user's computer?

I need to adapt my code to calculate the difference between the time of the server where the site is hosted and the time of the user's computer to not overload my system. I am setting up a table where I will show the time of another server an...
asked on 09.11.2017 / 21:30
2
answers

Insert with accents in Oracle

When I make a INSERT for example: INSERT INTO TESTE (NOME) VALUES ('INSCRIÇÃO ESTADUAL'); You're saving to the table this way:    STATE ENROLLMENT And the screen displays "INSCRIÃÃO ESTADUAL" . I am using Oracle...
asked on 15.06.2015 / 19:26
2
answers

Documentation in software development

I would like to ask my question based on in this question about tests. There are different ways to document software, the ones I noticed most are: Class documentation (the developer comments on the purpose and / or task of that class)...
asked on 23.10.2015 / 15:24
3
answers

Is it a bad practice to put numbers as id in HTML elements? If so, why?

I have a loop printing HTML elements, for example: for($i = 0; $i < 3; $i++){ echo "<div id='$i'>$i</div>"; } Is it a bad practice to put numbers as id in HTML elements? If so, why?     
asked on 08.11.2017 / 12:31
5
answers

How do I mark and unmark a row in a table by clicking on it?

When you click on a line in a table, how to mark it by changing the background color of the line, and if you click again uncheck the background, and if you click on another line, deselect the old one and mark the new one. How to do this using...
asked on 19.02.2014 / 20:52
1
answer

Can you use two types of payment methods in a paid-for transaction?

For example, I want to sell a product that includes membership and monthly payment, R $ X, XX + R $ X, XX automatic debit. Example of automatic debit: $preapproval_data = array( "payer_email" => "[email protected]", "back...
asked on 29.09.2015 / 20:47
1
answer

Is it possible to integrate SVN with my task control tool?

I have a development environment with an SVN server running with VisualSVN and terminals with TortoiseSVN. In this same environment I have a task control system, done in Delphi, in which the tasks are assigned to the developers. Once a task i...
asked on 24.01.2014 / 14:54