Showing posts with label Helpers. Show all posts
Showing posts with label Helpers. Show all posts

Wednesday, September 20, 2017

Portable color emulators for windows




  • Cmder is a software package created out of pure frustration over the absence of nice console emulators on Windows. 
  • It is based on amazing software, and spiced up with the Monokai color scheme and a custom prompt layout, looking sexy from the start


Thursday, February 16, 2017

Hypervisors

A hypervisor or virtual machine monitor (VMM) is computer software, firmware, or hardware, that creates and runs virtual machines.

A computer on which a hypervisor runs one or more virtual machines is called a host machine, and each virtual machine is called a guest machine. The hypervisor presents the guest operating systems with a virtual operating platform and manages the execution of the guest operating systems.


There are 2 types of hypervisor

Tuesday, January 24, 2017

Hide files in vs code



We can easily hide files in vscode .
  1. Click on file--> preferences --> work space settings
  2. Place your settings in settings.json
       

Sunday, December 25, 2016

What is Node.js?




  • Event-driven, non-blocking I/O model that makes it lightweight and efficient
  • Uses google's  Chrome's V8 JavaScript engine 
  • JavaScript which runs on your computer
  • Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world

Declarative vs imperative programming




Declarative :
  • Write code what you want but not  necessarily how to get it (Declare the desired results but not the step-by-step)
  • A style of building the structure and elements of computer programs—that expresses the logic of a computation without describing its control flow.
  • Minimize or eliminate the side effects by describing what program should accomplish 
  • How is left to the problem implementation
  • Only thing a function can do is calculate something and return it as a result.

   Declarative languages include, SQL, React, Functional programming like haskell

Functional Prgramming

  •  In purely functional programming you don't tell the computer what to do as such but rather you tell it what stuff is
  • if a function is called twice with the same parameters, it's guaranteed to return the same result. That's called referential transparency and not only does it allow the compiler to reason about the program's behavior, but it also allows you to easily deduce (and even prove) that a function is correct and then build more complex functions by gluing simple functions together


var results = collection.Where( num => num % 2 != 0);
Imperative :

  • Tell the compiler what you want to happen step by step
  • Java, C, C#  is imperative
  • Main method of computation is assignment variable
  • Implements algorithms in explicit steps.

Saturday, August 27, 2016

Frame Box - Lightweight online tool for creating mockups

Show what you need in 3 easy steps:

  1. Sketch frame using UI units
  2. Save it and get a link to created frame
  3. Send a link to your companion
  Create basic mockup diagram

Thursday, August 25, 2016

Installing and updating all programs at once using Ninite

Advantages

  • Install and Update all your programs at once
  • Always Up-to-date (Do not have to watch for updates) Their bots do that
  • No Tool Bars
  • No clicking Next
  • Multiple selection for picking apps

Save requests and organize your APIs into Collections using Postman

Add app to your chome browser by clicking this link


Advantages of using Postman


  • Create and send any HTTP request using the awesome Postman request builder.
  • Write your own test cases to validate response data, response times, and more!
  • Easily enter parameters 

Sunday, August 21, 2016

Default file extension in file explorer

We can default the file types in file explorer as shown below

1) Select the files and then hit alt
2) Once you select alt -> Tools--> Folder Options


Wednesday, January 27, 2016

Responsive Image generator


Have you ever wondered how to create one image and then generate images for different devices?

We can use responsivebreakpoints.com is pretty awesome. Generates all the images required and spits out the picture code




Sunday, November 29, 2015

Confirm message before close


If the user unknowingly closes the application. He might loose important information.

Solution
We can avoid this by providing confirm message before close. The user would have the option to save his work or to close the application

The event which we can use is window.onbeforeunload 

Saturday, November 28, 2015

Remove JSON properties

We can easily remove specific properties from a JSON object in an array.

Edit in plunkr

Steps involved

  • Loop through the JSON object
  • Specify the properties which needs to be filtered

In the example below I was supposed to remove some properties. I have removed "Date" property.


Tuesday, November 24, 2015

Refresh Iframe

We can refresh and Iframe content using one line of code

Edit in plunker

document.getElementById('iframeid').src += '';

In this example we can reset the position of the map based on button click

Thursday, November 19, 2015

Logoff MVC

We cannot call logout function directly from an anchor tag or javascript .Reason they are supposed to be [HttpPost] with [ValidateAntiForgeryToken]

http://localhost:54673/Account/logOFF

we can achieve this by removing  [httpPost] and [ValidateAntiForgeryToken]

ASP ODBC Connection

In classic ASP we had the option to use odbc for connecting to the database. I had to use this in one of my project. I did not find any useful article on this.

Establishing ODBC connection for classic ASP

We can specify the odbc connection in ASP as shown below

Thursday, November 5, 2015

Mapping using automapper

Need  for using Automapper 

Eventually, in any application, a developer will need to translate data from one object type to another.
Common examples include DTOs (Data Transfer Objects), View Models, or even just some request or response object from a service or Web API call.

Usually we end up doing manual mapping.


Friday, August 7, 2015

Basic Git commands

                   Git  ( Distributed revision control )     

    Git is a version control system that is used for software development and other version control tasks. As a distributed revision control system it is aimed at speed,[8] data integrity, and support for distributed, non-linear workflows.

Git was created by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers contributing to its initial development. Its current maintainer is Junio Hamano.

As with most other distributed version control systems, and unlike most client–server systems, every Git directory on every computer is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server