/srv/irclogs.ubuntu.com/2010/02/13/#ubuntu-us-mn.txt

TakyojiAnyone reasonable with regular expressions?02:35
kermiti am02:36
kermitin fact i have a tshirt that says "everybody stand back, i know regular expressions"02:37
TakyojiI'm trying: /\<head[^\>]*\>(.*)\<\/head\>/m02:37
Takyojibut it's not matching anything02:37
Takyojixkcd? :P02:38
kermitescape the ()s02:38
TakyojiThat's for capture of the information I want though02:38
TakyojiBasically anything between <head> and </head>02:39
TakyojiWhereas <head> could have attributes and values defined02:39
TakyojiThe syntax is Perl regular expressions02:40
TakyojiNo suggestions? :P02:52
tonyyarussonot now at least - no thinking02:54
TakyojiIt just doesn't make sense why this isn't matching anything; I've stripped it down to the basics even03:07
TakyojiI've done a hell lot of work with regular expressions before03:07
TakyojiEspecially with anything XML-like03:07
kermitTakyoji: are you saying my suggestion didnt work?03:10
TakyojiYes, that didn't work either03:12
TakyojiBut as implied, I'm not trying to capture parenthesis; that's part of the syntax for a subpattern for capture03:13
kermiti don't know perl, put it in a perl command line so i can mess with it.03:14
TakyojiI'm dealing with PHP03:14
TakyojiPHP uses Perl's regular expression syntax03:14
TakyojiWhich is going to be a bit different than POSIX or for Python as well03:15
kermitso you dont know perl either?03:15
TakyojiIt's not about Perl; but yes, I know some about Perl.03:15
TakyojiIt's just that it uses the Perl regular expression syntax03:16
kermitperl would seem to be the easiest way to test perl syntax03:17
kermitfor me03:17
TakyojiI'm talking about the regular expression itself03:17
TakyojiIt's just a simple PHP function. preg_match(pattern, subject, matches)03:18
TakyojiThe pattern goes in single quotes.03:18
kermitif you'd prefer to give me test php code insteatd that'd be fine, as long as you tell me how to run it03:19
kermiti had the impression perl would be easier03:19
kermitohh grep takes -P, i'll use that03:20
kermitit matches "<head>stuff</head>" in grep with -P03:21
kermitso the regex is fine03:22
TakyojiThis is just pathetic:03:37
TakyojiFar beyond pathetic03:37
Takyojihttp://www.theregister.co.uk/2010/02/12/google_de_facto_internet_gateway/03:37
TakyojiMakes me want to headdesk until my skull shatters.03:40
tonyyarussoUsers are dumb...03:42
TakyojiTime to start the concept of an internet driver's license. :P03:43
kermitlmao03:43
tonyyarussoI wouldn't mind that03:44
TakyojiNeither would I03:44
Takyojiotherwise the capture has linebreaks03:52
TakyojiWhich I believe is what is causing it to not match anything since it's on a single line03:53
TakyojiEven though the "m" pattern modifier should solve that.03:53
TakyojiI guess I had to use the "s" pattern modifier to make it work03:54
TakyojiWhich makes it treat it as a single line, supposedly.03:54
=== sparkle_history is now known as sparklehistory
mr_steveHm, this "event" module on the website is a little clunky22:02
_diabloon ubuntu-minnesota.org?22:04
mr_steveyup22:04
mr_steveIt could use support for repeating events22:04
mr_steveI suppose I'll just have to add the ubuntu hour event and update the date after each one happens22:06
_diablothat's so sketch.22:19
_diablogCal ftw22:19
mr_steveIndeed22:19
mr_steveI'd write a patch for the Drupal Events module that we're using, but for some reason I don't know PHP yet..22:20
_diablolol, same22:22
TakyojiSo for tethering; a cellphone simply acts as a dial-up modem, or?22:36
mr_steveTakyoji, yeah, usually you configure it as a dial-up modem and tell it to dial a special phone number22:37
TakyojiAhh, intressant22:38
TakyojiI thought it had to be done a special driver basis or something22:38
mr_steveIf it's bluetooth and supports the Dial Up Networking Profile, no driver should be required22:38
Takyojibecause 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 Blackberry22:39
TakyojiIt's via USB I believe22:39
mr_steveYou'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 port22:40
_diabloGNOME has a thing built into it for handling mobile phone tethering22:40
TakyojiI was looking up some instructions on tethering through a Blackberry, and all the commands are dial-related22:40
_diabloalthough many providers won't let you (e.g. Sprint won't let me unless I pay like 30 bucks a month)22:41
TakyojiYes, 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
mr_steveI just got Boost Mobile prepaid, I love it. Unlimited data on an EVDO connection, and tethering should work, though I haven't tried yet22:42
mr_steveI'm sure there's some arbitrary "excessive use" cap too though22:43
TakyojiMy brother has satellite service; and he has like 1Mbps, and 200MB cap. :P22:43
kermitdoes he live on a boat?22:44
TakyojiInterestingly I noticed that the modem actually runs on some BSD variant22:44
TakyojiLives out in the country.22:44
_diablomr_steve, try to keep each packet downloaded under 1 MB and from what I've heard you should be okay22:46
kermitpacket?22:48
_diabloindividual file transferred over a network22:49
_diablo(I might be using it incorrectly, but that's how I've heard it used)22:49
mr_steveI'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 appreciate22:51
mr_steveEspecially since I found a really decent IM client. And the phone comes with an IM client that costs .99/day to use22:51
kermit_diablo: if you're talking about an internet connection, the ISP doesnt know how big the files you're downloading are.22:52
mr_steveI think the general rule of thumb is something along the lines of "don't tether to your PC and fire up bittorrent"22:53
_diablokermit, phone companies do... or at least did a few years ago. they would charge people if they DLed too large of files over phone network22:55
kermitno, that's wire tapping and illegal22:56
kermitall they can know is total bandwidth used, not the granularity.22:56
_diablokermit, ah, interesting! cool.23:12

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!