func handleMyInformation(w http.ResponseWriter, r *http.Request) {
	cxt := appengine.NewContext(r)
	chMyInfo := make(chan *personal.MyInfo)
	chTweetActivesList := make(chan *personal.ActivesList)
	chCommentActivesList := make(chan *personal.ActivesList)
	chApiUser := make(chan *personal.Me)

	defer func() {
		if err := recover(); err != nil {
			cxt.Errorf("handleMyInformation: %v", err)
			fmt.Fprintf(w, `{"status":%d}`, common.STATUS_ERR)
		}
	}()

	args := r.URL.Query()
	me, _:= strconv.Atoi(args[common.ME][0] ) //Show me? 0 not, !=0 yes.
	uid, _ := strconv.Atoi( args[common.UID][0]  )   //Which tweet item

	showMe := false
	if me > 0 {
		showMe = true
	}

	cookies := r.Cookies()           //Session in cookies passt
	session := cookies[0].Value      //Get user-session
	access_token := cookies[1].Value //Get user-token

	go personal.MyInformation(cxt, session, uid, chMyInfo)
	pMyInfo := <-chMyInfo

	// go personal.TweetActiveList(cxt, session, access_token, uid,  1, showMe, chTweetActivesList)
	// sTweetActivesList := (<-chTweetActivesList).StringActivesArray()//"null"
	sTweetActivesList := "null"
	if pMyInfo.Notice.ReferCount > 0 {
		cxt.Infof("ReferCount: %v", pMyInfo.Notice.ReferCount )
		//Get first page of active-list of at you of tweets that I joined.
		pTweetActivesList := personal.LastTweetActiveList(cxt, session, access_token, uid,   showMe, chTweetActivesList)

		if pTweetActivesList != nil {
			sTweetActivesList = pTweetActivesList.StringActivesArray()
			cxt.Infof("sTweetActivesList: %v", sTweetActivesList )
		}
	}

	// go personal.CommentsActiveList(cxt, session, access_token, uid, 1, showMe, chCommentActivesList)
	// sCommentActivesList := ( <-chCommentActivesList).StringActivesArray()//"null"
	sCommentActivesList := "null"
	if pMyInfo.Notice.ReplyCount > 0 {
		cxt.Infof("ReplyCount: %v", pMyInfo.Notice.ReplyCount )
		//Get first page of active-list of comments of tweets that I've written.
		pCommentActivesList := personal.LastCommentActiveList(cxt, session, access_token, uid,  showMe, chCommentActivesList)

		if pCommentActivesList != nil {
			sCommentActivesList = pCommentActivesList.StringActivesArray()
		}
	}

	go personal.GetMe(cxt, session, access_token, chApiUser)
	pMe := <-chApiUser
	homeUrl := ""
	editUrl := ""
	if pMe != nil {
		homeUrl = pMe.Url
		editUrl = pMe.Url + common.EDIT_URL
	}
	s := fmt.Sprintf(`{"status":%d, "am":%s,  "url" : {"home":"%s", "edit" : "%s"},  "atMe" : %s,  "comments":%s}`, common.STATUS_OK, pMyInfo, homeUrl, editUrl, sTweetActivesList, sCommentActivesList)
	w.Header().Set("Content-Type", common.API_RESTYPE)
	fmt.Fprintf(w, s)
}
//Get my personal information.
Get my personal information.
// Get my personal information .
func handleMyInformation(w http.ResponseWriter, r *http.Request) {
	cxt := appengine.NewContext(r)
	chMyInfo := make(chan *personal.MyInfo)
	chTweetActivesList := make(chan *personal.ActivesList)
	chCommentActivesList := make(chan *personal.ActivesList)
	chApiUser := make(chan *personal.Me)
	defer func() {
		if err := recover(); err != nil {
			cxt.Errorf("handleMyInformation: %v", err)
			fmt.Fprintf(w, `{"status":%d}`, common.STATUS_ERR)
		}
	}()
	args := r.URL.Query()
	me, _:= strconv.Atoi(args[common.ME][0] ) 
	uid, _ := strconv.Atoi( args[common.UID][0]  )   
	showMe := false
	if me > 0 {
		showMe = true
	}
	cookies := r.Cookies()           
	session := cookies[0].Value      
	access_token := cookies[1].Value 
	go personal.MyInformation(cxt, session, uid, chMyInfo)
	pMyInfo := <-chMyInfo
	sTweetActivesList := "null"
	if pMyInfo.Notice.ReferCount > 0 {
		cxt.Infof("ReferCount: %v", pMyInfo.Notice.ReferCount )
		pTweetActivesList := personal.LastTweetActiveList(cxt, session, access_token, uid,   showMe, chTweetActivesList)
		if pTweetActivesList != nil {
			sTweetActivesList = pTweetActivesList.StringActivesArray()
			cxt.Infof("sTweetActivesList: %v", sTweetActivesList )
		}
	}
	sCommentActivesList := "null"
	if pMyInfo.Notice.ReplyCount > 0 {
		cxt.Infof("ReplyCount: %v", pMyInfo.Notice.ReplyCount )
		pCommentActivesList := personal.LastCommentActiveList(cxt, session, access_token, uid,  showMe, chCommentActivesList)
		if pCommentActivesList != nil {
			sCommentActivesList = pCommentActivesList.StringActivesArray()
		}
	}
	go personal.GetMe(cxt, session, access_token, chApiUser)
	pMe := <-chApiUser
	homeUrl := ""
	editUrl := ""
	if pMe != nil {
		homeUrl = pMe.Url
		editUrl = pMe.Url + common.EDIT_URL
	}
	s := fmt.Sprintf(`{"status":%d, "am":%s,  "url" : {"home":"%s", "edit" : "%s"},  "atMe" : %s,  "comments":%s}`, common.STATUS_OK, pMyInfo, homeUrl, editUrl, sTweetActivesList, sCommentActivesList)
	w.Header().Set("Content-Type", common.API_RESTYPE)
	fmt.Fprintf(w, s)
}
func handleMyInformation ( w http . ResponseWriter , r * http . Request ) { cxt := appengine . NewContext ( r ) chMyInfo := make ( chan * personal . MyInfo ) chTweetActivesList := make ( chan * personal . ActivesList ) chCommentActivesList := make ( chan * personal . ActivesList ) chApiUser := make ( chan * personal . Me ) defer func ( ) { if err := recover ( ) ; err != nil { cxt . Errorf ( " " , err ) fmt . Fprintf ( w , `{"status":%d}` , common . STATUS_ERR ) } } ( ) args := r . URL . Query ( ) me , _ := strconv . Atoi ( args [ common . ME ] [ 0 ] ) uid , _ := strconv . Atoi ( args [ common . UID ] [ 0 ] ) showMe := false if me > 0 { showMe = true } cookies := r . Cookies ( ) session := cookies [ 0 ] . Value access_token := cookies [ 1 ] . Value go personal . MyInformation ( cxt , session , uid , chMyInfo ) pMyInfo := <- chMyInfo sTweetActivesList := " " if pMyInfo . Notice . ReferCount > 0 { cxt . Infof ( " " , pMyInfo . Notice . ReferCount ) pTweetActivesList := personal . LastTweetActiveList ( cxt , session , access_token , uid , showMe , chTweetActivesList ) if pTweetActivesList != nil { sTweetActivesList = pTweetActivesList . StringActivesArray ( ) cxt . Infof ( " " , sTweetActivesList ) } } sCommentActivesList := " " if pMyInfo . Notice . ReplyCount > 0 { cxt . Infof ( " " , pMyInfo . Notice . ReplyCount ) pCommentActivesList := personal . LastCommentActiveList ( cxt , session , access_token , uid , showMe , chCommentActivesList ) if pCommentActivesList != nil { sCommentActivesList = pCommentActivesList . StringActivesArray ( ) } } go personal . GetMe ( cxt , session , access_token , chApiUser ) pMe := <- chApiUser homeUrl := " " editUrl := " " if pMe != nil { homeUrl = pMe . Url editUrl = pMe . Url + common . EDIT_URL } s := fmt . Sprintf ( `{"status":%d, "am":%s,  "url" : {"home":"%s", "edit" : "%s"},  "atMe" : %s,  "comments":%s}` , common . STATUS_OK , pMyInfo , homeUrl , editUrl , sTweetActivesList , sCommentActivesList ) w . Header ( ) . Set ( " " , common . API_RESTYPE ) fmt . Fprintf ( w , s ) }
Get my personal information.
Get my personal information .
//Show me? 0 not, !=0 yes. //Which tweet item //Session in cookies passt //Get user-session //Get user-token // go personal.TweetActiveList(cxt, session, access_token, uid,  1, showMe, chTweetActivesList) // sTweetActivesList := (<-chTweetActivesList).StringActivesArray()//"null" //Get first page of active-list of at you of tweets that I joined. // go personal.CommentsActiveList(cxt, session, access_token, uid, 1, showMe, chCommentActivesList) // sCommentActivesList := ( <-chCommentActivesList).StringActivesArray()//"null" //Get first page of active-list of comments of tweets that I've written.