Posts by Zuul • 35,190 points
501 posts
-
7
votes2
answers13199
viewsA: How to force cache cleanup on my visitors' browsers
For Apache, you can use the file htaccess with the cache control directives that inform browsers about when it should download a new version of each file. Some examples: Header unset Pragma FileETag…
-
4
votes6
answers14461
viewsA: Convert month number to name
The answers already present are the way forward, but for those with problems defining the locale for English, sometimes impossible or limited scenario due to server definitions, a function is based…
-
1
votes2
answers142
viewsA: Problems with Phpmailer and large emails
The $mail->Body with a minimal amount in Kb failure and gives problems. Try to convey the message as follows: $mail->MsgHTML($this->_txtMessage); and/or also: $mail->AltBody =…
-
10
votes2
answers55209
viewsA: Set OPTION as SELECTED based on database values
Assuming the value of the checkbox is contained in the variable $TipoBeneficiario, so that you can mark a selection box option as selected you should compare each of the options with the value…
-
4
votes1
answer143
viewsQ: Display all tables in the Phpmyadmin navigation column
The Phpmyadmin (English) in these latest versions has the number of tables in the left side navigation limited, being applied a pagination to them. Not only have I noticed being something slower as…
-
10
votes1
answer1685
viewsA: Ubmit in form with jquery does not work
Almost there, but you need to separate the code: You have to attach the alert() at the submit form; In the event that hears the change of input, should trigger the sending of the form. Example in…
-
16
votes2
answers1375
viewsA: What is it and what are the advantages of Currying?
Currying (English) is the name given to the technique of dividing a function that takes several arguments into a series of functions each dealing with an argument from the initial function. Of…
-
2
votes1
answer319
viewsQ: Recursivedirectoryiterator: failed to open dir: Too Many open files
Back and forth, unable to collect data to understand what might be behind this, I get the following error: Recursivedirectoryiterator::__Construct(path/to/directory) [recursivedirectoryiterator.…
-
6
votes1
answer383
viewsA: Value of a query to a numeric field returns non-numeric
You are collecting the value of the element with the identifier #idLblID using the method .text() (English) which serves the purpose of collecting a string with everything found inside the target…
-
5
votes2
answers680
viewsA: Share text on Facebook
To pass parameters or even set a specific URL, you have three ways to do it: Enter the parameter for the Addthis in wrapper: <div class="addthis_toolbox addthis_default_style addthis_32x32_style"…
-
12
votes2
answers4009
viewsA: Format decimal with comma and thousand with dot
Use Qlocale If the formatting you want is used in a particular language, you can format your number by setting the Qlocate (English) with the language containing the desired formatting: // a…
-
17
votes4
answers15751
viewsA: How to check if an image exists in a remote URL?
My approach to dealing with this issue is to use Client URL Library (Curl) (English) to collect the HTTP Status code (English) and with the same knowing whether or not the image exists in the given…
-
7
votes3
answers691
viewsA: How to leave Facebook comment plugin with 100% width?
Updating It seems that the Facebook method is not accepting percentages through the configuration option data-width, because the value is being converted to pixels irrespective of the indicator of…
-
6
votes3
answers16413
viewsA: Run function after some time
If all you want is to wait an X of time before actually running the code associated with hover, one timer resolve your issue: var tempo_espera; $('#test').hover( function() { tempo_espera =…
-
1
votes1
answer203
viewsA: Eclipse update error: "Unable to connect to Repository"
No details about your system, internet access and Eclipse version, there are two things you can check to try to resolve the issue: Giving preference to Ipv4 Based on the error message, the problem…
-
10
votes1
answer462
viewsA: Using Cookies or Databases?
The title of your question refers to the decision to choose to use cookies or a database to store information. The content of your question poses a problem about how information is stored in a…
-
4
votes2
answers4403
viewsA: Margin breaking layout in Bootstrap
My approach to presenting tabular data is to use a table. The grid that Bootstrap uses is suitable for the structure of a web-site so that it responds to the various devices and resolutions without…
-
7
votes3
answers1694
viewsA: Script is not working in IE
Following the comment I left yesterday on your question, today I had the opportunity to test and really Internet Explorer does not trigger the event of click in option of the element select but in…
-
4
votes2
answers234
viewsA: How to perform an action before 'mousedown' in javascript/jquery?
Updating After reading your comment and rereading your question things already make another sense. Assuming you want to allow multiple options to be selected without the user using the key Ctrl, you…
-
4
votes2
answers252
viewsQ: Interpret and direct with URL that after domain contains a hash
I am creating a rule for interpreting addresses that after the domain begin with # followed by numbers or followed by letters whose rule should only be read if there is no file or directory matching…
-
6
votes1
answer307
viewsQ: PHP code refactoring to provide image with specific size
The code below aims to provide an image with specific measures to minimize its size and thus optimize the web-site loading. Problem The image takes more than 1 second to be provided, making it a…
-
1
votes3
answers554
viewsQ: Get the structure of a table through a query
Through Phpmyadmin, accessing a table, we can see the structure of it in the tab structure listing the fields, the types of data each accepts, and other information. How can I obtain through a query…
-
26
votes1
answer58526
viewsA: How do I make a SELECT in 2 or more Tables with 2 or more conditions?
Your concrete example is a little confused and seems to have little to do with the logic you’re presenting. Your logical example Since you are not giving details about each table and how they…
-
2
votes1
answer153
viewsA: PLS-00324 error when creating Body Package
Your problem is you’re applying the attribute %NOTFOUND to an identifier V_CD_ESTADO without it having been declared as a cursor. You need to declare: CURSOR V_CD_ESTADO Documentation: PLS-00324:…
-
3
votes5
answers491
viewsA: Product search by name and brand
Prepare the data First you need to prepare the data that the user provides you, that is, whether indicated camisa Hollister or Hollister camisa, you should find results assuming that the brand and…
-
1
votes1
answer73
viewsA: Use pagination in 2 lists without one influencing the other
From what I can understand in your question, you are using the same code for both versions, but you are not indicating in which list the user clicked to request the image change and associated…
-
3
votes3
answers81
viewsA: Order of posts when consulting the database of my CMS
From what I understand of your question and based on the comments you have already left in the existing answers, your table articles contains a field with the name article_timestamp. Assuming the…
-
10
votes3
answers19566
viewsQ: Customize the browser message for a "required" field
With the attribute required (English), for example in a field of the text, the browser will present a balloon to the user to realize that this field is required and must be filled. The problem…
-
13
votes2
answers36925
viewsQ: Change the "placeholder" color without affecting the "value" color
In HTML5, we can make use of the attribute placeholder (English) in order to give the user a hint about the type of data that a given field accepts. To avoid confusion between data actually written…
-
8
votes2
answers1136
viewsA: Carousel style with 3 slides
From what I see analyzing the DOM of the page whose link provided in the question, your problem is in the CSS styles for the elements within each li of your slider. Here is a list of changes to…
-
10
votes8
answers7818
viewsQ: Check if variable contains a well formatted PHP email address
The variable receives a value that is supposed to be an email address, but doubts arise: It will be an email address, random text, or anything else? Being an email address, it is well formatted?…
-
1
votes2
answers702
viewsA: Update data File
So that you can submit a form for changing all fields of a particular record in a table containing columns of the type BLOB with PDF documents present in it, you should avoid the fields input of the…
-
3
votes1
answer658
viewsA: Selector or Script to assign different content to elements with the same class
Problem What’s missing in your code is that you’re saying you want to go to every element with the CSS class .title-texto and add an attribute title with the text value of all elements with the CSS…
-
4
votes4
answers1914
viewsQ: Check if a file exists on the remote machine via FTP in PHP
How can I check if a file exists on the remote machine using PHP via FTP (English) in order to act accordingly? <?php $ficheiro = 'public_html/banana.xml'; $id_ligacao =…
-
48
votes6
answers18641
viewsQ: What is the difference between declaring an array with "array()" and "[]" in Javascript?
In Javascript we can declare an array in two ways: var matriz = new Array(); and var matriz = []; What is the difference between the two and what the consequences are? This question is being asked…
-
1
votes2
answers247
viewsA: Strange redirection
Apache by default is configured to work with the file index.html. Only if it is not located will it try to locate the index.php. A quick way to resolve this is to put a file at the root of your…
-
2
votes2
answers915
viewsA: Image Slider with Jquery
Solution with Fadein effect / Fadeout In order to give an effect to the image exchange, you need to make a small change to the CSS so that the image styles go to the element that surrounds it,…
-
17
votes4
answers31096
viewsA: Writing and reading file via Javascript
Javascript is executed inside the "environment" of the browser and it is not possible to pass to the operating system, where effectively the document would exist and it would be possible to read and…
-
6
votes1
answer5300
viewsA: Query server problem has Gone away
As a general rule the mistake you’re seeing is due to three problems: mysql_query(): Mysql server has Gone away Operations performed in PHP If between the time you open the database connection and…
-
4
votes1
answer48
viewsA: Include in the email only the dates that are about to end
To mention the fields whose date is about to end, you must compare the date with a deadline, in order to determine whether the field should be present in the email. Let’s assume that the deadline is…
-
4
votes1
answer247
viewsA: Check records between today and 10 days in the future to send by email
Collect only records between the current date and the next 10 days When using the Mysql NOW() (English), you are working with dates formatted as follows: 2014-03-03 11:47:30: Returns the Current…
-
4
votes1
answer326
viewsA: Problems sending FILE to Database
The output of the matrix $_FILES is coming out with the following information: Array ( [AlvaraAnexo] => Array ( [name] => cc2.pdf // nome do teu ficheiro [type] => application/pdf // header…
-
3
votes1
answer1398
viewsA: CSS of Magento themes
Magento and its settings You need to make sure that Magento is sending the correct theme CSS file. It may seem basic, but it happens with some frequency, especially in cases where we use various…
-
1
votes1
answer157
viewsA: Insert Android App into another Android app
The solution in the case of Android is to create a Android library project (English), allowing other applications to use it attaching it to the application (English). The steps are described in the…
-
20
votes2
answers29759
viewsQ: Change the "collation" and "Character set" of the database, tables and corresponding columns
Some older projects were designed for their immediate purpose and based on this, the databases, tables and columns were prepared in a way limited to the intended scenario. In order to update and…
-
7
votes1
answer859
viewsQ: Transfer ownership of a "Property" from Google Analytics?
The documentation on the ownership of Google Analytics accounts does not clarify whether it is possible to transfer ownership of certain Property user A to user B. I found this answer on SOEN given…
-
5
votes2
answers386
viewsA: Rotation check in javascript
The mathematical principle turns out to be always the same, and the answer of @Gabriel Vítor already deals very well with the problem. I leave a function based on jQuery to collect the rotation…
-
3
votes2
answers1647
viewsA: How to get (in object) Facebook data?
As I understand your question, you need to make use of the Facebook API to collect data and/or feed of a particular user receiving them in the form of an object. If you make a HTTP Get to the…
-
5
votes5
answers2014
viewsA: Disable a Ubmit and Enable only when radio minimum Buttons is selected
You can check as you choose the options if you already have 5 or more to activate the button: Example in Jsfiddle // desactiva por defeito $('form button').html('Tens que escolher mínimo…
-
8
votes3
answers3604
viewsA: How to make a background of an element in SVG in a decent way?
Change the Markup is an option I’m the reply separately because they are two different solutions with different implications and in a way this is an extensive response that lacks its independence.…