`
laowood
  • 浏览: 119565 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
ps -ef | grep redis du -sh 查看文件夹大小 ls -hl 查看文件夹大小 #This is my first shell #####改变权限 #chmod a+x fileName ###改变 所有用户有执行权限 #chmod g+w fileName ###改变 本组人有写权限 #chmod g+r fileName ###本组有读权限 #echo 打印 echo "first shell" #$符号用于引用一个变量的内容,linux中所有的变量都是字符串 #read 会等待用户输入内容,用户输入内容赋值给 variable2 #$ read v ...

redhat 安装 oracle

  装完RHEL5之后遇到的 第一个问题 通过SSH登录有乱码。 解决如下 vi /etc/sysconfig/i18n LANG="zh_CN.GBK" wq   第二个问题 ssh 总是在几分钟内Connection was reset.   ssh 连接时出现 connection reset by peer 错误 底层原因: 服务器端的防火墙不接收ssh包,并返回ICMP错误包。 ------------------------------------------------------------------------------ ...
  本文介绍了在Fedora 14  64-bit上安装Oracle Database 11g Release 2 (11.2) 64-bit. 这篇文章基于具有2G swap分区和SELinux关闭。 安装也应包括以下程序包:  Gnome Desktop Environment Editors Graphical Internet Development Libraries Development Tools Server Configuration Tools Administration Tools Base Fonts Hardware Support Inp ...
[code="sql"]to_char(sysdate,'fm YYYY-MM-DD  Q " Quarter" " Rome "RM  "The" WW"th Week Of  this Year," W "th Week Of this Month," "last "DD " days in this Month&qu ...
applicationContext.xml 配置如下   <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/ ...
把最近在做的一个项目的研究成果贴出来做个笔记。项目是要做一个本企业的网上营业厅,在不增加太大难度的前提下为了取得更好的界面效果和更快的开发速度准备研究下Flex这种富客户端,代码用AS3语言写。flex和服务器端很好的交互 有两种官方框架 livecycle  和它的简化版 BlazeDS   因为项目应用比较简单,livecycle又是收费的所以用BlazeDS。   Spring已经提供Spring和flex的整合。在官方下了个例子,用过Spring的马上就能上手。   结构是这样的。     在web.xml中   先把spring 的 配置文件地址声明下。 ...
decode, case的用法 select t.startCity,t.endCity,t.weightPrice,t.lightPrice,to_char(t.startTime,'hh24:mi:ss') as startTime,t.timeLimit||'hr.' timeLimit,to_char(t.endLimit,'hh24:mi:ss') as endLimit,to_char(t.pupTime,'hh24:mi:ss') as pupTime,'faster' as quotationVersion,decode(t.arrival_date_type,0,'toda ...
I should have known all along           我应该知道的 there was something wrong               我们出了问题 I just never read between the lines     我就是无法读出字里行间的意思 Then I woke up one day                  有一天我醒了 and found you on your way               发现你已经上路 Leaving nothing but my heart behind     什么都带走了 除了我的 ...
select replace(reverse(sys_connect_by_path(reverse(rownum || '*' || lv || '=' || rpad(rownum * lv, 2)),'/ ')),'/') from (select level lv from dual connect by level < 10) where lv = 1 connect by lv + 1 = prior lv; ----------------------------------- declare v_num1 number; v_num2 number; v_str ...

oracle笔记1

conn / as sysdba -切换到sys用户 select * from session_privs show user ---------修改 操作系统访问数据库 密码--------- 1 conn system/mamager select instance_name from v$instance;//查看实例 2 停止数据库 3 删除老密码文件pwfile 4 dos>orapwd file=%orace_home%\database\pwd+sid.ora  pwassword=newpass orapwd file=f:\oracle\ora92\datab ...
总共有auto,static,register,extern。 --------------------------- 寄存器变量 register,直接放到cpu中的变量 适合使用频繁的变量,可以提高运行速度。 只限于整形,字符型,指针型的局部变量。寄存器变量是动态变量,仅允许说明两个寄存器变量 eg:register int i; ---------------------------- 引用型变量extern,某个模块文件中使用到另一个文件中的全局变量,使用extern来说明。 eg:file1.c中定义了全局变量int s,另一个file2.c中的函数fun1()需使用这个变量s ...
public static string Serialize(string fileName) { using (FileStream reader =new FileStream(fileName, FileMode.Open)) { byte[] buffer =new byte[reader.Length]; reader.Read(buffer, 0, (int)reader.Length); string ret=Convert.ToBase64String(buffer); reader.Close(); retur ...
Studio Version     Song:Always Be My Baby Artist:David CookWe were as one babe,For a moment in time And it seemed everlasting, That you would always be mine Now you want to be free,So I’m letting you fly Cause I know in my heart babe Our love will never die, No! You'll always be a part of me, ...
我们公司开发程序一般是 C# Winform 做客户端,EJB做服务器端,两者之间的通信全靠 http协议 来回POST XML,老感觉这样做不爽,不知道大家用什么来互相通信?

C#画图

翻出以前刚到公司自己做的这个,以前查资料作了半天,发现 现在 有些都忘了 ,贴在此处   PanelChart.class   using System; using System.IO;//用于文件存取 using System.Data;//用于数据访问 using System.Drawing;//提供画GDI+图形的基本功能 using System.Drawing.Text;//提供画GDI+图形的高级功能 using System.Drawing.Drawing2D;//提供画高级二维,矢量图形功能 using System.Drawing.Imaging;//提供画GD ...
Global site tag (gtag.js) - Google Analytics