Posts

Showing posts from March, 2010

animation - ObjectAnimator in Android doesn't update the View's parent -

objective: build slideup animation in imageview fixed height placed in linearlayout wrap_content height. problem: the animation runs normally, parent linearlayout doesn't resize while or after animation occurs. mean, if set "wrap_content" , "content" changes it's position (y axis -100), it's expected parent accompanies animation, "animating" it's height 0 well, or not? how can force continue "wraping" content while animation runs? ps: no, it's not fillafter, i'm using objectanimator, changes real object properties, not view drawn. instance, click event not being triggered on place image used before animation. my code: objectanimator oa = objectanimator.offloat(findviewbyid(r.id.menu_tile_image), "y", 0, -100); layout structure: linearlayout (match_parent, wrap_content) > imageview (fill_parent, 100) any clue on that? thanks!

Android App Works on Mobile Device But not on Tablet Device -

i have application works on mobile device ,but when run same application on tablet device, i'm not able see layout file? note: not getting error update:i define layout xml file in separate res>layout folders like 1) layout 2)layout-large 3)layout -small and resources in drawable-hdpi,drawable-ldpi, etc... update1: andriodmanifest file: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.teluguone.torilt" android:versioncode="1" android:versionname="1"> <uses-sdk android:minsdkversion="8" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.raised_thread_priority"></uses-permission> <uses-permission android:name="android.permission.wake_lock"/> &

python - Stream results in celery -

i'm trying use celery schedule , run tasks on fleet of servers. each task long running (few hours), , involves using subprocess call program given inputs. program produces lot of output both in stdout , stderr. is there way show output produced program client in near real time? stream output, client can watch output spewed task running on server without logging server? you did not specify many requirements , constraints. i'm going assume have redis instance somewhere. what can read output other process line line , publish through redis: here's example can echo data file /tmp/foo testing: import redis redis_instance = redis.redis() p = subprocess.popen(shlex.split("tail -f /tmp/foo"), stdout=subprocess.pipe) while true: line = p.stdout.readline() if line: redis_instance.publish('process log', line) else: break in separate process: import redis redis_instance = redis.redis() pubsub = redis_instance.pub

python - stripping a pattern from the end of the string -

i want see if file test_100.webp exists , @ file test.yaml. therefore, need strip pattern "_100.webp" end. tried use code below , giving me issues. i, image in enumerate(images_in_item): if image.endswith("_100.webp"): image_strip = image.rstrip(_100.webp) snapshot_markup = os.path.join(image_strip + 'yaml') do this: suffix = '_100.webp' if image.endswith(suffix): image_strip = image[:-len(suffix)] snapshot_markup = os.path.join(image_strip + 'yaml')

neural network - NeuQuant.js (JavaScript color quantization) hidden bug in JS conversion -

Image
neuquant.js works when image width , height multiple of 100: 300x300 otherwise, there bug: 299x300 (these made this web app .) i'm 90% sure bug in neuquant.js. have made tests using jsgif , omggif , , both encoders have same bug. obvious photographic images (quantize 256 colors) when image size other multiple of 100. if understand neural networks, color quantization, and/or issues porting as3 js, please take look. original porter has abandoned project, , close working! here my code implements in worker omggif: importscripts('omggif.js', 'neuquant.js'); var rgba2rgb = function (data) { var pixels = []; var count = 0; var len = data.length; ( var i=0; i<len; i+=4 ) { pixels[count++] = data[i]; pixels[count++] = data[i+1]; pixels[count++] = data[i+2]; } return pixels; } var rgb2num = function(palette) { var colors = []; var count = 0; var len = palette.length; ( var i=0; i<len; i+=3 ) { colors[coun

android - Can't view Gyro on Galaxy Tab 10 -

i installed androsensor on s3. can view sensors. when installed software on galaxy tab 10. can't view gyro sensor data. working on project need access gyro , accelerometer. both phones have gyro- in s3 have: lsm330dlc in galaxy tab have: mpu 3050 android versions of phones are: s3 : android os, v4.1 galaxy tab: android os, v4.0.3 so software not working because of android version? or because data sensors different? why software not detecting gyro on both phones? i suggest writing code query android's sensormanager object. example, try following sensormanager sm = (sensormanager)getsystemservice(android.content.context.sensor_service); list<sensor> sensorlist = sm.getsensorlist(sensor.type_all); for(sensor sens : sensorlist) { log.d("test", "name="+sens.getname()+",type="+sens.gettype()); } sensor sensorgyro = sm.getdefaultsensor(sensor.type_gyroscope); log.d("test", (sensorgyro == null ? "

amazon s3 - distcp from s3 to hadoop - file not found -

i getting below error file not found. well...the file exists. newbie distcp. using cloudera fyi. https://s3.amazonaws.com/test-development/test/201305031003_0_ubuntu.gz ubuntu@ubuntu:~$ hadoop distcp -i 201305031003_0_ubuntu.gz s3://id:key@test-development/test/201305031003_0_ubuntu.gz 13/05/04 14:54:29 info tools.distcp: srcpaths=[201305031003_0_ubuntu.gz] 13/05/04 14:54:29 info tools.distcp: destpath=s3://id:key@test-development/test/201305031003_0_ubuntu.gz failures, global counters inaccurate; consider running -i copy failed: org.apache.hadoop.mapred.invalidinputexception: input source 201305031003_0_ubuntu.gz not exist. @ org.apache.hadoop.tools.distcp.checksrcpath(distcp.java:641) @ org.apache.hadoop.tools.distcp.copy(distcp.java:656) @ org.apache.hadoop.tools.distcp.run(distcp.java:881) @ org.apache.hadoop.util.toolrunner.run(toolrunner.java:70) @ org.apache.hadoop.util.toolrunner.run(toolrunner.java:84) @ org.apache.hadoop.tools.distcp.main(d

how do I expose the user groups in a public registration-form in joomla? -

when creating new account front-end i'd user able choose user group in register (joomla 2.9). how expose groups created in back-end registration form, users choose 1 when registering? thanks. well, can add field form problem not want show of groups since people select super admin or admin. need instead make custom field more selective.

linq - how to combine query results of several times function call with entity framework5? -

i want use function query db linq , combine results,i write code follows cannot work , 1 can me? thanks! the error:(the operation cannot completed because dbcontext has been disposed) the part code: public static ienumerable<userlocation> loadeduserlist; public static ienumerable<userlocation> combineduserlist; public static void loaddatainstaticclass() { using (var context = new sptialtestentities()) { var loadeduserlist = newrcords in context.userlocations newrcords.id > lastloadedid select newrcords; if (loadeduserlist.any()) { foreach (var user in loadeduserlist) { console.writeline(user.username); } if (combineduserlist != null)

html - Casting in java, request.getParameter -

i trying real hard understand why told getparameter returns object need cast string in following code? @ string timetaken error type mismatch: cannot convert void string. confused causing error, long datatype on duration or string datatype on user? public void dofilter(servletrequest request, servletresponse response, filterchain chain) throws ioexception, servletexception { long t0 = system.currenttimemillis(); // pass request along filter chain chain.dofilter(request, response); long t1 = system.currenttimemillis(); long duration = t1 - t0; string user = request.getparameter("username"); string timetaken = system.out.println("<html><body><p>request " + user + " @ 10.10.1.123 took " + duration + "ms </p></body></html>"); context.log(timetaken); } thanks in advance. system.out.println not return anything, prints value console. trying use non existing return v

ruby on rails - Combine scoped fields_for and one additional form rendering -

let's i'm writing simple todo application. there 3 hardcoded projects user able add tasks (using fields_for method) basically, form looks that: # task.first_project, task.second_project , task.third_project scopes # retrieving tasks, belongs chosen project. = form_for setup_project(@project) |f| h3 first project's tasks: = f.fields_for :tasks, f.object.tasks.first_project |ff| = ff.text_field :title = ff.hidden_field :project_id, value: 1 h3 second project's tasks: = f.fields_for :tasks, f.object.tasks.second_project |ff| = ff.text_field :title = ff.hidden_field :project_id, value: 2 h3 third project's tasks: = f.fields_for :tasks, f.object.tasks.third_project |ff| = ff.text_field :title = ff.hidden_field :project_id, value: 3 i have form helper adding 1 empty task form @ end of task forms list: def setup_project(project) 1.times { project.tasks.build } project end and that's main problem. code form

c++ - Retrieving maximum value from a range in unsorted array -

i have unsorted array . have numerous queries in give range (expressed 2 array indexes) , maximum value range (that is, specified slice of array) has returned. example: array[]={23,17,9,45,78,2,4,6,90,1}; query(both inclusive): 2 6 answer: 78 which algorithm or data structure construct retrieve maximum value range. (there lot of queries) edit: using c++ i think preprocessing allowed. range minimum query problem (maximum here). good review of problem @ topcoder . suitable data structures: segment tree , sqrt-decomposition

c# - Replace all attributes in Visual Studio -

i have many cs files, next annotation: [js(md.pr, imo = false, tr="csc")] where tr value changed between each cs file. i want delete these annotation automaticlly. try use "replace all" in visual studion, when choose regular expressions function. wrote: find what: [js*] replace '' and finds many characters in code, don't want delete. how can it? i think you're looking following regex: \[js.*\] the char [ special char in regex, has escaped. \[ = [ . = matches single character except line break. * = matches 0 or more occurrences of preceding expression, , makes possible matches. more information surf to: http://msdn.microsoft.com/en-us/library/2k3te2cs%28v=vs.100%29.aspx

c# visual studio how to pass value from subclass to parent class? -

i'm new here, , new in c# programming in visual studio. currently have assignment c# refactoring. this original class calculator.cs using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.windows.forms; namespace huang_kai_30077528_assign1 { public partial class calculator : form { public calculator() { initializecomponent(); } private void radiobutton1_checkedchanged(object sender, eventargs e) { } private void caloriecalculation() { if (rbtnmale.checked) { txtcalories.text = (66 + (6.3 * convert.todouble(txtweight.text)) + (12.9 * ((convert.todouble(txtfeet.text) * 12) + convert.todouble(txtinches.text))) - (6.8 * convert.todouble(txtage.text))).tostring(); } else

sublimetext2 - Sublime Text 2 - HTML autocomplete -

in st2 when type div.foo , press tab goes <div class="foo"></div> is there setting autocompletion that? <div class="foo">     // 4spaces here. </div> thank you. updated didn't find special setting found change snippet if intested. in sublime text 2/packages/html/html_completions.py change snippet = "<{0} class=\"{1}\">$1$0".format(tag, arg) to snippet = "<{0} class=\"{1}\">\n\t$1\n$0".format(tag, arg) solved. you must using emmet.... stock sublime text 2 not auto complete class attribute typing element.class emmet's doing. use it... love emmet magic. similarly type element>element make second 1 nest on first one. or element#id add id instead of class... here entire cheat sheet emmet more completions using emmet plugin on st2.

ios - How to subclass UINavigationBar correctly also using appearance -

Image
this what trying achieve: nb: title controller. some additional information:- this navigation bar appear on around 10 view controllers. it not part of navigation controller, not required be. the button on left static (will on navigation bar). the right button not static , either not exist or different on different view controllers. the left button acts sliding menu (i.e. menu slides in underneath left) i using storyboard in setup question correct way achieve this? existing code have tried implement this, can 1 or other of buttons, without title working. implement background used appearance api below: didfinishlaunching... // custom navigation bar appearance setup [[uinavigationbar appearance] settitletextattributes: [nsdictionary dictionarywithobjectsandkeys: [uicolor colorwithred:245.0/255.0 green:245.0/255.0 blue:245.0/255.0 alpha:1.0], uitextattributetextcolor,

c++ - Distance between istream_iterators -

i trying count amount of elements read std::cin using std::distance constructor argument of vector in advance, so: // gives correct amount, can't use put vector int size = std::distance(std::istream_iterator<std::string>(std::cin), std::istream_iterator<std::string>()); std::vector v(size); // read stream std::copy(...); obviously can complete in 1 step std::copy , require setting size beforehand. question isn't vectors though, it's getting size of arbitrary input using std::istream_iterator without affecting stream. ideas? std::istream_iterator inputiterator , means supports single pass on range you're iterating. there's no way figure out size, , go beginning read data. you can read std::cin (or other input stream) using std::copy without knowing size beforehand, use std::back_inserter append data being read vector . std::vector v; std::copy( std::istream_iterator<std::string>(std::cin), std::istre

sql - Using temp column to filter the results -

my query this. select id,name,salary,(salary-2000) [deductedsalary] employeedetails i want use [deductedsalary] column in clause, similar below query. select id, name, salary, (salary-2000) [deductedsalary] employeedetails [deductedsalary] > 5000 note: don't want use filter query 'salary' column you can use subquery define alias: select * ( select salary-2000 deducted_salary , * employeedetails ) subqueryalias deductedsalary > 5000

ios - How to center a subview -

Image
i adding uiviewcontroller subview uiviewcontroller. it works great. having hard time trying center subview in middle of parent view. i read , found 2 lines of code worked other people not working me. could point out problem?? those are: popupcontroller.view.center = [self.view convertpoint:self.view.center fromview:self.view.superview]; and popupcontroller.view.center = cgpointmake(self.view.bounds.size.width / 2, self.view.bounds.size.height / 2); parent view controller code: - (ibaction)selectroutine:(id)sender { uistoryboard *storyboard = [uistoryboard storyboardwithname:@"storyboard" bundle:nil]; createroutinepopupviewcontroller* popupcontroller = [storyboard instantiateviewcontrollerwithidentifier:@"createroutinepopupview"]; // popupcontroller.view.center = [self.view convertpoint:self.view.center fromview:self.view.superview]; popupcontroller.view.center = cgpointmake(self.view.bounds.size.width / 2, self.view.bounds.size

ruby on rails - Heroku Europe: hung requests in Unicorn workers -

i have app on heroku forked try out europe region support. after initial hurdles ( heroku europe region: "application error" when trying fork ) seems working fine. i ran simple load test ab (apache bench) tool , expected see improvements in requests per second. however, not so: timings 1000 requests 10 concurrent users (ab -n 1000 -c 10 <url>) us: connection times (ms) min mean[+/-sd] median max connect: 305 349 44.4 337 719 processing: 128 356 282.8 244 2213 waiting: 127 350 283.0 238 2213 total: 442 705 280.5 610 2521 eu: connection times (ms) min mean[+/-sd] median max connect: 125 188 47.6 175 451 processing: 67 2595 3537.9 3309 30171 waiting: 66 2591 3538.9 3309 30170 total: 207 2783 3536.2 3472 30321 some things jump out: latency (see "connect:") lower eu us, expected. good. some requests in eu taking 30s ? wh

html - Dreamweaver to Aptana migrate - what to do with templates -

i have been using dreamweaver simple html web development , have been using .dwt templates html pages. there both static , dynamic pages. have migrated aptana ide, not sure dwt templates. how can migrate them aptana, have similar feature willing rewrite them in aptana. there page here: https://wiki.appcelerator.org/display/tis/creating+a+new+template shows how add available templates , question here: how add "new template" list? shows how add them file > new template menu.

iphone - display pickerview along with action sheet -

Image
i have textfield. once tap on want uipickerview pop out , select item uipickerview , after once done selection want confirm selection tapping on uiactionsheet has confirm button on it.so requirement have uiactionsheet , beneath picker view. beginner in ios development , still not familiar technical terminologies. please bear informal way of asking questions. here block of code: creating uipickerview , uiactionsheet uiactionsheet *confirmroomselectionas =[[uiactionsheet alloc]initwithtitle:@"" delegate:self cancelbuttontitle:@"cancel" destructivebuttontitle:nil otherbuttontitles:@"done",nil]; uipickerview *roomtypepicker=[[uipickerview alloc]init]; [confirmroomselectionas addsubview:roomtypepicker]; [confirmroomselectionas showinview:self.view]; [confirmroomselectionas setbounds:cgrectmake(0, 0, 320, 600)]; [roomtypepicker setframe:cgrectmake(0, 170, 320, 216)]; [roomtypepicker setdatasource:self]; [roomtypepicker setdelegate: self]; roomt

javascript - jQuery stops working when quotes removed from a property in css method -

in jquery docs, mentioned quotes optional in code when remove it, error flags in firebug console. also, jquery can equally interpret css , dom formatting of multiple-word properties. example, jquery understands , returns correct value both .css({'background-color': '#ffe', 'border-left': '5px solid #ccc'}) , .css({backgroundcolor: '#ffe', borderleft: '5px solid #ccc'}). notice dom notation, quotation marks around property names optional, css notation they're required due hyphen in name. reference link: http://api.jquery.com/css/#css-propertyname-value let me know doing wrong concept , ways of using property/value pair in css method? whole code - <!doctype html> <html> <head> <title>jquery css check</title> <style> li {color:red;} </style> </head> <body> <ul> <li>product 1</

javascript - how to find the set/get functions of a property (Object.defineProperty) -

suppose property defined follows: object.defineproperty(window, 'prop', { set: setval, get: getval, configurable: true }) ; what redefine window.prop, example: var ref2setval = window.prop.set ; var ref2getval = window.prop.get ; object.defineproperty(window, 'prop', { set: function(val){ ref2setval(val*2); }, get: function() { return 10 + ref2getval(); } }) ; window.prop.set/get not work, possible ? object.getownpropertydescriptor standards compliant way: var desc = object.getownpropertydescriptor(window, "prop"); var ref2setval = desc.set; var ref2getval = desc.get;

model view controller - call action with parametr from route -

i have following action in zf2 controller public function indexaction($text1,$text2) { } is there way call indexaction $text1 & $text2 params route for example : localhost/project/index/text1/sadasd/text2/asdasd take @ zend\mvc\controller\plugin\params . example code be: $t1 = $this->params()->fromroute('text1'); $t2 = $this->params()->fromroute('text1'); // edit, fromroute() default, can $t1 = $this->params('text1', $defaultvalue); adding them parameters indexaction() won't anything.

PHP how to do unless string match..? -

i have code: <?php unless($category['name'] == "offer") { ?> <p>write unless category name equal "offer"</p> <?php } ?> i know wrong, how create unless statement in php there in rails? <?php if ($category['name'] != "offer") { ?> <p>write unless category name equal "offer"</p> <?php } ?>

css - Floating 3 divs within a container div -

Image
i attempting float 3 divs within container div. thought simple i'm having difficulty keeping them evenly spread apart. want website responsive, can't have spacing specified in px. css: #circlecontain{background-color:green;height:200px; width:1200px; margin:auto;} .circle{width:200px;height:200px;border-radius:100px; font-family:arial, helvetica, sans-serif;font-size:20px;color:#fff; line-height:150px;text-align:center;background: rgba(0,0,0,0.8); margin:auto; display:inline-block; vertical-align:middle; } thanks in advance hold them inside 3 div elements width of 33% each, , use margin: auto; on round divs, way equal. demo <div class="wrap_me"> <div></div> </div> <div class="wrap_me"> <div></div> </div> <div class="wrap_me"> <div></div> </div> css .wrap_me { width: 33%; border: 1px solid #f00; float: left; } .wrap_me

racket - Using cons, list, append in Scheme -

i need write code take element , add list give input, , return new list instead of old list.. after recurssion , need new list... below code working fine.. try reduce set! because confuse me , sometime take error cannot solve.. how can operation without set! ? try cons, list , append none of them job. (set! list (cons element list)) thank you.. just (cons element list) enough. your code altering contents of list variable. don't that, in functional style, , way use set! did. but return new list, has new element on top of it, call (cons element list) enough: ... (let ((newlist (cons element oldlist))) ..... ..... use newlist , oldlist needed

css - Sidebar with 100% height and scrolling content area -

i'm using bootstrap twitter , designed fluid layout fixed navbar , footer. still need fixed left sidebar 100% height , content area scrolls if necessary. i'd use browser's default vertical scrollbar, mean, don't want use overflow-y in content div. saw on html5 websites , i'd same. can me? here code i'm using: http://jsfiddle.net/julianonunes/ahk3c/2/embedded/result/ <!-- part 1: wrap page content here --> <div id="wrap"> <!-- fixed navbar --> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <a class="brand" href="#"> texto</a> <ul class="nav pull-right"> <li><a href="#">dashboard</a> </li> <li class=""><a href="#">link</a> </li> </ul> </div> </div&g

Redis strings vs Redis hashes to represent JSON: efficiency? -

i want store json payload redis. there's 2 ways can this: one using simple string keys , values. key:user, value:payload (the entire json blob can 100-200 kb) set user:1 payload using hashes hset user:1 username "someone" hset user:1 location "ny" hset user:1 bio "string on 100 lines" keep in mind if use hash, value length isn't predictable. they're not short such bio example above. which more memory efficient? using string keys , values, or using hash? it depends on how access data: go option 1: if use of fields on of accesses. if there variance on possible keys go option 2: if use single fields on of accesses. if know fields available p.s.: rule of thumb, go option requires fewer queries on of use cases.

Modifying date field in XML document stored in SQL Server table -

i have xml document stored in sql server table xml column has inaccurate times in date fields i 'd update date , time (saledatetime, linestarttime, lineendtime) values in document 15 seconds so, instance, 2012-02-01t00:07:50 becomes 2012-02-01t00:08:05 (long story why needs way; it's out of hands). there can 1 many transactions , each transaction can have 1 or more line entries. i have tried openxml, modify method, etc dateadd , can't right. @ wits end. appreciated. in advance!! sample below create table xmltable (doc xml); insert xmltable (doc) values ( '<?xml version="1.0" encoding="utf-8"?> <root> <transaction> <saleid>1</saleid> <sale> <saledatetime>2012-02-01t00:07:00</saledatetime> <lineitem> <line>1</line> <linestarttime>2012-02-01t00:07:00</linestarttime> <lineendtime>2012-02-01t00:07:00</lineendtime>

graph - Identify paths between two nodes in neo4j -

i have 2 paths in graph: a-b-c-d , a-b-e-f. assign identification numbers paths, i.e. a-b-c-d 1 , a-b-e-f 2. is possible? if yes, how? you mean persistent path id? isn't directly featured, can in query in cypher. if want somthing persistent, can use index, create relationship index store relationship s of path 1 under key/value of path:1. edit: after getting more information, here's use case using index: it define in index. here do: node = db.createnode(); node b = db.createnode(); node c = db.createnode(); node d = db.createnode(); node e = db.createnode(); node f = db.createnode(); relationship atob = a.createrelationshipto(b, dynamicrelationshiptype.withname("relationship")); relationship btoc = b.createrelationshipto(c, dynamicrelationshiptype.withname("relationship")); relationship ctod = c.createrelationshipto(d, dynamicrelationshiptype.withname("relationship")); relationship b

ruby on rails - Route concern and polymorphic model: how to share controller and views? -

given routes: example::application.routes.draw concern :commentable resources :comments end resources :articles, concerns: :commentable resources :forums resources :forum_topics, concerns: :commentable end end and model: class comment < activerecord::base belongs_to :commentable, polymorphic: true end when edit or add comment, need go "commentable" object. have following issues, though: 1) redirect_to in comments_controller.rb different depending on parent object 2) references on views differ well = simple_form_for comment |form| is there practical way share views , controllers comment resource? you can find parent in before filter this: comments_controller.rb before_filter: find_parent def find_parent params.each |name, value| if name =~ /(.+)_id$/ @parent = $1.classify.constantize.find(value) end end end now can redirect or whatever please depending on parent type. for example in view: = s

Authentication in php MySQL -

i using sql , php code, user table have password column char(32) , salt column char(64) now php code trying authenticate using below code $this->_authadapter = new zend_auth_adapter_dbtable( $db, engine_api::_()->getitemtable('user')->info('name'), 'user_id', 'password', "md5(concat('".$salt."', ?, salt)))" ); but gives me following error: supplied parameters zend_auth_adapter_dbtable failed produce valid sql statement, please check table , column names validity. any suggestion??

how i can read from text file and insert this data to database in android -

i need read text file , insert data database the text file contain lines , each line contain data separated comma i code running without error and lines reads successfully but data not save database public void getfrom_text(){ string []message=null; bufferedreader br=null; string name1, faculty1, deparment1, officenumber1, email1, phone1,officehour1; long e; try{ string scurrentline = null; br =new bufferedreader(new inputstreamreader(getassets().open("ab.txt"))); scurrentline = br.readline(); while((scurrentline = br.readline()) != null){ log.d("line file", scurrentline); if(scurrentline!=null ){ message=scurrentline.split(","); faculty1=message[0]; deparment1=message[1]; name1=message[2]; officenumber1=message[3]; phone1=message[

navigate to settings page of chrome using selenium -

i looking navigate "chrome:settings" using selenium. when try using driver.get("chrome://settings") stops @ "about:blank". when try using "http://chrome://settings" goes "chrome//settings". please me. you can't access page through selenium. selenium designed automate web pages, not settings mechanism of browser. whatever want in settings page should doing using desiredcapabilities, have @ chromedriver wiki more information: https://code.google.com/p/chromedriver/wiki/capabilitiesandswitches it helpful if told trying inside settings tab, may able provide more useful suggestion.

jsp - Display contents of a list of beans with struts2-iterator -

i´m trying display list constains objets of bean. i´m using iterator tag display list /*jsp*/ <s:iterator value="linftaq" var="res"> <tr> <td><s:property value="#res.numejercicio"/></td> <td><s:property value="#res.numoks()"/></td> <td><s:property value="#res.numkos"/></td> </tr> </s:iterator> /*action*/ public class taquitoscopioaction extends actionsupport{ /* . . . */ list <informetaquitoscopio> linftaq; /* filled list */ /*bean*/ public class informetaquitoscopio { private string numejercicio; private string numoks; private string numkos; public informetaquitoscopio() { super(); // todo auto-generated constructor stub } public informetaquitoscopio(string numejercicio, string numoks, string numkos) { super(); this.numejercicio = numejercicio; this.numoks = numoks; this.numkos = numkos; } /*getters , setters*/ } but jsp doe