Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers4548
viewsWhat’s the difference between Assets, res and raw directories on Android?
I would like to know the difference between directories /assets and /res present on android, I know that the layout and various images are in the directory /res and are accessed in different ways.…
-
5
votes2
answers3541
viewsWhat command returns the tables that are in LOCK in Postgresql?
What command can I execute to return the tables that are in LOCK in the PostgreSQL. Example query of lock: BEGIN; LOCK TABLE documento_sequencial ... COMMIT;…
postgresqlasked 8 years ago Oliveira 1,912 -
5
votes0
answers315
viewsWhat is the best way to get authorization with JWT?
I asked this question earlier, but I believe I did not express myself correctly. So I am reformulating to try to be clearer. I have several Rest API, where I use basic http, to avoid direct access.…
-
5
votes2
answers868
viewsIs there a way to open an HTML page within a modal? How?
I have the following code that opens a modal: <div class="uk-modal" id="new_task"> <div class="uk-modal-dialog"> <div class="uk-modal-header"> <h3 class="uk-modal-title">{{…
-
5
votes3
answers4603
viewsCheck that the value is integer
Galera use the following code in php to check that the number is integer: $qtd_bo = "1.20"; if (!preg_match('/^[1-9][0-9]*$/', $qtd_bo)) { echo "Não é inteiro"; } It returns to me that the number…
phpasked 8 years ago Hugo Borges 5,294 -
5
votes2
answers728
viewsFind equal ranges in a list
I am a beginner and I tried almost everything but I could not solve the issue and I wonder if someone could help me. In a column I have numeric values and I would like to compare the intervals of…
-
5
votes2
answers184
viewsHow to turn an INI file into an Array?
How can I turn a file INI in a array in PHP? Example: [database] host = localhost password = sabe_de_nada_inocente port = 3306
-
5
votes2
answers172
viewsHandle values of a data.frame
On the link https://1drv.ms/u/s! Alyjgc4yfdharhtsiuubju12gzho it is possible to find a dataset in csv on solar irradiation in Brazil. The column the_geom_4326 represents the longitudes and latitudes…
-
5
votes3
answers1764
viewsIonic - Display side menu in all view except main page
Hi. I have a problem regarding the side menu of Ionic. I need to display it in all views except the first one. I tried to put all views with the side menu, and give Hide on the menu button on the…
-
5
votes3
answers1083
viewsHow can I create a filter to fill with zero left at the angle?
I’m developing an application using Laravel and AngularJS. I always found it difficult to format a number to fill with Javascript zeros, so I chose to use Laravel to bring me the field number id…
angularjsasked 8 years, 1 month ago Wallace Maxters 102,340 -
5
votes1
answer96
viewsCatch the time on a remote computer using C#
Is there any method for me to recover time and date from a remote computer using C#?
-
5
votes1
answer545
viewsHow to install php-5 in Ubuntu?
I’m a new user on Ubuntu, and I’m unable to install the PHP-5 via apt-get, since the stable version is PHP-7, get an error saying no package was found. I tried using the following commands sudo…
-
5
votes1
answer2310
viewsApp Submission Problem in Play Store
I am submitting an updated version of my app (sdk 23) in the Play Store and is giving this error when having publish in the section in Beta Tester: Cannot publish configuration for following…
-
5
votes3
answers259
viewsJavascript - Make <article> appear by clicking on a <li>
I have a little doubt in my project that I am developing. I need to make that determined <article> appears when a certain <li>. Example <li>'s <li id="menu-CARD">USAR…
-
5
votes2
answers9742
viewsHow to insert current date in postgresql?
I need to set in a column on postgresql the current date of insertion as the default value for the field. How can I do that?
-
5
votes1
answer1215
viewsCalculate difference between dates up to javascript minutes!
I have the following date on an input: 25/09/2016 11:20:00 for example. I need to calculate the difference for the current date and return at least to the minutes. It can be in jquery or javascript.…
javascriptasked 8 years, 1 month ago Thiago 901 -
5
votes2
answers79
viewsFind 2 date attributes in a single element
How can I find a particular attribute that contains another specific attribute? for example: <a class="fc-draggable" data-belongs="3" data-target="2"></a> I can select all elements that…
-
5
votes3
answers1866
viewsFormatting date in Java web with Primefaces
Speak guys, I need to format a date in Java. I’m using Java web, Primefaces, MVC, TDD, JSF, Hibernate. I am an intern and I am doing a Project Manager project for my company. My date input view…
-
5
votes4
answers4799
viewsHow to turn a rectangular image into a circle (without distorting it)
As shown in the image below, I can make the picture rectangular turn round, but it gets distorted: .posts .posts-item img { max-width: 100%; height: auto; display: block; margin: 0 auto;…
-
5
votes1
answer3045
viewsDifference between If and Iif
In VB.NET, what is the difference of the use of If and of IIf under these conditions? If Condicao Then x() Else y() End If IIf(Condicao, x(), y())…
-
5
votes2
answers203
viewsDocumentation on WPF with pure C# code
WPF is what’s "new" for development, not only desktop but also mobile. However, almost all material that is available on WPF is fully tied to the use of IDE and XAML. But XAML is an intermediate…
-
5
votes1
answer2273
viewsObfuscate CSS and Javascript for free
Good afternoon guys, I am developing a page and would like to obfuscate the CSS and Javascript(Angularjs), I did a quick search on the internet and saw some paid tools, and some Free tools made the…
-
5
votes2
answers1594
viewsXML serialization - NFC-e ide element
I am trying to serialize an XML of the electronic invoice, but when I arrived at the ide element where is an Array object I unpacked, as I receive the error "Undefined object reference to an…
-
5
votes1
answer716
viewsWhat is the difference between the "+" and "&" operators when concatenating strings?
In VB.NET, there are two operators I use in concatenating strings, the & and the + (I know there are more efficient methods for concatenating strings, but in this question, I pay attention only…
-
5
votes1
answer1929
viewsImacro how to restart or continue the script
I have used the immaculate in these sites of bicoins, and it works perfectly the process. however it is not 100%. I need a code to put at the end of the script process that makes it search the word…
-
5
votes1
answer4176
viewsAlignment with string.format and Unicode
I’m having trouble with the alignment of strings when using the .format(), for example when doing: >>> print '{:>6}'.format('agua'} agua >>> print '{:>6}'.format('água'} água…
-
5
votes3
answers8881
viewsHow to import functions from another C file?
In Java if we create other classes, for example: classe1 and classe2, if I want to call classe1 within the classe2 (because they are in separate files) I use import classe1. I made this code in C,…
-
5
votes1
answer259
viewsGroup items with a date difference of 10 minutes between you
I have a table called tb_log, in it I have some data id, usuario_id, produto_id,..., data. I need to group the records by date as follows: All records that differ by up to 10 minutes from each…
mysqlasked 8 years, 1 month ago Leonardo Hofling 59 -
5
votes3
answers885
viewsHow can I check if the last position of the array has been filled?
How can I check if the last position of the array has been filled? I tried the function array_pop but it seems she cuts the element of array, I just want to check if in the last position of array is…
-
5
votes1
answer8320
viewsPython Hangman Game
I’m doing a Python hangman game. Every loop the program asks the letter or word: #Jogo perguntarNovamente = True game_on = True while game_on: palavra_secreta = palavra() senha_list = [l for l in…
-
5
votes1
answer190
viewsWhat is wrong with this procedure when saving a form?
I have a registration form and I’m trying to save information on it. When trying to register, it returns a form error saying the email already exists (even if registering different types of email).…
-
5
votes3
answers271
viewsHow can I make "..." appear in a certain class after reaching a limit of carcter
I wish that when I reached an estimated threshold of carcter ... not to pollute the screen.
-
5
votes0
answers97
viewsDoubt implementation Database SQL
I’m creating a product control for a company, where we need to generate sequential codes for products as they register, sell digital products, so there’s no physical amount. At first I thought about…
-
5
votes5
answers29254
viewsHow to convert date to dd/MM/yyyy format?
After I published my app, I started to receive the dates in the American format like this:9/14/2016 12:00:00 AM How to format to dd/MM/yyyy? I tried to convert.ToDateTime() more does not work.…
-
5
votes1
answer1602
viewsHow to avoid deletion of relational data through referential integrity in MYSQL?
I have the tables SIMULATED and QUESTAO, where a simulated can have several questions, but a question can only be for a simulated (relationship 1-n). MOCK TABLE: simuladoId simuladoNome TABLE…
-
5
votes2
answers942
viewsHow to run code with no open page in PHP
I have a PHP code that uses FSOCKOPEN to check the port of a server, and depending on the answer it logs in log... But for this the page has to always stay open, I would like to know if there is any…
-
5
votes1
answer117
viewsHow to use a variable in the array_walk?
I’m trying a solution without going through "manually"(foreach) an array, to add in the subarrays, a new pair of chave => valor. With the array_walk I can invoke a callback and treat the array…
-
5
votes1
answer1435
viewsHow to update my application by APK without losing my Sqlite database?
I created an app, I registered at the bank Sqlite, but when I create new functions for the application how do I update without uninstalling it? Obs: no use Google Play, I install direct from Apk…
-
5
votes1
answer6021
viewsHow to concatenate two strings?
Supposing I have two strings, Olá and mundo!, as I grant them using R?
-
5
votes2
answers292
viewsHow do I compare an input in char with an interval (0 to 9) without specifying individual conditions?
I’m doing a show that reads a string and want to ignore the spaces and letters that the user type (but I have to read the letters i and p and the mathematical symbols +-/*^). What I have achieved so…
-
5
votes1
answer624
viewsWhat kind of data do you use to store Uris in the database?
What kind of data to use to store Uris in the database, taking into account an indeterminate or very large URI length?
-
5
votes1
answer112
viewsHow and when to use "Shadows" and "Overrides"?
How and when to use Shadows and Overrides? What are the usage recommendations for each and in what context to use them?…
-
5
votes1
answer351
viewsSIP connection - Softphone Java Android
My intention is to create a Softphone, for this I am consulting the libraries of google and doing some tests only that I have enclosed in a part. I don’t want to do start functions, or multiple…
-
5
votes1
answer195
viewsWhat are the differences between the following Caps and when to use each one?
Casting [...] process where an object type is explicitly converted to another type, if conversion is allowed. Source: Stackoverflow in Portuguese Assuming the following situation: var i = 10 What…
-
5
votes1
answer195
views -
5
votes2
answers12195
viewsDifference between Std::Cout and Cout?
In C++ because some use std::cout and others use only cout is just what the programmer thinks best?
-
5
votes2
answers11677
viewsNamespaces and Use when to use and for what purpose?
What are namespaces and use and when it is recommended to use them in an application ?
-
5
votes1
answer1545
viewsSystem Error.Indexoutofrangeexception
I’m having mistakes in Titular.Text of this form and do not know how to solve. public partial class Titular : Form { private Conta[] contas; private int quantidadeDeContas; public Titular() {…
c#asked 8 years, 1 month ago Graziela Glória 51 -
5
votes1
answer230
viewsSpring and EJB have the same features?
Spring and EJB have the same features? If not, you can use both in the same application?
-
5
votes5
answers5699
viewsHow to get the current iteration index of a foreach?
Usually in order to get the current iteration index within a foreach, I do it this way: int i=0; foreach (var elemento in list) { // Qualquer coisa i++; } I believe there are other methods to get…