Run/Debug Azure Function App with Local Storage Azurite

4 记录 Leave a Comment
To archive this, you have to have VSCode installed in local machine. Step 1: Install Azurite in VSCode Open VSCode Extensions and search Azurite, install it. Press F1, in command bar, search Azurite: Start, select it then the Azurite will start in your local machine. Step 2: Install Microsoft Azure Storage Expl…

Complete Guide: Sending Emails via AWS SES using SMTP

15 记录 Leave a Comment
While I started to send email via AWS SES, it took me a long time to config it to make it working. So I wrote it down once I success doing it. Here are the important poinits: Verified identities Create SMTP credentials Send email with smtplib Raise ticket to AWS (default the SMTP is in sandbox, you can only sen…

Selenium infinite scrolling to bottom using python

15 记录 Leave a Comment
We have 3 kinds of infinite scrolling to bottom while using selenium. Simply scrolling - Stop until there is no more content. Meet scrolling - Stop until we meet a speciy element. Partial scrolling - Scrolling content in specify html container, stop until there are no more content. All these 3 scenses will use …

How to install OS and connect to NanoPi-R2S (rk3328)

53 记录 Leave a Comment
Official wiki page OS image on Google Drive Install OS Go to google drive, navigate to: 01_Official images/01_SD card images. Download any image, e.g., "rk3328-sd-debian-bullseye-core-5.15-arm64-20230529.img.gz". Unzip it to "rk3328-sd-debian-bullseye-core-5.15-arm64-20230529.img". importat…

What is OpenAI Function Calling and How to Use it?

95 记录 1 Comment
Simply put, OpenAI / ChatGPT function calling can identify the intent and entities in a sentence through a language model. For example, when the user asks "I want to recharge my phone100 USD". The model should recognize the intent recharge and it's 2 entities recharge amont: 100 currency:USD Back to O…

A script to test MySQL port is running

62 记录 Leave a Comment
#!/bin/bash ip="<MySQL HOST>" port="<MySQL PORT>" output_file="<Log File Path>" while : do nc -zv "$ip" "$port" > /dev/null datetime=$(date +"%Y-%m-%d %H:%M:%S") if [ $? -eq 0 ]; then echo "$datetime: Port $port is open on $ip…
Next Page »