Posts

c# - unity-networking: bullet prefabs not spawning on client side -

i making simple 2d shooting game. movements appear on both sides of server fine, shooting (and making bullet prefab) works on host side - bullets appear on both sides. client side makes bullets, static , cannot been seen host. host works client doesn't, not understand why problem occurs , how works, appreciate explaination

java - JPQL not working with dates -

i'm not able data database using dates in query... i'm working on web application using spring data jpa , oracle database. using @repositoryrestresource annotation in interface declaring query methods named parameters using @param , @query annotations. today needed add new entity dates. in database both columns type of date , used in query. have other 1 type of timestamp , maybe need use in future. , below java representation of 2 columns only, of course setters , getters, has more fields adding this: @temporal(temporaltype.timestamp) @column(name = "init_date") private calendar initdate; @temporal(temporaltype.timestamp) @column(name = "agg_date") private calendar aggdate; i created new interface case, same way always: @repositoryrestresource(collectionresourcerel = "customer", path = "customer") public interface icustomerrepository extends pagingandsortingrepository<customer, long> { @query("select c cu...

authentication - How to use Google Oauth2 for both signing in users and creating new user accounts in a rails app? -

i'm working on google authentication rails app. using omniauth-google-oauth2 gem implement google auth. i've managed have users sign in using google. however, i'd users able sign using google. problem i've matched google callback url particular controller action (sessions#create). possible choose between 2 redirect uris based on whether users signing in or signing up? currently, idea create new google client credentials used sign up, hope there better way. you don't need have 2 redirect uris, need more work when receiving callback. instance: class sessionscontroller < applicationcontroller ... def create email = auth_hash['info']['email'] # assuming omniauth hash auth_hash , you're requiring email scope @user = user.find_by(email: email) if !email.blank? # assuming user model user if @user login_user(@user) # use login method elsif !email.blank? @user = user.new(name: auth_hash['info']...

python - savWriter writerows with Dataframe -

i trying use savreaderwriter library python. have dataframe read in via df = pd.read_csv . using following piece of code won't seem write rows file. with savreaderwriter.savwriter(savfilename, *args) writer: writer.writerows(df) i getting following error typeerror: 'str' object not support item assignment.any appreciated. this sample on https://pythonhosted.org/savreaderwriter/ savfilename = 'somefile.sav' records = [[b'test1', 1, 1], [b'test2', 2, 1]] varnames = ['var1', 'v2', 'v3'] vartypes = {'var1': 5, 'v2': 0, 'v3': 0} savreaderwriter.savwriter(savfilename, varnames, vartypes) writer: record in records: writer.writerow(record) i think can divide dataframe 3 fields(records, varnames, vartypes) way, can use method in pandas write data file. import pandas pd sensor_values = pd.dataframe([[1,'aaa','bbb'],[2,'ppp','xxx']], columns=[...

datastax enterprise - Error while trying huge gremlin Queries in Data Stax Graph -

all of run in datastax studio. i have gremlin query needs addition of 10 vertices , many edges. have written gremlin query , runs successfully. then copied same query twice changing values. again ran then tried same query different values in different cell in datastax studio , got following error: java.util.concurrent.completionexception:org.apache.tinkerpop.gremlin.driver.exception.responseexception

windows - no certificate available when enrolling on behalf -

Image
i have 1 winserver 2008 domain controller , ca server on it. log in administrator account , want request certificate "on behalf" of user of dc. for doing that, @ first duplicated these certificate templates: smart login smart user enrolment agent i changed configuration , permission new templates administrator account can read, write , enrol these templates. after creating these new templates , assigning permissions , configuration, mmc , certificate snap-in, user account certificates, , " personal " section, requested new certificate administrator account make enrollment agent shown below: then generated no problem , want request certificate on behalf of user new certificate. but, in "select enrolment agent certificate" , when click on "browse" button, have problem because there no certificate select, shown below: there no certificate available choose i read lot of documents online did not find reason solve problem! ...

tsql - Microsoft SQL Server Differential Backup -

i creating differential backups of database every 4h 1 file. today wanted restore latest backup, doesn't work. if try restore in sql management studio, doesn't recognize full backup. when browse restore point 81 (out of 150), recognizes full backup , able restore it. when choose point after 81, stuck in loop. i checked headers of backup file , found odd. backups 1-81 have same differentialbaselsn , differentialbaseguid, after 81, changed new lsn , gui. is problem, why doesn't recognize after 81? can change lsn , guid manually? thanks!