What is PAL in LangChain? Could LangChain + PALChain have solved those mind bending questions in maths exams? This video shows an example of the "Program-aided language model" and covers the whitepaper on PAL.
"PAL" is a novel approach that uses the LLM to read natural language problems and generate programs as the intermediate reasoning steps, but offloads the solution step to a runtime such as a Python interpreter."
I use a mains power adaptor to power my Arduino NANO instead of USB from the PC.
This is a 12v 1.5A supply which I connect to my NANO using a connector and then solder it to Vin and GND on the NANO.
** Please read this if you are unsure of your power supply :
https://forum.arduino.cc/index.php?topic=493694.0
Traffic Light electronics demo on breadboard shown as well.
ARDUINO MEGA 2560 REV3 : https://amzn.to/2MM0k3E
NEMA 17 Stepper Motor : https://amzn.to/2nMDtN1
Filmora : https://amzn.to/2VIBvKh (That's what this video was made with)
#Nano #Arduino #PowerSupply
Check out the Minimalist online python IDE :
https://epyco.herokuapp.com/
https://epico.herokuapp.com/
Buy Dr Pi a Coffee...or Tea! : https://www.buymeacoffee.com/DrPi
...
https://www.youtube.com/watch?v=WZq8g782Sl8
Make DOCX (Word) files - multiple files using Python and a Template file.The template file is a DOCX with the field names of the CSV written into the template with {{ column name }} and additionally: some IF LOGIC to alter the text based on values in the cell of the CSV file.
Note: I use the same python code here as per previous project, the only thing that changes here is the "if" in the TEMPLATE docx file.
◉ This was a request from a subscriber, which was good as it was something I hadn't thought of using before.
◉ My code is based on using : "python-docx-template" written by Eric Lapouyade
◉ pip install docxtpl
◉ "from docxtpl import DocxTemplate"
Get all my code from :
◉ https://redandgreen.co.uk/github/
The code for this project from:
◉ https://github.com/RGGH/pydoc/tree/master/conditional
Don't forget to...Sub....Sub....Subscribe..
☕️☕️☕️ Buy Dr Pi a Coffee...or Tea! : https://www.buymeacoffee.com/DrPi ☕️☕️☕️
...
https://www.youtube.com/watch?v=0UvAXp9_6Jc
"Pearson VUE delivers high-stakes exams that empower professions to certify" - but they have poor customer service - watch for a full review of the exam process and the 'proctor'...
Pearson Vue Online Exam Review. How to get certifications online.
In an effort to stay up to date across a range of technologies I decided to take the Oracle OCI foundations exam. Find out what happened...
The scenery in the background is a Canal in the south of England. I hope you enjoy it.
== chapters ==
00:00 Intro
03:14 Booked it
08:07 Unplugged power cables
14:50 A note to Pearson Vue
20:05 Final problem..
Visit redandgreen blog for more Tutorials
=========================================
? http://redandgreen.co.uk/about/blog/
Subscribe to the YouTube Channel
=================================
? https://www.youtube.com/c/DrPiCode
Follow on Twitter - to get notified of new videos
=================================================
? https://twitter.com/RngWeb
? Become a patron ?
? https://www.patreon.com/drpi
Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi
Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?
You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! ?
? 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)
Thumbs up yeah? (cos Algos..)
#certifications #oci #pearsonvue
...
https://www.youtube.com/watch?v=VQMC9qks3lc
This tutorial covers automatic deployment of a GCP VM instance from a yaml file using the deployment manager in google cloud shell. In future videos we'll continue to look at ways of automating tasks in google cloud, including more Python + API code to do what we have seen here.
-- chapters --
0:00 intro
2:23 gcloud config set project
5:35 edit YAML file
7:44 deploy..
12:11 GitHub and CI with "actions"
___________________________________________
See also:
? https://cloud.google.com/deployment-manager/docs/quickstart
Visit redandgreen blog for more Tutorials
=========================================
? http://redandgreen.co.uk/about/blog/
Subscribe to the YouTube Channel
=================================
? https://www.youtube.com/c/DrPiCode
Follow on Twitter - to get notified of new videos
=================================================
? https://twitter.com/RngWeb
? Become a patron ?
? https://www.patreon.com/drpi
Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi
Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?
You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! ?
? 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)
Thumbs up yeah? (cos Algos..)
YAML
Python
API
cloud shell
Linux
python bashrc
alias python
vim
edit a vm instance
deploy vm
tmux
computer programming
GCP
VPC
gcp google cloud platform
learn google cloud platform for certificatiion
#googlecloud #tutorials #deployvm
...
https://www.youtube.com/watch?v=hqHuLoWrkyQ
Python code to display live Bitcoin prices in real time from Bitcoin.info - See how you can display continuously on a Raspberry PI over SSH. Work in progress - This will get refactored in a future video!
Code :
? https://github.com/RGGH/BlockchainInfo_WebsocketsAPI_client
Python / Bitcoin Playlist :
? https://youtube.com/playlist?list=PLKMY3XNPiQ7v_2kXTIkPhyK_XUAu6wS3J
Visit redandgreen blog for more Tutorials
=========================================
? http://redandgreen.co.uk/about/blog/
Subscribe to the YouTube Channel
=================================
? https://www.youtube.com/c/DrPiCode
Follow on Twitter - to get notified of new videos
=================================================
? https://twitter.com/RngWeb
? Become a patron ?
? https://www.patreon.com/drpi
Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi
Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?
You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! ?
? 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)
Thumbs up yeah? (cos Algos..)
#bitcoin #websockets #python
...
https://www.youtube.com/watch?v=2d-JoGUGKUk
Wikipedia - Scrape any Table on the page using Pandas and one line of code - 100 characters long!
Using the following you can quickly get the data from any table on the page:
With the aid of ";" semi-colon you can combine the pandas import, and your commands onto one line, hit enter, and check your folder for a CSV!
Nice.
1:42 import pandas as pd
5:43 just table [5]
8:55 save to CSV
Credit: Lynn Leifker for the original idea. https://bit.ly/31ED54M
# Play around with these commands and you'll quickly get the data you want #
? import pandas as pd; print(pd.read_html('https://en.wikipedia.org/wiki/International_Formula_3000'))
? df= pd.read_html('https://en.wikipedia.org/wiki/International_Formula_3000')
? print(f"This wikipedia page contains {len(df)} tables")
? df = (df[5])
? df = pd.DataFrame(df)
? dft = df.T
? print(dft)
? df.to_csv("webscrapingf3000x.csv", sep=',', encoding='utf-8-sig')
I've scraped a list of F3000 champions into a CSV.
You may wish to do it with postcodes, football teams, countries, counties, states, whatever!
I'm not advising using pandas for web scraping in general, but thought this was a cool thing to show you - to have more than one way of solving a problem is what keeps things interesting?!
See you around yeah?
Dr Pi.
? Contact Dr Pi for business enquiries at : https://redandgreen.co.uk/contact/
P.s Mike Thackwell was one of the best drivers, he deserved to be on that list! ?
...
https://www.youtube.com/watch?v=vbpg2J4IVWw
GPIO on Raspberry Pi Zero with DS18B20 Sensor https://amzn.to/2YtiYkV to collect temperature data and display on a webpage.
#camjam #edukit #temperaturesensor #DS18B20
#temperature-machine #tobyweston #https://temperature-machine.com/
Check out the Minimalist online python IDE :
https://epyco.herokuapp.com/
https://epico.herokuapp.com/
Buy Dr Pi a Coffee...or Tea! : https://www.buymeacoffee.com/DrPi
...
https://www.youtube.com/watch?v=E1m3X3CnQYo
A look at using AI and Python to create images which could be sold on Opensea or Rarible as NFT (Non Fungible Tokens).
We'll also look at the growing list of gigs on Fiverr for NFT and coding projects.
Buy Dr Pi a coffee (or Tea)
☕☕☕ https://www.buymeacoffee.com/DrPi ☕☕☕
--------------------------------------------------------------------------------------
0:00 intro
05:50 pixray colab notebook
13:55 what is Adam?
20:04 iteration 60 of Pixray AI
25:54 Generative art NFT with Python (and solidity)
34:05 Openseas NFTs
39:42 NFT gigs on fiverr
52:18 Sunflower & Buttefly AI image
--------------------------------------------------------------------------------------
Visit redandgreen blog for more Tutorials
=========================================
? http://redandgreen.co.uk/about/blog/
Subscribe to the YouTube Channel
=================================
? https://www.youtube.com/c/DrPiCode
Follow on Twitter - to get notified of new videos
=================================================
? https://twitter.com/RngWeb
? Become a patron ?
? https://www.patreon.com/drpi
Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi
Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?
You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! ?
? 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)
Thumbs up yeah? (cos Algos..)
AI
NFT
Pytorch
Adam
Python Requests
Google Colab
GAN
Fiverr
Make Money
Opensea
Rarible
#AI #NFT #python
...
https://www.youtube.com/watch?v=jvfdcXsyAYY
Having scraped some data using Python and Selenium the next part of the project was to match some collected data with a source csv to create an output csv based on collected data and the source csv.
A truncated test data csv was missing an 'old style' value which used an alpha character. When I tested my code it worked, when testing on the customer's computer we had an error.
Why?
Pandas (NumPy) chooses the data type to suit the data in the column.
If the file has more than just numbers in the 'id' column then we needed to take care of this...watch along to see the outcome.
Links:
https://numpy.org/doc/stable/user/basics.types.html
https://pbpython.com/pandas_dtypes.html
Visit redandgreen blog for more Tutorials
=========================================
? http://redandgreen.co.uk/about/blog/
Subscribe to the YouTube Channel
=================================
? https://www.youtube.com/c/DrPiCode
Follow on Twitter - to get notified of new videos
=================================================
? https://twitter.com/RngWeb
Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi
Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?
You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! ?
? 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)
Thumbs up yeah? (cos Algos..)
#python #webscraping #csv
...
https://www.youtube.com/watch?v=nA0cI0DU3Sg