Skip to main content

Posts

Showing posts from February, 2010

Automatic web page translation : Webpages - Google Chrome Help

Automatic web page translation : Webpages - Google Chrome Help : "Google Chrome's built-in translation bar helps you read more of the Web, regardless of the language of the web page. A Blue translation bar will be activated automatically at the top of the page, whenever you come across a page written in a language that doesn't match the browser interface language you've selected." The quality of translation is acceptable, at least you needn't to guess the meaning of menus, buttons, etc., which are comprised of short phrase or just one word. I love Google Chrome for three reasons, I can synchronize bookmarks with Google Bookmarks, so I can use my bookmarks on any machine; I can create menus on favourite bar, and of course, type and search! Built-in translation tool will be a great help for me, since my mother tongue is Chinese, I often feel difficult to retell a story that I have learnt from a Chinese Web site into in English.

LiveJournal’s new user revenue sharing program

LiveJournal has a revenue shareing program, called "Our Journal – Your Money", but it is only available to LiveJournal Paid Account holders and supported by Google AdSense. Once you sign up, you’ll keep 100% of the earnings (after Google takes their cut). You control where ads appear and whether they’re text or images. Buy Paid Account now and join Your Journal – Your Money program to earn more out of your journal.

YOURLS: Make Your Own URL Shortening Service

URL shortening services are ubiquitous on Twitter. Google URL Shortener at goo.gl is currently available for Google products, such as Buzz. goo.gl seems a perfect domain (very short and composed of parts of the word "google") for google. .GL is short for Greenland, which is a self-governing Danish province located between the Arctic and Atlantic Oceans. The registration fee for a .gl domain is quite expensive, $129.00 for year, instead of $10! YOURLS is a set of PHP script that will allow you to run your own URL shortener, a la TinyURL. You can make it private or public, and a WordPress plugin makes integration with your WordPress blog (and Twitter) a snap. Yourls, a server-based webapp that can run pretty much anywhere a WordPress installation can. There are lots of other options, which we'll get to as well, but Yourls is a fairly smart and fast way to get up and running with your own URL shortener. http://yourls.org/ http://lifehacker.com/5335216/make-your-own-ur

Session hijacking

One of the problems with sessions is that, by default, they rely on the use of a cookie to work properly. When a session is started, it sends a cookie that resides in the user's Web browser. Every subsequent page that calls session_start() makes use of the cookie, which contains the session name and ID, to know to use an existing session and not to create a new one. The problem is that users may have cookies turned off in their Web browser or may not accept the cookie because they do not understand its purpose. If this is the case, PHP will create a new session for each page and none of the registered variables will be accessible. You can use sessions without cookies by passing along the session name and ID from page to page. This is simple to do, but if you forget to pass the session in only one instance, the entire process is shot. To pass the session name from page to page, you can use the SID constant, which stands for session ID and has a value like session_name=session_ID

Webmaster Tools verification errors

I changed my Blogger template, that caused Google Webmaster Tools verification error. I tried to reverify by meta tag, but reverification failed, the reason is "couldn't find the verification meta tag. I checked the layout html code, and found Blogger actually altered the meta tag: meta content='nLNz0zzW0vaKx-pIrbCsxkAx57GlUwiscsI2WHx-_A8' name='google-site-verification' The order of "mata name" and "meta content" swapped, and double quotation marks has been changed to single quotes. That's why Master tools couldn't find the meta tag! Blogger in Draft has already integrated with Webmaster Tools, and verification can be done automatically, "Blogger in Draft dashboard to take you directly to Webmaster Tools. If you follow it, we’ll add all your blogs to Webmaster Tools and verify them for you automatically . " And the verification method is upload a html file which is already there, rather than by meta tag.