Category Archives: Software Development

Using php constants and static functions directly in smarty template of Symfony2

The Symfony Framework is well-known for being really flexible and is used to build micro-sites, enterprise applications that handle billions of connections and even as the basis for other frameworks. Some time back we started using Symfony2 for our new projects. Symfony2 comes with twig as the default templating engine but we chose to use smarty as the templating engine using the SmartyBundle of Symfony2. Smarty is great, but for maintainability reasons, they have deprecated the possibility of adding php tags in the template. This means we will not be able to use php class constants... Read More

Career Timeline

What is the most important thing a recruiter looks into a Resume? The answer is past employments and experience of the candidate. Challenges It’s painful for the recruiters to look at the past employments of a jobseeker as he needs to scroll down and find the work experience section of the resume preview page. During project revamp, we took the challenge to build a feature which will help recruiters to look at employment details without spending much time. Solution Why not show the entire career of the jobseeker graphically in a single line and place it strategically in the CV... Read More

Better Practices in PHP – Speed up your code

“There's ALWAYS a way to fix something.” --Steven Wolff And when you are using PHP, there are multiple ways to fix something. What we need to determine is, that which way is the best. Computation is not like solving a maths problem, where simplicity can be determined by the number of lines. Computation requires resources, for example CPU Cycles and memory. Now when we have got multiple ways to solve a problem, we need to think in terms of computation and how much resources it will take. The objective is to accomplish the task in minimal number of steps, but different functions in... Read More

Measuring Non User Initiated Events in Android Apps

We use Google Analytics to measure events like button clicks and generation of notifications etc... in our apps. With the help of this data we get to know how people are using our product, which enables us to identify areas of improvement and maximize the success of product in market.  Post publishing a version of the android app, we saw a spike in both the number of active users and sessions (in Google Analytics). However, at the same time we witnessed a decrease in the screen views/session. On investigating further, we found that since we are logging (in Google Analytics) some events... Read More

Parse Emails in PHP

Problem statement : 1.Extracting information from emails in PHP (eg-attachments), 2. Simulating a daemon using PHP. Extracting information from emails in PHP Email Protocols Popular protocols for retrieving mail include POP3 and IMAP4, sending mail is usually done using the SMTP protocol.Another important standard supported by most email clients is MIME, which is used to send binary file email attachments. Attachments are files that are not part of the email proper, but are sent with the email. In computing, the Post Office Protocol (POP) is an application-layer Internet standard... Read More