Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer4841
viewsSHA-1 key problem in apk release and debug
I finally got a version alpha from my Android app and decided to send it to the Play Store for the first time. As I’ve never done this before( I’m new in the world of Android development), I read…
-
4
votes2
answers661
viewsReturn jtable line information after selection
I have an application with 2 Jframes.. 1st Jframe: A screen with a search button and Jtextfield 2nd Jframe: A Jtable with BD information. When I click the search button in the 1st Frame opens the…
-
4
votes1
answer124
viewsHelp in struct C, unable to feed
Guys, good morning, I’m creating this simple code, just to read, and display, this vector information, like struct. Only that in executing this code, in the act of execution, I can not feed neither…
-
4
votes2
answers1683
viewsHow to sort this php array?
I have this array: $res = array(); $res[] = array("16/08/2013", "13:32", "ROBERTO"); $res[] = array("16/08/2013", "13:16", "AMANDA"); $res[] = array("14/08/2013", "12:36", "SILMARA"); $res[] =…
-
4
votes1
answer170
viewsProblems with python code in file i/o
Hello, I’m beginner in python, I’m programming in 3.5.1, I was doing a snippet of code that reads and then removes a line from a file: lista = {} # Essa função lê o arquivo e divide ele em linhas,…
-
4
votes1
answer1072
viewsChar comparison, ignoring the case sensitive
The proposal is to create a program that compares n first positions of the two vectors and returns saying whether or not they are equal. So far so good, but I do not know how to ignore the case…
-
4
votes1
answer231
viewsError installing Python Polyglot package by Pip
I am trying to install this package/module by Pip and I am not able to find the solution. Follows Traceback: C:\Users\chris>pip install polyglot Collecting polyglot Using cached…
pythonasked 8 years, 4 months ago Christian Felipe 628 -
4
votes2
answers3815
viewsSelenium WebDriver_ Access page without opening browser
Can anyone tell me if it is possible to access the page without opening a browser? That is, do the tests without opening the browser. Is there any way? If there’s a light. I’m using the Firefox…
-
4
votes3
answers605
viewsHow to get a String size correctly using UTF8?
I’m doing some tests and I realized that when the string has special characters it is counted more than one in substr. Example: $string = "PAÇOCA"; echo strlen($string); echo substr($string, 0, 3);…
phpasked 8 years, 4 months ago Gabriel Rodrigues 15,969 -
4
votes2
answers2248
viewsLatitude and Longitude Calculation - Approximation
You guys, I’m in a bit of a pickle... Currently I have the data Latitude and Longitude of business registers in my database, with this I need to bring data next to me, in case would have latitude…
-
4
votes1
answer1246
viewsTap the photo and open the gallery and camera
I have a registration screen where you have a default photo of a user. I would like to put both options. When the user touches the photo open an option for him to take a photo of the crowd and…
androidasked 8 years, 4 months ago Artur Mafezzoli Júnior 441 -
4
votes1
answer1079
viewsASP.NET MVC permissions system
A long time ago I developed a system, in ASP.NET MVC, where I used the package Mvcsitemapprovider, based on it I made some modifications in Authorizeattribute to perform the verification of user…
-
4
votes2
answers102
viewsSort method is not ordering correctly
I have the following code: #include <bits/stdc++.h> using namespace std; int main() { int n, cases = 1, a[3]; cin >> n; while(cases != n + 1) { cin >> a[0] >> a[1] >>…
-
4
votes1
answer55
viewsHow to handle requirements that "mix" domain and interface?
Whenever I develop some software I try to leave the domain model without being influenced by issues relating to the other layers of the application like technologies in general and interface issues.…
-
4
votes1
answer43
viewsWidth caculum with jquery
Hi I’m making a test site and I have a div of promotions with width of 100%, a ul with 100% width and 4 li with the products. When you are more than 4 li, I want my div promotions to…
-
4
votes1
answer3721
viewsInsert X amount of characters in SQL Server field
Hello, I have two banks BDMCOM1 and BDMCOM1_V3_ALEA, both of which have a table called Saldodeproducts and the field called Codigodoproduto, in the table of the bank BDMCOM1, Codigodoproduto has 5…
-
4
votes3
answers9590
viewsHow to use Jquery with Vue.js?
During the implementation of Vue.js with sematic-ui, I have the following Jquery to open the modal: $('.ui.modal').modal('show'); how to make this integration in Vue?…
-
4
votes2
answers75
viewsHow to obtain a cookie in the Web API in a Forms Authentication scenario in Cross Application?
I have the following applications . Net: Web Application with Forms Authentication (I’m not using MVC, I use Backbone.js to call the REST API) Web API REST application sharing the same Forms…
-
4
votes1
answer620
viewsMysql Unique record insertion problem
I have a table that has a Unique field, I deleted a record of this table and now I want to insert it again, however Mysql generates the error: "Error Code: 1062. Duplicate entry '' for key '". How…
-
4
votes1
answer1174
viewsProblem with codeigniter (mysqli) BD connection
Guys, I made a registration form for newsletter. And when loading the database on autoload['libraries'], presents an error Call to Undefined Function mysqli_init() in…
-
4
votes1
answer334
viewsError while trying to consume Webapi service
since this morning I try to catch a JSON that a WebAPI available. I first tried with insira o código aquiAngularjs and was not evolving, so I went to the classic Jquery/Ajax and yet I did not…
-
4
votes1
answer349
viewsHow to implement a destructor in Javascript?
In languages such as C++, we have the possibility to declare a destructor for a class, so that certain actions are performed when an object of that class is destroyed. How to do this in Javascript?…
-
4
votes1
answer9659
views502 Bad Gateway - Linux, php7, Nginx. How to resolve this error?
I am having a 502 error that represents some configuration on the server, when I try to open a site using linux, Nginx and php7. Researching some other POSTS, link about the same error I see that…
-
4
votes1
answer477
viewsHow to configure Require.JS
Óla gente, I am in doubt of properly configuring the RequireJS, as I also have doubts about the organization of Trees to configure the baseUrl and so I’m going to demonstrate how I’m configuring: .…
-
4
votes2
answers1128
viewsWhat does an abstract class type variable mean?
Studying Pattern design I saw something that I didn’t understand very well what it means, when we have a variable of the type of an abstract class what it means exactly? Example: ClasseAbstrata…
-
4
votes1
answer758
viewsidentify basic geometric shapes in image
I have to identify and catalog geometric profiles. as in the following images: The images will always be scanned in black and white, and at full size. and will always be composed of geometric forms,…
image-processingasked 8 years, 4 months ago filipe vieira 41 -
4
votes1
answer331
viewsRight Way to Make Relationship One To Many Using C# and Mongodb
I have two entities, Sistema and Comentario where a system can have several comments: public class Sistema { public ObjectId Id { get; set; } [BsonElement("SistemaId")] public int SistemaId { get;…
-
4
votes2
answers458
viewsHow to convert Camelcase to snake_case in C#?
I would like to know how to convert a string with Camelcase for snake_case in C#. For example: EuAmoCsharp => eu_amo_csharp SnakeCase => snake_case…
-
4
votes2
answers4179
viewsValidating CPF and CNPJ with php Function
Guys I have two Unction, being them valida_cpf verifying the Commission and valida_cnpj that checks the cnpj. Well both work perfectly, but I wanted to know if it is possible to merge the two, ie…
phpasked 8 years, 4 months ago Hugo Borges 5,294 -
4
votes1
answer505
viewsDefinitely solve problems with strange characters in Java
I had a problem and I solved it this way: javac -encoding UTF-8 nomedoarquivo.java As I can already leave configured this command for all files?
-
4
votes1
answer458
viewsHow to find the lowest value of a moon matrix?
I made this code that makes an Array (at least I think it’s doing) and then writes all the values in it. Obs: The values are random. I need to find the lowest matrix value, but the logic I’ve always…
-
4
votes1
answer2305
viewsHow to animate Sprite Sheets?
I would like a help with Javascript. Someone could provide me a basic animation code from a single Sprite sheet... If possible HTML code too.
-
4
votes1
answer590
viewsAlert only once Session
I wanted to know how to make an Alert appear only 1 time for the user in the session, in the case the Loga user and appears a div with Alert informed Logged in successfully , after closing this…
-
4
votes1
answer107
viewsWhy do errors in PHP scripts run via the command line not appear in the apache error log?
It is important to note that errors that occur in running PHP script via browser are recorded without any problem in the file: /var/log/apache2/error.log. The problem only happens when scripts are…
-
4
votes2
answers2610
viewsDate and time validation
How do I make so that in the date field, is not saved a date that has already passed, for example yesterday and in the time field is not typed an invalid time, for example 27:00, only the Brazilian…
-
4
votes1
answer425
viewsColoring words from Richtextbox
My goal is to color all the words that are inside double quotes, and the quotation marks as well! For example: "This text needs to be colored".
-
4
votes2
answers713
viewsQuestion about data loading via Modal Bootstrap
Hello, friends. Once again I need your help. I am migrating my small system to Bootstrap. I am implementing modal windows in various parts of the system. I believe that one of the advantages of the…
-
4
votes1
answer674
viewsInstall Laravel Site on Windows Server
I’ve never had this experience of putting a website on the air using Windows Server 2012 at Locaweb. I put the site in a folder called 'new site'. And when I run the site like this: HTTP Error 500.0…
-
4
votes1
answer106
viewsHow to Detect DOM and API Resources
How to know if the browser supports certain methods, estates and events. Checking whether an object querySelector, querySelectorAll, addEventListener, classList exists via Javascript. I’ve been…
-
4
votes1
answer829
viewsUrl friendly in ASP.NET Web Forms
I would like to know how to make URL friendly in C# ASP.NET. I tried to use in the file: global.asax but it didn’t work.
-
4
votes1
answer62
viewsDoubt regarding good practices with virtual properties
I have a project that contains my classes that represent my entities in my BD. So, as an example goes there: On the table Endereco, I get a FK of Bairro(IdBairro). To play better in mine POCO, what…
-
4
votes1
answer421
viewsUser Control C#
I have the following user control that is being used in a Form: public partial class CampoTelefone : UserControl { private void maskedTextBoxTelefone_Validating(object sender, CancelEventArgs e) {…
-
4
votes1
answer266
viewsHow to execute arbitrary code in Python?
I use an xbase language that has macro substitution as in the original Clipper. Is there anything equivalent in Python? We use a lot of command line assembly via menus at runtime. For example,…
-
4
votes1
answer238
viewsHow to do Scaffolding in ASP.Net MVC with text and resources in en-BR?
How to do the texts generated by Scaffolding of ASP.Net MVC to be texts in? Note: It is not using ASP.NET MVC resources en-BR. Resources only translate automatically generated messages, and are not…
-
4
votes1
answer337
viewsHow to declare an integer type variable in C#?
I’m learning C# to migrate a system in VBA to C#. I’m really enjoying the language . NET. How do I declare an integer type variable?
-
4
votes3
answers120
viewsWhat is the syntax of literal objects in Javascript?
Can anyone help me with this structure? I don’t know what it is or how it works. var variavel = { teste1: '1', teste2: '2', teste3: '3' };…
-
4
votes1
answer14054
viewsmysql Delete all records from a table except the first
Does anyone know where I’m going wrong? or if it’s possible to do this? I wrote the query like this: DELETE FROM reservas WHERE ID NOT IN (SELECT ID,IDORIGEM FROM reservas WHERE ID='387' and…
-
4
votes1
answer1745
viewsTake the name and date value (using datepicker), and then calculate using only (JQUERY),
$(function () { $("#datepicker").datepicker({ }); }); <body> <form id="formu"> Nome: <input type="text" id="name"><br> Data de nascimento: <input type="text"…
-
4
votes1
answer126
viewsAlternating states of a js application
INTRODUCTION I’m developing an app using Electron and google maps, I need to control the state of one of the windows, for example: the user clicks the button and from this moment on all click on the…
-
4
votes4
answers1965
viewsHow can I detect the visibility of an element (without jQuery)?
How can I know if a particular element is not visible with pure Javascript? I know how to do it with jQuery, that’s how: $('.btn').click(function () { $('#box').is(':visible') ? $('#box').hide() :…
javascriptasked 8 years, 4 months ago Wallace Maxters 102,340