天上三奇甲戊庚
地下三奇乙丙丁
人中三奇壬癸辛
以日為主,順序者是,逆亂者非。
凡命遇三奇,主人精明異常,襟懷卓越,好奇尚大,博學多能,帶天乙貴人者,勳業超群,帶天月二德者,凶災消散,帶三合入局者,國家棟樑,帶空亡生旺者,山林隐士,富貴不淫,威武不屈,誠上格也。
此格以卯已午三奇為是,即乙丙丁也。入貴格愈貴,故吉凶隨格局用神而定之。
[ 發表回應 ] ( 21預覽 ) | 常註連結 | ( 3 / 1078 )
內容已轉移到新網站
Reduce Weight Meal
Thanks for Harry Wong provide this Meal list.
Everyday Breakfast
Hard Boiled eggs 1-2 pcs (Each Monday 3pcs)
Coffee or Tea
Grapefruits Half or 1pcs
Monday More...
[ 發表回應 ] ( 74預覽 ) | 常註連結 | ( 3 / 1140 )
static void Main(string[] args)
{
TcpListener listener = new TcpListener(IPAddress.Any , 8000);
TcpClient client;
listener.Start();
while (true) // Add your exit flag here
{
client = listener.AcceptTcpClient();
ThreadPool.QueueUserWorkItem(ThreadProc, client);
}
}
private static void ThreadProc(object obj)
{
var client = (TcpClient)obj;
// Do your work here
}
[ 發表回應 ] ( 17預覽 ) | 常註連結 | ( 3 / 1403 )
Source : http://blog.wensheng.org/2015/05/fixing ... buntu.html
fixing VPN problem in Ubuntu
I set up VPN in Ubuntu 14.04, but when I tried to turn it on in NetworkManager, I kept getting errors like "No suitable device found", "Could not find source connection" in /var/log/syslog.
The problem turned out to be that my ethernet connection was not managed by NetworkManager. "nmcli c" didn't show my wired connection.
The solution:
Edit /etc/NetworkManager/NetworkManager.conf, in section [ifupdown], change "managed=false" to "managed=true", then do a:
"sudo service network-manager restart"
Now both vpn and ethernet connections are managed by NetworkManager, turning on VPN just works.
p.s.
About Having DNS Issues when connected to a VPN
source : https://askubuntu.com/questions/320921/having-dns-issues-when-connected-to-a-vpn-in-ubuntu-13-04
Question
I am connecting to a Cisco VPN Server using vpnc. Once connected, my machine was unable to automatically update DNS setting from the new VPN. I tested by temporarily changing /etc/resolv.conf with the proper nameserver and search domain, and everything worked. This is obviously not a long term solution, so I added an additional DNS server and search domain to the VPN settings in Network manager. With those settings in place, resolvconf does add the search domain, but not the DNS IP, and I still cannot do any lookups.
What is my next step in configuring or troubleshooting from here?
Answer
First make sure that there are no lines beginning with nameserver in any files in /etc/resolvconf/resolv.conf.d. If /etc/resolvconf/resolv.conf.d/tail is a symbolic link to target original, make it point to /dev/null.
Second, disconnect from the VPN. Edit /etc/NetworkManager/NetworkManager.conf
$ sudo gedit /etc/NetworkManager/NetworkManager.conf
and comment out
dns=dnsmasq
(i.e., add a # so that it looks like the following)
#dns=dnsmasq
and then
sudo service network-manager restart
[ 發表回應 ] ( 16預覽 ) | 常註連結 | ( 2.8 / 1157 )
Here are some suggestions you can try to improve your
performance:
set:
1. set write cache ->enabled (objects -> physical drives -> press
enter on each hard drive and set write cache to enable)
2. read policy -> adaptive (objects -> logical drive)
3. write policy -> wrtback (objects -> logical drive)
4. cache policy -> direct i/o (objects -> logical drive) also, you may have to troubleshoot your stripe size to get the optimal writing performance when using raid. If you think you will be writing large sequential files, then use a larger stripe size.
[ 發表回應 ] ( 17預覽 ) | 常註連結 | ( 3 / 1143 )