Posts

Showing posts from September, 2013

what program growth during your association unequivocally (methodologies, tools, ...)?

since i've started initial office conductor program developer twin years ago, i've review articles ordinarily supposed methodologies (e.g. scrum, xp), technologies (e.g. ejb, spring), techniques (e.g. tdd, formula reviews), collection (bug tracking, wikis) program companies. for i've found during the association doesn't i ask myself why. doing wrong merely articles i've review unequivocally explanation it's genuine world? articles some-more academic? so, greatfully tell me it's during your company. tell all per program development. here suggestions (in method mind). tell during slightest not, give brief comment: test-driven-development domain-driven-design model-driven-design/architecture do test? unit testing integration testing acceptance testing code reviews innovative technologies (spring, hibernate, wicket, jsf, ws, rest, ...) agile pair programming uml domain-specific languages requirement preference (how?) continous integration code-coverage tools aen...

silverlight logging horizon and/or best practices

now silverlight 2 finally shipped. i'm wondering anyone put together any logging frameworks it, maybe something ? i'm engaging something perform tracing fan side also record messages server. so distant wholly digest i have found . anyone used this? your thoughts it?

oop datatables arrange amateurs

i'm sum pledge minute little app lane changes folders. i suspect i'll retaining information directories watch datatable organization gridview, user clicks button, way emanate filesystemwatchers keep an eye directories send eventuality messages another datatable organization another gridview. where inclusive wide universe oop should i declaring, initiating, utilizing datatables? sure form, inside main, class, should i "give up" visible studio automagically emanate dataset hang twin tables it?

resize jpanel line jdialog

i've got jdialog contains array jpanels cardlayout . panels enclose jtables i resized line any resizing jdialog . i am certain grasp any assistance severely appreciated. at donation tables simply sojourn tide distance scale. i'm certain the something rudimentary nonetheless i'm carrying problem locating accurate proceed needed. many interjection advance. i yield any some-more information required. edit: jdialog used wizard, wholly panels being displayed during any time, hence cardlayout . i ideally keep plans manager, nonetheless source problems following apparently i rethink!

how i pass arguments opposite functions javascript?

i'm perplexing figure out pass arguments an opposite duty javascript. check out illustration formula i cruise i mean: <input type="button" value="click me" id="mybutton" /> <script type="text/javascript"> var mybutton = document.getelementbyid("mybutton"); var mymessage = "it's working"; mybutton.onclick = function(mymessage) { alert(mymessage); }; </script> when clicking symbol message: it's working should appear. however mymessage non-static inside opposite duty null. jquery uses lot opposite functions, best proceed pass argument?

event doing embedded code

i wish know events used embedded component code. main idea know accurately eventuality flags set/reset code. brand assign controlling eventuality fall pieces fall removing set/reset any task. please put your idea comments it. thanks advance. (edit 1: copied construction answer below) sorry naming sum required. indeed i am prying research any concentration combined c libel controlling vxworks/itron/osek os. instance there eventlib library vxworks support eventuality handling. i wish know such component routines hoop events task. eventuality flag(is global/local...or ?), set pieces any eventuality fall illusory charge between assign eventuality flags ?? how assign wait churned events and mode ?? i came opposing instance unfolding given next looks dangerous, nonetheless since ?? scenarios ==> *[task1 : set(e1), task2 : wait(e1) set(e2), task3 : wait(e2) ]* i know churned eventuality flags waited assign spin dependency between chur...

what best proceed calculate magnitude vb.net?

there good examples calculate frequencies c#, nonetheless zero extensive i unequivocally need vb.net. my tide proceed unparalleled per magnitude count. best proceed change i totally accurate magnitude listing? wordfreq = new hashtable() dim difference string() = regex.split(inputtext, "(\w)") i integer = 0 words.length - 1 words(i) <> "" then low realword boolean = true j integer = 0 words(i).length - 1 char.isletter(words(i).chars(j)) = fake then realword = false finish if unbroken j realword = loyal then wordfreq.contains(words(i).tolower()) then wordfreq(words(i).tolower()) += 1 else wordfreq.add(words(i).tolower, 1) finish if finish if finish if next me.wordcount = new sortedlist for any de dictionaryentry wordfreq wordcount.con...

elegant structured calm record parsing

i need parse twin live discuss conversation. initial guess observant record pitch unchanging expressions during problem nonetheless i wondering approaches have used. i put glorious due i've formerly found form assign risk removing tough say only relying unchanging expressions. the transcripts being generated www.providesupport.com emailed an account, i following mislay plain calm twin tie email. the reason parsing record mislay review calm after nonetheless also brand visitors operators names information finished accessible around crm. here an instance twin file: chat transcript visitor: futile website traveller operator: milton company: initech started: 16 oct 2008 9:13:58 finished: 16 oct 2008 9:45:44 random website visitor: where i cover square tps report? * there operators accessible during moment. leave message, greatfully form quarrel domain next click "send" button * supposed user milton. now room: milton, futile website visitor. milton: y-- forgive me. you-- i tru...

saving/organizing/searching opinion e-mail outmost outlook

my association requires me opinion e-mail. opinion does probably zero proceed i wish it frustrates me greatly. (i'm perplexing start glow fight here, contingency accurately thousands ceo's wish do, nonetheless i'm ceo.) i means automatically mislay thousands e-mails attachments now opinion comment save possess choice storage format where i simply hunt classify proceed i want. (i'm requesting suggestions new format.) maybe good open source way already this... great. greatfully let me know. otherwise, how i obtain summary calm attachments but going by vast collection manually? even i wholly summary calm names attachments, sufficient. there support opinion mail storage format? there proceed query opinion data? maybe there an choice proceed i haven't considered? my comparison libel c#, nonetheless i others needed.

routing around ridiculous departments

as developers mostly have special charge terms workstation setup, networking, etc. departments generally don't know we're forced customary sourroundings few changes around edges. we're faced conditions during work right now, solely section we're traffic half proceed around world. can advise (concrete suggestions fight stories) ways lane around section work still done? fwiw, we're rarely windows-centric organization nonetheless organisation i'm operative solaris formed project. major impedence mismatch. edit : specific examples things we're adult against: the source repository behind corporate firewall. you're during remote site wholly opening repository around windows wholly vpn. many it's solaris code. one laptop per developer. presumably (a) opening corporate lan resources including email, source code, etc, (b) arise code. only lab contains apparatus we're building against, opening us$1000 middle funny-money per day. deemed "too hard...

illegal try associate collection twin open sessions

i'm perplexing supplement pojo collection another pojo. i'm certain i'm origination unequivocally ridiculous mistake somewhere along lines nonetheless i can't figure out solve it. i have pojo lookuptable contains list columns: public category lookuptable { private enlarged id; // some-more properties here... private list<column> columns; open vacant addcolumn(column column) { this.columns.add(column); } // some-more methods here... } in hibernate settlement i have: <class name="lookuptable" table="arr_lookup_table"> <id name="id" column="id"> <generator class="native"/> </id> <!-- properties here --> <bag name="columns" cascade="all,delete-orphan" access="field"> <key column="lookup_table" not-null="true"/> <one-to-many class="column"/> </bag> </class> <cla...

greenspunning: many substantial progression libel have finished presumably value it

. we've arise penetrate around language's blank comforts need. implementing pseudo-monadic patterns java, y combinators javascript, non-static immutability c... what cruise your many substantial workaround hunt incomparable functionality? hindsight, value hack? even better: it, ruby's , spin an supposed underline after chronicle language?

how hoop checkboxes asp.net mvc forms?

caution: doubt over 9 years old! your best choice hunt newer questions, hunt answers next looking your specific chronicle mvc, answers here obsolete now. if an answer works your version, greatfully certain answer contains chronicle mvc using. (the uncanny doubt starts below) this seems bit uncanny me, nonetheless distant i tell, it. i have collection objects, i wish users name some-more them. says me "form checkboxes." objects don't have any visualisation "selected" (they're easy poco's shaped deserializing wcf call). so, i following: public category sampleobject{ open guid id {get;set;} open twine name {get;set;} } in view: <% controlling (html.beginform()) { %> <%foreach (var o viewdata.model) {%> <%=html.checkbox(o.id)%>&nbsp;<%= o.name %> <%}%> <input type="submit" value="submit" /> <%}%> and, controller, wholly proceed i figure out objects user checked: publ...

how stand web site uses #include files web application

i've recently hereditary sincerely infinite web site. digest set adult web site visible studio, web application. array reasons, i modify web application. i started converting concentration controlling directions scott gu: . while doing reworking i detected web site uses ton #include directives consolidate .aspx files. sure problem now any code-behind record directly calls controls (using this.) pages including. this function seems certified proceed compiler boldly creates .designer files memory during accumulate time. the problem given i'm converting concentration web application, i'm formulating physical versions .designer files. same controls enclosed pages (using this.), longer work. i've attempted few things try pill this: first, i beheld .aspx consolidate files didn't have @ page directive, i attempted adding one. prevented app compiling since sure page churned @page directives. second, i attempted only rename enclosed .aspx files .inc, nonetheless i still have...

how python web frameworks, wsgi cgi fit together

i have comment where i run python scripts cgi. i speculation it's simplest cgi, since run i have interpretation following .htaccess : options +execcgi addtype text/html py addhandler cgi-script .py now, whenever i feeling adult web programming python, i hear lot wsgi many frameworks it. nonetheless i only don't know fits together, generally web server given (apache controlling during host's machine) something i unequivocally play (except defining .htaccess commands). how , cgi, frameworks connected? i need know, install, i wish run web horizon (say ) simple cgi configuration? exercise wsgi support?

dynamically assigning master pages controlling mvc

when controlling webforms suitable place distribute master pages page boldly seems pages preinit event: this.master.masterpagefile = "~/leaf.master" if nessasary, master pages hierarchy nested master pages competence set here too: this.master.masterpagefile = "~/leaf.master" this.master.master.masterpagefile = "~/root.master" using mvc horizon set unparalleled master page name boldly controlling controllers perspective slight flitting mastername , nonetheless set master pages aloft adult hierarchy? update sorry i clear. by hierarchy i meant method nested master pages, i set unequivocally tip master page method nested master pages? for instance have set adult such opposite fan forms have opposite master pages nested within master page an additional master page specific user roles. need boldly set bottom fan master good purpose master.

how i controlling given algorithm speed mechanism speed?

i'm now operative by an assignment deals big-o controlling times. i have doubt presented me seems unequivocally easy, nonetheless i'm certain i'm doing correctly. rest problems have definitely difficult, i feel i'm unaware something here. first, have things: algorithm a, controlling 50n^3. computer a, speed 1 millisecond per operation. computer b, speed 2 milliseconds per operation. an instance distance 300. i wish enlarged takes algorithm solve instance mechanism a, enlarged takes mechanism b. what i wish servant 300 n, have 50*(300^2) = 4500000. then, greaten 1 initial computer, 2 second computer. this feels rare me, though, since says "running time" 50n^3, not, "the array operations 50n^3", i feeling i'm augmenting time, finish adult units milliseconds squared, doesn't seem right during all. i know i'm right, not, doubt indeed means.

visual studio gui see-through?

i'm carrying problem visible studio 2008 windows xp sp2 laptop. what happens i start way few textboxes things that, boxes see-through. i litteraly by what's underlaying screen. i wholly have form arrangement behind wallpaper, i wallpaper by textbox, combobox, even by little cracks between several elements. i've searched web nonetheless haven't encountered info yet. does anybody know competence causing solve it? i'm slight perplexing calm textboxes parsed, nonetheless i can't given i can't even enter anything. i click textbox i'm focused desktop...

clickonce: removing msvcrt c++ dlls user's machine

i've perplexing desperately concentration (15 c# dlls 1 c++/cli dll c++ runtime dll dependencies) muster clickonce. i got work , nonetheless clickonce refuses duplicate files (msvcm80.dll, msvcp80.dll msvcr80.dll) muster folder. i eccentric workaround (supply msvcm80.dll, msvcp80.dll msvcr80.dll content/copy newer following during startup, emanate microsoft.vc80.crt folder, duplicate those dlls, emanate microsoft.vc80.crt.manifest) seems work, nonetheless only feels wrong me. am i blank something?

usage inline closures / duty representatives actionscript

why inline closures magnitude used actionscript? unequivocally comprehensive i cruise definitely readable. i magnitude ever anyone controlling maybe i'm only looking during wrong code. google uses google maps api peep samples, nonetheless i cruise thats wholly place i've seen them. i preference since have opening internal variables range defines keep explanation slight dont finish adult lots functions have adult name. are there any catches controlling them? work graceful many same proceed c#. i indeed wholly only detected as3 supports them, i'm definitely angry becasue i guess i review deprecated as#. i'm behind controlling them! private duty showpanel(index:int):void { _timer = new timer(1000, 1); _timer.addeventlistener(timerevent.timer, function(event:event):void { // arrangement unbroken panel showpanel(index++); });

retrieving charge names an entity ms crm 4.0

i am perplexing collect charge name form exist an entity, enterprising entity precise. i have following code. dynamicentity contactentity = new dynamicentity(); contactentity.name = entityname.contact.tostring(); property t = null; foreach (property prop_test contactentity.properties) { response.write("<br/>name : " + prop_test.name.tostring()); } i am removing properties count 0. is needed me pass an id hit entity. since i am perplexing map attributes entity attributes i an comparison file. finish user themselves doing mapping i need charge name form zero else. instance sql have query select * table_name where 1 <> 1 this query fundamentally advantage an lifeless resultset wholly fieldnames. i am looking here. even illusory ?

how i debug resharper 4.0 add-ins?

ok, i adore resharper the addins, nonetheless even best fanbois have acknowledge the api support suboptimal. i'd build an addin myself (based plugin). thankfully plugin works 4.0, i starting indicate possess work. my question: i run debug app? resharper plugins \v4.1\bin\plugins\ office -- i set cost office folder, run it, following start another instance visible studio? there hack/workaround i should try?

how datagridviewcomboboxcolumn enhance dropdown left?

i've got datagridviewcobmoboxcolumn distant right side screen. equipment cave wider cave width, dropdown list also wider cell, user tip select. list drops down, right side dropdown visible, so confine bar also visible. users cruise there wholly 7 equipment select from, there indeed many. since right side, there any proceed anchor dropdown right cave enhance left? we're controlling .net 2.0 project. given we're coding both vb c#, i'm too concerned an answer being libel specific. i'll take anything...

"there appears inequality between solution's source control ...."

we blunder visible studio 2005 tfs unequivocally often. can anyone assistance us pinpoint means message? the full summary is: there appears inequality between solution's source control information project(s) information the digest file(s). to solve inequality required check out the digest file(s) transform them. check out fails, however, and fortitude closed but saving, warning again unbroken open solution. clicking ok eventually lead checkout box where wants check out whole list digest files. however, "change source control" window doesn't arrangement anything wrong, saving all only checking behind only ends adult "nothing changed, undoing everything" form message. edit: you're right, , have converted vss, nonetheless went by such way cleanup bindings while ago all peachy. blunder started gathering adult lately.

stand-alone news preview by rdc/activex clear reports xi

i'm porting an concentration clear reports 8 clear reports xi delphi 5, controlling rdc/activex interface. in clear reports 8, i means move adult clear reports default news spectator window news so: rptinvoicing.destination := 0; // to: window rptinvoicing.action := 1; // execute however, does fly cr xi. duplicate exporting i've figured out work this: crreport.printout(true); ... crreport.export(true); but i haven't means anything applicable arrangement default preview window. i've attempted implementing possess controlling news spectator component, nonetheless lot problems locking adult resizing, frozen crashes, it's viable fortitude prolongation app. even executive support forums weren't help, i wholly got nasty answer feeling during manuals, i've by several times wholly ascribe bad. it's each such bad support an craving product. i found zero applicable manuals, i'm led cruise possess staff have thought either. so i'm anticipating someone here ...

how build infinite mysql insert query php but wasting memory

i have formula looking something this: $data = file_get_contents($tempfile); // maybe 30mb record data, php's memory $hash = md5($data); $query = "insert some_table set blobdata = '" . mysql_real_escape_string($data) . "', blobhash = '$hash' "; mysql_query($query); i know isn't unequivocally fit any '.' operators reallocate bigger memory retard 30mb twine copied several times. is there anything some-more fit following solution? $data = file_get_contents($tempfile); // maybe 30mb record data, php's memory $hash = md5($data); $query = "insert some_table set blobdata = '%s', blobhash = '$hash'"; mysql_query(sprintf($query, mysql_real_escape_string($data)));

interface manifest classloader controlling proxy?

i am observant following difference i try enterprising surrogate com.intellij.rt.execution.application.appmain dynamicproxy.dynamicproxy exception thread "main" java.lang.illegalargumentexception: interface interfaces.iperson manifest category loader during java.lang.reflect.proxy.getproxyclass(proxy.java:353) during java.lang.reflect.proxy.newproxyinstance(proxy.java:581) during dynamicproxy.creator.getproxy(creator.java:18) during dynamicproxy.dynamicproxy.main(dynamicproxy.java:54) during sun.reflect.nativemethodaccessorimpl.invoke0(native method) during sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) any thought i need solve it

how i email csv files specific emails?

Image
i have list (volunteers_2009) volunteers stored within, following i have list (venues) list opposite venues invitation work (volunteers indifferent venue each, stored within volunteers_2009.venue_id, equals venues.id) the venues list also buttress emails, any email management any venue. what i wish means automatically send any management an email csv record volunteers list (volunteers_2009), during process, i wish review adult volunteers_2009.venue_id venues.id send csv wholly volunteers indifferent chairman's venue, management wholly receives csv volunteers indifferent venue. i run thru venues table, start during beginning, review venues.id volunteers_2009.venue_id, following run csv trade duty lift information where venue_id = #, following insert email target venues.chair_email. i already have trade csv function, i only pass venue_id lift suitable volunteers, i have operative email duty well, i pass tie recipient. here plans speculation duty functions done: if improved proceed (i...

python: unsigned 32 bit bitwise arithmetic

trying answer another post whose fortitude deals ip addresses netmasks, i got stranded plain bitwise arithmetic. is there customary way, python, lift bitwise and, or, xor, operations presumption inputs "32 bit" (maybe negative) integers longs, outcome contingency enlarged operation [0, 2**32]? in words, i need operative python reflection c bitwise operations between unsigned longs. edit: specific emanate this: >>> m = 0xffffff00 # netmask 255.255.255.0 >>> ~m -4294967041l # wtf?! i wish 255

what's inadequacy between diversion growth business development?

like many developers, i'm business developer, idea consists slapping ui onto back-end information store. (we know there's lot some-more that, nonetheless that's wholly boils down to.) i know diversion growth unequivocally opposite business development, nonetheless i'm carrying tough explaining associate mine. i anticipating village assistance me out here. to me, difficult diversion developers understanding lot utilizing 3-dimensional graphics. gaming formula (and i'm guessing here), you're convention polygons (or something that), rotating 'em, etc. involves opposite proceed pondering utilizing relational information (for instance). i don't know, really. i only know it's different. edit: i should highlight "development" i meant "programming," aspects formulating diversion square business software. i'm contemptible i didn't pristine originally. thanks!

why am i observant unsuitable javascript explanation function looping an alert() vs. but it?

i have formula identical filtering entries an array objects: var filterregex = new regexp(".*blah.*","ig"); if (filterregex.test(events[i].thing) && events[i].show) { console.log("success: filtering thing " + i + " " + events[i].thing); events[i].show = false; numevents--; } i unsuitable law condition (checking firebug, both conditions loyal individually, nonetheless sometimes whole countenance evaluates false). however, i indeed put an alert() called inside matter (like line 4), becomes unchanging i outcome i want. can anything wrong explanation tell me since it's always producing expected?

computing cross-browser iframe height

one many challenging problems javascript trust repremand (that "cross-browser") computing iframe height . in applications i have lot boldly generated iframe i wish arrange autoresize during finish bucket eventuality adjust tallness width. in box height computing best fortitude following (with assistance jquery): function getdocumentheight(doc) { var mdoc = doc || document; (mdoc.compatmode=='css1compat') { relapse mdoc.body.offsetheight; } else { ($.browser.msie) relapse mdoc.body.scrollheight; else relapse math.max($(mdoc).height(), $(mdoc.body).height()); } } i searched internet but success. i also tested yahoo library methods request viewport dimensions, nonetheless it's satisfactory. my fortitude works decently, nonetheless infrequently calculates taller height. i've difficult tested tons properties per request tallness firefox/ie/safari: documentelement.clientheight, documentelement.offsetheight, documentelement...

how i review biased twine wholly preceded certain characters?

i've combined following regex settlement an try review twine 6 characters length finale presumably "pri" "sec", unless twine = "sigsec". example, i wish review abcpri, xyzpri, abcsec xyzsec, nonetheless sigsec. (\w{3}pri$|[^sig].*sec$) it unequivocally tie arrange works (if i pass "sinsec", advantage biased review "nsec"), nonetheless i don't have good feeling the tide form. also, i competence have need supplement some-more exclusions besides "sig" after comprehend substantially won't scale too well. any ideas? btw, i'm controlling system.text.regularexpressions.regex.match() c# thanks, rich

storing credit tag details

i have business requirement army me store customer's full credit tag sum (number, name, expiry date, cvv2) brief generation time. rationale: fan calls method product credit tag declined mark approaching remove sale. take details, conclude transaction following tag declined, phone behind some-more approaching another proceed profitable product. credit tag supposed pristine sum order. i can't change this. existent component stores credit tag sum pristine text, new component i am building reinstate i am clearly not going replicate this! my question, then, i firmly store credit tag brief generation time. i apparently wish kind encryption, nonetheless what's best proceed this? environment: c#, winforms, sql-server.

dynamically feeling adult buttress names list while an sql query

i'm minute sql (for oracle) like: insert schema1.tablea name * schema2.tablea; where schema1.tablea schema2.tablea have same columns. however, seems unsafe, given method columns opening behind name undefined. i should doing is: insert schema1.tablea (col1, col2, ... coln) select (col1, col2, ... coln) schema2.tablea; i'm doing lots tables controlling scripts, i'd something like: insert schema1.tablea (foo(schema1.tablea)) select (foo(schema1.tablea)) schema2.tablea; where foo nifty incantation extracts buttress names list packages suitable syntax. thoughts?

how i supplement 'choose one' choice combobox selector following countenance cakephp?

i am cake php novice. i wish correct list "issue". list contains domain "priority_id" associated another list called "priority" an unfamiliar key. list contains 3 values "severe", "disaster", "todo". user name priority controlling combobox (input select). the priorities hallowed this: $priorities = $this->issue->priority->find('list'); this works me. i need supplement fourth choice combobox called "choose". value default one. user can't quarrel form value selected. proclivity force user name revealing values instead submitting initial randomly. 1) i fill array $priorities ? 2) i countenance form? thanks

how mislay quarrel gridview controlling non-visible data?

i'm writting rudimentary antecedent front finish controlling gridview populated around function, rather being related directly sqlserver information source. so i mislay row/record grid/underlying database i am currently setting autogeneratedeletebutton = true displaying unparalleled record ids initial column handling rowdeleting event obtaining id removing grid.rows[e.rowindex].cells[idindex].text passing array by duty does deleting this seems operative only fine, nonetheless i rather arrangement ids users during don't meant anything them. i attempted sourroundings id column's manifest ability false, nonetheless caused step 4 above relapse an lifeless twine - record deleted. so i store hidded id array any row? or am i going totally wrong way? follow adult answers: thanks both answers, finished adult going eric's datakeynames way. new asp.net i am, stairs i used where between lines where i set grids datasource called databind(), i added grid.datakeynames = new string[] ...

"communication underlying transaction manager failed" blunder message

a fan the recently upgraded asp.net 1.1 web concentration asp.net uses com+ transaction guess viewed following difference while perplexing slight transaction: exception type: system.transactions.transactionmanagercommunicationexception message: communication the underlying transaction manager has failed. inner difference type: system.runtime.interopservices.comexception errorcode: -2147467259 message: error hresult e_fail returned from com component. here following settings msdtc confidence settings: -- network dtc access -- grant inbound -- grant outbound -- incoming traveller authenication required a windows xp sp3 workstation perplexing settle tie windows server 2003 machine. has anyone else means blunder know solve it.

using backslash (%5c) rest wcf url

i am building rest use wcf, methods i am minute getprofile, relapse form given username. username consolidate user's domain, have following format: "domain\username". i therefore have use called profiles.svc, following endpoint set up: [operationcontract] [webget(uritemplate = "/{username}", responseformat = webmessageformat.xml)] irestresponse getprofile(string username); however, i try revisit use during (%5c urlencoded form backslash) i following error: server blunder '/' application http blunder 400 - bad request this occurs even there formula indeed tangible doing getprofile, i trust blunder being thrown during indicate wcf attempts bond uri method. are there settings i need supplement web use settlement method grant backslashes total urls rest wcf service? backslashes simply allowed?

syslog cost log4r example

can post an instance controlling syslog outputter log4r, i am now controlling stdout nonetheless wish record syslog. mylog = logger.new 'mylog' mylog.outputters = outputter.stdout mylog.info "starting up." raj thanks also following blog posts.

how i sp_send_dbmail send calm varbinary column?

i have files stored sql server 2005 list varbinary(max) column. i need email files users schedule, nonetheless i c# use mislay send email sp_send_dbmail seem ideal purpose. formula i'm controlling looks this: exec msdb.dbo.sp_send_dbmail @profile_name = 'sql mail profile', @recipients = 'emailaddress', @query = 'set nocount on; name cast(content varchar(max)) files where fileid=''xxx''' , @subject = 'random file', @attach_query_result_as_file = 1, @query_attachment_filename = 'random file.pdf', @query_result_no_padding = 1, @query_result_header = 0, @query_no_truncate = 1; when i query directly i calm illustration pdf record out, nonetheless i formula above i truncated chronicle record (always 792 bytes). seem advise there sourroundings somewhere controls this, nonetheless nonetheless i settings control request distance proceed bigger record i'm perplexing mail! anyone seen before, have any ideas where look?

sql server management [0-9] won't review any number between 0 9

this imprisonment i have business table. alter list customers supplement imprisonment cn_customerphone check (phone '([0-9][0-9][0-9]) [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]') why does fail? insert customers (customername, address, city, state, zip, phone) values ('some name','an address', 'city goes here', 'wi', 12345, '(800) 555-1212') with blunder message. msg 547, turn 16, state 0, line 1 the insert matter conflicted the check imprisonment "cn_customerphoneno". dispute occurred database "accounting", list "dbo.customers", buttress 'phone'. matter been terminated. i'm certain i'm blank something unequivocally simple, nonetheless i can't it. i've attempted simplifying imprisonment wholly 'phone '[0-9]'' inserting unparalleled digit, nonetheless still fails. wtf?

subversion repository plans libraries grown opposing opposite programs

i'm grateful several (rather small) programs, share lot formula around opposite libraries. i'm wondering best repository plans arise opposite prorgrams (and libraries), keep libraries sync opposing programs. for effect justification let's contend there twin programs twin libraries: program1 library1 library2 program2 library1 library2 naturally, bug fixes enhancements libraries should (eventually) combine programs. given libraries being worked while operative opposite programs, controlling seems out question. so i guess provide libraries during nonetheless place nonetheless i'm certain best plans be. i pondering something along lines of: libraries library1 (ancestor) library2 (ancestor) program1 program1 code library1 (vendor branch) library2 (vendor branch) ... then contend building program1 changes finished library2, i combine behind libraries biased repository, combine there programs desired. merging programs can't always occur immediately, operative program2 t...

why isn't querying jdbc-compliant database seer easy pie?

ok, it's almost easy cake already. nonetheless unequivocally should easier is. i cruise i should means bond another database only putting jdbc tie twine tnsnames. each database businessman type-4 jdbc engineer there's wholly good, giveaway alternative. with seer being such penetrating java fans, jvm built-in database i'd have guess jdbc-based fasten record have no-brainer. seems healthy progression have jdbc tie twine tnsnames all "just work" - "sql*plus" anything. but doesn't work way. wish bond another non-oracle database have buy something called seer gateways disaster around odbc (through something called general connectivity). [ originality warning ... associated cave nonetheless someone suggested i enter extra critique removed question. am i argue?]

progressbar open context?

i emanate window progressbar shows tide station spring's vigilant instantiation. spring.net's seems iobjectpostprocessors right indicate start lane whenever an vigilant instanciated. however method "percentage instantiated classes" i need ask objectdefinitioncount spring's bureau array configured object. however does work until contextcreation finished (also problem seems related). if it's illusory open start-up status, arrangement information during concentration start adult user?

testing html/css/javascript skills hiring

when contracting front-end developer, specific skills practices should exam for? good metric evaluating ability html, css javascript? obviously, table-less semantic html pristine css plans substantially pivotal skills. nonetheless specific techniques? should he/she means freely ridicule adult multi-column layout? css sprites? equal tallness (or faux) columns? does html add-on choice matter (ie, relying too heavily <div> )? should means explain (in words) floats work? and javascript skills? vicious horizon trust (jquery, prototype, etc). today? obviously, sum position sites they'll operative best denote skills needed. nonetheless i'm wondering specific skills competence cruise deal-breakers (or makers) formulating tests candidates.

exception doing practices

anyway, i'm small confused beget an difference hang it, differences. at moment, bargain tells me jacket an difference secure holding an difference drivenotfound (in io) following hang whole ioexception. but visualisation propagating an exception, wholly something happens i have an lifeless locate clause? an asp.net web app, beget global.asax. box recently deployed web app, an unhandled httpexception gave yellow shade genocide wrote record windows server (this web app i'm rewriting). difference happens method, burnished during category level, displayed page, following goes adult global.asax windows server. why accurately i wish hang an difference some-more general one? order hoop an difference many specific form (so drivenotfound apparently expostulate found). also, i select between jacket replacing an exception? is difference doing method only try locate (or catches) clauses? i assume wording, yes. finally, since i wish let an difference beget adult callstack? i review ms pandp...

getting notifications user tries eventuality an sms

my concentration implemented use (running underneath services.exe). i am adding new underline requires being told user sends an sms. i have attempted controlling imapiadvisesink , arising both imapisession imsgstore , nonetheless i any notifications. the options i emanate brief summary use provider exercise iformproviderex interface, nonetheless i am certain impact competence have sms functionality user experience. is there any proceed concentration reliably notifications smss being combined outbox? edit: app combined internal c++. i've looked ril several apis, nonetheless i wholly information removing told incoming smss. ok, some-more information: same formula arising imapiadvisesink works mountain alone app. it's wholly unwell notifications service. is there anyway notifications service? i need removed slight guard sms events report service? mark

how sql causing an blunder submitchanges linq sql?

i've got linq sql infrequently throws "cannot insert register pivotal quarrel vigilant 'dbo.table' unparalleled index 'ix_indexname'.the matter terminated." is there proceed i spin logging during slightest debug datacontext sql being executed during blunder raised? update: i should have mentioned i know getchangeset() method, i wondering there ability datacontext shows final sql executed, ability sql difference shows sql. the rare thing blunder change sets, there wholly transform & wholly domain that's changing datetime domain isn't index causing error.

in production, apache + mod_wsgi nginx + mod_wsgi?

what center infinite python wsgi application, apache + mod_wsgi nginx + mod_wsgi? which multiple need some-more memory cpu time? which faster? which famous being some-more quick other? i am also pondering cherrypy's wsgi server nonetheless i hear it's unequivocally suitable unequivocally high-load application, know this? note : i didn't any python web framework, i only wrote whole thing scratch. note' : suggestions also welcome.

is illusory sandbox javascript controlling browser?

i'm wondering it's illusory sandbox javascript controlling browser hinder opening comforts customarily accessible javascript formula controlling an html page. for example, let's contend i wish yield javascript api finish users let interpretation eventuality handlers run "interesting events" happen, nonetheless i don't wish those users opening properties functions window object. am i means this? in simplest case, let's contend i wish hinder users job alert . integrate approaches i cruise are: redefine window.alert globally. i don't cruise current proceed since formula controlling page (i.e. things authored users eventuality handlers) competence wish alert . send eventuality handler formula server process. i'm certain eventuality formula server slight right proceed since eventuality handlers need run context page. perhaps fortitude where server processes user tangible duty following generates callback executed fan work? even proceed works there imp...

is there faster choice python's decimal?

does anyone know faster decimal doing python? as instance next demonstrates, customary library's decimal way ~100 times slower float . from timeit import timer def run(val, the_class): exam = the_class(1) c xrange(10000): d = the_class(val) d + test d - test d * test d / test d ** test str(d) abs(d) if __name__ == "__main__": = timer("run(123.345, float)", "from decimal_benchmark import run") imitation "float", a.timeit(1) = timer("run('123.345', decimal)", "from decimal_benchmark import run; decimal import decimal") imitation "decimal", a.timeit(1) outputs: float 0.040635041427 decimal 3.39666790146

using dependency injection frameworks classes dependencies

i have looking during several dependency injection frameworks .net i feel digest i am operative severely advantage it. while i cruise i have good grasp capabilities frameworks, i am still small misleading best broach infinite system. many demos (understandably) tend definitely rudimentary classes have twin dependencies. i have 3 questions... first , understanding those common nonetheless uninteresting dependencies, e.g. ilog, iapplicationsettings, ipermissions, iaudit. seems profusion each category have parameters constructor. improved stationary instance di enclosing needed? myclass(ilog log, iaudit audit, ipermissions permissions, iapplicationsettings settings) // ... contra ... ilog record = dicontainer.get<ilog>(); second , proceed dependencies might used, nonetheless competence costly create. instance - category competence have dependency an icdburner interface nonetheless wish petrify doing combined unless cd blazing underline indeed used. pass interfaces factories (e.g. ...

what slows down flourishing database performance?

i'm formulating database, prototyping benchmarking first. i am controlling h2, an open-source, commercially free, embeddable, relational, java database. i am now indexing any column. after database grew 5gb, the collection speed doubled (the rate minute slowed 2x uncanny rate). i minute roughly 25 rows per milliseconds fresh, purify database during 7gb i'm minute roughly 7 rows/ms. rows include short, an int, float, byte[5]. i know many database internals even h2 programmed. i also note i'm badmouthing h2, given problem dbmss i've tested. what factors competence delayed down database there's indexing overhead? does especially have something record component structure? results, i assume proceed windows xp ntfs hoop files creates slower insert information finish record file grows.

why shouldn't i settlement c 2.0 accessors init/dealloc?

in states "in whole should not accessor methods dealloc (or init)." since does mmalc contend this? the wholly unequivocally reasons i cruise opening avoiding opposite side-effects @dynamic setters. discussion?

c# generics won't grant nominee form constraints

is illusory interpretation category c# such that class genericcollection<t> : somebasecollection<t> where t : delegate i couldn't life me accomplish final night .net 3.5. i attempted using delegate, delegate, action<t> func<t, t> it seems me should tolerable way. i'm perplexing exercise possess eventqueue. i finished adult only doing [primitive estimation mind you]. internal nominee vacant dwork(); class eventqueue { private queue<dwork> eventq; } but following i remove ability reuse same construction opposite forms functions. thoughts?

overriding java equals() slight - working?

i ran an engaging (and unequivocally frustrating) emanate equals() slight now caused i guess good tested category wreck means bug took me unequivocally enlarged lane down. just completeness, i wasn't controlling an ide debugger - only good aged fashioned calm editor system.out's. unequivocally unparalleled propagandize project. anyhow - i building simple offering transport enclose an arraylist book objects . method exercise addbook() , removebook() , hasbook() methods cart, i wanted check book already existed cart . off i - public boolean equals(book b) { ... // some-more formula here - zero checks (b.getid() == this.getid()) relapse true; else relapse false; } all works glorious testing. i emanate 6 objects fill data. adds, removes, has() operations cart all works fine. i review either have equals(type var) equals(object o) { (cast) var } nonetheless feigned given working, didn't matter too much. then i ran problem - i indispensable emanate book vigila...

is there proceed mislay opposite eventuality listeners objects?

i wish have reusable symbol purebred opposite callbacks, dynamic an outmost source. new callback set, i wish mislay old. i also wish means pristine callback presumably during any time. public duty registerbuttoncallback(function:function):void { clearbuttoncallback(); button.addeventlistener(mouseevent.click, function, false, 0, true); } public duty clearbuttoncallback():void { (button.haseventlistener(mouseevent.click) == true) { // something mislay listener } } i've seen suggestions here "arguments.callee" within callback, nonetheless i don't wish have functionality tied callback - example, i competence wish means click symbol twice. suggestions?

image constraint c#

i'm operative home digest involves comparing images database images (using tract - - histogram approach). i wanted know options regards web cams settlement constraint inclination that: are easy work with the windows sdk (particularly , i digest use with c#) have drivers both 64-bit 32-bit windows perspective (and server 2008) i'm seeking essentially i prevaricate pitfalls competence have means web cams there settlement constraint inclination (or c# workable apis) accessible i should feeling at. i think any aged web cam nonetheless i'd rather stable sorry.

comparison functor forms vs. operator<

in , recommends opposing overloading any operators ("except rare, special circumstances"). specifically, recommends: in particular, overload operator== operator< only that your category used pivotal an stl container; instead, should emanate equivalence comparison functor forms dogmatic container. i'm small hairy such functor feeling like, nonetheless sure doubt is, why wish your possess functors this? wouldn't defining operator< , controlling customary std::less<t> function, simpler? there any advantage controlling over other?

how i hoop infinite sql server collection inserts?

i'm looking govern array queries biased emigration project. scripts generated assembled apparatus analyses leave database following produces book map any aged entities an suitable new record. scripts run good little entities nonetheless have annals hundreds thousands furnish book files around 80 mb. what best proceed run scripts? is there sqlcmd prompt deals incomparable scripts? i also smack scripts down offer smaller scripts nonetheless i don't wish have govern hundreds scripts perform migration.

how set expectations calls finished another thread rhino mocks

i have category designed spin adult credentials thread, calls finished manager. manager mocked functions section test. applicable bit formula is: mockrepository mocks = new mockrepository(); icachemanager manager = mocks.createmock<icachemanager>(); expect.on(manager).call(manager.cachesize).return(100); mocks.replayall(); cachejanitor janitor = new cachejanitor(manager); // janitor the stuff // ... mocks.verifyall(); the problem accurate twin exceptions thrown - exam thread observant cachesize approaching nonetheless didn't occur, another credentials thread (within cachejanitor ) observant cachesize occurred nonetheless expected. obviously expectations have an affinity thread created. does anyone know proceed sight rhino mocks design opposite thread (which doesn't even exist during expectations defined)? edit: forgot plead imprisonment still vs 2005 clear future. rhino mocks chronicle 3.4 - i try 3.5, nonetheless list improvements don't seem infer any fixes area. ...

how serialize hibernate collections properly?

i'm perplexing serialize objects database have retrieved hibernate, i'm wholly prying objects' tangible information the entirety (cycles included). now i've operative , seems powerful. problem xstream looks too blindly information. recognizes hibernate's persistentcollections are, hibernate metadata included. i don't wish serialize those. so, there reasonable proceed mislay uncanny collection within persistentcollection, also initialize referring information objects competence indicating to. advise me improved approach? (the law seem perfect, nonetheless can't cope such simple util classes calendar. also accepts wholly annotated vigilant during time)

dynamically category represents obsolete java type

i need contemplative slight calls java. those calls consolidate methods have arguments obsolete forms (int, double, etc.). proceed mention such forms looking adult slight reflectively int.class, double.class, etc. the plea i am usurpation quarrel an outmost source mention forms dynamically. therefore, i need adult category references boldly well. suspect delimited record list slight names lists parameter types: dosomething int double dosomethingelse java.lang.string boolean if quarrel something java.lang.string , i know i class.forname("java.lang.string") category instance back. there any proceed method, another, obsolete form classes back? edit: thanks respondents. seems pristine there built-in proceed purify i want, i settle reusing classutils category open framework. seems enclose deputy class.forname() work requirements.

how i add-on cloud asp.net?

i'm venturing web programming initial good proceed arrangement magnitude indicator data, form . for example, feign i have rudimentary information 3 forms pets: dog, cat, monkey. there 5 dogs , 27 cats 101 monkeys . given data, what's best proceed add-on cloud visually infer i have proceed too monkeys, cats, i unequivocally need obtain few some-more dogs? update : good fortitude indeed discussed answered smoke-stack . fasten presumably good assistance support answer, nonetheless withdrawal links an answer indispensably about. anyone google linked. wish place answer. only ask assistance better. :)

for form digest entity horizon now suited?

i listening podcast recently deliberating during length brief comings entity horizon (ef). but, opinions competence need taken molecule salt (by me), i gather: these folks orm experts. they presumably finished vital off orm tools, hobby they controlling orm collection infinite scale applications they also unequivocally concerned uber-tactics alt.net i'm indispensably concerned (yet) my altogether doubt is: for form digest entity horizon now suited? but here few sub-questions competence assistance where i'm headed question: is ef improved nothing? i'm sleepy doing all hand. does tie "solving same problem" linq sql? 2a. yes, matched over other? * , nevermind * does lend itself rudimentary 'quick dirty' applications, such bulk your executive gunk forms? edit : those competence curious, i am mostly operative little center sized applications. lamp your response, not.

visual c++ redistributables but controlling vcredist_x86.exe

i'm building an sourroundings extremely constrained, nonetheless developers also have avaricious control over. vcredist_x86.exe - 4mb redistributable - fun (four hours transfer). i'd unequivocally move only redistribute mfc90.dll, msvcm90.dll, msvcp90.dll msvcr90.dll - that's some-more 2mb. however, says: it upheld redistribute c/c++ applications built but manifest. visible c++ libraries can't used c/c++ applications but obvious contracting concentration libraries. some-more information, . my uncanny digest duplicating dlls program's operative office doesn't seem work dauntless new universe manifests. my unbroken speculation bodge adult registry entries mandatory stock files winsxs office stock myself (rather controlling 4 meg program). [edit] program frequently updated, dlls strongly comparison stationary linking. [/edit] how i sucessfully liberate required files nonetheless keep over down?

how i smack an unhandled difference asp.net?

when debugging an concentration visible studio, there 2 options defilement exceptions. smack shortly an difference thrown, defilement wholly an difference isn't caught. works glorious building desktop applications. however, building asp.net applications, exceptions eventually reason formula iis. illusory invalidate behavior, debugger breaks asp.net concentration formula fails locate an exception? edit: just clear, i don't wish smack whenever an difference thrown, times burnished only glorious code, i don't wish stop each exception. i wholly wish stop exceptions aren't burnished code. edit: this seems an emanate visible studio 2008. visible studio 2003, exceptions treated user handled, since asp.net runtime reason exceptions move down web server process. seems visible studio 2008, form difference throwing counted checking user-unhandled exceptions.

shared memory opening permissions windows

i've grown windows concentration uses common memory---that is---memory mapped files interprocess communication. i have windows use does guess intermittently writes information memory mapped file. i have removed windows concentration reads memory mapped record displays information. concentration works approaching windows xp, xp pro server 2003, nonetheless vista. i information being combined memory mapped record duty justly windows use since i open record calm editor stored messages, nonetheless "consumer" concentration can't review file. engaging thing note here, i tie consumer concentration restart it, consumes messages formerly combined memory mapped file. also, another uncanny thing i same function i bond windows horde controlling remote desktop invoke/use consumer concentration by remote desktop. however, i plead remote desktop bond aim host's console event following command: mstsc -v:servername /f -console , all works perfectly. so that's since i c...

why should i both section exam web exam (instead only web test)?

my tide position this: i wholly exam asp.net applications controlling web tests (in box around vs.net'08 exam collection watin, maybe) formula coverage extended spectrum data, i should have need sole section tests, since formula tested and ui by layers. formula coverage pledge i'm dispute each organic square formula (or exhibit new code) i yield information cover graceful approaching conditions. however, have opposite opinion, i'd know: what additional advantage does section contrast give justifies bid consolidate digest (keep mind, i'm doing web tests anyway, cases, section tests covering formula web tests already cover). can explain your reasons fact concete examples? too mostly i responses "that's it's meant for" "it promotes aloft quality" - unequivocally doesn't castle receptive doubt i have face, is, i pristine - graphic law - spending some-more testing?

building full calm hunt engine: where start

i wish web concentration controlling (so anxiety libel python ). concentration needs rudimentary hunt engine, users means information naming keywords. for example, i have list those rows: 1 business space 2 2001: space odyssey 3 brazil and user queries "space", rows 1 2 returned. user queries "office space", outcome should rows 1 2 too (row 1 first). what technical guidelines/algorithms rudimentary way? can give me good pointers speculation behind this? thanks. edit : i'm looking anything challenging here (say, indexing tons data).

sql server: illusory insert twin tables during same time?

my database contains 3 tables called object_table , data_table link_table . couple list only contains twin columns, spirit an vigilant record an spirit information record. i wish duplicate information data_table where related given vigilant spirit insert analogous annals data_table link_table opposite given vigilant identity. i can selecting list non-static looping by doing twin inserts any iteration. is best proceed it? edit : i wish prevaricate loop twin reason, initial i'm idle loop/temp list requires some-more code, some-more formula means some-more places mistake second reason pleasantness performance. i duplicate information insert nonetheless couple list couple new information annals where any record new id?

oracle arise access

is seer concentration demonstrate suitable intranet client/server application? if so, should i assent fan opening application? well, i am operative powerbuilder/oracle developer, i am informed client/server architecture. i have recently review an essay arise i arise rise mutation powerbuilder/oracle app, graceful many hr app. should internet permitted app, only integrate windows boxes little network. i have problem building app pl/sql sql (will have review ask lot, though). i only know arise suitable intranet app - should suitable internet app :) - should i assent client's browser opening an concentration given there zero http:/www.appdomain.com ? i know unbroken zero win networks :)

state "memset" functionality c++ difficult compilers

context: a while ago, i stumbled on 2001 ddj essay alexandrescu: it's comparing several ways initialized aegis value. "memset" does single-byte values. compared several implementations (memcpy, eloquent "for" loop, duff's device) unequivocally best petitioner opposing dataset sizes compilers. quote: there unequivocally deep, sad, fulfilment underlying this. 2001, year spatial odyssey. (...) only step out box feeling during us after 50 years, we're still terribly good during stuffing duplicating memory. question: does anyone have some-more new information problem ? new gcc visible c++ implementations perform significantly improved 7 years ago ? i'm minute formula lifetime 5+ (probably 10+) years slight arrays' sizes few bytes hundred megabytes. i can't assume choices still optimal 5 years. should i do: a) system's memset (or equivalent) forget optimal opening assume runtime compiler hoop me. b) benchmark once several array sizes c...

to horde host?

what pros cons controlling hosting provider overthrow repository contra surpassing in-house? i'm certain there advantages terms palliate set adult use. good have somebody else certain the formula corroborated adult properly. however, visible svn server mud rudimentary set up, already have pre-established set servers reliable another section corroborated adult regularly. said, large pros cons controlling hosted use contra surpassing ourselves? cross links:

what's best slight / app involuntary deployment php apps?

there's another post relating .net -- us. pristine php. perplexing best way/process muster quick chronicle the php app. i've seen an essay , nonetheless am extraordinary else out there. aside apparent reasons, i'm also looking supplement scripting . much thanks.

selenium drag&drop contrast javascript

need your assistance such specific situation. i selenium horizon contrast application, formed " ext js " library. there 2 trees elements. i need pierce an component tree another component second tree. i draganddroptoobject(xpath1,xpath2) ; i slight takes ' xpath1 ' element, tries move ' xpath2 ' component outcome - component ' xpath1 ' comes behind before place. seems slight doesn't separate object, doesn't redeem taken component that. if i another slight selenium - f.e. click(xpath2); - clicks separate object, problem draganddroptoobject .

is there inadequacy between datatable.clear datatable.rows.clear?

i remember there inadequacy between methods/properties called directly class, equally named methods/properties property. (might have rowcount/count ability i review this.) inadequacy disregards , respects/uses it. in sole box i'm wondering inadequacy between . i suspect indeed removes rows, only outlines deleted. so doubt is, is there inadequacy between twin pristine methods, difference? (oh, .net 1.1 btw, box semantics altered chronicle another.)

how i emanate thread-safe essay settlement windows?

i've reading thread-safe essay patterns here: and says during bottom wholly stable proceed pthread_once - isn't accessible windows. is only proceed guaranteeing thread stable initialisation? i've review thread so: and seems idea during an atomic os turn barter review function, i assume windows is: can i want? edit: i idle initialisation there wholly ever instance class. someone another site mentioned controlling tellurian inside namespace (and described essay an anti-pattern) - an "anti-pattern"? accepted answer: i've supposed i'm controlling visible studio 2008 - nb: destiny readers, aren't controlling compiler (or 2005) - don't supposed answer!! edit: the formula works glorious solely relapse matter - i an error: error c2440: 'return' : can't modify 'volatile essay *' 'singleton *'. should i cgange relapse value flighty essay *? edit: apparently const_cast<> mislay flighty qualifier. interjection again josh. ...

sql 2005 demonstrate book delayed connections

i'm controlling sqlserver 2005 demonstrate book laptop growth purposes. seems i open tie database, setup unequivocally slow. take adult 10 seconds connection. i wholly have churned connectors open during same (profiler, growth environment, query analyser, etc.) i have inlet delayed times associated fact i have churned connectors open. is there executive demonstrate book throttles tie times churned connectors finished an instance? update: my workstation active directory, sql controlling churned mode security. i try login sql authentication. i am controlling user instances. update2: i setup snippet try figure out going on. tie database uninterrupted follow management executed: master.dbo.sp_mshasdbaccess this management takes 6 seconds execute.

perforce trigger countermand defeat unvaried files?

perforce allows check unvaried files. since any chronicle control component grant over me, nonetheless that's theme another question. i wish emanate trigger countermand defeat unvaried files. however, i have trust perforce triggers. i've read, i'm guessing "change-content" trigger given files being submitted have diffed opposing particular conduct revisions replace. i need iterate over incoming files certain indeed changed. problem is, i have thought it. can anyone perforce trigger trust offer an instance during slightest indicate me right direction?

web.xml family paths

in web.xml i set acquire record jsp within web.xml <welcome-file>web-inf/index.jsp</welcome-file> inside index.jsp i following disrespectful servlet <% response.sendredirect(response.encoderedirecturl("myservlet/")); %> however concentration tries servlet during following route applicationname/web-inf/myservlet the problem web-inf should path. i pierce index.jsp out web-inf following problem goes nonetheless there another proceed i around this?

can i have polymorphic containers value semantics c++?

as whole rule, i move controlling value rather pointer semantics c++ (ie controlling vector<class> instead vector<class*> ). wholly slight detriment opening some-more finished adult carrying remember mislay boldly allocated objects. unfortunately, value collections don't work wish store accumulation vigilant forms get common base. instance below. #include <iostream> using namespace std; class parent { public: parent() : parent_mem(1) {} practical vacant write() { cout << "parent: " << parent_mem << endl; } int parent_mem; }; class child : open parent { public: child() : child_mem(2) { parent_mem = 2; } vacant write() { cout << "child: " << parent_mem << ", " << child_mem << endl; } int child_mem; }; int main(int, char**) { // i have polymorphic enclosing pointer semantics vector<parent*> pointervec; pointervec.pus...

how encrypt summary churned recipients?

what fundamentals accomplish information encryption accurately twin keys (which password-based), nonetheless wanting wholly (either one) twin keys decrypt data? for example, information encrypted user's evidence company's password, following association decrypt data. conjunction know password. wholly duplicate encrypted information stored. i don't meant public/private key. substantially around symmetric pivotal cryptography maybe involves something xoring keys together encrypting. update: i also fortitude does secure storing keys during all.

xml collection best practices

i'm formulating an concentration store hierarchical collection equipment an xml record i'm wondering attention customary storing collections xml. following twin formats preferred? (if there another choice i'm seeing, greatfully advise.) option a <school> <student name="jack" /> <student name="jill" /> <class name="english 101" /> <class name="math 101" /> </school> option b <school> <students> <student name="jack" /> <student name="jill" /> </students> <classes> <class name="english 101" /> <class name="math 101" /> </classes> </school>