codemunky

u/codemunky


r/3Dprinting•

When I first started looking I only looked at Bambu, mainly because of all the product placement my YouTube channels have been showing me the last year (Superfast Matt, etc). It was the name that I knew.

In their line-up, it's clear that the X2D is the better buy over the P2S right now, unless your budget is so tight that you probably shouldn't be dropping $500+ on a printer at all! (And I need a heated enclousure.)

But... I did some more reading. I looked beyond Bambu. I am full of regret, I should have just shut my eyes and hit "Buy" 🤣

So, on the one hand I feel like there's never been a better time to buy a 3d printer, the technology has come on so far in the last 10 years... The

037

r/GalaxyWatch•

I was just about to buy a Watch7 44mm LTE to carry with me when I want to listen to Spotify over bluetooth, don't want to have my phone with me, but want to be able to make a call in an emergency.

But apparently this isn't straightforward. If possible at all. I assumed I'd just get a £5 eSim and that would more than cover me for the once-in-a-year that I might need to make a phonecall. But it seems the best option is to switch my phone over to Three, link the watch to the same account, and pay £6 a month for the pleasure! 🤢

Is that right? Or are there workarounds?

I also want to maximise battery life / storage space for Spotify, so would like to have minimal "stuff" on the watch - is

20

r/ereader•

I've never had an e-reader. I saw the Xteink X3 the other day for the first time, and immediately wanted one, I love the compactness of it. I was sad when I learned there's no backlight, as 90% of my use would probably be in bed in the dark.

Can anyone advise if there's a similarly-sized device with backlight?

Thank you!

12

r/PHP•

I've always known that static can be declared in OOP code, but I've never come across it being declared in procedural code before. ChatGPT just slipped it into a simple function I had it draft up for me.

function foo(int $value)
{
    static $bar = [1, 2, 3, 4];

    return $bar[$value];
}

Obviously this is a trivial example where the performance benefits would be on a nano-scale level. But consider

function foo(int $value)
{
    static $bar = getArrayFromExpensiveDBCall();

    return $bar[$value];
}

Presumably that would also just execute once, and could be a huge time saver if your code was repeatedly calling this function.

Again, a poor

021

r/egopowerplus•

I have the 18" chainsaw and two 2.5Ah batteries. If I'm chopping up trival stuff, 4-5" limbs, it works great. If I'm bucking up a 12" trunk it'll barely get through a cut without cutting out. I find myself swapping batteries constantly, using one while the other flashes its red ring and cools a little bit.

A 5Ah would obviously have double the capacity, but what I'm really interested in is if it would handle these high-load situations better, with fewer temperature cut-outs?

Additionally, are there other brands of battery worth considering, either for better performance or cheaper cost?

213

r/webdev•

I feel I spend way too much time noticing that my server is getting overrun with these bullshit requests. I've taken the steps to ban all Chinese ips via geoip2, which helped for a while, but now I'm getting annihilated by 47.82.x.x. IPs from Alibaba cloud in Singapore instead.

I know one option is to route everything through Cloudflare, but I'd prefer not to be tied to them (or anyone similar).

What are my other options? What are you doing to combat this on your sites?

28292

r/PHP•

I just happened to have a look at the contents of /var/lib/php/session, and among the thousands of

sess_<32 hexadecimal characters>

files, there's two which are

sess_<32 alpha-numeric characters> (i.e. not just 0-9a-f)

Which seems very strange. Has anyone else ever noticed this or have any explanation for it?

314

r/neovim•

Apologies, because I know this isn't a specific neovim question, but the r/windowsterminal subreddit is locked down and I can't post there.

I've been a PuTTy user for years, and I'm used to exiting vim/neovim and my screen returning to whatever was on it before I entered vim - i.e. the output of previous commands etc.

For instance, if I'd done ls and then vim 1.txt, when I :q, I'd be back at a prompt where I could still see the output of ls.

I'm trying to move over to Windows Terminal today, and notice when I exit vi/vim/neovim, I get returned to a blank screen. Weirder still (for me), is that if I scroll up the last screen that was visible in vim is still there.

I can _totally

12

r/neovim•

Or to put it another way, 1 character or margin to the right of the LineNr column?

I'm certain I'm not alone in wishing for this, and I feel it would be easy for the maintainers to add, but given that I don't think it IS possible (I've spent a lot of time googling and probing chatgpt) I guess it's harder than it seems for whatever reason!

Hopefully I'm wrong, and there is a way, and someone reading this knows it.

Thank you!

48

r/HiveHeating•

My Hive Hub is currently on 192.168.1.5

I'm unclear if I set this cleverly somehow a few years ago, or if it was like that when we inherited it (came with the house we bought)

Question is, how can I change it? My Plusnet router says the IP address is assigned by the device (as opposed to by the router), so it won't let me change it. I can't see anything in my Hive account/settings. Is there a web interface for the hub that I can connect to? Or telnet/ssh whatever?

Thank you!

110

r/PHP•

I just tracked down a tricky bug, which turned out to be a use of strpos instead of mb_strpos.

Most of the time I do use the mb_ counterparts, but it seems (grepping through my codebase) I forget occasionally. I thought it was muscle memory at this point, turns out its not.

I've added a git pre-commit hook (my first ever, red letter day) to catch these now. Question is, are there times when one might legitimately want to use a non-mb function? I can see that sometimes strlen IS useful, for instance when setting a content-length header. What about the other string functions, are there cases where non-mb has a different use?

I don't care about performance, it's a micro-o

1925

r/ffmpeg•

Hi, I need to regularly process 100+ ~30sec 1080p clips. I'm creating three various different versions. Different resolutions, some with a transparent watermark that moves around, some cropped to a central 15s portion of the video, etc. Also extracting some thumbnail JPEGs from them.

My code is far from finalised, but an example of what I have for one of the transformations at the moment is attached at the bottom of this post.

Performance is key. This will be running on my webserver, and I don't want people waiting a long time, or for the website performance to suffer too much while they're processing. I know this is "doing it wrong", and I should provision a separate box for th

27

r/MicrosoftEdge•

In a recent update Edge now shows a "Saved Info" field on most form text fields that I'm using. The worst bit is I can no longer hit enter to submit the form without hitting esc or tabbing out of the field to close the popup. Very infuriating. Can I turn this off? I'm surprised to find no-one else complaining about this....!

12

r/hetzner•

I'm sure this isn't possible, but I'm debating moving from a dedicated setup to a co-located one. And I wondered if it's possible to buy Hetzner hardware from them?

For instance, I currently have an AX161 box. I know if I stopped using it it would normally go into their server auction, but could I purchase it from them and have it moved to a colocated rack space instead? 🤔

718

r/ponds•

We're very fortunate to have a nice little cottage with a large garden and an adjoining few acres of wooded limestone hillside. We have a few chickens.

I've never seen any evidence of rats.

It's quite a steep hillside so drains quickly when the rain stops. Very rarely get a puddle anywhere, and no streams run down this part of the hill.

In addition to the chickens, I'd like to make a "large" (everything's relative!) pond (5m x 10m) and get some ducks as well. There's a bit of exposed rockface at the back of where I'd like the pond to be, so I'd love to have a water feature with some water running down the rock into the pond.

Will the addition of a) water and b) the noise of running wa

19