Posts

java - Unable to fill pool: when starting jboss application -

my project jboss project based on spring mvc. when run app following error: unable fill pool datasource configuration <!-- jndi setup --> <bean id="datasource" class="org.springframework.jndi.jndiobjectfactorybean"> <property name="jndiname"> <value>java:jboss/datasources/ssdiaryds</value> </property> </bean> mysql mapping in jboss standalone.xml <datasource jndi-name="java:jboss/datasources/ssdiaryds" pool-name="ssdiarydspool"> <connection-url>jdbc:mysql://localhost:3306/schooldairy</connection-url> <driver>com.mysql</driver> <transaction-isolation>transaction_read_committed</transaction-isolation> <pool> <min-pool-size>10</min-pool-size> <max-pool-size...

c# - Close inspector (compose window) inside the ItemSend() method in outlook -

i develop outlook adding using visual studio 2013 , addin express v.7.7.4087. wanting handle itemsend() , save item drafts , close inspector automatically, can apart closing inspector, because not allowed close inspector inside method of itemsend(), have use windows.forms.timer (close mailitem inside timer) ends error says “rcw content has been separated …………” error are there alternative ways of doing this? in redemption (for outlook), there way of doing same thing? private void adxoutlookappevents1_itemsend(object sender, dxolitemsendeventargs e) { outlook.mailitem mailitem = null; outlook.recipients recipients = null; mailitem = e.item outlook.mailitem; try { // code goes here if (editbuttonclicked || swoffline) { e.cancel = true; if (swoffline) { mailitem.save(); timer.start(); } } } ...

ios - Multiple UIPickerView in the one TableViewController Programatically -

i've been trying several days can't find way works. ways i've tried set loads pickerviews keyboards textfields want doesn't show of data i've put them. can me through setps of or give me link , example of it. thank helper. uitoolbar *toolbar = [[uitoolbar alloc] init]; [toolbar setbarstyle:uibarstyleblack]; [toolbar setbartintcolor:[uicolor colorwithred:237.0/255.0 green:30.0/255.0 blue:36.0/255.0 alpha:1.0]]; [toolbar sizetofit]; uibarbuttonitem *flexbutton = [[uibarbuttonitem alloc] initwithbarbuttonsystemitem:uibarbuttonsystemitemflexiblespace target:self action:nil]; uibarbuttonitem *donebutton =[[uibarbuttonitem alloc] initwithbarbuttonsystemitem:uibarbuttonsystemitemdone target:self action:@selector(resignkeyboard)]; donebutton.tintcolor = [uicolor whitecolor]; nsarray *itemsarray = [nsarray arraywithobjects:flexbutton, donebutton, nil]; [toolbar setitems:itemsarray]; yourtextfield.inputaccessoryview = to...

c# - converting the POCO Model into MongoDB's Bson format -

here information development environment: microsoft visual studio community 2015 .net framework 4.6 asp.net mvc assembly system.web.mvc version=5.2.3.0 mongodb.driver 2.0.1.27 mongodb 3.0.6 within c# application, have following code retrieves mongodb database reference: public class mongodbconnectionmanager { public imongodatabase getmongodb() { var client = new mongoclient("mongodb://localhost:27017"); imongodatabase imgdb = client.getdatabase("foo"); imongocollection<bsondocument> userdetails = imgdb.getcollection<bsondocument>("users"); return imgdb; } // end of public imongodatabase getmongodb() } // end of public class mongodbconnectionmanager here poco class represent user business entity: using mongodb.bson.serialization.attributes; public class usermodel { public object _id { get; set; } //mongodb uses field identity. [bso...

jquery - Issue with nth child height property -

this css code. .filtereddoccontent { display: none; } .filtereddoccontent .photography:nth-child(1), .filtereddoccontent .photography:nth-child(2), .filtereddoccontent .photography:nth-child(3), .filtereddoccontent .photography:nth-child(4), .filtereddoccontent .photography:nth-child(5), .filtereddoccontent .photography:nth-child(6), .filtereddoccontent .photography:nth-child(7), .filtereddoccontent .photography:nth-child(8) { display: block; } what here - total 15 documents or more than(it come according user insert or upload data) there , show 1st 8 documents. take height of documents , button of load more appear. this div when documents display:- <div id="lightbox" class="row filtereddoccontent"> <?php foreach ( $adoc $odoc ) { ?> <div class="col-sm-6 col-md-3 col-lg-3 photography app" id="load_data"> <div class="portfolio-item"...

android - HTML5 Datetime-local input -

the problem arises in google chrome on android phones. there no 24h format. example: - when click on datetime-local input wheel choose date , time. there no option choose full range of 24hours. can't choose 23h or 17h. i dont have option choose or pm. my timezone on phone set gmt+2 , set 24h time. edit: atleast know , there ever , option choose 0-24h, or 12h range? as appears there bug type="datetime-local" https://code.google.com/p/chromium/issues/detail?id=529320

python - Matching codons -

so i'm learning nested pools , don't it. task return matching pairs in following format: [('aag', 'ttc'), ('gat', 'cta'), ('ttg', 'aac'), ('cat', 'gta'), ('ggc', 'ccg'), ('att', 'taa'), ('tct', 'aga')] so code: def matching_codons(complements, poola, poolb): complements = {'a':'t', 'c':'g', 't':'a', 'g':'c'} poola = ['aag', 'tac', 'cgg', 'gat', 'ttg', 'gtg', 'cat', 'ggc', 'att', 'tct'] poolb = ['taa', 'cta', 'aac', 'ttc', 'aga', 'ccc', 'ccg', 'gta'] final = [] in poola: z in poolb: if , z in complements: final.append() return(final) it's not working , don't know why, don't quite it. how can make statement poola , poolb ...