Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer211
viewsHow can I always keep my app in full screen without being minimized?
I am developing an application in Java that should stay in full screen and can not be minimized or give space to another application or even the OS, in a way blocking everything and leaving only it…
javaasked 8 years, 3 months ago Thiago Vanilson Florencio 51 -
5
votes2
answers39330
viewsHow to make a vertical line
Hi I was wondering how does a vertical line with this code: <hr> She by default is horizontal, really wanted her vertical, anyone know how it does? I just wanted this code because I have it…
-
5
votes1
answer70
viewsDate - 4 digit Character conversion
I’m having trouble using as. Date to convert a column with dates (year with only two characters) into date. O as. Date autocompletes the year wrong, producing results like 2066( instead of 1966)…
-
5
votes3
answers1248
viewsHow do I redirect the site when it’s a mobile?
I have the following code that should work, but on mobile does not work in Chrome browser: var permitir_mobile = true; var mobileUrl = 'http://m.meusitemobile.com.br'; $(document).ready(function() {…
-
5
votes1
answer45
viewsSetting up an arena in canvas
I’m setting up an arena using HTML/JS with the canvas. I have the following code: function montarArena() { var canvas; var heightCanvas = 498; var widthCanvas = 598; var qtdLinhas =…
-
5
votes1
answer1276
viewsEncrypt App.Config
I’m trying to encrypt my Connection string, that’s in my app.config. After reading some forums, I saw that 2 methods need to be created: class proteger_app { public static void Criptografar() {…
-
5
votes1
answer638
viewsfilter records by month
I have the following appointment: $sql= mysql_query("SELECT dia, GROUP_CONCAT(hora) FROM marcacoes WHERE colaborador_id = {$colaborador_id} GROUP BY dia "); Returns the following table: but I want…
-
5
votes2
answers464
viewsTip for C code optimization
The way I wrote the code below is very extensive. How to make the code more streamlined? void mostrasaida(char recebido) { int dadoA [5] = {252, 146, 145, 146, 252}; int dadoB [5] = {255, 201, 201,…
-
5
votes3
answers317
viewsHow to not distort the layout when opening the keyboard?
I have a linear layout with a form. Whenever the keyboard is opened it distorts my layout leaving my Buttons in half, is there any way to keep my layout intact when the keyboard is opened?? Some…
-
5
votes2
answers6054
viewsWindows CMD - Setar String with Accentuation
I am trying to create a Batch (CMD) in Windows that "sweeps" folders in a particular directory and then renames the sub-folders according to a criterion I set. I am using the code below to carry out…
-
5
votes2
answers2074
viewsChecking remaining days between current date and contact deadline
Good afternoon everyone, as per the code below, I am not being able to check the remaining days between $data and $prazocontact. $consulta = mysql_query(" SELECT s.id_cliente, p.nome_servicos,…
-
5
votes1
answer342
viewsReact Native - Listview
Does Reactnative Listview accept an array of arrays ? Because I need to receive the API data as follows :…
-
5
votes1
answer346
viewsWhen should I instantiate a class?
I’m having second thoughts about the best time to call for instantiate a classe. Should I do it at the beginning, before the builder, at the constructor or at the time when we will make use of some…
-
5
votes1
answer159
viewsPurpose of lambda syntax in function/method
In some cases a function/method contains only one line in its scope, see the illustrative example: static int Soma(int a, int b) { return a + b; } Meanwhile, to a new feature in C# 6.0 that allows…
c# function lambda-expressions characteristic-language methodasked 8 years, 3 months ago gato 22,329 -
5
votes2
answers15372
viewsConversion of an nvarchar data type into a datetime data type resulted in a value outside the range
Code line INSERT [dbo].[Shop_Goods] ([TemplateID], [Name], [Remark], [CategoryID], [Description], [Attack], [Defence], [Agility], [Luck], [Level], [Quality], [Pic], [MaxCount], [NeedSex],…
-
5
votes2
answers650
viewsReference class Syntax Razor C#
I have a class where I have saved a configuration key being key and value, but I need to take the value of this key and move to my page cshtml. I’m having a hard time with this. I have already…
-
5
votes1
answer479
viewssplit a string of n into n chars, split() of n n
I have the following text: "ola sou o Allan" I would like to keep this text divided by e.g., 2-on-2 chars. How can I do this?
-
5
votes5
answers839
viewsHow can I add a value to a Row in the comic without having to add variables?
Well, here’s my question: I have the balance of a certain user Row from my database table that has 100€, and I wanted to add +50€, as I can do without having to create a variable with his current…
-
5
votes4
answers1605
viewsTurn Messagedigest MD5 into a string
I am trying to generate an MD5 hash using the class MessageDigest, however, I cannot correctly display the hash as a string on the screen. The result is a string of unknown characters. Below is the…
-
5
votes2
answers5475
viewsHow to query filter in Firebase?
I’m starting at Firebase and would like to know how to query with filter, example: Select, only people who live in Porto Alegre. Today, what I have is a comic book structure. I have four tables,…
firebaseasked 8 years, 3 months ago GustavoSevero 2,567 -
5
votes2
answers518
viewsGrab File without knowing the extension of it
How do I pick up an image even if I don’t know its extension? for example: Image name is moon, but I don’t know the extension and when I try to use php commands error and says it did not find the…
phpasked 8 years, 3 months ago Silvio Andorinha 8,394 -
5
votes2
answers177
viewsWhat is the name of the concept employed in this code?
If I create for example two classes and place the class Funcionario with a variable Empregado in class Empresa, what this means and what it serves? class Funcionario { String nome; String cpf; }…
-
5
votes2
answers180
viewsWhy does the statement "char *argv[]" work in the main rg, but not in the body of the code?
Why when I use the declaration char *argv[] in the int main(int argc,char *argv[]) works, but when I try to use it inside the body of the code with char *argv[]; it doesn’t work? The error below is…
-
5
votes3
answers287
viewsOut Of Memory when running a Getfiles in a very large directory
Currently I have a directory with several subdirectories that have more than 3 million files. I need to map only the directory where these files are. And this mapping should be separated by the file…
-
5
votes2
answers3965
viewsHow do you "synchronize" a branch with a master before working on it?
I’m in the following situation: I have a Git repository, and at a certain point I created a branch from master. I didn’t do much in that branch at the time, and then I advanced the master branch…
-
5
votes3
answers219
views -
5
votes1
answer2234
viewsTo limit and display the number of characters in a Jtextarea
I have a supplier registration window, and I’d like to insert a jTextArea so that the user has the option to enter some observation about the supplier. The idea is that, limit the amount of…
-
5
votes2
answers1081
viewsRun SELECT within a CASE
I’m using the php to make a SELECT of the database, but I need the select check that one of the fields has been filled in and, if yes, run a new SELECT from another table. Basically the idea is that…
-
5
votes2
answers390
viewsWhy use Docker in Azure?
This year I saw that Azure provided a container service called "Azure Container Service". This service, among other things, allows you to use Docker in Azure. It turns out that Docker is a container…
-
5
votes4
answers602
viewsHow can I replace "String.isEmpty()" in Java?
I got the following: data = new Json().execute(URL).get(); System.out.println(data); if (!data.isEmpty()) { //erro neste data.isEmpty I have a mistake: has an error: Call requires API level 9…
-
5
votes3
answers2776
viewsHow to fill a select with angular using materialize
I’m trying to fill in a select with data from my groundwork the problem is that I always have to select the select one time for the data to load. How can I solve this problem? HTML <form class=""…
-
5
votes2
answers1234
viewsUse more than one H1?
If I’ve ever used one H1 to set my Header logo/title, I can use some more H1 on page ? or just H2.. ? I can’t remember where I read, but I can use H1 in every article or section ? <header>…
html5asked 8 years, 3 months ago Quero Aprender .. Desculpe 147 -
5
votes0
answers263
viewsCreate Tables with Hibernate
Good afternoon !! I’m new with Hibernate and I’m two days trying to implement the creation of tables with it, I’ve already followed several tutorials, but it doesn’t work. Can someone help me ?…
-
5
votes1
answer5711
viewsChecking and creating python directories
Hello, I am creating a code that should check if a folder exists, if it does not exist the code should create it and then proceed, otherwise it just goes with the flow. I tried with If and While but…
pythonasked 8 years, 3 months ago Cristhian Miguel 207 -
5
votes1
answer570
viewsWhat is the difference between Ajax.Beginform and Html.Beginform in Asp.net MVC
Working with web inasp.net mvc, I saw that it is possible to use Ajax.BeginForm() and Html.BeginForm(). What is the difference between the Ajax and that of Html?…
-
5
votes1
answer620
viewsWhy does my image recognition training in Opencv generate transparent samples?
I’m using Opencv and trying to generate a file. vec to do image recognition training, but whenever I file and try to read it, I see images as if some parts of my positive are transparent! (I…
-
5
votes1
answer531
viewsImpulse-Response function in R
I have a question about the output of the function irf package vars. What is the difference with the output as to the arguments _cumulative = TRUE/FALSE_ and _ortho = TRUE/ FALSE_? Another thing,…
rasked 8 years, 3 months ago Cleyton Farias 51 -
5
votes2
answers1818
viewsHow to adjust a DIV inside another DIV vertically?
I’m having the following problem with CSS.. I sent you an example of what I’m trying to do Example of the Code, click here I would like the <div id="divAreaMenuLateral"> that this in orange…
-
5
votes1
answer306
viewsDoes programming in English conflict with the construction of a ubiquitous language?
I have already found on the internet some arguments in favor of programming in English, instead of programming in Portuguese, and we even have a question questioning what would be the recommended…
-
5
votes2
answers3404
viewsWhat systems approval techniques are available?
What technique can I use to approve software? Is there some kind of form, standard, technique or procedure to validate if a system meets the requirements? Is there any standard document to formalize…
-
5
votes2
answers986
viewsWhat is the best practice for integrating external content into my website?
I am developing a site in PHP and I will need to integrate a content that will be on a page of an external site. This page will be with little formatting, without header footer and sidebar, I’ll…
-
5
votes2
answers153
viewsHow do I get a page on my site to appear on the same day in google search results?
I need to know a way for a page of my site to appear in google search results on the same day. Any suggestions on what needs to be done? Because I realize that there are sites that once a news is…
-
5
votes1
answer123
viewsProblem when trying to connect to a Signalr+Angularjs Hub
I have a little project with WebApi,SignalR and Angularjs where I do some queries and inserts in real time. Everything works fine when I start the file index.html right when running the application,…
-
5
votes5
answers19859
viewsIs it possible to include a Javascript file within another Javascript file?
You can include a Javascript file inside another Javascript file? Similar to @import in CSS or to include of PHP?
javascriptasked 8 years, 3 months ago Allan Andrade 6,409 -
5
votes1
answer462
viewsHow to solve the problem of PHP 5.6 with obsolete PPA on Linux?
I went to spin the remote sudo apt-get upgrade and I got the PHP PPA discontinuation message. After updating the PHP version, when I run php -v, appears the following: PHP…
-
5
votes3
answers75
viewsShould I use Everywhere or just Fonts?
I know to use in instead of px in sources for a good performance of its application in cell phones, but I only use it in font size. Shall I wear in also in places like margins, paddings,…
-
5
votes2
answers26234
viewsSELECT INSERT in Oracle using Sesquence nextval and group by
Good morning, you guys! I’m trying to make an Oracle select using a SEQUENCE in id, but is giving error on account of a group by no select. Dry up my SQL: INSERT INTO SUP_T(ID, DESCRICAO) SELECT…
-
5
votes1
answer1392
viewsCurl php is not working
I am using Curl php on the server. function getSite($url){ $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); echo curl_error($ch); $output =…
-
5
votes1
answer433
viewsHow to detect Mysql changes in Nodejs?
Good night, someone has already used this package or knows a similar one that works? Link: https://www.npmjs.com/package/mysql-events Goal: launch an event when there is a change in the database.…
-
5
votes1
answer1048
viewsCan I invoke Function on a Trigger?
My Function done on Sql-Server: CREATE FUNCTION dbo.getQuantidade(@idProd char) RETURNS float AS BEGIN DECLARE @QTD float SET @QTD = (SELECT (prod.Quantidade) FROM Produto prod where @id_prod =…