Posts

javascript - Navigation bar that animates on click and displays another bar -

hello need coming idea on how create category navigation bar. when 1 of parent category clicked shows box besides shows subcategories. this has animated effect , show on click , disappear on lose focus. wanna know best of doing be. i'm new please help. thanks. generally, sub menus have css rule of display:none until they're interacted with, property changes make show. can done dozens of different ways, either manually, using plugin, or framework. since you're asking question, may want take @ twitter bootstrap , provides dropdown functionality among other components.

How to handle Flash objects using Selenium Web Driver -

how handle flash objects perform actions in application. unable identify element. can 1 me issue selenium automates web browsers. from http://seleniumhq.org .. selenium automates browsers. that's it. flash objects impossible automate using selenium flash objects not technically 'browser driven' javascript is. you'll have find other software automate flash. source - contributor / maintainer of project.

formal methods - How to show the “count” of a set relation? -

please have @ below taking’ = taking ∪ {s? → m?} as can see, taking name relation s maps m . above relation shows adding procedure (union) adding new maptlet relation. however, need number of s available in relation. how can it? below have done #taking = numberofstudents but not sure this. please help if want know how many different student taking m (whatever m is) it easy: need possible s taking relation , measure cardinality of resulting set. just that: numberofstudents = #(\dom taking) where \dom function(relation) domain give students in relation.

python - flask: how to architect an POST endpoint that interfaces with HTML dropdowns -

so have sqlite db file i've used python script generate reading in present information flask endpoint. the endpoint parses items db , generates dict object subsequently pass jinja template: @app.route('/endpoint', method=['get', 'post']) def somefunction: << generate finaldict via db queries >> return render_template('whatever.html', **"finaldict": finaldict}) whatever.html renders bootstrap table, i.e. <table> <tr> <th> header 1 </th> ... </tr> <tr> <td> {{ finaldict['someitem'] }} </td> ... </tr> </table> so far, good, renders how i'm hoping might. what want do, have final column in table contain dropdown menu allow user categorize item in row. so if row looks id | name | whatever , have final | [dropdown] allow user select categorization, 1 of 3 possibilities. wha...

How to check if kernel driver is attached with libusb-0.1? -

in libusb-1.0 1 can use libusb_kernel_driver_active this: if (libusb_kernel_driver_active(dev_handle, 0) == 1) { //find out if kernel driver attached cout<<"kernel driver active"<<endl; if(libusb_detach_kernel_driver(dev_handle, 0) == 0) //detach cout<<"kernel driver detached!"<<endl; } how check using libusb-0.1? for libusb-compat can use usb_get_driver_np : api_exported int usb_get_driver_np(usb_dev_handle *dev, int interface, char *name, unsigned int namelen) { int r = libusb_kernel_driver_active(dev->handle, interface); if (r == 1) { /* libusb-1.0 doesn't expose driver name, fill in dummy value */ snprintf(name, namelen, "dummy"); return 0; } else if (r == 0) { return -(errno=enodata); } else { return compat_err(r); } }

hyperlink - my menu affecting href image -

menu style affects image when add link image (href), notice purple affectng google image. <!doctype html> <html> <head> <style> ul { float:left; width:100%; padding:0; margin:0; list-style-type:none;} { float:left; width:6em; text-decoration:none; color:white; background-color:purple; padding:0.2em 0.6em; border-right:1px solid white; } a:hover {background-color:#ff3300;} li {display:inline;} </style> </head> <body> <ul> <li><a href="#">link one</a></li> <li><a href="#">link two</a></li> <li><a href="#">link three</a></li> <li><a href="#">link four</a></li> </ul> <p> body text </p> <a href="test.php" target="_blank"><img src="http://www.google.se/images/google_80wht.gif" </body> </html> the css rule you've defined ...

android - facebook connect with no sdk -

i"m trying implement facebook connect on webview. problem couldn't figure out how implement it. as per documentation called api below window.location.href="https://www.facebook.com/dialog/oauth?client_id=148352165368959&redirect_uri=https://www.facebook.com/connect/login_success.html&response_type=code%20token&scope=email,publish_actions" it bring confirmation window etc etc i'm not sure how navigate application , how information https://www.facebook.com/connect/login_success.html i've gone through bbq plugin documentation hard newbie me. time in advance. can atlest point me tutorial? if wish integrate facebook android application use facebook sdk. sdk- https://github.com/facebook/facebook-android-sdk reference- http://developers.facebook.com/android/