Posted in 2025

Counting and Deleting Emails by Sender In Outlook

You can download the code and binary at jiangsheng/OutlookSenderStatistics .

My Google Drive is getting full. While I am cleaning up large attachments in Gmail, I notice the storage usage did not decrease but actually increased. I am getting more emails everyday. So I decided to write a program to see who’s sending me the most email and delete some old mails.

Read more ...


Windows 11: install failed, windows 10: Windows could not prepare the computer to boot into the next phase of installation

When I was trying to install Windows 11 on my spare computer that used to run out-of-support Windows 10. After backing up data and deleting all partitions on the disk in Windows RE, I encountered an error message that read “Windows 11 install failed.” It doesn’t give much information about what went wrong.

I then tried again with another install media created by Rufus to check if the issue was with the installation media. However, the problem persisted.

Read more ...


Unwanted Horizontal scrollbar from Javascript DataTable

I am using the Javascript DataTable component to provide a sortable HTML table experience in Front Mission and 4th Super Robot Wars gaming guides. However there was a long standing issue that the table shows horizontal scrollbar even when the content is not too wide.

I have tried a few solutions I found online, including setting scrollX to false, adding table-layout:fixed; width: 98% !important to the dataTables_no_scroll_x css class and apply it to the table, and adding overflow-x:hidden !important; overflow-y:auto !important;to the dataTables_scrollBody css class, to no avail.

Read more ...


Do and Do Not in C Programming

This post is originally written in 2012. It was lost when moving my web site from Office Live to Windows Live Spaces. I found a dead link to my web site and found an archive from archive.org. So here it is the old article.

Don’t

Read more ...


Misleading Error Message from ablog.post, Aggressive Looking Ahead

Today I am getting some strange error when I am trying to convert my blogs to the ablog extension of Sphinx. The error log has the following lines

Extension error (ablog.post)!

Read more ...


Sphinx project always rebuild after installing the ablog extension

After checking the source code of the PyData theme, it is apparent that the theme’s __init__.py force the setting to be on. If not on, then it sets the config and forces a full rebuild.

The solution is setting

Read more ...


Merge wordpress.com site with GitHub Pages

As I am a tech person familiar with HTML/CSS/Javascript, the WordPress.Com free plan’s limitations has been an obstacle to my creatively (e.g. add sortable tables). I have a Github Pages web site running for a few years now and I think now is the time to migrate to github pages.

I first looked migration tutorials on the internet. For me the Exporter Plugin (https://blog.netnerds.net/2020/08/migrating-my-wordpress-sites-to-github-pages/) is not an option, as one of the WordPress.Com free plan’s limitations is plugin support. Exporting the content looks like the only way to go, but how to import the exported WordPress XML to formats supported by Github Pages is another problem.

Read more ...


ExtensionError: Could not import extension sphinx.builders.latex

Today I got this error when building my blog based on Sphinx after upgrading Sphinx to the latest version.

when I do a pip list, the 4.1 version of roman_numerals is indeed installed. Just the build script cannot find it. It probably has something to do with the fact that roman-numerals-py (deprecated) is also installed. Older version of sphinx that requires roman-numerals-py instead of roman_numerals.

Read more ...


ABlog Exception Missing title from Invisible Character

Today I got this error when building my blog based on Sphinx/ABlog extension.

When I remove the ABlog post directive, Sphinx indeed gives a warning about the file’s title:

Read more ...


Another Aggressive Looking Ahead and Misleading Error Message from ablog.post

Today I am getting some strange error when I am trying to convert my blogs to the ablog extension of Sphinx. The error log has the following lines

Extension error (ablog.post)!

Read more ...


Misleading Error Message WARNING: All children of a ‘grid-row’ should be ‘grid-item’ [design.grid]

Today I am hit by a message “WARNING: All children of a ‘grid-row’ should be ‘grid-item’ [design.grid] “ from the sphinx-design extension when building a Sphinx documentation. The error line points to a grid that works perfect fine in another file.

After some digging, it appears that when the next paragraph is indented as quoted text, no matter how many blanks are in between the grid still think it as its children.

Read more ...


Misleading Error Message WARNING: All children of a ‘grid-row’ should be ‘grid-item’ [design.grid]

Today I am hit by a message “WARNING: All children of a ‘grid-row’ should be ‘grid-item’” from the sphinx-design extension when building a Sphinx documentation. The error line points to a grid whose only members are grid items.

After some digging, it appears that when a space is missing between .. grid-item-card:: and the card name, then the card won’t be recognized as a card, and generates this message.

Read more ...


Today’s phishing email RE: Your App឵Ie lD Has Been DisabIed Pending Further Verification

My mom received this email and asked me verification. It is obvious fake, but the red flags are worth noting.

The only help from the email provider is marking the email as sent by mail.txu.com. Which is still spoofed, but nevertheless makes the email suspicious, as the email pretends to be from Apple. There is also a clue in the email itself, the terms of service URL in the email somehow points to Netflix, probably to filter out people too smart to attack.

Read more ...