Migrate data to adopted/adoptable storage AFTER adopting process has been finished

How do I migrate, say, /storage/emulated/0/DCIM and /storage/emulated/0/Pictures photo directories from internal to adopted storage “after the fact”, meaning after adopted storage is already set up??

After migration, I expect any program (app) to work against the new location — this I presume is the proper definition of a successful “migration”. What I don’t understand is whether migration of such common data as Pictures is supposed to take place via an app setting, i.e. in an “app-centric” fashion? What I am really looking for is a way to move the data and have all relevant apps/programs still be able to access the data without any further actions.

I have not been able to find any menu or mechanism for doing this. I have root and shell access on a moto-e4 android 7.1.1 N Nougat.

I can’t continue where I finished

First of all I’m a kid who found this code as a base for me and then I edited it but then whenever I load it the first time and teach it, it will save the pickled data but at the second time the data loads but it doesn’t work. Needs help to learn… Thanks in advance

code:

import random import os.path import pickle import os startmes = """Place #help to learn more. DO NOT USE CAPS OR SPECIAL CHARACTERS! Only small letters.""" helpmes = """This is the help message for Everyone.  In order to communicate with Ivy, simply type what you want to say into the input space. When typing please use only lower case characters and no special characters.  So this:  "I like turtles!"  Becomes this: "i like turtles"  The reason for this is that otherwise you would have many entries that are  copies of the same word, ie Hey, hey, hey! and Hey all mean the same thing but would be entered differently.But you can use it in proper words.  Sometimes what Ivy says can be hard to interpret, but keep trying and use your imagination.  """ class bot():     def __init__(self, autosave, deldups, autocount, maxwords, maxresp):         self.autosave = autosave         self.autocount = autocount         self.deldups = deldups         self.maxwords = maxwords         self.maxresp = maxresp         self.known = {}         self.wordcount = 0         self.sescount = 0         os.system("C:\Downloads\Ivy\known.data")         print(startmes)         if os.path.isfile("known.data"):              def main():              f = open("known.data","w+")             print("Save file loaded!")         else:             print("No save file found.")         print()         for key, value in self.known.items():             self.wordcount += 1     def question(self, x):         self.wordcount += 1         a = "w" + str(self.wordcount)         d = {"name": x, "resp": [x], "uses": 0}         self.known[a] = d     def talk(self):         talking = True         prevres = ""         while talking:             if self.autosave:                 self.sescount += 1                 if self.sescount >= self.autocount:                     self.sescount = 0                     pickle.dump(self.known, open('known.data', 'wb'))                     print("Saving...")             if self.deldups:                 for key, value in self.known.items():                     value["resp"] = list(set(value["resp"]))             if len(self.known.keys()) > self.maxwords:                 count = 0                 for key, value in self.known.items():                     count += value["uses"]                 for i in range(self.wordcount):                     for key, value in self.known.items():                         if value["uses"] <= count/self.wordcount:                              self.wordcount -= 1                             self.known.pop(key, None)                             break             for key, value in self.known.items():                 if len(value["resp"]) > self.maxresp:                     rem = random.choice(value["resp"])                     value["resp"].remove(rem)                 res = ""              a = input("You: ")             if "#" in a:                 if "quit" in a:                     pickle.dump(self.known, open('known.data', 'wb'))                     print("Saving...")                     exit()                 if "help" in a:                     print(helpmes)                 a = ""              data = prevres.split(" ")             inp = a.split(" ")              for x in data:                 for key, value in self.known.items():                     if x == value["name"]:                         value["resp"].extend(inp)             for x in inp:                 if a == "":                     break                 names = []                 for key, value in self.known.items():                     names.append(value["name"])                 if x not in names:                     self.question(x)                 else:                     for key, value in self.known.items():                         if x == value["name"]:                             xyz = random.randrange(0,4)                             for i in range(xyz):                                 res = res + " {0}".format(random.choice(value["resp"]))                                 value["uses"] += 1             if res == "":                 res = " ..."             print("Ivy:{0}".format(res))             prevres = res sauce = bot(True, True, 25, 1000, 15) sauce.talk() 

Ubuntu 18.04 “Bootup is not yet finished. Please try again later.” error

My Ubuntu 18.04 takes too long to boot up (about minute or so). I found that it’s possible to find out the reason using systemd-analyze, but all it gives me is Bootup is not yet finished. Please try again later. The system runs normally, but even after hour and more, the boot up is still not finished. Is there a way to find out what is not loaded?

How can I tell when `rescanblockchain` is finished?

Rescanning the blockchain can take some time. How can I tell (via RPC) when the rescanblockchain command has finished? Will it block until it’s done, and only then return? Or is there another RPC I can use to see its progress?

Does the same answer apply to other RPC calls that might trigger a rescan, such as importmulti and loadwallet?

I’m worried about (if it blocks) the user experience of sitting there for possibly minutes with no progress indication; or (if it doesn’t block) future RPC calls (such as getbalance) getting stale info before the rescan has completed.

Magento 2.2.7 cron job issue finished without completed

We have added the following lines to the crontab file to run magento cron after every 1 minute.

enter code here 
          • /bin/php -c /etc/php.ini /home/centos/public_html/staging/bin/magento cron:run > /home/centos/public_html/staging/var/log/magento.cron.log&
          • /bin/php -c /etc/php.ini /home/centos/public_html/staging/update/cron.php > /home/centos/public_html/staging/var/log/update.cron.log&
          • /bin/php -c /etc/php.ini /home/centos/public_html/staging/bin/magento setup:cron:run > /home/centos/public_html/staging/var/log/setup.cron.log&

We have created cron job for our module under magento default group which is to be executed after every 30 minutes.

*/30 * * * *

But when we check in cron_schedule table and in our logs, cron job finished after 1 minute without executing completely. Please refer to below screenshot:-

enter image description here

We have tried using flock in crontab, checked the server timings but nothing worked.

Please advise. Thanks.

I finished personal project, I would like some help cleaning it up and making look nicer, and easier to work with

I just finished working on a personal project, it is a sort of email type program where you create an account and you can message people, the code works(as far as I’m aware) but it is not clean, different areas have different indents, i add more variable than I need, I print things that don’t need to be printed and probably way more than that.

( I realise that it will say import getpass ,and have nothing for it in the code , that is because i forgot to change the password inputs to getpass inputs before putting it on my drive. )

If anyone is willing to help or give advice that would be gratefully appreciated…

Thanks, King

Where the code is located in your files you need a folder called Data with txt files: accountIDs, addCommandList, isAdmin, names, nicknames, passwords. a folder called messages in it a folder called received.

import random from random import * import datetime import string import os import getpass global usernames global passwords global jointPassList usernames = [line.strip()for line in open('Data/names.txt', 'r')] passwords = [line.strip()for line in open('Data/passwords.txt', 'r')] isAdmin = [line.strip()for line in open('Data/isAdmin.txt', 'r')] accountIDs = [line.strip()for line in open('Data/accountIDs.txt', 'r')] nicknames = [line.strip()for line in open('Data/nicknames.txt', 'r')] jointPassList ='\n'.join(map(str, passwords))  def main():                 print('\n')                 print('\n')                 print('/help (1/2) for help')                 currentUserIndex = usernames.index(ascname)                 command =input('>>>')                 if command =='/help':                                  print('/signout       | sign out\n/details        | account details\n/setpas        | set password\n/userlist     | all users\n/mymessages | your messages\n/message | message\n/addcommand | add command')                                 input()                                 main()                 if command =='/details':                                  print('Name:      ', ascname)                                 print('AccountID: ', accountIDs[currentUserIndex])                                 print('Nickname:  ', nicknames[currentUserIndex])                                 input()                                 main()                 if command =='/setpas':                                  newpas =input('Enter your new password: ')                                 passwords[currentUserIndex] = newpas                                 jointPassList ='\n'.join(map(str, passwords))                                 openfile =open('Data/passwords.txt', 'w')                                 openfile.write(jointPassList)                                 openfile.close()                                                       input()                                 main()                 if command =='/userlist':                                 userlist =open('Data/names.txt').read()                                 print(userlist)                                 input()                                 main()                 if command =='/message':                                 whatuser =input('What user: ')                                 if whatuser in usernames:                                     message =input('What message would you like to send: ')                                     openfile =open('Data/messages/recieved/'+whatuser+'.txt', 'a')                                     date = str(datetime.datetime.now())                                     openfile.write(date + ' : ')                                     openfile.write(message+'\n')                                     openfile.close()                                     input()                                     main()                                  elif whatuser not in usernames:                                                 print('Nobody was found.')                                                 input()                                                 main()                  if command =='/mymessages':                                 messagesList = [line.strip()for line in open('Data/messages/recieved/'+ascname+'.txt', 'r')]                                 messages = '\n'.join(messagesList)                                 print(messages)                                 input()                                 main()                  if command =='/addcommand':                                 openfile =open('Data/addCommandList.txt', 'a')                                 addcommand =input('What would you like see added to this database: ')                                 openfile.write(addcommand+'\n')                                 openfile.close()                                 input()                                 main()                  if command =='/admin':                                 print(isAdmin[currentUserIndex])                                                                if isAdmin[currentUserIndex] =='True':                                                 print('Nice :)')                                                 input()                                                 main()                                  elif isAdmin[currentUserIndex] =='False':                                                 print('You are not an Admin')                                                 change =input()                                                 if change =='False':                                                                 isAdmin[currentUserIndex] = True                                                                 main()                                                 else:                                                                 main()                                  if isAdmin[currentUserIndex] =='False':                                                 delete =input('Are you sure you would like to delete your account: ')                                                 if delete =='y':                                                                 accountIDs.remove(accountIDs[currentUserIndex])                                                                 isAdmin.remove(isAdmin[currentUserIndex])                                                                 usernames.remove(usernames[currentUserIndex])                                                                 passwords.remove(passwords[currentUserIndex])                                                                 nicknames.remove(nicknames[currentUserIndex])                                                                 os.remove('Data/messages/recieved/'+ascname+'.txt')                                                                 openfile = open('Data/names.txt', 'w')                                                                 openfile.write(name + '\n')                                                                 openfile.close()                                                                  openfile = open('Data/accountIDs.txt', 'w')                                                                 openfile.write(str(accountID) + '\n')                                                                 openfile.close()                                                                  openfile = open('Data/nicknames.txt', 'w')                                                                 openfile.write(nickname + '\n')                                                                 openfile.close()                                                                  openfile = open('Data/passwords.txt', 'w')                                                                 openfile.write(password + '\n')                                                                 openfile.close()                                                                  openfile = open('Data/isAdmin.txt', 'w')                                                                 openfile.write(adminFalse + '\n')                                                                 openfile.close()                                                                 print('Complete...')                                                                 signin()                   if command =='/signout':                                  areYouSure =input('Are you sure you would like to sign out(y/n): ')                                 if areYouSure =='y':                                                 print('Signing out\n.\n.\n.')                                                 signin()                                 elif areYouSure =='n':                                                 main()                                 else:                                                 main()                   else:                                 print(command, 'is not a command in our library, type /addcommand to request new command.')                                 input()                                 main()  def signin():                 existingAccount =input('Do you have an existing account (y/n): ')                 if existingAccount =='y':                                 global ascname                                 global ascpass                                 ascname =input('Enter your username: ')                                 currentUsername = ascname                                 if ascname in usernames:                                                 userIndex = usernames.index(ascname)                                                 print('Correct username.')                                                 ascpass =input('Enter your password: ')                                                 while ascpass in passwords:                                                                 passcheck = passwords.index(ascpass)                                                                 if userIndex == passcheck:                                                                                 print('welcome back', ascname + '.')                                                                                 main()                                                                  else:                                                                                 wrongPass =input('Incorrect password.')                                                                                 input()                                                                                 signin()                                                 print('Yes')                                                 wrongPass =input('Incorrect password.')                                                 input()                                                 signin()                                 elif ascname not in usernames:                                                 wrongName =input('Incorrect username.')                                                 input()                                                 signin()                                 else:                                                 #debuging                                                 print('Error')                                                 singin()                  elif existingAccount =='n':                                 name =str(input('Enter your name: '))                                 while len(name) == 0:                                                 name =input("You haven't entered anything, try again.")                                                 input()                                                 signin()                                 if name in open('Data/names.txt').read():                                                 name =input('That name already exists.')                                                 input()                                                 signin()                                 usernames.append(name)                                 password =input('Enter your new password: ')                                 while len(password) < 4:                                                 password =input('Your password must be 5 characters long.')                                                 input()                                                 signin()                                 passwords.append(password)                                  nickname =input('Enter your nickname: ')                                 accountID =random()                                 while accountID in accountIDs:                                                 accountID =random()                                  adminFalse = str(False)                                 isAdmin.append(adminFalse)                                  openfile = open('Data/messages/recieved/' +name+ '.txt',  'w+')                                 openfile.write('\n')                                 openfile.close()                                  openfile = open('Data/names.txt', 'a')                                 openfile.write(name + '\n')                                 openfile.close()                                  openfile = open('Data/accountIDs.txt', 'a')                                 openfile.write(str(accountID) + '\n')                                 openfile.close()                                  openfile = open('Data/nicknames.txt', 'a')                                 openfile.write(nickname + '\n')                                 openfile.close()                                  openfile = open('Data/passwords.txt', 'a')                                 openfile.write(password + '\n')                                 openfile.close()                                  openfile = open('Data/isAdmin.txt', 'a')                                 openfile.write(adminFalse + '\n')                                 openfile.close()                                    signin()                  else:                                 signin()  signin() 

I just finished working on a personal project, it needs cleaning

I just finished working on a personal project, it is a sort of email type program where you create an account and you can message people, the code works(as far as i’m aware) but it is not clean, different areas have different indents, i add more variable than i need, i print things that dont need to be printed and probably way more than that.

( I realise that it will say import getpass ,and have nothing for it in the code , that is because i forgot to change the password inputs to getpass inputs before putting it on my drive. )

If anyone is willing to help or give advice that would be gratefully appreciated…

Thanks, King

Link to code and files : https://drive.google.com/drive/folders/1XJIdSHMjrL-lDmXo1SwZgKP14lXzXVO3?usp=sharing

import time     while True:      print('Thank you')      time.sleep(0.01) 

500 directories will be finished less than 24 hours for $5

Welcome to my Services… Hello There… Are you want to Rank your website on Google 1st Page??? If your answer is “Yes” you must create some Backlinks for your Website. It is a Effective service for you because Backlinks can be a treasure trove for your business or website providing you with high-converting traffic or high page rank Backlinks. It is very essential for business or website. After submission i will send you an excel file with all Documents or current status of submission, owner name, and detailed report. Why Me??? Only I can give you Some Guarantees:- 100% Satisfaction Guarantee100% Money back Guarantee

by: rashiq1987
Created: —
Category: Directory Submission
Viewed: 138


Already finished 89 confirmation still not received in my Electrum 2fa wallet

I sent Bitcoin from localbitcoin wallet to my electrum wallet. Now it’s 89 confirmation done. But still now it’s not arrived in my wallet. Please help. Thank You Electrum wallet address :- 3FE82ud16Zgts5gWR8zP7CgxHGLaHqxJWr … Txid:-5c6527b1a3b1d99a03c140907c00b0953083bdb3af1a3e7587549ddd9a230ac0enter image description here

Entering Labels in a finished Python project [on hold]

How can make my labels editable in a finished project? i created this Sales management system with Python (I used Pygame, tkinter), as main libraries, i am happy with the results, but the problem is: 1. The Labels can only be changed within the code! – How do i change that? 2. it doesn’t look as nice, how do i make it look dashing?

Just to be more Clear, the products that are for sale on this app/system, are static, so if I was to give the setup of this app to some other person, I would have to enter his/that person’s product within the code, and later on he cannot change it!

How can I improve this?