Posts

C++ Struct function body calling another structs function, same module -

i attempting make chess module using chesspiece struct , chessgame struct. using xcode 6.1.1. here header file , function in question in chess.cpp. error, "use of undeclared identifier 'initchesspiece' did mean 'chesspiece::initchesspiece'?. if make change says error, 'call non-stack member function without object argument.' finally, if make line, game.pieces[i].initchesspiece(game.pieces[i], color, piece, x, y); linker throws error: undefined symbols architecture x86_64: "chesspiece::initchesspiece(chesspiece, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned int, unsigned int)", referenced from: readchessgame(chessgame&, std::__1::basic_string, std::__1::allocator > const&) in chess.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) #ifndef chess_h #define chess_h #in...

eclipse - Aspectj for anotations with classes not working -

below code not complied correctly aspectj import org.springframework.context.annotation.conditioncontext; import org.springframework.context.annotation.conditional; import org.springframework.context.annotation.configuration; import org.springframework.context.annotation.configurationcondition; import org.springframework.context.annotation.importresource; import org.springframework.core.type.annotatedtypemetadata; @configuration @conditional(conditionalconfiguration.condition) @importresource("/com/example/context-fragment.xml") public class conditionalconfiguration { static class condition implements configurationcondition { @override public configurationphase getconfigurationphase() { return configurationphase.parse_configuration; } @override public boolean matches(conditioncontext context, annotatedtypemetadata metadata) { // load context-fragment.xml if system property defined ...

java - Can't figure out this NoClassDefFoundError - class should exist at runtime? -

as far i've been concerned, or seen in practice, error when referenced class can't found @ runtime. i'm pretty sure tap gets created initialization of menuscreen, might doing wrong. first attempt @ menu, or having multiple screens @ in libgdx. this first section of menuscreen class, initialized in androidlauncher.java ( initalize(new menuscreen(new tap()), config); ) public class menuscreen extends game implements screen { ... game g; public menuscreen(game g) { create(); this.g = g; } and relevant pieces of tap.java public class tap extends game implements actionlistener, screen { ... public tap() { create(); } i can't seem figure out why won't work. missing obvious? i've tried few different things, part don't have enough understanding yet make real changes. thanks. edit: stack trace 12-15 22:42:35.614: e/androidruntime(16426): fatal exception: main 12-15 22:42:35.614: e/androidruntime(16426): ...

excel - Comparing two sheets - difference write to sheet 3 -

here thing: have 2 sheets (approx 10k rows in both) - compare them - if there match (based on column b - nothing, if there isn´t - value in sheet2 not in sheet 1 - write columns(a,b,c,d) sheet3) - problem is, first row in sheet 1 equal maybe 3rd row in sheet2. how can achieve that? is possible check row row according values in column b? thanks i have created workbook following criteria: sheet1: column | column b | column c | column d | column e ------------------------------------------------------ 111024 961207 value1 data fake 11 111027 961209 value2 data b fake 22 111030 961211 value3 data fake 33 ... ... ... and sheet 2 copy of sheet 1 couple of rows missing. then opened visual basic editor ( alt + f11 ) , added module, wrote following macro: sub compare() sheets(3).activate 'go sheet 3 cells.clear 'and clear previous results range("a1").select '...

How to pass customized request to controller in spring mvc? -

generally, when user's form submitted, request passed spring controller. and controllers shaped testcontroller(httpservletrequest request, httpservletresponse response) i want pass " myhttpsevletrequest, myhttpservletresponse " not " httpsevletrequest, httpservletresponse ". is possible? want know possible, , how? in technique. don't "no need to that, alternative way here" any answer appreiciated. thank you. i dont know how directly know workaround intend done. you can use spring aop methodbeforeadvice , afterreturningadvice hold of request , response objects before , after enter/leave action method. kind of request response interceptor doing. in can write transformer method take standard request , response object input , output custom request , response object(your custom class should implement httpservletrequest interface) , override request , reponse objects custom objects.

javascript - PhoneGap show downloaded image in iframe -

i have phonegap application in need download images offline usage , show inside iframe. possible , need corhttpd ( https://github.com/floatinghotpot/cordova-httpd ) serve assets locally? i have been trying store files on file system when try show (even without being inside iframe), doesn't show. seem loaded (can seen in network console in remote debugging), though, (of course) without headers. after spending more , more time on , settings gapdebug correctly remote debug application, able solve problem giving {responsetype: "arraybuffer"} to angularjs's $http.get method config parameter described here . able images arraybuffer correctly , there base64 encode them added inside html stored offline. suitable solution case @ least..

MouseListener on editable JavaFX ComboBox -

mouseevent not working javafx combobox when set editable. working on non editable combobox. there way set mouseevent on editable combobox? package editablecombobox; import javafx.application.application; import javafx.event.eventhandler; import javafx.scene.scene; import javafx.scene.control.combobox; import javafx.scene.input.mouseevent; import javafx.scene.layout.stackpane; import javafx.stage.stage; public class editablecombobox extends application { @override public void start(stage primarystage) { combobox combo = new combobox(); combo.seteditable(true); combo.setonmousepressed(new eventhandler<mouseevent>() { //adding mouseevent on combobox @override public void handle(mouseevent event) { system.out.println("mouse pressed!!!"); } }); stackpane root = new stackpane(); root.getchildren().add(combo); scene scene = new scene(root, 300, 250); primarystage.setscene(scene); primaryst...