needle-finetune-loss-curve

Agentic finetuning using a custom harness

The goal was to figure out whether a small model running on my own hardware could do the job of intent classification and structured parameter extraction well enough for one of my use-cases - read a request like “add 8 spare tent stakes to the camping box” and turn it into something the application can act on. I created an agentic fine-tuning and evaluation loop with a custom evaluation harness: an AI agent proposes one change at a time, a custom evaluation harness measures it against a frozen test set, and every run gets appended to a log with its settings, result and next decision. The agent does the all the work of dataset generation, training, evaluation and diagnosis. ...

September 25, 2026 Â· 6 min Â· tewari
image

Universal Windows Platform Application on Raspberry Pi

Universal Windows Platform (UWP) provides a common app platform on every device that runs Windows 10. The core APIs in UWP are the same on all Windows devices – including Desktop PC, Mobile Phone, XBox, Hololens, IOT devices and others. You can target specific device capabilities of a device family with extension SDKs, but you don’t have to do that if you are only using core APIs. Those core APIs include a very impressive set of UI capabilities. What that means is that you can create a UWP application using C# and XAML which will run on an ARM based processor on Raspberry Pi – because Windows 10 IOT Core runs on that. ...

May 23, 2020 Â· 2 min Â· tewari
censusmapper-android-on-nexus5

Creating Android Apps using C# and Xamarin

You can create native Android and iOS applications using C#, with Xamarin. I explored the capabilities of Xamarin tools and the development experience with Xamarin to create an Android version of CensusMapper. CensusMapper displays U.S. Census data on a Map. I created the original application for Windows 8 (WinRT) using C#. I have since converted it to an MVVM (C#) application, HTML/Javascript (WinJS) version and more recently to a Universal Windows App running on Windows Phone 8.1 and Windows 8.1. In that tradition, now it is faithfully ported to run on Android devices, using C# and Xamarin. CensusMapper is available on Google Play Store. ...

February 21, 2015 Â· 4 min Â· tewari
codecamp2013

Using Layer Diagrams – Keeping your MVVM code from turning into spaghetti

Raleigh Code Camp 2013 is wrapping up this afternoon. The venue and the crowd was phenomenal. I really enjoyed presenting“Using Layer Diagrams - Keeping your MVVM code from turning into spaghetti”. Thanks to everyone who attended the presentation. John Sonmez, Our Keynote Speaker, made my day by accepting my request to attend my presentation. It was awesome to have him in the audience and to get feedback from him! ...

November 9, 2013 Â· 1 min Â· tewari

Understanding and Using System.Transactions

These are some resources to help grasp System.Transactions functionality and use it effectively in your projects: Features Provided by System.Transactions to create transactional applications Implementing an Implicit Transaction using Transaction Scope MSDN Magazine Articles by John Papa: ADO.NET and System.Transactions Revisiting System.Transactions These are specific to TransactionScope(the way to go in most cases): Here is a practical example of Using TransactionScope to handle transactions in .net. This article in MSDN Magazine gets in depth with the way a TransactionScope like functionality can be implemented. Gives you a good understanding of what is happening under the hood when using TransactionScope in some Repository implementations in multi-threaded scenarios. This CodeProject article is another example of implementing a transactional repository. There are excellent tips here about configuring TransactionScope when using it with SQL Server. This is a good resource for understanding CommitableTransaction usage. And this one on the CodeProject has brilliant, in-depth and under-the-hood coverage - Truly Understanding .NET Transactions and WCF Implementation. ...

October 17, 2012 Â· 2 min Â· tewari

Using Model-View-ViewModel in WPF Applications

I am presenting at SoCalCodeCamp this weekend (January 30th, 2010) - Advanced WPF - Using Model-View-ViewModel in WPF Applications. tasklist-mockup Agenda : 1. Roles of the M-V-VM triad 2. Why use M-V-VM ? 3. Characteristics of the ViewModel 4. Build a Sample WPF Application using M-V-VM Resources : MSDN Magazine Article and Sample Application Download Martin Fowler’s description of the ‘Presentation Model ‘ Jeremy Miller’s ‘Build Your Own CAB’ series

January 25, 2010 Â· 1 min Â· tewari

Job Opening - Windows GUI Developer

We have a 3-4 month contract position open for a Windows GUI Developer in our group at Calabasas, California: 2+ years experience developing C++/C# Windows thick-client applications Expert in GUI development on Windows Expert in Object Oriented Analysis and Design (OOA/OOD) Deep understanding of client-server software development Experience in multithreading, and thread synchronization Excellent communication skills (written and verbal) Highly organized and detail oriented BSCS/BSEE or equivalent If you are interested, contact me. The position is available now.

March 9, 2009 Â· 1 min Â· tewari

Dial Gauge is a ProgressBar

I am not just being philosophical here. In WPF, ControlTemplates allow you to transform a control’s appearance. This is not the same as applying stylesheets. This is an entirely new level of customization. What you see in the screenshot below looks like a Dial but is actually a simple ProgressBar control wearing a “Dial” template. The Dial template was created using Microsoft Expression Blend . Include the ControlTemplate as a Window.Resource and then assign it to ProgressBar element’s Template attribute : ...

June 11, 2008 Â· 1 min Â· tewari

PostSharp with SharpDevelop

SharpDevelop3.0 uses MSBuild. Including PostSharp in your build process is transparent if you are doing a global install using PostSharp installer. If you are doing a per-project installation using “Binary - No Installer”download, you will need to import the PostSharp targets into your .csproj file - True C:\code\PostSharp-1.0.8.316-Binary\ For more details, read the install instructions included in the PostSharp download and under-the-hood-of-msbuild-integration. To use local PostSharp binaries (relative to your project) , modify your .csproj file as follows - ...

April 29, 2008 Â· 1 min Â· tewari

Using Custom Converter in XAML

In my previous post : WPF-LINQ To SQL Sample, I had to resort to modifying .dbml file to get the images stored as varbinary into the WPF ListView control. I had to change the Type of image fields to System.Byte[], instead of using System.Data.Linq.Binary. A better way to do this is to use a custom converter. WPF allows you to specify custom converter as part of the Binding in .xaml, like this - ...

April 16, 2008 Â· 1 min Â· tewari