Interesting questions
-
0
votes0
answers99
viewsComponent Not Rendered By Ajax
I have a form, where internally has a component h message: and a h:inputText, and I am submitting this form by jsf standard ajax... the problem is... when submitting the form ajax does not update…
-
1
votes1
answer48
viewsChange site color with jquery
Is there any way to change the color of the entire site with jquery? type, I have a site that its default color is purple but only a few parts, and I wanted to change these parts according to the…
jqueryasked 8 years ago Robert Junio 49 -
0
votes1
answer413
viewsHow do I set a value in Edittext if empty?
EditText edit = (EditText)findViewByid(R.id.edit); //estabeleço o conexão if(edit.getText().toString().isEmpty()){ // verificando se a edit esta vazia String num = "6"; // Ou use um int, não vejo…
androidasked 8 years ago Rafinha Castro 1 -
1
votes2
answers350
viewsDoubt in string, and comparison
I am doubtful in the following exercise: Write a C program that receives two strings via standard input and whether the second string is contained in the first string, i.e., if the second string is…
-
6
votes3
answers171
viewsIs it possible to have properties other than those generated automatically in a data class?
Kotlin allows you to simplify the creation of what in Java we call POJO: data class Person(val firstName: String, val lastName: String) With this we get a class with the getter for all variables…
-
0
votes1
answer58
viewsElasticsearch server connection
Good afternoon! I’m trying to connect in Elasticsearch, but I’m not getting, I don’t know if I need to inform anything else in class es=Elasticsearch(..) # Import Elasticsearch package from…
-
2
votes2
answers2519
viewsHow to compress a folder with everything inside using python zipfile?
I am wanting to compress a file and a folder that has multiple files inside in a single file. zip using Python. The script is next p: from zipfile import ZipFile,ZIP_DEFLATED def zipar(lista): with…
-
2
votes1
answer121
viewsSyntax Highlighting with/in the Swing framework
How to make a syntax Highlighting, like what Ides use, but in/with Swing framework, with Java. I intend to use syntax Highlighting in several different keywords. How can I change the color of the…
-
0
votes1
answer95
viewsVariable value does not update
Hello, I installed WAMP from Bitnami and am using php 7.1.7 and when I edit the value of a variable, and give F5 in the browser, the value of the variable does not change on the web page. I tested…
-
0
votes1
answer331
viewsnow() date/time format in mysql
$verificatempo = mysql_query("SELECT * FROM logs WHERE horario <= now() - INTERVAL 10 MINUTE AND ip = '$ipaddress' ORDER BY horario desc limit 1"); I would like to know the same date and time…
-
2
votes1
answer271
viewsContrary to appendHTML - how to do?
I have a label in the form of my website adding to a div (in the case of the example, the id of that div is grupoExt) an HTML content. Here is the code: var numeroFE = 2;…
-
0
votes1
answer50
viewsHtaccess does not correctly validate the redirect rule
Has in htaccess in which the regex works perfectly without numbers in the rule, but with numbers does not work properly. RewriteRule ^([a-zA-Z]{1,20})-to-([a-zA-Z]{1,20})-([a-zA-Z0-9-]{1,30})\/?$…
-
2
votes1
answer55
viewsSql generated by Linq
Hello, I would like to know how to see the sql code that a String expression generates to be executed by ADO.Net. I am using Nhibernate as a ORM framework.
-
1
votes1
answer904
viewsHow to recover all the events that are in Fullcalendar?
I have a page that has a list of events that can be dragged to a Fullcalendar. After dragging all my events to Fullcalendar and clicking the finish button I want to get a list, or something like…
-
1
votes0
answers91
viewsHow to transform a rgb color space into Hsv in R
How do I read an image from a folder, and turn it from rgb to Hsv by extracting an array of pixels for the parameters h, s and v (all by R software)??
-
4
votes2
answers528
viewsWhat is the difference between tag and element and html document and page?
I would like to know the differences between an element for a tag in HTML. Example 1 The example below is an element or a tag? <p></p> Example 2 And in the example below is tag or…
htmlasked 6 years, 2 months ago joão batista 75 -
0
votes2
answers96
viewsPass random values to Matrix
I have a matrix with 30 fixed values, I wanted to know how to generate these same 30 values, but random, if possible with limit values between (2400, 400). How is the matrix currently: private…
-
3
votes1
answer585
viewsAndroid Xzing library (read barcode) with Fragment
My application worked perfectly with Zxing, after implementing Fragment, the barcode reading stopped working. I tried to configure the return in Fragment, in Activity... but I was unsuccessful.…
-
0
votes2
answers691
viewsHow to exchange the lowest value of a vector with the highest value?
For now I can only find the smallest and largest, but I can’t change positions. for(int i=0; i < vetor.length; i++){ temp = vetor[i]; if(maior < temp){ maior = vetor[i]; vetor[i] = menor;…
-
0
votes1
answer42
viewsProblem returning PHP function
Good afternoon, folks I’m starting in php and I’m having a problem with my code function buscarIdProduto($conn,$nome){ $stmt = $conn->prepare("SELECT id FROM produto WHERE NOME_Produto = ?");…