Thursday, October 23, 2008
Monday, October 20, 2008
Wednesday, September 10, 2008
Irfan View
I used the Tool (Irfan view) to check whether the given image is Jpeg, Progressive Jpeg, Bmp ....or not.
This tool will check the internal Header information about the images.
As a result this tool will inform the correct format by checking the inside bytes but not using the extension. Because an image may be Jpeg or bmp by extension. But we can't say that image is jpeg or bmp only by seeing the extension internally it may not be of that type.
This tool will check the internal Header information about the images.
As a result this tool will inform the correct format by checking the inside bytes but not using the extension. Because an image may be Jpeg or bmp by extension. But we can't say that image is jpeg or bmp only by seeing the extension internally it may not be of that type.
Tuesday, September 9, 2008
IEnumerator Sample + yield Keyword
using System;
using System.Collections.Generic;
using System.Text;
public class List
{
public static IEnumerable Power(int number, int exponent)
{
int counter = 0;
int result = 1;
while (counter++ < exponent)
{
result = result * number;
yield return result;
}
}
static void Main()
{
System.Console.WriteLine("Start ....\n");
foreach (int i in Power(2, 8))
Console.Write("{0} ", i);
System.Console.WriteLine("End ....\n");
}
}
using System.Collections.Generic;
using System.Text;
public class List
{
public static IEnumerable
{
int counter = 0;
int result = 1;
while (counter++ < exponent)
{
result = result * number;
yield return result;
}
}
static void Main()
{
System.Console.WriteLine("Start ....\n");
foreach (int i in Power(2, 8))
Console.Write("{0} ", i);
System.Console.WriteLine("End ....\n");
}
}
Monday, September 8, 2008
Friday, September 5, 2008
Subscribe to:
Comments (Atom)