» GC Stats |
Members: 331,318
Threads: 115,704
Posts: 2,207,446
|
Welcome to our newest member, haleymarley1013 |
|
 |

04-29-2008, 12:21 PM
|
GreekChat Member
|
|
Join Date: Aug 2007
Location: Springfield, VA
Posts: 117
|
|
Be careful, my brother.....your inner geek is showing!! 
Love and LFS,
Elyssa
__________________
Elyssa Brecher Mu Mu Fall '95; Advisory Chair - Alpha Delta Delta (GMU) "There's only us, there's only this. Forget Regret, or life is yours to miss. No other road, no other way. No day but today." Rent Be a Leader, Be a Friend, Be of Service. 
|

04-29-2008, 09:57 PM
|
GreekChat Member
|
|
Join Date: Apr 2001
Location: Rockville,MD,USA
Posts: 3,562
|
|
Quote:
Originally Posted by GMUAPhiOAdvisor
Be careful, my brother.....your inner geek is showing!! 
Love and LFS,
Elyssa
|
Really, if you want, I can be geekier.
Sincerely
Randolph Finder
National Media & Tech Committee.
__________________
Because "undergrads, please abandon your national policies and make something up" will end well  --KnightShadow
|

04-30-2008, 07:13 AM
|
GreekChat Member
|
|
Join Date: Aug 2007
Location: Springfield, VA
Posts: 117
|
|
Quote:
Originally Posted by naraht
Really, if you want, I can be geekier.
Sincerely
Randolph Finder
National Media & Tech Committee.
|
Is that possible? I showed that to my husband, who I call my "turbo-geek" and even HE said it was way up there on the Geek-o-Meter!!
You DO know I'm just playing, right??? 
In LFS,
Elyssa
__________________
Elyssa Brecher Mu Mu Fall '95; Advisory Chair - Alpha Delta Delta (GMU) "There's only us, there's only this. Forget Regret, or life is yours to miss. No other road, no other way. No day but today." Rent Be a Leader, Be a Friend, Be of Service. 
|

04-30-2008, 02:09 PM
|
GreekChat Member
|
|
Join Date: Apr 2001
Location: Rockville,MD,USA
Posts: 3,562
|
|
Quote:
Originally Posted by GMUAPhiOAdvisor
Is that possible? I showed that to my husband, who I call my "turbo-geek" and even HE said it was way up there on the Geek-o-Meter!!
You DO know I'm just playing, right??? 
In LFS,
Elyssa
|
Sure, I haven't imported it into a mysql database yet.  I just wish I had access to the database that they actually use rather than grabbing what I can from what the website shows.
And besides, this isn't even as complicated as some of the shell scripts that I actually get paid to write. An example: (This is one of the uglier ones)
#!/bin/bash
AAA=`echo $TERM`
if [ $AAA == 'xterm' ]; then
COLOR_START='^[[0;1;34m'
COLOR_FINISH='^[[0m'
fi
(cat /home/DIR1/DIR2/html/tutorials/vulnerability/*.html | perl -p -0777 -e 's#<pre>.+?</pre># #sg'|perl -p -e 's#<tt>.+?</tt># #g'| perl -p -e 's/<.+?>/ /g' | perl -p -e 's/[A-Za-z]*\.[A-Za-z]*/ /g'|tr -c "[:alnum:]" "\n"| sort | grep -v "[0-9]"| grep -v "^[A-Z]*$" | uniq -s 1| tee /tmp/ccc |uniq -c -i | grep -v "^ 1" | cut -f 2 | tr 'A-Z' 'a-z'| comm -23 - /usr/local/bin/check_capsconsistencyexceptions |xargs -i grep -i "^{}$" /tmp/ccc | xargs -i echo "${COLOR_START}check_capsconsistency:${COLOR_FINIS H} Capitalization difference: {}");rm /tmp/ccc
check_capsconsistency is a sanity check for capitalization in our tutorials, making sure that we don't have cases where we use 'KeyView' and 'Keyview' by mistake so that we can correct one.
The initial test (from the beginning to the 'fi') is to make sure that the name of the sanity check shows up in color (purple, I think) when we run it from a terminal and doesn't when we run it automated overnight.
The main statement outputs all of our tutorials into the check, then takes anything in pre tags and deletes them and the tags they came in, deletes all tags, erases any words that have a dot in the middle, transforms anything that's left with a non alpha-numeric to a carriage return, sorts it, gets rid of anything with a number in it, gets rid of anything entirely made of capital letters, takes only unique values ignoring the first letter, drops a copy of the file in /tmp/ccc and keeps going, does another run of unique, ignoring case and counting how many of each it has, getting rid of anything where there is only one, cutting off the second field (the first is the count), makes all uppercase letters lower case, gets the lines in the stream that aren't in check_capsconsistencyexceptions, looks for each of those lines ignoring case in /tmp/ccc to get the non-lowercased versions in the stream at that point, and then outputs the results of that back to the screen for the user.
When I ran it just now I got back
check_capsconsistency: Capitalization difference: Keyview
check_capsconsistency: Capitalization difference: KeyView
Oh, you're playing? Never mind.
__________________
Because "undergrads, please abandon your national policies and make something up" will end well  --KnightShadow
|

05-01-2008, 07:38 AM
|
GreekChat Member
|
|
Join Date: Aug 2007
Location: Springfield, VA
Posts: 117
|
|
Quote:
Originally Posted by naraht
And besides, this isn't even as complicated as some of the shell scripts that I actually get paid to write. An example: (This is one of the uglier ones)
|
You get PAID to write that kind of stuff??? WOW.....I mean no offense, but it kind of looks like what comes up on the screen when Dori (my 23 month old) tells her daddy "Email, write email!!" and her lets her!! 
In all seriousness, I am truly impressed by people who write code. I could never do it.....and without it, this exchange would have never taken place. So for that skill, I am truly, humbly impressed. 
__________________
Elyssa Brecher Mu Mu Fall '95; Advisory Chair - Alpha Delta Delta (GMU) "There's only us, there's only this. Forget Regret, or life is yours to miss. No other road, no other way. No day but today." Rent Be a Leader, Be a Friend, Be of Service. 
|

05-01-2008, 10:56 AM
|
GreekChat Member
|
|
Join Date: Apr 2001
Location: Rockville,MD,USA
Posts: 3,562
|
|
Quote:
Originally Posted by GMUAPhiOAdvisor
|
Strangely enough we have an infinite number of monkeys writing code for us, but right now they are behind schedule...
I don't have much of a clue on how to write the code that Greekchat uses for it's bulletin boards.
Randy
__________________
Because "undergrads, please abandon your national policies and make something up" will end well  --KnightShadow
|
 |
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|