Category Archives: Web Technology

Push Notification for Web

What is Push Notification? If I say, web is heading towards ‘PUSH based’ content serving rather than tradition ‘PULL based’, hope you agree or you may not. Let me clear you the difference b/w both by giving an example:- Mr. X is working in an organization. He is well settled but fed-up with his job and now, looking for a change. He opens up any search engine and types his requirement. Search engine lists a number of job search portals but he is not aware of the right portal and thus wastes his time by going through each one of them. Here, did you notice one thing?? Search engine... Read More

Restful WebServices (Microservices) in Phalcon Framework

About Phalcon:   Phalcon is a full-stack framework. It promotes the MVC architecture and offers features like an ORM, a Request object library, a templating engine, caching, pagination. In short Phalcon: Is a PHP C-extension based framework. Is a C-Extensions are loaded together with PHP one time on the web server’s daemon start process Is a classes and functions provided by the extension are ready to use for any application Is a the code is compiled and isn’t interpreted because is already compiled to a specific platform and processor   The preliminary... Read More

How naukri made pages faster using PUSH STATE API

Some time back, here at Naukri we had a scenario: There were three pages with almost similar structure, a common navigation bar, a common right widget and a common footer (all summing upto 90% content of the page), with only few different descriptive lines(only 10% of the total content on the page) . The general requirements of the pages were: SEO was important for all of them All of them had to be assigned to different urls , title and meta tags The pages had to be bookmarkable and their urls could be shared. This may sound very simple, but… The challenge was Just... Read More

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

ncCache – Browser caching made easy

The new messiah of client side storage, called Local Storage has made lives of front-end developers very easy. The credit certainly goes to HTML5. But wait, one cannot just implement Local Storage blindly. It doesn’t support all the browsers. Nor does it provide any support to manage quite a large amount of data without throwing errors. This really doesn’t sound very good and also makes it difficult to be implemented practically. What led to the origin of ncCache at Naukri Off lately, revamp of Naukri Recruiter Section went live. It feels good to tell you about this! The project... 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

Resource Timing API

www.naukri.com on the address bar… enter… and yes we want our site to load in less than 2 secs ideally. If not, we are giving a bad experience to the users. Yes we all want our web applications to load in as much less time as we can. But with growing richness of the web applications, the web applications are becoming heavier and it has become very important to find ways to improve the speed of our web applications. Improving speeds of website does not only mean minifying javascript files and compressing images, these days websites consists of a lot of external contents as well... 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

Google Cloud Messaging and its use for pushing notifications on Android App

Naukri.com android mobile app for jobseekers enables users to get notifications anytime anywhere using Google Cloud Messaging or GCM service. In this post we will walk you through the details of GCM. GCM.. What is it? Google Cloud Messaging (GCM 3.0) is a free service that helps developers send messages across multiple platforms: Android, iOS, and Chrome. A server can send messages directly to single devices, groups of devices, or devices subscribed to particular topics. Using this service you can send data to your application whenever new data is available instead of making... 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