Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer295
viewsVirus decryption - vbscript
Option Explicit On Error Resume Next dim rbs309 dim tadjakmnmfrg4460 dim icsnvk206 dim wsmp1276 dim falkal1610 dim rfqgobyeyrp5319 dim gtxhgi5556 dim mll8810 dim qxat8709 dim hgurgqrv3280 dim…
-
4
votes1
answer514
viewsPassing an object to a Bootstrap modal
I need to pass a database object to a modal when I open it to display the object information. Is it possible to do that? follows the cshtml of the view in which the modal button is called, it opens…
-
4
votes1
answer152
viewsHow to identify in a shell script, which is the Docker command that is running
I created this image (https://hub.docker.com/r/keviocastro/elgg-docker/~/dockerfile/) setting up an environment for a social networking web application. This application requires a link to a Mysql…
-
4
votes3
answers918
viewsHow to do multiple Inserts at once?
Well I have 3 tables in my database, and I do one INSERT on the table sale, and as soon as I insert the data into it I would automatically have to insert it into the tables vendaservicos and in the…
-
4
votes2
answers186
viewsBorder-bottom with linear gradient
I would like to style an edge for the H1, but in linear gradient, going from color x to color y (or transparency). I used pseudoclass (after), but with the gradient edge I can’t make it work.…
cssasked 8 years, 11 months ago Paulo Roberto 51 -
4
votes1
answer111
viewsHow to iterate with a table in Lua?
How to iterate with a table in Lua? Example: dados = { nome = 'Wallace', idade = 25 }
-
4
votes1
answer261
viewsHow to read JSON with moon?
I wonder how to read this JSON down through language Lua. json = '{"nome" : "Wallace de Souza"}'
luaasked 8 years, 11 months ago Wallace Maxters 102,340 -
4
votes1
answer568
viewsHow to schedule an event on datepicker?
I have this code in javascript: $(function() { $("#calendario").datepicker({ changeMonth: true, todayHighlight: true, changeYear: true, showOtherMonths: true, selectOtherMonths: true, dateFormat:…
-
4
votes3
answers1738
viewsIs it possible to test only specific classes?
I have two classes of tests: class A { @Test public void fazAlgo(){ // ... } } class B { @Test public void fazAlgoMesmo(){ // ... } } My tests are taking too long because all classes are being…
-
4
votes0
answers1609
viewsWeld CDI problem with Tomcat server
Greeting to everyone, I’m having trouble using the CDI implementation, Weld on Tomcat 7. I’ve been doing some research and tried several proposed solutions, but all these solutions are old, with…
-
4
votes2
answers689
viewsAdd inputs in jquery, but without deleting existing ones
I now have the following code in jquery to add inputs according to the existing number in a text box, However, if the form already exists for some field when clicking to add another one, all fields…
-
4
votes2
answers10482
viewsDoubt about "Error Converting data type varchar to float"
Error Converting data type varchar to float This error is occurring when performing a Update in a table, follows below the code: SqlCommand cmd = new SqlCommand("UPDATE Notas SET nota = '" +…
-
4
votes1
answer76
viewsSitemap - What to list?
I am creating the sitemap of my project and listing the link http://www.site.com.br/articles I remembered that each article has a single page, so it is a dynamic page. The question that came to mind…
-
4
votes1
answer2455
viewsRest API and Sessions, how does Login work?
I have always worked with PHP/Mysql and Javascript/jQuery. I have always connected PHP to the direct database, and I use login sessions. I am currently working on a project where I use Angularjs for…
-
4
votes2
answers8541
viewsweb.xml is Missing and <failOnMissingWebXml> is set to true
Usually the question is, have you ever deployed in the project? The answer is yes. I right clicked on the project I went to Maven after Update project, it is procedure that I always do my projects…
-
4
votes2
answers1678
viewsInsert image into email body
How do I insert an image into the body of the email using C# ? I have already been able to send as an attachment but I would like to know how to proceed to send it in the body of the email , has…
-
4
votes2
answers212
viewsWhat is the # (fence) in the Lua language for?
I’m watching this one tutorial about creating a game and came across something I didn’t understand about the language Lua. There is an excerpt from the code where there is the following expression:…
-
4
votes1
answer1111
viewsGet url with Javascript without GET
I’m getting my url like this: var url = window.location.href; I have the following return: http://localhost/financial/pages/releases.php? local=Iguacu. But I don’t want the GET part, I wanted to get…
javascriptasked 8 years, 11 months ago Bia 2,016 -
4
votes2
answers4976
viewsRemove the time part of a date in c#
This is not working: DateTime? _data = calDataExclusao.Date; string nova_data = _data.ToString("dd/mm/yyyy"); The mistake is: No Overload for method 'Tostring' takes 1 Arguments How I remove the…
-
4
votes3
answers1074
viewsAdd a comma to each word
Ex.: $str = "texto de teste"; // RESULTADO ESPERADO $keywords = "texto, de, teste";
-
4
votes1
answer645
viewsTemporary text in Jlabel
I would like to exchange the text of a JLabel and leave it for just a few seconds, then go back to the previous text. I have to execute a method that takes a few seconds to get ready and would like…
-
4
votes1
answer229
viewsChange image src when input value is equal to a given value
Good night! I have a login input and an img with the user image. I am trying to change the user image when this input loses focus and if the entered value corresponds to a given value. ex: if I type…
-
4
votes1
answer626
viewsTotal and subtotal in Django template using predefined lists
How do I calculate subtotal and total per column? py views. def soma_tuplas(a, b): return (a[0] + b[0], a[1] + b[1], a[2] + b[2], a[3], a[4]) def quotation_list(request): stores =…
-
4
votes2
answers789
viewsCall Activity after Facebook login
I’m new in the world Android and I’m in need of some help. I can’t make the call to a new Activity after the facebook login. The login is running correctly and when it is successfully performed, it…
-
4
votes1
answer245
viewsData Truncation with Hibernate
Goodnight. I have a problem to persist an object, Hibernate throws an exception saying that the data are too long for the "street" column, type String. Follow Pojos and DAO. Address @Embeddable…
-
4
votes1
answer933
viewsConvert $Scope to string in ng-model by Angularjs
I am in doubt, according to the tutorial of Angular the ng-model only accepts one $scope if he goes string, giving: Error: [ngModel:numfmt] expected `1234` to be a number Possible then convert to…
-
4
votes1
answer339
viewsConsult if SLUG already exists
I would like to know how I do to query if a SLUG already exists in the database and, if it exists, how to increment +1 at the end of the string, getting: site.com/artigo/titulo-de-teste1…
-
4
votes1
answer792
viewsChained Select: how to select Brazilian municipalities in a JSON file from the state select
EDITION In case, in the future, someone needs the jQuery version. Here is the code: //select encadeado com JSON $('#uf').on('change', function () { var estado = $(this).val(), cidade =…
-
4
votes1
answer2140
viewsHow to insert external CSS into Codeigniter 3
I would like to know how to insert an external css file into a Codeigniter 3 view. I set up the $autoload['helper'] = array('url'); I tried to make the call in the following ways: <link…
-
4
votes1
answer1523
viewsCorrect use of free() in function?
How to use function free() when it is used within a function, in that function Gero a dynamic vector and the function itself will be the return, example: int* copia(int *vet, int tam) { int i,…
-
4
votes1
answer6257
viewsHow to see all modules installed in nodejs?
I’m taking a look at the nodejs and would like to know how do I list all the modules I installed. How can I do that?
node.jsasked 8 years, 11 months ago Wallace Maxters 102,340 -
4
votes1
answer11463
viewsError Object of class stdClass could not be converted to string
Well I have an 'X' object that one of its properties is a JSON. In this JSON contains the column name and the column value respectively. But I can have several 'X' objects, and so on. Today I’m…
-
4
votes1
answer3554
viewsDifference between SQL Server Express versions?
What’s the difference between SQL Server Express versions of Dreamspark?…
-
4
votes1
answer108
viewsError in . First(), as there is no selected result
In my controller of Login I use the following code to select the user if it exists, but whenever the user type the incorrect name or password, it gives an error, because it does not find the result…
-
4
votes1
answer1027
viewsJavascript canvas button builder
I have a question when creating a button builder for Canvas in JS, I can already detect the click in the button area, but I would like to simplify the code with a constructor, to speed up my content…
-
4
votes1
answer393
viewsIs it correct to declare GET/SET methods within a STRATEGY class?
I was left with a question when I went to create a project pattern of the type Strategy. It is correct to declare methods GET and SET in a class that implements an interface Strategy? I do not know…
-
4
votes0
answers57
viewsJointjs: Embed Parents and Children
Good, I’m working with Jointjs but in a dynamic way. I am currently trying to embed the 'Parent' and 'Child' elements'. After selecting with the Child and Parent info, I get to get this information:…
-
4
votes1
answer672
viewsR-Studio - Package installation error
I try to install the package from the .zip, but the following message appears: R Tools for Biologists (Rt4bio) Funtions: rdiagnostic: Make a Diagnostic residuals Plot. plotbar: Use barplot2 from…
-
4
votes1
answer144
viewsSeveral Books for Author
Recently I asked a question about my problem, but it got a little hard to understand, here I will try to summarize my problem. I’m using ASP.NET MVC. I have 2 tables: Autores and Livros, where 1…
-
4
votes2
answers268
viewsHow do I update PHP 7.0.0RC1 to version 7.0 already released in centos?
Good morning, How do I update PHP 7.0.0RC1 to version 7.0 already released in centos? Thank you
-
4
votes2
answers93
viewsCheck two null fields with Data Annotation
I own two properties: public int? Inicio {get; set;} public int? Final {get; set;} Both accept null and are not required. I wanted to check if both are null using Data Annotation. The operation…
-
4
votes1
answer38
viewsOrderby in an array
Fellas, I’m trying to edit a array, so that it can provide me with the information in ascending or descending order. I’m doing it this way: $Recent_Page = get_post_meta(get_the_ID(),…
-
4
votes2
answers1419
viewsIs there any way to know when a record was added to the bank?
I would like to know the time a record was added to the bank. I will use this information to show the time a contact was added to my schedule.
-
4
votes2
answers1128
viewsfree(): invalid next size (fast) while trying to free up memory
I have this struct in a data structure and need to free up memory with it used: typedef struct { int capacityOfElements; //capacidade do vetor int numberOfElements; //número de elementos presentes…
-
4
votes3
answers504
viewsDisable input text by clicking another input text
Good Afternoon, I have both inputs below: <input type="text" id="txtEntrada" name="entrada" onkeyup="somenteNumeros(this);" > <input type="text" id="txtSaida" name="saida"…
-
4
votes1
answer1222
viewsField Primary key from int to bigint
Well I need to turn my primarykay fields from int to bigint, but it is giving a problem. Follow the code below: Executing SQL script in server ERROR: Error 1025: Error on rename of…
-
4
votes1
answer462
viewsJson with relationship Manytomany - Laravel
I created a relationship between my tables using ManyToMany and currently I need to return a Json with the information, but my tables meet this way; // 1. Produtos +-------------+ | id | | name | |…
-
4
votes2
answers1474
viewsButton next to input text bootstrap 3
I’m having a problem that I can’t put my input file button next to my input text. I’ve done some research, tried some things I’ve seen and nothing. Maybe it’s pretty silly, but I’m kind of new to…
-
4
votes1
answer322
viewsproblem with the behavior of google.maps.Latlngbounds
I have and following code that checks my maker and arrow the Bouns var bounds = new google.maps.LatLngBounds(); $.each(markers_temp, function (key, value) { markers[key] = value;…
-
4
votes1
answer264
viewsManage variables with PHP session
I need to take the value of an input text to store it and use it on another page that opens automatically (popup) when the Send button of the form is pressed. He can do this, but what’s happening is…