phpcamp 2010

phpcamp pune 2010: A gathering of php enthusiastphpcamp is Back and this time its even bigger.

What a start for the year, i see various major tech events lined up this month and later, to start with the biggest PHP unconference in India or maybe in Asia the phpcamp is scheduled on 9th January 2010

Attend PHPCamp Because learning from humans is much better than Google

Event Website : http://phpcamp.org

Event Date: 9th January 2010

Register ASAP: http://phpcamp.eventbrite.com/ The number of allowed participants are limited, organizers have already increased the number twice.

Venue: Symbiosis Center of Distance Learning, Model Colony, Pune, India

 

Year 2009 Memories

Year 2009 was a great experience for me as i started my Professional Career in February 2009 and Completed Post Graduation in June 2009, I had been working for various organizations till 2008 as a freelancer/consultant, but in the beginning of 2009 i started my Professional Life by joining Maybole Technologies Pvt Ltd as a System Engineer.

I am tring to list down a few of my memories of each month of Year 2009

Speaking @ Drupal Camp 2009January 2009

After completing the Semester III of my Masters i was in search of Internship/Job which would would lead to completion of my MSc (CA) Programme, Markets were on a all time low and this search was taking just too long but fortunately on 27th January i appeared for Maybole Technologies and was recruited. In January i was also a part of the Organizing Team on 2nd Drupal Camp India we successfully organized the Event on The 31st January, the event received appreciations from all and was attended by more then 250 people which we never expected.

In January 2009 i also migrated my major Websites to a new Hosting Service

 

February 2009

It was Feb 2nd when i joined Maybole Technologies, I was introduced to the staff and was assigned a temp desk and books to read and my first day ended reading several Redhat Books. I started working only on the Third Day, and witnessed many things/operations which i was just unaware about in the past.

GNUnify 2009 was scheduled in Mid February, i used to come to SICSR after my office hours and at sometimes in lunch hours as i was given the responsibility for maintaining GNUnify 2009 website, but unfortunately i was not able to be present for GNUnify on both the days. On Second Day of GNUnify i took a Workshop on Drupal which was a great experience for me as it was the first time i took a workshop, in GNUnify 2008 i had only presented a topic.

My Drupal CVS was approved.

March 2009

First Salary, i was excited, the month went in writing a few scripts and configuring Application Servers, I would remember March 2009 as i released Gamabhana on Drupal.org Gamabhana was developed by Mr Omkar Joshi but was not available on drupal.org for various reasons and i contacted Mr Joshi and were able to release the module with permission. Also went for the Annual Maybole Trip

April 2009

Third month on the job worked on various configuration to select the most appropriate version of it, tries various new and old systems. Drupal Hindi Translations for Drupal were in full swing with a few contributors coming on board, planned to release a hi package. Submitted my final report for MSc (CA) appeared in the viva.

May 2009

Huuh Busy in office not much additional activities seen server crashes......... Released hi Package on Drupal.org

June & July 2009

Freelancing yet again reltok......... project came in tries various modules and customized a few on worked on theming for the first time. reltoked for 2 months to gave it a shape excited over the project.

August 2009

This was a important month, recieved an offer from Symbiosis to join in as Web Administrator, resigned from Maybole and was loaded wil some additional work of documenting my work and train my  colleague regarding my responsibilities.... Applied for creating a hi project on localize.drupal.org on 24th August and Gabor created it for for on 26th Aug exported all translation collected using drupall10n.com to the new Drupal Translation Server.

August 31st my last day at Maybole,was excited to join Symbiosis yet again this time not as a student :) met all the fellow maybole staff complied a few memories from Maybole. Would never forget Mr Mahendra for all support and favor he provided me at Maybole

September 2009

I am back in Symbiosis, With meetings lined-up from Day 1, met the staff understanding how this organization works took me an entire month and even long i am still unaware of many things here. Took Drupal Association Membership, Planning and working for Drupal Sprint India Adison Berry is expected in the event, this has to be a big event for Indian Drupal Community

October 2009

Working on a few new activities for Symbiosis its fun working here, i am bit relaxed here as compared to the last organization and people are adaptable. Work for Drupal Sprint India is on fast pace, the event is in end of the month, i am looking over the website and managing other activities and promoting the event as much as i can. Drupal Sprint India a 2 day non stop went on quite well Few Documentation were comitted in Drupal.org. With Karunakar helping in Hindi Localization we added upto 1000 new translations in 2 days. the event was exciting and a learning experience.

October was a big month for me as Kashipur.in completed its 3 years.

 

November 2009

Symbiosis is now a bit active on Social Media, Convocation is next month Papa & Mummy coming for the Event, they would be in Pune for the first time.

December 2009

Convocation on the First Weekend Papa & Mummy coming on 5th December, i am eagerly waiting for them as have not gone to home since 6 months, And finally its day of Convocation left early with parents to SIU met friends all are excited for the Convocation Dr Shashi Tharoor is the chief guest for the Event, This Convocation is also important in the history of SIU as it was its first Convocation in its Lavala Campus. The Convocation Ceremony Started and after a series of motivating speeches the ceremony ended around 3 PM, Now I am officially a Post Graduate.

Took a 2 day leave from office and will be with parents, went to Bheema Shankar and then for a movie with Parents, it was fun to be with them after a long time. And i am back to work.

Released a new hi package once again with the new translation received in Drupal Sprint India2009, Montu Bhai (Mayank Nagar) is in Pune for a 2 days so met him over a lunch. In December went for a number of movies, i dont think that i would have seen these many movies in the last 11 months.

The Year was fun filled hoping a great year ahead.

Wising You all a Very Happy New Year.

Drupal for Education & E-Learning Review

Drupal for Education & E LearningTechnology is changing the way in which we do the normal day to day things, Libraries are changed to Digital Libraries, Educational institutions and corporate are moving to no paper offices. Building up a corporate Intranet System is the need of hour. 

 

Drupal for Education & E-Learning is a great work by Bill Fitzgerals which can be used to build your own intranet system.

 

 

The book gives a step by step guide to build up a complete intranet for your college/school and how to effectively use it for better communication

 

Use this book to build up an intranet systen which will provide your services like


  • Teachers & Students Blogs
  • Enrolling Students
  • Bookmarking Content
  • Podasting over the Intranet
  • Video Hosting
  • Forums
  • Social Networks
  • Student Progress Tracker

 

The book provides an excellent step by step guide to setup the entire System, Special Thanks to PACKT Publishing for providing the book for review. I highly recommend this book for Educational Institutions for building their own systems

 

Sample Chapter : Creating Student Blog

Drupal Sprint India 2009

Dexter introducing PLUG @ dsi2009

Drupal Sprint India was a 2 day event held on 30 & 31st October 2009 in Pune and was one of the biggest Drupal Sprints ever held in India, Sprinters from Kashmir, Karnataka, Delhi, Gujrat and almost all regions of India took part in making this event a huge success, this event was divided in mainly 3 parts Sprints, Talks & Workshops, Sprint was sub classified as Code Sprint, Documentation Sprint & The Translation Sprint.

Day 1)

Sprint @ dsi2009The event started half hour delayed with a welcome message from PLUG, which continued with a talk by Aradhana Sharma on "Customizing your Drupal website using RULES", and while she was delivering her talk few of us were getting ready the Sprinters Hall, in a hour time the Sprints started with Adisson Berry heading the Document Sprint. With Sprinters coming in the Sprints were running houseful and talks went on well.

Abhishek Nagar @ dsi2009The first day talks included talks on

 

People were busy in listening to talks and beginners were busy with the workshop while Sprinters were# Customizing your Drupal website using RULES by Aradhana Sharma contributing the first Contribution came from Mr Prasad Shirgaonkar in the form of a Documentation for Localization which was highly appreciated, Sprinters worked on porting different Modules from Drupal 6 to Drupal 7.

The day came to an end for the Talks around 5:30 PM, but the sprints continued whole night, with sprinters working on various Modules. Documentation and Translations

Prasad Shirgaonkar @ dsi2009

Ankur Saxena @ dsi2009

Mir @ dsi2009

Gaurav @ dsi2009

Day 2)

Sprinters were on work for the whole night the first tweet for the ay 2 came around 3:00 AM :), Day 2 witnessed a drop in the audiance in talks but the Sprints continued housefull.

The second day talks included

  • Drupal 7, Anatomy of a killer release by Dipen Chaudhary
  • Do it with Drupal - The M3 Serve Platform by Gaurav Kumar
  • A Case Study of www.openthemagazine.com: How to make beautiful and featureful news and magazine websites in Drupal  by Sidharth Kshatriya
  • Building Indian Language based Social Networking Site with Drupal! by Prasad Shirgaonkar
  • Brightcove Integration with Drupal by Ravi Gupta
  • Workshop by Prasad Shirgaonkar on Quick & Easy Drupal Theme Creation!
  • The event schedule was reshuffled as one of the Speakers coming from a different location was unable to reach the venue due to some reasons.

The Sprinters were working hard with the sprints lot many bugs were fixed and reported, more than 500 Translations were done and uploaded to http://localize.drupal.org/languages/hi

Bhaskaracharya PratishtanFxing up the internetdsi Tshirt

Pre Event (Last minute arrangements)

Upgrading of the available bandwidth from 256Kbps to 8Mbs was a huge task and fortunately this was completed just one day before the event, Arrangement of event T-shirts just finished in time, setting up of Wifi at the Venue was the final task for 29th October 2009

For more images visit http://www.flickr.com/photos/tags/dsi2009/

Restrict Multiple Logins in Domain (AD)

I have always asked this question to my colleagues as to "How do i restrict Multiple Logins in an Active Directory Setup"

So here is the answer

Create a file when a user login and check for such file each time the login request is received  if file exists logoff, if file is not present Login and create the file. Its that simple

Below is the step by step process to achieve this using Group Policy

Assumptions:

  1. Windows 2003 AD is being used
  2. //<server>/logon is shared and write access is given to everyone

The Steps

Step 1) Create 2 batch files in C:\WINDOWS\SYSVOL\sysvol\domain.name\scripts\logon

File 1: login.bat

:: BEGIN CALLOUT A
If Exist \\server\logons\%username%.txt Goto notlogon
Echo %username% logged in from %computername% > \\server\logons\%username%.txt
Echo %username% logged in from %computername% > \\server\logons\%computername%.txt
:: END CALLOUT A
Goto end
:notlogon
Logoff
:end

File 2: logout.bat

:: BEGIN CALLOUT A
If Not Exist \\server\logons\%computername%.txt goto notlogon
Del \\server\logons\%username%.txt
Del \\server\logons\%computername%.txt
:: END CALLOUT A
Goto end
:notlogon
Logoff
:end

Step 2) Modify Group Policy

Edit the Group Policy related to the OU where you want to disable multiple logins, In Group Policy Object Editor locate to

User Configuration > Windows Settings > Scripts (Logon/Logoff)

Add the login.bat created earlier in Logon and logout.bat in Logoff

Adding Login Script on Group Policy

thats it now when you login a file would be created in //<server>/logon with the username and computername of the loggedin user and he/she will not be able to login to other computer and once he logoff these would be automatically deleted and the user will be allowed to login on any Client.

This was simple

Random Link for Wordpress Blogs

I recently started my Photo Blog, after various considerations i choosed Wordpress for it, currently i have more than 20 photos posted on it which is not actually a big number but i found that the older images or posts will never be seen to the readers as they don't appear on the frontpage for more than 4-5 days, which created a requirement of creating a Random Link on frontpage to show a Random post to the user if he wants to and this began search for a module or a plugin as its said in wordpress.

But No Luck i found various plugins but i needed something very very simple so i thought going by the code which lead me using the following code in my header.php to create a Random Post link

<?php
$randomPost = $wpdb->get_var("SELECT guid FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY rand() LIMIT 1");
echo '<a href="'.$randomPost.'">>>Random Image<<</a>';
?>

The above code is quite simple and does exactly what is needed to generate a random post link for your wordpress blog.

Dreamhost Review

Well its been 10 months since i am using dreamhost its quite early to write up a review but still i would like to share , thanks to Amit Singh, Aman Jain and  Rohit Srivastav for recommending me dreamhost, the experience so far have been satisfactory i cannot say that there was no downtime, actually i have seen a lot of them :) still i am happy with it.

There have been instances when my hosting was altogether shifted by the support team to a different server to resolve issues, the support is excellent, the hosting plan in itself is good at least for shared hosters you get everything unlimited i.e. u can host unlimited website i currently host a dozen of them, and yes the One Click Installs are amazing, The affiliate programme is amazing i paid for first year of hosting and already i have earned much to pay for my next few years of hosting with them

I am using shared hosting since 10 years now tried different hosting providers but liked dreamhost so if you are planning to get a shared hosting i would recommend you Dreamhost, and yes you also get a domain free when registering for Hosting Plans.

I recommend the L1 Yearly plan of dreamhost if you are really interested use this link to register and get a $50 discount :)

Why should one go with Dreamhost ?

Suggestion

If you are hosting multiple sites don't host them with a single account. create different accounts for each site after all u have unlimited accounts in ur plan.

I would also like to share some of the emails from support


These guys moved me to a new server

Hello,

On Wed, 30 Sep 2009, you wrote:

> > Hi Team,
> >
> > Thankx for moving me to a new server tough i would like to know why i
> > was moved, was i consuming lot of resources if yes do let me know so
> > that i can optimize a bit

    Nope, that wasn't it. We're just doing a bit of upgrading and
restructuring on our end. You can read all about it here:

http://wiki.dreamhost.com/Server_Moves#Why_do_servers_change.3F

If there's anything else we can do for you, please let us know.

Thanks!
Dan W

Why did u try to restore when i never wanted it

> What do you mean by you are unable to restore my website i never requested
> > to do so.

Sorry about that. Another representative was working on this for you and
mistakenly tried to restore your website. You may disregard this.

Write back if I can do anything else for you.

Thanks!
Mike S

Funny

so far the experience is good

I recommend Dreamhost for your hosting

What to expect from Drupal Sprint India 2009

A formal announcement for Drupal Sprint India 2009 was already done last month and is available here!!

I am very sure that now you would be very curious to know what is it all about so this post might clear some of your confusion.

Whats in Drupal Sprint India 2009

Hey, this event is for YOUUUUUUUUU !!!

Why should i attend ??

a) If you are a newbie

  • You will get a chance to learn something very dynamic.
  • You will get a chance to know Drupal which is one of the best opensource Content Management System ever created.
  • You will get an opportunity to build up network with Drupal Geeks from India and abroad.
  • You will get an opportunity to be contribute to Drupal in various forms.

b) If you are a Drupaler

  • You can showcase your skills via talks/workshops.
  • You can help in Bug Fixing
  • You can help in Documenting Drupal
  • You can help in Localizing Drupal
  • You will meet Drupal enthusiasts from all over India and across

 IFFFFFFFFFF you are unable to make it to pune this time.

so what are you waiting for register under various categories in Drupal Sprint India by visiting http://drupalindia2009.plug.org.in/

 

Where .deb files are stored in Ubuntu ?

We always hear people saying ubuntu works well only when you have a strong internet connection as the Install CD doesn't contain all the packages required agreed now a CD cannot contain all the packages you require so you need to download the packages but there is a clear misunderstanding among new users that they always need to download these packages, Its essential to download them once but if you are reinstalling ubuntu on new machine you need not download these packages all over again if you have installed required packages on one of the machine you can use the content of below listed directory for installation

/var/cache/apt/archives

this directory contains the debian packages download by the apt-get :)

so have fun reuse the content for each install and save time and bandwidth

Search Engine Optimization using 301 Redirects

Search Engine Optimizations, i am very sure that all would have heard this term by now, in simple terms its a process of "making your website Search Engine friendly" there are various ways methods to do this, let me be very clear there is no specific way by which you can have a perfectly optimized website, in this post i discuss one of the methods by which you can remove the confusion of a search engine :).

Confused Search Engine !!! yes this happens often, just because of a silly mistake done unknowingly. Search engine often gets confused due to the links for example http://www.example.com and http://example.com may open same website but they are 2 different links and hence there are chances that both of them gets listed on search engines which is not what you will want to happen how to solve this problem ?

And i have a one line answer to this "by using 301 redirects" or "URL Redirections" below is the process by which you can implement this on various types of websites

For Websites hosted on Linux Servers

Edit .htaccess present in web root and add the following lines

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]

This will redirect requests for example.com to www.example.com ensure you have mod_rewrite enabled.

For Websites hosted on IIS use the following steps

  • In internet services manager, right click on the file or folder you wish to redirect
  • Select the radio titled "a redirection to a URL".
  • Enter the redirection page
  • Check "The exact url entered above" and the "A permanent redirection for this resource"
  • Click on 'Apply'

Just in case you don't have control on the server as if you are on a shared hosting which does not provide any such service you can also programatically  redirect below are the code for PHP and ASP similar kind of code is applicable for others

For PHP

<?php
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.example.com" );
?>

For ASP

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.example.com/"
%>