Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer67
viewsHow to use the PDO class in this situation
I am using the PDO class to connect the database but in this particular situation I do not know how to use the PDO because in the mysql_fetch parameter I need to put a variable and so I searched…
-
4
votes1
answer1119
viewsMenu made in Bootstrap
Centering a menu made in Pingendo Bootstrap? <html> <head> <meta charset="utf-8"> <title>Boletim Online</title> <meta name="viewport" content="width=device-width,…
-
4
votes2
answers254
viewsExecution of Instructions
I’m reading a book on Introduction to Computer Architecture. One excerpt from the book says the following about the RISC interface of processors: "Each instruction typically takes a clock cycle."…
-
4
votes2
answers14165
viewsDynamic allocation for struct
I need to dynamically allocate space for a structure, but I am not able and I do not know my error is at the time of the statement or allocation, follow the functions consistent with the statement.…
-
4
votes1
answer5050
viewsHow to Read MFD Files Tax Hard Disk Printer
Is there any way to read MFD file tax printer that is on hard drive? These files are binary there is some way to read binary files and save with txt? Printer: BEMATECH MP-2100 FI…
-
4
votes1
answer728
viewsError inserting Apostrophe in component using Auto Complete
I’m having trouble inserting the ' Apostrophe when I’m going to search for the component AutoComplete of Jquery UI. Jquery $("#<%=txtHipotePai.ClientID%>").autocomplete({ source:…
-
4
votes3
answers7469
viewsDoubt about input stylization="Submit"
I have a following class: .rodape input{ blablabla } And the following HTML <div class="rodape"> <input type="text" /> <input type="text" /> <input type="submit" />…
cssasked 9 years, 11 months ago Felipe Viero Goulart 3,693 -
4
votes1
answer405
viewsCompare two date attributes in the database with two Textbox
How can I compare a range of two dates? data_Inicio date data_Fim date textbox_inicio textbox_fim I can do this on the ASP.NET side and the goal is that my start date will never be less than my end…
-
4
votes1
answer1682
viewsHow to obtain PDF content generated by Rotary?
I am using Rotary for PDF generation from a . cshtml I can download the file through the application correctly using the command below: DadosConvite convidado = new DadosConvite(); convidado.nome =…
-
4
votes1
answer789
viewsTotal month to month with previous months
I need a SELECTthat brings the sum of data month to month and disappears with the total of the previous months. In the SELECT below is bringing the sum month by month. SELECT DISTINCT…
mysqlasked 9 years, 11 months ago Irio Broleis Filho 91 -
4
votes1
answer58
viewsTwo simultaneous routines
How do I run two routines simultaneously in the same program? I’m trying to download a file, and print a value while downloading. Exactly that: http = require "socket.http" function…
luaasked 9 years, 11 months ago Gabriel Sales 1,257 -
4
votes2
answers437
viewsWhat is the best way to represent a login table with two types of Facebook and Conventional authentications?
I have an Android app and have a conventional login Activity. Currently I want to add login with social networks. How best to store this type of distinct logins in tables. I create a single table or…
-
4
votes1
answer1566
viewsPrint integer combinations in ascending order
"Given two nonnegative integers m and n, generate all combinations of integer size m from 0 to n-1, in ascending order. Example: m=3 and n=5 (0 1 2); (0 1 3); (0 1 4); (0 2 3); (0 2 4); (0 3 4); (1…
-
4
votes1
answer367
views"cannot be resolved to a variable percentage"
I need to set the variable value porcentagem as defined in Spinner. The problem is that I need to use the value of porcentagem out of method setOnItemSelectedListener(), on the line int r =…
-
4
votes3
answers494
viewsHow to "unlock" any text at the time of "echo" and turn each word into a link
I made a database and in this database register a phrase, I would like that when I was going to give the "echo" in that sentence, each word would become a unique link. Ex: recue o código em 4…
-
4
votes2
answers1251
viewsJavafx Threads Update UI and load System in the background
I have a Stage Main that is my Login: In the FXML of that Stage I have a Region and a ProgressIndicator with the property setVisible(false) After successfully logging into the application the…
-
4
votes2
answers872
viewsWhat is the best way to create a conditional foreign key Constraint?
In some cases, it is interesting to create a foreign key reference conditional, that is, that does not allow to reference all the records of another table, but only those that assume a condition.…
-
4
votes2
answers7173
viewsFirebird SQL auto-increment
I’m taking an SQL/Modeling course in mysql the creation of a composite table would look like this: USE banco; CREATE TABLE clientes( cli_id integer not null auto_increment, cli_nome varchar(20) not…
-
4
votes2
answers300
viewsReturn N elements from a list in jQuery
I have a list of elements, let’s say a list of rows in a table: $('#minha_tabela tr'); There is a selector, method or overload in jQuery that I can return more than one line by passing multiple…
-
4
votes1
answer1474
viewsScheduled tasks on the web
In Google Inbox allows the creation of reminders and allows you to postpone them to a certain date and time. The reminder is then taken from the main screen and when this exact date and time comes…
-
4
votes1
answer162
viewsList non-visual component
I have tried several means to list all the non-visual components of a form, such as: OpenDialog, ImageList, TableAdapters and etc. but without success. To find the controls on the screen, I managed…
-
4
votes3
answers464
viewsadb error: The Connection to adb is down, and a Severe error has occurred
I am developing for Android and am having the following error: The connection to adb is down, and a severe error has occurred. -You must restart adb and Eclipse. Please ensure that adb is correctly…
-
4
votes1
answer305
viewsCorrect syntax for SELECT and INNER JOIN in Zend
I believe it’s a simple question, but because I don’t know 50% of Zend I’m racking my brain, so here goes: $sql = $db->select() ->distinct() ->from(array('cli' =>…
-
4
votes3
answers527
viewsStructure/Nomenclature of Tables
I am developing a permission system and I have a universe of 9 tables, which form the final permission for the user to use my systems, however, I am in doubt of how to build two of them, the…
-
4
votes2
answers92
viewsSetar schema in query with Repository
I have my Repository: public class RepositoryBase<T> where T : class { protected AppDbContext _context; protected IDbSet<T> _dbSet; public RepositoryBase() { _context = _context ?? new…
-
4
votes1
answer852
viewsHow do I layout an android app in Photoshop using PX if google only provides me DP?
I’m trying to draw the layout in photoshop, but I can’t understand this history of DP in photoshop, in code it’s okay, the compiler understands, but in photoshop I can only work in PX. Can anyone…
-
4
votes0
answers149
viewsEnterprise Application Project dependency problem
I’m having trouble with a java project ee. (Enterprise Application Project). I’m using wildfly-8.0.0.Beta1 server. The structure of my project is as follows:: I already put the EJB Project in the…
-
4
votes1
answer241
viewsstart Vagrant server in windows using git bash
As seen in the log below when starting the server such error occurs. Dei Bundle install and then tried to start the server. => Booting WEBrick => Rails 4.1.1 application starting in…
-
4
votes2
answers975
viewsMake a conditional update on ON DUPLICATE KEY
I have a query that takes the data from a . csv and inserts the data into the table. If the position is the same it updates the fields. I need that in addition to checking the position the query…
-
4
votes1
answer812
viewsHow to convert text into HTML entities in a way that is compatible with Ckeditor?
I need to do a textual search on a set of data produced by Ckeditor. This editor converts text into HTML entities such as: Serviços oferecidos ---> Serviços oferecidos What I need,…
-
4
votes1
answer174
viewsChicken Escape - Backtracking Problem
I am implementing a problem in Java. The problem consists of an Nxn board, where a chicken and X wolves are placed. I get the size of the board, the position of the chicken, the number of wolves and…
javaasked 9 years, 11 months ago Pedro Webber 41 -
4
votes5
answers26088
viewsRegistration problem (Column Count doesn’t match value Count at Row 1)
I am having the error "Column Count doesn’t match value Count at Row 1" when I try to register. I already checked my comic book and everything seems to be in order but nothing to solve this mistake.…
-
4
votes1
answer91
viewsHow to delete multivalue fields that do not match my query from the result?
I have some documents indexed as the below: { "doc_desc": "Indexing Child Documents in JSON", "doc_id": "379", "image_id": [ "28086# ho hum... this is page 1 of chapter 1", "28087# more text... this…
-
4
votes1
answer841
viewsDifference between calling the Fragment call and a new instance
I’m working on a college project where I made an app that uses Ragments. I’ve always been used to creating a Fragment as follows: // imports ... public class LoginFragment extends Fragment { public…
-
4
votes1
answer135
viewsKeep SVG line by always connecting two objects
I have two objects circle, that I can move with the mouse. I wanted a line between the two circles, that whenever one moves, the line is always glued. The code I have for moving objects: var dragged…
-
4
votes1
answer1175
viewsImport library in VS 2010
How to import a lib at Visual Studio 2010, I’m doing a project that I need to use: using System.Data.Entity 4.0 using System.Data.DataSetExtensions 4.0 I have the file that contains the lib, but how…
-
4
votes1
answer214
viewscustomize input for multiupload images
How can I customize a file input field for multiupload images? would like to get some information from the image, such as: format, size. (I know there are several plugins for this, but I would like…
-
4
votes1
answer1863
viewsCalling python script via a php script accessed by the browser
I have a php script that will receive upload videos and I would like to convert these videos using ffmpeg. I created a python script that takes parameters from php and calls ffmpeg to do the…
-
4
votes4
answers1592
viewsHow to ask the PDO if the insertion was made or error?
How to ask the $Produtos if the insertion was made or if there was an error in the insertion attempt or die of mysql? if(isset($_POST['cadastra_produtos'])){ ///////////////////////////////////…
-
4
votes3
answers249
viewsHow do you make sure the person who used the system is really her?
At the university where we are studying, we are developing a system in Java EE to reduce bureaucracy in some enrollment processes, extinguishing forms and generating PDF forms that, instead of going…
-
4
votes1
answer824
viewsCreate Dto by Constructor with a List parameter of a Hibernate entity
I have a @Query Spring, which performs a database query by an Entity, to create some Objects DTO. And the properties of this DTO object, I pass via Constructor, but I needed to pass as parameter in…
-
4
votes2
answers16723
viewsPicking values with names in JSON
I got this one JSON: {"nome_rede":"lucasl","nome":"Lucas Lima","imagem":"http:\/\/intranet.supersoft.com.br\/novo\/usuarios\/fotos\/lucasl.jpg"} How do I catch him using AJAX? So far my code is like…
-
4
votes3
answers729
viewsPrint vector data in a struct
I want to do a birth-date registration system. The final question is: as I print the birthday: 1/12/1990, 12/2/1977, 13/09/1999 and 19/04/1987. Would be the examples of the printing of dates, but I…
-
4
votes2
answers1970
viewsWhat is the relativity of the rem unit?
I have the following style sheet: html{ font-size: 16px; margin: 40px; padding: 32px; } p{ font-size: 1.5rem; padding: 2rem; margin: 1.8rem; } I know that the source of my paragraphs will be 24…
-
4
votes1
answer1217
viewsWhat problems can occur when using the "http://tempuri.org/" namespace on our webservices?
When creating a webservice, in my case using ASP.NET, I always change the default namespace to something related to my project, usually using the website URL for this. But lately I have had the need…
asp.net web-service soap namespace xml-namespacesasked 9 years, 11 months ago Guilherme de Jesus Santos 6,566 -
4
votes1
answer1778
viewsChange text and background color Tooltip
How do I change the background and text color of a Tooltip? I already did a search and found here a chunk of code but I can’t change it. Colors always stay the default Netbeans. Any suggestions? I…
-
4
votes1
answer4628
viewsIteration VS Recursive Methods
What is the difference between recursive methods and iteration and what are the advantages of using the two approaches in a java program?
javaasked 9 years, 11 months ago Eric Shussan 171 -
4
votes2
answers658
viewsReport is not displayed in Report Viewer when you pass parameters
I am trying to display a report, but when I pass the parameters via code it does not load the report, if I let it open the browser and pass the parameters at runtime works normally. Code of the…
asp.netasked 9 years, 11 months ago Alan Almeida 633 -
4
votes1
answer266
viewsHow do I send a message to stderr no bash via echo command?
I’m writing some script to deploy an application and need to send status messages to stderr instead of stdout, that command echo makes by default. How to do the command echo send the message to…
-
4
votes1
answer322
viewsHow to update the result field based on criteria?
I have the following table: CREATE TABLE ALUNO ( RA NUMBER(9), DISCIPLINA VARCHAR2(30), MEDIA NUMBER(3,1), CARGA_HORA NUMBER(2), FALTAS NUMBER(2), RESULTADO VARCHAR2(10) ); And the following data:…