What algorithm did Windows XP use to choose your initial user picture? (devblogs.microsoft.com)

50 points by soheilpro 2 hours ago

23 comments:

by mawadev 13 minutes ago

That is a case I only become aware of when I read blogs like this. Technically I could solve it the same way, but these days you have so many tasks on your desk, you don't think about the problem and implications at all and that awareness/discipline is drowned in the noise/unlearned over time.

If someone only gave me 2 minutes for this, because they think it is very simple (as always), I'd have done a count of files of a specific pattern in the directory and then picked a random index, very naive and quick and dirty programming, no sampling at all, just to avoid discussions why it takes so long with people who don't want to hear it.

This reminds me of when I did a lot of C#, Java, JS, Python in my life, filling maps of strings and objects until I started with zig and noticed how expensive and complicated strings and data structure allocations can be. It kind of blew my mind how much memory and computation we waste when we try to get stuff done as fast as possible because of budget/time constraints.

by cgio 40 minutes ago

The times when people spent an extra brain cycle to avoid billions of second passes.

by jasonvorhe an hour ago

A couple of screenshots would've been useful for the post-millennial generations that never got to see the "beauty" (cough) of XP.

by moritzwarhier an hour ago

Here's a blog post from 2003 with beautiful pictures.

https://jakeludington.com/2003/12/17/create_your_own_windows...

by Maken 38 minutes ago

XP is Microsoft's prettiest OS by far.

by mrweasel 27 minutes ago

That's a matter of taste, but for many it was the Windows they used first and/or spend the most time on and there's a lot of love for that reason alone. I never used XP all that much, but I always changed the theme to the Windows 2000 look. I really didn't like the default, it looked unprofessional and clunky in my eyes. Upon release XP was also pretty universally mocked as a Fisher Price-like UI.

To me Windows 95/NT 4 is still the gold standard in Windows UI. It's certainly not the prettiest, that would be Windows 2000, but it was easy to use, easy to navigate and efficient with space.

by Maken 9 minutes ago

The first Windows I used was 98, and I sure didn't miss the blocky grey menus nor the pixelated icons. Maybe it was Fisher Price-ish but the new rounded buttons and borders were way more appealing to me.

by TazeTSchnitzel 19 minutes ago

The "Windows Classic" look on XP is exceptionally ugly, because those 3D-rendered icons just do not belong on a Windows 2000-style grey background for menus or buttons. (I have recently had to test both these OSes in VMs…)

by mrweasel 13 minutes ago

That is true, it looked completely off, as if no one really bothered to tests it and make it look nice. It got rid of the horrible window decoration of the default theme, but the start menu looked terrible.

by sunaookami 11 minutes ago

You mean 7 ;)

by Maken 7 minutes ago

Windows 7 fixed Vista a bit, but the Aero windows were never pretty and the non-Aero decorations were painfully obvious a placeholder.

by CalRobert an hour ago

I thought it looked great :-/

by PalmPilotProMax 27 minutes ago

I don't see how that's relevant? Article is about the RNG implementation, it doesn't matter what the profile pictures are.

by bombcar 24 minutes ago

Does it also check existing users so you don't match one?

by bhaney an hour ago

100 seems like a very unnecessarily low limit, even for the time

by daveoc64 36 minutes ago

It's well above the number of images that were in the applicable folder by default, so seems pretty appropriate to me.

by moritzwarhier an hour ago

Some say the Admin account defaulted to a chessboard.

I think it's true, but not sure if I'm just falling victim to false memories... help?

by TazeTSchnitzel 17 minutes ago

The account named "Administrator" that Windows created for you always had the chess piece.

by bhaney 22 minutes ago

There's no way my memory of this is reliable anymore, but I also remember my administrator account being chess pieces (and my user account being an orange fish).

by bombcar 25 minutes ago

It might be that the randomization code was bypassed in some cases - like creating an account in safe boot mode or similar.

by xx_ns 19 minutes ago

It makes sense. The chess piece is the first profile picture in the list.

by abhinavk 29 minutes ago

I remember it like that too. Or is it Mandela effect?

by NitpickLawyer 23 minutes ago

The Magnus effect? :)

Data from: Hacker News, provided by Hacker News (unofficial) API