(zz)PS切片导出为DIV+CSS布局

在修改好相应的文字与图象之后,我们就将PSD文件输出(X)HTML文件。

首先得先对PSD文件做切片,有两种方法:

①使用工具栏上的“切片工具”,

 

然后在图象上划出一块一块的区域。

 

②使用基于参考线的切片,按ctrl+R调出标尺栏,

 

把鼠标移动到标尺上,按住鼠标左键,移动到图象上,将会看到一条绿色的参考线,如图

 


将参考线;排好,然后点一下工具栏上的切片工具图表,然后点上面

选项栏里的“基于参考线的切片”。于是在原来的参考线上就变成了一块一块的切片了。

******************************************************************************** 

接下来就可以输出了:
①依次选择菜单栏上的“文件”→“存储为Web所用格式”→“存储”。

②接下来就会弹出一个“将优化结果存储为”的窗口。

在“保存类型”处有个下拉列框可以选择,因为我们要存储为网页的格式,所以选择“HTML和图象(* html)”,再选择“保存”就可以输出一个网页格式的HTML文件与一个包含图象的名为“images”的文件夹。

③如果我们需要输出“div+css的网页”我们还可以这么做:
在“设置”处的下拉列框,选择“其他”

 

就会弹出一个“输出设置”的窗口
在第2个下拉列框处选择“切片”,选择“生成CSS”,单击“好”→“保存”,就可以输出一个目前流行的“div+css”的HTML网页。

我知道了

现在正是需要努力的时刻,我的目标是做产品,虽然我今天听说游戏测试员这个美好的工作,但是我觉得它没有什么太大的上升空间,呵呵,个人看法。我的理想是做出可以改变世界的互联网产品。未来的世界,随着移动通讯网络的普及,我相信人们可以做到24小时在线,这就需要有一种应用可以随时随地让人们使用。当然在线烦了的话,人们还是需要线下活动的,毕竟生活不是虚拟世界中的0和1。

我不知道怎么好了

真的,我现在不知道怎么办才好了。我思索过我自己,我是一个没有理想、没有目标的人。小时候,妈咪教育过我,要有理想。那时候我没有说出我的理想,被她教育哭了。她让我拿纸写下自己的理想,然后去计划、去实现。当时我写了,但是我不知道我写了什么,当年的那张纸也不知道哪里去了,我的理想也不知道在哪里。

没有理想很可怕,可是我也没觉得怎么样,这么多年也过来了,但是我现在明白这样做是不行的。我需要做出自己的选择,需要正确面对自己,不再逃避一些问题。

可是我不知道自己该做些什么,我也不好意思跟人表达这些东西,因为我不喜欢说话,我不知道跟人家说什么,这是由我的性格所决定的。所以从小都是别人找我来玩,我很少邀别人去玩,我喜欢一个人待着。我不喜欢的人,我基本不跟他们说话。我只会从我自己主观来对人进行判断,不喜欢我就不理,这样做很可怕,需要纠正。

现在的首要问题是,时间很紧迫,我不能再晃悠了。我知道我需要首先给自己设立一个目标,并不断努力去实现它。就算是最终实现不了,但这个努力的过程或许会给我带来意外之喜。我需要努力,我的头脑并不差,只是我需要毅力与动力。我很懒,这是我最大的毛病。对于懒惰,我不知道怎么办,但是我决定早睡早起来解决时间的紧迫。接下来控制自己投入学习当中,我一旦学进去了,还是非常认真的,这点我可以保证。

我想我能够写出这些东西,证明我还可以控制自己,可以正视自己,接下来我需要证明自己。我很容易瞧不起别人,想像自己多么多么好,活在想象中,或许这是因为我的想象力太丰富,我可以凭想象想出一些事情该怎么做。但是生活不是剧本,我只有自己有实力,才可以比别人强。

对于cy,也许......但是我很喜欢她,我不知道如何表述,因为我想给她说的就是上面这些,希望一切都好。

"我爱百度。。。。。。"

A new approach to China: an update

3/22/2010 12:03:00 PM
On January 12, we announced on this blog that Google and more than twenty other U.S. companies had been the victims of a sophisticated cyber attack originating from China, and that during our investigation into these attacks we had uncovered evidence to suggest that the Gmail accounts of dozens of human rights activists connected with China were being routinely accessed by third parties, most likely via phishing scams or malware placed on their computers. We also made clear that these attacks and the surveillance they uncovered—combined with attempts over the last year to further limit free speech on the web in China including the persistent blocking of websites such as Facebook, Twitter, YouTube, Google Docs and Blogger—had led us to conclude that we could no longer continue censoring our results on Google.cn.

So earlier today we stopped censoring our search services—Google Search, Google News, and Google Images—on Google.cn. Users visiting Google.cn are now being redirected to Google.com.hk, where we are offering uncensored search in simplified Chinese, specifically designed for users in mainland China and delivered via our servers in Hong Kong. Users in Hong Kong will continue to receive their existing uncensored, traditional Chinese service, also from Google.com.hk. Due to the increased load on our Hong Kong servers and the complicated nature of these changes, users may see some slowdown in service or find some products temporarily inaccessible as we switch everything over.

Figuring out how to make good on our promise to stop censoring search on Google.cn has been hard. We want as many people in the world as possible to have access to our services, including users in mainland China, yet the Chinese government has been crystal clear throughout our discussions that self-censorship is a non-negotiable legal requirement. We believe this new approach of providing uncensored search in simplified Chinese from Google.com.hk is a sensible solution to the challenges we've faced—it's entirely legal and will meaningfully increase access to information for people in China. We very much hope that the Chinese government respects our decision, though we are well aware that it could at any time block access to our services. We will therefore be carefully monitoring access issues, and have created this new web page, which we will update regularly each day, so that everyone can see which Google services are available in China.

In terms of Google's wider business operations, we intend to continue R&D work in China and also to maintain a sales presence there, though the size of the sales team will obviously be partially dependent on the ability of mainland Chinese users to access Google.com.hk. Finally, we would like to make clear that all these decisions have been driven and implemented by our executives in the United States, and that none of our employees in China can, or should, be held responsible for them. Despite all the uncertainty and difficulties they have faced since we made our announcement in January, they have continued to focus on serving our Chinese users and customers. We are immensely proud of them.

存一点连接

http://www.kenengba.com/post/2248.html

http://googleblog.blogspot.com/2010/01/new-approach-to-china.html

http://www.state.gov/secretary/rm/2010/01/135105.htm

【转】呵win7有趣的上帝模式

先用任何名稱創造一個新資料夾,然後打上句號,再加入下列任一字串。

例如:"thankscnet.{00C6D95F-329C-409a-81D7-C46C66EA7F33}" (最外側的兩個引用符號不算)

微軟提供的字串如下:

{00C6D95F-329C-409a-81D7-C46C66EA7F33}

{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428}

{025A5937-A6BE-4686-A844-36FE4BEC8B6D}

{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}

{1206F5F1-0569-412C-8FEC-3204630DFB70}

{15eae92e-f17a-4431-9f28-805e482dafd4}

{17cd9488-1228-4b2f-88ce-4298e93e0966}

{1D2680C9-0E2A-469d-B787-065558BC7D43}

{1FA9085F-25A2-489B-85D4-86326EEDCD87}

{208D2C60-3AEA-1069-A2D7-08002B30309D}

{20D04FE0-3AEA-1069-A2D8-08002B30309D}

{2227A280-3AEA-1069-A2DE-08002B30309D}

{241D7C96-F8BF-4F85-B01F-E2B043341A4B}

{4026492F-2F69-46B8-B9BF-5654FC07E423}

{62D8ED13-C9D0-4CE8-A914-47DD628FB1B0}

{78F3955E-3B90-4184-BD14-5397C15F1EFC}

提醒各位,要創造上帝模式資料夾,請使用這個字串:

{ED7BA470-8E54-465E-825C-99712043E01C}

今天激活了win7

反正还是自己瞎弄的,哈哈哈,我真厉害。主要是要升级bios,因为我下的是无约而来的什么102in1的oem旗舰版,本来是自动激活,但是主版还是哪要有slic2.1,反正我也不懂啊。谷歌说升bios得,所以也是不知道怎么弄,又问百度,在某个人的知道问题的回复上,知道了bios之家,那可以搞定这种问题。那就去bios之家看了看,什么都不懂,直接论坛搜索我的型号,还真有,直接下来,是个exe,说是国外来的。双击就装,大不了坏了叫dell来修。点了刚开始没有反应,后来自动关机,我还在奇怪的时候,屏幕上显示正在升级bios,一行英文,完了就重启了。重启进来右键一看计算机,竟然激活了,啊哈哈,那在bios之家一个可以看slic的一看,2.1了,那就是成了,就这样瞎搞就激活了win7。这个假期就先用win7吧,回学校说不定还得换回xp,那个北林客户端啊。

哈哈 装上win7了 暂时就不折腾Ubuntu 9.10了

为了装win7,先是用Ubuntu的live cd格了出fat的硬盘分区,装了xp,再用xp引导win7装。虽然看着很麻烦,不过这是我能想到的,充分利用了我手头资源的一回尝试了。最后win7还可能要激活,需要刷bios,有危险,而且自己懒得弄了。不过那句话写得是剩余3天可以自动激活,等3天吧,不行就用回xp,正版的oem,花了200多啊。其实win7也不是很贵,最便宜的399,但是要是满足我的需求可能要那个699的家庭高级版,不知道怎么取舍啊。再者最近的钱很紧张,也不能说是紧张,主要是想买Milestone或者Droid,最少要4000,看看生日和春节能捞多少啦,哈哈哈。不行把g1出了去买win7,实在是懒得整那些盗版,也可能不算是盗版网上那些,反正就是懒得弄了。

在Ubuntu下解压缩rar包

今天研究在Ubuntu下如何翻墙,需要使用wine,但是还得在system32下加一个dll文件,从网上下了,可是用rar打包了,Ubuntu解不了,搜索下找到了解决方法。

在终端下,以下两个命令都可以。

sudo apt-get install unrar-free

或者sudo apt-get install unrar

 

Ubuntu Tweak的安装

放假了,本来是打算装一下win7,限于笔记本没有刻录机,所以只能从硬盘安装。没想到安装进行分区时,自己犯二了,直接把安装文件的盘给格了,所以没有装成,早知道就放在移动硬盘里不动了,也不知道是什么鬼使神差安之前把它们移动到本机来了。整个硬盘格掉,之前的Ubuntu和XP都没有了。所以就准备试试Ubuntu 9.10,之前安的是9.04,所以这会就重新装一遍,再升级到9.10,完全脱离Windows。

之前废话太多了,还是介绍一下Ubuntu Tweak吧。

Ubuntu Tweak是一个在Ubuntu下运行,管理本机的软件、下载软件、更新源等功能的软件,类似Windows下的360软件管理或者是迅雷的软件管理。之前在9.04用过,有非常好的体验,忘了当时是推荐的了,呵呵。

下面介绍一下具体的安装方法,是0.4.9.2版本的。

打开终端。依次输入以下命令。

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com FE85409EEAB40ECCB65740816AF0E1940624A220

用gedit编辑更新源,其它的工具也可以。 

sudo gedit /etc/apt/sources.list

加入9.10的源。

deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/tualatrix/
ppa/ubuntu karmic main

安装。

sudo apt-get update
sudo apt-get install ubuntu-tweak