Monday, October 31, 2011
Petman robot soldier shows off with push-ups
Friday, October 28, 2011
GoAccess - Visual apache/Nginx log analyzer
Essentially, the way GoAccess works is that it will parse the well-known Apache access log file, from there, GoAccess will collect data from the parsed log and it will display it to the console or the X terminal. The collected information or generated reports will be displayed to the user/sysadmin in a visual/interactive window. Reports include:
General Statistics, bandwidth etc.
Top Visitors
Requested files
Requested static files, images, swf, js, etc.
Referrers URLs
404 or Not Found
Operating Systems
Browsers and Spiders
Hosts, Reverse DNS, IP Location
HTTP Status Codes
Referring Sites
Keyphrases
Different Color Schemes
Unlimited log file size
Log format…
GoAccess can parse both of Apaches' log formats, the Common Log Format (CLF) and the Combined Log Format (XLF/ELF), including virtual host. It is possible to parse Nginx as well. (if configured with the standard Apache log format)
Install GoAccess on ubuntu
sudo apt-get install goaccess
Using goaccess
You have to make sure apache or nginx is installed and configured for websites access.
Usage:
goaccess [ -b ][ -s ][ -e IP_ADDRESS][ - a ] <-f log_file >
The following options can also be supplied to the command:
-f - Path to input log file.
-b - Enable total bandwidth consumption.
For faster parsing, don't enable this flag.
-s - Enable HTTP status codes report.
For faster parsing, don't enable this flag.
-a - Enable a List of User-Agents by host.
For faster parsing, don't enable this flag.
-e - Exclude an IP from being counted under the
HOST module. Disabled by default.
Goaccess Examples
The simplest and fastest usage would be:
# goaccess -f access.log
That will generate an interactive text-only output.
To generate full statistics we can run GoAccess as:
# goaccess -f access.log -a -s -b
The -a flag indicates that we want to process an agent-list for every host parsed. The -s flag tells
GoAccess go get every HTTP status code. The -b flag will process the total bandwidth consumption for
files, hosts, and dates.
Now if we want to add more flexibility to GoAccess, we can do a series of pipes. For instance:
If we would like to process all access.log.*.gz we can do:
# zcat access.log.*.gz | goaccess
OR
# zcat -f access.log* | goaccess
Another useful pipe would be filtering dates out of the Apache's access log
The following will get all HTTP requests starting on 05/Dec/2010 until the end of the file.
# sed -n '/05\/Dec\/2010/,$ p' access.log | goaccess -s -b
If we want to parse only a certain time-frame from DATE a to DATE b, we can do:
sed -n '/5\/Nov\/2010/,/5\/Dec\/2010/ p' access.log | goaccess -s -b
Note that this could take longer time to parse depending on the speed of sed.
Also, it is worth pointing out that if we want to run GoAccess at lower priority, we can run it as:
# nice -n 19 goaccess -f access.log -s -a -b
and if you don't want to install it on your server, you can still run it from your local machine:
# ssh user@server 'cat /var/log/apache2/access.log' | goaccess -s -a -b
Thursday, October 27, 2011
Dell offers machines with ubuntu linux in 220 chinese stores
TIN BOX FLOGGER Dell has rolled out machines preloaded with Ubuntu Linux to 220 retail stores in China.
Dell might have scaled back its Ubuntu Linux offerings in the west but in China - the market that really matters - the firm is rolling out a range of machines running Ubuntu in 220 stores. Unlike its solitary US web-store offering, Dell presents Chinese punters with a range of Ubuntu Linux systems and better still the firm said its staff will promote the benefits of Ubuntu Linux to consumers.
Canonical and Dell announced that they were working on a strategy for flogging Dell machines running Ubuntu Linux earlier this year. However given Dell's seemingly declining interest in Ubuntu Linux, some thought the announcement was hot air from a company that just wanted to keep a Linux-friendly image, but not so.
Dell's range of Ubuntu Linux machines will come with Ubuntu's music store and the Ubuntu One cloud storage built in. All in all, it is a good chance for desktop Linux usage to grow in an immensely important market.
Ubuntu Linux might not be the first choice for many Linux users but Canonical has done a lot to push its desktop-oriented Linux distribution to OEMs such as Acer and Dell. While in established markets the popularity of Microsoft's Windows remains hard to break down, in a relatively new and growing market there is every chance that Linux, whether it's Ubuntu or some other Linux distribution, can succeed. µ
China Proposes New Curbs on Entertainment and Bloggers
Wednesday, October 26, 2011
[技巧]夜间智能定时关机
Alan Young - Google+ Account Susspended
Oct. 31 I changed name to Hykloud Li on my Google+ profile page:
Contacted Google with the contact us link in "Submit this name for review?" page:
Oct. 26 I got this message on my Google+ profile page:
Your profile is suspended and being reviewed
Your profile was flagged for violating the Google+ Community Standards or Names Policy and is currently under review. Reviews are usually completed within a few days.
During this time, you won't be able to make full use of Google services that require an active profile, such as Google+, Buzz, Reader, and Picasa. This will not prevent you from using other Google services, like Gmail.
We're sorry for the inconvenience.
We understand that Google+ may not be for everyone at this time. We'd be sad to see you go, but if you do choose to leave, make a copy of your Google+ data first. Then, click here to disable Google+.
After reviewing your profile, it appears that the name you entered does not comply with the Google+ Names Policy. Please log in to Google+ and visit your profile to learn more and take action.
The Names Policy requires that you use the name you are commonly referred to in real life in your profile. Nicknames, previous names, and so on should be entered in the Other Names section of the profile. Profiles are currently limited to individuals; we will be launching profiles for businesses and other entities later this year.
If you do not edit your name to comply with our Names policy or appeal with additional information within four days of receiving this message, your profile will be suspended. While suspended, you will not be able to make full use of Google services that require an active profile, such as Google+, Buzz, Reader and Picasa. This will not prevent you from using other Google services, like Gmail.
The Google+ team.
Wednesday, October 19, 2011
Google+ To Support Google Apps in Next Few Days
Wednesday, October 12, 2011
Learning a Language From an Expert on the Web
A version of this article appeared in print on July 29, 2010, on page B8 of the New York edition.
Tuesday, October 11, 2011
GAE翻墙
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,然...
-
http://www.williamlong.info/archives/3125.html -月光博客 互联网精准广告定向技术,指的是依托于搜索引擎庞大的网民行为数据库,对网民几乎所有上网行为进行个性化的深度分析,按广告主需求锁定目标受众,进行一对一传播,提供多通道投放,按照效...
-
VOA News A wine-tasting near Beijing, China Finally, a listener in Taiwan wrote to ask why his face turns red when he drinks alcohol. Th...
-
How to Debug PHP Using Firefox with FirePHP July 11th, 2009 by Nuno Franco da Costa Typically, there are two main ways of debugging serve...