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