Category Archives: Web

Setting up php-cli for drush on Hostgator

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'

New Website – Coromandel SAS

New Business Travel website: Coromandel.co

We have just launched the website www.coromandel.co. Coromandel SAS is a company based in Colombia in South America. They are a comprehensive Business travel and travel services company. Coromandel SAS aims to bring about a shift in the travel services paradigm in Colombia. Mr. Mano Chandra Dhas, is bringing his extensive travel and business travel experience from companies like BTI and Emirates from UAE to the Colombian city of Bogota.

Multilingual features

The website itself is a multilingual website that was originally handled by Drupal. It has gone through various iterations over the years. Currently, both versions of the website: in English and Spanish, are running off static HTML. It keeps the website response time fast and keeps the website itself light. Sitemaps are also generated for each language version.

Multilingual Travel blog

However, the Coromandel SAS Travel Blog is a different matter entirely. The Coromandel SAS Travel blog is also multilingual. However, this part of the website is run on WordPress. WordPress is probably the obvious choice when it comes to blogging tools, given the power, flexibility and ease of use that it embodies.

The content will be based upon Mr. Chandra Dhas’s extensive experience. It will be centered around the idea of sharing knowledge and having a conversation with others interested in the field. Eventually we feel that it will become a resouce that travellers can make use of for years to come.

Leave feedback

Do take a look at the website and leave your comments below if you feel that we could make any improvements. We are open to any suggestions, and would love to hear your opinion on the design, structure, and content of the website. Feel free to contact Susheel for this purpose. Don’t be shy now…

Photography Website Under Construction

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.

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

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.

Much ado about Google

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…

College Culturals Time

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. 😉

Drupal: Installing multiple contrib modules – the easiest way

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.

What’s your Talisman?

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

I’ms in your skynets, lollings aways ats yours futiles attempts ats contrllings ours internets

PLZ LEARN: TPB CANT BE SHUT DOWN

LOL!

AS U MITE HAS READ OR NOTICD, PEEPS ONCE AGAIN R TRYIN 2 SHUT US DOWN. DIS WILL NOT SUCCED, LOL. OURS RLY NICE WEBHOST WUZ THREATEND WIF RLY HUGE FINE, SO WE DECIDD 2 MOOV TEH SIET SO DAT THEY DIDNT GOT INTO TROUBLE, LOL. TEH DECISHUN 2 MOOV WUZ TAKEN BY US, TEH PIRATE BAY, LOL.

TEH PIRATE BAY IZ AN UNSINKABLE SHIP. IT WILL SAIL TEH INTERWEBS 4 AS LONG AS WE WANTS IT 2. REMEMBR DAT, K THX.

TPB, ONLY IN IT 4 TEH LULZ SINCE 2003