Posts

vba - How to filter items sendername from Items_ItemAdd Events? -

private withevents items outlook.items private sub application_startup() dim ns outlook.namespace dim folder outlook.mapifolder set ns = application.getnamespace("mapi") set folder = ns.getdefaultfolder(olfolderinbox) set items = folder.items end sub private sub items_itemadd(byval item object) if typeof item outlook.mailitem printattachments item end if end sub i made rule outlook automatically print incoming email attachment, exception of few coworkers'email. if stop rule macro not working on own(supposing should,code error?) if rule's enabled every email attachment printed twice. one every page , 1 first page. there way work around this? kindly assist , in advance! work items.restrict method (outlook) exclude senders name. filtering items example private withevents items outlook.items private sub application_startup() dim olns outlook.namespace dim inbox outlook.mapifolder dim filter string filter = ...

Azure Bot code seems to be erased -

Image
i'm working on bot (in testing) using azure bot framework , chat embed code. had started luis framework template , embedded section of website several days ago. working expected, of files/code (using azure editor) seem erased , chat embed throws 502. this looks may similar this: how recover bot made azure bot service (botframework)? but did not have answer work on end. this test bot (so didn't use continuous integration/source control anyhow), , learning @ point, appreciated. thanks! please download azure storage explorer here: http://storageexplorer.com/ login, , navigate resource group's storage account. when open it, you'll see file shares. there you'll find source bot. the bot service , bot framework in preview , being improved upon daily. apologize inconvenience, , hope future experiences bot framework productive , enjoyable.

ubuntu - IDE connect to VM as if programming locally -

is there way me have ide running in host side (phpstorm) connects vm (vagrant etc) in such way can edit project resides in guest side feels project in host side? i know can use ftp or ssh browse through remote files, treats vm separate machine in same network. using make phpstorm features unusable quick file searches, mapping of code definitions etc. know can download code host side , sync. if have many projects in vm, can bit tedious download sources first started. if download few files first, can't search on other files. there way have setup this? guest holds code guest has third party dependencies (memcache, etc) ide in host side ide accesses code in guest treats local code host browser accesses output via accessing guest's url (no problem here) i have windows host , ubuntu guest on vm. workstation runs guest running when fire phpstorm ide on ubuntu, guest slows down point of being unusable. have made optimizations host, guest , ide still slow down persists. ...

Android SQLite not deleting row by id -

i trying delete row given specific id , see update reflected in listview, row not deleted. same process works update , not delete. here code: mainactivity.java ... @override public void onpositiveclick(dialogfragment dialog, int which) { //shared preferences sharedpreferences pref = getsharedpreferences(editlog.pref_filename, 0); long id = 0; string date = ""; string hours = ""; string lessontype = ""; string weathercondition = ""; if (!(pref == null)) { id = pref.getlong("rowid", 0); date = pref.getstring("date", ""); hours = pref.getstring("hours", ""); lessontype = pref.getstring("lessontype", ""); weathercondition = pref.getstring("weathercondition", ""); ...

issues when Iterate Map with list as value using groovy -

def map = new hashmap<string,list<string>>() def list = new arraylist<string>() def list1 = new arraylist<string>() list.add("hello1") list​.add("world1") list.add("sample1") list.add("sample1")​​​​​​​​​​​​​​​​​​​​​​​​ list1.add("hello2") list1.add("world2") list1.add("sample2") list1.add("sample2") map.put("abc",list) map.put("bcd",list1) def data = new arraylist<string>() for(e in map){ println "key = ${e.key} value=${e.value}" // data = "${e.value} string[]" data = "${e.value}" println "size ${data.size()} " --(b) check(data) ​} def check(input) { println "${input.size()}" ---(a) for(item in input){ print "$item "​​​​​​​​​​​​​​​​​} ​}​ i have pass string[] java function groovy script. trying read array list , convert string array. problem when assign {e.value} variable data , try size...

python - how to join multiple csv files without repetition? -

i have 3 csv files should have same date column that: file1.csv file2.csv file3.csv date,price1 date,price2 date,price3 2017-03-03,1900 2017-03-03,1200 2017-03-03,1220 2017-03-04,2900 2017-03-04,2200 2017-03-04,2233 2017-03-04,1300 2017-03-04,1549 2017-03-04,1520 i want join them , using python: file4.csv date,price1,price2,price3 2017-03-03,1900,1200,1220 2017-03-04,2900,2200,2233 2017-03-04,1300,1549,1520 one can combine 2 files @ time. repeat process other files well. import pandas pd df1 = pd.read_csv('file1.csv') df2 = pd.read_csv('file2.csv') df3 = pd.read_csv('file3.csv') df12 = pd.merge(df1, df2, how='outer', on='date') df123 = pd.merge(df12, df3, how='outer', on='date') print(df123)

Use SPARQL property path on DBpedia -

i'd find out if property paths exist between 2 entities on dbpedia. sample query tried on snorql : select * { :braveheart (:|!:)* :mel_gibson } limit 100 the queries runs memory error: virtuoso 42000 error tn...: exceeded 1000000000 bytes in transitive temp memory. use t_distinct, t_max or more t_max_memory options limit search or increase pool sparql query: define sql:big-data-const 0 #output-format:application/sparql-results+json define input:default-graph-uri prefix owl: prefix xsd: prefix rdfs: prefix rdf: prefix foaf: prefix dc: prefix : prefix dbpedia2: prefix dbpedia: prefix skos: select * { :braveheart (:|!:)* :mel_gibson } limit 100 i suspect someone's going suggest setting local dbpedia mirror. if that's case, i'd love detailed steps on how so. i think query bit wrong you're trying answer... there no variables in select * can't project out (i'd consider bug compile this), let me rephrase query to ask { dbr:braveheart (<...