Posts

java - How can I modify generated files ,created using cxf-codegen plugin and then compile? -

i using cxf-codegen maven plugin .the first time did mvn install ,it generated set of files , placed in target/generated-sources/cxf folder , generated files compiled , packed in resulting jar maven. now find reason namespace attribute not fetched package--info.java while rest response created . server flings error saying javax.xml.bind.unmarshalexception: unexpected element (uri:"", local:"com.collabnet.teamforge.ia.types.getconfigurationparametersresponse"). expected elements \lt{http://www.collab.net/teamforge/integratedapp}createprojectconfigurationrequest\gt, \lt{http://www.collab.net/teamforge/integratedapp}getconfigurationparametersrequest\gt, \lt{http://www.collab.net/teamforge/integratedapp}getconfigurationparametersresponse\gt, \lt{http://www.collab.net/teamforge/integratedapp}getpagecomponentparametersrequest> so have planned , set namespace attribute in generated file (getconfigurationparametersresponse.java) @xmlrootelement(name = ...

Spring integration imap - multiple email accounts from the same domain -

i'm using spring's imap mechanism in order recieve emails account server. this works charm. anyhow, new requirmemnt came - instead of listening single email account have listen on multiple number of accounts. iv'e tried creating new channel each of these account. works! problem each channel added meaning new thread running. since i'm talking large number of accounts quiet issue. my question is: since email accounts (i listen to) in same domain i.e: acount1@mydomain.com acount2@mydomain.com acount3@mydomain.com .... is possible create single channel multiple accounts? is there alternative me defining n new channels? thanks. nir i assume mean channel adapter, not channel (multiple channel adapters can send messages same channel). no, can't use single connection multiple accounts. this limitation of underlying internet mail protocols. if using imap idle adapters, yes, not scale because needs thread each. however, if talking few 10...

string - R: How to change the column names in a data frame based on a specification -

i have data frame, start of below: sm_h1455 sm_v1456 sm_k1457 sm_x1461 sm_k1462 ensg00000000419.8 290 270 314 364 240 ensg00000000457.8 252 230 242 220 106 ensg00000000460.11 154 158 162 136 64 ensg00000000938.7 20106 18664 19764 15640 19024 ensg00000000971.11 30 10 4 2 10 note there many more cols , rows. here's want do: want change name of columns. important information in column's name, e.g. sm_h1455, 4th character of character string. in case it's h. want change "sm" part "control" if 4th character "h" or "k", , ...

Convert int datatype to string datatype c# access database -

i created windows application form project , there problem facing right now. problem is: had array of textboxes, , wanted connect database textboxes, however, cannot data because data want connect int datatype. there 2 form has been created, 1 login form, login form, database string, autocomplete working. second 1 second form, second form, database int, autocomplete not working. my question is: how convert int datatype string datatype? here code second form: string connectionstring = (@"provider=microsoft.ace.oledb.12.0;data source=\archives\projects\program\sell system\sell system\app_data\db1.accdb;persist security info=false;"); private list<list<textbox>> textboxcodecontainer = new list<list<textbox>>(); oledbdatareader dreader; oledbconnection conn = new oledbconnection(connectionstring); conn.open(); oledbcommand cmd = new oledbcommand("select distinct [code] [data] order [code] asc", conn); dreader...

sql - Cast/Convert Text-Decimal -

i know bad practice way can due data migration column requirements. i looking round up(ceil) or round down (floor) value in text feild. i know fact either integers or decimals no worry bad data there. update [dbo].[t01] set [2 37] = cast( floor(convert(decimal(10,5),(cast([2 37] varchar(10))))) text ) [2 37] '%.%' my first attempt was: update [dbo].[tomcat 19032013 01] set [2 37] = floor([2 37]) [2 37] '%.%' long story short want able floor or ceil data in text field! i using sql 2005 - developer edition you should add columns conversion. declare @t01 table([2 37] text, [2 37 floor] int, [2 37 ceiling] int) insert @t01 ([2 37]) values('1.5') insert @t01 ([2 37]) values('4.1') insert @t01 ([2 37]) values('5.9') update t set [2 37 floor]=floor(convert(decimal(8,2),(cast([2 37] varchar(10)))) ) , [2 37 ceiling] =ceiling(convert(decimal(8,2),(cast([2 37] varchar(10))))) @t01 t [2 37] '%...

Android service not starting, no idea why -

i'm trying run thread starting service, won't start. won't log. this inner service class. service class creates new background thread , starts it. backgroundthread , service class both innerclasses can reach variables. public class myservice extends service { private backgroundthread background; @override public ibinder onbind(intent intent) { return null; } @override public void oncreate() { super.oncreate(); toast.maketext(this, "my service created", toast.length_long).show(); log.d(tag, "oncreate"); background = new backgroundthread(); } @override public void ondestroy() { super.ondestroy(); toast.maketext(this, "my service stopped", toast.length_long).show(); log.d(tag, "ondestroy"); } public int onstartcommand(intent intent, int flags, int startid) { super.onstartcommand(intent, startid, startid)...

c# - How can I call EditorFor from the controller -

i have list of locations public class location { public string locationname { get; set; } public string address { get; set; } } i created editor template class <div> <span>@html.textboxfor(a => a.locationname)</span> <span style="color: red;">@html.textboxfor(a => a.address )</span> </div> the problem locations load ajax page , going send results server. how location specific index? mean first location generate this: <input type="text" name="locations[0].locationname" /> for second location when press "add location" button should location server (from action of controller html string) index 1 not 0 because next location. is possible achieve it? or doing wrong? something this [httpget] public virtual actionresult locationeditor(int index) { viewdata.templateinfo.htmlfieldprefix = string.format("locations[{0}]", index); r...