All Questions

1
answer

What are the differences between properties and attributes in HTML?

When attempting to use this code: $(document).ready(function(){ $("#selectAllBoxes").on("click", function(){ if(this.checked){ $('.checkBoxes').each(function(){ $(this).attr("checked", true); }...
asked on 27.05.2017 / 05:58
1
answer

How to create a monolithic executable from the .NET application?

I would not like to deploy the application full of DLL, I wanted something simple, without installer, I wanted to generate a single executable file, but .NET is all based on DLL. Can you generate a single executable?     
asked on 27.03.2017 / 14:04
2
answers

Best practice for client to choose response format (JSON / XML)

I would like to know the best coding practice that allows the client to define the response format for the request he made, which can also include filters, conditions, ordering, etc. I made a small template for the answer, I do not know if it...
asked on 16.01.2017 / 14:59
1
answer

Regular expression to change the pair of variables in mysql in PHP file

What expression can I use to be able to change MYSQL function parameters, eg: mysql_query($query,$db); mysql_query($db,$query); Because I search for mysql_query and change to mysqli_query after I can make that change. That is, replace t...
asked on 27.06.2017 / 17:24
1
answer

Refresh in WebView when rotating device

I created my application via WebView , but when I rotate the screen the site gives refresh , that is back to login , my code: MainActivity: package com.sirseni.simpleandroidwebviewexample; import android.app.Activity; im...
asked on 05.06.2017 / 18:21
1
answer

What is a page fault?

I was reading the answer of the bigown user regarding overlay and memory management. He cited the page fault that can occur when a program is running. However, this term page fault gave me some doubts. Questions What is a page fault?...
asked on 24.05.2017 / 19:01
1
answer

Why do not the constants in the File class follow the constants convention?

The convention for constants in Java says that a constant must be declared with uppercase letters and the words should be separated by underscore (_). The declaration of a constant is done by the sequence of the keywords static and...
asked on 10.07.2017 / 14:51
2
answers

Convert and save photo in BD

I'm working on a project where I have to save some photos. So I'm looking at the best way to accomplish the task. I thought of saving to the database, because these photos will be accessed both locally (WinForms application) and via internet...
asked on 08.05.2017 / 00:38
1
answer

Random always returning the same number

I have a method whose function is to return 25 random numbers in a list: static List<int> criarList() { List<int> lista = new List<int>(); for (int i = 0; i < 25; i++) { lista.Add(new Random().Next(0, 1...
asked on 28.10.2017 / 21:06
2
answers

How does Facebook write colorfully in the browser's console?

I need to do something like the image below: You can see it when you enter the browser console by accessing any Facebook page. I tried to insert HTML into the console.log() function, but it was in vain. Any tips?     
asked on 30.11.2017 / 21:56