Random Quotes very simple and smarty plugin for diplay random quotes I installed.
Features
- It uses the database to store quotes, not a text file.
- It has a spiffy administrative interface (screenshot).
- You can call up a random quote, or a specific quote in your pages
- New: You can make a page with all your quotes.
- You can turn certain quotes “off,” without actually deleting them
- The quote layouts are done with CSS, so you can stick them anywhere and style them yourself (or follow my instructions below)
API
- wp_quotes_random();: Displays a random quote, in a div with classes as indicated in the installation instructions
- wp_quotes($id);: Displays a specific quote by quote ID. Useful if you want to embed a quote in a page, maybe?
- <!–wp_quotes_page–>: Putting this in any post or page entry will spew the entire list of quotes in your database
Coolcode is a powerful plugin for programming code, adds syntax highlighting to your code. It base on Text_Highlighter and CodeHighlight. There is a list show which language it can work on.
- actionscript
- cpp
- css
- diff
- dtd
- html
- java
- javascript
- mysql
- perl
- php
- python
- ruby
- sql
- xml
Your can download the lastest version at here.
How to use?
Simple use
1 2
| <code>
your script here |
Highlight your script
1 2
| <code lang="you language name">
your script here |
Don't display the line number
1 2
| <code linenum="off">
Your script here |
Download as a file
1 2
| <code download="file.txt">
Your script here |
And you can use the 3 options together.
Today, my 3rd time to apply for postion of foreign company is fail. I think I must think carefully about the fails.
First, I have not enough knowledge about network and Linux system.
Second, I have not enough work exprience.
Third, I have not enough interview exprience.
Case all of this, I am fail three times! I remind myself that I must find a job in Chengdu before October. I wish I can get a postion of foreign company in Chengdu. So, in the July and August I must study harder and harder!
Some book I must read carefully:
- Linux system administrator handbook
- Bind and DNS
- TCP/IP protocol I
- Samba defivence Guide
- Unix system administrator handbook
- Programming Perl
- Lernning Python 2
- Network Base book
Published on
June 23, 2006 in
Tech.
answers.com is so cool today, when I search something about WPA(Wi-Fi Protected Access) on A9.com today, I get the normal result message is from Live.com, I don’t like it. However, I can get the wikipedia message on A9.com. I also see It(the wikipedia result message are from Answers.com). so I visit the Answers.com and search “WPA” again, to my surprise, I get much good result for “WPA”, WOW. Let us look at the result for “WPA”.
The first result is from Dictionary.
WPA
abbr.
Work Projects Administration
The second is from Technology, It is right for me!
It exlain what is WPA, WPA2 and 802.11i protrocol.
The third is from Abbreviations, a new website I never hear told.
The fourth is from Wikipedia, It give me several links about “WPA”, one is the link of Wi-Fi Protected Access.
At the bottom of the page, you can email the page to your friends, print it or make a link to this page.
今天在perlchian的mail-list上有人提出这样的问题
如何查看已经安装的perl模块?
问答是这样的
1 2 3 4
| use ExtUtils ::Installed;
my $inst = ExtUtils ::Installed->new();
print join "\n", $inst->modules(); |
在我的 ubuntu dapper 上则看到这些模块,很显然,我在公司的个人工作电脑上还不是很喜欢用 perl 。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| $ perl
use ExtUtils::Installed;
my $inst = ExtUtils::Installed->new();
print join "\n", $inst->modules();
Archive::Tar
Archive::Zip
Comcodess::Zlib
Cwd
Digest::SHA
File::HomeDir
Module::Build
Module::Signature
Net::Telnet
Perl
Spiffy
Term::ReadKey
Term::ReadLine
Test::Base
Test::Simple
Text::Glob
YAML |
很可能,在你的 Debian/Ubuntu 完成一个系统升级(dist-upgrade)之后,所下载的软件包会占满你的 /var 分区?怎么办? 使用 apt-get 就可以删除这些下载的软件包,当然你确定这些软件包你在近段时间内不会再安装了。此时,apt-get 的两个选项可以帮你作出选择是删除老版本的软件包还是删除所有下载的软件包:
1 2
| clean - 删除所有已下载的包文件
autoclean - 删除老版本的已下载的包文件 |
在 http://www.lowing.org/fonts/有一份关于实用编程所用字体的列表,非常棒!我在Linux下则是一直使用”Bitstream Vera Sans Mono“作为首选,偶尔也会使用一下在MAC上表现得非常好的 Monaco。
昨天在公司有同事遇到这样的问题,不能上网,能用Windows共享,在命令行窗口使用 ping 则出现这样的结果
1
| Unable to initialize Windows Sockets interface, error code 0. |
其他网络设置正常,登陆windows时在“网络连接”那里会有异常长时间的等待。
其实这是一个配置或者其他软件使用不当引起的windows系统文件被破坏的问题,下载 winsockfix.exe 运行便可以解决问题。
[English Version]
Yestoday, someone in our company have the strange error with PC, can use Windows file or printer share, but can’t use TCP programme, just as IE, FTP etc. When use ping in the “cmd” consonle, It display like this
1
| Unable to initialize Windows Sockets interface, error code 0. |
Use this programme winsockfix.exe can fix the tcp error.
Ubuntu现在已经成为了Linux新用户中最流行的发行版。安装容易,实用,并且“适合工作”。但是转移到一个不同的操作系统是值得考虑的,不管它有多么好的设计。这里的一些技巧在你实用Ubuntu的时候可以帮助你节省一些时间。
- 让多媒体工作起来
默认的Ubuntu安装只包含自由软件,那意味着它不直接的支持一些流行的多媒体格式。虽然这带来了一些不便,但是Ubuntu的维护者们有很好的理由不去购买MP3,DVDs或更多的支持,因为包含这些软件会带给他们一些法律上的问题和一些严格的收费。
幸运的是,作为一个用户,你不需要去担心关于费用的问题(然而一些软件是没有专利限制或者拷贝限制的,这取决于你所在的地区)。Ubuntu的wiki上有一个如何获取受限格式软件包的页面。然而,如果你在AMD64或PowerPC上运行Ubuntu,你依然将会被一些软件包拒之门外,直到那些受硬件限制的多媒体格式不再受到限制为止。
- 改变默认设置
Ubuntu所带来的一些默认设置或许是也或许不是你所期望的。比如,默认的编辑器是Nano,如果你习惯了实用Vim它就不是最佳的设置。
改变这些设置的简单办法便是使用 update-alternatives 程序,它维护着在 /etc/alternatives 目录下包括例如FTP、系统编辑器、rsh、Telnet、窗口管理器等的符号链接。观察一下 /etc/alternatives 目录便可知道有哪些程序被管理着。
要改变默认的编辑器,运行
1
| $sudo update-alternatives --config editor |
你将会看到象下面这样的这个对话设置:
1 2 3 4 5 6 7
| There are 3 alternatives which provide `editor'.
Selection Alternative
--------------------------------------
1 /usr/bin/vim
2 /bin/ed
*+ 3 /bin/nano
Press enter to keep the default[*], or type selection number: |
只要输入 1 就可以换装默认编辑器为Vim。注意在我的系统上,我没有安装Emacs或其他的编辑器;如果我安装了,这个工具也会提供其他编辑器作为选择。
只要输入 1 就可以换装默认编辑器为Vim。注意在我的系统上,我没有安装Emacs或其他的编辑器;如果我安装了,这个工具也会提供其他编辑器作为选择。
Continue reading ’10条Ubuntulinux新用户技巧’
现在我只能使用a9搜索Wikipedia上的备份内容,今天想复习一下网络协议的时候在a9上搜索了“Internet protocol”,得到以下地址,还好可以访问到Wikipedia的备份,但是我想直接访问Wikipedia但是,都知道Wikipedia被一群无耻的人封掉了?难道叫我去看BIDU的百科?还是去知道?那里更适合小学生。
最后再说一句,我更原意把这篇日志的题目定为 “人可以无耻到这种地步!”。
Recent Comments