Posts

php - Fatal error: Uncaught OAuthException: (#200) Requires extended permission: read_stream -

fatal error: uncaught oauthexception: (#200) requires extended permission: read_stream thrown in /home/a1607618/public_html/base_facebook.php on line 1033 my app tend read user wall posts if ($user) { $comments = $facebook->api('/me/home'); d($comments); } function d($d){ echo '<pre>'; foreach ($d $a => $b) { print "$a: $b\n"; } echo '</pre>'; } i give app extended permission: read_stream through apps_ >connectme _>permissions and here line 1033 protected function throwapiexception($result) { $e = new facebookapiexception($result); switch ($e->gettype()) { // oauth 2.0 draft 00 style case 'oauthexception': // oauth 2.0 draft 10 style case 'invalid_token': $message = $e->getmessage(); if ((strpos($message, 'error validating access token') !== false) || (strpos($message, 'invalid ...

sign - WiX-Bootstrapper - Set Productname and Companyname for UAC Dialog -

i have created bootstrapper wix 3.7. now, when start on windows7 machine, uac-dialog shown before installing .net 4.0 prerequisite. thats ok. searching way "sign" installer/bootstrapper, can set product-name , company-name uac-dialog. how can this? there signing tasks built wix.targets sign bundle. can read in insignia topic in wix topic . uac show information certificate.

c++ - Define Operator < in struct for 2 objects of another struct -

i have little problem in c++ , hope able me out. i want define struct mypoint. struct should able compare 2 objects type point (defined pair). want every "instance" of mypoint able compare 2 points on own. tried code: typedef pair<int,int> point; struct mypoint{ point p; inline bool operator<( point x, point y ){ return !ccw(p,x,y); } so every mypoint should consider own point p while comparing 2 points x,y. (translated) error is "error c2804: binary operator '<' has arguments/parameters" it seems it's syntacticly possible make operator 1 point, guess compare point mypoint, that's not should be. background of problem want use predefined sort function sort vector of points , sorting "function" want deliver mypoint object. i think (maybe) trying write functor struct mypoint { mypoint(point p) { this->p = p; } bool operator()(point x, point y) const { return !ccw(p,x,y); ...

c++ - opengl - flash of light (like when shooting) -

Image
i'm trying create flash of light (like when shooting). e.g. (it's real video, need similar, more simpler): i need using opengl - can't model one. nice if little random. can give me hints? i don't know how want look, can fake using alpha textured quads laid out in cross, can move texture little every frame in direction of muzzle pointing make if moving. it simple , easy implement , flash should quick thing user never know able tell difference.

javascript - find specified percentage with jquery -

i trying find percentage of integer in jquery: there variable different values gets based on selected attribute (for example variable have value 0.27) is there made function find 6.61375661375662% of value (0.27) ? or need manualy write formula? var percentage = your_var * .0661375661375662; or (for clarity): var percentage = your_var * 6.61375661375662 / 100;

sqlParameters Array in VB.Net -

i'm trying create typed-sized parameters array in vb.net: dim parameters() sqlparameter = new sqlparameter() _ { new sqlparameter("@first_name", sqldbtype.varchar, 50) {value = "john"}, new sqlparameter("@last_name", sqldbtype.varchar, 50) {value = "doe"}, new sqlparameter("@age", sqldbtype.int) {value = 18}, new sqlparameter("@id", sqldbtype.int) {value = 123} } but vs says: value' not declared. may inaccessible due protection level what's wrong code above? thanks! you need use vb syntax object initializers: dim parameters() sqlparameter = new sqlparameter() _ { new sqlparameter("@first_name", sqldbtype.varchar, 50) { .value = "john"}, new sqlparameter("@last_name", sqldbtype.varchar, 50) { .value = "doe"}, new sqlparameter("@age", sqldbtype.int) { ....

javascript - Fill a range (multiple columns) down multiple rows - google-apps-script -

i had success filling single column (a) value found in range a1... var ss = spreadsheetapp.getactivespreadsheet().getsheetbyname("sheet1"); var lastrow = ss.getdatarange().getnumrows(); var rngval = ss.getrange("a1").getvalue() ss.getrange("a2:a"+lastrow).setvalue(rngval) so thought on easy-street, , tried modify/apply larger range filling multi-column range values found in range c1:h1... var ss = spreadsheetapp.getactivespreadsheet().getsheetbyname("sheet1"); var lastrow = ss.getdatarange().getnumrows(); var rngval = ss.getrange("c1:h1").getvalues() ss.getrange("c2:h"+lastrow).setvalues(rngval) apparently there bit more slapping "s" onto end of word "value". the error reads follows: incorrect range height, 1 should 10 (fyi: var lastrow = 11) btw, no error if use value instead of value s , although end cells full of value found in range c1. so i'm close.... ...