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 | |
| """ |
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:
| use actix::prelude::*; | |
| /// Define message | |
| #[derive(Message)] | |
| #[rtype(result = "Result<String, std::io::Error>")] | |
| struct WhatsYourName; | |
| #[derive(Message)] | |
| #[rtype(result = "()")] | |
| struct SetYourName { |
| build_driver = -> (app:, proxy:) { | |
| options = { | |
| window_size: [1500, 1224], | |
| screen_size: [1500, 1224], | |
| headless: true, | |
| js_errors: true, | |
| ignore_https_errors: true, | |
| browser_options: { | |
| 'ignore-certificate-errors' => nil | |
| } |
| # https://www.kiba-etl.org | |
| # for source | |
| require 'kiba-common/sources/enumerable' | |
| require 'kiba-common/sources/csv' | |
| # to create 1 source out of each input file | |
| require 'kiba-common/transforms/source_adapter' | |
| # for target - Kiba Pro is the commercial extension |
| { | |
| // NOTE: these settings work well for me | |
| // using Ruby, Elixir and Assembly languages. | |
| // | |
| // I would probably do something different if | |
| // I worked more with other languages at the moment | |
| "telemetry.enableCrashReporter": false, | |
| "telemetry.enableTelemetry": false, | |
| "workbench.startupEditor": "newUntitledFile", |
| 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 |
| 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 |
These are my notes from deploying a boilerplate Rails app to AWS Lambda (yeah, you read that right) using Lamby. Basically this is me going through the Quick Start guide.
Questions/comments: https://twitter.com/heyjoshwood