小毅‘Blog

聚,不一定是开始,散,不一定是结束……

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  4 随笔 :: 1 文章 :: 21 评论 :: 0 Trackbacks

2008年2月1日 #

由于换了域名,以前的博客地址不对了。

现在博客终于OK 了

http://www.sohelp.cn/blog/
posted @ 2008-02-01 10:10 mycityhot 阅读(14) | 评论 (0)编辑

2007年3月26日 #

关键词价格希望对做Google AdSense的站长有所帮助。


外汇  有效  ¥17.83 - ¥26.74
美容  有效  ¥5.45 - ¥6.81 
印刷  有效  ¥2.11 - ¥3.09
广告  有效  ¥0.54 - ¥0.94
性病  有效  ¥0.68 - ¥1.13
成人用品  有效  ¥0.56 - ¥0.93
鲜花  有效  ¥4.12 - ¥5.18 
健康  有效  ¥0.50 - ¥0.98
彩票  有效  ¥0.22 - ¥0.39
杀毒  有效  ¥0.65 - ¥0.68
游戏  有效  ¥0.52 - ¥0.90 
乙肝  有效  ¥3.79 - ¥5.68
女人  有效  ¥0.22 - ¥0.40
婚庆  有效  ¥1.84 - ¥2.63
建材  有效  ¥0.71 - ¥1.19
汽车  有效  ¥0.60 - ¥1.00
电子  有效  ¥0.28 - ¥0.53
电脑  有效  ¥1.03 - ¥1.71 
健康  有效  ¥0.50 - ¥0.98
外贸  有效  ¥0.67 - ¥1.26
学习  有效  ¥0.32 - ¥0.43
投资  有效  ¥0.93 - ¥1.84
教育  有效  ¥0.50 - ¥0.65
服务器  有效  ¥0.51 - ¥0.96
虚拟主机  有效  ¥5.66 - ¥7.67
电影  有效  ¥0.32 - ¥0.40
域名  有效  ¥4.39 - ¥6.59  
posted @ 2007-03-26 23:03 mycityhot 阅读(648) | 评论 (5)编辑



官方正版ID申请:
http://www.nod32cn.com/download/beta.php

NOD32防毒軟件用戶註冊網(90天免费试用登记证:多申请几个,每3个月到官方登记注册可以长时间使用)
http://reg.nod32.com.hk

NOD32免ID升级网址(将下面任一网址加入NOD32升级服务器网址中):
http://u1.eset.com/nod_eval/
http://u3.eset.com/nod_eval/
http://u4.eset.com/nod_eval/
http://u5.eset.com/nod_eval/
http://u7.eset.com/nod_eval/
http://u8.eset.com/nod_eval/
http://u20.eset.com/nod_eval/
http://u21.eset.com/nod_eval/
http://u22.eset.com/nod_eval/
http://u23.eset.com/nod_eval/
http://u24.eset.com/nod_eval/
http://u25.eset.com/nod_eval/
http://u27.eset.com/nod_eval/
http://u28.eset.com/nod_eval/
http://u29.eset.com/nod_eval/
http://nod32.12club.cn:8081/
http://nuinu.ru/nod32
http://rav.xxjp.org/nod32/index.htm
http://upjs.nod32info.cn:8081/ 
http://www.magistr.ultranet.ru/Nod32/ 
http://nod32info.vicp.net/
http://a9z1.zj.com/
http://upjs.nod32info.cn:8081/
http://nodupdate.c0msys.net/
http://nod32.opened.cn/
http://security.thusns.org/nod_upd/
http://nod32.hhzec.com/
http://a9z1xf.home4u.china.com/nod32/ 
http://www.xthost.info/workproject/ 
http://sr2.mytempdir.com/55134 
http://www.lan.krasu.ru/nod_upd/ 
http://new.bara.msk.ru/
http://thebestpro.nm.ru/nod32/
http://nod32.salusoft.ee/new
http://ruwarez.net:80/ndp/
http://avir.koleso-auto.ru:80/
http://buiucani.starnet.md:80/NOD32/
http://thebestpro.nm.ru:80/nod32

ID升级每日更新网站:
http://www.lanniao.org/soft/nod32.htm
http://www.xtraboard.org/nod/fortunecookie.php
http://livredor.hiwit.org/index.php?idsite=3702&zone=d

NOD32官方网站:
http://www.nod32cn.com/home/home.php (中国大陆)
http://www.nod32.com.hk/home/home.php(香港)
http://www.nod32.com/home/home.htm(美国)
http://www.eset.com/home/home.htm(总站)

posted @ 2007-03-26 22:48 mycityhot 阅读(8800) | 评论 (11)编辑

源文来自http://www.113317.com/blog/article.asp?id=508

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace Log
{
    class LogWirter
    {
        /// <summary>
        /// 事件源名称
        /// </summary>
        private string eventSourceName;
        EventLogEntryType eventLogType;
        public LogWirter()
        {
            eventSourceName = "test";
            eventLogType = EventLogEntryType.Error;
        }

        /// <summary>
        /// 消息事件源名称
        /// </summary>
        public string EventSourceName
        {
            set { eventSourceName = value; }
        }

        /// <summary>
        /// 消息事件类型
        /// </summary>
        public EventLogEntryType EventLogType
        {
            set { eventLogType = value; }
        }

        /// <summary>
        /// 写入系统日志
        /// </summary>
        /// <param name="message">事件内容</param>
        public void LogEvent(string message)
        {
            if (!EventLog.SourceExists(eventSourceName))
            {
                EventLog.CreateEventSource(eventSourceName, "Application");
            }
            EventLog.WriteEntry(eventSourceName, message, EventLogEntryType.Error);
        }
    }
}
posted @ 2007-03-26 01:06 mycityhot 阅读(1910) | 评论 (2)编辑

源文来自http://www.113317.com/blog/article.asp?id=491

今天空余时间写了个数据库操作仅供参考还末测试。如果有什么不正确的地方请多多指教。



程序代码 程序代码
using System;
using System.Data;
using System.Data.OleDb;
namespace Power_AppCode
{
 public class DataBase
 {
  // 连接数据源
  private OleDbConnection conn = null;
  /// <summary>
  /// 数据源
  /// </summary>
  /// <param name="conStr">数据源连接字符串</param>
  public DataBase(string conStr)
  {
   conn = new OleDbConnection(conStr);
  }
  /// <summary>
  /// 根据SQL查询返回DataSet对象,如果没有查询到则返回NULL
  /// </summary>
  /// <param name="sql">查询语句</param>
  /// <returns>DataSet</returns>
  public DataSet GetDataSet(string sql)
  {
   DataSet ds = new DataSet();
   try
   {
    OleDbCommand cmd = new OleDbCommand(sql, conn);
    cmd.CommandTimeout = 20;
    System.Data.OleDb.OleDbDataAdapter adapter = new OleDbDataAdapter(cmd);
    adapter.Fill(ds, "tempTable");
   }
   catch (Exception e)
   {
    ds = null;
   }
   finally
   {
    this.Close();
   }
   return ds;
  }
  /// <summary>
  /// 根据SQL查询返回DataSet对象,如果没有查询到则返回NULL
  /// </summary>
  /// <param name="sql">查询语句</param>
  /// <param name="sRecord">开始记录数</param>
  /// <param name="mRecord">最大记录数</param>
  /// <returns>DataSet</returns>
  public DataSet GetDataSet(string sql, int sRecord, int mRecord)
  {
   DataSet ds = new DataSet();
   try
   {
    OleDbCommand cmd = new OleDbCommand(sql, conn);
    cmd.CommandTimeout = 20;
    System.Data.OleDb.OleDbDataAdapter adapter = new OleDbDataAdapter(cmd);
    adapter.Fill(ds, sRecord, mRecord, "tempTable");
   }
   catch (Exception e)
   {
    ds = null;
   }
   finally
   {
    this.Close();
   }
   return ds;
  }
  /// <summary>
  /// 对数据库的增,删,改的操作
  /// </summary>
  /// <param name="sql">SQL语句</param>
  /// <returns>是否成功</returns>
  public bool ExecuteDataBase(string sql)
  {
   bool succeed = false;
   int cnt = 0;
   try
   {
    OleDbCommand cmd = new OleDbCommand(sql, conn);
    cmd.CommandTimeout = 20;
    if (this.Open())
     cnt = cmd.ExecuteNonQuery();
   }
   catch (Exception e)
   {
    e.ToString();
   }
   finally
   {
    if (cnt > 0)
    {
     succeed = true;
    }
    this.Close();
   }
   return succeed;
  }
  /// <summary>
  /// 获得该SQL查询返回的第一行第一列的值,如果没有查询到则返回NULL
  /// </summary>
  /// <param name="sql">查询语句</param>
  /// <returns>返回的第一行第一列的值</returns>
  public string GetScalar(string sql)
  {
   string str = null;
   try
   {
    OleDbCommand cmd = new OleDbCommand(sql, conn);
    if (this.Open())
     str = cmd.ExecuteScalar().ToString();
   }
   catch (Exception e)
   {
    e.ToString();
   }
   finally
   {
    this.Close();
   }
   return str;
  }

  /// <summary>
  ///  获得该SQL查询返回DataTable,如果没有查询到则返回NULL
  /// </summary>
  /// <param name="sql">查询语句</param>
  /// <returns></returns>
  public DataTable GetDataTable(string sql)
  {
   DataTable tb = null;
   DataSet ds = this.GetDataSet(sql);
   if (ds != null)
   {
    tb = ds.Tables["tempTable"];
   }
   return tb;
  }
  /// <summary>
  /// 打开数据库连接.
  /// </summary>
  private bool Open()
  {
   bool succeed = false;
   try
   {
    if (conn.State == System.Data.ConnectionState.Closed)
    {
     conn.Open();
     succeed = true;
    }
    else if (conn.State == System.Data.ConnectionState.Broken)
    {
     conn.Close();
     conn.Open();
     succeed = true;
    }
    else if(conn.State == System.Data.ConnectionState.Open)
    {
     succeed = true;
    }
   }
   catch(Exception e)
   {
    e.ToString();
   }
           
   return succeed;
  }
  /// <summary>
  /// 关闭数据库连接
  /// </summary>
  public void Close()
  {
   if (conn != null)
   {
    conn.Close();
   }
  }
  /// <summary>
  /// 释放数据库连接资源
  /// </summary>
  public void Dispose()
  {
   if (conn != null)
   {
    conn.Dispose();
    conn = null;
   }
  }
 }
}
posted @ 2007-03-26 00:57 mycityhot 阅读(3861) | 评论 (3)编辑