Thread for your website-related questions

For discussion directly related to ConwayLife.com, such as requesting changes to how the forums or home page function.
hotdogPi
Posts: 1893
Joined: August 12th, 2020, 8:22 pm

Re: Thread for your website-related questions

Post by hotdogPi » September 8th, 2024, 7:40 am

I'm on another forum where the options are 5, 10, 25, and 50, and they can be set per user. The forum default is 25. However, it uses SMF, which this forum does not.
User:HotdogPi/My discoveries

Periods discovered:

All evens up to 128 except 52,58,78,82,92,94,98,104,118,122

5-15,㉕-㉛,㉟㊺,51,63,65,73,75
1㊳㊵㊹㊼㊽,54,56,72,74,80,90,92
217,240,300,486,576

Guns: 20,21,32,54,55,57,114,117,124,126
SKOPs: 32,74,76,102,196

User avatar
dvgrn
Moderator
Posts: 11358
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Thread for your website-related questions

Post by dvgrn » September 8th, 2024, 9:07 am

hotdogPi wrote:
September 8th, 2024, 7:40 am
I'm on another forum where the options are 5, 10, 25, and 50, and they can be set per user. The forum default is 25. However, it uses SMF, which this forum does not.
Yup -- even if there's some secret URL param like "postsperpage=X", I kind of doubt there's going to be a "postsperpage=infinite".

Here's a more workable way to do this kind of thing. I looked at my previous link to Python scraper code, and it would be confusing to anyone who isn't familiar with recent goings-on in Python -- a lot of that code was written back when Golly supported Python 2 instead of Python 3.

Here's a working starter script:

Code: Select all

# get-all-posts-in-thread.py
# Version 1: initial working Python3 version

import golly as g
from urllib.request import urlopen

threadnum = g.getstring("Enter thread number: ","2817")
url = "https://conwaylife.com/forums/viewtopic.php?t=" + threadnum + "&start="

startval = 0
count = 0
flag = 0
s = ""

while flag != -1:
  page = url + str(startval)
  g.show("Retrieving data for startval = " + str(startval))
  startval+=25
  try:
    resp = urlopen(page)
    html = resp.read().decode()
    #############################################################
    # add some parsing code here to append only the relevant part
    #   of each chunk of html, skipping headers and footers
   
    s += html
    
    #############################################################
  except:
    g.note("Got an error on startval=" + str(startval))
    g.exit()
 
  # continue until there's no right-arrow icon at bottom of page
  flag = html.find("icon fa-" + "chevron-right") # break search string in code, so that threads containing this script can still be exported!

g.show("Done. Result copied to clipboard. Retrieved " + str(startval//25) + " pages.")
g.setclipstr(s)
This just needs a very few additional lines of parsing code in the middle, depending on what use this HTML is going to be put to. At the moment the output to the clipboard is a concatenated copy of each individual page, so there are lots of duplicate copies of the header and footer sections.

I don't usually write complete scripts on request, since it seems better in the long run to encourage people to learn how to do this kind of thing themselves -- it isn't rocket surgery. Anyone else can feel free to take over from here.

Citation needed
Posts: 400
Joined: April 1st, 2021, 1:03 am

Re: Thread for your website-related questions

Post by Citation needed » November 7th, 2024, 9:35 pm

Are the recent posts deleted or are they just hidden?

User avatar
dvgrn
Moderator
Posts: 11358
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Thread for your website-related questions

Post by dvgrn » November 7th, 2024, 9:43 pm

Citation needed wrote:
November 7th, 2024, 9:35 pm
Are the recent posts deleted or are they just hidden?
The logs say the posts in question have all been deleted, after some further investigation by Sokwe.

Citation needed
Posts: 400
Joined: April 1st, 2021, 1:03 am

Re: Thread for your website-related questions

Post by Citation needed » November 8th, 2024, 2:52 am

It seems that another account was created and then deleted quickly.

Haycat2009
Posts: 989
Joined: April 26th, 2023, 5:47 am
Location: Bahar Junction, Zumaland

Re: Thread for your website-related questions

Post by Haycat2009 » November 11th, 2024, 10:51 pm

Help: I think that I have been IP blocked by mistake. Can someone help me fix it please? My account is not hacked, there have been no instances of poor behaviour recently on my side and my username is acceptable as far as I know.
~ Haycat Durnak, a hard-working editor
Also, support Conway and Friends story mode!
I mean no harm to those who have tested me. But do not take this for granted.

User avatar
dvgrn
Moderator
Posts: 11358
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Thread for your website-related questions

Post by dvgrn » November 13th, 2024, 10:38 am

Haycat2009 wrote:
November 11th, 2024, 10:51 pm
Help: I think that I have been IP blocked by mistake. Can someone help me fix it please? My account is not hacked, there have been no instances of poor behaviour recently on my side and my username is acceptable as far as I know.
Some more specifics would be good here. Is this an apparent IP block on the forums, or on the LifeWiki? Is the problem still continuing?

User avatar
get_Snacked
Posts: 431
Joined: August 20th, 2022, 10:51 pm
Location: mushroom kingdom
Contact:

Re: Thread for your website-related questions

Post by get_Snacked » November 13th, 2024, 7:35 pm

why does the PFP size limit suck? all one has to do as a website manager is just resize the picture to not be too big if it has too many pixels. not that hard.

Sokwe
Moderator
Posts: 3031
Joined: July 9th, 2009, 2:44 pm

Re: Thread for your website-related questions

Post by Sokwe » November 13th, 2024, 10:17 pm

get_Snacked wrote:
November 13th, 2024, 7:35 pm
all one has to do as a website manager is just resize the picture to not be too big if it has too many pixels.
Resizing pictures inherently alters them, something that some users might find undesirable. I personally think it's better for the user to adjust their own avatar to fit the constraints of the forums, rather than have the forums modify the avatar. I've never tried to use an avatar myself, so I'm not exactly sure how it works.
-Matthias Merzenich

Haycat2009
Posts: 989
Joined: April 26th, 2023, 5:47 am
Location: Bahar Junction, Zumaland

Re: Thread for your website-related questions

Post by Haycat2009 » November 13th, 2024, 10:56 pm

dvgrn wrote:
November 13th, 2024, 10:38 am
Haycat2009 wrote:
November 11th, 2024, 10:51 pm
Help: I think that I have been IP blocked by mistake. Can someone help me fix it please? My account is not hacked, there have been no instances of poor behaviour recently on my side and my username is acceptable as far as I know.
Some more specifics would be good here. Is this an apparent IP block on the forums, or on the LifeWiki? Is the problem still continuing?
It was on the Lifewiki, but the problem no longer continues - it was a few days ago though.
~ Haycat Durnak, a hard-working editor
Also, support Conway and Friends story mode!
I mean no harm to those who have tested me. But do not take this for granted.

WhiteHawk
Posts: 419
Joined: July 10th, 2024, 5:34 pm

Re: Thread for your website-related questions

Post by WhiteHawk » December 5th, 2024, 2:16 pm

While updating the Wiki to reflect the discovery of the period-35 glider gun, I found that I couldn't figure out how to properly format the Guns with period 35 page to properly group with the other gun periods on the page below.

Category:Guns with specific period

How do I properly format the page to correctly group the categories together?
Mostly work in OCA, where discoveries are a dime a dozen. Will eventually get around to running search programs. Discoveries in Life limited to True-period 56 gun on a technicality.

User avatar
confocaloid
Posts: 5572
Joined: February 8th, 2022, 3:15 pm
Location: learn to protect yourself against stray gliders and sparks and self-destruct mechanisms

Re: Thread for your website-related questions

Post by confocaloid » December 5th, 2024, 2:26 pm

WhiteHawk wrote:
December 5th, 2024, 2:16 pm
While updating the Wiki to reflect the discovery of the period-35 glider gun, I found that I couldn't figure out how to properly format the Guns with period 35 page to properly group with the other gun periods on the page below.

Category:Guns with specific period

How do I properly format the page to correctly group the categories together?
You need to create a page in the MediaWiki namespace "Category:" (i.e. Category:Guns with period 35).

What you did was to create a page in the main (article) namespace instead: Guns with period 35

edit: now fixed by hotdogPi: https://conwaylife.com/w/index.php?titl ... ogid=60451
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

WhiteHawk
Posts: 419
Joined: July 10th, 2024, 5:34 pm

Re: Thread for your website-related questions

Post by WhiteHawk » December 5th, 2024, 5:07 pm

Thanks Confocaloid.

Somewhat related, but why is the lifeviewer window for the original p47 glider gun so large? It's really distracting and should probably be changed.

Period-47 glider gun
Mostly work in OCA, where discoveries are a dime a dozen. Will eventually get around to running search programs. Discoveries in Life limited to True-period 56 gun on a technicality.

User avatar
confocaloid
Posts: 5572
Joined: February 8th, 2022, 3:15 pm
Location: learn to protect yourself against stray gliders and sparks and self-destruct mechanisms

Re: Thread for your website-related questions

Post by confocaloid » December 5th, 2024, 5:14 pm

WhiteHawk wrote:
December 5th, 2024, 5:07 pm
Thanks Confocaloid.

Somewhat related, but why is the lifeviewer window for the original p47 glider gun so large? It's really distracting and should probably be changed.

Period-47 glider gun
The infobox viewer should be hidden in that case entirely, and the pattern should instead be shown in an embedded viewer within the body.

Unrelatedly, many of your recent additions of "In other rules" sections in the main namespace go against LW:NB, both in the content not being notable enough in the context of those topics, and in your additions violating the rule "Do not document your own stuff" mentioned in LW:NB.
Please avoid further additions of this kind.
The wiki is primarily about Conway's Life, and especially the main namespace is about Conway's Life. Many of the "In other rules" sections look and feel like clutter.
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

Citation needed
Posts: 400
Joined: April 1st, 2021, 1:03 am

Re: Thread for your website-related questions

Post by Citation needed » December 21st, 2024, 9:05 pm

Is there a thread for "OCA investigator" rules?

User avatar
b-engine
Posts: 2555
Joined: October 26th, 2023, 4:11 am
Location: Somewhere on where Earth At

Re: Thread for your website-related questions

Post by b-engine » December 22nd, 2024, 4:48 am

Citation needed wrote:
December 21st, 2024, 9:05 pm
Is there a thread for "OCA investigator" rules?
I generally post OCA Investigator rules in the same thread as LifeInvestigator (Extended Life Extensions).
500: Internal server error. Back to homepage.

User avatar
confocaloid
Posts: 5572
Joined: February 8th, 2022, 3:15 pm
Location: learn to protect yourself against stray gliders and sparks and self-destruct mechanisms

Re: Thread for your website-related questions

Post by confocaloid » December 22nd, 2024, 5:20 am

Citation needed wrote:
December 21st, 2024, 9:05 pm
Is there a thread for "OCA investigator" rules?
I think it makes sense to have such a thread, and I started it because I could not find an existing match.
viewtopic.php?f=11&t=6799 "[R]Investigator (reactions, patterns, discussion)"

Quoting from the first post of the new thread:
confocaloid wrote:
December 21st, 2024, 11:18 pm
This is a forum thread for discussing stuff found in "Investigator" versions of two-state cellular automata, including both StateInvestigator and <OCA>Investigator.
  • viewtopic.php?f=11&t=4009 "Extended Life Extensions" is related-but-different, both because that thread is focused on StateInvestigator, and because that thread also contains some discussion of other ways to "extend" Conway's Life.
  • viewtopic.php?f=7&t=6142 "[Rule]Investigator support in Golly" is about the built-in support in Golly 4.3 for the family.
  • viewtopic.php?f=9&t=6000 "[R]Investigator rule generator" gives scripts to generate .rule files, e.g. for older versions of Golly without built-in support.
    [...]
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

User avatar
PiSpaceships
Posts: 57
Joined: January 17th, 2025, 12:20 pm

Re: Thread for your website-related questions

Post by PiSpaceships » January 13th, 2025, 1:20 pm

How to make my rule recognized by LifeViewer?
Pi Spaceship and wanderer:

Code: Select all

x=14, y=4, rule=B2e3ei/S2-a34a
7bo$3o3b3o$obo4b2o$obo5bo!

User avatar
confocaloid
Posts: 5572
Joined: February 8th, 2022, 3:15 pm
Location: learn to protect yourself against stray gliders and sparks and self-destruct mechanisms

Re: Thread for your website-related questions

Post by confocaloid » January 13th, 2025, 1:25 pm

TBPO wrote:
January 13th, 2025, 1:20 pm
How to make my rule recognized by LifeViewer?
The simplest way (especially for "one-time" or "demo" patterns) is to append the content of the .rule file after the RLE, like this:

Code: Select all

x = 8, y = 6, rule = Demo
.2A$2A$.A$6.2B$5.2B$6.B!

@RULE Demo

@TABLE
n_states:3
neighborhood:Moore
symmetries:permute
# ...
# ...
If the rules are settled and will not change anymore, then it's possible to upload the "final version" of the .rule file (ruletable or ruletree) into the "Rule:" namespace on the wiki, then appending it as above will be unnecessary. For example, Rule:Symbiosis exists and contains the content of the corresponding .rule file, so one can post a pattern like this:

Code: Select all

x = 8, y = 6, rule = Symbiosis
.2A$2A$.A$6.2B$5.2B$6.B!
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

User avatar
PiSpaceships
Posts: 57
Joined: January 17th, 2025, 12:20 pm

Re: Thread for your website-related questions

Post by PiSpaceships » January 17th, 2025, 7:55 am

How can I change the username?
Pi Spaceship and wanderer:

Code: Select all

x=14, y=4, rule=B2e3ei/S2-a34a
7bo$3o3b3o$obo4b2o$obo5bo!

User avatar
dvgrn
Moderator
Posts: 11358
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Thread for your website-related questions

Post by dvgrn » January 17th, 2025, 9:02 am

TBPO wrote:
January 17th, 2025, 7:55 am
How can I change the username?
A username change isn't something that you can do yourself.

I used to think that it required permissions that only the site admin had, but Sokwe (a moderator) seems to have permissions to do it now. I haven't looked into learning how to actually do a username change yet -- partly because the forums are only "reluctantly moderated", and partly because it can be fairly confusing and messy when long-established users change their names. It's something that ideally should happen only rarely and when there's a really good reason.

Given this special case where you only have sixteen posts, it would be perfectly workable for you to simply create a new user account with the name that you want and start using it. If you send me a PM from the new account, something that I _do_ know how to do is to change the ownership of the sixteen existing posts from "TBPO" to the new account (if that's what you want to happen).

User avatar
confocaloid
Posts: 5572
Joined: February 8th, 2022, 3:15 pm
Location: learn to protect yourself against stray gliders and sparks and self-destruct mechanisms

Re: Thread for your website-related questions

Post by confocaloid » January 17th, 2025, 9:11 am

dvgrn wrote:
January 17th, 2025, 9:02 am
[...] If you send me a PM from the new account, something that I _do_ know how to do is to change the ownership of the sixteen existing posts from "TBPO" to the new account (if that's what you want to happen).
I guess it makes sense to state the obvious: just sending a PM from the new account doesn't prove that the owner of the account is the same person. That would open the vulnerability where someone claims that they are a new account of some other currently-inactive user, and takes ownership of posts by someone else. There needs to be additional confirmation from the old account.
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

User avatar
dvgrn
Moderator
Posts: 11358
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Thread for your website-related questions

Post by dvgrn » January 17th, 2025, 9:18 am

confocaloid wrote:
January 17th, 2025, 9:11 am
I guess it makes sense to state the obvious: just sending a PM from the new account doesn't prove that the owner of the account is the same person. That would open the vulnerability where someone claims that they are a new account of some other currently-inactive user, and takes ownership of posts by someone else. There needs to be additional confirmation from the old account.
Heh, yes, I did mentally review that. In practice it's probably safe to assume that I will exercise basic common sense and check that things like IP addresses match. But again, this is a very special case -- I'm not volunteering to make a habit of doing this, or to do post reparenting for any account with more than about 2^4 posts.

In the unlikely event that someone did manage to fool me into an incorrect ownership change, a sixteen-post move can be undone just as quickly and easily as it was done.

User avatar
b-engine
Posts: 2555
Joined: October 26th, 2023, 4:11 am
Location: Somewhere on where Earth At

Re: Thread for your website-related questions

Post by b-engine » January 20th, 2025, 10:41 pm

dvgrn wrote:
January 17th, 2025, 9:02 am
I used to think that it required permissions that only the site admin had, but Sokwe (a moderator) seems to have permissions to do it now. I haven't looked into learning how to actually do a username change yet -- partly because the forums are only "reluctantly moderated", and partly because it can be fairly confusing and messy when long-established users change their names. It's something that ideally should happen only rarely and when there's a really good reason.
Therefore, could a user with almost 2400 posts change his username? Maybe not. If could, I request change my username to T6970.
500: Internal server error. Back to homepage.

User avatar
dvgrn
Moderator
Posts: 11358
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Thread for your website-related questions

Post by dvgrn » January 20th, 2025, 10:49 pm

b-engine wrote:
January 20th, 2025, 10:41 pm
Therefore, could a user with almost 2400 posts change his username? Maybe not. If could, I request change my username to T6970.
Heh, the method I used for PiSpaceships won't work -- I changed each of the sixteen posts to a new owner, one at a time -- didn't have to rename the account. I'm not sure exactly how that's done.

I could no doubt find out if there was a really good reason -- or maybe somebody who knows the trick could make the change. But it seems like no reason of any kind has been mentioned yet.

Post Reply