Sunday, December 11, 2011

I agree with Kolaveri .. But What is Kolaveri?


Ans.  From Last  couple  of  weeks  we  all  are  listening Kolaveri Song but what  is exactly meaning  of  kolaveri?  What is  Kolaveri Di. Let me clear to  you  meaning  of  Kolaveri Di.  It  is a  Tamil  word so its  understood  we  north Indian guy does not  know  about  meaning  of  Tamil word because of  Bollywood  love. Meaning of Kolaveri is “Anger, Failure some type  of  that  guy  who  failure in love”  so  singer  want  to  say  why  this  failure  in  love  why  this Kolaveri Di”  Nice  na ..  yes  I  also  was  very confused about  this  word  but  now  we  both  are clear.
 Hey  I  have  also  one  very interesting news about  Kolaveri guy, Dhanush  who is sun –in-law of super duper star Rajnikanth. You  now  funny   news  is  this  that  Last  Year, he won the  National Award of Best Actor of Tamil Movie “Aadukalam” and  no body   know  him  but  know  all  india  know  him  as  a Kolaveri Guy, just  because  of  this  song.
So  open  your song  folder  and  lets  listen “Why this Kolaveri Di”…

Kaps Hasija
“Ceo of LogicCafe

Tata Ne Tata Ko Tata Kaha… But Why?

Last year a five member committee was organized to find new Tata for 80 billion Tata empires. The mystery of that committee ends with Cyrus Mistry. Ratan Tata expected to leave end of the 2012, but why? He has a good ability to run this empire for more 2-3 years. Mr. Tata said: “The appointment of Mr. Cyrus P Mistry as Deputy Chairman of Tata Sons is a good and far-sighted choice. According to first post That’s show Mr. Tata happy to leave the empire officially. But Why? The answer is that he knows now a young blood needs to run India’s most valuable empire.

Friday, November 25, 2011

How To Buy Akaash Online?

Actually we can't buy akaash online yet before december. so if you want to buy akaash we need to book first from www.aakashdatawind.com Here We can find Book Now Button and we need to submit our basic information like email,phone no. etc. After some time they will contact us. You can also book from mobile '+1800 180 2180' toll free no.


Logic Cafe  Team
www.logiccafe.in

Monday, October 31, 2011

Top 10 Programing language

1. Java
2. Asp.net
3.Php
4.Java Script
5. C#
6. C++
7.rubby
8.python
9.j query
10. ajax

Saturday, October 1, 2011

get anyone information with facebook id

Here is a exp. of code to get information of facebook user with his/her id

Ex. i want to know information of user id 100002970434670

User ID100002970434670 is ?.

User ID 100002970434670 is ?.



----------------------

output:

User ID 100002970434670 is kapi Area

Monday, August 8, 2011

Make Download File In Blogger Blog

Hii friends.. i found very good way to post With download files in our blog. i had lot of search regarding that but finally i did it..

.


this is link where u can upload ur files and this site generate a link for ur blog where you can set given link in ur post

http://uploading.com/

Sunday, August 7, 2011

Get FaceBook Friend And Send Message by Selection.

Hello friends. some of last few days i did lot of search regarding facebook API. My requirement was that i need to get All facebook friend list of login user and send invitation of my web site to selected users. so finally i made a little tutorial to full fill my requirement..

Please download this project and set "FbFriend to as stratup Page"

Download Link:

FBFriends.zip - 7.2 KB


Choice Is Yours

Sunday, July 31, 2011

Face Book Login Connect and Save User information into database



Step 1
--------------------------------------------------------------------------------------------------------------------

First  Create  Your  App  ID  on Following  Link

http://developers.facebook.com/setup/

  Site Name: Test Website
  Site URL:  http://localhost:8353/LSATWebsite/( for  Local Test  set  your  own local host  like  this  is  mine)
 
Site URL:  www.mywebsite.com (for  live Test)

   click  on  create app
-----------------------------------------------------------------------------------------------------------------------

Step 2
//  copy  this  code before  Head tag



Step 3

//  Set  this  login  div  where  you  want  set  your  facebook  login button


   

                                            data-off="OFF" perms="email">
                   

                   

                   

                   
                   
                   
                   

------------------------------------------------------------------------------------------------------------------------
Step 4
Index  Page  Code

page  load()
{
FacebookLogin();
}

#region FacebookLogin

    private void FacebookLogin()
    {
        if (Request.QueryString["loginby"] != null)
        {
            if (Convert.ToString(Request.QueryString["loginby"]) == "fb")
            {
                String AppID = "fbs_247350651959904";

                if (Request.Cookies[AppID] != null)
                {
                    try
                    {
                        Session["UserID"] = null;
                        string token = Request.Cookies[AppID].Values[0].ToString();
                        string userid = Request.Cookies[AppID].Values[5].ToString();
                        int charCount = (userid.Length - 1);
                        string finalUser = userid.Substring(0, charCount);
                        string fbUser = "https://graph.facebook.com/" + finalUser + "?access_token=" + token;
                        //Parse the JSON that is returned:
                        JObject u = JObject.Parse(Convert.ToString(requestFBData(fbUser)));
                        string userName = "";
                        if (u["link"].ToString().Contains("profile.php?id="))
                            userName = u["link"].ToString().Replace("http://www.facebook.com/profile.php?id=", "").Replace("\"", "");
                        else
                            userName = u["link"].ToString().Replace("http://www.facebook.com/", "").Replace("\"", "");

                        // Now get their email address and first name (we will need it later).
                        UserClass objUser = new UserClass();

                        //objUser.Email   = u["email"].ToString().Replace("\"", "");
                        //  objUser.password  = Membership.GeneratePassword(10, 6);
                        objUser.FacebookToken = token;
                        objUser.FaceBookId = userName;
                        objUser.Name = u["first_name"].ToString().Replace("\"", "");
                        //objUser.lstname  = u["last_name"].ToString().Replace("\"", "");
                        objUser.OutputMessage = "http://graph.facebook.com/" + finalUser + "/picture";
                        //string userFacebook = u["link"].ToString().Replace("\"", "");
                        Session["UserID"] = objUser.LoginByFacebookToken();
                        if (Session["UserID"] != null && Session["UserID"] != "")
                        {
                            objUser.UserID = Convert.ToInt32(Session["UserID"]);
                            Session["FirstName"] = "Hi, " + objUser.Get_Username() + " Good Luck With Your Lsat.";
                            Session["FbLogin"] = "True";
                        }
                        FormsAuthentication.SetAuthCookie(userName, true);
                        Response.Redirect("index.aspx", true);
                    }
                    catch { Exception e; }
                }

            }
        }
    }

    object requestFBData(string action)
    {
        WebRequest req = HttpWebRequest.Create(action);
        WebResponse resp = req.GetResponse();
        StreamReader sr = new StreamReader(resp.GetResponseStream());
        string results = sr.ReadToEnd();
        sr.Close();
        return results;
    }
    #endregion

//  i  am  using  user  class  to  save  data  on  my  databse

------------------------------------------------------------------------------------------------------------------------

Step 6
Log  Out Page  Code

page  load  ()
{
 LogOut();
}

 private void LogOut()
    {
        if (Request.QueryString["logout"] != null)
        {
            if (Convert.ToString(Request.QueryString["logout"]) == "fb")
            {
                String AppID = "fbs_247350651959904";

                 if (Request.Cookies[AppID] == null)
                 {
                     Session.Abandon();

                     Response.Redirect("index.aspx");
                 }
                 
            }
        }
    }

Set Enter Key With Jquery

Wednesday, July 6, 2011

Get Session value With Jquery In Asp.net


    
   

$(document).ready(function () {
$("#ContentPlaceHolder1_Btnpos​t").click(function () {

var val = '<%=Session["UserID"]%>';

if (val != '') {

return true;
}
else {
alert('Please Login First Before Post Comment.');
return false;
}

});
});

Friday, April 15, 2011

Change your Gmail Background by your Own Image.


New Sexy  Features From Gmail.




Change your Gmail Background by your Own Image.


Following are Steps To set background Image.

1. Go To Settings.
2.Select Themes  Tab.
3.Select Create your Own Theme.

4.Select  Background Image.
5.Save.
6. Close.
7. Enjoye.........

Choice is Yours.........Cheers.


Logic Cafe Team

Difference between C & C++.


Difference between C & C++.

Introduction:- C programming language was designed by Dennies Ritchie in the early 1970s at Bell Laboratories. It was first used system  implementation language for the nascent Unix operating system. The main reason to devised C was to overcome the limitations of B. It was Derived from the type-less language BCPL (Basic Combined Programming Language). C was the evolution of B and BCPL by incorporating type checking. It was originally intended for use in writing compilers for other languages.


Introduction:- C++ was devised by Bjarne Stroustrup in 1983 at Bell Laboratories. It is an extension of C by adding some enhancements to C language. Bjarne combined the simula's(a language designed for making simulations, created by Ole-Johan Dahl and Kristen Nygaard) features of object oriented and the efficiency of C. The new features added to language are templates, namespaces, exception handling and use of standary library. 


1.C is a procedure oriented language 
             C++ is a object oriented language.
2. C has a predefined data types and user cannot create  its own data type.
           where c++ can create its own data types through classes.
3. C uses printf and scanf  function for read and write the data.
           In C++ ,we uses cout, cin and bitwise left sift and right shift operator for read and write the data.
4. C uses header file stdio.h for input/output.
            In C++,we uses iostream.h for input /output.It is a stream based input/output.
5. C does not  uses class.
          In C++,we mostly uses class. there are in  data member and member function. it also used public and private i.e. acess specifiers.
6.  C can't use polymorhphism.
          In C++, uses polymorhphism.that means poly - many and marph- form.It ability to take more than forms.
7. C  can't uses inheritance.
          in C++,It has more important concept of inheritance .It provide the reuseablity.
8. C  can't uses  constructor ,deconstructor.
          In C++,we use the constuctor and deconstuctor normaly.It is automatically called when the object is created.
9. C uses malloc ,calloc and free for dynamically memory allocation.
          In C++, we uses new and delete for memory allocate and dellocate.
10. C uses 32 keywords.
           In C++ uses 48 keywords.
11. C has top-down approach.
         In C++ has bottom up approach.
10. C has no security.
            In C++ there are a  lot of security concept for securing the data like Data hiding and Abstraction.
11. C has no use of Encapsulation concept.
           In C++, there are used the concept of Encapsulation ,that  wrapping up of data into a single unit .
12. C has not used friend function.
           In c++, use the friend function that access the private data members .
13.C  we can intialize  the variable above the main function  or anywhere.
           In C++,we can't intialize the variable globel. we can only intialize the variable where we need in the function.
 14.C ,it has not use of scope resolution.
           In c++,we almost use the scope resolution. It shows that the function contain in which class.The symbol of scope resolution "::"
 15.C  the extension is .c for saving in turbo c.
             In C++ ,the extension is .cpp . 
                           
                            Harish  Garg.
                   Software garg. at Landra.
                    hanugargmca@gmail.com


Choice  is Yours...Cheers


Logic Cafe Team

Thursday, April 14, 2011

FaceBook KeyBoard Shortcuts with Mozila Chrome


Alt+1 : Go to Home
Alt+2 : To view the Wall tab
Alt+3 : To pull down the Friends Requests list
Alt+4 : To retrieve the Messages list
Alt+5 : To call out the Notification list
Alt+6 : Account setting page
Alt+7 : Account privacy configuration.
Alt+8 : Facebook fans group page
Alt+9 : Facebook?s Statement of Rights and Responsibilities
Alt+0 : Facebook Help Center
Alt+m : Create new message
Alt+? : Cursor in the Search Box

Choice is Yours....Cheers


Logic Cafe Team

Monday, April 11, 2011

FaceBook KeyBoard Shortcuts with Mozila FireFox

hii  here  is a facebook keyboard  shortcuts with Mozila   FireFox....

Shift+Alt+1 : Go to Home
Shift+Alt+2 : To view the Wall tab
Shift+Alt+3 : To pull down the Friends Requests list
Shift+Alt+4 : To retrieve the Messages list
Shift+Alt+5 : To call out the Notification list
Shift+Alt+6 : My Account setting page
Shift+Alt+7 :  My Account privacy configuration.
Shift+Alt+8 : Facebook fans group page
Shift+Alt+9 : Facebook?s Statement of Rights and Responsibilities
Shift+Alt+0 : Facebook Help Center
Shift+Alt+m : Creat a new message
Shift+Alt+? : Cursor in the Search Box

Google Chrome's user don't be sad   Our team   provide you   shortcuts of google chrome as soon as possible.

Choice is Yours.....Cheers


LOGIC CAFE TEAM

Thursday, April 7, 2011

Add New column in Table

To Add New Column In Table  . Use Following Sql Query

Query:- " Alter table 'TableName'  Add Column 'CoulmnName' 'DataType'

Exp:-
Let Assume My Table name is TempTable and i want to add New Column with Name of EmpAdd

Query:  Alter table temptable add column empadd varchar(50)


Choice is yours...... Cheers

Kapil hasija