Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer233
viewsStore Files
I have a question about uploading files, I have to create folders for each client and save files from them (word files, excel, txt, dwg, dxf, ascii, pdf) ? It would be feasible to store all this for…
-
6
votes2
answers387
viewsHow to create a View for this Template case?
I’ve been trying to apply the solution to this question (How to pass checkbox list to Actionresult) in a problem I’m having but I’m not getting a positive result. I’m getting an array with several…
-
6
votes2
answers3464
viewsSecure authentication via REST
I searched and could not find solution to the following problem: How do I control requests on a particular REST service? For example, if I have a blog where I access my services (insert post, remove…
-
6
votes2
answers26381
viewsProblem connecting to SQL Server 2012 database on IIS
I cannot run my system queries on IIS, when running in Visual Studio I can get the result easily. The mistake I get when I try to do something is this::…
-
6
votes4
answers8703
viewsProgramming Online in C?
I want to know if there is a website that allows to program online, I tried to use Cloud9 IDE, but I can not program in C, someone knows some site to program in C, without having to install any…
-
6
votes2
answers1731
viewsHow to make a fixed and retractable footer similar to the Economy page of the Earth portal?
I have the idea of building a fixed footer on the page similar to that of the portal Earth Economy. Such functionality will allow me to expose a chat in this space. I like the Earth solution because…
-
6
votes3
answers5076
viewsHow to pick up the arrow keys in C/C++?
Is it possible to pick up the arrow keys (famous arrow keys) from the keyboard? if yes, how?
-
6
votes2
answers1506
viewsCompare date time with a timespan
On Asp mvc 4, I’m doing a query where I find the data where the hours are lower or equal than those entered by the user. That is, I have a dateTime and check with the user input variable (a…
-
6
votes3
answers691
viewsHow to leave Facebook comment plugin with 100% width?
Is there any possibility to leave the facebook plugin with 100 width%? I think his default is 550px wide.
-
6
votes2
answers4329
viewsString to Double Asp.NET C#
I need to convert a String value (returned by the database) to Double but when I do, it simply modifies the value. Example: the database returns 22.5, when I convert to Double at 225.0. String…
-
6
votes1
answer1286
viewsOpen images on the same page with Fancybox in Cakephp impossible
I’m trying to make a gallery, which consists of a list of thumbnails, which by clicking on the items would eventually make a popup window appear as in first example here. After several failed…
-
6
votes3
answers1655
viewsHow to verify which technologies the CPU supports at runtime?
I am writing a program for PC that has optimized function calls for SSE2, SSE3 and maybe SSE4. However, I cannot guarantee that the PC running the program supports these technologies and would like…
-
6
votes2
answers437
viewsHow to access jTextField statico created with swing?
So guys I got one jTextField that works normally but when I put it as static the setText no longer works, and I need it static because I pass the same to a function, I did it without the swing and…
-
6
votes2
answers234
viewsHow to perform an action before 'mousedown' in javascript/jquery?
My intention after all is to turn a 'mousedown' into a "Ctrl + mousedown". But I can only activate Ctrl after mousedown is processed. Example: $(document).ready(function(){ $('#CC…
-
6
votes2
answers2434
viewsHow do I get the position of an element that uses the Transform CSS property?
Imagine I have a popup that’s centered on transform:translateX(-50%) translateY(-50%) (if you have doubt about this solution, you can see more about it here, adapted of these answers). So far so…
-
6
votes1
answer307
viewsPHP code refactoring to provide image with specific size
The code below aims to provide an image with specific measures to minimize its size and thus optimize the web-site loading. Problem The image takes more than 1 second to be provided, making it a…
-
6
votes2
answers5503
viewsExport from html table to excel
I am trying to export an html table to an Excel file. This jquery plugin works almost perfectly for me. My problem is with accentuation, which comes to excel with strange characters. Some tip on how…
-
6
votes3
answers1123
viewsError in C# function to increment variable
Guys, I’m new and I have some "basic questions". I’m making a score, because there are many players I want to create the function to decrease/ increment. Incremental function public void…
c#asked 10 years, 11 months ago AndersonBP 143 -
6
votes2
answers652
viewsI cannot place a subquery inside the IN in the PIVOT
Below is the code for table creation and insertion of some data for test. CREATE TABLE [dbo].[tb_empresas]( [data] [date] NULL, [nome] [varchar](100) NULL, [valor] [decimal](18, 2) NULL ) ON…
-
6
votes1
answer829
viewsR workflow: strategies to organize a data analysis project
Based on this question from the SOEN, ask: What strategies do you recommend to organize a data analysis project on R? The project usually involves the following steps (not necessarily in that…
-
6
votes1
answer1270
viewsIs it safe to use ajax requests over and over again?
I want to create a 'mini server' to use on my site (tumblr), for real communication with my visitors and one way to do this is by using ajax requests. When the site loads, it requests a JSON file,…
-
6
votes3
answers1115
viewsClassic ASP out of IIS? Windows x64
Does anyone know any program/server capable of running classic Asp (Vbscript, Jscript) and other than IIS ?
-
6
votes2
answers2883
views -
6
votes1
answer181
viewsJAXB - Tag repeating, instead of nesting
I have a problem that I can not store more than one element in the same TAG, look at XML: <ItemCardapio> <nCdItemCardapio>10</nCdItemCardapio>…
-
6
votes2
answers244
viewsJquery iframe transport plugin works on IE10 cross Domain
I need to post xml using Federal Justice webservices, but I can only do it using IE10 in compatibility mode. I received the information that the jquery iframe transport plugin would overcome this…
-
6
votes2
answers7182
viewsHow to send an Array via POST to a PHP controller
I need to pass an array via POST to my PHP controller, the only way I have in mind is not to pass an array, but to pass the information through a separator (, |), but I didn’t want to keep giving it…
-
6
votes3
answers8147
viewsHow to fix javascript encoding problem?
I’m running the code below: alert('Não é possível realizar essa operação sem a seleção de uma banca.'); but it’s showing up like this:…
javascriptasked 10 years, 12 months ago Inael Rodrigues 307 -
6
votes4
answers35368
viewsExplanation about concatenation of variables in PHP
I always wonder how to concatenate strings with variables in PHP. I have some difficulty understanding the question of double or single quotes. I would like an answer to clarify why one or the other…
-
6
votes1
answer186
viewsPerformance in Javascript objects
By which means are obtained the best performance of Javascript objects. var Objeto = { propriedade:'valorPropriedade', init:function() { //Inicia Objetos } } var obj = Objeto.init(); or: function…
-
6
votes2
answers476
viewsVersioning scheme
In . NET, the assemblies generated have four version numbers. I’ve heard a lot about larger version and smaller version (major version and minor version), and that those would be the first two…
-
6
votes3
answers4083
viewsRunning jar in client from browser
I need to run a jar file that should be on the client’s pc over the web and pass some parameters to this jar, I managed to do this with the exec() php: exec('java -jar…
-
6
votes1
answer1456
viewsIncrease google login session time with Laravel 4
I work with Google API 3.0. My Laravel session expires in 5 years (not to log out anyway). But the Google session has 3 hours, IE, if the system stands still for 3 hours it logs from Google, but not…
-
6
votes4
answers9080
viewsSelect2 with AJAX
For some reason my Select2 using AJAX to fill it is not working. When I put a Debugger in the code, it does not enter the method result: and also returns no error. HTML: <input type="hidden"…
-
6
votes2
answers824
viewsName of months in Portuguese and English
On the site where I work, I use the following query to display in English the dates that are stored in the database: $conn->exec("SET lc_time_names = 'pt_PT'"); However, I discovered that the…
-
6
votes2
answers1338
viewsHow to increase the size of the GET request to put parameters greater than 10KB in NGINX and PHP?
I need to make a very large GET request with NGINX and PHP. Is there any configuration in NGINX or PHP that solves this?
-
6
votes1
answer1130
viewsCDI @Inject Named bean in another named bean
I am using jsf 2.2. I have 2 @Named @Named(value = "menuMB") @ViewScoped public class MenuMB implements Serializable{ } @Named(value = "produtoGeralMB") @ViewScoped public class ProdutoGeralMB…
-
6
votes4
answers41617
viewsSign of different Query
I have a problem presenting the Query. I got the field alvaraValidade which only receives Data fields. When I put nothing in that field, the field date is guarded as 0000-00-00. $sql = "Select *…
-
6
votes1
answer179
viewsDiv appear at the bottom (Superscrollorama)
I have a problem at Scrollorama. I wish the div started showing up right at the bottom, but she’s only showing up when I’m halfway through the site. The class: $(document).ready(function() { var…
-
6
votes1
answer1338
viewsHow to get phone number via facebook API
I am implementing login via facebook on my site and it seems that it is no longer possible to get the phone number of the user, even with your authorization.…
-
6
votes2
answers1772
viewsIs it possible to have dynamic rules with jquery validation?
I got three fields, two inputs text and between them a select. If one of the first two is filled in the other becomes mandatory. The problem is that when a single value, in the latter case, of the…
-
6
votes2
answers653
viewsjQuery resizing animation
Hello I am making a site with a small animation that is changed depending on the size window but there are 2 problems in Nav bar. Problems are: window > 800: animation is only trigered when I…
-
6
votes3
answers3071
viewsDoes anyone know how to insert names in alphabetical order into a c++ vector?
I made this code but it doesn’t work right, it inserts in alphabetical order backwards. void inserirNomeNaLista(vector<string> &lista) { vector<string>::iterator itr; string nome;…
-
6
votes3
answers2397
viewsjQuery autocomplete shows no options
Description Need: I need to make an autocomplete with jQuery, PHP and from what was selected, caught the ID, I make a query in the database and display what I need. Problem: I’m having trouble…
-
6
votes1
answer332
viewsSpring MVC + Joda Time + @Datetimeformat
Description: The Spring does not convert using the @DateTimeFormat, try to order the start of the two forms below and it returns to me a 404. When I send the object without this field it creates the…
-
6
votes2
answers254
viewsNews just for certain group on wordpress
When inserting a post in wordpress, I have the taxonomy 'group' with terms 'pharmacies, grocery stores, snack bars...', which are the groups, because I already have customers for these groups. What…
-
6
votes1
answer533
viewsDifferent multiple select rendering for each browser
I have the following code: <select multiple="multiple" id="carros" size="1" name="carros"> <option value="volvo">Volvo</option> <option value="saab">Saab</option>…
html internet-explorer google-chrome firefox cross-browserasked 11 years ago Philippe Gioseffi 3,202 -
6
votes2
answers2854
viewsHow to view a PDF in the browser with an ajax request?
I make a requisition like this: $.ajax({type : 'GET', url : URL_APP_CONSULTA_BOLETO_DIVIDA_ATIVA + url}); I have a java method that returns something like this: return…
-
6
votes4
answers6021
viewsExchange text by clicking on it to display/hide an element
I have the following example done in Javascript, of which is a text written "See more", that when you click on it you can see more text: Example in Jsfiddle Code <head> <title>…
-
6
votes5
answers1876
viewsRetrieve a final value from a json in Javascript
You can recover a result value from a url by jQuery? My problem is this, I need to receive the final result of this url:…
-
6
votes2
answers772
viewsError executing Cordova build command
I’m executing the command build cordova (after finishing the settings exemplified in this link: Phonegap The Command-Line Interface). But the Node.js returns this error: Generating config.xml from…