00:00
Takumo has quit [Remote host closed the connection]
00:00
plasku has quit [Remote host closed the connection]
00:00
Morrolan has quit [Quit: ZNC: Shutting down.]
00:01
Nightmare has quit [Remote host closed the connection]
00:01
elfuego has left #ruby [#ruby]
00:02
OrbitalKitten has quit [Read error: Connection reset by peer]
00:02
sevvie has joined #ruby
00:02
OrbitalKitten has joined #ruby
00:03
sinkensabe has joined #ruby
00:03
_1_moamen has joined #ruby
00:04
Zai00 has joined #ruby
00:06
_1_moamen has quit [Remote host closed the connection]
00:07
<
shevy >
oh I just realized
00:07
<
shevy >
in a regex ... \d{0,5}
00:07
<
shevy >
that is similar to \d? right? in other words optional... 0 up to 5 matches
00:08
<
jhass >
shevy: * and + are mere shortcuts to {0,} and {1,}
00:08
<
havenwood >
shevy: \d{,5}
00:08
sinkensabe has quit [Ping timeout: 272 seconds]
00:08
elfuego has joined #ruby
00:09
Fire-Dragon-DoL has quit [Quit: Leaving.]
00:09
claw has joined #ruby
00:11
FooMunki_ has quit [Quit: FooMunki_]
00:14
centrx has quit [Ping timeout: 244 seconds]
00:19
sevvie has quit [Ping timeout: 250 seconds]
00:20
<
shevy >
so far my regex looks like this /(\w*-?\w+-?\w+)-(\w{0,10}\d{1,10}+?\.?\d{1,10}?+\.?\d{0,5}-?\w{0,5})/
00:20
Takle has quit [Remote host closed the connection]
00:20
zubov has joined #ruby
00:21
<
bradland >
although, it's really best suited for stuff like log parsing, where you're likely to have common patterns
00:21
<
shevy >
that site is better than rubular.com?
00:21
<
bradland >
different
00:21
jespada has quit [Quit: WeeChat 1.1.1]
00:21
<
bradland >
that site will identify common patterns in a string, then allow you to click to construct a base regex
00:21
<
shevy >
well these are the different input matches so far
00:21
jonr22 has joined #ruby
00:21
<
shevy >
gaim-1.2 WebKit-r93670 subtle-0.11.3224-xi util-linux-ng-2.15 CrownCutlass-Alpha1.4
00:21
<
bradland >
it actually gives you code, but i tend to copy/paste the concatenation in to pry and get the regex back
00:22
<
bradland >
what's your source text?
00:22
<
bradland >
and desired match criteria?
00:22
<
bradland >
these look like package names
00:22
<
shevy >
I need to split them into name and version
00:23
<
bradland >
txt2re probably won't help with this much, but there are some general techniques that apply here
00:23
scripore has quit [Quit: Leaving]
00:23
<
bradland >
because these package names "pack" the package and version data differently
00:24
<
shevy >
the main pattern I have right now is
00:24
<
bradland >
you're probably going to want to profile the package name, then send it to a parser that handles it specifically
00:24
<
shevy >
()-() <--- where the central - is the one that is used for splitting, the other two () set the pre and post match
00:24
<
shevy >
so webkit is ... (WebKit)-(r93670)
00:24
<
bradland >
packages like util-linux-ng-2.15 trip you up though
00:24
<
shevy >
util-linux-ng-2.15 is (util-linux-ng)-(2.15)
00:24
<
bradland >
you could build a general regex for this, but i always hate doing that
00:25
<
bradland >
because my regexes become undecipherable to my future self
00:25
jenrzzz has quit [Ping timeout: 240 seconds]
00:25
<
shevy >
how lovely it would be to use a simple regex
00:25
<
shevy >
(\w+)-(\d+)
00:25
<
bradland >
so, despite the fact that it has greater overhead, i'll use a profiling regex, then hand off to the appropriate parsing regex
00:26
sevvie has joined #ruby
00:26
jonr22 has quit [Ping timeout: 252 seconds]
00:27
Azure has joined #ruby
00:27
<
shevy >
I shut down my brain already
00:27
<
shevy >
now I am just feeding rubular with sample data
00:28
<
shevy >
I found another input that annoys me
00:28
<
shevy >
acl_2.2.47-1
00:28
<
bradland >
look at how request-log-analyzer does it for rails logs
00:28
toretore has quit [Quit: This computer has gone to sleep]
00:28
<
bradland >
rails logs, mind bogglingly, are not in standard log format
00:28
<
shevy >
why can't these people use a -
00:28
botwin has joined #ruby
00:28
<
shevy >
or debian packages
00:28
<
bradland >
each request/response cycle is logged as a "block"
00:29
botwin has quit [Client Quit]
00:29
<
shevy >
and when you extract it, it suddenly becomes dpkg-1.17.10
00:29
<
bradland >
so rla (request-log-analyzer) profiles each line with a line_definition
00:29
<
shevy >
95% of the programs out there behave in that (\w+)-(\d+) scheme really
00:29
zachrab has joined #ruby
00:29
<
bradland >
it says: if the regex teaser matches, it's this type of line, so we'll break it up using the regexp
00:30
<
bradland >
have you run (\w+)-(\d+) against some of those results?
00:30
<
bradland >
because i don't think it does what you think it does
00:30
<
bradland >
even in simple cases
00:31
chipotle has joined #ruby
00:31
tgunr has quit [Ping timeout: 264 seconds]
00:31
<
shevy >
you can actually have more than one line as input string?
00:32
<
shevy >
I did with only one line each!
00:32
<
shevy >
then I removed the old line
00:32
<
shevy >
and put up new data haha
00:32
<
bradland >
you poor soul
00:32
<
shevy >
bradland well ok, it's a bit more tweaking
00:32
<
bradland >
because you have a couple of different identifiable patterns here
00:32
<
bradland >
that could use different parse strategies
00:32
<
shevy >
btw how do I make such a link in rubular?
00:33
<
bradland >
faaaaaar more easily than trying to build a general case regex
00:33
<
bradland >
there's a "Make Permalink" button in the bottom center
00:33
<
shevy >
now I need to add that annoying acl ... but perhaps I just refuse such input...
00:33
<
shevy >
but it's cool that you can test more than one input there
00:34
<
bradland >
yeah, very helpful
00:34
zachrab has quit [Ping timeout: 245 seconds]
00:34
<
bradland >
have a look at your matches though
00:35
<
shevy >
hmm I have another question
00:35
<
shevy >
we use () to capture a match right? but rubular also says: (a|b)
00:35
<
shevy >
so now I am confused
00:35
<
shevy >
isn't that also a match?
00:35
bogeyd6 has quit [Ping timeout: 255 seconds]
00:35
<
bradland >
(capture)
00:35
<
bradland >
(this|that)
00:35
<
bradland >
capture this or that
00:35
kromm has joined #ruby
00:36
<
bradland >
| is the or operator
00:36
<
shevy >
yeah but then I must add another match group or?
00:36
<
shevy >
for instance, take acl_
00:36
wldcordeiro has quit [Ping timeout: 265 seconds]
00:36
<
shevy >
so the separator will be _ as is the case in acl, or - as is the case in gaim-1.2
00:36
<
bradland >
yeah, i think you need to use a group in order to use or
00:36
<
shevy >
so ... it would be like: (\w+)(_|-)(\d+) or?
00:36
<
bradland >
use this instead
00:36
bogeyd6 has joined #ruby
00:37
<
bradland >
(\w+)[_-](\d+)
00:37
piotrj_ has joined #ruby
00:37
<
bradland >
[] are used to build your own character classes
00:37
FooMunki_ has joined #ruby
00:37
<
bradland >
so \d is any digit, right?
00:37
mroach has quit [Quit: mroach]
00:37
<
shevy >
your [] thing worked
00:37
<
bradland >
[_-] is underscore or dash
00:37
<
bradland >
but without the or operator
00:38
havenn has joined #ruby
00:38
javaserver has joined #ruby
00:38
<
bradland >
getting closer
00:38
ScioMin has joined #ruby
00:38
<
bradland >
that regex makes my head hurt, but it's getting closer!
00:38
javaserver has quit [Client Quit]
00:38
Dolphi has quit [Ping timeout: 272 seconds]
00:39
<
bradland >
as you're building this, don't forget to collect lines that don't match your regex at all
00:40
<
shevy >
it can probably be simplified
00:40
fgo has joined #ruby
00:40
thumpba has joined #ruby
00:40
<
shevy >
but I just want to have the sample input work and move on!
00:40
piotrj has quit [Ping timeout: 272 seconds]
00:40
<
shevy >
irb displays the regex curiously
00:41
<
shevy >
# => w-w-w-{0,10}[-]w{0,10}d{1,10}d{1,10}d{0,5}-w{0,5}
00:41
<
bradland >
check match group 5
00:41
havenwood has quit [Ping timeout: 252 seconds]
00:41
<
bradland >
although i guess that's a "version" by their standard
00:41
Zai00 has quit [Quit: Zai00]
00:41
dfinninger has joined #ruby
00:41
<
bradland >
0.11.3224-xi is a version number? wow
00:41
javaserver has joined #ruby
00:41
<
jhass >
>> "foo"[/foo|bar/]
00:41
javaserver has quit [Client Quit]
00:42
Limix has quit [Quit: Limix]
00:42
<
jhass >
don't need a group if you don't want to chain
00:42
<
jhass >
>> "foo"[/(?:foo|bar)/] # and it works fine in a non-capturing group
00:42
<
shevy >
most projects really work just fine
00:42
Channel6 has joined #ruby
00:43
<
shevy >
like all of the gnome tarballs, they have a simple scheme such as libgnome-2.32.1
00:43
Morrolan has joined #ruby
00:43
arescorpio has joined #ruby
00:43
jottr has quit [Ping timeout: 250 seconds]
00:43
jenrzzz has joined #ruby
00:43
<
shevy >
jhass hmm what is the leading ? there doing?
00:43
<
shevy >
"foo"[/(?:foo|bar)/]
00:43
<
bradland >
what data are you querying?
00:43
javaserver has joined #ruby
00:43
<
bradland >
makes it a non-capturing group
00:43
<
jhass >
(?:) is a non-capturing group
00:43
javaserver has quit [Client Quit]
00:43
<
shevy >
bradland all available wget-able source archives out in the wild
00:44
<
shevy >
I can probably show you all URLs a bit later, will be around 2700
00:44
<
bradland >
if you're pulling from places distribution package managers, they maintain indexes of those things
00:44
<
bradland >
which will have all this data separated already
00:44
jottr has joined #ruby
00:44
charliesome has joined #ruby
00:44
<
jhass >
>> "abcdefg".scan(/(?:[a-d])|([e-g])/)
00:45
<
bradland >
although i see you're pulling from sourceforge too
00:45
<
shevy >
hmm ok so .. (?:) has nothing to do with when we use ? for an optional match, such as /a?/
00:45
<
bradland >
regex, babyyyyyyyy!
00:46
ScioMin has left #ruby ["GG"]
00:46
dfinninger has quit [Ping timeout: 246 seconds]
00:47
thumpba has quit [Remote host closed the connection]
00:47
<
jhass >
the fun starts with lookaround expressions and possessive quantifiers
00:48
<
shevy >
bradland I found another funny archive:
00:48
plashchynski has quit [Quit: plashchynski]
00:48
<
shevy >
ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools++/ARCHIVE/12_0_0/ncbi_cxx--12_0_0.tar.gz
00:48
<
apeiros_ >
jhass: atomic expressions are the real fun
00:48
<
shevy >
which - is the more important one ;)
00:48
<
shevy >
though the answer is probably consistent, the very first - right before a number
00:49
<
shevy >
but I am thinking, what are these guys smoking!
00:49
<
shevy >
I think it must be some C++ thing
00:49
<
jhass >
apeiros_: yeah yeah, possessive quantifiers are just the lazy mans way to write them
00:49
<
jhass >
which JS had them
00:50
boshhead has joined #ruby
00:50
<
bradland >
shevy: your chances of success with a general case regex are going up in a puff of smoke!
00:50
rbennacer has joined #ruby
00:50
sprink has left #ruby [#ruby]
00:52
mroach has joined #ruby
00:53
<
bradland >
you could do something like that, then postprocess the matches
00:53
jenrzzz has quit [Ping timeout: 246 seconds]
00:53
crdpink2 has joined #ruby
00:54
<
bradland >
also, be careful when using - inside []
00:54
<
bradland >
[a-z] matches a through z
00:54
blizzy has joined #ruby
00:54
<
bradland >
if you want literally, a, -, z, you have to escape the -
00:54
<
bradland >
or put it at the end
00:54
crdpink has quit [Ping timeout: 256 seconds]
00:54
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
00:54
<
bradland >
[az-] or [a\-z]
00:54
<
bradland >
i prefer the former
00:54
<
shevy >
so many things to keep in mind
00:54
_blizzy_ has quit [Ping timeout: 246 seconds]
00:54
<
shevy >
that regex is more complicated than the rest of the code :(
00:54
blizzy is now known as
_blizzy_
00:55
<
bradland >
i am a regex
*novice*
00:55
<
bradland >
absolute novice
00:55
Limix has joined #ruby
00:55
<
shevy >
I am always happy when I can get away with code that is so simple that I don't have to think
00:56
RegulationD has joined #ruby
00:56
<
bradland >
broken record, but, i think if you approach this differently, it's much simpler
00:56
riotjones has joined #ruby
00:57
spider-mario has quit [Remote host closed the connection]
00:57
<
bradland >
hell, you can use a case/when as your dispatcher
00:58
<
shevy >
boost_1_54_0.tar.bz2 trips me up
00:58
<
shevy >
why do these guys use _
00:58
<
bradland >
the profile for that is, it contains no dashes, no dots
00:58
<
bradland >
(after you drop the extension, of course)
00:59
<
shevy >
yeah, I get rid of the extension parts before
00:59
<
bradland >
so you have an "all underscore" filename
00:59
<
bradland >
what's your strategy for parsing those?
00:59
<
shevy >
can you give an example?
00:59
<
bradland >
it's probably different than when there are dashes and dots, right?
00:59
nii236 has joined #ruby
00:59
<
bradland >
sure, lemme see if i can get something working
01:00
<
shevy >
well for the _, all examples so far have a "word_number" part which is the same as "word-number"
01:00
<
bradland >
i gotta run bud
01:00
<
shevy >
except for WebKit-r93670 perhaps... I have not yet seen a WebKit_r93670 example yet... or WebKit_r_9_3_6_7_0
01:00
<
bradland >
the wife is ready to head to dinner
01:00
Adran has quit [Quit: Este é o fim.]
01:01
Feyn has joined #ruby
01:01
Regulati_ has joined #ruby
01:01
crdpink has joined #ruby
01:01
riotjones has quit [Ping timeout: 256 seconds]
01:01
RegulationD has quit [Ping timeout: 272 seconds]
01:01
zubov has quit [Quit: Leaving]
01:01
crdpink2 has quit [Ping timeout: 256 seconds]
01:02
nfk has quit [Quit: yawn]
01:03
rbennacer has quit [Remote host closed the connection]
01:04
thumpba has joined #ruby
01:04
sinkensabe has joined #ruby
01:04
shadeslayer has quit [Ping timeout: 245 seconds]
01:04
rbennacer has joined #ruby
01:04
willgorman|away has quit [Ping timeout: 256 seconds]
01:05
shadeslayer has joined #ruby
01:05
SouL has joined #ruby
01:05
willgorman has joined #ruby
01:06
Regulati_ has quit [Ping timeout: 272 seconds]
01:06
plutonic has quit [Quit: plutonic]
01:07
jonathanwallace has quit [Ping timeout: 245 seconds]
01:08
RegulationD has joined #ruby
01:08
gsvolt has quit [Quit: No Ping reply in 180 seconds.]
01:09
sinkensabe has quit [Ping timeout: 264 seconds]
01:09
gsvolt has joined #ruby
01:09
plutonic has joined #ruby
01:09
CorySimmons has joined #ruby
01:09
crazydiamond has quit [Remote host closed the connection]
01:09
jonathanwallace has joined #ruby
01:10
thumpba_ has joined #ruby
01:10
thumpba has quit [Read error: Connection reset by peer]
01:10
rbennacer has quit [Remote host closed the connection]
01:11
Stalkr^ has quit [Quit: Leaving...]
01:11
redchicken has joined #ruby
01:12
SouL has quit [Remote host closed the connection]
01:12
RegulationD has quit [Ping timeout: 244 seconds]
01:14
fgo has quit [Ping timeout: 252 seconds]
01:17
leafybasil has quit [Read error: Connection reset by peer]
01:17
charliesome has quit [Quit: zzz]
01:17
leafybasil has joined #ruby
01:17
spicerack has joined #ruby
01:17
spicerack has joined #ruby
01:19
ferr has quit [Quit: WeeChat 1.1.1]
01:20
aphprentice_ has quit [Remote host closed the connection]
01:21
soulcake has quit [Ping timeout: 276 seconds]
01:21
crdpink2 has joined #ruby
01:22
crdpink has quit [Ping timeout: 265 seconds]
01:25
justin_pdx has joined #ruby
01:25
teddyp1cker has joined #ruby
01:27
paradisaeidae has joined #ruby
01:29
<
shevy >
test string is: x = 'boost_1_54_0'
01:29
<
shevy >
regex is: regex = /(\w+)_(\d{0,3}_?)/
01:30
<
shevy >
this will create two match groups: (1) "boost_1_54" and (2) "0"
01:30
<
shevy >
now I'd like to match against the first _, not the last
01:30
teddyp1cker has quit [Ping timeout: 240 seconds]
01:30
<
shevy >
so that I would get (1) "boost" and (2) "1_54_0"
01:30
<
shevy >
is there some way to have that?
01:31
chipotle has quit [Remote host closed the connection]
01:31
<
shevy >
with this regex it matches: ([a-z]+)_(\d{0,3}_?\d{0,3}_?\d{0,3}_?)
01:31
pontiki has joined #ruby
01:32
<
shevy >
I guess one problem is that \w matches _ as well. Still curious how to make a match less greedy
01:33
<
jhass >
>> "oooo"[/o+?/]
01:34
n008f4g_ has quit [Quit: leaving]
01:34
<
shevy >
I just looked up
01:34
thumpba has joined #ruby
01:34
<
shevy >
so the ? means non-greedy right? I thought it was optional
01:35
dseitz has joined #ruby
01:35
<
canton7 >
everything in regex means a bazillion different things depending on context
01:35
<
canton7 >
(?:...) is a non-capturing group for instiance
01:35
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:36
charliesome has joined #ruby
01:36
chipotle has joined #ruby
01:36
marr has quit [Ping timeout: 240 seconds]
01:37
thumpba_ has quit [Ping timeout: 272 seconds]
01:38
commmmodo has quit [Quit: commmmodo]
01:38
mary5030 has joined #ruby
01:40
martinbmadsen has joined #ruby
01:42
dfinninger has joined #ruby
01:43
<
waxjar >
shevy, would split("_", 2) work?
01:44
paradoja has quit [Ping timeout: 245 seconds]
01:44
<
shevy >
waxjar the problem is that some input does not have any _
01:44
Guest123 has joined #ruby
01:45
martinbmadsen has quit [Ping timeout: 272 seconds]
01:46
Dolphi has joined #ruby
01:47
dfinninger has quit [Ping timeout: 272 seconds]
01:51
robustus has quit [Ping timeout: 255 seconds]
01:51
Takle has joined #ruby
01:52
<
redchicken >
ruby got accepted for gsoc
01:53
tubuliferous has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:53
<
redchicken >
quick - someone tackle the gil with google money
01:53
<
havenn >
shevy: drop all the zeros before the commas
01:53
kromm has quit [Quit: kromm]
01:53
bruno-_ has quit [Ping timeout: 246 seconds]
01:54
FooMunki_ has quit [Ping timeout: 246 seconds]
01:54
robustus has joined #ruby
01:54
FooMunki has joined #ruby
01:54
diegoviola has quit [Quit: WeeChat 1.1.1]
01:55
jcdesimp has quit [Remote host closed the connection]
01:55
Nightmare has joined #ruby
01:55
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:55
rhg135 has quit [Ping timeout: 256 seconds]
01:56
Takle has quit [Ping timeout: 252 seconds]
01:57
FooMunki_ has joined #ruby
01:58
Yzguy has joined #ruby
01:59
FooMunki has quit [Ping timeout: 256 seconds]
01:59
FooMunki_ is now known as FooMunki
01:59
oo_ has joined #ruby
01:59
oo_ has quit [Remote host closed the connection]
02:00
Limix has quit [Quit: Limix]
02:00
jblancett has quit [Remote host closed the connection]
02:00
bradland has quit [Remote host closed the connection]
02:00
zachrab has joined #ruby
02:01
rhg135 has joined #ruby
02:01
bigmac has joined #ruby
02:02
chipotle has quit [Quit: cheerio]
02:03
lkba has joined #ruby
02:03
lkba_ has quit [Read error: Connection reset by peer]
02:03
drPoggs has quit [Quit: +++ATH]
02:04
crdpink has joined #ruby
02:04
nii236 has quit [Ping timeout: 240 seconds]
02:04
FooMunki has quit [Quit: FooMunki]
02:04
crdpink2 has quit [Ping timeout: 256 seconds]
02:04
blackmesa has quit [Ping timeout: 272 seconds]
02:05
davedev2_ has quit [Ping timeout: 252 seconds]
02:05
Limix has joined #ruby
02:06
zachrab has quit [Ping timeout: 264 seconds]
02:07
Deele has quit [Ping timeout: 256 seconds]
02:07
davedev24_ has joined #ruby
02:08
covercash has quit [Remote host closed the connection]
02:09
a5i has joined #ruby
02:09
n80 has joined #ruby
02:09
maletor has joined #ruby
02:10
jonr22 has joined #ruby
02:10
fgo has joined #ruby
02:11
bigmac has quit [Read error: No route to host]
02:12
bigmac has joined #ruby
02:12
bigmac has quit [Read error: Connection reset by peer]
02:12
Dolphi has quit [Ping timeout: 246 seconds]
02:13
greenbagels has joined #ruby
02:14
nii236 has joined #ruby
02:14
mary5030 has quit [Remote host closed the connection]
02:15
jonr22 has quit [Ping timeout: 245 seconds]
02:15
fgo has quit [Ping timeout: 252 seconds]
02:20
lemur has quit [Remote host closed the connection]
02:20
n80 has quit [Quit: n80]
02:21
Hirzu has joined #ruby
02:23
n80 has joined #ruby
02:24
n80 has quit [Client Quit]
02:25
amystephen has quit [Quit: amystephen]
02:26
Hirzu has quit [Ping timeout: 244 seconds]
02:28
covercash has joined #ruby
02:28
justin_pdx has quit [Quit: justin_pdx]
02:28
Adran has joined #ruby
02:30
sevvie has quit [Ping timeout: 256 seconds]
02:30
jenrzzz has joined #ruby
02:33
millerti has joined #ruby
02:33
hiyosi has joined #ruby
02:36
plutonic has quit [Quit: plutonic]
02:36
greenbagels has quit [Quit: Leaving]
02:37
sevvie has joined #ruby
02:39
jenrzzz has quit [Ping timeout: 252 seconds]
02:40
[gmi] has quit [Read error: Connection reset by peer]
02:40
martinbmadsen has joined #ruby
02:41
Asher has quit [Quit: Leaving.]
02:42
dfinninger has joined #ruby
02:43
commmmodo has joined #ruby
02:45
covercash has quit []
02:45
apeiros_ has quit [Remote host closed the connection]
02:45
Sirupsen has joined #ruby
02:45
apeiros_ has joined #ruby
02:46
riotjones has joined #ruby
02:46
martinbmadsen has quit [Ping timeout: 256 seconds]
02:46
red_horned_rihno has quit [Ping timeout: 240 seconds]
02:47
thumpba has quit [Remote host closed the connection]
02:48
dfinninger has quit [Ping timeout: 272 seconds]
02:48
Spami has quit [Quit: This computer has gone to sleep]
02:49
thumpba has joined #ruby
02:50
Rephiax has joined #ruby
02:51
DerisiveLogic has joined #ruby
02:51
riotjones has quit [Ping timeout: 252 seconds]
02:51
rudolpholiver has joined #ruby
02:51
<
rudolpholiver >
yeahhhhhhhhhhhh!
02:52
jcdesimp has joined #ruby
02:52
Takle has joined #ruby
02:53
greenbagels has joined #ruby
02:57
RegulationD has joined #ruby
02:57
Takle has quit [Ping timeout: 246 seconds]
02:57
Yzguy has quit [Quit: I'm sleeping, go away.]
02:59
red_horned_rihno has joined #ruby
03:00
hmsimha has quit [Ping timeout: 252 seconds]
03:00
chrishough has joined #ruby
03:00
maletor has quit [Quit: Computer has gone to sleep.]
03:00
zorak8 has quit [Ping timeout: 256 seconds]
03:01
Hobogrammer has quit [Ping timeout: 250 seconds]
03:01
Hien has quit [Remote host closed the connection]
03:01
a5i has joined #ruby
03:01
meatherly has quit [Remote host closed the connection]
03:01
RegulationD has quit [Remote host closed the connection]
03:01
rudolpholiver has quit [Quit: vestinst.com]
03:02
nii236 has quit [Ping timeout: 244 seconds]
03:03
G has quit [Remote host closed the connection]
03:03
miah has quit [Quit: Lost terminal]
03:04
zorak8 has joined #ruby
03:05
Joufflu has joined #ruby
03:05
sinkensabe has joined #ruby
03:06
JBreit has quit [Quit: Leaving]
03:07
elektronaut has joined #ruby
03:07
tag has joined #ruby
03:08
Yzguy has joined #ruby
03:08
RegulationD has joined #ruby
03:10
sinkensabe has quit [Ping timeout: 264 seconds]
03:11
thumpba has quit [Remote host closed the connection]
03:11
fgo has joined #ruby
03:12
RegulationD has quit [Ping timeout: 250 seconds]
03:16
fgo has quit [Ping timeout: 252 seconds]
03:18
Yzguy has quit [Quit: I'm sleeping, go away.]
03:18
Limix has quit [Read error: Connection reset by peer]
03:19
mary5030 has joined #ruby
03:22
plutonic has joined #ruby
03:24
Limix has joined #ruby
03:24
nii2361 has joined #ruby
03:26
teddyp1cker has joined #ruby
03:27
Limix has quit [Client Quit]
03:29
aaa1231-2 has quit [Ping timeout: 246 seconds]
03:31
teddyp1cker has quit [Ping timeout: 256 seconds]
03:32
justin_pdx has joined #ruby
03:36
jottr has quit [Ping timeout: 246 seconds]
03:36
mary5030 has quit [Remote host closed the connection]
03:38
plutonic has quit [Quit: plutonic]
03:38
yfeldblum has joined #ruby
03:39
jonr22 has joined #ruby
03:41
TripTastic has quit [Read error: Connection reset by peer]
03:41
iamjarvo has joined #ruby
03:41
Sawbones has joined #ruby
03:42
yfeldblu_ has quit [Ping timeout: 265 seconds]
03:43
dfinninger has joined #ruby
03:44
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:45
nii2361 has quit [Ping timeout: 264 seconds]
03:45
pork_clips has joined #ruby
03:46
thumpba has joined #ruby
03:46
_cake has quit [Ping timeout: 244 seconds]
03:46
plutonic has joined #ruby
03:47
plutonic has quit [Client Quit]
03:48
dfinninger has quit [Ping timeout: 256 seconds]
03:49
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:49
zachrab has joined #ruby
03:51
iamjarvo has joined #ruby
03:51
jeromelanteri has joined #ruby
03:51
Limix has joined #ruby
03:51
charliesome has quit [Quit: zzz]
03:53
bruno- has joined #ruby
03:54
zachrab has quit [Ping timeout: 264 seconds]
03:55
jottr has joined #ruby
03:56
CorySimmons has quit [Quit: Bye!]
03:56
martinbmadsen has joined #ruby
03:57
jcdesimp has quit [Remote host closed the connection]
03:58
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:59
bruno- has quit [Ping timeout: 255 seconds]
04:00
epochwolf has quit [Quit: Uh no...]
04:00
arescorpio has quit [Excess Flood]
04:00
leslie has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
04:00
lemur has joined #ruby
04:01
iamjarvo has joined #ruby
04:01
martinbmadsen has quit [Ping timeout: 246 seconds]
04:01
iamjarvo has quit [Max SendQ exceeded]
04:02
iamjarvo has joined #ruby
04:03
jcdesimp has joined #ruby
04:04
wldcordeiro has joined #ruby
04:04
nii2361 has joined #ruby
04:04
jcdesimp has quit [Remote host closed the connection]
04:05
jcdesimp has joined #ruby
04:05
braincrash has quit [Quit: bye bye]
04:06
sinkensabe has joined #ruby
04:06
iamjarvo has quit [Ping timeout: 265 seconds]
04:06
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:07
millerti has joined #ruby
04:08
maximski has joined #ruby
04:08
zorak8 has quit [Ping timeout: 272 seconds]
04:09
zorak8 has joined #ruby
04:10
maximski has quit [Client Quit]
04:10
Hirzu has joined #ruby
04:11
sinkensabe has quit [Ping timeout: 245 seconds]
04:11
braincrash has joined #ruby
04:12
sevvie has quit [Ping timeout: 252 seconds]
04:13
Spami has joined #ruby
04:13
amystephen has joined #ruby
04:14
davidhq has joined #ruby
04:14
davidhq has quit [Client Quit]
04:15
boshhead has quit [Ping timeout: 256 seconds]
04:15
Hirzu has quit [Ping timeout: 272 seconds]
04:16
davidhq has joined #ruby
04:18
bricker has joined #ruby
04:20
hmsimha has joined #ruby
04:20
thumpba has quit []
04:20
<
bricker >
git bisect is amazing but I wish I could tell it to help me find when something was
*fixed*
04:21
<
bricker >
besides just manually reversing "good" and "bad"
04:21
Yzguy has joined #ruby
04:27
Yzguy has quit [Quit: I'm sleeping, go away.]
04:30
philwantsfish has quit [Read error: Connection reset by peer]
04:34
nii2361 has quit [Ping timeout: 265 seconds]
04:34
Caius has quit [Ping timeout: 276 seconds]
04:34
sevvie has joined #ruby
04:35
riotjones has joined #ruby
04:39
RegulationD has joined #ruby
04:39
Caius has joined #ruby
04:40
riotjones has quit [Ping timeout: 240 seconds]
04:40
<
eam >
how is "fixed" different from good/bad?
04:43
RegulationD has quit [Ping timeout: 246 seconds]
04:44
dfinninger has joined #ruby
04:45
sivsushruth has quit [Ping timeout: 245 seconds]
04:46
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0.1/20150305021524]]
04:46
mary5030 has joined #ruby
04:47
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:49
dfinninger has quit [Ping timeout: 265 seconds]
04:49
lemur has quit [Remote host closed the connection]
04:50
justin_pdx has quit [Quit: justin_pdx]
04:51
mary5030 has quit [Ping timeout: 250 seconds]
04:51
duncannz has quit [Remote host closed the connection]
04:55
sevvie has quit [Ping timeout: 252 seconds]
04:57
sevvie has joined #ruby
04:58
martinbmadsen has joined #ruby
05:00
jonr22 has quit [Remote host closed the connection]
05:01
Guest123 has joined #ruby
05:02
Soda has quit [Remote host closed the connection]
05:03
RegulationD has joined #ruby
05:04
martinbmadsen has quit [Ping timeout: 240 seconds]
05:04
sevvie has quit [Ping timeout: 246 seconds]
05:04
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:05
Qladstone has joined #ruby
05:06
<
Qladstone >
If I wanted to scan through a string of characters but instead of character by characters, I want to scan blocks of say 5 characters at a time, how would I do it?
05:07
sinkensabe has joined #ruby
05:07
zorak8 has quit [Quit: Leaving]
05:07
<
havenn >
>> "If I wanted to scan".each_char.each_slice(5).map &:join
05:07
davedev2_ has joined #ruby
05:08
RegulationD has quit [Ping timeout: 250 seconds]
05:08
davedev24_ has quit [Ping timeout: 245 seconds]
05:09
RegulationD has joined #ruby
05:10
commmmodo has quit [Quit: commmmodo]
05:10
<
Qladstone >
hmm let me try it
05:10
gccostabr has joined #ruby
05:10
<
havenn >
>> "If I wanted to scan".scan /.{1,5}/
05:10
sevvie has joined #ruby
05:10
<
havenn >
Qladstone: Another way is to use Regexp. ^
05:11
iamjarvo has joined #ruby
05:11
sinkensabe has quit [Ping timeout: 240 seconds]
05:12
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:12
<
Qladstone >
how many slots are there in a hash for Ruby?
05:12
fgo has joined #ruby
05:12
<
Qladstone >
I don't know the correct term -.-
05:13
<
Qladstone >
but from what I understand
05:13
<
Qladstone >
there's a finite set of locations a hashtable can store key-value pairs
05:13
<
shevy >
Qladstone I guess the memory constraints the amount
05:14
RegulationD has quit [Ping timeout: 246 seconds]
05:14
<
shevy >
and the larger a hash becomes, the more unwieldy or however you say it may become
05:14
<
Qladstone >
I mean, I'm trying to come up with an estimate of how many key-value pairs can be stored in a hashtable before significant collisions start to occur
05:15
<
pontiki >
i'm confused
05:15
<
pontiki >
i didn't think a ruby Hash had anything to do with a hashtable
05:16
Qladstone has quit [Remote host closed the connection]
05:17
fgo has quit [Ping timeout: 245 seconds]
05:17
Qladstone has joined #ruby
05:18
<
shevy >
Qladstone how many keys does your biggest hash have yet
05:19
<
bricker >
eam: git bisect checks if your initial "good" commit is an ancestor of your initial "bad" commit, and fails if not, so you can only go from good -> bad
05:20
Qladstone has quit [Remote host closed the connection]
05:24
Qladstone has joined #ruby
05:24
<
Qladstone >
sorry I disconnected
05:24
<
Qladstone >
sorry I disconnected
05:24
<
Qladstone >
I can let it have as many keys as I want haha
05:25
<
Qladstone >
n is a decision to make
05:26
<
shevy >
what are you storing
05:26
<
shevy >
go and write a test until you break it
05:26
<
shevy >
hash = Hash.new
05:26
<
Qladstone >
all permutations of a character string -.-
05:26
<
shevy >
now fill it
05:27
teddyp1cker has joined #ruby
05:29
teddyp1cker has quit [Read error: Connection reset by peer]
05:29
teddyp1cker has joined #ruby
05:29
sevvie has quit [Ping timeout: 255 seconds]
05:29
<
Qladstone >
I'll try it later
05:30
sevvie has joined #ruby
05:30
Qladstone has quit [Remote host closed the connection]
05:32
rippa has joined #ruby
05:32
<
pontiki >
especially if those permuted strings are going to be the hash keys
05:35
bricker has quit [Quit: leaving]
05:36
Crazy_Atheist has quit [Ping timeout: 246 seconds]
05:36
plutonic has joined #ruby
05:38
zachrab has joined #ruby
05:39
Crazy_Atheist has joined #ruby
05:39
lemur has joined #ruby
05:41
davedev2_ has quit []
05:41
Yzguy has joined #ruby
05:43
zachrab has quit [Ping timeout: 255 seconds]
05:43
<
eam >
bricker: so invert the test?
05:43
teddyp1cker has quit [Remote host closed the connection]
05:45
Yzguy has quit [Client Quit]
05:45
dfinninger has joined #ruby
05:46
plutonic has quit [Quit: plutonic]
05:47
dandaman has joined #ruby
05:49
Channel6 has quit [Quit: Leaving]
05:49
teddyp1cker has joined #ruby
05:49
dfinninger has quit [Ping timeout: 246 seconds]
05:50
nii2361 has joined #ruby
05:51
lxsameer has joined #ruby
05:52
Hobogrammer has joined #ruby
05:52
Zesty has joined #ruby
05:53
Wolland has joined #ruby
05:53
steffes has joined #ruby
05:54
Wolland has quit [Client Quit]
05:54
ebbflowgo has quit [Read error: Connection reset by peer]
05:54
ebbflowgo has joined #ruby
06:03
Zesty has quit [Quit: Leaving...]
06:06
dandaman has quit [Quit: Leaving.]
06:07
nii2361 has quit [Ping timeout: 265 seconds]
06:07
dandaman has joined #ruby
06:07
sinkensabe has joined #ruby
06:10
teddyp1cker has quit [Remote host closed the connection]
06:11
armyriad has quit [Ping timeout: 265 seconds]
06:12
Hirzu has joined #ruby
06:12
armyriad has joined #ruby
06:13
sinkensabe has quit [Ping timeout: 264 seconds]
06:13
fgo has joined #ruby
06:13
ducklobster has joined #ruby
06:14
Guest123 has joined #ruby
06:15
Limix has quit [Quit: Limix]
06:16
Hirzu has quit [Ping timeout: 256 seconds]
06:16
TheNet has quit [Read error: Connection reset by peer]
06:16
armyriad has quit [Ping timeout: 240 seconds]
06:16
TheNet has joined #ruby
06:17
TheNet has quit [Remote host closed the connection]
06:17
armyriad has joined #ruby
06:18
morenoh149 has quit [Ping timeout: 252 seconds]
06:18
fgo has quit [Ping timeout: 246 seconds]
06:20
TheNet has joined #ruby
06:21
claw has quit [Ping timeout: 240 seconds]
06:21
teddyp1cker has joined #ruby
06:23
tearan has joined #ruby
06:23
rjo_ has joined #ruby
06:24
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
06:24
riotjones has joined #ruby
06:24
claw has joined #ruby
06:28
skj3gg has joined #ruby
06:29
frog|OFF is now known as green-big-frog
06:30
<
pontiki >
require 'stringio'
06:30
martinbmadsen has joined #ruby
06:30
<
pontiki >
not 'StringIo'
06:30
riotjones has quit [Ping timeout: 256 seconds]
06:30
<
skj3gg >
sorry, kinda noob question but trying to make a generated static error page using my applications layout is there a way i can use views/layouts/application.html.haml from assets/html/404.html.haml
06:32
teddyp1cker has quit [Remote host closed the connection]
06:32
josiah14 has quit [Ping timeout: 246 seconds]
06:33
<
rjo_ >
the require is not the problem
06:33
<
rjo_ >
its the Rubinius reference
06:33
<
rjo_ >
ive had two cocktails so please to pardon the capitalization error
06:34
lkba has quit [Ping timeout: 255 seconds]
06:35
martinbmadsen has quit [Ping timeout: 245 seconds]
06:39
charliesome has joined #ruby
06:41
Limix has joined #ruby
06:43
hvxgr has quit [Ping timeout: 244 seconds]
06:45
red_horned_rihno has quit [Ping timeout: 246 seconds]
06:46
dfinninger has joined #ruby
06:47
chipotle has joined #ruby
06:47
jottr has quit [Ping timeout: 256 seconds]
06:47
rkgudboy has joined #ruby
06:48
Limix has quit [Quit: Limix]
06:48
agent_snooze is now known as agent_white
06:49
jonr22 has joined #ruby
06:50
dfinninger has quit [Ping timeout: 246 seconds]
06:51
piotrj_ has quit [Read error: Connection reset by peer]
06:51
piotrj has joined #ruby
06:54
jonr22 has quit [Ping timeout: 265 seconds]
06:54
rkgudboy has quit [Ping timeout: 264 seconds]
06:55
Mon_Ouie has joined #ruby
06:57
iwaffles has joined #ruby
06:57
CorySimmons has joined #ruby
06:57
CorySimmons has quit [Max SendQ exceeded]
06:58
CorySimmons has joined #ruby
06:58
RegulationD has joined #ruby
06:59
red_horned_rihno has joined #ruby
07:01
amclain has quit [Quit: Leaving]
07:01
agrinb has quit [Remote host closed the connection]
07:02
agrinb has joined #ruby
07:02
RegulationD has quit [Ping timeout: 246 seconds]
07:03
DerisiveLogic has quit [Remote host closed the connection]
07:03
DerisiveLogic has joined #ruby
07:03
dandaman has quit [Quit: Leaving.]
07:04
sevenseacat has joined #ruby
07:04
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:05
nii2361 has joined #ruby
07:06
agrinb has quit [Ping timeout: 256 seconds]
07:08
a5i has quit [Quit: Connection closed for inactivity]
07:09
pragmatism has joined #ruby
07:09
nii2361 has quit [Ping timeout: 244 seconds]
07:12
mostlybadfly has quit [Quit: Connection closed for inactivity]
07:12
rjo_ has left #ruby [#ruby]
07:13
piotrj has quit [Remote host closed the connection]
07:14
hvxgr has joined #ruby
07:14
User458764 has joined #ruby
07:15
arup_r has joined #ruby
07:20
greenbagels_ has joined #ruby
07:20
DEA7TH has joined #ruby
07:22
mighty_gorilla has joined #ruby
07:22
mighty_gorilla has quit [Client Quit]
07:23
_hollywood has joined #ruby
07:23
DEA7TH has quit [Changing host]
07:23
DEA7TH has joined #ruby
07:23
greenbagels has quit [Ping timeout: 255 seconds]
07:23
TheNet has quit [Quit: Leaving...]
07:24
commmmodo has joined #ruby
07:25
DerisiveLogic has quit [Ping timeout: 264 seconds]
07:27
zachrab has joined #ruby
07:31
mroach has quit [Quit: mroach]
07:31
zachrab has quit [Ping timeout: 240 seconds]
07:31
Qladstone has joined #ruby
07:32
Qladstone has quit [Remote host closed the connection]
07:32
iwaffles has quit [Quit: iwaffles]
07:32
CorySimmons has quit [Quit: Bye!]
07:32
bruno- has joined #ruby
07:33
bruno- is now known as Guest51191
07:33
CorySimmons has joined #ruby
07:34
CorySimmons has quit [Client Quit]
07:35
claw has quit [Ping timeout: 244 seconds]
07:36
yfeldblu_ has joined #ruby
07:36
toretore has joined #ruby
07:37
claw has joined #ruby
07:37
piotrj has joined #ruby
07:37
Guest51191 has quit [Ping timeout: 255 seconds]
07:39
claptor has quit [Quit: this channel is bakas]
07:40
yfeldblum has quit [Ping timeout: 255 seconds]
07:41
Qladstone has joined #ruby
07:42
CorySimmons has joined #ruby
07:42
Hirzu has joined #ruby
07:42
CorySimmons has quit [Max SendQ exceeded]
07:43
CorySimmons has joined #ruby
07:44
CorySimmons has quit [Client Quit]
07:44
piotrj has quit [Remote host closed the connection]
07:47
dfinninger has joined #ruby
07:47
_5kg has quit [Ping timeout: 264 seconds]
07:47
Hirzu has quit [Ping timeout: 252 seconds]
07:47
charliesome has quit [Quit: zzz]
07:47
tearan has quit [Ping timeout: 256 seconds]
07:48
Asher has joined #ruby
07:48
LJT has quit [Quit: Sleeping...]
07:49
nii2361 has joined #ruby
07:49
charliesome has joined #ruby
07:51
dfinninger has quit [Ping timeout: 252 seconds]
07:53
Takle has joined #ruby
07:55
skj3gg has quit [Quit: ZZZzzz…]
07:56
teddyp1cker has joined #ruby
07:58
Takle has quit [Ping timeout: 264 seconds]
07:59
fgo has joined #ruby
07:59
morenoh149 has joined #ruby
08:01
RegulationD has joined #ruby
08:01
pontiki has quit [Quit: nini]
08:02
digitalextremist has joined #ruby
08:03
fgo has quit [Ping timeout: 245 seconds]
08:05
RegulationD has quit [Ping timeout: 245 seconds]
08:07
RegulationD has joined #ruby
08:10
AlexRussia has quit [Ping timeout: 264 seconds]
08:10
mrdtt has joined #ruby
08:11
apeiros_ has quit [Read error: Connection reset by peer]
08:11
RegulationD has quit [Ping timeout: 246 seconds]
08:12
vdamewood has joined #ruby
08:12
apeiros_ has joined #ruby
08:17
Takle has joined #ruby
08:17
piotrj has joined #ruby
08:17
spicymagpie has joined #ruby
08:18
AlexRussia has joined #ruby
08:19
martinbmadsen has joined #ruby
08:20
jcdesimp has quit [Quit: Leaving...]
08:20
wldcordeiro has quit [Ping timeout: 265 seconds]
08:21
lemur has quit [Remote host closed the connection]
08:22
Takle has quit [Ping timeout: 246 seconds]
08:22
ptrrr has joined #ruby
08:22
spicymagpie is now known as SpicyMagpie
08:23
rkgudboy has joined #ruby
08:23
martinbmadsen has quit [Ping timeout: 252 seconds]
08:24
Pupeno has joined #ruby
08:25
apeiros_ has quit [Remote host closed the connection]
08:25
greenbagels_ has quit [Ping timeout: 256 seconds]
08:25
apeiros_ has joined #ruby
08:26
Takle has joined #ruby
08:27
maplesyrup has quit [Quit: WeeChat 1.0]
08:28
green-big-frog is now known as frog|OFF
08:28
grr has joined #ruby
08:29
piotrj has quit [Remote host closed the connection]
08:29
michael_mbp has quit [Excess Flood]
08:29
michael_mbp has joined #ruby
08:29
piotrj has joined #ruby
08:30
apeiros_ has quit [Ping timeout: 250 seconds]
08:30
_5kg has joined #ruby
08:30
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
08:31
oo_ has joined #ruby
08:31
jenrzzz has joined #ruby
08:34
rkgudboy has quit [Ping timeout: 246 seconds]
08:36
toretore has quit [Quit: This computer has gone to sleep]
08:38
jonr22 has joined #ruby
08:40
piotrj has quit [Remote host closed the connection]
08:40
piotrj has joined #ruby
08:40
randiman has joined #ruby
08:41
tkuchiki has joined #ruby
08:43
jonr22 has quit [Ping timeout: 256 seconds]
08:47
agrinb has joined #ruby
08:47
dfinninger has joined #ruby
08:48
steffes has quit [Remote host closed the connection]
08:48
apeiros_ has joined #ruby
08:49
sigurding has joined #ruby
08:49
livingstn has quit []
08:49
commmmodo has quit [Quit: commmmodo]
08:51
agrinb has quit [Ping timeout: 265 seconds]
08:52
dfinninger has quit [Ping timeout: 252 seconds]
08:53
Abhijit_ has joined #ruby
08:54
Abhijit_ is now known as Abhijit
08:55
tag has quit [Changing host]
08:55
tag has joined #ruby
08:55
piotrj has quit [Remote host closed the connection]
08:56
piotrj has joined #ruby
08:57
riotjones has joined #ruby
08:57
digitalextremist has quit [Read error: Connection reset by peer]
08:58
charliesome has quit [Quit: zzz]
09:00
fgo has joined #ruby
09:00
digitalextremist has joined #ruby
09:00
User458764 has joined #ruby
09:02
riotjones has quit [Ping timeout: 246 seconds]
09:02
multi_io_ has joined #ruby
09:04
wicope has joined #ruby
09:04
grr has quit [Read error: Connection reset by peer]
09:04
fgo has quit [Ping timeout: 252 seconds]
09:04
<
shevy >
ruby -run -ehttpd . -p 3000
09:04
<
shevy >
I am confused
09:04
<
shevy >
this is not webrick?
09:05
multi_io has quit [Ping timeout: 252 seconds]
09:05
<
apeiros_ >
shevy: -run = -r un = require 'un'
09:05
<
apeiros_ >
so whatever un.rb defines as `def http`
09:06
<
shevy >
s = WEBrick::HTTPServer.new(options)
09:06
<
shevy >
indeed. it spawns some webrick
09:06
charliesome has joined #ruby
09:08
AlexRussia has quit [Ping timeout: 245 seconds]
09:11
Dolphi has joined #ruby
09:15
AlexRussia has joined #ruby
09:15
zachrab has joined #ruby
09:15
SouL has joined #ruby
09:16
apeiros_ has quit [Read error: Connection reset by peer]
09:16
apeiros_ has joined #ruby
09:17
ndrei has quit [Ping timeout: 245 seconds]
09:17
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
09:18
BTRE has quit [Ping timeout: 246 seconds]
09:19
ndrei has joined #ruby
09:19
bruno- has joined #ruby
09:20
zachrab has quit [Ping timeout: 245 seconds]
09:22
User458764 has joined #ruby
09:25
Hirzu has joined #ruby
09:27
dopiee has joined #ruby
09:29
SouL has quit [Ping timeout: 264 seconds]
09:29
martinbmadsen has joined #ruby
09:30
drPoggs has joined #ruby
09:30
dopie has quit [Ping timeout: 255 seconds]
09:31
BTRE has joined #ruby
09:31
AlexRussia has quit [Ping timeout: 240 seconds]
09:32
bluOxigen has joined #ruby
09:32
teddyp1cker has quit [Remote host closed the connection]
09:34
tkuchiki has quit [Remote host closed the connection]
09:34
martinbmadsen has quit [Ping timeout: 256 seconds]
09:35
_blizzy_ has quit [Quit: Leaving]
09:36
charliesome has quit [Quit: zzz]
09:36
spider-mario has joined #ruby
09:36
piotrj has quit [Remote host closed the connection]
09:37
piotrj has joined #ruby
09:38
piotrj has quit [Remote host closed the connection]
09:38
piotrj has joined #ruby
09:40
grr_ has joined #ruby
09:40
Joufflu has quit [Quit: Peace]
09:40
rkgudboy has joined #ruby
09:41
agrinb has joined #ruby
09:41
Soda has joined #ruby
09:43
blackmesa has joined #ruby
09:44
_Andres has joined #ruby
09:45
agrinb has quit [Ping timeout: 265 seconds]
09:46
sivsushruth has joined #ruby
09:47
dh64 has joined #ruby
09:48
dfinninger has joined #ruby
09:49
nii2361 has quit [Ping timeout: 252 seconds]
09:50
havenn has quit [Remote host closed the connection]
09:51
commmmodo has joined #ruby
09:52
dfinninger has quit [Ping timeout: 240 seconds]
09:56
asmodlol has joined #ruby
09:56
RegulationD has joined #ruby
09:59
<
arup_r >
>> [1,2].reduce :+
09:59
<
arup_r >
cool.. why not ? :(
09:59
<
arup_r >
>> ("a".."z").reduce(&("".method(:<<)))
09:59
riotjones has joined #ruby
09:59
<
arup_r >
>> ("a".."z").reduce(&"".method(:<<))
10:00
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
10:00
<
arup_r >
Ahh! Ruby is so slow to run the bad code.. :p
10:00
RegulationD has quit [Ping timeout: 246 seconds]
10:00
fgo has joined #ruby
10:01
RegulationD has joined #ruby
10:01
_5kg has quit [Ping timeout: 264 seconds]
10:01
lordkryss has joined #ruby
10:01
sivsushruth has quit [Ping timeout: 250 seconds]
10:01
commmmodo has quit [Quit: commmmodo]
10:03
serivich has joined #ruby
10:03
riotjones has quit [Ping timeout: 245 seconds]
10:04
rkgudboy has quit [Ping timeout: 252 seconds]
10:05
RegulationD has quit [Ping timeout: 246 seconds]
10:05
randiman has quit [Quit: (null)]
10:05
fgo has quit [Ping timeout: 250 seconds]
10:06
rkgudboy has joined #ruby
10:07
destructure has quit [Ping timeout: 252 seconds]
10:07
<
hanmac >
>> x="";("a".."z").each(&x.method(:<<)); x
10:07
stormchaser30000 has joined #ruby
10:07
RegulationD has joined #ruby
10:07
charliesome has joined #ruby
10:08
<
godd2 >
>> [*"a".."z"].join
10:08
apeiros_ has quit []
10:11
sinkensabe has joined #ruby
10:11
RegulationD has quit [Ping timeout: 244 seconds]
10:11
Stalkr_ has joined #ruby
10:14
mikecmpbll has joined #ruby
10:14
rkgudboy has quit [Ping timeout: 256 seconds]
10:15
sinkensabe has quit [Ping timeout: 240 seconds]
10:16
grr_ has quit [Remote host closed the connection]
10:17
kadoppe has joined #ruby
10:20
oki has joined #ruby
10:22
teddyp1cker has joined #ruby
10:24
The_Phoenix has joined #ruby
10:25
OrbitalKitten has joined #ruby
10:25
frog|OFF is now known as green-big-frog
10:25
SpicyMagpie has quit [Ping timeout: 255 seconds]
10:25
steffes has joined #ruby
10:26
kadoppe has quit [Quit: WeeChat 0.4.3]
10:26
martinbmadsen has joined #ruby
10:26
OrbitalKitten has quit [Client Quit]
10:27
jonr22 has joined #ruby
10:31
steffes has quit [Ping timeout: 264 seconds]
10:31
martinbmadsen has quit [Ping timeout: 264 seconds]
10:31
jonr22 has quit [Ping timeout: 252 seconds]
10:32
<
shevy >
hanmac codes in smileys
10:32
Abhijit has quit [Quit: Bye.]
10:34
steffes has joined #ruby
10:34
AlexRussia has joined #ruby
10:34
buub has joined #ruby
10:35
blueOxigen has joined #ruby
10:35
agrinb has joined #ruby
10:36
serivich has quit [Ping timeout: 252 seconds]
10:38
bluOxigen has quit [Ping timeout: 252 seconds]
10:38
steffes has quit [Ping timeout: 250 seconds]
10:39
tobacco_joe has joined #ruby
10:40
agrinb has quit [Ping timeout: 265 seconds]
10:41
teddyp1cker has quit [Remote host closed the connection]
10:42
teddyp1cker has joined #ruby
10:43
dj_zubehoer has joined #ruby
10:43
OrbitalKitten has joined #ruby
10:44
AlexRussia has quit [Ping timeout: 246 seconds]
10:45
_5kg has joined #ruby
10:45
sigurding has quit [Quit: sigurding]
10:46
keen__________82 has joined #ruby
10:46
teddyp1cker has quit [Ping timeout: 256 seconds]
10:48
keen__________81 has quit [Ping timeout: 264 seconds]
10:49
dfinninger has joined #ruby
10:49
AlexRussia has joined #ruby
10:49
alvaro_o_ has joined #ruby
10:49
sivsushruth has joined #ruby
10:49
Stalkr_ has quit [Quit: Leaving...]
10:50
alvaro_o_ has quit [Client Quit]
10:51
Soda has quit [Remote host closed the connection]
10:52
rikai has quit [Ping timeout: 264 seconds]
10:53
User458764 has joined #ruby
10:53
dfinninger has quit [Ping timeout: 244 seconds]
10:59
chipotle has quit [Quit: cheerio]
11:00
LJT has joined #ruby
11:03
plashchynski has joined #ruby
11:04
zachrab has joined #ruby
11:06
plashchynski has quit [Client Quit]
11:06
sigurding has joined #ruby
11:06
Qladstone has quit [Remote host closed the connection]
11:09
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
11:09
zachrab has quit [Ping timeout: 240 seconds]
11:09
Mia has joined #ruby
11:09
Mia has quit [Changing host]
11:09
Mia has joined #ruby
11:11
Axy has quit [Ping timeout: 244 seconds]
11:11
BuGo has quit [Quit: Lost terminal]
11:13
Takumo has joined #ruby
11:13
Takumo has quit [Changing host]
11:13
Takumo has joined #ruby
11:15
zapata has joined #ruby
11:16
justin_pdx has joined #ruby
11:16
justin_pdx has quit [Client Quit]
11:16
sigurding has quit [Quit: sigurding]
11:17
User458764 has joined #ruby
11:18
ragingcake_ has joined #ruby
11:19
hs366 has joined #ruby
11:19
Dolphi has quit [Ping timeout: 272 seconds]
11:20
ValicekB has quit [Ping timeout: 240 seconds]
11:22
xrlabs has quit [Ping timeout: 264 seconds]
11:23
postmodern has quit [Quit: Leaving]
11:24
fgo has joined #ruby
11:25
sevenseacat has quit [Ping timeout: 256 seconds]
11:26
rikai has joined #ruby
11:28
rikai has quit [Remote host closed the connection]
11:28
mikecmpbll has quit [Read error: Connection reset by peer]
11:28
rikai has joined #ruby
11:28
ValicekB has joined #ruby
11:28
sevenseacat has joined #ruby
11:28
mikecmpbll has joined #ruby
11:29
agrinb has joined #ruby
11:31
<
tobacco_joe >
does anyone have experience with dnsruby and dynamic dns updates?
11:31
thebastl has joined #ruby
11:31
<
tobacco_joe >
it seems like dnsruby isn't signing my queries
11:32
asmodlol has quit [Ping timeout: 246 seconds]
11:33
xrlabs has joined #ruby
11:33
pandaant has joined #ruby
11:34
agrinb has quit [Ping timeout: 265 seconds]
11:34
asmodlol has joined #ruby
11:35
phale has joined #ruby
11:38
<
mhenrixon >
So 2.2.1 is broken on ubuntu 14.04?
11:38
mikecmpbll has quit [Read error: Connection reset by peer]
11:39
mikecmpbll has joined #ruby
11:40
<
phale >
mhenrixon: ubuntu is broken
11:41
fgo has quit [Ping timeout: 245 seconds]
11:42
<
phale >
mhenrixon: your issue is rejected
11:42
<
phale >
try Revision 49017
11:42
Hirzu has quit [Remote host closed the connection]
11:42
mikecmpbll has quit [Read error: Connection reset by peer]
11:43
<
phale >
well that's what you get for using ubuntu
11:43
<
phale >
i am unable to help you
11:43
<
phale >
you can probably talk on #ubuntu, they'll know what to do
11:43
oki has quit [Ping timeout: 250 seconds]
11:43
mikecmpbll has joined #ruby
11:45
m8 has joined #ruby
11:48
<
shevy >
mhenrixon does ubuntu have 2.2.1?
11:49
riotjones has joined #ruby
11:49
<
mhenrixon >
shevy using rbenv
11:49
<
mhenrixon >
and ruby build
11:49
Rephiax has quit []
11:49
<
shevy >
ok so it has nothing to do with ubuntu
11:49
Qladstone has joined #ruby
11:49
dfinninger has joined #ruby
11:50
<
shevy >
I am using ruby 2.2.1p85 (2015-02-26 revision 49769) [i686-linux]
11:50
<
shevy >
the bug report you showed, that's for windows or? [x64-mswin64_120]
11:52
<
phale >
i'm not sure if that's a typo or someone literally gets that
11:53
<
shevy >
that is a typo
11:53
steffes has joined #ruby
11:53
<
shevy >
tool/rbinstall.rb
11:53
riotjones has quit [Ping timeout: 264 seconds]
11:53
thebastl has quit [Read error: Connection reset by peer]
11:54
<
shevy >
on line 714 haha
11:54
<
shevy >
my ruby also has this error :D
11:54
dfinninger has quit [Ping timeout: 245 seconds]
11:54
_hollywood has quit [Quit: Leaving]
11:55
thebastl has joined #ruby
11:55
kadoppe has joined #ruby
11:56
RegulationD has joined #ruby
11:57
asmodlol has quit [Ping timeout: 272 seconds]
11:58
steffes has quit [Ping timeout: 250 seconds]
11:58
asmodlol has joined #ruby
11:58
digitalextremist has quit [Ping timeout: 250 seconds]
12:00
aspiers has quit [Ping timeout: 265 seconds]
12:00
iml has quit [Quit: Connection closed for inactivity]
12:00
RegulationD has quit [Ping timeout: 245 seconds]
12:00
corehook has joined #ruby
12:00
<
phale >
hello a C programmer is fighting me
12:01
<
phale >
what do I do
12:01
art-solopov has joined #ruby
12:01
RegulationD has joined #ruby
12:01
<
jhass >
phale: fighting in what way?
12:01
<
atmosx >
phale: ask him to write a web application, without memormy leaks for once.
12:01
RandyT has quit [Ping timeout: 272 seconds]
12:01
<
phale >
jhass: he's telling me that i haven't done any real programming and that ruby programmers also don't do real programming
12:02
<
phale >
apparently we like to talk about "penis"
12:02
<
phale >
im not joking
12:02
<
phale >
13:00 < zyxwvuts> that's because you'd rather bitch all day about which language you perceive to have a larger penis, than do any actual programming
12:02
multi_io_ is now known as multi_io
12:03
<
atmosx >
phale: okay that's a real life advice, don't lose time with idiots.
12:03
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
12:03
<
atmosx >
phale: they are nearly infinite and can be found everywhere online. He could be trolling you though, I do that all too often online (when time permits and moods are properly adjusted).
12:04
_hollywood has joined #ruby
12:04
<
phale >
i thought he was serious
12:04
<
jhass >
that's your only fault
12:04
<
atmosx >
at #css everyone is dead apparently
12:05
<
shevy >
phale tell him to come here!
12:05
plashchynski has joined #ruby
12:05
RegulationD has quit [Ping timeout: 245 seconds]
12:05
Jackneill has joined #ruby
12:05
Qladstone has quit []
12:06
<
jhass >
atmosx: we're not in #css and I can't be bothered to clone that gist :P
12:06
zyxwvuts has joined #ruby
12:06
last_staff has joined #ruby
12:06
<
atmosx >
clone? ah no, I hoped you'd be able to read the code and spot a possible fix on the fly :-P
12:06
<
atmosx >
anyway I'll continue trial-and-error.
12:07
<
jhass >
way too backend oriented, I can figure that stuff out with the dev tools usually, but it's not my daily bread & butter ;)
12:07
RegulationD has joined #ruby
12:09
<
atmosx >
jhass: well, I don't like it either and it's become more and more demanding to make something that doesn't suck in css/html.
12:09
<
atmosx >
I was going to make this app in meteor but I don't have time :-( ... I need something working by the end of the day and the hardest part is the CSS lol. Anywya... bbl
12:10
FooMunki_ has joined #ruby
12:10
<
atmosx >
jhass: hmm looks cool
12:10
zyxwvuts has left #ruby [#ruby]
12:12
RegulationD has quit [Ping timeout: 265 seconds]
12:12
sinkensabe has joined #ruby
12:14
<
atmosx >
hanmac: found-it
12:14
ypasmk has joined #ruby
12:15
<
atmosx >
hm, but I'm not sure what's the proper way to handle this there's a margin-bottom: 1px; property inherited. If I zero this in the custom.css it doesn't work.
12:15
<
atmosx >
hm maybe hard-coded to haml
12:15
* atmosx
goes to try
12:15
<
atmosx >
hanmac: cool gif btw.
12:15
jonr22 has joined #ruby
12:16
oo_ has quit [Remote host closed the connection]
12:16
<
atmosx >
okay I made it.
12:16
* atmosx
is a ninja.
12:17
sinkensabe has quit [Ping timeout: 255 seconds]
12:17
<
phale >
zyxwvuts said if you want to talk to him you gotta come on his channel
12:17
<
jhass >
atmosx: you know CSS specificity?
12:17
<
jhass >
very useful
12:17
<
atmosx >
jhass: I know it's a mess actually.
12:18
nii2361 has joined #ruby
12:19
stef204 has joined #ruby
12:19
ragingcake_ has quit [Quit: ragingcake_]
12:20
jonr22 has quit [Ping timeout: 246 seconds]
12:21
* atmosx
sting - shape of my heart
12:21
fgo has joined #ruby
12:23
mostlybadfly has joined #ruby
12:23
agrinb has joined #ruby
12:24
Darryl___ has joined #ruby
12:24
nii2361 has quit [Ping timeout: 250 seconds]
12:25
ypasmk has quit [Quit: ypasmk]
12:27
serivich has joined #ruby
12:28
agrinb has quit [Ping timeout: 246 seconds]
12:29
mattwildig has joined #ruby
12:34
Timba-as has joined #ruby
12:35
sivsushruth has quit [Read error: Connection reset by peer]
12:35
sivsushruth has joined #ruby
12:36
User458764 has joined #ruby
12:36
_cake has joined #ruby
12:37
yfeldblu_ has quit [Ping timeout: 256 seconds]
12:37
maximski has joined #ruby
12:37
<
shevy >
phale why would I want to talk to him, he should come here
12:38
<
phale >
then he left
12:38
pork_clips has quit [Ping timeout: 264 seconds]
12:38
maximski has quit [Max SendQ exceeded]
12:38
<
shevy >
aha. I don't have channel time stamps nor do I see who joins or left, I only see people who are chatting
12:38
<
shevy >
and I wasn't before my computer for a while!
12:39
<
shevy >
phale did you improve on your gem?
12:39
maximski has joined #ruby
12:39
<
phale >
i removed the examples
12:39
<
shevy >
time to move to your second gem
12:39
<
phale >
they were too long
12:39
<
phale >
it made my code roughly 59 lines for no reason
12:39
<
shevy >
we call that a "regression"
12:40
ragingcake has joined #ruby
12:40
Deele has joined #ruby
12:41
sankaber has joined #ruby
12:42
teddyp1cker has joined #ruby
12:42
Hirzu has joined #ruby
12:44
sivsushruth has quit [Ping timeout: 256 seconds]
12:44
red_horned_rihno has quit [Remote host closed the connection]
12:45
sivsushruth has joined #ruby
12:45
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
12:45
kirun has joined #ruby
12:46
mattwildig has quit []
12:46
<
shevy >
well move to another project
12:46
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
12:46
<
shevy >
phale which one will it be?
12:46
<
phale >
i have no idea
12:46
roolo has joined #ruby
12:47
<
phale >
reddit API thing
12:47
teddyp1cker has quit [Ping timeout: 252 seconds]
12:47
Hirzu has quit [Ping timeout: 240 seconds]
12:48
[gmi] has joined #ruby
12:50
BLuEGoD has joined #ruby
12:50
dfinninger has joined #ruby
12:53
zachrab has joined #ruby
12:54
sivsushruth has quit [Ping timeout: 252 seconds]
12:54
sivsushruth has joined #ruby
12:54
Feyn has quit [Quit: Leaving]
12:55
dfinninger has quit [Ping timeout: 264 seconds]
12:55
nfk has joined #ruby
12:55
devFrederick has quit [Ping timeout: 246 seconds]
12:57
zachrab has quit [Ping timeout: 246 seconds]
12:59
sivsushruth has quit [Ping timeout: 256 seconds]
12:59
sivsushruth has joined #ruby
13:00
tokik has quit [Ping timeout: 244 seconds]
13:01
tokik has joined #ruby
13:01
User458764 has joined #ruby
13:01
justinweiss has quit [Quit: WeeChat 0.4.2]
13:03
dj_zubehoer has quit [Remote host closed the connection]
13:03
dj_zubehoer has joined #ruby
13:04
dj_zubehoer has quit [Remote host closed the connection]
13:04
blackmesa has quit [Ping timeout: 245 seconds]
13:06
thebastl has quit [Remote host closed the connection]
13:09
leslie has joined #ruby
13:09
leslie has joined #ruby
13:10
yvemath has joined #ruby
13:11
plashchynski has quit [Quit: plashchynski]
13:11
sivsushruth has quit [Ping timeout: 264 seconds]
13:11
plashchynski has joined #ruby
13:12
sivsushruth has joined #ruby
13:12
caveat- has joined #ruby
13:13
sinkensabe has joined #ruby
13:15
jenrzzz has quit [Ping timeout: 240 seconds]
13:16
alexherbo2 has quit [Quit: WeeChat 1.1.1]
13:16
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
13:16
sivsushruth has quit [Ping timeout: 264 seconds]
13:16
alexherbo2 has joined #ruby
13:17
alexherbo2 has quit [Client Quit]
13:17
alexherbo2 has joined #ruby
13:17
sivsushruth has joined #ruby
13:17
agrinb has joined #ruby
13:17
oo_ has joined #ruby
13:18
sinkensabe has quit [Ping timeout: 250 seconds]
13:20
Megtastique has joined #ruby
13:20
steffes has joined #ruby
13:21
jottr has joined #ruby
13:22
agrinb has quit [Ping timeout: 265 seconds]
13:23
Aswebb_ has joined #ruby
13:23
oo_ has quit [Ping timeout: 246 seconds]
13:25
steffes has quit [Ping timeout: 252 seconds]
13:28
sivsushruth has quit [Ping timeout: 250 seconds]
13:28
codecop has joined #ruby
13:29
sivsushruth has joined #ruby
13:31
Sirupsen has joined #ruby
13:32
asmodlol has quit [Ping timeout: 245 seconds]
13:33
sivsushruth has quit [Ping timeout: 256 seconds]
13:34
FooMunki_ has quit [Quit: FooMunki_]
13:34
corehook_ has joined #ruby
13:34
sivsushruth has joined #ruby
13:35
asmodlol has joined #ruby
13:35
corehook has quit [Ping timeout: 245 seconds]
13:37
corehook has joined #ruby
13:37
CustosLimen has joined #ruby
13:39
User458764 has joined #ruby
13:39
agrinb has joined #ruby
13:40
lkba has joined #ruby
13:40
blackmesa has joined #ruby
13:40
corehook_ has quit [Ping timeout: 245 seconds]
13:40
FooMunki_ has joined #ruby
13:41
RandyT has joined #ruby
13:41
pontiki has joined #ruby
13:44
agrinb has quit [Ping timeout: 265 seconds]
13:44
<
pontiki >
up up and away
13:44
Hirzu has joined #ruby
13:44
morenoh149 has quit [Ping timeout: 240 seconds]
13:45
sdothum has joined #ruby
13:49
Hirzu has quit [Ping timeout: 250 seconds]
13:49
davidhq has joined #ruby
13:50
last_staff has quit [Quit: last_staff]
13:50
blackmesa has quit [Ping timeout: 246 seconds]
13:51
<
phale >
what is a toy programming language?
13:51
dfinninger has joined #ruby
13:51
green-big-frog is now known as frog|OFF
13:51
<
phale >
my friend says anything with OOP is a toy
13:51
<
shevy >
something you can have fun with while coding
13:52
<
shevy >
yeah your java buddy is a real stinker
13:52
<
phale >
it's zyxwvuts..
13:52
doodlehaus has joined #ruby
13:53
<
phale >
shevy: I want to extend the string class
13:53
<
phale >
how do I do that
13:53
<
phale >
just to add a few methods
13:53
<
shevy >
didn't you write your own class already
13:53
<
shevy >
so you must know how you can extend something
13:53
<
shevy >
^^^ there you go. you extended class Foo
13:53
<
shevy >
and it's the same with class String too
13:54
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:54
<
shevy >
I am watching a lecture about soil chemistry... this is so boring :(
13:54
apeiros_ has joined #ruby
13:55
dtordable has joined #ruby
13:55
<
phale >
"".method_call
13:55
<
phale >
how do I get the ""
13:55
<
jhass >
phale: have a very good reason to include core extensions into a gem though, consider having a helper instead
13:55
bluOxigen has joined #ruby
13:55
dfinninger has quit [Ping timeout: 264 seconds]
13:56
<
jhass >
note you only need for for things like String#[] though
13:56
RegulationD has joined #ruby
13:56
<
shevy >
for for four things
13:56
<
shevy >
you can also use replace() inside class String
13:57
kith has quit [Ping timeout: 246 seconds]
13:57
<
shevy >
>> class String; def yo; replace '42'; end; end; x = 'abc'; x.yo;x
13:57
blueOxigen has quit [Ping timeout: 244 seconds]
13:57
<
phale >
if you want to know what i'm making
13:58
<
phale >
it's a palindrome library
13:58
<
phale >
self.reverse == self
13:58
asmodlol has quit [Ping timeout: 255 seconds]
13:58
<
shevy >
find all palindromes
13:58
<
shevy >
ATCTAGATTACATAGGCCAAAACCGATAGACCCA
13:59
<
shevy >
TAGATCTAATGTATCCGGTTTTGGCTATCTGGGT
13:59
<
phale >
could make that too yeah
13:59
<
shevy >
transcription factors that bind to DNA are usually palindromic
14:00
JStoker has quit [Remote host closed the connection]
14:00
scpike has quit [Remote host closed the connection]
14:00
<
phale >
my program will create palindromes
14:00
RegulationD has quit [Ping timeout: 244 seconds]
14:01
otisZart has joined #ruby
14:01
RegulationD has joined #ruby
14:01
asmodlol has joined #ruby
14:02
dtordable has quit [Ping timeout: 256 seconds]
14:03
dtordable has joined #ruby
14:03
jottr has quit [Ping timeout: 255 seconds]
14:04
lolmaus has quit [Quit: Konversation terminated!]
14:04
<
pontiki >
radiation-hardened palindromic quines?
14:04
dj_zubehoer has joined #ruby
14:04
Takle has quit [Remote host closed the connection]
14:05
jonr22 has joined #ruby
14:05
RegulationD has quit [Ping timeout: 244 seconds]
14:06
serivichi has joined #ruby
14:06
<
phale >
a butt tuba
14:07
RegulationD has joined #ruby
14:07
<
pontiki >
someone is have too much fun with their vuvuzela?
14:08
serivich has quit [Ping timeout: 246 seconds]
14:09
dj_zubehoer has quit [Ping timeout: 246 seconds]
14:09
jonr22 has quit [Ping timeout: 246 seconds]
14:11
RegulationD has quit [Ping timeout: 246 seconds]
14:12
<
phale >
how do i generate palindromes
14:12
asmodlol has quit [Ping timeout: 256 seconds]
14:12
<
jhass >
s << s.reverse
14:12
maximski has quit []
14:14
sinkensabe has joined #ruby
14:14
jonr22 has joined #ruby
14:15
asmodlol has joined #ruby
14:15
<
jhass >
it's wrong?
14:15
<
phale >
i meant something like with a level of difficulty
14:15
<
phale >
could add a d at the end and it would be a palindrome
14:16
<
jhass >
!g generating palindrome
14:16
<
jhass >
there probably are some linguists papers or so
14:17
sivsushruth has quit [Ping timeout: 256 seconds]
14:17
sivsushruth has joined #ruby
14:17
Alex-xd has joined #ruby
14:17
<
Alex-xd >
-d- I Like the Shit┌∩┐(◣_◢)┌∩┐
14:18
<
jhass >
Alex-xd: how's your ruby?
14:18
sinkensabe has quit [Ping timeout: 244 seconds]
14:18
<
shevy >
helpa can be used as a google aid
14:18
<
shevy >
!g ruby rules
14:18
<
phale >
his message shows as question marks for me
14:18
<
shevy >
he uses some unicode I bet
14:19
<
jhass >
phale: need a better font then ;)
14:20
JStoker has joined #ruby
14:21
oo_ has joined #ruby
14:23
Takle has joined #ruby
14:24
rbennacer has joined #ruby
14:24
stef204 has quit [Ping timeout: 252 seconds]
14:24
mikecmpbll has quit [Quit: i've nodded off.]
14:25
oo_ has quit [Ping timeout: 252 seconds]
14:28
sevenseacat has quit [Remote host closed the connection]
14:29
davedev24_ has joined #ruby
14:29
<
phale >
i just realized that vim can edit websites too
14:29
IrishGringo has joined #ruby
14:30
dtordable has quit [Ping timeout: 250 seconds]
14:30
Stalkr_ has joined #ruby
14:30
sivsushruth has quit [Ping timeout: 246 seconds]
14:30
sivsushruth has joined #ruby
14:31
dtordable has joined #ruby
14:33
agrinb has joined #ruby
14:34
<
phale >
any way to include all methods from a class?
14:34
<
phale >
in another class
14:34
<
shevy >
phale that's what modules are for
14:35
<
shevy >
another way is to subclass
14:35
sivsushruth has quit [Ping timeout: 264 seconds]
14:36
Zai00 has joined #ruby
14:36
<
phale >
how do i subclass
14:36
sivsushruth has joined #ruby
14:36
<
jhass >
phale: did you go through a basic ruby tutorial yet?
14:37
<
jhass >
anything more broad than tryruby.org will cover that
14:37
<
jhass >
most certainly has a chapter about it
14:38
agrinb has quit [Ping timeout: 256 seconds]
14:38
asmodlol has quit [Ping timeout: 264 seconds]
14:39
jottr has joined #ruby
14:39
<
jhass >
we can give you the terms to look up (like mixins, subclasses, inheritance in this case), and we happily answer specific questions and look at edge cases with you, but we're not your personal tutors
14:39
xcesariox has joined #ruby
14:39
bradland has joined #ruby
14:39
asmodlol has joined #ruby
14:41
zachrab has joined #ruby
14:43
jottr has quit [Ping timeout: 240 seconds]
14:43
boshhead has joined #ruby
14:43
teddyp1cker has joined #ruby
14:43
sivsushruth has quit [Ping timeout: 256 seconds]
14:44
sivsushruth has joined #ruby
14:44
kaspergrubbe has joined #ruby
14:46
zachrab has quit [Ping timeout: 244 seconds]
14:46
davedev2_ has joined #ruby
14:47
steffes has joined #ruby
14:47
Zesty has joined #ruby
14:48
teddyp1cker has quit [Ping timeout: 245 seconds]
14:48
davedev24_ has quit [Ping timeout: 264 seconds]
14:48
jottr has joined #ruby
14:48
sivsushruth has quit [Ping timeout: 256 seconds]
14:49
sivsushruth has joined #ruby
14:49
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
14:51
enebo has joined #ruby
14:51
asmodlol has quit [Ping timeout: 272 seconds]
14:51
steffes has quit [Ping timeout: 246 seconds]
14:52
dfinninger has joined #ruby
14:53
asmodlol has joined #ruby
14:53
rbennacer has quit [Remote host closed the connection]
14:53
sivsushruth has quit [Ping timeout: 256 seconds]
14:54
sivsushruth has joined #ruby
14:55
stef204 has joined #ruby
14:55
corehook has quit []
14:55
fgo has quit [Ping timeout: 252 seconds]
14:55
centrx has joined #ruby
14:56
plashchynski has quit [Quit: plashchynski]
14:57
dfinninger has quit [Ping timeout: 272 seconds]
14:57
teddyp1cker has joined #ruby
14:57
Takle has quit [Remote host closed the connection]
14:58
plashchynski has joined #ruby
14:58
nii2361 has joined #ruby
14:58
tgunr has joined #ruby
14:58
lxsameer has quit [Quit: Leaving]
15:00
Stalkr_ has quit [Quit: Leaving...]
15:00
peterhu has quit [Quit: Lost terminal]
15:02
Takle has joined #ruby
15:02
matrixfox has quit [Remote host closed the connection]
15:02
Tarential has quit [Quit: Terminated with extreme prejudice - dircproxy 1.0.5]
15:03
Takle has quit [Remote host closed the connection]
15:03
sankaber has joined #ruby
15:04
<
shevy >
phale class Foo; end; class Bar < Foo; end
15:04
<
shevy >
phale if you wish to also call some method in the parent class but also your subclass, then you can use super() or super(arguments_here)
15:04
Darryl___ has quit [Quit: Connection closed for inactivity]
15:05
<
shevy >
phale but use a module, it's simpler
15:05
geefolk has joined #ruby
15:05
<
shevy >
>> module Foo; def yo; puts 'yo'; end; end; class Bar; include Foo; end; Bar.new.yo
15:06
crodas has quit [Ping timeout: 272 seconds]
15:08
nii2361 has quit [Ping timeout: 256 seconds]
15:10
t_p has joined #ruby
15:11
rbennacer has joined #ruby
15:11
<
bradland >
needs moar factory
15:11
teddyp1cker has quit [Remote host closed the connection]
15:11
serivichi has quit [Ping timeout: 255 seconds]
15:11
<
phale >
i'm now going to parse BMP
15:11
<
phale >
then later i'll parse JPG, PNG, Tiff, Exif
15:12
User458764 has joined #ruby
15:12
<
jhass >
see ya next year then
15:14
<
phale >
but it's easy to parse BMP
15:14
<
bradland >
the older the format, the more likely you are to have to deal with cruft
15:15
<
phale >
PPM was easy though
15:15
<
phale >
and im not sure if it's old
15:15
<
bradland >
cruft is the accumulation of hacks and workarounds for the iterative change of formats over time
15:15
* jhass
remembers the PSP was hacked once through it's tiff library
15:15
<
bradland >
the number of times a format has been forced to iterate is relavant as well
15:16
<
phale >
so it's immensely hard?
15:16
<
phale >
it will take me 9 years to parse one format?
15:16
<
bradland >
is uint32 the same as unsigned long in C?
15:16
<
bradland >
phale: you should definitely give it a shot
15:16
<
bradland >
always try hard problems
15:16
<
bradland >
just to see what you get in to
15:17
<
phale >
i bet jpg is easier than bmp
15:17
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:17
pontiki has quit [Ping timeout: 272 seconds]
15:18
<
bradland >
thx jhass
15:18
<
phale >
The C++ standard does not specify the size of integral types in bytes, but it specifies minimum ranges they must be able to hold.
15:18
<
phale >
yeah have fun with that
15:18
<
bradland >
yep, there it is: 4294967295 (unsigned long), 2^32
15:19
Azure has quit [Quit: My MBP went to sleep.]
15:19
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:19
<
bradland >
i'm not actually writing C. i'm looking for the C data type with a boundary at 4294967295.
15:19
<
phale >
you need to make your own one then
15:20
<
bradland >
what are you talking about?
15:21
<
bradland >
the upper bound of unsigned long is exactly the range i'm looking for.
15:22
<
bradland >
also, i'm talking about C, not C++
15:23
sivsushruth has quit [Ping timeout: 245 seconds]
15:23
thebastl has joined #ruby
15:24
<
phale >
i've coded in C for 5 years
15:24
<
phale >
i know what im talking about
15:25
<
bradland >
what's the upper boundary of unsigned long?
15:26
<
phale >
i have no idea
15:27
dangerousdave has joined #ruby
15:27
<
jhass >
great show off of five years C experience
15:27
<
bradland >
that makes no sense to me
15:27
<
jhass >
I posted a linked, and you quoted from it, that explains it
15:27
agrinb has joined #ruby
15:27
<
bradland >
yeah, thanks jhass. i'm just a little annoyed that phale keeps interjecting.
15:28
<
bradland >
i'll leave it alone. what you posted has the info i need.
15:28
<
jhass >
was talking to phale :)
15:28
pontiki has joined #ruby
15:28
teddyp1cker has joined #ruby
15:28
lyuben_ has joined #ruby
15:30
CorySimmons has joined #ruby
15:31
grr has joined #ruby
15:31
<
phale >
if you dont believe me
15:32
<
bradland >
phale, what are you even asserting?
15:32
<
jhass >
I don't follow what that should prove either
15:32
<
phale >
My immense knowledge!
15:32
doodlehaus has quit [Remote host closed the connection]
15:32
agrinb has quit [Ping timeout: 265 seconds]
15:32
Alex-xd has quit []
15:32
<
bradland >
are you asserting that the upper boundary of unsigned long is not 4294967295?
15:33
<
bradland >
i get it that they don't specify in bytes
15:33
n80 has joined #ruby
15:33
art-solopov has quit [Quit: Konversation terminated!]
15:33
<
bradland >
then what?
15:33
<
phale >
I am knowledgable of C:
15:33
mistermocha has joined #ruby
15:33
<
phale >
Under no conduct I will be licensed GPLv2
15:33
<
bradland >
fantastic, thanks
15:33
<
phale >
afk im programming
15:35
sivsushruth has joined #ruby
15:35
<
jhass >
I don't follow what that should prove either
15:36
<
phale >
Don't worry.
15:36
leafybasil has quit [Read error: Connection reset by peer]
15:36
<
bradland >
well, the next time i need to know who is knowledgable in C, i'll have an answer to that one.
15:37
leafybasil has joined #ruby
15:37
<
jhass >
bradland: it doesn't work over the internet, didn't anybody tell you yet!
15:37
<
bradland >
lacks webscale!
15:37
<
phale >
How do I convert this: \xDA#
15:38
<
phale >
into regular characters
15:38
<
jhass >
not valid ruby
15:39
iamjarvo has joined #ruby
15:39
<
jhass >
also remember space not enter
15:40
teddyp1cker has quit [Remote host closed the connection]
15:40
Aswebb_ has quit []
15:40
<
jhass >
which character would \xDA be?
15:40
<
jhass >
# is already one
15:40
zata_kyle has joined #ruby
15:41
<
phale >
I don't know. I just got it from binary file parsing.
15:41
<
phale >
According to the BMP specification it's the size of the file in bytes.
15:41
<
jhass >
since when is a size represented in ASCII (or whatever encoding) characters?
15:41
<
phale >
I don't know.
15:42
<
phale >
It says the size in bytes is 4. So I sliced it to 2, 2
15:42
<
phale >
unless that's wrong
15:42
<
jhass >
I don't think it quite says that
15:42
<
bradland >
\xDA is a hexadecimal value, which is just a quantity/number. "character" implies mapping number to a character table.
15:43
cazrin has joined #ruby
15:43
zata_kyle has quit [Quit: Leaving]
15:43
<
jhass >
maybe it says something like "the first four bytes represent the size"?
15:46
<
phale >
the size in bytes is 4
15:46
<
phale >
not the first four bytes, the first four bytes after bfType
15:46
sivsushruth has quit [Ping timeout: 256 seconds]
15:47
sivsushruth has joined #ruby
15:47
<
jhass >
well, therefore "something like"
15:47
zata has joined #ruby
15:47
<
jhass >
how many bits is that phale?
15:47
<
jhass >
how many bits is that
15:47
<
phale >
okay so we know a byte is 8 bits
15:48
<
phale >
I've used it before :(
15:48
<
jhass >
well, you copy pasted it from somebody who gave the right incarnation to you
15:48
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:48
teddyp1cker has joined #ruby
15:49
<
jhass >
I'm asking you to come up with what you need yourself here
15:49
<
jhass >
I already gave you a big hint by letting you calculate the size of the number that represents the data length
15:50
grr has quit [Remote host closed the connection]
15:50
claptor has joined #ruby
15:52
CorySimmons has quit [Quit: Bye!]
15:52
fgo has joined #ruby
15:53
dfinninger has joined #ruby
15:53
zata has left #ruby [#ruby]
15:53
nicolastarzia has joined #ruby
15:54
zata has joined #ruby
15:55
spider-mario has quit [Read error: Connection reset by peer]
15:56
RegulationD has joined #ruby
15:56
odigity has quit [Ping timeout: 265 seconds]
15:56
<
shevy >
bradland I think I managed to simplify the regex
15:56
fgo has quit [Ping timeout: 245 seconds]
15:57
dfinninger has quit [Ping timeout: 256 seconds]
15:57
decoponio has joined #ruby
15:57
grr_ has joined #ruby
15:57
millerti has quit [Read error: Connection reset by peer]
15:58
<
shevy >
I am sure it can be made shorter but I am happy that the test data I had works
15:58
<
phale >
"darko drum 12"
15:58
<
phale >
is this part of a BMP file?
15:58
<
zata >
has anyone tried to use the new graylog 1.0 to save rails logs?
15:58
<
bradland >
shevy: impressive dude. i'm amazed you managed to match all these cases.
15:58
<
shevy >
I actually started from scratch
15:59
<
shevy >
I started with one, then added the next one
15:59
teddyp1cker has quit [Remote host closed the connection]
15:59
<
shevy >
very annoying was "xf86-input-elographics-1.4.1"
15:59
<
bradland >
this regex looks pretty brittle though
15:59
Rodya_ has joined #ruby
15:59
geefolk has quit [Quit: Leaving]
16:00
n80 has quit [Quit: n80]
16:00
<
shevy >
I think years ago I saw Gem do something related to versioned names
16:00
<
bradland >
why _{0,1} followed by [_a-z]* ?
16:00
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
16:00
<
bradland >
seems redundant
16:00
User458764 has joined #ruby
16:00
<
bradland >
oh, i see
16:00
RegulationD has quit [Ping timeout: 252 seconds]
16:00
<
phale >
shevy: I'm adding BMP to my imageparser :)
16:00
<
bradland >
no, you can't get rid of it, because it changes the pattern
16:01
<
shevy >
those _ and - and \d all mixed up wildly is so annoying
16:01
<
phale >
I added a new class, that kinda extends ImageParser
16:01
RegulationD has joined #ruby
16:01
Channel6 has joined #ruby
16:01
<
shevy >
now you only need to add documentation
16:01
<
phale >
it is documented
16:01
<
phale >
here and there
16:01
<
bradland >
shevy: IMO, you're going to want to make this thing do a kind of CRC check
16:01
zata has quit [Quit: Leaving]
16:01
mistermocha has quit [Remote host closed the connection]
16:01
<
shevy >
bradland I did! my brain did!
16:01
<
bradland >
for each record, assemble your match groups and make sure it matches the input string
16:01
<
shevy >
and it failed :(
16:02
<
shevy >
see, the biggest thing I actually learned was
16:02
<
phale >
shevy: is [2, 2] a slice of 4 bytes?
16:02
<
shevy >
{0,1} is equal to * right?
16:02
<
shevy >
phale what is this. [] is a method call
16:02
<
bradland >
not exactly
16:02
<
phale >
String[2, 2]
16:03
<
bradland >
it's equivalent to {0,} shevy
16:03
<
bradland >
zero or more
16:03
<
shevy >
>> "phale please learn basic ruby"[2,2]
16:03
<
shevy >
bradland ah yes
16:03
zata has joined #ruby
16:03
<
phale >
yep that's it
16:03
<
bradland >
{0,1} has more constraint
16:03
<
phale >
thanks shevy!
16:03
<
phale >
i'm going to finish TRPL later, i'm on lambdas and prosc
16:03
<
shevy >
phale you can add a [] method to your class too
16:03
serivichi has joined #ruby
16:04
<
shevy >
>> class Foo; def [](i); p i; end; end; Foo.new['hey']
16:04
<
shevy >
I use [] sometimes if I can not remember the name of a method
16:04
<
bradland >
phale: you can only rely on String#[] to give you a fixed number of bytes if you're dealing with ascii or binary encoding types
16:04
<
shevy >
RgbToHex[55,66,33]
16:04
<
phale >
bradland: yeah, ASCII
16:04
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:04
<
bradland >
if dealing with bytes, i would ask for bytes
16:04
<
bradland >
String#byteslice
16:05
User458764 has quit [Client Quit]
16:05
RegulationD has quit [Ping timeout: 252 seconds]
16:05
<
bradland >
if you're reading a BMP via IO, ruby gives you a string, but you should treat it as binary, and avoid character operations
16:06
rdark has joined #ruby
16:06
dj_zubehoer has joined #ruby
16:06
<
bradland >
the String class is kind of muddled, because Ruby doesn't have a dedicated binary blob data type
16:06
<
bradland >
many of the functions in String are only relevant for binary data
16:07
<
eam >
the description "binary" is such an odd term to use -- as if any String wasn't entirely binary
16:07
RegulationD has joined #ruby
16:07
<
phale >
so i should use byteslice over []?
16:08
<
bradland >
eam: while that's true, it's just a common misnomer meaning "raw values"
16:08
<
bradland >
the term "string" carries with it the implication that the raw values should be interpreted as characters
16:08
<
eam >
bradland: eh, only in ruby
16:09
<
eam >
strings are historically byte arrays
16:09
<
bradland >
that circles back to my point about String being muddled in Ruby
16:09
roolo has quit [Remote host closed the connection]
16:09
Rup has joined #ruby
16:09
<
eam >
we agree; just calling out the oddness of the colloquial phrasing
16:09
<
bradland >
phale: the String#[] method respects string encoding, so if you use it, you have to take care that your encodings are correct
16:09
<
phale >
"The second field is a four-byte integer that contains the size of the file in bytes."
16:09
odigity has joined #ruby
16:09
<
phale >
but it's not
16:09
<
phale >
it's ascii encoded crap
16:10
<
phale >
am i doing something wrong?
16:10
<
bradland >
rather than rely on String#[], use String#byteslice, is what i'm suggesting
16:10
<
bradland >
it's not ascii encoded
16:10
<
bradland >
it's raw data
16:10
<
phale >
it's not an integer, though
16:10
<
eam >
phale: \xDA is one quarter of an integer
16:10
nicolastarzia has quit [Remote host closed the connection]
16:10
<
bradland >
take a step back
16:10
doodlehaus has joined #ruby
16:11
<
bradland >
stop thinking of the information you're looking at as a string of characters, because it is not
16:11
<
shevy >
take a byte back
16:11
dj_zubehoer has quit [Ping timeout: 272 seconds]
16:11
<
phale >
but then i'll get M
16:11
<
phale >
which is the end of bfType
16:11
<
bradland >
on disk and in memory, it's actually a series of ones and zeros, right?
16:11
<
Rup >
Greetings, rubyists. I have a (hopefully simple) question about EventMachine if anyone is familiar. my existing code is using select() and threads which are relying on heavy use of Socket objects to send/recv to/from clients. I am wondering how I can acquire the Socket object of the connecting clients inside of EM::Connection#post_init.
16:11
<
bradland >
\xDA is Ruby's way of saying a hex escape string
16:11
nicolastarzia has joined #ruby
16:12
RegulationD has quit [Ping timeout: 255 seconds]
16:12
<
bradland >
when you call puts or inspect, Ruby tries to map the raw data to characters
16:12
<
bradland >
for values that it doesn't have a matching character, it shows you the raw value
16:12
<
bradland >
\xDA is hexadecimal DA
16:12
<
bradland >
that's all
16:12
<
eam >
\xDA is an 8 bit number with a value of 218
16:12
<
phale >
where's the rest of the integer then?
16:12
<
centrx >
in the Recycle Bin
16:12
<
phale >
i'm on linux
16:13
<
bradland >
*facepalm*
16:13
LJT has quit [Quit: Sleeping...]
16:14
kalusn has joined #ruby
16:14
Takle has joined #ruby
16:16
iamjarvo has joined #ruby
16:16
iamjarvo has quit [Max SendQ exceeded]
16:16
iamjarvo has joined #ruby
16:16
Sirupsen has joined #ruby
16:17
commmmodo has joined #ruby
16:17
ndrei has quit [Ping timeout: 256 seconds]
16:18
<
phale >
this is correct
16:18
ndrei has joined #ruby
16:19
<
jhass >
phale: the header is 14 bytes (2, 4, 2, 2, 4), read those and String#unpack
16:19
Takle has quit [Ping timeout: 272 seconds]
16:19
<
phale >
jhass: I know
16:19
<
phale >
it's just weird, when I clicked on my hex editor "show little endian decoding"
16:19
<
phale >
on signed 32 bit and unsigned 32 bit, the actual value was shown on there
16:20
<
phale >
the size of the file in bytes.
16:21
sivsushruth has quit [Ping timeout: 256 seconds]
16:21
otisZart has joined #ruby
16:21
sivsushruth has joined #ruby
16:21
serivichi has quit [Ping timeout: 252 seconds]
16:22
agrinb has joined #ruby
16:23
<
eam >
ruby internals question: how does MRI do concurrency without using system level threads?
16:23
<
jhass >
I think it does these days
16:24
DerisiveLogic has joined #ruby
16:24
<
eam >
I have a situation where I believe the GC is racing with the code
16:24
<
eam >
and according to strace I have only one OS level thread, but it appears as if GC activity is interleaved with the GC
16:24
maletor has joined #ruby
16:25
agrinb has quit [Read error: No route to host]
16:25
agrinb_ has joined #ruby
16:25
<
eam >
I'm also pretty sure this only happens on 2.2.0, I think it may be related to the new incremental GC
16:25
<
eam >
but I don't know enough about how concurrent execution flow occurs within a single thread to say for sure
16:26
Cache_Money has joined #ruby
16:26
nicolastarzia has quit [Remote host closed the connection]
16:26
sivsushruth has quit [Ping timeout: 250 seconds]
16:26
sivsushruth has joined #ruby
16:26
<
jhass >
did you try 2.2.1 yet?
16:26
Spami has quit [Quit: This computer has gone to sleep]
16:26
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:27
<
eam >
is that in rvm?
16:27
<
jhass >
make sure to have the latest
16:27
Mon_Ouie has quit [Ping timeout: 246 seconds]
16:28
CustosLimen has quit [Ping timeout: 256 seconds]
16:28
covercash has joined #ruby
16:28
qhartman has quit [Quit: Ex-Chat]
16:28
mary5030 has joined #ruby
16:28
<
phale >
jhass: does ruby have little endian decoding
16:28
<
jhass >
phale: did you look at String#unpack?
16:28
<
phale >
most of the values give me nil
16:28
<
jhass >
I don't believe you
16:28
<
eam >
jhass: I don't see it =/
16:28
<
jhass >
eam: rvm install 2.2.1 errors out?
16:28
zata has quit [Quit: zata]
16:29
<
eam >
I have [ruby-]2.20 and [ruby-]2.2-head
16:29
pontiki has quit [Ping timeout: 240 seconds]
16:29
lemur has joined #ruby
16:29
<
eam >
jhass: ah it'll build it, but it doesn't list it in known
16:29
<
eam >
how does one list all possible installable rvm versions?
16:30
Spami has joined #ruby
16:30
commmmodo has quit [Quit: commmmodo]
16:30
zachrab has joined #ruby
16:31
zata has joined #ruby
16:32
teddyp1cker has joined #ruby
16:32
<
grr_ >
rvm list known?
16:32
chipotle has joined #ruby
16:33
<
phale >
jhass: can't find little endian decoding on unpack
16:34
<
phale >
i'm looking at it as we speak on ri
16:34
<
jhass >
phale: press / then type little endian
16:34
rbennacer has quit [Remote host closed the connection]
16:35
<
phale >
but i've tried that too
16:35
<
eam >
grr_: yeah so, that doesn't mention it
16:35
<
phale >
it gives me nil
16:35
nicolastarzia has joined #ruby
16:35
ypasmk has joined #ruby
16:35
zachrab has quit [Ping timeout: 246 seconds]
16:35
<
phale >
jhass: that gives me a blank string
16:35
Rodya_ has quit [Remote host closed the connection]
16:36
leafybasil has quit [Remote host closed the connection]
16:36
ypasmk has quit [Client Quit]
16:36
<
phale >
i've tried all of that before you even told me to search for it
16:36
<
phale >
it gives me an array with one element in it, nil
16:36
<
phale >
how do i prove it
16:36
chipotle has quit [Client Quit]
16:37
blizzy has joined #ruby
16:37
<
jhass >
>> "\xDa\x00\x00\x00".unpack("l<")
16:37
<
jhass >
for example
16:37
<
phale >
that's not the size of the file in bytes.
16:37
<
jhass >
of course not
16:37
<
jhass >
I made it up
16:37
<
phale >
nevermind I found it
16:37
<
phale >
apparently i was using the wrong slice
16:38
GGMethos has quit [Quit: WeeChat 1.0.1]
16:38
<
jhass >
>> "\xFF\x00\xDa\x00\x00\x00".unpack("s<l<")
16:38
blackmesa has joined #ruby
16:39
<
phale >
okay i'll go AFK now and i'll not ask questions unless i really need to
16:39
chipotle has joined #ruby
16:40
covercash is now known as overcrush
16:40
thebastl has quit [Quit: Leaving...]
16:42
mary5030 has quit [Remote host closed the connection]
16:42
asmodlol has quit [Ping timeout: 246 seconds]
16:43
ragingcake has quit [Quit: ragingcake]
16:43
overcrush is now known as overcrush_
16:43
teddyp1cker has quit [Remote host closed the connection]
16:44
asmodlol has joined #ruby
16:44
Rodya_ has joined #ruby
16:45
davidhq_ has joined #ruby
16:45
overcrush_ is now known as overcrush
16:45
apeiros_ has quit [Remote host closed the connection]
16:46
<
eam >
jhass: yes, it does reproduce on 2.2.1
16:46
<
eam >
but not 2.1.5
16:46
<
eam >
I think I know what's going on
16:47
<
jhass >
cool, your guess sounds sane to me then. Basically just asked so you don't hunt an already solved bug
16:47
<
eam >
yeah I super appreciate the hint -- I didn't even know 2.2.1 was a thing
16:47
overcrush has quit []
16:47
<
jhass >
say /topic :P
16:47
davidhq has quit [Ping timeout: 264 seconds]
16:47
covercash has joined #ruby
16:48
covercash has quit [Client Quit]
16:48
<
eam >
I think I found the issue, I just don't know exactly what these mri internals are doing so it's hard to prove
16:48
overcrush has joined #ruby
16:48
<
eam >
but concretely, the gc gives up the gvl in an area where I think it shouldn't
16:49
<
eam >
which allows user code to close/open, then when the gc picks back up and runs fclose() in the finalizer it closes the newer descriptor which has been allocated the same integer fd as the old one
16:50
overcrush has quit [Client Quit]
16:50
<
eam >
is there a good reference for understanding the mri internals? other than just rtfs?
16:50
overcrush has joined #ruby
16:51
kayloos has joined #ruby
16:51
adriancb has joined #ruby
16:51
kalusn has quit [Read error: Connection reset by peer]
16:51
commmmodo has joined #ruby
16:53
GGMethos has joined #ruby
16:53
lolmaus has joined #ruby
16:53
dfinninger has joined #ruby
16:54
FooMunki_ has quit [Quit: FooMunki_]
16:54
mkaesz has joined #ruby
16:55
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:56
Akuma has joined #ruby
16:56
charliesome has quit [Quit: zzz]
16:57
Rup has quit [Quit: raisins]
16:57
ghostpl_ has joined #ruby
16:58
dfinninger has quit [Ping timeout: 256 seconds]
16:59
<
phale >
jhass: looks japanese
16:59
lkba_ has joined #ruby
16:59
<
jhass >
that's what the j is for
17:00
OrbitalKitten has joined #ruby
17:00
tier has joined #ruby
17:00
<
jhass >
(no, I read neither)
17:01
LBRapid has quit [Remote host closed the connection]
17:01
lkba has quit [Ping timeout: 272 seconds]
17:02
kennym has quit [Remote host closed the connection]
17:02
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:03
Dolphi has joined #ruby
17:04
nateberkopec has joined #ruby
17:04
n80 has joined #ruby
17:04
OrbitalKitten has quit [Ping timeout: 256 seconds]
17:07
amclain has joined #ruby
17:07
steffes has joined #ruby
17:07
dj_zubehoer has joined #ruby
17:07
asmodlol has quit [Quit: Leaving]
17:08
roshanavand has joined #ruby
17:10
frog|OFF is now known as green-big-frog
17:11
tus has joined #ruby
17:11
agrinb_ has quit [Quit: Leaving...]
17:11
tgunr_ has joined #ruby
17:12
dj_zubehoer has quit [Ping timeout: 256 seconds]
17:13
tgunr has quit [Ping timeout: 244 seconds]
17:13
rkgudboy has joined #ruby
17:14
zata has quit [Quit: zata]
17:15
sinkensabe has joined #ruby
17:17
maletor has quit [Quit: Computer has gone to sleep.]
17:18
mikecmpbll has joined #ruby
17:18
leafybasil has joined #ruby
17:19
mistermocha has joined #ruby
17:21
sinkensabe has quit [Ping timeout: 272 seconds]
17:22
psy_ has joined #ruby
17:22
jottr has quit [Ping timeout: 256 seconds]
17:22
psy_ has quit [Max SendQ exceeded]
17:23
psy_ has joined #ruby
17:23
aspiers has joined #ruby
17:24
mistermocha has quit [Ping timeout: 265 seconds]
17:25
jottr has joined #ruby
17:25
n80 has quit [Quit: n80]
17:26
bigmac has joined #ruby
17:27
centrx has quit [Quit: Shutting down, Please wait...]
17:28
n80 has joined #ruby
17:28
IrishGringo has quit [Ping timeout: 265 seconds]
17:30
dh64 has quit [Quit: Konversation terminated!]
17:31
zachrab has joined #ruby
17:31
withnale__ has joined #ruby
17:32
grr_ has quit [Remote host closed the connection]
17:33
Timba-as has quit [Quit: Be back later ...]
17:33
havenwood has joined #ruby
17:34
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:35
cazrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:35
Rollabun_ has joined #ruby
17:35
Timba-as has joined #ruby
17:35
Rollabunna has quit [Read error: Connection reset by peer]
17:36
odigity has quit [Ping timeout: 265 seconds]
17:36
zachrab has quit [Ping timeout: 250 seconds]
17:36
tier has quit [Remote host closed the connection]
17:37
plashchynski has quit [Quit: plashchynski]
17:37
iwaffles has joined #ruby
17:39
zata has joined #ruby
17:39
aspiers has quit [Ping timeout: 252 seconds]
17:39
zata has left #ruby [#ruby]
17:39
lkba_ has quit [Read error: Connection reset by peer]
17:39
ebbflowgo has quit [Read error: Connection reset by peer]
17:40
Timba-as has quit [Ping timeout: 265 seconds]
17:40
ebbflowgo has joined #ruby
17:41
seal has joined #ruby
17:41
flughafen_ has joined #ruby
17:43
kh019267 has joined #ruby
17:43
rbennacer has joined #ruby
17:43
dcarmich has joined #ruby
17:45
ArchRogem has joined #ruby
17:46
n80 has quit [Quit: n80]
17:46
jottr_ has joined #ruby
17:47
otisZart has joined #ruby
17:47
greenbagels_ has joined #ruby
17:48
steffes has quit []
17:48
greenbagels_ has quit [Remote host closed the connection]
17:48
greenbagels has joined #ruby
17:49
grr_ has joined #ruby
17:49
jottr has quit [Ping timeout: 246 seconds]
17:49
odigity has joined #ruby
17:49
Mives has joined #ruby
17:51
otisZart has quit [Read error: Connection reset by peer]
17:51
claptor has quit [Quit: this channel is bakas]
17:51
ItSANgo has quit [Ping timeout: 246 seconds]
17:52
mostlybadfly has quit [Quit: Connection closed for inactivity]
17:52
maletor has joined #ruby
17:52
ebbflowgo has quit [Read error: Connection reset by peer]
17:53
ebbflowgo has joined #ruby
17:53
rdark has quit [Quit: leaving]
17:54
pontiki has joined #ruby
17:54
dfinninger has joined #ruby
17:56
Azure has joined #ruby
17:56
diegoviola has joined #ruby
17:56
RegulationD has joined #ruby
17:57
lemur has quit [Remote host closed the connection]
17:57
doodlehaus has quit [Remote host closed the connection]
17:58
mkaesz has quit [Remote host closed the connection]
17:59
dfinninger has quit [Ping timeout: 264 seconds]
17:59
bigmac has quit [Read error: No route to host]
18:00
bigmac has joined #ruby
18:00
oddraisin has quit [Remote host closed the connection]
18:00
RegulationD has quit [Ping timeout: 256 seconds]
18:00
blueOxigen has joined #ruby
18:01
RegulationD has joined #ruby
18:01
dandaman has joined #ruby
18:02
adriancb has quit [Read error: Connection reset by peer]
18:02
adriancb has joined #ruby
18:04
bluOxigen has quit [Ping timeout: 252 seconds]
18:05
RegulationD has quit [Ping timeout: 240 seconds]
18:05
stef204 has joined #ruby
18:06
lordkryss has quit [Ping timeout: 256 seconds]
18:06
doodlehaus has joined #ruby
18:08
RegulationD has joined #ruby
18:08
lordkryss has joined #ruby
18:08
textblind has joined #ruby
18:09
Rodya_ has quit [Remote host closed the connection]
18:10
last_staff has joined #ruby
18:11
krnlsndrs has joined #ruby
18:11
arup_r has joined #ruby
18:11
textblind has quit [Client Quit]
18:12
SouL has joined #ruby
18:12
zhan has joined #ruby
18:12
<
zhan >
im reading ruby on rails tutorial book
18:12
<
phale >
zhan: >>#ror
18:12
<
zhan >
tells me in 1.2.3 to run rails command
18:12
<
jhass >
#rubyonrails
18:12
RegulationD has quit [Ping timeout: 245 seconds]
18:12
rkgudboy has quit [Ping timeout: 245 seconds]
18:13
<
zhan >
so that's like channel for the book?
18:13
ypasmk has joined #ruby
18:14
<
zhan >
how do i register again?
18:14
<
jhass >
/msg ChanServ help
18:15
<
phale >
jhass: anything like scanf?
18:15
<
phale >
scanf("%d %d")
18:15
<
jhass >
String#scan ?
18:16
zhan has quit [Client Quit]
18:16
<
jhass >
String#[] ?
18:16
dtordable has quit [Quit: • IRcap • 8.72 •]
18:18
overcrush has quit [Quit: brb]
18:20
sivsushruth has quit [Read error: Connection reset by peer]
18:20
sinkensabe has joined #ruby
18:20
AlexRussia has quit [Ping timeout: 255 seconds]
18:20
randiman has joined #ruby
18:21
perturbation has joined #ruby
18:21
doodlehaus has quit [Remote host closed the connection]
18:21
jlast has joined #ruby
18:21
sivsushruth has joined #ruby
18:22
tearan has joined #ruby
18:22
bigmac has quit [Read error: Connection reset by peer]
18:22
apeiros_ has joined #ruby
18:22
bigmac has joined #ruby
18:23
rbennacer has quit [Remote host closed the connection]
18:24
Rodya_ has joined #ruby
18:24
doodlehaus has joined #ruby
18:25
sinkensabe has quit [Ping timeout: 264 seconds]
18:25
overcrush has joined #ruby
18:25
<
phale >
is this data-driven?
18:25
doodlehaus has quit [Remote host closed the connection]
18:25
jottr_ has quit [Ping timeout: 256 seconds]
18:26
maletor has quit [Quit: Computer has gone to sleep.]
18:26
<
jhass >
what is it if it isn't?
18:26
<
phale >
vertical tic tac toe
18:26
ypasmk_ has joined #ruby
18:26
<
phale >
just regularly event-driven or whatever
18:27
ypasmk has quit [Ping timeout: 250 seconds]
18:27
ypasmk_ is now known as ypasmk
18:29
iamjarvo has joined #ruby
18:29
teddyp1cker has joined #ruby
18:29
<
phale >
complex data over complex procedures.
18:29
gregf has quit [Quit: WeeChat 1.0.1]
18:30
<
jhass >
you seem to yell random terms
18:30
mjuszczak has joined #ruby
18:30
tvon has quit [Quit: Lost terminal]
18:30
<
phale >
it's not random.
18:30
michael_mbp has quit [Excess Flood]
18:31
<
jhass >
what's your question?
18:31
michael_mbp has joined #ruby
18:31
<
phale >
is data-driven good?
18:32
zachrab has joined #ruby
18:32
<
jhass >
are decimals or rationals better?
18:33
<
jhass >
is the microwave or a regular oven better?
18:33
<
jhass >
it's an approach
18:33
<
phale >
what's your approach?
18:33
<
jhass >
for some things it may work better, for some things it might not
18:33
<
jhass >
for some things it may just be your preference
18:34
<
jhass >
I don't formalize such stuff I guess
18:34
<
phale >
i'll use event-driven when i have no other choice
18:34
<
phale >
data-driven whenever possible
18:34
<
jhass >
can you rewrite your example to event driven?
18:34
<
phale >
i thought it was event-driven
18:34
<
jhass >
I'd be curious where you draw the line
18:34
<
jhass >
can you rewrite it data driven then?
18:35
<
phale >
i thought you were talking about something else
18:35
<
phale >
yeah it's data-driven, i can probably try event-driven
18:35
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:36
drewvanstone has joined #ruby
18:36
drewvanstone has quit [Client Quit]
18:36
<
phale >
i think this is as event-driven as it can get
18:37
drewvanstone has joined #ruby
18:38
plashchynski has joined #ruby
18:38
zachrab has quit [Remote host closed the connection]
18:39
zachrab has joined #ruby
18:39
blizzy is now known as
_blizzy_
18:39
<
jhass >
I see no difference
18:40
teddyp1cker has quit [Remote host closed the connection]
18:40
<
jhass >
yeah, that's just another way to check the same condition essentially
18:41
<
jhass >
the structure/control flow is exactly the same
18:41
<
phale >
but it's not data-driven anymore
18:41
<
phale >
i have to modify the program, instead of the data
18:42
<
jhass >
can you elaborate? I can't follow you at all
18:42
<
phale >
see that there board array?
18:42
pork_clips has joined #ruby
18:43
<
phale >
if i wanted to add more numbers to it, i'd have to edit the control flow of line 5
18:43
<
jhass >
and the array
18:43
<
phale >
the array is the data.
18:43
<
jhass >
you just made your program less flexible
18:43
<
phale >
I can replace 9 with board.length
18:43
zachrab has quit [Ping timeout: 244 seconds]
18:43
<
jhass >
by duplicating a constant (array length)
18:43
Spami has quit [Quit: This computer has gone to sleep]
18:43
<
jhass >
the constant is encoded into the array literal
18:44
<
jhass >
one version duplicates it, the initial one just reuses it
18:44
<
phale >
so what's better
18:44
_cake has quit [Ping timeout: 256 seconds]
18:44
<
phale >
reusing or duplicating
18:44
<
jhass >
reusing, of course
18:44
<
phale >
there's your answers.
18:44
<
phale >
s/answers/answer/
18:45
<
jhass >
I strongly refuse that it has anything to do with data driven or event driven
18:46
<
jhass >
read the wikipedia articles
18:46
drewvanstone has quit [Quit: leaving]
18:46
matrixfox has joined #ruby
18:47
krnlsndrs has quit [Quit: leaving]
18:47
krnlsndrs has joined #ruby
18:47
mjuszczak has quit []
18:47
hololeap has joined #ruby
18:47
<
jhass >
I wouldn't even say they're excluding each other, it's not data or event driven
18:48
overcrush has quit [Read error: Connection reset by peer]
18:48
lolmaus has quit [Quit: Konversation terminated!]
18:48
rbennacer has joined #ruby
18:48
rbennacer has quit [Remote host closed the connection]
18:48
overcrush_ has joined #ruby
18:48
justin_pdx has joined #ruby
18:48
mjuszczak has joined #ruby
18:48
drewvanstone has joined #ruby
18:48
<
jhass >
and honestly, when it comes to pragmatism, I doubt you'll ever have to reason about them in an application design
18:49
lolmaus has joined #ruby
18:49
<
jhass >
it just emerges from your usecases and may be useful for science to talk about your application after the fact
18:49
drewvans1one has joined #ruby
18:51
drewvans1one has quit [Client Quit]
18:51
drewvans1one has joined #ruby
18:52
The_Phoenix has quit [Read error: Connection reset by peer]
18:53
lolmaus has quit [Client Quit]
18:53
mjuszczak has quit [Client Quit]
18:54
lolmaus has joined #ruby
18:54
pandaant has quit [Remote host closed the connection]
18:55
dfinninger has joined #ruby
18:55
lkba has joined #ruby
18:57
livingstn has joined #ruby
18:57
drewvanstone has quit [Quit: leaving]
18:58
drewvanstone has joined #ruby
18:59
drewvanstone has quit [Client Quit]
18:59
dfinninger has quit [Ping timeout: 245 seconds]
18:59
drewvanstone has joined #ruby
18:59
drewvans1one has quit [Quit: Lost terminal]
19:00
twohlix has quit [Quit: justQU.IT]
19:00
overcrush_ has quit [Quit: bye!]
19:00
papercode has quit [Quit: WeeChat 0.4.3]
19:00
green-big-frog is now known as frog|OFF
19:01
lys has joined #ruby
19:03
leafybasil has quit [Ping timeout: 245 seconds]
19:04
sivsushruth has quit [Read error: Connection reset by peer]
19:04
morenoh149 has joined #ruby
19:04
kaleido has quit [Ping timeout: 245 seconds]
19:04
withnale__ has quit [Quit: Be back later ...]
19:06
teddyp1cker has joined #ruby
19:06
sivsushruth has joined #ruby
19:06
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
19:07
spider-mario has joined #ruby
19:07
kalusn has joined #ruby
19:07
kayloos has quit [Read error: Connection reset by peer]
19:08
Pupeno has quit [Ping timeout: 272 seconds]
19:08
ismaelga has joined #ruby
19:08
dj_zubehoer has joined #ruby
19:09
RegulationD has joined #ruby
19:10
teddyp1cker has quit [Ping timeout: 250 seconds]
19:10
sivsushruth has quit [Read error: Connection reset by peer]
19:10
michael_mbp has quit [Excess Flood]
19:11
kalusn has quit [Remote host closed the connection]
19:12
sivsushruth has joined #ruby
19:13
dj_zubehoer has quit [Ping timeout: 245 seconds]
19:13
RegulationD has quit [Ping timeout: 264 seconds]
19:13
roshanavand has quit [Remote host closed the connection]
19:14
michael_mbp has joined #ruby
19:15
tobacco_joe has quit []
19:15
IrishGringo has joined #ruby
19:17
kaleido has joined #ruby
19:17
kaleido has quit [Changing host]
19:17
kaleido has joined #ruby
19:18
skj3gg has joined #ruby
19:18
jottr_ has joined #ruby
19:18
maasha has joined #ruby
19:19
xcombelle has joined #ruby
19:19
gtrak has joined #ruby
19:19
kalusn has joined #ruby
19:19
<
maasha >
Hey, strange thing happening: NoMethodError: undefined method `omit' for #<TestWriteTree:0x007f10ba0ce758> which inhirets from Test::Unit
19:20
<
maasha >
it works fine on my mac, but not on my linux server
19:20
<
maasha >
this is ruby 2.1.2p95
19:21
Spami has joined #ruby
19:22
motto has joined #ruby
19:23
Spami has quit [Client Quit]
19:23
perturbation has quit [Quit: Leaving]
19:23
m8 has quit [Ping timeout: 252 seconds]
19:23
jottr_ has quit [Ping timeout: 245 seconds]
19:24
Spami has joined #ruby
19:24
Cache_Money has quit [Quit: Cache_Money]
19:25
ruind has joined #ruby
19:25
<
phale >
maasha: code?
19:25
<
ruind >
hello I am new to ruby, and I have seen methods called as 'method(param)' and 'method param' when is it right to use the former over the latter and vis-a-versa?
19:27
jottr_ has joined #ruby
19:27
<
phale >
ruind: It's good practice to use "method param" where it would be more readable than "method(param)"
19:27
<
phale >
If there are multiple arguments, you should use parenthesis in most cases.
19:27
Mon_Ouie has joined #ruby
19:27
Mon_Ouie has joined #ruby
19:27
<
havenwood >
or not use parens unless it breaks the interpreter (Seattle style)
19:27
<
havenwood >
ruind: it doesn't matter. just aesthetics.
19:28
seal has quit [Quit: Ex-Chat]
19:28
<
jhass >
maasha: do you use a Gemfile?
19:29
<
maasha >
jhass: yes
19:29
<
havenwood >
ruind: some folks like to omit parens whenever possible, because it looks clean. others like to always use them, so it's a bit easier to move code around (but even these folks omit them from #puts and some other frequently used methods).
19:29
<
jhass >
maasha: do you have the .lock checked into the repo? do you run both commands through bundle exec?
19:30
lemur has joined #ruby
19:30
bim has quit [Remote host closed the connection]
19:30
<
havenwood >
ruind: i tend to like the look of Seattle style.
19:30
<
maasha >
jhass: ahm? I run rake. No .lock in the repo
19:30
mjuszczak has joined #ruby
19:31
<
jhass >
maasha: check the lock into the repo, otherwise you miss the entire point of using bundler, also do bundle exec rake to be sure
19:31
<
phale >
zooooooooooom
19:31
phale has quit [Quit: leaving]
19:31
bigmac has quit [Read error: No route to host]
19:32
bigmac has joined #ruby
19:33
echevemaster has joined #ruby
19:33
sevvie has quit [Ping timeout: 264 seconds]
19:33
<
maasha >
jhass: I think I misunderstood you there for a moment. I dont hava a Gemfile. I have a gemspecs file.
19:33
riotjones has joined #ruby
19:33
sevvie has joined #ruby
19:34
leafybasil has joined #ruby
19:34
maknz has joined #ruby
19:34
<
jhass >
ah, that's different indeed
19:34
<
jhass >
well, check you got the same minitest version on both
19:36
sivsushruth has quit [Read error: Connection reset by peer]
19:36
<
maasha >
jhass: so on my mac minitest is 5.5.1 and on the linux box it is 4.7.5 - so the question: is omit a new method in Test::Unit?
19:36
MasterPiece has joined #ruby
19:36
<
maasha >
I would be surprised, but it looks like it.
19:37
<
jhass >
I'm a RSpec'er myself, so I wouldn't know
19:37
<
jhass >
but given it's a different major version, I wouldn't be surprised at all
19:37
xcombelle has quit [Quit: Quitte]
19:37
sinkensabe has joined #ruby
19:37
sivsushruth has joined #ruby
19:38
Rephiax has joined #ruby
19:38
<
maasha >
jhass: who would write a test suite for 4 major versions without an omit method?
19:38
<
jhass >
I don't even know what that method does
19:38
<
maasha >
jhass: it skips a test
19:38
Stalkr_ has joined #ruby
19:39
<
jhass >
maybe it got renamed?
19:39
yqt has joined #ruby
19:39
<
jhass >
zenspider: ^ can you help out there?
19:39
ndrei has quit [Ping timeout: 252 seconds]
19:39
zachrab has joined #ruby
19:39
riotjones has quit [Ping timeout: 246 seconds]
19:39
flughafen_ has quit [Quit: WeeChat 1.0]
19:40
skj3gg has quit [Quit: ZZZzzz…]
19:41
ndrei has joined #ruby
19:41
<
maasha >
jhass: yeah, I also thought that there was supposed to be a flunk and a skip method
19:41
bluOxigen has joined #ruby
19:42
<
jhass >
check yourself
19:42
<
jhass >
both list skip, neither list omit
19:42
tkuchiki has joined #ruby
19:43
drewvanstone has quit [Quit: Lost terminal]
19:44
mjuszczak has quit []
19:44
<
jhass >
omit seems to come from the test-unit gem
19:44
tkuchiki has quit [Remote host closed the connection]
19:44
zachrab has quit [Ping timeout: 252 seconds]
19:44
blueOxigen has quit [Ping timeout: 272 seconds]
19:44
<
havenwood >
yeah, doesn't ship with the Test::Unit in Ruby - just the gem
19:45
<
maasha >
omit is from TestCaseOmissionSupport
19:45
jottr has joined #ruby
19:45
yfeldblum has joined #ruby
19:45
<
havenwood >
in Minitest you `skip`
19:46
tkuchiki has joined #ruby
19:47
<
maasha >
havenwood: but there is a neat omit method! At least in the newer version
19:47
<
havenwood >
maasha: newer versions of Minitest?
19:47
jottr_ has quit [Ping timeout: 256 seconds]
19:49
sivsushruth has quit [Read error: Connection reset by peer]
19:50
<
havenwood >
The Test::Unit gem has since 2008.
19:50
sivsushruth has joined #ruby
19:50
michael_mbp has quit [Excess Flood]
19:51
tkuchiki has quit [Remote host closed the connection]
19:51
sivsushruth has quit [Read error: Connection reset by peer]
19:52
maletor has joined #ruby
19:52
pontiki has quit [Ping timeout: 264 seconds]
19:52
michael_mbp has joined #ruby
19:52
mjuszczak has joined #ruby
19:52
<
maasha >
skip was renamed to omit or something. there is no skip method in the new version and no omit in the old.
19:52
Vivex_ has joined #ruby
19:53
sivsushruth has joined #ruby
19:53
ypasmk has quit [Quit: ypasmk]
19:54
mjuszczak has quit [Client Quit]
19:54
<
havenwood >
maasha: But that's not the case. You probably just have the Test::Unit gem installed on one box and not the other.
19:54
Hirzu has joined #ruby
19:54
<
maasha >
it is installed on both boxes :o/
19:55
grr_ has quit [Remote host closed the connection]
19:55
<
havenwood >
maasha: Try activating the gem with Kernel#gem.
19:55
yfeldblu_ has joined #ruby
19:55
Vivex has quit [Ping timeout: 250 seconds]
19:55
<
havenwood >
maasha: You're getting the Test::Unit gem's omit when you're seeing it.
19:56
<
maasha >
havenwood: activate?
19:56
dfinninger has joined #ruby
19:56
mesamoo has joined #ruby
19:56
pontiki has joined #ruby
19:57
FooMunki has joined #ruby
19:58
sevvie has quit [Ping timeout: 252 seconds]
19:58
yfeldblum has quit [Ping timeout: 245 seconds]
19:58
iamjarvo_ has joined #ruby
19:58
<
havenwood >
maasha: To ensure you're using the gem, not the built-in Test::Unit: gem 'test/unit'
20:00
sinkensa_ has joined #ruby
20:00
iamjarvo has quit [Ping timeout: 245 seconds]
20:00
dfinninger has quit [Ping timeout: 246 seconds]
20:00
Dolphi has quit [Ping timeout: 255 seconds]
20:00
sinkensa_ has quit [Remote host closed the connection]
20:01
gtrak has quit [Ping timeout: 272 seconds]
20:01
RegulationD has joined #ruby
20:01
sinkensabe has quit [Ping timeout: 265 seconds]
20:01
roshanavand has joined #ruby
20:02
maasha has quit [Ping timeout: 246 seconds]
20:02
skj3gg has joined #ruby
20:02
t_p has quit [Ping timeout: 264 seconds]
20:03
<
skj3gg >
Has anyone here used haml to create generated static error pages (placed in your public directory if possible) for your rails app that uses the application.html.haml layout
20:04
marr has joined #ruby
20:04
grr_ has joined #ruby
20:05
sevvie has joined #ruby
20:05
<
havenwood >
skj3gg: #rubyonrails is the best channel for Rails-related questions.
20:05
withnale__ has joined #ruby
20:05
<
skj3gg >
havenwood: thanks
20:05
RegulationD has quit [Ping timeout: 246 seconds]
20:06
justin_pdx has quit [Quit: justin_pdx]
20:07
RegulationD has joined #ruby
20:07
_hollywood has quit [Quit: Leaving]
20:08
morenoh149 has quit [Ping timeout: 252 seconds]
20:08
Sawbones has quit [Remote host closed the connection]
20:08
ghostpl_ has quit [Remote host closed the connection]
20:08
OrbitalKitten has joined #ruby
20:08
User458764 has joined #ruby
20:09
NivenHuH has joined #ruby
20:10
Sawbones has joined #ruby
20:10
WildBamboo-Josh has joined #ruby
20:10
shadeslayer has quit [Ping timeout: 256 seconds]
20:10
withnale__ has quit [Ping timeout: 264 seconds]
20:11
RegulationD has quit [Ping timeout: 255 seconds]
20:12
Hirzu has quit [Remote host closed the connection]
20:12
martinbmadsen has joined #ruby
20:12
Channel6 has quit [Quit: Leaving]
20:12
jlast has quit [Remote host closed the connection]
20:13
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
20:14
Sawbones has quit [Ping timeout: 244 seconds]
20:15
yekta has joined #ruby
20:15
slyv has joined #ruby
20:16
_5kg has quit [Ping timeout: 255 seconds]
20:17
GnuYawk has joined #ruby
20:18
shadeslayer has joined #ruby
20:18
Jackneill has quit [Quit: Leaving]
20:19
_5kg has joined #ruby
20:19
sivsushruth has quit [Read error: Connection reset by peer]
20:19
GnuYawk has quit [Client Quit]
20:20
Rodya_ has quit [Remote host closed the connection]
20:20
GnuYawk has joined #ruby
20:20
Rodya_ has joined #ruby
20:21
sivsushruth has joined #ruby
20:21
rhllor has joined #ruby
20:22
User458764 has joined #ruby
20:22
nux443 has quit [Ping timeout: 245 seconds]
20:23
ismaelga has quit [Remote host closed the connection]
20:23
dj_zubehoer has joined #ruby
20:24
nux443 has joined #ruby
20:24
Wolland has joined #ruby
20:24
martinbmadsen has quit [Ping timeout: 246 seconds]
20:26
martinbmadsen has joined #ruby
20:27
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
20:27
sivsushruth has quit [Read error: Connection reset by peer]
20:27
adriancb has quit [Read error: Connection reset by peer]
20:28
Wolland has quit [Client Quit]
20:28
ixti has joined #ruby
20:29
adriancb has joined #ruby
20:29
sivsushruth has joined #ruby
20:29
MatthewsFace has joined #ruby
20:29
dj_zubehoer has quit [Remote host closed the connection]
20:30
malcolmva has quit [Ping timeout: 256 seconds]
20:30
RandyT has joined #ruby
20:30
__main__ has quit [Read error: Connection reset by peer]
20:30
bim has joined #ruby
20:31
unreal_ has joined #ruby
20:32
papercode has joined #ruby
20:33
unreal has quit [Ping timeout: 256 seconds]
20:34
a5i has joined #ruby
20:36
sivsushruth has quit [Read error: Connection reset by peer]
20:36
sambao21 has joined #ruby
20:37
bim has quit [Ping timeout: 246 seconds]
20:37
sivsushruth has joined #ruby
20:37
dj_zubehoer has joined #ruby
20:38
claptor has joined #ruby
20:39
hs366 has quit [Quit: Leaving]
20:40
Zai00 has quit [Quit: Zai00]
20:40
__main__ has joined #ruby
20:40
sambao21 has quit [Ping timeout: 252 seconds]
20:41
Notte has joined #ruby
20:43
malcolmva has joined #ruby
20:44
mjuszczak has joined #ruby
20:44
enebo has quit [Quit: enebo]
20:44
dorei has joined #ruby
20:46
sivsushruth has quit [Read error: Connection reset by peer]
20:47
sivsushruth has joined #ruby
20:47
dtordable has joined #ruby
20:47
mostlybadfly has joined #ruby
20:48
sambao21 has joined #ruby
20:48
mjuszczak has quit [Ping timeout: 256 seconds]
20:50
michael_mbp has quit [Excess Flood]
20:50
bim has joined #ruby
20:50
gtrak has joined #ruby
20:51
skj3gg has quit [Quit: ZZZzzz…]
20:53
michael_mbp has joined #ruby
20:54
sambao21 has quit [Quit: Computer has gone to sleep.]
20:55
ismaelga has joined #ruby
20:55
zachrab has joined #ruby
20:55
n80 has joined #ruby
20:55
miah has joined #ruby
20:55
Mon_Ouie has quit [Ping timeout: 240 seconds]
20:56
dfinninger has joined #ruby
20:57
adriancb_ has joined #ruby
20:58
adriancb has quit [Ping timeout: 256 seconds]
20:59
adriancb_ has quit [Read error: Connection reset by peer]
21:00
adriancb has joined #ruby
21:00
sinkensabe has joined #ruby
21:00
zachrab has quit [Ping timeout: 272 seconds]
21:00
ebbflowgo has left #ruby [#ruby]
21:00
dfinninger has quit [Ping timeout: 246 seconds]
21:01
teddyp1cker has joined #ruby
21:01
dj_zubehoer has quit [Remote host closed the connection]
21:01
sinkensabe has quit [Remote host closed the connection]
21:02
dj_zubehoer has joined #ruby
21:02
dj_zubehoer has quit [Client Quit]
21:03
teddyp1cker has quit [Remote host closed the connection]
21:03
serivichi has joined #ruby
21:04
Timba-as has joined #ruby
21:04
hololeap has quit [Ping timeout: 252 seconds]
21:05
odigity has quit [Ping timeout: 256 seconds]
21:05
Rephiax_ has joined #ruby
21:05
akkad has quit [Excess Flood]
21:05
yekta has quit [Quit: yekta]
21:06
withnale__ has joined #ruby
21:06
doodlehaus has joined #ruby
21:06
akkad has joined #ruby
21:07
cazrin has joined #ruby
21:07
Rephiax has quit [Ping timeout: 244 seconds]
21:08
plashchynski has quit [Quit: plashchynski]
21:08
gtrak has quit [Ping timeout: 252 seconds]
21:08
ghostpl_ has joined #ruby
21:10
simone__ has joined #ruby
21:10
Zai00 has joined #ruby
21:11
withnale__ has quit [Ping timeout: 256 seconds]
21:11
grr_ has quit [Remote host closed the connection]
21:11
jlast has joined #ruby
21:12
ypasmk has joined #ruby
21:13
oki has joined #ruby
21:14
serivichi has quit [Ping timeout: 255 seconds]
21:14
Takle has joined #ruby
21:15
nfk has quit [Quit: yawn]
21:16
dorei has quit [Read error: Connection reset by peer]
21:16
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
21:16
tag has quit [Ping timeout: 245 seconds]
21:18
odigity has joined #ruby
21:20
adriancb has quit [Remote host closed the connection]
21:20
amundj has joined #ruby
21:20
amundj has quit [Client Quit]
21:21
n80 has quit [Quit: n80]
21:22
plashchynski has joined #ruby
21:23
sivsushruth has quit [Read error: Connection reset by peer]
21:24
tag has joined #ruby
21:25
sivsushruth has joined #ruby
21:25
simone__ has quit [Ping timeout: 252 seconds]
21:26
dtordable has quit [Quit: • IRcap • 8.72 •]
21:26
bim has quit [Remote host closed the connection]
21:26
bim has joined #ruby
21:27
quazimodo has quit [Ping timeout: 272 seconds]
21:27
Rephiax has joined #ruby
21:27
bluOxigen has quit [Ping timeout: 272 seconds]
21:28
justin_pdx has joined #ruby
21:29
DrShoggoth has joined #ruby
21:29
Rephiax_ has quit [Ping timeout: 246 seconds]
21:30
jonr22 has quit [Remote host closed the connection]
21:31
bim has quit [Ping timeout: 244 seconds]
21:31
cazrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:32
skaag has quit [Quit: Leaving.]
21:32
maletor has quit [Quit: Computer has gone to sleep.]
21:33
bim has joined #ruby
21:35
n80 has joined #ruby
21:35
jonr22 has joined #ruby
21:36
bim has quit [Remote host closed the connection]
21:37
bim has joined #ruby
21:37
bigmac has quit [Read error: No route to host]
21:38
sambao21 has joined #ruby
21:38
roshanavand has quit [Remote host closed the connection]
21:38
bigmac has joined #ruby
21:38
Vivex_ has quit [Read error: Connection reset by peer]
21:38
last_staff has quit [Quit: last_staff]
21:40
Sawbones has joined #ruby
21:40
Sawbones has quit [Remote host closed the connection]
21:41
bim has quit [Ping timeout: 244 seconds]
21:42
neanderslob has quit [Ping timeout: 246 seconds]
21:43
ghostpl_ has quit [Ping timeout: 264 seconds]
21:43
einarj has joined #ruby
21:45
sivsushruth has quit [Read error: Connection reset by peer]
21:46
jlast has quit [Remote host closed the connection]
21:47
sivsushruth has joined #ruby
21:47
mistermocha has joined #ruby
21:47
wasamasa is now known as bagelmasa
21:47
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:49
rbennacer has joined #ruby
21:50
Rodya_ has quit [Remote host closed the connection]
21:50
sivsushruth has quit [Read error: Connection reset by peer]
21:51
bagelmasa is now known as wasamasa
21:52
sivsushruth has joined #ruby
21:52
FooMunki has quit [Quit: FooMunki]
21:53
ValicekB has quit [Ping timeout: 245 seconds]
21:53
rbennacer has quit [Ping timeout: 240 seconds]
21:53
sambao21 has quit [Read error: Connection reset by peer]
21:53
doodlehaus has quit [Remote host closed the connection]
21:53
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:54
justin_pdx has quit [Quit: justin_pdx]
21:55
einarj_ has joined #ruby
21:55
Rodya_ has joined #ruby
21:55
einarj has quit [Ping timeout: 252 seconds]
21:56
RegulationD has joined #ruby
21:56
doodlehaus has joined #ruby
21:56
zachrab has joined #ruby
21:57
einarj has joined #ruby
21:57
MasterPiece has quit [Quit: Leaving]
21:57
dfinninger has joined #ruby
21:58
sambao21 has joined #ruby
21:58
diegoviola has quit [Quit: WeeChat 1.1.1]
21:59
einarj__ has joined #ruby
21:59
einarj_ has quit [Ping timeout: 264 seconds]
21:59
ebbflowgo has joined #ruby
21:59
Vivex has joined #ruby
22:00
RegulationD has quit [Ping timeout: 255 seconds]
22:00
Hirzu has joined #ruby
22:01
decoponio has quit [Read error: Connection reset by peer]
22:01
RegulationD has joined #ruby
22:01
IrishGringo has quit [Ping timeout: 265 seconds]
22:01
zachrab has quit [Ping timeout: 245 seconds]
22:01
einarj has quit [Ping timeout: 265 seconds]
22:01
randiman has quit [Quit: (null)]
22:01
dfinninger has quit [Ping timeout: 246 seconds]
22:01
decoponio has joined #ruby
22:03
n80 has quit [Quit: n80]
22:03
neanderslob has joined #ruby
22:04
ypasmk has quit [Quit: ypasmk]
22:05
slyv has quit [Remote host closed the connection]
22:05
Hirzu has quit [Ping timeout: 244 seconds]
22:05
RegulationD has quit [Ping timeout: 252 seconds]
22:06
bigmac has quit [Read error: No route to host]
22:06
mistermocha has quit [Remote host closed the connection]
22:06
wldcordeiro has joined #ruby
22:06
bigmac has joined #ruby
22:07
withnale__ has joined #ruby
22:07
RegulationD has joined #ruby
22:08
Channel6 has joined #ruby
22:08
einarj has joined #ruby
22:08
Azulinho has joined #ruby
22:09
Azulinho has quit [Remote host closed the connection]
22:10
zenspider has quit [Quit: bye]
22:10
sivsushruth has quit [Read error: Connection reset by peer]
22:10
kh019267 has joined #ruby
22:10
einarj__ has quit [Ping timeout: 265 seconds]
22:11
rhllor has quit [Quit: rhllor]
22:11
withnale__ has quit [Ping timeout: 240 seconds]
22:12
einarj_ has joined #ruby
22:12
sivsushruth has joined #ruby
22:12
RegulationD has quit [Ping timeout: 264 seconds]
22:14
sivsushruth has quit [Read error: Connection reset by peer]
22:14
einarj has quit [Ping timeout: 264 seconds]
22:14
einarj__ has joined #ruby
22:14
crueber has joined #ruby
22:15
sivsushruth has joined #ruby
22:15
einarj_ has quit [Read error: Connection reset by peer]
22:16
kh019267 has quit [Ping timeout: 264 seconds]
22:16
RegulationD has joined #ruby
22:16
crueber has quit [Client Quit]
22:16
RegulationD has quit [Remote host closed the connection]
22:17
Notte has quit [Remote host closed the connection]
22:19
Volsus has joined #ruby
22:20
jenrzzz has joined #ruby
22:21
zenspider has joined #ruby
22:21
apeiros_ has quit [Remote host closed the connection]
22:21
Rodya_ has quit [Remote host closed the connection]
22:22
apeiros_ has joined #ruby
22:24
rbennacer has joined #ruby
22:26
bigmac has quit [Read error: No route to host]
22:27
ptrrr has quit [Quit: ptrrr]
22:27
roolo has joined #ruby
22:28
bigmac has joined #ruby
22:29
rbennacer has quit [Ping timeout: 264 seconds]
22:30
doodlehaus has quit [Remote host closed the connection]
22:30
einarj has joined #ruby
22:31
cazrin has joined #ruby
22:32
gregf has joined #ruby
22:32
codecop has quit [Remote host closed the connection]
22:32
einarj_ has joined #ruby
22:32
einarj__ has quit [Ping timeout: 256 seconds]
22:33
n80 has joined #ruby
22:34
einarj has quit [Ping timeout: 246 seconds]
22:34
einarj has joined #ruby
22:35
einarj_ has quit [Read error: Connection reset by peer]
22:36
<
jhass >
we should all join #hashtag
22:36
renier has joined #ruby
22:36
bigmac has quit [Read error: No route to host]
22:37
bigmac has joined #ruby
22:38
renier_ has quit [Ping timeout: 245 seconds]
22:39
ghostpl_ has joined #ruby
22:39
bigmac has quit [Read error: No route to host]
22:39
bigmac has joined #ruby
22:40
<
godd2 >
Let's keep it unofficial and do ##hashtag
22:41
msmith_ has joined #ruby
22:41
sivsushruth has quit [Read error: Connection reset by peer]
22:41
msmith_ has quit [Remote host closed the connection]
22:42
sivsushruth has joined #ruby
22:43
n80 has quit [Quit: n80]
22:43
bradleyprice has quit [Remote host closed the connection]
22:43
gtrak has joined #ruby
22:44
bradleyprice has joined #ruby
22:44
<
jhass >
##doublehashtag
22:44
Sawbones has joined #ruby
22:45
User458764 has joined #ruby
22:45
einarj has quit [Remote host closed the connection]
22:46
bradleyprice has quit [Remote host closed the connection]
22:48
banister has joined #ruby
22:48
p3ery has joined #ruby
22:49
motto has quit [Quit: Sto andando via]
22:50
sambao21 has quit [Quit: Computer has gone to sleep.]
22:50
<
jhass >
godd2: a direction, you may know left and right already
22:50
<
bradland >
up is, most commonly, a proposition relating to objects that are in a position that is higher relative to the point of reference
22:50
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
22:50
<
bradland >
dangit, jhass
22:50
<
jhass >
bradland: ^5
22:50
<
godd2 >
Matz is pedantic so we are pedantic
22:50
<
godd2 >
No wait, that's not it...
22:50
JDiPierro has joined #ruby
22:51
<
jhass >
s/pedantic/bored/
22:51
<
bradland >
i only know because i get asked that question a lot
22:51
<
bradland >
i think it's because people think i'm smart
22:51
<
bradland >
so they ask me
22:51
bigmac has quit [Read error: No route to host]
22:51
<
bradland >
that's what other people say anyway: "brad, you're so smart and likeable"
22:51
apeiros_ has quit [Remote host closed the connection]
22:51
akkad has quit [Excess Flood]
22:51
apeiros_ has joined #ruby
22:51
gtrak has quit [Ping timeout: 240 seconds]
22:51
<
godd2 >
#humblebrag
22:52
bigmac has joined #ruby
22:52
<
bradland >
i can't vouch for their credibility
22:52
<
bradland >
but you know
22:52
<
bradland >
hard to argue with the masses
22:52
<
bradland >
and masses, and masses
22:52
<
jhass >
Volsus: don't mind us btw, if you got anything just ask ;)
22:52
<
bradland >
in addition to being humble, many of us know ruby as well! it's amazing really! :)
22:53
<
Volsus >
atm just lurking, thanks tho ^^
22:54
<
jhass >
in the meantime, hangman time!
________ 0/12 [] What's the next character you choose?
22:55
JDiPierro has quit [Ping timeout: 265 seconds]
22:55
kromm has joined #ruby
22:55
akkad has joined #ruby
22:56
adriancb has joined #ruby
22:58
dfinninger has joined #ruby
22:59
maknz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:59
quazimodo has joined #ruby
23:00
wicope has quit [Remote host closed the connection]
23:00
morenoh149 has joined #ruby
23:01
Stalkr_ has quit [Quit: Leaving...]
23:02
Joufflu has joined #ruby
23:03
dfinninger has quit [Ping timeout: 264 seconds]
23:04
teddyp1cker has joined #ruby
23:04
mary5030 has joined #ruby
23:05
davidhq_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:06
quazimodo has quit [Remote host closed the connection]
23:06
enebo has joined #ruby
23:07
Wolland has joined #ruby
23:07
DrShoggoth has quit [Remote host closed the connection]
23:08
TheNet has joined #ruby
23:08
withnale__ has joined #ruby
23:08
gtrak has joined #ruby
23:08
teddyp1cker has quit [Ping timeout: 244 seconds]
23:08
Wolland has quit [Client Quit]
23:09
enebo has quit [Client Quit]
23:10
buub has quit [Ping timeout: 264 seconds]
23:10
Dolphi has joined #ruby
23:11
<
TheNet >
I need some advice on sockets. I've got two apps that need to communicate with each other. Would it be better to keep a socket connection open all the time between the apps? Or only open one when something needs to be sent?
23:11
wldcordeiro has quit [Ping timeout: 256 seconds]
23:12
withnale__ has quit [Ping timeout: 252 seconds]
23:12
<
TheNet >
It could be 5 - over 100 connections per day, it's pretty random
23:12
ghostpl_ has quit [Ping timeout: 246 seconds]
23:12
zachrab has joined #ruby
23:14
riotjones has joined #ruby
23:14
<
jhass >
depends on your priorities and resources
23:14
<
jhass >
a permanently open socket connection steadily consumes system resources
23:14
<
jhass >
otoh opening it takes some time so you increase latency
23:15
<
TheNet >
more so than opening a connection?
23:15
<
jhass >
choose what's more important to you
23:15
<
TheNet >
is there a better alternative to sockets?
23:15
<
TheNet >
they're both ruby apps
23:16
<
havenwood >
TheNet: DRb
23:16
Sawbones has quit [Remote host closed the connection]
23:17
zachrab has quit [Ping timeout: 244 seconds]
23:17
<
jhass >
maintaining the connection requires (granted small) chunk of memory in the kernel and I guess some regular checking for data
23:17
<
jhass >
for IPC? depends on your usecase really
23:17
<
jhass >
probably not
23:18
<
jhass >
it's probably not relevant for your application which approach you choose, pick whichever is nicer to implement to you and do such micro optimizations once you identified a real bottleneck
23:18
riotjones has quit [Ping timeout: 245 seconds]
23:18
commmmodo has quit [Read error: Connection reset by peer]
23:19
cschneid has joined #ruby
23:19
commmmodo has joined #ruby
23:19
DerisiveLogic has quit [Ping timeout: 264 seconds]
23:19
chipotle has quit [Quit: cheerio]
23:25
sivsushruth has quit [Read error: Connection reset by peer]
23:25
<
TheNet >
jhass: thanks
23:25
<
TheNet >
havenwood: is that actually better?
23:25
<
bradland >
if i were dealing with 5-100 connections a day, i'd just make them persistent
23:26
<
TheNet >
sockets seem... simpler
23:26
<
bradland >
if you're dealing with socket connections from web clients, where you're going to scale to hundreds of thousands of clients, then you need to start worrying about things like ulimit
23:26
sivsushruth has joined #ruby
23:27
<
bradland >
DRb is for RPC, right?
23:27
davidhq has joined #ruby
23:27
<
bradland >
sockets are more general, in that you can pass anything across them.
23:27
<
bradland >
just be careful you're not re-implementing something like DRb (poorly)
23:28
Shidash has joined #ruby
23:28
iamjarvo has joined #ruby
23:29
<
havenwood >
TheNet: DRb is written in pure Ruby. It let's you naturally call methods without rigmarole on the remote Ruby. If you return things that are Marshallable there's no crazy magic.
23:29
<
havenwood >
TheNet: Depends. There are some handy things.
23:30
justin_pdx has joined #ruby
23:31
bradleyprice has joined #ruby
23:32
theoretick has joined #ruby
23:33
kirun has quit [Quit: Client exiting]
23:34
<
bradland >
DRb sounds like a dream come true.
23:34
<
TheNet >
It looks nice but I'm already requiring sockets on one of the apps
23:35
<
bradland >
DRb sits on top of sockets.
23:35
<
bradland >
rather than just passing info, you can call remote methods
23:35
<
bradland >
RPC dawg
23:35
<
TheNet >
alright, I guess I'll try it
23:35
dumdedum has joined #ruby
23:35
<
TheNet >
havenwood, jhass, bradland: thanks
23:35
<
havenwood >
The documentation is lacking, but when you get the idea it's easy to use.
23:36
dumdedum has quit [Client Quit]
23:36
<
TheNet >
would I loop DRb.start_service; DRb.thread.join ?
23:36
adriancb_ has joined #ruby
23:37
adriancb has quit [Read error: Connection reset by peer]
23:37
spider-mario has quit [Read error: Connection reset by peer]
23:38
drewvanstone has joined #ruby
23:38
fgo has joined #ruby
23:38
drewvanstone has quit [Client Quit]
23:38
diegoviola has joined #ruby
23:40
sevvie has quit [Ping timeout: 244 seconds]
23:40
<
havenwood >
TheNet: If you don't pass args to #start_service it'll be a `front` of `nil`. Looking for a good gist.
23:41
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:42
beneggett has joined #ruby
23:42
fgo has quit [Ping timeout: 252 seconds]
23:43
hiyosi has joined #ruby
23:43
greenarrow has joined #ruby
23:43
amclain has quit [Quit: Leaving]
23:44
sivsushruth has quit [Read error: Connection reset by peer]
23:45
Rephiax has quit [Read error: Connection reset by peer]
23:46
sivsushruth has joined #ruby
23:46
Rephiax has joined #ruby
23:46
mary5030 has quit [Remote host closed the connection]
23:46
doodlehaus has joined #ruby
23:46
rbennacer has joined #ruby
23:46
<
havenwood >
TheNet: So in that case ^, the front is just a Hash.
23:46
<
TheNet >
havenwood: oh wow, thanks!
23:46
<
havenwood >
TheNet: So it's a Hash you can use over the wire. :)
23:47
sevvie has joined #ruby
23:47
<
TheNet >
havenwood: if the uri is druby://localhost:xxxx I don't have to lock down any ports, right?
23:48
<
havenwood >
yeah, localhost
23:48
ZoanthusR has joined #ruby
23:48
adriancb_ has quit [Remote host closed the connection]
23:49
jottr has quit [Ping timeout: 256 seconds]
23:50
beneggett has quit [Ping timeout: 265 seconds]
23:50
<
TheNet >
havenwood: you required 'drb' whereas the docs examples use 'drb/drb'
23:50
kalusn has quit [Remote host closed the connection]
23:50
<
TheNet >
is there a difference?
23:51
beneggett has joined #ruby
23:51
<
havenwood >
TheNet: all 'drb' does is in turn: require 'drb/drb'
23:51
<
havenwood >
TheNet: I'm just one of those crazy people who do `bundle` instead of `bundle install`, since it's an alias. :P
23:52
<
havenwood >
TheNet: Think of the characters saved!
23:52
bigmac has quit [Read error: Connection reset by peer]
23:52
bigmac has joined #ruby
23:54
hmsimha has quit [Ping timeout: 252 seconds]
23:56
sivsushruth has quit [Read error: Connection reset by peer]
23:57
Junaos has joined #ruby
23:57
karma42 has joined #ruby
23:58
sivsushruth has joined #ruby
23:59
dfinninger has joined #ruby
23:59
Spami has quit [Quit: This computer has gone to sleep]