Fork me on GitHub
#clojure-europe
<
2024-01-03
>
simongray08:01:25

Though I guess that will be a juicy target for Russia if either of us misbehave.

otfrom08:01:05

it will. Good to get some use for your excess wind generation. I'm hoping we'll have more of that here soon

simongray08:01:38

Yes, I love these integration projects. They’re sorely needed in the transition to renewables.

👍 1
upvote 1
otfrom08:01:03

and hopefully battery storage will get even more competitive with gas https://www.reuters.com/business/energy/giant-batteries-drain-economics-gas-power-plants-2023-11-21/

😮 1
otfrom09:01:16

if you want to see what is happening with the interconnector: https://grid.iamkate.com/

simongray09:01:06

That’s pretty cool. You can see that the transfers from Denmark went from nothing to something.

otfrom09:01:40

I presume the transfers can work both ways

otfrom09:01:02

though I think Denmark more regularly overproduces more than the UK does

otfrom09:01:36

(tho it would be good to not curtail our wind power as often as we do. We really do need more storage)

simongray10:01:03

Yes, we sometimes pay negative prices for electricity when it’s very windy.

simongray10:01:50

i.e. we receive money

simongray10:01:48

better to have more stable prices, though I guess this will only affect western Denmark since the east is connected to Sweden.

otfrom10:01:50

the negative prices I'm OK with, but sometimes the wind power just gets turned off as we are making too much. You'll see it as curtailment sometimes on the windfarms on here: https://renewables-map.robinhawkes.com/#5.91/58.055/-3.159

otfrom10:01:59

tho of course I can't find an example today 😄

otfrom10:01:09

usually it happens overnight when it is windy

otfrom10:01:20

and this will be on top of negative pricing

simongray10:01:41

> but sometimes the wind power just gets turned off as we are making too much. This also used to happen a lot before we were properly connected to Germany and Sweden.

otfrom10:01:59

I'm guessing they'll always have some demand for you

otfrom10:01:19

another bit of gas that they can turn off

simongray10:01:39

Sweden is pretty amazing for a producer as volatile as Denmark since they are mostly hydro and nuclear power

simongray10:01:04

but only the eastern half is connected with Sweden, the western part is on the European grid.

simongray10:01:25

(and now the UK)

otfrom10:01:32

hydro is good (quick following power). Nuclear is usually pretty slow to turn up and down, so not always great with wind as a source

otfrom10:01:26

nuclear can be good base power tho. It is really expensive across its life and I'm not sure the economics are going to stand up that much longer. Gas is having the same problem.

simongray10:01:24

I wish we had invested in nuclear rather than gas, though

otfrom10:01:00

from a CO2 pov, yeah

otfrom10:01:08

(not great on water or waste)

simongray10:01:22

Denmark helped birthed the anti-nuclear, environmentalist movement and we shelved our research in advanced nuclear physics

simongray10:01:55

Copenhagen was one of the primary research locations for nuclear physics, but no one remembers that today

👍 1
otfrom10:01:06

my bets atm are on wind, solar, hydro, pumped hydro storage, and battery storage. The economics there seem to be really favourable

simongray10:01:12

yeah, I agree. Still, I wish we hadn’t wasted the past 50 years on not building nuclear power plants

simongray10:01:42

for base load

simongray10:01:22

as an addition to your list

otfrom10:01:14

I think 25-50 years ago was the right time to build nuclear. I'm not sure they make economic sense any more

otfrom10:01:24

biomass is tricky. It could be good, but often ends up competing with food (switchgrass) or contributes to deforestation (Drax in the UK is an example of that) or the fuel used to move the biomass from one place to another ends up being carbon intensive (shipping wood from the US to burn in the UK)

otfrom10:01:34

so I just think it needs to be regulated well

simongray10:01:52

As a local source of power, of course

otfrom10:01:24

converting excess electricity production into hydrogen (green hydrogen rather than stuff made with fossil fuels) might be a good replacement for gas turbines to fill in power gaps, but I've not seen any good write ups on that yet

simongray10:01:36

our biomass is mostly waste

otfrom10:01:36

I'd like to see more tidal as that is predictable

otfrom10:01:58

yeah, biomass from waste is good (tho you need to be careful about the local emissions causing problems)

otfrom10:01:21

anaerobic digesters to create methane to burn in gas turbines are good as well

otfrom10:01:28

(the power of 💩 )

otfrom11:01:19

I really need to write those notebooks to analyse all of this data. Esp now that I have a weather station, heat pump, and solar giving me lots of hyperlocal data.

otfrom11:01:48

apart from anything I need to see if I should invest in another battery and force it to charge at particular times

simongray08:01:28

good morning

schmalz08:01:31

Morning all.

simongray08:01:12

Spend the entire afternoon yesterday trying to cook up some algorithm to scrape a very weird JSON endpoint. The data is made for displaying in a frontend so it isn’t really particularly consistent, but I need to get the underlying dataset in any case. It was quite buggy when I left work. Now I figured I would just use Clojure walk in the correct traversal order (prewalk), swapping everything I need into a map and ignoring everything else and suddenly it’s an easy algorithm to write. Just goes to show that breaking things down to a basic computer science concept like a preorder traversal is usually the right way to go.

💡 4
simongray12:01:49

https://github.com/kuhumcst/dk5/blob/master/src/dk/cst/dk5.clj Really satisfied with how simple it turned out (I’m scraping the Danish equivalent of the Dewey Decimal System).

dharrigan09:01:37

Good Morning!

grav09:01:17

Morning!

reefersleep11:01:45

How did I not learn about terminal file managers before 😮

reefersleep11:01:02

Been cd'ing and mving and cping for ages

reefersleep11:01:02

I'm trying out yazi. What do you use? https://github.com/sxyazi/yazi

reefersleep11:01:47

I should have thought of my audience 😄

Ed11:01:09

... works well with things like tramp over ssh too, if you want remote access to servers and the like 😉

pavlosmelissinos11:01:16

I'm a simple man, I see dired I upvote I do have some fond memories of midnight commander from my BE days, not sure how it fares against others today though.

dharrigan12:01:46

I've gone through a lot of terminal file managers (as I predominately live on the cli), yet I keep on coming back to just cd and mv 🙂

🛠️ 1
upvote 2
dharrigan12:01:21

I even used norton commander in my yoof

dharrigan12:01:45

Mostly these days I use a combination of fzf and bfs mapped to ctrl+t

reefersleep12:01:07

@U11EL3P9U how come? Are the terminal commanders overkill for your usage?

reefersleep12:01:12

Or do they cause mistakes or?

dharrigan12:01:10

I think it's being happy with happy now with fzf and bfs. I can do mv <ctrl+t> up pops fzf, I can fuzzy grep for the file/directory or whatever, choose it, then do it again ctrl+t if I want to move it to another folder.

dharrigan12:01:23

also, mv and cd are on each machine I regularly ssh to 🙂

think_beret 1
pez13:01:20

I also tend to use the old school unix commands. Partly because I am old, I think.

otfrom13:01:59

I use the terminal commands mostly b/c I like to be a short step away from scripting

reefersleep09:01:43

Wrong thread, @U0525KG62 😄 I assume.

💯 1
reefersleep09:01:30

@U11EL3P9U what would typical use of bfs look like to you? I haven't encountered it before, but I'm not satisfied with my current search options, so my curiousity is piqued.

mdallastella09:01:55

I'm not entirely sure, but fish shell should do that out of the box... The only downside is sometimes annoying, since it's not posix compliant.

reefersleep10:01:38

I used to be worried about being too far removed from bash and other standards, but it hasn't really presented itself as a problem in my developing career yet.

mdallastella10:01:10

@U0AQ3HP9U nope, fish has a builtin tab completion with search for directory, commands options, etc... which works almost like fzf + bfs, afaik

mdallastella10:01:07

@U0AQ3HP9U a little screencast I found: https://asciinema.org/a/423239. fzf is used in the video, but it's optional.

🙏 1
🐟 2
reefersleep10:01:42

Thank you for sharing, looks good 🙂 I'm still in the evaluating phase for Kitty

reefersleep10:01:03

Do you happen to know the font used? I'd like to swipe that for my terminal, very friendly.

reefersleep10:01:01

Ah, since it's not a video, I can just inspect the DOM. It's Source Sans Pro, it seems. Nice 🙂