Posts

erlang - How does receive block work? -

i had simple question , can't seem find answer it. question if have function recording state (recursive) , send multiple messages it, keep going through receive block until no longer has messages in "mailbox"? state(fridge) -> receive pat1 -> io:format("ok"), state(s); pat2 -> io:format("not ok"), state(s) end. so if i'd send process 3 messages (pat1, pat2, pat1) using "!" , not able go loop before receiving messages still print out following? 1> "ok" 2> "not ok" 3> "ok" sorry if isn't put, simplifying question might make hard picture asking. your question isn't clear seem asking whether process receive 3 messages if they're sent before target process has called receive — if that's question, answer yes. when send message process, goes process's message queue until process calls r...

jrebel - Disable reloading in Grails 3.1 / springloaded -

i'm trying disable automatic reload/recompiling in grails 3.1 use jrebel instead. find springloaded rather limited, more importantly fails file /users/engrun/development/projects/grailspoc/grails-app/controllers/grailspoc/hellocontroller.groovy changed, recompiling... java.lang.illegalaccessexception: class org.springsource.loaded.reloadabletype can not access member of class org.springframework.aop.framework.cglibaopproxy$classloaderawareundeclaredthrowablestrategy modifiers "public" i have tried kinds of settings have found available, however, none disables reloading when running run-app command i have tried disable.auto.recompile=true on command line, grails_opts, , in application.yml i have tried -noreloading flag, both on command line , grails_opts. according docs, should have worked https://grails.org/wiki/auto%20reloading and answer accepted correct 1 here how can disable reloading in grails 3.0.0 app? not work either. have succeeded in d...

latex - Auctex cannot find a working TeX distribution on spacemacs with Osx ElCapitan -

i following error when try build latex spacemacs text editor : tex-command: error : auctex cannot find working tex distribution. make sure have 1 , tex binaries in path environment variable. if fyou using osx el capitain or later remember add /library/tex/textbin/ path i have installed mactext torrent linked on official site : https://tug.org/mactex/mactex-download.html the /library/tex/textbin/ path doesn't exist me if install mactex. i have tried add library/tex/textbin path didn't work. the texshop text editor building latex correctly somehow. how can fix problem , tex distribution ? need change path ? so, after debugging him. realized forgot leading / in path. spacemacs searching in ~/library instead on /libraby

proxy - iOS Safari development ".local" domain issue -

1) have asp.net app running on pc (under "xyz.local" domain) 2) have third party dns configured on pc (created zone "xyz.local") 3) have fiddler proxy running @ port 8888 4) have windows , ios tablets dns configured desktop pc's ip address , proxy configured desktop pc's ip address , fiddler proxy port (8888) on windows tablet, can access web app both ie , chrome via "xyz.local". on ios tablet, can access web app chrome, not safari. requests safari don't reach fiddler. suggested safari requires add www @ start, tried "www.xyz.local" (i added alias(cname) dns records) , nothing. but, tried setting "www.xyz.com" , worked. anybody knows why? need go ".local" , not ".com" tld. rfc 6762 reserves top-level label .local multicast dns. not use .local ordinary dns. use real, registered domain name instead. if absolutely positively cannot use real domain, @ least pick 1 of reserved names guar...

ios - MKMapView fails to load tiles with HTTP 410 error -

i have problem mkmapview . map fails load tiles when zoom in. -(void)mapviewdidfailloadingmap:(mkmapview *)mapview witherror:(nserror *)error error: domain=geoerrordomain code=-204 "(null)" userinfo={simpletilerequesterunderlyingerrors=( "error domain=geoerrordomain code=-204 \"(null)\" userinfo={httpstatus=410, nserrorfailingurlstringkey= http://gspe19.ls.apple.com/tile.vf?flags=1&style=20&size=2&scale=0&v=11037825&z=15&x=6205&y=12336&sid=0246704635757302674107153038443966765357&accesskey=1454685602_q3bvuyvhbdxsso0a_j0fk7eyq9b21npshv7grlzr4wfkkhxb4vo7%2blxcgsxj4zzhvhtalvwsypa3plu60cdrmrfwmwcybgrla9mchv%2fhorhotu9agi72vqp9ukzw%2b0gkqfrhpcw4xr%2f%2fttvgjz7wu4u4kna8k2rvvq%2foffhjq7oo4nyectvy0ur4i9d3sxf%2btn9dcxu8agdrjignb }", ... edit: seems related cache somehow, i'm not sure. problem disappears time after loading same map region in maps application. thanks in advance i analysed , d...

c# - Hosts Redirect 400 Error Web Page Cannot be Found -

i'm trying test application against oauth microsoft account login. i have added following hosts file 127.0.0.1 testdomain.co.uk my application running on https when run app runs follows; https://localhost:44308/home now when hack url https://testdomain.co.uk:44308/home i certificate warning (which expected). however, when click continue site, 400 web page cannot found error? any ideas on doing wrong here? you need tell web server should handle testdomain.co.uk project. web server (iis express) not know it, default set handle "localhost" host only. how change described here: https://stackoverflow.com/a/32365556/3835864

javascript - JQuery Autocomplete with countries -

i'm trying make autocomplete country codes in jquery. i'm using code example. in site, works well, values, appear list in front of input, , not example in site. couldn't run on jsfiddle, here my code . you! var countries = { "argentina (ar)":"ar", "united states (us)":"us", "comoros": "km", "congo (brazzaville)": "cg", "congo, democratic republic of the": "cd", "cook islands": "ck", "costa rica": "cr", "côte d'ivoire": "ci", "croatia": "hr", "cuba": "cu", "cyprus": "cy", "czech republic": "cz", "denmark": "dk", "djibouti": "dj", "dominica": "dm", "dominican republic": "do", }; ...