Logo James's Peredutions
  • Home
  • About
  • Latest
  • Accomplishments
  • Selected Projects
  • Featured
  • All Posts
  • Tags
  • Search
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Tags
  • 3Cs
  • 7Ps
  • Achievements
  • Agriculture
  • AI
  • Air Batteries
  • Aluminium
  • Analysis
  • Android
  • APIs
  • App
  • Arduino
  • Argument
  • Attitude
  • Autonomous Vehicles
  • AWS
  • Azure
  • Batteries
  • Biases
  • Biochar
  • Blue Team Labs Online
  • Bonds
  • Book Summary
  • Bookmarks
  • Books
  • Boookmarklets
  • Buildings
  • Business
  • Business Analysis
  • Business Intelligence
  • Business Model
  • Business Model Canvas
  • Business Models
  • CAES
  • Capital
  • Carbon
  • Carbon Capture
  • Cars
  • Case Study
  • CCUS
  • Certifications
  • CFI
  • ChatGPT
  • Chemistry
  • China
  • Circular Economy
  • Classification
  • Climate
  • Cloud
  • Clustering
  • CO2
  • CODESYS
  • Communities
  • Compassion
  • Competitor Analysis
  • Compressed CO2
  • Computing
  • Conference Talk
  • Connected Vehicles
  • Construction
  • Consulting
  • Consumption
  • Contemplation
  • Contemplations
  • Corporate Finance
  • Cost of Living
  • Cost-Benefit Analysis
  • Coursera
  • Courses
  • CPD
  • Creativity
  • Crisis
  • Customer Analysis
  • CyberDefenders
  • Cycles
  • DAC
  • Data Analysis
  • Data Science
  • Data Visualisation
  • Dating
  • Debt
  • Decision Trees
  • Desertec
  • Design
  • Digital Forensics
  • Distributed Energy
  • Distribution Networks
  • Docker
  • E-Bikes
  • E-Scooters
  • Economic Cycles
  • Education
  • EdX
  • Efficiency
  • Electric Vehicles
  • Electricity
  • Electrification
  • Electrochemical Batteries
  • Emissions
  • Emotions
  • EndMyopia
  • Energy
  • Energy Storage
  • Entomophagy
  • Entrepreneurship
  • EVs
  • Eyesight
  • Family
  • Farming
  • Farnam Street
  • FastAPI
  • Fears
  • Finance
  • Flask
  • Flow Batteries
  • Food
  • Future
  • Geology
  • Geopolitics
  • GMAT
  • Go-to-Market
  • Gradient Boosted Trees
  • Green
  • Greenwashing
  • Grid Storage
  • Growth
  • Growth Strategy
  • Happiness
  • Health
  • Heat Pumps
  • Hobbies
  • Housing
  • Human Nature
  • Humanity
  • Hydrogen
  • Hyperparameters
  • IEA
  • Industry Analysis
  • Innovation
  • Insects
  • Internet
  • IT
  • JavaScript
  • Journalling
  • Korea
  • Korean
  • LAES
  • Language
  • Languages
  • Learning
  • LinkedIn
  • Lithium
  • Living
  • LLMs
  • Logical Fallacies
  • Logistics
  • London
  • M&A
  • Maps
  • Market Entry
  • Market Research
  • Market Strategy
  • Marketing
  • Markets
  • Massless Batteries
  • Maths
  • MECE
  • Mechanical Batteries
  • Media
  • Meditation
  • Memories
  • Mental Blindspots
  • Mental Health
  • Mental Models
  • Micromobility
  • Mindset
  • Mobility
  • Modelling
  • Molten Metal
  • Molten Salt
  • Motivation
  • Motorbikes
  • Myopia
  • Natural Language Processing
  • Networking
  • Oceans
  • Oil
  • Open University
  • OpenPLC
  • Operational Technology
  • Opportunity
  • Opportunity Cost
  • Personal Development
  • Personalities
  • Plants
  • Plastic
  • Policy
  • Politics
  • Pollution
  • Porter's Five Forces
  • Product Analysis
  • Product Design
  • Product Management
  • Productivity
  • Projects
  • Psychology
  • Public Transport
  • Pumped Hydro
  • Purchase Analytics
  • Python
  • Random Forest
  • Random Forests
  • Reasoning
  • Recycling
  • Regex
  • Regression
  • Relationships
  • Renewable Energy
  • Sales
  • Samsara
  • Sand Batteries
  • Scooters
  • Scripting
  • Security Monitoring
  • Segmentation
  • Sentiment Analysis
  • Sex
  • Shared Mobility
  • Silver
  • Society
  • Sodium
  • Solar
  • SQL
  • STEEPLE
  • Stocks
  • Strategy
  • Structure
  • Success
  • Supply Chain
  • Sustainability
  • SWOT
  • Theories
  • Thermal Batteries
  • Thoughts
  • Time Management
  • Time Series
  • Traffic
  • Translation
  • Transmission Networks
  • Trauma
  • Travel
  • Trees
  • TryHackMe
  • V2G
  • Valuation
  • Value Chain
  • Value Proposition
  • Value Proposition Canvas
  • Vanadium
  • Vertical Farming
  • Visualisation
  • War
  • Water Batteries
  • Wealth
  • Wind
  • Work
  • YouTube
  • Zinc Bromine
  • 한국어
  • 한국어로
Hero Image
Word-For-Word Translator

With the help of Google Translater, Deepl, and LLMs such as ChatGPT, translating text from one language to another has never been easier. However, this doesn’t necessarily help you learn it. For example, I’m intermediate-level Korean. I can read most Korean, but there is the odd word I don’t know. Putting the sentence into a translator often doesn’t help as, due to sentence structure, idioms, meaning etc, it can be difficult to tie the output back to the input. The best solution is to put the unknown word into a dictionary or translator, but that’s time-consuming.

  • Language
  • Korean
  • Projects
  • Translation
  • APIs
Friday, October 10, 2025 | 1 minute Read
Hero Image
Basic APIs: Diamond Pricing with FastAPI, Docker, GitHub Actions, and Azure

This has been a long time coming! Basic APIs part one was posted back in January; since then I’ve started a new job and have had some contract/freelance work, so I didn’t get around to completing this. Also, since then, I’ve moved from Windows to Mac, and started using uv instead of pyenv/pip, so things may look a little different. The repo for this project can be found here: https://github.com/jamesdeluk/data-projects/tree/main/basic-apis/diamond-price The goal Send (POST) to an online API with diamond criteria, and get a predicted price as a response.

  • Data Science
  • Regression
  • Random Forest
  • APIs
  • Docker
  • FastAPI
  • Azure
  • Cloud
  • Python
Thursday, March 6, 2025 | 12 minutes Read
Hero Image
Basic APIs: Sentiment Analysis with Flask, Docker, and AWS

The repo for this project can be found here: https://github.com/jamesdeluk/data-projects/tree/main/basic-apis/sentiment-analysis The goal Send (POST) a word or phrase to an online API, and get a sentiment (positive or negative) and score as a response. Step 1: Build the Python script First we need the script that can take a word or phrase as an input and return a sentiment. import json from textblob import TextBlob def analyse(data): text = data.get('text', '') if not text: return json.dumps({'error': 'No text provided'}), 400 blob = TextBlob(text) sentiment_score = blob.sentiment.polarity return json.dumps({ 'input': text, 'sentiment_score': sentiment_score, 'sentiment': ( 'positive' if sentiment_score > 0 else 'negative' if sentiment_score < 0 else 'neutral' ) }) The API will be JSON-based, so this script is also. The function takes some text and uses TextBlob to give it a sentiment score between 1 (positive) and -1 (negative), which it returns, also in JSON form.

  • Data Science
  • Sentiment Analysis
  • APIs
  • Docker
  • Flask
  • AWS
  • Cloud
  • Python
Wednesday, January 8, 2025 | 7 minutes Read
Contact me:
  • james@gibbins.me
  • jamgib

Home page image source: 홍지우