久一网络科技

久一网络科技是您快速建站的首选,我们提供快速高效的服务:快速建站,服务器运维,整站建设,网络编程,网络安全等。持久的品质保证,始终如一的服务理念,久一网络科技-----您身边的网络专家。 如有需求,请联系:tech@jooyee.net



继续阅读...

作为一个优秀的互联网公司,Google不仅造就了大量的优秀人才,而且还吸引了无数的顶级的IT天才。下面就是Google公司牛人的部分名单。
1 Vinton Cerf :号称互联网之父,TCIP/IP协议和互联网架构的合作设计者。他05年10月3日开始正式为Google工作,职位为”首席互联网传布官”。
2 Joshua Bloch :号称java教父,《Effective Java》《JAVA PUZZLE》的作者,JSR175标准的leader,J2SE 1.5的主要开发人员之一。
3 Guido Van Rossum: Python之父。Google把Python用的炉火纯青,有了Python之父的加盟,肯定如虎添翼了。
4 Andrew Morton: Linux的二号人物。其在google的工作仍是继续维护linux2.6内核
5 Mark Lucovsky: Windows核心设计师。不晓得碰到了Morton会不会吵起来
6 Bram Moolenaar:Vim的作者
7 Darin Fisher :Mozilla项目主力开发者
8 Sean Egan: Gaim开发团队的leader
9 Greg Stein: Apache项目主要开发者,Apache基金会主席
10 Udi Manber: Amazon的A9搜索团队总监
11 Rob Pike,Plan 9 OS主力开发者
12 Adam Bosworth: BEA的首席架构师
13 Larry Brilliant: 网络先驱大慈善家,负责google.org
14 Andy Hertzfeld:曾经是Macintosh研发团队核心成员
15 Louis Monier:Internet搜索的发明者,eBay的前开发总监
16 Adndrew W Moore :卡内基美隆大学资讯与机器人工程学的教授,他将负责Google在匹兹堡新创立的实验室
17 Alan Davidson:Centre for Democracy & Technology的协理,他负责处理处理google与美国政府的关系
18 Ben Goodger:Firefox的主要设计者 (已由Google 加入微软)
19 Danny Thorpe:Delphi开发者,原Borland首席科学家
20 Alexander Limi:plone创始人
21 David Presotto:plan 9创始人
----------------------------------
原文作者/连接:无 (转载太多,原作者无从查找,- 摘录自互联网)
继续阅读...

学理科的考这种试就是简单啊,呵呵,

我半个小时就搞定了
继续阅读...

boot.ini :
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /execute /fastdetect
C:\tboot="Mac OS X"
C:\grldr="UNIX AND LINUX"

menu.lst :
###########
title Ubuntu7.10
configfile (hd0,6)/boot/grub/menu.lst

###########
title FreeBSD
rootnoverify (hd0,1)
chainloader +2

###########
title CD BOOT
scdrom --bootcd

###########
title WINDOWS XP
rootnoverify (hd0,0)
makeactive
chainloader +1


vol_id -u /dev/sda1

fstab:
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
#

proc /proc proc defaults 0 0
# Entry for /dev/sda7 :
UUID=8f0b041b-775f-4d9d-b56e-44f06f85f1a2 / ext3
defaults,errors=remount-ro 0 1
# Entry for /dev/sda9 :
UUID=34a82d36-53c9-4415-baea-95124d8aa8bd /home ext3 defaults 0 2
# Entry for /dev/sda11 :
UUID=428d5ed7-099e-4170-9f14-451069850006 /tmp ext3 defaults 0 2
# Entry for /dev/sda8 :
UUID=594e3fc5-39b2-45ac-adcf-cc3f90c9c645 /usr ext3 defaults 0 2
# Entry for /dev/sda10 :
UUID=94bb951f-ab59-489e-ae83-6a94570d0444 /var ext3 defaults 0 2
# Entry for /dev/sda12 :
UUID=71ca5195-3d16-4a8b-9d50-8f58c557af4d none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
# Entry for /dev/sda1 :
UUID=8AFC9F6BFC9F5075 /media/Windows ntfs-3g
defaults,locale=zh_CN.UTF-8 0 0
# Entry for /dev/sda2 :
UUID=DDDA16CAA3B34BA5 /media/Leopard hfsplus rw,exec,auto,users 0 0
# Entry for /dev/sda5 :
UUID=E7CCC5DD7F1D3021 /media/FILE ntfs-3g defaults,locale=zh_CN.UTF-8
0 0
# Entry for /dev/sda6 :
UUID=1D7C-4734 /media/SAFE vfat defaults,utf8,umask=007,gid=46 0 0
继续阅读...

今天终于成功安装了ubuntu7.10,是dvd版本的,4.5g…………

方法如下:

首先把alternative版本的或者dvd版本的ubuntu放入C:\下面;

1.下载引导文件:

http://ftp.sjtu.edu.cn/ubuntu/dists/gutsy/main/installer-i386/current/images/hd-media

将以上两个文件下载,放在某个分区里。这里我们放置在C: \

C:\initrd.gz C:\vmlinuz

2.准备grub,引导安装程序:

然后下载一个grub for dos,下载地址:

https://sourceforge.net/projects/grub4dos

将此文件中的menu.lst ,grldr,grub.exe(我们只要这三个文件就可以)解压到C: \ ,

再用记事本(或Windows自带的“写字板”)打开menu.lst,并将里面的文字删掉后加入如下代码(“#”可包括也可不包括,“#”是用来注释用的):

############################

color black/cyan yellow/cyan

timeout 30

default 0

fallback 1

title Install Ubuntu7.10

kernel (hd0,0)/vmlinuz

initrd (hd0,0)/initrd.gz

boot

title Back To (Windwos OS)

rootnoverify (hd0,0)

makeactive

chainloader +1

title commandline

savedefault --wait=2

commandline

title Reboot

savedefault --wait=2

reboot

############################

然后保存退出。

注意:命令里面的 (hd0,0)不是绝对的,要看你文件放置的分区和目录决定。

下面要编辑boot.ini:

打开 我的电脑/高级/启动与故障修复/设置/系统启动/编辑/

[boot loader]

timeout=5

default=multi(0)disk(0)rdisk(0)partition(1)\windows

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\windows="Microsoft windows xp professional" /noexecute=optin /fastdetect

c:\grldr="Start Grub"

在末行加入c:\grldr="Start Grub" 保存退出 。

到这里C:\里有5个后来添加的文件menu.lst ,grldr,grub.exe,vmlinuz ,initrd.gz

3. 重启进入安装(先选择,进入Start Grub,再选择Install Ubuntu7.10,进入安装界面)
继续阅读...

先进入终端,输入新的unix密码,然后gksu /usr/sbin/gdmsetup
继续阅读...

***How to change the USplash Screen on startup/shutdown

sudo update-alternatives --config usplash-artwork.so

sudo dpkg-reconfigure usplash

Then reboot.

***To list the UUID of a specific device:

sudo vol_id -u device

***Enable vim syntax highlighting

syntax on

****如何找出您正在使用的 Ubuntu 版本:

lsb_release -a

***install from bin:

chmod +x Desktop/GoogleEarthLinux.bin

sudo Desktop/GoogleEarthLinux.bin

***Mounting Automatically

Create mountpoint:

sudo mkdir /mnt/files

Edit configuration:

gksudo gedit /etc/fstab

Add something similar to below:

192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0

Test new configuration:

sudo mount -a

Reboot to test automatic mounting.

***列出硬件
lspci grep Broadcom

***fix字体缓存
sudo fc-cache -fv 2>&1 grep failed cut -f1 -d”:” xargs -i sudo touch {} && sudo fc-cache -fv

***列出声卡
声卡的Sub-vendor ID 和 Sub-system ID:
cat /proc/asound/card0/codec#? > codec.txt

***启动项
sudo sysv-rc-conf
继续阅读...

There are different reasons for a computer to crash - there can be a programming bug, a memory issue, or other. When your computer seems to be dead, don't panic! And don't reach for that power button! There are five simple things you can try before killing the power:

1. Is the computer frozen? Try going into one of the VTs by pressing and F1. This way you may still have control of the computer and manage to kill the application which caused the problem. More on killing applications later.

2. If you can't change into a VT, try to kill the X session. This can be done by pressing . All applications that were opened during the session will automatically be killed, so you should gain control over the computer after you've been sent back to the login screen.

3. OK, so you can't kill X or go into VT. Let's do a reboot, which can safely be done by pressing . The machine will beep and start running the shutdown scripts.

4. If for some reason one or more of the shutdown scripts should die, and the computer stops the rebooting process, press the key combination again to force a reboot. This not safe if the scripts haven't gotten around to unmount the local filesystems.

5. Final way out: Your computer doesn't obey and none of above methods seem to give any response. Here's a little trick that might help, not known to many Linux users! The kernel has a small userspace communication line opened, so even if the computer has crashed badly (I haven't tried this during kernel-panic, though, can anyone confirm?) you can make it reboot safely. This method is safe, but should be used only if everything else fails! Hold down , and . While holding down these, type the following letters - in order - R E I S U B. The computer will unmount any filesystems that are locally mounted, and safely bring down the system. If you have trouble remembering the letter combination; think busier, only backwards.
继续阅读...

打开终端,执行以下命令,或使用Adept/新立得软件管理器,在其中分别搜索"sun-java6-jre"和"sun-java6-jdk"并标记安装。

sudo apt-get install sun-java6-jre

如果空间富裕,建议安装一个JDK。

sudo apt-get install sun-java6-jdk

提示:安装过程中需要你回答是否同意使用协议(终端中红蓝色的提示界面),此时按tab键至OK,再按回车即可正常安装。

设置当前默认的java解释器:

sudo update-alternatives --config java

执行后会出现类似如下的画面:

There are 2 alternatives which provide `java'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/gij-wrapper-4.1
*+ 2 /usr/lib/jvm/java-6-sun/jre/bin/java

Press enter to keep the default[*], or type selection number:

输入 有包含 "sun" 的行的前面的数字。如上面显示,则输入2,然后回车确定。


配置JAVA环境变量:

sudo gedit /etc/environment

在其中添加如下两行:

CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun

sudo gedit /etc/jvm

将文件中的

/usr/lib/jvm/java-6-sun

这一行填入到配置块的顶部

安装浏览器的JAVA Plugin(可选):

sudo apt-get install sun-java6-plugin
继续阅读...

作者:korn
  进入/usr/share/applications目录编辑一desktop文档
  sudo gedit /usr/share/applications/aaa.desktop
  向其中加入:
  QUOTE:
  [Desktop Entry]
  Name=aaa
  Comment=aaa
  Exec=/usr/bin/aaa
  Icon=/usr/lib/share/icons/aaa.png
  Terminal=false
  Type=Application
  Categories=Application;System;
  这样,可以在应用程序->系统工具->启动aaa。
  (责任编辑:云子)
继续阅读...

自己的是Ubuntu7.10 Guesty !原本Totem用的好好的,可是在一次更新后,就不能打开Rmvb和Rm方式了,提示为:
A problem occurred while loading a library or a decoder (cook.so)有时会是(drvc.so)
中文提示为:装入库或解码器(cook.so)时发生问题
google了很久总算是找到了答案了:

编辑:
sudo gedit ~/.gnome2/Totem/xine_config
找到以下两段进行修改:
# path to RealPlayer codecs
# string, default:
#decoder.external.real_codecs_path:

# path to Win32 codecs
# string, default: /usr/lib/codecs
#decoder.external.win32_codecs_path:

修改为:

# path to RealPlayer codecs
# string, default:
decoder.external.real_codecs_path:/usr/lib/win32

# path to Win32 codecs
# string, default: /usr/lib/codecs
decoder.external.win32_codecs_path:/usr/lib/win32

保存就可以了,这个问题困扰了我N 久了,总算是解决了,又可以看电影了,爽呀!
继续阅读...

看起来风马牛不相及,老以为是mplayer-gui这个包有大问题。后来到网上一查,发现只是一个参数的不同而已。也就是说,默认的gmplayer 打开的命令是 gmplayer %U (gmplayer %f -utf8),但是正确的,或者说可行的是 gmplayer %f。
继续阅读...

记得一个月前我徒弟就报告过 RealPlayer 在 ubuntu 中光有图像没有声音的问题;没想到现在我自己却撞上了。好在经过反复的 Google,终于找到了下面的解决方法:

* 首先安装 ALSA OSS 驱动程序:
$ sudo apt-get install alsa-oss

* 然后编辑启动脚本 (/usr/lib/realplay-10.0.8/realplay) 并将第 73 行从

$REALPLAYBIN “$@”

改成

aoss $REALPLAYBIN “$@”

对于我自己的 feisty fawn 而言,装的是 RealPlayer 10.0.7 版,需要修改的 realplay 文件中的那行位于第 70 行,而不是 73 行,呵呵。现在播放 .rmvb 文件终于有声音了!好棒哦~~~不必再通过用 VirtualBox 跑 WinXP 来看电影了,呵呵。
继续阅读...

# Ctrl + A - Go to the beginning of the line you are currently typing on

# Ctrl + E - Go to the end of the line you are currently typing on
继续阅读...

#!/usr/bin/python
#
# multi-file rename script for Nautilus
# (c) Andrey Yurovsky http://andrey.thedotcommune.com/
#
# To install, place this script into your .gnome2/nautilus-scripts/ directory,
# which is located in your home directory. 'rename' should appear in your
# 'scripts' menu when you restart Nautilus (or log out and then log in again).
#
# Select one or more files in Nautilus, right-click one of the selected files,
# and choose 'rename' from the 'scripts' menu. A dialog box will ask for a
# new name. Enter a new name, with a starting index in square brackets
# (ex: [1]). The selected files will be renamed to this new name, incrementing
# the index each time. For example, if the new name is "photo[1].jpg", the
# files will be renamed "photo1.jpg", "photo2.jpg", and so on.

import sys
import os
import re

# make sure we're passed at least one file name
if len(sys.argv) < 2:
sys.exit(1)

# grab file names
files = sys.argv[1:]

# get 'new name' pattern
dialog = os.popen( "zenity --title=\"Rename Files\" --entry --text=name:" )
name = dialog.readline()
dialog.close()

if not name:
sys.exit(0)

# 'new name' should be "optional words [starting index] optional words"
name_re = re.compile( r'(.*)\[(\d+)\](.*)' )
name_match = name_re.match( name )
if not name_match:
os.system( "zenity --error --text=\"The name should contain a number in "\
"square brackets, for example 'photo[1].jpg' is valid.\"" )
sys.exit(1)
name_parts = name_match.groups()

# grab name parts
name_start = name_parts[0]
name_index = int(name_parts[1])
name_end = name_parts[2].replace( '\n', '' )

# rename each file, incrementing the index each time
i = 0
for file in files:
new_name = name_start+str(name_index+i)+name_end
cmd = "mv \""+file+"\" \""+new_name+"\""
os.system(cmd)
i += 1
继续阅读...





继续阅读...

macosx: qmake -spec macx-xcode project.pro
windows: qmake -spec win32-msvc project.pro -t vcapp
继续阅读...

1. put tboot on Vista boot partition, usually C:\
2. Open a command prompt and make sure it’s running as administrator and type:
bcdedit /create /d "Mac OSX Leopard" /application bootsector
This will retrun a {ID}
3. Use the command line below to add the tboot, replace the {ID} accordingly:
4. bcdedit /set {ID} device boot
6. bcdedit /set {ID} path \tboot
7. bcdedit /displayorder {ID} /addlast
继续阅读...

% kextstat grep IONet查看硬件信息

% tar -cvf important.tar important/*
gzip -9 important.tar

一般压缩目录是用tar和gzip配合使用,也可以在tar使用过程中调用gzip
#tar -czvf xxx.tar.gz xxx


% egrep "ifr_hwaddr" /usr/include/*/*

% 睡眠
pmset -g grep hibernatemode
sudo pmset -a hibernatemode 0

% xcode2.5 在leopard中的环境变量设置
--arch=ppc --extra-ldflags="-isysroot /Xcode2.5/SDKs/MacOSX10.4u.sdk -arch ppc" --extra-cflags="-isysroot /Xcode2.5/SDKs/MacOSX10.4u.sdk -arch ppc"

export CFLAGS="-mmacosx-version-min=10.4 -isysroot /Xcode2.5/SDKs/MacOSX10.4u.sdk" CPPFLAGS="-mmacosx-version-min=10.4 -isysroot /Xcode2.5/SDKs/MacOSX10.4u.sdk" LDFLAGS="-mmacosx-version-min=10.4 -isysroot /Xcode2.5/SDKs/MacOSX10.4u.sdk" PATH=$PATH:.:/Xcode2.5/usr/bin:/Xcode2.5/usr/sbin:/Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/bin:/Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/sbin && ./configure --prefix=/Xcode2.5/SDKs/MacOSX10.4u.sdk/usr

% gcc编译的调试选项 -ggdb

%网络配置
ifconfig en1 58.218.20.95 netmask 0xffffff00 broadcast 255.255.255.255
sudo SystemStarter restart Network
ipconfig set en3 DHCP

% 驱动安装的常规操作:
sudo -s
chmod -R 755 /System/Library/Extensions
chown -R root:wheel /System/Library/Extensions
rm -rf /System/Library/Extensions.*
diskutil repairpermissions /
继续阅读...

Before you pselect(), you'd better do the follows:

u_int *message;
int p_fd;
ioctl(p_fd, BIOCIMMEDIATE,&message); //mac os x use it!

This makes your program runs better,
because I have tested it already :-)
继续阅读...






继续阅读...



继续阅读...

关注者

热门帖子

网页浏览总次数