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