Show newer

I use ksp for code generation, so you don't have to write those ugly hacks for kotlin.

You write something like p1 and got something like p2 and p3 automatically.

Show thread

llamacpp on JVM, powered by JNA.

For now it's only quantize, but surely it will develop into something more completed and interesting, like a multi-user chat server?

Maybe I should move this project out of playground folder and publish to github.

Another alert that I never expected to see.

Flood in Beijing? That's wild.

I have never experienced this before (in Beijing). Several alerts in a row, lightning, heavy rain, and flood.

Might be my first time experiencing a typhoon?

Setting up a NUC for my friend. I was plan to use some off the shelf solutions like truenas or something, until he told me the demand.

He want a usable linux desktop, while it also provides a way for accessing remotely andprivately. Also he want a media center and a storage device. And it would be so great if I can somehow put a software router in it too.

So I decide to go with opensuse Tumbleweed with Gnome Wayland. Setting up a proxy would ease the internet issues. Then, I use tailscale for private remote access and plex for media center. I also installed cockpit for management (so I can know what's going on if something going wrong in the future).

There are a lot of changes to the original plan. And mostly because I don't know how to create a bridge using want interface under network manager (I'd prefer wicked), so the kvm and openwrt will not run on this nuc.

The plex is a huge pain too. It keeps failing to scan the files and turns out it's me forgetting to change the permissions. I eventually setup a cron script running every minute to apply 777 to that folder, hopefully won't cause performance issue.

Also, btrfs support from opensuse is great. If something goes wrong, I can told him just boot from a previous working snapshot.

llama 2 13b chat f16 model show off.

That's brilliant!

Can't imagine that's running on my laptop. That excitement reminds me of the time when I make a LED blinking using C51 when I was 12.

Switched to 13B chat f16, it can speak Chinese!!!!!

Well, Chinese is very slow, I think it might due to token related issues. I guess it treat each character as a token

I'm sure facebook/meta still has a long way to go.

I never expected to be denied by a LLM.😂

“compromise”

Considering I don't write a lot these days, I eventually replaced the carbon black ink with this cartridge ink. It's not good (in terms of visual and my personal preference), but it won't dry in the pen and cause a lot of problems and potentially kill the pen.

I think that's the best I can get. The raw image is ~90MB, and the picture 1 is jpg compressed (~5MB). And the Picture 2 is decoded from picture 1.

For this picture, I only modified Y channel, since UV channel will affect the color and 8x8 block with "wrong" color is super sus.

Also, the way I hide bits into S matrix of SVD is a kind of quantization. With d = 46, bit 0 is `[floor(v / d) + 0.25] * d`, and bit 1 is `[floor(v / d) + 0.75] * d`. A bigger d will result banding and low picture quality. But smaller d won't encode info well.

You have to subscribe to YouTube premium to use the screen lock feature? (The feature to prevent false touch when watching videos).

If you have to subscribe to the premium plan to get high bitrate videos, that's acceptable. But screen lock? VLC has this feature for years, and it's free of charge.

Google, really? 🤔

Tried to implement a paper based on its abstract, because I'm not willing to pay 40 USD. The result is a mix of success and failure.

The paper introduced a steganography called DWT-DCT-SVD, which is applying DWT to a picture and then applying DCT and finally encoding bits into the S matrix of the SVD operation.

The first picture is encoded picture after jpeg compression (photoshop, quality 8, raw picture is 90MB in png), picture 2 is the intended decoded result, and picture 3 is the jpeg decoded result. I would say not bad...

... unless you zoom in on the picture and notice there are a lot of stripes giving off the fact that this picture is suspicious (picture 4).

Even after 5 years, Detroit: Become human is still a great game to enjoy.

And let chatgpt playing it just take the game to a higher level.

Also, I feel like it's a very old game (decades ago), but actually just 5 years ago. hmmmm

Samsung dex really amazed me.

If I don't write code and do not need special things (like working with LaTeX or something), in most cast, you can live with a android device. I though android phones are just phones, cannot replace a PC. but now I finnally understand why people don't need a laptop/PC anymore.

But I still miss my spell check plugin (This post is written without any tech assist, hope you can still read what I typed, because I think I made a lot of typo and grammar mistakes).

F*ck

The epoxy works pretty well on this metal bar, but plastic is totally sh*t.

Thankfully, I ordered another epoxy that claimed is "made in Swiss", and it should arrive tomorrow. That's the last chance, for both this chair and my exhausted work.

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.