Python Scrapy Library

What is Scrapy??


Scrapy is an open source and collaborative framework for extracting the data you need from websites in a fast, simple, yet extensible way.


But what do you mean be scraping data?


Web scraping is a computer software technique of extracting information from websites. This technique mostly focuses on the transformation of unstructured data (HTML format) on the web into structured data (database or spreadsheet).

In python, web scraping can be done using scrapy.


Let’s get started.

Installation first.

You can easily install using pip. For other installation option, click here. Type the following to your command prompt.

Now, let’s get our hand on some coding.

Let’s start off by creating a scrapy project. Enter the directory of your choice and type in the following.

Something like this prints out for you.

You can start your first spider with:

This will create a directory tutorial with the following contents.


scrapy.cfg            # deploy configuration file


tutorial/             # project’s Python module, you’ll import your code from here



items.py          # project items definition file


pipelines.py      # project pipelines file


settings.py       # project settings file


spiders/          # a directory where you’ll later put your spiders



Now let’s create a spider, but what are spiders?

Spiders are classes that you define and that Scrapy uses to scrape information from a website (or a group of websites). They must have a  subclass scrapy. Spider and define the initial requests to make, optionally how to follow links in the pages, and how to parse the downloaded page content to extract data.

We will be using examples from the official doc.

So save the following code in a file named quotes_spider.py under the tutorial/spiders directory in your project:

As you can see, our Spider subclasses scrapy.Spider

Let’s see wha teach of the attributes and methods mean.

  • name: identifies the Spider. It must be unique within a project, that is, you can’t set the same name for different Spiders.
  • start_requests(): must return an iterable of Requests (you can return a list of requests or write a generator function) which the Spider will begin to crawl from. Subsequent requests will be generated successively from these initial requests.
  • parse(): a method that will be called to handle the response downloaded for each of the requests made. The response parameter is an instance of TextResponse that holds the page content and has further helpful methods to handle it.

The parse() method usually parses the response, extracting the scraped data as dicts and also finding new URLs to follow and creating new requests (Request) from them.


Now let’s run our spider.

Go to the top level directory and type in the following in your cmd.

This command runs the spider with name quotes that we’ve just added, that will send some requests for the quotes.toscrape.com domain. You will get an output similar to this:

… (omitted for brevity)




Two new files have been created in the directory you were at. quotes-1.html and quotes-2.html, with the content for the respective URLs, as our parse method instructs.

Beautiful! Isn’t it?

Benefits of Scrapy:

  • Scrapy is a full framework for web crawling which has the tools to manage every stage of a web crawl,
  • Comparing with Beautiful Soup, you need to provide a specific url, and Beautiful Soup will help you get the data from that page. You can give Scrapy a start url, and it will go on, crawling and extracting data, without having to explicitly give it every single URL.
  • It can crawl the contents of your webpage prior to extracting.”


Challenges of Scrapy:

  • To parse just a few webpages, Scrapy is an overkill. Beautiful soup is better.


To learn to play with scrapy, check out





Python Requests Library

What is Requests?

Requests is an elegant and simple Apache2 licensed  HTTP library for Python. It is designed to be used by humans to interact with the language. This means you don’t have to manually add query strings to URLs, or form-encode your POST data.

Requests will allow you to send HTTP/1.1 requests using Python. With it, you can add content like headers, form data, multipart files, and parameters via simple Python libraries. It also allows you to access the response data of Python in the same way.




Here, I am installing using pip. For more options, visit.


Let’s get started.

First lets import requests

Here, i am using a webpage within my server which open to a page like this.


Let’s create a Response Object r

Let’s check the current status of the site


Let’s get the content of the site


To know what encoding it uses,

Let’s change that to say,


You might want to do this in any situation where you can apply special logic to work out what the encoding of the content will be. For example, HTTP and XML have the ability to specify their encoding in their body. In situations like this, you should use r.content to find the encoding, and then set r.encoding. This will let you use r.text with the correct encoding.

Requests will also use custom encoding in the event. If you have created your own encoding and registered it with the codecs module, you can simply use the codec name as the value of r.encoding and Requests will handle the decoding for you.


There’s also a builtin JSON decoder, in case you’re dealing with JSON data:


With every request you send to a HTTP server, the server will send you some additional data. You can get extract data from an HTTP response using:


Benefits of Requests.

This is the list of features from the requests site:

  • International Domains and URLs
  • Keep-Alive & Connection Pooling
  • Sessions with Cookie Persistence
  • Browser-style SSL Verification
  • Basic/Digest Authentication
  • Elegant Key/Value Cookies
  • Automatic Decompression
  • Unicode Response Bodies
  • Multipart File Uploads
  • Connection Timeouts
  • .netrc support
  • List item
  • Python 2.6—3.4
  • Thread-safe.

An awesome lotta features!Right?




To know more,









Python Django

What is Django?

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. When you’re building a website, you always need a similar set of components: a way to handle user authentication (signing up, signing in, signing out), a management panel for your website, forms, a way to upload files, etc. Python Django takes care of the repetitive work for you so that you don’t have to reinvent the wheel all over again.


Lets install Django


You can install Django using

For other ways of installation, visit this.


Let’s get started

Since this is the first time we are using Django there is some  initial setup to do. We need to auto generate some code that establishes  the Django project.

From the command line,

This will create a folder ‘mysite ‘ in your current directory. Do avoid python names of different functionalities as names for the folder. Ex. Django and test are not good choices since they create conflict on calling.

Also, with Django you do not put your code under your web server’s root directory. We always place it outside.

Let’s look at what startproject created:









These files are:

  • The outer mysite/ root directory is just a container for your project. Its name doesn’t matter to Django; you can rename it to anything you like.
  • py: A command-line utility that lets you interact with this Django project in various ways. You can read all the details about manage.py in django-admin and manage.py.
  • The inner mysite/ directory is the actual Python package for your project. Its name is the Python package name you’ll need to use to import anything inside it (e.g. urls).
  • mysite/__init__.py: An empty file that tells Python that this directory should be considered a Python package. If you’re a Python beginner, read more about packages in the official Python docs.
  • mysite/settings.py: Settings/configuration for this Django project. Django settings will tell you all about how settings work.
  • mysite/urls.py: The URL declarations for this Django project; a “table of contents” of your Django-powered site. You can read more about URLs in URL dispatcher.
  • mysite/wsgi.py: An entry-point for WSGI-compatible web servers to serve your project. See How to deploy with WSGI for more details.


Let’s verify whether our Django works.

You can safely ignore the warning for now.


Yipppe! We  have started the Django server! Let’s go see how it looks like.


Note This is only for studying. When it  comes to production setting, use Apache servers or similar.

By default the port is 8000. But you can change it using the command line. Say you want to change it to 8080

Full docs for the development server can be found in the runserver reference


But why Python Django?

  • It’s the best choice for quick web development
  • Transparent and clean code.
  • Fewer lines of code
  • Saves time and money on development
  • works well with high loads

Why not Django?

  1. Doesn’t support real-time applications
  2. Broad knowledge of the system is required
  3. ORM is very monolithic compared to SQLAlchemy.


To know how to edit and configure your webpages, check out https://docs.djangoproject.com/en/1.11/intro/tutorial01/


For more details visit,











Python Projects

Python is one of the most loved and powerful languages to code in. It’s an interpreted, object-oriented, high-level programming language with dynamic semantics. Python’s simple, easy to learn syntax makes it very easy to read and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse.

After you play around with python, you would of course want to do something serious, like maybe a python project. Here, we have complied a list of top 4 sites where you could go and download python projects for your different needs, maybe for practice, references or sometimes for your final year projects. Hope this helps!


Free Projectz

You can download python project concept, abstract and source code for free at Free Projectz. Some of the interesting projects there are Doctor Appointment SystemUser Management, Live Photo Gallery etc.


With 300000+ members and 1500+ projects, you will find a variety of Python projects you can download and work on from Kashipara. They have a really good collection for mini and major projects and even have the best projects ranked on the basis of hits per day and month. Few interesting projects are ATM Software – Python, Online Video Chat – Python,Restaurant Management System – PythonTODO List – PythonVirtual Memory Management System – PythonInsta Raider – Python etc

Free Projects Code

Free Projects Code has a lot of sample mini and major projects that you can download and study. Few of them are Download Search Engine Python Script, Download Virtual Memory Management System, Download Video Chat Application, Internet Usage Monitoring System For Linux SystemsATM Software Engineering Project, Web Based File Hosting and Syncing Service Project Report

1000 Projects

Below are some of the projects developed by 1000 Projects. Google Finance currency calculator API,using aprori on website to get relevant data, Game like tic tac toe ,Note/content sharing platform for college students, book information parsing tool developed for opencart, AI Crosswords, An algorithm for steganography of multiple heterogeneous files on a single video carrier etc. For downloads, visit the site.

Any projects or sites we missed? Let us know by commenting down below. We love hearing from you. Hope this list helped.

 Have fun with Python!



Python Execution Time


Write a program to print the running time of execution of “1+1” for 100 times. Use timeit() function to measure the running time.



Runtime or execution time is the time during which a program is running (executing), in contrast to other program lifecycle phases such as compile time, link time and load time.

The Timer function keeps track of the time



Best Python Books

Quora brings up a lot of interesting questions from all around the world. An avid Quora reader myself, I absolutely love reading through the different questions and answers there. One of the questions that interested me was “To learn a programming language is it better to learn from a book or on-line courses on the Internet?”

Well, that answer would totally depend on how you intend to learn. If you just want to learn the syntax then some online classes would be more than fine. If you really want to learn the real power behind the language, then an in-depth online course or better you could grab a good book on it. So to all those Python learners out there, here we have compiled a list of the best python books out there for you to learn.


1. Learning Python

Written by Mark Lutz and David Ascher, Learning Python offers a comprehensive in-depth introduction to the core of Python language for any beginner. It covers basic topics of both 2.7.X as well as 3.X in much detail. Some of the topics covered are Types & Operations, statements and Syntax, Functions and Generators, Modules and packages and much more. The beginner chapter, a Q&A session on Python and especially why Python is a major highlight. The end chapter quizzes enable the reader to challenge himself on the topics covered. Therefore leaning Python is one of the best choices to get started in Python.

2.Learn Python the Hard way

Written by Zed Shaw and offered for free as pdfs. Learn python the hard way will give beginners with a perfect insight to the very basics. You can also learn a variety of basic things such as how to use the terminal or the text editor. This book focuses on more on learning by doing than subject theory. therefore for an absolute beginner, Learn Python the hard way is a good choice.

3.A Byte of Python

Targeted for the absolute beginners in programming, author Swaroop C. H has kept it short and brief. With a user-friendly introduction, and focus on scripting simple but meaningful programs. A Byte of Python is the best choice for a beginner to learn Python briefly.


1.Python Essential Reference

Written by David M. Beazley, this book is the perfect go to reference book on Python. All the new features such as new style classes, unification of types and classes, xmlrpclip, intertools, bz2 and optparse the new library modules are all covered in the updated edition of this book which makes it the most up-to date book on Python in the market. Written in a clear and organized manner, it gives you a detailed overview and an insight to the real power of programming. For someone with a bit of basics and want to learn Python, Python Essential Reference is a must read.

2.Python CookBook

Written by David Beazley and Brian K. Jones, Python CookBook is for readers with a basic knowledge of Python. Readers who want to learn more on concepts such as data structure, data encoding and processing, functions, algorithms, classes and objects, system administration, modern tools and idioms, generators and iteration methods would find Python CookBook to be the best guide. Each recipe contains code samples written and tested in python 3.3, so that you can get to using them right away. For someone who wants to be good on Python, Python CookBook is a must read.

3. Scientific Computing in Python

Authored by Claus FührerJan Erik SolemOlivier Verdie, Scientic Computing in Python3 demonstrates how to use Python for computing purposes such as in linear algebra, arrays, plotting, iterating, functions, polynomials, and much more. You get to explore numerical computing and mathematical libraries with SciPy and NumPy modules. Covering all major concepts and tools in scientific computing, this book is your go to guide and best reference for the same.


1.Black Hat python

Author Justin Seitz has aced how to teach security skills in python in his book Black Hat python. Targeted only for advanced Python users, this book comes as a huge boon for hackers and penetration testers to write better networking sniffers, infect virtual machines and manipulate packets and develop better hacker tools using python. A must have for any wanna be Hacker in Python.

2.Python for Data Analysis

Data Anaysis is all about collecting, cleaning, processing, crunching and studying raw data to bring out better insights on the subject matter. One of the best tools used in Python for the same is the pandas library and Wes Mckinney, one of the main authors of the pandas library has brought out a hands on book packed with practical case studies to guide you through understanding and implementing various tools and libraries used for the same. Easy to read and targeted for advanced Python users, Python for Data Analysis is your comprehensive guide to data analysis in Python.

3.Violent Python: A Cookbook For Hackers, Forensic Analysts, Penetration Testers And Security Engineers

TJ O’Connor in his book Violent Python: A Cookbook For Hackers, Forensic Analysts, Penetration Testers And Security Engineers teaches you concepts in security, hacking, forensics, tool integration for complicated protocols etc in the most simple and easy to understand style. You can also learn how to automate large network attacks, extract meta data, intercept and analyze network traffic, spoof wireless frames to attack wireless and bluetooth devices, data mine social media websites and so on. In terms of language and concepts, TJ O’Connor has aced how to teach the advanced topics in python in simple terms, bringing out the perfect go to book for the same.

Have more books to add-on to this list? Comment them below, we would love to hear from you.

Meanwhile, Have fun with Python!


Apple HomePod


Apple joins in the race of voice enabled virtual assistant device with HomePod. It can respond to human commands and control smart home gadgets.  However , Apple insists that it is primarily a music device with superior audio powered by it’s long standing voice assistant Siri. According to Apple CEO Tim Cook “The thing that has arguably not gotten a great level of focus is music in the home. So we decided we would combine great sound and an intelligent speaker”.


Release and Availability

HomePod will be released in the US, UK and Australia in December 2017. Initially, it would only support English language voice commands.It will be available in other countries starting 2018.



It will cost US $349. That’s more than double the cost of Google and Amazon’s alternatives, typical apple style. However , many apple fans will still be loyal to it and would love to see what it brings to the table.  Apple says that when kept in center of room it plays sound in all directions and if kept in corner it will aim the output away from the wall. It can also act as stereo speaker by connecting to other sound devices. If the claims come out to be true , it might be worth the extra cash.



HomePod is a heavy-looking cylindrical gadget nearly 7 inch tall that comes with seven tweeter beam forming array, six microphones , a four-inch woofer for a more immersive experience. It has iPhone A8 chip that determine the size and layout of the room which will adapt sound quality to fit the room.

HomePod is designed for voice control with an array of six microphones, so users can interact with it from across the room, even while loud music is playing. You can tap the top of HomePod to play , pause or adjust volume. LED waveform on top indicate whether Siri is listening.

Since it’s yet unreleased, not much can be said about it’s qualitative aspects.



Security is fundamental aspect of any data based technology, therefore, all data is stored locally on your device and is sent to servers via cryptic methods using anonymous Siri Id. So, there is nothing to fret about with HomePod around. Your identity and information is safe.


Personal assistance

It springs into life on hearing “Hey Siri”. It’s personal assistance roles include news briefings, language translation, weather, traffic info, set reminders, play podcasts among others. Simply speaking we can ask Siri , any question we generally need browsing or app launching for.

“Hey Siri , set an alarm for 7 am tomorrow”.

“Hey Siri , Did Delhi Daredevils win last night?”



It will likely work with Apple’s established HomeKit partners:  Ecobee, Honeywell, Chamberlain, D-Link, Philips Hue, Lutron, iDevices and more. However ,the only music streaming service that is supported by Homepad is Apple Music. Users of other popular platforms like Spotify will be disappointed. But this is not new for apple users.

HomePod can also send text messages to others. Like it’s counterpart it offers many tools to help around house such as calendar synchronization, kitchen timers and alarms.

Comment and share this post if you like it and want us to add more posts like this.


Other Assistants by Amazon


Amazon added new products to the battle of smart speakers, namely, Amazon Echo Dot and Amazon Tap. Both differ slightly from their predecessor in traits however, core values remain the same.

Amazon Echo Dot


Echo Dot is the mini version of Amazon Echo and still provides all Alexa’s quirks.

However, it does compromises on the quality of speaker to cut down on cost. A smaller built-in speaker does let you talk to Alexa, but it’s not good enough for streaming music. Also, it needs to be plugged in to work.

You might have to connect your own Bluetooth speakers through Bluetooth or 3.5 mm stereo cable to play music from Amazon Music, Spotify, Pandora, iHeartRadio, and TuneIn.

The Dot comes at an affordable price of $49.



Amazon Tap

The Amazon Tap is another Wi-fi enabled digital assistant which takes the Echo’s fundamentals and packs them into a portable Bluetooth speaker. It is 6.5 inches tall and 2.5 inches wide , lasts for about 9 hours once fully charged. Unlike it’s counterparts, the Tap isn’t always listening. Instead, you have to press a mic button to speak to Alexa, which is disheartening to most users, but this is required to preserve the battery life. However, a recent update does allow you to enable hands-free listening at the expense of battery life.

It comes at a price of $129.




Comment and share this post if you like it and want us to add more posts like this.





Amazon Echo vs. Google Home vs. Apple HomePod

Amazon Echo vs. Google Home vs. Apple HomePod


Intelligent voice controlled devices are among the latest trends and deciding the one that suits you best is troublesome. Amazon echo and Google Home are major rivals in the battle with Apple HomePod being a new entrant. With so much information available on what each device can or cannot do, one is left overwhelmed.

Here is a comparison of these devices listing both similarities and dissimilarities and stating which stands out in certain areas and which needs work.


Amazon echo is priced at $179.99. However, the lowest amount that can get you Alexa, Echo dot, is mere $50, courtesy Amazon which always has been aggressive in pricing. Apple’s HomePod, like most Apple products, comes at a premium price of $349. An affordable alternative is Google Home at $129.


HomePod is stout , cylindrical with glowing area on top similar to the siri logo indicating when siri is listening.     




Home has pretty plum like design,comes in various colors and finishes with upper section displaying google logo whereas volume and play/pause controls and speakers in the lower section.



Echo is longer cylinder with lower section as speakers. The top rim glows blue indicating ‘listening’ and two action buttons are also on top.



Music playlists

Music playback in HomePod limited to Apple Music only. On other hand, Home offers connection to Google Play Music, Spotify, Pandora, Deezer and more while Alexa can connect to Amazon Music, Spotify, Audible and Pandora. This shows limits of HomePod.



  • Echo and Home essentially are similar in intent. Both are mid range voice enabled virtual assistants.
  • Both have built-in mics to receive commands and respond intelligently via speakers. Also , they connect to other smart devices and operate them. However , as far as assistance is concerned Google is a leader in the area with it’s unmatched history with user and search data.

Contrary to these, Apple characterizes HomePod as a powerful wireless speaker that has Siri at it’s service, helping it carry out other smart operations and provide assistance.

  • The Echo has seven microphones waiting for trigger words while Home only has two mics with it and therefore, sometimes takes few seconds to awaken.
  • Home has only one 2in driver while Echo has two speakers; one woofer and one tweeter. The HomePod stands out with 4in upwards facing woofers. This will lead to an immersive sound experience with sound adapting to room space and layout.

The HomePod will definitely offer a better audio experience than Home or Echo.


Personal assistance

  • Both Echo and Home offer similar services but their performance on Ground zero is relative and dependent on many factors. 
  • Both can hear from a good 50 m distance without being confused with noise. However , Home’s voice recognition stands out. No much can be said about HomePod since it isn’t released yet.
  • According to a practical test conducted by Jay McGregor from Forbes , comparing Echo and Home, Home took home gold. You can read about it here.
  • Home is better with web results and Echo is better with shopping related queries.
  • Home is more conversational. It remembers context.


Smart Home

  • Google Home and Amazon Echo can easily work with iOS and Android devices. Application is needed to configure them and connect them to cloud.
  •  Amazon steps up in Smart Home department since Echo supports large number of smart devices in comparison to other two, nearly 11k in contrast to 200 for Home.
  • The Home handles August, Belkin Wemo, Frigidaire, Honeywell, Insignia, Lifx, Logitech Harmony, Next, Philips, Rachio, Samsung, TP-Link, and Wink, along with anything with a Chromecast attached to it.
  • The Echo supports all of those except Chromecast, but adds Blink, Carrier, DigitalStrom, Haiku, Leviton, Lowe’s Iris, Lutron, Netatmo, and many other kinds of devices.
  • Home enjoys an edge by supporting streaming services like HBO now.


The Echo remains a popular choice as of now with reasonable prices and  huge skill set. However, Home is fast catching up with better sound quality and assistance. HomePod is yet to be discovered but it is definitely promising.

Comment and share this post if you like it and want us to add more posts like this.


Setting Up Echo Dot




  1. Download the Alexa app from app store and sign in using your amazon account. 

You can also select a link below:

  1. Turn on Echo Dot.
  • Plug the included power adapter into Echo Dot and then into a power outlet.
  • The light ring on Echo Dot turns blue, and then orange.
  • When the light turns orange, Alexa greets you.


  1. Connect Echo Dot to a WiFi network.
  • In Alexa app, open the left navigation panel and then select Settings.
  • Select your device and then select Update WiFi. If you’re adding a new device to your account, select Set up a new device
  • On your Echo dot, press and hold the Action button. The light ring changes to orange, and your mobile device connects to your Echo dot. A list of available WiFi networks appear in the app.
  • Select your WiFi network and enter the network password (if required). If you don’t see your WiFi network, scroll down and select Add a Network (for hidden networks) or Rescan.
  • Select Connect. After your device connects to your WiFi network, a confirmation message appears in the app.


  1. Echo Dot is ready to use.
  • Your Echo device is ready for use.
  • To get started, say the wake word-”Alexa” which is default and then speak natural English commands to Alexa.
  • You can use the Alexa app to change the wake word at any time.
  • In the app, go to Settings, select  your Echo device, and then select Wake word.


If you are looking for video tutorial:


Comment and share this post if you like it and want us to add more posts like this.


Top Recommended PHP Books


PHP is the mostly commonly used language for Website and Web Application Development. It is a general purpose, server-side scripting language run a web server that’s designed to make dynamic pages and applications. PHP as a web development option is secure, fast and a reliable that offers lots more advantages to make it accessible to a lot of people. 

Below are some Recommended PHP Books for Beginner, Intermediate and Advanced students.



Head First PHP & MySQL –  Lynn Beighley


Head First PHP & MySQL is the good book to start learning building dynamic websites using PHP and MySQL. You can create and populate your own MySQL database tables, and work with data stored in files . Use of exercises quizzes and puzzles turns this series into bestseller. You’ll build sophisticated examples — including a mailing list, a job board, and an online dating site — to help you learn how to harness the power of PHP and MySQL in a variety of contexts.

What you’ll learn

  • Use cookies and sessions to track visitors’ login information and personalize the site for users
  • Protect your data from SQL injection attacks
  • Use regular expressions to validate information on forms
  • Dynamically display text based on session info and create images on the fly
  • Pull syndicated data from other sites using PHP and XML
  • Advanced topics like session IDs, cookies, sessions, form validation, database queries and joins, file I/O operations etc.



PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition) – Larry Ullman 

  • With step-by-step instructions, complete scripts, and expert tips to guide readers, veteran author and database designer Larry Ullman gets right down to business.
  • After grounding readers with separate discussions of first the scripting language (PHP) and then the database program (MySQL), he goes on to cover security, sessions and cookies, and using additional Web tools, with several sections devoted to creating sample applications.
  • This guide is indispensable for beginning to intermediate level Web designers who want to replace their static sites with something dynamic.
  • In this edition, the bulk of the new material covers the latest features and techniques with PHP and MySQL.
  • Also new to this edition are chapters introducing jQuery and object-oriented programming techniques.
  • The contents of current edition of the book were updated to correspond to version 5.3 of PHP and version 5.5 of MySQL.





Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5 (Learning Php, Mysql, Javascript, Css & Html5) 4th Edition –  Robin Nixon


This book is for people who already have a fundamental understanding of HTML and are looking to create effective and dynamic websites, such as graphic designers who are already creating static websites but wish to take their skills to the next level, as well as high school and college students, recent graduates, and self-taught individuals. It provides a thorough grounding on core technologies such as PHP, MySQL, JavaScript, CSS, and HTML5, and jQuery library.

This book will help you:
-Understand PHP essentials and the basics of object-oriented programming
-Master MySQL, from database structure to complex queries
-Create web pages with PHP and MySQL by integrating forms and other HTML features
-Make Ajax calls and turn your website into a highly dynamic environment
-Upload and manipulate files and images, validate user input, and secure your applications





PHP & MySQL For Dummies –  Janet Valade


Using this book , you can build a online catalog and members only interactive website.

You’ll learn :

  • Get familiar with the terms PHP , MySQL
  • Their installation.
  • Store data in your database and query it via PHP and display it on your Website
  • Build PHP scripts that uses up to date code.
  • See how the language and database work together to produce dynamic Web pages with less hassle.
  • Deliver secure and sound website with proper documentation.

The book is recommended for someone acquainted with nuances of programming but is new to PHP.






PHP & MySQL: Novice to Ninja: The Easy Way to Build Your Own Database Driven Website 5th Edition – Kevin Yank


An intermediate level book to speed up your PHP integration with database (MySQL). Through this book, you can get acquainted with best database design and principles.  It contains installation process of PHP, MySQL. Takes on an explanatory approach and helps you build your first database. Working example is used in entire book, so that new concepts learnt can be incorporated practically.  You will be creating a live web based Content Management System and a functional e-commerce system.

What’s new ?

  • Up to date: Updated for Windows 7, Mac OS X Lion, and the latest versions of PHP, MySQL, phpMyAdmin, XAMPP and MAMP.
  • Latest edition of book recommends using all-in-one installation packages like XAMPP and MAMP, and moves the brittle manual setup instructions to an appendix at the end of the book.
  • Uses the more robust and portable PHP Data Objects (PDO) API and prepared statements to work with MySQL.
  • Easy-to-read HTML5 markup is used.
  • Object oriented programming (OOP) primer is introduced







Advanced PHP Programming – George Schlossnagle

The rapid maturation of PHP has created a skeptical population of users from more traditional “enterprise” languages who question the readiness and ability of PHP to scale, as well as a large population of PHP developers without formal computer science backgrounds who have learned through the hands-on experimentation while developing small and midsize applications in PHP. While there are many books on learning PHP and developing small applications with it, there is a serious lack of information on “scaling” PHP for large-scale, business-critical systems.

Schlossnagle’s Advanced PHP Programming fills that void, demonstrating that PHP is ready for enterprise Web applications by showing the reader how to develop PHP-based applications for maximum performance, stability, and extensibility.

The book covers a variety of advanced topics such as design patterns, error handling, templates, unit testing, caching, databases, performance tuning and extending the language.





PHP Objects, Patterns, and Practice – Matt Zandstra


PHP Objects, Patterns, and Practice shows you how to blend the power of PHP with the sound enterprise development techniques embraced by professional programmers. It goes beyond the basic programming and will elucidate advanced topics such as working with static methods and properties, abstract classes, interfaces, design patterns, exception handling, and more.

You’ll learn to

  • Write solid, maintainable code by embracing object oriented techniques and design patterns.
  • Create detailed, versatile documentation using the powerful phpDocumentor automated documentation system.
  • Gain new flexibility during the development process by managing your code within a CVS repository.




Getting Familiar with Microsoft HOLOLENS



Ever since the launch of Microsoft Hololens at inception of 2015, it has continued to amaze the world. The proposed capabilities of cool looking device had left people in awe.

What is Hololens?

It is world’s first holographic head mounted display based on the concept of Augment Reality or rather, Mixed Reality. It lets you interact with holograms within an environment such as your room, providing a truly  immersive experience.

Once you wear the device , your visual world will be over laid by a digital one, without loosing sight of original. The device has high-end sensors and trackers that detect your eye position , capture your hand movements , record and respond to your voice. For starters, you can watch videos , check blogs , open documents. It scans your view and objects and marks them as reference whenever required. You can see a new 3D world in front of you.



According to excerpt from official Microsoft site , Interacting with holograms in mixed reality enables you to visualize and work with your digital content as part of your real world. Realize mixed reality’s promise with Microsoft HoloLens.



Hololens was introduced at Windows 10 launch event earlier in 2015.

Below is a demo video from Build 2015. The demonstration was really interesting and new.


At Build 2017 , Hololens got re-introduced as it gets Motion controllers.

Price and availability

Hololens is currently available in developer version only and comes at a whooping price of $3000. A version for the masses is yet to hit the grounds.

Applications of Hololens

1. Remote Instruction

Hololens could be used for Remote Instruction purposes. Visual diagrams or models could be seen in space around the user indicating exactly what you need to do next. 


2. Entertainment


One of the most fascinating use of Hololens is Gaming. It could provide gaming experience like never before. Having a 3D immersive gaming experience at comforts of your home would be amazing.


3. Gaming

Hololens could bring virtual objects into real by overlaying them and hence, makes a great potential for Entertainment business. Users can climb mountains , explore space, go deep-sea diving , host an alien war right at their couch.


4. Training


NASA is also using Microsoft’s HoloLens to “travel” to Mars.  They hope to be able to use the technology to control future rovers and virtually explore the land around the rovers. 


5. Designing


Designing is another major area that could make use of Hololens. The device can scan an object, help you design it the way you prefer and you can watch your ideas coming to life.







Along with the traditional CPU (Central Processing Unit)and GPU (Graphic processing unit), it features Holographic processing unit or HPU, dedicated to immerse holograms in real environment.

Other specificatins include:

  • 2GB RAM
  • 64 GB Flash storage
  • Custom Microsoft Holographic Processing Unit HPU 1.0, Intel 32-bit architecture
  • Multiple environment understanding sensors , ambient light sensor and inertial measurement unit
  • See through holographic lens display with Automatic pupillary distance calibration
  • 2 MP HD camera to capture photos and videos
  • Bluetooth and Wi-Fi connectivity
  • Weighs 579g
  • External speakers, 3.5mm audio jack
  • Charges over micro USB giving 2-3 hour active use battery life
  • Runs windows 10




In order to allow the human interaction, 3 features are executed :

  • Tracking Gaze
  • Taking input via Gesture
  • Providing Voice support.



  • Gaze helps the device to understand the what to give information about.
  • It is equivalent to setting target. Whatever you are looking at via digital screen, Hololens understands  you are paying attention to it at the moment.
  • Once you have your item of interest locked in your gaze , you can now provide input via voice or gestures.
  • For gesture , it could be an action , such as “tap”.
  • For voice, this is done by utilizing array microphones that provides excellent voice recognition.

Comment and share this post if you like it and want us to add more posts like this.



Top 9 Augmented Reality Applications

 Top 9 Augmented Reality Android and iOS Applications



Theodolite AR App

Theodolite AR App

  • Using this app, an age-old surveying instrument, called Theodolite used to measure angles, distances, directions and locations, is digitized.
  • Theodolite is a multi-function viewfinder that combines a compass, two-axis inclinometer, rangefinder, GPS, map, navigation calculator, tracker, and geo-tag photo/movie camera into one indispensable app.
  • It comes with an optional in-app purchase to enable team tracking, with which you can share location with up to 20 people on Theodolite’s map. This was aimed at helping search and rescue teams.
  • You can download the app from appstore here.


Google Translate

Google Translate AR App

Google Translate AR App

  • Users can now point their device, with the app installed, towards text in unknown languages.
  • The text can be a part of newspaper and road signs as well.
  • The letters rearrange themselves on the screen to convert into a language of user’s choice.
  • They can select  from over 30 languages available.
  • You can download this app for iOS here and for android here.



WikiTude World Browser

WikiTude World Browser AR App

WikiTude World Browser AR App

  • You can now point your camera phone and look around via it to find nearby restaurants,ATMs, landmarks and other significant locations.
  • These are particularly, very helpful when you visit a new city or country.
  • Once, you scan surroundings, a list of categories to browse through is presented.
  • Social networks are also included, so you can find a friend in vicinity.
  • Download the app here.




LayAR AR App

LayAR AR App

  • With LayAR , you can easily find services around you.
  • The app uses their meta data to enable the user to click on the icons which pop up when in AR mode to view more information.
  • If one clicks on a hotel they’ll get a description, customer reviews and prices as well as a link to their booking site.
  • You can download the app for iOS here and for android here.



Augmented Car Finder

Augmented Car Finder AR App

Augmented Car Finder AR App

  • It uses AR , 3D Google maps and radar to keep track of your parked vehicle.
  • It uses your camera to search for your vehicle and give you directions to it.
  • Not just that, it also has Auto track mode to locate car if it gets stolen.
  • It can manage upto 3 cars.
  • Also, have parking meter alarms.
  • Download here for iOS.



SpecTrek AR App

SpecTrek AR App

  • It is a fun, ghost hunting game, which requires a camera phone and GPS.
  • Using SpecTrek app, you can move your camera around and virtual ghosts will appear nearby.
  • You can then, catch those ghosts by some ghost-busting options that appear on screen.
  • Download here for android and here for iOS.



Color Grab

Color Grab AR App

Color Grab AR App


  • This app is useful for people with artistic bent.
  • You can launch app and point it to desired object.
  • It lets you capture any new color that you witness and store it for later use. It records the RGB and hex values of the color.
  • You can also share them.
  • Graphic designers could put it to good use.
  • Download here for android.



Science AR apps

Science AR apps

Science AR apps

  • This is a educational app for elementary school kids.
  • This app works in conjunction with Science AR posters. When the screen of device is pointed towards the AR poster, digital contents  like video and graphics is played to make learning fun.
  • The posters have be downloaded separately.
  • Download here for iOS.




Augment AR App

Augment AR App

  • Augment app is an enterprise AR platform used by ecommerce sites.
  • It allows their users to test, how a product will look like at their home or desired location visually in actual dimensions.
  • The product could be an almirah , a pair of shoes , a chair or any other complex or simple object.
  • Download here for android and here for iOS.

Comment and share this post if you like it and want us to add more posts like this.


Graphics in Python


Write a program implementing basic graphic functionalities such as draw,getMouse, circle etc



Graphic Functionalities are implemented in python by importing graphics.py



Encrypt Text


Write a Program to encrypt text by replacing each character by it’s successor.


Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Addition Using Magic Methods


Using Magic Methods, overload the + operator so that length of varying units can be added. 



What are magic methods? They’re everything in object-oriented Python. They’re special methods that you can define to add “magic” to your classes, that is you won’t have to call them manually. They are called automatically behind the scenes.


Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Sum of Natural Numbers Using Recursion


Write a python program to find sum of natural numbers using recursion



A recursive function (DEF) is a function which either calls itself or is in a potential cycle of function calls.


Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Print ASCII Character


Write a python program to find ASCII character of a variable



ASCII (American Standard Code for Information Interchange) is the most common format for text files in computers and on the Internet. In an ASCII file, each alphabetic, numeric, or special character is represented with a 7-bit binary number (a string of seven 0s or 1s). 128 possible characters are defined.


Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Divisibility of 13 Using Lambda


Use anonymous and filter functions and print a list of numbers divisible by 13 from the list [79, 65, 54, 39, 555, 339,623,]



The lambda operator or lambda function is a way to create small anonymous functions, i.e. functions without a name. These functions are throw-away functions, i.e. they are just needed where they have been created. Lambda functions are mainly used in combination with the functions filter(), map() and reduce().


Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Iterators for xrange()


Write a iterator function to work like xrange()



The iterator protocol consists of two methods. The __iter__() method, which must return the iterator object and the next() method, which returns the next element from a sequence. Python has several built-in objects, which implement the iterator protocol. For example lists, tuples, strings, dictionaries or files.