Posts by Zuul • 35,190 points
501 posts
-
6
votes1
answer3720
viewsA: The.Leep() team with if/Else statements
Once you are in Windows the module msvcrt (English) is suitable to keep an eye on the user’s I/O in order to interrupt the waiting time: def wait_for_user(segundos): import msvcrt import time start…
-
4
votes2
answers522
viewsA: How to disable Godaddy server cache?
Did you mention the php.ini in your question even though you didn’t use the tag PHP. In case you are using PHP, there are headers to instruct browsers and proxy servers that should not cache your…
-
6
votes1
answer11490
viewsA: Access Denied phpMyadmin error 2002
Type of connection Based on the details provided by the error, try accessing the file: /phpmyadmin/config.inc.php And search the line: $cfg['Servers'][$i]['connect_type'] = 'tcp'; Altering tcp for…
-
6
votes3
answers11791
viewsA: Overwrite a <button> to a <img>
An idea without touching yours Markup is to make use of CSS to position the elements. For this purpose we use a CSS class in order to limit the Scope of applied styles: Example in Jsfiddle HTML…
-
6
votes1
answer846
viewsA: Take TD value and send as parameter
Assuming that in the success you are actually mounting the HTML you refer to in the question, your problem is that the table is also created by success of your call to Ajax. As the table ID does not…
-
1
votes2
answers1044
viewsA: Clear form on entry?
So you can analyze the Jsfiddle in your question, the forms for each tab are inside a iframe. Therefore, in the function dealing with the change of tab, you should apply the following code: //…
-
1
votes2
answers2474
viewsA: Get values from within a function that is within another function
The variable valores has to be defined with a Scope overall, that is, outside any function. That way in any part of the document you have access to it and its values. // Iniciar a variável…
-
6
votes1
answer1196
viewsA: SELECT command denied to user
This error is generated when you are trying to access a database with a user who does not have permissions on it. For your particular case, the user you are trying to access has no permissions to…
-
60
votes3
answers5939
viewsA: What are the techniques for making scroll-based animations?
The technique The effect that can be visualized in the link placed in the question is commonly known as "Parallax Scrolling". Parallax The term "Parallax" refers to the apparent motion of objects…
-
5
votes1
answer1320
viewsA: How to Create a New Account (Domain) via SSH?
Create cPanel account via terminal cPanel comes with a script called createacct (English) to create accounts from the command line. You can use it to resolve the account creation issue:…
-
1
votes2
answers746
viewsA: Excel printing with php and jquery
Your problem is that the output should be after sending the headers. Function PHP header() (English) <?php $nomeFicheiro = "bubu.xls"; $html = "<table><tr><td>Celula…
-
5
votes1
answer308
viewsA: Add inputs in report with more than one table!
Since you have several elements to be located to perform the sum value operation and display the result, you can make use of the iteration function .each() jQuery that will allow you for each group…
-
15
votes4
answers844
viewsQ: rtrim() to remove "<br>" also removes the letter "r" if it is the last letter in the string
If a string ends with an HTML tag, for example <br> or <hr>, when making use of the PHP function rtrim() to clear said tag, in cases where the letter immediately before is an "r", the…
-
3
votes1
answer157
viewsQ: Database query refactoring with multiples FIND_IN_SET()
I have the following query to find related topics by a set of ID’s that are not the topic to be viewed: SELECT press.image, press_i18n.title, press_i18n.slug FROM press INNER JOIN press_i18n ON (…
-
5
votes1
answer915
viewsA: Automatic remote upload of zipped file in PHP
The solution is to have on the clients side a file whose code is called when the client clicks on a button "Update". This code when called for execution will have to access the remote machine,…
-
7
votes6
answers16533
viewsA: How to mount the HTML of a "select" via PHP, using data from DB
The existing responses already address the problem effectively, I will leave my suggestion to contemplate the optimization of the script and more effectively monitor the outcome of the: <?php //…
-
2
votes1
answer732
viewsA: Installation Phalcon PHP
From the mistake you’re getting, it looks like you’re not doing the download the correct version of Phalcon to be used with your setup and version of PHP. Assuming PHP 5.5.0 PHP Non-thread-Safe…
-
4
votes2
answers2749
viewsA: How to create a tab menu with Javascript?
Your code of Javascript so that they can be called in the event onload tag BODY, must be present within the <head></head> of your page: Jsfiddle Working Example ... <head>…
-
4
votes2
answers2430
viewsA: Delete files with Codeigniter
The helper of files from Codeigniter allows you to delete files in a given path: $this->load->helper("file"); delete_files($caminho); If you want to delete only one file, you will be better…
-
4
votes1
answer2156
viewsA: Fixed Div when decreasing the screen
In order for your elements to respond to the width of the screen, you have to work with units of measurement based on it. The most practical thing for you is to work with percentages. In this…
-
1
votes1
answer611
viewsA: PHP does not recognize Json code
The mistake you’re getting: Notice: Undefined index: jsoncallback Indicates that the index in the matrix $_GET with the name jsoncallback there is no. When you do: echo $_GET["jsoncallback"]; You’re…
-
7
votes3
answers25254
viewsA: Subtract date and display in YEARS, MONTHS and DAYS
By making use of Mysql functions for manipulation and/or date collection, we can calculate the different differences in order to obtain the values separately. Assuming the value of the Date column…
-
6
votes10
answers68840
viewsA: How to make a <div> occupy the entire page width but leave a gap of a few pixels on each side in CSS?
When dealing with elements that are positioned fixed (position:fixed), we can make use of the properties left and right to adjust their spacing relative to the page without having to manipulate the…
-
3
votes1
answer509
viewsA: Browser zoom does not work with my CSS
Via CSS you have no control over the ability of the browser to do or fail to enlarge the page. This type of indications are passed to the browsers through META TAGS placed in the section…
-
3
votes1
answer487
viewsA: Updating content inside a Lightbox without giving Refresh on the page
Your page is "back to top" because when you click: <a class="lightbox" href="#" onclick="abrirPag('midia.php?I_POST=1');"> You have a # in the attribute href which by default will add to you…
-
6
votes1
answer8146
viewsA: How to create a mysql Trigger to take stock?
Mysql Trigger does not work for a table column but for a row. Therefore, you will need to check if the line contains new values and proceed accordingly. Create a Trigger To syntax to create a…
-
4
votes2
answers97
viewsA: How to add javascript files according to viewport/device?
The simplest way is to read the contents of string User Agent of the browser, make a test to check whether it contains the indication of mobile device and act accordingly: Javascript if (…
-
4
votes2
answers485
viewsA: Open 2 windows and close one at a time
On July 30, 2013, the user @JFK opened a Bug Report to the scenario you’re dealing with: Multiple inline content and lock Issue when Opening fancybox from Within fancybox Essentially, if you have…
-
4
votes2
answers888
viewsA: Background image makes the page flash when loaded
The image itself is not blinking, what happens is that due to the high number of requests that your page requires to be made, there is a small delay between the time the page is served and the…
-
10
votes3
answers16126
viewsA: Change text source from android APP
There are a number of steps to be taken for the correct implementation of non-standard fonts in an application, as well as some considerations. Below is a comprehensive explanation of the…
android-layoutanswered Zuul 35,190 -
3
votes1
answer7155
viewsA: How to show posts from a Facebook Fan Page on a Website
I think what you’re looking for is Activity Feed, one of the many plugins that Facebook makes available so that you can display data from your Facebook page on your web-site. Do not require any…
-
5
votes1
answer425
viewsA: Divs with float right without its inverted position
You can make use of a wrapper: Example in Jsfiddle <div id="divMaster"> <div class="pull-right"> <div class="pull-left" id="Div1"></div> <div class="pull-left"…
-
9
votes5
answers4257
viewsA: Row size Too large (> 8126)
The existing answers correctly address the problem, but I think when we talk about exceeding the limits of a row in the database, we’re dealing with the design of the table itself. The error…
-
4
votes1
answer185
viewsA: You have an error in your SQL syntax;
Not knowing the contents of your variable $_SESSION['banneron'], by analyzing the error you get, it indicates that it is located before closing parentheses. What was expected in the NOT IN() will be…
-
8
votes3
answers528
viewsA: Read file only by Java Android application
Encode images The first solution I came up with is to encode the image for a string in Base64, thus writing the same in a file: Function that receives image and returns Base64 public static String…
-
5
votes1
answer985
viewsA: Flaps change
In order to switch tab and clean the values filled in the form via Javascript, you must make use of the method reset() which will restore the form to initial values: Example in Jsfiddle Your code is…
-
10
votes1
answer10370
viewsA: Send email with Acentos BD Uft8
To send the email without problems, you must ensure that everything is using the same charset. If not, you will need to make conversions so that the email arrives properly. Assuming UTF-8 PHP…
-
4
votes2
answers121
viewsA: Problem running Jplayer when there is more than one item
From what I understand jPlayer, particularly for the demonstrations present on the site for multiple instances versions on the same page, they all have to be instantiated independently. The problem…
-
6
votes1
answer3327
views -
8
votes2
answers3232
viewsA: Limiting text in CKEDITOR
There is a plugin for the Ckeditor itself for the purpose of limiting the number of characters entered: Ckeditor Maxlength Plugin (English) Here are the steps to implement the same: Edit the file…
-
4
votes4
answers3185
viewsA: 301 https protocol redirect to http
For cases where everything that is HTTPS should be directed to HTTP: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]…
-
1
votes1
answer1871
viewsA: Tabs visibility using bootstrap
If I understand your code, your function open_interna() receives a parameter that is the target element whose value is #cadastro or #alteracao or #remocao from what I see in your HTML. If my…
-
7
votes2
answers127
viewsA: Accent in comment field
If your page is actually with charset iso-8859-1, you can make use of the PHP function utf8_encode() (English) to encode it in UTF-8. Note: In Phpmailer, you must specify the charset to be used for…
-
7
votes3
answers3683
viewsA: Upload thumbnail only of Youtube videos
Via URL The Youtube has a specific URL to collect thumbnails of the videos: http://img.youtube.com/vi/VIDEO_ID/#.jpg The # can be 0, 1, 2 or 3 corresponding to thumbnails that Youtube generates for…
-
2
votes1
answer453
viewsA: Date field in Codegniter form
In Codeigniter, through the documentation for its latest version 2.2.0, there is none helper for forms that generate fields for new types introduced with HTML5. Documentation for Form Helper…
-
2
votes2
answers198
viewsA: 'Undefined offset PHP' in a "for" loop
Your current code presents a number of problems regarding the use of variables, matrices, objects and HTML. The suggestion to resolve each of the issues is extensive and lacks the rest of the code…
-
1
votes1
answer328
viewsA: Is it possible to create and remove . properties files from Android by the application itself?
Cannot create files from the application. You can however interact with an existing file. To this end you should: Create in your project, at the desired location the file you will use from the…
-
3
votes2
answers112
viewsA: How to add offset in array for newsletter sending?
When it comes to sending newsletters, 8 Thousand recipients is not a high number, let alone a number that will consume all available memory. What seems to be missing is an optimization of the…
-
7
votes1
answer1390
viewsA: When should I use Data URI?
Rapid Response Data URI is not supported in Internet Explorer from version 5 to 7. In Internet Explorer 8 there is a limit of 32768 Bytes (32 KB). For everything else, you won’t have a compatibility…
-
4
votes2
answers526
viewsA: Recover string in database in a dynamic form_dropdown
From what I see in the code of your question, the only thing incorrect is the use of set_value(), if you remove it should work as expected. Note: the set_value() serves to set the value of a regular…