“I am going the way of all the earth. Be strong and be a man! Keep the mandate of the Lord, your God, walking in his ways and keeping his statutes, commands, ordinances, and decrees as they are written in the law of Moses, that you may succeed in whatever you do, and wherever you turn.” (1 Kings 2:2-3)
Thursday, December 1, 2022
Note to self – How to Clear the Terminal History on Linux or macOS
Clear the Current Session's History
Your history can be broke down into two chunks. There's your current sessions' history, and there's your long-term history. Our first command, history -c, deals with the current session.
Clear All of Your Bash History
If you want to remove the entirety of your history, run the following command:
rm ~/.bash_history
Use open ~/.bash_history to view and edit
Sunday, January 31, 2021
How to validate Libre Office on Mac
Get information from https://download.documentfoundation.org/libreoffice/stable/7.0.4/mac/x86_64/LibreOffice_7.0.4_MacOS_x86-64.dmg.mirrorlist
File information
Filename: LibreOffice_7.0.4_MacOS_x86-64.dmg
Path: /libreoffice/stable/7.0.4/mac/x86_64/LibreOffice_7.0.4_MacOS_x86-64.dmg
Size: 252M (263941643 bytes)
Last modified: Fri, 11 Dec 2020 23:57:25 GMT (Unix time: 1607731045)
SHA-256 Hash: 0fcd83399609780013aee1acc805d1380434118d459829908aa409f7eb67c4e7
SHA-1 Hash: 443de571dad8e412e8b9e4be52ad5b249cc2627f
MD5 Hash: a36fd3c1d5e8935e4732cbf0f826a821
BitTorrent Information Hash: 636f6abbb3ed784831da6385686b1577538e8a39
PGP signature available
Run this command on MacBook:
openssl dgst -sha256 LibreOffice_7.0.4_MacOS_x86-64.dmg
SHA256(LibreOffice_7.0.4_MacOS_x86-64.dmg)= 0fcd83399609780013aee1acc805d1380434118d459829908aa409f7eb67c4e7
Compare this SHA256 value against with value got from LibreOffice web site above.
Sunday, November 29, 2020
How to validate KeePassXC on Mac
Per https://keepassxc.org/download/#mac
Before installing KeePassXC, you should always verify that your download matches the signature that is published alongside the release package!
openssl dgst -sha256 KeePassXC-2.6.2-2.dmg
Compare the result with value in KeePassXC-2.6.2-2.dmg.DIGEST downloaded from KeePassXC web site
Sunday, November 22, 2020
How to make multiple profiles in Mozilla Firefox
Multiple profiles is not visible as in Microsoft Edge Chromium, according to https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Multiple_profiles
Enter "about:profiles" to create a new profile or update.
Tuesday, June 30, 2020
Validate Downloaded Keepass 2.45 on Windows 10
C:\>certutil -hashfile KeePass-2.45.zip SHA256
SHA256 hash of KeePass-2.45.zip:
d414db9d411acbafd4e1b5faa8605ad7a28829f1814ce779142ffbd5ca9c3794
CertUtil: -hashfile command completed successfully.
C:\>certutil -hashfile KeePass-2.45-Setup.exe sha256
SHA256 hash of KeePass-2.45-Setup.exe:
9058cc9d44129e8c2c902e21f8678974b789ecd8f9d6add81c98fbeaf9794e23
CertUtil: -hashfile command completed successfully.
Per https://keepass.info/integrity.html:
If you want to verify the integrity of your downloaded file, you can hash the file (for instance with one of the following utilities: Visual Hash Calculator, ReHash, MD5sums) and check whether the computed hash matches the one listed below.
OpenPGP signatures can be verified with the public key.
KeePass-2.45.zip:
MD5: 5E838DA8 5050A5C6 DFABB0D6 57C10025
SHA-1: 7EFDC08F BC69D911 A40D29FC 3CA744D2 763C49DF
SHA-256: D414DB9D411ACBAFD4E1B5FAA8605AD7A28829F1814CE779142FFBD5CA9C3794
Size: 3039842 B
Sig.: [OpenPGP ASC]
KeePass-2.45-Setup.exe:
MD5: 5BAAADAA 21098D63 5BB37782 CD9E6446
SHA-1: 68B0A6E5 042A2524 530156C9 34D47E20 C3BC684A
SHA-256: 9058CC9D44129E8C2C902E21F8678974B789ECD8F9D6ADD81C98FBEAF9794E23
Size: 3171656 B
Sig.: [OpenPGP ASC]
Friday, April 17, 2020
Too old for this
Computer technical interview does not alway right especially to an experience software developer.
Sunday, October 14, 2018
My Favorite Password Manager
Thursday, May 11, 2017
Check for Conexant Audio Driver Keylogger
Further reading:
- Arstechnica: HP laptops covertly log user keystrokes, researchers warn
- SpiceWork: Keylogger in HP audio driver
- InfoWord: HP computer owners: Check for the MicTray Conexant keylogger
Saturday, March 4, 2017
Cloud Services
Wednesday, April 27, 2016
How to disable HTML5 autoplay in Chrome and Firefox
To disable it:
For Google Chrome: No way to do it unless I install the add-on plug-in or extension. I don't like that. So just be patient to wait for Google provide that feature or try Eloston extension
For Mozilla Firefox: Set media.autoplay.enabled to false in about:config (Source: http://superuser.com/questions/670214/how-can-i-disable-html5-content-in-popular-browsers-like-firefox-and-chrome ).
Note: Never, never run or enable Adobe Flash player.
Sunday, March 13, 2016
How to disable Adobe Flash in FireFox, Google Chrome, Safari and Internet Explorer
Firefox: Type "about:addons" on address bar or Ctrl-Shift-A to manage Add-ons and set "Shockwave Flash to "Ask to Activate"
Google Chrome: Type "chrome://plugins/" on address bar
Safari: Go to References -> Security -> Click on "Plug-in Settings..." next to "Internet Plug-in" check box.
Internet Explorer: Internet Options -> Program -> "Manage Add-on" button
Thursday, March 12, 2015
SoCal Code Camp 2015
Friday, May 17, 2013
My experience with Android Studio
I'm still figuring out how to fix this error: "emulator: ERROR: unknown skin name 'WXGA720'" when attempt to load Android Virtual Device without using Eclipse Juno to launch the AVD first.
For Ubuntu 13.04, I must using Oracle Java Development Kit instead of OpenJDK to run Android Studio. With Eclipse IDE, I can use OpenJDK. Here is the screenshot when I make a new Android project imported from my GitHub account:
I also trying to install Android Studio on Microsoft Windows. To save time, you need to read carefully the note on http://developer.android.com/sdk/installing/studio.html
Since this is a preview release, I don't expect much. I hope Google will make Android Studio tool better.
Saturday, April 7, 2012
Google's Project Glass
Monday, January 9, 2012
2012 New Year Resolution
When your computer had a problem or ran too slow, buying a new computer was not a simple solution. You need to find out where the problem is, why the problem exists and how to fix it. When you ran a report, it took long time to return the result. To make it faster, you can not simply add more memory, or change to a faster CPU. It's complicated. You need to spend time to review your code, review your SQL, and monitor performance. You need to think before you act. You cannot simply solve the issue today by leaving more issues for tomorrow.
Now, as I am getting older, I tell myself: KISS (Keep It Simple, Stupid). Beginning this year, I will try to keep everything in my life and my work as simple as I can. Keep it short.
Saturday, December 10, 2011
My New Toy
My first impression with my MacBook Pro: I can utilize second band 5GHz wireless network (801.11a / 801.11n). Next, it just had only one or two updates, which took a few minutes to install after I initialized the new computer. My Dell Windows 7 took an hour to update. After a system update, I installed Adobe Flash, Java Development Kit SE, LibreOffice, Android SDK, and Eclipse IDE, and Virtual Box. Last, after learning how to use the Multi-Touch track pad, I really like it.
How about the boot time? It is fast but it still cannot beat Ubuntu 11.10 running on a slower CPU, Intel Pentium Dual-Core 2.3GHz.
Saturday, August 13, 2011
Microsoft SQL Server
Microsoft SQL CE 4.0 is an embedded SQL server database engine. It can use to build standalone and occasionally connected applications for mobile devices, desktops, and Web clients. The maximum database size is 4GB per file.
Microsoft SQL 2008 R2 Express is a free edition of SQL Server ideal for developing and powering desktop, web and small server applications. It can support up to 10GB, 1 CPU and 1GB RAM.
Other paid Microsoft SQL 2008 R2 editions such as Standard, Enterprise, or Data Center support up to 524PB, more than 1 CPU and 64GB RAM, and much more features.
Reference:
Compare Microsoft SQL Server Editions
VS 2010 SP1 and SQL CE - ScottGu's Blog
Everything SQL Server Compact
Saturday, July 23, 2011
How to Take a Screenshot
For any Windows version:
- Press
(Print Screen) key to capture a screenshot of the entire desktop and places it in the clipboard. To capture only the active window, press both and keys. - Press
V to paste the screenshot into other application like Paint or GIMP or Microsoft Word or LibreOffice Writer.
Ubuntu Linux
Press
iOS
Pressing and holding the Home button and the Sleep/Wake button. The screen will flash and the picture will be stored in PNG format in the "Camera Roll" on the iPhone or in "Saved Photos" on the iPod touch. The screenshot feature is only available with iOS 2.0 and later.
Mac OS X
On Mac OS X, a user can take a screenshot of an entire screen by pressing ⌘ Cmd+⇧ Shift+3, or of a chosen area of the screen by ⌘ Cmd+⇧ Shift+4. This screenshot is saved to the user's desktop, with one PNG file per attached monitor.
Friday, July 8, 2011
Google+
I did not social much but I love to learn a new thing. I love a new technology. I would like to experience Google Plus by myself. Yesterday, I posted on Twitter, Linkedin, Facebook to ask for the Google+ invitation. Today, I got one.
At first, I like it. It's looking good. At the start, you select the people you know into some pre-define circles: family, friend, acquaintance, following,... I made some extra circles for each group of friend. I thought Google+ is better than Facebook in one thing: the privacy. It seems to me the default settings of Google+ are private. In Facebook, the default settings are public, everyone. To maintain your privacy, you need to change you Facebook setting to private, friend only.
Now, I wonder can Google Plus beat Facebook? Anyone need a Google+ invitation?
Saturday, June 4, 2011
Back to Android
One of my resolution last year was develop a mobile application. It will be a show case of my skills. I'm moving from web applications to mobile applications. I spent a lot of time to read whatever related to Android programming. Reading is not enough. I need to practice and do a real work in order to master in something. Get your feet wet. Get hand-on experience. So, while I'm waiting for my car at dealer, I open my laptop, launch the Eclipse IDE and start programming. I switch back and forth between the Eclipse IDE and Google Chrome browser. Each time, I'm stuck with the code, I search for solution on the web. Developer.Android.com is a huge resource for Android programming.
I hope I will have my app ready to release to Android Marketplace in next few months. Yes, I'm hope. :)










