Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers1552
viewsIs it possible to implement a dynamic array within a C structure?
How is it possible to create a dynamic array within a structure Example typedef struct historico_de_fabrica { Hist_id_rolos rolos[1000]; //<- este array em vez de ter 1000 posições queria em…
-
6
votes1
answer621
viewsCakephp - page using more than one table
I have a question, about saving data in the database using Cakephp, when you need to manipulate with more than one table. I am creating a customer registration system and in it has a system to…
-
6
votes5
answers23456
viewsAdd character in the middle of a string
Problem How to add character in the middle of a javascript string? For example: var string = "aacc"; // eu quero colocar as letras bb no meio da aa e cc I want the string be of such value aabbcc How…
-
6
votes1
answer1447
viewsDifferences between Log4j and SLF4J
What are the vantagens and desvantagens of each one? They can be usados simultaneamente in the same project?
-
6
votes1
answer5017
viewsExport formatted R to Excel data
Suppose a data.frame like this: tabela <- structure(list(vendedor = structure(1:4, .Label = c("A", "B", "C", "D"), class = "factor"), Total = c(3300, 440, 1020, 200)), .Names = c("vendedor",…
-
6
votes1
answer876
viewsCombination of 4 numbers in Mysql
SGBD: Mysql Problem: List all possible combinations between the numbers "1,2,3,4", so that they do not recur between them. Example: 1 2 3 4 12 13 14 21 23 24 31 32 34 41 42 43...…
-
6
votes1
answer188
viewsChrome.tabs.onUpdated.addListener with delay
I made an extension for Google Chrome that’s working. The goal is to change the color of the images' pixels on all web pages. To do this on the pages loaded in the tabs already open, I use the…
-
6
votes1
answer2229
viewsHow to add a control dynamically in C#?
How to add a control to a page ASP.NET dynamically using C#?
-
6
votes3
answers1650
viewsHow to turn a query into a json?
I’m trying to transform the data returned from a database query into Json format, so far it’s almost right, but I think the format is being created incorrectly! Json is being generated as follows!…
-
6
votes3
answers460
viewsHow to implement dynamic "Up Navigation"?
I’m trying to implement Up Navigation on my Android app but apparently I found no way to do that android:parentActivityName, set in the manifest, can be manipulated at runtime. What happens in my…
androidasked 10 years, 10 months ago Fernando Leal 9,770 -
6
votes2
answers1316
viewsAuto Build Tool for Delphi
There are applications for automatic build, such as FinalBuilder, and may it be Free or Open-Source? Preferably that supports old and new versions of Delphi. What would be these?…
-
6
votes2
answers345
viewsSQL Server 2005 and line version control
In my current scenario, every Friday, I need to list all rows of a table that have been added or changed. In this table we have a field DataDeInclusao which obviously receives the date of inclusion…
-
6
votes1
answer776
viewsReplicate/Copy elements from multiple tables
I have the following situation: The user has defined an establishment, where he has filled in data in two tables, and intends to replicate/copy all the same data, changing only the id of the…
-
6
votes2
answers2098
viewsHow to close a Jdialog after you finish running a Thread?
I have a configuration window that opens on the first run of the application I’m developing. After typing the directories that the application will run the user click save, some tests are run and…
-
6
votes2
answers2788
viewsHow to create a report with Crystal Reports parameters?
How to create a report with parameters in Crystal Reports? Create the report for me has no problems, but now I need to filter it according to some parameters of the system table. Can someone help me…
-
6
votes3
answers3192
viewsWhy so many folders with the name "Drawable" on Android?
I have a silly question. I already know the folders Drawable in the Android is to put the images with the relative resolutions. For example, the folder drawable-ldpi is to put images with low…
-
6
votes2
answers2105
viewstimediff() limited to 838:59:59, how to resolve?
SGBD: MYSQL Problem: I am adding HOURS to a TIME field type and the expected result is above 838:59:59, but is visible only up to this limit. How to solve? SELECT he.empresa,…
-
6
votes2
answers330
viewsImplement composite key C#
I’m performing some tests and managed to implement using this form: public class Residencia { public object Id { get { return String.Concat(Cidade, Estado); } set { } } private string Cidade;…
-
6
votes1
answer237
viewsHow to convert a value in UNIX type Timestamp to Datetime?
How to convert a value to type UNIX timestamp (seconds since 1970), example 1396148400, in a DateTime?
-
6
votes2
answers8155
viewsPush button by hotkey in Java
I have a java application created by Netbean IDE 8.0. In this application I created a Jframe and put a Jbutton, which when pressed displays a message. private void…
-
6
votes1
answer73
viewsHeight of div no load
How to leave the field at 2 divs about the same height as #result4 that I gave a load? <script> $(document).ready(function() { $( ".buscascript<?php echo "$row[id]"; ?>"…
-
6
votes2
answers7533
viewsThe sequence contains no elements
That’s the mistake that comes. An Exception of type 'System.Invalidoperationexception' occurred in System.Core.dll but was not handled in user code Below my expression that generated error: if…
asp.net-mvc-5asked 10 years, 10 months ago pnet 14,727 -
6
votes2
answers4212
viewsPHP/Mysql site integration with Phonegap App
I’m creating a website and app with Phonegap, I’m new to programming for mobile platforms. This site has a database and I want this database to be available directly in the App, but I don’t want…
-
6
votes1
answer374
viewsThreads running problem, using flags
I am having some problems in the complete understanding of the code because I am new to using java in thread. What code will do is control the flow, doing 55 iterations dividing between the thread…
-
6
votes1
answer4172
viewsPaint Dbgrid lines by selecting them
I’m painting the lines of a dbgrid, in the Delphi-xe3, but my condition to paint the selected line is not working properly. When selecting the row (set the focus) only the first column is being…
-
6
votes3
answers5346
viewsClone class objects using Icloneable
I’m trying to use the Interface Icloneable to copy an object, but I’m having a problem when it has a class property because the Icloneable does not create a new memory address for these objects, but…
-
6
votes2
answers237
viewsHow to add the fadein effect to this image transition code
I wanted to know how I can add the effect .fadeIn(500) in this system that exchanges the background every 10 seconds. <script> inicial_background = 0; function mudar_background(){ img = new…
-
6
votes2
answers2478
viewsHow to insert multiple arrays into a Mysql table
I receive via Ajax a request $_POST with 5 indexes and the last 3 are Arrays. It’s kind of like this: Array ( [c] => [s] => [dt] => [nl] => Array ( [0] => valor1 [1] => valor2 [2]…
-
6
votes1
answer3110
viewsDecoder for CAPTCHA
I need to turn a captcha into text, being specific, to perform the download of NFE on the site Receita Federal, and for this I have read about the OCR however, it does not seem to be 100%…
-
6
votes2
answers11874
viewsHow to create an infinite array?
I’m having a little problem and need to somehow create an infinite array, or rather, undefined, the user can enter as much data as necessary... How could I do it? I’m using the JDK6.
-
6
votes2
answers804
viewsWhy does this code loop infinity?
Because if I put an invalid entry like asdf the code below enters infinite loop? After capturing the exception and writing the message he should not ask for another entry again? import…
-
6
votes2
answers1880
viewsVariables with Bigdecimal
I am trying to add a value in a variable of type Bigdecimal, however independent of the calculation it results in 0. Sample code: BigDecimal valorTotal = new BigDecimal(0); public void…
-
6
votes4
answers11111
viewsConverting float to char array in C/C++
I recently took a test and there was a question that asked for a number like 123.456 was shown as 321.456. I thought the best solution would be to convert this to an array of char and then create an…
-
6
votes2
answers443
viewsReorder categories in a data frame
When we import data into R it sorts the categories alphabetically. How to change this order? Suppose these are the following data: df <- data.frame(categorias=c("Muito…
-
6
votes2
answers9026
viewsThe difference between Software Service and Standalone
I have a question about Softwares who function as Service and others that function as Standalone. Software Service (background process) A background process is a computer process that runs "in…
-
6
votes4
answers1095
viewsWhy can’t I release memory?
I have the following code: #include "iostream" int main(){ int* A = new int[4]; int* B = A; delete[] A; delete B; if(B == NULL) std::cout << "B = NULL" << std::endl; else std::cout…
-
6
votes1
answer2170
viewsWhat does 1e+24 Chrome console mean?
I noticed that when I type in Chrome console 1000000000000000000000000 he returns me 1e+24. And when I type 1000000000000000009901591 he also returns to me 1e+24 whereas 1000000000000000000000000 is…
-
6
votes4
answers2972
viewsConvert data to Timezone
new Date() in Javascript returns me this format: Tue Apr 01 2014 13:43:13 GMT-0300 (BRT) I need to convert this to a java.util.Date. That’s what I’m trying to use SimpleDateFormat but I couldn’t…
-
6
votes1
answer2281
viewsModeling for user permissions
I think this question is more of modeling analysis actually do not know if it fits the pattern of questions discussed by meta.pt.stackoverflow.com. I need to make my system in a way that almost…
-
6
votes1
answer632
viewsGenerate contour charts over a 360*360 position map with weights from 0 to 1
What technique can I use to generate graphics in the style of c and d of this figure? Man input will be in the standard: X, Y and the weight of that position, where X and Y go from -180°; up to…
-
6
votes2
answers375
viewsDoubt with inheritance in Java method
I have the interface below public interface BaseRelatorioDTO extends Serializable { public BaseFiltroDTO getFiltro(); public List<? extends BaseRespostasDTO> getRespostas(); } And I’d like to…
-
6
votes3
answers694
viewsScale div as image
I’m making a list of items, but this has some challenges: Responsive; Title may have more than one line; Sometimes I need to show an icon with a background color instead of the full image. Here is a…
-
6
votes3
answers4703
viewsHow do a select pick up 8 lines in a row or more where there are common values?
I have a table coordenada that has the columns codigo, latitude, longitude, data and would like to give a select which selected only if it had 8 lines in a row or more where latitude and longitude…
-
6
votes1
answer1195
viewsWhy does ob_get_clean wipe memory without starting the buffer with ob_start()?
I was one day doing some tests, analyzing how functions influence memory usage, and, by chance, called the function ob_get_clean(). I noticed that the function call "decreased" the memory size used…
-
6
votes2
answers3697
viewsHow to recover values of fields loaded with jQuery
Hello, I recently ran into a problem loading div content dynamically using jQuery, but it turns out that when I upload the content to that div, I can’t recover the values that are sent from it. The…
-
6
votes1
answer989
viewsGenerate UML from PHP code
Is there any software, preferably opensource, that manages the UML of a code already written in PHP? The hassle is having to update the diagram every time the code is updated.
-
6
votes5
answers29249
viewsHow to calculate age based on DATE of birth in Mysql based on month and day?
I have the appointment below, but she ignores the month and day of birth SELECT FLOOR(DATEDIFF(NOW(), c.nascimento) / 365) AS idade FROM clientes c In the result, most come right, but sometimes have…
-
6
votes1
answer517
viewsz-index of an element without a closed position
It is possible to know the z-index of an empty element using javascript? For example in this code: CSS #exemplo1 { z-index:4; } #exemplo2 { z-index:4; position: relative; } HTML <div…
-
6
votes4
answers616
viewsTrouble finding prime numbers
Today in college I learned about the for and the while. However, the code I am trying to formulate does not run. It compiles but "Buga" after it puts the value. The code is simply for checking…
-
6
votes2
answers160
viewsINSERT INTO Does not send data to database
I have the following code: $con=mysqli_connect("localhost","esferinf_fpessoa","*****","esferinf_factura"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " .…