Monday, December 28, 2015

IP Info [version 1.15.12.29]

This tiny utility shows you public and private IP as soon as you open it so you don't need to go to any website such as whatismyip.com to find your current Public IP Address.

Size:
IP info.zip --> 3.94 KB
IP info.exe --> 9.50 KB

Download links:

Tuesday, November 24, 2015

Introduction to R (Download PDF)


This PDF is a part of Introduction to R workshop conducted by Chris Bruno, Dason Kurkiewicz and Adam Loy from Department of Statistics, IOWA State University on 15 July 2010.


Breakdown of chapters is as following:

1. Introduction
2. Data Management
3. Graphics
4. Models
5. Programming
6. Advanced Manipulations

Friday, November 20, 2015

Plot histogram in RStudio using Shiny

CODE:

# '#' denotes a comment
# install.packages("UsingR") uncomment if package is not installed
library(UsingR)
# install.packages("shiny") uncomment if package is not installed
library(shiny)
# install.packages("Hmisc") uncomment if package is not installed
library(Hmisc)
# install.packages("corrplot") uncomment if package is not installed
library(corrplot)

# getwd() gives the current directory where R looks up for files
wd <- getwd()
setwd(wd)

Tuesday, October 27, 2015

'atlbase.h': No such file or directory

Error code:
#include <atlbase.h>

Error:
1    error C1083: Cannot open include file: 'atlbase.h': No such file or directory
2    IntelliSense: cannot open source file "atlbase.h"

This error occurs if you are using atlbase.h file in your program in Visual C++ Express Edition instead of Visual Studio. The reason is express edition does not come with Microsoft Platform SDK as studio does so we need to install it separately and need to modify a couple of lines.

Solution:
1. Download and install Windows Server 2003 SP1 Platform SDK from http://www.microsoft.com/en-us/download/details.aspx?id=6510
2. If you have a 64-bit OS/Processor (Intel i5, Windows 7 64-bit) then install PSDK-amd64.exe as other two won't work.
3. Go to your installation directory to edit atlbase.h file, default would be C:\Program Files\Microsoft Platform SDK\Include\atl
4. Make following changes

Database login error in Visual Studio

Error:
Cannot open user default database. Login failed.
Login failed for user 'abcxyz'.

I got this error in my Visual Web Developer 2010 Express.

My database named Database1.mdf was not opening and throwing this error.