[1] Paper: https://www.cs.cit.tum.de/fileadmin/w00cfj/dis/papers/clouds...
[2] Figure 1: https://tum-dis.github.io/cloudspecs/?state=N4IgzgjgNgigrgUw...
123 karma · joined May 28, 2014
[1] Paper: https://www.cs.cit.tum.de/fileadmin/w00cfj/dis/papers/clouds...
[2] Figure 1: https://tum-dis.github.io/cloudspecs/?state=N4IgzgjgNgigrgUw...
SELECT COUNT(*) as "count",
COALESCE(MAX(EXTRACT(EPOCH FROM age(now(), runs.created_at)))::bigint, 0) AS "max_age"
FROM runs
JOIN stacks ON runs.stack_id = stacks.id
JOIN worker_pools ON worker_pools.id = stacks.worker_pool_id
JOIN accounts ON stacks.account_id = accounts.id
/*unnesting*/
join (SELECT accounts_other.id, COUNT(*) as cnt
FROM accounts accounts_other
JOIN stacks stacks_other ON accounts_other.id = stacks_other.account_id
JOIN runs runs_other ON stacks_other.id = runs_other.stack_id
WHERE accounts_other.id
AND (stacks_other.worker_pool_id IS NULL OR
stacks_other.worker_pool_id = worker_pools.id)
AND runs_other.worker_id IS NOT NULL
group by accounts_other.id) as acc_cnt
on acc_cnt.id = accounts.id and accounts.max_public_parallelism / 2 > acc_cnt.cnt
/*end*/
WHERE worker_pools.is_public = true
AND runs.type IN (1, 4)
AND runs.state = 1
AND runs.worker_id IS NULL
/* maybe also copy these filter predicates inside the unnested query above */
Edit: format and typolibrary(sqldf)
tab1 = read.csv("file1.csv")
sqldf("select * from tab1")
sqldf [1] is a library with which you can access R dataframes just like tables in SQL (it is actually using SQLite in the background). I do not have much experience with programming in R itself, but you barely need it. This approach has the advantage that it is very flexible, and you get the power of the (IMHO) best plotting library ggplot with it. Of course, you can also do more complicated stuff like joining multiple dataframes and basically everything else you can do with SQLite, and then store results back in R dataframes. This workflow works if you use an IDE which lets you execute single lines or blocks of codes like R-Studio. Then you also get a nice GUI with it, but there are also plugins for VI/Emacs that work very well.
[1] https://cran.r-project.org/web/packages/sqldf/index.html
EDIT: code formatting
Anyway, you can interpret this in a postivie way: the EU is trying to be good and is sharing its vaccinations more or less fairly with other countries (for now). However, you can also see it as the EU has no real power at all and is just an easy target to get fooled over by other countries..
[1] https://www.dw.com/en/coronavirus-eu-not-ready-to-share-covi...
I'm not that into finance stuff, but the idea of a short squeeze still happening at the end of this week definetly seems interesting. It could be triggered by all the call options expiring on Friday, which will have to be covered by then. If that increases the price even more, I guess the short sellers will have to cut there losses and buy back stock, which supposably still might be sold short over 100%.
That's at least how I understood it and I have no clue if that might actually work. Of course there is a huge amount of people buying into GME just beacuse it is fun, memes, or whatever. But the idea behind all that definelty seems like an interesting bet.
[1] https://www.reddit.com/r/wallstreetbets/comments/l528pz/gme_...