1 / 3
Caption Text
2 / 3
Caption Two
3 / 3
Caption Three margin testing

Thursday, May 21, 2009

How to drop many tables with same prefix in MySQL

Put the following into a file called get_table_names.sql :
use db;
show tables where tables_in_db like 'myPrefix_%';
Replace "db" with your database name in both lines of the file.
Mysql names the output column "tables_in_[database_name]".

Then execute at the shell command prompt:
mysql -u dbuser -p < get_table_names.sql > table_list

Then edit the file table_list to make each line a drop table commandt:
drop table myPrefix_1;
drop table myPrefix_2;

Now execute the MySQL commands in file table_list:
mysql -u dbuser -p db <table_list

Tuesday, May 12, 2009

Ubuntu One实现多台电脑文件同步

  Ubuntu的开发者Canonical,正在准备推出一个名为Ubuntu One的Web服务,类似于Dropbox,它将实现多台Ubuntu电脑之间的文件同步。该项服务的使用者可以得到2GB的免费空间。目前这项服务还处于开发阶段,预期将在今年10月推出的Ubuntu 9.10(代号为Karmic Koala)中广泛使用。更详细的情况见:Hands on: Canonical aims for the cloud with new Ubuntu One

Monday, May 11, 2009

美国加利福尼亚州编纂开源教科书

  加利福尼亚州州长发起了一项新倡议,编纂开源教科书(open source science and math textbooks)。他希望该计划将有助于降低成本和提高教育质量。这种尝试意义远大,但该州复杂而艰巨的教科书评价过程也会给此计划带来重大挑战。 (详情见英文原文)

Saturday, May 9, 2009

备份Google Docs中的文件

  有一个 Greasemonkey script 可以帮你备份Google Docs中的文件,安装此script后,你将可以选择你想要的文件类型,如:Microsoft Office files, Open Offices files, PDFs等,来下载Google Docs中的文件。

让Google查找某类型的文件

  这并不新鲜,但很有用。只要在关键字前加入文件类型“filetype:torrent”,谷歌便可以找到有关的torrent文件。因此,如果您寻找“哈利波特”的torrent文件,可以这样查:“filetype:torrent harry potter”。

Thursday, May 7, 2009

用Weave同步多台电脑上的Firefox

  Weave是Firefox上的一个很好的工具。能够保持书签,历史和标签(Tab)在多台电脑之间保持同步,提高上网效率。目前它只能工作在Firefox 3.5 beta上。

Saturday, May 2, 2009

把Ubuntu服务器从8.10 (Intrepid)升级到9.04 (Jaunty)

  别忘了在升级前备份系统,下面是把Ubuntu服务器从8.10 (Intrepid)升级到最新版本9.04 (Jaunty)的具体步骤:

  用下面的命令更新服务器软件包清单:

sudo apt-get update

  如果以前没有安装过的话,现在用下面的命令安装 update-manager-core :

sudo aptitude install update-manager-core

  编辑 /etc/update-manager/release-upgrades

sudo vi /etc/update-manager/release-upgrades

  设置

Prompt=normal

  启动升级工具(upgrade tool)

sudo do-release-upgrade

  接下来只要按照屏幕的提示操作即可。(这里是英文原文)

Featured Post

Windows和Ubuntu双系统完全独立的安装方法

http://www.ubuntuhome.com/windows-and-ubuntu-install.html  | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...