Joe Jiang's Blog

Just another WordPress.com site
Skip to content
  • Home
  • About
← Older posts
Newer posts →

BJ in snowing

Posted on January 7, 2012 by lamppurl
BJ in snowing
BJ in snowing

Posted in Uncategorized | Leave a comment

xml-table-maker for Windows

Posted on December 27, 2011 by lamppurl
@echo off
perl -e "use Win32::Clipboard; use DBIx::XHTML_Table; Win32::Clipboard::Set(DBIx::XHTML_Table->new(q(dbi:Oracle),qq(@ARGV))->exec_query(eval <STDIN>)->modify(table=>{border=>1, bordercolor=> q(#888888), cellspacing=>0})->output())"
Posted in Uncategorized | Leave a comment

我们为你们所存的盼望是确定的

Posted on November 30, 2011 by lamppurl
Screen_20111130_121352

Posted in Uncategorized | Leave a comment

PDC: 圣经说,爱是个习惯

Posted on November 30, 2011 by lamppurl

PDC: 圣经说,爱是个习惯
PDC: 圣经说,爱是个习惯

   
Image002

The Bible Says Love Is a Habit 圣经说,爱是个习惯
by Rick Warren

“If you love those who love you, what credit is that to you? Even sinners love those who love them.” (Luke 6:32 NIV)

你们若单爱那爱你们的人,有什么可酬谢的呢?就是罪人也爱那爱他们的人。路加福音 6:32

If you only love on and off like a light switch, you do not love others like God wants you to love. Jesus said, “If you only love those who love you, what credit is that to you?” (Luke 6:32a NIV)

如果你的爱像电灯一样时开时关,那么你就没有按照神的心意去(活出�的)爱了。所以,耶稣这样说:“你们若单爱那爱你们的人,有什么可酬谢的呢?”(路加福音 6:32)

His point is this: All of us can love those who love us back. Becoming a master lover means you learn to love the unlovable � when you love people who don’t love you, when you love people who irritate you, when you love people who stab you in the back or gossip about you.

他的意思是:我们每个人都能做的,就是爱那些知恩图报的人。而你若想要成为一个有博爱之心的人,就得学着去爱那些不可爱的人。也就是,去爱那些不爱你的人,包括那些常常触怒你的人,或是那些在你背后指指点点、说长道短的人。

This may seem like an impossible task, and it is � that’s why we need God’s love in us, so we can then love others: “We know and rely on the love God has for us” (1 John 4:16a NIV).

如果这听上去有点象天方夜谭,那你其实是清醒的。因为,无私的付出爱,并且一味的坚持,这真的需要神的爱先充满我们的心。所以,圣经这样说:“神爱我们的心,我们也知道也信”(约翰一书 4:16)。

When you realize how much God loves you � with an extravagant, irresistible, unconditional love � then his love will change your entire focus on life. If we don’t receive God’s love for us, we’ll have a hard time loving other people. I’m talking about loving people who are unlovely, difficult, irritable, and those who are different or demanding.

当你认识到神对自己的爱有多么丰盛、多么的坚忍、多么的无私,那么�的爱就能改变你对生命的关注点。如果我们不去接受神给我们的爱,那么关爱他人就是一件太难太难的事。注意,这里我们说的仍然是爱那些不可爱的、满是困难的、易于激怒人的、与常人迥异的、常常不满足的人。

You can’t do that until you have God’s love coming through you. You need to know God’s love so it can overflow out of your life into others.

没有神的爱在你心里运行,这些就真的太难了。你必须去认识神的爱,这样你的心里才能充满�的爱,直到这爱开始满溢,涌流出来,进入他人的生命中。

Posted in Uncategorized | Leave a comment

Psalm 16:7

Posted on November 7, 2011 by lamppurl
I praise you, Lord , for being my guide. Even in the darkest night, your teachings fill my mind.

http://bible.us/Ps16.7.CEV

Posted in Uncategorized | Leave a comment

po4a for the translation of Perldoc

Posted on October 26, 2011 by lamppurl

To make a translation of perldoc, use the tool named po4a

[jjiang@fedora14 ~]$ pmvers Locale::Po4a::TransTractor

0.41

[jjiang@fedora14 ~]$ po4a-gettextize –help-format

List of valid formats:

  – dia: uncompressed Dia diagrams.

  – docbook: DocBook XML.

  – guide: Gentoo Linux’s XML documentation format.

  – ini: INI format.

  – kernelhelp: Help messages of each kernel compilation option.

  – latex: LaTeX format.

  – man: Good old manual page format.

  – pod: Perl Online Documentation format.

  – sgml: either DebianDoc or DocBook DTD.

  – texinfo: The info page format.

  – tex: generic TeX documents (see also latex).

  – text: simple text document.

  – wml: WML documents.

  – xhtml: XHTML documents.

  – xml: generic XML documents (see also docbook).

[jjiang@fedora14 ~]$ perldoc -l perlretut

/usr/share/perl5/pod/perlretut.pod

[jjiang@fedora14 ~]$ po4a-gettextize -f pod -m $(perldoc -l perlretut) | tee perlretut.po | wc -l

5155

[jjiang@fedora14 ~]$ vim perlretut.po

…

#. type: =head1

#: /usr/share/perl5/pod/perlretut.pod:1

msgid "NAME"

msgstr "名称"

#. type: textblock

#: /usr/share/perl5/pod/perlretut.pod:3

msgid "perlretut – Perl regular expressions tutorial"

msgstr "perlretut – Perl 正则表达式指南"

#. type: =head1

#: /usr/share/perl5/pod/perlretut.pod:5

msgid "DESCRIPTION"

msgstr "简介"

#. type: textblock

#: /usr/share/perl5/pod/perlretut.pod:7

msgid ""

"This page provides a basic tutorial on understanding, creating and using "

"regular expressions in Perl.  It serves as a complement to the reference "

"page on regular expressions L<perlre>.  Regular expressions are an integral "

"part of the C<m//>, C<s///>, C<qr//> and C<split> operators and so this "

"tutorial also overlaps with L<perlop/\"Regexp Quote-Like Operators\"> and "

"L<perlfunc/split>."

msgstr ""

"这篇文章用来介绍 Perl 正则表达式的解读、编写和使用方面的基础知识。相对于 L<perlre> 中的介绍来说,这篇文章更加侧重于提供一些增补知识。正则表达式,它是 C<m//>, C<s///>, C<qr//> 和 C<split> 这些操作符的主要兴趣所在,因此L<perlop/\"Regexp Quote-Like Operators\"> 和 L<perlfunc/split> 里面也有许多相关的描述。"

…

[jjiang@fedora14 ~]$ po4a-translate -k 0 -f pod -m $(perldoc -l perlretut) -p perlretut.po | less

Image001

Posted in Uncategorized | Leave a comment

Non-stop debugging of perl programs

Posted on October 21, 2011 by lamppurl
$ PERLDB_OPTS="NonStop frame=31" perl -dle 'sub abc { return $_[0] + 1 } print join qq(\t), abc(0), abc(1+2)'
Package -e.
in  @=main::abc(0) from -e:1
out @=main::abc(0) from -e:1
list context return from main::abc:
0  1
in  @=main::abc(3) from -e:1
out @=main::abc(3) from -e:1
list context return from main::abc:
0  4
1       4
Posted in Uncategorized | Leave a comment
← Older posts
Newer posts →
  • Recent Posts

    • Untitled
    • Wildlife park, Beijing
    • cidr2regexp.pl
    • Heartfelt man
    • 在 神我们的父面前,那清洁没有玷污的虔诚,就是看顾在患难中的孤儿寡妇,并且保守自己不沾染世俗。 http://bible.us/jas1.27.cunpss
  • Archives

    • April 2012
    • March 2012
    • February 2012
    • January 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • August 2010
  • Categories

    • Uncategorized
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.com
Joe Jiang's Blog
Theme: Twenty Ten Blog at WordPress.com.
Follow

Get every new post delivered to your Inbox.

Powered by WordPress.com