Posts

google app engine - gcloud cloud functions deployment failure code 13 message=Failure in the execution environment" -

deploying cloud function gcloud failed below message, error: (gcloud.beta.functions.deploy) operationerror: code=13, message=failure in execution environment couldn`t find information error in cloud function logs. running deploy --verbose debug traces functions called in cloud sdk directory , ends displaying below error, functionserror: operationerror: code=13, message=failure in execution environment error: (gcloud.beta.functions.deploy) operationerror: code=13, message=failure in execution environment per google public issue tracker , error due large package.json file hitting internal restriction. possible workarounds: 1- installing dependencies locally (through 'npm install') , deploying --include-ignored-files flag. 2- reduce package.json less 4000 characters this ongoing issue , can follow discussion on thread related updates.

java - Android: GridView shows all but a few images -

i have 6 images downloaded as shown here , gridview in gallery displays 5 of images . i'm trying copy how instagram displays gallery, selected image taking 60% of screen , gallery images taking rest. fragment_gallery.xml <?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <relativelayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/rellayoutl"> <!--toolbar--> <include layout="@layout/snippet_top_gallerybar"/> </relativelayout> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" an...

javascript - JQuery .data() not fetching values after I change them -

i have data attribute called registeredteacherid. reason values aren't getting fetched correctly after update them. here general idea of i'm doing. var registeredteacherid = $(eventpanel).data('registeredteacherid'); // work...then $(eventpanel).data('registeredteacherid', response.teacherid); // @ point sets new value in ie debugger window // more work // fetch value again , still shows old value var registeredteacherid = $(eventpanel).data('registeredteacherid'); the data function not change value of data-* attribute, give access these values. you can change values , new data, , if want change content of data-* attribute can use attr function: console.log($('div').data('content')); console.log($('div').attr('data-content')); $('div').data('content', 'some new content'); console.log($('div').data('content')); console.log($('div').attr('data...

windows - UWP image byte buffer RGBA to Xaml Control Image C++ -

i call upon great minds of fellow programmers answer question google not give me answer to. i trying display raw image buffer rgba8 using xaml.controls.image. solutions found far in c# doesn't work c++ because used functions not available in c++. c# , c++ inconsistent. i want use byte buffer because want manipulate image data pixel pixel. int x = 0; int y = 0; int channelspresent = 0; const int chanreq = 4; // raw byte buffer storing rgba pixel data. char* bytebuffimage = (char*)stbi_load("assets\\storelogo.png", &x, &y, &channelspresent, chanreq); //what steps in between. // type:(image) this? resulttexture->source = in c# seems easy: https://social.msdn.microsoft.com/forums/vstudio/en-us/a7623393-039d-4664-827a-9050d41d0ae3/uwpc-i-want-to-display-an-image-as-a-bitmapimage-that-i-received-in-a-byte-stream-in-response?forum=wpdevelop thank you.

ios - CloudKit: are reliable realtime updates possible? -

i have ckdatabasesubscription set up, shouldsendcontentavailable set true, , soundname set empty string. it works great - except when user has 'background app refresh' turned off on device - notifications not received, unless device charging. seems expected behaviour, given shouldsendcontentavailable flag. i don't mind background updates never come through, seems 2 devices side side, app in foreground, changes on 1 device not forwarded other when background app refresh disabled. that unfortunate, although seems edge case user have app open on both devices , setting disabled. still nice fix edge case though. i manually check changes every once in while, seems wasteful, since edge cases need this. has discovered way reliably receive these notifications while app in foreground, background app refresh disabled? or perhaps there other way send , receive real time updates isn't obvious?

node.js - Host React and Express on the same server? -

i working on react site has contact page. on contact page there text field enter message sent specific email address. right i'm trying set express react app, only thing need express 1 feature. in react app doing $.post('http://localhost:3030/api',{value:'hi'}, function(result) { console.log(result); }); and in express index.js file i'm doing app.get('/api', (request, response) => { console.log(request); }) just simple test see if things working properly. when run these both , attempt execute post function, no 'access-control-allow-origin' header present on requested resource. error, saying can't make request separate domain . issue here not error, fact running express server , react app on 2 different servers. is there way have them on same server? new back-end development, appreciated! yes, react runs on client , express node.js framework. there's pretty chance you're using express if you...

applescript - Copy files from one location to another: access not allowed error message -

i'm making script replace folder in containers folder in home user's library. far, code below works fine. nothing wrong it. issue is, because moves files rather copy them, can run once. however, if try , change move copy , following error: can’t set filepath replacing «class ects» of «class cfol» ((path me string) & "contents:resources:folder1"). access not allowed. can tell me why , how fix it? set filepath (get path home folder) & "library:containers:folder1" string tell application "finder" move entire contents of folder ((path me string) & "contents:resources:folder1") filepath replacing you cannot replace move copy , because finder's applescript dictionary says following copy command : copy v : (not available yet) copy selected items clipboard (the finder must front application) use duplicate command instead: duplicate  v : duplicate 1 or more object(s)      duplicate specifie...