Sometimes we get error message – 530 SMTP authentication is required when attempting to send an e-mail through MS Outlook. In this article I will discuss how to resolve this error. Here I used MS Outlook 2010 1. Go to File -> Account Settings 2. Click Email Tab and double click on you email addresss
Year: 2011
How to know your own mobile number
Know your own number just typing the following USSD. Grameenphone= *2# Banglalink: *511# Robi= *140*2*4# Airtel= *121*6*3#
How to get mac address
Go to Run-> type cmd and enter to run command prompt Type one of the following command to get mac address.
How to remove special character from Unicode string
Here is the sample code to remove special character from Unicode string. Sample Input: SG@%@sgs th? g#%@^@#$ chào^#^$#!abc35| _ sgs _35 hello world không gsg Sample Output: SG%sgs th? g#%^#$ chào^#^$#!abc35 sgs 35 hello world không gsg class Program { static void Main(string[] args) { string inputString = “SG@%@sgs thể g#%@^@#$ chào^#^$#!abc35| _ sgs _35
How to check Palindrome word using C#
Palindrome word can be read in both direction. Suppose “level” can be read in both direction, so it is palindrome word. To check palindrome word you can try like following code using C#. class Program { public static bool IsPalindrome(string word) { int minLength = 0; int maxLength = word.Length – 1; while (true) {
How to find prime number between 1 to n
class Program { static void Main(string[] args) { //int n = 100000; int n = 0; Console.WriteLine(“Type an integer number to get prime number between 1 to n”); Int32.TryParse(Console.ReadLine(), out n); PrintPrimes(n); } public static void PrintPrimes(int n) { bool isPrime = false; for (int i = 2; i < n; i++) { isPrime =
Draw star pyramid using C#
Sample input: 5 Sample output: Code: /*Author: Md. Mahedee Hasan*/ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StarPyramid { class Program { static void Main(string[] args) { Console.WriteLine(“Enter a number to draw pyramid: “); int nRow = 0; nRow = Convert.ToInt32(Console.ReadLine()); for (int row = 1; row
Folder permission from windows command line
To give all permission in temp folder for every one, run command prompt with admin privilege and then run the following command. Here, /t means “apply change recursively” /e means “edit existing DACL”. Alternative way You can try with the following command C:>icacls “C:\Windows\temp” /grant mahedee:(OI)(CI)F Here, F= Full Control CI= Container Inherit OI= Object