• 117 Posts
Joined 2Y ago
Cake day: Mar 11, 2021

Can autocomplete make use of Malli?
Given I have a schema for the function get-stock. ```Clojure (m/-> get-stock [:cat :int] -> [:map [:price float?] [:sym string]]) ``` When I a code below, ```Clojure (-> (get-stock) ;;; the cursor is here ) ``` Can any tools show me possible keywords that are :price or :sym at the cursor?

If they used UTF-8 internally, they wouldn’t need 4 versions of the split function.

        case PyUnicode_1BYTE_KIND:
            if (PyUnicode_IS_ASCII(self))
                return asciilib_split_whitespace(
                    self,  PyUnicode_1BYTE_DATA(self),
                    len1, maxcount
                return ucs1lib_split_whitespace(
                    self,  PyUnicode_1BYTE_DATA(self),
                    len1, maxcount
        case PyUnicode_2BYTE_KIND:
            return ucs2lib_split_whitespace(
                self,  PyUnicode_2BYTE_DATA(self),
                len1, maxcount
        case PyUnicode_4BYTE_KIND:
            return ucs4lib_split_whitespace(
                self,  PyUnicode_4BYTE_DATA(self),
                len1, maxcount


How does Python 3.10’s string work?
I don't know how Python 3.10's string works internally. Is it choosing between 8-bit, 16-bit, and 32-bit per character in runtime? For example: ```Python for line in open('read1.py'): print(line) ``` Can the line string be an 8-bit, 16-bit, or 32-bit character string in each iteration? Should the line be 8-bit by default and become a 32-bit string if that line has an emoji?

[Longer version]

Thanks to Common Voice contributors, Mozilla and @wannaphong@lemmy.ml , now we have a Wav2vec2 model for recognizing Thai speech available by training a wav2vec2 model on the Common Voice dataset. Now, I can use the model to convert my speech to text on the Huggingface website. It works accurately. I love it.

However, using speech-to-text on the Huggingface website seems to be for testing. I want to use it instead of typing on LibreOffice or Firefox. I did some explorations, but I didn’t find anything that I could use.

Is there any speech recognition software on GNU/Linux which will work with a wav2vec2 model?

Wav2vec2-compatible Speech recognition software
Wav2vec2 model for recognizing Thai speech is available. However, I don't know how to use it on GNU/Linux. Is there any speech recognition software on GNU/Linux which will work with a wav2vec2 model?

Can I close all buffers related to Sly in one command on #Emacs?
I want to close all buffers with has "sly" in their name. Can I do something like this: CLOSE buffer WHERE buffer.name LIKE '%sly%';

Which file system should I use to enable the version when I open a file?
I saw in the hyperspec that I can (make-pathname .... :version ...). I didn't see anything different on Ext4. I don't have to use the version, but I'm just curious.

How can I create automated tests for unexported functions in Common Lisp?
I currently use Fiveam to test exported functions.

Last year, my laptop computer went silent after installing Fedora 35 with Pipewire.

I have no idea about monero and zcash. I like the Tezos Defi ecosystem and its governance.

Linux 5.18

Can I force an s-expression to always be in one line?
I want to do something similar to ndjson. Can I force an s-expression to always be in one line?

No, she didn’t. I saw the client didn’t work.

When the notification doesn’t work correctly on my wife’s phone, it is neither iOS’s nor XMPP’s fault. It is mine.


Maybe they don’t want foreigners to get the code.

Yes, she did. I’m going to try @snikket_im@fosstodon.org’s server maybe next year. Thank you.

My wife uses iPhone. So you should learn Swift and make a reliable XMPP client on iOS, which always notifies my wife when she has a new message.


I agree open source must be a better choice. However, I guess the Chinese gov’t will prioritize Chinese business and acquire Kingsoft instead of using existing open-source office suites.


I guess they will use WPS Office, and it won’t be Chinese only.


ขอบคุณทุกท่านที่ช่วยเข้าไปฟังเสียง อัดเสียง เลือกประโยค เพิ่มประโยคครับ

FOSS Asia Summit จะมีเรื่อง Common Voice นะครับทุ่มนึง คุณ Robert Reyes พูดครับ
FOSS Asia Summit จะมีเรื่อง Common Voice นะครับทุ่มนึง คุณ Robert Reyes พูดครับ

Even if your program clones some data instead of referring to them, it can be still fast.

『Are Arrays Really Needed? My short answer would be “No”.』
PicoLisp looks very opinionated to me. It is very interesting for me since it doesn't provide too many choices for beginners.

I always defined a function like below and passed a map.

(defn f [{:keys [a b]}] 
   (println a b))

So now I have choices.

I didn’t know that I can do this in 1.10.

(defn f [& {:keys [a b]}] (println "A" a " B" b))

@thep@lemmy.ml มีความคิดเห็นบน Facebook ด้วยครับ แต่ผมอ่านไม่เข้าใจเลย


@thep “จุฬาภรณ์ลิขิต” มีโอกาสเป็นฟอนต์หลักแทนไหมครับ ?


ขนาดฟอนต์แบบไทยๆ ที่ต้อง scale up ให้เข้ากับฟอนต์สากล (ไม่ใช่แค่ฟอนต์ตะวันตก) เป็นสิ่งที่ตกยุคมานานพอควรแล้ว ทั่วทั้งโลกดูจะเหลือแค่ภาษาไทยภาษาเดียวที่ทำแบบนี้ แต่เราจะย้ายไปใช้แบบสากลได้ยังไง? ใครมีความคิดเห็นดีๆ ไหมครับ? สำหรับผม คิดว่าด่านแรกคือการบังคับใช้ฟอนต์ TH Sarabun ของราชการ จะเป็นยังไงถ้าฟอนต์ TH Sarabun เองใช้ขนาดแบบสากล? เธรดนี้บอกเล่า pain point ของขนาดฟอนต์แบบไทยๆ ได้ดีมาก https://twitter.com/srakrn/status/1298875787504807936

อวดว่ารันอะไรบ้างใน 15 วินาทีครับ https://www.youtube.com/watch?v=vIVlTbYS8Aw

slackware 15 สงสัยจะออกตัวจริงแล้วครับ แต่ผมไม่อยากกลับไป sysV init ละ

Because people code in Bash. For example, a Makefile that I downloaded from GitHub didn’t work on my computer, since my computer’s default shell was Dash.

The Makefile didn’t have the shebang to tell which shell is required, but it looks like a Bash script and it works on Bash.

A beginner doesn’t care about Flatpak or Snap or Zapp or other, but I won’t be able to support them if they use a different one from me.

I still depend on so many Bash scripts.

Conspack is useful to me since my program currently saves serialized data to RocksDB. Anyway, I think it may be convenient to be able to work without the RockDB layer.

@vi21 I use conspack for this. It’s very fast in my experience send encodes and decodes to binary. It also allows you to customise it to support custom classes. I can show some example code later when I’m in front of a computer.

Do you put one big expression per file or many expressions per file?

I agree that using JavaScript increases the chance of participation. I released a few versions of Thai word breakers in different programming languages. One on node.js is the most popular. 8 people contributed to the JS-based project compared to 2-3 people in other programming languages. However, JS has a downside too. In 2017, @iporsut and I made an experiment to compare Thai word breakers that we created. JS version running time is 15X of the Rust version. Even by comparing with another dynamic language, the Julia version is faster than the one in JS.

I created a website using node.js in 2014, and it is still running. The performance is good. However, I have a few regrets.

  • We had a very hard time by install this project on other team members who use Windows 10 because we didn’t know how to build a Bcrypt library.
  • Recently, I have to fix the project without adding any new feature because Express.js was changed, MongoDB was changed, and some packages that I used were abandoned.
  • It was a small project so I wanted to keep the session storage in RAM, but I can’t since I ran 4 node.js processes. Now the project requires Redis as session storage, which causes more troubles for team members, who don’t familiar with GNU/Linux, Docker, or WSL.

I tried so many things on Lenovo Miix 300 with a touchscreen. Only Ubuntu works. Even Ubuntu works partially. Some apps don’t work with an on-screen keyboard. And, yes, Ubuntu with GNOME is very slow and consumes almost all the RAM in my computer. I can’t work using it. So, in short, as far as I know, a distro, which you are looking for, doesn’t exist.

Until 1999, Qt was proprietary software. GNOME was started as a free/open/libre alternative. In 1995-1997, we had Fvwm and LessTif, but IMO they looked from the 80s.

If GTK wasn’t released in 1998, perhaps Qt would still be proprietary software. If corporates and people abandon GTK, perhaps Qt will become fully proprietary software again.

So I suppose having one DE is too risk for the whole eco-system. Unlike Microsoft or Apple, we are not one company.

Does Emacs have a global interpreter lock similar to Python?

Zorin looks very interesting in YouTube vidoes. I wonder why only a few people mention it.

Chromium OS or Fedora Silverblue.

If they are a tech, you might wanna go with a flavor of Ubuntu.

If they are willing to become proficient and experienced with GNU/Linux as a distro as a tech, maybe something like Arch

I guess they are going to use Facebook, Google Meet, LINE, a word processor, and a spreadsheet.

Which apps does she use on macOS? I hope she doesn’t use OmniGraffle.

What does she use on her home computer?