Friday, 22 July 2016

Top 5 Things You Need To Know to Learn NoSQL


Experts say that the world’s data is doubling every two years. This epic increase in Big Data has highlighted the limitations of reliance on traditional forms of data storage and management while also focusing attention on new methods for addressing the volume and variety and veracity of structured and unstructured data. In these discussions, one of the terms you’ve undoubtedly heard lots of buzz around is the expression “NoSQL.”



NoSQL databases grew rapidly in popularity over the last several years and the market outlook is great. In fact, NoSQL has emerged as the preferred choice for mobile and web development. So let’s stop and consider the most important points you should be considering about NoSQL. What is most critical to know at the current stage in this exciting market? In the following we outline the top 5 things you should know about NoSQL as it stands today.

NoSQL represents a deliberate shift away from relational DBs

NoSQL is a technical term that means either “No SQL” or “Not only SQL” and represents a paradigm shift away from sole reliance on relational databases. Relational databases (RDMS) emerged in the 1970s and were based on a set of data tables that could be queried and matched based on languages like SQL. These database architectures were ‘structured’ meaning that the data was organized in a uniform format and varied little over time.

NoSQL architecture has clear advantages

There are a number of types of NoSQL databases such as Key Value Pairs, Column Family Stores, Graph Databases, Document Databases. Key Value Pairs are the most popular and represent a fundamental method for representing data in computer systems and applications. In this schema a unique key exists for a particular object that needs to be returned; querying the database for that unique key will return results from whichever node has the object.
NoSQL is also much more scalable, data can be ingested without a predefined schema, and development is faster and code integration more reliable. This all translates into bigger and faster application changes in real-time.

NoSQL has a wide range of applications and use cases

There are any number of applications for NoSQL data storage and processing solutions today, ranging from user profile stores, to eCommerce sites, to mobile applications. Netflix is one high profile example of a major organization that migrated from Oracle to the NoSQL database Cassandra to help it better stream huge amounts of content to millions of customers worldwide each day. There are a growing number of possible use cases for how organizations today can leverage the benefits of NoSQL.


NoSQL is great for small businesses

The ability to deliver high-volume, high-variety online applications for a fraction of the cost that it took with traditional methods, is also one of the reasons why NoSQL technologies are an appealing solution for smaller organizations with limited budgets. Some of the top NoSQL databases on the market today include MongoDB, MarkLogic, Couchbase, CloudDB, and Amazon’s Dynamo DB. Each vendor has emerged with robust, scalable, cloud-based solutions that allow for rapid processing of real-time Big Data applications – all in ways that are affordable.

The NoSQL outlook is strong

The market is a formidable one with projected growth forecast to reach $3.4 Billion in 2020, representing a compound annual growth rate (CAGR) of 21% for the period 2015 – 2020. With the massive growth expected in the Internet of Things market and the enormous Big Data sets this will produce, small businesses would be well advised to start looking seriously at NoSQL and start taking measures to adopt the latest benefits of this technology.

Thursday, 21 July 2016

How to view webpage in fullscreen using jQuery and HTML5 API


Today I’m going to share how to view your webpage in fullscreen mode using jQuery and HTML5 API
Advantage of Full Screen Design is that it is equally functional both on desktop and mobile devices and across different browsers. This helps streamline programming while providing viewers with a polished, professional brand image that is consistent from big to small screen devices.
Other Benefits of Full Screen Design
  • Research shows that it helps boost conversion rates
  • Its clean formatting doesn’t distract with unnecessary page elements
  • Its imagery fuses intuitively with written content; and
  • Stunning full screen design imagery increases the likelihood that viewers will continue to explore the site instead of hitting the back button.

Step 1 : Include jQuery.js and Font Awesome Scripts in the Header

Include the below scripts in your header tag
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//use.fontawesome.com/aa03aaad2f.js"></script>

HTML code

<a href="javascript:;" class="fullscreen-toggle"><i class="fa fa-arrows-alt"></i> View Fullscreen</a>

jQuery and HTML4 API code to activate Fullscreen

$(".fullscreen-toggle").on("click", function() {
    document.fullScreenElement && null !== document.fullScreenElement || !document.mozFullScreen && !document.webkitIsFullScreen ? document.documentElement.requestFullScreen ? document.documentElement.requestFullScreen() : document.documentElement.mozRequestFullScreen ? document.documentElement.mozRequestFullScreen() : document.documentElement.webkitRequestFullScreen && document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT) : document.cancelFullScreen ? document.cancelFullScreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitCancelFullScreen && document.webkitCancelFullScreen()
});
The Document.fullscreenElement read-only property returns the Element that is currently being presented in full-screen mode in this document, or null if full-screen mode is not currently in use
  • document.fullScreenElement: the element which has been pushed to fullscreen.
  • document.fullScreenEnabled: notes if fullscreen is current enabled.

Resize images to a given width and height

This class can resize images to a given width and height.It can take a given GIF, JPEG and PNG image and resize it to a given width and height.The class can display the image as the current script output or save to a given file.The quality percentage of the resized image is a configurable parameter.


Example :


<?phprequire('../image_sizer.php');$img = new image_sizer();/**
 * setImage()
 * url : http://localhost/example1.php?img=https://upload.wikimedia.org/wikipedia/commons/c/c1/PHP_Logo.png
 *
 */
$img->setImage($_GET['img']);/**
 * setSize
 * New image size
 * $img->setSize(Width, Height)
 */
$img->setSize(100, 60);/**
 * show image
 *
 * $img->show(type, quality);
 * type : png, jpeg, jpg, gif
 * quality : image show quality 100 = 100%
 */
$img->show('png', 100);



 Download

Friday, 21 August 2015

If G is For Google, What Do the Remaining “Alphabets” in A-Z Mean?



The recent restructuring of the tech giant Google under a larger company Alphabet, that was announced on Monday, has come up with a lot of news and controversies associated with it. It’s being reported that BMW claims to own the Alphabet trademark and it’s the owner of Alphabet.com domain name.
The co-founders of Google  Larry Page and Sergey Brin, will now look after Alphabet while Google will be handled by the previous senior vice president Sundar Pichai, who will take over as the new CEO.

We bring to you the interesting story behind the name of Alphabet. Alphabet deals in a wide range of moonshot products and internet services. The origin of Alphabet is linked to the different services and products that are offered by Alphabet, previously Google. Find a list of the services and products offered by Alphabet in the alphabetical order below:

A – Alphabet / Android / AdSense / Analytics / Ara / AdMob / Alerts
B – Blogger / Boston Dynamics / Books
C – Calico / Cardboard / Capital
D – Drive / DeepMind / Design / DoubleClick
E – Earth / Express
F – Fiber / Fi / Flights / FeedBurner / Firebase / Finance
G – Google / Gmail / Glass / Groups
H – Hangouts
I – Images / Ingress / Inbox / Invite Media
J – Jump
K – Keep
L – Life Sciences / Local / Loon
M – Maps / My Business / Makani
N – Nest / News / Nexus / Now
O – Offers
P – Plus / Play / Photos / Picasa / Pixate / Patents
Q – (Nexus) Q
R – Refine / reCaptcha
S – Search / Shopping / SageTV /Stackdriver / Skybox / Skia / Scholar
T – Translate / Tango
U – N/A
V – Voice / Ventures / VirusTotal / Video
W – Wallet / Wing
X – X Labs
Y – YouTube
Z – Project Z / Zagat


Monday, 10 August 2015

Useful HTML5 Features: Semantic Tags



In this part of the useful HTML5 features series we are going to present you the new semantic tags that were introduced with HTML5 (most of them). We have provided a simple demo of a page that uses the HTML5 semantic tags.



The first one is the <header> tag. Its name seems simple enough but it is important to know that it can be used not only for the main header of the page. The <header> tag can also be used to indicate headers of different parts of your page such as the header of an independent article located in your website.
You usually insert into a header one or more headings (<h1> to <h6>) , some sort of a logo or information about the author of the post/article/document that will be discussed below it.
We include another new element which is the <nav> – it is best used for the primary navigation(s) of the page. It would not be a good idea to enclose every distant anchor on your webpage with the <nav> tag.
Next, we have the <aside> tag which indicates sidebars or content that is related to the DOM location where it is being placed but it is not essential to it. For example, if your readers are reading an article on a page, you can use it to show the user additional information about the article such as references, highlights from it, interesting facts and even to show the user related articles.
You can also see the use of <figure> . You should use it for code snippets, images, diagrams, charts and other visual content that is related to the place where it is placed but in the same time the enclosing content should still make sense without that figure. Inside the <figure> tag you can nest other tags such as <img> and you can add a caption which explains the figure through the <figcaption> element.
The <section tags indicates a generic section in the document. and it should not be used merely for styling purposes as it affects the document’s outline. The specification pinpoints that the theme of the section should be specified by inserting one or more headings in the section. An important difference between <section> and<article> is that the <article> tag should be a self-contained composition so that when you copy the article to a different place – it would still make sense and will not require the rest of the website’s contents. Like the tag’s name suggests, you could use <article> for blog posts, newspaper articles, comments, widgets and many more.
The <footer> could be used not only at the page’s end but it can be used throughout different sections and articles. It typically contains information such as information about the author, copyright notices, contact information, a map of the site, related information, a way to go back to the top among other possibilities.
The last tag we are going to discuss is <time> – you can add an attribute called datetime to it. This attribute supports a date and a time in the following format: YYYY-MM-DDThh:mm:ss. The element and attribute are machine-readable and can pinpoint times when an article was created, updated or when an event is going to occur. Here is an example of how you might use it: <time datetime="2015-07-14"> 14/7/2015 </time>

Thursday, 6 August 2015

Top statements from manager

Here are top statements from manger.
  1. Out of box ( Your idea is crappy, try again)
  2. Leverage (Subtle way of asking to take advantage of something. God knows what)
  3. WFH (Just being online sleeping at home doing nothing but not taking leave from work too, in short WFH)
  4. Revert back (It means bull crap in proper English. But I want a response to my query)
  5. ASAP (My managers are pissed off, do your work quickly or get fired)
  6. Please do the needful (I have no idea what/how/when to do, but you do it anyway on ASAP bases)
  7. Touch base (Warning: This is not an invitation to touch your boss’s base)
  8. Proactive (DO extra work you’re not paid for)
  9. I’m low on resources (Humanity is dead. We’re just resources. Sigh!)
  10. Bring to the table (Ohhh puleesse !!! don’t sit idle & sleep during my boring meeting. You can join me with your OOB ideas too)
  11. Keep me in the loop (Include me in every unnecessary email chain ever.)
  12. Network with people (You should waste your more time on doing unproductive work, that’s what you meant?)
  13. Core competencies (I just want to prove that you’re good at nothing. Hence, this spine breaking jargon that means nothing.)
  14. Give 110% (Subtle way of asking you to slog)
  15. Win-win (It’s a trap. Run)
  16. Ramp up (Develop extra skill that’s not your interest at all)
  17. What’s the ballpark number (I know you’ve no idea about the estimation, just throw a random number on me)
  18. Let’s take this offline (You’re never going to talk about this again)
  19. I don’t have the bandwidth (Not really, it means your manager can’t work. Why? Coz. Managers are not supposed to work)
  20. SWOT analysis (I’ve no idea what’s happening, so let me do my numbo-jumbo)
  21. Better visibility (It means you should show up in the office more often. Not sleep during the meetings and get your work done)
  22. My 2 cents (here is my advice that’s not even worth 2 cents. Take it anyways because I’m your boss.)
  23. Open door policy (Just because the door to my cabin is open, doesn’t mean I want to listen to your BS. But I want to get promoted to Sr. Manager, so I’ll rub this jargon in your face anyway.)
  24. Value-add (You’re not adding any value to the company. Time to look for a new job.)
  25. OOO (Dear manger, I will pray to god that you may forever be out of office)