Saturday 26 May 2012

Remove Special Characters from a String using preg_replace in Php

Hi All, in my earlier post i have written about how to remove special characters from mysql database. Sometime we only want to get result of an input string as a simple composition of alphabets and numbers and we want to remove all special characters in the given string.
In this case Php provide an easy function to do the needful. We can remove all special characters by using preg_replace.
Here is the simple syntax for it.

$result  = preg_replace('/[^a-zA-z0-9/s','',$string);
where $string is the string in which we want to filter special characters and $result is the output string without any special characters.

We can also use another Php function str_replace() to achieve the same if we know what all we have to remove. Here is the simple syntax for it.
str_replace(mixed search,mixed replace,mixed subject[,int & replace_count]);

More information on www.narendrarathore.com

Wednesday 14 March 2012

Asia Cup Schedule

Hi All,
This is the list of matches in Asia cup. India will take on Pakistan first time after last world cup. This series will be full of ups and downs and it will be interesting to watch that who will win the Asia cup.

March 11: Bangladesh vs Pakistan
March 13: India Vs Sri Lanka
March 15: Pakistan vs Sri Lanka
March 16: Bangladesh vs India
March 18: India vs Pakistan
March 20: Bangladesh vs Sri Lanka
March 22:  Bangladesh  vs Pakistan (Final)
So, the final of Asia Cup 2012 is between Pakistan and Bangladesh ...

Tuesday 6 March 2012

IPL 5 Schedule

Hi All,
Below is a list of Schedule of IPL 5. Be ready to watch your hero's performing their best. Enjoyyyyyyy!!!!!

April 4: Chennai Super Kings (CSK) vs Mumbai Indians(MI)
April 5: Kolkata Knight Riders (KKR) vs Delhi Daredevils (DD)
April 6: Mumbai Indians(MI) vs Pune Warriors
April 6: Rajasthan Royals (R R) vs Kings XI Punjab
April 7: Royal Challengers Bangalore (RCB) vs Delhi Daredevils
April 7: Deccan Chargers (DC) vs Chennai Super Kings (CSK)
April 8: Rajasthan Royals (R R) vs Kolkata Knight Riders (KKR)
April 8: Pune Warriors vs Kings XI Punjab
April 9: Deccan Chargers (DC) vs Mumbai Indians(MI)
April 10: Royal Challengers Bangalore (RCB) vs Kolkata Knight Riders (KKR)
April 10: Delhi Daredevils (DD)Chennai Super Kings (CSK)
April 11: Mumbai Indians(MI) vs Rajasthan Royals (R R)
April 12: Chennai Super Kings (CSK) vs Royal Challengers Bangalore (RCB)
April 12: Kings XI Punjab vs Pune Warriors
April 13: Kolkata Knight Riders (KKR) vs Rajasthan Royals (R R)
April 14: Delhi Daredevils (DD) vs Deccan Chargers (DC)
April 14: Pune Warriors vs Chennai Super Kings (CSK)
April 15: Kolkata Knight Riders (KKR) vs Kings XI Punjab
April 15: Royal Challengers Bangalore (RCB) vs Rajasthan Royals (R R)
April 16: Mumbai Indians(MI) vs Delhi Daredevils
April 17: Rajasthan Royals (R R) vs Deccan Chargers (DC)
April 17: Royal Challengers Bangalore (RCB) vs Pune Warriors
April 18: Kings XI Punjab vs Kolkata Knight Riders (KKR)
April 19: Deccan Chargers (DC) vs Delhi Daredevils
April 19: Chennai Super Kings (CSK) vs Pune Warriors
April 20: Kings XI Punjab vs Royal Challengers Bangalore (RCB)
April 21: Chennai Super Kings (CSK) vs Rajasthan Royals (R R)
April 21: Delhi Daredevils (DD) vs Pune Warriors
April 22: Mumbai Indians(MI) vs Kings XI Punjab
April 22: Deccan Chargers (DC) vs Kolkata Knight Riders (KKR)
April 23: Rajasthan Royals (R R) vs Royal Challengers Bangalore (RCB)
April 24: Pune Warriors vs Delhi Daredevils
April 24: Kolkata Knight Riders (KKR) vs Deccan Chargers (DC)
April 25: Kings XI Punjab vs Mumbai Indians(MI)
April 25::Royal Challengers Bangalore (RCB) vs Chennai Super Kings (CSK)
April 26: Pune Warriors vs India Deccan Chargers (DC)
April 27: Delhi Daredevils (DD) vs Mumbai Indians(MI)
April 28: Chennai Super Kings (CSK) vs Kings XI Punjab
April 28: Kolkata Knight Riders (KKR) vs Royal Challengers Bangalore (RCB)
April 29: Delhi Daredevils (DD) vs Rajasthan Royals (R R)
April 29: Mumbai Indians(MI) vs Deccan Chargers (DC)
April 30: Chennai Super Kings (CSK) vs Kolkata Knight Riders (KKR)
May 1: Deccan Chargers (DC) vs Pune Warriors
May 1: Rajasthan Royals (R R) vs Delhi Daredevils
May 2: Challengers Bangalore vs Kings XI Punjab
May 3: Pune Warriors vs India Mumbai Indians(MI)
May 4: Chennai Super Kings (CSK) vs Deccan Chargers (DC)
May 5: Kolkata Knight Riders (KKR) vs Pune Warriors
May 5: Kings XI Punjab vs Rajasthan Royals (R R)
May 6: Mumbai Indians(MI) vs Chennai Super Kings (CSK)
May 6: Royal Challengers Bangalore (RCB) vs Deccan Chargers (DC)
May 7: Delhi Daredevils (DD) vs Kolkata Knight Riders (KKR)
May 8: Pune Warriors vs Rajasthan Royals (R R)
May 8: Deccan Chargers (DC) vs Kings XI Punjab
May 9: Mumbai Indians(MI) vs Royal Challengers Bangalore (RCB)
May 10: Rajasthan Royals (R R) vs Chennai Super Kings (CSK)
May 11: Pune Warriors vs Royal Challengers Bangalore (RCB)
May 12: Kolkata Knight Riders (KKR) vs Mumbai Indians(MI)
May 12: Chennai Super Kings (CSK) vs Delhi Daredevils
May 13: Rajasthan Royals (R R) vs Pune Warriors
May 13: Kings XI Punjab vs Deccan Chargers (DC)
May 14: Royal Challengers Bangalore (RCB) vs Mumbai Indians(MI)
May 14: Kolkata Knight Riders (KKR) vs Chennai Super Kings (CSK)
May 15: Delhi Daredevils (DD) vs Kings XI Punjab
May 16: Mumbai Indians(MI) vs Kolkata Knight Riders (KKR)
May 17: Kings XI Punjab vs Chennai Super Kings (CSK)
May 17: Delhi Daredevils (DD) vs Royal Challengers Bangalore (RCB)
May 18: Deccan Chargers (DC) vs Rajasthan Royals (R R)
May 19: Kings XI Punjab vs Delhi Daredevils
May 19: Pune Warriors vs Kolkata Knight Riders (KKR)
May 20: Deccan Chargers (DC) vs Royal Challengers Bangalore (RCB)
May 20: Rajasthan Royals (R R) vs Mumbai Indians(MI)
May 22: Qualifier 1 First Placed Team vs Second Placed Team
May 23: Elminator Third Placed Team vs Fourth Placed Team
May 25: Qualifier 2 Winner of Eliminator vs Loser of Qualifier1
May 27: Final Winner of Qualifier 1 vs Winner of Qualifier 2

IPL 5

Hi All,
IPL fever is again to be started from 4th of April 2012. IPL has not lost its charm in its last four seasons.
It will held till 27th of May. There would be 74 matches in 54 days. These matches will be action packed for sure. Also after a nightmare tour of Australia, all Indian Players are desperate to perform in this 20:20 format.
I am also writing IPL 5 schedule in a new blog. These summer vacations will be full of entertainment for cricket lovers.
So be ready to enjoy this season of IPL matches. Whom do you think winner of this IPL season will be??

Monday 5 March 2012

Avoid ckeditor encoding

Hi
Ckeditor is a very good tool to publish data in drupal. Ckeditor can be applied on textarea and hence dull looking textarea can be changed to a good looking form.
There is a problem with Ckeditor that it take its own encoding and decoding while writing . Sometime it become hard to decode Ckeditor date in case of "'" , "-" and some special characters like these.
This problem can be solved by writing
config.htmlEncodeOutput = True;
in core/editor.js. Its default value is false. This is done to escape HTML in case when editor updates original input element.
This can also be changed in advance option field in ckeditor configuration UI. Write
config.htmlEncodeOutput = True;
in advance settings to avoid any special character encoding.
Queries and suggestions welcome.

More information on www.narendrarathore.com

IBPS Clerk Result

Hi All,
IBPS Clerk Result was declared on 29th of February which is available on IBPS official website.
http://ibpsresults.sifyitest.com/ibpscweres12/login.php.

Also if you have problem regarding anything than you can call helpline nos.-022-29687111.

Scorecard will be delivered by post to successful candidates within two weeks of result. It will also be available on IBPS official website after sometime. Those who have failed the exam can also check their their marks.

Official Website- www.ibps.in
Those who have cleared exam will be able to apply for interview across 19 public sector banks.
Higher marks in scorecard means higher chances of selections. If you have cleared exam than start preparing from now onward.
IBPS Score card is also available on this link

If you have any queries, post a comment and i will reply you as soon as possible.

Best Of Luck

Monday 26 September 2011

Tanot Mata Temple

Have you ever seen Bollywood movie 'Border' made by J.P. Dutta? The temple shown in that movie was this temple. If you have planned to go to Jaisalmer than make a schedule to visit this temple. The best time to visit this place is from October to February. It is said that Pakistan dropped many bombs over this temple during battle of Longewala in 1965. None of the bombs dropped by Pakistani Army explode and now there is a museum showing the unexploded bombs.


Tanot Mata Temple is about 100 kms. from Jaisalmer. So if you have your own vehicle or a private taxi than it may not take more than 2 hrs to reach there. Whole route is full of large sand dunes and very less population and this completely depicts 'The Thar Desert'.
Indo-Pak border is also near to this temple. So if you interested in visiting international border than you have to take permission from the BSF personnel's. Carry your ID proof with you.