<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Matt Majewski on Medium]]></title>
        <description><![CDATA[Stories by Matt Majewski on Medium]]></description>
        <link>https://medium.com/@mattmajewski?source=rss-e551bb7e1b96------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2Y5Gi3TCP0gR1iuqN3dhqg@2x.jpeg</url>
            <title>Stories by Matt Majewski on Medium</title>
            <link>https://medium.com/@mattmajewski?source=rss-e551bb7e1b96------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 09:37:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mattmajewski/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What the TanStack Supply Chain Attack Means for Engineering Teams and How I Checked Our Environment]]></title>
            <link>https://medium.com/@mattmajewski/what-the-tanstack-supply-chain-attack-means-for-engineering-teams-and-how-i-checked-our-environment-0512a0418529?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/0512a0418529</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Fri, 15 May 2026 18:44:54 GMT</pubDate>
            <atom:updated>2026-05-15T18:44:54.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CiaQAgG5-KCM92xst-KaCg.png" /></figure><p><em>By Matthew Majewski, CTO &amp; Co‑Founder of Onboard</em></p><p>This week’s TanStack npm supply chain compromise was another reminder that modern engineering teams are operating in an increasingly hostile dependency ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*hG6zc-1zsjEQdMDv.jpg" /><figcaption>Shai-hulud as depicted in <a href="https://www.youtube.com/watch?v=eilguYeRW44">https://www.youtube.com/watch?v=eilguYeRW44</a></figcaption></figure><p>The attack, named <strong>“Mini Shai-Hulud”, </strong>targeted developer environments, CI/CD systems, npm ecosystems, GitHub credentials, cloud secrets, and install-time execution paths.</p><p>Like many SaaS companies, we rely heavily on modern JavaScript tooling across frontend applications, integrations, developer tooling, documentation systems, and CI pipelines.</p><p>I, like many other tech leaders, woke up Tuesday morning to a flood of tweets (yes, I still call them tweets) on the “dead man’s switch” / “Mini Shai-Hulud”. And immediately sent a PSA to our #general Slack Channel.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/SocketSecurity/status/2053935298405355923%3Fs%3D20&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ef1df4b9bc4a60a1b6221e5f38402ac/href">https://medium.com/media/9ef1df4b9bc4a60a1b6221e5f38402ac/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/aikidosecurity/status/2053990513280475405%3Fs%3D46%26t%3Dzbo_n_AhTqepb6sQ1Gfsvw&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f34507ed799bfb34d8949eda329083f/href">https://medium.com/media/8f34507ed799bfb34d8949eda329083f/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/hetmehtaa/status/2054158511073116266%3Fs%3D20&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9fb2f0582d2cc65c7f07b169e91abe1/href">https://medium.com/media/c9fb2f0582d2cc65c7f07b169e91abe1/href</a></iframe><p>After the initial shock, I told myself to take a deep breath, and evaluate the situation. We were fortunate enough to not use tanstack in our primary applications, however there was still work to do.</p><p>When incidents like this happen, speed matters, but so does having a practical process. Having controls and alerts in place are always helpful, and having a good security posture is important, but any event or incident shines a light on new security attacks, context and problems to solve. Now is the time to bolster your defenses.</p><h3>What Happened</h3><p>Compromised versions of several TanStack-related npm packages were briefly published and included malicious install-time behavior intended to exfiltrate:</p><ul><li>GitHub tokens</li><li>npm credentials</li><li>AWS/cloud secrets</li><li>SSH keys</li><li>.env files</li><li>CI/CD secrets</li></ul><p>The attack specifically targeted the trust developers place in package managers and automated dependency workflows.</p><p>This class of attack is becoming more common because:</p><ul><li>Install scripts execute automatically</li><li>CI systems often inadvertently expose sensitive secrets</li><li>Dependency updates are increasingly automated</li><li><strong>Many organizations use broad semver ranges (</strong><strong>^)</strong></li><li>Lockfile hygiene is inconsistent</li></ul><h3>Step 1: Identify Whether You Actually Installed Affected Packages</h3><p>The first step is not panic. It’s determining whether affected versions were ever installed.</p><h3>npm</h3><pre>npm ls @tanstack/*</pre><h3>Yarn Classic (v1)</h3><pre>yarn list --pattern @tanstack</pre><h3>Yarn Berry (v2+)</h3><pre>yarn why @tanstack/react-query</pre><p>Then inspect the lockfile directly.</p><h3>npm lockfile</h3><pre>grep -R &quot;@tanstack&quot; package-lock.json</pre><h3>Yarn lockfile</h3><pre>grep -A 5 &quot;@tanstack&quot; yarn.lock</pre><p>The important thing is the exact resolved version and when it entered your dependency graph.</p><h3>Step 2: Search for Known Indicators in node_modules</h3><p>We then scanned local installs for indicators associated with the malware.</p><p>🗒 ️<em>Note: tanstack wasn’t the only package involved in the attack, but this same process can be used for others.</em></p><h3>Search for malicious lifecycle hooks</h3><pre>grep -R &quot;\&quot;postinstall\&quot;&quot; node_modules/@tanstack</pre><h3>Search for known indicators</h3><pre>grep -R &quot;83.142.209.194&quot; node_modules<br>grep -R &quot;git-tanstack.com&quot; node_modules<br>find node_modules -name &quot;router_init.js&quot;</pre><h3>Search for suspicious environment variable access</h3><pre>grep -R &quot;process.env&quot; node_modules/@tanstack</pre><p>This is especially important because modern supply chain malware frequently targets:</p><ul><li>.env</li><li>GitHub Actions tokens</li><li>AWS credentials</li><li>npm auth tokens</li><li>SSH keys</li><li>Vercel / Netlify / Cloudflare tokens</li></ul><h3>Step 3: Determine Whether Install Scripts Executed</h3><p>Even if a compromised version briefly existed in your lockfile, execution matters.</p><p>I checked:</p><h3>Local shell history</h3><pre>history | grep npm<br>history | grep yarn<br>history | grep pnpm<br>history | grep npx</pre><h3>CI logs</h3><p>Look for:</p><ul><li>npm install</li><li>yarn install</li><li>pnpm install</li><li>npx install</li><li>Automated dependency upgrades</li><li>Renovate merges</li><li>Dependabot merges</li><li>Ephemeral build runners</li></ul><p>If installs occurred during the compromise window, assume lifecycle scripts may have executed and investigate.</p><h3>Step 4: Run Dedicated Dependency Scanners</h3><h3>Socket.dev</h3><p>Socket was one of the fastest teams identifying the compromise and is worth integrating into CI permanently.</p><pre>npx @socketsecurity/cli npm audit</pre><p>Useful because it focuses on:</p><ul><li>install scripts</li><li>suspicious network access</li><li>obfuscation</li><li>credential access</li><li>risky package behavior</li></ul><p>Official site:</p><p><a href="https://socket.dev/">https://socket.dev</a></p><h3>GuardDog</h3><p>Useful for npm malware analysis.</p><pre>pip install guarddog<br>guarddog npm scan .</pre><p>GitHub:</p><p><a href="https://github.com/DataDog/guarddog">https://github.com/DataDog/guarddog</a></p><h3>Step 5: Rebuild Cleanly</h3><p>Even if everything appears clean, we recommend forcing a fresh install.</p><h3>npm</h3><pre>rm -rf node_modules package-lock.json<br>npm install</pre><p>Or preferably:</p><pre>npm ci</pre><h3>Yarn</h3><pre>rm -rf node_modules yarn.lock<br>yarn install</pre><p>For Yarn Berry:</p><pre>yarn install --immutable</pre><h3>Step 6: Rotate Credentials If Exposure Is Possible</h3><p>If compromised packages were installed during the attack window, assume secrets may have been exposed.</p><p>Immediately rotate:</p><ul><li>GitHub PATs</li><li>npm tokens</li><li>AWS access keys</li><li>Cloudflare API tokens</li><li>Vercel / Netlify credentials</li><li>CI secrets</li><li>SSH deploy keys</li></ul><p>Also review:</p><ul><li>GitHub audit logs</li><li>GitHub Actions workflow changes</li><li>new OAuth applications</li><li>unexpected package publishes</li><li>unusual git pushes or tags</li><li>unknown SSH fingerprints</li></ul><p>This is where strong operational maturity matters. If you use Datadog SIEM or other systems — these signals should create logs and alerts.</p><h3>The Bigger Problem: Modern JavaScript Supply Chains</h3><p>The real lesson here is not just TanStack.</p><p>Modern frontend and full-stack ecosystems now involve:</p><ul><li>thousands of transitive dependencies</li><li>automated updates</li><li>build-time code execution</li><li>cloud-connected CI systems</li><li>secrets everywhere</li></ul><p>That combination creates a <strong>very large</strong> attack surface.</p><p>The convenience of:</p><pre>&quot;some-package&quot;: &quot;^5.x&quot;</pre><p>comes with real operational risk.</p><h3>Changes We’re Reinforcing Internally</h3><h3>1. Frozen / Immutable Installs</h3><h3>npm</h3><pre>npm ci</pre><h3>Yarn Berry</h3><pre>yarn install --immutable</pre><p>Reproducible builds reduce surprise upgrades.</p><h3>2. Reduce Lifecycle Script Exposure</h3><p>Where possible:</p><h3>npm</h3><pre>npm ci --ignore-scripts</pre><h3>Yarn</h3><pre>yarn install --ignore-scripts</pre><p>Install scripts are one of the most abused attack vectors in npm.</p><h3>3. Avoid Immediate Adoption of Fresh Publishes</h3><p>One of the highest ROI mitigations is introducing a minimum package age requirement.</p><p>This prevents same-day package publishes from automatically entering CI/CD.</p><p>Examples:</p><ul><li>pnpm minimumReleaseAge</li><li>Socket organization policies</li><li>internal package proxies/caches</li></ul><p>Even a 24–72 hour delay blocks many real-world supply chain attacks.</p><h3>4. Exact Version Pinning for Critical Packages</h3><p>Avoid broad ranges for infrastructure-critical dependencies.</p><p>Prefer:</p><pre>&quot;@tanstack/react-query&quot;: &quot;5.59.13&quot;</pre><p>instead of:</p><pre>&quot;@tanstack/react-query&quot;: &quot;^5.59.13&quot;</pre><h3>5. Harden CI/CD</h3><p>Engineering teams should assume CI systems are high-value targets.</p><p>Best practices:</p><ul><li>ephemeral runners</li><li>least-privilege tokens</li><li>isolated secrets</li><li>scoped npm tokens</li><li>mandatory MFA</li><li>GitHub OIDC over static cloud keys</li><li>restricted workflow permissions</li></ul><h3>Final Thoughts</h3><p>Supply chain attacks are no longer edge cases.</p><p>They are becoming part of normal operational security for engineering organizations.</p><p>The goal is not to eliminate all risk: that’s unrealistic.</p><p>The goal is:</p><ul><li>faster detection</li><li>reproducible builds</li><li>minimized blast radius</li><li>hardened CI systems</li><li>disciplined dependency management</li></ul><p>Modern developer ecosystems move incredibly fast.</p><p>Security processes need to evolve at the same pace.</p><h3>Helpful Resources</h3><h3>Incident &amp; Analysis</h3><ul><li><a href="https://tanstack.com/blog/npm-supply-chain-compromise-postmortem">https://tanstack.com/blog/npm-supply-chain-compromise-postmortem</a></li><li><a href="https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attack">https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attack</a></li><li><a href="https://snyk.io/blog/tanstack-npm-packages-compromised/">https://snyk.io/blog/tanstack-npm-packages-compromised/</a></li><li><a href="https://www.youtube.com/watch?v=eilguYeRW44">https://www.youtube.com/watch?v=eilguYeRW44</a></li></ul><h3>Security Tooling</h3><ul><li><a href="https://socket.dev/">https://socket.dev</a></li><li><a href="https://trivy.dev/">https://trivy.dev</a></li><li><a href="https://github.com/DataDog/guarddog">https://github.com/DataDog/guarddog</a></li></ul><h3>GitHub Security</h3><ul><li><a href="https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise">https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0512a0418529" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up AutoGPT for Custom AI Agents]]></title>
            <link>https://pub.aimind.so/setting-up-autogpt-for-custom-ai-agents-7d1f2ed78dd1?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d1f2ed78dd1</guid>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[auto-gpt]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Fri, 30 May 2025 00:05:18 GMT</pubDate>
            <atom:updated>2025-06-17T13:22:37.189Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*ls2qP4PkKQC5AhEYBp0lng.png" /></figure><p>Imagine having ChatGPT quietly grinding through tasks while you focus on real work — no endless prompt-chat, just results. <br>That question sent me down the rabbit hole until I landed on **AutoGPT**, an open-source wrapper that turns large-language models into autonomous agents. It’s every bit as wild as the hype suggests.</p><p>Below is the fastest, barebones setup I’ve found for macOS. Five minutes from now you’ll have a tireless AI agent running in the background.</p><p>🔥<strong>AutoGPT</strong>🔥</p><p>Here’s the quickest, simplest way I was able to set up (MacOS)</p><ol><li>Fork AutoGPT</li></ol><p>2. Clone repository to local (I forked as “Agent”)</p><p>3. Update .env with your OpenAI API Key</p><p>4. Run setup</p><pre>cd Agent<br>./run setup</pre><p>(then add `/Users/YOUR_USERNAME/.local/bin` to your PATH — this is necessary for Poetry)</p><p>5. Create Agent</p><pre>./run agent create YOUR_AGENT_NAME</pre><p>6. Try it out! ✨</p><pre><br>./run agent start autogpt</pre><p><a href="http://localhost:8000/app/index.html">http://localhost:8000/app/index.html</a></p><p>Note: beware of costs as it runs continuously — use a cheaper model for most thinks, like 4o-mini, or (for a later article) set it up to use a local model with the same API format.</p><p><strong>Troubleshooting</strong></p><ul><li>Device space — make sure you have space left on the drive your are installing on.</li><li>Add the poetry path to your environment</li><li>If you have issues — leave me a comment!</li></ul><h4>A Message from AI Mind</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*5Wm7sOfTpe5DEbhg.gif" /></figure><p>Thanks for being a part of our community! Before you go:</p><ul><li>👏 Clap for the story and follow the author 👉</li><li>📰 View more content in the <a href="https://pub.aimind.so/">AI Mind Publication</a></li><li>🧠 Improve your <a href="https://www.aimind.so/prompt-generator?utm_source=pub&amp;utm_medium=message">AI prompts effortlessly and FREE</a></li><li><strong>🧰 Discover </strong><a href="https://www.aimind.so/?utm_source=pub&amp;utm_medium=message"><strong>Intuitive AI Tools</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d1f2ed78dd1" width="1" height="1" alt=""><hr><p><a href="https://pub.aimind.so/setting-up-autogpt-for-custom-ai-agents-7d1f2ed78dd1">Setting up AutoGPT for Custom AI Agents</a> was originally published in <a href="https://pub.aimind.so/">AI Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transform Your Midjourney Prompts with SREFs: A Step-by-Step Tutorial]]></title>
            <link>https://pub.aimind.so/transform-your-midjourney-prompts-with-srefs-a-step-by-step-tutorial-ebc3678fe470?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebc3678fe470</guid>
            <category><![CDATA[midjourney]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[ai-tools]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 22:56:28 GMT</pubDate>
            <atom:updated>2024-10-08T18:47:03.694Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*QGejbpGFNXxP78B5WGpCpg@2x.jpeg" /></figure><blockquote>👋 When it comes to developing a consistent style for your Midjourney creations, let SREFs do the heavy lifting for you. Here’s a step-by-step guide.</blockquote><h3>Selecting an Image for SREF</h3><p>There are 3 options for — sref</p><ul><li>An image url</li><li>A number</li><li>random</li></ul><p>For using an image,</p><p>1. Choose an image that embodies the style you want to replicate. This could be any image online or one you have saved locally.</p><p>2. If the image is already online (in your Midjourney gallery or elsewhere), simply copy its URL. If it’s stored locally on your computer or phone, upload it to Discord first:</p><ul><li>In the Midjourney bot, click the “+” button.</li><li>Select “Upload a file” and choose the image.</li><li>Once uploaded, right-click the image (or long press on mobile) and select “Copy link” to get the URL.</li></ul><h3>Applying the SREF</h3><p>Follow these steps:</p><ol><li>Type your text prompt in Midjourney, then add the — sref parameter followed by a space and the URL of your style reference image.</li><li>For example:</li></ol><pre>serene lakeside landscape --ar 16:9 --s 500 --style raw --sref https://s.mj.run/GjlKZCHxllY</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*iOyjD2AK0rvmujx7QRd36w@2x.jpeg" /></figure><p>Midjourney will analyze the SREF image and apply its style and aesthetic elements to the images it generates based on your prompt.</p><h3>Advanced SREF Usage</h3><ul><li>You can use multiple SREF images in a single prompt like this:</li></ul><pre>--sref urlA urlB urlC</pre><ul><li>Adjust the weight of each SREF with ::x, for example:</li></ul><pre>--sref urlA::2 urlB::3 urlC::5</pre><ul><li>Control the overall strength of the SREF with ` — sw` from 0–1000 (default 100)</li><li>Combine image prompts and SREF: `/imagine cat ninja ImagePrompt1 ImagePrompt2 — sref stylePrompt1 stylePrompt2`</li></ul><p>👏 Clap if you want more examples — I’ll add more in another article :)</p><h3>Exploring Random SREFs</h3><p>Use ` — sref random` to have Midjourney apply a random style reference. It will show the SREF number in the output.</p><p>Example:</p><pre>serene lakeside landscape --ar 16:9 --s 500 --style raw --sref random</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ynugiJpfw4VFnSm-391zQ@2x.jpeg" /></figure><ul><li>You can reuse this SREF number in future prompts to apply the same style consistently.</li></ul><pre>serene lakeside landscape  --ar 16:9  --s 500  --style raw  --sref 1873795636</pre><h3>Summary w/ More Resources</h3><p>The SREF feature in Midjourney is incredibly powerful for creating images with consistent style and aesthetics. Experiment with different reference images and settings to achieve your desired look!</p><p>🟢 <strong>Bonus tip: </strong>search X for — sref to find prompts and creators to follow.</p><p><a href="https://x.com/search?q=--sref&amp;src=typed_query">https://x.com/search?q=--sref</a></p><p>📒<strong>More resources:</strong></p><p>How To Find the SREF Code of Images in MidJourney — Dupple</p><p><a href="https://www.dupple.com/blog/how-to-find-the-sref-code-of-images-in-midjourney">How To Find the SREF Code of Images in MidJourney</a></p><p>A guide to SREF Style Reference in Midjourney</p><p><a href="https://weirdwonderfulai.art/resources/a-guide-to-sref-style-reference-in-midjourney/">A guide to SREF Style Reference in Midjourney</a></p><p>How to find Your Style with MidJourney’s SREF! — YouTube</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8T8U-EZbWDs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8T8U-EZbWDs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8T8U-EZbWDs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/66e93a3d3e7a921b5e592dcf4e356700/href">https://medium.com/media/66e93a3d3e7a921b5e592dcf4e356700/href</a></iframe><p>sref Codes: Enhance Your Ai Image Creations with Style References</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FeAxn_0gKcT0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeAxn_0gKcT0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FeAxn_0gKcT0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/35168385101eaef62721c29647b26804/href">https://medium.com/media/35168385101eaef62721c29647b26804/href</a></iframe><p>How to Use The Style Reference (-sref) Feature in Midjourney</p><p><a href="https://aichronicler.com/how-to-use-sref-style-reference-in-midjourney">How to Use The Style Reference (-sref) Feature in Midjourney for Consistent Style - AI Chronicler</a></p><p>Thanks for reading, clap if you found this useful and follow for more!</p><p>✌️</p><p>Matt</p><h4>A Message from AI Mind</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*5Wm7sOfTpe5DEbhg.gif" /></figure><p>Thanks for being a part of our community! Before you go:</p><ul><li>👏 Clap for the story and follow the author 👉</li><li>📰 View more content in the <a href="https://pub.aimind.so/">AI Mind Publication</a></li><li>🧠 Improve your <a href="https://www.aimind.so/prompt-generator?utm_source=pub&amp;utm_medium=message">AI prompts effortlessly and FREE</a></li><li><strong>🧰 Discover </strong><a href="https://www.aimind.so/?utm_source=pub&amp;utm_medium=message"><strong>Intuitive AI Tools</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebc3678fe470" width="1" height="1" alt=""><hr><p><a href="https://pub.aimind.so/transform-your-midjourney-prompts-with-srefs-a-step-by-step-tutorial-ebc3678fe470">Transform Your Midjourney Prompts with SREFs: A Step-by-Step Tutorial</a> was originally published in <a href="https://pub.aimind.so/">AI Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Better Way: Organizing your Apps in iOS]]></title>
            <link>https://medium.com/@mattmajewski/a-better-way-organizing-your-apps-in-ios-f539d1b12feb?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/f539d1b12feb</guid>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[organization]]></category>
            <category><![CDATA[organizing-tips]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Sat, 25 May 2024 18:12:22 GMT</pubDate>
            <atom:updated>2024-05-26T03:54:57.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*O_SPsAx-6nt1DwQqk-00PA@2x.jpeg" /></figure><p>There are several ways to organize iOS apps beyond manually moving them on the phone. Here are some of the best methods:</p><h3>1. Using the App Library</h3><p>The App Library, introduced in iOS 14, automatically organizes your apps into categories such as Suggestions, Recently Added, Utilities, and more. You can access the App Library by swiping left on your Home Screen until you reach the last page. This feature allows you to remove apps from the Home Screen while still keeping them accessible in the App Library.</p><h3>2. Creating Folders</h3><p>You can create folders to group similar apps together. To create a folder, touch and hold the Home Screen background until the apps begin to jiggle, then drag one app onto another. You can add more apps to the folder and rename it as needed.</p><h3>3. Moving Multiple Apps at Once</h3><p>iOS allows you to move multiple apps simultaneously. Enter jiggle mode by long-pressing an app, then start dragging one app and use another finger to tap additional apps you want to move. This creates a stack of apps that you can move to a new location or folder.</p><h3>4. Using Focus Mode for Custom Home Screens</h3><p>With iOS 15 and later, you can use Focus Mode to create custom Home Screens for different activities or moods. Each Focus Mode can have its own set of apps and widgets, helping you stay organized based on your current needs.</p><h3>5. Third-Party Apps</h3><p>There are third-party apps like “Clear Spaces” that allow you to create blank spaces on your Home Screen, giving you more flexibility in app placement. These apps can help you achieve a cleaner, more organized look.</p><h3>6. Settings for New Apps</h3><p>You can control where new apps are downloaded by going to Settings &gt; Home Screen. You can choose to add new apps to the Home Screen or only to the App Library, helping you maintain a clutter-free Home Screen.</p><h3>7. Alternative Organizational Methods</h3><ul><li>Verb-Based Folders: Organize apps by actions like “Watch,” “Play,” or “Learn.”</li><li>Color Coding: Arrange apps by their dominant colors for an aesthetically pleasing layout.</li><li>Alphabetical Order: Sort apps alphabetically either manually or by creating folders labeled with letters.</li><li>Ergonomic Placement: Position frequently used apps around the edges of the screen for easy access.</li><li>Themed Rows: Organize apps into rows based on themes or genres.</li></ul><p>These can help keep your iPhone organized without the tedious chore of moving each app individually.</p><p>✌️</p><p>Matt</p><p>Links to Articles:</p><p>[1] How to use iOS’s App Library to organize your apps — The Verge https://www.theverge.com/21443994/ios-14-app-library-iphone-organize-how-to</p><p>[2] How To Organize Apps on iPhone — Navi https://www.yournavi.com/posts/organize-my-iphone-apps</p><p>[3] How to organize your iPhone apps in seconds — Tom’s Guide https://www.tomsguide.com/how-to/organize-your-iphone-apps-in-seconds-with-this-hidden-iphone-trick</p><p>[4] How can I quickly organize apps on my iPhone home screen? https://discussions.apple.com/thread/254668831</p><p>[5] Is there a more efficient way to re-order or organise apps on the iOS … https://apple.stackexchange.com/questions/463890/is-there-a-more-efficient-way-to-re-order-or-organise-apps-on-the-ios-home-scree</p><p>[6] This Hidden Trick Can Quickly Clean Up Your Cluttered iPhone … https://www.cnet.com/tech/mobile/this-hidden-trick-can-quickly-clean-up-your-cluttered-iphone-home-screen/</p><p>[7] Organize the Home Screen and App Library on your iPhone https://support.apple.com/en-us/108324</p><p>[8] Organize your apps in folders on iPhone — Apple Support https://support.apple.com/guide/iphone/organize-your-apps-in-folders-iph822ece7dd/ios</p><p>[9] How to Use the App Library to Organize Your iPhone or iPad Home … https://www.pcmag.com/how-to/how-to-organize-your-home-screen-with-ios-14s-app-library</p><p>[10] 20 Best Organization Apps &amp; Software in 2024 — Friday.app https://friday.app/p/organization-apps</p><p>[11] Apple, please, please, please make it easier to rearrange iPhone apps https://www.reddit.com/r/apple/comments/ter1of/commentary_apple_please_please_please_make_it/</p><p>[12] The 6 best to-do list apps for iPhone — Zapier https://zapier.com/blog/best-iphone-ipad-to-do-list-apps/</p><p>[13] Organize Your Ideas : App Store Story — Apple https://apps.apple.com/us/story/id1467791038</p><p>[14] 10 Best Organization Apps to Try in 2024 — Plaky https://plaky.com/blog/best-organization-apps/</p><p>[15] 7 AESTHETIC Ways To Organize Your iPhone Apps &amp; Home Screen! https://www.youtube.com/watch?v=w_UBMyvbKlg</p><p>[16] 15 Best Organization Apps to Boost Your Productivity — LifeHack https://www.lifehack.org/articles/technology/10-apps-for-professionals-easily-stay-organized.html</p><p>[17] Just got my first Iphone, is there a way to make the apps stay on the … https://www.reddit.com/r/iphone/comments/xos021/just_got_my_first_iphone_is_there_a_way_to_make/</p><p>[18] Best App To Handle EVERYTHING : r/productivity — Reddit https://www.reddit.com/r/productivity/comments/xpr5fb/best_app_to_handle_everything/</p><p>[19] Move App Icons ANYWHERE on iPhone Home Screen — YouTube https://www.youtube.com/watch?v=5E5FxR88cnI</p><p>[20] Evernote — Notes Organizer on the App Store — Apple https://apps.apple.com/us/app/evernote-notes-organizer/id281796108</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f539d1b12feb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Pika Labs: The Ultimate Guide to Creating Amazing Video Clips]]></title>
            <link>https://medium.com/@mattmajewski/exploring-pika-labs-the-ultimate-guide-to-creating-amazing-video-clips-cd947e6eee1f?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd947e6eee1f</guid>
            <category><![CDATA[ai-video-generation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[pika]]></category>
            <category><![CDATA[video-production]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Thu, 23 May 2024 14:24:14 GMT</pubDate>
            <atom:updated>2024-05-23T14:24:14.945Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advanced Pika Video Prompts (with Examples)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*dG_IWCOkfxLhIoTTr2sicQ@2x.jpeg" /></figure><p>Pika Labs has released a Discord bot to generate and interact with video clips. With its prompt-based video creation system, you can turn simple images or text descriptions into short animated clips. It’s not quite as smooth and realistic as the demos we’ve been seeing lately from OpenAI Sora. However, it offers a lot in terms of customization to experiment with different settings and create effects and short animations.</p><p>The optional custom parameters are what makes it powerful. Let’s dive into those.</p><p><a href="https://pika.art/">https://pika.art/</a></p><h3>Optional Parameters</h3><p>Here’s the list of optional parameters to finetune your videos.</p><p><strong>Camera Control 🆕</strong></p><p>With the `-camera` parameter, you can direct camera movements. Choose from zoom, pan, or rotate. For example:</p><pre>/create prompt: This is an example of a prompt -camera zoom in</pre><p><strong>Frames Per Second</strong></p><p>Set the smoothness of your video with the `-fps` parameter. You can choose a number between 8–24. The default setting is 24. For example:</p><pre>/create prompt: This is an example of a prompt -fps 16</pre><p><strong>Motion Strength</strong></p><p>Adjust how much movement is in your video using the `-motion` parameter. The default setting is 1, and you can select a value from 0 to 4.</p><pre>/create prompt: This is an example of a prompt -motion 3</pre><p><strong>Guidance Scale</strong></p><p>The `-gs` parameter helps adjust how closely your video will follow your text prompt. Choose a value between 8–24, with 12 as the default.</p><pre>/create prompt: This is an example of a prompt -gs 16</pre><p><strong>Negative Prompting</strong></p><p>The `-neg` parameter is used to exclude specific elements you don’t want in your video. You can specify words to avoid.</p><pre>/create prompt: This is an example of a prompt -neg words letters signs</pre><p><strong>Aspect Ratio</strong></p><p>With the `-ar` parameter, you can set the width:height ratio of your video, with options like 16:9, 9:16, 1:1, and 4:5.</p><pre>/create prompt: This is an example of a prompt -ar 16:9</pre><p><strong>Seed</strong></p><p>For consistent generation, use the `-seed` parameter. Note that this guarantees consistency only if both the prompt and negative prompt are unchanged.</p><pre>/create prompt: This is an example of a prompt -seed 123456789</pre><p>Bonus:</p><p>Try out prompt words like “Timelapse” to affect speed artificially to get creative results.</p><p>The optional parameters in Pika Labs offer a robust set of tools to perfect your video creations. With these at your disposal, you have more control of your videos, and can open up many more possibilities.</p><p>✌️</p><p>Matt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd947e6eee1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Data to Insights in an Afternoon: How I Leveraged AI to Analyze HubSpot Webhook Data]]></title>
            <link>https://medium.com/@mattmajewski/from-data-to-insights-in-an-afternoon-how-i-leveraged-ai-to-analyze-hubspot-webhook-data-0e9ff17f8528?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e9ff17f8528</guid>
            <category><![CDATA[webhooks]]></category>
            <category><![CDATA[hubspot]]></category>
            <category><![CDATA[hubspot-integration]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Fri, 05 Apr 2024 21:14:44 GMT</pubDate>
            <atom:updated>2024-04-05T21:14:44.712Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KVhs5o4rIvlBANlT" /></figure><p>It’s Friday, and you get some Slack integration alerts that you got a spike of HubSpot integration data in your app. Need to deal with this quickly, but how can we analyze this quickly? How can we see which portals, customers, objects, and fields are causing the most API traffic?</p><h3>Background on Webhooks</h3><p>👋 Skip ahead if you want to see the main content, but I wanted to give some context too.</p><p>Webhooks are pivotal in creating interactive and real-time applications. They offer a mechanism for apps to receive real-time data from other platforms, making them indispensable in modern web development. HubSpot, a leading CRM platform, allows developers to harness the power of webhooks through its comprehensive developer accounts. In this guide, we’ll dive into how to analyze HubSpot webhook logs for your application using the export logs feature available in a HubSpot developer account.</p><h3>Setting Up HubSpot Webhooks</h3><p>After setting up your application, the next step is to configure webhooks.</p><p>1. <strong>Webhook Subscriptions:</strong> Within your app settings, locate the ‘Webhooks’ section. Here, you can subscribe to various events on which you wish your app to receive data.<br>2. <strong>Test Your Setup:</strong> Ensure your webhook URL (the endpoint in your app where data is received) is correctly configured and can handle incoming webhook data.</p><h3>Exporting Webhook Logs</h3><p>HubSpot provides a feature to export logs of webhook activity, which is essential for analyzing the data your application receives.</p><p>1. <strong>Navigate to Webhook Logs:</strong> Within your app’s ‘Webhooks’ section, find the option to view webhook logs. This page displays a history of webhook events, including timestamps, status codes, and payloads.<br>2. <strong>Export Logs:</strong> Look for an option to export these logs. This functionality allows you to download a file containing the webhook activity over a specified period. It will take a while if you have a lot of events, and will email the results.</p><h3>Analyzing the Logs</h3><p><strong>Normally, I’d just open the file with Excel or Google Sheets — but the file was too big (&gt;1.5GB with millions of rows).</strong></p><p>So I was left with what I know — a database.</p><p>I asked ChatGPT to create a table for me based on the headings in the CSV.</p><p>This will match your logs from HubSpot too — so feel free to use this.</p><pre>CREATE TABLE hubspotlogs (<br> id UUID PRIMARY KEY,<br>    app_id INT,<br>    request_execution_timestamp TIMESTAMP,<br>    request_method VARCHAR(10),<br>    response_status_code INT,<br>    portal_id INT,<br>    response_received_timestamp TIMESTAMP,<br>    duration INT,<br>    error_type VARCHAR(255),<br>    request_url TEXT,<br>    ready_at TIMESTAMP,<br>    batch_id VARCHAR(255),<br>    attempt_id VARCHAR(255),<br>    attempt_number INT,<br>    total_attempts INT,<br>    is_final_attempt BOOLEAN,<br>    subscription_id VARCHAR(255),<br>    subscription_type VARCHAR(255),<br>    subscription_sub_type VARCHAR(255),<br>    subscription_event_id VARCHAR(255),<br>    occurred_at TIMESTAMP<br>);</pre><p>Then, I imported the CSV with the matched headers 💥</p><p>Perfect. Now I can run any queries I want, since ChatGPT had the history, I could ask it to generate a series of queries to get what we need:</p><pre><br><br>-- Number of calls by portal_id<br>SELECT portal_id, COUNT(*) AS calls_count<br>FROM hubspotlogs<br>GROUP BY portal_id;<br><br>-- Number of calls by portal_id, subscription_type, and subscription_sub_type<br>SELECT portal_id, subscription_type, subscription_sub_type, COUNT(*) AS calls_count<br>FROM hubspotlogs<br>GROUP BY portal_id, subscription_type, subscription_sub_type;<br><br>-- Number of calls per day<br>SELECT DATE(request_execution_timestamp) AS day, COUNT(*) AS calls_count<br>FROM hubspotlogs<br>GROUP BY day<br>ORDER BY day desc;<br><br>-- Number of calls by portal_id, subscription_type, and subscription_sub_type in the last day<br>SELECT portal_id, subscription_type, subscription_sub_type, COUNT(*) AS calls_count<br>FROM hubspotlogs<br>WHERE request_execution_timestamp &gt;= NOW() - INTERVAL &#39;1 DAY&#39;<br>GROUP BY portal_id, subscription_type, subscription_sub_type;<br><br>-- Total of subscription_sub_type &quot;web_technologies&quot; in the last day or any sub type<br>SELECT COUNT(*) AS total_calls<br>FROM hubspotlogs<br>WHERE subscription_sub_type = &#39;web_technologies&#39;<br>AND request_execution_timestamp &gt;= NOW() - INTERVAL &#39;1 DAY&#39;;</pre><p>We were able to identify which calls and which portals, and were able to map out the averages.</p><h3>Wrapping up</h3><p>Compared to doing this manually, using AI and Postgres was approximately <strong>5x faster</strong>. (And this savings aallowed me to write this weekly article too!)</p><p>Sometimes the simplest solution is the best, and in this case I knew exactly what I needed, and how AI could help.</p><p>Obviously if the dataset is smaller, you can do this all in Excel, or even give AI your data (securely and privately!) using copilot/Google AI if it’s in your workspace to do some analysis. In this case because of the <strong>large dataset</strong>, I needed a more technical solution, but GPT sped this process up significantly.</p><p>Analyzing webhook logs is a critical step in developing robust and efficient applications that interact with HubSpot. By leveraging the export logs feature of your HubSpot developer account, you gain valuable insights into how your app processes real-time data. This knowledge not only helps in troubleshooting and optimizing your app but also in creating a more seamless and effective user experience.</p><p>Remember, the key to effective log analysis lies in understanding the data your application deals with and constantly looking for ways to improve its handling of that data. Happy analyzing and here’s to more happy Fridays!</p><p>✌️</p><p>Matt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e9ff17f8528" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Custom Character Stickers on your iPhone in iOS 17]]></title>
            <link>https://medium.com/@mattmajewski/create-custom-character-stickers-on-your-iphone-in-ios-17-b8601c824ca6?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8601c824ca6</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[iphone-tips]]></category>
            <category><![CDATA[creative]]></category>
            <category><![CDATA[stickers]]></category>
            <category><![CDATA[iphone]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Tue, 26 Sep 2023 04:36:52 GMT</pubDate>
            <atom:updated>2023-09-27T23:41:57.232Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*5OMstmQI059qB3JstDQZ7g@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*tG-rmglmmOVYZnwL6GqzNA@2x.jpeg" /></figure><p>Creating Stickers from a Photo in iOS 17 is super easy. By using AI photo generators and save to your photos, it makes it really easy to create nice looking custom stickers.</p><p>Create a sticker with just an image:</p><ul><li>Long press a photo with a subject/person/character/object in the Photos app</li><li>Click Create sticker</li><li>Add a style (optional)</li></ul><p>Check out a demo:</p><p>https://www.youtube.com/shorts/Kh_AgQmBW-I</p><p>–</p><p>👏 Clap if you didn’t know this, and follow for more!</p><p>✌️</p><p>Matt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8601c824ca6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting your AI Python Environments Organized (& a Cheat Sheet)]]></title>
            <link>https://medium.com/@mattmajewski/getting-your-ai-python-environments-organized-a-cheat-sheet-36cbd7b52ae9?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/36cbd7b52ae9</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[hugging-face]]></category>
            <category><![CDATA[aritificial-intelligence]]></category>
            <category><![CDATA[pyenv]]></category>
            <category><![CDATA[local-environment]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Tue, 15 Aug 2023 23:34:59 GMT</pubDate>
            <atom:updated>2023-08-17T04:28:30.295Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2mH7Q_KVOTPc-LvD.png" /></figure><p>If you’re experimenting with a ton of Python AI projects, you probably have a ton of folders and python libraries installed. It can be chaotic.</p><p>Isolating environments is a best practice (and a requirement in most organizations) for development and production software application environments. It’s also a great idea when you’re learning new platforms, testing AI projects, and installing.</p><blockquote>For Python projects, I use `pyenv`. If you’re not familiar with it — pyenv makes it extremely easy to spin up new python environments with different versions. There’s others like it but I like the simplicity and ease-of-use.</blockquote><p>For some, this may be second-nature, but for those of you that need to isolate your local environments, here’s the best way to do it (IMHO).</p><ul><li>Create a projects folder</li><li>Clone repos in individual folders</li><li>Use pyenv to create separate environments with the necessary python version for each project</li><li>Create a shortcut / bash command to activate each environment (ex. `<strong>usemyapp</strong>` to activate virtual environment. `<strong>startmyapp</strong>` to start it.</li><li>If you’re ambitious, you can map these to shortcuts / keys / get a separate input device 💥</li></ul><p>Here’s the <strong>pyenv</strong> cheat sheet:</p><h3>Pyenv Cheat Sheet (Mac OS X)</h3><h3>Install Pyenv</h3><pre># Install pyenv<br>git clone https://github.com/pyenv/pyenv.git ~/.pyenv<br><br># Add pyenv to PATH<br>echo &#39;export PYENV_ROOT=&quot;$HOME/.pyenv&quot;&#39; &gt;&gt; ~/.zprofile<br>echo &#39;export PATH=&quot;$PYENV_ROOT/bin:$PATH&quot;&#39; &gt;&gt; ~/.zprofile<br><br># Add pyenv init to shell<br>echo -e &#39;if command -v pyenv 1&gt;/dev/null 2&gt;&amp;1; then\n  eval &quot;$(pyenv init -)&quot;\nfi&#39; &gt;&gt; ~/.zprofile<br><br># Reload shell<br>source ~/.zprofile</pre><h3>Basic Commands</h3><pre># List available Python versions<br>pyenv versions<br><br># Install a Python version<br>pyenv install 3.7.0<br><br># Set local Python version<br>pyenv local 3.7.0<br><br># Set global Python version<br>pyenv global 3.7.0<br><br># Unset local Python version<br>pyenv local --unset</pre><h3>Virtual Environments</h3><pre># Create a new virtual environment<br>pyenv virtualenv 3.7.0 my-virtual-env-3.7.0<br><br># Activate virtual environment<br>pyenv activate my-virtual-env-3.7.0<br><br># Deactivate virtual environment<br>pyenv deactivate<br><br># Delete virtual environment<br>pyenv uninstall my-virtual-env-3.7.0</pre><h3>Managing Packages</h3><pre># Install a package<br>pip install &lt;package&gt;<br><br># Uninstall a package <br>pip uninstall &lt;package&gt;<br><br># List installed packages<br>pip list<br><br># Export installed packages<br>pip freeze &gt; requirements.txt<br><br># Install packages from file<br>pip install -r requirements.txt</pre><h3>Example</h3><p>Let’s say you found a new repo that you want to try out, here’s how you’d use all of the above to do it.</p><p>Here is the pyenv example workflow when cloning a Python repository:</p><h4>Using pyenv with a new Python repository</h4><ol><li>Clone the repository to your local machine:</li></ol><pre>git clone https://github.com/example/ai-repo.git cd ai-repo</pre><p>2. Check the Python version specified in the repository (if needed):</p><pre>cat runtime.txt # This shows Python 3.7.0</pre><p>3. Install the required Python version using pyenv:</p><pre>pyenv install 3.7.0</pre><p>4. Create a new virtual environment for this project:</p><pre>pyenv virtualenv 3.7.0 ai-repo-env</pre><p>5. Activate the virtual environment:</p><pre>pyenv activate ai-repo-env</pre><p>6. Install the required packages:</p><pre>pip install -r requirements.txt</pre><p>7. Now you can run the Python code in this environment:</p><pre>python app.py # or whatever command, service, script your specific app uses</pre><p>When done, deactivate the virtual environment:</p><pre><br>pyenv deactivate<br></pre><p>This will switch back to your global Python version.</p><p>Using <strong>pyenv</strong> and virtual environments helps isolate project dependencies when working with Python repositories.</p><p>Give me a 👏 and follow me if you liked this article.</p><p>✌️</p><p>Matt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36cbd7b52ae9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Midjourney: My Opinionated Setup Guide]]></title>
            <link>https://pub.aimind.so/optimizing-midjourney-my-opinionated-setup-guide-776599250849?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/776599250849</guid>
            <category><![CDATA[discord]]></category>
            <category><![CDATA[midjourney-how-to]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[midjourney]]></category>
            <category><![CDATA[discord-bot]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Wed, 02 Aug 2023 05:43:23 GMT</pubDate>
            <atom:updated>2023-08-16T14:24:18.770Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8YG1PZzBApZa6NcX44cNw.png" /></figure><h3>My Preferred Setup for Using Midjourney AI</h3><p><a href="https://midjourney.com/">Midjourney</a> is an impressive AI image generation system that can create stunning visuals, and just about any kind of image you can <strong>/imagine</strong>. Here are my personal opinions on the ideal setup and tips for using Midjourney effectively so far after a few months of experience and discovery:</p><p><strong>Emoji-filled summary of the main points, before you read on:</strong></p><p>🖥️ Use a laptop/desktop for best pro experience (although I use my phone all the time)</p><p>🤝 Join and participate in the Discord community channels</p><p>🔍 Use the Discord search to learn from others’ prompts</p><p>🔨 Set up your own MJ Discord server</p><p>🧰 Add tools like Inswapper and TraceJourney</p><p>⬇️ Auto-download your images with a bot</p><p>📚 Reference the docs and #prompt-faqs</p><p>👋 Join the office hours when you can</p><p>⬆️ Upscale for hi-res images, and Vectorize for SVGs</p><h3>Use a Laptop/Desktop for the Best Experience</h3><p>While Midjourney , I find the desktop experience far superior. The Midjourney website and Discord interface are optimized for large screens, allowing you to better view, organize and manage a high volume of generated images. The extra screen real estate is especially helpful when doing image prompt fine-tuning. And copying/pasting is just faster, especially if you have a clipboard tool.</p><p>And you can use a lot more tools and auto-download with a bot.</p><blockquote><strong>Side note: ❤️ </strong>What I love is I can generate images on my phone, and they’re automatically “synced” as long as I have my discord running on my Macbook.</blockquote><h3>Join the Official Discord and Set Up Your Own Server</h3><p>Discord is currently the only way to use Midjourney aside from a small number of beta testers on Twitter, (I mean,<strong>𝕏)</strong>. Discord is actually a powerful platform for Midjourney with dedicated servers, channels for sharing techniques, and a passionate community. Once signed up, be sure to connect your Discord account to Midjourney via OAuth.</p><p>I also recommend setting up your own Discord server just for Midjourney. This allows you to organize images into different channels based on themes, projects or creative briefs. You can also add roles and permissions to control access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*Ams6ty2Ols7ap7-ayVPwlw.png" /><figcaption>Click Midjourney Bot, and Add to Server</figcaption></figure><h3>Use Third-Party Tools</h3><p>Services like Inswapper and TraceJourney enhance the Midjourney experience.</p><h4><strong>InsightFaceSwap aka Inswapper</strong></h4><p>It’s a Discord bot based on <a href="https://insightface.ai/">https://insightface.ai/</a> that lets you seamlessly face-swap a generated image or even multiple faces in a grid. It was free until recently — now there are paid plans.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*dWs8JED_2CtJx9Xbo0uOOw.png" /><figcaption>Right click (or long press on mobile) an image, click Apps &gt; INS</figcaption></figure><h4><strong>TraceJourney</strong></h4><p>The <a href="https://www.tracejourney.com/">Tracejourney</a> bot (paid, but worth it, in my opinion) uses AI to upscale Midjourney outputs to stunning detail and resolution.</p><p>After installing the TraceJourney bot, every upscaled image will have these options automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhBUIYQis4SYumczqJo54g.png" /></figure><h4>Auto-Downloader Bot</h4><p>Bots like <strong>Midjourney-Downloader</strong> can automatically save Midjourney Images to your computer. This is so convenient, saves so much time, AND let’s you generate images on your phone, and essentially auto-syncs your creations.</p><p><a href="https://github.com/topics/midjourney-download">https://github.com/topics/midjourney-download</a> This is a more advanced set up, but the QoL is 🔥.</p><h3>Take Advantage of the Community Prompts</h3><p>Look at prompt examples from experienced users in the Midjourney community on Discord and use the 🔍 <strong>Search</strong>. Although many will use their own server, there are still a lot of high quality and professional prompts in the public channels.</p><p>You’ll be added to super-user clubs (ex. 1000-club, 2500-club) as you reach a certain level. This doesn’t necessarily mean the quality of prompts will be better, but it does mean that the members are experienced!</p><h3>Yes. There’s Documentation. Yes. You should read it.</h3><p>I hate to say this, but read the docs. I see people ask questions all the time that can be answered really easily by going to the docs. (or set up a Chatbot/GPT to ask the docs but that’s for another time)</p><ul><li><a href="https://docs.midjourney.com/">Official Documentation</a></li><li>Go to <strong>#prompt-faqs </strong>on Midjourney’s Discord (a hoard of techniques and prompt tips)</li></ul><h3>Office Hours</h3><p>Join the office hours when you can — look for the announcements in Discord.</p><h3>Use Upscaling Generously</h3><p>Midjourney images can look pixelated at smaller sizes. When I first started, I thought my designs looked flawless, but then I saw it on a TV and on my external monitor, and you could notice the degradation. Also if you’re planning to use for print, use an AI upscaler, and use Tracejourney to vectorize it (only really works for specialized prompts for vector-like SVG images (not good for photos). Make sure to use the upscaling feature in your image generation prompts to get clean, high-resolution results. I find “ — upbeta” can work better in some cases than the regular upscaling for more realistic details.</p><ul><li>Use `— upbeta`</li><li>Use `— q 2` by default</li><li>Use Tracejourney, click upscale, and you can upscale 2x or 4x</li></ul><p>I’ll be adding more tutorials if I get some 👏 on this.</p><blockquote><strong>Bonus tip: </strong>subscribe to the #general and #announcements channels on your own Discord server to get status updates, etc. this is helpful when the servers are having issues, bc you’ll see it in your server right away.</blockquote><p>✌️Matt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=776599250849" width="1" height="1" alt=""><hr><p><a href="https://pub.aimind.so/optimizing-midjourney-my-opinionated-setup-guide-776599250849">Optimizing Midjourney: My Opinionated Setup Guide</a> was originally published in <a href="https://pub.aimind.so/">AI Mind</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Mystery of React’s useEffect: A Deep Dive into the Hook No One Truly Understands]]></title>
            <link>https://medium.com/@mattmajewski/the-mystery-of-reacts-useeffect-a-deep-dive-into-the-hook-no-one-truly-understands-3505dd5eb0d6?source=rss-e551bb7e1b96------2</link>
            <guid isPermaLink="false">https://medium.com/p/3505dd5eb0d6</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Matt Majewski]]></dc:creator>
            <pubDate>Fri, 02 Jun 2023 23:45:15 GMT</pubDate>
            <atom:updated>2023-06-02T23:54:11.604Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OxTwdAn7T8IGQu0A.png" /><figcaption><strong>MidJourney prompt: react js — ar 7:3 — q 2 — v 5.1</strong></figcaption></figure><p>Let’s face it, in the vast universe of React, there’s one hook that seems to baffle even the most seasoned developers: `useEffect`. No one knows how it works. Okay, maybe not “no one”, but it’s certainly got a reputation for being like that puzzle in Glass Onion.</p><pre>import React, { useState, useEffect } from &#39;react&#39;;<br><br>function Example() {<br>  const [count, setCount] = useState(0);<br><br>  useEffect(() =&gt; {<br>    document.title = `You clicked ${count} times`;<br><br>    return function cleanup() {<br>      document.title = `React App`;<br>    };<br>  }, [count]);<br><br>  return (<br>    &lt;div&gt;<br>      &lt;p&gt;You clicked {count} times&lt;/p&gt;<br>      &lt;button onClick={() =&gt; setCount(count + 1)}&gt;<br>        Click me<br>      &lt;/button&gt;<br>    &lt;/div&gt;<br>  );<br>}<br></pre><p>In this example, `useEffect` is used to perform a side effect (updating the document title) in our function component. It runs after the render is committed to the screen, and it can also return a cleanup function to manage any necessary cleanup before the next run or on component unmount.</p><p>Here’s a diagram to help visualize how `useEffect` works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*TE3VgIAXRwIoGV4rF_uCJA@2x.jpeg" /></figure><ol><li>When the component mounts, the function passed to `useEffect` runs.</li><li>This function executes the side effect (in this case, updating the document title).</li><li>The function may also return a cleanup function.</li><li>When the component unmounts, or before the next run of the `useEffect` function due to a change in dependencies, the cleanup function runs.</li></ol><p>So now you know. Puzzle unlocked.</p><blockquote>“Any questions?“ — David S. Pumpkins</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3505dd5eb0d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>