byte[] byteArr = new byte[]{1,0};
string s = System.Text.Encoding.ASCII.GetString(byteArr);
string → byte[]
System.Text.Encoding.ASCII.GetBytes(s);
byte[] byteArr = new byte[]{1,0};
string s = System.Text.Encoding.ASCII.GetString(byteArr);
System.Text.Encoding.ASCII.GetBytes(s);
HashMap< String , String > hm = new HashMap< String , String >();
hm.put("A", "A--Content");
hm.put("B", "B--Content");
//Get all value
for(Iterator< String > it = hm.keySet().iterator(); it.hasNext();){
String key = it.next();
System.out.println("Key: "+ key + ", value: "+hm.get(key));
}
//Get specific value
System.out.println(hm.get("A"));
Dictionary< string , string > dict = new Dictionary< string , string >();
try
{
dict.Add("A", "A--Content");
dict.Add("B", "B--Content");
//Get all value
foreach (KeyValuePair< string , string > kvp in dict)
{
Console.WriteLine("key: {0}, value: {1}", kvp.Key, kvp.Value);
}
//Get specific value
string val = "";
dict.TryGetValue("A", out val);
Console.WriteLine("value="+val);
//or
Console.WriteLine("value=" + dict["A"]);
}
catch (Exception)
{
//The method "Add" will throw exception if key already existed!!!
Console.WriteLine("Can't insert same key");
}
$.ajaxSetup({cache: false});
$.get("xxx.jsp",{A=a,B=b},function(){
});
$.get("xxx.jsp",{timestamp:new Date().getTime()},function(){
});
cd C:\Subversion\bin\
svnadmin create D:\Repos
[general]
anon-access = read #If you meet
#"svn: Not authorized to open root of edit operation"
#change read to none
auth-access = write #write means read and write
password-db = passwd #file "passwd"
authz-db = authz #file "authz"
realm = My Project #You could change this as you want.
[users]
austin = austin
ting = ting # userid = password
[groups]
matrix = austin,ting # group_name = group_members, ....
[Repos:/] # The repository you create before.
# or [/] for each repository
@matrix = rw # @+group_name, rw => read and write
cd C:\Subversion\bin\
svnserve -d