Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer2202
viewsDatasnap error with Indy
I made a server application that calling the methods by Browse, everything works perfect, but to test my methods I built a client using TdHTTP and I call the methods as follows: procedure…
delphiasked 9 years, 8 months ago Aparecido Silva 113 -
4
votes2
answers404
viewsApp style in pure CSS3 breaks while running on Android
I’m making an app with Cordova + Sammy.js and CSS3 pure. I can make the app perfectly responsive and with all styles working on Chrome and Firefox. It turns out that when I "build" on Ordova and…
-
4
votes2
answers1384
viewsSort by day of the week starting by today
I want to sort the results by days of the week I have 7 events, 1 event for each day, and have to order in the following way: Sunday, Monday, Tuesday, fourth, Thursday, Friday, Saturday Assuming…
-
4
votes3
answers12716
viewsSQL Grouping by name, date and quantity by month
I am not able to group this result per month ("PP.PAPELETA_DATA" field). Type the quantity (Count(PD.Personal) as Total) separated by month! Could someone give me a hand? Usage SQL SERVER 2012.…
-
4
votes2
answers775
viewsHow to Vector/Array integers indexed by strings?
How do I vector/array integer numbers with strings as index? Something that in Lua would be: vetor = { ["eu"] = 10, ["voce"] = 11, } ps: It will be dynamic, so it will not have a fixed size. ps²:…
c++asked 9 years, 8 months ago Gabriel Sales 1,257 -
4
votes1
answer1163
viewsA delimited context only has domain model code?
Reading about delimited contexts in DDD I was in doubt if this is an idea that relates only to the domain model layer or if this is an idea that involves more parts of the application. I’ll explain…
-
4
votes2
answers153
viewsChosen-ciphertext Attack what’s it like?
I’m reading about CCA but I can’t understand in any site I’m looking for, how this attack works and how to possibly avoid it?
cryptographyasked 9 years, 8 months ago Elaine 2,770 -
4
votes1
answer315
viewsHow to properly step data type by PDO
In the php section below, what is the type of PDO::PARAM should I use ? $cnx = new PostgreSQL(); //Classe de conexão do banco $data = '2015-02-13'; $select = 'SELECT * FROM eventos WHERE "data" =…
-
4
votes2
answers6847
viewsHow to avoid abrupt page breakage when printing an html table
I am developing an html page to be printed later. But when printing I could notice that the break of pages in the middle of tables, are getting strange and abrupt, as can be seen in the following…
-
4
votes2
answers3377
viewsMeanings of data-value, data-title, data-... attributes in HTML
I have seen in various HTML code markings such as: data-value, data-title, are almost always tag attribute names with the suffix: data-, I would like to know what they mean and without any…
-
4
votes1
answer69
viewsHow to see the value of a define or macro in gdb?
I have the following line of code: int a = MAX(b,c); How to verify macro definition MAX(b,c)? Sometimes, the same macro is defined in several different ways in a code (for example, depending on the…
-
4
votes1
answer4093
viewsHow to correct serrated source in Chrome?
I’m having a problem with Google Chrome. I don’t know if it’s CSS, but the fonts declared in CSS are getting serrated mainly in Chrome. I have tried the following properties to decrease serration…
-
4
votes1
answer1335
viewslimiting the value that can be entered in the input
I have a php variable that has a value that varies depending on the moment!! Example 1st moment $valor = 300 second moment $valor = 20 3rd moment $valor = 5300 fourth moment $valor = 1300 I also…
-
4
votes2
answers5553
viewsWhere to create the Assets folder in an android project?
Where the folder should be created Assets? I want to use it to store my sources.
-
4
votes3
answers269
viewsSolve logic error
I’m doing some college exercises, but I’m having a logic error in this exercise: #include <stdio.h> #include <stdlib.h> /*usuario entra com um numero, o programa devera imprimir o maior…
casked 9 years, 8 months ago Leonardo V. De Gasperin 713 -
4
votes5
answers6761
viewsHow to create composite key with Entity Framework 6
I have my model base that all classes inherit from it: public class Base { public int Id {get;set;} public int ClienteId {get;set;} } And an example of model: public class Grupo: Base { public…
-
4
votes3
answers12947
viewsOnclick in a select option
I’m using a select. I want the last option call another page. <select> <option>Teste1</option> <option>Teste2</option> <option…
-
4
votes1
answer1419
viewsHow do I access a dynamic id via a directive?
Problem: I need to within an Angularjs directive, access a dynamically mounted id within an ng-repeat, and thereby manipulate the class of a specific item. Briefly, I’m using the bootstrap accordion…
-
4
votes1
answer115
viewsProblems with using JSTL
I’m implementing a WEB application with J2EE, but I’m not able to list the data coming from Servletlistarcursos to the Listdecursos.jsp page that uses JSTL. public class ServletListarCursos extends…
-
4
votes1
answer7480
viewsORA-00980: synonym Translation is no longer Valid
What this mistake means? What actions can be taken to remedy it?
oracleasked 9 years, 9 months ago Leonel Sanches da Silva 88,623 -
4
votes2
answers150
viewsMap method does not work as expected
I’m studying Ruby (no Rails, for now). And I’m on the following scenario: agenda.Rb require 'set' class Agenda def initialize @contatos = Set.new end def contatos @contatos.to_a end def…
-
4
votes2
answers24752
viewsWhen executing "java" command in CMD it is not possible to locate or load the main class
After executing the command javac normally and create the file .class, I try to execute the command java plus it gives this problem of not being able to locate or load the main class. I think it…
-
4
votes2
answers1998
viewsOpen xls (password protected) file in Delphi and save data in Firebird table
I have an office file (.xls), password protected, which has several lines. I want to search the contents of the column 1 and knowing the row that the result is found I want to save this single row…
-
4
votes1
answer1749
viewsApplication icon does not appear
I’m making an application, but when I install it on my phone, the icon does not appear. I have no idea what it might be, the ic_laucher is there in the drawable folders. What can be? Manifest…
-
4
votes2
answers448
viewsHow to use class variable as default value in php functions?
class Teste(){ public variavel; public variavela; function teste($parametro=$this->variavel, $parametro2->$this->variavela){ // code } } Returns me the following error: Parse error: syntax…
phpasked 9 years, 9 months ago Lucas Anjos 189 -
4
votes1
answer445
viewsCalculate mod in php
How can I calculate 15,625 mod 23 only in PHP? I searched on google and other sources and did not succeed in my search, could give me more information?
-
4
votes2
answers257
viewsRestrict object method override in javascript
I’m trying to create an object where your methods can’t be changed. That is, its value, even if modified, should continue as originally defined. Example: var object = (function(object){…
-
4
votes3
answers1446
viewsSpecify fields I don’t want in Mysql
In Mysql, when we will make a SELECT, generally we can specify each field we want to return. SELECT id, nome FROM usuarios But let’s imagine a scenario where I have 50 columns in a table and I…
-
4
votes1
answer1076
viewsField SUM of two MSSQL Sub-consultations
I need a field derived from two sub-consultations that gives the sum of values based on a field. Follow example: SQL: SELECT CodCliente ,DataVenda ,Vendedor ,Valor ,DataPagamento ,TotalCliente…
-
4
votes2
answers2204
viewsHow to make SVG image fit the size of a DIV?
I have an image SVG of more or less 100 lines and 60 paths and need it to fit to any block node, such as a div for example. I tried to put a class css in the tag svg and adjust the width for 100%…
-
4
votes1
answer464
viewsError when using required inputs in Primefaces
I have some inputs from Primefaces inside a Wizard, showing only one of them: <p:inputText id="inputTitulo" value="#{editalBean.edital.titulo}" required="true" requiredMessage="Informe um título"…
-
4
votes1
answer134
viewsTransmit information without going through the server
The question is simple and fast, there is some way to send data without the need for them to pass through a server, for example to send data from a form that user A filled out to user B in real…
-
4
votes1
answer3803
views -
4
votes2
answers2104
viewsHow to put an image in front of a button?
I am trying unsuccessfully to put an image (Facebook icon) in front of a form newsletter: I tried to adjust the size, but was unsuccessful due to my poor CSS knowledge, I tried to narrow down the…
cssasked 9 years, 9 months ago adventistapr 5,498 -
4
votes2
answers45048
viewsCreate dynamic JS table to use in HTML
I’m trying to create a table in Javascript to then use it in a page, but this difficult to accomplish The goal is that the table represents a set of hospital beds that will be managed through the…
-
4
votes3
answers3392
viewsHow to use static and global variables in PHP?
I need the value of a variable in several functions to increment and decrement the value of the variable. I have tried using static variable started with null value, but even changing its value, it…
-
4
votes1
answer6781
viewsCalculate distance between 2 points in Google maps
I don’t have much experience with javascript and have no idea how to get the result of this script and move to a field <input text>. This script calculates the distance and time between two…
-
4
votes1
answer1832
viewsHow to Make a Simple Assembly Assembler
I’m learning about processor architecture and I intend to assemble an Assembler. What is the procedure and steps for writing a program that transforms written code into machine code? The assembler…
-
4
votes1
answer3617
viewsHow to remove bookmarks from a map with the v3 API?
I’m developing an app to design routes from data collected by an embedded GPS system. My server receives coordinates from different equipment and I am recording this in my database. What has helped…
-
4
votes2
answers2215
views -
4
votes1
answer380
viewsHow to Display Various Values of a JSON in PHP
How can I display all the values of a JSON in PHP ?? Let me give you an example, I use the Code below to request JSON $json_file =…
-
4
votes4
answers819
viewsShow post with ajax
I’m starting to log into jQuery only I need someone to write an opinion on my website and it will appear right below without having to update the page. wanted a person when inserting anything in the…
-
4
votes1
answer1280
viewsSave full path in the bank or just name with extension?
In the systems I used to develop back in the day, I used to save the entire file path in the database . Example: c:\xampp\htdocs\teste\imagens\post_44\stack_overflow.png // Image table imagem - id =…
-
4
votes1
answer159
viewsI cannot persist the data in the Bank
I think I’m doing something wrong in this class, because it is the only one of my system that is not persisting in the database. What am I forgetting to do to make it work? The method incluir()? If…
-
4
votes3
answers42289
viewsIs it possible to emulate a single ticket with mobile NFC?
Example: Instead of being necessary to pass the ticket in the bus machine, pass the cell phone! Or better.. the TAG identification would be the same on both devices, both ticket and mobile!
mobileasked 9 years, 9 months ago Everton Luis 1,499 -
4
votes2
answers686
viewsFull Date Return Type
How do I get that return? 2014-08-05 18:29:47.757 Using the Date. Date data = new java.sql.Date(new java.util.Date().getTime()); Using that my return is just 2015-02-03 and does not return the…
-
4
votes2
answers3388
viewsHow to query a data in an array in Javascript
I’m a complete beginner, first of all. A final challenge was proposed in the Alura system where you have to ask 6 numbers for a user and draw 6, then compare the arrays to see how much were hit.…
javascriptasked 9 years, 9 months ago Guillermo Mila 71 -
4
votes1
answer224
viewsKeep connection open in php webservice
I am building a simple webservice and PHP + JSON where I have 2 tables and I intend to perform CRUD operations. It is possible that the webservice is in the medium term consumed by many devices at…
-
4
votes1
answer542
viewsInvalid Colum name
SQL Server is giving me the following warning: "Invalid column name", where the column name has nothing else..…
sql-serverasked 9 years, 9 months ago GustavoSevero 2,567 -
4
votes1
answer2069
viewsHow to get a file back into an input type file field?
I have an html form that uploads a file and I can save it to a folder. The problem is that now I need to do the reverse operation, and return the file in this same input type file field so that the…