落魄一遥

drag out an ignoble existence

导航

<2010年3月>
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910

档案

随笔分类

登录

统计

去看

2005年1月19日 #

冲动裤裆

落魄

一遥, 正梦

莫笑明月夜, 思量十年


我自落魄人莫笑, 孤魂化作一梦遥

15:17 | 评论 (2)

2004年12月29日 #

找到的一点自定义linux cd的方法

以前看到过关于debian live cd的制作方法

今天看到了fedora的mini制作

http://www.ossacc.org/Docs/livecd/howto/document_view

也可以参考这里

http://pukiwiki.kandix.idv.tw/index.php?Fedora%2FMiniFedora#content_1_7

期望能很快见到<100MB的fedora出来

就象DSL一样,可以用usb盘来装

DSL参考http://www.damnsmalllinux.org

 

9:36 | 评论 (2)

2004年12月2日 #

可悲的人类社会

我是可悲的, 因为我至今都未将Grove开源

人类是可悲的, 因为至今都还在战争, 为了资源而战争

人类是可悲的, 因为至今汽车还有那么多牌子, 如果都开放, 那么就不会有那么多的资源浪费

人类是可悲的, 因为至今还在你争我夺, 而用户只有一个, 而地球只有一个

为什么不能协同呢?

商业? 生存? 资本? 狗P?

就如银河战士说的一样, 这根本不存在....

13:58 | 评论 (4)

2004年11月30日 #

NCoding.NET 宣告落户

有感兴趣的可以去看看, 而且最近终于把Visual Sql Builder的Demo做完了, 放上去现现

http://www.ncoding.net

11:59 | 评论 (0)

2004年11月23日 #

Configure mplayer

新下了pre5的source下来就./Configure --enable-gui --language=zh_CN

原来fc3里的gtk+-devel和glib-devel两个包要自己装上,mplayer要gtk1支持的

后来把skin和font都copy好, 可是运行后mplayer的菜单里居然显示不出汉字

后来发现原来mplayer的source目录下help下的一个.zh-cn(好象是这个文件)要改成UTF8编码 -__-

为啥发现的? 因为在公社里见到一位兄弟说"N遍了......", 为此感谢广大的linux先行者.

最后我的mplayer终于发出a...o....e....的动人弦律

衷心的祝愿

happy coding

 

9:00 | 评论 (3)

2004年11月15日 #

Grub Configure Boot

两块硬盘

大小 主次
20G
40G

BIOS启动顺序: IDE1,IDE0,CDROM

40G硬盘上装的是XP,别的没有

20G上第一个分区是NTFS,第二个分区是FAT32,然后是ext3和swap

拔掉40G,启动后安装linux 完成后,想利用Grub引导xp,提示NTLDR is missing

改Grub.conf中引导xp为

root (hd1,0)
makeactive
chainloader +1
map (hd0) (hd1)
map (hd1) (hd0)

然后启动正常, 现在不用担心因为grub的问题把xp给搞坏,同时linux恢复起来也许方便点拉... 想咋折腾就咋折腾, 20G拿掉系统正常, 40G拿掉也正常....

13:24 | 评论 (1)

2004年10月26日 #

从此我们将要同时进行我们的婚姻旅程....

在人类证明了人类基因与毛虫基因数量相当, 同时证明了爱因斯坦(Albert Einstein)的扭曲时空理论之际, 我和我老婆三年的恋爱旅程进了实质性的一步----拿到了结婚登记照, 从此我们将要同时进行我们的婚姻旅程....

-----2004.10 于 上海


 

14:00 | 评论 (4)

Visual SQL Builder 控件发布

Visual SQL Builder

http://grove.91link.com

目前只能在.NET下面用, 当然, 不管是WinForm还是WebForm都可以

有问题请联系我!

happy coding

13:56 | 评论 (1)

2004年7月12日 #

Grove 1654 发布

经过一个星期的测试更新了几个bug和GroveToolkit在使用时的不便

更新Sql入口Parameter

在工具中取得命名空间的问题等

http://grove.91link.com

20:22 | 评论 (1)

2004年7月10日 #

Configure pppoe(adsl), squid, iptables for internet connection sharing

ensure no greateway setting in your /etc/sysconfig/network, maybe you need restart the network service

and, setup the adsl properties through the adsl-setup

then, the setup tools will tell you how to connects to internet

squid:

# WELCOME TO SQUID 2
# visible_hostname proxy-1  # for 2.5

http_port 3128

#hierarchy_stoplist cgi-bin ?

#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY

cache_mem 8 MB

maximum_object_size 4096 KB

cache_dir ufs /home/squid/cache 2048 16 256

cache_access_log /var/log/squid/access.log

cache_log /var/log/squid/cache.log

cache_store_log /var/log/squid/store.log

pid_filename /var/run/squid.pid

dns_nameservers 202.102.14.141 202.102.14.4

reference_age 1 week

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80  # http
acl Safe_ports port 21  # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70  # gopher
acl Safe_ports port 210  # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280  # http-mgmt
acl Safe_ports port 488  # gss-http
acl Safe_ports port 591  # filemaker
acl Safe_ports port 777  # multiling http
acl CONNECT method CONNECT

http_access deny CONNECT !SSL_ports
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access allow all
icp_access allow all
miss_access allow all
cache_mgr landws@ynmail.com
#acl denyip dst 172.160.1.0/255.255.255.0
#always_direct allow denyip 

when ends the squid config for net sharing, we need the nat allows firewall to opens

#!/bin/sh
echo "starting the firewall..."

##Ismod the firewall modules
modprobe ip_tables

##Enable the ip_forward
echo "1" > /proc/sys/net/ipv4/ip_forward

##clear the chains
iptables -F
iptables -X
iptables -F -t nat

##Define the policy
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT

##Define the IP and Interface
LAN_IP="192.168.0.1"
LAN_IFACE="eth1"

ADSL_IFACE="ppp0"

IPTABLES="/sbin/iptables"

#########################POSTROUTING chain
#MASQUERADE
$IPTABLES -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j MASQUERADE

##########################FORWARD rules
#accept LAN IP go out
$IPTABLES -A FORWARD -i $LAN_IFACE -s 192.168.0.0/24 -j ACCEPT

#accept come back packets from INTERNET
$IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT


###########################INPUT chain
#for come back from this adsl-server packets
$IPTABLES -A INPUT -i $ADSL_IFACE -m state --state ESTABLISHED,RELATED -j ACCEPT

echo "firewall started!"

20:22 | 评论 (0)

2004年7月9日 #

Grove 1.2.1648 released

The .NET ORM Architecture

  • Grove Overview

Grove is a component for .net project develop. Grove Develop Kit include Grove Develop Component and Grove Toolkit, Grove Component is an object-oriented develop component that base on .net framework, It supported multi-database, it provide standard tow-tier, three-tier, or N-tier develop mode

  • Grove Toolkit

Grove Tool Kit is an Add-in base on .net develop environment , It can preview entity class or xml description from tables include databases

For more information, see http://grove.91link.com

©2004 Grove Develop Team

17:48 | 评论 (2)

Registers pkg for your VSIP project

主项生成后:

"E:\Program Files\VSIP 7.1\EnvSDK\tools\bin\x86\VSIPRegPkg" "$(TargetPath)"

资源项目生成后:

devenv /rootsuffix Exp /setup

1.执行VSIPRegPkg,注册到7.1
2.devenv /rootsuffix Exp /resetskippkgs /setup 允许曾被标记为加载失败的VsPackages再次加载

正确安装VSIP Pkg项目

安装后执行:
1.执行VSIPRegPkg,注册到7.1
2.执行devenv /setup


devenv.exe [solutionfile | projectfile | anyfile.ext] [switches]

用法:
devenv [solutionfile | projectfile | anyfile.ext] [switches]

可以调用 devenv,用第一个参数指定解决方案文件或项目文件。
也可以调用 devenv,使第一个参数作为要在编辑器中打开的任何
其他类型的文件。如果提供项目文件,IDE 将通过在与项目文件
相同的目录中查找与项目文件具有相同基名称的 .sln 文件,在
解决方案的上下文中打开该项目文件。如果存在 .sln 文件,则
IDE 将查找引用该项目的单个 .sln 文件。如果不存在这样的单
个 .sln 文件,则 IDE 将创建一个具有默认 .sln 文件名的未保
存的解决方案,而该默认文件名与项目文件具有相同的基名称。

命令行生成:
devenv solutionfile.sln? /build solutionconfig [ /project projectnameorfile [ /projectconfig

name ] ]

可用的命令行开关:

/build 生成指定的解决方案配置
/project 指定生成项目而不是解决方案
 必须指定 /build 才能使用 /project
/projectconfig 指定要生成的项目配置
 必须指定 /project 才能使用 /projectconfig
/out 将生成结果写入指定的文件
/rebuild 与 /build 类似,但先执行强制清理
/clean 清理生成结果
/deploy 生成指定的解决方案配置然后部署它
/run 运行指定的解决方案配置
/runexit 运行指定的解决方案配置然后终止
/command 启动后执行指定的内部命令行
/mditabs 使用选项卡式文档界面
/mdi 使用 MDI 界面
/fn 使用指定的字体名称
/fs 使用指定的字体大小
/LCID 使用指定的语言 ID
/noVSIP 禁用用于 VSIP 测试的VSIP 开发人员许可证密钥
/safemode 出于稳定性仅加载默认的环境和服务
/resetskippkgs 允许曾被标记为加载失败的 VsPackages
再次加载
/migratesettings 迁移另一个版本中的某些用户设置

产品特定的开关:

/debugexe  打开要调试的指定可执行文件。
            命令行的其余部分作为它的参数
            传递到此执行文件。
/useenv 使用 PATH、INCLUDE、LIBPATH 和 LIB 环境变量
而不是使用 VC++ 生成的 IDE 路径。

若要从命令行附加调试器,请使用:
vs7jit.exe -p

10:04 | 评论 (1)


请不要发表可能给我们带来伤害的政治言论,谢谢配合