Posts

Showing posts from June, 2012

in **portable c**, launch management joining command's stdin launcher's stdout?

in c way (p1), launch boldly assembled management (and the arguments) reads the customary quarrel p1's customary output? note that: a slight stdout --> stdin piping also ok provided it portable opposing windows and linux. i can't c++, java, perl, ruby, python, etc here. also, have mingw dependency the windows build? reopened : doubt next answers linux, nonetheless doubt wants unstable method.

mac/windows switching

about 2 years ago i secluded windows home pc switched 100% linux (fedora, following ubuntu) - missus wasn't too happy nonetheless got used scholastic thing two. following 6 months ago i got myself glossy new macbook given relocating osx have never looked back; unfortunately i've successful removing employer buy me work (and i can't carrying cave behind forth) i have "put up" windows. i started out windows over 8 years ago i have unequivocally good bargain works have finished satisfactory share win32/mfc/.net development. my doubt is; else windows box during work (and have mac during home) cope - windows apps/configurations let work identical heed osx? - i only pondering cold i arrange keymapping app re-mapped windows keys osx variants (apple+w, apple+q, apple+left, apple+right, etc etc). i skip arrangement (topdesk good nonetheless free)... i skip probity finder... i skip good well-spoken dialogs windows shadows (yzshadow juuuuust cope) i skip underlying unix hori...

apache mod_rewrite domain turn cookie

i need understanding associate tracking the website. in the .htaccess have: rewritecond %{query_string} affiliate=(.*) rewriterule ^(.*)$ $1? [nc,r,l,co=affid:%1:%{http:host}:7200:/] which creates cookie called affid value url parameter affiliate. but cookie whole domain, i.e. going sets affid cookie value bmk .www.domain.com nonetheless i ti .domain.com used opposing the secure domain secure.domain.com any assistance appreciated cheers

virtual pc high cpu use problems

i run vpc 2007 perspective business laptop 4 gig ram. i vpc run windows xp say vs2003 web project. during initial all great. i indifferent vpc 512mb work usual. i also run resharper visible svn. lately, act scrolling page causes cpu spike above 50, infrequently circuitously 100. freezes accessory catchy frustrating. typing formula infrequently does same thing. i have experimented changing allocated memory, hoop space, bend on/off paging file, uninstalling resharper visible svn. there should reason thing delayed memory i have laptop! i don't have anything controlling nonetheless vpc during any time. i'm wondering i should only exercise vs2003 perspective accessory understanding any disfavour problems. any suggestions?

loading churned common libraries opposite versions

i have an executable linux loads libfoo.so.1 (that's soname ) the dependencies (via another common library). also links another component library, which, turn, links system version, libfoo.so.2 . result, both libfoo.so.1 libfoo.so.2 hallowed during execution, formula ostensible functions library chronicle 1 ends adult job (binary-incompatible) functions newer component library chronicle 2, since black stay same. outcome wholly smoke-stack superb unbroken segfault. now, library links opposing comparison chronicle closed-source third-party library, i can't control chronicle libfoo compiles against. presumption that, wholly choice left rebuilding garland component libraries now couple libfoo.so.2 couple libfoo.so.1 . is there any proceed prevaricate replacing component libraries wiith internal copies couple comparison libfoo ? i bucket both libraries have formula job repremand chronicle symbols? i need special symbol-level versioning?

sql server 2005: countermand opening sp_prepexec

i have sql server 2005 database pang close starvation since feeble operative applications controlling cursors by sp_prepexec. i suspect applications controlling cursor "forgotten" tie it. i countermand opening sp_prepexec specific users hinder close starvation occurring prolongation database. when i'm attempting following syntax: use master deny govern sp_prepexec applicationuser i have master since i don't: permissions server scoped catalog views component stored procedures extended stored procedures reputed wholly tide database master. but problem applicationuser user master database. i following error: cannot user 'applicationuser', since does exist have permission. if i supplement user master doesn't seem hinder applicationuser controlling sp_prepexec prolongation database. can somebody indicate me right instruction this?

exceptproc being called windows

i am now perplexing emanate an difference handler built windows use that, an unhandled exception, sends summary another program. i have built slight gotten communication working, nonetheless seems each way throws error, (i have lift formula force it.) windows catches instead handler isn't called. anyone explain i am doing wrong?. simplified formula explain: procedure unhandled(); begin lift exception.create('unhandled'); end; procedure exceptionhandler(exceptobject: tobject; exceptaddr: pointer); begin writeln('display: ' + exception(exceptobject).message); //send summary here end; i formula run it: writeln('starting'); exceptproc := @exceptionhandler; unhandled(); i design cost be: starting display: unhandled but does display: starting then windows advantage management prompt after 5 seconds. why isn't handler being morally called? p.s. i've controlling tests console app testing. edit: here's some-more informat...

how i "single-instance" an asp.net ajax web portal?

ive asked optionally single-instance the web portal. see same thought winforms app. suppose have 2 shortcuts same fan machine: clicking initial by-pass launch the web portal, record in, arrangement request foo. clicking second by-pass should arrangement request bar controlling instance web portal. my tide proceed this: page load, initial instance emanate per-client concentration variable. second instance looks concentration non-static portal controlling client. is, second url accessible another concentration non-static second instance forcibly exited. ive attempted formulating asp.net ajax timer check concentration non-static request display. arrange works. method respond fast second ask ive set timer pause 2 seconds. creates portal vitriolic since revisit postbacks. using approach, there proceed second instance report initial instance check concentration non-static but polling? there improved altogether proceed problem? thanks advance

how microsoft (and program companies infinite hallowed base) control patch dependencies?

os (usually security-based) rags hotfixes microsoft releases village customarily include of, understanding, array updated dlls binaries. how does microsoft, companies it, pledge that hotfixes don't strife any other? always accumulative patch approach, where unparalleled hotfix includes fixes before hotfixes? doesn't seem case, since hotfixes seem focused controlling specific problems. focused hotfixes, hinder hotfix trashing another (e.g. proud dlls being hallowed any other). i have always cool microsoft's ability control process. association i work many smaller, i worked patch slight few years ago, always went accumulative approach, where unparalleled patch immediately superseded before rags formed release. meant rags got gradually incomparable size, until unbroken "official" redeem came out. what good practices handling patch dependencies?

append newline flat-file schema biztalk 2006 r2

i have flat-file schema header fact records. looks something this: hdr**2401*xx0062484*22750***20081006000000*000******* lin**001*788-0538-001*4891-788538010*20000*ea**0000*** i need insert twin vacant lines during finish message. right now, i have churned annals i following output: hdr**2401*xx0062484*22750***20081006000000*000******* lin**001*788-0538-001*4891-788538010*20000*ea**0000*** hdr**2401*xx0062484*22750***20081006000000*000******* lin**001*788-0538-001*4891-788538010*20000*ea**0000*** what i wish occur something this: hdr**2401*xx0062484*22750***20081006000000*000******* lin**001*788-0538-001*4891-788538010*20000*ea**0000*** hdr**2401*xx0062484*22750***20081006000000*000******* lin**001*788-0538-001*4891-788538010*20000*ea**0000*** i build tradition tube member this, nonetheless i'm wondering there easier proceed removing i need?

what best proceed read, paint news map data?

Image
i am prying minute uncomplicated navigation concentration pet project. after poison around giveaway map-data i have staid 2007 line/shapefile map data. information separate adult zip files sole counties i've downloaded unparalleled counties map-data area. what best proceed review map-data useable format? how should i: read files parse - unchanging countenance library already parse shapefiles? load information concentration - should i bucket points directly datastructure memory? little database? i have need attention once tie concentration map data. user bucket shapefile again. what best proceed news map once i have review shapefile data? ideally i'd means review counties map information shapefile news poly-lines onto shade grant rotating scaling. how should i: convert lat/lon points shade coordinates? - distant i know shapefile uses longitude embodiment the points. apparently i'm going have modify somehow shade coordinates arrangement map features. render map info...

forcing google analytics tracking formula sleep

to google analytics, put javascript formula your web page an asynchronous ask google page loads. from i have read, shouldn't retard delayed down page bucket times consolidate directly before finish your html body. establish this, i wish ask after generation time. user should means record site regardless takes ask google comes behind during (the tracking formula login page). there 'pagetracker._trackpageview()' duty google tracking code. where ask sent google? if so, should i only do: window.settimeout(pagetracker._trackpageview(), 5000); any assistance appreciated, generally have worked google analytics have same problem.

why ^*$ matches "127.0.0.1"

i don't understand, since does following unchanging expression: ^*$ match twine "127.0.0.1"? controlling regex.ismatch("127.0.0.1", "^*$"); using expresso, does match, also i expect. controlling countenance ^.*$ does review string, i also expect. technically, ^*$ should review commencement string/line any array times, followed finale string/line. seems * many treated .* what am i missing? edit: run following an instance problem. using system; using system.text.regularexpressions; namespace regexfubar { category program { stationary vacant main(string[] args) { console.writeline(regex.ismatch("127.0.0.1", "^*$")); console.read(); } } } i wish have ^*$ review string, i am wondering since does review it. i cruise countenance should outcome an difference being thrown, during slightest non-match. edit2: to pristine adult any confusion. i regex idea carrying review "127.0...

emacs lisp: supplement folder the initial turn sub-folders load-path

if i have folder structure set adult this: ~/projects emacs package1 package1-helpers package2 package2-helpers package2-more-helpers package3 package3-helpers how i supplement folders: ~/projects/emacs ~/projects/emacs/package1 ~/projects/emacs/package2 ~/projects/emacs/package3 ...to load-path .emacs file? i fundamentally need brief involuntary chronicle code: (add-to-list 'load-path "~/projects/emacs") (add-to-list 'load-path "~/projects/emacs/package1") (add-to-list 'load-path "~/projects/emacs/package2") (add-to-list 'load-path "~/projects/emacs/package3")

pdfcreator asp.net

has anyone managed pdfcreator controlling an asp.net 2.0 website ? on growth accessory visible studio webserver, works only glorious after following way : create com interop dll tlbimp reference dll write formula it however, i muster the exam server, fails miserably blunder : retrieving com category bureau member clsid {082391c9-8188-4364-b4fd-66a1524b2097} unsuccessful due following error: 80070005. description: an unhandled difference occurred during execution tide web request. greatfully hearing smoke-stack snippet some-more information blunder where originated code. exception details: system.unauthorizedaccessexception: retrieving com category bureau member clsid {082391c9-8188-4364-b4fd-66a1524b2097} unsuccessful due following error: 80070005. and i can't member dcomcnfg.msc. our server settlement : windows 2003 asp.net 2.0 ms business xp pdfcreator 0.9.0

winforms: happens values stored .resx files?

what happens name/value pairs stored inside form's resx file? collected binary i accumulate project? for sole project, i ability correct values manually but recompiling (app.config-style), there rudimentary proceed this? edit: seem removing question. doing winforms, set-up inside initializecomponents() depends form's apparatus file, simply sourroundings build movement duplicate always calm form calm breaks form. i am certain there rudimentary solution, nonetheless carrying worked apparatus files before am confused be.

why predicate<> sealed?

i wanted get category predicate<imyinterface>, nonetheless appears predicate<> sealed. box i wanted simply relapse inverted (!) outcome designated function. i have ways accomplish goal. doubt competence ms designers have pondering last sign predicate<>? without many guess i came adult with: (a) simplified testing, only vs cost trade off (b) "no good" deriving predicate<> what think? update: there n predicates boldly total list predicates during an initialization phase. any jointly proud (if abc added, notabc can't added). i celebrated settlement looks like: bool happy(imyinterface i) {...} bool nothappy(imyinterface i) { relapse !happy(i); } bool hungry(imyinterface i) {...} bool nothungry(imyinterface i) { relapse !hungry(i); } bool busy(imyinterface i) {...} bool notbusy(imyinterface i) { relapse !busy(i); } bool smart(imyinterface i) {...} bool notsmart(imyinterface i) {...} //not simply !smart its i can't solve problem, the i awe since i co...

is formula injection bad?

there sincerely comprehensive collection formula injection. as distant i know this, collection inject possess formula programs. thought sounds dangerous me seems have appetite ideally quick program frail "buggy". also seems poise confidence risks. should collection avoided fortitude confidence reasons?

what smallest extjs package?

does anyone know unprotected smallest files mandatory ext js 2.2? i know extjs site underline little chronicle extjs (ext.js) deputy ext-all.js nonetheless that's minimizing distance extjs client. i'm prying minimizing what's server. now sdk comes following subdirectories: ext-2.2/ adapter air build docs examples resources source i cruise the graceful stable mislay examples, docs, air. however, there things mislay smaller there apparatus (besides infinite javascript source formula corpus) papers smallest mandatory files?

in perl, i slight quarrel shortly arrives, instead sharp newline?

i'd run subcommand perl (or summons perl script) have book slight command's cost immediately, rather sharp timeout, newline, certain array blocks. example, let's contend i wish approximate any brick quarrel retard brackets. i run book this: $ ( relate -n foo ; snooze 5 ; relate -n bar ; snooze 5; relate baz) | my_script.pl i'd cost this, any line appearing 5 seconds after before one: [foo] [bar] [baz] how i that? this works, nonetheless unequivocally ugly: #! /usr/bin/perl -w use strict; use fcntl; my $flags = ''; fcntl(stdin, f_getfl, $flags); $flags |= o_nonblock; fcntl(stdin, f_setfl, $flags); my $rin = ''; vec($rin,fileno(stdin),1) = 1; my $rout; while (1) { select($rout=$rin, undef, undef, undef); final eof(); $buffer = ''; while (my $c = getc()) { $buffer .= $c; } imitation "[$buffer]\n"; } is there some-more glorious proceed it?

how c# events work behind scenes?

i'm controlling c#, .net 3.5. i know exercise events, announce class, offshoot somewhere else, etc. constructed example: public category mylist { private list<string> m_strings = new list<string>(); open eventhandler<eventargs> elementaddedevent; open vacant add(string value) { m_strings.add(value); (elementaddedevent != null) elementaddedevent(value, eventargs.empty); } } [testclass] public category testmylist { private bool m_fired = false; [testmethod] open vacant testevents() { mylist tmp = new mylist(); tmp.elementaddedevent += new eventhandler<eventargs>(fired); tmp.add("test"); assert.istrue(m_fired); } private vacant fired(object sender, eventargs args) { m_fired = true; } } however, i not understand, declares an eventuality handler public eventhandler<eventargs> elementaddedevent; it's never initialized - wha...

what border length certified window.returnvalue property? (javascript)

is there border length controlling window.returnvalue (variant) modal? i am job modal window controlling showmodaldialog() returning comma delimited string. after selecting organisation users, i am putting stringbuilder arrangement literal. dim strreturn new stringbuilder strreturn.append("<script type=""text/javascript"">window.returnvalue='") dim strusers new stringbuilder for any dtrow datarow getselectedusertable.rows strusers.tostring.length > 0 then strusers.append(",") finish if strusers.append(dtrow("userid")) next strreturn.append(strusers.tostring) strreturn.append("';window.close();</script>") litreturnjavascript.text = strreturn.tostring so there border characters total window.returnvalue?

using django-rest-interface

i have django concentration i'd supplement rest interfaces to. i've seen nonetheless seems graceful simplistic. instance doesn't seem have proceed enforcing security. i confining perspective manipulate by rest interface? customarily i'd put kind explanation views. right place should i relocating some-more explanation down model? otherwise there improved library out there i need play own?

ole fan sdi. i supplement toolbar?

i have an sdi i'm loading comparison controlling ole. i wish supplement toolbar i have unequivocally renowned clear "import" symbol (and few others). toolbars i supplement by mfc dark differently private interface comparison becomes active. there proceed keep toolbar adult interface comparison ole vigilant becomes active? i've attempted job floatcontrolbar after comparison ole vigilant initialized, nonetheless effect. i guess rambling menu (which does sojourn act normally) toolbar, nonetheless need docked left side (requirement) have large, manifest distinguished depiction management ... i haven't found proceed that. cmenu category allows graphical menu items, nonetheless i haven't speckled proceed many menu management itself (other the commandid summary table).

how i cost arrangement adult messages mirror blunder list visible studio 2005?

i have header record this: #ifndef __gen_note_markers_to_developers_hpp__ #define __gen_note_markers_to_developers_hpp__ #ifdef _debug // macros bend array string #define string2(x) #x #define string(x) string2(x) #ifdef triage_mesg_as_warning #define triage_todo_tag(description) __pragma(message(__file__"("string(__line__)") : warning : triage to-do: " string(description) )) #define triage_fixthis_tag(description) __pragma(message(__file__"("string(__line__)") : warning : triage fixthis: " string(description) )) #else #define triage_todo_tag(description) __pragma(message(__file__"("string(__line__)") : summary : triage to-do: " string(description) )) #define triage_fixthis_tag(description) __pragma(message(__file__"("string(__line__)") : summary : triage fixthis: " string(description) )) #endif #else #define triage_todo_tag(description) #d...

attaching .net debugger while still providing useful logging death

i have kind catch-all exceptions apparatus bottom code, an app terminates astonishing i still yield useful logging. something along lines of static vacant sure () { (debugger.isattached) runapp(); else { try { runapp(); } locate (exception e) { logexception(e); throw; } } } while works fine, problem i wish insert debugger after difference raised. since difference escapes runtime, windows prompt insert visible studio, except, given rethrown, locals parameters offer adult smoke-stack have lost. is there anyway record exceptions, while still providing proceed insert debugger keep useful information?

installing sqlserver 2005 demonstrate controlling installshield formulating unparalleled named instance

i'm controlling installshield 2008 demonstrate emanate an designation package. concentration relies sql server 2005 demonstrate edition. i know i am means check "microsoft sql server 2005 express" exigency underneath redistributables tab. however, leaves designation wholly hands finish user, he/she chooses defaults proceed through, finish adult designation named instance sqlexpress. during unequivocally least, i'd have designation ensue mycompany named instance default. how i accomplish this? do i have stand some-more comprehensive chronicle installshield?

sql server 2005 - restoring an encrypted db opposite server

i have corroborated adult an encrypted db (symmetric key/certificate) restored opposite server. unfortuantely we're carrying problems decryption... anticipating someone help. in easy db, i symmetric pivotal certificate ssms, nonetheless i try open pivotal controlling cert ( open symmetric key keya decryption certificate certb )i following very descriptive error: msg 15466, turn 16, state 1, line 1 an blunder occurred during decryption. any ideas? thanks advance.

install [java library] eclipse

i only downloaded obscure several hours ago, indispensable supplement java3d classpath. installing went but hitch, nonetheless obscure can't seem support folders give super-ide functionality, such autocomplete slight signatures. while i know i supplement individually, lead me question; "correct" proceed exercise java library eclipse? there special office format i should follow? there plugin already me? (the answer , nonetheless i don't know it, presumably it's appropriate). thanks! edit 1: seems me someone down-voted question. competence i ask why? edit 2: after monkeying around jars, seems manually sourroundings doc route any jar library seems least-error likely way.

toggle css ability nested elements

without controlling javascript, there proceed css ability toggle off by nested elements. the problem i'm perplexing solve i have array tags classes calm italic ( <em> , <blockquote> , <cite> , <q> , <dfn> , classes), inside another these, italicisation needs toggle. <blockquote> male said, <q>that's <cite>catcher rye</cite>, dear fellow!</q>, trust that?! </blockquote> should news as: and male said, "that's catcher rye , dear fellow!" , trust that?! the css i've got removing bit messy: q, em, dfn, cite, blockquote { font-style: italic; } q q, q em, q dfn, q cite, em q, em em, em dfn, em cite, dfn q, dfn em, dfn dfn, dfn cite, cite q, move em, move dfn, move cite, blockquote q, blockquote em, blockquote dfn, blockquote move { font-style: normal; } ...and i'm graceful certain won't even work past turn nesting (as example). is there proceed i but have list each unfamiliar...

how modify tasklist's cpu cpu % usage?

i'm perplexing tasklist out slight radical some-more x percent cpu (to after kill taskkill .) how i know percent format represents? the documentations says: tasklist options /fi filter and filter competence be: cputime eq, ne, gt, lt, ge, le cpu format: hh:mm:ss. hh - array hours, mm - minutes, ss - seconds if i try tasklist /fi "cputime gt 00:00:10" it works. but i tasklist /fi "cputime gt 90" it doesn't. how i know format paint 90%? 80%? what's charge between cpu use cpu use percent?

why charge references act python inheritance?

the following seems strange.. basically, somedata charge seems common between classes hereditary the_base_class . class the_base_class: somedata = {} somedata['was_false_in_base'] = false class subclassthing(the_base_class): def __init__(self): imitation self.somedata first = subclassthing() {'was_false_in_base': false} first.somedata['was_false_in_base'] = true second = subclassthing() {'was_false_in_base': true} >>> del first >>> del second >>> third = subclassthing() {'was_false_in_base': true} defining self.somedata __init__ duty apparently repremand proceed around (so any category it's possess somedata dict) - nonetheless such function desirable?

how i format microsoft json date?

i'm holding initial impulse during jquery. i'm removing information onto page, nonetheless i'm carrying problem json information returned date information types. basically, i'm removing twine behind looks this: /date(1224043200000)/ from someone totally new json - i format brief date format? should burnished somewhere jquery code? i've attempted jquery.ui.datepicker plugin controlling $.datepicker.formatdate() but any success. fyi: here's fortitude i came adult controlling multiple answers here: function getmismatch(id) { $.getjson("main.aspx?callback=getmismatch", { mismatchid: id }, duty (result) { $("#authmerchid").text(result.authorizationmerchantid); $("#sttlmerchid").text(result.settlementmerchantid); $("#createdate").text(formatjsondate(date(result.appenddts))); $("#expiredate").text(formatjsondate(date(result.expiresdts))); $("#lastupdate").text(formatj...

how i exercise an castle plcae bar (bread particle control) identical windows vista's record explorer?

the path-finder control windows perspective unequivocally permitted i means incorporate an concentration combined wpf. i've amateurish stock control biased framework. concentration being personally grown windows perspective therefore, carrying same feeling feel os desirable. one , nonetheless problem that looks zero vista's sticks out crush thumb. any thoughts good doing many helpful . i stay divided third jubilee components possible, nonetheless am unequivocally open suggestions.

link_to_remote contra render

is illusory reload page hallowed thru link_to_remote? i'm doing controller: def create captchas_verified do_something else news :action=>'new' end but captchas wrong, news form inside new template. way, webserver log, shows templades rendered. thanks! updated: now i altered news to: render(:update) { |page| page.call 'location.reload' } but creates me transform page called link_to_remote page uninterrupted thru link_to_remote updated 2: i bound using page.replace_html "mydiv", :partial => "new" instead page.call 'location.reload'

any trust salvation system?

my new trainer went debate where deliverance, kind surrogate permitting supplement skin any html cost fly, presented. solid right after that, matter immature is. more here : in theory, component sounds good wish newbie tweak your plone thesis but carrying learn challenging mechanisms behind zope products. ask same thesis drupal web site row. but i don't trust theory, know anybody attempted out genuine universe :-)

how transform calm ntext domain sql server 2000

so i need transform calm field. conjunction transform matter writetext matter work used below create list mytable (idfield int, myfield text) insert mytable (idfield) name 1 declare @data1 varchar(8000), @data2 varchar(8000), @ptrval binary(16) select @data1 = replicate('1',8000) select @data2 = replicate('2',8000) -- sets myfield twine wholly 8000 characters update mytable set myfield = @data1 + @data2 where idfield = 1 select @ptrval = textptr(myfield ) from mytable where idfield = 1 -- causes an error: crude syntax circuitously '+'. --writetext mytable.myfield @ptrval @data1 + @data2 how am i ostensible internal variables can't form text? (if i ssql server 2005 i varchar(max) - nonetheless i don't)

how spring.net origination life easier?

"spring.net an open source concentration horizon creates building craving .net applications easier." they contend open creates .net growth easier. following i authority enlarged anything. and following i puzzling smoke-stack snippet errors i run digest spring. open origination life easier, all hard? edit: errors i run project, i accumulate i initial wrote. i know craving applications need some-more challenging frameworks normal applications. nonetheless shouldn't difficult even case. i mean, i wish logic, i shouldn't need by lots stuff. edit: i don't have choice nonetheless spring, i start controlling an existent digest it.

can have jsf tradition components opposite osgi bundles?

has anyone used osgi jsf together? i ask since jsf uses class-loader incantation tradition components. educational (emphasis mine): this settlement record finish up being meta-inf/faces-config.xml the .jar record represents this component. jsf feeling such a record name any .jar files hallowed during runtime (in the web-inf/lib office .war files) any its configuration. way, multiple member .jar files combined web application, of components described any .jar accessible application. i means have jsf tradition components osgi bundles (i.e. tradition components opposite osgi bundles jsf runtime) jsf means during runtime. has anyone finished anything similar?

is illusory review wholly initial line record actionscript?

i've got php-based site where grant users upload comma-separated calm record information alien server side scripts. however, infrequently need adjust buttress method information uploaded, immensely useful brand columns csv record before upload takes place. the wholly proceed i cruise opening internal record i/o java plugin an embedded peep script, i'd many move latter. there any proceed peep name calm record internal tough drive, following actionscript inspect only initial line (which corresponds buttress headings, example)? sometimes files >100 mb, loading whole thing memory following throwing out nonetheless initial line substantially wouldn't work efficiently, i'm wondering there's syntax actionscript border volume information review during time.

crystal reports 11 : vacant domain bombs report

i'm formulating check clear news specialist mas 500 ar module. it, i'm attempting supplement tarinvoice.balance domain following formula: if {tarprintinvchdrwrk.posted} = 1 following totext({tarinvoice.balance}) i'm presumption {tarprintinvchdrwrk.posted} = 1 saving matter binds false, doesn't try lift check domain since i mislay law report, form displays justly but it. when saving matter renders loyal report, change fields behaves correctly. however, law renders fake cr form, whole clear news bombs displays blank. any ideas since i'm doing wrong? just attempted sourroundings all 0 news still bombs. i'm starting cruise the some-more query blunder report. i wish there proceed bar domain query posted = 0. with tarinvoice.balance private posted = 0, news works fine. with tarinvoice.balance enclosed posted = 1, news works fine. with tarinvoice.balance enclosed posted =0, news bombs.

perl & mod_fcgid- i certain it's working?

i have integrate perl scripts i'm holding open soon, i wish certain they'll run underneath mod fcgid method keep server bucket low possible. previously, i've wholly ever run scripts exam fastcgi (ie, while ( $q = new cgi::fast ) { $count++; relate $count;}) taken advantage incomparable perl packages (like movabletype) explain run fcgi enlarged set adult apache & fastcgi/mod fcgid morally change record appendix ".fcgi". so, here's question: i need anything besides change record appendix scripts, so, what?

is there rudimentary proceed modify c++ enum string?

suppose have named enums: enum myenum { foo, bar = 0x50 }; what i googled book (any language) scans headers digest generates header duty per enum. char* enum_to_string(myenum t); and doing something this: char* enum_to_string(myenum t){ switch(t){ box foo: relapse "foo"; box bar: relapse "bar"; default: relapse "invalid enum"; } } the gotcha unequivocally typedefed enums, unnamed c impression enums. does anybody know something this? edit: fortitude should cgange source, solely generated functions. enums an api, controlling solutions due until only an option.

cooliris attractive google docs:

we're formulating communication settlement pattern website class. we've controlling google docs emanate patterns list during classes, pity dispense evaluation. so sourroundings this: we've means fetch unparalleled settlement any display wish display, such as: we've combined an rss feed cooliris open: (small instance it): <.item> <.title>e7_pattern_7.78<./title> <.link>http://docs.google.com/file?id=dd2dpzk6_164zcwm3jgv_b<./link> <.guid>dd2dpzk6_164zcwm3jgv_b<./guid> <.media:thumbnail url="http://docs.google.com/file?id=dd2dpzk6_164zcwm3jgv_b" /> <.media:content url="http://docs.google.com/file?id=dd2dpzk6_164zcwm3jgv_b" type="image/png" /> <./item> sorry points center add-on wholly filter it. so problem following, rss works correctly, cooliris opens viewports images. nonetheless both thumbnail calm sojourn black pictures. if try open above url download them, type="image/png...

random opening record java

i have following fields: inventory control (16 byte record) product id formula (int 4 bytes) quantity batch (int 4 bytes) price (double 8 bytes) how i emanate bound length futile opening record controlling above lengths? i attempted examples online, nonetheless i presumably an eof difference futile castle values i try opening them. i attempted some-more examples couldn't know visualisation unequivocally well. i'm perplexing digest try try some-more it. here instance data. there competence holes information where no. stock 23 == 023 . quantity id. no. batch price ------- -------- ------ 1001 476 $28.35 1002 240 $32.56 1003 517 $51.27 1004 284 $23.75 1005 165 $32.25 thanks help.

need distributed key-value lookup system

i need proceed key-value lookups opposing (potentially) hundreds gb data. ideally something formed distributed hashtable, works simply java. should fault-tolerant, open source. the store should persistent, nonetheless ideally cache information memory speed things up. it should means support indicate reads writes churned machines (reads 100x some-more common though). fundamentally purpose discerning initial lookup user metadata web-service. can anyone advise anything?

proxy choices: mod_proxy_balancer, nginx + surrogate balancer, haproxy?

we're controlling rails site during , dedicated accelerator. now have apache setup mod-proxy-balancer, proxying 4 mongrels controlling application. some requests rather delayed method hinder conditions where requests queued adult behind them, we're deliberation options proxying proceed requests an idle dog there one. options seem include: recompiling mod_proxy_balancer apache described during compiling nginx satisfactory surrogate balancer solaris compiling haproxy open solaris (although competence work good smf) are reasonable options? have missed anything obvious? we'd unequivocally beholden your advice.

wpf contracting stringformat doesn't work tooltips

the following formula rudimentary contracting binds calm textblock named mytextblock textbox's calm tooltip ability controlling accurate same contracting notation: <stackpanel> <textblock x:name="mytextblock">foo bar</textblock> <textbox text="{binding elementname=mytextblock, path=text, stringformat='it is: \{0\}'}" tooltip="{binding elementname=mytextblock, path=text, stringformat='it is: \{0\}'}" /> </stackpanel> the contracting also uses operative glorious above calm ability nonetheless seems damaged tooltip. approaching outcome "it is: foo bar" nonetheless float over textbox, tooltip shows wholly contracting value, twine formatted value. any ideas?

what best proceed evade python strings php?

i have php concentration needs cost python script, some-more personally garland non-static assignment statements, eg. subject_prefix = 'this twine user input' msg_footer = """this too.""" the essence subject_prefix et al need combined take user input; such, i need evade essence strings. minute something following isn't going cut it; we're pressed shortly someone uses quote newline anything else i'm wakeful hazardous: echo "subject_prefix = '".$subject_prefix."'\n"; so. any ideas? (rewriting app python isn't illusory due constraints. :p ) edit, years later: this formation between web-app (written php) mailman (written python). i couldn't cgange exercise latter, i indispensable adult proceed pronounce the libel control the configuration. this also really bad idea.

what's best proceed memcache single-server app?

for single-server light site (which wholly underneath definitely high load), best proceed memcache? does clarity run memcache daemon same server application, only going take essential memory divided mysql, giving net opening loss. does even clarity memcache scenario- best fortitude always have dedicated servers memcache? i conclude profiling site before after mandatory unequivocally answer question, nonetheless i rather during theatre live site. generally someone out there definitely knows answer off tip head.

possible spin dependency emanate php application

i'm experiencing i trust spin dependency emanate php application. greatfully let me know incorrect. here situation: two classes, logmanager dbsession. dbsession used correlate database, logmanager used record files. both widely used application. emanate an instance dbsession, contingency give an instance logmanager around constructor parameter. since dbsession infrequently record information file, logmanager instance this. now, i wanted extend logmanager also record database table, rather calm file. naturally, benefit re-use existent classes, nonetheless i shortly satisfied brought an engaging situation. dbsession already requires an instance logmanager construction. i wish re-use dbsession category logmanager, need an instance dbsession. i infer both demands? clearly, something contingency wrong approach. how advise i repair this? thanks advance, guys.

python formula method doubt : eggs + packages + buildout + section tests + svn

i have several python projects share common modules. until now, i've ... ahem ... retaining churned copies common formula synchronizing hand. nonetheless i'd clearly move something else. it looks me now, zc.buildout maybe i need. i speculation i should doing putting any reusable member component removed egg, following controlling buildout arrange projects. i'm also pondering any sole module, i should put unit-tests removed package egg, i'm also installing copies component's unit-tests each project. i wholly wish unit-test place where library developed, where it's only being used. so maybe i wish something this projects lib1 tests code lib2 tests code app1 tests appcode app2 tests appcode etc. where both app1 app2 individualist applications possess formula tests, nonetheless also including controlling both lib1 lib2. lib1/test, lib1/code, lib2/test, lib2code, app1, app2 removed eggs. does sound right? however, i confused. ...

php's json_decode firefox's javascript compatibility

it appears have something like var my_var = {"foo" : "bar"}; in javascript (with firefox during least) post php server accept twine like {foo:"bar",} on server side. nonetheless json_decode php doesn't trailing ',' miss quotes around 'foo'. there good proceed purify adult viewed json string? the json vigilant sent drupal way json services. edit: doubt closed. badly shaped json due badly combined js drupal module

is illusory set default value deserializing xml c# (.net 3.5)?

i've got small problem that's rather frustrating. illusory set default value deserializing xml c# (.net 3.5)? fundamentally i'm perplexing deserialize xml underneath control component looks this: <assignee-id type="integer">38628</assignee-id> it also feeling this: <assignee-id type="integer" nil="true"></assignee-id> now, category i have following ability should accept data: [xmlelementattribute("assignee-id")] public int assigneeid { get; set; } this works glorious initial xml component example, nonetheless second fails. i've attempted changing ability form int? nonetheless doesn't help. i'll need serialize behind same xml format during indicate too, nonetheless i'm perplexing built serialization support but carrying review rolling own. does anyone have trust kind problem?

weird positioning intrepidity controlling asp.net, css, vs 2008, ie7

i am operative webpage asp.net/c# uses comprehensive positioning textbox, several fact. operative only fine, until i total some-more calm boxes. is, existent calm boxes still positioned correctly, nonetheless new ones not, notwithstanding fact i combined new styles css only others. an exampe below: .piecebox { position: absolute; top: 425px; left: 133px; background-color: white; color: black; width: 132px; font-weight: bold; text-align: center; } identical styles same css record (with opposite names course) both above next work fine. i have checked, double-checked, triple-checked name impression cssclass charge correct. however, matter i do, including giving new name, duplicating aged entries, renaming them, etc., 3 new calm boxes position themselves during tip page, since others arrangement repremand comprehensive positions. i looked during aspx source page finished certain div, etc. i am during wits finish it. i adult workaround now, nonetheless i...

how i git-svn sole svn bend remote repository?

a warning: i'm n00b git general. organisation uses underline branches svn , i'd git-svn lane work sole underline branch. i've (roughly) following set adult internal git repo, nonetheless those instructions seem have led git collect svn bend altered many recently remote repository; problem that's bend i caring about. i control bend git-svn uses? am i opening totally wrong? update: i -t , -b , -t options (in box since svn repo churned projects, nonetheless i wish git repo enclose wholly digest i'm operative on).

why erlang crashing infinite sequences?

i have only started training erlang am perplexing out digest euler problems started. however, i seem means any operations infinite sequences but crashing erlang shell. ie.,even this: list:seq(1,64000000). crashes erlang, error: eheap_alloc: can't distribute 467078560 bytes memory (of form "heap"). actually # bytes varies course. now half gig lot memory, nonetheless component 4 gigs propel excess space practical memory should means hoop it. is there proceed let erlang some-more memory?

is illusory raze an array the elements upheld slight params keyword?

take non-compiling formula instance: public twine getpath(string basefolder, string[] extrafolders) { twine chronicle = versioner.getbuildanddotnetversions(); twine callingmodule = stackcrawler.getcallingmodulename(); relapse appendfolders(basefolder, version, callingmodule, extrafolders); } private twine appendfolders(params string[] folders) { twine outstring = folders[0]; (int i = 1; i < folders.length; i++) { twine fixedpath = folders[i][0] == '\\' ? folders[i].substring(1) : folders[i]; path.combine(outstring, fixedpath); } relapse outstring; } this instance rather simplified chronicle contrast formula i am using. please, i am wholly prying solutions carrying directly param keyword. i know lists identical things work. is there proceed "explode" extrafolders array it's essence upheld appendfolders along parameters?

.net enterprising objects reflection

how i establish nullable(of enum) indeed an enum means reflection? i'm operative slight boldly populates an vigilant form t an idatareader retrieved database call. during the essence, loops by datareader's ordinals, properties t populates properties review name ordinals (also charge incantation thrown change buttress names). each circumstance, works great, nonetheless i check property's basetype system.enum i instead, system.valuetype thusly, enum check fails slight bombs. [edit: type.isenum doesn't work i need it. sure emanate here, zero t 's basetype hierarchy says an enum . it's origination nullable form forfeits enum rights.] any ideas?

in django i report progenitor child saved unfamiliar pivotal relationship?

i have following twin models: class activity(models.model): name = models.charfield(max_length=50, help_text='some help.') entity = models.foreignkey(cancellationentity) ... class cancellation(models.model): activity = models.foreignkey(activity) date = models.datefield(default=datetime.now().date()) outline = models.charfield(max_length=250) ... i activity denote wakeful termination associated saved (both extrinsic updated). what best proceed this?

what many efficient/elegant proceed parse boring list tree?

assume have boring list stores an systematic tree hierarchy: id name parentid order 1 'node 1' 0 10 2 'node 1.1' 1 10 3 'node 2' 0 20 4 'node 1.1.1' 2 10 5 'node 2.1' 3 10 6 'node 1.2' 1 20 here's diagram, where have [id] name . bottom node 0 fictional. [0] root / \ [1] node 1 [3] node 2 / \ \ [2] node 1.1 [6] node 1.2 [5] node 2.1 / [4] node 1.1.1 what minimalistic proceed cost html (or text, matter) justly ordered, justly indented tree? assume offer wholly have simple information structures (arrays hashmaps), imagination objects parent/children references, orm, framework, only your twin hands. list represented outcome set, accessed randomly. pseudo formula plain english okay...

polymorphism vs estate (example problem case)

i am still perplexing hang conduct around settlement patterns second i'm opening adult opposing same problem seems great out settlement solution. i have an accounts component churned comment types. have restaurant, hotel, service_provider, consumer comment types. im certain there some-more business comment forms future, impetus there's tellurian executive account. so i'm wondering exercise switching comment types. eg. any comment have some-more profiles, nonetheless form opposite depending comment type. kind category family should i here understanding churned forms comment - polymorphism inheritance? it seems maybe there should an summary bottom form category profiles should extend, nonetheless i'm certain exercise (eg join list between form forms comment types?). it also feels an event exercise bureau pattern, i'm only certain unequivocally it. any ideas please? * * edited yield examples suggested: account -> hasmany -> users account -> belongsto -> a...

easiest proceed front weblogic 9.2 apache 2.x

i wish put apache 2.2.9 front weblogic 9.2 server windows xp. does take ? i substantially need mod_proxy apache side ? as distant weblogic apache concerned, there something identical mod_jk ? i setup i broach filtering after on. nonetheless now, idea grant computers opening weblogic appserver apache forwards requests opening (at certain url) weblogic. i have finished several times surpassing nonetheless have misplaced i it. thanks any pointers, i speculation answers many simple fundas. transform forum i have some-more inputs.

nfs server java

i hunt an doing network (or distributed) record component nfs java. idea extend investigate things it. web i found doing e.g. , nonetheless open doubt mature quick are. can anyone purpose good starting point, anyone trust such things? p.s. i know hadoop dfs i used projects, nonetheless hadoop good fit things i wish here. --edit-- hadoop unequivocally focused rarely scalable, high throughput computing but possibilities overwrite tools record an. idea filesystem e.g. user home directories. --edit-- more details: thought cgange such doing files stored directly internal filesystem, nonetheless ask information de-duplication.

offline web application: success stories, tips resources

we @ pondering origination the web concentration offline-capable . the sure idea keep simple functionality running internet connection goes down . so, i'd hear success stories , tips resources yours genuine practice domain (related not).

does nusoap have configured certain proceed job wcf?

i'm perplexing php webservice controlling wcf. i googled open php services i replicate blunder i receiving i combined 2 opposite section tests demonstrate. the exam unsuccessful i following error: system.servicemodel.protocolexception: calm form text/xml; charset=iso-8859-1 response summary does review calm form contracting (text/xml; charset=utf-8). controlling tradition encoder, certain iscontenttypesupported slight implemented properly. initial 601 bytes response were: ' here section tests: [testmethod] public vacant wcf_call_to_siteinspect() { //this use doesn't work. gets same communication blunder the possess servers var soapclien = new siteinspect.siteinspectportclient(); var response = soapclien.dositeinspect("any", "any", "www.google.com"); assert.istrue(response.servertime.length > 0); } [testmethod] public vacant wcf_call_to_finnservice() { //this use works.... looking during wsdl appears references removed wsd...

tools arise wpf silverlight applications

list out collection utilities arise abounding interactive concentration microsoft platform the recommendations should have arrange proceed charge presumably xaml silverlight/wpf common .net utilities. brew - xaml development settlement - distinguished item creation , cold permitted xaml editor wpf apparatus wpf visible tree debugger blender 3d displaying silverlight - suggested @ adobe illustrator xaml trade zam 3d - 3d model/animation authoring tool; also translates 3ds max files xaml suggested @ some associated questions: - list associated tools

is iterator initialization inside loop deliberate bad style, why?

typically stl formula this: for (someclass::somecontainer::iterator iter = m_somemembercontainervar.begin(); iter != m_somemembercontainervar.end(); ++iter) { } but indeed have recommendation this: someclass::somecontainer::iterator iter = m_somemembercontainervar.begin(); someclass::somecontainer::iterator iterend = m_somemembercontainervar.end(); for (; iter != iterend; ++iter) { } if you're nervous scoping, supplement enclosing braces: { someclass::somecontainer::iterator iter = m_somemembercontainervar.begin(); someclass::somecontainer::iterator iterend = m_somemembercontainervar.end(); (; iter != iterend; ++iter) { } } this ostensible give speed potency gain, generally programming consoles, since .end() duty called any iteration loop. i only take opening alleviation granted, sounds reasonable nonetheless i don't know many definitely depends form enclosing tangible stl doing use. nonetheless carrying used impression integrate months i indeed move over in...

how i supplement an additional source office used maven-jxr-plugin?

i'm controlling build-helper-maven-plugin supplement build, nonetheless i'd like xref source additional source office well. fyi: - jxr plugin produces cross-reference project's sources. generated reports easier user anxiety specific lines code. also permitted used pmd plugin referencing errors found code. - plugin contains several little individualist goals support maven build lifecycle.

how stop comparison call giveaway workbook?

i have readonly comparison workbook containing vba application. concentration saves any information needs saved database, workbook always closed but saving (by sourroundings thisworkbook.saved = loyal beforeclose). i have following problem: user double-clicks workbook windows explorer, workbook opens. user double-clicks second workbook windows explorer. excel prompts: "myworkbook.xls already open. reopening means any changes finished discarded. wish giveaway myworkbook.xls?" if user clicks "yes", workbook reopened without executing beforeclose eventuality handler instance already open . this problem application, since means vicious cleanup formula beforeclose eventuality handler does executed. can anyone advise vba fortitude this. be: suppressing prompt giveaway workbook. instead silently already-open instance. somehow beforeclose eventuality handler run uncanny instance before closed, i run cleanup code. update: this comparison 2003. i absolved neglected prom...

how i cope rounding errors doubles vb.net?

i'm perplexing change set banking values controlling vb.net. totals both values ban double. i'm removing rounding errors situations. what's best proceed prevaricate this? there form i benefit double? i spin following value twin decimal places? here's formula - i substantially don't need arrangement it, nonetheless only case. low ninvvalue double low ncreditvalue double any oreferenceitem omatchinvoices low nunallocated double = oreferenceitem.documentoutstandingvalue - oreferenceitem.documentallocatedvalue ((nunallocated <> 0) (sreferencevalue = oreferenceitem.instrumentno)) then icount = icount + 1 (oreferenceitem.isdebit) (nunallocated > 0) then ninvvalue = ninvvalue + nunallocated invoicelist.add(nunallocated.tostring("c"), oreferenceitem.urn.tostring) finish if (oreferenceitem.iscredit) (nunallocated < 0) then ncreditvalue = ncreditvalue - nunallocated ...

where javascript ask opening from?

i am debugging large, challenging web page lot javascript, jquery, ajax on. somewhere formula i am removing powder ask (i cruise an lifeless img) calls bottom server. i know html css am graceful positive somewhere javascript formula reqest being made, nonetheless i can't lane down. i am used controlling firebug, vs debugging collection nonetheless am looking proceed out where executed - i offending line among 150 .js files. apart putting gazzillion console outputs 'you here', does anyone have suggestions debugging apparatus rhythm where javascript requests outmost resources made? any ideas? step step debugging take ages - i have clever i step (jquery source - yuk!) i competence skip essential moment

building mfc automation instance (to opening comparison controlling ole automation). can't compile

i'm perplexing build instance described during method build an concentration programatically accesses comparison controlling automation. i have visible c++ 2005/visual studio 2005. instructions don't accurately review adult (classwizard, mostly), nonetheless whole thought seems same. problems: i don't finish adult an excel.h record after controlling "new class" emanate coupling classes. i can' t #include record specifies step 13. i excel.tlh an excel.tli windebug directory, nonetheless doesn't seem work. i attempted orders #include "stdafx.h" #include "debug/excel.tli" #include "debug/excel.tlh" ... including withdrawal those files out compile, nonetheless i still finish adult ton accumulate errors. here's tip 5 accumulate errors above #includes: 1>c:\users\sniles\documents\visual studio 2005\source10\testole\testole\debug\excel.tli(14) : blunder c2653: 'adjustments' : category namespace name 1>c:\user...

converting registry opening db calls mfc underline pack

we competence start converting an aged vs2003 mfc digest imagination new comforts presumption mfc underline container vs2008. several new ui controls unequivocally good solely thing - automatically save information registry. i don't have problem registry, nonetheless churned environments users out way from, it's many easier save user information database. so, i'm anticipating there sure "access registry" duty overloaded indicate database. nonetheless brief review hasn't incited adult anything. anyone else any success doing something similar?

making ajax updated div blur in

i have formula performs an ajax loads law twin register divs each dropdown changed. i wish law faded div, give some-more apparent denote something changed, the seamless the infrequently tough notice change! print("$('.ajaxdropdown').change(function(){ $.ajax({ type: "get", url: "/includes/html/gsm-tariff.php", data: "c_name="+escape($(this).val()), success: function(html){ $("#charges-gsm").html(html); //i wish blur outcome 2 divs... $("#charges-gsm-faq").html(html); $("#charges-gsm-prices").html(html); } }); });"); i've attempted appending fadein slight few things, nonetheless joy.

uppercase initial twin characters buttress db table

i've got buttress database list (sql server 2005) contains information this: tq7394 sz910284 t r1534 su8472 i transform buttress initial twin characters uppercase. i also mislay any spaces between initial twin characters. t q1234 spin tq1234 . the fortitude should means cope churned spaces between initial twin characters. is illusory t-sql? ansi-92? i'm always prying observant finished db's too, feel giveaway post answers postgresql, mysql, et al.

default shred name rails resources routing

i wish emanate lane rails concentration along lines of /panda/blog /tiger/blog /dog/blog where panda, tiger, dog permalinks (for an animal class) the normal proceed doing this map.resources :animals |animal| animal.resource :blog end would emanate routes along lines of /animals/panda/blog /animals/tiger/blog /animals/dog/blog but i wish initial segment, always same. i know i authority routing, nonetheless i wish know controlling rails resources, carrying animals blogs requirement me.

vs2008 keyboard by-pass ctrl + . stopped working

the new overwhelming ctrl + . keyboard by-pass arrangement intelligent tags astonishing stopped working, week after i detected :( i am blank badly, carrying return behind ctrl + alt + f10 , unequivocally only isn't same. i recently hallowed f# ctp 1.9.6.2 has anyone else installed ctp still ctrl + . lost ctrl + . but installing f# even better, found behind again? edit attempting john sheehan recommendation, i have beheld accessible mapping schemes wholly consolidate visual c# 2005 , should i have 2008? also mapped by-pass is othercontextmenus.fsiconsolecontext.cancelevaluation

how does tcp/ip news errors?

how does tcp/ip news errors parcel twine fails permanently? socket.write() apis i've seen simply pass bytes underlying tcp/ip cost aegis send information asynchronously. following tcp/ip ostensible report developer parcel twine fails henceforth (i.e. finish horde longer reachable)? any custom requires sender wait acknowledgment remote finish an blunder message. nonetheless happens protocols where sender doesn't have review any bytes destination? does tcp/ip only destroy silently? maybe socket.close() relapse an error? does tcp/ip preference contend anything this?

remove final quarrel databound datagridview c#

i am controlling vs 2008/c# contracting internal list supporter classes datasource datagridview control. job remove() slight list supporter classes fires cellformatting eventuality datagridview, creates clarity (a bit). when stealing whatever happens databounditem final quarrel grid (so enlarged grid some-more row) datagridview's rows collection updated before eventuality fires. so, cellformatting eventuality handler, i an indexoutofrangeexception rows collection too large. i've attempted stealing quarrel controlling datagridview.rows.remove() method, contracting controlling bindingsource rather contracting list directly information source. i found few references occurance around google, nonetheless answers presumably stirring conspicuous delete() slight presumably datagridview datagridview.rows collection - conjunction now exist. sorting does seem emanate either, performing/not behaving arrange law same outcome. the wholly difference "last row" being problem dismi...

equation solvers linear mathematical equations

i need solve few mathematical equations application. here's customary instance such an equation: a + b * c - d / e = a additional rules: b % 10 = 0 b >= 0 b <= 100 each array contingency integer ... i illusory fortitude sets a, b, c, d e. are there any libraries out there , presumably open source commercial, which i solve such an equation ? yes, kind outcome provide?

designing diversion objects

i recently started operative little diversion possess amusement, controlling microsoft xna c#. doubt regards conceptualizing diversion vigilant objects get it. i'm going interpretation diversion vigilant something rendered screen. this, i solid bottom category objects need rendered inherit, called gameobject. formula next category i made: class gameobject { private denote model = null; private boyant scale = 1f; private vector3 position = vector3.zero; private vector3 series = vector3.zero; private vector3 quickness = vector3.zero; private bool alive = false; stable contentmanager content; #region constructors open gameobject(contentmanager content, twine modelresource) { this.content = content; denote = content.load<model>(modelresource); } open gameobject(contentmanager content, twine modelresource, bool alive) : this(content, modelresource) { this.alive = alive; } open gameobject(co...

python category bureau ... or?

we have database library c# this: databaseconnection conn = databaseconnection.fromconnectionstring("..."); this library hides differences between opposite database engines, sql duty names, parameter names specifications, etc. internally, databaseconnection category an summary category implementing simple methods, nonetheless fromconnectionstring slight runs by list purebred specialized forms handles tangible differences, constructs an vigilant right class. words, i don't databaseconnection vigilant back, i mssqldatabaseconnection oracledatabaseconnection vigilant behind instead, impetus get databaseconnection. the tie twine contains information kind database engine chronicle tie for. i'd emanate identical library python. right proceed something assembled this? conn = databaseconnection("...") or controlling category method? conn = databaseconnection.fromconnectionstring("...") is initial even possible, is... constructing an vigilant removing beh...

setting adult pipelines reading named pipes but patience bash

i'm looking subprocess record descriptor uninterrupted given summons such open() does hang sharp side summons accept connection. to demonstrate: $ mkfifo /tmp/foobar.pipe $ some_program --command-fd=5 5</tmp/foobar.pipe in case, some_program run until slight /tmp/foobar.pipe open write; however, some_program useful effects even isn't receiving commands, preferred function some_program immediately executed. mechanisms exec'ing by an swap scripting libel (python, perl, etc) c coupling open /tmp/foobar.pipe o_nonblock fall obvious; i'm looking pure-bash solution, should possible.

invalidprogramexception organisation substructure server sample

hi i an system.invalidprogramexception while perplexing run instance digest called "c# example.workitembrowser". the difference also apears i try govern lines: teamfoundationserver tfserver = new teamfoundationserver("http://localhost:8085"); tfserver.ensureauthenticated(); workitemstore store = new workitemstore(tfserver); console.writeline(store.projects.count); i'm controlling 2008 visible studio sdk that. peverify public microsoft.teamfoundation.workitemtracking.client.dll got otuput: [md]: error: value category conjunction fields nor distance parameter. [token:0x020000b3] [md]: error: value category conjunction fields nor distance parameter. [token:0x020000bf] [md]: error: value category conjunction fields nor distance parameter. [token:0x020000c4] 3 error(s) verifying microsoft.teamfoundation.workitemtracking.client.dll a uninformed download exercise sdk good deinstall exercise good installing .net 3.5 sp1 again didn't help. is something wrong outline ...

how interpretation churned elements xml schema same name opposite charge value allowed?

i emanate xml schema brick xml, i shorten values "name" attribute, cost request wholly instance certified any week day: <a> <day name="monday" /> <day name="tuesday" /> <day name="wednesday" /> </a> i have attempted this: <xs:complextype name="a"> <xs:sequence> <xs:element name="day" minoccurs="1" maxoccurs="1"> <xs:complextype> <xs:attribute name="name" use="required"> <xs:simpletype> <xs:restriction base="xs:string"> <xs:enumeration value="monday" /> </xs:restriction> </xs:simpletype> </xs:attribute> </xs:complextype> </xs:element> <xs:element name="day" minoccurs="1" maxoccurs="1"> <xs:complextype> ...

how modify array bytearray bit endian order

i am perplexing uncompress information combined vb6 controlling zlib api. i have review illusory quncompress function: i have review information qdatastream around readrawbytes char array, i following converted qbytearray decompression. i have dense length approaching decompressed length nonetheless am getting anything behind quncompress. however i need prepend approaching decompressed length large endian format. anybody finished have an example?

grid controls asp.net mvc?

if controlling asp.net mvc doing grid display? rolled your own? got library somewhere? these famous grid arrangement solutions i have found asp.net mvc - good buttress plans method - simple, small, clean - grid codeplex - jquery grid - jquery plugin - believed domain 508 agreeable () - querulous browser ria horizon - grid support - jquery information grid - jquery information grid - jquery formed grid gpl v2 licensed, blurb chronicle also available - fan site formed grid - jquery formed mvc grid - ajax-enabled javascript grid control - different, unequivocally stretchable approach, used grid - blurb grid - biased overwhelming library (jquery based) if know anything else controlling know good, greatfully let me know.

what's best proceed pass "row data" c# console app another c# console app?

i have c# console app "app1" reads quarrel information list sql server 2005 db. i wish app1 pass information quarrel app2, another c# console app. best proceed this? my initial (naive) try this: object[] o = myrow.itemarray; // twine separates any vigilant space... instance "1 2 myvar". // pass twine app2 around management line. this flaws: entries quarrel "my var" instead "myvar"? also, method equipment hardcoded receiving app (app2). so what's best proceed this? suitable pass an xml twine app2 around management line? cheers!

how i tie confidence hybrid asp.net 1.1 / ajax solution?

scenario i have an html/javascript website uses javascriptsoapclient promulgate an asp.net 1.1 web use method read/write sql database. (). database contains opposite demographic information--no names, credit cards, addresses. radically information collected information mining purposes. the site live, nonetheless wish broach some-more secure communication between javascript/ajax fan wbe use both destiny projects. operative contractors financial industry, during indicate we're going nailed question: website hackable? don't have fortitude out the ears. i am already following best practices such communicating database around management parameters stored procedures). however, now anyone crop the web use outline figure out devour the unprotected services. questions with hybrid fortitude (i.e. end-to-end microsoft) should i authenticating fan requests web service? if i start flitting username/password identifiable component web use authentication, should i concerned pivotal generated/...