ax3man1ac
ax3man1ac.online
ax3man1ac
@ax3man1ac.online
Software developer of ~30 years (mostly Python these days but a fair few others). Retro computing (love love love the Speccy) and sci-fi/fantasy & horror fan.
Good point... so I guess we could use itertools.tee here and get the same kind of effect of using a deque... (untested):

def mvavg(v, n):
windows = [islice(w, off, None) for off, w in enumerate(tee(v, n))]
return [sum(window) / n for window in zip(*windows)]
November 16, 2025 at 12:17 PM
Hahaha... just found an old post of mine that used deque on SO: stackoverflow.com/questions/19...

Maybe something like that would be a better use of a deque example? That or something that involves shifting things efficiently with/without a fixed size and not getting windows involved per se?
How to pull X amounts of previous data into row in CSV
I have a very large CSV of data, and I need to append previous data to each row for each name in the column 2 for dates previous to the current one stipultated in column2. I think the easiest way to
stackoverflow.com
November 15, 2025 at 3:24 PM
Knocked this up quickly sticking to itertools instead of collections.deque so probably not 100% 🤔

def mvavg(v, n):
windows = [islice(v, x, None) for x in range(n)]
return [sum(window) / n for window in zip(*windows)]
November 15, 2025 at 3:18 PM
Luck depending on the seed I guess... what's the plan for tomorrow's stream?
November 14, 2025 at 6:09 PM
So much for having an aquarium and relaxing to it...
November 14, 2025 at 6:08 PM
on a tangent - I sometimes think the python statistics module (docs.python.org/3/library/st...) doesn't get enough love - although I imagine most if you're in that area are going to be using numpy stuff anyway...
statistics — Mathematical statistics functions
Source code: Lib/statistics.py This module provides functions for calculating mathematical statistics of numeric ( Real-valued) data. The module is not intended to be a competitor to third-party li...
docs.python.org
November 14, 2025 at 12:52 PM
Yeah... it's a bit meh when you think an interview has gone well and don't get it... but it's somewhat soul destroying not even getting interviews... Things have a way of turning out though - hopefully sooner rather than later 🤞
November 13, 2025 at 6:38 PM
Hope the interviews are going okay. Enjoy the well deserved weekend!
November 13, 2025 at 2:30 PM
Played that several times over on the Speccy!
November 13, 2025 at 2:09 PM
You, me and most people I imagine... a little laptop pr0n never hurts now and then though :p
November 13, 2025 at 2:00 PM
I stumbled across this a while back... not very portable and pricey though... www.laptopsdirect.co.uk/acer-predato...
Acer Predator Helios 18 AI Intel Ultra 9 192GB RAM 5TB SSD RTX 5090 120Hz Windows 11 Gaming Laptop - Laptops Direct
Buy Acer Predator Helios 18 AI Intel Ultra 9 192GB RAM 5TB SSD RTX 5090 120Hz Windows 11 Gaming Laptop from LaptopsDirect
www.laptopsdirect.co.uk
November 13, 2025 at 1:55 PM
That'd be sacrilege - everyone knows it should be full-fat full-sugar coke...
November 13, 2025 at 11:06 AM
Mind you - if the main photo for that article is actually little figurines and they were only a couple of quid - I know quite a few people who'd snap some of those up... some are quite cute/amusing...
November 11, 2025 at 9:17 AM
You just know someone like this will turn up though... www.theguardian.com/world/2024/n... 🤷‍♂️
Crypto entrepreneur eats banana art he bought for $6.2m
Conceptual work created by Italian artist Maurizio Cattelan was sold at auction in New York last week
www.theguardian.com
November 11, 2025 at 9:14 AM
Kind of nice in a way when nature saves you having to dig up a white noise track...
November 11, 2025 at 9:07 AM
If you can be patient and give it 15 hours...
November 11, 2025 at 9:03 AM
Then maybe some unicodedata stuff that normalises strings - not sure if that's 100% casing but...
November 10, 2025 at 2:54 PM
I imagine the most used are upper, lower, title, capitalize - then you've got the not often used casefold and swapcase. I suppose at a push that translate could technically be considered meeting the requirement.
November 10, 2025 at 2:54 PM
I like your optimism they'll even find the right street to make that possible
November 10, 2025 at 1:52 PM
really scary that if it wasn't for the eye colour - that's very very close to a mirror image... 😱
November 7, 2025 at 7:01 PM
Nice little bonus for when/if we ever get to pensioner age then 🤣
November 7, 2025 at 3:59 PM
God bless having some twitch ad revenue 🤣
November 7, 2025 at 3:32 PM
It was okay... for me it was a turn off because "oh it's Tom Cruise yet again". Felt a bit like the 90's when Samuel L Jackson appeared in what felt like every other movie... 🤷‍♂️
November 7, 2025 at 2:02 PM