🌸 Tue, Jan 7, 2025 🌸

Frozen pixels on the screen
Malice hid inside serene
Code, a serpent curled, a thief,
Stirred, awakened lifeless chief:

My computer fell beneath
Darkness that the morning’s sheen
Failed against the silent foe:
Malice hid the truth unknown.

– AI poem about my day


🌸 Sun, Jan 5, 2025 🌸

The free version of DaVinci Resolve does not support a lot of formats. Here is the line to transcode the video: ffmpeg -i input.mp4 -c:v mjpeg -q:v 3 -c:a pcm_s16le output.avi


🌸 Fri, Dec 27, 2024 🌸

Summary: Generating Raw Machine Code for m68k with Clang

Here’s the step-by-step process we followed to produce raw machine code for the m68k architecture without relying on any libraries or system headers:

1. Write Minimal C Code

Write a simple C program without standard library dependencies. For example:

main.c:

void _start() {
     while (1) {}
}

Avoid standard headers like <stdio.h> since they depend on system libraries.

2. Compile with Clang

Use Clang to compile for the m68k target, in freestanding mode, and without linking:

/mnt/Texas/3rd-party/llvm-project/build/bin/clang --target=m68k-unknown-elf -c -ffreestanding -nostdlib -o output.o main.c

Key Flags:

  • --target=m68k-unknown-elf: Specifies the m68k architecture.
  • -c: Generates an object file (.o) without linking.
  • -ffreestanding: Disables assumptions about standard libraries.
  • -nostdlib: Ensures no standard library functions are linked.

3. Extract Raw Machine Code

Use llvm-objcopy to strip away metadata and leave only the raw machine code:

/mnt/Texas/3rd-party/llvm-project/build/bin/llvm-objcopy -O binary output.o output.bin

Explanation: -O binary: Outputs a raw binary file containing only machine code.

4. Verify the Raw Binary

Check the contents of the resulting binary file:

hexdump -C output.bin

Example Output:

00000000  4e 56 00 00 60 00 00 02  60 fe                    |NV..`...`.|

This is the raw machine code for your program.

5. Tools Overview

  • Clang: Compiles the source code to an ELF object file.
  • llvm-objcopy: Extracts raw machine code from the ELF object file.

Recap of Commands:

Step 1: Compile to an object file

/mnt/Texas/3rd-party/llvm-project/build/bin/clang --target=m68k-unknown-elf -c -ffreestanding -nostdlib -o output.o main.c

Step 2: Extract raw binary

/mnt/Texas/3rd-party/llvm-project/build/bin/llvm-objcopy -O binary output.o output.bin

Step 3: Verify the raw binary

hexdump -C output.bin

You now have a minimal workflow for generating raw machine code for the m68k architecture using Clang. If you have more questions or need additional help, feel free to ask! :blush:


🌸 Thu, Dec 26, 2024 🌸

This is so annoying. YouTube keeps setting the video quality to 360p, and I have to set it back to 1080p manually all the time. I have no idea what is going on.


🌸 Wed, Dec 25, 2024 🌸

I’ve been watching quite a few Star Trek episodes on Pluto TV for the first time. I’m wondering about phasers—not lasers—and how lasers, in general, aren’t visible from the side. However, could an energetic enough gamma laser become visible from the side due to electron-positron pair production? For instance, if a gamma photon interacts with the cosmic background radiation, the resulting electrons and positrons might interact with other gamma photons. Most of the resulting radiation would be annihilation-related and not visible, but could there still be some kind of glow? Am I thinking about this correctly?


🌸 Sun, Dec 22, 2024 🌸

Yesterday, I discovered Pluto TV and watched the John Wick movies—Chapters 1, 2, and 3. The ads weren’t as disruptive as YouTube ads, which are far worse. I’m confused—what’s the catch?


🌸 Sat, Dec 21, 2024 🌸

I don’t think I can continue with the current state of AI. It just generated 500 lines of code in no time, and none of it works. I don’t need a crystal ball to see myself debugging this for the next 2–3 days.


🌸 Wed, Dec 18, 2024 🌸

TIL: Mitochondria have their own small, circular DNA! 🤯


🌸 Wed, Dec 18, 2024 🌸

Once, I was arguing about operator precedence in C++ with my colleague. He was very confident about the precedence of one particular operator—I don’t remember exactly which one, but I think it was || versus &&. He claimed he could see the precedence clearly in his mind because he had printed a table, put it on the wall, and memorized it.

We decided to check online, and it turned out he was wrong, which left him very confused. As it turned out, the printout on his wall was incorrect. For a long time, if you Googled “C++ operator precedence,” the first link provided by Google led to a table that contained a mistake. I actually emailed the professor who had published the table to have it corrected.


🌸 Wed, Dec 18, 2024 🌸

I dreamt about my dad last night. It wasn’t explicit, but it was implied. I was at a café ordering food, and I ordered for two. After placing the food on a tray, I walked toward a table. While I was setting the dishes on the table, a stranger sat down next to me. I was expecting my dad to sit there. Instead of asking the stranger to leave, I quietly started moving the dishes to another table. That’s when I woke up.


🌸 Tue, Dec 17, 2024 🌸

I forgot to pay for my credit cards this month, buy buy $200 😦


🌸 Mon, Dec 16, 2024 🌸

The pancake lenses on the Oculus Quest 3 are so good. I’m never going back to Fresnel lenses.


🌸 Sun, Dec 15, 2024 🌸

Is AI curiosity a necessary trait to have?


🌸 Sun, Dec 15, 2024 🌸

It should be like this: using namespace std::chrono::literals;, but currently it is like this: using namespace std::chrono_literals;


🌸 Wed, Dec 11, 2024 🌸

After installing or updating a dynamic library, don’t forget to run ldconfig.


🌸 Tue, Dec 10, 2024 🌸

How to build llama.cpp on my laptop

mkdir build
cd build
cmake .. -DGGML_CUDA=ON -DBUILD_SHARED_LIBS=OFF
cmake --build . --config Release -j
sudo cmake --install .

🌸 Fri, Dec 6, 2024 🌸

I think OpenAI made ChatGPT dumber, so they can put the not dumb model to the $200/month tier without doing anything.


🌸 Fri, Dec 6, 2024 🌸

Someone once said, “If something is free, you are the product.” Remember, you are always the product, whether you got it for free or paid for it.


🌸 Sat, Nov 30, 2024 🌸

What is going on with ChatGPT? It has suddenly become extremely stupid.


🌸 Sat, Nov 30, 2024 🌸

I never had a robots.txt file on my website—I simply forgot to add it. Apparently, for Google’s crawler, no robots.txt equals “don’t index.” 🤔 Ever since I added a robots.txt file, Google’s crawler has been hanging out on my website non-stop. Now, I can finally find my pages on Google! 🤔


🌸 Fri, Nov 22, 2024 🌸

Message to my future self. For some reason, Unreal Engine thinks my laptop screen is a High DPI screen and makes the UI huge. So, to address this issue, I need to go to the Editor Preferences and disable support for High DPI.


🌸 Wed, Nov 13, 2024 🌸

I have always had a hard time understanding why we need antivirus software. There is plenty of code that has bugs, and viruses exploit these bugs to compromise systems. Instead of writing more code to protect us from viruses, why not fix the bugs? Similarly, I do not understand: we have too much bureaucracy and inefficiency in the government, too many departments; let’s create another department to combat that. How about we simply fire people who do nothing?


🌸 Wed, Nov 13, 2024 🌸

The neighbors dog 🐕 started barking before 5am 🕔 in the morning. 🤔 not sure what’s wrong with that dog. It may have some PTSD or even worse currently abused.


🌸 Wed, Nov 13, 2024 🌸

I am on a quest to find the perfect software for working from my Oculus Quest on my Linux laptop. So far, Immersed is the best option for me. However, I’m looking for more features and better functionality. For instance, audio is broken. I’ve tried different methods to troubleshoot, but it’s challenging without access to the source code.

One of my main wishes is to have a simple 2D app, allowing for easier multitasking—like running YouTube on the side. Unfortunately, I don’t think Immersed will ever focus on this, as the immersive experience is part of its brand and purpose.

The controls in Immersed are also a bit finicky. I feel that what Meta has done with the controls in the Quest’s main lobby is far superior.

Yesterday, I discovered xpra. Setting it up on Linux was frustratingly complex, and my system crashed multiple times. Overall, I wasn’t impressed; the latency in Immersed is significantly better. Like Immersed, xpra also has no audio support on my system. It seems to require PulseAudio, which I switched away from a long time ago in favor of PipeWire. It’s possible that xpra does support PipeWire, but the Debian build appears to be compiled specifically with PulseAudio dependencies.

I even tried building xpra from source, but it required Cython version 3. In the end, I don’t think it’s worth pushing forward with xpra, as the high latency is a definite deal-breaker.


🌸 Wed, Nov 13, 2024 🌸

Did you know that if you want to get to ChatGPT, you can just type in the browser chat.com?


Previous - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - Next