Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer86
viewsFirst table id does not click on BD
I’m trying to create a simple contact schedule with two tables: Being one of them empresa :nome and the other contatos :nome :telefone :email... I created the two tables and put a Foreign_key in the…
-
4
votes1
answer345
viewsWhat measures can we take to protect the issuance of malware slips that alter the digitable line?
In addition to PDF issuance, which can hinder some customers by the lack of PDF viewers, what techniques could we use to protect or detect that the generated billet has been modified by malware?…
-
4
votes1
answer9877
viewsPut Authorization: Basic in the api
I am creating an API as already said, and I need to use the Authorization: Basic KEY to send login and password via header. Unfortunately I am not aware header('Authorization: Basic…
-
4
votes2
answers1339
viewsHide and Show all li decendentes of a ul - Jquery
I have the following lists: <h4>Procedures</h4> <ul> <li">Foo</li> <li">Foobar</li> <li">FooBarBazz</li> </ul>…
-
4
votes2
answers4463
viewsHow to view a browser’s http request, and the server’s http response
I would like to get this information to study full examples of https protocols with Cookie and Sessions, either through Socket Java, PHP. If possible through the browser itself.
-
4
votes2
answers508
viewsWhat is Dénsity and scaledDensity for on Android?
What is the point of Density and the scaledDensity on Android? What use can we give you?…
-
4
votes1
answer938
viewsRDL Report of Report Builder 3.0 with MVC 4
I have a problem here, I made a system in C# using Razor MVC 4 with SQL Server 2014 database, so far so good... but now I need to generate reports, I made a report there in Report Builder and added…
c# mvc visual-studio-2013 asp.net-mvc-4 report-builderasked 10 years, 3 months ago Jeferson Santos 41 -
4
votes2
answers146
viewsHow to fade() at different times in an img and id
I’m trying to make the text appear over time and the image appears a little bit more time apart, to give a more interesting effect. The html and js code I will provide. The problem is that where the…
javascriptasked 10 years, 3 months ago hahnmatheus 109 -
4
votes1
answer442
viewsWhat is the relationship between the Primefaces ajax and the events
Faced with certain problems during my developments I arose the following doubt for example. When I use the tag ajax in the Primefaces, has the property event where we passed events, then I arose a…
-
4
votes1
answer721
viewsHibernate + Inheritance
I’ve been trying for some time a solution to my problem. I’ve done a lot of research but nothing clearly explains what I need. So I created an example application and am making it available from…
-
4
votes4
answers818
viewsDatabase being changed/Hacked
I don’t know if I can ask that question here, otherwise I can ask you to suspend the question, or warn me that I delete it. For the second time I came across a bank that had been broken into. Almost…
databaseasked 10 years, 3 months ago Diego Zanardo 3,301 -
4
votes2
answers508
viewsWhen is it recommended to use decreasing indexes?
For default, relational databases create indices using increasingly ordered binary tree structures. But there is the possibility of creating it in a decreasing way too. My question is whether (and…
-
4
votes1
answer103
viewsDatareader blocks using Datareader "Close()"?
I have a little doubt regarding Datareader’s inside using blocks. If my Datareader object is inside a using block, will it be closed at the end of that block? Or do I have to insert the Close…
-
4
votes1
answer415
viewsDropdownlist with unique MVC values
My class Galeria possessed a foreign key with Album as there is a 1-n ratio and each photo in the item Galeria owned respectively a Album. Given this, in the CMS I created I give the possibility of…
-
4
votes1
answer1387
viewsLogin screen with Membership and mvc5
How do I login using Membership and mvc 5? By the way, how do I use Membership?
-
4
votes1
answer423
viewsTry/catch does not "catch" to Exception
I’m using JPA and was trying to create an Entitymanager, and was testing some expcetions treatments in a class of mine. However, I have a problem, that Exception is not being "caught" by catch.…
-
4
votes1
answer503
viewsWhat simulate, NFA or DFA?
Well, we know that theoretically and practically, every NFA can be converted to a DFA that accepts the same language. My question is this:: Which one should I actually simulate? NFA or DFA? I don’t…
automataasked 10 years, 3 months ago Victor Martins 798 -
4
votes1
answer4489
viewsWays to check if there is any screen capture software running with C#
I am developing a software written in C# of exhibition of paid videos and need to create protections to avoid as much as possible that buyers distribute the videos irregularly. For now I need to…
-
4
votes3
answers3696
viewsMerge arrays in php
Someone knows something that turns it: $name = [0=>'name1',1=>'name2']; $email = [0=>'email1',1=> 'email2']; in this? $data = [ 0 => ['name'=>'name1', 'email'=>'email1'], 1…
-
4
votes3
answers451
viewsPHP execution via Ajax jQuery
I am placing some instructions inside the same PHP file that are executed according to the variable value send received, at least that’s what I thought. This code has two of these instructions, one…
-
4
votes2
answers376
viewsHow do I handle the event generated by the Windows Phone 8.1 back button?
In previous versions it was possible to make such manipulation over writing Onbackkeypress. protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { . . . } However, two…
-
4
votes1
answer1002
viewsDistribute content evenly in tables with php
I set up a php algorithm for popular 4 html tables in a uniform way. However, I am finding my code somewhat dirty and would like to check if there is a cleaner way to create this code. What it does:…
phpasked 10 years, 3 months ago Marcelo Aymone 3,366 -
4
votes1
answer93
viewsChange lines of code within files with Apache Ant
I’m studying Apache Ant to try to change some existing lines of code within files, but so far I haven’t found anything about it in the official documentation the most I can do is rename files like…
-
4
votes2
answers392
viewsGit push command with no apparent effect
A simple GIT question... I created a repository on the remote server and performed a git remote add (...), git add "files", git commit and git push origin master, on my localhost, so I could connect…
gitasked 10 years, 3 months ago Marcony Felipe 879 -
4
votes2
answers909
viewsConvert List<T> to T... dynamically in a method call
I’m in need of something that seems to be simple, but I’ve been doing some research and trying and I haven’t found anything that helps me. Problem I have a list of the kind List<T> I receive…
-
4
votes1
answer931
viewsPersistent connection to Mysql database
Hello would like to know if I keep an open database connection(persistent connection) is better than I always close after a query?
-
4
votes1
answer19780
viewsHow to install . apk apps via adb?
I need help, I would like to understand how to use CMD for this and why they say it is more effective than downloading a file scanning software and installing directly on the device. I basically…
androidasked 10 years, 3 months ago paccamicio 163 -
4
votes1
answer1007
viewsPass Javascript variable to PHP body
I’ll try to get as much detail as I can about my problem. I have an HTML select that pulls your options directly from the database, as per the code below: $conn = new mysqli('localhost', 'root', '',…
-
4
votes2
answers16534
viewsDynamic page break when printing (in <table>)
On a budget screen, I display the products registered within a Foreach in a table (each product), so in some cases, at the time of printing the page the table is broken and ends up getting very ugly…
-
4
votes5
answers4870
viewsQuestion on how to call the function with each mouse button
Guys I have this code but I can’t get each mouse button to call a different function: var tela = document.getElementById("tela"); var c = tela.getContext("2d"); c.strokeStyle = "black";…
javascriptasked 10 years, 3 months ago Milton Viziak 51 -
4
votes1
answer826
viewsIs SQL Query in Loops a good practice?
Ride query with Where or other sql commands within loops like Foreach is it a good practice or not recommended at all? There is a better way to treat the data without having to make so many calls in…
-
4
votes1
answer3697
viewsmake payment in paypal without requiring the customer to register without account
I am using the following API to make payment via paypal. http://www.webmaster.pt/formulario-recebimento-paypal-4281.html What I see when I make the payment is this:: That is, I do not want to force…
-
4
votes1
answer588
viewsJtable, add multi-lines[Cell span] +Format table
I need to do something like this: Right now I have a table like image 1, but I wanted to create a table like image 2. How can I create something like this? Any ideas? The closest example I saw was:…
-
4
votes1
answer398
viewsPaypal receive transaction update
I am integrating the Express Checkout API and there is a problem regarding the update notification for any transaction made. How Paypal will send me the notification? If a transaction has not been…
-
4
votes3
answers2716
viewsIs it possible to create a MAP<> within another MAP<>?
It is possible to create a MAP<> within another MAP<>? like this code: private Map<String, Map<String,Object>> mapTESTE = new HashMap<String,…
javaasked 10 years, 3 months ago jsantos1991 2,397 -
4
votes1
answer3207
viewsHow to check if an email has been sent successfully?
I am trying to verify if an email sent from my application is successfully sent, wanting to know if the recipient receives it or not (full mailbox, invalid email, around). From what I’ve researched…
-
4
votes1
answer557
views.each() in pure Javascript
On a platform of forums there is a pagination system, and I would like to make this pagination via Ajax, for this, I built the following function: //<![CDATA[ var Pagination = (function(w, d) {…
-
4
votes1
answer1827
viewsHow to replace the HTML content of a div using php Domelement
I’m trying this way libxml_use_internal_errors(true); //pegar o conteudo de um pagina web $doc = new DomDocument(); $doc->loadHTMLFile('http://www.astralsaudeambiental.com.br/'); $div =…
-
4
votes2
answers336
viewsHow to check the number of users who have accepted an event on facebook using the Graph API
I’m developing a website where it should show how many people have confirmed their presence at an existing event on facebook. According to the Graph API documentation, in order for me to verify this…
-
4
votes2
answers1287
viewsButton that when clicked shows only content of certain class
Hello, I’m creating a Javascript system, where I need a button to show only paragraphs with a certain class in a div with hidden content. Example: <button id="btn1">Abre classe1</button>…
-
4
votes2
answers1086
viewsPossible conflict between script
Good people, I use basically 4 scripts in my project. I have two pages, one where the posts are listed and the other where you view the posts. In the current browsing model, by clicking on any posts…
-
4
votes2
answers650
viewsCreating files in Haskell
I wanted to record the output of my program straight into a file. When I executed the code, I automatically generated a file with the outputs of this code instead of printing them on the screen. A…
-
4
votes4
answers3935
viewsAutomated tool to join multiple style sheets (CSS) into 1 and to join Scripts (JS) into 1 Sheet only
I searched the internet for ways to join Stylesheet CSS and Script Sheets JS in an automated way, however, I did not obtain good results. I own about 17 Style Sheets and 15 Scripts, if I do it…
-
4
votes3
answers2517
viewsHow does Youtube know which videos we’ve watched?
The question itself already describes my interest, but what I’m really wanting to know is how youtube stores the information saying that we’ve already watched that video. I thought about storage…
-
4
votes5
answers23429
viewsCalling js function in another file - Dependency between Javascript scripts
I am doubtful in js to call a function in another js. Example: if (nome == ""){ exibirModal(); } As the function "exibirModal()" is in other js, is giving error as if the function had not been…
javascriptasked 10 years, 3 months ago user13545 43 -
4
votes3
answers7761
viewsHow to call Javascript functions in another Javascript
I wanted to call a Function of a Javascript in another Javascript file. For example, in the file compute js., i have the Function sum(a,b). And I needed to call this Function in the file js…
javascriptasked 10 years, 3 months ago Erico Souza 2,188 -
4
votes3
answers33401
viewsSelect 1 record of each ID based on the last date
I have a fictitious table TB_META with the fields: COD_VENDEDOR | DAT_ATIVACAO | VAL_META Supposing I have these values in the table: 1 | 2011-01-01 | 1 1 | 2014-04-04 | 2 2 | 2012-01-01 | 3 2 |…
-
4
votes1
answer183
views2 regular expressions in 1
I found the following regular expression to validate javascript email address:…
-
4
votes2
answers2256
viewsLogin system back to previous page in php
I would like to make a system that the user when trying to access a url that needs to be logged in the script checks if it returns false it redirects to the login page and after logging in it…
phpasked 10 years, 3 months ago Leandro Costa 2,172 -
4
votes3
answers15283
viewsHow to go to a part of a text on the same page by clicking on a link above
Imagine a page with a lot of text. What I want to do is make a word clickable that when the user clicks goes to another text on the same page. I want to do this using XHTML and CSS. I have at least…