Skip to main content

Posts

How to re-encode an MP3 file for Camtasia 8.6 (or for a legacy MP3 editing tool).

Command: ffmpeg -i input.mp3 -codec:a libmp3lame -b:a 192k -write_xing 0 -id3v2_version 0 output.mp3 Details: Camtasia 8.6 misunderstands VBR: Variable bit rate MP3 files. So Camtasia 8.6 shows the wrong MP3 audio length. To avoid this Camtasia 8.6 issue, use CBR: constant bit rate and invalidate new headers. (Or use a WAV file) Options: -b:a 192k : Constant bit rate to 192kbps -write_xing 0 : No Xing header. The Xing header records the timing information for the variable bit rate MP3 file. But when I use CBR, this is not needed. Camtasia 8.6 seems to have failed to recognize Xing VBR MP3 files. -id3v2_version 0 : Use id3v2 version 0 tag. Camtasia seems to have failed to recognize the ID3v2 header > 0 tag. This loses the metadata. To see the MP3 encoding info: ffmpeg -i input.mp3 mediainfo input.mp3 

How to remove the irrelevant "Most Relevant" section at the top of YouTube

I am a premium YouTube user to get less noise. The "most relevant" section is quite irrelevant for me; it is noise. I looked up how to disable that in YouTube settings, but I could not find it. I found I can use UBlock Origin -- Custom filter, and set the following. youtube.com##ytd-reel-shelf-renderer:has-text(Most relevant) youtube.com##ytd-rich-section-renderer:has-text(Most relevant) Thanks to UBlock developers.

The export function of WordPress 6.7.2 doesn't work when Easy Social Feed 6.6.5 is enabled.

Summary at 2025-03-04 Problem: I cannot export WordPress 6.7.2 blog content through the tool -> export. Cause: Easy Social Feed version 6.6.5 causes this issue when enabled. Solution: Disable Easy Social Feed version 6.6.5 Details Last month, I noticed I could not export the WordPress 6.7.2 blog contents to a file using the tool -> export. The result shows up in a browser window instead of saving a fine. When I saved the contents in the browser window with SaveAs, I could not import the file. Figure: Failed export results in a browser window example. Thus I cannot use the WordPress build-in import/export functionality. I checked the plugins with a binary search; this issue shows yp when Easy Social Feed version 6.6.5 was enabled. When I disabled Easy Social Feed version 6.6.5, this issue did not show up.

A program removing qTranslate language section

Overview This is a program for migrating from a Wordpress with qTranslate to Wordpress multi-site. It removes the language-specific contents and tags attached by qTranslate plugin. Keywords: qTranslate, qTranslate-X, multi-site, multi-language, Wordpress Introduction Ten years ago from now (abound 2013), it is common that the cheapest web hosting service had 0 SQL databases, and even the next level service with database had up to 2 SQL databases. Therefore, if you want to use Wordpress in multiple languages, qTranslate multilingual plug-ins https://qtranslatexteam.wordpress.com/ was a common solution to reduce the number of database use. How does the qTranslate plugin work? The qTranslate plugin puts special tags ([:ja], [:], etc.) in the text. The plugin will retrieve the specific language text based on the tag. Advantages and disadvantage of the qTranslate plugin The biggest advantage of the qTranslate plugin is that it needs only one database even if it is multilingual. Ten years a...

A story on Japanese blogs about potatoes being convicted in a Catholic religious trial. (I cannot find it in other languages.)

One of my favorite YouTube Channels is "Miscellaneous History Historica (歴史雑記ヒストリカ)" by Mondo ( https://www.youtube.com/@mond_historica ). It's a Japanese channel. There is a video about the history of potatoes. https://youtu.be/qiJNxcjQBtk  【ゆっくり歴史解説】じゃがいもはどうやって食卓に浸透したのか?世界史の中のイモ史。 (Yukkuri-history explanation: How did potatoes make their way to our tables? The history of potatoes in world history.) In this video, there were stories about Marie-Antoinette and Louis XVI's attempts to introduce potatoes, and the relationship between the English royal family and potatoes. Potatoes are "unbiblical crop" and therefore they are evil. The fact that they grow from seed potatoes is "sexually impure" because "potatoes grow in a way other than the union between a male and a female ordained by God. The Roman Catholic Church accused them, and they were guilty. Then, potatoes were burned at the stake."  I thought this story was interesting because Rom...

How to fix VirtualBox Linux boot error: vboxadd-service.service failed.

Problem: 2023-05-25, suddenly I cannot boot my linux virtual machine with an error vboxadd-service.service failed. My environment   Host: Windows 11   VirtualBox 7.0.6. r155176 (Qt5.15.2)   Linux kernel 5.19.0-42-generic, Kubuntu Solution: Remove the additional module. It seems this is no longer needed. mount the VBox_GAs_7.0.6 (You need to mont VBoxGuestAdditions.iso and need to see it at /media/<username>/VBox_GAs_7.0.6/) cd /media/<username>/VBox_GAs_7.0.6/ sudo ./VBoxLinuxAdditions.run uninstall Solution (updated 2023-06-02) The issue seemed caused by the wrong display setting. Removed VBoxLinuxAdditions makes VBoxVGA Graphics controller works, but the clipboard between host and guest didn't work. So removing the VBoxLinuxAdditions is not a solution. I have no idea why the Graphics controller setting suddenly causing a problem. But here is the solution. Setting the Graphics controller to VMSVGA resolved the problem. VBoxLinuxAdditi...

stand by power comsumption: xbox

Due to the energy price, I measured some of the devices of mine and my friend. My friend's family has an Xbox. Xbox's stand-by (when switched off) power consumption is around 20W. This was unexpectedly high for me. It is equivalent to a bright LED light. My friend immediately uses the power on/off switch extension. If you have an Xbox, I also recommend using the on/off extension cable.

How to pass a better gun control law.

  How to pass a better gun control law. Every time a mass shooting happens, people try to pass a better gun control law. But NRA consistently stopped them (see e.g., YouTube: NRA: Last Week Tonight with John Oliver (HBO) ). To prepare for the next mass shooting, a woman called (J.C.) established a non-profit organization. The organization is a bit mysterious under their security concern. But it seems called either WIW N, WASD, or FYN (or possibly multiple organizations)*. What they do is: members are informed when and where the bill will be discussed members are encouraged to call the members senator and representative and informed every chance depends on the distance of the residence they provide the member-accessible database about the congress schedule relevant to their issue A problem is the organization has a bit of tight membership control. I cannot write here how to join, but you will find the way. (A rumor: some comedians seem to know the organization's correspondence.) The...

Floating point reproducibility in parallel processing

The floating point reproducibility problem On a typical computer, the results of floating point operations can differ from the mathematical result. In general, floating point operations like addition may not satisfy all mathematical properties for that operation. For example, the associativity property of addition may not hold for all numerical values: $(x + y) + z \stackrel{?}{=} x + (y + z)$ A decimal representation of a number cannot always be represented by a finite binary representation in computer hardware. For example, the computed result of $0.1 + 0.01 - 0.1 - 0.01$ is not equal to $0$, but mathematically these values should be equivalent. For example, you can demonstrate this using the Python interpreter (Python 3.8.5): >>> 0.1 + 0.01 - 0.1 - 0.01 -5.204170427930421e-18 But mathematical properties do hold in other cases. For example, the result of $0.1 - 0.1 + 0.01 - 0.01$ is equal to $0$. >>> 0.1 - 0.1 + 0.01 - 0.01 0.0 Another problem results from rounding...

Berlin Westhafen, responsibility, and arrogance of playing a god

Once I walk around this Hafen with one of my friends, we discussed a book (*) we both read recently. The discussion goes far and in many directions. But I found two points were interesting.  Berlin Westhafen One is as in the title, ``You have no responsibility for what was happened, but you have responsibility for that not happens again. (Original: Ihr seid nicht verantwortlich fuer das, was geschah. Aber das es nicht wieder geschiert, dafuer schon)'' If I think about responsibility, I believe that the people who were not born at that time cannot have ``personal'' responsibility. Some extreme idea says someone has responsibility for all the ancestors did. It does not seem fair because the responsibility is passed on to the descendants. They are words about war, but I think it still holds in the case of war. It should be noted that what I put parentheses around "personal" here may not apply if that is not a person. The other part is an argument that the droppin...

A concern about an abnormality on the statistics of number of Japanese COVID-19 patients

We have already had a lot of COVID-19 articles. Every country's goal now is how to reduce the number of death. Since the exponential growth rate of an epidemic, it should be the first priority that how to avoid the corruption of the health system. We need the precise data of how many patients are there. Otherwise we can not have a strategy, how many beds we need, how long we need to lock down, how many test we need to deploy, every strategy needs to be answered the questions: how many X we need? In this article I based on the data from John Hopkins Data Repository   and the analysis of Aatish's Exponential/Logistic Curve-Fitting Site . When I checked this data, I found an abnormality of Japanese data. Figure 1 shows the total confirm cases and new confirmed cases in the past week. Japanese data is way less compare to other countries. Figure 1 Data source: minutephysics: How To Tell If We're Beating COVID-19 You might think, a small new case ratio sounds good. ...

Borissing

New word: Borissing 1. A behavior who started something, but succeeded to running away without taking responsibility. Usage example: a school teacher told a student, "Please don't borissing. You are already a 5th grade." 2. Referring an social harassment. Some people coincidentally has a similar name. There are some incidents, such child was picked in a class. The association "We did nothing wrong" officially stated, this is a discrimination, please stop using the word. But another association, "Yes, but this is the consequence" stated recently, we should solve the problem from the source, otherwise we could not completely solve this problem. -- in the Devil's dictionary draft

Young's double slit equation: Many textbooks draw parallel rays, but how could parallel rays intersect?

Young's double slit equation is well known result that shows the light has a wave property. https://www.khanacademy.org/science/physics/light-waves/interference-of-light-waves/v/youngs-double-slit-part-2 https://en.wikipedia.org/wiki/Young%27s_interference_experiment A typical illustration of Young's interference experiment is shown in Figure 1.  This figure confuses novice learners since at the point C, two parallel rays intersect. But how could possibly parallel rays intersect? In Euclidean geometry, parallel two lines will never intersect. Figure 1: Typical explanation figure: Two parallel rays and path length difference \[\Delta x\] Figure 2: Precise figure: Two rays intersect at point C to cause interference. Figure 2 shows more precise figure of Young's interference experiment. At the point C, two rays meet and cause an interference depends on the path difference from the holes H1 and H2. When you zoom in to the two holes part, you see the precise path...

How to remove the video recording time limitation of a Sony camera (Alpha 5000)

I have a Sony camera (Sony Alpha 5000) and I like it. But I have a problem of limitation of video recording time: 30 minutes. Today I found a way to remove this limitation. I saw the next video:   https://youtu.be/7cstA_PuRIg The video creator said, we can disable the limit for most of the Sony's camera. I only tested Sony Alpha 5000. The procedure Camera preparation Switch on the camera Menu -- Setup --- USB connection, set connection to MTP Switch off and on the camera Connect to a computer with USB cable (keep connecting) Software download and install (I checked this on Windows 10) Visit https://sony-pmca.appspot.com/apps with Internet Explorer and Safari (Chrome didn't work, I checked this on Windows 10 with Internet Explore 11) Note: This site is from Sony, but the software is not from Sony, so no guarantee. you should use this your own risk. I can not take any responsibility. From the above  URL , you can go to OpenMemories page Download PM...

What a referendum really asking is...

What the referendum is really asking is.... Figure 1: Original brexit ballot paper A problem of referendum is that people misunderstand the question all the time. Figure 2: This is how most of the people saw the ballot paper But the real question (at least the intention was...) Figure 3: This is how the people should see. The problem of referendum (or actually any vote) is people vote by feeling without thinking. I enjoy reading Yuval Noah Harari's books.

A fake truth by web: google translate glitch

I make some basic mathematics learning materials. I publish them on YouTube. This time I got a strange comment. ``Why the title of this video is ``basic division''? It is about subtraction.'' I made this video in Japanese, my video title was in Japanese (基本のひき算), but the comment was in English. I was puzzled, ``ひき算'' means ``subtraction'' instead of ``division''. I found out that the person who wrote the comment used Google translate. When I input ``ひき算'' to the Google translate, it indeed translates it as ``Division''. Japanese has Kanji and Hiragana (and Katakana) for writing and Hiragana is a phonetic notation. My basic subtraction video is for first or second class students, thus I use Hiragana (phonetic notation). If I put the Kanji notation (引き算) to the Google translate, it is correctly translated to the subtraction. If I use all phonetic notation (ひきざん), then Google translate outputs ``Hikiman'', which I don...

How to use boost sha1 with python hashlib

I need to have a sha1 digest from both C++ code and python code. Here is a code snip to match both results. This code avoids a potential problem that the digest has some 0s on top of the digest array element. This doesn't matter if you stick to one implementation, but just in case, you need to match two worlds: C++ and python, this code might be useful. /// get sha1 digest as a std::string /// /// \param[in] mes message to be hashed /// \return digest string std::string get_sha1_digest(const std::string& mes) { boost::uuids::detail::sha1 sha1; sha1.process_bytes(mes.c_str(), mes.size()); const int DIGEST_SIZE = 5; unsigned int sha1_hash[DIGEST_SIZE]; sha1.get_digest(sha1_hash); std::stringstream sstr; for (std::size_t i=0; i < DIGEST_SIZE; ++i) { sstr << std::setfill('0') << std::setw(8) << std::hex << sha1_hash[i]; } return sstr.str(); } This function's output matches with the fo...