Monday, July 3, 2017

Don't lose faith when you see others receive answers to their prayers

An elephant and a dog became pregnant at same time.
Three months down the line the dog gave birth to six puppies. Six months later the dog was pregnant again and nine months on it gave birth to another dozen puppies. The pattern continued.
On the eighteenth month the dog approached the elephant questioning, _"Are you sure that you are pregnant? We became pregnant on the same date. I have given birth three times to a dozen puppies and they are now grown to become big dogs, yet you are still pregnant.
Whats going on?"._
The elephant replied, _"There is something I want you to understand.
What I am carrying is not a puppy but an elephant. I only give birth to one in two years.
When my baby hits the ground, the earth feels it. When my baby crosses the road, human beings stop and watch in admiration, what I carry draws attention. So what I'm carrying is mighty and great."._
Don't lose faith when you see others receive answers to their prayers.
Don't be envious of others testimony. If you haven't received your own blessings, don't despair. Say to yourself "My time is coming, and when it hits the surface of the earth, people shall yield in admiration."

Six great confusions still unresolved

Six great confusions still unresolved 😄😂

1. At a movie theatre, which arm rest is yours?

2. In the word scent, is "S"  silent or "C"?

3. If people evolve from monkeys, why are monkeys still around?

4. Why is there a 'D' in fridge,
but not in refrigerator?

5. Who knew what time it was when the first clock was made?

And now sixer ....

 6. If pro and con are opposites, wouldn't the opposite of progress be...congress?

Vagaries of English Language! Enjoy!!!😀😀😀

- Wonder why the word funeral starts with FUN?

-Why isn't a Fireman called a Water-man?

- How come Lipstick doesn't do what it says?

- If money doesn't grow on trees, how come Banks have Branches?

- If a Vegetarian eats vegetables, what does a Humanitarian eat?

- How do you get off a non-stop Flight?

- Why are goods sent by ship called CARGO and those sent by truck SHIPMENT?

- Why do we put cups in the dishwasher and the dishes in the Cupboard?

- Why do doctors 'practice' medicine? Are they having practice at the cost of the patients?

- Why is it called 'Rush Hour' when traffic moves at its slowest then?

- How come Noses run and Feet smell?

- Why do they call it a TV 'set' when there is only one?

- What are you  vacating when you go on a vacation?

We can never find the answers, can we?

What is a notice period

Well Said!!😊☺️😉

Question - What is a notice period?

Answer - The notice period is the time when the company actually starts noticing you.(after submitting your resignation)

Letter written by an HR executive to his love:

Letter written by an HR executive to his love:
love-letter

Dearest Romio,

I am very happy to inform you that I have fallen in Love with you since the 14th of October (Sunday).


With reference to the meeting held between us on the 13th of Oct. at 1500 hrs, I would like to present myself as a prospective lover.

Our love affair would be on probation for a period of three months and depending on compatibility, would be made permanent.Of course, upon completion of probation, there will be continuous on the job training and performance appraisal schemes leading up to promotion from lover to spouse.

The expenses incurred for coffee and entertainment would initially be shared equally between us. Later, based on your performance, I might take up a larger the expenses. However I am broad-minded enough to be taken care of, on your expense account.

I request you to kindly respond within 30 days of receiving this letter, failing which, this offer would be canceled without further notice and I shall be considering someone else. I would be happy, if you could forward this letter to your brother, if you do not wish to take up this offer.

Thanking you in anticipation,

Yours sincerely,

More 

ME and MY BOSS

ME and MY BOSS !!

When I Take a long time to finish,
I Am Slow,
When my boss takes a long time,
He Is Thorough



When I don't do it,
I Am Lazy,
When my boss does not do it,
He Is Busy,

When I do something without being told,
I Am Trying To Be Smart,
When my boss does the same,
He Takes The Initiative,

When I please my boss,
I am apple polishing,
When my boss pleases his boss,
He is cooperating,

When I make a mistake,
I Am An Idiot.
When my boss makes a mistake,
He's Only Human.

When I am out of the office,
I Am Wondering Around.
When my boss is out of the office,
He's On Business.

When I am on a day off sick,
I Am Always Sick.
When my boss is a day off sick,
He Must Be Very Ill.

When I apply for leave,
I Must Be Going For An Interview.
When my boss applies for leave,
It's Because He's Overworked

When I do good,
My Boss Never Remembers,
When I do wrong,
He Never Forgets

Dedicated to all Salaried people..
More 

Funny Leave Application

Since I have to go to my village to sell my land along with my wife , please sanction me one-week leave.

More

Leave-letter from a CDAC employee

Leave-letter from a CDAC employee who was performing his daughter's wedding:
"As I am marrying my daughter, please grant a week's leave.."

More

Leave From H.A.L. Administration Dept:

Leave From H.A.L. Administration Dept:
"As my mother-in-law has expired and I am only one responsible for it please grant me 10 days leave."

Leave From an employee who was performing the mundan ceremony

Leave From an employee who was performing the "mundan" ceremony of his 10 year old son:

"As I want to shave my son's head , please leave me for two days..

More

Funny Half Day Leave

Employee applied for half-day leave as follows:
"Since I've to go to the cremation ground at 10 o'clock and I may not return, please grant me half day casual leave"

More

Thursday, June 22, 2017

Hilarious HR Interviews indeed

Best interview of the year.....Leaked the questions n answers for u :P Hilarious HR Interviews indeed : Interviewers ask routine questions to candidates ....Some weird answers.... Q - Tell us about yourself ? A - Yourself is a pronoun used when the subject and the object of the verb are you. 🤓 Q - What are your expectations ? A - Salary. 🤑 Q - What challenges did you face in your previous job ? A - Staying awake after lunch !! 😴 Q - Why do you want to join our company ? A - Nobody else is taking me. Your company is closer to my home.... 😋 Q - What attracts you to our company ? A - The receptionist !! 😍 Q - Why did you leave your previous job ? A - Previous company shifted the office and they didn't tell me the new address !! 🙄 Q -Are you willing to travel 20 days in a month ? A - Yes...but just don't ask me where I had gone...!!

Tuesday, June 20, 2017

Combining MVC, MVP and MVVM in android

Combining MVC, MVP and MVVM

There are often confusions about MVC, MVP and MVVM. These 3 patterns are all trying to address different concerns and do not have to be mutually exclusive. In a complex real world application, it is often beneficial to apply a combined pattern like below.

Wednesday, May 31, 2017

Android Studio shortcuts - Season #6

Android Studio shortcuts - Season #6

About Keymaps

Android Studio provides different keymaps (the mapping between shortcut keys and an action). You can see which keymap you are using in Settings->Keymap.

Thursday, May 25, 2017

Main aim of a HR Manager is to satisfy employee with minimum investments

Wife - Lets go for a dinner tonight.

Husband (HR Manager) - Ok.

Husband - Should we go to a cheaper restaurant ?

Wife - No. Let's go to Royal Palace hotel.

Husband - (silence for a minute) - Ok, See you at 7.O 'Clock.

On the way, around 6.30 pm...

Husband - Once upon a time, I had pani puri competition with my sister and she ate 30 pani-puris and defeated me.

Wife - What's so difficult in it?

Husband - Defeating me in Pani-puri eating competition is so difficult.

Wife - I can easily beat you.

Husband - Please leave it. It's not your cup of tea.

Wife - Let us have that competition right now.

Husband - So you want to see yourself defeated?

Wife - Let's see.

They both stop at a Pani-puri stall and start eating...

After about 30 Pani-puris the husband gave up.

The wife was also full, but to defeat her husband, she ate one more and shouted, *"You lose."*

The bill was Rs 50/- and wife was back home and happy as she won the bet.

Moral of the Story...

*Main aim of a HR Manager is to satisfy employee with minimum investments. Winning attitude with less investment, ensuring strong Return On Investment

Don't Marry a Software Engineer

Don't Marry a Software Engineer
> > HUSBAND - HAI DEAR,I AM LOGGED IN.
> > WIFE - HAVE YOU BROUGHT THE SAREE.
> > HUSBAND - BAD COMMAND OR FILE NAME.
> > WIFE - BUT I TOLD YOU ABOUT IT IN MORNING
> > HUSBAND - ERRONEOUS SYNTAX, ABORT,RETRY,CANCEL.
> > WIFE - HAE BHAGWAN !FORGET IT WHERE'S YOUR SALARY.
> > HUSBAND - FILE IN USE,READ ONLY,TRY AFTER SOME TIME.
> > WIFE - ATLEAST GIVE ME YOUR CREDIT CARD,I CAN DO SOME SHOPPING.
> > HUSBAND - SHARING VIOLATION,ACCESS DENIED.
> > WIFE - I MADE A MISTAKE IN MARRING YOU.
> > HUSBAND - DATA TYPE MISMATCH.
> > WIFE - YOU ARE USELESS.
> > HUSBAND - BY DEFAULT.
> > WIFE - WHO WAS THERE WITH YOU IN THE CAR THIS MORNING.
> > HUSBAND - SYSTEM UNSTABLE,PRESS Ctrl+Alt+Del, TO
> > REBOOT.
> > WIFE - WOULD YOU LIKE TO HAVE SOME SNACKS ?
> > HUSBAND - HARD DISK FULL.
> > WIFE - WHAT IS THE RELATION BETWEEN YOU & YOUR RECEPTIONIST.
> > HUSBAND - THE ONLY USER WITH WRITE PERMISSION.
> > WIFE - WHAT IS MY VALUE IN YOUR LIFE.
> > HUSBAND - UNKNOWN VIRUS DETECTED.
> > WIFE - DO YOU LOVE ME OR YOUR COMPUTER.
> > HUSBAND - TOO MANY PARAMETERS.
>
> > WIFE - I WILL GO TO MY DADS HOUSE.
> > HUSBAND - PROGRAM PERFORMED ILLEGAL OPERATION,IT WILL CLOSE.
> > WIFE - I WILL LEAVE YOU FOR EVER.
> > HUSBAND - CLOSE ALL PROGRAMS & LOG OUT FOR ANOTHER USER.
> > WIFE - IT IS WORTHLESS TALKING TO YOU
> > HUSBAND - SHUT DOWN THE COMPUTER.
> > WIFE - I AM GOING
> > HUSBAND - ITS NOW SAFE TO TURN OFF YOUR COMPUTER.

Android Studio shortcuts - Season #5





Android Studio shortcuts - Season #5

Android Studio provides different keymaps (the mapping between shortcut keys and an action). You can see which keymap you are using in Settings->Keymap.
It wouldn’t be practical to list the shortcuts for every keymap so the following will be used:
  • Windows: Default
  • Linux: Default
  • OSX: Mac OSX 10.5+

Enter vs Tab for Code Completion

Enter vs Tab for Code Completion
There is an interesting difference whether you use code completion with tab or with enter.
Using enter will complete the statement as you would expect. Using tab will complete the statement and delete everything forward until the next dot, parenthese, semicolon or space.
Shortcut (during code completion): enter or tab

Navigate to parent
If you are in a method that is overriding a parent class (e.g. Activity#onCreate()), this will navigate to the parent implementation.
If you are on the class name, it will navigate to the parent class.
Shortcut :
  • Mac: Cmd+U
  • Windows/Linux: Ctrl+U

Return to the Editor

Return to the Editor
A bunch of shortcuts will take you away from the editor (type hierarchy, find usages, etc.)
If you want to return to the editor, your options are:
  • Escape: This will simply return the cursor to the editor.
  • Shift+Escape: This will close the current panel and then return your cursor to the editor.
Shortcut :
  • Return and keep panel open: Escape
  • Close panel and Return: Shift+Escape

Jump to Last Tool Window

Jump to Last Tool Window
Sometimes, you return to the editor from a panel but find yourself having to go back to this panel. e.g. browsing find usages. With this, you can go back to a panel without your mouse.
Shortcut: F12 (might interfere with the OS’s default keybindings)

Hide All Panels

Hide All Panels
Puts the editor in some sort of full screen mode. Invoking the shortcut a second time returns all panels to their previous state.
Shortcut :
  • Mac: Cmd+Shift+F12
  • windows/linux: Ctrl+Shift+F12

Open a Panel by Its Number

Open a Panel by Its Number
You might have noticed that some of the panels have a number to the left of their name. This is a shortcut to open them!
Just in case you don’t see the panel names, click the box thing in the lower left corner of the IDE.
Shortcut :
  • Mac: Cmd+Number
  • windows/linux: Alt+Number

Parameter Info

Parameter Info
This is the same list of parameter names as the one that appears when you are writing a method call. It is useful when you want to see an existing method’s params.
The Parameter under your cursor will be in yellow. If nothing is in yellow, that means that the method call is not valid, probably something that is not casted right (e.g. a float in an int param).
When you are writing a method call and you dismiss it by accident, like I usually do, you can also type a comma (,) to trigger the parameter info.
Shortcut :
  • Mac: Cmd+P
  • windows/linux: Ctrl+P

The Switcher

The Switcher
So this thing is pretty much the alt+tab / cmd+tab of the IDE. It allows you to navigate to a tab or a panel.
Once it is opened, as long as you hold the ctrl key, you can navigate quickly by using the number or letter shortcut. You can also close a tab or a panel by pressing backspace when it is selected.
Shortcut: Ctrl+Tab

Context Info

Context Info
So this will show you where you are when your scope definition is out of the scrolling area. Usually, this will be the name of the class or inner class but it might also be the current method name.
Its better use, IMO, is to get a quick look at what the current class extends or implements.
It also works in xml files.
Shortcut: Ctrl+Shift+Q

Google Fit over view



Google Fit is an open ecosystem that allows developers to upload fitness data to a central repository where users can access their data from different devices and apps in one location:
  • Fitness apps can store data from any wearable or sensor.
  • Fitness apps can access data created by any app.
  • User's fitness data is persisted when they upgrade their fitness devices.



Responsible use of Google Fit

As a developer of fitness and wellness apps, you often collect and manage important user information. Keep these key principles in mind:
  • Always clearly explain to the user what data you will collect and why.
  • Honor user requests to delete their data.
  • If you read fitness data from Google Fit, you must also write the fitness data you collect to Google Fit.
  • Do not use Google Fit APIs for non-fitness purposes, such as storing medical or biometric data, selling data, or using data for advertising.
By using the API, you agree to the Google Fit Terms and Conditions.

Components

Google Fit consists of the following components:


Figure 1: Platform overview.
The fitness store
A central repository that stores data from a variety of devices and apps. The fitness store is a cloud service that is transparent to clients.
The sensor framework
A set of high-level representations that make it easy to work with the fitness store. You use these representations with the Google Fit APIs.
Permissions and user controls
A set of authorization scopes to request user permission to work with fitness data. Google Fit requires user consent to access fitness data.
Google Fit APIs
Android and REST APIs to access the fitness store. You can create apps that support Google Fit on multiple platforms and devices, such as Android, iOS, and Web apps.

The fitness store

The fitness store is a cloud service that persists fitness data using Google's infrastructure. Apps on different platforms and devices can store data and access data created by other apps. Google Fit provides a set of APIs that make it easy to insert data and query the fitness store.

The sensor framework

The sensor framework defines high-level representations for sensors, fitness data types, data points, and sessions. These representations make it easy to work with the fitness store on any platform.
Data Sources
Data sources represent sensors and consist of a name, the type of data collected, and other sensor details. A data source may represent a hardware sensor or a software sensor. You can define software sensors in your apps.
Data Types
Data types represent different kinds of fitness data, like step count or heart rate. Data types establish a schema through which different apps can understand each other's data. A data type consists of a name and an ordered list of fields, where each field represents a dimension. For example, a data type for location contains three fields (latitude, longitude, and accuracy), whereas a data type for weight contains only one field.
Data Points
Data points consist of a timestamped array of values for a data type, read from a data source. You use data points to record and insert fitness data in the fitness store, and to read raw data from a data source. Points that contain a start time represent a time range instead of an instantaneous reading.
Datasets
Datasets represent a set of data points of the same type from a particular data source covering some time interval. You use datasets to insert data into the fitness store. Queries to read data from the fitness store also return datasets.
Sessions
Sessions represent a time interval during which users perform a fitness activity, such as a run, a bike ride, and so on. Sessions help organize data and perform detailed or aggregate queries on the fitness store for a fitness activity.

Permissions and user controls

Google Fit requires user consent before apps can read or store fitness data. Google Fit defines OAuth scopes that map to three permission groups with separate read and write privileges: activity, location, and body. Each permission group grants apps access to a set of data types. Apps specify one or more of these scopes to work with fitness data, and Google Fit requests the corresponding permissions from the user.

Google Fit APIs

Google Fit provides the following APIs:
  • Android APIs for Android apps.
  • REST API for apps on any platform



Android APIs

The Google Fit APIs for Android are part of Google Play services and are supported in Android 2.3 (API level 9) and higher. Google Fit on Android consists of these APIs:
  • The Sensors API provides access to raw sensor data streams from sensors available on the Android device and from sensors available in companion devices, such as wearables.
  • The Recording API provides automated storage of fitness data using subscriptions. Google Fit stores fitness data of the specified types in the background and persists app subscriptions.


Google Fit diagram
Figure 1: Google Fit on Android.
  • The History API provides access to the fitness history and lets apps perform bulk operations, like inserting, deleting, and reading fitness data. Apps can also import batch data into Google Fit.
  • The Sessions API provides functionality to store fitness data with session metadata. Sessions represent a time interval during which users perform a fitness activity.
  • The Bluetooth Low Energy API provides access to Bluetooth Low Energy sensors in Google Fit. This API enables your app to look for available BLE devices and to store data from them in the fitness store.
  • The Config API provides custom data types and additional settings for Google Fit. For more information, see Custom Data Types and Disconnect from Google Fit.
Google Fit includes support for sensors on the mobile device and Bluetooth Low Energy sensors paired with the device. Google Fit lets developers implement support for other sensors and expose them as software sensors in Android apps. Sensors supported by Google Fit are available to Android apps as data source objects.


Reference : https://developers.google.com/fit/overview.
Demo available at Github -https://github.com/googlesamples/android-fit

Wednesday, February 22, 2017

Android Studio shortcuts - Season #4



Android Studio shortcuts - Season #4



Android Studio shortcuts - Season #3





Android Studio shortcuts - Season #3

About Keymaps
Android Studio provides different keymaps (the mapping between shortcut keys and an action). You can see which keymap you are using in Settings->Keymap.
It wouldn’t be practical to list the shortcuts for every keymap so the following will be used:
  • Windows: Default
  • Linux: Default
  • OSX: Mac OSX 10.5+

Android Studio shortcuts - Season #2

 Android Studio shortcuts - Season #2

 

About Keymaps

Android Studio provides different keymaps (the mapping between shortcut keys and an action). You can see which keymap you are using in Settings->Keymap.
It wouldn’t be practical to list the shortcuts for every keymap so the following will be used:

Android Studio shortcuts - Season #1



Android Studio shortcuts - Season #1

About Keymaps
 
Android Studio provides different keymaps (the mapping between shortcut keys and an action). You can see which keymap you are using in Settings->Keymap.
It wouldn’t be practical to list the shortcuts for every keymap so the following will be used:

Tuesday, February 14, 2017

Android Development Best Practices

Android Development Best Practices


The popularity of Android has created a humongous demand for applications. As developers, it’s our responsibility to ensure that users don’t have a bad experience while using our apps. There are a few Android development tips that we can follow to ensure that consumers get the optimum experience from the products. Lets take a look:

Thursday, February 2, 2017

Microsoft Bing Image Search API integration in android

Bing Image Search API
The Bing Image Search API provides a similar (but not exact) experience to Bing.com/Images (overview on MSDN). The Image Search API lets partners send a search query to Bing and get back a list of relevant images.

Tuesday, January 3, 2017

5 best libraries used during Android Application development

In the last year or so, Android development has really come of age. Android Studio with Gradle at its core is a dash of light after Eclipse. Besides that, there are quite a few open source libraries that we use on a daily basis.
Here is a selection of five of our favorite ones and a list of links where you can find others.
Top 5 Android libraries

Don't lose faith when you see others receive answers to their prayers

An elephant and a dog became pregnant at same time. Three months down the line the dog gave birth to six puppies. Six months later the dog...

 

G-Expo Template by Ipietoon Cute Blog Design