Archive for the ‘Software’ Category

  • A Morse Code Exchanger

    Date: 2009.11.08 | Category: Software | Response: 0

    • Share/Bookmark
  • 在Ubuntu下使用Tor匿名访问互联网

    Date: 2009.06.03 | Category: Learn from Others, Software | Response: 0

    任意地、不受限制地访问互联网,是我们一直追求的目标。在windows下,我们可以通过一些免费的VPN代理,Google App Proxy等等来实现自由访问。但在Ubuntu下面,上述这些windows程序软件都不能使用了。不过我们可以使用Tor来代替它们。

    如果用的是Ubuntu 9.04,那么先要加入如下源:

    deb http://mirror.noreply.org/pub/tor etch main
    deb-src http://mirror.noreply.org/pub/tor etch main

    然后再刷新它们:

    sudo apt-get update

    由于Ubuntu 9.04默认源中已经删除了Tor,所以我们只好加入第三方源。

    然后执行安装:

    sudo apt-get install tor

    另外一个软件privoxy也随着tor的安装而安装了。接下来我们配置一下,打开/etc/privoxy/config,在最前面加上:

    forward-socks4a / localhost:9050 .

    并注释掉:

    log­file log­file

    jar­file jarfile

    然后重启privoxy服务:

    sudo /etc/init.d/privoxy restart

    接下来在firefox里面安装foxyproxy插件。在Tor向导里面按照默认选项一路next即可。

    另外需要注意的是,privoxy的端口是1881,tor的端口是9050。接着就可以配置白名单把我们需要匿名访问的网址敲进去即可。

    最后,欢迎加入自由互联网一族!

     

    参考文章:

    • Share/Bookmark
  • How to use directly Reply-To in Outlook 2007

    Date: 2009.04.10 | Category: Microsoft, Software | Response: 0

    This fun­ction is nece­ssary when you want to use one mai­lbox sen­ding mails to some guys, while receiving their replys by ano­ther mailbox.

    Commonly, there is an option to select Reply-To mai­lbox in the top of compo­sing mail. But how could we do as the same thing in Outlook? Is it able to do this work?

    image An exa­mple figure for Thun­der­bird catched from web

    Of cou­rse the answer is true. There is a button named “Direct Replies To” in Options Tab. You may click that button to enter into “Message Options” and modify the field you need.

    image

    In addtion, if you want to per­ma­nen­tly change the Reply-To add­ress, you may go into Tools –> Account Settings, and dou­ble click one of your mai­lbox setting. Then click “More Settings”, and you will see Reply Email text-box.

    image

    Enjoy your mailing!

    • Share/Bookmark
  • Speed up Our Firefox Browser

    Date: 2009.04.02 | Category: Software, Web Front-end | Response: 3

    So far as we know, Fire­fox is a power­ful and easy-of-use web bro­wser in the world. Alth­rough Chrome is beco­ming better and better, but without exten­sion fun­ctions, Goo­gle Chrome will always be my second choice to use. Indeed, Chrome is much qui­cker than Fire­fox, while it spends more memory spa­ces for its San­dBox model.

    Recen­tly, I saw an arti­cle talked about how to speed up fire­fox by edi­ting some para­me­ters in about:config. Let’s have a try!

    Reduce the amount of RAM Fire­fox uses for its cache fea­ture

    1. Type “about:config” (no quo­tes) in the adress bar in the bro­wser.
    2. Find “browser.sessionhistory.max_total_viewer”
    3. Set it’s value to “0“;(Zero)

    Inc­rease the Speed at Which Fire­fox loads pages

    1. Type “about:config” into the add­ress bar and hit Enter.
    2. Alter the ent­ries as follows:
    Set “network.http.pipelining” to “true”
    Set “network.http.proxy.pipelining” to “true”
    Set “network.http.pipelining.maxrequests” to some number like 10.

    This means it will make 10 reque­sts at once.

    3. Lastly, right-click anywhere and select New-> Inte­ger. Name it “nglayout.initialpaint.delay” and set its value to “0“;.(Zero)

    This value is the amount of time the bro­wser waits before it acts on info­r­ma­tion it receives. If you’re using a broa­dband con­ne­ction you’ll load pages faster now.
    Optio­na­lly (for even faster web bro­wsing) here are some more options for your about:config (you might have to create some of these ent­ries by Right Click –> New– > Inter­ger or String

    network.dns.disableIPv6: set “false”
    “content.notify.backoffcount”: set “5“; (Five)
    “plugin.expose_full_path”: set “true”.
    “ui.submenuDelay”: set “0; (zero)

    Reduce RAM usage to 10MB when Fire­fox is mini­mi­zed:

    This little hack will drop Firefox’s RAM usage down to 10 Mb when minimized:

    1. Open Fire­fox and go to the Add­ress Bar. Type in about:config and then press Enter.
    2. Right Click in the page and select New -> Boo­lean.
    3. In the box that pops up enter “config.trim_on_minimize”. Press Enter.
    4. Now select True and then press Enter.
    5. Restart Firefox.

    That’s all! After my trying, I think it rea­lly faster a little bit than before. Great!

    The ori­gi­nal link is: http://www.dagorret.net/2009/03/25/a-handful-of-firefox-tweaks-that-will-double-your-browser-speed/

    • Share/Bookmark
  • Hotmail opens pop3 port to worldwide people!

    Date: 2009.03.13 | Category: Learn from Others, Software | Response: 0

    When I was sur­fing inter­net today, I found a big news: Hotmail has already ope­ned its pop3 service to all over the world. Days before, we all knew hotmail opens pop3 for 11 coun­t­ries like Bra­zil, UK, and so on. But today, as a user outside that coun­t­ries, we are avai­la­ble to use that service!

    Here are some con­fi­gu­ra­tion parameters:

    user­name: yourname@hotmail.com
    POP3 server: pop3.live.com
    POP3 port: 995
    Use SSL: Yes
    SMTP: smtp.live.com
    SMTP port:25
    USE TLS/SSL:Yes

    That’s a big news for us to unify all mails into one mai­lbox. Cer­tainly, Goo­gle Gmail is a best choice to do that!

    Offi­cial blog about that news: http://mailcall.spaces.live.com/blog/cns!CC9301187A51FE33!50118.entry

    • Share/Bookmark
  • 技巧:在IE, Safari 上使用Foxmarks 书签同步扩展

    Date: 2009.02.06 | Category: Software, Web Front-end | Response: 0

    从网上看到的一篇文章,对我很有用,相信很多人也都需要,转贴来,呵呵。

    源地址:http://www.cnbeta.com/articles/76382.htm

    这下子,我们可以同步IE、Firefox和Safari中的书签了。真正实现了书签“大一统”。不容易啊。

    Foxma­rks 原本是Fire­fox 上的书签同步扩展, 它可以将你的书签以及密码全部同步到服务器上, 就算重装或是换了电脑都不必担心书签遗失和密码忘记的问题.
    来自Life­ha­cker的消息称, Foxma­rks 已经开始支援其他浏览器IE, Safari. 这样就算换了电脑浏览器不是Fire­fox 也一样能同步到熟悉的书签.

    http://i448.photobucket.com/albums/qq206/dingstyle/foxmarks_ie_splash.png
    Foxma­rks 在IE, Safari 的浏览器上提供了和Fire­fox 基本相同的功能, 不过目前还是有一些变化的:
    首先, 没有密码同步功能. 呃, 不过没有关系, 我们可以找Dro­pbox 的密码同步功能来解决这个问题.
    另外, 你也不能同步到自己的服务器上去. 我们知道在Fire­fox 里是可以选择同步到自己搭建的服务器上的, 不过对大多数使用者来说, 这个功能还是很少用到的啦.
    还有, 就是如果要和iPhone 同步书签的话, 必须使用Mac Safari. 不过当初使用Fire­fox 也不能同步啦, 所以这可以算是个新添的吧.
    如果你想用Foxma­rks 对IE, Safari 进行书签同步, 你可以到官网下载Foxma­rks for IE, Safari(猛击这里下崽儿).
    或请直接猛击图标下崽儿:
    Download Foxmarks for Internet Explorer Download Foxmarks for Safari

    • Share/Bookmark
  • SMSVote @ BJTU 2008-11-30

    Date: 2008.12.01 | Category: BJTU, Programming Language, Software | Response: 0

    昨天回到了母校交大,参与了一次交大校级的“百科知识竞赛”。由于这次竞赛上使用了本科时候和邱振生、王正韬一起开发的短信投票平台,所以倍感亲切。

    交大没什么变化,虽然已经过去一年多了,这座有着百年历史的老校依然在这里默默地哺育着一代又一代的年轻人。唯一不同的是,在我看来,校园内稚嫩的面孔多了很多。自己当时也是那样子吧,每天生活无忧无虑的,不会太考虑自己今后所要承受的磨砺,而是享受校园悠然而快节奏的生活。

    回到主题,谈谈自己的短信投票平台吧。去年在北大软院举办的十佳歌手大赛时候也使用了这样的平台,但不同的是,在北软当时只是使用了一块幻灯幕布,展示区域较小,没有体现出应有的效果;而在交大的天佑会堂里面,直接将投票幻灯投向大墙壁,效果很不错。

    DSC00352 DSC00354

    关于程序,是我们仨(软三工作室)在大三时候开发的。这其中还有一个小插曲:

    最开始写的这个程序做了很多复杂的功能,比如一条短信可以分别给几个人投几票,一个手机号可以给几个选手投票,而这些投票的数量是可以接受控制的;另外系统也可以通过同一手机号同时接收短信短信投票与现场评论,最后还可以提供抽奖环节。这样一个系统,在开始的时候,我们做的并不好。每个30秒钟进行一次定时结果统计;同时如果收到短信以后也会自动刷新统计结果。这样,统计这个函数被大量调用。但一个可怕的问题是,我们的统计函数的时间复杂度是O(n3)……最开始票数少的时候还好,有一次组织方定了一个非常宽松的要求,每个人可以投十票。虽然只是一个院级的活动,但是收到了将近10000票。10000的三次方……每隔半秒钟不到(接收一条短信的时间间隔)就要刷新这么一下次,系统当时就崩溃了。

    后来我们改进了算法,利用空间换取时间,把已经收到的进入了数据库的统计都存在内存中,每次投票统计只是刷新新进入的投票。这样,问题就迎刃而解,时间复杂度也降到了O(1)。压力测试后,接受20万条短信没问题(再大的就没有测试过了)。

    面对自己亲手做成功的产品,心里还是很高兴的,毕竟所学的东西没有白学。设计模式、算法与程序设计、.NET应用程序设计……不得不说,交大的很多本科课程开的非常好。赞一下。

    下一次回交大,不知啥时候了。但心情都不会平静,这是我的母校,这里有我很多最好的朋友。

    • Share/Bookmark
  • 在OpenSolaris下通过Pidgin使用QQ

    Date: 2008.11.26 | Category: Operating System, Software, Sun | Response: 3

    前一阵子,我在自己的博客上发表了如何在Solaris下编译QQ。但是对于OpenSolaris来说,相对而言就麻烦了一些,因为一些基础编译包包含的不全。但是,我们应该看到一点,那就是OpenSolaris与Solaris Nevada使用的同一内核。这也就是说,通过Solaris Nevada编译好的QQ插件,是可以用到OpenSolaris上的。

    所以我又重新在Solaris上编译了最新版本的pidgin,并得到了QQ的插件。对于OpenSolaris来讲(我使用的是即将发布的OpenSolaris 2008.11的RC2测试版),直接将里面的文件复制到 ~/.purple/plugins 目录下就可以了。当然,plu­gins这个目录在初始状态下并不存在。如果想让这项功能适用于所有用户,则可以将文件复制到 /usr/lib/purple-2 目录下。

    随后就可以顺利使用喽!很简单吧?

    使用OpenSolaris的朋友们赶紧下载这个QQ插件吧:libqq-pidgin-2.5.2.tar.gz

    另外我也在尝试编译fetion插件。不过现在在makefile这块出现了点问题。如果大家谁能够编译了fetion插件,也拿出来和大家分享一下啊。呵呵。

    – Paul

    • Share/Bookmark
  • 在Solaris下利用pidgin上QQ

    Date: 2008.07.31 | Category: Operating System, Software, Sun | Response: 2

    今天终于在Solaris下编译成功了pidgin,可以不用virtualbox启个虚拟机再开QQ了。真是不容易啊!~~~
    分享一下经验,不过如果转载,请注明出处:来自http://www.techwork.cn/。谢谢。

    准备工作

    下载pidgin最新版本

    可以参考:http://www.gaimcn.com/download.html

    解压缩pidgin

    执行下面的语句:

    # bunzip2 pidgin-2.2.2.tar.bz2
    # tar xvf pidgin-2.2.2.tar
    # cd pidgin-2.2.2

    准备GCC编译器

    Solaris10以后,gcc缺省安装在/usr/sfw/bin目录下。因此,只需要设置好环境变量即可:

    # PATH=/usr/sfw/bin:/usr/ccs/bin:$PATH
    # export PATH

    修改con­fi­gure文件

    主要目的是由于Solaris中,xgettext和msgfmt两个命令没有–version选项。所以将20180行附近的(pidgin2.4.3版本)如下几句注释掉:

    if test –z “$xgver­sion” –o –z “$mmver­sion” –o –z “$mfver­sion”; then
    { { echo “$as_me:$LINENO: error: GNU gettext tools not found; requi­red for intltool” >&5
    echo “$as_me: error: GNU gettext tools not found; requi­red for intltool” >&2;}
    { (exit 1); exit 1; }; }
    fi

    注释的方法就是在句首加上#就可以了。

    编译过程

    执行如下命令:

    # con­fi­gure –prefix=/opt/pidgin-pengfei –disable-gtkspell –disable-meanwhile –disable-nm –disable-perl

    成功后,再执行下面的编译命令:

    # gmake
    # gmail install

    应该能够一切顺利的执行。

    运行过程

    执行:

    # /opt/pidgin-pengfei/bin/pidin &

    即可。

    有了自己编译后的版本,就可以同时上QQMSN和Gtalk了。

    参考的网站资料:

    http://blogs.sun.com/mishuang/entry/how_to_use_qq_with

    http://wiki.developers.sun.com.cn/index.php/Solaris%E4%B8%8B%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85gcc%E7%BC%96%E8%AF%91%E5%99%A8%3F

    http://hi.baidu.com/i0n_p/blog/item/d96b6308ca2bfb900a7b82fa.html

    • Share/Bookmark

Paul’s Online Services

Dynamic Tag Cloud

Recent Posts

Recent Comments

Tags

2008.11.Trip-of-GuangXi ASP.net C++ China Chrome css dotNet FCGuoAn Firefox Football gmail IBM IE IIS IT Association Joke Microsoft music mysql NLP Nokia ntfs NumPy OpenSolaris open source Open Team php pidgin PKUSS Python Python Challenge qq Samba SciPy Learning shell solaris SQL SUN Thunderbird Travel web host Win 7 WordPress X11 zfs