Posts

objective c - SplitViewController's master side sometimes is not rendered correctly when changing orientation in IOS 6.1 -

objective c - SplitViewController's master side sometimes is not rendered correctly when changing orientation in IOS 6.1 - i have tab bar controller has tabitems. of tabitems splitviewcontrollers. sometimes, when alter orientation, left side of splitview controller not render correctly, have black square in bottom. changing orienation again, problem solved. there nil special in code. in viewdidload have: [self.navigationcontroller setnavigationbarhidden:yes]; self.splitviewcontroller.delegate = self; and 1 splitviewcontroller delegate method handled trivially: - (bool)splitviewcontroller:(uisplitviewcontroller *)svc shouldhideviewcontroller: (uiviewcontroller *)vc inorientation:(uiinterfaceorientation)orientation { homecoming no; } i have nil more, tableview on cells on detail side. i've seen such issue , workaround came reset size of left side view controller's view , it's navigation controller's view: - (void)didrotatefrominter...

css precedence ambiguity -

css precedence ambiguity - i have next css rules: input[type="submit"],input[type="reset"]{ background-image:url(skins/images/bg_mega_hdr_on.png); background-repeat:no-repeat; padding:5px; margin:5px; color:#000; cursor:pointer; } #submit-search{ background-image:url(skins/images/bg_blue.png) !important; } now according css rule, id selector has higher precedence on generic selector why that, when apply rule, sec 1 overridden first one? note have applied !important, first 1 applied. something id="submit-search " notice space can cause odd selector behaviors ! ps . cant comment yet , little points ... css precedence

tcp - tcpreplay and timestamps -

tcp - tcpreplay and timestamps - i want utilize tcpreplay replay packet trace made of tcp , upd packets. is there way attach timestamp each outgoing packet, able compute round trip time 1 time replies have been received (and dumped)? otherwise, other tool should use? if sniff traffic @ same time tcpdump or wireshark, timestamp each packet on way out , replies. just warning though, tcpreplay doesn't back upwards replaying tcp streams servers since doesn't track state of tcp stream. you'll reset packets in reply. udp should ok. icmp works. if want more information, sure check out tcpreplay faq: http://tcpreplay.synfin.net/wiki/faq#doestcpreplaysupportsendingtraffictoaserver tcp udp timestamp ip packets

geolocation - distance between mobiles system -

geolocation - distance between mobiles system - i'm developing mobile , wanted implement feature show other mobile devices near you(changeable radius if it's possible) have same app using wifi or gps, whatever better. how do that(reference great guide/site great)? there sort of ready plugin or ^^? thanks. 1) app reads gps position of user id , send server , store recent one 2) app connect server , reads position of users, or users within aproximate distance current device position gps. fpr aproximate distance calculate distance between 2 lat/lon coordinates. ios , android have built in functions. otherwise easy self implement. mobile geolocation gps

oop - Object Oriented Design Suggestion required -

oop - Object Oriented Design Suggestion required - i need suggestion on ood. below situation. class a{ private b service_; private stopwatch timer_; private const int mintimetowait; public someoperation(){ timer_.start(); //call method on service_ async , subsribe event callback } private someoperationcallback() { timer_.stop(); int elapsedtime = timer_.elapsedtime(); if(elapsedtime < mintimetowait) thread.sleep(mintimetowait - elapsedtime) //continue after thread resumes } } i have class fires async operation, , after async operation returns need check if asycn operation returned in less mintimetowait, if yes wait mintimetowait completes , proceed other operations. now, doing right thing including logic check times , wait in someoperationcallback, or should create new class encapsulates logic , stopwatch , utilize class check , wait? thanks in advance replies. ...

java - Handling repeated values in template -

java - Handling repeated values in template - the documentation says can utilize @repeat lists defined in forms. http://www.playframework.com/documentation/2.1.0/javaformhelpers bottom of page. this might totally stupid question... can utilize similar map? right have helper class consist, string key , string value. works, have logic in template. in sentiment not good... edit: more info suppose have class article { ... map<string, string> resources; ...getters, setters... } i phone call view deal form return ok(form.render(form.form(article.class))); in form.scala.html @for((key, value) <-formart("resources")) { @key, @value } gives me error: value map not fellow member of play.data.form.field which makes finish sence, because not map anymore, formfield. there helper in scala deal list, have no thought how create helper deal map. (if seek similar, illustration utilize @repeat helper, gives me same error) ...

WPF Taskbar Restore/Minimize doesn't always work -

WPF Taskbar Restore/Minimize doesn't always work - so have big wpf application, , there icon on taskbar when application running. expect if click taskbar icon, application restore itself, or minimize if showing, standard windows functionality. however, have click several times work. i've done quite bit of research/programming, 1 simple item can not figure out. help appreciated, please allow me know if need provide more info. have tested using jumplist, users not want right click icon , click "restore". want left-click taskbar icon. .net 4.0, wpf 4. in advance everyone. check if there background processes running. wpf restore taskbar