Posts

animation - wpf usercontrol states, modifying height -

i little bit confused of states , animations in wpf. i make usercontrol. usercontrol contains (inside main grid) 2 grid. 1 of them header , second 1 content. if user click on header, content expand, otherwise collapsed. , animation expanding (slide down content header). basicaly states (for future purpose). problem is, if add states , using slide efect transformation, content of grid (content grid) transformed well. use states modifying height of element. if u modify element, no animation appear , change height @ once. the hierarchy looks like: --- wrapper grid ------ header grid --------- content of header ------ content grid --------- content of content grid (like buttons, labels, etc) the visualstates looks like: <visualstatemanager.visualstategroups> <visualstategroup x:name="visualstategroup"> <visualstategroup.transitions> <visualtransition generatedduration="0:0:1"/> ...

html5 - remove arrow in chrome for input with attribute "list" -

Image
i have code: <input list="browsers"> <datalist id="browsers"> <option value="internet explorer"> <option value="firefox"> <option value="google chrome"> <option value="opera"> <option value="safari"> </datalist> in chrome little black down arrow in right corner is there way remove or hide that? jsfiddle update: i know can wrap it, , close psuedo-element show in jsfiddle but need solution that, there other way? the following work: input::-webkit-calendar-picker-indicator { display: none; } jsfiddle here

how to use relative import within python spyder IDE -

i got anaconda python , using spyder ide. i'm trying figure out how can use relative import run bottom or f5. suppose have pkg/a/foo1.py, pkg/a/foo2/py, , foo1.py has "from . import foo2", if hit run report relative import error. i know how in command line environment can type, e.g. "python -m pkg.a.foo1". how can in spyder ide? thanks jq if there pkg/a/__init__.py file i.e., if pkg.a python package from . import foo2 correct. doesn't matter write code in spyder ide, notepad, or emacs; code same. the remaining question how run python scripts in spyder ide. don’t directly run modules inside packages i.e., don't run python pkg/a/foo1.py . leads python modules being available under different names. see traps unwary . run python -m pkg.a.foo1 project directory instead. configure command run on f5 if spyder ide allows it.

php - Installing Tomcat along with WAMP -

i have been using wamp develop websites long time. have .jar file want include in website , use it's functions. did reading , ended php/java bridge. problem requires tomcat. as i've mentioned, i'm using wamp , of web files there (this wamp i'm using: http://www.wampserver.com/en/ ). according php/java bridge have install tomcat tomcat apache server conflicts wamp( http://php-java-bridge.sourceforge.net/doc/tomcat6.php ). is there way can install tomcat , make work current wamp? can use kind of connector?

listener - Android - basic gesture detection in TableLayout -

i new android development, please excuse naivety of post. have table layout in dynamically adding text view each cell. wish add swipe detection on cells , perform action on basis of cell swiped. tried adding onswipetouchlistener on each of cell. textview txtviewcell = new textview(getactivity()); tablerow.layoutparams paramsexample = new tablerow.layoutparams(60, 60); txtviewcell.setbackgroundcolor(0xfffaf8ef); txtviewcell.setgravity(gravity.center); paramsexample.setmargins(5, 5, 5, 5); txtviewcell.setlayoutparams(paramsexample); final int currrow = i; final int currcol = j; txtviewcell.setontouchlistener(new onswipetouchlistener( getactivity()) { public void onswipetop() { handleswipe(currrow, currcol); } public void onswiperight() { handleswipe(currrow, currcol); } public void onswipeleft() { handleswipe(currrow, currcol); } public void onswipebottom() { handleswipe(currrow, currcol); } public bool...

angularjs - How to get ensureLoggedIn working with routeProvider -

i'm working on node.js application, using angular.js, passport , connect-ensure-login. only on refresh (f5), redirect in ensureloggedin seem work , login page, otherwise think routeprovider one-page app takes on normal click , localhost:3000/users still 500 error '/api/users'. how can connect-ensure-login (ensureloggedin) working both direct path , click-through? app.get('/users', ensureloggedin('/login')) for apis, i'm using app.get('/api/users', passport.authenticate('bearer'), ... routeprovider snippet application: .config(function($routeprovider, $locationprovider) { $routeprovider .when('/', { templateurl: 'views/home.html' }) ... references: https://www.npmjs.org/package/connect-ensure-login http://passportjs.org/ you may want go solving issue making use of $httpprovider.interceptors . in case catch 500 error co...

listview - Delete a list view Row Titanium -

i want delete row in list view. when user clicks row want open dialog showing message 'sure want delete'. when user clicks ok row should deleted. listview.addeventlistener('itemclick', function(e){ var section = e.section; var itenindex = e.itemindex; var dialog = ti.ui.createalertdialog({ title : 'do want delete row?', buttonnames : ['yes','no'] }); dialog.addeventlistener('click', function(e){ if(e.index == 0){ section.deleteitemsat(itenindex,1); } }); dialog.show(); });