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

Sunday, February 28, 2010

Ubuntu V.S. Kubuntu

Ubuntu V.S. Kubuntu - Ubuntu Forums

You don't even need to reinstall kubuntu to try it from your ubuntu installation. From inside Gnome (ubuntu), open Synaptic, search for kubuntu-desktop, and install it. Thats it. You're done.

Log out, click the "sessions" button, and change to KDE. Log in. Now you see kubuntu. Keep it, uninstall it, whatever. From the login screen, select your choice from the Sessions menu. And best of all, its teh same OS, different GUI, so all your stuff is still in /home.

Friday, February 26, 2010

Tools for Putting Web Apps to the Cross-Browser Test

Linux News: Developer: Tools for Putting Web Apps to the Cross-Browser Test

With more applications built for the Web, cross-browser testing is crucial to application performance. Numerous automated helpers are available from a variety of commercial and community-based software testing tools. For example, over 2 million users have turned to the Selenium Project's open source, cross-browser testing platform to solve the various security and functionality flaws that crop up in software code. Selenium is currently in use at companies such as Google, Yahoo (Nasdaq: YHOO), eBay (Nasdaq: EBAY) and Salesforce.com (NYSE: CRM).

Free Online TV Player 2.0.0.8 (Windows)

Free Online TV Player 2.0.0.8 (Windows), from Free Online TV Player - Free Downloads on ZDNet | Shareware, Trialware, Evaluation Software

Free Online TV Player uses proprietary technology that took us over one full year to develop. Our technology locates and plays over 750+ free online TV channels right over the Internet. You get live TV broadcasts daily from around the world. No TV card or hardware to install. Just live TV streamed directly to your PC via your Internet connection. Free Online TV Player even updates its channels list daily to always keep you up to date. Just check out the screenshots to see our technology in action.

Thursday, February 25, 2010

Gmail在过滤器中实现自动回复

Gmail在过滤器中实现自动回复-月光微博客

  Gmail的一个小技巧,在Gmail过滤器中,针对某些特定邮件实现自动回复功能。

  首先在Gmail的"设置"-"实验室"中启用"模板响应",然后编辑一封自动回复的邮件内容,点击"模板响应"菜单,保存一个模板。

  在过滤器中,选择"发送模板响应",选中刚才建立的模板,保存"创建过滤器"

  这样就实现了针对某些特定邮件自动回复的功能。

Wednesday, February 24, 2010

Kate Puts Other Text Editors to Shame

Linux News: Applications: Kate Puts Other Text Editors to Shame
By Jack M. Germain
LinuxInsider
02/24/10 5:00 AM PT

(Must install konsole to enable integrated terminal, HL 20100224 )

Kate is a multi-document editor that grew from a rewritten version of the KWrite editing widget of the KDE desktop. It's runnable on both Gnome and KDE desktops. Kate's feature set goes above and beyond that of most text editors. It can display an index of files on a sidebar, check a document's spelling, and perform robust search-and-find tasks.

As communication becomes more Web-centric, text editors become more essential writing tools. Blocks of text get tweaked with HTML codes to provide a more graphical appearance. So good text editors are those with many of the same features found in word processors, only without the added formatting and graphic components.

 Kate Text Editor
Kate Text Editor
(click image to enlarge)

One of the best text editors for anyone who handles a heavy flow of words is the Kate Text Editor. This is one my two favorite text-writing apps. (The other is Geany Text Editor.) Unless I need a final copy in a polished printout, Kate is a more convenient choice than a full-fledged word processor.

Kate is a multi-document editor that grew from a rewritten version of the KWrite editing widget of the KDE desktop. Even if you run the more standard Gnome desktop in your Linux distro, Kate runs just fine. The few required KDE libraries that Kate needs are bundled in the installation package.

Tuesday, February 23, 2010

Customers satisfied with ecommerce

EDL Consulting - Customers satisfied with ecommerce

Updated: 2010-02-22

With unemployment still high, the American retail economy has taken some blows over the past couple years. However, judging by customer sentiments towards ecommerce, the consumer economy may be headed for brighter days on the web.

The American Customer Satisfaction Index recently released a report on its findings for the fourth quarter of 2009, and results are encouraging. Though the index as a whole has remained nearly the same, ecommerce saw the largest increase of any sector, up 1.8 percent to 81.4 percent overall.

"Overall, online shopping continues to grow and provide higher levels of customer satisfaction," says ACSI head Claes Fornell. "Free shipping promotions, competitive pricing, and the ability to browse and research an ever wider selection of merchandise from the comfort of one's home have made online retailing a very attractive and powerful alternative to traditional stores."

Netflix was the biggest gainer among ecommerce vendors, up 2 percent to an 87 percent rating. Amazon followed, with an unchanged score.

An earlier comScore report found that ecommerce saw development in various sectors, with the core search market growing 16 percent.ADNFCR-2178-ID-19629488-ADNFCR

Ecommerce takes over coupon use

EDL Consulting - Ecommerce takes over coupon use

Updated: 2010-02-22

Though some analysts have questioned the ability of online shopping to match consumer habits applicable to store-based retail, ecommerce has proved itself up to the challenge. In a striking new example, recent data shows that digital coupon use is not only thriving online, it is overtaking its print equivalent.

A recent Coupons.com report finds that digital coupon use grew by more than 170 percent during 2009, while growth for print coupons lagged behind at 8 to 16 percent.

"For the first time in almost two decades the use of coupons increased in 2009, in part due to the growth of digital coupons as more consumers made them part of their shopping routine and more brands tapped them to engage with their consumers," said Coupons.com CEO Steven Boal.

Boal added that he expected adoption of digital coupons to "continue to accelerate in 2010 as consumers and brands alike increasingly adopt them." Consumers may drive growth, seeking benefits - savings from Coupons.com exceeded $858 million last year.

Earlier data from promotion transaction settlement provider Inmar showed that annual coupon use is on the rise for the first time since 1992. Brands issued 367 billion coupons in 2009 - the recorded peak since Inmar began documenting use in 1988.ADNFCR-2178-ID-19629494-ADNFCR


Ubuntu for the US authorities

Ubuntu for the US authorities - The H Open Source: News and Features
23 February 2010, 10:55

Ubuntu Logo

The General Services Administration (GSA), an administrative support agency to the US federal authorities has officially approved IT firm Autonomic Resources as a provider of Canonical's Ubuntu and Landscape products for US authorities. Paul Holt, Canonical Corporate Services sales director said that, "Canonical is delighted to partner with Autonomic Resources in the development of the Federal and Ubuntu desktop community and marketplace".

Autonomic Resources offers the ARC-P dedicated Infrastructure-as-a-Service platform (IaaS) for US government agencies and recommends using the Ubuntu Linux distribution and the Landscape management solution to manage virtual and physical servers, especially when establishing cloud infrastructures.

See also:

Sunday, February 21, 2010

Goodbye Google Gears, Hello HTML5

Goodbye Google Gears, Hello HTML5

by Jay Hathaway (RSS feed) Feb 21st 2010 at 9:05AM

We already knew Google Gears was on its way out, but Google has now basically lowered the casket into the ground. Gears powered a bunch of web apps in its day, but now Google's stopping work on it and switching to supporting its features natively in Chrome using HTML5 and other emerging web standards.

What does this mean for current Gears users? Well, support will be severely limited, but maintained until there's a way to port entire apps (including their userbases) to a standards-based approach. Some Gears APIs have already popped up natively in Chrome, which now includes geolocation and several database-related APIs.

Check out Google's blog post for the skinny on what is and isn't supported so far. If you're a developer using Gears, you can also take advantage of Google's invitation to reach out and ask questions about the future of the Gears features your apps use.

Why Flash Is Fundamentally Flawed On Touchscreen Devices

Slashdot Technology Story | Why Flash Is Fundamentally Flawed On Touchscreen Devices

"I'm a full-time Flash developer and I'd love to get paid to make Flash sites for the iPad. I want that to make sense — but it doesn't. Flash on the iPad will not (and should not) happen — and the main reason, as I see it, is one that never gets talked about: current Flash sites could never be made to work well on any touchscreen device, and this cannot be solved by Apple, Adobe, or magical new hardware. That's not because of slow mobile performance, battery drain or crashes. It's because of the hover or mouseover problem. ... All that Apple and Adobe could ever do is make current Flash content visible. It would be seen, but very often would not work."

3 Simple Steps To a Successful eCommerce Business

3 Simple Steps To a Successful eCommerce Business
Posted by Amanda Brooke on Sat, Feb 20, 2010 @ 06:03 PM

Having a successful ecommerce business is a dream shared by many, and achieved by many, as well.

Here are three simple, basic tips for helping you have a thriving, successful ecommerce business:

Promote your site every day, without fail. This might include all sorts of things. You can promote your sight through Pay Per Click and other ad campaigns, through emails and e-newsletters to subscribers, through sales, promotions, contests and coupons.

You can promote your site through social media on Facebook, Twitter, MySpace and any number of other social sites.

You might promote your site by having a business blog, submitting articles to article directories, and even videos on YouTube.

You might have promotional material printed up and included with each package as sold items are shipped. Or, you might opt for tee shirts, caps or jackets printed with your website and brand logo.

There are many, many ways to promote your ecommerce website, and a smart entrepreneur doesn't miss a trick!

Another very simple step to success in an online store is SEO. If you don't know how to optimize the SEO of your ecommerce website---you need to learn.

Alternatively, you could hire SEO experts to do this for you. Regardless of how it gets done, it is absolutely essential that it is done, whether by you or somebody else.

There is a saying on the internet about any website that is all too true:

If you don't exist with Google….you don't exist.

And that's about the size of that.

So, a basic but necessary part of building a successful online business is great SEO!

Last but not least in this little series of simple steps toward achieving success as an online merchant is this: Give excellent customer service! You might have a fabulous, professionally designed website with fantastic SEO and wonderful product descriptions.

You might rank high in search engine results, pay a small fortune for PPC and other ad campaigns, and so on and so forth. But if you don't take care of your customers, your online business will go down like the Titanic, except there won't be a band playing.

Customer service is the cornerstone of any successful online business!

There are all sorts of other things you can do to be successful in your ecommerce enterprise, but you can't go wrong following these!

Wednesday, February 17, 2010

ZEN CART安全建店的步骤 (2009.12.18 更新)

ZEN CART安全建店的步骤 (2009.12.18 更新) : 安装设置

Jack » 2006-10-11 5:47

强烈建议所有Zen Cart用户再次阅读本贴,保证网店的安全。

下面是强化Zen Cart网店安全的几个步骤:

1. 删除以下几个目录和文件

安装完成后,请从服务器上删除以下目录和文件:
- /docs
- /extras (重要)
- /zc_install
- /install.txt (这是文件)

另外,如果你的网店不是卖可下载类的产品,请同时删除以下文件和目录:
- /download
- /media
- /pub

不要只是改名目录,万一别人知道了目录名,就不安全。

如果删除了 download 目录,商店设置-属性设置-允许下载,设置为:false

2. 设置configure.php文件为只读

将两个configure.php文件用CHMOD(设置权限)命令改为只读很重要。

通常就是设置为"644",有时是"444"。

如果无法通过FTP程序修改,可以用主机商提供的文件管理工具来修改。

如果您用的是Windows服务器,只要将文件设置为"所有人" "只读",如果是在IIS下,是IUSR_xxxxx 用户,或者"System"帐号,在Apache下,是"apache user"帐号。

3. 改名"/admin"目录

修改"admin"目录名,用一个很难猜测到的名字。
(在进行下面的修改前,请备份文件和数据库。)

A- 用文本编辑器,例如记事本,打开文件admin/includes/configure.php。

将所有出现/admin/的地方改成自己的管理目录名。

需要修改的部分:
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

需要修改的部分:
define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');

B- 找到Zen Cart的/admin/目录,

将该目录名按照admin/includes/configure.php中的定义作相应修改。

4. 删除不用的管理员帐号

管理页面->工具->管理设置

在管理页面下,打开工具菜单,选择管理设置
- 检查所有没有使用的管理员帐号并删除。特别注意是否有"Demo"帐号。

5. 强化管理员密码

一定要使用一定强度、不易猜测的密码。

要修改管理员密码,进入管理页面->工具->管理设置,点击"重置密码"按钮,或点击那个想回收箱的图标。

建议使用至少8位密码。
密码最好包含字母、数字、符合、以及大小写等。

6. 保护"自定义页面" "html_includes"中的内容

定义好您的自定义页面后,(管理页面->工具->页面编辑), 您要保护这些文件:

A. 用FTP软件下载备份,这些文件位于
/includes/languages/schinese/html_includes目录。

B. 修改文件 CHMOD 644 或 444 (或 Windows下为"只读")。见上面的CHMOD说明
/includes/languages/schinese/html_includes

网店安全相关贴子强化Zen Cart 网店安全

Buyers' Guide: How to Find a Web Hosting Provider

Buyers' Guide: How to Find a Web Hosting Provider — eCommerce-Guide.com

By Vangie Beal
February 16, 2010

For a small business owner, finding a provider to host your Web site can be a big task. There is a lot more to shopping for a Web site hosting provider than just comparing prices and disk space. When looking for the right provider, you need to start with a good idea of types of services you'll need for your own Web site. After that, you can work on finding the right hosting provider — one that can meet your needs at a price you can afford.

When you start shopping for the right vendor to provide your Web hosting services, make sure the provider offers packages for small and medium sized businesses (SMBs). You want to invest in a professional plan with professional services for your business, not a company that really only has experience with personal Web site hosting.

Getting Started: A Web-Hosting Glossary of Terms

When you first start looking for a hosting provider, it probably won't take you long to realize there is whole new world of standards, phrases and terms to learn. The first step to finding a provider is to familiarize yourself with the common lingo, so you can understand what each vendor has to offer. To get you started, here are eight Web-hosting terms you should know, courtesy of Webopedia.com.

· Ecommerce-Guide Tip: You can find hundreds of Web-hosting terms in Webopedia's Internet and Online Services category.

First Decision: Shared Vs Dedicated Hosting

One of the first decisions you will want to make is choosing between sharedand dedicated hosting. A shared Web server — sometimes called virtual hosting — basically means your Web site will share resources with other Web sites. In this scenario, multiple Web sites are running (hosted) on the same physical server. On a dedicated server, your Web site is the only one on the server.

The biggest differences between the two types of hosting options are price, performance and control. When you consider a shared service, the cost is considerably lower as multiple Web sites pay for the server. On a dedicated server, you are the only one paying for the server which, combined with additional start-up costs and IT requirements, makes this a more expensive option.

Another issue to consider is in-house expertise. In a shared environment your responsibility is to provide the content, and the hosting provider will take care of other details, such as the server set-up, including the operating system, bandwidth management, backups, e-mail and security.

On dedicated servers, the provider often supplies management software, but you will largely be responsible for the server management — not just the Web site management. This will require dedicated IT staff to handle Web-server installation, deciding which Web applications to run on the server, backing-up the server and security issues.

One of the biggest issues for an e-commerce Web site is choosing specific carts or payment systems. On a shared server, you are limited to what the hosting provider supports.

For the very small businesses (home-based and entrepreneurs) if you do not have the technical know-how, shared hosting will probably be the easiest and best way to get started. You can also start your business with a shared Web server, and move on to a dedicated server as your Web site grows.

For e-commerce Web sites, PCI-complianceis going to factor in to the type of server you choose. On a dedicated server you can have control to ensure you are in compliance with the standards, but again it will require dedicated IT.

Many shared hosts may not offer secure PCI-compliance. Smaller businesses without the technical expertise can, however, use a third-party Application Service Provider (ASP)that will capture all of the order data and store it on its servers. You will still be required to comply with PCI standards and regulations.

Since most small e-commerce shops and businesses start out with a shared server, this will be the example used most frequently in this guide. Anyone interested in dedicated hosting should read The Great Hosting Debate: Shared vs. Dedicated guide on Small Business Computing.com.

· Ecommerce-Guide Tip: Hosting Plan Primer

Go to page: 1 2 Next

Tuesday, February 16, 2010

Free E-Commerce Shopping Cart Systems

OfficialWire: Free E-Commerce Shopping Cart Systems

Of course, the goal of all e-commerce websites is to make a profit, and yet selling more products or services is not the only way you will ensure a better margin

Published on February 16, 2010
by Harvey Raybould
LONDON, ENGLAND

Paid shopping carts can be very costly. Most require a onetime fee, making start up costs high. Other paid carts charge by the month, some even take a small transaction fee as well, and, surprisingly, to the uninitiated, most paid carts are not nearly as customizable as free 'open source' systems.

Today, there are many, free e-commerce shopping carts, which can help you reduce your initial or monthly outgoings. Free systems can be used on any website without sacrificing your site's appearance or functionality. Familiarity with HTML or CSS will increase the options available, but someone with no HTML skills can still utilize a number of free shopping carts.

Paypal and other add-to-cart buttons

A website selling only one or two different products may just need a simple PayPal button for customers to make a purchase. PayPal offers a free cart and checkout system with no HTML skills required. This allows you to generate the HTML coding for a "buy-it-now" or "add-to-cart" button that can be copied and pasted into your website.

Most web-savvy shoppers are familiar with PayPal, and prefer the fact that a website owner will not have access to their financial information. There is a small transaction fee to the website owner, although this is comparable to other merchant accounts.

There are other systems comparable to PayPal, the most popular are Fat Free Cart and Mals Shopping Cart. Both are free to use with your own merchant account, PayPal or Google Checkout.

Solutions for larger websites

Websites offering large numbers of different products may find creating an "add-to-cart" button for each product time consuming. Cut and paste "add-to-cart" buttons are fine for some types of websites, but a shopping cart system looks more professional and gives greater flexibility and options.

Make sure that your hosting company's server can support the shopping cart of your choice before proceeding. All free shopping cart systems will provide you with the ability to add products to your website easily and allow your customers to purchase these products.

Therefore, the functionality of the shopping cart you chose is important. Be sure to check the demo website, if offered, to see how easily the cart handles an order. If it demands too many steps, or the interface is poor, you will end up with abandoned carts at the check-out and a loss of revenue.

Customers want to order from websites easily, with shipping costs clearly marked. The more payment and shipping options that you are able to offer the better, although again, make sure they do not add additional and unnecessary steps to the check-out process.

Choose from the best of breed

Although, there are many free shopping cart systems available, I would recommend that beginners stick with the most popular, as help is widely available from other users in online forums.

If you are using Wordpress as the platform for your website, then Instinct offers a reliable free shopping cart – successfully downloaded, they claim, over 500,000 times. If not, then Cube Cart, Zen Cart and OsCommerce all offer free e-commerce systems, and all of which, have really user friendly administration areas.

All three offer the ability to add an unlimited number of products. Features to consider when choosing between them are multiple payment options for your customers, shipping options and different currencies and languages, depending on your target audience.

Cube Cart is an excellent choice for mid size e-commerce websites. It has templates, called skins, that may be used as a site template or you can overlay the cart onto an existing website. Free and not so free skins, are available on the web. Skins may also be customized, although this requires some skill in coding the CSS style sheets. There are free and paid (one time fee) versions, both are an excellent choice.

OsCommerce is the best known free shopping cart system. It is widely used by companies all over the world. It is the best choice for larger e-commerce sites as there are more than 3,400 available modules that can be added to the default osCommerce installation, enabling full customization. Zen Cart is another open source shopping cart that is widely available. Zen cart has a user friendly interface that allows the shopping cart to be set up in minutes.

Installation

Many free e-commerce shopping carts can be installed yourself, but it can be difficult. Good hosting companies will install the script for you, and/or have a 1-click installation feature in the hosting Cpanel.

After a shopping cart has been installed, you can customize the catalog section of your website in the administration area. Products, descriptions and prices, payment gateway(s) etc can be configured. Changes to the shopping cart's general appearance are usually done via templates or CSS style sheets.

Website Hosting by Compila - Cheaper, greener, faster web hosting

PHP code tools round up

PHP code tools round up - Techworld.com

Though precise statistics are difficult to obtain, PHP is undeniably a top choice as a website building language. Since October 2009, the TIOBE Programming Community Index has PHP holding third place, behind Java and C, among programming languages overall. Regardless of the exact extent of PHP's usage, you need only consider that websites such as Facebook, which manages millions of users and petabytes of content, use PHP. Workloads of that magnitude demand a serious programming language and supporting environment.

In our estimation, four of these IDEs rise to the top. Zend Studio is an excellent PHP IDE once you become familiar with the Eclipse landscape. NuSphere's PhpED is also first rate and deserves your consideration if you need a professional-quality IDE and support. If you're on a budget or you can make it without technical support, Eclipse PDT and NetBeans are exceptional tools.

Monday, February 15, 2010

PAC Manager - Perl/GTK Gnome replacement for SecureCRT/Putty/etc

PAC Manager - Perl/GTK Gnome replacement for SecureCRT/Putty/etc | Ubuntu Geek
February 13, 2010 · General
(Not working on Ubuntu 8.10, perl version is too old, HL 20100215)

PAC is a Perl/GTK Gnome replacement for SecureCRT/Putty/etc… It provides a GUI to configure SSH/Telnet connections: users, passwords, EXPECT regular expressions, macros, etc. You like 'SSHMenu'? If so, you must check this tool.
PAC Manager Features

* Unique linux app to implement SecureCRT's functionality (more or less!)
* Remote and local macros
* Remotely send commands with EXPECT regexp
* Quick acces to configured connections via tray menu icon
* Pre/post connections local executions
* TABS OR WINDOWS for connections!!
* FREE (GNU GPLv3)

Install PAC Manager in Ubuntu

first you need to download .deb package from here

Once you have .deb package you need to install using the following command

sudo dpkg -i pac-0.9.2-all.deb

This will complete the installation

Screenshot

Friday, February 12, 2010

How to configure Firefox and Firebug to use External Editors

[other] HELP: How to configure firebig editors. - Ubuntu Forums
(I used geany instead of gedit, HL 20100213 )

This will get Firebug to work with Gedit:

in firefoxes address bar type :
about:config
then search for :
view_source.editor.external
- and set this boolean to TRUE

then search for :
view_source.editor.path
- and set this to ' /usr/bin/gedit '

Then open FireBug and add Gedit as an editor:
View -> Open with Editor -> configure Editors
Name it gedit and then browse for the executable within '/usr/bin' and select gedit.
Now you should see '/usr/bin/gedit' underneath 'executable' column in the configured editors window.

How To install OpenOffice 3.2 in Ubuntu

How To install OpenOffice 3.2 in Ubuntu | Ubuntu Geek

This tutorial will explain how to install latest version of openoffice in ubuntu

You can check what is new in openoffice 3.2 from here

First go to the OpenOffice website and download the Linux .deb file (On your desktop)

1 - Once you have done that, extract the .deb file,

OOo_3.2.0_LinuxIntel_install_en-US_deb.tar.gz

Run the following command from terminal or just right click select extract

tar xzvf OOo_3.2.0_LinuxIntel_install_en-US_deb.tar.gz

Then you'll see a file called OOO320_m12_native_packed-1_en-US.9483

2 - You can remove the existing version of OpenOffice if you wish with this command:

sudo apt-get remove openoffice*.*

3 - Copy and paste OOO320_m12_native_packed-1_en-US.9483 onto the desktop then open Terminal and paste this command:

sudo dpkg -i ~/Desktop/OOO320_m12_native_packed-1_en-US.9483/DEBS/*.deb

4 - Then paste this command:

sudo dpkg -i ~/Desktop/OOO320_m12_native_packed-1_en-US.9483/DEBS/desktop-integration/openoffice.org3.2-debian-menus_3.2-9472_all.deb

Once you've done that you'll find OpenOffice 3.2 in Office.

Credit goes here

Thursday, February 11, 2010

How to Debug PHP Using Firefox with FirePHP

How to Debug PHP Using Firefox with FirePHP
July 11th, 2009 by Nuno Franco da Costa

Typically, there are two main ways of debugging server-side code: you can utilize an Integrated Development Environment (IDE) with a built-in debugger or log and perform your debugging processes in a web browser.

How to Debug PHP Using Firefox with FirePHP

This article shares an elegant, simple, and more maintainable way of debugging Ajax apps via the web browser (more specifically for the Mozilla Firefox browser). You'll learn the basics of leveraging Firefox in conjunction with Firebug and FirePHP to implement FirePHP libraries on web apps and logging messages in the Firebug console.

A Brief Introduction

When Ajax techniques became popular, developers faced a new problem: how can we debug Ajax requests and responses efficiently for complex web applications? If using a debugger was hard enough with the RESTful model, triggering an Ajax-specific request is a pain and a bit more difficult; dumping logs and information pertaining to those Ajax operations had to be done using JSON or XML.

A Brief Introduction

This is where FirePHP helps, allowing you to log your debugging messages to the Firebug console. FirePHP doesn't mess with your code (and it doesn't require you to modify anything to trap errors): the messages you print are sent to the browser in the HTTP response headers, which is great when you're using JSON or XML since it won't break their encoding.

This makes FirePHP ideal not only for debugging your Ajax requests, but also your entire PHP codebase.

So, what is FirePHP?

FirePHP is an add-on for an add-on: it extends the popular in-browser web development tool called Firebug with an API for PHP web application developers. FirePHP is free and easily attainable via the Mozilla Add-Ons section on the official Mozilla site. The official FirePHP site can be found via this web address: www.firephp.org. Christoph Dorn is the person responsible for creating FirePHP.

What Do I Need to Get Started?

As you might have guessed, you need three things to get up and running with FirePHP, they are:

  1. Firefox
  2. Firebug
  3. FirePHP

If you don't have all of the above applications installed on your machine, click on their link to learn about how to download them for your particular system.

Installation of the three things above is a straightforward process. FirePHP can be a little tricky to install if you've just recently started learning about web development, but there's good documentation out there about it.

This article is about using FirePHP, so I'll let you handle the installation part (though feel free to ask in the comments – we'd be happy to help if you encounter issues).

A Couple of Tips

Once you've installed FirePHP, and included it in your web application, you are ready to debug and log data. But first, I'd like to share two helpful tips I've learned:

Tip #1: call ob_start()

Because the information is sent to Firebug in the HTTP Headers, you should activate the output buffering or you might get the "headers already sent error". It may sound complicated, but all you have to do is write ob_start() on the first line of your PHP script that you're debugging.

Tip #2: don't forget to disable FirePHP Logging when you go live

You have to disable FirePHP when the site goes live or you will risk exposing sensitive information to anyone that has Firebug/FirePHP installed (we'll talk about how to do this later down the article).

And then just a general tip for Firebug/FirePHP users: it's also a good idea to disable or suspend Firebug and FirePHP when you're just browsing the web because they can really slow down some websites and web applications (such as Gmail, for example).

Getting Started with FirePHP Logging

This is the fun part where we start logging messages and reviewing the basic logging functions.

One thing to note is that, just like PHP, which (at least for PHP4 and PHP5) is a "pseudo object-oriented" language, you can use FirePHP in a procedural or object-oriented (abbreviated OO from now on) manner.

I prefer the object-oriented techniques and I encourage you to use the same pattern as it is considered the most popular and most modern approach to building apps.

The OO API allows you to instantiate a Firebug object to use it or to call its static methods directly. I'm a lazy guy and because static methods are more terse and require less typing, that's what I use.

Instantiating the OO API Object

In your script, you can use the following code block to create the FirePHP object ($firephp).

require_once('FirePHPCore/FirePHP.class.PHP'); $firephp = FirePHP::getInstance(true); $firephp -> [classmethod]

OO API with Static Methods

This is the format for calling static methods in your scripts.

require_once('FirePHPCore/fb.PHP'); FB::[nameofmethod] 

The Procedural API

Here's how to use FirePHP's Procedural API:

require_once('FirePHPCore/fb.PHP'); fb($var) fb($var, 'Label') fb($var, FirePHP::[nameofmethod])

We will not get into any detail about the benefits and coding style of each API, I've included them here only so you see what options are available for you. In other words, I don't want to start a flame war about which procedure is better – it's up to you to decide and I've noted my preference.

Logging Messages and Information in the Firebug Console

Let's talk about logging messages in the Firebug console (remember, this will only work if you've configured your app for FirePHP).

Examples of Basic Logging Calls

If you are ad-hoc debugging a bug, the following examples are what you'll be interested in utilizing.

Fb::log("log message")

This will print a string that you pass to it onto the Firebug console. Using the above example results in the following message:

Log message.

Fb::log($array, "dumping an array")

Passing an array (no more for loops or print_r() in your scripts) outputs the content of your array. The above example will result in the following message in the Firebug console:

Dump message array

Tip: when you hover your mouse on logged variables in the Firebug console, an info window will appear in the web page containing all of its elements. It's a nifty feature, don't you agree?

Variable Viewer

Logging an Information Message

Here is an example of logging information messages using the info method.

Fb::info("information")

This is the message it logs in your Firebug console:

info message.

Logging a Warning Message

Here is an example of logging a warning message.

Fb::warn("this is a warning")

This is the message it logs in your Firebug console:

Warning message

Logging an Error Message

Here is an example of logging a warning message using the info method.

Fb::error("error message") 

Here's what an error message looks like in the Firebug console:

Error message.

Enabling or Disabling FirePHP Logging

When your site goes live, you can (and should) disable FirePHP logging. Call the following line of code on the first lines of your script.

FB::setEnabled(false);

What's great about this is that you can leave all of your FirePHP code in your scripts for later use – just pass either true or false when you want to turn logging on or off.

If your application uses a "config file" to keep track of global settings, it is advisable to set a configuration option to enable or disable it.

Conclusion

First, here's a screen capture showing all of our messages in Firebug all at once (I ran it sequentially).

Conclusion: all together now

In this article, we covered the very basics of using FirePHP to help you debug and gain information about your PHP/Ajax applications easier and through the web browser. I hope that this results in you becoming convinced that you should explore your debugging options outside of "old-school" techniques such as using echo or print on top of your web page layout to see what a variable or array contains. Using FirePHP is so easy and convenient, and gives you much more options and data for debugging purposes.

In a future article, I'll be covering more complex features of FirePHP and using Firebug to make this simple debugging tool a more robust and fully-featured logging framework.

So stick around, don't forget to subscribe to the Six Revisions RSS feed so you get a note when that article is posted. * Article edits by Jacob Gube

Related content

About the Author

Nuno Franco da Costa is a web developer and sys admin. By day, he works at a design agency coordinating the development and sys admin teams where he developed a PHP MVC framework and a WEB 2 CMS. He loves to code and has a "getting things done" attitude. You can find over at his online presence www.francodacosta.com

Desktop publishing for Linux at its finest

Desktop publishing for Linux at its finest - ZDNet.co.uk
Thursday 11 February 2010, 1:39 PM
Posted by apexwm

Over the years, Linux has lacked a good all-around desktop publishing application. Well, those times are over. Enter: Scribus. Scribus is a great application, that ties in features from proprietary programs like Adobe PageMaker, Adobe InDesign, Quark xPress, Microsoft Publisher, and others. Over the years I've used a few of the proprietary programs, mostly PageMaker and Quark xPress. If you are familiar with these proprietary programs, using Scribus will be like second nature. Its features and functionality are similar enough that you will easily be able to catch on and learn it, and hopefully migrate over to it and save yourself from re-purchasing those pesty proprietary programs over and over.

The first time I used it, I was pleasantly surprised to see how its interface is very clean, straightforward, yet packed with features. Inserting text elements, graphics, editing the text, everything. And, it has a powerful PDF Export feature, complete with prepress quality options.

There is one caveat with this program though. It cannot import any proprietary files, i.e. PageMaker files. If you have old files that you created in a proprietary program, you must recreate the file from scratch. Apparently the developers of Scribus did not want to encounter any issues with the proprietary programs, so they decided to stay away and make Scribus completely independent.

It's too much to go through here, but if you do any sort of desktop publishing it's definitely worth checking out. If you use Linux, Scribus should be available with your distribution.

Wednesday, February 10, 2010

The Zen Cart Execution Process

以:http://192.168.0.161/lightbox/index.php?main_page=account 为例

We know $main_page=account

index.php will do the following:

1. it loads 'includes/application_top.php'

This file will load in all of general definitions used site-wide, initialize some site-wide classes ($template, $db) and do other general stuff.

2. it loads all of the files starting with 'header_php' in 'includes/modules/pages/account'

'header_php.php'

3. now it loads from includes/templates/mytemplate/common/

'html_header.php'

The default html_header.php file will simply create all of the HTML up to the </head> tag

It loads 'includes/modules/meta_tags.php',

It loads 'includes/templates/mytemplate/css/style*.css'

It loads 'includes/templates/mytemplate/js/jscript_*.js'

'main_template_vars.php'

set $body_code to: includes/templates/mytemplate/templates/tpl_{$main_page}_default.php (tpl_account_default.php)

Here all of the program logic and variables will be mixed up with the actual displayed HTML code

'tpl_main_page.php'

this file lays out the basic page.

1. <body>

2. loads the 'includes/modules/header.php' file

3. if the left column is enabled, it loads 'includes/modules/column_left.php'

4. it loads the file set in $body_code (tpl_{$main_page}_default.php &#20063;&#23601;&#26159;: tpl_account_default.php)

5. if the right column is enabled, it loads 'includes/modules/column_right.php'

6. loads 'includes/modules/footer.php'

7. </body>

Reference: The Zen Cart Execution Process

Google发布Gmail微博客Google Buzz

Google发布Gmail微博客Google Buzz-月光博客

  今天,Google在其最热门的产品Gmail中发布了一个重要的社交网络服务Google Buzz,该服务类似Twitter等热门社交网络服务,可让Gmail用户分享自己的状态更新,可从浏览器或手机终端使用,目前这项服务正在分批向Gmail用户开放,预计不久Gmail用户都会看到这项功能。

  Google的这项服务将对Twitter产生一定的压力,Yahoo则称自己早在1年半前就推出过Yahoo Buzz(其实这个产品和Google的并不一样),微软则对Google Buzz进行了抨击,称人们不需要再多一个社交网络了。目前Gmail是全球第三大电子邮件服务,使用量仅次于雅虎邮件和微软Hotmail。

  对于中国用户来说,Gmail支持微博客后,有可能会导致Gmail服务被屏蔽,这是一个令人悲哀的预测,我的工作生活已经离不开Gmail了,如果用不了这个服务,那么上网的一半事情都做不了。

  因此,虽然我现在还没有开通Google Buzz,不知道Buzz实际是什么样子,但我还是希望Google Buzz是类似QQ邮箱的那种微博,从外部无法访问,登录后才能看到,这样的话即保护了隐私,又避免了被墙。不过从QQ邮箱的微博使用情况来看,这么设置的话可能不会有太多人使用。

Google发布Gmail微博客Google Buzz

  由于Google Buzz在iPhone中默认就能使用,喜欢尝鲜的用户可以安装Firefox扩展User Agent Switcher,然后设置User Agent为iPhone 3.0就可以模拟iPhone使用Google Buzz的功能,我目前就是通过这种方法提前体验Buzz,但是在电脑的浏览器上却依然看不到Buzz的链接。

  Google Buzz默认使用了Google Reader的好友关系,我刚刚登录使用,就有了1137个followers,并Following了407个人,用户的发言可以在自己的个人Google Profile地址中显示,这让我更加担心google.com的安危了。

  Google以前在Google Reader中也曾经推出过类似微博客的产品,界面和功能都克隆Twitter,可惜最终并未成功,但是这次,我比较看好Google Buzz,虽然以前Google Reader的微博失败了,但因为Google Reader是个小众产品,而Gmail是个大众产品,只要有1%的Gmail用户使用Buzz,那就有几十万用户,这是其他微博客产品所不敢想象的。

  在我使用Buzz的过程中,发现只要自己发布或者参与过的信息有更新,Buzz都会发邮件一个邮件,这点设计的太不好了,容易让人受到邮件骚扰,LifeHacker介绍了一个防止被Buzz邮件打扰的办法,创建Gmail过滤器,包含字词label:buzz,将其存档并标记已读即可。

  Google Buzz API 已经开放了,可供第三方程序调用,API的地址是: http://code.google.com/apis/buzz/

Tuesday, February 9, 2010

2010中国互联网十大话题

2010互联网十大话题 - Discovery-X - 博客大巴

版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://kenyiken.blogbus.com/logs/57867235.html

2010新年伊始,互联网就弥漫着硝烟,IT大鳄们运筹帷幄,不断推出新产品,为自己在2010年大战中投入更大的筹码。互联网的十大话题也将影响着今年的互联网格局,并且关系着很多网络工作者今年的Money。

一 "网络视频混战"精彩

国外的视频领域已分成两派,一个是以版权内容为主的主流资讯网站,代表选手是由NBC和新闻集团共同注册成立的Hulu; 另一个派别就是以YouTube为代表的视频分享网站,强调原创性和自由分享。国内则更为复杂,百度、网易等准备开始做以版权内容为主的视频网站,再加上搜狐、酷6等大规模删除非版权内容,而以视频分享为主的土豆和优酷也于2月3号下午在北京结盟,宣布互相开放片库、启动联播机制、联合版权采购以及一系列更具垄断性的合作模式。但这只是互联网的视频网站变化,另外实力也相当强大的中央电视台推出"中国网络电视台"、湖南电视台推出"芒果TV"和浙江广电集团推出"新蓝网"等,广电一直强调建立可控可管的网络,网络视频国家队的出现,有望在互联网视听行业起到标杆作用。同时,它们具有丰富的节目源,可谓是有备而来、来势汹汹,预示着网络视频竞争的更趋白热化。

二 "微博大战"势在必行

腾讯、新浪、搜狐和网易四大门户目前都推出微博产品,正因为微博引领潮流,趋于年轻化,博客却区域老龄化。目前,围绕微博的微型小说已可以盈利,微博可创造微型小说黄金时代;并且可以通过微博制作事件营销,比昂贵的电视广告可经济实惠得多;新浪已从微博的运营中尝到了甜头。不甘落后的腾讯先关闭了滔滔业务,将微博拉入内测阶段。你还没有微博,你可就OUT啦!

三 "HTML5终结Flash"愈演愈烈

Html5并不是刚研发出来的,诞生于2004年,知道前些日子苹果的新产品ipad由于不支持flash,Html5将取代flash的讨论才一波接着一波,Html5的优点在于它是一种协议标准——或者至少在该项技术成熟后就可以成为标准,而不是象Flash那样,是一种单一厂商解决方案。Html5替代Flash是大势所趋,但现在仍是flash的天下,Html5登上互联网的舞台仍需时日。

四 "个人建站"比西天取经都难

昨天,著名博客"不许联想"被禁止访问了,个人以后还能建站吗?前两天CNNIC还在打捞落水的网站,允许个人注册CN域名,在不到半个月时间从CNNIC提供的每日域名删除列表中看出,一月份有超过117万个CN域名被删除。ICP备案,现在已经很明确地开始撤销博客备案了,连很多服务器接入商都禁止开设的站点内容:

1、论坛、博客、信息发布(二手信息、租房发布、产品信息发布)
2、视听(电影、视频、音乐内容或者链接)
3、导航及搜索引擎(包括调用链接)
4、时事新闻类
5、两性、性用品及药品(包括保健品)、医疗器械、聊天室、医疗药品及器械广告
6、企业留言板被暂停的,必须将留言板删除或者将留言内容隐藏,只能管理员查看,不准公开。才可恢复正常运行。
7、小说、私服、彩票收费服务站点目前。

我们的自由啊?

点此查看明天CINNS拟删除域名名单

五 "网瘾战争"及时雨

去年,从很多戒网瘾专家,到"水妖pk陶宏开"、"卡巴斯基提示家长控制孩子的上网时间",可以看出全社会都在关注此事。互联网发展十分迅速,给我们生活、学习、工作各个方面带来了便利,但让很多人沉迷其中,干扰了正常的生活,这就出现问题了!成年人的自控能力优于未成年人,所以沉迷于网络的主要是学生,不仅影响身体,还拖累学习。解决网瘾问题,迫在眉睫!

六 "网店经营"前景忧

日前,个人网店即将进行实名注册,大交易量个人卖家需缴纳税费等消息在业界传得沸沸扬扬。日前,国家工商总局表示,相关办法尚处于调研论证阶段,待时机成熟后再正式向社会公开征求意见。本来网店竞争就很激烈,这一来给想开或经营网店的朋友不少压力,但就目前来说,这些措施对于打假并没有什么帮助,还有可能抬高物价。

七 "杀毒软件跌地"啦

近日杀毒软件纷纷降价,连世界第二的卡巴斯基也在其中。瑞星打出瑞星2010版新品半年免费,30元用1年的广告语;江民打出KV2010杀毒软件128元用三年,并且可以装三台电脑的口号;卡巴斯基2010版也不示弱,扛起了三年版仅售158元的大旗……而三年前,一套瑞星杀毒软件的售价高达299元。这跟360杀毒不无关系,而且360宣称360杀毒用户已超过瑞星,杀毒大佬们不再能安稳的坐着了,与免费的360较量一番,一定会很精彩!

八 下一个"后宫优雅"和"贾君鹏"

网络营销已不单单局限于在网络上简单的放置商家的广告,那样收效甚微。事件营销就越来越受到广告商的青睐,可以省去邀请明星代言那么昂贵的费用,又可以让商品在事件想病毒一样疯狂的传播时得到推广,收效更佳。09年的"贾君鹏"和"后宫优雅"就是两个非常成功的网络营销策划。2010下一个会是谁?

九 "偷菜"继续疯狂

09年已经种下了很多菜菜,下一年一定要收的。农场的成功预示着社交游戏的潜力,开发出受欢迎的游戏一定会在新年中重新席卷神州大地。微博中也将是这些游戏争夺的领地,而且会是更有效的展示舞台。社区、微博等都伸开双臂欢迎优秀游戏的加入!

十 后谷歌时代

谷歌退出中国的事件并不会结束,中国是世界上最大的互联网市场,谁不垂涎?谷歌会把肥肉留给别人,再者言,中国的网络是开放的自由的,我们要向谷歌学习"创新",这是中国互联网"急缺的"。这不应该成为政治竞争的借口,但美国今日又鼓励美在华公司效仿谷歌,我们坚决不允许。我们也有人在抵抗"后谷歌时代"的到来,创立了 "谷姐"。我们欢迎你Google,但要遵守我们的规则,我们还要超过你!我们拭目以待2010!互联网会更精彩!

原创文章如转载,请注明:转载自 望水一鱼 [ http://kenyiken.blogbus.com/ ]

Monday, February 8, 2010

Synchrorep - A one click folders synchronization

Synchrorep - A one click folders synchronization | Ubuntu Geek

Synchorep is an open source software to synchronize two directories, that mean reporting all modifications of one to the other and vice versa. At the end of synchronization, both directories will be strictly the same.
This is usefull for users who work with a laptop or usb key but may interest also users who want making differential backup to gain time.

Install Synchrorep in Ubuntu

Preparing your system

Note:- You should be running ubuntu version 8.10 and above

Install following packages

sudo apt-get install python python-pysqlite2 python-gtk2 python-nautilus

Now you can download .deb package from here

Install the downloaded .deb packge by double clicking on that or run the following command from your terminal (Make sure you are in correct path)

sudo apt-get install synchrorep-1.3.6.deb

Using Synchrorep

You can start Synchrorep by right click on folder to synchronize.

You can check more screen shots from here

The Web Way to Learn a Language

The Web Way to Learn a Language - NYTimes.com
January 28, 2010

The young woman seated next to us at the sushi bar exuded a vaguely exotic air; her looks and style, we thought, made it likely that she was not American born.

But then she spoke in perfect American English, even ending her declarative sentences in that rising questioning lilt characteristic of many young Californians.

As it turns out, however, she wasn't from these parts after all; she was born in Iran and spoke only Farsi until her arrival here two years ago. What classes, we wondered, had she attended to learn the language so well?

"I didn't," she said. "I used RosettaStone."

Those yellow boxes sold at shopping-mall and airport kiosks may be the most recognizable example of PC-based language learning, but it certainly isn't the only one.

With the growth of broadband connectivity and social networks, companies have introduced a wide range of Internet-based language learning products, both free and fee-based, that allow students to interact in real time with instructors in other countries, gain access to their lesson plans wherever they are in the world, and communicate with like-minded virtual pen pals who are also trying to remember if bambino means baby.

Learning a language sometimes seems as difficult as dieting. The solution is to figure out how to stay interested after the novelty wears off.

To counter boredom, online language programs have introduced crossword puzzles, interactive videos and other games to reward users for making progress.

Online courses are either fee-based, free or a combination. Starter kits of fee-based programs may cost just a few hundred dollars, but the cost to reach higher levels of comprehension and speaking can easily be $1,000.

While that may sound expensive, language company executives say it isn't; college courses often cost many thousands of dollars to reach the same level.

So, cost aside, how do you choose which program to use? The answer is that one size doesn't fit all.

"The quality of feedback is important," according to Mike Levy, head of the school of languages and linguistics at Griffith University in Brisbane, Australia. "Sites with human contact work best," he said. "This shows the advantage of humans compared to computers. A computer is never as subtle or intelligent."

PAY AND LEARN RosettaStone, the best-known language program, now offers Totale, (rosettastone.com) a $1,000 product that includes RosettaCourse, a traditional lesson-based module; RosettaStudio, a place where a user can talk to a native speaker via video chat; and RosettaWorld, an online community where you can play language-related games.

"We offer modern-day pen pals facilitated with voice over I.P.," said Tom Adams, the company's chief executive.

RosettaStone uses things like colorful flash cards to help students first learn basic words, and then connect those words to concepts and sentences. The idea, according to Mr. Adams, is for the user to let go of the adult "technical questions and just get into a comfort zone, learning new sounds and trying to make sense of them."

One of RosettaStone's main competitors, TellMeMore (tellmemore.com), believes it has an advantage because its software not only teaches words and phrases, but includes a speech recognition component that analyzes pronunciation, presents a graph of speech, and suggests how to perfect it. Other videos show students how to shape their mouths to create sounds difficult for native English speakers, like the rolling R in Spanish.

With 10 levels of content, a 10,000-word glossary, videos of native speakers and more than 40 practice activities, TellMeMore believes it has enough material to keep a user motivated.

TellMeMore charges $390 for a year's access to its resources for six languages; those looking for a quick refresher can buy a $10 daily pass. Weekly, monthly and half-year passes are also available.

The company's product is currently available only on CD-ROM, but online versions for both Mac and Windows that will include real-time coaching are coming later this year.

FREE NOW, PAY LATER Livemocha (livemocha.com), a two-year-old Web start-up, offers free basic lessons in 30 languages. Users can upgrade to advanced courses with additional features on a monthly or six-month basis.

For $20 a month, students can submit up to eight voice recordings to a native-speaking tutor, who will then review and make recommendations for improvement within 24 hours. For $70 every six months, students can submit up to two examples a lesson.

All students, whether using the pay or free model, can join social networking groups and speak live (using VoIP) to people around the world who are native speakers interested in learning English.

As with all social networking sites, this feature is open to misuse. Within hours of signing up for Livemocha, I received a note from a young woman, ostensibly from Poland, "wanting to meet me."

The company says it has "the world's largest community of people learning languages," with five million registered users in 200 countries.

Financed in part by the European Union, Babbel (babbel.com) offers paid instruction (and a free trial lesson) in English, French, German, Italian, and Spanish for $12 a month, or $6.62 a month for a six-month commitment.

In addition to extended grammar and vocabulary, users can communicate with others in their desired language via private or public chats, or arrange to get in touch via voice.

FREE LANGUAGE LEARNING If money is truly an object, a variety of free language learning is available from a number of sites.

The British Broadcasting Corporation (bbc.com/languages) offers varying levels of instruction for 36 languages, with features including audio and video playback and translation.

Looking to visit Deutschland? The German television network, Deutsche Welle, can help you make yourself understood (bit.ly/ts6x7). And for those who not only want to learn another language but another alphabet as well, try japanese-online.com, or learn-korean.net.

Apps for a smartphone No program would be complete without an accompanying smartphone app, and many exist for the iPhone and other devices.

Several are simple providers of useful phrases, including the Lonely Planet Phrasebooks ($10 for each of 18 languages), the Oxford Translator Travel Pro ($10 for each of five languages), and World Nomads (free; 23 languages). The Ultralingua Translation Dictionary ($20 a language) offers simultaneous translation of English and six languages.

Both RosettaStone and TellMeMore say that they are developing smartphone apps as supplements to their online programs, but neither has announced a release date.

Livemocha expects to have an app later this year for both the Android and iPhone operating systems. The company plans on integrating text with a native speaker pronouncing the language, and providing the option for voice recording and live video feeds.

This article has been revised to reflect the following correction:

Correction: February 2, 2010
Because of an editing error, an article on the Personal Tech pages on Thursday about Internet-based language courses misstated part of the name of Britain's public service broadcaster. It is the British Broadcasting Corporation, not the British Broadcasting Service.

The Fight Over Who Sets Prices at the Online Mall

The Fight over Prices on the Internet - NYTimes.com
February 8, 2010

Where's the price?

On some pages of e-commerce sites selling products like televisions, digital cameras and jewelry, a critical piece of information is conspicuously missing: the price tag.

To see how much these items cost, shoppers must add the merchandise to their shopping carts — in effect, taking it up to the virtual register for a price check.

The missing prices are part of a larger battle sweeping the world of e-commerce. Wary of the Internet's tendency to relentlessly drive down prices, major brands and manufacturers — and now, book publishers — are striking back, deploying a variety of tactics and tools to control how their products are presented and priced online.

"You are seeing firms of all types test the waters" with strategies to control online pricing, said Christopher Sprigman, associate professor of intellectual property at the University of Virginia School of Law and a former antitrust lawyer at the Justice Department. "They feel they have more freedom to do it now."

In many cases that freedom stems from a 2007 Supreme Court ruling in the case of Leegin Creative Leather Products v. PSKS. The ruling gave manufacturers considerably more leeway to dictate retail prices, once considered a violation of antitrust law, and it set a high legal hurdle for retailers to prove that this is bad for consumers.

Ever since that decision, retailers say manufacturers have become increasingly aggressive with one tool in particular: forbidding retailers from advertising their products for anything less than a certain price.

For offline retailers like Wal-Mart Stores and Best Buy, that means not dropping below those prices in the circulars and ads in newspapers. But online retailers have a greater burden. Manufacturers consider the product pages on sites like eBay and Amazon.com to be ads, and they complain whenever e-commerce sites set prices below the minimum price.

This leads the sites to replace prices with notes that say things like "To see our price, add this item to your cart." One day last week, prices were missing on Amazon.com for an array of products like the Milwaukee Sub-Compact Driver drill kit, a Movado men's Esperanza watch and an Onkyo 7.2-channel home theater receiver.

As a result, those prices also did not show up on search sites like Google Product Search and PriceGrabber.com. The trend has arguably weakened one of the implicit promises of e-commerce: that quick searches and visits to comparison shopping sites will yield the best deals.

Most online retailers complain that the missing prices confuse consumers and give an advantage to big chains like Wal-Mart, which do not bear the same burden in their stores. They also say the practice of enforcing minimum advertised prices has gradually spread from the consumer electronics business to companies in other industries like sporting goods and jewelry, which are also trying to stem the downward pressure of prices online.

Amazon declined to comment on the issue, but the company's feelings on the matter are public. "Retailers like Amazon have the legal right to set their own prices independently, but some manufacturers place restrictions on how those prices may be communicated," reads an explanation on Amazon product pages that lack prices. "We realize that this is an inconvenience and are regularly working to educate manufacturers on how their policies impact our customers."

A few online retailers, like Buy.com, say advertising restrictions have not measurably affected sales. But most other e-commerce companies volubly protest.

"We think consumers are best served when the retail marketplace is open and transparent and retailers have an opportunity to offer the best prices and services, and are not controlled from above by manufacturers," said Brian Bieron, eBay's senior director for domestic government relations.

Manufacturers, of course, have a different view. They say the competitiveness of the Internet has unlocked a race to the bottom — with everyone from large corporations to garage-based sellers ravenously discounting products, and even selling them at a loss, in an effort to capture market share and attention from search engines and comparison shopping sites. They also worry that their largest retail partners may be unwilling to match the online price cuts and could stop carrying their products altogether.

"If there isn't that back-and-forth between manufacturer and retailer, it's just a natural tendency to drive the price down to nothing," said Wes Shepherd, chief of Channel Velocity, which sells software that allows companies to scour the Web looking for violations of pricing agreements.

Southern Audio Services, based in Baton Rouge, La., sets a suggested retail price of $80 for its Woodees Inner-Ear Stereo Earphones, while their minimum advertised price is $50. Most online retailers sell them for around $50, but Amazon sells them for $48.40, keeping the price off the product page.

"At the end of the day, it will become a race to zero if you don't do anything to manage the issue," said Jon C. Jordan, chief executive of Southern Audio Services. "Then you've devalued your product to the point where it's difficult to get distribution and consumers lose interest in it."

The battle may shift back to Washington. Companies like eBay and Amazon are asking Congress to override aspects of the Leegin ruling. One bill that would repeal provisions of the ruling is now being considered in the House. In October, 41 state attorneys general wrote a letter to members of the House Judiciary Committee, arguing that the court's decision had resulted in higher prices for shoppers.

Just like other product makers, book publishers have also been emboldened by the Leegin decision. In their case, they want to prevent low prices on electronic books from cannibalizing their more profitable hardcover sales.

Instead of selling e-books wholesale to retailers like Amazon.com, the publishers want to sell them directly, setting prices and having the retailer act as an agent, taking a fixed 30 percent commission. Macmillan recently struck such an agreement with Amazon.com after a protracted dispute that led Amazon to remove, briefly, Macmillan's electronic and physical books from its site. Deals with the other major publishers will most likely follow.

Book publishers "are using a different set of levers, and a different vocabulary, to get what they want," said Scot Wingo, chief executive of ChannelAdvisor, which helps companies sell online. "But it's the same outcome. Manufacturers are effectively controlling the price that the consumer sees on the Web."

State of the Art - The Best Cameras $300 or Less Can Buy

State of the Art - The Best Cameras $300 or Less Can Buy - NYTimes.com

In 2001, I conducted a search for the best camera with a street price under $300. I've repeated the experiment every year since.

Wow, have things changed.

Back in 2001, every camera on the market had an eyepiece viewfinder; today, almost none do. Then, all $300 cameras ran on AA batteries; today, all use rechargeables.

Then, you got a whopping 1.3 or 2.2 megapixels; now, 12 or 14 is standard. Then, some cameras could actually zoom — wow! — up to 2X. Now, pocket cams with 10X or 12X zooms aren't unusual.

It's time to ask the question once again: "How much camera can $300 buy me?"

Below, reviews of nine answers to that question. Most are small, attractive, competent little machines with 12 megapixels, 3-inch screens and hi-def video capture.

All have image stabilization and face recognition, for sharper, better exposed shots. The Panasonic, Fujifilm, Canon and Casio models have unusually wide-angle lenses for capturing vistas — but can also zoom in 10X or even 12X. (There's usually some distortion at the corners at the widest view, but that's a small price to pay for this kind of versatility.)

Still, small, cheap cameras saddle you with shutter lag (the delay after you press the button), low-light compromises (blur or grainy "noise"), and blown-out highlights (bright areas of pure white, with no detail). If you want a camera without those drawbacks, buy a bigger, more expensive interchangeable-lens model.

And now, here are my notes on this year's contenders. CANON POWERSHOT SD980 ($280 street). Sleek, squished-capsule shape. Canon's first touch screen. Drag a finger or tap to flip through photos, magnify them, focus off-center. Tilt the camera various ways to activate certain functions. Other highlights: a wide-angle lens, O.K. picture quality, high-definition video. Quick circuitry; minimal start-up time and shutter lag.

Real problem: the three-inch screen is shaped like a hi-def movie; when you're shooting stills, you get black bars on either side, so the usable screen is much smaller. Touch screens eat up battery; only 240 shots a charge.

ZOOM EX-H10 ($262). Another quirky, breakout camera from Casio. Best parts: wide-angle, 10X zoom, astonishing 1,000-shot battery — three times the norm.

Has 38 presets — not just Sunset, Beach and Portrait, but all kinds of crazy special effects. Multi-Motion Image places several copies of your moving subject (ski jumper, skateboarder, whatever) against a single background. Dynamic Photo mode is hard to use, but very cool: it cuts your subject out of one photo and places it against the background of a different photo, à la green screen, for a still composite photo or short movie.

Weak spot: Video — no high-def, no optical zoom while filming, 10-minute clip max.

FUJIFILM FINEPIX F70EXR ($197). Low light is always a small-camera bugaboo. Cheap little sensors produce blur or grainy photos indoors or after sunset. But F70EXR has the largest sensor of the batch (.5 inches), and in EXR mode, can combine the light from two adjacent pixels on that sensor. Result: clearer, more colorful low-light photo (at half resolution, 5 megapixels instead of 10).

Zooms quickly, though noisily, while shooting video; can't shoot hi-def. Over all, wonderful, sharp pix. But camera takes time to learn.

KODAK EASYSHARE Z950 ($183). Kodak strikes again in its traditional niche: design clarity. Important controls are on top — and they light up. Price: $183, a steal for a camera with 10X zoom, full manual controls and hi-def video.

Zooming while filming is another small-camera problem. On the Fuji, audio track picks up zooming noise; on the Samsung, audio cuts out completely while zooming; on the Panasonic, zooming is incredibly slow to avoid noise. But Kodak zooms nice and fast — and almost silently (though it blurs in and out of focus while zooming).

Downsides: It's big, bulky and very slow. Pictures are only average. Have to charge battery in the camera (so can't keep a spare charging).

NIKON COOLPIX S8000 ($299). Just released, so for near term, you'll pay list price. Nicely thin, compact 10X zoomer. As with Sony, Samsung and others, it can snap automatically when subject smiles. Like Casio and others, it can apply a fake-looking smear to skin tones to minimize blotches and wrinkles.

Hi-def video with stereo sound and dedicated Movie button is a plus, but it can't zoom. Amazing-looking screen. Photos generally excellent, except when the autofocus misses.

OLYMPUS STYLUS 7000 ($184). Superlight, cheap 7X zoom. Panorama mode stitches consecutive frames together automatically as you swing your arm. Illuminated controls: nice. HDMI jack for showing photos in hi-def on a TV.

Lots of bad news, though: no hi-def video, no zooming while filming, horrific shutter lag, no autofocus lamp for low light, a nonstandard U.S.B. cable to get the photos off. And still using the nonstandard memory cards (XD or MicroSD)? Get with it, Olympus!

PANASONIC LUMIX DMC-ZS3 ($244). The camera that wants to be a camcorder. 12X zoom, usable during filming (which is pristine hi-def); stereo audio; dedicated Start/Stop button for video. (Caution: Factory setting uses a format — AVCHD Lite — that few video-editing programs can handle. Motion JPEG format is available, but it's lower quality and has a 16-minute clip maximum.)

Homely software — ALL CAPS MENUS, anyone? — but clear. Terrific screen (super-high-res, like the Nikon's). Doesn't just recognize faces, but recognizes particular faces, which you can name ("Uncle Stu"), but doesn't do much with that information. Pictures are excellent, but screen doesn't brighten up as necessary, as rivals do, making it very hard to compose shots in low light.

SAMSUNG DUALVIEW TL225 ($274). Crazy amount of tech in this one. Small, secondary screen on the front. Nearly invisible in sunlight, but great for self-portraits, for counting down to the self-timer snap, and even for holding the attention of children (the camera can play a little cartoon on that screen).

Main screen is the biggest on the market, at 3.5 inches. Responsive touch screen: draw an X for Delete, swipe across for Next Picture, tap to change settings like flash. Tilt or shake the camera to activate playback functions, too.

Detractions: Have to charge battery inside camera; have to transfer the photos using bizarre nonstandard cable; movie audio cuts out completely, weirdly, while you zoom; requires a cellphone memory card (MicroSD). Touch screen does a real number on battery life (180 shots). Camera is too flash-happy.

But very good photos.

SONY CYBER-SHOT W290 ($180). Least expensive camera here, but few other virtues. Buttons tiny and cramped. Have to zoom by holding down buttons, rather than turning a ring around the shutter button. Shoots hi-def, but can't zoom while filming. The first with an "auto fire when subject smiles" mode — but a dedicated shutter button on top just for that feature? Really? Also, the photos are soft and fuzzy.

THE BOTTOM LINE As the ridiculous megapixel race winds down at last, camera companies are now putting effort into differentiating their cameras — and wow, are there some weirdies here, like the two-screened Samsung, the green-screen mode of the Casio and the would-be camcorder Panasonic.

And if you can choose only one? I have three favorites this year, for different reasons. (That's the price we pay for differentiation.)

The Fujifilm F70EXR is superior in low light (and has that 10X zoom). The Panasonic Lumix ZS3 takes great hi-def movies (12X zoom). (The Nikon S8000 is extremely similar, but costs more.)

The Samsung DualView TL225 zooms only to 4.6X, but offers that huge touch screen and the amazingly handy small front screen. (Honorable mention to the Kodak Z950. It doesn't quite match the big boys' photo quality, but what you get for $183 is amazing.)

Oh — and for the price and pocketability, all three of this year's winners take very good photos. That's always a nice feature to have in a camera.

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,然...