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
Please write alt text, it not only helps sight impaired people, but also people with bad connection, out of data, trying to save battery, or browsing in places where unexpected inappropriate images can cause trouble. It's the normal thing to do

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.

猫迷迷糊糊过了安检。
没有违禁品。
因为也没带任何东西。
核对了肉球和鼻纹就可以。

猫进入飞船,被引导坐在靠窗的位置。
外面是夜空,向下看不到地面。
猫第一次看到自己离星星这么近。
数得出的祖辈都是人养家猫,没什么户外经验。

猫把蜷起来趴着的自己稍微舒展一点,之前痛的地方好像变轻松了,开始觉得有点饿。
轻快的小推车路过,笑着问猫:牛肉还是鸡肉?
猫舔舔嘴唇,说,牛肉和鸡肉。再来点猫条条。
小推车上果然有猫条这种好吃又不太健康的零食。
吃饱以后很快又困了。

再次醒来,飞船上循环放着介绍节目。
过关以后就可以办手续,可以挑选自己的居住地。
猫想找一个有椰子树的海岛,屋子还是得多几个房间。
居住地的资料看得猫眼花缭乱,感觉身体完全不痛了。

终于到了,猫走出飞船来到大厅。
突然听到广播叫自己的名字,让去取行李。
猫很惊讶,因为自己踏上旅途什么都没带。
猫脚步轻盈地走过去,工作人员拿出一大堆包裹好的物品,等猫签收:
这是地球上和你一起生活过的人类和小动物给你的爱,他们很想你。

猫推着满满一大车行李,心想,居住地可得替你们好好挑挑,等你们很久以后到了,一定都喜欢。

#

"It’s a basic human right to have a private conversation. To have those rights realized in the digital world, the best technology we have is end-to-end encryption. "
eff.org/deeplinks/2023/07/uk-g
I2P has an application layer, and it needs more people creating communication options for people to use on the network.

Yeah, I know it's a function pointer, but how am I going to represent this in JNA using Java?

Show thread

Working with JNA in Kotlin. Tried to write a compiler plugin to save me from writing annotations again and again.

I did a quick PoC, and found out that you not only need a compiler plugin to make kotlinc work, but also an IDEA plugin to make IDEA not complain about your magic.

The kotlinc works fine and the code runs fine. But IDEA keeps warning me about the errors that my plugin fixed.

I give up.

Windows is such a nightmare to work with C stuff.

I want to write a JNA bind for llamacpp, but find out that there are no native build instructions for Windows (I won't count CYGWIN or MinGW as native).

As a person who only has access to Windows, I guess that's why I chose Java (JVM) and decided to stick with it.

For FFM I'm still waiting for the next LTS. Now I'm using JDK 17, the next LTS should be 21 and then I will try the new Project Panama.

Another alert that I never expected to see.

Flood in Beijing? That's wild.

Google 正在向 Chrome/Chromium(包括基于 Chromium 的 Edge、Opera、Brave 等套壳浏览器)增加一项叫做「Web Environment Integrity(WEI)」的新功能。它会让网站有权决定是否要给使用某些浏览器的用户提供服务。

虽然 Google 如此义正严词一本正经,但这个功能最有可能的实际应用场景会是这样的:政府有能力要求用户使用特定版本的浏览器访问互联网(比如有政府安插的后门的版本);Netflix 等平台有更大的 DRM 控制能力;Google 等企业有能力拒绝向阻碍他们盈利的浏览器/插件提供服务。

打个比方,去广告插件谁不用呢?有 WEI 之后会是这样的:当你想在某个网站看一篇文章,这个网站会从后台询问 WEI 服务(由 Google 掌管),WEI 识别出你的浏览器正在使用去广告插件,于是告知这个网站你的浏览器是「不合规的」,最终,在你输完网址并回车时你会看到整个网站都无法打开,或完全看不到文章,只能看到一个出错页面。

这真的很扭曲。

ref fsf.org/blogs/community/web-en

So... YouTube started recommending videos about making paper and ink from grass and leaves...

In case you need to save a civilization, here are the tips:

1. use grass to make paper instead of leaves, unless you don't really have an option.
2. Leaves can be a good material to make ink
3. With old technics, you often need large amount of things to work. Small batches may fail.

----
Making Paper From Grass... and Printing On It
by Cory Morrison
youtube.com/watch?v=FOb34_s-K1
----
Making Ink From Leaves... DIY Leaf Ink!
by Cory Morrison
youtube.com/watch?v=MRtVvK4Qp2
-----
Can Leaves Be Turned Into Paper? DIY Experimental Leaf Paper
by Cory Morrison
youtube.com/watch?v=V10GaezQWh

@fulkrum 我看最近(其实已经有一段时间了)好多发行版本都转用nftables了,感觉比iptables强多了(

@board 特别紧急的情况 希望您能帮到我
需求是:国内哪个城市适合单女短租三-四个月,平时可以自己买菜做饭,无其他娱乐上网之类的需求,月开销控制在三千以内的?

我的困境:七月末从日本旅游回来后就很想念日本的生活,开始准备考今年12月的jlpt n3,po主是今年应届生,目前不想工作(尤其是和原专业相关的),回家第一天就受到父母左右声道的人格贬低➕辱骂长达一个多小时,那天晚上写了遗书、卡密码都告诉朋友了,差点难受到要吞药,今天在星巴克看了一天的标日,回来又被我妈大声责怪养你这么多年有什么用之类的话…
感觉再在家里呆着我可能活不到八月中。

看到这里非常感谢您,谢谢您的建议!

YouTube kept recommending this video while I was watching ilmango's ATFC series (Minecraft with Auto-TerraFirmaCraft mod pack). At first, I don't really want to take what algorithm gives me and get trained on it. But giving it a second chance, I eventually watched it. And it's brilliant.

Paper is an interesting material.

----
Recycle Cardboard into Anything with 3D Printing!
by XYZAidan
youtube.com/watch?v=0ItPfhx3ul
----
Auto-TerraFirmaCraft (TFC + Create)
By enigmaomega_
curseforge.com/minecraft/modpa
----
ilmango's ATFC series
youtube.com/watch?v=UtmT3qrU04

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?

上次和一位象友说有的植物喜欢小盆大身体,其实大部分地下有贮存营养的茎或根的植物都是,特别需要空气,对营养和水反倒要求没那么高(有余粮~)。这个文竹我几年一直没换过盆,三点五寸盆。它出超长无叶的攀缘枝我就剪掉,长到现在还是充满天然的秩序。我家芋类的盆子也都超小。养花的话也要看有没有标注喜欢pot-bound,也就是整块土被根抱住的倾向,这时就要用小点的盆。

#家庭绿植蓝图

要采购医疗器材、最新药品和提高医务人员待遇时怎么说的来着?国家穷,没钱 :0240:

Show older
Qoto Mastodon

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