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.





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.





The Journey to Drupal Conference SF

28 04 2010
The Journey, Ha it is very long journey I had in my life. I did not forget the feeling of first take of the flight. The sound is too horrible for my ears. I got much pain at the begining.

My Journey is 3 parts from Hyderabad to Kaulalampur, From Kaulalampur to Hong Kong and from Hong Kong to San Francisco.

At Hyderabad I was very nurvous and very excited about the entire process to board into flight.

My Family came to give send off at the Hyderabad, I finished taking boarding pass easily, after that talked with my family for 1 hours then at the Imigration, the guy was asking another person about the business trip, I was like what’s wrong, but the problem is he don’t know clearly.

After finishing Imigration check went to waiting hall to board into flight. There I waited for long time more than 1 hour. Finally they announced to board in to fligh. First time getting into flight, when I am walking into the flight, I was excited, I am getting into flight. Wow I am travelling in the plain. When I saw the seats, I was not so surpriced, it is bit similar to air bus. After getting in found the seat very easily. Because it is first time listened carefully about all the security things said by the airhostes.

I was waiting for the flight to take off. I am excited to experience it. Finally flight started moving, it took some time to take position then started going fast with big sound. My ears started paining and like feeling bit odd. I did not feel good until take of finshed.

I was getting too much sleep, I had the snacks and slept. If I get any doubt I asked the next seat guy, he was very helpful but did not ask his name. It is just 3 and half hours of journey. I slept, but it is not good sleep. When I woke up my watch is saying it is 4:00 am but when I look at out side it is already morning. It was 7:00am at Kaula lampur. After some time I get down from that flight.

Now I have to catch the next flight which goes to Hong Kong. I don’t know how to find the gate, looking for some of the air port people to help me to which gate I have to take to board into next flight. I could not see any one until walk for around 15 minutes. Finally I found a display where they are showing all the flight details, with the help of another guy I found the gate. How to go to that gate is my next problem. I looked around for help desk, after walking straight for 5 mintes, I found help desk, she said I have to catch a train to reach that Gate. OK I followed her instructions and safely reached the gate without much problem. At Kaula lampur I did not find much indian faces, most of them looks like chinees and Japanees.

There are no seats to sit at the outside of the gate, I was standing. Then called for the boarding, after finishing the checking process, asked to wait for some time, there I found wifi, then opened laptop and sent some mails to home and the people who receive me. At Kaulalampur the people getting into flight looks like from same family, every body talking each other but their language is not english. I got into flight, in my next seat one japanies lady sat. Looks like she don’t know speaking engligh.

Because I did not sleep well in the previous flight, I got full sleep, I did not observe sorrounding and slept without knowingly. After I wake up I saw video for some time. It was just 3 hours journey to Hong Kong. But the flight reached the destination 1 hour late. I have to board into the San Francisco flight, which is having the same boarding time. I wanted to get ou
t from the flight first. So before finishing the landing I removed seat belt and woke up to take my cabin bag, then one of the crew told me to sit till the landing, then I sit back. After few minutes, flight landed and every body woke up and standing to get out from the flight, it took more than 15 minutes to come out from the flight. I was tensed a lot.

After I came out from the flight, I first searched for display to show the boarding time of the San Francisco flight. I found the display after walking for 5 minutes. The display is showing last call. First I though what to do, the display is not showing the Gate number that I have to take, I was searching for some one to help me, I went to check in counter and asked she said the Gate number and she said some way but I did not understand and went to exit side, then came back and asked some japanees family, they show me path to the escalator and told me to go down and catch train, I took escalator and run into the train before the doors close.

The train reached the destination in 2 minutes, then I am seeing all shops not Gates, then searching for some one to help me, then I found a girl who wear red suite, looks like she works at airport, when I ask her, she also hurried and talked with some other people and sent me through one door and told me that don’t worry mam, have 20 minutes time to take off. Then when I go into that door, I have to went through another escalator and walk for some time, finally found my Gate, When I am walking towards it, another girl asked are you for San Francisco flight? I said yes, then she took ticket and doing the scan of the ticket, another girl came and asked me to sit at another place, I said ok, what ever seat will we be ok for me, I just need to get into flight. Then asusal checking process and went to the flight and searching for the seat.

My seat is in the middle, 2 sides of my seat are men, then I asked one guy who sit at the corner to sit in the middle, he accepted and sat in the middle but called crews and telling them that he was sitting there and telling them to bring his food at his seat. His name is Jayesh. I thought ok in the beginning then talked with him as he is Indian and he said about him and asked about me. After some time, food was served to me, and asked are you Indian Vegitarian, I said yes and started eating food. He asked me are you Vegitarian? I said yes then after I finish my food also he did not get food, the another guy who sit at the window also got the food, he was waiting waiting and asked crew. The crew served his food to me. He became angry and did not eat another food. He waited for 2 and half hours but did not get food. I felt bad about that. He helped me to fill up the form of I 94. It was 14 hours journey so watched movies and opened laptop but did not sleep well. After getting out from the flight, he waited till I finish the imigration process. At the checkin, the airport officer asked me about my trip and conference, then checked my return flight tickets and put stamp and sent me out. Then I went to luggage section, checking for my bag, I am not seeing my bag, I was there for more than 30 minutes, but did not find my bag. Jayesh came and asked me about bad, I said I could not find my bag, then he helped me to inform the concerned person and finished formalities. I called to the peopele I need to inform at San Francisco from his mobile said thanks and waiting outside.

I took change by buying something at the airport and called the person who pick me up. He was there and I came out and got into the car and reached home of the family I know.





Drupal: CSS compression breaks layout if we use @import url

21 03 2010

Recently we faced a unique issue in one of the drupal project. The layout used to break completly in IE. But it used to work well in firefox. Later we figured out that IE is unable to load more than 31 css files. If the css files exceed 31 files it does not load after 31 files.

If we compress the css this number of css files problem does not occur. So we enabled css compression for the performance settings page. Then the layout was completly breaking.

When we compress css, layout breaking means there are some css syntax errors which are causing css to render properly. We started fixing all the W3c css validation errors. One of the error which we are seeing is for one of the selector the background property was causing the issue. The original css is like this


#header div.drigg input-sumbit {
backgroud: transparent url('../img/image1.png');
color: #333;
}

After compress the css became


#header div.drigg input-submit {backgroung: transparent url(css/color:#333)}

The above statement telling that when we compress the url was changed. When I digg further why this is happening only this selector, then I realised that this css was written in a another css file and this was imported in style.css using @import url.

Then removed this @import statements and added these file paths in my theme .info file. Then when I compress css, layout did not break. Now it was working well in IE and other browsers.

Finally I realised that we should not use @import url, instead we can load all css files by placing them in the theme .info file.








Follow

Get every new post delivered to your Inbox.