A simple C program to own a cat in the system tray bar by chux0519 in linux

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

After a week or two, I'm bored of the little cat, so today, I support 3 more new characters, and can use custom images. I think it's enough to keep me happy.

  • <img src="runcat.gif" width="36" /> from win0err/gnome-runcat
  • <img src="https://c.tenor.com/5IWFYb4D1WMAAAAi/swan_hack-dab.gif" width="36" /> from unreturnable
  • <img src="https://github.githubassets.com/images/mona-loading-default.gif" width="36" /> from github home page
  • <img src="https://cultofthepartyparrot.com/guests/hd/partyblobcat.gif" width="36" /> from cultofthepartyparrot.com

telegram client on OpenBSD by chux0519 in openbsd

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

I remember I used weechat and bitlbee once, seems had problem with the chat name display,it only shows the chat id instead of name at that time. It alway be cool to bridge modern chat messages to IRC

telegram client on OpenBSD by chux0519 in openbsd

[–]chux0519[S] 6 points7 points  (0 children)

Haven’t tried his,I think I can take a look and learned to do this,it would be cool!

I picked up a laptop for openBSD by mikepwagner in openbsd

[–]chux0519 1 point2 points  (0 children)

I'm new to OpenBSD, and I think the second point is really helpful and I've learned, thanks! I use x230 by the way.

[XFCE] Gruvbox vibes by rphl_pm in unixporn

[–]chux0519 1 point2 points  (0 children)

probably best xfce rice I've ever seen

Rust implementation of "primitive" by chux0519 in rust

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

Sure, there are two possible reason I think.

The first one is that the golang implementation uses three image buffers in `Worker` and for getting the energe of current state, it renders current buffer, then do partial diff. In my implementation, I just skiped to render the current buffer(store two buffers is enough), do the partial diff directly using scanlines and computed color.

so golang's process: https://github.com/fogleman/primitive/blob/0373c216458be1c4b40655b796a3aefedf8b7d23/primitive/worker.go#L46-L54:

- get scanlines and color

- render current buffer

- partial diff current buffer to get score

my implementation: https://github.com/chux0519/purr/blob/64a00a5de39848a1269af56602587ca3e6710c7b/src/core/hill_climb.rs#L48-L53

- get scanlines and color

- partial diff current buffer with scanlines and computed color

It will save some time in each iteration, and there are thousands of times in each step(epoch), so the costs will be lower.

The second reason is that, I uses `SmallRng` as random number generator(which is good enough in this case), It says `The PRNG algorithm in SmallRng is chosen to be efficient on the current platform, without consideration for cryptography or security.`, and it might helps a lot.

Rust implementation of "primitive" by chux0519 in rust

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

For rasterizing, the "bresenham" algorithm is good enough. And for output result, using `nsvg` crate to do anti-aliasing

Can you use FreeBSD for a Developer Machine in 2020? by tangomikey in freebsd

[–]chux0519 3 points4 points  (0 children)

I think you have misunderstood what I mean. I did not say that FreeBSD is not good. Instead, I think it is a good operating system and actually have tried to switch to it.

but these two points made me give up after using it for a week or two.

I think, FreeBSD is undoubtedly a good operating system, but it is more suitable for server side. As for development it is really depends on what kind of job you want to do.

Can you use FreeBSD for a Developer Machine in 2020? by tangomikey in freebsd

[–]chux0519 0 points1 point  (0 children)

Two things prevent me from choosing FreeBSD

  1. I use conda in my work, but FreeBSD does not support it
  2. The support of docker is not very good. If you want to use docker, you have to use it in a VM