2012年3月24日星期六

太阳系八大行星图示及中英对照

按离太阳距离从近到远:
Mercury: 水星;
Venus:金星;
Earth:地球;
Mars:火星;
Jupiter:木星;
Saturn:土星;
Uranus:天王星;
Neptune:海王星;
Pluto:(2006年由行星降至矮行星)冥王星。

2012年3月19日星期一

Install dropbox on ubuntu 11.04(natty)

GFW真实太伟大了,让我安装个小软件都费了老鼻子劲。
安装方法:
1、下载dropbox对应ubuntu 11.04 版本的deb包;
2、运行:dpkg -i dropbox,安装软件包;
3、这个时候你可以在程序菜单里找到dropbox图标啦,但是点击运行就傻眼了,会提示错误:
In order to use Dropbox, you must download the proprietary daemon. (很明显是因为被墙了),解决办法见下一条;
4、you can download it here(目前有效,文件为dropbox-lnx.x86-1.1.45.tar.gz),如果无效,可google关键字"dropbox-lnx.x86",重新找个地方下载,同时可以选择下载较新版本。
5、下载完成后,进入下载目录,执行:
tar -zxvf dropbox-lnx.86* -C /home/yourname/
将下载文件解压缩至对应用户的目录下,生成文件夹.dropbox-dist(注意该文件夹以"."打头,说明它是隐藏文件,默认看不见)
6、启动dropbox,经过类似于windows版本的设置,终于大功告成,enjoy!
p.s. dropbox客户端不受墙影响,只要安装好程序,便可正常享用它的同步功能。
点此可下载上述提到的文件打包

2012年3月14日星期三

HTML学习——HTML "style" Attribute


The style attribute specifies an inline style for an element.
The style attribute will override any style set globally, e.g. styles specified in the <style> tag or in an external style sheet.
The style attribute is not valid in: <base>, <head>, <html>, <meta>, <param>, <script>, <style>, and <title>.
syntax:
<element style="style_definitions">
style_definitions:One or more CSS properties and values separated by semicolons (e.g. style="color:blue;text-align:center")

2012年3月11日星期日

d3dx9_43.dll文件缺失处理方法

昨天在xp下安装完356后,兴冲冲的接上手柄,准备割个痛快,谁知居然出现程序启动失败,弹出个信息框提示can't find d3dx9_43.dll,看名字很显然跟directx有关,去网上下载了一个d3dx9_43.dll文件放到Windows下的system32目录下,本以为这下就没问题了,可是事与愿违,这回是没有再提示找不到文件,但是程序自动闪退,无奈之下删除下载的dll文件,跑到microsoft网站上下载了个最新版directx安上,安装完后问题解除,顺利游戏。
总结:在安装或运行游戏程序时,若出现类似的dll文件缺失,直接下载dll文件至有关目录下的方法虽然简单直接,但不一定奏效,甚至会导致出现新问题,这时就需要找到包含该dll文件的安装程序,进行安装,这虽然繁琐些,但是它最有效。
附directx下载地址:http://www.microsoft.com/download/en/details.aspx?id=35

2012年3月9日星期五

标点符号英文对照

后续还有补充

Mountain Lion Preview edition and Messages 下载

苹果新一代操作系统OSX Mountain Lion将于今年夏季推出,该新系统添加了很多ios上的功能,如Messages,Reminder,Notification Center,twitter,加强了mac与ipad,iphone等ios设备的融合,很值得期待。目前苹果主页提供预览版系统下载及软件Messages的beta版下载(注意:Messages beta仅支持Lion 10.7.3及以上系统版本),有了Messages就可以在Mac与ios设备间使用iMessage,同时还支持Gtalk,Yahoo,AIM等账户登录。Messages具体功能如下:
  • Send unlimited iMessages to any Mac, iPad, iPhone, or iPod touch.
  • Start an iMessage conversation on your Mac and continue it on your iPad, iPhone, or iPod touch.
  • Send photos, videos, attachments, contacts, locations, and more.
  • Launch a FaceTime video call and bring the conversation face-to-face.
  • Messages supports iMessage, AIM, Yahoo!, Google Talk, and Jabber accounts. 下载地址见这里
  • 2012年3月5日星期一

    using “less” command to find some text in a file

    The less command is the way most Linux users open a file for reading, and it also can be used to search.
    For example, if you want to open a file and search for a word, you can run this:
    less +/yourword /path/filename # there is a space after "yourword".
    This command will highlight all instances of the word.

    2012年3月4日星期日

    Problem with Fink after the system upgraded to mac Lion

    苹果最新一代操作系统为OS X 10.7,代号“Lion”,2011年7月20日首发,上一代操作系统代号“Snow Leopard”(雪豹)。在Snow Leopard 下安装的软件Fink自从系统升级后便不能使用,也无法升级,查看Fink官方说明,解决办法很无奈,只能选择重新安装Fink,并且如果想使用原来的目录(/sw),在重装前还需删除该目录。如果你打算升级系统,可以按照建议,在升级前先对以前下载安装的包进行列表备份,待系统升级及重装fink后再执行恢复命令,一次性恢复安装所有已备份软件包(恢复过程中可能有部分软件包因不支持10.7系统而安装不上)。
    如果是已经将系统升级至Lion,只有重装fink后手动一个接一个的安装软件包了。官方说明如下:

    First, the fink program itself will not run on a system which has been upgraded to Lion, so it is not possible currently to update a Fink installation in place.However, is possible to use the dpkg program to extract a list of the Fink packages which are current installed so that they can be reinstalled under 10.7. Use
    dpkg --get-selections | cut -f1 > fink_packages.txt #系统升级前 
    before updating to 10.7 to dump the package names to a text file, and
    cat fink_packages.txt | xargs fink install #重装Fink后 
    once you have installed Fink on 10.7. 
    To upgrade Fink after upgrading to Lion, one will have to bootstrap Fink again, using a tarball for fink-0.31.0 or later. If you want to use the same directory (e.g. /sw) for Fink that you were using on 10.6, you'll need to remove that before bootstrapping, since the bootstrap doesn't allow you to overwrite an existing Fink tree.
    Second, due to lots of changes under the hood, there currently are many fewer Fink packages which build under 10.7 as opposed to 10.6. Thus, even if you've extracted a list of Fink packages which had been installed under 10.6, some of them may not yet be installable under 10.7. We are currently creating a database showing which packages can be successfully installed under 10.7, and work is ongoing to add packages.
    10.7 introduces several drastic changes to how the system works. While this may cause a slight delay in full Fink functionality in the short term, it will make Fink work better in the future.
                                                          以上内容摘自finkproject.org

    2012年3月3日星期六

    iphone铃声制作及上传软件推荐——Xilisoft-iphone-Ringtone-Maker

    最近在iphone上安装了一些免费铃声下载软件,感觉都不是很理想,要么铃声质量不高,要么是不合口味,而且下载下来的铃声不能立刻在iphone上设置使用,而是需要在itunes中同步。个人一直感觉itunes不太好用,同步时需要万分小心,一不小心就可能抹除掉iphone里已有的内容。经人推荐,下了个Xilisoft旗下的iphone ringtone maker软件,该软件界面简洁清爽,制作铃声及导入iphone功能真是方便,而且完全无需担心误操作,了却了使用itunes的烦恼,真的很赞,谁用谁知道啊!
    目前该软件有两个版本,分别适用于mac及windows操作系统,均支持试用。

    这里是软件界面图
    官方windows版下载地址见这里mac版见这里
    网盘下载点击这里

    doubanFM plugin for exaile on ubuntu

    刚刚试听了豆瓣FM中的音乐,发现里面的音乐很不错,而exaile是Linux下很好用的music player,前段时间安装gnome-3的插件时印象中看到了针对exaile播放器的doubanFM插件,它将这两个结合到了一起,实现在exaile下播放豆瓣FM,而无需特地打开网页收听doubanFM,很是方便。既然这么好,当然就没有理由拒绝了,按照安装说明一路走来,终于大功告成,现附下载地址及安装说明如下: 

    下载地址:https://github.com/sunng87/exaile-doubanfm-plugin/downloads,点击下载最新版。
    安装说明:点此进入官方说明 
    1、确认你的Exaile版本0.3.2。
    2、按F2将先前下载下来的文件重命名为doubanfm.tar.gz(这么做的原因:Exaile要求压缩包内的文件名要以压缩包的名字开头,否则报错;而github上使用相同的文件名用作下载会有潜在的问题) 
    3、如果之前安装过这个插件,请执行 rm -r ~/.local/share/exaile/plugins/doubanfm 删除原先配置文件
    4、运行Exaile,点击菜单上的edit,进入Preferences界面,然后进入Plugins界面,点击"Install Plugin File"按钮,选择下载的插件进行安装,然后在plugins中勾选上doubanfm,同时preferences界面左边Plugins下方会出现Douban.fm,如果没有,关闭Preferences对话框然后重开,找到Douban.fm,单击进入,输入你的豆瓣用户名及密码 
    5、回到主界面,通过菜单File->open Douban.fm访问豆瓣FM,点击播放按钮即可收听 
    6、播放过程中可以通过菜单View->Doubanfm Mode,或快捷键 Ctrl+D方式切入豆瓣FM精简界面 通过第五个按钮菜单选择频道即可 效果如下: 




    更多可参见官方blog