Auto Start VM in Virtual Box When Linux Start?
1. Creat File /etc/default/virtualbox
# vi /etc/default/virtualbox
# virtualbox defaults file

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

# 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 )
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
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 / 7787 )
How to Convert .dmg to ISO free?
You can do it right from Mac OS X’s command line, for free, using the hdiutil command.

hdiutil convert imagefile.dmg -format UDTO -o imagefile.iso

This will actually create a file called imagefile.iso.cdr in the current directory, but you’ll want to change that to just .iso, so type:

mv imagefile.iso.cdr imagefile.iso

That’s all there is to it, now your DMG image file can be burned on any PC with the proper hardware.

[ add comment ] ??|??permalink??|??related link??|?? ( 3 / 4263 )
Validation Expressions?
Metacharacter Match

\ the escape character - used to find an instance of a metacharacter like a period, brackets, etc.
. (period) match any character except newline
x match any instance of x
^x match any character except x
[x] match any instance of x in the bracketed range - [abxyz] will match any instance of a, b, x, y, or z
| (pipe) an OR operator - [x|y] will match an instance of x or y
() used to group sequences of characters or matches
{} used to define numeric quantifiers
{x} match must occur exactly x times
{x,} match must occur at least x times
{x,y} match must occur at least x times, but no more than y times
? preceding match is optional or one only, same as {0,1}
* find 0 or more of preceding match, same as {0,}
+ find 1 or more of preceding match, same as {1,}
^ match the beginning of the line
$ match the end of a line

POSIX Class Match

[:alnum:] alphabetic and numeric characters
[:alpha:] alphabetic characters
[:blank:] space and tab
[:cntrl:] control characters
[:digit:] digits
[:graph:] non-blank (not spaces and control characters)
[:lower:] lowercase alphabetic characters
[:print:] any printable characters
[:punct:] punctuation characters
[:space:] all whitespace characters (includes [:blank:], newline, carriage return)
[:upper:] uppercase alphabetic characters
[:xdigit:] digits allowed in a hexadecimal number (i.e. 0-9, a-f, A-F)

Character class Match

\d matches a digit, same as [0-9]
\D matches a non-digit, same as [^0-9]
\s matches a whitespace character (space, tab, newline, etc.)
\S matches a non-whitespace character
\w matches a word character
\W matches a non-word character
\b matches a word-boundary (NOTE: within a class, matches a backspace)
\B matches a non-wordboundary

The backslash escapes any character and can therefore be used to force characters to be matched as literals instead of being treated as characters with special meaning. For example, '\[' matches '[' and '\\' matches '\'.
A dot matches any character. For example, 'go.d' matches 'gold' and 'good'.
{ }
{n} ... Match exactly n times
{n,} ... Match at least n times
{n,m} ... Match at least n but not more than m times
[ ]
ldsports手机下载ldsports官方客服乐动娱乐体育平台网页版A string enclosed in square brackets matches any character in that string, but no others. For example, '[xyz]' matches only 'x', 'y', or 'z', a range of characters may be specified by two characters separated by '-'. Note that '[a-z]' matches alphabetic characters, while '[z-a]' never matches.
A hyphen within the brackets signifies a range of characters. For example, [b-o] matches any character from b through o.
A vertical bar matches either expression on either side of the vertical bar. For example, bar|car will match either bar or car.
An asterisk after a string matches any number of occurrences of that string, including zero characters. For example, bo* matches: bo, boo and booo but not b.
A plus sign after a string matches any number of occurrences of that string, except zero characters. For example, bo+ matches: boo, and booo, but not bo or be.
matches all numbers with one or more digits
matches all numbers with zero or more digits
matches all words with one or more characters containing a-z, A-Z and 0-9. \w+ will find title, border, width etc. Please note that \w matches only numbers and characters (a-z, A-Z, 0-9) lower than ordinal value 128.
matches all words with one or more characters containing a-z, A-Z and characters larger than ordinal value 161 (eg. ? or ü). If you want to find words with numbers, then add 0-9 to the expression: [0-9a-zA-Z\xA1-\xFF]+

Typical examples

will find "bo", "boo", "bot", but not "b"
will find "bxxxxxxxx", "bxx", but not "bx" or "be"
will find all numbers
(\d+ visitors)
will find "3 visitors" or "243234 visitors" or "2763816 visitors"
(\d+ of \d+ messages)
will find "2 of 1200 messages" or "1 of 10 messages"
(\d+ of \d+ messages)
will filter everything from the last occurrence of "2 of 1200 messages" or "1 of 10 messages" to the end of the page
will find "MyText" and the next 20 characters after "MyText"
will find date-strings with format 99.99.9999 or 99-99-9999 (the dot in the regex matches any character)
will find date-strings with format 99.99.9999
will find all e-mail addresses

[ add comment ] ??|??permalink??|??related link??|?? ( 3 / 5353 )
Picasa 相册 屏蔽 翻墙 host 批处理?
Picasa 相册 屏蔽 翻墙 host 批处理


保存到记事本后重命名为 picasa.bat 双击运行

话不多说 直接上代码(转载的)

@attrib %windir%\SYSTEM32\drivers\etc\hosts -r
@echo >> %windir%\SYSTEM32\drivers\etc\hosts
@echo >> %windir%\SYSTEM32\drivers\etc\hosts
@echo >> %windir%\SYSTEM32\drivers\etc\hosts
@echo >> %windir%\SYSTEM32\drivers\etc\hosts
@echo >> %windir%\SYSTEM32\drivers\etc\hosts
@echo >> %windir%\SYSTEM32\drivers\etc\hosts
@echo >> %windir%\SYSTEM32\drivers\etc\hosts

if it does not work, try to change IP address above as following or

Good luck!!

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