Get thousands in repair costs if your vehicle was damaged on the US60 back in November

If you’re like me and live east of the US60 there is a good chance you were driving home one random day in November only to be hit with a barrage of rocks and other asphalt materials. The cause of this was neglect by ADOT when they ripped off the asphalt layer of the freeway and didn’t clean it up properly. If you drove through this you can get the repairs paid for by the state of Arizona. Below is how I filed my claim.

Here are the steps:

  • Fill out this form – NOTICE OF CLAIM AGAINST THE STATE OF ARIZONA
  • Get quotes to fix your vehicle and include them
  • Take a picture of the damage print it out and send it with the form
  • Take a picture of your registration and send it with the form
  • Take a picture of your license plate and send it with the form
  • Google tracks everywhere you go if this feature is turned on using something called Google Maps Timeline. I would include this as well showing travel through the area on that specific day. I don’t know if this is necessary but it makes it a lot harder to refudiate your claim. Here is my sample that I included.
  • Mail all of this to the Attorney General and if he’s not busy playing with nunchucks that day the state will send out an insurance adjuster they will then ask you to sign a form called “RELEASE OF ALL CLAIMS” and if everything checks out you will receive a check in the mail for your repairs.

And last step, cash check.

The annoyance of Arizona politicians endlessly bashing California to pander to Arizona citizens

I’m reading this article tonight on the Wall Street Journal where Mark Brvnovich ignorantly tries to bash California in an attempt to somehow boost his own *accomplishments.

He uses this NRF organized retail crime survey on two occasions to bash California. He states the following:

According to a 2020 survey by the National Retail Federation, three of the top 10 cities affected by organized retail crimes are in California.

We expect our efforts will deter such theft and hope our task force becomes a model for California and other states.

Here is the actual report he’s referencing.

The issue with this report is there’s an almost perfect correlation to the cities impacted by crime and the largest cities by GDP. You can compare the list yourself here.

This clearly isn’t a problem associated to policy as much as it is just a problem that comes with having a successful local economy. Perhaps instead of pointlessly bashing our neighbors to gain political points we could just focus on ourselves? Please Arizona can we just start electing normal human beings to our run our state?

Send SMS alerts from your trading algorithms in Python

Occasionally there may be some important alerts that you want your trading algorithms to send to you that require immediate attention. One that I use frequently is daily account drawdown. Here’s how you can set up Twilio to send you a text message when your account enters a certain percentage of drawdown.

Head over to Twilio

You do need to purchase a number to text from. It costs $1/month. You can find that here.

You’ll now need to go to your general settings page to retrieve your live credentials.

The next step is to install Twilio on your operating system. I use Ubuntu this can be done with the following command

sudo pip3 install twilio

Great now you’re ready to code.

The first thing you want to do is write a simple Python script to test your message sending capabilities. In the below code you’ll want to change a few variables:

account_sid – Change with your Twilio information found on your account page.

Auth_token – Change with your Twilio information found on your account page.

Using the format +19998887777 change to_num to your cell

Using the format +19998887777 change from_num to your Twilio phone number

def send_sms(to_num,from_num,body_message):
    import os
    from twilio.rest import Client

    account_sid = 'Enter your account sid here'
    auth_token = 'Enter your account token here'
    client = Client(account_sid, auth_token)

    try:
        message = client.messages.create(
            to=to_num,
            from_=from_num,
            body=body_message
        )

        print(message.sid)
    except Exception as e:
        print(e)

if __name__ == '__main__':
    send_sms(+14809999999,+17149999999,'test')

Now that we have a function that can send text messages we just need to incorporate this into our code.

Setting up Python algos to run on Ubuntu startup using systemd

If you’re running your trading algorithms on Linux the best way to get them to start on bootup is to use a service called systemd. Here are the steps on setting that up.

Go to:

/etc/systemd/system


Then create a new service as root:



sudo nano trading_algo_23.service


Here is a sample of what the file should look like. You can find your account name by using the command whoami in linux



[Unit]
Description=This algo is designed to hedge...



User=your username
WorkingDirectory=/directory/of/algo
ExecStart=/usr/bin/python3  /directory/of/algo/algo_23.py
Restart=always



[Install]
WantedBy=multi-user.target

Now reload systems

sudo systemctl daemon-reload


Enable the service

sudo systemctl enable

Start your script:

sudo systemctl start trading_algo_23.service


Check the status:

sudo systemctl status trading_algo_23.service

Setting up Python algos to run on Ubuntu startup using crontab

If you’re using Ubuntu or some other flavor of Linux you more than likely want your algorithm to start with the server. This is a pretty straightforward process.

The first thing you’ll want to do is make sure cron is installed

sudo apt-get update
sudo apt-get install cron

Next run crontab -e select nano when it asks which editor. The code below can be used as a template The first two lines are just writing the current date to the log files on reboot so you know when the server was restarted.

@reboot date >> /home/me_jeremywhittaker_com/AAII/log.txt
@reboot date >> /home/me_jeremywhittaker_com/AAII/errors.txt

    

I actually am running two scripts for this particular strategy. Each one gets its own line of code. This basically tells it to run on on startup @reboot then the path to the script to execute,

@reboot /home/me_jeremywhittaker_com/queen_of_stonks/queen_of_stonks_monitor.py >> /home/me_jeremywhittaker_com/queen_of_stonks/logs.txt 2>> /home/me_jeremywhittaker_com/queen_of_stonks/errors.txt 

@reboot /home/me_jeremywhittaker_com/queen_of_stonks/queen_of_stonks_trade.py >> /home/me_jeremywhittaker_com/queen_of_stonks/logs.txt 2>> /home/me_jeremywhittaker_com/queen_of_stonks/errors.txt

That’s it. We can now do a sudo reboot and our scripts should start with our server and save to the log files indicated.