See no evil, hear no evil, speak no evil!

I found this nice picture in an Art book. I wish I remember its name, but if you know then please let me know.

Anyway, usually the “See no evil, hear no evil, speak no evil” is illustrated by 3 monkeys. In the painting below, it is illustrated by Bears. That’s why I found it interesting.

According to Wikipedia, there are three differing explanations of the meaning of “see no evil, hear no evil, speak no evil”:

  1. In Buddhist tradition, the tenets of the proverb are about not dwelling on evil thoughts.
  2. In the Western world both the proverb and the image are often used to refer to a lack of moral responsibility on the part of people who refuse to acknowledge impropriety, looking the other way or feigning ignorance.
  3. It may also signify a code of silence in gangs, or organized crime.

You might also like:

3 Easy steps to interactively debug Go code with Visual Studio Code in Windows

If you are like me, then you like to be able to write code and develop both from the same integrated environment. Microsoft’s Visual Studio is my favorite IDE. Not long ago, Microsoft released a new free editor called VS Code. It is a powerful editor that is highly configurable and customizable (with extensions).

In this blog post, I am going to illustrate how to set up VS Code in order to debug source code written in the Go language.

Step 1 – Installing the Go language support

First, install the Go language on your computer from here: https://golang.org/dl/

If you did not install VS Code before, install it from here: https://code.visualstudio.com/Download

From inside VS Code, install the Go language extension by clicking on the extensions icon and then searching for “Go” and installing it.

Press the “Reload” button once the extension is installed. Continue reading “3 Easy steps to interactively debug Go code with Visual Studio Code in Windows”

Interesting series like Black Mirror and The Twilight Zone

I have watched the Black Mirror series and found them very interesting and intriguing. Afterwards, my friends told me about The Twilight Zone (the original series).

Anyway, here’s a list of similar futuristic series that you can watch on Netflix and Amazon Prime:

  • Black Mirror
  • Electric Dreams
  • Travelers
  • The Twilight Zone
  • The 100
  • Dark Matter
  • Stranger Things
  • Colony
  • Ascension
  • The Handmaid’s Tale
  • Glitch
  • Cleverman
  • The OA
  • The Flash
  • The 4400

If you know more, please let me know!

You might also like:

Windows Error Reporting – Local crash dump collection – Graphical tool

According to Microsoft, the Windows Error Reporting feature is defined as follows:

The error reporting feature enables users to notify Microsoft of application faults, kernel faults, unresponsive applications, and other application specific problems. Microsoft can use the error reporting feature to provide customers with troubleshooting information, solutions, or updates for their specific problems. Developers can use this infrastructure to receive information that can be used to improve their applications.

When a program crashes in Windows, if it did not have built-in exception handling and crash dump generation, the Windows Error Reporting tool usually creates a crash dump and then queues it for upload to Microsoft.

The Windows Error Reporting tool can be configured in such a way to collect the crashes locally instead of queuing them for upload. The following document explains how.

In short, you have to add the follow registry values:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\<program_name>.exe]
"DumpFolder"=hex(2):43,00,3a,00,5c,00,74,00,65,00,6d,00,70,00,00,00
"DumpCount"=dword:00000100
"DumpType"=dword:00000002

Tweaking the registry manually is often not the best thing to do, therefore I wrote a simple open-source graphical utility that does the registry modification on your behalf.

WerFault GUI Tool

The graphical tool is very simple, but let me explain a few things.

WerFault supports three crash dump types: custom, mini or full memory dumps. Only when the custom dump is selected you can specify additional custom dump flags to WerFault. The custom flags are for advanced users.

In most cases it is advised to select the “Full dump” option because it captures lots of information needed for debugging. And finally, the dump count option lets you specify how many crash dumps to keep around.

There are two blue buttons that allows you to add or update an entry and to delete an entry. That’s it!

In the downloaded package, there’s an executable called crash.exe that you can use for testing. Continue reading “Windows Error Reporting – Local crash dump collection – Graphical tool”

Floatation tanks

Floatation tank, isolation tank or sensory deprivation tank mean the same thing. My first floatation tank experience was at B1 Yoga, and then at Urban Float (both places are in Washington State):

Quoting Wikipedia:

The isolation tank was developed in 1954 by John C. Lilly, a medical practitioner and neuropsychiatrist.[1][2][3] During his training in psychoanalysis at the US National Institute of Mental Health (NIMH), Lilly experimented with sensory deprivation. After 10 years of experimentation without taking any psychoactive substances, he tried floating in combination with a psychedelic agent, mostly LSD (at that time he was a researcher at NIMH, and LSD was legal in the US).

If you have watched “Stranger Things” on Netflix, in one episode, they show us Eleven being trained inside an sensory deprivation tank. Even in later episodes, they build an improvised floatation tank using an inflatable pool and lots of Epsom salt.

Floatation tanks have many benefits, to list them all is to repeat what others have said. I am going to mention just a few:

  • Energises, rejuvenates and revitalises
  • Promotes total calm and peaceful relaxation
  • Deepens meditation
  • Enhances hypnotherapy and self-hypnosis
  • Speeds up rehabilitation and recovery
  • Relieves pain (arthritis, migraines, injuries and so on)
  • Reduces blood pressure, pulse, heart rate and oxygen consumption
  • Increases creativity, problem solving

If you are still uncertain, I advise you to read this classic book about floatation written by Michael Hutchison on how floatation tanks changed his life and help him recover his health.


You might also like:

HTMLPen – Free Online HTML authoring tool

HTMLPen is the most advanced online Visual HTML Editor and Text Editor available.

Some HTML features are :

  • Free Visual WYSIWYG Editor
  • Instant Previews and JS Previews
  • Advanced HTMLCSS and JS Color Coding and Code Completion.
  • Embedded HTML, CSS and JavaScript Beautifier.
  • Advanced Color Picker with Alpha Channel
  • Embedded Image to Base64 Converter
  • Respects your Privacy. No data ever leaves your computer
  • Stores your open projects on browser LocalStorage so you can keep working on them later

HTMLPen is also a powerful online Text Editor and Code Editor that can identify 144 different languages.

  • Syntax Highlighting
  • Code Completion
  • Can open Very Large (TB+) Files
  • Regex Search and Count Functions
  • Respects your Privacy. No data ever leaves your computer

HTMLPen can recognize many languages, including:

ABAP, ABC, ActionScript, ADA, Apache Conf, AsciiDoc, Assembly x86, AutoHotKey, BatchFile, Bro, C and C++, C#, C9 Search Results, Cirru, Clojure, Cobol, CoffeeScript, ColdFusion, Csound, Csound Document, Csound Score, CSS, Curly, D, Dart, Diff, Django, Dockerfile, Dot, Drools, Edifact, Eiffel, EJS, Elixir, Elm, Erlang, Forth, Fortran, FreeMarker, Gcode, Gherkin, Gitignore, Glsl, Go, Gobstones, GraphQLSchema, Groovy, HAML, Handlebars, Haskell, Haskell Cabal, haXe, Hjson, HTML, HTML (Elixir), HTML (Ruby), INI, Io, Jack, Jade, JavaJavaScriptJSON, JSONiq, JSP, JSSM, JSX, Julia, Kotlin, LaTeX, LESS, Liquid, Lisp, LiveScript, LogiQL, LSL, Lua, LuaPage, Lucene, Makefile, Markdown, Mask, MATLAB, Maze, MEL, MIXAL, MUSHCode, MySQL, Nix, Nix, NSIS, Objective-C, OCaml, Pascal, Perl, pgSQL, PHP, Pig, Powershell, Praat, Prolog, Properties, Protobuf, Python, R, Razor, RDoc, Red, RHTML, RST, Ruby, Rust, SASS, SCAD, Scala, Scheme, SCSS, SH, SJS, Smarty, snippets, Soy Template, Space, SQL, SQLServer, Stylus, SVG, Swift, Tcl, Tex, Textile, Toml, TSX, Twig, Typescript, Vala, VBScript, Velocity, Verilog, VHDL, Wollok, XML, XQuery, YAML

Made in sunny California.

HTMLPen.com 2018

You might also like:

Before you speak, let your words pass through three gates

I found this nice picture on the Internet:

I found it very inspiring and serves as a reminder to improve myself when I am engaging with others.

Basically, before saying anything to others, one should be mindful of the effects of their words. Words are very strong and are even said to be stronger than swords and weapons.

Before speaking, ask yourself three questions: Continue reading “Before you speak, let your words pass through three gates”

Batchography: Autorun a Batch file script each time you open the command prompt

This is yet another short article from the many topics mentioned in the Batchography book. In this article, I am going to show you how to have a Batch file of your choice execute each time you open the command prompt.

Putting it simply, all you have to do is create a string registry value called AutoRun under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command then specify the path of the Batch script you want to run!

A useful AutoRun Batch script is a script that sets up command macros using the Doskey command, but that’s a topic for another time!
flower separator
Buy from Amazon:

The A-B-C-D Model – Cognitive Behavioral Therapy

I am not a psychologist, but recently I learned about an interesting tool that can help one enhance their cognitive behavior. It is called the “A-B-C-D Model” or simply the “ABC cognitive model”.

It is developed by one of the Cognitive Behavioral Therapy (CBT) founders: Albert Ellis, PhD. This model can help one think and act more rationally, thus lead a stress free life.

The moment I learned about this model and understood how to apply it, it became an important tool in my daily life. Continue reading “The A-B-C-D Model – Cognitive Behavioral Therapy”