Posted on 20 April 2012. Tags: html, metas
DNS Prefetching
In short, DNS Prefetching is a method of informing the browser of
domain names referenced on a site so that the client can resolve the DNS
for those hosts, cache them, and when it comes time to use them, have a
faster turn around on the request.
Continue Reading
Posted in CSS, HTML - XHTML
Posted on 19 April 2012. Tags: CSS
Applying conditional classnames to the html element is a popular way to help target specific versions of IE with CSS fixes. It was first described by Paul Irish and is a feature of the HTML5 Boilerplate. Despite all its benefits, there are still a couple of niggling issues. Here are some hacky variants that side-step those issues.
Continue Reading
Posted in CSS
Posted on 18 April 2012. Tags: Apache, wamp
Look for this part in the httpd.conf file installed in C:\wamp\bin\apache\apache 2.x.xx\conf
Continue Reading
Posted in PHP
Posted on 17 April 2012.
Being a web designer is not easy. Not only do we need to have a good understanding about visual design, typography, information architecture, psychology and a plethora of other disciplines; in our work, we need to take care of so many details, so that our job becomes more and more time-consuming, requiring dozens of tools, attention span and an effective workflow for beautiful, timely and functional results. Continue Reading
Posted in PHP
Posted on 17 April 2012.
PHP is one of the most widely used open-source server-side scripting languages that exist today. With over 20 million indexed domains using PHP, including major websites like Facebook, Digg and WordPress, there are good reasons why many Web developers prefer it to other server-side scripting languages, such as Python and Ruby. Continue Reading
Posted in PHP
Posted on 13 April 2012. Tags: declare, PHP, tick
Explanation
The declare statement is used to set execution directive for a block of codes.
Continue Reading
Posted in PHP
Posted on 12 April 2012. Tags: implode, multidimensional array, PHP
Function to variation on implode_with_key:
Continue Reading
Posted in PHP
Posted on 12 April 2012.
PHP offers an alternative syntax for some of its control structures; namely, if, while, for, foreach, and switch. In each case, the basic form of the alternate syntax is to change the opening brace to a colon (:) and the closing brace to endif;, endwhile;, endfor;, endforeach;, or endswitch;, respectively. (PHP 4, PHP 5)
Continue Reading
Posted in PHP
Posted on 11 April 2012. Tags: headers, PHP
Modify HTTP Headers (Examples)
Many examples that show how to use the header() function of PHP
Continue Reading
Posted in PHP
Posted on 11 April 2012. Tags: php. php_eol
When you run PHP in a web server, "\n" and "\r\n" will not do anything (it literally just separates the code into different line breaks). <br> makes a new line in HTML (hence "line BReak"). Since you are viewing the PHP in a web browser, it parses the code in HTML. Therefore, "<br>" will make new lines, whereas "\r\n" will not do anything.
Continue Reading
Posted in PHP
Posted on 09 April 2012. Tags: crop, image area select, jquery, resize
imgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement image cropping functionality, as well as other user interface features, such as photo notes (like those on Flickr).
Continue Reading
Posted in JavaScript - Ajax
Posted on 09 April 2012. Tags: capture, CutyCapt
CutyCapt
CutyCapt is a small cross-platform command-line utility to capture WebKit’s rendering of a web page into a variety of vector and bitmap formats, including SVG, PDF, PS, PNG, JPEG, TIFF, GIF, and BMP. See IECapt for a similar tool based on Internet Explorer.
Posted in Linux, PHP
Posted on 07 April 2012. Tags: magpie, rss, rss parser
MagpieRSS is compatible with RSS 0.9 through RSS 1.0. Also parses RSS 1.0′s modules, RSS 2.0, and Atom. (with a few exceptions)
Continue Reading
Posted in PHP