Posts

treeview - Is there a way to not display empty TreeCells in JavaFX? -

Image
my treeview displayed though there no treeitems in it. there way not display treecells before have corresponding treeitem display? this how looks without items: this how looks when 1 item added root: thanks suggestions :) i think can not prevent empty treecell s being added treeview , if care appearance, can define different style empty cells. empty cells have :empty pseudo class, can use in css: .tree-cell:empty { -fx-background-color: transparent; }

html - Create an image button that allows you to only click the non-transparent part -

i have wierdly shaped image on photoshop file. made background transparent. made file image button on website. problem can still click transparent part of image when on site. want able click part isn't transparent image button. have tried html mapping did not work me because when clicked portion have mapped blue line comes annoying. any tips extremely helpful. have been stuck on issue few days here link image created: http://picpaste.com/thebestthingever-s3llpupk.jpg the blue line appears, sounds dotted line when button has focus. if problem, can solve using bit of code :focus { outline: 0; -moz-outline-style: none; }

java - CSS and JS are not rendered when index.jsp is set as welcome file -

i facing problem in jsp-servlet, when setting index.jsp welcome-file (default page run first project gets run) @ time css , js files not rendered. project hierarchy this -projectname         -user              -css              -js              -index.jsp and when run project url in browser localhost:8080/projectname here index.jsp called without css , js files. edit: finally, had solved issue copying css , js root directory also. i.e. have css , js @ "user" "projectname". try context path, <link href="${pagecontext.request.contextpath}/css/style.css" rel="stylesheet" type="text/css"> will path of css file in css folder. or scriptlet , <link rel="stylesheet" type="text/css" href="<%=request.getcontextpath() %>/css/style.css"> however, not recommended use scriptlets in jsp.

javascript - Make a div's size and position the same as a video's -

i have html5 video width of 100% , height of 100% , , want wrap div fit size , position of video (not video tag, video itself) using necesary. [see fiddle] html: <div id="wrapper"></div> <video id="vid" controls preload="none" width="100%" height="100%" poster="http://video-js.zencoder.com/oceans-clip.png"> <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4'/> <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm'/> <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg'/> </video> css: #wrapper{ width: 2px; height: 2px; border: solid 2px red; position: absolute; } js (jquery): setinterval(function(){ $("#vid").height($(window).height() - $("header").height() - 7); /*there header , bunch of other stuff...

php - Function file will not recognize included PDO database connection -

i have func.php file contains function gets user's details: require_once 'connection.php'; function getui($username){ $query = "select * usernames username = ?"; $sth = $pdo->prepare($query); $sth->bindvalue(1, $username); $sth->execute(); $result = $sth->fetch(pdo::fetch_assoc); return $result; } in connection.php have: require_once 'details.php'; $pdo = new pdo("mysql:host=" . $dabhost . "; dbname=" . $dabname ."", $dabusern, $dabpassw); and in details.php have: $dabhost = "localhost"; $dabname = "dab1"; $dabusern = "root"; $dabpassw = "root"; and ultimately, have userdetails.php has bunch of html code , displays results function getui() bring back. require func.php @ beginning: require_once 'folder1/func.php'; my directory looks this: rootfolder/userdetails.php rootfolder/folder1/details.php rootfolder/folder1/...

Getting names of all kernel modules used by a particular module -

in output of lsmod command, used by column not have name of kernel modules used module. example, consider following part-output of lsmod command: module size used xen_blkfront 16512 4 ext3 137007 1 jbd 54383 1 ext3 mbcache 7438 1 ext3 in above output, ext3 module used 1 module, name not there. similarly, xen_blkfront module used 4 modules, there no names modules. but, jdb , mbcache modules used ext3 module. so, there way these missing module names ? i need because kernel not allow me rmmod ext3 module saying "error: module ext3 in use". the "used by" column shows not number of referencing modules, numer of times any kernel code has taken reference module. for file systems , device drivers, typically happens when file/device opened. the source of references not tracked.

ajax - Basic Authentication fails in cordova ios -

i trying make ajax call basic authentication on hybrid mobile ios application. ajax call returns nothing hangs no success nor failure. same ajax call fires android. while checking outgoing request wireshark found authentication header missing , 401 returning server , on subsequent call authentication header send along request returns 301. but works android the same api working fine dev server in ios fails in prod server any suggestions appreciated i'm using cordova 4.2.0. i have observed in case of 401 response "www-authenticate: basic" header, ios/uiwebview seems swallow response instead of passing application layer, gives effect of service never responding. perhaps prevent authentication popups. in event behavior unexpected! edit: found cordova bug report problem: https://issues.apache.org/jira/browse/cb-2415