Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer6107
viewsHow to generate a PDF contract using PHP directly?
I need to generate a contract, which will come from an HTML form, whose data will be processed by a PHP. I need that the moment the user clicks the button GerarPDF the data entered by the user…
-
5
votes1
answer175
viewsIs it possible to make a fake POST request?
I am creating a central system that validates information coming from other client systems via post and I would like to know if it would be possible for someone to make a false post request by…
-
5
votes2
answers2318
viewsHow to make a mysql query from an array coming from html?
I know that $cores me return the form values. What is the best way to make a query in the database with the array values $cores to pick up the cars that are present in that color? <?php //PHP…
-
5
votes1
answer9094
viewsHow to read folder and subfolder files?
I have a function to read the files in the folder, and it’s not working. I need a functional function that reads files from folders and subfolders. Follows the code: FolderBrowserDialog fbd = new…
-
5
votes1
answer1810
viewsLaravel Results of a Query Builder for eloquent model
I am making a query using Query Builder $users = DB::select( DB::raw(" SELECT users.* from users, permissions_customers WHERE permissions_customers.customer_id in ( SELECT…
-
5
votes1
answer214
viewsIs it currently safe to use font-face instead of Cufon and the like?
I am working on a website and I need to use fonts that the user may not have on his machine. Nowadays the most used browsers already support @font-face? From which versions? It is already possible…
-
5
votes1
answer717
viewsFunction statement in Javascript
What are the differences in declaring a function in these two ways: Mode 1 var funcao = function() { // ... }; Mode 2 function funcao() { // ... } What are the advantages and disadvantages of each?…
javascriptasked 10 years, 1 month ago Franchesco 5,144 -
5
votes1
answer1042
viewsHow to get your site highlighted on the right side of Google
I Googled the term "brainstorm9," and I realized that Google featured on the right side of the page, to the G+ page of the site. I thought there was only information on Wikipedia. See the image: My…
-
5
votes1
answer9990
viewsJava Tutorial for Reading A3 Digital Certificate
I am looking for a tutorial for implementing read cards with A3 digital certificate. I’ve never worked with anything like this before and now this need has arisen. I searched some things on the web…
-
5
votes7
answers762
viewsRandomize results with PHP
I have such a structure (which I created): <div class="banners"> <?php echo do_shortcode("meubanner_1")?> <?php echo do_shortcode("meubanner_2")?> <?php echo…
-
5
votes2
answers999
viewsBundle does not render css Asp.net mvc
I’ve got my own bill @Styles.Render("~/Content/css") And it just stopped working, it yields nothing The Bundle is being registered in the global.asax…
asp.net-mvc-5asked 10 years, 1 month ago Rod 9,412 -
5
votes1
answer496
viewsChanges to the database with Asp.net MVC 5
I am starting some independent projects using Asp.net MVC 5 with Entity Framework, and more learning from the technology. And at the moment a great doubt arose. I used the code generated through a…
-
5
votes1
answer98
viewsPass "visibility" as parameter
How do I pass as parameter a visibility and then set it? Ex: private void _setVisibility(View.VISIBLE a){ _viewLineStatus.setVisibility(a); }
-
5
votes2
answers427
viewsView "View" from Postgres in Mysql. Is it possible? How to Do?
Is there any way to view a View created in Postgres and view in Mysql? If so, how to configure?
-
5
votes2
answers1101
viewsHow to know if the calculation generated an integer?
How to know if the calculation generated an integer ? example: if (10 / 2 = NUMERO INTEIRO) {}
javascriptasked 10 years, 2 months ago Alan PS 2,511 -
5
votes1
answer1469
viewsHow to make a site multilingual and identify the country of origin?
I am developing a site in Javaee and would like it to be multilingual (at least English, Portuguese and Spanish). But I would like to know how large websites, such as Facebook, for example, do to…
-
5
votes3
answers1523
viewsHow to access one selector within another in jquery?
I am trying to access the div’s of the '.contentParagraph' class specific to each of the div’s '.content', so that the events of one div do not interfere with the event of the other, follows the…
-
5
votes1
answer793
viewsChanging size of Joptionpane.showInputMessage
I tried several methods like setPrefferedSize , setSize with/without pack() but nothing seems to affect Joptionpane code: selectProcess = new JOptionPane();…
-
5
votes1
answer3064
viewsDifference between null and clear on an Arraylist
What’s the difference between: arrayList.clear(); and arrayList = null; The two do not destroy all elements of Arraylist?
-
5
votes1
answer213
viewsValidate forms and generate dynamic pages
I use javascript to validate forms with php+html, before the constant changes (language and technology evolutions) javascript is still recommended for use or there is already the possibility of…
javascriptasked 10 years, 2 months ago Reis Edmilson 53 -
5
votes1
answer903
viewsHow to check SQL backup integrity
I’m using MySQL and, to back up the banks, I am using the mysqldump. My question is whether and how I can check if the file generated by the dump is intact automatically, without having to "upload"…
-
5
votes2
answers226
viewsVertical alignment in a div with position:Bsolute
would like to know if it is possible to carry out the vertical-align in a div with Absolute position? Follow the code to analyze: .teste { background: #F00; width: 500px; height: 100px; display:…
-
5
votes1
answer68
viewsIsolated Storage or SQL Server Compact
I’m making for Windows Phone 8.1 something similar to a dictionary where there will be a lot of text with sort, search, sort by name. Bearing in mind that there will be this large amount of…
-
5
votes4
answers1147
viewsMark checkbox if user writes input text in a table
I need it when the user writes to an input text, the checkbox of the respective table row should be marked, and if the user leaves the input text blank again, checkbox is cleared. Follow code:…
-
5
votes5
answers6853
viewsConvert Date field data to Mysql month
In a comic book table I have a 'Data' field (0000-00-00) and I need to do the following: Create a field next to 'Month' that takes the date Ex: 2014-08-27 and pass the value 'August' to the month…
-
5
votes2
answers2689
viewsHow to access an element within another HTML element with pure Javascript
I would like to know how to access an element within another element through id using pure Javascript. Currently use getElementsByTagName('a') but as in my project I will have several elements of…
-
5
votes2
answers604
viewsTransforming place into zip code
Does anyone know a script on R, or could help me assemble one, take the name of a location and look for the zip code of this?
-
5
votes2
answers2155
viewsHeader running over Echo
I’m trying to use the following code: echo "<script>alert('Erro. Tente novamente.');</script>"; $insertGoTo ="pág.php"; header("Location: $insertGoTo"); only when executing the code…
-
5
votes1
answer3713
viewsHow do I enable "explicit_defaults_for_timestamp"?
I installed Mysql Server 5.6. When I try to connect the Mysql server by running mysqld.exe, I get the following message: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use…
-
5
votes4
answers28473
viewsAlign text after image
Hello, I have a problem I don’t know how to solve. This is my situation: But I want it to stay this way: And like I said, I have no idea how to fix. And that’s my code: <div style=" position:…
-
5
votes1
answer325
viewsIn a service-oriented architecture, is the database decentralized?
I’m with the prospect of taking on a big project, and by its own scale I suggested the adoption of a service-oriented architecture - because it is easier to solve several medium problems than a very…
-
5
votes1
answer498
viewsCheck values in txt
Well, I want to save a value in a txt file, checking if there is already some value with 2 similar things. Ex: local file = io.open("arquivo.txt", "a+") local oi = {dia=os.date(),…
luaasked 10 years, 2 months ago Gabriel Sales 1,257 -
5
votes2
answers2245
viewsInsert Multiple record in PHP MYSQL table
I’m trying to make a INSERT using PHP to insert multiple BD records at once. My code is just entering the first line of data. It even presents all lines, but, to insert, only the first is sent to…
phpasked 10 years, 2 months ago Jerry Silva 71 -
5
votes1
answer853
viewsMount array with txt data
I’m trying to find a way to assemble a table with the data of a txt, but I don’t know how to separate the values in the array, since they are separated by several spaces, but are identified by…
-
5
votes4
answers1111
viewsHow to delete the database registration if the user does not activate it by email within "X" hours?
Well, when registering on the site the user has its ACTIVE set to 0, so with the code I posted in the answer of the question link below I can update the ACTIVE to 1: How to enable a user’s email…
-
5
votes2
answers8672
viewsAsp.net Webforms. Timeout error exceeded in SQL Server. How to resolve?
In an application ASP.NET Webforms who uses the SQL Server 2008 I am creating a screen that has a search field that works with requests AJAX a method of a Web Service asmx. To avoid bulk requests I…
-
5
votes1
answer312
viewsCode Metrics, Analysis and Clone for Android Studio
Guys, is there something similar to Code Metrics, Analysis and Clone Visual Studio for Android Studio? I know Lint exists, but as far as I know he doesn’t measure code complexity, duplicate code and…
-
5
votes3
answers13793
viewsDate in dd/mm/yyyy format?
i created a table, where I put the user record on a card for printing; therefore this table has several records (5 per page) and so in each page I access a record in the same table I did an…
-
5
votes1
answer329
viewsConvert to String number with scientific format
I have the following number, in scientific notation: 7.89894691515E12 I need to convert it to String, in the common format: 7898946915150 How to do this through Java?
javaasked 10 years, 2 months ago felipearon 715 -
5
votes3
answers3244
viewsCalling a method from a Javascript class (OOP)
Good staff would like to know if it is possible to access a method of a class(javascript) without knowing if the variable by instance it. function SDK(dynamicUrl) { var data = 'DATA'; var atual =…
-
5
votes2
answers4079
viewsPicking up content from div with equal classes
How do I get the content inside p? I got it, but it’s listing all the contents and not just what’s clicked. And another question, how do I call a function in the onclick when she’s inside of…
jqueryasked 10 years, 2 months ago Altemberg Andrade 633 -
5
votes2
answers124
viewsHow I give a Sort on my dropdownlist
How do I give a Sort to my dropdown? This is my dropdown. How do I give a Sort to it? Calling to the Dropdown <select class="form-control col-sm-6" name="cbxCodTipo"…
-
5
votes1
answer79
viewsChange Element mouseover/mouseleave
I’m trying to change the src of an element using the property attr in the mouseover and then on mouseleave. The idea is to change a banner while the mouse is under an element and update again after…
-
5
votes1
answer219
viewsConsultation in a Relationship Many to Many in Laravel 4
Guys, I’m "stuck" on a problem concerning a customer report. I have the following relationship: Module (id, name) Associate (id, name, superior_id) Association_modulos (modulo_id, associado_id,…
-
5
votes2
answers544
viewsRank database [#1 of 10]
I need to rank the DB records during paging. I don’t intend to create a field for ranking at first. Assuming I have 10 records 1) Ordenando a paginação por AZ, quero listar com o número…
-
5
votes1
answer1198
viewsBest way to model a chat database
I have an application that works with webservices and mysql database, I’m putting a chat in it, the part about how to pick up messages, display notifications and search for users I already have, my…
-
5
votes1
answer723
viewsFind all instances of a pattern in a text
I need to write a program that identifies a lowercase letter surrounded by three uppercase letters on each side. For example: "AEIoSDE" == "o" I wrote the code as follows: # coding: utf-8 letra =…
-
5
votes1
answer192
viewsDatabase Allocation
I have some questions regarding my database. I use an MS-SQL "database", which is provided by Locaweb (I don’t have very clear this concept of Locaweb providing me with a "database" which has within…
-
5
votes2
answers86
viewsPHP Application Class
In PHP there is some class that works until for example I close the tab of my browser, without being a cookie, I wonder if there is any class that I can extend so that I can save some values until…
phpasked 10 years, 2 months ago Leonardo Patricio 1,656 -
5
votes1
answer241
viewsLock files in Asp.net mvc folder
I have a folder named "app" I want to block access to all files if the user is not logged in. tried so: <location path="app"> <system.web> <authorization> <deny users="?"/>…
asp.net-mvc-5asked 10 years, 2 months ago Rod 9,412