Showing posts with label JK. Show all posts
Showing posts with label JK. Show all posts

Tuesday, March 20, 2012

OAuth 2.0

Now its time to Switch on the easier and secured version of OAuth Protocol OAuth 2.0 so here is the presentation i have made which makes u people easy to understand the Protocol and important points to have talk to the server 


Presentation  - Download 




The presentation is based on the Oauth 2.0 written by the developers of Microsoft and Facebook on January 2012







Tuesday, March 13, 2012

Difference between Echo and Print in Php

We have Echo we have print in php which we use to display the output to the user
Both Echo and Print does the same work - Displaying the output on the screen
But there are couple of differences between them
Echo
  1. Output one or more strings
  2. Allows More parameters works only with the short open tags
  3. It is not a function
  4. It takes less memory

Print
  1. Output only one string
  2. It allows only one parameter
  3. Its not a real function but its a language construct
  4. It take a little more memory than echo



Tuesday, March 6, 2012

Train Seating Arrangement

I have refered many sites to get this searting arrangement this is almost common in all Indian Trains

Please click Download to get he seating arrangement

Friday, March 2, 2012

Curl Using PHP in a Gist

cURL: It is  a client that deals with URL so its named as cURL so as to say that it deals with URL only 

It is used to make client communicate with the server using command line 
arguments using cURL syntax

Its main use is to provide security to the URL's sent through the browser to the server
 
 The main commands in cURL  which i found is important are


1. curl_init() - with which the main curl operation starts

2.curl_setop($charecter,options,value)


                    $charecter = curl handle returned by curl_initi()


           options = curl provides various options with general syntax 

curlOPT_XXX 
                         other options are found in - PHP website

          value = value of the url

3. curl_exec() - which is used to execute a $charecter in which the information has be moved 

4.curl_close() - this is used to close the curl connection




          






Thursday, March 1, 2012

Connect With Facebook API in Simple 7 Steps

Here is the presentation or Document Where i have described Simple 7 Steps To Connect to Facebook this can be used to any Social Networking Site

Download the Presentation From this Link ---- Download











Simple Script to Share your site in different Social Networks

A simple Script used to share your Website on Different Social Networks Replace your Wesite in the my Blog URL Place


Wednesday, February 29, 2012

OAuth Protocol

Implementation of OAuth protocol 
Information of OAuth protocol in a gist 

Clearly explained in the Following Presentation

PPT - Link

Document - Link

Friday, February 24, 2012

Crop Image Using GD library in Php

I have tried image cropping using image copying GD Image function i have done it by using simple logic this program might be useful to all so i am posting it here because i have not used any jquery or any other language this is purely done in php
5 steps to use the code:
  1. Create a project in www folder
  2. paste the code present in link - Download
  3. create a folder named images
  4. Now run the folder



Thursday, November 24, 2011

How Do I Add Or Delete Entries From The Block Or Reject List

This post explains you how to remove/add a number from reject list when you mistakenly add the number to reject list in Samsung mobiles

  1. Go to Settings in menu bar ( or applications options for some models)
  2. Then go to application settings (it will be option 6)
  3. Then go to Call ( call option 1 )
  4. Then go to All calls option ( will be option 1)
  5. Then go to Auto Reject ( will be option 2)
  6. Then now you can Auto Reject option on or off (Option 2)
  7. Then now you can add or remove the a number from reject list 
Now enjoy the option of Auto Reject in mobiles

The above steps is for almost all models of Samsung mobiles  

Thursday, November 17, 2011

How to optimize code in PHP

Php a language used to develop webpages. The language itself is very fast unless you make it slow using poor coding :P
So the following are the things i found that made my php code  run faster may be these tips might help your code tooo

So finally following are the tips to make your php run faster or optimize your php code

  • Profiling:Testing with microtime() function to calculate time taken to compile a function 
         Eg: 
              FunctionNameA() 
              $a=microtime();
              FunctionNameB() 
              $b=microtime();
              Echo $a,$b; 
  • Optimizing Execution Time:
    1. Use of echo instead of printf()
    2. ¡++$i happens to be faster in PHP because instead of 4 opcodes used for $i++ you only need 3
    3. “While” loop is 90% faster than “For” loop
    4. $row[’id’] is 7 times faster than $row[id]
    5. Incrementing an undefined local variable is 9-10 times slower than a pre-initialized one. 
    6. Turn on apache's mod_deflate
    7. Unset your variables to free memory, especially large arrays.(we are starting with arrays)
    8. Replace str_replace by strtr. strtr is faster than str_replace by a factor of 4  
    9. Remove doing SQL queries within a loop

What is a blog , How to Start It and Its Uses

Blog is a place where a a person can actually express his ideas share his thoughts to the public
I call it as Notebook  written  by us on topic of our wish which can be useful to others

There are many hosting sites that support blogging some of the popular blogging sites are 
  1. BLOGGER (Blogger)
  2. WORDPRESS (wordpress)
  3. TUMBLR(Tumblr)
Just go to the any one of the websites  where you are thinking to start a blog 
steps to create a blog
  1. Sign Up with the respective site
  2. Now the website ask you to select the website name of your wish (if available else you need to adjust with other names :P)
  3. Make sure that your name of the blog should atleast relate the blog posts
  4. Now find the option where you can actually post you idea
What you can do with the blog ???

There are many advantages with the blogs some of them i found are :
  • You can share your ideas which can be helpful to others
  • You can get ideas from others which might be helpful for you carrer
  • You get earn money if you wish to by using (google adsense,amazon ads etc.,)
  • By the way you can also get a good name if your blog becomes so popular
 This is what i have learnt about blogging and i have learnt to blog hope this small post can help you about blogging and sharing your ideas to others

"Knowledge will increase if you share so keep sharing the knowledge"
Have a happy blogging ------ Educate and Advocate

Tuesday, September 13, 2011

CSS style Sheet tips - CSS Cheat Sheet

If your in WebDevelopment then First thing you need is this PDF which really helps you in styling your web pages

Link

The Google Story

A small Book on how google has Emerged it self and constructed its empire in the web world

Link


Easiest Way to Connect your Website To Facebook

Connect your website with FACEBOOK page in the easiest way
 FBCONECT



Generic Java Stack - Work application Question

Question :
package jp.co.worksap.intern;
    /**
    *The Stack class represents a last-in-first-out(LIFO) stack of objects
    *And this class can look at the object which has the highest (lowest or so) value.
    *So every object onto the stack must be comparable to each other.
    *@param<E.
    */
    public interface ISortableStack<E extends Comparable<E>>{
    /**
    *Pushes an item onto the top of this stack.
    *If the Element e is null, throws NullPointerException.
    * @param e
    *@throws NullPointerException
    */
    public void push(E e);
    /**
    *Removes the object at the top of this stack and returns that object as the value of this function.
    *If the stack is empty, throws EmptyStackException.
    *@return
    *@throws EmptyStackException
    */
    public E pop();
    /**
    *Locks at the object which has the middle value among the all objects without removing it from the stack.
    *Returns the object which has the value of following order <code>(size()/2)+1</code>
    *<pre>
    *e.g. When the stack has the following values (1, 2, 5, 4, 2, 6)
    *this method returns 4 and doesn't remove the object.
    *</pre>
    *If the stack is empty, throws EmptyStackException.
    *@return
    *@throws EmptyStackException
    */
    public E peekMidElement();
    /**
    *Looks at the object which has the highest value among the all objects without removing it from the stack.
    *Returns the object which has the value of the following order <code>size()</code>
    *<pre>
    *e.g. When the stack has the following values (1,2,5,4,2,6)
    *this method returns 6 and doesn't remove that object
    *</pre>
    *If the stack is empty, throws EmptyStackException.
    *@return
    *@throws EmptyStackException
    */
    public E peekHighestElement();
    /**
    *Looks at the object which has the lowest value among the all objects without removing it from the stack.
    *Returns the object which has the value of the following order <code>1</code>
    *<pre>
    *e.g. When the stack has the following values (1,2,5,4,2,6)
    *this method returns 1 and doesn't remove the object.
    *</pre>
    *If the stack is empty, throws EmptyStackException.
    *@return
    *@throws EmptyStackException
    */
    public E peekLowestElement();
    /**
    *Returns the number of objects in this stack.
    *@return
    */
    public int size();

Answer :
Mediafire Links:
Method 1
Method 2

Monday, September 12, 2011

Types of tables in oracle

There are seven types of tables:

1. Heap organized tables:

A heap-organized table is a table with rows stored in no particular order. This is a standard Oracle table; the term "heap" is used to differentiate it from an index-organized table or external table.If a row is moved within a heap-organized table, the row's ROWID will also change.

Ex.
CREATE TABLE t1 (c1 NUMBER PRIMARY KEY, c2 VARCHAR2(30)) organization heap;

2.Index organized tables:

Index Organized Tables are tables that, unlike heap tables, are organized like B*Tree indexes. Besides storing the primary key values of an Oracle indexed-organized tables row, each index entry in the B-tree also stores the non-key column values.


Index clustered tables


Hash clustered tables


Nested tables


Global temporary tables

Object tables


Apriori Algorithm and It's improvement

A small description about apriori algorithm in Frequent pattern Mining in Data mining it is actually a problem solving technique for the existing algorithm

Encapsulation in Detail

What is Encapsulation:
Standard definitions says that it a process of wrapping up of data members and methods inside a class with the help of some access specifiers..

private,public and protected.

Private is a type of an access specifier which can be applied to a class, data member,method.
If given to a class then the data members,methods in that class can only access the class which is given as private.

public is type of an access specifier which can again be applied to a class, data members, methods and can be accessed from anywhere in the program.

protected is an other type of access specifier which can again be applied to a class,data members and methods and only the derived classes of that base class can be accessed to the base class which is protected.

Solid Nutrition ,Education & Health for 40 poor kids at Chinchwad ,Pune-33

Solid Nutrition ,Education & Health for 40 poor kids at Chinchwad ,Pune-33: 15000 kids (2-6 years age) from the poor families are suffering from malnutrition and poor hygiene in chinchwad,Pune-33They dont get convent education , good nutritional diet and proper care.For this govt is also trying but could not get success in last so many decades.Our aim is to provide toppings to them so that we can prepare them for the future.One healthy n good educated girl can change the generation,society n the nation.

Saturday, May 14, 2011

Encapsultaion in General

What is Encapsulation:
Standard definitions says that it a process of wrapping up of data members and methods inside a class with the help of some access specifiers..

private,public and protected.

Private is a type of an access specifier which can be applied to a class, data member,method.
If given to a class then the data members,methods in that class can only access the class which is given as private.

public is type of an access specifier which can again be applied to a class, data members, methods and can be accessed from anywhere in the program.

protected is an other type of access specifier which can again be applied to a class,data members and methods and only the derived classes of that base class can be accessed to the base class which is protected.