92 Movies How Many you watched?


[ 1 comment ] ( 597 views ) ??|??permalink??|??related link??|?? ( 3 / 4135 )
92 Movies How many you watched?
92 Movies

[ add comment ] ??|??permalink??|??related link??|?? ( 3 / 3569 )
CASIO ProTrek Comparison?
Casio protrek have a lot of module, here is comparison.



Comparison Link

[ add comment ] ??|??permalink??|??related link??|?? ( 3 / 5609 )
add http request?
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 / 2724 )
Auto Start VM in Virtual Box When Linux Start?
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

ldsports手机下载ldsports官方客服乐动娱乐体育平台网页版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 / 3106 )

NextNext