BluePower

joined 7 months ago
[โ€“] [email protected] 1 points 14 hours ago

Mention the server like this: @perchance @lemmy.world (remove the spaces in-between so it would be an actual ping).

 

I've built another mini generator inside of my experiment page, The View Counter Experiment, inspired off this generator that generates a color based on a random object using the power of AI for the day. I'm glad on how it turned out to be.

It's located in the AI Experiments tab on the right if you want to try that out.

[โ€“] [email protected] 2 points 2 days ago* (last edited 2 days ago)

It's text2image since the framework was originally used to create customizable text-to-image generators I think.

[โ€“] [email protected] 2 points 2 days ago

Thanks! I appreciate it! ๐Ÿ˜ƒ

I'm going to do a few more updates and release a few more things before heading to the "revival" plan and eventually the big Generator Manager update.

 

Finally released another whole plugin after 5 months of releasing the Power Rain Plugin last time. This plugin, as its name says, allows you to have those fancy little counter that moves/animates as you change the numbers up, down, or however you like, easily set-up in your generator. You can even customize the style of the counter and the individual digits in the counter!

Fun fact: I've just learned that you can bind custom functions into any element (and probably nodes too) before making this plugin...

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

I found a bug within this template that it cannot show the asterisks on the password properly (syntax error). The simple fix is just to use iterators to wrap the ast variable so it becomes an array and is compatible with selectMany:

password = [[...ast].selectMany(6,9)]
ast = *
[โ€“] [email protected] 1 points 4 days ago

There isn't much changed from the outlooks, but if you look closely there is only one "Start Learning" button below the example code section, there is no video tutorial section, there is no instruction on how to embed a generator (which I guess is still not a thing at that time) and there is even no "try this example" button that redirects to this example that was also linked in the old page somewhere nearby.

[โ€“] [email protected] 3 points 6 days ago

For me though, Perchance is really just a foundation for me to actually create things I like and engage with other creations since I discovered it back in 2022 when it's just plain simple (there was no hub, very simple welcome page, fewer plugins, simpler comments plugin UI, etc.) and there wasn't any AI image stuff or t2i generators yet. And that's the reason why the Generator Manager (my generator hub page) is here. I started to like it so much that I published my first own creation even published here on this platform. Love to see how it evolves, though, and glad this was explained in this Lemmy community!

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

Yes, that's right. I found a very old version of the Perchance welcome page dated back on August 12, 2018. It was very basic, and Perchance was even still considered in beta at that time. When you look at the source, though, it might be a little modified, but the overall structure of the page is still intact.

[โ€“] [email protected] 1 points 1 week ago

That's a great answer! I've never thought of these solutions in a while, maybe even add a warning for that so other newbies could know easily.

[โ€“] [email protected] 2 points 1 week ago

You can use the shorthand exp ? if_true : if_false notation chained together instead of the if ... else notations. It's specially used for conditional inline value returns.

[s == "Wolf" ? wolf_gene : s == "Cat" ? cat_gene : s == "Fox" ? fox_gene : ""]

You can also do like this as well:

[({"Wolf": wolf_gene, "Cat": cat_gene, "Fox": fox_gene})[s]]
[โ€“] [email protected] 2 points 1 week ago* (last edited 1 week ago) (1 children)

This is likely an error with the text-to-image-plugin interfering with some t2i-framework stuff or similar since it's trying to create the gallery iframe inside the generator, as I was getting the exact same error from the text2image-generator. This error normally doesn't happen, because the plugin is always set to access that variable (which points to a span element) under a timeout (which is right after the element was created). I don't know exactly what causes this, so I'm going to ping @[email protected] so they can address this issue in the meantime.

[โ€“] [email protected] 2 points 1 week ago (1 children)

That error description on the second screenshot is something that I haven't caught before, I've just got one already, but a bit different. I initially thought it was a custom error from the generator, but turned out it was a new type of error from the Perchance engine.

[โ€“] [email protected] 1 points 2 weeks ago
 

Quick bug report, when I was playing with the testing panel, I tried to get to the very bottom of the long word list output by pressing Shift+Down on the output container, which pushes the entire container down that causes the input section to be cropped and really hard to get back in. The only ways to temporarily fix this issue is to press Shift+Tab while selecting the green output text thing, or just select the input box manually and type something on it.

Here's a short video demonstration on how I was able to catch the bug:

Link to video above

 

Haven't posted anything on the community for a while. Just popped this question on mind several days ago whilst considering to upload wallpapers from my generator hub page into the upload page to avoid something like this.

I've been wondering what's the biggest file size you've ever uploaded to the Perchance Upload page in your experience (and is the maximum file size/daily allowance really depends on how long the user has standing on the site)?

[โ€“] [email protected] 2 points 3 weeks ago

No problem, I appreciate that!

 

Another time to say, "long time not posting on this community", but here we go!

There is one question I've wanting to ask about the recent update about the dark mode on the main/official Perchance pages: is there a way to disable them only for the pages (i.e. keep the pages in light mode without having to turn off the dark mode completely)? Most of the time my eyes just don't get comfortable enough reading the text in the dark mode.

I'd also suggest putting a button to toggle the dark mode on/off just like we have on the Hub on these pages.

 

So in https://perchance.org/ai-text-to-image-generator (and other t2i-based image generators) you could choose an art style and then a few dropdowns come below the prompt description textbox allowing you to choose any additional effects (or built-in modifiers, I should say) to be added to the prompt.

Well, I've found a bug on these. When I choose one that has a dropdown menu (for example, "Professional Photo"), the dropdowns did come out, but when I reload the page, the option I chose earlier retained, however the dropdowns did not come out as if the default option was selected.

I also tested if this bug happened on other t2i-based AI image generators too, such as https://perchance.org/furry-ai and https://perchance.org/ai-image-lab, and it also did the same, so this is most likely a bug within the t2i framework.

 

Haven't been posting in this community for a while, but I'm here just to share a tip (I think there hasn't been anybody asking for this here yet) that someone on Discord has suggested on. This only works on computers with developer tools though, and I think you could do this in Firefox too.

Here's how to do it:

  1. In https://perchance.org/upload, open DevTools Console (Ctrl+Shift+I > Console tab) and then select "embed" in the dropdown at the top of the console:

  1. And then type in localStorage.previouslyUploadedFiles. It'll then give you a JSON of the upload list that you can copy the given string provided to a text file and transfer it to another computer you'd want to access the uploads for.

  1. Right click and select "Copy string contents" ("Copy Message" in Firefox). Then, paste it into a text file somewhere that you can transfer through a media like a USB to be transferred into the other computer.

  2. In another computer, repeat the first two steps above, and then write this:

localStorage.previouslyUploadedFiles = [upload list content from the text file]
  1. Replace the [upload list content from the text file] part with the contents from the text file you've just transferred, and then hit Enter. This will magically set the upload list to the one you have in your primary computer.

And that's it! The upload list isn't synced though, but at least could be useful for keeping stuff in. Feel free to add something missing here if you like! ๐Ÿ˜Š

 

So I've just been working for the huge update for the Generator Manager since a couple days and I wanted to share one thing I've been working on in the middle of the making, that is the new error handling method on the generator hub page. Instead of just throwing the error onto the DevTools Console, it also throws the error into the Perchance error box inside the generator hub page, so it is much more convenient to see what's wrong with that feature in case I'm changing on something. And that is a custom Perchance error I just created.

This is accomplised using __perchanceError(), and I understand this is likely a "private" function or something that isn't guaranteed to be "backwards compatible" for long (as I understand that), but I wonder if this function was available for wide use and documented somewhere in the advanced tutorial, it'd be very good for someone to learn about. You can also put HTML into the custom error text to add some neat formatting to it.

This will be limited to the handling of generator cards and the recently updated section for now but in future updates these will be expanded to pretty much every single feature on the generator hub page.

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

Time for another trailer about the big Generator Manager 2.0.20.1 update! I have just started planning and getting to work on building the changes for the big update very soon, from the latest Preview update, and I hope that this goes well enough so that I could finish it in basically a few days from now. But there are three more off-Preview changes I want to mention here: new backgrounds and accent colors (of course), new sidebar items, and finally, the introduction of dark mode for the very first time ever!

And there's just so many more coming out for the huge update...

 

Since the new backups feature was released, which adds an ability to create restore points of generators in a case I accidentally closed a tab while the generator isn't saved yet. But I sometimes work on updating generators through a logged-out session or, when creating a new generator (hitting the new button in the navigation bar and it opens up the minimal template), which is in an unowned generators session (only save and account buttons in the top-right).

And so, I'd need that feature to work on these kinds of environments, so I don't ever have to worry losing all the work there, especially when creating new generators.

view more: next โ€บ