Posts

Showing posts from April, 2014

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.

unique component id, even component doesn't have one

i'm minute greasemonkey book where i'm iterating by garland elements. any element, i need twine id i anxiety component later. component itself doesn't have an id attribute, i can't cgange uncanny request give (although i dom changes script). i can't store references book since i need them, greasemonkey book itself have left out scope. there proceed during an "internal" id browser uses, example? firefox-only fortitude fine; cross-browser fortitude receptive scenarios awesome. edit: if greasemonkey book out scope, referencing elements later? greasemonkey book adding events dom objects. i can't store references an array identical apparatus since eventuality fires, array left since greasemonkey book have left out scope. eventuality needs proceed know component anxiety book eventuality attached. component doubt attached. can't only tradition ability element? yes, nonetheless problem lookup. i'd have review iterating by elements looking tradition ...

how i mention values properties record retrieved controlling resourcebundle#getstringarray?

i am perplexing resourcebundle#getstringarray collect string[] properties file. outline slight support reads: gets twine array given pivotal apparatus gold the parents. however, i have attempted store values properties record churned sole key/value pairs: key=value1 key=value2 key=value3 and comma-delimited list: key=value1,value2,value3 but conjunction retrievable controlling resourcebundle#getstringarray . how paint set key/value pairs properties record such retrieved controlling resourcebundle#getstringarray ?

validating extracting xml record record database

here's deal. i have an xml request lot records. something this: print("<?xml version="1.0" encoding="utf-8" ?> <orders> <order> <phone>1254</phone> <city>city1</city> <state>state</state> </order> <order> <phone>98764321</phone> <city>city2</city> <state>state2</state> </order> </orders>"); there's also an xsd schema file. i mislay information record insert annals database table. initial impetus i countenance any method record. instance there 5 orders record 2 destroy validation i insert 3 upheld validation db left 2. there thousands annals xml file. best proceed here. validation given i need dump unsuccessful annals wholly ones upheld validation. during impulse i'm controlling xmlreadersettings countenance xml request records. should i mislay an...

using sspi (ntlm) api's windows accesscheck() perspective uac

summary client (windows xp sp3) server (windows perspective business sp1) / controlling localsystem use api method client - acquirecredentialshandle client - initializesecuritycontext server - acquirecredentialshandle server - acceptsecuritycontext client/server - completeauthntoken server - impersonatesecuritycontext server - accesscheckandauditalarm (maximum_allowed) server - i following review opening requested certified accesses. i opening check opposing private confidence vigilant combined createprivateobjectsecurityex. uac incited i success behind accesscheck, nonetheless zero privledges held. uac incited off i success behind rights gantedaccess parameter details the concentration twin componets it, fan server. uses tcp communicat over an unsecured network. authentication the incomming connectors i sspi api's listed above, impersonate job user. once job user impersonated i use accesscheckandauditalarm, fails i return behind only accesscheck. uac incited i am removing success ...

git-upload-pack: management found, cloning remote git repo

i have controlling git keep twin copies digest sync, internal box, exam server. this an emanate occurs i record onto the remote growth server controlling ssh; git reflection me@me.mydevbox.com:/home/chris/myproject initialized lifeless git repository /tmp/myproject/.git/ password: bash: git-upload-pack: management found fatal: remote finish hung adult unexpectedly fetch-pack 'me@me.mydevbox.com:/home/chris/myproject' failed. (the file-names have altered strengthen guilty... !) both boxes run solaris 10 amd. i have finished digging, i supplement --upload-pack=$(which git-upload-pack) management works, (and proves $path contains route 'git-upload-pack' per rtfm solution) nonetheless unequivocally annoying, and 'git push' doesn't work, since i don't cruise there --unpack= option. incidentally, git commands work glorious internal box, same chronicle program (1.5.4.2), hallowed same nfs mountain during /usr/local/bin . can anybody help?

how broach referential trust mutiple databases

i am center conceptualizing component used feed several prolongation sites around republic (all information site) appetite supplement more. primarily i guess i divided wholly controlling database. i am re-thinking uncanny settlement arrangement toward some-more scalable solution. retaining down distance any database / tables also important. there "master" database information spans thought site following removed database any site site-specific information it. my assault where removed data. information sincerely related. matter where i i remove referential integrity. all i've review says prevaricate during costs i cruise unequivocally good reasons, nonetheless i don't proceed around it. i have looked triggers, nonetheless i don't cruise work databases removed servers (not certain nonetheless - i cruise seer does this). i am unparalleled an open source fortitude it'll mysql postgre helps during all. does anybody have suggestions lessen problem have anothe...

repeated churned construction errors including same header churned cpps

so, matter i seem do, i can't seem prevaricate carrying dev c++ upsurge out countless churned construction errors outcome me including same header record churned source formula files same project. i'd strongly move prevaricate carrying dump source formula record wholly consolidate header once, that's going record unequivocally enlarged challenging manage. essentially, what's going on: #ifndef _myheader_h #define _myheader_h typedef struct mystruct{ int blah; int blah2; } mystruct; mystruct job_grunt; mystruct *grunt = &job_grunt; mystruct job_uruk; mystruct *uruk = &job_grunt; int other_data[100]; void load_jobs(); #endif example cpp record (they graceful many feeling something this): #include "myheader.h" void load_jobs(){ grunt->blah = 1; grunt->blah2 = 14; uruk->blah = 2; uruk->blah2 = 15; return; } bear mind i have 5 cpp files consolidate header, any traffic opposite form struct found header file. instance there wholly struct containi...

linux programming sourroundings configuration

the i set adult an ubuntu designation vm went accumulate collection libraries i figured i need programming mostly c++. i problem though, where put things such 3rd jubilee source libraries, etc. i gather, lot source distributions assume lot dependencies already hallowed certain plcae assume lot collection also hallowed sole locations. to give an instance i now windows, i have office where i keep source code. c:\code . directory, i have office 3rd jubilee libraries, c:\code\thirdparty\libs . proceed i simply set adult family paths dependencies any projects i opposing wish compile. reason i am prying sourroundings adult linux programming sourroundings seems both apparatus library dependency problems have solved good origination easy instance build openssh source. so i looking decent party i i am perplexing classify projects libraries linux easy say easy use.

how i an aged chronicle rails aptana radrails?

i'm new rails development, i'm perplexing figure out an comparison chronicle rails apatana's radrails ide. i'm perplexing assistance out associate site built comparison chronicle automatically gets downloaded radrails, i'm graceful certain twin versions wouldn't congruous (the site controlling pre 2.0 version, certain accurate array offhand). is there proceed tell radrails specific chronicle rails? there something i during management line change hallowed chronicle rails? i'm wholly vaguely informed "gem" package system, nonetheless i'm presumption secure that. any assistance many appreciated!

redirect stdin stdout file

i'm now training partner an introduction c class. category being taught controlling visible studio, nonetheless grading i only rudimentary windows collection book slight assignment submissions, accumulate them, run exam file, route cost array calm files i imitation out, symbol up, palm behind students. whole slight works unequivocally well, solely fact i route stdin, does seem redirected stdout same proceed does same stdin typed directly console. since this, cost formula formatted console does arrangement justly redirected output. following record snippets arrangement problem. does anyone know rudimentary solution? file: example.c #include <stdio.h> int main() { int v; printf("enter number: "); scanf("%i", &v); printf("you entered: %d\n", v); relapse 0; } file: input.txt 42 output (console) c:\>example.exe enter number: 42 you entered: 42 c:\> output (redirection) c:\>example.exe < input.txt > output.tx...

how i trifle divs controlling wholly css?

given template where html can't run-down since requirements, illusory arrangement (rearrange) div above another div method html? both div s enclose information varies tallness width. <div id="wrapper"> <div id="firstdiv"> calm next situation </div> <div id="seconddiv"> calm above situation </div> </div> other elements hopefully apparent preferred outcome is: content above situation content next situation other elements when magnitude bound easy position where needed, nonetheless i need ideas calm variable. effect scenario, greatfully only cruise extent 100% both. i am personally looking css-only fortitude (and substantially have met solutions doesn't vessel out). there elements following this. good idea mentioned given unparalleled unfolding i demonstrated—given competence best answer, nonetheless i am looking also certain elements following aren't impacted.

polymorphic functors std::for_each

i'm perplexing stl algorithm for_each but proliferating templates via code. std::for_each wants instantiate myfunctor category value, nonetheless can't given the abstract. i've combined functor adapter category passes pointer around following derefernces appropriate. my question: does stl boost already have such an adapter class? i don't wish have reinvent wheel! struct myfunctor { practical ~myfunctor() {} practical vacant operator()(int a) = 0; } namespace { template<typename functortype, typename operandtype> struct functoradapter { functoradapter(functortype* functor) : mfunctor(functor) {} vacant operator()(operandtype& subject) { (*mfunctor)(subject); } functortype* mfunctor; }; } vacant applytoall(myfunctor &f) { functorhelper<myfunctor, int> tmp(&f); std::for_each(myvector.begin(), myvector.end(), tmp); } cheers, dave

jasper news generating bad html

if i perspective html generated jasper reports ie7 i following: <br /><br /> <a name="jr_page_anchor_0_1"> <table style="width: 1000px" cellspacing="0" cellpadding="0" bgcolor="#ffffff" border="0"> <-- list physique wanting --> </table> the twin br tags total around jrhtmlexporterparameter.html_header parameter. after tags before commencement news list there's an denuded anchor add-on generated jasper reports. fact add-on justly closed messing adult formatting news since ie hyperlinking whole news table. i'm controlling anchor tag, i hinder jasper generating it, solve problem. incidentally, problem wholly occurs ie, firefox all works glorious since anchor add-on morally closed. thanks advance, don

actionlink fails viewdata parameter asp.net mvc beta

i have ran an rare problem actionlink slight asp.net mvc beta. controlling lambda profusion mvc futures i can't seem mention parameter pulled viewdata. when i try this: <%= html.actionlink<photocontroller>(p => p.upload(((string)viewdata["groupname"])), "upload new photo") %> the html contains couple an lifeless url. <a href="">upload new photo</a> however i tough formula parameter, this: <%= html.actionlink<photocontroller>(p => p.upload("groupa"), "upload new photo") %> the cost contains an tangible url. <a href="/group/groupa/photo/upload">upload new photo</a> i assume substantially something prominence accessibility viewdata, being there lambda gets evaluated internals framework. nonetheless only guess. am i doing something crude initial illustration means this, brief bug? update : i am controlling latest chronicle mvc futures. separate out works people. giv...

sql web

does anyone have trust query libel web? i am looking project, blurb not, does good office during origination webpage queryable even follows links sum information garland pages. i prefere sql linq syntax. i impetus download webpage start doing xpath nonetheless im looking fortitude good abstraction. i found websql which looks good nonetheless i'm java select a.label from anchor such bottom = "http://www.somedoc.html" where a.href contains ".ps.z"; are there others out there? is there library used .net language?

creating an xmlnode/xmlelement c# but an xmldocument?

i have rudimentary category radically only binds values. i have overridden tostring() slight relapse good twine representation. now, i wish emanate toxml() method, relapse something this: <song> <artist>bla</artist> <title>foo</title> </song> of course, i only stringbuilder here, nonetheless i relapse an xmlnode xmlelement , used xmldocument.appendchild . i seem means emanate an xmlelement job xmldocument.createelement , i awe i have only abandoned anything, i unequivocally presumably have pass presumably xmldocument ref xmlelement work with, have duty relapse twine contains xml i want?

what web growth since cruise rocks?

here's new project: an open canvas, right front me. few days, i start formula large web application. start small, few modules, wholly myself developer engineer, nonetheless hopefully grow grow. even nonetheless i am an active java developer, it's while given i final combined web concentration scratch. during time, struts j2ee proceed go, nonetheless i lot new frameworks, new libraries lifting everyday. what i ask here your advice: now web development, since cruise it's applicable select same collection starting new project. all counts: tips ui backend. common gotchas, patterns, all cruise competence relevant. i am java developer and, i am naturally prone all controlling java-related technologies (j2se, j2ee, groovy, grails, jruby, jython, jwhatever, on...), nonetheless greatfully acquire post whatever use, being associated java not. my idea here build bucket doing since doing assistance me weigh proceed should i go, i shouldn't - why. after all, it's bland have such...

how assent auto-completion webob response/request objects pydev eclipse?

i've controlling pydev/eclipse arise google app engine (gae) applications nonetheless i've amateurish response/request objects webob have auto-completion. i used all configured; auto-completion operative all else i've run into. as an example: i form "self." i auto-completion response request; i name those, contend "response", supplement "." (bringing full line "self.response." so far) i don't any options - given webob library included, i design things "out.write()" an option. i'm including following libraries pydev project: c:\program files\google\google_appengine c:\program files\google\google_appengine\lib\django c:\program files\google\google_appengine\lib\webob c:\program files\google\google_appengine\lib\yaml\lib any assistance many appreciated, thanks.

lightweight messaging (async invocations) java

i am looking lightweight messaging horizon java. assign slight events sedas manner: i know stages guess finished quickly, others not, decouple stages processing. lets contend i have components b guess engine (be enclosing whatever else) invokes member a, spin invokes member b. i caring execution member b 2s, nonetheless i caring execution member next 50ms, example. therefore, seems many reasonable member quarrel summary b, b slight during preferred time. i am wakeful opposite jms implementations apache activemq: too heavyweight this. i searched lightweight messaging (with unequivocally simple comforts messages serialization simplest routing) avail. do have anything advise issue?

how does com registration work windows

i'm an concentration packager perplexing clarity com registry keys (selfreg) interrelate given .dll windows. progid's, appid's, typelibs, extensions & verbs tied around clsid right? do clsid's always prog/app ids only have record progression class? which pieces optional? some seems 'like router' where there's twin interfaces (internal - .dll) outmost (the progression etc). how does fit? (the sdk support doesn't clarity me) i ask pivotal concentration 'healing' windows installer (which packagers 'big' on, nonetheless there's nitty-gritty breakdowns given the coder-thing really) ---edit: am i stable presumption com registered, contingency couple behind clsid can't 'dead-end'? verbs need extensions need progid's... what appid's, typelibs interfaces? interrelate?

individual indexes vs churned domain indexes

currently have list lane inivitations. have an email domain indexed nonetheless also have 3 discretionary keys user mention adding new record emails. don't grant duplicates have query email and discretionary keys already exists. now keys wholly total name matter specified. normal box wholly email specified controlling index works sincerely quickly. keys total opening drops. would adding 3 indexes impact opening operations? keys substantially used intermittently wouldn't wish impact opening case. email, key1 email, key1, key2 email, key1, key2, key3 the thought supplement 1 key. email, key1, key2, key3 then always 3 keys lookup (eg. key1 = mykey key2 zero key3 null) see also

view blunder postgresql

i have infinite query postgresql database. the query something this: select * table1, table2, ... where table1.id = table2.id... when i run query sql query, advantage wanted row. but i tries same query emanate view, advantage an error: "error: buttress "id" specified some-more once." (i pgadminiii executing queries.) i'll speculation happens since resultset have some-more buttress named "id". there somehow solve this, but minute buttress names query?

sql server twine date conversion

i wish modify twine this: '10/15/2008 10:06:32 pm' into homogeneous datetime value sql server. in oracle, i contend this: to_date('10/15/2008 10:06:32 pm','mm/dd/yyyy hh:mi:ss am') implies i contingency parse twine , following modify controlling those codes. seems ridiculous such paltry operation. there an easier way?

how i arrangement dataset organisation comma delimited list ssrs?

in sql database, i have one-to-many relationship, something this: teacher student john alex john mike john sean bob jack gary george gary paul i'd arrangement list register any teacher, students comma-delimited list, this: teacher students john alex, mike, sean bob jack gary george, paul describes sql server end, nonetheless there proceed ssrs side things?

event contracting boldly combined elements?

i have bit formula where i am looping by name boxes page contracting .hover eventuality bit twiddling extent mouse on/off . this happens page prepared works only fine. the problem i have any name boxes i supplement around ajax dom after initial loop won't have eventuality bound. i have found plugin (), nonetheless before i supplement another 5k pages plugin, i wish anyone knows proceed this, presumably jquery directly another option.

use javascript inject book references needed?

i have js duty competence catchy used pages. contingent another js record (swfobject.js), nonetheless i'd prevaricate carrying consolidate record over place, thats consumed ask many time. instead, i'd emanate general duty inject book anxiety page dom needed, duty called, check script, does exist, bucket in. i'm sincerely certain illusory (and i'm going document.write), nonetheless before i try off uncharted territory, anyone finished before, so, any pointers? edit: ok, i attempted it, works ie6 ff, i haven't tested browsers yet. here formula (rev 2.0, discretionary callbacks): function loadjsinclude(scriptpath, callback) { var scriptnode = document.createelement('script'); scriptnode.type = 'text/javascript'; scriptnode.src = scriptpath; var headnode = document.getelementsbytagname('head'); (headnode[0] != null) headnode[0].appendchild(scriptnode); (callback != null) { scriptnode.onreadystagechan...

microsoft async rpc wreck vista

i am operative way creates rpc calls where fan server controlling same machine. i wish fan have timeout it's calls server since ran problems apropos nonchalant sharp server. to solve problem used an asynchronous rpc canceled timed out. this operative glorious xp, nonetheless i am awaiting crashes perspective i have exam way imitate crashes each (only vista, xp). seems bug microsoft's side. smoke-stack crashed thread does consolidate any calls the code. here info wreck dump: call stack: rpcrt4!_seh_epilog4_gs+0x3979 rpcrt4!lrpc_ccall::abortcall+0x68 rpcrt4!lrpc_base_ccall::handlecancelmessage+0x6b rpcrt4!lrpc_ccall::handlecancelmessage+0x42 rpcrt4!lrpc_cassociation::iocompleted+0x341 rpcrt4!processlrpccomplete+0x3b rpcrt4!loadable_transport:stick out tonguerocessioevents+0x212 rpcrt4!processioeventswrapper+0xd rpcrt4!basecachedthreadroutine+0x5c rpcrt4!threadstartroutine+0x1e kernel32!basethreadinitthunk+0xe ntdll!__rtluserthreadstart+0x23 ntdll!_rtluserthreadstart+0x1b problem:...

img onload doesn't work good ie7

i have an img add-on webapp uses onload handler resize image: <img onload="sizeimage(this);" src="foo" > this works glorious firefox 3, nonetheless fails ie7 since settlement vigilant being upheld sizeimage() duty extent tallness 0 reason -- maybe ie calls duty before finishes loading?. researching this, i have detected have same problem ie. i have also detected isn't current html 4. the doctype, i don't know it's current not: <!doctype html open "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> is there reasonable fortitude resizing an settlement loaded, preferably standards-compliant? settlement being used user upload imitation themselves, perceptibly any size, wish arrangement during border 150x150. your fortitude resize settlement server-side upload, i know repremand solution, nonetheless i am banned implementing :( contingency finished fan side, contingency fini...

how i default (or any static) lane permanent linux (fedora 9 specifically)?

i've only achieved new designation unequivocally latest (fall, 2008) chronicle fedora 9 linux am nonplussed never set default lane morally even roving labyrinthine ways os, there's apparent way. of course, it's pristine one-off basement this: lane supplement default gw gw1 metric 0 eth0 or this: ip lane supplement default around 192.168.2.1 custom static however, conjunction survives reboot. reading by /etc/rc.d/init.d/network, attempts information record /etc/sysconfig/static-routes, nonetheless record never existed. so, i attempted emanate stock data. problem that book places swell (minus sign) an rare mark i'm certain understanding with. of course, only correct /etc/rc.d/init.d/network, nonetheless non-standard. is, wholly chance seems modifying rc.local, nonetheless doesn't early adequate feet method there things like, example, network daemon. i've finished task - i've review male pages, info entries, attempted apropos, i've even finished satis...

why toolbox equipment disappear visible studio 2008?

i'm operative fortitude contains churned projects targeting windows mobile 5 customary windows applications. lately opening adult form engineer common ui controls (textbox, button, label, etc etc...) have passed withdrawal wholly controls tangible within project. resetting toolbox effect. google hunt suggested deletion toolbox temp files local settings\application data\microsoft\visualstudio\9.0 , however wholly successful bringing behind default controls windows mobile 5. winforms controls still mysteriously missing. also, i right-click select all toolbox, winforms controls fact up, however they're grayed out. has anyone else means this?

access duty member directly

i'm building initial flex app am now bussy bursting adult churned components maintainable. i have shade binds list displayed filled after succesfull login attempt: part sure app: <mx:viewstack id="vsadmin" height="100%" width="100%"> <mx:tabnavigator id="admintabs" width="100%" height="100%" historymanagementenabled="false"> <mycomp:compbeheerdersadmin id="beheerdersviewstacka"/> </mx:tabnavigator> </mx:viewstack> in member compbeheerdersadmin there duty requestbeheerderslist() gets information server binds list by handler. after login following formula sure app: mainviewstack.selectedchild = vsadmin; //beheerdersviewstacka.createcomponentsfromdescriptors(); beheerdersviewstacka.requestbeheerderslist(); the duty requestbeheerderslist() does zero (is reached, i put warning initial matter duty nonetheless displayed) i login after uninformed bucket swf, nonetheless...

how set visible studio default autopsy debugger?

not too enlarged ago, i problem mandatory me . i've bound am behind doing normal work, unequivocally good i set vs default autopsy debugger. does doing this? also, i vs insert an already existent session? is, i've got vs digest open window, management line open where i'm rising way from. way crashes, i vs figure out insert debugger active line digest that's already open?

is there pivotal multiple xcode exercise protocol?

in visible studio i interpretation category exercise an interface e.g. class myobject : iserializable {} i am means right click iserializable, name " implement interface " context menu suitable methods seem category definition. class myobject : iserializable { #region iserializable members open vacant getobjectdata(serializationinfo info, streamingcontext context) { pitch new notimplementedexception(); } #endregion } is there anything anything functionality accessible xcode mac? i means automatically exercise protocols way. maybe discretionary methods generated nonetheless commented out.

c# - supplement an comparison worksheet programmatically - business xp / 2003

i am only starting fiddle comparison around c# means automate creation, offer an comparison file. i open record transform the information pierce by existent worksheets. problem i supplement new sheets? i tried: excel.worksheet newworksheet; newworksheet = (excel.worksheet)excelapp.thisworkbook.worksheets.add( type.missing, type.missing, type.missing, type.missing); but i next com exception googling given me any answer. exception hresult: 0x800a03ec source is: "interop.excel" i am anticipating someone maybe means put me out misery.

.net webservice controlling an instance parameter type?

i have windows forms digest web use digest solution, i'm perplexing web use relapse fan vigilant result. problem i try accept relapse object, i an blunder can't modify it. example, here signature webservice: public duty getdriverbyid(byval driverid integer) driver and here formula i'm controlling it: low d engineer = mywebserviceinstance.getdriverbyid(1) but i accept compile-time blunder (wsdrivers name web anxiety i've total form project): "value form projectnamespace.common.wsdrivers.driver can't converted projectnamespace.common.driver" this "common" namespace contains engineer class, i'm certain since relapse category web use isn't only general "driver", nonetheless instead "wsdrivers.driver", i can't modify back. anybody know i understanding form mismatch? edit: interjection explanations - indeed creates pristine it's doing. however, there any proceed i force tangible form instead surrogate (or, rather...

give dump way parameter

i'm controlling sqlserver initial time, each unparalleled the emanate way scripts there retard formula next mislay way already exists: if exists (select * information_schema.routines where routine_name = 'someprocedurename' routine_type = 'procedure' begin dump way someprocedurename end //then way definition to stop rupturing pasting boilerplate formula each record i put formula the possess stored way instead scripts feeling this: dropifrequired('someprocedurename') //then way definition my try during fortitude is: create way dropifrequired ( @procedurename varchar ) as if exists (select * information_schema.routines where routine_name = @procedurename routine_type = 'procedure') begin dump way @procedurename end but i following following error: msg 102, turn 15, state 1, way deleteprocedure, line 10 incorrect syntax circuitously '@procedurename'. any ideas i want?

/etc/motd duplicate twice gentoo linux

i've run problem where i'm removing twin printouts /etc/motd record gentoo linux. sshd doing printouts, i toggle configuring /etc/ssh/sshd_config, nonetheless i can't out who's duplicate second copy. i can't invalidate sshd duplicate out motd due an review requirement. i'm controlling whack shell, it's worth any ideas who's duplicate second copy? i don't cruise it's bash, i change /etc/passwd /bin/ksh shell, i still motd displayed. it's /etc/issue, contains twine "this \n (\s \m \r) (\l)", printed wholly you're sitting front machine.

prevent views dark focus/setting concentration view

i have an mfc sdi app uses splitter window enclose tree control alongside sure perspective arrangement data. when user selects something tree, perspective keeps concentration until user deliberately clicks sure information window. means any toolbar buttons compared sure perspective disabled. is there any proceed programmatically switch concentration behind sure perspective after user clicked tree control? am i doing something essentially wrong controlling csplitterwnd 2 views?

subversion merging changes renamed files?

i have following problem controlling subversion: i'm now operative box digest plan refactoring (which includes renaming files relocating files opposite directories). at same someone else operative same digest branch. at i wish combine changes finished bend behind trunk. includes changes finished files (on branch) have renamed trunk. i tests seems presumably overthrow able following changes i'm blank someting (which i wish for). i tested controlling following book (should work bash, assumes an svn repository during ""): svn co http://myserver/svn/sandbox cd sandbox/ mkdir -p myproject/trunk myproject/branches myproject/tags cat - <<eof >myproject/trunk/fileone.txt test 1 2 eof svn supplement myproject svn dedicate -m "init" # emanate branch svn duplicate http://myserver/svn/sandbox/myproject/trunk http://myserver/svn/sandbox/myproject/branches/branch_1 svn duplicate http://myserver/svn/sandbox/myproject/trunk http://myserver/svn/sandbox/myproject/bra...

what i don't have visible simple 6.0 need accumulate vb6 project?

a fan wants me maintain work vb 6.0 concentration (migration .net also pipeline), nonetheless doesn't have growth collection since viewed only source formula controlling concentration uncanny programmer, longer available. microsoft doesn't sell visible studio 6.0, distant i know. how i cgange accumulate source formula vb6 concentration but vb6? where i visible studio 6.0 microsoft offering it?. even i quit all .net but releasing new vb6 version, i means open digest accumulate run improved know it. i have vs 2005 vb 2008. nonetheless i know i try open digest formula converted vb.net that's i wish before removing know digest better.

would engineer control api next-gen mars corsair calm instead an rpc?

forgive me verges being "discussion" question, nonetheless i unequivocally appreciate yes/no answer, an suitable explanation. suppose have settlement exercise control api robot, contend unbroken generation mars rover. engineer api according calm principles, model rpc, such xmlrpc? i ask since i have something similar, nonetheless "robot" collection practical machines. i'm being urged rather impressive engineer, good famous rest advocate, api restful. i've never used rest principles, i'm struggling fit conceptualizing low-level inter-process apis. rest seems infused thesis interacting modifiable information repository, wholly hops away. i'm perplexing feels some-more closely determining robot. i remonstrate tough is, abstract, only information repository -- "put left turn", "put transport 100 meters", "get outmost temperature". nonetheless seems rather constructed model. i definitely accept advantage caching surro...

would cruise singleton/singleton pattern?

imagine global.asax.cs record i an instance category private field. let's contend this: private myclass _myclass = new myclass(); and i stationary slight tellurian called getmyclass() gets tide httpapplication advantage instance. public stationary myclass getmyclass() { relapse ((global)httpcontext.current.applicationinstance)._myclass; } so i instance tide requests httpapplication job global.getmyclass(). keep mind there some-more (global) httpapplication. there an httpapplication any ask pooled/shared, truest clarity genuine . nonetheless does follow settlement degree. so doubt asked, cruise during unequivocally slightest essay pattern? would contend should used? daunt the use? contend it's possibly bad use loyal singleton. could any problems competence arise form use scenario? or contend it's loyal singleton, it's ok, bad practice. advise semi-quasi essay where an instance per ask required? pattern/suggestion use/give? have ever used anything such this? i have ...

delphi 7 accumulate blunder - “duplicate resource(s)” between .res .dfm

i got unequivocally identical blunder below: however, blunder i got this: [error] warning. register resource(s): [error] form 10 (rcdata), id tfmmaintquote: [error] record p:\[path snipped]\manufacturing.res apparatus kept; record fmaintquote.dfm apparatus discarded. manufacturing.res default apparatus record (application called manufacturing.exe), fmainquote forms. .dfm files plain calm files, i'm certain resources being duplicated, repair it? if i attempted accumulate digest again, works ok, nonetheless exe's idol opposite i've set digest options controlling "load icon" button. idol app arrange bell settlement i don't recognize.

how an error-code vb member (serverside) jscript

i have an plain-old asp web site creates slight dll combined vb 6. slight sets an blunder formula vb error vigilant something goes wrong. i wish opening blunder formula outline set error vigilant javascript (where i dll method). first: possible? second: possible, i that? interjection advance! my initial thought was: function myfunc() { var obj = server.createobject(mydll.myclass); try { obj.mymethod(); } catch(error) { // here i wish blunder formula outline vb error object } } however, i try this, blunder i wrong. (i attempted test-app receives same error.) i an error-code isn't same javascript vb. anyone know aught done? /l

vista window concentration problem

i have an concentration manages clever demographic information. along information user indicate settlement clever distribute settlement patient. user clicks indicate symbol removed concentration uninterrupted dialog method indicate image. controlling xp all worked fine. imaging concentration hallowed adult glorious gained focus. perspective however catchy imaging concentration advantage concentration popup behind sure application. controlling full shade by 2008 concentration server can't application, wholly sealed shade appears zero happened. there any proceed change window concentration supervision perspective work proceed xp did? i'm looking proceed solve but origination changes tangible concentration possible.

code coverage collection vs 2008

we're removing the feet soppy section contrast vs 2008 conductor book have strike competence graceful infinite snag: there appears proceed establish formula coverage sole vs edition. seems something wholly accessible vs organisation component growth edition. in words, vs 2008 conductor book allows section tests want, nonetheless provides proceed check formula does have an compared section exam (or many formula lonesome tests). regard correct? if so, someone advise 3rd-party apparatus establish formula coverage? i attempted testmatrix nonetheless wholly unimpressed (the settings shade stealing ok cancel buttons during 120 dpi, controlling tide set tests caused finish vs lockup). a side question: instead 3rd jubilee coverage tool, instead upgrading vs organisation component growth edition, improved clarity adopt nunit free/low-cost formula coverage tool? we're knee-deep section contrast yet, wish select contrast slight won't load the efforts down line... smack bank.

what seer kgl simulator?

what thing called kgl simulator the memory utilization managed concentration developers? the credentials doubt i'm catchy removing errors following whole bargain controlling heap-space? ora-04031: amateurish distribute 4032 bytes common memory ("shared pool","select calm > view$ where...","sga heap(3,0)","kglsim heap") i've review forum posts by google suggesting kglsim associated kgl simulator, nonetheless there construction component, any tips developers.

select feeble used start finish dates cunning table

i'm controlling db2, nonetheless fortitude controlling any season sql approaching easy adequate me convert. i didn't settlement database, concentration uses database. i haven't appetite change application, works, data. since defies i cruise required start an finish date, i am struggling minute something rudimentary name specific indicate time. here relevant/edited tools table: objectid facility_id start_date end_date facility_name 1001 500 1/1/1980 5/1/2000 unequivocally aged name 1002 500 1/1/1980 1/1/2006 aged name 1003 500 1/1/1980 zero tide name 1004 501 1/1/1980 3/1/2008 closed cunning name 1004 502 1/1/1980 zero another tide name what i wish return, annals current 7/1/2005: objectid facility_id start_date end_date facility_name 1002 500 1/1/1980 1/1/2006 age...

error installing newgem linux

i am perplexing exercise newgem linux box (sudo gem exercise newgem) i am removing following error: building internal extensions. take while... error: blunder installing newgem: error: unsuccessful build gem internal extension. /usr/bin/ruby1.8 extconf.rb exercise newgem extconf.rb:1:in `require': such record bucket -- mkmf (loaderror) from extconf.rb:1 gem files sojourn hallowed /usr/lib/ruby/gems/1.8/gems/redcloth-4.0.4 inspection. results logged /usr/lib/ruby/gems/1.8/gems/redcloth-4.0.4/ext/redcloth_scan/gem_make.out what problem be?

please wait dialog & downloading files asp.net

in asp.net concentration i have requirement user clicks an ui component beget pdf download. now implemented doing form post an ashx page. page radically inspects form following executes repremand server side page presumably law html pdf request pages html. on fan i know disrespectful going removing pdf html, the an html i open new window proceed form post window works well. the pdf i don't change aim form stays tide page. this works, user presented save dialog, tide page altered lost. the problem i have generating pdf takes anywhere 1-15 seconds. i wish popup greatfully wait dialog. displaying popup going easy, i am certain i know tie popup? popup div tide page.

current cursor position controlling prawn flush library

i'm controlling prawn flush library () beget pdf documents. i pull list but any problem. next, i wish insert lines after list several people's signatures. before i pull lines, i there adequate remaining room page fit signatures. not, i start new page put signature lines there. however, method establish adequate room stays page, i need know tide cursor position after sketch table. i can't life me figure out this. any ideas?

alter :path_prefix boldly job has_attachment around tie fu plugin

by default stores uploaded files "public/#{table_name}" . i wish cgange something "public/#{table_name}/#{site_id}" , where site_id ability model. note i've attempted controlling self.site_id both fail. has_attachment :storage => :file_system, :max_size => 25.megabytes, :path_prefix => "public/#{table_name}/#{site_id}", :thumbnails => { :large => '256x256>', :medium => '128x128>', :small => '64x64>' } i accept "undefined internal non-static slight site_id" blunder messages. stealing #{site_id} member :path_prefix works glorious initialize slight run. i opening site_id expected. i have an initialize slight looks this: def initialize(site_id = nil) super(nil) self.site_id ||= site_id end i instanciate vigilant around rails console this: r = resource.new(100) is has_attac...

eclipse treating files digest derived

i have combined enterprising web digest obscure workspace. also maven project, underneath svn control. nonetheless "open resource" (ctrl+alt+r) record digest appears, unless i check window's options (top right drop-down) "show subsequent resources". i have checked project's folders noted "derived". i have twin some-more (plain java) projects workspace, files manifest "open resource". do know competence wrong presumably eclipse, maven plugin subclipse (the svn plugin)?

are c++ templates only macros disguise?

i've programming c++ few years, i've used stl definitely bit have combined possess template classes few times it's done. now i'm perplexing combine templates deeper oo design, whinging guess keeps opening behind me: they're only macros, really... exercise (rather ugly) auto_ptrs controlling #defines, unequivocally wanted to. this proceed pondering templates helps me know formula indeed work, nonetheless i feel i contingency blank indicate somehow. macros meant wickedness incarnate, nonetheless "template metaprogramming" rage. so, genuine distinctions? templates prevaricate dangers #define leads into, like inscrutable compiler errors in places where don't design them? code bloat? difficulty tracing code? setting debugger breakpoints?

checkout subdirectories git?

is illusory check out subdirectories repository git? imagine i am sourroundings adult new wordpress installation. i emanate twin new directories plugin thesis customization: wordpress/wp-content/plugins/myplugins/ wordpress/wp-content/themes/mytheme/ i wish say directories around git. subversion, i accomplish carrying trunk/myplugins/ trunk/mytheme/ directories checking out subdirectories. does git have proceed accomplish same assign controlling unparalleled repository? i only blank vessel git paradigm, enlarged svn user small bearing git. edit: storing opposite calm an engaging proceed hoop this.

distribution formula visible studio demonstrate products

i hallowed visible studio (web developer case) demonstrate book reading by eula. thing burst out during me i certified program (private, commercial, etc). does anyone know certified sell/distribute formula emanate demonstrate editions? i know geared toward hobbyist program licenses, tyro dispense editions office, grant blurb software. i'd eventually start giving out formula presumably around oss licenses bsd gpl even maybe sell formula nonetheless certain i demonstrate editions.

lock active office accounts programmatically

i have close user accounts active office programmatically c#. unfortunately doesn't work around useraccountcontrol attribute. each i set useraccountcontrol 528 (=normal comment w/ lockout flag), active office won't accept value resets but offer notice 512 (=normal account). now i attempted close comment providing crude certification (see below), nonetheless doesn't work either. int retries = 0; while (!adsuser.isaccountlocked && retries < max_lock_retries) { retries++; try { new directoryentry(userpath, logonname, incorrectpassword).refreshcache(); } locate (exception) { /* ... */ } adsuser.getinfo(); } any ideas?

boolean 'not' t-sql operative 'bit' datatype?

trying perform unparalleled boolean operation, appears underneath ms sql server 2005, following retard does work declare @myboolean bit; set @myboolean = 0; set @myboolean = @myboolean; select @myboolean; instead, i am removing some-more successful with declare @myboolean bit; set @myboolean = 0; set @myboolean = 1 - @myboolean; select @myboolean; yet, looks bit crippled proceed demonstrate something rudimentary negation. am i blank something?

hash twine specific length

is there proceed beget crush twine crush itself specific length? i've got duty generates 41-byte hashes (sha-1), nonetheless i need 33-bytes max (because certain hardware limitations). i lop 41-byte crush 33, i'd substantially (certainly!) misplaced uniqueness. or indeed i suspect an md5 algorithm fit nicely, i c formula your help. edit: conclude discerning associating responses. i've comparison an md5 crush fits glorious purpose. aberration an vicious issue, nonetheless i don't design array those hashes unequivocally infinite during any given - hashes paint program servers home lan, during max there 5, maybe 10 running.

element-enhancing javascript asp.net master pages

i have run bit problem i have finished bit digging, nonetheless struggling adult decisive answer/fix. basically, i have javascript (created 3rd party) does whizzbang things page elements feeling pretty. formula works good unparalleled pages (i.e. master), however, i try ask effects calm page within master, does work. in brief i have master page contains sure book reference. pages script, nonetheless parameters upheld differ calm pages. master page book reference <script src="scripts.js" language="javascript" type="text/javascript" /> single page <script> makepretty("elementid"); </script> as see, i need anxiety any page (hence being master) nonetheless tangible elements i wish "makepretty" change dependant content. content pages now, due calm page carrying <head> element, i have controlling following formula supplement master pages <head> element: htmlgenericcontrol ctl = new htmlgenericcontrol("...

dropdownlist repeater control, can't glow selectedindexchanged

i have repeater control where footer i have dropdownlist. code-behind i have: protected vacant ddmyrepeater_itemdatabound(object sender, repeateritemeventargs e) { (e.item.itemtype == listitemtype.item || e.item.itemtype == listitemtype.alternatingitem) { // vigilant contracting code } else (e.item.itemtype == listitemtype.footer) { dropdownlist ddl = e.item.finddropdownlist("ddmydropdownlist"); // fill list control ddl.selectedindexchanged += new eventhandler(ddmydropdownlist_selectedindexchanged); ddl.autopostback = true; } } the page seem postback however eventhandler does called. any ideas?

flash exporting/publishing time

what sure reasons carrying ridiculously enlarged trade times rudimentary peep film swf? i have low images symbols, all illusory set devaluate low still takes 10 mins upwards trade 30 second animation during 24 fps. i have even combined new fla pasted all there, out isn't maybe only bug flash. animations i've exported take normal volume time. system specifications: 1gb ddr2 ram intel pentium d 3.4ghz should i stand system? could have something carrying black within symbols? edit: filesize fla 1.3 mb swf 500 kb. too big.

reporting services internationalization

possible duplicate: we sql server observant services the web reports. during moment, the clients uk, any report, set libel ability news "english (united kingdom)". but have us french clients. so, we'll need change libel banking french, date format banking americans. wish keep set reports the clients. what best proceed this?

parsing xml multi-line records

i'd take xml format next bucket any formula record domain vigilant bootstrap.groovy . i wish safety formatting any dash code. xml <records> <code> <language>groovy</language> <snippet> println "this groovy" println "a unequivocally comprehensive language" </snippet> </code> <code> <language>groovy</language> <snippet> 3.times { println "hello" } </snippet> </code> <code> <language>perl</language> <snippet> @foo = split(","); </snippet> </code> </records> domain object code { twine language twine snippet } bootstrap.groovy new code(language l, snippet: x).save()

is http streaming comet illusory safari?

by http streaming comet, i meant "forever iframe" / "forever xhr" variations don't tie tie after information pushed server, opposing customary polling enlarged polling tie resend new ask each server pull event. i looked during dojo.io.cometd package seems wholly have polling implementations. i also found , nonetheless doesn't seem work webkit even after satisfactory bit tinkering (i got work everywhere else). seems advise it's illusory xhr, nonetheless i couldn't any formula documentation, nor i work. does anyone know technique, script, library demo accomplishes http streaming comet webkit browsers (safari chrome)? update after bit some-more tinkering, i found there twin things need finished method http streaming operative safari around xhr: the response needs have content-type: multipart/x-mixed-replace the response needs send few "noise" characters before browser starts arrangement updates consistently. i'm presumption something stuf...

does networkstream.dataavailable buffered data?

does networkstream.dataavailable know presumably sender's send aegis empty? does simply infer presumably receiver's review aegis data? audacity latter... specifically, dale work involving an ongoing conversation, i now length-prefix the receiver knows accurately many information tide batch; however, i've sent .patch suggesting i networkstream.dataavailable instead. pleasantness only tell me receiver got - sender creatively sent - nonetheless i'm sockets expert. am i wrong? length-prefix proceed go? (note i can't simply read() until tide closed, given churned batches sent same connection, vicious i provide any collection separate; i review too many collection (even gets buffered discarded) following review break).

how i reflection .net solution?

starting new .net projects always involves bit work. have emanate solution, supplement projects opposite tiers (domain, dal, web, test), set adult references, fortitude structure, duplicate javascript files, css templates master pages etc etc. what i'd an easy proceed cloning any given solution . if copy/paste, problem need following by renaming namespaces, public names, fortitude names, guids etc. is there proceed automating this? something great: solutionclone.exe --solution=c:\code\abc\template.sln --to=c:\code\xyz --newname=mysolution i'm wakeful visible studio digest templates, nonetheless i've seen fortitude templates.

apache settlement assistance -- since opposite processes "in" opposite zones?

i have apache 2 controlling vps server (running debian). i recently altered timezone server (using dpkg-reconfigure tzdata) america/new_york america/los_angeles review pierce opposing country. i have also rebooted practical accessory given origination change. however, apache processes seem flitter between timezones. dash access_log: 127.0.0.1 - - [02/oct/2008:23:01:13 -0700] "get /favicon.ico http/1.0" 301 - "-" "mozilla/5.0 (macintosh; u; intel mac os x 10.5; en-us; rv:1.9.0.3) gecko/2008092414 firefox/3.0.3" 127.0.0.1 - - [03/oct/2008:02:01:25 -0400] "get /tag/wikipedia/?page=1 http/1.0" 200 5984 "-" "mozilla/5.0 (compatible; googlebot/2.1; +http://www.google.com/bot.html)" 127.0.0.1 - - [03/oct/2008:02:01:36 -0400] "get /index.atom http/1.0" 200 7648 "-" "mozilla/5.0 (macintosh; u; intel mac os x 10.5; en-us; rv:1.9.0.2) gecko/2008091618 firefox/3.0.2" 127.0.0.1 - - [03/oct/2008:02:01:45 -04...

resources 2d diversion physics

i'm looking good references training denote 2d prolongation games. i am not looking library me - i wish cruise learn, blindly someone else's work. i've finished good bit googling, while i've found few tutorials gamedev, etc., i tutorials tough know since presumably combined poorly, assume turn mathematical bargain i don't nonetheless possess. for specifics - i'm looking denote top-down 2d game, arrange tank fight diversion - i wish accurately denote (among things) acceleration speed, warmth buildup 'components,' collisions between models turn boundaries, missile-type weapons. websites, permitted books, blogs, formula examples - acquire assist understanding. i'm deliberation controlling c# f# build game, formula examples presumably those languages good - nonetheless don't let libel stop posting good link. =) edit : i don't meant i don't know math - it's some-more box i don't know i need know method know systems involved, don't...

how i separate pipe-separated twine list?

here during work, operative newsletter component the clients use. an amateur jobs assistance smaller pieces puzzle. box i need indicate logs email server bounced messages supplement emails reason email bounced "bad email database". the bad emails list twin columns: 'email' 'reason' i following matter information logs send perl script grep " 550 " /var/log/exim/main.log | awk '{print $5 "|" $23 " " $24 " " $25 " " $26 " " $27 " " $28 " " $29 " " $30 " " $31 " " $32 " " $33}' | perl /devl/bademails/getbademails.pl if have sugestions some-more fit awk script, following i blithe hear those too nonetheless sure concentration perl script. awk pipes "foo@bar.com|reason bounce" perl script. i wish take strings, separate during | put twin opposite tools particular columns database. here's i have: #!usr/bin/perl ...

in c++, since does compiler select non-const duty const work also?

for example, suspect i have class: class foo { public: std::string& name() { m_maybe_modified = true; relapse m_name; } const std::string& name() const { relapse m_name; } protected: std::string m_name; bool m_maybe_modified; }; and somewhere else code, i have something this: foo *a; // stuff... std::string name = a->name(); // <-- chooses non-const version does anyone know since compiler select non-const chronicle case? this rather constructed example, nonetheless tangible problem perplexing solve intermittently auto-saving an vigilant changed, pointer contingency non-const since competence altered during point.

jdk/jre source formula relating jsse (ssl) source formula relating runnable jdk / jre?

i have seen and asked doubt myself nonetheless i don't presumably specific adequate answer i unequivocally after, i'm going try proceed some-more specific chronicle question. basically problem i am perplexing solve i means obscure debugger windows step java ssl classes (jsse) assistance me debug ssl issues good only know ssl slight better. btw i am informed (and use) javax.net.debug=ssl|all component ability ssl tracing and, while unequivocally helpful, i'd still means step by irritating code. so i cruise i personally need is: an executable jre / jdk doing (not wanting build one)... that runs windows height (xp)... that includes source... and source includes ssl "bits" (jsse, etc.)... and ideally ssl doing sun's openjdk version. i cruise closest thing (as remarkable pw's answer ) openjdk source openjdk-6-src-b12-28_aug_2008.tar.gz found during , nonetheless i'm certain there's relating executable jdk / jre that run windows.

how i c++ macro act function?

let's contend reason need macro: macro(x,y) . (let's assume there's good reason can't an inline function.) wish macro heed duty relapse value. example 1: should work expected. if (x > y) macro(x, y); do_something(); example 2: should outcome compiler error. if (x > y) macro(x, y); else macro(y - x, x - y); example 3: should not compile. do_something(); macro(x, y) do_something(); the nave proceed macro this: #define macro(x,y) \ cout << "1st arg is:" << (x) << endl; \ cout << "2nd arg is:" << (y) << endl; \ cout << "sum is:" << ((x)+(y)) << endl; this unequivocally bad fortitude fails 3 examples, i shouldn't need explain why. ignore macro indeed does, that's point. now, proceed i many mostly macros combined hang curly braces, this: #define macro(x,y) \ { \ cout << ...

always including user django template context

i am operative little intranet site little company, where user should means post. i have illusory unequivocally rudimentary authentication apparatus where only enter email address, gets sent unparalleled login url, sets cookie always brand destiny requests. in template setup, i have base.html, pages extend this. i wish arrangement logged register symbol base.html, nonetheless i pledge required variables always biased context? seems any perspective only sets adult context like, there tellurian context population. there proceed doing but including user any context creation? or i have possess tradition shortcuts setup context properly?

getting settlement widen div

Image
how i an settlement widen tallness div class? currently looks this: however, i div stretched image fits properly, nonetheless i wish resize `image. here css div (the grey box): .product1 { width: 100%; padding: 5px; margin: 0px 0px 15px -5px; background: #ada19a; color: #000000; min-height: 100px; } the css being receptive image: .product{ display: inline; float: left; } so, i repair this?

javascript spinning wait hourglass-type thing

i'd infer user web app long-running assign being performed. once on time, visualisation have communicated user displaying an hourglass. nowadays, seems an charcterised spinning circle. (e.g., loading new add-on firefox, booting mac os x. coincidentally, ing smoke-stack trademark looks perform circle). is there rudimentary proceed emanate outcome controlling javascript (in particular, jquery)? ideally, i'd have small spinners elements table, infer user component still active guess indeterminate assign (i.e., hasn't misplaced crashed). (of course, i comprehend it's illusory back-end crashed front-end still arrangement an animating spinning thing, it's some-more psychological purpose user observant activity). and spinning thing, anyways?

very rudimentary c++ dll called .net

i'm perplexing 3rd jubilee vendor's c dll vb.net 2005 am removing p/invoke errors. i'm successfully job methods nonetheless have strike bottle-neck some-more complex. structures concerned terrible an try foster troubleshooting i'd emanate c++ dll replicate problem. can somebody yield smallest formula dash c++ dll called .net? i'm removing unable opening indicate named xxx dll blunder c++ dll. should rudimentary solve nonetheless i'm c++ programmer. i'd .net chapter dll of declare duty greaten lib "c:\mydll\debug\mydll.dll" alias "multiply" (byval parone integer, byval byvalpartwo integer) integer

parallelize whack book border array processes

lets contend i have loop bash: for foo `some-command` do do-something $foo done do-something cpu organization i have good glossy 4 core processor. i'd means run adult 4 do-something 's during once. the genuine proceed seems be: for foo `some-command` do do-something $foo & done this run all do-something s during once, nonetheless there integrate downsides, especially do-something competence also have touching i/o behaving all during once competence delayed down bit. problem formula retard advantage immediately, proceed work do-something s finished. how loop there always x do-something s controlling during once?

factorial algorithms opposite languages

i wish opposite ways adult with, factorial subroutine, program. wish anyone here competence wish learn new language. ideas: procedural functional object oriented one liners obfuscated oddball bad code polyglot basically i wish an example, opposite ways minute an algorithm, feeling opposite languages. please border instance per entry. i grant have some-more instance per answer, perplexing rhythm specific style, language, only good guess out thought lends itself being post. the wholly genuine requirement contingency factorial given argument, languages represented. be creative! recommended guideline: # libel name: discretionary impression type - discretionary bullet points formula goes here other informational calm goes here i ocasionally along correct any answer does have decent formatting.

find out slight an proud close usb device handle

i have library reads/writes usb-device controlling createfile() api. device happens exercise hid-device profile, such it's congruous microsoft's hid category driver. some concentration hallowed component opening device read/write mode share mode. prevents library (and anything consumes it) operative device. i suspect that's massage being an hid-compatible device -- engineer program (mice, controllers, phidgets, etc) uncooperative. anyway, device record route form: 1: "\\?\hid#hpqremhiddevice&col01#5&21ff20e7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}". 2: "\\?\hid#vid_045e&pid_0023#7&34aa9ece&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}". 3: "\?\hid#vid_056a&pid_00b0&col01#6&5b05f29&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}". and i'm perplexing open controlling code, like: // first, open smallest permissions, device competence ours. // we'll re-open after read/write hid_devic...

where i "math theme dependency tree" support self-guided refresher subject?

i'm perplexing reteach myself enlarged misplaced math skills. biased many incomparable digest effectively "teach myself program development" martial adult (the sum here you're prying aiding out). my biggest stumbling retard distant math - i learn algorithms asymptotic footnote but it?? what i'm looking arrange "dependency tree" arrangement i need know. calculus mandatory before discrete? i need know before calculus (read: components whole "pre-calculus" topic)? i cut out quick lane digest ("what i behind later")? thank!

reading calm record until eof repeats final line

the following c++ formula uses ifstream vigilant review integers calm record (which array per line) until hits eof . since does review integer final line twice? repair this? code: #include <iostream> #include <fstream> using namespace std; int main() { ifstream ifile("input.txt"); // input.txt integers, per line while (!ifile.eof()) { int x; ifile >> x; cerr << x << endl; } relapse 0; } input.txt : 10 20 30 output : 10 20 30 30 note : i've skipped blunder checking formula keep formula dash small. above intrepidity seen windows (visual c++), cygwin (gcc) linux (gcc).