Thursday, July 18, 2019

[Space] Apollo 11 Video


Apollo 11 was the spaceflight that first landed humans on the Moon. Commander Neil Armstrong and lunar module pilot Buzz Aldrin, both American, landed the Apollo Lunar Module Eagle on July 20, 1969, at 20:17 UTC. Armstrong became the first person to step onto the lunar surface six hours 39 minutes later on July 21 at 02:56:15 UTC; Aldrin joined him 19 minutes later. They spent about two and a quarter hours together outside the spacecraft, and collected 47.5 pounds (21.5 kg) of lunar material to bring back to Earth. Command module pilot Michael Collins flew the command module Columbia alone in lunar orbit while they were on the Moon's surface. Armstrong and Aldrin spent 21 hours 31 minutes on the lunar surface at a site they named Tranquility Base before lifting off to rejoin Columbia in lunar orbit.

Monday, July 8, 2019

[Poetry] Addiction




This viscous, self-perpetuating cycle of prescribed self-abuse,

bleeding from perpetual defeat, I hardly stood a chance to reclaim myself,

when tossed about in the spiraled tempest casting fragmented delightful illusions.

Now, my mind overwhelmed while my shaking hands still unskilled,

I find myself grasping unfamiliar tools – those that can be my anchor.

Hard to dispel these cravings, wandering off within a maze of my own making.

This gloomy fog of darkened thoughts suffocates in the mist of stark isolation,

And other triggers quick to draw me back into depression and addiction.

Resolve and the toolmaker, come guide me and lead me away from this unholy affliction!

Thursday, July 4, 2019

[IT] Display Chinese in Command Prompt

Read below to find out more on how to display Chinese in command prompt of Windows.
 
Recently, I wanted to read some Chinese document in the Command Prompt. Unfortunately, I could not display Chinese characters by default. I learned a handy technique to do it:

chcp 936

In the Windows shell, the "code page" determines how bytes are converted to characters on the screen. Using the CHCP command changes the shell's code page. Please note that before the CHCP command can be used, the nlsfunc must be loaded and country.sys must be loaded into the config.sys.

Automation
To remove the need to do this every time, you can create a simple batch file to change the code to whatever you wish. Here, it's changed to 65001 which is Unicode. This will not be able to display East Asian characters but you will be able to type other characters.

@ECHO OFF
REM change CHCP to UTF-8
CHCP 65001
CLS

You can save this in the folder C:\Windows\System32 as a bat file such as switch.bat.

Then, create a shortcut to cmd.exe on Desktop and change the shortcut's properties to C:\Windows\System32\cmd.exe /k switch

Now whenever you need to type in a different script, you can use this shorcut.

Sunday, June 30, 2019

Why Start This Blog Again



This blog has not been updated in a while but I'm starting it up again, primarily since I need an online place to organize my thoughts and the knowledge I seem to be constantly collecting. Also, it provides an avenue for me to express my random musings to the greater public (assuming that people actually read this of course). I figure it's worth a few extra minutes a day typing things up. A lot of good blogs that people actually want to read start that way. If you notice, I have put up links on the top bar as well to cover some of the other activities I do. Hopefully, they'll be of interest as well.

What does this blog entail? A mishmash of everything really which doesn't fit on my other arenas of interest -- science and technology blog or space. Check it out at your leisure. Finding topics may be difficult due to the poor labeling scheme so feel free to inform me and I can update it.

Also, this place presents a helpful pseudo-bookmark for me to find interesting topics such as:



C++ Style Guide
https://google.github.io/styleguide/cppguide.html



Some interesting programming tools include:

C++ Coding Standards Part 0: Automated Code Analysis
https://gist.github.com/lefticus/10191322