Tag: Javascript

Setup Nodejs + Typescript development environment

Setup Nodejs + Typescript development environment

Here is the summary: Install Nodejs Initialize Javascript project Convert to Typescript Install ts-node Prerequisite You would need a code editor installed on your system. I personally recommend Visual Studio Code as it has amazing support for Typescript. Install Nodejs Nodejs can be downloaded and installed from here. It will also include NPM (node package…

Read More Read More

Maximo Test Automation with Cypress

Maximo Test Automation with Cypress

Cypress.io is a newish front-end test automation tool. In my brief encounter with Cypress, I found it relatively easy to set up and get started. The development workflow from coding to writing tests and running them is refreshingly smooth as compared to other Selenium based tools. Cypress does have its own limitations though as explained…

Read More Read More

How Public Key Cryptography works? (RSA algorithm)

How Public Key Cryptography works? (RSA algorithm)

Public-key Cryptography is asymmetric meaning the key used for encryption cannot be used for decryption. There is a pair of keys, if the message is encrypted with one key, then the other is required for decryption. How Public-key Cryptography works conceptually? Let’s say Alice and Bob want to exchange messages in a secure way. To do it using…

Read More Read More

Calculate Modular Exponentiation (PowerMod) in Javascript (a^p % n)

Calculate Modular Exponentiation (PowerMod) in Javascript (a^p % n)

Computing PowerMod is required for implementing public-key cryptography as it is used to encrypt and decrypt data. Calculating it by regular arithmetic (i.e. calculating pth power of a) doesn’t work with large numbers used for encryption. That’s where PowerMod helps, it calculates the result by keeping the numbers significantly small and within range of the integer data type.…

Read More Read More

CodeSchool courses on JavaScript Frameworks

CodeSchool courses on JavaScript Frameworks

CodeSchool is a great site for introductory programming courses. With all guides and practice exercises available right within the browser, it is a hassle-free way to start learning. The design of the site is also very pleasing which enhances the overall experience. Recently, CodeSchool offered a free weekend pass to all their content. I took the…

Read More Read More

Convert C# code to JavaScript

Convert C# code to JavaScript

Update June 2019: Five years on, each one of the following projects is either discontinued or stale for years. While Bridge.Net has been active for many years and doing pretty well. There are some tools which convert C# code to JavaScript. Obviously, these will only be useful if your code is not tightly coupled with…

Read More Read More

How to embed chrome browser in .net application

How to embed chrome browser in .net application

Chrome browser can be embedded in native application taking a hybrid approach to development where application is partly developed in native technology and partly in web. This has several advantages: Salvage the existing investment in HTML/Javascript projects. The part of application written in web technology is platform independent. This is very important due to variety…

Read More Read More

Completed ‘HTML5 Game Development’ course from Udacity

Completed ‘HTML5 Game Development’ course from Udacity

I have been taking Massively Open Online Courses at Coursera, but this is the first one at Udacity. The two platforms take different approaches… Coursera is more like a virtual classroom while Udacity feels like a very well designed interactive tutorial. Udacity is self-paced with very short video clips interspersed with questions and quick programming…

Read More Read More

Passed Microsoft Exam 70-480: Programming in HTML5 with JavaScript and CSS3

Passed Microsoft Exam 70-480: Programming in HTML5 with JavaScript and CSS3

There is huge interest in HTML 5 among the web development community these days. Once again there is hope that we can ‘write once, and run anywhere’ with the latest version of HTML. The ability to run your code anywhere is very significant considering the plethora of devices (from smart phone to TVs) that we…

Read More Read More