Drupal Camp Deccan

21 10 2011

Dries visit to India started big movement in Indian Drupal community. Every body is very excited to meet him, have a talk with him, of course a snap.

Drupal community in the south region joined together and planned Drupal Camp Deccan. It is going to be the biggest Drupal event in India. With the help of Different organizations, different communities, different cultures. The common thing is Drupal. So excited for this event.

I am proud to be a member of Drupal community, and proud to be a employee of Azri who is the main organizer for the event Drupal Camp Deccan

The Drupal Camp Deccan site is so cool, and logo is great. Kudos for the site designers and logo designers.

Advertisements




PHP + Regular Expression to find the last word in string

18 10 2011

Below is the code to find the last word of a string

$pattern = '/[^ ]*$/';
$str = 'Hello world';
preg_match($pattern, $str, $results);

The $results[0] contains last word “world”. If we need to remove or replace the last word use below code.

preg_replace($pattern, '', $str);





Shell Commands Glob Pattern Syntax/Rules

6 09 2011

Glob patterns are like simplified regular expressions that shells use. An asterisk
(*) matches zero or more characters; [abc] matches any character inside the
brackets (in this case a, b, or c); a question mark (?) matches a single character;
and brackets enclosing characters separated by a hyphen([0-9]) matches any
character between them (in this case 0 through 9) .





OSI Days 2010

21 09 2010

This was my first OSI Days event. I gave 2 presentations at this event. It was great experience to give presentation and meet new people.

My presentations are

Building Powerful search in Drupal

One of the glamorous things about using Drupal is that it bootstraps with full text search. Drupal also provides us with search hooks which allows to search based of various parameters. These results can be customized as per our requirement.

Connecting your users with the content they need when they need it isn’t just optional anymore. With the rise of Google and similarly sophisticated search engines, users expect high-quality search results that help them find what they’re looking for quickly and easily. You can meet all these needs with Apache Solr, Lucene. We are going to talk about how to use Apache Solr in drupal and make our drupal search powerful. We will also talk about Faceted Search and how this will help the user to get refined results and improve the usability.

The PPT of this session can be downloaded at http://azrisolutions.com/tools

Core concepts of worlds most misunderstood language(Javascript)

JavaScript is the one of the most popular programming language on the web. Initially many professional programmers were not enthusiastic to use this, Since the target audience were mostly web authors and other such “amateurs” among many reasons. When Java applets failed, JavaScript became the language of the Web by default, making its popularity almost completely independent of its qualities as a programming language. The changing currents of the web made Ajax popular which intern brought back JavaScript into the spot light again.

This session will focus mainly on how to use JavaScript more efficiently in your web applications and remove the road block in our mindsets that JavaScript is only for front-end developers.

The PPT of this session can be downloaded at http://azrisolutions.com/tools





Core Developer Summit at DrupalConSF

28 04 2010
The aim of core developer summit is to discuss about the drupal core issues and discuss the solutions which different people suggest. To attend this session, it is required to identify some problem in the drupal and provide solution for it.

I was 1 hour late for this. I attended discussion about the theming based on blocks and reorganizing of drupal core. I was there in the break up sessions where they discussed about the how to improve community participation in the drupal core. I did not make much notes on this day.

I talked with Drew(dww) about the concept how they want to organize directory structure and keeping the fixture for data migration etc.. He accepted my points.





Drupal Sprint India 2009

4 11 2009

I am a drupal developer, my drupal profile can be seen at http://drupal.org/user/43559. Drupal Sprint India 2009 event details can be found at location http://drupalindia2009.plug.org.in/namaste. From my organization 3 people attended this event. Asif (Project Manager), Chakrapani (Application Developer) and myself (Application Developer). I and Chakrapani attended this event to participate in the Sprint. Asif Participated in Talks and Workshops.

It is a nice experience to attend this event. Met cool people like Addison Berry, and had chance to share my views about drupal testing and documentation. Learned new things from her. It is really nice experience. With this event I started contributing to drupal core, which I love to do.

Through this sprint some of the drupal 6 modules are ported to drupal 7 and some new translations for the languages are added. Some of the patches are added.

Day 1

Took registration and attended the welcome session. After that went to participate in the sprint. This spirnt is headed by Addison Berry, Lead of drupal documentation project.

I wanted to work on drupal7 core issues, to work on core issues I read the documentation about how to set up the development environment, Review the patches etc.. before attending the sprint itself. I checked how people work on drupal7 core issues by joining the #drupal IRC channel.

For a practice I did some of the reviews for the drupal7 core issues, and added one patch for the admin_menu module which is committed to all versions of admin_menu module.

I tried to work on the drupal7 issues, but I noticed that some of the drush commands are not working well with drupal7 head. So decided to fix these issues of drush module and provide patch to drush module.

In the lunch time I introduced myself with Addison Berry and had good talk about the next plans of drupal documentation, drupal 7 release plan. Discussed about Drupal7 UI changes. Also Talked about plans about using bazaar for drupal and migration plans from cvs to bazaar. It is really a nice discussion. Addison Berry explained the complexities involved in implementing pathauto module for the documentation.

After lunch I talked with Addison berry about the samepage(http://samepage.in) product which I worked. Worked on drush module, Discussed with other guy about the best practices of themeing and drupal project development issues.

Day2

Morning I tried to finish my drush module task that I started yesterday, Finally it is a very small change added patch to the drush module.

After that had discussion with Addision Berry about how to properly maintain the our module code in cvs. Asked her about how multiple people work on same project when they are using cck, views. How to deploy code properly using update hooks. And also discussed about my views on drupal7 testing issues. She suggested me to contact other person who can give more input on testing. Took feedback from Addison Berry about my drupal module contributions, php contributions and jquery contributions.

After lunch I worked on porting my accordion_blocks module to drupal7, but noticied that there is a lot of change related to javascript api. Had talks with other guys who attended the sprint.

Finally came out from the event with good experiences and learnings.





Remove applied patch using patch command

23 10 2009

Today I am doing patch review of drupal7. I tested one patch, Now I want to remove this patch and go back to previous latest version of drupal. Unfortunately there is no cvs revert command which revert the files like in svn, bazaar, git etc..

I used same patch command to revert the applied patch.

I used following command to revert.

patch -p0 -R < patch_file_path.patch

In the above command -R option Assume patches were created with old and new files swapped. So it do the reverse operation of patch.