Powershell - Setting Processor Affinity or Priority Windows System

Powershell – Setting Processor Affinity or Priority

Processor Affinity (to keep it simple, because that’s how I think) is the ability to delegate a SPECIFIC core to an application. You see by default, if an application in Windows supports multiple cores, it will try to share and work with all of them. Which is fine 80% of them. The other 20% that application is a resource monster (Like a Virtualized Machine on a laptop) and you need to cap it’s power without killing it. Enter Processor Affinity....
阅读全文
Checking system uptime on FreeBSD Bsd System

Checking system uptime on FreeBSD

We usually check "sysctl:kernel.boottime" to get uptime on freebsd, but it does not work for version 6 and above. Be obtained by reading the source code uptime the system call,and then through the python to obtain accurate uptime. #!/usr/bin/env python # NOTE: ctypes require python 2.5 import os, sys, datetime from optparse import OptionParser EX_WARN = 1 EX_CRIT = 2 EX_UNKN = 3 try: import ctypes except ImportError: print "UPTIME CRITICAL: Python ctypes required (Python 2.5 or greater)" sys.exit(EX_CRIT) class...
阅读全文
Download Chrome Standalone MISC

Download Chrome Standalone

Nomal online download address: http://www.google.com/chrome/eula.html Offline download address: http://www.google.com/chrome/eula.html?standalone=1 zh_CN offline download address: http://www.google.com/chrome/eula.html?hl=zh-CN&standalone=1
阅读全文
Scooter feat. Vicky Leandros - C'est Bleu MISC

Scooter feat. Vicky Leandros – C’est Bleu

Aha, finally fount it. Of course, code for inserting flv like these: $embed$ src="https://www.aizog.com/flvplayer/flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file="flv url"&LogoText="text"" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="363">$/embed$ "$$"->"<>"
阅读全文
NoMachine NX for LinuxMint V12 Linux System

NoMachine NX for LinuxMint V12

First: Install software into your system, command like: sudo apt-get install openssh Second: Download nxclient/nxnode/nxserver from http://www.nomachine.com/download.php, and install them step by step, command like: sudo dpkg -i ***.deb Third: Edit /etc/ssh/sshd_config, and modify or add (more…)
阅读全文
Installing Win7_X64 & XP_X86 on the same HD Windows System

Installing Win7_X64 & XP_X86 on the same HD

1. install win7 nomaly (etc "partition C:"); 2. active other partition (NOT C:); 3. install xp nomaly to you had actived partition ago; 4. then boot your computer by CD or UDISK (win 7), and into the command line; 5. use this command: bootrec /rebuildbcd 6. sometime you also copy bootmgr to your win7's partition 7. use this command: bcdedit /store c:\boot\bcd /create {ntldr} /d "Windows XP" bcdedit /store c:\boot\bcd /set {ntldr} device boot bcdedit /store c:\boot\bcd /set {ntldr} path...
阅读全文
Increase LaTeX support Linux System

Increase LaTeX support

By wp latex. Look like: \begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix} f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases} f(x)= \sum_{n=0}^\infty a_n x^n= a_0+a_1x+a_2x^2+\cdots
阅读全文