Posts by Maicon Herverton • 877 points
43 posts
- 
		2 votes1 answer175 viewsA: How do I center all the contents of a table in Latex using Overleaf?If you want to center the content of all rows and columns it seems to me enough you put the table among the tags: \begin{center} (... sua tabela aqui ...) \end{center}… latexanswered Maicon Herverton 877
- 
		0 votes0 answers127 viewsQ: Unicodedecodeerror: 'utf-8' codec can’t Decode byte 0xc3 in position xx: Unexpected end of dataI am unable to open a block-separated CSV file (spaces/tab) in Python. The file has 1.7 million lines and is in UTF-8. From what I searched in the Stack in English it is as if the character '0xc3'… 
- 
		1 votes0 answers176 viewsQ: Problems to unzip files in RAR on Linux UBUNTUgood afternoon! I have a server that runs on a Cloud Web server LINUX UBUNTU SERVER, 7 years ago, I migrated to another local server also with LINUX UBUNTU SERVER. In Cloud Linux APACHE with PHP AND… 
- 
		1 votes1 answer1088 viewsA: How do I print between a web server and a local printer?Thiago, you are using Web language, obviously installed on a server. Of course, if you had physical access to the server, you would connect your printer over a local network and it would work… 
- 
		2 votes1 answer851 viewsA: Why does the require_once function work on the localhost but does not work on the server?Actually, most of the time_out problems if they are not due to your apache server settings, might be like in my case. I managed to solve the problem, the point is that I was pointing the function… 
- 
		2 votes4 answers10562 viewsQ: How many programs can download XML from Brazilian NF-e?I see that many websites and systems offer XML Download service issued by Brazilian taxpayers. Does anyone know if there is beyond the Technical note "002/2012" that establishes a Webservices for… 
- 
		0 votes2 answers135 viewsA: How to check in an Angular directive if the parent Node is a link?I think this is the best answer, will help you solve, it’s exactly what you want only using the most usual expression (father and son), as we conventionally use (SO-Eng): HTML <div ng-app… 
- 
		1 votes1 answer851 viewsQ: Why does the require_once function work on the localhost but does not work on the server?Dear I have a framework that accesses data from other servers, I programmed the entire system on localhost, on my machine. However, when playing for the server the external page call does not work,… 
- 
		3 votes3 answers22145 viewsQ: How do I check if a session ($_SESSION) exists or is active in PHP?there is some native function of the PHP that you can use to verify that a particular user session is open? For example, I have a $_SESSION['usuario'] = "400379d4eaa6ec24826dd44cd5cf65a3" and I want… 
- 
		0 votes1 answer1322 viewsA: How to create a tree menu (multilevel) with PHP+ Mysql?I was able to do it this way: function display_children($parent, $level, $tabela) { $sql = "SELECT a.NodeID, a.NodeName, a.Link, Deriv1.Count FROM ".$tabela." a LEFT OUTER JOIN (SELECT ParentID,… 
- 
		1 votes1 answer1322 viewsQ: How to create a tree menu (multilevel) with PHP+ Mysql?I’m trying to make a tree menu with PHP+MySQL, but something is wrong with the code. And, the same table was used in ASP with SQLServer to make a menu: First I press one array, my database: $menu[]… 
- 
		-1 votes2 answers100 viewsA: Default record if no other - mysqlYou can create a fictitious id and do the following: SELECT (SELECT id FROM tbl WHERE id = 9823474) AS id; Works with Postgresql, SQL Server andMysql. Also with Sqlite. Alternative with UNION ALL:… 
- 
		1 votes1 answer603 viewsQ: How to stop a stored procedures in Mysql?there is the possibility of stop one stored proceduresin the MySQL? I put a procedures to power a database table for load testing with 10 million records, but the insertion is too slow and wanted to… 
- 
		-2 votes1 answer55 viewsQ: Check if a user has already activated their account by email, otherwise remind them to activateI am developing a corporate network, and would like to check every time the user logged in, whether or not he activated his account through the token sent to your email. But I wouldn’t want that… optimizingasked Maicon Herverton 877
- 
		1 votes5 answers27254 viewsA: Clear browser caching with JavascriptWell, the cache is an important load balancer and broadband consumption, I do not advise as a member of Sopt you use the solution of @Laerte in all cases, each case should be studied. Imagine if… 
- 
		1 votes1 answer1444 viewsA: Handle cache with AngularjsBrowser does not recognize, because precisely the script AngularJs.js already exists in the browser cache. For any script to be reloaded, why don’t you try using window.location.reload(true). Should… 
- 
		1 votes1 answer31 viewsA: What is the best component for resizing and partitioning image in different sizes?We can cut through the component jCrop(http://jcrop.org/). Already the resizing of the image in several other differentiated sizes we can create it through the native function of PHP… 
- 
		0 votes1 answer31 viewsQ: What is the best component for resizing and partitioning image in different sizes?I have already searched enough and there are some solutions to "resize" the images and create the "thumbnail" from an original image. I am creating a corporate network and would like to resize an… 
- 
		1 votes1 answer415 viewsQ: How to activate the mouse scroll bearing of a modal in Bootstrap?How do I scroll the bar of a PDF file, loaded inside a iframe (that is inside a modal of Bootstrap), work when the bar is clicked and when the scroll mouse (only works when the bar is clicked).… 
- 
		0 votes1 answer384 viewsQ: How to calculate similarity (in percentage) between strings in PHP?I would like to know how to calculate the similarity, in percentage, between two strings with PHP? For example: I got you a present! I want some presents from you!… 
- 
		1 votes1 answer384 viewsA: How to calculate similarity (in percentage) between strings in PHP?The best native form of PHP itself is this: $var_1 = 'Eu tenho um presente pra vocês!'; $var_2 = 'Eu quero alguns presentes de vocês!'; similar_text($var_1, $var_2, $percentual); echo $percentual;… 
- 
		1 votes2 answers1186 viewsA: How to remove the shading (backdrop) of a modal in Bootstrap and free the remaining area of the page?Thanks for the contribution, but I did not get the way you indicated. I did so: #myModal.modal-backdrop{ display: none; } #myModal.modal{ bottom: inherit; } It worked that way.… twitter-bootstrapanswered Maicon Herverton 877
- 
		3 votes2 answers1186 viewsQ: How to remove the shading (backdrop) of a modal in Bootstrap and free the remaining area of the page?I’m having trouble removing that shadow that sits around a Bootstrap modal. With the code below I can remove: #myModal .modal { overflow: hidden; } However, I cannot manipulate anything that is… twitter-bootstrapasked Maicon Herverton 877
- 
		1 votes1 answer1017 viewsQ: How to set UTF-8 default page encoding on Windows Server IIS?I have a coding problem (accentuation) with the template pattern of Bootstrap, specifically the carousel. The official code has the goals defined thus: <html lang="en"> <head> <meta… 
- 
		1 votes1 answer1017 viewsA: How to set UTF-8 default page encoding on Windows Server IIS?Actually, guys, I’ve already solved it. The problem is that Bootstrap be related to HTML, CSS and Javascript. We do not define for template the type of the page that will apply that encoding. For… 
- 
		1 votes2 answers750 viewsA: How to change the background color of a slider from the bootstrap-slider plugin?I did it! Actually the error was in the notation jQuery the correct is to pass the two separate parameters, 'background-color' and then the parameter with the value of color. $('#slider12a… 
- 
		0 votes1 answer46 viewsQ: How to disable a slider-like input field in bootstrap-slider?I’d like to know how to disable a camp input of slider in bootstrap-slider? 
- 
		1 votes1 answer46 viewsA: How to disable a slider-like input field in bootstrap-slider?To disable a slider using the bootstrap-slider depends on your original instance of the created field. For example, if you created your slider com jQuery then his instance was more or less like… 
- 
		3 votes2 answers750 viewsQ: How to change the background color of a slider from the bootstrap-slider plugin?I’m working with bootstrap-slider and want to make the slider when dragging, and having its value between a given number range (I use onChange), modify the background color of the selection bar.… 
- 
		1 votes2 answers322 viewsA: Comparison of search algorithms within text stringsYou can use a profiler to test the running time of the algorithms developed, or you can test the total running time. long start = System.currentTimeMillis(); //SEU CÓDIGO... pode ser a instância de… 
- 
		9 votes7 answers91443 viewsQ: Error: Unable to find or load the main class in Java (Eclipse or CMD)?If you ever came across the error message: Erro: não é possível localizar nem carregar a classe principal you probably won’t be able to run your code in Java. In the eclipse I came across this… javaasked Maicon Herverton 877
- 
		10 votes7 answers91443 viewsA: Error: Unable to find or load the main class in Java (Eclipse or CMD)?First of all, if you come across an error like this in Eclipse, you probably imported some project from your *workspace* or anywhere else in your Windows or you’ve tampered with the default settings… javaanswered Maicon Herverton 877
- 
		-1 votes3 answers2837 viewsA: Store multiple checkboxes in a single column with PHP + MysqlTry to run this code and see that the result is exactly what you want, put the results of various checkbox in a single field in the database, i.e., put the results of several checkbox in a single… 
- 
		1 votes1 answer139 viewsA: from sql server to mysql with phpIf your database is too large, your routine should use a script of backup mysqldump, write this file SQL in a folder and finally read this file in the Sql Server through a procedure. Due to the size… 
- 
		1 votes2 answers675 viewsA: Add PHP to ASP.NETI developed a platform in ASP+PHP, with independent servers (WINDOWS and LINUX), integration between two languages may occur in some ways: You can create keys to ensure the security of the… 
- 
		2 votes1 answer721 viewsA: What is the best way to set the height of an iframe at 100%?I found the solution in the international forum itself: How to set the iframe height & width to 100% The best solution is through CSS, but an important observation is that it is necessary to… 
- 
		2 votes1 answer721 viewsQ: What is the best way to set the height of an iframe at 100%?People what would be the best way to define the height of a iframe at 100%? I have tried with Height=100% own property HTML (although it is no longer advisable after the HTML5 and of the CSS), and… 
- 
		1 votes3 answers2663 viewsA: How to copy to clipboard without using flash?An even better way is to work with api clipboard HTML 5 to do this: http://www.htmlgoodies.com/html5/other/working-with-clipboard-apis-in-html5-web-apps.html#fbid=eh9tM7GHJWF You can refer to the… 
- 
		4 votes3 answers1685 viewsA: How to handle large volumes of data in a database?Your problem appears to be non-sscalable, that is, if all the records you have in the table have different keys, there is no way to optimize this search, because this is already the competence of… 
- 
		0 votes3 answers2944 viewsA: What is the best way to enter a large amount of records into the database?In the matter of optimization (best way to insert a large amount of data in the MySQL) I believe you could change the engine from your database, as long as it does not require many database… 
- 
		2 votes1 answer93 viewsQ: How to extract numbers by preserving their formatting of a PHP string?I’m having a question, how can I do to extract numbers from a PHP string preserving the formatting of it? I found a solution in the forum in English, but when extracting the numbers the pattern of… phpasked Maicon Herverton 877
- 
		2 votes2 answers238 viewsA: What alternative to replace ASP codes with Javascript?Why don’t you write the values of the variables ind_tipo_proposta_pj nome_campo_cod_ts and prefixo in fields HTML of the kind hidden, as soon as the ASP is executed, then you can manipulate with… 
- 
		3 votes1 answer260 viewsQ: Why does a Sort method not work properly on LINUX servers?I have a question, I have a function to order a array which has names of accentuated persons (UTF-8). It works properly on WINDOWS servers, but when I launch the code to run on LINUX servers the…