Interesting questions
-
3
votes1
answer223
viewsOverride Property() in Child Class
A few days ago I asked a similar question to this, however, the method employed in creating the property was via decorators (@property and @name.setter). Here I am creating the property via function…
-
5
votes2
answers8376
viewsConvert a positive decimal number into negative
I have the following query: Valor1 = '200.000,00'; select Valor1 from TB1 Is there any function that converts a positive number to negative?
-
1
votes1
answer118
viewsHow to create a method that takes only one string and returns a generic type? . NET MVC
How could I create a method that doesn’t need to receive a type as a parameter, just a string, but would return a type? For example: public static T Guard(string guard_name) where T : class, IAuth {…
-
5
votes3
answers583
viewsHow to recover a product id by clicking on listview opening another Activity
I am making an application for product consultation using a Webservice. I do a search in WS and bring the product information I need. Then I pass this information to a Adapter create a ListView and…
-
11
votes3
answers3031
viewsWhat better way to create an app that works offline and automatically encrypt data with a server?
I’m deepening into the world Mobile, where I had the first challenge, which is to create a App Android basic registration, name, age, etc. The tricky (at least for me) is that I have to update this…
-
3
votes2
answers8342
viewsQuotation marks inside quotation marks and again inside other quotation marks?
I have a string variable called [Content] and I want to assign it the tag of a button that calls a javascript. I’m trying this way: Conteudo = "<input id='btnOculta_" + lin + "' type='button'…
-
0
votes1
answer67
viewsHow do Overload the assignment operator into a class that contains vector?
I would like to do the allocation operator’s Overload (operator=), I know I have to reserve memory, and copy data from one to the other, however I do not know how to copy one vector to the other…
-
0
votes1
answer32
viewsErrortext conditional does not work
I’m trying to use a validation on Textfield, I tried it as Textformfield too, but without success! I would like that when typing or pressing the Confirm button, the error message appears or not in…
-
1
votes2
answers568
viewsJavascript-enabled checkbox for controller
I have a group of checkboxes that are generated from the BD, therefore their id will be different. In my case 3 checkboxes are generated: HTML: <input type="checkbox" id="[email protected]()"…
-
2
votes1
answer368
viewsAndroid theme support (Themes) in custom components, using Appcompat-v7
I started using the Appcompat-v7, for use the concept of Material Design in my project. Only now I realized that my custom components even inherited from native components, are not applying the…
android android-layout android-styles app-compat-v7asked 11 years, 3 months ago Fernando Leal 9,770 -
1
votes2
answers41
viewsDoubts with this function
I have this code in javascript and want to ask some questions: HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"…
-
1
votes1
answer51
viewsLaravel query returns "wrong" result
I have a table called "tabela_precos", with the following structure: categoria_veiculo_id | valor | preco_min | preco_max | tipo_veiculo 22 77,70 0 2500 carros 22 30,35 15000 20000 carros When I run…
-
-1
votes1
answer36
viewsQuote an array - Jquery
I need to put inside each element of my array, simple quotes. In the code below, I check which checkbox is selected, and insert in my array. var checkbox =…
-
1
votes1
answer47
viewsAccess and list files on an FTP server
Hello, I would like to access and list folder/PDF’s files on an FTP server using an App, I use fragment and the version of Android and 4 until the current 9. What I researched so far I could not…
-
1
votes2
answers548
viewsJquery Append does not work
Galera I am making a load on demand use a button that the user click on it loads the data 2 in 2, these data come from the database, but in this code I will post below does not work when I put the .…
-
1
votes1
answer163
viewsValidate a text with regex
I have the following code: final String msgRegex = "Produto [a-Z0-9À-ú, ]*"; final String msg = "Produto Soja"; if (msg.equals(msgRegex)) { System.out.println("Verdadeiro"); } else {…
-
0
votes1
answer99
viewsProblems with executescalar (System.Data.Sqlclient.Sqlexception)
I have the following block of code: sqlConn.Open(); SqlCommand inserirAluno = new SqlCommand("INSERT INTO ALUNOS (Nome, DataNascimento, CPF, Endereco, Bairro, " + "CEP, Cidade, IdEstado, Sexo)…
-
1
votes4
answers1103
viewsSELECT with two results
Table: PEOPLE id - nome 1 - BEATRIZ 2 - MARIA 3 - CARLOS 4 - MARIA 5 - JÉSSICA 6 - HENRIQUE How do I make a SELECT that gives me as a result a list of the names ordered by ID descendente, however, a…
-
1
votes1
answer178
viewsPure XML in PHP
I am making a request to a web service (done in Delphi), by PHP sending an XML and receiving a reply. What I want is to be able to show XML exactly as it is. Code I use: $getData is the request XML…
-
6
votes2
answers4450
viewsHow to use openssl_encrypt encryption method?
It’s been a week that I search in everything that is site but I can not understand, I’m very curious about the use of this function but I can not find anything that explains in a simple way, someone…
phpasked 10 years ago Otavio Fagundes 978