Archive for April, 2004
Of course, I should have posted what my mod_rewrite situation looks like. Well, here it is: index.php processes a variable and outputs the appropriate page (to avoid hack attempts, it adds .php to the end of the input) inside the template. mod_rewrite’s job, then, is to assign the appropriate page to index.php.
My current mod_rewrite statement (which works, sort of) is:
RewriteEngine on
RewriteRule ^page/(.*)$ index.php?variable=$1 [L]
This requires me to give a URL like http://www.gigantuan.net/page/front/. I want http://www.gigantuan.net/article/css/css_is_good/. I think I could get this with no problems by setting up a rule for articles, a rule for comments, and so on and so forth…but I need a default as well, or else I’m stuck with /page/front. Also, I can’t do any global redirects because I have other sites on the server and it messes them up royally.
The Lowdown mod_rewrite Blues
April 28
I’ve spent a good part of this afternoon trying to get mod_rewrite to work for Gigantuan. I give up! At least, for now. It sort of works as it is, but I don’t want it to constantly have /page/whatever. I just want it to be /whatever. Can anyone help me?
Textpattern is getting better and better. Aside from the text formatting functions (AKA Textile), it’s CSS editing abilities and it’s well-formed page editing abilities, it has a great support forum. Today I’ve made the search box validate and created a custom comment preview page thanks to the wonderful people in the forum. I’m so excited.
Another new addition is the Quicklink section in my side links. It’ll be the ten latest web sites that I’ve found that I don’t feel are worthy of a permanent link. I’m working on getting a page that just holds all of those links so none of them will ever be lost, but I’m not 100% sure how to go about that. Maybe I’ll get it figured out later.
With That Stupid Smile On Your Face
April 27
Man, I love boysetsfire and I’ve gotten Manny hooked on ‘em, too. That’s pretty fun. I like turning people onto new music. The album I’m currently listening to, After the Eulogy is an amazing album; probably their best. Certainly the best of theirs that I have. I need to get the other EPs, though. A band well worth buying, if you find their stuff. Or, better yet, go see ‘em.
Speaking of music, I’ve been turned on to Bittorrent and I’ve been constantly online since I started using it on Friday or Saturday. It’s so awesome. And I’ve found some great torrents over at punktorrents. I just wish I could find some good classical torrents for my wife. She likes punk and hardcore and everything, but she really wants some more classical. Too bad most of the people who listen to classical aren’t the type of the people who get on the ‘net and share torrents. I’m sure we’ll find her some music somewhere.
So last week was deadline. That was a fun 25.5 – 26 hours. But it’s over now and we got a nice bonus for it. (thanks, forrest!) On our ‘weekend’ after deadline, we got a lot done (sort of). I had time to get completely enmeshed in Bittorrents and Elaine had time to get started on her garden. She’s going to have some herbs, tomatoes and peppers. We also rigged up an awesome run for our Italian Greyhound, Poly. It’s actually just a clothes line, but it stretches from our back porch to the utilitiy pole at the far corner of our back yard (about 80 – 90 feet) with a spring clip (like what rock climbers use) attached to a wheel that’s on the rope. Poly loves it. She can explore most of the yard and actually get up a good run. She was outside yesterday in the heat until she was she was burning up…looked like she was about to pass out.
My parents came up on Saturday and brought us new-to-us appliances (a washer and a dryer) since our old ones went kaput. They do so much for us. Anyway, after they brought ‘em up, they helped us take the old ones to Salvation Army where my mom saw an upright piano for $400. She got it into her head that we needed a piano and she decided to call ‘em on Monday and see if they’d sell it for $300. They agreed and now we own a piano. Neither of us can play (we both took lessons as children, though) but I guess we’re going to learn soon. Don’t have it in the house yet; we’re going to move it from the store to the house in a couple of weeks. Again, with my parents help!
On the subject of two weeks, it’s almost my birthday. In about 2 weeks, I’ll be turning 23. Wow! What an amazing age! So, it’s not anything special, but I hope the birthday is fun. I think we’re planning on doing stuff w/ my parents the day before, then crashing at Elaine’s mom’s house that night, watching movies/playing games, then get up to a nice breakfast and…who knows? Do something else, I guess. I’m hoping to get an Xbox and some nifty games. Also, a few books, movies and CDs wouldn’t be bad. If you want, you can check out my wishlist. It’s not complete, as I’m still adding stuff to it.
I think I’ve run out of things to blather about…
end…
April 22
Well, this is the end of it. The end of my long, long night. I’m waiting on the pages to turn into PDFs so I can send them down to the printer in Texas. Probably going to take at least another hour or hour and a half just to distill the pages. Then it’s always thirty minutes to stuff and thirty to send, so I’m looking at another 2 hours or so. This has been a horrendous deadline…and it was supposed to be a week ago.
Deadline Lifeline
April 21
12:45pm
OK, I’ve been here since around 10:30am. We left last night at about 6:30pm or so. When I left, all I had to do was the page 2s. When I got here, I still had the page 2s (obviously) but I had a few edits, too. No biggie. Well, I’m here and I still have page 2s, although fewer of them than I had.
Let me break this down for you. I work for a newspaper publisher. We produce 6 monthly newspapers. All six come out at once. This month, they have 32 pages apiece. Of those 32 pages, pages 1, 2, 15, 16, 17, 18 and 32 are different to each paper. So the rest are the same. Each different page, even if it’s not different (content’s the same, just a different name on the top) has to be built on it’s own. That’s 72 pages total to build. Right now, 3 are finished completely. One perfect, two finished with changes. I would be working right this second, but this slow-ass computer can’t handle me working on a page while it’s printing another one. Well, it can, but not well enough for me to do it. Everything moves way too slowly.
Just as I say that, the queue ends. I’ll be back with more today, so keep checking…if you care, that is.
1:39pm
Again I’m waiting on the queue. Done a few pages in the meantime, but I don’t think any are finished yet. Would have done a couple more but the computer crashed. It apparently equates opening a picture in photoshop with faulting the finder. What a fun machine.
Had the fun news of something happening to the server. Manny happened to see that his site (which is on the same server) wasn’t showing up; nil for eyeheartzombies and nil for gigantuan and I only assume nil for the august. But everything seems to be working now, so I’ll hope it was just from Manny messing around with his site. Probably was.
2:16pm
Well, another page, another print, another wait. The wait has been exciting this time. We’ve gotten in a few ads and a few approvals. Those are the best; the approvals. And I managed to get into a fight with Manny over images.
The catalyst was the images on his site. His new design is pretty nice, but the bottom border doesn’t show up. When I was looking at the code to see why, I discovered that he’s putting the borders on with images, instead of using CSS’s border property. Now, there’s technically nothing wrong with this method. It works (for the most part) and it keeps any nasty box-model problems from creeping up. It does, however, add a bit of size onto your images. I know, I know; and extra 10 pixels of solid color data can’t be that big…and it’s not. The size, however, isn’t really the issue. Now for those of us with slow connections (I boast a 56k modem at home), those extra k do add up, but not very quickly. We probably would never even notice the slight lag as the images load. Do it enough on a page (as Manny doesn’t) and it will show up, though. Still, do it sparingly and you’ll be fine as far as lag and bandwidth go.
We do pay for our bandwidth, but I don’t think Manny’s indulgence will cost us. If it does, I’ll just add to the money he already owes me ;). The problem, for me, is the principle of it. Manny and I are working on creating a site to teach people who do do good, compliant web design. We want to teach people to use XHTML and CSS to create useful, accessible pages that look good everywhere and don’t rely on browser-specific hacks. So, it kind of irks me that his site boasts something that’s very…old-thinking…from web design’s past. Something of the same age as table-based layouts and font tags.
I realize that it’s his personal site and he should be allowed to do what he wants (and he is. I can’t and wouldn’t make him change it). But…I don’t know…if people can hate Bill Clinton for the “I did not have sexual relations with that woman” thing, I can be a little peeved at Manny for using images where he could have used CSS.
Well, the queue has ended again…
2:49pm
I sound like such an ass in the last addition to this post. Well, I’m not. At least I try not to be. My only complaint with Manny’s method is that it makes changing the site harder. Case in point, when I pointed out to him that he should have used border instead of the images, he said “It’ll take too long to change them so I’ll do it some other time.” That’s what I’m getting at. By doing it with CSS he could change the size, the style, the color, whatever…whenver he wanted to. There wouldn’t be anything to it more than changing a few values in a text file.
Anyway, I guess that’s all I have to say for that. I still sound like an ass, but at least I’m an explained ass.
I think we’re going to take lunch soon. That’s right, lunch at 3pm. We do this every day. Our schedules and bodies are so out of whack it’s unreal. Get to work at 10, lunch at 3, home at 5/6, bed at midnight or so. We should be set back about an hour or two. We need Kenneth and Elaine Savings Time. Well, I suppose we’ll be normal some day…right?
4:24pm
So, back from lunch, already finished another page, letting it print. Takes forever. Oh well, gives me a sec to write here.
Well, Manny and I worked it out. Actually, he changed it while I was at lunch. I really do like his site. It’ll be top-notch when he gets that readability issue sorted out. That should be soon, though. Then no one will be able to stop him! Mwaahahaha! Or maybe they can. I don’t know.
5:06pm
Well, all the pages I have are finished. Just edits and the two pages that aren’t finished left. That’s good. That’s very good. Edits go a lot faster than building pages does.
7:05pm
I swear I’m not making this up. Now we have a tornado warning. I know. a warning’s nothing. We have hail, though. This is one screwed up day. I went out to see how the clouds were a bit ago, wasn’t raining much. As soon as I got to the other side of the parking lot, it starts raining hard and hailing (pea-sized, no matter what the radio says). I was trapped! It finally slacked a bit and I ran for it. Now I’m all wet. That’s not fun at all.
Well, we’re working on edits, but I think we should just quit for the night and start again tomorrow. The weather’s getting worse and I don’t want to be in this strip mall building if something bad does hit. Not to mention we want to be with our animals if it gets stormy there or something.
This is one screwy day.