Blog

expiriment

to learn more about “elixir’s” ex_doc functionality and markdown

Summary

tODO()

TODO list

  1. figure out how to use ex_doc for a todo list
post_4_4_2015_a()

erlang compile on ec2 t2.micro and amazon linux

post_3_6_2015_c()

great fiddle on loading local files with angular

file loader

post_3_6_2015_b()

Elixir: erlang modules to look at

post_3_6_2015_a()

Some resources around graphvis and D3

post_1_3_2015_a()

testing to see if I can imbed images

post_1_2_2015_b()

DB access for functional languages

Thought i'd post some links and thoughts on accessing databases with functional languages. There doesn't seem to be much published on this topic. ORM obviously doesn't make sense, but some folks seem to think there is a pattern that can be derrived from ORMs

post_1_2_2015_a()

I wish I knew markdown a bit better

I should probly start a todo list of all the things I need to get some time to do

post_1_1_2015()

1/1/2015 First Post

Functions

tODO()

TODO list

  1. figure out how to use ex_doc for a todo list

  2. play with file monitor to watch and compile on change like phoenix
post_4_4_2015_a()

## erlang compile on ec2 t2.micro and amazon linux

wget http://www.erlang.org/download/otp_src_17.5.tar.gz need the following packages installed via yum:

sudo yum groupinstall "Development Tools"
  sudo yum install ncurses-devel openssl-devel htop
post_3_6_2015_c()

## great fiddle on loading local files with angular file loader

## resources for combining D3 with angularjs

list of resources great article on exactly how to get 2 way data binding working and events propagating the article is very instructive but also it is quite confusing at points.

post_3_6_2015_b()

## Elixir: erlang modules to look at

  • digraph - ets based graph structure [ utils ] (http://www.erlang.org/doc/man/digraph_utils.html)

    [ digraph use article ] (http://blog.jordan-dimov.com/elixir-graph-data-structures-with-erlangs-digraph/)

  • fprof - profiling

  • base64 : Bas64 encoding/decoding
  • binary : Highly optimized binary manipulation (but I think most of it is covered in Elixir’s String and Regex modules)
  • calendar : date/time manipulation, but its use is quite verbose
  • crypto : Cryptography functions
  • erlang : Lot’s of usefull (lowlevel) stuff in here
  • ets : fast, mutable, in-memory KV-store
  • http_uri : url encoding/decoding
  • httpc : HTTP client
  • io_lib : For complex term to string conversions
  • os : interaction with the OS
  • pg(2) : usefull for building pub/sub like patterns
  • ssh : SSH daemon/client
  • xmerl / xmerl_xpath : XML parser. It’s use is IMO quite arcane, but xmerl_xpath is actually pretty sweet if all you want to do is extract some values from some XML.
  • zlib : interface to zlib compression library
  • proc_lib - for spawning OTP compliant processes (for logging support)
  • gb_trees - balanced tree
  • ets/mnesia - for keeping server wide state and persisting data
post_3_6_2015_a()

## Some resources around graphvis and D3

This one is very nice because it supports svg foreignobject which allows you to use html templates. [ D3 graphvis or pure javascript graphs ] (https://github.com/cpettitt/dagre-d3) [ interactive demo here] (http://cpettitt.github.io/project/dagre-d3/latest/demo/interactive-demo.html)

[node adjacency in d3] (http://stackoverflow.com/questions/24703464/finding-adjacent-nodes-in-a-d3-force-graph)

[ dagre d3 with all sorts of fancy interaction ] (http://cs.brown.edu/people/jcmace/d3/graph.html?id=small.json)

[ tinkerpop blueprints property graph model description ] (https://github.com/tinkerpop/blueprints/wiki/Property-Graph-Model)

[ gray code for binary tree representation of a tournament ] (http://stackoverflow.com/questions/7960920/gray-code-pattern-in-tournament-chart)

[ more gray code, this is a blog post of how it works ] (http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/229068)

### Random Useful stuff

[ bootstrap form generator ] (http://bootsnipp.com/forms)

[ api rate limiting with redis ] (http://engineering.classdojo.com/blog/2015/02/06/rolling-rate-limiter/)

[ awsauth for elixir and sig v 4] (https://github.com/bryanjos/aws_auth)

[ good write ups on angular directives ] (http://weblogs.asp.net/dwahlin/creating-custom-angularjs-directives-part-6-using-controllers)

post_1_3_2015_a()

testing to see if I can imbed images.

Photograph rainy day leaf by Jesse Schoch on 500px

[rainy day leaf by Jesse Schoch on 500px[(“https://500px.com/photo/91904705/rainy-day-leaf-by-jesse-schoch“)

post_1_2_2015_b()

DB access for functional languages

Thought i'd post some links and thoughts on accessing databases with functional languages. There doesn't seem to be much published on this topic. ORM obviously doesn't make sense, but some folks seem to think there is a pattern that can be derrived from ORMs.

This guy seems to think writing DSL’s is the way to go. I kinda wonder ‘is a dsl different than an API?’, and: ‘why do programmers need a dsl, vs an API?’. Are ppl just trying to make simpler API’s? His lib Cascalog is based on Datalog which I know nothing about, but it seems connected to Datomic, which I have had on my list of things to check out.

At this point I’m watching eye’s wide shut and wondering why kuberick didn’t quit earlier. I found Slick Hello Slick typesafe activator sounds scary, never messed with Scala. watching the video its sounds like it needs a UI, which seems scary. something about needing an IDE to use something seems wrong. Looks worth checking out for ideas.

post_1_2_2015_a()

I wish I knew markdown a bit better

I should probly start a todo list of all the things I need to get some time to do.

wathcing swordfish on cable, why is this the only thing on when I have 900 channels

check out my new libray zdb and the main page of course stink.net or www.stink.net

wonder if this works
post_1_1_2015()

1/1/2015 First Post

first post using ex_doc for a blog. appears script tags work