Posts

python - Seq2seq model tensorflow -

i'm working on tensorflow project , trying use seq2seq model given in tutorials. problem is, doesn't seem work. removed errors myself don't know why 1 not seem remove. i'm working on python 3.5.2 tensorflow 1.2.1 code follows. (can followed on github in tensorflow tutorials) https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py (couldn't post here due exceeding number of lines. sorry that) the error is: attributeerror: 'bool' object has no attribute 'output_size' and pointing line 761 is if output_size none: output_size = cell.output_size does know error is? thanks

html - Scale an SVG element using a transform origin -

<html lang="en-us"> <head> <link rel="stylesheet" href="https://codepen.io/basement/pen/oepkxy.css"> </head> <body> <iframe src="https://s.codepen.io/basement/debug/zdpvyv/pnavylzmjrqr"></iframe> <div class="wrp"> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 100" width="100" height="100" class="canvas" > <defs> <style type="text/css"> polygon { fill: none; stroke-width: 0.5; stroke: #f00; } </style> </defs> <g transform="translate( 0 12.5 ) scale( 1 )"> <polygon points=" 75,6.7 75,93.3 0,50 " ...

17 characthers Facebook user id gets stored with a different value in MYSQL using Facebook php SDK v2.10 -

$user = $response->getgraphuser(); $fid = $user['id']; echo($fid); //10155784607879101 //in mysql table 2147483647 in fid column following query $stmt = $dbh->prepare("insert users(fid) values (:fid)"); $stmt->bindparam(':fid', $fid); $stmt->execute(); //in case $fid not equals $stmt->bindparam(':fid', $fid); i read in facebook developers documentation: id numeric string id of person's user account. id unique each app , cannot used across different apps. our upgrade guide provides more information app-specific ids core i cannot identify users when return on site , login using facebook. has suggestion? thanks in advance, adam to store facebook id number need field unsigned bigint. however, facebook lists data type of id string , should store alphanumeric type avoid breaking app in future (thanks cbroe pointing out).

vsts - Visual Studio Team Service build UWP app for x64 error -

i tried build uwp app on visual studio team service (visual studio 2017 host) , got missing reference vcmeta.dll error error c1108: unable find dll: 'vcmeta.dll' when building x64 version of app. due project or due version of vs2017 on vsts?

java - Bad status returned from Mockito test -

i test example method controller @getmapping("/checkusernameatregistering") public httpentity<boolean> checkusernameatregistering(@requestparam string username) { return responseentity.ok().body(!userservice.existsbyusername(username)); } which returns status ok. i created test in mockito public class checkuserdatarestcontrollertest { @mock private userservice userservice; @injectmocks private checkuserdatarestcontroller checkuserdatarestcontroller; private mockmvc mockmvc; @before public void setup() { mockitoannotations.initmocks(this); mockmvc = mockmvcbuilders.standalonesetup(checkuserdatarestcontroller).build(); } @test public void testcheckusernameatregistering() throws exception { mockmvc .perform(get("/checkusernameatregistering") .param("username", "jonki97")) .andexpect(status().isok()); } } i expect status ok. know makes no sense, want test done corre...

c - Converting Functions Windows API -

just need help, wondering how convert following heapalloc rtlcreateheap. code is #define thing2 1048 byte *firstheap; firstheap= heapalloc(getprocessheap(), 0, sizeof(thing2)); //do stuff firstheap heapfree(getprocessheap(), 0, firstheap); writefile ntwritefile handle handletofile = null; dword oflen; dword zeroed = 0; writefile(handletofile, firstheap, oflen, &zeroed, null); //do other stuff closehandle(handletofile); i doing own personal education. appreciated. thanks!

php - Showing units sold in product page OpenCartv3 -

i'm trying show units sold each product in product page in opencart v3 keep getting following error fatal error: uncaught error: call member function getunitssold() on null in /applications/xampp/xamppfiles/htdocs/store/catalog/controller/product/product.php:157 stack trace: #0 /applications/xampp/xamppfiles/htdocs/store/system/engine/action.php(79): controllerproductproduct->index() #1 /applications/xampp/xamppfiles/htdocs/store/catalog/controller/startup/router.php(25): action->execute(object(registry)) #2 /applications/xampp/xamppfiles/htdocs/store/system/engine/action.php(79): controllerstartuprouter->index() #3 /applications/xampp/xamppfiles/htdocs/store/system/engine/router.php(67): action->execute(object(registry)) #4 /applications/xampp/xamppfiles/htdocs/store/system/engine/router.php(56): router->execute(object(action)) #5 /applications/xampp/xamppfiles/htdocs/store/system/framework.php(168): router->dispatch(object(...