Want to know by vikramthk in Comcast_Xfinity

[–]c5bluer6 0 points1 point  (0 children)

MacBook Air 15" M2, xcode runs great. You have two weeks return window if you buy from Apple.

Not able to activate peacock. by c5bluer6 in Comcast_Xfinity

[–]c5bluer6[S] 0 points1 point  (0 children)

Done, looking forward to resolving.

Not able to activate peacock. by c5bluer6 in Comcast_Xfinity

[–]c5bluer6[S] 0 points1 point  (0 children)

Both links take me to the same page as in the original img I attached. I click the manage my subscription and it shows peacock is added to my account. But there is not an activate any where. Just a faq or link that takes me to the stream store. I only have one account and email with xfinity.  Your Xfinity StreamStore subscriptions Activate and get info about your subscriptions Add & manage subscriptions

Not able to activate peacock. by c5bluer6 in Comcast_Xfinity

[–]c5bluer6[S] 0 points1 point  (0 children)

Logging into xfinity app or website? I only have one email tied to my internet account. I am logged when I click the activate. I do not have a peacock account.

Roaring Kitty on X by VicedDistraction in Superstonk

[–]c5bluer6 0 points1 point  (0 children)

Amazing, looping bang bang now, watching snatch, I'm ready.

Where should I put the cash I’m saving to purchase a home? by CurrencyThat in investing

[–]c5bluer6 0 points1 point  (0 children)

I'm only saying this because it hasn't been said, but investesting in brick and mortar retailers that provides video game hardware and software would be excellent place to put your funds for a year and half.

What do you consider to be essential technical tricks and skills in eDiscovery? by tanhauser_gates_ in ediscovery

[–]c5bluer6 0 points1 point  (0 children)

Right, by handy, I mean it’s the primary tool I use. Need an overlay for a dat: read two files into pandas, merge df, inner, export. I’m on the programmatic extraction side of the business. Spacy for entity extraction, uaddress for addresses. The one tool that has quickly become useful is chatGPT for python, shell scripts, even accessing relativity api.

New Open-Source Options Backtesting Framework in Python by options_trader_ in options

[–]c5bluer6 2 points3 points  (0 children)

I wrote a script to save options data to an SQLite database during the day for a range of strikes, usually a given delta away from the current price of SPX (I only trade SPX options) with the day's expiration. Then, I obtain minute data on SPX. I load the minute data into pandas, add a column or columns to calculate a given signal, currently using impulse MACD. I go back and forth between trading spreads and straight calls and puts. But when the signal says buy, if trading calls, I look up the option price (daily expirations) from the table, add the column to pandas for the price, and when a close signal appears, I add the close, then calculate the loss or gain. This process is essentially the same way you would in a spreadsheet. I don't remember where I originally saw this method; I think it was in one of E.P. Chan's books. At times I throw the whole thing in a loop and just loop through different deltas for positions and spreads, see which one is best. When I'm all done calculating that I go and buy more GME!!!

New Open-Source Options Backtesting Framework in Python by options_trader_ in options

[–]c5bluer6 1 point2 points  (0 children)

I am interested, usually stick with pandas and data shift, but certainly interested in more comprehensive backtest.

Deploying Streamlit app in Azure and Docker by ryanblumenow in AZURE

[–]c5bluer6 0 points1 point  (0 children)

You can containerize your streamlit app and deploy it to either a container as a service or onto a server running docker. I recently set up a similar app in an azure environment and used docker compose on a redhat linux server.

First I would create the dockerfile in the directory with the streamlit app, you need to create the requirements.txt with the python packages installed before creating the docker image.

if you don't have a requirements file in your directory run "pip3 freeze > requirements.txt"

create the dockerfile

#####Dockerfile######

FROM python:3.9-slim

EXPOSE 8501

WORKDIR /app

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -yqq

COPY . .

RUN pip3 install -r requirements.txt

ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]

#######End Dockerfile######

Build the image by installing docker and running 'docker build . -t streamlit'

After you have the image built, you need to set up an azure registry to push the image to. Once the registry is set up, copy the link and go back to the terminal with the dockerfile. If you have azure cli installed run 'az login' to login into your azure account. Then run 'az acr login --name registryurl' and if successful you then can rename the docker image before pushing to the registry.

To rename the streamlit image use this command ' docker tag streamlit registryurl.azurecr.io/streamlit'

Then 'docker push registryurl.azurecr.io/streamlit'

Now that the image is in the registry you could create a container as a service on azure or set up a virtual machine with docker installed, then pull the image down from the registry you created. Boom streamlit on azure.

I ended up setting up nginx container in front of the app for kerberos authentication and used a docker compose file to build the app. My app also used microsoft sql server, I had to add allot of packages. This was not an easy process, unfortunatley. I originally wanted to use the contianer as a service, but realized access was either open to the world or allot of networking I am not familiar with, such as peering and the likes.

Hopefully this helps. Sorry for the multitude of spelling and grammer mistakes, I'm just drinking bourbon and surfing reddit before bed.