Posts

Tensorflow.js load latest API and find/display the version

Working on Tensorflow.js API and wanted to find out how to accomplish the following: Load the latest Tensorflow.js API without recourse to the version number. Find out or print out the version of the library loaded. On the surface - these tasks look pretty simple and should not be any biggies but as usual, the Devil is in the details. Unfurtunately, I could not find any easy reference to accomplish them. Anyway, without much ado - following these steps would get you to El Dorado: <script src=" https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-vis@1.0.2/dist/tfjs-vis.umd.min.js "> </script> Add an event listener at the bottom of your htlm page, extract the version and spew it out to a place holder. <div id="version"> </div> <script> window.addEventListener('load', (event) => { ...

C# - Making Multiple instances from a STATIC class

STATIC classes are basically meant to be like global references in an application - created once and used for the lifetime of the application.  The primary advantage of this - apart from the obvious small footprint, is the fact that you don't need to instantiate a new instance of the class whenever you want to reference any of its members.  One of the requirements for using a STATIC class is that all the publicly accessible members must also be qualified with the STATIC reserved word.  Essentially, it means only one copy of the method is maintained throughout the life cycle of the application. In order to ensure some level of sanity, it is recommended that one does not pass parameters by reference to STATIC methods but rather, pass in your parameters by values, perform any processed needed and return any value - if needed, by value as well.  Sometimes though, you want to leverage on the simplicity offered by the STATIC class usage in terms of no instance - new clas...

Single Page Application – The myth, truth and chiefdoms.

Not sure how to start this, but start somehow, I must. If you are a software developer and you have not heard or come across the acronym – SPA – would really be a great surprise to me. This is not a really a full blown treatise about SPA – more of a pocket book definition or to be precise – a one page narration of SPA. So, I will tackle this write up using my preferred MO for presentation – the 5 Ws – What, Why, Where, When and Who . What is SPA – stands for Single Page Application – meaning you only have one SINGLE PAGE or container housing your application.  You may want to juxtapose this with another context in order to fully comprehend its full meaning. That will be dealt with in the “Why” definition. Why SPA – the main reason for the emergence of the SPA paradigm is primarily speed or instantaneous response to a user's interactions with controls or widgets on a web page. What does this mean? The traditional way of staging a web application is ...

SignalR - the latest BUZZWORD!

I love the computing industry, it is never in short supply of acronyms and buzzwords. One of the newly added ones is "SignalR" - which in its simplest form is actually a technology that allows FULL DUPLEX communication between the client and a Web server in real time. A typical web page is driven by HTTP ( which is the protocol through which the browser communicates with the server. The protocol in this case, is analogous to a LANGUAGE that is used for communicating between the client ( browser) and the server. The server supposedly, understands a plethora of languages but the language (Protocol) of preference for serving up web pages is called HTTP). The biggest challenge of HTTP has been its STATELESS form - which means - the SERVER ( web Server) does not maintain an open channel of communication directly with the client making a request. All it knows is that - a request came in from an address via a port, which is processed and then sent back to the address from wher...

Debugging XAML Binding with Silverlight 5

Image
I have been developing in Silverlight (SL) for a while and the biggest challenge has always been debugging the binding values in the XAML end. I came across this post which really explained how to go about it. For any data driven application with declarative data binding, with in XAML ,this brand new feature is the significant in many ways. Personally I remember most of the time i used to skip XAML way of binding as it lacked debugging feature. Now with Silverlight 5 my previous approach will surely take a back seat and will allow me to consider both ways equally. Prerequisites Makes sure that you have downloaded latest version Silverlight Toolkit SDK. If not download from here . Also make sure that you are running on VisualStudio SP1. The XAML Data binding The example demonstrated here implement basic XAML data binding with DomainDataSource control, lets look at the XAML binding of one of the controls. The XAML Debugging Setting Up Breakpoint As of now the XAML...

Windows 7 Environment Variables Update

Have you ever had a situation where you needed to update the environment variables and you were also forced to logout or reboot the system? Well - with these steps - you may be able to update the variables without rebooting. Initiate command prompt as administrator ( may work as non - not sure). Type: taskkill /f /im explorer.exe Then type: explorer.exe Type SET to confirm propagation of your changes

SILVERLIGHT – The Good, The Bad and The Ugly!

I have been on hiatus for a while – primarily due to work pressure. I have been using SILVERLIGHT technology for about a year now and I have come to grips with the good, the bad and the ugly of it. Basically, my opinion – SILVERLIGHT – is an over rated technology. There are so many missing pieces as well as security constraints. The main selling point of SILVERLIGHT was that it would give the same functionality or close to it, of what you could get from a desktop application. To understand that selling point – you need to contrast that to what the traditional Web application gives. Simply put – SILVERLIGHT – is just a derivative of a web application with taunted hybrid features of running as either a web application or running as Desktop application in OOB mode. The major drawback of standard web applications has been the lack of a TRUE RICH USER EXPERIENCE – largely due to the STATELESS STATE of the protocol – HTTP(S). I have done my own fair share of development in Desktop...