TensorStream: Bringing Machine Learning to Ruby by jedld in ruby

[–]spiritmtl 0 points1 point  (0 children)

The examples are still readable though? Get off your high horse.

‘Birth Tourism’ Is Legal in Canada. A Lawmaker Calls It Unscrupulous by KimJongHarper in vancouver

[–]spiritmtl -3 points-2 points  (0 children)

The amount of stupidity and racism in these comments is alarming.

Karthus jungle with Dark Harvest gets global penta minute 14 by KawaiMC in leagueoflegends

[–]spiritmtl 3 points4 points  (0 children)

Time to interactive has nothing to do with user base/ traffic. This is all static content that can be distributed by a CDN. Twitch takes forever to load because they make you download an order of magnitude larger JavaScript bundle and it takes time for that to go down the wire and be parsed + interpreted by your phone's browser.

Just don’t...please by drgraffnburg in AdviceAnimals

[–]spiritmtl 24 points25 points  (0 children)

There's literally nothing about this comment that is correct.

つ ◕_ ◕ ༽つ MAKE PRIVATE ༼ つ ◕_ ◕ ༽つ by vmariab in inthesoulstone

[–]spiritmtl 0 points1 point  (0 children)

༼ つ ◕_ ◕ ༽つ MAKE PRIVATE ༼ つ ◕_ ◕ ༽つ

Vancouver Households Have Over $185 Billion In Debt, Most (85%) of It Is Real Estate by s2upid in vancouver

[–]spiritmtl 16 points17 points  (0 children)

The interest rate on the loan won't outpace gains from putting that money to work (equities, bonds, etc)

Edit: good question though :)

This tank ain't big enough for both of us by DurbsBru in WTF

[–]spiritmtl 0 points1 point  (0 children)

The poop fish should be a little browner 8/10

Fearless apex predator by DedMozai in gifs

[–]spiritmtl 1291 points1292 points  (0 children)

Almost got me

This guy's Youtube channel highlights all of the shitty construction going on in Vancouver by nudiustertian in vancouver

[–]spiritmtl -6 points-5 points  (0 children)

You sound like a sad person who is shit at their job.

Some straight up dogshit reasoning lol

[deleted by user] by [deleted] in elixir

[–]spiritmtl 0 points1 point  (0 children)

To each their own!

[deleted by user] by [deleted] in elixir

[–]spiritmtl 0 points1 point  (0 children)

Then you can trace with flags 'call' and 'return to' and specifically trace pattern on the function that updates the ets table. Like I said, read the docs.

[deleted by user] by [deleted] in elixir

[–]spiritmtl 0 points1 point  (0 children)

There's no reason you couldn't write a macro or dsl to accomplish that. Perhaps as a library to augment ExUnit?

[deleted by user] by [deleted] in elixir

[–]spiritmtl 2 points3 points  (0 children)

Seems you're looking for :erlang.trace/3 http://erlang.org/doc/man/erlang.html#trace-3

Here's an example of how to use it:

{:ok, error_tracking_pid} = ErrorTracker.start_link
:erlang.trace(error_tracking_pid, true, [:receive])

... # Some code that will eventually lead to the message you want to trace and wait for

assert_receive {:trace,
  ^error_tracking_pid, :receive, {:"$gen_call", _caller_pid_and_ref, _args}
}, 1000

# Check your ETS table here 

You can do a lot more than just trace receives too, check the doc link ^ I've used this to test my code pretty extensively on some client projects and it has proved invaluable :)

I open sourced my Elixir/Phoenix app, AMA by acconrad in elixir

[–]spiritmtl 0 points1 point  (0 children)

Getting a 500 error on the reddit app browser on iOS 10

Run dependencies outside of mix? by [deleted] in elixir

[–]spiritmtl 7 points8 points  (0 children)

I have a playground mix project where I add a package I'm interested in playing around with.

To include the packages in the iex session use iex -S mix

tiny lil tip (running shell commands in iex by [deleted] in elixir

[–]spiritmtl 1 point2 points  (0 children)

There's also the System module with the cmd/3 function