ERLANG etop to get erlang process info
Labels: etop, process information
Labels: etop, process information
Erlang used to guess whether a given list is in a printable string format and print the list as a character list. This can be happened even related with binary lists. From Erlang version R16B, function is introduced to control this behavior.
Labels: characters, erlang, lists, printable, unicode
I searched every where in the Internet for a way to implement 'like-search' function using ERLANG for MNESIA (Similar to what we experience in MySQL). Unfortunately I couldn't find it. Finally my one of friend (Sisila Priyankara@Sri Lanka) wrote a function exactly which I expected.
Labels: erlang, like-search, mnesia, mysql, qlc
When you are going to create a mnesia schema with more than 1 node in nodes list you may end up with a error looks like following
Labels: create schema, erlang, erroralready_exists, mnesia
I needed to convert [1,2,3,4,5,6,7,8] to <<"1,2,3,4,5,6,7,8">>. When I used list_to_binary() it returns <<1,2,3,4,5,6,7,8>> which gives me an error in encoding the above output with the rfc4627:encode().
Labels: binary, io_lib:printable_latin1_list, list_to_binary, rfc4627:encode()
If you need to compare 2 lists and take the similar or different elements can be done using the following simple method. Assume two lists as X and Y.
Labels: compare, dissimilar elements, lists, similar elements
If you want to get UNIX TIMESTAMP which means number of seconds starting from Thursday, 1 January 1970, You can use following command.
Labels: UNIX TIMESTAMP