Posts

Familly tree

How to Trace Your Family Tree How to Research Your Roots A great way to start piecing together your family tree is to write down what you know. Trace back your earliest memories. Do you remember your great grandfather telling stories of his father? Write down the details, even if you aren’t sure of their accuracy. You can fact-check with your living relatives and other resources later. Locate family photo albums, journals, and letters. These will be helpful in answering questions you have and will allow you to identify people you want to know more about. Next, call your relatives. Chances are, someone in your extended family has already begun recording their side of the family’s genealogy. Gather stories, names, birthdays, hometowns, and details about the marriages of your ancestors. Now is the perfect time to live out any dreams you’ve had of being a journalist, because asking questions to your siblings, cousins, aunts, and uncles will help you collect stories and give you a p...

DISTRIBUTED CACHE

DISTRIBUTED CACHE What’s a Distributed Cache ? A solution that is “deployed” in an application (typically a web application) and that makes sure data is loaded from memory, rather than from disk (which is much slower), in order to improve performance and response time. That looks easy if the cache is to be used on a single machine – you just load your most active data from the database in memory (e.g. a Guava Cache instance), and serve it from there. It becomes a bit more complicated when this has to work in a cluster – e.g. 5 application nodes serving requests to users in a round-robin fashion. You have to update the in-memory cache on all machines each time a piece of data is updated by a request to one of the machines. If you just load all the data in memory and don’t invalidate it, the cache won’t be “coherent” – it will have stale values and requests to different application nodes will have different results, which you most certainly want to avoid. Or you ...

Introducing Windows Azure WebJobs (My senior research)

Image
Introducing Windows Azure WebJobs Best link as below:-   https://docs.microsoft.com/en-us/Azure/app-service/web-sites-create-web-jobs#acceptablefiles I'm currently running 16 web sites on Windows Azure. I have a few Virtual Machines, but I prefer to run things using "platform as a service" where I don't have to sweat the underlying Virtual Machine. That means, while I know I can run a Virtual Machine and put "cron" jobs on it, I'm less likely to because I don't want to mess with VMs or Worker Roles. There are a few ways to run stuff on Azure, first, there's IAAS (Infrastructure as a Service) which is VMs. Then there's Cloud Applications (Cloud Services) where you can run anything in an Azure-managed VM. It's still a VM, but you have a lot of choice and can run Worker Roles and background stuff. However, there's a lot of ceremony if you just want to run your small "job...

Understanding Oauth2 (you have a option of login)

Image
Understanding Oauth2 These days when you login to a site, you have a option of login with Facebook and Google . Ever Wondered, how does this login work? Well Answer is OAuth . OAuth grants third part services provides  permission to do certain things, For example, login in the above case. Lets discuss more on what OAuth is and how it works. OAuth(Open Authorization ) is a protocol for authorization. It allows limited access for a user from one site to another of certain protected resources. It allows sites to communicate with each other without giving your away your password. It uses Authorization tokens for communication between the sites. OAuth Roles Lets Under stand OAuth Roles in order to understand how it works. OAuth has following Roles : Resource Owner : It is used to grant access to the resources that are protected. We can say that it is the end User. It will be you who will be the resource owner in above case as you are giving a site permi...

Database Performance Tuning MUST Read

Database Performance Tuning Query Run Time A database is also a software and is subject to the same limitations as all software, it can only process as much information as its hardware is capable of handling. The way to make a query run faster is to reduce the number of calculations that the software (and therefore hardware) must perform.  To do this, you will need some understanding of how SQL actually makes calculations.     Table size: If your query hits one or more tables with millions of rows or more, it could affect performance.     Joins: If your query joins two tables in a way that substantially increases the row count of the result set, your query is likely to be slow.     Aggregations: Combining multiple rows to produce a result requires more computation than simply retrieving those rows.     Other users running queries: This is something you probably can’t control. The more queries running concurrently on a dat...

Java 8 (1.8) New Features

Java 8 (1.8) New Features - Oracle released a new version of Java as Java 8 in March 18, 2014.   - Java Platform, Standard Edition 8 is a major feature release.   Java 8 Programming Language Enhancements Java 8 provides following features for Java Programming: Lambda expressions, Method references, Functional interfaces, Stream API, Default methods, Base64 Encode Decode, Static methods in interface, Optional class, Collectors class, ForEach() method, Parallel array sorting, Nashorn JavaScript Engine, Type and Repeating Annotations, IO Enhancements, Concurrency Enhancements, JDBC Enhancements etc. Without Lambda Expression interface  Drawable{        public   void  draw();   }   public   class  LambdaExpressionExample {        public   static   void  main(String[] args) {      ...

When to use NULL and when to use an empty string?

1) It depends on the domain you are working on. NULL means absence of value (i.e. there is no value ), while empty string means there is a string value of zero length. For example, say you have a table to store a person' data and it contains a Gender column. You can save the values as 'Male' or 'Female'. If the user is able to choose not to provide the gender data, you should save that as NULL (i.e. user did not provide the value) and not empty string (since there is no gender with value ''). 2)A null value means no memory is assigned to object only a reference is created in stack . So a null value is memory efficient . Also a null value will throw a null pointer exception if we by mistake use the reference , on the other hand if we initialize with an empty string we might not know about this error early. We can use empty string if required for the code else we should initialize string with null.