Posts

Dynamic casts returns null when library with C++ python extensions is used as a plugin on RHEL5 -

i have library c++ python extensions (c++ calls python in turn calls c++) using boost::python , python libraries (this messy, lot of legacy) when tested standalone works correctly. in particular, dynamic_cast works correctly. but when library packaged use plugin on rhel5 using gcc 4.1.2 external application, dynamic_cast returns null resulting in application not working expected. on windows (tested vista 64 bit using visual studio 2005 , 2008) works fine. when debugged using ddd instance, able see pointer before casting has right type_name (slightly mangled compiler usual, suppose?). specific debugging tips here of help. a reinterpret_cast solved problem. while baulked at, @ loss how proceed, esp. since due issues external app. convoluted mess , seems futile, if can here sample code. following c++ snippet creates "smart_handle" queue python commands stored in string "input". string import imports locations , definitions of functions called boost::python::exe...

spark form item gap in Flex -

is there way change space between spark form item , content(textinput, conbobox)? set 0 "gap" property of form, still there lot of vertical space left between form inputs. the spark skin formitem has left/right variables set based on "columns." i.e. left="column1:10" means element 10 pixels right of column 1. so, create skin, reduce numbers in "content" column area , check it. reducing numbers , gap should tighten, along setting gap in form layout.

c# - How do I make my ASP.Net website viewable in my private home network using IIS 6.0? -

i want know how can make website available in private home network? know supposed make ip address static still not know complete steps accomplish want do. possible? if can please explain me have do? this pretty easy need read on security before making live. static ip addresses cost more money dynamic ones suggest signing http://www.no-ip.com/ . it's requires installing program updates domain ip address everytime changes. you need use port forwarding on router knows send http requests pc. http data passed through port 80 or 8080. hope helps.

How to call local WCF service from webpage? -

i'm developing webpage supposed consume wcf webserice located on client's computer. first, user installs software hosts wcf service on computer, he'll view webpage supposed call wcf service. have idea how without having use ativex , ie? add wcf service service reference web project. have specify url of wcf service. clientproxyclass generated you. in webpages or whathever can create instance of proxyclass , code want.

LINKED LIST question C++ ...Can we make TWO different node types in one program? -

i have project finish off regarding linked lists. wanted know if possible write in 2 struct nodetype codes create 2 nodes. if how , should place them? code going contain of 1 node type "videos" in list. , node type "customer" details in list. i plan use functions every other operation enable program do. wanted know code making 2 nodes , how , should specify these nodes when make functions them?(such inserting new video video node , inserting video customer node(showing rented video) etc etc)... can please explain code's details can understand it? because instantiation of class template yields new type, can make list node template: template<class tag> struct listnode { listnode *prev, *next; }; and derive multiple times same template instantiating different tag type: struct videotag; struct customertag; struct item : listnode<videotag> , listnode<customertag> {};

r - Change value of some column in xts based on other columns values with lookback -

i have following xts object (representing long/short entries (column 1 , 2) , exit (columns 3 , 4) triggers "aggregate" signal column should 1 (system long), -1 (system short) or 0 (system flat). can not make work "aggregate" signal column5... the data: longentrysignal shortentrysignal longexitsignal shortexitsignal signal 18.02.93 0 0 1 0 0 19.02.93 0 0 0 1 0 22.02.93 1 0 0 0 1 23.02.93 0 0 0 0 0 24.02.93 0 0 0 0 0 25.02.93 0 0 0 0 0 26.02.93 0 0 1 0 0 01.03.93 0 0 1 0 ...

exception - Java Stop Script Continuation Without System.exit(1); -

i have program , catching error. need program stop , stay idle if there exception. i have this: // try parse integer make sure it's integer. try { integer.parseint(celsiustxtfield.gettext()); } // catch if it's not integer , murder user being stupid. should know temperature consists of numbers , not letters. catch(numberformatexception e) { joptionpane.showmessagedialog(null, "you did not submit number. please try again.", "general error - error #2", joptionpane.error_message); } but, though shows error message, still continues on script. this simple, i'm new java, please excuse not knowing. i found way this. move under try, , way, catch last thing, there's nothing else executed.