Create, edit, and sync-with-PC txt file on Android

There are many apps that allow us to take notes on android.

But just like this thread (Is it possible to create a plain text file in android?), I want to create and edit plain txt file on android.

But moreover, I also want to automatically sync with a txt file in my PC. Ideally, dropbox. So ideally, I edit txt file on my PC then the edit will sync to my Android phone, and vice versa.

But if this ideal solution (dropbox solution) is not available, then I am fine with less ideal solution which will sync txt with PC.

whenever i do any change in xml file i need to remove pub/static folder then it works

I am trying to do some change in default.xml but whenever i do any change in xml layout i have to clear cache and remove pub/static folder var/cache folder . is there any way to skip these steps and to speedup development. I have tried development mode , production mode but i am not getting any solution of this .server is ubuntu local. and magento 2.3 community is there anything i am able to do to speedup the development process .

Create variable size columns from tab deleminated file

I would like to columnize data from excel. I need to paste the data in a simple text file. Tabs need to be replaced with blanks. What I need is to be able to select the column width.

enter image description here

cat mdhousenames.txt  | column -c7  -s \t  -x 

I can manually do some adjustments.

enter image description here If possible, I’d like to go with native macOS 10.10.5 software. bash terminal is fine.

I’ve seen: but no w3m command. Where is a safe place to download, if this is the only way. but the tabs are a fixed size. Can I make the tabs variable size?

How to read a .txt file in a batch script on a network?

Im making a litle game (im bored) and i want it to work in a LAN network, my map files are in a shared file dans when i try to echo the contents nothing comes out.

Here is the code:

( echo %personage% ) > %path%p1.txt

set /p p1=<%path%p1.txt

set /p p2=<%path%p2.txt

set /p p3=<%path%p3.txt

set /p p4=<%path%p4.txt

set /p p5=<%path%p5.txt

set /p p6=<%path%p6.txt

set /p p7=<%path%p7.txt

set /p p8=<%path%p8.txt

set /p p9=<%path%p9.txt

set /p p10=<%path%p10.txt

set /p p11=<%path%p11.txt

set /p p12=<%path%p12.txt

echo %p1%%p4%%p7%%p10%

echo %p2%%p5%%p8%%p11%

echo %p3%%p6%%p9%%p12%

I hope you guys can help me because i really want to play this game with some classmates when i finish this project.

Thank you for your help in advance.

end of file in c++ not working properly [on hold]

When a beginner starts off reading ifstreams, his/her instinct is to read the file using a loop that usually looks like this:

while (!ifstream.eof()) { ... } 

However, when I used this code I noticed that it didn’t stop until it had read the last line of the file twice. C++ programmers note that this isn’t actually how one should a read a file. Instead, they usually recommend that whoever needs to read a file use a loop like this instead:

while (ifstream >> someVar) { ... } 

Why does the first piece of code always fail to work properly? Could you please write a simple code for illustration?

When I mmap to a file in a mounted storage bucket, how/when is it downloaded?

I’m using a library that mmaps a large resource file. I’m considering storing that resource file in a gcloud bucket and using GCSFuse to make the file available for mmapping, instead of building my own solution to manually download the file.

For performance reasons I want to know when the file is actually downloaded when I mmap to a file in a bucket over gcsfuse: if it’s downloaded all at once when I mmap that’s ideal. If chunks are downloaded as I access different parts of the file via the mmapped pointer I imagine that’s going to be slower due to multiple calls to the bucket, and I’d likely use another method if that is the case.

Python to write multiple dataframes and highlight rows inside an excel file

I am trying to write multiple dataframes into an excel file one after another with the same logic. Nothing changes for any of the data frame, except the number of columns or number of records. The functions are still the same.

For example,

writer = pd.ExcelWriter(OutputName)    Emp_ID_df.to_excel(writer,'Sheet1',index = False) Visa_df.to_excel(writer,'Sheet2',index = False) custom_df_1.to_excel(writer,'Sheet3',index = False) 

Now then, once written I am trying to highlight a row if any of the Boolean column has False value in it. There is no library in anacondas that I am aware of can highlight cells in excel. So I am going for the native one.

from win32com.client import Dispatch #to work with excel files Pre_Out_df_ncol = Emp_ID_df.shape[1] Pre_Out_df_nrow = Emp_ID_df.shape[0] RequiredCol_let = colnum_num_string(Pre_Out_df_ncol) arr = (Emp_ID_df.select_dtypes(include=[bool])).eq(False).any(axis=1).values ReqRows = np.arange(1, len(Emp_ID_df)+ 1)[arr].tolist()  Pre_Out_df_ncol_2 = Visa_df.shape[1] Pre_Out_df_nrow_2 = Visa_df.shape[0] RequiredCol_let_2 = colnum_num_string(Pre_Out_df_ncol_2) arr_2 = (Visa_df.select_dtypes(include=[bool])).eq(False).any(axis=1).values ReqRows_2 = np.arange(1, len(Visa_df)+ 1)[arr_2].tolist()  Pre_Out_df_ncol_3 = custom_df_1.shape[1] Pre_Out_df_nrow_3 = custom_df_1.shape[0] RequiredCol_let_3 = colnum_num_string(Pre_Out_df_ncol_3) arr_3 = (custom_df_1.select_dtypes(include=[bool])).eq(False).any(axis=1).values ReqRows_3 = np.arange(1, len(custom_df_1)+ 1)[arr_3].tolist()  xlApp = Dispatch("Excel.Application") xlwb1 = xlApp.Workbooks.Open(OutputName) xlApp.visible = False print ("\n...Highlighting the Output File at " +'%Y-%m-%d %H:%M:%S'))  for i in range(len(ReqRows)):    j = ReqRows[i] + 1    xlwb1.sheets('Sheet1').Range('A' + str(j) + ":" + RequiredCol_let + str(j)).Interior.ColorIndex = 6 xlwb1.sheets('Sheet1').Columns.AutoFit()                   for i in range(len(ReqRows_2)):    j = ReqRows_2[i] + 1    xlwb1.sheets('Sheet2').Range('A' + str(j) + ":" + RequiredCol_let_2 + str(j)).Interior.ColorIndex = 6 xlwb1.sheets('Sheet2').Columns.AutoFit()   for i in range(len(ReqRows_3)):    j = ReqRows_3[i] + 1    xlwb1.sheets('Sheet3').Range('A' + str(j) + ":" + RequiredCol_let_3 + str(j)).Interior.ColorIndex = 6 xlwb1.sheets('Sheet3').Columns.AutoFit() 

At last, I am changing the name of the sheet

xlwb1.Sheets("Sheet1").Name = "XXXXA" xlwb1.Sheets("Sheet2").Name = "XXXXASDAD" xlwb1.Sheets("Sheet3").Name = "SADAD" xlwb1.Save() 

Now there are a few problems here

1) My number of dataframe increases and which means I am writing up the same code again and again.

2) The highlighting process works but it is too slow. Sometimes 90 % of the rows needs to be highlighted. There are 1 million rows and doing them one after another takes 35 minutes.

Kindly help me with this.