python – Hide / Restore the file

I try to save this file so that I can open it later, but it saves the file as hidden / locked (the file is padlocked, ie in Ubuntu). Could you help me solve this or put together another mode that exposes you to the csv file for download.

                @ app.route ("/ downloads /", method =['GET', 'POST'])
def orac_detal ():
global dates, listFlick, namesExpendables, df
& # 39; 0 # 39; & # 39; & # 39; & # 39 ;: 0, & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39; & # 39;

m = np.zeros ((156,96))



for shop in stores:
if os.path.isfile ("./. pickles / orcamentoAux _" + str (store) + ". pickle"):
with open (r "./. pickles / orcamentoAux _" + str (store) + "pickle", "rb") as an input file:
foo = pickle.load (input file)
Dates = Foo['datas'] # list with all dates as the header of the worksheet
listComTudo = foo['listaComTudo'] # list list, where each internal list contains the data of an output
namesExpenses = foo['nomesDespesas'] # List with the name of all issues that are inserted at the end with the put function in the first column


for i in range (len (fullList)):
m[i] + = complete list[i]

                for i in range (len (fullList)):
namesExpendables[i] = namesExpendables[i].replace (",", "")
List full[i] =[namesExpendables[nomesDespesas[namesExpendables[nomesDespesas[i]]+ list comment[i]

                Dictionary = {}
for i in range (len (namesExpendables)):
key = namesExpendables[i][23:]
                    
                    
                    
                    dictionary[chave] m[i]  

                df = pd.DataFrame.from_dict (date = dictionary, Orient = & # 39; index & # 39 ;, columns = date)

Return df.to_csv (& # 39; digital_expenses.csv & # 39 ;, mode = & # 39; w & # 39;
def return_files_tut ():
Try:
return send_file (& # 39; / home / orbistec2 / delphos_3.0 / issues_detal.zip & # 39 ;, attachment_filename = & costs_detal.csv & # 39;
Exception exception as e:
return str

Javascript – Hide menu when squeezing

I saw a simple responsive menu that I would like to place in my blog, but I have no idea about Javascript. Although it looks very cute, I see that it is uncomfortable not to hide when you click outside or when you click with the mouse Do not be on it. Any solution?

The original code is the code published in w3schools.com and is as follows:

    
   

 

 

  

7 – Show view if empty, and Hide view if not empty!

I have a web form as a block that sets a value associated with the logged in user. I want to display the web form if it has not yet been filled out by authenticated users, and hide it if it already exists (based on whether the value was set or not).

I thought I could do this by using views with the Views block area to display the web form as a block if no result exists. But I want to hide the view if there is a result that seems impossible?

If someone can suggest how I can achieve this, he does not necessarily have to use views.

Show / hide Javascript, which stops sending a PHP form

I have a PHP code that has javascript pointing and hiding two input fields when a certain selection option is selected and only the form is tested and nothing happens when I click the submit button. I thought I commented out javascript just to see if the form works and the form works if the javascript encoding is commented out. However, if I leave them uncommented, the form will not work. The coding is below


<
& nbsp;
& nbsp;
& nbsp;
& nbsp;

Code (markup):

Below is the javascript encoding that prevents the form from working



Code (markup):

The PHP encoding for the form can be found below





<? php
$ email = $ _POST['email'];
// disinfect e-mail address
$ email = filter_var ($ email, FILTER_SANITIZE_EMAIL);
// Confirm email address
$ email = filter_var ($ email, FILTER_VALIDATE_EMAIL);
if (! $ email) {
echo "Invalid sender e-mail";
} else {
$ to = & # 39; email address & # 39 ;;
$ subject = & # 39; New Website Booking & # 39 ;;
$ fullname = $ _POST['fullname'];
$ email = $ _POST['email'];
$ Phone number = $ _POST['phonenumber'];
$ noofpassengers = $ _POST['noofpassengers'];
$ triptype = $ _POST['triptype'];
$ pickup = $ _POST['pickup'];
$ pickupdate = $ _POST['pickupdate'];
$ pickuptime = $ _POST['pickuptime'];
$ destination = $ _POST['destination'];
$ returndate = $ _POST['returndate'];
$ returntime = $ _POST['returntime'];
$ otherinfo = $ _POST['otherinfo'];

$ headers = & # 39; From: & # 39 ;. $ email. " r  n";
// E-mail of the sender
// Message lines should not be longer than 70 characters (PHP rule), so wrap them up
$ message = & # 39; A new booking has been placed. Below is the info #. " r  n  r  n". # Name: & # 39; , $ fullname. " r  n". & # 39; Email: & # 39; , $ email. " r  n". "Phone:". $ Phone number " r  n". 'Passengers: & # 39; , $ noof passengers. " r  n". & # 39; Beach & # 39 ;. $ triptype. " r  n". From: & # 39; , Pickup. " r  n". & # 39; pickup date: & # 39; , $ pickupdate. & # 39; at & # 39; , $ pickuptime. " r  n". # Destination: & # 39; , $ Target " r  n". & # 39; return date: & # 39; , $ return. " r  n". & # 39; return time at: & # 39 ;. $ Return time. " r  n". & # 39; Other information: & # 39; , $ otherinfo;
// send mail via PHP mail function
if (mail ($ to, $ subject, $ message, $ headers)) {
echo "Thank you for your booking, your booking is being processed and a member of our team will call you for confirmation.";
Echo "

"; Echo "At home"; } else { echo "The booking could not be processed. Please try again."; Echo & # 39;Go back& # 39 ;; Exit ; } // second mail //// $ to = $ email; $ subject = & # 39; your booking is being processed & # 39 ;; $ message = & # 39; Thank you for your booking. A member of our team will call shortly for confirmation. Below is your booking. & # 39; , " r n r n". # Name: & # 39; , $ fullname. " r n". & # 39; Email: & # 39; , $ email. " r n". "Phone:". $ Phone number " r n". 'Passengers: & # 39; , $ noof passengers. " r n". & # 39; Beach & # 39 ;. $ triptype. " r n". From: & # 39; , Pickup. " r n". & # 39; pickup date: & # 39; , $ pickupdate. " at the " . $ pickuptime. " r n". # Destination: & # 39; , $ Target " r n". & # 39; return date: & # 39; , $ return. " r n". & # 39; return time at: & # 39 ;. $ Return time. " r n". & # 39; Other information: & # 39; , $ otherinfo; $ headers = & # 39; From: Email Address & # 39 ;. " r n". "Reply to: e-mail address". " r n". # X-Mailer: PHP / 39. phpversion (); mail ($ to, $ subject, $ message, $ headers); } ?>

Code (markup):

How can I solve it so Javascript is maintained and the PHP form works as I can not figure it out

thank you in advance
SEMrush

java – How can I show and hide the password of the Edittext password?

This is my Android XML design to introduce passwords
Enter the description of the image here

What I am trying to do is to program two icons in the same edit text to see and hide the password. This will always display the password when you click and enter it. If I want to hide, I click on the icon and it is reversible, if I want to have it again To see me again, click on the icon
Enter the description of the image here
Enter the description of the image here