ColoursAlive

Thoughts, Pictures, more…

ColoursAlive random header image

Setting up php-cli for drush on Hostgator

February 7th, 2014 · No Comments

While using Drush on a client’s website I noticed that it was showing up headers when it shouldn’t be. It was showing ugly things like this:

Set-Cookie: SESSc21f969b5f03d33d43e04f8f136e7682=d4735ec22fbf70b7d55bc7bd80691ad4; expires=Sun, 02-Mar-2014 18:44:47 GMT; path=/
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Fri, 07 Feb 2014 15:11:27 GMT
Cache-Control: store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Content-Type: text/html; charset=utf-8

A little investigation showed that drush was running as with php CGI rather than CLI. It was a simple matter to find out the path to the PHP CLI and then to modify the alias to Drush and PHP in the .bashrc file (alternatively, you may have specified it in the .bash_profile or in .profile). So here’s what you SHOULD use:

export COLUMNS
alias drush='/usr/bin/php-cli ~/public_html/drush/drush.php'
alias php='/usr/bin/php-cli'

→ No CommentsTags: Web

New Website – Coromandel SAS

July 4th, 2013 · No Comments

We’ve just launched the website www.coromandel-sas.com. It’s a multilingual website handled by Drupal, in both English and Spanish versions. All components, down to the sitemaps have two different versions for reading.

→ No CommentsTags: Uncategorized

Photography Website Under Construction

April 12th, 2013 · No Comments

Photography has always been a passion of mine. Over the years, I’ve done a number of commercial photo-shoots, for various clients, but I’ve never had  a website to showcase my work. Now, I’ve begun work on a website to showcase my commercial photography work, in the spheres of product, industrial, architectural and interiors, food & beverage and sport photography. As of now, it’s still under construction, and you’ll see many changes in the months to come.

The images I have up right now don’t have a comprehensive representation of my work, just some Parkour and Architectural images. Stay tuned for more updates.

You can connect with me at @susheel_c, Susheel Chandradhas on Facebook, Susheel Chandradhas Professional Photography Website.

→ No CommentsTags: Advertising · Web

Drupal: Installing multiple contrib modules – the easier than ‘easiest’ way

June 18th, 2012 · No Comments

A while ago, I wrote about un-TARing multiple files in one go on the server to install multiple contrib modules for Drupal.

Of course, it seemed like the easiest thing in the world back then… But then, in 2010, the world still had Kodak films in production.

Now, allow me to show you the truly simplest way to install a drupal and add contrib modules – Drush. Of course, Drush allows for even more automation, but this workflow is quite sufficient for me at this time. It’s quite simple to install Drush on a Dreamhost Shared account with SSH.

Target folder – home/coloursalive.com

  1. cd
    to the level above the target folder
  2. wget http://ftp.drupal.org/files/projects/drupal-7.14.tar.gz
  3. ls
    confirm that the file has downloaded
  4. tar -xzvf drupal-7.14.tar.gz
    a new folder called drupal-7.14 is created
  5. check that there are no files that are required in the target folder
    1. Copy / Backup any files that are needed from the target folder
    2. delete the target folder and all subfolders
      rm -R coloursalive.com
  6. navigate to target folder in browser (in this instance www.coloursalive.com) and follow instructions to install drupal
  7. come back to shell once basic install is completed
  8. Download most basic modules
    drush dl token pathauto ctools views admin_menu wysiwyg imce webform libraries jquery_update views_slideshow imce_wysiwyg devel entity rules page_title
  9. Enable the modules that have been downloaded. In some instances additional modules that make up the project are downloaded. Assess the necessary modules to be enabled and enable them.
    drush en token pathauto ctools views views_ui admin_menu_toolbar admin_devel admin_menu wysiwyg imce webform libraries jquery_update views_slideshow views_slideshow_cycle imce_wysiwyg devel entity rules rules_admin page_title
  10. Ensure OK / success messages on all modules
  11. Move over to the admin section of the website and continue setting up the install

I’ll be happy to hear from you if you have any suggestions. Leave them in the comments, please.

→ No CommentsTags: Web

ColoursAlive is Hiring…

June 1st, 2012 · No Comments

We’re on the look-out for a PHP / Drupal developer. Know anyone? or are you interested yourself? Get the details here - http://www.coloursalive.com/jobs.html

→ No CommentsTags: Uncategorized

Much ado about Google

July 1st, 2011 · No Comments

Google has been in my twitterstream a LOT today. Google +, Google Takeout, new Google toolbar, new homepage and SERPS designs.

I think most people are likely to pay most attention to the google plus announcement, with it’s promise of ‘circles’,  hangouts, sparks and more… However, I think that the Google home page and the SERPS layouts are going to play a key role in the way people look at SEO and web design technologies in the future.  As with everything else, there’s no looking back, and the future is just going to get more complicated. Accept it; move on…

→ No CommentsTags: Web

College Culturals Time

February 18th, 2011 · No Comments

Recently ChennaiParkour was invited to create a Parkour workshop for IIT-M, and even though that did not work out as planned, it has made me notice that this seems to be the time of year for college culturals. One that I’d like to point out to you, and bring your notice to is LIBA’s Chrysalis. Of course, we bring it to your attention because we worked on the website. ;)

→ No CommentsTags: Web

iXBRL – more XML based markup languages…

February 18th, 2011 · No Comments

So along with the XMLisation of a ton of other things, comes the evolution of accounting formats into XBRL or iXBRL. It’s supposed to make filing and sharing  of accounts between systems easier for everyone… Of course, there will be the initial hiccups in the implementation, and where there is a problem, there will be someone with a solution. Some companies provide managed tagging of Financial documents, converting them into iXBRL format that is compliant with the filing authority’s needs… A great help if you feel that you need a bit more time to come to terms with the new regulations.

→ No CommentsTags: General

Drupal: Installing multiple contrib modules – the easiest way

December 30th, 2010 · 1 Comment

Here’s how to quickly extract multiple tar.gz files in a folder using “find” or a loop. It’s easy, it’s simple, and it gets your drupal install up and running in less time than it takes to say “Upload via FTP”. If you want the solution right away, scroll down to the bottom if this post.

I’ve recently had to install drupal a number of times in a span of a few days. The way I usually do it – download tarballs, extract, create file structure, upload via ftp – was just too slow. Fortunately I have shell access to my shared hosting account on DreamHost, so here’s what I’ve been doing recently.

  1. Fire up a terminal window in Mac OS and SSH to my wonderful DreamHost linux webserver (you can do the same in Linux, but you need some software SSH in windows) – Here’s the command I use:
    ssh username@servername.com
    and enter the password when the server asks you for it. Do note that the characters that you type in for your password may not appear on the screen, but they’re still being entered.
  2. Change to the directory that you’re going to install drupal into. Alongside this, navigate over to drupal.org, and to their download page. At the time of writing this, Drupal 6.20 is the latest version, so the path to the .tar.gz file looks like this: http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz I just right click in Firefox and select “Copy Link Location”.
  3. Now, skip back over to the terminal window. Remember, I’ve navigated to the folder I want to install drupal to. Then type in wget http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz. This downloads the drupal core tarball to the server directly.
  4. Extract it using tar -xzvf drupal-6.20.tar.gz. You’ll see a screen ful of paths as the files are extracted to a folder called drupal-6.20.
  5. I go ahead and start off the install in a browser, and get the settings file renamed and database hooked up, and everything else until it becomes time to get the contrib modules installed.
  6. On any given install of drupal, I usually have atleast 10 or so contrib modules installed, and very often it goes up quite a bit. Like I said before, FTP just does not cut it for this, so, like our drupal core tar.gz file, I find the paths to every single contrib module that I want installed. And here’s a little secret – They’re all at the Modules page of Drupal.org!!! and happily listed in descending order of the modules most used. This is a quick process. I wget them to the sites/all/modules/ folder, so that I have about 20 GZipped Tar files; and that’s where I hit a snag.
  7. You see, the tar command does not use wildcards happily. In fact it does not use wildcards. – (period) So I had to find an alternative, to get all these .tar.gz files extracted without having to repeat the same command again and again manually. I found a solution. In fact, I found two solutions
  8. find -name '*.tar.gz' -exec tar -xzvf '{}' ';' – This piece of code extracts all .tar.gz files in the current folder, and all subfolders, making it ideal if you have all the tar files ready and waiting extraction in the sites/all/modules/ sites/all/themes/ and sites/all/libraries/ folders. Just run it in the sites/all/ folder, and then run back and rm -R *.tar.gz each folder to remove the tar files.
  9. for i in *.tar.gz; do tar -xzvf $i; done – This piece of code extracts all .tar.gz files in the current folder. Leaving you to cleanup all the tar.gz files in the directory with a simple rm -R *.tar.gz
  10. That’s it, done! Head over to http://yoursite.com/admin/build/modules and tick the check box next to the names of all the contrib modules you want to activate, save, and they’re ready to do your bidding!

I hope you find this time saving shortcut useful. The code is not mine. I found it on WebHostingTalk.com in a thread titled How do you untar multiple .tar.gz files? I was also helped along by a good friend who does not want to be named. Experiment and see what works best for you.

→ 1 CommentTags: Web

What’s your Talisman?

October 5th, 2010 · No Comments

Talisman Tattoos LogoTalisman Tattoos is a cool place to hang out at… New Shop, but with Chennai’s first professional tattoo artists. Amar and Nisha have been around for ages, first tattooing at Irezumi and now in their very own all-new-boutique, Talisman. Both Amar and Nisha are respected for their talent and have tattooed a number of celebrities (though they’re not at liberty to say who), and have clients who regularly visit them from far of parts of the country: even from Mumbai and Delhi.

Talisman has a promo offer happening till the 8th of October. If you book an appointment before then, you can get a sweet 20% off on your tattoo!

Talisman Tattoos Gallery
Talisman on Facebook
Talisman on Twitter
Talisman on FourSquare

→ No CommentsTags: Life · Web