Posts

templates - I'm trying to use this Boost C++ code and I have a problem -

first i'll explain, i'll paste code. copied code example http://www.boost.org/doc/libs/1_45_0/libs/graph/example/prim-example.cpp , i'm trying work input text file, did boost kruskal algorithm. using debugger, know second argument of function wants "end" array of edges. that's i'm giving function call, don't understand. graph g(edges, edge_array + num_edges, weights, num_nodes); i error 1>c:\users\edmond\documents\visual studio 2008\projects\boost prim algo\boost prim algo\main.cpp(61) : error c2661: 'boost::adjacency_list<outedgelists,vertexlists,directeds,vertexproperty,edgeproperty>::adjacency_list' : no overloaded function takes 4 arguments 1> 1> [ 1> outedgelists=boost::vecs, 1> vertexlists=boost::vecs, 1> directeds=boost::undirecteds, 1> vertexproperty=boost::property<boost::vertex_distance_t,int>, 1> edgeproperty=boost::p...

javascript - Create HTTPS client in NodeJS -

i've been having heck of time figuring out how use node.js (v0.3.8) securely connect http server. have following code: var http = require("http"); var client = http.createclient(443, host, /* secure= */ true); var request = client.request("get", relativeurl, { host: host }); when run it, get: node.js:116 throw e; // process.nexttick error, or 'error' event on first tick ^ error: parse error @ client.ondata [as ondata] (http.js:1287:27) @ client._onreadable (net.js:648:27) @ iowatcher.onreadable [as callback] (net.js:156:10) i've been googling answers past half hour, , have read documentation @ http://nodejs.org/ . missing? it turns out using old version of node documentation, didn't include reference https module. referring current docs, found http://nodejs.org/docs/latest/api/https.html#https_https_get_options_callback , provides example: https.get({ host: 'encrypted.google.com', path...

Mobile module for OpenERP -

i want build mobile module openerp. can tell how make mobile module openerp? it looks else working on a mobile client openerp . you're asking about?

Mozilla firefox problem in javascript -

how can (if)any text selected in textbox , want in variable of javascript.... mozilla firefox...? above description not enough let me give definition.. extension of firefox extension double clicks word webpage , finds possible meaning database... user can write in textbox , double click same finding meaning.. please suggest way complete selection textbox's selected text....? in addition using dblclick event handler dont suggest solution.... problem web page can site's webpage textarea or control specific tho page how slice text ...thanxx in advance.... you can use document.getselection() returns selection object containing highlighted text in document. however, calling @ right time can tricky. can't onclick handler on button, instance, because time onclick handler fires, selection's focus has been removed text , moved button.

org mode - Can we make an Emacs buffer to be static/pinned? -

i use org file keep track of activities, because it's loosing track of aiming :) now, reserved top buffer window 5 lines tall , show narrowed todo org file. other window/buffer activites not touch static/pinned buffer. is there way achieve result??? thanks! edited : can make buffer have different background color? pressume it's not, because have set-background-color... hope wrong.. if clock in org todo item, task displayed in modeline of current buffer; might find helpful reminder of you're working on.

javascript - How to share jQuery .data() data through iframe's? -

i'm trying share jquery data 1 or more iframe'd html pages parent html document. need inter-iframe communication , if possible (highly desireble) share/exchange .data() i.e. $.cache of both jquery objects (in parent , child iframe). someting similar this: parent html: <!doctype html> <html> <head> <title >iframe-data</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" ></script> <script type="text/javascript" > jquery(function($){ var testdata = 'hello world #div1'; $('#div1').data('test',testdata); var newtestdata = $('.div2').closest('.div1').data('test'); $('#div2').append( 'parent window: "' + testdata + '" === "' + newtestdata + '...

java - Looking distributed cache solutions for implementing a distributed MVC pattern -

i building client/server application have complex (but not large -say 10,00 objects) object model @ heart. multiple clients need view model (via eclipse rcp gui), server node can directly edit model. want edits model published out clients. new clients able request model, , register updates. its standard model-view-controller pattern really. can suggest good, open source, replicated cache solutions handle distribution of object model, plus distributing changes model. want 'deltas' sent clients, rather sending complete model every time 1 field changes. also, need able replicate object graph , maintain coherence, e.g., if have 'person' object: public class person implements serializable { private person manager; private string name; public person (person manager, string name) { add 3 people cache: person boss = new person(null,"theboss"); person employee1 = new person(boss,"employee 1"); person employee2 = new person(boss,...