Friday, December 19, 2008

还是技术贴搜索量大

很久都没来了,看了下访问者基本上搜索关键词到这里。百度里也有个空间,访问量基本上来自百度搜索。

Friday, August 15, 2008

scilab与高中数学

摘自http://www.pep.com.cn/gzsxb/jszx/jxyj/200803/t20080303_447756.htm

       为适应时代发展的需要,新教材不同程度地注意了信息技术与数学课程内容的整合,部分例题(如函数的应用、数学建模)、习题需要借助计算机(器)来解决。而有些内容也必须用计算器或计算机来解,如用二分法求方程的近似解。而从目前的情况来看,使用得较多的是科学计算器,其次是几何画板,Scilab语言的使用率并不高。主要原因是没有相关的设备或者教师不熟悉相关的操作,或者学生遇到某个数学问题时不知道用哪种工具来解决。事实上,好多中学还不具备这个条件或这方面的条件还较差,不可能都上机操作,很多家庭也没有电脑。很多学生编了程序也不知道对不对,根本无法上机操作验证。再者,程序编写中要求也没有详细说明,加“,”“;”或不加“,”“;”的地方或应该有空格的地方都没有给出相应的说明,有条件的学生把编好的程序拿到计算机上一操作不运行,反倒打击了他们的积极性。另外,常用的程序符号、命令(如乘号、乘方、开方、π、取绝对值、四舍五入、向上取整、向下取整等等)课本上都没有,或给出符号了却没有给出用法;再如Scilab语言中执行语句应该小写而不能大写等应该注意的地方课本上也没有给出说明或注释。而必修1教材71页最左边的“可结合课件1209研究客房问题”,可实际上课件讨论的是例4的内容,完全是张冠李戴。还有一些教师反映,和教材配套使用的课件修改起来很困难,若想按照自己的设计再加工几乎是不可行的,打击了教师再创造的热情。

与时俱进吧,老师不能不思进取。

Friday, August 8, 2008

Saturday, August 2, 2008

额,外国牛哼哼了一声,有的东西就能用了

伟大的奥运啊,你真牛。

虽然能用了,还是有些怕怕。

Sunday, July 20, 2008

Sql server存储过程

研究了一个通宵的存储过程,开始一直以为是储存过程,难怪搜不到什么好资料。
有一篇和ASP结合的好文章,我们的实验室有这一帖,貌似作者是邓老大。
http://eelab.gxu.edu.cn/create/list.asp?unid=667
还有个瑞典的强人,不得不服。
http://www.sommarskog.se/
当然可爱的MSDN也必不可少
http://msdn.microsoft.com/en-us/library/ms808739.aspx
还有这个好玩的数据库连接字符串网站
http://www.connectionstrings.com/

哈哈,这些你会觉得一个存储过程也这么好玩。

Saturday, July 19, 2008

Audi Symphony

音乐与奥迪。

BabyFace Sorry for the stupid things

babyface
Sometimes we wish for the better
When we have it good as it gets
Sometimes the grass isn't greener
Soon as we find out, we forget
Sometimes the fool doesn't know he's a fool
Sometimes a dog, he don't know he's a dog
Sometimes I do stupid things to you
When I really don't mean it at all
有时候我们希望得到更好的

当我们一切都已经很好的时候

有时草并没有更绿一些

当我们才刚发现却已忘了

有时笨蛋/受骗者不知道自己是个笨蛋

有时一只狗他并不知道自己是一只小狗

有时我对你做的那些傻事

我真的不是故意的

*************************************************************
Sometimes a man is gon' be a man
It’s not an excuse, it’s just how it is
Sometimes the wrong, don't know that they’re wrong
Sometimes the strong, ain't always so strong
Sometimes a girl is gon' be a girl
She don't want to deal with all the drama in your world
God knows I don't mean to give it to you
So girl, I'm sorry for the stupid things
wish I didn't do but I do


这不是借口 就是如此

有时犯了错的人并不知道他们错了

有时候强者也不总是那么的坚强

有时女孩就是女孩

她并不想涉及你的生活里的事

上帝知道我不是故意对你做那些蠢事的

所以女孩 对于我做的傻事我感到很抱歉

我真希望我没有那样做可是我做了

*************************************************************

Oh so sorry, oh no, oh so sorry

哦,真抱歉
Sometimes I wish I was smarter
Wish I was a bit more like you
Not making stupid decisions made at the last minute
You live to regret when it’s through
Well sometimes the fool, doesn't know he's a fool
And sometimes a dog, he don't know he's a dog
But sometimes I do stupid things to you
When I really didn't mean it at all
有时我希望自己聪明一些

希望我更像你一些

不会在最后一刻做些愚蠢的决定

当一切完结时就会感到后悔

有时笨蛋不知道自己是个笨蛋

有时一只狗他并不知道自己是一只小狗

有时我对你做的那些傻事

我真的不是故意的


Sometimes a man is gon' be a man
It’s not an excuse, it’s just how it is
Sometimes the wrong, don't know that they’re wrong
Sometimes the strong, ain't always so strong
Sometimes a girl is gon' be a girl
She don't want to deal with all the drama in your world
God knows I don't mean to give it to you
So girl, I'm sorry for the stupid things
I wish I didn't do but I do


Sometimes the fool doesn't know he's a fool
And sometimes a dog, he don't know he's a dog
But sometimes I do stupid to you
When I really didn't mean it at all . . .at all

有时我希望自己聪明一些

希望我更像你一些

不会在最后一刻做些愚蠢的决定

当一切完结时就会感到后悔

有时笨蛋不知道自己是个笨蛋

有时一只狗他并不知道自己是一只小狗

有时我对你做的那些傻事

我真的不是故意的

Sometimes a man is gon' be a man
It’s not an excuse, it’s just how it is
Sometimes the wrong, don't know that they’re wrong
Sometimes the strong, ain't always so strong
Sometimes a girl is gon' be a girl
She don't want to deal with all the drama in your world
God knows I don't mean to give it to you
So girl, I'm sorry for the stupid things
I wish I didn't do but I do

Friday, July 18, 2008

腾讯是想搞头像门?


今天腾讯在它的会员专区上传了几个怪异的头像,这些头像都是恶搞以前的经典那些头像。

早上才四个的,我换了两次头像,晚上又多了四个,继续换...

莫非腾讯内部...

Sunday, July 13, 2008

js技巧:查看页面源代码

在CSDN看到:

直接从地址栏运行
javascript:alert(document.documentElement.outerHTML);

javascript:document.write(document.documentElement.outerHTML);

是看当前页代码..

javascript:alert(iframes[n].document.documentElement.outerHTML);

javascript:document.write(iframes[n].document.documentElement.outerHTML);

就可以看到IFRAME里的内容了...

javacript:alert(iframes.length);

查看有多少个IFRAME

Monday, June 30, 2008

python cn社区



大家一起分享,一起讨论,这才是我喜欢的编程。引用:
任何情况下,如果您直接向这个邮件列表发出“退订”之类的请求,均会视作您无法胜任这一职业的一项直接证据
,请三思!

Sunday, June 29, 2008

只能运行一个程序实例的两种方法对比

第一篇日志,给Delphi,给blogspot,终于能访问了。这篇文章是原来发表在实验室的版面上,结合网上的两种方法对比了一下而已。

两种方面都是运行在project/view source里编辑。一个是利用Windows系统的全局原子,另一个是利用API函数比较同类同名窗体。

1.全局原子

利用向系统添加全局原子的方法,全局原子由Windows 系统负责维持,它能保证其中的每个原子都是唯一的,管理其引用计数,并且当该全局原子的引用计数为0时,从内存中清除。我们用GlobalAddAtom 函数向全局原子添加一个255个字节以内的字符串,用GlobalFindAtom来检查是否已经存在该全局原子,最后在程序结束时用 GlobalDeleteAtom函数删除添加的全局原子。示例如下:

program Project1;
Uses Windows
const
iAtom='SingleApp';
begin
if GlobalFindAtom(iAtom)=0 then
begin
  GlobalAddAtom(iAtom);
  Application.Initialize;
  Application.CreateForm(TForm1,Form1);
  Application.Run;
  GlobalDeleteAtom(GlobalFindAtom(iAtom));
 end
 else
  MessageBox(0,'你已经运行了这个投影程序','',mb_OK);
end.

2.API函数

program Project1;
uses
Forms,Windows, Unit1 in 'Unit1.pas' {Form1};
var Hwnd:THandle;
begin
Hwnd:=FindWindow('TForm1','窗体标题'); //查找是否已有窗体(窗体标题)
if Hwnd<>0 then
begin
SetForegroundWindow(Hwnd); //激活已运行的程序实例,但程序最小化时无效
MessageBox(0,'你已经运行了这个投影程序','',mb_OK);
   Application.Terminate; //终止本次实例
  end
  else
begin
   Application.Initialize;
   Application.CreateForm(TForm1, Form1);
   Application.Run;//运行本次实例
  end;
end.