Posts

javascript - Super div set value -

main code: <div is="superdiv"> </div> superdiv_prototype.createdcallback = function(){ this.innerhtml = "init value"; } //register element but can not work. any 1 can me? your missed prototype statement superdiv_prototype.prototype.createdcallback = function(){ this.innerhtml = "init value"; }

osx - Storing keyboard Input in x64 assembly (Mac OS/X) -

i have been trying time number keyboard , comparing value on stack. if correct print "hello world!" , if incorrect, should print out "nope!". however, happens no matter input "jne" called, nope printed, , segfault. perhaps 1 of lend hand. .section __data,__data str: .asciz "hello world!\n" sto: .asciz "nope!\n" .section __text,__text .globl _main _main: push %rbp mov %rsp,%rbp sub $0x20, %rsp movl $0x0, -0x4(%rbp) movl $0x2, -0x8(%rbp) movl $0x2000003, %eax mov $0, %edi subq $0x4, %rsi movq %rsi, %rcx syscall cmp -0x8(%rbp), %edx je l1 jne l2 xor %rbx, %rbx xor %rax, %rax movl $0x2000001, %eax syscall l1: xor %rax, %rax movl $0x2000004, %eax movl $1, %edi movq str@gotpcrel(%rip), %rsi movq $14, %rdx syscall ret l2: xor %eax, %eax movl $0x2000004, %eax ...

java - Android XML Generating NoSuchFieldError -

i updated build.gradle of latest android appcompat libraries , receiving below error message. appears related material design don't understand causing error: 04-18 20:35:57.227 2018-2018/com.sourcey.materialloginexample e/androidruntime: fatal exception: main process: com.sourcey.materialloginexample, pid: 2018 java.lang.nosuchfielderror: no static field abc_ic_ab_back_material of type in class landroid/support/v7/appcompat/r$drawable; or superclasses (declaration of 'android.support.v7.appcompat.r$drawable' appears in /data/data/com.sourcey.materialloginexample/files/instant-run/dex/slice-slice_4-classes.dex) @ android.support.v7.widget.toolbarwidgetwrapper.<init>(toolbarwidgetwrapper.java:91) ...

How does Acumatica calculate LastDateTimeModified -

i have noticed retrieving lastdatetimemodified (through webservice api) acumatica gives me date , time in different time zone - guessing gmt time. however when view through generic inquiry seems showing correct time - based on time zone set in user profile. is there way lastdatetimemodified in correct time zone when retrieving web service api. have attempted changing time zone sdk user no success thanks, g for screens, except few crm screens, lastdatetimemodified , createddatetime stored in same time zone database server machine. when reading using web services, retrieving raw value form database, no timezone conversion. convert desired timezone. the help->audit history panel manual conversion current user time zone. have not been able generic inquiry show time mention in question; showing date.

python - Writing Lines to a Different File -

i reading content file (scores.txt) , have formatted data need , write lines new file. new file writing top_scores.txt. below code desired output. not entirely sure how print file. infile = open('scores.txt', 'r') linelist = sorted(infile.readlines()) lines in linelist: newline = lines.replace('\n', '') splitlines = newline.split(',') studentnames = splitlines[0] studentscores = splitlines[1:] studentslist = [] in studentscores: studentslist.append(int(i)) topscore = max(studentslist) print(studentnames.capitalize() + ': ', studentslist, 'max score =', int(topscore)) sample scores.txt: pmas,95,72,77,84,86,81,74,\n sample desired input new file: pmas: [95,72,77,84,86,81,74], max score = 95\n here correct way achieve want : with open("scores.txt", 'r') infile, open("top_score.txt", 'w') outfile, open("top_score2.txt...

App built with xCode 7.3 won't install on iPhone 4/iOS 7.3.1 -

i have app built , deployed app store xcode 7.3, not install on iphone 4 ios 7.1. supported architectures arm64, armv7, armv7s , ios deployment target set ios 5.1.1. any ideas other settings affect ability of app installed on iphone 4/ios 7.1 when built xcode 7.3. previous versions built xcode 6 worked ok. ok turns out app installing crashing on startup due use of api not supported in older ios 7.1 maximum ios version can upgraded on iphone 4. invalid method being used nsstring contains: one challenge testing on iphone 4 devices testflight doesn't install on devices (testflight needs ios 8.0+) , xcode 7.3 doesn't support download of ios 7.1 simulator build. manual install onto physical device required reproduce.

php - XAMPP - SELECT command denied to user ''@'localhost' for table 'users' -

awhile deleted , messed around functions in xampp. i reinstalled , moved/renamed folder other files have new xampp directory that's empty , fresh. but when try use database functionality gives me error(s) 1 below: select command denied user ''@'localhost' table 'users' what's wrong? thanks. the user has not been given privileges read tables. when creating user database through cpanel of host, can give user privileges. or read documentation through mysql command, http://dev.mysql.com/doc/refman/5.1/en/grant.html