Tuesday, February 4, 2025

Credence Physio Physiotherapy Services

Physiotherapy, also known as physical therapy, is a healthcare profession focused on the assessment, diagnosis, and treatment of physical impairments, disabilities, and mobility issues. It uses various techniques such as exercises, manual therapy, and specialized equipment to promote recovery, improve function, and enhance overall physical health. Physiotherapists work across diverse fields, including orthopedics, neurology, sports, pediatrics, and geriatrics.



Credence Physio - An advanced physiotherapy clinic provide physiotherapy services for the patient at clinic and at their home. Our staffs are well trained and certified Physiotherapists specialized in Orthopaedics, Sport Injuries, Neurorehabilitation.

Credence Physio offering therapies like manual therapy, electro therapy, cupping, tapping, IASTM, MFR. We provide physiotherapy services for post surgery rebab for trauma, Total Knee Replacement, ACL, Total Hip Replacement etc. Please contact our experts for any physiotherapy related services - Book your appointment today!



Friday, February 22, 2013

Listing current user uploaded brightcove videos in drupal

If you want to list current user uploaded video in drupal, use below code.
Drupal brightcove module provides an option to store the Drupal username of the user who uploaded a video. You need to create this field(custom field) in brightcove before using this feature. Click here to understand how to create cutsom field in BC Studio.


Goto drupal brightcove configuration page and add this field name in "Brightcove Drupal User Custom Field" field. Brightcove module automatically update drupal username in brightcove while uploading new video into video cloud. The below function will fetch all the videos which uploaded by the user.


function video_list(){
  global $user;
 
  // Define our parameters
  $params = array();
  $user_field = variable_get('brightcove_user_field', '');
  // Set our search terms
  $terms = array(
    'all' => $user_field .':'. $user->name
  );
  
  // Make our API call 
  $videos = $bc->search('video', $terms, $params);
  // $videos contains all video which uploaded by the current user
  //write your code for display the result
}

Wednesday, January 30, 2013

How to use brightcove video Search in drupal


Brightcove video cloud, a cloud based video hosting and publishing solution. Drupal is one of the most commonly used open source CMS.

To integrates brightcove video cloud into drupal, drupal community provides one module called Brightcove module. . Using this module you can add Brightcove video to your content and access the information from the Video Cloud in your site.
 In brightcove module they are using Brightcove Media API and this APi provides various methods to retrieve properties from brightcove video cloud. But this module is mainly focusing on find method. So here I am trying to explain how to use search method in drupal. Search method is also a simple function to retrieve properties and information from Brightcove.

To call search method we need to pass three arguments - method, terms and params.Using this method we can search custom fields from brightcove. Here I'm explaining how to search custom fields value from brightcove using search method.

Below code shows how to search for a video with "jobs" in the title AND tags.
 
// Define our parameters
$params = array(
    'video_fields' => 'id,name,shortDescription'
);

// Set our search terms
$terms = array(
    'all' => 'display_name:jobs,tag:jobs'
);
  
 // Make our API call 
$videos = $bc->search('video', $terms, $params);

 Below code will explain how to search video with custom fields. 
custom field name is drupal_user and this field is used for storing uploaded user name(Drupal Username) in brightcove.


// Define our parameters
$params = array(
    'video_fields' => 'id,name,shortDescription'
);

// Set our search terms
$terms = array(
    'all' => 'drupal_user:jobs'
);
  
 // Make our API call 
$videos = $bc->search('video', $terms, $params);



Friday, October 5, 2012

How to create Virtual Hosts in Ubuntu

Virtual Hosting is a method for hosting multiple sites/domains in a single server. It helps to reduce the cost and can share the memory and processor cycle. In local host also we can create Virtual host and we can call original domain name(production/live domain) from our development environment(localhost). Here I am providing the steps for creating Virtual host in Linux/Ubuntu workstation.


i.  Assume your code resides at /var/www/yoursite

ii.  You can access your site using http://localhost/yoursite.

iii.  Edit vhosts file in sites-enabled. sudo gedit /etc/apache2/sites-enabled/vhosts.conf.

iv. Add below code in vhosts file

<VirtualHost *:80>
ServerName local.yoursite.com
ServerAlias www.local.yoursite.com
DocumentRoot /var/www/yoursite
</VirtualHost>
v. Open the file /etc/hosts in your editor.
vi. Add below lines of code.
127.0.0.1   local.yoursite.com
vii. Restart your apache server.
sudo /etc/init.d/apache2 restart
viii. Access http://local.yoursite.com to view your site in direct domain.
 

Saturday, September 1, 2012

How to convert milliseconds to date format in PHP

Normally date field is stored in database as timestamps format, the number of seconds since 00:00:00 UTC on January 1, 1970. Some times the date represented as the number of milliseconds.

There is no default function available in PHP to convert this milliseconds representation to human readable format. In PHP date function is used for converting timestamp format to local date/time format.

This following PHP function will convert milliseconds format to local date format

$milliseconds =  1340562600000;
$timestamp = $milliseconds/1000;
echo date("d-m-Y", $timestamp);

output = 25-06-2012

Monday, July 16, 2012

Find factorial using PHP

Function to find the factorial of the given value



function factorial($val){
  if($val == 1){
    return 1;
  }
  else {
     return $val*factorial($val-1);
   }
}



Friday, July 13, 2012

Redirect all users to access the site with 'www' prefix using htaccess file

We can redirect the site url to "www" prefix, whether the user is accessing the site without "www" prefix by adding rewrite url in .htaccess file in root folder.

add following lines in .htaccess file to add www prefix.

 RewriteEngine on

 RewriteCond %{HTTP_HOST} ^yoursitename\.com$ [NC]

 RewriteRule ^(.*)$ http://www.yoursitename.com/$1 [L,R=301] 


Similarly we can remove "www" prefix from the url and redirect to without "www" by adding following lines in .htaccess file


 RewriteEngine on

 RewriteCond %{HTTP_HOST} ^www\.yoursitename\.com$ [NC]
 RewriteRule ^(.*)$ http://yoursitename
.com/$1 [L,R=301] 


Thursday, April 12, 2012

CSS fix for Chrome IE7 and IE8

In some cases we need to add browser specific css properties for the site, like separate css for IE 7 and IE8 to acheive the correct layout. To acheive that we can use different methods - 1. add custome CSS file for each browser and 2. Add custom properties in the main CSS

Here I am specifying how to add separeate css properies for Chrome, IE 7 & IE8 in the main CSS file.

Chrome

Google Chome is the fast growing web browser. Some times the site layout will break and need to alter css property for this particular browser.
To fix CSS issues for Chrome use body:nth-of-type(1) .elementOrClassName{property:value;}.
Eg: body:nth-of-type(1) .sitename{margin:20px;}
HTML
<div class="sitename"></div>

IE8

For IE8 use inline css hack "\0/".
.elementOrClassName{property:value;\0/}
Eg: .sitename{margin:20px;\0/}

IE7

* (star) can be used as the inline hack for ie7
.elementOrClassName{*property:value;}
Eg: .sitename{*margin:20px;}

IE6

_ (underscore) can be using for ie6
.elementOrClassName{_property:value;}
Eg: .sitename{_margin:20px;}

Monday, February 6, 2012

How to find parent element's id using jquery

Here I am explaining how to find the parent element's id of a html element using jquery function.


$(this).parent().attr(''id);

this jquery function will give the "id" of the given element's parent  element.


eg:


<html>
   <script>
      $("a").click(function(){
         var parentid = $(this).parent().attr(''id");
      });
   </script>
   <body>
     <div id="parent-id" class="parent-class">
       <a href="#">test</a>
     </div>
  </body>
</html>


the variable "parentid" will return the value parent-id


Thursday, February 2, 2012

How to change Favicon in blogger

Favicon is a small icon shown next to the site URL in the browser's address bar. It is available for all websites with an image type of ico. In blogger, it is an orange colored icon by default. 



By performing the following simple steps you can change this default favicon to your own icon and it will give a good and unique looks to your blog site. Before following the step you need to create your own favicon. There are lot of free favicon generating sites are available or other wise you can create by image editing tools like photoshop or gimp.

Use Blogger Admin feature

Blogger has officially launched feature to change the default favicon through admin section, in the layout tab.
1. Login to your blogger account http://www.blogger.com
2. Then goto the Layout tab
3. In this Layout tab you can see the region called favicon. Click on the edit link
4. A new window will open, there you can select favicon image stored on your computer.
NB: This feature support ico format only
5. After you have selected your image, click the save button. Blogger will automatically resize and upload your image to your blog.




Manually Update the image

For this option you need to host the favicon on a website. A lot of free image hosting sites are available in internet.

1. Login to your blogger account
2. Then goto the Template tab. Before updating the favicon please take a full back up of your blog template.
3. Click on the edit HTML link and then look for the code "<title><data:blog.pageTitle/></title>"
4. Paste the following code right after the above code
<link href=’FaviconURL’ rel=’shortcut icon’ type=’image/x-icon’/>
FaviconURL - is the website address or location where your favicon hosted.
 5. Then save the template. Blog will load with your new favicon.

Monday, December 12, 2011

How to remove LinkWithin from homepage, blogger

LinkWithin is a blog widget that appears under each post, linking to related post from your blog archive. It is an awesome "related post" service which provides users to navigate to similar and related articles in the site easily.


In home page and category pages where the multiple posts displayed , you will also see this related post of each article. This is not looking good so here I am explaining how to remove the related post widget from home page and showing this linkWithin in single posts.

  • Login to your blogger and then goto Template >> Edit HTML
  • Check Expand Widget Templates
  • Search “LinkWithin” in your template
  • Add the following lines to your code( those in Red)
<b:widget id='HTML1' locked='false' title='LinkWithin' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<data:content/>
</b:if>
</b:includable>
</b:widget>

Wednesday, October 26, 2011

How to remove option from selectbox options using Jquery

Here I am explaining how to remove an option from selectbox or combobox  options list using Jquery. Jquery is a powerful javascript library that provides a lot of predefined functions to achieve our needs.

For removing the option, using remove function(remove()).  
Add following script in onload function.

$("#selectboxid option[value='value']").remove();


selectboxid = ID of your selectbox
value = value of the option which you want to remove.


$(document).ready(function()){
   $("#select-id option[value='0']").remove();
});


Here option value 0 is removed while  the form load.

http://api.jquery.com/remove/

Saturday, October 15, 2011

Top 20 Wordpress plugins and their Drupal equivalent

Wordpress is a popular blogging platform like google blogger. It provides more flexibility than blogger. If you want setup a good looking blog site quickly without knowing more technical stuff, then Wordpress should be the most likely choice for you . It provides a lot of plugins that just enable to activate more user friendly functionalities.

Wordpress is a Content Management System(CMS) build around PHP and MySQL. Like Wordpress, Drupal is also a CMS build around PHP and MySQL with almost all the strengths of Wordpress. But Drupal is more developer centric and customizable and robust when compared to Wordpress and it useful for developing Medium and large Websites, other than just a blog site. 

Due to the huge fanbase and ease of programming, Wordpress has numerous plugins at its disposal. There are Drupal equivalents for most of these. Here is our take on a few popular Wordpress plugins and their equivalent Drupal modules.


1. Akismet - It is a Wordpress plugin that check your comments against the Akismet web service to see if they look like spam or not and lets you review the spam it catches under your blog's "Comments" admin screen.

 Mollom is the Drupal equivalent of Akismet and is a popular spam prevention service module. Drupal version of Akismet module also available

2. All in one SEO pack - Automatically optimizes your WordPress blog for Search Engines (Search Engine Optimization)


 Drupal has several tested and proven modules available in the Drupal core as well as in the contributed section. The most popular ones are

  1. Path – core module
  2. Pathauto
  3. Path redirect
  4. Search 404
  5. Page title
  6. Nodewords ( A new module Metatagsis on development to replace nodewords. Currently there is a quick solution to use Metatags Quick available for Drupal


3. Bad Behavior - It prevents spammers from ever delivering their junk, and in many cases, from ever reading your Wordpress site in the first place.

 Bad Behavior is available for Drupal and it is a set of PHP scripts which prevents spambots from accessing your site by analyzing their actual HTTP requests and comparing them to profiles from known spambots. It goes far beyond User-Agent and Referer, however.

4. Broken Line Checker - It will check your posts, comments and other content for broken links and missing images, and notify you if any are found.

 Link Checker is the Drupal module to detect broken hypertext links.

5. Contact Form 7 - Wordpress plugin that can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.

 Drupal has core module for Simple contact us form. Webform can be used to create any type of custom forms. It supports csv export of the collected information. It is also possible to use captcha with webforms.

6. Google Analytics for Wordpress - WordPress plugin allows you to track your blog easily and with lots of metadata.

The Google Analytics module for Drupal incorporates all the features of the Wordpress plugin for Drupal.

7.  Google XML sitemaps for Worpress - This plugin will generate a special XML sitemap which will help search engines to better index your blog.

Drupal has also a Google XML Sitemap module with the same functionality.

8. GTranslate is a Wordpress plugin that provides an automatic translation service to translate your web page with Google power. With the ability to translate over 58 available languages your site will be available to more than 98% of Internet users.

GTranslate for Drupal does the same thing in Drupal and has been coded by the same author.

9. Lightbox Plus is a Wordpress plugin that permits users to view larger versions of images, simple slide shows, videos and content all in an overlay. It uses the popular colorbox jquery plugin.

Colorbox module for Drupal will provide full integration of the colorbox plugin.

10. MapPress is is the most popular and easiest way to create great-looking Google Maps and driving directions in your Wordpress blog.

In Drupal Gmap is the advanced and complete google map solution in Drupal. If you just want a basic google map embedded in a page, use LocationMap or Simplemap as per your requirements.

11. Newsletter is a Wordpress plug-in that lets you collect subscribers on your blog with a single or double opt-in subscription process. Double opt-in is law compliant and it means the user has to confirm the subscription following simple standard instructions sent to him via email.

Simplenews Drupal module - It can be used to send newsletters. Both anonymous and authenticated users can opt-in to different mailing lists. HTML email can be send by adding the Mime Mail module.

12. NextGEN Gallery Wordpress plugin is a fully integrated Image Gallery plugin for WordPress with a slideshow option. Before I started writing the plugin I studied all the existing image and gallery plugins for WordPress. Some of them are really good and well designed, but the gap I filled was a simple administration system at the back end which can also handle multiple galleries.

There are no equivalent ready made solutions available for Drupal, though there are some modules like Fast Gallery available, it will not stand anywhere near the features provided by the nextgen gallery.

The best way to create a custom image gallery in Drupal is to use the content types, image field and views. You can use modules like DDBlock, Views_Slideshow using views and content types.

13. Redirection is a WordPress plugin to manage 301 redirections and keep track of 404 errors without requiring knowledge of Apache .htaccess files.

Path redirect is the popular alternative in Drupal

14. Simple Tags add some tools for taxonomies like Terms suggestion, Mass Edit Terms, Auto link Terms, Ajax Autocompletion, Click Terms, Auto terms, Advanced manage term
In Drupal: By default Drupal taxonomies support tags with auto-complete option. Other features like tagcloud and manage tags can be done using the
  1. Tagadalic For tagclouds
  2. Taxonomy Manager - Manage taxonomies
  3. Community tags - allow users to tag content and track it.
15. Social Plugins - Wordpress comes with the popular social plugins Addtoany and Addthis.

Both of these plugins provide share icons of the popular social bookmarking websites. Add-to-any allows integration with google analytics and Addthis allows customization of the social icons.

Both Addtoany and Addthis are available as modules for installation in Drupal to enhance your social experience while using Drupal

16. WP e-Commerce is a free WordPress Shopping Cart Plugin that lets customers buy your products, services and digital downloads online.

Ubercart is the popular tool for ecommerce applications in Drupal. It is a superior e-commerce solution available when compared to the wordpress equivalent and has tons of features.

17. WP-DB-Backup is a Wordpress plugin that allows you easily to backup your core WordPress database tables. You may also backup other tables in the same database.

In Drupal the Backup and Migrate module (is the best automated backup solution integrated with Drupal.)

18. WP Security Scan is a Wordpress plugin that scans your WordPress installation for any security vulnerabilities.

 Security review is the Drupal module that offers the same functionality will do the same kind of security check for Drupal.

19. WP-Super Cache is a Wordpress plugin that generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.

Boost is the popular alternative in Drupal for static page caching
20. Yet Another Related Posts Plugin (YARPP) gives you a list of posts and/or pages related to the current entry, introducing the reader to other relevant content on your site. 
Similar Entries is the Drupal equivalent module that can do this same task.

Thursday, October 13, 2011

Linux Bash Shell cheat sheet for beginners

Here I am sharing a Bash shell script sheet useful for Linux users who are not familiar with bash script/ Terminal commands. Script contain a list of commands and keyboard shortcuts with description, more relevant if you are an avid Ubuntu/Debian user.

Download Linux Bash Shell Cheet Sheet PDF file

Saturday, August 27, 2011

Install RabbitVCS in Ubuntu

The RabbitVCS is a set of graphical tools written to provide simple and straightforward access to the version control system(VCS). This is similar to Tortoise SVN for Windows.

It provide multiple clients and extensions to give you a uniform experience no matter what development tools you use. It provide all Subversion client functionality without touching the command line so it is very useful for developers who are not familiar with Linux commands and newbies to Linux.


It also provide an easy to use command line tool in this package.

To install RabbitVCS in Ubuntu, first we need to add the PPA

Karmic and later

sudo add-apt-repository ppa:rabbitvcs/ppa 

Hardy, Intrepid and Jaunty

Add the following line to your /etc/apt/sources.list file (signing key = 1024R/34EF4A35)

deb http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu **DISTRIBUTION** main

Update your software package repositories with:

sudo apt-get update

Install :


sudo apt-get install rabbitvcs-core rabbitvcs-nautilus rabbitvcs-thunar rabbitvcs-gedit rabbitvcs-cli

From Tarball

Installing from our distributed tarball is relatively straightforward on Ubuntu. First, make sure you install all dependencies:

sudo apt-get install python-nautilus python-configobj python-gtk2 python-glade2 python-svn python-dbus python-dulwich subversion meld

Then download the tarball and from the top folder type:

sudo python setup.py install

Once that is done working, look in the clients folder and read the README file for each client/plugin to learn how they are installed.

Thursday, June 30, 2011

Regular expression for validating US phone number

US phone number format validation using regular expression.

The common US phone number format is 3digits-3digits-4digits
eg: 222-333-3333
      111-222-1234
The regular expression for validating this format is

function usphone($string) {
   if(preg_match('/^[0-9]{3}\-[0-9]{3}\-[0-9]{4}$/', $string)) {
    return true;
  }
  else{
    return false;
  }
}

Validation using Javascript

function isUSphone(phoneno) {
   var filter = /^[0-9]{3}\-[0-9]{3}\-[0-9]{4}$/;
   if (filter.test(phoneno))
        returntrue;
    else
        return false; 
}

In Jquery

if($("#phone-num").val().match(/^[0-9]{3}\-[0-9]{3}\-[0-9]{4}$/)) {
  //valid phone number
}
else {
  //not a valid number
}

*phone-num -  id of phone number field(input field)

Friday, May 6, 2011

WinSCP alternative in Ubuntu.

WinSCP is the most popular file transfer application in Windows Operating systems like filezilla. It helps to copy files from remote system to local system and wise versa. In Linux, filezilla is use for this purpose. But we can simulate WinSCP in Linux/Ubuntu by using Nautilus.


To simulate this we need to install Nautilus elementary, which is a nice addition to Nautilus to enable split view in the file browser. The steps for installing Nautilus elementary in Ubuntu are here.

Type the following in console

sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa
The above line will add the repository from where you can download the Nautilus elementary

sudo apt-get update && sudo apt-get upgrade
will update the local repositories and update all the software.

nautilus -q   
Now open Nautilus and press F3. You should able to see the split windows.


Access Remote system

Access the remote system by connecting to remote system in one pane. Select the right side pane and go to File->Connect to Server

Fill up the details of the remote system and then press connect. Now the right hand panel will have the files of remote system.
The left hand panel will have the files of local system. To drag and drop the files form one pane to other for copying the files. Also you can use SSH, FTP, SFTP etc protocols to connect the remote system.

Thursday, April 14, 2011

Popular jquery plugins for skinning selectbox

Most of the clients comes with custom design for their forms and looking fancy drop downs and custom skin for select boxes. A large number of paid plugins are available in the market. But these are not affordable for small and medium  sites. 

A lot of free jquery plugins are available in Internet for skinning select box and drop downs. Here I listed out the common jquery libraries used for skinning select box.  



Jquery Select Skin


A simple jquery code for theming select box. It is a light weight plugin  for skinning <SELECT> lists. It keeps the basic functionalities of <SELECT> list and it uses little CSS.
You can download the latest version from here or download it from jquery site.
First include this js file into your page. Then, apply the select_skin plugin to any jQuery element you want:

jQuery(document).ready(function() {
jQuery("#selectid").select_skin();
});

Add following styles into the CSS file.

div.cmf-skinned-select {
    background: url('skin.png') top right no-repeat ;
    border: 1px solid #ccc;
}
div.cmf-skinned-text {
    padding: 3px;
}


Friday, March 11, 2011

Drupal 8 developement begins

After the release of drupal 7 in earlier this year, drupal developers beginning to plan for new version, Drupoal 8. In annual DrupalCon conference this week, Drupal founder Dries Buytaert detailed what lessons were learned in the Drupal 7 development process and how those lessons will be applied to Drupal 8. 


Drupal is among the most popular open source content management system in use. Thousands of websites uses drupal. Major sites like Mozilla, NASA, Whitehouse.gov and among others used drupal for their sites.
Development is now beginning on Drupal 8 and Buytaert is restructuring the project to ensure that the lessons of Drupal 7 are not forgotten. Dealing with bugs is one of Buytaert's top priorities.
"At no point in time will there be more than 15 critical bugs," Buytaert said. "I will not pull in a big change if we know there are known bugs. This gives us the ability to do timely releases because we know at most the release is only 15 critical bugs away from being ready."
"The biggest risk to Drupal is getting so big that we become slow," Buytaert said. "Our ability to be open to change, accept change and be agile is key." 



Source : http://www.ecrmguide.com/article.php/3927666/drupal-8-open-source-cms-starts-to-take-shape.htm

Thursday, March 10, 2011

Adbard advertising network

Adbard is an advertising network, for developers, users and free software communities. This network supports free software activities and this allowing advertisers to directly communicate with the key customers in this exciting new area.


This Network has been created by Tag1 Consulting to serve websites dedicated to free software ideals, helping them connect with companies selling products and services targeting a FLOSS audience. AdBard solves the problem that more generic advertising has led to the display of proprietary software products on sites that otherwise promote computer user freedom.
Currently  hundreds of website participating in this network and hundreds of sites and agencies uses this network for promoting their products.

If you are a free software activist, then this is the best platform to promote your ideas and products.

See Adbard site for information

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Maintained by Web Themes