2008-03-29

如何解开一个.deb文件

关键字: extract_deb deb
使用ar命令解开.deb包 ar vx test.deb 解开之后会得到三个文件 debian-binary control.tar.gz data.tar.gz 使用 tar 解开 data.tar.gz 即可得到deb文件中的数据文件 tar -xzvf data.tar.gz
2008-03-27

j2me中发送短信

关键字: sms 短信
三星 SM sm = new SM(); sm.setDestAddress("10086"); sm.setData("hello, world"); SMS.send(sm); 通用 String address = "sms://+10086" MessageConnection conn = (MessageConnection)Connector.open(address); TextMessage msg = (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE); msg.setPayl ...
查找当前目录下的所有*.doc文件并将所有结果复制到 /tmp/doc 目录下 find . -iname "*.doc" -type f -exec cp {} /tmp/doc \; 查找当前目录下的所有*.doc目录并将所有结果复制到 /tmp/doc 目录下 find . -iname "*.doc" -type d -exec cp {} /tmp/doc \;
2008-03-06

集群部署方案

关键字: cluster, 集群
集群部署方案一 目标1 均衡系统压力,减少单个服务器因压力过于集成而超负荷运转的发生几率。2 加快用户的访问的速度。3 自动备援,避免因单点故障而导致整个系统瘫痪的情况发生。4 日后系统的便于扩展,通过增加相应的服务器节点即可提高整个系统的承载能力。二 软件配置系统 :RHEL4 [ Linux version 2.6.9-42.EL]负载均衡 :ipvsadm(1.24-6)缓存服务器 :squid(3.0)应用服务器( ...
2008-03-05

在Rails中实现Layout的嵌套

关键字: rails layout
需求: 一个页面是用了layout/application.rhtml 做layout,现在要这个页面同时也可以做其他页面的layout。 实现: 1.扩展ActionView module ActionView module Helpers module NestedLayoutsHelper def inside_layout(layout, &block) layout = layout.include?('/') ? layout : "layouts/#{layout}" ...
pickerel
搜索本博客
最近加入圈子
存档
最新评论