Programming

What to do!

I’ve got three major programming projects to do right now and I’m so torn as to which one to start first.

The first one should be fairly simple, as I’ve already done it once. I just have to copy the information from one project to another project that uses the same stuff (It’s great when projects are just copied that way the logic, code etc is all the same)

The second one is just generating reports. Very boring shit. I already have the MySQL select statement for it (That was another post). But I have to create the output from it now. Again, pretty simple, but boring as hell. I like making the statements and figuring out the hard shit. But when it comes to the easy part of it I just don’t want to do it.

The last one is a personal project. I’ve got three copies right now of my iTunes library. One on my Powerbook, one on my Desktop and one on my iPod. The one on my iPod is the one with all the good playlists and the song counts. The one on my desktop is pretty much empty but I have created a few playlists that I like and the one on my powerbook is brand new and just has like 60 songs that I’ve downloaded recently.

What I want to do is to create a script that would take the play count and the last played information from the powerbook and the ipod and merge that into the library of my desktop (As the desktop is the “main” computer, it’s where all the music is really housed for now. Once I get my Terastation that will all change). The iTunes library is a very straight forward xml file. Here’s an exmample:

Track ID62

Namedon't wanna know

Artisti f williams

Albummidwest blvd

KindMPEG audio file

Size3326247

Total Time207856

Year2004

Date Modified2004-04-28T05:31:18Z

Date Added2005-06-14T06:55:46Z

Bit Rate128

Sample Rate44100

Play Count2

Play Date-1090388574

Play Date UTC2005-07-19T07:45:22Z

Track TypeFile

Locationfile://localhost/Users/chris/Music/iTunes/iTunes%20Music/i%20f%20williams/midwest%20blvd/don't%20wanna%20know.mp3

File Folder Count4

Library Folder Count1

So there are three places that I need to update: “Play Count”, “Play Date”, and “Play Date UTC”. These can just be copied from which ever is newer. I can also put in some logic that if they are equal, not to update anything. The real question is how do I determine when to add the play counts together. The first time I do it, everything will just get added. But if I do it subsequent times what determines what should be added to where?

I suppose, I could just reset all play counts on my powerbook and ipod after each merge. That way any new plays would be added to the main computers playcount would be new plays, and not old plays which have already been added in.

Now I’m sure you’re all saying. Why the hell go to all the work to do this? Well because, I have over 7,000 songs. That’s 19+ days of music. Some of these songs haven’t been listened too in over a year simply because they keep getting lost in the suffle. Other songs get listened too all the time, because I know I like them and seek them out. I have a playlist called. “Unplayed Songs”. Whenever I just want background music I put it on this playlist and let it go. That way I have new music playing that I haven’t heard in a while. With adding playcounts together this will ensure that I hear songs I don’t seek out on a semi-equal share of time as songs that I do seek out. (Because of the way this is playlist is set up, the most infrequently played songs are automatically put on it).

Once I get my TeraStation and my PowerMac (Or Mac Mini, depending), this will all make life easier. My iPod hasn’t been updated since I bought it because it has all the good playlists that I like on it. However they were lost sometime when my External HD crashed (What was that, like Nov or something?) But once I get my Desktop Mac, that will become my main computer, and thus make it easier to move my XML playlists between the two (as the PATH will be the same).

I also have the delima of searching for songs. My Powerbook has ~60 songs, my Desktop over 7K and my iPod about 5k. So not every song is going to be in each playlist and they aren’t all going to have the same keys. I thought of seaching on the PATH, but they are different between the Powerbook and the WIndows Desktop, so that won’t work. Which leaves me one option. Double searching on the Artist and Song Name. Very annoying. I’ll have to remember how to search too! Damn Bennett.. Driving search functions into our heads!

I’m really almost tempted to extract all the XML info into a Database and work from there then recreate the XML file… But I’m sure in the long run that will be harder. But who knows really?! I mean, how am I going to write to the file too? I’m going ot have to open at a certian spot and then overwrite at the same spot with different info making sure that nothing is really fucked up. And let’s face it, I’m not THAT good of a programmer.

In other news, my life is boring as you can tell.

Night all.

Sleeping Habits

Well, last week I was sleeping WAY too much, and now so far this week (Since friday) I haven’t been able to sleep more then 4 hours a day. Anyways, Saturday I got a whole two hours, and then sunday I got a whole 4 hours. So yeah. I’m hoping tha tI can get lots of sleep today…. For some reason my head just won’t shut up when I’m trying to go to sleep. I sit there and think about all kinds of things… Like today I was thinking about what I’d do if I randomly got $500,000. Or what pictures I”m going to take when I’m back in Iowa… I already have like 100 perfect shots thought up. I’m sure that I’ll forget them all by the time I get to Iowa, but whatever. Most of them are in my G&G’s town and Creston… I’m also a bit excited and hope that I can hit the farm while I’m there to take pictures of the barn and the old machinery we have around.

I really wish I had someone from here to take back with me so that I could show them the wonderfulness that is Iowa… I’m sure I could ask a lot of people, but who would I want to go, and share that with?

I also realized that I LEAVE Iowa the day before Andrew gets back. 🙁

Today hasn’t been all that exciting. I got up and called my dad and talked to him for a bit. Then I went to Costco and bought Star Wars IV,V and VI. THen I came home and watched them (Luke Skywalker is SO HOT!) tell Bastian came over and worked on my computer. He was making a movie and needed a Mac, so I told him he could use mine. He was also really nice and seems really cool. So that was fun. Again I hope we can hang out again.

Speaking of, Andrew asked me if I thought anything would happen between Myke and I. I think one of three things will happen: 1) He’ll never talk to me again. 2) We’ll be friends, who probably don’t really hang out that much. 3) Maybe date.

I think and am hoping that the option 2 is going to happen and hopefully hang out more then I think we would as friends. He was a really fun guy and I hope that he thinks I’m at least somewhat fun. Problem is that he always seems to have something to do. IE, Friday when I went over to hang out he had actually been invited to like 3 other things… And as most of you know, I don’t feel that I’m the most exciting person, so what motivation is there for him to hang out with me and not all these other people…. Option 3 is out because… I feel like he’s too hot for me to be able to date and also I think he reminds me too much of Andrew to date as well. Though I think things could be overcome in that department if it comes down to it… Not to offend either Andrew or Myke.

However, I have this strange gut feeling that option 1 might be actually what’s happening… But that could because I get really paranoid that people don’t like me when I feel that I’m always the one IMing them first… Such is the case here. And he always takes forever to respond when I do talk to him online… Though I know most people don’t sit here like I do and repsond as soon as they hear the little sound. lol. I don’t like making people wait for a reply on AIM. but that’s just me… The point is that when I feel like I’m always the first to IM someone, I feel like they hate me. lol.

Umm, also I’ve recieved 4 offers to hook up this weekend… cound them 4… All from people I know, all completly randomly. Friday night I got two calls while I was out with Myke… And then Saturday night I got one, and tonight I got one! Very crazy. Where’s this coming from!? One of them was even a straight boy. So that was hot. 🙂 Anyways.

I’ve updated my myspace (link on the side). I tried to make it look like my webpage. I was even going ot put the picutre at the top, but the ads pop over it. Very annoying. I did find a way to make the ads go away, but I figured I might as well be nice to myspace, that is how they continue to provide a free service. Maybe I’ll just move them… time will tell.

I also have a three day weekend in August…the 26-29.. I was thinking about going up to sequoia national park. But I have no one to go with… I was thinking that if hotels were cheap enough that I’d just go alone… but I looked them up and the cheapest hotel I could find online up there was $70 a NIGHT! Holy buckets.. that’s expensive. Even if I could get just ONE person to go with me, that’s still be $120 or so with tax just on the hotel.. Plus food, and gas and entry to the park… Grrr. So yeah, that looks like it won’t happen.

I really want some of my aunt’s salami… It takes forever to make though and is SO not good for you.

Speaking of not good. I was going to hit the UCI 24 hour fitness today… So I left my place at 10, got there about 10:30 and the fucking place was CLOSED! They fucking close at 11pm.. How stupid is that, it’s RIGHT ACROSS THE STREET from a HUGE ASS CAMPUS, how in the WORLD can they close at 11pm! So Yeah, I didn’t go to the gym tonight… And then I forgot to eat dinner so I got to work and was starving, so I ate a donut. 🙁 Talk bout not good.

Screw me.

Gym…

Well I went back to my normal gym today… Thankfully the dirty man wasn’t there. lol. However I did eat an ice cream bar after I was done. lol…. And I’m back down to 172 now, so I’ve lost 8 pounds… I’m wondering where it’s coming from because I don’t think the belly is getting any smaller yet!

So yeah, only 9 hours of sleep today. And I ate a minute steak. It was yummy, but I was too lazy to make potatos to go with it. Maybe tomorrow or something. I love mashed potatos… My grandma makes the best, well to tell you the truth, they’re actually MY mashed potatos when we go there and eat them. It’s the thing that I’m in charge of at her house. But her noodles make the mashed potatos even better… God I can’t wait tell August when I get to go back. I’m going to have her make me a big roast and noodles and just sit there and eat bowl after bowl of htem..

I’m also going to hit up Tylers Pharmacy and get a…. Uh oh, I can’t remember the name of those drinks… but either way, they’re only 25 cents and so good. That places was such a great part of my childhood. I love it there.. I’m going to take SO many pictures when I go there this summer. Good old small town Iowa. 🙂

Umm.. I called Andrew tonight, of course I got his voice mail. I cried… I also got an e-mail from Susan again, saying not to do anything stupid and to call her if I need to. She’s sucha great woman.

I also left my hours at 10pm, instead of 11 tonight… I thought it was 11 when I left, in fact I didn’t realize it was 10 tell I got to the gym and asked myself why the place was so damn busy! Gah. I could have watched another episode of QaF! Blasted. Oh well.

I’m kind of annoyed at work. I think I’ve mentioned it before, but I’m re-writing large parts of the timesheet. Well, I added this status report thing, and then it got changed and now it’s being changed BACK to the way I had it the first time. So annoying. It’s like, hello! Let’s think things through here. Blah. Also, since I got to the gym an hour early, I also came in an hour early, and I was going to spend that hour writing this updae and doing other random things for myself… but it was spent instead fixing a problem that didn’t exist.

I got a job offer today too. I had been interviewing with this company in DM, however when they sent me the offer they changed it from a fulltime job to an 8 week contract job in italy or something random like that. I had to say no.

Mmmm, mashed potatos and noodles!

Laters all.

No Computer for me?

So this morning I bounced bastion. It never came back up.

So I met oscar at the datacenter and we couldn’t connect to it. Anyways long story short is that Damon tried to pin it on me, when it wasn’t my fault at all. I was told to bounce it, I did and that’s all I did. Grrr. I also got blamed for bringing down one of the sites last night.. Now, it WAS me that brought it down. But 7 other people had APPROVED my bringing it down! So it’s NOT my fault. This whole CR process is just NOT WORKING. Because one of the people who approves these things based on the CR process, just e-mailed saying that she didn’t catch it and things like this should be on OUR shoulders. The whole IDEA of the CR process is that the AM knows what the hell is going on and approves of denies things if something else is already scheduled.

I also heard that the company is not planning on buying me a laptop. Apparently They feel that my apple laptop is good enough. Even though the newest member of our team was bought a new apple laptop AND a mac mini, by the office… I’m not sure if it’s just a mis understanding (That maybe they guy incharge of this stuff, who just started a couple months ago) thinks that the company bought my laptop, or what. But I have to get time to talk to him about that.

I’m also getting a little annoying about this whole RT thing. An e-mail was sent out today by one of the VP’s complaining that it wasn’t done yet. An e-mail was replied saying that Zac had been working on it before his accident. Now, lets get it straight, zac had never TOUCHED the new box. It was ALL MINE. And the hold up was Damon! But anyways, the new guy is working on it, so whatever. It’s out of my hands now.

Ok, in other news, not much else going on. I’ve been REALLY tired lately, which is wierd. Usually when I work out, I get more energy, now I seem to never have any.

Blah blah blah. I’m out.

Lots to write

You know. I’ve actually been thinking about a lot of stuff to write about here today, but now I can’t remember any of it. Only reason you got a long post yesterday was because I wrote reminders. I should have done that today as well I guess.

Anyways, still having solaris problems. Damon didn’t respond to me yesterday. I really hate that about him. He’s a nice enough guy. But he NEVER responds to you unless you corner him here in the office. AND he’s always saying, “Oh, I’ll send this or that to you” and he NEVER DOES. Look how long it took to get that guys name from him!

I also got a very scathing e-mail from the VP the other day (who happens to be the CEO’s brother) and of course he CCed it to the CEO. But anyways he was complaining at me about installing apache2 on the new corp webserver. (I did that because I wasn’t TOLD that they wanted 1.4, I just assumed we should use the newest version)… Well I guess I should go back first. Two days ago he sent me an e-mail saying the website didn’t work any more. After being moved from a windows box with apache1.4 onto solaris with apache2. Anyways, the website had SSI’s and it had files named *.GIF and they were referenced at *.gif. Now on windows, which doesn’t give a shit about CAPs, that wouldn’t have been a problem. But here on solaris were GIF, gif, GiF, Gif, giF, and gIF are ALL DIFFERENT FILES! Well the first e-mail he sent me said that he wanted apache1.4 installed on the machine (about 1.5 hours work to install and configure it) so that the page would work.

Now remember at this point he had NEVER TOLD ME WHAT THE PROBLEM WAS. Just that he wanted apache1.4 installed. So I asked oscar what the problem was, and found out. And fixed the problem in Apache2. (About 15 minutes work). But anways, he sent me a mean e-mail but after I talked to him about it, he understood and saw that apache2 was actually the better choice.

Not much else going on here. I’m going home early today. I’ve spent way to much time here this week already (38, plus the ten for fri). So yeah.

I’ve also decided that I’m going to be going to the beach every Sat/Sun from now on. I’ve lived here way to long and have only been to the beach a few times. So I’m going to start going every weekend and get a hot tan. 🙂

Oh, I found the BEST lj_community ever: found_photos!

Ok. laters!