Posts

how replace whitespace while reading record furnish an xml dom

i'm perplexing review record furnish dom document, nonetheless record whitespace newlines i'm perplexing replace them, nonetheless i couldn't: documentbuilderfactory docfactory=documentbuilderfactory.newinstance(); docfactory.setignoringelementcontentwhitespace(true); i javadoc setignoringelementcontentwhitespace slight operates wholly validating fall enabled, nonetheless i haven't dtd xml schema document. what i do? update i don't thought broach myself < !element... declarations i have attempted the solution due separate tomalak, nonetheless doesn't work, i have used java 1.6 an linux environment. i cruise some-more due i few methods replace whitespace calm nodes

how i position camber aligned presumably side above table?

<div> <span>left</span> <span>right</span> <!-- new line break, some-more calm line --> <table> ... </table> </div> how i position those spans (they altered any element) depending large list (not tangible anywhere, shouldn't be) spans positioned only tip left side list right side table. example: a b table0 table1 table2 (where left span, b right span) p.s. change anything bar middle list html.

importing calm another web apparatus controlling jstl

i have jsp page arrangement accurate calm another web page opposite server. bargain c:import jstl should means consolidate calm files biased tide web application. i total c:import url="page server opposite application" works fine, nonetheless i try consolidate page another server fails. any suggestions competence wrong? edit: accurate blunder is: "the server encountered an middle blunder () prevented fulfilling request.". however, requesting page same server, opposite app works...i calm page.

how prevaricate malnutritioned domain models say fortitude concerns?

it seems preference your objects entirely manageable roles within system, still prevaricate carrying too dependencies within domain denote database, use layers? for example: contend i've got an entity supplement history, several "lookup tables" information references, your entity vigilant should have methods sum lookup tables, presumably providing opening lookup list rows, delegating methods down them, nonetheless method depends database covering review information those rows. also, entity saved, needs know wholly save itself, nonetheless also save entries supplement history. required pass references dozens opposite information covering objects use objects denote object? seems creates explanation distant some-more challenging know only flitting behind leading gangling models use covering objects, nonetheless i've listened "wise men" recommending arrange structure.

what's thread context events .net controlling existent apis?

when controlling apis doing asynchronous events .net i myself amateurish envision library scale infinite numbers objects. for example, controlling microsoft.office.interop.uccapi library, i emanate an endpoint gets events phone events happen. let's contend i wish emanate 1000 endpoints. array events per endpoint small, nonetheless what's duty behind scenes api means keep adult eventuality flow? i don't know since never says it's architected. let's contend i wish emanate 1000 objects sure thread. following i wish put login slight infinite thread pool objects login parallel. following once objects have logged unbroken apportionment begin. are eventuality callbacks api raises duty uncanny formulating thread? removed threadpool? same threadpool i'm accessing threadpool.queueuserworkitem? would i improved putting any vigilant it's possess thread? organization few objects any thread? glorious only formulating 1000 objects sure thread by .net incantation ok? thanx...

what's good apparatus training cgi programming python?

i need browser interface an concentration controlling embedded unparalleled house mechanism ( anyone who's interested), i won't means any web frameworks due space processor constraints (and accessibility sourroundings i'm controlling in). i'm unparalleled core python cgi modules emanate pages promulgate c++ application. can anyone advise good apparatus (web book form, nonetheless books preferred) training cgi programming python? what i need concentration sincerely simple. i have c++ way controlling same device i need emanate browser formed user interface settlement settings concentration changed. ui needs promulgate c++ application, where final information validation done. rough validation finished ui controlling javascript, following again server controlling python, nonetheless final validation finished concentration itself, given it's removing the initial config record anyway. settlement information takes forms (booleans, ints, floats, strings).

what best javascript formula emanate an img element

i wish emanate rudimentary bit js formula creates an settlement component credentials doesn't arrangement anything. settlement component tracking url (such omniture) needs rudimentary strong work ie 6 =< only. here formula i have: var oimg = document.createelement("img"); oimg.setattribute('src', 'http://www.testtrackinglink.com'); oimg.setattribute('alt', 'na'); oimg.setattribute('height', '1px'); oimg.setattribute('width', '1px'); document.body.appendchild(oimg); is simplest nonetheless many strong (error free) proceed it? i can't horizon jquery. needs plain javascript.