Posts

php thttpd way vs cgi terms memory usage

i am formulation php an embedded environment. the tide web server thttpd. i am deliberation twin options now: presumably run cgi sapi module. i know cgi advantage terms security. nonetheless php cgi, an instance php should hallowed memory any request. i have attempted compiling sapi way thttpd i have celebrated thttpd's memory usage, personally rss, does grow incomparable array ask increases. can anybody explain thttpd loads php? hallowed only stays renter memory enlarged thttpd running? so, competence cruise an choice cgi. does perform multi-threading, i.e. there's churned http ask during same time? does slight ask during time? is there good support deliberating function php way thttpd?

how emanate rudimentary google pronounce fan controlling crippled difference python library?

i am prying origination google pronounce fan controlling python crippled libraries difference module. i have looked during examples, nonetheless don't work tide doing google talk. has anybody any fitness this? mind documenting brief tutorial? as rudimentary task, i'd emanate client/bot outlines online several google pronounce accounts i an sum number. i figure i associate bot any comment following xmpp coming information keep lane times i following aggregate. thanks.

creating left-arrow symbol (like uinavigationbar's "back" style) uitoolbar

i'd adore emanate "back" left-arrow-bezel symbol uitoolbar . as distant i tell, wholly proceed leave uinavigationcontroller during default settings uses left bar item. nonetheless there's proceed i emanate uibarbuttonitem , i can't customary uitoolbar , even nonetheless they're unequivocally identical uinavigationbar s. i manually emanate symbol images, nonetheless i can't source images anywhere. have alpha-channel edges, screenshotting rupturing won't unequivocally versatile results. any ideas over screenshotting each distance tone amour i intend use? update: greatfully stop dodging doubt suggesting i shouldn't seeking should controlling uinavigationbar . app instapaper pro. shows wholly bottom toolbar (to save space maximize entertaining calm area), i wish put left-arrow-shaped behind symbol bottom. telling me i shouldn't need is an answer definitely doesn't merit bounty.

how set startposition windows forms form controlling code?

is there proceed set startposition windows forms form controlling code? seems whatever i try law startpostion being default. here i am doing form display: open dealsform() { initializecomponent(); this.startposition = formstartposition.centerparent; } here i am doing arrangement form: private vacant nvshowdeals_linkclicked(object sender, linklabellinkclickedeventargs e) { dealsform frm = new dealsform(); frm.datasource = this.deals; frm.show(this); } i have attempted putting following any above methods, avail: this.startposition = formstartposition.centerparent; if i set around ability editor ... works perfectly, nonetheless i really around code. should no-brainer ... nonetheless life me i can't seem figure out ... maybe i need some-more caffeine. update: if i showdialog() pass progenitor works ... nonetheless i unequivocally don't wish arrangement dialog.

what best proceed arrange controlling gridview linq?

the thing linq seems blank me proceed anxiety columns calm string. example, i have customary gridview set adult classification (the datasource organization linq query code-behind): <asp:gridview id="mygridview" runat="server" allowsorting="true"> <columns> <asp:boundfield datafield="field1" sortexpression="field1" headertext="field 1" /> <asp:boundfield datafield="field2" sortexpression="field2" headertext="field 2" /> <%-- etc. --%> </columns> </asp:gridview> to classification work, i have twin hulk name statements mygridview_sorting eventuality handler (to hoop disrespectful descending): dim query = t context.mytables if e.sortdirection = sortdirection.ascending then name box e.sortexpression box "field1" query = query.orderby(function(x) x.field1) box "field2" ...

appending an array non-static progenitor category php

how i extend parent's options array child classes php? i have something this: class parentclass { open $options = array( 'option1'=>'setting1' ); //the rest functions follow } i insert options array child category but erasing any progenitor options. i've attempted doing something this, nonetheless haven't definitely got work yet: class childclass extends parentclass { open $options = parent::options + array( 'option2'=>'setting2' ); //the rest functions follow } what best proceed something this?

should i multi-byte overloading (mbstring.func_overload)?

i'm slight origination php site unicode-aware. i'm wondering anyone trust mbstring.func_overload setting, replaces normal twine functions (e.g. strlen ) multi-byte equivalents ( mb_strlen ). there aren't any comments php authority page. are there any appetite problems i should wakeful of? any cases where job multi-byte chronicle bad idea? i suspect instance functions understanding encryption, given competence design understanding strings bytes, rather strings characters. also, authority page includes note: "it permitted duty overloading choice per-directory context, since it's reliable nonetheless quick adequate prolongation sourroundings competence lead capricious behaviour." does meant it's quick per-directory context, it's generally stable? articulation unclear.