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

Wednesday, March 31, 2010

PHP Server Side Includes (SSI) - include() VS require()

Server Side Includes (SSI)

You can insert the content of one PHP file into another PHP file before the server executes it, with the include() or require() function.

The two functions are identical in every way, except how they handle errors:
  • include() generates a warning, but the script will continue execution
  • require() generates a fatal error, and the script will stop
These two functions are used to create functions, headers, footers, or elements that will be reused on multiple pages.

Server side includes saves a lot of work. This means that you can create a standard header, footer, or menu file for all your web pages. When the header needs to be updated, you can only update the include file, or when you add a new page to your site, you can simply change the menu file (instead of updating the links on all your web pages).

http://www.w3schools.com/PHP/php_includes.asp

Monday, March 29, 2010

Ubuntu 8.10 approaches end-of-life

Ubuntu 8.10 approaches end-of-life - The H Open Source: News and Features

Ubuntu Logo Ubuntu Release Manager Steve Langasek has reminded users that Ubuntu 8.10, code named Intrepid Ibex, will reach its end-of-life on Friday the 30th of April, 2010. Version 8.10 of the Debian-derived Linux distribution was released on the 30th of October, 2008 and was the first to feature an Ubuntu LiveUSB creator and an encrypted private directory for users. The desktop edition included, for example, GNOME 2.24, GIMP 2.6, Firefox 3.0 and OpenOffice 2.4. After the 30th of April, no new updates, including security updates and critical fixes, will be available for Intrepid Ibex.

Intrepid Ibex users are advised to upgrade to one of the current standard releases, Ubuntu 9.04 (Jaunty Jackalope) or version 9.10 (Karmic Koala), to continue receiving updates. The developers note that users wanting to upgrade to 9.10 from 8.10 will have to upgrade to 9.04 first. The standard releases are supported for 18 months of updates for both the desktop and server versions. Long Term Support (LTS) versions of Ubuntu are supported for three years for the desktop releases and five years for server releases.

The current development release is Ubuntu 10.04 LTS Beta 1, code named "Lucid Lynx", from earlier this month. The final version of Lucid Lynx is scheduled to be released on the 29th of April of 2010. Ubuntu is sponsored by UK based Canonical Ltd.

15 Games for Linux

Stop Wine-ing: 15 Games for Linux | Linux Magazine:

"While gaming on Linux has suffered some recent setbacks with id Software and Atari seemingly having abandoned the Linux platform, there are some bright spots on the horizon. (See Commercial Gaming, Coming Soon to Linux?.)

Many believe that Wine and other Windows emulation solutions may be their only recourse for high-quality gaming enjoyment. That, however, it not entirely true. There are plenty of smaller, independent gaming houses developing and releasing premium commercial games for Linux alongside Mac and Windows offerings. Search hard enough and you’ll find games ranging from low-resource puzzle solvers to 3D first-person shooters.

Let’s have a look at some of the games recently released for Linux and a few up-and-coming prospects for the future."

Welcome to bloggers from China to Standard Bank in South Africa

Welcome to bloggers from China | Standard Bank blog

Submitted by Standard Bank Team on Thu, 2010/03/18 - 09:54

We are excited to be able to meet face-to-face a group of influential bloggers from China to the Standard Bank Group head office today.

The bloggers are visiting South Africa to find out more about the country so they may present their perceptions to their followers in China and around the world.

During their visit to Standard Bank Group's head office they will hear more about our history, business and social media activities.

Standard Bank Team's picture

List of Chinese bloggers

Submitted by Standard Bank Team on Thu, 2010/03/18 - 11:02.

The bloggers cover a variety of subjects from business, society, culture and media to Internet, science and technology. Their trip is was coordinated by the South Africa Mission in Beijing. These are some of the bloggers from China.

Ping Ke 平客 and Steven Lin (Flypig) 飞猪
http://antiwave.net/
Microblogs: http://t.sina.com.cn/flypig and http://t.sina.com.cn/buchimifan.
This duo are well known in Internet circles for their audio podcast at Antiwave.net. They have not updated in a long time, but a series of podcasts almost live from South Africa would be very well received in China's media and Internet circles. In addition, both of them have popular microblogs (Twitter type mini blogs) on Sina.

William Long
www.williamlong.info
Widely-followed tech blogger, influential in Internet and IT industries.

WebLeOn
webleon.org
Internet and tech blogger with a huge Feedburner and Feedsky readership.
Also on Twitter: http://twitter.com/webleon

Acosta
Internet celebrity.
Currently the third most popular celebrity blogger on Sina, and the only one to have drawn his celebrity entirely from his blog. Initially enshrouded in mystery and the subject of speculation about behind-the-scenes hit-count manipulation, Acosta has since gone on to publish a volume of essays and impress at least a segment of the literary establishment with his writing abilities. (English sample here: http://cnreviews.com/blogs/the-desert-spring_20100201.html )
Blog: http://blog.sina.com.cn/acosta

Beijing Female Patient (北京女病人)
http://lome2000.blog.163.com/?Life2
A popular female blogger who works in the media, her blogs centre on her personal life, but has a huge following.

Chun Sue 春树
http://blog.sina.com.cn/springtree
Microblog (which she uses more frequently): http://t.sina.com.cn/springtree
Famously the author of Beijing Doll (2002), Chun Sue supposedly wrote the first "cruel youth" novel in China, published when she was 17. She regularly blogs and microblogs on Sina and is very popular with the generation of Chinese people born after 1980.
Contact: "Chunsue" ,

Shi Zhao
http://shizhao.org/
http://twitter.com/ShiZhao
China Wikipedia programmer and blogger. Well known for being part of a team who conducts the Chinese Bloggers Conference every year.
Contact: @shizao on Twitter, shizhao@gmail.com, 13691189514

Andrew Yu (安猪)
http://anzhu.net/
http://www.1kg.org/
The founder of one of the more well-known NGOs in China, 1kg which encourages city youth when they go on holiday to the countryside to take school supplies for rural schools. Andrew Yu has a background in the sciences but has turned his organization into more of a commercial model than purely not-for-profit. However, his company's blog on NGOs is very widely followed.

Mr Sean Shu,
General Manager & Chief Editor of Da Qi, the biggest Chinese community website (www.daqi.com)

Ms Vina
Bloger of Douban Website, one of the most popular websites in China, some of her blogs are listed as following:
my douban:http://www.douban.com/people/nanarun/
my blog:http://vina.blogcn.com/index.shtml
http://t.sina.com.cn/vinana
http://vina.blogcn.com/diary,29430488.shtml
http://vina.blogcn.com/diary,25076769.shtml
http://vina.blogcn.com/diary,24160305.shtml
http://vina.blogcn.com/diary,22922562.shtml
http://vina.blogcn.com/diary,24652623.shtml
http://vina.blogcn.com/diary,24584983.shtml
http://vina.blogcn.com/diary,19787776.shtml

Mr Wang Jilu
Deputy Chief Director of Netease, www.netease.com

Sunday, March 28, 2010

Five Tips on How to Build a Quiet PC

Five Tips on How to Build a Quiet PC

If you're a computer enthusiast who's ready to mod your current computer with the latest and greatest computer hardware, or if you're someone who just can't stand the noise your computer is constantly making, you're in luck. Below are the top five tips on building a quiet pc.

1.) Power Supply - This is the device that produces the power for your computer. Unfortunately, this is almost always the noisiest part your computer includes. It usually contains one or two fans which are used to cool the device down. Fortunately, with today's technology, you can now buy power supplies which only use their fans when the temperature reaches a set point. This will both reduce noise, and save energy.

2.) Case Fans - The reasons for having case fans are obvious, to create proper airflow. Unfortunately, for some computers, they're only there to create obnoxious noise. If your computer is mainly used for documents, internet, and e-mail, chances are you don't need more than one case fan. A system used for the latest computer games on the other hand, will need proper airflow to bring internal temperatures down to a safe operating level.

3.) Disk Drives - If this is your noise issue, there isn't too much you can do, except invest in a CD or DVD drive known for being a quieter model, or insert acoustic padding around them. If you're having issues with floppy drive noises, I'll just tell you now, you're way behind in technology. A memory card reader is far faster, and is completely silent.

4.) Hard Drives - Hard drive noises are often difficult to suppress as well. The common hard drive noises are heard when the device is in use, opening a program, installing software, etc. Often the noises are the vibrations between your hard drive, and your hard drives mount. Cushioning your device with padding like silica gel can often reduce some of the noise. If you're hard drive is making unusual and highly noticeable noises while not in use, there's a chance it could be failing. Please consult a service technician if this is the case.

5.) Computer Case - This is often forgotten about. There are many types of cases engineered in all sorts of ways. You can even purchase a case with sound padding materials included in it. Consider the material of the case itself. An aluminium case can by flimsy, and can increase noise levels from its vibrations. A steel case however, is more solid, and is less prone to creating vibrations. The down side of a steel case would be its weight. Whichever case you decide to use, adding acoustic sound padding, silica gel, and foam blocks, will significantly reduce vibrations.

Building a quiet pc isn't for everyone. If you own a brand name computer, you'll likely have a hard time following the tips shown above. Modifications to a brand name computer could potentially void a warranty. I would suggest researching this first before using my tips. You must also remember that your computer must run at safe operating temperature to avoid any device malfunctions, or even failure. Testing and research is always recommended.

Thursday, March 25, 2010

Tips For The Multi-Display Life

Tips For The Multi-Display Life : A Tale Of Two Monitors

5:30 PM - March 18, 2010 - by Alan Henry

1. A Tale Of Two Monitors

Thinking about adding a second monitor to your desk? Here are reasons to take the plunge, and options to consider while shopping and setting it up.

At homes and in offices, we've started to notice more than one display per desk. Ask the users of these multi-monitor desks whether they'd be willing to return to a single monitor system, and they'll likely tell you they'll give up the second display when you pry it from their cold, dead hands. So, what's the appeal? Do multiple displays really make computer users more productive? If so, are three monitors better than two? Is there such a thing as too many displays, or too big of a display? Those are the questions we aim to answer in this article. Whether you already have a second monitor or you're considering picking one up to add to your workspace, there are a couple of things you should consider to get the most out of your multi-display setup. First, make sure to pick the right size and the right type of monitor for the work that you do. Second--make sure to use the right software to get the full benefit of having multiple displays connected to your computer. We'll help you determine both.

Why are size, type, and software so important? For example, if you're a PC gamer, you should have different priorities when buying a second monitor than a software developer or a Web designer. Similarly, a movie buff looking for a big display to replace the TV will be looking for something different than a PC gamer. Alternatively, if you're a laptop or netbook user, you may want a different kind of display than a desktop user, who might be looking to match the experience he gets on each monitor.

Over the course of this tutorial, we'll dive into those scenarios, and other considerations, such as making sure to take your workspace into account when shopping for a display. Also, we'll look at some popular multi-monitor configurations and displays, as well as some software options that will help you get the most out of your multi-monitor workstation.

Wednesday, March 24, 2010

50 Places Running Linux That You Might Not Expect

[H]ard|OCP - 50 Places Running Linux That You Might Not Expect

Focus has posted a really interesting list of 50 places running Linux. Some of the companies and places on the list are obvious but others just may surprise you.

Linux is hovering just beneath 1% of the overall market share in operating systems. And although that might sound like a small number, Linux is far more than just a fringe OS. In fact, it's running in quite a few more places than you probably suspect. Below are fifty places Linux is running today in place of Windows or Mac.

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