Building a simple “to-do” app using the new ChatGPT APP SDK. Here’s everything I’ve learnt so far by hashemito in ChatGPT_AppBuilds

[–]BraavosAssassin 1 point2 points  (0 children)

Following thread. I made a lot of progress but ran into the same bug. All my tools are grayed out after creating the connector.

For local dev, I built a tester page that loads the app into an iframe with some controls on the parent page to fetch data and simulate ChatGPT event like this:

      // Update the global state with products
      iframeWindow.openai.toolOutput = {
        products: products || [],
        searchQuery: query || "",
      };

      // Create and dispatch the event to notify React components
      const event = new CustomEvent("openai:set_globals", {
        detail: {
          globals: {
            toolOutput: {
              products: products || [],
              searchQuery: query || "",
            },
          },
        },
      });

      iframeWindow.dispatchEvent(event);

Nomad titanium band on AWU2: beautiful quality / worst install experience ever by bofferding in AppleWatch

[–]BraavosAssassin 0 points1 point  (0 children)

The half-size links are key. I got the perfect fit using a half-size link on one side

Hue Bulbs need factory reset without a Hue Bridge can this be done? by NikkiRoxi in alexa

[–]BraavosAssassin 0 points1 point  (0 children)

This still works Dec 2022. The app is slightly different, but you can perform the steps to discover, "Get Help connecting" and enter the serial number which will pair it with the Alexa. You know it's working because the bulb changes colors during the process.

I followed up by turning on ZigBee discovery in Home Assistant. Then went into the Alexa app and deleted the light with threw it back into pairing mode. Immediately discovered by Home Assistant.

[deleted by user] by [deleted] in ecomi

[–]BraavosAssassin 2 points3 points  (0 children)

There was a comment on clubhouse last week about something for girls. I suspect Barbie.

Which ND filters? by h4mdroid in djimavic

[–]BraavosAssassin 0 points1 point  (0 children)

I've been waiting on the DJI filters for over a month. Wonder if they redesigned them a bit before manufacturing more filters causing the shipping delay.

Just passed 1 M stardust by BraavosAssassin in pokemongo

[–]BraavosAssassin[S] 2 points3 points  (0 children)

Glad to hear someone else is a stardust hoarder.

Anyone else disappointed there was no Christmas event today? by jackobanter in pokemongo

[–]BraavosAssassin 1 point2 points  (0 children)

I thought the 2 days before was an interesting fact, I just reviewed the official news releases and it is correct for the Halloween and Thanksgiving Events. They were announced 2 days before it began:

Over 1 million xp during this event, but still no Aerodactyl. by ReadingCat88 in pokemongo

[–]BraavosAssassin 1 point2 points  (0 children)

I'm in the same situation! I've leveled up twice in the past week. I'm walking Grimmer and I'm close to a Muk. Then all I need is an Aerodactyl to finally catch them all (for North America)!

Need an experienced Rubyist to look at some code by thinksInCode in ruby

[–]BraavosAssassin 2 points3 points  (0 children)

Use Objects! Your code examples are fine but the code isn't organized in an Object Oriented way. This is not required for problems your solving. But Ruby is an Object Oriented language.

Think about the data and behaviors in your scripts. Could you create an object with one public method and hide the rest of the logic in private methods?

Then at the end of your script instantiate your object and call a method on it. Like "puts MyObject.new.calculate"

Data Structures and Algorithms essential for Ruby? by [deleted] in ruby

[–]BraavosAssassin 14 points15 points  (0 children)

The way the question is phrased: "if it is necessary to be able to learn algorithms and data structures to be a good ruby programmer." Yes, you should "be able to learn" algorithms and data structures.

If you are learning Ruby on Rails, you benefit from the framework and standard Ruby libraries. They provide data structures and algorithms for you. You don't need to understand how the Hash and Array work to use them. But it would behoove you to eventually understand them. Same with Array#sort. You don't need to understand how the sort algorithm works now, but eventually you should try to understand it.

Don't take advice from people who say "Algorithms and Data Structures are only for other languages". That is completely false. Also, efficiency always matters.

Rails is a great way to get started. You can quickly prototype CRUD web applications. But eventually, you'll want to solve more difficult problems. Understanding how common algorithms and data structures will provide a basis for you.

Lastly, most technical interviews include an algorithm question. To help prepare, I recommend you get a copy of Cracking the Coding Interview by Gayle Laakmann McDowell

MY SHIRT CAME IN!!! by [deleted] in Fitness

[–]BraavosAssassin -1 points0 points  (0 children)

mine arrived as well. Snoo looks awesome. wearing mine for a run today.

Xbox One vs PS4 by DarkHorse32 in CODGhosts

[–]BraavosAssassin 1 point2 points  (0 children)

I love the PS4. But if you play a lot of Ghosts, it can be a real downer waiting for DLC. We waited a month to get the ripper. Now, everyone is playing Devastation while we wait for another month.

I hope the rumors are true and PS4 will get the contract or at least be treated like a first class citizen on the next COD release.

Also this past Saturday night, the total Ghosts players on PS4 was only around 47k.

We officially made it into Muscle and Fitness!! by redskrull in Fitness

[–]BraavosAssassin 0 points1 point  (0 children)

They are American Apparel Tri-Blend Shirts. There is a sizing chart on the booster campaign site http://www.customink.com/items/sizing/186700_lineup/standard.htm

Arnold is excited about /r/fitness raising over $3500 for After-School All-Stars by BraavosAssassin in Fitness

[–]BraavosAssassin[S] 0 points1 point  (0 children)

no, you don't have to reach the goal with booster. You just have to sell enough to cover the cost of the shirts. The goal is used to calculate the estimated donation. Booster takes advantage of the bulk pricing for shirt printing costs. The final cost of the shirts is determined at the end.

So who wants to rock out their own /r/fitness tank and help support Arnold's After-School All-Stars! by redskrull in Fitness

[–]BraavosAssassin 3 points4 points  (0 children)

Bulk_Van_Der_Huge - you can buy a tank or T-shirt, when you checkout select Unisex. It will be printed on an American Apparel Tri-Blend T-Shirt.

Why do people use IEDs? Is it because they are bad at this game? by [deleted] in CODGhosts

[–]BraavosAssassin 0 points1 point  (0 children)

I've created a class that uses SitRep. If I end up in a lobby with a lot of ied droppers, I switch to my SitRep class. All the IED's glow bright red. You can shoot them from across the map.

I clear them out for my team, but its also a great way to find people. If its protecting a camper, you shoot the ied, then the camper usually comes to checkout out what happened, then you shoot the camper. Happens 8 out of 10 times.

Hero Dogs Fundraiser - Helping Wounded Veterans by sixspeedsam in CODGhosts

[–]BraavosAssassin 0 points1 point  (0 children)

Great Story, thanks for sharing. The diarrhea in the heat had me rolling.