Posts

greensock - Green Sock GSAP TweenMax, settle on last frame -

i have animated spritesheet uses following code: tweenmax.to(".globe__globe", 5, { backgroundposition:'0 -67280px', ease:steppedease.config(145)}); this means on 5 seconds, background position animated. steppedease function defines there 145 frames. works expected, @ end of animation resets first frame. need end on last frame. help? turns out frames zero-indexed if knocked 1 frames-worth height off background position , reduced frames 145, fixes it.

php - Unit testing in Laravel5 - Error -

according to: /** * call given uri , return response. * * @param string $method * @param string $uri * @param array $parameters * @param array $files * @param array $server * @param string $content * @param bool $changehistory * @return \illuminate\http\response */ public function call() in order pass headers, set them in $server parameter, i'm doing so: public function testcreatelocation(){ $response = $this->call('post', '/api/v1/token', $this->test_token_request); $tokenobject = json_decode($response->getcontent()); /** run test */ $response = $this->call('post', '/api/v1/location', $this->test_1_create_tag, [], ['authorization' => 'bearer '.$tokenobject->token]); /** read response */ $this->assertresponseok(); } however, when run unit test, following error: vagrant@homestead:~/code$ php phpunit.phar tests/locationmodeltest.php phpunit 4.6.2 seba...

user interface - python GUI button manipulates label text -

hej, i want program gui in python compares prompted word (from list) entry. shall possible several times, want make button erases both entry , label , prompts next word list. thus, clicking button shall manipulate text displayed on label. bus how do this? my code excerpt is: from tkinter import * = 0 vocablist = ['one', 'two', 'three'] np.random.shuffle(vocablist) vocab = vocablist[i] (...) class simpleapp_tk(tkinter.tk): def __init__(self,parent): tkinter.tk.__init__(self,parent) self.parent = parent self.initialize() (...) self.label = tkinter.label(self, text=vocab,anchor="w") self.label.grid(column=1,row=0) def clear_text(): global self.entry.delete(0, 'end') += 1 # don't know if works! self.label.insert(0, vocab) # not work! button_next = tkinter.button(self,text=u"next", command=clear_text) button_nex...

Migrating ios In App Purchase Verification -

i build ios app in ios 6. i'm trying migrate ios 7+ / ios 8, , i'm having trouble in-app purchase verification. the verification done server side. after each purchases, send skpaymenttransaction.transactionreceipt base64 string server (nodejs), uses iap_verifier ( https://github.com/pcrawfor/iap_verifier ) verify receipt. since skpaymenttransaction.transactionreceipt depricated, want change new nsbundle.appstorereceipturl, however, when send receipt server verification, apple verification says invalid. comparing base64 string of transacationreceipt , appstorereceipt , different, appstorereceipt being bigger. how verify single in-app purchase receipt new method? are sure it's not sandbox/production issue? check page , question 15: url should use verify receipt ? and make sure not hit wrong environment. check base64 encoding different tool make sure don't use buggy encoding function.

ios - Get openfire Chat History -

i unable history open fire. using xmpp framework how chat history open fire archive , print history data in nslog? you need enable option in openfire chat history. login on openfire, go group chat, go group chat settings, go history settings , select show entire chat history option.

exc bad access - HTTP Status 403 - Bad or missing CSRF value -

while i'm submitting form i'm getting error page(http status 403 - bad or missing csrf value), , in form if give method "get" working fine. when give "post" method showing above error (even not entering in controller). please give me solution it. <form action="${request.contextpath}/cart/voucher" method="post"> <input type="text" name="voucher"/> <input type="submit" value="redeem"> </form just go through link may helps https://spring.io/blog/2013/08/21/spring-security-3-2-0-rc1-highlights-csrf-protection/

c# - How to intercept any drawings on a Window's DC -

i writing program in c#. place hook on external window's dc function gets called whenever window's content has changed, , can overlay graphics/text on top of it. know kind of hooking possible since live thumbnail preview appears on windows 7. unfortunately couldn't find info on subject. clues, please ?