PIX BR Code Parser for Rust
dreamteam-challanges/pic-pay-challenge 3
https://picpay.com/jobs/desafio-backend-java
Math basics for a game engine.
search and display videos using youtube api
Banking system with Pedestal and GraphQL
A spike with Clojure on parsing XML data to JSON format
This is the repo of our API example for the lecture. Enjoy <3
startedpiderman314/bardecoder
started time in 6 hours
issue closednaomijub/brcode
https://kotlinlang.org/docs/reference/native/c_interop.html
closed time in 7 hours
naomijubissue 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
comment created time in 7 hours
pull request commentnaomijub/edn-rs
This is a propose change for issue https://github.com/naomijub/edn-rs/issues/70
comment created time in 7 hours
PR opened naomijub/edn-rs
Performance loss around 2.5 to 4% parsing example at 12us
pr created 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
jarhodes314issue 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
comment created time in 2 days
push eventnaomijub/transistor
commit sha c30e88b863c18d361828802508d5ca9a86908d50
Issue 64 (#65)
push time in 2 days
PR merged naomijub/transistor
- [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}));
}
pr closed time in 2 days
push eventnaomijub/transistor
commit sha c4473db59fbc48eddf87de5d2d1034b8e8271695
changes 500 error to bad response error
commit sha a8d855ca3747ef1955b674e24ddcbdafba50a228
renames errors and changes or to or_else
commit sha 584f910e6cefc6e3fa4563b4fb2cbb2bc177ce1d
Merge pull request #67 from naomijub/bad-response-error changes 500 error to bad response error
push time in 2 days
push eventnaomijub/transistor
commit sha a8d855ca3747ef1955b674e24ddcbdafba50a228
renames errors and changes or to or_else
push time in 2 days
Pull request review commentnaomijub/transistor
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
comment created time in 2 days
Pull request review commentnaomijub/transistor
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
comment created time in 2 days
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.
comment created time in 2 days
Pull request review commentnaomijub/transistor
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
comment created time in 2 days
Pull request review commentnaomijub/transistor
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
comment created time in 2 days
Pull request review commentnaomijub/transistor
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.
comment created time in 2 days
Pull request review commentnaomijub/transistor
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
comment created time in 2 days
push eventnaomijub/translixir
commit sha 31a5437457c72b9e6e9bc45b4bc170ded691e306
Include timed entities
push time in 3 days
issue commentjfacorro/Eden
if it helps, I am using it here https://github.com/naomijub/translixir
comment created time in 3 days
push eventnaomijub/neon-brcode
commit sha 8fc53d0270908d956674dae2d75dad285049781b
bumps version
push time in 3 days
issue openednaomijub/transistor
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
https://github.com/naomijub/transistor/issues/64
comment created time in 3 days
issue commentjfacorro/Eden
Sure give me a @ when this is ready
comment created time in 3 days
issue commentjfacorro/Eden
Thanks
Are you suggesting renaming jfacorro/elixir-array and publishing it to hex to avoid depending on github? Yes
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?
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
naomijubissue commentnaomijub/edn-rs
Symbol starting with true, nil and false fail when parsed
029944f
comment created time in 3 days
push eventnaomijub/edn-rs
commit sha 029944f0921eba1ffbb37c8ceeed05f79417d129
make boolean/nil parser more flexible
push time in 3 days
issue commentnaomijub/transistor
`entity_tx` panics if the id provided is non-existent
I will take a look, thanks
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
deps-outdated:
mix hex.outdated
dialyzer:
mix dialyzer --format dialyxir
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
closed time in 3 days
naomijubissue closednaomijub/translixir
lint: format
mix credo --strict
format:
mix format
{:credo, "~> 1.0.0", only: [:dev, :test, :ci], runtime: false}
closed time in 3 days
naomijubpush eventnaomijub/translixir
commit sha 569444ece61ef218dbba202ccbd1750115e06c27
uses eden to parse EDN responses
push time in 3 days
issue openedjfacorro/Eden
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
commit sha 219e1d625ae3ee1f0b25283a8fbe04ecf0e8f0fb
Improves readme
push time in 3 days
push eventnaomijub/neon-brcode
commit sha 64963c895714c9971562ac581d92e59a28f6d887
function to generate svg file
push time in 3 days
push eventnaomijub/neon-brcode
commit sha 34cd8abdba2c9aaddccea15004f9504ade946ea9
1. Fix typescript type erros [BREADKING] 2. Expose extra brcode functions
push time in 3 days
push eventnaomijub/neon-brcode
commit sha 5bad31ecb3fa3d05a1489df73b9a5b5f06f8f2c9
bumps version to ts
push time in 5 days
push eventnaomijub/neon-brcode
commit sha 75a3766501e7426a7d823d2f711abd499c1bfd41
feat: rewrite to typescript (#1) supports tsc in build
push time in 5 days
PR merged naomijub/neon-brcode
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?
pr closed time in 5 days
push eventnaomijub/translixir
commit sha dd97aa0ee5c9fbec6241efe94d1dac03366be268
format
push time in 5 days
issue openednaomijub/translixir
lint: format mix credo --strict
format: mix format
created time in 5 days
push eventnaomijub/translixir
commit sha ada6c4dc89b042c2889098615ff0fead1be11618
release 0.1.1
push time in 5 days
push eventnaomijub/translixir
commit sha 497604fb05107c2a7dbb6872381e46bde6b72b8b
improved docs
push time in 5 days
push eventnaomijub/translixir
commit sha 2349a46c68e3f15c10b0f2356efcd1733246c3f8
include some spec and docs
commit sha 048c46f78e4b1b68d13f143e789a16ea30d33d2f
include example
push time in 5 days
push eventnaomijub/translixir
commit sha 1db0f409b760efb816b22653c910d55f3673ca3b
include client tests
push time in 5 days
push eventnaomijub/translixir
commit sha 267ae7099ab02dfdc4390452d319757fdac54cb8
Refactors Client and creates other endpoints
push time in 5 days
push eventnaomijub/brcode
commit sha 30f79b1ef829730eefa503d5c745e3b90a149414
Update README.md
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?
comment created time in 7 days
push eventnaomijub/brcode
commit sha 6d1b9713963ed87fb0c6386f2c89f011c925c86c
Update README.md
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
comment created time in 7 days
push eventnaomijub/translixir
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
commit sha 70a2e7dbd30abca86e29fe2ef2c228e94af9685d
Merge pull request #1 from kianmeng/misc-doc-changes Misc HTML doc generation changes
push time in 7 days
PR merged naomijub/translixir
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.

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.
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
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?
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
comment created 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
TheButlahissue commentotaviopace/edn-derive
Always apply `non_snake_case` to structs from edn-derive
Nice
comment created time in 7 days
push eventnaomijub/Eden
commit sha 273d0515f33d6ac4f2cc261ae4b7e27a1ab884db
updates elixir version
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
commit sha e7434bb567826402018413c27ee43f0c82eab02d
Update README.md
push time in 7 days
push eventnaomijub/brcode
commit sha 2be44172706e4c13d9a29843dd75ae96447ec103
Delete node.js.yml
push time in 7 days
push eventnaomijub/neon-brcode
commit sha e52aa827735fe03592bf1394cf265328095c8a9d
license
push time in 7 days
push eventnaomijub/neon-brcode
commit sha 4481f23c40ab566a9722bfb2ec6bcbdacc11f7b6
Update README.md
push time in 7 days
push eventnaomijub/brcode
commit sha bf49495a1772a77e54d6b2983fa07d659c3a4dae
removes unused binaries
push time in 7 days
push eventnaomijub/brcode
commit sha 2ad47843e7f89ceb3267aada00c004c39bbecd94
Deprecates node-brcode in favor of neon-brcode
push time in 7 days
push eventnaomijub/neon-brcode
commit sha 8ef1ba196b4a71c1edc63c31ea0ec9a8c52a5d84
stable version with info
push time in 7 days