tail -f thoughts.txt

Jacob Windle

Sniff AI Test Creation: Adding Test Models

With the admin views in place, and the placeholder admin view showing, I need models so that I can begin building out the CRUD views. My models are going to be simple to start, because it’s more important to get working than to be perfect. You should strive to be better along the way, and cover your code with tests, but I want to get going and start building out the test creation tools.

Sniff AI Test Creation: Creating the Admin Layout

Now that we have our login flow ready, we are prime to create the layout for the application page. The layout will give us admin specific navigation and flow. What I’ve envisioned for this, is a left-rail menu that contains the admin options, and a main content space that will display whatever we are working on. For this first pass, this will be test creation. So, getting started on the admin flow, we need to check into some documentation on layouts and rendering.

Sniff AI Test Creation: Testing Login Flow

Today I’m testing the login flow manually of my application. This means that I’ll try to navigate in the browser to my admin/index page and see if I can trigger the login redirect. If I can, and it doesn’t redirect the way that I expect, then we have a problem Houston. I tested it, and here’s what happened: 15:09:37 web.1 | Started POST "/login" for ::1 at 2024-05-21 15:09:37 -0400 15:09:37 web.

Sniff AI Test Creation: Admin Area Scoped Access

Last time, we worked on getting the login redirect to work. I for some reason wrote at the end of my last post that all was not right with the world and I needed to fix some additional bugs. Turns out, not the case. Get to my computer, run the tests, and what happens? Everything works perfectly. So, onto the next thing. Why am I scoping the admin area? Sniff.AI will host tests, and from those hosted tests will deploy AI detection tools on the tests themselves to really drive the product.

Sniff AI Test Creation: Redirect to Login

In the last devlog, I worked through adding a sessions controller, and a new method to log users in. What I want now is the ability to redirect after login to the desired page. To do that, I just need a few things. I need to store the target URL as a param. SessionsController needs to read this target URL from the parameters, and redirect to it after successful login.

Sniff AI Test Creation: User Models

Sniff AI I am working on a piece of software that I’m calling Sniff.AI. It’s meant to fight back against the proliferation of AI tools. Put the “power to the players” or whatever by giving testing providers the software that can detect suspicious activity as it’s happening. I’ve made it all open source, and I’m now working on the backend. The backend is a straightforward Rails site, that will host tests and my client library.

TIL - Computer Algebra Systems

Today I started working through Essential Math for Data Science, an awesome book from O' Reilly that goes over the mathematical fundamentals most of us need in today’s AI-driven world. In this morning’s learning session, I read about SymPy, but decided to implement all the examples in Julia. Loved the results. using Symbolics @variables a f = a ^ 2 * a ^ 3 simplify(f) The output of the above is a ^ 5.

Blazor WASM: Setting up Firebase Auth

While developing my big C# project for a local company, I found a hurdle I had to get over when developing authentication. The company already uses Firebase for auth of existing customers. This was a problem for me because I am using Blazor standalone WASM as my application platform of choice. C# has a few packages that do Firebase authentication, but all of them are based on the Admin SDK rather than the client.

Observable Pattern: C#/JS Interop

In working with the current project, I’ve developed my own little observable pattern from JS to C# with DotNetObjectReference First, setup your module to do something that requires a stream. For me, this is a Firebase auth module. onAuthStateChanged(auth, (user) => { if (user) { console.log("got user", user) uid = user.uid; } else { uid = null; } // ... }); I want this module to be call back to C# with each auth state change.

Developing With SignalR

I’ve been working for a while now on a real-time eyetracking application for a startup in Johnson City. Previous posts I’ve written have gone over some of the initial technology choices that I made. WebSocketSharp as a server served me well, and it abstracted away annoying things about writing a websocket server in C#. On the client side I went with ClientWebSocket. My ClientWebSocket code was written directly into the Razor component I was building, and would receive messages from the server, parse those messages, and execute some kind of behavior on the client.