baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
jrabe has quit [Quit: Disconnected]
jrabe has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
Apocalypse has quit [Ping timeout: 265 seconds]
darthThorik has quit [Ping timeout: 265 seconds]
reu has quit [Ping timeout: 265 seconds]
Miron has quit [Ping timeout: 265 seconds]
ckrailo_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kilo`byte has quit [Ping timeout: 265 seconds]
pwillard has quit [Ping timeout: 265 seconds]
quobo has quit [Ping timeout: 265 seconds]
KnownSyntax has quit [Ping timeout: 265 seconds]
kireevco has quit [Ping timeout: 265 seconds]
rfv has quit [Ping timeout: 265 seconds]
knowtheory has quit [Ping timeout: 265 seconds]
untitaker has quit [Ping timeout: 265 seconds]
jnix has quit [Ping timeout: 265 seconds]
justinweiss_ has joined #ruby
jimeh_ has joined #ruby
Sina__ has joined #ruby
jnix_ has joined #ruby
quobo_ has joined #ruby
rflot_ has joined #ruby
stephenh_ has joined #ruby
knowtheory_ has joined #ruby
caw________ has joined #ruby
mitsuhiko_ has joined #ruby
pwillard_ has joined #ruby
KnownSyntax_ has joined #ruby
cstrahan_ has joined #ruby
Auv_ has joined #ruby
untitaker_ has joined #ruby
rfv_ has joined #ruby
Danielss89 has quit [Ping timeout: 265 seconds]
Sina has quit [Ping timeout: 265 seconds]
daxroc has quit [Ping timeout: 265 seconds]
Brak____________ has quit [Ping timeout: 265 seconds]
justinweiss has quit [Ping timeout: 265 seconds]
Auv has quit [Ping timeout: 265 seconds]
stephenh has quit [Ping timeout: 265 seconds]
Sina__ is now known as Sina
caw_______ has quit [Ping timeout: 265 seconds]
justinweiss_ is now known as justinweiss
kireevco_ has joined #ruby
stephenh_ is now known as stephenh
Brak____________ has joined #ruby
daxroc_ has joined #ruby
boxrick_ has joined #ruby
darthThorik has joined #ruby
Guest74533_ has joined #ruby
swein has quit [Ping timeout: 265 seconds]
elomatreb has quit [Ping timeout: 265 seconds]
boxrick has quit [Ping timeout: 265 seconds]
jsrn has quit [Ping timeout: 265 seconds]
clampy has quit [Ping timeout: 265 seconds]
sspreitzer has quit [Ping timeout: 265 seconds]
jimeh has quit [Ping timeout: 265 seconds]
cstrahan has quit [Ping timeout: 265 seconds]
xtsee has quit [Ping timeout: 265 seconds]
mitsuhiko has quit [Ping timeout: 265 seconds]
rflot has quit [Ping timeout: 265 seconds]
ckrailo has quit [Ping timeout: 265 seconds]
Seich has quit [Ping timeout: 265 seconds]
jimeh_ is now known as jimeh
ckrailo_ is now known as ckrailo
rflot_ is now known as rflot
wget_ has joined #ruby
darix has quit [Ping timeout: 265 seconds]
rupam123456 has quit [Ping timeout: 265 seconds]
tjbp has quit [Ping timeout: 265 seconds]
wget has quit [Ping timeout: 265 seconds]
Guest74533 has quit [Ping timeout: 265 seconds]
zleap has quit [Ping timeout: 265 seconds]
edwardly has quit [Ping timeout: 240 seconds]
vereteran has quit [Ping timeout: 240 seconds]
rupam123456 has joined #ruby
naquad has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
alfiemax has joined #ruby
Seich has joined #ruby
edwardly has joined #ruby
zleap has joined #ruby
curio has joined #ruby
sspreitz has joined #ruby
curio has quit [Client Quit]
jsrn has joined #ruby
clampy has joined #ruby
swein has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> "Ruby is inferior because it doesn't have X feature from Y language I love"
karapetyan has quit [Remote host closed the connection]
<baweaver> Ah, a tale as old as time.
alfiemax has quit [Ping timeout: 256 seconds]
Apocalypse has joined #ruby
karapetyan has joined #ruby
xtsee has joined #ruby
Puffball_ has quit [Quit: Puffball_]
ramfjord has quit [Ping timeout: 256 seconds]
p0p0pr37_ has joined #ruby
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37_ is now known as p0p0pr37
ramfjord has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
cyberg has quit [Ping timeout: 256 seconds]
Guest41309 is now known as ged
scrptktty has quit [Quit: Connection closed for inactivity]
cschneid has joined #ruby
cagomez has quit [Remote host closed the connection]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
eelster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Ping timeout: 265 seconds]
luna_x[m] has quit [Ping timeout: 245 seconds]
turt2live has quit [Ping timeout: 245 seconds]
KevinMGranger has quit [Ping timeout: 245 seconds]
iceskins[m] has quit [Ping timeout: 245 seconds]
aviraldg has quit [Ping timeout: 240 seconds]
velu_aon[m] has quit [Ping timeout: 255 seconds]
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
redlegion[m] has quit [Ping timeout: 256 seconds]
Hanma[m] has quit [Ping timeout: 256 seconds]
failednoose[m] has quit [Ping timeout: 260 seconds]
Giphy[m] has quit [Ping timeout: 245 seconds]
zalipuha[m] has quit [Ping timeout: 240 seconds]
haylon_ has quit [Ping timeout: 240 seconds]
nullmoose[m] has quit [Ping timeout: 269 seconds]
intheclouddan has quit [Ping timeout: 256 seconds]
jonjits[m] has quit [Ping timeout: 260 seconds]
torarne has quit [Ping timeout: 277 seconds]
ged is now known as Guest3292
Sina is now known as Guest93035
lxsameer is now known as Guest21588
edwardly has quit [Changing host]
edwardly has joined #ruby
Kilo`byte has joined #ruby
darix has joined #ruby
elomatreb has joined #ruby
Danielss89 has joined #ruby
reu has joined #ruby
Miron has joined #ruby
tjbp has joined #ruby
plexigras has quit [Quit: WeeChat 2.1]
rfoust has joined #ruby
pocketprotector- has quit [Changing host]
pocketprotector- has joined #ruby
pocketprotector- is now known as pocketprotector
TomyLobo has quit [Ping timeout: 255 seconds]
plexigras has joined #ruby
sanscoeur has joined #ruby
orbyt_ has joined #ruby
sanscoeu_ has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby
alfiemax has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
sanscoeur has quit [Ping timeout: 260 seconds]
Guest21588 has quit [Ping timeout: 260 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
cyberg has joined #ruby
p0p0pr37 has quit [Ping timeout: 256 seconds]
p0p0pr37_ is now known as p0p0pr37
cyberg has quit [Read error: Connection reset by peer]
cyberg has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
arashb has quit [Ping timeout: 260 seconds]
intheclouddan has joined #ruby
beefjoe70 has joined #ruby
karapetyan has quit [Remote host closed the connection]
Guest3292 is now known as ged
ged is now known as Guest60318
karapetyan has joined #ruby
cschneid has joined #ruby
rkazak has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
gizmore|2 has joined #ruby
arashb has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
gizmore has quit [Ping timeout: 268 seconds]
cschneid has quit [Ping timeout: 260 seconds]
eelster has joined #ruby
cschneid has joined #ruby
arashb has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
Guest21588 has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
Tempesta_ is now known as Tempesta
jameser has joined #ruby
cyberg has quit [Ping timeout: 255 seconds]
cschneid has quit [Ping timeout: 256 seconds]
Tempesta has quit [Changing host]
Tempesta has joined #ruby
jsrn has quit [Ping timeout: 265 seconds]
cschneid has joined #ruby
jsrn has joined #ruby
Guest21588 has quit [Ping timeout: 265 seconds]
tjbp has quit [Ping timeout: 265 seconds]
xtsee has quit [Ping timeout: 265 seconds]
swein has quit [Ping timeout: 265 seconds]
clampy has quit [Ping timeout: 265 seconds]
jameser has quit [Max SendQ exceeded]
tjbp has joined #ruby
nahra has quit [Remote host closed the connection]
arashb has joined #ruby
jameser has joined #ruby
luna_x[m] has joined #ruby
aviraldg has joined #ruby
torarne has joined #ruby
Hanma[m] has joined #ruby
Giphy[m] has joined #ruby
haylon_ has joined #ruby
redlegion[m] has joined #ruby
turt2live has joined #ruby
KevinMGranger has joined #ruby
nullmoose[m] has joined #ruby
failednoose[m] has joined #ruby
velu_aon[m] has joined #ruby
zalipuha[m] has joined #ruby
iceskins[m] has joined #ruby
jonjits[m] has joined #ruby
alfiemax has joined #ruby
clampy has joined #ruby
swein has joined #ruby
xtsee has joined #ruby
Asher has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Guest21588 has joined #ruby
karapetyan has joined #ruby
moei has quit [Ping timeout: 248 seconds]
arashb has quit [Ping timeout: 240 seconds]
moei has joined #ruby
inoperable has quit [Quit: ZNC 1.7.0 - https://znc.in]
ramfjord has quit [Ping timeout: 256 seconds]
karapetyan has quit [Ping timeout: 268 seconds]
inoperable has joined #ruby
alfiemax has joined #ruby
Guest60318 is now known as ged
ged is now known as Guest10365
Guest21588 has quit [Ping timeout: 260 seconds]
Guest21588 has joined #ruby
memo1 has joined #ruby
cyberg has joined #ruby
cyberg has quit [Remote host closed the connection]
t0xik has quit [Quit: Connection closed for inactivity]
iMadper has joined #ruby
AJA4350 has quit [Quit: AJA4350]
Guest21588 has quit [Ping timeout: 256 seconds]
arashb has joined #ruby
\void has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
arashb has quit [Ping timeout: 256 seconds]
Andrevan has quit [Quit: WeeChat 2.1]
cschneid has quit [Ping timeout: 248 seconds]
cschneid has joined #ruby
donofrio has joined #ruby
jameser_ has joined #ruby
plexigras has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
jameser has quit [Ping timeout: 256 seconds]
Guest21588 has joined #ruby
arashb has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
d^sh has quit [Ping timeout: 256 seconds]
beefjoe70 has quit [Remote host closed the connection]
d^sh has joined #ruby
arashb has quit [Ping timeout: 268 seconds]
csk157 has joined #ruby
cschneid has joined #ruby
Guest21588 has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
sauvin has joined #ruby
csk157 has quit [Ping timeout: 248 seconds]
arashb has joined #ruby
braincrash has joined #ruby
t0xik has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
quobo_ has quit [Quit: Connection closed for inactivity]
cschneid has joined #ruby
bmurt has joined #ruby
Guest10365 is now known as ged
ged is now known as Guest79312
houhoulis has joined #ruby
houhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
cschneid has quit [Ping timeout: 248 seconds]
Guest21588 has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
cschneid has joined #ruby
tdy has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
\void has quit [Quit: So long, and thanks for all the fish.]
guacamole has joined #ruby
Guest21588 has quit [Ping timeout: 260 seconds]
Guest21588 has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
cschneid has joined #ruby
alfiemax has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
alfiemax has joined #ruby
Eiam has quit [Ping timeout: 276 seconds]
bmurt has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
Guest21588 has quit [Ping timeout: 268 seconds]
cschneid has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 248 seconds]
cschneid has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
thapakazi has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
sytherax has quit [Quit: Leaving...]
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
thapakazi_ has joined #ruby
Guest79312 is now known as ged
ged is now known as Guest62907
p0p0pr37 has quit [Ping timeout: 256 seconds]
p0p0pr37_ is now known as p0p0pr37
Guest21588 has joined #ruby
tfitts has joined #ruby
cschneid has joined #ruby
Guest21588 has quit [Ping timeout: 268 seconds]
Guest21588 has joined #ruby
emilford has quit [Ping timeout: 248 seconds]
arashb has quit [Ping timeout: 248 seconds]
emilford has joined #ruby
ryzokuken has quit [Ping timeout: 240 seconds]
ryzokuken has joined #ruby
Guest21588 has quit [Ping timeout: 268 seconds]
emilford has quit [Ping timeout: 256 seconds]
Guest21588 has joined #ruby
alfiemax has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
cschneid has quit [Ping timeout: 248 seconds]
aufi has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
\void has joined #ruby
ramfjord has joined #ruby
Guest21588 has quit [Ping timeout: 256 seconds]
Guest21588 has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
anisha__ has joined #ruby
eelster has quit [Ping timeout: 265 seconds]
tcopeland has quit [Ping timeout: 265 seconds]
NightMonkey has quit [Ping timeout: 264 seconds]
pabs has quit [Ping timeout: 248 seconds]
phenom has quit [Ping timeout: 256 seconds]
pabs has joined #ruby
Guest21588 has quit [Ping timeout: 256 seconds]
arashb has joined #ruby
Guest21588 has joined #ruby
kapil___ has joined #ruby
<kapil___> when i do `.to_json` validto value is lost.
phenom has joined #ruby
tcopeland has joined #ruby
NightMonkey has joined #ruby
arashb has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Radar> kapil___: You've gotta start providing context for your questions.
<Radar> kapil___: You come in here and say one tiny little thing and we don't know what to do to help you.
<Radar> What is validto? What is to_json? Where are you calling it?
<Radar> Provide some code.
<kapil___> ok
<kapil___> i am using rails. it has a model Tax. its has three column.
<kapil___> k = Tax.constantize.column_defaults
<kapil___> validto is datetime value. its default value is "Infiniy"
<kapil___> (i figure out that its class is Float in ruby)
<kapil___> when ever i try to convert above hash to json it not understand "validto" value properly.
emilford has joined #ruby
byte00 has joined #ruby
lytol has quit [Remote host closed the connection]
vinothvkr has joined #ruby
Guest21588 has quit [Ping timeout: 240 seconds]
Guest21588 has joined #ruby
ur5us has quit [Remote host closed the connection]
wget_ has quit [Ping timeout: 240 seconds]
wget has joined #ruby
wget has joined #ruby
wget has quit [Changing host]
emilford has quit [Ping timeout: 256 seconds]
Autolycus has joined #ruby
emilford has joined #ruby
bijan_ has joined #ruby
Asher has quit [Quit: Leaving.]
karapetyan has joined #ruby
aupadhye has joined #ruby
Asher has joined #ruby
bijan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
aufi has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
Guest62907 is now known as ged
byte00 has quit [Quit: Leaving]
ged is now known as Guest98414
cschneid has joined #ruby
snapcase has quit [Quit: Reconnecting]
snapcase has joined #ruby
bijan_ has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
cadillac_ has quit [Ping timeout: 260 seconds]
Guest21588 has quit [Ping timeout: 256 seconds]
<baweaver> >> y = 5; vs = [1,2,3].map { |x; y| y = 2; x + y }; [vs, y]
<ruby[bot]> baweaver: # => [[3, 4, 5], 5] (https://eval.in/1012260)
emilford has joined #ruby
ByronJohnson has quit [Ping timeout: 240 seconds]
arashb has joined #ruby
cadillac_ has joined #ruby
ByronJohnson has joined #ruby
suukim has joined #ruby
<dminuoso> What
<dminuoso> is
<dminuoso> that semicolon doing there
reber has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
emilford has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
arashb has quit [Ping timeout: 276 seconds]
emilford has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
conta has joined #ruby
Guest22947 is now known as Mutsuhito
Mutsuhito has quit [Changing host]
Mutsuhito has joined #ruby
Mutsuhito has joined #ruby
beauby_ has quit [Ping timeout: 256 seconds]
Guest21588 has joined #ruby
Guest21588 has quit [Ping timeout: 260 seconds]
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
<Radar> Does anyone know an SFTP Server library for Ruby?
<Radar> Yeah, server not client.
anisha__ has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 2.1]
anisha__ has joined #ruby
arashb has joined #ruby
quobo_ has joined #ruby
cschneid has joined #ruby
quobo_ is now known as quobo
clemens3_ has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
bijan_ has quit [Remote host closed the connection]
sanscoeur has joined #ruby
ciscam_ has quit [Ping timeout: 276 seconds]
ciscam has joined #ruby
emilford has joined #ruby
Guest98414 is now known as ged
dionysus69 has joined #ruby
ged is now known as Guest29045
memo1 has quit [Ping timeout: 268 seconds]
Guest21588 has joined #ruby
saTchymoto has joined #ruby
csk157 has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
armyriad has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
yohji has joined #ruby
CcjDoK has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
Guest21588 has quit [Ping timeout: 268 seconds]
bijan_ has joined #ruby
arashb has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
phaul has joined #ruby
clemens3 has joined #ruby
anisha__ has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
sysvalve has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
emilford has joined #ruby
arashb has joined #ruby
Autolycus has quit []
clemens3 has quit [Quit: WeeChat 2.1]
TomyWork has joined #ruby
amar has joined #ruby
ta_ has quit [Remote host closed the connection]
CcjDoK has quit [Quit: Mutter: www.mutterirc.com]
chussenot has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
aufi has joined #ruby
amar has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 256 seconds]
bijan_ has joined #ruby
emilford has joined #ruby
Nussi has quit [Quit: WeeChat 2.1]
clemens3 has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan__ has quit [Ping timeout: 245 seconds]
bijan_ has joined #ruby
Guest21588 has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
bijan_ has quit [Ping timeout: 245 seconds]
emilford has quit [Ping timeout: 245 seconds]
Guest21588 has quit [Ping timeout: 245 seconds]
emilford has joined #ruby
plexigras has joined #ruby
arashb has quit [Ping timeout: 276 seconds]
Mia has joined #ruby
Guest21588 has joined #ruby
Axy has quit [Ping timeout: 260 seconds]
bijan_ has joined #ruby
arashb has joined #ruby
bijan__ has joined #ruby
chussenot has quit [Quit: chussenot]
Azure has quit [Ping timeout: 260 seconds]
bijan_ has quit [Ping timeout: 260 seconds]
bijan__ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
chussenot has joined #ruby
Azure has joined #ruby
conta has quit [Ping timeout: 256 seconds]
conta has joined #ruby
Guest29045 is now known as ged
guacamole has quit [Ping timeout: 240 seconds]
ged is now known as Guest70736
schleppel has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
sanscoeur has quit [Remote host closed the connection]
amar has joined #ruby
Cybergeek has quit [Quit: ZNC 1.6.1+deb1 - http://znc.in]
Cybergeek has joined #ruby
amar has quit [Ping timeout: 248 seconds]
CcjDoK has joined #ruby
vondruch has joined #ruby
amar has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
cschneid has quit [Ping timeout: 245 seconds]
rfoust has quit [Ping timeout: 260 seconds]
armyriad has joined #ruby
CcjDoK has quit [Ping timeout: 260 seconds]
arashb has quit [Ping timeout: 255 seconds]
vondruch has quit [Quit: vondruch]
phaul has joined #ruby
cschneid has joined #ruby
reber has quit [Quit: Leaving]
arashb has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
vondruch has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
saTchymoto has quit [Ping timeout: 256 seconds]
saTchymoto has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
guille-moe has joined #ruby
OS-35301 has joined #ruby
vondruch has left #ruby [#ruby]
arashb has quit [Ping timeout: 240 seconds]
ellcs has quit [Ping timeout: 240 seconds]
Guest23822 is now known as oz
phaul has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
ellcs has joined #ruby
anisha has joined #ruby
cschneid has quit [Ping timeout: 276 seconds]
OS-35301 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has joined #ruby
Beams has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
emilford has joined #ruby
karapetyan has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
ramfjord has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
alfiemax_ has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
venmx has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
surajit has joined #ruby
surajit has quit [Max SendQ exceeded]
guille-moe has quit [Remote host closed the connection]
surajit has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
surajit has quit [Max SendQ exceeded]
surajit has joined #ruby
surajit has quit [Read error: Connection reset by peer]
Guest70736 is now known as ged
ged is now known as Guest37849
karapetyan has quit [Remote host closed the connection]
arashb has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
sudorobo has quit [Quit: ¯\_(ツ)_/¯]
\void has quit [Quit: So long, and thanks for all the fish.]
sudorobo has joined #ruby
sudorobo has joined #ruby
emilford has joined #ruby
amar has quit [Remote host closed the connection]
aufi has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
yohji has quit [Ping timeout: 256 seconds]
arashb has quit [Ping timeout: 240 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
OS-35301 has joined #ruby
saTchymoto has quit [Ping timeout: 240 seconds]
saTchymoto has joined #ruby
yohji has joined #ruby
guille-moe has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 248 seconds]
anisha has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
anisha has joined #ruby
tvw has joined #ruby
guille-moe has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
emilford has joined #ruby
conta has joined #ruby
guille-moe has quit [Remote host closed the connection]
conta has quit [Ping timeout: 276 seconds]
guille-moe has joined #ruby
chussenot has quit [Quit: chussenot]
emilford has quit [Ping timeout: 255 seconds]
emilford has joined #ruby
iMadper has quit [Remote host closed the connection]
ur5us has joined #ruby
arashb has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
emilford has joined #ruby
<claw> anybody knows how i can prevent Rack::Defalte from deflating when send_file is used ?
<claw> i am using " send_file file " which causes problems with large files
<claw> because Content-Encoding:"gzip" is used
cschneid has quit [Ping timeout: 260 seconds]
emilford has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
emilford has joined #ruby
karapetyan has joined #ruby
<claw> whoops im in #ruby - talking about sinatra
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
cschneid has joined #ruby
asio has quit [Ping timeout: 264 seconds]
jameser_ has quit [Ping timeout: 248 seconds]
rikkipitt has joined #ruby
conta has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
arashb has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
bascht has joined #ruby
Guest37849 is now known as ged
ged is now known as Guest16308
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
alfiemax has joined #ruby
OS-35301 has quit [Ping timeout: 256 seconds]
alfiemax_ has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
rikkipitt has quit [Quit: Leaving...]
ellcs has quit [Ping timeout: 256 seconds]
aufi has joined #ruby
minimalism has quit [Quit: minimalism]
asio has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
gizmore|2 has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
cschneid has quit [Ping timeout: 256 seconds]
tcopeland has quit [Quit: tcopeland]
cschneid has joined #ruby
reber has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
emilford has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
emilford has quit [Ping timeout: 248 seconds]
arashb has joined #ruby
emilford has joined #ruby
tvw has quit []
beauby has joined #ruby
ramfjord has joined #ruby
OS-35301 has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
arashb has quit [Ping timeout: 260 seconds]
AJA4350 has joined #ruby
karapetyan has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
thapakazi_ has quit [Remote host closed the connection]
amatas has joined #ruby
emilford has quit [Ping timeout: 248 seconds]
emilford has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
amatas has quit [Quit: amatas]
lypsis has quit [Quit: ZNC - http://znc.in]
banisterfiend has joined #ruby
karapetyan has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
ldnunes has joined #ruby
Guest21588 is now known as lxsameer
pwillard_ is now known as pwillard
Guest16308 is now known as ged
reber has left #ruby ["Leaving"]
ged is now known as Guest78792
lypsis has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has joined #ruby
nickjj_ is now known as nickjj
BTRE has quit [Ping timeout: 256 seconds]
BTRE has joined #ruby
amatas has joined #ruby
lypsis has quit [Ping timeout: 245 seconds]
lypsis has joined #ruby
shinnya has joined #ruby
beauby has quit [Ping timeout: 256 seconds]
vondruch_ has joined #ruby
chussenot has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
vondruch_ is now known as vondruch
eelster has joined #ruby
amar has quit [Remote host closed the connection]
arashb has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
banisterfiend has joined #ruby
amar has joined #ruby
amar has quit [Remote host closed the connection]
synthroid has joined #ruby
cschneid has joined #ruby
dreamthese has quit [Read error: Connection reset by peer]
dreamthese has joined #ruby
amatas has quit [Read error: Connection reset by peer]
amatas has joined #ruby
BTRE has quit [Ping timeout: 255 seconds]
millerti has quit [Ping timeout: 276 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amar has joined #ruby
banisterfiend has joined #ruby
beefjoe70 has joined #ruby
banisterfiend has quit [Client Quit]
banisterfiend has joined #ruby
amar has quit [Remote host closed the connection]
banisterfiend has quit [Client Quit]
banisterfiend has joined #ruby
arashb has quit [Ping timeout: 260 seconds]
tcopeland has joined #ruby
tcopeland has quit [Client Quit]
govg has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyberg has joined #ruby
cyberg has quit [Max SendQ exceeded]
cyberg has joined #ruby
<dminuoso> Is there some class inheritance viewer?
<dminuoso> Or do I have to spend my time writing one? :|
Guest78792 is now known as ged
ged is now known as Guest13111
mjolnird has quit [Ping timeout: 260 seconds]
mjolnird has joined #ruby
mjolnird has quit [Client Quit]
<lupine> the documentation generator kinda works
chouhoulis has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<dminuoso> lupine: No I need it for runtime hierarchies.
<dminuoso> Basically I need to figure out how the fuck rails is squishing things together
<dminuoso> Its an awful mess.
nielsk has quit [Ping timeout: 245 seconds]
shinnya has quit [Ping timeout: 255 seconds]
nielsk has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
eelster has quit [Read error: Connection reset by peer]
phaul has joined #ruby
ellcs has joined #ruby
banisterfiend has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 248 seconds]
phaul has quit [Ping timeout: 276 seconds]
cschneid has joined #ruby
banisterfiend has quit [Ping timeout: 268 seconds]
rfoust has joined #ruby
<beefjoe70> How can I access json fields ?
<beefjoe70> I have this code
<beefjoe70> and I'm getting {"resultType":"Integer","result":2}
<beefjoe70> for example
<beefjoe70> which is what I want, but how can I retrieve result only ?
<beefjoe70> using .result gives an undefined method error
sylario has joined #ruby
chouhoulis has joined #ruby
<z64> beefjoe70: if you just have an opaque string, you need to parse that into a ruby object you can traverse first. you likely want to `require 'json'` and then pass that string to `JSON.parse` so you can access the data as a hash
<beefjoe70> but how can I have variables if it's a string ?
<beefjoe70> like the eval method
<beefjoe70> so basically like this
<beefjoe70> hash = JSON.generate({:resultType => eval(code).class,:result => eval(code)})
<beefjoe70> result = JSON.parse(hash)
<ellcs> it's not a hash you have there when generating a json
<ellcs> you'll have a json object
<ellcs> aka a string
<beefjoe70> obj = JSON.generate('{:resultType => eval(code).class,:result => eval(code)}')
<beefjoe70> result = JSON.parse(obj)
<beefjoe70> but then the whole thing is a string and doesn't give me the result I want
t0xik has quit [Quit: Connection closed for inactivity]
apeiros has joined #ruby
bmurt has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
thapakazi has quit [Quit: thapakazi]
troulouliou_div2 has quit [Remote host closed the connection]
Rapture has joined #ruby
k0mpa has joined #ruby
govg has joined #ruby
eblip has quit [Quit: WeeChat 1.9.1]
vondruch_ has joined #ruby
amar has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
Guest13111 is now known as ged
ged is now known as Guest96163
vondruch has quit [Ping timeout: 276 seconds]
vondruch_ is now known as vondruch
karapetyan has quit [Remote host closed the connection]
cyberg has quit [Ping timeout: 240 seconds]
biberu has quit []
ta_ has quit [Remote host closed the connection]
cyberg has joined #ruby
beefjoe70 has quit [Ping timeout: 256 seconds]
saTchymoto has quit []
dinfuehr has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
beefjoe70 has joined #ruby
lxsameer has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
thapakazi has joined #ruby
alfiemax has quit [Remote host closed the connection]
karapetyan has joined #ruby
alfiemax has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
<beefjoe70> how to parse json that has to be a string but have variables in it?
Libre has joined #ruby
minimalism has joined #ruby
cyberg has quit [Ping timeout: 260 seconds]
arkinor has joined #ruby
arashb has joined #ruby
cyberg has joined #ruby
<havenwood> beefjoe70: Why do we use JSON? Sometimes we want to store code as a String. Say we have an Array of Integers and we want to store them as a string then reconstitute them into code. You can turn Ruby into a String like: [1, 2, 3].inspect #=> "[1, 2, 3]"
<havenwood> beefjoe70: Then you can turn that String back into Ruby code like: eval "[1, 2, 3]" #=> [1, 2, 3]
<havenwood> beefjoe70: That works fine, but when you eval a String, you're running arbitrary code.
<beefjoe70> which is insecure
<beefjoe70> gonna work on that later sure
<havenwood> beefjoe70: Right, you don't want to: eval "FileUtils.rm 'oops'"
mostlybadfly has joined #ruby
<beefjoe70> hehe
<havenwood> beefjoe70: So we use serializers instead of evaling code. They can only serialize specific data structures, so they're safe. (Some safer than others, because they can serialize less.)
chouhoulis has quit [Remote host closed the connection]
dbugger_ has joined #ruby
<havenwood> beefjoe70: You deserialize Ruby to a String. Then you serialize it back into Ruby.
<havenwood> beefjoe70: Marshal and YAML can serialize lots of things, so they're unsafe - similar to eval.
<havenwood> beefjoe70: JSON is a subset of YAML that's safe by default.
<havenwood> Use JSON.parse instead of JSON.load, or JSON is unsafe too.
<beefjoe70> hmm interesting
Guest96163 has quit [Quit: WeeChat 2.0.1]
<beefjoe70> one question
<beefjoe70> what's the difference between that and openstruct ?
ged_ has joined #ruby
<havenwood> An OpenStruct is a datastructure, not a String.
<havenwood> You can't send an OpenStruct as a String, unless you serialize it.
<havenwood> beefjoe70: An OpenStruct is like a Hash, it's just less performant but fancier.
kmurphy4_ has joined #ruby
<beefjoe70> so it's not json
bijan_ has joined #ruby
<havenwood> When you initialize an OpenStruct, it internally defines methods on itself. That breaks the method lookup cache, which isn't great to do all the time.
<beefjoe70> cause with it I can access using dot notation
<havenwood> beefjoe70: An OpenStruct is unrelated to JSON.
<havenwood> beefjoe70: JSON is a serialization format that is popular in many languages.
arashb has quit [Ping timeout: 240 seconds]
<havenwood> beefjoe70: An OpenStruct is a Ruby-specific datatstructure that is unrelated to serliazation.
<havenwood> beefjoe70: You could never use an OpenStruct, and that'd be fine.
<havenwood> There are more use caveats with OpenStructs than with most things in Ruby. I'm more likely to use a Rinda::TupleSpace than an OpenStruct.
<havenwood> beefjoe70: OpenStructs are fancy. They're fine to use, but usually Rubyists opt for a Struct or Hash instead
<apeiros> hm, I thought rinda was part of drb - is that a gem?
ged_ is now known as ged
<havenwood> apeiros: stdlib
<beefjoe70> yea I'm going with json then, because I wanna work with the data using js
<apeiros> what's the needed require? doesn't seem to be 'rinda'
<dminuoso> Rinda::TupleSpace
<dminuoso> A what?
<havenwood> apeiros: Here's an example where I use it as a cache (added it to my girlfriend's book sharing app): https://github.com/stephaniewilkinson/bookmooch/blob/master/lib/tuple_space.rb
<dminuoso> Whole thing looks Javatastic.
<havenwood> <3 Roda
<apeiros> god damit stdlib!
<apeiros> require 'rinda' -> fail
<apeiros> require 'rinda/tuplespace' -> success
<apeiros> seriously, that's pissing me off :-S
<havenwood> haha, yeah - i was thinking the other day we should go through and at least make aliases to RubyGems style naming conventions.
<dminuoso> apeiros: The real problem is one of my main beefs with Ruby.
<dminuoso> We have no real module system.
<apeiros> dminuoso: agreed.
<apeiros> I'd phrase it differently - we have no good naming & namespacing requirements
<dminuoso> apeiros: No we have no way to correctly glue modules together.
<dminuoso> require is just a glorified eval.
andygeorge has joined #ruby
<dminuoso> evaling programs together in the right order is not fun.
<apeiros> ok, I guess I see where you're going and am at the very least inclined to agree.
<dminuoso> you have no way to explicitly export/import things - you cant separate modules
cyberg has quit [Ping timeout: 240 seconds]
<apeiros> though proper namespace- & name- requirements would already go a long way
<havenwood> maybe once we get a live ast we can spruce up module and add an: import Fancy, only: [:pants]
andygeorge has left #ruby [#ruby]
<apeiros> eh, if dminuoso had his typesystem, the "only" part becomes busywork the compiler can do for you :D
Libre has quit [Quit: Mutter: www.mutterirc.com]
<dminuoso> apeiros: no I think tightly controlling what you import is useful.
kloeri has quit [Quit: WeeChat 2.0]
<apeiros> I don't really see a value in that, but ok. I can accept that others do and want to have it.
<dminuoso> nameclashes and so on
<apeiros> well, nameclashes -> see proper naming requirements.
csk157 has quit [Ping timeout: 256 seconds]
bijan_ has quit [Remote host closed the connection]
<havenwood> not following conventions can be fixed easily enough
<havenwood> cherry picking functions to require and aliasing are harder
<havenwood> i guess aliasing is easier than cherry picking
<dminuoso> havenwood: when I write a library
<dminuoso> I dont want to think about nameclashes with the rest of rubygems
<havenwood> namespacing gems by author seems sane
<dminuoso> I want to be free to use whatever internal concept I want
<dminuoso> and the outside world has no business of knowing about that
<dminuoso> havenwood: right, but when you import an identifier `foo`
<dminuoso> from F and G
<dminuoso> or maybe both have it, but you only want it from F
nowhere_man has joined #ruby
Guest37885 is now known as zumbi
kloeri has joined #ruby
arkinor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has joined #ruby
<havenwood> I do appreciate when languages handle that nicely.
<havenwood> It seems the functional ones tend to.
chouhoulis has joined #ruby
<havenwood> Clojure and Elixir come to mind as well done.
cyberg has joined #ruby
ged has quit [Quit: WeeChat 2.0.1]
<apeiros> dminuoso: import foo from F as Ffoo, import foo from G as Gfoo
<havenwood> Maybe just too much pretense for Ruby. ;-P
ged has joined #ruby
<apeiros> and the reverse domain style namespacing is one of the things java imo did right
drim has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> import Foo, only: :constants
<havenwood> import Foo, only: :methods
aufi has quit [Quit: Leaving]
skeeba has joined #ruby
rippa has joined #ruby
nima_m has joined #ruby
chussenot has quit [Quit: chussenot]
<ged> Does anyone know if it's possible to call back into Ruby from a non-ruby thread?
Cavallari has quit [Quit: Cavallari]
jrabe has quit [Quit: Disconnected]
chouhoulis has quit [Remote host closed the connection]
jottr has joined #ruby
bijan_ has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
<dminuoso> apeiros: I dont mind hierarchical module organization.
<dminuoso> apeiros: But it's separate from identifier naming.
<dminuoso> havenwood: Even JS does it...
<apeiros> dminuoso: yes. the rdns stuff is not supposed to be part of the identifiers. but IMO it makes more sense to bind identifier to local symbols instead of tightly controlling import.
<RougeR> look what i did
<dminuoso> apeiros: Ive tried a few systems. Haskell got it right I think
<RougeR> checks for pluralisation in rails controllers
<apeiros> tightly controlling still can clash - when you want same named from two packages
<dminuoso> apeiros: It allows you to pick identifiers, optionally or exclusively qualify them
jottr has quit [Ping timeout: 256 seconds]
<dminuoso> Or you can do a blanket "all except" kind of import (which can be useful if you want short identifiers, but still need to avoid a nameclash with something you dont use)
<dminuoso> JS is fairly close too
jrabe has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
UserOO7 has joined #ruby
UserOO7 has quit [Remote host closed the connection]
<dminuoso> Java is kind of fine too
synthroid has quit [Remote host closed the connection]
arashb has joined #ruby
dionysus69 has quit [Quit: dionysus69]
aupadhye has quit [Ping timeout: 260 seconds]
coderphive has joined #ruby
Paweded has joined #ruby
synthroid has joined #ruby
conta has quit [Ping timeout: 256 seconds]
cyberg has quit [Ping timeout: 256 seconds]
Paweded has quit [K-Lined]
beefjoe70 has quit [Ping timeout: 256 seconds]
bijan_ has joined #ruby
jcarl43 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan__ has joined #ruby
redlegion has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 245 seconds]
redlegion has joined #ruby
cagomez has joined #ruby
bijan_ has joined #ruby
bijan__ has quit [Ping timeout: 276 seconds]
suukim has quit [Quit: Konversation terminated!]
AirDisa has joined #ruby
Zaab1t has joined #ruby
bijan__ has joined #ruby
tolerablyjake has joined #ruby
bijan_ has quit [Ping timeout: 260 seconds]
RougeR has quit [Ping timeout: 276 seconds]
AirDisa has quit [Remote host closed the connection]
<lupine> dminuoso: well, it's kind of available at runtime too, but I'm not aware of any tools to parse it
AirDisa has joined #ruby
bijan__ has quit [Ping timeout: 245 seconds]
bijan_ has joined #ruby
<apeiros> dminuoso: fun thing - if UnboundMethod wasn't so picky about its target, we could even implement all those things in the runtime
<dminuoso> apeiros: Please no. If you dont believe me that dynamic features are evil; they are the reason we cant have a proper module system
<dminuoso> they are the reason we cant have a proper type system, regardless of matz & co efforts
<dminuoso> they are the reason we cant have efficient code gen
<dminuoso> also they make it pretty hard to reason about code when staring at it
<apeiros> true, if you want formally verifiable code, ruby is the wrong tool
<dminuoso> and they make it hard to impossible to have good tooling
<apeiros> that doesn't mean it's bad.
<apeiros> it's just unsuited for a set of tasks.
bijan_ has quit [Read error: Connection reset by peer]
<dminuoso> apeiros: If you check out Crystal. They offer typing, type inference, good code gen - and you can actually write tooling for it. The things you gain when you toss out dynamic features.
<dminuoso> Meta programming by macros :P
<dminuoso> But it still has the ruby feeling to it
<dminuoso> anyway back to reading about profunctor optics
alfiemax has quit [Remote host closed the connection]
AirDisa has quit [Ping timeout: 260 seconds]
arashb has quit [Ping timeout: 260 seconds]
AirDisa has joined #ruby
bijan_ has joined #ruby
amar has quit [Ping timeout: 276 seconds]
AirDisa has quit [Client Quit]
jamiejackson has joined #ruby
memo1 has joined #ruby
Mikasi has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
Libre has joined #ruby
alfiemax has joined #ruby
mozzarella has quit [Quit: WeeChat 2.0.1]
bijan__ has quit [Ping timeout: 245 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
Cthulu201 is now known as _Cthulu201
OS-35301 has quit [Quit: Textual IRC Client: www.textualapp.com]
cyberg has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
Mikasi has quit [Quit: Mikasi]
<z64> +1 to crystal :)
sysvalve has quit [Quit: Leaving]
memo1 has quit [Ping timeout: 240 seconds]
kvoz has joined #ruby
<kvoz> Hi. Complete ruby noob here (never written a line of code) but been tasked with maintaining someone elses application, and I have been told I need to run rake db:migrate, but when I do I get "connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432", but thats not what my $DB_HOST variable says, I dont understand why its trying to connect to that db
bijan_ has joined #ruby
jamiejackson has quit [Ping timeout: 256 seconds]
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
Libre has quit [Quit: Mutter: www.mutterirc.com]
p0p0pr37 has quit [Ping timeout: 256 seconds]
p0p0pr37_ is now known as p0p0pr37
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 245 seconds]
conta has joined #ruby
kvoz has quit [Ping timeout: 248 seconds]
kapil___ has joined #ruby
bijan_ has joined #ruby
bijan__ has quit [Ping timeout: 260 seconds]
ciscam has quit [Ping timeout: 268 seconds]
ciscam has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
OS-35301 has joined #ruby
karapetyan has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 240 seconds]
emilford has quit [Ping timeout: 256 seconds]
yohji has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
banisterfiend has joined #ruby
emilford has joined #ruby
bijan_ has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
jamiejackson has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
nitric has joined #ruby
emilford has quit [Ping timeout: 248 seconds]
manjaroi3_ has joined #ruby
TomyLobo has joined #ruby
karapetyan has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
alfiemax has joined #ruby
sent-hil has joined #ruby
bijan_ has joined #ruby
emilford has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
cagomez has quit []
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
emilford has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilford has joined #ruby
bijan__ has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
conta has quit [Ping timeout: 240 seconds]
amar has joined #ruby
memo1 has joined #ruby
Beams has quit [Quit: .]
bijan_ has joined #ruby
sanscoeur has joined #ruby
Puffball has joined #ruby
amar has quit [Ping timeout: 276 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
bijan_ has quit [Ping timeout: 240 seconds]
bijan_ has joined #ruby
OS-35301 has quit [Quit: Textual IRC Client: www.textualapp.com]
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
manjaroi3_ has quit [Ping timeout: 248 seconds]
manjaroi3_ has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan__ has quit [Ping timeout: 245 seconds]
amar has joined #ruby
conta has joined #ruby
Andrevan has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
memo1 has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
apeiros has quit [Remote host closed the connection]
bijan_ has joined #ruby
conta has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
jrafanie has joined #ruby
Eiam has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
manjaroi3_ has quit [Ping timeout: 240 seconds]
emilford has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
gizmore has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bijan_ has joined #ruby
weird_error has joined #ruby
manjaroi3_ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
majuk has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
nima_m has quit [Quit: Connection closed for inactivity]
emilford has quit [Ping timeout: 260 seconds]
<manjaroi3_> Hi. Complete ruby noob here (never written a line of code) but been tasked with maintaining someone elses application, and I have been told I need to run rake db:migrate, but when I do I get "connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432", but thats not what my $DB_HOST variable says, I dont understand why its trying to connect to that db
aupadhye has joined #ruby
mwlang has joined #ruby
nitric has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
<havenwood> manjaroi3_: A Rails app I'm guessing from the Rake command? Check the file: config/database.yml
lytol has joined #ruby
<havenwood> ?rails manjaroi3_
<ruby[bot]> manjaroi3_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
emilford has joined #ruby
<manjaroi3_> havenwood, will try there, thank you
<mwlang> is there a gem out there supporting .Net’s signalr websockets? I’m having trouble tracking one down.
<havenwood> manjaroi3_: Your nick needs to be registered to talk in #rubyonrails: https://freenode.net/kb/answer/registration
<majuk> Hi all. I have an application I want to deploy on an ARM board [iMx6]. Unfortunately, my target board does not have enough horse-power to build the required gems itself [chokes specifically trying to build nokogiri]. My googling for guides to cross compile is taking me a lot of places I don't understand.
<majuk> Any questions or comments are appreciated.
<mwlang> majuk I can compile and build nokogiri gem on a 1st and 2nd edition Raspberry Pi
amar has quit [Remote host closed the connection]
<mwlang> it may not be horse power of the arm board, but rather a lack of necessary system packages.
lxsameer has quit [Ping timeout: 256 seconds]
<havenwood> mwlang: i think this lib uses SignalR, unsure: https://github.com/Azure/azure-sdk-for-ruby
<havenwood> majuk: Do you need Nokogiri specifically or just an XML parser?
<majuk> mwlang: No, my board runs out of memory during the build process. I lost the exact error message, but I can recreate it.
<havenwood> majuk: Oga is among the good alternatives.
ellcs has joined #ruby
Andrevan has quit [Quit: WeeChat 2.1]
hahuang65_ has joined #ruby
bijan_ has joined #ruby
hahuang65 has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
<majuk> havenwood: Nokogiri is required
amar has joined #ruby
jamiejackson has quit [Ping timeout: 256 seconds]
<havenwood> majuk: I can't think of a way to get nokogiri compilation to use less memory.
<mwlang> havenwood: You are the queen - that package indeed has a signalr client in it.
<havenwood> majuk: are you hitting a ulimit or running out of system memory?
<havenwood> majuk: have you tried using system libs?
<havenwood> mwlang: hooah!
<majuk> havenwood: System memory IIRC. I'm recreating the error message as we speak but it will take another ~10 minutes for the process to give up.
<gizmore> what is usually better, preferring symbols or strings as hashmap keys? .... i am thinking of avoiding symbols in favor of mysql2 returns stringed hashmaps
hotpancakes has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
norfumpit has quit [Read error: Connection reset by peer]
<havenwood> gizmore: What kind of text? Have any examples?
<gizmore> column names
lxsameer has quit [Ping timeout: 260 seconds]
<havenwood> gizmore: I'd probably use Symbols for those. Symbols are generally preferred for Hash keys, and column names should look nice as Symbols.
guille-moe has quit [Remote host closed the connection]
bijan_ has joined #ruby
bijan__ has quit [Ping timeout: 256 seconds]
<gizmore> havenwood: yeah.... maybe there is an option in mysql2 gem to return symbols as keys
<havenwood> gizmore: it's fine to use String Hash keys as well
<mwlang> gizmore: sequel gem will let you interact with the DBMS with ruby hashes.
ramfjord has joined #ruby
lxsameer has joined #ruby
guille-moe has joined #ruby
<mwlang> and with that library, it’s all symbols instead of strings.
<gizmore> i am working on my own dba :)
nowhere_man has quit [Ping timeout: 256 seconds]
<mwlang> ok, gotcha. FWIW, I prefer symbols for hash keys over strings.
<havenwood> <3 Sequel
<havenwood> gizmore: look at Sequel's plugin system
<gizmore> i am fine.... but it probably is worth a look
bijan_ has quit [Ping timeout: 240 seconds]
<mwlang> I learned a lot of good Ruby tricks from the Sequel source. Definitely worth a study.
<gizmore> i also did my own autoloader... it just replaces :: with /
<gizmore> in missing constants... works charmy
<mwlang> neat idea.
cyberg has quit [Ping timeout: 240 seconds]
<mwlang> where do you hook the autoloader in?
<gizmore> module GDO
ellcs has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Ping timeout: 256 seconds]
<gizmore> only own classes are loaded that way
lxsameer has quit [Ping timeout: 240 seconds]
bijan_ has joined #ruby
aupadhye has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
thapakazi has quit [Ping timeout: 248 seconds]
nitric has joined #ruby
cadillac_ has joined #ruby
eelster has joined #ruby
ta__ has joined #ruby
lxsameer has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
nitric_ has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
nitric has quit [Ping timeout: 260 seconds]
Jiaoyin has joined #ruby
<Jiaoyin> ..hey guys, I was helping, I can get some tips
<Jiaoyin> ..advice
lxsameer has quit [Ping timeout: 256 seconds]
<Jiaoyin> Correct me if I'm wrong, but a hash is a associative array, right? When you create a hash you use {curly braces}, but when you want to use the key of a hash, you’re using [square brackets].
<Jiaoyin> ???
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
<gizmore> Jiaoyin: the [] function is to access values of the hash... use hash[key] to read a value
guille-moe has quit [Ping timeout: 240 seconds]
<gizmore> use hash[key]= to set a value
<mwlang> I don’t know if “associative array” is correct term for a Hash. key/value mapping seems more appropriate.
bijan_ has joined #ruby
<havenwood> Jiaoyin: You're right, a Hash is a dictionary. Hash#[] is one Hash method for retrieving the value for the specified key. There's a little bit of syntactic sugar that let's you call it like `h[arg]` instead of `h.[](arg)`.
<Jiaoyin> If a hash for txt is {"txt"=>14}. The key for the hash is 14? To get the hash 14, you type in....[txt]. Correct?
<havenwood> >> {"txt"=>14}["txt"] # Jiaoyin
<ruby[bot]> havenwood: # => 14 (https://eval.in/1012761)
<havenwood> Jiaoyin: Try in irb or pry. :-)
<Jiaoyin> I got 14
cyberg has joined #ruby
<Jiaoyin> ....that's the key, right?
<havenwood> Jiaoyin: `{}` is a Hash literal. `"txt"` is the key and `14` is the value.
<havenwood> >> {}.class
<ruby[bot]> havenwood: # => Hash (https://eval.in/1012765)
<havenwood> >> {"txt"=>14}.keys
<ruby[bot]> havenwood: # => ["txt"] (https://eval.in/1012766)
<havenwood> >> {"txt"=>14}.values
<ruby[bot]> havenwood: # => [14] (https://eval.in/1012767)
lxsameer has joined #ruby
<havenwood> &ri Hash
ta__ has quit [Remote host closed the connection]
<Jiaoyin> ..so 14 is the hash?
<havenwood> Jiaoyin: Nope, the value of the one key/value pair in the hash.
<Jiaoyin> ...I'm taking a Google course on Coursera....................https://www.coursera.org/learn/it-automation/
<havenwood> Jiaoyin: The hash is `{"txt"=>14}`. It has one key/value pair. The one key is `"txt"`. The one value is `14`.
mikecmpbll has joined #ruby
<Jiaoyin> I'm still on the first week and I'm trying to understand the hash and key....that's why I ask
<Jiaoyin> Oh...
<Jiaoyin> I see
<Jiaoyin> thanks
<Jiaoyin> that makes alot more sense
<Jiaoyin> I appreciate it :)
russt has quit [Remote host closed the connection]
russt has joined #ruby
<havenwood> mwlang: I think it is the right overarching term. Hash, dictionary and map are all just different names for associative arrays, which can be implemented any which way.
<Jiaoyin> I thought 'txt' was the hash. Didn't know the whole thing inside the {} was the actual hash.
hotpancakes has quit [Remote host closed the connection]
<Jiaoyin> thanks again
<havenwood> mwlang: Though I do have a bit of a bad taste re "associative array" because of PHP. ;-P
<havenwood> Jiaoyin: You're welcome. Happy coding!
<mwlang> havenwood: that may be it for me as well.
lxsameer has quit [Ping timeout: 245 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
nk121 has joined #ruby
<Jiaoyin> .......btw, I just notice you used used ' instead of "............why is that?
<Jiaoyin> ...is it just a preference thing?
lxsameer has joined #ruby
Guest9512 has quit [Quit: ZNC 1.6.6 - http://znc.in]
<havenwood> Jiaoyin: You mean the backticks I put around code, like `1 +1` or something else?
<havenwood> Jiaoyin: I don't understand what you're asking. ¯\_(ツ)_/¯
<havenwood> Jiaoyin: Oh, you mean single instead of double quote?
<Jiaoyin> ..when you were replying to me just a while ago, you said................The one key is `"txt"`. The one value is `14`.........................is their a reason why you said '"txt"' instead of 'txt' or just "txt"
<Jiaoyin> ???
<havenwood> Jiaoyin: I'm using the convention where you always surround code used inline in sentences with backticks.
<havenwood> Jiaoyin: They're not single quotes, they're backticks.
spiette has joined #ruby
<havenwood> >> '`'.ord
<ruby[bot]> havenwood: # => 96 (https://eval.in/1012770)
<havenwood> >> 96.chr
<ruby[bot]> havenwood: # => "`" (https://eval.in/1012771)
<Jiaoyin> oh, k
<havenwood> Jiaoyin: In markdown and some other formats, that'll designate it as code. It's a fairly common convention.
<havenwood> Jiaoyin: If you denote what's code by convention it makes it easier to tell what's meant to be code and what's meant to be English.
lxsameer has quit [Ping timeout: 255 seconds]
<havenwood> Jiaoyin: So I try to always use backticks inline, or put my code following a colon, like: 1 + 1
SeepingN has joined #ruby
<havenwood> Jiaoyin: So `1 + 1` or: 1 + 1
<Jiaoyin> in the irb, when I typed in {"txt"=>14}.hash ............................I got 1017606070
<Jiaoyin> where is the number 1017606070 coming from?
phaul has joined #ruby
<havenwood> >> 'Jiaoyin'.hash
<ruby[bot]> havenwood: # => -533293653 (https://eval.in/1012772)
<havenwood> Jiaoyin: Your hash is negative!
<havenwood> >> 'Jiaoyin'.hash
<ruby[bot]> havenwood: # => 543477173 (https://eval.in/1012773)
<havenwood> Phew, that's better.
<Jiaoyin> ahaha
sauvin has quit [Remote host closed the connection]
<Jiaoyin> I see the number, but how are these number calculated? I mean, how is it that 'Jiaoyin'.hash.....................brings up 481165061 ...........where as {"txt"=>14}.hash ...........brings up 1017606070
<Jiaoyin> what hashing algorithm is it using?....if it's using any
<Jiaoyin> Just curious how these hashes are being generated..
lxsameer has joined #ruby
\void has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
phaul has joined #ruby
<havenwood> There's an algorithm called SipHash 13 that Ruby uses.
lxsameer has quit [Ping timeout: 260 seconds]
<havenwood> Jiaoyin: You can see the C implementation here: https://github.com/ruby/ruby/blob/trunk/siphash.c
<Jiaoyin> kool, thanks :)
<havenwood> Ruby fairly recently switched from SipHash 24 to SipHash 13, following Rust's lead.
<havenwood> Jiaoyin: Here's a paper on SipHash: https://cr.yp.to/siphash/siphash-20120620.pdf
mrush has quit [Ping timeout: 245 seconds]
<Jiaoyin> ..............is their a online conversion tool? Let's say I get the siphash 481165061.............how I want to flip it back.........unhash or unencrypt it
<Jiaoyin> how do I do that?
<mwlang> why switch from SipHash24 to 13? performance?
<havenwood> mwlang: aye, performance
lxsameer has joined #ruby
<Jiaoyin> ..and, how do I check what algorithm Ruby is using for the hashing...using the irb?
ellcs has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
\void has joined #ruby
<havenwood> Jiaoyin: You'd have to check the Ruby source code to see that implementation detail.
<Jiaoyin> k
<havenwood> Jiaoyin: Most Rubyists don't know what SipHash 13 is nor care.
<Jiaoyin> Is their a online conversion tool out there?
lxsameer has quit [Ping timeout: 245 seconds]
<havenwood> Jiaoyin: You can't get from that hash number back to the object. It doesn't correspond like an object_id does.
<havenwood> Jiaoyin: It's being produced by a cryptographic function that was designed not to leak information.
<Jiaoyin> ...unless without the key?
<havenwood> Jiaoyin: An object_id on the other hand corresponds to the object's location in memory, and is simple enough to easily reverse engineer.
<havenwood> Jiaoyin: Read the SipHash 2-4 paper. ;-P
<havenwood> I linked it above.
<Jiaoyin> lol, k..
<havenwood> Jiaoyin: Here's a short Ruby implementation of SipHash 2-4: https://github.com/emboss/siphash-ruby/blob/master/lib/siphash.rb
amatas has quit [Quit: amatas]
GodFather has joined #ruby
<havenwood> I should do a SipHash 1-3 implementation in pure Ruby. That sounds fun.
lxsameer has joined #ruby
<Jiaoyin> You should :)
codymj has joined #ruby
sent-hil has quit [Quit: Connection closed for inactivity]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Jiaoyin> I looked through the pdf file and the rb file. It doesn't have anything on how to check what hashing algrithom your version of ruby has. Is their a way I can check this under the irb?
banisterfiend has joined #ruby
<havenwood> Jiaoyin: No, it's an implementation detail. As a Ruby user, it's not going to make any difference to you.
<Jiaoyin> ..something to type in the irb...............so it spits out something like, "You're using the hashing algorithm SipHash13"
<havenwood> Jiaoyin: Nope, nothing like that.
<Jiaoyin> I se, alright
<Jiaoyin> see*
cyberg has quit [Ping timeout: 240 seconds]
<havenwood> Jiaoyin: Maybe if you can somehow embed the #ruby channel in your irb.
nowhere_man has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
bijan_ has quit []
hotpancakes has joined #ruby
lxsameer has joined #ruby
manjaroi3_ has quit [Ping timeout: 260 seconds]
cyberg has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 248 seconds]
nowhere_man has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
CrazyEddy has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
lxsameer has joined #ruby
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
cyberg has quit [Ping timeout: 260 seconds]
manjaroi3_ has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KeyJoo has joined #ruby
<Jiaoyin> ..how do you embed the ruby channel in the IRB?..lol
lxsameer has quit [Ping timeout: 248 seconds]
Andrevan has joined #ruby
alfiemax_ has joined #ruby
jrafanie_ has joined #ruby
<majuk> Is there a way to have bundler report the gems it thinks are required by a Gemfile?
cagomez has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
<z64> is a lockfile not suitable?
<majuk> z64: Ah, I think that's what I'm looking for. Thanks.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<z64> FWIW, you can generate a lockfile or print it to STDOUT with `bundle lock` (see --help)
<z64> np
<z64> (bundle lock wont actually install the gems)
cagomez has quit [Ping timeout: 268 seconds]
<majuk> Cool, I'll look at that. It seems my earlier memory issue is local to bundler as using `gem install` outside bundler was able to install [most] of the necessary gems.
<z64> o
<majuk> That's a comment towards general chat, not specifically you z64
lxsameer has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
eblip has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
ellcs has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
lxsameer has joined #ruby
cyberg has joined #ruby
alfiemax has joined #ruby
ellcs has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
coderphive has quit [Quit: coderphive]
alfiemax_ has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Remote host closed the connection]
<Eiam> Jiaoyin: I can't tell if that was a serious question or not...
coderphive has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
cagomez has quit [Ping timeout: 240 seconds]
cyberg has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
bogdan has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
alfiemax has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
memo1 has joined #ruby
ski7777 has quit [Read error: Connection reset by peer]
jatto has joined #ruby
ski7777 has joined #ruby
cagomez has joined #ruby
eelster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eblip has quit [Quit: WeeChat 2.0.1]
RougeR has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
cyberg has joined #ruby
amar_ has joined #ruby
p0p0pr37 has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
p0p0pr37_ is now known as p0p0pr37
lxsameer has joined #ruby
amar has quit [Ping timeout: 248 seconds]
cyberg has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
<mwlang> havenwood: embed #ruby irc channel in irb console!? You gotta build that! I can just see it now…an interactive Ruby shell that emits IRC messages as they come through while you’re working on something…and you can reply back with simple command => irc :ruby, “yeah, I got it.”
jcalla has quit [Quit: Leaving]
alfiemax has quit [Remote host closed the connection]
<mwlang> for any of you that are into crypto currencies and trading on exchanges, I put out a new open source gem that wraps cobinhood’s api: https://github.com/mwlang/cobinhood I’d love some feedback on how to improve this code (aside from the most obvious: writing some specs for it…)
bogdan has quit [Quit: bogdan]
tolerablyjake has joined #ruby
lxsameer has joined #ruby
banisterfiend has joined #ruby
ta_ has joined #ruby
<mwlang> speaking of writing specs, for open source projects that may have sensitve server exchanges, what’s the typical approach to implementing? last thing I want to do is accidentally expose my private API keys through VCR cassettes and/or other means of fixture capturing.
cyberg has joined #ruby
sagax has quit [Quit: Konversation terminated!]
jcalla has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
eckhardt has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
dreamthese has quit [Remote host closed the connection]
lxsameer has joined #ruby
dreamthese has joined #ruby
<havenwood> mwlang: I'd suggest inheriting from StandardError instead of Exception.
<havenwood> mwlang: Frozen string literal magic comment is fairly mainstream these days.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> mwlang: ENV::[] always returns a String, so #to_s is redundant: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest.rb#L30
<havenwood> mwlang: I'd suggest using ENV::fetch instead, to raise an error if the env var is missing, rather than have it be `nil` and percolate up elsewhere.
<mwlang> Good points on all, but I didn’t understand one: Frozen string literal magic comment?
cagomez has quit []
<havenwood> mwlang: On the first line of the file: # frozen_string_literal: true
<havenwood> mwlang: It'll autofreeze all the Strings as if you ran Ruby with: --enable-frozen-string-literal
<mwlang> Ah! That’s a new feature to me.
lxsameer has quit [Ping timeout: 240 seconds]
<mwlang> does it go in every file or just the primary lib/cobinhood.rb file?
<havenwood> at the top of each Ruby file
apeiros_ has joined #ruby
<havenwood> most popular libraries are just adding it across the board
<mwlang> what’s practically gained from freezing all the literal strings?
<havenwood> saving memory and speed
<apeiros_> and avoiding silly bugs
apeiros_ is now known as apeiros
<havenwood> mwlang: Do you mean end of line or end of string here?: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest.rb#L65
<havenwood> mwlang: If end of String, switch to: \z
<havenwood> mwlang: You can interpolate directly into a Regexp literal: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest.rb#L99
<havenwood> >> option = 42; /:#{option}/
<ruby[bot]> havenwood: # => /:42/ (https://eval.in/1012811)
<havenwood> mwlang: In Ruby 2.4+ you can use #match? instead of #=~ to save memory and time: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest.rb#L100
banisterfiend has joined #ruby
<apeiros> havenwood: huh? is match? optimized by the parser the same way =~ is?
lxsameer has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood> apeiros: #match? doesn't set MatchData and global variables, so it's way faster
<apeiros> havenwood: neither does =~, they're set lazily
<apeiros> or at least that's how I learned it ages ago :D
<havenwood> match? ends up being a really nice performance improvement
<apeiros> eh, duly noted
<havenwood> apeiros: Rails switched String#blank? from #=~ to #match? and now it's as fast as the fast_blank C ext
<mwlang> learnt a couple of something new today!
kapil___ has quit [Quit: Connection closed for inactivity]
<apeiros> interesting
<mwlang> I’ve been using !~ and =~ for quite some time just because I like it better than reading “match?” but an performance boost is enough for me to change.
lxsameer has quit [Ping timeout: 260 seconds]
<mwlang> truth be told, most time lost on the actual API call/response than anywhere else.
<havenwood> mwlang: It's a nit, but I'd argue for `@api.to_s.empty?` here, because I prefer a lone method to method with arg: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest/auth_request_middleware.rb#L9
<havenwood> Also, one less String allocation.
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> mwlang: You can remove the colons with all the alias keywords: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest/trading_api.rb#L10
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> mwlang: Just barewords: alias get_order order
<mwlang> now that I did not know!
<havenwood> mwlang: An alternative to `/ 1000.0` would be `fdiv 1000`: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest/system_api.rb#L10
Sembei has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
emilford has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
memo1 has quit [Ping timeout: 255 seconds]
<havenwood> mwlang: Normally you don't commit the Gemfile.lock for gems.
BH23 has quit [Ping timeout: 276 seconds]
<havenwood> mwlang: Unlike apps, you commit just the Gemfile.
plexigras has quit [Ping timeout: 260 seconds]
<mwlang> good point. I forgot that one.
<havenwood> mwlang: I'd also add Gemfile.lock to the .gitignore.
<havenwood> mwlang: (And `git rm Gemfile.lock` and commit its removal.)
<havenwood> mwlang: I'd suggest #public_send instead of #send here, unless it really is intentionally calling a private method: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest.rb#L94
lxsameer has quit [Ping timeout: 256 seconds]
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
<mwlang> *havenwood all suggestions adopted.
<havenwood> mwlang: Congrats on the gem!
<mwlang> thanks. how was the structuring? was it easy to follow?
<mwlang> on the frozen literal string magic comment, if I add that, I should remove the #freeze call, right? https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest/api_endpoints.rb#L43 for example.
ta_ has quit [Remote host closed the connection]
lxsameer has joined #ruby
synthroid has quit []
tdy has quit [Ping timeout: 240 seconds]
ldepandis has joined #ruby
BH23 has joined #ruby
<mwlang> havenwood: thanks for that detailed look and feedback. I definitely wasn’t expecting that and really appreciate it. I’m probably going to do a few more of these for various exchanges, esp. if the current ones out there royally suck like the cobinhood_api one did.
cliluw has quit [Read error: Connection reset by peer]
<mwlang> kucoin comes to mind. terrible implementation of a ruby wrapper on the existing gem.
banisterfiend has joined #ruby
biox has quit [Quit: probably server crash]
lxsameer has quit [Ping timeout: 260 seconds]
biox has joined #ruby
hotpancakes has quit [Remote host closed the connection]
cliluw has joined #ruby
<mwlang> one other performance idea: someone told me to switch the Faraday default adapter to Typhoeus. any opinions here on the merits of that suggestion?
amar has joined #ruby
samosaphile has quit [Ping timeout: 260 seconds]
memo1 has joined #ruby
amar_ has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
kmurphy4_ is now known as kmurphy4
zleap has quit [Changing host]
zleap has joined #ruby
tdy has joined #ruby
<mwlang> hmmm…are you sure about “ ENV::[] always returns a String” ? I just tried this in IRB console: ENV["SOMETHING"] => nil
t0xik has joined #ruby
dviola has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> mwlang: always returns a string +for existing keys+
<apeiros> nonexistent keys will return nil, yes
<Eiam> you could do ENV["SOMETHING"] ||= :emptyEnv
<mwlang> apeiros: thanks for clarifying.
<Eiam> in which case you'll always get something =0
<mwlang> I just simply did ENV[“SOMETHING”].to_s
<mwlang> :-)
<Eiam> eh, now you are encoding an empty string to mean state
<Eiam> but w/e its your code.
cliluw has quit [Ping timeout: 256 seconds]
<mwlang> but you know…better idea is to change where I call #to_s
<mwlang> if only nil.empty? => true
lxsameer has joined #ruby
<Eiam> #rubyonrails is that way
<mwlang> all I needed to know at the point of using an api_key is whether it was blank/empty or not.
<mwlang> *sigh* any ideas they *didn’t* bolt on?
<mwlang> rails is a two-edged sword, for sure.
<Eiam> you can check length if you don't feel like writing an or... ?
ta_ has joined #ruby
<Eiam> as long as you .to_s it like you said first, you'll get 0
emilford has quit [Ping timeout: 256 seconds]
<mwlang> that’s all I really need. sweet and simple.
ramfjord has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
<mwlang> pushed a new version with the nitpicks cleaned up. @Eiam this is where I’m using that #to_s: https://github.com/mwlang/cobinhood/blob/master/lib/cobinhood/client/rest/auth_request_middleware.rb#L10
<mwlang> line #6 sets it, line #10 uses it.
<Eiam> looks fair; why not raise in init?
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<Eiam> question, not a critique
ldnunes has quit [Quit: Leaving]
<mwlang> because there’s a public set of endpoints that do not require an api_key
cliluw has joined #ruby
<mwlang> if I raised it then, it would prevent using the library without an api_key
manjaroi3_ has quit [Ping timeout: 256 seconds]
<mwlang> this way, error’s raised only first time an endpoint requiring the key is called.
banisterfiend has joined #ruby
emilford has joined #ruby
lxsameer has joined #ruby
<Eiam> ah, and you only call the middleware in such a case
<Eiam> got it, makes sense
orbyt_ has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
lxsameer has joined #ruby
<havenwood> mwlang: Who knew... shevy already made it: https://rubygems.org/gems/talk_in_irc_channel
emilford has quit [Ping timeout: 248 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilford has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
hotpancakes has joined #ruby
ur5us has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
chouhoul_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
tdy has quit [Quit: WeeChat 1.9.1]
jrabe is now known as uprabe
chouhoul_ has quit [Ping timeout: 248 seconds]
guacamole has quit [Client Quit]
tvw has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> I like baweaver's suggestion to hook it up so errors automatically post a question here. hahaha.
<havenwood> raise #ruby irc HALP
* apeiros gets out the bigger banhammer in advance
ellcs has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 248 seconds]
ellcs has joined #ruby
cliluw has joined #ruby
cyberg has quit [Ping timeout: 256 seconds]
cyberg has joined #ruby
lxsameer has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
k0mpa has quit [Quit: k0mpa]
CrazyEddy has joined #ruby
orbyt_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
ur5us has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p0p0pr37 has quit [Ping timeout: 255 seconds]
p0p0pr37_ is now known as p0p0pr37
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
cajone has joined #ruby
ellcs has quit [Ping timeout: 256 seconds]
schleppel has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
beefjoe70 has joined #ruby
amar has quit [Remote host closed the connection]
cajone has left #ruby [#ruby]
eckhardt has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
codymj has quit [Quit: Leaving]
eck has quit [Quit: bye]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 256 seconds]
venmx has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
majuk has quit [Remote host closed the connection]
bipul has quit [Read error: Connection reset by peer]
skeeba has quit [Read error: Connection reset by peer]
<Jiaoyin> @mwlang I just saw your post about cobinhood..lol. I was one of the few original investors
<Jiaoyin> .....what's the program about?
<Jiaoyin> the one you're trying to write..
bipul has joined #ruby
<mwlang> @Jiaoyin original investor as in pre-pre ICO investor? :-o
<mwlang> @Jiaoyin What I produced is just Ruby API wrappers to the Cobinhood API
<mwlang> I needed it for algorithimic trading bots I’m building.
<Jiaoyin> I was in the ICO during around the time when they had the problem with EtherDelta
<Jiaoyin> ..and it went crashing..lol
<mwlang> Ah. I’ve been a long-term “investor” from point of view of simply holding and growing COB stack simply trading the gap in the spreads on the platform.
<Jiaoyin> that's kool
<mwlang> trying to automate what I’ve been doing manually until now.
<Jiaoyin> I'm currently learning Ruby so hearing about your code.....caught my attention
<mwlang> Ah. welcome to the Ruby community.
<Jiaoyin> Thanks :)
<Jiaoyin> Do you think Cobinhood is going to hold up? I'm hearing a ton of problems with RobinHood..ahaha
<mwlang> If you’re into cryptocurrencies, you may also like another open source Ruby project I have going: https://github.com/mwlang/crypto
<mwlang> I do. They seem to have a great team and constantly working on improving the platform.
cagomez has joined #ruby
<mwlang> their marketing needs help, but they’re getting better there.
<Jiaoyin> I see
<Jiaoyin> Looks like you got some good projects going.
tvw has quit [Remote host closed the connection]
<Jiaoyin> Still learning so I will look over it again once I get better at Ruby.
<mwlang> they’re fun and keeps me busy.
<cagomez> How do I set `email` key to an empty string if the key exists? {'email'=> nil}.reverse_merge('email' => 'foo')
d^sh has quit [Ping timeout: 248 seconds]
<Jiaoyin> Goodluck with your project
memo1 has quit [Ping timeout: 244 seconds]
d^sh has joined #ruby
<mwlang> Jiaoyin: thanks! you, too.
hotpancakes has quit [Ping timeout: 244 seconds]
emilford has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
lxsameer has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
brianpWins has left #ruby [#ruby]
clemens3_ has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
emilford has quit [Ping timeout: 260 seconds]
sanscoeu_ has joined #ruby
willmichael has joined #ruby
cagomez has quit [Remote host closed the connection]
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
emilford has joined #ruby
cagomez has joined #ruby
sanscoeur has quit [Ping timeout: 248 seconds]
TomyLobo has quit [Ping timeout: 256 seconds]
sanscoeu_ has quit [Ping timeout: 256 seconds]
venmx has quit [Ping timeout: 240 seconds]
dbugger_ has quit [Ping timeout: 240 seconds]
grilix_ has quit [Ping timeout: 256 seconds]
brianpWins has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
AJA4350 has quit [Quit: AJA4350]
willmichael has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
lytol has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
rfoust has joined #ruby
ramfjord has joined #ruby
cajone has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 244 seconds]
emilford has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
noobineer has joined #ruby
<pizzaops> Hi there. I'm experiencing some strange behavior with hash defaults and I'm wondering if somebody can help me understand this: https://gist.github.com/pizzaops/5502cd81c661d698bc15668234e1a7d4
ramfjord has joined #ruby
<pizzaops> specifically, I don't understand why `#keys` returns nothing etc
grilix_ has joined #ruby
<pizzaops> you can still retrieve the value so clearly it's set
<pizzaops> but you can't loop, etc
<baweaver> hehehe
SCHAPiE has quit [Excess Flood]
<baweaver> Read through that
<baweaver> basically each and every single new key points to that same array
<baweaver> make it into a variable and keep dumping things into it
<pizzaops> ah see
<pizzaops> i didn't realize i was updating the default
<baweaver> What you want instead is this: Hash.new { |h,k| h[k] = [] }
<baweaver> which invokes that function for every "new" key, setting the default to a new hash in the function
<baweaver> new array*
<pizzaops> hmm
<pizzaops> i don't think this is uh
<pizzaops> the ideal behavior
<pizzaops> but thanks!
<baweaver> Same thing happens in Python
<baweaver> try and array default value, loads of fun.
<baweaver> The fun thing though is that because it's defined in a function, you have a ton of control over what it becomes
<baweaver> Like this fine beauty of code
<baweaver> >> vivified_hash = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }; h[1][2][3][4][5] = 6; h
<ruby[bot]> baweaver: # => undefined local variable or method `h' for main:Object (NameError) ...check link for more (https://eval.in/1012874)
<baweaver> >> vivified_hash = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }; vivified_hash[1][2][3][4][5] = 6; vivified_hash
<ruby[bot]> baweaver: # => {1=>{2=>{3=>{4=>{5=>6}}}}} (https://eval.in/1012876)
<baweaver> :D
emilford has quit [Ping timeout: 260 seconds]
quobo has quit [Quit: Connection closed for inactivity]
emilford has joined #ruby
<pizzaops> :hail_satan:?
coderphive has quit [Quit: coderphive]
<baweaver> >> factorial = Hash.new { |h,k| h[k] = k < 2 ? k : k * h[k - 1] }; factorial[5]; factorial
<ruby[bot]> baweaver: # => {1=>1, 2=>2, 3=>6, 4=>24, 5=>120} (https://eval.in/1012879)
<baweaver> point being, it's flexible
SCHAPiE has joined #ruby
jatto has quit [Ping timeout: 256 seconds]
<baweaver> The real fun is when you realize that hash, array, and proc all have a [] method
<pizzaops> you can index into a proc?
<baweaver> meaning you can return a lambda function instead of a hash or an array to do more fun things
<baweaver> index?
<pizzaops> sorry i think of [] as indexing
<pizzaops> e.g. foo['bar']
<pizzaops> (i'm a lowly ops person who codes to automate, i don't write "real software")
<baweaver> >> adder = -> a { -> b { a + b } }; [1,2,3].map(&adder[5])
<ruby[bot]> baweaver: # => [6, 7, 8] (https://eval.in/1012880)
<baweaver> Ah foo with that. I've done ops for years, it's plenty real software
lxsameer has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
<baweaver> and starting in July I'm going back to ops
<baweaver> or SRE, or DevOps, or whatever in the world else they call it these days.
<havenwood> Snow Removal Engineer
<baweaver> Anyways, point being automation is real software. If it's written in a programming language it's real software.
<havenwood> and people who write programs are programmers!
<baweaver> Too many gate keepers wanting to sound high and mighty, honestly. Just ignore them.
<havenwood> baweaver: I agree.
<baweaver> Though [] is technically "call" for procs
<baweaver> screwy, no?
trevoke has joined #ruby
cschneid has joined #ruby
<trevoke> Hi all, I've got a doozy of a question. Is it possible to dynamically define named parameters for the instantiation of a new object? In essence, I _think_ I'm asking if I can dynamically define named parameters for an overridden class-level new method, so I _think_ I'm asking about passing dynamic names as block arguments to define_method and define_singleton_method but I could absolutely be wrong...
mikecmpbll has joined #ruby
<baweaver> What're you trying to do?
<trevoke> So I have this hacky thing going: https://github.com/Trevoke/insane-hook
mikecmpbll has quit [Client Quit]
<trevoke> (simple small readme)
<trevoke> and I'd like to see if I can dial up the idiomatic feel of it by actually using named parameters instead of just faking it.
<trevoke> For a second, let's completely ignore whether this is complete overkill and whether the idea itself is idiomatic Ruby or not :D
<baweaver> **kwargs, define_method, instance_eval
<baweaver> now that said, command patterns are next to completely unnecessary in languages which have functions
cschneid has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
<baweaver> #1 and #2 are kinda flawed premises. Call is a method on a function, and functions should have arguments.
<trevoke> You're suggesting that I can do something like `define_singleton_method(:new) do |instance_eval(x):|` ?
mikecmpbll has quit [Client Quit]
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
<trevoke> Yeah. I also realized that I need to implement ===(foo) if I want it to be usable fully like a proc or some other object so I need to make changes to that.
jcarl43 has quit [Quit: WeeChat 2.1]
karapetyan has quit [Remote host closed the connection]
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
csk157 has joined #ruby
<trevoke> **kwargs is the splat operator, it's what I'm currently using and I don't really get named arguments that way -- not pure anyway. I can fake it the way I am now and I could even raise the same error Ruby is raising if I wanted, but I don't know what to do with that otherwise. I don't know where to plug in the instance_eval - I know I can do `define_singleton_method(:new) do |x:|` and that'll work, but of course that's a hardcoded name
<trevoke> parameter.
rfoust has quit [Ping timeout: 240 seconds]
<trevoke> Oh.. You're saying to use instance_eval and eval the string
cajone has quit [Ping timeout: 244 seconds]
<trevoke> Ugh, I don't know if that's dirtier than I want to go.
csk157 has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
<ramfjord> sweet jesu that
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nitric_ has quit [Quit: quit]
<trevoke> What, my horrible horrible hack?