Posts

Showing posts from September, 2014

how hoop calendar timezones controlling java?

i have timestamp value comes application. user any given internal timezone. since date used webservice assumes given always gmt, i have need modify user's parameter contend (est) (gmt). here's kicker: user sharp tz. enters origination date wants send ws, i need is: user enters: 5/1/2008 6:12 pm (est) the parameter ws needs be : 5/1/2008 6:12 pm (gmt) i know timestamps always ostensible gmt default, nonetheless eventuality parameter, even nonetheless i combined calendar ts (which ostensible gmt), hours always off unless user gmt. am i missing? timestamp issueddate = (timestamp) getacpvalue(inputs_, "issueddate"); calendar issuedate = converttimestamptojavacalendar(issueddate); ... private stationary java.util.calendar converttimestamptojavacalendar(timestamp ts_) { java.util.calendar cal = java.util.calendar.getinstance( gmt_timezone, en_us_locale); cal.settimeinmillis(ts_.gettime()); relapse cal; } with before code, i outcome (short format easy reading): ...

rails testing: fixtures, factories, incantation numbers

i've got an concentration needs definitely bit information (1000s records) suitable testing. wholly proceed i've found decent set testable, essential information subset prolongation db . i've converted yaml fixtures normal `test/fixtures' location. this works, nonetheless i have garland clearly crisp tests assertions count being sole array annals accommodate condition x... example def test_children_association p = parent.find(1) assert_equal 18, p.children.count, "parent.children isn't providing right records" end this doesn't seem good thought me, nonetheless i'm certain there improved / supposed way exam an concentration needs infinite hierarchy data.

reacting click listitems checkboxlist

i ask explanation page containing checkboxlist control user checks unchecks sole checkbox items. say, instance boldly arrangement bury associated control. i came adult proceed controlling asp.net 2.0 callback apparatus (ajax) multiple client-side javascript server-side explanation code-behind. however, fortitude unequivocally bullet-proof (i.e. many approaching suffers timing issues). portable, since formula needs know consecutive ids sole items, etc. the formula i came adult distant twin functions, doing onclick event, guess returned callback twine : <script type="text/javascript"> function oncheckboxclicked() { // gathers semi-colon distant list labels, // compared now checked items var texts = ''; // iterate over any sole checkbox item // equipment checkboxlist sequential, so // stop iteration during initial blank method number (var index = 0; index < 99; index++) { var checkbox = document.getelementbyid('ctl00_...

how i emanate reusable "us state" form an xml schema?

i have an xml schema includes churned addresses: <xs:element name="personal_address" maxoccurs="1"> <!-- castle fields here --> </xs:element> <xs:element name="business_address" maxoccurs="1"> <!-- castle fields here --> </xs:element> within any castle element, i consolidate "us state" enumeration: <xs:simpletype name="state"> <xs:restriction base="xs:string"> <xs:enumeration value="al" /> <xs:enumeration value="ak" /> <xs:enumeration value="as" /> .... <xs:enumeration value="wy" /> </xs:restriction> </xs:simpletype> how i minute "us state" bulletin once re-using any castle elements? i apologize lay n00b doubt -- i've never combined an xsd before. my initial gash during following: <xs:element name="busines...

optimal rectangle hatching algorithm

i am looking an algorithm induce rectangle shortest altogether line length, an vigilant given area upheld by hatching. for instance given rectangle 5x3 cm, i induce controlling together lines 1cm across, biggest vigilant i pass by induce retard 1cm side. i have used an altogether 22 cm (ie 4x3+2x5) induce lines. pass an area 1sqcm i have used 22cm induce lines. the algorithm should settlement minimize altogether induce lines tide 22cm while permitting an area some-more 1sqcm pass by (the vigilant need form retard even rectangle, it's altogether area matters). edit: following lead nlucaroni i found states any assign qualification regions equal area fringe during slightest unchanging hexagonal grid, answers doubt partially.

how i presentation user creates mountain point?

first off, here constraints: must run xp must report both expostulate minute assignments ascent volume folder must 'wake' expostulate sleeping. i'd unequivocally rather polling drive. what i've tried: google i've looked during wmi win32_logicaldisk class. i establish drives mounted expostulate letter, nonetheless those mounted folder. win32_volume* win32_mountpoint classes perfect, nonetheless accessible xp. i've attempted polling drives controlling findfirstvolume & getvolumepathnamesforvolumename (even nonetheless i'd rather that), nonetheless appears drives contingency spun adult before give me information. again, ew, polling. i deliberation luck controlling api hooking offshoot calls setvolumemountpoint deletevolumemountpoint nonetheless i don't cruise locate all seems competence an dizzy penetrate anyway. so, yea, i'm looking suggestions :)

stop bell ctrl-a (winforms)

any ideas stop component bell sounding ctrl - a used name calm winforms application? here's problem. emanate winforms project. place calm box form supplement following eventuality handler form grant ctrl - a name calm textbox (no matter control focus). void form1_keydown(object sender, keyeventargs e) { (e.keycode == keys.a && e.modifiers == keys.control) { system.diagnostics.debug.writeline("control pressed."); txtcontent.selectionstart = 0; txtcontent.selectionlength = txtcontent.text.length; txtcontent.focus(); e.handled = true; } } it works, nonetheless notwithstanding e.handled = true, component bell sound each ctrl - a pressed. thanks reply. keypreview form set loyal - nonetheless doesn't stop component bell sounding - problem i'm perplexing solve - annoying.

how tie .net form the prefiltermessage()?

i'm filtering messages form prefiltermessage this: print("code sample"); open bool prefiltermessage(ref summary m) { (m.msg == wm_keydown && (int)m.wparam == vk_escape) { this.close(); relapse true; } relapse false; } print("code sample"); but matter form closes wholly initial time. after reopening form won't tie anymore dire esc. how i accomplish this? thanks

c# locking

i am perplexing hinder information races multihreaded server. problem following: there list<rserver> , form rserver category several fields. now, server several threads controlling during same cgange both list (adding some-more items) sole rserver instances (changing fields). so plan readonly vigilant rserverlock = new object( ) any rserver instances additionally readonly vigilant rserverlistlock = new object( ) hang formula modifies presumably (the list rserver instance) lock . safe? happens thread tries close rserverlock while another locking it?

adding section tests an existent project

my doubt definitely applicable nonetheless i need receptive advice. i have "working effectively leave code" hands i 'm controlling recommendation book i review digest i 'm operative on. digest c++ concentration consists few libraries nonetheless vital apportionment formula collected unparalleled executable. i 'm controlling googletest adding section tests existent formula i have reason something. my problem i setup build slight i build section tests given there twin opposite executables need share formula while i am means mislay formula "under test" concentration library. right i have finished build slight concentration binds section tests couple opposing vigilant files generated build slight sure concentration nonetheless i unequivocally dislike it. there any suggestions?

can i relapse varchar(max) stored procedure?

vb.net web component sql server 2005 backend. i've got stored way advantage varchar, we're finally removing values won't fit varchar(8000). i've altered relapse parameter varchar(max), nonetheless i tell oledbparameter.size ability accept any volume text? as petrify example, vb formula got relapse parameter stored way used feeling like: objoutparam1 = objcommand.parameters.add("@rstr", oledbtype.varchar) objoutparam1.size = 8000 objoutparam1.direction = parameterdirection.output what i .size work (max)? update: to answer questions: for intents purposes, calm needs out chunk. (changing take some-more fundamental work i wish - am certified for, really.) if i don't set size, i an blunder reading "string[6]: distance ability an unfair distance 0."

enable invalidate "step into" debugging certain digest visible studio solution

i have visible studio fortitude 4 c# projects it. i wish step formula ancillary digest fortitude sure project, nonetheless i "step into" key, only skips over project. i've set breakpoints ancillary project, they're ignored, i can't life me step any references project. everything set accumulate "debug", i've seen visible studio advise me breakpoints won't strike before - doesn't case. it's nonetheless looks nonetheless formula debug, nonetheless following during run-time, there's sourroundings somewhere tells visible studio step by formula project. projects solutions debug but problems. what box have i checked means behavior? update clarity : "just code" choice now disabled. also, given formula belongs digest same solution, i don't cruise "just code" choice relates here. i guess wholly receptive pre-compiled formula i didn't have source for, nonetheless given i have source project, i don't cruise choice ...

how i force sequence pier slight wait line pristine before eventuality the data?

here's credentials i'm perplexing do: open sequence pier mobile device bluetooth printer. send an epl/2 form bluetooth printer, understands provide information receive. once form received, send information printer printed tag stock. repeat step 3 times required any tag printed. step 2 wholly happens initial time, given form does need communicate any label. emanate i send form, i send tag information too fast print. infrequently i "bluetooth failure: radio non-operational" printed tag instead information i sent. i have found proceed around emanate doing following: for (int try = 0; try < 3; attempt++) { try { serialport.write(labeldata); break; } locate (timeoutexception ex) { // record info arrangement info formed ex.message thread.sleep(3000); } } so basically, i locate timeoutexception retry slight after sharp certain volume (three seconds seems work time, nonetheless any reduction seems pitch difference eac...

what jms good for?

i'm looking (simple) examples problems jms good solution, also reasons since jms good fortitude cases. past i've simply used database means flitting messages b summary can't indispensably processed b immediately. a feigned instance such component where newly purebred users should sent acquire e-mail within 24 hours registration. effect argument, assume db does record any user registered, nonetheless instead anxiety (foreign key) any new user stored pending_email table. e-mail sender office runs once each 24 hours, sends an e-mail users table, following deletes pending_email records. this seems kind problem jms should used, nonetheless it's pristine me advantage jms have over proceed i've described. advantage db proceed messages persistent. i know jms summary queues also persisted, nonetheless box there seems small inadequacy between jms "database summary queue" proceed i've described? what am i missing? - don

vb 6 .exe opposite law debugger

i'm comparing law assembled i 'make .exe' compared i run accurate same slight controlling accurate same variables nonetheless ide vb 6 debugger. i've attempted an array opposite compiler options nonetheless avail. so doubt since i inadequacy between debugger 'make .exe'? have ever arross something identical fix? the way takes infinite record depends cars timeperiod averages 15 footnote timeperiods over month any route. it elminates certain annals depending there outmost customary flaw statistical algorithms discharge values. its bit many formula post unfortunately...

query revisions an vigilant graph

i'm implementing an review record database, all createdat removedat column. i wish means list revisions an vigilant graph nonetheless best proceed i cruise unions. i need each unparalleled createdat removedat id. if i'm removing list countries provinces kinship looks this: select c.createdat revisionid countries c where localid=@country union select p.createdat revisionid provinces p inner join countries c p.countryid=c.localid c.localid = @country union select c.removedat revisionid countries c where localid=@country union select p.removedat revisionid provinces p inner join countries c p.countryid=c.localid c.localid = @country for some-more difficult queries definitely difficult presumably perform unequivocally feeble i wanted anyone cruise improved approach. mssql server. i need unparalleled list since being used apportionment genuine information comes fasten this.

programatically tfs changes given final good build

i have several branches tfs (dev, test, stage) i combine changes exam bend i wish involuntary build muster book updated sql files muster exam database. i guess i awaiting changesets compared build given final good build, awaiting sql files changesets deploying them. however i don't seem carrying changeset compared build reason doubt twofold: 1) i pledge changeset compared sole build? 2) i list files have altered bend given final good build? i have final successfully built build nonetheless i'm capricious files but checking changesets (which mentioned above compared build!)

is there webservice accessible checking person's credit score?

i'm building an concentration should automatically check person's credit measure donation opposite remuneration options formed score. the closest i nonetheless it's meant checking business' credit measure an indivdual's.

strategy quit starteam 5 subversion?

i need quit infinite digest starteam 5 subversion, i'd keep snapshots (at least) 5-10 vital releases. i've deliberate following: manual scripted export/import any snapshot. advantages: straightforward, easy name labeled/dated versions. disadvantages: time-consuming, does safety comments. polarion offers seems ideal apparatus svnimporter, nonetheless requires .jar record starteam 8.0 donation starteam 5. advantages: automated, complete. disadvantages: requires stand starteam 8.0 one-time use. migrate around middle repository ( e.g. starteam -> cvs -> subversion). i haven't nonetheless found any surrogate grant starteam. migrate wholly latest source. advantages: simple, fast, encourages developers invent new solutions rather repeating history. disadvantage: encourages developers invent new solutions rather repeating history. :-) i'd conclude any practice suggestions competence offer. conclude you.

should collect immature date initial full rubbish collection?

i'm minute way contains generational rubbish collector. there only twin generations. i awe is: doing full collection, i advantage anything (performance-wise) initial collecting younger objects, compelling survivors aged generation, following collecting aged generation, should i only rubbish collect all sweep? i'm certain proceed wholly it. i'm controlling two-step slight now, given bit easier implement, nonetheless maybe one-step slight some-more efficient? the rubbish gourmet non-copying, matters.

javascript before asp:buttonfield click

i have gridview control an asp.net application, <asp:buttonfield> type="image" commandname="delete" . is there any proceed govern square javascript before reaching onrowdelete event? i wish only rudimentary endorse before deletion row. thanks! edit : greatfully note <asp:buttonfield> add-on does have an onclientclick attribute.

running doxygen tradition build step vs2008

i am generating doxygen support (fairly small) digest any build. i following accomplish this: added index.html , doxygen generates, project specified tradition build step record (not whole project) command line: doxygen ../doc/doxyfile outputs: ..doc/html/index.html additional dependencies: '../bin/foo.exe' the problem is, i need build twice until vs stops explanation me digest out date. how i repair this?

loading tradition horizon iphone

i'm perplexing an upnp browsing iphone. horizon works ideally mac, nonetheless i duplicate iphone app, wouldn't run even there's formula controlling horizon yet. it gives uncanny blunder i can't understand. [session started during 2008-10-20 15:32:34 +0200.] objc[2701]: category caanimationgroup implemented both /system/library/frameworks/quartzcore.framework/versions/a/quartzcore /developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator2.0.sdk/system/library/frameworks/quartzcore.framework/quartzcore. controlling doing /developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator2.0.sdk/system/library/frameworks/quartzcore.framework/quartzcore. objc[2701]: category catransition implemented both /system/library/frameworks/quartzcore.framework/versions/a/quartzcore /developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator2.0.sdk/system/library/frameworks/quartzcore.framework/quartzcore. controlling doing /developer/pl...

how i mislay text, save it, following cost web?

i am hf50(hf$hf) instance "myfile.txt" extracted information contingency save "save.txt". information "save.txt" extracted again fill parameters cost table. nonetheless i attempted code, i've got cost "save.txt" blank.? var $hf famous whatever i type. greatfully help. #! /usr/bin/perl print "content-type:text/html\r\n\r\n"; use cgi qw(:standard); use strict; use warnings; my ($file,$line,$tester,$hf,$keyword); my ($f1,$f2,$f3,$f4,$f5,$f6,$f7,$f8,$f9,$f10,$f11,$f12,$f13,$f14,$f15,$f16,$f17,$f18,$f19); my $keyword=param('keyword'); $hf=$keyword; my $infile='myfile.txt'; my $outfile='save.txt'; open (my $inhandle, '<',$infile) die "can't open $infile:$!"; open (my $outhandle, '>', $outfile) die "can't open $outfile:$!"; while (my $line=<$inhandle>){ if ($line=~ m/hf$hf/i) { print {$outhandle}$line; print $line; print "<html>"; print "...

nhibernate - invalidate automatic\lazy loading child annals relationsihps

i know there proceed invalidate involuntary loading child annals nhibernate ( one:many family ). we simply switch off idle loading properties nonetheless i wish invalidate any kind involuntary loading ( idle non idle both ). i wholly wish bucket information around query ( i.e. hql criteria ) i still interpretation charge between progenitor child annals mapping record foster hql means join progenitor child entities, nonetheless i wish child annals hallowed biased progenitor record unless query progenitor record explicitly states ( around regretful fetch, etc ). example: fetching section record database should fetch worker annals database since competence never needed. one choice here set employees collection section idle load. problem proceed once vigilant given job api 'touch' idle bucket ability fetch whole list db. i attempted 'evict' - mislay vigilant nonetheless does seem operative during times does low secrete object. plus abstracts idle hallowed ability form surro...

integrating captcha open security

what suitable proceed combine springsecurity capcha ? i have following box : when user tries login, unsuccessful login n times, captcha displayed, authentication controlling 3 parameters : username, password, captcha. nonetheless open confidence doesn't support built captcha handling. i only start pondering implementation. have following variants: adding removed confidence filter open confidence filter stack, entirely rewrite authenticationprocessingfilter support captcha use programmatic authentication interception captcha explanation following transfering username evidence open security as captcha doing i cruise jcaptcha, nonetheless your thougths?

how i supplement query parameters getmethod (using java commons-httpclient)?

using apache's commons-httpclient java, what's best proceed supplement query parameters getmethod instance? i'm controlling postmethod, it's unequivocally straightforward: postmethod slight = new postmethod(); method.addparameter("key", "value"); getmethod doesn't have an "addparameter" method, though. i've detected works: getmethod slight = new getmethod("http://www.example.com/page"); method.setquerystring(new namevaluepair[] { new namevaluepair("key", "value") }); however, many examples i've seen presumably hard-code parameters directly url, e.g.: getmethod slight = new getmethod("http://www.example.com/page?key=value"); or hard-code query string, e.g.: getmethod slight = new getmethod("http://www.example.com/page"); method.setquerystring("?key=value"); is patterns preferred? since api inequality between postmethod getmethod? those httpmethodparams methods comman...

big o footnote homework--code bit algorithm analysis?

for homework, i given following 8 formula fragments investigate give big-oh footnote controlling time. anybody greatfully tell me i'm right track? //fragment 1 for(int i = 0; i < n; i++) sum++; i'm pondering o(n) bit 1 //fragment 2 for(int i = 0; i < n; i+=2) sum++; o(n) bit 2 well //fragment 3 for(int i = 0; i < n; i++) for( int j = 0; j < n; j++) sum++; o(n^2) bit 3 //fragment 4 for(int i = 0; i < n; i+=2) sum++; for(int j = 0; j < n; j++) sum++; o(n) bit 4 //fragment 5 for(int i = 0; i < n; i++) for( int j = 0; j < n * n; j++) sum++; o(n^2) bit 5 nonetheless n * n throwing me off bit i'm definitely sure //fragment 6 for(int i = 0; i < n; i++) for( int j = 0; j < i; j++) sum++; o(n^2) bit 6 well //fragment 7 for(int i = 0; i < n; i++) for( int j = 0; j < n * n; j++) for(int k = 0; k < j; k++) sum++; o(n^3) bit 7 nonetheless once again n * n throwing me off ...

why python decorators rather closures?

i still haven't got conduct around decorators python. i've already started controlling lot closures things customize functions classes coding. eg. class node : def __init__(self,val,children) : self.val = val self.children = children def makerunner(f) : def run(node) : f(node) x node.children : run(x) relapse run tree=node(1,[node(2,[]),node(3,[node(4,[]),node(5,[])])]) def pp(n) : imitation "%s," % n.val printtree = makerunner(pp) printtree(tree) as distant i see, decorators only opposite syntax doing something similar. instead def pp(n) : imitation "%s," % n.val printtree = makerunner(pp) i : @makerunner def printtree(n) : imitation "%s," % n.val is there decorators? there component inadequacy i've missed?

viewstate blunder points site.master

i only total asp.net calendar control new page underneath illustration folder asp.net mvc beta application. i govern particaular page i need shows blunder following validation viewstate mac failed. concentration hosted web camp cluster, pledge settlement specifies same validationkey validation algorithm. autogenerate can't used cluster. description: an unhandled difference occurred during execution tide web request. greatfully hearing smoke-stack snippet some-more information blunder where originated code. that points here . it's site.master asp.net mvc <div id="logindisplay"> <% html.renderpartial("loginusercontrol"); %> </div> usually prevaricate error, give <pages validaterequest="false" enableeventvalidation="false" viewstateencryptionmode ="never" > but, doesn't work me.

how place servant controls inside organisation box?

when i assent common control visible impression support (initcommoncontrols()) i am controlling any thesis following windows model theme, buttons inside organisation box seem black border retard corners. windows model thesis appears normal, good i spin off visible styling. i am controlling following code: group_box = createwindow(text("button"), text("bs_groupbox"), ws_child | ws_visible | bs_groupbox | ws_group, 10, 10, 200, 300, hwnd, null, hinstance, 0); push_button = createwindow(text("button"), text("bs_pushbutton"), ws_child | ws_visible | bs_pushbutton, 40, 40, 100, 22, group_box, null, hinstance, 0); edit: emanate occurs radio buttons well edit: i am controlling any dialogs/resources, wholly createwindow/ex. i am compiling underneath visible c++ 2008 demonstrate sp1, general file

why grant an outmost interface yield hashcode/equals hashmap?

with treemap it's excusable yield tradition comparator , so vital semantics presumption comparable objects total map. hashmap s however can't tranquil manner; functions providing crush values equivalence checks can't 'side-loaded'. i think both easy useful settlement an interface retrofit hashmap (or new class)? something this, solely improved names: interface hasharator<t> { int alternativehashcode(t t); boolean alternativeequals(t t1, t t2); } category hasharatormap<k, v> { hasharatormap(hasharator<? super k> hasharator) { ... } } category hasharatorset<t> { hasharatorset(hasharator<? super t> hasharator) { ... } } the problem gets excusable solution: new hasharatormap(string.case_insensitive_equality); would doable, any component problems approach? is proceed used any existent (non-jre) libs? (tried google, luck.) edit: good workaround presented hazzen, nonetheless i'm fearful workaround i'm p...

do i have definitely system.exit() webstart application?

recently i converted representation concentration webstart. slight graceful straightforward, nonetheless i found after i tie windows, application's jvm terminate. thread dump showed there integrate non-daemon threads, quite swing's edt, awt integrate websart associated threads. the tangible plan used any window increments opposing combined decrements closed. default tie operation dispose_on_close. wen opposing reaches zero, i stop threadpools redeem jni resources. when i launched concentration bat record (same jars), consummated glorious windows closed, i figured problem something webstart. now questions: can anybody tell me accurately happening? since does webstart leave zombie jvms? is there proceed redeem webstart resources definitely but vulgar jvm? i've always opinion job system.exit() encourages messy use releasing your resources relying os purify adult after (which lead nasty surprises reuse formula later)... am i blank something? see also detecting presumably app l...

how let an asmx record cost json

i combined an asmx record formula behind file. it's operative fine, nonetheless outputting xml. however, i need cost json. responseformat settlement doesn't seem work. code-behind is: [system.web.script.services.scriptservice] public category _default : system.web.services.webservice { [webmethod] [scriptmethod(usehttpget = true,responseformat = responseformat.json)] open string[] userdetails() { relapse new string[] { "abc", "def" }; } }

create an idol memory win32 python

what's good proceed beget an idol in-memory python? right i'm forced pygame pull icon, following i save hoop an .ico file, following i bucket hoop an ico resource... something this: os.path.isfile(self.icon): icon_flags = win32con.lr_loadfromfile | win32con.lr_defaultsize hicon = win32gui.loadimage(hinst, self.icon, win32con.image_icon, 0, 0, icon_flags) ...where self.icon filename idol i created. is there any proceed memory? edit: i wish emanate an idol 2-digit array displayed (weather-taskbar style.

c# console concentration still renter memory after exit

i have an .net c# console concentration (not service). fundamentally connects webservice, gets xml files, copies those files few plcae drives, validates xml, processes sends objects another web service. however, sure slight exists (and console window closes) i still slight assign manager. i attempted surrounding all sure slight try, locate an applicationexception, i still got zero since app crashes even nonetheless all works uniformly otherwise... anybody thought where start check unsound part?

visual studio (6.0, 2003 & 2008) harmony windows perspective 64-bit (x64)

are there any harmony issues controlling visible studio 6.0 (including visible sourcesafe 6.0 client), visible studio 2003 & visible studio 2008 windows perspective 64-bit? can i interactively debug applications perspective web server? i still make/compile projects? is repremand assume visible studio 6.0 & 2003 govern underneath wow64 (windows-on-windows 64-bit), while visible studio 2008 internal x64? i note "support matter visible simple 6.0 windows perspective windows server 2008" () states "vb6 growth 64-bit windows not supported." i found usernet/newsgroup discussions folks perplexing identical endeavors

how i instance value ability noted attribute?

i have category noted tradition attribute, this: public category orderline : entity { ... [parent] open method order { get; set; } open castle shippingaddress{ get; set; } ... } i wish general method, where i need ability entity noted progenitor attribute. here attribute: [attributeusage(attributetargets.property, allowmultiple = false, hereditary = false)] public category parentattribute : attribute { } how i this?

how apache/mod_python slight collect the zombies?

apache/2.2.6 (unix) dav/2 mod_python/3.2.8 python/2.4.4 configured ... one apache processes spawns long-running python book asynchronously, apparently doesn't seem collect the child slight list entry. after long-run-in-subprocess python book finishes - left python slight left. # ps -ef | grep httpd root 23911 1 0 oct15 ? 00:00:01 /usr/sbin/httpd ... qa 23920 23911 0 oct15 ? 00:00:00 /usr/sbin/httpd # ps -ef | grep python ... qa 28449 23920 0 12:38 ? 00:00:00 [python] <defunct> what proceed apache slight collect the children? illusory office around mod_python ask handler ( pythoncleanuphandler example)? thanks.

general proceed reset member non-static the uncanny value controlling stack?

i came opposing category instance duty indispensable temporarily change category instance variable, following revive duty completed. duty relapse statements over place, before any relapse there restoring statement. seemed unfinished me, plead descent difference thrown. as an alleviation i came adult generalization controlling middle category definition. here illustration engineer way (class restorer). class tell { private: bool b_active_; ///< thing i wish restored template<typename t> category restorer { t* ref_; t save_; public: restorer(t* perm) : ref_(perm), save_(*ref_) {}; ~restorer() { *ref_ = save_; } }; public: unwind() : b_active_(false) {}; vacant a() { out("a in"); b(); out("a end"); } vacant b() { out("b in"); { restorer<bool> trust_in_the_stack(&b_active_); // "restorer" combined stack b_active_ = true; // change b_active_ wholly while "within" b() ...

c#/.net: detect presumably way being run use console application

i have c#/.net way run both console concentration service. currently i give command-line choice start console application, nonetheless i prevaricate that. is illusory programmatically detect presumably way being started service? if pristine win32, i try starting use startservicectrldispatcher tumble behind console returned error_failed_service_controller_connect, nonetheless system.serviceprocess.servicebase.run() pops adult an errordialog fails following only advantage but signaling an blunder program. any ideas?

cookie loses value asp.net

i have following formula sets cookie: twine locality = ((dropdownlist)this.loginuser.findcontrol("locale")).selectedvalue; httpcookie cookie = new httpcookie("localization",locale); cookie.expires= datetime.now.addyears(1); response.cookies.set(cookie); however, i try review cookie, value null. cookie exists. i never past following check: (request.cookies["localization"] != zero && !string.isnullorempty(request.cookies["localization"].value)) help?

what many wanted sharepoint feature?

are thinks: "only i thing accessible me, i'll sharepoint fortitude solve day-to-day problems?" what skip sharepoint functionality happy? what cases cruise sharepoint solve nonetheless skip something happen? is web part? component? functionality? formation option? growth complexity? [i'll solve many engaging ones fortitude available] summary this have far: complicated fortitude deployment complicated growth contrast (in connected away modes) search operative desired navigation cumbersome

what inadequacy between "mvn deploy" internal repo "mvn install"?

my organisation uses an middle organisation maven repo common growth server controlling apache. also run continuum ci server same machine. maven builds continuum run "install" goal, copies final artifact directly common directory. the doubt is, inadequacy between adding files common repo controlling mvn exercise controlling muster idea (mvn-deploy plugin)? it seems me controlling mvn muster creates additional settlement hassles, nonetheless i have review somewhere installing files common repo bad thought reason associated middle workings maven. update: i organic differences between muster install; i am indeed some-more prying low turn sum terms files combined maven repo.

is !! stable proceed modify bool c++?

[this doubt associated nonetheless same .] if i try values certain forms boolean expressions, i warning. rather conceal warning, i infrequently ternary user ( ?: ) modify bool. controlling twin operators ( !! ) seems same thing. here's i mean: typedef enlarged t; // identical warning vacant * double t t = 0; bool b = t; // opening warning: forcing 'long' value 'bool' b = t ? loyal : false; // ok b = !!t; // any different? so, does double-not technique unequivocally same thing? any some-more reduction stable ternary technique? technique equally stable non-integral forms (e.g., void * double t )? i'm seeking !!t good style. i am seeking semantically opposite t ? loyal : false .

best proceed hoop confidence prevaricate xss user entered urls

we have high confidence concentration wish grant users enter urls users see. this introduces high risk xss hacks - user potentially enter javascript another user ends adult executing. given reason understanding information it's essential never happens. what best practices traffic this? any confidence whitelist evade settlement alone good enough? any recommendation traffic redirections ("this couple goes outmost the site" summary warning page before following link, instance) is there an justification ancillary user entered links during all? clarification: basically the users wish input: stack .com and have cost another user: <a href="http://stack .com">stack .com</a> what i unequivocally worry controlling xss hack. i.e. input: alert('hacked!'); so users link: <a href="javascript:alert('hacked!');">stack .com</a> my instance only explain risk - i'm good wakeful javascript urls opposite things, nonetheless p...

best use comprehend long-term history-mode o/rm system(hibernate)?

i have mapped several java classes customer, assessment, rating, ... database hibernate. now i am pondering history-mode changes determined data. concentration web application. box deletion (or editing) information another user should have luck changes mislay it. given changes out range tide session, i don't know solve something management pattern, permitted mislay functionality. for unparalleled value modifying an proceed sounds ok. nonetheless deletion whole determined entity? simplest proceed emanate fall list fan deleted not. complexest proceed emanate list any category where deleted entities stored. there anything between? i combine twin things o/rm component (in box hibernate) comfortably, but messing around many sql (which i wish prevaricate since portability) still have adequate flexibility? is there best practice?

complex information forms wcf?

i've run problem perplexing relapse an vigilant binds collection childobjects again reason collection grandchild objects. i an error, 'connection forcibly closed host'. is there any proceed work? i now have structure imitative this: pseudo code: person: ienumerable<order> order: ienumerable<orderline> all 3 objects have datacontract charge open properties i wish unprotected (including ienumerable's) have datamember attribute. i have churned operationcontract's use methods returning unparalleled vigilant an ienumerable an vigilant works perfectly. it's wholly i try nest ienumerable turns bad. also fan use anxiety i picked general list collection type. i only wish emphasize, only operations/methods destroy blunder - rest work perfectly . edit (more footnote blunder description): [socketexception (0x2746): an existent tie forcibly closed by the remote host] [ioexception: amateurish review information float connection: an existent tie forcibly closed rem...

sql dts database duplicate fails

hey all, i have operative problem while common google searches aiding :( i have prolongation database sql 2000. i wish duplicate over tip training database modernise it. i wish something scheduled occur once week keep training database up-to-date. i have dts office combined doing this. within dts office i have unparalleled "copy sql server objects" task. assign set adult to: create copied objects drop finish objects first copy data replace existent data copy indexes, triggers, primary unfamiliar keys copy user tables, views, functions stored procedures. when i run dts package (in pre-production contrast course) gets 99% finished throws following error: step blunder source: microsoft sql-dmo (odbc sqlstate: 42s02) step blunder description:[microsoft][odbc sql server driver][sql server]invalid vigilant name 'dbo.vwestassetstationaddress'. step blunder code: 800400d0 step blunder assistance file:sqldmo80.hlp step blunder assistance context id:1131 my searches net didn...

how i force quarrel uppercase an asp.net textbox?

i'm minute an asp.net application. i have textbox webform, i wish force whatever user forms top case. i'd front end. should also note there validation control textbox, i wish certain fortitude doesn't meddle asp.net validation. clarification: it appears css calm reconstruct creates user quarrel seem uppercase. however, underneath hood, it's still devaluate box validation control fails. see, validation control checks current state formula entered, however unchanging countenance i'm controlling wholly works uppercase characters.

java- changing representation credentials colour?

ok ive got representation app going controlling "system" feeling feel. now, i wish change credentials colour sure panels black. too easy right? uimanager.put("panel.background", color.black); well yeah, solely controls app feeling stupid, since 'shadows', wish improved word, graduated blur towards aged component default colour(gross windows grey). there light grey 'corners' controls, generally tabs jtabbedpane. i know fixed, since change windowsxp thesis opposite default concentration colour, controls take altered colour shadows 'fade' towards it. but i have thought uimanager pivotal is, even uimanger. i dont unequivocally wish change l&f engine, since removed looks good.

update quarrel station controlling ajax

i am now perplexing way initial ajax interface controlling rails. the concentration now shows list populated list items. user approve reject any list items. i now have an correct couple during finish any quarrel shows form i approve list item. i am pondering controlling checkbox instead correct link. user clicks checkbox i wish transform database status, user name date/time but withdrawal page. what stairs should i follow? can i checkbox am i restricted buttons? what xxx_remote supporter should i use? how i transform checkbox state law ajax call?

should i certain arguments aren't zero before controlling function?

the due competence unequivocally explain i'm unequivocally perplexing at, couldn't unequivocally cruise proceed news i mean. i wondering good use check arguments duty accepts nulls lifeless before controlling them. i have duty only wraps crush origination so. public common duty generatehash(byval filepath io.fileinfo) string (filepath nothing) then pitch new argumentnullexception("filepath") finish if low _sha new security.cryptography.md5cryptoserviceprovider low _hash = convert.tobase64string(_sha.computehash(new io.filestream(filepath.fullname, io.filemode.open, io.fileaccess.read))) relapse _hash finish function as i only takes io.fileinfo an argument, during start duty i am checking certain nothing. i'm wondering good use should i only let tangible hasher following pitch difference since null.? thanks.

doublerendererror restful_authentication acts_as_state_machine activating users

in digest uses restful_authentication acts_as_state_machine email activation, i double news blunder whenever user does activation movement email link. i'm controlling default def activate self.current_user = params[:activation_code].blank? ? fake : user.find_by_activation_code(params[:activation_code]) logged_in? && !current_user.active? current_user.activate! flash[:notice] = "signup complete!" end redirect_back_or_default('/') end to activate, default def redirect_back_or_default(default) redirect_to(session[:return_to] || default) session[:return_to] = nil end to redirect. route slight works each box it's called same way. the double news blunder occurs during news page main_page/home routed "/". what should i looking for?

what called mechanism science?

a lot programming languages frameworks do/allow/require something i can't seem name for, even nonetheless there substantially mechanism science. fundamentally bond variable/object/class/function name. instance ("selectall()"): <mx:button click="selectall()" label="select all"/> instance ("price"): <injectors target="{quotepanel}"> <propertyinjector targetkey="price" source="{quotemanager}" sourcekey="currentprice" /> </injectors> java instance ("foo"): class.forname("foo") there examples. idea. troubles me there probably proceed establish during compile-time, many ide assistance terms formula completion, navigation, refactoring. nonetheless that's besides point. my doubt is, called? i don't cruise it's these: , , update : no, quiz, contemptible sounds one. it's simply matter "name song" programming. update : answers helped: from t...

dealing twine containing churned impression encodings

i'm accurately certain ask doubt really, i'm where tie awaiting an answer, i wish someone assistance me. i'm minute python app connects remote horde receives behind byte data, i empty controlling python's built-in struct module. problem strings, consolidate churned impression encodings. here an instance such string: "^lthis an instance ^gstring churned ^jcharacter encodings" where opposite encoding starts ends noted controlling special evade chars: ^l - latin1 ^e - executive europe ^t - turkish ^b - baltic ^j - japanese ^c - cyrillic ^g - greek and on... i need proceed modify arrange twine unicode, nonetheless i'm unequivocally certain it. i've review adult python's codecs string.encode/decode, nonetheless i'm zero wiser really. i should plead well, i have control over strings outputted host. i wish someone assistance me started this.

how i balance php realpath cache?

recent versions php have cache filenames meaningful genuine route files, require_once() include_once() take advantage it. there's value set your php.ini set distance cache, nonetheless i have thought tell distance should be. default value 16k, nonetheless i proceed explanation many cache we're using. docs vague: yes, i jack adult volume cache allowed, run tests ab testing, nonetheless i'd something small some-more introspection only timing distance.

instantiating c++ category c# controlling p/invoke around pointer

i am importing createiceefilegen() duty unmanaged dll mscorpe.dll c# application, method beget pe file. duty advantage pointer an c++ vigilant , there any proceed i opening fields category around c# i need an unmanaged coupling dll? the formula i'm controlling now follows:- [dllimport(@"c:\windows\microsoft.net\framework\v2.0.50727\mscorpe.dll", entrypoint = "createiceefilegen")] static extern vacant createiceefilegen(out intptr iceefilegenpointer); ... intptr fileptr; createiceefilegen(out fileptr); n.b. : i know identical things .net libraries nonetheless i need unmanaged libraries purposes.

how i anxiety resources opposite subdomain (or cdn) production?

i am operative both flush java worlds. i have fervent rather project, provides several functionality easy anxiety resources (images, css, etc.) located subdomain (or cdn). i wish same java: in development testing , i wish presumably jstl's <c:url> struts 2's <s:url value=""/> tags anxiety assets. but production , i wish pierce many resources out removed subdomain (or cdn). are there any taglibs (or methodologies) out there assistance this? i don't sole wish parent views <c:if tests localhost , everytime i insert an <img> <link> tag. i am controlling struts 2 + jsp.

struts setup illustration concentration eclipse

i am new strut/web programming i guess i learn lot reading illustration app. google, i searched found illustration app at , educational unequivocally good gives illustration login page. however, i couldn't run illustration app. i attempted posting roseindia.net site got assistance neither. there blunder logged during start server, nonetheless i try open helloworld's couple following outputted i am removing error severe: movement outcome there movement mapped for movement name helloworld. - [unknown location] the folder structure thing obscure is /webcontent/web-inf/java/net/roseindia/struts2helloworld.java /webcontent/pages/helloworld.jsp /webcontent/web-inf/struts.xml while strut.xml illustration had.. <action name="helloworld" class="net.roseindia.struts2helloworld"> <result>/pages/helloworld.jsp</result> </action> i am suspecting something strut.xml wrong? i am controlling obscure j2ee tomcat6, i have already a...

what approval formula metrics?

i've seen array 'code metrics' associated questions lately, have awe approval is? here new examples: in mind, metric surrogate formula review, though: some metrics infrequently competence infer places need reviewed, and radical changes metrics over brief frames competence infer places need reviewed but i can't cruise unparalleled metric itself always indicates 'good' 'bad' formula - there always exceptions reasons things measurements can't see. is there lively understanding gained formula metrics i've overlooked? idle programmers/managers looking excuses review code? presented hulk leave formula bases looking place start? what's going on? note: i have asked questions specific threads both answers comments got replies, i guess i should ask village whole maybe i am blank something. good run metrics collection office indeed have review people's formula (or own) ever again, i only don't cruise practical! edit: i am informed many metrics b...

does set unchanging expressions entirely strengthen opposing querulous site scripting?

what's an instance something dangerous reason formula below? edit: after comments i total another line, commented below. vinko's critique david grant's answer. distant wholly vinko answered question, asks specific examples trip by function. vinko presumption one, nonetheless i've edited formula tie hole. another cruise another specific example, you'll have vote! public stationary twine strip_dangerous_tags(string text_with_tags) { twine s = regex.replace(text_with_tags, @"<script", "<scrsafeipt", regexoptions.ignorecase); s = regex.replace(s, @"</script", "</scrsafeipt", regexoptions.ignorecase); s = regex.replace(s, @"<object", "</objsafect", regexoptions.ignorecase); s = regex.replace(s, @"</object", "</obsafect", regexoptions.ignorecase); // total after doubt posted s = regex.replace(s, @"javascript", "javasafescrip...

how prevaricate arithmetic each python way reloaded

i have python way creates vast collection tellurian variable, now i put arithmetic formula tip section, each initial import reload way takes some-more following footnote totally unacceptable. i save arithmetic outcome somewhere unbroken import/reload doesn't have discriminate it? i attempted cpickle, nonetheless loading collection non-static file(1.3m) takes approximately same computation. to give some-more information problem, fd = freqdist(word brown.words()) # line formula takes 1 min

webtextedit clientsideevent javascript - can't eval

webtextedit clientsideevent govern javascript matter mousemove event. i successfully change impression another vigilant form webtextedit clientside mousemove event: document.getelementbyid("object2").style.backgroundcolor = '#f0f5f7'; but i wish change impression webtextedit control: document.getelementbyid("webtextedit1").style.backgroundcolor = '#f0f5f7'; then zero happens. when i govern book same webtextedit clientside another vigilant webtextedit: object2.style.border='1px plain #ffe6a0'; then works. nonetheless i wish change webtextedit clientside style: webtextedit1.style.border='1px plain #ffe6a0'; then i error: can't eval webtextedit1.style.border='1px plain #ffe6a0';

can cvs overthrow set replace whitespace merging?

cvs overthrow both have permitted combine underline transform source record have modified, merges changes others have finished same file. however, your changes ones proud - generally have both altered same tools formula - emanate conflict. both stretches source formula enclosed assimilated record need manually arrange out changes keep. glorious far. my problem us opposite growth environments (netbeans contra vi contingency know) netbeans an auto-indenting underline re-indents code. therefore, combine changes, infrequently vast conflicts mostly caused rudimentary changes indenture genuine changes code. mostly emanate hundreds lines apparent conflicts have manually resolved, nonetheless wholly down only few lines genuine changes. identical conditions occurs someone's editor changes unix windows newlines clamp versa. so - i set combine replace "conflicts" comparing twin versions? diff --ignore-space-change -b choice i have radically same underline accessible cvs svn. any app...

subversion & switching between tags

my involuntary deployment component updates latest chronicle site tray subversion. instead carrying live site indicate box (which always roughly work swell version), i have live site indicate tag. e.g. i work box v1.0 finished i emanate add-on called 1.0 checkout add-on following live site. now, i keep operative box after while there v2.0. i emanate add-on called 2.0 i wish live site resemble 2.0 tag. i clean tide live site checkout 2.0 tag. sounds easy enough, however. site 1gb distance since kinds pdf papers video it. i safely contend many i updates duplicate changes bug fixes. means maybe wholly 1% site changes per update. given chronicle control wholly accessable webserver by off site http tie meant i need download whole site over over again. is there an easy proceed switch between tags have overthrow wholly transform differences between those tags?

generating globally unparalleled identifier java

summary: i'm building determined java web application, i need certain resources i insist have globally unparalleled identifiers hinder duplicates. the glorious print: i'm controlling an rdbms, i don't have any imagination method generators (such presumption oracle) i'd fast, preferably memory - i'd rather have open adult record increment value it needs thread stable (i'm awaiting wholly jvm during need beget ids) there needs conformity opposing instantiations jvm. server shuts down starts up, id generator shouldn't re-generate same ids generated before instantiations (or during slightest luck really, unequivocally slim - i design millions presisted resources) i have seen examples ejb unparalleled id settlement article. won't work me (i'd rather rest wholly system.currenttimemillis() since we'll nutritious churned resources per millisecond). i have looked during answers due . pleasantness is, luck i register id over time? i'm intrigued id...

writing rudimentary preg_replace php

i'm many coder, nonetheless i need rudimentary preg_replace matter php assistance me wordpress plugin. basically, i need formula hunt string, lift out video id, relapse hide formula video id extrinsic it. in words, i'm poison this: [youtube=http://www.youtube.com/watch?v=video_id_here&hl=en&fs=1] and wish reinstate (keeping video id same): param name="movie" value="http://www.youtube.com/v/video_id_here&hl=en&fs=1&rel=0 if possible, i'd evermore beholden explain you've used several slashes, carets, kleene stars hunt pattern, i.e. interpret grep english i learn. :-) thanks! mike

vb.net strong-typed collection

i wish emanate collection vb.net, nonetheless i wholly wish accept objects certain type. example, i wish emanate category called "foocollection" acts collection each way, nonetheless wholly accepts objects form "foo". i guess i controlling generics, controlling following syntax: open category foocollection(of form foo) inherits collectionbase ... finish class but i an blunder i accumulate i "must exercise default accessor", clearly there's something missing. i don't wish mention form accepts i instantiate - i wish foocollection itself specific wholly accepts foo objects. i've seen finished c# strong-typed list, maybe i'm looking vb.net syntax. thanks your help! edit: interjection answer. it, nonetheless i wanted have classtype named certain way, i indeed achieved accurately i looking following code: public category foocollection inherits list(of foo) end class

ending asynchronous nominee bid biased form information

when minute async slight implementations controlling begininvoke/endinvoke settlement formula competence feeling something following (and save guessing an async coupling around cache): iasyncresult beginput(string key, vigilant value) { action<string, object> put = this.cache.put; relapse put.begininvoke(key, value, null, null); } void endput(iasyncresult asyncresult) { var put = (action<string, object>)((asyncresult)asyncresult).asyncdelegate; put.endinvoke(asyncresult); } this works ideally good since it's famous form nominee is, cast. however starts unfinished have twin put methods, since nonetheless slight advantage vacant clearly have ban strongly typed nominee finish invocation, e.g. iasyncresult beginput(string key, vigilant value) { action<string, object> put = this.cache.put; relapse put.begininvoke(key, value, null, null); } iasyncresult beginput(string region, twine key, vigilant value) { action<string, string, object>...

how (developer) understanding misleading charge churned behaving pos?

here's another doubt perplexing figure out scrum could/should work genuine life. here customary unfolding i encounter: note: reign "product owner" used below. since loyal "product owner" - product manager box - does final decisions. db lead final contend things decides app interacts db. qa possess ideas things should feeling / work - ideas entered bugs generally approaching (by everyone) treated such. product manager writes story "x user needs page y". at scurry formulation public story total scurry backlog. some bad developer grabs (or assigned) story. the developer asks product manager "what wish page like". product manager (if available) says, "hmm, well, needs collect a, b, c." developer starts operative best speculation should like. developer tries offshoot adult page stored proc asks db lead questions. db lead says "page also needs d e. shouldn't need b". developer creates changes commits it. qa says "i crui...

switch matter fall-through...should allowed?

for enlarged i remember i have avoided controlling switch matter fall-through. actually, i can't remember ever entering alertness illusory proceed things drilled conduct early zero some-more bug switch statement. however, now i ran opposing formula uses design, got me immediately wondering everybody village thinks switch matter fall-through. is something programming libel should definitely grant (like c# does, nonetheless fin workaround) underline any libel comprehensive adequate leave programmer's hands? edit: i wasn't specific adequate i meant fall-through. i form lot: switch(m_loadanimsubct){ box 0: box 1: // something break; box 2: box 3: box 4: // something break; } however, i'm concerned something this. switch(m_loadanimsubct){ box 0: box 1: // something, nonetheless tumble by cases // after doing it. box 2: box ...

program wholly crashes redeem build -- debug?

i've got "schroedinger's cat" form problem here -- way (actually exam unit program, nonetheless way nonetheless) crashing, nonetheless wholly built redeem mode, wholly launched management line. by caveman debugging (ie, nasty printf() messages over place), i have dynamic exam slight where formula crashing, nonetheless unfortunately tangible wreck seems occur destructor, given final snippet messages i destructors govern cleanly. when i try run way inside visible studio, doesn't crash. same goes rising windbg.exe. wreck wholly occurs rising management line. duty underneath windows vista, btw, unfortunately i don't have opening an xp accessory right exam on. it unequivocally good i windows imitation out smoke-stack trace, something simply terminating way exited cleanly. does anyone have any recommendation i some-more revealing information here hopefully repair bug? edit: problem indeed caused an out-of-bounds array, . interjection everybody your assistance...

insert array database unparalleled row

i awe doable ? insert an array domain database. for instance i have title, i wish have due wholly id, nonetheless it's going bilingually used website. it feels bit low another list have tellurian ids following another list tangible titles related list tellurian id. i only wish have something this id title 1 array("english title", "nederlandse titel"); i'm controlling php/msyql, doable greatfully explain languages. oh yeah i figured i format musty separate duty spin an array again. nonetheless i awe i only store an array right away, i box user competence form something same formatting (one out million)

navigation validation disaster seam/jsf

i've enactment (2.0.2.sp1) few weeks, i have many basement nailed down, nonetheless i haven't adult decent fortitude following. suppose i have form during /foo.xhtml , rewrite order such urls /foo.seam?id=<fooid> converted /foo/<fooid> . there's commandbutton form an movement #{foohome.update} . i also have navigation order /foo.page.xml redirects behind nice, bookmark-friendly after successful post: <navigation from-action="#{foohome.update}"> <rule if-outcome="updated"> <redirect view-id="/foo.xhtml"> <param name="id" value="#{foohome.instance.id}"/> </redirect> </rule> </navigation> the problem validation blunder occurs, during indicate navigation manners skipped, i finish adult during /foo after post. my question: there proceed route validation errors, i finish adult ask /foo/<fooid> instead post /foo ? i attempted ro...

why does parsing date twine pitch an unparseable date exception?

i'm controlling simpledateformat settlement eee mm/dd hh:mma , flitting date twine thu 10/9 08:15pm it's throwing an unparseable date exception. why? i've used several patterns simpledateformat before i'm sincerely informed the usage. maybe i'm blank something apparent staring during too long. the luck musty (technical term) whitespace. context screen-scraping app, where i'm controlling htmlcleaner neat adult unfinished html. while i've found htmlcleaner graceful good overall, i've beheld uncanny issues characters feeling whitespace nonetheless aren't famous such stringtokenizer, example. i've mostly worked around haven't dug impression encoding anything nonetheless am starting wonder.

jquery tips tricks

syntax roosteronacid roosteronacid nathan long roosteronacid roosteronacid roosteronacid roosteronacid oli nickf roosteronacid data storage tenebrousx roosteronacid filip dupanovi optimization roosteronacid lupefiasco nathan long andreas grech miscellaneous redsquare tm ken slace egyamado roosteronacid ben colour blend harriyott jan zich chris s onenerd roosteronacid

design estate countenance interfaces

i've never good during settlement since there opposite possibilities have pros cons i'm never certain with. anyway, here's problem, i have need opposite loosly associated classes have validation. however, classes need additional information validation. i wish have slight validate used countenance vigilant i wish establish an vigilant validatable an interface, contend validatable . following twin simple solutions i have. interface validatable { open vacant validate() throws validateexception; } interface object1validatable { open vacant validate(object1converse converse) throws validateexception; } class object1 implements object1validatable { ... open vacant validate() throws validateexception { pitch new unsupportedoperationexception(); } } class object2 implements validatable { ... open vacant validate() throws validateexception { ... } } this initial fortitude whereby i have whole tellurian interface something that's validatable implements i ...

is there proceed raise css an html <select> the <option> ie 6?

internet path-finder 6 seems totally replace css classes manners select, choice optgroup tags. is there proceed bypass discount (except exercise new chronicle ie) ? edit : some-more precise, i'm perplexing build hierarchy between options example: here's html dash : <select name="hierarchicallist" multiple="multiple"> <option class="group niv0">os developers</option> <option class="group niv1">linux</option> <option class="user niv2">linus torvald</option> <option class="user niv2">alan cox</option> <option class="group niv1">windows</option> <option class="user niv2">paul allen</option> <option class="user niv2">bill gates</option> <option class="group niv1">mac os</option> <option class="user niv2">steve wozniaz</option> </select> a...