tag:blogger.com,1999:blog-95314402024-03-13T16:20:40.442-04:00Keith Kim Unknownnoreply@blogger.comBlogger267125tag:blogger.com,1999:blog-9531440.post-7165186377059034782023-12-27T04:11:00.006-05:002024-01-02T16:14:50.640-05:00Sending emails through GMail on Windows Sending emails through GMail using the Windows Command Line Interface (CLI) can be accomplished through two distinct methods: one utilizing PowerShell (PS1) and the other through the Command Prompt (cmd). Before proceeding, ensure you have obtained an application password for your GMail account.PowerShell Method:No additional software is required for this approach. Utilize the following Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-46374308764573516702023-12-27T03:45:00.008-05:002024-01-02T16:14:59.992-05:00Send emails from Ubuntu with GMail accountIf you're looking to send emails from your Ubuntu system using a GMail account, here's a straightforward method using Postfix. Follow these steps to set it up:Prerequisites:Ensure you have an application password for your GMail account.On Ubuntu:1. Install the necessary software:$ sudo apt-get update$ sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules2. Edit or addUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-62465496952446988832023-12-25T11:26:00.007-05:002024-01-02T16:15:11.227-05:00Use GMail with GiteaTo integrate GMail with your Gitea system, follow these steps:Generate Google Application Password:Obtain a Google Application Password for secure authentication. You can generate one in your Google Account settings, especially if two-factor authentication is enabled.Edit Gitea Configuration:Use a text editor to modify the Gitea configuration file (/etc/gitea/app.ini). Add the following settings Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-43312589421321874812022-11-15T08:32:00.003-05:002022-11-15T08:33:57.884-05:00Windows 11 explorer performance, strangenessRecently purchased Win11 laptop. Installed many applications for development and research and found a few things. Explorer Tab22H2 version is supposed to provide Explorer tab. For some, it's still not enabled, and ViveTool helps to enable the feature. However, for some reasons, Win11 explorer already slow, and after enabling the feature, I experienced some strange Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-79216219691667731982022-11-09T03:41:00.006-05:002022-11-16T17:48:31.059-05:00Use Taskfile for building Go codeDevelopers first used Makefile for Java, many years ago. Then ANT came, and then settled with Maven. Gradle came out, but Maven is still dominant.With Go, developers using Makefile, saying the same thing when Makefile was used for Java - "It's good enough."After some searching, found taskfile, written in Go. It's easier and better than Makefile in many ways, and it's platform Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-86784394034814719022022-04-03T17:30:00.004-04:002022-04-03T17:30:47.382-04:00[Note] Chromebook Linux VMIt creates a user. Change its password:$ sudo su# passwd <username>SSH to Chromebook Linux VM ("CLV" from here for short):Enable sshd in CLV. ssh from CLV to another system (e.g. Linux, Mac with SSHD set up) with tunneling.From linux/mac (or any system with SSHD), ssh to the tunneling port.$ sudo su# cd /etc/ssh# rm sshd_not_meant_to_be_run# vi /etc/ssh/sshd_configDefine/uncomment Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-20084373924747490032022-01-15T18:46:00.004-05:002022-01-15T18:59:26.231-05:00IPFS, DAOI've been feeling uncomfortable about the current heavily centralized "Web 2.0". There are definitely benefits and trade-offs. There are many articles about this, so not going to repeat/list here. This note contains just a brief summary and pointers."Web3", although it's still early, but the concept and the technology are solid and good to experiment now. It's still too Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-86189481929424831392021-12-19T08:03:00.002-05:002022-02-01T15:25:54.834-05:00[Note] HEICEnvironment: Ubuntu 20Issue:Photos from iPhone->Google Photo->Download saves as .HEIC, can't view on Linux.Solution:$ sudo apt install heif-gdk-pixbuf$ sudo apt install libheif-examples$ heif-convert -q 90 [HEIC file] [filename.jpg]Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-51844301476471778062021-12-12T17:59:00.006-05:002021-12-30T15:16:54.293-05:00[Note] Ubuntu VirtualBox + VirtualBox Extension PackEnvironment:Ubuntu 20.04, VirtualBox 6.1.30 r148432VBox was updated multiple times. Problem:sudo apt install fails to install VBox Extension Pack $ sudo apt install virtualbox-ext-packReading package lists... DoneBuilding dependency treeReading state information... DoneThe following NEW packages will be installed: virtualbox-ext-pack0 upgraded, 1 newly installed, 0 to removeUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-64245317560087427912021-12-12T02:08:00.002-05:002021-12-12T02:08:10.436-05:00[Note] HWP 1.51 file conversionConverting HWP 1.51 file to UTF81. Save as new (@V), select ASCII - KS2. From Linux, $ iconv -f uhc -t utf8 KS2.TXT > /tmp/out.txtNotehwp2txt v3 produces zero byte filehwp2txt v1.2 converts to some unknown encoding (chardet couldn't detect)enca can't detectused chardet to detect the encoding uhc (EUC-KR). To-dosend key events from Linux to DOSBox to automate saving in KS-ASCII Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-49847617098089874912021-12-11T23:14:00.003-05:002021-12-11T23:14:35.406-05:00[Bookmark] SDR air traffic signal (video in Korean)Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-28894170428468895502021-12-11T23:13:00.001-05:002021-12-11T23:13:10.187-05:00[NOTE] log4j security issueIssuehttps://nvd.nist.gov/vuln/detail/CVE-2021-44228Apache Log4j2 <=2.14.1 JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-77499105852753427772021-10-17T14:44:00.003-04:002022-01-09T23:04:42.093-05:00[Note] New Keyboard and mouse - Linux middle mouse button emulationThis is a note on new keyboard and mouse I bought recently for my Linux desktop due to aging keyboard and mouse.I've been using MS keyboard/mouse for many years (https://www.amazon.com/gp/product/B00CYX54C0/):
Pros:Most of key layout is greatErgonomicPerfect keyboard height and feeling of typing, quiet.Cons: Small function keysStrange layout of Insert/Del/Pg up-dn/Home/End keys.I never gotUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-67764758256687640462021-06-29T23:31:00.003-04:002021-06-29T23:31:43.335-04:00[Note] Converting Audible books to MP3 (legally)GOALAudible runs on most of devices and via web browser. Still some odd devices only support MP3. This note is to convert Audible files you *own* to mp3 to listen to them on those odd devices. REQUIRED S/WLinux (Ubuntu 20), console, Chrome browser, Chrome driver Optional: bash, ffmpeg, mid3v2OVERVIEWDownload Audible files from Audible site using your ID, PW. The files are .Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-82402200728581293022021-05-08T22:33:00.007-04:002021-05-09T00:53:59.484-04:00Linux Tip: weather, calendar, time splash screenhttps://askubuntu.com/questions/1020692/terminal-splash-screen-with-weather-calendar-time-sysinfo https://gist.github.com/keithkim/be286e6819b00571535298e86f3c4544
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-64677843933921974102021-05-08T22:29:00.001-04:002021-05-08T22:29:02.388-04:00Linux Utility: anlayzing disk spaceFor GUI, JDiskReport - faster than Ubuntu's built-in disk analyzerhttp://www.jgoodies.com/freeware/jdiskreport/Java based.For console, 'gdu' - https://github.com/dundee/gdu/releasesGo lang. See, https://www.makeuseof.com/how-to-analyze-disk-usage-with-gdu-in-linux/Install, $ curl -L https://github.com/dundee/gdu/releases/latest/download/gdu_linux_amd64.tgz | tar xzUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-86916243440506468212021-05-04T20:51:00.008-04:002021-05-04T20:54:42.043-04:00[Note] Lisp, Emacs, Quicklisp, Slime on Windows 10Goal: Install LISP, quicklisp, slime, Emacs on Windows 10Install LISPCLISP, http://sourceforge.net/projects/clisp/files/clisp/2.48/Download big-zip file.Add to PATHSBCL, http://sbcl.org/platform-table.htmlDownload v2 64bit. Install in C:\sbcl and add to PATH. Install quicklisp 0. save this file in c:\tmp for example, http://beta.quicklisp.org/quicklisp.lisp 1. mkdir c:\opt\quicklisp 2. cd \Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-57812213315340949372021-04-13T23:17:00.001-04:002021-04-13T23:17:24.267-04:00"Uncle" Bob Martin - "The Future of Programming"Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-73245516675175137172021-04-13T22:12:00.003-04:002021-04-13T22:12:50.387-04:00Been busy reviewing a few booksI'm grateful for the opportunity to review a few books (draft, partial) recently. It is amazing how much time and effort the authors put in for a book.This year, I reviewed a couple machine learning books and a programming book. They are all great. I have to point out what needs to be improved, and that's sometimes painful when the writing is just perfectly good. And Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-31233674785014678522021-04-13T17:29:00.006-04:002021-06-01T00:36:32.494-04:00[Note] Linux Bi-lingual system and file name sort issueI downloaded NLP related files from Korean sites. Many file names are in Korean, and I noticed that when I did ls -l, or viewed the files in GUI, the files weren't sorted properly.This is probably because English (UTF-8) is the system default, and added Korean IME only. I did some research and found only one solution -- change the system locale: In /etc/default/locale, add this line Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-83673017437170224042021-04-10T00:39:00.005-04:002021-04-10T00:39:31.320-04:00[Note] convert, memory allocation failed, attempt to perform an operation not allowedTrying to convert multiple image files to a PDF file:$ convert *.gif output.pdfThen I got bunch of errors such as:convert-im6.q16: memory allocation failed `302.gif' @ error/gif.c/ReadGIFImage/1303.This is due to insufficient memory, and can be fixed in ImageMagick policy file.First, find where the policy file is by running this command:$ identify -list policy | moreMine is in /etc/ImageMatick-6/Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-82568864482370531642021-04-02T23:46:00.009-04:002021-04-19T23:54:45.837-04:00Learning Quantum Computing, QiskitQuantum Computing coursesThe Introduction to Quantum Computinghttps://www.coursera.org/learn/quantum-computing-algorithms/home/welcomePhysical Basics of Quantum Computinghttps://www.coursera.org/learn/physical-basis-quantum-computing/home/welcomeQuantum Computing. Less Formulas - More Understandinghttps://www.coursera.org/learn/quantum-computing-lfmu/home/welcomeQuantum Mechanics & Quantum Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-40835071743287248332021-04-02T23:24:00.003-04:002021-04-03T12:03:56.146-04:00[Old Tech] Alpine mail client, Spreadsheet CalculatorTerminal Email Client Long time ago, when I used Solaris -- I used mail, then elm, then pine. I really liked elm for its simplicity, lightweight. I couldn't find elm for Linux or its clone, but found Alpine which is Apache License Pine.elm - https://en.wikipedia.org/wiki/Elm_(email_client)pine - https://en.wikipedia.org/wiki/Pine_(email_client)alpine - https://en.wikipedia.org/Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9531440.post-79866668214167531652021-03-20T01:48:00.004-04:002021-03-20T01:48:48.166-04:00[Note] Run Flash in year 2021All latest browsers and Flash player itself stopped supporting Flash sites by end of 2020.This note is to enable Flash (at your own risk) for special circumstances. For my case, it's to run Oracle 18XE EM. GOALRun Flash site in year 2021.EnvironmentUbuntu 20.04, 64 bitWhy?Oracle 18XE EM still uses Flash. I prefer GUI over console to do occasional Oracle DB admin tasks.NoteOracle Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-9531440.post-1448302830095693392021-02-15T12:21:00.003-05:002021-02-15T12:21:26.757-05:00[Note] Windows 10 auto loginI have Windows 10 running on VirtualBox for testing, and want to enable auto-login. MS removed this feature from settings, and registry change is required.Run regeditGo to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinlogonSet AutoAdminLogon to 1Set DefaultUserName to your user anemCreate DefaultPassword string entry and enter your passwordReferenceshttps://Unknownnoreply@blogger.com0