Posts

Showing posts from June, 2015

ruby on rails - routing error on something/new -

i'm receiving action controller exception on 'new' path of http://bob.dev/assessments/new . added devise , sextant project , path that's giving me issue working previously. i'm doing wrong , stand little getting right. thanksyou! the exception: uninitialized constant errorscontroller (actioncontroller::routingerror) the routes: bob::application.routes.draw devise_for :users mount_sextant # sextant gem ##################### match '*not_found' => 'errors#handle404' # visit http://bob.dev/rails/routes match "*path" => 'errors#handle404' ################################### # resources :users # authentication scratch ##### # resources :sessions ################################### root :to => "assessments#index" resources :assessments end and finally, output http://bob.dev/rails/...

mysql - Filter with an array -

i know can search id array using id in ($array) like $ids = join(',',$galleries); $sql = "select * galleries id in ($ids)"; can done in reverse there's column of ids stored in table , pass single id condition in clause?

android - Picking image always gives landscape image -

i have used following code pick image phone's gallery: intent intent = new intent(); intent.settype("image/*"); intent.setaction(intent.action_get_content); startactivityforresult(intent.createchooser(intent, "select picture"), use_library_pic_request); in onactivityresult(), gives filepath, tried getting bitmap using filepath, gives in landscape view. there way image in portrait view always? code getting filepath: uri selectedimageuri = data.getdata(); selectedimagepath = getpath(selectedimageuri); this how got bitmap using file path: bitmap bmp=bitmapfactory.decodefile(selectedimagepath); to original image can use method. public static bitmap getbitmap(string uri, context mcontext) { bitmap bitmap = null; uri actualuri = uri.parse(uri); bitmapfactory.options options = new bitmapfactory.options(); options.intempstorage = new byte[16 * 1024]; options.insamplesize = 2; contentresolver cr = mcontext....

ios - How to rotate UITableViewCellAccessoryDisclosureIndicator? -

i'm making uitableview expandable/collapsable cells ios app. put uitableviewcellaccessorydisclosureindicator on these cells i'd make arrow headed up/down when cell expanded/collapsed. i found it's possible make button custom image , change button according state of cell seems dirty me because don't need button there , have add 2 images project (ok it's not big anyway). so shouldn't better rotate existing uitableviewcellaccessorydisclosureindicator ? , if how can that? this not want, first thing thought of. first, instantiate button of type uibuttontypedetaildisclosure: uibutton *button = [uibutton buttonwithtype:uibuttontypedetaildisclosure]; next, rotate button 90 degrees: cgaffinetransform rotationtransform = cgaffinetransformidentity; rotationtransform = cgaffinetransformrotate(rotationtransform, degreestoradians(90)); button.transform = rotationtransform; finally, use button accessoryview: cell.accessoryview = button; hope he...

How do I expand a built in Git command with an alias? -

when answering " git pull hook script executes locally ", stumbled upon use-case alias built-in git command such pull or push extension. how do that? first thought was: [alias] push = "!echo -n \"really push? [y/n]\";read -s -n 1 really;if [[ $really == \"y\" ]];then git push; else echo \"aborting\"; fi" this works fine long don't name alias push (for example qp or that). call push , it's somehow ignored. is there git way expand built in git command alias or have set alias in .bashrc ? short answer: you can't . git disallows explicitly prevent confusion , shadowing might affect invocation of git commands (in scripts, etc.). see git-config manpage . alias.* command aliases git(1) command wrapper - e.g. after defining "alias.last = cat-file commit head", invocation "git last" equivalent "git cat-file commit head". avoid confusion , troubles script usage, a...

ruby on rails - How to create a user using code when i am using devise gem for Sign up / Sign in -

i using devise gem application. create user using code, in database table "users" password encrypted. hope cannot directly save as new_user = user.new new_user.email = "xyz@xys.com" new_user.password = "1sdf" - cannot use becs : encrypted_password new_user.save is possible? you should able actually, devise's encrypted_password method handle encrypting password pass in , storing in database u = user.new(:email => "foo@bar.com", :password => '1sdf', :password_confirmation => '1sdf') u.save try out in rails console.

linq - EF 4.3 Code First - Querying a navigation property backwards -

i trying query 1 many relationship cannot figure out how this. problem have id of field want filter lives in join table (not main table)... its easier illustrate rather explain!! the 2 classes have are public class dbuserclient { public virtual string userid { get; set; } public virtual int clientid { get; set; } public virtual datetime assignedon { get; set; } public virtual datetime? clearedon { get; set; } // navigation properties public virtual dbuser user { get; set; } public virtual dbclient client { get; set; } } and public class dbclient { public virtual int clientid {get;set;} public virtual string entityname { get; set; } public virtual bool deleted { get; set; } // navigation properties public icollection<dbuserclient> userclients { get; set; } } in program have repository exposes clients i.e. public observablecollection<dbclient> clients { { return context.clients.local; } ...

java - How to empty file content and then append text multiple times -

i have file (file.txt), , need empty current content, , append text multiple times. example: file.txt current content is: aaa bbb ccc i want remove content, , append first time: ddd the second time: eee and on... i tried this: // empty current content fileout = new filewriter("file.txt"); fileout.write(""); fileout.close(); // append fileout = new filewriter("file.txt", true); // when want write multiple times: fileout.write("text"); fileout.flush(); this works fine, seems inefficient because open file 2 times remove current content. when open file write new text, overwrite whatever in file already. a way is // empty current content fileout = new filewriter("file.txt"); fileout.write(""); fileout.append("all text"); fileout.close();

apache2 - Apache wont start but shows no errors -

i rebooted centos 6.2 vm (running virtualmin) , hung on startup when "starting httpd". booted live cd, removed script started apache rc3.d. server started, can ssh it. kept trying troubleshoot: > httpd -v server version: apache/2.2.15 (unix) server built: may 16 2012 22:32:26 but cant start it. hangs on "starting httpd", did during boot up. > service httpd status httpd stopped i cant test config, "apachectl configtest" stays there until hit ctrl-c. tried start apache loadmodule directives commented out. compiled in modules are: > apachectl -l compiled in modules: core.c prefork.c http_core.c mod_so.c i tried reload apache config (via webmin backup restore) , still no go. i read in couple places when happens can have ssl certs. tried run sslengine off in ssl.conf. tried "yum reinstall httpd". here directives default server servertokens min /etc/httpd/conf/httpd.conf...

Is it possible to pass a value to the parameter of a function in PHP? -

there function returns value : function f($criteria, $extra_return) { return $criteria['activity_code']; } i want set value $extra_return parameter . possible in php ? yes, use passing reference . function f($criteria, &$extra_return) { $extra_return = 1; return $criteria['activity_code']; }

php - Errors were encountered while processing: libapache2-mod-php5 php5 php5-cli -

i using ubuntu 11.10 now. when struggled install php5 typing sudo apt-get install php5 i got error: ...... errors encountered while processing: libapache2-mod-php5 php5 php5-cli e: sub-process /usr/bin/dpkg returned error code (1) i've tried again, got same error. suggest me remove it. did: sudo apt-get remove --purge php5 and got error: reading package lists... done building dependency tree reading state information... done following packages removed: php5* 0 upgraded, 0 newly installed, 1 remove , 27 not upgraded. 3 not installed or removed. after operation, 20.5 kb disk space freed. want continue [y/n]? y (reading database ... dpkg: warning: files list file package `firefox-locale-en' missing, assuming package has no files installed. (reading database ... 161883 files , directories installed.) removing php5 ... setting libapache2-mod-php5 (5.3.6-13ubuntu3.8) ... cp: reading `/var/lib/ucf/hashfile.5': input/output error dpkg: error processi...

how to catch session end when press title bar close button asp.net c# -

i have question asp.net web application. web application use sql server session state. logout event can session remove press title bar close button want remove session. events can control when press title bar close button. read session_end event can catch when press title bar close button. can't arise session_end event using sql server session state. how can catch? closing browser not end session on server, server can't tell difference between open or closed browser, receives request , sends response , sits there waiting request. after amount of time no requests session time out , session_end event run. if wanted end session have have kind of ajax request post server when closed browser in order server know end session. edit you using jquery $(window).unload(function() { $.post('someurl'); }); replace someurl url of web service, handler or mvc controller action or similar tells server browser has been closed. then server side do session.aba...

asp.net mvc 3 - Google OpenId: Accept only users of a particular company -

i trying use open id in application , have done dotnetopenid . now, google provides service email , others under domain of companies. (like example@acompany.com ). there way narrow down authentication users of company only? i know can checking email address response. not think idea. better if user not authenticated google accounts other of acompany.com . please note donot know inside logic of open authentication or dotnetopenid . edit by default google's openid request prompts https://accounts.google.com/servicelogin?... i can manually change (in browser) https://accounts.google.com/a/iit.du.ac.bd/servicelogin?... , works ( iit.du.ac.bd school's domain) i have tried create request with identifier id1 = identifier.parse("https://www.google.com/a/iit.du.ac.bd"); identifier id2= identifier.parse("https://www.google.com/a/iit.du.ac.bd/accounts/o8/id"); var openid = new openidrelyingparty(); iauthenticationre...

MAMP + Firefox + Noscript + Drupal = No CSS -

i have installation of drupal 7 on osx lion i'm serving mamp. in safari, site displays flawlessly, in firefox style data , images fail included. additionally, have strange problem links. when click them, nothing happens. when hover, correct destination url displayed, , when c&p them browser bar, correct page loaded. other questions similar problems have been resolved fixing typos user. this problem between noscript , drupal, i've used identical drupal installations on test servers (rather on local machine) without issue before. don't see obvious reason why javascript should required load images , css, , if is, i've allowed site. gives?

RefineryCMS image uploading error, ImageMagick CentOS 5.5 -

i installed refinerycms on server(centos 5.5) , works fine except uploading images. show error like: nomethoderror in refinery::admin::imagescontroller#create undefined method `downcase' nil:nilclass i installed imagemagick typing: sudo yum install imagemagick i searched online , seems imagemagick installed yum old (version 6.2.x) removed it, installed imagemagick v6.7.7 source code. when try upload image, refinery shows: dragonfly::shell::commandfailed in refinery::admin::imagescontroller#create command failed (identify '/tmp/rackmultipart20120628-29239-70xr45') exit status 127 however, if run command "identify '/tmp/rackmultipart20120628-29239-70xr45'" in command line, show result without error. seems dragonfly can not pick installation of lastest version of imagemagick. 1 tell me how configure ? or should upgrade centos ?(i wish not) well, have struggled issue more 1 week. asked question in github , got solution there. ...

javascript - Angularjs - ng-cloak/ng-show elements blink -

i have issue in angular.js directive/class ng-cloak or ng-show . chrome works fine, firefox causing blink of elements ng-cloak or ng-show . imho it's caused converting ng-cloak / ng-show style="display: none;" , firefox javascript compiler little bit slower, elements appears while , hide? example: <ul ng-show="foo != null" ng-cloak>..</ul> though documentation doesn't mention it, might not enough add display: none; rule css. in cases loading angular.js in body or templates aren't compiled enough, use ng-cloak directive and include following in css: /* allow angular.js loaded in body, hiding cloaked elements until templates compile. !important important given there may other selectors more specific or come later , might alter display. */ [ng\:cloak], [ng-cloak], .ng-cloak { display: none !important; } as mentioned in comment, !important important. example, if have following markup <ul class=...

Van I increase my facebook fan page 'likes' through some 'action' invoked on a 'object' within an external website -

is possible increase number of 'likes' on facebook company page or band's facebook page via invoking 'action' on 'object' within external website. say i've got website produces news on bands , create button/object called 'connect artist' , on clicking link user artist facebook page , increase artists 'likes'. is possible through open graph? this violation of facebook's tos, , in lot more trouble expect. best can here add "like" button on outside page, users can click on taken band's page, can on facebook, per document: https://developers.facebook.com/docs/reference/plugins/like/

Landscape and portrait android app -

i have created 2 folders layout , layout-land 2 xml files, 1 portrait , other landscape. both of xmls work here problem. my first screen login screen , second screen main screen. if login in portrait , turn phone landscape @ main screen. layout landscape turn uses portrait xml main screen. the same error occurs if start in landscape , try move portrait later on. it seems whatever layout main that's layout used rest of app. there anyway go around this? also. i'm using android:configchanges="orientation" in manifest activities. if using android:configchanges="orientation" , can override onconfigurationchanged inflate new layout after configuration change. @override protected void onconfigurationchanged(configuration newconfig) { super.onconfigurationchanged(newconfig); setcontentview(...); } make sure have reason preventing activity being recreated on orientation change... , importantly don't because orient...

How to draw circle,rectangle manually on android videoplayer -

i wanna draw circle,rectangle or manually on video player(while video playing) in android.is possible?if code samples better. thanks. there answer ur question: see here quoted post: surfaceview not work regular view in regard. instead, following: put surfaceview inside of framelayout or relativelayout in layout xml file, since both of allow stacking of widgets on z-axis move drawing logic separate custom view class add instance of custom view class layout xml file child of framelayout or relativelayout , have appear after surfaceview this cause custom view class appear float above surfaceview . there sample project need see here

java - Default JBoss 7 Connection Pool timeout -

does know default connection timeout in jboss 7 when using connection pooling? my datasource defined this <?xml version = '1.0' encoding = 'utf-8'?> <datasources> <xa-datasource jndi-name="java:/xxxxx" pool-name="xxxxx" enabled="true" use-java-context="false"> <xa-datasource-class>oracle.jdbc.xa.client.oraclexadatasource</xa-datasource-class> <xa-datasource-property name="url"> jdbc:oracle:thin:@xxxxxxxxx:1521:xxxxxxxx </xa-datasource-property> <driver>oracle.jdbc.oracledriver</driver> <new-connection-sql>select 1 dual</new-connection-sql> <transaction-isolation>transaction_read_committed</transaction-isolation> <xa-pool> <min-pool-size>1</min-pool-size> <max-pool-size>50</max-pool-size> <is-same-rm-overrid...

c# - .NET Remoting convention -

i have server-side code using .net remoting establish connection client. normally, understand using interfaces objects passed between client , server norm , safer alternative, simple communication establishing, not see need go through trouble of defining necessary classes , interfaces. so following code, since i'm returning string client, don't feel necessity might otherwise i'm posting question here. should follow general convention or stick way i'm doing? code shown below correct way of establishing server remoting? (don't ask why i'm using remoting instead of wcf. boss requested remoting , don't know why.) class httpserver { [stathread] public static boolean startservice() { httpchannel channel = new httpchannel(80); channelservices.registerchannel(channel); type ddcservertype = type.gettype("ddcengine.ddcserver"); remotingconfiguration.registerwellknownservicetype(ddcservertype, "ddcs...

drag and drop - How can I set the draggable area of my Vaadin widgets -

i'm trying create simple dashboard dragable components in , i'm bit stumped on 1 problem. if wrap draggable 'widget' in draganddropwrapper , set layout recieve drag , drop events, 2 things happen don't ui perspective: the whole area of layout behind, turns blue (for while) when drag things (widgets, files, whatever) on it. how turn off - theme thing? the entire widget's area draggable - problem if have say, other ui components inside widget respond drag events. how can set draggable area of widgets? still want entire wrapped component display when drag, want drag occur when drag, say, title bar of widget's panel. i think workaround time being make small area of widget draggable don't think a) easy or b) nice (because when drag widget draw it's dragable area - title bar, say). any ideas? many in advance. ac

mongodb - Map/Reduce to get group() Result -

i'm trying aggregate bunch of user profile data in our app. each user has embedded profile document gender, , ethnicity attribute. { 'email': 'foo@email.com', 'profile': { 'gender': 'male', 'ethnicity': 'hispanic' } } if use group function so: db.respondents.group({ key: {}, initial: {'gender': {'male':0,'female':0}, 'ethnicity': {}, 'count': 0}, reduce: function (user, totals) { var profile = user.profile; totals.gender[profile.gender]++; totals.ethnicity[profile.ethnicity] = (totals.ethnicity[profile.ethnicity] || 0); totals.ethnicity[profile.ethnicity]++ totals.count++; } }); i result in form want: { "gender" : { "male" : ###, "female" : ### }, "ethnicity" : { "caucasian/white" : ###, "hispanic" : ###, ... ...

distributed computing - Need a 9 char length unique ID -

my application uses 9 digit number (it can alphanumeric also). can start number , increments @ beginning. application not single instance application, if run exe instance, should increment latest value , previous instance should again increment latest value when needs value. mean @ time, value should latest incremented value among instances open. this half of problem. other side is, exe s can run on machine on network , each instance should keep on incrementing (just time never goes back) 2 years. restrictions can't use files store , retrieve latest value in common place. how can that? a 9 char/digit unique number works sure. whole idea assign number (string of 9 char length) each "confidential file" , (encrypt , whatever, not job) i tried with: guid unique in total 128 bits not last or first 9 chars tick count more 9 mac address unique if 12 chars isbn (book numbering system) and on ... i think best approach might have unique number server ...

javascript - Can AngularJS auto-update a view if a persistent model (server database) is changed by an external app? -

i'm starting familiarize angularjs, build web app has view gets auto-upated in real-time (no refresh) user when changes in server-side database. can angularjs handle (mostly) automatically me? , if so, basic mechanism @ work? for example, somehow setup angularjs poll db regularly "model" changes? or use sort of comet-like mechanism notify angularjs client-side code model has changed? in application, challenge other (non-web) server-side software updating database @ times. question applies equally pure web-apps might have multiple clients changing database through angularjs web clients, , each need updated when 1 of them makes change db (model). you have few choices... you polling every x milliseconds using $timeout , $http , or if data you're using hooked rest service, use $resource instead of $http . you create service uses websocket implementation , uses scope.$apply handle changes pushed socket. here's example using socket.io, node...

c++ - Why would array<T, N> ever be slower than vector<T>? -

today decided benchmark , compare differences in gcc optimizability of std::vector , std::array . generally, found expected: performing task on each of collection of short arrays faster performing tasks on collection equivalent vectors. however, found something unexpected: using std::vector store collection of arrays faster using std::array . in case result of artifact of large amount of data on stack, tried allocating array on heap , in c-style array on heap (but results still resemble array of arrays on stack , vector of arrays). any idea why std::vector ever outperform std::array (on compiler has more compile-time information)? i compiled using gcc-4.7 -std=c++11 -o3 ( gcc-4.6 -std=c++0x -o3 should result in conundrum). runtimes computed using bash -native time command (user time). code: #include <array> #include <vector> #include <iostream> #include <assert.h> #include <algorithm> template <typename vec> double fast_sq_dis...

sentry - Using raven with celery in django -

i'm trying setup raven log sentry asynchronously using celery. think i've set things correctly, but send_raw functions in celeryclient not being called (and nothing being picked in sentry or celery). things work if don't change sentry_client setting below (the logs appear in sentry). setting are: sentry_client = 'raven.contrib.django.celery.celeryclient' installed apps: 'raven.contrib.django', # sentry.client.celery should replaced raven.contrib.django.celery in installed_apps. 'raven.contrib.django.celery', logging: logging = { 'version': 1, 'disable_existing_loggers': true, 'root': { 'level': 'warning', # warning or above go sentry... 'handlers': ['sentry'], # taras sends errors sentry }, 'formatters': { 'verbose': { 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread...

c# - Linq Query Count and GroupBy -

can tell me how sql query in linq? select [id], count(*) [data].[dbo].[mytable] group [id] you can try approach: var res = ctx.mytable // start table .groupby(r => r.id) / group key of choice .select( g => new {id = g.key, count = g.count()}) // create anonymous type w/results .tolist(); // convert results list

javascript - Rails can't include AngularJS -

i'm following tutorial , although adding gem file , bundle installing works fine. moment try include application.js, file, following error while loading it: throw error("sprockets::filenotfound: couldn't find file 'angular'\n (in /my/path/to/rails/app/assets/javascripts/application.js:13)") application.js file looks (starting line 13): //= require angular //= require jquery //= require jquery_ujs //= require jquery.ui.autocomplete //= require bootstrap //= require pusher.min.js //= require pusher_setup //= require_directory . therefore, question how can include angularjs rails project? i'm using rails 3.2.2, , ruby 1.9.3. i had face same problem. resolved following way. 1) in case, //= require_tree . missing in application.js file.. have added it. 2) restarted apache server (if webrick, restart it)

mysql - doctrine one table is referenced by multiple tables, how can i get the reference record without switch -

imaging have 3 tables, person, boy, girl table person{ id ...} table boy{ id, foreign key a_id= a.id, 1 one, description, ... } table girl{ id, foreign key a_id= a.id, 1 one, description, ... } table person can referenced once boy or girl. if person id, how can boy/girl information without trying initiate boy , girl? cause problem have many tables referenced table person, , if long. i think better way place table name in person table ,, i.e add column in person table have name of table boy , girl etc. then can refer correct table

pointers - Understanding addresses in C -

for structure splab : int main() { int a; struct splab *s1; int b; printf("%x\n",&a); printf("%x\n",&b); return 0; } i think should in second print: bfc251e8 - 8 (i.e. account space occupied s1 ). instead, got: bfc251e8 bfc251ec why? it's not order of variables. never use s1 , compiler can (and may ) optimize away , not allocate space on stack. here if try print addresses of a , b , do: ffeb7448 (&a) ffeb7444 (&b) i.e. 4 bytes difference. here if try print address of s1 (and therefore end using declaration s1 ): ffe109cc (&a) ffe109c8 (&s1) ffe109c4 (&b) you can see in fact lie in between a , b time (and need not always, other answers point out), , a , b separated 8 bytes instead of 4. another related point has alignment: for example: struct foo { int a; char b; }; while struct looks might 5 bytes wide on machine 4 byte integers, compiler says, sizeof (str...

ssh - Remote builds with IntelliJ -

i having following problem: a) have unix build environment set on remote server can ssh b) have intellij on windows what edit files through remote connection (similar functionality exists emacs) , issue shell commands such 'make' , running simple 'test-scripts' exist on server.. are functions integrated intellij or need plug-in? there ssh plugin intellij idea. available in https://plugins.jetbrains.com/idea/plugin/1203-ssh

c# - Getting Matched HTML Value with Regex -

ok start know should not using regex parse html it's not reliable, not 100% safe, etc. however, learning excercise regex as else. so example uses bbc website http://www.bbc.co.uk/sport/football/premier-league/table . the project parsing tbody of first table. trying search elements matching search value returned. example, given search "manc" want tr tag manchester city , manchester united (matched url). what have far <tr\b[^>]*>(.*?)manc(.*?)</tr> matches first tr closing tr after man city , returns expected result man utd. point out i've gone wrong regex. edit: source (trimmed) <tbody id="trc-20-118996114-3"> <tr id="team-138824012" class="team first"> <td class="statistics"></td> <td class='position'> <span class='moving-up'>moving up</span> <span class='position-number'>1</span> </td> ...

javascript - jQuery JSON value -

i have rest service returns json this: [{"@id":"123","name":"name"}] and i'm tearing hair out trying figure out how hell value @id. i've tried: var temp = data['@id']; var temp = data[0].'@id'; var temp = data[0].['@id']; all of return errors. can please me out here? var temp = data[0]['@id']; using .property accepts symbols can use in identifiers , identical ["property"] . since have array single object "@id" property , @ can't used in identifiers, have use brackets. above translates data -> it's 0th index (index count start 0) -> property "@id".

osx - Why do I get multiple instances of NSDocument but only one window? -

in document based application, no less three documents opened when run app, yet 1 window displays. when save&quit, saves another document 1 belongs window. how can happen? in particular, not want multiple instances of nsdocument , how can avoid @ startup? i found has way app set in interface builder. code did not cause behavior. so, if seemingly random documents opening when starting doc-based application, remember also check xib settings in ib!

android - how to implement this flow of activities - many going through one MainCheckerActivity -> back or SettingsActivity? -

i have 1 central maincheckeractivity checks if settings ok. maincheckeractivity being called many activities a,b,c,.. if maincheckeractivity finds settings missing shows dialog , (currently) finishes flow returns calling activity a,b,c... then user has manually navigate settingsactivity a,b,c... so now: a -> maincheckeractivity -> shows dialog -> finishes maincheckeractivity -> -> settingsactivity how implement logic flow more convenient user this: a -> maincheckeractivity -> shows dialog -> finishes maincheckeractivity -> settingsactivity -> many thanks! if start maincheckeractivity intent.flag_activity_no_history , not kept in history stack of task. if maincheckeractivity launches settingsactivity, when user clicks "back" in settingsactivity return activity started maincheckeractivity (ie: either a, b, or c description).

java - Selenium RC not able to work with downloads popup window -

i new selenium rc. have been working in eclipse run simple junit test case run , download flashplayer adobe.com. but selenium rc not able click or recognise downloads pop window. have been seeing several suggestions in google search still not able it. i have been trying window id or name of pop window work it, still not able it. have copied major function of code here down below: public void testpopup() throws exception { selenium.open("http://get.adobe.com/"); selenium.open("/flashplayer/"); selenium.click("id=buttondownload"); string ids[]=selenium.getallwindowids(); for(int i=0;i<ids.length;i++) system.out.println(ids[i]); string[] windownames=selenium.getallwindownames(); for(int i=0;i<windownames.length;i++) system.out.println(windownames[i]); string feedwinid = selenium.geteval("{var windowid; for(var x in selenium.browserbot.openedwindows ) {windowid=x;} }"); sy...