Most voted questions
150,413 questions
Sort by count of
-
6
votes3
answers1754
viewsWhat is called the replaceable method in the constructor?
In a class that extends JFrame, I have some calls on the builder, as can be seen below: public ListaDeOficiosUI() { try { this.oficioController = new OficioController(); this.initComponents(); //o…
-
6
votes0
answers1201
viewssynchronize Local database with Web
I’m developing an application in Cakephp, with a Mysql database. a part is already working but from the beginning I need a solution to the following problem: My application should work online, but…
-
6
votes3
answers246
viewsDeal with exception that guaranteed will not occur
Here is an example of a method to illustrate the context of my doubt: public void comprar(int numeroLoja, int numeracaoProduto, String nomeMarca) throws LojaNaoExisteException,…
-
6
votes3
answers1233
viewsHow to login to desktop application via web application?
I have a web application developed with ASP.NET MVC and log in by storing the data in Session. I have another application, however desktop, that performs some tasks that cannot be done on the web,…
-
6
votes1
answer460
viewsHow do I use Scanner to capture keyboard inputs?
I would like to know how to use the Scanner in the java to simulate cin and cout of c++
-
6
votes2
answers2501
viewsDelete a macro using another
How to program one macro to delete another? Would it be something like, when, I need to call? Ex.: Sub callmacro() Call macro1 End sub And better yet, if I want to program it to delete itself? Ex.:…
-
6
votes1
answer476
viewsHow to use Angular JS and Laravel 4 without conflicting with Blade?
I would like to know how to configure Laravel 4 to use Angularjs without conflict with Blade, since the interpolation tags are the same?
-
6
votes1
answer297
views -
6
votes2
answers15001
viewsHow do I ignore a file after it’s already in a commit?
I accidentally added some images in my repository. But now I want to ignore them, but it is not obeying the data that was added in .gitignore Example: public/imagens/* How do I make a file or…
gitasked 8 years, 8 months ago Wallace Maxters 102,340 -
6
votes1
answer2595
viewsHow to use the arguments passed to a python script?
In scripts php, we can, when running from the command line, capture its values from the arguments passed through the variable $argv and its number through the variable $argc. For example (Script):…
pythonasked 8 years, 8 months ago Wallace Maxters 102,340 -
6
votes2
answers1188
viewsCharacter counter typed in a textarea
I have this text box to be validated, should inform the amount of characters remaining and show these characters remaining in span, could help me? <div class="novaLinha"> <div> <label…
javascriptasked 8 years, 8 months ago user39767 63 -
6
votes1
answer670
viewsHow to use GOTO in C to implement finite automata?
It’s my first time using goto in programming and I made a simple code here to try to implement the automato (must have much better modes), but my code is crashing at the time of running, I do not…
-
6
votes3
answers872
viewsSplit into two parts when it contains more delimiter in string with explode
$produto = "Leite Pasteurizado, Mucuri, Integral, 1 L"; $prod = explode(" ", $produto); $prod[0]; //tipo_produto = Leite $prod[1]; //marca_produto = Pasteurizado, Mucuri, Integral, 1 L I need you to…
phpasked 8 years, 8 months ago Julia Campos 157 -
6
votes1
answer569
viewsHow to reformulate radio and checkbox UI?
I’m using custom radio and checkbox bootstrap, I realized that some customers had difficulties in assimilating who were checkbox or radios and who should perform the action of selected. Example:…
-
6
votes1
answer649
viewsWhen marking checkbox, leave visible link
In my content management system, there is a checkbox in every item on the list, whether to edit, delete, view.. It turns out that this button appears all the time, and in case the user does not…
-
6
votes1
answer502
viewsOrchestration web service
On many websites and articles, the term orchestration of services is displayed. But what it means to orchestrate services and processes in the terminology of web services?
-
6
votes2
answers1187
viewsHow to configure crontab to run URL, Linux Ubuntu command
I created 4 methods and I want to run them by accessing the link. I have already tested the methods and all are working normally, but I have tried several settings by crontab -e. I’ve tried to: 0 *…
-
6
votes1
answer734
viewsError: "You must add a Reference to Assembly 'System.Runtime.Serialization'"
I’m making this mistake: The type 'System.Runtime.Serialization.Iextensibledataobject' is defined in an Assembly that is not referenced. You must Adda Reference to Assembly…
c#asked 8 years, 8 months ago user39571 -
6
votes2
answers747
viewsHow to find a link within an html file and switch to another link?
So far I could only know if part of the link exists in the file, but I do not know how to make the exchange. My code and this: $nomeArquivo = $_POST['nomeArquivo']; foreach ($arquivos as $a){ $aq =…
phpasked 8 years, 8 months ago Lenilson Teixeira 75 -
6
votes2
answers4341
viewsWhat is the best way to log in with Angularjs
In an app using Angularjs and Ionic, what’s the best way to authenticate in an API? I log in to all screens or use some session mechanism? I imagine that authenticating all controllers may consume…
-
6
votes5
answers737
viewsHow to save data from a changed grid?
My system has a grid with order items, coming from the dice. Well, I need to change the requested items, add one more item or even remove. You get the information in json and I’ll put it on the…
-
6
votes3
answers175
viewsWhy is my Array item not changed in foreach?
In the call of the method: AlunoPrivado aluno = new AlunoPrivado(); aluno.addCursos("Portugues", "matemática", "história", "física"); boolean result = aluno.changeCurso("Portugues", "ciências");…
-
6
votes1
answer483
viewsMigration, Delphi and Firebird. What is the correct way to deal with the Encounter issue?
I have a project in Delphi 7 that makes use of Firebird. I think about migrating this application to a Delphi XE version*. However, we know that from Delphi 2009 the String standard is Unicode and…
-
6
votes3
answers1548
viewsHow to enable and disable textarea with javascript?
After searching the site, I found this question with solution, but the solution is in jquery! When choosing option X need a field in specific is disabled and only be enabled again if another option…
-
6
votes3
answers14615
viewsChange remote git repository
I am using an online tool to make version control of my repository git, would like to change the remote to use another reference. How to change the remote repository (origin) git?…
-
6
votes1
answer474
viewsIs it correct to name html tag attributes arbitrarily?
I would like to know about creating and manipulating attributes in html that are created. We have the attributes already known as the id, class, etc. that we put in the tags so we can manipulate…
-
6
votes2
answers707
viewsHow to limit display of records to 30 days from today’s date
I wish I could limit the display of news that I have recorded in my banco de dados 30 days from today, for example: View registered news from 03/02/2016 à 02/01/2016, I tried to use some solutions I…
-
6
votes1
answer145
viewsIOS - How to make the app screen always lit?
I’m making an app for IOS I already have ready on Android, I wanted to make a method that left the screen always lit, but I’m not getting On Android I did this way: Mainactivity: PowerManager pm =…
-
6
votes2
answers91876
viewsHow to add a Foreign key to an already created table
I’m a beginner in mysql and can’t add a fk to a table I created. I have two tables (person, object) and I want to create a 'fk_person' in object that receives the value of the 'id' attribute of…
-
6
votes1
answer312
viewsPage Printing
Good morning, I wonder if there is any way to count how many times a given page (html) has been printed. I know we can count the times a modal was opened with the click of the button, in this same…
-
6
votes0
answers254
viewsHow to create PHP function to recover password?
I use 2 pages, one to insert the email (forgotPassword.php) that still only has graphic design. And the recuperar.php which will serve for the user to change his password. My user table (where the…
-
6
votes3
answers82
viewsHelp with Regex
Before asking I looked for several references, but still do not understand much and I managed to get only to a certain point. My goal is to validate that a string specific has 10 characters, the…
-
6
votes1
answer551
viewsSorting with heapsort
When ordination is done with the heapsort and the candidates for the tree root are equal, the priority order is given to the highest or lowest index element in the vector original or is given by the…
classificationasked 8 years, 9 months ago Daniela Morais 4,687 -
6
votes3
answers401
viewsHow to create Mysql search that returns lines without matching?
I would like to know how I can do a search that returns records that are not part of the research condition. For example, think about the situation where there is a database of a movie rental…
-
6
votes1
answer3041
viewsWhat is the __new__ in python method for?
class Fabrica(object): """ pra quê serve o metodo __new__ in python? """ def __new__(cls[, ...]): # seu codigo aqui #EOF What she makes, and how to make use of it?…
pythonasked 8 years, 9 months ago user37612 -
6
votes1
answer140
viewsDynamically use LINQ aggregator
I am trying to create a function to use Linq aggregator functions (sum, Average, Count) and I am not succeeding. I have the following code: private double…
-
6
votes3
answers280
viewsHow to mount SELECT?
I have a Products table with: ProCodigo - Primary Key de Produto ProNome And another Price History table with: HisCodigo - Primary Key de Histórico HisData HisPreco ProCodigo - Foreign Key de…
-
6
votes1
answer12988
viewsGet the $index of an ng-repeat that contains an ng-controller in $Scope in Angularjs
I have an app that uses a ng-repeat to list information. Like this: HTML <div ng-controller="listaCtrl"> <div ng-repeat="item in lista" ng-controller="itemCtrl">…
-
6
votes1
answer298
viewsWhen to use distributed database?
I would like to know an example in which situation I would need to use a distributed database?
databaseasked 8 years, 9 months ago Miguel Batista 2,812 -
6
votes2
answers402
viewsPass ROWTYPE parameter with the EXECUTE command
I am developing a function in Postgres that aims to recover for each record of a query the result value of a check contained in a set of functions. Of these functions only one will return the…
-
6
votes1
answer2544
viewsWhat is needed for OCR Android
I’ve seen several articles and questions on forums and many other sites on the internet, I know what is necessary for a basic ocr, I’ve managed to do one and so but what I’m going to ask here is…
-
6
votes4
answers114
viewsHow to make a query that returns the last record of each day?
The doubt is simple, but unfortunately I don’t think the resolution. I have a table with several records, and I need to perform a query that returns the last record of each day of the last 20 days…
mysqlasked 8 years, 9 months ago Christian Beregula 1,512 -
6
votes2
answers1558
viewsHow to know the day of the week in R?
Is there a package or function in R that allows to easily obtain the day of the week from dates? datas <- c("2010-06-28", "2011-05-25", "2010-09-28", "2011-12-05", "2010-09-14", "2010-01-01",…
-
6
votes2
answers2059
viewsUpload Image Asp net MVC
My question is this: imagine a scenario where I have a canvas that has a form, and in this form also exists upload images. Let’s assume that I fill out the entire form, and select 3 images in the…
-
6
votes1
answer360
viewsC# Parallel.Foreach Javascript equivalent
I’m trying to write methods with behavior similar to Array.prototype.forEach and the Array.prototype.map, but using multiple threads. In the case of Array.prototype.parallelMap, I did the following:…
-
6
votes1
answer439
viewsAdd grid data to database
I have a loan screen and in it I have a datagrid with a checkbox selection and I would like to add in the database only the line selected by the user, as I can do? Loan screen code: using System;…
-
6
votes1
answer572
viewsDDD - What is a complex domain?
It is often said that DDD (Domain-driven Design) best applies to complex domains. What characterizes a complex domain? (please be more specific than "it has complex business rules"). What would be…
-
6
votes3
answers4966
viewsWhat is the function of the operator "!" (exclamation)?
In this method: public boolean aplicaDescontoDe(double porcentagem) { if(porcentagem > 0.3) { return false; } else { this.valor -= valor * porcentagem; return true; } } What the operator means !…
-
6
votes1
answer5018
viewsHow to Insert/Recover Image in Mysql Database
I would like to know in a clear and simple way how to insert/recover image in Mysql database? I’m using Firedac to connect to the Mysql database. I have a JPEG image and want to save it in a Mysql…
-
6
votes3
answers268
viewsHow do Javascript functions behave in relation to the scope?
In Javascript, functions are objects and can be passed as parameters to other functions. But what about when a function with dependencies on an object, such as variables and other functions, is…