I am having some minor trouble with erlang, namely that I want to print out a given part of an array, however, I do not appear to be able to do so easily. Here is the array I am trying to print using array:get(X, Array). [{carrier, [{e,10}, {f,10}, {g,10}, {h,10}, {i,10}]}, {battleship, [{a,1}, {a,2}, {a,3}, {a,4}]}, {cruiser, [{e,3}, {e,4}, {e,5}]}, {destroyer, [{f,4},{g,4}, {h,4}]}, {patrol_boat
What's the best way to integrate Erlang and python? We need to call python functions in Erlang and call Erlang functions in python. At this moment we are trying to use SOAP as a intermediate layer between these two languages, but we have a lot of "not compatible" troubles. Could you advise the best way to perform integration?
Here's an interesting article about "passing fun's to other Erlang nodes". To resume it briefly: [...] As you might know, Erlang distribution works by sending the binary encoding of terms; and so sending a fun is also essentially done by encoding it using erlang:term_to_binary/1; passing the resulting binary to another node, and then decoding it again using erlang:binary_to_term/1.[...] This is pr
I seem to not fully understand, how the -on_load directive works. In a module i have written i have a function to initialize an ets table and populate it with some data. This function works properly when calling it explicitly. However: i thought it would be nice, if the ets table would be populated "automatically" when the module is loaded. But this does not seem to work, because ets:info(filesig)
I've Phoenix app (I created it with --api flag) that has some additional data required to process requests that I store in priv/data/filters.csv. So it works fine in dev mode, I can read this file like: File.stream!("priv/data/filters.csv"), but once app is delivered using mix edeliver update this file is not accessible anymore. I can see this folder in build directory, but after app is delivered
I am struggling with this issue for more than 6 hours. I want to remove the validation from Spree::Order module Spree class Order < Spree::Base MONEY_THRESHOLD = 100_000_000 MONEY_VALIDATION = { presence: true, numericality: { greater_than: -MONEY_THRESHOLD, less_than: MONEY_THRESHOLD, allow_blank: true }, format: { with: /\A-?\d+(?:\.\d{1,2})?\z/, allow_blank: true } }.freeze NEGATIVE_MONEY_VALID
I need an efficient structure for array of thousands of elements of the same type with ability to do random access. While list is most efficient on iteration and prepending, it is too slow on random access, so it does not fit my needs. Map works better. Howerver it causes some overheads because it is intended for key-value pairs where key may be anything, while I need an array with indexes from 0
When running iex interactively, one can use iex --cookie <cookie> --name <hostname> How do I set the same values for cookie and name when running an executable created using mix escript.build? I figured out that I need to create a vm.args file with the following contents ## Name of the node -name name@host ## Cookie for distributed erlang -setcookie cookie So I created a vm.args file in the same d
I'm trying to update to Rails 5, I'm getting the following deprecation warning: DEPRECATION WARNING: Method to_hash is deprecated and will be removed in Rails 5.1, as ActionController::Parameters no longer inherits from hash. Using this deprecated behavior exposes potential security problems. If you continue to use this method you may be creating a security vulnerability in your app that can be ex
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く