profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/cabello/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Danilo Cabello cabello Wealthsimple Toronto, Canada

cabello/django-jobim 12

A django application that simplifies the way you sell your personal stuff.

bigodines/rhok-bush 4

RHoK #3 SP - Volunteer app

cabello/connect-four 2

Connect four, version wrote in Python

cabello/djangobrasil.org 2

Django Brasil Community Website Source Code

cabello/blass 1

Use cabello/bloom to provide a simple bloom filter as a service using an HTTP REST-style API

cabello/curl 1

A basic CURL wrapper for PHP

cabello/django-htmlmin 1

html minify for django

cabello/facebook-sdk 1

Facebook Platform Python SDK

cabello/go-examples 1

my Golang examples repo.

cabello/activerecord-cockroachdb-adapter 0

CockroachDB adapter for ActiveRecord.

startedashellunts/ffmpeg-to-webrtc

started time in 2 days

startedgeelen/react-snapshot

started time in 2 days

startedstereobooster/react-snap

started time in 2 days

issue commentthomvaill/log4brains

sharp is required to build

It's worth mentioning that the preview mode works like a charm, and looks so nice! ❤️

cabello

comment created time in 16 days

issue commentthomvaill/log4brains

sharp is required to build

Correction, even after adding sharp I cannot build log4brain:

Building Log4brains...
info  - Creating an optimized production build  
[Next]  warn  - Compiled with warnings

[Next]  ../node_modules/next/dist/next-server/server/load-components.js
Critical dependency: the request of a dependency is an expression

../node_modules/next/dist/next-server/server/load-components.js
Critical dependency: the request of a dependency is an expression

../node_modules/next/dist/next-server/server/require.js
Critical dependency: the request of a dependency is an expression

../node_modules/next/dist/next-server/server/require.js
Critical dependency: the request of a dependency is an expression

../node_modules/next/dist/next-server/server/require.js
Critical dependency: the request of a dependency is an expression

/Users/user/workspace/work/project/node_modules/awilix/lib/container.js
Critical dependency: the request of a dependency is an expression

/Users/user/workspace/work/project/node_modules/awilix/lib/load-module-native.js
Critical dependency: the request of a dependency is an expression
[Next] 
info  - Collecting page data  
info  - Finalizing page optimization  
[Next]  warn  - Statically exporting a Next.js application via `next export` disables API routes.
This command is meant for static-only hosts, and is not necessary to make your application static.
Pages in your application without server-side data dependencies will be automatically statically exported by `next build`, including pages powered by `getStaticProps`.
Learn more: https://err.sh/vercel/next.js/api-routes-static-export
[====] Generating search index... Done

 ✔  Your Log4brains static site was successfully generated to .log4brains/out with a total of 3 ADRs

✨  Done in 21.91s.

I think it has something to do with M1 but according to this comment https://github.com/lovell/sharp/issues/2460#issuecomment-811046375 M1 is now supported by sharp and I am using the latest version 0.29.1.

cabello

comment created time in 16 days

issue openedthomvaill/log4brains

sharp is required to build

Bug Report

Description

I tried to run the build command and it failed due to sharp not being found.

Steps to Reproduce

  1. yarn install --dev log4brains
  2. yarn run log4brains init
  3. yarn run log4brains build
❯ yarn run log4brains build
yarn run v1.22.10
$ /Users/user/workspace/work/project/node_modules/.bin/log4brains build
Building Log4brains...
[Next]
[Next]   FATAL  Cannot find module 'sharp'
Require stack:
- /Users/user/workspace/work/project/node_modules/@log4brains/web/node_modules/next/dist/build/index.js
- /Users/user/workspace/work/project/node_modules/@log4brains/web/dist/cli/commands/build.js
- /Users/user/workspace/work/project/node_modules/@log4brains/web/dist/cli/commands/index.js
- /Users/user/workspace/work/project/node_modules/@log4brains/web/dist/cli/cli.js
- /Users/user/workspace/work/project/node_modules/@log4brains/web/dist/cli/index.js
- /Users/user/workspace/work/project/node_modules/@log4brains/web/dist/index.js
- /Users/user/workspace/work/project/node_modules/log4brains/dist/cli.js
- /Users/user/workspace/work/project/node_modules/log4brains/dist/main.js
- /Users/user/workspace/work/project/node_modules/log4brains/dist/log4brains
[Next]
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected Behavior

To build the site successfully.

Context

I did not want to tell all users to globally install the command, so I added it to the project as a dev dependency.

I did not find sharp in the package.json of this project.

After adding sharp with yarn add -dev sharp the project was built correctly.

Environment

<!-- Include as many relevant details about the environment you experienced the bug in -->

  • Log4brains version: 1.22.10
  • Node.js version: v16.3.0
  • OS and its version: macOS 11.4
  • Browser information: N/A

Possible Solution

Add sharp to list of dependencies.

created time in 16 days

issue commentthomvaill/log4brains

Rename `docs/adr` default directory to `docs/decisions` to improve usage

I just tried implementing this, there are over 2200 mentions of ADR in the repo, some of them are non-obvious to replace, for the time being I renamed my folder and changed the adrFolder as the project is configurable.

One minor but eventually "bike sheddable" discussion is singular vs plural, the project is consistent right now with all singular, by having docs/decisions and log4brains decision new, thing could get confusing, maybe a command alias would be welcomed in this case.

thomvaill

comment created time in 16 days

startedthomvaill/log4brains

started time in 16 days

issue commentprescottprue/redux-firestore

Immediate mode: instant, synchronous document updates

I am suffering from this issue also as I implemented drag & drop in one of by useFirestoreConnect queries.

@puppybits super excited about taking a look at your PR https://github.com/prescottprue/redux-firestore/pull/335 I noticed the changeset is 68k lines @prescottprue do you have a suggestion on breaking this down into something that could be merged into main and released?

I agree with the architectural, data flow issue: the React component is backed by Redux connected to Firebase, the drag & drop sends the change request to Firebase, that takes ~150ms (most times is faster), the UI flickers between old state and new state, would be lovely to have an optimistic UI system in place for these. ❤️

puppybits

comment created time in 17 days

startedjakejarvis/s3-sync-action

started time in a month

pull request commentnulldb/nulldb

Add PG serial and inet support

Thank you for your contribution, I will craft a new release soon.

tsmartt

comment created time in a month

PR merged nulldb/nulldb

Add PG serial and inet support

Closes #109

+2 -0

1 comment

1 changed file

tsmartt

pr closed time in a month

push eventnulldb/nulldb

tsmartt

commit sha 158c7e7fc5fb09d7e777589a6b9a1197e4c87ccc

Add PG serial support

view details

tsmartt

commit sha 1db1ff143f8c05e8aee80e02e8597b8f97ae96f1

Add inet column support

view details

Danilo Cabello

commit sha 556de8ea3cbc79fc924529fd4651a89775a2b329

Merge pull request #110 from tsmartt/tsmartt-patch-1 Add PG serial and inet support

view details

push time in a month

issue closednulldb/nulldb

Serial columns not supported

When loading a schema with a postgres serial column, this error crops up.

NoMethodError: undefined method `serial' for #<ActiveRecord::ConnectionAdapters::NullDBAdapter::TableDefinition:0x00007fb216cf2a40>

closed time in a month

tsmartt

startedjlongster/absurd-sql

started time in a month

PR opened jakeonrails/fix-db-schema-conflicts

Allow Ruby 3 installs

Hello 👋 ,

Ruby 3 was released on Dec 2020 https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/

While trying to upgrade a personal project I got the following error:

fix-db-schema-conflicts-3.0.3 requires ruby version ~> 2.0, which is incompatible with the current version, ruby 3.0.2p107

It's unlikely that fix-db-schema doesn't work with Ruby 3 given is a compatible release:

Ruby3.0 is a milestone. The language is evolved, keeping compatibility. But it’s not the end. Ruby will keep progressing, and become even greater. Stay tuned! — Matz

Cheers,

+1 -1

0 comment

1 changed file

pr created time in a month

push eventcabello/fix-db-schema-conflicts

Danilo Cabello

commit sha 3d65287caf0ce27dc04c6cb7acd7a0e602868d0a

Allow Ruby 3 installs

view details

push time in a month

issue commentmeilisearch/MeiliSearch

Meilisearch Authentication Layer (WIP)

I am using Algolia right now, this is how I structured the solution:

  • single index production_users.
  • each user record has _tags that include the organization canonical ID (single entry), the upcoming events canonical IDs (usually a few entries).
  • when an organizer (they can search for everyone) joins an event, I generate a search key where tags in [organizationId, eventId]

That has been working reasonably well for me.

I know this might not answer your question, it really depends on the data model of the search provider in order to come up with a solution.

What was important for me was:

  • Prevent people from searching for everyone (scanning, scraping).
  • Prevent leaking people's emails or any other field (Algolia has an option to allow a field to be searchable but not retrievable)
  • Guarantee separation between organizations (you shouldn't be able to find users from other organizations).
  • Guarantee separation between events (you shouldn't be able to find people that have not registered for that event).
MarinPostma

comment created time in 2 months