Posts

iphone - UITableView CustomCell crash on Button Click -

this common question @ though have google , cross check code few times not able figure out crash *** -[mycustomcell performselector:withobject:withobject:]: message sent deallocated instance 0x96f6980 i have customcell named mycustomcell xib have 3 buttons facebook,twitter,linkedin. gave them ibaction in customcell class. when click on of them kind of crash. i using arc. in viewcontroller class have cellforrowatindexpath { static nsstring *cellidentifier = @"mycustomcell"; mycustomcell *cell = (mycustomcell*)[mytableview dequeuereusablecellwithidentifier:cellidentifier]; if (cell == nil) { nsarray *nib = [[nsbundle mainbundle] loadnibnamed:cellidentifier owner:self options:nil]; cell = (mycustomcell *)[nib objectatindex:1]; } return cell; } mycustomcell.m - (ibaction)facebookpressed:(basebutton *)sender { } - (ibaction)twitterpressed:(basebutton *)sender { } - (ibaction)linkedinpre...

php - Multiple Submit buttons, how do determine which one was clicked? -

i have form multiple submit buttons. each submit button img src trash can denotes delete icon messages in web based messaging mail inbox what best way figure out submit button icon clicked can write php/mysql code delete message? if(!empty($_post)){ // how figure out submit button has been clicked id of message delete? } <form method="post"> <input src="http://www.foo.com/img.png" id="button_1"> <input src="http://www.foo.com/img.png" id="button_2"> <input src="http://www.foo.com/img.png" id="button_3"> <input src="http://www.foo.com/img.png" id="button_4"> ... <input src="http://www.foo.com/img.png" id="button_100"> </form> set value each submit button , check in php , find 1 clicked <form method="post"> <img src="http://www.foo.com/img.png" id="button_1" name=...

Django urls: match '^$' and '^page/\d+)/$' in one urlpatterns -

i have view: index(request,page=1) for now, use match both "" , "page/\d+" views.index: url(r'^$', views.index) url(r'^page/(?p<page>\d+)/$', views.index) there many views need match both "" , "page/\d+", wonder if there easy way match 2 kinds of urls.thank you. you can use following url. url(r'^$|^page/(?p<page>\d+)/$', views.index) but have change view function follow: def index(request, page): if page none: page = 1 ... note : adds complexity in urlpatterns forget because makes harder debug , read.

c# - Unable to update the GridView in .Net (Date fields are not updating) -

below code gridview , query update , insert....but when update grid values update in database except date(all 3 fields). after updating date fields value null in database... using datepicker calendar. <asp:gridview id="gridview1" runat="server" cellpadding="5" forecolor="#333333" width="1000px" gridlines="none" onpageindexchanging="gridview_pageindexchanging" allowsorting="true" onsorting="gridview_sorting" autogeneratecolumns="false" borderstyle="outset" cellspacing="1" font-names="cambria" font-size="small" allowpaging="true" showfooter="true" showheaderwhenempty="true" datasourceid="sqldatasource1" onselectedindexchanged="gridview1_selectedindexchanged" > ...

Compiling VB6 Code on all files automatically -

i wanted regarding vb6 code. use different scada softwares ifix ge or vijeo citect schneider. front view of different files made these softwares graphic , end respective code of graphic in vb6 format. there thousand of graphics have huge amount of vb6 code in end. wanted know how can compile codes automatically. using vb6 software microsoft can access / open graphics in respective application. can go in script dont know how can compile code after automatically. 1 shed light. if has idead regarding same please reply. thanks & regards ptd we compile in normal batch file: for dll , ocx: "c:\programme\microsoft visual studio\vb98\vb6.exe" /makedll "c:\sourcecode\controls\education\education.vbp" for executables "c:\programme\microsoft visual studio\vb98\vb6.exe" /make "c:\c4sourcecode\programs\consolidate\concolidate.vbp" is looking for?

mongodb - Mongo Java finding Maching record in mongo array -

my sample doc is { "_id" : objectid("51f89c1484ae3aa758ad56e9"), "group_name" : "operator", "privileges" : [ "add group", "edit/delete group", "add user", "edit/delete user", "log history", "add stopwords group", "edit/delete stopwords group", "add stopwords", "edit/delete stopwords", "recomended stopwords" ], "users" : [ { "full_name" : "operator1", "user_name" : "operator", "password" : "pass$123", "status" : "active" }, { "full_name" : "sumit dshpande", "user_name" : "dsumit", "password" ...

windows - Visual Studio Throws Error: There is no editor available for <Crystal Report>.rpt -

Image
environment: windows 7; crystal report 13.0.6; visual studio 2012; there reports in vs project not open , throws error as: note: project migration vs 2005 vs 2012 , crystal reports visual studio.net sap crystal report developer version visual studio.net 13.0.6. i figured out self. answer responded in sap crystal report forum here