92 Movies How Many you watched
Friday, July 1, 2016, 10:06 AM -
网摘
[ 1 comment ]
( 2716 views )
|
permalink |
related link |
( 3 / 4641 )
92 Movies How many you watched
Friday, July 1, 2016, 10:01 AM -
网摘
92 Movies
[ add comment ]
|
permalink |
related link |
( 2.9 / 8021 )
Saturday, June 21, 2014, 10:19 AM -
其他
Casio protrek have a lot of module, here is comparison.
Comparison Link
[ add comment ]
|
permalink |
related link |
( 3 / 2099 )
Tuesday, November 5, 2013, 06:27 PM
string rawurl = Request.Url.ToString();
string nohttp = rawurl.Substring(rawurl.IndexOf("://") + 3);
string hostName = nohttp.Substring(0, nohttp.IndexOf("/"));
string hostURL = rawurl.Substring(0, rawurl.IndexOf(hostName) + hostName.Length);
string fullUrl = hostURL + url;
/*
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(fullUrl);
request.KeepAlive = false;
request.Method = "GET";
request.ContentType = "text/html";
request.AllowAutoRedirect = true;
HttpCookie cookie = Request.Cookies[FormsAuthentication.FormsCookieName];
CookieContainer cookies = new CookieContainer();
cookies.Add(new Uri(hostURL), new Cookie("ASP.NET_SessionId", Session.SessionID));
cookies.Add(new Uri(hostURL), new Cookie(cookie.Name, cookie.Value));
request.CookieContainer = cookies;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
*/
[ add comment ]
|
permalink |
related link |
( 3 / 1074 )
Auto Start VM in Virtual Box When Linux Start
Tuesday, December 18, 2012, 06:11 PM -
Others
1. Creat File /etc/default/virtualbox
# vi /etc/default/virtualbox
# virtualbox defaults file
VBOXAUTOSTART_DB=/etc/vbox
VBOXAUTOSTART_CONFIG=/etc/vbox/default.cfg
2.
Now we need to create /etc/vbox/default.cfg file and add
# Default policy is to deny starting a VM, the other option is "allow".
default_policy = deny
# Create an entry for each user allowed to run autostart
myuserid = {
allow = true
}
If you are the only user you can just add the line default_policy = allow to the default.cfg file.
3. set permission
Set permissions on directory to the vboxuser group and make sure users can write to the directory as well as sticky bit.
# chgrp vboxusers /etc/vbox
# chmod 1775 /etc/vbox
Add each of the users to the vboxusers group. Make sure to check their group memberships so they do not loose any groups they currently have assigned to their id.
# groups myuserid
myuserid
# usermod -G vboxusers myuserid
Every user who wants to enable autostart for individual machines has to set the path to the autostart database directory with
4. Log in as user myuserid
$ VBoxManage setproperty autostartdbpath /etc/vbox
Now we are ready to set the VM's we choose to start.
$ VBoxManage modifyvm --autostart-enabled on
This will create a myuserid.start file in /etc/vbox directory
5. Su to root restart vboxautostart-service
Now restart the vboxautostart-service to read in the changes.
# service vboxautostart-service restart
[ add comment ]
|
permalink |
related link |
( 3 / 4478 )
Next