tag:blogger.com,1999:blog-49117402448475599662024-03-04T23:08:55.861-08:00Ashraf'sashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-4911740244847559966.post-46332186055759784602011-03-16T04:35:00.000-07:002011-03-16T04:37:36.813-07:00Ashraf in Mumbai<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0kwbzMOWCi_KTHqtR_yCb8bBHaV8Q-RCDqQymEnnx_AyFyh2BzC3BQW5dr4yJnvkaFLGRZJHnRcOlc3waYwsZfPtdieBj0yEYL5Ohscb6_FABg7pfGhmebKLH1eeEUHABQftH8ze4ARhR/s1600/Photo128.jpg"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0kwbzMOWCi_KTHqtR_yCb8bBHaV8Q-RCDqQymEnnx_AyFyh2BzC3BQW5dr4yJnvkaFLGRZJHnRcOlc3waYwsZfPtdieBj0yEYL5Ohscb6_FABg7pfGhmebKLH1eeEUHABQftH8ze4ARhR/s320/Photo128.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5584640368069933378" /></a><br />Relaxing at my room in Mumbai.ashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0tag:blogger.com,1999:blog-4911740244847559966.post-1109815794539952872011-02-10T21:19:00.000-08:002011-02-10T21:20:19.751-08:00Love at first sightA girl entered our office. I turned around and glanced at her.<br />She was the most beautiful girl in the world. I like traditional Indian dress. <br />And she was wearing a beautiful churidar looking like an angel from heaven. Still cant forget that day.<br /><br />She went inside the interview room. After sometime, I went to drink water and the filter was nearer to the room <br />she was sitting. And she looked at me. And my heart jumped with delight. Love struck me like a lightning.<br /><br />I went back to my sit and started listening to my favourite romantic songs thinking about her. After <br />her interview she was leaving the office and I again glanced at her...I fell in love then and there...<br />there was no saving me...an angel came and stole my heart away from me...ashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com1tag:blogger.com,1999:blog-4911740244847559966.post-88305951016883124622011-01-14T04:41:00.001-08:002011-01-14T04:43:58.250-08:00Three easy steps to customize logo and message in Site Offline Page in Drupal 51. In template.php create a function<br /><br />function phptemplate_maintenance_page($content, $messages = TRUE, $partial = FALSE) { <br /> $title = drupal_get_title();<br /> $head_title = strip_tags($title);<br /> $head = drupal_get_html_head();<br /> $js = drupal_get_js();<br /> $content = $content;<br /> $message = ($messages ? theme('status_messages') : '');<br /> return _phptemplate_callback('maintenance-page', array('content' => $content, 'title' => $title, 'head_title' => $head_title, 'head' => $head, 'js' => $js,'message' => $message)); <br />}<br /><br /><br /><br />2. Create maintenance-page.tpl.php and there you can print all the variables, that you passed through _phptemplate_callback in template.php.<br /><br />e.g. <br /> print $content; //prints the site-offline message that is entered in the site maintenance page in your site. <br /> print $title; <br /><br />3. Create a maintenance.css inside the theme you are using and include it in maintenance-page.tpl.php . In maintenance.css add your own css to customize your site offline page.<br /><br />Thanks, hope I am clear and hope it helps to customize your site offline page with custom message and logos.<br /><br />Ashrafashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0tag:blogger.com,1999:blog-4911740244847559966.post-37398353754245485612010-06-07T06:14:00.000-07:002010-06-07T06:16:11.512-07:00Run Ashraf Run!This was the funniest, adventurous, frightening dream I ever had in my life. Sometimes, I wonder what I will do if I am forced to marry somebody I don’t like. And I got that answer in that dream. It was a nightmare turning into reality. For some reason, I was very tired and got to sleep very early. Suddenly I got into my dream world or shall I say nightmare. So let’s start with what happened in my dreamland.<br /><br />I went back home for vacation and there I saw my family has fixed my marriage with a very very fat girl who likes to do only one thing…eat, eat, eat….and there was no option for me to say no…they had given the word for some reason…everything’s been fixed…and that my marriage was as soon as the next day…my God…wish anybody cud see my face at that time…I started crying like a toddler who just lost his candy…<br /><br />My best friends came to meet me in the evening…. Was it for congratulating me or consoling me? But hang on, they came to do what friends are for…give support and advice…they said…hey ashraf…wat r u doing…u cud not get the girl of your dreams…at least don’t marry this fatty…’khilate khilate mar jayega’…and they gave me a great idea…’bhaag jao!’… And I got inspired and planned the ‘Great Escape’…next morning I will escape…he he…great idea…I jumped with joy and hugged them all…jaadu ki jhappi…<br /><br />I put my alarm for 5 AM…but I woke up before that and slowly opened my door, got downstairs and started going out…but unfortunately my uncle saw me and asked me where I was going…I thought for some time and replied ‘Morning Walk’…that was surprising for him as never in my life have I gone for morning walk…and he called me back…but I was to hear none of that…I started running without even looking back…and I ran and ran and it was as if I was running for Olympic Gold Medal…and at that time my dream was interrupted…I woke up…wondering how come I am in my bed …just now I was running like Usain Bolt…and then realized it was only a dream…huh…thank God!…wat if they caught me and forced me back…he he…wat a dream…scary….funny…got everything… :)<br /><br />Take Care,<br />Ashrafashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0tag:blogger.com,1999:blog-4911740244847559966.post-14192419773244953692010-06-01T08:21:00.000-07:002010-06-01T08:22:57.675-07:00I saw an angel last week...hey, this was straight from a movie script...last Saturday, I went for an interview in a company in malviya nagar, jaipur...I had never been there...while coming back, I got lost...I forgot where I came from and from where I can get a bus for my place...I started walking hoping I am on the right path...suddenly I saw a girl coming in front of me...she was beautiful...as we were about to cross each other...I heard somebody telling me 'Excuse Me'... and the caller was that girl only...wow...she asked me, 'hey, can u tell me the way to 'James Enclave'...can u imagine...I myself got lost...and here was a girl asking me to show her direction...I started laughing and said 'Mei Khud Ghum Ho Gaya, kaya se aaya, kaha jaana hai paata nahi'...and she also started laughing...she replied'chaloo, koi baaat nahi, bye'...everything was fine until the last word...'bye'... hate it...so I also had to say 'bye'...<br />Wish I had said 'see u again or wats ur number'...hey ashraf boy...naughty naughty...but this reminds me of the song...'I saw an angel'...he he...always comparing my life with movies or songs…and yea, luckily I was on the right path…cud manage to come bak home…chalo, bye 4 now...<br />Ashrafashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0tag:blogger.com,1999:blog-4911740244847559966.post-21951740961567151352010-05-28T08:28:00.000-07:002010-05-28T08:38:37.499-07:00Difference between Aamir Khan And Akshay Kumar:Aamir Khan = quality;<br />Akshay Kumar = quantity;<br /><br />can u elaborate?<br />yea sure....akshay does 5 films in a year, aamir does 5 films in 5 years....and everybody knows the difference...<br />Akshay Kumar: Chandni Chowk,Tasveer, Blue, Kambhakt Ishq, De Dana Dan...yuk...<br />Aamir Khan: 3 Idiots<br /><br />prefer watching 3 Idiots 5 times....<br /><br />he he....bye for now...<br /><br />Ashrafashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0tag:blogger.com,1999:blog-4911740244847559966.post-15070496584219264332010-04-02T03:35:00.000-07:002010-04-02T03:36:04.062-07:00Aye KhudaYaaraan Teri Yaadaan Aati Hain, Jaan Meri Jaan Jaati Hai<br />Tanhaayiyon Mein Rehata Hoon, Khud Se Hi Aksar Yeh Kehata Hoon<br />Kyun Tune Dil Toda, Kyun Tune Yuun Chhoda<br />Kyun Tera Abb Bhi Rahein Dil Ko Intjaar<br />Kyun Chali Aati Hai Kyun Tadpaati Hai<br />Kyun Hoon Abb Bhi Main Yuun Bekaraarashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0tag:blogger.com,1999:blog-4911740244847559966.post-49768913133777667832010-03-10T22:25:00.000-08:002010-03-10T22:26:10.312-08:00Step by step tutorial for IMCE integration with CKEDITOR in Drupal6<p>Following are the steps for IMCE Integration with CK Editor in Drupal 6</p> <p>1. Download the CKeditor module from <a href="http://drupal.org/project/ckeditor" title="http://drupal.org/project/ckeditor">http://drupal.org/project/ckeditor</a> and imce module from <a href="http://drupal.org/project/imce" title="http://drupal.org/project/imce">http://drupal.org/project/imce</a> .<br />2. Unzip the files in the sites/all/modules directory .<br />3. Download CKEditor from <a href="http://ckeditor.com/download" title="http://ckeditor.com/download">http://ckeditor.com/download</a>. Unzip the contents of the ckeditor directory in the sites/all/modules/ckeditor/ckeditor directory.<br />4. Enable the modules as usual from Drupal's admin pages.<br />5. Grant permissions for use of CKEditor in "Administer > User Management > Permissions"<br />6. Under "Administer > Site configuration > CKEditor", adjust the ckeditor profiles. In each profile you can choose which textareas will be replaced by CKEditor, select default toolbar and configure some more advanced settings.<br />7. Go to <a href="http://ckfinder.com/download" title="http://ckfinder.com/download">http://ckfinder.com/download</a> and download CKfinder.<br />8. Extract the downloaded file ckfinder and put it in Ckeditor folder (sites/all/modules/ckeditor/ckfinder) .<br />9. Open config.php in the ckfinder folder and comment out the CheckAuthentication() function.</p> <p>/*function CheckAuthentication()<br />{<br />// WARNING : DO NOT simply return "true". By doing so, you are allowing<br />// "anyone" to upload and list the files in your server. You must implement<br />// some kind of session validation here. Even something very simple as...</p> <p>// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];</p> <p>// ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the<br />// user logs in your system.<br />// To be able to use session variables don't forget to add session_start().</p> <p>return false;<br />}*/</p> <p>10. Add this code :<br />require_once '../../../../includes/filemanager.config.php';</p> <p>straight below the following line:<br />$baseUrl = '/ckfinder/userfiles/';</p> <p>11. Locate file named settings.php inside your drupal directory (usually sites/default/settings.php) and set $cookie_domain variable to your domain name.</p> <p>$cookie_domain = $_SERVER['HTTP_HOST'];</p> <p>12. In the administer->site configuration ->ckeditor, edit the profile you are using.<br />In the file browser setting,<br />Select CKFinder from the dropdown in File browser type (Link dialog).<br />Select IMCE from the dropdown in File browser type (Image dialog).<br />Select IMCE from the dropdown in File browser type (Flash dialog).<br />Save the configuration.</p> <p>13. Go to create content ->page, try to upload a image using the ckeditor, it should work.</p> <p>Thanks,</p> <p>Ashraf</p>ashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0tag:blogger.com,1999:blog-4911740244847559966.post-13234512438759461132009-11-20T02:19:00.000-08:002009-11-20T07:29:15.830-08:00Relocation to Pune for my new job from GuwahatiIt was 13th September. Sunday. I was sitting at my room. Last night, my new company director called me and told me to join latest by 24th September. My previous company wasn't willing to release me nor giving me any definite date on when I would be released. I had to take a decision.<br />It was a tough call. How do I go without having the release letter in my hand? I was going nuts thinking about that. After lot of thinking,came to the conclusion that come what may, I am going. "Jo hoga dekha jayega". Just decided not staying in Zaloni after 18th. Its my life and its my wish.<br />I had to go home once before shifting to Pune.<br />I wasn't surprised when they didn't release me on 18th. Due to this uncertainty, didn't even buy tickets also.The next day, on 19th, went to the airlines office, went crazy when I heard about the fares. Due to ensuing Durga Puja, there was heavy rush. I knew if I avoid going home, I could save some money. But I also wanted to be at home for Eid even if for only 2 days. So, I purchased the tickets for Silchar-Ghy and Ghy-Mum.Sometimes, money is not that important.<br />The next morning,I left for my hometown by bus.I reached home at 7:30 in the evening. It was so nice being at home after 4 months. "Home is where the heart is". Next day was Eid. I really enjoyed those two days. Even went to Devdoot talkies to watch "Wanted". Hey, cant miss Salman Khan's film.<br />Sept 23. I had never been to Mumbai or Pune. Had no idea where I was going to stay in Pune. Just had the tickets in hand. Was feeling sad to leave home again. But what to do, have to do it for my career and my dreams. I boarded the flight to Guwahati in the morning. I was really tensed if my new company asked for the release letter. I had to stay in the Guwahati airport for 2 hours for boarding the Mumbai flight. As I sat in the airport, my mind kept going back to the 1 and half years I spent at Zaloni. It was five hour flight from Guwahati to Mumbai as it halted in Kolkatta for 50 mins. I reached Mumbai at 9:30 in the night. Hired an Indica outside the airport to go to Pune I reached Pune at 3:30 in the morning. Somehow, got one auto who took me to a hotel.<br />Next day, I joined my new company. And thankully, didn't need to produce the release letter. My bank statements were enough to prove my employment status. I finally heaved a sigh of relief as I sat in my new desk. Oh, those 10 days were really eventful for me. And the journey continues in pursuit of happiness and peace...<br /><br />Ashrafashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0tag:blogger.com,1999:blog-4911740244847559966.post-48914514309056483162009-11-19T00:25:00.000-08:002009-11-19T00:26:47.372-08:00AshrafThis is my first blog.Will write more later.ashrafhttp://www.blogger.com/profile/08928092130587489417noreply@blogger.com0