Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer1023
viewsLayout Rendering Error
I used the Android layout support, specifically the Login Layout. When was render appeared this error: Exception Raised During Rendering: String index out of range: 0 In details appeared:…
-
4
votes1
answer1711
viewsJavascript 12 to 24 hour format
I have a digital Javascript clock that is printing 1/12 hours. How to convert to 13/24. <script> function relogio() { var d = new Date() var t = d.toLocaleTimeString()…
javascriptasked 8 years, 7 months ago denis 366 -
4
votes1
answer2328
viewsError Notice: Trying to get Property of non-object when picking the page title
I have a code that should take the title of the page example "Facebook - sign in or register" only that is giving error in this line $title =…
-
4
votes2
answers235
viewsWhy don’t all commands work with pipe?
I’m intrigued by the fact that kill and some other commands do not work with pipe. For example, I tried cat /tmp/server.pid | kill -9 and it didn’t work. Searching some forums in English I found the…
-
4
votes2
answers1979
viewsPass information to a Bootstrap Modal
I need to pass the id from a modal to my controller.php. In modal, when clicking the "delete" button I’m trying to pass via POST the id client, but controller receives nothing. Here I get the data…
-
4
votes1
answer1197
viewsWhat is the prefix attribute for in the html element (tag)?
Why do you use the prefix attribute on elements (tag) html? And in HTML5, can I also use it? Thank you! <html prefix="og: http://ogp.me/ns#">
-
4
votes2
answers665
viewsSum date with int
I’m trying to make a sum of days, informed in a field int,with a field date using SQL. I tested it as follows, but it sums up the day, but ignores month and year. Is there any way to make that sum?…
-
4
votes1
answer555
viewsBootstrap Nav-tab event to run on the c#server side
I am using the following code to use tabs in my Asp.Net application, is there any way to add an event so that when switching tab run some event on the server side equal to the ajaxcontroltoolkit…
-
4
votes4
answers569
viewsIn Object Orientation, does an inheritance violate encapsulation?
According to the book Design Standards written by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, make a statement: "...inheritance violates the encapsulation." Below is the paragraph…
-
4
votes1
answer907
viewsIcon Color - Android Toolbar
How do I make the icon color, in API’s smaller than 21, also white? Na 21 works ok, but below as for example the 16, turns black. I did it that way: Toolbar <android.support.v7.widget.Toolbar…
-
4
votes3
answers4316
viewsValidating select with jquery.validate
I am creating an application form where there are some selects, as course choice and date of birth, I would like to know how to make mandatory the user select something using this library…
-
4
votes1
answer362
viewsOrder of execution of Migrations
Hello! In my first job, I worked using code-first with Entity Framework 4. At this time, I noticed a limitation in it: the generated Migrations only ran in order. For example, if in my branch two…
-
4
votes1
answer386
viewsRecover Volume Name of Netmapped Disk Drive
I’m using DriveInfo.GetDrivers() to take the names of the disk drives present on the machine and list them on a TreeView. I made the code below that works, however it does not appear the names of…
-
4
votes0
answers32
viewsHow can a SSL/TLS protocol protect a website?
It’s a very old question, but I hadn’t stopped to research about, I did a quick search and I didn’t find anything useful to explain: How HTTPS protects a website? The question is fairly simple for…
-
4
votes1
answer107
viewsbRasilLegis - XML content does not Seem to be XML
I’m trying to lower the votes of Members to the propositions in votes held in the Plenary of the House of Representatives, in 2015, through the package bRasilLegis in R. But when I put the…
-
4
votes1
answer5773
viewsHow to specify values for my x-axis using matplotlib.pyplot?
I am unable to specify values for my x-axis, using matplotlib.pyplot. In some images the chart.xticks(years) solves the problem, but it seems that when the x-axis value set is too small, it uses…
-
4
votes1
answer115
viewsWhen should I use "xml:" in front of some attributes?
I noticed that some attributes use xml: for example xml:lang="pt-BR"? It seems to me to be an attribute, but it is neither local nor global. In HTML5, its use is required? <html…
-
4
votes1
answer74
viewsAttribute Translate: what will be the use of this future attribute?
What steps is the experiment of this attribute and when will the browsers begin to accept its use? And someone can understand and risks explaining what will be their real usefulness in the elements…
-
4
votes1
answer1193
viewsCreate class inheritance
I am studying object-oriented Java programming and need to perform the following exercise: Implement the class Funcionario and the class Gerente. Create the class Assistente, which is also a…
-
4
votes2
answers1310
viewstextarea with notebook lines style
I need to make a form for printing that could be typed in the browser or printed for writing. As it can be written on the printed sheet, I need a style in the textarea that draws the lines as if it…
-
4
votes1
answer586
views -
4
votes1
answer103
viewsHow to delimit the number of characters written per line in a "txt" output in R?
I’m writing a filelog and I want to print it on an A4 sheet. One of the parts of this filelog has a variable, with the following structure:…
-
4
votes1
answer1070
viewsWhat is Node.js and what does it replace?
The node.js is what after all? He subsistitui who? Javascript? Serverside? Can anyone explain me better? I did not find these questions directly on the Web.…
-
4
votes1
answer167
viewsHow to show the axes of a histogram with their respective classes in R?
I plot a histogram of the weight variable in my datasheet but it appears without the axes. The code I used was: hist(rehab.1$PESO, main = "", axes = F, xlab = "Peso(kg)", ylab = "frequências…
-
4
votes2
answers339
viewsHow to completely delete an Arraylist and a List
I would like to know how to destroy the erase completely a ArrayList and a List in full at runtime. example: ArrayList<Elemento> e = new ArrayList();//Elemento e uma classe for (int i = 0;…
-
4
votes1
answer400
viewsCheck which field already exists in the table
I’m making a query in Laravel to see if the user with the email, CPF or username entered already exists in the database. # Verificar se Usuário Já Existe na Base de Dados $verUser =…
-
4
votes2
answers1261
viewsDo not insert zeros to the left of a number
I have n inputs, which are created dynamically. What happens is that they cannot accept zeros left on the following occasions: 0.24 -> The system accepts 00.24 -> The system automatically…
javascriptasked 8 years, 7 months ago pc_oc 3,530 -
4
votes4
answers158
viewsPassing argument by PHP array
Save everyone, I have the following function exec($dia, $mes, $ano); would like to make a foreach to run it through a base in array. I passed the following way $a=array("1,2,2016",…
phpasked 8 years, 7 months ago Christopher Tavares 325 -
4
votes2
answers643
viewsHow to send an error message to view
I am a little lost here, I would like to put a parameter in the view to inform the user that his password is wrong, expired etc. the problem that spring-security identifies.…
-
4
votes3
answers7717
viewsOpen and Close div using the same Javascript button
I would like to make a menu appear and disappear (with fadein and fadeOut) using the same button, which in the case is a button with class ". hamburger" and I’m not sure how to do. Ps: I would like…
-
4
votes2
answers3900
viewsRPS Batch Digital Signature (NFS-e) error: Poorly formed reference element
We have a system that sends lots of RPS to prefectures of various cities in Brazil. The system was sending lots of RPS smoothly but last Friday (11/03/2016) stopped working and presented the…
-
4
votes3
answers603
viewsProblem sorting an array with Sort()
One of them occurs when I wish to order a array number. Ex: var a = [44,7,5,6,4,2,1]; a.sort(); console.log(a); The expected result would be: [1, 2, 4, 5, 6, 7, 44], but what is always returned to…
-
4
votes3
answers6502
viewsHow to install Composer globally on linux?
Usually, when we install Composer, I usually do so: curl -sS https://getcomposer.org/installer | php It downloads a file called composer.phar. But then I have to keep putting the path of the folder…
-
4
votes1
answer2544
viewsSelect last JOIN record
I have a table tb_processos and another tb_detalhes (saves details of a particular process), would like to take all the data of the process and only the last detail of the process. The way I’m doing…
-
4
votes2
answers232
viewsPower method and exception treatment
I must resolve the following exercise but I have some doubts: Create a class with only one method power, which receives 2 numbers and calculates the number 1 to the number 2. This process must…
-
4
votes1
answer373
viewsHow to check if there is scheduling in a time range?
I need to create an agenda where I allocate a service provider to work for a client. For example: Prestadordeservicos João will provide services to the customer condominium valley of the sun on the…
-
4
votes1
answer987
viewsNotifications with Spring
how to implement a system of notifications that receive an example notification counter in real time: My question is that when it is inserted there in the bank one more line and go from 4 to 5…
-
4
votes2
answers300
viewsImport . sql from Postgresql in Neo4j
I have a Postgresql . sql backup file and want to import that file to Neo4j (graph database). How do I?
-
4
votes1
answer245
viewsI cannot limit text with Japanese characters
I’m trying to limit the text "in Japanese" that will be displayed in some places on the page, it doesn’t seem that php can handle this type of character well. Example of php: echo substr("あ え い う…
-
4
votes3
answers404
viewsHow do you test something "unstoppable"?
Testing certain components of a system is simple if that component does not have very relevant dependencies, such as a class like this: public class Data { private final String _field; public…
-
4
votes1
answer113
viewsDoubts about formatting hexadecimal numbers in java for use in MD5
I would like to know why the author of the article put this part: senha = String.format("%1$032X", i); I was curious how he got this string: "%1$032X" Follow the full code: import…
-
4
votes0
answers139
viewsHow to get the highlight color of Windows?
How I access the user-defined Windows 10 highlight color.…
-
4
votes1
answer405
viewsHow to validate login without redirecting the page?
I have the following login form in a dropdown, my question is the following, how to validate the login without redirecting the page? Currently when the user informs a wrong password he is redirected…
-
4
votes1
answer893
viewsI cannot ignore fields when trying to return them as Json causing "Infinite recursion"
I’m working with Hibernate, Spring and Jackson (to ignore fields) and when trying to return the class User in a json request java returns error due to mapping @Onetomany and @Manytoone with class…
-
4
votes2
answers1719
viewsApplication boot with Windows
I have a Java desktop application, and I need it to be always started together with Windows (as a Windows service for example). This application should be running in the background and always be…
javaasked 8 years, 8 months ago Van Oliveira 91 -
4
votes0
answers177
viewsHow to monitor the progress of a VB.NET INSERT query?
I’m storing files in a database SQL server using a varbinary(max) field. I wonder if it is possible to detect the progress of the file upload (in which case it would be a INSERT in the table) using…
-
4
votes1
answer416
viewsHow to implement the Observer standard in practice, with database?
I’m studying some design patterns, and right now I’m learning about the pattern Observer. I’ve read books, I’ve seen some classes on Youtube, I’ve done the examples and everything. But now I would…
database pattern-design software-engineering observer-patternasked 8 years, 8 months ago Fábio Lima 81 -
4
votes1
answer665
viewsHow to pass a txt file to a Stream type parameter?
How to pass a file txt for a Stream type parameter? That’s the ActionResult which calls the method to read the file txt: [HttpPost] public ActionResult Incluir(ContaReceberViewModel pContaReceber,…
-
4
votes1
answer179
viewsProblem with boolean checks in Javascript
var a = '0'; if (!a) console.log('false'); if (a == false) console.log('false 2'); Why the false is not displayed but the false 2 is?
-
4
votes2
answers156
viewsWhat to use instead of "-use-mirrors" in the PIP?
When running the following command I get the following answer: sudo pip install --use-mirrors -r test-infra/requirements.txt Usage: pip install [options] <requirement specifier>…