惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security Affairs
Hacker News: Ask HN
Hacker News: Ask HN
L
Lohrmann on Cybersecurity
PCI Perspectives
PCI Perspectives
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
月光博客
月光博客
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
The GitHub Blog
The GitHub Blog
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
TaoSecurity Blog
TaoSecurity Blog
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
F
Full Disclosure
U
Unit 42
Jina AI
Jina AI
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
T
Troy Hunt's Blog
腾讯CDC
T
Threatpost
H
Hacker News: Front Page
P
Palo Alto Networks Blog
博客园 - 聂微东
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
Help Net Security
Help Net Security
L
LINUX DO - 热门话题
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Spread Privacy
Spread Privacy

博客园 - semye

input+select(multiple)实现下拉框输入值 简单的js分页脚本 - semye - 博客园 请问做个类似这样的网站多少钱 省份和城市 - semye - 博客园 客户端取用户控件中服务器控件的标识 VS2003调试很慢 enctype="multipart/form-data" 群发邮件太慢了! SQL SERVER “数组参数” WEB水晶报表部署笔记 写程序解智力题,help!!! SQL语句区分大小写问题 发送邮件 - semye - 博客园 JS事件大全 WinForm动态添加控件及其事件 WinForm程序实现滚动字幕与背景音乐 公历转换为农历 简单水晶报表程序与安装部署文件制作 导数程序
低级错误是怎样“炼”成的?
semye · 2007-04-19 · via 博客园 - semye

犯错了,超低级的错误,记下几个印象深刻的

生活中:

拿着自己的锁(那种挂锁),锁到楼下别家的门上了,我们没了锁,他们拿锯子开锁

朋友去我那玩,在离家两三百米处,回去时带错方向,最后走了两三千米


工作中:

在后台开通前台注册的账号时,系统向用户发送欢迎邮件,邮件内容中的用户名错误
调发送邮件的方法时传错了参数,本应传用户名,却传了我自己的后台登陆名,
由于注册账号和后台登陆名都为SEMYE,故自己测试时,并未发现错误

同事测到这个BUG后,发现自己竟犯这样的错误,马上动手改代码
改参数为 e.Item.Cells[0].Text,随手注册了个由数字组成的账号
收邮件时,确实用户为数字,以为这会没问题了,谁知道,呵呵,都不好意思写下去了
传的e.Item.Cells[0].Text并非用户名,而是ID号,用户名应是 e.Item.Cells[1].Text

写系统日志时,代码片如下:
   try
   {
    if(conn.State!=ConnectionState.Open)
     conn.Open();
    i=cmd.ExecuteNonQuery();
   }
   catch(System.Exception e)
   {
    if(conn.State!=ConnectionState.Closed)
     conn.Close();
    throw new Exception(e.Message);
   }
   
   return i>0?true:false;
呵呵,惭愧,连接没关闭

这些低级错误是怎样“炼”成的?看来我要面壁思过些时间了