Archive for the ‘Software’ Category
-
A Morse Code Exchanger
-
在Ubuntu下使用Tor匿名访问互联网
任意地、不受限制地访问互联网,是我们一直追求的目标。在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 .
并注释掉:
logfile logfile
…
jarfile jarfile然后重启privoxy服务:
sudo /etc/init.d/privoxy restart
接下来在firefox里面安装foxyproxy插件。在Tor向导里面按照默认选项一路next即可。
另外需要注意的是,privoxy的端口是1881,tor的端口是9050。接着就可以配置白名单把我们需要匿名访问的网址敲进去即可。
最后,欢迎加入自由互联网一族!
参考文章:
-
How to use directly Reply-To in Outlook 2007
This function is necessary when you want to use one mailbox sending mails to some guys, while receiving their replys by another mailbox.
Commonly, there is an option to select Reply-To mailbox in the top of composing mail. But how could we do as the same thing in Outlook? Is it able to do this work?
An example figure for Thunderbird catched from webOf course 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.
In addtion, if you want to permanently change the Reply-To address, you may go into Tools –> Account Settings, and double click one of your mailbox setting. Then click “More Settings”, and you will see Reply Email text-box.
Enjoy your mailing!
-
Speed up Our Firefox Browser
So far as we know, Firefox is a powerful and easy-of-use web browser in the world. Althrough Chrome is becoming better and better, but without extension functions, Google Chrome will always be my second choice to use. Indeed, Chrome is much quicker than Firefox, while it spends more memory spaces for its SandBox model.
Recently, I saw an article talked about how to speed up firefox by editing some parameters in about:config. Let’s have a try!
Reduce the amount of RAM Firefox uses for its cache feature
1. Type “about:config” (no quotes) in the adress bar in the browser.
2. Find “browser.sessionhistory.max_total_viewer”
3. Set it’s value to “0“;(Zero)Increase the Speed at Which Firefox loads pages
1. Type “about:config” into the address bar and hit Enter.
2. Alter the entries 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 requests at once.
3. Lastly, right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0“;.(Zero)
This value is the amount of time the browser waits before it acts on information it receives. If you’re using a broadband connection you’ll load pages faster now.
Optionally (for even faster web browsing) here are some more options for your about:config (you might have to create some of these entries by Right Click –> New– > Interger or Stringnetwork.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 Firefox is minimized:
This little hack will drop Firefox’s RAM usage down to 10 Mb when minimized:
1. Open Firefox and go to the Address Bar. Type in about:config and then press Enter.
2. Right Click in the page and select New -> Boolean.
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 really faster a little bit than before. Great!
The original link is: http://www.dagorret.net/2009/03/25/a-handful-of-firefox-tweaks-that-will-double-your-browser-speed/
-
Hotmail opens pop3 port to worldwide people!
When I was surfing internet today, I found a big news: Hotmail has already opened its pop3 service to all over the world. Days before, we all knew hotmail opens pop3 for 11 countries like Brazil, UK, and so on. But today, as a user outside that countries, we are available to use that service!
Here are some configuration parameters:
username: yourname@hotmail.com
POP3 server: pop3.live.com
POP3 port: 995
Use SSL: Yes
SMTP: smtp.live.com
SMTP port:25
USE TLS/SSL:YesThat’s a big news for us to unify all mails into one mailbox. Certainly, Google Gmail is a best choice to do that!
Official blog about that news: http://mailcall.spaces.live.com/blog/cns!CC9301187A51FE33!50118.entry
-
技巧:在IE, Safari 上使用Foxmarks 书签同步扩展
从网上看到的一篇文章,对我很有用,相信很多人也都需要,转贴来,呵呵。
源地址:http://www.cnbeta.com/articles/76382.htm
这下子,我们可以同步IE、Firefox和Safari中的书签了。真正实现了书签“大一统”。不容易啊。
Foxmarks 原本是Firefox 上的书签同步扩展, 它可以将你的书签以及密码全部同步到服务器上, 就算重装或是换了电脑都不必担心书签遗失和密码忘记的问题.
来自Lifehacker的消息称, Foxmarks 已经开始支援其他浏览器IE, Safari. 这样就算换了电脑浏览器不是Firefox 也一样能同步到熟悉的书签.
Foxmarks 在IE, Safari 的浏览器上提供了和Firefox 基本相同的功能, 不过目前还是有一些变化的:
首先, 没有密码同步功能. 呃, 不过没有关系, 我们可以找Dropbox 的密码同步功能来解决这个问题.
另外, 你也不能同步到自己的服务器上去. 我们知道在Firefox 里是可以选择同步到自己搭建的服务器上的, 不过对大多数使用者来说, 这个功能还是很少用到的啦.
还有, 就是如果要和iPhone 同步书签的话, 必须使用Mac Safari. 不过当初使用Firefox 也不能同步啦, 所以这可以算是个新添的吧.
如果你想用Foxmarks 对IE, Safari 进行书签同步, 你可以到官网下载Foxmarks for IE, Safari(猛击这里下崽儿).
或请直接猛击图标下崽儿:
-
SMSVote @ BJTU 2008-11-30
昨天回到了母校交大,参与了一次交大校级的“百科知识竞赛”。由于这次竞赛上使用了本科时候和邱振生、王正韬一起开发的短信投票平台,所以倍感亲切。
交大没什么变化,虽然已经过去一年多了,这座有着百年历史的老校依然在这里默默地哺育着一代又一代的年轻人。唯一不同的是,在我看来,校园内稚嫩的面孔多了很多。自己当时也是那样子吧,每天生活无忧无虑的,不会太考虑自己今后所要承受的磨砺,而是享受校园悠然而快节奏的生活。
回到主题,谈谈自己的短信投票平台吧。去年在北大软院举办的十佳歌手大赛时候也使用了这样的平台,但不同的是,在北软当时只是使用了一块幻灯幕布,展示区域较小,没有体现出应有的效果;而在交大的天佑会堂里面,直接将投票幻灯投向大墙壁,效果很不错。
关于程序,是我们仨(软三工作室)在大三时候开发的。这其中还有一个小插曲:
最开始写的这个程序做了很多复杂的功能,比如一条短信可以分别给几个人投几票,一个手机号可以给几个选手投票,而这些投票的数量是可以接受控制的;另外系统也可以通过同一手机号同时接收短信短信投票与现场评论,最后还可以提供抽奖环节。这样一个系统,在开始的时候,我们做的并不好。每个30秒钟进行一次定时结果统计;同时如果收到短信以后也会自动刷新统计结果。这样,统计这个函数被大量调用。但一个可怕的问题是,我们的统计函数的时间复杂度是O(n3)……最开始票数少的时候还好,有一次组织方定了一个非常宽松的要求,每个人可以投十票。虽然只是一个院级的活动,但是收到了将近10000票。10000的三次方……每隔半秒钟不到(接收一条短信的时间间隔)就要刷新这么一下次,系统当时就崩溃了。
后来我们改进了算法,利用空间换取时间,把已经收到的进入了数据库的统计都存在内存中,每次投票统计只是刷新新进入的投票。这样,问题就迎刃而解,时间复杂度也降到了O(1)。压力测试后,接受20万条短信没问题(再大的就没有测试过了)。
面对自己亲手做成功的产品,心里还是很高兴的,毕竟所学的东西没有白学。设计模式、算法与程序设计、.NET应用程序设计……不得不说,交大的很多本科课程开的非常好。赞一下。
下一次回交大,不知啥时候了。但心情都不会平静,这是我的母校,这里有我很多最好的朋友。
-
在OpenSolaris下通过Pidgin使用QQ
前一阵子,我在自己的博客上发表了如何在Solaris下编译QQ。但是对于OpenSolaris来说,相对而言就麻烦了一些,因为一些基础编译包包含的不全。但是,我们应该看到一点,那就是OpenSolaris与Solaris Nevada使用的同一内核。这也就是说,通过Solaris Nevada编译好的QQ插件,是可以用到OpenSolaris上的。
所以我又重新在Solaris上编译了最新版本的pidgin,并得到了QQ的插件。对于OpenSolaris来讲(我使用的是即将发布的OpenSolaris 2008.11的RC2测试版),直接将里面的文件复制到 ~/.purple/plugins 目录下就可以了。当然,plugins这个目录在初始状态下并不存在。如果想让这项功能适用于所有用户,则可以将文件复制到 /usr/lib/purple-2 目录下。
随后就可以顺利使用喽!很简单吧?
使用OpenSolaris的朋友们赶紧下载这个QQ插件吧:libqq-pidgin-2.5.2.tar.gz
另外我也在尝试编译fetion插件。不过现在在makefile这块出现了点问题。如果大家谁能够编译了fetion插件,也拿出来和大家分享一下啊。呵呵。
– Paul
-
在Solaris下利用pidgin上QQ
今天终于在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修改configure文件
主要目的是由于Solaris中,xgettext和msgfmt两个命令没有–version选项。所以将20180行附近的(pidgin2.4.3版本)如下几句注释掉:
if test –z “$xgversion” –o –z “$mmversion” –o –z “$mfversion”; then
{ { echo “$as_me:$LINENO: error: GNU gettext tools not found; required for intltool” >&5
echo “$as_me: error: GNU gettext tools not found; required for intltool” >&2;}
{ (exit 1); exit 1; }; }
fi注释的方法就是在句首加上#就可以了。
编译过程
执行如下命令:
# configure –prefix=/opt/pidgin-pengfei –disable-gtkspell –disable-meanwhile –disable-nm –disable-perl
成功后,再执行下面的编译命令:
# gmake
# gmail install应该能够一切顺利的执行。
运行过程
执行:
# /opt/pidgin-pengfei/bin/pidin &
即可。
有了自己编译后的版本,就可以同时上QQ、MSN和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
Paul’s Online Services
Dynamic Tag Cloud
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Recent Posts
- AIX Storage Learning 1
- 春节快乐! Happy Spring Festival!
- Sun is to the end of life
- 为cos-html-cache插件增加页面(Page)、标签(Tag)和分类(Category)的静态化功能
- How to configure Subversion in OpenSolaris
- 转载:IIS FastCGI PHP 环境下搭建 WordPress
- 在OpenSolaris下动态绑定域名
- Goodbye 2009, Hello 2010
- This Is It
- A Morse Code Exchanger
Recent Comments
- 新视界 (New Vision) » 在OpenSolaris下动态绑定域名 on 使用ZFS打造家庭廉价数据中心
- paul on Wordpress数据库转移网址变换的方法
- 知识 on Wordpress数据库转移网址变换的方法
- WP Super Cache V0.98 and IIS7 « Anders Heie on Speed up your WordPress Blog on IIS 7 by using WP-Super-Cache
- 博沈 on This Is It
- paul on 使用ZFS打造家庭廉价数据中心
- Anonymous on OpenSolaris 上的 Samba 服务器
- Anonymous on 使用ZFS打造家庭廉价数据中心
- Anonymous on OpenSolaris 上的 Samba 服务器
- Paul on 十年前和十年后的我们