Posts

c# - Find dead nodes from Parent Child Node collection -

Image
i have collection of custom node has parent child relation. each node can composite type (that has other child in it) or simple type (leaf level node) i want write function give me list of dead nodes. example here node collection based on above case, p2, p3, p8, p9, p10, p6, c1 dead nodes (since down hierarchy don't have simple node in them) i need function as private list<nodeentity> getdeadnodes(list<nodeentity> originallist) here function has original list private list<nodeentity> getoriginallist() { var list = new list<nodeentity>() { new nodeentity() {code = "p1", parentcode = "001", type = nodetype.composite}, new nodeentity() {code = "c1", parentcode = "001", type = nodetype.composite}, new nodeentity() {code = "p2", parentcode = "p1", type = nodetype.composite}, new nodeentity() {code = "p3", parentcode = "p2", ty...

Hosting Microsoft BOT on Enterprise Cloud? -

we trying host bot on enterprise server iis server internet server visible microsoft , other outside public domains. so, after hosting bot on enterprise cloud server endpoint ex: https://myenterpriseserver.com/api/messages . can use above endpoint register bot in microsoft's dev.botframework.com? please help, planning large scale implementation of bot. thanks, mahesh as long server has ssl certificate should work assuming deploy bot correctly. test out first using bot emulator see if can send receive messages computer in system's network. next try registering bot on microsoft's bot framework , seeing whether microsoft's bot connector service can connect bot successfully. your system/intranet may block outside messages microsoft in case have change settings, etc. firewall. this github issue follows issue white-listing microsoft's bot connector service. wiki

Visual Studio Code Installed twice, how to uninstall completely? -

i installed visual studio code 1.14.2 first. installed visual studio code 1.15.1(the 2nd installation) again without uninstall previous version (i forgot!) . 2nd installation(the visual studio code 1.15.1) still done successfully. installed software shows 2nd software(visual studio code 1.15.1) i uninstalled 2nd installation(visual studio code 1.15.1). after uninstallation, tried install visual studio code 1.15.1(the 2nd) again. installation process becomes wired: don't need install software, installation process did not execute. can directly launch(open) software without installing software. portable version not need installation. ** visual studio code 1.15.1(the 2nd) runs normally**. when launch(open) software of visual studio code 1.15.1 control panel\programs\programs , features\the installed products list visual studio code 1.15.1(the 2nd) still not on installed products list. any uninstall tool suggestion? my computer windows 10.1 pro upgraded win 8.1 compu...

php - Displaying custom checkout fields based on a selector choice -

based on working answer: custom dropdown selector showing or hiding other checkout custom fields in woocommerce checkout page use code below create additional custom fields , reorder checkout fields. use jquery script show/hide fields based on selector choice. here new code: // registering external jquery/js file function cfields_scripts() { /* important note: child theme replace get_template_directory_uri() get_stylesheet_directory_uri() external cfields.js file goes in subfolder "js" of active child theme or theme.*/ wp_enqueue_script( 'checkout_script', get_template_directory_uri().'/js/cfields.js', array('jquery'), '1.0', true ); } add_action( 'wp_enqueue_scripts', 'cfields_scripts' ); add_filter( 'woocommerce_checkout_fields', 'custom_checkout_billing_fields' ); function custom_checkout_billing_fields( $fields ) { // 1. creating additional custom billing fields // "st...

asterisk - Error connecting to ami: Connection refused -

i trying connect remotely on free pbx ami manager receive error of "error connecting ami: connection refused" i configured manager.conf [general] enabled = yes webenabled = yes port = 5038 httptimeout = 60 bindaddr = 127.0.0.1 displayconnects=no ;only effects 1.6+ [myusername] secret = mypassword deny = 0.0.0.0/0.0.0.0 permit= my_server_ip/255.255.255.0 read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate writetimeout = 5000 bindaddr = 127.0.0.1 mean have no ami on external ip. if connecting 127.0.0.1 -> should allow 127.0.0.1. if connecting external ip -> have bind ami ip or 0.0.0.0 wiki

java - How to add a row in a itext PdfPTable dynamically? -

i have create pdf using itext contain button, when clicked should add row in existing pdfptable . wrote code create pushbuttonfield . while trying set action can find pdfaction.javascript . not able figure out how add row in table. tried searching online find pdfaction.javascript any appreciated. thank you. when create pdf file, draw text, lines , shapes canvas. happens when add pdfptable document . if @ syntax of pdf page, won't recognize table. you'll find text (the content of cells), lines (the borders), , shapes (the backgrounds), won't find table. if table distributed on different pages, "table" on 1 page won't know related "table" on other page. sure, can add semantic structure document introducing marked content , , creating structure tree , mechanism call tagged pdf can't used make pdf "editable" same way word document editable. tagged pdf (among others) used allow assistive technology present content visually ...

android - Make first letter of child name capital in Firebase -

Image
i push data firebase using order object, question want first letter of every child name capital. defined property "complain" in firebase still shows "complain", dont know how make it. the current structure of firebase: the structure want: i defined property this: @data public class order implements serializable { @serializedname("complain") private string complain; public order() { complain = ""; } public string getcomplain() { return complain; } public void setcomplain(string complain) { complain = complain; } } i push data firebase this: map<string, object> map = new hashmap<>(); map.put(ordersavepath, order); reference.updatechildren(map).addoncompletelistener(listener); the firebase json serialization name controlled annotation propertyname . public class order implements serializable { private string complain; public order() { complain = ""; } @property...