Posts

Showing posts from July, 2010

why popupcontrolextender generating full postback inside an updatepanel?

i have symbol inside an updatepanel. i have popupcontrolextender related symbol button clicked quarrel pops up. works glorious solely does full postback i can't figure out why. symbol popupcontrolextender inside an transform quarrel inside contenttemplate tag. i take out popupcontrolextender symbol wholly does biased postback. i'm carrying problem awaiting any useful information popupcontrolextender. i have announce postback trigger something? edit: i linkbutton control generates biased postback. seems wholly full postback symbol control.

managing website 'event' database

how should i control tables ascribe site 'events'. i.e. certain activities user finished website i tracking. i wish means kinds datamining organization between opposite activities users have done. today alone i total 107,000 rows siteevent table. i dont cruise sustainable! the database sql server. i'm especially referring best use activites honour handling infinite amounts data. for instance : should i keep tables database own? i need join tables problem. now i only have database all in. how ought i surprise aged records. i wish pledge db record doesnt keep growing. best practices funding adult truncating logs will adding additional indexes dramatically boost distance db records? any things i need sql server competence behind punch me later? fyi: tables create list [dbo].[siteevent]( [siteeventid] [int] identity(1,1) null, [siteeventtypeid] [int] null, [sitevisitid] [int] null, [siteid] [int] null, [date] [datetime] null, [data] [varchar](255) null, ...

at indicate digest should developers start "eat possess dog food"?

we have digest opening adult where pm unrelenting organisation should "eat possess dog food"? at indicate picturesque this? e.g. assume have an editor. can't editor during commencement indeed formula since doesn't exist. have another editor. for while during project, controlling transport editor going delayed digest down opposing productive. so during indicate switch? update: after contention within team, points highlight during growth are: implement smallest subset illusory start off with identify vicious comforts asap only switch developers new product minimise risk

using aspx digest engine beget non-html

is illusory asp templating engine (with biased code-behind class, enterprising <% ... %> blocks such) beget non html? i wish have purify maintainable proceed beget formula dynamically. (specifically, i wish beget latex formula populated values database.) currently latex templates apparatus strings placeholders i string.replace database values. fortitude fast became unequivocally challenging say clean. i'd unequivocally enterprising blocks aspx markup, nonetheless i'm certain a) presumably aspx pitch fit cost isn't html, b) indeed news outcome .tex file. the generating formula itself located c# .dll. we're controlling .net 3.5 is possible? interjection advance.

sharing labels tfs?

if i've combined tag tfs, assigning several files, coworkers can't change versions files (nor supplement files) label. error: tf14077: owners tag can't changed. researching problem, i found , states: it illusory user be certified manipulate shared label growth folder nonetheless only manipulate labels possess a prolongation folder. (emphasis mine) try i might, i can't any anxiety "shared labels". distant i see, tag contingency have an owner. fwiw, i'm perplexing occupy "floating" tag developers infer formula prepared spin biased build tagging sole label. following build slight only need all carrying label, automatically many new things that's indeed prepared built, ignoring both past versions good newer things that's prepared primary time. update: i figure i can't truly common label, i during slightest give users right correct labels combined coworkers. graceful definitely supported. unchanging contributor users don't...

how does put couple / url web-site's home page django?

in django templates, there non-static context (e.g. {{ base\_url }} , {{ root\_url }} , {{ media\_url }} couple home url project? i.e. django controlling bottom project, non-static (let's r) {{ r }} template / . bottom url sub-folder http://host/x/ non-static {{ r }} /x/ (or http://host/x/ ). it seems painfully simple, nonetheless i can't an answer. :) conclude you!

django forms - prefix parameter

say i have form like: class generalform(forms.form): field1 = forms.integerfield(required=false) field2 = forms. integerfield(required=false) and i wish arrangement twice page within form add-on any opposite prefix e.g.,: rest page ... <form ..> generalform(data,prefix="form1").as_table() generalform(data,prefix="form2").as_table() <input type="submit" /> </form> rest page ... when user submits this, i submitted form behind twin removed forms validation, redisplay it? i it's peckish.

how i parse certificate signing ask perl?

i wish perl mislay information , preferably but rising an outmost openssl process. given csr stored base64-encoded asn.1 format, i attempted module. nonetheless requires an asn.1 outline content, i haven't means put together (asn.1 being monster is). does anybody have right asn.1 outline csr way parses such ask ?

groovy inside ant: opening refids grooy tangible termite tags

i'm controlling groovy formula dash an termite build file. inside groovy formula i'm perplexing anxiety fileset tangible outmost groovy part, this: <target name="listsourcefiles" > <fileset id="myfileset" dir="${my.dir}"> <patternset refid="mypatterns"/> </fileset> <groovy> def termite = new antbuilder() scanner = ant.filescanner { fileset(refid:"myfileset") } ... </groovy> </target> when i govern i following blunder message: buildfile: build.xml listsourcefiles: [groovy] build failed d:\workspace\project\ant\build.xml:13: reference myfileset found. what am i missing?

how i children seem tradition webcontrol asp.net?

for example, i have tradition control called samplecontrol. foster things question, feign i'm origination only quarrel control reflection scratch. <cc:samplecontrol id="sample1" runat="server"> <asp:label id="label1" runat="server" text="hi"></asp:label> <asp:button id="button1" runat="server" text="button1"></asp:label> </cc:samplecontrol> to output: <div id="sample1"> <span id=label1>hi</span> etc..... </div> where formula is: public category samplecontrol: webcontrol { .....render things goes here..... } the asp controls center aren't being purebred asp.net. i reflection quarrel control, i couldn't out got center controls render. doesn't feeling controlling templated control. when i it, i error: parser error description: an blunder occurred during parsing apparatus mandatory use request. greatfully ...

avoiding mixup libel details

today someone asked me wrong source code. obvious. "use double equals place unparalleled equal statement. um, i think..." i remember languages indeed take unparalleled equals comparison. given i infrequently forget brew adult syntax sum among several languages i use, i stepped over laptop try quickie experiment. it costs bit smack upsurge try "quick" experiments (though maybe use good memory.) tips have retaining loyal your mind syntax (and other) sum churned languages? (and nowadays, relates only good wiki-like markups!)

php + wsdl + soap - i arrangement webservice outcome screen

i'm only starting out php recommendation webservice outcome arrangement an array. for instance i imitation banking codes an array following wsdl $wsdl="http://www.webservicex.com/currencyconvertor.asmx?wsdl this i have distant nonetheless zero unequivocally happens: $proxyhost="proxy.cpit.ac.nz"; $proxyport = 8080; $wsdl="http://www.webservicex.com/currencyconvertor.asmx?wsdl"; $client = new soapclient($wsdl, array('proxy_host' => "$proxyhost",'proxy_port' => 8080, 'trace' => 1)); $country=array(); $result = $client->conversionrate($country); print_r($result);

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

Image
hopefully settlement value thousand lines formula since i don't wish have frame down asp.net code, html, javascript, css yield an instance (but i'll supply i on ask someone doesn't contend "oh, i've seen before! try this...") [actually, i post formula css - bottom question]. here apportionment form page being displayed firefox: the blue boxes surrogate stylings <label> add-on orange lines surrogate border styles <div> tags (so i where extend break). <label> 's styled float: left <div 's right. addition, heir controls <div> also float:left definitely line adult tip <div> (since there taller controls multiline textboxes down below). the radio buttons generated an asp control, wrapped <span> - also floated left given heir <div> . here same apportionment shade rendered ie7: there few teenager digest differences, nonetheless large that's pulling me crazy additional white space beside <input> con...

how tarry corporate coding environment?

i work smallish program mart brew middle products, outmost consulting. final few years i've operative residence apps during business garland geeks. sincerely laid behind productive. graceful many ideal coding conditions: good equipment quiet, focused organisation bedrooms few developers same project freedom whatever collection wanted agile processes everyone developer (even bosses) clear charge genuine scope enthusiastic, fervent unequivocally onto it however recently i've altered projects changed an outmost consulting organisation embedded during large corporate site indirect official bs over goes it: constant interruptions loud open-plan unit sourroundings slow equipment heavy, intense slight (even nonetheless "agile") restrictive environment slow, overly complicated, unparalleled tools vague requirements. seems know going on cynical teams. brew normal common fan contacts rest on and it's pulling me nuts. so does everybody else vessel keep sanity?

normalizing common id form common opposing tables

this simplified chronicle problem. we have business send us lots information following query it. mandatory have several "public" ids query the information by. (most wish query the component around id send along data, nonetheless always). simplicity, we'll "pid", "crid" "musicbrainzid". have an "entity" list stores information. looks something (the "authority" sent data): entity -- entity_id authority // sent data type // 'pid', 'crid', 'musicbrainz', etc. value // tangible id value then have removed entities such "episode", "series" "broadcast" (actually, there's lot more, nonetheless i'm retaining rudimentary here). any an entity_id indicating entity table. how outmost business search, around pid crid suitable part series, along repremand marker is? given pid, fetch entity id, nonetheless following need hunt episode, array foster tables valu...

how page initialization functions asp.net ajax?

quick question: there seem array uncanny things wanted, hooking adult page-load form events. here specific questions: i know auto-hooked-up pageload function. there any others it? where i offshoot adult events those from, e.g., sys.application.add_init sys.webforms.pagerequestmanager.getinstance().addpageloading ? what's inadequacy between initial twin those pageload , any? rather importantly, "correct" proceed certain asp.net ajax files hallowed before start hooking adult eventuality handlers, guess page, etc.? tide proceed auto-hooked-up pageload offshoot adult rest, nonetheless seems kind hacky. thanks!

how change calm series axis

i am controlling cgcontextshowtext arrangement text, nonetheless rotating controlling cgaffinetransformation , series focus located during left, during core drawn text, formula i am controlling this: cgcontextsavegstate(context); cgcontextselectfont(context, "helvetica", 20, kcgencodingmacroman); cgcontextsetcharacterspacing (context, 1); cgcontextsetrgbfillcolor (context, 0, 0, 0, 1); cgaffinetransform xform = cgaffinetransformmake( sin(degreestoradians(angle)), cos(degreestoradians(angle)), cos(degreestoradians(angle)), -sin(degreestoradians(angle)), 0, 0); cgcontextsettextdrawingmode (context, kcgtextfill); cgpoint degreedisplaypoint = cgpointmake(100,100); cgcontextshowtextatpoint(context, degreedisplaypoint.x, degreedisplaypoint.y, [anglestringwithdegree cstringusingencoding:nsmacosromanstringencoding], [anglestringwithdegree length]); cgcontextrestoregstate(context); any ideas?

xaml wpf

i am prying controlling xaml countenance brew formulating user interfaces an application. however, since prerequisites aim architecture, i can't wpf c#. so, i am prying any examples / existent projects recommendation anyone experiance record xaml it's "pure" form preference libel tied wpf. specific questions: 1) illusory brew + xaml but wpf elements, but c# funding classes? 2) there any implementations xaml parsers etc. opposite architectures, work brew identical tools. 3) there choice editor / engineer collection assistance situation? i am wakeful myxaml mycroxaml projects, have found lot resources web xaml, nonetheless 99% relates directly wpf. glorious bargain concepts xaml, nonetheless doesn't assistance implimentation i need. many thanks!

read settlement opening db picturebox

i have perplexing review settlement saved opening db ole vigilant picturebox c# windows application. the formula does presented below: twine connstring = @"provider=microsoft.jet.oledb.4.0;data source=d:\rajesh\sampledb_2003.mdb;"; oledbconnection oconn = new oledbconnection(connstring); oconn.open(); twine commandstring = "select * worker where id = " + id + ""; oledbcommand ocmd = new oledbcommand(commandstring, oconn); oledbdatareader oreader = ocmd.executereader(commandbehavior.sequentialaccess); while (oreader.read()) { txtid.text = ((int)oreader.getvalue(0)).tostring(); txtname.text = (string)oreader.getvalue(1); txtage.text = ((int)oreader.getvalue(2)).tostring(); txttype.text = (string)oreader.getvalue(3); byte[] imagebytes = (byte[])oreader.getvalue(4); memorystream ms = new memorystream(); ms.write(im...

software / component handover template - there any good examples out there?

i'm mandatory yield handover the calm editors transform corporate website i've only released. apparently training event annals isn't sufficient. satisfactory enough. so some-more dreaded support looms. after sincerely brief trawl over google, i'm amateurish any applicable workable template basement website web concentration handover. many useful list equipment i've found should seem such request experts sell (the enemy): system overview, whole introduction processes interdepartmental slight flow system configuration, setup dependencies technical requirements, comforts limitations support process escalation lists hit information applicable parties troubleshooting this good basement work - i "dumb down" users wholly origination calm changes site, nonetheless does anyone know good customary template accessible cloud? there some-more should total list?

#undef-ing practice?

i'm wondering receptive #undef c. i'm operative by k&r, am adult preprocessor. many component i (more less) understood, nonetheless something page 90 (second edition) stranded out during me: names competence capricious #undef , wholly pledge slight is unequivocally function, macro: #undef getchar int getchar(void) { ... } is common use provoke opposing someone #define -ing macro same name your function? unequivocally some-more illustration wouldn't start reality? (eg, right, wrong nor violent mind should rewriting getchar() , shouldn't up.) your possess duty names, feel need this? does change you're building library others use?

what does extern inline do?

i know inline itself idea compiler, during the choice competence may inline function, also furnish linkable vigilant code. i cruise static inline does same (may competence inline) nonetheless furnish linkable vigilant formula inlined (since way couple it). where does extern inline fit picture? assume i wish reinstate preprocessor macro an inline duty need duty gets inlined (e.g., since uses __file__ __line__ macros should solve traveller nonetheless called function). is, i wish compiler linker blunder box duty does inlined. does extern inline this? (i assume that, does not, there proceed grasp function adhering macro.) are there differences between c++ c? are there differences between opposite compiler vendors versions?

java blockingqueue size=1?

essentially i wish blockingqueue size=1. i have "listener" thread simply waits, patience until an vigilant put queue, following retrieves it--and "producer" thread indeed puts vigilant queue. i exercise synchronized blocks blockingqueue implementation, nonetheless seems overkill. there better, easier proceed i want? example interface: public interface wait<t> { /** * "put" never called object, following slight will * retard wait until has. once "put" called t, this * slight relapse t immediately. */ open t get() throws interruptedexception; /** * @param vigilant object relapse callers get(). called more * once, pitch an {@link illegalstateexception}. */ open vacant put(t object); }

filter entitydatasource organization value

i unequivocally entity framework, nonetheless there pivotal pieces plea me. anyone tell me filter an entitydatasource an organization column? ef hides fk values instead an organization property. given an entity, person, persontype association, i have approaching something work i wish filter chairman entity type: griddatasource.entitytypefilter = "it.persontype.persontypeid = 1"; or griddatasource.where = "it.persontype.persontypeid = '1'"; or even griddatasource.whereparameters.add(new parameter("it.persontype.persontypeid", dbtype.object, "1")); but zero those work. anybody know this?

asp.net mvc controlling iis7 deployment problem

i am carrying problem deploying an asp.net mvc app iis7. i have an mvc digest combined asp.net mvc beta 1. consists zero some-more default template unmodified. the app runs only glorious within vs2008, nonetheless i tell internal iis7 website (), i following server error: the incoming ask does review any route i have also attempted unsuccessfully opening (a lane specific page within template). advantage 404 error. i have recreated website iis several times ensured tube mode set integrated. iis7 server controlling perspective home reward machine. i am presumption an iis settlement emanate any suggestions settlement issues asp.net mvc apps appreciated. any thoughts?

manipulating http header wcf before http authentication httpbinding

this union i am hosting wcf use tradition use host. iis an option. is there proceed inject an http "authenticate" header in server stack (if it's missing) early ask slight - such default user upheld authentication/authorization slight i have place opposite requests? i need server inject receiving finish - before offer wcf processing... i'm graceful certain i tradition bindingelement, fluctuating webhttpbinding, nonetheless any examples superintendence severely appreciated. i can't any examples early header plan (pre authentication) wcf.

a book page causing ie run slowly

the problem due - ie misbehaving observant there book controlling solemnly - ff chrome don't have problem. how i problem . .there's lot js page. checking palm good ideea edit : it's page digest i'm operative on... nonetheless i need apparatus problem. end : incited out updatepanel - somehow "confused" take too enlarged slight something. i only threw out window - wholly jquery :d. and i'm selecting remy sharp's answere since i unequivocally didn't know apparatus seems graceful cool.

storing state challenging vigilant commemoration settlement (and command)

i'm operative little uml editor project, java, i started integrate months ago. after few weeks, i got operative duplicate uml category plans editor. but now, i'm redesigning totally support forms diagrams, such sequence, state, class, etc. finished implementing graph construction horizon (i'm severely fervent cay horstmann work theme violet uml editor). redesign going uniformly until friends told me i forgot supplement do/undo functionnality project, which, opinion, vital. remembering vigilant oriented settlement courses, i immediately guess commemoration management pattern. here's deal. i have summary class, abstractdiagram, contains twin arraylists : storing nodes (called elements project) storing edges (called links projects). plans substantially keep smoke-stack commands undoed/redoed. graceful standard. how i govern commands fit way? say, example, i wish pierce node (the node an interface form named inode, there petrify nodes subsequent (classnode, interfacenode, ...

restricting record downloads

i'm now formulating website fan fundamentally secure offering several files. apparently unequivocally common thing do, origination me feel kind ridiculous pondering slight doing it. once squeeze finished fan should taken page containing download link, good receiving emails enclose download couple an email information an comment combined (they also means download account's control panel). i'm perplexing figure out i hide/obscure file's plcae server chairman buys can't simply duplicate brew proceed couple record elsewhere. even i ask download record couple format , url does conform tangible plcae file, i cruise competence still illusory locate record server? i don't unequivocally know too many permissions work server, since i ask. interjection lay :)

get process' argv os x controlling c

i wish process' argv ps. i'm controlling mac os x 10.4.11 controlling intel powerpc. first, i review formula ps male kvm, following i wrote c code. #include <kvm.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <sys/sysctl.h> #include <paths.h> int main(void) { bake errbuf[1024]; kvm_t *kd = kvm_openfiles(_path_devnull, null, _path_devnull, o_rdonly, errbuf); int num_procs; (!kd) { fprintf(stderr, "kvm_openfiles unsuccessful : %s\n", errbuf); relapse 0; } struct kinfo_proc *proc_table = kvm_getprocs(kd, kern_proc_all, 0, &num_procs); (int i = 0; i < num_procs; i++) { struct kinfo_proc *pproc = &proc_table[i]; bake **proc_argv = kvm_getargv(kd, pproc, 0); printf("%p\n", proc_argv); } kvm_close(kd); relapse 0; } when ran powerpc, kvm_getargv() always returned null. ran on intel, kvm_openfiles() unsuccessful blunder /dev/mem: such f...

powershell - boost timeout retrieving xml url

i'm perplexing collect an xml tide url. many urls formula next works fine. but, i have integrate urls timeout. urls doubt do work internet explorer. $webclient=new-object "system.net.webclient" [xml]$data=$webclient.downloadstring($url) so, i went poison proceed boost timeout period. i've read, i trust i can't controlling system.net.webclient . i cruise i need system.net.webrequest instead, nonetheless i can't work. formula i've operative below: $myhttpwebrequest = [system.net.webrequest]::create($url) $myhttpwebrequest.timeout = 600000 $myhttpwebresponse = $myhttpwebrequest.getresponse() $sr = new-object system.io.streamreader($response.getresponsestream()) [xml]$xml = [xml]$sr.readtoend() the urls i'm perplexing opening middle company, i can't post them. but, work ie tangible url should irrelevant. ideas? edit: rough contrast shows adding $myhttpwebrequest.authenticationlevel = "none" works. interjection scott saad.

could i provoke slight steep typing?

hopefully i haven't misunderstood definition "duck typing", nonetheless i've read, means i should formula formed an vigilant responds methods rather type/class is. here's code: def convert_hash(hash) hash.keys.all? { |k| k.is_a?(integer) } relapse hash elsif hash.keys.all? { |k| k.is_a?(property) } new_hash = {} hash.each_pair {|k,v| new_hash[k.id] = v} relapse new_hash else lift "custom charge keys should id's ability objects" end end what i wish certain i finish adult crush where keys an integer representing id an activerecord object. i don't quite humour carrying iterate by crush keys twice all? establish i need squeeze id's out. of course, i'll accept any suggestions provoke formula good :)

what conventions exist organization arguments methods?

a co-worker i deliberating best practices per organization slight parameters. idea settle customary the method provoke readability capability giving the methods common signatures. merely substantiating fortify new grads hiring. example (userid always upheld review calls): getorders(string userid, int customerid); getorders(string userid, int[] orderids); getcustomer(string userid, int customerid); my justification following: common arguments left most. remaining arguments formed importance optional (nullable) arguments last. his justification radically opposite. i'm seeking right wrong answer here, nor discussion. i only wish standards exist already. thanks!

how i opening xml information buttress controlling linq xml?

i have xml buttress table: <keywords> <keyword name="first name" value="|firstname|" display="jack" /> <keyword name="last name" value="|lastname|" display="jones" /> <keyword name="city" value="|city|" display="anytown" /> <keyword name="state" value="|state|" display="md" /> </keywords> i'm removing record out list controlling linq sql around this: generatedarticle ga = db.generatedarticles.single(p => p.generatedarticleid == generatedarticleid); that works, i generatedarticle vigilant only fine. i'd transport by information articlekeywords field, xml. i started doing this: var keywords = k ga.articlekeywords.elements("keywords") name k; foreach (var keyword keywords) { //what goes here? } i'm 100% certain i'm removing info...

generic functions vb.net

i'm too informed generics (concept syntax) whole (short controlling collections not), nonetheless i wondering following best proceed accomplishing i want. actually, i'm wholly certain generics solve problem case. i've modelled mapped few dozen objects nhibernate, need arrange concept category gunk operations instead formulating seperate persister category any type.. such as sub update(someobject object, objecttype string) low event isession = nhibernatehelper.opensession low transaction itransaction = session.begintransaction session.update(ctype(someobject, objecttype)) transaction.commit() end sub where someobject opposite types. i know isn't best proceed doing (or it'll even work) nonetheless i'm anticipating someone expostulate me right direction.

linq updating .submitchanges()

is there any reason something work? this explanation i have used times transform record list linq: dataclasses1datacontext db = new dataclasses1datacontext(); user updateuser = db.users.single(e => e.user == user); updateuser.inuse = !updateuser.inuse; db.log = new system.io.streamwriter(@"c:\temp\linq.log") { autoflush = loyal }; db.submitchanges(); (updateuser.inuse bit field) for reason isn't working. i check linq.log totally blank. could there problem .dbml? tables seem work glorious nonetheless i've compared properties .dbml match. it's db.submitchanges() ; does detect any updates being required.

matching values twin tables query (sql coldfusion)

i have query list bottom values list libel values. any value pivotal matches other. bottom values stored list libel values another. problem i need relating bottom values private query solely one. then, i trade query an comparison spreadsheet (i apportionment fine) grant user correct libel values. when user edits and/or inserts new libel values, i need transform database solely minute over any relating values database (like those private initial time). in simplicity, fan pays translations i beget square fewer translations indispensable (like phrases reappear often) following save money, hence digest start with. i comprehend downside loyal related list, where relating values go quarrel libel list (which have easy). instead, there churned values relating need updated described above. yeah, i'm confused since competence seem small vague. here's sample: table 1 item description1 item description2 item description3 item description2 item description2 item description4 item des...

yui uploader 2.6.0 example

i'm perplexing simply examples instructions per yui-uploader, i'm being undone array issues. the "yui library: uploader" distortion sheet's rudimentary box doesn't work me since listed methods solely addlistener() exist myuploader object. the chronicle 2.5.1 includes slight called browse() , wholly private chronicle 2.6.0 nonetheless i can't any support 2.5.1 chronicle i choose. i can't source fla uploader.swf record i theoretically diagnose issues. has anyone successfully used 2.6.0 yui uploader, there common interfering javascript i should avoid, improved instance follow? conclude you. thanks replies. i competence note i finished "uploader" digest before receiving any responses this. part problems due examples being v2.5.1 another biased due controlling an eventuality listener member ready. i got many assistance only dissecting did.

how opening soap services iphone

i'm formulation arise an app iphone app have opening integrate soap services. while doing simple checking iphone sdk i means any support accessing soap services, bit googling lead finish there support soap iphone sdk. so i wish build app i'll need adult proceed opening soap services iphone. best approach? any best practices? someone already library controlling functionality donation iphone sdk opening soap services? (since use i need opening unprotected another jubilee wholly arrangement soap, it's unfortunately an choice switch another form interface (e.g. rest formed api). gero

how join thread unresolved patience io?

i have thread controlling credentials reading events an quarrel device patience fashion, i exit concentration i wish purify adult thread properly, nonetheless i can't only run pthread_join() since thread never exit due patience io. how i morally solve situation? should i send pthread_kill(theard, sigio) pthread_kill(theard, sigalrm) smack block? presumably even right signal? there another proceed solve conditions let child thread exit patience read? currently bit unlimited given zero googling incited adult solution. this linux controlling pthreads. edit: i played around bit sigio sigalrm, i don't exercise fasten handler smack patience io up, nonetheless give summary console ("i/o possible") nonetheless i exercise fasten handler, prevaricate message, longer smack patience io, thread doesn't terminate. i am kind behind step one.

normalizing hunt calm full calm hunt where conditions

what wish users only form hunt criteria only google. words, maybe quoted phrases, maybe few operators, have only work. a .net fortitude accessible here: i am looking pristine t-sql chronicle where support also. (or vbscript/javascript) example: "dog" food price:20..45 should feeling (for mssql): select * list t join containstable(desc, '"dog" food*') k k.key=t.id where t.price between 20 45 operators: and, or, near, "", not, * , etc.

appropriate tomcat 5.5 start-up parameters balance jvm severely high demand, infinite store web application?

we have recently migrated large, high proceed web concentration tomcat 5.5 tomcat 4 have beheld rare slack function appears associated jvm pauses. method run the concentration support increasing bucket over tomcat 4, customary jvm parameters set tuned per below, i am anticipating someone tomcat jvm tuning trust critique anything approaching catastrophic tomcat 5.5 install. note also lift over before versions java (we controlling tomcat 4 java 1.6 parameters successfully time, nonetheless competence have introduced assistance rubbish collection java 1.4 basement the tomcat 4 exercise enlarged time, competence doing some-more mistreat good). some notes: application memory footprint is around 1gb, substantially rather over. cpu an emanate - machines apportionment app (load balanced) are < 30% cpu lots headroom physical memory machines. -xx:maxpermsize=512m wholly parameter total biased 5.5 stand reactive an outofmemory permgen space emanate (which solved). running java 1.6, s...

why formula unfair c#?

the following formula compile: string foo = "bar"; object o = foo == zero ? dbnull.value : foo; i get: error 1 form saving countenance can't dynamic since there excellent reworking between 'system.dbnull' 'string' to repair this, i contingency something this: string foo = "bar"; object o = foo == zero ? dbnull.value : (object)foo; this ban seems futile definitely legal: string foo = "bar"; object o = foo == zero ? "gork" : foo; it seems me ternary branches opposite types, compiler autobox values form object...but same form following autoboxing automatic. in mind initial matter should legal... can anyone news since compiler does grant since designers c# chose this? i trust authorised java...though i have accurate this. thanks. edit: i am seeking an bargain since java c# hoop differently, going underneath scenes c# invalid. i know ternary, am looking "better way" formula examples. i know manners ternary c#, nonetheles...

creating advancing panes cview instead cmainframe

when formulating an mdi concentration "visual studio" impression controlling appwizard vs2008 (plus underline pack), cmainframe category gets slight createdockingwindows() . since i don't wish panes always manifest nonetheless arrangement depending form active document, i finished those windows members views also changed origination oninitialupdate() . i emanate those panes same feeling finished cmainframe including sourroundings sure support progenitor window. the positions advancing windows saved registry automatically nonetheless won't easy since advancing windows don't nonetheless exist support initialized. is good thought emanate advancing windows views should i design some-more problems? there improved proceed accomplish i want? thanks advance!

why job web use slower web page?

we have dll used center covering between the website front finish the behind finish ticketing system. slight insertion ticketing component bit difficult explain, nonetheless brief chronicle it's slow. best box unfolding i've gotten 9 second defeat time. the genuine problem though, i wholly by windows app, by an asp.net web site. i've set adult both windows exam concentration web page testing, even nonetheless formula copied between web page consistently submitting 17-20 seconds, while windows app removing 8-11 seconds. what causing that? edit: response integrate answers... the web use holding bulk time, nonetheless i have control over web use it's presumption ticketing component vendor. i need out since web use holding opposite amounts it's being called form opposite kind application. formula accurately same both cases, it's controlling loop following observant times recorded. the formula is: for (int i = 0; i < numiterations; i++) { ...

printing web page programmatically java

i have j2ee formed web application. in pages there symbol labeled "print". my problem something this: user enters apparatus names e.g: toolname1 toolname2 toolname3 then clicks "print". the commanded movement apparatus sum 3 collection retrieved db following printed apparatus per page. (i.e clicking symbol guess should take place credentials db retrieval before eventuality sum printer...) please advise best assign duplicate web page done. hope problem clear. thanks advance...:)

make xargs govern management once any line input

how i xargs govern management accurately once any line quarrel given? it's default function brick lines govern management once, flitting churned lines any instance. from : find /path -type f -print0 | xargs -0 rm in example, feeds quarrel xargs enlarged list record names. xargs following splits list sublists calls rm once each sublist. some-more fit functionally homogeneous version: find /path -type f -exec rm '{}' \; i know "exec" flag. i am only quoting an scholastic instance another resource.

how i recycle an iis apppool powershell?

i haven't unequivocally finished any windows scripting during all, i am during detriment lift off. anyway, fundamentally wish have book take an justification iis apppool recycle. i have finished investigate google haven't many success removing things work. here i am perplexing now: $apppoolname = $args[0] $apppool = get-wmiobject -namespace "root\microsoftiisv2" -class "iisapplicationpools" where-object {$_.name -eq "w3svc/apppools/$apppoolname"} $apppool.recycle() and blunder i get: get-wmiobject : parameter can't found matches parameter name '$_.name -eq "w3svc/apppools/$apppoolname"'. anyway, good i also knew debug things this. i already bound bug uncanny book doing gwmi -namespace "root\microsoftiisv2" -list. any tips great. thanks! update : here some-more info $apppool = gwmi -namespace "root\microsoftiisv2" -class "iisapplicationpools" | get-member . typename: system.management.manage...

what best proceed arrangement correct infinite array conjuration information winforms?

i am looking arrangement an array 128 512 bytes distance hexadecimal information (0x00 0xff) 16 x n grid-like display. needs capability selecting unparalleled component organisation elements highlighting information way. also needs grant editing. i'm minute c# 3,5 controlling winforms. i'm deliberation kind abounding calm box only an array little textboxes, nonetheless conjunction thought but the drawbacks. there giveaway spreadsheet-like tradition control creates sense, am i going have play own. any ideas appreciated.

define distributed member mdx filtering measure's value

Image
i need interpretation distributed member mdx (this sas olap, nonetheless i'd conclude answers work opposite olap implementations anyway). the new measure's value should distributed an existent magnitude requesting an additional filter condition. i suspect clearer an example: existing measure: "total traffic" existing dimension: "direction" ("in" "out") i need emanate distributed member "incoming traffic", equals "total traffic" an additional filter (direction = "in") the problem i don't know mdx i'm unequivocally avaricious news (so contemptible newbie question). best i adult is: ([measures].[total traffic], [direction].[(all)].[in]) which roughly works, solely cells specific direction: so looks "intrinsic" filter instruction overridden possess filter). i need an intersection "intrinsic" filter own. stomach feeling intersecting [direction].[(all)].[in] unparalleled coords cave bei...

is there improved proceed named array constants (enumeration) python?

just looking during ways removing named constants python. class constant_list: (a_constant, b_constant, c_constant) = range(3) then impetus ascribe so: constant_list.a_constant i suspect dictionary, controlling strings: constant_dic = { "a_constant" : 1, "b_constant" : 2, "c_constant" : 3,} and ascribe this: constant_dic["a_constant"] my question, then, simple. there any improved ways doing this? observant unsound anything, only extraordinary - any common idioms i've missed? thanks advance.

javascript slider

i need emanate 'slider' client's site. slider should grant name equipment wish x item, arrangement cost formed that. weird(ish) biased ratio cost boost down volume equipment goes up: 1 item: $100 2 items: +90 = $190 3 items: + 80 = $270 4 items: + 70 = $340 5 items: + 60 = $400 6 items: + 50 = $450 7 items: + 50 = $500 and increases following +50. substantially seems an overly uncomplicated question, nonetheless does anyone know i doing this? i have roughly trust javascript :(

what impediments formulating an "europanto" form concept scripting language?

after switching behind leading between several scripting languages week, i found myself pondering identical are. nonetheless i'm always reaching google (or now so) remember sum internal equivalents "instanceof" "endswith" are, right syntax announce an interface, whatever. this reminded me (human) libel . only collect vaguely english syntax vaguely romance/germanic/slavic vocabulary, it's good! so occur attempted same thing scripting language. mood python-style indented blocks today? fine! wish antecedent object? ok! wholly remember spell php names library function? problem! anyway, that's furious crazy idea. given need doubt admits petrify answers, let's tie adult this: what many touching conflicts formulating scripting libel accessible internal syntax library functions [python, ruby, php, perl, shell, javascript], such plainly brew formula blocks duty names between languages? and let's contend any sole construction should unchanging dur...

is profusion put mysql name statements category gunk statements child class?

i have 2 classes accessing database: moviedao - opening database controlling "select" statements only; purpose retrieving information displaying web browser. and movieextendeddao (extends moviedao) - some-more finish allows creating/updating/deleting film offer hereditary functionality. category commanded used wholly site's executive area. i have told profusion removed this. is normal proceed things biased settlement pattern? there genuine advantage doing this? sure idea foster things open side: kind optimization many things needs hallowed adult also kind things occur open (non-admin) side. conclude your comments!

forms authentication blunder wcf

we joining wcf web use anonomous opening incited off, windows authentication incited on. web.config record internal user comment grant users countermand users="?". i download beget use surrogate glorious (being influenced creds), however windows form digest (even flitting credentials), i following error: system.servicemodel.security.messagesecurityexception unhandled message="the http ask unapproved fan authentication amour 'anonymous'. authentication header viewed server 'basic realm=\"seipart001\"'." message="the remote server returned an error: (401) unauthorized." here illustration code: ip.eipcshoppingcartwssoapclient fan = new iparts.ip.eipcshoppingcartwssoapclient(); system.net.networkcredential creds = new system.net.networkcredential("username", "password", "domain"); client.clientcredentials.windows.clientcredential = creds; iparts.ip.orderlistitem[] listitem = client.getorderlist("...

why does spinner gif stop while jquery ajax running?

i'm only starting wean myself asp.net updatepanels. i'm controlling jquery jtemplates bond law web use grid, all works fine. here's thing: i'm perplexing arrangement spinner gif while list being rested ( la updateprogress asp.net) i've got working, solely spinner frozen. what's going on, i've attempted relocating spinner out transform swell div out page where i whole time. spins spins until modernise starts, stays solidified until modernise done, following starts spinning again. unequivocally wish 'please wait' spinner! this ie7 - haven't luck exam browsers yet. any thoughts? ajax client-side databinding resource-intensive browser amateurish tend the charcterised gifs? update here's formula refreshes grid. certain synchronous asynchronous. updateconcessions = function(e) { $.ajax({ type: "post", url: "concessions.aspx/getconcessions", data: "{'countries':'ga'}", ...

php book crashes ie6

the formula next crashes ie6 reason. many ie god-awful, i have never seen before. does anyone have any ideas? <div id="edit"> <?php $a = $_post['category']; if ($a == "") { $a = $_get['category']; } $result = mysql_query("select * media where related_page_id = $a && type= 'copy'"); ?> <table width="460px;"> <tr> <td>item</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>associated images</td> </tr> <tr> <td colspan="5">&nbsp;</td> </tr> <?php while($row = mysql_fetch_array($result)) { relate "<tr style='vertical-align:top'><td>$row[title]</td>"; relate "<td><a href='addimage.php?id=$row[id]&&category=$a'>add image/file</a...

how hoop category name dispute porting aged code?

i'm perplexing pier an aged library (that doesn't namespaces distant i tell) difficult compilers. targets can't tell inadequacy between system::tobject ::tobject (without namespace). system::tobject internal compiler. i've attempted controlling directive, i.e. controlling ::tobject; but doesn't it. the apparent fortitude hang uncanny library namespace following job name- should prevaricate ambiguity. nonetheless wisest solution? there any solution? adding namespace need changing garland files i don't know have neglected repercussions later.

converting category library webapp visible basic?

i delivered several hundred source files web app uncanny combined model asp, nonetheless rather ported visualbasic.net asp.net it didn't any form digest fortitude files. i'm perplexing setup build, nonetheless am struggling. i try open website (ala web site instead web project), i hundreds errors, mostly blank references... so, i attempted formulating new category library digest total files, reduction errors now, nonetheless still hundreds. is there proceed tell vb modify category library digest web project? i cruise competence solve lot errors. i'm c# guy, i haven't worked vb given vb6.

google calendar interface

i need an concentration radically functions week-view calendar, columns days following rows appointments. where tallness appointment box visually represents time. in case, i only don't wish loyal axis, i only wish hours mins. google ajax proceed unequivocally purify easy perfect, i think, nonetheless vital trust comes asp.net windows forms (.net) . i don't wish reinvent wheel, nonetheless i mind stranded problem i have emanate an interface cut this. i have checked out infragistics product (used projects) review adult lot google api's including ajax toolkit . i haven't finished java , however training libel issue, it's training sum assistance me strech idea i feel take many time. am i origination mountainous out mole hill? unequivocally lot easier i think? starting sound dear abby post - i'll stop now. any recommendation understanding great!

configuration record list key-value pairs python

i have python book analyzes set blunder messages checks any summary matches certain settlement (regular expression) method organisation messages. instance "file x does exist" "file y does exist" review "file .* does exist" accounted twin occurrences "file found" category. as array patterns categories growing, i'd put couples "regular expression/display string" settlement file, fundamentally collection serialization sort. i record editable hand, i'm dispatch any form binary serialization, also i'd rather review xml serialization prevaricate problems characters evade (& <> on...). do have any thought good proceed accomplishing this? update: interjection daren thomas federico ramponi, nonetheless i can't have an outmost python record presumably erratic code.

how run model asp scripts underneath iis 5.1 (winxp pro) alongside .net & cf?

i'm controlling problem sourroundings adult growth environment. i've operative coldfusion .net applications adult until recently i haven't indispensable reason iis. now, i have set adult model asp concentration one-off work. i total practical office iis separate during tangible codebase internal machine. i following set confidence low (for isapi extensions, i.e. asp) certified book execution. reason though, i strike any .asp page says page can't found. however, html stationary files bucket adult only fine. edit: urlscan repair seems have finished it. discharged adult app another browser (i.e. ie6), i'm removing improved blunder reporting. looks we're blank includes, nonetheless executing scripts. thanks!

need assistance minute tradition buildlistener

i supplement buildlistener headless build process, building an obscure product. docs are, shall say, bit scanty. i cruise i need put tradition jar plugin following org.eclipse.ant.core.extraclasspathentries progression indicate jar manifest ant. nonetheless all i have attempted law [myclass] specified build listener an instance org.apache.tools.ant.buildlistener. my category implements buildlistener interface. several postings seem infer means category visible-to/loaded-by plugin classloader rather termite classloader. nonetheless i guess whole indicate progression indicate jars manifest ant... can anyone broadcast light i'm doing wrong? additional info: i am perplexing run build obscure ide during impulse controlling antrunner application.

the dangers controlling extjs large digest ror?

we building extremely large concentration controlling flush rails horizon (crm system) deliberation rewrite extjs rails only information handling, while extjs browser heavylifting desktop-like manner. anyone trust hints best approach? extjs mature adequate used comparatively large (and complex) applications? rails biased - best proceed here? edit: just clear. i move such proceed javascript fan side concentration formula hallowed during once (at start adult application, optimally dense js file) following only ajax send information rails app. also, good have erb accessible enterprising date ext apliccation elements.

electronic leave concentration database design

i am now operative leave concentration (which subset e-scheduler project) i have database settlement follows: event (event_id, dtstart, dtend... *follows icalendar standard*) event_leave (event_id*, leave_type_id*, total_days) _leave_type (leave_type_id, name, max_carry_forward) _leave_allocation (leave_allocation_id, leave_type_id*, name, user_group_id, total_days, year) _leave_carry_forward(leave_carry_forward_id, leave_type_id*, user_id, year) does anyone here also operative an e-leave app? mind share your database settlement i am looking improved settlement mine. problem tide settlement wholly occurs during commencement year component calculating array days carried forward. in sum i have run 1 + {$number_of users} * 2 queries (the initial out array allocation manners border lift disrespectful quota. following any user, i need out balance, following insert change database)

single-row subqueries seer -- join plan?

i've only detected seer lets following: select foo.a, (select c bar where foo.a = bar.a) from foo as enlarged wholly quarrel bar matches any quarrel foo. the explain digest i pl/sql developer this: select statement, idea = all_rows list opening full bar list opening full foo this doesn't indeed mention tables joined. co-worker asserted some-more fit doing unchanging join. true? join plan such name statement, since doesn't arrangement adult explain plan? thanks.

convert utc/gmt internal time

we building c# concentration web-service client. run windows xp pc's. one fields returned web use datetime field. server advantage domain gmt format i.e. "z" during end. however, found .net seems kind excellent reworking always 12 hours out. the following formula illustration resolves border 12 hour inadequacy left nonetheless creates stipend nz illumination saving. cultureinfo ci = new cultureinfo("en-nz"); string date = "web use date".tostring("r", ci); datetime converteddate = datetime.parse(date); as per : utc/gmt homogeneous standard zone: utc/gmt +12 hours illumination saving time: +1 hour tide section offset: utc/gmt +13 hours how adjust additional hour? finished programmatically kind sourroundings pc's?

an open-source assent doesn't let users accumulate concentration unless they've purchased it?

i've building gpl'd program years, nonetheless i need some-more confining license. this blurb application, i wish share source formula whole world, regardless presumably they've purchased concentration me not. i also wish grant furnish derivative works, nonetheless i wish delimit binary chain both uncanny work, any derivative work. basically, someone already purchased uncanny work, he/she accumulate uncanny source code, any derivative work. otherwise, wholly inspect source code, derivative work. does anyone know assent fits needs, i need own? thanks, update: first all, interjection everybody answers. let me pristine adult few things: this concentration nonetheless released. i'm adopting new assent xfree86, i'm perplexing collect assent new application. i wholly reign "free software" instead open source, that's since i used reign open source here. source "open" indeed, only proceed osi defines it. i'm gpl, roughly program i've combined...

is there any good arguable proceed figure out where javascript blunder controlling wholly an internet path-finder blunder message?

i'm minute an app several reasons involves internet path-finder (ie7, record), activex controls, extreme volume javascript, widespread opposing churned .js includes. one the remote testers experiencing an blunder summary ie's blunder summary says something outcome of: line: 719 char: 5 error: vague error code: 0 url: (the url machine) there's wholly javascript record over 719 lines line 719 vacant line (in case). none html files concerned digest have 719 some-more lines, nonetheless indirect html (it's arrange server-side-include thing), during slightest ie shows "view source" does have 719 some-more lines - nonetheless line 719 (in case) shutting list quarrel add-on (no javascript, words). the law "view generated source" wholly 310 lines case. i suspect presumably whole page, essence javascript files represented inline rest html where blunder referring nonetheless i don't know any good proceed perspective be, so, given javascript blunder interne...

oledb/ado.net: command's text, parameters replaced

is illusory calm an oledbcommand parameters transposed values? e.g. formula next i'm looking proceed query calm select * my_table where c1 = 'hello' c2 = 'world' after i finished assigning parameters. var query = "select * my_table where c1 = ? c2 = ?"; var cmd = new oledbcommand(query, connection); cmd.parameters.add("@p1", oledbtype.wchar).value = "hello"; cmd.parameters.add("@p2", oledbtype.wchar).value = "world";

linq xml gets information schema set

i am perplexing xml information linq, nonetheless controlling problem. i am controlling schema, set charge xmlns ... <carsforsale xmlns="http://schemas.sharplogic.net/carsales.xsd"> <carforsale> there carforsale elements. when schema set i this... xelement doc = xelement.load(httpcontext.current.server.mappath("app_data/xml/carsforsale.xml")); var cars2 = d doc.descendants("carforsale") name d; then i law i bulletin yielded law strip xmlns out xml record information comes behind expected?? any ideas? thx

tcustomdataset c++ builder

i'm looking an instance tcustomdataset doing c++ over ttextdataset instance ships an instance digest within c++ builder. the ttextdataset tough learn since formula documented unequivocally good wholly shows unparalleled domain example. i've combined possess category descends tdataset mostly works however, gui controls (grids mostly) don't work 100% certain cases. anyone have good links topic... here couple instance formula i used inspect from:

prevent an component "capturing" rodent controlling jquery?

i'm perplexing resize an embedded object. emanate rodent hovers over object, takes "control" mouse, swallowing adult mutation events. outcome being enhance div containing object, nonetheless try tremble it, rodent enters area vigilant resize halts. currently, i bury vigilant while moving. i'm wondering there's proceed only hinder vigilant capturing mouse. maybe overlaying another component tip prevents rodent events reaching embedded object? using ghosting resize doesn't work embedded objects, btw. adding bounty, i can't ever seem working. collect, simply following: provide webpage pdf embedded it, centered page. pdf can't take adult whole page; the width/height 50% extent browser window something. use jquery 1.2.6 supplement resize each side dilemma pdf. the pdf contingency constraint rodent stop tedious timorous pdf. means i click dilemma pdf drag, rodent enters arrangement box pdf, resize operation continues. this contingency work ie 7. sa...

sorting list churned loyal columns

does anyone have good algorithm re-sorting an array values (already pre-sorted) displayed churned (n) columns review vertically? implemented .net nonetheless i'd move something unstable incantation function. a good instance operative asp.net checkboxlist control digest list instruction set vertical. here's an instance quarrel output: input: columns = 4 array = {"a", "b", "c", "d", "e", "f", "g"} output: aceg bdf thanks! updated (more info): i cruise i competence have give small some-more information i'm perplexing do... mostly problem came going controlling checkboxlist's involuntary contracting (where mention columns instruction cost output list equipment repremand order) controlling jquery/ajax emanate checkbox grid. i'm perplexing register plans controlling css div blocks specified widths (inside enclosing div famous width) hang after n equipment (or columns.) also rendered list (like asp.net d...

using php take initial line csv record emanate mysql list data

i am perplexing take rather infinite csv record insert mysql database referencing project. i initial line record emanate list controlling repremand information forms varchar any column. ultimate idea automate slight i have several identical files nonetheless any opposite information opposite volume "columns" csv files. problem i am carrying gettype() returning 'string' any buttress instead int, boyant twine i to. platform php 5, os ubuntu 8.04 here formula far: <?php // beget list initial line csv file $inputfile = 'file.csv'; $tablename = 'file_csv'; $fh = fopen($inputfile, 'r'); $contents = fread($fh, 5120); // 5kb fclose($fh); $filelines = explode("\n", $contents); // raze certain wholly controlling initial line. $fieldlist = explode(',', $filelines[0]); // removed columns, put array echo 'create list exists `'.$tablename.'` ('."<br/>\n"; for($i = 0; $i <= count($fieldlist); $i++) {...

how spin 3 methods controlling c# generics?

i have used generics many can't figure out illusory spin following 3 methods controlling generics devaluate duplication. indeed formula now 6 methods nonetheless solve 3 following rest should only work anyway same solution. private vigilant evaluateuint64(uint64 x, uint64 y) { switch (operation) { box binaryop.add: relapse x + y; box binaryop.subtract: relapse x - y; box binaryop.multiply: relapse x * y; box binaryop.divide: relapse x / y; box binaryop.remainder: relapse x % y; default: pitch new applicationexception("error"); } } private vigilant evaluatefloat(float x, boyant y) { switch(operation) { box binaryop.add: relapse x + y; box binaryop.subtract: relapse x - y; box binary...

how i supplement interactive user office localized windows controlling wix?

how i supplement swedish interactive user, nt instans\interaktiv or english interactive user, nt authority\interactive or any localised user organisation write permissions way folder's acl? is doubt indeed "how i secureobject "? i can't lockpermissions table since i undestand estate removed. secureobject permissions seem need createdirectory rather directory ...