Most voted questions
150,413 questions
Sort by count of
-
8
votes1
answer50072
viewsHow to get in SQL the last record inserted according to its date
I need to get a record from a table, where this record is what in date terms was last entered. Gender: SELECT Ped.Quantidade FROM ped WHERE data <= @data But since I have several records it…
-
8
votes1
answer1135
viewsHow to get the full CEP using reverseGeocodeLocation on Xcode?
I’m using the reverseGeocodeLocation to search for the zip code and it works well; however, it only brings 5 digits of the zip code. How to get the full zip code? Follow the code: -…
-
8
votes2
answers4852
viewsSend sms from a mobile device via HTML5/javascript
I am creating a WEB application for mobile device that will be downloaded in one of the stores, with a mini WEB server integrated and that works on any operating system(iOS, android, Windows8, etc).…
-
8
votes3
answers1134
viewsRetrieve statistics from a website
I would like to know how to retrieve Google Analytics statistics on my website in real time. The idea is to recover data such as how many visitors I have online at the time on a given page or how…
-
8
votes2
answers3832
viewsHow to capture microphone audio using HTML5 Audio API?
How do I capture microphone audio using the HTML5 Audio API and play it at the same time?
-
8
votes3
answers637
viewsDeploying queues for Websocket
I’m developing a server WebSocket which will control multi client connections, will basically function as a chat, will be a kind of game multiplayer, after many researches and some tests I realized…
-
8
votes3
answers4774
viewsHow to improve file recording speed for a Clientdataset?
I’m integrating a system with a bank file, and I’m having a problem with the process. I receive from the credit card operator a plain text file with approximately 1300Kb and about 5,500 lines. I’m…
-
8
votes4
answers17179
viewsHow to know if an element was clicked using pure Javascript
How to know if a descendant of a <li> was clicked using pure Javascript. <div id="list"> <a href="#">one</a> <a href="#">two</a> <a href="#">three</a>…
-
8
votes2
answers27342
viewsSubmit form with <a href=""> instead of <input="Submit">
I was given a layout of a form: <form method="post" action="" id="mail_form"> <div id="newsletter"> <input type="text" name="email_newsletter" /> <div class="newslink">…
-
8
votes4
answers37227
viewsCalling one function inside the other, through a string
To facilitate the work of other programmers in the company whose default is no pattern, i created a Javascript library with some form field formatting and validation functions (date, phone, CPF,…
-
8
votes1
answer7789
viewsHow to sign documents with digital certificate?
I would like to know how to sign documents with digital certificate using Delphi or Lazarus. If someone knows of some component, free preference, or some function that I can use would help a lot.…
-
8
votes1
answer3149
viewsDigital signature of software
I use the Antivirus Kaspersky and for it to allow my software, written in Delphi, run I needed to mark it as reliable software. The reason that the Kaspersky was that the software is unreliable…
-
8
votes5
answers35057
viewsHow to define the border color of a table without CSS?
Is there any way? I don’t want CSS either external or internal, only pure html. Follow my code. <table widths="30;60" cellpadding="1.5" border="1"> <tr> <td> <p…
htmlasked 10 years, 7 months ago Joao Paulo 11,760 -
8
votes6
answers5717
viewsDisable Chrome Password Save in Javascript
Would you have any way to disable the option to save password in Google Chrome, by Javascript or jQuery? I mean the login password. When my client logs in appears to him the option to save password,…
-
8
votes4
answers19992
viewsHow to transport data from R to excel?
I calculated a series of data in R and would like to know which command I should use to transport them to an excel spreadsheet.
-
8
votes1
answer135
viewsWhy Math.round(-0.2) returns "-0" and not "0"
I had a problem with Javascript today that I will describe: I have a collection of values, for example: US 11.3123 Brazil -0.2291 UK 0.4501 I want to show the values without the decimal places,…
javascriptasked 10 years, 7 months ago Andre Figueiredo 5,030 -
8
votes1
answer862
viewsCapture buttons pressed on video game control reliably
I want to use an Xbox controller to control a program. It’s not a game, it’s just an app Windows Forms. I don’t want to use XNA because I don’t want to force the redistributables to download when…
-
8
votes3
answers6333
views -
8
votes3
answers9428
viewsHow does serial communication work and how do I use C/C++?
I use the Debian 7.1 and need to make serial communication between a computer and a microcontroller using C/C++. I’ve done a lot of research on the subject, but the articles and examples I found are…
-
8
votes2
answers633
viewsSort array by a property
I am trying to sort an array by a specific property(weight), I found some possible solutions but they did not work for my case, someone would know where I am doing something wrong or another way out…
-
8
votes2
answers12416
viewsResize image with PHP while maintaining aspect ratio
I would like to resize images by the ratio from a remote link using PHP. This is possible? Type: http://site.net/imagem.jpg for…
-
8
votes1
answer426
views -
8
votes1
answer492
viewsHow to get the generic type entity type from the top interface?
I have the following situation: public class MinhaClasse : IMinhaClasse<Carro> { //... } public static void Main(string[] args) { var foo = new MinhaClasse(); } It is possible to get the…
-
8
votes2
answers14618
viewsSelect styling via CSS
I need to stylize the text inside the select, how to leave centered, put margins. I’m putting the class name more option and putting what I desire, but it is not working. I did so: HTML <h3…
-
8
votes2
answers3377
viewsHow to count lines of code in a . NET Solution?
What are all solutions (free or not) to count lines of code in a solution. NET? Use two Visual Studios: 2012 and 2013.
.net visual-studio-2013 visual-studio visual-studio-2012asked 10 years, 7 months ago Leonel Sanches da Silva 88,623 -
8
votes7
answers3980
viewsHow to check if there are numbers inside an input with Javascript?
Form validation with Javascript is something routine in web development, but always cause headaches! My situation is as follows: I cannot allow numbers to enter a 'name' field, but how can I do…
javascriptasked 10 years, 7 months ago valdiney frança 387 -
8
votes3
answers1694
viewsScript is not working in IE
I’m using this script in Chrome and it works normally. But in IE 8 or 9 it doesn’t work. I put a Debugger and an Alert to debug, but it doesn’t even enter the function. $(document).on("mousedown",…
-
8
votes3
answers267
viewsHave some problem playing the function for variable
Can anyone explain to me if you have a problem playing a function for the variable, for example, in this case I’m talking about the var marcar. In this code is working, I don’t know if it causes a…
-
8
votes4
answers32009
viewsWhat is the most complete linux for programmers?
I study programming by hobby about 4 years ago, I started with php, c#, I learned a little bit about everything, but now I’m thinking about going deeper. I’ve always used Windows that I’ve always…
-
8
votes2
answers4021
viewsCryptography in Javascript
On my site I use the Facebook API, through ACCESS_TOKEN. This 'key' of access to everything that the corresponding application can provide, that is, it is not feasible to leave it public. In view of…
-
8
votes3
answers1531
viewsHow to identify heat regions in thermal images?
I’m developing a project where I need to process photos taken from a thermal camera. The idea is to try to identify fires in these images. I would like to know what techniques I can use for such a…
-
8
votes3
answers5124
viewsTreat python numbers by adding dot
I am making a simple code to convert meters into millimeters. What would be the best way to treat the result. Ex: 1000 or 1,000 Code: valor_m = int(input("Digite um valor em metros: ")) valor_mm =…
pythonasked 10 years, 7 months ago Matt Costa 345 -
8
votes3
answers7891
viewsHow to create a click event that is only called when clicking outside a div?
I need you to click off a div (is a registration screen), the same if close. What selector should I use so that clicking anywhere outside the div that div closes? $(????).on("click", function(){…
-
8
votes4
answers15597
viewsCan foreign key become primary key?
exemplifying, I have two tables: customer and contact. The contact table contains the customer’s phone column as primary key, fax column and e-mail column. The client table contains the customer’s…
-
8
votes2
answers278
viewsHow to remove bug from antialising lines generated in Firefox and IE?
I’m creating a border on my website, with background image. Everything works perfectly in Chrome, but in Firefox and IE appear some unwanted lines. I have noticed that they are present in the CSS3…
-
8
votes4
answers178
viewsWhy do my webfonts only work with Chrome?
I’m creating a website through a Child Theme Bootstrap-based Shoestrap. When I use webfonts they only work in Chrome. What I’m doing wrong? This is my CSS @font-face { font-family:…
-
8
votes4
answers1082
viewsHow to verify that the properties of the window object are native?
I’m using Shim that modifies several of the properties in the window object of browsers. At this point I need to validate whether one of the specified properties is native or a Shim. Because Shim…
-
8
votes4
answers6417
viewsHow to split a string into C++?
I received this simple (I really thought it was!) challenge of creating a "tokenizer". I had to split the string " O rato roeu a roupa do rei de roma " into spaces. Then, after a long time, I…
-
8
votes3
answers1601
viewsBreadcrumb algorithm in ASP.NET MVC
I’m writing a system on Asp.net-mvc And the idea is that there’s a Breadcrumb on every canvas. With no ideas for a good algorithm, I created a Helper that returns a list of objects according to the…
-
8
votes3
answers853
viewsHow to replace hexadecimal value in a binary file?
Can you tell me how to replace the Hex value of a file with C#? Example: replace 62 61 72 ("bar") for 66 6F 6F ("foo").
-
8
votes4
answers47574
viewsCapture screen size at time of request
I wonder if there is any way in Javascript to execute methods at the time of the request that the client makes to the server. I have a project where I use several large images in the occupied memory…
javascriptasked 10 years, 8 months ago Pedro Vinícius 1,870 -
8
votes2
answers130
viewsDoubt about @media
made the front-end of a site, in which its main layout was at 1920px and I am adapting to other screens, using: @media (min-width: 0px) and (max-width: 1920px) {} I saw that in IE8 is not working,…
-
8
votes6
answers7569
viewsUse of global variables and class variables in Delphi
I have some questions regarding the use of global variables and class variables using class var at Delphi. Declaring class variables with class var. unit Unit1; interface type TClass = class public…
-
8
votes3
answers2494
viewsTable css type excel
I am creating a table for insertion/query of data that is the closest to the format of an excel sheet. My table: Problem: As the image above shows, when placing a input in a td, it does not occupy…
-
8
votes2
answers637
viewsHow to make a conditional y~x graph for each data.frame factor?
Suppose a data.frame like the following: set.seed(1) dados <- data.frame(w=rep(c("A", "B", "C", "D"), 50), y= rnorm(200), x=rnorm(200), stringsAsFactors=FALSE) How to create a chart y~x separated…
-
8
votes2
answers579
viewsWhy does setting a CSS property with the ! attribute not work in the . css() method?
I would like to know the real reason for the disability that the function jQuery.css() has, which would be the fact that when using the attribute !important in any assigned CSS property, the same is…
-
8
votes2
answers176
viewsWhat is the forecast to support importing text/html content into modern browsers using the link tag?
Recently I came across the current TAG documentation <link> on the website W3.org - http://www.w3.org/TR/html-imports where you specify that you can import content with mime-type text/html, ie…
-
8
votes3
answers997
viewsHow do I add jQuery library with Javascript?
I would like to know how to load the jQuery library with pure Javascript and run something simple with jQuery after its load? My code is like this: function colocaScript(){ var scriptJquery =…
-
8
votes1
answer506
viewsHow do I catch the current percentage of a download?
I want to get the value of the percentage of an ajax request on an external server. How to do? $("#uptade_space_disk").click(function(){ var url = "/calcular-espaco-em-disco" jQuery.ajax({ url: url,…
-
8
votes4
answers3248
viewsHow to implement a textarea responsibly?
I want to use a <textarea>, but instead of using rows="4" cols="100", wanted to wear something like this: style="width: 80%" so that the layout is responsive. But since this does not work, IE,…