Posts

python - Kivy remote shell. Getting APK 'parse error' on Android device -

i followed instructions here building kivy-remote-shell apk , builds without errors. however, when try install apk on device, error message, parse error: there problem parsing package i don't know that, suggestion? make sure that: the apk signed, @ least own certificate. you apply "zipalign" package. "zipalign" tool part of sdk. command line like: zipalign 4 infile.apk outfile.apk , see http://developer.android.com/tools/help/zipalign.html

Sharepoint Reminder Email -

i have sharepoint list , want send out reminder same people once month them update it. automated out of sharepoint. there simple way this? list of folks receiving email static. mike you can create designer workflow pause 1 month before sending email , again pause 1 month before sending again. can add pause in loop never ends.

regex - Use sed to match end of line NOT preceded immediately by a certain character -

i have set of lines followed '\' want print line not containing '\' character @ end of line. note xx# yy# change per file , re-usable, want script print lines match1 '\' end of line. match1 xx1 xx1 xx1 xx1 \ yy1 yy1 yy1 yy1 \ zz\<1\> zz1 zz1 zz1 xx2 xx2 xx2 xx2 \ ... output should be: match1 xx1 xx1 xx1 xx1 \ yy1 yy1 yy1 yy1 \ zz\<1\> zz1 zz1 zz1 my best effort came with: sed -n '/match1/,/\\/p' file but not work. or suggestions appreciated. the following command want: sed -n '/match1/,/[^\\]$/p' file using ^ @ start of character class negates match. following glenn jackman's great comment above solution has little problem. since [^\\] requires @ least 1 character not work if first line not ends \ empty line. let me add solution should preferred one: sed -n '/match1/,/\(^\|[^\\]\)$/p' file

php - Laravel 5.1 Wildcard Route -

i'm creating cms allows user define categories. categories can either have additional categories under or pages. how can create route in laravel support potentially unlimited number of uri segments? i've tried following.... route::get('/resources/{section}', ['as' => 'show', 'uses' => 'mastercontroller@show']); i tried making route optional... route::get('/resources/{section?}', ['as' => 'show', 'uses' => 'mastercontroller@show']); keep in mind, section multiple sections or page. first, need provide regular expression used match parameter values. laravel router treats / parameter separator , must change behaviour. can that: route::get('/resources/{section}', [ 'as' => 'show', 'uses' => 'mastercontroller@show' ]) ->where(['section' => '.*']); this way, whatever comes after /reso...

javascript - How to allow user to try a different email after failure in NodeJS PassportJS? -

currently checking whether or not user has domain name email address using following code. initially, when google authentication window shows, there no option user change email address if logged chrome. when log similar sites google authentication, seemingly recalled being allowed add email address, or of nature. so, user attempts log on non-lsmsa.edu email address , fails. displays nasty error. how make such user allowed attempt re-login different email address. if ( profile.emails[0].value.indexof("lsmsa.edu") > -1 ) { var newuser = new user() newuser.google.id = profile.id newuser.google.token = token newuser.google.name = profile.displayname newuser.google.email = profile.emails[0].value newuser.save(function(err) { if (err) throw err return done(null, newuser) }) } else { done(new error("invalid domain. must use lsmsa email address.")) } check out hd parameter . makes sure user can sign...

xaml - Bound Item To DependencyProperty Not Propagating Value -

this property defined inside custombutton: public bool ison { { return (bool)getvalue(isonproperty); } set { setvalue(isonproperty, value); if (ison) visualstatemanager.gotostate(this, "on", true); else visualstatemanager.gotostate(this, "off", true); } } public static readonly dependencyproperty isonproperty = dependencyproperty.register("ison", typeof(bool), typeof(imagebutton), new propertymetadata(false)); in xaml bound boolean list below: ison="{binding sender.ispinned, mode=oneway}" and sender.ispinned raises propertychange public bool ispinned { { return _model.ispinned; } set { _model.ispinned = value; raisepropert...

How to Compare Information in csv file with Python? -

i'm working on csv file. have different columns, each corresponding information of dataset. suppose file contain each line: name information1 information2 information3 -for lines having same name , information1 , 2 have compute mean inf3 this piece of code stopped: col_a=[row[1] row in file] in col_a: currentrow=col_a[1] nextrow=col_a[2] in range(0,len(col_a)): if (currentrow)==set(nextrow):??? i started months ago programme, please understand difficulties. i still struggling understand needed, here goes. following script first blocks groups of rows first column matches, e.g. 3 "aaa" rows. for each block locates rows have matching columns of interest. if 2 or more found, average calculated on them. import collections file = [ ["aaa", "3", "x", "g", "b", 4], ["aaa", "4", "e", "r", "t", 3], ["aaa", "3",...