How to Retrieve WiFi Password on Windows / / No Comments Remembering the WiFi password when on a guest network is never easy. Even worse is when it’s no longer posted and someone else is asking you for it. Luckily there’s a built in Windows command to recover the password of a given WiFi network. The Shell Code Open cmd and execute the following command: netsh wlan show profile name="David Walsh's Network" key=clear The result of the command, assuming the network is found, is a long text output with a variety of information about the network. To get the see the password for the network, look under the “Security settings” heading which will look like this: Security settings ----------------- Authentication :... more → Posted in: JavaScript Tagged with: Password, Retrieve, WiFi, Windows
ColdFusion’s CFOAUTH Tag / / No Comments This will be my third ColdFusion post in the past year. I’m not saying I’m going to continue the trend, but as I find interesting use cases, I’m going to share. Today, that involves the <cfoauth> tag that I recently had a chance to play with. About two weeks ago, an old client of mine reached out asking for help adding an OAuth flow to their CF app. I’ve covered CF and OAuth in a few posts from ten-plus years ago (part one, covering Facebook, part two, covering LinkedIn, and part three, covering Google). That code demonstrated the basics of using OAuth, which entailed: Creating your application on the platform you’ll be authenticating again, which gives you... more → Posted in: JavaScript Tagged with: CFOAUTH, ColdFusion's
Upcoming Generative AI Talk by… Me! / / No Comments I don’t normally blog about upcoming conference talks, but I’m really excited to announce my first talk on generative AI, specifically Google’s Gemini will be in a few weeks at the F/ND Tech Conference. This is a free, online conference covering a wide range of topics. My talk, "Adding Generative AI to your Workflow with Google Gemini", will absolutely be appropriate for beginners (as that’s what I am) and hopefully provide a gentle introduction to working with Gen AI. Now, one point of warning – this is a Europe-based event so my talk will be… 5:45 AM on a Saturday morning, but admit it, wouldn’t you love to wake up early on a Saturday to hear... more → Posted in: JavaScript Tagged with: by..., Generative, Talk, Upcoming
Building a Chat Integration with Google Gemini / / No Comments It’s been on my queue to investigate how to use Generative AI in a ‘chat’ interface versus "one prompt and answer" mode for some time and today I finally got a chance to check it out. I’ll share my thoughts below, but once again I want to thank Allen Firstenberg for his help while I worked through some issues. As always, take what I’m sharing as the opinion of a developer still very new to this space. Any mistakes are my fault! What is GenAI chat? # Specifically, what is chat when it comes to generative AI? Nothing. Seriously. All ‘chat’ is taking your initial prompt, getting the result, then taking your next prompt and appending it. So for... more → Posted in: JavaScript Tagged with: building, Chat, Gemini, Google, integration
Super Useful NPM Module – Open / / No Comments Forgive the samewhat lame title, and this will be a quick little post, but I’ve recently been using such an incredibly helpful npm module I wanted to share it with others. open by Sindre Sorhus (you must click that link and look at their incredible GitHub profile) is a simple, but powerful utility that… opens things. Ok, that sounds rather obvious, but what it means in practice is that your Node code can open a resource on your computer with the associated app. (It can also open up an app by itself if you want.) I can’t tell you how many scripts I’ve written that generate file-based results, or URL-hosted results, that I then double-click to open. This one little utility... more → Posted in: JavaScript Tagged with: Module, open, Super, useful
How to Fix: Windows WASD Keys Reversed with Arrow Keys / / No Comments This past weekend I had the opportunity to be what every father wants, if only for a moment: the “cool dad”. My wife was out of town and my youngest son wanted to play PUBG. I caved in, taught him the basic FPS key binds, and he was having a great time. While he was fragging out, he pressed a bunch of random keys and ended up changing movement buttons. Suddenly the traditional WASD movement keys were useless and the arrow keys triggered movement. Of course, this was a degradation of player experience. After struggling to figure out what my son did, I found the solution. To restore the WASD keys as movement keys, press the FN+W key combination. You’ll switch back to... more → Posted in: JavaScript Tagged with: Arrow, Keys, Reversed, WASD, Windows
Automating Movie Recommendations with Generative AI and Pipedream / / No Comments For the past few months or so, I’ve started tracking my movie watching with Letterboxd. I’m not doing a lot of reviews, mostly just logging, but I find it neat to look back and remind myself of what I’ve watched recently. You can see my profile if you’re curious, or check out my "Now" page as well. I thought it might be interesting to see if I could use my Letterboxd data along with Google Gemini as a way to suggest the next movie I should watch. I was able to build a quick workflow using the incredible Pipedream in a few minutes. Let me share with you how I did that. What does it do? # At a high level, my workflow does the following: It runs, automatically,... more → Posted in: JavaScript Tagged with: Automating, Generative, Movie, Pipedream, Recommendations
JSON Results with Google Gemini Generative AI API Calls / / No Comments Forgive the somewhat alliterative title there, but today’s post covers something that’s been on my mind since I started playing with Google Gemini, specifically, how to get the results of your API calls in JSON. To be clear, the REST API returns a result in JSON, but I’m talking about the content of the result itself. Before I continue, a quick shot out to Allen Firstenberg who has been helping me off and on with Google Gemini stuff. Anything I get wrong though is entirely my fault. 😜 Ok, so before I go on, let’s look at a typical result. Take a prompt like so: "What is the nature of light". Pass this to Gemini via the API, and the result you get, once you... more → Posted in: JavaScript Tagged with: Calls, Gemini, Generative, Google, JSON, results