This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated from discussions in hashicorp/vagrant-vmware-desktop#22
First install Rosetta if not already done, this is needed to run x86 code:
| defmodule MyApp.Redix do | |
| @pool_size 5 | |
| # How long, in seconds, to keep messages in the backlog | |
| @max_backlog_age 604800 | |
| # How many messages may be kept in the global backlog | |
| @max_global_backlog_size 2000 | |
| # How many messages may be kep in the per-channel backlog | |
| @max_backlog_size 1000 | |
| I was drawn to programming, science, technology and science fiction | |
| ever since I was a little kid. I can't say it's because I wanted to | |
| make the world a better place. Not really. I was simply drawn to it | |
| because I was drawn to it. Writing programs was fun. Figuring out how | |
| nature works was fascinating. Science fiction felt like a grand | |
| adventure. | |
| Then I started a software company and poured every ounce of energy | |
| into it. It failed. That hurt, but that part is ok. I made a lot of | |
| mistakes and learned from them. This experience made me much, much |
| use actix::prelude::*; | |
| /// Define message | |
| #[derive(Message)] | |
| #[rtype(result = "Result<String, std::io::Error>")] | |
| struct WhatsYourName; | |
| #[derive(Message)] | |
| #[rtype(result = "()")] | |
| struct SetYourName { |
This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated from discussions in hashicorp/vagrant-vmware-desktop#22
First install Rosetta if not already done, this is needed to run x86 code:
| defmodule PostgresHybridSearch do | |
| @moduledoc """ | |
| Postgres Hybrid Search | |
| Loosely based on: | |
| - https://github.com/pgvector/pgvector-python/blob/master/examples/hybrid_search_rrf.py | |
| - https://github.com/Azure-Samples/rag-postgres-openai-python/blob/e30ea96ca11ca6578ca38d3428594bd98d704900/src/fastapi_app/postgres_searcher.py#L2 | |
| - https://supabase.com/docs/guides/ai/hybrid-search | |
| - https://github.com/toranb/rag-n-drop/blob/main/lib/demo/section.ex#L30 | |
| """ |