1)安装:ubuntu下:$sudo apt-get install vim
centos6.2: #yum install vim
2)用法及技巧:http://blog.csdn.net/lujinjian605894472/article/details/8363386
3)配置文件.vimrc :在主目录下~创建一个.vimrc,然后把配置文件复制过去,保存就可以了,
配置文件在我的博客:http://blog.csdn.net/lujinjian605894472/article/details/8363537
这样用起来会方便很多, 配置文件是慢慢积累下来的。
2.Emacs的使用:目前我一直用vim编辑器, 还没有使用过Emacs,这是我搜到的Emacs用法,大家可以借鉴一下:
http://dsec.pku.edu.cn/~jinlong/emacs/emacs.html
3.编译器Gcc的使用:1)安装:$sudo apt-get install build-essential 一般情况下安装完vim就已经有了。
2)[haoyue@centos ~]$ gcc -v 查看版本。
使用内建 specs。
目标:i686-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux
线程模型:posix
gcc 版本 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
3)使用方法:详见http://xywrbs.blog.163.com/blog/static/12833398520106306550722/
4)看gcc的man-page:http://www.openbsd.org/cgi-bin/man.cgi?query=gcc&apropos=0&sektion=1&manpath=OpenBSD+Current&arch=i386&format=html
见大家多看看man手册,有利于学习英语。
4.调试器gdb的用法:1)gdb的用法:http://blog.csdn.net/sunboy_2050/article/details/5929720
2)gdb的manpage:http://www.openbsd.org/cgi-bin/man.cgi?query=gdb&apropos=0&sektion=1&manpath=OpenBSD+Current&arch=i386&format=html
5.make的用法:详见:http://blog.csdn.net/lujinjian605894472/article/details/8474119
前台HTML:
<style> .tableList tr td { height: 25px; } .trtitle { background-color: #990000; height: 25px; color: White; }.pageF { float: right; padding: 5px 0; margin-right: 50px; } .pageF a { text-decoration: none; color: blue; } .pageF a:hover { text-decoration: underline; cursor: pointer; color: blue; }</style> <table CommandName="del" OnCommand="lnkBtnOp_Command" runat="server" OnClientClick="if(!confirm('你想要删除这条记录吗?')) return false;">删除</asp:LinkButton> </td> </tr> </tbody> </ItemTemplate> </asp:Repeater> <tfoot> <tr> <td colspan="10"> <div class="pageF"> <webdiyer:AspNetPager ID="pagerBarList" CssClass="paginator" CurrentPageButtonClass="cpb" OnPageChanged="pagerBarList_PageChanged" runat="server" PageSize="20" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" AlwaysShow="true" NumericButtonCount="5" CurrentPageButtonPosition="Center" CustomInfoHTML="<font >共%PageCount%页%RecordCount%条记录</font> " ShowCustomInfoSection="Left" CustomInfoSectionWidth="120px"> </webdiyer:AspNetPager> </div> </td> </tr> </tfoot> </table>
后台代码:
Model类
public class Partners { //PartnersID, PartnersName, PartnersUrl, PCreateDate private int partnersID; public int PartnersID { get { return partnersID; } set { partnersID = value; } } private string partnersName; public string PartnersName { get { return partnersName; } set { partnersName = value; } } private string partnersUrl; public string PartnersUrl { get { return partnersUrl; } set { partnersUrl = value; } } private DateTime? pCreateDate; public DateTime? PCreateDate { get { return pCreateDate; } set { pCreateDate = value; } }
类:DAL
public List<Partners> GetEDM_CountryPropertyList( int pageSize, int pageIndex, ref int recordCount) { List<Partners> entities = new List<Partners>(); SqlParameter[] pars = { new SqlParameter("@PageSize", pageSize), new SqlParameter("@PageIndex", pageIndex), SqlHelper.MakeParam("@RecordCount",SqlDbType.Int,4,ParameterDirection.Output,null) }; SqlDataReader reader = SqlHelper.ExecuteReader(CommandType.StoredProcedure, "dbo.PartnertsList", pars); try { while (reader.Read()) { Partners cp = new Partners() { //PartnersID, PartnersName, PartnersUrl, PCreateDate PartnersID = Field.GetInt(reader, "PartnersID"), PartnersName = Field.GetString(reader, "PartnersName"), PartnersUrl = Field.GetString(reader, "PartnersUrl"), PCreateDate = Field.GetDateTime(reader, "PCreateDate"), }; entities.Add(cp); } } catch (Exception ex) { recordCount = -1; } finally { if (reader != null) reader.Close(); } recordCount = Convert.ToInt32(pars[2].Value); return entities; }
类:BLL
public class PartnersBLL { private readonly DLL.PartnersData country = new DLL.PartnersData(); /// <summary> /// 国家房产信息 列表 分页 /// </summary> /// <param name="ECP_countryId"></param> /// <param name="PropertyState"></param> /// <param name="pageSize"></param> /// <param name="pageIndex"></param> /// <param name="recordCount"></param> /// <returns></returns> public List<Partners> GetEDM_CountryPropertyList( int pageSize, int pageIndex, ref int recordCount) { return country.GetEDM_CountryPropertyList( pageSize, pageIndex, ref recordCount); } /// <summary> /// 分页 移民局 /// </summary> /// <param name="?"></param> /// <param name="pageSize"></param> /// <param name="pageIndex"></param> /// <param name="recordCount"></param> /// <returns></returns> public List<Immigration> GetEDM_ImmigrationList(int pageSize, int pageIndex, ref int recordCount) { return country.GetEDM_ImmigrationList(pageSize, pageIndex, ref recordCount); } }
后台代码:
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { PageBind(); PageBingUser(); PageBingMess(); PageBindImmigration(); } } protected void PageBind() { int recordCount = 0; List<Partners> list = new List<Partners>(); BLL.PartnersBLL country = new BLL.PartnersBLL(); //this.pagerBarList.PageSize, this.pagerBarList.CurrentPageIndex, ref recordCount list = country.GetEDM_CountryPropertyList( this.pagerBarList.PageSize, this.pagerBarList.CurrentPageIndex, ref recordCount); rptCampaignList.DataSource = list; rptCampaignList.DataBind(); //判断有多少条数据的 this.pagerBarList.RecordCount = recordCount; } protected void pagerBarList_PageChanged(object sender, EventArgs e) { this.PageBind(); } /// <summary> /// 删除或修改 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void lnkBtnOp_Command(object sender, CommandEventArgs e) { string infoID = e.CommandArgument.ToString(); //Dictionary<string, object> dic = new Dictionary<string, object>(); //dic.Add("EMID", infoID); if (e.CommandName.Equals("del")) { Dictionary<string, object> dic = new Dictionary<string, object>(); dic.Add("PartnersID", infoID); if (BLL.BLL.Delete(dic, "Partners")) { Response.Write("<script>alert('操作成功!');window.location.href='/blog_article/PartnersList.html';</script>"); } else { Response.Write("<script>alert('操作失败!');window.location.href='/blog_article/PartnersList.html';</script>"); } } }需配置:Web.config文件
<system.web> <pages controlRenderingCompatibilityVersion="3.5" validateRequest="false" clientIDMode="AutoID" enableEventValidation="false" > <controls> <add tagPrefix="webdiyer" namespace="Wuqi.Webdiyer" assembly="AspNetPager" />
在《SourceAnyWhere Standalone安装教程》中介绍了SourceAnyWhere Standalone的服务器和客户端安装,但是SourceAnyWhere Standalone中还有Server Manager这一重要功能。Server Manager 是用来管理SourceAnyWhere Standalone的版本数据库的,这对于分布式开发者团队来说,是非常方便的一款组件。今天就为大家介绍一下Server Manager的安装和使用方法。
《SourceAnyWhere Standalone安装教程三:Server Manager的安装与使用(附视频)》
已有 0 人发表留言,猛击->>这里<<-参与讨论
ITeye推荐
- —软件人才免语言低担保 赴美带薪读研!—