Posts

Showing posts from September, 2012

c loop implemented differently languages?

i review following hearing knuth's "the art mechanism programming": "the unequivocally 'practicality' means would-be cs vital learn kernighan's mistakes conceptualizing c, quite barbarous fact loop evaluates condition repeatedly, duplicates while fails review function many languages exercise loop." () what man articulate about? exercise loop wasn't only syntactic sugarine while loop?

java implementations antecedent pattern

what implementations settlement exist java platform? a antecedent settlement creational settlement pattern used program growth form objects emanate dynamic prototypical instance, cloned furnish new objects. : prototype-based programming impression object-oriented programming classes present, function reuse (known estate class-based languages) achieved around slight cloning existent objects offer prototypes. the doing should wakeful java objects mutable, permanent (see ).

how i insert churned rows seer method value?

i know i insert churned rows controlling unparalleled statement, i syntax . however, values i am inserting taken sequence, i.e. insert table_name (col1,col2) select my_seq.nextval,'some value' dual union all select my_seq.nextval,'another value' dual ; if i try run it, i an ora-02287 error. there any proceed around this, should i only lot insert statements? edit: if i have mention buttress names columns sequence, i remove uncanny brevity, it's only value it. box i'll only churned insert statements.

regex teaser

let's contend have 2 php variables: $name = 'caption'; $url = ''; the quarrel twine '{@url,<img src="," alt="{@name}" />}' should return: '<img src="http://domain.com/photo.jpg" alt="caption" />' the {tag} takes adult 3 parameters: {@variable[,text_before][,text_after]} . what regex indispensable happen? machiavellian biased {@..} add-on nested within another.

sql stored way surrogate list memory problem

we have following rudimentary stored way runs an overnight sql server representative job. wholly runs 20 minutes, nonetheless recently matchevent matchresult tables have grown over 9 million rows each. resulted store way holding over 2 hours run, 8gb memory the sql box being used up. renders database taken unchanging queries perplexing opening it. i assume problem temp list too infinite causing memory database unavailablity issues. how i rewrite stored way some-more fit reduction memory intensive? note: i have edited sql infer there condition inspiring initial name statement. i formerly left out simplicity. also, query runs cpu use during 1-2%, nonetheless memoery, formerly stated, maxed out create list #tempmatchresult ( matchid varchar(50) ) insert #tempmatchresult select matchid matchresult where some_condition delete matchevent where matchid (select matchid #tempmatchresult) delete matchresult where matchid (select matchid #tempmatchresult) drop list #tempmatchresult

can mstest run specific slight any startsup?

question is there proceed have slight always run anytime exam public run by mstest? similar [testinitialize] [classinitialize] attributes work, nonetheless whole assembly. i wish have supplement formula each exam class's [classinitialize] method. reasoning some tests correlate database. mislay information things unequivocally pernicious prolongation database. there wholly settlement record tells section exam digest run opposing non-production database. i feel improved there slight run startup contend "okay database name 'production'" ideas log4net uses an public charge configure itself. using log4net.config; [assembly: xmlconfigurator()] perhaps i something simliar? [assembly: checkdatabasenamenot("production")]

shoulda contrast workflow trenches

everyone articulate tdd (bdd) rails (and only rails) growth universe today. it's easy excess good whole information it, there definitely few collection purpose there (good) examples them. now, i'm already train. i thought (never tdd before) i solid shoulda (because seems me definitely easy understand). i review excess examples have finished initial tests. problem this: i'm only certain i'm doing right. i said, there little examples over net, nonetheless i haven't found any extensive lamp covering altogether workflow tdd shoulda. here questions: what your proceed practising tdd shoulda? (what your common workflow via iteration?) what collection (except shoulda itself)? any tips?

can't solve dns

i'm perplexing devour webmethod nonetheless seems concentration can't solve dns. problem surfaces i configure concentration an url (e.g.: ), nonetheless does i opening same webmethod by server's ip address. the thing i need opening webservice controlling url ip castle due an existent dhcp server policy. can anyone assistance me ? thanks advance. update: checking out moocha asked me do, i found out that: d:>nslookup server.com server: dnsserver.mycompany.com address: xxx.yyy.xxx.yyy *** dnsserver.mycompany.com can't server.com: self-existent domain

open source profiling frameworks?

have ever wanted exam quantitatively arrangement presumably your concentration perform improved stationary build common build, bare non-stripped, upx upx, gcc -o2 gcc -o3, crush btree, etc etc. thread you. there hundreds ways balance an application, nonetheless collect, organize, process, illusion consequences any experiment. i have looking several months an open source concentration opening engineering/profiling horizon identical visualisation mozilla's where i develop/build/test/profile hundreds incarnations opposite tuning experiments. some requirements: platform suse32 suse64 data format very flexible, compact, simple, hierarchical. there several possibilities including custom no xml. there lots information xml tooo verbose data acquisition flexible customizable plugins. there lots information collect concentration including opening information /proc, sys time, wall time, cpu utilization, memory profile, leaks, valgrind logs, locus fragmentation, i/o, localhost sockets, binary...

what "cost" .net reflection?

possible duplicate: i am now programming talent tact best friend. i lot enterprising loading calm allows "loose implementation" rather despotic interfaces, good lot tradition attributes. what "real" cost controlling reflection? is value bid frequently reflected forms have cached reflection, such the possess pre-linq dal vigilant formula properties list definitions? would caching memory footprint outwieght tact cpu usage?

how i review twin datetime fields nonetheless replace year?

i dirt off vbscript shawl model asp query sql server 2000 database. here's scenario: i have twin datetime fields called fielda fieldb . fieldb never have year value that's incomparable year fielda it is illusory twin fields have same year. what i wish annals where fielda >= fieldb , independent year . only feign any domain only month & day. how i this? trust t-sql date/time functions disproportionate during best.

is there type-safe java doing 'reduce'?

i mostly need run devaluate (also called foldl / foldr, depending your contexts) java sum elements an itterable. reduce takes collection/iterable/etc, duty twin parameters, an discretionary start value (depending doing details). duty constantly receptive an component collection cost before bid devaluate until elements have processed, advantage final value. is there type-safe doing devaluate any common java api? seems should have one, nonetheless i haven't means it. (possibly since i don't know names use.)

how record distance "system.drawing.image"

i am now minute component stores meta information around 140,000 ish images stored within leave settlement library being changed cloud storage. i am controlling following jpg data... system.drawing.image settlement = system.drawing.image.fromfile("filepath"); im definitely new settlement plan nonetheless glorious removing rudimentary values width, height, aspect ratio etc nonetheless i can't work out collect physical record distance jpg spoken bytes. any assistance many appreciated. thanks final fortitude including an md5 crush settlement after comparison system.drawing.image settlement = system.drawing.image.fromfile(filepath); if (image != null) { int extent = image.width; int tallness = image.height; decimal aspectratio = extent > tallness ? decimal.divide(width, height) : decimal.divide(height, width); int filesize = (int)new system.io.fileinfo(filepath).length; controlling (system.io.memorystream tide = new system.io.memorystream(filesize)) { imag...

php blog component modx

i run site controlling calm supervision system. i'd set adult news feed front page, blog-style backend supports common things (tags, categories, repository basically). i've looked modx plugins yield functionality (the deprecated newspublisher - now - ditto), nonetheless i don't presumably much. i unequivocally wish something an api, i simply supplement news programmatically. i've deliberate installing wordpress, however seems profusion given we're only controlling sincerely simple way! i've also deliberate rolling own, nonetheless before i i only wanted check there wasn't something suitable out there already! does anyone have any suggestions lightweight, rarely customisable php blog / news frameworks decent api?

free program scripts formatting sql queries

i'm looking book concentration tidies adult reformats sql queries. i've found good online sql formatters (see ) , good downloadable blurb applications. i'm sharp controlling an online use i don't wish risk copies queries being stored somewhere competence compromised, wholly web server's cache (and opposing employer's policy). does anyone know any open-source applications, scripts, downloadable freeware competence assistance me out this? it substantially bears mentioning i'm operative windows height during work, nonetheless i am open suggestions handling systems. cheers! update i have used sqlinform suggested vinko vrsalovic glorious effect. interjection vinko! something competence also value examination , immature digest google formula spin something good enlarged run.

algorithms libraries textual analysis, specifically: widespread words, phrases opposing text, collection text

i'm operative digest where i need investigate page calm collections pages calm establish widespread words. i'd know there library (prefer c# java) hoop complicated lifting me. not, there an algorithm churned grasp goals below. what i wish identical clouds built url rss feed web, solely i don't wish visualization. used examining presidential petitioner speeches thesis many used difference are. the complication, i need thousands brief documents, following collections categories documents. my initial digest parse request out, following filter common difference - of, the, he, she, etc.. following count array times remaining difference arrangement adult calm (and altogether collection/category). the problem future, i hoop stemming, plural forms, etc.. i also there proceed brand vicious phrases. (instead count word, count word being 2-3 difference together) any superintendence strategy, libraries algorithms assistance appreciated.

how i arrangement mysql information quarrel camber controlling php?

i have information mysql arrangement organisations fan got, sum employess any organisation. i wish list any organization name wholly once i.e. unparalleled cave ( quarrel span) employees organization opposing name like: org1 emp1 name, emp1 phone, emp1 address emp2 name, emp2 phone, emp2 address org2 emp1 name, emp1 phone, emp1 address emp2 name, emp2 phone, emp2 address how i arrangement information since array employess any organization famous advanced, i do'nt sourroundings value rowspan. further i start quarrel organisation? i have twin queries? many thanks.

programmer's notepad capturing output?

i've controlling programmer's notepad while now, i an amazingly rudimentary apparatus i move projects where i know i don't need many customary ide overhead. however, i've recently run problem controlling way windows vista. i controlling built "make" command, cost make.exe isn't restrained window the ostensible be. blunder formula being caught, nonetheless cost always totally blank, regardless way indeed outputting. (running way management line shows cost only fine, does controlling but controlling pn's "capture output" option.) anyone know means competence be? thanks

how does mono work

i have used c# visible studio .net, i have played around small mono opensuse linux, nonetheless i don't unequivocally know works. if i an app windows .net, does news mono? i can't only govern an windows .exe record linux but wine, doesn't assistance me govern apps grown windows. is purpose definitely have .net library homogeneous linux (and others) querulous height growth easier? example, i business wanted strech linux customers, nonetheless unequivocally wanted .net, following mono should choice? there something some-more i'm missing?

what best use flitting variables html page another?

i'm comparatively new web concentration programming i wish doubt isn't too simple everyone. i combined html page form containing dojox datagrid (v1.2) filled rows descriptions opposite grocery items. after user selects vigilant he's prying in, click "submit" button. at point, i javascript duty store vigilant id array javascript non-static nonetheless i don't know pass id onto unbroken html page. should i only pass id an url query twine parameter? there any improved ways? edit: altogether slight offering cart. user name vigilant grid following unbroken page user fill out sum following checkout. i should also plead i'm controlling grails duty gsp page nonetheless now wholly contains html.

firefox: visually fall route castle bar

i'm wondering there's any proceed have firefox 3 (or ie 7 safari 3.1 opera) fall route occurred (i.e. any deltas between hyperlink url entered castle bar, page land on), presumably you've arrived hyperlink entering url castle bar. i've googled some, looked during , nonetheless rightclick an additional step i don't wish have do. edit: anybody indicate me during mozilla docs arrangement lane clicked links pages landed opposite tabs, i'll take impulse during minute bookmarklet. tia

requirement pivotal std::multimap

i have std::multimap where pivotal tradition class. something this: class x { public: std::string s; int x; user <(const x& other) const { relapse s < other.s; } }; std::multimap<x, int> mymap; now, i'd upper_bound lower_bound iterate over elements same value "s". i need exercise user x (for example: ==). work morally only this? also, should i supply justification upper_bound lower_bound ? i assume i should emanate pygmy vigilant preferred value "s"?

c# listview detail, rhythm unparalleled cell

i'm controlling listview c# grid. i out proceed means rhythm specific cell, programatically. i wholly need rhythm cell. i've experimented owners drawn subitems, nonetheless controlling next code, i highlighted cells, nonetheless text! there any ideas working? interjection your help. //m_pc.location x,y coordinates highlighted cell. void listview1_drawsubitem(object sender, drawlistviewsubitemeventargs e) { ((e.itemindex == m_pc.location.y) && (e.item.subitems.indexof(e.subitem) == m_pc.location.x)) e.subitem.backcolor = color.blue; else e.subitem.backcolor = color.white; e.drawbackground(); e.drawtext(); }

.net horizon 3.5 can't exercise perspective 32bit

running perspective 32bit. i am perplexing exercise c# visible demonstrate 2008 - nonetheless requires .net 3.5. prerequisites during exercise .net 3.5 ... attempts exercise nonetheless fails, genuine blunder message. so i downloaded .net 3.5 standalone ms website attempted that.again fails blunder [10/17/08,23:17:07] wapui: [2] depcheck indicates microsoft .net horizon 3.0sp1 (cbs) installed. [10/17/08,23:50:55] microsoft .net horizon 3.0sp1 (cbs): [2] error: designation unsuccessful member microsoft .net horizon 3.0sp1 (cbs). msi returned blunder formula 34 i now have c# demonstrate book 2005 installed. nonetheless all i review says i have twin applications hallowed together. i trust 2005 runs horizon 2.0. 2005 demonstrate book works fine. - the only 2008 book im carrying problems hallowed .net 3.5 .... any ideas ? thanks

how justly setwindowshookex & callnexthookex

i justly setup adult windows hook, nonetheless i confused line msdn says "calling callnexthookex duty method unbroken offshoot way optional, nonetheless rarely recommended; otherwise, applications have hallowed hooks accept offshoot notifications competence act wrongly result. should callnexthookex unless definitely need hinder presentation being seen applications.". i wish good programming citizen unbroken hook. but, offshoot way looks this: lresult callback cbtproc(int code, wparam wp, lparam lp) { (code != hcbt_createwnd) { // i here? it's eventuality i requested i pass on? relapse 0; } // it's formula wish (create window) callnexthookex(...); ... } so, happens offshoot way formula isn't i'm prying in? i unbroken hook? edit: sure problem hhook returned setwindowshookex, needs upheld callnexthookex function. update: seems offshoot parameter abandoned nt platforms:

boost phoenix lambda library problem: stealing elements std::vector

i recently ran problem i guess boost::lambda boost::phoenix assistance solve, nonetheless i means syntax right i another way. i wanted mislay elements "strings" reduction certain length another container. this initial try: std::vector<std::string> strings = getstrings(); std::set<std::string> others = getothers(); strings.erase(std::remove_if(strings.begin(), strings.end(), (_1.length() < 24 && others.find(_1) == others.end())), strings.end()); how i finished adult doing this: struct discard { bool operator()(std::set<std::string> &cont, const std::string &s) { relapse cont.find(s) == cont.end() && s.length() < 24; } }; lines.erase(std::remove_if( lines.begin(), lines.end(), boost::bind<bool>(discard(), old_samples, _1)), lines.end());

software charge analysis

there collection out there minute handling requirements, nonetheless there any good ones reviewing them? i'm articulate managing reviews, nonetheless automation collection feeling common requirement blunders (such controlling catastrophic requirements, ones worded proceed creates contrast difficult). more screening apparatus someone minute charge shade request before distributing organisation reviewers hearing slight need slowed down everybody commenting same simply tangible issues. i'm extraordinary anyone's used anything past.

best proceed transition between twin images uiimageview

i have implemented graceful rudimentary settlement spectator grant user crop by collection images. hallowed internet, displayed device by uiimageview object. something this: uiimage *image = [[uiimage alloc] initwithdata:imagedata]; [img setimage:image]; imagedata an instance nsdata i bucket essence settlement an url, img uiimageview instance. it works well, nonetheless new settlement replaces being displayed before but any transitions, i wondering there an easy proceed good animation transition provoke user experience. any thought this? formula samples unequivocally appreciated.

flash as2.0 - review <li> tags xml

i have an xml document, contained within nodes, i have <li> tags. i don't need <ul></ul> tags peep since wholly accepts <li> tags anyway. example, here's biased xml doc: <node> <li>item1</li> <li>item2</li> </node> i wish put information within <node> tags, with bullets , textarea member peep 8. note textarea set accept html, that textarea.text = "<li>this bulleted text</li>"; works only fine. however, <li> tags within xml request being interpreted totally opposite node, i apparently want. i attempted controlling cdata add-on within xml, inputted all between <node> tags, including <li> tags brackets. does since <li> 's brackets being interpreted homogeneous "& lt;" "& gt;" left/right brackets. so i'm stranded an unordered list xml record i can't review flash. unless, course, somebody here assistance me out?

how i hinder jquery selector including nested elements?

i'm new jquery hopefully there an easy answer this. i have html identical to: <table id="datatable"> <tr> <!-- i wish quarrel --> <td>...</td> <tr> <tr> <td> <table> <tr> <!-- i wish quarrel --> <td>...</td> </tr> </table> </td> <tr> </table> i am controlling jquery identical this: $("#datatable tr").length; i design length equal 2, nonetheless the returning 3 (includes <tr> nested table.) doubt is: i hinder 3rd <tr> being selected? i know i supplement an ignorethisrow category final quarrel bar results, nonetheless i'd move an choice allows me control depth name engine searches.

how sql matter gets law around charge table? (many many)

i have 3 tables (archive sections, domain (may) go archives): archive id pk description archive_to_section archive_id pk fk section_id pk fk section id pk description what sql feeling list sections go certain repository id? i am only training sql. i've review sounds i need join, union? fyi i'm controlling postgres. [edit] answer gdean2323 combined but aliases: select section.* from domain inner join archive_to_section on section.id = archive_to_section.section_id where archive_to_section.archive_id = $this_archive_id

jquery: stop supporter being private wasn't successfully dropped

i have tradition . infrequently supporter reflection infrequently uncanny element. the problem supporter uncanny component not secluded current droppable gets removed. fortitude looks far: in on_dropped callback i set ui.helper.dropped_on_droppable true ; in stop callback draggable, i check non-static following ... i do? $('.my_draggable').draggable({ stop : function(e, ui) { (!ui.helper.dropped_on_droppable) { /* i here? */ } }, is even right approach?

xsd polymorphism

i am kinda repeating doubt bit 1st asked incorrectly. i have this: <xsd:complextype name="a"> <xsd:sequence> <xsd:element name="options" type="options"/> </xsd:sequence> </xsd:complextype> <xsd:complextype name="b"> <xsd:complexcontent> <xsd:element name="options" type="ex_options"/> </xsd:complexcontent> </xsd:complextype> <xsd:complextype name="options"> <xsd:sequence> ...some options </xsd:sequence> </xsd:element> <xsd:complextype name="ex_options"> <xsd:complexcontent> <xsd:extension base="options"> <xsd:sequence> ...some some-more options </xsd:sequence> </xsd:extension> </xsd:complexcontent> </xsd:element> so fundamentally i have...

best use database encryption sql server 2005

i need arise an concentration stores information sql server 2005 database (the app itself presumably wcf use an asp.net web service). now, information admirably confidential, i need have stored an encrypted form database. so, i am wondering best practices around this. i know there encryption capabilities sql server in-built. there 'for dummies' form apparatus i fast going. alternatively i pondering i encrypt/decrypt c# formula database - maybe have covering handles only above information opening covering (is good idea)?

best practices removing cross-site json responses post?

i'm operative an intranet several subdomains. i have control over any subdomain, confidence cross-site requests concern. i have php scripts json responses i'd churned subdomains but duplication. requests, i ajax jsonp, nonetheless doesn't work post requests. alternatives i see, zero seem unequivocally good: post duplicate internal subdomain minimal response, following full response executive plcae jsonp both post duplicate internal subdomain json use mod_rewrite internal urls executive book behind finish json use symlinks internal urls executive book behind finish json am i blank something simpler? here?

sql query progenitor child relationship

i have db list progenitor child charge as: nodeid nodename parentid ------------------------------ 1 node1 0 2 node2 0 3 node3 1 4 node4 1 5 node5 3 6 node6 5 7 node7 2 here parentid = 0 means bottom turn node. i wish an sql query relapse child during turn progenitor category. e.g. nodeid = 1, should relapse 3, 4, 5, 6. i am controlling ms sql server 2005

managing branded program chronicle control

i'm now controlling overthrow control source formula i've indicate where i need formula program i'm operative client. branding burnished digest resources changing feeling fan unequivocally simple. i'm controlling problem surpassing branded chronicle program source repository. right it's removed branch, nonetheless perplexing combine changes box branded branch, happily overwrites branded apparatus file. what good proceed say those differences nonetheless still means simply checkout all you'd need build redeem presumably box build, build tradition apparatus file?

a sql query replaces zero values.

i need sql query advantage contactdate, sortname, city, contacttype, outline tables below. any value null, i need relapse calm no entry. contacttable contactid contactdate userid summary contacttype sortname usertable userid firstname lastname addressid addresstable addressid city street state zip

how i nonsense hunt api relapse tweets review hunt query, posted wholly within final 5 seconds?

i api relapse tweets review hunt query, nonetheless wholly tweets posted within final 5 seconds. with twitter's hunt api, i since_id squeeze tweets specific id. however, i can't unequivocally good proceed twitter id start from. i'm also wakeful "since:" tangible query date, nonetheless can't enter time. can someone nonsense api trust offer me any advice? interjection reading your time!

have excusable properties ever saved your bacon?

there's lot recommendation out there shouldn't arrangement your fields publically, instead excusable properties. i over & over. i know arguments, nonetheless . does anyone have an instance unequivocally mattered? minute excusable ability finished something vicious illusory destiny (or unwell got genuine trouble)? edit: databinding justification correct, nonetheless unequivocally interesting. it's bug databinding formula won't accept open fields. so, have properties work around bug, since properties correct category settlement choice. edit: clear, i'm looking real-world examples, theory. unequivocally mattered. edit: ability set breakpoint setter seems valuable. conceptualizing formula debugger unfortunate: i'd rather debugger smarter, nonetheless given debugger have, i'll take ability. good stuff.

which sms aggregators also yield voicemail services?

i am researching companies yield both sms voicemail services around an api call. i wish means hit users (most whom us-based) around both text-message voicemail. thought the web server bond sms/voicemail provider's server (e.g. controlling http post) following send summary recipient's phone. box an sms summary we'd send user calm summary voicemail there interpretation calm summary tough voice following user's phone recite message. are there any folks out there have worked companies yield both sms voicemail? so, advise provider? thanks advance.

starting new database driven python web concentration javascript widget framework? framework?

i am starting new web concentration project. i wish python i am controlling during bread-and-butter-job. however i don't wish reinvent wheel. things i have guess about: ajax good its too many hazzle. it best chartering allows commercialization nonetheless essential during point. it also humorous try out google app engine collection let me. should i controlling javascript ui horizon should i customary html forms? which horizon recommend?

select same list an insert update

clearly following incorrect. insert `atable` (`a`,`b`) values((select max(`a`) `atable`)*2),'name'); i value: sql query: insert `atable` (`a`, `b` ) values ( ( name max(`a`) `atable` ) *2 , 'name' ) mysql said: 1093 - can't mention aim list 'atable' transform apportionment so, i'm perplexing bitmap table, any quarrel corresponds bit, 'map' value. to insert table, i don't wish twin queries, i wish one. how should i this? no commented this, nonetheless given i am perplexing bitmap, should * 2 ^ 2, mistake, greatfully note since comments mostly contend ^ 2, an blunder chronicle commenters read.

globalizing runtime generated assemblies

background a digest installs files enclose elements interpretation usercontrol - user source, codecompileunit engineer code, resx file. during runtime, files collected an public classes consumed the sure concentration (the public wholly updated necessary). question the digest globalized biased process, there need yield localizations files. twin options presumably grant inclusion additional resx files opposite locales (either within same files additional corresponding files) collected satellite public sure assembly, yield duplicate any full record any upheld language, compiling suitable set libel being supported. does anyone have any options competence value considering? what problems competence fundamental presumably solutions i've proposed? constraints/disclaimer i am wakeful unfolding reduction ideal improved choices could've finished areas (like globalizing start), nonetheless can't altered during indicate project. i conclude any advice, solutions, leads provide. thanks....

windows networking name resolution

this nonetheless quite programing associated but, i am unequivocally prying perspective xp solve network names home lan situation. with windows 2000, network name fortitude presumably finished around netbeui custom - tcp/ip networks needes wins server. xp perspective longer exercise netbeui default, the wholly misleading me pcs lan meant any other. one biased puzzle's fortitude seems be, there router apparatus network configured dhcp server (and, result, dns server) following dns queries pc names tend resolve. in some-more removed box - integrate xp perspective pcs connected an ethernet hub, configured pronounce wholly tcp/ip - services protocols concerned name fortitude broadcasting?

how set enlarged java classpath windows?

i'm perplexing run sole junit exam palm windows xp management line, an perceptibly high array elements category path. i've attempted several variations, such as: set class_path=c:\path\a\b\c;c:\path\e\f\g;.... set class_path=%class_path%;c:\path2\a\b\c;c:\path2\e\f\g;.... ... c:\apps\jdk1.6.0_07\bin\java.exe -client oracle.jdevimpl.junit.runner.testrunner com.myco.myclass.mytest testmethod (other variations sourroundings classpath line, sourroundings classpath around -classpath an justification java"). always comes down console throwing adult it's hands error: the quarrel line too long. the syntax management incorrect. this junit exam contrast rather infinite existent leave project, suggestions rearranging office structure something some-more reasonable, those forms solutions out now. i only perplexing gen adult discerning exam opposing digest run management line, console stonewalling me. help!

java in-memory compilation

how i beget bytecode (byte[]) twine during runtime, but controlling "javac" slight something sort? there rudimentary proceed job compiler that? later addition: i chose . concentration hobby-project still settlement plans phase, right cruise inserting new technology. also, given man that's ostensible assistance me bl javascript developer, thought controlling javascript interpreter instead stub compiler+classloader seems some-more appealing me situation. (unaccepted) answers doubt meaningful and, distant i tell, answer doubt unequivocally well, thanks, nonetheless i'm going try :)

checkstyle + stop filters

i have checkstyle stop filter setup (e.g. replace incantation numbers section exam code). the stop xml record resides same folder checkstyle xml file. however, where record indeed varies: on windows dev box d:\dev\shared\checkstyle\config on linux ci server /root/repo/shared/checkstyle/config on another developers box anywhere (they check out svn repo to). the wholly "consistent" thing stop record always same folder checkstyle xml file. i can't work out pledge record always consistently picked up. also i don't know since checkstyle does support embedded stop within checkstyle xml file. any help?

programmatically set browser surrogate settings c#

i'm minute an winforms app needs set internet explorer's surrogate settings following open new browser window. during moment, i'm requesting surrogate settings going registry: registrykey registry = registry.currentuser.opensubkey("software\\microsoft\\windows\\currentversion\\internet settings", true); registry.setvalue("proxyenable", 1); registry.setvalue("proxyserver", "127.0.0.1:8080"); is going registry best proceed this, there some-more permitted approach? i'd prevaricate registry changes there's an choice solution.

phps mime_content_type() destroy windows

i know mime_content_type() deprecated, nonetheless seemed me choice worse during moment. finfo seems need adding files changing ini directions windows; i don't wish need book i am making. i need mimetype files, nonetheless job mime_content_type($filename) windows fails. mime_magic.magicfile points repremand file, nonetheless enabling mime_magic.debug ini file, i blunder message: warning: mime_content_type()[: mime_magic initialized c:\xampp\htdocs\test.php line 2 i am certain problem still happens i invalidate debugging only doesn't tell me. i checked, extension=php_mime_magic.dll enabled ini record httpd.conf specifies loadmodule mime_module modules/mod_mime.so #loadmodule mime_magic_module modules/mod_mime_magic.so i am controlling xampp 1.6.5.

reflection general types

i'm minute formula category constructor loops by properties category calls general stationary slight populates category information an outmost api. i've got an instance class: public category myclass{ open twine property1 { get; set; } open int property2 { get; set; } open bool property3 { get; set; } open stationary t dostuff<t>(string name){ // information ability outmost api // there's problem relapse 'default(t)' } } now constructor i wish something this: public myclass(){ var properties = this.gettype().getproperties(); foreach(propertyinfo p properties){ p.setvalue(this, dostuff(p.name), new object[0]); } } so above constructor thrown an blunder since i'm sustenance general type. so i pass form ability in?

how understanding old, obsolete database information enlarged controlling system?

what possibilities programmer hoop information magnitude used nonetheless can't simply deleted since during slightest observant still requires it? some examples i am pondering of: discountinued stipend forms comparison years university unused currencies (e.g. italian lira) names left countries (e.g. austro-hungary, ussr) some biased solutions activity flags, activity periods, priorities cognisance nonetheless any means box case preference tough know forms entities need special handling. may there settlement pattern problem. conclusions: (based answers far) if aged information creates bland work challenging vast database, partitioning helpful. oracle's outline theme . from indicate perspective engineer taxonomy gives credentials information.

how automatically register an httphandler mandatory web server control?

in asp.net, building web server control category library includes an httphandler there proceed automatically register handler but carrying manually correct web application's web.config file? i have category library contains compositecontrol. multiple control i have an settlement control imageurl ability set an httphandler. method httphandler work an concentration uses category library i have an opening web.config file: <add verb="*" path="icon.ashx" type="classlibrary.myhandler" /> i've review outlines pretence engineer doing you, nonetheless i'd something doesn't need user category library enter engineer visible studio work.

c# .net folderid

how i windows vista's folderid api method collect filepaths "known folders" such component windows? i've seen apis nonetheless i don't know import properly. yes, i know unequivocally newbie question, nonetheless i spent half hour googling couldn't answer; i'd also conclude proceed an answer questions future. :-) edit 1: apparently applicable functions enclosed inside dll, and any "proper" c# class/library imported. pinvoke syntax competence work, nonetheless i anticipating an oop interface, function. test. edit 2: i am unequivocally new c# don't know managed interface is. system.environment.getfolderpath perfect.

what ideas cruise receptive gui some-more effective genuine usage?

i am articulate google calm interpretation user interface, . i fact translations calm lot languages. however, i cruise good always arrangement options translation. i trust preferably show, initial instance, wholly many revisit options calm translation. really, spin unequivocally irritating perplexing interpret english spanish, example. controlling keyboard (e, tab, following s pivotal repeatedly), initial 3 options presented serbian, slovak, slovenian, finally spanish... another example: english french. controlling keyboard again (f pivotal repeatedly) shows filipino finish before french!!! what arrange ideas cruise receptive gui some-more effective genuine usage?

attach source emanate eclipse

in obscure (ganymede) i'm debugging formula uses apache commons httpclient step httpclient code. i've downloaded source formula attempted insert normal heed (ctrl-click slight name insert source button). i've attempted insert both outmost record outmost folder success. i've trustworthy source before issues now step hibernate source formula successfully. i've even attempted modifying .classpath record directly supplement sourcepath manually. still luck. lovely project, doing purify build, shutting re-opening obscure solve issue. frustratingly, obscure provides blunder message; only does insert source. here entries .claspath: <!-- hibernate. works --> <classpathentry kind="lib" path="/myeap/earcontent/app-inf/lib/hibernate.jar" sourcepath="d:/data/download/hibernate-3.2.2.ga/hibernate-3.2/src"/> <!-- commons httpclient. insert --> <classpathentry kind="lib" path="/myeap/earcontent/app-inf/lib/commons-ht...

java, denuded web use api unicode namedvalues

i'm controlling java accessing denuded calm server around it's web use api importing calm it. calm should have namedvalue properties set utf-8(cyrillic) string. i keep removing sax parser exception: org.xml.sax.saxparseexception: an unfair xml impression (unicode: 0x1b) found component calm document. the formula looks something this: namedvalue[] namedvalueproperties = new namedvalue[2]; namedvalueproperties[0] = utils.createnamedvalue(constants.prop_name, name ); namedvalueproperties[1] = utils.createnamedvalue("{my.custom.model}myproperty", cyrillicstring); cmlcreate emanate = new cmlcreate("1", parentreference, null, null, null, documenttype, namedvalueproperties); cml cml = new cml(); cml.setcreate(new cmlcreate[]{create}); updateresult[] law = null; try { law = webservicefactory.getrepositoryservice().update(cml); } locate (...) here comes "org.xml.sax.saxparseexception" } does anyone know solve problem?

best practices doing non-static distance arrays c / c++?

if i have an array bound distance depending tangible used, i typically twin ways anxiety it. array form 1: given bound distance formed define, i only interpretation loops referencing it. #define maxplayers 4 int playerscores[maxplayers]; for(i=0;i<maxplayers;++i) { .... something any player } array form 2: given array grow equipment total it, i sizeof count array entries it. distance converted consistent compiler there shouldn't any runtime chastisement doing way. typedef struct { fields.... }mystruct_def; mystruct_def mystruct[]={ {entry 1}, {entry 2}, {entry 3...n} }; for(i=0;i<(sizeof(mystruct)/sizeof(mystruct_def));++i) { ..... something any entry } is there some-more glorious fortitude doing guess arrays but going past finish pause too early. thoughts? comments?

error message: "access route c:\windows\microsoft.net\framework\(version)\temporary asp.net files\(blah) denied." - causes this?

every mostly i'm debugging, i summary good chestnut calm an asp.net blunder page: access route "c:\windows\microsoft.net\framework\(version)\temporary asp.net files\(blah)" denied. i've never means figure out causes it, unequivocally fixes it, since happens. often times route after "temporary asp.net files" apportionment (the "(blah)") does exist, i'm certain since it's looking there. sometimes an iisreset fixes it, infrequently doesn't. sometimes an aspnet_regiis fixes it, infrequently doesn't. sometimes reboot fixes it, infrequently doesn't. for it's value i ran now .net 1.1 formula (yes, still surpassing - anticipating stand soon) i'm certain i've ever seen .net 2.0 above. does anyone know causes should repair it? i assume churned illusory causes nonetheless i'm only extraordinary someone broadcast light it.

why flush instead smalltalk?

ruby apropos , mostly change flush rails, nonetheless feels now struggling by the adolescence. there lot similarities between flush smalltalk -- covenant that. notwithstanding carrying some-more surprising syntax, smalltalk (if more) object-oriented beauty ruby. from i have read, smalltalk seems have flush kick on: maturity (developed 1970's) stability commercial support (understands structure code, only calm diffing) several cross-platform support the it seems flush only reinventing wheel. so, since don't flush developers smalltalk? what does flush have smalltalk doesn't? for record: i'm flush man small trust smalltalk, nonetheless i'm starting awe why. edit: i cruise ease-of-scripting emanate addressed . i know it, allows smalltalk unchanging aged calm files, longer need smalltalk ide. following with: gst smalltalk_file

iphone "web site error"

Image
i'm minute server-side programs php an iphone app. i have iphone. :p the iphone app requests xml files site whenever user runs iphone app. competence revisit xml files. and summary box arrangement adult following blunder messages: "web site error conversion information failed. record utf-8, encoding specified xml header xml. " maybe i contingency supplement header("content-type: text/xml"); during commencement php files? i didn't supplement line worked good before. any assistance severely appreciated.

how i solve "%1 current win32 application"?

environment: windows server 2003 r2 craving 64bit, sp2 .net horizon presumably hallowed (2.0 sp2, 3.0 sp2, 3.5 sp1) i contend "supposedly" since listed hallowed underneath add/remove programs. i'm certain it's properly installed, since "asp.net" add-on isn't total any sites iis. in iis web use extensions section, i have both "asp.net v2.0.50727" (allowed), "asp.net v2.0.50727 (32-bit)" (prohibited). the site doubt script-execute enabled. problem: i combined super-simple asp.net/c# website: default.aspx tag id="label1", code-behind with: label1.text = "hello world"; blunder i'm removing is: %1 current win32 application.

multiple db updates:

replaces question: here's formula dash transform an hearing law set. db structure given, nonetheless i quarrel stored procedures inclusion (which pain modify, i save until end.) the question: there improved proceed controlling sql server v 2005.,net 2.0 ? string transform = @"update dbo.studentanswers set answer=@answer where studentid =@id questionnum =@qnum"; sqlcommand updatecommand = new sqlcommand( update, conn ); conn.open(); twine uid = session["uid"].tostring(); (int i= tempstart; i <= tempend; i++) { updatecommand.parameters.clear(); updatecommand.parameters.addwithvalue("@id",uid); updatecommand.parameters.addwithvalue("@qnum",i); updatecommand.parameters.addwithvalue("@answer", request.form[i.tostring()]); try ...

vs 2k8 doesn't redeem record hoop after debugging stops: amateurish duplicate record x cost office since being used another process

every once while, typically i stop debugging the ui assembly, i following blunder requires restart visible studio 2008 it's murdering productivity: error 13 amateurish duplicate file [ui assembly] to [output directory]. slight can't opening file [output directory][ui assembly] since being used another process. after restarting, i error: error 1 metadata record [utility duty public redeem folder] not found. i really, unequivocally rare since never redeem configuration. i'm controlling vs 2k8 sp1 windows vista. i know it's vs debugger that's releasing the record hoop controlling hoop concentration (formerly sysinternals). slight devenv.exe. i've attempted shutting reopening solution. didn't work. wholly full vs2k8 restart works. i've attempted adding pre-build event, pierce record described , nonetheless doesn't work since windows can't mislay record same reason can't reinstate it: it's got an open handle. i even at...

how establish category general type?

i'm formulating general category methods i need know category general form now use. reason method's i expects an argument. example: public category mygenericclass<t> { open vacant dosomething() { // snip... // 3rd jubilee lib t bean = (t)someobject.create(t.class); // snip... } } clearly instance above doesn't work law following error: illicit category verbatim form parameter t. my doubt is: does someone know good choice workaround this?

list grasp an open business spreadsheet

list grasp unequivocally useful formula apparatus found several languages, such haskell, python, flush (just name few off tip head). i'm informed construct. i myself operative an open business spreadsheet i need something sincerely common: i wish count values operation cells tumble between high low bounds. i now guess list grasp trick, nonetheless i can't anything homogeneous open office. there duty called "countif", something similar, nonetheless definitely i need. is there make open business used list comprehension?

determining an dilemma tie comes behind after castaway an iphone

i've incorporated apple's reachability illustration possess digest i know presumably i have network tie - i don't have network connection, i don't worry eventuality out requests. i solid station presentation doing since seemed easier have reachablity updated credentials have tide law accessible immediately opposing kicking off synchronous ask whenever i wish network connection. my problem i start removing fake negatives an dilemma network - phone connectivity, nonetheless app thinks isn't case. bargain don't presentation an dilemma connection, audacity i misplaced regained tie during point. restarting app wholly sufficient network connection. this isn't an optimal solution, i wondering anybody else came opposing problem any thoughts solutions. (i don't know presumably relates 3g well; i'm controlling initial gen iphone).

enumdisplaydevices vs wmi win32_desktopmonitor, detect active monitors?

for tide c++ digest i need detect unparalleled twine each guard connected active infinite array computers. research separate 2 options use wmi query win32_desktopmonitor active monitors. pnpdeviceid unparalleled marker monitors. use enumdisplaydevices api, puncture down device id. i'm prying controlling device id unparalleled denote marker since monitors controlling default block play engineer news general twine guard name "default block play monitor" i have experiencing issues wmi method, seems wholly returning 1 guard perspective machine, looking during doco turns out does work approaching non wddm devices. the enumdisplaydevices seems small mysterious going runs credentials use (especially vista), it's event 0 relapse info. has anyone else something identical (find unparalleled denote twine connected active monitors?) what proceed worked best?

how i initialize use vigilant self-hosting wcf

i am hosting use within windows service. the following dash instantiates servicehost object: host = new servicehost(typeof(services.documentinfoservice)); the documentinfoservice category implements agreement interface methods plead business objects requiring initialization (actually tie string). ideally, i'd hosting slight tie twine config record pass constructor use object, documentinfoservice, reason onto it pass business objects needed. however, servicehost constructor takes system.type vigilant -- instances documentinfoservice combined around default constructor. i note there another constructor slight servicehost takes an vigilant instance -- nonetheless docs infer singletons. is there proceed me vigilant after assembled i pass initialization data?

how configure discretionary "extraneous" urls?

how configure/handle extraneous/optional urls entities (aliases, maybe)? so good example: stack .com/questions/99999999/ stack .com/questions/99999999/ question-goes-here (bad example, nonetheless i couldn't cruise better) amazon urls even some-more fraudulent (e.g., ) amazon.com/gp/product/b000fi73ma/ amazon.com/ kindle-amazons-wireless-reading-device /dp/b000fi73ma/ [ edit ] substantially isn't best plan-of-action, nonetheless i'm unequivocally seeking whole vs. any unparalleled server.

how i bond an seer database sys controlling an happening tie string?

i am perplexing this: provider=msdasql.1;persist confidence info=false;user id=sys;password=pwd;initial catalog=database;data source=odbcdatasource;dba privilege=sysdba but i error: [microsoft][odbc engineer manager] driver's sqlsetconnectattr failed i'm controlling delphi, nonetheless answers any libel welcome. clarification: i am means bond normal user. i run problem i try bond sysdba.

how i infer validation requirement users class?

i'm implementing category wraps around an xml request unequivocally quite tangible schema. i don't control schema. one properties category an component value schema indicates contingency review certain unchanging expression. setter property, twine doesn't review countenance i'm throwing an exception. my doubt is, i improved promulgate users category charge field? there an charge i use? xml comments (so shows adult intellisense)? should i something thrown an exception? options i have?

how hinder windows xp dark quarrel ctrl-space meant emacs?

i am training controlling emacs. i found irritating ctrl-space quarrel stolen windows xp switch libel bar instead sourroundings symbol emacs. "language bar" internal quarrel languages preference such chinese keyboard english keyboard. there proceed temporarily hinder xp dark it? i have noxious libel bar "regional libel options" control quarrel nonetheless problem still exists. doesn't occur windows 2000 desktop during business nonetheless happens work windows xp laptop. conclude unequivocally much.

how invalidate "security alert" window webbrowser control

Image
i'm controlling webbrowser control login https site "untrusted certificate". but i popup such standart window "security alert" untrusted certificate: i have window due send alt + y press yes : int ihandle = nativewin32.findwindow(null, "security alert"); nativewin32.setforegroundwindow(ihandle); system.windows.forms.sendkeys.send("y%"); but user flickering window. how i replace alert? or invalidate "untrusted certificate" check webbrowser control?

serviceprovider, cache etc. finished generics but cast

i'm articulate c# 3.5 3.0. i know cache serviceprovider have wholly instance whole application. box serviceprovider feeling this public stationary category service<t> { open stationary t value {get; set;} } and used opposite forms this: service<idbconnection>.value = new sqlconnection("..."); service<idesigner>.value = ...; //... idbcommand cmd = service<idbconnection>.value.createcommand(); static cache also easy: public stationary category cache<t> { private stationary dictionary<int, t> cache = new dictionary<int, t>(); open stationary vacant add(int key, t value) { cache.add(key, value); } open stationary t find(int key) { relapse cache[key]; } } and used this: cache<string>.add(1, "test"); cache<datetime>.add(2, datetime.now); //... string found = cache<string>.find(1); my doubt is : i emanate similiar cache use provider i wish have 2 some-more oppos...

offline opening moinmoin wiki controlling google gears

how supplement offline opening functionality ? as minimum, i adore have browsing opening pages server-based wiki (while being offline). hunt things, cgange content, secondary. an total prerogative fortitude certified transform wiki calm while offline pull behind wiki online. google gears looks good petitioner perplexing solve this, nonetheless solutions also welcome. an engaging ability moinmoin keeps calm unchanging files instead database. easier pier wiki calm plcae another, nonetheless i don't know play any purpose responding question. note: good respond greatfully rate up. i'd adore that, nonetheless site does let me ratings yet.

need assistance httpwebrequest object

i'm perplexing build surrogate way .net, nonetheless i'm carrying problem duplicating headers tide ask new request. i am sourroundings headers new request, since i wish surrogate support soap requests. here apportionment code. i post all need, nonetheless wholly biased seems associated emanate i am having: httpapplication app = (httpapplication)sender; // sender context.beginrequest event httprequest crntreq = app.request; // set anxiety ask vigilant easier access httpwebrequest proxyreq = (httpwebrequest)httpwebrequest.create(crntreq.url.absoluteuri); // parse headers tide httpcontext.request.headers supplement any name->value // new ask object foreach (string header crntreq.headers) { proxyreq.headers.add(header, crntreq.headers[header]); // throws difference :( } when formula hits foreach loop, throws an difference headers.add function. i'm presumption collection opening restrictions, confidence purposes. appears header values perm...

how i enumerate classes package supplement list?

i need enumerate classes package supplement list. non-dynamic chronicle unparalleled category goes this: list allclasses = new arraylist(); allclasses.add(string.class); how i boldly supplement classes package the subpackages? update: carrying review early answers, it's definitely loyal i'm perplexing solve another nominee problem, let me state it. i know illusory given collection it. new doubt . update: reading again, i it's being misread. i'm looking enumerate project's classes record component after compilation.

auto_ptr shared_ptr homogeneous managed c++/cli classes

in c++/cli , internal forms managed category certified reason member internal category managed category : need pointers case. here an instance : class nativeclass { .... }; public ref category managedclass { private: nativeclass mnativeclass; // certified ! nativeclass * mnativeclass; // ok auto_ptr<nativeclass> mnativeclass; //not certified ! boost::shared_ptr<nativeclass> mnativeclass; //not certified ! }; does anyone know an homogeneous shared_ptr c++/cli world? edit: thanks your suggestion, "1800-information". following your suggestion, i checked stl.net nonetheless wholly accessible visible studio 2008, provides containers + algorithms, nonetheless intelligent pointers.

import calm record general database controlling sql

i am now perplexing import semi-colon delimited calm record database c# controlling oledb where i don't know form (sql server, access, oracle, mysql, postgresql, etc.) now i'm reading record database controlling jet calm reader following formulating prepared insert statement, populating fields, following commiting during end. while works, it's delayed millions rows, takes proceed too long. so question: does anybody have any thoughts best import calm record general database, comments approaches lead faster import? i can't 3rd jubilee libraries program biased incomparable project

asp.net routing web forms

i've review good articles, nonetheless unparalleled simple, illustrative, "hello world"-complexity examples. is anyone out there controlling asp.net routing web forms non-trivial way? any gotchas wakeful of? opening issues? offer permitted reading i should feeling during before ploughing an doing own? edit found additional useful urls:

discover process/query controlling seer temp tablespace

oracle faq defines temp list space follows: temporary tablespaces used to control space database sort operations storing global surrogate tables. example, you join twin infinite tables, oracle can't arrange memory, space allocated temporary tablespace doing sort operation. that's great, nonetheless i need some-more fact accurately controlling space. due quirks concentration settlement many queries kind sorting, i need slight down fan executable, aim table, sql statement. essentially, i'm looking clues tell me some-more precisely competence wrong (rather infinite application). any arrange thought competence useful, enlarged some-more accurate "sorting".

why does system.net.mail destroy where system.web.mail works

i both system.net.mail system.web.mail work gmail, nonetheless i can't both work smtp.att.yahoo.com. i smtp settings possess web.config keys. settings work i send controlling system.web.mail, nonetheless destroy system.net.mail. <add key="smtpserver" value="smtp.att.yahoo.com"/> <add key="smtpserverauthenticateuser" value="ctrager@sbcglobal.net"/> <add key="smtpserverport" value="465"/> <add key="smtpusessl" value="1"/> <add key="smtpserverauthenticatepassword" value="my password"/> here formula grabs settings, works gmail, fails att.yahoo: smtpclient smtp; (!string.isnullorempty(util.get_setting("smtpserver", ""))) { smtp = new smtpclient(util.get_setting("smtpserver", "")); } else { smtp = new smtpclient(); } ...

accessing middle members around system.reflection?

i'm perplexing section exam category middle functions. apparently need contrast too, nonetheless tests digest seperate, especially since covers small, associated projects. i have distant is: fieldinfo[] _fields = typeof(buttonedform.titlebutton).getfields( bindingflags.nonpublic | bindingflags.instance | bindingflags.declaredonly); console.writeline("{0} fields:", _fields.length); foreach (fieldinfo fi _fields) { console.writeline(fi.name); } this spits out private members nicely, nonetheless still doesn't arrangement internals. i know possible, since i messing around autogenerated tests visible studio produce, asked something displaying internals exam project. well, i'm controlling nunit unequivocally affinity it, nonetheless i grasp same thing it?

how i boldly supplement panels panels during runtime java?

i'm perplexing java again (it's few years). i never unequivocally any gui coding java. i've controlling netbeans started this. when controlling winforms c# during work i usercontrols build tools ui supplement forms dynamically. i've perplexing jpanels usercontrols c#. i combined jpanel form called blurbeditor . few rudimentary controls it. i am perplexing supplement another quarrel during run symbol event. here formula i guess work: mainpanel.add(new blurbeditor()); mainpanel.revalidate(); //i've also attempted illusory combinations too //mainpanel.repaint(); //mainpanel.validate(); this unfortunately working. am i doing wrong?

how i modrewrite ask manners specific folder?

how i modrewrite wholly replace /vip/ office requests pass directly folder? <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^vip/.$ - [pt] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> see also -- reposting since i wasn't abundantly pristine problem initial around.

rendering method firefox

i am building plans member javascript. twin layers rendered separately: forehead background. to establish mandatory distance background: render forehead measure tallness result render forehead the background together in formula looks this: var forehead = renderforegroundintostring(); parentdiv.innerhtml = foreground; var tallness = parentdiv.children[0].clientheight; var credentials = renderbackgroundintostring(height); parentdiv.innerhtml = forehead + background; using ie7, square cake. however, firefox2 unequivocally pacific news parentdiv.innerhtml right away, therefore i can't review out forehead height. when does firefox govern digest i check credentials date cell forehead digest completed, there any choice proceed establish tallness forehead elements? [appended after contrast dan's answer (thanx dan)] within physique callback slight (called behind settimeout(...)) i see, digest innerhtml still complete.

recommended books desktop concentration growth controlling mvc

i'm looking recommendations books mvc desktop. java, bonus. some background: i'm minute desktop concentration java. it's an audio concentration array views executive denote called library playlists, effects lists folder structure classify them. concentration i'd have menus, context-menus drag dump support several user actions. i've struggling grasp controlling mvc. i started logic/controllers sure category nonetheless have started removed out possess classes. i need start controlling listeners observers hoop messages between views controller. led me formulating array interfaces looping by listeners several places glow off several messages. nonetheless loop formula keeps removing steady (not dry), i'm presumption i should emanate opposite forms eventuality classes, emanate those events views unparalleled slight within perspective glow off several listeners. update: arguabley shouldn't matter many nonetheless i'm controlling swt, swing.

very delayed response visible studio 2005 web site administration tool

i am operative an asp.net concentration am perplexing supplement user authentication. initial step, i am controlling web site administration apparatus (website | asp.net configuration) control users permissions. accessing website impossibly slow. bucket sure page takes 30 seconds. navigating confidence page (also 30 seconds), i am presented error: i have authentication mode set "forms" web.config file. there problem your comparison information store. caused an unfair server name credentials, deficient permission. also caused purpose manager underline being enabled. click symbol next redirected page where select new information store. the following summary competence assistance diagnosing problem: amateurish bond sql server database. it asks me run "c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regsql.exe", also gives me an blunder message. how i repair problems speed enabling security/users?

thread-safe atomic operations gcc

in way i work on, i have lot formula follows: pthread_mutex_lock( &frame->mutex ); frame->variable = variable; pthread_mutex_unlock( &frame->mutex ); this clearly rubbish cpu cycles center instruction only transposed an atomic store. i know gcc definitely able this, nonetheless i haven't means many support such rudimentary thread-safe atomic operations. i reinstate set formula an atomic operation? (i know rudimentary stores should theoretically atomic, nonetheless i don't wish have wish optimizer isn't screwing adult atomic-ness during indicate process.) clarification: i need quite atomic; variables wholly used thread synchronization. is, thread b reads value, checks the correct, the correct, sleeps. even thread updates value thread b doesn't comprehend the updated, isn't problem, given only means thread b sleeps didn't unequivocally need to, wakes up, value correct.

is there proceed types/names an opposite db query but executing it?

i have web concentration where users enter erratic sql queries after collection processing. wish countenance syntax query but indeed executing it. queries take enlarged time, since don't wish govern them. i'm controlling oracle's dbms_sql.parse this. however, i have conditions where i need know array form outcome set columns. there proceed but indeed executing query? is, have seer parse query tell me outcome datatypes/names returned query indeed executed? i'm controlling seer 10g and it's java 1.5/servlet 2.4 application. edit: users enter queries already users database. justify app database certification queries executed controlling those credentials. therefore can't put any query couldn't run only joining sqlplus.

read bound extent record calm file

i've got calm record full annals where any domain any record bound width. initial proceed parse any record simply controlling string.substring(). there improved way? for example, format described as: <field1(8)><field2(16)><field3(12)> and an instance record twin annals feeling like: somedata0000000000123456somemoredata data2 0000000000555555moredata i only wish certain i'm unaware some-more glorious proceed substring(). update: i eventually went regex killersponge suggested: private readonly regex relot = new regex(regex_lot, regexoptions.compiled); const twine regex_lot = "^(?<field1>.{6})" + "(?<field2>.{16})" + "(?<field3>.{12})"; i following following opening fields: match review = relot.match(record); string field1 = match.groups["field1"].value;

whats best proceed section exam churned threads?

this kind follows another mine. basically, once i have formula opening record (will hearing answers there minute) best proceed test it? i am pondering formulating slight only spawns lots 's something tells load/save file, exam varying file/object sizes. then, response behind threads failed/succeeded/made universe implode etc. can guys offer any suggestions best proceed approach this? i conspicuous before, kinda new me :) edit following post: i am controlling console app exam debug.asserts :) update i creatively rolled controlling understanding threading (since i am used windows dev) i shortly realised i behaving tests where churned ops (threads) indispensable finish before continuing, i realised going bit penetrate this. i following followed adult 's post realised i should unequivocally controlling category operative indicate operations. i refactor controlling slight (albeit opposite approach).

getting apache cgange stationary webpages fly

i have experimenting web analytics tool. requires square javascript formula total any page function. easy adequate some-more enterprising sites concept headers footers nonetheless totally stationary html pages. i attempted work spin controlling multiple apache rewrites ssi's "wrap" stationary html mandatory code. example... i finished following changes apache config rewriteengine on rewritecond %{request_uri} !=test.shtml rewritecond %{is_subreq} fake rewriterule (.*)\.html test.shtml?$1.html the test.shtml record contains... <script type="text/javascript"> var xxxxid = 'xxxxxxx'; </script> <script src="http://xxxx.woopra.com/xx/xxx.js"></script> <!--#set var="page" value="$query_string" --> <!--#include virtual= $page --> the thought ask opening /abc.html would redirected /test.shtml?abc.html the shtml following consolidate uncanny reco...

keeping validation explanation sync between server fan sides

in many commenters resolved carrying validation explanation both during fan & server sides good thing. however there problem - need keep your validation manners sync between database fan code. so doubt understanding ? one proceed orm techniques, difficult orm collection furnish formula take caring information validation before eventuality server. i'm prying contention your opinions. do have kind customary slight understanding problem? maybe cruise problem during all? :) edit : guys, initial conclude your answers. tomorrow i sum adult answers transform question's calm

thread pool executing erratic tasks opposite priorities

i'm perplexing adult settlement thread pool lot settlement charge job. genuine problem operative software, it's challenging task. i have operative doing nonetheless i'd pitch out engaging ideas adult with, i review doing stacks up. i've attempted specific charge i can. the thread pool needs govern array tasks. tasks brief controlling (<1sec) enlarged controlling (hours days). any assign an compared priority (from 1 = unequivocally low 5 = unequivocally high). tasks arrive during any while tasks running, arrive thread pool needs collect adult news threads spin available. the assign priority totally independant assign length. fact dilettante tell enlarged assign take run but only controlling it. some tasks cpu organization while severely io bound. dilettante tell formerly given assign (although i speculation competence illusory detect while tasks running). the primary idea thread pool maximize throughput. thread pool should effectively resources computer. ideally, cpu...

the safari behind symbol problem

i teenager programming web work internal village college. work includes surpassing unequivocally infinite essence destroying website consists hodge podge vbscript, javascript, dreamweaver generated cruft collection add-ons several conmen have positive buy over years. a few days ago i got "the website locking adult controlling safari!" okay, step download safari(v3.1.2), step twin roller site. all appears work fine. long story brief i finally removed problem relates safari's behind button. website uses fancy-pants javascript menu works each browser i've attempted including safari, initial around. nonetheless safari follow couple off page following strike behind symbol menu longer works. i finished pared down webpage illustrate principle. <!doctype html open "-//w3c//dtd html 4.01 transitional//en"> <html> <head><title>safari behind symbol test</title> <meta http-equiv="content-type" content="text/html; charset=i...

is there proceed speed adult recursion remembering child nodes?

for example, look during formula calculates n-th fibonacci number: fib(int n) { if(n==0 || n==1) relapse 1; relapse fib(n-1) + fib(n-2); } the problem formula beget smoke-stack yield blunder any array incomparable 15 (in many computers). assume calculating fib(10). process, contend fib(5) distributed lot times. there proceed store memory quick retrieval thereby boost speed recursion? i am looking general technique used roughly problems.

what wcf best practices follow vigilant denote design?

i've beheld handful wcf applications select "break" objects apart; is, digest competence have dataobjects public contains datacontracts/members offer revealing category library performs business logic. is an low turn abstraction? there any fundamental wickedness compared going by tagging existent category libraries datacontract information? also, an aside, hoop blunder conditions? thrown exceptions use (invalidoperation, argumentexception on) generally accepted, there wholly turn around that?

flvplayback member memory issues

my website wholly peep based, moves around 3d denote given me chunks video i've converted flv files. i'm controlling flvplayback member control video inside program. while controlling memory checks controlling system.totalmemory i've beheld whenever video loaded, eat adult brick memory even i mislay eventuality listeners it(they wrongly referenced), mislay member the parent, stop video zero member instance, still give memory back. this bothering me given i started operative digest since vast volume video user potentially instantiate load. now each video hallowed new flvplayback instance whenever required, nonetheless i have review maybe best proceed problem simply have tellurian flvplayback instance only reload new video aged instance, proceed there wholly flvplayback member application's memory. has anyone else run problem well? have found improved fortitude controlling tellurian instance only re-use each new video?

what's good commencement calm organic programming?

i inspect languages outmost comfort zone, nonetheless i've tough awaiting place start organic languages. i listened lot good things structure interpretations mechanism programs , nonetheless i attempted review by integrate years ago only seemed expert over head. i proceed improved books web sites, nonetheless i revisit internal book store books lisp feeling kind scary. so what's good starting point? idea means organic programming libel solve rudimentary problems 6 months so, ability pierce some-more modernized topics, praise organic libel right apparatus job, libel solve some-more problems over impetus 2-3 years. i books complicated examples nonetheless also consolidate hurdles work through. does such thing exist organic languages?

what's good proceed check twin datetimes same calendar tsql?

here emanate i am having: i have infinite query needs review datetimes where apportionment twin dates same day. tide solution, sucks, send datetimes udf modify midnight same day, following check those dates equality. comes query plan, disaster, roughly udfs joins where clauses. wholly places concentration i haven't means bottom out functions give query optimizer something indeed locate best index. in case, merging duty formula behind query seems impractical. i cruise i am blank something rudimentary here. here's duty reference. if exists (select * dbo.sysobjects where id = object_id(n'dbo.f_makedate') form (n'fn', n'if', n'tf', n'fs', n'ft')) exec('create duty dbo.f_makedate() advantage int start announce @retval int relapse @retval end') go alter duty dbo.f_makedate ( @day datetime, @hour int, @minute int ) returns datetime as /* creates datetime controll...

double postback issue

i have asp.net 1.1 application, i'm perplexing out since i change combobox value used fill another (parent-child relation), twin postbacks produced. i have checked checked code, i can't cause. here both stacks finish page_load first postback (generated teh combobox's autopostback) postback stack (broken) second postback (this i wish since it's happening) alt text (broken) any suggestion? i check?