Posts

iphone - how to pass data from one view to another view through parentviewcontroller -

i have data in read.m class. created parent view controller read. so,parent view home.m. in home.m used present modal view controller retailer class. want data read.m retailer.m through home.m. read.m -(void)requestfromtblviews:(id)navigation forindex:(int)index fortext:(nsstring *)text withdbdata:(nsarray *)dbdata{ [dbdata objectatindex:index]; } -(void)showretailerinfo { //nslog(@"show retailer information is...."); [self.readviewcontent getshowretailerinfo:self]; } home.m -(void)getshowretailerinfo:(id)currentview; { // nslog(@"get retailer info...."); retailer_info = [[retailerinfoviewcontroller alloc]initwithnibname:@"retailerinfoviewcontroller" bundle:[nsbundle mainbundle]]; retailer_info.view.frame = cgrectmake(0, 0, 320, 480); [retailer_info loaddefaultview]; [self presentviewcontroller:retailer_info animated:yes completion:nil]; [retailer_info release]; } make values or variables...

html - Twitter-bootstrap 3. Table with one row lose border after hover in Opera -

here html markup: <table class="table table-hover" style="width: 300px;"> <thead> <tr> <th>#</th> <th>first name</th> <th>last name</th> <th>username</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>mark</td> <td>otto</td> <td>@mdo</td> </tr> </tbody> </table> and jsfiddle after hovering on row lost border after change resize window stay visible . if table has more 1 row works fine. can see @ screencast video also: http://screencast.com/t/hpruvsubmce this bug exists in opera(any version) only. i'm using bootstrap 3 really interesting bug managed work around adding rule css .table th, .table td { padding: 4px; line-height: 5px; text-align: left; vertical-align: middle; border-top: 1px solid red ! importan...

symfony1 - How to write a route who accepts parameters from a model and custom parameters -

i want write route accepts kind of url: controller\:id\action\:param1\:param2 the route should mixed. should accept model doctrine primary key id should accept 2 custom parameters too: param1 , param2 how can achieve in symfony 1.4 ?

ios - iTunesConnect App Name Confusion -

i've developed ios app , going submit itunes. have following things. member center : a. create app id b. create certificates (for this, have create csr file key chain access) c. create profiles itunes : d. create app in itunes (on first time itunes asks company name display in itunes) e. enter details f. upload binary so far have done upto step d . step b , have created single csr file name common name (not company name), , used create both development , distribution certificates. when checked certificates in keychain access, both certificates show name. suspect distribution profile should show company name. i have following questions now. will itunes show name in distribution certificate company name? will itunes show name entered while created first app company name? is way created distribution certificate correct? can use same csr file certificates? i'll try answer questions, might mistaken, since it's been 1 , 1/2 years since did this....

c++ - Issue with Assignment Operator and Array Subscription operators -

i trying overload subscription operator , faced issue example class e , did @ first is: int e::operator[](int n){ if(n<length && n>0) return data[n]; else return 0; } let have object of e ( ), , want return a[0]. operator works fine. second thing wanted if want a[0] = 4 . need implement here? assignment operator? or subscription operator? advice how that, thanks! commonly subscript operator written 2 overloads: 1 read , 1 write. allows read in const contexts: write overload: int& e::operator[](size_t index) { if( index >= lenght ) throw std::out_of_range("subscript out of range"); else return data[n]; } read overload: (note const cualified) int e::operator[](size_t index) const { if( index >= lenght ) throw std::out_of_range("subscript out of range"); else return data[n]; }

Spring Custom filter chain -

i writing own filter chain dynamically load user roles database , filter urls application works fine when login application using login page but when try access protected url requires authentication instead of being redirected login page; getting class cast exception. debugging shows me string "anonymoususer" returned instead of domain principal object :( java.lang.classcastexception: java.lang.string cannot cast com.mytech.myapp.model.myappuser @ com.mytech.myapp.web.controller.helper.leftmenuhelper.getmanageleftmenu(leftmenuhelper.java:171) @ com.mytech.myapp.web.controller.managecontroller.setlefttree(managecontroller.java:1377) @ com.mytech.myapp.web.controller.managecontroller.rendermanagepage(managecontroller.java:379) @ com.mytech.myapp.web.controller.managecontroller.handlenosuchrequesthandlingmethod(managecontroller.java:371) @ org.springframework.web.servlet.mvc.multiaction.multiactioncontroller.handlerequestinternal(multiactioncontroller.java:413) @ or...

php - Insert pdf as blob and display -

so i'm getting pdf file send webservice me upload, it's send me base64binary type variable, and uploaded using below script : function saveeim($parameters) { mysql_query("insert tablename (filename, filesize, file) values ( '" . $parameters['filename'] . "', '". $parameters['filesize'] . "', '" . $parameters['file'] . "' ) ") or die (mysql_error()); } now getting uploaded, weird thing is, instance if upload 370kb file, it's 490kb in database.... don't know how happens, , if normal? now save in fileserver : $query = mysql_query("select file tablename id = '1' ") or die (mysql_error()); $fetch = mysql_fetch_array($query); $data = $fetch[0]; file_put_contents("user_123.pdf", $data); when open file getting saved in fileserver, error : "user_123.pdf cannot opened because filetype not supported or because damaged." ...