Most voted questions
150,413 questions
Sort by count of
-
7
votes1
answer782
viewsNotification at 0h00 without starting application
I would like to notify the user that he has an expense that expires the next day, but without the need for the application to be running, currently I have a code that notifies from the moment I…
-
7
votes2
answers5915
viewsHow to leave a span in the center of a div both vertically and horizontally
I have a text that I wish to manipulate with effect, but I need the structure of it to be correct. The structure I need to do, is that each letter is exactly in the middle of a div (a div for each…
-
7
votes1
answer1010
viewsPHP - Make 3 INSERT in different tables with relationship between them
I’d like your approval. I need to do 3 INSERT all at once. Only I also need to get the last ID of each table, to do the relationship of the tables. That’s right, do it that way? if($_GET['operacao']…
-
7
votes1
answer451
viewsWhat is the advisable way to mount a query?
What is the advisable way to mount a query in C#? It is advisable to use concatenation with the operator +? For example: query += " WHERE nome LIKE '%" + nome + "%'"; Here follows a query I set as…
-
7
votes2
answers686
viewsHow to make webscrapping of an https using rvest?
I would like to shave a page that is in https using the package rvest. However, it is a website with problems in the security certificate. In such cases, you need to turn off the SSL verification --…
-
7
votes1
answer138
viewsTomcat on Windows and Linux
I currently have a server Tomcat running on a machine with Windows Server 2012. But I got some tips from some friends from Infra where they say the Tomcat in the Linux has better performance. So I…
-
7
votes2
answers642
viewsError while trying to update table using C#
I created a form to change a table, but my update is not working. cnxCli.sel =/*"set dateformat dmy \n"+ */ "update Cliente" + "set Nome = '" + txtNome.Text +"'," + "Rg = '" + mskRg.Text + "'," +…
-
7
votes3
answers490
viewsDisplays and hides contents in list form. with Javascript
I’m trying to make a list of Youtube videos as follows. (ps:Eu sei que o Youtube ja tem uma playlist dele.) Example: List with video names. 1 - Trailer Reaction: Star Wars: Episode VII - The Force…
-
7
votes2
answers1595
viewsHow to make Jqueryui autocomplete with PHP return multiple data?
I have two inputs, I’m using the automplete in only one. The code of the autocomplete: $(document).ready(function() { $.getJSON('include/funcoes/carrega_cidades.php', function(data){ var dados = [];…
-
7
votes1
answer592
viewsCan Hard Drive Defragmentation help my server perform?
I always hear that it is necessary to "defragment the hard disk". But I never specifically knew the internal processes involving that operation. A doubt for example is: How software can perform this…
performance operating-system language-independentasked 8 years, 10 months ago Wallace Maxters 102,340 -
7
votes2
answers3238
viewsCall Modal and Tooltip on the same data-toggle
I have a button that calls a modal like this: <button type="button" data-toggle="modal" data-target="#revisao>Revisao</button> To call a Tooltip is used: <button type="button"…
-
7
votes2
answers745
viewsSet values or not in c++variables
Good night. Should I or should I not set values in variables when creating them in c++? An example: int x = 0; int y; What’s the difference in these two cases? And what happens in memory when I…
-
7
votes1
answer73
viewsGroup by with subdivisions
I have an SQL that brings the number of people who graduated on a given date. Let’s say that of 300 people, 25 graduated on '2010-06-27'. I would like to include two more columns that return the…
-
7
votes0
answers71
viewsHow does "this" work in Javascript?
I’d like to better understand how this run in Javascript. What is he ? What are its functions in language ? And how your scope works in code ?…
javascriptasked 8 years, 10 months ago Lucas Fontes Gaspareto 3,656 -
7
votes3
answers339
viewsBash - Mysql backups
I rode the script below, to perform backups of three Mysql bases. I would like to know if it is correct. #VARIAVEIS DATE=`date +%Y%m%d-%H%M` HOSTNAME1="xxxxx" HOSTNAME2="yyyyy" HOSTNAME3="zzzzz"…
-
7
votes1
answer686
viewsCorrect method to write to WEB API?
I did a test using a method this way, test using the Postman is worked, wondered if this way I might have any problem. in the Controller…
-
7
votes1
answer729
viewsError using Group by in a Mysql VIEW
I created a VIEW to return in a single query the main data I need. CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW v_historicoProcesso AS SELECT p.protocolo AS…
-
7
votes1
answer245
views -
7
votes1
answer280
viewsHow to read data in Json on the server?
I have an Asp.Net MVC project and I’m trying to repurpose an Action that returns Json within the server, but I’m unable to work with Json returns in C#. I’m doing research, but I haven’t found…
-
7
votes4
answers352
viewsWhat is the second parameter of array_keys for?
I was stirring the sublime text and I came across something I didn’t expect when I went to type the function array_keys array_keys(arg, search_value, strict); I did the test and really the second…
phpasked 8 years, 10 months ago Wallace Maxters 102,340 -
7
votes5
answers106
viewslink is not called
I have a code jQuery that generates a div it works smoothly, in it I have the following excerpt div += "<p>Coloque o seu <a class='text-orange' id='link_new_ad'>veículo a…
jqueryasked 8 years, 10 months ago Marcius Leandro 462 -
7
votes2
answers853
viewsHow to get Text from a Listview?
How can I catch the Text of my Label that is inside a ListView without using the FindControl (Item.FindControl("lblCodigoEdit") as Label).Text), or is access directly the value it has in mine…
-
7
votes2
answers1363
viewsWhat is the relationship between JPA and ORM?
I wanted to know the relationship between JPA and ORM because I was in doubt, if both ,.
-
7
votes3
answers2716
viewsChange class with javascript when resizing the screen
I need a javascript code to change the class menu for the class responsivemenu when the screen resolution is less than 750px.
-
7
votes1
answer5885
viewsWhat are INDEX, B-Tree, hash, Gist, and GIN?
In the the Postgresql Manual has the following excerpt : Postgresql provides the index methods B-Tree, hash, Gist, and GIN. Postgresql provides the B-Tree, hash, Gist and GIN index methods. But…
-
7
votes2
answers1283
viewsHow to convert ASCII to binary?
I’m trying to implement the conversion of a text to binary, I found one on the internet: static string ASCII_binary(string texto) { string converted = string.Empty; byte[] byteArray =…
-
7
votes3
answers183
viewsVisual Studio 2013 no install in windows 7
I can’t install Visual Studio 2013 on Windows 7, I know it’s possible because in college we have Visual Studio installed on Windows 7. So I don’t know why he complains about the Windows version.…
windows visual-studio visual-studio-2013 installationasked 8 years, 11 months ago William Caetano 93 -
7
votes2
answers2815
viewsDeleting data automatically after certain time
Example: I have a table with three fields: id int pk, varchar name, int category. The category field can receive 2 values: 1 and 2; By default always when a data is entered it will have a category…
-
7
votes1
answer815
viewsHow to set the maximum disk size of a database?
How to set the maximum disk size of a Mysql, Oracle, Postgresql or DB2 database? This is how I do in SQL Server: Create Database MyDatabase on (Name='MyDatabase_Data',…
-
7
votes2
answers1691
viewsHow to make a Function wait for jQuery loaded with the async tag
I’m having a problem making a Function wait the loading of the package.js with the async tag <script id="packjs" async type="text/javascript" src="pacote.js"></script> This file contains…
-
7
votes2
answers1906
viewsHow to leave a responsive . svg image inserted directly into html
I have an image of the map of Brazil in svg all mapped and when resizing my page the same does not follow this resizing, I have read some articles and tried some solutions and in none of them I was…
-
7
votes3
answers1977
viewsHow to attach events to dynamically created elements and pass parameters?
I have a table that is generated via ajax and a certain column generates a link. As it has been implemented, currently, it writes a code html with javascript intrusive. Something like below: return…
-
7
votes1
answer276
viewsproblem setting up a GIT repository with Bare
I have a repository of a server that was a problem and could not clone its repositories for the new server GIT, so I copied the entire application development environment through the USB stick, it…
-
7
votes2
answers1045
viewsInsertion Sorting and Recursive Insertion
I would like to change the function to a recursive function, I’m error tried so 1 se n > 1 então 2 Inserção-Rec (A, n−1) 3 x ← A[n] 4 i ← n−1 5 enquanto i > 0 e A[i] > x faça 6 A[i+1] ←…
casked 8 years, 11 months ago Matheus Francisco 650 -
7
votes2
answers65
viewsWhat to do when a model has N responsibilities
My system exists a class that is currently a common class for several situations, below some of the other models to exemplify public class Servico { public int Id {get;set;} public string Nome…
-
7
votes1
answer730
viewsClient-Server Chat application with Sockets does not work
I’m doing a project and I got to the communication part between the server and the client and I couldn’t get the output I wanted (image output). The goal is for the server and client to communicate…
-
7
votes2
answers1757
viewsHow to receive a List (Java) in Javascript, using Spring MVC?
I have a web application using the Spring MVC framework. I need to receive a List in a Javascript function, but I don’t know the best way to do this, without getting the code confused. The Processes…
-
7
votes2
answers350
viewsHow to get the set of all Python arguments?
Python has both positional and named parameters and operators * and ** which allow receiving an arbitrary number of additional arguments: def foo(a, b, c=1, *args, **kwargs): print(a, b, c, args,…
-
7
votes3
answers633
viewsAdd class to a datatable
I’m making changes in a pagina.aspx of a system, however many things are generated through language functions. Since I can’t add a class via code, I’m trying to add via jQuery, but I’m not getting…
-
7
votes3
answers1160
viewsHow to set number of times the setInterval will be executed?
It is possible to control the number of executions of setInterval? I made a script very simple where I wanted to div flash 3x to alert the user. But in script that I made it keeps blinking straight.…
-
7
votes1
answer752
viewsHow to make a sum in Lambda with recursive logic using successor and predecessor?
I’m trying to assemble a Soma with recursive logic using just successor and predecessor in Lambda. But they’re not succeeding... In the case: suc = λx.x+1 ant = λx.x-1 I’ve done something like:…
-
7
votes3
answers2045
viewsInserting record and recovering ID generated by SQL Server 2012
I want to insert a record into a table, recover the ID that was generated by AUTO_INCREMENT and insert records into other tables using this ID. But, I want to do this all using the BeginTransaction.…
-
7
votes1
answer1457
viewsHow to use multiple models in a view
I’m doing a criminal record and I have the following models: Pessoa Fisica Juridica And in the code of mine view I have only the declaration of a model: @model CodeFirst.Models.Fisica The problem is…
-
7
votes1
answer522
viewsReflection in Opengl in C?
Hi, I’m with a college computer graphics project and I need help. I’m trying to create a rectangle that works like a mirror, for the objects of my scene in Opengl in C. I found some tutorials that…
openglasked 8 years, 11 months ago Yuri Pires 579 -
7
votes1
answer251
viewsProblem with logic when using LEFT JOIN
In my system, there is a system of posts and another of friendships. It follows the structure of tables: posts: id | usuario | conteudo | data | hora friendships: id | usuario1 | usuario2 | status…
-
7
votes3
answers972
views -
7
votes1
answer675
viewsHow to change the volume of an <iframe> video by javascript?
I have tried the code below to solve. var volumeIcon = 1; $(".ico-volume").on('click', function(event) { if (volumeIcon == 1) { $(this).find("img").removeAttr('src'); $(this).find("img").attr('src',…
-
7
votes1
answer439
viewsHow do I convert DOC and DOCX to TXT with PHP?
I have a system where the files the client will send me are all on file DOC or DOCX. But the same wants to be possible to download this document in format TXT. Is there any simple way to convert DOC…
phpasked 8 years, 11 months ago Wallace Maxters 102,340 -
7
votes1
answer3146
viewsCan the MD5 hash repeat for different passwords causing collision?
A co-worker made a System in Java that encounters collisions in a series of MD5 hash passwords. But he did not stop to analyze the results, he made only a statement that they exist. Only that I…
-
7
votes1
answer737
viewsHow to create a system to generate hashes and break without the original string?
Is there any way to break Sha-256? There is a mathematical process to break? I need to create a program that generates several hashes and another to break without having the original string (similar…
cryptographyasked 8 years, 11 months ago Carlos Pereira 1,190