Posts

doxygen - Is there a Ruby documentation tool that allows inclusion of diagrams and images? -

doxygen - Is there a Ruby documentation tool that allows inclusion of diagrams and images? - i big fan of doxygen have used years various languages. in particular, appreciate wiki-like ability include images , run graphviz dot generator have arbitrary inline diagrams inline dot code or external files. rdoc has diagramming back upwards generate class diagrams using graphviz can't see way include arbitrary images or diagrams. neither appear back upwards building arbitrary pages doxygen. is there any tool provides these doxygen-style features ruby? i have skimmed ruby toolbox list of tools , seem variants of rdoc. the solution me @ nowadays seems extending yard. rdoc automatically convert urls html links , urls point image files automatically converted html images. ruby doxygen documentation-generation rdoc yard

jquery - How to Insert JSON data into DataTable -

jquery - How to Insert JSON data into DataTable - i new javascript , trying dynamically load json info datatable on button click. my json info in below format [{"devicename":"and1","ipaddress":"10.10.12.1221"}, {"devicename":"and2","ipaddress":"10.10.12.1222"},{"devicename":"and3","ipaddress":"10.10.12.1223"}] here finish html code: when running code, getting uncaughttype error in processdevicedataresults @ ('#devicetable'). but, pretty sure not way load info in datatable. //set hubs url connection var url = 'http://localhost:8080/signalr'; var connection = $.hubconnection(url); // declare proxy reference hub. var hubproxy = connection.createhubproxy('hubclass'); hubproxy.on('devicedataresults', processde...

android - How can I add image recognition to a Google Glass application? -

android - How can I add image recognition to a Google Glass application? - i trying find free way image recognition / computer vision in google glass application. looking can recognize real-world objects money, book covers, , text. ideally, work google goggles (for reason google hasn't made goggle api). open cloud-based solutions or ones run locally. open running own server if not feasable image recognition locally on glass. i have looked several different technologies. opencv seems powerful, doesn't come library of images match against. camfind has cloud api need, costs lot of money. does have suggestions how add together image recognition application? in advance! i won glass foundry hackathon in nyc (in 2013) hacking same thing together. before native development kit glass announced, did mirror api. how implemented it: first, create server-side glass app using 1 of quickstarts. requesting right scope can interact mirror api , manipulate users' timeli...

Edit some excel-cells with clojure docjure -

Edit some excel-cells with clojure docjure - i'm trying edit cells in excel sheet clojure docjure (https://github.com/mjul/docjure). in documentation of docjure shown how create new spreadsheet don't want that. i'm trying read out info of excel sheet, calculate new values , write them specific cells of same sheet. well first 2 steps working. don't know how write values back. how can this? it's useful take @ tests, can document code degree. found file looked relevant: https://github.com/mjul/docjure/blob/master/test/dk/ative/docjure/spreadsheet_test.clj#l126 and in file found: (deftest set-cell!-test (let [sheet-name "sheet 1" sheet-data [["a1"]] workbook (create-workbook sheet-name sheet-data) a1 (-> workbook (.getsheetat 0) (.getrow 0) (.getcell 0))] (testing "set-cell! date" (testing "should set value" (set-cell! a1 (july 1)) (is (= (july 1) (.getdatecel...

java - How to persist two entities with JPA -

java - How to persist two entities with JPA - i using jpa in webapp , can't figure out how persist 2 new entities relate each other. here example: these 2 entities +-----------------+ +--------------------+ | consumer | | profilepicture | +-----------------+ +--------------------+ | id (pk) |---| consumerid (ppk+fk)| | username | | url | +-----------------+ +--------------------+ the consumer has id , other values. profilepicture uses consumer's id it's own primary key , foreign key. (since profilepicture not exist without consumer , not every consumer has profilepicture) i used netbeans generate entity classes , session beans (facades). this how in short consumer.java @entity @table(name = "consumer") @namedqueries({...}) public class consumer implements serializable { @id @generatedvalue(strategy = generationtype.identity) @basic(optional = false) @column(name = "id...

javascript - HTML5 canvas two canvas on top of another clear only top -

javascript - HTML5 canvas two canvas on top of another clear only top - i have 2 canvas 1 top of how can clear top canvas layer. illustration if utilize erase tool clear background, need clear drawings on top canvas. picture is picture link demo is jsfidledemo your 'foreground' canvas context beingness created background canvas. hence why erasing background. should attach mouse event html body; if move off canvas mousedown , mouse outside canvas going break logic . javascript html5 canvas

wxwidgets - WxPython AddSpacer -

wxwidgets - WxPython AddSpacer - i trying add together spacer using wxpython 3.0.1.1 wx.gridbagsizer. if following: import wx sizer = wx.gridbagsizer() sizer.addspacer((10,10)) it doesnt work (10,10) size. in documentation mentioning both add together method , addspacer method none of them seem work documented. i bit lost utilize add together spacer gridbagsizer, please help? http://wxpython.org/phoenix/docs/html/sizer.html#sizer.addspacer http://wxpython.org/phoenix/docs/html/gridbagsizer.html#gridbagsizer.add i have looked @ next example: http://nullege.com/codes/search/wx.gridbagsizer.addspacer does'nt work me. it grid, when adding things it, must tell to: sizer.add((10, 10), (0, 0)) which adds spacer of 10x10 grid's position (0, 0). (at to the lowest degree in wx 2.8) wxpython wxwidgets wx