| magic_user | seesm alot eh |
| f00li5h | i hear so |
| Ani-_ | You liar. |
| f00li5h | magic_user: well, without torrents, i used about 500Mb/month i've done 6 or 8 gig this month since i got my server (and torrent client) running |
| Ani-_ | 85% goes to porn. 10% to torreents, 5% to other crap and 1241564% to spam. |
| dazjorz | Ani-_: MySQL. |
| f00li5h | Ani-_: oh, i was assuming that all the porn was on torrents |
| Ani-_ | f00li5h: what you use is irrelevant... |
| f00li5h | well, half of the porn was torrents |
| action | jjore calls floating point on Ani-_. |
| jjore | calls floating point on Ani-_. |
| Ani-_ | f00li5h: you are using only 10 gig dazjorz: show processlist; or show full processlist; or tail /var/log/mysql.log |
| f00li5h | Ani-_: yes, my stats are a small sample Ani-_: can't find the url, please disgard stats |
| solussd | how can i turn "Joe Smith" into "jsmith". ie, print first initial and last name given full name? |
| f00li5h | solussd: a regular expression |
| Ani-_ | What about "Joe Foo Smith" ? |
| solussd | trying to figure out how to set up the regex no middle names, i dont think-- |
| Ani-_ | solussd: also: is it one scalar or two? |
| solussd | one |
| Ani-_ | solussd: you think... First make sure. |
| solussd | ok. i'm sure- i'll make sure there arent any. :) |
| action | f00li5h gets out his wide problem solving paint brush |
| f00li5h | gets out his wide problem solving paint brush |
| Ani-_ | solussd: ok, so what you want to match: the start of the string, a single character, an un-specified amount of non space characters, a space character, the rest. |
| action | jjore figures you'd just do ( $first, $last ) = split ' '; $nm = lc( substr( $first, 0, 1 ) . $last ); |
| jjore | figures you'd just do ( $first, $last ) = split ' '; $nm = lc( substr( $first, 0, 1 ) . $last ); |
| solussd | yes jjore: that dounds good *sounds |
| Ani-_ | jjore: add a LIMIT in that split. |
| jjore | Why Ani-_? |
| Ani-_ | jjore: so it works for "John Smith Foo" |
| action | jjore coughs: split /(?#LIMIT) +/ |
| jjore | coughs: split /(?#LIMIT) +/ Ani-_: Nope. I'm utterly disclaiming that problem. |
| Ani-_ | Ofcourse another way to do it: substr($x, 0, 1) . substr($x, index($x, " ") + 1); # ofcourse that would fail if there is no space in the string |
| callum | s/^(\w)\w*\s(\w+)$/\L$1$2/ is good too? |
| jjore | At that point, Ani-_, I'd start wanting dictionaries to guess which lname parts were really middle names or were lname parts. |
| Ani-_ | callum: I would use \S* and \S+ |