SearchRecent posts
The Random ToolboxDrupal 7 Setting up variables for use in a template (preprocess and process functions) Rendering Drupal 7 fields (the right way) Linux Secure Copy (scp) command Restrict Free Shipping in Magento Quickbooks Text Connection Ticket Cross-Site Request Forgery (CSRF) jQuery Events: MouseOver / MouseOut vs. MouseEnter / MouseLeave Monthly archive
|
January 2012Browser and Operating System (OS) Detection with Javascriptvar BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { for (var i=0;i<data.length;i++) { var dataString = data[i].string; var dataProp = data[i].prop; this.versionSearchString = data[i].versionSearch || data[i].identity; if (dataString) { if (dataString. Tar - exclude filesHow can I keep out certain files when creating a tarball? For example: /home/me/file1 /home/me/dir1 /home/me/dir2 /home/me/abc /home/me/xyz How do I execute zyz and abc file while using a tar command? Show SKU in Cart Module - UbercartCreate a folder in your modules directory named uc_show_sku and add these files. IE7 Hide Link Text and Leave Link Clickable - IE7 Text-Indent Effectline-height: 0; font-size: 0; color: transparent; .htaccess 301 Redirect to Different DomainOptions +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.newdomain.com/$1 [r=301,nc] |