My Empty Mind


Google Duplex: It was my son talking to me or Google Duplex?

June 09, 2018 0

It was my son talking to me or a Robot? 

Yes, that’s what this new technology may cause you to think in future.

Google is planning to introduce a new dimension to the world of Artificial Intelligence and Machine learning. It is planning to come up with fully automated system which will not only do your day to day work but also will talk to the people if required. It is an AI tool which will do actual conversation with people on your behalf. You just need to ask yours google assistant to take care of stuffs like booking a table in restaurant, a hotel or an appointment with someone, google assistant will get the things done for you.

What is Google Duplex?

Duplex is an Artificial Intelligence tool which is basically designed to help google assistant to be more intelligent. Google assistant is limited to the information provided on internet but Duplex will enable assistant to go beyond its limitation and talk to the people to gather information and to do the necessary stuffs like booking an appointment or a ticket. It’s an extension to the google assistant. Soon you may see this feature incorporated in the google assistant.

Though the technology is not fully ready at the moment but google is soon going to launch the beta version. This demo shows how google duplex can talk to somebody on your behalf.
Google I/O 2018
Google I/O 2018
With the help of Artificial Intelligence machines will talk to people, as per Mr. Pichai Google Wavenet models the audio to create natural voice closure to how human speak, this model can capture the richness of one’s voice. i.e. if trained properly the model can also speak like someone in future which may cause you to doubt whether you had a call with your son or it was just a robot on the other side.  Situations becomes even worse if a machines calls somebody on your behalf and makes a deal, what if the system got hacked and your AI agent calls your bank to lock your accounts?

Google's work on Artificial Intelligence and Machine Learning

Couple of months back Google brain released the open source software library TenserFlow. Google is also investing a lot on Artificial intelligence , Machine Learning and NLP. It was good to hear Mr. Pichai talking about Google research on retinopathy and cardiovascular risks using AI, but implementation of Artificial Intelligence in mimicking humans is certainly going to raise eyebrows.

Hence it becomes a valid question to ask, How the privacy and data protection will be taken care if we have these kind of Intelligent robots around us? however, Google is yet to address these points. The developer conference 2018 was just an introduction to the basic version of Duplex which google is planning to launch.


Once it is released we will have a detailed analysis of the features and risk involved in using it.

For now, just be ready for this interesting feature of Google Assistant which is going to hit the market soon. Hopefully this effort of google to give back some time to his users proves to be fruitful for both.

Let us know your views or feedback on Facebook or Twitter @MyemptymindC.

Read More

4 Proven ways to get AdSense approval in just two hours

June 02, 2018 0
If you own a blog and you want to monetize it then AdSense is the first option which will come to your mind.

I got AdSense approval in just 2 hours.

I blog about Technology; I am not writing this article to catch everyone's attention. When I was planning to apply for AdSense I came across many blog posts telling that it’s very difficult to get an AdSense approval, some mentioned that there are some tricks to get this done. Few also said that you need to be lucky to get this approval in one shot. 

I am writing this to clarify all the doubts and rumors which are spread on internet about the AdSense approval. I have seen reputed blogs claiming that they can get you an approved AdSense account or they can share you the tricks to get the approval. 
AdSense approval in just two hours, Proven ways to get AdSense approval in just two hours
I would like to clarify here that it’s not at all difficult to get the AdSense and it’s a myth that you need to get hundreds or thousands of visits per day then only you will get the approval. Neither it will take 10 months for approval nor it needs any trick. Do you really believe that you can trick google?

I am going to share with you the proven ways based on my personal experience, I got AdSense approval in 2 hours, yes just 2 hours. When I applied for AdSense on 31 May I got a message telling me that it may take 2-3 days for approval but only after 2 hours I got the approval email.

I have a Custom domain and I host it on blogger. I am writing down few key things which I followed and got the approval in almost no time. It took me just two hours, can’t say how much it may take for you but I am sure that it won’t take much time provided you follow the key things mentioned below: -

1.     Be Honest with google: You can’t trick google, you will get hundreds of blog post on internet which will tell you the ticks to get an AdSense approval. The very first thing you need to do is just ignore all of them.

2.   Give some time to your blog to mature: - I started my blog        few months ago, at that time I dint have much blog posts to showcase so I decided to focus on adding content before applying for AdSense. 

If your blog is very new then don’t apply for AdSense immediately, wait for couple of months, in the meantime focus on increasing your blog content.

3.   Respect the copyright rules: - DONT copy the content. Always come up with your original work.

4.   Focus on adding good, authentic and original posts: - Instead of focusing on traffic. Just focus on adding some quality post to your blog.

You don’t need to be over smart, all you need is to be honest and a little bit patience.

These are the basic proven things which you need to follow. Trust me you will also have your AdSense approved in a very short span of time. 

All the best. 

Let us know your views or feedback on Facebook or Twitter @MyemptymindC.

Read More

New iPhone Release (Sept 2018) VS iPhone X: Features, Specification and Rumors

May 21, 2018 0

With September coming closure discussions and rumors has put iPhone in the spotlight again. This autumn Apple Inc. may come up with three to four new release of iPhone as per the January latest update.

There has been widespread speculation about the release of new iPhone, its name, price, specification and design. There also has been rumors that Apple will stop the “X” version as it was a special launch for the 10th anniversary of the smartphone and will now continue with names iPhone 9, 9+ and so on. Fans across the world are super excited for the new release which is to be unveiled in September 2018.
Next iPhone Release (Sept 2018) VS iPhone X: Features, Specification and Rumors
Apple may launch the successor of iPhone X as iPhone X+, iPhone XI or iPhone 9 but it will certainly be an advanced version in terms of future mobile technology. iPhone X was released with a price - starting at £999/$999 making iPhone X a bit costly to fit into a middle class budget, iPhone 8 and 8 Plus were priced at £699/$699 and £799/$799. There were narratives on the decrease in sale of iPhone X in Asia and Europe blaming on its hefty price so the new releases are expected to be of the same range if not less.

iPhone X is equipped with many future technologies like wireless charging, FACE ID, Animoji. The device was praised for the display, Animoji, build quality and camera but at the same time many fans are ambivalent about it because of the notch and Face ID(requires direct eye on screen). Face ID biometric unlocking system shows a dubious behavior when tested on identical twins. A Vietnamese firm Bkav announced in a blog that it had successfully created a mask that tricked Face ID unlocking system, it has also been challenged by hackers and mask makers. The new release is expected to fix the above issues.

As far as Camera is concerned, iPhone X camera has received positive feedback for working well in low-light, it has received a score of 97 putting it behind the Google Pixel 2(98) and Samsung's Galaxy S9+ smartphone(99) and into joint second place with the Huawei Mate 10 in the DxOMark mobile overall rankings. So there could be no significant improvement in terms of camera quality.

Some issue which were reported in iPhone X:

1. Difficult one handed use of iPhone X: when iPhone 5(4 inch)
was launched Apple came up with an advertisement showing a perfect size mobile phone which can be operated easily with one hand but after iPhone X (5.8 inch) it’s for sure that now they want everyone to forget that commercial

2. Screen becomes unresponsiveness and camera flash fails in cold weather However former has been fixed (quoted from Wikipedia)

    3. Multiple users have reported that the display often become unresponsive, it usually happens during the call and users are forced to restart the device.

Successors of iPhone X by whatsoever name it will be called but it is certainly expected to have features better than the existing one and hopefully it will address the issues which were reported in iPhone X. As per the latest update the new iPhone release is expected to have better battery, RAM, processors and display.


iPhone X had the resolution 2436 x 1125(highest in the iPhone series) and pixel density 458 pixels per inch. It is least likely that Apple will go higher than 458 ppi for September 2018 release. However there are rumors that rear camera with a 3-shot lens will be introduced.


The new releases are expected to be of similar price range if not less. There has been widespread speculation about launch of a low budget cheaper model to attract customers. There was discussion on Apple sourcing the screen from LG rather than Samsung to get cheaper hardware components to cut down the final price of the device, rumors are also there about removal of wireless charging feature to bring the price further down.

Face Id and Touch Id:

Next iPhone Release (Sept 2018) VS iPhone X: Features, Specification and Rumors
img src:-
iPhone Touch ID display is about placing your finger on the display to scan it, instead of the Home Button. According to the Investor Apple is planning to launch three new iPhones with Face ID this year

The company is doing researching in putting in-screen Touch ID fingerprint scanner into the display(filed a patent on Touch ID display in January 2013)


Often iPhone X is ranked below iPhone 8 and Samsung's Galaxy S8 and Note 8, due to shorter battery life. The next release of iPhone is expected to fix  the battery issue.

As reported on MacRumors
According to Kuo, iPhone X Plus is expected to have up to a 25 percent larger battery capacity of 3,300-3,400 mAh vs. iPhone X. 

Kuo adds that Apple has settled on a two-cell, L-shaped design for the second-generation iPhone X and iPhone X Plus battery, compared to a single-cell, L-shaped design that could have yielded 
up to 10 percent additional capacity.


The iPhone X has 3GB RAM. According to Kuo iPhone X Plus will have an increased 4GB of RAM.


5G networks are expected to roll out in UK after 2020. iPhone X plus is not expected to have 5G support though we may see some basic compatibility for 5G services.


Successors of iPhone is expected to have a bezel-free design, Face ID camera, and no Home button. Facial recognition sensors can be embedded in the display itself according to Digital Trends.


As per Nikkei Apple is planning to launch both LCD handset and OLED(organic light-emitting diode display) handset. LCD version will be the cheaper. OLED handsets may be release in two sizes: one about 6.3 inches long and the other 5.8 inches.LCD phone will probably have a metal back and may not have wireless charging in order to cut down the cost.

According to reports MacRumors, there may be two LCD-based iPhones release in 2018. One of these LCD models can be 5.7in to 5.8in, and the other from 6.0in to 6.1in.


Along with black and silver Apple may release a gold color handset option. Photos of a gold iPhone X as posted by Ben Geskin appear to have leaked out, though it not reliable but it may be released in September 2018 as iPhone X plus.  

Next iPhone Release (Sept 2018) VS iPhone X: Features, Specification and Rumors
Image via Benjamin Geskin

What feature are you are expecting in the next generation iPhone? Let us know your views on Facebook or Twitter @MyemptymindC.

Read More

Capture bad records while loading csv in Spark

Bitcoin : A simple explanation in layman terms

January 07, 2018 0
Bitcoin has become a buzzword now-a-days. There has been a remarkable surge in price of bitcoin from a few dollars in 2010 to over $19,000 each in the last couple of years, so whats so special in bitcoin??
Bitcoin : A simple explanation in layman terms
Why Bitcoin and what so special about it?
  1. A currency which never reveals the identity of the owners, this reason makes bitcoin so popular, and this only is the reason for getting this currency banned in some countries 
  2. Bitcoin is not regulated by government or any bank, making it impossible for the government or any third party to control or manipulate it.
  3. New Bitcoin can be mined by anybody.

What is Bitcoin? 

Bitcoin Transaction per Month
Bitcoin is a decentralized concurrency that uses rules of cryptography for regulation and generation.  It has a market cap of 21 billion coins causing their production to decrease and making it more valuable with time. As of now more than half of bitcoins have been generated.

Bitcoin is very similar in certain aspects to the e-wallet which we have in our mobile. People keep money in online wallets like Paytm, Ola, payzaap, or any other mobile wallets for online shopping or for buying a service, same can be done with a bitcoins as well. You can also send bitcoins to someone you want, as if you are sending money to them. Though it has lots of similarity with other online wallet but it is very different from them in many aspects such as: -

  1. Common mobile wallets store money in terms of currency like rupees, dollars etc. But bitcoin is itself a unit.  
  2. Those currencies are government recognized, but Bitcoin is not regulated by any government or Bank. They bypass government and bank regulations.
  3. The bitcoin transaction is anonymous and secret, identity of people involved in transaction is not revealed.
  4. bitcoin wallet can be stored online or offline (in USB)

Some technical jargon used in the world of bitcoin: -

  • bitcoin: - A cryptocurrency.
  • Bitcoin: - The network and the software and the system which regulates manages and controls bitcoin.
  • Wallet: - A wallet is a small personal database that you store on your computer drive, on your smartphone, on your tablet, or somewhere in the cloud.
  • Block: - A bunch of transaction on the network,
  • Transaction: - Transfer of money from one wallet to another.
  • Block chain: It’s a ledger, a final entry or final summarized report. It is open to public and has the details of transaction. Network of computer running bitcoin software maintain these block chains . All bitcoin transaction are logged and made available to public. It records every transaction and the ownership of every bitcoin in network
  • Miners: - Control the network by verifying transaction, people who mine these coins are called miners. It can be mined by anyone who has a computer. bitcoin mining involves solving of complex mathematical problem. Miners ensure that the transaction is secure and is getting processed safely.

How to obtain bitcoins?

You can obtain bitcoin by the following three methods: -
  1. Purchasing it through a bitcoin exchange.
  2. Accept it as a payment of service or goods you offer.
  3. Mining new coins.
     "Mining" is a term used to refer the discovery of new bitcoins. Mining process is simply the verification of bitcoin transactions happening across the Bitcoin network.

Suppose you buy a book, a product or a service from an online store which accepts bitcoin and you pay the money in bitcoin. To check the authenticity of the bitcoin, miners begin to verify the transaction. All the transactions are grouped into boxes with a virtual lock on these boxes called "block chains."

Miners run software to find the key that will open that virtual lock. If the key is found the transactions are verified. The current number of attempts to find the correct key is 1,789,546,951.05, according to—a top site for the real-time bitcoin transactions. Miner gets a reward of newly generated bitcoins (perhaps 12.5 bitcoins) for finding the key.Every 210,000 blocks, or, roughly, every four years, the block reward is halved. It started at 50 Bitcoin per block in 2009, and in 2014 it was halved to 25 Bitcoins per block.

And as I said bitcoins can be mined by anybody, to do so you just need powerful computation engines with top quality hardware’s with that you can pitch into the Bitcoin to verify the transactions by doing complex mathematical computation to find the right key for the block. When any one miner succeeds in solving their math problem, they get to create a new block and receive a certain number of Bitcoins as a reward, known as “the block reward.” If You don’t want to invest much on purchasing new powerful machine, then you can join the network by adding your computer to the mining pool Pools are a collective group of bitcoin miners who pool their computer to mine bitcoin. Sites such as, Slush’s Pool allow small miners to receive portion of bitcoins if they add their computer to the group

However, In early years of bitcoin mining with personal computers was possible. Now, the network is very competitive so using specialized hardware is the only way to earn.
Many online wallets are available on internet where you don't have to maintain the bitcoin software on your devise though you can also download the software and manage it locally in your computer of device.

From where to buy bitcoins: -
There are many online bitcoin exchanges available where you can open your bitcoin Wallet account and start doing transactions. Zebpay is one of the android mobile bitcoin wallet. You can use the following :- 
my referral code- REF30118675
or link-
to get a free bitcoin wallet and earn free bitcoin worth Rs. 100.

Let us know your views or feedback on Facebook or Twitter @MyemptymindC.

Read More

Introduction to Apache Spark

Python or Scala for Apache Spark?

Java: Singleton Design Pattern

November 24, 2017 1

Singleton design pattern belongs to creational design pattern family. this pattern is used to create object. In this pattern only one object is created across java virtual machine (JVM) and this object can be used by all classes.
There are many ways we can implement this pattern.

1) Eager Initialization: In this method of creation, Object of class is created when it is loaded to memory by JVM. this can be done by assigning instance to reference variable directly.

 // Java code to create singleton class by   
 // Eager Initialization  
 public class SingletonTest   
  // public instance initialized when loading the class  
  public static SingletonTest obj = new SingletonTest();  
  private SingletonTest()  
   // code for private constructor  

2) Using Static Block : this is same as Eagar Initialization , the only difference is Object is created in static block. it will help to handle exception , if any occured.

 // Java code to create singleton class  
 // Using Static block  
 public class SingletonTest   
  // public instance  
  public static SingletonTest obj;  
  private SingletonTest()   
   // private constructor  
   // static block to initialize instance  
   obj = new SingletonTest();  

Read More