Google Bard Extracts Code From Images (PNG, JPEG, WebP)

Consider the following screenshot of a code snippet: Let’s say I want to extract the code from the image. I don’t want to type it out. What can I do? I just discovered that Google Bard has sufficient image recognition skills that you can upload images and ask it to extract the code from the … Read more

How to Remove the Percentage % Sign and Convert to Number in Python

Problem Formulation Picture this: you’re extracting data from an XML file with a series of percentages. But your percentages look something like this: You’ve successfully extracted the data, but these percentages are tagged with the “%” symbol, making them strings rather than numbers. Now, let’s say you want to do something like: But with that … Read more

50 Activities a Humanoid Bot Could Do [Table]

I just completed an article on the possible stock price for Tesla if the Optimus bot reaches world domination. See here: πŸ“ˆ Recommended: Tesla Bot Valuation: $15,625 per Share Possible? To support the argument, here is the table of 50 activities that a humanoid robot could do: Activity Hourly Rate ($) Difficulty Required Skills Energy … Read more

Tesla Bot Valuation: $15,625 per Share Possible?

I’ll present my personal valuation thesis for the Tesla stock in this article, assuming the Optimus program will succeed. My optimism caused me to put ~80% of my stock investment portfolio into TSLA. Track all markets on TradingView Learning From the Smartphone Market 200 million people decide to buy an iPhone every year (source): 1.5 … Read more

11 Ways to Create a List of Odd Numbers in Python

Method 1: Using List Comprehension To create a list of odd numbers in Python, you can use the list comprehension [x for x in range(10) if x%2==1] that iterates over all values x between 0 and 10 (exclusive) and uses the modulo operator x%2 to check if x is divisible by 2 with remainder, i.e., … Read more

11 Ways to Create a List of Even Numbers in Python

Method 1: Using List Comprehension To create a list of even numbers in Python, you can use the list comprehension [x for x in range(10) if x%2==0] that iterates over all values x between 0 and 10 (exclusive) and uses the modulo operator x%2 to check if x is divisible by 2 without remainder, i.e., … Read more

Microsoft Scales LLMs to a Mind-Boggling 1B (!) Token Context 🀯

The paper “LongNet: Scaling Transformers to 1,000,000,000 tokens” presents a machine learning breakthrough, particularly in handling and analyzing large amounts of text data. Simply put, this paper is about a new model called LongNet that can understand and analyze really long strings of text – up to 1 billion words or phrases, called “tokens,” at … Read more

How to Run Large Language Models (LLMs) in Your Command Line?

LLM is a command-line utility and Python library for interacting with large language models. In the latest release (v0.5), it offers support for self-hosted language models through plugins. Installation LLM can be installed using pip, pipx, or Homebrew. The syntax for each is as follows: Key Features You can see the possible models by running … Read more

GPT-4 Code Interpreter – How to Run Python & Plot Data in ChatGPT

GPT-4 now provides a friendly little tool that has the potential to completely change the coding industry. Again. You can activate the code interpreter in your ChatGPT Settings: Toggle the “Code Interpreter” option (currently in “Beta features” but not for long): Now you can run the code interpreter using a simple natural language prompt such … Read more

Claude 2 LLM Reads Ten Papers in One Prompt with Massive 200k Token Context

The new Claude 2 model from AI research company Anthropic has proved insane new capabilities. In this quick article, I’ll give you a short and concise overview of what you need to know. Claude 2 Overview Anthropic’s latest prodigy, Claude 2, is making waves. This AI language model, part of the Claude series, is a … Read more