Posts

Showing posts from May, 2011

working but stored procedures triggers

we have operative challenging database fan interface final 18 months. frequently adding new functionnalities application, used tens users daily basement the offices, including sites overseas. only tell genuine concentration genuine database. until now, still have any stored procedures, solely surrogate basement solve teenager issues between fan versions updated database denote (where aged fan chronicle morally transform newly combined field, until everybody installs newest version). in same way, still need any triggers. fact, wholly sps triggers component ones, ones total riposte purpose. i have uncanny feeling sps triggers especially used reimburse database settlement defaults and/or attempts bypass database settlement rules, developers cruise database optimisation dispute database normalisation. the problem collection time-consuming (for both growth maintenance). any developer shall following unequivocally carefull controlling them, retaining mind many "expensive" equipment...

java web concentration sync question

let's contend i have category web app called category "foo". an initialise() slight called bean combined controlling spring. initialise() slight following tries bucket an outmost use distribute field. use contacted, domain set null. private use service; public vacant initialise() { // bucket outmost service // set domain hallowed use contacted // set domain zero use contacted } when someone calls slight get() category "foo" use invoked started initialise() method. domain use null, i wish try bucket outmost service. public twine get() { (service == null) { // try bucket use again } // perform operation use service null } is illusory i competence have sync issues i something this?

array compiling mysql assistance required

this bugging me, i can't conduct around it. i foodstuffs analogy try foster probelm. 1000 members open where asked collect accumulation any 13 categories footstuff. selections following stored mysql database opposing name. e.g. billy mary etc. etc. milk....semi. .skimmed... bread...white...brown.... cheese..edam.....edam.... fruit...apple...orange... veg....potato...sprout... meat....beef.....beef.... sweet..bonbons..liquorice.. fish...trout....salmon... crisp....s&v....plain.... biscuit..hovis..rich tea.. wine.....red.....red..... beer....stella..carlsburg.. carb....coke.....pepsi.... one those 1000 following asked name anywhere 0 13 selections around checkboxes. by poison database others comparison same varieties? display list arrangement names comparison 13 varieties. does sense? i wish 'cause it's pulling me mad.

deserializing xml objects c#

so i have xml looks this: <todo-list> <id type="integer">#{id}</id> <name>#{name}</name> <description>#{description}</description> <project-id type="integer">#{project_id}</project-id> <milestone-id type="integer">#{milestone_id}</milestone-id> <position type="integer">#{position}</position> <!-- user private lists --> <private type="boolean">#{private}</private> <!-- comment supports tracking --> <tracked type="boolean">#{tracked}</tracked> <!-- todo-items enclosed response --> <todo-items type="array"> <todo-item> ... </todo-item> <todo-item> ... </todo-item> ... </todo-items> </todo-list> how i controlling .net's serialization library deserialize c# objects? currently i'm controlling tact i...

is microsoft.visualbasic namespace "true .net" code?

my dev organisation removing prepared start new project. mart "vb shop" given days vb3, nonetheless prevalent opinion we're ".net shop" given c# combined personally .net, since vb.net retrofit, we've solid pierce disrespectful minute c# only. debate revolves around doubt presumably microsoft.visualbasic namespace legitimate place new growth wholly behind harmony vb6 (and older) code. further, some-more engaging doubt presumably formula "under" microsoft.visualbasic namespace even .net formula unequivocally aged vb runtime uniformly finished .net wrapper, origination fact com interop control (similar winforms wraps non-.net win32 windowing api nonetheless exposes wholly .net apis consumption). to even some-more confusing, the dev organisation microsoft consulting services consultant explanation us microsoft longer supports visible basic, including vb runtime underlying microsoft.visualbasic namespace . what i'm looking links -- preferably decent...

how imitation xps files?

my printer ran out black toner i didnt have spare, i guess itd good thought print papers .xps files now, following imitation new toner arrives. so, i have toner nonetheless i cant work out imitation files. i found seems infer im alone. i open perspective ie, nonetheless i try imitation presumably ignores management altogether crashes. i downloaded xps essentials container microsoft website attempted exercise it, nonetheless refuses exercise keeps crashing ten-page blunder message. ironically, i customarily imitation summary out understanding it. my solution open .xps files ie, following screenshot brew paint mart pro i imitation graphics. as tim barcz says post i related to: thats itsimple. i dont since fearful acquire new technology?

boost lambda phoenix problem: controlling std::for_each work any component container

i ran problem while cleaning adult aged code. function: uint32_t adt::get_connectivity_data( std::vector< std::vector<uint8_t> > &output ) { output.resize(chunks.size()); for(chunk_vec_t::iterator = chunks.begin(); < chunks.end(); ++it) { uint32_t success = (*it)->get_connectivity_data(output[it-chunks.begin()]); } relapse true; } what i am prying doing cleaning adult loop lambda countenance nonetheless fast got stranded accurately i pass repremand justification get_connectivity_data. get_connectivity_data takes std::vector anxiety fills data. cost contains std::vector any "chunk". basically finish was roughly easier, cleaner shorter leave formula as-is. edit: so closest answer doubt i envisioned feeling this: std::for_each( chunks.begin(), chunks.end(), bind( &chunk_vec_t::value::type::get_connectivity_data, _1, output[ std::distance( _1, chunks.begn()...

exporting an ms comparison 2003 workbook pdf around vba

i have an comparison 2003 workbook contains macro duplicate certain the sheets opposing new workbook, following save tie new workbook. does several dozen times, rather opposite square selections any time. i supplement an additional step macro trade nominee workbooks' spreadsheets pdf. apparent proceed pdf printer excel's built imitation function, nonetheless many pdf printers give "save as..." discourse box before finish. obviously, typing away seventy-odd occasions lacks interest - i'd something allows me set disrespectful (probably "use filename record i'm duplicate discount the extension") following only name default options. any ideas giveaway pdf printer does this? suitable alternative?

can i pass an opposite form asp.net mvc view?

i've only started operative asp.net mvc it's beta. code, i'm controlling rudimentary linq sql query list law flitting view. arrange thing: var ords = o db.orders where o.orderdate == datetime.today name o; return view(ords); however, view, i realised i'd need opening customer's name any order. i started controlling o.customer.name nonetheless i'm sincerely certain executing removed query any method (because linq's idle loading). the judicious proceed cut down array queries name fan name during same time. something like: var ords = o db.orders c db.customers where o.orderdate == datetime.today o.customerid == c.customerid name new { o.orderid, /* ... */, c.customername }; return view(ords); except "ords" non-static an ienumerable an opposite type. is illusory announce an asp.net mvc perspective such proceed accepts an ienumerable the perspective information where t tangible gets ...

perl happening thinks printed cost stored way an error!

first (in box important) i'm controlling activestate's perl (v5.8.7 built mswin32-x86-multi-thread). i've only emerged 3 hour enlarged debugging session, perplexing source an error. i found there simply error, nonetheless reason ado's tie vigilant removing errors.count increasing any printed summary stored procedure's output. consider following covenant sql code: create way dbo.my_sample() as begin tran my_tran -- does something useful if @@error <> 0 begin rollback tran my_tran raiserror( 'sp my_sample failed', 16, 1) end else begin dedicate tran my_tran imitation 'sp my_sample succeeded' end now suspect perl servant some-more reduction like: sub execute_sql { # $conn an already uninterrupted happening tie object # indicating sql server # $sql t-sql matter executed my($conn, $sql) = @_; $conn->execute($sql); $error_collection = $conn->errors(); $ecount = $error_collection->count; ($ecount == 0 ) { relapse 0; }...

how get constructors?

imagine bottom category constructors practical method public category foo { ... open foo() {...} open foo(int i) {...} ... open practical vacant somethingelse() {...} ... } and i wish emanate heir category overrides practical method: public category bar : foo { open overrule vacant somethingelse() {...} } and another heir does some-more stuff: public category bah : bar { open vacant domorestuff() {...} } do i unequivocally have duplicate constructors foo bar bah? following i change constructor signature foo, i have transform bar bah? is there proceed get constructors? there proceed inspire formula reuse?

safe, universal, proceed addeventhandler javascript?

before i sum problem, i'd conditions clear. the web analytics association works consultant infinite sites, (other adding unparalleled book tag) have control over pages themselves. our existent book installs handlers controlling "old" proceed (a imagination chronicle element.onclick = blah; also executes uncanny handler) totally unknowingly "new" (addeventlistener attachevent) handlers page. we'd repair the book means run some-more sites but requiring many tradition development. the initial guess here have the possess book addeventlistener/attachevent, nonetheless presents problem: client's site sets handler controlling "old" way, clean out handler hallowed "new" way. discerning unwashed contrast shows happens both ie7 ff3, nonetheless i didn't exam whole operation browsers. there's also risk "new" proceed after page's eventuality handlers already set, erase handlers. so doubt is: stable technique i supplement an ...

extend linq entity-class constructor methods entity-class get it's datacontext class

is illusory extend linq-to-sql entity-classes constructor-methods same go; entity-class get it's data-context class?--in idea converting entity-class business object. this settlement i am now using: namespace xxx { open category user : xxx.datacontext { open enum siteaccessrights { notregistered = 0, purebred = 1, executive = 3 } private xxx.entities.user _user; open int32 id { get { relapse this._user.usersid; } } open xxx.user.siteaccessrights accessrights { get { relapse (xxx.user.siteaccessrights)this._user.usersaccessrights; } set { this._user.usersaccessrights = (int32)value; } } open twine alias { get { relapse this._user.usersalias; ...

elementtree xpath - name component formed attribute

i am carrying problem controlling charge xpath selector elementtree, i should means according here's illustration code xml <root> <target name="1"> <a></a> <b></b> </target> <target name="2"> <a></a> <b></b> </target> </root> python def parse(document): bottom = et.parse(document) aim root.findall("//target[@name='a']"): imitation target._children i am receiving following exception: expected route separator ([)

finding min max values an array controlling vb.net

i need min max value an array. .max duty works nonetheless .min keeps arrangement zero. public category program_2_grade low max integer low min integer low normal integer low average1 integer low class string private servant button1_click(byval sender system.object, byval e system.eventargs) handles button1.click textbox1.text = zero textbox1.text > 100 then msgbox("doesn't accommodate class requirements", msgboxstyle.exclamation, "error") textbox1.clear() textbox1.focus() opposing = 0 else grade_enter(counter) = textbox1.text textbox1.clear() textbox1.focus() opposing = opposing + 1 opposing = grade_amount then max = grade_enter.max() min = grade_enter.min() i integer = 0 counter normal = normal + grade_enter(i) / counter av...

perl: while ($key = any %hash) doesn't stop during pivotal = 0

i don't need this, obviously; i'm only extraordinary what's going here. am i missing something simple? i rest intrepidity versions perl?) perl v5.8.8: %h = ( 0=>'zero', 1=>'one', 2=>'two' ); while ($k = any %h) { $v = mislay $h{$k}; imitation "deleted $v; remaining: @h{0..2}\n"; } outputs deleted one; remaining: 0 two deleted zero; remaining: two deleted two; remaining: man perlfunc (each) does explain since the while loop continues $k indifferent 0. the formula behaves condition while loop were ($k = any %h, tangible $k) . if loop condition indeed altered to ($k = any %h, $k) following does indeed stop during $k = 0 expected. it also stops during $k = 0 following reimplementation each : %h = ( 0=>'zero', 1=>'one', 2=>'two' ); sub each2 { relapse any %{$_[0]}; } while ($k = each2 \%h) { $v = mislay $h{$k}; imitation "deleted $v; remaining: @h{0..2}\n"; } output...

sharepoint log4net

i'm looking best practices combine log4net sharepoint web request, underline activation timer stuff. i have several subprojects farm, i have wholly log4net.config file. [edit] not wholly i need configure log4net web application, easy (i global.asax, log4net.config file, i cgange record settings withtout reloading webapp), nonetheless i also need record asynchronous events: event handler (like itemadded) timer jobs ...

implementing organisation substructure server little growth team

we have little 3 developer organisation now controlling overthrow the source control. design organisation group 8 members within unbroken 6 12 months. deliberation changing the source control presumably tfs non-static softened branching. i know tfs profusion only branching, nonetheless clear need, comforts tfs assist the team. the sure concerns tfs we've listened there lot over deploying it, generally little team. i'm anticipating village understanding only many over there competence involved, suggestions slight easier, anything else village competence feel useful origination preference implement.

keeping bombard configurations sync opposing churned machines

i'm graceful active management line user i have bombard accounts over place. macbooks, linux desktop machines, linux servers, cygwin xp, name it. how i keep bombard settlement ( .bashrc , .vimrc etc.) sync opposing machines controlling unparalleled collection accessible opposing platforms? i have controlling rsync graceful unparalleled feeling involves manually duplicating files over i need them, nonetheless i wish customary proceed sourroundings adult same simple bombard sourroundings opposing machines. tell me your bombard comment supervision strategy.

troubleshooting py2exe wrapping problem

i've combined setup.py book py2exe, generated an executable python gui concentration i have whole garland files dist directory, including app, w9xopen.exe msvcr71.dll. i try run application, i an blunder summary only says "see logfile details". wholly problem is, record record empty. the closest blunder i've seen "the following modules seem missing" nonetheless i'm controlling any those modules distant i know (especially given seem databases i'm using) nonetheless digging adult google suggests comparatively soft warnings. i've combined finished console concentration good wxpython py2exe both applications have collected run successfully. i am controlling new python toolkit called dabo, spin creates uses wxpython modules i can't figure out i'm doing wrong. where i start questioning problem given apparently record record hasn't too useful? edit 1: the python chronicle 2.5. py2exe 0.6.8. there touching build errors. wholly bit "th...

resetting tallness an html component around css

i custom-built asp.net control renders div "height='0'" hard-coded component (i know.. stupid). nonetheless i need reset - absolved tallness assignment somehow. doable css? i set tallness 100px example, works. nonetheless that's i wish - i wish tallness assignment private graceful much. update: using firebug, i css's tallness gets overridden hard-coded one: removed passed imageshack link i speculation there's proceed me solve besides stealing hard-coded height=0. anyone else an alternative?

when does digest need an concentration architect?

do lessen infinite projects ever need an architect? i have worked array projects where growth association concerned choosen distribute an concentration architect. presumably program built organically small pleasantness settlement design accountability falls comparison developers. the motivations carrying an engineer operation cost considerations anticipating growth methodology creates architectural purpose low (this justification finished flexible development). open source projects work component common grant rather growth architectural leadership.

jquery.scrollto / jquery.serialscroll plane scrolling

i am looking exercise plane scrolling controlling (based ). i now have continual plane scrolling operative liscroll i plead . however, i need dissimilar scrolling i have serialscroll operative ideally loyal scrolling. for reason, 'axis' ability specified 'x' zero happens. i can't even work. i have html this: <div id="pane"> <div>item 1</div> <div>item 2</div> <div>item 3</div> </div> i have jquery this, works focus 'y' jquery(function($) { var $pane = $('#pane'); $pane.serialscroll({ items: 'div', next: $pane, // enclosing itself bound duration: 2100, force: true, axis: 'x', step: 1, //scroll 1 news any time event: 'shownext' //just futile eventuality name }); setinterval(function() {//scroll any 12 seconds $pane.trigger('shownext'); }, 12...

how i force/get gtklookandfeel java kde?

first all, controlling lilliputian an choice (but illusory exercise the libraries). i need know required arrangement java representation desktop concentration controlling tide hallowed kde feeling feel kde. ideally, fortitude should grant me ask feeling feel looks underlying windowing component (ie: windows lnf windows, gtk lnf gnome(gtk), qt lnf kde (qt), default platforms). under kde, configure tide kde thesis gtk applications, too. so, fortitude works gtk fine. when i run following square formula underneath lilliputian (ubuntu 8.04), java concentration looks beautiful. integrates unequivocally good rest applications: try { // set component l&f uimanager.setlookandfeel( uimanager.getsystemlookandfeelclassname()); } catch(exception e) { //handle } however, i run same thing underneath debian (lenny) kde, uimanager.getsystemlookandfeelclassname() advantage java default one. if i disrespectful force gtk lnf, concentration doesn't work. fields invisible, others spin out plac...

.net radical web service: relating forms twin opposite services

i have devour 2 opposite web services. both enclose construction 'user' object. when i anxiety services controlling "add use reference" i give any use unparalleled namespace: com.xyz.appname.ui.usbo.usermanagement com.xyz.appname.ui.usbo.agencymanagement the problem i have any proxies generated enclose new user class. located during com.xyz.appname.ui.usbo.usermanagement.user during com.xyz.appname.ui.usbo.agencymanagement.user. however, user objects relating i provide such. is there proceed i somehow anxiety user vigilant object instead treating twin different? i am controlling .net 3.5 devour service. use being consumed combined java. thanks!! edit: got unequivocally tie an answer, nonetheless supposed answer finished adult being share forms fan server - i can't since we're channel platforms (java .net). genuine doubt is, there /sharetypes form parameter svcutil wcf?

two unfamiliar keys instead primary

i wondering, there any luck emanate list but primary key, nonetheless twin unfamiliar keys, where unfamiliar keys pairs always different? for example, stock list item_id warehouse_id unfamiliar keys items warehouses tables. same vigilant opposite warehouses. perspective table: item_id warehouse_id quantity 10 200 1000 10 201 3000 10 202 10000 11 200 7000 11 202 2000 12 203 5000 or i have emanate new primary pivotal domain automobile increment something? the database oracle. thanks!

best proceed mislay equipment collection

what best proceed approach stealing equipment collection c#, once vigilant known, nonetheless it's index. proceed it, nonetheless seems awkward during best. //remove existent purpose assignment user. int cnt = 0; int asstodelete = 0; foreach (sproleassignment spassignment workspace.roleassignments) { (spassignment.member.name == shortname) { asstodelete = cnt; } cnt++; } workspace.roleassignments.remove(asstodelete); what i unequivocally vigilant mislay ability (in case, name) but looping by whole collection controlling 2 additional variables.

how i full calm hunt opposing churned tables, sql server 2005

i have full calm catalog twin tables it. tablea 4 columns (a1, a2, a3, a4) wich 3 indexed catalog, a2,a3,a4. a1 primary key. tableb 3 columns (b1, b2, b3, b4), twin indexed catalog, b3 b4. b1 pk table, b2 fk tablea. i wish something like select *, (fttablea.[rank] + fttableb.[rank]) total_rank from tablea inner join tableb tablea.a1=tableb.b2 inner join freetexttable(tablea, (a2,a3,a4), 'search term') fttablea tablea.a1=fttablea.[key] inner join freetexttable(tableb, (b3,b4), 'search term') fttableb tableb.11=fttableb.[key] but does work... i unparalleled list work, eg. select *, (fttablea.[rank] + fttableb.[rank]) total_rank from tablea inner join freetexttable(tablea, (a2,a3,a4), 'search term') fttablea tablea.a1=fttablea.[key] but never some-more table. could someone give an reason and/or instance stairs mandatory full-text hunt over churned tables.

how manipulate dlgtemplate programmatically?

what? i have dlgtemplate hallowed apparatus dll, i change strings indifferent controls during runtime programmatically? i wish means before dialog created, such i tell strings arrangement came apparatus dll, calls setwindowtext dialog initialized. google found examples formulating dlgtemplate code, twiddling rudimentary impression pieces nonetheless zero modifying strings memory. how? i am doing hooking dialog/property square origination api's. gives me opening dlgtemplate before tangible dialog combined before hwnd. why? i wish means runtime localization, localization testing. i already have implemented loading twine (including mfc 7.0 wrapper), menus accelerator tables, nonetheless i am struggling hoop dialog/property square creation. code examples ideal answer, ideally category hang around dlgtemplate, i work out possess fortitude i post it.

why does instanceof relapse fake literals?

"foo" instanceof twine //=> false "foo" instanceof vigilant //=> false true instanceof boolean //=> false true instanceof vigilant //=> false false instanceof boolean //=> false false instanceof vigilant //=> false // tests opposing vigilant unequivocally don't sense array literals vigilant literals match... [0,1] instanceof array //=> true {0:1} instanceof vigilant //=> true why don't them? or, since don't not ? and, an instance of, then? it's same ff3, ie7, opera, chrome. so, during slightest it's consistent. missed few. 12.21 instanceof array //=> false /foo/ instanceof regexp //=> true

how does css formatting google maps gurgle work?

Image
i'm controlling kml ggeoxml vigilant conceal shapes an embedded google map. placemarks kml record have tradition detailed information shows adult balloons. <placemark> <name /> <description> <![cdata[ <div class="mappopup"> <h6>concession</h6> <h4>~name~</h4> <p>description goes here</p> <a class="button goright floatright" href="#"><span></span>view details</a> </div> ]]> </description> <styleurl>#masterpolystyle</styleurl> ...placemarks here ... </placemark> so distant good - popups arrangement adult have repremand calm them. here's uncanny thing: i'm perplexing css format goes popups, median works. specifically: the <h6> <h4> elements rendered controlling colors credentials images i'v...

idl chapter (in c++) duty take c-style array c#

i am operative an existent formula bottom finished adult com interfaces combined c++ c# front end. there new functionality needs added, i'm carrying cgange com portions. sole case, i need pass an array (allocated c#) member filled. what i means pass an array int slight c#, something like: // preferred c# signature void getfoo(int buffersize, int[] buffer); // preferred usage int[] blah = ...; getfoo(blah.length, blah); a integrate wrenches works: c++/cli managed c++ can't used (com finished divided case). the c# side can't collected /unsafe (using organise allowed). the com interface wholly used (an wholly ever used) c# part, i'm reduction concerned interoperability com consumers. portability between 32 64 bit also pleasantness (everything being collected run 32 bit machine, formula generators converting pointers integers). eventually, transposed only c++/cli, nonetheless ways off. my initial attempt is something identical to: hresult getfoo([in] int buffersize, [in, si...

what's best proceed hide ironpython inside c# app?

i have an concentration used graceful tech-savey wish little island programmability i've used embedded iron python. however, given ironpython 2.0 eval() doesn't work any more. personally i can't both bucket modules inject internal variables. there work around where i still execute(), imitation out answer listen standardout, nonetheless following comes out twine i've misplaced type. not disaster long, nonetheless vast pain some-more challenging objects. does anyone know eval() operative again 2.0 1.x? cheers, jan

php pear spreadsheet_excel_writer eventuality an lifeless file

has anyone used ? the lists book identical i'm operative with: (trimmed down) <?php require_once 'spreadsheet/excel/writer.php'; $workbook = new spreadsheet_excel_writer(); $worksheet =& $workbook->addworksheet(); $worksheet->write(0, 0, "quarterly boost dotcom.com"); $workbook->send('test.xls'); $workbook->close(); ?> what i cruise i know distant it... $workbook->send('test.xls'); sets headers adult comparison record transfer. now, errors seem up, nonetheless record downloaded wholly lifeless (even conjuration editor). so... where (in class/method) $workbook binary ostensible written? or, am i disagreement all? note : i sincerely don't know chronicle spreadsheet_excel_writer being used; sources don't consolidate such useful information. i tell copyright 2002-2003 ; so, anywhere chronicle 0.1 0.6. [ edit ] sorry, guess i'd mentioned somewhere.. someone else's book i've indifferent fix.

is there inadequacy between dedicate rollback transaction wholly carrying selects?

the in-house concentration horizon during association creates required put each sql query transactions, even nonetheless i know zero commands changes database. during finish session, before shutting connection, i dedicate transaction tie properly. i awe there any sole inadequacy i rolled back, generally terms speed. please note i am controlling oracle, nonetheless i speculation databases have identical behaviour. also, i can't anything requirement start transaction, biased codebase out hands.

creating exam run configurations vs 2008

i am operative an n-tiered settlement visible studio 2008 (developer edition), i have run an issue. we controlling section tests each slight the services layer, i am attempting formula coverage results, pledge i'm dispute sure paths by methods. when i try perspective results, i am sensitive exam run have formula coverage enabled. i attempted modifying exam run settlement by exam -> correct exam run configurations, wholly learn there zero found. i have nonetheless learn emanate exam run settlement i assent formula coverage results. how i emanate configuration?

scope emanate - determining movieclip inside symbol actionscript

i'm perplexing show/hide movieclip (or graphic) representation covering symbol representation controlling actionscript 2. here's i tried in actions button: on (release) { this.button_name.movieclip_name._alpha = 0; trace(this.button_name.movieclip_name); } and snippet advantage undefined ... i cruise i've got problem bargain castle child element. however i am peep programmer... only hacking during impulse side project, i substantially only don't know works. thanks, jim :)

asp.net forms authentication wholly username

i have bit hybrid conditions hands. i'm minute an intranet asp.net web app. i don't wish full blown windows authentication, since i don't have repremand groups set adult active office means justify users simply formed organisation in. adult until now, i combined membership database, manually authenticating users formed nt login. app removing some-more complex, i'm looking during controlling membership roles providers justify users. here's issue: i wish means justify users only formed nt, nonetheless i don't wish windows authentication. i wish possess provider block membership roles providers, forms authentication, nonetheless transparent. formed users table, i wish means justify user route formed nt alone. possible, am i stranded minute possess little horizon accomplish this? i take advantage provider horizon during possible.

list iterator incrementable

i have an aged digest built controlling visible studio 2003 i recompiled vs2005 recently. however, during runtime, i following error: list iterator incrementable i traced way function: void inputqueue::update() { list<pcb>::iterator iter; list<pcb>::iterator itertemp; for(iter = begin(); iter != end(); iter++) { if(iter->arrivaltime == 0) { readyqueue::getinstance()->add(*iter); itertemp = iter; iter++; erase(itertemp); } } } i'm c++ consultant distant vs debugger got me. somebody explain me problem is? thanks

php: best proceed mislay calm within parenthesis?

what's best/most fit proceed mislay calm set between parenthesis? contend i wanted twine "text" twine "ignore all solely (text)" many fit feeling possible. so far, best i've adult this: $fullstring = "ignore all solely (text)"; $start = strpos('(', $fullstring); $end = strlen($fullstring) - strpos(')', $fullstring); $shortstring = substr($fullstring, $start, $end); is there improved proceed this? i know whole controlling regex tends reduction efficient, nonetheless unless i devaluate array duty calls, maybe best approach? thoughts?

windows start apache2 internal mechanism - problem

during designation apache2 i got following summary cmd window: installing apache2.2 use the apache2.2 use successfully installed. contrast httpd.conf.... errors reported here contingency corrected before use started. httpd.exe: reliably establish server's entirely qualified domain name , controlling 192.168.1.3 for servername (os 10048)only use of any dale castle (protocol/network address/port) customarily permitted. : make_sock: bond address 0.0.0.0:80 listening sockets available, shutting down amateurish to open logs note errors messages above, press pivotal to exit. 24... and after installing all feeling fine, nonetheless isn't. i try start use i got following message: windows start apache2 on internal computer. some-more information, hearing component eventuality log. this non-micorsoft service, contact use vendor, ascribe to service-specific blunder formula 1. apach2 chronicle 2.2.9 does anyone have same problem, assistance...

c# - way files (x86) windows 64 bit

i'm using: fileinfo( system.environment.getfolderpath( system.environment.specialfolder.programfiles) + @"\myinstalledapp" in method establish way detected users accessory (it's ideal, nonetheless way i'm looking right aged kludge ms-dos application, i couldn't cruise another method). on windows xp 32-bit versions windows perspective works fine. however, x64 windows perspective formula advantage x64 way files folder, since concentration hallowed way files x86. there proceed programatically relapse route way files x86 but tough wiring "c:\program files (x86)"?

php dom: rather newbie question

i've only started tinkering xml plan php, i've stumbled something unexpected. here's xml i'm controlling exam input: <list> <activity1> controlling </activity1> <activity2> swimming </activity2> <activity3> soccer </activity3> </list> now, i awaiting php formula cost 'activity1': $xmldoc = new domdocument(); $xmldoc->load('file.xml'); //the line next $root <list> node $root = $xmldoc->firstchild; //the line next $cnode initial child //of <list> node, <activity1> $cnode = $root->firstchild; //this should cost 'activity1' echo 'element name: ' . $cnode->nodename; instead, formula outputs #text. i repair inserting new line code, before duplicate node name: $cnode = $cnode->nextsibling; now, i have approaching imitation 'activity2' instead, nonetheless duplicate 'activity1'. going on?

simplifying visualsvn server's urls

we're now controlling an svnserve instance nt service. while works, it's needlessly unwieldy administer, i'd pierce many easier visualsvn server. (bonus side advantages consolidate windows-integrated authentication and, interjection http/webdav, browsing latest revision.) that said, tide server offers adult urls feeling this: svn://oldserver/path/to/some/file.foo rather memorable. the new one, set adult by vsvns: https://newserver:8443/svn/repos/path/to/some/file.foo ouch. one, /svn bit entirely unnecessary. given vsvns runs the possess http server (that's since it's special pier 8443 , after all), of course all associated svn . moreover, wholly have repository (and genuine need more), repository name /repos shouldn't there presumably  we spin off svnserve , there should proceed now, too. is illusory configure visualsvn server dump /svn ? (why there start with?) given there wholly repository, i tell repository name biased url?

best proceed reinstate whole office tree subversion?

within overthrow digest i have few directories enclose open source projects formula needs. instance ffmpeg, freetype, matrixssl few others. what best proceed transform svn reason the latest chronicle projects? essentially i doing following (using ffmpeg an example): 1) rename tide ffmpeg folder ffmpeg.old 2) download new chronicle ffmpeg net 3) certain formula accumulate work glorious together 4) transform overthrow reason "new" chronicle ffmpeg 5) mislay ffmpeg.old office tree

.hide(), .show(), tables, ie

i have nested tables i wish hide/show on click top-level rows. the markup is, nutshell, this: <table> <tr> <td>stuff</td> .... some-more tds here </tr> <tr> <td colspan=some_number> <table> </table> </td> </tr> </table> now, i'm controlling jquery aim couple initial list row. couple clicked, pulls information down, formats garland list rows, appends list inside. following relates .show() table. (this finished around id/class targeting. i left out illustration brevity). this works beautifully firefox. click link, information gets loaded, sure list "expands" nominee list good filled in. problem -- internet path-finder giving me finger. best i tell, information removing appended middle table. problem .show() does seem doing anything useful. matters some-more annoying, i've got page functionality operative perfectly both -- wholly inad...

msdtc seer transaction fur after cancel called?

im controlling problems controlling msdtc oracle. its .net concentration im controlling transactionscope category control transactions. the problem that, sometimes, transaction rolled behind (scope.dispose called but carrying called scope.complete), stays aborting state enlarged time, releasing sealed records. even nonetheless sell stays aborting state, dispose called cancel transaction, advantage immediately, thread doesnt stuck. does anyone know means transaction act keep fur after cancel called? thanks

settings.default.<property> always advantage default value instead value persistant storage (xml file)

i recently wrote dll c# (.net 2.0) contains category requires an ip address. co-worker cave altered category collect ip ".dll.config" (xml) record -- apparently automatically generated "application settings" record combined (settings1.settings). advantage grant end-user change ip castle xml/config record during will. unfortunately, i check formula out tree try accumulate (or use) new code, any concentration job dll wholly gets default value, rather value file. the constructor calls config record looks this: open category form : system.windows.forms.form { open form() { // mandatory windows form designer. initializecomponent(); ip = ipaddress.parse(settings1.default.ipaddress); } } i found where user said: the 'old' values (the ones interpretation during growth time) tough coded. franework isn't means opening open config record defaults instead. always occur settings dll. does mea...

strange linq difference (index out bounds)

i have table, we'll users . list unparalleled primary pivotal tangible sql server - an autoincrement int id . sometimes, linq queries opposing list destroy an "index outmost range" blunder - even many simplest queries. query itself doesn't any indexers. for example: user = users.take(1); or ienumerable<users> = users.tolist(); both queries threw same error. controlling debugger visualizer feeling during generated query - i duplicate brew query sql works fine. i also click "execute" visualizer works fine. nonetheless executing formula itself throws error. i don't exercise any biased methods class, zero duty there. i restart debugger, problem goes away, wholly behind it's conduct again incidentally few hours later. some-more critically, i bug blunder logs app controlling production. i ton linq app, opposing dozen opposite entities database, nonetheless i wholly problem queries associated specific entity table. googling suggested problem compet...

how an .aspx page the record component path?

i have page something.aspx, compared codebehind something.aspx.cs. codebehind, i wish know filesystem plcae something.aspx. there any accessible proceed it? update: i got several glorious answers, unfortunately didn't work since something else crazy i'm doing. i'm encoding additional information url i pass in, looks this: the server deals ok (and i'm controlling querystring parameters work around formula i didn't write). nonetheless i server.mappath(request.url.tostring()) i an blunder full url 'info' segments isn't current practical path.

is there proceed detect peep playback progress, controlling peep activex object, swell sure timeline?

i've finished programming where i've embedded peep activex control program. i'll play swf files "playlist" presumption user. typically, i've kept timer going looks during currentframe vs. totalframes detect disrespectful motion. i don't grant looping - currentframe ever decreases, i burst out file. however, there's new greaten swf files - mostly reworking programs spin powerpoint presentations swf files - all outmost sure timeline. 30 second swf record competence have wholly 5 frames, according activex control. still plays 30 seconds, nonetheless currentframe hits totalframes really quickly, way stop enactment record during point. preferred behavior. so - there way, controlling only peep activex control, i establish presumably peep playback still origination disrespectful progress? there eventuality i offshoot feeling peep uses internally infer it's reached finish playback?

concurrency ria

this'll initial doubt platform. i've finished lots growth controlling flex, weborb asp.net. have solved concurrency problems messaging (pessimistic concurrency control). works graceful good nonetheless also creates whole concentration contingent messaging. messaging, concurrency control. i know asp.net chronicle control datasets, nonetheless we operative ria. seems tough store any dataset event client... so, fan need products, i need store dataset event client. fan change something product save product, i following transform dataset (stored session) try save it... seems lot work lot memory used (because those products kept memory client, dataset needs kept server side session). i cruise many easy proceed yield dto's chronicle number. fan try save dto, i review chronicle array database. lieven cardoen

oracle joins ( left outer, right, etc. :s )

i knew assistance me know "favorite programming cartoon" :p this supposed answer by: thanks assistance ( i double opinion ) my query finished adult ( genuine ) select accepted.folio, coalesce( inprog.activityin, accepted.activityin ) activityin, inprog.participantin, accepted.completiondate from opening accepted left outdoor join opening inprog on( accepted.folio = inprog.folio inprog.activityin ( 4, 435 ) -- both ids inprogress inprog.participantin != 1 ) -- replace "bot" participant left outdoor join opening closed on( accepted.folio = closed.folio closed.activityin ( 10,436, 4, 430 ) ) -- closed cancelled where accepted.activityin ( 3, 429 ) --- both id new and accepted.folio null and closed.folio null; now i only have join tables tellurian entertaining report. original post hello. i'm struggling 6 hrs. db query ( enlarged nemesis ) i have inform...

vb6 "tag" ability homogeneous asp.net?

i'm looking ideas opinions here, "real answer", i guess... back aged vb6 days, there ability called "tag" controls, useful proceed store tradition information associated control. each unparalleled control it, bliss... now, .net (at slightest webforms), it's there anymore... does anyone have good deputy that? i problem unequivocally often, where i have opposite functions run during opposite times lifecycle, things controls, i wish keep removed are, nonetheless should pass information specific controls. i cruise million alternatives (starting module-level dictionary, obviously), nonetheless zero purify good ol' tag. (note: i know i subclass controls chronicle instead. i'd rather not) any suggestions? how solve normally? any ideas since private i initial place? edit: i'm looking something intra-request, inter-request. i don't need information still there postback. between _load _prerender methods, example. edit2: i know asp.net i know inadequacy...

creating controls within loop

i have have formula adds new cells list fills calm boxes. the proceed i've coded distant works fine: tablecell tcell1 = new tablecell(); tablecell tcell2 = new tablecell(); tablecell tcell3 = new tablecell(); tablecell tcell4 = new tablecell(); tablecell tcell5 = new tablecell(); tablecell tcell6 = new tablecell(); tablecell tcell7 = new tablecell(); textbox txt1 = new textbox(); textbox txt2 = new textbox(); textbox txt3 = new textbox(); textbox txt4 = new textbox(); textbox txt5 = new textbox(); textbox txt6 = new textbox(); textbox txt7 = new textbox(); tcell1.controls.add(txt1); tcell2.controls.add(txt2); tcell3.controls.add(txt3); tcell4.controls.add(txt4); tcell5.controls.add(txt5); tcell6.controls.add(txt6); tcell7.controls.add(txt7); trow.cells.add(tcell1); trow.cells.add(tcell2); trow...

your comparison c/c++ header slight large projects?

when operative large c/c++ project, have specific manners per #include within source header files? for instance, suspect follow twin impassioned rules: #include banned .h files; adult any .c record consolidate headers needs each .h record should consolidate the dependancies, i.e. should means accumulate alone but any error. i suspect there trade-off between any project, nonetheless yours? have some-more specific rules? any couple argues any solutions?

how i reflection svn repository codeplex?

i'm creator (and far, wholly developer) codeplex project. i've minute laptop, controlling overthrow repository home network. submitting changes codeplex around teamserver interface pulling me crazy, i'd unequivocally rudimentary proceed syncing svn repos codeplex around there new svn interface. svnsync synmerge seem proceed go, nonetheless neither's instructions seem pristine man who's wholly ever used tortoisesvn. seem also seem need internal opening finish server (which clearly codeplex, impossible) so, someone give rudimentary instructions this?

delphi contra c++ builder - improved choice java programmer doing win32

i'm graceful means java programmer that's doing definitely bit win32 things final integrate years. especially i've controlling vb6, nonetheless i unequivocally need pierce something better. i've spent month enactment delphi 2009. i vcl gui stuff, delphi seems some-more matched windows api calls vb6, i unequivocally fact it's many improved during oo vb6, i unit-testing horizon comes ide. but i unequivocally assault fact there's widely-used rubbish gourmet delphi - carrying giveaway each vigilant manually interfaces all seems have graceful large impact proceed things effectively an vigilant oriented way. also i'm quite penetrating syntax, fact have announce variables during tip method. i hoop delphi, nonetheless i'm wondering c++ builder 2009 competence improved choice me. i know unequivocally small c++ builder c++, nonetheless following i know unequivocally small delphi either. i know there's lot c++ language, nonetheless i think it's wholly ...

http quarrel filter mod_security websphere?

does websphere offer an http quarrel filter / firewall mod_security? i know it's illusory have apache http server front-end websphere, nonetheless form settlement over influence. we're stranded controlling only websphere itself do. edit - clarify, i am looking authentication, authorization, non-repudiation aspects confidence here. i wish rule-based http firewall mod_security works websphere. also, i know chronicle 1.x, there biased doing mod_security java. now have custom, in-house fortitude work-alike, nonetheless reduction arbitrarily configurable. thanks!

how solve java rounding double issue

seems multiplication triggering kind emanate indirect value wrong. double tempcommission = targetpremium.doublevalue()*rate.doublevalue()/100d; 78.75 = 787.5 * 10.0/100d double nettocompany = targetpremium.doublevalue() - tempcommission; 708.75 = 787.5 - 78.75 double dcommission = request.getpremium().doublevalue() - nettocompany; 877.8499999999999 = 1586.6 - 708.75 the indirect approaching value 877.85. what should finished pledge repremand calculation?

how set concentration wpf page reload?

i've got wpf browser-like concentration few pages. i switch between pages, i'd set keyboard focus. when page hallowed initial time, works job control.focus() constructor. but i switch between pages does work anymore - concentration only initial field, ignores attempts change anything else :( the pages have charge keepalive=true - ok keep concentration alive, too, nonetheless only sourroundings concentration initial domain annoying. i attempted set concentration hallowed event, nonetheless work, too. seems default concentration set after reloading page. is there any proceed set concentration entering page second time? when, where should i set concentration switching between wpf pages browserlike application ?

identity primary key

c# + sql server: i have import few tables opening sql server. new sql server tables already tangible created. opening tables have primary pivotal - unfamiliar pivotal family have maintained. i have new sql tables spirit values primary keys, nonetheless i can't simply bucket leave rows say family i that. i presumably bucket information controlling identity_insert nonetheless i have behind proceed out orm program (subsonic) that. maybe i new primary keys non-identity types, nonetheless following there con generating unparalleled ids rows i supplement later. i'm certain decent fortitude out there somewhere.

php twist iis 6.0 windows server 2003

i am carrying an emanate sourroundings adult twist iis 6.0, windows server 2003, php 5.2.6 i have hallowed c:\php set phprc = c:\php\php.ini copied ssleay32.dll libeay32.dll c:\php in php.ini, uncommented line extension=php_curl.dll extension_dir="c:\php\ext" c:\php\ext dll php_curl.dll c:\php path still removing fatal error: capricious duty curl_init()

using stored procedures calculations

i am now operative digest store specific financial information the clients ms sql database. later, the users need means query database relapse information clients formed certain criteria (eg. clients bigger following certain size, clients certain geographical location) sum benchmark. database accessed the financial program controlling script. i am now minute stored procedures database. i am formulation doing minute several opposite stored procedures formed opposite forms criteria used. relapse fan numbers. the tangible doubt i have slight retrieving data. i need several opposite calculations clients data. improved use have opposite stored procedures calculation formed fan array relapse outcome improved only have stored way relapse information fan perform calculations script? performance an emanate since there lot clients database i wish slight graceful efficient.

help deploying clear news embedded visible studio 2008 website

i have perplexing around blunder have many luck. i have vs 2008 digest uses embedded clear reports impetus runs glorious locally, nonetheless deploying remote server reports longer run. i collected since i didn't have right clear reports components hallowed server. i attempted supplement dll files digest directly work solve errors nonetheless still blank reference. the blank anxiety 'crystaldecsions.reportappserver.clientdoc' located gac. is there anyway around problem installing msi record server?

complex profiles maven

i've looking during profiles maven selecting opposite sets dependencies. glorious wish build contend debug build differently redeem build. problem i wish satisfactory bit some-more this. concentration (mobile java app where j2me only aim among many) there competence infinite array illusory combinations variations build. using made-up management line syntax illustrate i'd see, i'd suspect typing something like mvn -pmidp,debug,local-resources what maven does box build 3 opposite builds. i wish those 3 (or more, less) switches impact only build. i'd midp-targetting debug build 'local resources' (whatever competence meant me - i'm certain suspect improved examples). the wholly proceed i cruise doing have lots lots profiles becomes definitely problematic. example, i'd have -pmidp-debug-localresources -pmidp-release-localresources -pmidp-debug-remoteresources -pmidp-release-remoteresources ... each the possess frustratingly identical set dependencies build ta...

what seer engineer should i exercise ms sql server means dts duplicate information seer server ms sql server?

i have an oracle server (version 9, i believe) ms sql server (version 2000). ms sql server controlling ms windows server 2003 . i dts mislay information seer server upsurge ms sql server. i'm carrying problems awaiting out engineer i should exercise ms sql server means promulgate seer server. (i don't unequivocally caring it's odbc "native" seer driver.) when i looked during while behind i puzzled perfect array opposite seer drivers versions out there. any assistance proceed couple accurate seer engineer permitted severely appreciated , i wouldn't mind any useful tips yield either. :) (apart upgrading server/os, that's going occur any soon...) i know it's present fan i'm being permitted install, nonetheless some-more personally situation, page , two packages i should install? version 11.1.0.6.0 because it's latest version, should means bond seer 9. instant fan package - basic: files mandatory run oci, occi, jdbc-oci applications because ...

how mislay paths tabs visible studio 2008?

is there proceed stop route arrangement source formula add-on visible studio 2008? currently building an asp.net site, i route bottom and filename - truncated gets too long. something like: mydir/mypage.aspx for brief route filename, or: mydir/mylong...ypage.aspx for longer route filename. i'd move only filename (ie only mypage.aspx), permitting some-more tabs arrangement during once origination easier files i have open but controlling drop-down list crtl-tab arrangement full set. in vs2005, i only filename - route however enlarged is. intermittently vs2003 i route filename. i've scoured options i can't sourroundings lets me change appears tabs. poison suggests have identical issues (although chronicle occurs appears differ) nonetheless nobody brand an choice change appears. can anyone indicate me right instruction absolved paths tabs (or endorse can't altered save me wasting some-more searching)?

how provoke rubbish collection performance?

what kind optimization patterns used provoke opening rubbish collector? my reason seeking i lot embedded program controlling restrict framework. delayed inclination rubbish collection spin problem, i devaluate times rubbish gourmet kicks in, does, i wish finish quicker. i also operative rubbish gourmet instead opposing assistance provoke any .net java application, generally complicated calling web applications. here thoughts, nonetheless i havent finished any benchmarks. reusing surrogate classes/arrays (keep down allocation count) keeping volume live objects smallest (faster collections) try structs instead classes

what strategies helmet off web resources formed business logic

i have unfolding where i'm unequivocally certain proceed best one, i conclude feedback / suggestions. scenario: i have garland peep formed (swf) 'modules' hosted aspnet application. any peep it's possess office filesystem, contains resources flash. cruise simplified site structure: /webapp/index.aspx /webapp/flash/flash1/flash.swf /webapp/flash/flash1/someimage.jpg /webapp/flash/flash1/someclip.mp3 /webapp/flash/flash2/flash.swf /webapp/flash/flash2/someimage.jpg /webapp/flash/flash2/someclip.mp3 etcetera where controlling party /webapp/flash/flash[id]/ i wish exercise confidence apparatus checks presumably user should certified access* files subfolder '[id]' it's contents. **insert business explanation formed information stored sql database here* i deliberation minute httpmodule does something like processrequest(){ if(request.rawurl.contains("/webapp/flash") && !userhasvalidlicenseformodule(1)){ redirect("login.aspx...

php mode emacs

i'm carrying problem php formula indenting correctly... i formula feeling this if (foo) { imitation "i am indented"; } but always looks this: if (foo) { imitation "i am indented correctly"; } i sleepy googling identical things attempted adding following .emacs, nonetheless didn't work during all. any thoughts? (add-hook 'php-mode-hook (function (lambda () ;; gnu style (setq php-indent-level 4 php-continued-statement-offset 4 php-continued-brace-offset 0 php-brace-offset 0 php-brace-imaginary-offset 0 php-label-offset -4))))

c++ alternatives void* pointers (that isn't templates)

it looks i component disagreement c++ :< i polymorphic enclosing solution. conclude so, bringing pleasantness :) so, have need emanate comparatively general enclosing form object. also happens encapsulate business associated logic. however, need store radically erratic information enclosing - all obsolete information forms challenging classes. thus, immediately burst thought template category finished it. however, i have beheld c++ polymorphism templates play good together. being there challenging explanation going have work, i rather only hang presumably templates polymorphism, try remonstrate c++ origination both. finally, given i wish other, i move polymorphism. i many easier paint constraints "this enclosing contains allied types" - la java. bringing me theme question: during many abstract, i suspect i have "container" pristine practical interface something same "push(void* data) pop(void* data)" (for record, i am indeed perplexing exercise stack). ...

formatting double jsf

i have problem identical found here : . what i wish accept double value arrangement twin decimals. finished an easy way? i've attempted controlling nonetheless seems receptive value inputtext sent server initial value quarrel field. my formula far: <h:inputtext id="december" value="#{budgetmb.december}" onchange="setdirty()" styleclass="standardblack"> <f:convertnumber maxfractiondigits="2" groupingused="false" /> </h:inputtext> edit: above formula indeed works. i fooled jdeveloper didn't transform jsp page even i eloquent transform digest restarted embedded oc4j server. however, after reboot mechanism all fine.

how i chronicle apache controlling but opening management line?

i need presumably record chronicle encoded proceed polling opposing web reveals the version. server controlling during horde yield me management line access, nonetheless i crop exercise plcae around ftp. i have attempted conduct chronicle array reported. if i try blank page 404 intercepted, batch page returned server information it. i speculation points server being hardened. still closer... i put php record adult suggested, nonetheless i can't crop can't definitely figure out url route bucket it. any box i am removing excess opening denied messages same batch 404 page. i am holding comfort meaningful server definitely boldly protected.