<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Phil Eberhardt</title>
    <description>The latest articles on Forem by Phil Eberhardt (@rockshandy).</description>
    <link>https://forem.com/rockshandy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3012855%2Fdf0f7a37-7660-4bd1-9d7c-aff439bbbe19.jpeg</url>
      <title>Forem: Phil Eberhardt</title>
      <link>https://forem.com/rockshandy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rockshandy"/>
    <language>en</language>
    <item>
      <title>A puzzling and pleasant first experience with Google AI Studio</title>
      <dc:creator>Phil Eberhardt</dc:creator>
      <pubDate>Fri, 18 Jul 2025 21:14:54 +0000</pubDate>
      <link>https://forem.com/rockshandy/a-puzzling-and-pleasant-first-experience-with-google-ai-studio-3g6b</link>
      <guid>https://forem.com/rockshandy/a-puzzling-and-pleasant-first-experience-with-google-ai-studio-3g6b</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is my submission for &lt;a href="https://dev.to/deved/build-apps-with-google-ai-studio"&gt;DEV Education Track: Build Apps with Google AI Studio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;My daughter was doing a puzzle and I thought it would be helpful to have an application where I could get a prompt from my daughter and make a jigsaw overlay on the generated picture. I could then print it out on card stock or something to have some fun in real life.&lt;/p&gt;

&lt;p&gt;I started with this prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please create an app that will generate an image in puzzle pieces based on a user prompt and puzzle piece count&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I had another prompt to see if I would get better starting pieces:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please create an app that will generate an image in jigsaw puzzle pieces based on a user prompt and piece count.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Screen shot of image prompt and initial puzzle size:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwu21odlj04ctone0gi4b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwu21odlj04ctone0gi4b.png" alt="Puzzle generator prompt and size selection" width="800" height="594"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Screen shot of a generated puzzle and the actions you can take:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnzclvoujpku2180b6fu0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnzclvoujpku2180b6fu0.png" alt="Image generation on submit of previous picture, includes some action buttons to start again, adjust size, or print." width="800" height="1051"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://aistudio.google.com/app/prompts?state=%7B%22ids%22:%5B%2210OdxrD_o7ITAK1xvncJysWQ_XehCTHzH%22%5D,%22action%22:%22open%22,%22userId%22:%22104864537033434481663%22,%22resourceKeys%22:%7B%7D%7D&amp;amp;usp=sharing" rel="noopener noreferrer"&gt;AI studio app share&lt;/a&gt; as I don't have the funds to deploy anything actively.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Experience
&lt;/h2&gt;

&lt;p&gt;Overall I enjoyed the AI studio interface and hope to play with it more. Some thoughts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Starting prompt should be a little more precise.&lt;/strong&gt; While adding "jigsaw" didn't help the second try (it was still squares), I should have mentioned I wanted something printable so it wouldn't start interactive.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;AI can fix bugs when pointed out using natural language.&lt;/strong&gt; Though sometimes I had to refine my response (like learning better puzzle piece terms for sockets and knobs), it was quick to fix and preview the next iteration.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Seeing the thinking process and explanation of changes is really helpful.&lt;/strong&gt; After each of my text entries you can see the AI thinking in steps. Generally after it was done you would see bulleted lists/paragraphs saying why it was doing something and explaining some new terms. The way it responded helped me figure out how to approach fixes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;It was weird to see the changes without any manual coding.&lt;/strong&gt; Still pretty new to this stuff but it was really cool seeing the diffs pointed out and having a two page dynamic web app without me going into any code myself. The downloaded version had the extra setup files in it as well, which didn't clog up my initial editor view.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The AI can suggest prompts for the app.&lt;/strong&gt; Perhaps this is a form of the phrase, "eating your own dog food". It was fun to ask the AI what puzzles it would suggest. It had three suggestions across a few themes and they all seemed pretty fun.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;I was surprised after a few iterations it could get the jigsaw pathing right!&lt;/strong&gt; There were maybe 5 back and forth type prompts to get it working. I wasn't sure if I was explaining very well. Adjusting based on what AI studio was thinking helped the process along. I really like the setup!&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This was my first submission ever so I actually created &lt;a href="https://dev.to/rockshandy/first-post-and-first-learning-tract-4bg5"&gt;another post before this one&lt;/a&gt;. Overall this was really cool and my first try at using AI to help me build something. It was pretty amazing to have a working client side application that could use Gemini and an image service (Imagen). Please comment if you have any thoughts!&lt;/p&gt;

</description>
      <category>deved</category>
      <category>learngoogleaistudio</category>
      <category>ai</category>
      <category>gemini</category>
    </item>
    <item>
      <title>First post and first learning tract</title>
      <dc:creator>Phil Eberhardt</dc:creator>
      <pubDate>Fri, 18 Jul 2025 20:44:48 +0000</pubDate>
      <link>https://forem.com/rockshandy/first-post-and-first-learning-tract-4bg5</link>
      <guid>https://forem.com/rockshandy/first-post-and-first-learning-tract-4bg5</guid>
      <description>&lt;p&gt;Trying out the &lt;a href="https://dev.to/devteam/announcing-the-first-dev-education-track-build-apps-with-google-ai-studio-ej7"&gt;first tract from DEV&lt;/a&gt; and figured I could make a post about it. I don't really have any experience working with AI except asking Google assistant/Gemini for things so I'm really curious.&lt;/p&gt;

&lt;h2&gt;
  
  
  Initial try
&lt;/h2&gt;

&lt;p&gt;My daughter was doing a puzzle and I thought it would be helpful to have an application where I could get a prompt from my daughter and make a jigsaw overlay on the picture and be able to print it out on card stock or something. I started with this prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please create an app that will generate an image in puzzle pieces based on a user prompt and puzzle piece count&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The first generation made a functioning app that would display a shuffle of blocks making up the image. It could solve the puzzle. I asked to adjust to using jigsaw pieces and the AI explained it would use a canvas an make unique tabs but then it seemed to have an error and I no longer saw any image after I entered the string prompt.&lt;/p&gt;

&lt;p&gt;It tried to fix the error and seemed to say the prompt to image generation wasn't very robust and could be blank. I tried it a few times without luck and thought maybe it was because I was using the Zen browser, I've had weird problems with some sites before.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's try that again in Firefox
&lt;/h2&gt;

&lt;p&gt;I started over in Firefox and added jigsaw to my first prompt to see if it would get the right generation.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please create an app that will generate an image in jigsaw puzzle pieces based on a user prompt and piece count.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This time the user input had an example prompt in text and a drop-down to pick the puzzle size (like 4x4 is 16 pieces) instead of a range slider. This had an humorous start where it just shows I solved the puzzle, and it didn't show the initial image! The process of pointing out an error and seeing a new version with a fix to try was pretty interesting. The AI had the most issues with my adjustment for printing and showing actual jigsaw pieces.&lt;/p&gt;

&lt;p&gt;It took around 10 iterations to get a working application, but it was pretty fun to chat with the AI and peak into the thinking process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Some observations
&lt;/h2&gt;

&lt;p&gt;Overall I enjoyed the AI studio interface and hope to play with it more. Some takeaways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Starting prompt should be a little more precise.&lt;/strong&gt; While adding "jigsaw" didn't help the second try (it was still squares), I should have mentioned I wanted something printable so it wouldn't start interactive.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;AI can fix bugs when pointed out using natural language.&lt;/strong&gt; Though sometimes I had to refine my response (like learning better puzzle piece terms for sockets and knobs), it was quick to fix and preview the next iteration.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Seeing the thinking process and explanation of changes is really helpful.&lt;/strong&gt; After each of my text entries you can see the AI thinking in steps. Generally after it was done you would see bulleted lists/paragraphs saying why it was doing something and explaining some new terms. The way it responded helped me figure out how to approach fixes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;It was weird to see the changes without any manual coding.&lt;/strong&gt; Still pretty new to this stuff but it was really cool seeing the diffs pointed out and having a two page dynamic web app without me going into any code myself. The downloaded version had the extra setup files in it as well, which didn't clog up my initial editor view.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The AI can suggest prompts for the app.&lt;/strong&gt; Perhaps this is a form of the phrase, "eating your own dog food". It was fun to ask the AI what puzzles it would suggest. It had three suggestions across a few themes and they all seemed pretty fun.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I hope to have my actual daughter and partner try this soon, but I had some fun asking the AI at the end what puzzle prompts I should try! My favorite one was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Animals in a library, wearing spectacles and reading books that are flying off the shelves.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F938ncr0l425q72nb5cyw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F938ncr0l425q72nb5cyw.png" alt="An AI generated image given the prompt about animals in a library" width="800" height="797"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  A fun time!
&lt;/h2&gt;

&lt;p&gt;If you want to see the initial setup and any future work, I added &lt;a href="https://github.com/rockshandy/ai-jigsaw-puzzle-generator" rel="noopener noreferrer"&gt;a public git repo&lt;/a&gt;. If you want to see the initial AI studio App, &lt;a href="https://aistudio.google.com/app/prompts?state=%7B%22ids%22:%5B%2210OdxrD_o7ITAK1xvncJysWQ_XehCTHzH%22%5D,%22action%22:%22open%22,%22userId%22:%22104864537033434481663%22,%22resourceKeys%22:%7B%7D%7D&amp;amp;usp=sharing" rel="noopener noreferrer"&gt;check it out&lt;/a&gt;. Let me know if you made a fun project, especially if it is geared toward any fun young kid activities!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
