<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1956572409605655558</id><updated>2026-03-03T11:31:22.969-08:00</updated><category term="programming"/><category term="software"/><category term="recommendations"/><category term="computers"/><category term="technobrief"/><category term="windows installer"/><category term="web tools"/><category term="technologies"/><category term="business"/><category term="opinions"/><category term="tips and tricks"/><category term="wix"/><category term="articles"/><category term="podcasts"/><category term="reviews"/><category term="sql"/><category term="visual studio"/><category term="methodologies"/><category term="script"/><category term="ui"/><category term="camera"/><category term="certification"/><category term="git"/><category term="humor"/><category term="phone"/><category term="security"/><category term="shell"/><category term="adobe"/><category term="api"/><category term="batch"/><category term="blogs"/><category term="bootstrap"/><category term="demo"/><category term="design"/><category term="documentation"/><category term="elements"/><category term="gadgets"/><category term="javascript"/><category term="mp4"/><category term="music"/><category term="office"/><category term="photography"/><category term="photoshop"/><category term="premiere"/><category term="presentation"/><category term="productivity"/><category term="prototype"/><category term="rants"/><category term="sandcastle"/><category term="services"/><category term="ux"/><category term="video"/><category term="wireframe"/><title type='text'>Alek Davis: Technoblog</title><subtitle type='html'>Random rants on programming, technology, and related stuff</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default?alt=atom&amp;redirect=false'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default?alt=atom&amp;start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>143</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-4250845574517804842</id><published>2026-01-26T11:40:00.000-08:00</published><updated>2026-01-26T11:46:07.708-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>Why does Gmail clip messages?</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to fix the Gmail clipping issue for localized email messages sent via SendGrid.&lt;/div&gt;
&lt;p&gt;
I dealt with this issue when working on two different projects. Spent several days figuring out the solution and fixed it for the first project. A few years passed. Ran into a similar problem, and totally forgot about the previous solution, so spent another few days addressing the same problem and later realized that I already addressed it before. Anyway, this is post primarily to myself in case I ran into the same problem again, but it may help other people. 
&lt;/p&gt;
&lt;p&gt;PROBLEM&lt;/p&gt;
&lt;p&gt;
When my application sends email notifications, some of them appear as clipped in Gmail. The notifications are formatted as HTML and translated to various languages, but not all translation cause this issue. For example, notifications translated to German, Spanish, Finnish, French, Italian, Portuguese, and Swedish would be clipped, while translations to Arabic, Czech, Hebrew, Dutch, Japanese, Russian, Vietnamese and Chinese, would not (there are more languages in both lists). The notifications were about the same size (very short, just a few sentences), did not include any embedded media (and had just a small logo in the image reference tag). I checked multiple articles and none of the possible reasons causing message clipping applied to my notifications.
&lt;/p&gt;
&lt;p&gt;TROUBLESHOOTING&lt;/p&gt;
&lt;p&gt;
A while back, I had a similar issue caused by a copyright character. I use &lt;a href=&quot;https://github.com/alekdavis/xslmail&quot; target=&quot;_blank&quot;&gt;my own framework&lt;/a&gt; to generate email notification files from the templates and one of the third party libraries in the framework converted the HTML entities (such as &lt;span class=&quot;code&quot;&gt;&amp;amp;copy;&lt;/span&gt;) to the Unicode character equivalents (such as &lt;span class=&quot;code&quot;&gt;©&lt;/span&gt;). At some point I added the capability to convert the Unicode characters back to the HTML entities, so it should have taken  care of the problem, but I noticed that in the actual message in Gmail, the copyright character was again in Unicode. I will get back to it later, but since all my templates underwent the same process and all contained the same copyright message and some of them worked fine while others were clipped, it should not have been the issue (don&#39;t know if Gmail fixed it or something else happened by the Unicode copyright character I see in the email body now does not seem to cause clipping).
&lt;/p&gt;
&lt;p&gt;
After spending many hours trying to isolate which particular characters cause message clipping, I noticed that the issue mostly affects accented characters. I wondered if the problem was caused by character sets. I downloaded the email messages from Gmail and noticed the discrepancy in the &lt;span class=&quot;code&quot;&gt;Content-Type&lt;/span&gt; header. The translated messages that were not clipped had the content type set to &lt;span class=&quot;code&quot;&gt;text/html; charset=utf-8&lt;/span&gt;, while the clipped messages were set to &lt;span class=&quot;code&quot;&gt;text/html; charset=iso-8859-1&lt;/span&gt;.
&lt;/p&gt;
&lt;p&gt;EXPLANATION&lt;/p&gt;
&lt;p&gt;
Here is what caused Gmail message clipping for me. We use &lt;a href=&quot;https://sendgrid.com/&quot; target=&quot;_blank&quot;&gt;SendGrid&lt;/a&gt; to send notifications, and their API (we use C#) does not allow specifying the content type character set. When we used the standard .NET messaging API, specifying the character set was trivial (and we did not have this problem), but for some reason, the SendGrid API does not support it. Instead, it tries to determine the most appropriate character set based on the message text. I do not know why they do it. Maybe it&#39;s a way to reduce message size or something else, but the bottom line is that there is no programmatic way to tell the API what character set to use when sending email messages. And I&#39;m not sure about other clients, but Gmail is very particular about the content type it receives and the content of the message, so when it sees the ISO-8859-1 character set in the content type header, but notices accented characters, it clips the message, even if the message holds a single sentence (or word). I filed an &lt;a href=&quot;https://github.com/sendgrid/sendgrid-csharp/issues/1224&quot; target=&quot;_blank&quot;&gt;issue with the SendGrid C# API&lt;/a&gt; about this (and &lt;a href=&quot;https://github.com/sendgrid/sendgrid-csharp/issues/1225&quot; target=&quot;_blank&quot;&gt;another one&lt;/a&gt; for the HTML entities conversion), but something tells me that they will not fix it, so we need to find a solution.
&lt;/p&gt;
&lt;p&gt;SOLUTION&lt;/p&gt;
&lt;p&gt;
I&#39;m not sure if there is a better way to address it, but the solution I picked was to include an invisible Unicode character in all message bodies to force SendGrid to set up content type character set to UTF-8. If you are having the same problem, add a line like this somewhere in the HTML email message body:
&lt;/p&gt;
&lt;pre class=&quot;brush:html&quot;&gt;&amp;lt;!-- DO NOT REMOVE! KEEP THIS ELEMENT WITH THE ⌀ CHARACTER TO HELP SENDGRID USE UTF-8 ENCODING. --&amp;gt;
&amp;lt;span style=&quot;color: transparent; user-select: none; font-size: 0; display: none; visibility: hidden;&quot;&amp;gt;⌀&amp;lt;/span&amp;gt;
&lt;/pre&gt;
&lt;p&gt;
I am using an HTML element with an invisible character instead of an HTML comment because some frameworks may remove comments before sending an email message to reduce the message size. So far, it solved my problem, and I do not see any clipping of any translation among the three dozen that we support. Now, the most important part is not to forget to do this in the next project.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/4250845574517804842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2026/01/why-does-gmail-clip-messages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/4250845574517804842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/4250845574517804842'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2026/01/why-does-gmail-clip-messages.html' title='Why does Gmail clip messages?'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-2286000392208589341</id><published>2024-10-06T00:34:00.000-07:00</published><updated>2025-09-28T22:43:27.779-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>OData! my Data!</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to process OData filters in C#.&lt;/div&gt;
&lt;p&gt;
I spent a few days trying to figure out how to validate OData filte, so I&#39;d like to share a piece of code that performs basic OData parsing. But before I get to code, let me explain what I&#39;m doing here and why.
&lt;/p&gt;
&lt;p&gt;A typical use case could be a REST APIs built on top of ASP.NET Core (.NET 8) which talks to extrnal REST APIs that requires a consistent way for defining the search queries (or search filters) used by the HTTP GET operations. There are different ways to define search queries. For example, &lt;a href=&quot;https://www.rfc-editor.org/rfc/rfc7644.html#section-3.4.2.2&quot; target=&quot;_blank&quot;&gt;SCIM filtering spec&lt;/a&gt; looks simple and robust, but after spending the last decade dealing with SCIM implementations, I do not want to have anything to do with SCIM anymore.
&lt;/p&gt;
&lt;p&gt;
The most reasonable option (other than building one from scratch) would be using &lt;a href=&quot;https://www.odata.org/getting-started/basic-tutorial/&quot; target=&quot;_blank&quot;&gt;OData&lt;/a&gt;. OData comes with a lot of goodies, but for our use case, we only needed to figure out how to parse and validate &lt;a href=&quot;https://learn.microsoft.com/en-us/graph/filter-query-parameter?tabs=http&quot; target=&quot;_blank&quot;&gt;OData filters&lt;/a&gt;. I thought in .NET Core, handling OData queries would be simple, but unfortunately, the good people at Microsoft must have assumed that everyone using OData in their custom controllers would rely on entity frameworks, so they made it easy for the apps that integrate OData with their entity data models. Which is not what we do. In our case, we take a search query, validate it, and pass to an external API. What this API does with it, we do not care, but we want to be good citizens and not hand it garbage (and in case we get garbage from the clients, we want to send them meaningful errors explaining why their queries are garbage). To do this, we need to take an OData filter expression from a query string and make sure that it is valid. Should be simple, right?
&lt;/p&gt;
&lt;p&gt;
There are many articles explaining how to integrate OData into the REST API controllers, but the only two posts I found useful for our use case were:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/69319429/52545&quot; target=&quot;_blank&quot;&gt;How use OData filters with swagger in an asp.net core WebApi project?&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://devblogs.microsoft.com/odata/tutorial-sample-using-odatauriparser-for-odata-v4/&quot; target=&quot;_blank&quot;&gt;[Tutorial &amp;amp; Sample] Using ODataUriParser for OData V4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
By trial and error, I built a simple program that validates and parses a string holding an OData filter. This program is not perfect (it does not handle all possible functions, operators, and complex scenarios), but for us, it is more than enough. I will make it more robust and implement the logic as a library at some point, but if you need a more or less simple example, showing how to validate and parse a not very complex OData filter, see code below (read the comments that explain the requirements and dependencies).
&lt;/p&gt;
&lt;p&gt;
UPDATE: You can ignore the next section because I made a few improvements to the code and published both the library handling OData filters and the demo programs at &lt;a href=&quot;https://github.com/alekdavis/dotnet-extras-odata&quot; target=&quot;_blank&quot;&gt;GitHub&lt;/a&gt; (there is also a &lt;a href=&quot;https://www.nuget.org/packages/DotNetExtras.OData&quot; target=&quot;_blank&quot;&gt;Nuget package&lt;/a&gt; available). 
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;
/*
This .NET Core console app was built and tested with the following Nuget packages {versions}:

- Microsoft.AspNetCore.OData {9.0.0}
- Microsoft.Extensions.DependencyInjection.Abstractions {8.0.1}
- Microsoft.OData.Core {8.0.1}

To install the latest versions of the packages, run from Package Manager Console:

Install-Package Microsoft.Extensions.DependencyInjection.Abstractions
Install-Package Microsoft.OData.Core
Install-Package Microsoft.AspNetCore.OData

SUMMARY:

This program illustrates how to validate and parse basic OData filters in the given text strings.
The code may not be comprehensive and it does not cover advanced OData use cases,
but it shows how to handle typical filter conditions that utilize common operations
and functions (&#39;not&#39;, &#39;eq&#39;, &#39;ne&#39;, &#39;gt&#39;, &#39;ge&#39;, &#39;lt&#39;, &#39;le&#39;, &#39;startsWith&#39;, &#39;endsWith&#39;,
&#39;contains&#39;, &#39;in&#39;) and grouped using logical operators (&#39;and&#39;, &#39;or&#39;).

The filter properties will be mapped to properties of the filter object properties. The filter
objects (there is more than one) identify how OData filter attributes can be mapped to a real
entity that may come from an external resource, such as a web service, database, report, etc.
*/

// The following namespace holds the classes used in the OData filter.
#pragma warning disable IDE0130 // Namespace does not match folder structure
namespace TestOData1;
#pragma warning restore IDE0130 // Namespace does not match folder structure

using Microsoft.OData.Edm;
using Microsoft.OData.ModelBuilder;
using Microsoft.OData.UriParser;
using System.Linq;

/// &amp;lt;summary&amp;gt;
/// Main program.
/// &amp;lt;/summary&amp;gt;
internal class Program
{
    #region Properties
    // Use the same separator for complex (nested) types as the OData filters.
    private static readonly string _separator = &quot;/&quot;;

    // Number of indent characters for the binary tree output.
    private static readonly int _indentLength = 2;

    // Set this value to true to print object names of the tree nodes.
    private static readonly bool _printNode = false;
    #endregion

    #region Filter examples
    // Here are some basic filter we may want to test.

    // By default, property names are case-insensitive, but we&#39;ll make them case-insensitive.
    private static readonly string[] _filters =
    [
        &quot;not(enabled)&quot;,
        &quot;not(true)&quot;,
        &quot;email eq null&quot;,
        &quot;email ne null&quot;,
        &quot;email eq &#39;john@mail.com&#39;&quot;,
        &quot;email ne &#39;john@mail.com&#39;&quot;,
        &quot;email eq displayName&quot;,
        &quot;email ne displayName&quot;,
        &quot;contains(email, &#39;@&#39;)&quot;,
        &quot;not contains(email, &#39;@&#39;)&quot;,
        &quot;contains(email, displayName)&quot;,
        &quot;not contains(email, displayName)&quot;,
        &quot;startsWith(email, &#39;john&#39;)&quot;,
        &quot;not startsWith(email, &#39;john&#39;)&quot;,
        &quot;endsWith(email, &#39;@mail.com&#39;)&quot;,
        &quot;not endsWith(email, &#39;@mail.com&#39;)&quot;,
        &quot;email in (&#39;john@mail.com&#39;, &#39;mary@mail.com&#39;)&quot;,
        &quot;not (email in (&#39;john@mail.com&#39;, &#39;mary@mail.com&#39;))&quot;,
        &quot;id eq 0&quot;,
        &quot;id gt 0&quot;,
        &quot;id lt 2000&quot;,
        &quot;id ge 1&quot;,
        &quot;id le 2000&quot;,
        &quot;name eq null&quot;,
        &quot;name ne null&quot;,
        &quot;name/givenName eq null&quot;,
        &quot;sponsor/name/givenName eq null&quot;,
        &quot;name/surname ne sponsor/name/surname&quot;,
        &quot;name/givenName in (&#39;John&#39;, &#39;Mary&#39;)&quot;,
        &quot;name/givenName ne name/nickName&quot;,
        &quot;startsWith(displayName, &#39;J&#39;)&quot;,
        &quot;type eq &#39;Employee&#39;&quot;,
        &quot;type eq &#39;Guest&#39; and name/Surname eq &#39;Johnson&#39;&quot;,
        &quot;type eq &#39;Contractor&#39; and not(endsWith(email, &#39;@mail.com&#39;))&quot;,
        &quot;enabled eq false and type in (&#39;Employee&#39;, &#39;Contractor&#39;) &quot;,
        &quot;(enabled eq true and type eq &#39;Employee&#39;) or (enabled eq false and (type eq &#39;Guest&#39; or endsWith(email, &#39;@mail.com&#39;)))&quot;,
        &quot;phoneNumbers/any(p: p eq &#39;123-456-6789&#39;)&quot;,
        &quot;socialLogins/any(s: s/name eq &#39;Facebook&#39;)&quot;,
        &quot;socialLogins/any(s: s/name eq &#39;Facebook&#39; or endsWith(s/url, &#39;google.com&#39;))&quot;,
        &quot;sponsor/phoneNumbers/any(p: p eq &#39;123-456-6789&#39;)&quot;,
        &quot;sponsor/socialLogins/any(s: s/name eq &#39;Facebook&#39;)&quot;
    ];
    #endregion

    #region Main method
    private static void Main()
    {
        // The builder is responsible for mapping OData filter conditions to the object properties.
        ODataConventionModelBuilder builder = new();

        // UserFilter defines the properties which can be used in our filter (this class is defined below).
        // The UserFilter class properties also can be based on other complex types, but they will be
        // included implicitly, so no need to reference them.
        builder.AddEntityType(typeof(User));

        // EDM (Entity Data Model) encapsulates classes that will be used in the OData filters.
        IEdmModel model = builder.GetEdmModel();

        // Let&#39;s print all classes that our EDM schema recognizes.
        Console.WriteLine(&quot;ODATA SCHEMA ELEMENTS:&quot;);
        foreach (IEdmSchemaElement element in model.SchemaElements)
        {
            Console.WriteLine($&quot;- {element.FullName()}: {element.SchemaElementKind}&quot;);
        }

        // If you define the EDM classes not under an explicitly defined namespace,
        // make sure you add &#39;Default.&#39; to the full name because &#39;Default&#39; would be the implicit
        // namespace created by the compiler; if you do not, these types will not be found.
        // string qualifiedName = &quot;Default.&quot; + typeof(GroupFilter).FullName;
        string qualifiedName = typeof(User).FullName ?? &quot;&quot;;

        // Now, lets use our filter class as the EDM type, so it can be used for OData filter handling.
        IEdmType type = model.FindDeclaredType(qualifiedName);
        if (type == null)
        {
            Console.WriteLine($&quot;Type &#39;{qualifiedName}&#39; is not found in the OData schema model.&quot;);
            return;
        }

        foreach (string filter in _filters)
        {
            Console.WriteLine();
            Console.WriteLine(new string(&#39;-&#39;, 72));
            Console.WriteLine(&quot;EXPRESSION: &quot; + filter);
            Console.WriteLine(new string(&#39;-&#39;, 72));

            // This dictionary can include other OData parameters,
            // such as &quot;$top&quot;, &quot;$skip&quot;, &quot;$count&quot;, &quot;$select&quot;, &quot;$orderby&quot;, &quot;$search&quot;, etc.
            // but we are only interested in the filter.
            Dictionary&amp;lt;string, string&amp;gt; options = new()
            {
                {&quot;$filter&quot;, filter}
            };

            try
            {
                ODataQueryOptionParser parser = new(model, type, null, options)
                {
                    // By default, property names are case-sensitive,
                    // so we need to explicitly specify them to be case-insensitive.
                    Resolver = new ODataUriResolver() { EnableCaseInsensitive = true }
                };

                FilterClause clause = parser.ParseFilter();

                if (clause == null)
                {
                    Console.WriteLine(&quot;FilterClause is null.&quot;);
                }
                else
                {
                    ProcessNode(clause.Expression, 0, null);
                }
            }
            catch (Exception ex)
            {
                while (ex != null)
                {
                    Console.WriteLine(ex.Message + &quot; &quot;);

                    if (ex.InnerException != null)
                    {
                        ex = ex.InnerException;
                    }
                    else
                    {
                        break;
                    }
                }
                Console.WriteLine();
            }
        }
    }
    #endregion

    #region Node processing methods
    /// &amp;lt;summary&amp;gt;
    /// Process a node of the OData filter.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;param name=&quot;node&quot;&amp;gt;
    /// Node to process.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;param name=&quot;level&quot;&amp;gt;
    /// Indent level of this node.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;param name=&quot;parentName&quot;&amp;gt;
    /// Name of the parent property of the nodes under the &#39;Any&#39; operator.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;remarks&amp;gt;
    /// OData filter is basically a binary tree, so we&#39;ll process it as such.
    /// &amp;lt;/remarks&amp;gt;
    private static void ProcessNode
    (
        SingleValueNode node, 
        int level, 
        string? parentName
    )
    {
        // The filter tree consists of nodes all of which are directly derived from SingleValueNode.
        if (node == null)
        {
            // Shouldn&#39;t happen, but just in case.
            return;
        }
        else if (node is BinaryOperatorNode binaryOperatorNode)
        {
            ProcessBinaryOperatorNode(binaryOperatorNode, level, parentName);
        }
        else if (node is SingleComplexNode singleComplexNode)
        {
            ProcessSingleComplexNode(singleComplexNode, level, parentName);
        }
        else if (node is SingleValueFunctionCallNode singleValueFunctionCallNode)
        {
            ProcessSingleValueFunctionCallNode(singleValueFunctionCallNode, level, parentName);
        }
        else if (node is SingleValueOpenPropertyAccessNode singleValueOpenPropertyAccessNode)
        {
            ProcessSingleValueOpenPropertyAccessNode(singleValueOpenPropertyAccessNode, level, parentName);
        }
        else if (node is SingleValuePropertyAccessNode singleValuePropertyAccessNode)
        {
            ProcessSingleValuePropertyAccessNode(singleValuePropertyAccessNode, level, parentName);
        }
        else if (node is InNode inNode)
        {
            ProcessInNode(inNode, level, parentName);
        }
        else if (node is ConstantNode constantNode)
        {
            ProcessConstantNode(constantNode, level);
        }
        else if (node is ConvertNode convertNode)
        {
            ProcessConvertNode(convertNode, level, parentName);
        }
        else if (node is UnaryOperatorNode unaryOperatorNode)
        {
            ProcessUnaryOperatorNode(unaryOperatorNode, level, parentName);
        }
        else if (node is AnyNode anyNode)
        {
            ProcessAnyNode(anyNode, level);
        }
        else if (node is NonResourceRangeVariableReferenceNode nonResourceRangeVariableReferenceNode)
        {
            ProcessNonResourceRangeVariableReferenceNode(nonResourceRangeVariableReferenceNode, level, parentName);
        }
        else
        {
            // There may be more node types that need to be handled explicitly,
            // but for now, let&#39;s handle all unexpected nodes as a simple node.
            ProcessSingleValueNode(node, level);
        }
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles all kinds of nodes, 
    /// e.g. holding elements that must be converted to a certain data type, such as enum,
    /// operator nodes, value nodes, etc.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessConvertNode
    (
        ConvertNode node, 
        int level, 
        string? parentName
    )
    {
        ProcessNode(node.Source, level, parentName);
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;params&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles the simplest node holding a single element.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;remarks&amp;gt;
    /// This method will also handle any nodes that are not handled by the node type-specific methods.
    /// &amp;lt;/remarks&amp;gt;
    private static void ProcessSingleValueNode
    (
        SingleValueNode node, 
        int level
    )
    {
        if (_printNode)
        {
            WriteLine(level, FormatNode(node.Kind));
        }
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles a node holding a simple constant value, such as a string, a number, or a boolean.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessConstantNode
    (
        ConstantNode node, 
        int level
    )
    {
        WriteLine(level, FormatValue(node.Value ?? &quot;(null)&quot;));
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles values in the collection object (such as a collection inside of the &#39;in&#39; clause).
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessCollectionConstantNode
    (
        CollectionConstantNode node, 
        int level, 
        string? parentName
    )
    {
        foreach(var value in node.Collection) 
        {
            ProcessNode(value, level, parentName);
        }
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles a node holding a complex (i.e. nested) object property.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessSingleComplexNode
    (
        SingleComplexNode node, 
        int level,
        string? parentName
    )
    {
        WriteLine(level, FormatProperty(node.Property.Name));
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles a node holding a simple object property.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessSingleValuePropertyAccessNode
    (
        SingleValuePropertyAccessNode node, 
        int level,
        string? parentName
    )
    {
        WriteLine(level, FormatProperty(GetPropertyName(node, parentName)));
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Not sure what node this is, but based on the name it should be similar to SingleValuePropertyAccessNode.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessSingleValueOpenPropertyAccessNode
    (
        SingleValueOpenPropertyAccessNode node, 
        int level,
        string? parentName
    )
    {
        WriteLine(level, FormatProperty(GetPropertyName(node, parentName)));
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;params&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles the nodes holding dynamic value such as aliases use in the &#39;Any&#39; operator.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessNonResourceRangeVariableReferenceNode
    (
        NonResourceRangeVariableReferenceNode node, 
        int level,
        string? parentName
    )
    {
        // In filter &#39;phoneNumbers/any(p: p eq &#39;123-456-6789&#39;)&#39;, since &#39;p&#39; is just an alias,
        // we want to print &#39;phoneNumbers&#39; because it is the name of the collection to
        // to which the filter is applied.

        // This node should be under a parent&#39;s &#39;Any&#39; operation.
        if (!string.IsNullOrEmpty(parentName))
        {
            WriteLine(level, FormatProperty(parentName));
        }
        // But just in case, we can just print the alias (e.g. &#39;p&#39; in our example).
        else
        {
            WriteLine(level, FormatProperty(node.RangeVariable.Name));
        }
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles a unary operation node, such as &#39;not&#39;.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessUnaryOperatorNode
    (
        UnaryOperatorNode node, 
        int level,
        string? parentName
    )
    {
        ProcessSingleValueNode(node, level);

        WriteLine(level, FormatOperator(node.OperatorKind));

        ProcessNode(node.Operand, level + 1, parentName);
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles an any operation applicable to arrays, lists and collections.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessAnyNode
    (
        AnyNode node, 
        int level
    )
    {
        ProcessSingleValueNode(node, level);

        WriteLine(level, FormatOperator(node.Kind));

        string? parentName = null;

        if (node.Source is CollectionPropertyAccessNode collectionPropertyAccessNode)
        {
            parentName = GetPropertyName(collectionPropertyAccessNode, null);
        }
        else if (node.Source is CollectionComplexNode collectionComplexNode)
        {
            parentName = GetPropertyName(collectionComplexNode, null);
        }

        if (!string.IsNullOrEmpty(parentName))
        {
            WriteLine(level + 1, FormatProperty(parentName));
            ProcessNode(node.Body, level + 2, parentName);
        }
        else
        {
            ProcessNode(node.Body, level + 1, null);
        }
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles a node holing an &#39;in&#39; operation.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessInNode
    (
        InNode node, 
        int level, 
        string? parentName
    )
    {
        ProcessSingleValueNode(node, level);

        WriteLine(level, FormatOperator(node.Kind));

        // The left element of the in node holds the property name.
        if (node.Left is SingleValuePropertyAccessNode singleValuePropertyAccessNode &amp;&amp; 
            !string.IsNullOrEmpty(singleValuePropertyAccessNode.Property?.Name))
        {
            WriteLine(level + 1, FormatProperty(GetPropertyName(singleValuePropertyAccessNode.Property?.Name ?? &quot;&quot;, parentName)));
        }
        else if (node.Left is SingleValueOpenPropertyAccessNode singleValueOpenPropertyAccessNode &amp;&amp; 
            !string.IsNullOrEmpty(singleValueOpenPropertyAccessNode.Name))
        {
            WriteLine(level + 1, FormatProperty(GetPropertyName(singleValueOpenPropertyAccessNode.Name ?? &quot;&quot;, parentName)));
        }

        // The right element of the in node holds the collection of the values. 
        if (node.Right is CollectionConstantNode collectionConstantNode)
        {
            ProcessCollectionConstantNode(collectionConstantNode, level + 1, parentName);
        }
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles a node holding a function call, such as &#39;startsWith&#39;, &#39;contains&#39;, etc.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessSingleValueFunctionCallNode
    (
        SingleValueFunctionCallNode node, 
        int level, 
        string? parentName
    )
    {
        ProcessSingleValueNode(node, level);

        WriteLine(level, FormatOperator(node.Name));

        // The first item in the array of parameters holds the property being used in the function.
        if (node.Parameters.FirstOrDefault() is SingleValuePropertyAccessNode param)
        {
            WriteLine(level + 1, FormatProperty(GetPropertyName(param.Property.Name, parentName)));
        }

        // The rest of the items must be constants.
        IEnumerable&amp;lt;QueryNode&amp;gt; values = node.Parameters.Skip(1);

        foreach (QueryNode value in values) 
        {
            if (value is SingleValueNode singleValue)
            {
                ProcessNode(singleValue, level + 1, parentName);
            }
        }
    }

    /// &amp;lt;inheritdoc cref=&quot;ProcessNode(SingleValueNode, int, string?)&quot; path=&quot;param&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Handles a binary operator, such as &#39;eq&#39;, &#39;ne&#39;, &#39;and&#39;, &#39;or&#39;, etc.
    /// &amp;lt;/summary&amp;gt;
    private static void ProcessBinaryOperatorNode
    (
        BinaryOperatorNode node, 
        int level, 
        string? parentName
    )
    {
        ProcessSingleValueNode(node, level);

        WriteLine(level, FormatOperator(node.OperatorKind));

        ProcessNode(node.Left, level + 1, parentName);
        ProcessNode(node.Right, level + 1, parentName);
    }
    #endregion

    #region Property name formatting methods
    /// &amp;lt;summary&amp;gt;
    /// Appends name of the parent to the given name if needed.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;param name=&quot;name&quot;&amp;gt;
    /// Name of the property.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;param name=&quot;parentName&quot;&amp;gt;
    /// Name of the parent collection property (to which the &#39;Any&#39; operation is applied).
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;returns&amp;gt;
    /// Property name.
    /// &amp;lt;/returns&amp;gt;
    private static string GetPropertyName
    (
        string name,
        string? parentName
    )
    {
        return string.IsNullOrEmpty(parentName)
            ? name
            : parentName + _separator + name;
    }

    /// &amp;lt;inheritdoc cref=&quot;GetPropertyName(string, string)&quot; path=&quot;param|returns&quot;/&amp;gt;
    /// &amp;lt;summary&amp;gt;
    /// Generates the name of the complex (i.e. nested) property that includes the names of all parents.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;param name=&quot;node&quot;&amp;gt;
    /// Property node.
    /// &amp;lt;/param&amp;gt;
    private static string GetPropertyName
    (
        SingleValuePropertyAccessNode node,
        string? parentName
    )
    {
        string path = &quot;&quot;;
        string parent;

        if (node.Source == null)
        {
            return GetPropertyName(node.Property.Name, parentName);
        }

        // The source property point to the parent object referencing this property.
        var source = node.Source;

        while (source != null)
        {
            // There may be a couple of types used as sources.
            // In our example, UserFilter.Name is a SingleComplexNode, 
            // while UserFilter.Sponsor.Name is a SingleNavigationNode.
            // There may be other case, but I&#39;m not sure how to test.
            if (source is SingleComplexNode singleComplexNode &amp;&amp;
                !string.IsNullOrEmpty(singleComplexNode.Property?.Name))
            {
                parent = singleComplexNode.Property.Name ?? &quot;&quot;;
                source = singleComplexNode.Source;
            }
            else if (source is SingleNavigationNode singleNavigationNode &amp;&amp;
                !string.IsNullOrEmpty(singleNavigationNode.NavigationProperty?.Name))
            {
                parent = singleNavigationNode.NavigationProperty?.Name ?? &quot;&quot;;
                source = singleNavigationNode.Source;
            }
            else
            {
                break;
            }

            path = string.IsNullOrEmpty(path)
                ? parent
                : parent + _separator + path;
        }

        return string.IsNullOrEmpty(path)
            ? GetPropertyName(node.Property.Name, parentName)
            : GetPropertyName(GetPropertyName(node.Property.Name, path), parentName);
    }

    /// &amp;lt;inheritdoc cref=&quot;GetPropertyName(SingleValuePropertyAccessNode, string)&quot; path=&quot;param|returns&quot;/&amp;gt;
    private static string GetPropertyName
    (
        SingleValueOpenPropertyAccessNode node,
        string? parentName
    )
    {
        string path = &quot;&quot;;
        string parent;

        if (node.Source == null)
        {
            return GetPropertyName(node.Name, parentName);
        }

        // The source property point to the parent object referencing this property.
        var source = node.Source;

        while (source != null)
        {
            // There may be a couple of types used as sources.
            // In our example, UserFilter.Name is a SingleComplexNode, 
            // while UserFilter.Sponsor.Name is a SingleNavigationNode.
            // There may be other case, but I&#39;m not sure how to test.
            if (source is SingleComplexNode singleComplexNode &amp;&amp;
                !string.IsNullOrEmpty(singleComplexNode.Property?.Name))
            {
                parent = singleComplexNode.Property.Name ?? &quot;&quot;;
                source = singleComplexNode.Source;
            }
            else if (source is SingleNavigationNode singleNavigationNode &amp;&amp;
                !string.IsNullOrEmpty(singleNavigationNode.NavigationProperty?.Name))
            {
                parent = singleNavigationNode.NavigationProperty?.Name ?? &quot;&quot;;
                source = singleNavigationNode.Source;
            }
            else
            {
                break;
            }

            path = string.IsNullOrEmpty(path)
                ? parent
                : parent + _separator + path;
        }

        return string.IsNullOrEmpty(path)
            ? GetPropertyName(node.Name, parentName)
            : GetPropertyName(GetPropertyName(node.Name, path), parentName);
    }

    /// &amp;lt;inheritdoc cref=&quot;GetPropertyName(SingleValuePropertyAccessNode, string)&quot; path=&quot;param|returns&quot;/&amp;gt;
    private static string GetPropertyName
    (
        CollectionComplexNode node,
        string? parentName
    )
    {
        string path = &quot;&quot;;
        string parent;

        if (node.Source == null)
        {
            return GetPropertyName(node.Property.Name, parentName);
        }

        // The source property point to the parent object referencing this property.
        var source = node.Source;

        while (source != null)
        {
            // There may be a couple of types used as sources.
            // In our example, UserFilter.Name is a SingleComplexNode, 
            // while UserFilter.Sponsor.Name is a SingleNavigationNode.
            // There may be other case, but I&#39;m not sure how to test.
            if (source is SingleComplexNode singleComplexNode &amp;&amp;
                !string.IsNullOrEmpty(singleComplexNode.Property?.Name))
            {
                parent = singleComplexNode.Property.Name ?? &quot;&quot;;
                source = singleComplexNode.Source;
            }
            else if (source is SingleNavigationNode singleNavigationNode &amp;&amp;
                !string.IsNullOrEmpty(singleNavigationNode.NavigationProperty?.Name))
            {
                parent = singleNavigationNode.NavigationProperty?.Name ?? &quot;&quot;;
                source = singleNavigationNode.Source;
            }
            else
            {
                break;
            }

            path = string.IsNullOrEmpty(path)
                ? parent
                : parent + _separator + path;
        }

        return string.IsNullOrEmpty(path)
            ? GetPropertyName(node.Property.Name, parentName)
            : GetPropertyName(GetPropertyName(node.Property.Name, path), parentName);
    }

    /// &amp;lt;inheritdoc cref=&quot;GetPropertyName(SingleValuePropertyAccessNode, string)&quot; path=&quot;param|returns&quot;/&amp;gt;
    private static string GetPropertyName
    (
        CollectionPropertyAccessNode node,
        string? parentName
    )
    {
        string path = &quot;&quot;;
        string parent;

        if (node.Source == null)
        {
            return GetPropertyName(node.Property.Name, parentName);
        }

        // The source property point to the parent object referencing this property.
        var source = node.Source;

        while (source != null)
        {
            // There may be a couple of types used as sources.
            // In our example, UserFilter.Name is a SingleComplexNode, 
            // while UserFilter.Sponsor.Name is a SingleNavigationNode.
            // There may be other case, but I&#39;m not sure how to test.
            if (source is SingleComplexNode singleComplexNode &amp;&amp;
                !string.IsNullOrEmpty(singleComplexNode.Property?.Name))
            {
                parent = singleComplexNode.Property.Name ?? &quot;&quot;;
                source = singleComplexNode.Source;
            }
            else if (source is SingleNavigationNode singleNavigationNode &amp;&amp;
                !string.IsNullOrEmpty(singleNavigationNode.NavigationProperty?.Name))
            {
                parent = singleNavigationNode.NavigationProperty?.Name ?? &quot;&quot;;
                source = singleNavigationNode.Source;
            }
            else
            {
                break;
            }

            path = string.IsNullOrEmpty(path)
                ? parent
                : parent + _separator + path;
        }

        return string.IsNullOrEmpty(path)
            ? GetPropertyName(node.Property.Name, parentName)
            : GetPropertyName(GetPropertyName(node.Property.Name, path), parentName);
    }

    #endregion
    
    #region Output formatting methods
    /// &amp;lt;summary&amp;gt;
    /// Formats node message.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;param name=&quot;name&quot;&amp;gt;
    /// Name of the node.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;returns&amp;gt;
    /// Formatted node message.
    /// &amp;lt;/returns&amp;gt;
    private static string FormatNode
    (
        object name
    )
    {
        return &quot;NODE: &quot; + name;
    }

    /// &amp;lt;summary&amp;gt;
    /// Formats operator message.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;param name=&quot;name&quot;&amp;gt;
    /// Name of the operator.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;returns&amp;gt;
    /// Formatted operator message.
    /// &amp;lt;/returns&amp;gt;
    private static string FormatOperator
    (
        object name
    )
    {
        return &quot;OPERATOR: &quot; + name;
    } 

    /// &amp;lt;summary&amp;gt;
    /// Formats property message.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;param name=&quot;name&quot;&amp;gt;
    /// Name of the property.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;returns&amp;gt;
    /// Formatted property message.
    /// &amp;lt;/returns&amp;gt;
    private static string FormatProperty
    (
        object name
    )
    {
        return &quot;PROPERTY: &quot; + name;
    }

    /// &amp;lt;summary&amp;gt;
    /// Formats value message.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;param name=&quot;name&quot;&amp;gt;
    /// Name of the value.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;returns&amp;gt;
    /// Formatted value message.
    /// &amp;lt;/returns&amp;gt;
    private static string FormatValue
    (
        object name
    )
    {
        return &quot;VALUE: &quot; + name;
    }
    #endregion

    #region Print functions
    /// &amp;lt;summary&amp;gt;
    /// Prints text with appropriate indentation.
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;param name=&quot;indentLevel&quot;&amp;gt;
    /// Indentation level.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;param name=&quot;message&quot;&amp;gt;
    /// Message text.
    /// &amp;lt;/param&amp;gt;
    /// &amp;lt;param name=&quot;args&quot;&amp;gt;
    /// Optional message parameters.
    /// &amp;lt;/param&amp;gt;
    private static void WriteLine
    (
        int indentLevel, 
        string message, 
        params object[] args
    )
    {
        string indent = new(&#39; &#39;, indentLevel * _indentLength);
        Console.WriteLine(indent + message, args);
    }
    #endregion
}

#region Data models used by the OData filter
/// &amp;lt;summary&amp;gt;
/// Defines types of users.
/// &amp;lt;/summary&amp;gt;
public enum UserType
{
    Employee,
    Contractor,
    Guest
}

/// &amp;lt;summary&amp;gt;
/// Defines name parts.
/// &amp;lt;/summary&amp;gt;
public class PersonName
{
    public string? GivenName
    {
        get; set;
    }

    public string? NickName
    {
        get; set;
    }

    public string? Surname
    {
        get; set;
    }

    public char? MiddleInitial
    {
        get; set;
    }
}

/// &amp;lt;summary&amp;gt;
/// Defines social login info.
/// &amp;lt;/summary&amp;gt;
public class SocialLogin
{
    public string? Name
    {
        get; set;
    }

    public string? Url
    {
        get; set;
    }
}

/// &amp;lt;summary&amp;gt;
/// Primary filter object (it may not necessarily correspond to the corresponding backend entity).
/// &amp;lt;/summary&amp;gt;
public class User
{
    public int? Id
    {
        get; set;
    }

    public UserType? Type
    {
        get; set;
    }

    public PersonName? Name
    {
        get; set;
    }

    public string? DisplayName
    {
        get; set;
    }

    public string? Email
    {
        get; set;
    }

    public bool? Enabled
    {
        get; set;
    }

    // Use this property to test complex properties (it can be nested indefinitely).
    public User? Sponsor
    {
        get; set;
    }

    public string[]? PhoneNumbers
    {
        get; set;
    }

    public List&amp;lt;SocialLogin&amp;gt;? SocialLogins
    {
        get; set;
    }
}
#endregion
&lt;/pre&gt;
&lt;p&gt;
Here is the program output:
&lt;/p&gt;
&lt;pre style=&quot;background-color: #101010; color: #ffffff;&quot;&gt;
ODATA SCHEMA ELEMENTS:
- TestOData1.User: TypeDefinition
- TestOData1.PersonName: TypeDefinition
- TestOData1.SocialLogin: TypeDefinition
- TestOData1.UserType: TypeDefinition
- Default.Container: EntityContainer

------------------------------------------------------------------------
EXPRESSION: not(enabled)
------------------------------------------------------------------------
OPERATOR: Not
  PROPERTY: Enabled

------------------------------------------------------------------------
EXPRESSION: not(true)
------------------------------------------------------------------------
OPERATOR: Not
  VALUE: True

------------------------------------------------------------------------
EXPRESSION: email eq null
------------------------------------------------------------------------
OPERATOR: Equal
  PROPERTY: Email
  VALUE: (null)

------------------------------------------------------------------------
EXPRESSION: email ne null
------------------------------------------------------------------------
OPERATOR: NotEqual
  PROPERTY: Email
  VALUE: (null)

------------------------------------------------------------------------
EXPRESSION: email eq &#39;john@mail.com&#39;
------------------------------------------------------------------------
OPERATOR: Equal
  PROPERTY: Email
  VALUE: john@mail.com

------------------------------------------------------------------------
EXPRESSION: email ne &#39;john@mail.com&#39;
------------------------------------------------------------------------
OPERATOR: NotEqual
  PROPERTY: Email
  VALUE: john@mail.com

------------------------------------------------------------------------
EXPRESSION: email eq displayName
------------------------------------------------------------------------
OPERATOR: Equal
  PROPERTY: Email
  PROPERTY: DisplayName

------------------------------------------------------------------------
EXPRESSION: email ne displayName
------------------------------------------------------------------------
OPERATOR: NotEqual
  PROPERTY: Email
  PROPERTY: DisplayName

------------------------------------------------------------------------
EXPRESSION: contains(email, &#39;@&#39;)
------------------------------------------------------------------------
OPERATOR: contains
  PROPERTY: Email
  VALUE: @

------------------------------------------------------------------------
EXPRESSION: not contains(email, &#39;@&#39;)
------------------------------------------------------------------------
OPERATOR: Not
  OPERATOR: contains
    PROPERTY: Email
    VALUE: @

------------------------------------------------------------------------
EXPRESSION: contains(email, displayName)
------------------------------------------------------------------------
OPERATOR: contains
  PROPERTY: Email
  PROPERTY: DisplayName

------------------------------------------------------------------------
EXPRESSION: not contains(email, displayName)
------------------------------------------------------------------------
OPERATOR: Not
  OPERATOR: contains
    PROPERTY: Email
    PROPERTY: DisplayName

------------------------------------------------------------------------
EXPRESSION: startsWith(email, &#39;john&#39;)
------------------------------------------------------------------------
OPERATOR: startswith
  PROPERTY: Email
  VALUE: john

------------------------------------------------------------------------
EXPRESSION: not startsWith(email, &#39;john&#39;)
------------------------------------------------------------------------
OPERATOR: Not
  OPERATOR: startswith
    PROPERTY: Email
    VALUE: john

------------------------------------------------------------------------
EXPRESSION: endsWith(email, &#39;@mail.com&#39;)
------------------------------------------------------------------------
OPERATOR: endswith
  PROPERTY: Email
  VALUE: @mail.com

------------------------------------------------------------------------
EXPRESSION: not endsWith(email, &#39;@mail.com&#39;)
------------------------------------------------------------------------
OPERATOR: Not
  OPERATOR: endswith
    PROPERTY: Email
    VALUE: @mail.com

------------------------------------------------------------------------
EXPRESSION: email in (&#39;john@mail.com&#39;, &#39;mary@mail.com&#39;)
------------------------------------------------------------------------
OPERATOR: In
  PROPERTY: Email
  VALUE: john@mail.com
  VALUE: mary@mail.com

------------------------------------------------------------------------
EXPRESSION: not (email in (&#39;john@mail.com&#39;, &#39;mary@mail.com&#39;))
------------------------------------------------------------------------
OPERATOR: Not
  OPERATOR: In
    PROPERTY: Email
    VALUE: john@mail.com
    VALUE: mary@mail.com

------------------------------------------------------------------------
EXPRESSION: id eq 0
------------------------------------------------------------------------
OPERATOR: Equal
  PROPERTY: Id
  VALUE: 0

------------------------------------------------------------------------
EXPRESSION: id gt 0
------------------------------------------------------------------------
OPERATOR: GreaterThan
  PROPERTY: Id
  VALUE: 0

------------------------------------------------------------------------
EXPRESSION: id lt 2000
------------------------------------------------------------------------
OPERATOR: LessThan
  PROPERTY: Id
  VALUE: 2000

------------------------------------------------------------------------
EXPRESSION: id ge 1
------------------------------------------------------------------------
OPERATOR: GreaterThanOrEqual
  PROPERTY: Id
  VALUE: 1

------------------------------------------------------------------------
EXPRESSION: id le 2000
------------------------------------------------------------------------
OPERATOR: LessThanOrEqual
  PROPERTY: Id
  VALUE: 2000

------------------------------------------------------------------------
EXPRESSION: name eq null
------------------------------------------------------------------------
OPERATOR: Equal
  PROPERTY: Name
  VALUE: (null)

------------------------------------------------------------------------
EXPRESSION: name ne null
------------------------------------------------------------------------
OPERATOR: NotEqual
  PROPERTY: Name
  VALUE: (null)

------------------------------------------------------------------------
EXPRESSION: name/givenName eq null
------------------------------------------------------------------------
OPERATOR: Equal
  PROPERTY: Name/GivenName
  VALUE: (null)

------------------------------------------------------------------------
EXPRESSION: sponsor/name/givenName eq null
------------------------------------------------------------------------
OPERATOR: Equal
  PROPERTY: Sponsor/Name/GivenName
  VALUE: (null)

------------------------------------------------------------------------
EXPRESSION: name/surname ne sponsor/name/surname
------------------------------------------------------------------------
OPERATOR: NotEqual
  PROPERTY: Name/Surname
  PROPERTY: Sponsor/Name/Surname

------------------------------------------------------------------------
EXPRESSION: name/givenName in (&#39;John&#39;, &#39;Mary&#39;)
------------------------------------------------------------------------
OPERATOR: In
  PROPERTY: GivenName
  VALUE: John
  VALUE: Mary

------------------------------------------------------------------------
EXPRESSION: name/givenName ne name/nickName
------------------------------------------------------------------------
OPERATOR: NotEqual
  PROPERTY: Name/GivenName
  PROPERTY: Name/NickName

------------------------------------------------------------------------
EXPRESSION: startsWith(displayName, &#39;J&#39;)
------------------------------------------------------------------------
OPERATOR: startswith
  PROPERTY: DisplayName
  VALUE: J

------------------------------------------------------------------------
EXPRESSION: type eq &#39;Employee&#39;
------------------------------------------------------------------------
OPERATOR: Equal
  PROPERTY: Type
  VALUE: Employee

------------------------------------------------------------------------
EXPRESSION: type eq &#39;Guest&#39; and name/Surname eq &#39;Johnson&#39;
------------------------------------------------------------------------
OPERATOR: And
  OPERATOR: Equal
    PROPERTY: Type
    VALUE: Guest
  OPERATOR: Equal
    PROPERTY: Name/Surname
    VALUE: Johnson

------------------------------------------------------------------------
EXPRESSION: type eq &#39;Contractor&#39; and not(endsWith(email, &#39;@mail.com&#39;))
------------------------------------------------------------------------
OPERATOR: And
  OPERATOR: Equal
    PROPERTY: Type
    VALUE: Contractor
  OPERATOR: Not
    OPERATOR: endswith
      PROPERTY: Email
      VALUE: @mail.com

------------------------------------------------------------------------
EXPRESSION: enabled eq false and type in (&#39;Employee&#39;, &#39;Contractor&#39;)
------------------------------------------------------------------------
OPERATOR: And
  OPERATOR: Equal
    PROPERTY: Enabled
    VALUE: False
  OPERATOR: In
    PROPERTY: Type
    VALUE: Employee
    VALUE: Contractor

------------------------------------------------------------------------
EXPRESSION: (enabled eq true and type eq &#39;Employee&#39;) or (enabled eq false and (type eq &#39;Guest&#39; or endsWith(email, &#39;@mail.com&#39;)))
------------------------------------------------------------------------
OPERATOR: Or
  OPERATOR: And
    OPERATOR: Equal
      PROPERTY: Enabled
      VALUE: True
    OPERATOR: Equal
      PROPERTY: Type
      VALUE: Employee
  OPERATOR: And
    OPERATOR: Equal
      PROPERTY: Enabled
      VALUE: False
    OPERATOR: Or
      OPERATOR: Equal
        PROPERTY: Type
        VALUE: Guest
      OPERATOR: endswith
        PROPERTY: Email
        VALUE: @mail.com

------------------------------------------------------------------------
EXPRESSION: phoneNumbers/any(p: p eq &#39;123-456-6789&#39;)
------------------------------------------------------------------------
OPERATOR: Any
  PROPERTY: PhoneNumbers
    OPERATOR: Equal
      PROPERTY: PhoneNumbers
      VALUE: 123-456-6789

------------------------------------------------------------------------
EXPRESSION: socialLogins/any(s: s/name eq &#39;Facebook&#39;)
------------------------------------------------------------------------
OPERATOR: Any
  PROPERTY: SocialLogins
    OPERATOR: Equal
      PROPERTY: SocialLogins/Name
      VALUE: Facebook

------------------------------------------------------------------------
EXPRESSION: socialLogins/any(s: s/name eq &#39;Facebook&#39; or endsWith(s/url, &#39;google.com&#39;))
------------------------------------------------------------------------
OPERATOR: Any
  PROPERTY: SocialLogins
    OPERATOR: Or
      OPERATOR: Equal
        PROPERTY: SocialLogins/Name
        VALUE: Facebook
      OPERATOR: endswith
        PROPERTY: SocialLogins/Url
        VALUE: google.com

------------------------------------------------------------------------
EXPRESSION: sponsor/phoneNumbers/any(p: p eq &#39;123-456-6789&#39;)
------------------------------------------------------------------------
OPERATOR: Any
  PROPERTY: Sponsor/PhoneNumbers
    OPERATOR: Equal
      PROPERTY: Sponsor/PhoneNumbers
      VALUE: 123-456-6789

------------------------------------------------------------------------
EXPRESSION: sponsor/socialLogins/any(s: s/name eq &#39;Facebook&#39;)
------------------------------------------------------------------------
OPERATOR: Any
  PROPERTY: Sponsor/SocialLogins
    OPERATOR: Equal
      PROPERTY: Sponsor/SocialLogins/Name
      VALUE: Facebook
&lt;/pre&gt;
&lt;p&gt;
Enjoy!
&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/2286000392208589341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2024/10/odata-my-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/2286000392208589341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/2286000392208589341'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2024/10/odata-my-data.html' title='OData! my Data!'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-7809930531715201838</id><published>2024-05-01T13:19:00.000-07:00</published><updated>2025-01-27T08:09:15.228-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>Customizing .editorconfig file</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: A few non-default settings in the .editorconfig file that will improve the code.&lt;/div&gt;
Before checking in code updates, I prefer the compiler output (and the Visual Studio Error List tab) to show no errors (obviously) or warnings. In most cases, the warnings are useful (I learned a few programming trick from some), but some (mostly, IntelliSense) warnings are a bit irritating, so I prefer to supress them. To allow my warning supression settings to be shared across the team, I put them in the .editorconfig file, which gets saved in the source control along with the project. The following settings override the defaults:

&lt;pre class=&quot;brush:plain&quot;&gt;# Expression-level preferences
csharp_style_unused_value_expression_statement_preference = unused_local_variable:none

# Primary constructors (mess up XML comment-based docs)
csharp_style_prefer_primary_constructors = false:suggestion

# Indentation preferences
csharp_indent_labels = flush_left

# IDE0058: Expression value is never used
dotnet_diagnostic.IDE0058.severity = silent
&lt;/pre&gt;&lt;pre class=&quot;brush:plain&quot;&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/7809930531715201838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2024/05/customizing-editorconfig-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/7809930531715201838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/7809930531715201838'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2024/05/customizing-editorconfig-file.html' title='Customizing .editorconfig file'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-1687700222808171706</id><published>2024-02-11T00:02:00.000-08:00</published><updated>2025-02-04T14:28:00.827-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>Unit testing cheat sheet (xUnit, FakeItEasy, FluentAssertions)</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: Samples of C# code handling common unit testing tasks using xUnit, FakeItEasy, and FluentAssertions frameworks.&lt;/div&gt;
&lt;!--CSS styles: .update .sidenote .quote .code, .tip .codeblock--&gt;
&lt;p&gt;
Here are some tips, samples, and suggestions for implementing common unit testing tasks.
&lt;/p&gt;

&lt;p&gt;
Unit test &lt;b&gt;without parameters&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;[Fact]
void SampleClassName_MethodToBeTested_DescriptiveTestTitle()
{
    // ARRANGE
    // ACT
    // ASSERT
}
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
Unit test &lt;b&gt;with parameters&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;[Theory]
[InlineData(&quot;abc&quot;, 1, true)]
[InlineData(&quot;xyz&quot;, 2, false)]
void SampleClassName_MethodToBeTested_DescriptiveTestTitle
(
    string? param1,
    int? param2,
    bool? param3
)
{
    // ARRANGE
    // ACT
    // ASSERT
}
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
Unit tests with &lt;b&gt;DateTime&lt;/b&gt; or &lt;b&gt;DateTimeOffset parameters&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;[Theory]
[InlineData(&quot;2024-06-05 23:45:10.456&quot;, &quot;3/28/2007 12:13:50 PM -07:00&quot;)]
void SampleClassName_MethodToBeTested_DescriptiveTestTitle
(
    string? paramDateTime,
    string? paramDateTimeOffset
)
{
    DateTime dateTime = DateTime.Parse(paramDateTime);
    DateTime dateTimeOffset = DateTimeOffset.Parse(paramDateTimeOffset);
    ...
}
&lt;/pre&gt;
&lt;p&gt;
Unit tests with &lt;b&gt;complex parameters&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;[Theory]
[InlineData(&quot;{\&quot;id\&quot;:123,\&quot;email\&quot;:\&quot;joe.doe@somemail.com\&quot;,\&quot;enabled\&quot;:true}&quot;)]
void SampleClassName_MethodToBeTested_DescriptiveTestTitle
(
    string? paramUser
)
{
	// This example uses Newtonsoft.Json, but the same can be done
    // using the default framework&#39;s JSON serializer.
    User? user = JsonConvert.DeserializeObject&amp;lt;User?&amp;gt;(paramUser);
    
    // NOTE: Yes, I know about MemberData, but this seems more straightforward IMHO.
    ...
}
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
A fake object with the &lt;b&gt;default constructor&lt;/b&gt; (can use an interface or a class):
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;ISample fakeISample = A.Fake&amp;lt;ISample&amp;gt;();
Sample fakeSample = A.Fake&amp;lt;Sample&amp;gt;();
ISample&amp;lt;AnotherSample&amp;gt; fakeGenericSample = A.Fake&amp;lt;ISample&amp;lt;AnotherSample&amp;gt;&amp;gt;();
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
A fake object with a &lt;b&gt;parametrized constructor&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;Sample fakeSample = A.Fake&amp;lt;Sample&amp;gt;(x =&amp;gt; x.WithArgumentsForConstructor(new object[] { &quot;param1&quot;, 2, true }));
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
A fake object returns specific &lt;b&gt;property values&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;User user = A.Fake&amp;lt;User&amp;gt;();

A.CallTo(() =&amp;gt; user.Id).Returns(12345);
A.CallTo(() =&amp;gt; user.Email).Returns(&quot;joe.doe@somemail.com&quot;);
A.CallTo(() =&amp;gt; user.Enabled).Returns(true);
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
A fake object returns a specific &lt;b&gt;method result&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Data service is used by user service to get user from database
// and we are faking it.
IDataService dataService = A.Fake&amp;lt;IDataService&amp;gt;();

// Define properties of the user object to be retuned.
int id = 12345;

// Let&#39;s assume that the method of the UserService class being tested 
// internally calls the GetUserById method of the IDataService object
// (we&#39;re using a fake here to simulate a valid return).
A.CallTo(() =&amp;gt; dataService.GetUserById(id)).Returns(new User(id));

// UserService is the class we&#39;re testing (system under test or SUT).
UserService userService = new UserService(dataService);

// We are testing the Enable method and expect it to be successful.
userService.Enable(id);
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
Use &lt;b&gt;wildcard&lt;/b&gt; to trigger a fake method result for any parameter value:&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// A&amp;lt;T&amp;gt;._ is a shortcut for a wildcard.
A.CallTo(() =&amp;gt; dataService.GetUserById(A&amp;lt;string&amp;gt;._)).Returns(existingUser);
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
A fake object returns a specific value from an &lt;b&gt;async method&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;IDataService dataService = A.Fake&amp;lt;IDataService&amp;gt;();

// Define properties of the user object to be retuned.
int id = 12345;

// Assume that GetUserById is an async method returning Task&amp;lt;User&amp;gt;.
A.CallTo(() =&amp;gt; dataService.GetUserById(A&amp;lt;string&amp;gt;._)).Returns(Task.FromResult(new User(id)));
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
A fake object returns a specific value from a &lt;b&gt;generic method&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Data service is used by user service to get user from database
// and we are faking it.
IDataService dataService = A.Fake&amp;lt;IDataService&amp;gt;();

// Define properties of the user object to be retuned.
int id = 12345;

// Data service has a generic method GetUser that we want to fake.
A.CallTo(dataService).Where(call =&amp;gt; call.Method.Name == &quot;GetUser&quot;)
   .WithReturnType&amp;lt;User&amp;gt;()
   .Returns(new User(id));
   
// UserService is the class we&#39;re testing (system under test or SUT).
UserService userService = new UserService(dataService);
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Force a fake method to &lt;b&gt;throw an exception&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;A.CallTo(() =&amp;gt; dataService.GetUserById(A&amp;lt;string&amp;gt;._)).Throws&amp;lt;Exception&amp;gt;();
// Equivalent to:
A.CallTo(() =&amp;gt; dataService.GetUserById(A&amp;lt;string&amp;gt;._)).Throws(new Exception());
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Expect a method to throw an &lt;b&gt;exception of the exact type&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;Assert.Throws&amp;lt;InvalidInputException&amp;gt;(() =&amp;gt; userService.UpdateUser(user));
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Expect a method to throw &lt;b&gt;any exception derived&lt;/b&gt; from the specific type:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;Assert.ThrowsAny&amp;lt;InvalidInputException&amp;gt;(() =&amp;gt; userService.UpdateUser(user));
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
Assign expected exception to a &lt;b&gt;variable&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;Exception ex = Assert.Throws&amp;lt;InvalidInputException&amp;gt;(() =&amp;gt; userService.UpdateUser(user));
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
Set up a fake &lt;b&gt;SendGrid&lt;/b&gt; call:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;ISendGridClient _sendGridClient = A.Fake&amp;lt;ISendGridClient&amp;gt;();

System.Net.Http.HttpResponseMessage httpResponse = new();
System.Net.Http.HttpContent         httpContent  = httpResponse.Content;
System.Net.Http.HttpResponseHeaders httpHeaders  = httpResponse.Headers;

httpHeaders.Add(&quot;X-Message-Id&quot;, &quot;12345&quot;);

SendGrid.Response sendGridResponse = 
    A.Fake&amp;lt;SendGrid.Response&amp;gt;(x =&amp;gt; x
        .WithArgumentsForConstructor(new object[] { httpStatusCode, httpContent, httpHeaders }));

A.CallTo(() =&amp;lt; _sendGridClient
    .SendEmailAsync(A&amp;lt;SendGridMessage&amp;gt;._, A&amp;lt;CancellationToken&amp;gt;._))
    .Returns(Task.FromResult(sendGridResponse));
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
Mock &lt;b&gt;HttpContext&lt;/b&gt; for a controller class under test:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;System.Net.Http.HttpRequest httpRequest = A.Fake&amp;lt;HttpRequest&amp;gt;();
System.Net.Http.HttpContext httpContext= A.Fake&amp;lt;HttpContext&amp;gt;();

A.CallTo(() =&amp;gt; httpContext.Request).Returns(httpRequest);

// Set up the request properies that you need.
A.CallTo(() =&amp;gt; httpRequest.Scheme).Returns(&quot;https&quot;);
A.CallTo(() =&amp;gt; httpRequest.Host).Returns(new HostString(&quot;localhost:8888&quot;));
A.CallTo(() =&amp;gt; httpRequest.PathBase).Returns(new PathString(&quot;/api/v1&quot;));
A.CallTo(() =&amp;gt; httpRequest.Path).Returns(new PathString(&quot;sample&quot;));
A.CallTo(() =&amp;gt; httpRequest.QueryString).Returns(new QueryString(&quot;?a=b&amp;amp;c=d&quot;));
 
// SampleController is derived from the ControllerBase class.
SampleController controller = new(...);

controller.ControllerContext =  new ControllerContext()
{
	HttpContext = httpContext
};
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Controller method &lt;b&gt;GET&lt;/b&gt; returns HTTP status code &lt;b&gt;200 OK&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Assume that all dependencies have been set.
ActionResult&amp;lt;User&amp;gt; actionResult = controller.GetUser(&quot;1234567890&quot;);

// First, test action result.
actionResult.Should().NotBeNull();
actionResult.Result.Should().NotBeNull();
actionResult.Result.Should().BeAssignableTo&amp;lt;OkObjectResult&amp;gt;();

// Next, test response specific result.
OkObjectResult? result = actionResult.Result as OkObjectResult;
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Controller method &lt;b&gt;POST&lt;/b&gt; returns HTTP status code &lt;b&gt;201 Created&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Assume that all dependencies have been set.
ActionResult&amp;lt;User&amp;gt; actionResult = controller.CreateUser(user);

// First, test action result.
actionResult.Should().NotBeNull();
actionResult.Result.Should().NotBeNull();
actionResult.Result.Should().BeAssignableTo&amp;lt;CreatedResult&amp;gt;();

// Next, test response specific result.
CreatedResult? result = actionResult.Result as CreatedResult;
result.Should().NotBeNull();

// Successful POST must return the URL of the GET method 
// ending with the ID of the newly created object in the
// Location header.
result?.Location.Should().NotBeNull();
result?.Location.Should().EndWith(id);
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Controller method &lt;b&gt;PATCH&lt;/b&gt; returns HTTP status code &lt;b&gt;204 No Content&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Assume that all dependencies have been set.
ActionResult actionResult = controller.UpdateUser(user);

// First, test action result.
actionResult.Should().NotBeNull();
actionResult.BeAssignableTo&amp;lt;NoContentResult&amp;gt;();
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Controller method &lt;b&gt;POST&lt;/b&gt; returns HTTP status code &lt;b&gt;400 Bad Request&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Assume that all dependencies have been set.
ActionResult&amp;lt;User&amp;gt; actionResult = controller.CreateUser(user);

// First, test action result.
actionResult.Should().NotBeNull();
actionResult.Result.Should().NotBeNull();
actionResult.Result.Should().BeAssignableTo&amp;lt;BadRequestObjectResult&amp;gt;();

// Next, test response specific result.
BadRequestObjectResult? result = actionResult.Result as BadRequestObjectResult;
result.Should().NotBeNull();

// Finally, check the error object to be returned to consumer.
// This example shows a custom problem details object ErroDetails,
// which may be different in your case.
result?.Value.Should().NotBeNull();
result?.Value.Should().BeAssignableTo&amp;lt;ErrorDetails&amp;gt;();

if (result?.Value is ErrorDetails errorDetails)
{
    // ServiceCodeType is a custom enum value returned via the error object&#39;s 
    // ServiceCode property (this check may be different in your case).
    errorDetails.ServiceCode.Should().NotBeNull();  
    errorDetails.ServiceCode.Should().Be(ServiceCodeType.BadRequest.ToString());
}
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Controller method &lt;b&gt;POST&lt;/b&gt; returns HTTP status code &lt;b&gt;401 Unauthorized&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Assume that all dependencies have been set.
ActionResult&amp;lt;User&amp;gt; actionResult = controller.CreateUser(user);

// First, test action result.
actionResult.Should().NotBeNull();
actionResult.Result.Should().NotBeNull();
actionResult.Result.Should().BeAssignableTo&amp;lt;UnauthorizedObjectResult&amp;gt;();

// Next, test response specific result.
UnauthorizedObjectResult? result = actionResult.Result as UnauthorizedObjectResult;
result.Should().NotBeNull();

// See example handling 400 Bad Request.
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Controller method &lt;b&gt;PATCH&lt;/b&gt; returns HTTP status code &lt;b&gt;404 Not Found&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Assume that all dependencies have been set.
ActionResult&amp;lt;User&amp;gt; actionResult = controller.UpdateUser(user);

// First, test action result.
actionResult.Should().NotBeNull();
actionResult.Result.Should().NotBeNull();
actionResult.Result.Should().BeAssignableTo&amp;lt;NotFoundObjectResult&amp;gt;();

// Next, test response specific result.
NotFoundObjectResult? result = actionResult.Result as NotFoundObjectResult;
result.Should().NotBeNull();

// See example handling 400 Bad Request.
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Controller method &lt;b&gt;POST&lt;/b&gt; returns HTTP status code &lt;b&gt;409 Conflict&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Assume that all dependencies have been set.
ActionResult&amp;lt;User&amp;gt; actionResult = controller.CreateUser(user);

// First, test action result.
actionResult.Should().NotBeNull();
actionResult.Result.Should().NotBeNull();
actionResult.Result.Should().BeAssignableTo&amp;lt;ConflictObjectResult&amp;gt;();

// Next, test response specific result.
ConflictObjectResult? result = actionResult.Result as ConflictObjectResult;
result.Should().NotBeNull();

// See example handling 400 Bad Request.
&lt;/pre&gt;
&lt;br /&gt;

&lt;p&gt;
Mock &lt;b&gt;AppSettings&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// The following dictionary mimics appsettings.json file.
// Notice how array values must be defined using indexes.
Dictionary&amp;lt;string,string?&amp;gt; configSettings = new()
{
    {&quot;ServiceA:ValueSettingX&quot;, &quot;ValueX&quot;},
    {&quot;ServiceA:ValueSettingY&quot;, &quot;ValueY&quot;},
    {&quot;ServiceA:ValueSettingZ&quot;, &quot;ValueZ&quot;},
    {&quot;ServiceA:ArraySetting1:0&quot;, &quot;Value0&quot;},
    {&quot;ServiceA:ArraySetting1:1&quot;, &quot;Value1&quot;},
    {&quot;ServiceA:ArraySetting1:2&quot;, &quot;Value2&quot;},
}

IConfiguration config = new ConfigurationBuilder()
    .AddInMemoryCollection(configSettings)
    .Build();
&lt;/pre&gt;
&lt;br /&gt;
&lt;p&gt;
Common &lt;b&gt;FluentAssertions&lt;/b&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;// Value should not be null.
value.Should().NotBeNull();

// Value should be of specific type.
value.Should().BeOfType&amp;lt;User&amp;gt;();

// Value should be equal to.
value.Should().Be(1);
value.Should().Be(true);
value.Should().Be(&quot;expected value&quot;);

// Value should contain (comparison is case sensitive).
value.Should().Contain(&quot;value&quot;);

// Value should contain any one of the specified values (comparison is case sensitive):
value.Should().ContainAny(&quot;value1&quot;, &quot;value2&quot;);

// Value should contain all of the specified values (comparison is case sensitive):
value.Should().ContainAll(&quot;value1&quot;, &quot;value2&quot;);

// String value should be equal to (comparison is case insensitive).
value.Should().BeEquivalentTo(&quot;Value&quot;);
&lt;/pre&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/1687700222808171706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2024/02/unit-testing-cheat-sheet-xunit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/1687700222808171706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/1687700222808171706'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2024/02/unit-testing-cheat-sheet-xunit.html' title='Unit testing cheat sheet (xUnit, FakeItEasy, FluentAssertions)'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-8779893866327474670</id><published>2023-02-01T17:43:00.005-08:00</published><updated>2023-02-01T21:20:47.418-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="ui"/><category scheme="http://www.blogger.com/atom/ns#" term="web tools"/><title type='text'>How to edit a web page layout in the browser</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to edit a web page in a browser.&lt;/div&gt;
&lt;!--CSS styles: .update .sidenote .quote .code, .tip .codeblock--&gt;
&lt;p&gt;Here is something my 10-year-old showed me that I used at work today. Since I do not do this often, it&#39;s mostly a note to self (in case I forget). If you need to play with a web page layout in a browser (I, for example, needed to add some new lines to a few messages on the page to see what makes them easier to read). It is very simple (the instructions assume you are using Google Chrome, but I suspect you can do the same in other browsers).&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Right click anywehere on the web page and select the &lt;b&gt;Inspect&lt;/b&gt; option from the context menu.&lt;/li&gt;
  &lt;li&gt;In the Developer Tools&#39; window, switch to the &lt;b&gt;Console&lt;/b&gt; tab.&lt;/li&gt;
  &lt;li&gt;At the prompt, type in &lt;span class=&quot;code&quot;&gt;document.body.contentEditable=true&lt;/span&gt; and press &lt;b&gt;Enter&lt;/b&gt;.&lt;/li&gt;
  &lt;li&gt;Make your changes on the page (you can cadd, change and delete text, and do other things).&lt;/li&gt;
  &lt;li&gt;When done with your changes, at the prompt, type in &lt;span class=&quot;code&quot;&gt;document.body.contentEditable=false&lt;/span&gt; and press &lt;b&gt;Enter&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
Happy programming.</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/8779893866327474670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2023/02/how-to-edit-web-page-layout-in-browser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/8779893866327474670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/8779893866327474670'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2023/02/how-to-edit-web-page-layout-in-browser.html' title='How to edit a web page layout in the browser'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-2372370242430801774</id><published>2022-06-27T12:02:00.007-07:00</published><updated>2023-01-07T23:17:43.215-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>Tell Git to bypass proxy for internal addresses</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to make Git bypass proxy settings when connecting to internal repositories.&lt;/div&gt;
&lt;p&gt;
A common question enterprise application developers ask that generally gets unsatisfactory answers is: how do you configure Git to use the corporate proxy settings to connect to the external repositories (such as &lt;a href=&quot;https://github.com&quot; target=&quot;_blank&quot;&gt;Github&lt;/a&gt;) while &lt;a href=&quot;https://www.google.com/search?q=git+bypass+proxy+internal&quot; target=&quot;_blank&quot;&gt;bypassing the proxy when connecting to internal repositories&lt;/a&gt; (such as corporate Gitlab instances)? A typical answer would recommend &lt;a href=&quot;https://stackoverflow.com/questions/16538372/git-proxy-bypass#answer-16612442&quot; target=&quot;_blank&quot;&gt;configuring proxy settings on each repo&lt;/a&gt;. The problem with this approach is that it assumes that you already have a local repo, but how do you access a repo if you want to perform the initial clone other than changing global proxy settings?
&lt;/p&gt;
&lt;p&gt;
One option would be to specify proxy in the &lt;span class=&quot;code&quot;&gt;git clone&lt;/span&gt; command. For example, to bypass the global proxy settings, run it &lt;a href=&quot;https://stackoverflow.com/questions/41439747/how-to-bypass-the-http-proxy-that-i-have-set-using-git-config#answer-41440395&quot; target=&quot;_blank&quot;&gt;like this&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class=&quot;brush:text&quot;&gt;git -c http.proxy= clone https://internalgithub.com/foo/bar.git
&lt;/pre&gt;
&lt;p&gt;
But there is an even better solution: you can specify proxy settings on a per-domain basis. The following instructions assume that you are using a Windows system (I suspect that Mac or Linux instructions would be slightly different, but the idea must be the same). Simply, open the &lt;span class=&quot;code&quot;&gt;.gitconfig&lt;/span&gt; file located in the root of your user profile folder (such as &lt;span class=&quot;code&quot;&gt;c:\Windows\Users\&lt;i&gt;yourusername&lt;/i&gt;&lt;/span&gt;), and add lines similar to the following:
&lt;/p&gt;
&lt;pre class=&quot;brush:text&quot;&gt;[http]
	proxy = http://your.corp.proxy.server.com:XXX
	sslBackend = schannel
[https]
	proxy = http://your.corp.proxy.server.com:YYY
[http &quot;https://your.company.repo.host1.com/&quot;]
	proxy = &quot;&quot;
	sslVerify = false
[http &quot;https://your.company.repo.host2.com/&quot;]
	proxy = &quot;&quot;
	sslVerify = false
[credential &quot;https://your.company.repo.host1.com/&quot;]
	provider = generic
[credential &quot;https://your.company.repo.host2.com/&quot;]
	provider = generic
&lt;/pre&gt;
&lt;p&gt;
Once you save the &lt;span class=&quot;code&quot;&gt;.gitconfig&lt;/span&gt; file, you will need to log off and log on to the system for the changes to take effect.
&lt;/p&gt;
&lt;p&gt;
Notice that your global proxy settings are defined under both the &lt;span class=&quot;code&quot;&gt;http&lt;/span&gt; and &lt;span class=&quot;code&quot;&gt;https&lt;/span&gt; sections, while domain-specific sections only use &lt;span class=&quot;code&quot;&gt;http&lt;/span&gt; (when I added the &lt;span class=&quot;code&quot;&gt;https&lt;/span&gt; sections for domain-specific URLs, it stopped working). Also, the global proxy definition assumes that the proxy server does not require authentication (if it does, &lt;a href=&quot;https://stackoverflow.com/questions/783811/getting-git-to-work-with-a-proxy-server-fails-with-request-timed-out#answer-19213999&quot; target=&quot;_blank&quot;&gt;adjust the proxy definition appropriately&lt;/a&gt;).
&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/2372370242430801774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2022/06/tell-git-to-bypass-proxy-for-internal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/2372370242430801774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/2372370242430801774'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2022/06/tell-git-to-bypass-proxy-for-internal.html' title='Tell Git to bypass proxy for internal addresses'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-6997141707702191723</id><published>2022-05-05T14:00:00.008-07:00</published><updated>2023-02-23T09:34:15.126-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>How to stop and start tracking file changes for Git</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: Git commands that let you stop and start tracking project file chages.&lt;/div&gt;
&lt;p&gt;
During application development, there may be situations when you want to make a change in a file (e.g. modify an application setting) without accidentally committing this change to source control.
There may be better ways to do this, but one option is to tell Git to stop tracking the file before you make the the change that you do not commit to the repo. Say, there is an &lt;i&gt;appsettings.Developement.json&lt;/i&gt; file that you want to stop and start tracking. This is how I do it.
&lt;/p&gt;
&lt;p&gt;
Create two files &lt;i&gt;stop-tracking-appsettings.bat&lt;/i&gt; and &lt;i&gt;start-tracking-appsettings.bat&lt;/i&gt; files in the solution folder (PROJECT_FOLDER must be replace by the name of the project directory under the solution folder).
&lt;/p&gt;
&lt;p&gt;
stop-tracking-appsettings.bat
&lt;/p&gt;
&lt;pre class=&quot;brush:text&quot;&gt;
@echo off
git update-index --skip-worktree PROJECT_FOLDER\appsettings.Development.json
&lt;/pre&gt;
&lt;p&gt;
start-tracking-appsettings.bat
&lt;/p&gt;
&lt;pre class=&quot;brush:text&quot;&gt;
@echo off
git update-index --no-skip-worktree PROJECT_FOLDER\appsettings.Development.json
&lt;/pre&gt;
&lt;p&gt;
Now you can either run these files from a console whenever you want to stop and start tracking file changes. Even better, in Visual Studio, you can create a custom tool menu option (e.g. &lt;i&gt;Run batch file&lt;/i&gt;) that you can invoke by right clicking the file in the Solution Explorer and selectin the context menu option (see &lt;a href=&quot;https://stackoverflow.com/questions/5605885/how-to-run-a-bat-from-inside-the-ide#answer-5606276&quot; target=&quot;_blank&quot; title=&quot;How to run a .bat from inside the IDE&quot;&gt;this Stack Overflow answer explaining how to set it up&lt;/a&gt;).
&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/6997141707702191723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2022/05/how-to-stop-and-start-tracking-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/6997141707702191723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/6997141707702191723'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2022/05/how-to-stop-and-start-tracking-file.html' title='How to stop and start tracking file changes for Git'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-4352954705606254517</id><published>2021-10-21T12:01:00.167-07:00</published><updated>2022-07-16T13:04:47.151-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="certification"/><title type='text'>Resources that helped me pass the CISSP exam</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: List of helpful resources for CISSP exam.&lt;/div&gt;

&lt;p&gt;After four months of intense study (and about a year since I started) &lt;a href=&quot;http://alekdavis.blogspot.com/2021/10/how-i-passed-cissp-exam.html&quot;&gt;I passed the CISSP&lt;/a&gt; exam. Here is the list of resources I found useful (and some that weren&#39;t).&lt;/p&gt;

&lt;p&gt;BOOTCAMPS&lt;/p&gt;

&lt;p&gt;Feedback from my colleagues who went to bootcamps varies but the general consensus is that with some exceptions they are not really worth the cost. There is only a handful of trainers who are exceptional and you can find them online for cheaper than $2K+. Yes, most bootcamps can give you a voucher to repeat an exam if you do not pass, but it&#39;s still cheaper to pay for two exams than for one bootcamp.&lt;/p&gt;

&lt;p&gt;The digital versions of the bootcamps I used and found helpful include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://thorteaches.com/udemy/&quot; target=&quot;_blank&quot;&gt;Thor&#39;s CISSP Udemy course&lt;/a&gt;. I have a Udemy subscription through work, so I watched this course 3 times: first, in the very beginning of my studies (and did not really like it), then after the 2021 update, and finally on the week of the exam at 2x speed (now, after watching it three times, I can say, it&#39;s excellent).&lt;/li&gt;
&lt;li&gt;I lost the link but there was an old audio version of &lt;a href=&quot;https://www.cybrary.it/course/cissp/&quot; target=&quot;_blank&quot;&gt;Kelly Handerhan&#39;s Cybrary course&lt;/a&gt; posted on &lt;a href=&quot;https://www.reddit.com/r/cissp/&quot; target=&quot;_blank&quot;&gt;Reddit&lt;/a&gt;. I watched a couple of video episodes when they were free at Cybrary, but mostly listened to the audio while driving. Overall, I think I listened to the whole series 2-3 times (at x1.7 speed). Kelly is one of (if not) the best instructors out there. The audio version is a bit outdated, but the fundamentals are still there. Highly recommend. Also, make sure you watch Kelly&#39;s &lt;a href=&quot;https://www.youtube.com/watch?v=v2Y6Zog8h2A&quot; target=&quot;_blank&quot;&gt;Why You Will Pass the CISSP&lt;/a&gt; [exam] video. (UPDATE: Found links to the audios &lt;a href=&quot;https://www.reddit.com/r/cissp/comments/9ujscm/cybrary_mp3s/&quot; target=&quot;_blank&quot; title=&quot;reddit/cissp: Cybrary MP3s&quot;&gt;here&lt;/a&gt;.)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/c/DestinationCertification/videos&quot; target=&quot;_blank&quot;&gt;Destination Certification&#39;s Mind Map series&lt;/a&gt;. Excellent coverage. I would recommend also watching the supplemental videos, like the &lt;a href=&quot;https://www.youtube.com/watch?v=5N242XcKAsM&quot; target=&quot;_blank&quot;&gt;one that explains how Kerberos works&lt;/a&gt; and there are others.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;BOOKS&lt;/p&gt;

&lt;p&gt;I first planned to use O&#39;Reilly Digital Subscription (through work), but the digital versions did not work for me, so I switched to paperbacks (for casual reading, I prefer digital).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.amazon.com/Certified-Information-Security-Professional-Official/dp/1119475937&quot; target=&quot;_blank&quot;&gt;(ISC)2 CISSP Certified Information Systems Security Professional Official Study Guide &amp; Practice Tests Bundle&lt;/a&gt;. Only used as a reference. I started reading it but after two chapters realized it was too much for my average brain. I haven&#39;t used the practice tests because I bough the app (see below) and it covered the same questions.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.amazon.com/CISSP-Dummies-Computer-Tech/dp/111950581X&quot; target=&quot;_blank&quot;&gt;CISSP for Dummies&lt;/a&gt;. Read a few chapters. It&#39;s OK.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.amazon.com/gp/product/0128112484&quot; target=&quot;_blank&quot;&gt;Eleventh Hour CISSP: Study Guide Study Guide&lt;/a&gt;. Read once cover to cover. Highly recommend.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.amazon.com/gp/product/1735085197&quot; target=&quot;_blank&quot;&gt;How To Think Like A Manager for the CISSP Exam&lt;/a&gt;. Good book to help you get into the right mindset.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;PRACTICE TESTS&lt;/p&gt;

&lt;p&gt;When practicing tests, the point is not to remember, but to try to understand why an answer is right or wrong. Yes you need to memorize a few things, but generally, memorization will not take you too far.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://boson.com/certification/cissp&quot; target=&quot;_blank&quot;&gt;Boson Practice Exams&lt;/a&gt;. Must be used on a desktop (Windows, not sure it the environment works on a Mac). Very good overall. Explains why the correct answer is correct and why each wrong answer is wrong. I think it expires after 6 months once you start using it, so keep it in mind. I also tried a couple of practical labs (not the tests), but did not find them particularly useful. If you have no practical experience with the concepts (like hashing, etc), they may offer some value, though.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I&#39;m using Android, but assume Apple store has the same apps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://play.google.com/store/apps/details?id=com.learnzapp.wileycissptests&quot; target=&quot;_blank&quot;&gt;(ISC)² Official CISSP Tests&lt;/a&gt;. Good app with some limitations. A few questions had wrong answers. There is no way to mark a question when you are taking a practice test. Once you are done with the practice test and exit the app, your results are gone.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://play.google.com/store/apps/details?id=com.abc.cissptest&quot; target=&quot;_blank&quot;&gt;CISSP Practice Tests&lt;/a&gt;. Use the free version. Found a few errors, but overall good.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I used a number of other free apps but as I&#39;m checking now, they are either discontinued, or were not very good.&lt;/p&gt;

&lt;p&gt;UTILITIES&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.chegg.com/flashcards/my-flashcards&quot; target=&quot;_blank&quot;&gt;Chegg Prep&lt;/a&gt;. Used it for building flashcards for the topics I needed to review. Terrible app, but it&#39;s the one I started to use and it was too late to switch. It can get you by.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;VIDEOS&lt;/p&gt;

&lt;p&gt;For every topic that I struggled with, I just searched the Internet for the best resource (in most cases, video) to cover it. There are too many to list, but I want to mention this one because it helped me a lot to learn about networking (one of my weak areas):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCr0Ze4SR3MHXAgz1TvRYL7Q&quot; target=&quot;_blank&quot;&gt;Sunny Classroom&lt;/a&gt;. I just love this guy. :-)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;COMMUNITIES&lt;/p&gt;

&lt;p&gt;Spent a lot of time here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/cissp/&quot; target=&quot;_blank&quot;&gt;r/cissp&lt;/a&gt;. Reddit CISSP community where people share a lot of useful resources.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.facebook.com/groups/1525346961013038/&quot; target=&quot;_blank&quot;&gt;CISSP Exam Preparation - Study Notes and Theory&lt;/a&gt;. Started by Luke Ahmed. I learned a lot from following this group and participating in the discussions. Very good questions.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.facebook.com/groups/ThorTeaches/&quot; target=&quot;_blank&quot;&gt;CISSP, CISM and PMP study group by ThorTeaches.com&lt;/a&gt;. Thor&#39;s group. The posted practice questions are not as tricky as Luke&#39;s questions, but still, a good resource to follow.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://twitter.com/Adam_ITProTV&quot; target=&quot;_blank&quot;&gt;Adam Gordon&#39;s CISSP Q of the D&lt;/a&gt;. Adam posts questions on various CISSP domains daily.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SEE ALSO&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://alekdavis.blogspot.com/2021/10/how-i-passed-cissp-exam.html&quot;&gt;How I passed the CISSP exam&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Best of luck to all learners. You can do it!&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/4352954705606254517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2021/10/resources-that-helped-me-pass-cissp.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/4352954705606254517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/4352954705606254517'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2021/10/resources-that-helped-me-pass-cissp.html' title='Resources that helped me pass the CISSP exam'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-5324611368190088521</id><published>2021-10-21T11:58:00.014-07:00</published><updated>2022-06-23T14:37:24.983-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="certification"/><title type='text'>How I passed the CISSP exam</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How I studied and passed the CISSP exam.&lt;/div&gt;


&lt;p&gt;On April 17, 2021, I passed the CISSP exam. The exam seemed easier than I had expected it to be, but the road to it was long and hard. I studied intensively for almost a year and practically had no life for four months before the exam. After passing the exam, I &lt;a href=&quot;https://www.facebook.com/groups/1525346961013038/permalink/2818016475079407/&quot; target=&quot;_blank&quot;&gt;shared some insights&lt;/a&gt; on the &lt;a href=&quot;https://www.facebook.com/groups/1525346961013038/&quot; target=&quot;_blank&quot;&gt;CISSP Exam Preparation - Study Notes and Theory&lt;/a&gt; group&#39;s Facebook page. This is a slightly redacted copy of that post in case something happens to Facebook. If you are planning to take the exam, check it out along with my other &lt;a href=&quot;https://alekdavis.blogspot.com/2021/10/resources-that-helped-me-pass-cissp.html&quot;&gt;post summirizing the list of resources&lt;/a&gt; that I found helpful.&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuHnNSS2I-iCkvdjQIzjeGmgxZs5RuGWHqN3MQRNuOkMwBKZhHAzcdP1PJLP3PFP9BO_vVaqH4EdSnnp8LJdOKkv4vk8OreBOBGEGPwJjNUxoWXQWKMVNb-1yyYgrzhVws-tz0duemhc8/s1888/cissp.jpg&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;600&quot; data-original-height=&quot;1888&quot; data-original-width=&quot;1448&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuHnNSS2I-iCkvdjQIzjeGmgxZs5RuGWHqN3MQRNuOkMwBKZhHAzcdP1PJLP3PFP9BO_vVaqH4EdSnnp8LJdOKkv4vk8OreBOBGEGPwJjNUxoWXQWKMVNb-1yyYgrzhVws-tz0duemhc8/s600/cissp.jpg&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;INTRO&lt;/p&gt;
&lt;p&gt;I took the exam today [April 17, 2021] for the first time and was done after 100 questions. Having not taken any exams since my college days (20 years ago) and understanding that there are still many areas where I was not fluent, I was about 50% certain I would not pass (actually, considered rescheduling a few times), so it was short of a miracle. Many thanks to &lt;a href=&quot;https://www.linkedin.com/in/luke-ahmed-446601133&quot; target=&quot;_blank&quot;&gt;Luke [Ahmed]&lt;/a&gt; and &lt;a href=&quot;https://www.facebook.com/groups/1525346961013038/&quot; target=&quot;_blank&quot;&gt;this [Facebook] group&lt;/a&gt; for helping me get ready. It was invaluable. Best of luck to everyone who is going to try it again. Here are some thoughts that may help others.&lt;/p&gt;

&lt;p&gt;THE EXAM&lt;/p&gt;
&lt;p&gt;Frankly, it was not as hard as I had expected it to be after hearing horror stories. Maybe I got lucky and should just praise God. Or maybe after all the training I had done I was finally in the right mindset. Or maybe both. Anyway, as people say, the questions were indeed not like the questions in the prep tests, but not necessarily in a worse way. I have seen a lot more difficult questions when using Boson and prep apps. I think I had five or so questions that I did not get at all and just picked the answers by gut feeling. I was not sure about a dozen or so questions were, but mostly I felt pretty good. Since they don&#39;t give you the answers, it&#39;s hard to say what I did right and what I did wrong, but for a few, the answers seemed more revealing than the questions. I was surprised that all abbreviations were spelled out (I thought only ambiguous abbreviations would be spelled out, so could&#39;ve saved time not  learning them and not freaking out about not being able to remember them all). Didn&#39;t have any questions that would require calculations or using the pen and paper. Yes, there were questions about some basic laws, regulations, and frameworks but they were all in the context of a described scenario. Did not have to do crypto much, but a few questions required understanding of the basic concepts and algorithm names (but nothing like &quot;how many rounds and block sizes RC6 supports&quot;). Overall, with a couple of exceptions, questions made sense.&lt;/p&gt;

&lt;p&gt;THE DAY OF THE EXAM&lt;/p&gt;
&lt;p&gt;Took a day off work. I scheduled the exam at 3:30 PM, but should&#39;ve scheduled it earlier to get it over sooner. Watched Kelly Handerhan&#39;s &quot;&lt;a href=&quot;https://www.youtube.com/watch?v=v2Y6Zog8h2A&quot; target=&quot;_blank&quot;&gt;Why you WILL pass the CISSP&lt;/a&gt;&quot; video to set me in the right mood.&lt;/p&gt;

&lt;p&gt;THE WEEK OF THE EXAM&lt;p&gt;
&lt;p&gt;Took Monday and Tuesday off to re-watch Thor Pedersen&#39;s &lt;a href=&quot;https://www.udemy.com/topic/cissp/&quot; target=&quot;_blank&quot;&gt;UDEMY videos&lt;/a&gt; (for the third time) at 2x speed (we have the Udemy subscription at work). Reviewed my notes on Wednesday after work. Watched a couple of videos on Thursday and glanced over a few notes covering areas that I still did not get. Came to peace understanding that there were still some topics that I did not know very well.&lt;/p&gt;

&lt;p&gt;FOUR MONTHS BEFORE THE EXAM&lt;/p&gt;
&lt;p&gt;Practically, had no personal life. Spent most evenings and weekends studying. Read Luke Ahmed&#39;s &quot;&lt;a href=&quot;https://www.amazon.com/Think-Like-Manager-CISSP-Exam/dp/1735085197&quot; target=&quot;_blank&quot;&gt;How to Think Like a Manager&lt;/a&gt;&quot; book. Read the &quot;&lt;a href=&quot;https://www.amazon.com/Eleventh-Hour-CISSP%C2%AE-Study-Guide/dp/0128112484&quot; target=&quot;_blank&quot;&gt;11th Hour CISSP&lt;/a&gt;&quot; book. Started following &lt;a href=&quot;https://www.facebook.com/groups/1525346961013038/&quot; target=&quot;_blank&quot;&gt;CISSP Exam Preparation - Study Notes and Theory&lt;/a&gt; group&#39;s Facebook page and a couple of other groups. Bought &quot;&lt;a href=&quot;https://www.amazon.com/Certified-Information-Security-Professional-Official/dp/1119475937&quot; target=&quot;_blank&quot;&gt;Official Study Guide, 8th Edition&lt;/a&gt;&quot; and &quot;&lt;a href=&quot;https://www.amazon.com/CISSP-Official-ISC-Practice-Tests/dp/1119475929&quot; target=&quot;_blank&quot;&gt;Official Practice Tests, 2nd Edition&lt;/a&gt;&quot;. Read a couple of chapters of the official study guide and realize that I couldn&#39;t hold all this info in my head, so only used it as reference. Have not used the practice tests book at all because I bought the &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.learnzapp.wileycissptests&amp;amp;hl=en_US&amp;amp;gl=US&quot; target=&quot;_blank&quot;&gt;Official Practice Tests app for Android&lt;/a&gt; and it was pretty much the same (UPDATE: Looks like there is a new and better free version available now: &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.learnzapp.cissp&amp;amp;hl=en_US&amp;amp;gl=US&quot; target=&quot;_blank&quot;&gt;CISSP - (ISC)² Official App&lt;/a&gt;). Used a number of free test prep apps (pretty much everything I was able to find at the Google play store, some of them were quite useful). Practiced &lt;a href=&quot;https://www.boson.com/practice-exam/cissp-isc2-practice-exam&quot; target=&quot;_blank&quot;&gt;Boson tests&lt;/a&gt; (highly recommend). Also tried to do a couple of Boson labs and realized they were mostly a waste of time. I think I practiced something between 1,500 and 3,000 questions. I stopped using each practice app once I realized that the questions started to recycle. A side note about apps: none of them are perfect (some have wrong answers, some have other issues), but I would still recommend everything I used: Boson, official study test prep app, and other apps. By the end, I was getting about 75%-85% on tests on average, depending on the platform. When doing tests, I used Chegg Prep to keep notes of everything I struggled with. I mostly did tests in prep mode and tried to analyze the wrong answers. Did timed exercises, as well, just to get an idea.&lt;/p&gt;

&lt;p&gt;ONE YEAR BEFORE THE EXAM&lt;/p&gt;
&lt;p&gt;Gave up resisting my manager who insisted on me getting the CISSP certification. Watched Thor Pedersen&#39;s &lt;a href=&quot;https://www.udemy.com/topic/cissp/&quot; target=&quot;_blank&quot;&gt;Udemy course&lt;/a&gt; (a couple of times). Started listening to the old &lt;a href=&quot;https://www.cybrary.it/instructor/kelly-handerhan&quot; target=&quot;_blank&quot;&gt;Kelly Handerhan&lt;/a&gt;&#39;s audio version of the CISSP prep course (pretty much listened to it at 1.5x speed all the time I was in a car driving alone; I think I listened to them 2-3 times). Bought the &lt;a href=&quot;https://www.boson.com/practice-exam/cissp-isc2-practice-exam&quot; target=&quot;_blank&quot;&gt;Boson prep ap&lt;/a&gt;p and then realized that it was only a practice app (no training materials other than labs) and it would expire 6 months after starting to use it, so I held off until I was more or less ready.&lt;/p&gt;

&lt;p&gt;BACKGROUND&lt;/p&gt;
&lt;p&gt;A software guy. 20+ years of IT (mostly, InfoSec) development experience. Didn&#39;t know much about infrastructure, networks, firewalls, etc (before I started studying for the CISSP exam).&lt;/p&gt;

&lt;p&gt;SEE ALSO&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://alekdavis.blogspot.com/2021/10/resources-that-helped-me-pass-cissp.html&quot;&gt;Resources that helped me pass the CISSP exam&lt;/a&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/5324611368190088521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2021/10/how-i-passed-cissp-exam.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/5324611368190088521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/5324611368190088521'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2021/10/how-i-passed-cissp-exam.html' title='How I passed the CISSP exam'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuHnNSS2I-iCkvdjQIzjeGmgxZs5RuGWHqN3MQRNuOkMwBKZhHAzcdP1PJLP3PFP9BO_vVaqH4EdSnnp8LJdOKkv4vk8OreBOBGEGPwJjNUxoWXQWKMVNb-1yyYgrzhVws-tz0duemhc8/s72-c/cissp.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-2925347606195216977</id><published>2021-09-08T17:00:00.003-07:00</published><updated>2023-02-01T21:22:33.979-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>How to read a secret from command line </title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: A sample of C# code illustrating how to read a masked secret value entered via a console.&lt;/div&gt;
&lt;!-- CSS styles: .update .sidenote .quote .code, .tip .codeblock --&gt;
&lt;div&gt;The following function can be used to read a secret value, such as a password from a command line:&lt;/div&gt;
&lt;pre class=&quot;brush:csharp&quot;&gt;
/// &lt;summary&gt;
/// Reads a secret from command line masking the characters entered by the user.
/// &lt;/summary&gt;
/// &lt;param name=&quot;prompt&quot;&gt;
/// Prompt to be displayed for the user (e.g. &quot;Enter password: &quot;). If not specified, the prompt will not be displayed.
/// &lt;/param&gt;
/// &lt;param name=&quot;mask&quot;&gt;
/// The masking character.
/// &lt;/param&gt;
/// &lt;returns&gt;
/// The string entered by the user.
/// &lt;/returns&gt;
private static string GetSecret
(
    string prompt = null,
    char mask = &#39;*&#39;
)
{
    // Input codes requiring special handling.
    const int ENTER         = 13;
    const int BACKSPACE     = 8;
    const int CTRLBACKSPACE = 127;
    const int ESC           = 27;

    // Character codes that must be ignored.
    int[] FILTERED = { 0, 9, 10 /*, 32 space, if you care */ };

    var secret = new System.Collections.Generic.Stack&lt;char&gt;();
    char chr = (char)0;

    // If the prompt was specified, show it to the user.
    if (!String.IsNullOrEmpty(prompt))
      Console.Write(prompt);
    
    // Continue reading entered keys until user presses ENTER or ESC.
    while (((chr = System.Console.ReadKey(true).KeyChar) != ENTER) &amp;&amp; (chr != ESC))
    {
        if (chr == BACKSPACE)
        {
            if (secret.Count &gt; 0)
            {
                System.Console.Write(&quot;\b \b&quot;);
                secret.Pop();
            }
        }
        else if (chr == CTRLBACKSPACE)
        {
            while (secret.Count &gt; 0)
            {
                System.Console.Write(&quot;\b \b&quot;);
                secret.Pop();
            }
        }
        else if (chr == ESC)
        {
            while (secret.Count &gt; 0)
            {
                System.Console.Write(&quot;\b \b&quot;);
                secret.Pop();
            }
        }
        else if (FILTERED.Count(x =&gt; chr == x) &gt; 0)
        {
        }
        else
        {
            secret.Push((char)chr);
            System.Console.Write(mask);
        }
    }

    System.Console.WriteLine();

    return new string(secret.Reverse().ToArray());
}

&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/2925347606195216977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2021/09/read-secret-from-command-line.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/2925347606195216977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/2925347606195216977'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2021/09/read-secret-from-command-line.html' title='How to read a secret from command line '/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-236595445007605473</id><published>2020-10-02T18:13:00.002-07:00</published><updated>2020-10-13T12:27:59.697-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><title type='text'>How to trim audio (MP3) files</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: PowerShell script to trim beginning and end of the audio (MP3, etc) files.&lt;/div&gt;

The following PowerShell script will remove the specified number of seconds from the beginning and/or end of every audio file with the given extension (.mp3 in this case) under the specified folder and all subfolders unerneath (requires &lt;a href=&quot;https://ffmpeg.org/download.html&quot;&gt;FFmpeg binaries&lt;/a&gt;):

&lt;pre class=&quot;brush:powershell&quot;&gt;
# Input folder holding audio files.
$inputDir = &quot;Z:\Lectures&quot;

# Seconds to trim from beginning of file.
$trimStart = 0.0

# Seconds to trim from the end of file.
$trimEnd = 9.0

# Path to the directory holding FFMPEG tools.
$ffmpegDir = &quot;c:\ffmpeg\bin&quot;

# Extension of the audio files.
$ext = &quot;.mp3&quot;

# Extension for temporary files.
$tmpExt = &quot;.TMP$ext&quot;

# Paths to FFMPEG tools.
$ffmpeg  = Join-Path $ffmpegDir &quot;ffmpeg.exe&quot;
$ffprobe = Join-Path $ffmpegDir &quot;ffprobe.exe&quot;

# Process all audio files in the directory and subdirectories.
Get-ChildItem -LiteralPath $inputDir -Filter &quot;*$ext&quot; -Recurse -File | ForEach-Object {
    # Original file path.
    $oldFile = $_.FullName

    # Original file name.
    $oldName = $_.Name

    # Temp file path will be in the same folder named after the original file.
    $tmpFile = &quot;$oldFile$tmpExt&quot;

    # Get the length of the audio track (it&#39;s a sting holding a floating number with possible new line).
    $duration = (&amp; $ffprobe -v 0 -show_entries format=duration -of compact=p=0:nk=1 $oldFile) | Out-String

    $duration = $duration.Trim()

    # Set new length of the audio by removing the trimmed parts.
    $duration -= ($trimEnd + $trimStart)

    # Trim the file.
    &amp; $ffmpeg -ss $trimStart -t $duration -i $oldFile -acodec copy $tmpFile

    # Delete the original file.
    Remove-Item -LiteralPath $oldFile -Force

    # Rename the temp file to the original.
    Rename-Item -LiteralPath $tmpFile $oldName -Force
}
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/236595445007605473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2020/10/how-to-trim-audio-mp3-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/236595445007605473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/236595445007605473'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2020/10/how-to-trim-audio-mp3-files.html' title='How to trim audio (MP3) files'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-1101446769346859851</id><published>2019-07-18T10:27:00.000-07:00</published><updated>2019-07-19T14:50:30.222-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>Minimize your app config file</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to keep application configuration files (app.config, web.config) nice and clean.&lt;/div&gt;
We use configuration files to store application settings that can be modified, so we do not need to recompile the application. Some applications have lots of settings, but many of these settings are not likely to change or may only change when the application is rebuilt. In such case, here is a nice technique that will allow you to reduce the size of the config file.&lt;br/&gt;
&lt;br/&gt;
Here is the basic idea:
&lt;ol&gt;
&lt;li&gt;Create a static configuration class (let&#39;s call it &lt;span class=&#39;code&#39;&gt;Config&lt;/span&gt;).&lt;/li&gt;
&lt;li&gt;In the &lt;span class=&#39;code&#39;&gt;Config&lt;/span&gt; class, implement static methods to get a configuration property value that either gets it from the application&#39;s config file (if the setting is defined in the &lt;span class=&#39;code&#39;&gt;appSettings&lt;/span&gt; section) or uses the passed default (you&#39;d need to implement these methods for different data types).&lt;/li&gt;
&lt;li&gt;In the &lt;span class=&#39;code&#39;&gt;Config&lt;/span&gt; class, define the static properties that get initialized by calling the methods mentioned above with the hard-coded defaults. To make it easier to remember, the config file&#39;s &lt;span class=&#39;code&#39;&gt;appSettings&lt;/span&gt; keys must be named after the &lt;span class=&#39;code&#39;&gt;Config&lt;/span&gt; class properties.&lt;/li&gt;
&lt;/ol&gt;
Now, you can remove the settings that are not very likely to change from the config file and if they need to be changed before the application is updated, simply add them back.&lt;br/&gt;
&lt;br/&gt;
Here is the code:&lt;br/&gt;
&lt;br/&gt;

The configuration class is responsible for initialization of the application settings:

&lt;pre class=&quot;brush:csharp&quot;&gt;
using System;
using System.Configuration;

namespace MyApp.Configuration
{
    public static class Config
    {
        public static string OPERATION_LIST = 
            GetValue(&quot;OPERATION_LIST&quot;, &quot;Create|Read|Update|Delete|Assign|Revoke|Enable|Disable&quot;);

        public static string OBJECT_LIST = 
            GetValue(&quot;OBJECT_LIST&quot;, &quot;User|Group|Role&quot;);

        private static string GetValue
        (
            string keyName,
            string defaultValue = null
        )
        {
            string configValue = ConfigurationManager.AppSettings.Get(keyName);

            if (String.IsNullOrEmpty(configValue))
                return defaultValue;

            return configValue;
        }

        private static int GetValue
        (
            string keyName,
            int defaultValue
        )
        {
            string configValue = ConfigurationManager.AppSettings.Get(keyName);

            if (String.IsNullOrEmpty(configValue))
                return defaultValue;

            return Int32.Parse(configValue);
        }

        private static bool GetValue
        (
            string keyName,
            bool defaultValue
        )
        {
            string configValue = ConfigurationManager.AppSettings.Get(keyName);

            if (String.IsNullOrEmpty(configValue))
                return defaultValue;

            return bool.Parse(configValue);
        }

        private static object GetValue
        (
            string keyName,
            Enum defaultValue,
            Type type
        )
        {
            string configValue = ConfigurationManager.AppSettings.Get(keyName);

            if (String.IsNullOrEmpty(configValue))
                return defaultValue;

            return Enum.Parse(type, configValue);
        }
    }
}
&lt;/pre&gt;
Using an application setting is now as easy as referencing the corresponding configuration class property:
&lt;pre class=&quot;brush:csharp&quot;&gt;
string[] operations = Config.OPERATION_LIST.Split(&#39;|&#39;)
    .Select(op =&gt; op.Trim())
    .ToArray();
string[] objects= Config.OBJECT_LIST.Split(&#39;|&#39;)
    .Select(op =&gt; op.Trim())
    .ToArray();
&lt;/pre&gt;
Notice that we do not need to define these values in the application config file unless we have to modify them before we release an application update, in which case, simply add them to the &lt;span class=&#39;code&#39;&gt;appSettings&lt;/span&gt; section:
&lt;pre class=&quot;brush:xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;configuration&gt;
  &lt;appSettings&gt;
    &lt;add key=&quot;OPERATION_LIST&quot; value=&quot;Create|Read|Update|Delete|Assign|Revoke|Enable|Disable|Expire|Unexpire&quot;&gt;&lt;/add&gt;
  &lt;/appSettings&gt;
&lt;/configuration&gt;
&lt;/pre&gt;
I assume this must be obvious but just in case: NEVER HARD CODE SENSITIVE INFORMATION (PASSWORDS, ENCRYPTION KEYS, ETC) IN THE APPLICATION SOURCE CODE.&lt;/br&gt;
&lt;/br&gt;
Okay, I&#39;m done for today.&lt;br/&gt;
&lt;br/&gt;
&lt;div class=&quot;update&quot;&gt;
&lt;b&gt;UPDATE:&lt;/b&gt; And here is an even better option: &lt;a href=&quot;https://github.com/alekdavis/BasicConfiguration&quot;&gt;BasicConfiguration&lt;/a&gt;.
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/1101446769346859851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2019/07/minimize-your-app-config-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/1101446769346859851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/1101446769346859851'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2019/07/minimize-your-app-config-file.html' title='Minimize your app config file'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-5463862868973919869</id><published>2019-07-10T10:36:00.000-07:00</published><updated>2019-07-19T14:50:08.233-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>How to get or set a nested class property using C#</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: C# methods to set and get nested class property values.&lt;/div&gt;

&lt;div&gt;If you need to get a set a value of a nested object property, here is a couple of functions that can help you do it using reflection (.NET 4.7, C#):&lt;/div&gt;

&lt;pre class=&quot;brush:csharp&quot;&gt;
/// &lt;summary&gt;
/// Gets the value of a nested object property.
/// &lt;/summary&gt;
/// &lt;param name=&quot;source&quot;&gt;
/// Project that owns the property.
/// &lt; /param&gt;
/// &lt;param name=&quot;name&quot;&gt;
/// Name of the property.
/// &lt; /param&gt;
/// &lt;returns&gt;
/// Property value (or &lt;c&gt;null&lt;/c&gt;, if property does not exists).
/// &lt;/returns&gt;
/// &lt;remarks&gt;
/// &lt;para&gt;
/// The code assumes that the property exists;
/// if it does not, the code will return &lt;c&gt;null&lt;/c&gt;.
/// &lt;/para&gt;
/// &lt;para&gt;
/// The property does not need to be nested.
/// &lt;/para&gt;
/// &lt;para&gt;
/// The code handles both class properties and fields.
/// &lt;/para&gt;
/// &lt;/remarks&gt;
public static object GetPropertyValue
(
    object source, 
    string name
)
{
    if (name.Contains(&quot;.&quot;))
    {
        var names = name.Split(new char[] { &#39;.&#39; }, 2);

        return GetPropertyValue(GetPropertyValue(source, names[0]), names[1]);
    }
    else
    {
        PropertyInfo prop = null;

        prop = source.GetType().GetProperty(name);

        if (prop != null)
            return prop != null ? prop.GetValue(source) : null;

        FieldInfo field = source.GetType().GetField(name);

        if (field == null) return null;

        return field.GetValue(source);
    }
}

/// &lt;summary&gt;
/// Sets the value of a nested object property.
/// &lt;/summary&gt;
/// &lt;param name=&quot;target&quot;&gt;
/// Object that owns the property to be set. 
/// &lt; /param&gt;
/// &lt;param name=&quot;name&quot;&gt;
/// Name of the property.
/// &lt; /param&gt;
/// &lt;param name=&quot;value&quot;&gt;
/// Property value.
/// &lt; /param&gt;
/// &lt;remarks&gt;
/// &lt;para&gt;
/// The code assumes that the property exists;
/// if it does not, the code will do nothing.
/// &lt;/para&gt;
/// &lt;para&gt;
/// The property does not need to be nested.
/// &lt;/para&gt;
/// &lt;para&gt;
/// The code handles both class properties and fields.
/// &lt;/para&gt;
/// &lt;/remarks&gt;
public static void SetPropertyValue
(
    object target,
    string name, 
    object value
)
{
    var names = name.Split(&#39;.&#39;);

    for (int i = 0; i &lt; names.Length - 1; i++)
    {
        PropertyInfo prop = target.GetType().GetProperty(names[i]);
        if (prop != null)
        {
            target = prop.GetValue(target);
            continue;
        }

        FieldInfo field = target.GetType().GetField(names[i]);
        if (field != null)
        {
            target = field.GetValue(target);
            continue;
        }

        return;
    }

    PropertyInfo targetProp = target.GetType().GetProperty(names.Last());

    if (targetProp != null)
        targetProp.SetValue(target, value);
}
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/5463862868973919869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2019/07/how-to-get-or-set-nested-class-property.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/5463862868973919869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/5463862868973919869'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2019/07/how-to-get-or-set-nested-class-property.html' title='How to get or set a nested class property using C#'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-4259795504995724552</id><published>2017-11-17T16:12:00.002-08:00</published><updated>2017-11-26T19:05:01.720-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mp4"/><category scheme="http://www.blogger.com/atom/ns#" term="tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>How to rotate a video without re-encoding</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: A few tips on video rotation.&lt;/div&gt;
If your phone messes up the rotation metadata flag in a video file, &lt;a href=&quot;https://www.ffmpeg.org/download.html&quot;&gt;download ffmpeg&lt;/a&gt; and run the following command:

&lt;pre class=&quot;brush:plain&quot;&gt;
ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=0 output.mp4
&lt;/pre&gt;

This should fix the problem without re-encoding the video. If it does not, try setting the rotate switch to a different number, such as 90, 180, or 270. For additional information about video orientation MP4 and other video files, check the &lt;i&gt;See also&lt;/i&gt; section.&lt;br/&gt;
&lt;br/&gt;
See also:&lt;br/&gt;
&lt;a href=&quot;https://superuser.com/questions/564233/iphone-recorded-videos-getting-rotated-on-windows-systems&quot;&gt;iPhone recorded videos getting rotated on Windows systems&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://superuser.com/questions/82117/rotate-a-mp4-file-while-preserving-codec-and-quality-attributes&quot;&gt;Rotate a MP4 file, while preserving codec and quality attributes&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://stackoverflow.com/questions/25031557/rotate-mp4-videos-without-re-encoding&quot;&gt;Rotate mp4 videos without re-encoding&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg&quot;&gt;Rotating videos with FFmpeg&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://superuser.com/questions/578321/how-to-rotate-a-video-180-with-ffmpeg&quot;&gt;How to rotate a video 180° with FFmpeg?&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/4259795504995724552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2017/11/how-to-rotate-video-without-re-encoding.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/4259795504995724552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/4259795504995724552'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2017/11/how-to-rotate-video-without-re-encoding.html' title='How to rotate a video without re-encoding'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-7482503666978999839</id><published>2017-11-17T15:50:00.001-08:00</published><updated>2017-11-17T15:53:38.435-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="adobe"/><category scheme="http://www.blogger.com/atom/ns#" term="elements"/><category scheme="http://www.blogger.com/atom/ns#" term="photoshop"/><category scheme="http://www.blogger.com/atom/ns#" term="premiere"/><category scheme="http://www.blogger.com/atom/ns#" term="tips and tricks"/><title type='text'>How to fix slow startup for old Photoshop/Premiere Elements apps (on Windows)</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: Easy way to fix slow startup issues for older versions of Adobe products (on Windows).&lt;/div&gt;
If you have an older version of Adobe video and photo editing products, such as Photoshop Elements or Premiere Elements, you may be irritated with the long startup time, which could take several minutes. Apparently, the applications try to connect to a server that is no longer in service (btw, excellent job, Adobe!), so they wait... and wait... and wait... The good thing is that there seems to be an easy fix for this.&lt;br/&gt;
&lt;br/&gt;
According to the answer to &lt;a href=&quot;https://forums.adobe.com/thread/1286200&quot; title=&quot;Photoshop Elements Startup Problem&quot;&gt;this post&lt;/a&gt;, you just need to add the following entry to your &lt;span class=&quot;code&quot;&gt;hosts&lt;/span&gt; file located in the &lt;span class=&quot;code&quot;&gt;%WINDIR%\System32\Drivers\Etc&lt;/span&gt; folder:&lt;br/&gt;

&lt;pre class=&quot;brush:plain&quot;&gt;
127.0.0.1   static.photoshop.com
&lt;/pre&gt;

This solved the problem form my Photoshop Elements 9 and Premiere Elements 13 instances running on Windows 7 (yeah, I know, need to upgrade to Windows 10, but that&#39;s a different story).&lt;br/&gt;
&lt;br/&gt;
Enjoy!
</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/7482503666978999839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2017/11/how-to-fix-slow-startup-for-old.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/7482503666978999839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/7482503666978999839'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2017/11/how-to-fix-slow-startup-for-old.html' title='How to fix slow startup for old Photoshop/Premiere Elements apps (on Windows)'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-4356370164927835591</id><published>2017-10-20T14:51:00.002-07:00</published><updated>2017-10-20T14:51:48.091-07:00</updated><title type='text'>Save STDOUT/STDERR to clipboard (and more)</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to redirect the STDOUT or STDERR stream to clipboard.&lt;/div&gt;
Note to self (mostly), in case I forget the command that would redirect standard output or standard error stream and save it on the clipboard.&lt;br/&gt;
&lt;br/&gt;

Redirect STDOUT to clipboard:

&lt;pre class=&quot;brush:plain&quot;&gt;
command | clip
&lt;/pre&gt;

Redirect STDERR to clipboard:

&lt;pre class=&quot;brush:plain&quot;&gt;
command 2&gt;&amp;1 | clip
&lt;/pre&gt;

The following will save the contents of the current directory to the clipboard:

&lt;pre class=&quot;brush:plain&quot;&gt;
dir | clip
&lt;/pre&gt;

Now, let&#39;s try the following:
&lt;pre class=&quot;brush:plain&quot;&gt;
dir xyz: | clip
&lt;/pre&gt;

The clipboard now will hold something like this:

&lt;pre class=&quot;brush:plain&quot;&gt;
 Volume in drive C is SYSTEM
 Volume Serial Number is 1234-ABCD

 Directory of C:\Windows\SysWOW64
&lt;/pre&gt;

Now, let&#39;s redirect STDERR to clipboard:

&lt;pre class=&quot;brush:plain&quot;&gt;
dir xyz:2&gt;&amp;1 | clip
&lt;/pre&gt;

The clipboard now will hold something like this:

&lt;pre class=&quot;brush:plain&quot;&gt;
&quot;xyz:&quot; is not a recognized device.
&quot;xyz:&quot; is not a recognized device.
 Volume in drive C is SYSTEM
 Volume Serial Number is 1234-ABCD

 Directory of C:\Windows\SysWOW64

File Not Found
&lt;/pre&gt;

See also:&lt;br/&gt;
&lt;a href=&quot;https://www.hanselman.com/blog/ForgottenButAwesomeWindowsCommandPromptFeatures.aspx&quot;&gt;Forgotten (but Awesome) Windows Command Prompt Features by Scott Hanselman&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://stackoverflow.com/questions/2342826/how-to-pipe-stderr-and-not-stdout&quot;&gt;How to pipe stderr, and not stdout?&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/4356370164927835591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2017/10/save-stdoutstderr-to-clipboard-and-more.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/4356370164927835591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/4356370164927835591'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2017/10/save-stdoutstderr-to-clipboard-and-more.html' title='Save STDOUT/STDERR to clipboard (and more)'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-7607359304776223715</id><published>2017-08-22T11:24:00.002-07:00</published><updated>2023-01-26T10:38:49.586-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><category scheme="http://www.blogger.com/atom/ns#" term="tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>How to clean up BIN and OBJ folders in a Visual Studio solution</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: Some ideas on cleaning up intermediate and output folders in Visual Studio projects.&lt;/div&gt;
There may be better (and more elegant) ways of cleaning up the output (BIN) and intermediate (OBJ) folders generated by Visual Studio build process, but the following script is probably the easiest option you can use:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:plain&quot;&gt;@echo off
rem Delete BIN and OBJ folders from the immediate folder and all subfolders.
rem

rem Switch to the script folder.
cd &quot;%~dp0&quot;

rem Use the following to suppress the &#39;File Not Found&#39; message if no folders are found.
setlocal enabledelayedexpansion 
for /f &quot;tokens=*&quot; %%G in (&#39;dir /B /AD /S bin 2^&amp;gt;nul&#39;) do rmdir /S /Q &quot;%%G&quot;
for /f &quot;tokens=*&quot; %%G in (&#39;dir /B /AD /S obj 2^&amp;gt;nul&#39;) do rmdir /S /Q &quot;%%G&quot;
&lt;/pre&gt;
&lt;br /&gt;

Notice that the script call &lt;span class=&quot;code&quot;&gt;setlocal enabledelayedexpansion&lt;/span&gt; to allow the &lt;span class=&quot;code&quot;&gt;2^&amp;gt;nul&lt;/span&gt; redirection in the &lt;span class=&quot;code&quot;&gt;for&lt;/span&gt; loops (without it, it would output the &quot;File Not Found&quot; message if the folder and subfolders do not hold the &quot;BIN&quot; or &quot;OBJ&quot; folders. Also, make sure, you place the file in the root of the solution folder.&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
&lt;a href=&quot;https://stackoverflow.com/questions/1088593/how-to-clean-visual-studio-bin-and-obj-folders&quot;&gt;How to clean Visual Studio bin and obj folders&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://stackoverflow.com/questions/755382/i-want-to-delete-all-bin-and-obj-folders-to-force-all-projects-to-rebuild-everyt&quot;&gt;I want to delete all bin and obj folders to force all projects to rebuild everything&lt;/a&gt;&lt;div&gt;&lt;a href=&quot;https://stackoverflow.com/questions/5605885/how-to-run-a-bat-from-inside-the-ide&quot; target=&quot;_blank&quot;&gt;How to run a .bat from inside the IDE&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://stackoverflow.com/questions/21188368/want-to-suppress-file-not-found-output&quot;&gt;Want to suppress File not found output&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://stackoverflow.com/questions/1262708/suppress-command-line-output&quot;&gt;Suppress command line output&lt;/a&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/7607359304776223715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2017/08/clean-up-bin-and-obj-folders-in-visual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/7607359304776223715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/7607359304776223715'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2017/08/clean-up-bin-and-obj-folders-in-visual.html' title='How to clean up BIN and OBJ folders in a Visual Studio solution'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-794495770173734506</id><published>2016-04-27T16:44:00.001-07:00</published><updated>2016-04-27T16:59:09.794-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="design"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="prototype"/><category scheme="http://www.blogger.com/atom/ns#" term="ui"/><category scheme="http://www.blogger.com/atom/ns#" term="ux"/><category scheme="http://www.blogger.com/atom/ns#" term="wireframe"/><title type='text'>Rapid prototyping with jsFiddle for web developers</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to use jsFiddle for building wireframes and rapid prototyping.&lt;/div&gt;
Recently, I needed to build &lt;b&gt;interactive prototypes&lt;/b&gt; of a web form. I do not own a license of a professional prototyping tool (like &lt;a href=&quot;https://balsamiq.com/&quot;&gt;Balsamiq&lt;/a&gt;, &lt;a href=&quot;https://www.hotgloo.com/&quot;&gt;HotGloo&lt;/a&gt;, &lt;a href=&quot;https://uxpin.com&quot;&gt;UXPin&lt;/a&gt;), so I tired several &lt;b&gt;free online&lt;/b&gt; options (namely, &lt;a href=&quot;http://iplotz.com/&quot;&gt;iPLOTZ&lt;/a&gt;, &lt;a href=&quot;http://concept.ly/&quot;&gt;concept.ly&lt;/a&gt;, &lt;a href=&quot;https://mockflow.com/&quot;&gt;MockFlow&lt;/a&gt;) and appreciated the ease of drag-and-drop; however, making these prototypes &lt;b&gt;respond&lt;/b&gt; to interactive events (mouse clicks, selection changes, etc) turned into a &lt;b&gt;hassle&lt;/b&gt;.&lt;br/&gt;
&lt;br/&gt;
I also tried a couple of &lt;b&gt;desktop&lt;/b&gt; options, but had even &lt;b&gt;less luck&lt;/b&gt; with &lt;a href=&quot;http://pencil.evolus.vn/&quot;&gt;Pencil&lt;/a&gt; (couldn&#39;t figure out how to make a combo box display multiple entries), Visio 2013 (&lt;a href=&quot;https://www.youtube.com/watch?v=r9twTtXkQNA&quot;&gt;&lt;i&gt;&quot;Where is the combo box, Lebowski?&quot;&lt;/i&gt;&lt;/a&gt;), and Blend for Visual Studio 2013 (&lt;a href=&quot;https://www.youtube.com/watch?v=YedqV4Gl_us&amp;t=1m35s&quot;&gt;&lt;i&gt;&quot;You&#39;re entering the world of pain!&quot;&lt;/i&gt;&lt;/a&gt;).&lt;br/&gt;
&lt;br/&gt;
I was entertaining an idea of using animations in PowerPoint, when it struck me:

&lt;blockquote class=&quot;quote&quot;&gt;&lt;b&gt;Why not use jsFiddle?&lt;/b&gt;&lt;/blockquote&gt;

If, after reading the previous sentence, the first question that popped into your mind was &quot;What the heck is jsFiddle?&quot;, you may not realize that &lt;a href=&quot;http://www.urbandictionary.com/define.php?term=heck&quot;&gt;saying &quot;What the heck!&quot; is really worse than saying &quot;What the hell!&quot;&lt;/a&gt;. But nonetheless, for those just coming out of a coma:&lt;br/&gt;
&lt;br/&gt;
&lt;div class=&quot;tip&quot;&gt;&lt;a href=&quot;http://jsfiddle.net&quot;&gt;jsFiddle&lt;/a&gt; is a free web-based tool that allows you to quickly test HTML/JavaScript/CSS. But wait, there&#39;s more!&lt;/div&gt;

Here is what a jsFiddle screen looks like:&lt;br/&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8xalaoHHN530QuXKrwdaojyTiY9WbIRjnwuzT0lXX0QO4dEO6R-rnR-EMXNxNS2Dtbl0EdJ997yVUwAXP3pPpM1lJ3MQytbK6tW_4cozk066lKbj83sGhpaJXZVt0lwWgurloEFK-ARs/s1600/jsFiddle.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8xalaoHHN530QuXKrwdaojyTiY9WbIRjnwuzT0lXX0QO4dEO6R-rnR-EMXNxNS2Dtbl0EdJ997yVUwAXP3pPpM1lJ3MQytbK6tW_4cozk066lKbj83sGhpaJXZVt0lwWgurloEFK-ARs/s1600/jsFiddle.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

You enter HTML, CSS, and JavaScript code into the corresponding panels, click the &lt;i&gt;Run&lt;/i&gt; button, and see the result of your work in the window appropriately named &lt;i&gt;Result&lt;/i&gt;. It&#39;s that simple.&lt;br/&gt;
&lt;br/&gt;
Let&#39;s summarize what &lt;b&gt;&lt;a href=&quot;https://jsfiddle.net/&quot;&gt;jsFiddle&lt;/a&gt;&lt;/b&gt; has to offer:
&lt;ul&gt;
&lt;li&gt;It&#39;s &lt;b&gt;free&lt;/b&gt; (as in &lt;i&gt;&quot;it ain&#39;t cost sh*t&quot;&lt;/i&gt;).&lt;/li&gt;
&lt;li&gt;It&#39;s &lt;b&gt;web-based&lt;/b&gt; (no crap to install).&lt;/li&gt;
&lt;li&gt;It&#39;s &lt;b&gt;not using Adobe Flash&lt;/b&gt;, like most other online prototypes do (they still do, don&#39;t they?).&lt;/li&gt;
&lt;li&gt;It uses &lt;b&gt;HTML&lt;/b&gt;, &lt;b&gt;CSS &lt;/b&gt;and &lt;b&gt;JavaScript&lt;b&gt;&lt;/b&gt;&lt;/b&gt; (you already know these, right?).&lt;/li&gt;
&lt;li&gt;It uses a standard &lt;b&gt;web programming&lt;/b&gt; model (no need to learn proprietary controls).&lt;/li&gt;
&lt;li&gt;It supports pretty much every &lt;b&gt;popular JavaScript/CSS framework&lt;/b&gt; (yay to jQuery! yay to Bootstrap!).&lt;/li&gt;
&lt;li&gt;It can incorporate any &lt;b&gt;custom JavaScript/CSS framework&lt;/b&gt; (assuming it has a public URL).&lt;/li&gt;
&lt;li&gt;It keeps &lt;b&gt;versions&lt;/b&gt; of your changes (version control by default).&lt;/li&gt;
&lt;li&gt;You can send a URL of your prototype for a &lt;b&gt;review&lt;/b&gt; or do a &lt;b&gt;live demo&lt;/b&gt; (with some quirks, though).&lt;/li&gt;
&lt;li&gt;You can &lt;b&gt;collaborate&lt;/b&gt; with others on a prototype (although, I haven&#39;t tried).&lt;/li&gt;
&lt;/ul&gt;
The bottom line is that using jsFiddle, you can &lt;b&gt;quickly&lt;/b&gt; build a &lt;b&gt;prototype&lt;/b&gt; and implement the functionality that is only constrained by the limitations of the same technologies your applications uses (JavaScript, CSS, HTML). In the other words, there are no practical constraints. It&#39;s almost too good to be true. Why haven&#39;t I thought about it before?&lt;/br&gt;
&lt;/br&gt;
Anyway, if you want to build a wireframe or a quick prototype using &lt;a href=&quot;https://jsfiddle.net/&quot;&gt;jsFiddle&lt;/a&gt;, do the following:
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://jsfiddle.net/user/signup/&quot;&gt;Create an account&lt;/a&gt; (if you don&#39;t have one).&lt;/li&gt;
&lt;li&gt;Log in and &lt;a href=&quot;https://jsfiddle.net/&quot;&gt;open the editor&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;While in the editor, under the &lt;i&gt;Fiddle Meta&lt;/i&gt; section on the left side, enter the title and description of your prototype (wireframe). If you &lt;b&gt;do not want to make it public&lt;/b&gt; (discoverable via search), leave the &lt;b&gt;title field blank&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Add your HTML, CSS, JavaScript.&lt;/li&gt;
&lt;li&gt;Click the &lt;i&gt;Run&lt;/i&gt; menu option to &lt;b&gt;preview&lt;/b&gt; the functionality.&lt;/li&gt;
&lt;li&gt;When you are happy with the result, click the &lt;i&gt;Save&lt;/i&gt; (or &lt;i&gt;Update&lt;/i&gt;) menu button to &lt;b&gt;keep the changes&lt;/b&gt;.
&lt;li&gt;The public link to the fiddle can be found in the &lt;i&gt;Embed Code&lt;/i&gt; section of the Embed screen (to open the &lt;i&gt;Embed&lt;/i&gt; screen, click the Embed menu option).&lt;/li&gt;
&lt;/li&gt;
&lt;/ol&gt;
If you close jsFiddle and come back, you will find your fiddles in the &lt;b&gt;dashboard&lt;/b&gt; (to access the dashboard link from the editor, click your account name in the top right corner of the page). The dashboard shows your public and private fiddles (proper descriptions will make it easier for you to locate private fiddles):

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRQsQSjA2AtIWNVErpgaPnEhooX1lbNSWjeNBt2SmUVNmvbaHYAeIZ76Oaiay6KNsXAiew8LVYqGx1MPY6qgxUK1-Uh6lDE3WWmVohjUDglRcAKjcjiFTybaL7QdtfmDGtkMbFgvwfJCE/s1600/jsFiddleDashboard.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRQsQSjA2AtIWNVErpgaPnEhooX1lbNSWjeNBt2SmUVNmvbaHYAeIZ76Oaiay6KNsXAiew8LVYqGx1MPY6qgxUK1-Uh6lDE3WWmVohjUDglRcAKjcjiFTybaL7QdtfmDGtkMbFgvwfJCE/s1600/jsFiddleDashboard.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

Now, a bit of &lt;i&gt;jsFiddlespeak&lt;/i&gt;, if you do not mind.&lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;Visibility&lt;/b&gt;: You may have noticed somewhat non-traditional use of the term &lt;b&gt;public&lt;/b&gt;. As I mentioned above, &lt;i&gt;public&lt;/i&gt; means that a fiddle can be found via a search, and &lt;i&gt;non-public&lt;/i&gt; means that to access a fiddle, someone must know the fiddle&#39;s URL (non-public fiddles are still open to public).&lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;Baseline&lt;/b&gt;: Every time you save a fiddle (via the Save or Update menu option), jsFiddle will create and retain a new version. You can access a specific version of the fiddle by appending the version number to the fiddle&#39;s URL. For example, assume that your jsFiddle profile name is &lt;i&gt;jdoe&lt;/i&gt; and you make 13 changes to a fiddle with ID &lt;i&gt;qdn9f737&lt;/i&gt;, the URLs of the version history will look like these:
&lt;blockquote&gt;
&lt;span class=&quot;code&quot;&gt;https://jsfiddle.net/jdoe/qdn9f737/1/&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;code&quot;&gt;https://jsfiddle.net/jdoe/qdn9f737/2/&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;code&quot;&gt;https://jsfiddle.net/jdoe/qdn9f737/3/&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;code&quot;&gt;...&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;code&quot;&gt;https://jsfiddle.net/jdoe/qdn9f737/12/&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;code&quot;&gt;https://jsfiddle.net/jdoe/qdn9f737/13/&lt;/span&gt;
&lt;/blockquote&gt;
The non-versioned URL will correspond to whichever version you &lt;b&gt;set as base&lt;/b&gt; (the first version by default) and will look like this:
&lt;blockquote&gt;&lt;span class=&quot;code&quot;&gt;https://jsfiddle.net/jdoe/qdn9f737/&lt;/span&gt;&lt;/blockquote&gt;
You can define any version as base by opening this version in the editor and clicking the &lt;i&gt;Set as base&lt;/i&gt; menu option (in certain cases, you may need to save the version first).&lt;br/&gt;
&lt;br/&gt;
Finally, a few tips to help you get most out of jsFiddle (these are mostly notes to self, but others may find them handy).&lt;br/&gt;
&lt;br/&gt;
Use the &lt;b&gt;gear buttons&lt;/b&gt; (in the right top corners of the corresponding panels) to &lt;b&gt;configure&lt;/b&gt; the HTML, CSS, and JavaScript &lt;b&gt;settings&lt;/b&gt;. In particular, you can specify the version of HTML (such as &lt;i&gt;HTML 5&lt;/i&gt; or &lt;i&gt;HTML 4.0.1 Strict&lt;/i&gt;) to use and а JavaScript framework (such as &lt;i&gt;jQuery 2.2.3&lt;/i&gt; or &lt;i&gt;AngularJS 1.4.8&lt;/i&gt;) to include. You can only pick one option from the &lt;i&gt;JavaScript Frameworks and Extensions&lt;/i&gt; list, but you can include additional dependencies as external resources.&lt;br/&gt;
&lt;br/&gt;
To include an &lt;b&gt;external resource&lt;/b&gt; (other than the framework or extension selected in the JavaScript Frameworks and Extensions list), click the &lt;i&gt;External Resources&lt;/i&gt; header in the left pane of the page, paste or type in the URL of the framework file (normally, the resource&#39;s CDN address) in the &lt;i&gt;JavaScript/CSS URI&lt;/i&gt; field, and click the plus sign. Here are the URLs of the common CDNs:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.bootstrapcdn.com/&quot;&gt;Bootstrap&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.bootstrapcdn.com/fontawesome/&quot;&gt;Font Awesome&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
If you want to &lt;b&gt;share your prototype&lt;/b&gt;, but do not want others to see the JavaScript/HTML/CSS code, uncheck the HTML, CSS, and JavaScript option under the &lt;i&gt;Tabs&lt;/i&gt; heading in the Embed options (notice that the source URL in the Embedded Code section ends with &lt;span class=&quot;code&quot;&gt;embed/result/&lt;/span&gt;):&lt;br/&gt;
&lt;br/&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik8LCKvlb2MUnCjX8jz2ZAifXWTfFpzEkA7pOtofmynStkpmxOlE3zBl79SX8i5OPwKbq3reR-bmJYJHZXBit48avRz9mJ9Mog6ehTFMxx79NbXPJOQtAmCQcKNo0dSb63GjqpjB41oZI/s1600/jsFiddleEmbed.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik8LCKvlb2MUnCjX8jz2ZAifXWTfFpzEkA7pOtofmynStkpmxOlE3zBl79SX8i5OPwKbq3reR-bmJYJHZXBit48avRz9mJ9Mog6ehTFMxx79NbXPJOQtAmCQcKNo0dSb63GjqpjB41oZI/s1600/jsFiddleEmbed.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
To make the prototype look better when viewed in the the &lt;b&gt;full screen&lt;/b&gt; mode, you may want to limit the maximum width of the page. Enter the code similar to this in the CSS panel:

&lt;pre class=&quot;brush:css&quot;&gt;
html {
  max-width: 1200px;
  margin: 0 auto;
  background: #eee; /* Fills the page */
  position: relative; /* Fix for absolute positioning */
}
&lt;/pre&gt;
Have fun!</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/794495770173734506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2016/04/rapid-prototyping-with-jsfiddle-for-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/794495770173734506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/794495770173734506'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2016/04/rapid-prototyping-with-jsfiddle-for-web.html' title='Rapid prototyping with jsFiddle for web developers'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8xalaoHHN530QuXKrwdaojyTiY9WbIRjnwuzT0lXX0QO4dEO6R-rnR-EMXNxNS2Dtbl0EdJ997yVUwAXP3pPpM1lJ3MQytbK6tW_4cozk066lKbj83sGhpaJXZVt0lwWgurloEFK-ARs/s72-c/jsFiddle.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-3844368304763157197</id><published>2016-04-21T14:23:00.001-07:00</published><updated>2017-08-22T16:30:48.516-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="batch"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><title type='text'>Generate filename-friendly datetime in Windows shell script</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: Windows batch script to generate timestamp for a filename.&lt;/div&gt;
People who write Windows Shell (AKA batch or .BAT) scripts for living sometimes need to create file (or directory) names using timestamp values based on local current date and time. This is not as trivial as it may sound. First, there is no shell command that would return a timestamp in a custom format, and the standard command may return a value containing illegal (for filenames) characters, such as colons.&lt;br/&gt;
&lt;br/&gt;
There are articles that address this issue, but many proposed solutions do not accommodate region specifics, so they may work for an OS configured for one region, but fail for another.&lt;br/&gt;
&lt;br/&gt;
The following script will generate a filename-friendly local timestamp for any region:&lt;br/&gt;
&lt;pre class=&quot;brush:plain&quot;&gt;
@echo off
rem -----------------------------------------------------------------
rem MAIN routine
setlocal &amp; pushd

call :GET_TIMESTAMP
set timestamp=%ret%

echo %timestamp%

rem End of the main routine.
popd &amp; endlocal 
goto :EOF

rem -----------------------------------------------------------------
rem Generate current timestamp in the format:
rem
rem YYYYMMDDhhmmss (as shown here), or
rem YYYYMMDD_hhmmss (commented out), or
rem YYYMMDDhhmmssmmm (commented out), or
rem YYYMMDD_hhmmss_mmm (commented out)
rem
rem Uncomment the block that generates the desired format and comment
rem out the alternate implementations.
rem
rem Returns %ret%.
:GET_TIMESTAMP
setlocal

for /f &quot;usebackq tokens=1,2 delims==&quot; %%i in (`wmic os get LocalDateTime /value 2^&gt;NUL`) do (
if &#39;.%%i.&#39;==&#39;.LocalDateTime.&#39; set ldt=%%j
)
rem Without milliseconds, without underscore: 20160421140125
set timestamp=%ldt:~0,4%%ldt:~4,2%%ldt:~6,2%%ldt:~8,2%%ldt:~10,2%%ldt:~12,2%
rem echo %timestamp%

rem Without milliseconds, with underscore: 20160421_140125
rem timestamp=%ldt:~0,4%%ldt:~4,2%%ldt:~6,2%_%ldt:~8,2%%ldt:~10,2%%ldt:~12,2%
rem echo %timestamp%

rem With milliseconds, without underscores: 20160421140125202
rem set timestamp=%ldt:~0,4%%ldt:~4,2%%ldt:~6,2%%ldt:~8,2%%ldt:~10,2%%ldt:~12,2%%ldt:~15,3%
rem echo %timestamp%

rem With milliseconds, with underscores: 20160421_140125_202
rem set timestamp=%ldt:~0,4%%ldt:~4,2%%ldt:~6,2%_%ldt:~8,2%%ldt:~10,2%%ldt:~12,2%_%ldt:~15,3%
rem echo %timestamp%

endlocal&amp;set ret=%timestamp%
goto :EOF
&lt;/pre&gt;
Enjoy!&lt;br/&gt;
&lt;br/&gt;
See also:&lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-us&quot;&gt;How to get current datetime on Windows command line, in a suitable format for using in a filename?&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/3844368304763157197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2016/04/filename-datetime-windows-shell-batch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/3844368304763157197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/3844368304763157197'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2016/04/filename-datetime-windows-shell-batch.html' title='Generate filename-friendly datetime in Windows shell script'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-6889085524680677111</id><published>2015-10-03T02:38:00.000-07:00</published><updated>2017-10-30T16:37:57.690-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="productivity"/><category scheme="http://www.blogger.com/atom/ns#" term="tips and tricks"/><title type='text'>How to create and share a school calendar using Google</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: A walk-through explaining how to create and share a public school calendar.&lt;/div&gt;

I have three kids enrolled in two &lt;b&gt;schools&lt;/b&gt; that operate under different calendars. To keep track of their &lt;b&gt;schedules&lt;/b&gt;, I set up the school calendars on my &lt;b&gt;phone&lt;/b&gt; (and PC), so that I get event notifications and &lt;b&gt;reminders&lt;/b&gt;. It works well, but comes at a &lt;b&gt;cost&lt;/b&gt;: in the beginning of each school year I spend 1-2 hours manually entering the information about the school events (minimum days, holidays, days off, back to school nights, etc.) into my personal calendar. And so do other parents at my kids&#39; schools, as well as millions of parents nationwide. Sooner or later the schools will learn how to make the process more &lt;b&gt;efficient&lt;/b&gt;, but in the meantime, you -- a school administrator, a teacher, or a volunteer -- can help us. It won&#39;t be hard.&lt;br/&gt;
&lt;br/&gt;

In this article, I&#39;ll explain &lt;b&gt;how to&lt;/b&gt; make it easy for parents to see a school &lt;b&gt;calendar&lt;/b&gt; on a &lt;b&gt;mobile device&lt;/b&gt; (iPhone, Android device, Windows phone or tablet) and keep this calendar up-to-date. You will no longer need to print calendars on paper (yay, trees!) or have parents enter them manually. A public calendar allows you to add new events, update existing events, delete cancelled events, set reminders, provide helpful event details (such as instructions or locations of off-site events) and subscribers will see them instantly. It lets you share the same calendar online (at your school&#39;s website). And it does not limit you to a school schedule. You can follow the same approach to set up a calendar for any organization or activity, such as a sports team or a volunteering project.&lt;br/&gt;
&lt;br/&gt;
Before we get down to the nitty-gritty, let me first clarify the &lt;b&gt;requirements&lt;/b&gt; and limitations.&lt;br/&gt;
&lt;br/&gt;

&lt;div class=&quot;tip&quot;&gt;REQUIREMENTS: A user must have a Google account.&lt;/div&gt;
While you may keep a personal calendar locked to your your mobile phone or computer, inside of &lt;a href=&quot;https://www.icloud.com/&quot;&gt;iCloud&lt;/a&gt;, or in &lt;a href=&quot;https://calendar.live.com/calendar/calendar.aspx&quot;&gt;Outlook&lt;/a&gt;, for a public calendar you better use &lt;a href=&quot;https://www.google.com/calendar&quot;&gt;Google Calendar&lt;/a&gt;. It supports all major platforms (iPhone, Android, Windows), has wide adoption, and offers most features.&lt;br/&gt;
&lt;br/&gt;

If you (a school calendar administrator or creator) do not have a &lt;b&gt;Google account&lt;/b&gt;, you can easily &lt;a href=&quot;https://accounts.google.com/signup&quot;&gt;create one&lt;/a&gt; (it&#39;s free). A Google account gives you access to the Calendar features including ability to create public calendars. You may prefer to create a special Google account that would &quot;own&quot; the school calendar, so you can transfer it to someone else in case you no longer want to manage it (Google makes it really easy to &lt;a href=&quot;https://support.google.com/accounts/answer/1721977&quot; title=&quot;Sign in to multiple accounts at once&quot;&gt;switch between multiple accounts&lt;/a&gt;).&lt;br/&gt;
&lt;br/&gt;

To get real time updates, Google calendar subscribers (parents) will also need Google accounts. As a subscriber, you do not need to actively use a personal Google calendar (if you prefer something else), but you will need it to sync the school calendar with your mobile device.&lt;br/&gt;
&lt;br/&gt;

&lt;div class=&quot;tip&quot;&gt;WARNING: If you have a fundamental objection to using Google, there may be a similar approach to sharing a school calendar using a different provider (say, &lt;a href=&quot;https://support.apple.com/kb/PH2690&quot; title=&quot;iCLoud: Share a calendar with others&quot;&gt;Apple&lt;/a&gt;, &lt;a href=&quot;https://help.yahoo.com/kb/sharing-yahoo-calendar-sln15901.html&quot; title=&quot;Overview of Yahoo Calendar&quot;&gt;Yahoo!&lt;/a&gt;, or &lt;a href=&quot;http://windows.microsoft.com/en-us/windows-live/calendar-share-calendar-with-contacts&quot; title=&quot;Share your calendar&quot;&gt;Microsoft&lt;/a&gt;), but it&#39;d be more complex (if possible at all), so let&#39;s assume that at this point both calendar administrators and subscribers have Google accounts.&lt;/div&gt;&lt;br/&gt;

&lt;a name=&quot;Create&quot;&gt;&lt;/a&gt;&lt;b&gt;Calendar creation process&lt;/b&gt;&lt;br/&gt;
To set up a school calendar, follow these steps:
&lt;ol&gt;
&lt;li&gt;
&lt;b&gt;Create a public calendar&lt;/b&gt;&lt;br/&gt;
First, you create a public Google calendar for your school online. Here is a short video explaining how to do this (if you prefer a written tutorial, read &lt;a href=&quot;https://support.google.com/calendar/answer/37083&quot;&gt;Create &amp; manage a public Google calendar&lt;/a&gt;):&lt;br/&gt;&lt;br/&gt;
&lt;center&gt;&lt;iframe width=&quot;420&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/XJncJK1OVWM&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;br/&gt;
Although you can change it later, try to give the calendar a &lt;b&gt;meaningful name&lt;/b&gt; (or title). Keep in mind that a long name may not show completely on mobile devices, so place the most significant parts of the name in the beginning. Here are some examples of calendar names that I used, so you may want to follow a similar format:&lt;br/&gt;
&lt;br/&gt;
&lt;ul type=&quot;square&quot;&gt;
&lt;li&gt;
&lt;i&gt;CCHAT, Sacramento (School Calendar)&lt;/i&gt; (see &lt;a href=&quot;https://www.google.com/calendar/embed?src=gbln8plmtd01vn68hnk37p0i6k%40group.calendar.google.com&amp;ctz=America/Los_Angeles&quot;&gt;preview&lt;/a&gt;)
&lt;/li&gt;
&lt;li&gt;
&lt;i&gt;CMP (School Calendar)&lt;/i&gt; (see &lt;a href=&quot;https://www.google.com/calendar/embed?src=9n47fiagp31m4ju9r1kfkquums%40group.calendar.google.com&amp;ctz=America/Los_Angeles&quot;&gt;preview&lt;/a&gt;)
&lt;/li&gt;
&lt;/ul&gt;
&lt;br/&gt;
If you want to allow other &lt;b&gt;administrators&lt;/b&gt; to maintain the calendar (create and make changes to the events), set appropriate sharing &lt;b&gt;permissions&lt;/b&gt; (read the &lt;a href=&quot;https://support.google.com/calendar/answer/37082&quot; title=&quot;Share your calendar with someone&quot;&gt;Control what others can see&lt;/a&gt; help section).&lt;br/&gt;
&lt;br/&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Add events to the calendar&lt;/b&gt;&lt;br/&gt;
To make sure you add an event to the wright calendar, when you work with your school calendar, temporarily turn off all other calendars. Here are some tips.&lt;br/&gt;
&lt;br/&gt;
When naming events, follow the same &lt;b&gt;naming convention&lt;/b&gt;. To make it easier for subscribers identify which calendar an event belongs to, include a short name of the school in the name of event. Here are some examples of event names that I used for a California Montessori Project&#39;s school calendar (you can &lt;a href=&quot;https://www.google.com/calendar/embed?src=9n47fiagp31m4ju9r1kfkquums%40group.calendar.google.com&amp;ctz=America/Los_Angeles&quot;&gt;browse the calendar&lt;/a&gt; to see more examples and details):&lt;br/&gt;
&lt;br/&gt;
&lt;ul type=&quot;square&quot;&gt;
&lt;li&gt;&lt;i&gt;Minimum Day (CMP)&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;School Break (CMP)&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;School Holiday (CMP)&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;School Closed (CMP)&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Last Day of School/Minimum Day (CMP)&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br/&gt;
As you may have noticed, I prefer to keep titles short and simple, but I also use the description field for additional information.&lt;br/&gt;
&lt;br/&gt;
Include details that parents may find useful in the event &lt;b&gt;description&lt;/b&gt;. You can use description for special instructions or any type of information you would normally provide in a letter or email invitation.&lt;br/&gt;
&lt;br/&gt;
For off-site events, specify the &lt;b&gt;address&lt;/b&gt; in the location field. The address will help parents find location on map and use navigation apps.&lt;br/&gt;
&lt;br/&gt;
For some events, such as minimum days, it may make sense to set up &lt;b&gt;reminders&lt;/b&gt;. Keep in mind that that parents may need time to travel, so give them enough time (I&#39;d say, for a full-day event, a 12-hour advanced reminder would be fine, while for all other events, an hour would be enough). Use pop-ups for reminders.&lt;br/&gt;
&lt;br/&gt;
For &lt;b&gt;repeating&lt;/b&gt; or &lt;b&gt;multi-day&lt;/b&gt; events (such as regular after school activities or school breaks), set up occurrence rules (do not duplicate events).&lt;br/&gt;
&lt;br/&gt;
Instead of creating each event from scratch, use the &lt;a href=&quot;http://blog.ditoweb.com/2012/01/creating-duplicate-event-in-google.html&quot; title=&quot;Creating a Duplicate Event in Google Calendar&quot;&gt;Duplicate Event&lt;/a&gt; feature, which allows you to &lt;b&gt;copy&lt;/b&gt; an existing event, and then update all relevant information. For example, when defining school holidays, set up an even for the Labor Day (I think it&#39;s the first holiday in a typical school year), make sure you use proper naming convention and define event details. Then duplicate it to make an entry for Veteran&#39;s Day (don&#39;t forget to adjust event information), and continue doing the same for other school holidays.&lt;br/&gt;
&lt;br/&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Advertise the calendar&lt;/b&gt;&lt;br/&gt;
Once you get the calendar up and running, you send its address (the &lt;a href=&quot;https://en.wikipedia.org/wiki/Uniform_Resource_Locator&quot;&gt;URL&lt;/a&gt; of the calendar&#39;s &lt;a href=&quot;https://en.wikipedia.org/wiki/ICalendar&quot;&gt;ICS file&lt;/a&gt;) to the parents. At the time of writing, you could locate the calendar address by following this steps:&lt;br/&gt;&lt;br/&gt;
&lt;ul type=&quot;square&quot;&gt;
&lt;li&gt;Open your &lt;a href=&quot;https://www.google.com/calendar&quot;&gt;Google calendar&lt;/a&gt; page.&lt;/li&gt;
&lt;li&gt;Click the settings (gear) button in the top right corner, and select the &lt;b&gt;Settings&lt;/b&gt; option from the pop-up menu.&lt;/li&gt;
&lt;li&gt;Under the &lt;b&gt;Calendar Settings&lt;/b&gt; heading, click the &lt;b&gt;Calendars&lt;/b&gt; tab link.&lt;/li&gt;
&lt;li&gt;Click the name of your public school calendar displayed in the &lt;b&gt;My Calendars&lt;/b&gt; section.&lt;/li&gt;
&lt;li&gt;Scroll down to the &lt;b&gt;Calendar Address&lt;/b&gt; section and click the &lt;b&gt;iCal&lt;/b&gt; button (make sure you use the public iCal address and not the private one).&lt;/li&gt;
&lt;/ul&gt;
&lt;br/&gt;
A window will pop up showing the calendar address that looks like this:&lt;br/&gt;
&lt;br/&gt;
&lt;i&gt;https://www.google.com/calendar/ical/abcd0efghi23jk45lmn45o6pqr%40group.calendar.google.com/public/basic.ics&lt;br/&gt;&lt;/i&gt;
&lt;br/&gt;
Make sure that the address ends with the &lt;i&gt;.ics&lt;/i&gt; extension. This is the address of the calendar that you will need to share with parents.&lt;br/&gt;
&lt;br/&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Maintain the calendar&lt;/b&gt;&lt;br/&gt;
You can use the same calendar year over year and make changes to it at any time. All changes to the calendar will be automatically delivered to the subscribers. As a bonus, you can also &lt;a href=&quot;https://support.google.com/calendar/answer/41207/&quot;&gt;add a Google calendar to your website&lt;/a&gt;.&lt;br/&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;a name=&quot;Subscribe&quot;&gt;&lt;/a&gt;&lt;b&gt;Calendar subscription process&lt;/b&gt;&lt;br/&gt;
To see calendar events on your mobile device, such as phone or tablet, do  the following:
&lt;ol&gt;
&lt;li&gt;
&lt;b&gt;Subscribe to calendar&lt;/b&gt;&lt;br/&gt;
Parents subscribe to the calendar using the provided address of the iCAL (.ics) file. The steps are outlined in the &lt;a href=&quot;https://support.google.com/calendar/answer/37100&quot;&gt;Add someone else&#39;s Google calendar&lt;/a&gt; article (see the &lt;b&gt;Add using a link&lt;/b&gt; section). Alternatively, you can subscribe to a calendar by clicking the &lt;i&gt;Add to Google Calendar&lt;/i&gt; shortcut displayed at the bottom right corner of the calendar&#39;s HTML page.&lt;br/&gt;
&lt;br/&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Sync calendar with phone&lt;/b&gt;&lt;br/&gt;
If you do not see the school calendar events reflected on your phone (or other mobile device&#39;s) calendar, you may need to make a couple of adjustments. First, follow the instructions outlined in the &lt;a href=&quot;https://support.google.com/calendar/answer/151674&quot;&gt;Sync Calendar with a phone or tablet&lt;/a&gt; article. Depending on the device configuration, it may not be enough, so follow your device maker&#39;s recommendations. For example, here are instructions for &lt;a href=&quot;http://www.microsoft.com/en-us/mobile/support/faq/?action=singleTopic&amp;topic=FA142574&quot; title=&#39;How do I synchronize my shared Google calendars (“Other calendars”)?&#39;&gt;Windows&lt;/a&gt; and &lt;a href=&quot;http://www.howtogeek.com/97566/how-to-sync-your-shared-google-calendars-with-your-iphone/&quot; title=&quot;How To Sync Your Shared Google Calendars with Your iPhone&quot;&gt;iPhone&lt;/a&gt; users. For an Android device, you many need to clear calendar data and resync the calendar (if you are not sure how to do this, search for: &lt;i&gt;&amp;lt;your device name&amp;gt; +clear +calendar +data&lt;/i&gt; and &lt;i&gt;&amp;lt;your device name&amp;gt; +sync +calendar&lt;/i&gt;).&lt;br/&gt;
&lt;br/&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;tip&quot;&gt;
LINKS FOR &lt;a href=&quot;http://or.cacmp.org/&quot;&gt;&lt;b&gt;CMP, ORANGEVALE&lt;/b&gt;&lt;/a&gt; PARENTS:&lt;br/&gt;
&lt;br/&gt;

&lt;a href=&quot;http://www.or.cacmp.org/calMonthView.aspx?y=2017&amp;m=11&amp;schoolid=4&amp;t=0&quot;&gt;&lt;b&gt;CMP&lt;/b&gt;, Orangevale School Calendar Page&lt;/a&gt; (&lt;a href=&quot;http://bit.ly/CMPOrangevaleOfficialCalendar&quot;&gt;short link&lt;/a&gt;) * | &lt;a href=&quot;http://www.or.cacmp.org/ical.ashx?e=&amp;s=4&amp;t=1:51:32:2:25:26:24:56:57:58:59&amp;sd=11/1/2017&amp;ed=9/30/2020&amp;wk=&amp;n=Events&amp;v=&amp;l=&amp;dee=true&quot;&gt;&lt;b&gt;CMP&lt;/b&gt;, Orangevale Calendar (iCAL) file&lt;/a&gt;&lt;br/&gt;

&lt;!--
&lt;a href=&quot;&quot;&gt;&lt;b&gt;CMP&lt;/b&gt;, Orangevale School Calendar Page&lt;/a&gt; (&lt;a href=&quot;http://bit.ly/CMPOrangevaleCalendar&quot;&gt;short link&lt;/a&gt;) ** | &lt;a href=&quot;https://calendar.google.com/calendar/ical/9n47fiagp31m4ju9r1kfkquums%40group.calendar.google.com/public/basic.ics&quot;&gt;&lt;b&gt;CMP&lt;/b&gt;, Orangevale Calendar (iCAL) file&lt;/a&gt;&lt;br/&gt;
--&gt;

&lt;a href=&quot;https://calendar.google.com/calendar/embed?src=blvbb0dt9blbpram9odrsallgc%40group.calendar.google.com&amp;ctz=America/Los_Angeles&quot;&gt;&lt;b&gt;Crater Lake&lt;/b&gt;, CMP, Class Calendar Page&lt;/a&gt; (&lt;a href=&quot;http://bit.ly/CraterLakeeCalendar&quot;&gt;short link&lt;/a&gt;) ** | &lt;a href=&quot;https://calendar.google.com/calendar/ical/blvbb0dt9blbpram9odrsallgc%40group.calendar.google.com/public/basic.ics&quot;&gt;&lt;b&gt;Crater Lake&lt;/b&gt;, CMP, Class Calendar (iCAL) file&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://calendar.google.com/calendar/embed?src=44o97jb70k3j1v6drr7q034g2g%40group.calendar.google.com&amp;ctz=America/Los_Angeles&quot;&gt;&lt;b&gt;Denali&lt;/b&gt;, CMP, Class Calendar Page&lt;/a&gt; (&lt;a href=&quot;http://bit.ly/DenaliCalendar&quot;&gt;short link&lt;/a&gt;) ** | &lt;a href=&quot;https://calendar.google.com/calendar/ical/44o97jb70k3j1v6drr7q034g2g%40group.calendar.google.com/public/basic.ics&quot;&gt;&lt;b&gt;Denali&lt;/b&gt;, CMP, Class Calendar (iCAL) file&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
LINKS FOR &lt;a href=&quot;http://www.cchatsacramento.org/&quot;&gt;&lt;b&gt;CCHAT, SACRAMENTO&lt;/b&gt;&lt;/a&gt; PARENTS:&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;https://calendar.google.com/calendar/embed?src=gbln8plmtd01vn68hnk37p0i6k%40group.calendar.google.com&amp;ctz=America/Los_Angeles&quot;&gt;&lt;b&gt;CHAT&lt;/b&gt;, Sacramento School Calendar Page&lt;/a&gt; (&lt;a href=&quot;http://bit.ly/CCHATSacramentoCalendar&quot;&gt;short link&lt;/a&gt;) * | &lt;a href=&quot;https://calendar.google.com/calendar/ical/gbln8plmtd01vn68hnk37p0i6k%40group.calendar.google.com/public/basic.ics&quot;&gt;&lt;b&gt;CCHAT&lt;/b&gt;, Sacramento School Calendar (iCAL) file&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;i&gt;* You can add this school calendar by clicking the iCAL / YEARLY link at the top of the calendar page.&lt;/i&gt;&lt;br/&gt;
&lt;i&gt;** You can add this school calendar to your Google calendars by clicking the link at the bottom right corner of the calendar page.&lt;/i&gt;&lt;br/&gt;
&lt;/div&gt;

Easy? I think so.&lt;br/&gt;
&lt;br/&gt;
I&#39;m almost done, but before we part, one final though. In fact, this is the first question you need to address:
&lt;blockquote&gt;How many calendars do you want to keep?&lt;/blockquote&gt; 
Do you want to maintain a &lt;b&gt;single&lt;/b&gt; district calendar or &lt;b&gt;multiple&lt;/b&gt; calendars? Do you need a separate &lt;b&gt;calendars&lt;/b&gt; for primary, middle, and high schools? Do you want the calendar to include the information relevant to teachers and staff (such as training)? Depending on the size of your district, differences in school schedules, and other factors, you may choose one approach over another. As a &lt;b&gt;parent&lt;/b&gt;, I&#39;d like a single &lt;b&gt;school&lt;/b&gt; calendar with information relevant to students only and a &lt;b&gt;class&lt;/b&gt; calendar reflecting class-specific events, such as field trips, project deadlines, and due dates. I do not care when and where teachers and staff attend training, but I do care when the school is closed, but others may have other preferences.&lt;br/&gt;
&lt;br/&gt;
I hope this information was helpful. If you have questions or want to leave feedback, please leave a comment.&lt;br/&gt;
&lt;br/&gt;
See also:&lt;br/&gt;
&lt;a href=&quot;http://www.tildee.com/eU3sDe&quot;&gt;Embedding Google Calendar in eChalk&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://apple.stackexchange.com/questions/135310/can-i-get-my-google-calendar-shown-in-my-icloud-calendar-on-my-pc&quot;&gt;Can I get my Google Calendar shown in my iCloud Calendar on my PC?&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/6889085524680677111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2015/10/how-to-create-and-share-school-calendar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/6889085524680677111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/6889085524680677111'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2015/10/how-to-create-and-share-school-calendar.html' title='How to create and share a school calendar using Google'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-685732260952124185</id><published>2015-03-05T15:27:00.000-08:00</published><updated>2015-03-05T15:31:17.958-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="api"/><category scheme="http://www.blogger.com/atom/ns#" term="demo"/><category scheme="http://www.blogger.com/atom/ns#" term="documentation"/><category scheme="http://www.blogger.com/atom/ns#" term="presentation"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="sandcastle"/><category scheme="http://www.blogger.com/atom/ns#" term="technologies"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>Build API documentation with Sandcastle Help File Builder</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to build awesome API documentation using Visual Studio, XML code comments, Microsoft Markup Assistance Language (MAML), and Sandcastle Help File Builder (SHFB).&lt;/div&gt;
A couple of weeks ago, I &lt;a href=&quot;http://www.meetup.com/SacNetUG/events/219951355/&quot;&gt;gave&lt;/a&gt; this presentation to the &lt;a href=&quot;http://www.meetup.com/SacNetUG/&quot;&gt;Sacramento .NET User Group&lt;/a&gt;:&lt;br/&gt;
&lt;br/&gt;
&lt;center&gt;
&lt;iframe src=&quot;//www.slideshare.net/slideshow/embed_code/44224786&quot; width=&quot;595&quot; height=&quot;485&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot; style=&quot;border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px; max-width: 100%;&quot; allowfullscreen&gt;&lt;/iframe&gt; 
&lt;div style=&quot;margin-bottom:5px&quot;&gt;&lt;a href=&quot;//www.slideshare.net/alekdavis/beyond-comments&quot; title=&quot;Beyond Comments: How to Build an Awesome API Doc and Be a Better Person&quot; target=&quot;_blank&quot;&gt;View on SlideShare&lt;/a&gt;&lt;/div&gt;
&lt;/center&gt;
&lt;br/&gt;
The presentation explains how to build first-class API documentation using Visual Studio, &lt;a href=&quot;https://github.com/EWSoftware/SHFB&quot;&gt;Sandcastle&lt;/a&gt;, and other tools and technologies. The goal of the presentation is to show how to build documentation with less effort and more fun.&lt;br/&gt;
&lt;br/&gt;
The PowerPoint file (with links and notes) and the demo project can be found here:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://app.box.com/s/j0qw05z4gdcg6akayvktyn8y1ay3v8mj&quot;&gt;PowerPoint presentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/alekdavis/Mailr&quot;&gt;VisualStudio 2013 demo project&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
The demo project page outlines the dependencies and requirements for building the solution and using the assemblies.&lt;br/&gt;
&lt;br/&gt;
If you run into any issues or have questions, please post a comment below or contact me directly.</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/685732260952124185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2015/03/build-api-documentation-with-sandcastle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/685732260952124185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/685732260952124185'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2015/03/build-api-documentation-with-sandcastle.html' title='Build API documentation with Sandcastle Help File Builder'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-6465933551993936261</id><published>2015-02-13T17:31:00.010-08:00</published><updated>2023-05-25T11:21:46.377-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="technobrief"/><title type='text'>Technobrief #15</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: Recent (and not so recent) findings of software, articles, and more.&lt;/div&gt;
&lt;b&gt;CSS&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://learnlayout.com/&quot;&gt;Learn CSS Layout&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
This site teaches the CSS fundamentals that are used in any website&#39;s layout.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://css-tricks.com/responsive-menu-concepts/&quot;&gt;Responsive Menu Concepts&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Discusses four main concepts for building responsive menus.
&lt;/li&gt;
&lt;/ul&gt;

&lt;b&gt;Design&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.webdesignerdepot.com/2015/02/50-incredible-freebies-for-web-designers-february-2015/&quot;&gt;50 Incredible Freebies for Web Designers, February 2015&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Free icon sets, templates, color palettes, and more.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.webdesignerdepot.com/2014/06/6-steps-to-perfecting-minimalism-in-web-design/&quot;&gt;6 Steps to Perfecting Minimalism in Web Design&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Some ideas on making your website more user-friendly.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://goodui.org/&quot;&gt;Good UI Ideas&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
A running list of ideas for improving UI usability for both owners and customers.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.webdesignerdepot.com/2013/07/how-to-modify-bootstrap-simply-and-effectively/&quot;&gt;How to Modify Bootstrap Quickly and Effectively&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Introduces several tools and options for &lt;a href=&quot;http://getbootstrap.com/&quot;&gt;Bootstrap&lt;/a&gt; UI modification.
&lt;/li&gt;
&lt;/ul&gt;

&lt;b&gt;Fonts&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.webdesignerdepot.com/2014/05/101-essential-free-fonts-for-web-designers/&quot;&gt;101 Essential Free Fonts for Web Designers&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Fonts that are genuinely free (not just one style or weight free), a balance of fonts that work well for body text as well as display, and a full collection of fonts that are pleasing to the eye.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://webdesignledger.com/freebies/10-best-new-free-fonts&quot;&gt;10 Best New Free Fonts&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
A small, yet very good, collection.
&lt;/li&gt;
&lt;/ul&gt;

&lt;b&gt;Graphics&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.freepik.com/&quot;&gt;Graphic resources for everyone&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Find free vectors, PSD, icons and photos.
&lt;/li&gt;
&lt;/ul&gt;

&lt;b&gt;JavaScript&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://kumailht.com/gridforms/&quot;&gt;Gridforms&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
A tiny Javascript/CSS framework that helps you make forms on grids with ease.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://freqdec.github.io/slabText/&quot;&gt;SlabText&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
A JQuery plugin for producing big, bold, and responsive headlines.
&lt;/li&gt;
&lt;/ul&gt;

&lt;b&gt;Programming&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.webdesignerdepot.com/2014/11/the-ultimate-guide-to-getting-started-with-foundation/&quot;&gt;The Ultimate Guide for Getting Started with Foundation&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Introduction to &lt;a href=&quot;http://foundation.zurb.com/&quot;&gt;Foundation&lt;/a&gt;: one of the two big-name HTML/CSS/JS frameworks for front-end developers.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://code.tutsplus.com/tutorials/say-hello-to-powershell--net-32056&quot;&gt;Say Hello to PowerShell&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
A brief tutorial.
&lt;/li&gt;
&lt;/ul&gt;

&lt;b&gt;Software&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.dvdstyler.org/en/&quot;&gt;DVDStyler&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Free slide show and DVD authoring tool. Important features: allows creation of interactive menus (from templates), support for multiple video formats.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;https://www.glasswire.com/&quot;&gt;GlassWire&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Free network monitor &amp;amp; security tool with a built in firewall.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.lwks.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=102&amp;amp;Itemid=213&quot;&gt;LightWorks Free&lt;/a&gt;
&lt;/b&gt;&lt;br /&gt;
The free version of a video editing application (see limitation in the version comparison charts).
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://mp3diags.sourceforge.net/&quot;&gt;MP3 Diags&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Identifies and fixes problems in MP3 files, such as duplicate tags, wrong audio duration, character encoding, and many others.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://www.babelsoft.net/products.htm&quot;&gt;Windows Media Preview&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Shows thumbnails for all media files in Windows Explorer.
&lt;/li&gt;
&lt;/ul&gt;

&lt;b&gt;Tools&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;http://windowssecrets.com/newsletter/a-dozen-tools-for-removing-almost-any-malware/#story1&quot;&gt;A Dozen Tools for Removing Almost Any Malware&lt;/a&gt;&lt;/b&gt;
An article providing all the information needed to remove even the most tenacious malware infestation.
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;&lt;a href=&quot;https://ifttt.com/&quot;&gt;ITTT (If This Then That)&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
Create alerts and notifications for a wide range of conditions: weather, shopping, etc.
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://looksgoodworkswell.blogspot.com/2012/11/list-of-mockupprototyping-tools.html&quot;&gt;&lt;b&gt;List of Mockup/Prototyping Tools&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
An extensive collection (although, with no descriptions).
&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/6465933551993936261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2015/02/technobrief-15.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/6465933551993936261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/6465933551993936261'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2015/02/technobrief-15.html' title='Technobrief #15'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-1559754445998891153</id><published>2014-03-27T13:22:00.003-07:00</published><updated>2014-10-02T14:03:23.230-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="technologies"/><title type='text'>Build responsive websites with Visual Studio 2013 and Bootstrap 3.0</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: Materials for the Sacramento .NET User Group presentation.&lt;/div&gt;
Thanks a lot to everyone who attended my &lt;a href=&quot;http://www.meetup.com/SacNetUG/events/172828902/?_af_eid=172828902&amp;amp;_af=event&amp;amp;a=uc1_vm&quot;&gt;presentation&lt;/a&gt; yesterday. You have been an awesome audience. Also, many thanks to Josh Gurin (&lt;a href=&quot;http://www.teksystems.com/&quot;&gt;TEKsystems&lt;/a&gt;) for the pizzas and wings and &lt;a href=&quot;http://blogs.msdn.com/b/jasonsingh/&quot;&gt;Jason Singh&lt;/a&gt; (Microsoft) for the excellent meeting space. I was a bit concerned about parking, but there were lots of free after 6 PM parking spaces around the building.&lt;br/&gt;
&lt;br/&gt;
Here are the materials I promised:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://app.box.com/s/x3qtbo2xsor1zb2380d5&quot;&gt;PowerPoint presentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://app.box.com/s/d691g40ikck9770ut25l&quot;&gt;Visual Studio 2013 demo project&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
In case you don&#39;t want to bother downloading the files, here is the presentation:&lt;br/&gt;
&lt;br/&gt;
&lt;center&gt;
&lt;iframe src=&quot;https://www.slideshare.net/slideshow/embed_code/32824456&quot; width=&quot;595&quot; height=&quot;485&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot; style=&quot;border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px; max-width: 100%;&quot; allowfullscreen&gt;&lt;/iframe&gt;
&lt;div style=&quot;margin-bottom:5px&quot;&gt;&lt;a href=&quot;https://www.slideshare.net/alekdavis/bootstrap-32824456&quot; title=&quot;Build responsive websites with Visual Studio 2013 and Bootstrap 3.0&quot; target=&quot;_blank&quot;&gt;View on SlideShare&lt;/a&gt;&lt;/div&gt;
&lt;/center&gt;
&lt;br/&gt;
The PowerPoint slides provide the same information as the web application built by the demo project. If you only want to check references and resources mentioned at the session, just use the slides. If you intend to see how the concepts were applied in the actual application, get the project. When you run the demo app, you will see the same content available in the presentation, although in a slightly different format. Links should work from both the presentation and the demo app.&lt;br/&gt;
&lt;br/&gt;
If you run into any issues or have questions, please post a comment below or contact me directly.&lt;br/&gt;
&lt;br/&gt;
See also:&lt;br/&gt;
&lt;a href=&quot;http://www.webdesignerdepot.com/2014/10/the-ultimate-guide-to-bootstrap/&quot;&gt;The ultimate guide to Bootstrap&lt;/a&gt; by By Cameron Chapman&lt;br/&gt;
&lt;a href=&quot;http://marketblog.envato.com/resources/bootstrap-admin-templates/&quot;&gt;25 Free &amp; Premium Bootstrap Admin Templates&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/1559754445998891153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2014/03/responsive-websites-visual-studio-2013.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/1559754445998891153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/1559754445998891153'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2014/03/responsive-websites-visual-studio-2013.html' title='Build responsive websites with Visual Studio 2013 and Bootstrap 3.0'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-7506558677113055177</id><published>2013-05-10T13:59:00.001-07:00</published><updated>2013-10-09T12:48:19.992-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="windows installer"/><category scheme="http://www.blogger.com/atom/ns#" term="wix"/><title type='text'>WiX woes: What is your installer doing?</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: How to detect different modes of installation.&lt;/div&gt;
When building an application installer, it&#39;s often necessary to distinguish between different &lt;b&gt;modes of installation&lt;/b&gt;, i.e. &lt;b&gt;initial&lt;/b&gt; installation, &lt;b&gt;repair&lt;/b&gt;, &lt;b&gt;upgrade&lt;/b&gt;, &lt;b&gt;uninstall&lt;/b&gt;, etc. And as with everything important in MSI, &lt;b&gt;detecting the mode&lt;/b&gt; of installation is a &lt;a href=&quot;http://www.urbandictionary.com/define.php?term=PITA&quot;&gt;PITA&lt;/a&gt; (and by &lt;i&gt;PITA&lt;/i&gt;, I do not mean &lt;i&gt;flat bread of Mediterranean origin&lt;/i&gt;). To help you a little bit, here is a table adopted from a &lt;a href=&quot;http://stackoverflow.com/questions/320921/how-to-add-a-wix-custom-action-that-happens-only-on-uninstall-via-msi&quot; title=&quot;How to add a WiX custom action that happens only on uninstall (via MSI)?&quot;&gt;StackOverflow topic&lt;/a&gt; (and comments), that shows the values of various &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/windows/desktop/aa370905(v=vs.85).aspx&quot; title=&quot;Windows Installer: Property Reference&quot;&gt;Windows Installer properties&lt;/a&gt; can help you determine the installation mode:&lt;br/&gt;
&lt;br&gt;
&lt;center&gt;
&lt;table cellpadding=&quot;5px&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #528bc5;&quot;&gt;&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #528bc5; color: white;&quot;&gt;Install&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #528bc5; color: white;&quot;&gt;Uninstall&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #528bc5; color: white;&quot;&gt;Repair&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #528bc5; color: white;&quot;&gt;Modify&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #528bc5; color: white;&quot;&gt;Upgrade&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef;&quot;&gt;INSTALLED&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: red;&quot;&gt;FALSE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: red;&quot;&gt;FALSE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td nowrap=&quot;yes&quot;&gt;REINSTALL&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: red;&quot;&gt;FALSE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: red;&quot;&gt;FALSE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: red;&quot;&gt;FALSE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef;&quot;&gt;REMOVE=&quot;ALL&quot;&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: red;&quot;&gt;FALSE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: red;&quot;&gt;FALSE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;background-color: #efefef; color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td nowrap=&quot;yes&quot;&gt;UPGRADINGPRODUCTCODE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: red;&quot;&gt;FALSE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;td nowrap=&quot;yes&quot; style=&quot;color: green;&quot;&gt;TRUE&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/center&gt;
&lt;br/&gt;
You can use logical operators &lt;span class=&quot;code&quot;&gt;NOT&lt;/span&gt;, &lt;span class=&quot;code&quot;&gt;AND&lt;/span&gt;, &lt;span class=&quot;code&quot;&gt;&lt;/span&gt; &lt;span class=&quot;code&quot;&gt;OR&lt;/span&gt; to build complex conditions.&lt;br/&gt;
&lt;br/&gt;
Here is how you can detect some &lt;b&gt;common conditions&lt;/b&gt;:&lt;br/&gt;
&lt;br/&gt;
First-time installation
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;code&quot;&gt;NOT Installed&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
Any installation
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;code&quot;&gt;NOT Installed AND NOT PATCH&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
Installation and repairs
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;code&quot;&gt;NOT REMOVE&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
First-time installation and repairs
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;code&quot;&gt;NOT Installed OR MaintenanceMode=&amp;quot;Modify&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
Upgrades only (during uninstall phase)
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;code&quot;&gt;Installed AND UPGRADINGPRODUCTCODE&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
Upgrades
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;code&quot;&gt;Installed AND NOT REMOVE&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
Full uninstall (except when triggered by a major upgrade)
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;code&quot;&gt;(REMOVE=&quot;ALL&quot;) AND (NOT UPGRADINGPRODUCTCODE)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
Any uninstall
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;code&quot;&gt;REMOVE~=&quot;ALL&quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
If you notice errors or want to include some other conditions, please post a comment.&lt;br/&gt;
&lt;br/&gt;
See also:&lt;br/&gt;
&lt;a href=&quot;http://code.dblock.org/msi-property-patterns-upgrading-firstinstall-and-maintenance&quot;&gt;MSI Property Patterns: Upgrading, FirstInstall and Maintenance&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://code.dblock.org/upgrading-freshinstall-maintenance-and-other-msi-convenience-properties&quot;&gt;Upgrading, FreshInstall, Maintenance and other MSI convenience properties&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://wyrdfish.wordpress.com/2012/07/20/msi-writing-guidelines-this-may-be-out-of-date/&quot;&gt;MSI Writing Guidelines: Installation Scenarios&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/537584/how-to-execute-custom-action-only-in-install-not-uninstall&quot;&gt;How to execute custom action only in install (not uninstall)&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/7506558677113055177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2013/05/wix-woes-what-is-your-installer-doing.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/7506558677113055177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/7506558677113055177'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2013/05/wix-woes-what-is-your-installer-doing.html' title='WiX woes: What is your installer doing?'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956572409605655558.post-532724472827161476</id><published>2013-04-25T12:42:00.000-07:00</published><updated>2013-04-26T09:48:15.785-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="security"/><title type='text'>My Walmart account was hacked</title><content type='html'>&lt;div class=&quot;summary&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;: Lessons from my Walmart account hacking incident.&lt;/div&gt;
Out of the blue, I get an email from &lt;b&gt;Walmart&lt;/b&gt;:
&lt;blockquote&gt;&lt;i&gt;Dear Alek Davis,&lt;br/&gt;
&lt;br/&gt;
Personal information associated with your Walmart.com account - name, email address and/or
password - has been successfully updated as requested. If the account change included an update to
the email, for your added security this account update confirmation is sent to both the new and old
email addresses. All future emails will be sent to the new address only.&lt;br/&gt;
&lt;br/&gt;
If the account information update is correct, no further action is needed.&lt;br/&gt;
&lt;br/&gt;
If you did not make these changes to your account, please call us immediately at 1-800-966-6546.&lt;br/&gt;
&lt;br/&gt;
If you have any questions, please reply to this email and let us know how we can help.&lt;br/&gt;
&lt;br/&gt;
We appreciate the opportunity to assist you and look forward to your next visit.&lt;br/&gt;
&lt;br/&gt;
Sincerely,&lt;br/&gt;
&lt;br/&gt;
Your Walmart.com Customer Service Team&lt;/i&gt;&lt;/blockquote&gt;
I try to log on to my Walmart account and fail to authenticate. I attempt to use the &lt;i&gt;I Forgot My Password&lt;/i&gt; feature, but get a message stating that my email address is not registered with Walmart. It&#39;s obvious: &lt;b&gt;someone hacked my Walmart account&lt;/b&gt;!&lt;br/&gt;
&lt;br/&gt;
I call the above mentioned 1-800 number, but the customer support department is closed (it&#39;s around 10 PM PST, but apparently, the &lt;a href=&quot;http://en.wikipedia.org/wiki/Walmart&quot;&gt;world&#39;s largest retailer&lt;/a&gt; cannot afford 24x7 customer support). There is no option to report the problem online. What&#39;s a girl to do?&lt;br/&gt;
&lt;br/&gt;
The best thing I can do is send an email reply describing the problem. I get a canned response indicating that I will get a human response within 24 hours. Okay, what&#39;s next?&lt;br/&gt;
&lt;br/&gt;
Results from a quick &lt;a href=&quot;https://www.google.com/search?q=walmart++account+hacked&quot;&gt;Google search&lt;/a&gt; suggest that a common pattern of &lt;b&gt;Walmart hacking&lt;/b&gt; involves using saved credit card data to &lt;b&gt;purchase digital goods&lt;/b&gt;. So, I log on to my credit card&#39;s account (for the card that I normally use at &lt;a href=&quot;http://walmart.com&quot;&gt;Walmart.com&lt;/a&gt;) and see two unauthorized transactions: one in the amount of $60 (turns out to be &lt;i&gt;2 Straight Talk 1000-Minute, 1000-Text, 30MB Web Access Service Cards&lt;/i&gt;), and another in the amount of $50 (&lt;i&gt;2 SKYPE $25 Prepaid eGift Cards&lt;/i&gt;). I call the credit card company to report fraud. I also checked other credit cards that could&#39;ve been on file with Walmart, but do not notice anything suspicious.&lt;br/&gt;
&lt;br/&gt;
I try logging on to Walmart.com again, and notice a strange address popping up in the email field of the Sign In form for a second just before it is overwritten by my original (and no longer good) address filled in by &lt;a href=&quot;https://lastpass.com&quot;&gt;LastPass&lt;/a&gt;. Apparently, I have a low-security personalization cookie, that is not good for anything important (like checking or changing account info, or submitting orders), but it could give me some info about the hacker. I disable LastPass and reload the form. Get the email field populated with this address: &lt;b&gt;ssuper981@yahoo.com&lt;/b&gt;. Hello, hacker. How&#39;re you doing?&lt;br/&gt;
&lt;br/&gt;
Silly idea: what if I try to log in with my original password? The hacker can&#39;t be that careless, but... One... two... three... I&#39;m in! Dear, &lt;i&gt;ssuper981@yahoo.com&lt;/i&gt;, thank you for failing Hacking 101. I change my email address back, change the password, and remove all credit card info from the account. I see the two orders in the processing state, and successfully cancel one of them. I use a form to send an order cancellation request for the second purchase, but apparently the Skype eGift cards have been already sent. Well, it&#39;s now between Walmart and my credit card company to dispute the charge.&lt;br/&gt;
&lt;br/&gt;
What else can I do? I go to the &lt;a href=&quot;http://security.yahoo.com/&quot;&gt;Yahoo! Security Center&lt;/a&gt; and try to find an option to report fraudulent activity coming from a Yahoo! email, but Yahoo! does not provide any way to do this (via a form, email, or phone).&lt;br/&gt; 
&lt;br/&gt;
The next morning, I call Walmart (thank God Walmart can afford customer support during normal business hours) to report the incident to a human and have a short conversation with a nice woman (btw, have the companies started bringing customer support back from the foreign lands? talking to a motivated native speaker is so refreshing!). Now, it&#39;s time to get back to life, but first, lessons learned:
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;Never save credit card information when shopping online!&lt;/b&gt; Yeah, it&#39;s convenient, but may eventually cause more hassles.&lt;/li&gt;
&lt;li&gt;Read #1.&lt;/li&gt;
&lt;/ol&gt;
And a couple of comments:
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Walmart&lt;/b&gt;: No &lt;b&gt;24x7 customer support&lt;/b&gt;? Seriously? Even for security issues? Come on, you can do better!&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Walmart&lt;/b&gt;: Good call on sending &lt;b&gt;notification&lt;/b&gt; to old customer&#39;s email on personal profile changes. Have I not seen this message, it would have taken me much longer to realize that my account was hacked.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Walmart&lt;/b&gt;: Shouldn&#39;t user activity that starts with personal profile (and email) changes and is followed by an immediate purchase of digital goods raise a flag for &lt;b&gt;suspicious&lt;/b&gt; activity? I know that you rush to get a payment, but you see: you lost $60 (which could&#39;ve easily been $110), and I&#39;m sure you need that money to hire more support people (at the very least, for security related issues).&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Yahoo!&lt;/b&gt;: Would it be too much to ask for some way of reporting &lt;b&gt;fraudulent activity&lt;/b&gt; originating from a Yahoo! email account? Just asking.&lt;/li&gt;
&lt;/ul&gt;
Have a nice day, everyone. Be safe!</content><link rel='replies' type='application/atom+xml' href='http://alekdavis.blogspot.com/feeds/532724472827161476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://alekdavis.blogspot.com/2013/04/my-walmart-account-was-hacked.html#comment-form' title='41 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/532724472827161476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956572409605655558/posts/default/532724472827161476'/><link rel='alternate' type='text/html' href='http://alekdavis.blogspot.com/2013/04/my-walmart-account-was-hacked.html' title='My Walmart account was hacked'/><author><name>Alek Davis</name><uri>http://www.blogger.com/profile/00436676606581042455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnOElMnHc-sA1xgdO2QtrQqb9q4oieZOd6vEhKF6YLh4E5YOAsLRratCmp5499pveGbuHyhrI7qxuXj_Ioti6PCihLyNm7OEoSwnMo7k9RwCT0pOw2nYdqN4hErYKWmBsAGtOnA9GP71lBt4SMlgPMQGEy0tRPED8yAJdPyO4S4J6Pg/s220/DSC04706-1x1.jpg'/></author><thr:total>41</thr:total></entry></feed>