Posts

Recently added/published/verified Google Business listing not showing in API -

we added client of ours on google , verified listing: https://www.google.com/search?q=green%20horizen%20llc%20140%20main%20st%20west%20kaysville&ludocid=15837666761009512619&hl=en but not showing in places api. how recent added customer? week ago. does have ideas if takes longer week listing show in places api? thanks!

npm - ember-cli installation not working -

$ npm install -g ember-cli c:\users..\appdata\roaming\npm\🐹 -> c:\users..\appdata\roaming\npm\nod e_modules\ember-cli\bin\ember c:\users..\appdata\roaming\npm `-- (empty) npm err! windows_nt 10.0.15063 npm err! argv "c:\program files\nodejs\node.exe" "c:\program files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" "-g" "ember-cli" npm err! node v6.11.2 npm err! npm v3.10.10 npm err! path c:\users..\appdata\roaming\npm\ember npm err! code eperm npm err! errno -4048 npm err! syscall open npm err! error: eperm: operation not permitted, open 'c:\users..\appdata\ro aming\npm\ember' npm err! @ error (native) npm err! { error: eperm: operation not permitted, open 'c:\users..\appdata \roaming\npm\ember' npm err! @ error (native) npm err! errno: -4048, npm err! code: 'eperm', ...

Using MySQL how do I select data between two dates if the dates are in separate columns -

in database, have column check-in date , column check-out date. need select every row has check-in date <= 7/30/2017 , check-out date >= 7/30/2017. this code have now: select * `v_reservation_records` cast(checkin date) <= '7/30/2017' , cast(checkout date) >= '7/30/2017' here example date db: 2018-09-18 when run query, not results, know have check-in date equal 7/30/2017. missing? or there easier way accomplish goal? assuming casting valid values date should convert literal date select * `v_reservation_records` cast(checkin date) <= str_to_date('7/30/2017' , '%d/%m/%y') , cast(checkout date) >= str_to_date('7/30/2017' , '%d/%m/%y') and can use between select * `v_reservation_records` str_to_date('7/30/2017','%d/%m/%y') between cast(checkin date) , cast(checkout date)

objective c - Waiting for code to execute (already used dispatch groups) -

got lengthy section of code shown below , i've hit brick wall. code runs , want do. however, needs finish running code within section before printing "finished" @ end. adding semaphores or dispatch group forces breakpoint. might obvious, give me bit of advice on please? note: cannot use dispatch @ bottom call method. remember within loop. for (id in arr) { searchbyname = nil; if ([i containsstring:@"word1"] || [i containsstring:@"word2"]) { nsrange searchfromrange = [i rangeofstring:@"ong>"]; nsrange searchtorange = [i rangeofstring:@"</str"]; nsstring *substring = [i substringwithrange:nsmakerange(searchfromrange.location+searchfromrange.length, searchtorange.location-searchfromrange.location-searchfromrange.length)]; [allergens addobject:substring]; if ([substring isequaltostring:@"examee"] && veg_lac_ovosafe == true) { veg_ovosafe = false...

oop - How i can create child view for parent view in PHP MVC? -

Image
when type address: http://localhost/gamelvl/world-of-tanks/tankguide/ i can enter tankguide view. inside folder folder called ussr when create controller , model ussr can not enter address: http://localhost/gamelvl/world-of-tanks/tankguide/ussr/ now, 1 can give me instructions on whether right thing or other solutions this? routing app <?php class app { public $controller = 'index'; public $method = 'index'; public $params = []; function __construct() { if (isset($_get['url'])) { $url = $_get['url']; $url = $this->parseurl($url); $this->controller = $url[0]; unset($url[0]); if (isset($url[1])) { $this->method = $url[1]; unset($url[1]); } $this->params = array_values($url); } $controllerurl = 'controllers/' . $this->controller . '.php'; ...

javascript - How do you return a promise? -

i don't understand how return promise. here's i've got far: post('myprogram.cfm',done) function done(response) { log('done') log(response) } function post(url,callback) { const form = new formdata(document.queryselector('form')) fetch(url, { method: 'post', body: form }).then(then) .then(callback) .catch(fail) function then(response) { return response.json() } function fail(response) { log('fail!') log(response) } } what is: const promise = post('myprogram.cfm') promise.done(done) i think instead of doing then(callback) , should return something .

python - Query-based view that changes periodically -

so i'm working on django project restaurant's page , need make view menu changes weekly. class weeklychangingmenu(models.model): introduction_date = models.datefield() options = models.charfield(max_length=500) and have menu view: def menu(request): menu = weeklychangingmenu.objects.get(introduction_date < datetime.date.today()) return render(request, "menu.html", {"menu":menu}) and i'm looking way to, rather making same query on , over, making query once week by, say, manage.py command store , reuse info if hardcoded view week make lot easier database.