92 Movies How many you watched 
92 Movies

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



Comparison Link

[ add comment ]   |  permalink  |  related link  |   ( 3 / 2099 )
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 / 1073 )
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

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 / 4477 )
Event ID 36 IIS Error 
When u Facing
Event ID 36
The server failed to load application '/LM/W3SVC'. The error was 'The specified metadata was not found.

1. Delete IIS related package in Component Services MMC
- IIS In-Process Applications.
- IIS Out-of-Process Pooled Applications.
- IIS Utilities.
If you get ''Item cannot be deleted'' go into the Properties, Advanced, and clear the ''Disable deletion'' tickbox.
2. Open command prompt, navigate to %windir%\system32\inetsrv folder, and enter (case sensitive):
c:\winnt\system32\inetsrv\>rundll32 wamreg.dll, CreateIISPackage
then
c:\winnt\system32\inetsrv\>regsvr32 asptxn.dll

3. Enter IISRESET at the command prompt to restart IIS services, and then re-open Component Services MMC to verify that the IIS packages are recreated.



[ add comment ]   |  permalink  |  related link  |   ( 3 / 4465 )

NextNext