Posts

c++ - How to make statifier work on 32-bit system? error loading libc.so.6 -

i've jun fresh new 32-bit ubuntu distribution , installed statifier usual(make all, make install). after tried statify compiled(on device) program. after it, i've got error message: /lib/ld-linux.so.2 --library-path /lib /bin/ln -s /lib/libc-2.5.so /lib/libc.so.6 what actions should make statifier work in case? here additional error code: ld_assume_kernel=4.10.0 statifier async_record_test async_record_static /usr/lib/statifier/32//elf_symbols: can't open '/lib/ld-linux-armhf.so.3' file. errno = 2 (no such file or directory) /usr/lib/statifier/32//elf_data: can't open '/lib/ld-linux-armhf.so.3' file. errno = 2 (no such file or directory) /usr/lib/statifier/32//elf_data: can't open '/lib/ld-linux-armhf.so.3' file. errno = 2 (no such file or directory)

swift3 - html swift 3 uikit link inside webview -

i have build simple intro page external links. , dont know how write external links, i'm trying on code below not working. secondly how can add more css. thanks! import uikit class viewcontroller: uiviewcontroller { @iboutlet weak var mywebview: uiwebview! override func viewdidload() { super.viewdidload() // additional setup after loading view, typically nib. let webview = uiwebview() mywebview.loadhtmlstring("<html><body><center><img src=\"logo.png\"><h1 style=\"font-family: helvetica\">faithway center</h1><h2 style=\"font-family: helvetica\"><a href=\"https://www.myhealthmatters.co.uk\">test</a></h2></body></html>", baseurl: nil) } override func didreceivememorywarning() { super.didreceivememorywarning() // dispose of resources can recreated. } }

r - What is -c and nrow doing in body of function -

can please explain me what bdf <- by(bdf, bdf$serial_number, function(sn, k) { sn[-c(1:k, (nrow(sn)-k+1):nrow(sn)),] }, k = 10) is doing? by() splits data frame bdf second argument serial_number , applys function function(sn, k) in third argument. don't understand body of function. c() creates vector. - makes numbers in vector negative. vector in "row" position of [ , omitting rows 1 k , , nrow(sn) - k + 1 end of data frame. it's chopping off first k , last k - 1 rows of data frame.

android - Firebase serialization names -

Image
i created object send data firebase. example, use firebase user example: public class user { public string username; public string email; public user() { // default constructor required calls datasnapshot.getvalue(user.class) } public user(string username, string email) { this.username = username; this.email = email; } } i want encode property names sent firebase. keys sent using variable names. want encode keys useraname , email , gson doing. don't want change variable names. @serializatename("username") public string username; @serializatename("username") public string email; i used @serializatename() , not working. same @propertyname used firebse, not working. can use in order serializare custom keys? update 1 public class pojo { @propertyname("guid") public string guid; @propertyname("name") public string name; public string getpojoguid() { retu...

c# - Cross-Origin Requests WebApi -

i reading https://docs.microsoft.com/en-us/aspnet.... security prevent ajax requests domain , makes me wonder, if enable this, able make request android client? cu'z seems outside of domain, can't requested. it? thanks! would like: context.owincontext.response.headers.add("access-control-allow-origin", new[] { "*" }); using (iuserrepository _repository = new userrepository(new data.datacontexts.oauthserverdatacontext())) { var user = _repository.authenticate(context.username, context.password); if (user == null) { context.seterror("invalid_grant", "the user name or password incorrect."); return; } } if making request domain need set access-control-allow-origin header. can use * if aren't concerned security it's best specify domains know need access. non-browser-based clients may not send origin header (e.g...

google spreadsheet - copy cell range and paste below -

i have google sheet names "queue tracker" , in tab named "compiled dispositions". auto select , copy multiple ranges (which contain formulas) , paste "n" number of rows below. n can 100 or 1000 or 3000. the ranges select , copy : b3:k3, m3:v3, x3:ag3, ai3:ar3, at3:bc3, be3:bo3, bq3:bz3, cb3:ch3, ck3:cp3, cs3:cx3, da3:df3 i don't believe it's possible access multiple range selections google apps script. using active selections won't work. treats selected ranges 1 range in null out unwanted columns. not planning on copying areas populated dated. haven't tested can use starting point. give chance know our script editor , debugger. function copyyourrowtorange(row, numrows) { var leaveblank=['0','11','22','33','44','55','67','78','86','87','94','95','102','103']; var ss=spreadsheetapp.getactive(); var sht=s...

Is it possible to use the third party plugins or modules which feature or plugins are not available in Nativescript official plugins? -

is possible use third parties plugins features not avail in nativescript official plugins. like angular-trix angularjs- " http://sachinchoolur.github.io/angular-trix/ " if possible means how should achieve? thank reading, looking forward reading responses! this bit of crosspost https://discourse.nativescript.org/t/can-i-use-non-nativescript-specific-third-party-plugins/2054/2 , here's duped answer well: usually answer yes, in specific case, according github account library angular 1 - not supported nativescript.