768x90 Getting Online Shouldn't be Tough- $7.49 .com Domains at Go Daddy

ArrayCollection Mapping From Multiple Object Types

 private function listToString(element:*, index:int, arr:Array):String {
   var _return:String = "";
   if(element is FeedInfo){ 
     _return = element.address;
   }else if(element is UserFeed){
     _return = element.name;
   }else{
     _return = element.id;
   }
    return _return;
 }
    
 private function prepareSaveFeeds(_list:RxCollection):void{
   var _tmpUserFeed:UserFeed = new UserFeed;
   _tmpUserFeed.feedAccount = _account;
   _tmpUserFeed.user = userModel.currentUser;
   _tmpUserFeed.keywords = _list.toArray().map(listToString).join("::");
 }

The output will be

 "yacobus::reinhart::blog"

BackUp PostgreSQL in CommandLine

pg_dump -h db_host -U user_name db_name > dump_file.sql

And Restore by:

psql -h db_host -U user_name -d db_name -f dumpfilename.sql

 
powered by Blogger