Posts

android - Unable to Build apk after minifyEnabled true -

i want reduce apk size enabled minifyenabled . after enabled minifyenabled got error in gradle console , changes in proguard-rules.pro file i don't want use twitter, facebook, exoplayer code @ unable how let proguard remove these code. but still unable build apk: note: configuration keeps entry point 'com.google.firebase.database.connection.idl.zzaa { void zza(java.util.list,java.util.list,com.google.android.gms.dynamic.iobjectwrapper,long); }', not descriptor class 'com.google.android.gms.dynamic.iobjectwrapper' note: configuration keeps entry point 'com.google.firebase.database.connection.idl.zzaa { void zzn(com.google.android.gms.dynamic.iobjectwrapper); }', not descriptor class 'com.google.android.gms.dynamic.iobjectwrapper' note: configuration keeps entry point 'com.google.firebase.database.connection.idl.zzac { zzac(com.google.android.gms.internal.og); }', not descriptor class 'com.google.android.gms.internal.og' n...

javascript - I have a textbox which I would like to allow my users to switch to a grid when they click a button. Is this possible in asp.net? -

as of have multiline textbox users. users able switch textbox grid layout when click button "switch grid". how can remove textbox , make grid layout appear in same place when click button? if user has inputed textbox/grid-layout, i'm okay inputs getting reset. <asp:textbox id="txtvalue" validationgroup="g1" textmode="multiline" runat="server" style="width:100%; max-width:100%; overflow-x:scroll; height:110px; white-space:nowrap; word-wrap:break-word;"></asp:textbox> you should put grid right after textbox , make grid default hidden css. don't forget assign id grid can grab later using jquery. when user click on switch grid button, have quite simple: first, make textbox hidden , make grid appeared. i've made codepen here `https://codepen.io/trgiangvp3/pen/jyvryj` wiki

node.js - Route using wrong validator in Mongoose -

i'm using postman test routes , route returns err message after user.save((err)=>{}) saying password long. uses passwordvalidator created didn't call route neither in schema. what doing wrong? the user schema in mongoose: const userschema=new schema({ email: { type: string, required: true, unique: true, lowercase: true, validate: emailvalidators}, username: { type: string, required: true, unique: true, lowercase: true, validate: usernamevalidators}, bio: { type:string,default:null,validate:biovalidators}, location: {type:string, default:null}, gender: {type:string,default:null,validate:gendervalidators}, birthday: { type:string,default:null}, password: { type: string, required: true,validate: passwordvalidators} }); the route: router.put('/editprofile',(req,res)=>{ if(!req.body.bio){ res.json({success:false,message:"no bio provided"}); } else{ if(!req.body.loc...

How to capture docker-compose run logs in a cron job? -

i run docker-compose cronjob follows: 05 16 * * * cd /home/apps; docker-compose run service1 sh ./update_all_all.sh /data >>/var/log/works.log i'd capture outputs run works.log, runs, no works.log file, idea how make works? thanks, i have solved problem of capturing compose logs following shell script: docker-compose -d docker-compose logs -t -f --no-color > compose.log & # maybe more before cleaning up... docker-compose stop wiki

Raspberry Pi - start python script automatically with output to TTY console -

i want start script after rpi boots up. configured rpi boot in console mode. script outputs information on display (hdmi) , uses beeper beep @ startup , specific events (when swipe rfid card). during operation, should able stop script pressing ctrl+c. everything works fine if start script console using following command standard user python /home/pi/myproject/myscript.py if launch script /etc/rc.local, script starts, unable stop ctrl c. if start script crontab @reboot python /home/pi/myproject/myscript.py the script executed, have no output on screen. i tried creating service , when check status systemctl indicates active , no error, script not beep or display anything. saved file myproject.service in /etc/systemd/system , content below: [service] workingdirectory=/home/pi/myproject execstart=/usr/bin/python2 /home/pi/myproject/myscript.py execstop=/bin/echo "i stopped" restart=always type=simple standardinput=tty standardoutput=tty ttypath=/dev/tty1 user...

How to use autobean for converting json to java class in GWT -

i have class person in gwt , have sent instance of person servlet converted using gson server client. in client side seems can't use gson . read in forums seems best way using autobeans convert json object person again. however in autobeans can use interface. appreciate if can me write it. a json example server , want convert person class again: {"name":"aaa","family":"fff","username":"uuu","age":20,"phones":[{"id":0,"phonenumber":"0911111"}],"relatives":[null]} public class person implements serializable { private string name; private string family; private string username; private int age; private list<phone> phones; private list<person> relatives; public person() { } public person(string name, string family, string username, int age, list<phone> phones, list<person> relatives) { ...

vb.net - System.Security.Cryptography.CryptographicException: 'Length of the data to decrypt is invalid.' String double spaces -

i have implemented methods in answer encrypt , decrypt string aes encrypt string in vb.net this appears encrypt , decrypt fine strings until string has 2 or more spaces. i.e. 'buzz' - encrypt / decrypt fine (buffer /length = 16) 'buzz aldrin' - encrypt / decrypt fine (buffer /length = 16) 'buzz aldrin astronaut' - encrypt fine / decrypt error (buffer /length = 31) system.security.cryptography.cryptographicexception: 'length of data decrypt invalid.' public shared function aes_decrypt(byval ciphertext string, byval key string) string dim aes new system.security.cryptography.rijndaelmanaged dim sha256 new system.security.cryptography.sha256cng dim plaintext string = "" dim iv string = "" try dim ivct = ciphertext.split(cchar("=")) iv = ivct(0) & "==" ciphertext = ivct(2) & "=="...