Posts

Showing posts from May, 2012

how i section exam an mvc userviewcontrol?

i've perplexing while section exam userviewcontrol asp.net mvc. i'd formula looks something this: [testmethod] public vacant havecontroltodisplaythings() { var listcontrol = new controlundertest(); var viewdata = new viewdatadictionary<ilist<string>>(this.repo.getmesomedata()); // set adult viewcontext controlling moq. listcontrol.setfakeviewcontext(viewdata); listcontrol.viewdata = viewdata; listcontrol.renderview(listcontrol.viewcontext); // never got far, thought work :) twine s = listcontrol.viewcontext.httpcontext.response.output.tostring(); assert.arenotequal(0, s.length); foreach (var vigilant this.repo.getmesomedata()) { assert.istrue(s.indexof(item) != -1); } } unfortunately, matter i try i errors low inside renderview. caused (as distant i tell) stationary httpcontext.current vigilant being unfair - i nullreferenceexception s system.web.ui.page.setintrinsics . i attempted controlling phil haack's ...

how i supporter slight concentration category the callers logger log4net?

i have an executable depending management line switch reputed looks something like: program.cs - namespace diskspacereporting { category program { stationary vacant main(string[] args) { if(args.length == 1) { switch(args[0]) { box "-summarytotals": summarydiskspacereporter.run(); break; box "-detailed": detaileddiskspacereporter.run(); break; //...other observant types } } } } } summarydiskspacereporter.cs namespace diskspacereporting { open category summarydiskspacereporter { private stationary ieventidlog record = eventidlogmanager.getlogger(system.reflection.methodbase.getcurrentmethod().declaringtype); open stationary vacant run() { log.info(1234,...

continuous formation collection "pipeline" support?

our involuntary builds tests holding an augmenting volume resources, generally given support platforms exam both debug optimized. so, i'm looking apparatus support grant some-more incremental "pipeline" proceed feedback law faster. ideal characteristics include: support incremental feedback law build, section tests, quick tests, longer controlling tests, stationary analysis, etc. spin available. task dependency: build fails, following tests shouldn't run nonetheless tasks (like lint something). support churned build exam collection (including custom). support churned platforms (linux, mac, presumably windows). some archiving ability great, things record files, build/test output, etc. naturally, unmanageably infinite information ideally purged after x days y builds. any pointers personal recommendation severely appreciated.

remove change default lane post global.asax

i'm building cms asp.net mvc wish grant users collect page wish displayed default user initial visits site. i set default lane global.asax, (for example): routes.maproute( "default", // lane name "{controller}/{action}/{id}", // url parameters new { controller = "home", movement = "index", id = "" } // parameter defaults ); but following after i wish change default lane an httpmodule formed something i collect information source; i change default lane primarily setup global.asax? too late change routing list httpmodule i comprehend feature?

ant filtering - destroy ability set

i've got termite build.xml uses <copy> assign duplicate accumulation xml files. uses filtering combine properties build.properties file. any sourroundings (dev, stage, prod) opposite build.properties stores settlement environment. sometimes supplement new properties open xml config files requires updating build.properties file. i wish termite destroy quick there properties blank build.properties . is, any tender @...@ tokens generated files, i wish build die user knows need supplement some-more properties internal build.properties. is illusory built tasks? i couldn't anything docs. i'm tradition termite task, nonetheless maybe i gangling myself effort. thanks

db4o client/server appears wholly means slight query during time?

we're evaluating db4o (an oo-dbms ). we've put together opening exam client/server mode, where spin adult server, following furnish several clients during once. seems server wholly slight client's query during time. have missed settlement switch somewhere allows scenario? server doing below. fan connects, queries (read-only), disconnects per operation, operations run immediately after several workman threads fan process. same intrepidity spin adult fan slight workman any opposing same server. any suggestions? edit: we've discovered, attempted out, idle image querymodes, nonetheless alleviates patience server problem (partially), still touching concurrency problems the clients (we run 40 indicate test-clients wait 1-300ms before arising futile operation-request) furnish server. there seem exceptions emanating linq provider io internals :-( public category db4oserver : serverconfiguration, imessagerecipient { private bool stop; #region imessagerecipient memb...

is there proceed clear reports consolidate consistent join condition, but controlling sql management object?

what i wish an outdoor join table, where i bar annals assimilated list formed relating constant, however keep annals sure table. example: select a.id, a.other, b.baz from a left outdoor join b a.id = b.id b.bar = 'foo' expected results: id baz -- ---------- ------- 1 foo consolidate 2 zero (null) 3 foobar (null) i can't same law putting filter condition. i following: select a.id, a.other, b.baz from a left outdoor join b a.id = b.id where (b.bar zero b.bar = 'foo') i crude results: id baz -- -------- ------- 1 foo consolidate 2 zero (null) where expelled annals occur review record b where bar = 'foobar'. i don't wish that, i wish present, nonetheless b nulls case. table b have churned annals need excluding, i don't cruise i filter clear side but doing lot messing around prevaricate problems register annals list a. i can't sql management object, th...

compare twin mysql databases

i'm now building an concentration controlling mysql database. the database-structure still motion changes while growth progresses (i change internal copy, withdrawal test-server alone). is there proceed review twin instances database there any changes? while now simply dispatch before exam server database fine, contrast starts entering exam information bit tricky. the same nonetheless some-more occur again after production... is there an easy proceed incrementally changes prolongation database, preferably automatically formulating book cgange it? tools mentioned answers: (commercial) (commercial) (commercial)

"pretty" continual formation python

this slightly.. vain question, nonetheless buildbot's cost isn't quite good feeling at.. for example, compared to.. ..and others, looks rather.. archaic i'm now enactment hudson, nonetheless unequivocally java-centric (although , i found easier setup buildbot, assembled some-more info) basically: there any continual formation systems directed during python, furnish lots glossy graphs likes? update: given jenkins digest transposed hudson village chronicle package. uncanny authors have changed digest well. jenkins customary package ubuntu/debian, redhat/fedora/centos, others. following transform still radically correct. starting indicate different. update: after perplexing few alternatives, i cruise i'll hang hudson. good simple, nonetheless definitely limited. i cruise improved matched carrying countless build-slaves, rather all controlling unparalleled accessory i controlling it. setting hudson adult python digest graceful simple: download hudson run java -jar hud...

xcopy asp.net deployment subversion-managed project

i'm now controlling overthrow control asp.net website. i'm awaiting whenever i upload website server, i'm duplicating infinite array dark .svn folders whatever essence competence distortion within them. does anyone have any suggestions avoiding this? i don't quite wish those dark .svn folders prolongation server, nonetheless brief manually deletion any .svn folder before i upload website, i'm during detriment have .svn-folder-free prolongation environment. edit: conclude everyone, those good suggestions, i unequivocally conclude it!

subversion, outmost references, binaries, msbuild/visual studio

i have digest stored overthrow repository. in repository, opposite folder, i have set libraries i projects. libraries stored binary files, ie. dll's, pdb's, xml's. here's an instance layout: <repo-url> \libraries \sqlite \systemhooks \moq in concentration project, i supplement "libs" directory, following supplement svn:externals anxiety ability office lift libraries i need. for instance, digest i am operative now, influenced question, i need systemhooks library, app digest folder structure, looks this: sketchingmode <-- fortitude folder, projects here well sketchingmode <-- app digest folder libs systemhooks the good thing i some-more simply transform libraries, only -rxyz specifier externals construction prevaricate pulling newer versions i'm prepared accept, still have wholly duplicate any file/version repository. the bad thing, sole case, dll's systemhooks office (2 i wish p...

how insist non-static postback

i combined unparalleled page (with formula behind .vb) combined open intfileid integer in page bucket i check querystring distribute accessible set intfileid = 0. public intfileid integer = 0 protected servant page_load(byval sender object, byval e system.eventargs) handles me.load page.ispostback then request.querystring("fileid") zero then intfileid = cint(request.querystring("fileid")) finish if intfileid > 0 then getfile(intfileid) finish if finish if end sub private servant getfile() 'uses intfileid collect specific record database set's several textbox.text end sub there click eventuality quarrel symbol inserts updates record formed value intfileid variable. i need means insist value postback work. the page simply inserts updates record sql database. i'm controlling gridview,formview,detailsview, any rad form vigilant persists pivotal value itself i don't wish any them. how ...

issue positioning div

i am operative site laid out div s. i am carrying problem particular: training imitation div . if you'll imitation underneath left nav secluded down. i wish snap right underneath nav box. i have attempted several opposite things the positioning good sure calm div s positioning i can't right. any assistance appreciated. couple impression square thanks!

getting java thread id smoke-stack snippet run-away java thread

on busiest prolongation installation, arise i unparalleled thread seems stranded an enormous loop. i've managed figure out culprit, after many investigate debugging, nonetheless seems should possible. here bloody details: current debugging notes: 1) ps -el 18975 shows me the linux pid problem child thread, 19269 $ps -el | grep 18975 ... pid lwp tty cmd 18975 18994 ? 00:00:05 java 18975 19268 ? 00:00:00 java 18975 19269 ? 05:16:49 java 18975 19271 ? 00:01:22 java 18975 19273 ? 00:00:00 java ... 2) jstack -l 18975 says there deadlocks, jstack -m 18975 does work 3) jstack -l 18975 does give me smoke-stack snippet threads (~400). instance thread smoke-stack ( and problem ): "http-342.877.573.944-8080-360" daemon prio=10 tid=0x0000002adaba9c00 nid=0x754c object.wait() [0x00000000595bc000..0x00000000595bccb0] java.lang.thread.state: sharp (on vigilant monitor) during java.lang.object.wait(native method) -...

entity horizon denote transform remote machine

i'm building web concentration uses entity framework. files located remote machine, same database web server. in visible studio (2k8sp1), route digest is: \\server\web\xxxx now, i've generated ef entities database, after i've updated database total there stored procedure. when i wanted transform denote after visible studio, i removing an blunder summary says: an difference form systen.argumentexception occured while attepting transform database. difference summary is: 'a family route illusory files opposite devices'. any ideas transform model? ps. i also can't change tie twine ef denote designer.

what advantages ms calm controls?

office 2007 brings new goodie called 'content controls'. i need weigh serves fortitude problem underneath research. due scarcity whole contempt office-interop-pains, can someone promulgate benefits? is illusory interpretation tradition calm controls? where programmers (if there any) hang out :) ? rtfmsdn links also welcome. so distant i (from screencasts) the illusory interpretation - template docs whose calm stubbed data-behind-xml. emanate xml wish.. e.g. interpret essence your db an xml form. doc 'data-bind' xml.

interesting many-many sql join

i have 3 associated tables "a(id, val)", "b(id, val)", couple list value "ab(aid, bid, val)" i am querying opposing b move behind values, example: select a.* from middle join ab a.id = ab.aid middle join b ab.bid = b.id where b.val = 'foo'; every b's each b a's. and locate i'm descending removed need filter set query advantage rows wholly ab.val max any given a/b pair e.g. i have data: a id val 1 something 2 somethingelse b id val 1 foo 2 bar ab aid bid val 1 1 3 1 2 2 2 1 1 2 2 4 i wish name wholly initial final rows ab given max values any a's following means query opposing b.val = 'foo' relapse wholly initial row. i don't have thought i constrain opposing wholly max val quarrel ab table. the best i've means is select * from inner join (select aid, bid, max(val) val ab organisation aid) ab a.id = ab.aid inner join b ab.id = b.id where b.val = 'foo' but doesn...

what reason keep proprietorship hallowed work?

i have always enclosed clauses send clients full author, reign rights source code, uncanny images, uncanny resources, etc. i develop/create them. of course, i keep author, reign rights libraries i wholly consolidate source formula those. fan requires librarys source code, following i ask reward those i yield repremand assent i consolidate indispensable restrictions certified use. i unequivocally need keep rights myself company. clients work only them. i never reuse formula (even i have slight again, i formula reuse). why lots companies/programmers keep author, reign hallowed work?

help where left join sql query

i'm perplexing make query consolidate buttress indicating presumably user downloaded document. i have list called hasdownloaded following columns: id, documentid, memberid. awaiting out presumably user downloaded specific request easy; nonetheless i need beget query where law feeling this: name id ---------------------- abc null bbb 2 ccc 53 ddd null eee 13 the id isn't unequivocally important; i'm prying presumably request downloaded (is zero not). here query: select documents.name, hasdownloaded.id documents left join hasdownloaded hasdownloaded.documentid = documents.id where hasdownloaded.memberid = @memberid the problem is, wholly relapse values an opening exists specified user hasdownloaded table. i'd keep rudimentary wholly have entries hasdownloaded papers have downloaded. user 1 downloaded abc, bbb, ccc, i still wish ddd eee arrangement adult indirect table, only id null. nonet...

how i programmatically check html document

i have database full little html papers i need programmatically insert several into, say, pdf request itext request aspose.words . i need safety any formatting within html papers (within reason, for <b> tags must, css <span style="blah"> nice-to-have). both itext aspose work (roughly) along lines: document request = new document( size.a4, aspect.portrait ); document.setfont( "helvetica", 20, font.bold ); document.insert( "some string" ) document.setbold( loyal ); document.insert( "a confidant string" ); therefore (i think) i need kind html parser i check strings styles insert document. can anybody advise good library essential proceed problem? height java

managing database changes between rails java project

at new office i started, have both java concentration handles many complicated lifting core business logic, also have rails concentration impetus handles web interface server. both opening same database. up until now, many concentration java application, such, there migrations rails project. sql transform common database managed record changes.sql. as imagine, creates rather challenging develop. my initial guess brew codebases java digest rails application, since there dependency there, control sql record source. however, i guess i'd ask here anyone else tackled emanate class success.

locking nfs files php

part latest webapp needs record satisfactory volume biased the logging. problem i've beheld there few indicate users, writes can overwrite any (instead appending file). i assume since finish record open array places during same time. flock(...) wholly glorious nonetheless doesn't seem work nfs... vast problem me prolongation server uses nfs array. the closest thing i've seen an tangible fortitude involves perplexing emanate close dir sharp until created. contend lacks magnificence understatement year, presumably decade. any improved ideas? edit: i should supplement i don't have bottom server doing storage another proceed isn't unequivocally presumably any soon, slightest within deadline.

logging preparedstatements java

one thing always pain record sql (jdbc) errors have preparedstatement instead query itself. you always finish adult messages like: 2008-10-20 09:19:48,114 blunder loggingqueueconsumer-52 [logger.error:168] blunder executing sql: [insert private_rooms_bans (room_id, name, user_id, msisdn, nickname) values (?, ?, ?, ?, ?) register pivotal transform room_id = ?, name = ?, user_id = ?, msisdn = ?, nickname = ?] of impetus i supporter slight retrieving values parsing/substitute doubt outlines genuine values (and substantially down route i don't an outcome question), nonetheless i only wanted know problem resolved before someone else and/or there any general logging supporter that automagically me. edited after few answers: the libraries presumption distant seems suitable logging statements debugging, doubt useful. however, i am looking proceed holding preparedstatement itself (not subclass) logging the sql matter whenever an blunder occur. i wouldn't muster prolongation app an swap ...

neural networks human-computer interaction

i entering third year university unbroken educational year, once i've finished chain year web developer, i hear opinions twin modules title. i'm prying both, however i wish collect applicable career i ask systems i develop. i'm doing an internet computing degree, covers web development, networking, database work programming. nonetheless i have myself set apropos web developer i'm certain any some-more am perplexing border myself area development. i know hci assistance me web developer, nonetheless cruise it's value it? cruise neural network trust assistance me practically component i future? thanks. edit: hi guys, i guess useful follow-up i solid it's worked out . i picked fake neural networks over hci, i've unequivocally enjoyed it. carrying look cognitive scholarship accessory training lighted seductiveness theme area, i anticipating take postgraduate digest few years i means it. i have got office i am starting after final exams (which few days) i indeed a...

sql server concentration role, opening hit

i digest ms sql server 2005 concentration roles application. i start purpose executing sp_setapprole finish executing sp_unsetapprole sps. concentration implemented asp.net. i've review "connection pooling doesn't work" concentration pooling there proceed dispute tie "disconnect event" (execute sp_unsetapprole only before disconnection). i digest sp_setapprole during start sps sp_unsetapprole during finish sps. have used sql concentration roles? your xps? opening hit?

linq, polymorphism, metadatamapping, estate mapper

i am minute little program. interface i am minute control any repository finished defines slight save(ipublicobject). i am controlling linq sql chronicle repository crud. doubt this. i have wholly slight accepts interface type. i wish cruise i best locate save movement hereditary form i following pass in. in book i am reading patterns craving concentration architecture. i am arrangement estate maping. i emanate subsequent vigilant public category concretepublicobjectone : ipublicobject{} i wish following pass save duty respository. during indicate where i am perplexing cruise best say, ok need "what?" save slight etc... should i registry, settlement sourroundings mapping types?

vswprintf crashes

using symbian s60 5th book sdk expelled october 2nd, i am compiling/running(on sim) following formula snippet: void test(wchar_t *dest, int size, const wchar_t *fmt, ...) { va_list vl; va_start(vl, fmt); vswprintf(dest, size, fmt, vl); va_end(vl); } ... wchar_t str[1024]; // crashes (2nd twine 123 characters (+ \0) equals 248 bytes) test(str, 1024, l"msg: %s", l"this exam messagethis exam messagethis exam messagethis exam messagethis exam messagethis tes"); // works (2nd twine 122 characters (+ \0) equals 246 bytes) test(str, 1024, l"msg: %s", l"this exam messagethis exam messagethis exam messagethis exam messagethis exam messagethis te"); for reason apparent me (even after carrying review male page hundred times) i figure out since formula crashing me vswprintf enlarged strings :-( accurate same formula works glorious linux box. there sufficient memory allocated str, and vswprintf checking aegis overruns anyway. unfortunately .....

sql server 2005 - best proceed pierce information between twin databases primary keys have changed

i know should db 101, nonetheless the only pristine me. i am controlling sql2005 demonstrate i wish duplicate information databasea databaseb. databaseb already contains existent information - competence even enclose information pk's have altered dont exist - example: database a pk1 = peaches pk2 = apples database b pk1 = peaches pk2 = oranges pk3 = apples now both & b have associated tables tied pk. historically i an app selects information copies b around the insert/update procs (using .net), nonetheless obv unequivocally cumbersome, tho advantages i have dropdown allows name duplicate - b duplicate exists, contend supplement new - instance: (dropdown - name source) peaches apples (dropdown - name target) -new- peaches oranges apples i going ssis, nonetheless aim db wholly sql demonstrate accessible nor i have learn (ive used dts many past, nonetheless newer tool). sql2000 i only dts, nonetheless some-more difficult schema im even certain i trust that. any suggestions shou...

validate settlement record c#

i'm loading an settlement file, i wish know countenance settlement before entirely review file. string filepath = "image.jpg"; image newimage = image.fromfile(filepath); the problem occurs image.jpg isn't unequivocally jpg. example, i emanate an lifeless calm record rename image.jpg, an outofmemory difference thrown image.jpg loaded. i'm looking duty countenance an settlement given tide record route image. example duty prototype bool isvalidimage(string filename); bool isvalidimage(stream imagestream);

tracking involuntary non-static lifetime?

this competence possible, nonetheless i figured i'd ask... is there any proceed anyone cruise lane presumably an involuntary non-static deleted but modifying category non-static itself? example, cruise code: const char* pstringbuffer; { std::string sstring( "foo" ); pstringbuffer = sstring.c_str(); } obviously, after block, pstringbuffer dangling pointer competence may valid. i proceed have coupling category contains pstringbuffer (with casting user const char*), nonetheless asserts non-static it's referencing still valid. changing form referenced non-static i definitely (boost shared_ptr/weak_ptr, example), nonetheless i means but strict restrictions referenced type. some thoughts: i'll substantially need change assignment syntax consolidate referenced non-static (which fine) i competence means feeling during smoke-stack pointer detect coupling category allocated "later" referenced class, nonetheless seems hacky customary (c++ doesn't interp...

does wpf's textbox support spell-check dictionaries netherlands?

the richtextbox supports spellcheck choice unequivocally nice. (spellcheck.isenabled = true) but i can't seem another language. (i live netherlands.. ;)) does any have an trust spellcheck choice textbox? i know change changing keyboard settings, nonetheless i wish change application. what i have attempted distant (and work): changing currentculture tide thread. changing libel ability xaml "nl-nl" changing libel ability formula xmllanguage.getlanguage("nl-nl"); you should any spelling errors following line: "dit een nederlandse tekst." the rfc 3066 libel pivotal libel "nl-nl" many thanks, rick

is there apparatus alphabetise css definitions visible studio?

eric meyer's recommendation keep sole manners alphabetized css impression construction creates clarity - there's "natural" proceed method rules, creates easy challenging construction certain don't interpretation same thing twice. div.foo { background:green; border:1px plain khaki; display:none; left:225px; max-height:300px; -x:hidden; -y:auto; position:absolute; top:0; width:230px; z-index:99; } so question: there plugin easy proceed name list manners visible studio alphabetise them? (better yet, ask via stylesheet fell swoop.) update @geoff suggests cleancss, unequivocally cold above-requested alphabetization during once, offer lot good clean-up (e.g. merging definitions same selector). unfortunately collapses churned selectors construction unparalleled line. example div.foo, div.foo p, div.foo li { color:green; } becomes div.foo,div.foo p,div.foo li { color:green; } which many harder review kind deal-breaker. l...

opengl problem underneath vista

i've only started opengl nonetheless i ran uncanny behaviour. below i posted formula runs good xp nonetheless perspective renders only black screen. sorry posting unusally (as board) enlarged code. is there something unequivocally specific open gl vista? thanks. #include<windows.h> #include<gl\gl.h> #include<gl\glu.h> #pragma comment(lib, "opengl32.lib") #pragma comment(lib, "glu32.lib") void initgl(void) { glclearcolor(1,0.3f,0.3f,0.3f); } void drawglscene(void) { /* formula private */ } hglrc hrc = null; hdc hdc = null; hwnd hwnd = null; hinstance hinstance = null; lresult callback wndproc(hwnd, uint, wparam, lparam); bool createglwindow(char* title, int width, int height) { gluint pixelformat; wndclass wc; rect windowrect; windowrect.left = (long)0; windowrect.right = (long)width; windowrect.top = (long)0; windowrect.bottom = (long)height; lpcstr nazwa = text("start"); hinstance = getmodulehandle(null); wc.style = cs_hredraw | cs_v...

windows (ideally .net callable) api join mp4 and/or 3gp files?

i'm operative the back-end encoder use does an awful lot video transcoding, unequivocally little volume fasten video files. the transcoding finished controlling on2 flix engine windows works unequivocally well, nonetheless unfortunately isn't means join files (at slightest distant i discern - conjunction assistance nor support unequivocally informative). i'm happy now. the joining, during moment, finished controlling leadtools multimedia program is, franky, dreadful. it's unparalleled threaded requires sta uses summary siphon isn't accurately fascinating server application. offer designation overwrites the operative codecs bucket the possess eval ones, there proceed prevaricate this. ideally i'm looking an api reinstate leadtools multimedia one, join 3gp and/or mp4 files. cost isn't too many problem. does anybody have any recommendations? i know ideal fortitude the possess apparatus here, nonetheless we're intending wmf haven't definitely transitione...

moving directories subversion

i have hereditary overthrow repo looks this: i wish some-more like: will relocating ./src ./trunk/src keep story ? i also wish certain developers don't abuse me doing .. there unintended consequences doing ? i wish developers only rudimentary repo office relocate. thanks

datagridview sealed hereditary usercontrol

i have usercontrol predefined controls (groupbox,button,datagridview) it, controls noted stable components non-static also noted protected. i following wish get bottom usercontrol another usercontrol, however datagridview always sealed designer. i think competence have something datagridview implementing isupportinitilize. public category basegriddetail : usercontrol has datagridview control (et al) defined. public category inheriteddetail : basegriddetail the datagridview control locked does anyone have any ideas control accessible engineer after inheritenace?

how i set adult middle state information structure during section testing?

i'm minute information structure c# (a priority reserve controlling ) i'm perplexing training trust tdd i'm definitely new to. i know any exam should wholly exam square category disaster section doesn't upset me churned exam failures, nonetheless i'm certain state information structure vicious test. for example, private priorityqueue<int> queue; [setup] public vacant initialize() { this.queue = new priorityqueue<int>(); } [test] public vacant peekshouldreturnminimumitem() { this.queue.enqueue(2); this.queue.enqueue(1); assert.that(this.queue.peek(), is.equalto(1)); } this exam smack presumably enqueue peek broke. i pondering i somehow have exam manually set adult underlying information structure's heap, nonetheless i'm certain but exposing doing world. is there improved proceed this? relying tools ok? i have setup place, only left out simplicity.

deploy webservice location

in visible studio web concentration digest i am adding anxiety web service. i supplement web anxiety following list files gets generated. reference.map reference.vb reference.disco reference.wsdl all files contains url indicating web service. even i pierce accessory but visible studio, works fine. nonetheless i intend change url web service, i need cgange all 4 files modifying controlling notepad. instead this, there any proceed i have url config record only change place web use separate new location. i am controlling horizon 1.1.

what should main() relapse c c++?

what repremand (most efficient) proceed interpretation main() duty c c++ int main() void main() why? if int main() following return 1 return 0 ? there countless duplicates question, including: c++, unequivocally good answer indeed. related:

what's advantage connectedness?

what advantage connectedness tangible apparatus oriented settlement (roa)? proceed i know it, crux connectedness ability yield whole concentration state controlling wholly bottom uris. but useful really? for example, suspect http advantage couple . unless you're minute reticent web crawler (and even following i wonder), still need learn fan any couple means during compile-time. is, fan needs know "bookmarks uri" advantage uri bookmark resources, following pass control over special bookmark-handling algorithms. can't only pass links blindly whole fan method. given need explanation anyway: what's inadequacy between fan reckoning out uri during runtime contra providing during compile-time (making bottom uri)? why fasten controlling comparison id="2" ? the wholly advantage i cruise ability change route non-root uris over time, nonetheless breaks cached links it's unequivocally fascinating anyway. am i missing?

scalable/reusable authorisation model

ok, i'm looking bit settlement guidance, organisation removing luck re-cast certain decisions new underline we're building, i wanted guess :-) there impetus certain things we're changing, fortitude have fit model. namely, we've got an asp.net application, uses web services grant users perform actions system. the problem comes because, systems, opposite users need opening opposite functions. roles have opening y button, others have opening y b button, while another still wholly opening b. many i this, developers only put mish-mosh statements understanding ui state. fear left unchecked, spin an unmaintainable mess, since offer putting authorisation explanation gui, needs put web services (which called around ajax) pledge wholly certified users certain methods. so doubt is, component designed diminution futile ad-hoc statements here there check specific roles, re-used both gui/webform code, web use code. just clarity, an asp.net web application, controlling webforms, ...

dynamic list information decaying on imagebutton click

i have form searches rows unparalleled list (tservices) occurred between date operation following populates enterprising list next form. now i'm adding mislay imagebutton unbroken any register table. here's c# code-behind adding imagebuttons list cell: imagebutton btnremoveservice = new imagebutton(); btnremoveservice.enableviewstate = true; btnremoveservice.imageurl = "/images/icons/trash.gif"; btnremoveservice.click += new imageclickeventhandler(btnremoveservice_click); btnremoveservice.id = "btnremoveservice-" + row["billingid"].tostring(); btnremoveservice.commandargument = row["billingid"].tostring(); tblcell.controls.add(btnremoveservice); even i put zero btnremoveservice_click(), information enterprising list disappears. i put formula indeed mislay stored procedure, information disappears enterprising list zero altered db. edit: i changed stock formula the possess duty calle...

how countenance an email castle controlling unchanging expression?

over years i have solemnly grown validates many email addresses correctly, presumption don't an ip castle server part. i several php programs, works many time. however, time i contacted someone carrying problem site uses it, i finish adult carrying composition (most recently i satisfied i wasn't permitting 4-character tlds). what best unchanging countenance have have seen validating emails? i've seen several solutions functions several shorter expressions, nonetheless i'd rather have enlarged challenging countenance rudimentary duty instead several brief countenance some-more challenging function.

debugging exceptions: work around 'break thrown'

i'm removing sleepy clearing debugging->exceptions choice break thrown past an difference i hoop properly, following sourroundings break thrown choice source unbroken difference burnished properly. i proceed bar certain try blocks break thrown , something preprocessor directives something. i attempted recording macro, nonetheless does opens debugging->exceptions dialogue. it good specify, even during coarser grain, methods free break thrown debugging. is summons dream?

unit contrast stable publication

how unittest safe-publication pledge java? to concrete: i have cache interface slight getorload(k key, objectloader loader). thing is, cache can't an vigilant given key, following contingency bucket objectloader instance. however, cache mandatory pledge act loading an vigilant loader putting cache, constitutes stable publication. i'm midst minute general junit exam cache interface i awe i exam cache implementations belong stable announcement guarantee. any ideas? tangible formula test-systest way biased box wish poke during genuine files.

what's inadequacy between sqlncli .net horizon information provider sql server

i have an concentration uses udl record where tie twine specifies "provider=sqlncli.1" doesn't work specific accessory since sqlncli.dll installed. another .net app however, where tie twine app.config does personally arrangement provider does worrk. "change information source" dialog visible studio shows information provider ".net horizon information provider sql server". app works, even nonetheless sqlncli.dll installed. why? provider using? does somehow tumble behind sqloledb.dll?

how pass querystring testaction cakephp 1.2?

in cakephp putting querystring url doesn't means automatically parsed separate customarily controller directly invoked. for example: $this->testaction('/testing/post?company=utcompany', array('return' => 'vars')) ; will outcome in: [url] => /testing/post?company=utcompany while invoking url directly around web browser law in: [url] => array ( [url] => testing/post [company] => utcompany ) without modifying cakephp source, there proceed have querystring separate controlling section tests?

entityset vs list query opening linq2sql

in linq sql class, since properties combined unfamiliar keys entityset objects, exercise ienumerable , where objects datacontext table objects exercise iqueryable ? edit: clarify, here an instance illustrates i'm perplexing understand. example: ctx.matches.where(x => x.matchid == 1).single() .matchplayers.max(x => x.score); hits database twice where as: ctx.matchplayers.where(x => x.matchid == 1) .max(x => x.score); only runs 1 query. here traces: exec sp_executesql n'select [t0].[matchid], [t0].[date] from [dbo].[matches] [t0] where [t0].[matchid] = @p0',n'@p0 int',@p0=1 go exec sp_executesql n'select [t0].[matchid], [t0].[playerid], [t0].[score] from [dbo].[matchplayers] [t0] where [t0].[matchid] = @p0',n'@p0 int',@p0=1 go and exec sp_executesql n'select max([t0].[score]) [value] from [dbo].[matchplayers] [t0] where [t0].[matchid] = @p0',n'@p0 int',@p0=1 go which also shows that, even worse...

inheritance trees stable constructors c#

given following estate tree, best proceed implementing proceed works? abstract category foo<t> : ienumerable<t> { open summary bar createbar(); } class bar<t> : foo<t> { // bar's yield surrogate interface foo's border opening nicely. // whole open shouldn't origination though, have access // around createbar() stable bar(foo base) { // snip... } } class baz<t> : foo<t> { open bar createbar() { relapse new bar(this); } } this fails with: 'bar.bar()' untouched due the word level . i don't wish constructor being public, wholly classes get foo should means emanate bar s. bar specialised foo , any form foo should means emanate one. open middle an 'option' here, decrease predefined extensions foo middle dll, nonetheless i cruise messy answer, given anyone comes along after wants emanate possess form foo baz (which approaching happen) stranded default createbar() ...

silverlight imagebutton usercontrol

i am only starting out silverlight (2 rc0) cant seem following work. i wish emanate rudimentary settlement symbol user control. my xaml user control follows: <button> <button.template> <controltemplate> <image source="{templatebinding imagesource}" width="{templatebinding width}" height="{templatebinding height}" /> </controltemplate> </button.template> </button> the formula behind follows: public biased category imagebuttonusercontrol : usercontrol { open imagebuttonusercontrol() { initializecomponent(); } open settlement source { { relapse base.getvalue(sourceproperty) image; } set { base.setvalue(sourceproperty, value); } } open stationary readonly dependencyproperty sourceproperty = dependencyproperty.register("sourceproperty", type...

jquery name box loop help

thanks reading. i'm bit new jquery, am perplexing book i consolidate websites solve problem always drives me crazy... the problem: select boxes enlarged options cut off internet explorer. example, name boxes: in firefox fine, nonetheless ie, options cut off extent name dump down. the solution: what i am looking do, emanate book i consolidate any page following: loop by selects page. for any select: a. loop by the options. b. extent longest option. c. bond duty enhance name extent concentration (or maybe click...). d. bond duty tremble it's uncanny extent blur. i've managed many step #2 name box. i found removing options extent problem (especially ie), i looped by copied calm any choice span, totalled camber width, used longest extent name stretched to. maybe somebody improved idea. here code <script type='text/javascript'> $(function() { /* duty will: 1. emanate information store name called resizetowidth. 2. sto...

how parsing "event xml" java?

i'm looking java parse an ongoing tide eventuality expostulate xml generated remote device. here's simplified illustration twin events: <?xml version="1.0"?> <event> deviceeventmsg <param1>someparmvalue</param1> </event> <?xml version="1.0"?> <event> deviceeventmsg <param1>someparmvalue</param1> </event> it seems sax some-more matched dom since an ongoing stream, nonetheless i'm informed sax. don't scream during me structure xml - i know already can't change it. and approbation device does send xml gauge before each event. initial problem second xml guess instruction croaking sax parser. can anyone advise proceed around that? the formula i'm controlling distant croaking second xml guess instruction is: public category testme extends handlerbase { open vacant startdocument () throws saxexception { system.out.println("got startdocument"); } open v...

using palace windsor's smooth interface register components decorator chain, there also specialised service-types?

i am perplexing exercise decorator method data-access formed on irepository. i have repository does data- access (at impulse only in-memory list) {1}, i have that does validation {2}. tip that, i have specialisation my repository, iusersrepository {3}, defines another slight the base interface. i am controlling latest box supplement 5376. i means register components controlling fluent interface - illusory specify, around xml, pivotal of the use innerrepo? so, how? (see for an xml-config example). i move need rest the order registrations, removed anything else. i am following . i have means decorator method operative i ask the container irepository {4}; i my validatingrepository methods called before data-access. nonetheless i have means operative i ask enclosing for iuserrepository (i an invalidcastexception - i speculation is expected, nonetheless work-aroundable?). i prevaricate wanting decorated-repo one specialised-methods repository services; strikes me as error-prone. du...

__required_rpcndr_h_version__

i emanate header record an idl . idl record collected visible c++ 2005 . the generated header record contains #define required_rpcndr_h_version 475 . i attempted header record visible studio 2003 , where rpcndr.h contains { #define rpcndr_h_version ( 450 ) // and #if ( rpcndr_h_version < required_rpcndr_h_version ) #error crude <rpcndr.h> version. header matches midl compiler. #endif } since 450<475 , i accumulate blunder . there any proceed i header record visible studio 2003 . i need changes compiltaion sourroundings idl record . ps : i have accumulate idl record visible c++ 2005 wholly . ( i have choice accumulate vs 2003 ) .

in c#, best slight format twine xml?

i am formulating lightweight editor c# know best slight converting twine simply formatted xml string. i wish there's open slight c# library "public bool formatasxml(string text, out twine formattedxmltext)", nonetheless couldn't easy, it? very specifically, slight "somemethod" have furnish cost below? string unformattedxml; string formattedxml; unformattedxml = "<?xml version=\"1.0\"?><book><author>lewis, c.s.</author><title>the 4 loves</title></book>" formattedxml = somemethod(unformattedxml); console.writeline(formattedxml); output: <?xml version="1.0"?> <book id="123"> <author>lewis, c.s.</author> <title>the 4 loves</title> </book>

getting drawable area an awt support mac os x?

i have subclassed have overridden slight i wish pull whole essence window manually. however, graphics object, (0,0) corresponds top left palm dilemma window inside due bar decoration, initial drawable pixel. can i establish prepare initial drawable pixel (ie, tallness decoration) cross-platform manner, avoiding controlling mac os x-specific ? i forced nest member method tangible drawable area window? here, formula fails centre blue retard inside paintable area window: @override public vacant paint (graphics g) { g.setcolor(color.blue); g.setpaintmode(); g.fillrect(30, 30, getwidth()-60, getheight()-60); }

application window sent behind windows shutting opposite thread (c#)

i'm minute windows forms concentration c#.net on startup, concentration displays swell shade controlling removed thread. while swell shade showing, sure concentration initialising. once sure concentration finished initialising, sure form concentration displayed, swell shade still shows over top. everything distant expected. then, swell shade closed, causes thread exit. reason, during point, sure concentration windows gets sent behind open windows, quite windows path-finder window where clicked .exe record run concentration initial place! what causing windows astonishing burst "behind" this?

asp.net stationary slight modernise page

i have page dispute webservice each 5 seconds transform information page. i'm controlling dynamicpopulateextender ajax control toolkit only stock quarrel text. what i wanting do, certain condition met, modernise page completely. am i going means tide slight i have? here's tide stuff: asp.net <cc1:dynamicpopulateextender id="dynamicpopulateextender1" runat="server" clearcontentsduringupdate="true" targetcontrolid="panelqueue" behaviorid="dp1" servicemethod="getqueuetable" updatingcssclass="dynamicpopulate_updating" /> javascript sys.application.add_load(function(){updatequeue();}); duty updatequeue() { var queueshown = document.getelementbyid('<%= hiddenfieldqueueshown.clientid %>').value; if(queueshown == 1) { var function = $find('dp1'); (behavior) { behavior.populate(); ...

why doesn't wd velociraptor speed adult vc++-compilation significantly?

several spin here permitted switching new wd velociraptor 10000rpm harddisk. also repository articles pleasantness performance. i bought mirrored aged component it. indirect boost compilation-speed rather disappointing: on aged samsung expostulate (sata, 7200), gathering 16:02 . on velociraptor build takes 15:23 . i have e6600 1.5g ram. it's c++-project 1200 files. build finished visible studio 2005. acoustic managment switchted off (no large inadequacy anyway). did something wrong medium acceleration unequivocally all, i expect? edit: some permitted augmenting ram. i got minimal advantage (3-5%) doubling propel 3gb.

what's inadequacy between func(int &param) func(int *param)?

in following code, both amp_swap() star_swap() seems doing same thing. since someone move over other? comparison footnote why? only matter taste? #include <iostream> using namespace std; void amp_swap(int &x, int &y) { int temp = x; x = y; y = temp; } void star_swap(int *x, int *y) { int temp = *x; *x = *y; *y = temp; } int main() { int = 10, b = 20; cout << "using amp_swap(): " << endl; amp_swap(a, b); cout << "a = " << << ", b = " << b << endl; cout << "using star_swap(): " << endl; star_swap(&a, &b); cout << "a = " << << ", b = " << b << endl; relapse 0; } thanks your time! see also

building linq query programmatically but internal variables tricking me

assume objects ideal operative method (i.e. tdd creates me cruise work). i have list i emanate (except indented properly): var outcome = v vendors p v.products orderby p.name name p; this works - i products vendors. now i have list conditions, built adult during runtime user. let's ask them: foreach (attribute requiredattributes) { outcome = result.where(p => p.attributes.contains(a)); } this competence primitive, nonetheless i guess it'd work. however, after foreach loop finished, enumerate "result" enclose products final charge requiredattributes collection it's attributes ability (also collection). to me, smells "a" overwritten somewhere any tour tray loop, wholly final applies. short somehow minute an progression slight ienumerable called containsall(ienumerable) something effect, i grasp i want, fundamentally judicious and, giving me wholly those products mandatory attributes?

why isn't .net-calculated md5 crush homogeneous crush distributed web site?

i am perplexing beget homogeneous md5 hashes both javascript .net. carrying finished either, i solid opposing third jubilee calculation - "password". i supplement carminative later, nonetheless during moment, i can't .net chronicle review adult web site's hash: 5f4dcc3b5aa765d61d8327deb882cf99 i'm guessing an encoding problem, nonetheless i've attempted 8 opposite variations methods calculating an md5 crush .net, zero review i have achieved javascript (or web site). methods i have tried, law crush i have ordinarily received: 7c6a180b36896a0a8c02787eeafb0e4c edit: sadly, i've incidentally providing opposite source strings twin opposite implementations. ebsak. :-/ still prying hear your answer follow-up. bonus question: encoding/format best store hashed values database?

linq complicated blobs

i have request list meta information request also request calm blob. then i lucene.net query documents; relapse gives me list guids request list also twin fields containing highlighted html versions request name mislay hunt keywords highlighted. then i linq join outcome request list fields list arrangement hunt result. ridiculous thing linq tries bucket blob request nonetheless it's used join. i'm pondering twin options, conjunction i like: move blob new list couple 1-1 request table. i don't since discount linq forcing me change db structure. add new dbml "litedocument" list mislay blob request list dbml; i don't since i have twin places say request list change. i wondering there improved proceed this? here formula snippets: open category lucenesearchresult { open guid documentid { get; set; } open twine formatteddocumentfilename { get; set; } open twine formatteddocumentextract { get; set; } } and open ilist search(str...

metrics & object-oriented programming

i know somebody mostly uses metrics countenance the code/design. as example, i cruise i use: number lines per slight (< 20) number variables per slight (< 7) number paremeters per slight (< 8) number methods per category (< 20) number domain per category (< 20) inheritance tree abyss (< 6). lack oncsensus methods most metrics unequivocally simple. what your slight kind mesure ? apparatus check (e.g. ndepend) ?

how set "xml:lang" attribute?

i need supplement xml:lang charge bottom xml node outbound request biztalk. this bound value, competence set schema something. this i wish out: <catalog xml:lang="nb-no"> ... </catalog> i've attempted interpretation charge "xml:lang", nonetheless doesn't grant me ":" schema. this blunder summary i get: invalid 'name' charge value 'xml:lang': ':' character, hexadecimal value 0x3a, during position 3 within name, can't enclosed in name. is there another proceed insert ':' biased charge name biztalk? can anyone tell me this? i'm controlling biztalk 2006 orchestration.

generate an e-r plans reverse-engineering database

note: creatively doubt asked postgresql, however, answer relates roughly any database jdbc engineer detect foreign-key associations. querying postgresql information collection foreign-keys charge between tables unequivocally straightforward, nonetheless i information beget graph family between tables? any recommendations collection this? edit: i know graphviz/dot can useful, however, i don't know have any thought per formula an app beget trusty graph .dot file.

how i visible studio debugger stop defilement during information breakpoints set run macro continue?

i'm controlling an rare problem visible studio 2005: i have information breakpoint that's set run macro continue (that is, i name macro check continue execution.) now, instead silently controlling macro value information breakpoint (tracepoint, really) changes, i initial summary box informing me breakpoint hit, macro runs wholly after i strike ok. the formula i'm debugging timing sensitive, creates dilettante debug. there proceed invalidate summary box pops up? in response comments: macro itself empty, any microsoft presumption illustration macros - doesn't difference.

generate perspective iphone concentration controlling interface builder.?

i wanted beget repair perspective controlling interface builder, nonetheless distance perspective surpassing distance iphone screen,and i am means maximize screen. i wanted arrangement list perspective screen. i enabled scrolling nonetheless didn't work, update 1: actually i wanted arrangement thumbnail settlement inside cave i wish arrangement 5 cave 5 thumbnail image,those images static. improved proceed grasp ,interface builder programming? hope pristine enough.

interpreting newlines xsl:text?

i have an xsl stylesheet calm an xsl:text node this: <xsl:text> foo bar baz </xsl:text> the stylesheet itself calm record "unix-style" newline line terminators. i plead stylesheet windows good unix-like platforms. good have cost heed conventions height invoked. when i run stylesheet windows, cost carriage return/newline pairs all except essence xsl:text node. can i sight xslt processor interpret newline characters calm xsl:text node height specific end-of-lines? more context: i'm invoking stylesheet this: <xslt in="in.xml" out="out.xml" style="stylesheet.xsl"/> the stylesheet header now looks this: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:xalan="http://xml.apache.org/xslt" exclude-result-prefixes="xalan"> <!-- essence elided --> </xsl:stylesheet>

setting information breakpoint visible studio 2005 castle dereferenced pointer

i awe there's proceed following: i have structure containing member pointer retard memory allocated heart i pass structure an api duty (the structure wavehdr, member reserved field.) i set information breakpoint value indifferent member - itself unequivocally helpful. i'd do, breakpoint hit, dereference pointer stored reserved set new information breakpoint memory separate pointer. i visualstudio smack memory set famous value. i know set breakpoint macro, have visible studio plead macro breakpoint it's hit, nonetheless i don't know presumably i pass pointer value macro set breakpoint right address. ui doesn't yield proceed it. is there proceed macro opening information controlling program, things weigh tellurian variables expressions? i accomplish i'm perplexing i kind programmatic opening controlling formula (during breakpoint) macro.

preferred proceed consolidate family anxiety javascript vs 2008 nested masterpage

our bottom masterpage something following <head runat="server"> <title></title> <script type="text/javascript" src="<%= page.resolveclienturl("~/javascript/actions.js")%>"></script> <script type="text/javascript" src="<%= page.resolveclienturl("~/javascript/jquery/jquery-1.2.6.min.js")%>"></script> <asp:contentplaceholder id="cph_htmlhead" runat="server"> </asp:contentplaceholder> </head> if masterpage masterpage an aspx page things work fine. if masterpage masterpage child masterpage following new aspx page uses child masterpage it's masterpage see: server blunder '' application. the controls collection can't run-down since control contains formula blocks (i.e. <% ... %>). what comparison proceed consolidate tellurian resources (javascript/css) bottom masterpage preserving tilde(~) imp...

how i play credentials song iphone game?

possible duplicate: the executive iphone docs aren't bad, nonetheless i'm awaiting graceful unhelpful theme - i an api enactment midi files, nonetheless that's i want. i only wish play an mp3 background. and user already enactment possess music, apparently i don't wish play possess tip it. is there "correct" proceed this?

mfc list control scrolling shows additional grid lines

Image
i mfc list control news perspective grid lines arrangement information vaguely spreadsheet manner. sometimes user scrolls plumb by control, additional grid lines drawn, looks terrible. this does occur slider mousewheel used scroll, wholly small down arrow symbol during bottom confine control used. it seems occurs distance list control window an accurate even array rows, biased quarrel manifest during bottom. if i adjust distance list control there biased rows visible, problem solved. however, seem way run another computer, presumably since array pixels indifferent quarrel changes. i am presumption an communication between shade resolution, arise distance "dialog units". i speculation i need programmatically force distance control created. nonetheless size? i have attempted controlling approximateviewrect() slight nonetheless i can't work. maybe slight does know news view? the method, i suppose, emanate possess specialization clistctrl over-ride whatever slight doing ...

why organic tests enough? section tests offer?

i only review lead developer disagreed section tests required important. view, organic tests high adequate formula coverage should adequate given any middle refactorings (interface changes, etc.) lead tests being indispensable rewritten looked over again. i attempted explaining nonetheless didn't unequivocally far, guess guys better. ;-) so... what good reasons section exam formula organic tests don't offer? dangers there have organic tests? edit #1 interjection good answers. i wanted supplement organic tests i don't meant wholly tests whole product, nonetheless rather also tests modules within product, only low turn section exam scathing necessary, etc. note also the organic tests automatic, invariably running, nonetheless only take longer section tests (which large advantages section tests). i section vs. residence example. i speculation lead developer observant contrast walls residence enough, don't need exam sole bricks... :-)

code establish updates google stable browsing api

in method establish information opening , calculate summary authentication formula (mac) any update. instructions (from google) are: the mac computed an md5 digest over following information: client_key|separator|table data|separator|client_key. the separator string:coolgoog: - colon followed "coolgoog" followed colon. resulting 128-bit md5 digest websafe base-64 encoded. there's also instance information check against: client key: "8eirwn1ktwczgwa2hxtarq==" response: [goog-black-hash 1.180 update][mac=dralftu+bxwuhlk0ncgjtq==] +8070465bdf3b9c6ad6a89c32e8162ef1 +86fa593a025714f89d6bc8c9c5a191ac +bbbd7247731cbb7ec1b3a5814ed4bc9d *note there tabs during finish any line. i'm amateurish match. greatfully presumably indicate out where i'm going wrong, only integrate lines python formula required this! fwiw, i approaching means something this: >>> s = "+8070465bdf3b9c6ad6a89c32e8162ef1\t\n+86fa593a025714f89d6bc8c9c5a191ac\t\...

what many quick modal dialog doing opposing browsers javascript web app?

i'm controlling lot jquery web concentration i am building fan i wish an javascript doing modal dialog graceful quick opposing following browser set. ie 7+ ff 2+ chrome safari i've attempted integrate jquery plugins nonetheless there always seems artifacts browsers. --- correct jqmodal seems some-more quick nonetheless i have an emanate ie7 where dialog immediately disappears after popping up. i think js eventuality isn't being canceled something. i'll have bit some-more play.

change windows mobile 6.1 thesis programmatically

i am perplexing figure out repremand way requesting new tsk formed thesis record windows mobile 6.1. i have attempted operative off page nonetheless wholly changes background, component colors things such tip bottom bars screen. wceload.exe seems work ideally tsk's partially others. does anyone know some-more tsk files requesting programmatically windows mobile 6.1? my concentration an open source application, formula avail;able around review wholly svn, feel giveaway check out @

what regex review calm proud lies within html tags?

i am minute formula hunt law page needs rhythm hunt terms. terms occur start within list cells (the app iterating by gridview quarrel cells), list cells competence have html. currently, formula looks (relevant hunks shown below): const twine highlightpattern = @"<span class=""highlight"">$0</span>"; databoundliteralcontrol litcustomercomments = (databoundliteralcontrol)e.row.cells[customercomments_column].controls[0]; // spin "term1 term2" "(term1|term2)" string spacedelimited = txttextfilter.text.trim(); string pipedelimited = string.join("|", spacedelimited.split(new[] {" "}, stringsplitoptions.removeemptyentries)); string searchpattern = "(" + pipedelimited + ")"; // rhythm hunt terms fan - comments column e.row.cells[customercomments_column].text = regex.replace(litcustomercomments.text, searchpattern, highlightpattern, regexoptions.ignorecase); amazingly works. but, infrequently c...