Most voted questions
150,413 questions
Sort by count of
-
4
votes0
answers76
viewsUpdate data (Excel)
I’m having a problem related to external data in excel this is an example of what I have done: Index (Book) Painel (sheet) - I enter data in the panel that will be sent to another book (count) sheet…
excelasked 8 years, 10 months ago Mário Passos 41 -
4
votes2
answers7168
viewsHow to discover the version of my C/C++ on the Linux operating system?
I’d like to learn how to find the version of mine C/C++ in the operating system Linux. How could I do that through Terminal?
-
4
votes4
answers144
viewsProblems initializing a type within a LINQ query
I am going through the following problem, I am assembling an API for a forum application and this API needs a endpoint returning a collection of Forum who own the property ParentId nulla. Then I…
-
4
votes1
answer494
viewsAdd data from a column
id .. product...value...id_sale...total value 01 .. Pen.... 2,00.... 1....... 30,00 02 .. Rubber. 4,00.... 2........... 25,50 03 .. .Lapis...... 5,00.... 1........ 10,00 04 .. Pointer…
-
4
votes1
answer2169
viewsBest practices when filtering a query with Entityframework
I have a web api method that receives a model from a search form and according to its values, it starts to filter the result of this search, as an example below. public HttpResponseMessage…
-
4
votes1
answer1197
viewsHow to send Angularjs data to an ASP.NET MVC backend?
What would be the best and simplest alternative? I have the Web Api: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using…
-
4
votes3
answers16275
viewsHow to send a data to another PHP page by URL?
I know there are GET and POST methods but I don’t know how to apply them. I have a page called index.php and I have several Ivs that are generated in a while. When I click on a div I am redirected…
-
4
votes1
answer469
viewsHow to extract only different values from an array?
I’m extracting from a array city names. I want to extract cities with different names. In the current case, my script returns several identical city names. I want to recover only once each city…
-
4
votes1
answer110
viewsCriteria of the grails
Someone please tell me what this ${result[0][0]} means because they put two pair of brackets? def criteria = Person.createCriteria() def result = criteria.list { projections { max('age') min('age')…
-
4
votes2
answers706
viewsHow to toggle images when clicking a checkbox?
In this my script I’m making a seat marker, but I’m not getting to change the images after the click in the checkbox, and every time the table chairs get misaligned. Type: checkbox marked shows the…
-
4
votes1
answer223
viewsConfigure to Eclipse show parameters name on auto-complete
Sometimes the eclipse, it shows in auto-complete the names of the variables in an easier way to understand. For example, if on this line you press Ctrl+Space : BufferedImage img = new…
-
4
votes1
answer292
viewsStop touch(sound) of notification
I have an Android app that wakes up with the system notification standard ringtone. The problem is that when it clicks on the notification the alarm does not stop. I use a class for notification and…
-
4
votes1
answer369
viewsAvoid uninstalling application even after factory restore
How to develop an app that, even after the device is restored, it remains installed, the same as the mobile operators' apps? Thanks from now on.
androidasked 8 years, 10 months ago Rudda Beltrao 149 -
4
votes0
answers162
viewsHow does Ajax paging work?
I’m using a script to make the pagination through Ajax, workable assíncrona, the situation made me curious, because until then I had only used pagination php+mysql, never php+mysql+ajax. If my bank…
-
4
votes1
answer99
viewsMerge 2 different tables and display content sorting by number of views (larger to smaller) of the two joints in Mysql
Whereas I have 2 tables in the comic, "news" and "news", each with its own fields: It is possible to make a SELECT in both tables at the same time so that I return the 4 highest values of the…
-
4
votes1
answer273
viewsDjango: What’s the difference between importing/using include() and not using when configuring a URL?
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] In this example I saw that…
-
4
votes1
answer392
viewsWhat is the advantage of using Tag Helpers in ASP.NET Core?
I am studying the ASP.NET Core and came across the tag helpers when I ran the scaffold of a view. I found interesting the new syntax, the code is more readable at some points, however, the inclusion…
-
4
votes2
answers1261
viewsCompare value at each String position in Java?
I’m having trouble comparing a value in each position of a String, follows the example below: parametro = "30,60,90"; private int countVirgulas(String parametro) { int count = 0; for (int i = 0; i…
-
4
votes3
answers838
viewsUncheck a checkbox by clicking outside of it
How is it possible to uncheck a checkbox if I click another field of the site? The checkbox is used so that when the status is 'checked', it 'drags' my menu from -65% to 0 and appears on the screen,…
-
4
votes1
answer49
viewsExpandablelist Customizable
I’m new to Android, but with an ambitious project. I’m trying to make a ExpandableList customized, with two TextViews on the items and the one on the left needs to have the background changed as per…
-
4
votes1
answer53
viewsWith this rule below, how do I show the user’s first and last names in the database?
Example of the name that is in DB: José Alberto da Silva Nogueira. I’d like you to just show José Nogueira. <?php if(!Yii::$app->user->isGuest) echo…
-
4
votes1
answer1918
viewsWEBAPI AND A3 CERTIFICATE - TOKEN
Can anyone here use A3 type certificate for a WEBAPI ? Because when I test it in debug (i.e., local), everything works normal. But if I compile, and put in the IIS application, keeps returning me…
-
4
votes0
answers377
viewsSignair - C# - Real-Time Response
I’m using C#, Asp . Net, SQL Server. I have the following question, I am creating a web and mobile application to communicate with a Webapi but I came across the problem of information and/ or data…
-
4
votes1
answer4458
viewsHow to return day of the week and time formatted sql server 2008?
I need to make a query as follows, I have a table (script): 1 - Take the day of the week 2 - take server time in format hh:mm example: SELECT CASE DATEPART(DW, GETDATE()) WHEN 1 THEN 'DOMINGO' WHEN…
-
4
votes1
answer97
viewsGgplot of a Data.frame in separate graphs
I have that date.frame: > df ind m X1 X2 1 2015-12-21 21 0.1431529 0.1426365 2 2015-12-21 42 0.1403679 0.1443714 3 2015-12-21 63 0.1467133 0.1466899 4 2015-12-21 84 0.1513388 0.1485589 5…
-
4
votes3
answers408
viewsError listing items from a foreach() array
I have a array with the list of several Brazilian banks and need to take the name of the bank where the code according to what is in the user’s account, only when doing this search for code it…
-
4
votes2
answers364
viewsHow to block a website with Delphi, vbs or msdos?
I have a user control and monitoring system and would like to block a site using Delphi or even MSDOS or vbs commands, or even using Sockets(I don’t know if it’s possible)? What I have so far is…
-
4
votes3
answers4406
viewsCheck empty object Angularjs
I have some fields where I pass some filters for a query in the bank. I would like to check if the object is empty, so the query would not be held. I tried that way: function isEmpty(obj) { for(var…
-
4
votes2
answers294
viewsWhat is the correct way to return a "switch" value?
How is the correct way to return the value of switch? HTML: <h3 id="txtOcorrenciaStatus">Status</h3> Javascript: switch(ocoStatus) { case C: $("#OcorrenciaStatus").html("Concluído");…
-
4
votes1
answer152
viewsChange Selectonemenu
I am working with the tables Parents, Province and Municipality, using JSF, Primefaces and Ejbs. But when executing the Project gives the following error: javax.faces.Facesexception: /location.xhtml…
-
4
votes1
answer5083
viewsHow to pause the execution for a time (similar to a "Wait" or "Sleep")?
This code is working and running on an existing account on this website, what I want to do is: Add a pause, a kind of While, Wait, Sleep or ReadyState, after login and before going to the new tab.…
javascriptasked 8 years, 10 months ago Erick 89 -
4
votes2
answers6127
viewsCode for calculating the first N primes in C?
First, I got this: #include <stdio.h> #include <stdlib.h> int main(){ int i=13,w=0,k; for(k=i-1;k!=1;k--){ if(i%k==0){w=1; break;} } if(w==0){ printf("\n%d eh primo",i); }…
-
4
votes1
answer1376
viewsHow to use Jprogressbar while method(returns value) performs reading XML files?
I have a little knowledge in Java and I have already researched in the internet about how to use a Jprogressbar while running a method, but I could not get any example that works according to my…
javaasked 8 years, 10 months ago Douglas Ribeiro 69 -
4
votes1
answer1318
viewsPHP script that lists and edits other files
How can I create a script where it will list all the files that are in the main folder and in the subfolders so that I can edit the files and replace with the one that was edited? If possible tbm…
phpasked 8 years, 10 months ago Pedro Quezado 1,576 -
4
votes1
answer77
viewsI can’t save a Dictionary
I have a page that may have unauthorized access, open for reading or open for reading and writing. Even if the page is completely closed, the owner of the page can choose some users of the system…
-
4
votes2
answers4721
viewsAngular JS - Take the value sent by the select of a directive
I have a directive that returns me a select that when selected I want to take the value of the code by the controller and make an http request. Plunker: http://plnkr.co/edit/fnCJj15XJN1kQvKq1OtZ…
-
4
votes3
answers4613
viewsCreate a Mask for Cpf using Xamarin
Hello, I would like to create a Cpf mask using edittext, but I did not succeed; I searched the net and found several examples in java, but I could not adapt to c#, someone could help me? Thanks in…
-
4
votes1
answer207
viewsIs using HTTPS enough to protect a login area?
Considering a system in which you have the correct server-side treatments, validations and protected against SQL, XSS and brute force attacks, it would be sufficient just forward the login area to…
security-guardasked 8 years, 10 months ago Renan Cavalieri 2,748 -
4
votes1
answer561
viewsMany Relationship Query for Many Entity Framework
I’m new to Entity Framework and Linq, so my doubt may be very simple, but it’s breaking my head. I have two entities: public class Fornecedor { public int FornecedorId { get; set; } public string…
-
4
votes3
answers790
viewsIncrease Precision with Bigdecimal Java
Entrances R = new BigDecimal(2.79E+00); Dxm3d = new BigDecimal(3.99E-04); Wmd = new BigDecimal(2.39E-03); x = new BigDecimal(3.2); t = new BigDecimal(365); Below is the formula BigDecimal…
-
4
votes1
answer376
viewsComparison of Bigdecimal result with Float (Java)
I have two formulas implemented, one with the Bigdecimal type and the other with the primitive double type, but the results differ and I am not able to find the solution. Below are the formulas:…
-
4
votes2
answers574
viewsProblems with onmouseclick and onmouseover in Javascript
I have the following code: Javascript test <script> function mudaLampada(tipo){ if(tipo == 1){ arquivo = "_imagens/lampada-acesa.jpg"; } if(tipo==2){ arquivo= "_imagens/lampada-apagada.jpg"; }…
javascriptasked 8 years, 10 months ago Eryc Masselli 113 -
4
votes1
answer591
viewsCan we use {variable} in Codeigniter Views?
I know we can use Views.html file in Codeigniter, now I wonder if we can use tags {variavel} directly as in Smarty. Example: <body> <h1>{msg}</h1> </body> Are there any…
-
4
votes1
answer229
viewsSegmentation fault when accessing pointer content
I need to declare a pointer vector, which will point to types float, and make a simple reading of values. The program compiles but after typing 4 values I get a Segmentation fault (core dumped). Why…
-
4
votes1
answer1214
viewsBy clicking a php run button
Is it possible for me to merge the php with the jQuery? For example, when you clicked on a button you picked up an input value via jQuery and move on to php, an example of what I’d like to do:…
-
4
votes3
answers1573
viewsAvoiding line breaks in text areas
I have a normal textarea <textarea placeholder=" Digite aqui" class="form-control"></textarea> I wanted that when the user pressed enter, it did not break line and already send the…
-
4
votes1
answer1523
viewsMysql - ERROR! The server quit without updating PID file
I’m trying to spin : mysql.server start and return me ERROR! The server quit without updating PID file (/usr/local/var/mysql/user.pid). I tried to spin: unset TMPDIR mysql_install_db but he did call…
mysqlasked 8 years, 10 months ago user27585 -
4
votes2
answers1770
viewsReferencing folders created in the project
After I go to Project > Add > New Folder, rename the folder and put classes inside it I can no longer reference it in another file, for example if I would use in one controller, I would use as…
-
4
votes3
answers3833
viewsReturn in hours the difference between two dates in JAVASCRIPT
I just saw this question here in Stack Overflow which shows how to solve my problem but in PHP. I would like to know how to calculate the difference between 2 dates and show this in hours. ex: var…
javascriptasked 8 years, 10 months ago LeandroLuk 4,989 -
4
votes1
answer783
viewsTwo conditions in SQL query with Laravel 4
I need to make a query to Mysql with two conditions. I tried to do so: $query=DB::table('veteranos')->where('ra', '2300')->where('flag', 0)->pluck('ra'); In this way, the second condition…