Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers12278
viewsC: Change color of letters (multiple colors on one screen)
For example, I want print on the same screen: printf(".___. .___. .___.\n"); printf("._1_. ._2_. ._3_.\n"); printf("Digite 0 p/ sair ou outro número p/ continuar: "); but I want the letters of each…
-
4
votes2
answers670
viewsHow can I make a variable wait for the user to press 1 of 4 buttons?
Well, I’ll try to be clearer. I have a variable called int tentativa and I want it to receive a specific value depending on the button the user presses. The buttons are btPedra[0], btPedra[1],…
-
4
votes3
answers821
viewsWhat is an object returned in parentheses?
} return (carro); } Does it have any behavior other than the object without parentheses? I was in doubt, apparently the code works normally.
javaasked 9 years, 4 months ago daniel12345smith 2,120 -
4
votes1
answer3125
viewsHow to set up UTF-8 in Android Studio?
This error appeared in Android Studio. Is there any setup to fix? Error:(85, 69) error: unmappable Character for encoding UTF-8
-
4
votes1
answer370
viewsHow to display an html page in a Jtextpane?
People I’m trying to display/integrate a php page into a JtextPane, works but I have no control of HTML, it just displays the text that the page generates and I would like to display with HTML,…
-
4
votes3
answers1762
viewsRecover logged in user
I have Java Web application, but I want to do the following: When I log into my application with a certain user then I need to do some operations, such as saving some information in the database,…
-
4
votes1
answer1342
viewsHow to leave a semi-transparent Delphi form?
Hello, to make it easier to understand see the example of the image below, thank you for reading my question!…
-
4
votes1
answer724
viewsHow to map entity with Hibernate to create non-unique constraints?
I’m trying to create an entity with the following mapping: @Entity @IdClass(AutenticacaoPK.class) public class Autenticacao { @Id @OneToOne(cascade = CascadeType.REFRESH) @JoinColumn(name =…
-
4
votes4
answers1244
viewsHow to Catch Data with JSON on Android
Hello how do I get the data from a web-service that I have? I have the following code in JAVA Android to save the information:…
-
4
votes2
answers3389
viewsQuotes inside quotes to send string parameter
The PHP code line below should be displayed on the website and is called using Javascript. echo " <div class='tipoPagamento' onclick='SelecionarTipoPagamento({$row['CODIGO']},…
-
4
votes2
answers622
viewsComponent for HTML text formatting
I am looking for a component where the user can type the desired text and do the formatting of the text as well as understand. Something like that from ONLY or the image below. Does anyone know any?…
-
4
votes3
answers11070
viewsBATCH SCRIPT - Automating website login
I have the goal to create a file . bat that automates my login on a given site. I can open the site with . bat through the start Chrome.exe command "meusite.com", and would like to know how to…
-
4
votes1
answer2293
viewsMicrosoft.Speech.Recognation and System.Speech.Recognation Plataformnotsupportedexception
I’m having a problem with Microsoft.Speech.Recognition and also with the System.Speech.Recognation; Well, I was able to run the application to support the English language, which in the case is…
-
4
votes3
answers433
viewsSending external PHP variable to Javascript
I need to receive a message sent from PHP, and I need to receive it on the screen, to warn if the login is correct or not. However I do not want to use ajax. The code I’m getting in the internal…
-
4
votes1
answer95
viewsHelp with scroll animation with javascript
I have a vector image <img src="images/first-page/vectors/waves-723178.svg" alt="Imagem vetorial decorativa" class="vector-wave"> and it is positioned to the left of the screen .vector-wave {…
-
4
votes2
answers24209
viewsBootstrap input width using form-inline
I have a form-inline in bootstrap, as I control the width of input without losing responsiveness? Example w3schools form-inline bootstrap <form class="form-inline" role="form"> <div…
-
4
votes1
answer561
viewsHow to convert jQuery’s . on function to pure Javascript
Today I started trying to turn a function I’m using into jQuery (which @José helped me implement in this answer) to .on, for pure Javascript, but I’m facing some difficulties. The online courses I…
-
4
votes1
answer837
viewsHow to organize CRUD methods for each table?
I would like to know how to organize the CRUD (create, read, update, delete) methods of each class in Java. An example, to better understand: Suppose we have the classes Funcionario, Cliente and…
-
4
votes1
answer857
viewsSlow GIT console startup
Good afternoon, I’m having trouble booting my .git. It takes a while to load it. Typing any command takes about 30 s to 1 min. Which until another day, it worked normal. Very fast in any action I…
gitasked 9 years, 5 months ago user3527775 83 -
4
votes2
answers1312
viewsOpen Dialog in primefaces as soon as the screen opens
I have a login screen where I have a dialog with the Login and Password fields. I would like it to open as soon as the screen was opened. I read that from version 4.1 of the first faces I have to…
primefacesasked 9 years, 5 months ago DiegoAugusto 8,694 -
4
votes1
answer1964
viewsImage upload with Primefaces on Tomcat server, only the image path being saved in the database
Fala galera. I’m a beginner in Java and am doing a small Dynamic Web project using Primefaces, JSP, Hibernate and Tomcat. Basically it is several forms of registration and one of them is the…
-
4
votes3
answers173
viewsWhy is it not (easily) possible to hide private members?
Implementation concealment is one of the keys to good modern software engineering, and crucial in code reuse. Why then, in c++ is it not possible to hide the private data implementation? Since these…
-
4
votes1
answer281
viewsOptimize search in Mysql
Hello I have a query that I can’t optimize. Records: 1.904.447 records Name: table_mae Related to Records: 10.748.360 records Name: table_son -- index criado para id_tabela_mae -- index criado para…
-
4
votes0
answers190
viewsError : The manifest file does not exist
I’m having this error when I compile my crosswalk app with the command: >>> python make_apk.py After this command step also the values as --package, --manifest. However, the manifest…
-
4
votes1
answer570
viewsFiltering data from acceleration and magnetic sensors on Android
I have a player open source for Android some time ago. Months ago I created an audio viewer (the type of ones with bars and colors) where the user could interact, simulating an augmented reality…
-
4
votes2
answers1314
viewsEncryption and its bits. How to explain?
I have this encryption table taken from a book, but I don’t understand how it works. Why is the number of alternative keys 2 raised to 32? Why each bit fits 0 and 1? Why the number needed to decrypt…
cryptographyasked 9 years, 5 months ago Felipe Jorge 1,479 -
4
votes1
answer1952
viewsRead CSV file without needing to save it
I have following code: [HttpPost] public ActionResult importCSV(HttpPostedFileBase file) { if (file.ContentLength <= 0) { ViewBag.Message = "Nenhum arquivo foi enviado."; return View("index"); }…
-
4
votes1
answer96
viewsHow to work with Ajax with Jquery?
I have the following function: function getJson() { $.ajaxSetup({ async : false }); $.getJSON(baseURL + "/ObterCursos", function(data) { $.each(data, function(key, val) { items.push({ "Codigo" :…
-
4
votes1
answer359
viewsWhat programming should be done to use Spring Security with Jboss with annotations?
According to requirements of a project that is in the research phase, I need a large distributed system to work properly with Spring, at the moment I am having a lot of difficulties in integrating…
-
4
votes1
answer461
viewsHow to use Helvetica font or other on a website, and make appear any PC?
I’m having font problem on a website, I’m using Helvetica, but on other Pcs that do not have this source it does not appear. How to make everyone see with this source?
-
4
votes1
answer1666
viewsProxy project default, why use?
This proxy pattern example can be found on Wikipedia. reference: http://en.wikipedia.org/wiki/Proxy_pattern What I want to know is this: Why should I use this pattern? When should I use it? Why is…
-
4
votes2
answers1186
viewsBlock access to javascript files
I have a javascript file that makes ajax requests to my API only I do not want anyone to discover her link there is some way to block access to this file ? If there is no way to release so only the…
-
4
votes1
answer61
viewsFORTRAN and C interoperability
Each language has a unique character, that’s a fact! However, how to work with code C in FORTRAN and vice versa? It is possible to enter the code FORTRAN in the C with the directive # include…
-
4
votes1
answer3054
viewsHow to use Windows variables in Delphi?
Hello, I’m creating a project on Delphi, However, it needs to create some files, it wouldn’t give a good impression if it did this where it is, so I need these files to be created in the temporary…
-
4
votes1
answer1345
viewsNamespace and PDO = Error
I am making a Framework using namespaces. However in PDO connection file there is a strange error for me: Fatal error: Uncaught Exception 'Pdoexception' with message 'could not find driver' in C:…
-
4
votes2
answers312
viewsProgramming for Android with multiple screens
When I program for Android, I think of portability with the most diverse devices on the market. Seeing the layout of my Activity principal, I noticed that in devices with small screen (I did the…
-
4
votes1
answer250
viewsIs it possible to use vertical, edge or face coloring in a DIRECTED graph?
I would like to know if it is possible to use the staining technique in directed graphs? Whether yes or no, why?
graphasked 9 years, 5 months ago William Pereira 3,998 -
4
votes3
answers598
viewsIs it possible to assemble default layout for HTML pages?
If I have two pages: pagina1.html and pagina2.html, that are very similar, it is possible to use a page layout.html to determine common elements of each page? And thus also avoid the repetition of…
-
4
votes2
answers6881
viewsGraph possible python paths
I have a dictionary, where the key is a vertex and the value is a list of vertices adjacent to the vertex (key). dic = {'A':['B,'C'],'B':['A','C','D'],'C':['A','B','D'],'D':['B','C']} What I want is…
-
4
votes1
answer1381
viewsWhen should I use the @Enableautoconfiguration annotation and how does it work?
The Annotation EnableAutoConfiguration should be used in what type of project? and how it works in the application?
-
4
votes2
answers4187
viewsError while deleting FK
I have a table called: soliciting codemprestimo, dataemprestimo, horaemprestimo And another table called: loan, co-loan, loan, loan, loan, loan, loan) and used this command: INSERT INTO emprestados…
mysqlasked 9 years, 5 months ago Carlos Leandro Ferreira de Alm 339 -
4
votes5
answers25409
viewsShortcut to rename, overwrite, or replace words or variables alike in Sublime Text 3
In Eclipse, there is a feature that is triggered by the commands CTRL + ALT + U (Correct me if I’m wrong) which renames variables with the same name. Do you know any shortcut from Sublime Text 3 do…
sublime-textasked 9 years, 5 months ago Israel Sousa 1,362 -
4
votes2
answers122
viewsDoubt - Logic of numbers changing places
I’m trying to put together a C algorithm to find integer numbers that change places by multiplying by another. I haven’t found problems like this on the Internet, I don’t even know if there’s a way…
-
4
votes0
answers338
viewsConfiguration of the Maven
I created a project Maven (NOTE: It is the first time I am touching this technology), but he is making this mistake. This plugin what message is talking about I need to install it? How do? Another…
-
4
votes1
answer2506
viewsInsert data into a table from a Java form (Netbeans+SQL Server)
I have a form created so that I can enter data about a client and from this form open a table with a button that has the data, so far I have been able to link the buttons. Now my question is how I…
-
4
votes1
answer290
viewsProgress Bar to follow input text
Well I’m starting in Bootstrap and I’m having a doubt whether or not it’s possible that I’m wanting. I have a textarea where it must limit the content to 300 characters it is already working:…
-
4
votes1
answer549
viewsWhat is the relationship between MVC and Project Standards?
We know that the MVC Standard (Model View Controller) is not a Design Pattern, but an architecture standard. It’s also not a layered pattern, because it tells you how to group components while MVC…
-
4
votes2
answers879
viewsCreate a routine within an Asp net application in c#
I have to run a method on my project ASP.Net, made a screen for me to select a Excel and a method for handling and insertions in the bank, only that this method will have to be run daily, someone…
-
4
votes1
answer606
viewsPDF formatting
I would like to format the sizes of your cells and your text for PDF export. protected void ExportPDF() { int colCount = _gvConsultaRelatorio.Columns.Count - 1; PdfPTable table = new…
-
4
votes1
answer617
viewsHow to set a char in a Preparedstatement?
My typical variable is a char how to set this in Preparedstatement ? PreparedStatement ps = conexao.prepareStatement(sql); ps.setString(1, veiculo.getTipoCombustivel());…