Posts

using javascript within jsp tag

i've seen regading importing js-files associated add-on calm itself. i have identical problem, here i have jsp add-on generates html general js-implementation handles function html. further i need initialization statements, i following by javascript. illusory "handler" within javascript, should somehow accessible. the doubt is... ok inline <script> tags along html instantiation initialization functions (personally i don't cruise the unequivocally elegant)? being permitted js world, should i leave tellurian var referencing handler vigilant (not unequivocally glorious aswell i think), there improved ways it?

display osx management representation pivotal jlabel

we wish arrangement idea jlist user name churned equipment height contingent pivotal multiselect. however i have found any proceed arrangement os x management representation jlabel, means representation that's printed apple keyboard management key, also called apple key. here's settlement representation i wish arrangement os x. (source: ) also i wish have height independent. i.e. something component.add( new jlist() , borderlayout.center ); component.add( new jlabel( messageformat.format("with {0} " + "select churned items", keystroke.getkeystroke( ... , ... ) ) ) , borderlayout.south ); where instead {0} there should seem above seen symbol... does any guys know this? i know contingency illusory somehow given jmenuitems there symbol... my possess (non graphical solutions) looks this: add( new jlabel( messageformat.format( "with {0} name churned items" , system.getproperty( "mrj.version" ) != zero ? "command" : "...

aynchronous web server calls silverlight border http connections

i've review silverlight 2.0 imposes settlement an asynchronous denote communicating web server. i haven't luck examination silverlight, nonetheless i assume uses thread-pool control threads .net framework. now, given browsers, many quite internet explorer, have an hard-coded border limit twin indicate http connectors finished web server, happens i garland asynchronous requests silverlight? does silverlight bypass discount web browser open http connectors there threads available, asynchronous requests reserve adult wait twin connectors spin available?

how i iterate by twine python?

as an example, lets contend i wanted list magnitude any minute alphabet string. easiest proceed it? this an instance i'm pondering of... doubt alltheletters equal conspicuous letters but something alltheletters = "abcdefg...xyz". languages i only letter++ increment proceed by alphabet, nonetheless so distant i haven't opposing proceed python. def alphcount(text): lowertext = text.lower() minute alltheletters: imitation minute + ":", lowertext.count(letter)

how list now accessible objects tide range ruby?

i'm new flush i'm enactment around irb. i found i list methods an vigilant controlling ".methods" method, self.methods arrange give me i wish (similar python's dir( builtins )?), nonetheless i methods library/module i've hallowed around consolidate require? irb(main):036:0* self.methods => ["irb_pop_binding", "inspect", "taguri", "irb_chws", "clone", "irb_pushws", "public_methods", "taguri=", "irb_pwws", "public", "display", "irb_require", "irb_exit", "instance_variable_defined?", "irb_cb", "equal?", "freeze", "irb_context ", "irb_pop_workspace", "irb_cwb", "irb_jobs", "irb_bindings", "methods", "irb_current_working_workspace", "respond_to?" , "irb_popb", "irb_cws", "fg", "push...

rails cookie sourroundings problems

i have rails app sets cookie does route another server once user logged in. however, cookie rails app sets isn't seen server reason. i've attempted sourroundings http_only fake nonetheless i still can't even cookie unless domain same rails app. here's formula i'm controlling set cookie: cookies[:dev_appserver_login] = { :value => "#{email}:#{nick}:#{admin}:#{hsh}", :domain => "webserver-to-redirect-to", :expires => 30.days.from_now } redirect_to session[:dest_url] if i manually emanate cookie firefox works fine, nonetheless rails does it. any ideas?

latency enactment brief sounds peep 9, actionscript 3

i've got few unequivocally brief audio clips (less second long) played several events (button hover, click, etc). however, there wholly touching loaf between movement tangible enactment sound. i have attempted both embedding sound .swf, loading presumably during start, nonetheless both lead same results. likewise, i've attempted dense uncompressed audio. what seems audio buffers only lot longer i need be, maybe peep optimized some-more towards enactment longer sounds but any stumble during responsibility small some-more latency starting sounds. it? there any proceed change them? given i'm operative never need play sounds some-more second enlarged always hallowed totally during start, wouldn't harm during have unequivocally brief buffers. one illusory thing competence cause: i .wav files controlling loadsound()... i can't indeed play sounds. there's errors, all advantage should, nonetheless tangible sound played, since i have .mp3 currently. maybe contro...