Author Archives: Sean

Group Policiy does not apply on Workstations

Workstation are not applying Group Policies from the Active Directroy. The following are some possible functions on the Workstation:
Running ‘gpupdate’ on Windows XP confirms it runs successfully.
Running ‘gpresult’ on Windows XP gives the error: ‘The user [domainusername] does not have RSOP data.’
You can browse to the netlogon and the sysvol folders on a DC.
Typing the ‘SET’ command shows you have a vaild authentication server.
In order to resolve this make sure the workstation is pointing to a valid internal DNS server which contains Windows Active Directory informaiton. Verify the internal DNS server are functioning properly.
After modifiying the workstations DNS, rerun ‘gpupdate’ and ‘gpresult’. This should now apply the GPO successfully and display the results.
More information can be found here: Technet KB 291382 Frequently asked questions about Windows 2000 DNS and Windows Server 2003 DNS

NBTSTAT

NBTSTAT.exe
Display protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP).
Syntax
   By Name
      NBTSTAT -a Remote_host_Name [options] [interval]
   By IP address
      NBTSTAT -A IP_address [options] [interval]
Key  -a   (adapter status) List the remote machine’s name table given its name
  -A   (Adapter status) List the remote machine’s name table given its IP address
  -c   (cache)          List NBT’s cache of remote [machine] names
                        and their IP addresses
  -n   (names)          List local NetBIOS names.
  -r   (resolved)       List names resolved by broadcast and via WINS
  -R   (Reload)         Purge and reloads the remote cache name table
  -S   (Sessions)       List sessions table with the destination IP addresses
  -s   (sessions)       List sessions table converting destination IP
                        addresses to computer NETBIOS names.
  -RR  (ReleaseRefresh) Send Name Release packets to WINS and then, starts Refresh
  interval              Redisplay selected statistics, pausing interval seconds
                        between each display. Press Ctrl+C to stop redisplaying
                        statistics.

经典语录

◎踏遍青楼人未老,请用汇仁肾宝。
◎0岁出场亮相,10岁天天向上。20岁远大理想,30岁发奋图强。40岁基本定向,50岁处处吃香。60岁打打麻将,70岁处处闲逛。80岁拉拉家常,90岁挂在墙上!
◎脱了衣服我是禽兽,穿上衣服我是衣冠禽兽!
◎“亲爱的,我…我怀孕了…三个月了,不过你放心,不是你的,不用你负责……”
◎我花8万买了个西周陶罐,昨儿到《鉴宝》栏目进行鉴定,专家严肃地说:“这哪是西周的?这是上周的!”
◎长大了要嫁给唐僧,能玩就玩,不能玩就把他吃掉。
◎一山不能容二虎,除非一公和一母。
◎要适当吃一点,才有劲减肥啊。
◎你快回来,我一人忽悠不来!
◎生活就像宋祖德的嘴,你永远都不知道下一个倒霉的会是谁~~~
◎世界上难以自拔的,除了牙齿,还有爱情。
◎问君能有几多愁,恰似一群太监上青楼……
◎年轻的时候,我们常常冲着镜子做鬼脸;年老的时候,镜子算是扯平了。
◎出问题先从自己身上找原因,别一便秘就怪地球没引力。
◎我们走得太快,灵魂都跟不上了……
◎不要和地球人一般见识~~~
◎女孩从处女到女人只要一次并成功,男孩从处男变男人需要反复的磨练!
◎出来混,老婆迟早是要换的!
◎小时候我以为自己长大后可以拯救整个世界,等长大后才发现整个世界都拯救不了我……
◎我就算是一只癞蛤蟆,我也决不娶母癞蛤蟆。
◎生前何必久睡,死后自会长眠……
◎不想当厨子的裁缝,不是好司机。
◎时间是最好的老师,但遗憾的是——最后他把所有的学生都弄死了。
◎钻石恒久远,一颗就破产!
◎和谐校园里,骑自行车的也许是位博导,而开奔驰的则可能是个后勤……
◎是金子,总会花光的;是镜子,总会反光的……
◎我女友不当尼姑的原因是她四级没过,庵里不收。
◎明星脱一点就能更出名,我脱的光光的却被抓起来了!
◎看一漂亮MM,苦无搭讪办法,路旁一砖头,拣起,上前,“同学,这是你掉的吧?”
◎别和我谈理想,戒了!
◎所谓惊喜就是你苦苦等候的兔子来了,后面跟着狼!
◎俩农夫吹牛:“俺们农场的鸡,吃的都是茶叶,下的全是茶叶蛋”“有嘛啊,咱农场给鸡吃钱包,让它下荷包蛋。”
◎蟑螂都不怕蟑螂药了,我们却连维生素都搞不定!
◎长个包子样就别怨狗跟着!
◎如果你不能给你的女人穿上嫁衣,那么千万别停下你解开她衣扣的手!
◎凤凰重生就是涅盘,野鸡重生就是尸变。
◎如果有一天我变成流氓,请告诉别人,我纯真过……
◎某女的一篇博客日记:某月某日,大醉而归,伸手一摸——手机和贞操都在,睡觉!
◎又美丽、又纯洁、又温柔、又性感、又可爱的处女,就像鬼魂一样,男人们都在谈论它,但从来没有人亲眼见过……
◎避孕的效果:不成功,便成“人”。
◎一炮走红——是形容女艺人的……
◎真不明白,女孩买很多很多漂亮衣服穿,就是为了吸引男孩的目光,但男孩想看的,却是不穿衣服的女孩。
◎偶尔幽生活一默你会觉得很爽,但生活幽你一默就惨了……

Install WP-syntax Plugin

You can download the plugin from http://wordpress.org/extend/plugins/wp-syntax/. And it supports highlighting with or without line numbers and maintains formatting while copying snippets of code from the browser.

But it’s not very convenient to use it, when edit a post, I must use the ‘html view’ mode, and add

public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}
class Example
  def example(arg1)
    return "Hello: " + arg1.to_s
  end
end