profile
viewpoint
Dominic Barnes dominicbarnes @segmentio Burlingame, CA http://dbarnes.info

dominicbarnes/autoexec.js 2

Automatically execute JS code depending upon document.body #id and .class

dominicbarnes/bootstrap 1

HTML, CSS, and JS toolkit from Twitter

dominicbarnes/bootstrap-helpers 1

View Helpers for generating Twitter Bootstrap compatible HTML

dominicbarnes/amazon-redshift-utils 0

Amazon Redshift Utils contains utilities, scripts and view which are useful in a Redshift environment

dominicbarnes/angular-ui-bootstrap 0

Native AngularJS (Angular) directives for Twitter's Bootstrap. Small footprint (5kB gzipped!), no 3rd party JS dependencies (jQuery, bootstrap JS) required!

dominicbarnes/apex 0

Build, deploy, and manage AWS Lambda functions with ease (with Go support!).

dominicbarnes/Aristo-jQuery-UI-Theme 0

The "Aristo" theme for Cappuccino ported to a jQuery UI Theme

dominicbarnes/async 0

Async utilities for node and the browser

dominicbarnes/async-debouncer 0

Manage asynchronous calls, where only the most recent is relevant and all others are cancelled

dominicbarnes/batch 0

Async batch with concurrency control and progress reporting for nodejs and the browser

startedchris-zen/kiro-synth

started time in 10 hours

startedryansolid/solid

started time in 10 hours

fork ianstormtaylor/awesome-nodejs

:zap: Delightful Node.js packages and resources

https://node.cool

fork in 20 hours

startedTTLabs/EvaporateJS

started time in 21 hours

fork otterley/amazon-eks-custom-amis

Amazon EKS custom AMIs based on Red Hat Enterprise Linux, CentOS, Debian, and Ubuntu.

fork in 21 hours

startedkrzkaczor/ts-essentials

started time in a day

startedMedFlyt/mfsqlchecker

started time in a day

startedandrepxx/go-dsp-guitar

started time in a day

created repositorymikeal/mikltrees

Hash consistent sort trees

created time in a day

startedKyleBanks/goodreads

started time in 2 days

startedsadko4u/lsp-dsp-units

started time in 2 days

startedmartinlindhe/subtitles

started time in 2 days

issue closedsegment-boneyard/mysql

Can not "get" project

It looks that moving this project to the "boneyard" introduced an issue with a module dependency. I know this project is now published "as is", but it might be worth noticing that - in its current state - it's no longer usable.

go get -u github.com/segment-boneyard/mysql/cmd/source-mysql
# github.com/segment-boneyard/mysql/cmd/source-mysql
../../../../go/src/github.com/segment-boneyard/mysql/cmd/source-mysql/main.go:9:16: cannot use &mysql.MySQL literal (type *mysql.MySQL) as type "github.com/segment-boneyard/mysql/vendor/github.com/segment-sources/sqlsource/driver".Driver in argument to sqlsource.Run:
	*mysql.MySQL does not implement "github.com/segment-boneyard/mysql/vendor/github.com/segment-sources/sqlsource/driver".Driver (wrong type for Describe method)
		have Describe() (*"github.com/segment-sources/mysql/vendor/github.com/segment-sources/sqlsource/domain".Description, error)
		want Describe() (*"github.com/segment-boneyard/mysql/vendor/github.com/segment-sources/sqlsource/domain".Description, error)

closed time in 2 days

tvandergeer

issue commentsegment-boneyard/mysql

Can not "get" project

Never mind! It's still working. Needed to use the following get command:

go get -u github.com/segment-sources/mysql/cmd/source-mysql

Now it's installed in my GOPATH.

tvandergeer

comment created time in 2 days

startedandrewiggins/v8-deopt-viewer

started time in 2 days

pull request commentsegmentio/encoding

json: remove trailing dot in error fields

thank you for improvement it, I appreciate it!

On Sun, Nov 22, 2020, 1:03 PM Achille notifications@github.com wrote:

Closed #51 https://github.com/segmentio/encoding/pull/51.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/segmentio/encoding/pull/51#event-4025251619, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAB7YY2BUC77JCBUPQA7D3SRF4CFANCNFSM4SBGL3EQ .

frioux

comment created time in 3 days

startedkevinroast/phoria.js

started time in 3 days

startedstewdio/cornell-torus

started time in 3 days

startedmlknz/spaceship-indweller

started time in 3 days

startedKnucklehead-McSpazatron/WolfRT-WebGL-Demo

started time in 3 days

issue commentsegmentio/encoding

json.UnmarshalTypeError appends extra dot

I tagged v0.2.4 with the fix.

kiyonlin

comment created time in 3 days

created tagsegmentio/encoding

tagv0.2.4

Go package containing implementations of efficient encoding, decoding, and validation APIs.

created time in 3 days

delete tag segmentio/encoding

delete tag : v0.1.18

delete time in 3 days

created tagsegmentio/encoding

tagv0.1.18

Go package containing implementations of efficient encoding, decoding, and validation APIs.

created time in 3 days

PR closed segmentio/encoding

json: remove trailing dot in error fields enhancement

While trying to make this change I sorta came around to the idea that the errors this package returns are more informative than what encoding/json provides. So I mostly just tidied them up by removing the trailing dot.

Partially fixes #40

+34 -6

1 comment

1 changed file

frioux

pr closed time in 3 days

pull request commentsegmentio/encoding

json: remove trailing dot in error fields

Solved by https://github.com/segmentio/encoding/pull/57

frioux

comment created time in 3 days

push eventsegmentio/encoding

Joey

commit sha 624a713ea5316298c7c2c75a829410ffa0374df0

🩹 fix #40 (#57) * 🩹 fix #40 Improvement of #51 Co-Authored-By: kiyon <kiyon@gofiber.io> * 🧹 simplify if statement Co-Authored-By: kiyon <kiyon@gofiber.io> Co-authored-by: kiyon <kiyon@gofiber.io>

view details

push time in 3 days

issue closedsegmentio/encoding

Error messages could be improved

This demonstrates the issue: https://play.golang.org/p/SwaihNVSqAl

I personally would be fine with the field being set to a or A, but a. is pretty clearly wrong.

closed time in 3 days

frioux

PR merged segmentio/encoding

🩹 fix #40

Improvement of #51 and will fix https://github.com/segmentio/encoding/issues/56 & https://github.com/segmentio/encoding/issues/40

https://github.com/segmentio/encoding/pull/51#discussion_r499374859 adding a method to the UnmashalTypeError is not possible since you can't extend existing types from another package. Let me know what you think 👍

Co-Authored-By: kiyon kiyon@gofiber.io

+16 -9

0 comment

1 changed file

Fenny

pr closed time in 3 days

issue closedsegmentio/encoding

json.UnmarshalTypeError appends extra dot

Hey, guys! We met an issue(gofiber/fiber#1012). And it turns out that json.UnmarshalTypeError doesn't have same behavior with standard "encoding/json".

Here is the reproduction:

With "encoding/json" playgrould

package main

import (
	"encoding/json"
	"fmt"
)

type Cc struct {
	Id   int    `json:"id" xml:"id" form:"id"`
	Name string `json:"name" xml:"name" form:"name"`
}

func main() {
	var s Cc
	err := json.Unmarshal([]byte(`{ "id":"123" }`), &s)
	switch err.(type) {
	case *json.UnmarshalTypeError:
		unmarshalTypeError := err.(*json.UnmarshalTypeError)
		fmt.Printf("%v\n", unmarshalTypeError.Field)
	}
}

Output is id

With "github.com/segmentio/encoding/json" playground

package main

import (
	"github.com/segmentio/encoding/json"
	"fmt"
)

type Cc struct {
	Id   int    `json:"id" xml:"id" form:"id"`
	Name string `json:"name" xml:"name" form:"name"`
}

func main() {
	var s Cc
	err := json.Unmarshal([]byte(`{ "id":"123" }`), &s)
	switch err.(type) {
	case *json.UnmarshalTypeError:
		unmarshalTypeError := err.(*json.UnmarshalTypeError)
		fmt.Printf("%v\n", unmarshalTypeError.Field)
	}
}

Output is id.

Edit: I'm sorry, it seems to be kind of duplicated with #40

closed time in 3 days

kiyonlin
more