Posts

actionscript 3 - Robotlegs Logout -

i building robotlegs app have login in order use it. when loggin have numerous mediators,injectors,models,vos etc. should remove when 1 logs out? thanks in advance. this tough answer, since question kind of vague. more details inner structure helpful. depending on situation, may need remove navigation elements let user access content require them logged in. if user represented persistent object, use isloggedin flag check when user tries doing requires them logged in. again, tough answer because of question's vagueness, don't think there's specific robotlegs need do, it's more application design.

Memory allocation for Java Webstart Application -

i'm using java webstart application called blast2go i'm running problems memory allocation. needs load large data set memory, i've been trying allocate 3-6gb application. however, no matter set max heap size, uses 455mb (as indicated message bar: 'memory usage: xxmb of 455mb'). i've tried setting reasonable levels (1024 mb), still 455mb allocation. any ideas? btw, i'm using ubuntu 10.04 32-bit 24gb memory, 8 procs. update : here jnlp provide. same result when edit values of initial-heap-size , max-heap-size attributes. <jnlp spec="1.0+" codebase="http://bioinfo.cipf.es/blast2go/webstart" href="http://bioinfo.cipf.es/blast2go/webstart/makejnlp.php?mem=3072"> <information> <title>blast2go 3072m</title> <vendor>cipf - upv - ivia</vendor> <homepage href="http://www.blast2go.org"/> <description>blast2go 3072m</description> <description kind="short...

ruby on rails - Phusion Passanger, Apache 2, mysql and Linux -

ok here deal. i've got linux jbw server, , it's running apache2. i've installed phusion passanger on top of that, , when restart apache2 can see points default ror website. when click "about server", following error. internal server error the server encountered internal error or misconfiguration , unable complete request. please contact server administrator, webmaster@localhost , inform them of time error occurred, , might have done may have caused error. more information error may available in server error log. apache/2.2.9 (debian) phusion_passenger/3.0.0 php/5.2.6-1+lenny9 suhosin-patch mod_python/3.3.1 python/2.5.2 mod_perl/2.0.4 perl/v5.10.0 server @ www.(my website name).com port 80 i have no idea phusion , documentation isn't helpful - start begin debugging this? also can't gem work, seems phusion doesn't default install ruby gem - if case how install other gems application?? may feel soooo lost! there website can take me step st...

xcode - Tab Bar Controller- switch UIView within one tab -

ok here applications setup: 2 xib's mainwindow.xib newsletterview.xib set follows: mainwindow.xib files owner first responder delegate window tab bar controller--setup load tabs .xib's 2 tabs -newsletter -map i'm not concerned map tab. within newsletterview.xib ( have .h , .m files setup) files owner set class newsletterviewcontroller via interface builder. first responder , 2 views: view- setup newssignupview via iboutlet - first view loads on selected tab. view - setup newsreaderview via iboutlet i want able click button (assigned via ibaction) on newssignupview flip horizontally reveal newsreaderview. this have far: -(ibaction) revealnewsreaderview {cgcontextref context = uigraphicsgetcurrentcontext(); [uiview beginanimations:nil context:context]; [uiview setanimationtransition: uiviewanimationtransitionflipfromleft forview:newssignupview cache:yes]; [uiview setanimationcurve:uiviewanimationcurveeaseinout]; [uiview setanimationduration...

msbuild - How-to Transform Web.config Custom Sections With MSDeploy? -

is there way transform web.config custom sections values when using msdeploy ? <configsections> <sectiongroup name="mygroup"> <section name="data" type="myapp.dataconfigurationsection, myapp.data" /> </sectiongroup> </configsections> <mygroup> <data interval="3" usecache="true" /> </mygroup> according build configuration need exemple change "usecache" value. write transformation in config transformation file (web.config.release) <?xml version="1.0"?> <configuration xmlns:xdt="http://schemas.microsoft.com/xml-document-transform"> <mygroup> <data usecache="false" xdt:transform="setattributes(usecache)" /> </mygroup> </configuration>

How do I access a Rails configuration value during runtime? -

i'm using rails 2.3.x. small section of code run if , if config.cache_classes true. default, that's true production , false development. how access value of config.cache_classes outside of environment.rb, development.rb, , production.rb files? it's easy tell if in production or development, rails.env give answer. there's no guarantee developer hasn't set config.cache_classes = true in development. i understand not want run separate code paths in development , production. in particular instance, not performing work on startup; if need perform later, so, both in development , production. for rails 2, can do: rails.configuration.cache_classes if ever switch rails 3, it'll different; can access same value with: rails.application.config.cache_classes

actionscript 3 - How to buffer stream when the video is paused with flash -

i need feature of allowing buffering video when it's paused, cannot find how directly... i notice that, when pause video, event "netstream.buffer.flush" triggered. , according language reference: "data has finished streaming, , remaining buffer emptied.", have re-buffer it, right? however, according reference, shouldn't stop buffering: starting flash player 9.0.115.0, flash player no longer clears buffer when netstream.pause() called. behavior called "smart pause". before flash player 9.0.115.0, flash player waited buffer fill before resuming playback, caused delay. i'm using flash professional debugging, , traced version number is: mac 10,0,22,91; , streaming server, use red5. , if you're interested code, here is: http://pastebin.com/kwtfieh9 i'm totally confused. push appreciated much! here's example on wondefl.net based on code