profile
viewpoint
Julia Naomi naomijub Nubank Brazil Rust, Games, Elixir and Clojure! https://www.apress.com/gp/book/9781484232156

naomijub/brcode 36

PIX BR Code Parser for Rust

dreamteam-challanges/pic-pay-challenge 3

https://picpay.com/jobs/desafio-backend-java

GodiStudios/mathf 2

Math basics for a game engine.

inessadl/youtube-videos 2

search and display videos using youtube api

naomijub/banksystem 2

Banking system with Pedestal and GraphQL

enzoz/xml-to-json-parser 1

A spike with Clojure on parsing XML data to JSON format

Dujour/smashing-clojure 0

This is the repo of our API example for the lecture. Enjoy <3

create barnchnaomijub/brcode

branch : read_qrcode_image

created branch time in 5 hours

startedpiderman314/bardecoder

started time in 6 hours

issue closednaomijub/brcode

Kotlin/JVM FFI

https://kotlinlang.org/docs/reference/native/c_interop.html

closed time in 7 hours

naomijub

issue commentnaomijub/brcode

Kotlin/JVM FFI

JVM needs a maven release

naomijub

comment created time in 7 hours

issue commentnaomijub/edn-rs

Add context and cause to parse error messages

So I did the change to use enumerate as it was the best option as of now. Could you test please? https://github.com/naomijub/edn-rs/pull/73

jcsoo

comment created time in 7 hours

pull request commentnaomijub/edn-rs

Improves error messaging

This is a propose change for issue https://github.com/naomijub/edn-rs/issues/70

naomijub

comment created time in 7 hours

PR opened naomijub/edn-rs

Improves error messaging

Performance loss around 2.5 to 4% parsing example at 12us

+173 -103

0 comment

3 changed files

pr created time in 7 hours

create barnchnaomijub/edn-rs

branch : beta

created branch time in 7 hours

issue closednaomijub/transistor

`entity_tx` panics if the id provided is non-existent

Currently if I do something like:

let client = Crux::new("crux", "3000").http_client();
let tx_body = client.entity_tx(CruxId::new("unknown-id-here"))

It panics with 'called Result::unwrap() on an Err value: ParseError(Invalid)', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/transistor-2.0.0/src/types/response.rs:135:74'.

A request to http://crux:3000/entity-tx with {:eid :unknown-id-here} will respond with a status of 404 and a body of nil, which should probably be handled gracefully with an error rather than panicking.

closed time in 2 days

jarhodes314

issue commentnaomijub/transistor

`entity_tx` panics if the id provided is non-existent

PR is merged for this issue, as soon as I have time I will take a look at issue #66 that is related

jarhodes314

comment created time in 2 days

delete branch naomijub/transistor

delete branch : issue-64

delete time in 2 days

push eventnaomijub/transistor

Julia Naomi

commit sha c30e88b863c18d361828802508d5ca9a86908d50

Issue 64 (#65)

view details

push time in 2 days

PR merged naomijub/transistor

Issue 64
  • [x] Fixed error. handling when entity functions do not return 2XX.
  • [x] Upgrade edn-rs
  • [x] Removes unnecessary check if id starts with ":"
  • [ ] Fix error handling for status code != 2xx in other functions

REMOVED:

if !crux_id.starts_with(":") {
     return Ok(edn!({:status ":bad-request", :message "ID required", :code 400}));
}
+245 -54

1 comment

6 changed files

naomijub

pr closed time in 2 days

push eventnaomijub/transistor

Julia Naomi

commit sha c4473db59fbc48eddf87de5d2d1034b8e8271695

changes 500 error to bad response error

view details

Julia Naomi

commit sha a8d855ca3747ef1955b674e24ddcbdafba50a228

renames errors and changes or to or_else

view details

Julia Naomi

commit sha 584f910e6cefc6e3fa4563b4fb2cbb2bc177ce1d

Merge pull request #67 from naomijub/bad-response-error changes 500 error to bad response error

view details

push time in 2 days

push eventnaomijub/transistor

Julia Naomi

commit sha a8d855ca3747ef1955b674e24ddcbdafba50a228

renames errors and changes or to or_else

view details

push time in 2 days

Pull request review commentnaomijub/transistor

Issue 64

 impl HttpClient {             .post(&format!("{}/entity", self.uri))             .headers(self.headers.clone())             .body(s)-            .send()?-            .text()?;--        let edn_resp = Edn::from_str(&resp.replace("#inst", ""));-        edn_resp.or(Ok(edn!({:status ":internal-server-error", :code 500})))+            .send()?;++        if resp.status().as_u16() < 300 {+            let resp_body = resp.text()?;+            let edn_resp = Edn::from_str(&resp_body.replace("#inst", ""));+            edn_resp.or(Err(CruxError::BadRequestError(format!(

This may be an alternative CruxError https://github.com/naomijub/transistor/pull/67/files

naomijub

comment created time in 2 days

PullRequestReviewEvent

create barnchnaomijub/transistor

branch : bad-response-error

created branch time in 2 days

Pull request review commentnaomijub/transistor

Issue 64

 impl HttpClient {             .post(&format!("{}/entity", self.uri))             .headers(self.headers.clone())             .body(s)-            .send()?-            .text()?;--        let edn_resp = Edn::from_str(&resp.replace("#inst", ""));-        edn_resp.or(Ok(edn!({:status ":internal-server-error", :code 500})))+            .send()?;++        if resp.status().as_u16() < 300 {+            let resp_body = resp.text()?;+            let edn_resp = Edn::from_str(&resp_body.replace("#inst", ""));+            edn_resp.or(Err(CruxError::BadRequestError(format!(+                "entity responded with {} for id \"{}\" ",+                500, crux_id

Also it would be super weird to return an Err containing a status code lower than 300

naomijub

comment created time in 2 days

PullRequestReviewEvent

issue commentnaomijub/edn-rs

Add context and cause to parse error messages

This follows that same error pattern that breaking the lines at break lines, like \n, would cause. So calculating the line from this approach could generate distortions. But I could return something like a subset of the line.

jcsoo

comment created time in 2 days

Pull request review commentnaomijub/transistor

Issue 64

 impl HttpClient {             .post(&url)             .headers(self.headers.clone())             .body(s)-            .send()?-            .text()?;--        let edn_resp = Edn::from_str(&resp.replace("#inst", ""));-        edn_resp.or(Ok(edn!({:status ":internal-server-error", :code 500})))+            .send()?;++        if resp.status().as_u16() < 300 {+            let resp_body = resp.text()?;+            let edn_resp = Edn::from_str(&resp_body.replace("#inst", ""));+            edn_resp.or(Err(CruxError::BadRequestError(format!(+                "entity-timed responded with {} for id \"{}\" ",+                500, crux_id+            ))))+        } else {+            Err(CruxError::BadRequestError(format!(+                "entity-timed responded with {} for id \"{}\" ",+                resp.status().as_u16(),+                crux_id+            )))+        }     }      /// Function `entity_tx` requests endpoint `/entity-tx` via `POST` which retrieves the docs and tx infos     /// for the last document for that ID saved in CruxDB.     pub fn entity_tx(&self, id: CruxId) -> Result<EntityTxResponse, CruxError> {+        let crux_id = edn_rs::to_string(id);+         let mut s = String::new();         s.push_str("{:eid ");-        s.push_str(&edn_rs::to_string(id));+        s.push_str(&crux_id);         s.push_str("}");          let resp = self             .client             .post(&format!("{}/entity-tx", self.uri))             .headers(self.headers.clone())             .body(s)-            .send()?-            .text()?;--        EntityTxResponse::from_str(&resp.replace("#inst", ""))+            .send()?;++        if resp.status().as_u16() < 300 {

There are 4 if that differ in 2 different responses, also it is not easy to deal with all the borrowing needed here. I prefer to leave the ifs, but you are welcome to try to extract it kkkkk

naomijub

comment created time in 2 days

PullRequestReviewEvent
PullRequestReviewEvent

Pull request review commentnaomijub/transistor

Issue 64

 impl HttpClient {             .post(&url)             .headers(self.headers.clone())             .body(s)-            .send()?-            .text()?;--        let edn_resp = Edn::from_str(&resp.replace("#inst", ""));-        edn_resp.or(Ok(edn!({:status ":internal-server-error", :code 500})))+            .send()?;++        if resp.status().as_u16() < 300 {+            let resp_body = resp.text()?;+            let edn_resp = Edn::from_str(&resp_body.replace("#inst", ""));+            edn_resp.or(Err(CruxError::BadRequestError(format!(

same as above

naomijub

comment created time in 2 days

Pull request review commentnaomijub/transistor

Issue 64

 impl HttpClient {             .post(&format!("{}/entity", self.uri))             .headers(self.headers.clone())             .body(s)-            .send()?-            .text()?;--        let edn_resp = Edn::from_str(&resp.replace("#inst", ""));-        edn_resp.or(Ok(edn!({:status ":internal-server-error", :code 500})))+            .send()?;++        if resp.status().as_u16() < 300 {+            let resp_body = resp.text()?;+            let edn_resp = Edn::from_str(&resp_body.replace("#inst", ""));+            edn_resp.or(Err(CruxError::BadRequestError(format!(

This is an Error situation not an OK with bad content. Maybe in a next PR create a new error.

naomijub

comment created time in 2 days

PullRequestReviewEvent

Pull request review commentnaomijub/transistor

Issue 64

 impl HttpClient {             .post(&format!("{}/entity", self.uri))             .headers(self.headers.clone())             .body(s)-            .send()?-            .text()?;--        let edn_resp = Edn::from_str(&resp.replace("#inst", ""));-        edn_resp.or(Ok(edn!({:status ":internal-server-error", :code 500})))+            .send()?;++        if resp.status().as_u16() < 300 {+            let resp_body = resp.text()?;+            let edn_resp = Edn::from_str(&resp_body.replace("#inst", ""));+            edn_resp.or(Err(CruxError::BadRequestError(format!(+                "entity responded with {} for id \"{}\" ",+                500, crux_id

This is legacy and just means that the process failed. not going to change this now

naomijub

comment created time in 2 days

PullRequestReviewEvent

push eventnaomijub/translixir

Julia Naomi

commit sha 31a5437457c72b9e6e9bc45b4bc170ded691e306

Include timed entities

view details

push time in 3 days

issue commentjfacorro/Eden

Release 2.1.0

if it helps, I am using it here https://github.com/naomijub/translixir

naomijub

comment created time in 3 days

create barnchnaomijub/translixir

branch : beta

created branch time in 3 days

push eventnaomijub/neon-brcode

Julia Naomi

commit sha 8fc53d0270908d956674dae2d75dad285049781b

bumps version

view details

push time in 3 days

issue openednaomijub/transistor

Reqwest StatusCode != 2xx

Handle cases when http function returns a code different than 2XX Created from https://github.com/naomijub/transistor/issues/64 and PR https://github.com/naomijub/transistor/pull/65

created time in 3 days

pull request commentnaomijub/transistor

Issue 64

https://github.com/naomijub/transistor/issues/64

naomijub

comment created time in 3 days

PR opened naomijub/transistor

Issue 64
+233 -54

0 comment

6 changed files

pr created time in 3 days

create barnchnaomijub/transistor

branch : issue-64

created branch time in 3 days

issue commentjfacorro/Eden

Release 2.1.0

Sure give me a @ when this is ready

naomijub

comment created time in 3 days

issue commentjfacorro/Eden

Release 2.1.0

Thanks

Are you suggesting renaming jfacorro/elixir-array and publishing it to hex to avoid depending on github? Yes

naomijub

comment created time in 3 days

issue commentnaomijub/edn-rs

Add context and cause to parse error messages

@jcsoo So I got an idea to help but it affected significantly performance. The idea is to use enumerate to have the char count that the problem started. Does this help you?

jcsoo

comment created time in 3 days

issue closednaomijub/edn-rs

Symbol starting with true, nil and false fail when parsed

Symbol true-and-false should be parsed as symbol, but is being parsed as a boolean, a symbol and another boolean

closed time in 3 days

naomijub

push eventnaomijub/edn-rs

Julia Naomi

commit sha 029944f0921eba1ffbb37c8ceeed05f79417d129

make boolean/nil parser more flexible

view details

push time in 3 days

issue commentnaomijub/transistor

`entity_tx` panics if the id provided is non-existent

I will take a look, thanks

jarhodes314

comment created time in 3 days

issue openednaomijub/edn-rs

Symbol starting with true, nil and false fail when parsed

Symbol true-and-false should be parsed as symbol, but is being parsed as a boolean, a symbol and another boolean

created time in 3 days

issue closednaomijub/translixir

Include Specs

deps-outdated:
	mix hex.outdated

dialyzer:
	 mix dialyzer --format dialyxir
 {:dialyxir, "~> 0.5", only: [:dev], runtime: false},

closed time in 3 days

naomijub

issue commentnaomijub/translixir

Include Specs

569444e

naomijub

comment created time in 3 days

issue closednaomijub/translixir

Include formatter

lint: format
	mix credo --strict

format:
	mix format
{:credo, "~> 1.0.0", only: [:dev, :test, :ci], runtime: false}

closed time in 3 days

naomijub

issue commentnaomijub/translixir

Include formatter

569444e

naomijub

comment created time in 3 days

push eventnaomijub/translixir

Julia Naomi

commit sha 569444ece61ef218dbba202ccbd1750115e06c27

uses eden to parse EDN responses

view details

push time in 3 days

issue openedjfacorro/Eden

Release 2.1.0

Can you make a release of version 2.1.0? As well as publish it to HEX?

created time in 3 days

push eventnaomijub/neon-brcode

Julia Naomi

commit sha 219e1d625ae3ee1f0b25283a8fbe04ecf0e8f0fb

Improves readme

view details

push time in 3 days

push eventnaomijub/neon-brcode

Julia Naomi

commit sha 64963c895714c9971562ac581d92e59a28f6d887

function to generate svg file

view details

push time in 3 days

push eventnaomijub/neon-brcode

Julia Naomi

commit sha 34cd8abdba2c9aaddccea15004f9504ade946ea9

1. Fix typescript type erros [BREADKING] 2. Expose extra brcode functions

view details

push time in 3 days

push eventnaomijub/neon-brcode

Julia Naomi

commit sha 5bad31ecb3fa3d05a1489df73b9a5b5f06f8f2c9

bumps version to ts

view details

push time in 5 days

push eventnaomijub/neon-brcode

Douglas Gadêlha

commit sha 75a3766501e7426a7d823d2f711abd499c1bfd41

feat: rewrite to typescript (#1) supports tsc in build

view details

push time in 5 days

PR merged naomijub/neon-brcode

feat: rewrite to typescript

Rewrites to TypeScript, providing types for exported functions (useful for projects in TypeScript, no changes for projects in JavaScript).

Includes a generated documentation with TypeDoc and test file is also in TypeScript (ran by ts-jest).

Can you confirm field_template's type is correct?

+379 -17

1 comment

10 changed files

dgadelha

pr closed time in 5 days

PullRequestReviewEvent

push eventnaomijub/translixir

Julia Naomi

commit sha dd97aa0ee5c9fbec6241efe94d1dac03366be268

format

view details

push time in 5 days

issue openednaomijub/translixir

Include formatter

lint: format mix credo --strict

format: mix format

created time in 5 days

issue openednaomijub/translixir

Test endpoint functions

created time in 5 days

issue openednaomijub/translixir

Improve README

created time in 5 days

issue openednaomijub/translixir

Include Specs

created time in 5 days

push eventnaomijub/translixir

Julia Naomi

commit sha ada6c4dc89b042c2889098615ff0fead1be11618

release 0.1.1

view details

push time in 5 days

push eventnaomijub/translixir

Julia Naomi

commit sha 497604fb05107c2a7dbb6872381e46bde6b72b8b

improved docs

view details

push time in 5 days

push eventnaomijub/translixir

Julia Naomi

commit sha 2349a46c68e3f15c10b0f2356efcd1733246c3f8

include some spec and docs

view details

Julia Naomi

commit sha 048c46f78e4b1b68d13f143e789a16ea30d33d2f

include example

view details

push time in 5 days

push eventnaomijub/translixir

Julia Naomi

commit sha 1db0f409b760efb816b22653c910d55f3673ca3b

include client tests

view details

push time in 5 days

push eventnaomijub/translixir

Julia Naomi

commit sha 267ae7099ab02dfdc4390452d319757fdac54cb8

Refactors Client and creates other endpoints

view details

push time in 5 days

delete branch naomijub/Eden

delete branch : bumps-elixir

delete time in 7 days

push eventnaomijub/brcode

Julia Naomi

commit sha 30f79b1ef829730eefa503d5c745e3b90a149414

Update README.md

view details

push time in 7 days

issue commentnaomijub/brcode

Throws UnsatisfiedLinkError (clojure)

Do you have this flag export LD_LIBRARY_PATH=.?

if yes, can you try this build from source and put the .so in the root of your project?

madstap

comment created time in 7 days

push eventnaomijub/brcode

Julia Naomi

commit sha 6d1b9713963ed87fb0c6386f2c89f011c925c86c

Update README.md

view details

push time in 7 days

issue commentrusterlium/erlang_nif-sys

Compile error when building with Cargo

I got stuck from Rustler ~0.21, I did not use intentionally

naomijub

comment created time in 7 days

push eventnaomijub/translixir

Kian-Meng, Ang

commit sha 5cf7cd3fea6db6d2f8947963c7a333061c489a68

Misc HTML doc generation changes List of changes: - Clean up and code format module config - Add ex_doc module for html doc generation - Update missing details in README - Fix module app name - Badges and more badges! - Fix cannot generate HTML doc in Makefile - Add license and changelog as part of doc

view details

Julia Naomi

commit sha 70a2e7dbd30abca86e29fe2ef2c228e94af9685d

Merge pull request #1 from kianmeng/misc-doc-changes Misc HTML doc generation changes

view details

push time in 7 days

PR merged naomijub/translixir

Misc HTML doc generation changes

List of changes:

  • Clean up and code format module config
  • Add ex_doc module for html doc generation
  • Update missing details in README
  • Fix module app name
  • Badges and more badges!
  • Fix cannot generate HTML doc in Makefile
  • Add license and changelog as part of doc

Screenshot of the changes.

image

+54 -21

1 comment

5 changed files

kianmeng

pr closed time in 7 days

pull request commentnaomijub/translixir

Misc HTML doc generation changes

Wow thanks! I haven't had enough time to fix this infos. I just open this repo and already has a PR.

kianmeng

comment created time in 7 days

issue commentnaomijub/edn-rs

Add context and cause to parse error messages

But you are welcome to try to include failed line

jcsoo

comment created time in 7 days

issue commentnaomijub/edn-rs

Add context and cause to parse error messages

It returns the symbol that broke. We don't identify edn by line, so we cannot include the line that the error occurred. As of now, I cannot include lines, but maybe in the future I can take a look at this.

What we could add is the following x chars, does this help?

jcsoo

comment created time in 7 days

issue commentnaomijub/edn-rs

Symbols beginning with the characters 't', 'f' or 'n' cannot be parsed.

Looking at this

jcsoo

comment created time in 7 days

create barnchnaomijub/edn-rs

branch : symbols-begin-with-tfn

created branch time in 7 days

issue closedotaviopace/edn-derive

Relationship between this crate and serde?

Hi, I'm currently using edn-rs to parse an edn file, and I want to serialize the parsed Edn object into JSON. I was hoping that the Edn object would implement serde's Serialize trait, but it doesn't look like that is the case.

Does edn-derive fill this role? What relationship does it have with serde?

closed time in 7 days

TheButlah

create barnchnaomijub/translixir

branch : master

created branch time in 7 days

created repositorynaomijub/translixir

created time in 7 days

PR opened jfacorro/Eden

Bumps elixir
+20 -15

0 comment

2 changed files

pr created time in 7 days

create barnchnaomijub/Eden

branch : bumps-elixir

created branch time in 7 days

push eventnaomijub/Eden

Julia Naomi

commit sha 273d0515f33d6ac4f2cc261ae4b7e27a1ab884db

updates elixir version

view details

push time in 7 days

fork naomijub/Eden

edn (extensible data notation) encoder/decoder for Elixir

http://jfacorro.github.io/Eden/

fork in 7 days

startedjfacorro/Eden

started time in 7 days

issue openedrusterlium/erlang_nif-sys

Compile error when building with Cargo

error: failed to run custom build command for `erlang_nif-sys v0.6.4`

Caused by:
  process didn't exit successfully: `/Users/julia.boeira/Documents/bercode/native/io/target/debug/build/erlang_nif-sys-1d4db100cb37e287/build-script-build` (exit code: 101)
  --- stdout
  Unsupported Erlang version.

  Is the erlang_nif-sys version up to date in the Cargo.toml?
  Does 'cargo update' fix it?
  If not please report at https://github.com/goertzenator/erlang_nif-sys.

  --- stderr
  thread 'main' panicked at 'gen_api.erl encountered an error.', /Users/julia.boeira/.cargo/registry/src/github.com-1ecc6299db9ec823/erlang_nif-sys-0.6.4/build.rs:28:22
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

created time in 7 days

push eventnaomijub/brcode

Julia Naomi

commit sha e7434bb567826402018413c27ee43f0c82eab02d

Update README.md

view details

push time in 7 days

push eventnaomijub/brcode

Julia Naomi

commit sha 2be44172706e4c13d9a29843dd75ae96447ec103

Delete node.js.yml

view details

push time in 7 days

push eventnaomijub/neon-brcode

Julia Naomi

commit sha e52aa827735fe03592bf1394cf265328095c8a9d

license

view details

push time in 7 days

push eventnaomijub/neon-brcode

Julia Naomi

commit sha 4481f23c40ab566a9722bfb2ec6bcbdacc11f7b6

Update README.md

view details

push time in 7 days

push eventnaomijub/brcode

Julia Naomi

commit sha bf49495a1772a77e54d6b2983fa07d659c3a4dae

removes unused binaries

view details

push time in 7 days

push eventnaomijub/brcode

Julia Naomi

commit sha 2ad47843e7f89ceb3267aada00c004c39bbecd94

Deprecates node-brcode in favor of neon-brcode

view details

push time in 7 days

push eventnaomijub/neon-brcode

Julia Naomi

commit sha 8ef1ba196b4a71c1edc63c31ea0ec9a8c52a5d84

stable version with info

view details

push time in 7 days

more