GigaBrain - Search Reddit and Other Communities for Answers from Real People
Link: GigaBrain - Search Reddit and Other Communities for Answers from Real People: "GigaBrain finds the most useful discussions on reddit and other communities. We sift through the noise and analyze billions of comments for you. Get real answers from real people."
GigaBrain – Search Reddit and Other Communities for Answers from Real People
GigaBrain - Search Reddit and Other Communities for Answers from Real People –GigaBrain finds the most useful discussions on reddit and other communities. We sift through the noise and analyze billions of comments for you. Get real answers from real people.
Daily ChatGPT: Solve a simple network traversal
Tell me how this is simple word completion. Can this be broadened to a more complicated network. Could it be used for some kind of semi-intelligent navigation?
Prompt:
Assume a map that is described in sentences, with node names and costs to go between nodes. Here is map1:
Node A costs 5 to got to Node C and 10 to go to Node D
Node C costs 100 to go to node E and 50 to go to node F
Node D costs 10 to go to node E and 100 to go to node F
What is the best route to go from Node A to node E? And what is the best route to go from Node A to node F?
Response:
To find the best route from Node A to Node E, we need to calculate the total cost for each possible path.
Path 1: Node A -> Node C -> Node E
Cost: 5 (A to C) + 100 (C to E) = 105
Path 2: Node A -> Node D -> Node E
Cost: 10 (A to D) + 10 (D to E) = 20
The best route from Node A to Node E is Path 2 (A -> D -> E) with a total cost of 20.
To find the best route from Node A to Node F, we need to calculate the total cost for each possible path.
Path 1: Node A -> Node C -> Node F
Cost: 5 (A to C) + 50 (C to F) = 55
Path 2: Node A -> Node D -> Node F
Cost: 10 (A to D) + 100 (D to F) = 110
The best route from Node A to Node F is Path 1 (A -> C -> F) with a total cost of 55.
Daily ChatGPT
I have been using ChatGPT on a daily basis. Not for joking or playing but for work. It is like a super search engine combined with a fallible expert. When I tell this story to various people they seem surprised and ask "Give me an example." I have so many. So this will be a series of daily examples where ChatGPT made a difference.
By the way, people love to say, ChatGPT is nothing more than fancy autocomplete. While they may be technically correct (and I doubt they are) you cannot ignore ChatGPT feats that look nothing like autocomplete.
From Ruby to Crystal? Writing and distributing a CLI tool—Martian Chronicles, Evil Martians’ team blog
Link: From Ruby to Crystal? Writing and distributing a CLI tool—Martian Chronicles, Evil Martians’ team blog: "We use the Crystal language to build a CLI tool, a coverage reporter for Coveralls, as a static binary and as a Homebrew tap"
fast.ai - Mojo may be the biggest programming language advance in decades
Link: fast.ai - Mojo may be the biggest programming language advance in decades: "Mojo is a new programming language, based on Python, which fixes Python’s performance and deployment problems."
fast.ai – Mojo may be the biggest programming language advance in decades
fast.ai - Mojo may be the biggest programming language advance in decades –Mojo is a new programming language, based on Python, which fixes Python’s performance and deployment problems.
Advanced Active Record
Link: Advanced Active Record: "Optimizing Performance and Robustness with Locking, UUIDs, Fulltext Search, Database Views, and Geospatial Data"
Ruby's Switch Statement is More Flexible Than You Thought
Link: Ruby's Switch Statement is More Flexible Than You Thought: "Ruby's switch statement is very versatile and flexible, especially due to the dynamic nature of Ruby. In this post, we'll see how you can use it in various ways. We'll also learn why it works the way it works. Hint: it uses the ===
operator (method) under the hood."
Ruby’s Switch Statement is More Flexible Than You Thought
Ruby's Switch Statement is More Flexible Than You Thought –Ruby's switch statement
is very versatile and flexible, especially due to the dynamic nature of Ruby.
In this post, we'll see how you can use it in various ways. We'll also learn
why it works the way it works. Hint: it uses the ===
operator (method) under
the hood.