Posts

My Postsharp tracer attribute logs some classes/methods but not others -

background i'm using postsharp version 3.0.42.9 , have created custom tracer attribute ( onmethodboundaryaspect ). have applied @ assembly level of webforms project this: [assembly: mylogging.tracer(attributepriority = 1)] [assembly: mylogging.tracer(attributeexclude = true, attributetargetmembers = "regex:^get_|^set_", attributepriority = 2)] the tracer logs entry method arguments , exit return value. i'm using nlog write log entries database table. i have following 2 classes in separate files in same folder of same project in solution , in same namespace: public class classa : iclassa { public operationresult performoperation(ienumerable<somedto> parameters) { var classb = new classb(); return classb.anotheroperation(parameters); } } //in different file public class classb { public operationresult anotheroperation(ienumerable<somedto> parameters) { //do stuff return operationresul...

Unable to access DIV element in Bootstrap Popover / Jquery autocomplete -

i have link opens bootstrap popver. inside of popover, have text field want use jquery autocomplete. problem is, unsure how access div id text box in popover -- using conventional methods don't work. autocomplete works fine on standalone page, not on popover. please help! <a href="#" id="add_game" data-toggle="add_game" data-content='<div class="input-group">text: <input type="text" id="add_game_search"/></div>'>popover</a> $(document).ready(function () { $('[data-toggle="add_game"]').popover({ 'trigger': 'click', 'html': 'true', 'placement': 'bottom' }); }); $(document).ready(function () { $('.add_game_search').autocomplete({ source: function (request, response) { $.ajax({ global: false, url: "htt...

api - How to find Open Office installation path programmatically in Java -

i exporting uml diagrams in open office draw using java uno runtime reference api in open office. tried connect open office using bootstrap.bootstrap() method resulted in "no office executable found exception". according post no office executable found exception while connecting openoffice through java , downloaded bootstrapconnector.jar , worked fine me. in case user has provide path of of open office installation , requirement connect open office instance programmatically finding installation path. 1 method know means of working winregistry in case think registry key may change underlying os. therefore great if can suggest me other method of achieving this.

node.js - SimpleWebRTC Signalling server - server.js not working -

i try simplewebrtc demo screensharing. signalling server, used server.js file at: https://github.com/andyet/signalmaster/blob/master/server.js however, when run file on ubuntu server, , browse port specified, error message: {"code":0,"message":"transport unknown"} without server.js , using simplewebrtc.com/latest.js signalling channel, able video chat, not screenshare, since signalling server on http. any appreciated.

Wx Python : Status Bar Does Not Show Menu Messages -

i starting out wx python , can't status bar display text menu items.i read statusbar messages can set setstatustext() want texts displayed. using ubuntu 14.04/wxpython 2.8/python 2.7.6. please help. in advance. import wx class test(wx.frame): def __init__(self,parent,id): wx.frame.__init__(self,parent,id,"frame aka window",size = (300,200)) panel = wx.panel(self) self.status=self.createstatusbar() #self.status.setstatustext("something") menubar=wx.menubar() first=wx.menu() second=wx.menu() first.append(wx.newid(),"new window","this new window") first.append(wx.newid(),"open...","open new window") menubar.append(first,"file") menubar.append(second,"edit") self.setmenubar(menubar) if __name__=='__main__': app=wx.pysimpleapp() frame=test(none,id=-1) frame.show() ...

c - How to change a pointed value and increment the pointer at the same time -

char foo[] = "something"; char *p = foo; is there way change value pointed , increment pointer next element using 1 ;? i mean, make effect of these 2 lines below in single statement? *p = 's'; p++; i think want *p++ = 's'; // --> *(p++) = 's'; sample run .

linux - Moved a file by mistake with certain time stamp want to restore files with same time satmp -

by mistake moved file want them same time stamp mv dr * /filespath/to/bkp/ is there way recover them same time stamp if understand question (and know original timestamp) move them back, , use touch give them old time stamp. excerpted man touch on gnu/linux, -a change access time -m change modification time -t stamp use [[cc]yy]mmddhhmm[.ss] instead of current time