Most voted questions
150,413 questions
Sort by count of
-
4
votes3
answers309
viewsPostgres SQLSTATE[42725]: Ambiguous Function
I am trying to perform the update to follow using Postgres but I am coming across the following message. Does anyone know a way to resolve? "SQLSTATE[42725]: Ambiguous Function: 7 ERROR: operator is…
-
4
votes1
answer785
viewsError when trying to connect to SQL Server from webservice on IIS 7.5
I am getting some errors when trying to perform a query in SQL Server from a Webservice hosted on an IIS 7.5 server. My connectionString on the web.config: <connectionStrings> <remove…
-
4
votes2
answers447
viewsHow to adapt / create a method that receives an anonymous class in C#
I have a method in which one of the parameters is an object of an abstract class - Objectmapper - whose purpose is to convert an object of one class into another of another class. Below, the method…
-
4
votes2
answers481
viewsHow to put responsive Ivs regardless of height size?
I have a Bootstrap project with 4 Divs on each line, side by side behaving responsibly. Each of the Divs has a certain content. The width of the images will be fixed but the height will not. If one…
-
4
votes1
answer1033
viewsslow remote Mysql database with java swing application
I have a swing java application that is connected to a remote Mysql database, that is, on an online server. When running the program it works normal, except for the slow response of the bank. For…
-
4
votes1
answer922
viewsHow to display a specific image?
I am making a system of films that register the poster of the film and I want that when generate the report with all the registered movies, it shows me the image of the poster saved in the bank and…
-
4
votes3
answers9315
viewsAsk if the user really wants to leave the page?
I have a page where any task occurs, only it is necessary to finish it, or all process will be lost. I would like to show an Alert, as Facebook and other sites show, asking the user if they really…
javascriptasked 9 years, 1 month ago Mateus Carvalho 1,494 -
4
votes1
answer5374
viewsJS code problem (Uncaught Syntaxerror: Missing ) after argument list)
Well, I have a pop-up chatbox code, but it’s making the following mistake: Uncaught Syntaxerror: Missing ) after argument list Code: //Variáveis a editar var imagen_chatbox_desplegable =…
-
4
votes1
answer54
viewsError adding migration with Migrations
I am trying to add a migration and Migration returns the following message: The Designer Code for this Migration file includes a snapshot of your Current Code First model. This snapshot is used to…
entity-framework-6asked 9 years, 1 month ago Kelly Soares 1,181 -
4
votes0
answers2049
viewsPhp Laravel with Jasper report
I’m using the framework, and jasperphp to generate the report, but I can’t pass the pro database, most use mysql to generate the report, only I’m using Mssql, someone give me a light with that…
-
4
votes1
answer495
viewsChange script to show video in Html5
How do I make this script shows an HTML5 video instead of Flash Player? My script looks like this: In this script he injects the video link into the flash player, I would like to replace this with…
-
4
votes1
answer151
views.Net Reflector compilation errors
I’m studying C# and I’m trying to learn a little reverse engineering. I’m making the following mistake: private void button1_Click(object sender, EventArgs e) { this.Result = true; this.ConfigName =…
-
4
votes2
answers707
viewsForce fields from selected radio
How do I make for the jquery validate validate only the selected radio input fields? Example: I have 2 input radio (natural person and legal person) I want to validate only the selected radio…
-
4
votes1
answer518
viewsHow to upload data to Mysql faster?
I have a DER that represents an airport and I have to upload data from several csv. for example I have a 1-to-many connection, by plane for flights. If I have this table connected with the foreign…
-
4
votes3
answers611
viewsHow to build time series with frequencies different from the original?
I have a dataframe with daily precipitation data, with dates 01/01/1900 until 31/12/2010, example: # Data Est_1 Est_2 Est_3 # 17/12/2010 NA 0 0 # 18/12/2010 NA 0 0 # 19/12/2010 NA 1.7 0 # 20/12/2010…
-
4
votes1
answer2064
viewsSolr, Lucene and Elasticsearch what are the differences? When to use one or the other?
What is the difference between Elasticsearch, Solr and Lucene? When using one or the other?
-
4
votes1
answer772
viewsLINK Anchor to Section Does Not Work in Firefox
$(window).load(function() { $('a.scroll').each(function() { var id = $(this).attr('href'); if (id.match('^#')) { var target = $(id).offset().top - 65; var title = $(this).attr('title');…
-
4
votes1
answer121
viewsJava Https - Httpsurlconnection - Unsupported Sslv2hello
When making an https request I have the following Exception: javax.net.ssl.Sslexception: Unsupported record version Sslv2hello public static void main(String[] args) throws Exception { URL url = new…
javaasked 9 years, 1 month ago Micael Costa 93 -
4
votes1
answer558
viewsWith Jquery grab all the elements
Hello I wanted with Jquery to pick up all the product_payment of a shop and change. Changing: In cash R $ 137,66 discounted or 12x with interest of R $ 13,69. To: Cash R $ 137,66 discounted or 12x R…
-
4
votes3
answers42573
viewsCalculate difference between two dates to validate date fields
I needed to find a mechanism to limit a search no longer than 3 months. I have two dates, I want to validate if they are within the defined parameters. have this code() I am using type date and…
-
4
votes1
answer2279
viewsLoad Datatable with Jquery and MVC 5
Good morning!, I read some articles about Datatables.net, for example: Datatables.net - Examples index Load tables with json using Datatables Using jquery Datatables with ASP.net MVC 5 but I cannot…
asp.net-mvc-5asked 9 years, 1 month ago hard123 2,329 -
4
votes4
answers5878
viewsConvert String to Decimal
And I’m having trouble properly converting this string in decimal. decimal.Parse(txtValor.Text)=meuVen.Valor; When I put the conversion in front, it shows error after the =. I don’t know how to…
-
4
votes1
answer1762
viewsHow to take the value bound to a selectOneRadio and assign it to an attribute in a bean
I request help to implement a method/way to take the value bound to a selectOneRadio (which is an Enum) and assign it to an attribute within a Bean. After obtaining the value linked to…
-
4
votes3
answers1222
viewsFilters with PHP - Search Form
How could I make a filter like that from the example image? The part the tables with the data and SELECT to fetch is quiet. What I’m suffering from is how to build PHP code for this, maybe someone…
-
4
votes2
answers185
viewsIn what order is the init() method invoked in the GO language?
I read some posts on the Internet about the implicit method call init() but I did not understand right in what order it is invoked in a program written in GO language, mainly because there can be…
-
4
votes7
answers10560
viewsHow to test if an Edittext is empty?
I would like to know how I do to test whether a Edittext is empty or filled on Android. For example, I want to make an app that will perform a registration, but there are fields that cannot be empty…
-
4
votes2
answers1718
viewsHow to place two Ivs next to a container?
How do I place two Ivs, one on the left and one on the right side of a container with the bootstrap? Since you would like the side Divs to increase in size depending on the screen.
-
4
votes2
answers566
viewshtaccess hide MVC model parameters
I have the following URL: http://192.168.1.67/plays/mvc/index.php?route=profile&user=mikas.28 On which route = PAGE and user = USERNAME.USERID I have the following htaccess Options -Multiviews…
-
4
votes2
answers579
viewsTwo threads running the same function
I have a situation where in Delphi I have two threads that perform a function that ping in a Firebird database. I use this to sync data from my PDV (sending and receiving). But as they run at the…
-
4
votes2
answers1313
viewsC++ - Stop condition in repeat structure
How to put this code in a repeat structure so that after the calculation is shown the option "Type S to exit or C to continue"? #include <iostream> #include <string.h> #include…
-
4
votes1
answer374
viewsSearch for closeness
I am in search of tutorials that help me implement a search for proximity (as in this link:https://www.palfinger.com/pt-BR/bra/representantes-de-vendas/localizador-de-representante). Note that…
-
4
votes2
answers125
viewsDDD return aggregate entity of an AR
I am with the following doubt that no post I researched answered me. And I have researched a lot. I believe it is a simple question, because it is a common case. Imagine a blog post system. In this…
dddasked 9 years, 1 month ago Rodrigo Otavio 51 -
4
votes1
answer136
viewsHow do I add attributes in img with the_post_thumbnail Wordpress function?
I need to add a width="100%" and the class="img-responsive". How do I add in img if I call it in index this way? <?php the_post_thumbnail(); ?>…
-
4
votes2
answers709
viewsJsonarray in Jsonobject: Json.typeMistach error
In a web search I discovered that the Json.typeMistach error was due to I’m getting one JSONArray and trying to arrow it into a JSONObject. Turns out I can’t fix it, the mistake persists. Could…
-
4
votes1
answer7226
viewsHow to run a PHP database
I’m trying to create a listing and I’m having trouble calling the Select Database. Code connecting to the bank: <?php $conexao = mysql_connect("localhost", "admin", "admin") or print…
-
4
votes2
answers137
viewsForm safety
I have the following code: PHP (server): if(isset($_POST['subdate']) && !empty($_POST['date'])) { $daysOff = array(); $get_date = explode(',', $_POST['date']); foreach ($get_date as $date) {…
-
4
votes2
answers961
viewsCalculate maturity date
I have a column called START in DATETIME format in Mysql and I would like to check if each Row is expired and/or how many days are left to win that Row, taking into account that Row expires 30 days…
-
4
votes1
answer807
viewsPhp code is commented in html
I am creating a captcha in a registration form, and I am calling the image with a php command, but the captcha image does not appear in the form, and when I enter the browser console the php code is…
-
4
votes1
answer3067
viewsAndroid login and password "cache"
Hello, how to login automatically? ex: I made an application for android with login, password and webservice, when the user logs I send the information and return true or false. How do I store in…
androidasked 9 years, 1 month ago Kleber Souza 451 -
4
votes2
answers635
viewsWhat’s the difference from ON to ONE in Jquery
I’m dealing with some current optimizations on my system and I found a situation that intrigued me,every time I double-clicked the table and called a function to bring the client’s complementary…
-
4
votes2
answers3761
viewsHow to select all id’s except one?
Is there any way in SQL I get all the data except an ID? For example (I know this does not exist in SQL) Select * From Utilizadores Where id_ut != 1;
-
4
votes4
answers872
viewsI need different ways to rearrange characters within a string, how do I do that?
I would like answers in C, C#, or just an algorithm, but preferably an implementation already in the C# language because that’s what I’m using. For example, suppose I have to find out if a number is…
-
4
votes4
answers3096
viewsrecursive superfatorial problem
I have a doubt in the realization of this recursive function of mathematics. Calculation of the superfatorial: The superfactor of a number N is defined by the product of the first factorial N of N.…
-
4
votes1
answer94
viewsNested pointers and references
I’m having a doubt in the interpretation (the way I read my code) on pointer assignments in the C language. I did not understand the logic of the following assignments: "If i and j are whole…
-
4
votes2
answers183
viewsNested Vector Logic - C++
I have a problem with the following statement: Given a vector A with n real numbers, obtain another vector B, also with n real numbers, as follows: B[1] = 2*A[1] B[2] = 3*A[1] + 2*A[2] B[3] = 4*A[1]…
-
4
votes1
answer1474
viewsHow to persist a record in the database through Java restful webservice?
I already have a method that takes a json and persists in the Mysql database. I can test it by the interface created by Netbeans, which has a field for inserting a json, but how do I make an http…
java web-service java-ee netbeans restfulasked 9 years, 2 months ago Marco Aurélio Soares de Souza 125 -
4
votes2
answers19877
viewsHow to include an action in the HTML5 sign-up button?
I have the following code: <form action="paginas/login.php"> <p id="log">Usuário: </p> <input id="cmpG" type="text" name="usuario"/> <p id="log">Senha: </p>…
-
4
votes1
answer1450
viewsManipulating batteries in C
I’m a C beginner and I have the following exercise: The Parking Stationhere contains a single boulevard that guards up to ten cars. There is only one entry/exit in the parking lot, in one edge of…
-
4
votes3
answers767
viewsNetbeans IDE: Warning Message
I have a warning message that tells me method is 23 lines and between parentheses says (20 allowed) I do not understand why this message, follows below: What does that mean? has how to disable this…
-
4
votes1
answer995
viewsHow to avoid "zend_mm_heap corrupted" error?
In my day to day PHP development and release delivery, I get back and forth the following error when a build is made in our continuous integration environment: zend_mm_heap corrupted This is a fatal…
phpasked 9 years, 2 months ago Rodrigo Rigotti 12,139