Rant: My ‘theory of sleep’
I was just thinking. I am currently really tired, yet I remember myself yawning and getting to bed about 7.5 hours before I woke up this morning. The point? Why am I tired during the middle of the day when I more or less got the adequate amount of sleep that is generally required for humans.
I think the answer is simple, but I did not realize it ever really, or at the very least I have not vented, written it down so I could come to understand it. Anyway, my ‘theory of sleep’ is simple. If you stay up longer, you become drained, and require sleep. Now, if you are awake before your body wants to you feel groggy for awhile. However, as long as it is not extreme, so say 1 or 2 hours before, the grogginess goes away. Where as if you awake when your body does want to, or choose not to awake, the body has gotten the adequate amount of sleep, and therefore you are not all groggy. What then happens though, is through the slight interactions you have, energy is wasted, and thus you feel tired quicker then if you would have woke up an hour or 2 before your body wanted you to.
Anyone agree with this theory?
(Changed to a rant on August 18th, 2006)
Creating Thumbnails with PHP
This will be the first of many PHP scripts I have written that I’ll be putting on my site.
I wrote this awhile back so that http://www.imagelord.com (which may or may not be working anymore) had thumbnail support. Other sites like http://www.imageshack.us use something similar as well, I am sure.
PHP has image manipulation functionality built in. It supports many image formats, including the popular GIF, JPEG, and PNG. It does this via the gd library, information about it (and specific explanations of functions used in the PHP script below) can be found at http://www.php.net/gd.
I have written a little library that you can test, by clicking any of the following links:
(thumbnails removed October 22nd, 2007)
The pictures are located in this directory- http://apexad.net/keira/ and they are all of keira knightley.
thumbnail.php (the library) is below:
Continue reading Creating Thumbnails with PHP…
Movie Review: Seven Samurai
On IMDB this movie is in the top 250, in fact it is at #7. The truth is, the movies is well before my time. Having been made in 1954, I don’t know how much it appeals to my generation. The movie is too stretched out, and could be dramatically shortened without taking anything out of it. However, putting that aside, the movie is decent. I will give it a 3.5 out of 5. It’s a great movie about brotherhood and how the old should be respected, which is a theory that is maybe forgotten a little bit today by most Americans. It also is a classic tale of the weak finding a way to stand up to powerful and seemingly impossible to defeat bandits. Since this movie is so old, it does not have any specific actors that I know of, but it is directed by Akira Kurosawa.
I recommend this movie, however, because it is all subtitled, I suggest watching it 100% sober and with no interruptions
Entries and comments feeds.
Valid XHTML and CSS. ^Top^
32 queries. 0.449 seconds.
Powered by WordPress with jd-nebula theme design by John Doe.