1 / 3
Caption Text
2 / 3
Caption Two
3 / 3
Caption Three margin testing

Thursday, December 17, 2009

SocksCap代理使用教程

SocksCap代理使用教程-月光博客

  很多使用SSH的用户都会遇到这样的问题,为什么我已经设置了socks代理,还设置了OpenDNS,怎么还是上不了Facebook,这就涉及到DNS污染技术,需要用户使用远程解析域名的方法才能访问目标网站。

  对于Firefox来说,远程解析域名的设置非常简单,只要在about:config修改network.proxy.socks_remote_dns=true就可以了。但对于IE和其他软件来说,就没有类似的修改方法,需要使用一个名为SocksCap的代理软件来解决这个问题。

  SocksCap是一个通过Socks代理连接网络的代理服务器第三方支持软件,拥有功能强大的Socks调度,所有Windows应用(如IE、Firefox、QQ、FTP等)都可以使用这个Socks代理工具通过Socks代理服务器上网,即使不支持Socks代理的应用也可以用Socks代理上网。

  首先下载安装SocksCap,安装结束后,运行SocksCap,出现如下图所示界面,这时候需要进行一些配置工作,选择菜单File - Settings。

SocksCap代理

  在Socks Server中填入Socks代理的IP地址:127.0.0.1,在Port项中填入代理端口:1080;Protocol选择Socks5项,选中Resolve all names remot,点击"确定"。

SocksCap代理

  接下来要做的便是把应用程序加入到SocksCap中。点File - New选项就可以出现如下图窗口。

SocksCap代理

  点Browse浏览选择应用程序,如IE等应用的EXE文件,其他选择默认,点"OK"就可以完成配置。

  更简便的操作方法是将应用程序的快捷图标拖入主窗口中既可,然后鼠标右键会显示"New application profile",给这个应用命名,然后给出要运行的程序和工作目录,点"OK"设置生效。

  这时候的SocksCap主界面会如下图所示,列出一系列应用程序的图标。

SocksCap代理

  双击SocksCap主界面的应用程序图标,即可通过SocksCap运行应用程序。若双击桌面上的应用程序,则为不使用代理运行程序。

  总体来说,SocksCap代理的目的是把一些不支持socks的代理的软件在进行网络通信的时候的数据全部转化成socks代理数据,然后再通过代理出去。对于IE来说,不需要在IE里面做任何配置,只要从SocksCap中运行IE就可以支持Socks代理。

Wednesday, December 16, 2009

Review: 3 top Linux distros go for different users

Review: 3 top Linux distros go for different users

Fedora, openSUSE and Ubuntu Linux desktops may look alike, but they've got some important distinctions.
Steven J. Vaughan-Nichols

December 16, 2009 (Computerworld) At first glance, there's little to differentiate between the latest releases of the top Linux distributions: Red Hat's Fedora 12, Novell's openSUSE 11.2 and Canonical's Ubuntu 9.10. They each use the latest releases of open-source applications and are based on recent Linux kernels. Each of the distros also includes open-source applications such as OpenOffice and Firefox. However, a closer look reveals real differences -- in fact, each is meant for a different audience.

Underneath the hood, each of the three uses the 2.6.31 Linux kernel, but above that, their differences begin to surface. Fedora and Ubuntu, for example, use GNOME 2.28 (the latest version) for their default desktop, while openSUSE uses KDE 4.3.1.

(略......)

Conclusions

If you're a Linux expert, Fedora is for you. If you just want a good, general-purpose desktop for home or work, then openSUSE is your best pick. And if you're new to Linux, and your computer gets along well with Ubuntu, Ubuntu is still a good choice.

Friday, December 11, 2009

Old School Browsing with w3m

Old School Browsing with w3m | Linux Magazine

Not to sound like a Luddite, but sometimes the old ways are best. When it comes to Web browsers, that's not very often, but knowing your way around a text-mode browser like w3m does come in handy from time to time. You probably won't want to switch, but after taking a look at what you can do with w3m, you might want to add it to your toolbox.

Generally, I focus on the cutting edge goodies for the Web, but this week I spent some time with w3m after a long hiatus and thought it might be fun to take a step back and look at the old school Web. I needed to convert a page of HTML to text on the fly, and one of the best tools I've found for that is w3m. It's also a pretty good, if extremely basic, Web browser if all you need to do is read pages on the Web.

Why muck with a text-mode browser? Certainly not because it's full-featured. Firefox, Chrome, Konqueror, or Opera, any other modern browser will get you more bang for the buck than w3m — though w3m's rendering speed is pretty impressive. But w3m has a few features that you won't find in other browsers that make it worth having around.

Checking Site Design

Your site may look picture-perfect in your favorite browser, but what about all the other browsers that you haven't had time to test? Does it degrade nicely for people on less functional mobile browsers? While the percentage of visitors who hit your site with less-functional browsers may be small, it's still important to make sure that the site is usable.

Throughout the life of a Web site, it's a good idea to occasionally fire up a text-mode browser like w3m and see what the experience is like when trying to read and navigate the site in a browser that's not equipped for fancy CSS layouts or JavaScript functions.

Browser of Last Resort

It has happened, albeit rarely, that I needed a way to get online when it wasn't possible to get to one of the GUI browsers. Either because X was broken, or when working at a server and needing to get to a download without X installed at all. You'll find w3m comes in very handy indeed when having to browse to a site and grab a file or files from the console.

It doesn't happen often, but I find about once or twice a year that I need to roll out w3m in a situation where Firefox or other GUI browsers just aren't available.

Converting HTML to Text

While using w3m for troubleshooting doesn't come up too often, it's not uncommon that I need to convert something in HTML to plain text — and I've found that w3m is a really handy tool to do so. Even on some complex pages, w3m has been good at converting HTML to usable text.

It's very easy to do, too. You can try it by running w3m -dump -T text/html filename.html > filename.txt. If you're converting an online document, simply replace the filename with the URL.

Scripting

Where w3m really shines is scripting. Which is to say, if you need a browser that can easily be used from a script, w3m is far superior to Firefox or any other GUI mode browser.

For instance, if you wanted to have a quick and dirty way to monitor a Web site, you could knock up a short script that would call w3m, check the content of the page, and then either exit quietly if all is well, or send a message to the person on-call to make sure that everything is up and running smoothly.

Using w3m

Getting w3m shouldn't be a problem. You should find w3m as part of the default installs of many Linux distros, and it should certainly be packaged up for all popular major distros these days.

If started without an argument, w3m will just display its help file, so you'll want to tell w3m what site or file to start with if you're browsing the Web:

w3m http://www.linux-mag.com/

Once you're in w3m, you'll need to know a few basic commands to navigate the Web. w3m uses standard Vim movement keys to move around a page, so l will move the cursor to the right, k will move up, j will move down, and h moves to the left.

To scroll more quickly, hit the Space bar, and to scroll backwards quickly through a page, hit b. To go back through your browsing history use the left arrow key or B.

The Tab key will put the cursor on the next hyperlink on the page (if there is one), and Shift-Tab will move backwards to the next hyperlink.

To follow a link, just hit Enter when you're on the link. If you want to type in a URL, type g and w3m will prompt you for the URL.

If you want to get to w3m's help, just hit H or ?, which should be pretty easy to remember.

Found a page you want to bookmark? Type a to add it to your bookmarks, and v to view bookmarks.

Finally, to exit w3m hit q and you'll be prompted to answer whether you're sure or not you want to exit. If you want to skip that, hit Q to skip the prompt.

I wouldn't want to spend all my time browsing the Web using w3m, but it does prove useful in a pinch.

Joe 'Zonker' Brockmeier is an editor-at-large for Linux Magazine and the openSUSE Community Manager for Novell. His blog is at zonker.opensuse.org.

Thursday, December 10, 2009

2009 年终 Google Zeitgeist 中国

Google:Zeitgeist 2009

从娱乐明星到商业商户,从股票信息到网络游戏,从3G是什么的追问到《建国大业》《窃听风云》,如果今天的你还把网络与现实截然隔离的话,那么你已经"奥特曼"了。搜索与网络正在像空气与水一样将我们包围。每一个用户因为不同的需求,不断的输入着各种各样的搜索关键词,而这些关键词汇聚成河流就成为了你的网络ID。"年年岁岁花相似,岁岁年年人不同",当2009年接近尾声的时候,让我们来共同回望"中国2009 "的网络印记,"3G"与"创业板","杯具"与"奥特曼","小沈阳"与"周立波","曾轶可"与"李宇春"哪一个背后不包含着一段"2009年中国"特有的网络故事呢?那么下面就让我们一起走进这些故事中去吧!

上升最快

  1. 周立波
  2. 斗罗大陆
  3. 潜伏
  4. 走西口
  5. 许宗衡
  6. Renren
  7. 变形金刚2
  8. 武林英雄
  9. 国庆阅兵
  10. dnf官网

最受欢迎名人

  1. 小沈阳
  2. 张筱雨
  3. 刘德华
  4. 迈克尔 杰克逊
  5. 周杰伦
  6. 刘亦菲
  7. 曾轶可
  8. 张柏芝
  9. 章子怡
  10. 李 宇 春

最受欢迎游戏

  1. Dnf(地下城与勇士)
  2. 魔兽世界
  3. 穿越火线
  4. 传奇
  5. 连连看
  6. qq 炫舞
  7. 魔域
  8. 梦幻西游
  9. qq飞车
  10. 热血三国

最常被问到的"为什么"

  1. 六个为什么
  2. 人为什么活着
  3. 为什么要入党
  4. 犹太人为什么优秀
  5. 为什么要结婚
  6. 你为什么说谎
  7. 为什么会磨牙
  8. 为什么喜欢你
  9. 为什么会打嗝
  10. 为什么会耳鸣

最受欢迎

  1. 百度
  2. uusee
  3. 淘宝网
  4. 开心网
  5. 优酷
  6. 校内网
  7. qq
  8. 163
  9. 土豆 网
  10. Sina

最受欢迎电影

  1. 色戒
  2. 建国大业
  3. 变形金刚 2
  4. 南京 南京
  5. 赤壁
  6. 风声
  7. 画皮
  8. 色即是空
  9. 窃听风云
  10. 古惑仔

上升最快股票

  1. 中国平安(601318)
  2. 武钢股份(600005)
  3. 中信证券(600030)
  4. 宝钢股份(600019)
  5. 中国远洋(601919)
  6. 紫金矿业(601899)
  7. 民生银行(600016)
  8. 中国石化(600028)
  9. 中国铝业(601600)
  10. 中金黄金(600489)

最常被问到的"是什么"

  1. wifi是什么
  2. erp是什么
  3. twitter是什么
  4. 什么是3g
  5. facebook是什么
  6. skype是什么
  7. vpn是什么
  8. 什么是寿司
  9. 幸福是什么
  10. sap是什么

Wednesday, December 9, 2009

How to reset my WordPress admin password?

How to reset my WordPress admin password?

You have to do this through the WordPress database directly. The most convenient way to manage the database is via the phpMyAdmin tool at your web hosting account.

Once in phpMyAdmin select the WordPress database from the drop-down menu on the left. The page will refresh and the database's tables will be displayed on it. Open the SQL tab (look at the top navigation bar).

In the text field write the following SQL query:

UPDATE `wp_users` SET `user_pass` = MD5( 'new_password_here' ) WHERE `wp_users`.`user_login` = "admin_username";

"new_password_here" - replace this with the new password you wish to use.
"admin_username" - replace this with the username the password should be updated for.

Once you are ready, click on the GO button to submit the query. If everything goes fine without errors, you should be able to login to WordPress with the new password.

If you have problems resetting the password yourself, ask your host for assistance. SiteGround provides the best WordPress hosting and such requests are handled with ease.

How to Move WordPress Blog to New Domain or Location

How to Move WordPress Blog to New Domain or Location » My Digital Life

For blogger who self-hosts the WordPress blog publishing system on a web hosting server with own registered domain name, sometimes, you may decide to reorganize the blog link URL to make it tidier or to reflect new focus or theme of the blog. If you decide to change the URL or link location of your WordPress blog due to changing of domain name (such as from http://www.old-domain.com/ to http://www.new-domain.com/) or the blog to another directory location (such as from http://www.domain.com/ to http://www.domain.com/blog/), there are some steps that should be done to ensure the proper migration and no breaking links.

The tricky part when moving WordPress blog to another location is that WordPress is using absolute path in URL link instead of relative path in URL link location when stores some parameters in database. Within blog posts' contents itself, users may also use the old URLs when creating reference backlinks. All these values in the database will need to be changed when WordPress is moved. The following guide will show you which database fields that has references or values related to blog's URLs that you want to modify. Note that this guide is not about how to move WordPress blog from one server or host to another new hosting service.

Once the blog has been moved (all files copy over in case of moving location or server or new domain name properly propagated across Internet for new domain name), the first thing to change is to tell WordPress the new blog location (wp-config.php should be no changes, and .htaccess file should be also no changes. If for some reason mod_rewrite rules for friendly URLs no longer works, you can always regenerate the .htaccess file via WP Administration's Update Permalinks page). This value can be changed via WordPress Options page, but if you no longer able to access to old blog URL, you have to modify the value via MySQL database.

Note: The guide uses SQL statements based on MySQL replace() function to modify the database. To run SQL queries, login to MySQL database that houses WordPress tables via phpMyAdmin or loginto the DB server and run MySQL client as root.

To update WordPress options with the new blog location, use the following SQL command:

UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. The URL values in this field are stored as absolute URLs instead of relative URLs, so it needs to be changed with the following SQL query:

UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');

If you have linked internally within blog posts or pages with absolute URLs, these links will point to wrong locations after you move the blog location. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages:

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

Browse through WordPress blog to check if everything is okay. You also need to re-login to WP Administration as authentication cookie has now became invalid due to different domain.

Featured Post

Windows和Ubuntu双系统完全独立的安装方法

http://www.ubuntuhome.com/windows-and-ubuntu-install.html  | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...