Hunter的大杂烩 技术学习笔记

2012-09-20

win7 xp mode XPMUser 密码重置(设置其为空)后 无法登录,怎么办?

Filed under: 技术话题 — hunter @ 7:35 pm

救命贴啊。。。

from:http://hi.baidu.com/boatman/item/0340b6d9bbf5123e48e1dda7

win7 xp mode XPMUser 密码重置后无法登录,我昨天遇到了,上网搜索,简单说有2种办法解决:

1、重装XPM,多累人啊,不干。

2、用administrator账户登录重置,这个Administrator账户仅在安全模式下有效,重启虚拟机,按F8进入安全模式,用Administrator登录(默认无密码)后修改XPMuser的密码。

   — 这种方法似乎不行

3、在登录时询问密码时在虚拟机取消集成功能,下次登录将不再询问密码。

   — 测试ok,进入管理工具后,给xpmuser设置一个密码,退出后,开启集成模式,再进入即可

2012-08-23

mysql 乱码产生探讨[转]

Filed under: 技术话题 — hunter @ 12:03 pm

from:http://blog.csdn.net/dubiousway/article/details/7075708

实验一
1。首先,在下面情况下:
mysql> show variables like ‘character_set_%’;
+————————–+—————————————+
| Variable_name | Value |
+————————–+—————————————+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | D:\Programs\mysql5045\share\charsets\ |
+————————–+—————————————+
建表,并加入3个记录:大,阿,爱

(more…)

2012-07-06

Excel中的部分统计函数 的Java实现

Filed under: 技术话题 — hunter @ 7:11 pm

部分参考: http://blog.csdn.net/peakryuu/article/details/6180711

               http://derpvail.iteye.com/blog/260992

不过两个出处都有些小bug,经过修正后如下:
public class StatisticalFunction {
 public static double max(double[] p){
  if (p.length == 0)
   throw new IllegalArgumentException();
  int len = p.length;
  double max = p[0];
  for (int i = 0; i < len; i++) {    if (max < p[i])     max = p[i];   }   return max;  } (more…)

2012-06-26

发布脚本[3]

Filed under: 技术话题 — hunter @ 5:22 pm

#!/bin/sh

if [ $# -lt 2 ];then
        echo “USAGE: $0 pub pubfile”
        echo “USAGE: $0 check (css|js|images|open|swf|maishi|cms)”
        echo “USAGE: $0 clean all”
        exit
fi
if [ $1 = “pub” ];then
        pubfile=$2
        if [ ! -f $pubfile ];then
                echo “file not found:”$pubfile
                exit
        fi
        fs=`/usr/bin/filesize ${pubfile}`
        if [ $fs -lt 1 ];then
                echo “file empty:”$fs
                exit
        fi

(more…)

发布脚本[2]

Filed under: 技术话题 — hunter @ 4:48 pm

#!/bin/sh

echo `date`” check log”
if [ -f /data/${acc}/log/svn_lock ];then
        create_time=`ls –time-style=+%s -l /data/${acc}/log/svn_lock|awk ‘{print $6}’`
        cur_time=`date +%s`
        lock_force_release_time=`expr $create_time + 600`
        if [ $lock_force_release_time -gt $cur_time ];then
                echo `date`” no release lock yet”
                exit
        fi
        rm -f /data/${acc}/log/svn_lock
        killall svn
        sleep 5
        killall -9 svn
fi

(more…)

« Newer PostsOlder Posts »

Powered by WordPress