<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ash Tewari</title><link>https://www.tewari.info/</link><description>Recent content on Ash Tewari</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Sat, 14 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.tewari.info/feed.xml" rel="self" type="application/rss+xml"/><item><title>Should you switch to an HSA plan? Let your own medical bills answer</title><link>https://www.tewari.info/2026/11/14/should-you-switch-to-an-hsa/</link><pubDate>Sat, 14 Nov 2026 00:00:00 +0000</pubDate><guid>https://www.tewari.info/2026/11/14/should-you-switch-to-an-hsa/</guid><description>&lt;img src="https://www.tewari.info/wp-content/should-you-switch-to-an-hsa.png" alt="Featured image of post Should you switch to an HSA plan? Let your own medical bills answer" /&gt;&lt;p&gt;Every fall I face the same open-enrollment question. My employer offers the usual PPO and a couple of high-deductible plans that come with a health savings account (HSA). The HSA plans have much lower premiums, and the employer puts money into the account, but the deductible is several thousand dollars. So which one costs less?&lt;/p&gt;&#10;&lt;p&gt;The comparison charts in the benefits guide don&amp;rsquo;t answer that. They compare a &amp;ldquo;typical&amp;rdquo; employee who visits the doctor twice and fills a generic prescription. I&amp;rsquo;m not that person, and you probably aren&amp;rsquo;t either.&lt;/p&gt;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;⚠️ &lt;strong&gt;Warning: experimental alpha software.&lt;/strong&gt; This tool is new, has had limited testing, and may have bugs that produce wrong numbers. Treat its results as a starting point for your own research, not as an answer. Before you change plans, check the recommendation against your benefits guide and your insurer&amp;rsquo;s plan documents.&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;h2 id="why-i-built-this"&gt;Why I built this&#10;&lt;/h2&gt;&lt;p&gt;What you actually pay depends on details the charts skip: when in the year your bills land, what your insurer negotiated for each visit, which services get a flat copay and which go toward the deductible, and whether your family hits the out-of-pocket maximum. You already have that information. It&amp;rsquo;s in your insurer&amp;rsquo;s claims history and in years of Explanation of Benefits (EOB) statements.&lt;/p&gt;&#10;&lt;p&gt;I wanted to use real claims, but going through years of them by hand was tedious and easy to get wrong. I also didn&amp;rsquo;t want to upload raw medical records to a chatbot to do it for me. So I split the work in two. A small set of tools runs on my own computer, reads the claims and strips out personal details. Then an AI assistant &amp;ldquo;skill&amp;rdquo; walks anyone through the process. The assistant runs on a cloud AI model, but it works from the de-identified totals the local tools produce rather than from the original records.&lt;/p&gt;&#10;&lt;h2 id="what-it-does"&gt;What it does&#10;&lt;/h2&gt;&lt;p&gt;You give it your claims history and a description of each plan you can choose. It then:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Removes personal details (names, member IDs, doctors, drug names, exact dates) and keeps only the dollar amounts, the month and a broad category.&lt;/li&gt;&#10;&lt;li&gt;Replays every claim, in order, under each plan&amp;rsquo;s rules: copays, deductible, coinsurance, family limits and the out-of-pocket maximum.&lt;/li&gt;&#10;&lt;li&gt;Adds the things people often forget: premiums, the money your employer puts in the HSA, and the taxes you save by contributing to it.&lt;/li&gt;&#10;&lt;li&gt;Checks itself by replaying your current plan and comparing the result with what you actually paid. If the two don&amp;rsquo;t line up, it tells you before showing any recommendation.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The result is an Excel workbook with your net yearly cost under each plan, plus a few &amp;ldquo;what if&amp;rdquo; views. These show a light year, a heavy year, the worst case where you hit the out-of-pocket maximum, the point where the cheaper plan would stop being cheaper, month-by-month HSA cash flow, and a five-year projection if you invest the HSA balance. You can change your contribution, tax rate or premiums in the workbook and watch the numbers update.&lt;/p&gt;&#10;&lt;p&gt;The gap between a PPO and an HSA plan can be several thousand dollars a year. The choice between two HSA plans is often closer, and which one comes out ahead can depend on whether you have a light year or a heavy one. That&amp;rsquo;s the kind of thing you only see when you run your own numbers.&lt;/p&gt;&#10;&lt;h2 id="how-it-handles-your-data"&gt;How it handles your data&#10;&lt;/h2&gt;&lt;p&gt;Keeping medical records private was a design goal from the start, but it helps to be clear about what goes where. There are two parts:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Local tools.&lt;/strong&gt; The scripts that read your claims, remove personal details and run the cost model work on your own computer. They don&amp;rsquo;t make network calls, and because the code is open source, you can check that yourself.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;The AI assistant.&lt;/strong&gt; If you use it, your conversation goes to the assistant&amp;rsquo;s cloud AI model. That includes what you type, like who&amp;rsquo;s on your plan and your tax bracket, and the de-identified counts and totals the local tools print. The local tools are what keep names, IDs, doctors, drugs and exact dates out of that stream.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Here&amp;rsquo;s what the project does to protect your data, and where its limits are:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;The output files are built from a short list of allowed fields. That keeps names, IDs, doctors and exact dates out by design.&lt;/li&gt;&#10;&lt;li&gt;A leak scan checks the finished files against your original records (and against any private words you add, like your street name) before you share them. It&amp;rsquo;s a safety net that catches common mistakes. It can&amp;rsquo;t promise to catch everything.&lt;/li&gt;&#10;&lt;li&gt;A check in the code repository helps prevent real medical files from being committed by accident.&lt;/li&gt;&#10;&lt;li&gt;The skill tells the assistant not to open your claim files and to rely on the local tools instead. That&amp;rsquo;s an instruction to the AI model, not a technical barrier. Don&amp;rsquo;t paste claims, statements or screenshots into the chat, and check your AI provider&amp;rsquo;s data policies.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;No tool can guarantee perfect privacy or security. This one is designed to limit how much personal information gets exposed, and you can review the code to see exactly what it does.&lt;/p&gt;&#10;&lt;h2 id="how-to-use-it"&gt;How to use it&#10;&lt;/h2&gt;&lt;p&gt;The easiest way is to let an AI coding assistant guide you. Download the project and open its folder in an assistant that supports agent skills. GitHub Copilot in VS Code and Claude Code both find the skill on their own, so there&amp;rsquo;s nothing to install. Run the assistant on your own computer with the project folder open. Uploading the skill to a chat website doesn&amp;rsquo;t work here, because the tools that strip out personal details have to run on your machine.&lt;/p&gt;&#10;&lt;p&gt;Then ask something like:&lt;/p&gt;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;Should I switch to an HSA plan? Walk me through it.&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;p&gt;The assistant asks a few questions at a time: who&amp;rsquo;s on your plan, which plans you can choose, your rough tax bracket. Then it tells you exactly what to download and where to find it. You don&amp;rsquo;t need to know any of this in advance, or have every file. It works with:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;claim downloads from your insurer&amp;rsquo;s website (the README lists which insurers&amp;rsquo; exports work out of the box, and the assistant can convert other insurers&amp;rsquo; spreadsheets),&lt;/li&gt;&#10;&lt;li&gt;EOB statements, or claims you type into a simple template,&lt;/li&gt;&#10;&lt;li&gt;nothing at all, in which case it builds an estimate from a short chat about how often your family sees a doctor.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;If you&amp;rsquo;d rather do it yourself, the &lt;a class="link" href="https://github.com/ashtewari/hsa-vs-ppo" target="_blank" rel="noopener"&#10; &gt;project README&lt;/a&gt; lists the five commands to run.&lt;/p&gt;&#10;&lt;p&gt;Want to see how it works before using your own data? The skill has a demo mode that walks you through the whole process with a fictional family. &lt;a class="link" href="#example-2-a-real-run-of-the-skill-in-demo-mode" &gt;Example 2&lt;/a&gt; below shows how to start it.&lt;/p&gt;&#10;&lt;h2 id="example-1-what-a-recommendation-looks-like-hypothetical"&gt;Example 1: what a recommendation looks like (hypothetical)&#10;&lt;/h2&gt;&lt;p&gt;This first example is hypothetical. The Rivera family and every number below are made up for illustration, and none of it was produced by running the tool. For real tool output, skip to &lt;a class="link" href="#example-2-a-real-run-of-the-skill-in-demo-mode" &gt;Example 2&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The Rivera family is two parents and two kids. They&amp;rsquo;re on a PPO and can switch to one of two HSA plans next year. After the assistant gathered their last two years of claims and the plan details, it came back with this:&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Net yearly cost&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th style="text-align: right"&gt;Current PPO&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th style="text-align: right"&gt;HSA Plus&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th style="text-align: right"&gt;HSA Basic&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;A year like last year&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$8,400&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$4,900&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$3,700&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;A heavier year (like the year before)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$9,300&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$6,500&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$6,900&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Worst case (out-of-pocket max reached)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$10,900&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$9,600&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td style="text-align: right"&gt;$8,800&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;&lt;em&gt;Net cost = premiums + what you pay for care − the employer&amp;rsquo;s HSA deposit − tax savings.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;And the recommendation, in plain words:&lt;/p&gt;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;&lt;strong&gt;Switch to HSA Basic and contribute through payroll.&lt;/strong&gt; It would have saved you about $4,700 last year compared with your PPO, and it&amp;rsquo;s still cheaper than the PPO in a heavy year and in the worst case. HSA Plus only pulls ahead in years when several of you need a lot of care, and even then by about $400.&lt;/p&gt;&#10;&lt;p&gt;Before you enroll, check three things:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Keep about $3,000 in savings for early-year bills. Your HSA builds up with each paycheck, but January is when the deductible hits.&lt;/li&gt;&#10;&lt;li&gt;Make sure your kids&amp;rsquo; doctors are in the new plan&amp;rsquo;s network.&lt;/li&gt;&#10;&lt;li&gt;You can only spend HSA money tax-free on yourself, your spouse and your tax dependents.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;How confident is this? Replaying your current PPO matched what you actually paid within 3% for both years, so the model understands your bills well. The one estimate in here is your teenager&amp;rsquo;s prescriptions, which you couldn&amp;rsquo;t see online.&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;h2 id="example-2-a-real-run-of-the-skill-in-demo-mode"&gt;Example 2: a real run of the skill in demo mode&#10;&lt;/h2&gt;&lt;p&gt;Unlike the Rivera example, this one is real. The skill has a &lt;strong&gt;demo mode&lt;/strong&gt; that runs the whole workflow on a fictional family of four, with synthetic claim exports and EOB PDFs and two fictional plans. No real medical data is involved, so you can see how the skill works before you gather your own documents.&lt;/p&gt;&#10;&lt;p&gt;To try it, clone the &lt;a class="link" href="https://github.com/ashtewari/hsa-vs-ppo" target="_blank" rel="noopener"&#10; &gt;repository&lt;/a&gt;, set up its Python environment as the README describes, and open the folder in an agent that supports skills (GitHub Copilot in VS Code or the Copilot CLI, or Claude Code). Then ask:&lt;/p&gt;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;Walk me through the HSA decision with the demo family.&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;p&gt;The agent takes about 10-15 minutes and runs the same five phases it would run on your data:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Interview.&lt;/strong&gt; It asks the usual questions, with the demo family&amp;rsquo;s answers pre-filled as defaults. You can accept them or change one, such as your state tax rate or HSA contribution, and watch the change carry through.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Plans.&lt;/strong&gt; It reads a fictional benefits summary and checks the plan details against it.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Claims.&lt;/strong&gt; It extracts the synthetic claims, goes through the two flagged rows with you and runs the leak scan.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Comparison.&lt;/strong&gt; It runs the cost model and checks that replaying the current plan matches what the family actually paid.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Result.&lt;/strong&gt; It explains the workbook, then tells you what to gather for a run on your own data.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;It follows the same privacy rules as a real run. For example, it never opens the claim files and works only from the counts and totals that the local tools print. Everything goes into &lt;code&gt;demo/output/&lt;/code&gt;, not the folder your real files would use.&lt;/p&gt;&#10;&lt;p&gt;With the default answers, this is the &lt;strong&gt;Annual comparison&lt;/strong&gt; sheet of the workbook the run produces:&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="Annual comparison sheet of the demo workbook for a fictional family: Example PPO net annual cost $7,785.58, Example HDHP $2,995.43" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/hsa-demo-annual-comparison.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Synthetic family and fictional plans. The two examples are unrelated, so their numbers don&amp;rsquo;t match. If you change an interview answer, your numbers will differ from these.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;In this demo the example HDHP costs about $4,790 less than the example PPO. The family pays about $2,707 more at the doctor and pharmacy, but premiums are about $5,200 lower, and the employer&amp;rsquo;s HSA money and the tax savings more than cover the difference. With other plans and other claims, the answer can flip.&lt;/p&gt;&#10;&lt;p&gt;If you only want to see the result:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Open the finished workbook.&lt;/strong&gt; Download &lt;a class="link" href="https://github.com/ashtewari/hsa-vs-ppo/releases/download/v0.1.0/hsa_comparison_demo_recalculated.xlsx" target="_blank" rel="noopener"&#10; &gt;hsa_comparison_demo_recalculated.xlsx&lt;/a&gt; from the &lt;a class="link" href="https://github.com/ashtewari/hsa-vs-ppo/releases/tag/v0.1.0" target="_blank" rel="noopener"&#10; &gt;v0.1.0 pre-release&lt;/a&gt;, open it in Excel or LibreOffice and start on &lt;strong&gt;Annual comparison&lt;/strong&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Skip the agent.&lt;/strong&gt; Run &lt;code&gt;python demo/run_demo.py&lt;/code&gt;. It builds the same workbook in a few seconds, without the guided walkthrough.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The demo mode is documented in the &lt;a class="link" href="https://github.com/ashtewari/hsa-vs-ppo/blob/main/demo/README.md#try-it-with-an-ai-agent-the-skills-demo-mode" target="_blank" rel="noopener"&#10; &gt;demo README&lt;/a&gt;. It was added after the v0.1.0 pre-release, so use the &lt;code&gt;main&lt;/code&gt; branch to get it. The pre-release is marked that way because the tool is still experimental alpha software.&lt;/p&gt;&#10;&lt;h2 id="a-few-honest-caveats"&gt;A few honest caveats&#10;&lt;/h2&gt;&lt;p&gt;This is experimental alpha software. Expect rough edges, and please &lt;a class="link" href="https://github.com/ashtewari/hsa-vs-ppo/issues" target="_blank" rel="noopener"&#10; &gt;report anything that looks wrong&lt;/a&gt;. It&amp;rsquo;s a decision aid, not financial, tax or insurance advice, and every number it produces is an estimate. It assumes your doctors and negotiated prices stay the same on every plan. The automatic PDF reading only understands one insurer&amp;rsquo;s EOB format today (see the README for which); other insurers work through spreadsheet downloads, manual entry or estimates. Health care is also unpredictable, which is why the workbook shows you the bad years as well as the typical one.&lt;/p&gt;&#10;&lt;p&gt;The project is free and open source under the MIT license. You can find it on GitHub at &lt;a class="link" href="https://github.com/ashtewari/hsa-vs-ppo" target="_blank" rel="noopener"&#10; &gt;ashtewari/hsa-vs-ppo&lt;/a&gt;. If it helps you make your choice this open enrollment, I&amp;rsquo;d love to hear about it.&lt;/p&gt;&#10;</description></item><item><title>All Things Open 2026 - Session Recommendations</title><link>https://www.tewari.info/2026/10/19/all-things-open-2026-session-recommendations/</link><pubDate>Tue, 20 Oct 2026 01:52:51 +0000</pubDate><guid>https://www.tewari.info/2026/10/19/all-things-open-2026-session-recommendations/</guid><description>&lt;p&gt;&lt;a class="link" href="https://2026.allthingsopen.org/" target="_blank" rel="noopener"&#10; &gt;All Things Open 2026&lt;/a&gt; is on in Raleigh! With more than 100 sessions and speakers, choosing what to attend is not easy.&lt;/p&gt;&#10;&lt;p&gt;I went through the conference program and shortlisted the sessions that caught my attention. My interests lean toward AI agents, software architecture, developer productivity, security, and data engineering, practical engineering challenges, along with a few interesting topics on model training, real-time AI, and emerging user interfaces.&lt;/p&gt;&#10;&lt;p&gt;AI coding assistants have evolved considerably. We&amp;rsquo;re now moving toward autonomous agents that can modify repositories, execute commands, provision infrastructure, and even deploy applications. But giving an agent the ability to write code is relatively easy. Making it reliable, secure, efficient, and useful in a real engineering environment is a much harder problem.&lt;/p&gt;&#10;&lt;h2 id="ai-coding-agents-and-developer-infrastructure"&gt;AI Coding Agents and Developer Infrastructure&#10;&lt;/h2&gt;&lt;h3 id="1-death-by-worktree-why-agent-sandboxes-choke-on-disk-io"&gt;1. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/death-by-worktree-why-agent-sandboxes-choke-on-disk-i-o" target="_blank" rel="noopener"&#10; &gt;Death by Worktree: Why Agent Sandboxes Choke on Disk I/O&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Bradley Hilton&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; Git worktrees and isolated sandboxes are becoming common approaches for running multiple coding agents concurrently. But filesystem performance can become a serious bottleneck. This session addresses an often-overlooked infrastructure problem: the I/O overhead associated with agent execution environments. Particularly relevant for anyone experimenting with parallel coding agents and multi-repository workflows.&lt;/p&gt;&#10;&lt;h3 id="2-building-functional-dev-environments-for-humans-and-agents"&gt;2. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/building-functional-dev-environments-for-humans-and-agents" target="_blank" rel="noopener"&#10; &gt;Building Functional Dev Environments for Humans and Agents&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Matyas Danter — Staff Solutions Engineer, Coder&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; AI agents need reproducible development environments just as much as human developers do. The talk explores practical approaches to managing development environments across monorepos, multiple repositories, and distributed teams.&lt;/p&gt;&#10;&lt;h3 id="3-ai-sandboxes-running-coding-agents-safely-in-production-grade-environments"&gt;3. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/ai-sandboxes-running-coding-agents-safely-in-production-grade-environments" target="_blank" rel="noopener"&#10; &gt;AI Sandboxes: Running Coding Agents Safely in Production-Grade Environments&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Shivay Lamba — Lead ML Engineer, Qualcomm&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; Coding agents execute commands and generate code that may not be entirely trustworthy. Sandboxing is becoming essential for safely scaling autonomous development.&lt;/p&gt;&#10;&lt;h3 id="4-sandboxing-ai-agents-in-the-enterprise-a-practitioner"&gt;4. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/sandboxing-ai-agents-in-the-enterprise-a-practitioners-guide-to-isolation-technologies" target="_blank" rel="noopener"&#10; &gt;Sandboxing AI Agents in the Enterprise: A Practitioner&amp;rsquo;s Guide to Isolation Technologies&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Balu Mathew — Machine Learning Engineering Technical Leader, Cisco&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; An architectural perspective on isolation technologies for enterprise AI agents. I&amp;rsquo;m particularly interested in understanding the security, performance, and operational trade-offs between different sandboxing approaches.&lt;/p&gt;&#10;&lt;h3 id="5-the-last-mile-of-ai-assisted-development"&gt;5. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/the-last-mile-of-ai-assisted-development" target="_blank" rel="noopener"&#10; &gt;The Last Mile of AI-Assisted Development&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speakers:&lt;/strong&gt; Colin Griffin and David Johnson — Krumware / SUSE&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; Generating code is only part of software delivery. Building, testing, deploying, and maintaining it remain substantial challenges. The session includes a look at extending Rancher using Epinio, an open-source Kubernetes application deployment platform. Worth considering for its practical platform-engineering angle, although the presentation has a vendor-specific component.&lt;/p&gt;&#10;&lt;h2 id="agent-security-permissions-and-governance"&gt;Agent Security, Permissions, and Governance&#10;&lt;/h2&gt;&lt;h3 id="6-you-can-give-any-agent-access-to-kubectl-but-how-do-you-make-one-that-should-have-access-to-kubectl"&gt;6. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/you-can-give-any-agent-access-to-kubectl-but-how-do-you-make-one-that-should-have-access-to-kubectl" target="_blank" rel="noopener"&#10; &gt;You Can Give Any Agent Access to kubectl. But How Do You Make One That Should Have Access to kubectl?&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Charles Johnson — Mezmo&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; Connecting an agent to Kubernetes is easy; deciding whether it should be trusted with cluster operations is not. This session challenges the assumption that giving agents write access to production systems must inevitably end in disaster. An interesting opportunity to explore controlled autonomy, operational safeguards, and the boundary between agent capabilities and permissions.&lt;/p&gt;&#10;&lt;h3 id="7-fine-grained-access-control-for-hosted-mcp-servers-you-don"&gt;7. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/fine-grained-access-control-for-hosted-mcp-servers-you-dont-own" target="_blank" rel="noopener"&#10; &gt;Fine-Grained Access Control for Hosted MCP Servers You Don&amp;rsquo;t Own&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Nick Taylor — Developer Advocate, Pomerium&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; One of the more practical security topics on my list. Nick demonstrates an identity-aware proxy that enforces per-tool authorization across hosted MCP servers without modifying them. The approach addresses credential sprawl, OAuth limitations, and tool-call auditing. Nick has presented extensively on MCP and Zero Trust security, including at Black Hat and other technical conferences. The demo uses open-source Pomerium.&lt;/p&gt;&#10;&lt;h3 id="8-ai-wrote-the-code--is-it-secure"&gt;8. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/ai-wrote-the-code-is-it-secure" target="_blank" rel="noopener"&#10; &gt;AI Wrote the Code – Is It Secure?&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Adhithi Ravichandran — Founder and Software Consultant, Surya Consulting&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; AI-generated code can introduce vulnerabilities even when it appears functionally correct. This session examines the security implications of AI-assisted software development. Adhithi&amp;rsquo;s software consulting background should offer a practitioner perspective on the security checks and engineering discipline needed before trusting AI-generated code in production.&lt;/p&gt;&#10;&lt;h2 id="model-training-real-time-ai-and-new-interfaces"&gt;Model Training, Real-Time AI, and New Interfaces&#10;&lt;/h2&gt;&lt;h3 id="9-the-beginners-guide-to-training-your-own-ai-coding-model-on-your-own-data"&gt;9. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/the-beginners-guide-to-training-your-own-ai-coding-model-on-your-own-data" target="_blank" rel="noopener"&#10; &gt;The Beginners Guide to Training Your Own AI Coding Model on Your Own Data&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Bekah Hawrot Weigel — The Paper Compute Company&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; I&amp;rsquo;m particularly interested in small, specialized coding models trained on custom datasets. Understanding how to prepare training data and adapt a model for specific coding tasks is becoming increasingly valuable. This should be a useful introduction for developers exploring model customization beyond prompting and RAG.&lt;/p&gt;&#10;&lt;h3 id="10-how-open-is-your-realtime-ai-stack"&gt;10. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/how-open-is-your-realtime-ai-stack" target="_blank" rel="noopener"&#10; &gt;How Open is your Realtime AI Stack?&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Omar Warraky — Senior Solutions Architect, LiveKit&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; Real-time voice AI requires considerably more than an LLM. Speech recognition, synthesis, media transport, orchestration, and latency management all matter. This session should be particularly interesting for understanding the open-source components and architectural choices available when building low-latency conversational applications.&lt;/p&gt;&#10;&lt;h3 id="11-where-is-my-futuristic-app-generative-ui-and-the-open-future"&gt;11. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/where-is-my-futuristic-app-generative-ui-and-the-open-future-2" target="_blank" rel="noopener"&#10; &gt;Where Is My Futuristic App? Generative UI and the Open Future&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speakers:&lt;/strong&gt; Mark Techson, Andrew Brogdon, and Marc Dougherty — Google&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; What happens when agents generate not just content but the user interface itself? This keynote explores Generative UI and the A2UI protocol, including a look at a working application&amp;rsquo;s codebase. Although Google-led, the focus on open protocols and actual implementation makes it worth watching.&lt;/p&gt;&#10;&lt;h3 id="12-to-boldly-go-data-science-exploration-with-ai-agents-ft-star-trek"&gt;12. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/to-boldly-go-data-science-exploration-with-ai-agents-ft-star-treks-lcars-theme" target="_blank" rel="noopener"&#10; &gt;To Boldly Go: Data Science Exploration with AI Agents (ft Star Trek&amp;rsquo;s LCARS Theme)&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Dawn Wages — Director, Community and Developer Relations, Anaconda&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; A creative approach to exploring data science through AI agents, using Star Trek&amp;rsquo;s LCARS interface as inspiration. This looks like an enjoyable opportunity to see how conversational agents and interactive interfaces can make data exploration more approachable.&lt;/p&gt;&#10;&lt;h2 id="software-engineering-and-the-developer-community"&gt;Software Engineering and the Developer Community&#10;&lt;/h2&gt;&lt;h3 id="13-when-code-costs-nothing-tech-debt-in-the-age-of-genai"&gt;13. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/when-code-costs-nothing-tech-debt-in-the-age-of-genai" target="_blank" rel="noopener"&#10; &gt;When Code Costs Nothing: Tech Debt in the Age of GenAI&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Rachel Stephens — Research Director, RedMonk&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; AI dramatically reduces the effort required to produce code, but does it reduce the long-term cost of maintaining software? This session examines how generative AI changes our understanding of technical debt, code ownership, and engineering accountability. This session should bring an independent industry-research perspective, making this particularly appealing as a counterbalance to AI productivity hype.&lt;/p&gt;&#10;&lt;h3 id="14-ai-tinkerers-raleigh-top-demos-of-the-year-and-their-community-impact"&gt;14. &lt;a class="link" href="https://2026.allthingsopen.org/sessions/ai-tinkerers-raleigh-top-demos-of-the-year-and-their-community-impact" target="_blank" rel="noopener"&#10; &gt;AI Tinkerers Raleigh: Top Demos of the Year and Their Community Impact&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;Speaker:&lt;/strong&gt; Danny Castro — AI Tinkerers Raleigh&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Why attend:&lt;/strong&gt; Sometimes the most interesting innovations come from local builders rather than major technology companies. This demo showcase highlights practical AI projects from the Raleigh community. A good opportunity to discover emerging tools, meet developers, and see what people are actually building.&lt;/p&gt;&#10;&lt;h2 id="final-thoughts"&gt;Final Thoughts&#10;&lt;/h2&gt;&lt;p&gt;Looking across these sessions, a few important themes stand out:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Agent infrastructure matters.&lt;/strong&gt; Sandboxing, and reproducible environments are becoming fundamental building blocks of AI-assisted development.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Security cannot depend on trusting the model.&lt;/strong&gt; Permission boundaries, isolation, authorization, and auditing must be enforced outside the agent itself.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;The software engineering bottleneck is shifting.&lt;/strong&gt; Generating code is becoming easier, while validation, maintainability, and production readiness remain difficult.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;See the &lt;a class="link" href="https://2026.allthingsopen.org/schedule#day=tuesday" target="_blank" rel="noopener"&#10; &gt;complete All Things Open Tuesday schedule&lt;/a&gt; for session times and locations.&lt;/p&gt;&#10;&lt;p&gt;Looking forward to seeing what the speakers and the open-source community have been working on!&lt;/p&gt;&#10;</description></item><item><title>Who needs Surface Ultra RTX?</title><link>https://www.tewari.info/2026/10/07/who-needs-surface-ultra-rtx/</link><pubDate>Thu, 08 Oct 2026 01:38:44 +0000</pubDate><guid>https://www.tewari.info/2026/10/07/who-needs-surface-ultra-rtx/</guid><description>&lt;p&gt;Microsoft announced the new &lt;a class="link" href="https://www.microsoft.com/en-us/surface/devices/surface-laptop-ultra" target="_blank" rel="noopener"&#10; &gt;Surface Ultra RTX Laptop&lt;/a&gt; today. Of course I want the RTX Spark Machine! Who doesn&amp;rsquo;t? It is awesome! I am being nostalgic about my original Microsoft Surface Pro from 2013 though. I have fond memories of developing and testing &lt;a class="link" href="https://www.tewari.info/tag/windows-8/" &gt;Windows 8&lt;/a&gt; &lt;a class="link" href="https://www.tewari.info/tag/xaml/" &gt;Apps&lt;/a&gt; and &lt;a class="link" href="https://www.tewari.info/category/xamarin/" &gt;Windows&lt;/a&gt; &lt;a class="link" href="https://www.tewari.info/tag/windows-phone/" &gt;Phone&lt;/a&gt; &lt;a class="link" href="https://www.tewari.info/tag/wp7/" &gt;Apps&lt;/a&gt;(remember those?) on it.&lt;/p&gt;&#10;&lt;p&gt;The spec sheet of my &lt;a class="link" href="https://en.wikipedia.org/wiki/Surface_Pro_%281st_generation%29" target="_blank" rel="noopener"&#10; &gt;Surface Pro 1 from 2013&lt;/a&gt; is ancient: 3rd-gen Intel Core i5, 4 GB of RAM, 128 GB SSD. Windows support ended years ago.&lt;/p&gt;&#10;&lt;p&gt;I decided to wipe it and give it a new life with &lt;a class="link" href="https://xubuntu.org" target="_blank" rel="noopener"&#10; &gt;xubuntu&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://xubuntu.org/releasedocs/26.04/release-notes/" target="_blank" rel="noopener"&#10; &gt;xubuntu 26.04&lt;/a&gt; refused to boot at first. The culprit turned out to be the installation media rather than Linux: the Surface was hitting USB enumeration and read errors with my original flash drive. Safe graphics made no difference. A different stick, USB 2.0 this time, dropped me straight into the live environment. Live environment was extremely choppy and slow. I was able to complete some basic validations. I settled on &lt;a class="link" href="https://xubuntu.org/releasedocs/24.04/release-notes/" target="_blank" rel="noopener"&#10; &gt;xubuntu 24.04&lt;/a&gt; LTS for the permanent install, and I will revisit 26.04 now that the basic setup works.&lt;/p&gt;&#10;&lt;p&gt;Then the machine turned out to be more usable than I expected. Wi-Fi, Type Cover, and the Touch Screen all worked, and Firefox, Git, Python, terminals, SSH and lightweight dev tooling all run fine. XFCE and Ubuntu&amp;rsquo;s package ecosystem give me a current Linux environment that still leaves room to work in 4 GB of RAM. The Surface Pro&amp;rsquo;s compact form factor makes it light and portable next to my Lenovo Legion behemoth. The whole Surface Pro is probably lighter than the Legion&amp;rsquo;s power brick.&lt;/p&gt;&#10;&lt;p&gt;I am not going to run local LLMs, a Kubernetes cluster or a dozen containers on it. As a small Linux terminal, SSH client, coding machine, browser or home-lab console, it has plenty of life left.&lt;/p&gt;&#10;&lt;p&gt;I will be using it as a host for coding agents. The model runs in another local headless server (more on that in another blog post) or in the cloud, so what is left on this machine is an orchestration loop, HTTP calls, a git checkout and a shell, over &lt;a class="link" href="https://tailscale.com/" target="_blank" rel="noopener"&#10; &gt;tailscale&lt;/a&gt;. That is an I/O problem, and a 2013 i5 should do just fine. Headless over SSH, 4 GB should be enough. I&amp;rsquo;ll find out. The other appeal is blast radius. An agent that runs shell commands gets a cheap, disposable machine of its own instead of my main one.&lt;/p&gt;&#10;&lt;p&gt;There is something satisfying about taking hardware at the end of its commercial life and saving it from landfill.&lt;/p&gt;&#10;</description></item><item><title>Agentic finetuning using a custom harness</title><link>https://www.tewari.info/2026/09/24/agentic-finetuning-using-a-custom-harness/</link><pubDate>Fri, 25 Sep 2026 02:56:11 +0000</pubDate><guid>https://www.tewari.info/2026/09/24/agentic-finetuning-using-a-custom-harness/</guid><description>&lt;p&gt;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 &amp;ldquo;add 8 spare tent stakes to the camping box&amp;rdquo; and turn it into something the application can act on.&lt;/p&gt;&#10;&lt;p&gt;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.&lt;/p&gt;&#10;&lt;h2 id="setup"&gt;Setup&#10;&lt;/h2&gt;&lt;p&gt;I built a fixed test set of 45 requests covering nine intents, five cases each, and froze it. Every model, change and training run was measured against those same 45 cases. The output metrics of each run were: intent accuracy, meaning did it pick the right action, and parameter accuracy, meaning did it extract the right details. A third important number is: fallbacks, the count of cases where the model declined to answer and returned &amp;ldquo;unclear.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;The OpenAI baseline (gpt-5.6-luna) was created and frozen. It scored 93.33% intent and 71.11% parameter accuracy with no fallbacks.&lt;/p&gt;&#10;&lt;p&gt;All local training ran on a consumer RTX 3060, in &lt;a class="link" href="https://learn.microsoft.com/en-us/windows/wsl/about" target="_blank" rel="noopener"&#10; &gt;WSL2&lt;/a&gt; with &lt;a class="link" href="https://docs.nvidia.com/cuda/wsl-user-guide/" target="_blank" rel="noopener"&#10; &gt;CUDA&lt;/a&gt;. &lt;a class="link" href="https://arxiv.org/abs/2106.09685" target="_blank" rel="noopener"&#10; &gt;LoRA&lt;/a&gt; &lt;a class="link" href="https://www.cactuscompute.com/blog/finetuning-needle" target="_blank" rel="noopener"&#10; &gt;fine-tuning&lt;/a&gt;, rank 16, alpha 32, learning rate 1e-4, batch size 4. A 15-epoch run takes about 20 minutes.&lt;/p&gt;&#10;&lt;p&gt;The entire source, including training data, eval harness, scripts and agent skill is on GitHub - &lt;a class="link" href="https://github.com/ashtewari/needle-tuner" target="_blank" rel="noopener"&#10; &gt;needle-tuner&lt;/a&gt;.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/needle-finetune-gpu-usage.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;h2 id="part-1---needle2"&gt;Part 1 - needle2&#10;&lt;/h2&gt;&lt;p&gt;The first local comparison with &lt;a class="link" href="https://cactuscompute.com/blog/needle-2" target="_blank" rel="noopener"&#10; &gt;needle2&lt;/a&gt; model from &lt;a class="link" href="https://cactuscompute.com/needle" target="_blank" rel="noopener"&#10; &gt;Cactus&lt;/a&gt;. It scored 4.44% intent accuracy. The problem turned out to be how I was asking the question. I had given the model one abstract, generic &amp;ldquo;classify this&amp;rdquo; tool. I replaced it with eight concrete tools, one for each real action the application supports.&lt;/p&gt;&#10;&lt;p&gt;The result went to 62.22% intent and 68.89% parameter accuracy.&lt;/p&gt;&#10;&lt;p&gt;With this reasonable starting point, I &lt;a class="link" href="https://www.cactuscompute.com/blog/finetuning-needle" target="_blank" rel="noopener"&#10; &gt;fine-tuned&lt;/a&gt; on a small purpose-built training set and ran a structured loop: change one thing, measure against the frozen test set, write down the result.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Needle2 configuration&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Intent&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Parameter&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Base model, redesigned tools, no training&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;62.22%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;68.89%&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Best fine-tuned run (5 epochs, rank 8)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;64.44%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;62.22%&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Longer training (30 epochs)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;57.78%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;64.44%&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Heavier defaults&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;42.22%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;51.11%&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;The best training result gained two points on intent accuracy over no training at all, and lost six on parameters. More training made things worse. The heaviest run also refused to answer far more often, with 15 fallbacks against 9 for the untrained model. The results were noisy enough to make any single comparison suspect. Two runs of the identical best configuration measured 64.44% and 60.00%, so I stopped treating one good run as evidence of anything. Validation loss kept improving while held-out accuracy got worse. Had I watched the training dashboard instead of the frozen test set, I would have shipped a regression. I stopped at this point.&lt;/p&gt;&#10;&lt;h2 id="part-2---needle3"&gt;Part 2 - needle3&#10;&lt;/h2&gt;&lt;p&gt;A new version of the model family had shipped in the mean time, with a different architecture and a different native engine. Untrained, &lt;a class="link" href="https://cactuscompute.com/needle" target="_blank" rel="noopener"&#10; &gt;needle3&lt;/a&gt; measured 71.11% intent and 66.67% parameter accuracy with 7 fallbacks. I modified the agentic loop to support the new model and executed again.&lt;/p&gt;&#10;&lt;p&gt;A one-epoch smoke test scored 68.89% and 73.33%, which is one run on one epoch and proves nothing on its own. A full 30-epoch run at the wrapper defaults scored 71.11% and 66.67%, identical to the untrained base. However, the per-intent breakdown had shifted underneath, some intents up and some down, while the totals stayed flat. Validation loss bottomed out at epoch 13 and climbed for the remaining 17 epochs while training loss kept falling. Same &lt;a class="link" href="https://developers.google.com/machine-learning/crash-course/overfitting" target="_blank" rel="noopener"&#10; &gt;overfitting&lt;/a&gt; pattern &lt;a class="link" href="https://cactuscompute.com/blog/needle-2" target="_blank" rel="noopener"&#10; &gt;needle2&lt;/a&gt; had shown.&lt;/p&gt;&#10;&lt;h2 id="the-issue"&gt;The issue&#10;&lt;/h2&gt;&lt;p&gt;Instead of tuning another hyperparameter, I stopped reading aggregate scores and started reading individual failures.&lt;/p&gt;&#10;&lt;p&gt;The training data and the held-out test set agreed on which intent was correct. They disagreed on the convention for writing the parameters down.&lt;/p&gt;&#10;&lt;p&gt;The first problem was descriptive adjectives. For delete requests, the test set strips condition words from item names, so &amp;ldquo;the broken toaster&amp;rdquo; is expected to yield &amp;rsquo;toaster&amp;rsquo;. All 12 authored delete rows in my training data did the opposite, keeping &amp;lsquo;cracked mixing bowl&amp;rsquo; and &amp;rsquo;expired pain reliever&amp;rsquo; intact.&lt;/p&gt;&#10;&lt;p&gt;The second problem was a wrong key name. For inventory-viewing requests, the training data used a &amp;rsquo;location&amp;rsquo; key for the container slot while every other intent, and the test set, used &amp;lsquo;boxLabel&amp;rsquo;. It also carried a &amp;lsquo;scope&amp;rsquo; key that appears in zero held-out cases.&lt;/p&gt;&#10;&lt;p&gt;The model was learning my convention faithfully and being marked wrong for it, on 100% of those cases. That also explains why longer training hurt: more epochs meant learning the wrong answer more thoroughly.&lt;/p&gt;&#10;&lt;h2 id="the-fix"&gt;The Fix&#10;&lt;/h2&gt;&lt;p&gt;I corrected 12 delete rows and 20 view-inventory rows, regenerated the derived datasets, re-pinned the integrity hashes and re-ran the validation suite. No hyperparameter change and dropped Epoch count from 30 to 15, taken from the previous run&amp;rsquo;s validation-loss minimum.&lt;/p&gt;&#10;&lt;p&gt;Result: 82.22% intent and 75.56% parameter accuracy, 6 fallbacks.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Run&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Intent&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Parameter&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Fallbacks&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Needle2 base&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;62.22%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;68.89%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;9&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Needle2 best fine-tune&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;64.44%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;62.22%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;not recorded&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Needle3 base&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;71.11%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;66.67%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;7&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Needle3 fine-tuned, original data, 30 epochs&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;71.11%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;66.67%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;6&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Needle3 fine-tuned, corrected data, 15 epochs&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;82.22%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;75.56%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;6&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;OpenAI (frozen baseline)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;93.33%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;71.11%&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;0&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;That is 11 points of intent accuracy over its own base model and 20 over &lt;a class="link" href="https://cactuscompute.com/blog/needle-2" target="_blank" rel="noopener"&#10; &gt;needle2&lt;/a&gt;&amp;rsquo;s base. It is also the first time a local model beat the hosted API on parameter accuracy, 75.56% against 71.11%. Intent accuracy is still 11 points behind.&lt;/p&gt;&#10;&lt;p&gt;The per-intent movement matches the diagnosis. Delete went from 80%/40% to 100%/80%. Search went from 60%/60% to 100%/100%. Update improved as well, since the bare-noun convention is shared by every intent that names an item.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://developers.google.com/machine-learning/crash-course/overfitting" target="_blank" rel="noopener"&#10; &gt;Validation loss&lt;/a&gt; behaved differently too. With the corrected data it declined every one of the 15 epochs, with none of the mid-run turnaround the unfixed run showed. The contradictory labels had been generating the &lt;a class="link" href="https://developers.google.com/machine-learning/crash-course/overfitting" target="_blank" rel="noopener"&#10; &gt;overfitting&lt;/a&gt; signal themselves.&lt;/p&gt;&#10;&lt;h2 id="next"&gt;Next&#10;&lt;/h2&gt;&lt;p&gt;Parameter extraction already beats the API. Intent classification is 11 points behind, and most of the remaining gap sits in one diagnosed failure mode: deciding whether a vague request is actionable.&lt;/p&gt;&#10;&lt;p&gt;The next lever is contrastive training examples sitting right on that boundary. After that the options get expensive: changes to how the model produces its answers, training that explicitly teaches it what a wrong answer looks like, or a different architecture.&lt;/p&gt;&#10;&lt;p&gt;Hyperparameter tuning and the size of the training dataset should also be revisited to explore further improvements to intent classification.&lt;/p&gt;&#10;&lt;p&gt;Because the same 45 cases were used to decide which experiment to run next, they are now a &lt;a class="link" href="https://developers.google.com/machine-learning/crash-course/overfitting/dividing-datasets" target="_blank" rel="noopener"&#10; &gt;model-selection set rather than an unbiased final exam&lt;/a&gt;. Before anyone calls this production-ready it has to be tested against a separate set of cases it has never influenced.&lt;/p&gt;&#10;&lt;p&gt;The project also produced a reproducible pipeline along the way. A frozen test set, hash-pinned datasets, a documented training process, a log of every attempt including the failures, and a default path that validates without training and without calling paid APIs. That infrastructure is the reason the annotation issue was discoverable at all.&lt;/p&gt;&#10;</description></item><item><title>Giving OpenClaw Secure Access to Cloud Services Without Sharing Your Password</title><link>https://www.tewari.info/2026/04/06/device-code-auth-flow-with-openclaw/</link><pubDate>Mon, 06 Apr 2026 04:48:17 +0000</pubDate><guid>https://www.tewari.info/2026/04/06/device-code-auth-flow-with-openclaw/</guid><description>&lt;p&gt;Device Code Flow has been built into OAuth2 for years, originally designed for TVs and game consoles. It works just as well for a Docker container. It requires no credentials stored on the agent machine. It gives you narrow, revocable access that the agent cannot exceed.&lt;/p&gt;&#10;&lt;p&gt;I have OpenClaw deployed in a sandboxed docker container on a dedicated host. I communicate with it via a Telegram bot, in a locked-down chat.&lt;/p&gt;&#10;&lt;p&gt;I wired the device-code authentication pattern up with OpenClaw and Microsoft (Personal/Consumer) services, but the authentication approach works with any app and any command-line tool you want to run in a headless environment, including Custom APIs. Device code flow + Entra ID app registrations give you a zero-stored-credentials gateway to any HTTP API you can build, not just Microsoft Graph.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/openclaw-telegram-integration.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;&lt;strong&gt;What Is Device Code Flow?&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;OAuth2 device code flow (RFC 8628) was designed for &amp;ldquo;input-constrained devices&amp;rdquo; — things without a keyboard or a browser. Think of how you sign in to Netflix on a smart TV: a short code appears on screen, you visit a URL on your phone, you type the code in, and the TV logs in. You never type your password on the TV.&lt;/p&gt;&#10;&lt;p&gt;The official name for that pattern is the device authorization grant. A Docker container is, from the protocol&amp;rsquo;s perspective, exactly the same kind of device. It has no browser. It cannot perform an interactive redirect. But it can make HTTP requests, and that is all it needs.&lt;/p&gt;&#10;&lt;p&gt;The flow has three steps:&lt;/p&gt;&#10;&lt;p&gt;1. The app posts to the identity provider&amp;rsquo;s device code endpoint. It gets back a short user code (like &amp;ldquo;WDJB-MJHT&amp;rdquo;), a verification URL, and a polling device code.&lt;/p&gt;&#10;&lt;p&gt;2. The user visits the URL on any browser, on any device — their phone, laptop, anything — and enters the short code. They sign in normally, with their usual credentials and MFA if it is enabled.&lt;/p&gt;&#10;&lt;p&gt;3. The app polls the token endpoint in the background. Once the user finishes signing in, the poll returns a real access token and a refresh token. The app stores these and uses them for API calls going forward.&lt;/p&gt;&#10;&lt;p&gt;The app never sees the password. The password goes directly from the user&amp;rsquo;s browser to the identity provider. The app only ever handles two things: a short temporary code that it sends to the user, and a token that the identity provider gives back once the user has authenticated.&lt;/p&gt;&#10;&lt;p&gt;OpenClaw running in a Docker container fits this model exactly.&lt;/p&gt;&#10;&lt;h2 id="which-services-support-this"&gt;Which Services Support this?&#10;&lt;/h2&gt;&lt;p&gt;Device code flow is not a Microsoft-only feature. It is a standard OAuth2 extension (RFC 8628) and most major identity providers support it — including Microsoft, Google, GitHub, and AWS. If a service uses Okta or Auth0 for identity, those support it too.&lt;/p&gt;&#10;&lt;h2 id="the-security-architecture"&gt;The Security Architecture&#10;&lt;/h2&gt;&lt;p&gt;The agent never sees your credentials. Your password is typed in your browser, on your device, to your identity provider&amp;rsquo;s servers. It never touches the container. The agent only handles a short temporary code to give you, and a token issued by the provider once you have authenticated.&lt;/p&gt;&#10;&lt;p&gt;The device code is one-time and short-lived. After the user authenticates, the code is permanently invalidated. An intercepted code is useless without the user&amp;rsquo;s credentials and MFA.&lt;/p&gt;&#10;&lt;p&gt;Scopes define the ceiling. You configure the OAuth app or app registration to request only specific permissions. The agent cannot exceed those scopes. If you configure read-only access to email, the token cannot be used to send or delete email.&lt;/p&gt;&#10;&lt;p&gt;This is the authentication pattern that many of the consumer devices you already own use to access your accounts on your behalf. Your TV&amp;rsquo;s YouTube app, your smart home hub&amp;rsquo;s Google integration, the GitHub CLI you use on your workstation — these all use device flow. You have been trusting it for years without knowing what it was called.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/device-code-flow-workflow.drawio.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;h2 id="how-the-implementation-works"&gt;How the implementation works&#10;&lt;/h2&gt;&lt;p&gt;There are three components, and they run as separate Docker services that talk to each other through the Docker socket.&lt;/p&gt;&#10;&lt;p&gt;The app sidecar is your application container. It runs your CLI tool and your auth logic. It does nothing on its own. Its only job is to hold the authenticated token cache and execute commands on demand when OpenClaw calls into it.&lt;/p&gt;&#10;&lt;p&gt;OpenClaw is the AI agent container. It connects to Telegram, understands natural language, and knows which skills to run for which requests. It does not know anything about OAuth or your specific app. It just runs shell commands you specified and reports results back to you.&lt;/p&gt;&#10;&lt;p&gt;The Telegram auth bridge is a small script that lives inside the sidecar. It registers a device code callback, requests an auth flow, and uses the Telegram Bot API to forward the code to you — then confirms when authentication completes.&lt;/p&gt;&#10;&lt;p&gt;The compose file looks roughly like this:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;services&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;myapp-sidecar&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;image&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;ghcr.io/youruser/myapp:latest&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;command&lt;/span&gt;: [&lt;span style="color:#e6db74"&gt;&amp;#34;sleep&amp;#34;&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;infinity&amp;#34;&lt;/span&gt;]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;environment&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;XDG_DATA_HOME=/data&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;volumes&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;${APP_DATA_DIR:-./app-data}:/data&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;restart&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;unless-stopped&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;openclaw-gateway&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;build&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;context&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;dockerfile&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;Dockerfile.openclaw&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;volumes&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;/var/run/docker.sock:/var/run/docker.sock&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;./skills:/app/skills&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;group_add&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#e6db74"&gt;&amp;#34;${DOCKER_GID:-999}&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;environment&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;ports&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#e6db74"&gt;&amp;#34;18789:18789&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;restart&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;unless-stopped&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="the-callback-pattern"&gt;The Callback Pattern&#10;&lt;/h2&gt;&lt;p&gt;The auth manager has a method called set_device_code_callback. You pass it a function, and when the device code is ready, the auth manager calls your function with the code and the verification URL rather than trying to open a browser.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;class&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;AuthManager&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;def&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;__init__&lt;/span&gt;(self, client_id: str, authority: str) &lt;span style="color:#f92672"&gt;-&amp;gt;&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;None&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_client_id &lt;span style="color:#f92672"&gt;=&lt;/span&gt; client_id&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_authority &lt;span style="color:#f92672"&gt;=&lt;/span&gt; authority&lt;span style="color:#f92672"&gt;.&lt;/span&gt;rstrip(&lt;span style="color:#e6db74"&gt;&amp;#34;/&amp;#34;&lt;/span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_on_device_code &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;None&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_tokens &lt;span style="color:#f92672"&gt;=&lt;/span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_load_cache()&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;def&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;set_device_code_callback&lt;/span&gt;(self, fn) &lt;span style="color:#f92672"&gt;-&amp;gt;&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;None&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_on_device_code &lt;span style="color:#f92672"&gt;=&lt;/span&gt; fn&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;async&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;def&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;_device_code_auth&lt;/span&gt;(self) &lt;span style="color:#f92672"&gt;-&amp;gt;&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;None&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;async&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;with&lt;/span&gt; httpx&lt;span style="color:#f92672"&gt;.&lt;/span&gt;AsyncClient() &lt;span style="color:#66d9ef"&gt;as&lt;/span&gt; client:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; resp &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; client&lt;span style="color:#f92672"&gt;.&lt;/span&gt;post(&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;f&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_authority&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#e6db74"&gt;/oauth2/v2.0/devicecode&amp;#34;&lt;/span&gt;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; data&lt;span style="color:#f92672"&gt;=&lt;/span&gt;{&lt;span style="color:#e6db74"&gt;&amp;#34;client_id&amp;#34;&lt;/span&gt;: self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_client_id, &lt;span style="color:#e6db74"&gt;&amp;#34;scope&amp;#34;&lt;/span&gt;: OAUTH_SCOPES},&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; timeout&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;30&lt;/span&gt;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; )&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; flow &lt;span style="color:#f92672"&gt;=&lt;/span&gt; resp&lt;span style="color:#f92672"&gt;.&lt;/span&gt;json()&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; user_code &lt;span style="color:#f92672"&gt;=&lt;/span&gt; flow[&lt;span style="color:#e6db74"&gt;&amp;#34;user_code&amp;#34;&lt;/span&gt;]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; verification_uri &lt;span style="color:#f92672"&gt;=&lt;/span&gt; flow[&lt;span style="color:#e6db74"&gt;&amp;#34;verification_uri&amp;#34;&lt;/span&gt;]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; device_code &lt;span style="color:#f92672"&gt;=&lt;/span&gt; flow[&lt;span style="color:#e6db74"&gt;&amp;#34;device_code&amp;#34;&lt;/span&gt;]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; interval &lt;span style="color:#f92672"&gt;=&lt;/span&gt; flow&lt;span style="color:#f92672"&gt;.&lt;/span&gt;get(&lt;span style="color:#e6db74"&gt;&amp;#34;interval&amp;#34;&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;5&lt;/span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; expires_in &lt;span style="color:#f92672"&gt;=&lt;/span&gt; flow&lt;span style="color:#f92672"&gt;.&lt;/span&gt;get(&lt;span style="color:#e6db74"&gt;&amp;#34;expires_in&amp;#34;&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;300&lt;/span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_on_device_code:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_on_device_code({&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;user_code&amp;#34;&lt;/span&gt;: user_code,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;verification_uri&amp;#34;&lt;/span&gt;: verification_uri,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;message&amp;#34;&lt;/span&gt;: flow&lt;span style="color:#f92672"&gt;.&lt;/span&gt;get(&lt;span style="color:#e6db74"&gt;&amp;#34;message&amp;#34;&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;&amp;#34;&lt;/span&gt;),&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; })&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;else&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;try&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; webbrowser&lt;span style="color:#f92672"&gt;.&lt;/span&gt;open(verification_uri)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;except&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;Exception&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;pass&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; deadline &lt;span style="color:#f92672"&gt;=&lt;/span&gt; time&lt;span style="color:#f92672"&gt;.&lt;/span&gt;time() &lt;span style="color:#f92672"&gt;+&lt;/span&gt; expires_in&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;while&lt;/span&gt; time&lt;span style="color:#f92672"&gt;.&lt;/span&gt;time() &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt; deadline:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; asyncio&lt;span style="color:#f92672"&gt;.&lt;/span&gt;sleep(interval)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;async&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;with&lt;/span&gt; httpx&lt;span style="color:#f92672"&gt;.&lt;/span&gt;AsyncClient() &lt;span style="color:#66d9ef"&gt;as&lt;/span&gt; client:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; resp &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; client&lt;span style="color:#f92672"&gt;.&lt;/span&gt;post(&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;f&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_authority&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#e6db74"&gt;/oauth2/v2.0/token&amp;#34;&lt;/span&gt;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; data&lt;span style="color:#f92672"&gt;=&lt;/span&gt;{&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;client_id&amp;#34;&lt;/span&gt;: self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_client_id,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;grant_type&amp;#34;&lt;/span&gt;: &lt;span style="color:#e6db74"&gt;&amp;#34;urn:ietf:params:oauth:grant-type:device_code&amp;#34;&lt;/span&gt;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;device_code&amp;#34;&lt;/span&gt;: device_code,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; },&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; timeout&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;30&lt;/span&gt;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; )&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; body &lt;span style="color:#f92672"&gt;=&lt;/span&gt; resp&lt;span style="color:#f92672"&gt;.&lt;/span&gt;json()&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; resp&lt;span style="color:#f92672"&gt;.&lt;/span&gt;status_code &lt;span style="color:#f92672"&gt;==&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;200&lt;/span&gt; &lt;span style="color:#f92672"&gt;and&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;access_token&amp;#34;&lt;/span&gt; &lt;span style="color:#f92672"&gt;in&lt;/span&gt; body:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; self&lt;span style="color:#f92672"&gt;.&lt;/span&gt;_store_tokens(body)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; error &lt;span style="color:#f92672"&gt;=&lt;/span&gt; body&lt;span style="color:#f92672"&gt;.&lt;/span&gt;get(&lt;span style="color:#e6db74"&gt;&amp;#34;error&amp;#34;&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;&amp;#34;&lt;/span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; error &lt;span style="color:#f92672"&gt;==&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;authorization_pending&amp;#34;&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;continue&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;elif&lt;/span&gt; error &lt;span style="color:#f92672"&gt;==&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;slow_down&amp;#34;&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; interval &lt;span style="color:#f92672"&gt;+=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;5&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;elif&lt;/span&gt; error &lt;span style="color:#f92672"&gt;in&lt;/span&gt; (&lt;span style="color:#e6db74"&gt;&amp;#34;authorization_declined&amp;#34;&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;expired_token&amp;#34;&lt;/span&gt;):&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;raise&lt;/span&gt; AuthError(error)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;else&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;raise&lt;/span&gt; AuthError(body&lt;span style="color:#f92672"&gt;.&lt;/span&gt;get(&lt;span style="color:#e6db74"&gt;&amp;#34;error_description&amp;#34;&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;Auth failed&amp;#34;&lt;/span&gt;))&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The polling loop handles the three error codes the spec defines: authorization_pending (keep waiting), slow_down (back off and increase the interval by 5 seconds), and the terminal errors that stop polling.&lt;/p&gt;&#10;&lt;h2 id="the-telegram-bridge"&gt;The Telegram Bridge&#10;&lt;/h2&gt;&lt;p&gt;With the callback mechanism in place, the Telegram bridge is just a script that registers a callback and uses the Telegram Bot API to deliver the code to you:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;import&lt;/span&gt; asyncio&lt;span style="color:#f92672"&gt;,&lt;/span&gt; os&lt;span style="color:#f92672"&gt;,&lt;/span&gt; sys&lt;span style="color:#f92672"&gt;,&lt;/span&gt; traceback&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;import&lt;/span&gt; httpx&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;from&lt;/span&gt; your_app.auth &lt;span style="color:#f92672"&gt;import&lt;/span&gt; AuthManager&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;from&lt;/span&gt; your_app.config &lt;span style="color:#f92672"&gt;import&lt;/span&gt; Settings&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;TELEGRAM_BOT_TOKEN &lt;span style="color:#f92672"&gt;=&lt;/span&gt; os&lt;span style="color:#f92672"&gt;.&lt;/span&gt;environ[&lt;span style="color:#e6db74"&gt;&amp;#34;TELEGRAM_BOT_TOKEN&amp;#34;&lt;/span&gt;]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;TELEGRAM_CHAT_ID &lt;span style="color:#f92672"&gt;=&lt;/span&gt; os&lt;span style="color:#f92672"&gt;.&lt;/span&gt;environ[&lt;span style="color:#e6db74"&gt;&amp;#34;TELEGRAM_CHAT_ID&amp;#34;&lt;/span&gt;]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;async&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;def&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;send_telegram&lt;/span&gt;(text: str) &lt;span style="color:#f92672"&gt;-&amp;gt;&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;None&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; url &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#e6db74"&gt;f&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;https://api.telegram.org/bot&lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;TELEGRAM_BOT_TOKEN&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#e6db74"&gt;/sendMessage&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;async&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;with&lt;/span&gt; httpx&lt;span style="color:#f92672"&gt;.&lt;/span&gt;AsyncClient() &lt;span style="color:#66d9ef"&gt;as&lt;/span&gt; client:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; client&lt;span style="color:#f92672"&gt;.&lt;/span&gt;post(url, json&lt;span style="color:#f92672"&gt;=&lt;/span&gt;{&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;chat_id&amp;#34;&lt;/span&gt;: TELEGRAM_CHAT_ID,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;text&amp;#34;&lt;/span&gt;: text,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;parse_mode&amp;#34;&lt;/span&gt;: &lt;span style="color:#e6db74"&gt;&amp;#34;Markdown&amp;#34;&lt;/span&gt;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }, timeout&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;30&lt;/span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;async&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;def&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;main&lt;/span&gt;() &lt;span style="color:#f92672"&gt;-&amp;gt;&lt;/span&gt; int:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; settings &lt;span style="color:#f92672"&gt;=&lt;/span&gt; Settings()&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; auth &lt;span style="color:#f92672"&gt;=&lt;/span&gt; AuthManager(settings&lt;span style="color:#f92672"&gt;.&lt;/span&gt;client_id, settings&lt;span style="color:#f92672"&gt;.&lt;/span&gt;authority)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; auth&lt;span style="color:#f92672"&gt;.&lt;/span&gt;is_signed_in():&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; send_telegram(&lt;span style="color:#e6db74"&gt;&amp;#34;Already authenticated.&amp;#34;&lt;/span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;def&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;on_device_code&lt;/span&gt;(info: dict) &lt;span style="color:#f92672"&gt;-&amp;gt;&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;None&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; msg &lt;span style="color:#f92672"&gt;=&lt;/span&gt; (&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;*Auth Required*&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;\n\n&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;f&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;Go to: &lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;info[&lt;span style="color:#e6db74"&gt;&amp;#39;verification_uri&amp;#39;&lt;/span&gt;]&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;\n&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;f&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;Enter code: `&lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;info[&lt;span style="color:#e6db74"&gt;&amp;#39;user_code&amp;#39;&lt;/span&gt;]&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#e6db74"&gt;`&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;\n\n&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;Complete sign-in in your browser and I&amp;#39;ll confirm when done.&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; )&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;try&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; asyncio&lt;span style="color:#f92672"&gt;.&lt;/span&gt;get_event_loop()&lt;span style="color:#f92672"&gt;.&lt;/span&gt;create_task(send_telegram(msg))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;except&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;RuntimeError&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;import&lt;/span&gt; requests&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; requests&lt;span style="color:#f92672"&gt;.&lt;/span&gt;post(&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#e6db74"&gt;f&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;https://api.telegram.org/bot&lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;TELEGRAM_BOT_TOKEN&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#e6db74"&gt;/sendMessage&amp;#34;&lt;/span&gt;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; json&lt;span style="color:#f92672"&gt;=&lt;/span&gt;{&lt;span style="color:#e6db74"&gt;&amp;#34;chat_id&amp;#34;&lt;/span&gt;: TELEGRAM_CHAT_ID, &lt;span style="color:#e6db74"&gt;&amp;#34;text&amp;#34;&lt;/span&gt;: msg, &lt;span style="color:#e6db74"&gt;&amp;#34;parse_mode&amp;#34;&lt;/span&gt;: &lt;span style="color:#e6db74"&gt;&amp;#34;Markdown&amp;#34;&lt;/span&gt;},&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; timeout&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;10&lt;/span&gt;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; )&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; auth&lt;span style="color:#f92672"&gt;.&lt;/span&gt;set_device_code_callback(on_device_code)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;try&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; user_info &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; auth&lt;span style="color:#f92672"&gt;.&lt;/span&gt;sign_in()&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; send_telegram(&lt;span style="color:#e6db74"&gt;f&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;*Signed in* as &lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;user_info[&lt;span style="color:#e6db74"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;]&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#e6db74"&gt; (&lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;user_info[&lt;span style="color:#e6db74"&gt;&amp;#39;email&amp;#39;&lt;/span&gt;]&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#e6db74"&gt;)&amp;#34;&lt;/span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;except&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;Exception&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;as&lt;/span&gt; exc:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; send_telegram(&lt;span style="color:#e6db74"&gt;f&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;*Auth failed:* &lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;exc&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;\n&lt;/span&gt;&lt;span style="color:#e6db74"&gt;```&lt;/span&gt;&lt;span style="color:#e6db74"&gt;{&lt;/span&gt;traceback&lt;span style="color:#f92672"&gt;.&lt;/span&gt;format_exc()[:&lt;span style="color:#ae81ff"&gt;800&lt;/span&gt;]&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;&lt;span style="color:#e6db74"&gt;```&amp;#34;&lt;/span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; __name__ &lt;span style="color:#f92672"&gt;==&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;__main__&amp;#34;&lt;/span&gt;:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; sys&lt;span style="color:#f92672"&gt;.&lt;/span&gt;exit(asyncio&lt;span style="color:#f92672"&gt;.&lt;/span&gt;run(main()))&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="the-openclaw-skill"&gt;The OpenClaw Skill&#10;&lt;/h2&gt;&lt;p&gt;On the OpenClaw side, a &amp;ldquo;skill&amp;rdquo; is a markdown file. When OpenClaw sees a trigger phrase in Telegram, it runs the associated shell command. The markdown file looks like this:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-markdown" data-lang="markdown"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;---&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;name&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;myapp-auth&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;description&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;Authenticate with the cloud service via device code flow, coordinated through Telegram.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;---&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;## myapp-auth&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Use this skill when the user sends &amp;#34;/auth&amp;#34;, &amp;#34;authenticate&amp;#34;, or &amp;#34;sign in&amp;#34;.&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Run the following command and wait up to 360 seconds for it to complete.&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;The script sends the device code to the user via Telegram and confirms when done.&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; docker exec myapp-sidecar-1 python /app/scripts/telegram_auth.py&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="summary"&gt;Summary&#10;&lt;/h2&gt;&lt;p&gt;Device code flow is a mature, widely-supported OAuth2 pattern that maps naturally onto OpenClaw running in Docker container. With this pattern OpenClaw never handles your credentials. It gets scoped, revocable tokens from the identity provider, after you have authenticated in your own browser. A Telegram bot is all you need to coordinate the handoff of the temporary code.&lt;/p&gt;&#10;&lt;p&gt;The approach works for many use-cases across Microsoft accounts, Google, GitHub, AWS, Auth0, Okta and others. It supports exactly the kinds of personal automations that make an OpenClaw genuinely useful in daily life.&lt;/p&gt;&#10;&lt;h2 id="references"&gt;References&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://docs.openclaw.ai/" target="_blank" rel="noopener"&#10; &gt;OpenClaw Documentation&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://docs.openclaw.ai/tools/creating-skills" target="_blank" rel="noopener"&#10; &gt;OpenClaw: Creating Skills&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://datatracker.ietf.org/doc/html/rfc8628" target="_blank" rel="noopener"&#10; &gt;RFC 8628: OAuth 2.0 Device Authorization Grant&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://learn.microsoft.com/en-us/entra/identity-platform/scenario-desktop-acquire-token-device-code-flow" target="_blank" rel="noopener"&#10; &gt;Microsoft Identity Platform: Acquire a Token Using Device Code Flow&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://learn.microsoft.com/en-us/graph/permissions-reference" target="_blank" rel="noopener"&#10; &gt;Microsoft Graph Permissions Reference&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://auth0.com/docs/get-started/authentication-and-authorization-flow/device-authorization-flow" target="_blank" rel="noopener"&#10; &gt;Auth0: Device Authorization Flow&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://developer.okta.com/docs/guides/device-authorization-grant/main/" target="_blank" rel="noopener"&#10; &gt;Okta: Configure Device Authorization Grant Flow&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://core.telegram.org/bots/api" target="_blank" rel="noopener"&#10; &gt;Telegram Bot API&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://docs.docker.com/reference/compose-file/" target="_blank" rel="noopener"&#10; &gt;Docker Compose File Reference&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item><item><title>OpenflowSight - Log Analysis for Snowflake Openflow Telemetry</title><link>https://www.tewari.info/2026/01/24/openflowsight-log-analysis-for-snowflake-openflow-telemetry/</link><pubDate>Sat, 24 Jan 2026 17:10:58 +0000</pubDate><guid>https://www.tewari.info/2026/01/24/openflowsight-log-analysis-for-snowflake-openflow-telemetry/</guid><description>&lt;p&gt;&lt;strong&gt;OpenflowSight&lt;/strong&gt; is a Streamlit application for searching, filtering, and analyzing Openflow telemetry data, inspired by &lt;a class="link" href="https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview" target="_blank" rel="noopener"&#10; &gt;Azure App Insights&lt;/a&gt; Search UX.&lt;/p&gt;&#10;&lt;p&gt;It&amp;rsquo;s a log explorer focused on Openflow telemetry. It helps you quickly identify relevant events, see when they spiked, and which processors were involved. Search, group similar events, and export results for deeper offline analysis.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://docs.snowflake.com/en/user-guide/data-integration/openflow/monitor" target="_blank" rel="noopener"&#10; &gt;Openflow&lt;/a&gt; is an exciting new unified data integration tool from Snowflake based on Apache NiFi. Logs, traces, and metrics emitted at runtime are written to the &lt;a class="link" href="https://docs.snowflake.com/en/developer-guide/logging-tracing/event-table-setting-up" target="_blank" rel="noopener"&#10; &gt;Event table&lt;/a&gt; which supports the &lt;a class="link" href="https://docs.snowflake.com/en/developer-guide/logging-tracing/event-table-columns" target="_blank" rel="noopener"&#10; &gt;OpenTelemetry data model&lt;/a&gt;. OpenflowSight surfaces this data to enable convenient, efficient monitoring and analysis of Openflow operations from a graphical dashboard—instead of using SQL queries.&lt;/p&gt;&#10;&lt;h2 id="key-features"&gt;Key Features&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Runtime Filtering&lt;/strong&gt; — Select multiple runtimes, toggle system runtimes, filter by processor and log level&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Smart Search&lt;/strong&gt; — Multi-term search (comma-separated) with contains, regex, and exact match modes&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Timeline View&lt;/strong&gt; — Interactive histogram with zoom/pan, configurable time buckets (1 min to 1 hour), preset windows (1h/6h/24h/7d)&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Grouped Patterns&lt;/strong&gt; — Fuzzy clustering that normalizes dynamic values (timestamps, UUIDs) for accurate pattern grouping&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Individual Logs&lt;/strong&gt; — Excel-like grid with sorting, filtering, pagination, and multi-select&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;CSV Export&lt;/strong&gt; — One-click export with smart file naming&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="tech-stack"&gt;Tech Stack&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://streamlit.io/" target="_blank" rel="noopener"&#10; &gt;Streamlit&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://plotly.com/python/" target="_blank" rel="noopener"&#10; &gt;Plotly&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://altair-viz.github.io/" target="_blank" rel="noopener"&#10; &gt;Altair&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://www.ag-grid.com/" target="_blank" rel="noopener"&#10; &gt;AG Grid&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://github.com/rapidfuzz/RapidFuzz" target="_blank" rel="noopener"&#10; &gt;RapidFuzz&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://pandas.pydata.org/" target="_blank" rel="noopener"&#10; &gt;Pandas&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="open-source"&gt;Open Source&#10;&lt;/h2&gt;&lt;p&gt;OpenflowSight is open-source and contributions are welcome—features, fixes, docs, anything. If it helps you debug Openflow pipelines faster, that&amp;rsquo;s a win.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://github.com/ashtewari/openflowsight" target="_blank" rel="noopener"&#10; &gt;View on GitHub →&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Understanding RAG @ All Things Open AI 2025</title><link>https://www.tewari.info/2025/03/30/understanding-rag-all-things-open-ai-2025/</link><pubDate>Mon, 31 Mar 2025 02:29:39 +0000</pubDate><guid>https://www.tewari.info/2025/03/30/understanding-rag-all-things-open-ai-2025/</guid><description>&lt;p&gt;&lt;strong&gt;What I learned while creating Bookshelf (open source RAG Application)&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;I had the opportunity to speak at the &lt;a class="link" href="https://allthingsopen.ai/" target="_blank" rel="noopener"&#10; &gt;AllThingsOpen.ai 2025 Conference&lt;/a&gt; recently. It was a wonderful experience to learn from and share with so many amazing fellow presenters and attendees. All Things Open AI 2025 session recordings are available now.&lt;/p&gt;&#10;&lt;p&gt;I spoke about several key aspects of Retrieval-Augmented Generation (RAG) and vector databases. The main topics I addressed included The Core Concepts of RAG, Embedding Models vs. Inference Models, Handling Multiple Embeddings and various Optimizations Beyond Naive RAG such as chunking strategies, enrichment with metadata, auto-merging retriever, and reranking models. Finally, I touched on Local Execution and GPU Utilization.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/ato-ai-2025-bookshelf-rag-ash-slide01.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;You can watch the recording here: &lt;a class="link" href="https://youtu.be/vWrG8whSHwk?si=CJg0qlb5FwTU9w7y" target="_blank" rel="noopener"&#10; &gt;YouTube - How I created Bookshelf: An Open Source AI-Powered Personal Knowledge Base - Ash Tewari&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The slides can be downloaded from here: (&lt;a class="link" href="https://drive.google.com/drive/folders/1SSceCPGBytJ7B4nP2kQyX_DPpP6iHenH?usp=sharing" target="_blank" rel="noopener"&#10; &gt;Google Drive Link&lt;/a&gt;)&lt;/p&gt;&#10;&lt;p&gt;References and Links:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;AI Powered Bookshelf - &lt;a class="link" href="https://www.tewari.info/2024/04/28/ai-powered-bookshelf/" &gt;Blog Post&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;HuggingFace - &lt;a class="link" href="https://huggingface.co/spaces/mteb/leaderboard" target="_blank" rel="noopener"&#10; &gt;MTEB Leaderboard&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;PyTorch - &lt;a class="link" href="https://pytorch.org/get-started/locally/" target="_blank" rel="noopener"&#10; &gt;Local Execution&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://ai.plainenglish.io/a-brief-introduction-to-retrieval-augmented-generation-rag-b7eb70982891" target="_blank" rel="noopener"&#10; &gt;Medium - A Brief Introduction to Retrieval Augmented Generation(RAG)&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;[Microsoft - RAG Architecture](http://Design and develop a RAG solution)&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-customize-rag.html" target="_blank" rel="noopener"&#10; &gt;Amazon - Retrieval Augmented Generation&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item><item><title>SPCHR: Speech To Text App for Windows</title><link>https://www.tewari.info/2025/02/09/spchr-speech-to-text-app-for-windows/</link><pubDate>Mon, 10 Feb 2025 04:32:25 +0000</pubDate><guid>https://www.tewari.info/2025/02/09/spchr-speech-to-text-app-for-windows/</guid><description>&lt;p&gt;I&amp;rsquo;m excited to announce the release of SPCHR. Pronounced as &amp;ldquo;speaker&amp;rdquo;. I know, I know. My apologies, it was too late at night and that&amp;rsquo;s the best I could come up with ;)&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;It is a Windows desktop application for speech-to-text transcription.&lt;/li&gt;&#10;&lt;li&gt;You can use it to &amp;ldquo;add&amp;rdquo; voice input to applications that don’t natively support it. It works anywhere you can type or paste text.&lt;/li&gt;&#10;&lt;li&gt;You can use it entirely locally on your PC if you like, so it is private and secure.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="key-features"&gt;Key Features&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Flexible&lt;/strong&gt;: SPCHR can use either Azure Speech Services or a local OpenAI Whisper model, giving you the flexibility to choose between cloud-based and local transcription.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Zero Configuration&lt;/strong&gt;: The application works immediately with local Whisper processing - no account setup required!&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Global Hotkey&lt;/strong&gt;: Start and stop recording from &lt;em&gt;any&lt;/em&gt; application with Ctrl+Alt+L.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Seamless Integration&lt;/strong&gt;: Transcribed text is automatically pasted into your active window.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="getting-started"&gt;Getting Started&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;Clone the repository&lt;/li&gt;&#10;&lt;li&gt;Build the solution using Visual Studio and run it&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Press Ctrl+Alt+L and start speaking&lt;/strong&gt;&lt;/li&gt;&#10;&lt;li&gt;Watch as your words appear in your active window&lt;/li&gt;&#10;&lt;li&gt;For those wanting cloud-based transcription, simply add your Azure Speech Services credentials to the configuration file.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="open-source"&gt;Open Source&#10;&lt;/h2&gt;&lt;p&gt;SPCHR is released under the MIT License, and I welcome contributions from the community. Whether you&amp;rsquo;re interested in adding features, fixing bugs, or improving documentation, your help is appreciated.&lt;/p&gt;&#10;&lt;p&gt;Check out &lt;a class="link" href="https://github.com/ashtewari/spchr" target="_blank" rel="noopener"&#10; &gt;GitHub repository&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="whats-next"&gt;What&amp;rsquo;s next&#10;&lt;/h2&gt;&lt;p&gt;This is just the beginning for SPCHR. Several improvements can be done:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Additional language support&lt;/li&gt;&#10;&lt;li&gt;Customizable hotkeys&lt;/li&gt;&#10;&lt;li&gt;Installer&lt;/li&gt;&#10;&lt;li&gt;UI Enhancements&lt;/li&gt;&#10;&lt;li&gt;AI Enhanced Features&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="try-it-out"&gt;Try it out&#10;&lt;/h2&gt;&lt;p&gt;Ready to transform how you interact with your computer? Visit the &lt;a class="link" href="https://github.com/ashtewari/spchr" target="_blank" rel="noopener"&#10; &gt;GitHub repository&lt;/a&gt; to get started with SPCHR today.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m excited to see how you&amp;rsquo;ll use SPCHR in your workflow and look forward to your feedback!&lt;/p&gt;&#10;</description></item><item><title>WhichBox - AI Assistant App</title><link>https://www.tewari.info/2024/08/04/whichbox-ai-assistant-app/</link><pubDate>Sun, 04 Aug 2024 17:37:56 +0000</pubDate><guid>https://www.tewari.info/2024/08/04/whichbox-ai-assistant-app/</guid><description>&lt;p&gt;Do you remember which one of those boxes in the garage has your old phone? Or that toy your child wants to play with again? Or the tripod you need for your weekend trip? Oh what about that massager that you could really use right now! You would probably have to dig through those boxes to find it. Same problem when moving. There are always some boxes that you don&amp;rsquo;t want to open right away, but you wish you could open just the right one when you need something.&lt;/p&gt;&#10;&lt;p&gt;I have created &lt;a class="link" href="https://whichbox.streamlit.app/" target="_blank" rel="noopener"&#10; &gt;WhichBox&lt;/a&gt;- your AI Assistant to find that box. It uses latest Vision AI models to help you find things quickly. Here&amp;rsquo;s what you do -&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Take pictures of the content inside each labelled box to create an inventory.&lt;/li&gt;&#10;&lt;li&gt;Use WhichBox to easily identify the box containing the item you are looking for.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;You can check it out here - &lt;a class="link" href="https://whichbox.streamlit.app/" target="_blank" rel="noopener"&#10; &gt;https://whichbox.streamlit.app/&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The demo has four photos of labelled boxes with some content in them. Note that there can be multiple photos of the same box. You can take photos as you are filling up the box to capture things at the bottom.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-47.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;You can ask for a specific thing, like &amp;ldquo;Find Fitbit&amp;rdquo; or just &amp;ldquo;fitbit&amp;rdquo;&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-48.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;You can go for a general category, like &amp;ldquo;Camera Equipment&amp;rdquo;&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-49.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;You can get all boxes containing &amp;ldquo;USB Adapters&amp;rdquo;&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-50.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;You can look for &amp;ldquo;Groot&amp;rdquo; or if you can&amp;rsquo;t remember the name of a specific toy then you can look for &amp;ldquo;all toys of movie characters&amp;rdquo;&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-51.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;For now, you can bring your own API Key and use your own photos to try this out.&lt;/p&gt;&#10;&lt;p&gt;WhichBox : &lt;a class="link" href="https://whichbox.streamlit.app/" target="_blank" rel="noopener"&#10; &gt;https://whichbox.streamlit.app/&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>AI Powered Bookshelf</title><link>https://www.tewari.info/2024/04/28/ai-powered-bookshelf/</link><pubDate>Mon, 29 Apr 2024 00:25:55 +0000</pubDate><guid>https://www.tewari.info/2024/04/28/ai-powered-bookshelf/</guid><description>&lt;p&gt;Bookshelf is a Generative AI application built as a rudimentary, but fairly capable, &lt;a class="link" href="https://docs.llamaindex.ai/en/stable/use_cases/q_and_a/" target="_blank" rel="noopener"&#10; &gt;RAG&lt;/a&gt; implementation written in &lt;a class="link" href="https://www.python.org/doc/" target="_blank" rel="noopener"&#10; &gt;python&lt;/a&gt;. It can use an open source LLM model (running locally or in the cloud) or a GPT model via OpenAI&amp;rsquo;s API.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;The application is created using &lt;a class="link" href="https://streamlit.io/" target="_blank" rel="noopener"&#10; &gt;streamlit&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;I used &lt;a class="link" href="https://www.llamaindex.ai/" target="_blank" rel="noopener"&#10; &gt;llama-index&lt;/a&gt; for orchestrating the loading of documents into the &lt;a class="link" href="https://en.wikipedia.org/wiki/Vector_database" target="_blank" rel="noopener"&#10; &gt;vector database&lt;/a&gt;. Only TokenTextSplitter is currently used. It does not optimize for PDF, html and other formats.&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://www.trychroma.com/" target="_blank" rel="noopener"&#10; &gt;ChromaDb&lt;/a&gt; is the vector database to store the embedding vectors and metadata of the document nodes.&lt;/li&gt;&#10;&lt;li&gt;You can use any open source embeddings model from &lt;a class="link" href="https://huggingface.co/models?other=embeddings" target="_blank" rel="noopener"&#10; &gt;HuggingFace&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;Bookshelf will automatically use the GPU when creating local embeddings, if the GPU is available on your machine.&lt;/li&gt;&#10;&lt;li&gt;You can use &lt;a class="link" href="https://platform.openai.com/docs/guides/embeddings" target="_blank" rel="noopener"&#10; &gt;OpenAI embeddings&lt;/a&gt; as well. There is no way to use a specific OpenAI embedding model or configure the parameters yet.&lt;/li&gt;&#10;&lt;li&gt;Use OpenAI API or any OpenAI compatible LLM API (using &lt;a class="link" href="https://lmstudio.ai/" target="_blank" rel="noopener"&#10; &gt;LMStudio&lt;/a&gt;, &lt;a class="link" href="https://ollama.com/" target="_blank" rel="noopener"&#10; &gt;Ollama&lt;/a&gt; or &lt;a class="link" href="https://github.com/oobabooga/text-generation-webui" target="_blank" rel="noopener"&#10; &gt;text-generation-webui&lt;/a&gt;) of your choice.&lt;/li&gt;&#10;&lt;li&gt;There is a live demo on streamlit cloud - &lt;a class="link" href="https://bookshelf.streamlit.app/" target="_blank" rel="noopener"&#10; &gt;https://bookshelf.streamlit.app/&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;The demo allows only OpenAI integration. You can run it locally for accessing Open Source embedding models and LLMs.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;Live demo - &lt;a class="link" href="https://bookshelf.streamlit.app/" target="_blank" rel="noopener"&#10; &gt;https://bookshelf.streamlit.app/&lt;/a&gt;&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;p&gt;You will need your OpenAI api key for the demo.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-39.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;If you are running it locally, you will have the option of using an Open Source LLM instance via an API Url. In the screenshot, I am using an open source Embedding Model from HuggingFace (sentence-transformers/all-mpnet-base-v2) and The local LLM server at http://localhost:1234/v1&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-40.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Collections tab shows all collections in the database. It also shows the names of all the files in the selected collection. You can inspect individual chunks for the metadata and text of each chunk. You can delete all contents of the collection &lt;strong&gt;(&lt;/strong&gt; &lt;strong&gt;there is no warning&lt;/strong&gt; &lt;strong&gt;)&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-38.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;You can modify the collection name to create a new collection. Multiple files can be uploaded at the same time. You can specify if you want to extract metadata from the file contents. &lt;strong&gt;Enabling this option can add significant cost&lt;/strong&gt; because it employs Extractors which use LLM to generate title, summaries, keywords and questions for each document.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-41.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;On the Retrieve tab, you can query chunks which are semantically related to your query.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-43.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;On the Prompt tab, you can prompt your LLM. The context as well as the Prompt Template is editable.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-44.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Here is an example of using the context retrieved from chunks in the Vector database to query the LLM.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-45.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;This inference was performed using &lt;a class="link" href="https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf" target="_blank" rel="noopener"&#10; &gt;Phi3&lt;/a&gt; model running locally on LMStudio.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-46.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Code is on Github - &lt;a class="link" href="https://github.com/ashtewari/bookshelf" target="_blank" rel="noopener"&#10; &gt;https://github.com/ashtewari/bookshelf&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Have fun!&lt;/p&gt;&#10;</description></item><item><title>Iterative Prompt Engineering with LLMStudio</title><link>https://www.tewari.info/2024/02/04/iterative-prompt-engineering-with-llmstudio/</link><pubDate>Mon, 05 Feb 2024 01:10:11 +0000</pubDate><guid>https://www.tewari.info/2024/02/04/iterative-prompt-engineering-with-llmstudio/</guid><description>&lt;p&gt;Creating the ideal prompt can be the key to transforming a less than average outcome into one that is remarkably relevant. Discovering the right prompt often involves numerous revisions and a method of trial and error. I felt the need to refer to my past attempts, modifications made to prompts, LLM models I tried and other LLM settings as well relative cost of these combinations. There are a few options to help with this : &lt;a class="link" href="https://github.com/microsoft/promptflow" target="_blank" rel="noopener"&#10; &gt;promptflow&lt;/a&gt;, &lt;a class="link" href="https://www.langchain.com/langsmith" target="_blank" rel="noopener"&#10; &gt;langsmith&lt;/a&gt;, &lt;a class="link" href="https://github.com/TensorOpsAI/LLMStudio" target="_blank" rel="noopener"&#10; &gt;LLMStudio&lt;/a&gt; and others.&lt;/p&gt;&#10;&lt;p&gt;I tried LLMStudio and promptflow. This article is about LLMStudio.&lt;/p&gt;&#10;&lt;p&gt;If you are installing LLMStudio on Windows, use &lt;a class="link" href="https://learn.microsoft.com/en-us/windows/wsl/" target="_blank" rel="noopener"&#10; &gt;WSL&lt;/a&gt;. Here are the steps :&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Create a folder on your machine.&lt;/li&gt;&#10;&lt;li&gt;Create .env file here with following content:&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;OPENAI_API_KEY=&amp;#34;sk-api_key&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ANTHROPIC_API_KEY=&amp;#34;sk-api_key&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#10;&lt;li&gt;Enter wsl and create a new python environment with conda&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;(base) PS c:\code\llmstudio&amp;gt; wsl&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;(base) ash@DESKTOP:/mnt/d/code/llmstudio$ conda activate lmstd&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;LLMStudio runs on &lt;a class="link" href="https://bun.sh/" target="_blank" rel="noopener"&#10; &gt;Bun&lt;/a&gt;. Bun is a javascript runtime like &lt;a class="link" href="https://nodejs.org/en" target="_blank" rel="noopener"&#10; &gt;Node&lt;/a&gt;.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Instructions for installing bun on windows :&lt;br&gt;&#10;&lt;a class="link" href="https://bun.sh/docs/installation#windows" target="_blank" rel="noopener"&#10; &gt;https://bun.sh/docs/installation#windows&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get install unzip&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;powershell -c &amp;#34;irm bun.sh/install.ps1|iex&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-27.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;ul&gt;&#10;&lt;li&gt;Install Node v18, if you run into ReferenceError: Request is not defined    at Object.&lt;anonymous&gt; (/home/ash/miniconda3/lib/python3.11/site-packages/llmstudio/ui/node_modules/next/dist/server/web/spec-extension/request.js:28:27)&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-31.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;ul&gt;&#10;&lt;li&gt;Start LLMStudio&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-32.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-33.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-34.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-35.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Export the execution data as csv file by clicking on [Export data] button. This data includes the input, output, LLM model, Input and Output tokens as well as cost.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-37.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;References&lt;br&gt;&#10;&lt;a class="link" href="https://www.tensorops.ai/post/what-is-llmstudio" target="_blank" rel="noopener"&#10; &gt;What is LLMstudio?&lt;/a&gt;&lt;br&gt;&#10;&lt;a class="link" href="https://github.com/TensorOpsAI/LLMstudio" target="_blank" rel="noopener"&#10; &gt;LLMstudio&lt;/a&gt; by &lt;a class="link" href="http://tensorops.ai/" target="_blank" rel="noopener"&#10; &gt;TensorOps&lt;/a&gt;&lt;br&gt;&#10;&lt;a class="link" href="https://docs.llmstudio.ai/quickstart" target="_blank" rel="noopener"&#10; &gt;LLM Studio Quickstart&lt;/a&gt;&lt;br&gt;&#10;&lt;a class="link" href="https://dev.to/openhacking/install-bun-for-windows-a-modern-javascript-runtime-like-node-or-deno-449e" target="_blank" rel="noopener"&#10; &gt;Install Bun for Windows&lt;/a&gt;&lt;br&gt;&#10;&lt;a class="link" href="https://medium.com/@raj.nagaraj1990/setup-bun-js-in-windows-using-wsl-and-vs-code-712a00cd82a1" target="_blank" rel="noopener"&#10; &gt;Setup Bun JS in windows using WSL and VS code&lt;/a&gt;&lt;br&gt;&#10;&lt;a class="link" href="https://stackoverflow.com/questions/77383943/nextjs-referenceerror-request-is-not-defined-reading-old-version-of-node-s" target="_blank" rel="noopener"&#10; &gt;NextJS - ReferenceError: Request is not defined&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Prompt Engineering and Security - Custom GPT</title><link>https://www.tewari.info/2024/01/21/prompt-engineering-and-security-custom-gpt/</link><pubDate>Sun, 21 Jan 2024 23:01:24 +0000</pubDate><guid>https://www.tewari.info/2024/01/21/prompt-engineering-and-security-custom-gpt/</guid><description>&lt;p&gt;I have been delving into Advanced Prompt Engineering and Security techniques for Large Language Models (LLMs). As an exercise, I have created a custom GPT in &lt;a class="link" href="https://openai.com/blog/introducing-gpts" target="_blank" rel="noopener"&#10; &gt;ChatGPT&lt;/a&gt; to help practice spelling of English words. &lt;a class="link" href="https://bit.ly/3Ua0oib" target="_blank" rel="noopener"&#10; &gt;Spell It&lt;/a&gt; GPT is secured with Advanced Prompt Engineering techniques to guard against common attack vectors, including Direct Prompt Injection, Prompt Leaking, Role Playing, Simulation, DAN and Code Injection.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/spell-it-gpt-256.png"&#10;&#9;&#9;&#9;alt="Spell-It-GPT"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;Spell-It-GPT&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Play with the &lt;a class="link" href="https://bit.ly/3Ua0oib" target="_blank" rel="noopener"&#10; &gt;Spell It&lt;/a&gt; GPT and try to break it. It is not impossible but (probably) fairly difficult to do ;) Regardless, practice spelling and have fun!&lt;/p&gt;&#10;&lt;p&gt;Switch to &lt;a class="link" href="https://openai.com/blog/chatgpt-can-now-see-hear-and-speak" target="_blank" rel="noopener"&#10; &gt;Voice Mode&lt;/a&gt; in ChatGPT Mobile App to practice spelling and put headsets on for best results!&lt;/p&gt;&#10;&lt;p&gt;Spell It: &lt;a class="link" href="https://bit.ly/3Ua0oib" target="_blank" rel="noopener"&#10; &gt;https://bit.ly/3Ua0oib&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Here are some resources you can learn more about Prompt Engineering and Security:&lt;br&gt;&#10;&lt;a class="link" href="https://www.mercity.ai/blog-post/advanced-prompt-engineering-techniques" target="_blank" rel="noopener"&#10; &gt;Advanced Prompt Engineering Techniques&lt;/a&gt;&lt;br&gt;&#10;&lt;a class="link" href="https://owasp.org/www-project-top-10-for-large-language-model-applications/" target="_blank" rel="noopener"&#10; &gt;OWASP Top 10 for Large Language Model Applications&lt;/a&gt;&lt;br&gt;&#10;&lt;a class="link" href="https://github.com/OWASP/www-project-top-10-for-large-language-model-applications/wiki/Educational-Resources" target="_blank" rel="noopener"&#10; &gt;Educational Resources&lt;/a&gt;&lt;br&gt;&#10;&lt;a class="link" href="https://www.promptingguide.ai/risks/adversarial" target="_blank" rel="noopener"&#10; &gt;Adversarial Prompting in LLMs&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Get an NFT at All Things Open 2022</title><link>https://www.tewari.info/2022/10/31/get-an-nft-at-all-things-open-2022/</link><pubDate>Mon, 31 Oct 2022 22:02:30 +0000</pubDate><guid>https://www.tewari.info/2022/10/31/get-an-nft-at-all-things-open-2022/</guid><description>&lt;p&gt;You can get a free commemorative NFT if you met me at &lt;a class="link" href="https://2022.allthingsopen.org/" target="_blank" rel="noopener"&#10; &gt;All Things Open&lt;/a&gt; Conference in Raleigh, NC.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;DM me at &lt;a class="link" href="https://twitter.com/ashtewari" target="_blank" rel="noopener"&#10; &gt;@ashtewari&lt;/a&gt; for the code to redeem your &lt;a class="link" href="https://poap.xyz/" target="_blank" rel="noopener"&#10; &gt;POAP NFT&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;Visit &lt;a class="link" href="https://app.poap.xyz/claim/" target="_blank" rel="noopener"&#10; &gt;https://app.poap.xyz/claim/&lt;/a&gt; and enter your code&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-26.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;ul&gt;&#10;&lt;li&gt;Enter your Ethereum address (or ENS/Email)&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-24.png"&#10;&#9;&#9;&#9;alt="Mint POAP NFT"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;Mint POAP NFT&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;ul&gt;&#10;&lt;li&gt;Check [Free minting on Gnosis] for free minting of NFT on xDAI chain&#10;&lt;ul&gt;&#10;&lt;li&gt;If you uncheck this box you can migrate to &lt;a class="link" href="https://ethereum.org/en/nft/" target="_blank" rel="noopener"&#10; &gt;Ethereum&lt;/a&gt; mainnet now but you will have to pay for that transaction. You can also migrate to mainnet later if you wish.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;Click on Mint POAP button&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Your NFT will be confirmed after the minting is complete.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-25.png"&#10;&#9;&#9;&#9;alt="POAP NFT Confirmation"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;POAP NFT Confirmation&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;POAPs are Non Fungible Tokens (NFT) issued on the blockchain. Learn more of POAPs here : &lt;a class="link" href="https://poap.xyz/" target="_blank" rel="noopener"&#10; &gt;https://poap.xyz/&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Security Analysis of Etheruem Smart Contracts with Mythril</title><link>https://www.tewari.info/2022/05/22/security-analysis-of-etheruem-smart-contracts-with-mythril/</link><pubDate>Sun, 22 May 2022 23:32:20 +0000</pubDate><guid>https://www.tewari.info/2022/05/22/security-analysis-of-etheruem-smart-contracts-with-mythril/</guid><description>&lt;p&gt;&lt;a class="link" href="https://github.com/ConsenSys/mythril" target="_blank" rel="noopener"&#10; &gt;Mythril&lt;/a&gt; is an open-source security analysis tool for EVM bytecode, courtesy of &lt;a class="link" href="https://consensys.net/diligence/tools/" target="_blank" rel="noopener"&#10; &gt;ConsenSys&lt;/a&gt;. It is also a component of their Security Analysis Service - &lt;a class="link" href="https://mythx.io/" target="_blank" rel="noopener"&#10; &gt;Mythx&lt;/a&gt;. Mythril detects security vulnerabilities in smart contracts built for Ethereum and other EVM-compatible blockchains.&lt;/p&gt;&#10;&lt;p&gt;Vulnerabilities found by Mythril are reported with reference to the weaknesses listed on the Smart Contract Weakness Classification Registry (&lt;a class="link" href="https://swcregistry.io/" target="_blank" rel="noopener"&#10; &gt;SWC Registry&lt;/a&gt;). I will use two entries from SWC Registry for the examples in this article:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://swcregistry.io/docs/SWC-106#simple_suicidesol" target="_blank" rel="noopener"&#10; &gt;SWC-106&lt;/a&gt; - Due to missing or insufficient access controls, malicious parties can self-destruct the contract.&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://swcregistry.io/docs/SWC-107#simple_daosol" target="_blank" rel="noopener"&#10; &gt;SWC-107&lt;/a&gt; - One of the major dangers of calling external contracts is that they can take over the control flow. In the reentrancy attack (a.k.a. recursive call attack), a malicious contract calls back into the calling contract before the first invocation of the function is finished.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h3 id="install-mythril-on-windows"&gt;Install Mythril on Windows&#10;&lt;/h3&gt;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;&amp;gt; docker import mythril/myth&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://mythril-classic.readthedocs.io/en/master/installation.html" target="_blank" rel="noopener"&#10; &gt;https://mythril-classic.readthedocs.io/en/master/installation.html&lt;/a&gt;&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-16.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;h3 id="get-test-files-from-github"&gt;Get test files from github&#10;&lt;/h3&gt;&lt;p&gt;Source code for these tests is on github : &lt;a class="link" href="https://github.com/ashtewari/mythril-tests" target="_blank" rel="noopener"&#10; &gt;mythril-tests&lt;/a&gt;. Clone the repo locally and adjust the paths in the commands below to match your local environment.&lt;/p&gt;&#10;&lt;h3 id="analyze-a-local-smart-contract"&gt;Analyze a local smart contract&#10;&lt;/h3&gt;&lt;h5 id="analysis-of"&gt;&lt;strong&gt;Analysis of &lt;a class="link" href="https://github.com/ashtewari/mythril-tests/blob/master/mythx-tests/05222022-25/SelfDestructMultiTxFeasible.sol" target="_blank" rel="noopener"&#10; &gt;SelfDestructMultiTxFeasible.sol&lt;/a&gt;&lt;/strong&gt;&#10;&lt;/h5&gt;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;&amp;gt; docker run -v E:\share\:/data mythril/myth -v4 analyze /data/mythx-tests\05222022-25/SelfDestructMultiTxFeasible.sol&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;p&gt;Mythril reports an instance of SWC-106 vulnerability:&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-17.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;h5 id=""&gt;&#10;&lt;/h5&gt;&lt;p&gt;&lt;strong&gt;Analysis of &lt;a class="link" href="https://github.com/ashtewari/mythril-tests/blob/master/mythx-tests/05222022-25/SimpleDAO.sol" target="_blank" rel="noopener"&#10; &gt;SimpleDAO.sol&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;&amp;gt; docker run -v E:\share\:/data mythril/myth -v4 analyze /data/mythx-tests\05222022-25/SimpleDAO.sol&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;p&gt;Mythril reports three instances of SWC-107 and one instance of SWC-105:&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-18.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;h5 id="analysis-of-a"&gt;&lt;strong&gt;Analysis of a &lt;a class="link" href="https://github.com/ashtewari/mythril-tests/blob/master/mythx-tests/05222022-25/flatenned-01.sol" target="_blank" rel="noopener"&#10; &gt;flatenned contract file&lt;/a&gt;&lt;/strong&gt;&#10;&lt;/h5&gt;&lt;p&gt;File containing the two test contracts returns five instances of vulnerabilities of both contracts:&lt;/p&gt;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;&amp;gt; docker run -v E:\share\:/data mythril/myth -v4 analyze /data/mythx-tests\05222022-25/flatenned-01.sol&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-19.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;h5 id="analyze-a-contract-with-imported-contract"&gt;&lt;strong&gt;Analyze a contract with imported contract&lt;/strong&gt;&#10;&lt;/h5&gt;&lt;p&gt;Most smart contracts import other contracts to reuse functionality. You do not have to flatten the contracts into one file. Mythril can work with contracts with imports specified in them : &lt;a class="link" href="https://github.com/ashtewari/mythril-tests/blob/master/mythx-tests/05222022-26/SimpleDAOWithImport.sol" target="_blank" rel="noopener"&#10; &gt;SimpleDAOWithImport.sol&lt;/a&gt;&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-20.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;&amp;gt; docker run -v E:\share\:/data mythril/myth -v4 analyze /data/mythx-tests\05222022-26/SimpleDAOWithImport.sol&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;h5 id="analyze-a-contract-with-openzeppelin-style-import"&gt;&lt;strong&gt;Analyze a contract with @OpenZeppelin style import&lt;/strong&gt;&#10;&lt;/h5&gt;&lt;p&gt;Mythril relies on &lt;a class="link" href="https://github.com/ethereum/solc-js" target="_blank" rel="noopener"&#10; &gt;solc&lt;/a&gt; for compiling contract source code. For @OpenZeppelin style imports, you have to specify &amp;ndash;solc-json file containing remapping for solc to locate the referenced files : &lt;a class="link" href="https://github.com/ashtewari/mythril-tests/blob/master/mythx-tests/05222022-26/SimpleDAOWith-OzImport.sol" target="_blank" rel="noopener"&#10; &gt;SimpleDAOWith-OzImport.sol&lt;/a&gt;&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-22.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;&amp;gt; docker run -v E:\share\:/data mythril/myth -v4 analyze /data/mythx-tests\05222022-26/SimpleDAOWith-OzImport.sol &amp;ndash;solc-json=/data/solc-args.json&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-21.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;h3 id="analyzing-on-chain-contracts"&gt;Analyzing On-Chain Contracts&#10;&lt;/h3&gt;&lt;p&gt;Mythril can &lt;a class="link" href="https://mythril-classic.readthedocs.io/en/master/security-analysis.html#analyzing-on-chain-contracts" target="_blank" rel="noopener"&#10; &gt;analyze contracts deployed on the blockchain&lt;/a&gt; directly. You do not need source code of the contract. Support for &lt;a class="link" href="https://infura.io/" target="_blank" rel="noopener"&#10; &gt;infura&lt;/a&gt; is built-in, you can also use custom RPC endpoint. Replace INFURA_ID with your Infura project id and CONTACT_ADDRESS with the address of your contract on the blockchain :&lt;/p&gt;&#10;&#10; &lt;blockquote&gt;&#10; &lt;p&gt;&amp;gt; docker run mythril/myth -v4 analyze &amp;ndash;rpc infura-rinkeby &amp;ndash;infura-id INFURA_ID -a CONTACT_ADDRESS&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-23.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;</description></item><item><title>KHEL Coin on Ethereum</title><link>https://www.tewari.info/2022/05/09/khel-coin-on-ethereum/</link><pubDate>Tue, 10 May 2022 01:41:59 +0000</pubDate><guid>https://www.tewari.info/2022/05/09/khel-coin-on-ethereum/</guid><description>&lt;p&gt;KhelCoin (KHEL) is an &lt;a class="link" href="https://ethereum.org/en/developers/docs/standards/tokens/erc-20/" target="_blank" rel="noopener"&#10; &gt;ERC-20 token&lt;/a&gt; available on &lt;a class="link" href="https://ethereum.org/en/" target="_blank" rel="noopener"&#10; &gt;Ethereum&lt;/a&gt; blockchain. It is a &lt;a class="link" href="https://ethereum.org/en/smart-contracts/" target="_blank" rel="noopener"&#10; &gt;Smart Contract&lt;/a&gt; created with &lt;a class="link" href="https://docs.soliditylang.org/en/latest/" target="_blank" rel="noopener"&#10; &gt;Solidity&lt;/a&gt;, &lt;a class="link" href="https://www.openzeppelin.com/contracts" target="_blank" rel="noopener"&#10; &gt;OpenZeppelin&lt;/a&gt;, &lt;a class="link" href="https://trufflesuite.com/" target="_blank" rel="noopener"&#10; &gt;Truffle&lt;/a&gt;, &lt;a class="link" href="https://trufflesuite.com/ganache/" target="_blank" rel="noopener"&#10; &gt;Ganache&lt;/a&gt;, &lt;a class="link" href="https://remix.ethereum.org/" target="_blank" rel="noopener"&#10; &gt;Remix&lt;/a&gt;, &lt;a class="link" href="https://web3js.readthedocs.io/" target="_blank" rel="noopener"&#10; &gt;web3.js&lt;/a&gt; and &lt;a class="link" href="https://code.visualstudio.com/" target="_blank" rel="noopener"&#10; &gt;VSCode&lt;/a&gt;. It is currently available on &lt;a class="link" href="https://rinkeby.etherscan.io/token/0x15AFeB0A2caD2caC3A8140c342789C310Ad82A83" target="_blank" rel="noopener"&#10; &gt;Rinkeby&lt;/a&gt; test network. It will be launched on the Mainnet in the near future.&lt;/p&gt;&#10;&lt;p&gt;You can get KHEL coins from this website - &lt;a class="link" href="https://ashtewari.github.io/khelcoin" target="_blank" rel="noopener"&#10; &gt;KHEL Coin ICO&lt;/a&gt;&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/khelcoin-ico-metamask.png"&#10;&#9;&#9;&#9;alt="KhelCoin ICO page prompting to install Metamask"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Head over to the ICO website. You will be prompted to install &lt;a class="link" href="https://metamask.io/" target="_blank" rel="noopener"&#10; &gt;Metamask&lt;/a&gt; and connect to your account on Rinkeby testnet. Click on &amp;ldquo;Buy KHEL Coins&amp;rdquo; button to get your own coins!&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/khelcoin-ico-buy.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Source code is on github - &lt;a class="link" href="https://github.com/ashtewari/khelcoin" target="_blank" rel="noopener"&#10; &gt;https://github.com/ashtewari/khelcoin&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Puzzle Icon Credit: &lt;a class="link" href="https://www.flaticon.com/free-icons/puzzle" target="_blank" rel="noopener"&#10; &gt;https://www.flaticon.com/free-icons/puzzle&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Kusto Queries on AKS Clusters</title><link>https://www.tewari.info/2021/04/25/kusto-queries-on-aks-clusters/</link><pubDate>Sun, 25 Apr 2021 19:40:55 +0000</pubDate><guid>https://www.tewari.info/2021/04/25/kusto-queries-on-aks-clusters/</guid><description>&lt;p&gt;&lt;a class="link" href="https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/" target="_blank" rel="noopener"&#10; &gt;Kusto&lt;/a&gt; query language can be used to get &lt;a class="link" href="https://docs.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-log-search" target="_blank" rel="noopener"&#10; &gt;insights&lt;/a&gt; into Azure Kubernetes Service (&lt;a class="link" href="https://azure.microsoft.com/en-us/services/kubernetes-service/" target="_blank" rel="noopener"&#10; &gt;AKS&lt;/a&gt;) clusters. &lt;a class="link" href="https://docs.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-overview" target="_blank" rel="noopener"&#10; &gt;Container insights&lt;/a&gt; collects data from AKS clusters and forwards it to &lt;a class="link" href="https://docs.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-tutorial" target="_blank" rel="noopener"&#10; &gt;Log Analytics&lt;/a&gt; workspace, if enabled for a cluster. This data is available for querying in the &lt;a class="link" href="https://docs.microsoft.com/en-us/azure/azure-monitor/logs/data-platform-logs" target="_blank" rel="noopener"&#10; &gt;Azure Monitor&lt;/a&gt;. Here is an example of how you can query the pods not in running state in specific namespaces.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;KubePodInventory&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| where Namespace in (&amp;#34;dv&amp;#34;,&amp;#34;test&amp;#34;,&amp;#34;prod&amp;#34;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| where ContainerStatus != &amp;#34;Running&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| where ContainerStatusReason !in (&amp;#34;&amp;#34;, &amp;#34;Completed&amp;#34;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| distinct Namespace, Name&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-7.png"&#10;&#9;&#9;&#9;alt="Log Analytics query results listing pods not in running state by namespace"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;The following query includes the name of the AKS cluster and renders the output as a stacked bar chart.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;KubePodInventory&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| where Namespace in (&amp;#34;dv&amp;#34;,&amp;#34;test&amp;#34;,&amp;#34;prod&amp;#34;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| where ContainerStatus != &amp;#34;Running&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| where ContainerStatusReason !in (&amp;#34;&amp;#34;, &amp;#34;Completed&amp;#34;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| distinct ClusterName, Namespace, Name&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| summarize dcount(Name) by ClusterName, Namespace&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;| render columnchart kind=stacked100&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-8-1024x582.png"&#10;&#9;&#9;&#9;alt="Stacked column chart of non-running pods by AKS cluster and namespace"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;You can include multiple AKS clusters in the scope in which this query is executed by clicking on [Select scope] hyperlink.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-12.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-15.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Create an Azure Dashboard panel with this output by clicking on [Pin to dashboard] button.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-13.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-11-1024x676.png"&#10;&#9;&#9;&#9;alt="Azure dashboard showing the pinned AKS pod status chart"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;You can also execute this Kusto query directly using powershell.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$workspaceName = &amp;#34;DefaultWorkspace-6637b095-xxxx-xxxx-xxxx-xxxxxxxxxxx-EUS&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$workspaceRG = &amp;#34;defaultresourcegroup-eus&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$WorkspaceID = (Get-AzOperationalInsightsWorkspace -Name $workspaceName -ResourceGroupName $workspaceRG).CustomerID&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$query = &amp;#39;KubePodInventory | where Namespace in (&amp;#34;dv&amp;#34;,&amp;#34;test&amp;#34;,&amp;#34;prod&amp;#34;) | where ContainerStatus != &amp;#34;Running&amp;#34; | where ContainerStatusReason !in (&amp;#34;&amp;#34;, &amp;#34;Completed&amp;#34;) | distinct ClusterName, Namespace, Name | summarize dcount(Name) by ClusterName, Namespace&amp;#39;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$result = Invoke-AzOperationalInsightsQuery -WorkspaceId $WorkspaceID -Query $query -Timespan (New-TimeSpan -days 1)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$result.results&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This allows you to include the results of your custom Kusto queries in any reports you might run using Azure Automation Runbooks.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-14-1024x392.png"&#10;&#9;&#9;&#9;alt="PowerShell session running the Kusto query with Invoke-AzOperationalInsightsQuery"&gt;&#10;&lt;/figure&gt;&#10;&#10;</description></item><item><title>AKS - Adding SSH Keys to VMSS Nodes</title><link>https://www.tewari.info/2021/03/27/aks-adding-ssh-keys-to-vmss-nodes/</link><pubDate>Sun, 28 Mar 2021 03:33:11 +0000</pubDate><guid>https://www.tewari.info/2021/03/27/aks-adding-ssh-keys-to-vmss-nodes/</guid><description>&lt;p&gt;You can connect to Azure Kubernetes Service (AKS) nodes using ssh. It is documented here: &lt;a class="link" href="https://docs.microsoft.com/en-us/azure/aks/ssh" target="_blank" rel="noopener"&#10; &gt;Connect with SSH to Azure Kubernetes Service (AKS) cluster nodes for maintenance or troubleshooting&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;I needed to access nodes on the System node pool for collecting some logs recently, but the process documented above was not working for me. It turns out that there were two different issues, both related to adding your SSH keys to the nodes in a virtual machine scale set (VMSS).&lt;/p&gt;&#10;&lt;p&gt;This is the az cli command that adds the ssh keys to the VMSS:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;az vmss extension set \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --resource-group $CLUSTER_RESOURCE_GROUP \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --vmss-name $SCALE_SET_NAME \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --name VMAccessForLinux \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --publisher Microsoft.OSTCExtensions \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --version 1.4 \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --protected-settings &amp;#34;{\&amp;#34;username\&amp;#34;:\&amp;#34;azureuser\&amp;#34;, \&amp;#34;ssh_key\&amp;#34;:\&amp;#34;$(cat ~/.ssh/id_rsa.pub)\&amp;#34;}&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I was running this command from powershell on a windows host. So, the first modification I needed was to escape the double quotes by doubling them. You can also &lt;a class="link" href="http://www.rlmueller.net/PowerShellEscape.htm" target="_blank" rel="noopener"&#10; &gt;use back ticks&lt;/a&gt; instead of doubling the double quotes.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;az vmss extension set \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --resource-group $CLUSTER_RESOURCE_GROUP \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --vmss-name $SCALE_SET_NAME \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --name VMAccessForLinux \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --publisher Microsoft.OSTCExtensions \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --version 1.4 \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --protected-settings &amp;#34;{\&amp;#34;&amp;#34;username\&amp;#34;&amp;#34;:\&amp;#34;&amp;#34;azureuser\&amp;#34;&amp;#34;, \&amp;#34;&amp;#34;ssh_key\&amp;#34;&amp;#34;:\&amp;#34;&amp;#34;$(cat ~/.ssh/id_rsa.pub)\&amp;#34;&amp;#34;}&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The second issue was due to the fact that ssh-keygen adds a comment to the id_rsa.pub file. By default, it adds username@hostname as the comment at the end of the file . Normally, this comment wouldn&amp;rsquo;t cause any problems, but in this case it was causing an error - &amp;ldquo;Invalid escape sequence \uXXXX&amp;rdquo;.&lt;/p&gt;&#10;&lt;p&gt;The problem was that my domain user name starts with character &amp;lsquo;u&amp;rsquo; and &amp;ldquo;domain\userid1&amp;rdquo; was being interpreted as containing a unicode character &amp;ldquo;\useri&amp;rdquo; which is obviously not a valid unicode character. The workaround here is to either delete the comment from the id_rsa.pub file (it works just fine without it) or to override the default comment when generating the ssh key by specifying your own comment via -C command line option.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ssh-keygen -C mycomment&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Finally, there is another way to execute &lt;a class="link" href="https://docs.microsoft.com/en-us/cli/azure/vmss/extension?view=azure-cli-latest#az_vmss_extension_set" target="_blank" rel="noopener"&#10; &gt;az vmss extension set&lt;/a&gt; command to get around both of these issues by creating a json file and passing that as the value of &amp;ndash;protected-settings argument. Here is how -&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Create a json file, protected_settings.json, with the following content:&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#9;&amp;#34;username&amp;#34; : &amp;#34;azureuser&amp;#34;,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#9;&amp;#34;ssh_key&amp;#34; : &amp;#34;REPLACE_THIS_WITH_CONTENT_OF_ID_RSA_PUB_FILE&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#10;&lt;li&gt;Pass this file as the command line argument:&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;az vmss extension set \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --resource-group $CLUSTER_RESOURCE_GROUP \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --vmss-name $SCALE_SET_NAME \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --name VMAccessForLinux \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --publisher Microsoft.OSTCExtensions \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --version 1.4 \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --protected-settings protected_settings.json&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Works like a charm!&lt;/p&gt;&#10;</description></item><item><title>AKS Supported Kubernetes Versions</title><link>https://www.tewari.info/2020/11/08/aks-supported-kubernetes-versions/</link><pubDate>Mon, 09 Nov 2020 03:08:17 +0000</pubDate><guid>https://www.tewari.info/2020/11/08/aks-supported-kubernetes-versions/</guid><description>&lt;p&gt;&lt;a class="link" href="https://docs.microsoft.com/en-us/azure/aks/" target="_blank" rel="noopener"&#10; &gt;Azure Kubernetes Service&lt;/a&gt; (AKS) &lt;a class="link" href="https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions" target="_blank" rel="noopener"&#10; &gt;supports specific versions&lt;/a&gt; of &lt;a class="link" href="https://kubernetes.io/" target="_blank" rel="noopener"&#10; &gt;Kubernetes&lt;/a&gt;.&lt;br&gt;&#10;It is necessary to regularly monitor the release of new versions and upgrade your AKS clusters to supported versions in order to remain in compliance with &lt;a class="link" href="https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions#kubernetes-version-support-policy" target="_blank" rel="noopener"&#10; &gt;AKS Kubernetes Version Support Policy&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions#release-and-deprecation-process" target="_blank" rel="noopener"&#10; &gt;AKS announces&lt;/a&gt; the planned date of a new minor version release and corresponding old version deprecation via AKS &lt;a class="link" href="https://github.com/Azure/AKS/releases" target="_blank" rel="noopener"&#10; &gt;Release notes&lt;/a&gt; at least 30 days prior to removal. An email notification is sent to the subscription administrators with the planned version removal dates. You get 30 days from version removal to upgrade to a supported minor version release. Patch versions can be released anytime and you get 30 days from the removal date to upgrade to a supported patch version.&lt;/p&gt;&#10;&lt;p&gt;You should test new target Kubernetes versions and upgrade your AKS clusters in a timely manner. For that, it is necessary to proactively monitor the AKS release notes. This can easily become a chore in a large Enterprise environment. Here is a Powershell script to make it easier to stay on top of Kubernetes version releases in AKS and publish/share it with others: &lt;a class="link" href="https://gist.github.com/ashtewari/31ce67d89b1878db52ca7558dbb3e194" target="_blank" rel="noopener"&#10; &gt;Get-AksSupportedVersions&lt;/a&gt;.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$aksVersionsJson = az aks get-versions --location eastus&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$aksVersions = $aksVersionsJson | ConvertFrom-Json&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$aksVersions.orchestrators.upgrades.orchestratorVersion&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$data = $aksVersions.orchestrators | Select-Object `&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -Property @{Name=&amp;#34;Version&amp;#34;;Expression={$_.orchestratorVersion}} `&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; , @{Name=&amp;#34;Default&amp;#34;;Expression={$_.default}} `&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; , @{Name=&amp;#34;Preview&amp;#34;;Expression={$_.isPreview}} `&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; , @{Name=&amp;#34;Upgrades&amp;#34;;Expression={$_.upgrades.orchestratorVersion -join &amp;#34;, &amp;#34;}}&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$versionTable = $data | ConvertTo-Html -Fragment&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$versionTableString = $versionTable | Out-String&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$html = New-Object -ComObject &amp;#34;HTMLFile&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$html.IHTMLDocument2_write($versionTableString)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$tables = $html.body.getElementsByTagName(&amp;#34;table&amp;#34;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$rptString = &amp;#34;&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ForEach($table in $tables){&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; ForEach($row in $table.rows){&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; $cellCount = 0&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; ForEach($cell in $row.cells){&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; $cellCount++&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; if(($cellCount -eq 2) -and ($cell.innertext -eq &amp;#39;True&amp;#39;))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; $row.className = &amp;#34;OkStatus&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; if(($cellCount -eq 3) -and ($cell.innertext -eq &amp;#39;True&amp;#39;))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; $row.className = &amp;#34;WarningStatus&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; $rptString += $table.outerHTML&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$reportDate = $(get-date -DisplayHint DateTime) | Out-String&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$fileTS = $(get-date -Format &amp;#34;yyyyMMdd&amp;#34;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$fileName = &amp;#34;aks-versions-$fileTS.html&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$rptTitle = &amp;#34;&amp;lt;h1&amp;gt;AKS Kubernetes Versions&amp;lt;/h1&amp;gt;&amp;lt;p&amp;gt;$reportDate&amp;lt;/p&amp;gt;&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$report = ConvertTo-Html -Title &amp;#34;AKS Versions&amp;#34; -Body &amp;#34;$rptTitle $rptString&amp;#34; -Head $header&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$report | Out-File &amp;#34;$fileName&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It creates an HTML report of currently supported Kubernetes versions in AKS along with their respective upgrade paths. Here is an example of the report generated by the script referenced above :&lt;/p&gt;&#10;&lt;h1 id="aks-kubernetes-versions"&gt;AKS Kubernetes Versions&#10;&lt;/h1&gt;&lt;p&gt;Sunday, November 8, 2020 8:47:42 PM&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Version&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Default&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Preview&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Upgrades&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.16.13&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.16.15, 1.17.9, 1.17.11&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.16.15&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.17.9, 1.17.11&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.17.9&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.17.11, 1.18.6, 1.18.8&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.17.11&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;True&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.18.6, 1.18.8&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.18.6&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.18.8, 1.19.0&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.18.8&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.19.0&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1.19.0&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;True&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Reference: &lt;a class="link" href="https://adamtheautomator.com/powershell-convertto-html/" target="_blank" rel="noopener"&#10; &gt;How To Create An HTML Report With PowerShell&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Universal Windows Platform Application on Raspberry Pi</title><link>https://www.tewari.info/2020/05/22/universal-windows-platform-application-on-raspberry-pi/</link><pubDate>Sat, 23 May 2020 02:57:40 +0000</pubDate><guid>https://www.tewari.info/2020/05/22/universal-windows-platform-application-on-raspberry-pi/</guid><description>&lt;p&gt;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 &lt;a class="link" href="https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide" target="_blank" rel="noopener"&#10; &gt;others&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;You can target specific device capabilities of a device family with &lt;a class="link" href="https://docs.microsoft.com/en-us/uwp/extension-sdks/device-families-overview#extension-sdks" target="_blank" rel="noopener"&#10; &gt;extension SDKs&lt;/a&gt;, but you don&amp;rsquo;t have to do that if you are only using core APIs. Those core APIs include a very &lt;a class="link" href="https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/" target="_blank" rel="noopener"&#10; &gt;impressive&lt;/a&gt; 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 &lt;a class="link" href="https://docs.microsoft.com/en-us/windows/iot-core/develop-your-app/buildingappsforiotcore" target="_blank" rel="noopener"&#10; &gt;Windows 10 IOT Core&lt;/a&gt; runs on that.&lt;/p&gt;&#10;&lt;p&gt;Universal Windows Platform (&lt;a class="link" href="https://docs.microsoft.com/en-us/windows/apps/desktop/choose-your-platform" target="_blank" rel="noopener"&#10; &gt;UWP&lt;/a&gt;) has come &lt;a class="link" href="https://www.tewari.info/2014/11/12/universal-apps/" &gt;a long way&lt;/a&gt;. I decided to dust off my good old Raspberry Pi 2B and take it for a spin last weekend.&lt;/p&gt;&#10;&lt;p&gt;The goal was simply to create a Hello World UWP application, deploy it on Windows 10 IOT running on Raspberry Pi (RPi), without using any device specific extension SDKs. Here is the stack -&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide" target="_blank" rel="noopener"&#10; &gt;Universal Windows Platform App&lt;/a&gt; (C#/XAML)&lt;/li&gt;&#10;&lt;li&gt;Raspberry Pi &lt;a class="link" href="https://www.raspberrypi.org/products/raspberry-pi-2-model-b/" target="_blank" rel="noopener"&#10; &gt;Model 2B&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://docs.microsoft.com/en-us/windows/iot-core/windows-iot-core" target="_blank" rel="noopener"&#10; &gt;Windows 10 IOT Core&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://www.syncfusion.com/uwp-ui-controls" target="_blank" rel="noopener"&#10; &gt;Syncfusion Essential Studio&lt;/a&gt; &lt;a class="link" href="https://help.syncfusion.com/common/essential-studio/release-notes/v18.1.0.42" target="_blank" rel="noopener"&#10; &gt;18.1.0.42&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://visualstudio.microsoft.com/" target="_blank" rel="noopener"&#10; &gt;Visual Studio&lt;/a&gt; 2019&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://docs.microsoft.com/en-us/windows/uwp/get-started/create-a-hello-world-app-xaml-universal" target="_blank" rel="noopener"&#10; &gt;Create&lt;/a&gt; a simple UWP application in Visual Studio 2019.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;&lt;a class="link" href="https://docs.microsoft.com/en-us/windows/iot-core/tutorials/rpi" target="_blank" rel="noopener"&#10; &gt;Install&lt;/a&gt; Windows 10 IOT Core on Raspberry Pi 2B and connect the device to a 50&amp;quot; screen TV.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-5.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/Rpi2BOnTV.jpg"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Select ARM in the target platform drop down and Click on Remote Machine to Run/Debug Application on RPi device.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-1.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Select RPi device for deployment.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-2.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Deployment of UWP on RPi is complete.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-3.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;UWP application running on RPi.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image.jpeg"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;I updated the UWP application to include &lt;a class="link" href="https://help.syncfusion.com/uwp/charts/getting-started?cs-save-lang=1&amp;amp;cs-lang=csharp" target="_blank" rel="noopener"&#10; &gt;Syncfusion Chart&lt;/a&gt; control. Did you know that you can get a &lt;a class="link" href="https://www.syncfusion.com/products/communitylicense" target="_blank" rel="noopener"&#10; &gt;Community License&lt;/a&gt; for the entire product line (including Blazor, Xamarin and UWP controls) from Syncfusion?&lt;/p&gt;&#10;&lt;p&gt;UWP application is now running on RPi, attached to the Visual Studio debugger running on the development machine (Windows Surface).&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-1.jpeg"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;No device specific extension SDKs were referenced, just the core UWP APIs were used.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/image-6.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Code is on &lt;a class="link" href="https://github.com/ashtewari/CoronaViewer/blob/master/CoronaViewer/MainPage.xaml.cs" target="_blank" rel="noopener"&#10; &gt;github&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>Getting started with Blockchain</title><link>https://www.tewari.info/2019/05/22/getting-started-with-blockchain/</link><pubDate>Wed, 22 May 2019 14:00:48 +0000</pubDate><guid>https://www.tewari.info/2019/05/22/getting-started-with-blockchain/</guid><description>&lt;p&gt;Washington DC - May 2019&lt;/p&gt;&#10;&lt;p&gt;In this session, we will introduce you to the world of Blockchain technology. We will start with the fundamentals and explain the characteristics and use cases of Blockchains and Decentralized applications. We will explain public Blockchains as well as permissioned Blockchains - with examples from Ethereum and Hyperledger. You will learn how to create a private blockchain to get started. You will learn about Ethereum and how to program Smart Contracts for Ethereum Blockchain. We will also share best practices for secure and effective Smart Contracts development.&lt;/p&gt;&#10;&lt;p&gt;Image Credit: &lt;a class="link" href="https://commons.wikimedia.org/wiki/User:Davidstankiewicz" target="_blank" rel="noopener"&#10; &gt;Davidstankiewicz&lt;/a&gt;, &lt;a class="link" href="https://commons.wikimedia.org/wiki/File:Blockchain_Illustration_2.jpg" target="_blank" rel="noopener"&#10; &gt;Blockchain Illustration 2&lt;/a&gt;, &lt;a class="link" href="https://creativecommons.org/licenses/by-sa/4.0/legalcode" target="_blank" rel="noopener"&#10; &gt;CC BY-SA 4.0&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>TRINUG - Programming Smart Contracts on Ethereum Blockchain</title><link>https://www.tewari.info/2018/08/08/programming-smart-contracts-on-ethereum-blockchain-2/</link><pubDate>Wed, 08 Aug 2018 21:30:50 +0000</pubDate><guid>https://www.tewari.info/2018/08/08/programming-smart-contracts-on-ethereum-blockchain-2/</guid><description>&lt;p&gt;TRINUG - Main Meeting : Programming Smart Contracts on Ethereum Blockchain - August 2018&lt;/p&gt;&#10;&lt;p&gt;In this session, Ash will introduce you to the world of Blockchain programming. You will learn about Ethereum and how to program Smart Contracts for Ethereum Blockchain. You will learn how to deploy and test your Contracts on a public Ethereum Testnet. Ash will share best practices for Smart Contract development. You will be able to participate in a hands-on walk-through in the latter half of the session.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.meetup.com/TRINUG/events/253120923/" title="TRINUG-Blockchain-PPT"&#10; target="_blank" rel="noopener"&#10; &gt;&lt;img alt="ppt-20180808" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/ppt-20180808.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Charlotte IOT - Programming Smart Contracts on Ethereum Blockchain</title><link>https://www.tewari.info/2018/07/10/programming-smart-contracts-on-ethereum-blockchain/</link><pubDate>Tue, 10 Jul 2018 22:00:00 +0000</pubDate><guid>https://www.tewari.info/2018/07/10/programming-smart-contracts-on-ethereum-blockchain/</guid><description>&lt;p&gt;Charlotte IOT - July 2018&lt;/p&gt;&#10;&lt;p&gt;You will not want to miss this chance to learn about &lt;em&gt;Blockchain&lt;/em&gt;, a technology enabling an entire IoT ecosystem! It has a distributed database for all the transactions, which eliminates the need for the third party to authenticate the transactions. The database ledger is a continuously growing list of records, called blocks, which are linked and secured using cryptography.&#10;Charlotte IoT wants to thank Ash Tewari for traveling from Raleigh to share his extensive knowledge and experience around &lt;em&gt;Blockchain&lt;/em&gt;. In this session, Ash will introduce you to the world of &lt;em&gt;Blockchain&lt;/em&gt; programming. You will learn about Ethereum and how to program Smart Contracts on Ethereum &lt;em&gt;Blockchain&lt;/em&gt;. You will learn how to deploy and test your code on a public Ethereum Testnet. Ash will complete the session with sharing some best practices for Smart Contract development. You will be able to participate in a hands-on walkthrough in the latter half of the session.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/ppt-20180710.png" &gt;&lt;img alt="ppt-20180710" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/ppt-20180710.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Blockchains for Enterprise</title><link>https://www.tewari.info/2017/11/24/blockchains-for-enterprise/</link><pubDate>Sat, 25 Nov 2017 01:53:28 +0000</pubDate><guid>https://www.tewari.info/2017/11/24/blockchains-for-enterprise/</guid><description>&lt;p&gt;Permissioned blockchains are being developed and used in Enterprise scenarios in which higher transaction throughput, lower latency, versatile confidentiality and governance models are more important than supporting low trust levels among participants. These Enterprise requirements are not being met adequately by the public and permission-less blockchain ledgers. Enterprise scenarios typically have known actors and the trust level between these actors is very high. This allows for trade-offs between trust levels and transaction throughput, speed, confidentiality and privacy, which in turn enables alternate solutions via &lt;a class="link" href="https://www.ibm.com/blogs/blockchain/2017/05/the-difference-between-public-and-private-blockchain/" target="_blank" rel="noopener"&#10; &gt;permissioned blockchains&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.hyperledger.org/projects/fabric" target="_blank" rel="noopener"&#10; &gt;Hyperledger Fabric&lt;/a&gt; (referred to as &amp;lsquo;Fabric&amp;rsquo; in the rest of this article) is the leading permissioned blockchain framework, initially developed by IBM. There are other players in this space, including &lt;a class="link" href="https://www.multichain.com/" target="_blank" rel="noopener"&#10; &gt;Multichain&lt;/a&gt;, &lt;a class="link" href="https://chain.com/technology/" target="_blank" rel="noopener"&#10; &gt;ChainCore&lt;/a&gt; and the relatively new entrant - Microsoft&amp;rsquo;s &lt;a class="link" href="https://azure.microsoft.com/en-us/blog/announcing-microsoft-s-coco-framework-for-enterprise-blockchain-networks/" target="_blank" rel="noopener"&#10; &gt;CoCo framework&lt;/a&gt; (referred to as &amp;lsquo;CoCo&amp;rsquo; in the rest of this article). Ethereum&amp;rsquo;s own developers are also working on enabling Enterprise use cases. The &lt;a class="link" href="https://entethalliance.org/" target="_blank" rel="noopener"&#10; &gt;Enterprise Ethereum Alliance&lt;/a&gt; is a community of industry experts developing features and enhancements to &lt;a class="link" href="https://www.ethereum.org/" target="_blank" rel="noopener"&#10; &gt;Ethereum&lt;/a&gt; for Enterprise needs. This article focuses on Hyperledger Fabric and CoCo framework only.&lt;/p&gt;&#10;&lt;p&gt;The projects in the Linux Foundation&amp;rsquo;s &lt;a class="link" href="https://hyperledger.org/" target="_blank" rel="noopener"&#10; &gt;Hyperledger suite&lt;/a&gt; are a collection of solutions based on various blockchain technologies. The Hyperledger architecture allows for different components to be plugged in to serve various use-cases, trust level and fault tolerance requirements. The ledgers in this collection are not components of one complete solution, but standalone solutions with various differentiated characteristics. You can choose the one applicable to your business scenario and requirements. Fabric is one of those solutions and it is a complete blockchain solution, including blockchain protocol(s) and smart contract (called Chain Code in Fabric architecture) execution. The tools in the Hyperledger collection (Cello, Composer and Explorer) do work as a component of a complete solution - mostly with Fabric at the moment, as far as I can tell. Hyperledger is available for &lt;a class="link" href="https://hyperledger.org/announcements/2017/07/11/hyperledger-announces-production-ready-hyperledger-fabric-1-0" target="_blank" rel="noopener"&#10; &gt;production use&lt;/a&gt; and and it is already being &lt;a class="link" href="https://hyperledger.org/industries/finance" target="_blank" rel="noopener"&#10; &gt;used&lt;/a&gt; in developing real-world blockchain solutions.&lt;/p&gt;&#10;&lt;p&gt;Coco is an open source platform created by Microsoft. It’s not a standalone blockchain protocol, it is a framework which can be integrated with blockchain protocols such as Ethereum, Quorum, Corda and also Hyperledger Sawtooth to deliver complete, enterprise grade blockchain solutions. The integration with Ethereum is the result of an adapted Ethereum codebase, which is integrated with CoCo Framework. Ethereum provides Smart Contract code execution, transaction processing and distributed ledger model. CoCo framework provides secure execution environment, flexible confidentiality models and codified governance. CoCo Framework was &lt;a class="link" href="https://azure.microsoft.com/en-us/blog/announcing-microsoft-s-coco-framework-for-enterprise-blockchain-networks/" target="_blank" rel="noopener"&#10; &gt;announced&lt;/a&gt; in August 2017. There is a &lt;a class="link" href="https://github.com/Azure/coco-framework/tree/master/docs" target="_blank" rel="noopener"&#10; &gt;whitepaper&lt;/a&gt; and a &lt;a class="link" href="https://www.youtube.com/watch?v=8s6JMmGJ-dY&amp;amp;feature=youtu.be" target="_blank" rel="noopener"&#10; &gt;demo&lt;/a&gt; of a Proof-Of-Concept integration of CoCo with Ethereum. Ethereum integration is being hardened, integration with other blockchain platforms (Quorum, Corda and Sawtooth) is in progress and the CoCo source code will be open sourced in early 2018.&lt;/p&gt;&#10;&lt;p&gt;CoCo provides smart contract code and execution security via &lt;a class="link" href="https://arstechnica.com/gadgets/2017/09/azure-confidential-computing-will-keep-data-secret-even-from-microsoft/" target="_blank" rel="noopener"&#10; &gt;Trusted Execution Environments&lt;/a&gt; (TEE). The TEEs can be software (Hyper-V VSM) based or hardware (Intel SGX) based. Fabric does not include guarantees of execution integrity via TEEs, although another ledger (Hyperledger Sawtooth) in the collection does. Hyperledger Sawtooth&amp;rsquo;s use of TEEs is limited to ensuring the integrity of its leader election consensus algorithm only. CoCo&amp;rsquo;s use of TEEs seem to be more encompassing and it includes execution guarantees and security for the smart contract code itself.&lt;/p&gt;&#10;&lt;p&gt;Clearly, Fabric and CoCo take very different architectural approach. There are functional similarities between the two frameworks. For example, the Channels in Fabric provide the mechanism for flexible confidentiality models, which is provided by ACLs in CoCo. TEEs in CoCo provide the same function as Endorsers in Fabric. Fabric has the concept of Validator nodes, such nodes are not needed in CoCo due to TEEs. Composer is a tool to quickly spin up proof-of-concept implementations with Fabric. Microsoft&amp;rsquo;s App Builder is a tool (I am currently participating in its private preview) to do the same with Ethereum as well as Fabric. App Builder does not currently work with CoCo, but I will not be surprised to see CoCo support in the future.&lt;/p&gt;&#10;&lt;p&gt;The default consensus algorithm in CoCo, Paxos consensus, does not provide Byzantine fault tolerance. On the surface, it appears to be a letdown, but Byzantine fault tolerance is made (mostly) redundant due to use of TEEs. There are some considerations to mitigate compromise of CoCo VNs (Validating Nodes). Refer to the CoCo whitepaper for more information on that. Note that the consensus algorithm in CoCo is pluggable, like Fabric. The business logic of the Smart Contracts in CoCo can be written in the programming language supported by the underlying execution engine. Which means, you can use &lt;a class="link" href="http://solidity.readthedocs.io/en/develop/" target="_blank" rel="noopener"&#10; &gt;Solidity&lt;/a&gt; to write your Smart Contracts in CoCo today.  You can use &lt;a class="link" href="https://golang.org/" target="_blank" rel="noopener"&#10; &gt;Go&lt;/a&gt; to write smart contracts in Fabric.&lt;/p&gt;&#10;&lt;p&gt;The choice of blockchain framework, ledger and consensus model requires review and analysis of your particular business use case which translates to throughput, latency, confidentiality, governance and network requirements.&lt;/p&gt;&#10;&lt;p&gt;References:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://www.hyperledger.org/projects/fabric" target="_blank" rel="noopener"&#10; &gt;Hyperledger Fabric&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://azure.microsoft.com/en-us/blog/announcing-microsoft-s-coco-framework-for-enterprise-blockchain-networks/" target="_blank" rel="noopener"&#10; &gt;CoCo Framework&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://entethalliance.org/" target="_blank" rel="noopener"&#10; &gt;Etherum Enterprise Alliance&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://hyperledger-fabric.readthedocs.io/en/release/" target="_blank" rel="noopener"&#10; &gt;Hyperledger Docs&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://www.hyperledger.org/wp-content/uploads/2017/08/HyperLedger_Arch_WG_Paper_1_Consensus.pdf" target="_blank" rel="noopener"&#10; &gt;Hyperledger Architecture (Consensus)&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;[CoCo Framework WhitePaper](&lt;a class="link" href="https://github.com/Azure/coco-framework/blob/master/docs/Coco%20Framework" target="_blank" rel="noopener"&#10; &gt;https://github.com/Azure/coco-framework/blob/master/docs/Coco%20Framework&lt;/a&gt; whitepaper.pdf)&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://sawtooth.hyperledger.org/docs/core/releases/latest/introduction.html" target="_blank" rel="noopener"&#10; &gt;Hyperledger Sawtooth (Intel)&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://www.persistent.com/wp-content/uploads/2017/04/WP-Understanding-Blockchain-Consensus-Models.pdf" target="_blank" rel="noopener"&#10; &gt;Understanding Blockchain Consensus Models&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Image Credit: &lt;a class="link" href="https://commons.wikimedia.org/wiki/User:Davidstankiewicz" target="_blank" rel="noopener"&#10; &gt;Davidstankiewicz&lt;/a&gt;, &lt;a class="link" href="https://commons.wikimedia.org/wiki/File:Blockchain_Illustration_2.jpg" target="_blank" rel="noopener"&#10; &gt;Blockchain Illustration 2&lt;/a&gt;, &lt;a class="link" href="https://creativecommons.org/licenses/by-sa/4.0/legalcode" target="_blank" rel="noopener"&#10; &gt;CC BY-SA 4.0&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Hyperledger, IBM, Microsoft, Coco, Etheruem and associated trademarks belong to their respective owners.&lt;/p&gt;&#10;</description></item><item><title>Paste Table from Microsoft Excel to Confluence Wiki</title><link>https://www.tewari.info/2017/09/18/paste-table-from-microsoft-excel-to-confluence-wiki/</link><pubDate>Mon, 18 Sep 2017 21:52:02 +0000</pubDate><guid>https://www.tewari.info/2017/09/18/paste-table-from-microsoft-excel-to-confluence-wiki/</guid><description>&lt;p&gt;1. Create the table in Microsoft Excel.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/paste-table-confluence-excel.png" &gt;&lt;img alt="paste-table-confluence-excel" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/paste-table-confluence-excel.png"&gt;&lt;/a&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/paste-table-confluence-toolbar.png" &gt;&lt;img alt="paste-table-confluence-toolbar" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/paste-table-confluence-toolbar.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;2. Open this page in browser: &lt;a class="link" href="http://excel2jira.bluurgh.com/" target="_blank" rel="noopener"&#10; &gt;http://excel2jira.bluurgh.com/&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;3. Paste the table from Microsoft Excel into the input box on the page.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/paste-table-confluence-convert-markup.png" &gt;&lt;img alt="paste-table-confluence-convert-markup" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/paste-table-confluence-convert-markup.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;4. Click on “Convert Me Now” button&lt;/p&gt;&#10;&lt;p&gt;5. Place the cursor at the intended insertion point in the wiki document.&lt;/p&gt;&#10;&lt;p&gt;6. Click on “Insert more content” (+) button on Wiki toolbar&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/paste-table-confluence-toolbar.png" &gt;&lt;img alt="paste-table-confluence-toolbar" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/paste-table-confluence-toolbar.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;7. Click on “Markup”&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/paste-table-confluence-markup-cmd.png" &gt;&lt;img alt="paste-table-confluence-markup-cmd" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/paste-table-confluence-markup-cmd.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;8. Paste converted markup from step 2  in the left pane and verify the preview.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/paste-table-confluence-insert.png" &gt;&lt;img alt="paste-table-confluence-insert" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/paste-table-confluence-insert.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;9. Click on “Insert”&lt;/p&gt;&#10;&lt;p&gt;10. Review and verify the inserted content and make any correction if needed.&lt;/p&gt;&#10;</description></item><item><title>Ethereum Blockchain-As-A-Service in Azure Cloud</title><link>https://www.tewari.info/2016/10/18/ethereum-blockchain-as-a-service-in-azure-cloud/</link><pubDate>Tue, 18 Oct 2016 21:24:56 +0000</pubDate><guid>https://www.tewari.info/2016/10/18/ethereum-blockchain-as-a-service-in-azure-cloud/</guid><description>&lt;p&gt;&lt;a class="link" href="https://www.ethereum.org/" target="_blank" rel="noopener"&#10; &gt;Ethereum&lt;/a&gt; Blockchain (EBaas) as a Service provided by Microsoft Azure and &lt;a class="link" href="https://consensys.net/ventures/core-components/" target="_blank" rel="noopener"&#10; &gt;ConsenSys&lt;/a&gt; allows for enterprise customers and partners to play, learn, and fail fast at a low cost in a ready-made dev/test/production environment. It will allow them to create private, public and consortium based &lt;a class="link" href="https://en.wikipedia.org/wiki/Blockchain" target="_blank" rel="noopener"&#10; &gt;Blockchain&lt;/a&gt; environments very quickly in Azure. In this session, you will learn how to get started with prototyping building blocks of a decentralized application using &lt;a class="link" href="http://https://azure.microsoft.com/en-us/blog/ethereum-blockchain-as-a-service-now-on-azure/" target="_blank" rel="noopener"&#10; &gt;EBaas&lt;/a&gt; in Windows Azure.&lt;/p&gt;&#10;&lt;p&gt;Venue: &lt;a class="link" href="https://www.meetup.com/Triangle-Azure-User-Group-TriAUG/events/234696204/" target="_blank" rel="noopener"&#10; &gt;Triangle Azure User Group&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Slides : &lt;a class="link" href="https://1drv.ms/b/s!Asey4wYZPY_tgZWFPzq9KvZszYbOass" target="_blank" rel="noopener"&#10; &gt;download&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>Getting Started with Smart Contracts on Ethereum Blockchain using Visual Studio</title><link>https://www.tewari.info/2016/09/30/getting-started-with-smart-contracts-on-ethereum-blockchain-using-visual-studio/</link><pubDate>Fri, 30 Sep 2016 21:19:11 +0000</pubDate><guid>https://www.tewari.info/2016/09/30/getting-started-with-smart-contracts-on-ethereum-blockchain-using-visual-studio/</guid><description>&lt;p&gt;&lt;a class="link" href="https://en.wikipedia.org/wiki/Smart_contract" target="_blank" rel="noopener"&#10; &gt;Smart Contracts&lt;/a&gt; are an exciting innovation built on blockchain technology. It is a way to execute code in a trustless, decentralized and transparent system. &lt;a class="link" href="https://www.ethereum.org/" target="_blank" rel="noopener"&#10; &gt;Ethereum&lt;/a&gt; is a decentralized platform to run smart contracts using a variation of Bitcoin&amp;rsquo;s blockchain technology.&lt;/p&gt;&#10;&lt;p&gt;In this session, you will learn how to write smart contracts in Visual Studio. You will learn how to deploy them to public Ethereum blockchain and a private/consortium blockchain as a service in Azure. You will be introduced you to &lt;a class="link" href="https://solidity.readthedocs.io/en/develop/" target="_blank" rel="noopener"&#10; &gt;Solidity&lt;/a&gt;- the programming language used to write smart contracts. You will get familiar with the tools and technology around this exciting, promising and relatively new innovation.&lt;/p&gt;&#10;&lt;p&gt;Presentation Slides are here: &lt;a class="link" href="https://1drv.ms/b/s!Asey4wYZPY_tgZWFQLwValH3lwAbbkE" target="_blank" rel="noopener"&#10; &gt;download&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>KeyNode with Node.js and Microsoft Azure</title><link>https://www.tewari.info/2016/03/10/keynode-with-node-js-and-microsoft-azure/</link><pubDate>Fri, 11 Mar 2016 00:23:06 +0000</pubDate><guid>https://www.tewari.info/2016/03/10/keynode-with-node-js-and-microsoft-azure/</guid><description>&lt;p&gt;&lt;a class="link" href="https://github.com/ashtewari/keynode" title="KeyNode"&#10; target="_blank" rel="noopener"&#10; &gt;KeyNode&lt;/a&gt; is a application to issue and verify software license keys. Technology stack for KeyNode is &lt;a class="link" href="https://nodejs.org/" title="Node.js"&#10; target="_blank" rel="noopener"&#10; &gt;Node.j&lt;/a&gt; s, &lt;a class="link" href="https://www.mongodb.org/" title="MongoDB"&#10; target="_blank" rel="noopener"&#10; &gt;MongoDB&lt;/a&gt; and &lt;a class="link" href="https://azure.microsoft.com/" title="Microsoft Azure"&#10; target="_blank" rel="noopener"&#10; &gt;Microsoft Azure&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;I had built this functionality with &lt;a class="link" href="https://c9.io" title="C9.io"&#10; target="_blank" rel="noopener"&#10; &gt;C9.io&lt;/a&gt; (a cloud-based IDE with a built-in source code repository and debugger), &lt;a class="link" href="http://www.prnewswire.com/news-releases/mongohq-becomes-compose-270174611.html" target="_blank" rel="noopener"&#10; &gt;mongohq&lt;/a&gt; (MongoDB as a service - now part of &lt;a class="link" href="https://www.compose.io/" title="compose.io"&#10; target="_blank" rel="noopener"&#10; &gt;compose.io&lt;/a&gt;) and &lt;a class="link" href="https://www.ctl.io/appfog/" title="AppFog"&#10; target="_blank" rel="noopener"&#10; &gt;appfog&lt;/a&gt; (Cloud PAAS built on top of &lt;a class="link" href="https://www.cloudfoundry.org/" title="CloudFoundry"&#10; target="_blank" rel="noopener"&#10; &gt;CloudFoundry&lt;/a&gt;). It used SMTP/gmail to email license files. That was the version I created a couple of years ago to issue tamper-proof signed xml license files for &lt;a class="link" href="http://codedemo.net/" target="_blank" rel="noopener"&#10; &gt;CodeDemo&lt;/a&gt; (a code snippet tool for developers, presenters and instructors).&lt;/p&gt;&#10;&lt;p&gt;For KeyNode (open source) I switched to a different toolset : &lt;a class="link" href="https://code.visualstudio.com/" title="Visual Studio Code"&#10; target="_blank" rel="noopener"&#10; &gt;Visual Studio Code&lt;/a&gt; and &lt;a class="link" href="https://azure.microsoft.com/" target="_blank" rel="noopener"&#10; &gt;Windows Azure&lt;/a&gt;, simplified the code to remove signed xml file and open-sourced it on &lt;a class="link" href="https://github.com/ashtewari/keynode" target="_blank" rel="noopener"&#10; &gt;GitHub&lt;/a&gt;. Signed xml allowed offline verification in CodeDemo (a Wpf/Desktop app). Removing signed xml requires verification to happen online. I am working on adding the web endpoint for verification of license keys. This version uses &lt;a class="link" href="https://sendgrid.com/" title="SendGrid"&#10; target="_blank" rel="noopener"&#10; &gt;SendGrid&lt;/a&gt; to email license keys. KeyNode is deployed as a &lt;a class="link" href="https://azure.microsoft.com/en-us/services/app-service/web/" target="_blank" rel="noopener"&#10; &gt;Windows Azure Web App&lt;/a&gt;. The Azure Web App is on Continuous Deployment feed from the source code repository on GitHub.&lt;/p&gt;&#10;&lt;p&gt;I created and tested this Node.js application locally without IIS and deployed it as an Azure Web App without making any changes to the code at all. Node.js applications are hosted in Azure under IIS with &lt;a class="link" href="https://github.com/tjanczuk/iisnode" title="iisnode"&#10; target="_blank" rel="noopener"&#10; &gt;iisnode&lt;/a&gt;. &lt;a class="link" href="https://github.com/tjanczuk/iisnode" target="_blank" rel="noopener"&#10; &gt;Iisnode&lt;/a&gt; is a native IIS module that allows hosting of node.js applications in IIS on Windows. Read more about iisnode &lt;a class="link" href="https://tomasz.janczuk.org/2011/08/hosting-nodejs-applications-in-iis-on.html" target="_blank" rel="noopener"&#10; &gt;here&lt;/a&gt;. Iisnode architecture also makes it significantly &lt;a class="link" href="https://blogs.msdn.microsoft.com/hanuk/2012/05/04/top-benefits-of-running-node-js-on-windows-azure/" target="_blank" rel="noopener"&#10; &gt;easier&lt;/a&gt; to take advantages of scalability afforded by Azure.&lt;/p&gt;&#10;&lt;p&gt;KeyNode is a work in progress. My plan is to use this as the basis for further explorations in the following areas :&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;DevOps, Docker and Microservices (at miniature scale of course!)&lt;/li&gt;&#10;&lt;li&gt;Create a Web UI with &lt;a class="link" href="http://expressjs.com/" target="_blank" rel="noopener"&#10; &gt;Express&lt;/a&gt;(a Node.js web application framework)&lt;/li&gt;&#10;&lt;li&gt;Integrate with &lt;a class="link" href="https://azure.microsoft.com/en-us/services/storage/" target="_blank" rel="noopener"&#10; &gt;Azure Storage/Queues&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;and more&amp;hellip;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I invite you to check out the &lt;a class="link" href="http://keynode.azurewebsites.net/" target="_blank" rel="noopener"&#10; &gt;live site on Azure&lt;/a&gt; and fork it for your own experiments : &lt;a class="link" href="https://github.com/ashtewari/keynode" target="_blank" rel="noopener"&#10; &gt;KeyNode on GitHub&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Resources :&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://azure.microsoft.com/en-us/develop/nodejs/" target="_blank" rel="noopener"&#10; &gt;Node.js Developer Center&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://tomasz.janczuk.org/2011/08/hosting-nodejs-applications-in-iis-on.html" target="_blank" rel="noopener"&#10; &gt;Hosting Node.js Applications in IIS on Windows&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://blogs.msdn.microsoft.com/hanuk/2012/05/04/top-benefits-of-running-node-js-on-windows-azure/" target="_blank" rel="noopener"&#10; &gt;Top Benefits of Running Node.js on Windows Azure&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Photo Credit : Piano Keyboard (&lt;a class="link" href="https://www.kpmalinowski.pl/" target="_blank" rel="noopener"&#10; &gt;www.kpmalinowski.pl&lt;/a&gt;)&lt;/p&gt;&#10;</description></item><item><title>Using Powershell with Splunk</title><link>https://www.tewari.info/2016/02/22/using-powershell-with-splunk/</link><pubDate>Tue, 23 Feb 2016 03:20:14 +0000</pubDate><guid>https://www.tewari.info/2016/02/22/using-powershell-with-splunk/</guid><description>&lt;p&gt;&lt;a class="link" href="http://dev.splunk.com/view/splunk-powershell-resource-kit/SP-CAAADRU" title="Splunk Powershell Resource Kit"&#10; target="_blank" rel="noopener"&#10; &gt;Splunk Powershell Resource Kit&lt;/a&gt; is a convenient and very capable wrapper over &lt;a class="link" href="http://www.splunk.com/" target="_blank" rel="noopener"&#10; &gt;Splunk&lt;/a&gt; &lt;a class="link" href="http://dev.splunk.com/restapi" target="_blank" rel="noopener"&#10; &gt;REST API&lt;/a&gt;. You can use the &lt;a class="link" href="https://msdn.microsoft.com/en-us/powershell" target="_blank" rel="noopener"&#10; &gt;Powershell&lt;/a&gt; commandlets exposed by this resource kit to deploy, check and manage splunk services as well as execute splunk searches. In this post, you will be introduced to the Splunk Powershell Resource Kit, you will learn how to use powershell commandlets to connect to a splunk instance and execute searches.&lt;/p&gt;&#10;&lt;p&gt;1. First, you will need to download the resource kit from &lt;a class="link" href="https://github.com/splunk/splunk-reskit-powershell" target="_blank" rel="noopener"&#10; &gt;github&lt;/a&gt;.&#10;2. Installation is very simple. All you have to do is download and extract the files from the zip archive and double click on install.bat to install the splunk powershell module.&#10;3. Open Windows Powershell console from Windows Start menu.&#10;4. Verify that the Splunk module is installed by executing Get-Module commandlet.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Get-Module SplunkSearch&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;5. Import splunk resource kit commandlets using Import-Module command.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Import-Module -Name Splunk&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;6. Next, you need to use Get-Credentials and then Connect-Splunk commandlets to connect to splunk. You need to do this once per session or if you need to switch to a different splunk instance.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$credential = Get-Credential&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Connect-Splunk -Credential $credential -ComputerName localhost&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I have a local Splunk Enterprise instance running on my machine, so I am using localhost as the ComputerName to connect to it. If you have a SplunkCloud subscription you can use YourSubscriptionId.splunkcloud.com as the ComputerName to connect to your subscription. Like so -&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Connect-Splunk -Credential $credential -ComputerName MySubscription.splunkcloud.com&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;7. Next, use Search-Splunk commandlet to execute searches -&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Search-Splunk -Search &amp;#34;Error&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here is a sample script:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$lastDay = ( get-date ).addDays( -1 ).toString( ‘s’ )&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$searches = @(&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;#34;ERROR&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; , &amp;#34;source=&amp;#34;&amp;#34;tutorialdata.zip:*&amp;#34;&amp;#34; ERROR&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; , &amp;#34;CreditDoesNotMatch&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; ,&amp;#34;source=&amp;#34;&amp;#34;tutorialdata.zip:.\\www3/access.log&amp;#34;&amp;#34; productId=WC-SH-G04&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Write-Output $lastDay&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;foreach($search in $searches)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; $qry = $search + &amp;#34; | stats count&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Write-Output $qry&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Search-Splunk -Search $qry -StartTime $lastDay | Select-Object -ExpandProperty Count&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The sample script executes multiple Splunk searches and outputs the count of results matching these search queries. Note that I am &amp;ldquo;-StartTime&amp;rdquo; parameter to scope the search to a narrower time window and &amp;ldquo;stats count&amp;rdquo; command to get the count of results. You can get this sample script as a &lt;a class="link" href="https://gist.github.com/ashtewari/c29a8ac98587d42c91bd" target="_blank" rel="noopener"&#10; &gt;github gist&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;You can also use -EndTime and –MaxReturnCount to further constrain the query results and Format-List, Format-Table, Format-Wide commands to format the results. You can learn more about other Search parameters as well as other capabilities exposed in the resource kit &lt;a class="link" href="https://github.com/splunk/splunk-reskit-powershell/raw/master/Docs/Splunk%20PowerShell%20Resource%20Kit.docx" target="_blank" rel="noopener"&#10; &gt;documentation&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Resources :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://dev.splunk.com/view/splunk-powershell-resource-kit/SP-CAAADRU" target="_blank" rel="noopener"&#10; &gt;Splunk Powershell ResourceKit&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://github.com/splunk/splunk-reskit-powershell" target="_blank" rel="noopener"&#10; &gt;Splunk Powershell ResourceKit on github&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://github.com/splunk/splunk-reskit-powershell/raw/master/Docs/Splunk%20PowerShell%20Resource%20Kit.docx" target="_blank" rel="noopener"&#10; &gt;Splunk Powershell ResourceKit Documentation&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Image credit : &lt;a class="link" href="https://thenounproject.com/search/?q=shell&amp;amp;i=209178" target="_blank" rel="noopener"&#10; &gt;terminal by Andrea Mazzini&lt;/a&gt; from the Noun Project&lt;/p&gt;&#10;</description></item><item><title>PackRaft with Xamarin and Microsoft Azure</title><link>https://www.tewari.info/2015/12/19/packraft-with-xamarin-and-microsoft-azure/</link><pubDate>Sun, 20 Dec 2015 03:22:26 +0000</pubDate><guid>https://www.tewari.info/2015/12/19/packraft-with-xamarin-and-microsoft-azure/</guid><description>&lt;p&gt;PackRaft is a cross-platform mobile application built with &lt;a class="link" href="http://developer.xamarin.com/" target="_blank" rel="noopener"&#10; &gt;Xamarin&lt;/a&gt;. It integrates with Microsoft Azure services, such as &lt;a class="link" href="https://azure.microsoft.com/en-us/services/storage/tables/" target="_blank" rel="noopener"&#10; &gt;Azure Table Storage&lt;/a&gt; and &lt;a class="link" href="https://azure.microsoft.com/en-us/services/app-service/" target="_blank" rel="noopener"&#10; &gt;Azure App Service&lt;/a&gt;. It is created with &lt;a class="link" href="http://developer.xamarin.com/guides/cross-platform/xamarin-forms/" target="_blank" rel="noopener"&#10; &gt;Xamarin.Forms&lt;/a&gt; for iOS and Android (Windows version will be coming soon).&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/packraft-android-riders.png" &gt;&lt;img alt="packraft-android-riders" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/packraft-android-riders.png"&gt;&lt;/a&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/packraft-iphone-assignments.png" &gt;&lt;img alt="packraft-iphone-assignments" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/packraft-iphone5.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The purpose of creating this sample application was to expand expertise in cross-platform mobile development with Windows Azure integration, specifically with Xamarin.Forms and Azure App Service. With Xamarin.Forms, it is possible to achieve close to 100% code reuse across these platforms for certain type of apps. Azure App Service provide a set of rich cloud backend services for your mobile applications.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/PackRaft-Platform1.png" &gt;&lt;img alt="PackRaft-Platform" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/PackRaft-Platform1.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;PackRaft allows the user to setup a fleet of vehicles of various seating capacities. Groups of riders are assigned to these rides according to the count of riders in each group. You can specify that certain groups be kept together on a single vehicle - and the app tries to honor those requests if possible. I did this via a rudimentary implementation of a bin packing algorithm. This implementation is deployed as an &lt;a class="link" href="https://azure.microsoft.com/en-us/services/app-service/api/" target="_blank" rel="noopener"&#10; &gt;API App&lt;/a&gt; in Microsoft Azure.&lt;/p&gt;&#10;&lt;p&gt;PackRaft uses &lt;a class="link" href="https://github.com/Azure/azure-mobile-services" target="_blank" rel="noopener"&#10; &gt;Azure Mobile Services SDK&lt;/a&gt; to persist Fleet data to Azure Table Storage and to authenticate users with Facebook and Microsoft accounts. Twitter and Google account authentication is also supported by Azure Mobile Services SDK out of the box and those will also be enabled in PackRaft soon.&lt;/p&gt;&#10;&lt;p&gt;PackRaft is available on Android, iPhone and iPad.&#10;&lt;a class="link" href="https://play.google.com/store/apps/details?id=com.ashtewari.packmyride&amp;amp;utm_source=global_co&amp;amp;utm_medium=prtnr&amp;amp;utm_content=Mar2515&amp;amp;utm_campaign=PartBadge&amp;amp;pcampaignid=MKT-AC-global-none-all-co-pr-py-PartBadges-Oct1515-1" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="Get it on Google Play" class="gallery-image" data-flex-basis="810px" data-flex-grow="337" height="242" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://play.google.com/intl/en_us/badges/images/apps/en-play-badge.png" srcset="https://www.tewari.info/en-play-badge_8894513479543131546_hu_5bf219cf694dcfc4.png 800w, https://play.google.com/intl/en_us/badges/images/apps/en-play-badge.png 817w" width="817"&gt;&lt;/a&gt;&lt;a class="link" href="https://itunes.apple.com/us/app/packraft/id1059614859" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="Download iOS app on App Store" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/Download_on_the_App_Store_Badge_US-UK_135x40.svg"&gt;&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Does Xamarin have a future?</title><link>https://www.tewari.info/2015/11/07/does-xamarin-have-a-future/</link><pubDate>Sat, 07 Nov 2015 17:33:01 +0000</pubDate><guid>https://www.tewari.info/2015/11/07/does-xamarin-have-a-future/</guid><description>&lt;p&gt;&lt;a class="link" href="https://xamarin.com/" target="_blank" rel="noopener"&#10; &gt;Xamarin&lt;/a&gt;&amp;rsquo;s cross-platform mobile application framework has Xamarin.iOS and Xamarin.Android at its core. Both &lt;a class="link" href="https://en.wikipedia.org/wiki/Xamarin" target="_blank" rel="noopener"&#10; &gt;Xamarin.Android and Xamarin.iOS&lt;/a&gt; are based on Mono. &lt;a class="link" href="https://en.wikipedia.org/wiki/Mono_%28software%29" target="_blank" rel="noopener"&#10; &gt;Mono&lt;/a&gt; is an open source implementation of .NET (&lt;a class="link" href="https://en.wikipedia.org/wiki/Common_Language_Infrastructure" target="_blank" rel="noopener"&#10; &gt;CLI&lt;/a&gt; and CLS). Xamarin&amp;rsquo;s customers are Microsoft (.NET) shops. Microsoft is open sourcing .NET itself. What does all this mean for Xamarin?&lt;/p&gt;&#10;&lt;p&gt;Is Xamarin&amp;rsquo;s competitive advantage going to be undermined by the open source .NET? Microsoft&amp;rsquo;s Universal Application Platform (UAP) and the promise of making .NET applications run on Mac and Linux seems to indicate that Microsoft may be emerging as a threat to Xamarin.&lt;/p&gt;&#10;&lt;p&gt;The formidable Microsoft has perhaps spelled death for Xamarin by standing up a competitor to Mono. If you are a developer getting started with Xamarin or already using Xamarin, should you be worried? After all Xamarin has a significant learning curve. Just because you are proficient with C# and Visual Studio does not mean that learning curve of cross-platform development with Xamarin is insignificant. I have worked with Xamarin platform for more than two years. As you get into Xamarin development, you quickly realize that you need to know and learn quite a lot about the platforms that you are developing for. So, should you put your time and money into Xamarin? Should you (continue to) invest in Xamarin? Does Xamarin have a future?&lt;/p&gt;&#10;&lt;p&gt;Xamarin&amp;rsquo;s core competitive advantage is not in competition with the (.NET Core) class libraries, SDKs and server frameworks being open sourced by Microsoft. Xamarin&amp;rsquo;s competitive advantage is in the ecosystem of development and testing tools as well as infrastructure that supports cross-platform mobile development, testing and monitoring. Xamarin marvelously simplifies creation of native apps on iOS and Android using C# (&lt;a class="link" href="http://www.charlespetzold.com/blog/2015/10/Writing-Xamarin-Forms-Apps-in-FSharp.html" target="_blank" rel="noopener"&#10; &gt;now F# also&lt;/a&gt;). The pace of innovation at Xamarin is breathtaking. There is nothing quite like it to enable cross-platform development of native mobile applications with Microsoft&amp;rsquo;s flagship programming language at its core and the incredible productivity allowed by Microsoft&amp;rsquo;s and 3rd party tool set.&lt;/p&gt;&#10;&lt;p&gt;I think both Microsoft and Xamarin are going to greatly benefit from the formation of &lt;a class="link" href="http://www.dotnetfoundation.org/" target="_blank" rel="noopener"&#10; &gt;.NET Foundation&lt;/a&gt; and &lt;a class="link" href="https://channel9.msdn.com/Events/Build/2015/C9-15" target="_blank" rel="noopener"&#10; &gt;open sourcing of .NET&lt;/a&gt; as well as &lt;a class="link" href="https://channel9.msdn.com/Events/Build/2015/3-670" target="_blank" rel="noopener"&#10; &gt;cross-platform implementation of .NET&lt;/a&gt;. Keep in mind that while Mono is open source, Xamarin.Android and Xamarin.iOS are commercial products. Xamarin is going to benefit immensely by Mono closing the gaps with .NET BCL implementation and converged implementations of Mono and .NET in the near future, without giving up its core competitive advantages. Microsoft has seen the writing on the wall - The future belongs to Cloud and Mobile. Microsoft has a &lt;a class="link" href="https://azure.microsoft.com/" target="_blank" rel="noopener"&#10; &gt;strong presence&lt;/a&gt; in Cloud, but not so much in Mobile. Microsoft is going to benefit from .NET running on Mac and Linux by expanding their customer base to those platforms in its cloud offerings in Azure. But Xamarin&amp;rsquo;s gains are also going to translate into broader and deeper mobile market penetration for Microsoft&amp;rsquo;s tools and technologies, benefiting Microsoft&amp;rsquo;s Cloud strategy even further. Xamarin&amp;rsquo;s success is strategically important to Microsoft. Now even more so.&lt;/p&gt;&#10;&lt;p&gt;I think that Xamarin will continue to gain strength and remain a viable cross-platform development framework as far as I can see. Xamarin&amp;rsquo;s future looks very bright to me.&lt;/p&gt;&#10;</description></item><item><title>Creating Android Apps using C# and Xamarin</title><link>https://www.tewari.info/2015/02/21/creating-android-apps-using-c-and-xamarin/</link><pubDate>Sat, 21 Feb 2015 17:30:25 +0000</pubDate><guid>https://www.tewari.info/2015/02/21/creating-android-apps-using-c-and-xamarin/</guid><description>&lt;p&gt;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 &lt;a class="link" href="https://www.tewari.info/2014/11/12/universal-apps/" &gt;Universal Windows App&lt;/a&gt; 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 &lt;a class="link" href="https://play.google.com/store/search?q=CensusMapper" target="_blank" rel="noopener"&#10; &gt;Google Play Store&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://play.google.com/store/apps/details?id=info.tewari.censusmapper" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="censusmapper-android-on-nexus5" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/censusmapper-android-on-nexus5.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;CensusMapper.Android shows population of each U.S. State. User can tap on a location on the map to show the population (as per 2010 census) of the zip code containing the selected location. User can select a location to view the population compared to the containing geography, as a pie-chart.&lt;/p&gt;&#10;&lt;p&gt;This experimental project helped me expand my cross-platform mobile application development skillset in the following areas:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Using Xamarin/C# to create an Android app using Xamarin Studio on a PC and a Mac.&lt;/li&gt;&#10;&lt;li&gt;Structuring C#/.NET source code in a Portable Class Library to allow reuse on Windows, Windows Phone, Android and iOS platforms.&lt;/li&gt;&#10;&lt;li&gt;Converting the functionality of an existing Windows Universal App (Windows Phone/ WinRT) to an Android app.&lt;/li&gt;&#10;&lt;li&gt;Using GoogleMaps API (via Google Play Services) to display data retrieved from U.S. Census API.&lt;/li&gt;&#10;&lt;li&gt;Using Bing Maps API for reverse geocoding in an Android app.&lt;/li&gt;&#10;&lt;li&gt;Creating custom markers using low-level API in Android.Graphics namespace to display information on the map.&lt;/li&gt;&#10;&lt;li&gt;Charting with &lt;a class="link" href="http://oxyplot.org/" target="_blank" rel="noopener"&#10; &gt;oxyplot&lt;/a&gt; cross-platform charting library.&lt;/li&gt;&#10;&lt;li&gt;Working with Android SDK, AVD Manager as well as developer documentation and resources on Android and Xamarin websites in the development lifecycle of the app.&lt;/li&gt;&#10;&lt;li&gt;Publishing an app on Google Play Store.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I started with Xamarin.Forms.Maps. It was quick and straight forward to create a Xamarin.Forms app. The tricky part was creating the custom markers (the shape of speech bubble) on the map, instead of using the default push-pin markers . I tried creating a CustomRender to create custom markers and built interactivity with the map elements, but it turned out to be too much hassle. All of that customization would be specific to Android platform only and not reusable on the iOS anyway. So, I decided against using Xamarin.Forms and work directly with Google Maps library. Xamarin.Forms also limits me to Windows Phone 8 compatibility in my PCL. I can&amp;rsquo;t use Windows Phone 8.1 in any PCL profile compatible with Xamarin.Forms. It also requires a minimum of Android 4.0. The PCL profile # 111 for sharing code between Windows 8, Windows Phone 8.1 as well as Android and iOS, is not compatible with Xamarin.Forms at the time of writing this.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/pcl-profile-111.png" &gt;&lt;img alt="pcl-profile-111" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/pcl-profile-111.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Don&amp;rsquo;t use the Android emulator for testing. Get a real device. I stopped using the emulator while working on CensusMapper because GooglePlayServices (GPS) dependency was making me jump through way too many hoops. Debugging map functionality on the real device was a much more productive experience. Then I discovered &lt;a class="link" href="https://xamarin.com/android-player" target="_blank" rel="noopener"&#10; &gt;Xamarin&amp;rsquo;s Android Player&lt;/a&gt;. It is awesome. By all means, use it! It is a pleasure to work with, especially on a Mac. Don&amp;rsquo;t be discouraged by the preview/beta status. It blows the Android SDK virtual devices out of the water, in terms of performance and usability.&lt;/p&gt;&#10;&lt;p&gt;I tested on &lt;a class="link" href="https://play.google.com/store/devices/details/Nexus_4_8GB" target="_blank" rel="noopener"&#10; &gt;Google Nexus 4&lt;/a&gt; (Android 4.2), &lt;a class="link" href="http://www.amazon.com/Samsung-SCH-i535-Verizon-Unlocked-Smartphone/dp/B00O4CZ15O" target="_blank" rel="noopener"&#10; &gt;Samsung Galaxy SIII&lt;/a&gt; (Android 4.3) , &lt;a class="link" href="http://www.amazon.com/gp/product/B00LUZ8WJA" target="_blank" rel="noopener"&#10; &gt;BLU Dash JR&lt;/a&gt; (Android 4.4) and an older &lt;a class="link" href="http://www.amazon.com/Coby-7-Inch-Android-Internet-Touchscreen-Tablet/dp/B005HUH88K" target="_blank" rel="noopener"&#10; &gt;Coby Kyros&lt;/a&gt; tablet (Android 2.2). Google Play Services update, required for the app to work, could not be installed on BLU device because of the limited storage space. You must root the device in order to install the GPS updates on an SD card. It is advisable to have a &lt;a class="link" href="http://unrevoked.com/rootwiki/doku.php/public/root_friendly" target="_blank" rel="noopener"&#10; &gt;root-friendly device&lt;/a&gt;. Google Nexus devices are excellent development devices, allowing you root access and the ability to load custom ROMs. However, it is very important for you to get a few different kinds of devices of various form factors and Android versions/API levels for testing your app&amp;rsquo;s functional and non-functional aspects.&lt;/p&gt;&#10;&lt;p&gt;Android device logs and the IDE build logs are the most important tools you have to resolve problems encountered in the Android app development with Xamarin. These should be the first places to look when troubleshooting issue.&lt;/p&gt;&#10;&lt;p&gt;Versions used in this project:&#10;Xamarin 3.8.&#10;Xamarin Studio 5.7&#10;Xamarin Android 4.20.0&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://play.google.com/store/apps/details?id=info.tewari.censusmapper&amp;amp;utm_source=global_co&amp;amp;utm_medium=prtnr&amp;amp;utm_content=Mar2515&amp;amp;utm_campaign=PartBadge&amp;amp;pcampaignid=MKT-AC-global-none-all-co-pr-py-PartBadges-Oct1515-1" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="Get it on Google Play" class="gallery-image" data-flex-basis="810px" data-flex-grow="337" height="242" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://play.google.com/intl/en_us/badges/images/apps/en-play-badge.png" srcset="https://www.tewari.info/en-play-badge_8894513479543131546_hu_5bf219cf694dcfc4.png 800w, https://play.google.com/intl/en_us/badges/images/apps/en-play-badge.png 817w" width="817"&gt;&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Universal Apps</title><link>https://www.tewari.info/2014/11/12/universal-apps/</link><pubDate>Thu, 13 Nov 2014 02:50:36 +0000</pubDate><guid>https://www.tewari.info/2014/11/12/universal-apps/</guid><description>&lt;p&gt;The story of Windows Universal Apps is the result of advancements in three areas:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;The platform convergence between Windows 8.1 and Windows Phone 8.1&lt;/li&gt;&#10;&lt;li&gt;The (ongoing) unification of Windows and Windows Phone stores.&lt;/li&gt;&#10;&lt;li&gt;Shared Projects and other enhancements in Visual Studio 2013 Update 2 to support cross-platform development.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/universal-apps-titile.png" &gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/universal-apps-titile.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;I have written about my experience in converting an existing Windows 8 app, &lt;a class="link" href="http://blog.appliedis.com/2012/10/22/censusmapper-app-mashup-census-data-with-bing-maps/" target="_blank" rel="noopener"&#10; &gt;CensusMapper&lt;/a&gt;, to a Universal App on the &lt;a class="link" href="http://blog.appliedis.com/author/ash-tewari/" target="_blank" rel="noopener"&#10; &gt;AIS Blog&lt;/a&gt;. &lt;a class="link" href="http://blog.appliedis.com/2014/10/05/censusmapper-is-a-universal-app/" target="_blank" rel="noopener"&#10; &gt;Read the article here&lt;/a&gt;. I have also created another Universal App, LRMS, using Windows &lt;a class="link" href="http://appstudio.windows.com/" target="_blank" rel="noopener"&#10; &gt;App Studio&lt;/a&gt;. This app is available in both &lt;a class="link" href="http://apps.microsoft.com/windows/en-us/app/454df9ae-7a9d-40f2-8caf-5266649939d9" target="_blank" rel="noopener"&#10; &gt;Windows&lt;/a&gt; and &lt;a class="link" href="http://www.windowsphone.com/en-us/store/app/lrms/497cb5bb-1d37-4c66-a200-912b39872f6c" target="_blank" rel="noopener"&#10; &gt;Windows Phone&lt;/a&gt; Stores.&lt;/p&gt;&#10;&lt;p&gt;I gave a presentation at the &lt;a class="link" href="http://www.codecamp.org/Raleigh/" target="_blank" rel="noopener"&#10; &gt;Raleigh Code Camp&lt;/a&gt; this past weekend : Creating Universal Apps for Windows Phone 8.1 and Windows 8.1. Thanks to everyone who attended the presentation. The session slides for this presentation are available here : &lt;a class="link" href="http://1drv.ms/1GQSJI6" target="_blank" rel="noopener"&#10; &gt;Download Slides&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>Should my barber do a technology upgrade?</title><link>https://www.tewari.info/2014/07/12/should-my-barber-do-a-technology-upgrade/</link><pubDate>Sat, 12 Jul 2014 22:57:56 +0000</pubDate><guid>https://www.tewari.info/2014/07/12/should-my-barber-do-a-technology-upgrade/</guid><description>&lt;p&gt;I noticed a barber shop sign at a local strip mall last year and stepped inside, hoping to get a haircut. The lone barber turned away from the customer in his chair, looked at me and said, &amp;ldquo;Sorry, man. It is by appointment only&amp;rdquo;. It was relatively spacious place. There were no other waiting customers there. It felt peaceful and quiet. &lt;a class="link" href="http://wunc.org/" target="_blank" rel="noopener"&#10; &gt;Local NPR station&lt;/a&gt; was playing on the radio. I took his card and left. I got my haircut somewhere else that weekend. Over the next month or so, I called him on Saturdays, for the hair cut appointment. He was booked. Every single weekend. I wised up and called him on Friday. I got the appointment for the next day. I did not get the slot I wanted, but I picked from a couple of open slots. I showed up for my appointment, and I have been going to him ever since.&lt;/p&gt;&#10;&lt;p&gt;He charges a bit more than some of the other haircut places, but he does not rush to move on to the next customer and my wife is impressed by my haircuts. Enough said. The best part is that he plays NPR in the shop. All day long. I can continue listening to &lt;a class="link" href="http://www.thisamericanlife.org/" target="_blank" rel="noopener"&#10; &gt;This American Life&lt;/a&gt;, &lt;a class="link" href="http://www.npr.org/programs/all-things-considered/" target="_blank" rel="noopener"&#10; &gt;All Things Considered&lt;/a&gt; or &lt;a class="link" href="http://snapjudgment.org/" target="_blank" rel="noopener"&#10; &gt;Snap Judgment&lt;/a&gt; as I get out of my car and step inside the barber shop without missing much. There is a sense of privacy and exclusivity. It is perfect! And I love it!&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/barber-shop.jpg" &gt;&lt;img alt="barber-shop" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/barber-shop.jpg"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Photo Credit : https://flic.kr/p/mer3eX&lt;/p&gt;&#10;&lt;p&gt;He is running an appointment-only business and the probability of you getting an appointment on the same day, or a time slot of your choice is pretty much zero. He takes calls on a regular (non-smart) phone and records his appointments on a paper pad with a pen. He takes cash. There is not much of hi-technology there to speak of. One day, we started talking about technology. I asked him if he has thought about using one of the online services to help him with his business. The customers could do self-serve appointments online and he will not be interrupted on his phone while he is with his customers. Customer will get automatic appointment reminders. The payments can also be done online. He could build a database of his customers, create a following on social media and generate more business.&lt;/p&gt;&#10;&lt;p&gt;He knew about all of these options. But he seemed reluctant. He wants to keep it personal. He wants to talk to his customers directly, because when they talk to him and get the appointment, they show up. &amp;ldquo;There a lot of people who would love to waste my time. They will book fake appointments online and not show up.&amp;rdquo;, he said, &amp;ldquo;And I don&amp;rsquo;t want customer&amp;rsquo;s credit card numbers. I don&amp;rsquo;t have the time to deal with credit card refunds and disputes. With a larger business, when there are a few more barbers in the shop, it would make sense to hire someone to be at the front desk and handle everything being dependent on additional technology entails, but not now.&amp;rdquo; The conversation continued for a few more minutes, but his reluctance to consider upgrading to newer technology was quite evident.&lt;/p&gt;&#10;&lt;p&gt;He seems to have three main concerns :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;He wants only qualified/screened customers. He wants to keep his schedule full.&lt;/li&gt;&#10;&lt;li&gt;He wants to keep things simple. He wants to avoid handling customer&amp;rsquo;s credit card information.&lt;/li&gt;&#10;&lt;li&gt;He will personally need to transition to the new scheduling system. He wants an assistant to handle that.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;I would recommend a gradual transition. Here is a 10 point plan to get him started -&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Create free accounts with some of the online scheduling services and get familiar with them. &lt;a class="link" href="http://www.appointy.com/" target="_blank" rel="noopener"&#10; &gt;Appointy&lt;/a&gt; or &lt;a class="link" href="https://www.clickbook.net/" target="_blank" rel="noopener"&#10; &gt;ClickBook&lt;/a&gt; are a couple of services to try. They are not paying me to promote them. These are just two that stood out of many I researched.&lt;/li&gt;&#10;&lt;li&gt;Start using a tablet device to create and update some dummy appointments. I would recommend going with a data plan with a cellular provider rather than the Wi-Fi option. It will be significantly less tech hassle for you that way. Just trust me on this.&lt;/li&gt;&#10;&lt;li&gt;Use the online scheduling service trial for 2 weeks from the tablet device.&lt;/li&gt;&#10;&lt;li&gt;Based on the trial experience, sign up with one of the services for a month-to-month plan.&lt;/li&gt;&#10;&lt;li&gt;Handpick some of your regular customers and ask them to try the online scheduling service.&lt;/li&gt;&#10;&lt;li&gt;Other customers will continue to call on your existing phone for new appointments, rescheduling or cancellations. Update the schedule on paper as well as online (using tablet).&lt;/li&gt;&#10;&lt;li&gt;Continue to take cash. You will have the option to add online payments to the service for additional charge. You will not have to take the credit card numbers yourself.&lt;/li&gt;&#10;&lt;li&gt;Do this for 3 months. 3 months are necessary to ensure at least two cycles with a set of customers. People tend to have haircuts every 3-6 weeks.&lt;/li&gt;&#10;&lt;li&gt;Learn, evaluate and adapt. It is very important to plan for contingencies. What happens if the online scheduling service temporarily goes down? What if you drop and break your tablet in the middle of the day? Ditch the paper completely if you feel confident.&lt;/li&gt;&#10;&lt;li&gt;Tell more customers about the online scheduling option and go from there.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;strong&gt;This exercise has reinforced my position that software exists to support the business. Not the other way around. To my barber, this is serious business. This is his livelihood&lt;/strong&gt;. As techies, we tend to impart an importance to the technology for its own sake, but transitions and upgrades (if not executed and managed carefully) could be extremely detrimental to the business.&lt;/p&gt;&#10;&lt;p&gt;Whether he upgrades or not, He will continue to have my business. I wish the best for him.&lt;/p&gt;&#10;&lt;p&gt;Update : Since I wrote this, the barber shop has moved to a new location nearby. There are other barbers in the shop now. He is still by appointment only. His partners take walk-ins. There are large flat-panel TVs on the wall that sometimes play the &lt;a class="link" href="http://www.unctv.org/content/" target="_blank" rel="noopener"&#10; &gt;local NPR channel&lt;/a&gt;. It is a busier place than before. Although the sense of privacy and exclusivity is not there anymore, I am still going there for haircuts, for now.&lt;/p&gt;&#10;</description></item><item><title>Announcing New CodeDemo Feature - ZoomIt Integration</title><link>https://www.tewari.info/2014/06/15/codedemo-zoomit-integration/</link><pubDate>Mon, 16 Jun 2014 01:15:01 +0000</pubDate><guid>https://www.tewari.info/2014/06/15/codedemo-zoomit-integration/</guid><description>&lt;p&gt;I am very excited to announce a new feature of &lt;a class="link" href="http://www.codedemo.net" target="_blank" rel="noopener"&#10; &gt;CodeDemo&lt;/a&gt;. This feature integrates with &lt;a class="link" href="http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx" target="_blank" rel="noopener"&#10; &gt;ZoomIt&lt;/a&gt; and enables you to use ZoomIt much more fluently.&lt;/p&gt;&#10;&lt;p&gt;ZoomIt is a great presentation tool. It helps speakers and presenters deliver very effective presentations. But many presenters are not using this great tool as much and as effectively as it can be used. The reason is that ZoomIt has a bit of a learning curve. It takes practice to use it fluently. You have a lot going on in your mind while you are doing a presentation. Using ZoomIt distracts you from your presentation. Practice helps you get over this distraction. A lot of presenters use ZoomIt very effectively with practice. But for the rest of us, ZoomIt mastery has been elusive.&lt;/p&gt;&#10;&lt;p&gt;I have experimented and practiced (a lot) with several different ways to gain fluency with ZoomIt, including using custom keyboard combinations, but I could never get to the point where using ZoomIt feels like second nature. I realized that the mental and visual shift it takes to locate the keyboard combination and execute ZoomIt command with two fingers breaks the flow of the presentation and causes the distraction. &lt;strong&gt;I came up with a new way to use ZoomIt that has helped me immensely.&lt;/strong&gt; And I added that as a feature in CodeDemo, so now you can use this method too.&lt;/p&gt;&#10;&lt;p&gt;Some of you are familiar with CodeDemo. For those who are not, it is another new tool for presenters. I created this tool to make it easier to use code snippets in your presentations. ZoomIt integration is a new feature of CodeDemo. To use this feature -&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Start ZoomIt. If ZoomIt is not running, the commands will be simply ignored.&lt;/li&gt;&#10;&lt;li&gt;If you use custom keyboard combinations in ZoomIt, you will need to reset them back to defaults -&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Ctrl+1 to Zoom&lt;/li&gt;&#10;&lt;li&gt;Ctrl+2 to Draw&lt;/li&gt;&#10;&lt;li&gt;Ctrl+4 to LiveZoom&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Start CodeDemo.&lt;/li&gt;&#10;&lt;li&gt;Open a demo file. Any demo file will do. You must have a demo file open to call ZoomIt. If QuickStart.txt is already open in CodeDemo, you do not need to load another file. You can open Quickstart.txt file by clicking on the &amp;ldquo;Quickstart&amp;rdquo; button in the top menu.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Now the key step - do a quick double-tap on the CTRL key&lt;/strong&gt;. ZoomIt will be invoked and you will see a zoomed-in portion of your screen.&lt;/li&gt;&#10;&lt;li&gt;At this point, you use ZoomIt as you normally do.&#10;&lt;ul&gt;&#10;&lt;li&gt;Click to freeze the visual.&lt;/li&gt;&#10;&lt;li&gt;Press Ctrl key and use the mouse to draw a rectangle on the screen.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;Double-tap on the CTRL key (or press ESCAPE key) to exit ZoomIt &amp;ldquo;Zoom&amp;rdquo;.&lt;/li&gt;&#10;&lt;li&gt;You can also invoke ZoomIt &amp;ldquo;Draw&amp;rdquo; with a quick double-tap on the ALT key and ZoomIt &amp;ldquo;LiveZoom&amp;rdquo; with a quick double-tap on the SHIFT key. You may need to enable ZoomIt integration from the settings panel in CodeDemo :&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/codedemo-settings-zoomit.png" &gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/codedemo-settings-zoomit.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Invoking ZoomIt with a quick double-tap using just the index finger (or thumb) did the trick for me. I do not have to direct my attention to the keyboard anymore. The CTRL key is right there at the bottom corner of my keyboard and I can invoke ZoomIt without moving my eyes, my hand or my mind. &lt;strong&gt;There is only one thing to remember while using ZoomIt from CodeDemo - The CTRL key. That’s all. That one key will take care of 90% of what you need, to become effective with ZoomIt.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;You can get CodeDemo from &lt;a class="link" href="http://www.codedemo.net" target="_blank" rel="noopener"&#10; &gt;http://www.codedemo.net&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Photo Credit : http://thenounproject.com/term/gift/13360/&lt;/p&gt;&#10;</description></item><item><title>Do not learn another programming language</title><link>https://www.tewari.info/2014/05/31/do-not-learn-another-programming-language/</link><pubDate>Sat, 31 May 2014 22:43:20 +0000</pubDate><guid>https://www.tewari.info/2014/05/31/do-not-learn-another-programming-language/</guid><description>&lt;p&gt;As software developers, many of us &lt;a class="link" href="http://www.sitepoint.com/best-programming-language-learn-2014/" target="_blank" rel="noopener"&#10; &gt;agonize&lt;/a&gt; over which &lt;a class="link" href="http://mashable.com/2014/01/21/learn-programming-languages/" target="_blank" rel="noopener"&#10; &gt;programming&lt;/a&gt; &lt;a class="link" href="http://beta.slashdot.org/story/08/03/18/1633229/what-programming-languages-should-you-learn-next" target="_blank" rel="noopener"&#10; &gt;language&lt;/a&gt; we should &lt;a class="link" href="http://www.reddit.com/r/learnprogramming/comments/1y02s2/which_programming_language_should_i_learn_next/" target="_blank" rel="noopener"&#10; &gt;learn&lt;/a&gt; &lt;a class="link" href="http://www.streamhead.com/what-programming-language-to-learn-next/" target="_blank" rel="noopener"&#10; &gt;next&lt;/a&gt;. I have a suggestion - don&amp;rsquo;t learn another programming language. Learn a creative design skill - graphics design, 3-D modelling or Game Development. Learn basic photo editing skills instead of F#. I know &lt;a class="link" href="https://twitter.com/jamie_dixon" target="_blank" rel="noopener"&#10; &gt;Jamie&lt;/a&gt; and &lt;a class="link" href="https://twitter.com/ChipBurris" target="_blank" rel="noopener"&#10; &gt;Chip&lt;/a&gt; will agree with me ;).&lt;/p&gt;&#10;&lt;p&gt;I have a bit of a designer inside me. Not a lot. Just a bit. I was probably 15 when I learned how to do architectural perspective drawings. I created a few of the house renovation my dad was doing at the time. One of my dad&amp;rsquo;s friend asked me to create a drawing for the addition he was doing to his house. More recently, I have designed some logos (for my own use), as well as UI design of &lt;a class="link" href="http://www.windigoapp.com/" target="_blank" rel="noopener"&#10; &gt;Windigo&lt;/a&gt;, a Windows Phone app I created a couple of years ago. These are some of the logos I have created :&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/tile.png" width="210"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/Logo.png" width="150"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/CodeDemo-Medium.png" width="126"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;The UI and UX design of apps is something that fascinates me and I can see myself indulging in that some more. I am one of those software developers who (think they) have some design chops. Although I have not asked her yet, but I am confident that my mother will completely agree with me on this. I think she is still saving some of the masterpieces from my kindergarten.&lt;/p&gt;&#10;&lt;p&gt;I am excited about the addition of &lt;a class="link" href="http://www.pluralsight.com/training/DigitalTutors" target="_blank" rel="noopener"&#10; &gt;Digital Tutors&lt;/a&gt; content in the &lt;a class="link" href="http://www.pluralsight.com/" target="_blank" rel="noopener"&#10; &gt;Pluralsight&lt;/a&gt; library. I am drooling at the prospect of learning some new skills from there. I browsed the entire library to see if I can latch on to something. I started looking for a software in the library that I can afford. You will be lucky to find one that is less than a few grands. I am exaggerating, but only a little. I also noticed an interesting trend that some of this software is being offered for rent! Here is a list of four that I could start using a little or no cost and it is not a trial :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://pixologic.com/sculptris/" target="_blank" rel="noopener"&#10; &gt;Sculptris&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="https://www.unrealengine.com/products/udk/" target="_blank" rel="noopener"&#10; &gt;UDK&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://unity3d.com/unity/download" target="_blank" rel="noopener"&#10; &gt;Unity&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.e-onsoftware.com/try/vue_2014_ple/" target="_blank" rel="noopener"&#10; &gt;Vue - Personal Learning Edition&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;I think it is awesome that &lt;a class="link" href="http://www.pixar.com/" target="_blank" rel="noopener"&#10; &gt;Pixar&lt;/a&gt; has made its &lt;a class="link" href="http://renderman.pixar.com/view/renderman" target="_blank" rel="noopener"&#10; &gt;RenderMan&lt;/a&gt; software available for &lt;a class="link" href="http://thenextweb.com/creativity/2014/05/29/pixar-offers-renderman-free-non-commercial-users-lowers-overall-price/" target="_blank" rel="noopener"&#10; &gt;free for non-commercial use&lt;/a&gt;. RenderMan has been used to &lt;a class="link" href="http://renderman.pixar.com/view/movies-and-awards" target="_blank" rel="noopener"&#10; &gt;create movies&lt;/a&gt; like Frozen, IronMan 3, The Dark Knight and Pacific Rim. Pluralsight has the &lt;a class="link" href="http://www.digitaltutors.com/software/RenderMan-tutorials" target="_blank" rel="noopener"&#10; &gt;RenderMan&lt;/a&gt; covered as well.&lt;/p&gt;&#10;&lt;p&gt;I will probably start with Unity first. I have already played around with it. I think it will be good to build on that. More on this later. Stay tuned.&lt;/p&gt;&#10;&lt;p&gt;Photo Credit : https://flic.kr/p/5FXV7r&lt;/p&gt;&#10;</description></item><item><title>Extending Bootstrap - Book Review</title><link>https://www.tewari.info/2014/05/26/extending-bootstrap-book-review/</link><pubDate>Mon, 26 May 2014 19:36:36 +0000</pubDate><guid>https://www.tewari.info/2014/05/26/extending-bootstrap-book-review/</guid><description>&lt;p&gt;&lt;a class="link" href="http://www.packtpub.com/extending-bootstrap/book" target="_blank" rel="noopener"&#10; &gt;Extending Bootstrap&lt;/a&gt; is a new &lt;a class="link" href="http://getbootstrap.com/" target="_blank" rel="noopener"&#10; &gt;Bootstrap&lt;/a&gt; book by &lt;a class="link" href="http://crisu83.me/" target="_blank" rel="noopener"&#10; &gt;Christoffer Niska&lt;/a&gt;, published by &lt;a class="link" href="http://www.packtpub.com/" target="_blank" rel="noopener"&#10; &gt;Packt Publishing&lt;/a&gt;. The publisher contacted me to review the book after reading my &lt;a class="link" href="http://blog.appliedis.com/2013/02/04/bootstrap-with-less/" target="_blank" rel="noopener"&#10; &gt;blog post&lt;/a&gt; about my experiences with Bootstrap and LESS. I am glad I accepted to do this book review. I learned several ways to extend and use Bootstrap by reading this book.&lt;/p&gt;&#10;&lt;p&gt;The book is for intermediate to advanced level users of Bootstrap. It is a quick and to-the-point read. It may feel opinionated to some readers. It is a concise distillation of author&amp;rsquo;s real-world experience with the current state of the Bootstrap technology. It is perfect for individuals and teams who are looking to go beyond the basics with Bootstrap on their projects.&lt;/p&gt;&#10;&lt;p&gt;It is important to know that you will need to install &lt;a class="link" href="https://www.apachefriends.org/index.html" target="_blank" rel="noopener"&#10; &gt;XAMPP&lt;/a&gt; server and &lt;a class="link" href="http://nodejs.org/" target="_blank" rel="noopener"&#10; &gt;Node.js&lt;/a&gt; to follow along with some examples. Node is only needed for the steps needed to compile &lt;a class="link" href="http://lesscss.org/" target="_blank" rel="noopener"&#10; &gt;LESS&lt;/a&gt; style-sheets. For all other steps you can use &lt;a class="link" href="https://www.tewari.info/2013/02/06/the-site44-workflow/" &gt;Site44&lt;/a&gt;, or other ways to render your html and css. You might be able to use hosted node on &lt;a class="link" href="https://c9.io/" target="_blank" rel="noopener"&#10; &gt;C9.io&lt;/a&gt; to get the feel for the steps that require node, without having to mess around with a web server and node installation.&lt;/p&gt;&#10;&lt;p&gt;As you take your Bootstrap project to the next level, you will need a way to automate LESS compilation. Remember, you don&amp;rsquo;t want to use runtime LESS compilation in production due the performance hit it entails. Using &lt;a class="link" href="http://twitter.github.io/recess/" target="_blank" rel="noopener"&#10; &gt;RECESS&lt;/a&gt; and &lt;a class="link" href="http://gruntjs.com/" target="_blank" rel="noopener"&#10; &gt;Grunt&lt;/a&gt; is probably the best way to compile/automate style-sheets, and this is what the author recommends. There are other ways to accomplish this automation, but it is good to know how to use these tools, regardless.&lt;/p&gt;&#10;&lt;p&gt;The book does a good job of describing how to customize javascript plugins that come bundled with Bootstrap with a clear and clean example, as well as enumerating the reasons to customize. The example used to extend a plugin in Chapter 6 is reusable. It is actually a template that you can use to create your own extensions to Bootstrap plugins. The step by step explanation of the extension is very instructive. Awesome!&lt;/p&gt;&#10;&lt;p&gt;The instructions to disable responsiveness in Chapter 7 should have some more explanation, in my opinion. Granted, that the book is intended for advanced users, but these instructions to remove some lines here and add some lines there, may feel a bit arbitrary to a user who may want to understand the reasoning behind these steps.&lt;/p&gt;&#10;&lt;p&gt;Chapter 8 is a listing of popular custom Bootstrap plugins that can be useful to you in your own projects. The listing describes the functionality exposed by the plugins. It does not go in-depth or into the internals of how the plugins work. If you need the functionality provided by these plugins, this information can save you valuable time you might otherwise waste looking for and trying less than optimal candidates.&lt;/p&gt;&#10;&lt;p&gt;Chapter 9 gives you a starting point for creating your own Bootstrap theme on top of &lt;a class="link" href="http://bootswatch.com/" target="_blank" rel="noopener"&#10; &gt;Bootswatch&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;All chapters follow the format of explaining the reasons why you might want to do things described in the chapter, and only then getting into the details and explanation of the steps. I would like to mention this again - this is a thin volume but packs a solid punch. It does not have very in-depth technical explanations. It does have the information you need to get started with taking your Bootstrap project to the next level. The book is an enjoyable read and flows very naturally. You can also use it to create a checklist of things to do when customizing your Bootstrap project.&lt;/p&gt;&#10;</description></item><item><title>NoSQL in Windows Azure</title><link>https://www.tewari.info/2014/05/02/nosql-in-windows-azure/</link><pubDate>Fri, 02 May 2014 19:36:21 +0000</pubDate><guid>https://www.tewari.info/2014/05/02/nosql-in-windows-azure/</guid><description>&lt;p&gt;You may have questions like these - What are my NoSQL options in Windows Azure? Can I run MongoDB on linux on Windows Azure? Why would I want to do that? Which one of the NoSQL options are available as managed services? Are all kinds of NoSQL databases available? Are there any limitations? What are options for data analytics?&#10;Or may be you have questions like these - Is it true that NoSQL databases don&amp;rsquo;t have schema? Do they have indexes? What about Views? Should I choose MongoDB or Redis? What is eventual consistency?&#10;In this presentation, you will learn all about NoSQL technologies in Windows Azure Cloud Platform. And you will get get answers to questions like these.&#10;Carolina Code Camp - 2014&lt;/p&gt;&#10;</description></item><item><title>Announcing CodeDemo</title><link>https://www.tewari.info/2014/03/09/announcing-codedemo/</link><pubDate>Mon, 10 Mar 2014 01:58:22 +0000</pubDate><guid>https://www.tewari.info/2014/03/09/announcing-codedemo/</guid><description>&lt;p&gt;It is a challenge to use code snippets in presentations, demos and live coding sessions. I have struggled with this and seen many speakers jumping through hoops to assimilate code snippets in their demos. I had to create something to ease this pain.&lt;/p&gt;&#10;&lt;p&gt;Today, I am announcing the general availability of &lt;a class="link" href="http://codedemo.net/" title="CodeDemo website"&#10; target="_blank" rel="noopener"&#10; &gt;CodeDemo&lt;/a&gt;. A tool for instructors, presenters and speakers who create instructional demos, record screen-casts or do live presentations. CodeDemo pastes code snippets into your favorite IDE without getting in your way.&lt;/p&gt;&#10;&lt;p&gt;I decided not to open-source CodeDemo to challenge myself to an exercise in commercialization. I decided to learn about entrepreneurship, marketing, sales, licensing and other aspects of software commercialization. It has been an MBA&amp;rsquo;s worth of education so far. This journey is not over yet. I am taking the &lt;a class="link" href="http://theleanstartup.com/principles" title="The Lean Startup"&#10; target="_blank" rel="noopener"&#10; &gt;Lean&lt;/a&gt; approach of creating a &lt;a class="link" href="http://en.wikipedia.org/wiki/Minimum_viable_product" title="minimum viable product"&#10; target="_blank" rel="noopener"&#10; &gt;Minimum Viable Product&lt;/a&gt;. The future of CodeDemo, its feature set and the price, will be shaped by the traction it gets in the market, the feedback from the customers as well as patterns of use reported by the users.&lt;/p&gt;&#10;&lt;p&gt;Head over to &lt;a class="link" href="http://codedemo.net" target="_blank" rel="noopener"&#10; &gt;http://codedemo.net&lt;/a&gt; to grab a copy for yourself. Let me know if find it useful - I will be very excited to hear from you.&lt;/p&gt;&#10;&lt;p&gt;Here is a quick 2 minute introduction to CodeDemo :&lt;/p&gt;&#10;&lt;p&gt;[youtube]aFn3boBAWjw[/youtube]&lt;/p&gt;&#10;</description></item><item><title>Creating Windows 8 applications with MVVM</title><link>https://www.tewari.info/2014/01/11/creating-windows-8-applications-with-mvvm/</link><pubDate>Sat, 11 Jan 2014 20:10:52 +0000</pubDate><guid>https://www.tewari.info/2014/01/11/creating-windows-8-applications-with-mvvm/</guid><description>&lt;p&gt;TRINUG January Main Meeting&lt;/p&gt;&#10;&lt;p&gt;You will learn how to use MVVM in your own Windows 8 application - desktop/mobile&#10;You will learn MVVM fundamentals. You will see the contrast between an MVVM application and a non-MVVM application.&lt;/p&gt;&#10;</description></item><item><title>Using Layer Diagrams – Keeping your MVVM code from turning into spaghetti</title><link>https://www.tewari.info/2013/11/09/raleigh-code-camp-2013/</link><pubDate>Sat, 09 Nov 2013 20:46:16 +0000</pubDate><guid>https://www.tewari.info/2013/11/09/raleigh-code-camp-2013/</guid><description>&lt;p&gt;&lt;a class="link" href="http://codecamp.org/Raleigh" title="Raleigh Code Camp"&#10; target="_blank" rel="noopener"&#10; &gt;Raleigh Code Camp 2013&lt;/a&gt; is wrapping up this afternoon. The venue and the crowd was phenomenal. I really enjoyed &lt;a class="link" href="http://codecamp.org/Raleigh/Sessions" target="_blank" rel="noopener"&#10; &gt;presenting&lt;/a&gt;&amp;ldquo;Using Layer Diagrams - Keeping your MVVM code from turning into spaghetti&amp;rdquo;. Thanks to everyone who attended the presentation.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/codecamp2013.png" &gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/codecamp2013.png"&gt;&lt;/a&gt;&lt;a class="link" href="https://twitter.com/jsonmez" target="_blank" rel="noopener"&#10; &gt;John Sonmez&lt;/a&gt;, 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!&lt;/p&gt;&#10;&lt;p&gt;I did not get the time to complete the raffle at the end of the presentation. But the folks who won the raffle should be getting an email from me with instructions to download their free license of &lt;a class="link" href="http://codedemo.net/" target="_blank" rel="noopener"&#10; &gt;CodeDemo (Professional).&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The presentation slides can be downloaded from here : &lt;a class="link" href="https://www.tewari.info/wp-content/RDUCC-2013-LayerDiagrams-MVVM-Ash-Tewari.pdf" &gt;download&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>NCDevCon 2013 Schedule</title><link>https://www.tewari.info/2013/09/09/ncdevcon-2013-schedule/</link><pubDate>Mon, 09 Sep 2013 21:43:53 +0000</pubDate><guid>https://www.tewari.info/2013/09/09/ncdevcon-2013-schedule/</guid><description>&lt;p&gt;&lt;a class="link" href="http://ncdevcon.com/" target="_blank" rel="noopener"&#10; &gt;NCDevCon 2013&lt;/a&gt; (tentative) session &lt;a class="link" href="http://www.ncdevcon.com/page.cfm/schedule" target="_blank" rel="noopener"&#10; &gt;schedule&lt;/a&gt; is up. The &lt;a class="link" href="http://ncdevcon.com/page.cfm/sessions-2013" target="_blank" rel="noopener"&#10; &gt;topics&lt;/a&gt; seem quite interesting and varied : From &amp;ldquo;Web Penetration and Hacking Tools&amp;rdquo; (David Epler) to &amp;ldquo;Better UI/UX with Bootstrap : A Developer&amp;rsquo;s Primer&amp;rdquo; (Steve Keator) to &amp;ldquo;Getting Control of Your Asynchronous JavaScript&amp;rdquo; (Bucky Schwarz).&lt;/p&gt;&#10;&lt;p&gt;I am picking the sessions to attend.  Looks like I will be able attend around 11 sessions in 2 days, if that is all I do while I am there. Sometimes, there are good reasons to not attend a session :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;The conferences are for networking as well as for learning. If I strike an interesting conversation with someone, I will not hesitate to skip a session.&lt;/li&gt;&#10;&lt;li&gt;Sometimes, an impromptu group discussion sparks wonderful ideas and accelerate a thought process in a way which is unlikely to happen in a one-way presentation. If I am in such a discussion, I will gladly forego the opportunity to attend the next session.&lt;/li&gt;&#10;&lt;li&gt;A follow-on discussion after a session, either with the presenter or with other attendee(s) may derail my planned schedule.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Here is my pick of sessions (click the picture to enlarge):&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/ncdevcon2013schedule.png" &gt;&lt;img alt="NCDevCon 2013 Schedule" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/ncdevcon2013schedule.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Green highlights are the sessions I don’t want to miss.&lt;/p&gt;&#10;&lt;p&gt;Red/pink highlights are the sessions I will most likely not attend due to one of these reasons :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;I have no interest in the topic.&lt;/li&gt;&#10;&lt;li&gt;I already know the subject to the extent that attending a (seemingly) introductory session is not a valuable use of my time. After all, I can only attend one session out of five in a time-slot.&lt;/li&gt;&#10;&lt;li&gt;The session description is too vague for me to make a decision at the moment and there is another session in that timeslot that I am very keen on attending.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Yellow highlights are the sessions that I can&amp;rsquo;t make up my mind on. Any recommendations?&lt;/p&gt;&#10;&lt;p&gt;Which sessions are you attending?&lt;/p&gt;&#10;</description></item><item><title>DQS - Data Quality Services in SQL Server 2012</title><link>https://www.tewari.info/2013/07/20/dqs-data-quality-services-in-sql-server-2012/</link><pubDate>Sat, 20 Jul 2013 20:22:06 +0000</pubDate><guid>https://www.tewari.info/2013/07/20/dqs-data-quality-services-in-sql-server-2012/</guid><description>&lt;p&gt;TRINUG - Data SIG, July 2013&lt;/p&gt;&#10;&lt;p&gt;SQL Server Data Quality Services (DQS) is a knowledge-driven data quality product. DQS enables you to build a knowledge base and use it to perform a variety of critical data quality tasks, including correction, enrichment, standardization, and de-duplication of your data.&lt;/p&gt;&#10;</description></item><item><title>Get Your Windows 8 Start Menu Back With Pokki</title><link>https://www.tewari.info/2013/05/23/get-your-windows-8-start-menu-back-with-pokki/</link><pubDate>Fri, 24 May 2013 05:34:39 +0000</pubDate><guid>https://www.tewari.info/2013/05/23/get-your-windows-8-start-menu-back-with-pokki/</guid><description>&lt;p&gt;I like the new Windows 8 experience. Start screen with live tiles is awesome. But I have been missing the Start Menu when I am on the desktop. There are &lt;a class="link" href="http://www.redorbit.com/news/technology/1112841701/microsoft-bringing-back-the-start-button-for-windows-8-050913/" target="_blank" rel="noopener"&#10; &gt;plenty&lt;/a&gt; of &lt;a class="link" href="http://bits.blogs.nytimes.com/2013/05/07/after-bumpy-start-microsoft-rethinks-windows-8/" target="_blank" rel="noopener"&#10; &gt;rumours&lt;/a&gt; that Microsoft will bring back the Start Menu in the next version of Windows - &lt;a class="link" href="http://www.zdnet.com/microsofts-windows-8-plan-blue-bring-back-the-start-button-boot-to-desktop-7000014075/" target="_blank" rel="noopener"&#10; &gt;Windows Blue&lt;/a&gt;. Until then, you can use one of many third party utilities for that functionality - &lt;a class="link" href="http://www.classicshell.com/" target="_blank" rel="noopener"&#10; &gt;ClassicShell&lt;/a&gt;, &lt;a class="link" href="http://www.stardock.com/products/start8/" target="_blank" rel="noopener"&#10; &gt;Start8&lt;/a&gt; and &lt;a class="link" href="https://www.pokki.com/windows-8-start-menu" target="_blank" rel="noopener"&#10; &gt;Pokki&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;I started using &lt;a class="link" href="https://www.pokki.com/windows-8-start-menu" target="_blank" rel="noopener"&#10; &gt;Pokki&lt;/a&gt;. And I love it. It feels like my world is whole again. Pokki is &lt;a class="link" href="https://www.pokki.com/windows-8-start-menu" target="_blank" rel="noopener"&#10; &gt;free&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/Pokki-Screenshot.png" &gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/Pokki-Screenshot.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;If you want to do what I did, after installing it, open settings&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/pokki-settings-button.png" &gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/pokki-settings-button.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;and make these changes:&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/pokki-my-settings.png" &gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/pokki-my-settings.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Refactoring to MVVM (Windows 8)</title><link>https://www.tewari.info/2013/05/05/refactoring-to-mvvm-windows-8/</link><pubDate>Sun, 05 May 2013 19:47:09 +0000</pubDate><guid>https://www.tewari.info/2013/05/05/refactoring-to-mvvm-windows-8/</guid><description>&lt;p&gt;Carolina Code Camp - 2013&#10;You will learn how to structure your app&amp;rsquo;s code in a way that&#10;- improves maintainability&#10;- enables testability of your app&amp;rsquo;s UI behavior&#10;- reduces maintenance cost&#10;- enables cross-platform deployment&lt;/p&gt;&#10;</description></item><item><title>The Site44 Workflow</title><link>https://www.tewari.info/2013/02/06/the-site44-workflow/</link><pubDate>Wed, 06 Feb 2013 17:32:50 +0000</pubDate><guid>https://www.tewari.info/2013/02/06/the-site44-workflow/</guid><description>&lt;p&gt;A light weight development workflow with real-time website deployment.&lt;/p&gt;&#10;&lt;p&gt;I recently built &lt;a class="link" href="http://ash.site44.com/hero.html" target="_blank" rel="noopener"&#10; &gt;a sample website&lt;/a&gt; to illustrate &lt;a class="link" href="http://blog.appliedis.com/2013/02/04/bootstrap-with-less/" target="_blank" rel="noopener"&#10; &gt;how clean, semantic html&lt;/a&gt; markup can be maintained when using &lt;a class="link" href="http://twitter.github.com/bootstrap/index.html" target="_blank" rel="noopener"&#10; &gt;Bootstrap&amp;rsquo;s&lt;/a&gt; &lt;a class="link" href="http://twitter.github.com/bootstrap/scaffolding.html#gridSystem" target="_blank" rel="noopener"&#10; &gt;grid system&lt;/a&gt;. The solution is to use a &lt;a class="link" href="http://lesscss.org" target="_blank" rel="noopener"&#10; &gt;css pre-processor&lt;/a&gt; to incorporate Bootstrap&amp;rsquo;s &lt;a class="link" href="http://lesscss.org" target="_blank" rel="noopener"&#10; &gt;LESS&lt;/a&gt; based &lt;a class="link" href="http://twitter.github.com/bootstrap/extend.html#built-with-less" target="_blank" rel="noopener"&#10; &gt;mixins&lt;/a&gt; into your own .less files and push the Bootstrap instructions down into your stylesheets. There are two ways to &amp;ldquo;compile&amp;rdquo; .less stylesheets - use a &lt;a class="link" href="http://winless.org/" target="_blank" rel="noopener"&#10; &gt;stand-alone LESS compiler&lt;/a&gt; or use &lt;a class="link" href="https://github.com/cloudhead/less.js" target="_blank" rel="noopener"&#10; &gt;less.js&lt;/a&gt;. I found it very convenient to use &lt;a class="link" href="https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.min.js" target="_blank" rel="noopener"&#10; &gt;less.js&lt;/a&gt; (note that it is not recommended in production deployment). As I started working on developing the sample code I found it a bit cumbersome to work with an entire web application project in Visual Studio, considering I was working with some really simple sample client-side html, css. As I craved for an alternative, I stumbled on to a development workflow that is incredibly simple and a lot of fun. I call it the Site44 workflow. Site44 turns your dropbox folders into websites. And it is awesome! Here is what you do -&lt;/p&gt;&#10;&lt;p&gt;1. Sign into &lt;a class="link" href="http://www.site44.com" target="_blank" rel="noopener"&#10; &gt;Site44.com&lt;/a&gt; using your &lt;a class="link" href="http://www.dropbox.com" target="_blank" rel="noopener"&#10; &gt;dropbox&lt;/a&gt; credentials.&lt;/p&gt;&#10;&lt;p&gt;2. Create a new site (all you have to do is come up with a name). I named it &amp;ldquo;ash&amp;rdquo;. A sub-folder with this name will show up in your &lt;a class="link" href="http://www.dropbox.com" target="_blank" rel="noopener"&#10; &gt;dropbox&lt;/a&gt; folder.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/site44-dropbox-folder.png" &gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/site44-dropbox-folder.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;3. Drag this folder to your &lt;a class="link" href="http://www.github.com" target="_blank" rel="noopener"&#10; &gt;Github&lt;/a&gt; for Windows screen and drop it there to create a github repo in that folder and &lt;a class="link" href="https://github.com/ashtewari/ash.site44.com" target="_blank" rel="noopener"&#10; &gt;push it to github&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/site44-to-github.png" &gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/site44-to-github.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;4. Smile and write code.&lt;/p&gt;&#10;&lt;p&gt;As you save your code. The changes are deployed in real-time to your website. You commit to your github repo as you please. If you revert to a different version/branch of our code from your git repo, that version will be deployed (almost) instantly to your website. I wish there was a .site44ignore feature in &lt;a class="link" href="http://www.site44.com" target="_blank" rel="noopener"&#10; &gt;Site44&lt;/a&gt;, just like .gitignore. That will allow me to keep my .git folder (and some other files) from getting published to the website. Other than that, this worked out really well for me.&lt;/p&gt;&#10;&lt;p&gt;I wrote about the experience of extending Bootstrap with LESS here : &lt;a class="link" href="http://blog.appliedis.com/2013/02/04/bootstrap-with-less/" target="_blank" rel="noopener"&#10; &gt;Bootstrap with LESS&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Hat tip to &lt;a class="link" href="http://www.justinsaraceno.com/" target="_blank" rel="noopener"&#10; &gt;Justin Saraceno&lt;/a&gt; for introducing me to &lt;a class="link" href="http://www.site44.com" target="_blank" rel="noopener"&#10; &gt;site44&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>Understanding and Using System.Transactions</title><link>https://www.tewari.info/2012/10/17/understanding-and-using-system-transactions/</link><pubDate>Wed, 17 Oct 2012 16:10:42 +0000</pubDate><guid>https://www.tewari.info/2012/10/17/understanding-and-using-system-transactions/</guid><description>&lt;p&gt;These are some resources to help grasp &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/system.transactions%28v=vs.90%29.aspx" title="System.Transactions Namespace"&#10; target="_blank" rel="noopener"&#10; &gt;System.Transactions&lt;/a&gt; functionality and use it effectively in your projects:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818755%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;Features Provided by System.Transactions&lt;/a&gt; to &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818751%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;create transactional applications&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818746%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;Implementing an Implicit Transaction using Transaction Scope&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;MSDN Magazine Articles by &lt;a class="link" href="http://www.johnpapa.net/" target="_blank" rel="noopener"&#10; &gt;John Papa&lt;/a&gt;:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx" target="_blank" rel="noopener"&#10; &gt;ADO.NET and System.Transactions&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163527.aspx" target="_blank" rel="noopener"&#10; &gt;Revisiting System.Transactions&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;These are specific to &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/system.transactions.transactionscope%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;TransactionScope&lt;/a&gt;(the way to go in most cases):&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Here is a practical example of &lt;a class="link" href="http://thewayofcode.wordpress.com/2011/12/11/handling-transactions-in-net-using-transactionscope/" target="_blank" rel="noopener"&#10; &gt;Using TransactionScope to handle transactions in .net&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;This &lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc300805.aspx" target="_blank" rel="noopener"&#10; &gt;article in MSDN Magazine&lt;/a&gt; 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.&lt;/li&gt;&#10;&lt;li&gt;This CodeProject article is another example of &lt;a class="link" href="http://www.codeproject.com/Articles/31270/A-Transactional-Repository-Implementation-in-NET" target="_blank" rel="noopener"&#10; &gt;implementing a transactional repository&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;There are &lt;a class="link" href="http://blogs.msdn.com/b/dbrowne/archive/2010/06/03/using-new-transactionscope-considered-harmful.aspx" target="_blank" rel="noopener"&#10; &gt;excellent tips here&lt;/a&gt; about configuring TransactionScope when using it with SQL Server.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;This is a good resource for &lt;a class="link" href="http://www.codeproject.com/Articles/55472/Committable-Transactions-in-C-SQL" target="_blank" rel="noopener"&#10; &gt;understanding CommitableTransaction&lt;/a&gt; usage.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;And this one on the CodeProject has brilliant, in-depth and under-the-hood coverage - &lt;a class="link" href="http://www.codeproject.com/Articles/35087/Truly-Understanding-NET-Transactions-and-WCF-Imple" target="_blank" rel="noopener"&#10; &gt;Truly Understanding .NET Transactions and WCF Implementation&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Features Provided by System.Transactions&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818755%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/library/vstudio/ee818755(v=vs.100).aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Implementing an Implicit Transaction using Transaction Scope&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/library/vstudio/ee818746%28v=vs.100%29.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/library/vstudio/ee818746(v=vs.100).aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;MSDN Articles by John Papa&lt;/p&gt;&#10;&lt;p&gt;ADO.NET and System.Transactions&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163847.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/magazine/cc163847.aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Revisiting System.Transactions&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163527.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/magazine/cc163527.aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;These are specific to TransactionScope (the way to go in most cases)&lt;/p&gt;&#10;&lt;p&gt;Here is a practical example of Using TransactionScope :&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://thewayofcode.wordpress.com/2011/12/11/handling-transactions-in-net-using-transactionscope/" target="_blank" rel="noopener"&#10; &gt;http://thewayofcode.wordpress.com/2011/12/11/handling-transactions-in-net-using-transactionscope/&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;This one 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.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc300805.aspx" target="_blank" rel="noopener"&#10; &gt;http://msdn.microsoft.com/en-us/magazine/cc300805.aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Here is another example of implementing a transactional repository :&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://www.codeproject.com/Articles/31270/A-Transactional-Repository-Implementation-in-NET" target="_blank" rel="noopener"&#10; &gt;http://www.codeproject.com/Articles/31270/A-Transactional-Repository-Implementation-in-NET&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;There are excellent tips here about configuring TransactionScope when used with SQL Server:&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://blogs.msdn.com/b/dbrowne/archive/2010/06/03/using-new-transactionscope-considered-harmful.aspx" target="_blank" rel="noopener"&#10; &gt;http://blogs.msdn.com/b/dbrowne/archive/2010/06/03/using-new-transactionscope-considered-harmful.aspx&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;This is a good resource for CommitableTransaction usage - &lt;a class="link" href="http://www.codeproject.com/Articles/55472/Committable-Transactions-in-C-SQL" target="_blank" rel="noopener"&#10; &gt;http://www.codeproject.com/Articles/55472/Committable-Transactions-in-C-SQL&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;And this one has brilliant under-the-hood coverage - &lt;a class="link" href="http://www.codeproject.com/Articles/35087/Truly-Understanding-NET-Transactions-and-WCF-Impl" target="_blank" rel="noopener"&#10; &gt;http://www.codeproject.com/Articles/35087/Truly-Understanding-NET-Transactions-and-WCF-Impl&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Protecting Your Api Keys</title><link>https://www.tewari.info/2012/09/02/protecting-your-api-keys/</link><pubDate>Mon, 03 Sep 2012 03:14:38 +0000</pubDate><guid>https://www.tewari.info/2012/09/02/protecting-your-api-keys/</guid><description>&lt;p&gt;I am working on a Windows 8 app (details to follow in a subsequent post) and the code is published in a public repo on &lt;a class="link" href="http://www.github.com/" target="_blank" rel="noopener"&#10; &gt;github&lt;/a&gt;. My app uses third-party APIs and after I committed the first cut to github, I realized that I had included my api keys in the code. The whole world had access to my keys. I did not want to publish the developer keys for those APIs to the entire world.&lt;/p&gt;&#10;&lt;p&gt;When the app will be released and distributed, those keys will need to be included in the app somehow. Once the keys are out there they can not be 100% protected from a determined mind. So, why bother? Why would I want to hide the api keys in the source code? Here are some &lt;a class="link" href="http://www.infosecurity-magazine.com/blog/2011/4/20/protect-the-api-keys-to-your-cloud-kingdom/322.aspx" target="_blank" rel="noopener"&#10; &gt;good reasons&lt;/a&gt; -&lt;/p&gt;&#10;&lt;p&gt;1. It might be illegal to put the keys out there in plain sight for the whole world to see.&#10;2. Developer keys may be throttled or have other restrictions on how many times they can be used per day or per minute.&#10;3. The keys might allow access to expensive cloud computing resources.&#10;4. The keys might allow access to confidential/sensitive customer data.&lt;/p&gt;&#10;&lt;p&gt;First, I had to take my keys back from git repo. Can you really remove information from a public git repository? Yes, you can, using git &lt;a class="link" href="http://git-scm.com/docs/git-filter-branch/" target="_blank" rel="noopener"&#10; &gt;filter-branch&lt;/a&gt;. Here is how - &lt;a class="link" href="https://help.github.com/articles/remove-sensitive-data" target="_blank" rel="noopener"&#10; &gt;https://help.github.com/articles/remove-sensitive-data&lt;/a&gt;. It worked! I successfully rewrote the history! My past commits don&amp;rsquo;t have those file(s) anymore that had my private api keys.&lt;/p&gt;&#10;&lt;p&gt;Next, I made sure that I don&amp;rsquo;t make this mistake again -&lt;/p&gt;&#10;&lt;p&gt;1. I added a new file ApiKeys.cs to the project.&#10;2. Exposed the api keys as constants from a static class in this new file.&#10;3 Added ApiKeys.cs in .gitignore file, to prevent this file from being committed to the repository.&#10;4. Added instructions in ReadMe.txt for external developers to include their own keys.&lt;/p&gt;&#10;&lt;p&gt;This is not an ideal solution. If you are using a continuous build server, this technique will obviously not work. The code will not compile as-is, a file must be added to the project before it will start compiling. This works for me for now, but I am still looking for a better solution.&lt;/p&gt;&#10;</description></item><item><title>Favorite Excel Keyboard Shortcuts</title><link>https://www.tewari.info/2012/08/24/favorite-excel-keyboard-shortcuts/</link><pubDate>Fri, 24 Aug 2012 21:46:23 +0000</pubDate><guid>https://www.tewari.info/2012/08/24/favorite-excel-keyboard-shortcuts/</guid><description>&lt;p&gt;I am a big fan of keyboard shortcuts. Here are some of my favorites keyboard shortcuts in Excel.&lt;/p&gt;&#10;&lt;p&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/F2toeditselectedcell.png"&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/Ctrl5tostrikethrough.png"&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/shiftspacetoselectrow.png"&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/ctrlspacetoselectcolumn.png"&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/ctrlminustodeleteselectedrowcolumn.png"&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/dragcopy-b4.png"&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/dragcopyafter.png"&gt;&lt;/p&gt;&#10;</description></item><item><title>Solution to the fetch puzzle</title><link>https://www.tewari.info/2012/01/03/solution-to-the-fetch-puzzle/</link><pubDate>Wed, 04 Jan 2012 03:00:38 +0000</pubDate><guid>https://www.tewari.info/2012/01/03/solution-to-the-fetch-puzzle/</guid><description>&lt;p&gt;Here is a brute force solution to the fetch problem -&lt;/p&gt;&#10;&lt;p&gt;Basically, at each step there are three possibilities :&lt;/p&gt;&#10;&lt;p&gt;1. You can fill a bucket.&lt;/p&gt;&#10;&lt;p&gt;2. You can transfer water from one bucket to the other one.&lt;/p&gt;&#10;&lt;p&gt;3. You can dump out the water from a bucket.&lt;/p&gt;&#10;&lt;p&gt;In this brute force solution, I try each one of these steps and then try all three again after each one of the previous steps. And on&lt;/p&gt;&#10;&lt;p&gt;and on untill I get the required amount of water in one of the buckets.&lt;/p&gt;&#10;&lt;p&gt;Check it out. Source code is on my github repo -&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://github.com/ashtewari/fetch" target="_blank" rel="noopener"&#10; &gt;https://github.com/ashtewari/fetch&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Here is a brute force solution to the &lt;a class="link" href="https://www.tewari.info/2011/12/26/solve-puzzle-with-code/" title="fetch-puzzle"&#10; &gt;fetch puzzle&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The puzzle goes like this – You have two buckets. A 3 gallon bucket and a 5 gallon bucket. Buckets are not marked or graduated. You are to fetch 4 gallons of water in a single trip to the river. How will you do it?&lt;/p&gt;&#10;&lt;p&gt;Basically, at each step there are three possibilities :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;You can fill a bucket.&lt;/li&gt;&#10;&lt;li&gt;You can transfer water from one bucket to the other one.&lt;/li&gt;&#10;&lt;li&gt;You can dump out the water from a bucket.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;In this brute force solution, I try each one of these steps and then try all three again after each one of the previous steps. And on and on until I get the required amount of water in one of the buckets.&lt;/p&gt;&#10;&lt;p&gt;Check it out. Source code is on my github repo - &lt;a class="link" href="https://github.com/ashtewari/fetch" title="github-repo-fetch"&#10; target="_blank" rel="noopener"&#10; &gt;https://github.com/ashtewari/fetch&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Solve puzzle with code</title><link>https://www.tewari.info/2011/12/26/solve-puzzle-with-code/</link><pubDate>Tue, 27 Dec 2011 04:44:17 +0000</pubDate><guid>https://www.tewari.info/2011/12/26/solve-puzzle-with-code/</guid><description>&lt;p&gt;Here is a quite common programming interview puzzle - You have two buckets. A 3 gallon bucket and a 5 gallon bucket. Buckets are not marked or graduated. You are to fetch 4 gallon of water in a single trip to the river. How will you do it?&lt;/p&gt;&#10;&lt;p&gt;Obviousy, this question is asked by changing the capacities of the two buckets and the amount of water to be fetched.&lt;/p&gt;&#10;&lt;p&gt;Your mission, should you choose to accept it, is to write a program to solve this puzzle in a generic way. Your program should take 3 inputs - capacities of the two buckets and the amount of water to be fetched. After solving the puzzle, your program must write out the solution step-by-step. You can use any programming language, any platform, any programming technique to write the program. Use whatever you like - C#, VB, C, C++, Java, Ruby, Python, F#, Boo, Javascript or any other language of your choice. Use design patterns, TDD, BDD, MVVM, Linq or whatever. Make it blazing fast, exploit multiple cores, use artificial intelligence. Go nuts! If you want to write the whole program in T-sql, powershell script or a batch script, go ahead. Heck ! you can even do it with regular expressions, if that your thing!&lt;/p&gt;&#10;&lt;p&gt;Your mission, should you choose to accept it, is to write a program to solve this common programming interview puzzle in a generic way.&lt;/p&gt;&#10;&lt;p&gt;The puzzle goes like this - You have two buckets. A 3 gallon bucket and a 5 gallon bucket. Buckets are not marked or graduated. You are to fetch 4 gallons of water in a single trip to the river. How will you do it?&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="tommylees-flickr-buckets" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/tommylees-flickr-buckets.jpg"&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Photo Credit : http://www.flickr.com/photos/71256895@N00/3688461774/sizes/l/in/photostream/&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Your program should take 3 inputs - capacities of the two buckets and the amount of water to be fetched. After solving the puzzle, your program must write out the solution step-by-step. You can use any language, any platform and any technique to write the program. Use whatever you like - C#, VB, C, C++, Java, Ruby, Python, F#, Boo, Javascript, powershell script or any other language of your choice. Use design patterns, TDD, BDD, MVVM, Linq or whatever. Make it blazing fast, exploit multiple cores, use artificial intelligence. Go nuts! If you want to write the whole program in T-sql, go ahead. Heck ! you can even do it with regular expressions, if that your thing!&lt;/p&gt;&#10;</description></item><item><title>Windigo 1.1 Released</title><link>https://www.tewari.info/2011/12/05/windigo-1-1-released/</link><pubDate>Mon, 05 Dec 2011 13:59:47 +0000</pubDate><guid>https://www.tewari.info/2011/12/05/windigo-1-1-released/</guid><description>&lt;p&gt;&lt;a class="link" href="http://www.windowsphone.com/en-US/apps/fa40440c-a974-4329-b650-cf46d7c6eae4" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="windigo-samsung" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/windigo_10-3-2011_0.52.40.563.png"&gt;&lt;/a&gt;&lt;a class="link" href="http://www.windowsphone.com/en-US/apps/fa40440c-a974-4329-b650-cf46d7c6eae4" title="windigo-marketplace"&#10; target="_blank" rel="noopener"&#10; &gt;Windigo&lt;/a&gt; is a windows phone app to access your &lt;a class="link" href="http://www.diigo.com" title="diigo-website-url"&#10; target="_blank" rel="noopener"&#10; &gt;diigo&lt;/a&gt; account on windows phone 7.&lt;/p&gt;&#10;&lt;p&gt;Create, edit and search diigo bookmarks. Slick, to-the-point interface. Browse and search public bookmarks of other diigo users. Tap on the bookmark for details, including tags. Tap on any tag to narrow your search. Trial version is available.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://www.windowsphone.com/en-US/apps/fa40440c-a974-4329-b650-cf46d7c6eae4" title="windigo-download-link"&#10; target="_blank" rel="noopener"&#10; &gt;Windigo 1.1&lt;/a&gt; is out on the windows phone marketplace now.  Highlights of this update :&lt;/p&gt;&#10;&lt;p&gt;- Last SearchScope used is now persistent&lt;/p&gt;&#10;&lt;p&gt;- Fixed search when a search term is picked from suggested words&lt;/p&gt;&#10;&lt;p&gt;- Problem report now includes system info&lt;/p&gt;&#10;&lt;p&gt;- Handle crash on navigating from main page&lt;/p&gt;&#10;&lt;p&gt;- Fixed feature tracking for analytics&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Last SearchScope used is now persistent&lt;/li&gt;&#10;&lt;li&gt;Fixed search when a search term is picked from suggested words&lt;/li&gt;&#10;&lt;li&gt;Problem report now includes system info&lt;/li&gt;&#10;&lt;li&gt;Handle crash on navigating from main page&lt;/li&gt;&#10;&lt;li&gt;Fixed feature tracking for analytics&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item><item><title>Call For Windigo Beta Testers</title><link>https://www.tewari.info/2011/10/08/call-for-windigo-beta-testers/</link><pubDate>Sat, 08 Oct 2011 19:06:36 +0000</pubDate><guid>https://www.tewari.info/2011/10/08/call-for-windigo-beta-testers/</guid><description>&lt;p&gt;Windigo is a windows phone app. It lets you access your &lt;a class="link" href="http://www.diigo.com/" target="_blank" rel="noopener"&#10; &gt;Diigo&lt;/a&gt; bookmarks on the go from your windows phone. You can browse, edit and create new bookmarks. Search your and other&amp;rsquo;s (public) bookmarks. Drill-down using tags. Share your bookmarks with your friends.&lt;/p&gt;&#10;&lt;p&gt;I have completed developing this app and I would like to get it in the hands of a few more people to get some additional feedback before I submit it in windows phone marketplace. If you have a windows phone and a windows live id, you can help with this. Your phone does not need to be a developer (unlocked) phone.&lt;/p&gt;&#10;&lt;p&gt;If you are interested, &lt;a class="link" href="https://www.tewari.info/contact-me/" &gt;contact me&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Here is what I will do for you :&#10;I will acknowledge your role in preparing Windigo for release.&#10;Your name and a link to your website will appear in the credits page for Windigo.&#10;I will return the favor.&lt;/p&gt;&#10;</description></item><item><title>ChildWindow Positioning</title><link>https://www.tewari.info/2011/06/07/childwindow-positioning/</link><pubDate>Tue, 07 Jun 2011 11:23:52 +0000</pubDate><guid>https://www.tewari.info/2011/06/07/childwindow-positioning/</guid><description>&lt;p&gt;Silverlight &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/system.windows.controls.childwindow%28v=vs.95%29.aspx" title="MSDN_Silverlight_ChildWindow"&#10; target="_blank" rel="noopener"&#10; &gt;ChildWindow&lt;/a&gt; is centered over the parent control. I have extended ChildWindow to open it at a specific position.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/images/PositionedChildWindow-screenshot.png"&#10;&#9;&#9;&#9;alt="Positioned ChildWindow"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;Positioned ChildWindow&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Here is a live demo : &lt;a class="link" href="https://www.tewari.info/childwindow-positioning-demo/" &gt;childwindow-positioning-demo&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;And here is the code :&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;public partial class ChildWindowEx : ChildWindow&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Point _pt = new Point(0,0);&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; public ChildWindowEx()&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; InitializeComponent();&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; public ChildWindowEx(Point pt) : this()&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; _pt = pt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; protected override Size ArrangeOverride(Size finalSize)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Grid grid = Utils.FindChild(this, &amp;#34;ContentRoot&amp;#34;);&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; if (grid != null)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; grid.Arrange(new Rect(_pt.X, _pt.Y, grid.DesiredSize.Width, grid.DesiredSize.Height));&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; return finalSize;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; return base.ArrangeOverride(finalSize);&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Visual Studio 2010 Solution : &lt;a class="link" href="https://www.tewari.info/downloads/PositionedChildWindow.zip" &gt;download&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Remove ListBoxItem Highlighting</title><link>https://www.tewari.info/2011/04/29/remove-listboxitem-highlighting/</link><pubDate>Sat, 30 Apr 2011 03:25:58 +0000</pubDate><guid>https://www.tewari.info/2011/04/29/remove-listboxitem-highlighting/</guid><description>&lt;p&gt;A Silverlight/Wpf ListBoxItem is highlighted when selected or when the mouse hovers over it.&lt;/p&gt;&#10;&lt;p&gt;I need to display a list of items that are not highlighted when selected. This is a common scenario when displaying an inactive list for simply listing out some information.&lt;/p&gt;&#10;&lt;p&gt;ListBoxItem&amp;rsquo;s default template can be easily inspected and modified using Expression Blend - Select a ListBoxItem in Objects and Timeline pane, Right click and select Edit template &amp;gt; Edit a Copy. Name you template and save it at the scope of your choice.&lt;/p&gt;&#10;&lt;p&gt;This will create a copy of the template and allow you to modify it. Switch to the xaml view. Locate the VisualStates of MouseOver, Selected and Focused, and blank them out -&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="de-highlighted-xaml" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/2011-04-29_2257.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;The style is applied to the ListBoxItems using ItemContainerStyle -&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="applying-style-to-listboxitems" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/2011-04-29_2307.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;Here is the xaml style for the ListBoxItem -&lt;/p&gt;&#10;&lt;p&gt;After the style is applied, the ListBoxItems are not highlighted when selected or focused. Here is a live demo of a ListBox that does not highlight when items are selected : &lt;a class="link" href="https://www.tewari.info/remove-listboxitem-highlighting-demo/" &gt;remove-listboxitem-hlighting-demo&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Sideload Windows Phone</title><link>https://www.tewari.info/2010/11/25/sideload-windows-phone/</link><pubDate>Thu, 25 Nov 2010 21:02:12 +0000</pubDate><guid>https://www.tewari.info/2010/11/25/sideload-windows-phone/</guid><description>&lt;p&gt;1. Create your AppHub account here - &lt;a class="link" href="http://create.msdn.com" target="_blank" rel="noopener"&#10; &gt;http://create.msdn.com&lt;/a&gt;. Registration walk through is &lt;a class="link" href="http://create.msdn.com/en-US/home/about/developer_registration_walkthrough" title="registration-walk-through"&#10; target="_blank" rel="noopener"&#10; &gt;here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;2. Unlock your phone - using PhoneReg.exe (usually) located here - &amp;ldquo;C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\Phone Registration\PhoneReg.exe&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="wp-Start-WPDevTools" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/wp-Start-WPDevTools.png"&gt;&lt;img alt="wp-dev-phone-registration" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/wp-dev-phone-registration.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;3. Sideload xap into your phone. Use XapDeploy.exe (usually) located here - &amp;ldquo;C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\XAP Deployment\XapDeploy.exe&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="wp-app-deployment" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/wp-app-deployment.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;You can also deploy straight from Visual Studio to Windows Phone Device. Connect your phone to your computer.&#10;Make sure Visual Studio deployment target is &amp;ldquo;Windows Phone 7 Device&amp;rdquo; :&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="wp-device-target" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/wp-device-target1.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;From Toolbar, select Build, Deploy Solution.&lt;/p&gt;&#10;</description></item><item><title>Getting Started with MVVM</title><link>https://www.tewari.info/2010/11/06/getting-started-with-mvvm/</link><pubDate>Sat, 06 Nov 2010 16:29:24 +0000</pubDate><guid>https://www.tewari.info/2010/11/06/getting-started-with-mvvm/</guid><description>&lt;p&gt;I just finished presenting here at &lt;a class="link" href="http://codecamp.org/" target="_blank" rel="noopener"&#10; &gt;RDU Code Camp&lt;/a&gt;. It was a great crowd ! Here are the slides -&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;&lt;a class="link" href="http://www.slideshare.net/ashtewari/getting-started-with-mvvm" title="Getting started with MVVM"&#10; target="_blank" rel="noopener"&#10; &gt;Getting started with MVVM&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;View more &lt;a class="link" href="http://www.slideshare.net/" target="_blank" rel="noopener"&#10; &gt;presentations&lt;/a&gt; from &lt;a class="link" href="http://www.slideshare.net/ashtewari" target="_blank" rel="noopener"&#10; &gt;ashtewari&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>Win Advanced MVVM Book</title><link>https://www.tewari.info/2010/05/09/win-advanced-mvvm-book/</link><pubDate>Mon, 10 May 2010 03:33:06 +0000</pubDate><guid>https://www.tewari.info/2010/05/09/win-advanced-mvvm-book/</guid><description>&lt;p&gt;&lt;a class="link" href="http://joshsmithonwpf.wordpress.com/advanced-mvvm/" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="Advanced MVVM Cover" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/advancedmvvmcover.jpg"&gt;&lt;/a&gt; I am presenting a session on Building WPF Application using MVVM (&lt;a class="link" href="http://en.wikipedia.org/wiki/Model_View_ViewModel" title="Wikipedia-MVVM"&#10; target="_blank" rel="noopener"&#10; &gt;Model-View-ViewModel&lt;/a&gt;) on May 15th at the &lt;a class="link" href="http://codecamp.developersguild.org/" title="Carolina Code Camp 2010"&#10; target="_blank" rel="noopener"&#10; &gt;Carolina Code Camp&lt;/a&gt; 2010.&lt;/p&gt;&#10;&lt;p&gt;I will dissect a Sample WPF MVVM application and then highlight the most important aspects of the MVVM by coding a brand new ViewModel and incorporating it into the application. You will learn about the Roles of the MVVM triad, the advantages of using MVVM and Characteristics of the ViewModel.&lt;/p&gt;&#10;&lt;p&gt;Attendees will be eligible to win two copies one copy (see below) of &lt;a class="link" href="http://joshsmithonwpf.wordpress.com/" title="Josh Smith"&#10; target="_blank" rel="noopener"&#10; &gt;Josh Smith&amp;rsquo;s&lt;/a&gt; &lt;a class="link" href="http://joshsmithonwpf.wordpress.com/advanced-mvvm/" title="advanced-mvvm-book"&#10; target="_blank" rel="noopener"&#10; &gt;Advanced MVVM book&lt;/a&gt; as well as a few other WPF Books.&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;{ I will be giving away one hard copy version of the book instead of digital versions due to concerns about DRM protection and unclear gift guidelines at lulu.com }&lt;/em&gt;.&lt;/p&gt;&#10;&lt;p&gt;And the winner is &amp;hellip; Mark Freeman !!! Congratulations Mark, your copy of &amp;ldquo;Advanced MVVM&amp;rdquo; is on its way. Thanks for attending the code camp and your feedback.&lt;/p&gt;&#10;</description></item><item><title>SVN Merge - Selecting Changesets</title><link>https://www.tewari.info/2010/04/25/svn-merge-selecting-changesets/</link><pubDate>Mon, 26 Apr 2010 00:15:31 +0000</pubDate><guid>https://www.tewari.info/2010/04/25/svn-merge-selecting-changesets/</guid><description>&lt;p&gt;Here is a simple scenario – I have already merged changesets 45-55 from the trunk to branch b1. After this merge, more changes (56-60) were submitted into the trunk and I now need to merge those changes also to branch b1.&lt;/p&gt;&#10;&lt;p&gt;Which changesets do you select to merge ? 56-60, right ? Well, not exactly. It depends. If you are using &lt;a class="link" href="http://subversion.tigris.org/" target="_blank" rel="noopener"&#10; &gt;Subversion&lt;/a&gt; merge command, you will need to specify 55-60. If you are using &lt;a class="link" href="http://tortoisesvn.net/" target="_blank" rel="noopener"&#10; &gt;TortoiseSVN&lt;/a&gt;, you will select 56-60. You should keep this in mind if you are used to TortoiseSVN and you are attempting a merge using SVN merge command. Otherwise, you will end up with a merge without change 56.&lt;/p&gt;&#10;&lt;p&gt;Selecting changes to merge can become non-trivial when you don’t know which changes have already been merged. However, there is good news. With subversion 1.5, when you are selecting changes from source branch to merge into a target branch, don’t do it ! Subversion 1.5 onwards has built-in merge tracking. When using TortoiseSVN, if your intention is to merge all changes, just leave the changeset selection blank. Subversion knows which ones have already been merged and which ones to merge and it does it automatically. You can also select changes that have already been merged and those will be handled (excluded) automatically too.&lt;/p&gt;&#10;&lt;p&gt;There is a summary of what to expect from Subversion Merge-Tracking feature here - &lt;a class="link" href="http://blog.red-bean.com/sussman/?p=92" target="_blank" rel="noopener"&#10; &gt;Subversion 1.5 merge-tracking in a nutshell&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;There is detailed description of Subversion Merge-Tracking &lt;a class="link" href="http://svn.apache.org/repos/asf/subversion/trunk/notes/merge-tracking/index.html" target="_blank" rel="noopener"&#10; &gt;here&lt;/a&gt; and search for ‘mergeinfo property’ in Subversion &lt;a class="link" href="http://svnbook.red-bean.com/" target="_blank" rel="noopener"&#10; &gt;documentation&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/wp-content/20100425_1151.png" &gt;&lt;img alt="changes already merged appear in grey" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/wp-content/20100425_1151_thumb.png"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The above screen-shot shows the changes already merged in grey. Thanks to Subversion’s mergeinfo property.&lt;/p&gt;&#10;&lt;p&gt;So, can I just stop worrying about changesets altogether, when merging ? There are a few caveats to how mergeinfo metadata is (and sometimes not) recorded. Read this for more information -  &lt;a class="link" href="http://svnbook.red-bean.com/en/1.5/svn.branchmerge.advanced.html#svn.branchmerge.advanced.finalword" target="_blank" rel="noopener"&#10; &gt;The Final Word on Merge Tracking&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Read about &lt;a class="link" href="http://subversion.tigris.org/" target="_blank" rel="noopener"&#10; &gt;Subversion&lt;/a&gt; merging and branching &lt;a class="link" href="http://svnbook.red-bean.com/en/1.5/index.html" target="_blank" rel="noopener"&#10; &gt;here&lt;/a&gt; and &lt;a class="link" href="http://tortoisesvn.net/" target="_blank" rel="noopener"&#10; &gt;TortoiseSVN&lt;/a&gt; merging documentation &lt;a class="link" href="http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-merge.html" target="_blank" rel="noopener"&#10; &gt;here&lt;/a&gt; – browse down to these sections : Reviewing the Merge Results and Merge Tracking.&lt;/p&gt;&#10;</description></item><item><title>Code Validation in TortoiseSVN pre_commit_hook</title><link>https://www.tewari.info/2010/03/31/code-validation-in-tortoisesvn-pre_commit_hook/</link><pubDate>Thu, 01 Apr 2010 04:32:10 +0000</pubDate><guid>https://www.tewari.info/2010/03/31/code-validation-in-tortoisesvn-pre_commit_hook/</guid><description>&lt;p&gt;If you want to abort a commit if your code fails certain rule and you don&amp;rsquo;t have access to the &lt;a class="link" href="http://subversion.tigris.org/" title="svn"&#10; target="_blank" rel="noopener"&#10; &gt;SVN&lt;/a&gt; Server to configure a hook. What do you do ?&lt;/p&gt;&#10;&lt;p&gt;Assuming you are using &lt;a class="link" href="http://tortoisesvn.tigris.org/" title="tortoisesvn"&#10; target="_blank" rel="noopener"&#10; &gt;TortoiseSVN&lt;/a&gt;, you can configure a &lt;a class="link" href="http://tortoisesvn.tigris.org/tsvn_1.5_releasenotes.html#client-side-hooks" title="tortoisesvn-client-side-hook"&#10; target="_blank" rel="noopener"&#10; &gt;Client-Side hook&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Here is an example - Say you want to abort commit if you have a comment in your code that starts with &lt;strong&gt;//Do Not Commit&lt;/strong&gt;. You can create a &lt;a class="link" href="http://en.wikipedia.org/wiki/Windows_PowerShell" title="wikipedia-powershell"&#10; target="_blank" rel="noopener"&#10; &gt;PowerShell&lt;/a&gt; script that validates all the files in your changeset and use this script as a Client-Side pre_commit_hook in TortoiseSVN.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/TortoiseSVN-Settings-HookScripts.png"&#10;&#9;&#9;&#9;alt="TortoiseSVN-Settings-HookScripts"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;TortoiseSVN-Settings-HookScripts&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;The pre_commit_hook configuration :&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/Configure-Hook-Scripts.png"&#10;&#9;&#9;&#9;alt="Configure-Hook-Scripts"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;Configure-Hook-Scripts&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;//Powershell script : pre_commit.ps1&lt;/p&gt;&#10;&lt;p&gt;$donotcommit = &amp;ldquo;//Do Not Commit&amp;rdquo;;&lt;/p&gt;&#10;&lt;p&gt;$changeset = Get-Content$args[0];&lt;/p&gt;&#10;&lt;p&gt;foreach($file in $changeset)&#10;{&#10;if( Get-Content$file | Select-String$donotcommit-quiet )&#10;{&#10;Write-Error &amp;ldquo;$file contains code that you are not supposed to commit. [$donotcommit]&amp;rdquo;;&#10;exit9;&#10;}&#10;}&lt;/p&gt;&#10;&lt;p&gt;Now, if your changeset has a file with a comment starting with &lt;strong&gt;//Do Not Commit&lt;/strong&gt; and you click on OK to commit this change, the commit will be aborted with this error message -&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/pre_commit_hook-validation1.png"&#10;&#9;&#9;&#9;alt="pre_commit_hook-validation"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;pre_commit_hook-validation&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&#10;</description></item><item><title>Using Model-View-ViewModel in WPF Applications</title><link>https://www.tewari.info/2010/01/25/using-model-view-viewmodel-in-wpf-applications/</link><pubDate>Mon, 25 Jan 2010 22:23:39 +0000</pubDate><guid>https://www.tewari.info/2010/01/25/using-model-view-viewmodel-in-wpf-applications/</guid><description>&lt;p&gt;I am presenting at &lt;a class="link" href="http://www.socalcodecamp.com/" title="socalcodecamp website"&#10; target="_blank" rel="noopener"&#10; &gt;SoCalCodeCamp&lt;/a&gt; this weekend (January 30th, 2010) - &lt;a class="link" href="http://www.socalcodecamp.com/socalcodecamp/session.aspx?sid=0b2ee44f-595d-4f55-a5d6-2b1293f546d0" title="WPF MVVM Presntation "&#10; target="_blank" rel="noopener"&#10; &gt;Advanced WPF - Using Model-View-ViewModel in WPF Applications&lt;/a&gt;.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://www.tewari.info/wp-content/tasklist.png"&#10;&#9;&#9;&#9;alt="tasklist-mockup"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;tasklist-mockup&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Agenda :&lt;/p&gt;&#10;&lt;p&gt;1. Roles of the M-V-VM triad&lt;/p&gt;&#10;&lt;p&gt;2. Why use M-V-VM ?&lt;/p&gt;&#10;&lt;p&gt;3. Characteristics of the ViewModel&lt;/p&gt;&#10;&lt;p&gt;4. Build a Sample WPF Application using M-V-VM&lt;/p&gt;&#10;&lt;p&gt;Resources :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/dd419663.aspx" title="MSDN Magazine Article"&#10; target="_blank" rel="noopener"&#10; &gt;MSDN Magazine Article&lt;/a&gt; and Sample Application &lt;a class="link" href="http://code.msdn.microsoft.com/mag200902MVVM/Release/ProjectReleases.aspx" title="Download Demo Application Code"&#10; target="_blank" rel="noopener"&#10; &gt;Download&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://martinfowler.com/eaaDev/PresentationModel.html" title="MartinFowler.com"&#10; target="_blank" rel="noopener"&#10; &gt;Martin Fowler’s description of the ‘Presentation Model ‘&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://codebetter.com/blogs/jeremy.miller/archive/2007/07/25/the-build-your-own-cab-series-table-of-contents.aspx" title="Jeremy Miller&amp;#39;s - Build Your CAB"&#10; target="_blank" rel="noopener"&#10; &gt;Jeremy Miller’s ‘Build Your Own CAB’ series&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;</description></item><item><title>Use Legacy Printer From Windows 7</title><link>https://www.tewari.info/2010/01/23/use-legacy-printer-from-windows-7/</link><pubDate>Sun, 24 Jan 2010 01:10:04 +0000</pubDate><guid>https://www.tewari.info/2010/01/23/use-legacy-printer-from-windows-7/</guid><description>&lt;p&gt;I have NEC SuperScript 870 laser printer connected to my Home PC. I was not able to print to this printer from my new HP dv6-1375dx Windows 7 laptop. My machines are connected via &lt;a class="link" href="http://www.LogMeIn.com" title="hamachi"&#10; target="_blank" rel="noopener"&#10; &gt;Hamachi&lt;/a&gt;. Here is what I did to get around the lack of NEC driver for Windows 7 (I found this tip &lt;a class="link" href="http://social.technet.microsoft.com/Forums/en/w7itprohardware/thread/c2650495-a9f6-4ead-a1d0-aa9c0b265af3" title="social.technet.microsoft.com"&#10; target="_blank" rel="noopener"&#10; &gt;here&lt;/a&gt;) -&lt;/p&gt;&#10;&lt;p&gt;1. Created a new printer (pointing to the same LPT port that is connected to NEC 870) on my Home PC using HP Laser Jet III driver.&lt;/p&gt;&#10;&lt;p&gt;2. Shared this new printer.&lt;/p&gt;&#10;&lt;p&gt;3. On the Windows 7 laptop, I dropped the document I wanted to print on this new printer. Voila !!!&lt;/p&gt;&#10;</description></item><item><title>Should you get into Silverlight or Flash ?</title><link>https://www.tewari.info/2009/11/22/should-you-get-into-silverlight-or-flash/</link><pubDate>Mon, 23 Nov 2009 04:31:44 +0000</pubDate><guid>https://www.tewari.info/2009/11/22/should-you-get-into-silverlight-or-flash/</guid><description>&lt;p&gt;Take a look at these trend lines from Indeed.com (Yes, you read that right. That is &lt;strong&gt;EIGHTY THOUSAND percent&lt;/strong&gt; growth in silverlight jobs) -&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://www.indeed.com/jobtrends?q=silverlight&amp;amp;relative=1&amp;amp;relative=1" title="silverlight Job Trends"&#10; target="_blank" rel="noopener"&#10; &gt;&lt;img alt="silverlight Job Trends graph" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://www.indeed.com/trendgraph/jobgraph.png?q=silverlight&amp;relative=1"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Here is the trend line for Flash jobs -&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://www.indeed.com/jobtrends?q=flash&amp;amp;relative=1&amp;amp;relative=1" title="flash Job Trends"&#10; target="_blank" rel="noopener"&#10; &gt;&lt;img alt="flash Job Trends graph" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://www.indeed.com/trendgraph/jobgraph.png?q=flash&amp;relative=1"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Growth is there but the total number of jobs are clearly stabilizing. Here are the absolute number of jobs -&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://www.indeed.com/jobtrends?q=silverlight%2C&amp;#43;flash" title="silverlight, flash Job Trends"&#10; target="_blank" rel="noopener"&#10; &gt;&lt;img alt="silverlight, flash Job Trends graph" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://www.indeed.com/trendgraph/jobgraph.png?q=silverlight%2C+flash"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Interesting numbers !!!&lt;/p&gt;&#10;</description></item><item><title>Session Recommendations for SoCal Code Camp @ USC</title><link>https://www.tewari.info/2009/11/12/session-recommendations-for-socal-code-camp-usc/</link><pubDate>Thu, 12 Nov 2009 07:02:24 +0000</pubDate><guid>https://www.tewari.info/2009/11/12/session-recommendations-for-socal-code-camp-usc/</guid><description>&lt;p&gt;&lt;a class="link" href="http://www.socalcodecamp.com/" title="SoCal Code Camp Home"&#10; target="_blank" rel="noopener"&#10; &gt;SoCal Code Camp&lt;/a&gt; is coming up on November 21st &amp;amp; 22nd 2009 at University of Southern California, Los Angeles. There is just an incredible lineup of sessions. If you are trying to make up your mind about the &lt;a class="link" href="http://www.socalcodecamp.com/sessions.aspx" title="SoCal Code Camp Sessions"&#10; target="_blank" rel="noopener"&#10; &gt;sessions&lt;/a&gt; to attend, here are my recommendations -&lt;/p&gt;&#10;&lt;p&gt;1. Attend as many of &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#LlewellynFalco" title="Llewellyn Falco"&#10; target="_blank" rel="noopener"&#10; &gt;Llewellyn Falco&amp;rsquo;s&lt;/a&gt; and &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#WoodyZuill" title="Woody Zuill"&#10; target="_blank" rel="noopener"&#10; &gt;Woody Zuill&lt;/a&gt;&amp;rsquo;s sessions as you can. Specially, &lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=9517fe67-b29d-4e24-b707-c62f53c133a3" title="Unit Testing Session"&#10; target="_blank" rel="noopener"&#10; &gt;Unit Testing The Easy Way&lt;/a&gt; and one of the &lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=84c8777a-e7d8-4ba1-90e1-637f9f213ad5" title="sunday"&#10; target="_blank" rel="noopener"&#10; &gt;Dojo&lt;/a&gt; &lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=8b0f26e9-c5a5-4c7f-b81f-66e13704ff84" title="sat"&#10; target="_blank" rel="noopener"&#10; &gt;sessions&lt;/a&gt;. Any one of these sessions will make your entire trip worthwhile.&lt;/p&gt;&#10;&lt;p&gt;2.Kristian Hermansen&amp;rsquo;s &lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=fd21018f-1eda-4574-86de-a5a08ea1c890" title="Get Hacked"&#10; target="_blank" rel="noopener"&#10; &gt;Get Hacked Live ..&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;3. Stacey Broadwell&amp;rsquo;s &lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=80408281-81af-4002-891b-3385cced09e3" title="stacey"&#10; target="_blank" rel="noopener"&#10; &gt;Using Technology &amp;amp; Social Media to Target Candidates &amp;amp; Jobs&lt;/a&gt; should be very useful. I attended her recent presentation at &lt;a class="link" href="http://www.ladotnet.org" title="la dot net"&#10; target="_blank" rel="noopener"&#10; &gt;L.A. Dot Net&lt;/a&gt; @ UCLA, it was very informative.&lt;/p&gt;&#10;&lt;p&gt;4. and of course &lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=095564b7-394b-48cc-b455-2fdc449dc0d5" title="If it walks like a Scrum"&#10; target="_blank" rel="noopener"&#10; &gt;If it walks like a Scrum &amp;hellip;&lt;/a&gt; by yours sincerely.&lt;/p&gt;&#10;&lt;p&gt;I am planning to attend as many of the following sessions as the schedule allows -&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=e3ba443e-d0e4-498e-bd11-6191a692dcb9" target="_blank" rel="noopener"&#10; &gt;\* Algorithmic Trading in C#&lt;/a&gt; &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#scotthodson" target="_blank" rel="noopener"&#10; &gt;scott hodson&lt;/a&gt;&lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=ede2950a-c3da-4e7c-bbdc-fac73a7dfcb5" target="_blank" rel="noopener"&#10; &gt;\* Automated Grid layout in Silverlight and WPF&lt;/a&gt; &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#RichardFencel" target="_blank" rel="noopener"&#10; &gt;Richard Fencel&lt;/a&gt;&lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=afe1af3a-6194-4063-9084-f71da84f8a3f" target="_blank" rel="noopener"&#10; &gt;\* Building nTier Applications with Entity Framework Services&lt;/a&gt; &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#DavidMcCarter" target="_blank" rel="noopener"&#10; &gt;David McCarter&lt;/a&gt;&lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=e7a98d1f-655e-4f49-8005-5c242d2708f5" target="_blank" rel="noopener"&#10; &gt;\* Experiencing Agile Through Games&lt;/a&gt; &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#CarltonNettleton" target="_blank" rel="noopener"&#10; &gt;Carlton Nettleton&lt;/a&gt;&lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=ec73a07a-1724-4616-99e4-35939262780c" target="_blank" rel="noopener"&#10; &gt;\* Interoperability in the Cloud&lt;/a&gt; &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#AlejandroEspinoza" target="_blank" rel="noopener"&#10; &gt;Alejandro Espinoza&lt;/a&gt;&lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=072aee18-b1e8-45f8-8592-f17aecf673eb" target="_blank" rel="noopener"&#10; &gt;\* Rapid Prototyping with Expression Blend&lt;/a&gt; &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#markbosley" target="_blank" rel="noopener"&#10; &gt;mark bosley&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;\* One of &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#PaulSheriff" target="_blank" rel="noopener"&#10; &gt;Paul Sheriff&amp;rsquo;s WPF presentations&lt;/a&gt;&lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=72df5ea3-b98d-44bf-8389-f057e4ca5272" target="_blank" rel="noopener"&#10; &gt;\* SCRUM CLUB: Agile Requirements Gathering Workshop!&lt;/a&gt; &lt;a class="link" href="http://www.socalcodecamp.com/presenters.aspx#AmandaAbelove" target="_blank" rel="noopener"&#10; &gt;Amanda Abelove&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;See you there !&lt;/p&gt;&#10;</description></item><item><title>Using DbUpdater with MySql</title><link>https://www.tewari.info/2009/09/28/using-dbupdater-with-mysql/</link><pubDate>Mon, 28 Sep 2009 07:13:02 +0000</pubDate><guid>https://www.tewari.info/2009/09/28/using-dbupdater-with-mysql/</guid><description>&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/dbupdater/" title="DbUpdater Page"&#10; &gt;DbUpdater&lt;/a&gt; can be used with &lt;a class="link" href="http://www.mysql.com/" title="mysql.com"&#10; target="_blank" rel="noopener"&#10; &gt;mysql&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Here are the files you need to jumpstart the integration - &lt;a class="link" href="https://www.tewari.info/downloads/DbUpdater-MySql.zip" title="DbUpdater-MySql.zip"&#10; &gt;DbUpdater-MySql.zip&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;1. You might need to change the path to mysql.exe in mysql-exec.bat.&lt;/p&gt;&#10;&lt;p&gt;2. Modify values in mysql-sample-command-line.bat.&lt;/p&gt;&#10;&lt;p&gt;Make sure mysql.data.dll is placed in GAC or in the same directory as DbUpdater.exe. Connector binaries can be downloaded from here -&#10;&lt;a class="link" href="http://dev.mysql.com/downloads/connector/net/6.1.html" title="MySql .NET Connector Download"&#10; target="_blank" rel="noopener"&#10; &gt;http://dev.mysql.com/downloads/connector/net/6.1.html&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>SQL Azure Notes</title><link>https://www.tewari.info/2009/09/10/sql-azure-notes/</link><pubDate>Fri, 11 Sep 2009 03:45:26 +0000</pubDate><guid>https://www.tewari.info/2009/09/10/sql-azure-notes/</guid><description>&lt;p&gt;My invitation code for &lt;a class="link" href="http://www.microsoft.com/azure/sql.mspx" target="_blank" rel="noopener"&#10; &gt;SQL Azure CTP&lt;/a&gt; finally arrived. I had been waiting for this.&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="sqlazure-manage.png" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/sqlazure-manage.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;You can create a database in from the SQL Azure Management page, shown above.&lt;/p&gt;&#10;&lt;p&gt;After you have created the database, of course, you can use &lt;a class="link" href="https://www.tewari.info/dbupdater/" &gt;DbUpdater&lt;/a&gt; with your SQL Azure databases. Here is the command-line :&#10;DbUpdater.exe ..\SqlScripts /server:&amp;ldquo;tcp:SERVER.ctp.database.windows.net&amp;rdquo; /db:DATABASE /user:&amp;ldquo;USER@SERVER&amp;rdquo; /password:PASSWORD /confirm:true&lt;/p&gt;&#10;&lt;p&gt;And you will need this DbUpdater.exe.config file :&lt;/p&gt;&#10;&lt;?xml version="1.0" encoding="utf-8" ?&gt;&#10;&lt;configuration&gt;&#10;&lt;appSettings&gt;&#10;&lt;add key="file-prefix" value="db" /&gt;&#10;&lt;add key="file-extension" value="sql" /&gt;&#10;&lt;add key="schema-versions-name" value="schema-versions-table.sql" /&gt;&#10;&lt;add key="baseline-name" value="baseline.sql" /&gt;&#10;&lt;add key="post-script-prefix" value="post" /&gt;&#10;&lt;add key="post-script-always-apply" value="true" /&gt;&#10;&lt;add key="exe-file" value="C:\\Program Files\\Microsoft SQL Server\\90\\Tools\\Binn\\SQLCMD.EXE" /&gt;&#10;&lt;add key="exe-args" value='-U %UserName% -P %Password% -S "%ServerName%" -d %DbName% -i "%SqlFile%"' /&gt;&#10;&lt;add key="dialect" value="NHibernate.Dialect.MsSql2000Dialect" /&gt;&#10;&lt;add key="driver\_class" value="NHibernate.Driver.SqlClientDriver" /&gt;&#10;&lt;add key="connection\_string" value="Server=%ServerName%;Database=%DbName%;User ID=%UserName%;Password=%Password%;Trusted\_Connection=False;" /&gt;&#10;&lt;/appSettings&gt;&#10;&lt;/configuration&gt;&#10;&lt;p&gt;You can run sqlcmd.exe directly to execute t-sql scripts on SQL Azure. Here is a sample command :&#10;sqlcmd.exe -S SERVER.ctp.database.windows.net -U USER@SERVER -P PASSWORD -d DB -i &amp;ldquo;baseline.sql&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;I received these errors when I executed my SQL Server 2005 scripts on a SQL Azure database -&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&amp;lsquo;ANSI_NULLS&amp;rsquo; is not a recognized SET option.&lt;/li&gt;&#10;&lt;li&gt;Deprecated feature &amp;lsquo;SET ANSI_PADDING OFF&amp;rsquo; is not supported in this version of SQL Server.&lt;/li&gt;&#10;&lt;li&gt;Deprecated feature &amp;lsquo;More than two-part column name&amp;rsquo; is not supported in this version of SQL Server.&lt;/li&gt;&#10;&lt;li&gt;Deprecated feature &amp;lsquo;Data types: text ntext or image&amp;rsquo; is not supported in this version of SQL Server.&lt;/li&gt;&#10;&lt;li&gt;Deprecated feature &amp;lsquo;Table hint without WITH&amp;rsquo; is not supported in this version of SQL Server.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;These are not the limitations of the SQL Azure platform. SQL Azure is based on SQL Server 2008 Database Engine. The complete list of deprecated features in SQL Server 2008 are listed here along with the replacements (if any) : &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/ms143729.aspx" target="_blank" rel="noopener"&#10; &gt;Deprecated Database Engine Features in SQL Server 2008 - MSDN.&lt;/a&gt;&#10;After modifying the scripts to replace the deprecated features, the scripts could be executed without any further issues. All stored procedures, triggers and views were created without any errors.&lt;/p&gt;&#10;&lt;p&gt;The following error is a SQL Azure limitation.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&amp;lsquo;Filegroup reference and partitioning scheme&amp;rsquo; is not supported in this version of SQL Server.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Here is more detailed information on unsupported T-SQL - &lt;a class="link" href="http://msdn.microsoft.com/en-us/library/ee336253.aspx" target="_blank" rel="noopener"&#10; &gt;Unsupported Transact-SQL Statements (SQL Azure Database) - MSDN&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Online Backup Solution</title><link>https://www.tewari.info/2009/08/25/online-backup-solution/</link><pubDate>Wed, 26 Aug 2009 05:40:40 +0000</pubDate><guid>https://www.tewari.info/2009/08/25/online-backup-solution/</guid><description>&lt;p&gt;Finalized online backup solution : &lt;a class="link" href="http://www.jungledisk.com" title="jungledisk"&#10; target="_blank" rel="noopener"&#10; &gt;JungleDisk&lt;/a&gt;. I can run it on all of my machines &lt;a class="link" href="http://jungledisk.com/desktop/how.aspx" title="jungledisk-features"&#10; target="_blank" rel="noopener"&#10; &gt;without paying extra&lt;/a&gt;. I get to keep the ownership of my data - by using my own &lt;a class="link" href="http://aws.amazon.com/s3/" title="amazon-s3"&#10; target="_blank" rel="noopener"&#10; &gt;Amazon S3&lt;/a&gt; storage. Backed up all family photos - all 30 GBs. Feeling good :)&lt;/p&gt;&#10;</description></item><item><title>Switched to Thematic</title><link>https://www.tewari.info/2009/08/24/switched-to-thematic/</link><pubDate>Tue, 25 Aug 2009 05:36:31 +0000</pubDate><guid>https://www.tewari.info/2009/08/24/switched-to-thematic/</guid><description>&lt;p&gt;I have switched to &lt;a class="link" href="http://themeshaper.com/thematic/" title="Thematic"&#10; target="_blank" rel="noopener"&#10; &gt;Thematic&lt;/a&gt; theme on this blog over the weekend. I created a child theme after playing around with the customization hooks. I added a widgetized area below main asides, did some css modifications and created a three column, flexible layout just the way I wanted. I am so glad I switched to Thematic. &lt;a class="link" href="http://themeshaper.com/forums/" title="ThemeShaper Forums"&#10; target="_blank" rel="noopener"&#10; &gt;ThemeShaper Forums&lt;/a&gt;&lt;a class="link" href="http://themeshaper.com/" title="ThemeShaper"&#10; target="_blank" rel="noopener"&#10; &gt;ThemeShaper&lt;/a&gt; forums are very helpful. These articles were just what I needed to get started : &lt;a class="link" href="http://op111.net/53" title="op111.net"&#10; target="_blank" rel="noopener"&#10; &gt;How to make a child theme for WordPress&lt;/a&gt; and &lt;a class="link" href="http://themeshaper.com/functions-php-wordpress-child-themes/" title="ThemeShaper.com"&#10; target="_blank" rel="noopener"&#10; &gt;How I used a WordPress Child Theme To Redesign My Blog&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>Is Scrum Bad For Developers ?</title><link>https://www.tewari.info/2009/06/30/is-scrum-bad-for-developers/</link><pubDate>Wed, 01 Jul 2009 06:22:25 +0000</pubDate><guid>https://www.tewari.info/2009/06/30/is-scrum-bad-for-developers/</guid><description>&lt;p&gt;&lt;a class="link" href="http://www.socalcodecamp.com/" title="http://www.socalcodecamp.com/"&#10; target="_blank" rel="noopener"&#10; &gt;SoCal CodeCamp&lt;/a&gt; was a blast. Thanks to everyone who attended my presentation : &lt;a class="link" href="http://www.socalcodecamp.com/session.aspx?sid=bb64801e-7bbe-4b9f-9ca3-4f8975270ff0" title="http://www.socalcodecamp.com/session.aspx?sid=bb64801e-7bbe-4b9f-9ca3-4f8975270ff0"&#10; target="_blank" rel="noopener"&#10; &gt;If it walks like a Scrum&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The slide-deck can be downloaded from &lt;a class="link" href="https://www.tewari.info/downloads/If_it_walks_like_a_Scrum.7z" title="download-If_it_walks_like_a_Scrum.7z"&#10; &gt;here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="If it walks like a Scrum.png" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/If%20it%20walks%20like%20a%20Scrum.png"&gt;&lt;/p&gt;&#10;</description></item><item><title>GUI Prototyping Tools</title><link>https://www.tewari.info/2009/05/16/gui-prototyping-tools/</link><pubDate>Sun, 17 May 2009 05:34:41 +0000</pubDate><guid>https://www.tewari.info/2009/05/16/gui-prototyping-tools/</guid><description>&lt;p&gt;Special purpose UI prototyping tools, like the ones listed on &lt;a class="link" href="http://c2.com/cgi/wiki?GuiPrototypingTools" target="_blank" rel="noopener"&#10; &gt;C2 Wiki&lt;/a&gt;, offer a convenient blend of usability and flexibility. I have tried some of these tools. I was looking for something that -&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;doesn&amp;rsquo;t become unwieldy when used to prototype a large and complex GUI&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;allows me to use my own screenshots/images/icons&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;allows me to modify the prototype without making it a hair-pulling experience.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;can prototype all aspects and artifacts of &lt;a class="link" href="http://www.balsamiq.com/products/mockups/examples" target="_blank" rel="noopener"&#10; &gt;modern web and desktop interfaces&lt;/a&gt;, specially -&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;tree controls  - you will be surprised how many prototyping tools don&amp;rsquo;t have this. &lt;a class="link" href="http://www.evolus.vn/Pencil/" target="_blank" rel="noopener"&#10; &gt;Pencil&lt;/a&gt;, I am looking at you :)&lt;/li&gt;&#10;&lt;li&gt;tabbed panels  - can you position your tabs at the bottom ? on the right edge ?&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.codeproject.com/KB/miscctrl/CustomFilmstripControl.aspx" target="_blank" rel="noopener"&#10; &gt;film strips&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.devexpress.com/Products/NET/Controls/WinForms/Bars/Features_Ribbon.xml" target="_blank" rel="noopener"&#10; &gt;ribbons&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.devexpress.com/Products/NET/Controls/WinForms/NavBar/" target="_blank" rel="noopener"&#10; &gt;NavBars&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The one that met all these requirements and more (and blew me away) is &lt;a class="link" href="http://www.balsamiq.com/products/mockups" target="_blank" rel="noopener"&#10; &gt;Balsamiq Mockup&lt;/a&gt;.&#10;Disclaimer : I requested and received a complimentary license from &lt;a class="link" href="http://www.balsamiq.com/" target="_blank" rel="noopener"&#10; &gt;Balsamiq&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;[youtube]zLysy3IPfFI[/youtube]&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Balsamiq Mockup&amp;rsquo;s usability is what attracted me at first and then it was just a series of surprises, one after another.&lt;/li&gt;&#10;&lt;li&gt;You can click on the widget &amp;ldquo;legend&amp;rdquo; to toggle aspects of the widget on and off. Very slick !&lt;/li&gt;&#10;&lt;li&gt;You can link (aspects of) widgets to other mockups. This allows you to build some interactivity into your prototype. Very cool !&lt;/li&gt;&#10;&lt;li&gt;You can clone a mockup with a button click - to prototype a transition.&lt;/li&gt;&#10;&lt;li&gt;I could use my own images/screenshots and sketch them (basically,  applies a sketch transformation on the image) !!! If you think that sketchy look of the prototypes looks unfinished, you should read &lt;a class="link" href="http://headrush.typepad.com/creating_passionate_users/2006/12/dont_make_the_d.html" target="_blank" rel="noopener"&#10; &gt;this&lt;/a&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Here are some things I wish I could have in Balsamiq -&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;name (and search for) individual widgets in my mockup&lt;/li&gt;&#10;&lt;li&gt;select multiple widgets by dragging over an area&lt;/li&gt;&#10;&lt;li&gt;auto-group when dropped on containers (or other widgets)&lt;/li&gt;&#10;&lt;li&gt;stretching container stretches everything in it, I wish I could have some control over it&lt;/li&gt;&#10;&lt;li&gt;register my own mockups as library widgets&lt;/li&gt;&#10;&lt;li&gt;zoom in and out&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Just to be thorough, here are some other approaches I have used in the past -&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Using a RAD tool like VisualStudio is great way to prototype. You have to be very proficient, like a GUI developer ;) , with the tool of your choice. Otherwise, it is can be an excruciatingly slow approach. The best part of this approach is that the interactions can be prototyped seemlessly and some of the feasibility doubts can be cleared early on. The problem with this approach is that the prototype can be mistaken as the actual product and the effort /scheduling expectations of the stakeholders can become hard to manage. Read Joel Spolsky&amp;rsquo;s brilliant observations on &lt;a class="link" href="http://www.joelonsoftware.com/articles/fog0000000356.html" target="_blank" rel="noopener"&#10; &gt;The Iceberg Secret, Revealed&lt;/a&gt;. Also, when the prototype looks like a finished product, type of feedback you receive is usually not strategic, it is narrower. Read more about this on &lt;a class="link" href="http://headrush.typepad.com/creating_passionate_users/2006/12/dont_make_the_d.html" target="_blank" rel="noopener"&#10; &gt;Creating Passionate Users&lt;/a&gt; article.&lt;/li&gt;&#10;&lt;li&gt;When you have an existing UI (perhaps from a 3rd-party library&amp;rsquo;s demos) that can become the basis for your new UI, it makes sense to use screenshots of your existing UI and modify them using image editors like &lt;a class="link" href="http://www.getpaint.net/" target="_blank" rel="noopener"&#10; &gt;Paint.NET&lt;/a&gt; or Photoshop or even MS Paint. It is a quick way to produce a prototype but the expected changes to the prototype must be minimal. Otherwise, you will find yourself spending long hours with your image editor.&lt;/li&gt;&#10;&lt;li&gt;General purpose drawing programs, like &lt;a class="link" href="http://projects.gnome.org/dia/" target="_blank" rel="noopener"&#10; &gt;dia&lt;/a&gt; and &lt;a class="link" href="http://office.microsoft.com/en-us/visio/default.aspx" target="_blank" rel="noopener"&#10; &gt;Visio&lt;/a&gt;, can be used to create UI prototypes. With these type of tools, you will probably need to work with building blocks that are a bit too granular, although you may be able to procure widgets/stencils for some of these tools to make things easier. These tools have a some learning curve and less than fluid usability.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item><item><title>Create Games From Scratch</title><link>https://www.tewari.info/2009/04/11/create-games-from-scratch/</link><pubDate>Sat, 11 Apr 2009 16:31:26 +0000</pubDate><guid>https://www.tewari.info/2009/04/11/create-games-from-scratch/</guid><description>&lt;p&gt;My 18 month old son woke me up at 4 in the morning. I got him to go back to sleep, but &amp;hellip; and here I am writing.&lt;/p&gt;&#10;&lt;p&gt;A few weeks ago, I downloaded &lt;a class="link" href="http://scratch.mit.edu/" target="_blank" rel="noopener"&#10; &gt;Scratch&lt;/a&gt; from M.I.T&amp;rsquo;s website. Scratch is a programming language for kids. You drag/drop and (literally) snap together programming constructs to create games. Within a couple of minutes, I had a diver chasing a ball bouncing around on the screen.&lt;/p&gt;&#10;&lt;p&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/scratch-diver-ball.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;I showed it to my 5 year old son and he watched as I &amp;ldquo;changed the game&amp;rdquo; and had the ball chase the mouse cursor and the diver chase the ball. He sat down with me and asked me if I could make it a dog chasing the ball instead. Sure! Then we started customizing further. Make it run faster .. Yeah! Let&amp;rsquo;s turn him into &lt;a class="link" href="http://www.scholastic.com/clifford/" target="_blank" rel="noopener"&#10; &gt;Clifford - The Big Red Dog&lt;/a&gt; &amp;hellip; Can he bark ? Sure. Let&amp;rsquo;s turn it into a basket ball .. I want it red, blue, yellow, &amp;hellip; Let&amp;rsquo;s make a basket ball hoop and have Clifford play basketball &amp;hellip; Sure.&lt;/p&gt;&#10;&lt;p&gt;It was a quite productive &lt;a class="link" href="http://en.wikipedia.org/wiki/Pair_programming" title="pair programming"&#10; target="_blank" rel="noopener"&#10; &gt;pair programming&lt;/a&gt; session :) . No TDD yet - he is too young for that kind of stuff :) .&lt;/p&gt;&#10;&lt;p&gt;I was relieved that I didn&amp;rsquo;t loose his attention while I was &amp;ldquo;programming&amp;rdquo;. Now, my son does have a pretty long attention span for his age, but a lot of credit goes to the designers of Scratch. The entire &amp;ldquo;artwork&amp;rdquo; was created within the Scratch application and the &amp;ldquo;programming&amp;rdquo; was just a pure joy for my son. And we were just &amp;ldquo;scratching&amp;rdquo; the surface there. Explore the possibilities &lt;a class="link" href="http://scratch.mit.edu/" target="_blank" rel="noopener"&#10; &gt;here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;You can download the game here : &lt;a class="link" href="https://www.tewari.info/downloads/Clifford-Ball.sb" &gt;Clifford-ball.sb&lt;/a&gt;. Be careful, sometimes the dog turns upside down. There are some bugs to be fixed :) . Where is the debugger ?&lt;/p&gt;&#10;&lt;p&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/scratch-clifford-ball.png"&gt;&lt;/p&gt;&#10;</description></item><item><title>RIA with Silverlight and WCF - Los Angeles .NET Developers Group</title><link>https://www.tewari.info/2009/03/26/ria-with-silverlight-and-wcf-los-angeles-net-developers-group/</link><pubDate>Fri, 27 Mar 2009 04:43:01 +0000</pubDate><guid>https://www.tewari.info/2009/03/26/ria-with-silverlight-and-wcf-los-angeles-net-developers-group/</guid><description>&lt;p&gt;I will be attending &lt;a class="link" href="http://geekswithblogs.net/jberes/Default.aspx" title="Jason Beres&amp;#39; Blog"&#10; target="_blank" rel="noopener"&#10; &gt;Jason Beres&amp;rsquo;&lt;/a&gt; &amp;ldquo;RIA with Silverlight and WCF&amp;rdquo; lecture on Saturday the 4th. Check-out the details here : &lt;a class="link" href="http://ladotnet.org/default.asp" title="Los Angeles .NET Developers Group"&#10; target="_blank" rel="noopener"&#10; &gt;Los Angeles .NET Developers Group.&lt;/a&gt; Let me know If you are planning to be there. It will be a great opportunity to meet.&lt;/p&gt;&#10;</description></item><item><title>Job Opening - Windows GUI Developer</title><link>https://www.tewari.info/2009/03/09/job-opening-windows-gui-developer/</link><pubDate>Mon, 09 Mar 2009 21:04:30 +0000</pubDate><guid>https://www.tewari.info/2009/03/09/job-opening-windows-gui-developer/</guid><description>&lt;p&gt;We have a 3-4 month contract position open for a Windows GUI Developer in our group at &lt;a class="link" href="http://maps.google.com/maps?q=calabasas,&amp;#43;CA&amp;amp;oe=utf-8&amp;amp;rls=org.mozilla:en-US:official&amp;amp;client=firefox-a&amp;amp;um=1&amp;amp;ie=UTF-8&amp;amp;split=0&amp;amp;gl=us&amp;amp;ei=SYK1SbXHGM-jtgf9jaXqDA&amp;amp;sa=X&amp;amp;oi=geocode_result&amp;amp;resnum=1&amp;amp;ct=title" title="calabasas-map"&#10; target="_blank" rel="noopener"&#10; &gt;Calabasas, California&lt;/a&gt;:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;2+ years experience developing C++/C# Windows thick-client applications&lt;/li&gt;&#10;&lt;li&gt;Expert in GUI development on Windows&lt;/li&gt;&#10;&lt;li&gt;Expert in Object Oriented Analysis and Design (OOA/OOD)&lt;/li&gt;&#10;&lt;li&gt;Deep understanding of client-server software development&lt;/li&gt;&#10;&lt;li&gt;Experience in multithreading, and thread synchronization&lt;/li&gt;&#10;&lt;li&gt;Excellent communication skills (written and verbal)&lt;/li&gt;&#10;&lt;li&gt;Highly organized and detail oriented&lt;/li&gt;&#10;&lt;li&gt;BSCS/BSEE or equivalent&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;If you are interested, &lt;a class="link" href="https://www.tewari.info/contact-me/" title="Contact Ash Tewari"&#10; &gt;contact me&lt;/a&gt;. The position is available now.&lt;/p&gt;&#10;</description></item><item><title>Scrum Tools</title><link>https://www.tewari.info/2009/03/08/scrum-tools/</link><pubDate>Sun, 08 Mar 2009 19:41:10 +0000</pubDate><guid>https://www.tewari.info/2009/03/08/scrum-tools/</guid><description>&lt;p&gt;List of Scrum Tools:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.versionone.com/index.asp" title="VersionOne"&#10; target="_blank" rel="noopener"&#10; &gt;http://www.versionone.com/index.asp&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.targetprocess.com/" title="TargetProcess"&#10; target="_blank" rel="noopener"&#10; &gt;http://www.targetprocess.com/&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://studios.thoughtworks.com/mingle-agile-project-management" title="Mingle"&#10; target="_blank" rel="noopener"&#10; &gt;http://studios.thoughtworks.com/mingle-agile-project-management&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.bananascrum.com/" title="BananaScrum"&#10; target="_blank" rel="noopener"&#10; &gt;http://www.bananascrum.com/&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.danube.com/scrumworks" title="ScrumWorks"&#10; target="_blank" rel="noopener"&#10; &gt;http://www.danube.com/scrumworks&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.rallydev.com/" title="Rally"&#10; target="_blank" rel="noopener"&#10; &gt;http://www.rallydev.com/&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.toolsforagile.com/" title="Silver Catalyst"&#10; target="_blank" rel="noopener"&#10; &gt;http://www.toolsforagile.com/&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Other Lists:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://weblogs.asp.net/bsimser/archive/2006/10/21/Scrum-Tools-Roundup.aspx" target="_blank" rel="noopener"&#10; &gt;Scrum Tools-Roundup&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://blogs.msdn.com/dave_froslie/archive/2005/12/15/504251.aspx" target="_blank" rel="noopener"&#10; &gt;dave_froslie&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item><item><title>ReSharper vs CodeRush + Refactor Pro</title><link>https://www.tewari.info/2009/02/21/resharper-vs-coderush-refactor-pro/</link><pubDate>Sat, 21 Feb 2009 17:43:03 +0000</pubDate><guid>https://www.tewari.info/2009/02/21/resharper-vs-coderush-refactor-pro/</guid><description>&lt;p&gt;I have been playing with JetBrains &lt;a class="link" href="http://www.jetbrains.com/resharper/" target="_blank" rel="noopener"&#10; &gt;ReSharper&lt;/a&gt;(version 4.1) and DevExpress &lt;a class="link" href="http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/" target="_blank" rel="noopener"&#10; &gt;CodeRush + Refactor! Pro&lt;/a&gt; (version 3.2.2) lately. I wanted to decide on which one to go with. Here are some notes -&lt;/p&gt;&#10;&lt;p&gt;R# = ReSharper&#10;CodeRush = CodeRush + Refactor! Pro&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;R# seems to be better for refactoring, because it does not assume that I follow a rigid work flow when writing code. For example, I don&amp;rsquo;t always decide on the class hierarchies upfront. I do discover them as I write code. So, when I discover that I need to extract a base class from the class I am working on, I can do so with R#. I couldn&amp;rsquo;t find a way to do extract a base/super class with CodeRush.&lt;/li&gt;&#10;&lt;li&gt;In R#, I can create an overloaded constructor using &amp;ldquo;Change Signature&amp;rdquo; refactoring (Ctrl+R, S). I couldn&amp;rsquo;t find a way to do this in CodeRush. CodeRush does allow me to create overloaded methods.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;However, comparisons that only focus on how many refactorings each tool can do are not very important to me. After all, it should be easy for the individual missing refactorings to be implemented in the subsequent releases of these tools. I want to know which one is a better investment in the long run. The investment is not just a couple of hundred dollars, it is going to be an investment of time too.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;R# &amp;ldquo;finds&amp;rdquo; Types as you try to use them and adds references and &amp;ldquo;using&amp;rdquo; directives from other projects in your solution. You will not believe how useful this is! You don&amp;rsquo;t have to interrupt your train of thought to go add references and &amp;ldquo;using&amp;rdquo; directives. CodeRush doesn&amp;rsquo;t do that.&lt;/li&gt;&#10;&lt;li&gt;I found R# &amp;ldquo;&lt;a class="link" href="http://www.jetbrains.com/resharper/features/code_generation.html#Create_from_Usage" target="_blank" rel="noopener"&#10; &gt;Create From Usage&lt;/a&gt;&amp;rdquo; feature incredibly useful with &lt;a class="link" href="http://en.wikipedia.org/wiki/Test-driven_development" title="TDD"&#10; target="_blank" rel="noopener"&#10; &gt;TDD&lt;/a&gt;. This feature will be available in &lt;a class="link" href="http://blogs.msdn.com/somasegar/archive/2008/12/19/code-focused-development-in-vs-2010.aspx" title="Code Focused Development in VS 2010"&#10; target="_blank" rel="noopener"&#10; &gt;Visual Studio 2010&lt;/a&gt;. They are calling it “Consume-First Development”.&lt;/li&gt;&#10;&lt;li&gt;R# has keyboard shortcuts for individual refactorings. All refactorings are accessible from ALT+ENTER or ALT+R. Again, R# helps you keep focused on the code you are writing.  In CodeRush, individual refactorings don&amp;rsquo;t have keyboard shortcuts.&lt;/li&gt;&#10;&lt;li&gt;R# allows me to specify exactly what to include when doing ExtractXXX refactorings. CodeRush doesn&amp;rsquo;t.&lt;/li&gt;&#10;&lt;li&gt;R# seems to know what I want to do. For example, when I discover that an existing class would be a good starting point to write the class I am thinking about and copy-paste the class and attempt to rename it, CodeRush renames both classes. R# renames the one you intend to rename.&lt;/li&gt;&#10;&lt;li&gt;R# introduces much less friction when running unit tests. It is possible to add unit-testing add-ins to Visual Studio and access similar functionality, but the way unit-testing is integrated into R#, it is much more conducive to &lt;a class="link" href="http://en.wikipedia.org/wiki/Test-driven_development" title="TDD"&#10; target="_blank" rel="noopener"&#10; &gt;TDD&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;Collapse a class region. Now try to do a refactoring on this class, like “Rename file to match type” etc. In CodeRush, you will not be able to do it because the three-dot glyph will not be displayed when the class is collapsed.&lt;/li&gt;&#10;&lt;li&gt;CodeRush keeps getting in my way by automatically writing over as I type. It expands its “smart templates” when you press space. Guess what! That is how I separate words in my sentences - by pressing space. It gets quite annoying. I wish I could turn it off.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;As you have probably guessed by now, I think ReSharper is a better fit for me.&lt;/p&gt;&#10;&lt;p&gt;Here is a list of some other comparisons, covering aspects and features of these products I haven’t mentioned here that might be important to you. Some of these concluded in favor of CodeRush. Keep in mind that some of the following articles are a couple of years old.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://devlicio.us/blogs/derik_whittaker/archive/2008/05/05/resharper-4-0-vs-coderush-refactor-smack-down-results.aspx" target="_blank" rel="noopener"&#10; &gt;Derik Whittaker&lt;/a&gt; is keeping CodeRush but uninstalled Refactor Pro.&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://davidhayden.com/blog/dave/archive/2008/04/23/ReSharperCodeRushRefactorProInterestingDiscussion.aspx" target="_blank" rel="noopener"&#10; &gt;David Hayden&lt;/a&gt; is keeping an open mind.&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://www.hanselman.com/blog/ReSharperVsCodeRush.aspx" target="_blank" rel="noopener"&#10; &gt;Scott Hanselman&lt;/a&gt; likes CodeRush better.&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://ryangaraygay.com/blog/post/2008/04/Resharper-vs-CodeRush.aspx" target="_blank" rel="noopener"&#10; &gt;Ryan Garagay&lt;/a&gt; went with R#.&lt;/li&gt;&#10;&lt;li&gt;&lt;a class="link" href="http://stackoverflow.com/questions/24216/resharper-vs-coderush" target="_blank" rel="noopener"&#10; &gt;StackOverflow.com&lt;/a&gt; has some useful comments and more links.&lt;/li&gt;&#10;&lt;li&gt;There is some discussion on &lt;a class="link" href="http://discuss.joelonsoftware.com/default.asp?joel.3.515309.7" target="_blank" rel="noopener"&#10; &gt;JoelOnSoftware.com&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;Ian decided to stick with &lt;a class="link" href="http://ianolsen.com/2006/06/21/resharper-vs-coderush-part-1/" target="_blank" rel="noopener"&#10; &gt;ReSharper&lt;/a&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item><item><title>Using NHibernate With SQLite in DbUpdater</title><link>https://www.tewari.info/2008/09/09/using-nhibernate-with-sqlite-in-dbupdater/</link><pubDate>Wed, 10 Sep 2008 04:46:39 +0000</pubDate><guid>https://www.tewari.info/2008/09/09/using-nhibernate-with-sqlite-in-dbupdater/</guid><description>&lt;p&gt;&lt;a class="link" href="https://www.tewari.info/dbupdater/" &gt;DbUpdater&lt;/a&gt; (&lt;a class="link" href="http://sourceforge.net/projects/dbupdater/" target="_blank" rel="noopener"&#10; &gt;version 1.3&lt;/a&gt; onwards) can be used with &lt;a class="link" href="http://www.sqlite.org/" target="_blank" rel="noopener"&#10; &gt;sqlite3&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Review the files included in &lt;a class="link" href="https://www.tewari.info/downloads/DbUpdater-sqlite3.zip" &gt;DbUpdater-sqlite3.zip&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;1. DbUpdater.exe.config must be modified. Note changes to the following keys - exe-file, exe-args, dialect, driver_class, connetion_string.&#10;2. SchemaVersion.hbm.xml must be modified. The &amp;lsquo;class&amp;rsquo; attributes value for the &amp;lsquo;generator&amp;rsquo; of &amp;lsquo;id&amp;rsquo; must be changed to &amp;lsquo;identity&amp;rsquo;. No other changes are needed here.&#10;3. \SqlScripts\schema-version-table.sql is modified. Note that the datatypes of all columns are changed to TEXT, except for SchemaChangeId, which is changed to integer primary key. integer primary key is used for auto-incremented columns in sqlite.&#10;4. \SqlScripts\baseline.sql is modified. Note the use of current_timestamp function. The actual sql syntax in this file must conform to sqlite dialect.&#10;5. All other .sql scripts in \SqlScripts directory are also modified to conform to sqlite dialect.&lt;/p&gt;&#10;&lt;p&gt;The following files are expected to be in DbUpdater.exe directory (as configured in the DbUpdater.exe.config file) -&lt;/p&gt;&#10;&lt;p&gt;1. sqlite3.exe : &lt;a class="link" href="http://www.sqlite.org/download.html" target="_blank" rel="noopener"&#10; &gt;download&lt;/a&gt;.&#10;2. System.Data.SQLite.dll : &lt;a class="link" href="http://sqlite.phxsoftware.com/" target="_blank" rel="noopener"&#10; &gt;download&lt;/a&gt;.&#10;3. createdb.bat file : This file is included. This batch script will call sqlite3.exe to execute sql queries.&lt;/p&gt;&#10;&lt;p&gt;Another very useful tool for working with sqlite database files is &lt;a class="link" href="http://sqlitebrowser.sourceforge.net/" target="_blank" rel="noopener"&#10; &gt;SQLite Database Browzer&lt;/a&gt;. &lt;a class="link" href="https://www.tewari.info/wp-content/sqlite-support.html" title="sqlite-support.html"&#10; &gt;sqlite-support.html&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>DbUpdater on SourceForge</title><link>https://www.tewari.info/2008/07/27/dbupdater-on-sourceforge/</link><pubDate>Sun, 27 Jul 2008 07:36:35 +0000</pubDate><guid>https://www.tewari.info/2008/07/27/dbupdater-on-sourceforge/</guid><description>&lt;p&gt;By popular demand, &lt;a class="link" href="https://www.tewari.info/dbupdater/" title="DbUpdater : Database Schema Version Control"&#10; &gt;DbUpdater&lt;/a&gt; is now up on the &lt;a class="link" href="https://sourceforge.net/projects/dbupdater" title="DbUpdater-on-SourceForge"&#10; target="_blank" rel="noopener"&#10; &gt;sourceforge&lt;/a&gt;. Latest download (v1.2) is now available from &lt;a class="link" href="https://sourceforge.net/project/showfiles.php?group_id=232631" title="DbUpdater-Download"&#10; target="_blank" rel="noopener"&#10; &gt;there&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>Internship Position Available</title><link>https://www.tewari.info/2008/06/18/internship-position-available/</link><pubDate>Thu, 19 Jun 2008 05:39:17 +0000</pubDate><guid>https://www.tewari.info/2008/06/18/internship-position-available/</guid><description>&lt;p&gt;We have a position open for a 6 month internship in our group in Calabasas, CA. We do cutting edge Network Performance Analysis work. A candidate with C#/C++/C background on Windows/Linux is preferred. If you are interested, &lt;a class="link" href="https://www.tewari.info/contact-me/" title="Contact-AshTewari"&#10; &gt;contact me&lt;/a&gt;. The position is available now.&lt;/p&gt;&#10;</description></item><item><title>Dial Gauge is a ProgressBar</title><link>https://www.tewari.info/2008/06/10/dial-gauge-is-a-progressbar/</link><pubDate>Wed, 11 Jun 2008 06:49:43 +0000</pubDate><guid>https://www.tewari.info/2008/06/10/dial-gauge-is-a-progressbar/</guid><description>&lt;p&gt;I am not just being philosophical here. In &lt;a class="link" href="http://msdn.microsoft.com/en-us/netframework/aa663326.aspx" title="MSDN-WPF"&#10; target="_blank" rel="noopener"&#10; &gt;WPF&lt;/a&gt;, &lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163497.aspx" title="Using Templates to Customize WPF Controls"&#10; target="_blank" rel="noopener"&#10; &gt;ControlTemplates&lt;/a&gt; allow you to transform a control&amp;rsquo;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 &amp;ldquo;Dial&amp;rdquo; template. The Dial template was created using &lt;a class="link" href="http://www.microsoft.com/expression/products/Overview.aspx?key=blend" title="Microsoft-Expression-Blend"&#10; target="_blank" rel="noopener"&#10; &gt;Microsoft Expression Blend&lt;/a&gt; .&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="dial-is-a-progressbar.PNG" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/dial-is-a-progressbar.PNG"&gt;&lt;/p&gt;&#10;&lt;p&gt;Include the ControlTemplate as a Window.Resource and then assign it to ProgressBar element&amp;rsquo;s Template attribute :&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Of course that is not all. The ControlTemplate must define some named elements of FrameworkElement type. Charles Petzold has explained it in detail : &lt;a class="link" href="http://msdn.microsoft.com/en-us/magazine/cc163497.aspx" title="Charles-Petzold-Using Templates to Customize WPF Controls"&#10; target="_blank" rel="noopener"&#10; &gt;MSDN Magazine Article&lt;/a&gt;. So, I will not repeat it here.&lt;/p&gt;&#10;&lt;p&gt;The sample code can be downloaded here : &lt;a class="link" href="https://www.tewari.info/downloads/DialTest.zip" title="DialTest.zip"&#10; &gt;DialTest.zip&lt;/a&gt;&#10;License : &lt;a class="link" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" target="_blank" rel="noopener"&#10; &gt;Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>PostSharp with SharpDevelop</title><link>https://www.tewari.info/2008/04/28/postsharp-with-sharpdevelop/</link><pubDate>Tue, 29 Apr 2008 05:04:43 +0000</pubDate><guid>https://www.tewari.info/2008/04/28/postsharp-with-sharpdevelop/</guid><description>&lt;p&gt;&lt;a class="link" href="http://sharpdevelop.net/OpenSource/SD/Default.aspx" title="SharpDevelop HomePage"&#10; target="_blank" rel="noopener"&#10; &gt;SharpDevelop3.0&lt;/a&gt; uses &lt;a class="link" href="http://en.wikipedia.org/wiki/MSBuild" title="MSBuild on wikipedia"&#10; target="_blank" rel="noopener"&#10; &gt;MSBuild&lt;/a&gt;. 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 &amp;ldquo;Binary - No Installer&amp;rdquo;&lt;a class="link" href="http://www.postsharp.org/download/" title="postsharp download"&#10; target="_blank" rel="noopener"&#10; &gt;download&lt;/a&gt;, you will need to import the PostSharp targets into your .csproj file -&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; True&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\code\PostSharp-1.0.8.316-Binary\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For more details, read the install instructions included in the PostSharp &lt;a class="link" href="http://www.postsharp.org/download/" title="postsharp download"&#10; target="_blank" rel="noopener"&#10; &gt;download&lt;/a&gt; and &lt;a class="link" href="http://www.postsharp.org/blog/2008/01/under-hood-of-msbuild-integration.html" title="under-hood-of-msbuild-integration"&#10; target="_blank" rel="noopener"&#10; &gt;under-the-hood-of-msbuild-integration&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;To use local PostSharp binaries (relative to your project) , modify your .csproj file as follows -&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; True&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; $(MSBuildProjectDirectory)\PostSharp\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;$(MSBuildProjectDirectory) is the directory containing your .csproj file.&#10;\PostSharp\ is the directory containing local PostSharp binaries.&lt;/p&gt;&#10;&lt;p&gt;2. You will need to exclude the Aspect class itself from being woven.&lt;/p&gt;&#10;&lt;p&gt;If you are following the &lt;a class="link" href="http://www.postsharp.org/about/getting-started/" title="getting-started-sample"&#10; target="_blank" rel="noopener"&#10; &gt;getting-started sample&lt;/a&gt;, see the following example:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Serializable]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Trace( null, AttributeExclude = true )]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;public sealed class TraceAttribute : OnMethodBoundaryAspect&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;3. Compile your project.&lt;/p&gt;&#10;</description></item><item><title>Using Custom Converter in XAML</title><link>https://www.tewari.info/2008/04/15/using-custom-converter-in-xaml/</link><pubDate>Wed, 16 Apr 2008 05:22:12 +0000</pubDate><guid>https://www.tewari.info/2008/04/15/using-custom-converter-in-xaml/</guid><description>&lt;p&gt;In my previous post : &lt;a class="link" href="https://www.tewari.info/2008/03/07/wpf-linq-to-sql-sample/" title="wpf-linq-to-sql-sample"&#10; &gt;WPF-LINQ To SQL Sample&lt;/a&gt;, 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 -&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;Image Grid.Row=&amp;#34;2&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Source=&amp;#34;{Binding Path=ThumbNailPhoto ,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Converter={StaticResource imageConverter}}&amp;#34;&amp;gt;&amp;lt;/Image&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The custom converter is declared in the same .xaml file as a resource -&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;Window.Resources&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;local:ImageDataConverter x:Key=&amp;#34;imageConverter&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;/Window.Resources&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;ImageDataConverter is implemented in .xaml.cs file -&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;public class ImageDataConverter : IValueConverter&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; public object Convert(object value, Type targetType, object parameter,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; System.Globalization.CultureInfo culture)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; byte[] image = ((System.Data.Linq.Binary)value).ToArray();&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; return image;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; public object ConvertBack(object value, Type targetType, object parameter,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; System.Globalization.CultureInfo culture)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; throw new NotSupportedException();&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The updated sample code can be downloaded here : &lt;a class="link" href="https://www.tewari.info/downloads/Linq2SqlSample2.zip" title="Linq2SqlSample2.zip"&#10; &gt;WPF-LINQ to SQL Sample&lt;/a&gt;&#10;License : &lt;a class="link" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" target="_blank" rel="noopener"&#10; &gt;Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>WPF - LINQ to SQL Sample</title><link>https://www.tewari.info/2008/03/07/wpf-linq-to-sql-sample/</link><pubDate>Fri, 07 Mar 2008 07:15:35 +0000</pubDate><guid>https://www.tewari.info/2008/03/07/wpf-linq-to-sql-sample/</guid><description>&lt;p&gt;This exercise in binding a WPF ListView control with LINQ to SQL was a lot of fun ! The following image shows data from &lt;a class="link" href="http://www.codeplex.com/MSFTDBProdSamples" title="MSSQL Sample Databases"&#10; target="_blank" rel="noopener"&#10; &gt;AdventureWorks&lt;/a&gt; sample database displayed in the ListView control. The end result is very admirable, even in this very basic demo. Feeling a complete sense of freedom is unavoidable when working with WPF.&lt;/p&gt;&#10;&lt;p&gt;&lt;img alt="Linq2SqlSample1.Png" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/Linq2SqlSample1.Png"&gt;&lt;/p&gt;&#10;&lt;p&gt;This sample demonstrates :&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;LINQ to SQL mapping.&lt;/li&gt;&#10;&lt;li&gt;WPF ListView Control DataBinding.&lt;/li&gt;&#10;&lt;li&gt;Displaying images stored in database as varbinary in WPF control.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The sample code can be downloaded here : &lt;a class="link" href="https://www.tewari.info/downloads/Linq2SqlSample.zip" title="Linq2SqlSample.zip"&#10; &gt;WPF-LINQ to SQL Sample&lt;/a&gt;&#10;License : &lt;a class="link" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" target="_blank" rel="noopener"&#10; &gt;Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.&lt;/a&gt; &lt;a class="link" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" target="_blank" rel="noopener"&#10; &gt;&lt;img alt="Creative Commons License" class="gallery-image" data-flex-basis="681px" data-flex-grow="283" height="31" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://i.creativecommons.org/l/by-nc-sa/3.0/us/88x31.png" width="88"&gt;&lt;/a&gt;&lt;/p&gt;&#10;</description></item><item><title>Customize log4net Output Path</title><link>https://www.tewari.info/2008/03/06/customize-log4net-output-path/</link><pubDate>Fri, 07 Mar 2008 00:56:55 +0000</pubDate><guid>https://www.tewari.info/2008/03/06/customize-log4net-output-path/</guid><description>&lt;p&gt;The default log4net output path is relative to the startup directory of your executable. To customize the output path, you can override the base Appender&amp;rsquo;s File property in your own Appender class. The following example describes how to route the log files relative to the temp folder :&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; public class MyOwnAppender : log4net.Appender.RollingFileAppender&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; public override string File&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; get&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; return base.File;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; set&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; if (Path.IsPathRooted(value))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; base.File = value;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; else&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; {&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; base.File = Path.Combine(Path.GetTempPath(), value);&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Your log4net config file must be modified so that log4net can locate and use your custom Appender. If MyOwnAppender is in MyNamespace and you have implemented it in MyLoggerLib.dll :&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Career Advice</title><link>https://www.tewari.info/2008/02/29/career-advice/</link><pubDate>Sat, 01 Mar 2008 02:04:11 +0000</pubDate><guid>https://www.tewari.info/2008/02/29/career-advice/</guid><description>&lt;p&gt;The value of any advice is tied to the degree of its relevance to your particular situation and circumstances. Very specific advice, like legal and medical advice, is very expensive. It is very relevant to the individual&amp;rsquo;s situation and therefore quite valuable. The degree of relevance of inexpensive/free advice to your specific circumstances is usually very low. Inexpensive/free advice, as in sayings and quotes, but also in everyday personal and business communication, is very generic. The same message is usually perceived differently by different people. Especially when the entire message is very succinct and pithy. Various aspects of the message are accentuated differently as it is filtered through individual perception.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Developing a sense of how generic advice applies to your individual situation is invaluable.&lt;/li&gt;&#10;&lt;li&gt;Experience, observation and reading feeds the awareness.&lt;/li&gt;&#10;&lt;li&gt;Trying and learning from mistakes is essential.&lt;/li&gt;&#10;&lt;li&gt;Applying the lessons completes the circle.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;One of the best career advice I ever got was from reading Spencer Johnson&amp;rsquo;s &lt;a class="link" href="http://www.amazon.com/Who-Moved-Cheese-Spencer-Johnson/dp/0091816971" title="Who Moved My Cheese ?"&#10; target="_blank" rel="noopener"&#10; &gt;Who Moved My Cheese ?&lt;/a&gt; The message in this book is timeless. I had been through many significant changes in my life and I think I have handled those changes quite well. After reading this book in 2001, I became consciously aware of the existence of change and my own patterns of behavior and responses to events of change. This awareness has helped me anticipate change, prepare better, make better decisions and handle change more productively.&lt;/p&gt;&#10;</description></item><item><title>Database Schema Version Control Tool</title><link>https://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/</link><pubDate>Tue, 19 Feb 2008 03:05:52 +0000</pubDate><guid>https://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/</guid><description>&lt;p&gt;It is essential to treat database schema as source code and apply all the norms and best practices applicable to it. From what I hear and read, database schema version control is non-existent in too many projects.&lt;/p&gt;&#10;&lt;p&gt;Various techniques to accomplish version control of database schemas have been discussed and published. Martin Fowler and Pramod Sadagale has written a comprehensive article on &lt;a class="link" href="http://martinfowler.com/articles/evodb.html" target="_blank" rel="noopener"&#10; &gt;Evolutionary Database Design&lt;/a&gt;. It is a must-read for everyone involved with database development.&lt;/p&gt;&#10;&lt;p&gt;K. Scott Allen writes in detail about an excellent system here - &lt;a class="link" href="http://odetocode.com/Blogs/scott/archive/2008/02/02/11721.aspx" title="Versioning Databases - Change Scripts"&#10; target="_blank" rel="noopener"&#10; &gt;Versioning Databases - Change Scripts&lt;/a&gt;. This approach is sufficiently light-weight (for my taste) and provides complete control over the whole process.&lt;/p&gt;&#10;&lt;p&gt;I am providing a free tool here that you can use to implement this system. It will even create the SchemaVersionsLog table for your database, if it doesn&amp;rsquo;t exist. If you are using this tool with MSSQL Server, you can get started with very little effort. If you are using a different DBMS, you can still use this tool. It uses NHibernate to access the SchemaVersionsLog table. So, any DBMS supported by NHibernate is acceptable, as long as it comes with a command line tool to execute the sql scripts.&lt;/p&gt;&#10;&lt;p&gt;Download &lt;a class="link" href="https://www.tewari.info/dbupdater/" title="DbUpdater : Database Schema Version Control"&#10; &gt;DbUpdater here&lt;/a&gt;.&lt;/p&gt;&#10;</description></item><item><title>Printing Blog Posts</title><link>https://www.tewari.info/2008/01/24/printing-blog-posts/</link><pubDate>Fri, 25 Jan 2008 03:44:14 +0000</pubDate><guid>https://www.tewari.info/2008/01/24/printing-blog-posts/</guid><description>&lt;p&gt;I like printing blog posts and reading them later, but too many blogs don&amp;rsquo;t provide functionality to print well formatted posts. I end up printing sidebars, advertisements and other clutter along with the post, thanks to lousy print formatting in browsers. What a waste !&lt;/p&gt;&#10;&lt;p&gt;It is actually quite easy to add a &amp;ldquo;Print This Post&amp;rdquo; button to a &lt;a class="link" href="http://wordpress.org" title="WordPress Site"&#10; target="_blank" rel="noopener"&#10; &gt;WordPress&lt;/a&gt; blog. One great option (the one I use on this blog) is &lt;a class="link" href="http://lesterchan.net/wordpress/readme/wp-print.html" title="WP-Print download"&#10; target="_blank" rel="noopener"&#10; &gt;WP-Print&lt;/a&gt;. Make sure you read Installation and Usage instructions. Brilliant job !&lt;/p&gt;&#10;&lt;p&gt;Another option is &lt;a class="link" href="http://developer.tabblo.com/index.php/hp-blog-printing/" title="hp-blog-printing"&#10; target="_blank" rel="noopener"&#10; &gt;HP Blog Printing&lt;/a&gt;. This works with some other blogging platforms also. I like the simplicity of WP-Print more than the feature set of HP plugin. HP also requires you to sign up.&lt;/p&gt;&#10;&lt;p&gt;How do you format posts for printing, when a blog doesn&amp;rsquo;t have such feature ?&lt;/p&gt;&#10;</description></item><item><title>OpenSimSim 1.0-RC is out</title><link>https://www.tewari.info/2007/12/24/opensimsim-10-rc-is-out/</link><pubDate>Mon, 24 Dec 2007 17:04:31 +0000</pubDate><guid>https://www.tewari.info/2007/12/24/opensimsim-10-rc-is-out/</guid><description>&lt;p&gt;&lt;a class="link" href="http://opensimsim.sourceforge.net" title="OpenSimSim Website"&#10; target="_blank" rel="noopener"&#10; &gt;OpenSimSim&lt;/a&gt; : Your Password Solution. Download 1.0 Release Candidate here : &lt;a class="link" href="https://sourceforge.net/project/showfiles.php?group_id=194886" title="OpenSimSim 1.0-RC"&#10; target="_blank" rel="noopener"&#10; &gt;OpenSimSim 1.0-RC&lt;/a&gt;&lt;img alt="opensimsim-screenshot" class="gallery-image" data-flex-basis="320px" data-flex-grow="133" height="225" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://opensimsim.sourceforge.net/opensimsim-screenshot-1.png" width="300"&gt;&lt;/p&gt;&#10;</description></item><item><title>Leveraging XPATH Axes</title><link>https://www.tewari.info/2007/12/20/leveraging-xpath-axes/</link><pubDate>Fri, 21 Dec 2007 01:14:29 +0000</pubDate><guid>https://www.tewari.info/2007/12/20/leveraging-xpath-axes/</guid><description>&lt;p&gt;XPATH axes come in very handy when nodes need to be selected based on (attribute&amp;rsquo;s or child element&amp;rsquo;s) values that must match those of other nodes elsewhere in the xml tree. Consider the following log4net configuration file :&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34;?&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;configuration&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;configSections&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;section name=&amp;#34;nhibernate&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; type=&amp;#34;System.Configuration.NameValueSectionHandler, System,&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Version=2.0.0.0,Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;section name=&amp;#34;log4net&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; type=&amp;#34;log4net.Config.Log4NetConfigurationSectionHandler,log4net&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/configSections&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;nhibernate&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;add key=&amp;#34;hibernate.connection.provider&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; value=&amp;#34;NHibernate.Connection.DriverConnectionProvider&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;add key=&amp;#34;hibernate.connection.driver_class&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; value=&amp;#34;NHibernate.Driver.SqlClientDriver&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;add key=&amp;#34;hibernate.connection.connection_string&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; value=&amp;#34;Server=servername; Database=dbname;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; User=username; Password=secret;&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;add key=&amp;#34;hibernate.connection.isolation&amp;#34; value=&amp;#34;ReadCommitted&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;add key=&amp;#34;hibernate.dialect&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; value=&amp;#34;NHibernate.Dialect.MsSql2000Dialect&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/nhibernate&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;log4net&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appender name=&amp;#34;NHibernateFileLog&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; type=&amp;#34;log4net.Appender.RollingFileAppender&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;file value=&amp;#34;Logs/nhibernate.txt&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appendToFile value=&amp;#34;true&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;rollingStyle value=&amp;#34;Size&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;maxSizeRollBackups value=&amp;#34;10&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;maximumFileSize value=&amp;#34;100KB&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;staticLogFileName value=&amp;#34;true&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;layout type=&amp;#34;log4net.Layout.PatternLayout&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;conversionPattern&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; value=&amp;#34;%d{HH:mm:ss.fff} [%t] %-5p %c - %m%n&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/layout&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/appender&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appender name=&amp;#34;GeneralLog&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; type=&amp;#34;log4net.Appender.RollingFileAppender&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;file value=&amp;#34;Logs/general.txt&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appendToFile value=&amp;#34;true&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;maximumFileSize value=&amp;#34;100KB&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;rollingStyle value=&amp;#34;Size&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;maxSizeRollBackups value=&amp;#34;5&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;layout type=&amp;#34;log4net.Layout.PatternLayout&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;conversionPattern&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; value=&amp;#34;%d{HH:mm:ss.fff} [%t] %-5p %c - %m%n&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/layout&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/appender&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appender name=&amp;#34;DataLog&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; type=&amp;#34;log4net.Appender.RollingFileAppender&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;file value=&amp;#34;Logs/data.txt&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appendToFile value=&amp;#34;true&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;maximumFileSize value=&amp;#34;100KB&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;rollingStyle value=&amp;#34;Size&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;maxSizeRollBackups value=&amp;#34;5&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;layout type=&amp;#34;log4net.Layout.PatternLayout&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;conversionPattern&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; value=&amp;#34;%d{HH:mm:ss.fff} [%t] %-5p %c - %m%n&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/layout&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/appender&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;!-- levels: DEBUG, INFO, WARN, ERROR, FATAL --&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;root&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;level value=&amp;#34;DEBUG&amp;#34;/&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appender-ref ref=&amp;#34;GeneralLog&amp;#34; /&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/root&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;logger name=&amp;#34;NHibernate&amp;#34; additivity=&amp;#34;false&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;level value=&amp;#34;DEBUG&amp;#34;/&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appender-ref ref=&amp;#34;NHibernateFileLog&amp;#34;/&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/logger&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;logger name=&amp;#34;Pushable.Data&amp;#34; additivity=&amp;#34;false&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;level value=&amp;#34;DEBUG&amp;#34;/&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;appender-ref ref=&amp;#34;DataLog&amp;#34;/&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/logger&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/log4net&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;/configuration&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;&#10;&lt;p&gt;The &lt;appender&gt;s are referenced by &lt;logger&gt;s using &amp;lsquo;ref&amp;rsquo; attribute of their &amp;lsquo;appender-ref&amp;rsquo; child elements, using the same value as the &amp;rsquo;name&amp;rsquo; attribute of the &lt;appender&gt;. This type of linking is quite common in xml documents. Now, The first question is : How to list files that are referenced by &lt;logger&gt;s ?&#10;In order to solve this problem you will need to reach the &lt;appender&gt;s that are referenced by each &lt;logger&gt; and then extract the &amp;lsquo;value&amp;rsquo; of their &lt;file&gt;s.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;Solution:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34;?&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;xsl:stylesheet xmlns:xsl=&amp;#34;http://www.w3.org/1999/XSL/Transform&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; version=&amp;#34;1.0&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;xsl:output method=&amp;#34;text&amp;#34;/&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;xsl:strip-space elements=&amp;#34;*&amp;#34;/&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;xsl:template match=&amp;#34;log4net&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;xsl:apply-templates&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; select=&amp;#34;appender[@name=parent::log4net/logger/appender-ref/@ref]&amp;#34;/&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/xsl:template&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;xsl:template match=&amp;#34;appender&amp;#34;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;xsl:value-of&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; select=&amp;#34;file/@value&amp;#34;/&amp;gt; &amp;lt;xsl:text&amp;gt;&amp;amp;#10;&amp;lt;/xsl:text&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &amp;lt;/xsl:template&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;/xsl:stylesheet&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;&#10;&lt;p&gt;The second question is : How to write an xslt script to transform this xml document into an html document with a table that looks like this -&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Logger&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;File&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;NHibernate&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Logs/nhibernate.txt&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Pushable.Data&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Logs/data.txt&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;Solution:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-gdscript3" data-lang="gdscript3"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#960050;background-color:#1e0010"&gt;?&lt;/span&gt;xml version&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;1.0&amp;#34;&lt;/span&gt;&lt;span style="color:#960050;background-color:#1e0010"&gt;?&lt;/span&gt;&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;xsl:stylesheet xmlns:xsl&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;http://www.w3.org/1999/XSL/Transform&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; version&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;1.0&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;xsl:output method&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;html&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;/&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;xsl:template match&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;log4net&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;HTML&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;HEAD&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;TITLE&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;www&lt;span style="color:#f92672"&gt;.&lt;/span&gt;tewari&lt;span style="color:#f92672"&gt;.&lt;/span&gt;info : using xpath axes&lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;TITLE&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;HEAD&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;BODY&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;TABLE border&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;1&amp;#34;&lt;/span&gt; width&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;25%&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;TR&lt;span style="color:#f92672"&gt;&amp;gt;&amp;lt;&lt;/span&gt;TH&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;Logger&lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;TH&lt;span style="color:#f92672"&gt;&amp;gt;&amp;lt;&lt;/span&gt;TH&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:#a6e22e"&gt;File&lt;/span&gt;&lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;TH&lt;span style="color:#f92672"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;TR&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;xsl:apply&lt;span style="color:#f92672"&gt;-&lt;/span&gt;templates select&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;logger&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;/&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;TABLE&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;BODY&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;HTML&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;xsl:template&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;xsl:template match&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;logger&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;xsl:variable name&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;aName&amp;#34;&lt;/span&gt; select&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;appender-ref/@ref&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;/&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;TR&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;TD&lt;span style="color:#f92672"&gt;&amp;gt;&amp;lt;&lt;/span&gt;xsl:value&lt;span style="color:#f92672"&gt;-&lt;/span&gt;of select&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;@name&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;/&amp;gt;&amp;lt;/&lt;/span&gt;TD&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt;TD&lt;span style="color:#f92672"&gt;&amp;gt;&amp;lt;&lt;/span&gt;xsl:value&lt;span style="color:#f92672"&gt;-&lt;/span&gt;of&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; select&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;parent::log4net/appender[@name=$aName]/file/@value&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;/&amp;gt;&amp;lt;/&lt;/span&gt;TD&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;TR&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;xsl:template&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;&amp;lt;/&lt;/span&gt;xsl:stylesheet&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;&#10;&lt;p&gt;Credits :&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;xml document from &lt;a class="link" href="http://www.hibernate.org/364.html" title="hibernate"&#10; target="_blank" rel="noopener"&#10; &gt;hibernate&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;xml converted to html using &lt;a class="link" href="http://www.andre-simon.de/" title="Highlight"&#10; target="_blank" rel="noopener"&#10; &gt;Highlight&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;a class="link" href="http://www.sketchpath.com" title="SketchPath"&#10; target="_blank" rel="noopener"&#10; &gt;SketchPath&lt;/a&gt; is a brilliant tool to play with xpath. I love the &amp;ldquo;New Context&amp;rdquo; button : Click on a node and hit &amp;ldquo;New Context&amp;rdquo; to change the context for the xpath query processor !&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item></channel></rss>