Posts

Vaadin - How add checkbox component to a tree? -

Image
i'm using vaadin 7.5.3 develop web application. there need tree selectable nodes. want select nodes using checkboxes. after trying many ways , goggling, not find how add checkbox component tree node. as per knowledge, current latest version aka vaadin 7.5.6, not possible, jouni point out in discussion on forums . has opened an improvement ticket don't see changes far. nonetheless, should able fake using treetable component . can find here complete example, , below excerpt it: final treetable ttable = new treetable("my treetable"); ttable.addcontainerproperty("name", checkbox.class, ""); ttable.addcontainerproperty("city", string.class, ""); ttable.setwidth("20em"); // create tree nodes ttable.additem(new object[]{new checkbox("root"), "helsinki"}, 0); ttable.additem(new object[]{new checkbox("branch 1"), "tampere"}, 1); ttable.additem(new object[]{new checkbo...

mysql - Retrieving data from Database using angular.js and PHP -

i need retrieve data database , bind them in text-field using angular.js , php. explaining code below. index.php <?php include_once 'dbconfig.php'; ?> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>crud operations php , mysql - cleartuts</title> <link rel="stylesheet" href="css/style.css" type="text/css" /> </head> <body> <center> <div id="body"> <div id="content"> <table align="center"> <tr> <th colspan="5"><a href="add_data.html">add data here.</a></th> </tr> <th>first name</th> ...

asp.net - Umbraco Website content issues -

i have strange problem umbraco i have 3 websites locally using umbraco 6.2.5 lets website1, website2 , website3 all 3 using 3 different mssql databases. everything fine until finished third website. when browse locally navigations fine...they connect respective pages database. but problem started ..when connect website1's backend.. left hand side content pane showing website2's content pages similarly when open website3 in browser showing pages respective databases backend content pane showing website2's content. i have make sure databases different in each case. think caching problem not sure...also not sure solution please me you can try force reloading cache: right mouse click on content -> republish entire site or directly calling url http://<<yourdomain.com>>/umbraco/dialogs/republish.aspx?xml=true

java - Date returned by resultset.getString was wrong at some time -

i using mysql database.here have datetime field in table , in java code value using resultset.getstring method.it works fine returns wrong date or previous date. here java code: resultset.getstring("date_of_schedule") it returns '2015-09-21' correctly return '2015-09-20' date.can explain me doing wrong.

html - How this div align the middle? -

i have sample: link i want align second div middle of first div...i tried vertical-align:middle not working. it because put container display: table ? code html: <div class="container-logo"> <div class="logo">logo</div> <div class="profile-name">name</div> </div> code css: .container-logo { display: table; margin: 0 auto;} .logo{ clear: none; float: left; height: 57px; width: auto; background:red; } .profile-name{ float: left; width: auto; color: blue; /* line-height: 22px; */ font-size: 14pt; background:aqua; font-family: montserrat regular; } what problem not work ... can give me advice please? thanks in advance! edit: my items must in line , have same height ... want second div put in middle of first ... same height <div class="container-logo"> replace class name. .container-logo { ...

excel - Find the difference between two cells -

Image
below example of excel sheet. in want find gain , loss using e , d cells. if e>d should calculate e-d , value should entered in f cell , if e enter formula cell f2 : =if(e2 > d2, e2 - d2, "-") then enter formula cell g2 : =if(e2 <= d2, e2 - d2, "-") for row not gain or loss, - dash appear in column.

PHP CURL cookie not sent in the website but works in the localhost test -

$ch=curl_init(); curl_setopt($ch,curlopt_url,$url); curl_setopt($ch,curlopt_header,false); curl_setopt($ch, curlopt_cookie,"denial=93a7a7e8b5af9f19a6df5e9850f8a64a;"); curl_setopt($ch,curlopt_returntransfer,1); $the_source = curl_exec($ch); //echo $the_source; curl_close($ch); the code works in localhost, not work in real site, have check curl installed , works when using post method not method. keep googling hours no solution yet. appreciate. it server depended problem. or 3rd tools on server. for example this issue looks similar. the problem hosting use special "php protection system suhosin " encrypt session (session cookies) curlopt_cookie not work. the solution disable suhosin.session.encrypt parameter in /etc/php5/conf.d/suhosin.ini file: suhosin.session.encrypt = off did try answer in server os community ? know "specail" php tools on server installed ? describe in question.