Cooling is removal of heat, usually resulting in a lower temperature and/or phase change. Newton’s law of cooling Newton’s law of cooling states that the rate of heat loss of a body is directly proportional to the difference in the temperatures between the body and its surroundings as long as...
Continue reading...
Introduction Hausdorff Distance is a measure of the degree of mismatch between two sets of points that takes into account the order of the points in the sets. It is defined as the maximum of the distances from a point in one set to the closest point in the other...
Continue reading...
Docker Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package. And because containers...
Continue reading...
Introduction What How set environment variable set -x VARNAME value Erase environment variable set -e VARNAME Alias alias name 'command' Add Path fish_add_path "/path/to/your/bin/" For Loop for i in (seq 1 10); echo $i; end Math math "12345679 * 9" Conditional if [ -e a.out ]; ./a.out; end Comparesion if...
Continue reading...
Introduction Sometimes we need to rewrite core method with C++ to improve performance. For example, hive UDF. We can use JNI to call C++ method in Java. Here is a simple example. The Java Part First We need to create a Java class and declare a native method. The native...
Continue reading...
A SELECT statement can take regex-based column specification in Hive releases prior to 0.13.0, or in 0.13.0 and later releases if the configuration property hive.support.quoted.identifiers is set to none. We use Java regex syntax. Try http://www.fileformat.info/tool/regex.htm for testing purposes. The following query selects all columns except ds and hr. SELECT...
Continue reading...
VSCode is a great editor. It’s free, fast, and extensible. You can use it to edit almost any kind of files. It’s a great tool for developers. Keymaps Function Keymap Open file ⌘ + P Create new file ⌘ + N Save file ⌘ + S Close file ⌘ +...
Continue reading...
Introduction A lock is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. A lock is designed to enforce a mutual exclusion concurrency control policy. Lock Types Optimistic/Pessimistic locking Optimistic locking is a strategy where the lock is...
Continue reading...
Introduction The Clean Architecture is a set of practices to create a software architecture that is simple, understandable, flexible, testable, and maintainable. The Clean Architecture The Clean Architecture is a layered architecture. The layers are: Entities Use Cases Interface Adapters Frameworks and Drivers Boundaries In my opinion, the Clean Architecture...
Continue reading...