ボム君.com

Masa's blog

今まで学んできたITスキルを主に。

並行処理

JQury:自身のサーバー上、もしくはローカルのフォルダー内にある全てのイメージをHTMLにロードする(読み込む)

ロードする前に。。。 JQueryを使って下記のコードを使えば一瞬でロードできる。 ただその前にJQueryをインポートする。方法は二つ。1) グーグルがサーバー上で提供しているJQueryを使う <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 上記のコードをhead内に埋め込めばOK. 2) 自身のサーバー上、も…

Programming: Parallel VS Concurrency

In functional programming, such as Erlang and Haskell could be better suited for answering question of what are the differences between Parallel and Concurrency programming. According to "Parallel and Concurrent Programming in Haskell", In…

Erlang: If-else

Very simple usage of If-Else Statement in Erlang Language -module(what_the_if). -export([heh_fine/0, oh_god/1, help_me/1]). %% should check if this actually works (hint: an error will be thrown) heh_fine() -> if 1 =:= 1 -> works end, if 1 …

Erlang: 簡単なサーバーとクライアントのメッセージプログラム

Erlangプログラミングではよく使う二つ以上の間でのメッセージ交換。 主に並行処理で必要不可欠の基礎ポイントをここで。 その簡単な例を作ってみた。 まずモジュールの名前をexample -module(example). 関数を定義する。ここでは三つの関数を使うので三つと…