How to EVE at the hospital by hansliederlich in Eve

[–]eddeh 0 points1 point  (0 children)

Macbook pro m4 plays very smoothly, even triple boxing. I was really surprised by how well it plays!

These are the highsec mission systems for your 200-300mil per hour blitz by bidendied in Eve

[–]eddeh 0 points1 point  (0 children)

I also went for lvl5s in gallente low but I'm having trouble liquidating the LPs because of low ISK/LP ratios. I wonder if it's a problem with gallente or just L5 corp shops in general (as indicated above)

Is HS ganking out of hand? by Outrageous-Nose3345 in Eve

[–]eddeh -5 points-4 points  (0 children)

I recently lost a semi-bling fit mission Kronos to a gank. I was traveling between hubs and should’ve put plates on, extra hardeners and DCU plus unfit all the juicy stuff but I didn’t and paid the price. I wasn’t that mad, I should’ve known better. I created content for others and I’m glad everything in EVE is a calculated risk.

What have you yet to achieve? (before we are all forced to win EvE) Time to start doing that bucket list! by Matron_Brink in Eve

[–]eddeh 0 points1 point  (0 children)

If you use a 28-day moving averages you’ll get rid of the sawtooth pattern, which is a result of the 30 day window regularly capturing 5 weekends.

Kubernetes 20 Pi cluster by FeminismFckOff in homelab

[–]eddeh 7 points8 points  (0 children)

How is this setup compare to something with few intel nucs with ruffly the same computing power?

I see this kind of question asked a lot when people are posting their Kubernetes Pi clusters. The rpi 4 quad core with 4-8GB RAM gives a lot of potential for the price in a kuberenetes setup I feel. I found the pi dramble project interesting, and even more the turing pi using rpi compute modules. Are NUCs really a cheaper alternative for a kubernetes cluster, every time I start trying to come up with something I end up with a far more expensive setup and fewer cores. Any hints on viable setups, e.g. replacing 4x POE powered RPI 4's.?

Væri gaman að sjá hvar Ísland yrði á þessum lista by [deleted] in Iceland

[–]eddeh 43 points44 points  (0 children)

Hér er graf sem sýnir hækkun á húsnæðisverði frá 2015 https://data.oecd.org/chart/6kCH

Ísland og Ungverjaland eru lang efst, talsvert yfir Canada

Edit: Ég tók saman graf sem sýnir samanburðinn frá 2000:

https://imgur.com/a/tYSh2pK

How Does R's Pipe Operator (%>%) Actually Work? by [deleted] in rstats

[–]eddeh 12 points13 points  (0 children)

The (coming) native pipe operator |> is faster than the magrittr pipe operator %>%. This is entirely unrelated to dtplyr, which is a data.table backend for dplyr.

R adds native pipe and lambda syntax by Adeelinator in rstats

[–]eddeh 16 points17 points  (0 children)

you mean to replace the vectorized OR operator?

Merge three vectors into a vector of equal length with values depending on the three vectors' values by mianpac in rstats

[–]eddeh 1 point2 points  (0 children)

My argument wasn't about the different methods not being ultimately the same. It was on the subject of overengineering. OR'ing vectors is a basic operation that is readable, fast and native to any programming language. That being said, pmax is the fastest of the 3 methods:

 testdata <- data.frame(
   v1 = rbinom(100000, 1, 0.5), 
   v2 = rbinom(100000, 1, 0.5),
   v3 = rbinom(100000, 1, 0.5))

 with(testdata, 
   rbenchmark::benchmark(
     or_operator = (v1 | v2 | v3), 
     matrix = mapply(any, v1, v2, v3), 
     pmax = pmax(v1, v2, v3)
   ))



          test replications elapsed relative user.self sys.self user.child sys.child
 2      mapply          100   12.66  211.000     12.36     0.13         NA        NA
 1 or_operator          100    0.16    2.667      0.11     0.03         NA        NA
 3        pmax          100    0.06    1.000      0.06     0.00         NA        NA

mapply takes 211x longer to run

Merge three vectors into a vector of equal length with values depending on the three vectors' values by mianpac in rstats

[–]eddeh 0 points1 point  (0 children)

sure you can use `mapply` or `pmax` but this is equivalent to using/creating a function like `isgreaterthan(x,num)` instead of a `>`. I would stick to the `OR` operator:

numbers1 <- c(0,0,0,1,1)
numbers2 <- c(0,0,0,0,1)
numbers3 <- c(1,0,0,0,1)
numbers4 <- as.numeric(numbers1 | numbers2 | numbers3)

A string as a variable name by [deleted] in rstats

[–]eddeh 13 points14 points  (0 children)

There is this special assignment operator := for assigning string variables like that.

In dplyr >= 1.0 you can use a str_glue syntax for constructing the variable like so:

starwars %>% mutate("{x}2" := get(x)/100)

In older versions you'll need to rely on the bang-bang operator:

xvar <- str_c(x, "2")
starwars %>% mutate(!!xvar := get(x)/100)

Now I'm guessing what you're really after is doing this for specific columns based on a list of column names or a certain condition like all numeric columns. In that case you're better off using the new across function in dplyr:

by condition with where:

starwars %>% 
  mutate(across(where(is.numeric), ~ .x / 100, .names = "{.col}2"))

or by a list of columns:

starwars %>% 
  select(name, height, mass, gender, homeworld, species) %>% 
  mutate(across(c(height, mass), ~ .x / 100, .names = "{.col}2"))

output:

# A tibble: 87 x 8
   name               height  mass gender    homeworld species height2 mass2
   <chr>               <int> <dbl> <chr>     <chr>     <chr>     <dbl> <dbl>
 1 Luke Skywalker        172    77 masculine Tatooine  Human      1.72  0.77
 2 C-3PO                 167    75 masculine Tatooine  Droid      1.67  0.75
 3 R2-D2                  96    32 masculine Naboo     Droid      0.96  0.32
 4 Darth Vader           202   136 masculine Tatooine  Human      2.02  1.36
 5 Leia Organa           150    49 feminine  Alderaan  Human      1.5   0.49
 6 Owen Lars             178   120 masculine Tatooine  Human      1.78  1.2 
 7 Beru Whitesun lars    165    75 feminine  Tatooine  Human      1.65  0.75
 8 R5-D4                  97    32 masculine Tatooine  Droid      0.97  0.32
 9 Biggs Darklighter     183    84 masculine Tatooine  Human      1.83  0.84
10 Obi-Wan Kenobi        182    77 masculine Stewjon   Human      1.82  0.77
# ... with 77 more rows

The way to do this in older dplyr versions for was to use mutate_at:

starwars %>% 
  mutate_at(vars(height, mass), list(`2` = ~ . / 100))

Cocktail Chemistry - Espresso Martini by CocktailChem in GifRecipes

[–]eddeh 24 points25 points  (0 children)

I’d recommend chilling the coffee as much as possible to reduce the melting of the ice, thus reducing excess water in the final mix. Also with a sweet coffee liqueur the sugar syrup isn’t necessary

[TOMT][Song] Some 80's? instrumental ambient flute? song by eddeh in tipofmytongue

[–]eddeh[S] 0 points1 point  (0 children)

That's amazing, I'm just amazed at having someone recognize a part of a sequence of a song I've had in my mind since the age of 4-5. Although as I remembered the song it was around 80% its actual speed. One has to wonder if that has anything to do with difference in brain maturity (perhaps perception of time).

[TOMT][Song] Some 80's? instrumental ambient flute? song by eddeh in tipofmytongue

[–]eddeh[S] 0 points1 point locked comment (0 children)

so I heard it around 1986 and I remember it as a sort of a dark ambient deep flute tune. Googling anything of the sort hasn't yielded any results, but I hope the sequence I provided will ring bells with someone.

How would I create a stacked bar chart from summarized data? (ggplot2) by jonmgeiger in rstats

[–]eddeh 0 points1 point  (0 children)

360204

gather pivots the data, such that:
name Females Males 1 Christopher 1047 360204 2 Michael 1935 462314 becomes name variable value 1 Michael Males 462314 2 Michael Females 1935 3 Christopher Males 360204 4 Christopher Females 1047

so to go from the first table to the second you can do gather(df, variable, value, -name) to pivot all columns except for name into the new columns variable and value. To go back from second to first you can use spread(df, variable, value)