Techhgeekz ™

Thursday, 9 January 2014

Facebook buys Bangalore based Indian Start Up

Facebook has acquired year-old Indian startup Little Eye Labs to help concentrate on mobile development for the social media platform.

As part of the acquisition, Little Eye Labs will relocate to Menlo Park, California, the home of Facebook's headquarters.

"From there, we'll be able to leverage Facebook's world-class infrastructure and help improve performance of their already awesome apps. For us, this is an opportunity to make an impact on the more than 1 billion people who use Facebook," the startup wrote on its site.

The transaction also means that Little Eye Labs has stopped accepting any new signups to its service.

Its core business revolves around developing performance analysis and monitoring tools for Android developers. This includes tracking and monitoring how apps and processes consume handset resources such as power, memory, storage; the impact of processes and active hardware like GPS and Wi-Fi and events and logs at the application and system level.

Although no new customers can sign up for these features, Little Eye Labs has promised a free version of its existing offering to its current customers, which will work up until June 30.
A source familiar with the deal told Tech Crunch that the acquisition was made in the range of $10 million to $15 million.

Monday, 30 December 2013

Generics in Java ..!

Generics :-

Enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. Much like the more familiar formal parameters used in method declarations, type parameters provide a way for you to re-use the same code with different inputs. The difference is that the inputs to formal parameters are values, while the inputs to type parameters are types.

Hope this Quote would resolve yur  Fuzzy about Generics ..! ;) 

Code that uses generics has many benefits over non-generic code:

Stronger type checks at compile time.

A Java compiler applies strong type checking to generic code and issues errors if the code violates type safety.

 Fixing compile-time errors is easier than fixing runtime errors, which can be difficult to find.

For in Depth about Generics visit :-

Monday, 2 December 2013

String Reverse Using Recursion in Java!!

class main

{

public static void main(String args[])

{

string str="hey";

 reverseStr = reverseRecursively(str);

public static String reverseRecursively(String str) 

{
        //base case to handle one char string and empty string
        if (str.length() < 2) 

{
            return str;

  }
        return reverseRecursively(str.substring(1)) + str.charAt(0);
 }
  System.out.println("Reverse String in Java using Recursion: " + reverseStr);

} 

}


Tuesday, 29 October 2013

why the string is immutable?

String pool (String intern pool) is a special storage area in Java heap. When a string is created and if the string already exists in the pool, the reference of the existing string will be returned, instead of creating a new object and returning its reference.

The following code will create only one string object in the heap.
String string1 = "abcd";
String string2 = "abcd";



Monday, 30 September 2013

Calling a constructor from another constructor in same class using "this" keyword:-

class Flower

{

int num = 0;

 String s = new String("null");

 Flower() //Default Constructor

 { 

 this(1000,"Hello");     // calling constructor with 2 parameters

 System.out.println("Danger ! Inside the default constructor");
   }
  Flower(int x, String y)

 {

//constructor call must be the first statement in a constructor !!

 this(500);          //call to integer parametered constructor

  //! this(s);        // Can’t call two constructors within a unit!
 
  this.num = x ;      //simple num = x; is also right

    s = y;

   System.out.println("Danger ! Inside the double barelled constructor");

   System.out.println("values >>  [ "+num+" | "+s+" ]");
    }
   Flower(int x) {
   this("Buhaha");     //call the constructor with string parameter
   this.num = x ;      //simple num = x; is also right 
   System.out.println("Danger ! Inside integer constructor");
   System.out.println("values >>  [ "+num+" ]");
    }
   
    Flower(String y) {
    this.s = y ;    
    System.out.println("Danger ! Inside String constructor");
    System.out.println("values >>  [ "+s+" ]");
    }
}
public class ConstrInThis {
    public static void main(String[] args) {
        Flower rose = new Flower();
    }
}
 

Rules to be followed while using "this" keyword for calling another constructor in same class:-

You can call one constructor from another in the same class, or call the super class, with the following restrictions:

  1. It has to be the first line of code in the calling constructor.
  2. It cannot have any explicit or implicit reference to this. So you cannot pass an inner class (even an anonymous one if it references any instance methods), or the result of a non-static method call, as a parameter.
 

Friday, 27 September 2013

Program to count word from user entered text:-

#include <stdio.h>
void main()
 {
  char a[100],b[10],t[20];
  int i=0,n=0,w=1;
  printf("\n Enter The String : ");
  scanf("%s",a);
  printf("\n Enter The Word Which Count : ");
  scanf("%s",b);
  while(a[i]!='\0')
  {
  t[n]=a[i];
   if(a[i]==' ')
  {
   t[n]='\0';
 
 //printf("\n %s",t);
   n=-1;
   if(strcmp(t,b)==0)
   w++;
    }
    i++;
    n++;
    }
    printf("\n %s comes %d times ",b,w-1);

   
}


Sunday, 22 September 2013

                                                      Is Learning code a New Mantra ?!

learn to code

Is it really important to learn to code, even though you don't intend to pursuit a career in computer programming?

Some people agree, while others think that it's just a hype. I somewhat tend to agree with the former group. Even though learning to code might not help you directly in your career, it will improve how you think about problems and make you a better computer user, if nothing else.

Whether you agree or not, it's true that some of the most influential (and rich) people in the recent history had something to do with software development. Below is a video prepared by code.org which features Bill Gates, Mark Zuckerberg and several others. The theme is "Every student in every school should have the opportunity to learn to code."



Let's See what the Experts say ab it!:



With the advent of Web 2.0, interactive e-learning has become fun and immersive. The best part is being able to learn programming right from within your web browsers! Below is a quick round-up of extra ordinary resources for learning and polishing your programming skills.

The criteria used here is that only sites with free courses, which are either interactive or provide an instructor lead sessions are included.


Introduction to Programming:-


Code Academy
: This is perhaps the most famous of "learn to code" web sites. The main page of this web site starts interactively, and before you know it, you start programming! This is a good resources for coding in general but more importantly, there are several "track" courses such as those for learning JQuery, JavaScript, PHP, Python and Ruby. The non-track courses cover a diverse set of topics such as CSS Selectors and Evernote API.

Code Academy is a nice resource if you already know programming and would like to teach others!



Code School: Code School is really meant for people who already know the basics of programming and want to take the next step by building expertise in web technologies. There are courses available on Git, Backbone.js, SASS, Rails, JQuery and several others.




Learn Street: Like Code School, Learn Street also focuses on JavaScript, Python and Ruby.



Improving your programming skills


Code Learn: If you have done web development in the past, you would know that Ruby on Rails is getting popularity day by day. The aim of Code Learn is to teach you Ruby on Rails.

AppShed: With smart phones, "mobile application development" has made a number of people rich. The aim of AppShed is to teach you mobile application development.

Learn X in Y minutes: This is a community driven site, which provides an extremely quick overview of different programming languages. This could be very useful to get a quick grasp of common construct in a new language.