Introduction When you visit a webpage, your browser sends the user-agent string to the server hosting the site that you are visiting. This string indicates which browser you’re using, its version number, and details about your system, such as operating system and version. The web server can use this information to provide content that is [...]
Gaptek
January 21, 2013
http://superuser.com/questions/278446/ive-set-up-apache-but-cant-write-to-the-var-www-folder?rq=1
Gaptek
January 21, 2013
http://electronicsfanboy.com/index/technology/centos-default-gateway-setup-tutorial/
Form Validation Using jQuery and Regular Expressions
http://www.designchemical.com/blog/index.php/jquery/form-validation-using-jquery-and-regular-expressions/
Gaptek
January 20, 2013
http://www.stemkoski.com/jquery-ui-1-7-2-themes-list-at-google-code/
Custom WordPress SQL query for multiple meta values
To check for multiple custom fields you have to join the meta table twice. <?php global $wpdb; $query = ” SELECT * FROM {$wpdb->prefix}posts INNER JOIN {$wpdb->prefix}postmeta m1 ON ( {$wpdb->prefix}posts.ID = m1.post_id ) INNER JOIN {$wpdb->prefix}postmeta m2 ON ( {$wpdb->prefix}posts.ID = m2.post_id ) WHERE {$wpdb->prefix}posts.post_type = ‘post’ AND {$wpdb->prefix}posts.post_status = ‘publish’ AND ( m1.meta_key [...]
how to create self signed certificate with openssl for apache
Overview The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process. Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where [...]
nice post about symlinks on windows & linux
source: howtogeek.com
Sed – Delete one or more lines from a file
Unix utility SED provides an effective and a versatile way of deleting one or more lines from a designated file to match the needs of the user. This Unix command is used for command line processing. This utility can be used to delete expressions from a file which can be identified by a specifying delimiter [...]
Block certain Domain for particular time in squid
Use the following acl in squid.conf to only allow facebook after 17:30 (24 hrs time format): Code: # Mon to Fry time acl blockfacebooktime time MTWHF 17:30-8:30 # Domain name acl blockfacebookdotcom dstdomain .facebook.com # Only allow facebook after 17:30 http_access allow blockfacebookdotcom blockfacebooktime # Else block facebook http_access deny blockfacebookdotcom