存档

2009年5月 的存档

将图片转为html文件的软件

2009年5月31日 6 条评论

这个软件可以将图片以网页形式(用一堆各种颜色的字符,类似于马赛克)来展现。具体可以看看下面这个例子。

这是原图:

这是效果截图:

注:

1.使用中文做字符时请勾选“使用双字节字符”并在页面编码处选择“GBK”。

2.转换后的Html会附带一些软件信息,可以用网页编辑软件自行去除。

下载地址:麦子 @ SuccessFul! 提供

分类: 分 享 标签: , ,

甘地的改变世界的十句箴言

2009年5月31日 3 条评论

You must not lose faith in humanity. Humanity is an ocean;if a few drops of the ocean are dirty,the ocean does not become dirty.
绝对不能对人性失去信念。人性就像是大海;如果大海中有几滴水脏了,大海也不会变脏。

The difference between what we do and what we are capable of doing would suffice to solve most of the world's problem.
我们做什么和我们有能力做什么已能满足解决这个世界多数的问题的需要。

If I had no sense of humor, I would long ago have committed suicide.
如果失去幽默,我早就自杀了。

Mohandas Gandhi 甘地在印度被誉为“圣雄”和“国父”,领导了印度“非暴力不合作运动”。他带领国家迈向独立,在1947年脱离英国的殖民统治。

1. Change yourself.

“You must be the change you want to see in the world.”
欲变世界,先变其身。(越狱中引用的甘地名言)

“As human beings, our greatness lies not so much in being able to remake the world - that is the myth of the atomic age - as in being able to remake ourselves.”
作为一个人,我们的伟大不在于有多大的能力去改造这个世界(那是原子时代的神话),而是去改变自己。

2. You are in control.

“Nobody can hurt me without my permission.”
没有人能不经我的允许伤害我。

3. Forgive and let it go.

“The weak can never forgive. Forgiveness is the attribute of the strong.”
弱者从来不会仁慈,仁慈是强者的品性。

“An eye for eye only ends up making the whole world blind.”
以牙还牙只会让世界更盲目

4. Without action you aren’t going anywhere.

“An ounce of practice is worth more than tons of preaching.”
少量操练比大量说教更有价值。

5. Take care of this moment.

“I do not want to foresee the future. I am concerned with taking care of the present. God has given me no control over the moment following.”
我不想预见未来。我关心的是对此刻的负责。上帝没有赋予我我控制下一刻的能力。

6. Everyone is human.

“I claim to be a simple individual liable to err like any other fellow mortal. I own, however, that I have humility enough to confess my errors and to retrace my steps.”
我作为一个普通人也和其他人一样会犯错。可是我有足够的谦卑去为我的错误忏悔 ,为我的行为悔过。

“It is unwise to be too sure of one’s own wisdom. It is healthy to be reminded that the strongest might weaken and the wisest might err.”
太肯定一个人的智慧是不明智的。坚强的人也有弱的时候,聪明的人也有犯错的时候。

7. Persist.

“First they ignore you, then they laugh at you, then they fight you, then you win.”
有人忽略你,嘲笑你,最后打了你,不过你是胜利者。

8. See the good in people and help them.

“I look only to the good qualities of men. Not being faultless myself, I won’t presume to probe into the faults of others.”
我只把眼光投入到人们的优点上。我自己也不是完美无缺的,我不能冒昧地指责别人的过错。

“Man becomes great exactly in the degree in which he works for the welfare of his fellow-men.”
一个人有多伟大是看他给别人做出多少贡献。

“I suppose leadership at one time meant muscles; but today it means getting along with people.”
我曾经以为领导者要有操纵他人的力量,但今天我明白作为领导者要与人民站在一起。

9. Be congruent, be authentic, be your true self.

“Happiness is when what you think, what you say, and what you do are in harmony.”
快乐是就是怎么想,就怎么说,就怎么做。

“Always aim at complete harmony of thought and word and deed. Always aim at purifying your thoughts and everything will be well.”
始终着眼于全面和谐的思想和言行。始终着眼于净化您的想法,一切会变好。

10. Continue to grow and evolve.

“Constant development is the law of life, and a man who always tries to maintain his dogmas in order to appear consistent drives himself into a false position.”
不断发展是生命的真谛,一个人总是守着他的教条只会带他走入歧途。

via: http://www.positivityblog.com/index.php/2008/05/09/gandhis-top-10-fundamentals-for-changing-the-world/

分类: 励 志 标签:

优化了tag标签

2009年5月30日 没有评论

用上WP后,从来没有对TAG进行过优化,URL里面充斥着类似http://www.wheatime.com/tag/%e6%a0%87%e9%a2%98这样的连接,对URL很不友好。今天抽空对常用的TAG别名进行了整理,中文TAG别名全部翻译成英文,比如http://www.wheatime.com/tag/google看起来舒服多了。好像WP有一款插件可以实现TAG的优化,具体是什么样子的倒没去接触,暂时还是选择手动整理TAG,改天找找插件,借鉴一下。

饿了,准备吃饭去......

分类: 随 笔 标签: ,

一个不错的GIF缩放软件

2009年5月30日 3 条评论

GIF Resizer 很有针对性,平时我们如果想缩放 GIF 图像,一般只会转换缩放 GIF 的第一帧,然后就成静态图片了。而 GIF Resizer 绝不会出现这样的情况。GIF Resizer 就是专门用来缩小GIF格式的动画图片的,使用GIF Resizer缩放所得到的动画图片完全保留原始动画信息,只将其进行缩放。

 GIF Resizer有汉化版,界面也非常简单。轻松上手!如果是想保留画质的话,请勾选高质量,对于一些尺寸较大的GIF图片来说“高质量”会转换很慢......

演示图:

           

下载地址:麦子 @ SuccessFul! — [J.2mei.org]提供

分类: 分 享 标签: ,

在新窗口打开(php)

2009年5月30日 没有评论

使用mg2的iNove主题,页面右侧的订阅链接是在本窗口打开的,使用时很不方便,所以在主题中更改了一下,现在是在新窗口打开了。

其实php中在新窗口打开页面的代码和html中是一样的,只不过要找准添加的位置而已。

iNove主题中我们需要打开sidebar.php文件,然后找到RSS订阅的连接地址,在<a href= ......>中添加一句 target="_blank" 即可。

演示页面就看本站[J.2mei.org]的订阅链接就好了。

分类: 分 享 标签:

iNove 中鼠标悬浮显示 @ 评论

2009年5月29日 2 条评论

1. 下载 commenttips.js 文件。该文件修改自 yinheli 的代码,我去除了一些无关代码,简化了效果,和修复了几个bug。下载请点 

2. 将 commenttips.js 文件放置到 inove/js 目录。

3. style.css 中追加样式代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#thecomments .tip {
	background:#FFF;
	border:1px solid #CCC;
	width:605px;
	padding:10px !important;
	padding:10px 10px 0;
	margin-top:0;
	position:absolute;
	z-index:3;
}
#thecomments .tip .act {
	display:none;
}
*+html #thecomments .tip {
	padding:10px 10px 0 !important;
}

4. 在主题中添加代码调用 JavaScript。打开 templates/end.php,在 </body> 前面一行添加以下代码:
(如果你有其他插件或者自己已经添加了 jQuery 的库,那第一行代码可以不必添加。)

1
2
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/commenttips.js"></script>

5. 好了,刷新一下有 @ 回复的页面,等页面加载完,将鼠标悬停在 @ 回复上,你会看到效果的。

演示:http://www.wheatime.com/guestbook

via: http://www.neoease.com/inove-mouseover-to-show-comment-no/

将iNove标题换成图片

2009年5月29日 3 条评论

首先创建一个标题图片,注意要隐藏背景图层,使其透明,保存为 title.gif (GIF 图片),并且将“杂边”设置为黑色。

然后编辑一下 'style.css' 文件以更换标题,打开 style.css 文件, 并在文件中找到 '#title a',屏蔽或者移除以下代码:

#title a {
text-decoration:none;
color:#FFF;
/*width:250px;*/
height:30px;
display:block;
font-family:"Trajan Pro";
letter-spacing:0;
}

然后激活下面的代码。(移除掉开始位置的 /* 和 结束位置的 */ 即可)

#title a {
background:url(img/title.gif) no-repeat;
text-decoration:none;
color:#FFF;
width:250px; /* change '250' to the width of you title.gif file */
height:30px;
text-indent:-999em;
display:block;
}

通过height:30px可以更改上下位置,我设置的是38px。保存,刷新看看效果吧!

PS.以前的文字标题title效果:

更改为图片title的效果:

via: http://www.neoease.com/use-image-title-in-inove/

分类: 分 享 标签: , ,

iNove主题使用文章分类导航

2009年5月29日 4 条评论

如果你也在使用iNove主题,你会发现iNove很友好的文章分类导航,但是只能处理子分类, 形式如下:

首页 > 分类 > 文章

而很多时候我们往往需要实现多层次的文章导航,有了它,访客就可以方便地访问同类的文章,并明确文章的所属,对提高用户体验和网站的PV值都很有帮助。具体形式如下:

首页 > 分类 > 子分类 > 第二层子分类 > ... > 第 N 层子分类 > 文章

打开iNove 主题里的 single.php 文件,其中的 id="postpath" 部分是这样的:

<a title="<?php _e('Go to homepage', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a>
&gt; <?php the_category(', '); ?>
&gt; <?php the_title(); ?>

或者你更改过可能会是这样:

<a title="Go to homepage" href="<?php echo get_settings('home'); ?>/">Home</a> <!-- 首页链接 -->
&gt; <?php the_category(', '); ?> <!-- 每个分类以逗号分隔 -->
&gt; <?php the_title(); ?> <!-- 文章链接 -->

以上都是包含父级分类的文章导航,这里用到 the_category() 方法的默认模式,会调用 get_the_category_list() 生成最后一层的子分类 (分类可能不只一个) 组成的 HTML 字符串并打印到页面上。

要想获得包含父级分类的文章导航,即包含多层次的文章分类导航,可将该部分代码替换为:

<a title="Go to homepage" href="<?php echo get_settings('home'); ?>/">Home</a> <!-- 首页链接 -->
&gt; <?php the_category(' &gt; ', 'multiple'); ?> <!-- 每个分类以 > 分隔, 父级分类在前, 子分类在后 -->
&gt; <?php the_title(); ?> <!-- 文章链接 -->

即可。我们用的是 the_category() 方法的 multiple 模式,而他会调用 get_the_category_list() 和 get_category_parents() 两个方法生成一个包含所有父分类的 HTML 字符串并打印到页面上。

via: http://www.neoease.com/wordpress-breadcrumb-navigation/

分类: 分 享 标签: , , ,

首页调整

2009年5月28日 没有评论

对博客首页做了一些调整:

首先对订阅部分新启用了邮件订阅功能,添加了RSS订阅下菜单显示。

修改了存档日志的显示。

去掉了默认的Meta等显示。

留言窗口表情弹窗。

分类: 随 笔 标签: ,