Friday, July 12, 2024

New feature! Linking AQ and LbNA accounts!

Before you get too excited.... this is just the first step in a longer process. I know a bunch of you are excited about the idea of being able to record finds on a box that is listed on both AQ and LbNA at the same time, and that's not what's happening here.

So now that I've thrown a bucket of water on that idea, what have I done? =)

This hearkens back to the fundraiser for LbNA when I wrote: 

So I have something of a goal to raise $2,000, and once that goal is hit, I would start working on a way to link the two websites a bit more closely. Allow recording a find on one website to record the same find automatically on the other website, for instance, so the last found date on both websites is current and up-to-date. Whether the goal is hit this year, or if it takes five years of fundraising to hit it, once I hit it, I can justify the time and effort required to implement such a feature.

No, I did not hit that $2,000 goal--but it did raise about $1,500 which is quite a bit better than I really expected. So... a partial victory! And while I wrote that I would "start" working on such a feature when the goal was hit, I figured the goal was close enough that at least I could start working on it--which is what I did. =)

I knew that recording finds on both websites at the same time would be a multi-step process to implement. First, AQ and LbNA needed a way to "talk" to each other. A way for AQ to whisper into LbNA's ears about what needs to be done, and vice-versa. They can't really cooperate with each other if there's no way for them to talk to each other, after all!

So I created a messaging system of sorts that let's AQ and LbNA talk to each other and share requested information between them.

But.... as much as I could test it on my development machine, the real test would be seeing it work on the live website.

But to do that, it needed to whisper something, and that was step 2: Creating a way to actually let people point their AQ account to their LbNA account (and vice-versa), so AQ knows you have a corresponding LbNA account (and vice-versa).

So I set it up so the two accounts could be linked, which can be done from the Account Info page on AQ or the Member Services page on LbNA. You only have to create the link from one site--it'll automatically be set up to work correctly in both directions. So it doesn't matter whether you link your AQ account to your LbNA account or your LbNA account to your AQ account. It's all the same in the end.

I actually find it strangely satisfying to log into both websites, creating the link on one of the websites, then refresh the page on the other site and see it automatically change! =) Then you can also break the link, and refresh the other page to watch it break there too. It's a strangely fun thing to watch. *shrug* =)

But I decided to take it one step further.... because it seemed weird to have a feature that would link the two accounts but then not have them actually DO anything! Completely and utterly pointless, right?

So that was the third step: I updated both websites so you if update your trailname, password, real name, or email address, you can select an option that would allow you to update the information on the other site as well. You don't need to use the same values on both websites, but most people do and this makes it a little bit easier.

Strictly speaking, this may not always be successful. For instance, if you try to change your trailname on AQ to something that is available on AQ but is already in use by someone on LbNA, it'll let you update the name on AQ, but you'll get an error message warning you that the trailname is already in use on LbNA and therefore it cannot be changed there. At least not changed to your preferred trailname. Whether you decide to tweak it to get something that's available on both websites is up to you.

Anyhow, linking accounts isn't especially useful right now--just for a few house-keeping tasks regarding your account details--but it's there and hopefully the linked accounts will become increasingly more useful over time. =)

This is a good place for me to stop for now. I want to do some more behind-the-scenes work on LbNA to make maintaining the code that handles finds a bit easier which is likely to take quite a bit of work before I even get into the actual feature people really want of recording finds on both websites at the same time. But it's a good first, second and third step that I've already implemented on the way to the longer-term goal! =)

Enjoy!

Which way is north in Corrales, NM?
Photo by Wronghat


Friday, May 03, 2024

Listing Your Stamps!!!

I have to admit, I don't understand the pathological need some people have to list every stamp they carve on Atlas Quest. The large warnings saying to list boxes and not stamps seems to be taken as a mild suggestion. Even rampaging through boxes deleting stamps listed as boxes doesn't seem to discourage people.

So, I finally caved in and now allow people to list every single individual stamp within a box. But--keep in mind, I will continue to delete stamps that are listed as boxes. There are stamps, and there are boxes, but they are not interchangeable. 

Each box is required to have at least one stamp in it. (Otherwise, it's not really a letterbox, it is? And therefore shouldn't be listed at all.) But each box can have one or more stamps listed within it.

The nice thing about this setup is that is it now possible to have multiple carvers for a single box--each stamp can have one carver assigned to it, and they don't need to be the same carver for each stamp.

All boxes already listed on AQ have, by default, had one, anonymous stamp listed as being part of the box with whoever was listed as the carver previously. If you want to edit your boxes that have more than one stamp, you can do that and add the extra stamps--this is entirely optional, though. The number of stamps you list in a box doesn't affect any counts except the number of stamps in that box.

You can assign a name for each stamp in a box, but this completely optional as well. By default, none of the stamps have any name at all. If a box has more than one stamp and they aren't given names, they'll simply be listed as "stamp #1", "stamp #2", etc. If a box has one stamp without a name, it'll just list the carver and not display a "name" for the stamp at all.

Hope this finally helps put to rest the listing of "fake boxes" that are really just stamps--but be warned--admins will continue to delete "boxes" that they come across if you mislabel your stamps as a full-fledged box.

For those of you who don't really care about listing stamps--you don't have to. Even if you hide a box with lots of stamps in them, don't feel compelled that every single stamp needs to be listed. If you just leave the default stamp settings in place (one stamp, with no name, that you are the carver of), you won't really see any change in your listings and that's fine. This is purely an optional step for those with a pathological need to list every one of the stamps that they have in a box. =)

Thanks, and I hope y'all enjoy the update!


 


Tuesday, April 02, 2024

AQ Marketplace Has Closed!

Due to overwhelming demand, we've had to temporarily close our AQ Marketplace

Just kidding, of course! However, the announcement from yesterday about all the new products is totally, 100% fake. None of those items are for sale, and most of them don't even exist. It's all part of AQ's annual April Fools Day prank. Hope you enjoyed it!

The idea of stuffing the AQ Marketplace started while I was flying through Philadelphia. There was a display of collections, and one collection in particular grabbed my eye. Actually, not so much one collection, but rather a specific item in one collection: a portrait of JFK from a magazine with the words "suitable for framing" written across the top. I thought that was hilarious, and how funny would it be if I sold portraits of myself that were "suitable for framing." =)

Suitable for framing? Oh, really?
That sounds like the start of a great idea....

Which led to the idea of stuffing the AQ Marketplace with all sorts of ridiculous and stupid items. I just needed to sit down and think of some ideas. And presto, a bunch of new stuff for the AQ Marketplace.

The one thing I did have to create was a bunch of "Wassa faces" for the "Wassa flocking." I knew there were already a bunch of Wassa faces out there in the wild--I've seen them (and even have one of my own!)--but I needed a whole flock of them to create, well, a flock. So I scrolled through Facebook photos of Wassa looking for one that had a high-enough resolution that I could print it out on a full-size sheet of paper and create a flock. 

And.... I'm willing to share it. =)

Hope you enjoyed it!

If that doesn't give you nightmares, nothing will!


Monday, April 01, 2024

AQ Marketplace Extravaganza!

For years people have asked me to add more bling to the AQ Marketplace, and we've finally delivered! From a portrait of Green Tortuga and an inspirational wall poster of Wassa, to muggle-protection devices for your letterboxes and more, the AQ Marketplace has everything a hard-core letterboxer could ever need!

AQ ceremonial candles can help you find letterboxes and protect against mosquitoes at the same time!

 
This realistic poo has a hidden compartment underneath that no muggle would ever find!

We'll even be selling a few health products, such as these salt-free sugar packets that are extremely low in sodium!
 

And much, much more! Check out all the new products and put in your order today!


Thursday, March 21, 2024

Last Call for Eclipse Glasses!

It's that time of year again.... a total solar eclipse will be passing through North America in a couple of weeks and if you want to watch the build-up (and post-totality), you'll need a safe way to view the eclipse. The entire contiguous United States will at least see a partial eclipse, which also requires a safe way to view the eclipse. So if you haven't acquired your eclipse glasses, now's the time to do it!

To make sure everyone gets their orders in time for the eclipse, I'll be taking the eclipse glasses out of the AQ Marketplace in about a week so this is your last chance!

Just a reminder, if you are in the path of totality, it is perfectly safe and acceptable to watch the eclipse without eclipse glasses, but only during totality. In fact, you'll be missing out on the visual splendor of a lifetime if you do not. But before and after totality, you cannot safely look at the sun without eye protection. 



Monday, February 19, 2024

The Sun and Moon Tango!

It's that time of year again.... eclipse time! On April 8th, a solar eclipse will cross through North America, cutting through Mexico and entering the United States in Texas, sweeping through the country out toward Maine and even a tiny little bit in Canada.

And it's not just any solar eclipse, but this is the much more rare and far more spectacular total solar eclipse! It is, perhaps, the most most amazing and heavenly natural phenomenon you'll ever see! If you don't believe me, ask someone who witnessed the last one in the United States back in 2017. (I have a hunch that a large number of people who saw the 2017 eclipse might make a special point of checking out this year's eclipse!)

During totality, on that narrow line where the moon completely covers the surface of the moon, it is safe to view the eclipse with absolutely no eye protected at all. Depending on your exact location, the amount of time you can watch without eye protection is about 4 1/2 minutes or less. The closer to Mexico you are, the longer totality will last. But the couple of hours leading up to totality and the couple of hours after totality, when it is only a partial eclipse, you'll need eye protection, and these eclipse glasses can get the job done.

And we've got officially-sanctioned eclipse glasses for sale in the AQ Marketplace!

It's well worth making a special trip to see this eclipse if you've never stood in the path of totality before. It's really one of those experiences that everyone should experience at least once your life, and the next total solar eclipse will not happen in the United States for another TWENTY YEARS! Even then it barely grazes the country near North Dakota. (Although one year after that, on August 12, 2045, we'll get a good total solar eclipse that will span from coast-to-coast. Disney, I'm sure, is already planning major festivities in Orlando for the event!) But regardless, it'll be a long wait to see another total solar eclipse in our proverbial backyards, so now's the time to experience it!

If you saw the annular eclipse last October and thought, "It was interesting, but not that cool," totality is a totally different experience! It's night and day different! An annular eclipse is still quite interesting and fun to watch (I did!), but don't think for a second that you got 99% of the experience of totality. You got maybe 5% of the experience! Maybe less. Heck, there were people around us during the annular eclipse who didn't even seem to realize that an eclipse was going on but I can assure you--nobody overlooks a total solar eclipse! 

Although you can only see totality from a very narrow strip of area cutting through America, a partial eclipse will still be visible from the entire contiguous United States, so the eclipse glasses can still be useful for pretty much everyone. It won't be the eye-popping amazing experience of totality, but if you'd like to watch some of the eclipse anyhow.... you'll need eye protection, and we've got it. =)

Assuming I don't sell out of the eclipse glasses before then, I'll stop selling them on AQ about a week before the eclipse so (hopefully) all orders have a chance to make it to their destinations before the main event. So they'll only be available in the AQ marketplace for just over a month.... but I'd urge you to order as early as possible. If your order doesn't arrive as quickly as expected, I can still send out a replacement order in time for the eclipse. If you order only a week before the event and the order gets lost in the mail.... it might be too late to get a new order in time!

Be ready for that moment when the sun and moon dance the tango! Order your eclipse glasses today!

Okay, I'll have to admit, I had AI generate an image of the sun and moon dancing the salsa to get this image.... but the first image was the AI's take on dancing the tango! AI is fun.... =)


Thursday, February 15, 2024

GPS End Points

Wishing you had a GPS right about now, eh?
Photo submitted by Dawnkey.

If you log into Atlas Quest and check out one of your boxes, you might notice this new attribute that AQ will record called the "GPS End Point". There is one for every traditional box on AQ. Or rather, it's available for every traditional box on AQ.

Don't worry, I'm not turning into this hobby into a geocache hybrid! You still have to follow whatever clues the owner of the box provides.

But it did occur to me that it might be handy to record the precise GPS coordinates of where your letterboxes are located. 

  • If the landmarks in your clues become impossible to follow (for instance, a forest fire swept through the area or a trail was re-routed), there would still be a way to find and check up on the box.
  • If someone looks for your box but doesn't find it, they could send you the precise GPS coordinates of where they looked and you can check if they were actually looking in the right place.
  • If the worst should happen and you pass away, it would allow anyone who adopted your box to check up on it even if the clues were difficult or impossible to follow.
  • You might forget precisely where you planted the box and have trouble finding it later because the landmarks have changed.

Basically, it's kind of a "backup" for your clues, and might make it easier to figure out if someone was actually looking in the correct place for your box if there was otherwise some uncertainty in the matter.

The only people who can see these coordinates are the owner and planters of the letterbox--not the people who are looking for it. Even the carvers of the stamps for the box can't see the coordinates--just those with "admin powers" over the box.

And adding coordinates is completely optional in any case. Obviously, there's no way AQ can go back and retroactively add coordinates to the hundreds of thousands of boxes that have been listed over the years and most of you likely have never kept track of this information either. (I know I haven't, although there are a couple of boxes I have planted where that information would definitely be useful right now!)

So if you notice information on your boxes about the "GPS end point", it'll be empty by default. You can edit the box and add it if you want--and know the coordinates of the actual location of the letterbox.

The coordinate is attached to individual boxes in a series since, obviously, different boxes will have different coordinates--even those in the same series. (At least that's how boxes should be listed, although I do know that people list boxes incorrectly all the time for a variety of reasons. I'll fix those when I come across them, but if you have two stamps with the same GPS coordinates, they should be counted as one box in a series!)

Anyhow, I hope some of you find this helpful! =)

Happy trails!

Crisis averted! Dawnkey and 4EyesMcGee find their treasure!
Photo submitted by Dawnkey


Sunday, February 11, 2024

Bored With AI

So I just updated the I... Am... Soooo... Bored... widget yet again. That wasn't the plan. I was done. It was finished. Until... I blogged about it. One of the endearing quirks about the widget is the random phrase about "maybe your boredom vanish like something on a something day".

That little "feature" was a result of AI. I was chatting with the Bing chatbot, asking for suggestions for things to do if I'm bored. I was looking for ideas to add to the widget, and it fired off a host of suggestions from "looking for an invisible cow" to "going for a walk." After the list of suggestions, though, it signed off with: "May your boredom vanish like a ninja in a misty forest!" or something like that, which I thought was wonderful and hilarious. So I grabbed that and added it to the end of the widget as a "sign off." I also decided to spice it up even more by adding "on a moonless night" to the line.

May your boredom vanish like a ninja in a misty forest on a moonless night!

May your boredom vanish like a ninja in a misty forest on a moonless night!
 

How can you not love a quote like that? I still needed to work on the main functionality, but I wanted to come back to that and maybe add a few other lines to make it interesting. Pick a random sign-off from several choices.

I invited Wassa into my idea for this widget early, and gave him a sneak peak into its development, and he said that he loved the line about the ninja, but thought there should be more of them, picked at random. Great minds, right? =) He said he'd think about it and give me a few more options.

Oh, Wassa.... You don't need to hurt yourself thinking about it.... This, I knew, was the kind of stuff where AI shined. So I went back to the chatbot and asked it to create one hundred alternative lines that were fun and silly in the style of "May your boredom vanish like a ninja in a misty forest on a moonless night" and got back a lot of surprisingly good answers.

I shared the resulting list with Wassa, and he seemed a little disappointed that AI might put him out of a job. "No," I consoled him, "it will just make you faster and more effective...."

Not all of the results were great. Some were kind of lame. Others made no sense at all. Some had grammatical errors. Some I could tweak to make them even better. But it gave a solid starting point for me to work with.

After going through them all, throwing out the bad ones and fixing others, I was left with a list of 70 alternatives. Then I worked them into the widget. It was great. Wassa loved it too.

I also used AI to create the image of the sloth that goes with the widget. I wanted to use a sloth because they always look so slow and bored, and it seemed like just the kind of animal that would love a boring widget. There was nothing particularly interesting about the image, though--just a sloth in a tree. I didn't even tell AI that I wanted a three-toed sloth (but that was what I was secretly hoping for.)

Anyhow, when it came time to announce the launch of the widget, I typed up the blog post (the previous post in this blog), and I wanted to sign off with the original silly sign-off from the widget: May your boredom vanish like a ninja in a misty forest on a moonless night!

And that was going to be it.... but then I felt like I needed one last image to use at the end of the post. I was going to find some random letterboxing photo to use, but then I thought an image of an actual ninja entering a misty forest on a moonless night would be even better! But I'd never find an image like that online to use. Except.... I bet AI could create such an image!!!

So I went back to the Bing chatbot and asked it to create such an image. In keeping with the sloth logo for the widget, I told it to make the ninja a sloth dressed as a ninja. Why not? Shoot for the moon, right? It could be hilarious! =)

The images it returned were gorgeous and hilarious. I loved them! They did have one small problem with them, however. They all had a full moon in the background. It would give me four images from my prompt, and every one of them had a full moon in the background. No, chatbot! Bad chatbot! "NO MOON" I told it!

For the life of me, I could not get the AI
to create images without a moon in the background!

And it replied how sorry it was that it misunderstood me, but that it was glad we could work through the misunderstanding and gave me four more images of a ninja entering a misty forest. But again, the moon was in every single image. Argh!!!

AI is amazingly talented and stupid at the same time. The quote clearly says it's a moonless night. I can't have a moon in the photo!

I tried a few other ways to entice the AI to remove the moon, but I couldn't seem to make it understand. I tried a "new moon" and a "dark sky with stars", but nothing worked. The AI kept adding in a stupid moon.

But finally! It returned an image with a moon, but this time, the moon was against a clear background of the sky rather than through the complex branches of a forest and I thought, that would be easy to digitally edit out. And that's what I finally did. 

When AI gave me this image, it still included the moon. But it wasn't covered with trees like all the others and I knew I could edit the moon out of this one. Finally! Success!

I loved the final image. A sloth, dressed as a ninja, entering a misty forest on a moonless night. That would never have happened without the help of AI.

I loved it so much, in fact, I thought it would be awesome if I had AI create images for all of the 70 quotes that were available, and displayed the images along with the quotes directly in the widget. No, no... I had more important things I needed to work on. I couldn't create 70 images to go with the quotes. I didn't have time for that.

I resisted for all about two hours before finally caving in and starting to create images based on the quotes. 

Some of them were very fast and easy. One of my favorites, a penguin sliding down a snowy hill on a sunny day, generated an amazing image right out of the starting gate. The AI nailed that perfectly on my very first prompt. I didn't have to edit the image at all either.

AI nailed it on my very first prompt!


Other prompts were a bit more problematic....

The AI was very difficult to work with whenever the image tended to be "darker". For instance, I needed an image of a dead body at the bottom of a mine shaft filled with noxious gases, but the AI was adamant about not creating images with dead bodies in them. ("Come on, I told it, it doesn't even have to be lifelike!" It failed to see the humor or irony in that statement.)

So then I tried to "trick" it into creating something kind of like a dead body. It had no problem creating people in a mine shaft with noxious fumes--but they were rescuers with air tanks on their backs. So I tried asking the AI to do the same image, but make it look like one of the rescuers had slipped and fell, and instead of being a rescuer, could he be a rescuee? 

I never did get a great image out of that, but I finally got something that at least "kindof" worked. There was one obvious flaw where there was a boot coming out of his sleeve where his hand was supposed to be, but I kind of found that funny and decided to leave it in. At least anyone looking carefully at the image would know it was an AI generated image!

Can you spot the obvious AI flaw in this image? =)

I knew the quote about boredom washing away like a bloodstain on a murder weapon was going to be a difficult pill for the AI to swallow even before I typed in the first prompt, so I started thinking about how to get something close to what I was thinking without saying it in so many words. Finally I tried prompting it to create a knife covered with "cranberry" stains being washed off in a sink. And... .well, they're definitely cranberries in the AI-generated image, but if you squint and don't look too closely, it could possibly look like clumpy lumps of blood. Good enough! And I moved on.... =)

Cranberries... blood... they're basically the same thing, right? =)
It's a pretty disturbing image either way!

I had trouble with the line about discarding a card from a losing poker hand. The AI didn't seem to discriminate against gambling, but rather, it was the cards themselves. Every image it generated always had an ace of spades being discarded--which doesn't look like a bad card! Finally I explicitly told it to change the card to a five of hearts. What can you do with a five of hearts? But it turns out, AI has trouble counting. The card was a 5, but only included 4 hearts on it. *sigh* But there was a big blank space between then, so I knew I could copy one of the other hearts and copy and paste a 5th heart into that empty space. Problem solved. On to the next quote!

The line about a tourist being lost in a big city without a map was surprisingly difficult to generate as well because the AI kept adding tourists WITH a map. "NO MAP!" I would tell it, but then it would generate four more images, all of them with a lost-looking tourist looking at a map. Nothing I said seemed to get rid of that map.

Then I hit upon the idea of what if I could get the AI to turn the map into something else. So I added the note about the lost tourist holding a "wildlife guide", and that finally worked. Finally got an image of a lost tourist that wasn't holding a map anymore--and a wildlife guide wasn't going to includes maps for the big city, so that wasn't going to help him!

Yeah, you aren't going to find the Chrysler Building with that wildlife guide, buddy! (I'm also amused at how AI spells everything with random letters whenever text should go somewhere.)

Another problematic line was the one about a match burning in a fireplace of an apartment complex that was on fire. "This is a bit disturbing," the AI replied. "Is this for safety reasons or are you thinking about arson." *sigh* "No, I am not an arsonist," I tried to assure it. I really hope the authorities aren't monitoring my Internet usage. This would be a difficult one to explain!

I eventually gave up trying to create an apartment complex that was on fire--I didn't seem to get anywhere with that line of requests--and focused on the match in the fireplace part of the line, which the AI was happy to create.

Having a muscle relaxing on a massage chair on the beach, for some odd reason, was something that the AI was not willing to create. Massage chairs and a beach it was fine with, but a muscle--apparently--was a step too far. I thought about trying to digitally edit the image to add a muscle to an empty massage chair on a beach, but I wasn't even really sure what a free-standing muscle should look like. A steak?

Then I wondered what would happen if I changed "muscle" to "mussel", and the AI had no problem with that. Sure, it could create an image of a mussel in a massage chair on a beach. And the image was hilariously wonderful! So I changed the quote to match the new photo. That was the only line where I edited the line to match the photo rather than the photo to match the line.

A mussel, relaxing on a massage chair on a tropical beach. =)

There were a couple of quotes about boredom disappearing like a sinking ship, but the AI was dead set against making images of any ships actually in the process of sinking. I eventually settled on some ships in stormy weather that "could" sink if the image were a video that could play. =)

Annoyingly, however, the chatbot would say that it had no problem creating an image of a sinking ship, but then only provide images of non-sinking ships! "No, that's not what I asked for," I insisted. It didn't help.

The chatbot might have had a problem with creating images of sinking ships, but it clearly has no love for snowmen soaking in a hot spring. It gave me an image of that without any fuss at all.

Another quote I had problems with was a broken glass of wine on a cobblestone street during an earthquake. The cobblestone street and the earthquake weren't issues, but the broken glass of wine was a challenge. AI kept wanting to create unbroken glasses, and the rare time I got it to create broken glasses, it looked horrible--as if it didn't know how to draw broken glass. I finally gave up and just accepted an unbroken glass, but at least it was tilted over on its side and the wine was spilling out.

Rest assure, in case of an earthquake, wine glasses are actually indestructible! The wine might spill out, but the glass won't break!

The last image I had a lot of trouble was the zombie that was decapitated and bludgeoned to death. I knew this was going to be a difficult one before I even typed in the first prompt. I decided to skip with trying to have it decapitated and bludgeoned to death knowing the AI wouldn't do either of those things, but maybe a dead zombie laying on the ground was sufficient. Depending on the image I got, maybe I could even digitally remove the head or deform it into something that looked bludgeoned.

I just couldn't make it work, though. Even getting the AI to generate a zombie was often difficult--but it seemed to help if I asked for it to be a "cartoon zombie". ("It doesn't have to look real!") I tried getting the AI to create an image of a zombie "laying down for a nap"--anything that might look like a dead zombie--but to no avail. I couldn't make anything work.

Finally I just took a cartoon-ish zombie with no background at all and rotated the image sideways, then had AI generate a background of a forest with a cartoon style. (I wanted the background to fit the cartoon-look of the zombie.) Then plopped the zombie onto it in my image editor. It looks horrible and is perhaps the least satisfying image of them since it looks so horribly photoshopped.

Arguably the worst of the AI-generated images (two AI-generated images in this case) that I decided to use anyhow.

There were a few quotes that I just couldn't create anything that was remotely funny or interesting: like Richard Nixon resigning in disgrace. For the life of me, the AI would not create any sort of image resembling Richard Nixon. It didn't matter if it looked like a cartoon or not. I tried describing Richard Nixon's appearance rather than use his name directly, but the images just didn't look enough like Richard Nixon to work. I finally gave up and decided it wasn't that funny of a line anyhow and threw it out completely.

There was one other line that I added about "May your boredom be extinguished like the fire on your nipples after a prank-gone-wrong!" and I was pretty sure the AI was not going to create an image for me of two nipples that were on fire, but fortunately, I had my own image for that. That was the only line I didn't use AI to create an image. =)

 

Anyhow... after getting images for all the funny quotes, I updated the code to use them and uploaded them to the live site, and now you can see them all if you refresh the widget enough. If you dare....

You might think that this widget was a total waste of my time, and perhaps you're right. But I have to admit, I found it very useful learning how to harness the power of AI to help create it. AI influenced so much of this widget! It helped with the suggestions for things to do if you're bored. It created the spinning wheel. It helped create the amusing lines about your boredom vanishing like a ninja in a misty forest on a moonless night--then helped create the images to describe those lines!

AI had its limitations, for sure, but it was an enormously educational experience for me. =)

If you want to see the rest of the AI-generated images.... you'll just have to install the widget and refresh it a whole bunch of times! Happy trails!

Saturday, February 10, 2024

Bored? Want to waste a little time?

"I am soooo bored, I might take a nap."

I know what you're thinking.... how can anyone be bored with all those letterboxes left to be found? And you make a good point, but it still happens! Maybe it's late at night and your eyes are blurry from carving by the dim light with a magnifying class. But somehow, someway, you wind up bored with nothing to do.

AQ has the solution! Yes, there's a new widget called the I... Am... Soooo.... Bored... widget, and it'll suggest random things that you can do!

They might be silly, they might be difficult, they might be expensive or otherwise impractical, but these aren't things you have to do--just suggestions for things you might want to do. And if you don't like a suggestion, just spin the wheel and check out a different one!

For instance, here's a few suggestions you might get:

  • Type your full name with your nose.
  • uʍop ǝpᴉsdn pɐǝɹ oʇ uɹɐǝ˥
  • Write a note of appreciation to someone
  • Or, perhaps my favorite: Go for a walk

If that isn't convincing you, it'll also mention that Wassa has been helping with testing and suggestions, so the widget is officially Wassa approved with such ringing endorsements as "I'm kinda loving this stupid little project" and "I find it oddly compelling, overall." With endorsements like that, how can you say no?!

It will be a premium member perk because really, it's not needed. Like, at all.... For anyone. Just a little fun that premium members help make possible.

Ready to check out the latest and greatest widget ever? Go to the Add Widgets section of My Page and find the Bored widget. You won't be disappointed! (But if you are, just do some of the activities it suggests and you'll forget all about being disappointed.)

May your boredom vanish like a ninja into a misty forest on a moonless night!

"You can't see me..."


Thursday, January 18, 2024

The JavaScript Update

Pokey Joe,
photo submitted
by Happy Hyper Hikers

So I took AQ down for another Big Update. And, of course, some of you might ask.... what changed?

For the most part... not much. That was the plan too. =)

Long story short.... you can move widgets on My Page and sort people in trackers or boxes in a series with your smartphone now! Woo-who! =)

For the long version of the story, keep reading.... ;o)

Last year, I got an email from Google saying that the Google Maps on AQ will stop working. Definitely and definitively. They'll just stop working sometime in May at the very latest, and the reason has to do with a decision I made about 20 years ago. (Twenty years?!)

You see, I've never really known much JavaScript (or JS for short), and when I needed JavaScript to do a few tasks, I started using a JS library known as Prototype.

It's cool. It allowed me to create stuff like My Page--which uses all sorts of features that are enabled with Prototype. Opening and closing widgets, moving them around, etc.

BUT--apparently, Prototype is going to break Google Maps.

And at first I thought, "No problem. I'll just update to the latest version of Prototype. I'm sure whatever it is causing the problem is going to be fixed. After all, everybody wants Google Maps to keep working, right?"

And it had probably been about a decade since I've updated it. Why bother when it keeps working so well?

But when I went to look it up, I discovered that the JS library had not been updated at all for nearly a decade! The project, apparently, is all but dead. I can't just version my way out of this problem.

And somehow, I figured a number of you guys might be upset if I just let Google Maps stop working.

Soo..... Hmm..... I could try updating Prototype myself, but that's way beyond my capabilities.

There's another JS library known as jQuery. I didn't use jQuery originally because when AQ started, it didn't exist. It had, however, taken the world by storm and is by far the most used JS library out there. I think over 50% of websites actually use it. Maybe I should switch to using that?

Ugh, but then I'd have to learn all the nitty gritty details about how that works. What if this kind of problem shows up again in another 20 years?

There was another option, though.... why don't I just create my own mini-JavaScript library? There are a number of advantages in just ditching the established libraries. Mine would be much smaller (and therefore faster to load and run). I wouldn't have to add all the stuff that needs to be there for millions of people to use. I just need the stuff that *I* need to use! And if I use my own code, I can update it as often and whenever I needed. And I'll understand exactly how all it works.

But this meant.... I really needed to learn JavaScript in a fair amount of depth.

So I studied and learned.

On my development machine, I started updating small things--like the "here" button on location-based searches. Then progressively worked up to larger and more complex tasks.

One of the last things I dived into was drag-and-drop. I knew that would be complex, and the height of complexity would be My Page. I shuttered just thinking about how I would make My Page work so well without a library to do the heavy lifting. *shudder*

It's taken a month or two, but I finally got a working version up.

And... it's even better than before! I've improved it!

The vast majority of the JS that I used before--you shouldn't see any differences at all. Most of the changes are meant to be under-the-hood and out of sight. 

But after recreating the drag-and-drop functionality--a huge milestone in my book!--I wondered if I could improve it by making it work for smartphones. It's a little annoying that you can't move stuff when you're on a smartphone, right? It annoys me too! To be fair, Prototype was created before smartphones were a thing. There's a reason smartphones weren't really supported--they simply didn't exist when the technology I used was created.

But it seemed like something I could add, so I started working on it....

 And... well, I just couldn't make it work properly with a touch-screen device. Stuff happened, but I just couldn't make a smooth drag-and-drop motion with a touch-screen device. ARGH!!!!

Part of the reason was that the touch screen is meant for scrolling pages, and the motion to move the page sometimes interfered with the motion to move the object.

But I wasn't going to give up that easily. Nope. I had another idea. Instead of a drag-and-drop, what if I let someone tap the item they want to move, then tap where they want the item to go? So I added some event handlers and....

...it worked! I could move items around with a touch-screen! Then I figured that I could also do the same for mouse clicks, so I started working on that and realized I could combine both with a simple onClick handler. Tap on, tap off. So simple! Works on desktops and smartphones. The drag-and-drop isn't even really needed at all, although it doesn't interfere with anything so it makes sense to leave it alone for those people who are used to drag-and-dropping. That will still work.

Another thing that's advanced dramatically over the last 20 years is accessibility, and the sorting or moving of items still had a major accessibility problem. You couldn't move anything with a keyboard. Someone using a screen reader, for instance, and was completely dependent on the use of a keyboard, would still never be able to sort items. And with all my newfound knowledge, I didn't think it would be very difficult to add keyboard support for sorting as well.

So then I did that.

Oh, there were definitely difficulties along the way, but I worked through them and sorting can now be done with a mouse, touch screen or keyboard. They all work! The actual drag-and-drop still only works with a mouse, but maybe someday I'll figure out what went wrong and get it working with a touch screen too. Now that I'm using my own code rather than a JS library, I can edit it or make future tweaks as needed whenever I want. 

Photo submitted by Wronghat.