You're almost as happy as you think you are.
Archive for January, 2009
如何设置gallery 2 默认显示顺序g2_imageViewsIndex
Jan 31st
If multiple image sizes are defined for an album and you want to show the full size image as default, you run into probs, ’cause always the 1st defined custom resized size will be choosen as default.
This behaviour is defined in the following file:
/gallery2/modules/core/classes/GalleryTheme.class
Around Line 1744 you’ll find
if (empty($imageViewsIndex)) {
$imageViewsIndex = 0;
}
Change the $imageViewsIndex to the value you need.
The value I need?! What ya mean?
Navigate to an image in your gallery and choose the size you want to set as default.
For example: [yourwebsite]…?g2_itemId=26&g2_imageViewsIndex=4
In this example the g2_imageViewsIndex is 4, so you need to change the above code to that value.
That would result in
if (empty($imageViewsIndex)) {
$imageViewsIndex = 4;
}
That’s it, now another size is default. Have Fun!
Create your Google Sitemap Online – XML Sitemaps Generator
Jan 31st
工具地址:http://www.xml-sitemaps.com/
Create an XML sitemap that can be submitted to Google, Yahoo and other search。
Search Engine Optimization (SEO)
Jan 31st
原文链接:http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=35291
http://www.google.com/support/webmasters/bin/answer.py?answer=35769
SEO is an acronym for “search engine optimization” or “search engine optimizer.” Deciding to hire an SEO is a big decision that can potentially improve your site and save time, but you can also risk damage to your site and reputation. Make sure to research the potential advantages as well as the damage that an irresponsible SEO can do to your site. Many SEOs and other agencies and consultants provide useful services for website owners, including:
- Review of your site content or structure
- Technical advice on website development: for example, hosting, redirects, error pages, use of JavaScript
- Content development
- Management of online business development campaigns
- Keyword research
- SEO training
- Expertise in specific markets and geographies.
iphone成功升级至2.2.1使用QuickPwn225越狱成功
Jan 31st
我的港版iphone成功升级至2.2.1,并使用QuickPwn225越狱成功,几个常用软件装好了,就剩几个比较实用的比如91手机助手(主要是要他的来电地区显示的功能)因为暂时还没有2.2.1版本的,还有就是WEBFIT等暂时都还没法装,只有等最新版出来了。
使用iphone已经有一段时间了,总的来说还是很满意的,夸张点可以用爱不释手来形容,无论是外观设计还是软件人性化体验等等,都很好,某些时候已经把她当作一个每天必须打开的工具了。
Listing Your Website on Google–SEO 研究
Jan 14th
How does Google find your site and list it? Merely registering your domain on the Internet isn’t enough.
As soon as your site is available on the Internet, you can submit it to Google by completing the add URL form at www.google.com/addurl.html.

Another way to be listed — and to raise your PageRank too — is by getting other websites to link to yours. After that, when Google’s robots or spiders, known as Googlebot, crawl the web, they should run across your site within a month or so. As we mentioned in the page How Google Works, there are two types of crawls, fresh crawls and deep crawls. Your site most likely will first get a fresh crawl in which only pages Google deems most important are crawled. After Google runs a deep crawl of your site, most, if not all of the pages on your website that contain links from other pages will be crawled and subsequently listed on Google — except pages that are included in the file robots.txt, which lists pages that you don’t want Google to crawl and pages containing code that Google is unable to parse. (Other search engines — though not all of them — also obey your instructions in robots.txt.)
Recently Google developed Google Base, a service, like a bulletin board, for posting all types of content, e.g., coupons, reviews, jobs, housing, events, tickets, merchandise. Things for sale may get cross posted on Google’s Product Search and locations may get cross posted from Google Base to Google Maps.
For more about how to get your site listed on Google, visit www.google.com/webmasters/1.html.
How can you remove websites, individual pages, cached pages, and outdated or dead links from Google’s index? Visit www.google.com/webmasters/remove.html.
不要做北极熊
Jan 11th
今天从同事那里听到了一个关于北极熊的故事,感觉很有道理,转载出来与大家分享。
在北极圈里,北极熊是没有什么天敌的,但是聪明的爱斯基摩人,却可以轻易地逮到它。爱斯基摩人是怎么办到的?就是靠上帝给人的智慧吧!
他们杀死一只海豹,把它的血倒进一个水桶里,用一把双刃的匕首插在血液中央,因为气温太低,海豹血液很快凝固,匕首就结在血中间,像一个超大型的棒冰。做完这些之后,把棒冰倒出来,丢在雪原上就可以了。
北极熊有一个特性:嗜血如命。这就足以害死它了。它的鼻子特灵,可以在好几公里之外就嗅到血腥味。当它闻到爱斯基摩人丢在雪地上的血棒冰的气味时,就会迅速赶到,并开始舔起美味的血棒冰。舔着舔着,它的舌头渐渐麻木,但是无论如何,它也不愿意放弃这样的美食。忽然,血的味道变得更好——那是更新鲜的血,温热的血。于是它越舔越起劲——原来,那正是它自己的鲜血——当它舔到棒冰的中央部分,匕首扎破了它的舌头,血冒出来。这时,它的舌头早已麻木,没有了感觉,而鼻子却很敏感,知道新鲜的血来了。这样不断舔食的结果是:舌头伤得更深,血流得更多,通通吞进自己的喉咙里。最后,北极熊因为失血过多,休克昏厥过去,爱斯基摩人就走过去,几乎不必花力气,就可以轻松捕获它。
推荐一款iphone拉风软件midomi
Jan 7th
推荐一款iphone拉风软件midomi
说如果你喜欢哪首歌,但是你不知道名字,就让iphone来“听一听”,然后iphone就会帮你上网自动去找,这个软件够拉风。
美国IDC查询工具集合
Jan 5th
美国IDC查询工具网址集合如下:
http://www.linkwan.com/gb/broadmeter/
http://www.traceroute.org/
http://www.globalcrossing.net
http://en.wikipedia.org/wiki/Tier_1_carrier
http://www.hiopen.com/faq.html
http://www.fixedorbit.com/stats.htm
IP及相关信息查询:
http://www.arin.net/index.shtml
http://www.zoneedit.com/lookup.html
WHOIS查询:
PDF在线转换工具:
INTEL CPU比较工具:
http://compare.intel.com/PCC/intro.aspx
查询某IP下站点信息: