Posts

ios - PushViewController not animating -

i using code push viewcontroller: let internetusagehistoryvc = uistoryboard(name: "usage", bundle: nil).instantiateviewcontroller(withidentifier: "internetusagehistorycontroller") as! internetusagehistorycontroller internetusagehistoryvc.internetusagecardviewmodel = cardvm self.navigationcontroller?.pushviewcontroller(internetusagehistoryvc, animated: true) the navigation working animation not seem working. might related bunch of broken constraints have in screen navigating to... not sure... has faced issue?... suggestions? thanks

javascript - Stripe API Status 200 OK No Event Created -

i utilizing stripe api test key. have payment form posting stripe api endpoint, no event being created. when check stripe event/logs able see 200 - ok success message under logs tab submitted test payment, events tab remains empty. can't seem figure out. code below. here php processing payment: function wpay_stripe_process_payment() { if(isset($_post['action']) && $_post['action'] == 'stripe' && wp_verify_nonce($_post['stripe_nonce'], 'stripe-nonce')) { global $stripe_options; // load stripe libraries require_once(stripe_base_dir . '/lib/stripe.php'); // retrieve token generated stripe.js $token = $_post['stripetoken']; // check if using test mode if(isset($stripe_options['test_mode']) && $stripe_options['test_mode']) { $secret_key = $stripe_options['test_secret_key']; } else { ...

sql server - SQL 2016 Always Encrypted columns and SQL temporary tables (#temp) -

we looking solution implement "always encrypted" columns in database, using @ same time many sql temporary tables (#tmp). we explored alternate path - stop using #temp tables, mean high impact on our app in terms of time/cost. did find way write queries "insert #tmp select my_table", my_table contains ae columns? i tried applying same cmk , cek tempdb database, can create same structure #tmp table, structure of my_table. doesn't solve problem though - having tables in 2 different databases seems prevent data transfer. i'm looking sql solution, , not solution involves client app (c#, vb, etc.) has access encryption keys. insert operations in manner describing not supported encrypted columns. "insert #tmp select my_table" you have write client app achieve similar result. if want explore path, please leave comment , can guide you. you should able achieve similar in c# follows. do select * encryptedtable load data ...

python 3.x - Progress bar inside a button in Pygame -

the desired behavior is: when user hold mouse on button, dark gray progress bar appears , starts incremented @ constant pace. want able determine how long take fill (like 2 seconds). if mouse move out button before progress bar has reached 100%, progress bar should go straight 0%. if bar reaches 100%, program should print in terminal. here code: import sys import pygame import time pygame.locals import * os import path pygame.init() screen = pygame.display.set_mode((900, int(900 * (16 / 9)))) clock = pygame.time.clock() black = (0, 0, 0) green = (0, 255, 0) white = (255, 255, 255) background_color = (237, 225, 192) light_gray = (60, 60, 60) gray = (30, 30, 30) class button: def __init__(self, screen, x, y, w, h, button_color_active, button_color_inactive, text, font, size = 50, text_color = black): self.screen = screen self.game_folder = path.dirname(__file__) self.font = path.join(self.game_folder, font + '.ttf') self.x, s...

sql - Filtering a query without having to write in the full name in Microsoft Access -

i made form in microsoft access textbox , query. whatever written in textbox shown in query (for example type customer1 , query displays rows have firstname(this column name) customer 1). i'm trying make don't have write full name of customer in order have query filter table. example : have customers named jhon, edward , mark, in order display mark have write in "mark"(the full name). want able filter out customers example first 2 letters of name "ma" when write "ma" in textbox. here code i've been using filter far : select * kupci forms.[form1].[text4] null or ( forms.[form1].[text4] = forms.[form1].[text4] , ime=forms.[form1].[text4] ); side-note : kupci means customers , ime means first name. query displays if there no text in textbox. thank help. my best guess following want: select * kupci forms.[form1].[text4] null or ime forms.[form1].[text4] & "*" if query had searched whole name...

html - First Steps Towards a Chatroom -

i've been trying figure out how word ten minutes, made animation. animation shows i'm trying code. i've coded layout , design, can't figure out how make function. animation link i've been using dreamweaver write code , mozilla thimble upload it. i'm using html simple css stylesheet. know how use javascript, haven't found way use in code.* is there way code it? *yes, know <script> tag exists, can't find way apply solution problem. to start, need use javascript add functionality chatroom recording type, , using php , mysql add database of users talk to. maybe check out video starters: https://www.youtube.com/watch?v=0edklltzub4 its not best chatroom make one. :)

What's the appropriate built-in Exception to raise if your library is used with the wrong Python Version? -

i have simple library distributed .py file. raise exception if library called python 2 instead of python 3: def _check_version(): if sys.version_info < (3,): raise _____exception('this library depends on python 3 strings. please ensure using python 3 instead of python 2') what built-in exception should raise? (how fill in blank above?) closest exception can find among builtin exceptions notimplementederror. deprecationwarning feels close, exception more appropriate in case. i'd use runtimeerror this; there no more specific exception.