Developer conference that one should not miss!

Working as a developer, tech lead or an architect, one thing that you should continue pursue is learning. Either it could be new technologies &  framework or any new disruptive ideas or tools.

Some of the key developer conferences that you need to block your calendar are:

  • Apple WWDC
  • Google I/O
  • Facebook Developer conference
  • Open source summit.

If you are not able to attend one, you can still watch those couple of weeks later as part of their youtube channel.

I stumbled upon this blog which has the list of all the dev conference that happens throughout the world.

https://techbeacon.com/best-software-engineering-conferences-2017

 

Quick Calculation using Windows Calculator App

If you are looking for an application for calculating the difference between 2 dates, or to find the mortgage, vehicle lease, fuel economy. Then you do not have to go to google.com or download MS Office spreadsheets. Some of the basic calculation needs are available in the calculator application as part of Windows Operating System.

 

The windows Operating system that i use is Windows 7 Ultimate.

Windows update not working..

If you are facing issues on windows 7 not updating the patches after the first install. There could be issues specific to few pre-requisite installed not updated properly. After a long search on the internet finally able to find the list of updates required to fix this issue.

    For 64 bit

https://download.microsoft.com/download/E/9/7/E97EFDD9-053D-4C5B-96F4-F4928818C9A4/Windows6.1-KB3050265-x64.msu

https://download.microsoft.com/download/F/6/7/F678BB18-7D81-4BBA-8FED-6388FF7968AD/Windows6.1-KB3065987-v2-x64.msu

https://download.microsoft.com/download/F/A/A/FAABD5C2-4600-45F8-96F1-B25B137E3C87/Windows6.1-KB3102810-x64.msu

https://download.microsoft.com/download/9/C/8/9C855F85-08B1-47B4-97DF-B6A7D187F0B7/Windows6.1-KB3135445-x64.msu

https://download.microsoft.com/download/B/7/C/B7CD3A70-1EA7-486A-9585-F6814663F1A9/Windows6.1-KB3138612-x64.msu

https://download.microsoft.com/download/5/7/3/57362720-7B19-4CBB-97A1-BF8608449C85/Windows6.1-KB3161664-x64.msu

https://download.microsoft.com/download/5/D/0/5D0821EB-A92D-4CA2-9020-EC41D56B074F/Windows6.1-KB3020369-x64.msu

https://download.microsoft.com/download/5/6/0/560504D4-F91A-4DEB-867F-C713F7821374/Windows6.1-KB3172605-x64.msu

    for 32 bit

https://download.microsoft.com/download/E/D/0/ED0AEBFC-A0DB-487E-8A55-F1AD952BBC29/Windows6.1-KB3050265-x86.msu

https://download.microsoft.com/download/C/5/3/C530B84C-857A-4296-BB9E-3BB59EEDF555/Windows6.1-KB3065987-v2-x86.msu

https://download.microsoft.com/download/A/0/9/A09BC0FD-747C-4B97-8371-1A7F5AC417E9/Windows6.1-KB3102810-x86.msu

https://download.microsoft.com/download/2/E/D/2ED368A8-9967-4829-9CD5-9037AD48FF72/Windows6.1-KB3135445-x86.msu

https://download.microsoft.com/download/E/4/7/E47FB37E-7443-4047-91F7-16DDDCF2955C/Windows6.1-KB3138612-x86.msu

https://download.microsoft.com/download/A/9/C/A9C46BAF-EA73-48FD-B0B6-F243DDC20D51/Windows6.1-KB3161664-x86.msu

https://download.microsoft.com/download/C/0/8/C0823F43-BFE9-4147-9B0A-35769CBBE6B0/Windows6.1-KB3020369-x86.msu

https://download.microsoft.com/download/C/D/5/CD5DE7B2-E857-4BD4-AA9C-6B30C3E1735A/Windows6.1-KB3172605-x86.msu

The following link has the full details.

[Fix] Windows 7 Keeps Checking for Updates for Hours

Ad settings in your Google account

If you have a android phone and wondering how ads are shown based on the google search or youtube videos that you watched previously. The main reason for this is google ads. Google records all the activity that you perform and use that to show you relevant ads. If you are very particular and do not want your activity to be tracked, then you need to change your ad settings.

Login to Google Ad settings link
https://www.google.com/settings/u/0/ads/authenticated

turn off Ads based on your interest.

If you are really not particular on this then have this option “ON”. At times you will get to see ad’s and info that you are looking for.

Yeoman scaffolding tool

If you are working for Java Script project, then you would have heard about Yeoman. Yeoman generator creates a scaffolding project for you. The projects has all the best of the breed frameworks available within it.

How to install yeoman generator

Go to to Yeoman site

http://yeoman.io/

Select  a specific generator for your project. E.g Angular, React, etc.

Node.js (npm) should be installed as pre-requisite.

Step 1: Install yeoman

npm install -g yo

Step 2: install the generator from 

npm install generator-angular

Step 3:  install generator

yo angular

git behind corporate proxy

If you have trouble cloning github repository from your company’s PC. Then you need to set-up Git for additional configuration to go through corporate proxy.

For windows:

You need to download and install git client in windows PC. (GitBash)

For Mac

You can use Terminal. Git is pre-installed.

open Gitbash or Terminal and enter the following command

git config –global http.proxy ‘http://<domain name>\<user id>:<password>@<proxy server>:proxy port’

git config –global https.proxy ‘http://<domain name>\<user id>:<password>@<proxy server>:proxy port’

If your password contains special characters, the you need to use escape characters.

E.g if your password contains ‘@’ symbol then ‘@’ needs to be replaced with ‘%40’

node.js – npm behind corporate proxy

If you have trouble running npm behind a corporate proxy which uses a domain, username, password combination, then you can do the following steps to fix it.

Corporate Proxy Rules

User: <Domain name>\<user id>

Password: <Password>

Proxy-ip: ip address or domain name of proxy server

Proxy-port: Port of the proxy ip.

Pre-requisite:

Node.js should be installed.

Steps:

Open Command prompt (WIndows PC)/ Terminal (Mac)

type in the following command

npm config set proxy=http://<Domain name>%5C<user id>:<Password>@<Proxy-ip>:<Proxy port>

npm config set https-proxy=http://<Domain name>%5C<user id>:<password>@<proxy-ip>:<proxy port>

Important steps: Open .npmrc file and validate the settings. Sometime npm will update your password with escape characters. If you see any discrepancy, go ahead and make changes directly in the file.

The file is located under

for windows: c:\Users\<user id>\.npmrc

for mac

type cd ~

This will be user directory.

Word of caution:

npm does not like special characters in the password like ‘-‘, ‘#’, ‘$’ etc.  If your corporate policy mandates you to have special characters in password, then safely choose ‘@’

Sonar – Javascript and CSS review

Pre-Requisite:

  • MySql is installed and started.
  • Sonar Qube is installed and started (sonar start)
  • Eclipse
  • JavaScript Source files to be analysed.
  • Sonar ant task jar (sonar-ant-task-2.2.jar).

Create a blank eclipse project and copy thesonar-ant-task-2.2.jar. 

Create an ant build file build-Sonar-JS.xml.

<project name=“Sonar JS” default=“sonar” basedir=“.” xmlns:sonar=“antlib:org.sonar.ant”><property name=“sonar.jdbc.url” value=“jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8” />

<property name=“sonar.jdbc.username” value=“sonar” />

<property name=“sonar.jdbc.password” value=“sonar” />

<!– Define the SonarQube project properties –>

<property name=“sonar.projectKey” value=“org.codehaus.sonar:example-css-ant” />

<property name=“sonar.projectName” value=“Sonar JS” />

<property name=“sonar.projectVersion” value=“1.0” />

<property name=“sonar.language” value=“js” />

<property name=“sonar.sourceEncoding” value=“UTF-8” />

<property name=“sonar.sources” value=“/full/path/of/the/js/folder” />

<target name=“sonar”>

    <taskdef uri=“antlib:org.sonar.ant” resource=“org/sonar/ant/antlib.xml”>

        <classpath path=“sonar-ant-task-2.2.jar” />

</taskdef>

    <sonar:sonar />

</target>

</project>

Run the build-Sonar-JS.xml as ant task.

Open Sonar Qube dashboard.

http://localhost:9000/

login with default credentials admin/admin

Click on the Dashboard menu and you see the JS violations.

HTML Reports:

In order to view the reports as HTML file

Login to sonar qube (http://localhost:9000) as admin/admin

Click on settings > Update Center > Available Plugins > Install Issues Report plugin.

Once the plugin is installed, restart sonar.

Login to Dashboard > Settings > General Settings > Under Category (Select Issues Report)

Enable HTML Report to True

Run the build-Sonar-JS.xml as ant task.

now you will see a .sonar folder under the eclipse project directory.

The directory will contain issues-report folder.

Open issues-report.html to view the violation offline.