LNMP一键安装
系统需求:需要2 GB硬盘剩余空间128M以上内存,OpenVZ的建议192MB以上安装前建议先运行screen[@more@]安装步骤:1、下载LNMP一键安装包: 可以选择使用下载版(推荐国外或者美国VPS使用)或者完整版(推荐国内VPS使用),如果使用下载版执行命令 wget -c http://soft.vpser.net/lnmp/lnmp0.7.tar.gz ,如果使用完整版,执行命令 wget -c http://soft.vpser.net/lnmp/lnmp0.7-full.tar.gz ,执行上述命令后LNMP一键安装包就会被下载到VPS上。2、解压一键安装包: 执行tar zxvf lnmp0.7.tar.gz 或者tar zxvf lnmp0.7-full.tar.gz 就会将LNMP一键安装
CentOS 5.5一键安装pptp
上次写了一个关于在LINODE的VPS上安装PPTP的文章,可惜后来换了个VPS后怎么也安装不成功了。今天偶然看到一个在centos 5.5上一键安装PPTP的文章,试了一下,只要一分钟就安装成功了。这个PPTP的一键安装包是由DiaHosting提供的,只能在XEN VPS上安装。我是在linode的centos环境下安装的,仅供参考哈。[@more@]一、在SSH里下载PPTPD.SHwget http://www.diahosting.com/dload/pptpd.sh二、运行。sh pptpd.sh这样,pptp已经完全安装在你的VPS上,快的让人想不到吧。安装完毕后,会显示用户名和密码,你可以记录下来使用,或者用下面的办法修改
the method of fixing the problem of using SSIS and SharePointListAdapters to sync data from DB to Sh
ADDITIONAL INFORMATION: The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails. [@more@]I solved this problem by going into Project Properties, Debugging, and setting Run64BitRuntime to false.I expect since I'm running 64-bit OS, SSIS thinks it
the method of fixing the problem of using SSIS and SharePointListAdapters to sync data from DB to Sh
ADDITIONAL INFORMATION: The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails. [@more@]I solved this problem by going into Project Properties, Debugging, and setting Run64BitRuntime to false.I expect since I'm running 64-bit OS, SSIS thinks it
CSS Padding in Outlook 2007 and 2010
For those of you who design and develop HTML emails for Outlook 2007 and 2010, you already know that you are bound by tables and you have very limited CSS support. What you might not realize is that these two email clients convert your code from something legible into a seemingly foreign Microsoft language.今天做邮件模板,发现IE下面显示的跟outlook显示的不一样。[@more@]One of the more critical conversions that you should be aware of is that Outlook 2007 and 2010 will often move your CSS from div'
What is the difference between gross sales and revenue?
Gross sales represents the total amount you received for an item; whereas revenues refer to the total amount you received less any discounts. For example, If you sell your widget for $100, your gross sales are $100. If you offered a 5% discount, then your gross sales are still $100; whereas your revenues are $95 (gross sales minus discount).[@more@]
muck around
n.[U]糞, 廄肥; 堆肥腐殖土; 淤泥【口】污物; 髒亂The kids were covered in muck. 孩子們渾身骯髒不堪。【英】【口】品質低劣的東西That novel is sheer muck. 那本小說完全是劣質品。vt. 及物動詞施廄肥(或堆肥)於【口】弄髒[(+up)]I mucked up my shirt when I was working in the garden. 我在花園裡幹活時把襯衫弄得一團糟。【主英】【口】把...弄得一團糟; 打亂[(+up)]The change in the weather has mucked up our sports timetable. 天氣的變化打亂了我們邉颖荣惖娜粘獭
IE下的图片空隙间距BUG和解决办法
IE图片对于空格间隙的BUG可能很多前端开发人员都碰到过,最典型的就是同样多张图片垂直排列,padding和margin全部设置为0,在FF下完全正确,而IE下每张图片下就出现了空隙,如本文图示。[@more@]IE6 下的非正常表现:很明显地可以看到 IE 中,li 的表现高度,并非我们设定的 57px,而是比其要高,这是因为 img 下面多出了 5px 的空白。解决方法 一使 li 浮动,并设置 img 为块级元素ul{width: 280px;}ul li{float:left;display:block;height:57px;width:277px;}img{display: block;} 解决方法 二设置 ul 的 font-size:0;ul{width: 280px;f
Dreamweaver默认打开后缀名为ftl的文件时
Dreamweaver默认打开后缀名为ftl的文件时,设计视图显示灰色,无法直接预览ftl文件样式;需要进行以下修改: 1、便Dreamweaver能识别*.ftl文件,并当做html页面来处理,需要修改两个文件, (1)Extensions.txt------位于你的用户目录下,如 C:Documents and SettingsAdministratorApplication DataMacromediaDreamweaver 8 (2)MMDocumentTypes.xml----位于程序安装目录下,如D:toolsDreamweaver 8ConfigurationDocumentTypes 2、用编辑器打开Extens.txt,使用替换功能,把XHTML替换成XHTM,KID。替换应该只有两处,一处是所有文档里
power designer使Comment与Name相同.txt
1、先把基本的数据库对象reverse出来; 2、在菜单model->extended model definitions...中,把预定义的powerbuilder加近来; 3、执行菜单功能tools->powerbuilder->reverse extended attributes; 4、在tools->excute commands->edit/run script中书写并执行一下脚本: Dim model Dim tbl Dim ModelTables Set model = ActiveModel Set ModelTables = model.Tables For Each tbl In ModelTables For each col in tbl.columns col.name=col.comment On Error Resume Next next On Error Resume Next NEXT On Error Resume N
[pb]从excel导入数据到datawindow
/////////////////////formula导出excel或者其他格式的文件oleobject oo_datastring ls_nameinteger li_retoo_data=tab_1.tabpage_prodplan_y.ole_prodplan_y.object//oo_data.SaveFileDlg(" ",ls_name,li_ret)oo_data.Write('c:sss.xls',11) //参照FORMULA帮助文件11是excel注意是oo_data.SaveFileDlg(" ",ref ls_name,ref li_ret)ref表示地址 没有ref的参数在这里是不能返回值的//////////////////////[pb]从excel导入数据到datawindow因为本想帮猫猫做一个工资打印程序的,只是情况太多样了. 做了一半发现无法实现.
sql
SQL> SELECT key,count, DECODE (count, 1, (num+2)/3, 2, (num+1)/3, 3, num/count, num/count) avg FROM test /K COUNT AVG- ---------- ----------a 2 .9b 1 .9c 3 1d 4 1.5if exists(select count1 from bb1 where count1 >=3) begin update bb1 set number = round( number/count1,1) end;else if exists(select count1 from bb1 where count1 =
code
if row > 0 then this.selectrow(0,false) end if[@more@]//====================================================================== //功 能:改变datawindwo数据行的颜色 // //参 数:datawindow adw_data//需要修改颜色的datawindow // //返回值:integer 1,成功 0,失败 //====================================================================== string ls_col string ls_modify string ls_des string ls_exp1 string ls_exp2 string ls_exp3 string ls_color1 string ls_color2 string ls_color3
join
dd[@more@]select t1.aa,case when t1.bb < t2.bb then t2.bb else t1.bb end from table1 t1 left join table2 t2 on t1.aa=t2.aa order by aa; select a.aa ,b.bb from table1 a left join table2 b on a.aa=b.aa order by aa; UPDATE table1 a SET a.bb = (SELECT CASE WHEN t1.bb < t2.bb THEN t2.bb ELSE t1.bb END FROM table1 t1 LEFT JOIN table2 t2 ON t1.aa = t2.aa WHERE t1.aa = a.aa) 今天发现一个严重的问题: table1 AA BB 1 4 2 5 3 6 4 7 table2 1 7 4 6 5 8 有这样的两个表要求当table1中的BB小于table2对应的BB
有一点心动
张:我和你男和女都逃不过爱情谁愿意有勇气不顾一切付出真心刘:你说的不只你还包括我自己该不该再继续该不该有回应让爱一步一步靠近张:我对你有一点动心却如此害怕看你的眼睛有那么一点点动心一点点迟疑不敢相信我的情不自禁刘:我对你有一点动心不只结果是悲伤还是喜有那么一点点动心一点点迟疑害怕爱过以后还要失去合:难以抗拒喔人最怕就是动了情虽然不想不看也不听却陷入爱里(音乐演奏)合:我和你男和女都逃不过爱情也许应该放心让爱一步步靠近[@more@]
批处理----学习
批处理的常见命令REMECHOGOTOCALLPAUSEIF如何制作批处理文件符号主要有以下几个1. @2. >3. >>4. |5. ^6. &7. &&8. ""9. ,10. ;con 是dos 设备文件的简称。 在dos中把很多外部设备作为文件,称为设备文件。dos中这样规定的:con 控制台(键盘/显示器) aux (或com1)第一个串口 lpt1 第一个并行打印机接口,nul 不存在的设备 所以,举例说明: copy con abc.txt 这条命令的意思就是从键盘中把输入的文字复制到文件abc.txt中去,所以输入命令后,在输入字符,结束时按下 ctrl+z.你输入的文字就会保
DBG------破解小榕的字典UltraDict
用HH_OllyDbg_1.1和W32dsm10进行破解,[@more@]首先运行UltraDict注册,弹出“注册名或注册码不正确!“时,我们就用W32dsm找到"注册名或注册码不正确!"这句,我已打开了,哈哈地址是:00401DD8好,我们再在OllyDbg进行,打开,找到00401DD8看到FileName="C:regbanyet.dat"说明注册比较就在前面啊,向上走,上面还有一处,00404D0B肯定就在附近,注意00401CF7处的SBB比较,但要注意上面还有一个SendMessage我们断下来,不然进不了调试的过程你也可以在此之前多设几个断点,按F2F9运行,按CTRL+F12往下走,此时注意右上
Ajax-----简易聊天室实战
imgchat.aspchat.csschat.jsdata.xmlindex.htmlmess.aspsendmess.asp主要看chat.js mess.asp sendmess.aspdata.xml:<?xml version="1.0" encoding="gb2312"?><data> <book> <time>1-24 17:43:02 </time> <user>ailen</user> <mess>欢迎!!</mess> </book></data>[@more@]mess.asp<%Response.Charset="gb2312"%> <% dim node,i,nodecount set xml = CreateObject("Microsoft.XMLDOM") xml.async = false xml.loa
Ajax-----取得XML子节点
下一节 聊天室实战[@more@]取得XML子节点'创建DOM对象 set objDom=server.CreateObject("MicroSoft.XMLDom") '取得xml数据 '方法1 取得xml文件的xml数据 objDom.load("c:test.xml") '方法2 取得xml数据串的数据 objDom.loadxml("<people><man name="sd"/></people>") '创建一个节点对象 Set Newnode=objDom.CreateElement("people") '给这个节点赴值 Newnode.Text="人" ' 给这个节点添加属性 Set NewAttribute=objDom.CreateNode("attribute",&
Apache 2.2 + Php 5.1 安装问题解决
WinXP+apache_2.0.43+php-5.1.6+mysql-5.0.15+phpMyAdmin-2.8.2.4 完全配置1从网上下载对应的软件(可以到官方网站,或者google搜索)假设把工作目录设定为d:servermyphp第一部分:安装安装apache_2.0.43-win32-x86-no_ssl.msi到目录D:serverapache(随自己喜好了).安装mysql-5.0.15到目录D:servermysql.安装php-5.1.6到目录D:serverphp.解压缩phpMyAdmin-2.8.2.4到d:servermyphpphpMyAdmin.第二部分:配置找到 php目录里的 php.ini-dist 重命名为 php.ini 并拷到 windows目录里(win2k 里为winnt)再将php目录里的 php5ts.dll拷到 系统目录(syste