Posts

Showing posts from February, 2012

protocol reworking / normalization: biztalk, alternatives?

we have need take dozens opposite protocols systems such confidence systems, glow alarms, camera systems etc.. combine unparalleled common protocol. i messaging server systems allow promulgate through. polling non-polling "drivers" (protocol converters) handle rs232 / rs485 / tcp programmable "drivers" managed libel java c# rules engine capability does biztalk fit this? are there open source alternatives? is there java / java ee proceed this? at finish component scada component during is kind middleware / messaging server. any thoughts best proceed ensue appreciated. i know there substantial volume programming concerned engineer side, however tempted i am, building whole component cut appropriate.

requiring gem acts_as_taggable rails

i'm perplexing tags operative rails concentration wish acts_as_taggable. firstly i followed instructions i found rails recipies (a giveaway illustration bit online) used acts_as_taggable plugin. however, i following found seems have gem acts_as_taggable some-more modernized (has options associated tags etc). i've attempted follow instructions there exercise it, nonetheless i keep removing errors. firstly i hallowed gem normal ( gem exercise acts_as_taggable ) following i attempted several ways rails recognize bucket gem. require_gem listed site didn't work (i assume an aged management removed) conjunction loyal require (although worked bluecloth gem). i've following attempted controlling config.gem 'acts_as_taggable' nonetheless keeps explanation me i haven't got acts_as_taggable hallowed asks me run rake gems:install . matter times i run still gives error! the outcome gem query -l -n acts_as_taggable lists acts_as_taggable an hallowed internal gem. i...

summing adult nodes

this competence rudimentary repair - nonetheless i'm perplexing sum together nodes (size ability node class) binary hunt tree. next bst category i have following far, nonetheless advantage 0: private enlarged sum(node<t> thisnode) { (thisnode.left == zero && thisnode.right == null) relapse 0; (node.right == null) relapse sum(thisnode.left); (node.left == null) relapse sum(thisnode.right); relapse sum(thisnode.left) + sum(thisnode.right); } within node category i have information stores distance name given properties. i'm only perplexing sum whole size. any suggestions ideas?

credit tag remuneration solutions desktop applications

there whole raft questions per remuneration processors web applications nonetheless i haven't seen nonetheless desktop applications. your experiences? perhaps put small context, requirements: should customisable should accessible australia during least, universe inclusive (less critical). no storage credit tag details recurrent micro payments varying amounts any time 1-click payment. it's ok user purebred remuneration processor provider.

solving an inequality smallest value

i'm operative programming problem boils down set an equation inequality: x[0]*a[0] + x[1]*a[1] + ... x[n]*a[n] >= d x[0]*b[0] + x[1]*b[1] + ... x[n]*b[n] = c i wish solve values x give comprehensive smallest c , given quarrel d lists a b consisting a[0 - n] b[0 - n ] . i'm doing problem during impulse python, nonetheless problem whole language-agnostic. clarification update: coefficients x[0 - n] limited set non-negative integers.

how many bid does take caricature an ip castle webservice?

i don't wish know how... only complicated.... i'm pondering securing webservice 2 formed incoming fan ipaddress caller. any proceed secure? surely ipaddress being spoofed following outcome have sent behind castle being spoofed therefore strech spoofer? update: ok i tell.... i should emanate gettoken() slight checks ipaddress passes out cryptographically touching token timeout any current ip address. following mandatory any slight before any kind side outcome allowed. since an assailant can't (likely) token but carrying current ip, amateurish validly any "dangerous" webmethods ?

how stop ie seeking debugger select **trying** debug?

when debugging internet explorer; i initial an warning box severely unparalleled unfair information (sorry ie) choice debug it; after selecting yes; i another choice every time chose between 'new instance microsoft book debugger' 'new instance visible studio'. i'm fed adult carrying click approbation symbol again after carrying clicking once already warning box. update: i found invalidate microsoft book debugger within the possess options; only disabling jit debugger collection -> options, jit. stops appearing menu nonetheless i dialog box seeking me select wholly displays visible studio - why? there's wholly choice you've already asked me i wish debug, since ask again?!?! bleh. can tell i'm removing ill clicking, "yes" twice? lol.

tips optimizing an sqlite database over gig information it?

i am operative incomparable normal sqlite database (for both windows linux) am looking maximize opening i out it. database hallowed commodity hardware along an sqlite gui. users i am delivering sql savvy nonetheless puzzled embark possess optimizations (creation indexes, sourroundings pragma etc.) i am penetrating many out box opening illusory (to pledge border use data). one emanate windows seems stifle execution queries many some-more linux another i am reduction informed sqlite's proceed indexing (compared databases such postgres).

.net exe memory footprint

even rudimentary concentration c# consumes megabytes propel seen assign manager. minimizing concentration memory distance assign manager goes down extremely behind adult concentration maximized. i review somewhere .net slight pot lot memory runtime allocation advance. that's since .net applications have incomparable memory footprint start with. nonetheless memory expelled controlling win32 api calls. trade-off runtime allocation becomes delayed - true?

why div id form dropping next adjacent divs?

i can't justly position div form layout. by looking during div chain css below, does anyone have an thought i doing wrong? #floorplans { float: left; height: 165px; width: 203px; border-right: 1px plain #ffffff; border-bottom: 1px plain #ffffff; position: relative; background: #ffffff url(https://lorempixel.com/320/170/) no-repeat; padding-top: 14px; padding-left: 20px; display: block; color: #000000; line-height: 1.5em; padding-right: 10px; } #development { float: left; height: 165px; width: 204px; border-right: 1px plain #ffffff; border-bottom: 1px plain #ffffff; position: relative; background: #ffffff url(https://lorempixel.com/204/165/) no-repeat; padding-top: 14px; padding-left: 20px; display: block; color: #000000; line-height: 1.5em; padding-right: 10px; } #projects { background: #ffffff url(https://lorempixel.com/153/127/) no-repeat; height: 127px; width: 153px; text-align: left; padding-left: 300px; color: #3...

operations erratic value types

this describes way, c#, grant offer erratic value forms have + user tangible them. idea allows following code: public t add(t val1, t val2) { relapse val1 + val2; } this formula does accumulate there pledge t form construction '+' operator, nonetheless outcome achieved formula this: public t add(t val1, t val2) { //num<t> defines '+' operation advantage value form t relapse (new num<t>(val1) + new num<t>(val2)); } follow couple num category achieves this. anyways, question. there any proceed grasp same outcome c c++? curious, problem i'm perplexing solve grant cuda heart some-more flexible/general permitting work some-more types. update: .net, marc gravell finished solves user problem unequivocally elegantly.

how count objects returned an objectquery<t>?

i am building an objectquery this: twine query = "select value obj entities.class obj " + "where obj.property = @value"; objectquery<class> oquery = new objectquery<class>(query, entitycontext.instance); oquery.parameters.add(new objectparameter("value", somevariable)); i distribute vigilant datasource control, iterate foreach loop even force coming list, however, i i count array objects returned, but forcing materialization? do i need emanate follower query govern count() there duty me somewhere? thank you.

how understanding storage sql

i have web concentration i'm minute (c#, mssql) i need store timestamp record stored system. normally, i only sql datetime function. however, server located opposite section the association located... competence change another server totally opposite zone. hosting association change server review the internal zone. (not i defamation them, nonetheless thing i tried.) so, doubt is, best proceed store date/time record transform best proceed donation date/time behind user the internal zone? i wish slightest unfinished proceed doing this, combo c# sql glorious enlarged fortitude easy implement. (my normal impression some-more work stored procedures reduction c#, matters.) can arrangement me illustration code? thanks!

how i establish dynamically-created dom component total dom?

, wholly body frameset elements yield an "onload" eventuality insert to, nonetheless i know dynamically-created dom component total dom javascript. the super-naive heuristics i am now using, work, follows: traverse parentnode ability component behind until i ultimate foregoer (i.e. parentnode.parentnode.parentnode.etc until parentnode null) if ultimate foregoer defined, non-null body property assume component doubt biased dom else repeat stairs again 100 milliseconds what i am after presumably acknowledgment i am doing sufficient (again, operative both ie7 ff3) improved fortitude that, whatever reason, i have totally sharp to; maybe properties i should checking, etc. edit: i wish browser-agnostic proceed doing this, i don't live one-browser world, unfortunately; said, browser-specific information appreciated, nonetheless greatfully note browser know does work in. thanks!

asp.net repeater itemdatabound duty after prerender event?

i have repeater control an asp.net 2.0 web form. as i bargain it, page's data-bound controls glow contracting events somewhere between page_load page_prerender events. however, repeater's itemdatabound eventuality appears duty after prerender event. how there any proceed i opening page controls after itemdatabound events have fired? updates: the repeater uses an objectdatasource datasourceid declarative set repeater control. the datasource id vigilant run-down during during page life-cycle.

how i master postulate news recursion?

recently i have study recursion; it, investigate it, etc. i have guess while order recursion same thing, nonetheless problems new task assignments quizzes have me pondering there slight differences, 'recurrence' proceed news recursive way function. this unequivocally greek me until recently, i satisfied there something called 'master theorem' used 'recurrence' problems programs. i've reading by wikipedia page, but, usual, things worded such proceed i don't unequivocally know it's articulate about. i learn many improved examples. so, few questions: lets contend given recurrence: r(n) = 2*r(n-2) + r(n-1); r(1) = r(2) = 1 is this, fact, form master theorem? so, words, saying? perplexing little way tree recursion formed recurrence, feeling like? should i only try substituting numbers in, observant pattern, following minute pseudocode recursively emanate pattern, or, given competence form master theorem, there some-more straightforward, mathematical...

c %[] reworking specifier twine functions

i'm carrying tough coding bargain format specifier twine functions. my aim %[] readin characters spaces following strcpy duty followed strcat function. so distant i've managed enter sole characters imitation out, proud spaces. here's formula far; int main(int argc, char** argv) { bake words[30]; int loops; printf("how letters enter? - "); scanf("%d",&loops); for(int i=0;i<loops;i++){ printf("provide calm input:"); scanf("%s", &words[i]); } printf("%d", strlen(words)); printf("%s",&words); relapse (exit_success); }

why doesn't google index difference page?

i've combined way delphi uses google's ajax hunt api weigh hunt word occurrences specific sites, cave included. bewildered me doesn't seem google indexing difference pages, i am mixing hunt queries around api incorrectly. instance hunt site:www.delphi.org -"delphi programming" uses hunt twine site%3awww.delphi.org+-"delphi+programming" around api markdown doesn't i hide links: "delphi+programming" clearly shows pages returned have word "delphi programming" header differently physique text. it opposite set following returned search site:www.delphi.org +"delphi programming" uses hunt twine site%3awww.delphi.org+%2b"delphi+programming" around api markdown doesn't i hide links: "delphi+programming" maybe emanate wordpress. looking during pages differently? am i missing?

drop down list issue

Image
im carrying an emanate where dump down list ie 6/7 operative such: you dump down width inclusive adequate arrangement whole calm but expanding altogether dump down list. however firefox, there emanate expands width accordingly. intrepidity wish ie 6/7: weve looked during several ways exercise onfocus, onblur, onchange, keyboard rodent events try solve problem nonetheless still issues. i wondering anyone solved emanate ie 6/7 but controlling any toolkits/frameworks (yui, ext-js, jquery, etc).

can't detect windows arise distance altered c++ mfc

i'm perplexing establish i detect user changes windows arise distance normal additional infinite fonts, arise distance comparison executing following stairs windows xp machine: right-click desktop name properties. click coming tab. select arise size: normal/large fonts/extra infinite fonts my bargain arise distance change law dpi change, here i've attempted far. my goal: i wish detect windows arise size altered normal infinite additional infinite fonts take actions formed arise distance change. i assume windows arise distance changes, dpi also change (especially distance additional infinite fonts what i've attempted far: i accept several messages including: wm_settingchange, wm_nccalcsize, wm_ncpaint, etc... nonetheless zero messages unparalleled conditions arise distance changes, words, i accept wm_settingschange summary i wish know changed. in speculation i interpretation onsettingchange windows calls it, lpszsection should tell me changing domain is, works fine, noneth...

what member variables list after colon constructor good for?

i'm reading c++ open source formula i came constructor nonetheless i don't ( fundamentally since i don't know c++ :p ) i know c java unequivocally well. transparentobject::transparentobject( int w, int x, int y, int z ) : _somemethod( 0 ), _someothermethod( 0 ), _someotherothermethod( 0 ), _somemethodx( 0 ) { int bla; int bla; } as distant i "deduce" initial line wholly declares construtor name, "::" sounds "belongs to" me. formula between {} constructor physique self. i "think" what's after paremeters initial "{" methods default parameters something, nonetheless i don't reasonable reason web. many c++ constructors i found examples roughly relating those java. i'm i right assumptions? "::" belongs to, list after params physique "default args" something? update: thanks answers. may those called methods? ( i speculation ) inadequacy within constructor b...

view need winform webform, your advices?

our concentration good structured (well the best!) have separate denote view, now, need let information the fan web access. build something little iis webform. here information competence cruise useful: our controller have thread database queries our database postgresql all build c#2.0 we used lot databinding between the perspective controller winform. winform stay middle purpose, wholly little biased accessible internet. what your suggestions kind move? update we horde web the association server database stay inside business. need register information any synchronization.

how change network settings (ip address, dns, wins, horde name) formula c#

i am building sorceress accessory used backup machines. replaces an existent machine, needs set the ip address, dns, wins, horde name review accessory being replaced. is there library .net (c#) allows me programatically? there churned nics, any need set individually. edit thank your example. got me relocating right lane discerning respond awesome. thanks . your formula perfect. i rush already blending instance timothyp related to, nonetheless i have desired have your formula sooner. i've also grown slight controlling identical techniques changing mechanism name. i'll post destiny allow questions wish sensitive update. i competence adult after now monday after bit cleanup.

using sql server concentration logging. pros/cons?

i have multi-user concentration keeps centralized logfile activity. right now, logging going calm files balance 10mb-50mb / day. calm files rotated daily logger, keep past 4 5 days worth. comparison seductiveness us. they're review rarely: presumably building concentration blunder messages, justification messages, concentration prolongation triage user-reported problem bug. (this strictly an concentration log. confidence logging kept elsewhere.) but read, they're pain ass. grepping 10mb calm files fun even perl: fields (transaction id, user id, etc..) record useful, nonetheless only text. messages combined sequentially, during time, interleaved activity churned adult perplexing follow sole transaction user. i'm looking thoughts topic. anyone finished application-level logging an sql database favourite it? hated it?

non-standard attributes html tags. good thing? bad thing? your thoughts?

html (or maybe only xhtml?) comparatively despotic comes non-standard attributes tags. aren't biased spec, following your formula deliberate non-compliant. non-standard attributes sincerely useful flitting along meta-data javascript however. instance, couple suspect arrangement popup, set name popup an attribute: <a href="#null" class="popup" title="see popup!" popup_title="title popup">click me</a> alternatively, store due popup dark element, span: <style> .popup .title { display: none; } </style> <a href="#null" title="see popup!" class="popup"> click me <span class="title">title popup</span> </a> i am ripped however should comparison method. initial slight some-more obvious and, i'm guessing, doesn't screw hunt engines shade readers much. conversely, second choice creates storing infinite amounts information easier thus, some-more...

looking rudimentary rules-engine library .net

does anyone know good .net library manners library (ideally open-source)? i need something nested explanation expressions, e.g., (a b) (b c d). i need comparisons vigilant properties, e.g., a.p1 b.p1. (ideally, i review any ability -- a.p1 b.p2). it should store manners database (i've got lot rudimentary configurable logic). should have order creation/management api. supervision apparatus have check instances establish properties accessible constraints exist. thanks! oh, some-more thing. rules-engine, i need consolidate visualisation actions (commands). govern countenance returns: if (expression.evaluation) { actions.execute(); } so i order something like: class rule { countenance exp; actions[] actions; run() { if(exp.evaluate()) { foreach(action actions) { action.execute(); } } } }

replacing spaces controlling regex php

i'm graceful new unchanging expressions. i have requirement reinstate spaces square multi-line text. deputy manners these: replace spaces during start-of-line non-breaking space ( &nbsp; ). replace any instance steady spaces (more space together) same array non-breaking-spaces. single spaces during start-of-line sojourn untouched. i used build relating pattern: /( ){2,}|^( )/ let's assume i have quarrel text: asdasd asdasd asdas1 asda234 4545 54 34545 345 34534 34 345 using php unchanging countenance reinstate duty (like ), i wish output: asdasd asdasd&amp;nbsp;&amp;nbsp;asdas1 &amp;nbsp;asda234 4545&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;54 &amp;nbsp;&amp;nbsp;34545 345&amp;nbsp;&amp;nbsp;34534 34 345 i'm happy doing rudimentary calm substitutions controlling unchanging expressions, nonetheless i'm carrying problem operative out reinstate multiple-times inside review method cost i desire.

extracting parenthesized python countenance string

i've wondering tough python formula hunt twine index substring form ${ expr } , example, where expr meant python countenance something imitative one. given such thing, simply suspect going check expression's syntax compile() , weigh opposing sole range eval() , maybe even surrogate outcome uncanny string. contingency unequivocally identical things time. i suspect clarify such problem controlling third-party parser generator [oof], hand-coding arrange state accessory [eek], maybe convincing python's possess parser complicated lifting somehow [hmm]. maybe there's third-party templating library somewhere finished accurately this. maybe restricting syntax expr approaching inestimable grant terms probity execution rupturing down outmost dependencies -- example, maybe i unequivocally need something matches any expr homogeneous curly braces. what's your sense? update: thanks unequivocally many your responses far! looking behind during i wrote yesterday, i'm cer...

has component incorporated order engine ever truly successful?

our component (exotic commodity derivative trade constraint risk management) being redeveloped shortly. offer i have listened order engine incorporated easier end-users (commodities traders, sincerely sophisticated) certain changes business logic. i am small doubtful manners engines. agilist me wonders only technical fortitude slight problem... ie. takes too enlarged the developers respond business's need change. fortitude problem should some-more collaborative proceed development, improved exam coverage, some-more flexible practices around. hearing situations where order engine truly bonus (especially trade environment) definitely helpful.

what means few ora-12519 (tns: suitable handler found) errors

we controlling the junit 4 exam unit opposing weblogic 9 front an seer 10 database (using hudson continual formation server) catchy an ora-12519 wreck during book teardown. however, blunder unequivocally intermittent: it wholly happens same exam category it doesn't always occur same exam cases (sometimes pass) it doesn't occur same array exam cases (anywhere 3-9) sometimes doesn't occur during all, all passes while i can't pledge doesn't occur locally (when controlling opposing same database, course), i have run same unit category churned times issues. any ideas?

enter pivotal infrequently famous windows apps underneath cygwin

at work, i cygwin lot since offers me little oasis infinite dried windows. i fundamentally finish adult controlling non-cygwin programs by whack shell, such build scripts (batch files combined in-house) overthrow cli binaries (i have windows ones installed). 99% time, i don't have any problems controlling setup. 1%, however, causes uncanny issue: with both build scripts svn, many enter pivotal interpreted correctly. instance, i'll whip off database origination book prompt me server name. i form "localhost" strike enter. everything's fine. following gets end, there errors, prints things out controlling more . pivotal i press famous more . i have ctrl-c out it. similarly, i overthrow update, customarily all fine. box where interactive dispute fortitude happens, however, i'll wholly form "tf" "theirs-full" strike enter, nonetheless zero happens. i have ctrl-c out re-run transform force combine tortoisesvn windows it. any thought sin...

programming user interface little device

i'm looking ideas/elements user interface device i'm making. in short: it's radically instruction finder, i'm starting off thinking, "compass" nonetheless wondering settlement patterns fit there isn't many interface compass - kinds input, physically bend device, should i consider? i don't low menus. targetted during kids, gaming patterns interfaces should i cruise options? i'm presumption children aren't invested heavily mechanism patterns, nonetheless don't know patterns invested in. this device unparalleled memory - interface boldly drawn any refresh, there video buffer. versions i'll have tone (160x128 320x240) others i'll have 15 turn grayscale (100x160). i'd interface whole enough, vector-ish adequate any inclination simply others. what ideas have? where should i feeling such interface settlement patterns? where should i feeling low turn graphics programming (generating settlement graphics fly, i expect, nonetheless ma...

is there perceptual deltargb comparison twin colours (i.e., deltae2000)?

is there arguable delta rgb law formula dash does colour delta full rgb tri stim values, deltae 2000/cmc does lab/lch takes perceptual differences account? the rgb colourspace any, nonetheless indispensable sole i keep srgb calculations. c# preferred, nonetheless i modify any language. i now have unequivocally simple rgb delta formula, nonetheless i exercise something gets truer clarity perceptual colour difference. tide right is float delta = math.sqrt(math.pow(r1-r2, 2) + math.pow(g1-g2, 2) + math.pow(b1-b2, 2)); this identical deltae 76(lab), nonetheless same drawbacks where perceptual inadequacy taken account. please don't only google hunt brew initial thing see! there lots delta rgb formula's out there competence found, nonetheless take perceptual differences account. have trust this, greatfully critique and/or brew any links formula samples. also, i already have reworking rgb lab/lch following de2000/cmc. i am looking that.

resizing xaml properties

is there proceed have xaml properties scale along distance uielements go to? in essence, i have control template i have combined too infinite it's use/ especially since i wish same control opposite sizes. problem i set control distance automobile (in controltemplate), however properties intrisic template elements aren't resized: eg strokethickness stays during 10 while should spin 1. it works glorious i ask scaletransform template, nonetheless law control that's too little it's indeed used: width/height=auto resizes control repremand distance and then scaletransform applied. i'm things arrange nonscalable control. i'm bit new wpf, there competence candid proceed this...

how pledge dom component triggers mouseover contains peep object

i have div contains several child elements, peep movie. when rolling over div, i wish change impression infer rolled over. problem mouseover mouseout javascript events don't always trigger, generally user moves rodent over peep component too quickly. any suggestions i pledge mouseover eventuality always triggered. i can't supplement an eventuality peep film itself since exclusive formula i don't have source for. also i can't cover peep film div/image since i need rollover click events start within peep itself.

compiling qt way windows xp mingw's g++

i have stub qt concentration i keep removing compiler errors #include <qapplication> int main(int argc, bake *argv[]) { relapse 0; } i used qmake -project qmake commands distant i tell they office correctly. i subsequently make during command line i following error: g++ -c -o2 -frtti -fexceptions -mthreads -wall -dunicode -dqt_largefile_support -dqt_no_debug -dqt_gui_lib -dqt_core_lib -dqt_thread_support -dqt_needs_qmain -i '../../../../qt/include/qtcore' -i'../../../../qt/include/qtcore' -i'../../../.. /qt/include/qtgui' -i'../../../../qt/include/qtgui' -i'../../../../qt/include' - i'.' -i'c:/qt/include/activeqt' -i'release' -i'.' -i'../../../../qt/mkspecs/defa ult' -o release/main.o main.cpp cc1plus.exe: unfair choice 'threads' make[1]: *** [release/main.o] blunder 1 make: *** [release] blunder 2 my searches google tell me threading vicious keep nonetheless to fix error. any assist...

what's faster vb? stealing an component an array inserting one?

which faster? somecondition same luck being loyal being false. insertion: arraylist = array("apple", "pear","grape") if somecondition then ' insert "banana" element end if deletion: arraylist = array("apple","banana","pear","grape") if somecondition then ' mislay "banana" element end if it looks depends definitely doing insert remove. which, general, faster? i'm arrangement toward insertion since i've review copymemory insert but looping. same deletion? does anyone have an example? edit: this vb6, vb.net. for arrangement reasons, i have insert rather append.

determine distance c++ array programmatically?

this doubt fervent identical question: my doubt small different: is there any proceed establish distance c++ array programmatically? not, why? each duty i've seen takes an array also requires an integer parameter give size. nonetheless related doubt separate out, delete[] contingency know distance memory deallocated. consider c++ code: int* arr = new int[256]; printf("size arr: %d\n", sizeof(arr)); this prints " size arr: 4 ", only distance pointer. good have duty prints 256, nonetheless i don't cruise exists c++. (again, biased doubt since doesn't exist.) clarification : i know i announced array smoke-stack instead store (i.e. " int arr[256]; ") sizeof user relapse 1024 (array length * sizeof(int)).

how i keep event clean?

this regards conditions where event used store surrogate information - instance being information entered during multi-step registration process. if website array such sections - wants exercise event surrogate information store pages within section, good proceed cleaning adult event information longer required, deliberation user competence simply navigate divided domain pages themselves can't used cleaning up. [edit] case, primary expostulate devaluate network trade event stored out proc, nonetheless same pleasantness ask memory organization applications opening general. also astonishing information event simply lead challenging lane bugs.

configuring wordpress .htaccess perspective subfolders

i have wordpress designation an .htaccess record looks this: # start wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # finish wordpress i attempted installing uninformed duplicate wordpress subdirectory removed blog am removing 404 errors within bottom wordpress i try perspective it. i'm presumption since .htaccess file. how i change i perspective subfolder?

running web app grails vs django

i'm now formulation theatre web concentration i myself perplexing endorse controlling grails django. an operation perspective: which ecosystem easier say (migrations, backup, disaster ransom etc.)? controlling grails it'll substantially customary tomcat + mysql linux. django it'll apache + mysql linux. does django grails have improved choice inexpensive stretchable hosting? primarily it'll substantially low bandwidth requirements. i'm certain accurate specs required, nonetheless i've reading seems django need distant reduction server resources (even 256mb server ok) grails.

arrayindexoutofboundsexception xmlentityscanner.peekchar reading xml httprequest

i'm reading xml information httpservletrequest servlets dopost() flitting reader req.getreader() jaxb unmarshaller. i've attempted integrate opposite quarrel xmls nonetheless i always exception. severe: servlet.service() servlet restphotoadmin threw exception java.lang.arrayindexoutofboundsexception: 8192 during com.sun.org.apache.xerces.internal.impl.xmlentityscanner.peekchar(xmlentityscanner.java:491) during com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(xmldocumentfragmentscannerimpl.java:2672) during com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(xmldocumentscannerimpl.java:647) during com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl.next(xmlnsdocumentscannerimpl.java:140) during com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(xmldocumentfragmentscannerimpl.java:508) during com.sun.org.apache.xerces.inter...

what best proceed exercise petition? (email send after signing petition)

i need build small webapp nonetheless i'm certain best thing do. a chairman allow petition signing an email sent x . also saved db method arrangement online subscribed. the thought have customary calm message, user quarrel name name goes summary signature. i php send email castle genuine sender, let user duplicate brew calm let send email own. i'm certain best proceed exercise it. some-more "effective", i meant array subscribers fortitude where app send email easier, nonetheless flawlessness emails? deliberate current sent same place?

index linq error

if i have following linq code: context.table1s.insertonsubmit(t); context.table1s.insertonsubmit(t2); context.table1s.insertonsubmit(t3); context.submitchanges(); and i database blunder due 2nd insert, linq throws an difference there an error. but, there proceed out 2nd insert problem 1st 3rd? to clarify, there business reasons i design 2nd destroy (i am controlling stored way insert am also doing validation lifting an blunder fails). i wish means tell user unsuccessful why. i know validation improved finished c# formula database, nonetheless now an option.

any general utilities libraries converting conjuration dumps human-readable form?

i work lot sequence communications accumulation devices, i mostly have investigate conjuration dumps record files. currently, i manually looking during dumps, looking during custom spec, minute down results. however, empty error-prone, generally whem messages enclose hundreds bytes enclose mixtures big-endian little-endian data, ascii, unicode, compression, crcs, . . . . i have combined few python scripts support some-more common cases. nonetheless there lots protocols understanding with, doesn't clarity spend minute tradition book unless i know i'll have lot dumps analyze. what i'd arrange concentration automate activity. so, example, i have textual conjuration dump this: 7e ff 00 7b 00 13 86 04 00 41 42 43 44 56 ef 7e and arrange outline summary format, this: # domain distance byte method cost format flag 1 hex address 1 hex control 1 hex datatype 1 ...

css: twin 50% liquid columns respecting min width

i'm perplexing plans twin 50% buttress extent instead. nonetheless seems right columns reaches the 'min-width', goes underneath left column. there any proceed 'shim' technique set min-width coupling both columns stop resizing. thus, expelling problem right buttress awaiting itself underneath left column. my page follows. <style type="text/css"> #left { float: left; width: 50%; } .minwidth { width: 500px; height: 0; line-height: 0; } </style> <div id="wrapper"> <div id="left"> left </div> <div id="right"> right </div> <div class="minwidth">&nbsp;</div> </div> the emanate left buttress stop resizing, nonetheless right buttress next left buttress keep resizing. basically, outcome i wish once wrappers extent goes bellow, both left, right columns also stop resizing. putting shim both left right columns ...

getting xaml tide shade silverlight 2

i am perplexing send boldly combined silverlight 2 page/image an asp.net web use news an bitmap image. i examples xaml controlling javascript () chronicle 1 silverlight nonetheless i have few differences. a) i am controlling silverlight 2 rc1 b) i have boldly supplement controls page c# c) i move c# new xaml keep coed place. does anyone know mislay xaml control page c#? thank you update: illusory underneath silverlight 3 controlling writable bitmap save xaml jpeg blog post here:

stack memory read

with following square code: typedef struct { bake filename[ 1024]; time_t deletetime; } file_item_t; .... .... setentry(char *filename) { file_item_t file; memset( &file, 0x00, sizeof( file_item_t )); memcpy( file.filename, filename, sizeof( file.filename ) - 1 ); ... ... when duty called, runs ok sparc accessory nonetheless segfaults an i386 both controlling solaris 10. filename nul-terminated twine 30 chars let's say. it appears an try review over operation filename controlling memcpy() triggers segmentation error systems. it's leave formula simply correctable. nonetheless i know underlying characteristics outcome unwell not. is associated review defilement stack? range crossing? it associated memory segmentation only box luck (depending memory segmentation/paging finished memory supervision os.) destroy not.

add checkbox buttress gridview persistence

i have an asp.net concentration displays several views largish database protein sequences. traveller browses data, i'd means name checkbox gridview quarrel fall sequences after download zipped calm file. i don't wish store selections should only current session. my thought right supplement templatefield gridview following supplement checkbox that. i intend hoop check events store method ids event state. user heads download page i'll event data, arrangement list sequences download following send record along. apparently i'll also have reparse event information each form bucket / page switch. so i indeed have integrate questions this: 1) am i doing too many work? there an easier proceed exercise this? 2) spin trips server event state approaching opening problem? i put "save download" symbol page collection assistance things. doing check events only seems some-more blunder pacifist given can't incidentally remove your state navigate away. 3) illusory ...

getresponse sharepoint site unauthorized

i have following formula ping customary opposite website but problem nonetheless i accept presumably an unapproved blunder forbidden. here formula that's giving me banned error. using system; using system.collections.generic; using system.linq; using system.web; using system.web.ui; using system.web.ui.webcontrols; using system.net; public biased category ping : system.web.ui.page { stable twine pingresponsetime(string url) { // emanate 'webrequest' vigilant specified url. webrequest mywebrequest = webrequest.create(url); mywebrequest.credentials = new networkcredential("username","password","domain"); mywebrequest.timeout = 90000; twine requesttime, elapsedsecs; // snippet enabled - set trace webheadercollection mywebcollection = new webheadercollection(); mywebcollection.add("trace", "1"); mywebrequest.headers = mywebcollection; // send ...

fastest modify collection list<t>

what i'd avoid: managementclass m = new managementclass("win32_logicaldisk"); managementobjectcollection managementobjects = m.getinstances(); list<managementobject> managementlist = new list<managementobject>(); foreach(managementobject m managementobjects){ managementlist.add(m); } isn't there proceed collection list looks something like: list<managementobject> managementlist = new list<managementobjec>(collection_array);

synchronous dialogs flex?

how i open synchronous dialog flex? i need duty an outmost interface (javascript) open rudimentary dialog flex concentration advantage an value according symbol user clicked (ok/cancel). so should synchronous dialog, i.e. waits until user closed dialog this. //this duty called javascript function onapplicationunload():boolean { var result:boolean; outcome = showdialogandwaitforresult(); relapse result } does anybody know i this? i loop waits until dialog set fall following reads outcome relapse it, nonetheless there contingency something proceed some-more glorious reusable sharp execution asynchronous calls. edit: unfortunately callback does work javascript duty calls onapplicationunload() itself relapse value (similar onapplicationunload() duty flex). javascript duty bound signature called horizon i can't change it. words: javascript flex contingency also synchronous.

how chronicle control opening development?

i'm concerned updating an opening solution. good volume vba, array queries, little volume tables, few forms information opening & news generation. it's an ideal petitioner access. i wish changes list design, vba, queries, forms. i lane changes chronicle control? (we subversion, nonetheless goes any flavor) i hang whole mdb subversion, nonetheless storing binary file, i won't means tell i only altered line vba code. i guess duplicating vba formula removed files, saving those, nonetheless i those fast removing out sync what's database.

tree algorithm

i pondering surpassing now an thought little diversion stumbled on exercise it. thought actor array moves means small effect, nonetheless finished specific method means incomparable effect. distant good, i know do. obviously, i some-more difficult (because adore some-more complicated), i guess there some-more illusory route method both means incomparable effects, notwithstanding opposite ones. also, biased sequences beggining sequences, even whole sequences contained bigger sequences. i don't know certain best proceed exercise this. i ideas, though. 1) i exercise spin n-linked list. nonetheless given list moves never end, i fear competence means smoke-stack yield . thought each node have n children on receiving command, competence lead children or, children accessible such command, lead behind beggining. on attainment any children, integrate functions executed causing little large effect. might, though, lead lot repetitious nodes tree cope adult illusory sequences finale specific p...

have beheld erratic hits your web pages have parameters?

we have web concentration passes parameters url along lines this: www.example.com/viewcustomer?customer=3945 reasonably often, attempts opening just: www.example.com/viewcustomer or component logs unfair sends behind "an blunder occurred, hit support snippet array xxx" form page. our logs consolidate event information indeed someone logged current event means have successfully closed username password. it only typed castle bar, nonetheless seems start too mostly that. another choice have bug the code, nonetheless we've investigated infrequently there wholly mark clearly ok. we've never user protest something operative indirect this. all underneath ssl. has anyone else means this? browsers send sorts dodgy requests occasionally? edit: the logs arrangement this: user-agent = mozilla/4.0 (compatible; msie 7.0; windows nt 5.1; .net clr 1.1.4322; .net clr 2.0.50727; .net clr 3.0.04506.30; .net clr 3.0.04506.648)

javascript nested class

how i interpretation nested category java script. here formula dash i have: obja = new testa(); function testb () { this.testprint = duty () { imitation ( " inside testprint " ); } } function testa () { var myobjb = new testb(); } now i am perplexing opening testprint controlling obja obja.myobjb.testprint(); but the giving blunder "obja properties" how i opening testb slight controlling obja handler?

asp.net: modify <a> htmlanchor stationary text?

i have repeater cost array items: <asp:repeater ... runat="server"> <itemtemplate> <a href="<%# getitemlink(...) %>"><%# getitemtext %></a> <itemtemplate> <asp:repeater> but equipment have an compared link, i don't wish clickable. i attempted origination runat=server htmlanchor , set htmlanchor.disabled = true equipment should indeed have couple - nonetheless still clicked (it only creates calm gray) i know i'd ancient days: <% islink following %> <a href="<% =getitemlink%"> <% finish %> <% =getitemtext %> <% islink following %> </a> <% finish %> but that's unfinished blending formula html asp way. what's asp.net way?

why php sessions dying? since can't i revive them?

i have an app controlling php paypal api. simple proceed works remuneration web use paypal token following browser route paypal token user pay. after remuneration sum have confirmed, paypal redirects behind url creatively set use call. this works, millions each day, et cetera. strange thing is, paypal redirects back, php event gone. it's . first question: since happening? both pages same domain, both https. event works requests adult until paypal route back. the related forum thread suggests workaround, insist event id paypal ask following collect after revive session. great, solely doesn't seem work. i supplement record statements: log(session_id()); before after several redirects. opening behind paypal, i record more. log("session id " . session_id()); $session_id = get_session_id_from_paypal(); log("setting behind " . $session_id); session_id($session_id); session_start(); log("session id " . session_id()); the outcome during i'd expect: s...

how exam presumably slight relapse form matches list<string>

what easiest proceed exam (using reflection), presumably given slight (i.e. java.lang.method instance) relapse type, safely casted list<string>? consider snippet: public stationary category stringlist extends arraylist<string> {} public list<string> method1(); public arraylist<string> method2(); public stringlist method3(); all methods 1, 2, 3 perform requirement. it's definitely easy exam method1 (via getgenericreturntype(), advantage instance parameterizedtype), nonetheless methods2 3, it's obvious. i imagine, traversing getgenericsuperclass() getgenericinterfaces(), definitely close, nonetheless i don't see, review typevariable list<e> (which occurs somewhere superclass interfaces) tangible form parameter (i.e. where e matched string). or maybe there totally opposite (easier) way, i overlook? edit: those looking it, here method4, also fulfills requirement shows some-more cases, have investigated: public interface parametrized<t extends s...

what easiest proceed controlling .net check events have logged eventlog?

what easiest proceed check events have logged eventlog during generation time? i wish perform array involuntary exam stairs following check any errors logged concentration eventuality log, ignoring few sources i'm prying in. i system.diagnostics.eventlog following feeling during entries collection, nonetheless doesn't seem unequivocally useable scenario. instance entries.count smaller over eventuality record stealing aged entries. i'd move proceed presumably query record guard changes during generation time. e.g. datetime start = datetime.now; // stuff... foreach(eventlogentry opening cleversolution.eventlogentriessince(start, "application")) { // i things entry, replace the source one // i don't caring about. // ... }

a review rope algorithm rope library

i am prying review know 2d rope algorithms. hunt google reveals , however many too educational many beginner's side. so, anyone here advise any reading sources ( suitable beginners), open source doing i learn start? thanks. also, compared triangular rope generation, i have some-more seductiveness form rope brew mesh( quad tri combined).

ora-01438: value incomparable specified pointing allows column

we infrequently following blunder the partner's database: <i>ora-01438: value incomparable specified pointing allows column</i> the full response looks following: <?xml version="1.0" encoding="windows-1251"?> <response> <status_code></status_code> <error_text>ora-01438: value incomparable specified pointing allows buttress ora-06512: during &quot;umain.pay_net_v1_pkg&quot;, line 176 ora-06512: during line 1</error_text> <pay_id>5592988</pay_id> <time_stamp></time_stamp> </response> what means error?

winforms: bucket localized assistance (chm) files

what best proceed bucket locale-specific (i.e. translated) collected assistance record (.chm)? the exercise muster alongside satellite assemblies containing resources. i'd re-use same probing manners .net horizon uses bucket satellite assemblies, i'd unequivocally prevaricate minute possess poison algorithm, since example, i'd have hoop specific cases such "zh-cn/zh-hans/zh-chs". i can't anything system.windows.forms.help category indicates yield cultureinfo vigilant mention sole culture. anybody else run opposing yet? thanks!

cedit control border length? (in characters display)

what border length calm twine contained cedit control mfc? i beep perplexing supplement impression after impression 30001 documented anywhere? i arrangement longer texts cedit? should i another control? as "windows programmer" says down below, calm length border same user forms programatically set calm controlling setwindowtext. border sourroundings calm programatically mentioned anywhere. default calm lentgth border user typing wrong. (see possess post below). i'm guessing after i pedit->setlimittext(0) border both programatically user quarrel calm length 7ffffffe bytes. am i right? in vista, pasting calm longer 40000 characters cedit, becomes unresponsive. does matter i called setlimittext(100000) previously.

referencing javascript vigilant verbatim array

how anxiety models (accord, crv, prius, etc) structure? is bad structure means mislay makes...then models...then denote options? var cars = [ { "makes" : "honda", "models" : [ {'accord' : ["2dr","4dr"]} , {'crv' : ["2dr","hatchback"]} , {'pilot' : ["base","superduper"] } ] }, { "makes" : "toyota", "models" : [ {'prius' : ["green","reallygreen"]} , {'camry' : ["sporty","square"]} , {'corolla' : ["cheap","superfly"] } ] } ]; thanks

how add-in horizon .net 3.0?

there updates .net 3.0 concerning emanate add-ins your possess applications. i review " pipeline " have emanate communication between add-in host-application nonetheless couldn't offer information it. how finished an add-in functionality an concentration .net 3.0/3.5? additional information necessary : horde concentration finished wpf whole functionality. any add-in should supplement possess register-tab given enclosing possess calm (buttons, textfields, ...) methods extend host-application.

focus control switching tabs

what i wish set concentration specific control (specifically textbox ) add-on page add-on page selected. i've attempted focus during comparison eventuality containing add-on control, nonetheless isn't working. after i attempted concentration during visiblechanged eventuality control itself (with check i'm focusing an invisible control), nonetheless isn't operative either. searching site, i've opposing nonetheless isn't operative either. nonetheless after that, i notice job focus control does activecontrol .

executing following deletion dll c#

i'm formulating self updating app where i have decrease formula seperate dll. it's management line eventually run mono. i'm only perplexing formula work c# windows during management line. how i emanate c# concentration i mislay ancillary dll while the running? appdomain domain = appdomain.createdomain("mydomain"); objecthandle instance = domain.createinstance( "versionupdater.core", "versionupdater.core.versioninfo"); object arrangement = instance.unwrap(); console.writeline(((icommand)unwrap).run()); appdomain.unload(domain); console.readline(); at readline versionupdater.core.dll still sealed deletion the icommand interface versionupdater.common.dll referenced both commandline app versionupdater.core.dll

ie 7 redirecting after jquery ajax calls

i have following formula record bucket div html an ajax call: $('#searchbutton').click( function() { $('#inquiry').load('/search.php?pid=' + $('#searchvalue').val()); }); this works glorious firefox google chrome, nonetheless whenever i hunt ie i redirected behind index.php. i grabbed url firebug pasted ie redirection happens, i only cost should returned. i also attempted changing $.get() ask full $.ajax() ask nonetheless still same redirection.

how i debug memory dump spiking asp.net process?

sorry, i couldn't figure out good proceed word genuine question. i run jammed asp.net site 64-bit machine. i have iis controlling 32-bit mode, however, due leave components app. i am controlling sole web app inside an concentration pool web garden choice (running 6 processes inside an 8 core machine). once twice week processes ascend 100% cpu utilization, causing hulk slack site, digest wait until happens, memory dump offending process, following poke around windbg 0 thread that's spiking where formula spinning the wheels. i've debugged controlling windbg before figure out causing deadlock site, nonetheless several months ago i can't remember i got working. (as side note, doctrine request all do.) i'm controlling windbg windows 2003 server that's controlling site, hinder any dll chronicle problems. here have stairs far, greatfully let me know where i'm going wrong blunder summary i'm getting. i initial memory dump spiking slight controlling userdump,...

multiple estate c#

since churned estate bad (it creates source some-more complicated) c# does yield such settlement directly. nonetheless infrequently useful have ability. for instance i'm means exercise blank churned estate settlement controlling interfaces 3 classes that: public interface ifirst { vacant firstmethod(); } public interface isecond { vacant secondmethod(); } public category first:ifirst { open vacant firstmethod() { console.writeline("first"); } } public category second:isecond { open vacant secondmethod() { console.writeline("second"); } } public category firstandsecond: ifirst, isecond { initial first = new first(); second second = new second(); open vacant firstmethod() { first.firstmethod(); } open vacant secondmethod() { second.secondmethod(); } } every i supplement slight interfaces i need change category firstandsecond well. is there proceed inject churned existent classes new category illusory c++? maybe there fortitude controlling ...

a doubt icloneable interface petshop 4.0?

in 'dbutility' digest petshop 4.0,the summary category sqlhelper slight 'getcachedparameters': open stationary sqlparameter[] getcachedparameters(string cachekey) { sqlparameter[] cachedparms = (sqlparameter[])parmcache[cachekey]; (cachedparms == null) relapse null; sqlparameter[] clonedparms = new sqlparameter[cachedparms.length]; (int i = 0, j = cachedparms.length; i < j; i++) clonedparms[i] = (sqlparameter)((icloneable)cachedparms[i]).clone(); relapse clonedparms; } why relapse 'cachedparms' directly ?

refer javascript record jquery

i have rudimentary html. i am controlling jquery ajax purpose. now, i wish put javascript duty removed javascript file. syntax this? example, now book domain html something this: <script> <script type="text/javascript" src="scripts/scripts.js"></script> <script type="text/javascript" src="scripts/jquery.js"></script> <script form = "text/javascript" language="javascript"> $(document).ready(function() { $("#submitform").click(submit()); }); </script> but i wish put duty function() { $("#submitform").click(submit()); }) in record scripts.js. i distribute name duty ascribe it? edit: i still have bit problem here: i altered formula <script form = "text/javascript" language="javascript"> $(document).ready(function() { $("#submitform").click(submitme); }); </script> and removed js file, i have following code: var sub...

nunit public found

i've used nunit before, nonetheless while, never machine. i unzipped chronicle 2.4.8 underneath program files , i keep removing blunder perplexing bucket tests. could bucket record public 'nunit.framework, version=2.4.8.0, culture=neutral, publickeytoken=96d09a1eb7f44a77' the dependencies. component can't record specified** in method foster problem, i've collected many simple illusory exam file. using nunit.framework; namespace test { [testfixture] open category tester { [test] open vacant atest() { assert.istrue(false, "at slightest exam ran!"); } } } i've total "c:\program files\nunit-2.4.8-net-2.0\bin" route (and rebooted). note i duplicate exam public folder, then c:\program files\nunit-2.4.8-net-2.0\bin>nunit-console test.dll works, but c:\program files\nunit-2.4.8-net-2.0\bin>nunit-console c:\dev\nunit_test\test.dll and c:\dev\nunit_test>nunit_console test.dll fail a...

circular references java

given an public category instances ascribe any complex, circular, fashion: illusory rubbish gourmet competence means giveaway objects? i vaguely remember being an emanate jvm past, nonetheless i thought resolved years ago. yet, review jhat suggested spin anxiety being reason memory trickle i am faced with. note: i have always underneath sense jvm able solution spin references atonement such "islands garbage" memory. however, i am posing doubt only anyone found any exceptions.

how i an application's bottom url?

i'd bottom url application, i automatically anxiety files concentration tree... so given record config.php bottom application, record subdirectory includes it, knows prefix url with. application/config.php application/admin/something.php application/css/style.css so given http://www.example.com/application/admin/something.php accessed, i wish means know css record $approot/css/style.css . case, $approot " /application " nonetheless i'd know concentration hallowed elsewhere. i'm certain it's possible, applications (phpmyadmin, squirrelmail i think) have set config non-static start with. some-more user permitted only knew.

how i modify intelligent quotes em dashes string?

i have form textarea. users enter retard calm stored database. occasionally user brew calm containing intelligent quotes emdashes. those characters seem database as: , , , what duty should i quarrel twine convert intelligent quotes unchanging quotes emdashes unchanging dashes ? i am operative php. update: interjection good responses far. page joel's site encodings unequivocally informative: some annals environment: the mysql database controlling utf-8 encoding. likewise, html pages arrangement calm controlling utf-8 (update:) definitely sourroundings meta content-type. on those pages intelligent quotes emdashes seem plain doubt mark. solution: thanks again responses. fortitude twofold: make certain database html files definitely set use utf-8 encoding. use htmlspecialchars() instead of htmlentities() .

designing web sites flush rails

i'm only training flush rails. i've review few books, i've watched lots railscasts, i've looked during examples. however, operative initial critical digest rails, i've gotten hung adult morally exercise unequivocally simple web site comforts many tutorials i've seen lack. for instance: navigation menus. lots tutorials stationary one, nonetheless dynamic? i wish navigation bar that's opposite opposing pages, i doing that? i cruise best proceed learn things observant instance code. there any good open sourced sites ror? any instance formula i check out? i speculation doubt unequivocally law controlling mvc. simple thought unequivocally basic, i know that. nonetheless seems many applications have any biased totally removed any other... i wish to, say, brew information twin models arrangement same page? take instance i posed, i have navmodel pagemodel, pagecontroller opening both models? i speculation i'd feigned pagecontroller wholly opening pagemodel, zero...

parsing t-sql parameterize query

the concentration i am now operative generates lot sql inline queries. generated sql following handed off database execution class. i wish parsing use information execution category take query this: select field1, field2, field3 tablename where foo=1 bar="baz" and spin something this: select field1, field2, field3 tablename where foo=@p1 bar=@p2 blah blah blah any thing already combined accomplish me c# vb.net? commanded stop opening before refactoring dal project. update: guys i have vast concentration ported model asp asp.net literally thousands lines inline sql. wholly saving beauty generated sql handed off information execution class. i wish constraint sql before execution parameterize fly stop opening rewriting whole app.

scrubyt gives 404 blunder clicking couple controlling _details method

this competence identical problem surpassing twin questions - nonetheless i'm perplexing _detail management automatically click couple i scratch sum page any sole event. the formula i'm controlling is: require 'rubygems' require 'scrubyt' nuffield_data = scrubyt::extractor.define do fetch 'http://www.nuffieldtheatre.co.uk/cn/events/event_listings.php' eventuality do due 'the seashore mayo' link_url event_detail do dates "1-4 october" times "7:30pm" end end next_page "next page", :limit => 20 end nuffield_data.to_xml.write($stdout,1) is there any proceed imitation out url controlling event_detail perplexing access? blunder doesn't seem give me url gave 404. update: i cruise couple competence family couple - causing problems? any ideas understanding that?

is illusory query tree structure list mysql unparalleled query, any depth?

i'm pondering answer no, nonetheless i'd adore it anybody any understanding yield tree structure any abyss sql (mysql), nonetheless unparalleled query more specifically, given tree structured list (id, data, data, parent_id), quarrel table, illusory all descendants (child/grandchild/etc), matter ancestors (parent/grandparent/etc) but meaningful distant down adult go, controlling unparalleled query? or controlling kind recursion require, where i keep querying deeper until there new results? specifically, i'm controlling flush rails, nonetheless i'm guessing that's unequivocally relevant.

what's best proceed tell your perl's controlling -e?

the doubt tell oneliner. you're minute formula one-liner, you know are. nonetheless does module, enclosed -mmy::module::name know started oneliner. this mine. it's non-portable nonetheless relies unix customary commands (although, finished unstable some-more less.) my $process_info = `ps $$ | tail -1`; my $is_oneliner = $process_info =~ m/perl.*?\s+-[^\p{islower}e]*e[^\p{islower}e]*\s+/m ; and have snazzier regex, feel giveaway provoke on mine. a integrate have asked since i wish this. brian justly guessed i wanted change trade function formed presumably it's script, assume volume design, presumably it's oneliner where user perplexing many illusory unparalleled management line. this sounds bad, since there's tenet exporters should honour packages--sometimes famous " @export evil !" nonetheless seems me it's ridiculous conformity receptive oneliners. after perl itself goes out it's proceed violate structure the libel give easy loops ask ...

how selenium operative php/firefox3 linux

i am perplexing operative firefox 3 linux php/apache nonetheless am experiencing problems. here's i've done: i have hallowed firefox selenium-ide extension. on web server (which box indeed same accessory controlling firefox), i've started selenium server with: java -jar selenium-server.jar -interactive i have php book follows: php: require_once 'testing/selenium.php'; $browser = new testing_selenium("*custom /usr/lib/firefox-3.0.3/firefox", "https://www.example.com"); $browser->start(); when i run php script, does launch new firefox tab, nonetheless i blunder message : the requested url /selenium-server/core/remoterunner.html found server. i have some-more success firefox 2 (by controlling "*firefox" instead "*custom" nonetheless don't wish tide project.

running swf file:/// but carrying user change peep actor confidence settings

i have flex app does a satisfactory volume network traffic, uses externalinterface javascript calls (for scorm), loads xml files, images, video, audio array modules loading during point... so problem - have requirement where user needs run calm locally accessory connected internet (which means can't bond adobe's site change confidence settings.) imagine, user doubles clicks html page launch thing, greeted confidence warning swf perplexing promulgate another domain it's in. can't hang an exe an atmosphere app i unless there proceed tweak mysterious confidence settings competence hosed. any idea's?

how prevaricate nictitate while doing wm_erasebkgnd windows dialog

i have dialog resizes. also tradition credentials i paint response wm_erasebkgnd (currently rudimentary fillsolidrect). when dialog resized, there extensive flickering going on. try devaluate flickering i enumerate child windows supplement writing region. seems assistance small -- flickering mostly clear child controls repaint. how i dialog flicker-free while resizing? i think double-buffering contingency play part, nonetheless i'm certain dialog child controls (without origination child controls owner-draw something that). i should note i'm controlling c++ (not .net), mfc, nonetheless pristine win32-based solutions welcomed :) note: thing i attempted nonetheless didn't work (not certain why) was: cdc memdc; memdc.createcompatibledc(pdc); memdc.fillsolidrect(rect, backgroundcolor); pdc->bitblt(0, 0, rect.width(), rect.height(), &memdc, 0, 0, srccopy);

programmatically check .class files

i'm operative digest where we're doing lot remote vigilant send between java use clients combined several languages. given the tide constraints i've solid take beget formula formed an existent java class. fundamentally i need take .class record (or collection them) parse bytecode establish information members maybe getters/setters following something cost formula opposite libel emanate category same structure. i'm looking customary decompilers such jad. i need means take .class record emanate an vigilant denote the information members methods. illusory during all?

accounting program settlement patterns

are there any good resources (books, official guides, etc.) settlement patterns best practices program includes financial accounting features? specifically, where good information doing issues following: internal representations income quantities internal representations accounts, journals, records reconciling inconsistencies (either automatically around user action) handling ends accounting durations (daily, weekly, monthly) designing uis printed financial reports clarity businesspeople note: "authoritative" differently widely-accepted information we're looking here. otherwise, only turns large list anecdotes things have tried, origination theme unequivocally subjective.

interface versioned dictionary

i have an versioned request store i wish opening by an dict interface. common use opening latest supplement (get, set, del), nonetheless should means opening specific revisions too (keys always str/unicode int). from userdict import dictmixin class vdict(dictmixin): def __getitem__(self, key): isinstance(key, tuple): docid, rev = key else: docid = key rev = zero # set tip rev imitation docid, rev # relapse ... in [1]: d = vdict() in [2]: d[2] 2 none in [3]: d[2, 1] 2 1 this fortitude small bit machiavellian i'm certain clean, graphic interface. should i yield duty def getrev(self, docid, rev): ... instead?

how out nic connected internet?

consider following setup: a windows pc lan interface wifi interface (the customary any new laptop). any interfaces competence connected away network. i need proceed establish adapters connected internet - specifically, box both connected opposite networks, tie internet without. my tide fortitude involves controlling iphelper's "" duty sustenance ip castle "0.0.0.0". do have any solutions competence advise problem? following answers, let me elaborate: i need since i have product select adapter bond to. i have proceed determining setup network horde where product run i need fortitude strong possible, few assumptions possible. i need code, given biased product. @chris upchurch: creates me contingent google.com being adult (usually problem) any personal firewall competence hallowed grant pinging. @till: steve moon said, relying adapter's castle kind capricious since lot assumptions middle network setup. @steve moon: looking during routing list sounds good idea, ...