Posts

messagebroker - Convert MbElement to W3C Node in WebSphere Message Broker 7.0.0 -

i trying convert com.ibm.broker.plugin.mbelement org.w3c.dom.node . environment websphere message broker 7.0.0. i know version iib 9.0.0 has methods getdomnode() returns org.w3c.dom.node . cannot upgrade environment various reasons , pointers suggestions doing in 7.0.0. thanks in advance you should not parse message in message flow, leaving in blob. in java compute access message byte array , parse in java org.w3c.dom.document, this: how convert array byte org.w3c.dom.document

android - What is a divider color attribute in ListView? -

i want create divider, divider in listview , depend on current theme. <view android:id="@+id/first_line" android:layout_width="match_parent" android:layout_below="@+id/description" android:layout_height="1dp" android:layout_marginbottom="7dp" android:layout_margintop="7dp" android:background="?attr/colorprimarydark"/> which attribute should specify in line android:background="attr/colorprimarydark" handle this? check android styles file. divider in listview it's drawable. example: <style name="widget.listview" parent="widget.abslistview"> <item name="listselector">@drawable/list_selector_background</item> <item name="cachecolorhint">?attr/colorbackgroundcachehint</item> <item name="divider">@drawable/divider_horizontal_d...

ios - Highlight just the text in a UILabel -

Image
i'm attempting set background color/highlight text within uilabel . issue line breaks , spaces added uilabel keep text centered being highlighted. notice spacing before last line in uilabel highlighted. also, beginning , end of new lines highlighted. i'm creating example above following code: -(void)createsomelabel { // create , position label uilabel *somelabel = [[uilabel alloc] initwithframe:cgrectmake(0, 0, self.view.frame.size.width - 40, self.view.frame.size.height - 300)]; somelabel.center = cgpointmake(self.view.frame.size.width / 2, self.view.frame.size.height / 2); somelabel.textalignment = nstextalignmentcenter; somelabel.textcolor = [uicolor whitecolor]; somelabel.linebreakmode = nslinebreakbywordwrapping; somelabel.numberoflin...

sql - implicit conversion from data type varchar to varbinary is not allowed -

after run program, add data, , message: implicit conversion data type varchar varbinary not allowed i watched video on youtube , did same youtuber. works him not me. i trying add data visual studio sql database: here's code: imports system.data.sqlclient select convert(varchar(100), convert(varbinary(max),'0xffd8ffe000')) public class form1 dim conn sqlconnection dim cmd sqlcommand private sub button1_click(sender object, e eventargs) handles button1.click conn = new sqlconnection conn.connectionstring = "data source=byg-a101-moelka;initial catalog=app;integrated security=true" dim reader sqldatareader try conn.open() dim query string query = "insert person (id,firstname,lastname,age) values ('" & textbox1.text & "', '" & textbox2.text & "', '" & textbox3.text & "', '" & textbox4.text & "')...

android - Loadmore ListView Or RecyclerView -

i'm doing loadmore listview . when scrolled last item, event done loadmore. runs fine except 1 problem, complete data loadmore additional adapter can still recognize new adapter made scratch when see listview reloads rather appended listview earlier. class: public class storylistmenu extends activity{ private string url; listview listviewstory; private storylistmenuadapter adapter; private list<storymenu> liststory; private progressbar progressbar; private view progressloadmore; private boolean loadmorestatus; private boolean enableloadmore; private int page; private int currentitem; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.layout_story_list_menu); page = 0; loadmorestatus = true; enableloadmore = true; currentitem = 0; progressbar = (progressbar) findviewbyid(r.id.progress_story_li...

apache - Unable to install httpd service on chef client(node) -

i new chef , following "learning chef" book "o'riely" learn chef basics. in chapter 07 have described install httpd service on chef client(node) chef host using cookbook. this how .kitchen.yaml file looks : --- driver: name: vagrant provisioner: name: chef_zero platforms: - name: centos_apache driver: box: learningchef/centos65 boxurl: learningchef/centos65 suites: - name: default run_list: - recipe[my_apache::default] attributes: the recipe installing httpd service looks : # # cookbook name:: my_apache # recipe:: default # # copyright (c) 2015 authors, rights reserved. # yum_package 'httpd' source "/home/vipul/downloads/httpd-2.2.15-39.el6.centos.x86_64.rpm" action :install end and log after executing command "kitchen converge" -----> starting kitchen (v1.4.0) -----> converging <default-centos-apache>... preparing files transfer preparing dna.json ...

php - Two Forms, One Button. Not sure of how to make this happen -

i have page prints out rows of information. in each row notes box: <?php <td style='font-size:12px;width:300px;'> {$row['notes']} <br /><center><br /> <form action=\"http://********/functions/notes.php\" id='formnotesform' method='post'> <input type='hidden' id='id' name='id' value='{$row['id']}' /> <textarea placeholder=\"add more notes here...\" name=\"notes\" rows=\"5\" cols=\"30\"'></textarea><br /> <input type='submit' name='formnotes' id='formnotes' value='add notes' /> </form> </center></td> ?> then there's button on page in each row. <form action=\"http://********/functions/archive.php\" method='post' id='formarchiveform' onclick=\"return checkarchive()\"> ...