Posts

c# - Analyzing a CLR .dmp file in WinDbg -

i have c# .net 3.5 application created in visual studio 2008 crashing on windows xp sp3 (x86) pc no development environment. i have been able .dmp file pc , take windows 7 64-bit development pc , load windbg 6.12. but, can't see code in call stack c# application. looks it's entirely native call stack. the result !analyze -v below. i have relevant exe, dll, , pdb files in same directory .dmp. executable crashed compiled in debug mode. i have visual studio 2008, if that's easier use. opening dump file in there shows native call stack, nothing code. how can view clr call stack? 0:004> !analyze -v ******************************************************************************* * * * exception analysis * * * *******************************************...

php - Search for text in output and use whatever is behind the text -

i wondering how search text (ie: description), , use that's behind text variable (all on same line) in php. needs read external location, php file must ran (the php file reads content mysql database , outputs sort of index) any appreciated. edit clarify: sample input: lorum ipsum dolor sample output: dolor do mean given string: lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. $wordtofind = "cupidatat"; $alltextbehindwordtofind = substr($str, strpos($str, $wordtofind)); echo $alltextbehindwordtofind; // outputs: 'cupidatat non proident, sunt in culp...

CSS radial gradient as modal overlay background like Apple's -

i couldn't seem right. want radial gradient overlay similar apple's, nothing doing seemed close. i'd center circle have 25% radius, settle 350px radius. they this, yet i've seen newer versions user <canvas> . note ie or opera, need transparent png (not included in css code below) html: <html> <head> <link rel="stylesheet" href="gogo.css" type="text/css" media="screen" title="no title" charset="utf-8"> </head> <body class=" bg"> <div class="radialbg"> heelo world </div> </body> </html> css: body { margin: 0; padding: 0; } .bg { background: url(pattern.jpeg) repeat; } .radialbg { background: transparent -webkit-gradient(radial, center center, 50, center center, 460, from(transparent), to(#000)); background: -moz-radial-gradient(circle, transparent, #000); width: 100%; height: 100%...

authentication - How does 's login system work?

i'm implementing login system similar of stack overflow in 1 of websites. when login stack overflow, creates cookie named usr value. if delete cookie, logged out... so, can think uses sessions, in database, record user sessions. is right? secure? it's other built login/session system. when log in, system generates pseudo-random string identify uniquely - session id, gets sent out via cookie. when return, cookie sent so. so takes value in cookie, looks in session system (could flat files, database, can't tell), finds session represented session id, , loads process request. deleting cookie severs link between , site - on next visit, session cookie (which deleted) isn't sent, so has no way of identifying you, assumes brand new user, , doesn't show of "logged in" portions of site.

jquery - choose an option based on a textbox value -

we doing form, asking user enter price. the user enters price in input field of 456789 . i selectbox element automatically chooses 400,000 - 500,000 option how can done? <div class="field"> <label for="propertyprice">price</label> <input id="currency2" name="limitedtextfield" size="50" type="text" class="medium" onkeypress="return numbersonly(event, false)" onkeydown="limittext(this.form.limitedtextfield,this.form,12);" onkeyup="limittext(this.form.limitedtextfield,this.form,12);" maxlength="12" value="$<?=number_format($r['price'],2);?>" /> <p class="field_help">enter numbers.</p></div> <div class="field"> <label for="propertypricerange">price range </label> <select id=...

iphone - Pull to Refresh (ios) -

i implemented pull refresh here: https://github.com/leah/pulltorefresh . kind of works gets stuck spinning activity indicator. no text right of arrow. doing wrong? thanks! without code there's not can say, maybe try different implementation of pull refresh, enormego (ego) version, code @ github, here it's used in facebook app works.

android - Issues with personal listView Adapter -

i'm having troubles using own adapter class creating listview delimiter. i'm beginner in android development can't fix alone. i want create listview same layout seen on web site , , want items alphabetically ordered. so create 2 adapter, 1 adding delimiters, , other 1 handling specific layout of each item. the class listemusiccontainer arraylist sorted alphabetically name. each 1 works fine separately, when try out both, runtime error. the error doesn't appear when application starts, when try scroll (so guess i'm good). i don't why error when scrolling. how can solved? here adapter use create listview delimiter abstract public class musicadapter extends baseadapter{ abstract protected view getheaderview(string caption, int index, view convertview, viewgroup parent); private list<section> sections = new arraylist<section>(); private static int type_section_header = 0; public musicadapter() { super(); } public void...