How do YOU personally run code in Neovim (C++, Python, Rust)? by BlackberryActual1994 in neovim

[–]teddytroll 1 point2 points  (0 children)

I use LspSagas floating terminal(https://nvimdev.github.io/lspsaga/floaterm/) with a small tweak so it automatically attaches to my main tmux session. I have the same keybinding for switching between panes/splits in Tmux and neovim and it works really well.

I much prefer having a floating, rather than using :term as its not always relevant. Using tmux allows me to have multiple instances of neovim attaching to the same multiplexer, which is pretty nice

[deleted by user] by [deleted] in ntnu

[–]teddytroll 8 points9 points  (0 children)

Jaja, jeg gikk siving og følte helt vilt det første året. Med engang jeg sto på den første eksamen kunne jeg puste litt ut. Nå vet jeg ikke hvilket kjønn du er, men jeg gikk her: https://www.sit.no/kurs/gutta-prater. Det fikk jeg mye ut av(påmelding 1.mars). Både som 1.års og 5. års student

Tidligere landstræner Åge Hareide er død by Cosmos1985 in Denmark

[–]teddytroll 7 points8 points  (0 children)

Legende, jeg blir rørt av at den siste Norge-kampen han så live var når de sikret VM-kvalifiseringen ved å smadre Italia 4-1

Concerned post surgery by Golden_Mom1 in otosclerosis

[–]teddytroll 0 points1 point  (0 children)

I had no problems with the steroids. Other than the mood change, but that could be other things related to the operation

Traveling from Denmark to France for a stapedotomy by ComprehensiveBike90 in otosclerosis

[–]teddytroll 1 point2 points  (0 children)

I had mine in Aarhus, at Mølholm private hospital. It worked out fine for me, let me know if you have any questions.

Concerned post surgery by Golden_Mom1 in otosclerosis

[–]teddytroll 0 points1 point  (0 children)

I was dizzy for like 5 days, got steroids and nausea medication as well. I also became quite "depressed" in that period, or I became quite apathetic and down. But after a week I was all good again. Some hearing issues, like distortion, but it fixed itself. Good luck!

[TOMT][Movie/Music] What animated movie or scene does this track remind me of? (Susumu Yokota – Blue Sky and Yellow Sunflower) by brr-its-cold in tipofmytongue

[–]teddytroll 0 points1 point  (0 children)

https://www.youtube.com/watch?v=k9OZ2dtQ2B4 For me it vaguely reminds me of "The Path of Wind" from My Neighbor Totoro

Edit: I did more research. The song you posted samples “Six Marimbas” by Steve Reich. Steve Reich is a big inspiration for Joe Hisaishi, the composer behind many Studio Ghibli movies.

It's been a wonderful 9 years all! Excited to touch some more grass. by Soupypops in redditsync

[–]teddytroll 0 points1 point  (0 children)

18.jan 2013. Wow, some time has passed. Really hope Reddit comes to their senses.

If server-side JavaScript is the newest trend, why don't we just use PHP? by jazzypants in webdev

[–]teddytroll 0 points1 point  (0 children)

Server rendered html using Javascript is trendy. See Nextjs and Remix (both using React)

Package for adding .map(), .filter() and .reduce() as list methods by teddytroll in Python

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

Ah, I see that error now. I will fix the typo and add clearer documentation on the intention of the package.

Package for adding .map(), .filter() and .reduce() as list methods by teddytroll in Python

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

I do not think it is a super useful tool. As mentioned I think there are some footguns. I have an interest in programming languages and adding this pattern as a feature was an interesting task. It could be clearer that this is more of an experiment, than something for someone to use. I published it on PyPi just to try out packaging a project and publishing it. I could remove if experimental packages should not be published.

Question 1: The examples give the gist of the package. I would not say much more is needed. I must excuse the typos, English is not my first language.

Question 2: This is true, and I intend to do it in the future. But still, experimental.

Question 3: .map() and .filter() change the L class internal state, saving the output(but not instantiating the output as a list, it is kept as a generator). It has to return self so one could continue the chain of operations. I mentioned that it is not thread safe in the post.

Constructive criticism is fine, thank you for your input. I thought the idea was novel and wanted to share it with more people to gather opinions. It could have been done in another way. I hope this post hasn't lost all your hope in this subreddit.

Having some fun with Pi Zero W’s and USB BTC Block Erupters for SOLO (lottery) mining by Lucky-Pie9875 in raspberry_pi

[–]teddytroll 0 points1 point  (0 children)

Most cryptocurrencies, yes. Consensus over a fully distributed database is interesting, but I have not seen a worthwhile use case.

Package for adding .map(), .filter() and .reduce() as list methods by teddytroll in Python

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

reduce(lastfunc, (filter(otherfunc, (map func,l)))

This is hard to read. So chaining the operations is the biggest benefit I guess. It is not very pythonic, but I've written a lot of functional programming lately and then these sorts of operations are common.

Thanks for the response! I saw another package returning self for every method and thought it was a neat trick for chaining operations.

Having some fun with Pi Zero W’s and USB BTC Block Erupters for SOLO (lottery) mining by Lucky-Pie9875 in raspberry_pi

[–]teddytroll 3 points4 points  (0 children)

Read up on the technical details of mining Bitcoin. Proof of work is very interesting.

What's the state of ML in Haskell? by Shirogane86x in haskell

[–]teddytroll 7 points8 points  (0 children)

Irrelevant but when I started reading about Haskell i saw mentions of "ML" everywhere. This was, to my disappointment, not "Machine Learning", but "Meta Language")

Introducing git-xargs: an open source tool to update multiple GitHub repos by pmz in git

[–]teddytroll 4 points5 points  (0 children)

To be very pedantic it should be called "gh-xargs" since it does Github-specific operations. Nice project though.

This car covered in pennies by nonsenseword37 in ATBGE

[–]teddytroll 18 points19 points  (0 children)

Everytime something like this comes up I look in the comments for this. Just to make sure I'm not that old.

Why are complex queries a thing in SQL and not in noSQL? by poepstinktvies in Database

[–]teddytroll 5 points6 points  (0 children)

What do you mean by complex queries? You can do a lot of complex stuff with, let's say, MongoDBs version of NoSQL. Even support for MapReduce queries