[02:35] Anyone reasonable with regular expressions? [02:36] i am [02:37] in fact i have a tshirt that says "everybody stand back, i know regular expressions" [02:37] I'm trying: /\]*\>(.*)\<\/head\>/m [02:37] but it's not matching anything [02:38] xkcd? :P [02:38] escape the ()s [02:38] That's for capture of the information I want though [02:39] Basically anything between and [02:39] Whereas could have attributes and values defined [02:40] The syntax is Perl regular expressions [02:52] No suggestions? :P [02:54] not now at least - no thinking [03:07] It just doesn't make sense why this isn't matching anything; I've stripped it down to the basics even [03:07] I've done a hell lot of work with regular expressions before [03:07] Especially with anything XML-like [03:10] Takyoji: are you saying my suggestion didnt work? [03:12] Yes, that didn't work either [03:13] But as implied, I'm not trying to capture parenthesis; that's part of the syntax for a subpattern for capture [03:14] i don't know perl, put it in a perl command line so i can mess with it. [03:14] I'm dealing with PHP [03:14] PHP uses Perl's regular expression syntax [03:15] Which is going to be a bit different than POSIX or for Python as well [03:15] so you dont know perl either? [03:15] It's not about Perl; but yes, I know some about Perl. [03:16] It's just that it uses the Perl regular expression syntax [03:17] perl would seem to be the easiest way to test perl syntax [03:17] for me [03:17] I'm talking about the regular expression itself [03:18] It's just a simple PHP function. preg_match(pattern, subject, matches) [03:18] The pattern goes in single quotes. [03:19] if you'd prefer to give me test php code insteatd that'd be fine, as long as you tell me how to run it [03:19] i had the impression perl would be easier [03:20] ohh grep takes -P, i'll use that [03:21] it matches "stuff" in grep with -P [03:22] so the regex is fine [03:37] This is just pathetic: [03:37] Far beyond pathetic [03:37] http://www.theregister.co.uk/2010/02/12/google_de_facto_internet_gateway/ [03:40] Makes me want to headdesk until my skull shatters. [03:42] Users are dumb... [03:43] Time to start the concept of an internet driver's license. :P [03:43] lmao [03:44] I wouldn't mind that [03:44] Neither would I [03:52] otherwise the capture has linebreaks [03:53] Which I believe is what is causing it to not match anything since it's on a single line [03:53] Even though the "m" pattern modifier should solve that. [03:54] I guess I had to use the "s" pattern modifier to make it work [03:54] Which makes it treat it as a single line, supposedly. === sparkle_history is now known as sparklehistory [22:02] Hm, this "event" module on the website is a little clunky [22:04] <_diablo> on ubuntu-minnesota.org? [22:04] yup [22:04] It could use support for repeating events [22:06] I suppose I'll just have to add the ubuntu hour event and update the date after each one happens [22:19] <_diablo> that's so sketch. [22:19] <_diablo> gCal ftw [22:19] Indeed [22:20] I'd write a patch for the Drupal Events module that we're using, but for some reason I don't know PHP yet.. [22:22] <_diablo> lol, same [22:36] So for tethering; a cellphone simply acts as a dial-up modem, or? [22:37] Takyoji, yeah, usually you configure it as a dial-up modem and tell it to dial a special phone number [22:38] Ahh, intressant [22:38] I thought it had to be done a special driver basis or something [22:38] If it's bluetooth and supports the Dial Up Networking Profile, no driver should be required [22:39] because I have a person that may potentially be interested in Ubuntu; and the only thing that I was thinking would be a problem is that they do tethering through their Blackberry [22:39] It's via USB I believe [22:40] You'd probably have to do a little research to see how the Blackberry presents itself, whether it's some proprietary interface or if it just provides a virtual serial port [22:40] <_diablo> GNOME has a thing built into it for handling mobile phone tethering [22:40] I was looking up some instructions on tethering through a Blackberry, and all the commands are dial-related [22:41] <_diablo> although many providers won't let you (e.g. Sprint won't let me unless I pay like 30 bucks a month) [22:42] Yes, I'm aware of that recently. I was trying to help someone with a GSM modem (or whatever the appropriate protocol is), and didn't know how to configure it (over the phone, especially). Then days later realized there's now a panel for that process. [22:42] I just got Boost Mobile prepaid, I love it. Unlimited data on an EVDO connection, and tethering should work, though I haven't tried yet [22:43] I'm sure there's some arbitrary "excessive use" cap too though [22:43] My brother has satellite service; and he has like 1Mbps, and 200MB cap. :P [22:44] does he live on a boat? [22:44] Interestingly I noticed that the modem actually runs on some BSD variant [22:44] Lives out in the country. [22:46] <_diablo> mr_steve, try to keep each packet downloaded under 1 MB and from what I've heard you should be okay [22:48] packet? [22:49] <_diablo> individual file transferred over a network [22:49] <_diablo> (I might be using it incorrectly, but that's how I've heard it used) [22:51] I've just been trying not to use it unreasonably, but I have been downloading tons of apps from getjar.com, which they probably don't appreciate [22:51] Especially since I found a really decent IM client. And the phone comes with an IM client that costs .99/day to use [22:52] _diablo: if you're talking about an internet connection, the ISP doesnt know how big the files you're downloading are. [22:53] I think the general rule of thumb is something along the lines of "don't tether to your PC and fire up bittorrent" [22:55] <_diablo> kermit, phone companies do... or at least did a few years ago. they would charge people if they DLed too large of files over phone network [22:56] no, that's wire tapping and illegal [22:56] all they can know is total bandwidth used, not the granularity. [23:12] <_diablo> kermit, ah, interesting! cool.