Building a Document Q&A System with Google Gemini / / No Comments Document summarization is a powerful and pretty darn useful feature of generative AI, but a proper "question and answer" system can really enable users to interact with a document. This is why you see various document viewing apps, like Acrobat, adding these features to their programs. I thought I’d take a look at building such a system via a simple web app to see how difficult it would be, and honestly, it wasn’t that bad. Having this in your own web app, versus an external vendor, gives you more control over the experience as well. Here’s what I built. The Stack The web app lets you drag and drop a PDF into the page, it then renders a preview of the PDF on the left... more → Posted in: JavaScript Tagged with: building, Document, Gemini, Google, system
The Walk Management System / / No Comments 🥾 The Walk Management System: I’ve decided to walk the length of the Jubilee Line on the London Underground. But before setting off, I figured I needed a WMS (Walk Management System) to help plan and document each stage of this epic hike.With a little help from ChatGPT and MapLibre GL, I’ve built a lightweight web app that lets me create, edit, and view walking routes – complete with Maps Mania… more → Posted in: Interactive Maps Tagged with: Management, system, Walk
Building a Resume Review and Revise System with Generative AI and Flask / / No Comments The last two sessions of my live stream, Code Break, have been really interesting, at least to me anyway. I’ve been discussing generative AI with Google Gemini and building a relatively simple example while doing so – a resume review and revisement system. This started off pretty simply with a Python script and then iterated into a proper Flask app. I thought it would be fun to document the code here a bit and share it with those who couldn’t make the streams. If you would rather just watch the recordings, I’ve got them embedded at the bottom. Feel free to skip to that. Step One – The Script For my first iteration, I built a simple Python script that: Uploaded the... more → Posted in: JavaScript Tagged with: building, Flask, Generative, Resume, review, Revise, system
Detect System Theme Preference Change Using JavaScript / / No Comments JavaScript and CSS allow users to detect the user theme preference with CSS’ prefers-color-scheme media query. It’s standard these days to use that preference to show the dark or light theme on a given website. But what if the user changes their preference while using your app? To detect a system theme preference change using JavaScript, you need to combine matchMedia, prefers-color-scheme, and an event listener: window.matchMedia('(prefers-color-scheme: dark)') .addEventListener('change',({ matches }) ={ if (matches) { console.log("change to dark mode!") } else { console.log("change to light mode!") } }) The change event of the matchMedia API notifies you... more → Posted in: JavaScript Tagged with: Change, Detect, JavaScript, Preference, system, theme, using
China trials ‘Deadbeat Map’ app to monitor citizens’ debts as part of social credit score system – The Telegraph / / No Comments China trials ‘Deadbeat Map’ app to monitor citizens’ debts as part of social credit score system The Telegraph China Focus: Chinese map app holds debtors in check – Xinhua | English.news.cn Xinhua Is someone in debt nearby? Court uses chat app to alert people South China Morning Post China tests opening up social credit scores to social media platform WeChat with debt map ABC News View full coverage on Google News “map app” – Google News… more → Posted in: Interactive Maps Tagged with: 'Deadbeat, China, citizens', credit', debts, Map', Monitor, part, score, Social, system, Telegraph, trials
App turns GPS-enabled smartphones into high-tech map system – The Spokesman Review (registration) / / No Comments App turns GPS-enabled smartphones into high-tech map systemThe Spokesman Review (registration)Click here to comment on this story ». Most recent Outdoors. new Ammi Midstokke: How suffering equates to glory, and other sports lies · Landers' words of wisdom: leave wildlife babies be · App turns GPS-enabled smartphones into high-tech map system … map app – Google News… more → Posted in: Interactive Maps Tagged with: GPSenabled, hightech, into, registration, review, smartphones, Spokesman, system, turns