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

Thursday, November 19, 2009

Google ChromeOS: It's basically a modified browser that runs web apps

Google ChromeOS: It's basically a modified browser that runs web apps

by Brad Linder (RSS feed) Nov 19th 2009 at 1:37PM

Google ChromeOS
Google is holding a press event to talk about the upcoming Google Chrome Operating System. The company is not ready to release the OS yet, and won't actually have a finished product ready for another year. But Google announced that starting today the project is open source, which means that you can download the source code today.

So what exactly is Chrome OS? It's an operating system based on a web browser called... Google Chrome. The idea is that you won't have to (or be able to) install a single application directly on your PC. Rather, all of your apps will be run from the web and all of your data will be stored in the cloud.

That doesn't mean the computer won't be able to play games or interact with USB peripherals. For instance, Google demonstrated that you can plug in a camera and watch videos using a web-based video player or copy files to cloud-based storage. And because Google has been working to give web apps access to your PC's hardware, even video games with 3D graphics should be possible as long as you have a video card that's supported by ChromeOS.

The version of ChromeOS that Google demonstrated today is still a work in progress, and we were told that the user interface could change significantly before the final product is released. But the OS already boots in just 7 seconds, and Google says it takes another 3 seconds to launch applications.

The screenshot above shows an app menu that you can use to launch some web apps. You can create permanent shortcuts to these programs by "pinning" them to the ChromeOS toolbar. See those tiny tabs at the top? Those are pinned tabs.

There will also be persistent "panels" that pop up and stay on top even when you flip between browser tabs. For instance you can bring up a Google Talk panel, a music player, or a notepad.

ChromeOS will be automatically updated each day by connecting to the web and making sure that you have all the latest updates.

What do you think? Are you ready for an OS that's effectively useless without an internet connection? While the operating system stores some data on a local storage partition, Google says it's basically just a user cache area and that data will all be synced with the web. That means if you lose your netbook or buy a new one, you should be able to pick up where you left off without missing a beat.

Stay tuned for details. The news conference is still underway. In the meantime, you can check out a few more photos after the break.

Update: You will be able to perform some tasks while offline. For instance, you can cache movies, music, or eBooks and access them while you're on a plane. But the OS is primarily designed for interacting with web services.

Update 2: If you have absolutely no intention of picking up a machine with Google Chrome OS, there's good news: All of the new features that show up in Chrome OS will be able to work with the Google Chrome browser for Windows, Mac, and Linux.

Wednesday, November 18, 2009

Google to show off Chrome OS Thursday, release it in 2010

Google to show off Chrome OS Thursday, release it in 2010

by Brad Linder (RSS feed) Nov 17th 2009 at 6:30PM

Google Chrome mockup
Remember that rumor last week about how Google was going to unveil the first beta release of its upcoming Chrome operating system this week? Yeah, it's looking like that's not going to happen. But the company is holding an event Thursday morning to talk about Chrome OS and show some honest-to-goodness demos for the first time so that we can all stop using conceptual mockups with every blog post on the topic.

Google Chrome OS is expected to be available sometime next year, although it's still possible that a beta could be launched before the end of 2009. From what we know, the operating system, which will be initially aimed at netbooks is designed to blur the lines between desktop and cloud by essentially treating an always-open browser as the desktop. For instance, that will make it just as easy to save documents to Google Docs as to your desktop, if not easier.

Tuesday, November 17, 2009

Duplicate a website like Teleport on Ubuntu Jaunty Linux

Duplicate a website like Teleport on Ubuntu Jaunty Linux | Tech Mix

(I also installed GWget, a GUI to wget through Synaptic Package Manager, HL)

If you are a Windows user, you probably know about Teleport to download or create a copy of a website on your hard-disk

What about on Linux? Well, you have another alternative powerful option: using wget

- To mirror your website:

wget --convert-links -r http://www.yoursite.com

- To download specific file types:

wget –accept=.html,.doc,.docx,.pdf,.xls,.xlsx,.ppt,.pptx –recursive –no-clobber –page-requisites –convert-links –restrict-file-names=windows –domains yoursite.com –no-parent http://yoursite.com/path

Is there any better alternatives? Please share with me.

-------------------

KWebGet provides a graphical interface for wget.
Khttrack is an offline web browser that could be a good Teleport alternative.

Monday, November 16, 2009

How Do I Set Up The PayPal™ Payment Module?

PayPal - Zen Cart(tm) Wiki

Detailed setup instructions are contained in the Zen Cart™ distribution zip file in /docs/3.readme_paypal_ipn.html.

Contents

PayPal™ Setup Instructions in a Nutshell

This applies to North American PayPal™ users (and maybe others too).


ON THE PAYPAL™ WEBSITE

  1. Log in.
  2. Click on Profile.
  3. Click on Email.
  4. Write down your primary email address, noting any UppErcAse LettERS (if any). You need to use this exact email address in your Zen Cart™ settings in the next section below.
  5. Click on Back to Profile Summary.
  6. Click on Instant Payment Notification Preferences.
  7. Click on Edit.
  8. Turn it on (check the box).
  9. Set the URL to: http://www.myz_domain.com/MY_SHOP/ipn_main_handler.php. (The complete correct URL can be obtained from your Admin area inside the PayPal payment module's information settings.)
  10. Click Save.
  11. Click on Website Payment Preferences.
  12. Auto Return for Website Payments - set to on.
  13. Other settings in this area can be set based on your preferences. Consult PayPal™ for their meanings.
    • Payment Data Transfer ... If you're using PDT, make sure you have the same token in Zen Cart as you have in PayPal.
    • Encrypted Website Payments ... set this to OFF. Zen Cart does not currently support this option.
    • PayPal™ Account Optional ... if you want to allow customers to pay by credit card and not have to create a PayPal™ account, set this to ON
  14. Click Save.
  15. If your website's language is not a Western/European language, go to Language Encoding and set your language.
  16. Turn off ALL tax and shipping settings in your PayPal™ account. These will cause your transaction amounts to not match Zen Cart™ amounts, and thus your orders will not be released.
  17. Oh ... and ... if you've never had your PayPal™ account "verified", you should follow their steps to do so.


IN ZEN CART™

  1. Admin > Modules > Payment > Paypal.
  2. If this is the first time configuring for PayPal™ on this site, then you need to click on Install.
  3. Otherwise, click on Edit.
  4. Enter the primary email address of your PayPal™ account.
  5. Configure any other options as desired.
  6. Note the URL's suggested in the top of the PayPal™ module's instructions - they should match what you have set in your PayPal™ profile in the steps above for the PayPal™ site.

Another tutorial you might check out is at Camelot Hosting - PayPal™ Setup Tutorial.

Using PayPal on Multiple Sites

You can use a single PayPal™ account to collect payments from multiple Zen Cart™ sites simply by following the "In Zen Cart™" instructions above, for each site. Zen Cart™ will send override information to PayPal™ to let them know which store to send its notifications to.

If you use your PayPal™ account on non-Zen Cart™ sites or on eBay™, be sure that you have all "taxes" and "shipping" options disabled in your PayPal™ profile; otherwise these charges will be added to your Zen Cart™ orders and cause them to not match, and therefore they won't be released or added to your orders list.

Things to check if it's not working

These are the common configuration errors:

  1. If it "was" working, but stopped, make sure PayPal's services are running properly. PayPal Live Server Status
  2. Make sure your site is *not* in down-for-maintenance mode.
  3. Make sure your site does *not* have password-protection via .htaccess in order to get to the "store" area.
  4. Check that the email address you enter for PayPal™ in Zen Cart™ admin matches CaSE-SenSItiVE exactly with your PRIMARY email address setting in your PayPal™ account profile on PayPal's™ site.
  5. Is your PayPal™ account "verified" yet?
  6. Is your PayPal™ account a "Business" account? (Business is preferred. Premier can be used in some cases. Personal cannot.)
  7. Check with your host that port 80 and 443 are open for bidirectional communication.
  8. Use your browser and go to the Login page of your store. If the page is SSL, do you get any certificate errors in your browser? Test from a couple different computers that you don't normally use. An invalid SSL certificate or one that has errors of any sort, could prevent PayPal from successfully posting the notices to your site.
  9. Try accessing http://your_site.com/ipn_main_handler.php with your browser. If you see PHP errors, those will need to be resolved. If you get a white screen, then the first phase of PayPal™ contacting your site isn't encountering errors. This doesn't mean there aren't any, it just means the initial most obvious steps are working.
  10. There are two communication testing tools available in the support forum. If you are asking for troubleshooting help, please supply the URL to each of these tools after you have installed them on your site, so we can assess the responses they reveal.
  11. Turn on debug logging in your PayPal™ module, and post a link to the zipped log files so they can be analyzed. You'll need to check to be sure that your /includes/modules/payment/paypal/logs folder is marked read/write (chmod 777). Then use your FTP program to access/view those logs and zip-and-upload them for analysis.
  12. Check there is no IP block or firewall to prevent PayPal's™ servers from talking to your server (your host should check this, and you should check any blocking you may have done via your control panel. Also check .htaccess for any deny from statements and be sure none of them are addresses related to PayPal™.
  13. You may find it helps to Uninstall ("remove") and Re-Install the payment module in Zen Cart™ admin.
  14. When you use two PayPal™ accounts to make a simulation, make sure you're using the right account.
  15. Check your PayPal™ profile settings on paypal.com
  16. Turn off ALL tax and shipping fees in your PayPal™ profile. They will cause the purchase price to mismatch when returning to Zen Cart™.
  17. Using your hosting control panel, find the "Error Log" option, and check your server's errorlog entries to see if any attempts to access your site's ipn_main_handler.php file are being denied for any reason.
  18. If you have a SEFU or SEO contribution installed, try removing it and testing again. Some are not configured to allow PayPal processing.
  19. Prior to v1.3.8, the PayPal™ IPN handler (ipn_main_handler.php) uses its own version of application_top. If you make changes to your application_top.php, be sure to make these same changes (if applicable) in includes/modules/payment/paypal/ipn_application_top.php.
  20. If you're using Payflow Pro (or Website Payments Pro UK), check your PayPal Manager area for any IP address restrictions. If you've got it restricted to only accept payment requests from certain IP addresses, make sure your webserver's IP address is in the list. Or clear the list out completely. A call to PayPal tech support can verify whether they have any additional IP addresses recorded that you can't see.
  21. You can check whether PayPal has tried to send you IPN notifications that have failed, and re-send them if needed. In your PayPal account, in the My Account tab, go to the History menu and choose the IPN History option. Tick the relevant boxes and press "Resend selected". If there are many "failed", it's best to start with just checking ONE and attempting Resend. Then check your store to see if it comes through (give it 10-30 minutes). If it doesn't show up in your store, check the IPN debug logs on your server and see what errors have been recorded there.

How Does IPN work?

"IPN" = "Instant Payment Notification" ... part of PayPal's™ "Website Payments Standard" service.

  1. Customer places an order on your site
  2. For payment, they are taken to a link on PayPal's™ site, where they provide their information and pay for their order.
  3. They click a link when finished (or wait 5 seconds) and return to your site.

Meanwhile, between steps 2 and 3 above, PayPal's™ server does this:

  1. Paypal's™ server sends a request to your website...which is waiting and listening for connections from PayPal™ to the /ipn_main_handler.php page.
  2. Your server sits waiting and listening on ports 80 and 443.
  3. When your server receives a request, it attempts to validate and be sure that the PayPal™ data provided matches the order details for which it is intended.
  4. If validation passes, the customer's order is released, and it lets the PayPal™ server know that you received their confirmation. This handshaking happens bidirectionally on ports 80 or 443, depending on how it was originated.
  5. NOTE: PayPal's™ server will attempt the IPN notification (hourly) for up to four days if it's not successful on the first try. In this case your customer's order will not show up in the Admin until the IPN notification is successful.

Testing PayPal™ Transactions

To test that PayPal™ is properly configured, you should test two methods:

  1. Test by paying for something using a PayPal™ account (not the same account as your store).
  2. Test by paying for something with a credit card WITHOUT creating or using a PayPal™ account for payment.

All of these tests are to be performed in "production" or "live" mode. Do NOT use a Sandbox for testing. (If you don't know what this means, just proceed with testing.)

Testing using a PayPal™ account

  1. You need a second PayPal™ account to do this. PayPal™ allows you to have two accounts per person: one personal and one business. For this test, you will pay for your purchase using funds on account in your personal PayPal™ account. You will be paying money to your store account (and refunding it).
  2. Create or select a product which has a low price, such as $0.01 or maybe $1.00.
  3. Purchase that product.
  4. During checkout, choose the lowest-price shipping option.
  5. During checkout, choose PayPal™.
  6. After the Checkout Confirmation screen, you'll be taken to the PayPal™ website to make payment.
  7. Enter your PERSONAL PayPal™ account username and password.
  8. Confirm the transaction.
  9. You will be returned to your store after completion.
  10. Verify that you received two or three emails: one from PayPal™, one from the store to you as a customer, and one from the store to your Admin address. If you did not receive the emails from the store within five minutes, then go to the Troubleshooting section of this document, above.
  11. Log in to your BUSINESS PayPal™ account and refund your test transaction.

Testing without a PayPal™ account

To test payment by credit card without using a PayPal™ account, use these steps:

(Before proceeding, find your credit cards, and select one that's not already associated with any PayPal™ account !!)

  1. Create or select a product in your store which has a low price, such as $0.01 or maybe $1.00.
  2. Purchase that product.
  3. During checkout, choose the lowest-price shipping option.
  4. During checkout, choose PayPal™.
  5. After the Checkout Confirmation screen, you'll be taken to the PayPal™ website to make payment.
  6. Underneath the login box for PayPal™ username/password, there is a link to Purchase without a PayPal™ account. Click that link.
  7. Fill in and/or confirm your personal information.
  8. Fill in your payment details including credit card number. (You should NOT use a credit card number that's already associated with any PayPal™ account !!)
  9. Confirm the transaction.
  10. You will be returned to your store after completion.
  11. Verify that you received two or three emails: one from PayPal™, one from the store to you as a customer, and one from the store to your Admin address. If you did not receive the emails from the store within five minutes, then go to the Troubleshooting section of this document, above.
  12. Log in to your BUSINESS PayPal™ account and refund your test transaction.

What's the difference between PayPal Standard, Express, and Pro?

Zen Cart(tm) Tutorials and FAQs - What's the difference between PayPal Standard,...

PayPal Express Checkout gives the customer two options: They can jump over to the PayPal site to login to their account BEFORE completing checkout on your store (which allows them to select their address information there and never have to re-type their address details on YOUR site, thus the "express" part of the transaction) and then choosing shipping choices and discounts/coupons etc before completing the order ....... OR they can go to the PayPal site to login to their account AFTER making shipping/payment/coupon selections on your site (and creating an account on your store and typing their address info on your store), much like they do with Standard.
With Express Checkout, the customer can pay without having a PayPal account (as long as you have "PayPal Account Optional" enabled inside your PayPal merchant account settings: Profile->Hosted Payment Settings->Website Payments Preferences->PayPal Account Optional = ON), except for merchants/customers in China.
One important benefit is that Express Checkout does not rely entirely on the IPN communications to your store in order to release the order. Instead, it stores the order immediately when payment is completed. It doesn't have to rely on the PayPal server to talk to your server in order to store the order. Granted, you will still want PayPal's server to be able to send IPN updates to you for any orders, in case you do refunds or adjustments to the order... so that those updates are reflected in your store's order history.
Express Checkout has all the same features as Website Payments Standard, but is more reliable because it completes the transaction directly while the customer is actively engaged on your site. It supports all the currencies, payment methods, etc, just the same, but more efficiently.

PayPal sees Express Checkout as a payment option that's offered in addition to other payment choices such as a credit card gateway, and that adding Express is a way to allow PayPal members a very quick and easy way to pay using their PayPal account. Many merchants do use Express Checkout as their sole payment processing option, even without a credit card gateway.

Many merchants also add Website Payments Pro:

Website Payments Pro appears to the customer only as a couple fields to enter their credit card number directly on your website. They have no idea that in the background you're processing their card via PayPal. They have to make an account on your site, and supply the address details, but once they confirm the order, the payment is collected immediately and the order saved. It doesn't rely on IPN to release the order. However, it does store any transaction updates done on the PayPal end such as refunds etc as long as IPNs can be received by your server. Website Payments Pro is currently only offered in the USA, UK, and Canada. A monthly service charge applies, and there is an account application process and credit check to complete before the feature can be activated on your account. PayPal Express Checkout must be enabled in order for Website Payments Pro to be offered on your site.

PayPal sees Website Payments Pro as a payment gateway for handling credit cards. That's exactly what it is. Coupled with Express Checkout, it gives your customers the maximum amount of choice about how to pay: either by credit card directly on your site, or by using their PayPal account to submit payment.

PayPal Website Payments Standard (formerly referred to as "PayPal IPN" in older versions of Zen Cart) takes the customer to PayPal's site AFTER the ENTIRE checkout in order to make payment. The customer can pay without having a PayPal account (depending on what country YOU are in ... PayPal limits that feature for some countries). After the payment is completed, your store is notified of the completed payment, after which time the order is stored in your database. If the customer pays without making a PayPal account and closes their browser when presented with the invitation to make one, your store sits in limbo and never gets the order (due to a bug in PayPal's logic, which they've not fixed yet). If they DO have OR make a PayPal account, you get the notification and the order is stored in your database.
**IF there is any problem in PayPal's ability to communicate to your server, you will never see the order in your store (or receive the confirmation email from your store), because it relies entirely on PayPal's server being able to talk to your server in order to store the order.

PayPal sees Website Payments Standard as a solution for merchants wanting to collect payments on their site easily, especially if they have no other payment method available.
Zen Cart recommends using Express Checkout instead of Website Payments Standard.


More information about the various PayPal services can be found on the PayPal website.


Another much-less-commonly-asked-about PayPal service is:

Payflow Pro is essentially *only* a merchant account. Transactions conducted via Payflow Pro (for US Merchants) do not appear in your PayPal account ... instead, they are forwarded directly to your merchant bank account. Basically, Payflow Pro is just like any other traditional payment gateway (akin to Authorize.net etc). In North America you can connect the Payflow Pro service to your own merchant bank account. In the UK, the Payflow Pro service is actually bundled as a hybrid service with Website Payments Pro, connecting all the transactions to your UK PayPal account, and all monies are deposited to your PayPal account, instead of directly to your bank account.
Zen Cart does not have built-in support for the US Payflow Pro service. However, there is a free addon which can be used for this purpose if required.

Please see PayPal's website for more Payflow and PayPal information.

Sunday, November 15, 2009

Obama Begins First Visit to China

Obama Begins First Visit to China - NYTimes.com
Published: November 15, 2009

SHANGHAI — President Obama arrived here late Sunday on the third leg of his four-nation trip to Asia, where he is working to strengthen ties in the region.

Stephen Crowley/The New York Times

President Barack Obama arrived in Shanghai, China, on Sunday evening.

After meeting with world leaders in Japan and Singapore, the president is beginning his first visit to China, where he will have a chance to see for himself this country's spectacular rise.

The President and his advisers, including Secretary of State Hillary Rodham Clinton, are expected to discuss a wide-range of issues with China's leaders, including North Korea, terrorism, the environment, human rights and the fragile state of the global economy.

The President is expected to praise Beijing for its efforts to stimulate its economy, aiding a global recovery that is now gathering steam. But he is also expected to press Beijing to allow its currency to appreciate and to speed up market reforms and give American companies greater access to its market, which could bolster American exports and help create jobs in the United States.

The three-day visit to China comes after the president traveled to Japan and Singapore, where on Sunday he attended an Asia-Pacific economic summit. During those trips, President Obama pledged to forge closer ties with Japan, a longtime ally, and in a speech in Tokyo said that he does not fear China's rise but welcomes it.

In Singapore on Sunday, the President met world leaders, including Russian President Dmitri A. Medvedev and suggested the two nations may agree to sanctions against Iran because of the slow progress that country has made in negotiations over its uranium enrichment facility.

Now, the President will get his first glimpse of China, which after a sharp slowdown last year and early this year, is in the midst of another growth spurt. The country's economy is likely to grow by about 8 percent, by far the best performing major economy, accounting for much of the world's economic growth this year. The country's real estate and stock markets are once again booming, and hot initial public stock offerings are luring frenzied investors to play in the financial markets.

China's exports have suffered through a sharp slowdown, down more than 20 percent from a year ago, when China racked up a huge trade surplus with the rest of the world. But this year China is expected to surpass Germany as the world's biggest exporter, and record a trade surplus in excess of $200 billion.

Trade tensions with the United States have eased significantly over the past year, largely because a large drop in Chinese imports. But American labor unions and some members of Congress continue to press for trade sanctions, arguing that China manipulates its currency to gain an unfair advantage, costing America jobs.

Other economists, however, contend that the currency is a false issue, noting that only 18 percent of America's imports come from China and that many of those are simply assembled in China, using parts from around the world. Many of China's biggest exporters to the United States are American and European companies that operate factories here.

The president arrived on Air Force One at about 11:15 pm, during a cold rain, and drove through the center of this country's richest and glitziest city, past skyscrapers and bright streets that advertised Chinese brands like Li Ning sportswear, but also Louis Vuitton, Gucci and Prada.

On Monday, the president is scheduled to meet Shanghai's leaders, and then hold what is being billed as a town hall meeting with "future leaders of China," mostly university students. Mr. Obama is expected to take questions from the young people, but also to field questions submitted through the Internet. The meeting is expected to be broadcast live inside China, according to several Chines journalists, and also on the White House web site, www.whitehouse.gov.

Administration officials say the president is eager to interact directly with the country's young people, with questions unfiltered by the government.

Later Monday, the president will fly to Beijing, where he will hold high level meetings with Chinese President Hu Jintao and Prime Minister Wen Jiabao. He is also scheduled to attend a state dinner and to visit a section of the Great Wall.

Wednesday, November 11, 2009

APT HOWTO - Managing packages

APT HOWTO - Managing packages
(Click the above link to find out how to install, remove and update packages, HL)

The packaging system uses a private database to keep track of which packages are installed, which are not installed and which are available for installation. The apt-get program uses this database to find out how to install packages requested by the user and to find out which additional packages are needed in order for a selected package to work properly.

To update this list, you would use the command apt-get update. This command looks for the package lists in the archives found in /etc/apt/sources.list; see The /etc/apt/sources.list file, Section 2.1 for more information about this file.

It's a good idea to run this command regularly to keep yourself and your system informed about possible package updates, particularly security updates.

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