Skip to main content
Home
Toggle menu

Main navigation

  • Home
  • Blogs

Blog

How to detect Mobile device using JavaScript

Here is how to detect if user has opened site in mobile device or desktop. For this we're using JavaScript code which will be executed at client-side.
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
  • Read more about How to detect Mobile device using JavaScript

Replace file extension from string - PHP

Suppose we've file name (with extension) as part of string and while displaying to users we want to replace file extension from string. Here's how we can do this:
<?php
  $snippet = 'Lorem ipsum dignissim interdico meus file.exe dolore ideo.';
  • Read more about Replace file extension from string - PHP

Configure PHP.ini to show errors - Ubuntu

Note: Make sure you're enabling this only on development server. It's very common for any developers to make a mistake while developing, which will result in White Screen of Death (WSOD).
  • Read more about Configure PHP.ini to show errors - Ubuntu

Alter $WP_Query in WordPress

When showing list of content (i.e. Posts, Custom Post Type) on Category Page, the main $WP_Query renders posts of default Posts type.
  • Read more about Alter $WP_Query in WordPress

How to get views result count programmatically - Drupal 7

The current project I'm working on has a lot of customization of Drupal Commerce and display of views. One of the customization I've done is while displaying views result, show total of two views results in one view i.e.
  • Read more about How to get views result count programmatically - Drupal 7

How to get Payment method settings in Drupal Commerce

Today we're going to see how we can retrieve the payment method settings when ever we required. The payment methods are used to accept the payments from user during Checkout process.
  • Read more about How to get Payment method settings in Drupal Commerce

Tweak exposed form in Views in Drupal

Views module provides the ability to site admin to allow users to select the filters and dynamically refine the results based on selection made. This can be achieved using exposed filters in views.
  • Read more about Tweak exposed form in Views in Drupal

How to setup Virtual Hosts in WAMP

Starting with WAMP, it allows developers to setup site in their local machine just like we setup on dev or production server. I've installed WAMP in my "C:\" drive.
  • Read more about How to setup Virtual Hosts in WAMP

How to install wget command on CentOS

Wget is an open-source commandline tool for downloading files using HTTP. To install wget command on CentOS, follow below steps:
  • Read more about How to install wget command on CentOS

How to remove bluetooth devices in Windows 8

Today we'll see how to remove the bluetooth devices in Windows 8 or Windows 8.1. Following are the steps to remove unwanted bluetooth devices from Devices and Drivers listing:
  • So first thing we need to do is get our cursor to either top-right or bottom-right corner of our
  • Read more about How to remove bluetooth devices in Windows 8

Pagination

  • First page First
  • Previous page Previous
  • Page 1
  • Page 2
  • Current page 3
  • Page 4
  • Page 5
  • Page 6
  • Next page Next
  • Last page Last
Subscribe to Blog

Monthly archive

  • June 2016 1
  • April 2016 1
  • March 2016 1
  • November 2015 1
  • October 2015 2

Pagination

  • Previous page ‹‹
  • Next page ››
sfy39587stp18