Posts

osx - Signing Applescript Application So It Doesn't Ask For Password -

i have applescript application wrote modifies network settings connect me vpn provider. problem: asks me password every time want run it. hopeful solution: runs without asking password. (************************ run *************************) on run #{vpnconfiguration} set rand_vpn random_vpn() set vpnconfiguration pick_vpn(rand_vpn) # returns list 1 item set vpnconfiguration item 1 of vpnconfiguration # selects item list connect_vpn(vpnconfiguration) end run (******************** random vpn **********************) on random_vpn() set rand_vpn item of {"us-cali", "us-west", "us-east", "us-midwest", ¬ "us-texas", "us-flordia", "us-seattle", "us-siliconvallay", "us-newyorkcity"} return rand_vpn end random_vpn (********************* pick vpn ***********************) on pick_vpn(rand_vpn) set vpnconfiguration choose list {¬ "us-cali...

c++ - VS2015 Additional Include Directories not finding included header? -

Image
the question title says all. here project settings addition include directories. here current program #include <curses.h> int main() { initscr(); /* start curses mode */ printw("hello world !!!"); /* print hello world */ refresh(); /* print on real screen */ getch(); /* wait user input */ endwin(); /* end curses mode */ return 0; } here errors. and curses.h file in include folder anyone might have clue went wrong? try use #include "curses.h" , instead of #include <curses.h>

angularjs - Semantic ui search module -

i using semantic ui search module, content remote json file, can make work no matter typed whether found or not, show list json file. script $('.ui.search') .search({ apisettings: { url: 'http://localhost/api/materialmaster.json' }, fields: { results : 'data', title : 'matcode' }, mincharacters : 2 }) ; json file format is {"data":[{"matcode":"0a66244s1"},{"matcode":"200gd0s100150cm"}]} see if can help. had same problem , solved using instructions. https://stackoverflow.com/a/32937262/5381965

html - What will be the basic JavaScript code for a button? -

Image
i need button shows me date below when use hover mouse on , hides when hover mouse out. in picture below: you can read more event handling in javascript https://developer.mozilla.org/en/docs/web/api/eventtarget/addeventlistener , fiddle little. have declare 2 listeners on button, 'mouseenter' , 'mouseleave' event types (1st argument of addeventlistener), , use algorithms of choice executed in listener functions (2nd argument of addeventlistener).

dynamic - How to create a new entity with fields in CRM programatically -

i want create new entity named "record" fields approvalstatus, pendingwith. how can create programatically part of solution can deploy higher environments i able find links creating new entity items , want create new entity i have create few entities record,management etc , need create views, forms these best approach this? using crm 2016 you can use metadata web service manipulate crm metadata , create entities, attributes. looking functions createentityrequest . however if looking move components between environments better served using solutions explicitly purpose

mongodb - mongorestore error: "Failed: error connecting to db server: no reachable servers" -

i'm working through book "getting mean," mean stack tutorial. i'm creating sample app , deploying heroku. i'm stuck @ point i'm trying push data local mongo database mlab heroku addon. i able create mlab database no problem. created mongodump in temp folder. retrieved mlab uri with: heroku config:get mongolab_uri so far good. next step push data temp folder mlab database command (populated real values mongolab uri, of course): mongorestore -h <db server:port> -d <db name>7 -u <username> -p <password> <path temp folder> but when run that, get: failed: error connecting db server: no reachable servers i searched through documentation on mlab , heroku , forum getting mean book itself, , wasn't able find helpful. thanks in advance! i had same problem (also while following 'getting mean' , solved taking database name out of host name: when mongodb_uri, after @ host name database name slashed afte...

logic - Converting Normal Form to CNF -

in cs logic class have convert normal form boolean expressions cnf, kind of stuck on one. ¬(¬p => (p => q)) which is: ¬(¬p => (¬p or q)) implication elimination ¬(¬¬p or (¬p or q)) implication elimination ¬(p or (¬p or q)) double negation ¬p , ¬(¬p or q)) demorgan's ¬p , (¬¬p , ¬q)) demorgan's ¬p , (p , ¬q)) double negation the next step distribute or on and, there aren't or distribute. once reach ¬(p or (¬p or q)) double negation you have ¬((p or ¬p) or (p or q)) distribution ¬(true or (p or q)) excluded middle ¬(true) null element of or false obviousness :p