apeiros changed the topic of #ruby to: Ruby 2.1.4; 2.0.0-p594; 1.9.3-p550: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
devdazed has joined #ruby
webgen has quit [Ping timeout: 244 seconds]
zzz_AR45 is now known as AR45
geggam has quit [Ping timeout: 260 seconds]
seanp2k has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
<eam> >> class Fixnum; def -@; "#{self}-ish" end end; [1, -1, - 1, -1 - 1]
<eval-in__> eam => [1, -1, "1-ish", -2] (https://eval.in/219750)
charliesome has joined #ruby
tkuchiki has joined #ruby
jaequery has joined #ruby
mib_mib has quit [Ping timeout: 272 seconds]
<havenwood> eam: --1 #=> "-1-ish"
<eam> :D
<jaequery> hi guys, anyone here use sequel to query postgres' json data type?
<eam> >> class Fixnum; def -@; "#{self}-ish" end end; [1, -1, - 1, -1 - 1, ----------------1]
<eval-in__> eam => undefined method `-@' for "-1-ish":String (NoMethodError) ... (https://eval.in/219751)
duggiefresh has quit [Remote host closed the connection]
marr has quit [Ping timeout: 250 seconds]
Xeago_ has joined #ruby
<jaequery> i can see how you insert json data to postgres' json data type, but how can i query it? like mongo style within Sequel?
duggiefresh has joined #ruby
mathias1 has joined #ruby
Cat_1 has quit []
lmickh has quit [Remote host closed the connection]
asuka has quit [Ping timeout: 256 seconds]
asuka has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
thsig_ has quit []
mathias1 has quit [Ping timeout: 250 seconds]
cleopatra3 has joined #ruby
duggiefresh has quit [Ping timeout: 264 seconds]
jobewan has joined #ruby
skolman_ has joined #ruby
philwantsfish has quit [Ping timeout: 256 seconds]
cleopatra3 has quit [Client Quit]
<ramfjord> you are probably looking in the wrong place here
<ramfjord> just use a string and fill in the values worst case
centrx has quit [Ping timeout: 244 seconds]
<ramfjord> and be sure to use gin/gist indexes, which have some significant trade offs, on hstore columns
<jaequery> ok cool
adriancb has quit [Remote host closed the connection]
<jaequery> with json data store
<jaequery> can i do a WHERE clause like WHERE data->person->name='something' ? and how are performances?
<ramfjord> actiually I may have given you the wrong docs
tkuchiki has quit [Ping timeout: 250 seconds]
<eam> >> [Object,Fixnum].each { |k| k.class_eval { define_method(:-@){"#{self}-ish" } } }; [1, -1, - 1, -1 - 1, - --- -- ---1]
<eval-in__> eam => [1, -1, "1-ish", -2, "-1-ish-ish-ish-ish-ish-ish-ish-ish"] (https://eval.in/219752)
cleopatras has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<havenwood> eam: ship it!
VanillaGoat__ has joined #ruby
aspires has quit []
stunder has quit [Quit: Screw you guys I'm going home]
<eam> the emoticon in the middle is my favorite part
<ramfjord> jaequery: you will have better luck in the #postgresql channel
<havenwood> like when you get to inject a monkey: inject(:[])
<ramfjord> it looks like the where clause is more like WHERE jdoc @> '{"company": "Magnafone"}';
aspires has joined #ruby
VanillaGoat_ has quit [Ping timeout: 245 seconds]
bMalum has quit [Quit: bMalum]
moritzs has joined #ruby
centrx has joined #ruby
MattB2 has joined #ruby
havenwood has quit []
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest86461 has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
snovity has quit [Ping timeout: 264 seconds]
AR45 has quit [Quit: See ya!]
pasv has joined #ruby
pasv is now known as Guest58729
zzz_AR45 has joined #ruby
rshetty has joined #ruby
mib_mib has joined #ruby
fartface has quit [Remote host closed the connection]
oo_ has joined #ruby
aspires has quit []
aspires has joined #ruby
Bira has joined #ruby
skolman_ has quit [Remote host closed the connection]
neoxquick has quit [Ping timeout: 258 seconds]
i0n has quit [Quit: snooze]
rshetty has quit [Ping timeout: 264 seconds]
agjacome has quit [Ping timeout: 265 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has quit [Quit: Blue Sky Fish]
mib_mib has quit [Ping timeout: 250 seconds]
porfa has quit [Quit: porfa]
<KA-EL-MAN> Got trolled by some dudes at the bar. They poured a bunch of salt into my coffee. Once I started drinking, I heard them snickering. I stared at them the whole time. Downing my coffee as I just stared. They weren't laughing after that. So in other news, I burnt my tongue on boiling hot salty coffee trying to look like a badass.
skolman has joined #ruby
pragmatism has joined #ruby
<zenspider> hahahaha
Bira has quit [Ping timeout: 250 seconds]
<zenspider> actually, adding salt to (bad) coffee is one way to make it more drinkable
<zenspider> but perhaps not gulpable
sailias has joined #ruby
michael3 has joined #ruby
<KA-EL-MAN> :D
ramfjord has quit [Quit: leaving]
Ethan3 has joined #ruby
enebo has quit [Quit: enebo]
ramfjord has joined #ruby
xwq17 has joined #ruby
<zenspider> it really does work. it's odd, but it counters the bitter flavor in over-oxidized coffee
michael3 has quit [Client Quit]
<zenspider> god damn I'm tired of PM spam from this room
TPBallbag has quit [Remote host closed the connection]
o0oo0o has joined #ruby
KC9YDN-2 has quit [Ping timeout: 250 seconds]
AR45 has joined #ruby
sevenseacat has joined #ruby
nkumari has quit [Remote host closed the connection]
<KA-EL-MAN> will try to sample a bit of my coffee with salt next time, see how it goes
<KA-EL-MAN> do we have an artificial anti-spam intelligence? mmm? :D
samuel02 has joined #ruby
livingstn has joined #ruby
AR45 has quit [Client Quit]
DogsAndCatsAndMi has joined #ruby
<godd2> ka-el-man that's what apeiros is for
AR45 has joined #ruby
Cat_1 has joined #ruby
<mostlybadfly> has anyone used exercism? just submitted my first response, it seems pretty neat
AR45 has quit [Client Quit]
DogsAndCats has quit [Ping timeout: 255 seconds]
<pontiki> not personally, mostlybadfly, but i think it's a great site
samuel02 has quit [Ping timeout: 272 seconds]
<zenspider> mostlybadfly: I do exercism periodically
nkumari has joined #ruby
silkfox has joined #ruby
AR45 has joined #ruby
arescorpio has joined #ruby
<mostlybadfly> ah cool, hopefully I'll keep up on it, the first one was fun
porfa has joined #ruby
nkumari has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 255 seconds]
<zenspider> I should actually submit more problems rather than just give more critiques
nkumari has joined #ruby
ZaRDaK has quit [Quit: Leaving]
boombadaroomba has quit [Remote host closed the connection]
ghr has joined #ruby
Azure has joined #ruby
kobain has joined #ruby
graydot has quit [Quit: graydot]
seanp2k has quit [Quit: seanp2k]
djbkd has quit [Remote host closed the connection]
Azure has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alvaro_o has quit [Ping timeout: 245 seconds]
TPBallbag has joined #ruby
TPBallbag is now known as Guest47618
Azure has joined #ruby
jimbach has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 265 seconds]
larissa has quit [Quit: Leaving]
graydot has joined #ruby
Guest47618 has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
fabrice31 has joined #ruby
djbkd has joined #ruby
seanp2k has joined #ruby
<pontiki> nice to have a balance, i suppose
<pontiki> good examples and giving feedback
Xeago has joined #ruby
EasyCo has joined #ruby
duggiefresh has joined #ruby
<mostlybadfly> i'm looking at similar replies but I dont feel confident in suggesting anything just yet
j_mcnally has joined #ruby
mathias1 has joined #ruby
havenwood has joined #ruby
squar1sm has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iaj has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
Xeago_ has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
larissa has joined #ruby
mikepack has quit [Remote host closed the connection]
duggiefresh has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
mathias1 has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
JaTochNietDan has quit [Ping timeout: 244 seconds]
zz_twistedpixels is now known as twistedpixels
x1337807x has joined #ruby
squar1sm has quit [Ping timeout: 245 seconds]
triple_b has joined #ruby
jimbach has joined #ruby
adriancb has joined #ruby
tkuchiki has joined #ruby
iaj has joined #ruby
triple_b has quit [Client Quit]
chrisja has quit [Quit: leaving]
timonv_ has joined #ruby
moritzs has quit [Ping timeout: 244 seconds]
klaut_ has quit [Remote host closed the connection]
mib_mib has joined #ruby
JaTochNietDan has joined #ruby
rylev has quit [Remote host closed the connection]
hamakn has joined #ruby
tokik has joined #ruby
timonv_ has quit [Ping timeout: 258 seconds]
robustus|Off has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Quit: Leaving]
cantonic has quit [Quit: cantonic]
JaTochNietDan has quit [Ping timeout: 265 seconds]
robustus has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
thagomizer has quit [Quit: Leaving.]
JoshGlzBrk has joined #ruby
zacts has joined #ruby
JaTochNietDan has joined #ruby
Norrin has quit [Excess Flood]
connix has quit [K-Lined]
adriancb has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
omosoj has quit [Ping timeout: 264 seconds]
omosoj has joined #ruby
wigirc has joined #ruby
baweaver has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
michael4 is now known as Mars`
skolman has quit [Remote host closed the connection]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
mengu has quit [Ping timeout: 265 seconds]
skolman_ has joined #ruby
neoxquick has joined #ruby
Norrin has joined #ruby
KA-EL-MAN has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vlad_starkov has quit [Ping timeout: 240 seconds]
insaneinside has joined #ruby
JaTochNietDan has quit [Ping timeout: 272 seconds]
pengin has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
baweaver has joined #ruby
pengin has joined #ruby
<insaneinside> Best way to figure out where in *my* code a SystemStackError is coming from?
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DogsOrCats has joined #ruby
<sevenseacat> look at the backtrace.
<insaneinside> sevenseacat: good one.
<insaneinside> I've never seen a SystemStackError with a backtrace attached. It's like ruby tosses it out.
Bira has joined #ruby
havenwood has quit [Remote host closed the connection]
<insaneinside> Stack too big? Oops, I guess we'll have to truncate it.
vlad_starkov has joined #ruby
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
<waxjar> it's probably a bit of a waste printing the full backtrace
<insaneinside> yeah, but ANYthing would help.
Hijiri has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
moritzs has joined #ruby
<insaneinside> even a partial backtrace would be nice...
<pragmatism> insaneinside drop in some puts
<pragmatism> back to the basics.
<zenspider> shouldn't be dropping the whole stacktrace. just the repeating portion
DogsAndCatsAndMi has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
<insaneinside> oh, it's the magic zenspider! :)
pengin has quit [Ping timeout: 265 seconds]
<insaneinside> yeah, all i get is: /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:143: stack level too deep (SystemStackError)
Bira has quit [Ping timeout: 266 seconds]
sailias has quit [Quit: Leaving.]
graydot has quit [Quit: graydot]
oo_ has joined #ruby
rgrasso has joined #ruby
MattB2 has quit []
arup_r has joined #ruby
jobewan has quit [Ping timeout: 250 seconds]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
mikesplain has joined #ruby
amclain has joined #ruby
dkb20k has joined #ruby
mikesplain has quit [Max SendQ exceeded]
Timgauthier is now known as timgauthier_away
corehook has joined #ruby
mikesplain has joined #ruby
<insaneinside> !!! oh. so i'm doing something that's probably against common sense, and using my own library-namespaced `require` that skips RubyGems' stack-uglifying stupidity for most intra-library files --- this must either cause it, or narrow down the places where that gem-infected call took place.
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hiyosi has quit [Read error: Connection reset by peer]
ckrailo has quit [Ping timeout: 260 seconds]
vifino has quit [Ping timeout: 260 seconds]
heftig has quit [Ping timeout: 260 seconds]
leslie has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 260 seconds]
magic has quit [Ping timeout: 260 seconds]
mrgrieves has quit [Ping timeout: 260 seconds]
Trieste has quit [Ping timeout: 260 seconds]
Lucky__ has quit [Ping timeout: 260 seconds]
shtirlic has quit [Ping timeout: 260 seconds]
goshdarnyou has quit [Ping timeout: 260 seconds]
casual has quit [Ping timeout: 260 seconds]
kapowaz_ has quit [Ping timeout: 260 seconds]
exadeci has quit [Ping timeout: 260 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
Jello_Raptor has quit [Ping timeout: 260 seconds]
ramblinpeck has quit [Ping timeout: 260 seconds]
peckermanzzz has quit [Ping timeout: 260 seconds]
Sammael has quit [Ping timeout: 260 seconds]
ujjain has quit [Ping timeout: 260 seconds]
ta has quit [Ping timeout: 263 seconds]
Guest32568 has quit [Ping timeout: 263 seconds]
phrozen77 has quit [Ping timeout: 263 seconds]
charles81 has quit [Ping timeout: 291 seconds]
heyimwill has quit [Ping timeout: 263 seconds]
casual has joined #ruby
heyimwill has joined #ruby
magicien has quit [Ping timeout: 260 seconds]
elektronaut has quit [Ping timeout: 261 seconds]
shevy has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Remote host closed the connection]
alem0lars has quit [Ping timeout: 257 seconds]
mattmcclure has quit [Ping timeout: 257 seconds]
olivier_bK has quit [Ping timeout: 257 seconds]
marcdel has quit [Ping timeout: 257 seconds]
sjohnsen has quit [Ping timeout: 257 seconds]
mgorbach has quit [Ping timeout: 257 seconds]
ionelmc has quit [Ping timeout: 257 seconds]
im0b_ has quit [Ping timeout: 257 seconds]
ikanobori_ has quit [Ping timeout: 257 seconds]
Caius has quit [Ping timeout: 257 seconds]
nemesit|znc has quit [Ping timeout: 257 seconds]
cnj has quit [Ping timeout: 257 seconds]
Mon_Ouie has joined #ruby
magicien has joined #ruby
maZtah has quit [Ping timeout: 257 seconds]
featheryahn has quit [Ping timeout: 257 seconds]
yo61 has quit [Ping timeout: 257 seconds]
wookiehangover has quit [Ping timeout: 257 seconds]
JStoker has quit [Ping timeout: 257 seconds]
ohcibi has quit [Ping timeout: 268 seconds]
cj has quit [Ping timeout: 268 seconds]
jds has quit [Ping timeout: 271 seconds]
mroth has quit [Ping timeout: 271 seconds]
keelerm has quit [Ping timeout: 271 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
S0da has joined #ruby
davispuh has quit [Ping timeout: 250 seconds]
i_s has quit [Remote host closed the connection]
zcreative has joined #ruby
ixti has quit [Ping timeout: 264 seconds]
pietr0 has quit [Quit: pietr0]
i_s has joined #ruby
hiyosi_ has joined #ruby
qbjc has joined #ruby
hamakn has joined #ruby
rgrasso has quit [Quit: Linkinus - http://linkinus.com]
ckrailo_ has joined #ruby
ta_ has joined #ruby
i8igmac has joined #ruby
ckrailo_ is now known as ckrailo
i_s has quit [Ping timeout: 244 seconds]
<i8igmac> im trying to figure out a ip regex.
<insaneinside> i8igmac: IPv4 or IPv6?
mrgrieve1 has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
magic_ has joined #ruby
goshdarnyou_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<i8igmac> [0-255].[0-255].[0-255].[0-255].[0-255]
<i8igmac> v4
baweaver has quit [Remote host closed the connection]
<i8igmac> i need to learn this regex
gsd has joined #ruby
<i8igmac> start using it more
ramblinpeck_ has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> one too many octets there
<wallerdev> dont use regex for ips lol
nateberkopec has joined #ruby
<pontiki> srsly
goshdarnyou_ is now known as goshdarnyou
<i8igmac> its part of a big regex, not just ip
Igneous has joined #ruby
exadeci_ has joined #ruby
baweaver has joined #ruby
<insaneinside> also, that's zero to two, or a five, for each character class listed.
ramblinpeck_ is now known as ramblinpeck
magic_ is now known as magic
magicien has quit [Changing host]
magicien has joined #ruby
casual has quit [Changing host]
casual has joined #ruby
Igneous is now known as Guest17263
<insaneinside> Equivalent to [0125]
<pontiki> oh, did not see that as a regexp
<insaneinside> i8igmac: would match e.g., 1.2.5.0.5.2
hellome has quit [Read error: Connection reset by peer]
<i8igmac> woops
Mon_Ouie has joined #ruby
ikanobori__ has joined #ruby
charles81 has joined #ruby
Mon_Ouie has quit [Changing host]
<insaneinside> i8igmac: or 1+5>0k2~1
cj_ has joined #ruby
shevy has joined #ruby
<i8igmac> this regex is confusing at first lol
<insaneinside> you probably meant to escape the dots.
<pontiki> it would also match 1111111111
cnj has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<i8igmac> \.
marcdel has joined #ruby
jenrzzz has joined #ruby
ghr has joined #ruby
featheryahn has joined #ruby
im0b_ has joined #ruby
mroth_ has joined #ruby
kapowaz_ has joined #ruby
jds has joined #ruby
<insaneinside> I've done all sorts of stupid things with regular expressions in Ruby. C11 parser? Done it. (Hey, I *said* stupid!)
cj_ is now known as cj
maZtah has joined #ruby
mgorbach has joined #ruby
chipotle has joined #ruby
cantonic has joined #ruby
jnollette has quit [Changing host]
jnollette has joined #ruby
Jello_Raptor has joined #ruby
ionelmc has joined #ruby
gsd has quit [Ping timeout: 255 seconds]
magicien has quit [Remote host closed the connection]
olivier_bK has joined #ruby
ujjain has joined #ruby
Caius has joined #ruby
SpaceKookie has joined #ruby
elektronaut has joined #ruby
wookiehangover has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
magicien has joined #ruby
<i8igmac> this is ugly
<i8igmac> ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
yo61 has joined #ruby
<i8igmac> found that online
peckermanzzz has joined #ruby
olivier_bK has quit [Excess Flood]
<insaneinside> ew
Caius is now known as Guest87505
baweaver has quit [Ping timeout: 265 seconds]
<insaneinside> someone does not know Regexp Zen. :)
magicien has quit [Changing host]
magicien has joined #ruby
mattmcclure has joined #ruby
_maes_ has joined #ruby
heftig has joined #ruby
Trieste has joined #ruby
phrozen77 has joined #ruby
vifino has joined #ruby
ohcibi has joined #ruby
nemesit|znc has joined #ruby
JStoker has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Trieste has joined #ruby
Trieste has quit [Changing host]
JStoker has quit [Changing host]
JStoker has joined #ruby
phrozen77 has quit [Excess Flood]
Trieste has quit [Excess Flood]
JStoker has quit [Excess Flood]
lkba has joined #ruby
olivier_bK has joined #ruby
shtirlic has joined #ruby
MissionCritical has quit [Ping timeout: 273 seconds]
olivier_bK has quit [Excess Flood]
aspires has quit []
ghr has quit [Ping timeout: 255 seconds]
<insaneinside> if you want to match *any* IPv4 address, /^[0-9]{1,3}(?:\.[0-9]{1,3}){3}$/ should do it
jlast has joined #ruby
oo_ has quit [Remote host closed the connection]
* insaneinside probably made some silly mistake in there that someone will soon point out.
TPBallbag has joined #ruby
mikepack has joined #ruby
TPBallbag is now known as Guest77390
hamakn has joined #ruby
sinequanon has quit [Remote host closed the connection]
nonks has joined #ruby
<i8igmac> thhank u
<insaneinside> np
olivier_bK has joined #ruby
Trieste has joined #ruby
phrozen77 has joined #ruby
Trieste has quit [Excess Flood]
Trieste has joined #ruby
mathias1 has joined #ruby
JStoker_ has joined #ruby
JStoker_ is now known as JStoker
JaTochNietDan has joined #ruby
alem0lars has joined #ruby
eka has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
Guest77390 has quit [Ping timeout: 265 seconds]
lifenoodles has quit [Ping timeout: 264 seconds]
patteh_ has joined #ruby
patteh has quit [Ping timeout: 264 seconds]
MatthewsFace has quit [Ping timeout: 264 seconds]
JStoker has quit [Excess Flood]
ccooke has quit [Ping timeout: 264 seconds]
Authenticator has quit [Ping timeout: 264 seconds]
JStoker has joined #ruby
ccooke has joined #ruby
<pontiki> insaneinside: that will, of course, match 999.999.999.999 :>
Authenticator has joined #ruby
<sevenseacat> that'll match a whole lot more than valid IPv4 addresses
<sevenseacat> i dont know exactly what it does, but it will let me put in values like 999
bricker`work has quit [Ping timeout: 258 seconds]
MatthewsFace has joined #ruby
nickenchuggets has quit [Quit: nickenchuggets]
<insaneinside> i8igmac: see! told you. :D
mattmcclure has quit [Quit: Connection closed for inactivity]
lkba has quit [Ping timeout: 256 seconds]
<pontiki> the one i8igmac showed actually will get numbers in the right range for each octet
<pontiki> but dang
mathias1 has quit [Ping timeout: 240 seconds]
<insaneinside> i8igmac: that's why regexps aren't so great for that unless paired with extra code for validation.
robbyoconnor has quit [Max SendQ exceeded]
JaTochNietDan has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
jimbach has quit [Remote host closed the connection]
dc_ has joined #ruby
skolman_ has joined #ruby
zcreative has quit [Quit: (null)]
rshetty has joined #ruby
<i8igmac> there is a bit more to this regex
<i8igmac> what im trying to scan for
wallerdev has quit [Quit: wallerdev]
lifenoodles has joined #ruby
<i8igmac> ?: <--- what is this
<insaneinside> that's an unnamed capture
chipotle has quit [Quit: cya]
<insaneinside> er
<insaneinside> not a capture
<insaneinside> an unnamed, uncaptured group
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<insaneinside> (the paren pair it occurs directly inside of, that is)
corehook has quit [Remote host closed the connection]
jimbach has joined #ruby
<insaneinside> www.ruby-doc.org/core/Regexp.html is a good reference.
dc_ has quit [Ping timeout: 255 seconds]
MissionCritical has joined #ruby
chipotle has joined #ruby
chishiki has quit [Quit: WeeChat 1.0.1]
cajone has quit [Ping timeout: 255 seconds]
skolman_ has quit [Remote host closed the connection]
allcentury has joined #ruby
cajone has joined #ruby
krz has joined #ruby
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
cajone has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 264 seconds]
jimbach has quit [Remote host closed the connection]
cajone has joined #ruby
<eam> perldoc perlre is an even better reference :D
AR45 has quit [Quit: WeeChat 1.0.1]
jaequery has joined #ruby
<jaequery> `/rejoin
jaequery has left #ruby [#ruby]
jaequery has joined #ruby
reset has quit [Quit: Linkinus - http://linkinus.com]
Dude007 has quit [Remote host closed the connection]
leathershibe has joined #ruby
Dude007 has joined #ruby
<leathershibe> sup
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
jnollette has quit [Changing host]
jnollette has joined #ruby
cajone has quit [Remote host closed the connection]
Sammael has joined #ruby
fuhgeddaboudit has joined #ruby
livingstn has quit []
jonr22 has joined #ruby
nickenchuggets has joined #ruby
mikeg has joined #ruby
zacts has quit [Quit: leaving]
cajone has joined #ruby
n008f4g_ has joined #ruby
sjohnsen has joined #ruby
djbkd has quit [Quit: My people need me...]
Vile` has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez5271 has joined #ruby
jnollette has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
<i8igmac> im trying to end my regex, how would you specify 'the very next matching string'
pdtpatrick has joined #ruby
<i8igmac> there are duplicate matching strings
Kricir has quit [Remote host closed the connection]
Vile` has joined #ruby
<insaneinside> i8igmac: not quite sure what you mean. You could use a look-ahead expression
Fire-Dragon-DoL has quit [Quit: Leaving.]
<i8igmac> the string will match a few hundred times and will go to the last match instead of the first match
x1337807x has joined #ruby
optiz0r has quit [Ping timeout: 255 seconds]
squar1sm has joined #ruby
mikeg has quit [Ping timeout: 244 seconds]
kireevco has quit [Ping timeout: 255 seconds]
<i8igmac> so, i feel like a dumb dumb lol... nothing new
jack_rabbit has joined #ruby
fabrice31 has joined #ruby
<insaneinside> it's okay, i always feel that way. :)
<i8igmac> "some junk im collecting, the next string 1q2w3e, but then it shows up again, a few hundred times1q2w3e. 1q2w3e4r"
yetanotherdave has quit [Ping timeout: 265 seconds]
livingstn has joined #ruby
<i8igmac> some junk.*.1q2w3e
<insaneinside> if you don't want to capture the text between one match and the next, you don't need to write anything special for it
<insaneinside> just write the RE to match the part you're interested in.
DarkCthulhu has joined #ruby
nateberkopec has joined #ruby
<i8igmac> .scan(/some.*.1q2w/)
ramfjord has quit [Ping timeout: 240 seconds]
jnollette has joined #ruby
<i8igmac> this will grab 1q2w at the end instd of the first
<insaneinside> yeah, the .* is greedy
fabrice31 has quit [Ping timeout: 256 seconds]
<insaneinside> you can put a ? after the * to make it less so.
<i8igmac> oh i love you
boombadaroomba has joined #ruby
<insaneinside> But why the "some" in there?
<i8igmac> just the start of my regex by example ,-)
<insaneinside> Does your first match only happen after that word appears?
<insaneinside> ah
Jake232 has joined #ruby
<i8igmac> .*? was the trick
duplex has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
duplex has joined #ruby
tyll has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
Cache_Money has joined #ruby
fuhgeddaboudit has quit [Quit: Ex-Chat]
n008f4g_ has quit [Ping timeout: 245 seconds]
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
boombadaroomba has quit [Ping timeout: 255 seconds]
fuhgeddaboudit has joined #ruby
Techguy305 has joined #ruby
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Remote host closed the connection]
jlast has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tyll_ has quit [Ping timeout: 250 seconds]
Vivekananda has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 264 seconds]
zacts has joined #ruby
<i8igmac> the example usage of *? is confusing
<i8igmac> Regexp.escape('\*?{}.') #=> \\\*\?\{\}\.
<i8igmac> just looks like crap lol
jonr22 has joined #ruby
patric100e99 has joined #ruby
n008f4g_ has joined #ruby
<i8igmac> again, thanks for your help, this has been a problem i struggle with regex... .*?
<i8igmac> so simple
squar1sm has quit [Ping timeout: 264 seconds]
<insaneinside> np, helping people is fun. :)
timonv_ has joined #ruby
<i8igmac> i will remember that one
Xeago has quit [Remote host closed the connection]
chishiki has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
mathias1 has joined #ruby
yetanotherdave has joined #ruby
patric100e99 has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 250 seconds]
st1gma has joined #ruby
Killerkeksdose has quit [Read error: Connection reset by peer]
Killerkeksdose has joined #ruby
mathias1 has quit [Ping timeout: 265 seconds]
yetanotherdave has quit [Client Quit]
jnollette has quit [Quit: Signing off.]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jnollette has joined #ruby
jonr22 has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
fuhgeddaboudit has quit [Remote host closed the connection]
troyready has quit [Ping timeout: 255 seconds]
magic_ has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
luriv has quit [Ping timeout: 240 seconds]
mikesplain has joined #ruby
Takle_ has quit [Remote host closed the connection]
mattmcclure has joined #ruby
alvaro_o has joined #ruby
jonr22 has joined #ruby
Spami has joined #ruby
Bira has joined #ruby
JoshGlzBrk has joined #ruby
AR45 has joined #ruby
chipotle has quit [Quit: cya]
vectra has quit [Excess Flood]
gmas has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
Bira has quit [Ping timeout: 265 seconds]
narcan has joined #ruby
<gmas> does anyone know of any notable changes with Regex between mri 2.0.0 and 2.1.4? https://gist.github.com/gmas/c1331ed9655bccf3bf61
adriancb has joined #ruby
Vile` has joined #ruby
<gmas> yes, I know I shouldn't try to validate emails with regexp
atraylen has joined #ruby
Killerkeksdose has quit [Read error: Connection reset by peer]
Killerkeksdose has joined #ruby
nickenchuggets has quit [Quit: nickenchuggets]
mib_mib has quit [Ping timeout: 244 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
mib_mib has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
squar1sm has joined #ruby
<gr33n7007h> 19>> %r{(?!.*\.{2}).*\w@}.match('user..abc@email.com')
<eval-in__> gr33n7007h => #<MatchData ".abc@"> (https://eval.in/219786)
<gr33n7007h> 20>> %r{(?!.*\.{2}).*\w@}.match('user..abc@email.com')
<eval-in__> gr33n7007h => nil (https://eval.in/219787)
<gr33n7007h> hmm..
adriancb has quit [Remote host closed the connection]
<soahccc> gmas: to be honest, it is invalid and it is uncommon but I can send myself emails to asd..asd@mydomain.com
Joufflu has quit [Read error: Connection reset by peer]
mikesplain has quit [Ping timeout: 250 seconds]
<gmas> soahccc: our email provider doesn't accept any address with .. in it
<soahccc> gmas: well I have catch-all maybe it's that
Dude007 has quit [Read error: Connection reset by peer]
<soahccc> my mail program warned me as well that I'm sending a mail to an invalid address
<gmas> maybe, but not all gateways allow forwarding to addresses that contain ..
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dude007 has joined #ruby
mib_mib has quit [Ping timeout: 265 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikesplain has joined #ruby
<soahccc> gmas: Wouldn't fix your problem but do you know this one? https://github.com/mailcheck/mailcheck
<soahccc> Helped us a lot since most people misspelled the domain part (otmail.com, hotmai.com, etc.)
radic has joined #ruby
centrx has quit [Ping timeout: 265 seconds]
<gmas> soahccc: thanks, I know there are better ways of handlings this. I'm more curious about what changed in Ruby
jaequery has joined #ruby
bluOxigen has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
nickenchuggets has joined #ruby
silkfox has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
seanp2k has quit [Quit: seanp2k]
<i8igmac> ["z6j0=9657", "v2m3=9773", "s9y5=6413"].each{|x| eval(x)}
<gmas> btw, looks like anchoring the expression fixes the issue: %r{^(?!.*\.{2}).*\w@}x.match('user..abc@email.com'))
adriancb has joined #ruby
<i8igmac> each x has not been evaluated lol idk
ghr has joined #ruby
<i8igmac> z6j0+v2m3 => undefined local variable
mikepack has quit [Remote host closed the connection]
<i8igmac> this is strange
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atraylen has quit [Quit: Nettalk6 - www.ntalk.de]
<soahccc> i8igmac: does eval raise an error? works for me
mikesplain has joined #ruby
<i8igmac> im working with old scripts and new versions of ruby
<i8igmac> what version are you on
<soahccc> gmas: you may want to use \A and \z if you are paranoid :)
<i8igmac> soahccc, ruby 1.9.3p194 (2012-04-20 revision 35410) [i486-linux]
<i8igmac> you on 1.8?
silkfox has quit [Ping timeout: 265 seconds]
<i8igmac> also, strange error eval(v2m3=9773)=> cant convert fix num into string
<soahccc> I started with ruby 1.9 ;) but it works for me on 1.9 and 2.1
<soahccc> you missed the quotes there
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gmas> soahccc: good point
jlast has joined #ruby
<gmas> I am paranoid, thanks ;)
ghr has quit [Ping timeout: 255 seconds]
<i8igmac> this is strange
<soahccc> hehe :) A lot of people just don't know about this thing (it's only ruby who does that I think)
oo_ has quit [Remote host closed the connection]
<soahccc> i8igmac: I guess your problem is scope
<i8igmac> im confused, ["z6j0=9657", "v2m3=9773", "s9y5=6413"].each{|x| puts eval(x)}
centrx has joined #ruby
<i8igmac> z6j0+v2m3= error for you ?
jonr22 has quit []
centrx has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
<zacts> is there a ruby newbies channel?
<zacts> or is this it?
crus has joined #ruby
<i8igmac> this is the place people make you feel stupid for asking questions related to ruby
<eam> zacts: this is it, we're all newbies unfortunately. makes helping each others quite awkward
<soahccc> >> eval("a=9773 ; puts a") ; a
<eval-in__> soahccc => 9773 ... (https://eval.in/219794)
<eam> zacts: what can we help you with?
<zacts> ok cool! =)
jlast has quit [Ping timeout: 258 seconds]
<soahccc> i8igmac: https://eval.in/219794 (see scope)
<zacts> eam: well, I'm sure I'll have questions in the days / weeks to come, but for now that's my only question.
braincrash has joined #ruby
mathias1 has joined #ruby
Spami has joined #ruby
jonr22 has joined #ruby
<zacts> Ruby is going to be my secondish language. I'm coming from a bit of Perl.
<i8igmac> soahccc, im confused, is this a real problem? a bug?
<zacts> I hope to also learn a bit of OOP with ruby.
<eam> zacts: perl is a great language
havenwood has joined #ruby
<zacts> yes I really like it
<soahccc> i8igmac: It's supposed to be like this... you may want to pass your binding to eval then
<eam> ruby is very similar, you'll probably enjoy it quite a bit
<zacts> nice
rshetty has joined #ruby
* soahccc always sees this image in his head when he hears "pearl" http://tech.paulcz.net/presentation-logstash/images/apache-regex-dude.png
iliketurtles has joined #ruby
<eam> what's pearl
<soahccc> *perl :D
<eam> :D
<soahccc> pearl is a discounter selling garbage
adriancb has quit [Remote host closed the connection]
mathias1 has quit [Ping timeout: 255 seconds]
<i8igmac> eval(a=1)=>can't convert Fixnum into String
adriancb has joined #ruby
<i8igmac> eval("a=1"); puts a => undefined local variable
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<soahccc> >> eval("a=1", binding) ; puts a
<eval-in__> soahccc => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/219796)
<i8igmac> is it ok if i scream
livingstn has quit []
<eam> >> a = a
<eval-in__> eam => nil (https://eval.in/219797)
silkfox has joined #ruby
<eam> ^^ objectivism is valid syntax
jonr22 has quit [Remote host closed the connection]
<rpag> >> binding.local_variable_set(:a, 1); a
<eval-in__> rpag => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/219798)
jonr22 has joined #ruby
<soahccc> should work with binding, no? O.o
<eam> no it creates a sub-binding
dc_ has joined #ruby
<soahccc> "If binding is given, which must be a Binding object, the evaluation is performed in its context."
<eam> yes but it's not the same binding as where you evaluated a
<rpag> yeah, a new binding is created each time, and assignments are local to the binding
<soahccc> curiously enough, you can redefine stuff even without passing a binding
bricker`work has quit [Ping timeout: 255 seconds]
<soahccc> >> a = 1; eval("a=2"); puts a
<eval-in__> soahccc => 2 ... (https://eval.in/219805)
<rpag> that shadows the inner a
<eam> that's not redefinition that's simple assignment
<soahccc> why can I change a local variable but not creating a new one?
<eam> you can create a new one, but it's visible to eval's binding
jonr22 has quit [Ping timeout: 258 seconds]
dc_ has quit [Ping timeout: 250 seconds]
<soahccc> but shouldn't the locals of self visible to the eval binding? It's like a binding mix
silkfox has quit [Ping timeout: 265 seconds]
Eiam_ has joined #ruby
<eam> >> b = binding; b.eval "a = 1"; [b.eval "a", (a rescue "undefined")]
<eval-in__> eam => /tmp/execpad-44c0380f1ae8/source-44c0380f1ae8:2: syntax error, unexpected tSTRING_BEG, expecting ']' ... (https://eval.in/219806)
samuel02 has joined #ruby
kireevco has joined #ruby
<insaneinside> this looks like a security feature to me.
<eam> whops
<insaneinside> not sure how.
<eam> >> b = binding; b.eval "a = 1"; [b.eval("a"), (a rescue "undefined")]
<eval-in__> eam => [1, "undefined"] (https://eval.in/219807)
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<eam> soahccc: the binding in b is a sub-binding of the encompasing binding
arescorpio has quit [Excess Flood]
<eam> >> b = binding; b.eval "a = 1"; [b.eval("a"), (a rescue "undefined"), b.inspect]
<eval-in__> eam => [1, "undefined", "#<Binding:0x41440e1c>"] (https://eval.in/219808)
<eam> >> b = binding; b.eval "a = 1"; [b.eval("a"), (a rescue "undefined"), b.inspect, b.eval "b.inspect"]
<eval-in__> eam => /tmp/execpad-a4ea4d2cb303/source-a4ea4d2cb303:2: syntax error, unexpected tSTRING_BEG, expecting ']' ... (https://eval.in/219809)
<eam> >> b = binding; b.eval "a = 1"; [b.eval("a"), (a rescue "undefined"), b.inspect, b.eval("b.inspect")]
<eval-in__> eam => [1, "undefined", "#<Binding:0x41bd0d58>", "#<Binding:0x41bd0d58>"] (https://eval.in/219810)
<eam> stupid parser
Itachi_Uchiha has joined #ruby
Itachi_Uchiha is now known as shortCircuit__
<soahccc> Apparently it's even nicely explained here http://www.ruby-doc.org/core-2.1.4/Binding.html
takle has joined #ruby
dorei has quit []
bricker`work has joined #ruby
samuel02 has quit [Ping timeout: 264 seconds]
<Nilium> I got a Google blanket today for my Ruby gems
bricker`work has quit [Client Quit]
JaTochNietDan has joined #ruby
takle has quit [Ping timeout: 265 seconds]
chipotle has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
ramfjord has joined #ruby
Xiti` has joined #ruby
<soahccc> Nilium: from google?
Xiti` has quit [Read error: Connection reset by peer]
<Nilium> Yes
<Nilium> They also sent me monies, but I don't have those yet
arup_r has quit [Quit: Leaving.]
Xiti has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
jgrevich has joined #ruby
Jake232 has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby
<soahccc> Nilium: interesting :) Is that more "we support open source" or more "we use your gem and want to thank you"?
kyb3r_ has joined #ruby
oo_ has joined #ruby
x1337807x has joined #ruby
<Nilium> Former
<Nilium> My brother nominated me for the Ruby stuff I did, since he works at Google
fandi has quit [Read error: Connection reset by peer]
<soahccc> cool
<Nilium> Yeah
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nagaraj has joined #ruby
<leathershibe> nice, such soft
oo_ has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
rshetty has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
michaeldeol has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
udoprog has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
cerberblue has quit [Ping timeout: 250 seconds]
michaelchum_ has joined #ruby
leathershibe has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
qbjc has quit [Quit: Ex-Chat]
lkba has joined #ruby
blenny_ is now known as blenny
michaelchum_ is now known as michaelchum
graydot has joined #ruby
renderful has joined #ruby
robbyoconnor has joined #ruby
gsd has joined #ruby
S0da has quit [Remote host closed the connection]
nickenchuggets has quit [Quit: nickenchuggets]
sinequanon has joined #ruby
timonv_ has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
kiki_lamb has quit [Quit: leaving]
spyderman4g63 has quit [Ping timeout: 255 seconds]
kiki_lamb has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
sbar_ has joined #ruby
timonv_ has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
garbanotas has quit [Ping timeout: 272 seconds]
shortCircuit__ has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 255 seconds]
DogsOrCats has quit [Quit: Leaving]
spyderman4g63 has joined #ruby
chipotle has quit [Quit: cya]
oo_ has joined #ruby
mathias1 has joined #ruby
allcentury has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
jusmyth has joined #ruby
chipotle has joined #ruby
zacts has quit [Disconnected by services]
allcentury has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
Bira has joined #ruby
minikomi has joined #ruby
squar1sm has quit [Quit: leaving]
shortCircuit__ has joined #ruby
rshetty_ has joined #ruby
larissa has quit [Quit: Leaving]
mr_rogerz_ has joined #ruby
JohnBat26 has joined #ruby
tatsuo has joined #ruby
Synthead has quit [Ping timeout: 272 seconds]
Bira has quit [Ping timeout: 240 seconds]
rshetty has quit [Ping timeout: 256 seconds]
noop has joined #ruby
sinequanon has quit [Remote host closed the connection]
Morkel has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
Synthead has joined #ruby
hephaestus_rg has joined #ruby
insaneinside has left #ruby ["bye"]
hephaestus_rg has quit [Ping timeout: 250 seconds]
noop has quit [Ping timeout: 255 seconds]
graydot has quit [Quit: graydot]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Techguy305 has quit [Ping timeout: 245 seconds]
Snarkz has joined #ruby
nagaraj has quit [Quit: nagaraj]
nagaraj has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
mikepack has joined #ruby
TPBallbag has joined #ruby
Learningthangs has joined #ruby
TPBallbag is now known as Guest70856
<Learningthangs> Does ruby have something like java has eclipse?
bluehavana has quit [Quit: Connection closed for inactivity]
<zenspider> a crutch?
leathershibe has joined #ruby
<Learningthangs> Lmao I was just trying to get it out of the terminal since I'm just starting with it
<Learningthangs> Like I'm not used to using the terminal when writing multiple lines of code
<zenspider> welp. I like emacs. it has built in ruby support. it comes in gui flavors for whatever you're running
<VanillaGoat__> there's rubymine. sublime text will let you run your ruby files from an editor too
<Learningthangs> Ooo, see that's what I mean
<VanillaGoat__> won't let you give input though
<Learningthangs> The only example I could think of was eclipse though
<Learningthangs> So emacs and rubymine?
<VanillaGoat__> check out sublime text, and if you need more advanced features, trial rubymine, imo
<Learningthangs> Gotcha gotcha, thank you :D
<VanillaGoat__> sublime will let you run it and see the output, but other than that it's just a text editor. rubymine is a full on bit of kit with inspectors and breakpoints and all that.
<Learningthangs> And you said sublime text won't let you enter inputs?
Guest70856 has quit [Ping timeout: 258 seconds]
<Learningthangs> Ahh
<Learningthangs> Why do you prefer that over emacs?
ducklobster has quit [Remote host closed the connection]
leathershibe has quit [Ping timeout: 272 seconds]
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
vinleod has joined #ruby
arup_r has joined #ruby
Techguy305 has joined #ruby
<VanillaGoat__> sublime text is simpler than emacs and not as extensible, but much easier to start using, imo
mr_rogerz_ has quit [Ping timeout: 265 seconds]
noop has joined #ruby
Dude007 has quit [Remote host closed the connection]
<Learningthangs> I see, and how do you run code in sublime?
Dude007 has joined #ruby
<sevenseacat> why would you...
<Learningthangs> Literally new to this stuff
<Learningthangs> So I'm asking questions lol
Dude007 has quit [Read error: No route to host]
Dude007 has joined #ruby
<Learningthangs> Also you didn't finish your question, why would i...?
<Learningthangs> run code in sublime?
lxsameer has joined #ruby
<sevenseacat> why would you run your code in a text editor
<Learningthangs> Caues I'm only doing small things to learn the code and want to make sure it prints correctly? Should I not run it there? vanillagoat said I could
<Learningthangs> So I was asking, if I wanted to test my output, how would I run it?
Spami has quit [Quit: This computer has gone to sleep]
<sevenseacat> from a command line
Dude007 has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
anarang has joined #ruby
<Learningthangs> So even if the text editor lets you run the code just run it from the command line?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minikomi has left #ruby [#ruby]
JoshGlzBrk has joined #ruby
sevenseacat has joined #ruby
JBreit has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<Hijiri> emacs lets you run it from the editor
<Hijiri> I don't know about ruby, but there might be neat interactive modes where you can zoom to definitions and error locations and such
<Learningthangs> Ohh, but sublime doesn't?
<Hijiri> idk, I don't used propietary text editors
<Hijiri> don't use*
ghr has joined #ruby
<Learningthangs> Ohh. Emacs is for all platforms right/
<Hijiri> yes
<Hijiri> you will need to learn some keybindings to use it well, but the built-in tutorial covers some of the basics
<Hijiri> just as a disclaimer, I don't use ruby all that much so I don't know what there is for it in emacs
<Hijiri> but there is probably some ruby plugin (a "mode")
<Learningthangs> Someone earlier said it had built in support
<Learningthangs> for ruby
<Hijiri> alright, although there might be more functionality available from external plugins too
wex13r has quit [Read error: Connection reset by peer]
<Learningthangs> Ahh, okay
<Hijiri> there are probably guides if you use a search engine
<Hijiri> because I have to go
<Learningthangs> I'm looking now for where to get it and stuff
<Learningthangs> Thank you though!
jonr22 has joined #ruby
alex_the_designe has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ghr has quit [Ping timeout: 245 seconds]
<zacts> oh cool ruby has chomp like Perl
<zacts> so far I really like ruby
<Learningthangs> I haven't played much with it, its been a while since I've coded anything so I'm relearning a lot of stuff
jonr22 has quit [Ping timeout: 265 seconds]
leathershibe has joined #ruby
yfeldblum has joined #ruby
timonv_ has joined #ruby
samuel02 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo_ has joined #ruby
Xiti has joined #ruby
<tmoore> Learningthangs: I'll be the dissenting voice that says: if you're just starting trying to learn Ruby, don't try to learn emacs now too
<tmoore> it's a steep learning curve, totally independent from Ruby
ghostmoth has joined #ruby
<tmoore> I mean, try it, sure, but if you find yourself overwhelmed, take a step back
<tmoore> Sublime is good enough
takle has joined #ruby
<Learningthangs> Gotcha, I'm just trying to figure out where to start lol
<tmoore> or... I have been using Atom day to day recently
<tmoore> which is a lot like Sublime, but $0 and open source
<sevenseacat> start with installing ruby
danijoo has quit [Ping timeout: 250 seconds]
<sevenseacat> and whatever text editor you currently have on your system
timonv_ has quit [Ping timeout: 240 seconds]
<Learningthangs> I got ruby, and I've been learning syntax from the codeacademy thing
<sevenseacat> then you're well on the way
samuel02 has quit [Ping timeout: 260 seconds]
<Learningthangs> Cool
mikepack has quit [Remote host closed the connection]
leathershibe has quit [Ping timeout: 240 seconds]
neoxquick has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
oleo has quit [Quit: Verlassend]
takle has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
tobago has joined #ruby
tobago has quit [Changing host]
tobago has joined #ruby
yfeldblum has joined #ruby
<Eiam_> Nilium: your twitter background page made me think i had some corrupted memory going on..
anaeem1_ has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leathershibe has joined #ruby
noop has quit [Ping timeout: 265 seconds]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
DrewDr1248 has joined #ruby
corehook has joined #ruby
dseitz has joined #ruby
arup_r has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: zzz]
ndrei has joined #ruby
sinequanon has joined #ruby
Spami has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
<Nilium> Eiam_: No, that's just a git repository.
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
arup_r has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
oo_ has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
pancake_m has joined #ruby
tagrudev has joined #ruby
codecop has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Dude007 has joined #ruby
gauke has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
seanp2k has joined #ruby
timonv_ has joined #ruby
dseitz has joined #ruby
rshetty has joined #ruby
nrsk has joined #ruby
alex_the_designe has quit [Ping timeout: 264 seconds]
gauke has quit [Quit: gauke]
rshetty_ has quit [Ping timeout: 264 seconds]
gauke has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
gauke has quit [Client Quit]
keen___________1 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
rshetty_ has joined #ruby
keen___________0 has quit [Ping timeout: 250 seconds]
speaking1ode has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
speakingcode has quit [Ping timeout: 245 seconds]
rshetty__ has joined #ruby
rshetty has quit [Ping timeout: 250 seconds]
wex13r has joined #ruby
alex_the_designe has joined #ruby
dseitz has quit [Quit: restart]
rshetty has joined #ruby
rshetty_ has quit [Ping timeout: 265 seconds]
terlar has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
rshetty__ has quit [Ping timeout: 244 seconds]
gowtham_pidikiti has joined #ruby
dseitz has joined #ruby
mike32 has joined #ruby
michaeldeol has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sarkis has quit [Ping timeout: 245 seconds]
AR45 has quit [Quit: WeeChat 1.0.1]
bMalum has joined #ruby
leathershibe has quit [Ping timeout: 259 seconds]
ghr has joined #ruby
AR45 has joined #ruby
corehook has quit [Remote host closed the connection]
charliesome has joined #ruby
jusmyth has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
banister has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
banister has quit [Max SendQ exceeded]
Learningthangs has quit [Remote host closed the connection]
jusmyth has joined #ruby
banister has joined #ruby
jenrzzz_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
DrewDr1248 has quit [Ping timeout: 258 seconds]
alem0lars has quit [Excess Flood]
marcdel has quit []
leathershibe has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
mikhailvs has joined #ruby
Bira has quit [Ping timeout: 264 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mathias1 has quit [Ping timeout: 255 seconds]
Trieste has quit [Ping timeout: 275 seconds]
vifino has quit [Ping timeout: 275 seconds]
casual has quit [Ping timeout: 275 seconds]
xanderwebs has quit [Ping timeout: 275 seconds]
{xenomorph} has quit [Ping timeout: 275 seconds]
machete has quit [Ping timeout: 275 seconds]
soulcake has quit [Ping timeout: 275 seconds]
tiagonobre_ has quit [Ping timeout: 275 seconds]
cbetta has quit [Ping timeout: 275 seconds]
ewilliam has quit [Ping timeout: 275 seconds]
adambeynon has quit [Ping timeout: 275 seconds]
corehook has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Abhijit has joined #ruby
tlarevo has joined #ruby
olivier_bK has quit [Excess Flood]
samuel02 has joined #ruby
Abhijit has quit [Max SendQ exceeded]
xanderwebs_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
casual_ has joined #ruby
tiagonobre__ has joined #ruby
adambeynon_ has joined #ruby
Abhijit has joined #ruby
jhass has joined #ruby
talnti has joined #ruby
michaelchum has quit [Quit: Connection closed for inactivity]
ewilliam_ has joined #ruby
cbetta_ has joined #ruby
Machetez has joined #ruby
casual_ is now known as casual
soahccc has quit [Ping timeout: 255 seconds]
Abhijit has quit [Max SendQ exceeded]
suy has quit [Read error: Connection reset by peer]
takle has joined #ruby
suy has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
xanderwebs_ is now known as xanderwebs
timonv_ has joined #ruby
tiagonobre__ is now known as tiagonobre_
cbetta_ is now known as cbetta
mattstratton has joined #ruby
soahccc has joined #ruby
samuel02 has quit [Ping timeout: 258 seconds]
Mekkis has quit [Excess Flood]
nemesit|znc has quit [Ping timeout: 455 seconds]
shtirlic has quit [Ping timeout: 455 seconds]
ewilliam_ is now known as ewilliam
mikepack has joined #ruby
adambeynon_ is now known as adambeynon
timonv_ has quit [Remote host closed the connection]
takle has quit [Ping timeout: 264 seconds]
abuzze has joined #ruby
yfeldblum has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
RitterJack has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
ohcibi has quit [Write error: Broken pipe]
kalleth has quit [Write error: Broken pipe]
bauruine has quit [Excess Flood]
heftig has quit [Excess Flood]
drPoggs has quit [Excess Flood]
tlarevo has quit [Remote host closed the connection]
rfi has quit [Write error: Broken pipe]
Anarch has quit [Write error: Broken pipe]
magicien has quit [Write error: Broken pipe]
Mon_Ouie has quit [Write error: Broken pipe]
matchaw_ has quit [Write error: Broken pipe]
heyimwill has quit [Excess Flood]
_whitelogger has joined #ruby
<gaussblurinc11> hello!
francisfish has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<gaussblurinc11> is this a normal usage of constant? http://pastebin.com/2n9Xmmaw (method invocation seems bad)
<arup_r> Haha.. I am creating a billon dollar project.. Where I got stuck due to some error
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> But resolved ... it just adding the line - Capybara.default_driver = :poltergeist
<arup_r> Which I missed.
<arup_r> From the billon dollar project I shown you just 2 snippets.. sevenseacat
<arup_r> :-)
sarkis has quit [Ping timeout: 265 seconds]
aganov has joined #ruby
ghr has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heyimwill has joined #ruby
omosoj has quit [Ping timeout: 244 seconds]
corehook has quit [Remote host closed the connection]
shevy has joined #ruby
drPoggs has joined #ruby
<shevy> lalalala
adriancb has joined #ruby
<pragmatism> What.
<shevy> just woke up
<shevy> feeling shit
<pragmatism> Happy Tuesday.
ghr has quit [Ping timeout: 265 seconds]
<pragmatism> arup_r if you had a billion-dollar project, you wouldn't be in #RoR
tesuji has joined #ruby
<arup_r> Hahaa... No...
<arup_r> Because that is a non Ruby project
<i8igmac> im still stuck on this eval(a=1)
rshetty has joined #ruby
<i8igmac> eval("a=1")
<pragmatism> arup_r lol wut.
rshetty has quit [Read error: Connection reset by peer]
<arup_r> Yezzzzzz
<sevenseacat> thats a bit scary.
rshetty has joined #ruby
TomyWork has joined #ruby
corehook has joined #ruby
adriancb has quit [Ping timeout: 264 seconds]
jeaye has joined #ruby
samuel02 has joined #ruby
ohcibi has joined #ruby
<pragmatism> sevenseacat to which, both of them?
<sevenseacat> to the fact someone trusted a billion dollar project to someone who barely knows how to program
<arup_r> pragmatism : After that project.. I will buy a house in Moon and buy a rocket to come Earth and go back to moon..frequently.. How is the idea of living ?
andrewlio has joined #ruby
Suchit has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
mengu has joined #ruby
mengu has quit [Client Quit]
lolmaus has joined #ruby
unshadow has joined #ruby
nagaraj has quit [Ping timeout: 244 seconds]
nagaraj has joined #ruby
<shevy> i8igmac give up eval man
mikepack has joined #ruby
tkuchiki has joined #ruby
idoru has joined #ruby
peckermanzzz has joined #ruby
kies has joined #ruby
soulcake has joined #ruby
Caius has joined #ruby
olivier_bK has joined #ruby
mahlon has joined #ruby
danoo has joined #ruby
sjohnsen has joined #ruby
juni0r has joined #ruby
<shevy> become like arup_r i8igmac
<shevy> 100.000 karma on stackoverflow yet still asks newbie questions :-)
<arup_r> :p
<gaussblurinc11> hi! is this a normal usage of constant? http://pastebin.com/2n9Xmmaw (method invocation seems bad)
dc_ has joined #ruby
fabrice31 has joined #ruby
<shevy> "This paste has been removed!"
<shevy> oooh
<shevy> you had a funny character at the end
Xeago has joined #ruby
<shevy> Â
<shevy> odd :)
<shevy> gaussblurinc11 this is a common usage of a contant
<gaussblurinc11> with method invocation?
otherj has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
soulcake has joined #ruby
soulcake has quit [Changing host]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abuzze_ has joined #ruby
michaeldeol has joined #ruby
<shevy> what do you mean
<shevy> it is assigned as a default argument to your parameter there
mikepack has quit [Ping timeout: 244 seconds]
<shevy> other than that there is nothing special
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<i8igmac> ["a=1", "b=2", "c=3"] how would you eval this stuff
<shevy> i8igmac please don't
fabrice31 has quit [Ping timeout: 258 seconds]
<i8igmac> ?
abuzze_ has quit [Read error: Connection reset by peer]
dc_ has quit [Ping timeout: 255 seconds]
<gaussblurinc11> shevy: I mean File.join method invocation
omosoj has joined #ruby
abuzze_ has joined #ruby
<shevy> ah I see
<shevy> I myself don't use File.join
<shevy> using '/' works on windows too
Xeago has quit [Ping timeout: 265 seconds]
<i8igmac> ["a=1", "b=2", "c=3"].each{|x| eval(x)}
moted has quit [Ping timeout: 264 seconds]
<i8igmac> this worked a few years ago
abuzze has quit [Ping timeout: 265 seconds]
<i8igmac> a+b => undefined local var
<gaussblurinc11> I think that scope of "a=1" should be inside each block
livathinos has joined #ruby
rbrs has joined #ruby
<shevy> yeah
<shevy> i8igmac it works if you use constants
<shevy> ["A=1", "b=2", "c=3"].each{|x| eval(x)}
<shevy> ^^^ now A is known outside the block too, b and c are still local to the {}
<shevy> is there a programmatic way to define local variables btw?
<hanmac1> shevy nope, b and c doesnt leave the eval, and are not set
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CustosLimen has quit [Ping timeout: 264 seconds]
<shevy> nice repetition ;)
optiz0r has joined #ruby
<shevy> what language is "Kiel vi fartas?"?
jenrzzz has joined #ruby
<shevy> is this romanian?
<zenspider> >> a=b=c=nil; ["a=1", "b=2", "c=3"].each{|x| eval(x) }; a
<eval-in__> zenspider => 1 (https://eval.in/219876)
<shevy> oh damn ... http://en.wiktionary.org/wiki/kiel_vi_fartas esperanto
<i8igmac> so, could i use @ with eval?
tatsuo has quit [Remote host closed the connection]
<zenspider> why do you want to eval a bunch of variables into existance?
<shevy> >> ["@a=1", "@b=2", "@c=3"].each{|x| eval(x) }; @a
<eval-in__> shevy => 1 (https://eval.in/219877)
<sevenseacat> esperanto intrigues me.
<shevy> i8igmac so eval-in__ says you can
<i8igmac> i see
<gaussblurinc11> >> ["@a=1", "@b=2", "@c=3"].each{|x| eval(x) }; @b
<eval-in__> gaussblurinc11 => 2 (https://eval.in/219878)
<zenspider> it's a bad idea, even if you can
<gaussblurinc11> >> ["@a=1", "@b='lalala'", "@c={@b => @a}"].each{|x| eval(x) }; @c
<eval-in__> gaussblurinc11 => {"lalala"=>1} (https://eval.in/219879)
<shevy> i8igmac both for constants and @ivars it makes no sense though because you have Object.const_set() (or on another class/module, like Module.const_set or your project's namespace), and you have instance_variable_set("@#{v}", "") for @ivars
queequeg1 has quit [Remote host closed the connection]
queequeg1 has joined #ruby
sameerynho has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
govg has quit [Remote host closed the connection]
abuzze has joined #ruby
alex88 has joined #ruby
abuzze_ has quit [Ping timeout: 265 seconds]
quazimodo has quit [Ping timeout: 250 seconds]
nonks has quit [Ping timeout: 250 seconds]
moritzs has joined #ruby
arup_r has quit [Remote host closed the connection]
quazimodo has joined #ruby
msgodf has joined #ruby
timonv_ has joined #ruby
mityaz has joined #ruby
danjordan has quit [Quit: danjordan]
danjordan has joined #ruby
zzz_AR45 has quit [Quit: See ya!]
eloquent_mute has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
AR45 has quit [Quit: WeeChat 1.0.1]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Rhainur has joined #ruby
AR45 has joined #ruby
dseitz has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
<i8igmac> shevy, im stumped... its a math problem im trying to evaluate...
<i8igmac> ["z6j0=9657", "v2m3=9773", "s9y5=6413", "u1p6=6846", "m3n4=9891", "t0r8=1575", "d4q7=1098", "q7a1=6595", "h8w3=5711", "w3s9=2299", "w3o5p6=0^z6j0", "i9f6i9=1^v2m3", "d4r8o5=2^s9y5", "l2q7c3=3^u1p6", "m3e5t0=4^m3n4", "b2k1q7=5^t0r8", "x4z6y5=6^d4q7", "v2y5f6=7^q7a1", "p6s9x4=8^h8w3", "k1g7b2=9^w3s9"]
francisfish has joined #ruby
<nrsk> Hi all! I am testing mailing with Mail::Matchers, can't find how to test attachments?
msgodf has quit [Ping timeout: 255 seconds]
codearms has joined #ruby
Bira has joined #ruby
mattstratton has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
banister has joined #ruby
<zenspider> i8igmac: where's that puzzle from?
<shevy> i8igmac that looks awful
<shevy> i8igmac and don't tell me that is all you have there
<shevy> i8igmac what you should do is - write a class that can resolve that
<shevy> basically this is the same as using aliases
<shevy> "v2y5f6=7^q7a1" <-- let the class resolve to what q7a1 contains; if it is an alias, follow it to the real value (so obviously your class must be able to find and extract the real pointed-at value)
<shevy> i8igmac alternatively, you could sanitize those crap values first
<i8igmac> (w3o5p6^z6j0) this would be a math problem with the key above
<shevy> so that you will end up with stuff like this instead:
mattstratton has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
<shevy> "z6j0=9657" becomes "a = 9657", "v2m3=9773" becomes "b = 9773"
<zenspider> again, where are these puzzles?
<shevy> then at least it will be more readable
iwishiwerearobot has joined #ruby
<zenspider> shevy: eh. you can do the 90% with map & String.%
<shevy> i8igmac this is not a "math problem" - this looks like a simple power to - run; a ^ b; in ruby a ** b. Once you have a and b this is trivial to resolve
troulouliou_dev has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
<apeiros> i8igmac: note that eval can't create new local variables
<apeiros> that is, it can, but only if you eval all subsequent code too on the same binding instance
mattstratton has joined #ruby
<i8igmac> so, blocking with each will not work, what else could i do?
rbrs has quit [Ping timeout: 265 seconds]
ta_ has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
omosoj has quit [Ping timeout: 265 seconds]
<shevy> told you - write a class that resolves that and keeps track of it
<shevy> or just sanitize it
yfeldblum has quit [Ping timeout: 245 seconds]
<shevy> it all follows two patterns: a = x; b = y; c = a ^ b
unshadow has quit [Quit: leaving]
<apeiros> i8igmac: IMO just use a hash
mattstratton has quit [Read error: Connection reset by peer]
ta has joined #ruby
chthon has joined #ruby
ghr has joined #ruby
wald0 has joined #ruby
mattstratton has joined #ruby
AFKGeek has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
sevenseacat has quit [Quit: Leaving.]
<apeiros> those expressions result in quite large numbers
<apeiros> and by quite large I mean they exceed float range
jenrzzz has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
<shevy> cool
<i8igmac> im just stumped lol cant sleep
patric100e99 has joined #ruby
rbrs has joined #ruby
<zenspider> I got an answer, but it seems to be a trick question
<shevy> i8igmac come on man, solve it step by step, little by little
<shevy> i8igmac surely you could solve it if your array has only 3 entries right?
mattstratton has joined #ruby
<zenspider> yeah. the puzzle is a trick question
<i8igmac> my brain keeps telling me, 'eval worked years ago'
mikecmpbll has joined #ruby
<shevy> no
<shevy> throw your brain away
kireevco has quit [Quit: Leaving.]
dumdedum has joined #ruby
<zenspider> you can solve it with visual inspection
<i8igmac> yes
<i8igmac> could print the data to the screen, then paste into irb and all works
<zenspider> no need. the math is elementary
kaspergrubbe has joined #ruby
<zenspider> just go backwards and follow the deps
<apeiros> zenspider: hm? I thought that with z6j0=9657 and w3o5p6=0^z6j0 --> w3o5p6 = 0 ** 9657 = 0
<zenspider> that's exactly my point
<shevy> ohhh where is the 0 ... hmm
corehook has joined #ruby
<shevy> ah yeah
<shevy> , "w3o5p6=0^z6j0",
<apeiros> well, only one result is 0
<zenspider> and the final q is "w3o5p6^z6j0"
mattstratton has quit [Read error: Connection reset by peer]
<shevy> i8igmac man! they solved it for you just now
<apeiros> ah, I didn't understand it as having a final equation
jzinedine has joined #ruby
<apeiros> I assumed all expressions' results needed to be given
patric100e99 has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
sameerynho has quit [Ping timeout: 264 seconds]
<i8igmac> w3o5p6^z6j0=>0
<zenspider> SO THE ANSWER IS ZERO
<zenspider> SPOILER
<apeiros> ah, I see, that expression was not in the list
<apeiros> so probably in the backlog, which I didn't read :)
<zenspider> guess you should have told me where the puzzles were from
* apeiros hands zenspider a copy of "SPOILER warnings for dummies" :-p
<zenspider> oh. they're supposed to come before, aren't they?
<i8igmac> this puzzle is a security feature, that prevents automated scraping of a webpage
<zenspider> I always get that wrong
jenrzzz has joined #ruby
<apeiros> common mistake
corehook has quit [Remote host closed the connection]
<apeiros> i8igmac: lulz?
<i8igmac> lol
rshetty has quit [Remote host closed the connection]
mattstratton has joined #ruby
<zenspider> so, we're helping you break through something? great
<zenspider> I bet the answer is always 0
<i8igmac> this would hold the puzzle
corehook has joined #ruby
<zenspider> oh good god. was I an idiot for clicking that before reading?
<i8igmac> the port number is the puzzle
<apeiros> i8igmac: if not - require 'v8' and run the code
<i8igmac> its a public list of proxy's
<apeiros> tri-vi-al
rshetty has joined #ruby
yfeldblum has joined #ruby
<apeiros> you know, like 2min of coding trivial
<i8igmac> lol
<apeiros> (though, it didn't even take me 3min coding it in ruby)
rdark has joined #ruby
<apeiros> so… well… trivial even without libv8
jzinedine has quit [Ping timeout: 255 seconds]
<zenspider> yup.
<i8igmac> i made this ugly regex to almost solve this lol
<zenspider> apeiros: how many lines did you get yours down to?
Gatis has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<zenspider> not counting the formatted data: 14
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> I have the following lines: expressions = …, assigns, other = …, values = … and then 5 lines of solving
<zenspider> 13 if I unfactor the regexps
<zenspider> heh
mikepack has joined #ruby
<apeiros> in the solving I just keep filling the values hash
<Gatis> Hi
<Gatis> How's ruby language?
<i8igmac> lol you guys suck
<apeiros> could reduce it to 4 if I'd extract name,base and power in a single regex. was lazy and did 2 splits on 2 lines
mattstratton has joined #ruby
msgodf has joined #ruby
<zenspider> a[-1] = "p #{a[-1]}"; eval a.join("; ").gsub(/\^/, "**")
ixti has joined #ruby
<apeiros> zenspider: aaahahaha
<apeiros> yeah :)
Juanchito has joined #ruby
<apeiros> mine is eval-free! damit
dumdedum has quit [Ping timeout: 250 seconds]
<i8igmac> how so
as-cii has joined #ruby
<zenspider> my previous one was too. vastly safer... but still
<apeiros> not worth it. yeah.
<apeiros> sanitizing is easy enough
<apeiros> or rather, verifying that it's benign
takle has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
<shevy> lol
<shevy> I at least did not have a solution
<shevy> but you two had one!!!
<apeiros> zenspider: but javascript ^ is not **
<apeiros> it's bitwise XOR
mikepack has quit [Ping timeout: 264 seconds]
<apeiros> now if only i8igmac had told us that it's javascript before…
<zenspider> well I didn't know it was JS at the time :P
rbrs_ has joined #ruby
<i8igmac> i didnt want to use a lib
n00bc0d3r has joined #ruby
AFK_Geek has joined #ruby
mattstratton has joined #ruby
AFK_Geek has joined #ruby
AR45 is now known as zsh
<i8igmac> so, you guys solved this ?
<apeiros> sure. even with ^ being ^ and not ** it's still trivial
<apeiros> with eval, without eval, with js engine.
<apeiros> with js engine, you can do it in 2 lines. require + evaluation.
<i8igmac> ill check out the gem,
<i8igmac> what was the trick with eval
<apeiros> with eval you can do it in 1 line
rbrs has quit [Ping timeout: 244 seconds]
<i8igmac> no blocking?
<apeiros> with pure ruby, no eval, you can do it in 7 lines of readable code
<shevy> i8igmac do you not see what zenspider wrote above?
<apeiros> i8igmac: I think "blocking" doesn't mean what you think it means…
decoponio has joined #ruby
CustosLimen has quit [Ping timeout: 250 seconds]
mattstratton has quit [Read error: Connection reset by peer]
nfk has joined #ruby
AFKGeek has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 264 seconds]
zsh is now known as AR45
oo_ has quit [Remote host closed the connection]
TPBallbag has joined #ruby
<i8igmac> a[-1] = "p #{a[-1]}"; eval a.join("; ").gsub(/\^/, "**")
oo_ has joined #ruby
TPBallbag has quit [Changing host]
TPBallbag has joined #ruby
<i8igmac> i guess im confused
<i8igmac> lol
timonv_ has quit [Remote host closed the connection]
<i8igmac> data=File.read("index.html")
zacts has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
as-cii has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
banister has joined #ruby
<shevy> good
<shevy> so you read in your dataset
takle has quit [Read error: Connection reset by peer]
takle_ has joined #ruby
ta has joined #ruby
<shevy> now obviously you need to reach zenspider's eval() code
Gatis has left #ruby ["Leaving"]
n00bc0d3r has quit [Quit: leaving]
sameerynho has joined #ruby
elaptics`away is now known as elaptics
mattstratton has quit [Read error: Connection reset by peer]
abuzze has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 244 seconds]
AR45 is now known as ar45
mattstratton has joined #ruby
abuzze has joined #ruby
dumdedum has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
josephndenton has joined #ruby
zacts has joined #ruby
rbrs_ has quit [Quit: Leaving]
govg has joined #ruby
arup_r has quit [Remote host closed the connection]
mattstratton has quit [Read error: Connection reset by peer]
rbrs has joined #ruby
gaussblurinc11 has quit [Quit: Leaving.]
gaussblurinc1 has joined #ruby
abuzze_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 272 seconds]
ChoiKyuSang has quit [Ping timeout: 265 seconds]
anaeem1_ has joined #ruby
jonr22 has joined #ruby
mattstratton has joined #ruby
corehook has quit []
noop has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abuzze has quit [Ping timeout: 250 seconds]
josephndenton has quit [Ping timeout: 256 seconds]
Suchit has quit [Quit: (null)]
pengin has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Ping timeout: 240 seconds]
sarkis has joined #ruby
anaeem1_ has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
spastorino has joined #ruby
zarubin1 has quit [Read error: Connection reset by peer]
TPBallbag has quit []
mattstratton has joined #ruby
TPBallbag has joined #ruby
zarubin has joined #ruby
CustosLimen has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
sarkis has quit [Ping timeout: 272 seconds]
mattstratton has joined #ruby
gamzera_ has joined #ruby
<gamzera_> can someone explain me what this return do "return n % 3 == 0" ?
banister has joined #ruby
pancake_m has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
timonv_ has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
sprihodko has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
gaussblurinc1 has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
timonv_ has joined #ruby
<apeiros> gamzera_: Integer#% is modulus
<gregf__> gamzera_: it just checks is n is divisible by 3 :/
wchun has joined #ruby
<gregf__> s/is/if/
bayed has joined #ruby
leathershibe has quit [Ping timeout: 250 seconds]
<gregf__> >> def divBy3 n; return n % 3 == 0;end;for i in 1..6 do; puts i.to_s + " --> " + divBy3(i).to_s;end
<eval-in__> gregf__ => 1 --> false ... (https://eval.in/219902)
mattstratton has joined #ruby
* apeiros hits gregf__ with a large trout for camelCase
<gregf__> what apeiros said :/
<gregf__> heh
Bira has quit [Ping timeout: 255 seconds]
decoponio has quit [Quit: reboot]
takle_ has quit [Remote host closed the connection]
pengin has quit [Ping timeout: 245 seconds]
mattstratton has quit [Read error: Connection reset by peer]
sdwrage_ has quit [Read error: Connection reset by peer]
fandi has joined #ruby
mattstratton has joined #ruby
arup_r has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
arup_r has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wm3|busy has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
fgo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mattstratton has joined #ruby
Spami has joined #ruby
magic has quit [Ping timeout: 244 seconds]
fgo has quit [Client Quit]
Spami has quit [Remote host closed the connection]
fabrice31 has joined #ruby
jgrevich has quit [Quit: jgrevich]
rodfersou has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Read error: Connection reset by peer]
narcan has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
anaeem1_ has joined #ruby
mattstratton has joined #ruby
mikecmpb_ has joined #ruby
dumdedum has quit [Quit: foo]
AliRezaTaleghani has joined #ruby
AliRezaTaleghani has quit [Max SendQ exceeded]
dumdedum has joined #ruby
AliRezaTaleghani has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<i8igmac> apeiros, u just wanted to share with you what i did, Wrote the var's to a file then load 'file'
fabrice31 has quit [Ping timeout: 244 seconds]
<i8igmac> i*
gaussblurinc1 has quit [Quit: Leaving.]
gaussblurinc1 has joined #ruby
fgo has joined #ruby
Dude007 has quit [Remote host closed the connection]
mattstratton has quit [Read error: Connection reset by peer]
sprihodko has quit [Quit: (null)]
mikecmpbll has quit [Ping timeout: 272 seconds]
mattstratton has joined #ruby
wchun has quit [Quit: Leaving]
havenwood has quit []
dc_ has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
leathershibe has joined #ruby
fenak has joined #ruby
Dude007 has joined #ruby
sk87 has joined #ruby
mikepack has joined #ruby
mattstratton has joined #ruby
dc_ has quit [Client Quit]
arup_r has joined #ruby
S0da has quit [Remote host closed the connection]
maisapride786 has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
dc_ has joined #ruby
oo_ has joined #ruby
maisapride786 has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 245 seconds]
mikecmpb_ is now known as mikecmpbll
mattstratton has joined #ruby
bluOxigen has joined #ruby
keelerm has joined #ruby
Bira has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
Bira has quit [Remote host closed the connection]
mattstratton has joined #ruby
pancake_m has joined #ruby
codearms has quit [Quit: Page closed]
nagaraj has quit [Remote host closed the connection]
wm3|busy is now known as workmad3
elcheckito has quit [Ping timeout: 245 seconds]
snovity has joined #ruby
JB786 has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
drawingthesun has joined #ruby
silverdust is now known as bl4ckdu5t
timonv_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mattstratton has joined #ruby
banister has joined #ruby
Abhijit has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
takle has joined #ruby
ChoiKyuSang has joined #ruby
sameerynho has quit [Ping timeout: 245 seconds]
lxsameer_ has joined #ruby
leathershibe has quit [Quit: leaving]
mattstratton has joined #ruby
zarubin has quit [Quit: Leaving.]
<shevy> that makes apeiros very happy
rshetty has quit [Ping timeout: 255 seconds]
DLSteve has joined #ruby
pancake_m has quit [Quit: leaving]
takle has quit [Read error: Connection reset by peer]
takle has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
michaeldeol has quit [Remote host closed the connection]
nagaraj has joined #ruby
fandi has quit [Ping timeout: 265 seconds]
gamzera_ has quit [Read error: Connection reset by peer]
mattstratton has quit [Read error: Connection reset by peer]
nagaraj has quit [Remote host closed the connection]
mattstratton has joined #ruby
tokik has quit [Ping timeout: 258 seconds]
ndrei has quit [Ping timeout: 255 seconds]
mattstratton has quit [Read error: Connection reset by peer]
nagaraj has joined #ruby
renderful has joined #ruby
davedev24_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
gamzera_ has joined #ruby
<gamzera_> can someone explain me each method?
arup_r_ has joined #ruby
mattstratton has joined #ruby
<rpag> it sequentially yields each element or pair(hash) to a block
elcheckito has joined #ruby
timonv_ has joined #ruby
<gamzera_> what about .map method?
sk87 has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
oo_ has quit [Read error: Connection reset by peer]
<shevy> gamzera_ how long have you been using ruby?
mattstratton has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 255 seconds]
<gamzera_> shevy: lol.. I don't belive I can say that I even started using it.. I Just gone through codeacademy course
oo_ has joined #ruby
goganchic has joined #ruby
<shevy> gamzera_ have you been using another programming language before? it will be easier to explain
<shevy> typically you use .map on an Array
<workmad3> gamzera_: like .each, but it constructs a new collection, with each entry in the new collection consisting of the result of calling the block for that position
<shevy> it will modify the Array
<gamzera_> shevy: I've been "working" in pascal for A LOT, but I don't think that would bhelp.
<workmad3> shevy: .map doesn't modify ;)
<shevy> gamzera_ ok good
<shevy> gamzera_ consider you have this array: [1,2,3]
davedev24_ has quit [Ping timeout: 272 seconds]
<gamzera_> shevy: okay..
<shevy> now you can convert it into an array that holds strings
<shevy> >> [1,2,3].map {|entry| entry.to_s }
<eval-in__> shevy => ["1", "2", "3"] (https://eval.in/219945)
<shevy> tada! now you have strings in it
mattstratton has joined #ruby
charliesome has joined #ruby
<shevy> gamzera_ you could use .each as well, but .map is simpler
<shevy> gamzera_ .each simply iterates over the content
<gamzera_> shevy: so .map and .each are similar functions?
<gamzera_> shevy: ohh.h.. okay :)
<shevy> somewhat; .each does not modify, .map will
<workmad3> gamzera_: they both enumerate a collection
<gamzera_> yeah, yeah.. I got it guys! thanks :)
<shevy> for the technical explanation, read the long sentence workmad3 wrote
cantonic has joined #ruby
<shevy> I just bring it down to the level of apples and bananas
<shevy> oh that reminds me, since workmad3 mentioned "calling the block"
<shevy> gamzera_ do you know what a block is?
<gamzera_> so wait.. when we need to do something with each element from array we going to use map insted of each, right?
<workmad3> gamzera_: .map would be the equivalent of doing 'new_ary = []; original_ary.each{|a| new_ary.push(some_method(a))}'
<workmad3> gamzera_: depends on what you're doing
<shevy> gamzera_ nono... you use .map if you wish to modify something usually in that Array
<workmad3> gamzera_: also, as I said to shevy, .map doesn't modify the originally arary
<workmad3> *array
<workmad3> it returns a new array
rodfersou has quit [Read error: Connection reset by peer]
mattstratton has quit [Read error: Connection reset by peer]
<gamzera_> workmad3: but when you use each you are not able to modify elements from array? it just print them?
<shevy> you could modify it
<gamzera_> shevy: you could?
<shevy> sure
<gregf__> pascal *cries*
<shevy> you can manipulate an Array
spyderman4g63 has quit [Remote host closed the connection]
rodfersou has joined #ruby
<workmad3> gamzera_: you could call methods that modify the objects, and you could explicitly manipulate the array in either case
<shevy> array[3] = 'new value' <--- here you put it at the fourth place
<shevy> and you can do this inside an .each block as well
wpp has joined #ruby
<workmad3> gamzera_: with .each though, the return value of the block is thrown away... with .map, the return value of the block is used to construct a new array
spyderman4g63 has joined #ruby
<gamzera_> workmad3: kk.. it's not that simple but I got it.. I will have to do codeacademy course once agian
<shevy> man workmad3
<shevy> see what you did there
<shevy> you sent him back to codeacademy
mattstratton has joined #ruby
<shevy> CAN YOU STILL LOOK INTO THE MIRROR workmad3!!!
<wpp> hello everyone, how can I find out the current RUBY_GC_MALLOC_LIMIT if it has not been set by me? (not through env variables, interested in teh default)
ndrei has joined #ruby
<workmad3> gamzera_: e.g. [1,2,3].each{|i| i.to_s} <-- the string is just thrown away, nothing happens, and the original array is returned vs [1,2,3].map{|i| i.to_s} <-- the return value is stored, and a new array is returned with ["1", "2", "3"]
<workmad3> gamzera_: and it really is that simple ;)
quazimodo has quit [Read error: Connection reset by peer]
<wpp> GC.start; GC.stat is the closest I've gotten
<workmad3> shevy: I avoid mirrors... they steal my soul!
Noobdog has joined #ruby
cantonic has quit [Ping timeout: 265 seconds]
<gamzera_> workmad3: "and a new array is returned with ["1", "2", "3"]" that explained me whole thing :)
bMalum has quit [Quit: bMalum]
<wpp> lol nevermind
<gregf__> gamzera_: no, dont do that. no turning back now that you;re on #ruby :/
Avahey has quit [Quit: Connection closed for inactivity]
mattstratton has quit [Read error: Connection reset by peer]
<gamzera_> gregf__: I don't turn down. btw you guys hate codeacademy or? :D
<rpag> codeacademy seems to be attracting a lot of people
<gregf__> gamzera_: ehh. just kidin' ;)
<gamzera_> rpag: yeah.. I mean it have solid resources for newbies
<rpag> cool
<gamzera_> it's solid start.. you won't learn a lot, but.
rshetty has joined #ruby
<workmad3> gamzera_: http://ruby-doc.org/core-2.1.4/Enumerable.html#method-i-map <-- the docs give examples btw
<gamzera_> workmad3: let me check it out..
spyderman4g63 has quit [Ping timeout: 265 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> gamzera_: getting the hang of what's in Enumerable sets you up for a lot of useful stuff in Ruby too
patric100e99 has joined #ruby
<gamzera_> workmad3: (1..4).map { |i| i*i } #=> [1, 4, 9, 16] why it gave [1, 4, 9, 16] insted of ["1", "4", "9", "16"] ?
mattstratton has joined #ruby
<workmad3> gamzera_: because it didn't call .to_s
<gamzera_> yeah.. I completly forgot
<workmad3> gamzera_: look at what the block (the bit in the {}) does
<gamzera_> to_i vs to_sym
<workmad3> gamzera_: what that evaluates to, that'll be the content of the new array
<workmad3> gamzera_: so if you do {|i| i.to_s} you're converting each value to a string... if you do {|i| i*i} you're squaring each value
<workmad3> gamzera_: {|i| "cat"}, you're ignoring the original value and just returning the string "cat" (and so the new array is ["cat", "cat", "cat", "cat"] )
<shevy> gamzera_ I have no preference to or against codeacademy or anything. but I think in ruby, the only real way is to write ruby code yourself and get your brain active to understand what you write
weemsledeux has joined #ruby
<shevy> ruby as a whole is actually quite big
<gamzera_> workmad3: so to_i converting to string, right? what about to_sym?
<shevy> just yesterday I learned through havenwood here (who is not here right now lol) that we have .combination()
<rpag> shevy, i think interaction education is cool though
<workmad3> gamzera_: .to_s converts to string, .to_i would convert to integer
<shevy> to_i to_integer
<rpag> interactive*
<shevy> to_s to string
<shevy> to_a to array
<shevy> to_sym to symbol (that is all that has a : like :foo :bar :ble <--- symbols
<workmad3> ^^
patric100e99 has quit [Ping timeout: 245 seconds]
mattstratton has quit [Read error: Connection reset by peer]
<wpp> ahhh so GC.statu in 2.1.2 show has the malloc_limit, but how can I find it in 2.0.0 ?
<gamzera_> I got it now :) thanks people
goganchic has left #ruby [#ruby]
CustosLimen has quit [Ping timeout: 245 seconds]
mattstratton has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tlarevo has quit [Remote host closed the connection]
mattstratton has quit [Read error: Connection reset by peer]
mathias2 has quit [Ping timeout: 264 seconds]
olivier_bK has quit [Read error: Connection reset by peer]
godd2 has quit [Ping timeout: 258 seconds]
Morkel has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
Morkel has joined #ruby
<shevy> how do you get GC.status to work?
mattstratton has joined #ruby
mikepack has joined #ruby
<wpp> sorry I typoed, I meant GC.stat
dawkirst has joined #ruby
<wpp> GC.stat in 2.0.0 and 2.1.2 differ and the latter includes the malloc_limit
jottr has joined #ruby
hamakn has quit [Remote host closed the connection]
mattstratton has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
mattstratton has joined #ruby
rbrs has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 255 seconds]
mathias2 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
josephndenton has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
fenak has quit [Quit: leaving]
jonr22 has joined #ruby
krz has joined #ruby
mattstratton has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
fenak has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
clauswit_ has joined #ruby
takle has quit [Remote host closed the connection]
jusmyth has quit [Quit: Leaving.]
Trieste has quit [Quit: ZNC - http://znc.in]
banister has joined #ruby
sarkis has joined #ruby
jonr22 has quit [Ping timeout: 258 seconds]
mattstratton has joined #ruby
User458764 has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
sarkis has quit [Ping timeout: 250 seconds]
Ethan3 has quit [Quit: ☭ Karl Marx & Friedrich Engels, Vladimir Lenin, Josef Stalin, Mao Tse-Tung, Kim Il Sung, Ho , Fidel Castro & Chi MinhErnesto Guevara ☭]
mattstratton has joined #ruby
theotherstupidgu has joined #ruby
takle has joined #ruby
soulcake has quit [*.net *.split]
Caius has quit [*.net *.split]
sjohnsen has quit [*.net *.split]
peckermanzzz has quit [*.net *.split]
kies has quit [*.net *.split]
danoo has quit [*.net *.split]
idoru has quit [*.net *.split]
juni0r has quit [*.net *.split]
mahlon has quit [*.net *.split]
<pontiki> o/
<shevy> \o
Soda has joined #ruby
last_staff has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
mattstratton has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
michael_mbp has quit [Excess Flood]
mattstratton has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
tlarevo has joined #ruby
Trieste has joined #ruby
mattstratton has joined #ruby
TPBallbag is now known as TPBallbrah
mattstratton has quit [Read error: Connection reset by peer]
haroldwu has quit [Ping timeout: 244 seconds]
sk87 has quit [Quit: Textual IRC Client: www.textualapp.com]
haroldwu has joined #ruby
bMalum has joined #ruby
mattstratton has joined #ruby
fabrice31 has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
shazaum has joined #ruby
mattstratton has joined #ruby
shazaum has quit [Changing host]
shazaum has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
arup_r_ has quit [Remote host closed the connection]
mattstratton has quit [Read error: Connection reset by peer]
moritzs has quit [Ping timeout: 255 seconds]
KC9YDN has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
mattstratton has joined #ruby
sonOfRa has quit [Quit: Bye!]
tlarevo has quit [Ping timeout: 258 seconds]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mattstratton has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
ta has quit [Read error: Connection reset by peer]
eloquent_mute has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
mattstratton has joined #ruby
danjordan has quit [Quit: danjordan]
danjordan has joined #ruby
sonOfRa has joined #ruby
phutchins has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
Anarch_ is now known as Anarch
VanillaGoat_ has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
takle has quit [Remote host closed the connection]
VanillaGoat__ has quit [Ping timeout: 255 seconds]
mathias2 has quit [Ping timeout: 255 seconds]
mike32 has quit [Quit: Leaving]
o0oo0o_ has joined #ruby
arup_r has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
mattstratton has joined #ruby
mikhailvs has quit [Quit: Leaving.]
IrishGringo has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
yeticry has quit [Ping timeout: 255 seconds]
mikepack has quit [Ping timeout: 256 seconds]
chthon has quit [Ping timeout: 250 seconds]
eloquent_mute has joined #ruby
yeticry has joined #ruby
mattstratton has joined #ruby
peckermanzzz has joined #ruby
sjohnsen has joined #ruby
Caius has joined #ruby
kies has joined #ruby
juni0r has joined #ruby
danoo has joined #ruby
mahlon has joined #ruby
idoru has joined #ruby
soulcake has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
soulcake has joined #ruby
soulcake has quit [Changing host]
TPBallbrah is now known as TPBallbag
Avahey has joined #ruby
crazydiamond has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 244 seconds]
mattstratton has joined #ruby
govg has quit [Ping timeout: 264 seconds]
govg has joined #ruby
sarkis has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 250 seconds]
mattstratton has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
shemerey has joined #ruby
mathias2 has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
mattstratton has quit [Read error: Connection reset by peer]
nagaraj has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Mathobal has joined #ruby
dangerousdave has joined #ruby
Mathobal has left #ruby [#ruby]
anaeem1 has quit [Ping timeout: 250 seconds]
mattstratton has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
MrDoctor has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
xfix has joined #ruby
xfix has left #ruby ["Not quiting, just leaving."]
mattstratton has joined #ruby
workmad3 is now known as wm3|away
lxsameer_ has quit [Ping timeout: 240 seconds]
takle has joined #ruby
n008f4g_ has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
Gadgetoid has quit [Ping timeout: 245 seconds]
wpp has quit []
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
tesuji has quit [Ping timeout: 256 seconds]
mattstratton has quit [Read error: Connection reset by peer]
Xeago_ has quit [Ping timeout: 264 seconds]
takle has quit [Remote host closed the connection]
Xeago_ has joined #ruby
mattstratton has joined #ruby
alem0lar_ has joined #ruby
alem0lar_ has quit [Client Quit]
mattstratton has quit [Read error: Connection reset by peer]
_ixti_ has joined #ruby
Gadgetoid has joined #ruby
iwishiwerearobot has joined #ruby
<shevy> TIOBE hates ruby
Xeago has quit [Ping timeout: 244 seconds]
kaspergrubbe has quit [Read error: Connection reset by peer]
<hanmac1> ruby hates TIOBE
kaspergrubbe_ has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
<shevy> hehe
mattstratton has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<shevy> $(function() { $( "#some_id_here" ).draggable(); });
<shevy> javascript is weird
takle has joined #ruby
hiyosi_ has quit [Read error: Connection reset by peer]
<canton7> not sure why that's been wrapped in $(), but otherwise that makes sense :P
<canton7> and that's jquery, not javascript, per se
anaeem1 has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
<shevy> ok so this is not javascript
<canton7> all the $() stuff is jquery
hiyosi has joined #ruby
<ddv> $ is an alias for JQuery(), then you're passing an anonymous function
<canton7> which is a javascript library
cantonic has joined #ruby
<shevy> ddv how do you mean? like so?
<shevy> JQuery(function() { JQuery( "#some_id_here" ).draggable(); });
<ddv> yes
<shevy> hmm
mattstratton has joined #ruby
<ddv> it's almost like passing a block but not quite
Ridley5 is now known as zzz_Ridley
rkalfane has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
agjacome has joined #ruby
<shevy> JQuery is really passed twice?
bMalum has quit [Quit: bMalum]
<shevy> I got it from http://jqueryui.com/draggable/ at the view source link
cantonic has quit [Ping timeout: 240 seconds]
banister has joined #ruby
<ddv> second time you're telling jquery to select someitems and it will wrap them in jquery abstraction
mattstratton has quit [Read error: Connection reset by peer]
<canton7> yeah, dunno why they wrapped the whole thing in $()
bMalum has joined #ruby
<canton7> not seen that before
<canton7> maybe it's a shortcut to $(document).ready(..) ?
<ddv> it is
coderhs has joined #ruby
<canton7> aha, magic!
mattstratton has joined #ruby
<shevy> magic
patric100e99 has joined #ruby
jleishman has joined #ruby
JB786 has quit [Ping timeout: 250 seconds]
godd2 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
chthon has joined #ruby
TPBallbag has quit [Remote host closed the connection]
mattstra_ has joined #ruby
davedev24_ has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
kaspergrubbe_ has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
patric100e99 has quit [Ping timeout: 244 seconds]
kaspergrubbe has quit [Read error: No route to host]
kaspergrubbe has joined #ruby
aclearman037 has joined #ruby
josephndenton has joined #ruby
mattstra_ has quit [Read error: Connection reset by peer]
toretore has joined #ruby
mattstratton has joined #ruby
jonr22 has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
mattstratton has joined #ruby
wm3|away is now known as workmad3
Abhijit has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 258 seconds]
nateberkopec has joined #ruby
krz has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
jxf has joined #ruby
livingstn has joined #ruby
chthon has quit [Ping timeout: 265 seconds]
takle has quit [Remote host closed the connection]
mattstratton has joined #ruby
alex_the_designe has quit [Ping timeout: 258 seconds]
<gaussblurinc1> hi!
sevenseacat has joined #ruby
sk87 has joined #ruby
<gaussblurinc1> how to fork process?
<apeiros> see Kernel#fork
<gaussblurinc1> thanks
livingstn has quit [Disconnected by services]
livingstn has joined #ruby
TPBallbag has joined #ruby
livingstn has quit [Excess Flood]
tokik has joined #ruby
<gaussblurinc1> apeiros: exec(process_string) if fork == nil?
livingstn has joined #ruby
xyh has joined #ruby
<apeiros> I said Kernel#fork, not Kernel#exec
bMalum has quit [Quit: bMalum]
blueOxigen has joined #ruby
<jhass> gaussblurinc1: That looks like you want Kernel#spawn
i0n has joined #ruby
<xyh> can function blocks be nested ?
paulfm has joined #ruby
<kish> must i be root to insall gems
<apeiros> xyh: yes, blocks can be nested
<kish> ERROR: While executing gem ... (Errno::EACCES) Permission denied - /var/lib/gems
<jhass> kish: use --user-install flag
mattstratton has quit [Read error: Connection reset by peer]
<kish> oh
<kish> thanks
TPBallbag has quit [Remote host closed the connection]
<apeiros> xyh: method definitions can't be nested (they can, but it probably won't do what you think)
<apeiros> gaussblurinc1: and if you're asking about something else now, then ask a coherent question. code with a question mark at the end isn't one.
mattstratton has joined #ruby
dideler has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
anaeem1 has quit [Remote host closed the connection]
psy_ has joined #ruby
<dideler> what's more idiomatic in ruby: `raise SomeError if condition`, or `condition and raise SomeError`?
i0n_ has joined #ruby
<jhass> the former
jespada has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
dumdedum has quit [Ping timeout: 244 seconds]
i0n has quit [Ping timeout: 256 seconds]
i0n_ is now known as i0n
chipotle has quit [Quit: cya]
rshetty_ has joined #ruby
<gaussblurinc1> apeiros: I ask about fork. exec and fork are connected. if ( fork == nil ) {exec (task)} - pattern from unix
mattstratton has joined #ruby
alex_the_designe has joined #ruby
rshetty has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
<apeiros> gaussblurinc1: the pattern is not required. ask what you want to do. don't assume people read your mind.
chthon has joined #ruby
<apeiros> gaussblurinc1: also in that case, see Kernel#spawn, as jhass already said
gaussblurinc11 has joined #ruby
<gaussblurinc11> apeiros: I want to fork process and exec some tasks in forked process
jimbach has joined #ruby
<jhass> 'some tasks' plural?
razieliyo has joined #ruby
joonty has joined #ruby
<jhass> exec replaces the (forked) process
eloquent_mute has left #ruby [#ruby]
shemerey has quit [Quit: Textual IRC Client: www.textualapp.com]
gaussblurinc1 has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
alex_the_designe has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Remote host closed the connection]
mattstratton has joined #ruby
<apeiros> gaussblurinc11: that's not really the description of *what* you want to do. it's the description of *how* you intend to do it.
anaeem1_ has joined #ruby
<apeiros> I reinterpret that as "I want to execute a couple of external processes" -> yes, Kernel#spawn.
fabrice31 has joined #ruby
<gaussblurinc11> apeiros: you read my mind, yes, exactly
<apeiros> !xy
<apeiros> hah, great, helpa knows about it already
yfeldblum has quit [Ping timeout: 258 seconds]
klaut has quit [Remote host closed the connection]
takle has joined #ruby
Snowstormer is now known as Scooby-Doo
<gaussblurinc11> apeiros: oh, my wifi today is pretty bad
mattstratton has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
lucifly has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
<apeiros> ddv: hehe, yeah, old, but indeed quite funny :)
<ddv> yeah
banister has quit [Read error: Connection reset by peer]
devdazed has quit [Quit: Computer has gone to sleep.]
govg has quit [Ping timeout: 250 seconds]
robustus is now known as robustus|Off
banister has joined #ruby
anaeem1_ has quit [Ping timeout: 250 seconds]
banister has quit [Max SendQ exceeded]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dumdedum has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
<lucifly> hollw
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mattstratton has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
robustus|Off is now known as robustus
<lucifly> anybody here
tagrudev has joined #ruby
govg has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
banister has joined #ruby
TPBallbag has joined #ruby
lucifly has quit [Client Quit]
banister has quit [Max SendQ exceeded]
<ddv> no
<ddv> :/
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jxf has quit [Ping timeout: 250 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
soulcake has quit [Read error: Connection reset by peer]
soulcake_ has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
einarj has joined #ruby
gaussblurinc11 has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
abuzze_ has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ghormoon has quit [Quit: ZNC - http://znc.in]
RitterJack has quit [Quit: Quitte]
abuzze has joined #ruby
banister has joined #ruby
lucifly has joined #ruby
lucifly has quit [Client Quit]
charliesome has quit [Quit: zzz]
ghormoon has joined #ruby
banister has quit [Client Quit]
tier has joined #ruby
Bira has quit [Remote host closed the connection]
mattstratton has joined #ruby
lkba has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mattstratton has quit [Read error: Connection reset by peer]
chipotle_ has joined #ruby
joonty1 has joined #ruby
govg has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
mbr__ has joined #ruby
govg has joined #ruby
tylersmith has quit [Ping timeout: 265 seconds]
tylersmith has joined #ruby
Toad` has joined #ruby
<Toad`> Yo
chipotle has quit [Ping timeout: 265 seconds]
nemesit|znc has quit [Ping timeout: 265 seconds]
cajone has quit [Ping timeout: 265 seconds]
<jhass> da
My_Hearing has quit [Ping timeout: 265 seconds]
lele has quit [Ping timeout: 265 seconds]
mbr has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
mbr__ is now known as mbr
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
sarkis has joined #ruby
lucifly has joined #ruby
<lucifly> hello
Trynemjoel has quit [Ping timeout: 265 seconds]
PaulePanter has quit [Ping timeout: 265 seconds]
jeekl has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 265 seconds]
Psy-Q has quit [Ping timeout: 265 seconds]
mattstratton has joined #ruby
joonty has quit [Ping timeout: 265 seconds]
JohnBat26 has quit [Ping timeout: 265 seconds]
zenojis has quit [Ping timeout: 265 seconds]
Andriamanitra has quit [Ping timeout: 250 seconds]
philwantsfish has joined #ruby
takle has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
<jhass> lucifly: if you have a question, just ask it
root4 has joined #ruby
zenojis has joined #ruby
Psy-Q has joined #ruby
rshetty_ has quit [Ping timeout: 245 seconds]
Andriamanitra has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
PaulePanter has joined #ruby
jnylen has quit [Ping timeout: 272 seconds]
n008f4g_ has joined #ruby
Trynemjoel has joined #ruby
<lucifly> how to creat a channel
theotherstupidgu has joined #ruby
<jhass> this is #ruby, not #freenode ;)
cajone has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
jnylen has joined #ruby
sepp2k has joined #ruby
nemesit|znc has joined #ruby
jeekl has joined #ruby
lele has joined #ruby
cantonic has joined #ruby
<sonOfRa> I'm currently looking at net::ldap, and I'm not sure I'm reading the documentation on encryption correctly: http://www.rubydoc.info/gems/net-ldap/Net/LDAP:encryption
<sonOfRa> Does this mean I have no way of verifying the certificate?
mattstratton has quit [Read error: Connection reset by peer]
lucifly has left #ruby [#ruby]
jleishman has quit [Quit: Lingo: www.lingoirc.com]
JB786 has joined #ruby
sarkis has quit [Ping timeout: 255 seconds]
jleishman has joined #ruby
<jhass> sonOfRa: I read it the same way
godd2 has quit [Ping timeout: 255 seconds]
mikesplain has joined #ruby
rkalfane has joined #ruby
mikesplain has quit [Max SendQ exceeded]
AliRezaTaleghani has quit [Quit: Leaving.]
mikesplain has joined #ruby
mattstratton has joined #ruby
takle has joined #ruby
<root4> hello,lucifly!
<workmad3> sonOfRa: seems to be the case... can't see any way of verifying the certificate even with start_tls rather than simple_tls
<jhass> root4: left again already
<sonOfRa> :(
cantonic has quit [Ping timeout: 265 seconds]
root4 has left #ruby ["WeeChat 0.3.7"]
<workmad3> sonOfRa: however, also looking at the code, it seems the SSL connection uses 'OpenSSL::SSL::SSLContext.new' which, I believe, by default sets up to use the default certificate store and *does* verify certificates...
mattstratton has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
mikesplain has quit [Client Quit]
mattstratton has joined #ruby
<workmad3> hmm... actually, not sure on that front
jimbach has quit [Remote host closed the connection]
<workmad3> I may be entirely incorrect and SSLContext defaults to completely insecure...
<Toad`> That's fun
<Toad`> 'cause when you add a g to ruby, you get 'rugby'
<Toad`> So fun
lxsameer has quit [Ping timeout: 256 seconds]
jimbach has joined #ruby
<sonOfRa> I'm trying it now, and using an untrusted certificate, and either net::ldap swallows all errors, or it doesn't verify
JB786 has quit [Read error: Connection reset by peer]
<workmad3> Toad`: well, most people adding a g to ruby would get 'rubyg' :)
silkfox has joined #ruby
<Toad`> Yeah, it requires a bit of intelligence
<Toad`> I can admit for some it's hard :)
adriancb has joined #ruby
<workmad3> Toad`: now, if you'd said 'if you insert a g in the middle of ruby' then you'd be entirely and unambiguously correct ;)
mattstratton has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
rshetty has quit [Remote host closed the connection]
sambao21 has joined #ruby
<Toad`> Rah doesn't matter, still the same
<Toad`> You understood me
coderhs has joined #ruby
mattstratton has joined #ruby
IrishGringo has joined #ruby
jlast has joined #ruby
<shevy> toads get stomped upon during rugby man
jobewan has quit [Remote host closed the connection]
<sonOfRa> 2.1.4 :004 > ctx = OpenSSL::SSL::SSLContext.new; ctx.verify_mode
<sonOfRa> => nil
<sonOfRa> :/
doodlehaus has joined #ruby
zarubin has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
mikesplain has quit [Ping timeout: 256 seconds]
tier has quit [Ping timeout: 244 seconds]
<jhass> OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:verify_mode] #=> 1 though
moritzs has joined #ruby
sailias has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
mattstratton has joined #ruby
devdazed has joined #ruby
lxsameer has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
mikepack has joined #ruby
tier has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
oleo has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
mikesplain has joined #ruby
mikesplain has quit [Max SendQ exceeded]
mattstratton has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
narph has joined #ruby
mikesplain has joined #ruby
last_staff has quit [Quit: I'll be back l8r]
<sonOfRa> Then why is it nil on creation? Shouldn't it be 1, if the default is 1?
kaspergr1bbe has joined #ruby
<ddv> sonOfRa: look in the source?
<jhass> the docs are rather sparse sadly
<jhass> I'd expect to use the defaults if unset
mattstratton has quit [Read error: Connection reset by peer]
paulfm has quit [Ping timeout: 265 seconds]
tesaf has joined #ruby
lxsameer has quit [Quit: Leaving]
<sonOfRa> There's a DEFAULT_PARAMS constant hash, but the constructor doesn't accept a hash...
ndrei has joined #ruby
cleopatrax has quit [Ping timeout: 240 seconds]
sirene has quit [Ping timeout: 240 seconds]
cleopatras has quit [Ping timeout: 255 seconds]
mattstratton has joined #ruby
<jhass> now where's that called...
paulfm has joined #ruby
<sonOfRa> I wonder why it was designed this way
<sonOfRa> this is completely counter-intuitive
kaspergr1bbe has quit [Client Quit]
jshultz has joined #ruby
ndrei_ has joined #ruby
<jhass> well, openssl in general is rather a clusterfuck
<sonOfRa> true
<sonOfRa> :ssl_version=>"SSLv23"
<sonOfRa> that's an interesting default
sambao21 has quit [Quit: Computer has gone to sleep.]
Avahey has quit [Quit: Connection closed for inactivity]
fandi has joined #ruby
ghr has quit []
mattstratton has quit [Read error: Connection reset by peer]
jleishman has quit [Quit: Be back later ...]
sambao21 has joined #ruby
coderhs has quit [Ping timeout: 244 seconds]
aclearman037 has joined #ruby
ghr has joined #ruby
<jhass> sonOfRa: the name is misleading
<jhass> man SSL_CTX_new
mattstratton has joined #ruby
diegoviola has joined #ruby
kaspergr1bbe has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kaspergr1bbe has quit [Client Quit]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
jerius has joined #ruby
zzz_Ridley is now known as Ridley5
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mattstratton has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
kobain has quit [Max SendQ exceeded]
kaspergr1bbe has joined #ruby
xyh has left #ruby ["Killed buffer"]
kobain has joined #ruby
jleishman has joined #ruby
<jhass> that's a rather stupid API
dangerousdave has quit [Client Quit]
kaspergr1bbe has quit [Client Quit]
<jhass> DEFAULT_PARAMS aren't the defaults until you call set_params
kobain has quit [Max SendQ exceeded]
moritzs has joined #ruby
<sonOfRa> that's what I meant "this is completely counter-intuitive"
mattstratton has joined #ruby
<sonOfRa> You don't happen to see any documentation on what exactly the options are for :ssl_version?
<jhass> METHODS
<jhass> >> require 'openssl'; OpenSSL::SSL::SSLContext::METHODS
<eval-in__> jhass => libssl.so.1.0.0: cannot open shared object file: No such file or directory - /execpad/interpreters/ruby-2.1.3/lib/ruby/2.1.0/i686-linux/openssl.so (LoadError) ... (https://eval.in/220010)
<jhass> ew
<jhass> did you check the manpage?
enebo has joined #ruby
<jhass> it's actually a sane default
User458764 has joined #ruby
kaspergr1bbe has joined #ruby
kaspergrubbe has quit []
kaspergr1bbe is now known as kaspergrubbe
AlSquirrel has joined #ruby
<sonOfRa> the manpage doesn't seem to exist on my system, is there an online-readable version of it?
<sonOfRa> nvm, got it
mattstratton has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
abuzze_ has joined #ruby
<hanmac1> charlie: are you the bot author or another one?
<sonOfRa> Hm, I would really like that sslv23 mode but with tlsv1 upwards... the tls mode doesn't signal that it might understand better protocols
koderok has joined #ruby
kobain has joined #ruby
takle has quit [Read error: Connection reset by peer]
takle has joined #ruby
renderful has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
it0a has joined #ruby
yfeldblum has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
<jhass> mmh, it doesn't as explicetly, but offering TLSv1 for 1.0 and then no TLSv1.1 and TLSv1.2 makes no sense, so I would expect TLSv1 to include all three
moritzs has quit [Ping timeout: 250 seconds]
abuzze has quit [Ping timeout: 250 seconds]
Bira has joined #ruby
<sonOfRa> Expecting things to make sense in this API is probably a bad idea :)
<jhass> oh, nvm, the next paragraphs details how to get the three only
jenrzzz has joined #ruby
sjohnsen has quit [Ping timeout: 254 seconds]
allcentury has joined #ruby
tlarevo has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 265 seconds]
<sonOfRa> Now to find out where the constants for :options are
gits1225 has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
hiyosi has quit [Read error: Connection reset by peer]
hhutch has joined #ruby
dangerousdave has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JohnBat26 has joined #ruby
hightower4 has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
ar45 has quit [Quit: WeeChat 1.0.1]
iamjarvo has joined #ruby
hiyosi has joined #ruby
boombadaroomba has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
<jhass> diretly under OpenSSL::SSL
Spami has joined #ruby
josephndenton has joined #ruby
<gits1225> New to Ruby (not programming). Need to get upto speed with Rails in two weeks. Any really good book recommendations?
<gits1225> The link to amazon from http://ruby-lang.org doesn't really help.
gaussblurinc1 has quit [Quit: Leaving.]
gaussblurinc1 has joined #ruby
<jhass> sonOfRa: so ctx.options = OpenSSL::SSL::OP_ALL|OpenSSL::SSL::NO_SSLv2|OpenSSL::SSL::NO_SSLv3 I guess
xanderwebs has joined #ruby
jlast has joined #ruby
boombadaroomba has quit [Ping timeout: 258 seconds]
sdwrage has joined #ruby
<sonOfRa> I wonder if OP_ALL is the correct thing to use, going to do more reading first.
<jhass> er, + missing OP_
<wmoxam> gits1225: !r4ia
<helpa> gits1225: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Steve Klabnik, Ryan Bigg, Yehuda Katz
mattstratton has joined #ruby
<wmoxam> gits1225: ^^^
<jhass> sonOfRa: SSL_CTX_set_options documents it
jonr22 has joined #ruby
AR45|ALT has joined #ruby
<ddv> gits1225: forget it, you will only scratch the surface
<wmoxam> oh
<wmoxam> unreleased?
<gits1225> wmoxam: Thanks! Does the book also cover Ruby (the programming language) or I will be able to pick it up as I go?
<wmoxam> gits1225: !r3ia
<helpa> gits1225: Rails 3 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Ryan Bigg and Yehuda Katz
mkaesz has joined #ruby
<wmoxam> :p
<ddv> also rails is a framework
<ddv> so you need to learn ruby and rails
<hanmac1> wmoxam: what is a rails bot doing in a non-rails channel?
<sonOfRa> aha, op_all is bug workarounds. Nice
<sonOfRa> Now I can finally add proper TLS support to net-ldap :)
hamakn has quit [Ping timeout: 264 seconds]
<wmoxam> hanmac1: I have no idea. I actually thought I was in #ror
Spami has quit [Client Quit]
<wmoxam> my appologies
<jhass> sonOfRa: ruby sets it if none are given, so I thought it might be a good keeper
<hanmac1> xD
<wmoxam> (sp)
<shevy> we even have a rails pal ... called railis here
<gits1225> ddv: Yea. I kinda figured that out. So, to catchup with Ruby, will the "pickaxe" book be good?
<shevy> gits1225 YES
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<gits1225> k
<shevy> it has the whole ruby reference in its third last part
<wmoxam> Pickaxe is ok
josephndenton has quit [Ping timeout: 256 seconds]
Dude007 has quit [Remote host closed the connection]
<ddv> gits1225: I would just try to make something and pickup some books along the way
arup_r has joined #ruby
<wmoxam> gits1225: what sort of programming experience do you have?
<gits1225> hmm, k. I have always been a get an overview of something and build it second kidna person :P
<ddv> gits1225: im doing rails professionaly for about 3 years now and I still have to learn a lot
<gits1225> wmoxam: C++/Qt
lmickh has joined #ruby
patric100e99 has joined #ruby
<gits1225> Someone also recommeded https://www.railstutorial.org/
<gits1225> Is that good?
<shevy> that is rails
BombStrike has quit [Ping timeout: 265 seconds]
jonr22 has quit [Ping timeout: 250 seconds]
<wmoxam> gits1225: for rails also check out the guides: http://guides.rubyonrails.org/
mattstratton has quit [Read error: Connection reset by peer]
<gits1225> k
<ddv> gits1225: are you familiar with rest, mvc, orm etc?
<gits1225> MVC & ORM. I am new to web dev I'd say.
<gits1225> except for some basic HTML/CSS Js/jQuery
fgo has quit [Quit: WeeChat 1.0]
BombStrike has joined #ruby
fgo has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<ddv> ok
jobewan has joined #ruby
AR45|ALT has quit [Quit: ZNC - http://znc.in]
clauswitt has joined #ruby
patric100e99 has quit [Ping timeout: 240 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
JBreit has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
<ddv> you can learn ruby in a day, getting to know the api well can take years though
mattstratton has joined #ruby
<gits1225> ...
<gits1225> heh
robustus is now known as robustus|Off
<shevy> there is much ahead for you to learn and master
Guest15231 has joined #ruby
<shevy> like #php
<gits1225> ...
mattstratton has quit [Read error: Connection reset by peer]
clauswit_ has quit [Ping timeout: 244 seconds]
<shevy> it will teach you to like consistency
gaussblurinc11 has joined #ruby
gaussblurinc1 has quit [Read error: Connection reset by peer]
<shevy> ddv I see this example here on stackoverflow $(function() {
xyh has joined #ruby
<shevy> is this also jquery specific?
mattstratton has joined #ruby
clauswitt has quit [Ping timeout: 250 seconds]
<shevy> boxes.each(function() {
<shevy> wow
<shevy> that almost reads like ruby
<xyh> I can merge a module into a class after the class is defined ??
<shevy> xyh yeah, .extend
tobago has quit [Remote host closed the connection]
<shevy> well it will be on your object
<ddv> js has some pretty weird shit
<xyh> shevy: so the module is merged into the object ? not the class ? a link of doc please :)
<shevy> hey do I have the links
Guest15231 has quit [Client Quit]
unclouded has quit [Ping timeout: 272 seconds]
professor_soap has joined #ruby
AR45|ALT has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
<shevy> >> module A; def test; puts 'test'; end; end; class Foo; end; b = Foo.new; b.extend A; b.test
<eval-in__> shevy => test ... (https://eval.in/220022)
<shevy> xyh ^^^
JBreit has joined #ruby
rshetty has joined #ruby
mattstratton has joined #ruby
sambao21 has joined #ruby
tagrudev has quit [Remote host closed the connection]
govg has quit [Ping timeout: 264 seconds]
fgo_ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<xyh> shevy: thx
govg has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
mattstratton has quit [Read error: Connection reset by peer]
<xyh> no way to merge into the class at all ? ddv: you mean js can do this and this is not good ?
hamakn has joined #ruby
Hanmac has joined #ruby
professor_soap has quit []
rshetty has quit [Remote host closed the connection]
<shevy> xyh can't you do it before you instantiate man?
<shevy> module Foo; end; class Bar; include Foo; end
rshetty has joined #ruby
noop has quit [Ping timeout: 256 seconds]
troyready has joined #ruby
xyh has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
takle has quit [Remote host closed the connection]
coderhs has joined #ruby
mattstratton has joined #ruby
mbwe has joined #ruby
gsd has joined #ruby
banister has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Jackneill has joined #ruby
sjohnsen has joined #ruby
AR45|ALT has quit [Quit: brb]
Morkel has quit [Quit: Morkel]
fabrice31 has joined #ruby
ikaros has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
AR45- has joined #ruby
mattstratton has joined #ruby
gaussblurinc11 has quit [Quit: Leaving.]
anaeem1 has joined #ruby
<nateberkopec> Can anyone think of a reason why this: https://github.com/getsentry/raven-ruby/pull/236/files#diff-af5b5d90339f0042f7f28753f2cd7690L210 wouldn't work?
<nateberkopec> I've never used Gem.loaded_specs before, but it seems like the perfect solution to this age-old problem: http://yehudakatz.com/2010/04/17/ruby-require-order-problems/
sdwrage has joined #ruby
hanmac1 has quit [Quit: Leaving.]
jottr has quit [Read error: Connection reset by peer]
mattstratton has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
jottr has joined #ruby
_ixti_ is now known as ixti
fabrice31 has quit [Ping timeout: 264 seconds]
treehug88 has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
ndrei_ has quit [Ping timeout: 265 seconds]
mattstratton has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
eindoofus has joined #ruby
gits1225 has quit []
elaptics is now known as elaptics`away
<eindoofus> what's the best online resourse for learning Ruby for some who already has beginner/intermmediate programming knowledge in Java/Python?
danijoo has joined #ruby
anarang has quit [Quit: Leaving]
tvw has quit []
elaptics`away is now known as elaptics
mattstratton has joined #ruby
<benzrf> eindoofus: resign yourself to nonfull understanding for a whiel
Bira has joined #ruby
<eindoofus> nonfull?
alex_the_designe has joined #ruby
<benzrf> eindoofus: w(p)gtr is not a terribly effectual teaching resource but it's a hell of a read
<workmad3> enebo: incomplete
mr_rogerz_ has joined #ruby
takle has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jobewan has quit [Read error: Connection reset by peer]
Ankhers has joined #ruby
danijoo_ has quit [Ping timeout: 250 seconds]
kobain has quit [Ping timeout: 250 seconds]
<shevy> long live jquery!
<shevy> hey
<shevy> why are there so many people asking for resources
<shevy> and learning books
mrsolo has joined #ruby
<shevy> what is happening
<shevy> is TIOBE wrong? they say that ruby is dying
mrsolo has quit [Remote host closed the connection]
sarkis has joined #ruby
<shevy> eindoofus although you may laugh but I recommend this here: https://pine.fm/LearnToProgram/chap_01.html
mattstratton has quit [Read error: Connection reset by peer]
<eindoofus> shevy, i guess it doesn't hurt to learn the basics
mattstratton has joined #ruby
<shevy> well
<shevy> after you read it through
sambao21 has joined #ruby
<shevy> you can explain to me how blocks in ruby work and how you can use them
_maes_ has joined #ruby
<workmad3> shevy: TIOBE is most likely wrong, yes... pretty sure we've had this discussion before though :P
<shevy> yeah
<eindoofus> shevy, sounds like it does touch on advanced topics in that case
<shevy> if I ever meet one of those TIOBE guys
<shevy> eindoofus yes!
<shevy> it's still a bit too thin
<shevy> you will be finished in less than 30 minutes
<shevy> eindoofus you can also explain to my how Proc.new works in ruby :)
<shevy> *me
AR45- is now known as AR45
sambao21 has quit [Client Quit]
sarkis has quit [Ping timeout: 245 seconds]
tokik has quit [Ping timeout: 255 seconds]
mattstratton has quit [Read error: Connection reset by peer]
joonty1 is now known as joonty
mattstratton has joined #ruby
i_s has joined #ruby
gaganjyot has joined #ruby
tokik has joined #ruby
mattstratton has quit [Max SendQ exceeded]
mattstratton has joined #ruby
max96at|off is now known as max96at
jottr has quit [Ping timeout: 264 seconds]
sdwrage has joined #ruby
i_s_ has joined #ruby
jenrzzz has joined #ruby
rshetty has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
jobewan has joined #ruby
jobewan has quit [Remote host closed the connection]
TPBallbag has joined #ruby
moritzs has joined #ruby
danijoo_ has joined #ruby
dawkirst has quit [Quit: Leaving...]
i_s has quit [Ping timeout: 250 seconds]
dorei has joined #ruby
jobewan has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
spyderman4g63 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
hhutch has quit [Ping timeout: 250 seconds]
bal has quit [Quit: bal]
<shevy> wow
danijoo has quit [Ping timeout: 250 seconds]
<shevy> jquery-ui is 16.000 lines
unclouded has joined #ruby
stunder has joined #ruby
mattstratton has joined #ruby
Scotteh has joined #ruby
tercenya has quit []
josephndenton has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
mathias2 has quit [Ping timeout: 264 seconds]
mkaesz has quit [Ping timeout: 245 seconds]
lolmaus has quit [Remote host closed the connection]
jimbach_ has joined #ruby
lolmaus has joined #ruby
dkb20k has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 244 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Asher has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 240 seconds]
tokik has quit [Ping timeout: 244 seconds]
jimbach has quit [Ping timeout: 245 seconds]
eindoofus has quit [Quit: Leaving]
jwhite_ has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
mattstratton has quit [Read error: Connection reset by peer]
Asher has joined #ruby
spyderman4g63 has joined #ruby
rshetty has joined #ruby
jwhite_ is now known as jhwhite
troyready has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 272 seconds]
IrishGringo has joined #ruby
robustus|Off is now known as robustus
mattstratton has joined #ruby
mikepack has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jobewan has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
jobewan has joined #ruby
mkaesz has joined #ruby
beef-wellington has joined #ruby
kaspergrubbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
ghr has quit [Read error: Connection reset by peer]
ghr has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
livathinos has quit []
<kaspergrubbe> set chanact_
kaspergrubbe has quit [Client Quit]
mattstratton has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
rostam has quit [Remote host closed the connection]
mathias2 has joined #ruby
koderok has quit [Quit: koderok]
anaeem1 has quit [Ping timeout: 256 seconds]
AFK_Geek has quit [Quit: Fades into the shadows]
gaganjyot has quit [Quit: Leaving]
mattstratton has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
reinaldob has joined #ruby
i_s_ has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
triple_b has joined #ruby
<shevy> hehe
<shevy> /j #crazy_sex_with_rubyists
<shevy> oops
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 240 seconds]
<n3b_> mmh
danjordan has quit [Quit: danjordan]
nonks has joined #ruby
danjordan has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
aganov has quit [Quit: Leaving]
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
<benzrf> shevy u lied
<benzrf> that channel is emypty
mattstra_ has joined #ruby
goodenough has joined #ruby
robertt_dex has joined #ruby
<banister> benzrf shevy is an interesting character
mattstratton has quit [Read error: Connection reset by peer]
tlarevo has quit [Remote host closed the connection]
<banister> he gets more interesting as the years go by, as he sinks deeper into ...
<banister> ;)
tlarevo has joined #ruby
<workmad3> hehe
JBreit has left #ruby ["Leaving"]
troulouliou_dev has quit [Remote host closed the connection]
mattstra_ has quit [Read error: Connection reset by peer]
fluuflu has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 244 seconds]
joonty has quit [Quit: Leaving]
mattstratton has joined #ruby
pengin has joined #ruby
unclouded has quit [Ping timeout: 272 seconds]
mattstratton has quit [Client Quit]
unclouded has joined #ruby
havenwood has joined #ruby
danguita has quit [Remote host closed the connection]
sambao21 has joined #ruby
koderok has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
timonv_ has quit [Remote host closed the connection]
<arrubin> Was TIOBE ever right?
mikesplain has quit [Ping timeout: 250 seconds]
<arrubin> fluuflu just spammed me in private.
nvdpl has joined #ruby
livingstn has quit []
Fire-Dragon-DoL has joined #ruby
yfeldblum has joined #ruby
mityaz has quit [Quit: See ya!]
<nvdpl> I am trying to run static site generator called jekyll. Stable version, empty gemset (rvm), but I am having problem with require/autoload all over the place. Anyone has a general clue where to begin to debug this -> ~/.rvm/gems/ruby-2.1.4@test/gems/mercenary-0.3.4/lib/mercenary.rb:20:in `program': cannot load such file -- mercenary/program (LoadError)
Mia has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
ndrei_ has joined #ruby
koderok has quit [Quit: koderok]
timonv_ has joined #ruby
kobain has joined #ruby
stunder has quit [Remote host closed the connection]
DrewDr1248 has quit [Ping timeout: 256 seconds]
Mia has joined #ruby
IrishGringo has joined #ruby
benzrf is now known as benzrf|offline
gsd has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<jhass> do you use bundler?
tier has quit [Remote host closed the connection]
<nateberkopec> nvdpl: whatever you're doing, try bundle exec <thing you were trying to do>
tier has joined #ruby
tyll has quit [Ping timeout: 256 seconds]
jhwhite has left #ruby [#ruby]
<nvdpl> nateberkopec: I am not using bundler here.
i0n has quit [Quit: snooze]
<jhass> banister: fluuflu spams
<nvdpl> nateberkopec: Though it wouldn't hurt to just try it instead.
banister is now known as banisterfiend
fluuflu was banned on #ruby by banisterfiend [*!~fluuflu@90.174.2.248]
fluuflu was kicked from #ruby by banisterfiend [Your behavior is not conducive to the desired environment.]
<jhass> thx
tyll has joined #ruby
jottr has joined #ruby
<nvdpl> nateberkopec: Using bundler solves that issue.
<nvdpl> nateberkopec: Thanks.
<nateberkopec> np
gmas has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
i_s has joined #ruby
danguita has joined #ruby
silkfox has joined #ruby
psy__ has joined #ruby
renderful has joined #ruby
seanp2k has quit [Quit: seanp2k]
yelluke has joined #ruby
yelluke has left #ruby [#ruby]
beef-wellington has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
ctp has joined #ruby
skippy70 has joined #ruby
rshetty has quit [Ping timeout: 244 seconds]
gmas has quit [Ping timeout: 250 seconds]
Dude007 has joined #ruby
rshetty has joined #ruby
MrDoctor has quit [Quit: Leaving]
danijoo_ has quit [Quit: Leaving...]
jonr22 has quit [Ping timeout: 240 seconds]
stunder has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
danijoo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby
timonv_ has quit [Remote host closed the connection]
AndyBotwin has joined #ruby
AndyBotwin has quit [Changing host]
AndyBotwin has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
zB0hs has joined #ruby
zarubin has quit [Remote host closed the connection]
fgo_ has quit [Ping timeout: 244 seconds]
wjimenez5271 has joined #ruby
aspires has joined #ruby
spyderman4g63 has quit [Ping timeout: 245 seconds]
devdazed has joined #ruby
mistermocha has joined #ruby
goodenough has quit [Remote host closed the connection]
jleishman has quit [Quit: Be back later ...]
shanlar- has quit [Quit: shanlar-]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
wjimenez_ has joined #ruby
crazydiamond has quit [Ping timeout: 244 seconds]
sarkis has joined #ruby
dkb20k has joined #ruby
<dreinull> apeiros: btw, thanks for your help, I fixed my very slow calendar app. It now runs about 20x faster.
<apeiros> you're welcome
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<dreinull> that dedicated class did the thing.
kireevco has joined #ruby
<apeiros> and is 20x faster still slow or fast?
<apeiros> that's good. will make it much easier to benchmark it and fix remaining slow parts
shanlar has joined #ruby
<dreinull> I think going from 52s down to about 3 ist pretty fast. I think it's partly slow because I'm parsing a lot for a 12month range.
spider-mario has joined #ruby
<dreinull> also the google api tends to be slow for some requests. And comparing dates and date_time is also a bottleneck.
kingsley-t has joined #ruby
noop has joined #ruby
<dreinull> I'm not programming very often so sometimes I can't get my head around some easy stuff.
wjimenez5271 has quit [Read error: Connection reset by peer]
<arup_r> Why not getting the output ? https://gist.github.com/aruprakshit/92bb09028871841e59f4
wjimenez5271 has joined #ruby
wjimenez_ has quit [Read error: No route to host]
MatthewsFace has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gregf__> bundle list
<gregf__> bah :/ wrong chat
rshetty has quit [Remote host closed the connection]
mleung has joined #ruby
rukid0 has joined #ruby
triple_b has joined #ruby
ikaros has quit [Quit: Ex-Chat]
iamjarvo has joined #ruby
<rukid0> anyone uses dragonflyBSD here!! I would like to PM so that I don't disturb the room , please
danijoo has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
danijoo has joined #ruby
spyderman4g63 has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
<dorei> i thought that matthew dillon was the only dfly user :p
treehug88 has quit [Ping timeout: 245 seconds]
dkb20k has quit [Ping timeout: 264 seconds]
wjimenez5271 has quit [Remote host closed the connection]
koderok has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 1.0.1]
robustus is now known as robustus|Off
livingstn has joined #ruby
beneggett has joined #ruby
rukid0 has quit [Ping timeout: 258 seconds]
robustus|Off is now known as robustus
soulisson has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
chthon has quit [Ping timeout: 250 seconds]
rukid0 has joined #ruby
<rukid0> umm, I want to install one. It freezes during bootup
dumdedum has quit [Quit: foo]
maestrojed has joined #ruby
<soulisson> Hi, is there any good book for security with Ruby like Violent Python?
DrewDr1248 has joined #ruby
takle has quit [Remote host closed the connection]
steveElsewhere has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
takle has joined #ruby
treehug88 has joined #ruby
ndrei_ has quit [Ping timeout: 264 seconds]
kireevco has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 256 seconds]
<steveElsewhere> hey does anyone know how I can get rvm to use more resources when installing rubies? it looks like it uses barely any cpu but it crawls along pathetically - is network the bottleneck?
robustus is now known as robustus|Off
devdazed has quit [Read error: Connection reset by peer]
devdazed has joined #ruby
hmsimha has joined #ruby
<steveElsewhere> oh
<steveElsewhere> run with --debug makes sense
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 256 seconds]
<eam> generally builds are latency limited, then i/o, then cpu
takle has quit [Ping timeout: 244 seconds]
alex88 has quit []
soulcake_ has quit [Ping timeout: 247 seconds]
pietr0 has joined #ruby
drawingthesun has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
sambao21 has joined #ruby
yfeldblum has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
dacamp has left #ruby [#ruby]
nrsk has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
speed145a has joined #ruby
anotherZero has quit [Ping timeout: 255 seconds]
skolman_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
kireevco has joined #ruby
mr_rogerz_ has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
sjohnsen has quit [Ping timeout: 301 seconds]
boombadaroomba has joined #ruby
iamjarvo has joined #ruby
banister has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
weaksauce has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
iliketurtles has quit [Remote host closed the connection]
<zacts> huh, I wonder if I can do minikanren with ruby..
corehook has joined #ruby
msgodf has quit [Remote host closed the connection]
timonv_ has joined #ruby
soulcake has joined #ruby
steveElsewhere has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> what is kanren
<shevy> is that like sudoku
workmad3 has joined #ruby
Soda has joined #ruby
<corehook> hi dudes. Who can help me with RubyMine ? Today my first experience with him , before i used sublime text 3. My os Mac OS. I used cmd+d key to remove right symbol, like 'delete' in windows. How and where i can bind 'delete' button in rubymine ?
<zacts> no it's a logic language
MattB2 has joined #ruby
desp has joined #ruby
<arup_r> "with him" LoL
x1337807x has joined #ruby
allcentury has joined #ruby
x1337807x has quit [Max SendQ exceeded]
sjohnsen has joined #ruby
<corehook> will be right 'with them' ?
<corehook> with it*
josephndenton has joined #ruby
nkumari has joined #ruby
silkfox has quit [Read error: Connection reset by peer]
beef-wellington has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
fandi has quit [Read error: Connection reset by peer]
snovity has quit [Read error: Connection reset by peer]
zacts has quit [Quit: leaving]
josephndenton has quit [Ping timeout: 240 seconds]
skippy70 has quit [Remote host closed the connection]
gaganjyot has joined #ruby
x1337807x has joined #ruby
fandi has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
anaeem1_ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
jgrevich has joined #ruby
porfa has quit [Ping timeout: 245 seconds]
anaeem1_ has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
mikeg has joined #ruby
DTSCode is now known as dts
sambao21 has quit [Quit: Computer has gone to sleep.]
dts is now known as DTSCode
wallerdev has joined #ruby
sambao21 has joined #ruby
aspires has quit []
mrsolo has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
TPBallbag has quit [Remote host closed the connection]
roolo has quit [Quit: AAAAaaaaAAAAAAA]
<shevy> corehook stick to sublime :)
aspires has joined #ruby
<corehook> xD
spastorino has quit [Quit: Connection closed for inactivity]
phutchin1 has joined #ruby
anaeem1_ has quit [Ping timeout: 244 seconds]
<shevy> arup_r why do you delete your gists?
sdwrage has joined #ruby
alex_the_designe has quit [Ping timeout: 250 seconds]
mr_rogerz_ has joined #ruby
<arup_r> something weird I found shevy: why 2 different result? https://gist.github.com/aruprakshit/e47a46c36c2a83445b9d
<shevy> I abandoned XML many years ago
soulisson has quit [Quit: Quitte]
phutchins has quit [Ping timeout: 264 seconds]
<arup_r> I am keep doing
x1337807x has quit [Ping timeout: 255 seconds]
yetanotherdave has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
i0n has joined #ruby
mistermocha has quit [Remote host closed the connection]
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
graydot has joined #ruby
arup_r has quit [Quit: Leaving.]
wjimenez5271 has joined #ruby
mr_rogerz_ has quit [Ping timeout: 250 seconds]
Ankhers has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Pip has joined #ruby
arup_r has joined #ruby
francisfish has quit [Remote host closed the connection]
zacts has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> I am looking at things that can be doable with jquery
<shevy> if only we'd all have ruby in the browser
dkb20k has joined #ruby
<eam> shevy: just use emscripten
francisfish has joined #ruby
thagomizer has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy__ has quit [Quit: Leaving]
andikr has quit [Remote host closed the connection]
cleopatra has joined #ruby
i0n has quit [Quit: snooze]
i0n has joined #ruby
dkb20k has quit [Ping timeout: 265 seconds]
desp has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Ping timeout: 272 seconds]
TPBallbag has joined #ruby
jottr has joined #ruby
ndrei has joined #ruby
desp has joined #ruby
t0rc has joined #ruby
TPBallbag has quit [Remote host closed the connection]
takle has joined #ruby
baweaver has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
silkfox has joined #ruby
tier_ has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
yfeldblum has joined #ruby
baweaver has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 265 seconds]
tier has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
TPBallbag has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
koderok has left #ruby [#ruby]
nkumari has joined #ruby
seanp2k has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t0rc has quit [Quit: WeeChat 1.0.1]
chrishough has joined #ruby
i0n has quit [Quit: snooze]
djbkd has quit [Remote host closed the connection]
MattB2 has quit [Remote host closed the connection]
djbkd has joined #ruby
troyready has joined #ruby
tyll has quit [Ping timeout: 264 seconds]
rdark has quit [Quit: leaving]
tyll has joined #ruby
jonr22 has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
nkumari has quit [Remote host closed the connection]
mikeg has quit [Ping timeout: 264 seconds]
DogsAndCats has joined #ruby
zacts has quit [Quit: leaving]
sinequanon has joined #ruby
diegoviola has joined #ruby
banister has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
jonr22 has quit [Ping timeout: 255 seconds]
renderful has quit [Remote host closed the connection]
Phrogz has joined #ruby
bluehavana has joined #ruby
nkumari has joined #ruby
marr has joined #ruby
wald0 has quit [Quit: Lost terminal]
Morkel has joined #ruby
renderful has joined #ruby
vyorkin has joined #ruby
nvdpl has quit [Quit: ZZZzzz…]
kirun has joined #ruby
josephndenton has joined #ruby
n008f4g_ has joined #ruby
JokesOnYou77_ has joined #ruby
tier_ has quit [Remote host closed the connection]
spider-mario has quit [Ping timeout: 244 seconds]
JokesOnYou77_ has left #ruby ["Leaving"]
spider-mario has joined #ruby
dc_ has joined #ruby
alex_the_designe has joined #ruby
Xeago has joined #ruby
josephndenton has quit [Ping timeout: 258 seconds]
adac has joined #ruby
desp has quit [Quit: This computer has gone to sleep]
Xeago__ has joined #ruby
<wallerdev> in a comparison function returning negative, 0 or positive, if you have two fixnums can it just be implemented as x - y
Phrogz has quit [Ping timeout: 246 seconds]
rukid0 has quit [Remote host closed the connection]
tier has joined #ruby
<Hanmac> wallerdev: no
mkaesz has quit [Remote host closed the connection]
Xeago_ has quit [Ping timeout: 240 seconds]
<Hanmac> because you mean <=> and it does specially return -1, 0, 1 or nil ... nothing else
baweaver has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<wallerdev> what about in the case where i just needed negative, 0 or positive
failshell has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<failshell> is there something like rdoc but that would generate a markdown documentation?
chipotle_ has quit [Ping timeout: 245 seconds]
Trynemjoel has quit [Ping timeout: 265 seconds]
steveElsewhere has joined #ruby
<steveElsewhere> anyone know if I can use a ruby binary mount with travis' rvm implementation to save time?
fenak has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adac> Guys, Is there a difference in the result I retrieve with these two methods? https://gist.github.com/anonymous/03b5edac96d48e0c0b43
timonv_ has joined #ruby
DLSteve has joined #ruby
Scotteh has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
ndrei has joined #ruby
Trynemjoel has joined #ruby
patric100e99 has joined #ruby
TPBallbag has quit [Remote host closed the connection]
stormbytes has joined #ruby
stormbytes has quit [Client Quit]
diegoviola has quit [Quit: WeeChat 1.0.1]
stormbytes has joined #ruby
stormbytes has left #ruby [#ruby]
noop has quit [Ping timeout: 250 seconds]
DrewDr1248 has quit [Quit: Leaving]
jheg has joined #ruby
razieliyo has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
alex_the_designe has quit [Ping timeout: 258 seconds]
jimnak has joined #ruby
<jimnak> how does __FILE__ work?
patric100e99 has quit [Ping timeout: 258 seconds]
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
jeremy04 has joined #ruby
graydot has quit [Quit: graydot]
jenrzzz has joined #ruby
Scotteh has joined #ruby
<eam> jimnak: it's the name of the file being executed, what do you want to know about it specifically?
benzrf|offline is now known as benzrf
alem0lars has quit [Max SendQ exceeded]
timonv_ has quit [Remote host closed the connection]
alem0lars has joined #ruby
darkswordchris has joined #ruby
timonv_ has joined #ruby
<jimnak> if __FILE__ == $0
<jimnak> i don't understand that line
<darkswordchris> Hello. I have installed ruby 1.8.7, but I can't seem to find the header files for use in c++. I am on Windows btw
<shevy> jimnak well __FILE__ is special
<shevy> jimnak but all .rb files will have it set, can you see that?
<jimnak> no
Timgauthier has joined #ruby
<shevy> no ok
<eam> jimnak: it's testing whether the current file is the same as the program name being run
<shevy> so create a file jimnak
<shevy> a .rb file
<shevy> in this file put this content: puts __FILE__
<shevy> run this .r file
<shevy> *.rb
<eam> for foo.rb being run directly it would be "foo.rb" == "foo.rb"
jenrzzz has quit [Ping timeout: 240 seconds]
<shevy> darkswordchris how did you "install" ruby
<eam> but if you have foo.rb being require()'d by bar.rb (which was run directly) it would be "foo.rb." == "bar.rb"
DogsAndCatsAndMi has joined #ruby
<eam> jimnak: $0 is what you typed on the command line. __FILE__ is the current file
graydot has joined #ruby
<eam> jimnak: it's used to test whether you're being run directly, or required by something else
<darkswordchris> shevy: Using the RubyInstaller from http://rubyinstaller.org/
Scotteh has quit [Ping timeout: 256 seconds]
<jimnak> eam, thank you
ghr has joined #ruby
<jimnak> what do you guys use to program?
<shevy> darkswordchris hmm perhaps it does not have the .h files
timonv_ has quit [Ping timeout: 256 seconds]
<shevy> most people won't need it I suppose
<shevy> on windows
<jimnak> thank you shevy
<darkswordchris> hmm, I usppose that's true. I'll try pik
<darkswordchris> suppose*
DogsAndCats has quit [Ping timeout: 245 seconds]
TPBallbag has joined #ruby
<shevy> jimnak \o/
Dude007 has quit [Remote host closed the connection]
<shevy> jimnak I use "if __FILE__ == $PROGRAM_NAME"
Dude007 has joined #ruby
<shevy> the $0 goes on my nerves
nonks has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
<jimnak> what is $0?
Dude007 has quit [Remote host closed the connection]
samuel02 has quit []
robbyoconnor has quit [Ping timeout: 240 seconds]
crazydiamond has joined #ruby
Phrogz has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
pdtpatr1ck has quit [Quit: leaving]
<eam> $0 and $PROGRAM_NAME are the same thing
<jimnak> oh, why use $0?
i0n has joined #ruby
<jimnak> i can see why it gets on your nerves now
alex88 has joined #ruby
<jimnak> i think PROGRAM_NAME makes more sense
alex88 has quit [Client Quit]
alex88 has joined #ruby
<jimnak> but PROGRAM_NAME is actually replaced by the program's name right?
DogsOrCats has joined #ruby
claymore has joined #ruby
ducklobster has joined #ruby
<eam> jimnak: $0 comes from perl, and before that C. It's the zero-argument in the unix argv array
<Phrogz> $PROGRAM_NAME is a global variable that references a string
jottr has quit [Ping timeout: 258 seconds]
<shevy> jimnak don't forget the $
<shevy> PROGRAM_NAME would be something different than $PROGRAM_NAME
<shevy> in ruby you must have good eyes :)
<eam> jimnak: if you have one program called foo.rb and you symlink it to bar.rb (so they're the same file, with two names) then if you run ./foo.rb $0 will be "foo.rb" but if you run ./bar.rb it will be "bar.rb"
Pip has quit [Ping timeout: 272 seconds]
<shevy> jimnak you should try it on your own, if you followed my puts __FILE__ instruction then you would understand __FILE__ completely; next step would be to understand $PROGRAM_NAME but if it helps you, here is how I translate this code in my brain
msgodf has joined #ruby
<shevy> if __FILE__ == $PROGRAM_NAME
sdwrage_ has joined #ruby
<shevy> jimnak: ^^^ "if this file is run from the commandline directly"
<shevy> as in via "ruby foo.rb"
<shevy> execute that specific code inside that if clause statement
Techguy305 has joined #ruby
<adac> open-uri vs mechanize: https://gist.github.com/anonymous/37d480cd3457aee24f43 I'm wondering why mechanize shows me the umlauts "encoded"? Is tehre a setting in mechanize that would give me back the same result as with open-uri?
DogsAndCatsAndMi has quit [Ping timeout: 272 seconds]
melik has joined #ruby
<Phrogz> adac: It depends on the encoding of the strings involved in the pipeline.
Juanchito has quit [Quit: Connection closed for inactivity]
Techguy305 has quit [Max SendQ exceeded]
sdwrage has quit [Ping timeout: 245 seconds]
Techguy305 has joined #ruby
<Phrogz> adac: I don't use Mechanize, but I'd suggest that searching the Web for "Mechanize UTF-8" might give you a good reault.
<Phrogz> s/reault/result/
<adac> Phrogz, I played around with the encodings alrady in mechanize, but it seesm there are chars within theis html 'blob' that mechanize has its problems with
<adac> Phrogz, do you use open-uri?
<Phrogz> adac: Occasionally. e.g. http://stackoverflow.com/a/4702055/405017
desp has joined #ruby
<Phrogz> I wonder if perhaps the same general approach can work for you: get the raw HTML via open-uri with desired encoding, and then feed to Mechanize.
seanp2k has quit [Quit: seanp2k]
arup_r has quit [Quit: Leaving.]
<adac> Phrogz, basically I use mechanize because it can follow redirections you know
steveElsewhere has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
triple_b has quit [Quit: Textual IRC Client: www.textualapp.com]
<darkswordchris> so... what's the best way to get ruby on Windows? Can someone just package up their include directory and send it to me?
dideler has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
auxbuss has joined #ruby
dangerousdave has quit [Client Quit]
takle has quit [Remote host closed the connection]
greenride has joined #ruby
<Phrogz> darkswordchris: rubyinstaller.org
<Phrogz> darkswordchris: Just the installer works very well, unless you need to build native gems. If you need to do that, you need to (a) also download DevKit, (b) unzip it into a directory with no spaces,e .g. C:\Ruby200\DevKit\ (c) in cmd.exe go into that directory and ruby dk.rb init ruby dk.rb install
<darkswordchris> Phrogz: used it, doesn't seem to include the header files for use with c++
takle has joined #ruby
<darkswordchris> for 1.8.7. Ruby 2.0.0 from there is great
<Phrogz> darkswordchris: You are now beyond my ken. :) I don't develop any extensions.
Bira has quit [Remote host closed the connection]
<darkswordchris> Alright, thanks.
foooobear has joined #ruby
DogsAndCatsAndMi has joined #ruby
nkumari has quit [Remote host closed the connection]
shazaum has quit [Quit: Leaving]
narph has quit [Quit: Connection closed for inactivity]
<darkswordchris> Found the headers. They are buried all the way down at Ruby187\lib\ruby\1.8\i386-mingw32
takle has quit [Ping timeout: 250 seconds]
DrCode has quit [Ping timeout: 250 seconds]
DogsOrCats has quit [Ping timeout: 255 seconds]
failshell has quit []
<jimnak> okay, puts is outputting the name of the file
nkumari has joined #ruby
darkswordchris has quit [Quit: Page closed]
adac has quit [Ping timeout: 240 seconds]
<jimnak> $PROGRAM_NAME outputs true
narph has joined #ruby
baweaver has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
adac has joined #ruby
g0bl1n has joined #ruby
DogsOrCats has joined #ruby
DrCode has joined #ruby
sdwrage has joined #ruby
mathias2 has quit [Ping timeout: 255 seconds]
Mars` has joined #ruby
govg has quit [Remote host closed the connection]
sdwrage_ has quit [Ping timeout: 244 seconds]
sdwrage has quit [Client Quit]
mikeg has joined #ruby
Xeago__ has quit [Remote host closed the connection]
<jimnak> what is jvm?
DogsAndCatsAndMi has quit [Ping timeout: 264 seconds]
<jimnak> i mean jruby
rodfersou has quit [Quit: leaving]
Baluser has joined #ruby
Freemason has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vyorkin has quit [Read error: Connection reset by peer]
foooobear has quit [Quit: (null)]
<headius> jimnak: Ruby for the JVM
vyorkin has joined #ruby
mikeg has quit [Ping timeout: 258 seconds]
mr_rogerz_ has joined #ruby
Techguy305 has quit [Ping timeout: 240 seconds]
dkb20k has joined #ruby
gamzera_ has quit [Read error: Connection reset by peer]
g0bl1n has quit [Ping timeout: 250 seconds]
kireevco has quit [Quit: Leaving.]
neoxquick has joined #ruby
ZaRDaK has joined #ruby
rkalfane has joined #ruby
tercenya has joined #ruby
gaganjyot has quit [Quit: Leaving]
gsd has quit [Ping timeout: 255 seconds]
thagomizer has quit [Quit: Leaving.]
<greenride> gem install therubyracer -v '0.12.1' fails on Yosemite. Has anyone else experienced this? The error is `g++: error: unrecognized command line option '-rdynamic'`.
iamjarvo has joined #ruby
<Phrogz> greenride: No, but I can tell you that I have installed other gems on Yosemite without issue. (I'm not there now or I'd test for you.)
dkb20k has quit [Ping timeout: 250 seconds]
sdwrage has joined #ruby
kristofferR has joined #ruby
<greenride> Phrogz: It is only that gem, which is giving me problems.
thagomizer has joined #ruby
jheg has quit [Quit: jheg]
gsd has joined #ruby
thagomizer has quit [Client Quit]
Techguy305 has joined #ruby
codezomb has joined #ruby
beef-wellington has joined #ruby
moritzs has joined #ruby
ptrrr has joined #ruby
ptrrr has quit [Client Quit]
gr33n7007h has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
ptrrr has joined #ruby
silkfox has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
wallerdev has quit [Quit: wallerdev]
vyorkin has quit [Ping timeout: 244 seconds]
ldnunes has quit [Quit: Leaving]
<shevy> destroy that gem
<shevy> and convince Phrogz to install this gem to test for you :>
<shevy> I'm gonna try on linux
<shevy> Fetching: libv8-3.16.14.7.gem (100%)
<shevy> Building native extensions. This could take a while...
nonks has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
DogsAndCatsAndMi has joined #ruby
sinequanon has quit [Remote host closed the connection]
ghr has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
DogsOrCats has quit [Ping timeout: 256 seconds]
jlast has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
mathias2 has joined #ruby
jlast has joined #ruby
damic has joined #ruby
seanp2k has joined #ruby
<damic> I'm trying to use devise and when I use the sign_up route it error "uninitialezed constant Users" any help
jheg has joined #ruby
<damic> here is my setup i ran if it helps http://pastebin.com/p09udUge
MattB2 has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
moshee has quit [Ping timeout: 245 seconds]
lifenoodles has quit [Ping timeout: 240 seconds]
fgo_ has joined #ruby
francisfish has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
gr33n7007h has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
lolmaus has joined #ruby
alex88_ has joined #ruby
jonr22 has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
alex88 has quit [Ping timeout: 245 seconds]
nonks has quit [Ping timeout: 250 seconds]
fgo_ has quit [Ping timeout: 245 seconds]
lifenoodles has joined #ruby
yetanotherdave has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
jgrevich has quit [Ping timeout: 245 seconds]
DrForr has quit [Ping timeout: 240 seconds]
drjfreeze has quit [Ping timeout: 258 seconds]
jgrevich has joined #ruby
DrForr has joined #ruby
<adac> Phrogz, it looks like I have isssues even if I force encode the mechanize content
drjfreeze has joined #ruby
<adac> so Both are now utf 8 but I have problems saving the mechanize output in the database
gsd has quit [Ping timeout: 245 seconds]
<adac> whereas the open-uri output does save just fine
<adac> there must be some weird chars in the mechanize output still
moritzs has quit [Remote host closed the connection]
moshee has joined #ruby
josephndenton has joined #ruby
takle has joined #ruby
Pupeno has quit [Remote host closed the connection]
<shevy> Done installing documentation for ref, libv8, therubyracer after 1 seconds
<shevy> 3 gems installed
<shevy> greenride all things worked! \o/
<shevy> long live linux
Pupeno has joined #ruby
phutchin1 has quit [Ping timeout: 258 seconds]
speaking1ode is now known as speakingcode
boombadaroomba has joined #ruby
max96at is now known as max96at|off
djbkd has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 265 seconds]
andrewlio has quit [Ping timeout: 272 seconds]
Linell has joined #ruby
chipotle has joined #ruby
max96at|off is now known as max96at
francisfish has quit [Remote host closed the connection]
Bira has joined #ruby
cantonic has joined #ruby
<Linell> So I've got a hash where I can access items like group["id"] for everything. Is there a way to convert that to group[:id] for every item in that hash?
<Linell> Words are failing me today
beef-wellington has quit [Ping timeout: 264 seconds]
rudisimo has joined #ruby
greenride has quit [Quit: Leaving.]
Bira has quit [Ping timeout: 265 seconds]
rudisimo has quit [Client Quit]
jack_rabbit has joined #ruby
jaequery has joined #ruby
rudisimo has joined #ruby
<shevy> alternatively, use an accessor method to your hash, and inside that method simply ensure that you have the proper query key (string or symbol)
jaequery has quit [Max SendQ exceeded]
nkumari has joined #ruby
<apeiros> Linell: are you using rails?
<Linell> Padrino
jaequery has joined #ruby
<Linell> I'm really just trying to get this to work in a decent way http://sequel.jeremyevans.net/rdoc/files/doc/cheat_sheet_rdoc.html#label-Update%2FDelete+rows
<apeiros> hash.replace(hash.map { |k,v| [k.to_sym, v] }.to_h)
jaequery has quit [Max SendQ exceeded]
beef-wellington has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<Linell> Awesome, that's actually perfect.
<Linell> At the risk of sounding dumb, what's the terminology difference in access via "" and :?
jaequery has joined #ruby
baweaver has joined #ruby
<apeiros> "string" and :symbol
<apeiros> they are different kinds of objects
jaequery has quit [Max SendQ exceeded]
<apeiros> just like "123" is different from 123 (string vs integer)
<Linell> So the difference is just that the hash is mapped to strings instead of symbols?
jaequery has joined #ruby
<apeiros> any object can act as a hash key. all it needs is respond to #hash and #eql?, and since Object defines those already, you'd have to actively remove them
msgodf has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<tercenya> linell: or just import active_support/core_ext/hash/keys from the activeuspport gem, and you'll get Hash#symbolize_keys. if you do it by hand, consider "k.to_sym rescue k" incase you can't symbolize the string
<apeiros> s/the hash is mapped to strings/the values in the hash are mapped/keyed to strings/
jaequery has quit [Max SendQ exceeded]
<apeiros> tercenya: bad
<apeiros> tercenya: don't hide bugs
<apeiros> I really hate software which does.
MattB2_ has joined #ruby
<Linell> Ah, cool cool. TIL.
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
nkumari has quit [Ping timeout: 240 seconds]
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
Jackneill has quit [Ping timeout: 245 seconds]
nyanz has joined #ruby
jaequery has quit [Max SendQ exceeded]
<tercenya> apeiros: depends on whether you think the function should gracefully degrade or not. Foo#bar shouldn't require me to catch implementation bugs in #bar upstream
MattB2 has quit [Ping timeout: 256 seconds]
KC9YDN has quit [Quit: ☭ Karl Marx & Friedrich Engels, Vladimir Lenin, Josef Stalin, Mao Tse-Tung, Kim Il Sung, Ho , Fidel Castro & Chi MinhErnesto Guevara ☭]
andrewlio has joined #ruby
<apeiros> tercenya: this is not "gracefully degrading"
jaequery has joined #ruby
<apeiros> this is hiding bugs. plain and simple.
fabrice31 has quit [Ping timeout: 240 seconds]
gsd has joined #ruby
<apeiros> you, the implementer of symbolize_keys, do NOT know the intent. you are NOT in the position to make this kind of decision.
<apeiros> only the user of your method is.
jaequery has quit [Max SendQ exceeded]
<apeiros> and yes, it is his duty to sanitize the input to your method
Mars` has quit [Ping timeout: 256 seconds]
<apeiros> reversing this is insanity.
jaequery has joined #ruby
decoponio has quit [Quit: Leaving...]
<apeiros> and yes, I have a very strong opinion on that.
tvw has joined #ruby
mistergibson has quit [Ping timeout: 264 seconds]
jaequery has quit [Max SendQ exceeded]
<shevy> tercenya has been overwhelmed by the text
moshee has quit [Quit: 囧]
jaequery has joined #ruby
adac has quit [Ping timeout: 264 seconds]
jaequery has quit [Remote host closed the connection]
<tercenya> I noticed. Let the hate flow.
<tercenya> Or try yoga
s00pcan has quit [Read error: No route to host]
<shevy> I like yoghurt
moshee has joined #ruby
<shevy> nobody argues over a yoghurt
pengin has quit [Remote host closed the connection]
<shevy> but man - everybody argues about bugs
thsig has joined #ruby
pengin has joined #ruby
<apeiros> tercenya: "Foo#bar shouldn't require me to catch implementation bugs" yeah, sure, let the bugs silently remain and have an unpredictably failing system
hephaestus_rg has joined #ruby
<apeiros> also, lets not fix bugs
<apeiros> great strategy
<apeiros> /not
<tercenya> shevy: not unless you have hypolactasia
<shevy> I have not yet met a person in reallife who has Lactose intolerance
<tercenya> my last office had a celiac and a strict vegan. may picking lunch quite a challenge
<tercenya> made*
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DogsOrCats has joined #ruby
andrewlio has quit [Remote host closed the connection]
<shevy> were they hypolactasian?
pengin has quit [Ping timeout: 272 seconds]
robertt_dex has quit [Remote host closed the connection]
jlast has joined #ruby
spastorino has joined #ruby
patric100e99 has joined #ruby
<tercenya> unpredictably failing? Isn't the point of sanity-checking function to ensure sanity on inputs an handle them by design? it follows from having such a weakly-typed language that you either need lots of guard code, or allow functions to coerce inputs. I'll agree that you shouldn't mix the two
gr33n7007h has quit [Quit: Leaving]
<apeiros> tercenya: a) ruby is strongly typed, not weakly
<tercenya> no, but my neighbor was. she knew to bring lactaid to our house, because cheese is a mandatory food group
pietr0 has quit [Ping timeout: 244 seconds]
gr33n7007h has joined #ruby
<apeiros> tercenya: b) symbolize_keys is not a sanity-checking method. sanity *checking* implies probing, not mutating
Morkel has quit [Quit: Morkel]
<tercenya> *dynamically typed
<apeiros> tercenya: c) and no. the whole things you said, just no. so wrong.
<tercenya> ignorance is bliss
DogsAndCatsAndMi has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
<apeiros> tercenya: tell me, how does your symbolize_keys know whether the unsymbolizable key was there because of a bug or because of intention?
<tercenya> by contract I'm expecting all keys that can be symbolized to do so
<apeiros> "tercenya: ignorance is bliss" ad-hominem. unwarranted and bad style. don't.
<apeiros> tercenya: so the conclusion is that any key which can't be symbolized is there in error? i.e., all occurrences are a bug?
<apeiros> or indicative of a bug
nkumari has joined #ruby
patric100e99 has quit [Ping timeout: 272 seconds]
<tercenya> the behavior of { Object.new => 1 }.symbolize_keys is undefined, since Object#to_sym is undefined. you want it to be a bug, fine. make it a raise, and that can be your library. I'm quite happy with an opinionated library that takes care of that detail silently for me
wallerdev has joined #ruby
<apeiros> you're not answering the question
TPBallbag is now known as TP4MyBunghole
<apeiros> I mean I can interpret your answer, which tells me you think silently swallowing bugs was a good idea.
chrishough has joined #ruby
<tercenya> the pleasure of software contracts is that you get to define the parameters. The rails community accepts this contract, you don't. I don't see the need to debate that point.
jeremy04_ has joined #ruby
<shevy> do you want a car that breaks down or do you want a car that keeps on running
allcentury has joined #ruby
nfk has quit [Quit: yawn]
<baweaver> I want a car that warns me when its engine fails
<tercenya> and we've reduced the discussion to "Feature or Bug"?
<apeiros> shevy: ^
<shevy> baweaver with a BEEP BEEP sound that you can not easily disable?
<apeiros> tercenya: no, you've just again evaded to answer
<baweaver> bingo
<shevy> I know those cars
<shevy> I chase them down with my chevy
<shevy> which got a honking horn :>
<apeiros> "the rails community". yes, because rails is a role model for good code.
<baweaver> let errors accumulate and you're digging a hole
<apeiros> oh, wait, no, it's not
<shevy> baweaver al bundy's dodge keeps on rolling!
chrishough has quit [Client Quit]
jeremy04 has quit [Ping timeout: 255 seconds]
<baweaver> role model for good ideas
DogsAndCatsAndMi has joined #ruby
seanp2k has quit [Quit: seanp2k]
<baweaver> problem is if you want to do anything not 'The Rails Way'
<shevy> what I would debate is the mention of a rails community
<baweaver> Then you're screwed
<shevy> as if they are the lead to design rails :)
<shevy> sadly apeiros has become a part of the rails community
desp has quit [Quit: This computer has gone to sleep]
<sweeper> yawn
<baweaver> DHH was up in arms last night when I suggested that you should have small tools and modules instead of one huge monolithic app.
<sweeper> the entire argument is cause you've got different perspectives
<sweeper> a library writer should make stuff fail and fail hard
<lsone> sweeper is right on this one ...
<shevy> THERE CAN NOT BE MORE THAN ONE POINT OF VIEW
<shevy> whops
<shevy> not #python damn
<baweaver> ^ heh
TP4MyBunghole has quit [Remote host closed the connection]
<Hijiri> everyargument is because people have different perspectives
<sweeper> an application writer wants things to be bulletproof
dangerousdave has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
<tercenya> shevy: I made the mistake of opening some python code in Sublime, and it kicked in the pep8 linter. I couldn't see any code over all the complaints.
<lsone> yea, from the perspective of what i work on daily, the huge monolithic route is the way to go.
<shevy> are you hiding bugs in your pants sweeper
<baweaver> good luck upgrading / changing anything
<sweeper> shevy: no, they get output to logstash! but I do rescue them :)
ghr has joined #ruby
<shevy> lsone I also like bulldozers
<lsone> we are not breaking up our large financial system. lol
mathias2 has quit [Ping timeout: 265 seconds]
<sweeper> you should though
<shevy> it's a global scam anyway
DogsOrCats has quit [Ping timeout: 244 seconds]
moritzs has joined #ruby
greenride has joined #ruby
<shevy> baweaver I break things all the time!
<baweaver> Having to take down an entire app to change one component area is a waste.
<sweeper> huge and monolithic is *never* *ever* *ever* good
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> linux monolithic kernel!!!
<baweaver> Why I don't use Linux often.
<shevy> nah they cheat
<lsone> baweaver: when you can do rolling restarts and downtime is fractions of a second ... it would take insane traffic for that to matter.
<shevy> they got [M] for Modules
cleopatra has quit [Excess Flood]
banister has joined #ruby
<shevy> I don't know how it was in the beginning though
<baweaver> Insane traffic I have.
sdwrage has joined #ruby
Vile` has joined #ruby
<shevy> ok you guys are building the next twitter app
<lsone> "the next twitter" lol
<sweeper> heh
<baweaver> enough so that it'd be suicide for fractions of a second greater than a few MS
<sweeper> twitter is easysauce traffic compared to HFT
banister has quit [Client Quit]
<lsone> i'll trade you financial systems for social whatever systems.
<baweaver> If we break anything, you all end up on Twitter pretty fast wanting our heads :P
dangerousdave has quit [Client Quit]
<shevy> haha
jheg has quit [Quit: jheg]
Scotteh has joined #ruby
chrishough has joined #ruby
<lsone> hundreds of millions of dollars a day moving around.
<shevy> I wanna twitter pre-emptively that the evil beaver is going to break something bad
<lsone> please trade me
djbkd has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
<shevy> trading people is not legal!
<baweaver> Pretty close to the same mate.
dangerousdave has joined #ruby
jerius has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
mr_rogerz_ has quit [Ping timeout: 258 seconds]
ghr has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Client Quit]
elaptics is now known as elaptics`away
<lsone> i guess i am just used to being neck deep in legacy code all day. lol
nkumari has joined #ruby
<lsone> the monolithic system works, and it works very well.
j_mcnally has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
fgo_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<lsone> i do see a bit more fragmentation and redundancy than i do in my other projects, but it has failed far less often as a whole
<shevy> better to maintain than to rewrite
Bira has joined #ruby
<baweaver> rewriting is a nightmare
<lsone> shevy: well, we are rewriting the front-end. haha
<baweaver> don't do it unless absolutely necessary.
_maes_ has joined #ruby
DogsOrCats has joined #ruby
<sweeper> SOA! SOA! SOA!
gr33n7007h has quit [Ping timeout: 255 seconds]
<baweaver> That we use.
jack_rabbit has quit [Ping timeout: 256 seconds]
<kaspergrubbe> I guess it depends on the application. I have identified some parts of our system that could be its own service, but it works great now too
<baweaver> If I didn't know any better, I'd say we're most of the way to Erlang.
<lsone> We are in maintenance mode finally, so it has become necessary for the future.
<lsone> So tired of writing Java.
<lsone> So. very. tired.
yetanotherdave has joined #ruby
<baweaver> You couldn't pay me enough to ever write it again
<lsone> If they didn't pay absurdly well, I definitely would've already jumped ship.
<lsone> Luckily they also give me plenty of time to work on other projects and tools that I like doing, so it works out.
corehook has quit [Remote host closed the connection]
zacts has joined #ruby
corehook has joined #ruby
<shevy> so you are writing java code for a living
* shevy is sad
vyorkin has joined #ruby
DogsAndCatsAndMi has quit [Ping timeout: 258 seconds]
DogsAndCats has joined #ruby
auxbuss has quit [Quit: I'm gone.]
<lsone> Pretty much yea Shevy. But hey, on a day to day basis I am working with ruby/rails/angular probably 60-65% of the time
dangerousdave has joined #ruby
fgo_ has quit [Ping timeout: 250 seconds]
<lsone> Pretty much the only thing we do on the Java front at this point is add in new reports
<tercenya> my bane is perl from the late 90's.
<lsone> And it isn't just java ... It is GWT, which does make it exponentially worse than just writing Java.
<shevy> don't mention perl when eam is awake
greenride has quit [Ping timeout: 250 seconds]
<shevy> hey I don't know a thing in java
<shevy> save for public what_the_fudge
<shevy> and some more things
<lsone> Hahaha
<shevy> I think a hello world is 6 lines
<zacts> I like Perl, but I'm starting to like ruby even more.
<shevy> yay zacts my brother \o/
greenride has joined #ruby
DogsOrCats has quit [Ping timeout: 255 seconds]
Alina-malina has quit [Ping timeout: 244 seconds]
<zacts> but Perl is nice for regexy things, and other stuff.
TP4MyBunghole has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
<zacts> plus CPAN, but I hear that ruby is catching up to cpan
<zacts> ^ that was a question, not a statement. :-)
corehook has quit [Ping timeout: 258 seconds]
Mars` has joined #ruby
Phrogz has quit [Quit: Page closed]
<shevy> ah ok
<shevy> the lack of the '?' character almost got me there man
allcentury has quit [Ping timeout: 264 seconds]
<shevy> I think it depends a lot on the quality of the gem and the skill of the author in question
<shevy> for instance, the prawn gem is quite good
sara_D has joined #ruby
<tercenya> we need to reinstitute the use of ¿ to make double sure
<shevy> dunno if perl has a pdf generator
DogsAndCatsAndMi has joined #ruby
<shevy> there are many other gems of similar quality zacts but there are also MANY MANY inactive gems, or gems that simply never got the amount of detail necessary
<eam> shevy: sure it does
<sweeper> poppler
<shevy> hey poppler is a C thingy
<sweeper> although fuck pdfs in general
ramfjord has joined #ruby
cantonic has quit [Quit: cantonic]
<sweeper> shevy: any it has ruby bindings :3
<zacts> ah ok
ausloschung has joined #ruby
larissa has joined #ruby
<shevy> cool
<shevy> since 2010
codecop has quit [Remote host closed the connection]
livingstn has quit []
DogsAndCats has quit [Ping timeout: 264 seconds]
josephndenton has joined #ruby
ffranz has quit [Quit: Leaving]
hesco has joined #ruby
<hesco> Working on a custom fact: docker_hosted_containers, and using `Facter::Core::Execution.exec('/usr/bin/docker ps -q')` in hopes of populating an array, but see instead: 'undefined method `each' for #<String:0x00000001d28330>'. Can anyone please advise this perl hacker how to munge a multiline list of strings into a ruby array?
cleopatra has joined #ruby
buff3r has joined #ruby
<jhass> hesco: join #puppet
josephndenton has quit [Ping timeout: 245 seconds]
thagomizer has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeremy04_ has quit [Remote host closed the connection]
<buff3r> hi, working with someone elses ruby project on github, noticed they were scraping a webpage and returning ASCII-8BIT
<buff3r> i'm trying to convert it to something i can regex against
byprdct has quit [Ping timeout: 244 seconds]
max96at is now known as max96at|off
<ericwood> if it's a ruby string you can regex it
<buff3r> it looks like this: �����?H��w�B���ۏ@
banister has joined #ruby
byprdct has joined #ruby
ringarin has joined #ruby
<buff3r> hmm, it looks like i can match against it
<buff3r> just confused why my IDE would show me those characters
<ericwood> can you link to the code in question?
<buff3r> sure
weems|mac has joined #ruby
weems|mac has joined #ruby
nkumari has quit [Remote host closed the connection]
Ridley5 is now known as zzz_Ridley
weems|mac has quit [Max SendQ exceeded]
<buff3r> line 175
seanp2k has joined #ruby
<ericwood> oh god the spacing
<ericwood> so is doing regex matchiing on the result not working?
cleopatra is now known as cleopatra2
weems|mac has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
cleopatra2 is now known as cleopatra
<buff3r> it runs regexen in the plugins/*.rb
dkb20k has joined #ruby
zacts has quit [Ping timeout: 255 seconds]
<buff3r> i guess it'd help if it showed up properly in my debugger, then i could see where the regex might go wrong in my own plugin
<buff3r> stuff like @body =~ /javascripts\/prototype\.js\?[0-9]+/
paulfm has quit []
<ericwood> just run the regex against it and see what happens
jenrzzz has joined #ruby
<shevy> ericwood lol why do you complain about it when you wanted to look at the code ;)
<buff3r> i dunno it's hard to trust
Bira has quit [Remote host closed the connection]
atmosx has joined #ruby
<buff3r> i tried running against rubygems.org with this: @body =~ /RubyGems\.org/
<buff3r> and get nil
<atmosx> Aloha
<atmosx> awesome
<shevy> wat
<atmosx> buff3r: why not rubygems ?
<shevy> did your professor die
<atmosx> shevy: no, I finnished my project
<shevy> cool
<atmosx> shevy: needs some policy, do you wanna see it?
<atmosx> shevy: do you have a bitbucket account?
<shevy> hmm I think I had one once
<buff3r> i just picked that out of some text that would be contained in <body></body>
<atmosx> I should upload the code on github
<atmosx> but I need to speak with my professor if they want the code public or not, don't think they have an opinion
<atmosx> on the matter but anyway
weems|mac has quit [Remote host closed the connection]
<atmosx> buff3r: body-body!
<shevy> atmosx aha I can login
<atmosx> shevy is the username?
chipotle has quit [Quit: cya]
ZaRDaK has quit [Quit: Leaving]
<shevy> yeah
treehug88 has quit []
dkb20k has quit [Ping timeout: 255 seconds]
<buff3r> atmosx: huh?
<atmosx> shevy: okay shared
<atmosx> buff3r: no idea what you're talking about
<shevy> I am not quite sure what to do there, bitbucket is a bit alien to me
<atmosx> shevy: you need this tool too http://mafft.cbrc.jp/alignment/software/ for sequence alignment
<atmosx> shevy: just copy the code and run it
<atmosx> shevy: it's a sinatra application
mleung has quit [Quit: mleung]
Bira has joined #ruby
<shevy> ok, I have to do this tomorrow though, I have less than an hour left before I have to go to bed, early exam tomorrow
tier has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
nkumari has joined #ruby
<atmosx> oh sure
<atmosx> what kind of exam?
allcentury has joined #ruby
<atmosx> shevy: I'll publish the code on github when ti's ready. Needs some polishing, names and all. No tests (I hate writing tests, I've got the feeling that I'm just loosing time).
chipotle has quit [Client Quit]
<shevy> atmosx the title is "Gene technology for plant pathologists"
<atmosx> shevy: nope
<atmosx> ah
<atmosx> the title of your exam
<atmosx> shevy: sounds bad :-(
<shevy> so basically it is gene technology, with a focus on manipulation in plants
jimnak has quit [Ping timeout: 240 seconds]
<atmosx> I have pharmacognosy exam for next Wednesday my last exam before the state exams :-D
<shevy> somewhat. plants are kinda boring
<atmosx> I see
<buff3r> sounds like it needs more optogenetics
<atmosx> I don't even remember what 'stomata' do
<shevy> haha I am glad I don't have to do a pharmacognosy exam atmosx :D
jack_rabbit has joined #ruby
<atmosx> today I had pharmacognosy 1 exam, I failed at all the botany related questions :-(
<shevy> well they are the openings on the leaf; the plants need CO2 to fix it into a C3 sugar compound
<atmosx> luckily I passed the pharmacology/pharmagnosy
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mikeg has joined #ruby
baweaver has quit [Remote host closed the connection]
<atmosx> I thought they were openings on the leaf, but to get "nutrients"
tesaf has quit [Quit: Lost terminal]
<atmosx> he told me "nutrients is wrong"
<shevy> atmosx do you have to memorize drug structure and how they work in body kinetics/metabolism?
<atmosx> I told him "I don't give a shit, I didn't even knew we had a botany part!"
<shevy> for pharmacognosy
Mars` has quit [Ping timeout: 245 seconds]
<atmosx> but our prof is a sort of a dick, he didn't ask/do any of this shit on his 2-semesters and I sucked at botany anyway
<buff3r> nutrients are delicious
<shevy> well it is not entirely wrong, the C carbon is incorporated
<shevy> and without the C from CO2 the calvin cycle could not function, so the plant would starve to death
Bira has quit [Remote host closed the connection]
<atmosx> shevy: hmm not so much. That's pharmacology and clinical. Pharmacology has much more chemistry and content compounds
sara_D has left #ruby [#ruby]
<shevy> so C would constitute a nutrient, just as N is a nutrient and O is one and H
cantonic has joined #ruby
<shevy> cool
<shevy> I still hate chemistry
TheNet has joined #ruby
<atmosx> E.g. you take cardio-active glycosides, you have to know plants (Convalaria majalis, digitalis family), structures, identification tests (precipitations/color reactions), derivatives
DogsOrCats has joined #ruby
<shevy> except biochemistry, but it's way too much stuff to know...
Bira has joined #ruby
<shevy> Convalaria majalis
<atmosx> active substances how thy act (they basically increase heart-bit intensity while decreasing frequency)
<shevy> sounds like malaria
<atmosx> at high dosages you're dead.
<shevy> or canabis
<shevy> hahaha :D
Bira has quit [Client Quit]
<atmosx> hahaha
<shevy> oh yeah I think I have heard about these... they are like heart glycosides right?
<atmosx> Convalaria majalis, Ruscaceae (Lilly of the valley)
<atmosx> features in Breaking Bad :-)
<shevy> oh they are called differently in english... http://en.wikipedia.org/wiki/Cardiac_glycoside
<atmosx> well in my presentations are 'cardio-active' but I don't know, I mean if you take Atropine/Scopolamine (from Atropa Belladona... the entire Solanaceae family) they could have the same effect.
<shevy> k so you learn stuff in breaking bad too
<atmosx> Although they act as CNS depressants
<atmosx> scopolamine crosses the BB barrier... anyway that sort of things... you like it shevy ?
Techguy305|2 has joined #ruby
DogsAndCatsAndMi has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Techguy305 has quit [Ping timeout: 244 seconds]
<buff3r> well i stil get gobbly-gook from this program
<buff3r> sux
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
<buff3r> i'll try another gem
buff3r has quit [Quit: leaving]
skolman_ has quit [Remote host closed the connection]
<shevy> atmosx no idea. I never went into drugs, reason was I never had a reason and I also could not be bothered to cave into social group pressure either hence why I never started to smoke
<atmosx> shevy: lol
<shevy> but I like poisons
mikeg has quit [Remote host closed the connection]
skolman_ has joined #ruby
<shevy> atmosx and in clinical microbiology we also had to memorize some toxins at least... diptheria... tetanus... a few more though i forgot most of them already
chipotle has joined #ruby
<atmosx> shevy: I think you could get a pharmacy degree in 2 years tops. You don't need any of th elabs really.
<shevy> omg... there really is a site called chemistry.stackexchange.com
<atmosx> shevy: sure!
<shevy> and they discuss fictional happenings there :\ :/ :\ :/
<shevy> just like reddit
desp has joined #ruby
<atmosx> shevy: let's say it's more *scientific* than reddit, I'm not a reddit fan but everybody else is apparently
Mars` has joined #ruby
<atmosx> I'm just HNer
<shevy> atmosx dunno... I don't wanna do drugs, I wanna build synthetic life!
oleo__ has joined #ruby
<atmosx> shevy: oh well.
<shevy> atmosx do you know Drew Endy or biobricks?
<atmosx> shevy: most anti-muscarinic agents are synthetic. The mostly used (natural one) is scopolamine :-P see? Pharmacognosy again!
<atmosx> lol
<atmosx> shevy: hm nope
<shevy> ah ok
<shevy> if you have time watch https://www.youtube.com/watch?v=gadBNBJRPr0 - he did this at the german CCC about 7 years ago or so, that was one of the coolest presentations I heard
<atmosx> I can't wait to get hte degree and finish with this fucking university
<shevy> he also gave other lectures but they were not as good as that one
<shevy> atmosx hahaha yeah I can relate to that
<atmosx> then I could indulge myself in programming a lot more
<shevy> I have to go to bed now, till later
<atmosx> shevy: wow that's awesome
nonks has joined #ruby
oleo is now known as Guest42314
Guest42314 has quit [Ping timeout: 258 seconds]
chipotle has quit [Quit: cya]
mathias2 has joined #ruby
desp has quit [Quit: This computer has gone to sleep]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
jonr22 has joined #ruby
ptrrr has quit [Quit: ptrrr]
nonks has quit [Ping timeout: 250 seconds]
freerobby has quit [Client Quit]
mleung has joined #ruby
desp has joined #ruby
einarj has quit [Remote host closed the connection]
freerobby has joined #ruby
cantonic has quit [Quit: cantonic]
ghr has joined #ruby
vyorkin has quit [Quit: WeeChat 1.0.1]
mathias2 has quit [Ping timeout: 240 seconds]
oleo__ has quit [Quit: Verlassend]
goodenough has joined #ruby
Peaker has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
rudisimo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<Peaker> http://apidock.com/rails/ActiveRecord/Relation/update <-- does this actually silence all errors???
baweaver has joined #ruby
iamjarvo has joined #ruby
<apeiros> Peaker: #rubyonrails
oleo__ has joined #ruby
Sgeo_ has joined #ruby
<Peaker> apeiros: thanks
fella7s has joined #ruby
oleo__ has quit [Client Quit]
aaronrl_ has quit [Read error: Connection reset by peer]
aaronrl has joined #ruby
oleo has joined #ruby
spider-mario has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 264 seconds]
fgo_ has joined #ruby
pengin has joined #ruby
iamjarvo has quit [Client Quit]
AR45 has quit [Quit: ZNC - http://znc.in]
spyderman4g63 has quit [Remote host closed the connection]
devdazed has joined #ruby
AR45 has joined #ruby
narph has quit [Quit: Connection closed for inactivity]
fella6s has quit [Ping timeout: 245 seconds]
beef-wellington has quit [Ping timeout: 272 seconds]
Sgeo has quit [Ping timeout: 245 seconds]
TheNet has quit [Quit: Leaving...]
AR45 has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
Soliah has joined #ruby
Peaker has left #ruby ["Leaving"]
AR45 has joined #ruby
fgo_ has quit [Ping timeout: 265 seconds]
p8952 has quit [Quit: ZNC - http://znc.in]
it0a has quit [Ping timeout: 255 seconds]
narph has joined #ruby
nateberkopec has joined #ruby
greenride has quit [Quit: Leaving.]
ndrei has quit [Ping timeout: 250 seconds]
phutchins has joined #ruby
yetanotherdave has quit [Ping timeout: 250 seconds]
rudisimo has joined #ruby
banister has joined #ruby
cleopatra has quit [Read error: Connection timed out]
moritzs has quit [Remote host closed the connection]
DogsOrCats has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 245 seconds]
alex88_ has quit []
JohnBat26 has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
iwishiwerearobot has quit [Read error: Connection reset by peer]
iwishiwerearobot has joined #ruby
fabrice31 has joined #ruby
Xeago has joined #ruby
reinaldob has joined #ruby
aisdaidoqoq has joined #ruby
s00pcan has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
yetanotherdave has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137_ has joined #ruby
claymore has quit [Quit: Leaving]
dideler has joined #ruby
SCHAAP137_ has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
sailias has quit [Quit: Leaving.]
MattB2_ has quit [Remote host closed the connection]
SCHAAP137 has quit [Client Quit]
Techguy305|2 has quit [Ping timeout: 240 seconds]
p8952 has joined #ruby
jimbach_ has quit [Remote host closed the connection]
thsig_ has joined #ruby
SCHAAP137 has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jespada has quit [Quit: Leaving]
nateberkopec has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
thsig has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Rhainur1 has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
aisdaidoqoq has quit [Remote host closed the connection]
Rhainur has quit [Ping timeout: 245 seconds]
allcentury has joined #ruby
djbkd has quit [Remote host closed the connection]
JaTochNietDan has quit [Ping timeout: 265 seconds]
Linell has quit [Quit: leaving]
dideler has quit [Ping timeout: 258 seconds]
aspires has quit []
Alina-malina has joined #ruby
ausloschung has quit [Quit: Textual IRC Client: www.textualapp.com]
JaTochNietDan has joined #ruby
dideler has joined #ruby
_djbkd has joined #ruby
aisdaidoqoq has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
patric100e99 has joined #ruby
n3phos has joined #ruby
aisdaidoqoq has quit [Remote host closed the connection]
aisdaidoqoq has joined #ruby
aisdaidoqoq has quit [Remote host closed the connection]
dideler has quit [Ping timeout: 240 seconds]
aisdaidoqoq has joined #ruby
fluuflu has joined #ruby
adriancb has quit [Remote host closed the connection]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
graft has quit [Quit: Lost terminal]
skolman_ has quit [Remote host closed the connection]
aclearman037 has quit [Quit: I'm out!]
skolman has joined #ruby
patric100e99 has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
Rapier- has joined #ruby
josephndenton has joined #ruby
djbkd has joined #ruby
mathias2 has joined #ruby
ringarin has quit [Ping timeout: 256 seconds]
<thomas> hi
<boombadaroomba> How do you parse the hour of the day?
<boombadaroomba> trying to create a helper that will be true if Time.now <=> hours_of_operations
Avahey has joined #ruby
ducklobster has quit [Remote host closed the connection]
<boombadaroomba> Got it
ducklobster has joined #ruby
<boombadaroomba> Asking questions here always helps!
uptownhr has joined #ruby
<uptownhr> is there any difference between '::' and '.' ?????
dideler has joined #ruby
cantonic has joined #ruby
mathias2 has quit [Ping timeout: 245 seconds]
tlarevo has joined #ruby
ghr has joined #ruby
baweaver has quit [Remote host closed the connection]
MattB2 has joined #ruby
tlarevo has quit [Remote host closed the connection]
cantonic has quit [Client Quit]
teejar has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
tlarevo has joined #ruby
teejar has joined #ruby
<JDHankle> uptownhr: :: is the scope resolution operator and . is the message passing operator.
zorak8 has joined #ruby
<apeiros> uptownhr: every use of . can be replaced with :: (don't, though, it's ugly), but not every use of :: can be replaced with .
n3phos has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
<JDHankle> and someone ban fluuflu
<dfedde> uptownhr: `::` will give you access to constants . will not
<JDHankle> apeiros: that is only partly true
<uptownhr> constant?
<JDHankle> see dfedde response
<apeiros> JDHankle: which part is not true?
fgo_ has joined #ruby
<JDHankle> oh woops
Spami has joined #ruby
<JDHankle> sorry apeiros, I read you wrong
<apeiros> :)
ghr has quit [Ping timeout: 255 seconds]
fluuflu was kicked from #ruby by apeiros [fluuflu]
fluuflu has joined #ruby
<JDHankle> spam bot
MattB2 has quit [Ping timeout: 255 seconds]
fluuflu was kicked from #ruby by apeiros [fluuflu]
fluuflu has joined #ruby
<apeiros> whot?
fluuflu was banned on #ruby by apeiros [*!*@90.174.2.241]
fluuflu was kicked from #ruby by apeiros [fluuflu]
<JDHankle> there ya go.
<apeiros> dargh, "ruby" != "#ruby"
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<zenspider> wouldn't banning by registered handle be better?
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> oO
<apeiros> it's registered? wow…
<zenspider> flufluu already has a ban: ~fluuflu@90.174.2.248
<zenspider> and now *@90.174.2.241
<zenspider> ~fluuflu@* would be better
<apeiros> I didn't even consider it might be registered
charliesome has quit [Quit: zzz]
<zenspider> I thought that was the ~
<JDHankle> *!~fluuflu@*
<zenspider> (I'm not the best op in the world)
droidburgundy has joined #ruby
tokik has joined #ruby
<JDHankle> or *!*fluuflu@*
<apeiros> zenspider: you're just a tribute? :D
<zenspider> I think that last one is the right one
desp has quit [Quit: This computer has gone to sleep]
fgo_ has quit [Ping timeout: 245 seconds]
<zenspider> something like that
graydot has quit [Quit: graydot]
mary5030 has quit [Remote host closed the connection]
<JDHankle> putting my Efnet op skills to work lol
jobewan has quit [Quit: Leaving]
graydot has joined #ruby
kirun has quit [Quit: Client exiting]
ghostmoth has joined #ruby
p8952 has quit [Quit: ZNC - http://znc.in]
aspiers has quit [Quit: WeeChat 0.4.3]
dkb20k has joined #ruby
JerryRishna has quit [Ping timeout: 245 seconds]
reinaldob has quit [Remote host closed the connection]
havenwood has joined #ruby
vieq has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
jleishman has joined #ruby
dc_ has quit [Remote host closed the connection]
pdtpatrick_ has joined #ruby
godd2 has joined #ruby
dkb20k has quit [Ping timeout: 264 seconds]
seanp2k has quit [Quit: seanp2k]
DLSteve has quit [Quit: Leaving]
reinaldob has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
b3itz has joined #ruby
<b3itz> can someone explain exactly how this block of code works? oyotavision.com/vos/login/submit.do
blackmesa has joined #ruby
<b3itz> thats not the link i wanted
<b3itz> specifically, what is pair and why the /:/
vieq has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
kingsley-t has quit [Remote host closed the connection]
jleishman has quit [Quit: Be back later ...]
<havenwood> b3itz: What code are you talking about?
<Noobdog> yea
<zenspider> really need to refine your questions
<b3itz> omg wow wrong link again... epic fail
<Noobdog> /:/ is most probably a regex expression
<b3itz> that ones right lo
enebo has quit [Quit: enebo]
SCHAAP137 has quit [Quit: Leaving]
<zenspider> b3itz: first you need to learn #each
<zenspider> then prolly String#split
jenrzzz_ has quit [Ping timeout: 244 seconds]
<zenspider> this is a stupid code example tho
<b3itz> i know string split
<b3itz> im looking at each now
dideler has quit [Ping timeout: 250 seconds]
<b3itz> basically what im needing to do is pull some strings in from a text file, each line in its own hash