Posts
run redux-saga examples
run redux-saga examples TL;DR:
yarn yarn build
I run into module not found issues when I try to run those examples under the repository of redus-saga. Even following comments in github issues and stackoverflow, those solutions don’t work out.
Scripts in the package.json of the root folder don’t work for examples.
After run yarn && yarn build, can change directories to those examples and run them.
Posts
Workaround solution for inout refcursor parameters for stored procedure in postgresql 11 JDBC
The workaround solution mentioned at Issue doesn’t work when inout refcursor parameter is used.
Here is my workaround solution for that.
CREATE OR REPLACE PROCEDURE sp_test(INOUT results refcursor) LANGUAGE plpgsql SECURITY DEFINER AS $procedure$ begin results := 'cur' ; OPEN results for select generate_series dt from generate_series(date'2019-01-01' , date'2019-01-31', interval '1 day'); end;$procedure$ ; conn.setAutoCommit(false); Statement st = conn.createStatement(); ResultSet rs0 = st.executeQuery("call sp_test('')"); ResultSet rs = st.
Posts
Error message of rabbitmq is terrible
Error message of rabbitmq is terrible Today I installed RabbitMQ 3.7.13-1. However I always got the following messages when running rabbitmq-server and a dump. The error message doesn’t give any clue of root cause. It is none of the cases searched from google such as permission issue, configuration issue etc.
{"init terminating in do_boot",{undef,[{rabbit_prelaunch,start,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}} I re-read the installation guide and double-checked steps and configuration. There is no luck.
Posts
Issues of clean setup spacemacs and their solutions
I encountered the same issue "File error: Cannot open load file, No such file or directory, bind-map" twice in my setup of spacemacs. The issue can be solved several ways which I found from github and clojurians-log.clojureverse.org. I consolidate the reasons and list them below.
Timeout: the relevant setting in .spacemacs :- dotspacemacs-elpa-timeout 30
TLS Certs: emacs --insecure
Permanent TLS Certs: the relevant setting in .
Posts
Chemical Bonding
Chemical Bonding The Stable Electronic configuration of a noble gas An outer electron or outermost electron is also known as valence electron. Only outer electrons are involved in chemical reactions.
In what way do noble gases behave differently from other chemistry ? Noble gases are unreactive because they have fully filled outer shells, that is, they have duplet or octet electronic configuration.
How do atom achieve the electronic configuration of a noble gas?
Posts
Kinetic Particle Theory
States of Matter Matter is substance that has mass and occupies space. All living and non-living things are matter.
State of matter: solid, liquid, gas
Property Solid Liquid Gas Shape
fixed
not fixed
not fixed
Volume
fixed
fixed
not fixed
Compressibility
Cannot be compressed
cannot be compressed
Posts
Atomic Structure
Inside Atoms All matter is made up of atoms. Atoms are made up of subatomic particles: protons, neutrons and electrons.
The protons and neutrons
are tightly packed in the centre of an atom
together from the nucleus of the atom.
The electrons move rapidly around the nucleus.
Subatomic particle Symbol Relative charge Relative mass Inside the nucleus
Posts
Twilio Call Status StateChart
I was not familiar with SIP states during the integration of VoIP products such as twilio, plivo and sinch. I am still confused about the state changes after reading documents. Here try to visualize the state change and help me to remember it. The state chart is based on my understanding. It is not necessarily correct. It is just for my reference.
QueuedInitiatedRingingAnsweredInProgressCompletedBusyNoAnswerCanceledFailed