Stunning Rolls-Royce concept car 103EX

          On 16th of June Rolls-Royce announced a driver less, autonomous concept car Rolls-Royce 103EX.  It uses artificial intelligence for autonomous driving and they named this AI as Eleanor. Eleanor can give passengers information about their trip and upcoming appointments for the day.

            The car look is very attractive and it looks almost all like taken straight from a sci-fi film. The interior of car is very special, we can call it moving living room. One of  the most cool thing is it has no steering wheel as car is driving on its own. Passengers in car can sit back and watch a show on a giant OLED screen that takes up the entire wall of the front cabin. This car comes with lot more luxurious features like sleek doors that swing open when you’re ready to start your trip and secrete storage compartment. Following are some of the official videos and images of Rolls-Royce 103EX.

This slideshow requires JavaScript.

Official Website of Rolls-Royce EX103 :


AngularJS router to use different template for Mobile and Desktop

In your AngularJS application, if you want to use different templates/views for mobile and desktop users then following script may be useful for you. What we have done here is, just wrote a function named as “_isNotMobile”. This function will return true/false by checking user agent of device. And also we have used that function inside AngularJs app’s router, before actually specifying template/view paths and that’s it! Simple!


CRUD Operations on JSON object using AngularJs

angularjs by google

AngularJS is a powerful JavaScript Framework. It is used in Single Page Application (SPA) projects. It extends HTML DOM with additional attributes and makes it more responsive to user actions. AngularJS is open source, completely free, and used by thousands of developers around the world. In this post we are going to see the code for how we can perform CRUD (Create, Read, Update, Delete) operations on JSON object.


How to check if jQuery is already loaded in Magento


If you are building some custom extension for Magento and your extension includes jQuery, but you don’t want to load it if its already loaded by some other Magento extension or theme, then you can do so using your layout XML file as shown below. Here we are checking for the global window.jQuery variable. If that is undefined jQuery is not loaded yet. Add the following to your modules layout XML.

This will be included in the head after all other javascripts are loaded and you can be sure jQuery wasn’t included if its already there.

PHP code for removing unnecessary whitespaces from html

php code

Removing unnecessary white-spaces and extra characters from html source code, helps for improving overall rendering speed of web page. Specially in browser window. Following is simple PHP script which will remove all unnecessary white-spaces from html source. And thus minify it and improves rendering speed. Add this code in header of your PHP page to see the effect.


How to optimize Magento website performance


Magento if the most widely used e-commerce framework. In this post I have mentioned few important points through which we can optimize overall Magento website’s performance. Most optimizations will work with any version of Magento.  Note that here I assume your customized Magento website is build by following all the recommended coding standards (For more information about Magento coding standards please visit So, following are important points/guidelines you are supposed to follow to improve Magento performance.

  • Enable Cache through Magento Admin Panel.
  • Use minified js/css and enable Merge CSS/JS through Magento Admin Panel
  • Enable code compilation after complete development. If updates, code modifications, extension installations are needed, code compilation needs to be disabled first. If not, there will be errors.
  • Set HTTP Header Field Connection : Keep-Alive through server configuration.
  • Do not take backup or place other folders in servers “/var/www/html/”  other that project’s main folder.
  • Use PNG images.
  • Apply lazy loading on images.
  • Reduce HTML source code by removing spaces, commented text and make HTML inline, this helps to render page fastly by browser.
  • Enable Flat Categories and Products: In Magento admin, (top menu) System > Configuration, (left nav) Catalog > Catalog, (main page) Frontend.  Set “Use Flat Catalog Category” and “Use Flat Catalog Product” to “Yes“. Attributes that apply to Categories and Products are stored in separate database tables depending on their datatypes. ‘Flattening’ will put all attributes in one table for Magento retrieve. This will have a positive impact on site speed especially if it has 1,000 or more products.
  • Optimize the MySQL server (enable Query Cache and tweak my.cnf parameters).
  • Enable gzip through server configuration and note that you don’t apply it on images as images are already compressed.
  • As part of database maintenance do log cleaning.
  • Use PHP Accelerators : Using a PHP accelerator is another form of caching. They increase performance of PHP scripts by caching them in their compiled state. You can use a PHP accelerator like APC, ZendOptimizer+ or Xcache.

Rules for improving web page response time :
Studies have shown that web page response time can be improved by 25% to 50% by following these rules.

Indian Government Websites Directory

Hello Readers!.. In this post I am going to provide you list of some important websites of Government of India. The official directory of all websites by Government of India is available on Most of this website are made under Digital India initiative by Government of India. So following is the list of some important websites, I will be updating this list periodically.

National Portal of India ( ) :  National Portal of India is the Official Portal of the Government of India, designed, developed and hosted by the National Informatics Centre (NIC). This portal is a single window access to the information and services being provided by the Indian Government for citizens and other stakeholders.
National Informatics Centre (NIC) Logo (External website that opens in a new window). The content in this Portal is the result of a collaborative effort of various Indian Government Ministries and Departments, at the Central/State/District level. This Portal is Mission Mode Project under the National E-Governance Plan, designed and maintained by National Informatics Centre (NIC), DeitY, MoCIT, Government of India.

MyGov ( ) : Its a Platform for Citizen Engagement towards Good Governance in India. MyGov is an innovative platform to build a partnership between Citizens and Government, with the help of technology for growth and development of India. MyGov platform is a unique path breaking initiative which was launched on July 26, 2014 by none other than the Hon’ble Prime Minister of India, Shri Narendra Modi. It is a unique first of its kind participatory governance initiative involving the common citizen at large. The idea of MyGov brings the government closer to the common man, by the use of online platform creating an interface for healthy exchange of ideas and views. By involving the common citizen and experts with the ultimate goal to contribute to the social and economic transformation of India. In its short span of existence till date, MyGov platform has been more than successful in keeping the citizens engaged on important policy issues and governance. Be it Clean Ganga, Girl Child Education, Skill Development and Healthy India to name a few. There is no doubt that this platform has made inroads in diminishing the gap which has traditionally existed between the citizen and the government. MyGov platform has become a key part of the policy and decision making process of the country. Where the platform has been able to provide the citizens a voice in the governance process of the country. And create grounds for the citizens to become stakeholders not only in policy formulation and recommendation bit but also implementation through actionable tasks. Given the importance of this platform in transformation of India through participatory governance, the platform has been constantly undergoing upgrades to ensure an enhanced level of user experience. The major attributes of MyGov includes Discussion, Tasks, Talks, Polls and Blogs on various groups based on the diverse governance and public policy issues. Today MyGov has more than 1.78 Million users who contribute their ideas through discussions and also participate through the various earmarked tasks. In addition to this the platform gets more than 10,000 posts per weeks on various issues which are analyzed and put together as suggestions for the concerned departments who are able to transform them into actionable agenda. With these impressive numbers, one has to say this is just the beginning and there is a lot more to come on this platform in future. As mentioned by the Hon’ble Prime Minister, Shri Narendra Modi, MyGov is an initiative which should culminate into a mass movement towards self-governance or ‘surajya’. As further progress is being made under the umbrella of Digital India, utilizing the technology to further revolutionalise the public service delivery and citizen engagement. MyGov platform is all set to become a key agent for this change taking inputs from the citizens, the ultimate beneficiary and leverage their collective feedback to improve policy change and implementation.

Digital India  ( )  : Digital India is an initiative by the Department of Electronics & Information Technology, Government of India. To ensure that Government services are made available to citizens electronically by improving online infrastructure and by increasing Internet connectivity. It was launched on July 1, 2015 by Prime Minister Narendra Modi. The initiative includes plans to connect rural areas with high-speed internet networks. Digital India has three core components. These include:

  • The creation of digital infrastructure
  • Delivering services digitally
  • Digital literacy

Government Video Portal ( ) : This portal provide live webcast of International and National events, President’s and Prime Minister’s speeches, 24×7 live channels. This webcast services is provided by National Informatics Centre, DIT, Govt. of India.

Open Government Platform (OGPL)  : OGPL is a joint product from India and United States to promote transparency and greater citizen engagement by making more government data, documents, tools and processes publicly available. OGPL will be available, as an open source platform. By making this available in useful machine-readable formats it allows developers, analysts, media & academia to develop new applications and insights that will help give citizens more information for better decisions. In using an open source method of development, the OGPL community will provide future technology enhancements, open government solutions, and community-based technical support. OGPL has become an example of a new era of diplomatic collaborations that benefit the global community that promote government transparency, citizen-focused applications, and enrich humanity. Initially, OGPL will provide governments the ability to:

  • Publish government data, documents,  apps, tools & services  from multiple departments within a government
  • Build on Web 2.0 open-source technologies with  low-cost scalable infrastructure
  • Engage Citizens  in their open data initiatives for better understanding of  their  needs
  • Provide publicly available application programming interfaces (APIs) and other tools to add external software modules for data visualization, wizards, and other purposes
  • Create data-rich community spaces around topics of national priorities and international interest
  • Empower end-users to share datasets via social media platforms such as Facebook, LinkedIn, and TwitterOGPL product has following four main components:
  • OGPL Web site – Module for Governments and their agencies to publish datasets, documents, services, tools and applications collected by them for public use.
  • Data Management System (DMS) – Module for user management of various agencies who can upload datasets which will be available on the front end website.
  • Content Management System (CMS) – Module for managing and updating various functionalities of the OGPL frontend.
  • Visitor Relationship Management (VRM) – Module for collating and disseminating viewer feedback on various datasets.

Open Government Data Platform (OGD) India : It’s a Single-point of access to resources (Datasets/Apps) in open format published by Ministries/Departments/Organizations of Government of India, Open Data Events, Visualizations on datasets etc. Open Government Data (OGD) Platform India is a platform for supporting Open Data initiative of Government of India. The portal is intended to be used by Government of India Ministries/ Departments their organizations to publish datasets, documents, services, tools and applications collected by them for public use. It intends to increase transparency in the functioning of Government and also open avenues for many more innovative uses of Government Data to give different perspective. The base Open Government Data Platform India is a joint initiative of Government of India and US Government. Open Government Data Platform India is also packaged as a product and made available in open source for implementation by countries globally. The entire product is available for download at the Open Source Code Sharing Platform “GitHub”. Open Government Data Platform India has 4 (four) major modules, as detailed below, implemented on a single Drupal instance – An Open Source based Content Framework Solution

  • Data Management System (DMS) – Module for contributing data catalogs by various government agencies for making those available on the front end website after a due approval process through a defined workflow.
  • Content Management System (CMS) – Module for managing and updating various functionalities and content types of the Open Government Data Platform India Platform.
  • Visitor Relationship Management (VRM) – Module for collating and disseminating viewer feedback on various data catalogs.
  • Communities – Module for community users to interact and share their zeal and views with others, who share common interests as that of theirs.

DigiLocker ( ) : DigiLocker is a key initiative under Digital India, the Indian Government’s flagship program aimed at transforming India into a digitally empowered society and knowledge economy. DigiLocker ties into Digital India’s visions areas of providing citizens a shareable private space on a public cloud and making all documents / certificates available on this cloud. Targeted at the idea of paperless governance, DigiLocker is a platform for issuance and verification of documents & certificates in a digital way, thus eliminating the use of physical documents. Indian citizens who sign up for a DigiLocker account get a dedicated cloud storage space that is linked to their Aadhaar (UIDAI) number. Organizations that are registered with Digital Locker can push electronic copies of documents and certificates (e.g. driving license, Voter ID, School certificates) directly into citizens lockers. Citizens can also upload scanned copies of their legacy documents in their accounts. These legacy documents can be electronically signed using the eSign facility.
The platform has the following benefits:

  • Citizens can access their digital documents anytime, anywhere and share it online. This is convenient and time saving.
  • It reduces the administrative overhead of Government departments by minimizing the use of paper.
  • Digital Locker makes it easier to validate the authenticity of documents as they are issued directly by the registered issuers.
  • Self-uploaded documents can be digitally signed using the eSign facility (which is similar to the process of self-attestation).

National Voter’s Service Portal ( ) : This is portal by Election Commission of India, which provides various facilities to votors in indian teritory. This facilities includes

  • Searching your name in electoral roll
  • Locate Polling Station on Map
  • Apply for enrollment and correction of Election Cards
  • Know both Level Officer and Electoral Officers Roles
  • Know information about EVM (Electronic Voting Machine) and whole polling process

MyLGP ( ) : This portal is specially designed for LGP customers in India. Through this portal one can give up his/her LPG subsidy, get details about various subsidies provided by Indian Government on LPG and Safety Tips etc.

Press Information Bureau Government of India ( ) : If you belong to Media Sector then this is the important portal for you. This is the official website of Press information Bureau of Government of India. Here you can get Press Releases, Photos, Features, Webcasting, Video, Invitations  and other information released by Government of India.

The Indian Government Tenders Information System ( ) : If you run a company/organization and looking for government tenders then it is the most important website for you. Here one can get all Indian Government tenders at one point. This Indian Government Tenders Information System is the Central Source for Government and Public Sector Procurement / Tenders/ Notifications issued by the Central and State Governments and other public bodies across India for goods, services and works.

RTI Online ( ) : This is a portal to file RTI applications/first appeals online along with payment gateway. Payment can be made through internet banking of SBI & its associate banks, debit/credit cards of Master/Visa and RuPay cards. Through this portal, RTI applications/first appeals can be filed by Indian Citizens for all Ministries/Departments and few other Public Authorities of Central Government. RTI applications/first appeals should not be filed for other Public authorities under Central/State Govt. through this portal.

Passport Seva ( ) : The Passport Seva Project (PSP) is transforming passport and related services in India to provide a best-in-class experience to Indian citizens. PSP is enabling MEA (Ministery of External Affairs) to deliver passport services in a reliable, convenient and transparent manner, within defined service levels. Through this website you can submit passport application and seek an appointment on payment of passport fees online. The portal provides comprehensive and latest information on all passport related services The PSP network connects with the State Police across all the states and union territories. The applicant’s data is sent electronically for police verification. PSP also provides an interface to India Post for tracking delivery of passport to citizens.
UIDAI – Unique Identification Authority of India   ( ) : Here you will get everything about Adhar Card. You can generate E-Adhar Card, track your adhar card application, update your information on Adhar Card and much more.

National Informatics Centre ( )  : The National Informatics Centre (NIC)  is the premier science & technology organisation of India’s Union Government in informatics services and information-and-communication- technology (ICT) applications. The NIC is a part of the Indian Ministry of Communications and Information Technology’s Department of Electronics & Information Technology. It has played a pivotal role in steering e-governance applications in the governmental departments at national, state and district levels, enabling the improvement in, and a wider transparency of, government services. Almost all Indian-government websites are developed / managed by NIC. The NIC offers a host of services including:

  • Computer-aided design (CAD)
  • digital-signature certification
  • geographical-information system (GIS)
  • domain-name registration for and
  • Informatics
    Biomedical informatics
    Patent informatics
    Rural informatics
    Agriculture informatics, including hydrography
  • internet data centre (IDC)
  • mathematical modelling and simulation
  • Computer networking
  • office-procedure automation (OPA)
  • Training
    Cyber Security
    Website hosting & website development
    Internet Services

Creating custom category attribute in Magento


In this short article contains code for creating custom category attribute in Magento . Run this script from your magento root folder and it will create custom attribute of type int in General group. To test whether attribute is created or not Go to your magento admin panel > catelog > manage categories and user General tab you will see Most Popular Products attribute.