gconf-editorHow to hidden volumes Icon on Desktop.
Posted by Dracy Labels: Linux, System Management, Ubuntu RelatedHow to use the shell command to count files in a directory (directory can have one or more subdirectories)?
And you want to output the results as follows:
(Can display the count of files in a directory)
12 ./test/dir2
16 ./test/dir3/dir4/dir5
15 ./test/dir3/dir4/dir6
23 ./test/dir3/dir4/dir7
Maybe you can use ls and wc command.But today I will introduce you a alternative way to reach this goal-Use find and uniq command.Maybe that is more easy to understand and clear to use,I think.
Let's check this command:
find . -type f -printf %h"\n" | sort | uniq -cThe first part of the command acually list the leading directories of all the files in current directory.Like the file "/usr/bin/yes" only shows its directory "/usr/bin"。That's controled by the -printf %h"\n" option of the find command.
And finally the command uniq merge the duplicate lines to the unique.And the -c option shows the repeated counts.So the count number represents the file counts in the directory at the same time.
The first image shows the output of the command:
strings /usr/bin/yes
and the second image is the output of the command:
cat /usr/bin/yes
So have you known the difference between two commands?
Yes,the strings will prints the character sequences in the binary file,but cat can't.Let's check the man's explanation.
Strings
For each file given, GNU strings prints the printable character sequences that are at least 4 characters long (or the number given with the options below) and are followed by an unprintable character.
So strings is a mainly useful command for determining the contents of non-text files.
What's the Issue?
sudo gedit /etc/apt/sources.listI will always recommend, however, that people use instead this sort of command:
gksudo gedit /etc/apt/sources.listAnd reserve sudo for command-line applications, like so:
sudo nano /etc/apt/sources.listWhy is it an issue?
1. There are other times, though, when side effects can be as mild as Firefox extensions not sticking or as extreme as as not being able to log in any more because the permissions on your .ICEauthority changed. You can read a full discussion on the issue here.
These errors occur because sometimes when sudo launches an application, it launches with root privileges but uses the user's configuration file.
For example, if you launch Firefox with the command
gksudo firefox, it uses root's Firefox configuration file.
But if you launch Firefox with the command
sudo firefox, it runs with root privileges but uses the user's configuration file (in this case, you can see the homepage and theme are different).
2. Running graphical applications with sudo also has the downside of always having to be run from the terminal. If you don't use the proper command—gksudo or kdesu, you will not be able to use the command as an icon launcher or keyboard shortcut because there will be no graphical dialogue box to enter your sudo password in.
3. There are also some graphical applications that simply will not run with the sudo command. Kate, for example, can be run asWhy not make exceptions?
kdesu kate
but cannot be run as
sudo kate
Bottom line: most of the time when you use sudo for graphical applications, it's fine. Some of the time, though, it is not fine, and is, in fact, extremely bad.But gksudo sometimes gives me an error... even though it appears to work...
If you made exceptions, you would have to give people a list of all the graphical applications that are okay to run as sudo and a list of all the graphical applications that must be run as gksudo or kdesu.
Why make a list that needs to be compiled and updated, that most people won't refer to, and that is completely unnecessary? Just be consistent in suggesting good practice: gksudo and kdesu for graphical applications. sudo for command-line applications.
You may notice that even though gksudo is the proper way to launch graphical applications, if you launch a gksudo application it will sometimes give you what appears to be an error. This, for example:
(gedit:####): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
That is not a real error, and there's already been a bug report filed on the message appearing. The developers have seen the bug and labeled it a low priority. In the meantime, just ignore the message and keep encouraging people to not use sudo for graphical applications so they won't potentially mess up their ~/.ICEauthority and other user configuration files.
from:http://www.psychocats.net/ubuntu/graphicalsudo
Like many UNIX ® tools, ps also has a lot of options, the most commonly used are:
a: shows all tty, including other users;
x: print non-controled terminal or the tty which not controled by current terminal;
u: display user-oriented format,shows the user and the start-up time of the process.
need other relevant options, please refer to ps (1) manual page.
the ps command is commonly used as follows:
$ ps ax | less This command will print the list of all processes that is currently running , so you can find out where or what the processes that have problems, and then terminate them.
pstree
$ pstree-up | less This will allow you to overview the entire tree structure of processes .
total used free shared buffers cached
Mem: 1555176 1513788 41388 0 302236 715336
-/+ buffers/cache: 496216 1058960
Swap: 976552 23672 952880
The Mem line:
total-size of the total memory: 1555176Byte
used-memory that has been used: 1513788Byte
free -memory that hasn't been used: 41388Byte
shared - abandoned currently:is always 0
buffers - buffer memory: 302236Byte
cache - cache memory: 715336Byte
The relationship: total (1555176) = used (1513788) + free (41388)
The second part of (-/+buffers/cache):
(- /buffers/cache) used memory: 496216 (=used-buffers-cached)
(+/buffers/cache) free memory: 1058960 (=free + buffers + cached)
Perhaps you have already known this.Yes,The -/buffers/cache reflects the size of memory that the programe really have used , and +/buffers/cache reflect the total size of memory that can be misappropriated.
- Linux kernel version 2.6.28
- A new notification system
- Faster boot times
- GNOME 2.26 desktop environment
- Community desktop themes and brand new artwork
- Evolutionary EXT4 filesystem
- Support for many new devices (wireless, webcams, mobile , etc.)
apt-file is a search tool of software package, can find files associated with the package and the package's installation location.
apt-file updateupdate the command's index of packages, the first use or after the apt-get update , you must run this command.
apt-file search file_nameFind the file which exists in the package.
apt-file list package_nameList files in packages
xPUD is an unique Linux distribution, consisting mainly of a web browser and a media player, with a simple user interface on top. It can turn your computer into a kiosk-like station by leveraging web technologies, making surfing and watching movies as easy as pie.
It's fast, on average booting within 10 seconds (demo on YouTube), and it's small, too. Weighing in at under 48MB, yet it still remains binary compatible with most major Linux distributions like Ubuntu or Fedora. So xPUD can not only be a great platform to deliver Web Apps, but it's also suitable for use on Netbooks or All-in-one PCs.
APTonCD is a graphic tool to package the softwares which are downloaded by apt-get or aptitude into the CD / DVD . So you can install the software in the absence of Internet; On the other hand, You can also install the software on other computers using this CD / DVD.
sudo apt-get aptoncd
Well-known Google engineer Matt Cutts tried to start Ubuntu 9.04, and the start-speed is faster than the report of the previous version of Ubuntu (previously recorded is longer than 21 seconds), only in 17.5 seconds.
Matt Cutts specifically bought a piece of Intel X25-E SSD solid-state disk, used SLC memory chips rather than slow MLC chips. Installed Ubuntu 9.04, the project code-named Jaunty Jackalope (released a few days ago). One of the characteristics in this version of Ubuntu is the substantial increase in the speed of boot.
From pressing the power to enter the Ubuntu to opening the Firefox only used 22.5 seconds, remove the 5 seconds of BIOS self-test,totally used only 17.5 seconds.So amazing speed of boot!
Ubuntu is indeed getting better and better.
Some Web applications using Django:
Digg, Osmosoft [open source wiki solution],SixApart [produce the famous Blog platform MovableType,support two online Blog platforms:Typepad and LiveJournal]
Apart from Django, the other Python's popular development framework are: TurboGears, Cherrypy, Pylons, etc..
Vis-à-vis these frameworks, Django is more unified, integrated and fully functional;
For the customizability, Django's middleware, ORM, these components can be hot-swappable , you can choose to replace the use of other components.
Django's large number of scripts and the MVT framework also greatly improve the efficiency of the development.
If you want to quickly build and gradually perfect the principle. Django is the entire solution.
aptitude and apt-get both are the extremely powerful
package management tools in Debian and its derivative system. However,
aptitude is different from the apt-get, aptitude in dealing with the
issue of dependence is better. Like to delete a package in aptitude, we
will also delete the related package. In this way, the system will not
left the useless packages, the whole system is cleaner. Here are some
commonly used command of aptitude for reference only.
| Command | Function |
| aptitude update | to update the list of available packages |
| aptitude upgrade | to upgrade packages |
| aptitude dist-upgrade | to upgrade to a new release |
| aptitude install pkgname | to install a package |
| aptitude remove pkgname | delete the package |
| aptitude purge pkgname | delete package and its configuration files |
| aptitude search string | search the package |
| aptitude show pkgname | show detailed information of the package |
| aptitude clean | to delete the downloaded package file |
| aptitude autoclean | removes only package files expired |
在蓝色理想上看到的这篇文章,原文是讲如何提高JS的DOM操作速度的,里面的一个例子很有趣,代码如下:
可以保存为网页运行一下,效果是你的浏览器将处于假死状态,原因是i的上界divs.length在每次循环都会重新读取,而appendChild对DOM操作添加了DIV,注意DOM操作会同步更新length,则每次length取得的值会加一,则i永远比divs.length小,则循环将永远进行下去。。<html>
<head>
</head>
<body>
<div>
</div>
<script>
var divs = document.getElementsByTagName("div");
alert(divs.length);
for (var i=0; i < divs.length; i++){ //infinite loop
document.body.appendChild(document.createElement("div"));
}
</script>
</body></html>
1. Tomcat是Apache鼎力支持的Java Web应用服务器,由于它优秀的稳定性以及丰富的文档资料,广泛的使用人群,从而在开源领域受到最广泛的青睐。
2. Jboss作为Java EE应用服务器,它不但是Servlet容器,而且是EJB容器,从而受到企业级开发人员的欢迎,从而弥补了Tomcat只是一个Servlet容器的缺憾。
3. Resin也仅仅是一个Servlet容器,然而由于它优秀的运行速度,使得它在轻量级Java Web领域备受喜爱,特别是在互联网Web服务领域,众多知名公司都采用其作为他们的Java Web应用服务器,譬如163、ku6等。
很早就想搜集一些网站前台开发类型的网站资源,因为刚刚做了一个相关的项目,对前台脚本算是有点入门了。并且有感于框架代码的神奇与优雅--囧||决定在JS上深入学下去,以下是搜集的几个比较好的CSS及Javascript学习站点(包括综合性的以及Blog和一些论坛):
51js-无忧脚本:
初次听说51js的大名还是在看[javascript王者归来]那会,作者月影就是51js论坛的版主,看这本书也是因为书中谈到了Javascript的很多高级特性让我对JS这种脚本型语言有了重新的认识,51js论坛上有很多对脚本问题很深入的探讨,是深入学习js的最好的地方了。。
w3c school:
w3c school是我搜索CSS属性时访问最频繁的站点了,各种属性解释和实例都很详细。除了CSS外,
w3c school上还有很多其他关于网站前端以及后台脚本的参考手册,甚至还有建站方面的相关参考,算得上是网站开发方面的wiki百科了。
GraceCode:
Gracecode的blog是我最近比较关注的一个关注前端开发的博客了,blogger是阿里巴巴前端组的Developer,内容含金量很高。除了关注前端开发,作者的很多关于Vim的配置文章也很不错。让我见识到了Vim的确很强大。
CSDN上的相关论坛:
至于CSDN论坛的大名想必我就不用多说了吧,想必在做开发的中间是无人不知吧。尤其是提问回答都很快,解决问题的效率极高,论坛的用户活跃度也很高。现在CSDN也在作SNS方面的探索,我想作为技术分享角度而不是娱乐来说,CSDN的SNS是绝对可以有所作为的,很欣喜CSDN有类似的探索,囧~扯远了。。收~Update:
蓝色理想:
以前搜索的时候也是经常搜索到蓝色理想的相关教程和文章,特别是CSS类和设计类的文章,从这方面猜测可能蓝色理想会偏一点设计方面,不过也是一个不错的网站。。值得收藏。。
先就介绍这几个吧,以后有空再添。。
以前很多实用的命令用了一次就忘了,为了避免重复劳动,So决定搜集一些常用的命令以备后用。
下载:
wget
wget 是一个命令行的下载工具。对于我们这些 Linux 用户来说,几乎每天都在使用它。下面为大家介绍几个有用的 wget 小技巧,可以让你更加高效而灵活的使用 wget。
1. $ wget -r -np -nd http://example.com/packages/ 这条命令可以下载 http://example.com 网站上 packages 目录中的所有文件。其中,-np 的作用是不遍历父目录,-nd 表示不在本机重新创建目录结构。
2. $ wget -r -np -nd --accept=iso http://example.com/centos-5/i386/ 与上一条命令相似,但多加了一个 --accept=iso 选项,这指示 wget 仅下载 i386 目录中所有扩展名为 iso 的文件。你也可以指定多个扩展名,只需用逗号分隔即可。
3. $ wget -i filename.txt 此命令常用于批量下载的情形,把所有需要下载文件的地址放到 filename.txt 中,然后 wget 就会自动为你下载所有文件了。
4. $ wget -c http://example.com/really-big-file.iso 这里所指定的 -c 选项的作用为断点续传。
5. $ wget -m -k (-H) http://www.example.com/ 该命令可用来镜像一个网站,wget 将对链接进行转换。如果网站中的图像是放在另外的站点,那么可以使用 -H 选项。
桌面环境:
下载KDE:sudo apt-get install kubuntu-desktop
包管理:
1.dpkg --configure -a 重新配置所有未被配置和Pack的软件包。一般新得立不能打开时使用此命令可以解决问题。
2.编辑更新源:sudo gedit /etc/apt/sources.list
刷新本地软件库:sudo apt-get update
So Cool the GPS and the Google Maps is and funny game,right?I think I like GPhone more and more.Like its open,its free and its funny.
sqlplus sys/orcl@192.168.159.129:1521/orcl as sysdba
开发过GMA应用的同学应该知道,在GoogleMapsAPI的GMarkOption中可以放定制过的GIcon对象,而类似如下的代码则会报“b is undefined”
m_markTicon = new GIcon(); //实例化GIcon
m_markIconSize = new GSize(30,35);
m_markTicon.image = "style/image/thing.png";
m_markTicon.iconSize = m_markIconSize;
m_markT[m_markTIndex] = new GMarker(m_startMarkPoint, {
draggable: true,
icon:m_markTicon //在MarkOption中指定GIcon对象
});
或许你认为这有可能和"a is undefined"的错误类似,是代码的语法或者格式有问题,比如括号不匹配之类。其实这个问题很诡异,解决方法却是很简单,只要在实例化GIcon()对象时指定从G_DEFAULT_ICON类型复制,然后再是修改他的属性。。
貌似这个可能是GMA的一个Bug,因为在这里显示的GIcon构造函数中copy参数也是可选的。。。
将以上代码中的 m_markTicon = new GIcon();
修改为 m_markTicon = new GIcon(G_DEFAULT_ICON);就可以了。
Blog的wap版本是托管在MoFuse上的,可以通过一个feed发布你站点的wap版本,可以定制显示样式,更爽的是可以绑域名[免费哦]。来看看本Blog在iPhone的样子吧,基本保持了风格,^_^。
ERROR 1136 (21S01): Column count doesn't match value count at row n
一般这个问题是由于SQL语句中前面列的数目与后面的值的数目不一致造成的,如insert语句VALUES中的值的数目一定要跟前面选定的列的数目一致;如果是默认的选中全部的列,则要列出所有列需insert的值。
全局:
data:blog.languageDirection--你Blogger的languageDirection,一般对应于你后台设置的Blogger语言选项。
data:blog.pageTitle--Bloggr的页面标题[对应于HTML的Head中的Title部分]
data:blog.url--Blogger呈现给浏览者的当前页面,如果是文章页,则代表此文章的URL。
data:blog.homepageUrl--Blogger的首页
通用:
data:widget.instanceId--取得当前所属widget的id号
type为header的widget内:
data:title--Blogger的标题,即你博客的名字
data:description--Blogger标题下面的描述,也可以说是子标题
data:useImage--标题是否使用了图片
data:sourceUrl--图片的URL地址
type为LinkList的widget内:
data:links--包含链接列表中的所有Link的集合,可以看成是一个数组或者字典
象这样可以迭代输出所有的Link:
loop语句类似Javascript中的for...in...语句,Link作为迭代量,每次输出各个Link,target属性代表URL,name属性则代表链接名称。
type为Blog的widget内:
data:newerPageUrl--底部新文章链接
data:newerPageTitle--新文章链接的Title
data:olderPageUrl--底部旧文章链接
data:olderPageTitle--旧文章链接的Title
data:homeMsg--主页链接呈现的名字,如中文“主页”、英文“Home”等等
data:blog.pageType--Blog当前页面的类型,有三个值分别是item[文章内容页]、archive[归档页]、index[Label页]
通用快捷键
Alt + F1 类似Windows下的Win键,在GNOME中打开"应用程序"菜单(Applications)
Alt + F2 类似Windows下的Win + R组合键,在GNOME中运行应用程序
Ctrl + Alt + D 类似Windows下的Win + D组合键,显示桌面
Ctrl + Alt + L 锁定桌面并启动屏幕保护程序
Alt + Tab 同Windows下的Alt + Tab组合键,在不同程序窗口间切换
PrintScreen 全屏抓图
Alt + PrintScreen 当前窗口抓图
Ctrl + Alt + → / ← 在不同工作台间切换
Ctrl + Alt + Shift + → / ← 移动当前窗口到不同工作台
Ctrl+Alt+Shift+Fn 终端N或模拟终端N(n和N为数字1-6)
Ctrl+Alt+Shift+F7 返回桌面
Ctrl+Alt+Shift+F8 未知(终端或模拟终端)
窗口操作快捷键
Alt + F4 关闭窗口
Alt + F5 取消最大化窗口 (恢复窗口原来的大小)
Alt + F7 移动窗口 (注: 在窗口最大化的状态下无效)
Alt + F8 改变窗口大小 (注: 在窗口最大化的状态下无效)
Alt + F9 最小化窗口
Alt + F10 最大化窗口
Alt + Space 打开窗口的控制菜单 (点击窗口左上角图标出现的菜单)
应用程序中的常用快捷键
(注: 并不适用于所有程序)
Ctrl+N 新建窗口
Ctrl+X 剪切
Ctrl+C 复制
Ctrl+V 粘贴
Ctrl+Z 撤销上一步操作
Ctrl+Shift+Z 重做刚撤销的一步操作
Ctrl+S 保存
文件浏览器(部分)
Ctrl+H 显示隐藏文件(切换键)
Ctrl+T 新建标签
Ctrl+Page Up 上一个标签
Ctrl+Page Down 下一个标签
Alt+N 切换到第N个标签(N为数字)
在Ubuntu中自定义快捷键
访问“System>Preferences>Keyboard Shortcuts”,选定想要设置的项目,然后键入快捷键即可生效。
常用Oracle数据库的同仁都知道,Oracle经常会莫名的出现一些错误,导致数据库无法正常启动或使用。
经过对出现这些问题的解决,后来找到了问题的根源,也就是再次安装Oracle数据库时,未对之前安装的Oracle进行彻底的卸载所导致。下面我就详细谈谈如何才能彻底卸载Oracle数据库
一、Linux 平台
Linux 平台下卸载Oracle 非常简单,即:删除Oracle安装目录下的所有文件和文件夹即可。
二、Windows 平台
其实这篇文章我主要想就在Windows平台上如何彻底的卸载Oracle进行说明。
因为Oracle在Windows下的卸载颇有一些麻烦,如果不能完全卸载有可能影响将来的再次安装!常规卸载方法是运行Oracle的自带的卸载程序,可遗憾的是我在卸载时总不能完全卸载,当我再次安装Oracle时,就会出现莫名其妙的问题,并且这种卸载方式比较麻烦,比较慢,下面我介绍一种比较快并且能够彻底卸载Oracle的方法。
1.关闭oracle所有的服务。可以在windows的服务管理器中关闭;
2.打开注册表:regedit 打开路径:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
删除该路径下的所有以oracle开始的服务名称,这个键是标识Oracle在windows下注册的各种服务!
3.打开注册表,找到路径:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
删除该oracle目录,该目录下注册着Oracle数据库的软件安装信息。
4.删除注册的oracle事件日志,打开注册表
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
删除注册表的以oracle开头的所有项目。
5.删除环境变量path中关于oracle的内容。
鼠标右键右单击“我的电脑-->属性-->高级-->环境变量-->PATH 变量。
删除Oracle在该值中的内容。注意:path中记录着一堆操作系统的目录,在windows中各个目录之间使用分号(;)隔开的,删除时注意。
建议:删除PATH环境变量中关于Oracle的值时,将该值全部拷贝到文本编辑器中,找到对应的Oracle的值,删除后,再拷贝修改的串,粘贴到PATH环境变量中,这样相对而言比较安全。
6.重新启动操作系统。
以上1~5个步骤操作完毕后,重新启动操作系统。
7.重启操作系统后各种Oracle相关的进程都不会加载了。这时删除Oracle_Home下的所有数据。(Oracle_Home指Oracle程序的安装目录)
8.删除C:\Program Files下oracle目录。
(该目录视Oracle安装所在路径而定)
9.删除开始菜单下oracle项,如:
C:\Documents and Settings\All Users\「开始」菜单\程序\Oracle - Ora10g
不同的安装这个目录稍有不同。
如果不删除开始菜单下的Oracle相关菜单目录,没关系,这个不影响再次安装Oracle.当再次安装Oracle时,该菜单会被替换。
至此,Windows平台下Oracle就彻底卸载了。
正在检查网络配置需求...
检查完成。此次检查的总体结果为: 未执行 <<<<
建议案: orcle支持在具有 DHCP 分配的 IP 地址的系统上进行安装。但在安装之前,
必须将 Microsoft LoopBack Adapter 配置为系统的主网络适配器。
有关在配置有 DHCP 的系统上安装软件的详细信息, 请参阅 Installation Guide。
=======================================================================
解决办法:
控制面板->添加硬件->是,我也经连接了此硬件->添加新硬件设备->安装我手动列表选择硬件(高级)->网络适配器->厂商:Microsoft 网卡:Microsoft Loopback Adapter 然后就行了。
对于新产生的本地连接,将其IP设置为192.168.0.*。
onkeypress是在用户按下并放开任何字母数字键时发生。系统按钮(例如,箭头键和功能键)无法得到识别。
onkeyup 是在用户放开任何先前按下的键盘键时发生。
onkeydown 是在用户按下任何键盘键(包括系统按钮,如箭头键和功能键)时发生。
注意:如果要动态保存用户在输入框的数据,onkeypress和onkeyup两者对输入文本的界定是不同的,onkeypress如果有事件处理函数,则此时得到输入框中的value值是按键前屏幕上呈现的文本,而onkeyup则是取得用户当前输入的文本。两者会差一个键,正确的做法当然是使用onkeyup了。。

本Blogger模板是由awflasher WP相应主题转化而来,继承TES简洁、优雅、轻量的特点,同时结合Blogger自身的特点进行优化。
模板中可能包含本blog上的一些元数据,请Blogger们安装时自行删除或修改。
在Blogger的后台模板编辑页面将将XML文件上传或将XML代码粘贴至代码框,提交即可安装。
TES Blogger模板项目主页:http://code.google.com/p/the-tes-blogger-template
下载地址:http://code.google.com/p/the-tes-blogger-template/downloads/list
本主题会陆续发布更新版,主要增加适合Blogger平台的功能和解决浏览器兼容性问题。
如有安装上的问题敬请留言。
更新:
2009-2-27,TES Blogger已更新至Beta2,
主要改进:美化评论系统,增宽了留言输入框,调节了Widget的CSS,增加火狐浏览器选中字体背景色,修复导航栏在IE和FF下宽度不一致的问题。
2009-3-2,TES Blogger已更新至Beta3,主要改进如下:
1.文章尾添加本文链接地址[模板代码实现];
2.增加webkit内核浏览器[例如Chrome]圆角样式;
3.修改本文链接地址只在文章内容页显示。
4.添加google搜索框和鲜果推荐按钮
5.美化了评论字体大小及样式
6.在右栏添加了google的站内搜索
Blogger中的标签和分类是同一个概念,Blogger中没有单独的标签管理功能。
Blogger命名标签的方式很Free。只要想到什么Keywords打上去,就会自动新增为Label。
然而似乎沒有批次修改的功能?
不过别急,Blogger后台其实是提供这项功能的。
具体步骤如下:
首先进入Blogger后台\发贴\编辑帖子页面;Blogger中的标签操作应该说没有WP中的那么方便管理,特别是重命名一个标签,需要进行多步的操作。不过重命名标签应该不会是什么经常性的工作,所以基本上不影响偶这种懒人对Blogger的继续使用啦。
点选左栏中需要修改的Label,再将右边出现的文章全部勾选;
接着点左上方的'标签动作',选择'应用标签'下的'新标签',在弹出的对话框中输入新标签名即可;
但是还要将原来的标签删除哦。
再次点选'标签动作',选择'删除标签'下的原标签。
本文地址:http://ubuntusky.cn/2009/02/blogger.html
备份49-sansserif.conf这个字体配置文件
$ sudo cp /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf.bak
删除49-sansser做完后重启firefox就可以了。 if.conf文件
$ sudo rm /etc/fonts/conf.d/49-sansserif.conf
网上搜集的资料,转载以备后用。
0. Bluefish是一个基于Gtk的HTML的编辑器,它支持语法加亮,支持HTML、CSS、JAVASCRIPT、Java server pages (JSP)、Python、Perl、SSI、PHP、XML等语言。从某些方面来说,它类似于Windows下面的Dreamweaver,是制作 HTML不可多得的利器。
Bluefish是“写”HTML的好工具,但它本身并不具有所见即所得的功能,对于初学者来说可能会有些吃力,因为需要补充一些 HTML的基础知识。对于熟悉HTML代码的创作者,使用Bluefish可以让你如鱼得水。Bluefish对一些常用的Tag 都有快捷键,使用快捷键可以大大提高写代码的速度。Bluefish有许多向导式的对话框,使用者只需填入相应的属性值,就会生成相应的HTML代码。而且,可以通过预览功能在Netscape等浏览器中查看制作的页面效果。从某种意义上说,这可以是另一种的“所见即所得”了。
由于使用Bluefish全部代码都可以自行控制,不会产生无用的冗余的代码,因此HTML页会更加简洁。
1. Nvu是Mozilla家族的html编辑器。
作为html编辑器,它具备了通常html编辑的大部分功能。比起收费的Frontpage和Dreamweaver,可能有所不如,但这些功能是否足够你用呢?
a. 支持所见即所得(WYSIWYG),在我们在制作网页时,更加的直觉化,编辑网页就如同打字一样容易。
b. 内建一个FTP Client,让我们可以很轻易的把编辑好的文件发布到服务器上。登录FTP Server后,还支持在线实时更改页面功能。
c. 可靠的HTML原始码,让由Nvu所创建出来的网页,可以在当前多数的浏览器上正常运作。制作网页时,可以使用所见即所得模式或HTML原始码编辑模式。
d. Tab功能:可以让我们很迅速的在多个页签间切换,并且编辑这些网页。
e. 支持表单、表格、layer以及网页模版。
2. Quanta Plus是Linux桌面环境下的一个功能非常强大的HTML编辑器,介于所见即所得风格和HTML源代码之间。
因为Quanta Plus需要输入HMTL代码,但是同时提供实时的预览,这种编辑方法有助于在提供友好界面的同时, 让用户最大限度地把握HTML代码。Quanta Plus支持Prel、PHP脚本语言,支持最新DTD(Document Type Definition)文件格式编辑对话框。
Quanta Plus支持层迭样式表单(Cascading Style Sheets,CSS),更多的人把它称作样式表。
3. Screem是Linux下一个集成的HTML/Web页开发工具。
Screem最初整个设计思路是根据GNOME风格的,但是在KDE环境下也能够很好地运行,它使在Linux操作系统中开发Web页面变得十分方便。Screem也支持中文处理,使用界面类似于Windows下的FrontPage。
Screem 除了能显示不同的HTML标识外,还可以很方便地建立表格(Table)、定义样式;同时还支持Plug-in功能为以后的扩充提供接口。Screem还带有多种图形、图标和照片。该软件可以一次使用、测试多个网页。内部浏览器可用来测试网页、影像预览工具、缩图影像创造向导、声音展示库、线上指引、 step-by-step的网站设计指引,以及最新HTML 4.0版标签的参考。
4. CSSED 是一款专门用来编写 CSS 的工具,它具有一些特别为编写 CSS 所准备的特性。另外,它也包含验证 CSS 方面的功能。
使用 CSSED 有两大感受:
a. 傻瓜化。假如你是一位编写 CSS 的新手,那么你可以利用 CSSED 来达到快速入门的目的。CSSED 的傻瓜化充分体现在它不仅提供了 CSS 编写的向导,更包括完整的 CSS 属性参考。即便你没有什么编写 CSS 的经验,在 CSSED 向导的帮助下也能快速完成工作。
b. 自动化。CSSED 拥有很多代码编辑器所具备的代码提示自动完成功能。这可以让你在编写 CSS 时更加专注于其设想,而不是代码本身。同时,这种自动化的工作也可以使你提高编写的效率,从而释放更为完美的创意。
当然,CSSED 还包括一些其他的特性,比如能够给代码着色、支持同时编辑多个文件、通过使用插件可以扩展其功能、以及对于 HTML、XML、Javascript、Java、PHP 等其他代码的编辑支持等等。
Tip:fcitx输入法可能会在CSSED中失效(SCIM正常使用),这对于我们写注释造成了不便。
以上例举的这些软件都是专业工具。当然,还有很多其它的工具来制作网页,比如vim、gedit、amaya等,条条大路通罗马嘛 : )
提示:图片编辑用gimp,制作动画用f4l和moho(商业软件)
转自:http://www.cnmos.cn/aboutme/linux/55-ubuntu-
http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb
源码(SHELL脚本):http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs
安装32位二进制软件包(非lib库):
sudo dpkg -i --force-all package_name.deb
GetLibs的使用方法:
下载和安装一个软件所需的所有libs:
getlibs /usr/bin/skype
通过lib名将一个32位库安装在64位系统上:(-l参数)
getlibs -l libogg.so.0 libSDL-1.2.so.0
通过软件包名安装32位的库:(-p参数)
getlibs -p libqt4-core libqt4-gui
安装一个32位lib的.deb文件:(-i参数)
getlibs -i ~/i386_library_1.deb
下载和安装一个32位lib文件:(-w参数)
getlibs -w http://mirrors.kernel.org/ubuntu/pool/main/s/sdl-image1.2/libsdl-image1.2_1.2.5-3_i386.deb
其他参数解释:
--apt-file : Uses apt-file to find the packagenames for libraries. The default uses packages.ubuntu.com. This is especially useful for non-ubuntu users.
--build : converts a 32-bit package to a 64-bit package and installs it. This will only install libraries from a 32-bit package into the correct place! This will not install any binaries from that package! This is very beta.
--savebuild : use with --build. Saves new 64-bit package to /home/$USER
--mirror or -m : Use the specified mirror to download from if one is not specified for package
--verbose : Extra output
--ldconfig : Runs ldconfig on directories where new libraries are installed
-64 : Will let apt-get install 64-bit packages for a 64-bit system
-32 : Left only for compatibility with getlibs v1. 32-bit library installation is the default for all systems.
--distro : can set as either Ubuntu or Debian. Ubuntu installs to /usr/lib32 and/or /lib32. Debian installs to /emul/ia32-linux/
--release : can set as hardy gutsy feisty edgy or dapper. Determines what web interface release is used in search.
英文原文:http://ubuntuforums.org/showthread.php?t=474790
本文出处:http://hi.baidu.com/wuxicn/blog/item/570ea22ecd33b0574fc22696.html
原创文章,转载请注明出处http://ubuntusky.cn/2009/01/python.html
国外:
python官方站点 http://python.org/
comp.lang.python组 http://groups.google.com/group/comp.lang.python/topics?pli=1
OpenSource[license相关的东东] http://opensource.org/
开发工具:
ActiveState komodo http://www.activestate.com/
为Perl,PHP,Python,Ruby,和Tcl提供集成开发工具。
Wingware http://wingware.com/
另一款非常不错的Python IDE
Web服务器:
zope http://zope.com/
Zope是一个开放源代码的Web应用服务器。使用Zope,可直接在浏览器中,通过服务器脚本开发的方法,快速构建各种Web应用。
国内:
中文zope/plone用户组 http://www.czug.org/
啄木鸟Wiki社区 http://wiki.woodpecker.org.cn/moin/
华莽用户组 http://groups.google.com/group/python-cn
原创文章,转载请注明出处http://ubuntusky.cn/2009/01/windowslinux-ext2ext3.html
从Windows访问Linux分区( ext2/ext3 )的三种方式
如果你有一个Windows / Linux双启动的系统,你可能已经知道,在Linux下可以访问您的Windows分区,反过来则不行。可以有三种方式访问您的Linux分区(ext2,ext3): Explore2fs , DiskInternals Linux Reader,Ext2 Installable File System For Windows。虽然前两个只能提供只读访问权限,但Ext2 Installable File System For Windows可以同时被用于读取和写入操作。
原文:3 Ways To Access Linux Partitions (ext2/ext3) From Windows On Dual-Boot Systems
译文:从Windows访问Linux分区( ext2/ext3 )的三种方式
由dracy翻译
原创文章,转载请注明出处http://ubuntusky.cn/2009/01/4shell.html 1、随便输入一个系统无法识别的命令(如ubuntusky)获得系统提示 2、#echo $0 3、#echo $SHELL 4、#ps 以上命令在Ubuntu Server 上测试通过,Shell:bash。dracy@ubuntuSky:~$ ubuntusky
bash: ubuntusky: command not founddracy@ubuntuSky:~$ echo $0
/bin/bashdracy@ubuntuSky:~$ echo $SHELL
/bin/bashdracy@ubuntuSky:~$ ps
PID TTY TIME CMD
5410 pts/0 00:00:00 bash
5491 pts/0 00:00:00 bash
5546 pts/0 00:00:00 bash
5565 pts/0 00:00:00 bash
5655 pts/0 00:00:00 ps

