Channel: prev | nextHour: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23Date: prev | next | index
ruby-langMonday, 1 October, 2007
Style: cnoolb | irssi | clog | f00f | sexp
Filter: Quit-off | Join-off | Part-off | Nick-off | Mode-off | Topic-off | Ignore-filter-words-off | Url-only-off
Highlight: From-me | To-me | My-highlights
 
paul0Entered.00:01:46
ukineQuit with message (Connection timed out).00:01:51
ukineQuit with message (Connection timed out).00:01:51
ukineEntered.00:02:13
emoEntered.00:05:02
kuja__Entered.00:05:10
rhalffQuit with message ("Ex-Chat").00:06:21
rhalffQuit with message ("Ex-Chat").00:06:21
mf_ircEntered.00:08:43
aptivaEntered.00:09:19
dgoodladEntered.00:10:27
zorg_the_falseQuit with message (Remote closed the connection).00:11:34
kabusQuit with message (Read error: 110 (Connection timed out)).00:13:09
<arooni>hey folks!00:13:40
neosirisQuit with message (Client Quit).00:14:10
<arooni>when i put a really really long string in (about 4 lines in a full screen console).... i get the errror: (irb):3: syntax error, unexpected tIDENTIFIER, expecting $end00:14:10
<arooni>any ideas on how to fix?00:14:13
<EvanR>does ruby regex have lookbehind... /(?<=a)/00:14:34
k_dub_Entered.00:14:38
<arooni>said string has a bunch of quotes in it00:15:09
<arooni>is there any other way of declaring a string other than s = "foo" || s = 'foo' ? 00:16:02
<arooni>one that auto escapes ""00:16:06
<GarethAdams>%q{here's a strinh "with quotes" in it}00:17:13
k_dub_Quit with message (Client Quit).00:18:24
k_dub_Quit with message (Client Quit).00:18:24
sudoerEntered.00:18:48
aptiva_Entered.00:19:11
<arooni>GarethAdams, perfect!!! 00:20:16
<arooni>thanks00:20:16
<GarethAdams>and as with all % markers, you can use any delimiters oyou want00:20:46
<GarethAdams>%q/this is a string too/00:21:10
<yonkeltron>which %magic shortcut should i be using to turn a bunch of numbers into an array of numbers...%w(1 2 3) gives an array of strings00:22:08
<arooni>GarethAdams, cool, i didnt know that00:22:34
tominLeft.00:23:50
sudoerChanged name to jtoy__.00:24:14
sudoerChanged name to jtoy__.00:24:14
lakEntered.00:24:39
<GarethAdams>yonkeltron: %w{1 2 3}.map{|x|x.to_i}00:24:40
ljlaneQuit with message (Remote closed the connection).00:26:02
<darix>yonkeltron: uhm00:26:16
<darix>[1,2,3]00:26:19
<darix>i mean typing those "," isnt too hard right?00:26:32
<LoganCapaldo>there's no % numeric shorthand00:26:49
<oGMo>heh00:27:16
<don-o>lol00:27:41
aptivaQuit with message (Connection timed out).00:27:49
<LoganCapaldo>[1,2,3] is actually fewer chars than %w[1 2 3]00:27:49
<yonkeltron>yes it is00:29:08
arooniQuit with message (Remote closed the connection).00:29:10
<yonkeltron>and Array.new is clearest of them all00:29:16
k_dubQuit with message (Connection timed out).00:29:49
k_dubQuit with message (Connection timed out).00:29:49
n0manQuit with message ().00:30:29
Carnage`Entered.00:30:51
Carnage\Quit with message (Nick collision from services.).00:30:51
Carnage\Quit with message (Nick collision from services.).00:30:51
Carnage`Changed name to Carnage\.00:31:02
Carnage`Changed name to Carnage\.00:31:02
FullmoonQuit with message ().00:31:22
fhobiaEntered.00:32:21
arooniEntered.00:33:21
francescoQuit with message ("a n'in pos pio'..").00:33:59
arooniQuit with message (Remote closed the connection).00:34:05
<yonkeltron>GarethAdams: a question about gets...it seems to be waiting for an EOF before parsing the string00:34:34
<GarethAdams>yes, that's what gets does00:34:48
<yonkeltron>is there way to get the input on carriage return?00:35:01
arooniEntered.00:35:13
*yonkeltron is new to getting user input like that...00:35:15
*yonkeltron googles around00:35:19
<GarethAdams>oh I see00:36:12
<GarethAdams>well gets seems to qork on carriage return for me00:36:20
<GarethAdams>*work00:36:24
joevandykQuit with message ("This computer has gone to sleep").00:36:27
jessecrouchEntered.00:36:46
<GarethAdams>fire up IRB and "puts gets"00:36:50
aptiva_Quit with message (Success).00:37:02
arooni_Entered.00:39:22
tomodizEntered.00:40:04
DougyEntered.00:41:02
viewlogicEntered.00:41:07
<Dougy>Love ruby? Free hosting! </spam> 00:41:15
<Dougy>Hehe.00:41:16
*Dougy wants to learn Rub00:41:18
<Dougy>y00:41:19
DougyLeft.00:42:57
<kith>everyone seems to think ruby == ruby on rails00:43:17
mf_ircLeft.00:44:52
arooni_Quit with message (Remote closed the connection).00:44:53
tomodizLeft.00:45:58
arooni__Entered.00:46:36
jsoftw_Entered.00:46:57
viewlogicQuit with message (Client Quit).00:47:34
jessecrouch2Entered.00:48:10
viewlogicEntered.00:48:57
ljlaneEntered.00:50:06
arooni__Quit with message (Remote closed the connection).00:50:26
nashkQuit with message (Remote closed the connection).00:50:29
arooni_Entered.00:50:42
samsmEntered.00:51:47
arooni_Quit with message (Read error: 104 (Connection reset by peer)).00:53:48
Carnage\Quit with message ().00:53:50
Carnage\Quit with message ().00:53:50
arooni_Entered.00:53:54
chinoEntered.00:54:28
<chino>how do i catch any error ?00:54:40
<jptix>rescue Exception00:55:09
n0manEntered.00:55:17
nertzyEntered.00:55:17
<jptix>but think twice about why you're doing that :)00:55:31
jessecrouchQuit with message (Read error: 104 (Connection reset by peer)).00:56:30
nertzyQuit with message (Client Quit).00:56:43
atmos_Entered.00:58:13
<kmeyer>jptix: cause you're too lazy to find the correct exception to catch :D00:58:33
corbanbrookEntered.00:58:37
jessecrouchEntered.00:58:55
<LoganCapaldo>dangerously lazy00:59:26
perezdQuit with message (Client Quit).01:00:44
<yonkeltron>like haskell01:00:45
<yonkeltron>LoganCapaldo: haskell is dangerously lazy01:00:54
logankoesterEntered.01:01:31
arooni_Quit with message (Remote closed the connection).01:02:24
arooni__Entered.01:02:39
<don-o>yonkeltron: that couldbe the next james bond subtitle: Dangerous.... and Lazy.01:03:34
click170Entered.01:03:51
arooni__Quit with message (Read error: 104 (Connection reset by peer)).01:03:56
<chino>no because i want to print out any errors that i miss...01:03:58
jsoftwQuit with message (Read error: 110 (Connection timed out)).01:05:05
arooni_Entered.01:05:29
<yonkeltron>don-o: yeah...although it does make one wonder if ruby's GC is good enough to deal with eager evaluation01:06:04
<teferi>MRI's GC isn't particularly good, period01:06:25
flajann1Entered.01:06:25
<yonkeltron>MRI?01:06:42
<teferi>matz's ruby implementation01:06:58
<yonkeltron>ah...which is the current 1.8 right?01:07:20
<teferi>yup01:07:33
<teferi>though yarv has the same GC01:07:35
<yonkeltron>yarv is 1.9?01:08:05
<teferi>yup01:08:21
arooni_Quit with message (Read error: 104 (Connection reset by peer)).01:08:33
<manveru>yarv is the VM 1.9 runs on01:08:36
arooni_Entered.01:08:58
chinoLeft.01:09:03
<yonkeltron>i see...well, that's kind of upsetting01:09:07
<yonkeltron>so, apropos, where does rubinius fit into all this?01:09:18
<manveru>rubinius is ruby on a smalltalk VM01:10:18
arooni_Quit with message (Remote closed the connection).01:10:41
arooni__Entered.01:10:55
<yonkeltron>smalltalk!01:11:33
neosirisEntered.01:11:45
apeirosQuit with message ("This computer has gone to sleep").01:12:07
arooni__Quit with message (Read error: 104 (Connection reset by peer)).01:12:09
<yonkeltron>i always thought of ruby as the lovechild resulting from a night of drunken passion between smalltalk and lisp...01:12:13
zedasEntered.01:12:20
<teferi>rubinius is a ruby compiler+vm implemented in the style of the Smalltalk 80 ("Blue Book") compiler+vm01:12:26
SorexQuit with message ().01:12:36
<manveru>yonkeltron: they drank too much perl?01:12:45
<yonkeltron>right...01:12:48
<yonkeltron>manveru: only the regex stuff i guess01:12:54
chinoEntered.01:13:04
<yonkeltron>manveru: sigils of any type are barely present in ruby01:13:07
<chino>how would you test if a udp port is open ?01:13:20
arooni_Entered.01:13:44
<manveru>yonkeltron: when did you do: ruby -e 'p global_variables' last time? :)01:13:47
versixEntered.01:15:32
<yonkeltron>barely used01:15:32
<yonkeltron>not every variable needs to be prefixed by some shit or another01:15:51
<yonkeltron>hmmm.jruby looks rather promising01:16:47
<yonkeltron>maybe even superior to cruby....is that possible?01:16:58
<teferi>sure01:17:02
jessecrouch2Quit with message (Connection timed out).01:17:12
<teferi>you get instant access to a whole bunch of existing java libraries01:17:18
vandemarEntered.01:17:49
<yonkeltron>right...and you can compile ruby code to run on the jvm01:17:57
<yonkeltron>which is nice01:17:59
k_dubEntered.01:18:01
<yonkeltron>i wonder if applets are less suck...01:18:05
<yonkeltron>although i am a little worried about the area of guis...01:18:19
<vandemar>I don't use openssl functionality, so can someone confirm that this patch to compile against openssl 0.9.9 doesn't break the openssl module? http://www.pastebin.ca/72116501:19:07
dgoodladQuit with message ("leaving").01:19:18
rushedQuit with message ().01:19:27
arooni_Quit with message (Read error: 104 (Connection reset by peer)).01:20:46
ryanloweQuit with message ().01:21:40
atmos_Quit with message ().01:23:56
drupek12Quit with message (Remote closed the connection).01:24:38
drakoQuit with message (Connection timed out).01:24:56
drakoQuit with message (Connection timed out).01:24:56
luisjoseEntered.01:25:03
dietbuddhaEntered.01:26:53
arooni__Entered.01:26:55
k_dubQuit with message ().01:28:32
k_dubQuit with message ().01:28:32
alteregoQuit with message (Read error: 110 (Connection timed out)).01:28:57
arooni-mobileEntered.01:29:28
scramjet_Entered.01:29:32
arooni-mobileQuit with message (Client Quit).01:29:54
arooni-mobileQuit with message (Client Quit).01:29:54
arooniQuit with message (Client Quit).01:29:57
arooniQuit with message (Client Quit).01:29:57
arooniEntered.01:30:04
arooni-mobileEntered.01:30:26
arooniQuit with message (Client Quit).01:30:31
arooniQuit with message (Client Quit).01:30:31
james_brittQuit with message ("KVIrc 3.2.4 Anomalies http://www.kvirc.net/").01:31:22
TkAEntered.01:31:25
SarahEmmQuit with message ("•mIRC with speech 0.9 BETA, ąTalk2Me meow. IRC doesn't get any easier. ¦nini¦").01:31:35
analfabetaEntered.01:32:14
<analfabeta>what this code do? proximo, topo = 1, topo+1 if proximo > topo 01:32:29
drupek12Entered.01:33:58
chinoLeft.01:34:07
NickPrestaEntered.01:34:47
crashgrindripsEntered.01:35:53
DengarEntered.01:36:37
<kmeyer>analfabeta: if proximo > topo, then proximo = 1 and topo += 101:38:01
<analfabeta>oh, tks01:38:29
glutinousQuit with message ("brb").01:39:49
glutinousEntered.01:39:58
click170Quit with message (Read error: 110 (Connection timed out)).01:41:05
click170Quit with message (Read error: 110 (Connection timed out)).01:41:05
luisjoseQuit with message (Connection timed out).01:43:16
luisjoseQuit with message (Connection timed out).01:43:16
ljdEntered.01:43:27
em-dashEntered.01:50:22
neosirisQuit with message (Client Quit).01:50:56
jsoftw_Changed name to jsoft.01:51:49
jsoftChanged name to jsoftw.01:51:50
viewlogicQuit with message (Client Quit).01:56:03
<crashgrindrips>help, please! questions at the bottom. http://rafb.net/p/GmdWKE22.html01:59:20
kaydaraEntered.01:59:32
<slyphon>dah02:01:07
<slyphon>anyone had experience with terminal servers? (serial, not m$) ?02:01:25
satyagrahiEntered.02:03:21
<satyagrahi>How may one get ri to display documentation for Kernel#open?02:04:49
<slyphon>ri 'Kernel#open' ?02:05:07
<slyphon>hm02:05:38
<slyphon>weird02:05:40
ben_hEntered.02:05:51
<satyagrahi>yep02:05:53
<slyphon>satyagrahi: seems like a bug to me02:05:57
<tpope>the more than one method thing?02:06:46
<tpope>it's probably mixing it up with the one from open-uri02:06:57
foomil__Entered.02:08:12
analfabetaLeft.02:10:15
k_dubEntered.02:10:21
kbrust_Entered.02:10:51
TonrenQuit with message ("leaving").02:11:14
ben_hQuit with message (Client Quit).02:13:01
ben_hQuit with message (Client Quit).02:13:01
mput_awayChanged name to shyshngw.02:13:07
samsmLeft.02:15:15
ZyconQuit with message (Connection timed out).02:15:39
ben_hEntered.02:15:42
kbrustQuit with message (Read error: 110 (Connection timed out)).02:17:29
foomil_Quit with message (Read error: 110 (Connection timed out)).02:19:47
rain````Entered.02:21:12
wmoxamEntered.02:23:16
eevar_Entered.02:24:06
k_dubQuit with message ("INSUFFICIENT MEMORY").02:24:46
k_dubQuit with message ("INSUFFICIENT MEMORY").02:24:46
kaydaraQuit with message ("Leaving").02:25:21
drupek12Quit with message (Read error: 104 (Connection reset by peer)).02:25:56
corbanbrook_Entered.02:26:23
ZyconEntered.02:27:12
TkAQuit with message (Read error: 110 (Connection timed out)).02:27:28
mppfEntered.02:28:14
rain```Quit with message (Connection timed out).02:31:00
crazeinc_Entered.02:31:39
Tron`Entered.02:31:51
ljdQuit with message (Read error: 110 (Connection timed out)).02:33:21
ljdQuit with message (Read error: 110 (Connection timed out)).02:33:21
corbanbrookQuit with message (Read error: 110 (Connection timed out)).02:34:01
neveleEntered.02:34:07
drupek12Entered.02:35:30
mmpfQuit with message (Read error: 110 (Connection timed out)).02:38:55
seydarEntered.02:38:56
em-dashQuit with message ().02:38:59
<seydar>hey02:39:08
<seydar>has anyone used THERuSH ?02:39:26
seydarQuit with message (Client Quit).02:39:56
eevarQuit with message (Read error: 110 (Connection timed out)).02:41:14
eevarQuit with message (Read error: 110 (Connection timed out)).02:41:14
<__kaiser__>how can I print the line number of the exception that was raised?02:43:13
wmoxamQuit with message (Read error: 110 (Connection timed out)).02:44:23
<__kaiser__>nevermind. :)02:45:08
crazeincQuit with message (Read error: 110 (Connection timed out)).02:47:24
neosirisEntered.02:56:28
KamuEntered.02:57:13
jtoyQuit with message ().02:57:17
lightcapQuit with message ().02:57:22
DoctorNickEntered.03:01:20
Dr_WhoEntered.03:02:16
rain```Entered.03:04:01
Skyblaze_Entered.03:06:44
HahnQuit with message ("ta...").03:12:18
<LoganCapaldo>night03:13:30
LoganCapaldoQuit with message ("waaaaaaaaaaa").03:13:41
LoganCapaldoQuit with message ("waaaaaaaaaaa").03:13:41
paul0Quit with message ("Leaving").03:14:04
rain````Quit with message (Connection timed out).03:14:14
SkyblazeQuit with message (Read error: 113 (No route to host)).03:15:20
toretoreQuit with message ("Leaving").03:15:47
Tron`Quit with message (Read error: 104 (Connection reset by peer)).03:16:47
shyshngwChanged name to mput_away.03:17:37
TurbotQuit with message (Remote closed the connection).03:19:16
TurbotQuit with message (Remote closed the connection).03:19:16
crashgrindripsQuit with message ("Leaving").03:26:39
Mephux-Entered.03:33:01
krawekEntered.03:34:33
d2dchatEntered.03:36:03
UncleDEntered.03:38:50
dblackEntered.03:40:14
ReinHLeft.03:40:41
Mephux-Quit with message (Client Quit).03:42:18
rvg_Entered.03:43:31
RandroidEntered.03:45:55
eumarioEntered.03:46:12
arooni-mobileQuit with message (Read error: 110 (Connection timed out)).03:46:57
arooni-mobileQuit with message (Read error: 110 (Connection timed out)).03:46:57
willcodeforfooEntered.03:47:46
zedasQuit with message (Client Quit).03:50:05
dblackQuit with message ().03:50:15
satyagrahiQuit with message ("subbot.org").03:51:24
satyagrahiQuit with message ("subbot.org").03:51:24
lakQuit with message ().03:55:25
mput_awayChanged name to shyshngw.03:57:47
james_brittEntered.03:58:01
nertzyEntered.03:58:57
arooni__Quit with message (Client Quit).03:59:49
arooni_Entered.03:59:55
arooni_Quit with message (Read error: 104 (Connection reset by peer)).04:00:16
arooniEntered.04:00:20
wmoxamEntered.04:00:38
GMFlashQuit with message ().04:00:41
ezmobiusQuit with message ().04:00:42
GMFlashEntered.04:00:46
squeegyEntered.04:01:25
rvgQuit with message (Read error: 110 (Connection timed out)).04:02:23
ANDY-8576309Quit with message ().04:02:26
nighty^Entered.04:04:18
[cash420]Entered.04:05:13
jtoy__Quit with message ().04:09:02
jtoy__Quit with message ().04:09:02
ollyQuit with message ("This computer has gone to sleep").04:09:23
click170Entered.04:13:04
wbruceEntered.04:15:48
bbQuit with message (Nick collision from services.).04:16:05
bb_Entered.04:16:10
MagicStormQuit with message (Read error: 104 (Connection reset by peer)).04:16:16
wbruceQuit with message (Client Quit).04:16:33
wbruceEntered.04:16:44
wbruceLeft.04:17:05
MagicStormEntered.04:18:05
freealanEntered.04:18:34
corbanbrook_Quit with message (Client Quit).04:18:36
zedasEntered.04:18:45
logankoesterQuit with message (Read error: 110 (Connection timed out)).04:19:53
logankoesterEntered.04:20:19
HahnEntered.04:22:05
fhobiaQuit with message (Read error: 110 (Connection timed out)).04:23:11
IR3Entered.04:26:52
priiduEntered.04:27:06
IR3Changed name to chenk.04:27:18
<eumario>I need some help with a regexp, /(\Wclass\s|\Wdef\s|\Wcase\s|\Wif\s|\Wmodule\s|\Wdo\s|\Wwhile\s|\Wfor\s|\Wbegin\s)/ is what I'm using, but it won't detect properly, if for example class starts at the begining of the line.04:27:32
<eumario>Any suggestions?04:27:51
<manveru>ouch04:29:12
<manveru>eumario: you don't know regular expressions?04:29:54
<eumario>manveru: Not much.04:30:13
<eumario>manveru: Enough to do simple stuff.04:30:28
<manveru>/[\W^](class|def|module)\s/04:30:55
<manveru>have fun parsing ruby... :P04:32:19
<eumario>manveru: Still the same problem. I'm not parsing ruby fully, just looking for keywords. I'm working on an Editor.04:32:48
<teferi>oh boy, another one!04:32:57
<eumario>Maybe one to put the rest to shame? ;-)04:33:19
<teferi>uh-huh.04:34:29
<manveru>exactly...04:35:00
<manveru>is it gonna be modal?04:35:22
<teferi>is it gonna be modeless?04:35:31
wbruceEntered.04:35:36
<eumario>If your talking about FreeRIDE design, I'm not going that route.04:35:51
<teferi>huh?04:36:04
<teferi>no.04:36:06
<teferi>no one uses freeride04:36:17
<eumario>I found a way to get around the bug. I just modify the test string to have a buffer space infront.04:36:43
<eumario>What do you guys mean by modal/modeless?04:37:22
<wbruce>freeride. man, I haven't heard that in a long time.04:37:33
krawekQuit with message (Read error: 110 (Connection timed out)).04:37:51
<manveru>eumario: if you don't know, better don't start :)04:38:38
<eumario>manveru: Well, there can be many meanings to modal/modeless. And I don't know if I'm doing it or not. :P04:39:12
<eumario>Are you talking about MVC?04:39:34
<manveru>no04:39:40
*eumario has no clue then. :P04:39:49
broemanEntered.04:39:52
<manveru>again, if you don't know what modal means in connection with editors, don't bother writing one :)04:39:57
WezzelEntered.04:41:01
<eumario>Does it have to do with the way the code is written, with the way the editor interface is, what have ya?04:41:17
<squeegy>which do you think?04:41:47
<eumario>Well, let's do this, I'll explain what I'm doing, and then you guys can tell me if it's Modal or not. :P04:42:53
<eumario>I'm writting a full blown IDE as I've known it in the past. Project Support, Editor, GUI Developer, full Intergrated Development Enviroment.04:43:28
ejhQuit with message ().04:43:32
chinoEntered.04:43:39
<chino>why does ri give me Nothing known about Arry#delete04:43:48
<chino>i think its hosed04:43:52
crazeincEntered.04:45:37
RandroidQuit with message ().04:46:19
RandroidQuit with message ().04:46:19
<manveru>eumario: seriously, writing an editor is one of the hardest things you can do :)04:47:38
<teferi>eumario: well, that's pretty ambitious04:48:40
crazeinc__Entered.04:48:52
<teferi>how much programming experience do you have/04:48:52
crazeinc_Quit with message (Read error: 104 (Connection reset by peer)).04:49:43
digxEntered.04:50:19
<chino>hes been around a while04:50:21
<chino>both of you04:50:25
<eumario>I've got 5 years programming experince.04:50:30
<chino>anyone play with rbot ?04:50:38
<chino>im having a blast...04:50:42
<eumario>Programming with Basic, Euphoria, HTML, Some C/C++ and Ruby.04:51:09
<eumario>Oh and PHP04:51:15
*chino hides from php04:51:30
<eumario>PHP is cool.04:51:38
<teferi>if you're calling writing HTML "programming", you *definitely* have no business writing an editor04:51:48
<chino>oh you were talking to eumario... ithought you meant manveru04:52:07
<eumario>It is programming, when you do it without a WYSIWYG Editor.04:52:07
<teferi>not at all04:52:20
<teferi>html is markup that describes the structure of a document04:52:29
<teferi>it's typesetting and composing and layout, not programming04:52:44
<perlmonk>WYSIWYG editors are pure crap, they generate code you have to re-organise before using it...04:53:00
<teferi>that's not the issue04:53:12
<eumario>It is when you include JS, VBScript, and CSS04:53:15
<chino>yea i hate wysiwyg unles you never gonna touch it04:53:25
<teferi>CSS is assuredly not a programming language04:53:26
<chino>and its written well04:53:34
<chino>perlmonk: you wouldn't like something like glade ?04:53:49
<eumario>Well, whatever. You can see what my work is like when I get it up and going.04:53:59
<teferi>chino: there's only one libglade, and it's a strict xml parser04:54:15
<perlmonk>chino, Never used it... I don't directly deal with GTK04:54:22
<teferi>you can't compare wysywig gui design to wysywig html editors04:54:26
crazeinc_Entered.04:54:50
<perlmonk>and I agree with teferi on this last statement04:54:52
<chino>idk it just seems nice to design a gui visually... and if there was any messups i mean the fact that it puts it into xml is pretty neat... sorta like xul04:54:53
crazeincQuit with message (Read error: 104 (Connection reset by peer)).04:55:06
freealanQuit with message ("leaving").04:55:09
<chino>teferi: yea i was being more general04:55:18
<perlmonk>chino, Sure, nice, but then you have to re-organise the whole again....04:55:22
<perlmonk>I prefer to type my html/css myself04:55:39
<chino>perlmonk: yea idk.. i never tried it but i think it can handel it self fine... 04:55:47
<teferi>so does everyone04:55:48
<teferi>sheesh04:55:49
<chino>perlmonk: im talking about glade04:55:51
<chino>yea i do my own html 04:55:57
<chino>i never like any wysiwg ever....04:56:09
<chino>for html...04:56:22
<perlmonk>Ah, yes, it's nice.04:56:27
<eumario>And one thing I am not doing, is using Fox Toolkit.04:57:17
<perlmonk>eumario, Let's put it this way, no algorythm, it's not programming04:57:32
<teferi>this converation is rapidly becoming ridiculous04:57:56
<eumario>perlmonk: Then 90 percent of your GUI programming is not programming at all.04:57:58
james_brittQuit with message ("KVIrc 3.2.4 Anomalies http://www.kvirc.net/").04:58:38
<chino>lmao04:59:23
<perlmonk>eumario, No, 100% of your GUI DESIGNING is not programming, you might have some stuff inside your logical part, like... puts "<option></option>" But I wouldn't call this "design" :)"04:59:38
spuk-Quit with message ("Human beings were created by water to transport it uphill.").04:59:58
crazeincEntered.05:00:07
<eumario>perlmonk: What it comes down to, is that a program, is a program, cause you can execute it, and it displays something.05:00:14
<teferi>the hell with this05:00:17
*teferi heads off05:00:24
statesideQuit with message ().05:00:27
<perlmonk>eumario, Then the program is called a browser05:00:39
crazeinc__Quit with message (Read error: 104 (Connection reset by peer)).05:01:26
<perlmonk>Now, where it becomes funny, is... javascript :) It's a programming language... aswell executing in the browser :D05:01:45
<perlmonk>Actually, not executing05:02:00
<perlmonk>interpreted05:02:03
<perlmonk>just like HTML... or CSS :P05:02:11
<eumario>Then there goes all interpreted languages, cause it's not a true program.05:02:17
<perlmonk>it is, because in JS, you have algos05:02:33
<baaba>a program processes data05:02:36
<baaba>there05:02:38
<baaba>now shut up05:02:40
<eumario>Thank you baaba05:02:46
<perlmonk>:D05:02:52
*perlmonk laughes 05:02:59
<perlmonk>1am, bed time :)05:03:17
<perlmonk>Nite Nite everyone :)05:03:26
<eumario>Night05:03:30
perlmonkQuit with message ("Two of the most important Unix traditions are to share and to help people. -Harley Hahn").05:03:50
<eumario>manveru: Thanks for the help with the regexp, it does work, with some minor modifications to the test string.05:03:58
diclophisLeft.05:05:42
<jsoftw>priidu: night05:07:13
<jsoftw>oh05:07:18
<jsoftw>doh05:07:20
<eumario>lol05:07:29
squeegyQuit with message ().05:07:53
eumarioQuit with message (" HydraIRC -> http://www.hydrairc.com <-").05:08:34
takaiEntered.05:09:44
scroolooseQuit with message ("'and immm too sexy for this channel, too sexy for this channel....'").05:10:27
[1]DoctorNickEntered.05:11:15
jsoftwQuit with message ("Lost terminal").05:12:09
click170Quit with message (Read error: 110 (Connection timed out)).05:13:30
click170Quit with message (Read error: 110 (Connection timed out)).05:13:30
willcodeforfooQuit with message ().05:16:11
willcodeforfooEntered.05:16:22
philcEntered.05:17:19
crazeinc_Quit with message (Read error: 110 (Connection timed out)).05:19:03
ryan_bakerEntered.05:20:08
DoctorNickQuit with message (Connection timed out).05:23:09
[1]DoctorNickChanged name to DoctorNick.05:23:10
cyndisEntered.05:23:23
wmoxamQuit with message ("This computer has gone to sleep").05:24:41
UncleDQuit with message ("If you give this man a ride, sweet family will die... killer on the road").05:26:17
em-dashEntered.05:26:53
AphelionQuit with message ().05:29:14
Bulavkin_1Lx2JEntered.05:29:16
fowlduckQuit with message ("Leaving").05:31:36
ryan_bakerQuit with message ().05:32:08
mynymlEntered.05:32:55
neosirisQuit with message (Client Quit).05:34:02
Bulavkin_1Lx2JQuit with message (Client Quit).05:38:49
Bulavkin_1Lx2JEntered.05:40:02
zedasQuit with message (Client Quit).05:43:03
_spukEntered.05:44:12
neosirisEntered.05:44:13
PistosEntered.05:53:26
<Pistos>I think I've found a bug in Hpricot. With code that reproduces it 100% of the time.05:53:44
*Pistos prepares some pasties...05:53:59
<Pistos>http://pastie.caboo.se/10240005:54:52
crazeincQuit with message ().05:55:51
*Pistos tries Hpricot.XML05:55:59
<Pistos>Hm, same thing.05:56:18
PistosChanged name to Pistos|home|afk.05:57:17
zenspiderQuit with message (Read error: 110 (Connection timed out)).06:02:10
crazeincEntered.06:03:17
crazeincQuit with message (Remote closed the connection).06:03:26
dem314Entered.06:05:05
headiusQuit with message ().06:06:08
neosirisQuit with message (Client Quit).06:10:16
GarepjotrEntered.06:10:28
bjcQuit with message ().06:13:04
ubiquitousEntered.06:13:20
lightcapEntered.06:14:44
em-dash_Entered.06:15:59
mczepielEntered.06:16:25
em-dashQuit with message (Read error: 104 (Connection reset by peer)).06:16:45
scramjet_Quit with message ().06:16:57
sridEntered.06:24:15
dje_Quit with message ().06:26:01
TobiXQuit with message ("Reconnecting").06:26:10
TobiXEntered.06:26:14
PhilKCQuit with message (Client Quit).06:27:11
PhilKCQuit with message (Client Quit).06:27:11
sridLeft.06:27:28
headiusEntered.06:27:52
srid`Entered.06:28:03
srid`Changed name to srid.06:28:28
spityQuit with message ("Leaving...").06:31:30
OberQuit with message (Read error: 104 (Connection reset by peer)).06:33:12
parolkarEntered.06:33:18
headiusQuit with message ().06:33:58
fhobiaEntered.06:36:34
fizxEntered.06:36:51
ruinousEntered.06:37:07
ruinousQuit with message (Client Quit).06:37:49
nkpartEntered.06:38:14
ruinousEntered.06:38:29
imajesEntered.06:43:45
slyphonQuit with message (Read error: 110 (Connection timed out)).06:44:38
nkpartQuit with message ().06:49:07
halorgiumChanged name to halo`.06:53:39
nkpartEntered.06:56:37
Bulavkin_1Lx2JChanged name to UncleD.07:00:11
_eevarEntered.07:01:16
viewlogicEntered.07:01:49
toorEntered.07:02:16
toorQuit with message (Read error: 104 (Connection reset by peer)).07:02:24
mynymlQuit with message ("Leaving").07:02:47
<darix>Pistos|home|afk: https://code.whytheluckystiff.net/hpricot/newticket07:03:02
TOrrIeriQuit with message ("Saliendo").07:04:10
buzzedQuit with message (Read error: 110 (Connection timed out)).07:04:55
pluesch0rEntered.07:05:00
ultravioletEntered.07:05:53
ultravio1etQuit with message (Read error: 60 (Operation timed out)).07:08:44
Mentr3dEntered.07:09:22
viewlogicQuit with message (Client Quit).07:12:54
ChrononautQuit with message (Remote closed the connection).07:14:36
ChrononautQuit with message (Remote closed the connection).07:14:36
ChrononautEntered.07:14:48
chenkQuit with message ("Leaving.").07:14:49
zefredzEntered.07:15:35
exodusoEntered.07:16:52
exodusoQuit with message (Read error: 104 (Connection reset by peer)).07:16:55
emoQuit with message (Remote closed the connection).07:17:31
umis-Entered.07:18:04
eevar_Quit with message (Read error: 110 (Connection timed out)).07:19:01
HahnQuit with message ("ta...").07:19:14
kevinpetEntered.07:24:35
[1]DoctorNickEntered.07:26:08
riffraffEntered.07:26:27
em-dashEntered.07:27:51
d2dchatQuit with message (Connection timed out).07:28:44
d2dchatQuit with message (Connection timed out).07:28:44
chinoQuit with message ("Leaving.").07:29:46
em-dash_Quit with message (Read error: 104 (Connection reset by peer)).07:30:23
mczepielQuit with message ().07:32:59
ruxpinQuit with message (Read error: 113 (No route to host)).07:34:10
araujoQuit with message (Read error: 110 (Connection timed out)).07:37:34
araujoQuit with message (Read error: 110 (Connection timed out)).07:37:34
bb_Changed name to bb.07:39:02
araujoEntered.07:42:36
DoctorNickQuit with message (Connection timed out).07:43:39
[1]DoctorNickChanged name to DoctorNick.07:43:39
ubiquitousQuit with message (Remote closed the connection).07:48:37
nkpartQuit with message ().07:50:33
thesnowdogEntered.07:50:59
thesnowdogQuit with message (Read error: 104 (Connection reset by peer)).07:52:28
elsobrinoEntered.07:53:06
thesnowdogEntered.07:53:14
swombatQuit with message (Connection timed out).07:53:15
swombatQuit with message (Connection timed out).07:53:15
jadeisfallingEntered.07:53:34
zenspiderEntered.07:53:44
ruinousQuit with message (Read error: 104 (Connection reset by peer)).07:56:33
lightcapQuit with message (Read error: 110 (Connection timed out)).07:58:24
headiusEntered.07:59:05
fearoffishEntered.08:02:08
sepp2k_Entered.08:02:53
versix_Entered.08:03:56
robolemonEntered.08:04:28
pstickne_Entered.08:05:20
nertzyQuit with message (Nick collision from services.).08:05:24
jadeisfallingQuit with message ("buh bye now").08:05:27
Skyblaze_Quit with message (Client Quit).08:05:52
mppfQuit with message (Client Quit).08:05:57
bquorningEntered.08:06:24
robolemonChanged name to nertzy.08:06:45
bquorningLeft.08:07:28
elsobrinoQuit with message (Client Quit).08:07:43
arooniQuit with message (Remote closed the connection).08:07:46
arooniQuit with message (Remote closed the connection).08:07:46
arooni_Entered.08:07:58
guidoEntered.08:08:25
guidoQuit with message (Client Quit).08:10:13
arooni_Quit with message (Read error: 104 (Connection reset by peer)).08:11:04
iblechbotEntered.08:11:09
arooniEntered.08:11:09
arooniQuit with message (Remote closed the connection).08:11:54
arooniEntered.08:12:07
KDanEntered.08:15:55
doniphonEntered.08:17:24
leethalEntered.08:19:13
versixQuit with message (Connection timed out).08:19:46
kuja_Quit with message (Read error: 104 (Connection reset by peer)).08:20:35
kuja__Quit with message (Read error: 104 (Connection reset by peer)).08:20:36
sepp2kQuit with message (Read error: 110 (Connection timed out)).08:20:40
arooniQuit with message (Read error: 104 (Connection reset by peer)).08:21:07
arooniEntered.08:21:23
kbrust_Quit with message (Client Quit).08:22:03
eevar2Entered.08:22:06
arooniQuit with message (Remote closed the connection).08:22:45
arooni_Entered.08:23:00
pstickneQuit with message (Connection timed out).08:23:04
pstickneQuit with message (Connection timed out).08:23:04
kbrustEntered.08:25:23
muggerQuit with message ().08:25:33
philcQuit with message ().08:28:37
KDan_Entered.08:31:01
KDan_Quit with message (Client Quit).08:31:17
KDan_Entered.08:31:34
yipstarQuit with message (Read error: 113 (No route to host)).08:31:36
yipstarQuit with message (Read error: 113 (No route to host)).08:31:36
KDan_Changed name to swombat.08:32:27
KDan_Changed name to swombat.08:32:27
headiusQuit with message ().08:33:21
sridQuit with message (Read error: 110 (Connection timed out)).08:37:34
sridQuit with message (Read error: 110 (Connection timed out)).08:37:34
arooni_Quit with message (Remote closed the connection).08:37:45
arooniEntered.08:37:59
cognominal_Entered.08:38:34
kevinpetQuit with message (Read error: 110 (Connection timed out)).08:39:01
chinoEntered.08:41:54
KDanQuit with message (Connection timed out).08:42:24
KDanQuit with message (Connection timed out).08:42:24
srisQuit with message ().08:42:27
pluesch0rQuit with message (Client Quit).08:42:44
neveleQuit with message (Read error: 113 (No route to host)).08:44:44
langenbergEntered.08:45:01
GarethAdamsQuit with message (Connection timed out).08:45:38
arooniQuit with message (Read error: 104 (Connection reset by peer)).08:46:57
arooniEntered.08:47:18
pstickne_Quit with message (Read error: 110 (Connection timed out)).08:47:40
pstickne_Quit with message (Read error: 110 (Connection timed out)).08:47:40
toretoreEntered.08:49:28
evilcheluEntered.08:49:35
statimQuit with message ("Leaving").08:51:30
noskillEntered.08:51:48
tneshiEntered.08:53:54
em-dashQuit with message ().08:57:25
fhobiaQuit with message (Connection timed out).08:57:35
wbruceQuit with message ().08:59:29
oremEntered.09:00:22
teslacoilLeft.09:00:29
freealanEntered.09:05:17
Dr_WhoQuit with message ("This computer has gone to sleep").09:05:24
fredixEntered.09:06:13
|Vargas|Entered.09:07:08
kaydaraEntered.09:07:23
evilcheluQuit with message ("You'll Never Walk Alone").09:08:30
BinjaEntered.09:09:46
pluesch0rEntered.09:12:07
pluesch0rQuit with message (Remote closed the connection).09:12:21
piglopEntered.09:12:44
evilcheluEntered.09:16:01
copyleftQuit with message ("Leaving").09:16:01
copyleftQuit with message ("Leaving").09:16:01
kithQuit with message (Read error: 113 (No route to host)).09:16:59
scramjetEntered.09:19:09
bquorningEntered.09:19:57
lowEntered.09:20:14
cydorkEntered.09:21:32
DEac-Quit with message (Read error: 110 (Connection timed out)).09:22:06
ZyconQuit with message (Client Quit).09:23:05
ZyconEntered.09:23:17
sridEntered.09:23:27
argv[]Quit with message ("Quit: Quit: Quit: Stack Overflow.").09:27:26
srisEntered.09:27:55
riffraffQuit with message (Remote closed the connection).09:28:39
alloyEntered.09:29:15
alloyLeft.09:29:35
freealanQuit with message ("leaving").09:29:46
n0manQuit with message ().09:29:55
DEac-Entered.09:30:20
spityEntered.09:33:02
AphoriseEntered.09:35:18
ngewEntered.09:35:36
<manveru>LoCotD: 'minos' =~ /minos/minos09:37:54
ngewQuit with message (Read error: 104 (Connection reset by peer)).09:37:55
bquorningLeft.09:38:20
ngewEntered.09:38:25
chinoLeft.09:39:18
cognominal_Quit with message (Client Quit).09:39:19
cognominal_Quit with message (Client Quit).09:39:19
priiduQuit with message (Read error: 110 (Connection timed out)).09:41:30
broemanQuit with message (Read error: 104 (Connection reset by peer)).09:42:07
priiduEntered.09:42:13
[1]DoctorNickEntered.09:45:05
francescoEntered.09:45:27
<leethal>so, a neat little shellscript - http://pastie.caboo.se/10243909:46:36
<leethal>how would one go on no cleanly replace the values in that configuration file I'm scanning?09:46:51
<leethal>the $1 part of the match is the key in the SETTINGS constant, the $2 part of the match is the value09:47:12
brynoEntered.09:48:54
Al2O3Entered.09:50:20
<leethal>if SETTINGS.keys.include?(key) then replace_the_line! end, so to speak09:51:38
<leethal>not sure how to replace the line, though09:51:43
<leethal>so, my _actual_ question is: how do you replace stuff in a file?09:52:05
<H4z3>You would have to read it all in to a new file09:52:18
<H4z3>and just next on the lines you don't want09:52:39
<sepp2k_>leethal: You read the file, change stuff, and write the file again.09:52:47
<manveru>hrm09:52:56
<leethal>so you do some kind of .write, not just .close?09:53:03
<manveru>leethal: and you'd do some things differently :)09:53:05
<sepp2k_>Btw: You really don't need to use $1 and $2 with scan.09:53:06
<leethal>heh, I guess I'd figure it out by looking it up in the api09:53:16
<leethal>sepp2k_: aw, is it yielded?09:53:27
<sepp2k_>leethal: Yes, scan yields an array containing the captures.09:53:52
<leethal>neat09:54:10
hannestydenEntered.09:54:34
ompQuit with message ("leaving").09:54:42
<sepp2k_>So if instead of do |match| you write do |key, value| you can skip the key,value= line09:54:43
<H4z3>array = "<b>one</b><b>2</b>".scan("<b>(.+?)<.b>"); -> ["one", "two"]09:55:03
<leethal>ah09:55:03
<leethal>didn't know you could go |key, value| directly in the args09:55:22
Al2O3Quit with message ("Eggplant & SenseTalk: Driving Success Through Automation").09:56:29
Al2O3Quit with message ("Eggplant & SenseTalk: Driving Success Through Automation").09:56:29
<manveru>you don't even need that...09:56:35
<manveru>but looks cleaner :)09:56:55
DoctorNickQuit with message (Read error: 110 (Connection timed out)).09:57:03
[1]DoctorNickChanged name to DoctorNick.09:57:03
<sepp2k_>H4z3: "<b>one</b><b>2</b>".scan(/<b>(.+?)<.b>/) #=> [["one"], ["2"]]09:57:58
<H4z3>sepp2k_: My bad, .flatten :P09:58:18
MoneoEntered.09:58:31
hannestydenLeft.09:58:35
<H4z3>I forgot i had 2 and not two09:58:36
<H4z3>Wow, forgetting things in seconds ftw09:58:48
ngewQuit with message (Read error: 104 (Connection reset by peer)).09:58:59
hannestydenEntered.09:59:04
<manveru>leethal: http://pastie.caboo.se/10244109:59:19
ngewEntered.09:59:34
broemanEntered.10:00:06
<Zycon>in irb how do you get the install dir of ruby?10:00:53
MoneoQuit with message (Client Quit).10:01:06
<manveru>Zycon: Config::CONFIG10:01:13
MoneoEntered.10:01:16
<leethal>neat10:01:41
<Zycon>Config::CONFIG -> uninitialized constant10:01:49
<manveru>Zycon: then you better get a new ruby10:02:45
<Zycon>hmmm10:02:56
<manveru>is that 1.6.2 or something? :P10:03:07
<Zycon>1.8.4.. so i don't know whats going on10:03:17
greapEntered.10:03:34
<H4z3>Doesn't work for me either.10:03:49
<manveru>oh10:04:28
<scoopr>require 'rbconfig' ?10:04:31
<leethal>manveru: the only thingie, though, is that I need to replace lines, not add them10:04:35
<leethal>manveru: but I guess gsub and friends can help10:04:49
<H4z3>don't you need mkmf10:04:50
<manveru>leethal: then you know how to change it :)10:04:51
<Zycon>manveru: awesome, thankyou!10:04:58