Monday, November 21, 2011

Android Game : Monkey N Bananas

Cute, Funny and Little Android Game : Monkeys N Bananas 

As a little monkey you just need to steal the bananas from the big ape :)
But make sure big ape doesn't see while stealing his bananas otherwise you are going to see stars in the daylight. 






Search this game in Android Market

*All screenshots taken on my Motorola Milestone Phone running MIUI ROM

Thursday, October 13, 2011

MIUI Android ROM screenshots "Motorola Milestone"

These all are the MIUI Android ROM screenshots I took on my Motorola Milestone :)
Cool MIUI Android lockscreens.

 

 

 

Cool MIUI Android homescreens


 

Cool MIUI Android Music Player


 

 

 

Cool MIUI Android random screenshots


 

 

  







Thursday, September 8, 2011

Generate correct SEF urls in joomla

I was constructing links like below in JmailAlerts plugins to generate SEF urls
$link=JRoute::_(JURI::root().'index.php?option=com_eventlist&view=details&id='.$row->id);
But it was not generating SEF urls at all.
I found this solution for generating SEF urls on joomla forum.
$link=JURI::root().substr(JRoute::_('index.php?option=com_eventlist&view=details&id='.$row->id),strlen(JURI::base(true))+1);
This generates absoulte SEF urls you need as per SEO settings in Global Configuration. 

Tuesday, August 16, 2011

Setting up POP3 for Hotmail account on Android phone

Here are the steps to setup a POP3 account for hotmail on your android phone


1. Click on Add Account
a. Enter Full username
b. Enter password
Click on Manual Setup




2. Incoming POP3 Mail Server Setting :
User Name : user@hotmail.com
Password : your email password
Incoming Mail Server/Pop3 Server : pop3.live.com
Port : 995
Security Type : SSL
Click on Next.
If settings are OK and password is valid, you will be asked to enter outgoing mail server settings-




3. Outgoing POP3 Mail Server Setting :
Outgoing Mail Server/SMTP Server : smtp.live.com
Port : 587
Security (Port)/Security Type : SSL/TLS
User Name : user@hotmail.com
Password : your email password




4. Configure Account options as you want.




5. Set up an account name for this account.


That's it!

Thursday, August 11, 2011

How to open or extract rar files in Linux (Ubuntu)

NOTE * You need an active internet connection to install this program.

1. Open a terminal window by going to "Applications->Accessories->Terminal"

2. Type this command on terminal
sudo apt-get install unrar

3. Enter the password for current user and you are done

On terminal screen enter above command


bond@bonds-pc:~$ sudo apt-get install unrar


4. After installation, you can just right click on a .rar file and extract it directly. :) 


I did this on "Ubuntu 10.10 - the Maverick Meerkat". This might work on other Ubuntu versions as well.

Tuesday, February 1, 2011

The Right way to fetch media in JomSocial (in Joomla) when using Amazon S3

When using Amazon S3, here's some easy to use code snippets to fetch JomSocial Photo thumbnails, Video thumbnails, Group Avatar thumbnails etc..This is missing in the JomSocial Docs...

/*TO GET THUMBNAILS FOR JOMSOCIAL PHOTOS*/
//first get photo ids from local database
$query="SELECT  a.id, a.thumbnail FROM  jos_community_photos AS a”;
$db->setQuery($query);
$row  = $db->loadObjectList();
//JS API - this is used or getting thumbnails for JS photos
CFactory::load( 'models' , 'photos' );
$photo =& JTable::getInstance( 'Photo' , 'CTable' );
if(!empty($row))
{
    foreach($row as $data)
    {
     $photo->load( $data->id );
     $thumbnail    = $photo->getThumbURI();
     $data->thumbnail=$thumbnail;
    }      
}
//now $row will be having thumnails from local OR amazon s3 whatever applicable

/*TO GET THUMBNAILS FOR JOMSOCIAL VIDEOES*/
//first get video ids from local database
$query = "SELECT v.id,v.thumb FROM #__community_videos as v”;
$db->setQuery($query);
$video_result = $db->loadObjectList();
//JS API - this is used for getting thumbnails for JS videos
CFactory::load('models' , 'videos');
$video    =& JTable::getInstance( 'Video' , 'CTable' );
if(!empty($video_result))
{
foreach($video_result as $data)
    {
     if(($video->load($data->id)) && ($data->thumb)){
      $data->thumb=$video->getThumbnail();
     }
     else{
$data->thumb=JURI::root().'components'.DS.'com_community'.DS.'assets'.DS.'video_thumb.png';
   }
     }      
   }
//now $video_result  will be having video thumnails from local OR amazon s3 whatever applicable
/*TO GET GROUP-AVATAR FOR JOMSOCIAL GROUPS*/
//suppose you want to get a group avatar thumbnail for a group having groupid=3
//then use following code
$gid=3;
CFactory::load( 'models' , 'groups' );
$group=& JTable::getInstance( 'Group' , 'CTable' );
$group->load( $gid);
$avatar_img_source=$group->getThumbAvatar('avatar');
//now $avatar_img_source will be having the image source for group avatar thumbnail

/*TO GET USER-AVATAR FOR JOMSOCIAL USER*/
//suppose you want to get a user avatar thumbnail for a user having userid=3
//then use following code
$userid=62;
$user=&CFactory::getUser($userid);
$uimage = $user->getThumbAvatar();
//now $uimage will be having the image source for user avatar thumbnail

Wednesday, October 6, 2010

Split and Combine .ISO file in Ubuntu

Here are some linux commands that can be used to split and combine .ISO file.

Goto the directory in which .iso file is located
bond@bonds-desktop:~$ cd Downloads

to split file "myFile.iso" in parts of size 3gb
bond@bonds-desktop:~/Downloads$ tar cvzf - myFile.iso | split -d -b 3000m - myFile.iso.tar.gz.

output shown- myFile.iso

This creates parts as follows in the same folder
myFile.iso.tar.gz.00
myFile.iso.tar.gz.01

Now to combine parts
bond@bonds-desktop:~/Downloads$ cat myFile.iso.tar.gz.* | tar xvzf -

output shown- myFile.iso

and file is recreated

commands used are (you can split size to any size you want , here 100m)
tar cvzf - filename.iso | split -d -b 100m - filename.iso.tar.gz.
cat myFile.iso.tar.gz.* | tar xvzf -