Most voted questions
150,413 questions
Sort by count of
-
5
votes5
answers1089
viewsProblem with <link rel="stylesheet/Less" ... >
I’ll start studying LESS, but the problem is I can’t move on to the first step. If I put the <link rel="stylesheeet/less"...> does not work. Only work if I put the <link…
-
5
votes1
answer674
viewsPercentage of ajax requests
I wonder if it is possible to create a percentage in Ajax requests. For example: When the form is submitted it starts with 0% up to 100% (when completed) My ajax: index php. <script…
-
5
votes2
answers813
viewsAlarmmanager only stores an Alarm
I have a problem related to AlarmManager, For example, if I program an Alarm for 16:00 and another for 16:30 only the second is generating the notification, different from the second. I did some…
-
5
votes2
answers5263
viewsHow to calculate the difference between values that are in the same column?
I would like to know if there is any way to calculate the difference between values that are in the same column. For example: I have a table with 2 fields: date and balance. I need to add a new…
-
5
votes1
answer4311
viewsDynamic search with JSON - PHP - MYSQL
I’ve been looking on the internet but I couldn’t find any references, maybe because I was searching wrong, so I resorted to create this post. I have a query in the database (Mysql with PHP) that…
-
5
votes2
answers3382
viewsReceiving error: "Your login SYSDBA is same as one of the SQL role name" while trying to access base with Ibexpert
I need to access the data from a Firebird database (.FDB), but when trying to access this database using Ibexpert I get the following error: "your login SYSDBA is same as one of the SQL role". In…
firebirdasked 9 years, 10 months ago Rafael William 51 -
5
votes1
answer335
viewsSlide item to increment Textview
Is there any component that when sliding an item of a ListView, it increases a TextView in the item itself? As in the image below: Sliding to the right, increments according to the value that…
-
5
votes1
answer4267
viewsConvert JSON to Array in Javascript
Good afternoon, it’s my first question here. I’m getting the json below through an ajax request. [ {"SEMANA":1.0,"PRODUCAO":0.0,"PRODUCAO2":0.0},…
-
5
votes1
answer551
viewsHow can I create a 20-number Bet Card look in Jframe
It is a game where your bet will be competing to Sena, Quina and Quadra, so each bet can only have 6 numbers, I need the user to select 6 numbers from these 20 and then I take these 6 selected and…
-
5
votes1
answer2934
viewsWhere do I find the specs for DARF generation?
I need to know where I can find DARF generation specifications for payment through the digitable line. The DARF data I already have, I would like to be able to create the barcode, rather be using…
billetasked 9 years, 11 months ago sergiogarciadev 361 -
5
votes2
answers1712
viewsHow to Commit Deleted Files from Local Project?
DESCRIPTION: I have a relatively common problem, but it slows me down a lot in the project, so let’s go. Suppose I have a project with the examples directories: css, dist, src, js, fonts, and some…
gitasked 9 years, 11 months ago Vinicius Colares 1,352 -
5
votes1
answer9847
viewsHow to create string vectors in java?
"Make an algorithm to receive an integer n (number of students), an integer m (number of subjects), and nxm grades from 0 to 10, which each student obtained in each discipline. Present: a) which (or…
-
5
votes2
answers6555
viewsHow do I check if two strings are anagrams of each other?
I need to buy two strings and check if the second one is an anagram of the first one. I thought I’d use FOR repeat loops. I think you should first check if both are the same size, then go through…
-
5
votes2
answers6174
viewsHow to count the frequency of each letter in a string?
I need to count the relative frequency of each letter in a string (only letters), without considering the spaces, without differentiating between upper and lower case and without differentiating…
-
5
votes2
answers1405
viewsHow to make an image divide the text from within a bounded width div?
How to make a <img> break the text from within a <div> limited-width? For example, with this code: <style> #imagem { float:left; } #container { width:250px; background:#ccc; }…
-
5
votes2
answers1612
viewsImport module from another folder
I want to import a module that is found in a folder that is sister to the folder where I have the script, inside which I want to import the other script, ie: logic\ board.py` mlogic.py player.py…
-
5
votes2
answers844
viewsCONSTRAINT that adds parameter to FOREIGN KEY?
I have the following code for creating tables: CREATE TABLE pessoa ( cod_pessoa int NOT NULL IDENTITY PRIMARY KEY, nm_pessoa varchar (50) NOT NULL, tp_pessoa char(1) NOT NULL, endereco_pessoa…
-
5
votes1
answer4182
viewsGet File Size in Bytes in Java Script
I am validating the size of the attached file on my page before uploading using the following code: var tamanhoArquivo = parseInt(document.getElementById("documento").files[0].size);…
javascript jquery jsp file-upload internet-explorer-8asked 9 years, 11 months ago Eduardo Nobre 356 -
5
votes2
answers565
viewsWhat kind of tests can I still do on that code?
I’m doing a sequence of tests in a simple bank application, but I don’t know what kind of test I can do on this system to cover 100% of the code, it’s only covering 61%. I’ve done all the tests with…
-
5
votes2
answers242
viewsHow do I persist with information after reloading the page? (e.g., a chosen background)
I have a background swap script from the site: function bac(){ document.body.background = "img/1.png"; } <a href="#" onclick="javascript: bac();"> The user can choose the background image of…
javascriptasked 9 years, 11 months ago user18359 -
5
votes1
answer996
viewsIncluding in APK an Sqlite database
Is it possible to include the application database in the APK installation? I already have all the necessary records for the operation of the application and would like to include it during the…
-
5
votes2
answers117
viewsInheritance or Addiction?
Well, my question is this. I’m refactoring a system where I have an integration with a REST API, there’s a class called Marketplace (That queries the API) that I currently extend from the class Curl…
-
5
votes1
answer795
viewsGood practice with . NET MVC
I have an ASP.NET MVC application and would like to know what good practices microsoft indicates in the organizational aspect of the solution, using the latest technologies such as ASP.NET Identity.…
-
5
votes1
answer233
viewsHow to remove notification when user kills application
I have a notification that appears when a service is running and disappears when it stops running. If the user kills the application with the service running, the notification stays there forever.…
androidasked 9 years, 11 months ago Erick Filho 211 -
5
votes1
answer421
viewsSave compressed file to another directory
I have this function that makes the .zip of the current folder to save. But I want you to save to the folder backup. $data = date("d_m_y"); $exten = "_backup.zip"; // Nome final com extensão class…
-
5
votes1
answer11223
viewsBlocked cross-origin request
I am using an Elsevier API to fetch a book listing. To do this, I am using an example of them present at this link: http://apihtmlgen.elasticbeanstalk.com/sd_search.html I made my registration, I…
-
5
votes1
answer115
viewsVariable reference in Javascript
To generate the following matrix: 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 Consider the following code for constructing a matrix with equal lines: var linha = [1, 2, 3, 4]; var matriz =…
-
5
votes1
answer157
viewsLimit counter() to a certain level of the list list
I have this HTML I can’t change: <ol> <li>Main <ul> <li>Secondary A</li> <li>Secondary B</li> <li>Secondary C</li> </ul> </li>…
-
5
votes2
answers1076
viewsIdentify extension installed in google Chrome
How can I identify that the Google Chrome of the user who is accessing my site has a certain extension installed. For example, one has the extension of Glogo.com/Itau, etc.. I need to check this to…
-
5
votes2
answers7885
viewsGrab parameters passed by url on another page
I have this call to another page, passing 2 parameters. Response.Redirect("/frmPVFichaCadastral.aspx?CdProcesso=" + vhdfCdProcesso.Value + "&CdTipoUsuario=" + vhdfCdTipoUsuario.Value) How do I…
-
5
votes3
answers1405
viewsHow to export SQL records without duplicates?
I’m trying to remove some duplicate records from a table and I searched the Internet for how to do that, and I found something about distinct. My scenario is: I have a table that has a record with…
-
5
votes2
answers160
viewsHow do these sites load your HTML?
I ended up looking at source code from sites like Gmail.com and Secret.ly and noticed that HTML is embedded in Javascript, what is this technology that they use? Stay this way: <script>var…
-
5
votes1
answer3110
viewsUse Javascript/Google Maps database addresses
I have in a database the following columns: customer name, active or inactive, address and coordinates lat and lng. I need to develop a PHP application that will display green markers in Google Maps…
-
5
votes1
answer355
viewsHow to check if there is an already installed Source
I have a C# program that checks if there is a source already installed or not, but it is not working properly: I’m trying with the following code if (File.Exists(@"C:\Windwos\Fonts\Agency FB"))…
-
5
votes3
answers6557
viewsGet logged in user
In my project I have an authentication module and logout. But I wanted when the user logged in I’d get the id of it so that I would show the information concerning the login of it. Like a view…
-
5
votes1
answer537
viewsChrome and background Fixed bug
I have the following problem: I have some sections on the page separate in Ivs. Two of these Ivs get an image like background and background-position:fixed, so when scrolling the page the images…
-
5
votes1
answer108
viewsHow to serialize an Exception with closure
I am trying to serialize the error generated exceptions to record a log with all the information, but the problem is that some exceptions may come with a closure within the trace and fire the…
-
5
votes4
answers3412
viewsHow to take the value with getElement and assign to a variable?
I have this code where I’m getting the values correctly from the form (I made a alert with each item and is getting it right). Only when saving in the variable the sum is not certain, qdo dou alert…
javascriptasked 9 years, 11 months ago Steve Rogers 57 -
5
votes1
answer332
viewsProblems with dynamic allocation
In an exercise I need to make a record of a struct possibly declared as follows:. typedef struct Locatarios { char nomeLocatario[MAX_NOME]; int codigoLoc; float valorAluguel; } Locatarios; It is…
-
5
votes1
answer340
viewsWhat is the correct way to declare a chain of methods and prevent the same method from being used outside the scope?
In my last questions I was creating some methods to automate some queries. It’s legal, but now I need to control access to methods by specifying a sequence. When using the method Select(), i cannot…
-
5
votes1
answer2063
viewsPattern doesn’t allow accented character?
I have a form and am validating as follows: <input type="text" name="assunto" tabindex="5" pattern="[a-zA-Z0-9. - , ]{5,}" required> But if I type in some accented character (á, à, ã, ç) it…
-
5
votes1
answer175
viewsHow to run only one if without entering the other in PHP
I have two if parallel and I need to enter one OR the other, not both. But because I am inside one while with the first if, I couldn’t put just one else, having to do another if outside the while.…
-
5
votes1
answer91
viewsDynamize title with Angularjs
I want to dynamize my title page with Angularjs. It is currently static: <title>Workspace</title> I wonder how I can change that name, based on what’s written on database. Currently in a…
-
5
votes2
answers179
viewsObject type for Time type data (Ex: 1 min 56 seconds) in Android/Java?
I need to work with times, such as a chronometer (not my case), which at the end of its execution would have to keep its value. So I thought of some possibilities like: java.utils.Date: only that…
-
5
votes1
answer576
viewsHow/When to Close Hibernate Session?
I have an error after closing Hibernate Session public String listarTodosClientes() { session.getTransaction().begin(); List<Cliente> lista = session.createCriteria(Cliente.class).list();…
-
5
votes1
answer268
viewsHow to automate a deploy in Apache?
I have some systems based in Django that often need to be deployed (Deployed) on different servers. This involves, among other things, installing all the dependencies, downloading the project files,…
-
5
votes3
answers937
viewsOperators, order, relevance, how it is read and priority
I came across the following question in a comment from the following Question One more question. The != operator is the same thing as < ? So I decided to come up with an answer by explaining it…
-
5
votes1
answer518
viewsSending characters through the serial port including zero-value bytes
I am making an application in which I need to send a character array via serial to an external hardware (declared as unsigned char) containing commands and times. With the commands I have no…
-
5
votes2
answers5775
viewsDynamic array in Javascript
I’m trying to generate a array made up of others arrays dynamically. For example: check = function (title, filter) { if (checked.indexOf(title) !== -1) { checked[title].push(filter); } else {…
-
5
votes0
answers109
viewsWhat does high memory area (high memory area) understand in DOS?
I’m studying about memory management in DOS, and I haven’t found much information about what exactly is understood in this area of memory. Hug.