Friday, February 06, 2004
Friday Morning
The poor little boy isn't feeling well. He got up several times last night. He finally decided that at 4am he was ready to be up, and that he was ready for us to be up with him. He is weezing and really congested. I ran to the store this morning and got him a vaporizer and some medicine.(There are some of the strangest people that work and shop at walmart at 4:30am) My wonderful Wife has sent me back to bed. While she is up with him.
Thursday, February 05, 2004
Just another Manic Thursday
Well it has been a thursday...<quote who="Arthur Dent">This must be Thursday. I never could get the hang of Thursdays.</quote>
Today was one of those days where you wake up with the greatest of intentions. You are going to put a huge dent in that big project that is due yesterday, infact you think, hey if things go well enough I can have it finished early. But somehow you still done seem to get anything done.
I got up early, grabbed the 5:50am train into LA, got the 6:50am into burbank, was in at my desk by 7:15am. Starting going at it and got four pages of content in the CMS in 45 minutes. I was rockin'. But (there is always a but isn't there) then people started coming in. So you know how it goes. You can't focus on what you are working on because every ten minutes you are putting out fires. Some of them, three at a time like this afternoon, and it's flustering. It's one of those happy problems. If you weren't any good they wouldn't bother you. But I am fairly good at what I do. So I get asked for help on everything from graphic design work to server problems. And I am happy to help, but at the end of the day, I still have to get my work done, you know...
I have been working hot and heavy on the CMS project. I've come up with a list of questions. So I called over to the vendor we got it from, and my contact wasn't in. (He is the guy that wrote the CMS) I've called a couple times before and got the same thing. Of course he is incredibly cool and gave me his cell phone number so I can call him. So I did, and I asked him today about it. He says yeah, if I am in the office I get bombairded with requests. So if I have to focus or do anything like programming logic I do it from home.
Now this is my ideal situation. This sparked in my little memory something I had talked with my boss about the other day. Working from home on Fridays. A couple of Fridays a month to start. So I went in and asked if it would be cool of I worked from home tomorrow. And he thought for a moment and said, 'Yeah, I don't see anything wrong with that.'. So I am a happy programmer. I get to work from home tomorrow. No 2 1/2 to 3 hours work of train rides. No interuptions...Except the little boy....hummm. Maybe I should think this thing through.
Today was one of those days where you wake up with the greatest of intentions. You are going to put a huge dent in that big project that is due yesterday, infact you think, hey if things go well enough I can have it finished early. But somehow you still done seem to get anything done.
I got up early, grabbed the 5:50am train into LA, got the 6:50am into burbank, was in at my desk by 7:15am. Starting going at it and got four pages of content in the CMS in 45 minutes. I was rockin'. But (there is always a but isn't there) then people started coming in. So you know how it goes. You can't focus on what you are working on because every ten minutes you are putting out fires. Some of them, three at a time like this afternoon, and it's flustering. It's one of those happy problems. If you weren't any good they wouldn't bother you. But I am fairly good at what I do. So I get asked for help on everything from graphic design work to server problems. And I am happy to help, but at the end of the day, I still have to get my work done, you know...
I have been working hot and heavy on the CMS project. I've come up with a list of questions. So I called over to the vendor we got it from, and my contact wasn't in. (He is the guy that wrote the CMS) I've called a couple times before and got the same thing. Of course he is incredibly cool and gave me his cell phone number so I can call him. So I did, and I asked him today about it. He says yeah, if I am in the office I get bombairded with requests. So if I have to focus or do anything like programming logic I do it from home.
Now this is my ideal situation. This sparked in my little memory something I had talked with my boss about the other day. Working from home on Fridays. A couple of Fridays a month to start. So I went in and asked if it would be cool of I worked from home tomorrow. And he thought for a moment and said, 'Yeah, I don't see anything wrong with that.'. So I am a happy programmer. I get to work from home tomorrow. No 2 1/2 to 3 hours work of train rides. No interuptions...Except the little boy....hummm. Maybe I should think this thing through.
Wednesday, February 04, 2004
The day after a rain
There is something about the day after a rain here in So. Cal.. The skys are so beautiful, the air is freshing and cleansing. Even the trees seem to be smiling. Of course the ones without leaves are feeling a little embarrassed about being sans verge with the weather being so nice.
Outside my window here at work, I see the lovely swaying of green trees with the purple mountains serving as a back drop. The Blue sky with the light whispy clouds that act like they have nothing to do but hang around and watch the day go by. It's hard not to just stare out there into space and do nothing.However that isn't going to happen.
We just got out of an interview with a new canidate for the eMarketing position here at work. The person we interviewed seemed to know what they are doing. They would probably be a good fit. But change is hard. I worked with KrissV for two years. She's my friend. So its hard to think that, there wll be this new person, who you are going to be working with for x amount of years. And of course questions pop up in your head that you can't really answer or even ask of this new person. How this affects you, your workload? Is this going to be a nice person, that is easy to get along with, or are they going to fight you on every point all of the time? It all comes down to time, I guess. Working with KrissV was easy because we had spend enough time working together that we knew where the limits were. Now there is a new person and you have to invest the time in finding out where the limits are going to be. Like I said change is hard. I didn't used to think that, but as I grow older, change grows more difficult.
We just got out of an interview with a new canidate for the eMarketing position here at work. The person we interviewed seemed to know what they are doing. They would probably be a good fit. But change is hard. I worked with KrissV for two years. She's my friend. So its hard to think that, there wll be this new person, who you are going to be working with for x amount of years. And of course questions pop up in your head that you can't really answer or even ask of this new person. How this affects you, your workload? Is this going to be a nice person, that is easy to get along with, or are they going to fight you on every point all of the time? It all comes down to time, I guess. Working with KrissV was easy because we had spend enough time working together that we knew where the limits were. Now there is a new person and you have to invest the time in finding out where the limits are going to be. Like I said change is hard. I didn't used to think that, but as I grow older, change grows more difficult.
Sunday, February 01, 2004
myDoom Hits it's target
Well, it seems like the myDoom virus that has been spreading like wildfire had hit it's target.
Rueters has the story on their site, as do countless other news sources.
MyDoom Net Worm Scores Hit, Knocks Out SCO Site
This virus was responsible for 10% of all emails on the internet last week. Which is just an amazing number. SCOs CEO Darl McBride is offering an reward for information that leads to the arrest of the person or persons that are responsible for writing this virus. Though I don't think anyone is going to come forward. What SCO did with it's IP (Intellectual Property) lawsuit against Linux and IBM struck at the core of a very tightknit and powerful community. Some of the best programmers in the world work on and write code for Linux. I also find it interesting that SCO itself had a Linux program going and it stopped work on that after it had sold Microsoft rights to Unix. Humm, a big influx of money from Microsoft and then SCO stops their Linux program and starts going after anyone else that is working on linux.
I can't condone whoever wrote this virus, even if the intentions are good, this is causing more work to an already over worked IT staff. And in the end the people that will be affected by it have no idea about the SCO/Linux controversy. However, the person(s) that wrote this virus probably don't have all the money that a big corporation does to fight this out in the court system for years and years. I can see both sides of the story. I can't condemn them either. The DoS attack that they are launching is in essense a digital version of a protest. I know that not everyone sees it that way. But what is the differents between the Grocery Strike here in CA. where the striking employees were physically preventing the deliever trucks and customers from entering the parking lot. They are simply digitally not letting customers get to the web store front of SCOs parking lot.
At the root of this controversy is one word "Monopoly". (No not the board game) There is a good chance that if SCO wins this suit, that microsoft will have a Monopoly on the Intel based computing operating systems. Now don't get me wrong, I am not anti-Microsoft, in fact I make my leaving writing in microsoft's C#. However I do think that computing needs are too diverse for one company to be the end all be all. I want to be able to have different operating system running on my machine. I also think that there are some computing tasks that Linux is the only platform I would choose. Also did the government split of Bell because it had a Monpoly of the phone/communication systems? How is this any different then that?
MyDoom Net Worm Scores Hit, Knocks Out SCO Site
This virus was responsible for 10% of all emails on the internet last week. Which is just an amazing number. SCOs CEO Darl McBride is offering an reward for information that leads to the arrest of the person or persons that are responsible for writing this virus. Though I don't think anyone is going to come forward. What SCO did with it's IP (Intellectual Property) lawsuit against Linux and IBM struck at the core of a very tightknit and powerful community. Some of the best programmers in the world work on and write code for Linux. I also find it interesting that SCO itself had a Linux program going and it stopped work on that after it had sold Microsoft rights to Unix. Humm, a big influx of money from Microsoft and then SCO stops their Linux program and starts going after anyone else that is working on linux.
I can't condone whoever wrote this virus, even if the intentions are good, this is causing more work to an already over worked IT staff. And in the end the people that will be affected by it have no idea about the SCO/Linux controversy. However, the person(s) that wrote this virus probably don't have all the money that a big corporation does to fight this out in the court system for years and years. I can see both sides of the story. I can't condemn them either. The DoS attack that they are launching is in essense a digital version of a protest. I know that not everyone sees it that way. But what is the differents between the Grocery Strike here in CA. where the striking employees were physically preventing the deliever trucks and customers from entering the parking lot. They are simply digitally not letting customers get to the web store front of SCOs parking lot.
At the root of this controversy is one word "Monopoly". (No not the board game) There is a good chance that if SCO wins this suit, that microsoft will have a Monopoly on the Intel based computing operating systems. Now don't get me wrong, I am not anti-Microsoft, in fact I make my leaving writing in microsoft's C#. However I do think that computing needs are too diverse for one company to be the end all be all. I want to be able to have different operating system running on my machine. I also think that there are some computing tasks that Linux is the only platform I would choose. Also did the government split of Bell because it had a Monpoly of the phone/communication systems? How is this any different then that?
Saturday, January 31, 2004
Friday, January 30, 2004
A programmer is born!
Last night I had a mountain of work to do, and was actually inspired to do it. I started writing this C# console application that handles sending emails once it is called from a stored procedure. I know, I know, the words are english, but is he saying anything. (If you are a programmer, the answer is yes, if not...sorry)
So on the train home I started laying out the structure of my application on my handy dandy sony viao laptop. When I got home, I wanted to just kind of keep the flow going. But the little boy wanted some attention. So he got some, what we did was combine our interesting. So what we ended up with was the little boy writing his first try catch statement in C#. Not bad for a three year old.
try
{
}
catch(Exception e)
{
writeError(e.Message);
}
Now before you start stating you astonishment, let me explain how his first programmer session when.
Trav, which one is the "T", good, now which one is the "R", no that was a "E", which one is the "R", very good you did it. So it took us about 15 minutes to write our try catch statement. But we did do it, and we did it together. I put comments in the code of the application starting the date that the little boy had written his first snippet of code.
Thursday, January 29, 2004
Jason Mraz : Waiting for my Rocket to Come
So the other day we got the Jason Mraz album "Waiting for my Rocket to Come". The only song I had really heard from the album is "You and I both". This was poppy and had a beautiful acoustic ring of a up and coming Signer song writer. So we got it. I listened to this album over and over again today. I couldn't stop. Mraz has to be one of the best lyricist to come around in a long time.
There some song on this album that you will just finding yourself singing along by the second verse. (to the horror of my co-workers). I was amazed at the diversity on this album. I expected acoustic pop, and I got that, but I also got funky groove, regae moves and outstanding lyrics and one of the best new voices to come to rock in a while. Songs like "Curbside Prophet," have the great feel, of classic J. Love, with some Nashville funk thrown in. While "I'll Do Anything" has an amazing reggae beat, with smooth lyrics flowing in to a melodic chorus, while avoiding lyrical cliches`that would of been easy to fall into. I think the song "The Remedy" will be the next song that gets radio play from this album. It has that pop rock feel, with out feeling like a teen bopper hit. It's obvious from this album that Mraz influences are many and diverse. Which for me is really nice to hear.
The other thing that impress me is Mraz website, someone was smart enough to figure out you have to give some music away to sell it. There are seven mp3s for the download. But I'm telling you that after listening to those songs you are going to want the album.
There some song on this album that you will just finding yourself singing along by the second verse. (to the horror of my co-workers). I was amazed at the diversity on this album. I expected acoustic pop, and I got that, but I also got funky groove, regae moves and outstanding lyrics and one of the best new voices to come to rock in a while. Songs like "Curbside Prophet," have the great feel, of classic J. Love, with some Nashville funk thrown in. While "I'll Do Anything" has an amazing reggae beat, with smooth lyrics flowing in to a melodic chorus, while avoiding lyrical cliches`that would of been easy to fall into. I think the song "The Remedy" will be the next song that gets radio play from this album. It has that pop rock feel, with out feeling like a teen bopper hit. It's obvious from this album that Mraz influences are many and diverse. Which for me is really nice to hear.
The other thing that impress me is Mraz website, someone was smart enough to figure out you have to give some music away to sell it. There are seven mp3s for the download. But I'm telling you that after listening to those songs you are going to want the album.
Tuesday, January 27, 2004
Session Variables in C# how to use them and win
So I have been hitting my head against the wall with Session variables in C#. For instance, you can see a variable by just calling it and giving it a value. Session["myValue"] = value Which is kind of like working in VB.NET. However when you go to read values from there it is a different beast all together. This comes from the fact that Session variables are actually objects and can be set to just about anything. So if I am going to read a value out of the Session variable it looks something like this: Response.Write(Session["myValue"].ToString());
Okay, now so far this isn't to bad, but what VB and VB.NET programmers are not use to, is have to initate the Session that you are going to use later. For example you have a Session variable that only gets a value if a event happens. If that even happens you don't initate the variable. Later in your code you have a condition statement that checks against the value in your Session variable. In VB you can do this all day not, and if there value is empty (ie you didn't initate the Session variable) it returns an empty or null value. However in C# you get an error stating that the Object has not be set.
So this got me, jumpin up and down flustered. Then Ed told me the secret to it all, and I will now share it with you. (Though I figured you have guessed it by now) Initate all of your Session variables in the Session_Start function in your Global.asax. This way they are always initated and if you run conditional statements against them you can get an empty or null value.
Happy Coding
So this got me, jumpin up and down flustered. Then Ed told me the secret to it all, and I will now share it with you. (Though I figured you have guessed it by now) Initate all of your Session variables in the Session_Start function in your Global.asax. This way they are always initated and if you run conditional statements against them you can get an empty or null value.
Happy Coding
Monday, January 26, 2004
Mr. Rodriguez, you have my attention.
Yesterday afternoon, I was kind of restless, so I drove over to the local music store. While I was there I walked around a little bit and a tried a couple of guitars. Mostly feeling smart, because so far mine at home sounded much better then the ones I played. (And mine is less then half of the cost of the ones in this store)
I walked over and played a couple of classical guitars.
I love the sound of nylon strings. There is a warmth to the tone, that I find so wonderful to listen to and to play. Anyhow, I pick up this acoustic classical, with a cutaway body so that you can reach high in the fret scale. I just strummed an E chord and all of the sudden, my ears said 'that sounded good, do it again!'. So I do, again my ears go, 'do that again!'. So I must of sat there played that beautiful guitar for close to 20 minutes. So by this time, I am in love, ready to take it up to the man behind the counter and ... put it on layway (what? You know you have to do that too!).
So I find the little card thingy that is the price tag and look. Once I regain consciousness... I looked at it again. $1,600.00 ... On Sale. So of course I put it back really gingerly, holding my breath until it is back in the guitar stand. Come to find out it is a Rodriguez C Cutaway. If I listen to the tale from the website, it is a handcrafted guitar made from the trees that Mr. Rodriguez grandfather planted many years ago.
Well, short story long, the guitar got to stay at the music shop. I got to come home and complain. I mean, I have a family to support, bills to pay, I can't talk myself in to buying something like that! That thing cost more than our rent (Though not by much). Though I have talked to the guy at the music shop and he says I can come back to visit, just as long as it's not to often.
I love the sound of nylon strings. There is a warmth to the tone, that I find so wonderful to listen to and to play. Anyhow, I pick up this acoustic classical, with a cutaway body so that you can reach high in the fret scale. I just strummed an E chord and all of the sudden, my ears said 'that sounded good, do it again!'. So I do, again my ears go, 'do that again!'. So I must of sat there played that beautiful guitar for close to 20 minutes. So by this time, I am in love, ready to take it up to the man behind the counter and ... put it on layway (what? You know you have to do that too!).
So I find the little card thingy that is the price tag and look. Once I regain consciousness... I looked at it again. $1,600.00 ... On Sale. So of course I put it back really gingerly, holding my breath until it is back in the guitar stand. Come to find out it is a Rodriguez C Cutaway. If I listen to the tale from the website, it is a handcrafted guitar made from the trees that Mr. Rodriguez grandfather planted many years ago.
Well, short story long, the guitar got to stay at the music shop. I got to come home and complain. I mean, I have a family to support, bills to pay, I can't talk myself in to buying something like that! That thing cost more than our rent (Though not by much). Though I have talked to the guy at the music shop and he says I can come back to visit, just as long as it's not to often.
Sunday, January 25, 2004
Weekends?
How come weekends seem to go by so fast? There never seem to be enough time to get everything done.
Saturday, January 24, 2004
Blah
Wow, am I feeling blah. It was a long night. I couldn't get comfortable. I went from the bed to the floor to the bed to the floor and back to the bed. My stomach hurts and all noise seems to be extra loud. I mean the hard drive in my laptop spinning was keeping me up, and I had to shut it down.
Friday, January 23, 2004
OneNote
The other day I downloaded the trial version of Microsoft OneNote. I am amazed how quickly this has become one of those necessary apps. My boss told me about it and I thought, well it is probably good, but more for Tablet PCs. And yes, it does work with Tablets very well, but what it lets me do is brainstorm digitally. I can't sit down and write out how my next web application is going to work linearly. I do think object orientedly, in clusters of functionality. And once those are down, I figure out what I am going to need to built that function. So I have been mapping out my applications this way for years, usually with just a pad and a pen. OneNote lets you work that way on you PC.
So say you figure out you need two functions. One named myName and the other named yourName. Now we have the functions, what else do we need. Well maybe to create a superClass over the two functions because they have name in common. Well how do you write that out in Word? And once you have it written down, how do you move the text around to show relationships?
Well OneNote, works with textboxes, so you just click in the note space and start writing. And say, does that need to be higher in the document? Grab it's header and drag it up, or left or right.
When I work, I have Web Browser open to Google. I like to reference articles and blogs I have read, that have great information or ideas. How do you include that in your Word document. Add Hyperlink right, well with OneNote, you simple drag the URL from the address bar into the OneNote notespace. Or an image, drag that in too!
Okay, what if you don't want to type, you just want to, I don't know, talk about it and have that in your notes. OneNote can handle that too. It can record audio and have that linked in your document.
I test lots of applications, and very few of them, get in to my, required tools category, but OneNote has done that rather quickly.
So say you figure out you need two functions. One named myName and the other named yourName. Now we have the functions, what else do we need. Well maybe to create a superClass over the two functions because they have name in common. Well how do you write that out in Word? And once you have it written down, how do you move the text around to show relationships?
Well OneNote, works with textboxes, so you just click in the note space and start writing. And say, does that need to be higher in the document? Grab it's header and drag it up, or left or right.
When I work, I have Web Browser open to Google. I like to reference articles and blogs I have read, that have great information or ideas. How do you include that in your Word document. Add Hyperlink right, well with OneNote, you simple drag the URL from the address bar into the OneNote notespace. Or an image, drag that in too!
Okay, what if you don't want to type, you just want to, I don't know, talk about it and have that in your notes. OneNote can handle that too. It can record audio and have that linked in your document.
I test lots of applications, and very few of them, get in to my, required tools category, but OneNote has done that rather quickly.
Thursday, January 22, 2004
Today was another Thursday. I had tons to do at work, but had to solve other people's issues. (grrrrr) So as far as I can figure it, I only spent ten minutes working on my stuff today. However I did somehow keep a good mood, despite the fact I am being buried in others work. We still haven't gotten everything straighten out with the vendor we are buying our CMS solution from, so it looks like we aren't getting it till next week. So on the 26th I will get it. At least they don't expect me to have it done by the 31st as original projected.
Through the rain there is some sun. I run two monitors at work, and the left side one was a CRT 19" Dell. It was getting blurring and being that I run the resolution really high, it accentuated this problem. So today it got replaced with a 18" Flat screen Dell, which is identical to the right side monitor. So now I have more desk space (a 19" CRT takes a ton of room) and two rockin Flat Screens. All I need is two more!
It was really nice to get home before 6:30pm tonight. That hasn't happen'd in a while. I caught an earlier train and walk the 8 blocks from the train station to the house. It was a wonderful evening for taking a walk. A little brisk, but just really nice. As I walked down the street, I could smell everyone's dinner cookin'. This house on the right is having Chili, and this one over here is grill hamburgers and hot dogs. So I picked up my pace, because I was starting to get hungry.
On the way home, there is a little park. And there is where the Cheer Nazi does her work. You see it is dark outside and brisk but the Cheer Nazi doesn't care. She has what could be bright young women out there in the cold, in the dark practicing "the Perfect Cheer" until these girls pass out. This really bothers me, I mean these young women could be come doctors or scientist, to really make a difference in the future but no, she is turning them in to cheerleaders, yeah, cheerleaders. Bottle blonde, perpetually smiling, snooty, 'like oh my god', cheerleaders. I tell you the thought if it just makes me sick. Now, I know that some one is going to say, Hey, I was a cheerleader. And to that I ask one question, what did cheerleading teach you that you use in your day to day adult life. And please no "Miss America" answers. I want a really answer.
So this women (the Cheer Nazi) is out there screaming at these girls, 'no, no, no, do it again but right this time'. What pleasure can she possibly get from screaming at teenage girls ( I mean besides the obvious) to step to the exact rhythm of the stupid teeny bopper on the boombox. Is she creating a army of cheerleaders to take over the world?
Through the rain there is some sun. I run two monitors at work, and the left side one was a CRT 19" Dell. It was getting blurring and being that I run the resolution really high, it accentuated this problem. So today it got replaced with a 18" Flat screen Dell, which is identical to the right side monitor. So now I have more desk space (a 19" CRT takes a ton of room) and two rockin Flat Screens. All I need is two more!
It was really nice to get home before 6:30pm tonight. That hasn't happen'd in a while. I caught an earlier train and walk the 8 blocks from the train station to the house. It was a wonderful evening for taking a walk. A little brisk, but just really nice. As I walked down the street, I could smell everyone's dinner cookin'. This house on the right is having Chili, and this one over here is grill hamburgers and hot dogs. So I picked up my pace, because I was starting to get hungry.
On the way home, there is a little park. And there is where the Cheer Nazi does her work. You see it is dark outside and brisk but the Cheer Nazi doesn't care. She has what could be bright young women out there in the cold, in the dark practicing "the Perfect Cheer" until these girls pass out. This really bothers me, I mean these young women could be come doctors or scientist, to really make a difference in the future but no, she is turning them in to cheerleaders, yeah, cheerleaders. Bottle blonde, perpetually smiling, snooty, 'like oh my god', cheerleaders. I tell you the thought if it just makes me sick. Now, I know that some one is going to say, Hey, I was a cheerleader. And to that I ask one question, what did cheerleading teach you that you use in your day to day adult life. And please no "Miss America" answers. I want a really answer.
So this women (the Cheer Nazi) is out there screaming at these girls, 'no, no, no, do it again but right this time'. What pleasure can she possibly get from screaming at teenage girls ( I mean besides the obvious) to step to the exact rhythm of the stupid teeny bopper on the boombox. Is she creating a army of cheerleaders to take over the world?
Tuesday, January 20, 2004
So, I take the train back and forth to work. I find that most of us computer geeks have an issue with driving in traffic. Now, don't get me wrong, we love to drive, just fast, and without cars in the way. I am of course this way, that is why I take the train.
Interestingly enough, I get to meet all kinds of interesting people on the train, Computer Programmers, IT professional, TV Syndication Experts, Marketing Gurus. There is always something to talk about and it makes the train ride go fast. But then there are days, when it is a long lonely ride and the only company you have is the book that you brought. Sometimes, I find these to be the some the beautiful moments.
There is a new movement from web developers to move away from using tables for placement of images and text elements. For accessibility we as developers are now to start using CSS2 and HTML. Which is all well and good for me. I mean it isn't a big change, I use CSS and DIV tags all the times, now I just need to start using positioning in my CSS. However there are a couple of issue that none of the articles seem to mention. First, writing code in this format, does not lend itself to liquid designs. So a page that scales in size is a lot more testing. Secondly, I just got my Jr. Web Developer proficient at using nested tables, and now I have to tell him, stop! Unlearn everything that you have been learning for the past two years. That isn't going to be a smooth transistion.
Interestingly enough, I get to meet all kinds of interesting people on the train, Computer Programmers, IT professional, TV Syndication Experts, Marketing Gurus. There is always something to talk about and it makes the train ride go fast. But then there are days, when it is a long lonely ride and the only company you have is the book that you brought. Sometimes, I find these to be the some the beautiful moments.
There is a new movement from web developers to move away from using tables for placement of images and text elements. For accessibility we as developers are now to start using CSS2 and HTML. Which is all well and good for me. I mean it isn't a big change, I use CSS and DIV tags all the times, now I just need to start using positioning in my CSS. However there are a couple of issue that none of the articles seem to mention. First, writing code in this format, does not lend itself to liquid designs. So a page that scales in size is a lot more testing. Secondly, I just got my Jr. Web Developer proficient at using nested tables, and now I have to tell him, stop! Unlearn everything that you have been learning for the past two years. That isn't going to be a smooth transistion.
Monday, January 19, 2004
So there are always those people that believe that the Operating System they run is the best. And if you say you like something about Mac OS X, they will tell you why Windows XP is better, or Linux is better then Windows 2000. Well I believe these gentleman have come up with the perfect answer to the question, "Which OS is the best?"
Sunday, January 18, 2004
So as you can tell from the time stamp of Friday/Saturday's entry, I was having trouble sleeping. Which we all have from time to time. So I figured that I would compile a short list of links for insomniacs. Oddly enough I checked this links out when I wasn't able to sleep
Theses, will make you laugh, make you cry, and most will just make you wonder why. Without any further todo or gilding of the lily Links for insomniacs
Vanity pl8
Yes friends someone has brought it upon themselves to photograph every vanity plate they see and bring it to the masses, and I in turn bring it to you.
Origami Boulder
Did you say, Origami Boulders, I sure did, Origami Boulders or even Origami Boulders that have Haikus written on them is what you find at this site. Yes, this is a real site, yes, you can purchase one and if you don't believe me check out the FAQ at the bottom called "Letters from Dumb Dumbs".
Crushed Cans
The concept is simple, you send them 4.95 and they send you an artistically crushed can. If that isn't enough, check out the photo gallery, some of these cans have been to hipper spots then I have.
The French Horn
This last entry, is simply amazing, something only the french would think up. The concept is a simple one, stick bicycle horns all over your body ,and figure out how to play Mozart with them. Too Funny. (a media player is required for this link)
Vanity pl8
Yes friends someone has brought it upon themselves to photograph every vanity plate they see and bring it to the masses, and I in turn bring it to you.
Origami Boulder
Did you say, Origami Boulders, I sure did, Origami Boulders or even Origami Boulders that have Haikus written on them is what you find at this site. Yes, this is a real site, yes, you can purchase one and if you don't believe me check out the FAQ at the bottom called "Letters from Dumb Dumbs".
Crushed Cans
The concept is simple, you send them 4.95 and they send you an artistically crushed can. If that isn't enough, check out the photo gallery, some of these cans have been to hipper spots then I have.
The French Horn
This last entry, is simply amazing, something only the french would think up. The concept is a simple one, stick bicycle horns all over your body ,and figure out how to play Mozart with them. Too Funny. (a media player is required for this link)
Saturday, January 17, 2004
So it's now been a month since I've started this blog. And to quote Captain Jack Sparrow <quote author="Jack Sparrow">I think we've all arrived at a very special place... spiritually... ecumenically... grammatically.</quote> I'd personal would like to thank all four of you who reads this blog. If you read this blog either mistakenly or intentionally, I thank you.
At work we just got through the first step of a VA test. My part was giving strangers access to all of my code. Now for a developer, half of you goes sure here test it, I want you to check out my work, and the other part goes No, NaNaNaNaNa not listening, no, no no! But in the end your brain goes, this is okay, and you get over it.
At work we just got through the first step of a VA test. My part was giving strangers access to all of my code. Now for a developer, half of you goes sure here test it, I want you to check out my work, and the other part goes No, NaNaNaNaNa not listening, no, no no! But in the end your brain goes, this is okay, and you get over it.
Thursday, January 15, 2004
So last night I stayed at work a little later, and I got to work on my C# project. It was one of those times when things just flowed. What I needed to write was something that displayed files in a directory and I need to be able to specify the directory on the fly. So first thing I did a google search. So I come across this article from 4GuysFromRolla.Com on "Displaying the Files in a Directory using a DataGrid". This is almost what I need, however the examples are in VB.NET not C#, not really that big of a deal, just translate some syntax.
So in the end what I wrote was a Datagrid that displays all files in a given directory, and that directory can change on the fly within the scope of my project.
So this is what my code behind looks like:
using System.IO; //very important
namespace secureload
{
public class download : System.Web.UI.Page
{
protected System.Web.UI.WebControls.DataGrid downloadlist;
private void Page_Load(object sender, System.EventArgs e)
{
string dir = Request.QueryString["directory"];
if(dir == "")
{
dir = Session["dir"].ToString();
}
//gets the infomation for the DirectoryInfo Object and Create a string Array
DirectoryInfo dirinfo = new DirectoryInfo(HttpContext.Current.Server.MapPath(dir));
//Pass string array with file information to Datagrid's datasource
downloadlist.DataSource = dirinfo.GetFiles("*.*");
//bind datagrid
downloadlist.DataBind();
}
}
And this is what my datagrid code looks like:
<asp:DataGrid id="downloadlist" runat="server" Font-Name="Verdana" AutoGenerateColumns="False" AlternatingItemStyle-BackColor="#eeeeee" HeaderStyle-BackColor="Navy" HeaderStyle-ForeColor="White" HeaderStyle-Font-Size="10pt" HeaderStyle-Font-Bold="True" AllowSorting="True" Font-Names="Verdana">
<AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
<ItemStyle Font-Size="Smaller"></ItemStyle>
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="White" BackColor="Navy"></HeaderStyle>
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="Name" DataNavigateUrlFormatString="dltrack.aspx?filename={0:d}" DataTextField="Name" HeaderText="File Name" NavigateUrl="dltrack.aspx?filename="></asp:HyperLinkColumn>
<asp:BoundColumn DataField="LastWriteTime" HeaderText="Last Write Time" DataFormatString="{0:d}">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Length" HeaderText="File Size" DataFormatString="{0:#,### bytes}">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
</Columns>
</asp:DataGrid>
Now the one thing to now of the datagrid configurations is that I wanted my document urls to be dynamic. I want every download to be logged. So I need that url in the HyperlinkColumn. So in the DataNavigateUrlFormatString is where all of the magic happens. I add the url I want "dltrack.aspx" and my parameters, "?filename=" then to dynamically add the file names to the url you add "{0:d}". This adds the "Name" from the DataTextField field of HyperlinkColumn.DataNavigateUrlFormatString="dltrack.aspx?filename={0:d}"
This seems to run pretty fast, and took lets time to code up then creating your own dynamic tables. In classic ASP, I would touch datagrids with a ten foot pole, but in ASP.NET they do actually make your life easier!
So this is what my code behind looks like:
using System.IO; //very important
namespace secureload
{
public class download : System.Web.UI.Page
{
protected System.Web.UI.WebControls.DataGrid downloadlist;
private void Page_Load(object sender, System.EventArgs e)
{
string dir = Request.QueryString["directory"];
if(dir == "")
{
dir = Session["dir"].ToString();
}
//gets the infomation for the DirectoryInfo Object and Create a string Array
DirectoryInfo dirinfo = new DirectoryInfo(HttpContext.Current.Server.MapPath(dir));
//Pass string array with file information to Datagrid's datasource
downloadlist.DataSource = dirinfo.GetFiles("*.*");
//bind datagrid
downloadlist.DataBind();
}
}
And this is what my datagrid code looks like:
<asp:DataGrid id="downloadlist" runat="server" Font-Name="Verdana" AutoGenerateColumns="False" AlternatingItemStyle-BackColor="#eeeeee" HeaderStyle-BackColor="Navy" HeaderStyle-ForeColor="White" HeaderStyle-Font-Size="10pt" HeaderStyle-Font-Bold="True" AllowSorting="True" Font-Names="Verdana">
<AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
<ItemStyle Font-Size="Smaller"></ItemStyle>
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="White" BackColor="Navy"></HeaderStyle>
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="Name" DataNavigateUrlFormatString="dltrack.aspx?filename={0:d}" DataTextField="Name" HeaderText="File Name" NavigateUrl="dltrack.aspx?filename="></asp:HyperLinkColumn>
<asp:BoundColumn DataField="LastWriteTime" HeaderText="Last Write Time" DataFormatString="{0:d}">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Length" HeaderText="File Size" DataFormatString="{0:#,### bytes}">
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
</Columns>
</asp:DataGrid>
Now the one thing to now of the datagrid configurations is that I wanted my document urls to be dynamic. I want every download to be logged. So I need that url in the HyperlinkColumn. So in the DataNavigateUrlFormatString is where all of the magic happens. I add the url I want "dltrack.aspx" and my parameters, "?filename=" then to dynamically add the file names to the url you add "{0:d}". This adds the "Name" from the DataTextField field of HyperlinkColumn.
Wednesday, January 14, 2004
So last night, we went out and got the new Crystal Method album "Legion of Boom". I have been eagerly anticipating this release/ I really love this album. It keeps with the same groove that you would expect from them, however you can hear them growing as artist. There are some great collabrations on this album. One of them happens to be with Wes Borland. (Gutarist of Limp Bizkit fame) So, yes you are going to hear guitars on a Crystal Method Album. Songs like "Weapons of Mass Distortion" show that Method knows what to do with great guitar tracks, and Wes' playing is solid. Also there are some great vocal tracks on this album. "Born to Slow" and "Wide Open" have good lyrics and feel a little different them most Method songs, but they are really good. It shows the Method growing, and that is a good thing!
Subscribe to:
Posts (Atom)