• Welcome to Computer Association of SIUE - Forums.

How are things in E-ville?

Started by R. Andrew Lamonica, 2007-03-15T18:19:50-05:00 (Thursday)

Previous topic - Next topic

R. Andrew Lamonica

Hey CAOSters,

How are things in E-ville.  Are you guys on spring break?

Shaun Martin

We had Spring Break last week.  Things are going relatively well for me down here.  I dunno about the rest.  :-D
Shaun Martin
SIUE Alumni
Associate IT Analyst, AT&T Services, Inc. St. Louis, MO.

Gregory Bartholomew

I've just been familiarizing myslef with some of the stuff that you have set up around here over the years.

Today, I was fiddling with shares.cs.siue.edu and found that with the following mod_rewrite rules, I could reduce the entirety of the website to the following 140K of files:

[root@www shares.cs.siue.edu]# ls -hal
total 140K
drwxr-xr-x 2 root root 4.0K Mar 15 19:35 .
drwxr-xr-x 4 root root 4.0K Mar 12 21:26 ..
-rw-r--r-- 1 root root  412 Mar 15 17:11 .htaccess
-rw-r--r-- 1 root root 4.9K Mar 15 19:35 index.html
-rw-r--r-- 1 root root  637 Mar 12 21:27 master.css
-rw-r--r-- 1 root root   26 Mar 12 21:27 robots.txt
-rw-r--r-- 1 root root  77K Mar 15 18:37 swc.php
[root@www shares.cs.siue.edu]#

mod_rewrite rules:

   RewriteEngine On
   RewriteBase /

   RewriteCond %{HTTPS} ^off$
   RewriteRule .* https://%{SERVER_NAME}/$0 [L]

   RewriteRule ^(?:(?:style)|(?:data))/.*$ swc.php?path=$0 [L]

   RewriteCond $1 ^(?:campus)|(?:ac)$ [NC]
   RewriteRule \
      ^(.+?)(?:\.siue\.edu)?/(.+?)(?:\.[^\./]+\.siue\.edu)?/(.+)$ \
      swc.php?path=${domains:$1}/${servers:$2}/$3 \

Mod ReWrite is Awesum!

Kaitlyn Schmidt

Not bad just really busy :-)  How are things with you?
Kaitlyn Schmidt
Senior, Computer Science
Former President of CAOS

Ross Mead

LOL!  Tell ya' what... we'll talk about things in E-ville next week when we go to Stanford! ;-)

Shaun Martin

I wonder how many more posts I must make before the daystar burns me too!
Shaun Martin
SIUE Alumni
Associate IT Analyst, AT&T Services, Inc. St. Louis, MO.

William Grim

You need to get to work if you want daystar burnage!
William Grim
IT Associate, Morgan Stanley

R. Andrew Lamonica

Yes modrewrite is cool.  We have our own version of URL rewriting at Zazzle.  I actually made a change to it a few weeks ago.

I added the crop ability to the URL structure


Speaking of Zazzle, the guy who sits behind me runs our blog and he posted some funny stuff for St. Patrick's Day. His name is Patrick so this is his holiday. ;-)



Hey Andrew! Things are good here, except for the electricity bills. I'm going to go broke this summer.
How're things in San Jose? Is it warm enough to swim in the ocean? Lucky you!!!!

R. Andrew Lamonica

I haven't visited the ocean yet.  I live on the other side of the peninsula so I can see the bay from my office and from the bridge near my apartment, but I cannot see the ocean.  My apartment and office complexes both have pools and I have been swimming a few times, but it is too cold most nights and I work or sleep for most of the daylight hours. :-)  In the summer (I am told), the apartment pool will be heated so it will be fine in the evening.  

I look forward to seeing the conference goers next week (although I thought it was the week after next).  Let me know what your schedule is by e-mail, and we can come up with something to do when you are here.