Interesting questions
-
9
votes1
answer1353
viewsHow to overload methods in Typescript?
I’m having trouble overloading methods in Typescript. The method to be overloaded is a Object Factory rect() one signature has four numerical parameters and the other signature has only one…
-
0
votes1
answer1013
viewsHow to search for users in the database without select option
Good staff always found bad a method I use to search users in the database in a select option, when I have many records the page takes to load and only tends to get worse, someone has some idea of…
phpasked 12 years, 1 month ago Rafael Assmann 381 -
4
votes1
answer74
viewsJS function does not perform calculation
I created a form that is added to the page through a button. I used JS to create the form to be added. The problem is that I have two fields one of value and the other of hours, to account for the…
-
0
votes1
answer53
viewsDatabase update problems using PHP
I have a UPDATE problem with the database. I have a form that sends the data to a php file, which would update a table of the MYSQL database. However, update is not performing the insertion and…
-
13
votes1
answer755
viewsDifference between casting and Promotion
What is casting? What is Promotion? What is the basic difference between these Java conversion types?
-
4
votes1
answer1384
viewsHow to change IMG(logo) from menu(header) when scrolling page?
I have this menu that has an image: logo.png, as the code below shows <header class="header"> <div class="container"> <a href="index.html" class="grid-4"> <img…
-
1
votes1
answer21
viewsCode does not find modal
Hello I have a type button image that supposedly should be opening the modal but on my site does not open. I have bootstrap installed from the most updated version, I can not understand why my modal…
-
0
votes2
answers461
viewsHow to wait two promises before returning to function?
I am making a code that makes two requests, the value returned is the size of a file content-length, but I need the function that contains these two requests to return the value after the requests…
-
3
votes2
answers3847
viewsIs it possible to assign the default value of a property with an attribute?
I wish I could declare a property as: [DefaultValue(10)] public int Maximo { get; set; } And when I was going to use it, it already came with the value started in 10. However the attribute does not…
-
1
votes2
answers117
viewsPHP - If (condition) in wordpress
Next, I have 4 posts on a post type services. Brides, Day Spa, Aesthetic Medicine and Salon <div class="service-content <?php if( $post_title == 'Noivas' ) echo "qwp-content"; ?>">…
-
0
votes2
answers172
viewsPython Generate txt layout from a txt file
I have a txt file that I am doing treatment to generate a layout in another txt file. When I use the command print the same generates correctly, but when I put to write in another file it generates…
-
0
votes1
answer173
viewsResize in image with PHP
I need to resize all images when sharing on Facebook. There are several images of various sizes in the product listing, but when I share the link on Facebook, depending on the size of the image,…
phpasked 9 years, 10 months ago Maurício Krüger 1,848 -
0
votes2
answers2437
viewsremove the repeated values
If it type 1, I have to check that in the table there is no value 1 that has already been typed, if there is the repeated value, remove the value 1 and keep the other intact. So for other values.…
-
0
votes0
answers9
viewsActivate Fields with Radiobutton Qtdesigner
On the main screen, I have a radiobutton with two fields of lineEdit. When the radiobutton is clicked (check), the lineEdit1 needs to be released and the lineEdit2 needs to be blocked. And so vice…
-
-1
votes2
answers693
viewsSave content from a div to a file. html With php or javascript
How do I save content from a div to a file. html With php or javascript. The intention is to generate a pdf later with this saved html. I saw that there are many topics here on the subject, but I am…
-
2
votes1
answer65
viewsAdding an object to a collection returns "cannot be cast to java.lang.Comparable"
The code is this: public class Catalogo { SortedSet<Produto> lProdutos = new TreeSet(); public void addProduto(int cod, String desc, float preco){ try{ Produto p = new Produto(cod, desc,…
-
4
votes1
answer540
viewsRecover most viewed videos from youtube channel
There is how I recover the 5 most viewed videos from my Youtube channel to put on my website?
-
1
votes0
answers48
viewsProblem deploying to Heroku with apigility
I’m trying to upload an api created with Apigility to Heroku. The application compiles correctly, but when making any request, I get a 500 error as return. In the Heroku log, I see the following…
-
2
votes2
answers426
viewsunion of lists
I am doing this algorithm where I have to do the union of two lists and the repeated numbers can only appear once. But it’s gone wrong, someone to save me? def uniao(l1,l2,r=[]): if len(l1) == 0:…
pythonasked 6 years, 11 months ago Gabriel Borges 41 -
0
votes2
answers659
viewsProblem when trying to get $Scope of form with Ionic
I got the following form which sits within a modal: <form name="usuarioForm" novalidate=""> At the end of this form I have a button where I pass the object that was filled into a function, and…