enjoylife's Stuff

Home » enjoylife (6 trails)
enjoylife's Stats (public trails only):
Trails created: 80
Marks created: 1245
Views received: 100,353
Positive ratings: 1
Negative ratings:
Comments received: 3
Comments left: 0
super master (enjoylife)

enjoylife's Trails: every    (view all)
标 题: Re: Megaupload一晚上能下3个wii游戏
发信站: BBS 未名空间站 (Thu Nov 6 15:06:59 2008)

发现装了megaupload toolbar 后有
happy hour premium - Every day, from 9pm to 3am eastern, we're giving away
premium status for free for every user of the Megaupload Toolbar! Simply
press the happy hour button and enjoy the full set of premium features.

估计就是楼主说的那个
--
Tags: 题, 估计就是楼主说的那个, 发信站, 发现装了megaupload, 后有, ...
A trail of 3 pages
It’s hard to find a place to research food—the kind that you buy at the grocery store and put into your body every day. As people become more aware, and concerned, about what thy eat, a site like Zeer makes more and more sense. Zeer, which launched earlier today, is a product review site for food. It contains nutritional information for 114,000 food products, and each one can be rated and reviewed.
Tags: food—the, it’s, place, concerned, nutritional, ...
A trail of 3 pages

first, make a script, like /root/check_temp.sh:

#!/bin/sh
TEMP_A=`/usr/sbin/smartctl -d ata -A /dev/sda | grep Temperature | cut -d ' ' -f37`
TEMP_B=`/usr/sbin/smartctl -d ata -A /dev/sdb | grep Temperature | cut -d ' ' -f37`
THRESHOLD=65

#In case Temp B doesn't return a reading (You only have one drive)
if [ "$TEMP_B" = "" ] ; then
 TEMP_B=0
fi

#Check to make sure it's not running too hot
if [ $TEMP_A -gt $THRESHOLD ] || [ $TEMP_B -gt $THRESHOLD ] ; then
 logger -s "One of the drives has exceeded the threshold of $THRESHOLD degrees C."
 poweroff
fi

make it executable: chmod 755 check_temp.sh

edit root's crontab (/etc/crontabs/root) to include this script. This one will run the script every fifteen minutes:

# standard crontab format for busybox cron daemon.
# fields may be lists
# min    hour day month wd  command
#  *      *    *   *     *   dosomething

# save the time every 60 minutes use 7 minute past the hour.
7   *    *   *     *   date +%m%d%H%M%Y.%S > /var/lib/now
0,15,30,45 * * * * /root/check_temp.sh

Then, either reboot the box, or restart cron: /etc/init.d/crond.sh stop, etc/init.d/crond.sh start

Tags: smartctl, root, cron, grep, temp, ...
A trail of 2 pages
What you end up with is a smoother flowing picture, but it's dependant on the source, and the particular t.v.'s ability to deal with the input.

The most common refresh rate for today's Televisions are 60hz for NTSC-based systems and 50hz for PAL-based systems. However, with the introduction of some Blu-ray Disc and HD-DVD players that can actually output a 24 frame per second video signal, instead of the traditional 30 frame per second video signal, new refresh rates are being implemented by some television display makers to accommodate these signals in the correct mathematical ratio.

If you have a TV with a 120hz refresh rate that is 1080p/24 compatible (1920 pixels across the screen vs 1080 pixels down the screen, with a 24 frame per second rate). The TV ends up displaying 24 separate frames every second, but repeats each frame according to the refresh rate of the TV. In the case of 120hz each frame would be displayed 5 times within each 24th of a second.

In other words, even with higher refresh rates, there are still only 24 separate frames displayed every second, but they may need to be displayed multiple times, depending on the refresh rate.

To display 24 frames per second on a TV with a 120hz refresh rate, each frame is repeated 5 times every 24th of a second.

To display 24 frames per second on a TV with a 72hz refresh rate, each frame is repeated 3 times every 24th of a second.

To display 30 frames per second on a TV with a 60 hz refresh rate, each frame is repeated 2 times every 30th of a second.

To display 25 frames per second on a TV with a 50 hz refresh rate (PAL Countries), each frame is repeated 2 times every 25th of a second.

To display 25 frames per second on a TV with a 100 hz refresh rate (PAL Countries), each frame is repeated 4 times every 25th of a second.

If the television is also required to do a 24 frame per second to 30 frame per second or vice versa frame rate conversion, then you also have to deal with 3:2 or 2:3 Pulldown as well where the 24 frames of film will be stretched onto 30 frames.
Tags: refresh, frames, rate, signal, television, ...
A trail of 4 pages

SQL JOIN

The JOIN keyword is used in an SQL statement to query data from two or more tables, based on a relationship between certain columns in these tables.

Tables in a database are often related to each other with keys.

A primary key is a column (or a combination of columns) with a unique value for each row. Each primary key value must be unique within the table. The purpose is to bind data together, across tables, without repeating all of the data in every table.

Look at the "Persons" table:

Tags: data, tables, sql, persons, bind, ...
A trail of 3 pages

I love the Drupal CMS. One of my favorite features of Drupal is the ability to do a multisite install. This site and my other blog, i <3 stella, are hosted on the same box, using the same Drupal install. Several sites can share one codebase. Updates are easily rolled out to every site simultaneously. Overall, it's a wonderful idea. But I have some problems with the implementation...

The standard way to set up a multisite install is to point each of the domain names at the Drupal install folder and let Drupal sort out which domain each request is coming from. It does a good job, too. But this method introduces some complications. For example, any content uploaded to site a is accessible from site b. A user that visits http://site1.com/myimage.jpg will find the same image as she finds at http://site2.com/myimage.jpg. Websites can't have domain specific .htaccess or robots.txt files either, which might hurt search engine optimization of individual sites.

An interesting side effect of this is if you want to install something in a subdirectory of your site, for example a WordPress blog at http://site1.com/blog, that exact same WordPress blog will exist in its full glory at http://site2.com/blog...

Another, and perhaps more grave, problem is that all that stands between the interweb and your very own personal settings is an .htaccess file. Install scripts, includes, site configurations and database passwords are in web accessible directories, and that is never a good thing.

We'll look at one solution to these problems.

I assume here that you are using Linux hosting, that you have shell access, and that you have at least a passing acquaintance with symlinks. If you're looking for a webhost that meets these requirements, check out 1and1 shared hosting. I've been happy with them, and all of their packages above $9.99/mo will do what you need.

Microsoft/IIS guys, you can't do a symlink. You're looking for something called a junction... good luck with that.

Tags: install, http, jpg, htaccess, multisite, ...
A trail of 29 pages