有效提高你的写作水平——15个经典英语句型
英语学习-时间表达
1 You can say 'quarter past', (点钟过一刻)'half past'(半点钟), or 'quarter to'(点钟过三刻)
2 How do you say the following time? 3:45
it's three forty five
it's quarter to four
it's quarter to
3 How do you say the following time? 6:02
it's just gone six
时间刚过正点2-3分钟,就可以说,'it's just gone six'.
4 How do you say the following time? 2:57
it's nearly three o'clock
it's just before three o'clock
it's just coming up to three o'clock
英语表达时间概念的说法不拘一格,非常灵活。所以这三个句子都是正确的
5 In the army, they are very exact about time - how would a soldier express the following? 16:00
Sixteen hundred hours
军队对待时间的概念非常严格。 所以用sixteen hundred hours 表达是准确无误的。
MP3批量更名
更名软件多了,用起别人总觉得不合习惯。
环境:需支持.net framework 2.0
Easily to modify ID3 tag. Batch rename for MP3 fils with title,artist,album,year.
下载 http://mumayi1.999kb.com/pic/2006-09-30/8r6du8fdlww01rdfml7f.zip
用Javascript将图片等比例缩小
script:
function resizeimg(ImgD,iwidth,iheight) {
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
else{
if(image.height>iheight){
ImgD.height=iheight;
ImgD.width=(image.width*iheight)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
ImgD.style.cursor= "pointer"; //改变鼠标指针
ImgD.onclick = function() { window.open(this.src);} //点击打开大图片
if (navigator.userAgent.toLowerCase().indexOf("ie") > -1) { //判断浏览器,如果是IE
ImgD.title = "请使用鼠标滚轮缩放图片,点击图片可在新窗口打开";
ImgD.onmousewheel = function img_zoom() //滚轮缩放
{
var zoom = parseInt(this.style.zoom, 10) || 100;
zoom += event.wheelDelta / 12;
if (zoom> 0) this.style.zoom = zoom + "%";
return false;
}
} else { //如果不是IE
ImgD.title = "点击图片可在新窗口打开";
}
}
}
HTML:
<img id="imgDoc" border="0" src="test.jpg" onload="javascript:resizeimg(this,400,300);" >
win2003 DCOM
DCOM or COM+在win2000下调试运行正常,迁入win2003时,程序无法调试报错"拒绝的权限"。
问题解决
1、组件服务添加应用程序,添加COM+组件。
2、应用程序的属性-Tab安全-授权-“对此应用程序强制进行访问权限检查”勾去掉
OK
读中文乱码解决
phpmyadmin ERROR: #1251
版本:
MySQL - 5.0.22-community-nt
php 4.4.2.2
phpMyAdmin 2.8.2.4
架设好了,打开网页报以下错误
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
搜索原因,发现还是一个普遍问题.原因是因为你使用的mysql服务器版本中使用了新的密码验证机制,这需要客户端的版本要在4.0以上,原来的密码函数被改为old_password ();,这样使用password()生成的密码在旧的版本上的客户端就不好使了,而PHP中的MYSQL客户端都是3.23的.
解决方法:
先用root登录MYSQL服务器,执行
mysql>set password for root@"localhost"=old_password('yourPassword');
好男人
什么是好男人
有人告诉我
有钱的才是好男人
没钱的当然不是好男人
然而
有钱的,虽然你从他那不能得不到什么,但他还是好男人,因为他有钱
没钱的,即使给了你他所有的,但还不算好男人,因为他还是没有钱
所以。。。。
没钱的男人悲哀啊
ASP.net - 文本框按回车调用click
第一步
添加onkeypress事件
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
txtSearch.Attributes.Add("onkeypress","keypress()");
}
第二步
将txtSearch设为AutoPostBack
页面自动生成代码
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.frmMarketing1;
}
else {
theform = document.forms["frmMarketing1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
第三步
添加以下script
<script language="javascript" event="onkeydown" for="txtSearch">
if(event.keyCode==13)
{
__doPostBack('btnOk','');
return false;
}
</script>
点击"另存为"按钮,弹出图片保存对话框
<script>
function savepic(){
pic=window.open(imgTest.src,"demo")
setTimeout('pic.document.execCommand("saveas")',0);
}
</script>
<iframe name=demo style="display:none"></iframe>
<img id="imgTest" src=2.jpg >
<a href="#" onclick="SaveAs()">另存为</a>