Home » Archive

Articles in the Uncategorized Category

Uncategorized »

[17 Jan 2012 | View Comments | 2 views]

If you are using some WYSIWYG Editor and wonder how data in database if full of  \\\\"\\\\   Mess then following code will be helpful to you. Add this code on the top of the script or in any common file, which is include on top of  the code.
// Turn off magic_quotes_runtime
if (get_magic_quotes_runtime())
set_magic_quotes_runtime(0);
if (get_magic_quotes_gpc()) {
function stripslashes_gpc(&$value)
{
$value = stripslashes($value);
}
array_walk_recursive($_GET, ’stripslashes_gpc’);
array_walk_recursive($_POST, ’stripslashes_gpc’);
array_walk_recursive($_COOKIE, ’stripslashes_gpc’);
array_walk_recursive($_REQUEST, ’stripslashes_gpc’);
}

Headline, Uncategorized, featured »

[5 Feb 2011 | View Comments | 310 views]
Me vs Vodafone Customer Care

I bought new Vodafone sim about 1 month ago. I selected vodafone because of it’s good publicity in television. Everything was going fine for first 7 days. On 10th January 2010 I recharged my phone with the amount of 350.00 from website. In vodafone website the mentioned on 350.00 INR recharge I will get talktime of 315.00 INR. Following is the print screen.

I immidiately called customer care and talked her about my problem. She checked and replied that you got INR 177.32. Customer care executive was in very hurry and …

Uncategorized »

[30 Nov 2009 | View Comments | 658 views]

Recently I faces a problem in admin module,  developed by some programmer that when I submit add entry button it adds two records but when I submit for Firefox, I was working  fine.
After 3 hour of mess I found error, In IE8 you have to return false, if you are submitting form through javascript. Here is example
<form name=”frm” onsubmit=”return chkForm();”>
function chkForm()
{
//Variuos checks
document.frm1.submit();
return false;
}

Uncategorized »

[23 Oct 2009 | View Comments | 513 views]
MySql Triggers: How to

MySql 5.0 come up with many great features.  One most important feature is trigger. Triggere support is in initial phase but, will be extended in future release.  here I am going to present a brief easy to understand tutorial for mysql triggers.
Triggers are MySql statements, commends which are executed on a definded event. These events may be (INSERT, UPDATE, DELETE). So at the top level we can categorize triggers in 3 categories
1. Create
2. Update
3. Delete
The basic syntax of trigger definition is
CREATE
[DEFINER = { user | CURRENT_USER …

Headline, Latest News, Uncategorized »

[14 Aug 2009 | View Comments | 1,966 views]
Swine flue GOVERNMENT AUTHORIZED HOSPITALS – India

As you know, swine flue is now a big problem for people like us who have to visit crowdy areas every day and come in touch of many peoples. If you find following swine flue symptoms, go to one of these hospital immediately!

Emails, Headline, Uncategorized »

[7 Aug 2009 | View Comments | 22 views]

Superb video..

Headline, Uncategorized »

[1 Aug 2009 | View Comments | 469 views]
Linux Foundation Launches Credit Card.

Hey my favorite  The Linux Foundation come up with Credit Cards. There is another way to support Linux apart form coding and testing. You can buy apply for these cards from here. Now probably you will ask why you should buy this. This is the answer.

0% Introductory APR on purchases and balance transfers for 6 months. After this period, a low variable APR will apply.
Earn bonus points for FREE airline tickets, merchandise, cash-back and more at participating merchants.
$50 donation by the bank when you first use the card plus ongoing …

Latest News, My Life, Uncategorized, featured »

[29 Jul 2009 | View Comments | 36 views]
DISQUS: Aggregate your comments over the web!

DISQUS is a great service to aggregate your comments all over the web. If you add a comment on a blog / website which is using this system, your comment will be visible in to your DISQUES account as well in post. This way you can keep track of your all comments. Another cool feature is, you can subscribe comment RSS.
For webmasters, It is extremely easy and installed in 5 minutes. There is a plugin available for DISQUS. I recently integrated it into myblog and it took hardly 5 …

Uncategorized, featured »

[27 Jul 2009 | View Comments | 17 views]
The Google Wave has been launched

I am sure this application will change the internet word. Worth of listen full presentation.

Uncategorized »

[21 Jul 2009 | View Comments | 44 views]

I am going to post very handy tip for javascript and css files caching. Browsers automatically cache the css and JS files and when you make change to CSS and JS some times change does not appears.
To prevent this use following
<?php
echo ‘<link rel=”stylesheet” type=”text/css” href=”style.css?’ . filemtime(’style.css’) . ‘” />’;
?>
And For JS
<?php
echo ‘<script type=”application/javascript”=”main.js?’ . filemtime(’main.js’) . ‘” />’;
?>
The PHP function filemtime returns last modified date of file, so every time you make change in css / JS files the filemtime will return different value and CSS / JS Url …

Uncategorized »

[23 Mar 2009 | View Comments | 1,613 views]

When you move cakephp site from 1 server to anothr, you sometimes see blank page even debuging is on. To avoid this alway remember to clear cache. Remove all files from /app/tmp/cache/model and /app/tmp/cache/persistent.

Uncategorized »

[6 Feb 2009 | Comments Off | 5 views]
The Art Of Living – 3

1. A servant breathes in gratitude. Every moment in his life is a joy, is flowing out of gratitude, is out tears.
2. When the negativity reaches its peak, like an overloaded balloon, it bursts and comes back to the Divinity.
3. Unlimited possibilities are open to one who is not clear and not confused.
4. Are you aware of the intention behind your actions?
5. Anything that helps you to become unconditionally happy and loving is what is called spirituality.
6. Plan for the future, definitely Have a vision But live now, in the …

Uncategorized »

[10 Nov 2008 | View Comments | 3 views]
The art of living – 2

11. When you judge others, look at yourself. You too have flaws & the divine nature has accepted you with all your flaws, it doesn’t judge you.
12. Just one spark of beauty in wakefulness- ‘I, the awakened, manifested as knowledge, as wisdom’- That is sattva.
13. The path of love is not a tedious path. It’s a path of joy. It’s a path of singing and dancing. It’s not a desert. It is a valley of flowers.
14. When your mind is not complaining, responsible, courageous, confident and hollow and empty you …

Uncategorized »

[23 Sep 2008 | View Comments | 4 views]
The Art of Living

1. Attention is not love. In fact, when there is too much love, there isn’t ant attention.
2. Celebration happens when the mind unites with the spirit. The mind keeps crying and crying until it finds the spirit!
3. Whenever I am, that is what you are. The subtler we go, we are only one.
4. If your heart is fully opened, you cannot fine fault with anyone becoz you will see everyone as part of yourself.
5. With the thought that you are still here, all …

Uncategorized »

[17 Aug 2008 | View Comments | 7 views]

Hey today I recd this email and believe me its 100% true. check this out…
1.Whenever you find the key to success, someone changes the lock.
2.To Err is human, but to forgive is not a COMPANY policy.
3.The road to success??.. Is always under construction.
4.Alcohol doesn’t solve any problems, but if you think again, neither does Milk.
5.In order to get a Loan, you first need to prove that you have ability to repay back.
6.All the desirable things in life are either illegal, expensive or fattening.
7.Since Light travels faster than Sound, people appear …