Posts

how to build hyperlink for query string in php -

i have question, how can add variable in current url book.php?action=addressbook i want add book.php?action=addressbook&page=2 how generate hyperlink this, have tried using $_server['php_self'] query string not included in url showing that book.php?page=2 i want append other variables query string please you can use http_build_query(); append more params url $params = $_get; $params["item"] = 45; $new_query_string = http_build_query($params); for instance: $data = array('page'=> 34, 'item' => 45); echo http_build_query($data); //page=34&item=45 or include amp echo http_build_query($data, '', '&'); //page=34&&item=45

How do I avoid version conflicts using NServiceBus with Castle Windsor WcfFacility? -

it appears nservicebus built against castle windsor 2.0.0.0, whilst wcffacility needs built against 2.5.2. is there way can run both nservicebus , wcffacility in same project? we're developing network service use both wcf , nservicebus communicate other components , having endless problems windsor version conflicts. john simons (member of castle team) working nservicebus team upgrade windsor in nservicebus: https://github.com/nservicebus/nservicebus/pull/28 so go , jump discussion, test john's fork, etc.

objective c - How to animate rotation of MPMoviePlayerController? -

i'm making video player ipad , i'm having trouble animating rotation properly. deal rotation setting auto rotation mask, since i'm working video player want preserve aspect ratio , i'm not sure how auto rotation mask. i did quick , dirty solution without animation correct behavior: - (void)didrotatefrominterfaceorientation:(uiinterfaceorientation)frominterfaceorientation { movieplayer.view.frame = cgrectmake(0, 0, self.view.frame.size.width, self.view.frame.size.width*0.75); } it works correctly, it's not pretty. i'm preparing app demo, working correctly isn't enough, has pretty. i tried following , think can guess why doesn't work: - (void)willrotatetointerfaceorientation:(uiinterfaceorientation)tointerfaceorientation duration:(nstimeinterval)duration { [uiview animatewithduration:duration animations:^{ movieplayer.view.frame = cgrectmake(0, 0, self.view.frame.size.width, self.view.frame.size.width*0.75); }]; } that...

reporting services - How do I only set the default parameter values for a report if it is running as an email subscription -

i have report has start date , end date parameters. want parameters set yesterday's date if report being run email subscription , must left empty if report being viewed in web browser user user can select date range without report automatically rendering first time. how go doing this? it takes in part of state parameter settings subscription date: use default value , assuming parameters specify date in format: "date" -1 normal date offer , able choose date if needed

c# - ASHX renders as broken image -

i've got vexxing problem ashx handler renders captcha image. thing makes vexxing working fine 2 months ago , when went again today had stopped working. what i've got page throws in captcha every often. markup example of challenge: <img class="challengedtl" src="challenge.ashx?tkn=0057ea27-4d35-4850-9c6f-7a6fdc9818e2"/> the guid references record in sql table contains actual content of captcha status of captcha challenge, i.e. has been processed , if did user right etc. on page markup found, image displays broken jpeg. when drop breakpoint in ashx processrequest() method can see ashx never being called. when take url out of source attribute , run directly address bar in browser, hit break point in processrequest , captch image rendered fine. i don't believe ashx code problem, since works when call directly. problem seems why ashx isn't being called main page. given working in february @ loss explain going on. i know has h...

c++ - One method for doing the same with different variables -

i have that class foo { bar a, b, c; void dostuffwitha(); void dostuffwithb(); void dostuffwithc(); } instead of writing implementation each of methods want template. how that? cheers, dirk edit: i explicitly need know variable stuff (recursion): class foo { bar a, b, c; foo* parent; static void dorecursivestuffwitha(foo *_node) { if(_node->parent==null) { return; } else { dorecursivestuffwitha(_node->parent) } } static void dorecursivestuffwithb(foo *_node) { if(_node->parent==null) { return; } else { dorecursivestuffwithb(_node->parent) } } static void dorecursivestuffwithc(foo *_node) { if(_node->parent==null) { return; } else { dorecursivestuffwithc(_node->parent) } } } edit2: maybe explain better problem is: class foo { public: int a, b, c; ...

html - Why does white-space nowrap have no effect on LI's in Internet Explorer? -

i li's display on same line, set each li's display property inline-block , set white-space = nowrap on parent ul. expected non-wrapping behaviour in firefox , chrome, ie8 ignores nowrap , displays items on underneath other. any idea doing wrong? here html , css... <html> <head> <style type="text/css"> li { display: inline-block; list-style: none outside none; padding: 0px 10px 0px 10px; white-space: nowrap; } ul { white-space: nowrap; } </style> </head> <body> <div style="float: left; width: 300px;"> <ul> <li> menu 1 </li> <li> menu menu menu 2 </li> <li> ...