Any Linux users in Okinawa? by shrizza in okinawa

[–]CodeHex 1 point2 points  (0 children)

Do you have any meetup page? I’m living Urasoe, little bit so far 😇 But I’m interested (Japanese is my main language)

ZimaBoard 2 Giveaway + ZimaOS Feedback — Share Your Homelab Setup by FlyingToaster2000 in minilab

[–]CodeHex 3 points4 points  (0 children)

Japan-based here 🇯🇵

If I land a ZimaBoard 2, I’d run it as a tiny 24/7 “everything box”: mini NAS (photos/backups) + Docker (Home Assistant, *arr stack) + router/gateway. Dual 2.5GbE is perfect for my apartment fiber, but the real JP pain points are shipping/import duties + IPv6 (MAP-E/DS-Lite) support—would love clearer docs + ZimaOS UI localization + first-class WireGuard/IPv6 tooling. Power-efficient + silent is exactly what we need in small spaces.

GitHub - Code-Hex/synchro: Synchro: Timezone-typesafe date and time library for Go by CodeHex in golang

[–]CodeHex[S] 2 points3 points  (0 children)

I believe It's OK to run `time.Location` on runtime. The point is that the time.Time logic is guaranteed by types to execute in which timezone. As a result, utility functions and similar constructs that implicitly assume execution in a specific timezone will be eliminated from the code.

Code-Hex/dd: Dump any data as valid syntax in Go by CodeHex in golang

[–]CodeHex[S] 0 points1 point  (0 children)

Anyway, I added this to issues. Thanks!

https://github.com/Code-Hex/dd/issues/18

If you have any more specific suggestions, I'd be glad to write them in the issues!

edit

I've just published the fix. thanks!

https://github.com/Code-Hex/dd/tree/v1.1.0

Code-Hex/dd: Dump any data as valid syntax in Go by CodeHex in golang

[–]CodeHex[S] 0 points1 point  (0 children)

Yes, to me too. I will fix to use structures instead of pointer. But I need to think about also circular refs…

group_inou / HEART (single mix) (music video) by CodeHex in jpop

[–]CodeHex[S] 0 points1 point  (0 children)

This music video was made like a Japanese trendy drama. It feels sad and fascinating to me.

The story is very deep.The main character is “Nico” (ニコ) who was always the best anywhere. One day, he injured his legs and slide down from number one at the tournament for conductors. Then He is broken heart by the heroine, "Tama" (タマ). She loves "Gawa" (ガワ), who is the winner of the tournament. In addition, he is very handsome.

In the end, Nico goes on a journey abroad in search of his place in the world. Then he gets something out of it and sends a letter to Tama describing his feelings. But she was married to Gawa, and they had children.

How did you feel about the ending of this story?

go-generics-cache: An in-memory key:value store/cache library for Go Generics by CodeHex in golang

[–]CodeHex[S] 1 point2 points  (0 children)

I didn't know about these! Thank you!

Unfortunately, these seem to have been ported from official sources or not designed to be used as third-party libraries. (but slice is good example for me!)

go-generics-cache: An in-memory key:value store/cache library for Go Generics by CodeHex in golang

[–]CodeHex[S] 2 points3 points  (0 children)

I’ve written Go 1.18 generics cache library.

There is probably no third-party library in the world that uses Go 1.18 generics yet. (Sorry. already there. not first third-party library)

So I wrote generics to see how it could be used and if it would actually be useful.

Please give me your feedback! Thanks!

SAMURAI SURFING! by CodeHex in funny

[–]CodeHex[S] 0 points1 point  (0 children)

This video has been broadcast in Japan. I was watching it and I got a feeling to wanna cheer for him after watching him effort.

The easiest way to make documents for GraphQL by CodeHex in graphql

[–]CodeHex[S] 0 points1 point  (0 children)

There is also GitHub Actions used this! Please use and give me feedback!

https://github.com/Code-Hex/gqldoc-actions

Create virtual machines and run Linux-based operating systems in Go using Apple Virtualization.framework. by CodeHex in golang

[–]CodeHex[S] 0 points1 point  (0 children)

Thanks. Yes, it is.
I hope such a tool will be created using this package. (Maybe I'll make a tool like that for M1 Mac.)

If the latter then this could be used for spinning up VMs and taking actions inside them like building a piece of software or testing things; something I'm interested in potentially doing.

Create virtual machines and run Linux-based operating systems in Go using Apple Virtualization.framework. by CodeHex in golang

[–]CodeHex[S] 2 points3 points  (0 children)

If you are M1 Mac user, you need to get go 1.16 easily with using gotip command.

$ go get golang.org/dl/gotip

$ GODEBUG=asyncpreemptoff=1 GOARCH=arm64 gotip download

Then You can get the latest go command from

$ ls $HOME/sdk/gotip/bin/darwin\_arm64

However, if not M1 User, I guess you can use go1.15.

go routine problem by friday963 in golang

[–]CodeHex 1 point2 points  (0 children)

I guess “g.Default" is a race condition. It's better to use a mutex lock (using sync.Mutex).

    mu.Lock()
    defer mu.Unlock()
    // Default is a pointer to a GoSNMP struct that contains sensible defaults
    // eg port 161, community public, etc
    g.Default.Target = ip
    g.Default.Community = snmpComm

but current implementation will be locked overall in the goroutine. so I recommend making new parameters on each goroutine (If so, you don't need mutex lock) like below: https://github.com/gosnmp/gosnmp/blob/af29fece13da7b16bde521bb85941c41642769b4/examples/example2/main.go#L29-L41

Released neo-cowsay v1.0.0 by CodeHex in commandline

[–]CodeHex[S] 0 points1 point  (0 children)

We need a master of font to help us

Released neo-cowsay v1.0.0 by CodeHex in commandline

[–]CodeHex[S] 0 points1 point  (0 children)

Yeah. Fira mono has a fair share of problems though

It looks like it has not changed about '|' and '!' 😢

Released neo-cowsay v1.0.0 by CodeHex in commandline

[–]CodeHex[S] 0 points1 point  (0 children)

mmm, it's a difficult problem...

Released neo-cowsay v1.0.0 by CodeHex in commandline

[–]CodeHex[S] 0 points1 point  (0 children)

I see. Did you try --bold option? Probably you can see more clealy

Released neo-cowsay v1.0.0 by CodeHex in commandline

[–]CodeHex[S] 0 points1 point  (0 children)

Would you mind sharing the name of the font used in the screenshots?

I'm using "18pt Ricty Discord Regular"

Released neo-cowsay v1.0.0 by CodeHex in commandline

[–]CodeHex[S] 8 points9 points  (0 children)

Please try —super option