fanybook

Results 14 comments of fanybook

No, I wonder if "Linux generic MySQL" can be successfully installed on apline > https://wiki.alpinelinux.org/wiki/Running_glibc_programs > https://github.com/sgerrand/alpine-pkg-glibc/releases > https://dev.mysql.com/downloads/mysql/

```js const attributes = {} attributes[`${this.idAttribute}`] = this.attributes[this.idAttribute] ``` replace by ```js const attributes = { [this.idAttribute]: this.attributes[this.idAttribute] } ```

I want to get a hash using $2y$ prefix because i mixed use of php and js My password was made by Laravel(php) I hope hash check is true in...

@silsuer 你要实现的东西太多了,orm,路由都自己实现,那得有多充足的时间啊 写完路由,再转到 http/fasthttp 上,还得实现中间件,主要是 orm 想想就累

@ricardograca I don't know where to write test code. Can you give me a demonstration? I'm a nodejs newbie,i am phper.

@dotqi 好奇请教一下 UTF16 和 UTF8 在中文长度上有区别么?

> package main > > import ( "fmt" "unicode/utf16" ) > > func main() { val := "你好" fmt.Println(val) u16 := StringToUTF16(val) fmt.Println("u16", len(u16), u16) // u16 3 [20320 22909...

@dotqi 分析: 1. size = api.SQLULEN(len(d)) 看你改的方式,实际上是 len(s),其实就是 []byte 的长度 2. 看这个库原来的方式,比较奇怪,它底层是用的 cgo 调的 c 的 odbc,不明白它为什么转 utf16 而不是转 byte,因为 c 里边都是 char,api.StringToUTF16 给字符串后面加了一个 \0,就是告诉 c 这是一个字符串,它转完 utf16 又给长度*2 做了...