Sunday, August 3, 2008

Ipod touch 1.1.5 jailbreak using Ziphone

I recently got an ipod touch with firmware 1.1.5.
I tried jailbreak using Ziphone and it works. Basically, nothing specially, all you do is download Ziphone from
http://download.ziphone.org/ and install that.
After you successfully install the software, click jailbreak and that is it.
Good luck.

You might need to fake your firmware version to 1.1.4 using FWChange. (You can find it in Installer)

c# web service authorization method

I'm not an expert on this issue, but what I used in my previous project was the token method.
A token which encrypted by the client needs to be included in every message, and gets decrypted
at the server side. The server will use the decrypted message to verify user. Session is also used to
stop people from keep trying tokens.
Another Important thing is secure transfer. SSL encryption should be used and this can be done in the
IIS server. So, the publish web service should be something start with https://. This way, token won't be
stolen during the transmission.
I'm also thinking to improve the encryption carried out in the client by sending acquiring keys from the server.
The keys will be changed from time to time, and even if Token was leaked, it won't be active for long.

Tuesday, July 29, 2008

c# windows form store global data

Using the following Class, you can store somethings you need cross forms.
Pretty handy sometimes instead of using Setting in C#. Setting creates visible config file
and it's pretty slow to read and write.



class GlobalData
{
private static GlobalData _instance = new GlobalData();
private string _formString = "";

static GlobalData()
{
}

public static GlobalData GetInstance()
{
return _instance;
}

public string TokenString
{
get
{
return _formString;
}
set
{
_formString = value;
}
}
}



Friday, July 25, 2008

An Extensive Examination of Data Structures Using C# 2.0

The following tutorial is even better than the books that I read before.
http://msdn.microsoft.com/en-us/library/ms364091%28VS.80%29.aspx

c# useful function Array Copy

Sometimes, you wanted to copy part of an array to another array. Use the following method, it can handle all
sorts of copy, and don't need to worry the source array and destination array length.

Array.Copy(Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length);
// Summary:
// Copies a range of elements from an System.Array starting at the specified
// source index and pastes them to another System.Array starting at the specified
// destination index. The length and the indexes are specified as 64-bit integers.
//
// Parameters:
// destinationIndex:
// A 64-bit integer that represents the index in the destinationArray at which
// storing begins.
//
// sourceIndex:
// A 64-bit integer that represents the index in the sourceArray at which copying
// begins.
//
// length:
// A 64-bit integer that represents the number of elements to copy. The integer
// must be between zero and System.Int32.MaxValue, inclusive.
//
// destinationArray:
// The System.Array that receives the data.
//
// sourceArray:
// The System.Array that contains the data to copy.
//