00:00
<
UziMonkey >
well... [1,2,3,4].each_slice(2).map{|s| s.join(' - ') }.join('<br>')
00:00
<
UziMonkey >
I literally just did something almost just like that
00:01
<
zenspider >
yup yup
00:01
<
emmdeeess >
wow, that worked perfect
00:01
<
emmdeeess >
amazing, thanks
00:01
mephux has joined #ruby-lang
00:02
davidbalbert is now known as davidbalber|away
00:02
Bearproof has left #ruby-lang [#ruby-lang]
00:02
<
lianj >
is closing br tags overrated?
00:03
<
emmdeeess >
good call
00:03
<
UziMonkey >
is it necessary in HTML?
00:03
<
lianj >
hm looks like the world moved on and br is fine now
00:03
<
UziMonkey >
I thought only XHTML had such nonsense
00:03
kiwnix has joined #ruby-lang
00:04
<
UziMonkey >
I mean, you can do it in HTML 4 or 5, but you don't need to
00:04
<
havenwood >
emmdeeess: Another way: pairs = [1, 2, 3, 4]; Hash[*pairs].map { |k, v| "#{k} - #{v}<br>" }
00:05
<
havenwood >
emmdeeess: oops, forgot a `.join` at the end.
00:05
carloslopes has quit [Remote host closed the connection]
00:06
<
UziMonkey >
That'll work, but I don't like it :P
00:06
<
UziMonkey >
and it only works because Ruby's hashes are magic, and pull keys out in the same order you put them in
00:07
<
UziMonkey >
it seems silly to put it into another data structure when you already have them in key/value pairs (albeit in an array)
00:07
<
havenwood >
UziMonkey: Doesn't seem very magic to me.
00:07
<
UziMonkey >
havenwood: most hashes don't seem to work that way, and it's magic because I don't know how it does it
00:08
<
havenwood >
UziMonkey: Your way they turn into an enum, mine they turn into a hash. Can't keep it an array.
00:08
kshah has joined #ruby-lang
00:08
dRbiG has quit [Ping timeout: 245 seconds]
00:08
<
UziMonkey >
right, but an enum is just another view of the array, not a new data structure. But it's not important
00:09
Cymurai has quit [Quit: Leaving]
00:10
<
UziMonkey >
I wasn't aware this was code golf
00:10
<
zenspider >
hashes aren't magic.
00:10
billyoc has quit [Remote host closed the connection]
00:10
<
havenwood >
UziMonkey: I wasn't trying to golf. :P
00:11
<
kshah >
I'm having problems querying for a problem I'm trying to solve. I have a list and want to assign each member of that list a pair who is also a member of that list but not-itself and there should only be a single ring. That is [1, 2, 3] => [[1,3], [2,1], [3,2]] but not [1, 2, 3] => [[1,2],[2,1],[3,3]] and not [1, 2, 3, 4] => [[1,2],[2,1],[3,4],[4,3]]
00:11
<
UziMonkey >
I tried to benchmark it, but yours crashes, stack level too deep on a 1_000_000 long array :(
00:12
<
kshah >
does anyone have an idea of what type of problem that is?
00:12
dRbiG has joined #ruby-lang
00:13
<
UziMonkey >
I read that twice and I don't get what you're trying to do
00:13
intellitech has quit [Ping timeout: 245 seconds]
00:15
<
andrewvos >
kshah: A problem needs a loop?
00:15
<
andrewvos >
kshah: Amd maybe an if statement for good measure.
00:15
<
kshah >
andrewvos: sure, I can iterate over the list, and I could just shift the list, I neglected to mention random assignment
00:15
<
UziMonkey >
this may be a bit... retarded. a = [1,2,3]; a.zip( a.rotate(a.length-1) )
00:16
<
kshah >
I forgot to mention random assignment.. my bad
00:16
__BigO__ has joined #ruby-lang
00:16
<
andrewvos >
kshah: Random assignment?
00:17
<
kshah >
andrewvos: that is, every item on the list should not be assigned an adjacent number on the list, it should be random
00:18
<
UziMonkey >
or this, rather. a = [1,2,3]; a.zip( a.rotate(-1) )
00:18
<
UziMonkey >
but your test case has the numbers adjacent?
00:18
<
UziMonkey >
I'm still confused
00:18
<
andrewvos >
UziMonkey: Dude that only works with areays that have three items
00:18
<
kshah >
it's an arbitrary sized list
00:19
<
andrewvos >
kshah: Use Array#sample.
00:19
<
UziMonkey >
andrewvos: does it? it works with a 1..10 for me..
00:19
jxie_ has joined #ruby-lang
00:19
<
kshah >
although your single line zen was most impressive
00:19
<
zenspider >
kshah: homework?
00:19
<
kshah >
zenspider: no a game I'm making
00:19
<
andrewvos >
UziMonkey: Ah ok.
00:19
<
zenspider >
almost sounds like graph theory?
00:19
<
kshah >
andrewvos: Array#sample could create two circles
00:20
<
UziMonkey >
andrewvos: I don't actually understand what he's asking, I'm just trying to match his sample :P
00:20
<
zenspider >
you're generating unique paths (edges) through a list of nodes?
00:20
BigFatFatty has left #ruby-lang [#ruby-lang]
00:20
<
kshah >
the real world example is this: a game of assassins where everyone has to assassinate a target, and then take over that persons target
00:20
<
zenspider >
I dunno. I had a workout. my brain is way mushy
00:21
jxie has quit [Ping timeout: 252 seconds]
00:21
<
andrewvos >
And then?
00:21
<
kshah >
the list is a list of people, and I want to assign them randomly because I have to account for the fact that people who know each other already are likely to assign up in in order
00:21
<
zenspider >
but this DOES sound like graph theory
00:21
<
UziMonkey >
yes, it does
00:22
<
kshah >
but I want to make it achievable for someone to kill *everyone*, but if there are multiple "circles" then that would not be possible
00:22
rins has quit [Ping timeout: 240 seconds]
00:23
Skitsu`work has quit [Ping timeout: 252 seconds]
00:23
<
andrewvos >
Ok on that note, I'm going to sleep.
00:23
<
zenspider >
if you make a fully connected graph (think a circle with every node connected to every other) then remove the outer edges (adjacent node edges), isn't that what you're talking about?
00:23
Skitsu`work has joined #ruby-lang
00:24
bantic has quit [Quit: bantic]
00:24
chendo has quit [Ping timeout: 245 seconds]
00:24
<
kshah >
I think the outer edge is the only layer I'm concerned with, no?
00:25
ryanv-raptor has joined #ruby-lang
00:25
guns has quit [Quit: guns]
00:25
<
zenspider >
oh. if so, I misunderstood
00:25
<
zenspider >
then yeah. a plain ring would be fine, no?
00:26
<
zenspider >
nodes.shuffle.each_cons(2)
00:26
<
zenspider >
then you just need to add first and last
00:27
AntiTyping has joined #ruby-lang
00:29
<
kshah >
let me try something
00:29
<
kshah >
and zenspider thank you
00:30
chendo_ has joined #ruby-lang
00:30
<
zenspider >
a = [1, 2, 3]; b = a.shuffle; b << b.first; b.each_cons(2).to_a # => [[1, 3], [3, 2], [2, 1]]
00:30
mrsolo has quit [Quit: Leaving]
00:30
robotmay has quit [Ping timeout: 248 seconds]
00:31
Weems has joined #ruby-lang
00:31
Weems has quit [Changing host]
00:31
Weems has joined #ruby-lang
00:31
<
UziMonkey >
um.. wow, I didn't know about each_cons :P
00:31
<
kshah >
yeah, neither did I :)
00:31
<
UziMonkey >
I did a.zip( a[1..-1] ).each before :P
00:31
<
UziMonkey >
now I feel foolish
00:34
sush24 has quit [Quit: This computer has gone to sleep]
00:34
chendo_ has quit [Ping timeout: 272 seconds]
00:35
<
kshah >
no internal loops
00:35
<
zenspider >
yay for functional style!
00:36
<
zenspider >
that isn't quite the same as your original description... but it works, no?
00:36
__BigO__ has quit [Remote host closed the connection]
00:36
<
zenspider >
yay for the graph gem!
00:37
<
kshah >
zenspider: it may not have matched the original description but it provides the intended behavior
00:37
<
kshah >
thank you so much, awesome
00:37
chendo_ has joined #ruby-lang
00:37
davidbalber|away is now known as davidbalbert
00:38
jtoy has quit [Quit: jtoy]
00:39
__BigO__ has joined #ruby-lang
00:41
chendo_ has quit [Ping timeout: 245 seconds]
00:44
chendo_ has joined #ruby-lang
00:49
charliesome has joined #ruby-lang
00:50
jtoy has joined #ruby-lang
00:53
ivanoats has joined #ruby-lang
00:53
hahuang65 has quit [Quit: Computer has gone to sleep.]
00:54
<
postmodern >
zenspider, i tried using gauntlet but i can't seem to get it to work
00:54
imajes has quit [Excess Flood]
00:54
<
postmodern >
zenspider, even tried copy/pasting the example from the README
00:55
kogent has quit [Quit: kogent]
00:56
imajes has joined #ruby-lang
01:00
sush24 has joined #ruby-lang
01:00
kshah has left #ruby-lang [#ruby-lang]
01:02
__BigO__ has quit [Remote host closed the connection]
01:04
kogent has joined #ruby-lang
01:04
kogent has quit [Remote host closed the connection]
01:05
gregmore_ has quit [Ping timeout: 260 seconds]
01:05
kogent has joined #ruby-lang
01:05
unlikely_monkey has joined #ruby-lang
01:06
kith has quit [Read error: Connection reset by peer]
01:07
kith has joined #ruby-lang
01:07
hahuang65 has joined #ruby-lang
01:08
ggamel has joined #ruby-lang
01:09
io_syl has quit [Ping timeout: 252 seconds]
01:10
idkazuma has quit [Remote host closed the connection]
01:11
cored has quit [Quit: leaving]
01:11
io_syl has joined #ruby-lang
01:11
kith_ has joined #ruby-lang
01:12
jtoy has quit [Quit: jtoy]
01:13
kith has quit [Ping timeout: 248 seconds]
01:15
mistym has quit [Remote host closed the connection]
01:17
__BigO__ has joined #ruby-lang
01:17
marr has quit [Ping timeout: 264 seconds]
01:18
jfelchner2 has quit [Ping timeout: 256 seconds]
01:19
mwjcomputing has quit [Ping timeout: 252 seconds]
01:20
kiwnix has quit [Changing host]
01:20
kiwnix has joined #ruby-lang
01:21
imajes has quit [Excess Flood]
01:21
imajes has joined #ruby-lang
01:22
lcdhoffman has quit [Quit: lcdhoffman]
01:23
agarie has quit [Remote host closed the connection]
01:27
JMcAfreak has quit [Ping timeout: 252 seconds]
01:29
davidbalbert is now known as davidbalber|away
01:31
KA_ has joined #ruby-lang
01:31
cordax has quit [Quit: Computer has gone to sleep.]
01:32
kmlawson has quit [Quit: kmlawson]
01:32
gnufied has joined #ruby-lang
01:33
unlikely_monkey has quit [Remote host closed the connection]
01:34
matti__ has quit [Quit: Reconnecting]
01:34
mpatel has joined #ruby-lang
01:34
matti has joined #ruby-lang
01:34
matti has joined #ruby-lang
01:35
neocoin_ has joined #ruby-lang
01:36
neocoin has quit [Ping timeout: 244 seconds]
01:36
ivanoats has quit [Remote host closed the connection]
01:37
chendo_ has quit [Ping timeout: 264 seconds]
01:38
__BigO__ has quit [Remote host closed the connection]
01:38
chendo_ has joined #ruby-lang
01:39
ivanoats has joined #ruby-lang
01:39
ivanoats has joined #ruby-lang
01:39
ivanoats has quit [Changing host]
01:40
agarie has joined #ruby-lang
01:41
retro|cz has joined #ruby-lang
01:49
Bosox20051 has quit [Quit: Leaving]
01:52
jfelchner2 has joined #ruby-lang
01:53
kogent has quit [Ping timeout: 276 seconds]
01:54
bzalasky has joined #ruby-lang
01:55
krohrbaugh has quit [Quit: Leaving.]
01:57
drbrain has quit [Remote host closed the connection]
01:57
tenderlove has quit [Remote host closed the connection]
01:58
gnufied has quit [Quit: Leaving.]
02:04
arubin has joined #ruby-lang
02:04
mistym has joined #ruby-lang
02:08
brianpWins has quit [Quit: brianpWins]
02:08
mjio has joined #ruby-lang
02:09
techlife has quit [Ping timeout: 276 seconds]
02:11
bzalasky has quit [Remote host closed the connection]
02:12
KA_ has quit [Quit: KA_]
02:15
techlife has joined #ruby-lang
02:15
imperator has left #ruby-lang ["Leaving"]
02:16
lsegal has joined #ruby-lang
02:19
sush24 has quit [Quit: This computer has gone to sleep]
02:21
srbaker has quit [Quit: Computer has gone to sleep.]
02:22
bzalasky has joined #ruby-lang
02:25
hakunin_ has quit [Remote host closed the connection]
02:26
hakunin has joined #ruby-lang
02:27
rsl has quit [Quit: Computer has gone to sleep.]
02:27
hakunin has quit [Read error: Connection reset by peer]
02:27
hakunin has joined #ruby-lang
02:27
hakunin has quit [Remote host closed the connection]
02:27
hakunin has joined #ruby-lang
02:30
ridget has quit [Remote host closed the connection]
02:32
hakunin has quit [Remote host closed the connection]
02:33
hakunin has joined #ruby-lang
02:34
mpatel has quit [Quit: mpatel]
02:34
bzalasky has quit [Remote host closed the connection]
02:34
soypirate has quit [Quit: Leaving]
02:34
gnufied has joined #ruby-lang
02:34
gnufied has quit [Client Quit]
02:35
soypirate has joined #ruby-lang
02:36
ridget has joined #ruby-lang
02:38
savagecroc has joined #ruby-lang
02:38
hakunin has quit [Ping timeout: 272 seconds]
02:38
hakunin has joined #ruby-lang
02:40
hakunin has quit [Remote host closed the connection]
02:40
hakunin has joined #ruby-lang
02:40
srbaker has joined #ruby-lang
02:41
<
savagecroc >
hey.. does this loop look ok.. or is there a better way of doing it?
02:43
<
savagecroc >
whoops forgot to paste the link
02:44
hakunin_ has joined #ruby-lang
02:45
srbaker has quit [Client Quit]
02:45
hakunin_ has quit [Remote host closed the connection]
02:45
hakunin has quit [Read error: Connection reset by peer]
02:45
hakunin_ has joined #ruby-lang
02:46
hakunin_ has quit [Remote host closed the connection]
02:46
hakunin has joined #ruby-lang
02:48
<
ryanv-raptor >
savagecroc: looks fine to me
02:48
<
ryanv-raptor >
I'm not sure how people feel about "break" but you could simplify like this:
02:48
<
ryanv-raptor >
exactly
02:48
<
ryanv-raptor >
read my mind
02:48
<
savagecroc >
yeah i think we had the same idea.. haha
02:48
<
savagecroc >
but yeah thats much nicer.. the first one looked a bit ugly (for ruby that is)
02:48
<
ryanv-raptor >
then you can remove the password_length_ok variable up top
02:49
<
savagecroc >
whoops.. missed that, thanks
02:49
<
ryanv-raptor >
not sure about what the "ask" method does, but if i'm inputting a password i'd want echo to be false
02:49
<
savagecroc >
yeah i want echo true.. it's not like people can memorize random 30 character passwords over your shoulder
02:50
<
ryanv-raptor >
I mean, I get what it probably does
02:50
<
savagecroc >
also this only gets setup on server isntallation so it's kind of rare
02:51
dvorak has joined #ruby-lang
02:52
hakunin has quit [Ping timeout: 246 seconds]
02:52
tenderlove has joined #ruby-lang
02:53
<
ryanv-raptor >
makes sense then
02:53
cjs226 has joined #ruby-lang
02:54
agarie has quit [Remote host closed the connection]
02:54
mercwithamouth has quit [Quit: Lost terminal]
02:55
gix has joined #ruby-lang
02:57
matled has quit [Read error: Operation timed out]
02:57
alvaro_o has quit [Quit: Ex-Chat]
02:57
gix- has quit [Ping timeout: 260 seconds]
02:58
matled has joined #ruby-lang
02:58
glebm has joined #ruby-lang
02:59
io_syl has quit [Ping timeout: 255 seconds]
03:01
tonni_ has joined #ruby-lang
03:04
UziMonkey has quit [Ping timeout: 256 seconds]
03:04
tonni has quit [Ping timeout: 256 seconds]
03:04
Bwild has quit [Ping timeout: 256 seconds]
03:04
chris2 has quit [Ping timeout: 256 seconds]
03:05
chris2 has joined #ruby-lang
03:05
Bwild has joined #ruby-lang
03:06
drbrain has joined #ruby-lang
03:11
intellitech has joined #ruby-lang
03:14
mwjcomputing has joined #ruby-lang
03:15
KINGSABRI has joined #ruby-lang
03:16
<
KINGSABRI >
hello everybody
03:17
<
KINGSABRI >
I need to find index of all matches pattern not just 1st one
03:17
<
KINGSABRI >
like ,,
03:17
chendo_ has quit [Ping timeout: 246 seconds]
03:17
Sleepy_neko has joined #ruby-lang
03:17
<
KINGSABRI >
c= "congratualations" # the "n" locations are c[2] and c[14]
03:18
<
savagecroc >
s.enum_for(:scan, /whatever/).map { Regexp.last_match.begin(0) }
03:18
<
KINGSABRI >
savagecroc, fast and working :)
03:19
mwjcomputing has quit [Ping timeout: 248 seconds]
03:19
chendo_ has joined #ruby-lang
03:19
<
KINGSABRI >
savagecroc, I never worked with enum_for before ,, I'll read about it more
03:20
soypirate has quit [Remote host closed the connection]
03:21
<
KINGSABRI >
savagecroc, btw ,, I found many ppl working with "map" instead of "each" , why?
03:21
felipe_Brz has joined #ruby-lang
03:21
<
firefux >
they are different
03:21
<
savagecroc >
each does a loop
03:22
<
savagecroc >
map creates an array
03:22
<
savagecroc >
you sure your not thinking of the difference between map and collect?
03:22
<
firefux >
KINGSABRI: learn to use ri
03:23
<
KINGSABRI >
firefux, yes i'v :( >> always using web docs
03:24
<
KINGSABRI >
yes savagecroc Im talking about each and map ,, many short solutions were using map instade of each
03:27
cirenyc has joined #ruby-lang
03:28
KA_ has joined #ruby-lang
03:28
ryanv-raptor has quit [Quit: Leaving.]
03:31
krz has joined #ruby-lang
03:36
glebm has quit [Ping timeout: 252 seconds]
03:37
glebm has joined #ruby-lang
03:40
kiwnix has quit [Quit: Leaving]
03:41
davidbalber|away is now known as davidbalbert
03:41
rippa has joined #ruby-lang
03:41
techlife has quit [Ping timeout: 260 seconds]
03:42
savagecroc has quit [Remote host closed the connection]
03:43
ryanv-raptor has joined #ruby-lang
03:44
mercwithamouth has joined #ruby-lang
03:45
rippa has quit [Ping timeout: 240 seconds]
03:47
techlife has joined #ruby-lang
03:47
techlife has quit [Max SendQ exceeded]
03:48
techlife has joined #ruby-lang
03:54
<
KINGSABRI >
guys, is it normal, a small piece of code could make you suffering for days? of just happening for beginners ?
03:55
<
drbrain >
KINGSABRI: for everyone
03:56
<
KINGSABRI >
drbrain, thanks, that's really encourage me :)
03:57
ryanf has quit [Ping timeout: 252 seconds]
04:07
<
ggreer >
I think there has to be something seriously wrong with you in order to do this work. A normal person, once they've looked into the abyss, will say, "I'm done. This is stupid. I'm going to do something else." But not us, 'cause there's something really wrong with us. -- Douglas Crockford
04:08
<
felipe_Brz >
hasn't that guy written a book on javascript?
04:08
dcwu has joined #ruby-lang
04:08
<
firefux >
yes, the good parts
04:09
<
felipe_Brz >
funny I was talking about that book at work today, saying how it is a not so thick book due to javascript not having that many good parts to talk about hehehhe
04:10
ivanoats has quit [Remote host closed the connection]
04:10
* firefux
has the book but is waiting to be more confortable with Ruby
04:10
<
felipe_Brz >
funny I had pictured him as a young guy
04:10
<
felipe_Brz >
whatever
04:11
<
firefux >
felipe_Brz: people compare it to the "JS the definitive guide" which is stupid
04:11
<
firefux >
since that books covers a lot more
04:12
drbrain has quit [Remote host closed the connection]
04:12
* firefux
goes to sleep
04:12
jonahR has joined #ruby-lang
04:12
ryanv-raptor has quit [Quit: Leaving.]
04:12
<
felipe_Brz >
so he aparently has some good stuff to say apart from knowing a lot of javascript
04:13
<
felipe_Brz >
didn't know that
04:13
<
ggreer >
yeah, he's a pretty cool dude
04:14
<
ggreer >
javascript is a pretty crazy language, so a lot of his advice is most relevant to that
04:14
<
felipe_Brz >
good to know
04:14
io_syl has joined #ruby-lang
04:16
krohrbaugh has joined #ruby-lang
04:17
<
felipe_Brz >
dang why can't I split my brain in two and allocate one half to listen to this lecture and the other to keep coding hehe
04:17
<
ggreer >
I like listening to programming lectures or reading later at night, when I'm rather tired
04:17
ggamel has quit [Remote host closed the connection]
04:17
<
felipe_Brz >
good idea
04:18
<
felipe_Brz >
mobile devices are good for that, that might be the one reason that makes be get a tablet or something like that
04:18
<
ggreer >
and now you can jailbreak them :)
04:18
jonahR has quit [Quit: jonahR]
04:18
<
ggreer >
I wish I could speed youtube videos up a bit. 1.4x is pretty comfortable for me
04:19
<
felipe_Brz >
you know
04:19
<
felipe_Brz >
if you look at some videos from coursera
04:19
<
felipe_Brz >
if you're using html5 videos you can do that
04:19
drbrain has joined #ruby-lang
04:19
<
felipe_Brz >
it's probably easy to do
04:20
<
ggreer >
if I had more willpower I might download them and speed them up in vlc
04:20
<
felipe_Brz >
perhaps if you switch to html youtube video player I think you can select that in preferences
04:29
ggamel has joined #ruby-lang
04:29
ryanf has joined #ruby-lang
04:30
arooni-mobile has joined #ruby-lang
04:32
DSteele has joined #ruby-lang
04:33
drbrain has quit [Remote host closed the connection]
04:34
felipe_Brz has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130116232420]]
04:36
peppyheppy has joined #ruby-lang
04:40
arooni-mobile has quit [Ping timeout: 272 seconds]
04:41
mjio has joined #ruby-lang
04:41
DSteele has quit [Quit: Leaving]
04:41
arooni-mobile has joined #ruby-lang
04:42
lcdhoffman has joined #ruby-lang
04:44
lcdhoffman has quit [Client Quit]
04:51
KA_ has quit [Quit: KA_]
04:53
DaSteele has joined #ruby-lang
04:54
ggamel has quit [Remote host closed the connection]
04:54
Cymurai has joined #ruby-lang
04:55
DaSteele has quit [Client Quit]
04:57
KA_ has joined #ruby-lang
05:00
_Mon_Ouie_ has joined #ruby-lang
05:02
KA_ has quit [Client Quit]
05:02
My_Hearing has quit [Ping timeout: 264 seconds]
05:03
UziMonkey has joined #ruby-lang
05:04
Sleepy_neko has quit [Ping timeout: 244 seconds]
05:04
tenderlove has quit [Remote host closed the connection]
05:06
DSteele has joined #ruby-lang
05:07
agile has quit [Remote host closed the connection]
05:07
DSteele has quit [Client Quit]
05:10
havenwood has quit [Remote host closed the connection]
05:11
agile has joined #ruby-lang
05:13
methods has joined #ruby-lang
05:15
methods has left #ruby-lang [#ruby-lang]
05:17
torrieri has joined #ruby-lang
05:21
Sleepy_neko has joined #ruby-lang
05:22
bzalasky has joined #ruby-lang
05:25
fsvehla has joined #ruby-lang
05:27
gregmore_ has joined #ruby-lang
05:28
<
KINGSABRI >
Regarding to OptionParser , I need one switch take 2 args like "-c arg1 arg2" without ',' bcz converting sw to Array forces user to make arg1,arg2
05:28
DSteele has joined #ruby-lang
05:28
gregmore_ has quit [Remote host closed the connection]
05:31
iamjarvo1 has quit [Quit: Leaving.]
05:32
DSteele has quit [Remote host closed the connection]
05:33
DSteele has joined #ruby-lang
05:33
DSteele has quit [Remote host closed the connection]
05:34
DSteele has joined #ruby-lang
05:36
bzalasky has quit [Read error: Connection reset by peer]
05:36
arooni-mobile has quit [Ping timeout: 272 seconds]
05:36
bzalasky has joined #ruby-lang
05:37
arooni-mobile has joined #ruby-lang
05:37
Sleepy_neko has quit []
05:39
<
UziMonkey >
that's not generally how switches work though
05:39
<
UziMonkey >
you could do -c arg1 -c arg2 easily, or leave arg1 and arg2 in argv after you parse! the arguments
05:42
<
UziMonkey >
I don't think what you're asking is possible on OptionParser
05:45
cupakromer has quit [Quit: Computer has gone to sleep.]
05:48
drbrain has joined #ruby-lang
05:50
Cymurai has quit [Quit: Leaving]
05:51
RickHull1 has joined #ruby-lang
05:52
<
UziMonkey >
yeah, you're going to need some kind of hack to do that. personally I'd manually grab those from ARGV instead of a hack like that
05:52
<
UziMonkey >
if only because I'd understand the code to extract the arguments better than some OptionParser hack I won't understand in a week
05:53
<
postmodern >
KINGSABRI, quote the arg "arg1 arg2"
05:53
<
postmodern >
KINGSABRI, also OptionParser supports parsing Arrays of Strings
05:54
<
KINGSABRI >
postmodern, agree but it force me to use particular way to send me args : arg1,arg2
05:54
<
KINGSABRI >
I need user to be free to insert : arg1 arg2
05:55
rippa has joined #ruby-lang
05:55
<
postmodern >
KINGSABRI, you can define your own custom OptionParser types
05:56
<
postmodern >
KINGSABRI, OptionParser.accept(Foo, /.../) do |match,...|
05:59
DSteele has quit [Read error: Connection reset by peer]
06:00
<
KINGSABRI >
postmodern, I'll search for example about it , docs not so clear to me ..
06:01
<
postmodern >
KINGSABRI, better to open optparse.rb and scroll to the bottom where it defines Boolean and Array formats
06:01
DSteele has joined #ruby-lang
06:01
mistym has quit [Remote host closed the connection]
06:01
gregmore_ has joined #ruby-lang
06:02
DSteele_ has joined #ruby-lang
06:03
DSteele_ has quit [Remote host closed the connection]
06:03
davidbalbert is now known as davidbalber|away
06:03
<
UziMonkey >
I dunno, you can do it with regexp. ARGV.join(' ').match(/(?<=-c )[^-]+(?=-)/).to_s.split But that's pretty unreadable
06:03
torrieri has quit [Quit: Leaving...]
06:03
<
UziMonkey >
I might even do something like this: ARGV.select{|a| a if (a =~ /^-c/)..(a =~ /^-[^c]/) }[1..-2]
06:04
<
UziMonkey >
but that's unreadable too :P
06:06
<
KINGSABRI >
UziMonkey, lool
06:06
nignaztic has joined #ruby-lang
06:06
arooni-mobile has quit [Ping timeout: 272 seconds]
06:08
torrieri has joined #ruby-lang
06:09
nazty has quit [Ping timeout: 246 seconds]
06:10
bluepojo_ has joined #ruby-lang
06:11
arooni-mobile has joined #ruby-lang
06:11
rippa has quit [Ping timeout: 240 seconds]
06:13
wizonesolutions has quit [Ping timeout: 246 seconds]
06:14
bluepojo has quit [Ping timeout: 260 seconds]
06:14
bluepojo_ has quit [Ping timeout: 252 seconds]
06:15
tenderlove has joined #ruby-lang
06:16
wizonesolutions has joined #ruby-lang
06:19
tenderlove has quit [Ping timeout: 252 seconds]
06:22
Nisstyre-laptop has joined #ruby-lang
06:23
arooni-mobile has quit [Ping timeout: 272 seconds]
06:26
arooni-mobile has joined #ruby-lang
06:31
havenwood has joined #ruby-lang
06:34
JohnBat26 has joined #ruby-lang
06:37
vlad_starkov has joined #ruby-lang
06:37
dhruvasagar has joined #ruby-lang
06:41
tenderlove has joined #ruby-lang
06:41
tenderlove has quit [Remote host closed the connection]
06:43
lun_ has joined #ruby-lang
06:44
ridget has quit [Remote host closed the connection]
06:45
ridget has joined #ruby-lang
06:47
mercwithamouth has quit [Ping timeout: 256 seconds]
06:48
DSteele has quit [Remote host closed the connection]
06:52
vlad_starkov has quit [Remote host closed the connection]
06:52
vlad_starkov has joined #ruby-lang
06:56
ridget has quit [Remote host closed the connection]
06:57
vlad_starkov has quit [Ping timeout: 264 seconds]
07:01
arooni-mobile has quit [Ping timeout: 272 seconds]
07:01
havenwood has quit [Remote host closed the connection]
07:03
arooni-mobile has joined #ruby-lang
07:04
solars has joined #ruby-lang
07:06
torrieri has quit [Quit: Leaving...]
07:10
AntiTyping has quit [Quit: AntiTyping]
07:10
wallerdev has quit [Quit: wallerdev]
07:11
lun_ has quit [Ping timeout: 272 seconds]
07:13
solars has quit [Read error: Connection reset by peer]
07:13
torrieri has joined #ruby-lang
07:16
workmad3 has joined #ruby-lang
07:17
lun_ has joined #ruby-lang
07:19
CoverSlide has quit [Ping timeout: 255 seconds]
07:20
CoverSlide has joined #ruby-lang
07:23
blacktulip has joined #ruby-lang
07:25
gregmore_ has quit [Remote host closed the connection]
07:26
lun_ has quit [Remote host closed the connection]
07:30
vlad_starkov has joined #ruby-lang
07:35
solars has joined #ruby-lang
07:37
erichmenge has quit [Read error: Operation timed out]
07:38
GitNick has quit [Ping timeout: 272 seconds]
07:39
GitNick has joined #ruby-lang
07:40
erichmenge has joined #ruby-lang
07:40
bryno has quit [Ping timeout: 264 seconds]
07:41
faces has joined #ruby-lang
07:41
facest has quit [Ping timeout: 244 seconds]
07:41
bryno has joined #ruby-lang
07:42
dr_bob has joined #ruby-lang
07:46
solars has quit [Ping timeout: 240 seconds]
07:49
solars has joined #ruby-lang
07:50
intellitech has quit [Read error: Connection reset by peer]
07:50
intellitech has joined #ruby-lang
07:51
poga has joined #ruby-lang
07:52
savagecroc has joined #ruby-lang
07:54
solars has quit [Ping timeout: 245 seconds]
07:54
<
savagecroc >
"0.75 * avaliable_memory" << how do i substitue a value for avaible memory and evalutate it
07:55
<
savagecroc >
eval("0.75 * available_memory".gsub!('available_memory', '2')) << that good enough?
07:57
workmad3 has quit [Ping timeout: 252 seconds]
07:57
<
drbrain >
eval sounds like a bad idea
07:57
<
savagecroc >
yeah :/
07:57
<
savagecroc >
it is all trusted code but still
07:58
solars has joined #ruby-lang
07:58
<
savagecroc >
actually.. maybe it doesn't matter in this case
07:58
<
savagecroc >
if you are running this code or changing anything.. you pretty much have god privileges anyway
07:58
<
savagecroc >
i.e. you have to have a user account on each server with sudo access
07:59
arooni-mobile has quit [Ping timeout: 240 seconds]
07:59
<
drbrain >
where is this 0.75 * available_memory line?
08:00
<
drbrain >
why do you need to replace the value?
08:00
<
savagecroc >
ok so there's a yml configuration file which defines how much avaliable memory there is for postgres per server
08:00
<
savagecroc >
that line is on several lines through the yml
08:01
<
savagecroc >
e.g. effective_cache_size: 0.75 * available_memory
08:01
arooni-mobile has joined #ruby-lang
08:01
torrieri has quit [Quit: Leaving...]
08:02
<
drbrain >
do you want to test it?
08:02
<
drbrain >
if so, def available_memory() 5 end
08:03
<
savagecroc >
avaliable_memory: 3000
08:03
<
savagecroc >
is also in the yaml file
08:03
poga has quit [Remote host closed the connection]
08:04
<
drbrain >
do you want to test it?
08:05
<
savagecroc >
although i can do that by passing the function the test yaml
08:05
<
savagecroc >
and then regexing the reponse
08:05
zenspider has quit [Quit: Terminated with extreme prejudice - dircproxy 1.1.0]
08:05
<
savagecroc >
response*
08:05
robotmay has joined #ruby-lang
08:06
<
drbrain >
seems like a safe way to do it then
08:11
emmdeeess has quit [Read error: Connection reset by peer]
08:11
emmdeeess has joined #ruby-lang
08:13
beiter has joined #ruby-lang
08:15
Egbrt has joined #ruby-lang
08:18
solars has quit [Ping timeout: 255 seconds]
08:23
KINGSABRI has quit [Quit: Leaving]
08:31
torrieri has joined #ruby-lang
08:33
banister`sleep has quit [Remote host closed the connection]
08:34
maxmanders has joined #ruby-lang
08:36
jayne has quit [Read error: Connection reset by peer]
08:36
jayne_ has joined #ruby-lang
08:40
<
injekt >
drbrain: good catch :)
08:40
Xzyx987X has quit [Read error: Connection reset by peer]
08:40
<
drbrain >
damn that 1.8!
08:40
Xzyx987X has joined #ruby-lang
08:40
<
injekt >
heh, writing the new hash syntax has become habit now
08:40
Nisstyre-laptop has quit [Ping timeout: 255 seconds]
08:41
gnufied has joined #ruby-lang
08:41
torrieri has quit [Ping timeout: 264 seconds]
08:42
savagecroc has quit [Remote host closed the connection]
08:44
zmack has joined #ruby-lang
08:44
chendo_ has quit [Quit: Leaving...]
08:49
techlife has quit [Ping timeout: 252 seconds]
08:51
chekcmate has joined #ruby-lang
08:52
brianpWins has joined #ruby-lang
08:54
judofyr has joined #ruby-lang
08:55
<
judofyr >
hey folks
08:55
techlife has joined #ruby-lang
08:55
ryanf has quit [Quit: leaving]
08:57
rue|w has joined #ruby-lang
08:57
lajlev has joined #ruby-lang
09:00
rue_XIW has joined #ruby-lang
09:02
rue|w has quit [Read error: Operation timed out]
09:02
vesan has quit [Read error: Connection reset by peer]
09:03
<
yorickpeterse >
morning
09:03
apod has joined #ruby-lang
09:06
lupine has quit [Ping timeout: 264 seconds]
09:06
kcassidy has joined #ruby-lang
09:08
vesan has joined #ruby-lang
09:09
sepp2k has joined #ruby-lang
09:09
bzalasky has quit [Remote host closed the connection]
09:09
xalei has joined #ruby-lang
09:10
tdy has quit [Ping timeout: 276 seconds]
09:12
havenwood has joined #ruby-lang
09:13
vesan has quit [Ping timeout: 245 seconds]
09:16
jxie_ has quit [Quit: leaving]
09:21
vesan has joined #ruby-lang
09:22
nkr has joined #ruby-lang
09:24
havenwood has quit [Remote host closed the connection]
09:26
lupine has joined #ruby-lang
09:29
sepp2k has quit [Ping timeout: 272 seconds]
09:29
anannie has joined #ruby-lang
09:32
torrieri has joined #ruby-lang
09:33
tbuehlmann has joined #ruby-lang
09:37
ohsix has quit [Ping timeout: 255 seconds]
09:37
torrieri has quit [Ping timeout: 264 seconds]
09:37
ohsix has joined #ruby-lang
09:38
workmad3 has joined #ruby-lang
09:39
sepp2k has joined #ruby-lang
09:41
dcwu has quit [Quit: Leaving.]
09:44
chendo_ has joined #ruby-lang
09:44
vesan has quit [Ping timeout: 245 seconds]
09:44
arca0 has joined #ruby-lang
09:46
peppyheppy has quit [Quit: peppyheppy]
09:48
<
chekcmate >
hash = Hash[*array] How nice is THAT? Awesome!
09:49
* chekcmate
readsThe Ruby Way
09:50
<
rue_XIW >
chekcmate: Nothing special about it
09:50
vesan has joined #ruby-lang
09:50
<
rue_XIW >
Although I think that there’s a Hash[array] now too
09:50
<
injekt >
that shouldn't work if there's more than 1 arg?
09:50
<
judofyr >
rue_XIW: Hash[array] doesn't work here
09:50
<
chekcmate >
rue_XIW: I'm still a beginner, so I find that pretty cool tbh
09:50
<
rue_XIW >
injekt: It’s awful early to be high :)
09:50
jayne_ is now known as jayne
09:50
<
injekt >
ah they just have to be even of course
09:51
<
injekt >
rue_XIW: sleepy!
09:51
<
rue_XIW >
chekcmate: The splat just makes [1,2] -> 1, 2, and Hash.[] takes an even number of arguments, making pairs from each :)
09:51
<
kith_ >
Hash[*array] <--whats that supposed to mean?
09:51
Skitsu`work has quit [Ping timeout: 276 seconds]
09:51
kith_ is now known as kith
09:52
<
chekcmate >
rue_XIW: yea, the peeps here told me about splat yesterday, discovering the possibilities right now heh
09:52
<
judofyr >
kith_: if array = [1, 2, 3, 4], then Hash[*array] is the same as Hash[1, 2, 3, 4]
09:52
<
injekt >
splattarrr
09:52
<
rue_XIW >
judofyr: Hash[[[1, 2], [3,4]]] ?
09:52
<
chekcmate >
injekt: watch meatball machine
09:52
<
judofyr >
rue_XIW: oh cool. I tried Hash[[1, 2, 3, 4]]
09:53
<
kith >
hmm i dont get it :D
09:53
<
judofyr >
kith: what part?
09:53
<
kith >
index of hash is an array?
09:54
<
judofyr >
by Hash[*array] we mean literally Hash[*array]
09:54
<
judofyr >
not a = {}; a[*array]
09:54
<
chekcmate >
[1,2,3,4] => 1,2; 3,4 => k,v
09:54
agarcia has joined #ruby-lang
09:54
<
judofyr >
kith: it's a class method, not an instance method
09:55
<
chekcmate >
injekt: probably one of the greatest movies ever made
09:55
<
chekcmate >
injekt: next to story of ricky
09:55
<
injekt >
story of ricky is better than meatball machine
09:56
<
chekcmate >
it is, sure
09:56
<
chekcmate >
but they're both fun to watch
09:56
* chekcmate
has to fix oracle db now ._. meh...
10:00
brianpWins has quit [Quit: brianpWins]
10:02
chekcmate has left #ruby-lang [#ruby-lang]
10:04
<
UziMonkey >
*incomprehensible, it's also late that that took longer than expected :P
10:05
<
rue_XIW >
Yes, those replaces are hard to read
10:05
tdy has joined #ruby-lang
10:05
vesan has quit [Ping timeout: 264 seconds]
10:05
vesan has joined #ruby-lang
10:06
<
rue_XIW >
So are the magical numbers you have there
10:07
<
UziMonkey >
which magic numbers? I only use 26 really, the number of letters in the alphabet
10:08
<
rue_XIW >
Oh THAT’s what that is!
10:10
<
UziMonkey >
my unit test for this isn't longer than the code it's testing, something is wrong :P
10:10
<
injekt >
i dunno, the encrypt/decrypt methods look more confusing too me, and contain a lot of duplication
10:11
<
injekt >
eh unit tests shouldn't be longer than the code you're testing
10:11
<
UziMonkey >
I tried to DRY that up, but there were subtle differences
10:11
<
UziMonkey >
that part was a joke, but I'm wondering if minitest does coverage
10:13
<
injekt >
use simplecov
10:13
<
injekt >
ah rubyquiz
10:13
<
injekt >
i remember doing all those
10:13
Skitsu`work has joined #ruby-lang
10:13
<
UziMonkey >
I always started them, but never finished
10:14
<
UziMonkey >
I found /r/DailyProgrammer, but their challenges seem to be mostly... lame
10:14
<
injekt >
yeah JEG and others came up with nice stuff for rubyquiz
10:14
<
injekt >
then it all went to shit in rubyquiz2
10:14
dzhulk has quit [Quit: Leaving.]
10:17
cba has joined #ruby-lang
10:18
<
UziMonkey >
simplecov is great, thanks
10:19
<
UziMonkey >
I didn't test my cardname methods, that's all
10:19
antbody has joined #ruby-lang
10:19
<
UziMonkey >
but I don't use them either :P
10:20
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
10:22
arooni-mobile has quit [Ping timeout: 272 seconds]
10:23
anannie has quit [Remote host closed the connection]
10:24
arooni-mobile has joined #ruby-lang
10:28
Mon_Ouie has joined #ruby-lang
10:28
sush24 has joined #ruby-lang
10:28
banister`sleep has joined #ruby-lang
10:29
guns has joined #ruby-lang
10:30
toretore has joined #ruby-lang
10:33
torrieri has joined #ruby-lang
10:34
GarethAdams has joined #ruby-lang
10:34
GarethAdams has quit [Changing host]
10:34
GarethAdams has joined #ruby-lang
10:37
francisfish has joined #ruby-lang
10:38
torrieri has quit [Ping timeout: 272 seconds]
10:38
rubyist has joined #ruby-lang
10:40
lajlev has quit [Quit: lajlev]
10:40
chekcmate has joined #ruby-lang
10:49
antbody has quit [Ping timeout: 245 seconds]
10:51
cultureulterior_ has joined #ruby-lang
10:52
cba has quit [Read error: Connection reset by peer]
10:53
arooni-mobile has quit [Ping timeout: 272 seconds]
10:56
arooni-mobile has joined #ruby-lang
11:00
dzhulk has joined #ruby-lang
11:03
xalei has quit [Read error: Connection reset by peer]
11:03
solars has joined #ruby-lang
11:04
skade has joined #ruby-lang
11:04
b1rkh0ff has quit [Quit: Leaving]
11:05
b1rkh0ff has joined #ruby-lang
11:05
b1rkh0ff has quit [Read error: Connection reset by peer]
11:08
madish has joined #ruby-lang
11:09
arooni-mobile has quit [Ping timeout: 272 seconds]
11:10
dous has quit [Ping timeout: 272 seconds]
11:12
arooni-mobile has joined #ruby-lang
11:13
vesan has quit [Ping timeout: 264 seconds]
11:13
lun_ has joined #ruby-lang
11:17
sush24 has quit [Quit: This computer has gone to sleep]
11:20
vesan has joined #ruby-lang
11:21
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
11:22
arooni-mobile has quit [Ping timeout: 272 seconds]
11:22
carloslopes has joined #ruby-lang
11:23
arooni-mobile has joined #ruby-lang
11:23
dous has joined #ruby-lang
11:23
setmeaway2 has joined #ruby-lang
11:25
lun__ has joined #ruby-lang
11:25
vesan has quit [Ping timeout: 264 seconds]
11:25
antbody has joined #ruby-lang
11:26
krz has quit [Quit: krz]
11:26
lun_ has quit [Read error: Connection reset by peer]
11:27
setmeaway has quit [Ping timeout: 264 seconds]
11:28
lajlev has joined #ruby-lang
11:29
RickHull1 has quit [Quit: Leaving.]
11:31
postmodern has quit [Quit: Leaving]
11:33
torrieri has joined #ruby-lang
11:35
havenwood has joined #ruby-lang
11:36
banister`sleep has left #ruby-lang [#ruby-lang]
11:38
arooni-mobile has quit [Ping timeout: 272 seconds]
11:38
lolzie has joined #ruby-lang
11:38
torrieri has quit [Ping timeout: 264 seconds]
11:41
savagecroc has joined #ruby-lang
11:41
lajlev has quit [Quit: lajlev]
11:42
rubyist has quit [Quit: Leaving]
11:43
antbody has quit [Quit: leaving]
11:43
arooni-mobile has joined #ruby-lang
11:44
cultureulterior_ has quit [Ping timeout: 264 seconds]
11:46
carloslopes has quit [Ping timeout: 272 seconds]
11:47
havenwood has quit [Remote host closed the connection]
11:47
cultureulterior_ has joined #ruby-lang
11:48
lajlev has joined #ruby-lang
11:48
io_syl has quit [Ping timeout: 264 seconds]
11:48
<
savagecroc >
does anyone else make tons and tons of functions for Hash and String and Array :)
11:49
<
savagecroc >
i've got about 60 now
11:49
megha has joined #ruby-lang
11:50
io_syl has joined #ruby-lang
11:52
<
andrewvos >
savagecroc: But there are so many good ones.
11:53
<
savagecroc >
i know!
11:53
arooni-mobile has quit [Ping timeout: 272 seconds]
11:54
robotmay_ has joined #ruby-lang
11:54
<
savagecroc >
these are just the ones i added today
11:54
robotmay_ has quit [Remote host closed the connection]
11:54
<
savagecroc >
ah string ones not right.. but meh, you get the idea ;)
11:56
robotmay has quit [Ping timeout: 272 seconds]
11:56
arooni-mobile has joined #ruby-lang
11:56
marr has joined #ruby-lang
11:57
<
injekt >
mother of indentation
11:57
<
savagecroc >
it's indented perfectly on my machine
11:57
<
savagecroc >
something about copy and paste didn't work
11:57
<
heftig >
the to_s in the first one is useless
11:57
<
injekt >
yeah new gist sucks for that
11:57
<
heftig >
if it's not a string, it won't work anyway
11:57
<
injekt >
also 4 space indents? psh
11:57
<
savagecroc >
yeah.. i like 4 space indents
11:58
<
savagecroc >
2 space is too small especially for deeply nested stuff
11:58
carloslopes has joined #ruby-lang
11:58
<
injekt >
lie, 2 space is perfect
11:58
<
savagecroc >
ah actually
11:58
<
savagecroc >
lol.. 4 spaces.. harder to read :)
11:58
<
injekt >
4 space is like 3 indent levels omg where is my code
11:58
<
savagecroc >
and you don't save that much space
11:59
<
savagecroc >
i used to make everyone do 2 spaces
11:59
<
savagecroc >
4 years ago
11:59
<
savagecroc >
but then i changed my mind :)
11:59
<
injekt >
you changed it wrong!
11:59
lajlev has quit [Quit: lajlev]
11:59
<
injekt >
also modify: Hash[map { |k, v| yield(k, v) }]
12:00
io_syl has quit [Quit: Computer has gone to sleep.]
12:00
<
savagecroc >
oh shit.. good point
12:00
<
injekt >
tbh most of them can be made a little more concise but they're ok
12:01
<
savagecroc >
yeah i always prefer easy-to-read
12:01
<
savagecroc >
some ruby functions are a bit too concise.. but yeah.. i shouldn't be reassigning it
12:02
<
injekt >
also methods
12:03
<
savagecroc >
yep functions
12:03
<
injekt >
nope methods
12:03
<
savagecroc >
haha.. just kidding.. i always forget the difference
12:03
<
injekt >
methods are functions bound to an object
12:03
<
savagecroc >
ah right
12:04
<
injekt >
and in ruby everything is bound to an object
12:04
<
injekt >
unless you unbind it
12:04
<
savagecroc >
can you have functions not bound to an object?
12:04
<
savagecroc >
oh yeah
12:04
<
savagecroc >
can you have functions in ruby?
12:05
<
savagecroc >
also this nomenclature, is that ruby or general computer science?
12:05
guns has quit [Ping timeout: 248 seconds]
12:05
retro|cz has quit [Read error: Connection reset by peer]
12:05
<
injekt >
methods can be unbound but they can't be called until they're bound
12:05
<
injekt >
and it's general programming
12:06
<
UziMonkey >
I just installed RubyMine, I haven't really used it yet but I'm quite impressed
12:06
<
savagecroc >
can you give me an example of an unbound method in ruby?
12:06
<
injekt >
m = method(:puts).unbind
12:06
<
savagecroc >
i thought it would always be bound to something.. like a class or a module or an object
12:07
<
injekt >
m #=> UnboundMethod(:puts)
12:07
<
judofyr >
savagecroc: to_s = Object.instance_method(:to_s)
12:07
<
judofyr >
savagecroc: that method represents the #to_s-method, but it's not bound to anything, so we can't actually call it
12:07
lajlev has joined #ruby-lang
12:07
<
judofyr >
savagecroc: to_s.call doesn't make sense because there's no self
12:07
<
savagecroc >
right.. unless your trying to confuse the hell out of some developers.. what's a use case?
12:07
<
UziMonkey >
right, you have to manually unbind it. And I don't really know why you'd do that
12:07
<
savagecroc >
UziMonkey: haha
12:08
<
injekt >
to rebind it
12:08
<
savagecroc >
oh seriously i've got 1 dev who likes to play the game.. how complicated can i make the code
12:08
arooni-mobile has quit [Ping timeout: 272 seconds]
12:08
<
judofyr >
savagecroc: you can use it to override: old = instance_method(:foobar); define_method(:foobar) { old.bind(self).call; puts "after" }
12:08
<
savagecroc >
recursive / nested / method_missing everywhere.. was horrible
12:08
<
savagecroc >
judofyr: oh yes.. thats a good usecase
12:09
<
judofyr >
savagecroc: it has it usecases, but yeah, you shouldn't see it in "regular" code
12:09
<
savagecroc >
judofyr: like if you were writing a testing library and you wanted to write a mocking interface
12:09
rolfb has joined #ruby-lang
12:09
<
UziMonkey >
I installed RubyMine for one reason though, a visual debugger
12:09
<
UziMonkey >
something I've always missed in Ruby...
12:10
arooni-mobile has joined #ruby-lang
12:10
<
injekt >
my debugger is the p method
12:10
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
12:10
<
UziMonkey >
I only tried it out real quick, but it seems to work great
12:10
<
savagecroc >
UziMonkey: i used netbeans for about 4 years before oracle screwed it.. i'm currently using sublime text.. are the debugging advantages that much better?
12:10
<
UziMonkey >
which is a pain in the ass :P
12:11
<
UziMonkey >
savagecroc: well debugging is awesome, so... yet?
12:11
<
savagecroc >
yeah.. i ap lots of shit to debug
12:11
<
savagecroc >
how new is this IDE?
12:11
<
UziMonkey >
*yes. Ruby doesn't lend itself to debugging as much as many other languages (like C), since you can isolate and test your code at a finer level
12:11
<
savagecroc >
and does it run on linux :/
12:11
<
UziMonkey >
but debugging si always useful
12:11
<
UziMonkey >
of course it does
12:12
<
UziMonkey >
it is written in Java, but I run Linux on VMWare and even there it's really responsive
12:12
<
savagecroc >
pfft lots of shit doesn't run on linux
12:12
<
UziMonkey >
it integrates with git, and even RVM
12:12
TvL2386 has joined #ruby-lang
12:12
<
savagecroc >
now the important questions
12:12
<
savagecroc >
does it support multiple cursers?
12:12
<
UziMonkey >
ah, the sublime feature
12:13
<
savagecroc >
yeah.. i couldn't live without that now
12:13
<
UziMonkey >
I don't think so, but it has refactors
12:13
<
savagecroc >
i use it every 5 - 10 mins
12:13
<
UziMonkey >
I don't know though
12:13
<
savagecroc >
i know multiple cursers is going to make it's way into every IDE
12:13
<
injekt >
<3 multiple cursors
12:13
<
UziMonkey >
probably
12:14
<
savagecroc >
then the vim nazi's can get screw themselves, because it'll be much slower
12:14
<
savagecroc >
injekt: what ide do you use?
12:14
<
injekt >
savagecroc: i use st2 as well
12:14
<
UziMonkey >
I was actually thinking about buying Sublime a while ago, but RubyMine is more or less the same price
12:14
<
savagecroc >
ahh i found the most awesome binding let me find it for you
12:15
<
UziMonkey >
but sublime is probably more solid as an editor, but hey, I just did that RubyQuiz in gedit, so I'm not particular about that :P
12:15
<
injekt >
i use vim too
12:15
mjolk has joined #ruby-lang
12:15
<
injekt >
but prefer st2 for entire projects
12:15
<
ggreer >
st3 cleans up quite a few annoyances for plugin developers, but I haven't noticed any big differences from st2 yet
12:15
<
judofyr >
Rails.vim is so good for Rails projects
12:15
<
savagecroc >
injekt: what os are you on?
12:15
<
injekt >
judofyr: I never liked it much :S
12:15
<
injekt >
savagecroc: osx
12:16
<
savagecroc >
{ "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} } and { "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} },
12:16
<
UziMonkey >
I like Vim with NERDtree, whatever I use it needs a file tree on the left now :P
12:16
<
injekt >
ggreer: st3 is so broken for me
12:16
<
judofyr >
injekt: why not? it makes gf useful and :R is just king
12:16
<
savagecroc >
and then go into the osx key settings, and disable whatever it's used for at the momemnt
12:16
<
injekt >
judofyr: I guess, I think it's less rails.vim fault and more because i never found a REALLY good replacement for cmd-t
12:16
<
judofyr >
ggreer: (btw, you're the ag-guy right?)
12:17
<
savagecroc >
those two bindings i use constantly
12:17
<
injekt >
ggreer: if I open a dir in st3, it opens all the files separately in new st3 instances
12:17
<
judofyr >
ggreer: good. then my memory isn't broken!
12:17
<
ggreer >
ah yeah, that's annoying
12:17
<
judofyr >
injekt: CtrlP here, but with a custom matcher
12:17
<
ggreer >
you have to use the project api
12:17
<
UziMonkey >
I don't understand how GTK can be so unresponsive
12:17
<
ggreer >
which isn't documented yet :/
12:17
<
injekt >
ggreer: even for dirs?
12:17
<
injekt >
no 'projects' in the native sense
12:18
<
ggreer >
I haven't figured it out completely yet
12:18
<
ggreer >
sublime.active_window().set_project_data({'folders': [{'path': '/path/to/stuff'}]})
12:18
<
savagecroc >
what's st3 got?
12:19
<
ggreer >
is how I add a folder to a project in st3
12:19
<
injekt >
I didn't notice much different between st2 and 3
12:19
<
ggreer >
running subl from the command line seems to open another instance of st3, which is really annoying
12:19
<
savagecroc >
probably a beta issue
12:19
<
ggreer >
I assume that will be fixed eventually
12:19
<
injekt >
ggreer: yeah that's how im using it
12:19
Bearproof has joined #ruby-lang
12:20
<
savagecroc >
i like binding sublime to s so i can go s. s /etc/conf etc
12:20
<
injekt >
subl is pretty quick to type :)
12:20
<
savagecroc >
yeah still.. use it all day
12:21
Nisstyre-laptop has joined #ruby-lang
12:21
<
UziMonkey >
shit, what was the color scheme I used?
12:21
<
UziMonkey >
solaris... something
12:22
<
ggreer >
you mean solarized?
12:22
<
UziMonkey >
that's the one
12:22
<
UziMonkey >
I miss Solaris, I used to have a crappy Sun machine
12:22
arooni-mobile has quit [Remote host closed the connection]
12:23
<
savagecroc >
we used to run solaris back at uni
12:23
<
savagecroc >
with these thin clients
12:23
<
savagecroc >
i think one guy brought down the entire system with 1 line
12:23
<
savagecroc >
it had the word fork in it
12:23
<
UziMonkey >
bad admins probably... I remember we had a shared Linux machine adn someone forkbombed it
12:23
<
UziMonkey >
unintentionally
12:23
<
UziMonkey >
but it wasn't hard to bring a Pentium 133 down
12:24
<
savagecroc >
yeah good point.. i have no idea how powerful these machines would have been
12:24
<
savagecroc >
probably a lot less than my phoe
12:24
<
savagecroc >
phone*
12:25
jaska has quit [Ping timeout: 248 seconds]
12:25
achiu has quit [Read error: Connection reset by peer]
12:26
s1n4 has joined #ruby-lang
12:27
<
UziMonkey >
there we go, I solarized RubyMine
12:27
<
UziMonkey >
I wish it wouldn't start maximized though, VMWare unity doesn't like that
12:27
cored has joined #ruby-lang
12:27
cored has joined #ruby-lang
12:30
Egbrt has quit [Quit: Egbrt]
12:30
kazi1 has joined #ruby-lang
12:30
kazi1 has left #ruby-lang [#ruby-lang]
12:32
lajlev has quit [Quit: lajlev]
12:32
savagecroc has quit [Remote host closed the connection]
12:33
cultureulterior_ has quit [Ping timeout: 240 seconds]
12:34
torrieri has joined #ruby-lang
12:35
lolzie has quit [Ping timeout: 245 seconds]
12:35
lajlev has joined #ruby-lang
12:35
sush24 has joined #ruby-lang
12:37
vlad_starkov has quit [Remote host closed the connection]
12:37
tonni has joined #ruby-lang
12:38
vlad_starkov has joined #ruby-lang
12:38
Bearproof has quit [Quit: Leaving.]
12:38
torrieri has quit [Ping timeout: 245 seconds]
12:40
tonni_ has quit [Ping timeout: 255 seconds]
12:41
kain has left #ruby-lang ["exit"]
12:42
cultureulterior_ has joined #ruby-lang
12:42
vlad_starkov has quit [Ping timeout: 260 seconds]
12:45
vlad_starkov has joined #ruby-lang
12:47
kain has joined #ruby-lang
12:47
fsvehla has quit [Quit: fsvehla]
12:48
dustint has joined #ruby-lang
12:48
cultureulterior_ has quit [Ping timeout: 272 seconds]
12:49
cultureulterior_ has joined #ruby-lang
12:50
kain has quit [Client Quit]
12:50
kurko_ has joined #ruby-lang
12:55
Egbrt has joined #ruby-lang
12:56
cultureulterior_ has quit [Ping timeout: 256 seconds]
12:56
cultureulterior_ has joined #ruby-lang
12:57
idkazuma has joined #ruby-lang
12:59
<
UziMonkey >
OK, minor strike against it, nothing major... when I hit debug it wants to debug my IRB session
13:02
<
manveru >
i just had to dig out rubymine to be able to make any sense of that rails codebase i work on...
13:02
<
manveru >
them rabbit holes are deep
13:04
vlad_starkov has quit [Remote host closed the connection]
13:05
vlad_starkov has joined #ruby-lang
13:07
ryanv-raptor has joined #ruby-lang
13:09
vlad_starkov has quit [Ping timeout: 252 seconds]
13:10
wizonesolutions has quit [Quit: No Ping reply in 180 seconds.]
13:12
arca0 has quit [Remote host closed the connection]
13:14
nirix has quit [Ping timeout: 248 seconds]
13:14
nirix has joined #ruby-lang
13:16
Asher2 has joined #ruby-lang
13:17
Asher has quit [Read error: Connection reset by peer]
13:19
Egbrt has quit [Quit: Egbrt]
13:20
wizonesolutions has joined #ruby-lang
13:21
mytrile has joined #ruby-lang
13:22
chekcmate has quit [Quit: Page closed]
13:23
cored has quit [Ping timeout: 255 seconds]
13:24
x0F has quit [Disconnected by services]
13:24
x0F_ has joined #ruby-lang
13:25
x0F_ is now known as x0F
13:25
fsvehla has joined #ruby-lang
13:25
cored has joined #ruby-lang
13:25
cored has joined #ruby-lang
13:28
Egbrt has joined #ruby-lang
13:29
socialcoder has joined #ruby-lang
13:33
methods has joined #ruby-lang
13:34
torrieri has joined #ruby-lang
13:36
emmdeeess has quit [Ping timeout: 276 seconds]
13:36
ebouchut has quit [Quit: Quitte]
13:37
ducks has quit [Ping timeout: 240 seconds]
13:38
s1n4 has quit [Quit: leaving]
13:39
methods has left #ruby-lang [#ruby-lang]
13:39
torrieri has quit [Ping timeout: 245 seconds]
13:44
mistym has joined #ruby-lang
13:44
tdy has quit [Ping timeout: 276 seconds]
13:45
Nisstyre-laptop has quit [Ping timeout: 276 seconds]
13:46
apeiros_ has joined #ruby-lang
13:46
TvL2386 has quit [Quit: Ex-Chat]
13:47
unchiujar has joined #ruby-lang
13:47
ryanv-raptor has quit [Quit: Leaving.]
13:50
kain has joined #ruby-lang
13:51
agile has quit [Ping timeout: 245 seconds]
13:52
jxie has joined #ruby-lang
13:52
rsl has joined #ruby-lang
13:53
iamjarvo has joined #ruby-lang
13:56
melter has quit [Remote host closed the connection]
13:56
unchiujar has left #ruby-lang [#ruby-lang]
13:58
rippa has joined #ruby-lang
13:58
havenwood has joined #ruby-lang
14:02
srbaker has joined #ruby-lang
14:02
ryanv-raptor has joined #ruby-lang
14:03
kgrz has joined #ruby-lang
14:07
__BigO__ has joined #ruby-lang
14:09
imajes has quit [Excess Flood]
14:09
krz has joined #ruby-lang
14:10
imajes has joined #ruby-lang
14:10
havenwood has quit [Remote host closed the connection]
14:10
dhruvasagar has quit [Ping timeout: 256 seconds]
14:12
emmdeeess has joined #ruby-lang
14:12
emmdeeess has left #ruby-lang [#ruby-lang]
14:13
willdrew has joined #ruby-lang
14:13
sailias has joined #ruby-lang
14:16
tdy has joined #ruby-lang
14:17
achiu has joined #ruby-lang
14:17
sush24 has quit [Quit: Leaving]
14:18
__BigO__ has quit [Remote host closed the connection]
14:19
cupakromer has joined #ruby-lang
14:20
jrafanie has joined #ruby-lang
14:21
mephux has quit [Excess Flood]
14:21
jonahR has joined #ruby-lang
14:22
tdy has quit [Ping timeout: 272 seconds]
14:23
mephux has joined #ruby-lang
14:24
voker57 has joined #ruby-lang
14:24
voker57 has quit [Changing host]
14:24
voker57 has joined #ruby-lang
14:24
adambeynon has joined #ruby-lang
14:27
socialfodder has joined #ruby-lang
14:27
socialcoder has quit [Ping timeout: 244 seconds]
14:27
anannie has joined #ruby-lang
14:27
bradland has joined #ruby-lang
14:28
Bearproof has joined #ruby-lang
14:28
ebouchut has joined #ruby-lang
14:28
Bearproof has left #ruby-lang [#ruby-lang]
14:29
miraks has joined #ruby-lang
14:32
miraks has quit [Client Quit]
14:32
spinagon has joined #ruby-lang
14:32
rippa has quit [Read error: Connection reset by peer]
14:34
tdy has joined #ruby-lang
14:35
torrieri has joined #ruby-lang
14:37
RickHull has joined #ruby-lang
14:38
megha is now known as baba
14:38
jtoy has joined #ruby-lang
14:39
tdy has quit [Quit: WeeChat 0.4.0]
14:39
baba has quit [Quit: WeeChat 0.4.0]
14:40
tdy has joined #ruby-lang
14:40
torrieri has quit [Ping timeout: 276 seconds]
14:42
voker57 has quit [Remote host closed the connection]
14:43
bantic has joined #ruby-lang
14:45
voker57 has joined #ruby-lang
14:45
voker57 has quit [Changing host]
14:45
voker57 has joined #ruby-lang
14:46
tdy has quit [Ping timeout: 264 seconds]
14:47
kurko__ has joined #ruby-lang
14:51
socialcoder has joined #ruby-lang
14:51
carloslopes has quit [Remote host closed the connection]
14:51
socialfodder has quit [Ping timeout: 244 seconds]
14:52
singpolyma has quit [Quit: leaving]
14:52
maxmanders has quit [Quit: Computer has gone to sleep.]
14:53
mistym has quit [Remote host closed the connection]
14:54
maxmanders has joined #ruby-lang
14:55
bantic has quit [Ping timeout: 244 seconds]
14:56
ryanv-raptor has quit [Quit: Leaving.]
14:56
havenwood has joined #ruby-lang
14:56
dzhulk has quit [Quit: Leaving.]
14:56
tylersmith has joined #ruby-lang
14:57
jtoy has quit [Read error: Connection reset by peer]
14:58
kogent has joined #ruby-lang
14:58
jtoy has joined #ruby-lang
14:59
singpolyma has joined #ruby-lang
15:00
ryanv-raptor has joined #ruby-lang
15:00
bantic has joined #ruby-lang
15:01
dr_bob has quit [Quit: Leaving.]
15:01
cupakromer has quit [Quit: Computer has gone to sleep.]
15:01
sush24 has joined #ruby-lang
15:01
foucist has joined #ruby-lang
15:01
<
foucist >
original_string = "Hello, "; hi = original_string; there = "World"; hi += there;
15:02
<
foucist >
shouldn't original_string = "Hello, World" ? shouldn't hi be a pointer to the same string that original_string points to?
15:02
maxmanders has joined #ruby-lang
15:03
<
foucist >
it's not behaving like that in this case
15:03
dr_bob has joined #ruby-lang
15:03
<
apeiros_ >
+ creates a new string
15:03
<
apeiros_ >
+= creates and assigns a new string
15:03
<
apeiros_ >
original_string.object_id != hi.object_id
15:04
scampbell has joined #ruby-lang
15:05
<
foucist >
ah right thanks
15:05
<
apeiros_ >
you want <<, not +=
15:05
<
foucist >
was thinking it was more of a << lol
15:05
carloslopes has joined #ruby-lang
15:07
kogent has quit [Read error: Connection reset by peer]
15:07
kogent has joined #ruby-lang
15:07
mistym has joined #ruby-lang
15:07
mistym has quit [Changing host]
15:07
mistym has joined #ruby-lang
15:09
lucas has joined #ruby-lang
15:10
imajes has quit [Excess Flood]
15:10
lcdhoffman has joined #ruby-lang
15:10
imajes has joined #ruby-lang
15:11
kogent has quit [Remote host closed the connection]
15:11
kogent has joined #ruby-lang
15:14
<
foucist >
apeiros_: any idea why 1.9 dropped the ?a syntax
15:15
<
judofyr >
foucist: hm? the ?a syntax is still there
15:15
<
judofyr >
foucist: ?a # => "a"
15:15
bantic_ has joined #ruby-lang
15:15
singpolyma has quit [Quit: leaving]
15:16
<
foucist >
judofyr: in 1.8 it returns the ascii value
15:17
<
judofyr >
foucist: yes. it's because String#[] in 1.9 returns a string
15:17
rolfb has quit [Quit: Leaving...]
15:18
<
apeiros_ >
yeah, 1.9 just uses retarted for ?a syntax
15:18
bantic has quit [Ping timeout: 255 seconds]
15:18
bantic_ is now known as bantic
15:18
<
apeiros_ >
foucist: it's to keep scripts from breaking due to the other change, 'x'[0] #=> 'x'
15:18
<
foucist >
judofyr: hmm? you mean ? is an alias for #[] ?
15:18
<
ryanv-raptor >
ok, I have to know, what is the ? operator and where is it defined?
15:18
<
ryanv-raptor >
I have never seen that
15:18
<
apeiros_ >
so this is valid in 1.8 & 1.9: 'x'[0] == ?x
15:18
<
judofyr >
foucist: no, but a lot of code was like this: foo[0] == ?x
15:19
<
apeiros_ >
ryanv-raptor: not an operator. it's syntax.
15:19
<
judofyr >
I don't quite see why String#[] had to return a string though
15:19
singpolyma has joined #ruby-lang
15:19
<
apeiros_ >
judofyr: me neither.
15:19
<
apeiros_ >
they could at least let .ord take an argument. now you've to call 2 methods…
15:19
<
ryanv-raptor >
so what's its use? Obviously it returns the character either as a string or the char code (per your discussion here)
15:19
<
judofyr >
apeiros_: it doesn't do any normalization anyway: "e\u0301"[0] == "e"
15:20
singpolyma has quit [Client Quit]
15:20
<
judofyr >
(that is e + COMBINING ACUTE ACCENT)
15:21
<
judofyr >
which is one grapheme, but two characters
15:21
<
ryanv-raptor >
never mind, I think I figured it out, I'm guessing it's Ruby's way of definining a character literal?
15:21
<
ryanv-raptor >
s/definining/defining/
15:21
<
judofyr >
ryanv-raptor: yes. it was more useful in 1.8 where it returned the ASCII code
15:21
singpolyma has joined #ruby-lang
15:21
<
judofyr >
ryanv-raptor: because you could do: if foo[0] == ?X; puts "foo starts with X" end
15:22
<
ryanv-raptor >
ah, that makes sense then
15:22
wyhaines has joined #ruby-lang
15:22
<
ryanv-raptor >
I'm convinced that I could learn something new about ruby every day
15:22
asdfqwer has joined #ruby-lang
15:22
<
apeiros_ >
I think it was also used in conjunction with File.test
15:22
<
apeiros_ >
to emulate bash' test
15:24
<
foucist >
heh, Symbol.all_symbols.include?(:fooaldafdadsfassa) is always true for any random symbol, due to the interpreted nature of ruby i suppose
15:24
<
yorickpeterse >
No, because it creates the symbol first
15:24
<
apeiros_ >
order of execution…
15:24
<
yorickpeterse >
And as such it's then in the list
15:25
<
judofyr >
actually no. just having the symbol later in the script will cause it to be included in Symbol.all_symbols
15:25
<
judofyr >
ruby -e'p Symbol.all_symbols.size' vs ruby -e'p Symbol.all_symbols.size; foo'
15:25
<
judofyr >
ruby -e'p Symbol.all_symbols.size' vs ruby -e'p Symbol.all_symbols.size; :foo'
15:25
<
judofyr >
it's the parser that interns it, not the VM
15:25
<
yorickpeterse >
neg, different values for me
15:25
<
judofyr >
(or maybe the bytecode compiler; not sure)
15:26
<
apeiros_ >
'foo'.to_sym
15:26
<
yorickpeterse >
ruby -e'p Symbol.all_symbols.size;' => 1859
15:26
<
yorickpeterse >
ruby -e'p Symbol.all_symbols.size; :foo' => 1860
15:26
<
yorickpeterse >
oh wait
15:26
<
yorickpeterse >
wat
15:26
<
apeiros_ >
yorickpeterse: that's what judofyr was saying
15:26
<
judofyr >
yorickpeterse: that was my point :)
15:26
<
yorickpeterse >
the
15:26
<
yorickpeterse >
the fuck is this shit
15:26
<
apeiros_ >
parse-time is
15:26
<
yorickpeterse >
riiiiight, that sounds like a rather weird thing to do
15:27
<
yorickpeterse >
Hm, then again it would probably reduce the amount of required actions to get the value
15:27
<
apeiros_ >
why? symbols are the internal representation
15:27
<
yorickpeterse >
and determine if it exists
15:28
Egbrt has quit [Quit: Egbrt]
15:28
<
judofyr >
if a symbol exists in the source, there's a pretty good chance that it will be "executed" some time
15:28
<
judofyr >
I've always wanted Symbols to be frozen strings…
15:29
apeiros_ has quit [Remote host closed the connection]
15:29
melter has joined #ruby-lang
15:31
grokking_trie has joined #ruby-lang
15:31
<
yorickpeterse >
judofyr: they pretty much are
15:32
<
judofyr >
yorickpeterse: I mean :Symbol.is_a?(String)
15:32
lajlev has quit [Quit: lajlev]
15:32
huydx_ has joined #ruby-lang
15:32
grokking_trie has quit [Client Quit]
15:33
Weems has joined #ruby-lang
15:33
rue_XIW has quit [Remote host closed the connection]
15:33
nXqd has joined #ruby-lang
15:33
Bearproof has joined #ruby-lang
15:34
huydx has quit [Ping timeout: 245 seconds]
15:34
huydx_ is now known as huydx
15:35
singpolyma has quit [Remote host closed the connection]
15:35
torrieri has joined #ruby-lang
15:36
Egbrt has joined #ruby-lang
15:37
__BigO__ has joined #ruby-lang
15:40
rdw200169 has quit [Ping timeout: 246 seconds]
15:40
torrieri has quit [Ping timeout: 252 seconds]
15:42
b1rkh0ff has joined #ruby-lang
15:45
singpolyma has joined #ruby-lang
15:46
Banistergalaxy has quit [Ping timeout: 256 seconds]
15:46
emocakes has joined #ruby-lang
15:46
<
foucist >
bah, \W isn't the reverse of \w "test 42"[/w+/] #=> "test" but "test 42"[/\W+/] != " 42"
15:47
srbaker has quit [Quit: Computer has gone to sleep.]
15:47
tylersmith has quit [Quit: tylersmith]
15:48
<
judofyr >
foucist: \w is [a-zA-Z0-9_]
15:49
Bearproof has left #ruby-lang [#ruby-lang]
15:49
<
judofyr >
foucist: so that seems correct
15:50
<
foucist >
judofyr: hmm? it doesn't grab "42" though ?
15:50
<
judofyr >
foucist: because 0-9 is part of \w
15:50
<
foucist >
oh nevermind it does
15:51
<
foucist >
"bovine vines"[/vine./] <- doesn't grab "vines" what's up with that?
15:51
<
foucist >
i suppose i should look at how Match regexp is different
15:52
<
manveru >
first amtch
15:52
<
judofyr >
foucist: . matches anything
15:52
<
manveru >
you want \S or so?
15:52
<
foucist >
no i'm just doing the ruby koans :P
15:53
ryanv-raptor has quit [Ping timeout: 252 seconds]
15:53
davidbalber|away is now known as davidbalbert
15:55
<
foucist >
training my ruby muscles
15:56
davidbalbert is now known as davidbalber|away
15:56
davidbalber|away is now known as davidbalbert
15:56
workmad3_ has joined #ruby-lang
15:57
Banistergalaxy has joined #ruby-lang
16:00
workmad3 has quit [Ping timeout: 248 seconds]
16:00
workmad3_ is now known as workmad3
16:00
rdw200169 has joined #ruby-lang
16:00
apeiros_ has joined #ruby-lang
16:02
s1n4 has joined #ruby-lang
16:03
anannie has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010223843]]
16:04
dhruvasagar has joined #ruby-lang
16:05
Banistergalaxy has quit [Ping timeout: 276 seconds]
16:07
rins has joined #ruby-lang
16:08
krohrbaugh has quit [Quit: Leaving.]
16:09
Banistergalaxy has joined #ruby-lang
16:09
dr_bob has quit [Quit: Leaving.]
16:10
jfelchner2 has quit [Ping timeout: 264 seconds]
16:12
bzalasky has joined #ruby-lang
16:12
nXqd has quit [Ping timeout: 245 seconds]
16:13
apod has quit [Quit: Leaving]
16:16
Mon_Ouie has joined #ruby-lang
16:16
Mon_Ouie has quit [Changing host]
16:16
Mon_Ouie has joined #ruby-lang
16:16
solars has quit [Ping timeout: 252 seconds]
16:16
Banistergalaxy has quit [Ping timeout: 276 seconds]
16:17
Banistergalaxy has joined #ruby-lang
16:18
bzalasky has quit [Remote host closed the connection]
16:19
jaska has joined #ruby-lang
16:21
nXqd has joined #ruby-lang
16:23
Banistergalaxy has quit [Ping timeout: 276 seconds]
16:24
jtoy has quit [Quit: jtoy]
16:25
dzhulk has joined #ruby-lang
16:25
Banistergalaxy has joined #ruby-lang
16:27
cirenyc has quit [Quit: Leaving...]
16:27
sush24 has quit [Quit: This computer has gone to sleep]
16:29
s1n4 has quit [Quit: leaving]
16:29
jtoy has joined #ruby-lang
16:29
mytrile has quit [Remote host closed the connection]
16:30
Banistergalaxy has quit [Ping timeout: 276 seconds]
16:30
ryanv-raptor has joined #ruby-lang
16:31
sush24 has joined #ruby-lang
16:31
dr_bob has joined #ruby-lang
16:32
Banistergalaxy has joined #ruby-lang
16:32
gnufied has quit [Quit: Leaving.]
16:32
singpolyma has quit [Ping timeout: 256 seconds]
16:33
jgv has joined #ruby-lang
16:33
gnufied has joined #ruby-lang
16:36
torrieri has joined #ruby-lang
16:36
jtoy has quit [Ping timeout: 264 seconds]
16:36
judofyr has quit [Remote host closed the connection]
16:37
CoverSlide has quit [Ping timeout: 248 seconds]
16:38
singpolyma has joined #ruby-lang
16:41
torrieri has quit [Ping timeout: 248 seconds]
16:43
agarcia has quit [Quit: Konversation terminated!]
16:44
rue|w has joined #ruby-lang
16:45
Egbrt has quit [Ping timeout: 264 seconds]
16:47
skade has quit [Quit: Computer has gone to sleep.]
16:48
sailias has quit [Quit: Leaving.]
16:49
rue|w has quit [Ping timeout: 255 seconds]
16:50
Rarrikins_z_i_g_ has quit [Ping timeout: 256 seconds]
16:52
CoverSlide has joined #ruby-lang
16:53
Rarrikins has joined #ruby-lang
16:54
rue has quit [Remote host closed the connection]
16:54
tdy has joined #ruby-lang
16:54
rue has joined #ruby-lang
16:54
fsvehla has quit [Quit: fsvehla]
16:57
krohrbaugh has joined #ruby-lang
16:58
_carloslopes has joined #ruby-lang
16:59
imajes has quit [Excess Flood]
16:59
CoverSli1e has joined #ruby-lang
16:59
carloslopes has quit [Read error: Connection reset by peer]
17:01
imajes has joined #ruby-lang
17:01
tdy has quit [Ping timeout: 252 seconds]
17:02
asdfqwer has quit []
17:04
Egbrt has joined #ruby-lang
17:05
carloslopes has joined #ruby-lang
17:06
_carloslopes has quit [Read error: Connection reset by peer]
17:07
zmack has quit [Remote host closed the connection]
17:07
tylersmith has joined #ruby-lang
17:07
xalei has joined #ruby-lang
17:08
rdsm has joined #ruby-lang
17:10
vesan has joined #ruby-lang
17:10
srbaker has joined #ruby-lang
17:11
Bearproof has joined #ruby-lang
17:11
anachronistic has joined #ruby-lang
17:13
__BigO__ has quit [Remote host closed the connection]
17:13
bantic has quit [Quit: bantic]
17:15
socialcoder has quit []
17:16
__BigO__ has joined #ruby-lang
17:17
Bearproof has left #ruby-lang [#ruby-lang]
17:20
mercwithamouth has joined #ruby-lang
17:21
beiter has quit [Quit: beiter]
17:21
imajes has quit [Excess Flood]
17:23
imajes has joined #ruby-lang
17:25
maxmanders has quit [Quit: Computer has gone to sleep.]
17:30
__butch__ has joined #ruby-lang
17:33
Egbrt has quit [Quit: Egbrt]
17:33
dr_bob has left #ruby-lang [#ruby-lang]
17:34
__butch__ has quit [Ping timeout: 252 seconds]
17:35
apeiros_ has quit [Ping timeout: 276 seconds]
17:36
francisfish has quit [Remote host closed the connection]
17:38
jonahR has quit [Quit: jonahR]
17:39
glebm has quit [Quit: Computer has gone to sleep.]
17:40
fsvehla has joined #ruby-lang
17:40
__butch__ has joined #ruby-lang
17:42
cirenyc has joined #ruby-lang
17:43
iamjarvo has quit [Ping timeout: 252 seconds]
17:43
imajes has quit [Excess Flood]
17:44
imajes has joined #ruby-lang
17:45
sush24 has quit [Quit: This computer has gone to sleep]
17:45
swav has quit [Remote host closed the connection]
17:47
__butch__ has quit [Ping timeout: 256 seconds]
17:47
asdfqwer has joined #ruby-lang
17:49
peppyheppy has joined #ruby-lang
17:49
kcassidy has left #ruby-lang [#ruby-lang]
17:49
Uranio has joined #ruby-lang
17:49
Axsuul has joined #ruby-lang
17:52
__butch__ has joined #ruby-lang
17:54
tbuehlmann has joined #ruby-lang
17:55
retro|cz has joined #ruby-lang
17:57
__butch__ has quit [Ping timeout: 252 seconds]
17:57
dhruvasagar has quit [Ping timeout: 255 seconds]
17:59
krz has quit [Quit: krz]
17:59
__butch__ has joined #ruby-lang
18:00
Rarrikins has quit [Ping timeout: 245 seconds]
18:02
Rarrikins has joined #ruby-lang
18:02
gnufied has quit [Quit: Leaving.]
18:02
idkazuma has quit [Remote host closed the connection]
18:03
bantic has joined #ruby-lang
18:04
__butch__ has quit [Client Quit]
18:05
alvaro_o has joined #ruby-lang
18:09
Uranio has quit [Quit: while you reading this, a kitty dies]
18:10
Uranio has joined #ruby-lang
18:11
brianpWins has joined #ruby-lang
18:13
lcdhoffman has quit [Quit: lcdhoffman]
18:13
mrsolo has joined #ruby-lang
18:21
workmad3 has quit [Ping timeout: 252 seconds]
18:22
cultureulterior_ has quit [Quit: cultureulterior_]
18:24
io_syl has joined #ruby-lang
18:25
nXqd has quit [Ping timeout: 264 seconds]
18:26
aedorn has joined #ruby-lang
18:27
iamjarvo has joined #ruby-lang
18:30
wallerdev has joined #ruby-lang
18:30
lcdhoffman has joined #ruby-lang
18:31
lcdhoffman has quit [Client Quit]
18:32
mistym is now known as mistym_lunch
18:34
sailias has joined #ruby-lang
18:41
vlad_starkov has joined #ruby-lang
18:43
Bearproof has joined #ruby-lang
18:44
Bearproof has left #ruby-lang [#ruby-lang]
18:45
vesan has quit [Ping timeout: 264 seconds]
18:49
lsegal has joined #ruby-lang
18:50
kogent has quit [Quit: kogent]
18:51
vesan has joined #ruby-lang
18:56
swav has joined #ruby-lang
18:58
vlad_starkov has quit [Read error: Connection timed out]
19:00
bantic has quit [Quit: bantic]
19:00
bantic has joined #ruby-lang
19:01
kurko__ has quit [Ping timeout: 252 seconds]
19:01
jonahR has joined #ruby-lang
19:01
swav has quit [Ping timeout: 272 seconds]
19:01
gregmore_ has joined #ruby-lang
19:01
Rarrikins_s has joined #ruby-lang
19:02
Rarrikins has quit [Ping timeout: 252 seconds]
19:02
kurko_ has quit [Ping timeout: 252 seconds]
19:03
kurko_ has joined #ruby-lang
19:05
nXqd has joined #ruby-lang
19:06
cardoni has joined #ruby-lang
19:06
imajes has quit [Excess Flood]
19:06
davidbalbert is now known as davidbalber|away
19:07
kurko_ has quit [Ping timeout: 246 seconds]
19:08
davidbalber|away is now known as davidbalbert
19:08
mephux has quit [Excess Flood]
19:08
poga has joined #ruby-lang
19:08
xalei has quit [Read error: Connection reset by peer]
19:09
tdy has joined #ruby-lang
19:09
imajes has joined #ruby-lang
19:10
poga has quit [Remote host closed the connection]
19:10
vesan has quit [Ping timeout: 245 seconds]
19:11
mephux has joined #ruby-lang
19:11
wmoxam has joined #ruby-lang
19:12
bantic has quit [Quit: bantic]
19:12
kurko_ has joined #ruby-lang
19:14
mjolk has quit [Quit: Leaving]
19:15
vesan has joined #ruby-lang
19:15
priodev has quit [Ping timeout: 276 seconds]
19:17
torrieri has joined #ruby-lang
19:17
tdy has quit [Ping timeout: 276 seconds]
19:17
iamjarvo has quit [Excess Flood]
19:17
maxmanders has joined #ruby-lang
19:17
maxmanders has quit [Client Quit]
19:17
iamjarvo has joined #ruby-lang
19:19
spinagon has quit [Ping timeout: 240 seconds]
19:21
Asher2 has quit [Quit: Leaving.]
19:21
Asher has joined #ruby-lang
19:22
drbrain has quit [Remote host closed the connection]
19:22
priodev has joined #ruby-lang
19:22
zhul_mechanos has joined #ruby-lang
19:22
maxmanders has joined #ruby-lang
19:24
vesan has quit [Ping timeout: 264 seconds]
19:26
iamjarvo has quit [Quit: Leaving.]
19:32
WrErase has joined #ruby-lang
19:34
jonahR has quit [Remote host closed the connection]
19:34
davidbalbert is now known as davidbalber|away
19:34
jonahR has joined #ruby-lang
19:35
bantic has joined #ruby-lang
19:35
KA_ has joined #ruby-lang
19:35
robbyoconnor has quit [Ping timeout: 240 seconds]
19:37
bantic has quit [Client Quit]
19:37
robbyoconnor has joined #ruby-lang
19:37
jonahR has quit [Client Quit]
19:38
jonahR has joined #ruby-lang
19:39
bantic has joined #ruby-lang
19:40
Uranio has quit [Quit: while you reading this, a kitty dies]
19:41
jMCg has quit [Read error: Connection reset by peer]
19:42
jMCg has joined #ruby-lang
19:42
jMCg has quit [Changing host]
19:42
jMCg has joined #ruby-lang
19:42
jtoy has joined #ruby-lang
19:44
b3nt_pin has joined #ruby-lang
19:46
s1n4 has joined #ruby-lang
19:46
Egbrt has joined #ruby-lang
19:46
b3nt_pin has quit [Remote host closed the connection]
19:47
davidbalber|away is now known as davidbalbert
19:48
bluepojo has joined #ruby-lang
19:48
kentos has quit [Ping timeout: 240 seconds]
19:51
s1n4 has quit [Quit: leaving]
19:52
asdfqwer has quit [Read error: Connection reset by peer]
19:54
torrieri has quit [Quit: Leaving...]
19:54
maxmanders has quit [Ping timeout: 245 seconds]
19:55
JMcAfreak has joined #ruby-lang
19:56
jMCg has quit [Read error: Connection reset by peer]
19:56
benanne has joined #ruby-lang
19:57
jMCg has joined #ruby-lang
19:57
jMCg has quit [Read error: Connection reset by peer]
19:58
maxmanders has joined #ruby-lang
19:59
krohrbaugh has quit [Quit: Leaving.]
20:00
kentos has joined #ruby-lang
20:00
drbrain has joined #ruby-lang
20:01
intellitech has quit [Ping timeout: 252 seconds]
20:02
lcdhoffman has joined #ruby-lang
20:02
jMCg has joined #ruby-lang
20:04
sailias has quit [Quit: Leaving.]
20:04
skade has joined #ruby-lang
20:06
brianpWins has quit [Quit: brianpWins]
20:09
workmad3 has joined #ruby-lang
20:09
JMcAfreak has quit [Remote host closed the connection]
20:11
davidbalbert is now known as davidbalber|away
20:13
davidbalber|away is now known as davidbalbert
20:14
kentos has quit [Quit: Leaving]
20:14
JMcAfreak has joined #ruby-lang
20:15
vlad_starkov has joined #ruby-lang
20:16
sepp2k has quit [Ping timeout: 272 seconds]
20:17
torrieri has joined #ruby-lang
20:19
jgv has quit [Quit: Computer has gone to sleep.]
20:21
intellitech has joined #ruby-lang
20:22
maxmanders has quit [Ping timeout: 264 seconds]
20:23
WrErase has quit [Quit: leaving]
20:23
mistym_lunch is now known as mistym
20:24
drbrain has quit [Remote host closed the connection]
20:25
maxmanders has joined #ruby-lang
20:25
jMCg has quit [Ping timeout: 252 seconds]
20:27
singpolyma has quit [Remote host closed the connection]
20:27
singpolyma has joined #ruby-lang
20:27
singpolyma has quit [Client Quit]
20:30
singpolyma has joined #ruby-lang
20:30
workmad3 has quit [Read error: Connection reset by peer]
20:31
maxmanders has quit [Ping timeout: 252 seconds]
20:32
bradland has quit [Quit: bradland]
20:33
__butch__ has joined #ruby-lang
20:33
insane_kangaroo has joined #ruby-lang
20:35
maxmanders has joined #ruby-lang
20:39
AndChat| has joined #ruby-lang
20:39
torrieri has quit [Quit: Leaving...]
20:42
Banistergalaxy has quit [Ping timeout: 272 seconds]
20:43
carloslopes has quit [Remote host closed the connection]
20:46
MaddinXx has joined #ruby-lang
20:46
hahuang65 has joined #ruby-lang
20:46
vesan has joined #ruby-lang
20:48
KA_ has quit [Quit: KA_]
20:48
torrieri has joined #ruby-lang
20:51
baba_bubba has joined #ruby-lang
20:52
idkazuma has joined #ruby-lang
20:53
kentos has joined #ruby-lang
21:02
willdrew has quit [Remote host closed the connection]
21:09
iamjarvo has joined #ruby-lang
21:10
singpolyma has quit [Remote host closed the connection]
21:11
rdsm has quit [Ping timeout: 272 seconds]
21:12
intellitech has quit [Quit: intellitech]
21:12
singpolyma has joined #ruby-lang
21:16
KA_ has joined #ruby-lang
21:16
singpolyma has quit [Remote host closed the connection]
21:17
faces has quit [Quit: Leaving]
21:18
kogent has joined #ruby-lang
21:18
kogent has quit [Remote host closed the connection]
21:18
kogent has joined #ruby-lang
21:18
faces has joined #ruby-lang
21:19
faces has quit [Client Quit]
21:19
maxmanders has quit [Ping timeout: 252 seconds]
21:19
faces has joined #ruby-lang
21:19
singpolyma has joined #ruby-lang
21:20
faces has quit [Client Quit]
21:20
faces has joined #ruby-lang
21:20
faces has quit [Client Quit]
21:21
baba_bubba has quit [Quit: Leaving]
21:22
maxmanders has joined #ruby-lang
21:22
faces has joined #ruby-lang
21:22
Egbrt has quit [Quit: Egbrt]
21:23
BigFatFatty has joined #ruby-lang
21:23
Bearproof has joined #ruby-lang
21:24
davidbalbert is now known as davidbalber|away
21:24
pbjorklund has quit [Ping timeout: 264 seconds]
21:24
Bearproof has quit [Client Quit]
21:25
glebm has joined #ruby-lang
21:26
lcdhoffman has quit [Quit: lcdhoffman]
21:27
apeiros_ has joined #ruby-lang
21:27
singpolyma has quit [Remote host closed the connection]
21:27
vlad_starkov has quit [Read error: Connection reset by peer]
21:28
davidbalber|away is now known as davidbalbert
21:30
vlad_starkov has joined #ruby-lang
21:32
srbaker has quit [Quit: Computer has gone to sleep.]
21:33
intellitech has joined #ruby-lang
21:34
brianpWins has joined #ruby-lang
21:34
drbrain has joined #ruby-lang
21:34
srbaker has joined #ruby-lang
21:35
singpolyma has joined #ruby-lang
21:38
tdy has joined #ruby-lang
21:42
ridget has joined #ruby-lang
21:42
imajes has quit [Excess Flood]
21:43
imajes has joined #ruby-lang
21:44
dbussink has quit [Excess Flood]
21:44
faces has quit [Quit: Leaving]
21:44
tdy has quit [Ping timeout: 246 seconds]
21:44
mytrile has joined #ruby-lang
21:46
tonni has quit [Remote host closed the connection]
21:47
torrieri has quit [Quit: Leaving...]
21:49
JohnnySS has joined #ruby-lang
21:52
<
JohnnySS >
i am totally new to ruby, what would be my first good resource ?
21:52
tonni has joined #ruby-lang
21:52
<
firefux >
JohnnySS: are you new to programming also?
21:52
<
JohnnySS >
i would like to go to rails further down the line probably
21:52
<
JohnnySS >
no no new to programming
21:53
RickHull has quit [Changing host]
21:53
RickHull has joined #ruby-lang
21:53
<
firefux >
JohnnySS: get the Pickaxe book
21:53
<
RickHull >
Chris Pine's Learn to Program or tryruby.org (i think)
21:53
glebm has quit [Quit: Computer has gone to sleep.]
21:54
<
JohnnySS >
is this the channel for rails too ? are ruby and rails go somewhat together ?
21:54
<
havenwood >
JohnnySS: #RubyOnRails
21:54
kurko_ has quit [Quit: Computer has gone to sleep.]
21:54
sandbags has joined #ruby-lang
21:54
sandbags has quit [Changing host]
21:54
sandbags has joined #ruby-lang
21:54
<
RickHull >
rails is built on ruby, it's separate
21:54
<
RickHull >
there are other channels for other things built on ruby
21:54
scampbell has quit [Quit: Leaving]
21:54
nXqd has quit [Remote host closed the connection]
21:55
<
JohnnySS >
how good should i be on ruby before i go to rails ?
21:55
erichmenge has quit [Quit: Arrivederci!]
21:55
<
RickHull >
<----> this good ;)
21:55
<
RickHull >
definitely a good idea to get comfortable with ruby first
21:55
<
havenwood >
JohnnySS: Rails is to a Harry Potter Book as Ruby is to the English language.
21:56
<
RickHull >
rails is not a good way to learn programming. it makes certain things easy, but you only recognize what it's doing if you've done it the hard way
21:57
MaddinXx has quit [Remote host closed the connection]
21:57
thone_ has joined #ruby-lang
21:57
liftM has joined #ruby-lang
21:57
erichmenge has joined #ruby-lang
21:57
lcdhoffman has joined #ruby-lang
21:57
<
RickHull >
if you've never done it the hard way, it won't be comprehensible. the hard way is also not "hard"
21:57
<
RickHull >
it's more that it's repetitive and boring after you've done it a few times
21:58
<
foucist >
speaking of 'hard way'
21:58
<
RickHull >
so rails gives you some tools to express things at a higher level
21:58
<
foucist >
check out "Learn Ruby The Hard Way" ..
21:58
geopet has joined #ruby-lang
21:59
<
JohnnySS >
i just ask for a place to begin. my goal is to start writing data driven applications correct ?
21:59
<
singpolyma >
rails basically hides all the important things so you can't tell what's going on unless you happen to already know
21:59
__BigO__ has quit [Remote host closed the connection]
21:59
face has joined #ruby-lang
21:59
<
foucist >
JohnnySS: check out "The Well-Grounded Rubyist" after you read a more basic programming book.. and then for practice, do
http://rubykoans.com
21:59
<
RickHull >
JohnnySS: yeah that's totally reasonable
21:59
<
RickHull >
are you sure you want to tackle a web app as your first big project?
21:59
<
lianj >
yes, doing the rubykoans on your own disk is great
22:00
<
RickHull >
i'm not saying you shouldn't
22:00
<
JohnnySS >
can i do that with ruby only without go into rails first ?
22:00
<
foucist >
JohnnySS: and then for rails, you can read "Rails 3 In Action" or "Agile Web Development with Rails (whatever the latest edition is)"
22:00
<
RickHull >
for sure, rails doesn't have a monopoly on web apps
22:00
thone has quit [Ping timeout: 260 seconds]
22:00
ridget has left #ruby-lang [#ruby-lang]
22:00
ridget has joined #ruby-lang
22:00
<
RickHull >
you can make a web app / web server using only ruby built-ins
22:00
<
JohnnySS >
actually i want to avoid it RickHull
22:00
<
foucist >
JohnnySS: yeah do ruby first then rails.. depending on how fast you're going to try to learn this stuff... spend a few weeks or a month on ruby, then go for rails
22:00
<
havenwood >
JohnnySS: You can learn Ruby and make any web app you want with Sinatra. Rails is a whole n'other world, great if you need it but a lot to swallow at once.
22:01
<
RickHull >
if you're not sure if you need/want rails, you don't
22:01
<
foucist >
RickHull, havenwood.. whatever, not helpful imo
22:01
jbsan has quit [Quit: jbsan]
22:01
imajes has quit [Excess Flood]
22:02
imajes has joined #ruby-lang
22:02
<
JohnnySS >
so let me recap here if i got this right
22:02
<
JohnnySS >
you say that if i spend my time only to rails...
22:02
<
JohnnySS >
i can produce a data driven application only by itself right ?
22:03
glebm has joined #ruby-lang
22:03
<
RickHull >
not exactly
22:03
<
foucist >
JohnnySS: ruby is fundamental if you want to learn rails.. lots of people did jump into rails right away.. but i definitely recommend spending some solid time learning ruby first
22:03
<
lianj >
you wil have a hard time and think things are magic
22:03
<
foucist >
JohnnySS: what kind of site do you want to make?
22:03
<
RickHull >
rails is purpose built for data-driven web apps
22:03
<
RickHull >
but you can make a command line calculator with rails if you want
22:04
<
JohnnySS >
data forms
22:04
<
JohnnySS >
and stuff like that
22:04
<
JohnnySS >
customer forms
22:04
<
RickHull >
rails has a lot of nice form processing tools
22:05
gregmore_ has quit [Ping timeout: 272 seconds]
22:05
<
JohnnySS >
i understand taht
22:05
<
JohnnySS >
but its difficult to get it from the start
22:05
<
RickHull >
if that's your goal, i would start with ruby for a few weeks and move to rails or similar
22:05
<
JohnnySS >
i should learn ruby first
22:05
jrafanie has left #ruby-lang [#ruby-lang]
22:06
<
foucist >
JohnnySS: video is 2 years out of date, but it's an example of a guy making a very basic blog app in rails in 20 minutes
22:06
<
JohnnySS >
those videos are just demos to me
22:06
<
JohnnySS >
i wanna learn!!!
22:06
<
JohnnySS >
so i need good material to sudy
22:07
<
havenwood >
#RailsNoob is another channel if you want to ask super basic questions that might get frowned at in #RubyOnRails, btw.
22:07
<
RickHull >
learn by doing
22:07
<
JohnnySS >
ty havenwood
22:07
<
RickHull >
the videos are useful. you should follow along, doing it
22:07
<
foucist >
JohnnySS: railsforzombies.org is an actaul lesson, takes you through building something
22:07
blacktulip has quit [Remote host closed the connection]
22:07
kiwnix has joined #ruby-lang
22:07
cored has quit [Ping timeout: 244 seconds]
22:08
face has joined #ruby-lang
22:08
<
havenwood >
foucist: I recommended it for a while, since I really enjoyed it, but seems that folks who've never programmed can get overwhelmed jumping right into ORMs.
22:08
face has quit [Client Quit]
22:08
<
havenwood >
+1 tryruby.org, worth the time to run through it real quick
22:08
face has joined #ruby-lang
22:09
<
JohnnySS >
try ruby is one for sure
22:09
<
lianj >
did it already?
22:09
<
JohnnySS >
but is it enough u think before i go into noobchannel and rails ?
22:09
cored has joined #ruby-lang
22:09
cored has quit [Changing host]
22:09
cored has joined #ruby-lang
22:09
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
22:10
<
RickHull >
pick a ruby tutorial and work all the way through it. then pick a rails tutorial and work through it
22:10
<
JohnnySS >
code school in general sounds really good to me
22:10
<
RickHull >
if the rails tutorial causes problems, you might revisit the ruby tutorials
22:10
<
havenwood >
JohnnySS: CodeSchool has what looks to be a nice Ruby primer as well.
22:11
<
foucist >
havenwood: that's true, rails is getting overly complicated for newbies
22:11
<
JohnnySS >
so after try ruby you think i ll be ready for action ???
22:11
<
JohnnySS >
no other resources ?
22:13
<
JohnnySS >
how can i use rubukoans ?
22:14
<
havenwood >
JohnnySS: You can download the folder, go into it in your Terminal, and type `rake`. Or a quick start is to do the online version first:
http://koans.heroku.com
22:17
zenspider has joined #ruby-lang
22:18
<
lianj >
do it on your local machine though
22:18
KA_ has quit [Quit: KA_]
22:18
jbsan has joined #ruby-lang
22:20
aedorn has quit [Quit: Leaving]
22:21
tenderlove has joined #ruby-lang
22:22
<
foucist >
JohnnySS: what OS are you on
22:23
aedorn has joined #ruby-lang
22:23
ddd has joined #ruby-lang
22:23
<
JohnnySS >
mountain lion
22:23
<
foucist >
yeah mac is good
22:23
<
JohnnySS >
i have already installed ruby 1.9.4p374
22:23
francisfish has joined #ruby-lang
22:24
<
JohnnySS >
ruby 1.9.3p374
22:24
sleopold has joined #ruby-lang
22:24
ddd has quit [Client Quit]
22:24
<
JohnnySS >
Rails 3.2.11
22:24
<
JohnnySS >
Rails 3.2.11
22:24
ddd has joined #ruby-lang
22:25
<
JohnnySS >
with rvm with the help of rubygems
22:25
ruskie has quit [Ping timeout: 246 seconds]
22:25
<
JohnnySS >
i am searching some books now
22:25
peppyheppy has quit [Ping timeout: 272 seconds]
22:26
<
JohnnySS >
because none of the resources you gave me were good for me sorry
22:26
<
JohnnySS >
so i have got eloquent ruby!!!!
22:26
<
JohnnySS >
very nice but not for me i think at this stage
22:26
<
JohnnySS >
and ruby from novice to professional
22:26
<
RickHull >
damn JohnnySS, pretty strongheaded for a newbie. i think i like it
22:27
<
ddd >
The Well-Grounded Rubyist is an excellent book for new coders
22:27
<
ddd >
manning.com/dblack2 iirc
22:27
<
JohnnySS >
but the god damn torrent doesn't download!!!!!!
22:27
<
JohnnySS >
let me try again :P
22:28
<
zenspider >
torrent... because the author that worked his ass off on that book doesn't deserve money
22:28
<
lianj >
JohnnySS entered the trollzone
22:28
* ryanv-raptor
grabs popcorn
22:28
<
ddd >
the books are fairly priced and WELL worth the money
22:28
<
ddd >
If my broke ass can afford to buy them, so can your's
22:29
<
JohnnySS >
i wish i could show you my library guys
22:29
<
ddd >
I'm more broke than a college student. I've 3 kids, a mortgage, truck payments, insurance payments, and bills.
22:29
<
JohnnySS >
you wouldn't say those to me now !
22:29
<
RickHull >
if you want free, free is out there
22:29
Bearproof has joined #ruby-lang
22:29
<
RickHull >
if you want a labor of love, i'd suggest paying for it
22:29
<
ddd >
i would definitely say that to you if you're stealing them
22:29
Bearproof has left #ruby-lang [#ruby-lang]
22:29
Bearproof has joined #ruby-lang
22:29
Bearproof has left #ruby-lang [#ruby-lang]
22:30
<
JohnnySS >
i have paid lots of money to buy technical books believe me
22:30
holgerno has joined #ruby-lang
22:30
<
JohnnySS >
but right now i don't have the time and the money
22:30
<
ddd >
still no excuse
22:30
<
RickHull >
er, labor of love is the wrong term for what i was trying to express. more like what zenspider said
22:30
<
zenspider >
not just worked his ass off on books... but also on our community as a whole. the man helped make ruby in the US what it is today
22:30
<
ddd >
prior payment has dickall to do with the current book
22:30
<
lianj >
please, finish rubykoans, come back then
22:30
<
RickHull >
use the free resources
22:30
<
JohnnySS >
i don't want to excuse my self..i am just saying
22:31
lcdhoffman has quit [Quit: lcdhoffman]
22:31
<
JohnnySS >
and sorry if i offended some go you
22:31
<
ddd >
i don't have the time, but i have the time to pirate it. I don't have the money, but I can afford to pay for my internet and video games and ..
22:31
<
havenwood >
JohnnySS: Many authors will gift you a copy in exchange for a postcard if you are financially pressed. We really do frown on stealing though, as many authors rely on the income and trust the community with DRM-free releases.
22:32
<
JohnnySS >
havenwood, really thanks for the info!!!
22:32
<
JohnnySS >
cause really i ve spend lots of money buying books
22:32
<
JohnnySS >
so many that i am thinking recycling some of them
22:33
<
lianj >
can someone grep his channel logs, think i remember his nick
22:33
<
RickHull >
also, the free resources are really really good, so the commercial resources really take a lot of effort to compete. it's just senseless not pay for the commercial resources. it's offensive because it harms the incentives that keep the community alive
22:33
<
ddd >
hell, you could even put it out on the various mailing lists that Hey I'm looking for this book. I'll trade this one and this one for that book
22:33
peppyheppy has joined #ruby-lang
22:34
holgerno has quit [Client Quit]
22:34
chendo__ has joined #ruby-lang
22:34
<
JohnnySS >
ok let's go back to the free resources
22:35
<
ddd >
and there's tryruby.org as well
22:36
<
JohnnySS >
havenwood, nope…now i am doing it :)
22:36
<
JohnnySS >
i think this is ok for now :)
22:36
<
JohnnySS >
i was confused before
22:36
<
ddd >
hah, nice try
22:36
<
JohnnySS >
because koans in heroku was for 1.8.7
22:37
<
JohnnySS >
OH COME ON MAN
22:37
<
ddd >
and 99% of what you learn in the koans DIRECTLY applies to 1.9.x
22:37
<
foucist >
rubykoans is fine for both versions of ruby (1.8 or 1.9)
22:37
<
foucist >
it doesn't matter what version you use
22:37
<
ddd >
its just an excuse
22:38
<
JohnnySS >
don't try to piss me off ok ?
22:38
<
ddd >
and you can talk to the authors for most books, as well as for paid resources like railscasts, and Ruby Tapas
22:38
<
JohnnySS >
i download torrents if i want to ok ????
22:38
<
JohnnySS >
happy ???
22:38
<
ddd >
you're the one stealing from the community, but we're supposed to not piss you off?
22:38
<
JohnnySS >
give me a break now
22:38
<
RickHull >
sure, but you might not get a great reception in here
22:39
jonahR has quit [Quit: jonahR]
22:39
<
ddd >
hell even Practicing Ruby and Ruby Weekly will usually help you out for a bit
22:39
<
ddd >
that I *know*, from personal experience
22:39
<
JohnnySS >
guys i ask questions. and if you want, you answer me ok ?
22:39
<
JohnnySS >
don't play me the saints now
22:40
<
ddd >
you lined yourself up for it. you made the bed, now lie in it
22:40
sailias has joined #ruby-lang
22:40
<
JohnnySS >
thank you all for the help. good bye
22:41
JohnnySS has left #ruby-lang ["Αποχώρησε"]
22:42
<
zenspider >
what a jackass
22:42
<
zenspider >
and jesus... how'd we NOT answer his questions?
22:43
<
zenspider >
I can only hope he follows up with a passive aggressive blog post about how we're so hostile
22:43
<
RickHull >
(5:26:01 PM) JohnnySS: because none of the resources you gave me were good for me sorry
22:43
<
RickHull >
that one got me worried
22:43
<
zenspider >
he's beyond that
22:44
<
zenspider >
obviously
22:44
brianpWins has quit [Read error: Connection reset by peer]
22:44
brianpWins has joined #ruby-lang
22:44
<
lianj >
no matches in the (old) logs?
22:45
* zenspider
hugs emacs
22:47
KA_ has joined #ruby-lang
22:47
KA_ has quit [Client Quit]
22:48
brianpWins has quit [Read error: Connection reset by peer]
22:49
__BigO__ has joined #ruby-lang
22:49
mytrile has quit [Remote host closed the connection]
22:50
__BigO__ has quit [Remote host closed the connection]
22:51
tdy has joined #ruby-lang
22:51
cirenyc has quit [Quit: Leaving...]
22:52
maxmanders has quit [Ping timeout: 245 seconds]
22:52
KA_ has joined #ruby-lang
22:54
maxmanders has joined #ruby-lang
22:54
brianpWins has joined #ruby-lang
22:54
Averna has joined #ruby-lang
22:54
cupakromer has joined #ruby-lang
22:56
gregmore_ has joined #ruby-lang
22:57
chendo__ has quit [Quit: Computer has gone to sleep.]
22:58
benanne has quit [Quit: kbai]
22:59
__butch__ has quit [Quit: Leaving.]
22:59
lun__ has quit [Remote host closed the connection]
23:00
__butch__ has joined #ruby-lang
23:02
<
brianpWins >
what the cmd to see the available versions of a particular gem from rubygems?
23:02
havenwood has quit [Remote host closed the connection]
23:02
<
drbrain >
gem list -ar gem_name
23:03
<
zenspider >
that can be really slow
23:03
<
zenspider >
I bet curl + grep is faster :P
23:03
<
zenspider >
but uglier
23:03
maxmanders has quit [Quit: Computer has gone to sleep.]
23:03
mercwithamouth has quit [Ping timeout: 248 seconds]
23:03
lcdhoffman has joined #ruby-lang
23:03
<
brianpWins >
heh thanks guys!
23:05
<
zzak >
zenspider: so you can give emacs hugs, but not me??
23:05
<
zzak >
i see how it is
23:05
<
zenspider >
DAMN FAST
23:05
mjio has joined #ruby-lang
23:06
apeiros_ has quit [Remote host closed the connection]
23:06
<
zenspider >
zzak: you can hug the cardboard cutout instead
23:08
apeiros_ has joined #ruby-lang
23:08
dustint has quit [Quit: Leaving]
23:08
csexton has joined #ruby-lang
23:11
<
UziMonkey >
d'oh! I just spent time setting RubyMine 4 up last night, and today RubyMine 5 is out
23:12
krohrbaugh has joined #ruby-lang
23:12
mistym has quit [Remote host closed the connection]
23:13
kurko_ has joined #ruby-lang
23:14
tbuehlmann has quit [Remote host closed the connection]
23:14
havenwood has joined #ruby-lang
23:15
skade has quit [Quit: Computer has gone to sleep.]
23:15
sailias has quit [Quit: Leaving.]
23:16
imajes has quit [Excess Flood]
23:16
kurko__ has joined #ruby-lang
23:17
kiwnix has quit [Quit: Leaving]
23:17
sleopold has left #ruby-lang [#ruby-lang]
23:17
glebm has quit [Quit: Computer has gone to sleep.]
23:18
imajes has joined #ruby-lang
23:19
nXqd has joined #ruby-lang
23:20
lcdhoffman has quit [Quit: lcdhoffman]
23:20
CoverSlide has quit [Quit: leaving]
23:21
CoverSli1e is now known as CoverSlide
23:22
jonahR has joined #ruby-lang
23:23
jonahR has quit [Client Quit]
23:23
io_syl has joined #ruby-lang
23:24
tbuehlmann has joined #ruby-lang
23:26
<
zenspider >
UziMonkey: HAH! one more reason to use emacs! they don't release for YEARS! :P
23:26
<
zenspider >
(not actually true... but whatevs)
23:26
b1rkh0ff has quit [Ping timeout: 244 seconds]
23:26
<
UziMonkey >
can comes with a free kitchen sink!
23:27
<
UziMonkey >
I think I might be done with "editors," because this is quite nice
23:30
<
UziMonkey >
I was thinking about buying Sublime, but this is more or less the same price
23:31
joevandyk has joined #ruby-lang
23:31
<
zenspider >
I thought sublime was free
23:31
<
benwoody >
i hated that every time i started a new project with RM, a lot of new files from the ID get included in a lot of places I don't want them
23:32
<
UziMonkey >
it technically is, it's nagware
23:32
KA_ has quit [Quit: KA_]
23:33
<
zenspider >
SEVENTY DOLLARS?!?!
23:33
<
zenspider >
holy shit.
23:34
<
zenspider >
I better get a handjob out of that deal
23:34
<
zenspider >
or something. dinner?
23:34
__butch__ has quit [Quit: Leaving.]
23:34
<
benwoody >
i think there's a plugin for that
23:34
<
RickHull >
i dunno, kinda like your chair or keyboard. you spend a lot of time there
23:34
<
RickHull >
that said, emacs4lyfe
23:35
<
benwoody >
ST3 will have a new pricing point as well
23:36
<
UziMonkey >
eh.. I could buy a video game for that, but I'd end up spending more time on this
23:37
<
RickHull >
joevandyk: i'd be tempted to mock it in html. maybe generate a PDF from that
23:38
<
joevandyk >
RickHull: i need to be able to print out 10,000 of these at once
23:38
b1rkh0ff has joined #ruby-lang
23:38
<
joevandyk >
from what i can tell, browsers suck at that sort of thing
23:38
<
RickHull >
html2ps maybe
23:38
<
RickHull >
something like that
23:38
<
RickHull >
fire postscript files at the printer
23:39
<
joevandyk >
i've been using prawn, seems to work wel
23:40
<
benwoody >
awww, i can't scan that barcode
23:40
<
joevandyk >
benwoody: even if you print it?
23:40
<
benwoody >
what am i? made of trees?
23:40
<
joevandyk >
i don't' think barcode scanners work on screens
23:40
mercwithamouth has joined #ruby-lang
23:41
<
benwoody >
usually not a problem. i got one of them high fangled bar code apps on my phone
23:41
<
RickHull >
i wonder what the pdf authoring / layout is like, if prawn is more useful than html/css
23:41
krohrbaugh has quit [Quit: Leaving.]
23:42
<
RickHull >
if the html conversion is suitable, you'll have a lot more luck hiring out for html generation i think
23:42
<
RickHull >
depending on how often you'd need that work done
23:42
<
joevandyk >
just this once. :)
23:43
mistym has joined #ruby-lang
23:43
mistym has joined #ruby-lang
23:43
mistym has quit [Changing host]
23:43
<
RickHull >
fuck it, i'll take a stab at it. contacting via PM
23:45
francisfish has quit [Remote host closed the connection]
23:46
glebm has joined #ruby-lang
23:47
ryanv-raptor has quit [Quit: Leaving.]
23:48
rins has quit [Ping timeout: 244 seconds]
23:48
spuk has joined #ruby-lang
23:50
apeiros_ has quit [Remote host closed the connection]
23:50
davidbalbert is now known as davidbalber|away
23:50
Bearproof has joined #ruby-lang
23:52
Bearproof has left #ruby-lang [#ruby-lang]
23:56
<
theoros >
is there a way i can see which gems were installed before the last time i ran gem update
23:57
jtoy has quit [Quit: jtoy]
23:57
zhul_mechanos has quit [Quit: zhul_mechanos]
23:57
Mon_Ouie has quit [Ping timeout: 264 seconds]
23:57
anachronistic has quit [Quit: anachronistic]