plotting a route by coordinates when a button is pressed

I need to make it so that the coordinates of the location where I want to get a route are retrieved from the database, and when I clicked on the button, a route was constructed using these coordinates.Sorry, my English is bad.

In this method:

Uri gmmIntentUri = Uri.parse(“google.navigation:q=Taronga+Zoo,+Sydney+Australia”); Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri); mapIntent.setPackage(“com.google.android.apps.maps”); startActivity(mapIntent);

I mistakengly pressed a “spam button”

I mistakengly press a “spam button”.

And I don’t receive emails for my subscriptions any more.

I contacted them and they send me this link:

Why do I receive messages from complaints@email-abuse.amazonses.com?

It says that

When you receive such an email, you should verify that the complaining recipient is not included in your future email sends. This will ensure that you have happy email recipients and fall under the good graces of Amazon SES.

Now, my question – what can I do to reverse this action?

I need to let Yahoo know that I changed my mind and I need Yahoo to let my subscription webservice know that I want them to send me emails again.

How does it work, where should I start?

Change return to control if pressed with other keys, to return if pressed alone… on Linux

My keyboard setup at home under MacOS uses Karabiner to “Change return to control if pressed with other keys, to return if pressed alone” and it works fine also inside Linux VirtualBoxes.

At work I have a Windows PC and to have the same behaviour I use AutoHotkey with

return::send {lctrl down} return up::send % (a_priorkey = "enter") ? "{lctrl up}{return}" : "{lctrl up}" 

but unfortunately inside Linux VMWares it doesn’t work.

Is there a way to have the behaviour in Linux either passing the keystroke from host to guest or running a remapping tool under Linux?

Determining buttons pressed in python

I am getting an error whenever testing to see which button is pressed on the web page. It seems to work whenever I click on the calculate button. However whenever I click on the buy button it gives me the error shown below. Is there something wrong that I am doing? Please advise.

Error:

    File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1741, in handle_exception reraise(exc_type, exc_value, tb) File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\_compat.py", line 35, in reraise raise value File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1718, in handle_user_exception Open an interactive python shell in this framereraise(exc_type, exc_value, tb) File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\_compat.py", line 35, in reraise raise value File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "C:\Users\Desktop\SD\SoftwareDesignProject\gas-app\app.py", line 133, in fuelQuote if request.form['calculate'] == 'Calculate': File "C:\Users\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\datastructures.py", line 442, in __getitem__ raise exceptions.BadRequestKeyError(key) werkzeug.exceptions.HTTPException.wrap.<locals>.newcls: 400 Bad Request: KeyError: 'calculate' 

Code:

@app.route("/fuelQuote", methods=["GET", "POST"]) def fuelQuote():  if request.method == "POST":      if request.form['calculate'] == 'Calculate':         print("calculate btn pressed")     else:         print("buy btn pressed")    return render_template("fuelQuote.html") 

HTML:

    {% extends "layout.html"%} {% block body%} <div class="container">   <h1>Fuel Quote Form</h1>   <form action="" method ="POST">     <div class="form-group">       <input type ="text" name="gallonsRequested" class="form-control" placeholder="Gallons Requested" required>     </div>     <div>       <p>State: </p>     </div>     <div class="form-group">       <input type ="date" name="delivery-date" class="form-control" value="2019-03-01" min="2019-03-01" max="2019-12-31" >     </div>     <input type = "submit" name= "calculate" value= "Calculate">     <input type = "submit" name= "buy" value= "Buy">   </form> </div> {% endblock%} 

Trackpad/Cursor remains pressed and invisible – Dell i7559 – 18.04

Suspending my laptop and opening it up later leaves my mouse in a perpetual click. I solve this issue by going to my settings and disabling/enabling the track pad (this usually solves it for my session).

However, this bug is occasionally present on the lock screen where I am unable to hit a key and remove the lock screen due to the mouse dragging it. I’ve found that toggling between tty1 and tty2 a few times lets me type on the lock screen and sign in. However, this doesn’t fix my cursor.

Currently, my cursor is only visible on Ubuntu’s top bar and performs its left click if I right click. When in plain view, moving the cursor anywhere else on screen makes it invisible and unresponsive to clicks. When opening the Activity overview, my mouse is visible and I can right click to select a window.

I’ve tried disabling my trackpad with xinput and I have confirmed this issue persists with a physical mouse plugged in as well. I am on a Dell Inspiron 7559 running Ubuntu 18.04.

Thanks in advance.