tag:blogger.com,1999:blog-41420284471696903802024-03-08T11:38:29.339+05:30Blog for helping website developers and usersWeb Developer Zend Framework, Magento, Joomla, Drupal, Wordpress, Expression Engine, PhpProBid, PHP 5.x, MySql 5.x, Paypal, CCAvenue, SagePay, Google CheckOut, Theme Creation/Integration and developing additional modules.Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.comBlogger51125tag:blogger.com,1999:blog-4142028447169690380.post-79611598992893561082018-08-03T11:30:00.000+05:302018-08-03T11:30:13.888+05:30Radio button checkboxes values are not passing<div dir="ltr" style="text-align: left;" trbidi="on">
Developer always encounter with HTML issues.<br />
<br />
Some issues are so frustrating that we finally give up and try to find another alternative.<br />
<br />
This problem is like that only but we do not need to consider another alternative what we need to do is set the default value if we did not get the parameter in the request.<br />
<br />
<h2 style="text-align: left;">
Issue</h2>
After submitting form, if radio button or checkbox is not selected we are getting <b>undefined index</b> error because those parameters does not exists like they are not part of the form.<br />
<br />
<h2 style="text-align: left;">
Solution</h2>
This is default property of radio button and checkboxes, if they are not selected then parameters are not passed, to overcome this, either make one value selected or check if parameter received or not, if not received then set the default value of that parameter in server side code.<br />
<br />
Hope this helps and you get some relief.</div>
Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-27476149795885495682012-08-16T18:18:00.003+05:302012-08-17T19:07:13.363+05:30PhoneGap Facebook not a git repository error<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="https://github.com/davejohnson/phonegap-plugin-facebook-connect" target="_blank">PhoneGap Facebook Plugin</a> is very nice and I successfully implemented it on iOS platform<br />
<br />
Before starting or investing anything, I would recommend you to view the respective video first, it will clear most of your doubts.<br />
<br />
Now, regarding issue, you will get this issue when you are trying to download the zip and run "<span style="color: #741b47;">git submodule update --init</span>".<br />
<br />
Instead of downloading zip click the "<span style="color: #741b47;">Clone in Mac</span>" button. You must have <a href="http://mac.github.com/" rel="nofollow" target="_blank">github for mac</a> installed first! Once you do so, choose the place where you want it cloned and begin the clone. Now you have the latest from master.<br />
<br />
Now try to run "<span style="color: #741b47;">git submodule update --init</span>" on this folder, it should work perfectly.<br />
<br />
<br /></div>
Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com2tag:blogger.com,1999:blog-4142028447169690380.post-62916528200129855572012-05-29T15:42:00.001+05:302012-05-29T15:44:03.915+05:30Connection to the server was unsuccessful<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: #fafafa; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 17px;"><span style="color: #444444;">The issue occurs as the Android emulator is REALLY slow so a timeout occurs before loading index.html because it reacts too slow. </span></span><br />
<span style="color: #444444; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 17px;"><br /></span><br />
<span style="color: #444444; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 17px;">In your custom Activity file before calling super.loadUrl add the following line: </span><b style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 17px;"><span style="color: #0b5394;">super.setIntegerProperty("loadUrlTimeoutValue", 60000);</span></b></div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-60669532344261149182012-05-23T12:02:00.000+05:302012-05-23T12:02:47.082+05:30PhoneGap Orientation<div dir="ltr" style="text-align: left;" trbidi="on">
<ol style="text-align: left;">
<li>For iOS</li>
<ol>
<li>Click on Project Name</li>
<li>Go to Summary</li>
<li>Select orientation you require for your PhoneGap application</li>
</ol>
<li>For Android</li>
<ol>
<li>Open AndroidManifest.xml</li>
<ol>
<li>In activity add "android:configChanges="orientation|screenSize|keyboardHidden"</li>
<li>Add a new activity<br />
<activity android:configchanges="orientation|screenSize|keyboardHidden" android:label="@string/app_name" android:name="com.phonegap.DroidGap">
<intent-filter>
</intent-filter>
</activity></li>
</ol>
</ol>
</ol>
<div>
<div>
</div>
<ol style="text-align: left;"><ol><ol>
</ol>
</ol>
</ol>
</div>
</div>
Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-49428373052338331012012-04-21T15:36:00.004+05:302012-04-21T15:36:56.285+05:30Ubuntu 11.10 Skype Hangs<div dir="ltr" style="text-align: left;" trbidi="on">
After doing too much search I found a solution and this worked for me, so I am sharing this with you.<br />
<br />
<ol style="text-align: left;">
<li>Open "Home" Folder</li>
<li>Press CTRL + H (show all hidden files)</li>
<li>Remove ".pulse" folder and restart the system again</li>
</ol>
<div>
Hope this resolve your problem too.</div>
</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-28996901852328599072011-12-27T12:33:00.000+05:302011-12-27T12:36:19.168+05:30Android Source resource does not exist<div dir="ltr" style="text-align: left;" trbidi="on">
While working on Android project with Netbeans I got this error and to resolve it we need to follow these steps:<br />
<ol style="text-align: left;">
<li>Open Project Folder</li>
<li>Open build.xml with any text editor</li>
<li>Search for "project.properties" and replace it with "default.properties", means replace<br /><span class="Apple-style-span" style="color: #0b5394;"><loadproperties srcfile="project.properties"></loadproperties></span><br />to<br /><span class="Apple-style-span" style="color: #0b5394;"><loadproperties srcfile="default.properties"></loadproperties></span></li>
</ol>
<div>
Hope this helps :)</div>
</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-312787829541845562011-11-16T15:39:00.000+05:302011-11-16T15:47:34.590+05:30Remove SVN Folders Ubuntu 11.04<div dir="ltr" style="text-align: left;" trbidi="on">To remove all SVN folders recursively, run below command in your terminal: <br />
<ol style="text-align: left;"><li>Open Terminal<br />
<span style="color: #0b5394;">ShortCut: CTRL+ALT+T</span></li>
<li>First open your directory (in my case it is "/var/www/mySite")<br />
<span style="color: #0b5394;">cd /var/www/mySite</span></li>
<li>Run below command<br />
<span style="color: #0b5394;">find . -name ".svn" -exec rm -rf {} \;</span></li>
</ol>Hope this save your time.</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-4689126719338891692011-10-23T20:54:00.000+05:302011-10-23T20:59:17.704+05:30amChart Cache Issue<div dir="ltr" style="text-align: left;" trbidi="on">
Add random parameter after the file path i.e. <span class="Apple-style-span" style="color: #134f5c;">data.xml?<?php echo microtime();?></span><br />
<br />
Hope this helps to save your time.</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-29860166403752227722011-10-17T13:33:00.000+05:302011-10-17T15:06:03.730+05:30Reading initial communication packet system error 34<div dir="ltr" style="text-align: left;" trbidi="on">
I checked the configuration of MySQL in /etc/mysql/my.cnf and found that by default MySQL is bind with other ip address that I have.<br />
<br />
This situation occurred when I tried to map my system with other ip-address.<br />
<br />
If this does not work try below methods<br />
<br />
1) Edit file "/etc/hosts.deny" and commented out the default access list rule as shown below.<br />
<span class="Apple-style-span" style="color: #0b5394;"># ALL:ALL</span><br />
<br />
2) Next I included that statement in "/etc/hosts.allow" as shown below.<br />
<span class="Apple-style-span" style="color: #0b5394;">ALL:ALL or mysqld: 127.0.0.1 : ALLOW</span></div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-85786658338271566792011-10-12T13:07:00.000+05:302011-10-12T13:14:41.577+05:30Images not showing in IE<div dir="ltr" style="text-align: left;" trbidi="on">
A very difficult problem with very simple solution.<br />
<br />
When you run Internet Explorer, the Internet Explorer cache is not used as you expect when you run innerHTML code to insert the same image multiple times.<br />
<br />
Here’s the problem: Internet Explorer forgets to look into its own cache when inserting HTML via JavaScript DOM manipulation (read: if you use img tags or any tags with CSS background images, Internet Explorer will always try to redownload these images).<br />
<br />
To work around this problem, try following steps:<br />
<ol style="text-align: left;">
<li>Preload the image in a DIV element with the display:none attribute:<br /><span class="Apple-style-span" style="color: #0b5394;"><DIV style='display:none'><IMG SRC='image.gif'></DIV><div style="display: none;">
<img src="image.gif" /></div>
</span></li>
<li>Create a brief time-delay so that Internet Explorer has enough time to verify whether the image is in the cache, and then call the innerHTML property.<br /><span class="Apple-style-span" style="color: #0b5394;">setTimeout (function(){},2000);</span></li>
</ol>
<b><span class="Apple-style-span" style="color: #cc0000;">Note:</span></b> Make sure to add <b>width</b> and <b>height</b> of image otherwise it may display in very very small size like a dot.</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-12061802936456507452011-08-30T16:27:00.001+05:302011-08-30T16:43:53.132+05:30Internet Explorer with Ubuntu 11.04<div dir="ltr" style="text-align: left;" trbidi="on">First you need to install wine to get it through:<br />
<span class="Apple-style-span" style="color: #0b5394;">sudo apt-get install wine</span><br />
<br />
Steps to get Internet Explorer are:<br />
<br />
1. Open winetricks (Applications->wine->Winetricks)<br />
2. Choose the option, "Select the default wine prefix" (confusing to me since I don't know what a prefix is and it sounds like I'm doing something that will be the default for everything in wine)<br />
3. Click "OK"<br />
4. Choose option, "Install a Windows DLL or component"<br />
5. Click "OK"<br />
6. Now choose IE6, 7, or 8 from the list and check the checkbox<br />
<b><span class="Apple-style-span" style="color: red;">Note:</span></b> Choose one option at a time as wine need to restart after each install.<br />
7. Click "OK"<br />
<br />
After installation it will ask for "restart", this will not restart your system but restart the "wine".<br />
<br />
You also get some error messages, just click on OK.<br />
<br />
From now on, if you need to run the installed program then go to <span class="Apple-style-span" style="color: #0b5394;">Applications -> wine -> Browse C: Drive -> Program Files -> Internet Explorer -> Run "iexplore.exe" with "wine"</span><br />
<br />
So, would you ever say that you can not run Internet Explorer on Linux? :)</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com15tag:blogger.com,1999:blog-4142028447169690380.post-91899683334928024822011-08-26T17:18:00.000+05:302011-08-26T17:20:04.049+05:30Downgrade PHP<div dir="ltr" style="text-align: left;" trbidi="on"><br />
This post is all about downgrading your PHP 5.3.x to PHP 5.2 because some of your old packages will not work with the PHP 5.3.x.<br />
<br />
Essentially, all you have to do is tell the apt system where to find Karmic packages and then tell it that you want it to use Karmic's PHP packages.<br />
<br />
So put the "<a href="https://docs.google.com/leaf?id=0BxeCcIrK__P5NThiMzYyMDUtZjVhNi00ZjBmLWE4OTQtYTIyZDU4YjcxNzAx&sort=name&layout=list&num=50">karmic.list</a>" in /etc/apt/sources.list.d and the "<a href="https://docs.google.com/leaf?id=0BxeCcIrK__P5MDE4ZmJlOTUtMWI2NC00NWRmLTg1YjAtNzljZTBjZWYwZGMy&sort=name&layout=list&num=50">php</a>" into /etc/apt/preferences.d.<br />
<br />
Then:<br />
<span class="Apple-style-span" style="color: #0b5394;">sudo apt-get update<br />
</span><br />
<span class="Apple-style-span" style="color: #0b5394;">sudo apt-get remove php5 libapache2-mod-php5 php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache<br />
</span><br />
<span class="Apple-style-span" style="color: #0b5394;">sudo apt-get install php5 libapache2-mod-php5 php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache</span><br />
<br />
If you had not already installed apache, php, and mysql, you can do that with the above files in place and get the right versions without removing anything:<br />
<br />
<span class="Apple-style-span" style="color: #0b5394;">sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 php5-xsl php5-gd php-pear libapache2-mod-auth-mysql php5-mysql php5-curl php5-memcache</span><br />
<br />
<b><span class="Apple-style-span" style="color: #cc0000;">Note:</span></b> Your php.ini will have been replace, so you have to reset custom settings like memory_limit.</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-10984810084253848802011-08-19T14:00:00.000+05:302011-08-19T14:04:49.075+05:30MySql Forgot Password<div dir="ltr" style="text-align: left;" trbidi="on">If you know the password then it is very easy for you to reset the MySql Password but what if you do not remember the password and want to reset it.<br />
<br />
To figure it out I spent almost 2 days and now I am sharing so that same thing does not happen with you.<br />
<br />
Now, we just need to start MySQL with a flag to tell it to ignore any username/password restrictions which might be in place. Once that is done you can successfully update the stored details.<br />
<br />
First of all you will need to ensure that your database is stopped:<br />
<span class="Apple-style-span" style="color: #0b5394;">root@ravi: /etc/init.d/mysql stop</span><br />
<br />
Now you should start up the database in the background, via the mysqld_safe command:<br />
<span class="Apple-style-span" style="color: #0b5394;">root@ravi:~# /usr/bin/mysqld_safe --skip-grant-tables &</span><br />
<span class="Apple-style-span" style="color: #0b5394;">[1] 6702</span><br />
<span class="Apple-style-span" style="color: #0b5394;">Starting mysqld daemon with databases from /var/lib/mysql</span><br />
<span class="Apple-style-span" style="color: #0b5394;">mysqld_safe[6763]: started</span><br />
<span class="Apple-style-span" style="color: #0b5394;">Here you can see the new job (number "1") has started and the server is running with the process ID (PID) of 6702.</span><br />
<br />
Now that the server is running with the --skip-grant-tables flag you can connect to it without a password and complete the job:<br />
<br />
<span class="Apple-style-span" style="color: #0b5394;">root@ravi:~$ mysql --user=root mysql</span><br />
<span class="Apple-style-span" style="color: #0b5394;">Enter password:</span><br />
<span class="Apple-style-span" style="color: #0b5394;"><br />
mysql> update user set Password=PASSWORD('new-password-here') WHERE User='root';</span><br />
<span class="Apple-style-span" style="color: #0b5394;">Query OK, 2 rows affected (0.04 sec)</span><br />
<span class="Apple-style-span" style="color: #0b5394;">Rows matched: 2 Changed: 2 Warnings: 0</span><br />
<span class="Apple-style-span" style="color: #0b5394;"><br />
mysql> flush privileges;</span><br />
<span class="Apple-style-span" style="color: #0b5394;">Query OK, 0 rows affected (0.02 sec)</span><br />
<span class="Apple-style-span" style="color: #0b5394;"><br />
mysql> exit</span><br />
<span class="Apple-style-span" style="color: #0b5394;">Bye</span><br />
<br />
Hope this save your time :)<br />
<br />
</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-44841608893562154972011-07-12T15:40:00.000+05:302011-07-12T15:43:01.696+05:30Ubuntu 11.04 Login with Root UserI know sometimes it is very easy for any user to do this, but I got something else that took my lots of time to get "root" access.<br />
<br />
While using Ubuntu 11.04 I got an unexpected error i.e. "sudo: must be setuid root" and for this I need to login with root user but how as when I tried to login it is giving me the same error.<br />
<br />
I read somewhere that for the above problem I need to start my system on Recovery Console, but how? As soon as I start my system it is taking me to GUI Login Screen.<br />
<br />
Now to get access of "root" user follow the below steps:<br />
1) Restart system by HOLDING SHIFT key.<br />
2) While restarting press ESC key till you get the OS menu telling you for the recovery mode (Do not release the SHIFT key)<br />
3) Now you are on ROOT user and do whatever you want.<br />
<br />
Hope this helps :)Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-66055668830789772022011-07-12T15:32:00.000+05:302011-07-12T15:41:41.963+05:30Sudo: must be setuid rootHere is a solution to a common error when using <span style="color: #0b5394;">sudo</span><br />
<br />
Open terminal (CTRL+ALT+T) and use below commands<br />
<br />
<span style="color: #0b5394;">loginuser> sudo -l</span><br />
sudo: must be setuid root<br />
<span style="color: #0b5394;">loginuser></span><br />
<br />
To fix the error above <span style="color: #0b5394;">chown</span> and <span style="color: #0b5394;">chmod</span> the <span style="color: #0b5394;">sudo</span> file as root, in my case the file is in <span style="color: #0b5394;">/usr/bin</span><br />
<br />
<span style="color: #0b5394;">root>chown root:root /usr/bin/sudo</span><br />
<span style="color: #0b5394;">root>chmod 4755 /usr/bin/sudo</span><br />
<span style="color: #0b5394;">root>chmod 0400 /etc/sudoers</span><br />
<span style="color: #0b5394;">reboot system</span><br />
<br />
That should fix the error and you should be able to sudo without a problem.<br />
<br />
<b>Note:</b> You must be <a href="http://ravikumar85.blogspot.com/2011/07/ubuntu-1104-login-with-root-user.html">login with "root"</a> user.Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com3tag:blogger.com,1999:blog-4142028447169690380.post-86063952264951065412011-07-08T13:27:00.000+05:302011-07-08T13:31:09.447+05:30Install PHPUnit<b>Install pear on windows</b><br />
You probably need to do a very simple thing.<br />
<div style="color: #0b5394;"><i>C:\>xampp\php\go-pear.bat</i></div>if not upgraded then use "<i style="color: #0b5394;">pear upgrade-all</i>"<br />
<br />
<b>Install pear on Ubuntu</b><br />
Install: <i style="color: #0b5394;">sudo apt-get install php-pear</i><br />
update its own channel: <i style="color: #0b5394;">sudo pear channel-update pear.php.net</i><br />
upgrade:<span style="color: #0b5394;"> </span><i style="color: #0b5394;">sudo pear upgrade-all</i><br />
<br />
Now proceed with below steps<br />
<ol style="color: #0b5394;"><li><i>pear channel-discover pear.phpunit.de</i></li>
<li><i>pear channel-discover pear.symfony-project.com</i></li>
<li><i>pear install phpunit/PHPUnit</i></li>
</ol>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-54933410844016820312011-06-08T11:16:00.000+05:302011-06-08T11:18:11.754+05:30Fatal error: Call to undefined method domdocument<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #a64d79;">I know you got frustrated with this problem, but after knowing the answer you will cetainly laugh :)</div><br />
To remove this error, you need to comment (add ; before) the extension for domxml in php.ini - or actually BOTH of the php.ini files in XAMPP:<br />
<br />
<span style="color: #0b5394;">[path to xampp folder]/php/php.ini</span><br />
and:<br />
<span style="color: #0b5394;">[path to xampp folder]/apache/bin/php.ini</span><br />
<br />
<span style="color: #0b5394;">;extension=php_domxml.dll</span><br />
<br />
<div style="color: #cc0000;">Do not forget to restart your apache, sometimes you need to restart your computer.</div><br />
Hope this help you to laugh and resolve the error :)</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-16566009116226280162011-03-22T13:54:00.000+05:302011-03-22T13:54:55.077+05:30Vimeo Video Crawling<div dir="ltr" style="text-align: left;" trbidi="on"><ol style="text-align: left;"><li>API<br />
<span class="Apple-style-span" style="color: #0b5394;">http://vimeo.com/api</span></li>
<li>Advance API<br />
<span class="Apple-style-span" style="color: #0b5394;">http://vimeo.com/api/docs/advanced-api</span></li>
<li>Video Search Function<br />
<span class="Apple-style-span" style="color: #0b5394;">http://vimeo.com/api/playground/vimeo.videos.search</span></li>
</ol></div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-34617938846597183422011-03-22T13:51:00.000+05:302011-03-22T13:51:40.294+05:30Dailymotion Video Crawling<div dir="ltr" style="text-align: left;" trbidi="on"><ol style="text-align: left;"><li>API<br />
<span class="Apple-style-span" style="color: #0b5394;">http://www.dailymotion.com/doc/api/index.html</span></li>
<li>PHP SDK<br />
<span class="Apple-style-span" style="color: #0b5394;">http://www.dailymotion.com/doc/api/sdk-php.html#sdk-php</span></li>
<li>Advance API Reference <br />
<span class="Apple-style-span" style="color: #0b5394;">http://www.dailymotion.com/doc/api/advanced-api-reference.html#advanced-api-reference</span></li>
<li>Need to call "video.list" function and parameter should be "search (string) - A search query"</li>
<li>API Documentation<br />
<span class="Apple-style-span" style="color: #0b5394;">www.dailymotion.com/doc/api/DailymotionAPIs.pdf</span></li>
</ol></div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-40947001051856958712011-03-16T12:32:00.000+05:302011-03-16T12:39:46.715+05:30YouTube Video Crawling<div dir="ltr" style="text-align: left;" trbidi="on">Hi Guys,<br />
<br />
I got the chance to work on YouTube API so thought that I should share the useful links so that it saves your time.<br />
<ol style="text-align: left;"><li>YouTube API<br />
<span style="color: #0b5394;">http://code.google.com/apis/youtube/getting_started.html#data_api</span> </li>
<li>Get search term feed<br />
<span style="color: #0b5394;">http://gdata.youtube.com/feeds/api/videos?q=internet&v=2 (include the video id also) </span></li>
<li>PHP Guide<br />
<span style="color: #0b5394;">http://code.google.com/apis/youtube/2.0/developers_guide_php.html </span></li>
<li>YouTube API with PHP<br />
<span style="color: #0b5394;">http://www.ibm.com/developerworks/xml/library/x-youtubeapi/ </span></li>
<li>API Parameters<br />
<span style="color: #0b5394;">http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html#Searching_for_Videos </span></li>
<li>Guide to display Videos<br />
<span style="color: #0b5394;">http://code.google.com/apis/youtube/2.0/developers_guide_protocol_displaying_list_of_videos.html </span></li>
<li>Custom YouTube Video Player<br />
<span style="color: #0b5394;">http://tutorialzine.com/2010/07/youtube-api-custom-player-jquery-css/</span></li>
</ol><span style="color: #0b5394;"> <span style="color: black;">Hope this links help you to save your time :)</span></span></div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com6tag:blogger.com,1999:blog-4142028447169690380.post-46016081355609744342011-02-24T17:21:00.000+05:302011-02-24T17:21:07.282+05:30Infinite loop in Facebook Application<div dir="ltr" style="text-align: left;" trbidi="on">Replace this line<br />
<div style="color: #0b5394;">$fb_user_id = $facebook->require_login();</div>to<br />
<div style="color: #0b5394;">$fb_user_id = $facebook->require_login($required_permissions = 'publish_stream');</div><br />
You may change the permissions as per your requirement.</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com2tag:blogger.com,1999:blog-4142028447169690380.post-86448123831539750502011-02-24T17:02:00.000+05:302011-02-24T17:21:11.420+05:30How To Resize iFrame & Remove Scrollbar From Your iFrame Facebook App?<div dir="ltr" style="text-align: left;" trbidi="on">If you are looking for PHP SDK <a href="https://github.com/facebook/php-sdk/">Click Here</a> to download it.<br />
<br />
Code I used to remove the scrollbar from facebook application is this: <br />
<div style="color: #0b5394;"><script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script></div><div style="color: #0b5394;"><script type="text/javascript"></div><div style="color: #0b5394;">function framesetsize(w,h){</div><div style="color: #0b5394;"> var obj = new Object;</div><div style="color: #0b5394;"> obj.width=w;</div><div style="color: #0b5394;"> obj.height=h;</div><div style="color: #0b5394;"> FB.Canvas.setSize(obj);</div><div style="color: #0b5394;">}</div><div style="color: #0b5394;"></script></div><div style="color: #0b5394;"><body onload="framesetsize(500,2100)"></div><div style="color: #0b5394;"> <div id="fb-root"></div></div><div style="color: #0b5394;"> <div style="height: 2000px"></div><div style="color: #0b5394;"> </div> </div><span style="color: #0b5394;"></body> </span> <br />
<br />
Make sure you set the facebook application setting to AutoResize, to do so follow this instructions:<br />
<ol style="text-align: left;"><li>Login to your Facebook account</li>
<li>Go to <a href="http://www.facebook.com/developer">Developer</a> panel </li>
<li>Go to your application</li>
<li>Click on Edit Setting</li>
<li>Click on Facebook Integration Tab</li>
<li>Select <span style="color: #0b5394;">IFrame size</span> to <span style="color: #0b5394;">Auto-resize</span></li>
</ol>Hope this help you to get rid of scrollbars :) </div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com4tag:blogger.com,1999:blog-4142028447169690380.post-17784718064915592011-02-24T16:45:00.000+05:302011-02-24T17:00:22.789+05:30FB.Event.subscribe is not working in IE<div dir="ltr" style="text-align: left;" trbidi="on">The code that I am using is this:<br />
<br />
<div style="color: #0b5394;"><script src="http://connect.facebook.net/en_GB/all.js#xfbml=1"></script></div><div style="color: #0b5394;"><script></div><div style="color: #0b5394;">$(document).ready(function(){</div><div style="color: #0b5394;"> FB.Event.subscribe('edge.create', function(response) {</div><div style="color: #0b5394;"> window.location= 'likeApp.php';</div><div style="color: #0b5394;"> });</div><div style="color: #0b5394;">});</div><div style="color: #0b5394;"></script></div><br />
The above code works fine in all browsers except IE.<br />
<br />
After searching I came to know that we must add the fb-root element just after the body tag (Make sure this tag is right after your body tag):<br />
<div style="color: #0b5394;"><div id="fb-root"></div></div><div style="color: #0b5394;"><br />
</div><div style="color: #0b5394;"><b><span style="color: black;">Hope this helps :)</span></b> </div></div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com4tag:blogger.com,1999:blog-4142028447169690380.post-16397212056480863572011-02-11T10:53:00.000+05:302011-02-11T10:58:53.773+05:30How to remove top panel Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">I have got this problem when I tried to put one more panel on the top panel and set it to auto hide, it went into infinite loop and thus my top panel also stopped working.<br />
<br />
This is the bug of Ubuntu and if you have the same problem then do the following steps:<br />
<ol style="text-align: left;"><li>Go to terminal, I know your ALT+F2 is not working, try using <span style="color: #0b5394;">CTRL+ALT+F3</span></li>
<li>Find the toplevel directory where all the panel information stores<br />
Code: <span style="color: #0b5394;">locate toplevels</span></li>
<li>Go to toplevel directory<br />
Code: <span style="color: #0b5394;">cd /home/username/.gconf/apps/panel/toplevels</span></li>
<li>Go back one step<br />
Code: <span style="color: #0b5394;">cd ..</span></li>
<li>Rename the toplevel directory<br />
Code: <span style="color: #0b5394;">mv toplevels toplevels_old</span></li>
<li>Log Off the panel and login again<br />
Code: <span style="color: #0b5394;">sudo service gdm restart</span></li>
<li>Now all your panel comes, remove/change the extra panel from top or bottom</li>
<li>Restore the toplevel directory (Go to the directory again)<br />
Code: <span style="color: #0b5394;">mv toplevels_old toplevels</span></li>
<li>Problem is Solved :) :)</li>
</ol> Hope this wont take much time to resolve the problem. Let me know in case of any confusion :)</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com0tag:blogger.com,1999:blog-4142028447169690380.post-31576195219047096492011-02-07T17:31:00.000+05:302011-02-07T17:42:38.603+05:30Windows Programs is not working in Wine Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">Dreamweaver or SqlYog is not working after installing through wine in Ubuntu.<br />
<br />
If wine is not installed in your computer then use this command to install it:<br />
<span style="color: #0b5394;">sudo apt-get install wine</span><br />
<br />
Steps that I followed to resolve this problem are:<br />
<br />
1) Google of course, but you do not need to do, so skip this :)<br />
2) Go to -> Application -> Wine -> Browse C: Drive<br />
3) Go to -> Windows -> system32<br />
4) Download these two files <br />
5) Paste it in <span style="color: #0b5394;">system32</span> folder<br />
6) Go to -> Application -> Wine ->Configure Wine<br />
7) Click on Libraries <a href="https://docs.google.com/leaf?id=0BxeCcIrK__P5ZTA3ZjAxMmUtZDdjYi00Yzk3LTk5OTktNWVlMzg2YzhlMzM0&hl=en" target="_blank">odbcint.dll</a> and <a href="https://docs.google.com/leaf?id=0BxeCcIrK__P5ODkwMmY1MmMtYTdhZS00NjVmLWE1YmUtNjZhYTE1ZTI1M2Qy&hl=en" target="_blank">odbc32.dll</a><br />
8) Click on drop down of "New override for library"<br />
9) Write odbc32 and click Add<br />
10) Write odbcint and click Add<br />
11) Click on Apply and close window.<br />
12) Reinstall your application if it is not start working yet<br />
<br />
Hope this helps :)</div>Ravihttp://www.blogger.com/profile/03138593663780879206noreply@blogger.com2