Computer Association of SIUE - Forums

CAOS Forums => Questions and Answers => Topic started by: R. Andrew Lamonica on 2007-03-15T18:19:50-05:00 (Thursday)

Title: How are things in E-ville?
Post by: R. Andrew Lamonica on 2007-03-15T18:19:50-05:00 (Thursday)
Hey CAOSters,

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

Title: Re: How are things in E-ville?
Post by: Shaun Martin on 2007-03-15T20:11:19-05:00 (Thursday)
We had Spring Break last week.  Things are going relatively well for me down here.  I dunno about the rest.  :-D
Title: Re: How are things in E-ville?
Post by: Gregory Bartholomew on 2007-03-15T21:00:10-05:00 (Thursday)
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 \
      [QSA,L]


Mod ReWrite is Awesum!
Title: Re: How are things in E-ville?
Post by: Kaitlyn Schmidt on 2007-03-16T01:23:11-05:00 (Friday)
Not bad just really busy :-)  How are things with you?
Title: Re: How are things in E-ville?
Post by: Ross Mead on 2007-03-16T01:42:50-05:00 (Friday)
LOL!  Tell ya' what... we'll talk about things in E-ville next week when we go to Stanford! ;-)
Title: Re: How are things in E-ville?
Post by: Shaun Martin on 2007-03-16T02:07:53-05:00 (Friday)
I wonder how many more posts I must make before the daystar burns me too!
Title: Re: How are things in E-ville?
Post by: William Grim on 2007-03-16T15:56:19-05:00 (Friday)
You need to get to work if you want daystar burnage!
Title: Re: How are things in E-ville?
Post by: R. Andrew Lamonica on 2007-03-16T19:22:05-05:00 (Friday)
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
http://tinyurl.com/2x8mrt

http://tinyurl.com/24mj8y

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. ;-)

http://blog.zazzle.com/2007/03/16/top-5-st-patricks-day-t-shirts/

Title: Re: How are things in E-ville?
Post by: blacklee on 2007-03-17T00:03:18-05:00 (Saturday)
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!!!!
Title: Re: How are things in E-ville?
Post by: R. Andrew Lamonica on 2007-03-17T03:08:19-05:00 (Saturday)
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.