It’s almost 1 AM, and I have to go home. We got an extra hour last night, but I could’ve used three. Got enough sleep, but woke up at noon… Not the greatest. Take my advice and don’t mess with your sleep routine that much.
Tag: sleep
A Little Scripting
I just completed the 5th gig night in a row with Jack Swift. If you haven’t, go check out the blog. I haven’t posted there in a while, but the other guys have and there are pics. Recordings too.
In the mean time I was playing with Perl a little this past week, and have something that may be of interest to some who would like a nice way to let a user know about how long a script has been slept. I wanted to write a function that would basically provide a counter that updated every second (not hard to do at all), without actually creating a newline and thus adding to clutter in the terminal (that had me scratching my head). So, after some Googline, here it is:
sub sleep_progress {
$|++;
my $i;
for ($i = 1; $i <= $_[0]; $i++){
print “Slept $i out of $_[0] seconds\r”;
sleep(1);
}
print “\n”;
}
So, then just call the function like this: sleep_progress(30), replacing 30 with some other number of seconds or a variable containin a number of seconds. Whatever. They key is the \r in the print function, which moves the cursor back to the beginning of the line, so that it can overwrite the line. However, I couldn’t get this to work that way; nothing would display at all. The $|++; part actually makes it work the way we want.
Mondays
A lot of people dispise Mondays, as it is the beginning of the week for most. It’s the time when the weekend is over, and you have to get back to the drudgery of work/school/whatever. I used to feel the same way. Okay, I guess I do still a little. But for the most part, Mondays actually aren’t too bad. As long as I get enough sleep the night before (going to bed at around 11:30 on Sunday does this), I’m pretty good, even after a rough weekend. My schedule on Monday isn’t too bad; it’s actually similar to the other days of my week.
Well, yeah, I’m in school, and at some point my schedule will change or I’ll go to work and I’ll end up hating Mondays again. But for now I’ll just take the time to enjoy it while I can.
1st Week
Well I’ve been back a full week now, and I must say it’s not so bad. Some of the same old stuf as last year, but this time I think I have a better handle on some things, which is good.
One thing that’s nice is that it’s starting to get cooler, particularly at night. This is good because we can air condition less, though we still end up running the one in one of the bedrooms, as we don’t get the cross breeze and there are computers running. But the rest of the apartment is staying cooler more now.
There are a few classes that I’m trying to get myself into the right state of mind for. Namely, I want to do well. Not just that, but excellent. I need to annihilate them. In a good way. They are just ones that I would like to conquer. Now, what I’m still working on is getting myself into the right state of mind, developing the right habits, and I think I’m improving. Sometimes I think you have to brainwash yourself, just a little bit.
Well, I’m going to try to get some sleep. But before I do, I will say that I’ve decided pursue turning WordPress into more of a content management system, rather than try to throw together a bunch of PHP. So, I’ll probably expand the category selection, and put up a few static pages. I’m not sure when I’m going to get around to this, but at some point I most certainly will. And who knows, maybe I’ll think of something else too.
Sleep Deprivation
It’s after 2 am, and I have to get up at quarter to 9. Yes, it’s Saturday morning. See, my roommates had a party. It wasn’t a big or loude party, but I hung out, and it just got late. Now I have to do about 20 minutes worth of driving in seven hours, as well as stay awake and have fun. I think I can pull it off.
Sleep is a funny thing for me. If I can get nine hours of it, it’s amazing. I mean, I’m not too tired, but I’m pretty rested. It takes a few nights of nine hours sleep to get into it, but once I’m used to it it’s a great schedule. The problem is, I don’t always pull this off; I generally get 7-8. I can work with this, but it’s not as nice. And then sometimes I get 6-7, which is doable, but not as pleasant. I can pull a four or five hour night once in a while.
Sometimes you can gamble, and get a long, restful night and then do a late night with two hours of sleep (or even none at all). People who do LAN parties (of which I am not an avid pursuer) can attest to this.
People need more sleep. Everyone has their own ideal amount, but I think that most people don’t get as much as they’d like. There are a lot of reasons, but maybe sometimes it’s the thrill of being up late. I don’t know, I’m tired. Now go to bed.