Posts

force.com - hardcode xml in salesforce -

im new salesforce want embed(hard code) xml code in vf page,when m trying im getting following error. compilation error: <apex:page> required , must outermost tag in markup @ line 1 column 1 and code <?xml version="1.0" encoding="utf-8"?> <apexpage xmlns="http://soap.sforce.com/2006/04/metadata"> <response> <is_registered>yes</is_registered> <is_workinghour>yes</is_workinghour> <lead>00q9000000kwe6iear</lead> <callid>04153c09-8018-4cba-b03e-cd98a80f30b0</callid> <agent_number_count>3</agent_number_count> <agent_list> <agent id="1"> <agent_number>2228241485</agent_number> <agent_code>0004</agent_code> </agent> <agent id="2"> <agent_number>2228321017</agent_number> <agent_code...

c# - allowing to insert breakpoint in visual studio editor extension -

add syntax highlighting ielisonbuffer i follow question , implement visual studio editor extension. got working fine: syntax highlight, completion...but cannot add breakpoint thought options there in right context menu (disabled) is there else need enable feature editor? well, breakpoint anything, you'll need implement debugger (via ad7 interfaces, etc.). but actual breakpoint toggling working, need implement ivslanguagedebuginfo interface (and optionally ivslanguagedebuginfo2 , ivslanguagedebuginfo3 more control). (i suggest on language info object that's implementing ivslanguageinfo .) don't forget register implementation vs knows it. validatebreakpointlocation() called when user presses f9, etc., , in should set breakpoint span appropriate bounds of line (or portion of line depending on language, e.g. might in lambda or want highlight statement except trailing comments on line), return vsconstants.s_ok .

amazon web services - Reusing AWS::CloudFormation::Init (and userdata?) for multiple instances -

is possible reuse same bootstrapping config aws::cloudformation::init (and/or userdata ) multiple ec2::instance s in template? i need set content of 3 files , run 3 commands bootstrap servers, metadata block 30 lines long (and grow). each server instance has different set of tags, have more tags others. ideally, think should able declare aws::cloudformation::init resource, , refer multiple ec2::instance s, don't think possible. i thought (as newbie) aws::cloudformation::customresource might appropriate, don't think is. i'm thinking of using aws::cloudformation::stack import shared instance template, need somehow pass tags parameter each resource in stack template instance template. question - if best approach, enter in 3 locations have ???? ? (bonus credit - what's difference between userdata , init block?) stack.template ... "resources" : { "server1" : { "type": "aws::cloudformation::stack", ...

html - How to remove anchor tag around rescaled images in readthedocs site? -

Image
i use alias without width or height modifiers display image: .. |downloads_png| image:: assets/index/downloads_v2.png this image rendered correctly, without decoration. i add height modifier resize image: .. |downloads_png| image:: assets/index/downloads_v2.png :height: 26px when this, readthedocs page shows image grey line underneath: what happening anchor tag (for whatever reason) being wrapped around img tag image, , anchor tag has text decoration style applied it, adds grey underlining. how prevent happening? not need download image when mousing on it. want display image.

What is the most efficient method to process a String Freemarker syntax in Java -

here our use case. loading freemarker syntax database , processing it. processing close million of records. things working fine. when profile application, see freemarker processing method bottleneck , taking time. having read freemarker documentation, got pointers on issue be. everytime doing processing, creating new freemarker.template.template object (creation of seems expensive). not find right/more efficient way of doing this. public ftltemplateengine() { cfg = new configuration(); } public string process(string template, map<string, object> input) throws ioexception, templateexception { string rc = null; final writer out = new stringwriter(); try { final template temp =new template("temporarytemplate", new stringreader(template), cfg); temp.process(input, out); } catch (invalidreferenceexception e) { log.error("unable process ftl - ...

android - OpenCV4Android Kalman filter Assertion Failed at matmul -

i have problem opencv4android. i'm using it's newest version 2.4.10 although seems, issue occurs in 2.4.9. whenever i'm trying implement 2d kalman filter jni on android, code failing, because of errors (then method throws me sigabrt , there nothing can do): opencv error: assertion failed (type == b.type() && (type == cv_32fc1 || type == cv_64fc1 || type == cv_32fc2 || type == cv_64fc2)) in void cv::gemm(cv::inputarray, cv::inputarray, double, cv::inputarray, double, cv::outputarray, int), file /hdd2/buildbot/slaves/slave_ardbeg1/50-sdk/opencv/modules/core/src/matmul.cpp, line 711 it seems, kalmanfilter.predict() method throws it. i tried 2 other implementations- 1 taken directly internet, second different. i remember, (in order use properly) must first predict point, correct filter, isn't issue. assumption that, there weird @ junction of weird android world , c++ (maybe float values aren't 32bit floats in android's jni? i'm unable tell..)...

xaml - WPF ListBox in TabItem "Property content set more than once" -

i'm (evidently) new wpf , struggling figure out how put listbox inside tabitem . current attempt below results in property 'content' set more once , answers can't seem relate mine. <window> <grid> <tabitem> <grid background="red"></grid> <tabitem.header> <dockpanel width="130" horizontalalignment="center"> <textblock text="inventory" foreground="black" fontsize="30" textalignment="center"/> </dockpanel> </tabitem.header> <listbox> <listboxitem>test</listboxitem> </listbox> </tabitem> </grid> </window> if point me in right direction that'd appreciated. ok, edited answer works below. indeed, others suggest, removing "<grid background="red"><...