Posts

iphone - Receiving memory leak -

i new iphone development. displaying lots of images on view.also put button named load more more images.i downloading images on load more event. here code:` -(void)btnloadmorepressed { [appdelegate showloader:mbprogresshudmodeindeterminate]; requestresponsemanager *requestmanager=[requestresponsemanager sharedinstance]; [requestmanager setrequestpropery:self extrainfo:nil]; album *album=[appdelegate.currentuser.albumlistarray objectatindex:indexnum-1]; nsarray *obj_keys = [nsarray arraywithobjects:@"userid",@"albumid",@"sessionid",@"pageno",@"modmethod", nil]; nsarray *objects = [nsarray arraywithobjects:appdelegate.currentuser.userid,album.albumid,appdelegate.sessionid,[nsstring stringwithformat:@"%d",currentpage],@"getphotolistbyalbumid",nil]; nsdictionary *jsondictionary = [nsdictionary dictionarywithobjects:objects forkeys:obj_keys]; nsstring *jsonstring = [jsondictionary...

php - Tracking user actions on vote website -

i need information (php 5.3) tracking user has been delivered our website vote website (topofgames) , once user click 'yes' (successful vote) vote site has redirected user index page (by vote site). way reward user points spend in our shop after did successful vote. found method allows track users last url visited not sure how far can take us. not asking free code, appreciate hint of or keep in mind. thanks! edit: how our current system works. step 1: user log in. once logged in, he's redirected secured page vote buttons links vote sites (like topofgames). system record steps , needs log in reward points since it's user id bound not ip. step 1 note: our buttons have timer, because in many of sites can vote once every 24hs, if user clicked our button , entered vote site, can't click vote button again untill 24hs later (he need pass through button since our system records every step avouid fraud, can't go site). however found exploit here , it's users ab...

.net - ASP.Net MVC3: Hide item from _Layout file only in one view -

in layout file, displaying text, , want hide text in 1 view. how tell view loaded inside view? you can set id text container , in specific view can hide id jquery write code in view can hide text $(function() { $("#id").hide(); }

c# - Pass datas from Page to Page in Windows phone? -

i want pass datas page1 page2. can achieve through code behind in windows phone... is there anyway achieve in 0% c# code , 100 % xaml code .. 1 guide me ?.. helpful... you can achieve using hyperlinkbutton <hyperlinkbutton navigateuri="/page2.xaml?data=somedata" content="click" />

php - Codeigniter MY_Model class -

i'm trying write own my_model base class i'm facing weird problem: /core/my_model.php function __construct() { if ( !empty($this->table)) { // query db, etc. } else { // though set $this->table value // in child class, ended here // it's empty!!!! log_message('error', 'some error message'); } // ... } } /models/test_model.php function __construct() { parent::__construct(); } // ... } even though set $this->table value in child class, ended finding $table value empty in my_model class, it's empty!!!! hint please?! unless need specific/special - should use jamie rumbelows "my_model" - better write (or me) - , allows focus writing other code. no need re-invent wheel. you can code github here and here awesome tutorial shows how use my_model in application. honestly - giv...

asp.net - save current page of gridview when page dropdownlist selected index change -

i using multi page gridview display bunch of data. here code of gridview. <asp:gridview id="unverifiedlist" runat="server" autogeneratecolumns="false" allowsorting="true" allowpaging="true" onrowdatabound="unverifiedlist_rowdatabound" style="font-size:12px" > <columns><asp:boundfield headertext="surname" datafield="surname" readonly="true"/></columns> <columns><asp:boundfield headertext="firstname" datafield="givenname" readonly="true"/></columns> ...... <columns><asp:templatefield headertext="options" > <itemtemplate> <asp:dropdownlist id="options" runat="server" autopostback="true...

xaml - DataBinding to a context menu in wpf? -

i have usercontrol , defined so: <usercontrol x:name=usercontrolname> <usercontrol.resources> <style targettype="{x:type mycontrol}"> <setter property="contextmenu"> <setter.value> <contextmenu > <menuitem header="item" command="{binding elementname=usercontrolname, path=deletecommand"> </menuitem> </contextmenu> </setter.value> </setter> <setter property="template"> <setter.value> <controltemplate targettype="{x:type controltype}"> <grid> <!--mycontenthere--...