wthit56

joined 2 months ago
[–] [email protected] 2 points 4 days ago* (last edited 4 days ago)

I don't know what "the AI button in the editor" means, so you might want to clarify by editing your post. Up to you.

[–] [email protected] 1 points 4 days ago

Apparently mentioning a username in the post does not send them a notification. You have to do it in a comment like this @[email protected]. (I don't know why it's like this, but that's what I've been told.)

[–] [email protected] 1 points 4 days ago

Just so you know... even if there is no button for this, you can simply go to perchance.org/resources. Or bookmark it yourself and always have it available. And move that bookmark into your bookmarks bar of the browser to always see that as a button. Or start typing it and if it's bookmarked or in your history it'll come up and let you select it automatically.

Maybe they'll add it back or maybe they won't, but in the meantime you can still use it--just so you know.

[–] [email protected] 2 points 4 days ago

(For anyone else who sees this, this has been resolved through the Reddit post.)

[–] [email protected] 3 points 6 days ago (1 children)

The two sites have nothing to do with each other. This is a forum within the Lemmy platform--like a subreddit within the reddit platform. Perchance is a whole separate site. You can sign up to Perchance using the same email and password, but they are separate accounts on separate sites.

[–] [email protected] 1 points 6 days ago
[–] [email protected] 2 points 6 days ago (2 children)

I'll try not to think about what text this thing is spitting out--yikes!

Anyhow... I see no errors at all.

[–] [email protected] 1 points 6 days ago

Cool cool, will do 👍

[–] [email protected] 1 points 6 days ago

It is a bit "sharey" to be fair 😅 The tooltip helps in this case.

[–] [email protected] 1 points 6 days ago (1 children)

I'm not familiar with the AI chat side of things, so I'll leave it to someone else to help with this.

[–] [email protected] 2 points 6 days ago (2 children)

If you reply to the specific comment, it's a lot easier to follow the conversation. I keep having to look at all the comments to try to figure out what you're trying to respond to. There's a swoopy arrow pointing left below each comment; click that and you'll reply directly to that comment.

[–] [email protected] 2 points 1 week ago

Okay cool. To be clear, hover the mouse over the image, click the heart icon in the corner. It has various options and things to do there; one of them is sending to a gallery.)

 

As seen here: https://perchance.org/p5bdhjbfv6#edit

So it still runs somehow? And accesses the grandparent somehow? Likely a bug with how escapes are stripped out--and perhaps recursively processed or something...

 

https://perchance.org/2p16eseroi#edit

Got a tricky situation here. If I do a .replace() on the html of an element (just some formatting stuff for code blocks), the update() is still referencing old text nodes. So it just doesn't care about the new ones that are there from the replace and they stay there. And it adds new ones that are actually updated.

Not sure what to do about that, honestly. Ideally I'd be able to do this replace before the initial update of code blocks is run. Is there some way of doing that?

The issue seems to only happen for code blocks? Maybe?

 

Based on the newly added explanation of the public API calls themselves, I've made a little plugin for using those APIs a little easier, along with the usual demos and explanations.

3
submitted 2 weeks ago* (last edited 2 weeks ago) by [email protected] to c/[email protected]
 

If I have padding on the body, it doesn't do much. Because there's height:100% on the body by default, which is actually incorrect and causes this issue for reasons. As seen here: https://perchance.org/o0demyuvpj#edit Whereas without any default styles the padding would work as expected.

It should be max-height:100% instead, which would not have the problem. Could I request that be changed?

 

A while back I put together everything I could find about perchance. One such document included all properties on objects on perchance pages (that aren't the built-ins from JS). On discord someone said how they wish there was such a reference. So... now there is!

 

perchance.org/api/getGeneratorList?max=123 - limit to a maximum of 123 generators

Are they latest-first?

It doesn't seem like this "max" has to do with how many generators are returned. But the number returned does scale with it. So... last-updated age, perhaps? Not sure what unit of time it would be though. Quite confused.

Could be that it's the max, before it removes private generators? Which would kind of make it not be the "maximum" anything really. Not a very useful parameter as it would be if it would actually give X number of generators--for paging, etc.

(Speaking of which is there a way of specifying "start from X generator number and later" for paging to work well?)

I don't know what the default "max" or whatever is for this api. Seems to fluctuate how many are returned, and it's not always a round number.

 

Does anyone know how to get the image url from the $meta object of another generator? I think there's an /api/ fetch I can do for it, but that stuff isn't documented anywhere, I don't think.

 

Just finished a web coding primer, for the perchance community. I'm hoping it helps people get started with the non-perchance side of perchance quicker and easier. 👍

(It's not intended as full documentation, just a taster of common features, and a glimpse of more complex concepts so people know they can search for them elsewhere.)

 

I feel like it would make sense for perchance to use the image set in the perchance way, if there is one.

 

Right this moment it's showing a card for the rpaqzhfsa2 generator. Clicking on it takes you to that address. Which doesn't exist. Indicating it just shows any "latest-saved" generator even if it actually doesn't exist anymore.

1
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
 

As in, console.clear().

This would clear the console on every partial/full reload. I put this in myself, but there are times I've put it in the wrong place and then spend like an hour trying to figure out why code isn't running, then I move the clear, and there was an error in the logs the whole time. ...Er, I mean, that could happen to someone... else.

An option that's just built-in for those that know the console exists (may not be that many of us creating on perchance I grant you) would be useful. And avoid problems like that. I mean, problems for other people. 👀

 

It no longer covers the image etc. Clicking on the title/description shows the info. These aren't inherently bad things, but the way it's currently done with icons and text and images all overlapping each other it's confusing to even look at, let alone read the field names. Maybe at least blur and lighten what's behind, perhaps drop-shadows beneath the text, etc. to improve readability.

(This could be in the middle of an adjustment anyway, which is fair enough.)

view more: ‹ prev next ›