c# List and List conversion gbstack02/23/2014 0 Comments Convert List<concrete> to List<interface>: C# list.ToList<interface>(); 1 list.ToList<interface>(); Convert List<interface> to List<concrete>: C# ConvertAll(obj=>(T)obj); 1 ConvertAll(obj=>(T)obj);
check glibc version on linux gbstack02/12/2014 0 Comments ldd --version sample output: ldd (GNU libc) 2.12 Copyright (C) 2010 .. .. ls /lib/libc.so.6 -l
python timer tutorial gbstack02/01/2014 0 Comments There are two methods in Python to make the process wait some seconds: threading.Event Python import threading e = threading.Event() e.wait(5) #make the process to wait for 5 seconds 12345 import threading e = threading.Event() e.wait(5) #make the process to wait for 5 seconds time.sleep Python import time time.sleep(2) #let the program to sleep for 2 seconds 123 import time time.sleep(2) #let the program to sleep for 2 seconds