apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: 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
bmurt has joined #ruby
jay_ has joined #ruby
wowXD has joined #ruby
jay_ has quit [Client Quit]
DanielRb_ has quit [Ping timeout: 252 seconds]
joe____ has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
Nexus_x1 has joined #ruby
zz_karupa is now known as karupa
joe____ has quit [Client Quit]
sleepee has joined #ruby
wowXD has quit [Ping timeout: 260 seconds]
Avahey_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
george2 is now known as george2_
george2_ is now known as george2
charliesome has joined #ruby
DanielRb_ has joined #ruby
moritzschaefer has quit [Ping timeout: 248 seconds]
Asher has quit [Quit: Leaving.]
binaryhat has quit [Quit: Leaving]
charliesome has quit [Ping timeout: 240 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fold has joined #ruby
Rollabunna has joined #ruby
binaryhat has joined #ruby
mikecmpb_ has quit [Quit: i've nodded off.]
DanielRb_ has quit [Ping timeout: 240 seconds]
<shevy> sent-hil I think that is the wrong question to ask
<shevy> the proper question is - what name should projects have?
<shevy> and when it is this question, then I think 90% will have the _ rather than the -
<shevy> and the gem name then is just the name of the project name, so it would also be _ underscored
<shevy> the problem is that there is no real standard
<shevy> two different projects, two different ways
oo_ has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
dc has quit []
<shevy> require 'resque-cleaner'
jmbrown412 has quit [Remote host closed the connection]
<shevy> require 'database_cleaner'
<shevy> I'd go with _ myself
<shevy> but let's ask Hanmac
spider-mario has quit [Remote host closed the connection]
lkba has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
DanielRb_ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
Hanmac1 has joined #ruby
fgo has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
ddv has quit [Ping timeout: 245 seconds]
try has joined #ruby
vifino_ has quit [Quit: Ze Cat now leaves...]
Hanmac has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
sdouglas has joined #ruby
fgo has quit [Ping timeout: 248 seconds]
alexju has joined #ruby
chipotle has joined #ruby
ddv has joined #ruby
dc has joined #ruby
mgberlin has quit [Ping timeout: 255 seconds]
sdouglas has quit [Remote host closed the connection]
wowXD has joined #ruby
medeka has joined #ruby
sdouglas has joined #ruby
medeka has quit [Client Quit]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
asteve has joined #ruby
bruno- has joined #ruby
alexju has quit [Remote host closed the connection]
dc has quit [Ping timeout: 255 seconds]
sdouglas has quit [Ping timeout: 244 seconds]
wildroman2 has quit [Ping timeout: 252 seconds]
tanema has quit []
oo_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 248 seconds]
ClarusCogitatio has quit [Ping timeout: 272 seconds]
ClarusCogitatio has joined #ruby
GriffinHeart has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
Shidash has joined #ruby
havenwood has joined #ruby
kp666 has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
GriffinHeart has quit [Ping timeout: 252 seconds]
brandonjmckay has joined #ruby
eka has joined #ruby
oo_ has joined #ruby
DanielRb_ is now known as DanielRb
DanielRb has quit [Changing host]
DanielRb has joined #ruby
Channel6 has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
bmurt has quit []
andrewjanssen has quit [Remote host closed the connection]
Wolland has joined #ruby
sevenseacat has joined #ruby
nicksanford has quit [Remote host closed the connection]
PanPan has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
ClarusCogitatio has joined #ruby
garndt has joined #ruby
Wolland has quit [Read error: No route to host]
Wolland_ has joined #ruby
keen_ has quit [Read error: Connection reset by peer]
keen_ has joined #ruby
aniM has joined #ruby
andrewstewart_ is now known as andrewstewart
dideler_ has quit [Ping timeout: 264 seconds]
blackgoat has quit [Quit: reboot]
benlieb has joined #ruby
Wolland_ has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
aspires has joined #ruby
Zebroid has joined #ruby
blackgoat has joined #ruby
chipotle has quit [Quit: cya]
marahin has joined #ruby
Photism has quit [Quit: Leaving]
<marahin> Hey guys. I want to create a tool that gets all the hostnames that appear in my LAN (maybe scans the network through the 192.168.0.100-.255, and then for those that are up - asks for hostname?) and prints them out
<marahin> a) is it possible b) how do i do that
DanielRb has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
DanielRb has joined #ruby
chipotle has joined #ruby
Wolland has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
dideler_ has joined #ruby
<Radar> marahin: use nmap
DanielRb has quit [Ping timeout: 248 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit []
<marahin> Radar: that's a good advice, thank you
<marahin> but, well, what if I still want to use the results of the scan in Ruby?
<marahin> is there any library for Ruby that allows you to use nmap functions inside the script?
<Radar> marahin: system("nmap ...")
<marahin> that's eval
andrewjanssen has joined #ruby
<marahin> https://github.com/sophsec/ruby-nmap i was thinking about something like that
<Radar> yup
<Radar> Seems fine
<marahin> aye!
<marahin> Radar: again thank you for your advice!
<Radar> np
aspires has quit []
Steve21 has joined #ruby
fgo has joined #ruby
<sent-hil> shevy: thanks
DanielRb has joined #ruby
<sent-hil> _ its
<sent-hil> *it is
brandonjmckay has quit [Quit: Leaving.]
topdownjimmy has left #ruby ["leaving"]
try has quit [Ping timeout: 240 seconds]
<Steve21> Hey. Anyone willing to give this app a little testing? Its a ruby based app that allows you to get remidners for github issues. just looking for some people to test out syntax let me know if it makes sense: https://github.com/StephenOTT/GitHub-Reminders
asteve has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
mgberlin has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
atal421_ has joined #ruby
<atal421_> can anyone recommend a langauge parser written in ruby?
robustus has joined #ruby
St_Marx has joined #ruby
mgberlin has quit [Remote host closed the connection]
DanielRb has quit [Ping timeout: 260 seconds]
mgberlin has joined #ruby
aniM has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
agent_white has joined #ruby
<agent_white> Ello everyone
oo_ has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 272 seconds]
thumpba has quit [Ping timeout: 244 seconds]
<Steve21> hi
nfk has quit [Quit: yawn]
DanielRb has joined #ruby
oo_ has joined #ruby
sleepee has quit [Quit: Leaving]
dc has joined #ruby
Asher has joined #ruby
abdulsattar has quit [Ping timeout: 260 seconds]
benzrf|offline is now known as benzrf
chrishough has joined #ruby
<gr33n7007h> marahin, maybe something like this https://gist.github.com/anonymous/f6bfcfb91897e4524f4b
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanielRb has quit [Ping timeout: 264 seconds]
Zenigor has joined #ruby
DanielRb has joined #ruby
djbkd has quit [Remote host closed the connection]
aspires has joined #ruby
<marahin> gr33n7007h: thank you very much, it seems nice, but Resolv is failing it - it seems that NO machines in my LAN have names
Kilo`byte has quit [Ping timeout: 245 seconds]
<marahin> > Resolv.getname("192.168.0.1")
<marahin> Resolv::ResolvError: no name for 192.168.0.1
Azure_ has joined #ruby
<marahin> (and that is for whole .0 - .255 range :P
<marahin> .254* even
tokik has joined #ruby
benlieb has quit [Quit: benlieb]
jamto11 has joined #ruby
nicksanford has joined #ruby
<gr33n7007h> marahin, are you sure your subnet is using 192.168.0.0/24 not 192.168.1.0/24 or 192.168.23.0/24?
DanielRb has quit [Ping timeout: 255 seconds]
Azure has quit [Ping timeout: 248 seconds]
<marahin> gr33n7007h: yep
gilest has joined #ruby
Kilo`byte has joined #ruby
gilest has quit [Client Quit]
gilest has joined #ruby
gilest has quit [Remote host closed the connection]
<gr33n7007h> hmm... works here :p ones with no names come up as unknown on my network?
DanielRb has joined #ruby
<marahin> gr33n7007h: what OS are you using to run the command/
<marahin> ?*
<marahin> maybe libs are the issue
<gr33n7007h> marahin, debian linux
<marahin> osx here :V
jamto11 has quit [Ping timeout: 252 seconds]
<gr33n7007h> marahin, shouldn't make a difference tbh
<marahin> let me see then
kloeri has joined #ruby
Hanmac has joined #ruby
andrewjanssen has quit [Ping timeout: 240 seconds]
tus has quit []
machuga has left #ruby ["Textual IRC Client: www.textualapp.com"]
DanielRb has quit [Ping timeout: 240 seconds]
<marahin> well i have no idea why it isn't working
<marahin> nmap clearly shows me which hosts are up or down
<marahin> yet resolv doesn't tell me anything :'(
Hanmac1 has quit [Ping timeout: 240 seconds]
<gr33n7007h> marahin, give me a min
Steve21 has quit [Quit: Steve21]
<marahin> sure, no problem
havenwood has quit []
DanielRb has joined #ruby
Soda has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
Arkaniad has quit [Ping timeout: 240 seconds]
Nexus_x1 has quit [Quit: Computer has gone to sleep.]
<gr33n7007h> marahin, tried using sockets but to no avail :( whats your default gateway?
DanielRb has quit [Ping timeout: 272 seconds]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
agent_white has quit [Quit: bbl]
gilest has joined #ruby
gilest has quit [Client Quit]
DanielRb has joined #ruby
cpruitt has joined #ruby
aniM has joined #ruby
ClarusCogitatio has joined #ruby
wchun has quit [Quit: Leaving]
<marahin> gr33n7007h: unfortunately i've got to go
<marahin> but I really think that it's something wrong with Resolv lib
<marahin> cause *everything* else works, from arpa -a to nmap
<marahin> thank you for your time and answers though, i'll try to solve this out
<marahin> cheers and gnight
<gr33n7007h> marahin, ok np, probably is then if nothing is resolving :)
Shidash has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
DanielRb has quit [Ping timeout: 240 seconds]
Brando753 has quit [Remote host closed the connection]
charliesome has joined #ruby
DanielRb has joined #ruby
aniM has quit [Ping timeout: 260 seconds]
tmtwd has joined #ruby
Rollabunna has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
DanielRb has quit [Ping timeout: 244 seconds]
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
Error0x01 has joined #ruby
<gr33n7007h> marahin, this should work: https://gist.github.com/anonymous/bf0a8e8fbfb18aeb99a1 :)
DanielRb has joined #ruby
wchun has joined #ruby
Arkaniad has quit [Read error: Connection reset by peer]
<gr33n7007h> marahin, and rescue SocketError
bruno- has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
andrewjanssen has joined #ruby
fgo has joined #ruby
Azure_ is now known as Azure
s3ri0us has joined #ruby
jerius has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
<s3ri0us> Hi everyone. I've been using the static site generator middleman and I was hoping to get opinions on the possiblity of sending and recieving mail with only ruby installed on the server.
fgo has quit [Ping timeout: 240 seconds]
DanielRb has quit [Ping timeout: 240 seconds]
brunops has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
DanielRb has joined #ruby
atal421_ has quit [Remote host closed the connection]
aspires has quit []
brunops has joined #ruby
ashleah_ is now known as ashleah{K}
Avahey_ has quit [Quit: Connection closed for inactivity]
GriffinHeart has joined #ruby
aspires has joined #ruby
DanielRb has quit [Ping timeout: 272 seconds]
Valesk has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
aspires has quit [Client Quit]
aniM has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Remote host closed the connection]
DanielRb has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
aspires has joined #ruby
krz has joined #ruby
DanielRb has quit [Ping timeout: 255 seconds]
jerius has quit []
nickenchuggets has quit [Quit: nickenchuggets]
DanielRb has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
DanielRb has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
AlexRussia has joined #ruby
northfurr_ has joined #ruby
fgo has joined #ruby
northfurr has quit [Ping timeout: 252 seconds]
northfurr_ is now known as northfurr
yfeldblum has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
radic has joined #ruby
kp666 has quit [Ping timeout: 244 seconds]
kp666 has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
lw has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
yfeldblum has joined #ruby
r_rios has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
nanashiRei has quit [Read error: Connection reset by peer]
kaiserpathos has joined #ruby
charliesome has joined #ruby
Valesk has joined #ruby
chrishough has quit [Quit: chrishough]
aniM has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
bruno- has joined #ruby
kaiserpathos has quit [Client Quit]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
amargherio has quit [Remote host closed the connection]
charliesome_ has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 260 seconds]
charliesome has quit [Ping timeout: 248 seconds]
jaimef has quit [Ping timeout: 248 seconds]
AlexRussia has joined #ruby
dbu has quit [Ping timeout: 240 seconds]
dbu has joined #ruby
charliesome_ has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
mijicd has joined #ruby
fgo has quit [Remote host closed the connection]
dbu has quit [Ping timeout: 260 seconds]
dbu has joined #ruby
wallerdev has joined #ruby
jaimef has joined #ruby
fgo has joined #ruby
jamto11 has joined #ruby
pu22l3r has joined #ruby
dmyers has joined #ruby
DivineEntity has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
abdulsattar has joined #ruby
george2 is now known as george2_
george2_ is now known as george2
DivineEntity has quit [Client Quit]
DivineEntity has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
Steve21 has joined #ruby
egtann has joined #ruby
dh64 has joined #ruby
happytux has quit [Ping timeout: 248 seconds]
happytux_ has joined #ruby
tmtwd has joined #ruby
bluOxigen has joined #ruby
hakunin has quit []
CaptainJet has joined #ruby
Wolland has quit [Remote host closed the connection]
egtann has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
diegoviola has joined #ruby
djbkd has joined #ruby
kireevco has quit [Quit: Leaving.]
x1337807x has joined #ruby
s3ri0us has quit [Quit: Leaving...]
emergion has quit [Quit: Connection closed for inactivity]
razum2um has joined #ruby
osvimer has joined #ruby
Doc_IX has joined #ruby
Evixion` has joined #ruby
Wolland has joined #ruby
Evixion has quit [Ping timeout: 264 seconds]
Doc_X has quit [Ping timeout: 244 seconds]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DivineEntity has quit [Quit: Lost terminal]
pu22l3r has quit [Remote host closed the connection]
<Steve21> any one able to test: https://github.com/StephenOTT/GitHub-Reminders
<Steve21> give some feedback
kireevco has joined #ruby
Steve21 has quit [Quit: Steve21]
dmyers has left #ruby [#ruby]
mr_snowf1ake has joined #ruby
chrishough has joined #ruby
stytown has joined #ruby
GriffinHeart has joined #ruby
chrishough has quit [Client Quit]
charliesome has joined #ruby
diegoviola has quit [Ping timeout: 244 seconds]
benzine21 has joined #ruby
Doc_XI has joined #ruby
brandonjmckay has joined #ruby
GriffinHeart has quit [Ping timeout: 244 seconds]
charliesome has quit [Ping timeout: 240 seconds]
Doc_IX has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
_maes_ has joined #ruby
kireevco has quit [Quit: Leaving.]
Guest91429 has quit [Ping timeout: 244 seconds]
nanashiRei has joined #ruby
fgo has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
hakunin has joined #ruby
mgberlin_ has joined #ruby
davedev24_ has quit []
dfinly has joined #ruby
mgberlin has quit [Ping timeout: 260 seconds]
kith has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 272 seconds]
nickenchuggets has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
Evixion has joined #ruby
tmtwd has joined #ruby
Evixion` has quit [Ping timeout: 240 seconds]
osvimer has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
osvimer has joined #ruby
Takle has joined #ruby
djbkd has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
x1337807x has joined #ruby
oo_ has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
aniM has joined #ruby
banjara has quit [Client Quit]
Takle has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
dideler_ has quit [Ping timeout: 260 seconds]
hobodave has joined #ruby
bruno- has joined #ruby
IceDragon has quit [Quit: Space~~~]
alhoff has joined #ruby
Steve21 has joined #ruby
alhoff has left #ruby [#ruby]
alexju has joined #ruby
charliesome has joined #ruby
mgberlin_ has quit [Remote host closed the connection]
kalusn has joined #ruby
djbkd has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
lemur has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gr33n7007h has quit [Ping timeout: 244 seconds]
Steve21 has quit [Quit: Steve21]
timonv has joined #ruby
aniM has quit [Ping timeout: 248 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
dfinly has quit [Quit: Computer Sleeping, me sleeping]
mengu has joined #ruby
wildroman2 has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
abdulsattar has joined #ruby
dfinly has joined #ruby
nemski_ has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
timonv has quit [Remote host closed the connection]
Valesk has joined #ruby
kp666 has quit []
fgo has joined #ruby
cpruitt has quit [Quit: cpruitt]
garndt has quit [Quit: Connection closed for inactivity]
fgo has quit [Ping timeout: 252 seconds]
<nemski_> Since Timeout is still not reliable in Ruby 1.9/2.0 has anyone got any alternatives I can use?
nemski_ is now known as nemski
tagrudev has joined #ruby
heftig has quit [Quit: Quitting]
kalusn has quit [Read error: Connection reset by peer]
fgo has joined #ruby
kalusn has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
thesheff17 has quit [Read error: Connection reset by peer]
JasmeetQA has joined #ruby
brunops has quit [Ping timeout: 272 seconds]
brunops has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
johnmolina has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
vinleod has joined #ruby
Morkel has joined #ruby
brunops has quit [Disconnected by services]
fgo has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
CaptainJet has quit []
Cache_Money has quit [Quit: Cache_Money]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
brunops has joined #ruby
pu22l3r has quit [Remote host closed the connection]
zkay11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
tmtwd has quit [Ping timeout: 248 seconds]
stytown has quit [Quit: stytown]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
jamto11 has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
Vivekananda has quit [Ping timeout: 252 seconds]
speakingcode has joined #ruby
tobago has joined #ruby
PhilippeGeek has joined #ruby
ndrei has joined #ruby
northfurr has quit [Quit: northfurr]
lw has quit [Quit: s]
aniM has joined #ruby
bruno- has joined #ruby
kalusn has quit [Remote host closed the connection]
eka has quit [Ping timeout: 248 seconds]
apeiros has quit [Remote host closed the connection]
yfeldblum has joined #ruby
apeiros has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
hermanmu_ has joined #ruby
maxk has quit [Ping timeout: 264 seconds]
hermanmunster has quit [Read error: Connection reset by peer]
maxk has joined #ruby
aniM has quit [Ping timeout: 240 seconds]
bal has joined #ruby
aganov has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stytown has joined #ruby
oo_ has quit [Remote host closed the connection]
wildroman3 has joined #ruby
oo_ has joined #ruby
hermanmu_ has quit [Remote host closed the connection]
hermanmunster has joined #ruby
wildroman2 has quit [Ping timeout: 248 seconds]
aniM has joined #ruby
codycodee has joined #ruby
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
benzrf is now known as benzrf|offline
hermanmunster has quit [Ping timeout: 260 seconds]
hermanmunster has joined #ruby
<Hanmac> nemski: what is the problem with Timeout ? isnt it in stdlib ? http://www.ruby-doc.org/stdlib-2.1.2/libdoc/timeout/rdoc/index.html ?
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
anaeem1 has joined #ruby
wildroman3 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
alec-c4 has joined #ruby
bigkevmcd has joined #ruby
tacos1de has quit [Ping timeout: 264 seconds]
tacos1de has joined #ruby
apeiros has joined #ruby
wildroman2 has quit [Ping timeout: 264 seconds]
wildroman2 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
uresu has joined #ruby
robbyoconnor has joined #ruby
ponyflei1ch is now known as ponyfleisch
kwd has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
maletor has joined #ruby
codycodee has quit [Ping timeout: 246 seconds]
parzo has joined #ruby
relix has joined #ruby
stytown has quit [Quit: stytown]
parzo has quit [Client Quit]
mityaz has joined #ruby
blueOxigen has quit [Ping timeout: 252 seconds]
<nemski> Hanmac: https://coderwall.com/p/1novga < tends to not timeout my thread
<nemski> specifically hwen using MySQL
dfinly has quit [Quit: Farewell]
fantasticsid has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
fantasticsid has quit [Client Quit]
relix has quit [Remote host closed the connection]
aniM has quit [Ping timeout: 244 seconds]
fantasticsid has joined #ruby
mengu has quit [Remote host closed the connection]
klaut has joined #ruby
wildroman2 has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 272 seconds]
wildroman2 has joined #ruby
abdulsattar has joined #ruby
fantasticsid has quit [Client Quit]
unshadow has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jprovazn has joined #ruby
bruno- has joined #ruby
kiri has joined #ruby
tmtwd has joined #ruby
<Hanmac> nemski: have you ever considered that the mysql gem is the problem which is not thread-safe?
wildroman2 has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
greenarrow has joined #ruby
sk87 has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<nemski> ..
<nemski> fair enough
osvimer has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
osvimer has joined #ruby
yfeldblum has joined #ruby
johnmolina has quit []
claymore has joined #ruby
uresu has quit [Quit: uresu]
Guest59131 has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
Macaveli has quit [Killed (idoru (Spam is off topic on freenode.))]
dayepa has quit [Quit: dayepa]
nemski has quit [Ping timeout: 272 seconds]
JoshGlzBrk has joined #ruby
nemski has joined #ruby
sinkensabe has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest67852
timor has joined #ruby
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
jackneill has joined #ruby
kalusn has joined #ruby
papercode has joined #ruby
djbkd has quit [Remote host closed the connection]
charliesome has joined #ruby
<timor> I get an error in parslet which I cannot really explain. Made an example here: https://gist.github.com/anonymous/40be19eabb9eac145edf . Can anyone explain that to me?
abdulsattar_ has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
Wolland has quit [Remote host closed the connection]
nemski has quit [Ping timeout: 264 seconds]
olivier_bK has joined #ruby
olivier_bK has quit [Remote host closed the connection]
olivier_bK1 has joined #ruby
nemski has joined #ruby
abdulsattar has quit [Ping timeout: 252 seconds]
<tobiasvl> timor: rescue the error and print the parse tree
<tobiasvl> begin; Mini.new.body.parse "123 asd 123asd "; rescue Parslet::ParseFailed => error; puts error.cause.ascii_tree; end
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Soda has joined #ruby
<tagrudev> certaint1, yolo
fabrice31 has quit [Remote host closed the connection]
<timor> tobiasvl, updated gist with parse tree
fabrice31 has joined #ruby
Morkel_ has joined #ruby
fgo has quit [Remote host closed the connection]
<tobiasvl> timor: would you mind explaining your normal_word_char regex in english
alexju has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
linduxed has joined #ruby
<timor> tobiasvl, everything except whitespace, colons, semi-colons and opening and closing bracktes and braces
<tobiasvl> okay, the character class definition in a parslet regex is probably different then
kalusn has quit [Ping timeout: 255 seconds]
schaerli has joined #ruby
subraminion has joined #ruby
qba73 has joined #ruby
<timor> tobiasvl, meaning?
andrewlio has joined #ruby
schaerli has quit [Client Quit]
schaerli has joined #ruby
osvimer has quit [Quit: leaving]
bruno- has joined #ruby
Xeago has joined #ruby
tvw has joined #ruby
jamto11 has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
<timor> tobiasvl, i mean, different from what?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<tobiasvl> nevermind, it's not important
<tobiasvl> there's ambiguity somewhere, it tries to parse the word as an unsigned, but I'm not good enough with parslet to understand why unfortunately
<tobiasvl> maybe someone else (or the tiny crowd at #parslet) can help
bruno- has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 260 seconds]
subraminion has quit [Remote host closed the connection]
sk87 has joined #ruby
meinside has joined #ruby
subraminion has joined #ruby
tmtwd has joined #ruby
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
brunops has quit [Ping timeout: 255 seconds]
relix has joined #ruby
wildroman2 has joined #ruby
tobiasvl has quit [Quit: brb]
moritzschaefer has joined #ruby
brunops has joined #ruby
uresu has joined #ruby
hermanmunster has quit [Ping timeout: 248 seconds]
Darkchaos has joined #ruby
sdouglas has quit [Remote host closed the connection]
iamjusthatdude has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
naw_ has quit [Ping timeout: 272 seconds]
naw has joined #ruby
timonv has joined #ruby
ephemerian has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar_ has quit [Ping timeout: 240 seconds]
benzine21 has quit [Remote host closed the connection]
fgo has joined #ruby
naw has quit [Ping timeout: 260 seconds]
MengHX has joined #ruby
tvl has joined #ruby
Poky has joined #ruby
ghr has joined #ruby
yacks has joined #ruby
hefest has joined #ruby
blueOxigen has joined #ruby
mengu has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
naw has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
tvl is now known as tobiasvl
Takle has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<hefest> any of you using tab to insert two spaces instead of tab character?
r_rios has quit [Ping timeout: 260 seconds]
<sevenseacat> yes
<hefest> i can't make joe editor do it
dayepa has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
<wasamasa> my editor interprets the tab key as "Indent this line as appropriate"
<wasamasa> I've grown to like it
nicksanf_ has joined #ruby
<hefest> wasamasa: you mean as the rest of the code is indented?
nicksanford has quit [Read error: Connection reset by peer]
<wasamasa> hefest: well, it takes the other code around it in account
<hefest> wasamasa: which editor is that?
<wasamasa> hefest: so if the indentation doesn't go right, it's either the package's fault that set it up or my fault and there's a syntax error somewhere
<wasamasa> emacs
<wasamasa> what else
<hefest> vim? joe? pico? sublime_text?
<wasamasa> I used to use vim :P
<wasamasa> and before that nano
<hefest> im sucker for joe, for 20 years
<wasamasa> heck, I bothered teaching it syntax highlighting
<sevenseacat> i use sublime text and i <3 it.
<wasamasa> I don't particularly get what excites people about light table or atom
Joulse has joined #ruby
cjk101010_ is now known as cjk101010
<hefest> using spaces instead of tab doesn't look like smart idea
* wasamasa just uses what the style guides or projects dictate
<wasamasa> it's that simple
<hefest> if editor can figure it out
<wasamasa> sometimes there's not even the need for the editor to do it
<hefest> but basically you are using tab key on your keyboard for indentation
<wasamasa> if they just provide a formatting tool
<sevenseacat> i dont give a crap whether people use spaces or tabs, as long as theyre consistent about it
joonty has joined #ruby
einarj has joined #ruby
<wasamasa> see golang, clang-format, ...
<sevenseacat> having files that are half-half are irritating
<wasamasa> sevenseacat: true, just like half of the file having trailing spaces and the other one not
<sevenseacat> there is a special place in hell for people who leave trailing spaces
<wasamasa> if it were the whole file I could sort of understand
<wasamasa> but if it's just the places some newbie on the team has edited...
Takle has quit [Remote host closed the connection]
abdulsattar_ has joined #ruby
dangerousdave has joined #ruby
einarj has quit [Client Quit]
einarj has joined #ruby
<wasamasa> worse is if someone feels entitled to do commits consisting of nothing but whitespace corrections :P
<unshadow> When creating a 'big' (1000+ lines) program, should I keep it all in a single class with many methods, or multiple classes? , when should I split the code to other classes ?
<wasamasa> once decoupling makes sense I guess
<wasamasa> you'll want to avoid circular imports
<unshadow> what do you mean by "circular imports" ?
mehlah has joined #ruby
Takle has joined #ruby
TakumoKatekari is now known as Takumo
<wasamasa> well, if you have modules requiring each other
<unshadow> haaa ok
sungai_keruh has joined #ruby
<wasamasa> it can work, but people tend to avoid it
Soda has quit [Remote host closed the connection]
ARM9 has joined #ruby
<wasamasa> so if you're splitting things up that it happens, you're probably overdoing it :P
<unshadow> another question, when I 'require', is it class specific or is it for the whole coding written beneath it ?
<ARM9> what's a good place to actually learn ruby
nfk has joined #ruby
<ARM9> I went through tryruby.org and that was utter rubbish
<sevenseacat> yeah i didnt think much of tryruby either
<ARM9> typical guide your hand shit that doesn't explain why or how things are the way they are
<ARM9> also using incorrect terminologies and is just plain wrong in places
<sevenseacat> well no, to that part
marr has joined #ruby
<sevenseacat> i dont recall it being flat-out wrong
<wasamasa> unshadow: lol, I have that book next to me
<ARM9> unshadow, I'll look into it, cheers
<unshadow> :)
<wasamasa> unshadow: like the writing style despite the author going over the top at times
<sevenseacat> i keep wanting to push that pine book onto my partner but he doesnt want to learn to program >_>
<unshadow> I tried also "why's poignant guide to ruby... it was too ...wierd hahaha
<wasamasa> ^
<wasamasa> I think I'll get the pickaxe next
Takle has quit [Remote host closed the connection]
_Andres has joined #ruby
fgo has joined #ruby
timonv has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<wasamasa> mhh, rubocop is nice
LekeFly has joined #ruby
bruno- has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
fgo has quit [Ping timeout: 272 seconds]
rdark has joined #ruby
doev has joined #ruby
alem0lars has quit [Quit: Going AFK...]
bruno- has quit [Ping timeout: 260 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
obs has joined #ruby
bruno- has joined #ruby
fantasticsid has joined #ruby
moritzschaefer has quit [Quit: Verlassend]
schaerli has quit [Remote host closed the connection]
sigurding has joined #ruby
schaerli has joined #ruby
kaspergr_ has joined #ruby
Zebroid has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
yfeldblum has joined #ruby
subraminion has joined #ruby
<hefest> wasamasa: so joe editor indeed can insert arbitrary number of spaces instead of tab char on tab key press
alex88 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<wasamasa> hefest: that's what I expect any halfway-decent editor to be able of
mengu has quit [Remote host closed the connection]
timonv has joined #ruby
wildroman2 has quit [Read error: No route to host]
wildroman2 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
abdulsattar_ has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
schaerli has quit [Remote host closed the connection]
ndrei has joined #ruby
schaerli has joined #ruby
dANOKELOFF has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
AlSquire has joined #ruby
ferr has quit [Quit: Konversation terminated!]
sevenseacat has quit [Quit: Leaving.]
alem0lars has joined #ruby
<fantasticsid> Hi, does Ruby have anything similar to apache storm? I'm trying to find something similar but more lightweight, preferrably within Ruby ecosystem, to do some data analysis (pulling data from several sources and do some aggregation/transformation, and then store it somehwere in a data sink)?
wildroman2 has quit [Remote host closed the connection]
<unshadow> what does the "!" means after calling a methoud ? like in foo.run!
wildroman2 has joined #ruby
<mozzarella> unshadow: it's part of the method name
<unshadow> cool :)
<Hanmac> unshadow: compare "downcase" vs "downcase!" the first return a new object, the second one does change the object itself, and might return nil
postmodern has quit [Quit: Leaving]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<unshadow> I get it, so a = "Hi" , a.downcase! will results in puts a => hi, while b = a.downcase will not change a it self
<unshadow> right ?
wildroman3 has joined #ruby
wildroman3 has quit [Remote host closed the connection]
<Hanmac> yeah
sigurding has quit [Read error: Connection reset by peer]
wildroman2 has quit [Read error: No route to host]
<Jan_> unshadow: but that's just a naming guideline
wildroman3 has joined #ruby
<unshadow> Jan_: just going over this part "Be very careful - many smaller libraries don't follow this convention"
fgo has joined #ruby
<Jan_> example: ActiveRecord::Base#save vs save!
<Jan_> difference there is that save! raises an exception when the record is invalid, save won't
<Jan_> so, read the documentation of bang methods you use
Jan_ is now known as DefV
sigurding has joined #ruby
alem0lars has quit [Quit: Going AFK...]
alex88 has quit [Quit: Leaving...]
bal has quit [Quit: bal]
ndrei has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 255 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
bal has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
fantasti` has joined #ruby
doev has quit [Ping timeout: 264 seconds]
fantasticsid has quit [Ping timeout: 248 seconds]
anaeem___ has joined #ruby
ndrei has joined #ruby
Azure has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
anaeem1 has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
karupa is now known as zz_karupa
iwoeri has joined #ruby
oo_ has quit [Remote host closed the connection]
fantasti` has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 272 seconds]
MengHX has quit [Quit: Lingo - http://www.lingoirc.com]
oo_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Konversation terminated!]
alec-c4 has quit []
alec-c4 has joined #ruby
oo_ has quit [Remote host closed the connection]
jamto11 has joined #ruby
obs has joined #ruby
mehlah has quit [Quit: Leaving...]
anaeem___ has quit [Read error: Connection reset by peer]
Zebroid_ has joined #ruby
anaeem1_ has joined #ruby
alem0lars has joined #ruby
Takle has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 248 seconds]
jamto11 has quit [Ping timeout: 244 seconds]
tokik has quit [Ping timeout: 264 seconds]
LadyRainicorn has joined #ruby
asuka has joined #ruby
mehlah has joined #ruby
oo_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
alem0lars has quit [Quit: Going AFK...]
fgo has joined #ruby
Zebroid has joined #ruby
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Zebroid_ has quit [Ping timeout: 248 seconds]
Olipro has quit [Ping timeout: 246 seconds]
_Andres has joined #ruby
Lewix has joined #ruby
Zebroid has quit [Ping timeout: 272 seconds]
Burgestrand has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
sigurding has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
ferr has joined #ruby
doev has joined #ruby
fabrice31 has joined #ruby
buub has joined #ruby
lkba has joined #ruby
mikecmpbll has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
wildroman3 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Olipro has joined #ruby
fella5s has joined #ruby
Takle has quit [Remote host closed the connection]
shredding has joined #ruby
mengu has joined #ruby
ndrei has joined #ruby
wildroman2 has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
narcan has joined #ruby
Creeves has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
Creeves has joined #ruby
Olipro has quit [Read error: Connection reset by peer]
aep has quit [Ping timeout: 252 seconds]
certaint1 has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
Olipro has joined #ruby
certainty has joined #ruby
aep has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
RandyT has quit [Ping timeout: 264 seconds]
razieliyo has joined #ruby
ixti has joined #ruby
Takle has joined #ruby
eka has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
shredding has quit [Quit: shredding]
Zebroid has joined #ruby
andrewhl has quit [Quit: andrewhl]
RandyT has joined #ruby
alec-c4 has quit [Read error: Connection reset by peer]
maximski has joined #ruby
alec-c4 has joined #ruby
dumdedum has joined #ruby
pvb has quit [Read error: Connection reset by peer]
Zebroid_ has joined #ruby
alec-c4 has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
alec-c4_ has joined #ruby
wildroman2 has joined #ruby
Zebroid has quit [Ping timeout: 264 seconds]
nicksanf_ has quit [Remote host closed the connection]
alec-c4 has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
wildroman2 has quit [Read error: No route to host]
doev has quit [Ping timeout: 255 seconds]
wildroman2 has joined #ruby
alec-c4 has quit [Remote host closed the connection]
alec-c4_ has quit [Ping timeout: 255 seconds]
alec-c4 has joined #ruby
dumdedum has quit [Ping timeout: 272 seconds]
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
alem0lars has quit [Quit: Going AFK...]
pskosinski has joined #ruby
Joulse has quit [Quit: Joulse]
Zebroid_ has quit [Read error: Connection reset by peer]
timor_ has joined #ruby
Zebroid has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
Joulse has joined #ruby
jadedgnome has quit [Ping timeout: 244 seconds]
marr has quit []
timor has quit [Ping timeout: 260 seconds]
marr has joined #ruby
marr has quit [Client Quit]
LadyRainicorn has quit [Read error: Connection reset by peer]
Rainicorn has joined #ruby
oo_ has quit [Remote host closed the connection]
emergion has joined #ruby
Morkel has quit [Ping timeout: 244 seconds]
alec-c4 has quit [Remote host closed the connection]
brandonjmckay has joined #ruby
brandonjmckay has quit [Client Quit]
alec-c4 has joined #ruby
Morkel has joined #ruby
<Hanmac> hey ruby folks, working in a script engine stuff ... have a recrusion-problem ... features add states (auto_states) but states should have features too (features are a generic word for anything like add still, raise levels etc) as you can see there is a problem that features does call states, but states does call features too ... is some one intererested to look at my code for that? i currently have no good idea for fixing that
vifino has joined #ruby
yfeldblum has joined #ruby
K3dare has quit [Read error: No route to host]
alec-c4_ has joined #ruby
alec-c4 has quit [Remote host closed the connection]
ferr has quit [Remote host closed the connection]
oo_ has joined #ruby
davedev24_ has quit []
dumdedum has joined #ruby
timmee has joined #ruby
K3dare has joined #ruby
alec-c4_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
sigurding has joined #ruby
oo_ has joined #ruby
obs_ has joined #ruby
jadedgnome has joined #ruby
obs_ has quit [Client Quit]
Veidit has quit [Remote host closed the connection]
obs_ has joined #ruby
Joulse has quit [Quit: Joulse]
obs has quit [Ping timeout: 264 seconds]
dANOKELOFF has joined #ruby
klaut has quit [Remote host closed the connection]
phinfonet has joined #ruby
obs_ has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
Joulse has joined #ruby
bruno-_ has joined #ruby
DaniG2k has joined #ruby
abdulsattar has joined #ruby
Shidash has joined #ruby
r_rios has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
Guest86375 has quit [Changing host]
Guest86375 has joined #ruby
davedev24_ has joined #ruby
nemski has left #ruby [#ruby]
wald0 has joined #ruby
klaut has joined #ruby
himsin has joined #ruby
Zebroid has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
mijicd has quit [Remote host closed the connection]
timmee has quit [Ping timeout: 246 seconds]
<razum2um> is there anywhere source code of eval.in?
jottr_ has joined #ruby
sputnik13 has joined #ruby
sungai_keruh has quit [Quit: Leaving]
jottr has quit [Ping timeout: 240 seconds]
Photism has joined #ruby
Takle has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<wasamasa> I'd mail its author
alem0lars has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
jespada has quit [Quit: Leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
ldnunes has joined #ruby
marr has joined #ruby
bruno-_ has quit [Ping timeout: 248 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
mengu has quit [Read error: No route to host]
mengu__ has joined #ruby
jamto11 has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Symbiosisz has quit [Quit: Leaving]
Symbiosisz has joined #ruby
<razum2um> wasamasa: i'd like to add clojure if it's possible
<razum2um> wasamasa: could be actually any jvm language
RaCx has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Ping timeout: 240 seconds]
<wasamasa> as I'v said, mail its author :P
<Hanmac> razum2um: you mean you want add something so it can be required in evalin ? or the bot? i dont know if that is liked ...
<Hanmac> first it need to fix something about stdlib
sigurding has quit [Quit: sigurding]
brian___ has joined #ruby
relix has joined #ruby
<Cork> is there a way to get the exist status from the the instance returned from IO.popen?
parduse has joined #ruby
<Cork> or do i have to cache the $? variable?
Aryasam has joined #ruby
tokik has joined #ruby
craigp has joined #ruby
abdulsattar has quit [Ping timeout: 248 seconds]
anaeem1_ has quit [Remote host closed the connection]
sigurding has joined #ruby
maximski has quit [Ping timeout: 244 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
maximski has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
subraminion has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
mconnolly has joined #ruby
ARM9 has quit [Quit: Leaving]
diegoviola has joined #ruby
mattstratton has joined #ruby
tesaf has joined #ruby
lw has joined #ruby
Darryl has joined #ruby
mattstratton has quit [Client Quit]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
LadyRainicorn has joined #ruby
sk87 has joined #ruby
mconnolly has quit [Quit: mconnolly]
mconnolly has joined #ruby
ndrei has joined #ruby
LiohAu has joined #ruby
mconnolly has quit [Client Quit]
Rainicorn has quit [Ping timeout: 272 seconds]
mconnolly has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
akshay_kumar has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
GriffinH_ has joined #ruby
anisha has joined #ruby
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
Shidash has quit [Quit: Leaving.]
paulfm has joined #ruby
s2013 has joined #ruby
spider-mario has joined #ruby
lw has quit [Quit: s]
oo_ has quit [Remote host closed the connection]
buub has quit [Ping timeout: 255 seconds]
r_rios has quit [Remote host closed the connection]
oo_ has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
r_rios has joined #ruby
nicksanford has joined #ruby
brian___ has quit [Quit: brian___]
himsin has quit [Quit: himsin]
p0sixpscl has joined #ruby
LekeFly has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
Mattttt_ has joined #ruby
garndt has joined #ruby
timonv has quit [Remote host closed the connection]
bruno- has joined #ruby
ferr has joined #ruby
timonv has joined #ruby
buub has joined #ruby
nicksanford has quit [Remote host closed the connection]
buub has quit [Client Quit]
p0sixpscl has quit [Ping timeout: 252 seconds]
sumark has quit [Remote host closed the connection]
Mattttt_ has quit [Remote host closed the connection]
sumark has joined #ruby
timonv_ has joined #ruby
buub has joined #ruby
timonv has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 248 seconds]
northfurr has joined #ruby
Takle has quit [Remote host closed the connection]
maximski has quit [Ping timeout: 260 seconds]
fgo has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mengu__ has quit []
lxsameer has quit [Quit: Leaving]
sdouglas has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
Alina-malina has quit [Ping timeout: 248 seconds]
Alina-malina has joined #ruby
krz has joined #ruby
fgo has joined #ruby
Takle has joined #ruby
sdouglas has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
momomomomo has quit [Remote host closed the connection]
diegoviola has joined #ruby
nicksanford has joined #ruby
s2013 has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
pyreal has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
wildroman2 has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
diegoviola has quit [Ping timeout: 255 seconds]
wildroman2 has quit [Read error: No route to host]
wildroman2 has joined #ruby
alem0lars has quit [Quit: Going AFK...]
qba73 has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
qba73 has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
akshay_kumar has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
pu22l3r has joined #ruby
machuga has joined #ruby
diegoviola has joined #ruby
alem0lars has joined #ruby
exgf has joined #ruby
Aryasam has joined #ruby
DaniG2k has quit [Quit: leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cool has joined #ruby
pu22l3r has quit [Remote host closed the connection]
cool has quit [Changing host]
cool has joined #ruby
cool has joined #ruby
cool has quit [Changing host]
pu22l3r has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
dblessing has joined #ruby
phutchins has joined #ruby
yfeldblum has joined #ruby
mr_foobar_baz has joined #ruby
machuga has left #ruby ["Textual IRC Client: www.textualapp.com"]
Soda has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
<mr_foobar_baz> Is there a ruby email notification daemon? You know, an icon sitting in your statusbar that informs you when you get emails
IceDragon has joined #ruby
mconnolly has quit [Quit: mconnolly]
yfeldblum has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 248 seconds]
mconnolly has joined #ruby
<mr_foobar_baz> This looks promising, I'll try that... https://github.com/nuisanceofcats/catfriend
Guest55034 has quit [Ping timeout: 255 seconds]
ta has joined #ruby
alem0lars has quit [Quit: Going AFK...]
Zenigor has joined #ruby
_Andres has joined #ruby
keen_ has quit [Ping timeout: 248 seconds]
obs has joined #ruby
Shidash has joined #ruby
fgo has joined #ruby
northfurr has quit [Quit: northfurr]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Caius has joined #ruby
workmad3 has joined #ruby
nicksanford has quit [Remote host closed the connection]
RaCx has joined #ruby
RaCx_ has joined #ruby
inukshuk_ is now known as inukshuk
obs_ has joined #ruby
ltd has joined #ruby
RaCx has quit [Ping timeout: 244 seconds]
RaCx_ is now known as RaCx
timonv_ has quit [Remote host closed the connection]
obs has quit [Ping timeout: 255 seconds]
sk87 has joined #ruby
jerius has joined #ruby
Takle has quit [Remote host closed the connection]
qba73 has quit []
qba73 has joined #ruby
obs_ has quit [Ping timeout: 260 seconds]
keen_ has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
obs has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
klaut_ has joined #ruby
diegoviola has joined #ruby
klaut has quit [Ping timeout: 248 seconds]
chp has joined #ruby
subraminion has joined #ruby
codabrink has joined #ruby
<chp> crazy question guys, would it be insane if i asked a python question in here?
<apeiros> it'd be relatively pointless
<chp> yall ruby folks have such a good reputation of friendly-ness and such
<chp> ;)
subraminion has quit [Remote host closed the connection]
<wasamasa> chp: feel free
<apeiros> there's #python for python questions
<chp> i got a cold sore in #python
alexju has joined #ruby
aniM has joined #ruby
subraminion has joined #ruby
<wasamasa> though I'm not sure I'm friendlier than the folk on #python
<chp> why does telnetlib work sometimes ;) its very frustrating
freggles has joined #ruby
paulfm has quit [Ping timeout: 260 seconds]
<chp> a script that works one day suddenly misbehaves the next
<wasamasa> networks
<chp> lol
<wasamasa> how do they even work
* chp will kill any dev blaming the network
Kalinakov has joined #ruby
<wasamasa> what, haven't you heard about CAP?
<chp> hah
<chp> lets hear it
<chp> im a network engineer that plays w python so be careful ;)
<wasamasa> or read the "Call me maybe" series?
<wasamasa> I've got way too many unreadable backtraces in python thanks to the network being bonkers
paulfm has joined #ruby
timonv has joined #ruby
<wasamasa> one of the phenomenons this blog series mentions is that it's pretty hard to figure out whether something timed out or you have no network access at all
itsfortybelow has joined #ruby
<chp> so
<chp> i am the network guy
<chp> its not the network
<chp> but i appreciate the insight
<chp> any idea on troubleshooting the telnetlib ?
Aryasam has quit [Ping timeout: 244 seconds]
petems has quit [Read error: Connection reset by peer]
luksaur has joined #ruby
<wasamasa> don't worry, not even microsoft, hp or google are safe from outages
djcp has joined #ruby
djcp has left #ruby [#ruby]
chp has left #ruby [#ruby]
<wasamasa> lol
dangerou_ has joined #ruby
dangerou_ has quit [Max SendQ exceeded]
<wasamasa> seriously, what the heck was he thinking asking such a question on here
alem0lars has joined #ruby
dangerou_ has joined #ruby
dangerou_ has quit [Max SendQ exceeded]
Takle has joined #ruby
<olivier_bK1> i have a littel probleme when i try to test if my variable start with Résumé i get an error
<olivier_bK1> if info.start_with?('Résumé')
<olivier_bK1> but when i try with no accent everything doing fine
asuka has quit []
dangerou_ has joined #ruby
dangerou_ has quit [Max SendQ exceeded]
freggles has quit [Remote host closed the connection]
<wasamasa> >> if "".start_with?('Résumé') puts 'Yay'
<eval-in> wasamasa => /tmp/execpad-01c05ff16b66/source-01c05ff16b66:2: syntax error, unexpected tIDENTIFIER, expecting keyword_then or ';' or '\n' ... (https://eval.in/168056)
<wasamasa> >> if "".start_with?('Résumé') then puts 'Yay'
<eval-in> wasamasa => /tmp/execpad-3131b226e0c9/source-3131b226e0c9:3: syntax error, unexpected keyword_rescue, expecting keyword_end ... (https://eval.in/168057)
Channel6 has joined #ruby
<wasamasa> >> if "".start_with?('Résumé') then puts 'Yay' end
<eval-in> wasamasa => nil (https://eval.in/168058)
dangerou_ has joined #ruby
dangerou_ has quit [Max SendQ exceeded]
<wasamasa> >> if 'Résumé'.start_with?('Résumé') then puts 'Yay'
<eval-in> wasamasa => /tmp/execpad-de1bbbe26bfe/source-de1bbbe26bfe:3: syntax error, unexpected keyword_rescue, expecting keyword_end ... (https://eval.in/168059)
<bmurt> looks like it doesn't like you wasamasa
<wasamasa> hmm
<wasamasa> olivier_bK1: as always, post your error message
<olivier_bK1> ok
dangerou_ has joined #ruby
<wasamasa> since the bot seems to be a bit wonky?
dangerou_ has quit [Max SendQ exceeded]
<bmurt> >> if 'Resume'.start_with?('Resume') then puts 'Yay'
<eval-in> bmurt => /tmp/execpad-9428a1fc5562/source-9428a1fc5562:3: syntax error, unexpected keyword_rescue, expecting keyword_end ... (https://eval.in/168060)
dangerousdave has quit [Ping timeout: 264 seconds]
freggles has joined #ruby
<olivier_bK1> if you try with no accent is good
dangerousdave has joined #ruby
<bmurt> should it be double quotes?
dangerousdave has quit [Max SendQ exceeded]
mjsmith2 has joined #ruby
<wasamasa> no, it works fine in my irb with single quotes
Kalinakov has left #ruby ["Leaving"]
diegoviola has quit [Quit: WeeChat 0.4.3]
<olivier_bK1> ??
emergion has quit [Quit: Connection closed for inactivity]
dangerousdave has joined #ruby
<olivier_bK1> with accent
pp_ has joined #ruby
<wasamasa> >> info = 'Résumé'; puts 'Yay' if info.start_with?('Résumé')
<eval-in> wasamasa => Yay ... (https://eval.in/168069)
ppinto has joined #ruby
<olivier_bK1> that's really weird
<Hanmac> >> if "".start_with?('Résumé')then puts 'Yay' end
<eval-in> Hanmac => nil (https://eval.in/168072)
volk_ has joined #ruby
<Hanmac> olivier_bK1: show us more of your code, maybe then we might find your syntax error
centrx has joined #ruby
mgberlin has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
TheLarkInn has joined #ruby
autonomousdev has joined #ruby
uresu has quit [Quit: uresu]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mattstratton has joined #ruby
jamto11 has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
nfk has quit [Ping timeout: 255 seconds]
uresu has joined #ruby
nicksanford has joined #ruby
tokik has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
aniM has quit [Ping timeout: 255 seconds]
nicksanf_ has joined #ruby
unshadow has quit [Quit: leaving]
jamto11 has quit [Ping timeout: 255 seconds]
zebrarage has joined #ruby
centrx has joined #ruby
robertodecurnex has joined #ruby
sunya7a has joined #ruby
mikesplain has joined #ruby
St_Marx has joined #ruby
nicksanford has quit [Ping timeout: 255 seconds]
LexicalScope has joined #ruby
LexicalScope has joined #ruby
nicksanf_ has quit [Remote host closed the connection]
subraminion has quit [Quit: Computer has gone to sleep.]
subraminion has joined #ruby
momomomomo has joined #ruby
aniM has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
jamto11 has joined #ruby
ndrei has joined #ruby
eka has joined #ruby
RaCx has joined #ruby
yfeldblum has joined #ruby
Channel6 has quit [Quit: Leaving]
paf0 has joined #ruby
mgberlin has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
s2013 has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
yfeldblu_ has joined #ruby
mikesplain has quit []
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
jhass|off is now known as jhass
Takle has quit [Remote host closed the connection]
freerobby has joined #ruby
dangerousdave has joined #ruby
yfeldbl__ has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
yfeldblum has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
mikesplain has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
abdulsattar has joined #ruby
pskosinski has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
timor_ has quit [Quit: Leaving]
torstein has joined #ruby
endash has joined #ruby
pskosinski has joined #ruby
yfeldblu_ has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
alem0lars has quit [Quit: Going AFK...]
yfeldbl__ has quit [Ping timeout: 244 seconds]
obscured has joined #ruby
lw has joined #ruby
diegoviola has joined #ruby
Zai00 has joined #ruby
snath has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
alem0lars has joined #ruby
uresu has quit [Quit: uresu]
uresu has joined #ruby
pyreal has left #ruby [#ruby]
mr_foobar_baz has quit [Quit: WeeChat 0.3.8]
Takle has quit [Remote host closed the connection]
ffranz has joined #ruby
FL1SK has joined #ruby
lemur has joined #ruby
yacks has joined #ruby
ylluminate has quit [Quit: Bye!]
ylluminate has joined #ruby
mjc__ is now known as mjc_
yfeldblum has joined #ruby
Fire-Dragon-DoL has joined #ruby
tagrudev has quit [Remote host closed the connection]
subraminion has quit [Quit: Computer has gone to sleep.]
paf0 has quit []
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
buub has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
buub has joined #ruby
yfeldblum has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
thesheff17 has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
RaCx has quit [Quit: Computer has gone to sleep.]
hy2guru_ has joined #ruby
asteve has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
RaCx has joined #ruby
aniM has quit [Ping timeout: 272 seconds]
hamakn has quit [Remote host closed the connection]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
lxsameer has joined #ruby
CaptainJet has joined #ruby
alem0lars has quit [Quit: Going AFK...]
hamakn has joined #ruby
maasha has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
keen_ has left #ruby ["Killed buffer"]
hamakn has quit [Read error: Connection reset by peer]
jzigmund_ is now known as jzigmund
hamakn_ has joined #ruby
orionstein_away is now known as orionstein
sigurding has quit [Quit: sigurding]
alem0lars has joined #ruby
DaniG2k has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
RaCx has quit [Ping timeout: 248 seconds]
hamakn has joined #ruby
sdouglas has joined #ruby
<maasha> Hey, I am writing a gem using Bundler::GemHelper.install_tasks. I am trying to figure out how to best organize code on GitHub where I only have a master branch, but I also want a dev branch?
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<jhass> maasha: google git flow
<maasha> so what is the conventional way?
<jhass> yeah, that one
<jhass> there are one or two git helpers for that
<ericwood> the git-flow model works pretty well, although I don't use the actual tool
Hanmac1 has joined #ruby
<ericwood> but in general it's nice to have "namespaces" for your branches
<ericwood> for example here we have tons of branches, so the names are very meaningful
<ericwood> there's a release namespace, private, feature, bug, etc.
sdouglas has quit [Ping timeout: 260 seconds]
jprovazn has quit [Quit: Leaving]
<ericwood> granted, we are not a posterchild for good organization :P
treehug88 has joined #ruby
Joulse has quit [Quit: Joulse]
<maasha> ok, I just need something simple. I'll give this a read on the train. cheers.
geggam has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
anaeem1 has joined #ruby
brandonjmckay has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
Takle has quit [Remote host closed the connection]
Mattttt_ has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
bartdorsey has joined #ruby
zapho53 has joined #ruby
hefest has quit [Quit: leaving]
maestrojed has joined #ruby
mr_foobar_baz has joined #ruby
hobodave has joined #ruby
<zapho53> Upgrading from 2.1.1 to 2.1.2, is there an easy way I can avoid re-installing all gems, ie. copy old ones over including docs?
zz_jrhorn424 is now known as jrhorn424
<jhass> zapho53: don't use rvm :P
<zapho53> I'm not using rbenv or rvm
<apeiros> zapho53: *use* rvm :-P
<jhass> then why would you need to reinstall anything?
Mikalv is now known as meeh2
<apeiros> (`rvm upgrade` copies all gems)
<zapho53> I never liked how rvm messes with the shell/env
<apeiros> jhass: why do you think you'd have to reinstall all gems with rvm? that's plain FUD.
Brando753 has joined #ruby
<zapho53> I used rbenv before
<jhass> didn't know upgrade, shame on me
Takle has joined #ruby
<jhass> but as said, your GEM_HOME shouldn't change with that upgrade
<apeiros> I usually reinstall the gems, though. gets me new versions and all :)
anisha has quit [Quit: Leaving]
<ericwood> I want the fresh shit
<pipework> The freshest shit there is.
Joulse has joined #ruby
Mattttt_ has quit [Remote host closed the connection]
<ericwood> that said, chruby and ruby-install have been awesome to me
<ericwood> I harbor no hatred for rvm, though
bal has quit [Quit: bal]
apeiros has quit [Remote host closed the connection]
<zapho53> jhass: GEM_HOME is specific to rvm, no?
kwd has quit [Quit: kwd]
tmtwd has joined #ruby
<jhass> not at all
<havenwood> zapho53: nope
<havenwood> zapho53: Ruby
<jhass> rvm sets it as part of its magic, but it's a ruby/rubygems feature
apeiros has joined #ruby
<zapho53> havenwood: So, just as with .m2 in Clojure, vanilla Ruby keeps the gems in a separate location?
<zapho53> Just what I want
sunya7a_ has joined #ruby
<zapho53> havenwood: Does it need to be specified prior to installation?
mijicd has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
maestrojed has quit [Quit: Computer has gone to sleep.]
sunya7a has quit [Ping timeout: 248 seconds]
sk87 has joined #ruby
yeticry_ has quit [Ping timeout: 252 seconds]
<havenwood> zapho53: nope
mrjensen has joined #ruby
pskosinski has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
phutchin1 has joined #ruby
<zapho53> havenwood: Contents of GEM_HOME are retained when Ruby is upgraded (without rbenv or rvm)? What about gem docs?
Soda has quit [Remote host closed the connection]
craigp has quit []
yeticry has joined #ruby
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
Rainicorn has quit [Read error: Connection reset by peer]
brandonjmckay has quit [Ping timeout: 255 seconds]
LadyRainicorn has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
sunya7a has joined #ruby
<havenwood> zapho53: gems can be shared between modern Rubies with the same MINOR version or older Rubies with same PATCH version
brandonjmckay has joined #ruby
<havenwood> zapho53: this will get a little easier to talk about when 1.9.3 is retired in 6mo :)
<havenwood> zapho53: check out this ticket for some more info: https://github.com/postmodern/chruby/issues/235
Rainicorn has joined #ruby
<havenwood> s/same PATCH/same TEENY
sunya7a_ has quit [Ping timeout: 252 seconds]
<havenwood> anyways, can share gems between patch versions of same ruby
mijicd has quit [Remote host closed the connection]
<slash_nick> :) is teeny a technical term now?!
<ericwood> always has been!
nfk has joined #ruby
rubco has joined #ruby
<slash_nick> well it's a damned silly one and i move we strike it from the manual
sunya7a has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
* slash_nick goes away because he can't be taken seriously
<rubco> Hello, I would like to render a string : "\t" , not a tab but really "\" then "t". However ruby escapes it with another "\". It renders : "\\t". How could I render the unescaped version of this string ?
Xeago has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
kaiserpathos has joined #ruby
fabrice31 has joined #ruby
Xeago has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick> >> puts "\\t"
<eval-in> slash_nick => \t ... (https://eval.in/168142)
<havenwood> rubco: render as in print? :p
Hanmac has joined #ruby
<jhass> >> puts '\t'
<eval-in> jhass => \t ... (https://eval.in/168143)
<rubco> in a print, or, in my case, after a .to_json call ...
<canton7> rubco, many people get caught up on it. "\t" is a tab character (chr 9). 'p' will render it as '\t', while 'puts' will render it as a tab
Hanmac1 has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
aganov has quit [Remote host closed the connection]
tmtwd has quit [Remote host closed the connection]
<canton7> note that when irb prints stuff out (e.g. you type a variable name on its own), it uses the equivalent of 'p'
alec-c4 has joined #ruby
codabrink has quit [Ping timeout: 248 seconds]
<jhass> rubco: how are you outputting the resulting json?
<slash_nick> >> [92,116].map(&:chr).join("")
<eval-in> slash_nick => "\\t" (https://eval.in/168144)
alem0lars has quit [Quit: Going AFK...]
<slash_nick> aw
MrDoctor has joined #ruby
LexicalScope has quit [Ping timeout: 272 seconds]
<rubco> jhass: I use the activemodel serializer gem (a wrapper for to_json)
<canton7> rubco, that will produce a string. how are you printing that string?
<jhass> that sounds like an answer to "how do you generate the json"
eka has quit [Ping timeout: 264 seconds]
<canton7> i.e. what are you using to see what the contents of that string are?
enebo has joined #ruby
<rubco> well, via 'render', but its related to Rails
<rubco> render json: @object
fabrice31 has quit [Ping timeout: 248 seconds]
<jhass> still, how do you view the result?
<canton7> so in the browser you're getting a literal '\\t'?
codabrink has joined #ruby
axl_ has joined #ruby
<rubco> yes the browser and curl return '\\t'
<jhass> well, then likely that's what's in your data
eka has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
<rubco> the database contains '\t' :D
marcellu1 has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
marcellu1 is now known as brugidou
mattstratton has joined #ruby
stytown has joined #ruby
Takle has quit [Remote host closed the connection]
Rainicorn has quit [Ping timeout: 264 seconds]
<MrDoctor> I want to be able to expose a rest API for my ruby app
Rainicorn has joined #ruby
<MrDoctor> In what ways I can acheive it?
etqqkoiflwhb has joined #ruby
etqqkoiflwhb has quit [Client Quit]
<MrDoctor> achieve*
stytown has quit [Client Quit]
brandonjmckay has left #ruby [#ruby]
abdulsattar has quit [Ping timeout: 264 seconds]
acrussell has joined #ruby
LadyR has joined #ruby
<havenwood> rubco: ah, that kind of render = #rubyonrails
acrussell has left #ruby [#ruby]
IceDragon has quit [Ping timeout: 264 seconds]
<havenwood> MrDoctor: A Rack app would be a popular solution. Maybe Sinatra or Hobbit for something simple. Or Grape.
RaCx has joined #ruby
troyready has joined #ruby
moted has quit [Read error: No route to host]
asteve has left #ruby ["Textual IRC Client: www.textualapp.com"]
<MrDoctor> Many thanks havenwood, I'll check them out :)
moted has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
brugidou has left #ruby [#ruby]
mordocai has joined #ruby
ndrei has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
rubco has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
LadyRainicorn has quit [Ping timeout: 272 seconds]
Rainicorn has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
baroquebobcat has joined #ruby
LadyR has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
stytown has joined #ruby
<havenwood> MrDoctor: Lots of good resources on APIs in Sinatra. NYNY is a subset of Sinatra. Hobbit is even lighter yet. Then for alternatives takes there's Cuba, Ramaze and Scorched. Or for some fun, Camping. Then the new kid on the block is Lotus, which is modular and looks neat.
rippa has joined #ruby
<havenwood> Grape is just for APIs.
<bartdorsey> Hey, I came across a confusing ruby line and i want to rewrite it to be more clear.
<bartdorsey> <% classes << 'current' if first_with_results ? result[0] == first_with_results[0] : i == 0 %>
<jhass> bartdorsey: ew, looks like logic in your view?
CaptainJet has quit []
mr_foobar_baz has quit [Ping timeout: 264 seconds]
<bartdorsey> this combination of an if and a ternary is terrible
<bartdorsey> jhass: yes, it's that too :P
<bartdorsey> jhass: one problem at a time
<jhass> that's the more important one
<jhass> make it a helper and give it a nice name
pu22l3r has quit [Ping timeout: 240 seconds]
mr_foobar_baz has joined #ruby
<bartdorsey> okay, so ignore that it's got <% %> around it
<jhass> == scaryness reduced by > 50%
<jhass> no
<bartdorsey> how would I make it less confusing if I put it in a helper
casheew_ has quit [Read error: Connection reset by peer]
<jhass> that line alone not much, we probably could come up with something for the whole task
casheew_ has joined #ruby
Macaveli has joined #ruby
mrjensen has quit [Remote host closed the connection]
<bartdorsey> I'm fairly new to ruby so I'm confused by what that means exactly.. the order than it evaluated.
<bartdorsey> does it do the ternary first? or the if?
<jhass> the ternary of course
<bartdorsey> what part is the condition of the ternary then?
<jhass> first_with_results
<bartdorsey> is just just checking the existence of that?
<wasamasa> if first_with_results is neither nil nor false, append 'current' to classes
jadedgnome has quit [Quit: WeeChat 0.4.0]
<wasamasa> otherwise result[0]
<wasamasa> that's how I read it
lw has quit [Quit: s]
<jhass> I disagree
<bartdorsey> is the == assignment on the other side?
<wasamasa> or wait
mikesplain has quit [Read error: Connection reset by peer]
<jhass> no
<bartdorsey> or is that another condition
<wasamasa> I've overlooked the other side
<wasamasa> damnit
mikesplain has joined #ruby
<bartdorsey> you see why it's confusing :P
Kricir has joined #ruby
<wasamasa> my client split it up into two lines :P
pu22l3r_ has quit [Remote host closed the connection]
<wasamasa> so, disregard what I wrote
RaCx has quit [Quit: Computer has gone to sleep.]
<jhass> it's if first_with_results is not nil or false and first_with_results[0] is results[0] or if i == 0 append current
stytown has quit [Quit: stytown]
hamakn has quit [Remote host closed the connection]
<bartdorsey> my brain is not wanting to follow that :P
<wasamasa> first, turn it into a helper
baroquebobcat has quit [Quit: baroquebobcat]
<wasamasa> then that helper into more than that line
<jhass> or as expression: if (first_with_results && first_with_results[0] == results[0]) || (!first_with_results && i == 0)
buub has quit [Ping timeout: 244 seconds]
<bartdorsey> okay, so... the ternary is the entire condition of the if
tobago has quit [Remote host closed the connection]
<bartdorsey> I'm not sure how you get the OR out of that.. I'm just not seeing it
IceDragon has joined #ruby
<jhass> ternary is effectively and OR, if a; do_this; else do_that, aka (a && do_this) || (!a && do_that)
Vivekananda_y510 has joined #ruby
<jhass> *an
<bartdorsey> I think what's messing with me is those are bare conditions in the two options of the ternary
<bartdorsey> right?
<jhass> probably
<bartdorsey> so either condition of the ternary could turn out to be true or false.
<jhass> yes
Vivekananda_y510 has quit [Max SendQ exceeded]
<bartdorsey> which makes the entire ternary true or false
<bartdorsey> which is what the if is looking for
<jhass> yeah
Vivekananda_y510 has joined #ruby
<bartdorsey> but since there's no parens it's super confusing.
<jhass> as said, with more context we probably can get rid of it altogether
lmickh has joined #ruby
<bartdorsey> yeah
<bartdorsey> now that I know what it's doing I can probably rewrite it.
<bartdorsey> thanks
kireevco has joined #ruby
<jhass> but as said, 1) make helper 2) write tests for that helper
<bartdorsey> well, it's not my code, and I'm just adding a small feature, not refactoring the entire thing
<jhass> always leave the place cleaner than you found it
thumpba has joined #ruby
Ankhers has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<bartdorsey> yeah, except sometimes if you start to clean up, you realize there's cat shit everywhere and a small project turns into a whole weekend and then you catch a fleshing eating bacteria and you die
sdwrage has joined #ruby
b00stfr3ak has joined #ruby
shanlar has joined #ruby
Burgestrand has joined #ruby
sunya7a has joined #ruby
zapho53 has left #ruby [#ruby]
snath has joined #ruby
binaryhat has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Client Quit]
baroquebobcat has joined #ruby
tus has joined #ruby
pu22l3r has joined #ruby
Joulse has quit [Quit: Joulse]
<bartdorsey> <% if first_with_results %>
<bartdorsey> <% if result[0] == first_with_results[0] %>
<bartdorsey> <% elsif i == 0 %>
<bartdorsey> <% classes << 'current' %>
<bartdorsey> <% classes << 'current' %>
Poky has quit [Remote host closed the connection]
<bartdorsey> <% end %>
<bartdorsey> <% end %>
<jhass> bartdorsey: /topic
<bartdorsey> too many lines, sorry
<jhass> and ew
pu22l3r has quit [Remote host closed the connection]
<jhass> that's horrible
<bartdorsey> yeah and ignore the <%
<ericwood> that's it, I'm going to make a Vim macro for converting rocket hashes to JSON-style hashes
<bartdorsey> I'll move it later
<bartdorsey> is it horrible apart from the <%?
<bartdorsey> Oh, I should do an OR there.
b00stfr3ak has quit [Quit: leaving]
<bartdorsey> duh
<bartdorsey> I see the or now
b00stfr3ak has joined #ruby
<jhass> there's no simple OR
apeiros has joined #ruby
<jhass> remember it's !first_with_results && i == 0
<bartdorsey> huh?
<jhass> mark the first item current if first_with_results is not present
<bartdorsey> isn't it if result[0] equals first_with_results[0] OR i equals 0 then add current to classes?
<jhass> no
<bartdorsey> man this is terrible code
_maes_ has joined #ruby
<bartdorsey> this is basically a bunch of tabs with search resul
<jhass> I've the feeling you can make that smarter if you touch where i and first_with_results comes from, but yeah
<bartdorsey> and it wants to mark the first that has results as current
<bartdorsey> OR
Morkel has quit [Quit: Morkel]
<bartdorsey> the first one if there are no results
<jhass> yeah
<bartdorsey> at least I think that's what it's doing
<bartdorsey> i is just the index of the results array
<bartdorsey> it's in a loop
<bartdorsey> result is the element in the array.
wildroman2 has joined #ruby
DaniG2k has quit [Quit: leaving]
<jhass> another array from the looks
<jhass> you may want to decompose it in the block arg
dANOKELOFF has quit []
Takle has quit [Remote host closed the connection]
<bartdorsey> yeah, arrays of arrays here
<jhass> results.each_with_index {|(whatever, another), result_number|
aspires has joined #ruby
<bartdorsey> @results.each_with_index do |result, i|
<bartdorsey> that's what it's doing
jobewan has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
<jhass> yeah, as said, @results.each_with_index do |(meaningful_name_for_first_element, another, if_theres_a_third), result_number|
Wolland has joined #ruby
zebrarage has left #ruby [#ruby]
<jhass> if the subarrays are fixed size
nateberkopec has joined #ruby
<jhass> because result[0] == first_with_result[0] is quite meaningless
meeh2 is now known as Meeh
doev has joined #ruby
sevenseacat has quit [Remote host closed the connection]
doev has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
schaerli has quit [Remote host closed the connection]
tvw has quit []
baroquebobcat has quit [Quit: baroquebobcat]
obs has quit [Quit: Konversation terminated!]
benzrf|offline is now known as benzrf
mikesplain has joined #ruby
s2013 has joined #ruby
replay has joined #ruby
Takle has joined #ruby
pietr0 has joined #ruby
einarj has quit [Remote host closed the connection]
bricker`work has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
greenarrow has quit [Quit: 500]
baroquebobcat has joined #ruby
LadyRainicorn has joined #ruby
wowXD has quit [Remote host closed the connection]
wowXD has joined #ruby
<slash_nick> wow, didn't know you could do that with block args
<jhass> method definitions too
<slash_nick> jhass: just for arrays?
<slash_nick> anything for hashes or others?
<jhass> just arrays afaik
timonv has quit [Remote host closed the connection]
<slash_nick> neat, thanks
<jhass> and you can even nest, a, (b, (c, *d), e, *f = some_array
<jhass> + missing )
baroquebobcat has quit [Client Quit]
kenndel has joined #ruby
wowXD has quit [Ping timeout: 255 seconds]
qba73 has quit [Remote host closed the connection]
kenndel_ has quit [Ping timeout: 244 seconds]
mehlah has quit [Quit: Leaving...]
SilverKey has joined #ruby
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
jfran has joined #ruby
pedahzur has joined #ruby
baroquebobcat has joined #ruby
mrjensen has joined #ruby
baroquebobcat has quit [Client Quit]
maletor has joined #ruby
sdouglas has joined #ruby
banjara has joined #ruby
TheKruex has joined #ruby
natewalck__ is now known as natewalck
s2013 has quit [Ping timeout: 244 seconds]
St_Marx has quit [Remote host closed the connection]
VinceThePrince has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
abdulsattar has joined #ruby
CorpusCallosum has joined #ruby
subraminion has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
VinceThePrince has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
wald0 has quit [Remote host closed the connection]
edgarjs_afk is now known as edgarjs
mehlah has joined #ruby
dik_dak has joined #ruby
Urocyon has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
hamakn has joined #ruby
Urocyon has joined #ruby
baroquebobcat has joined #ruby
<aep> any idea why timeout 4 do stuff end would never exit?
<aep> i mean, raise
wald0 has joined #ruby
binaryhat has joined #ruby
itsfortybelow has quit [Read error: Connection reset by peer]
itsfortybelow has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.3.8]
<slash_nick> aep: timeout 4 do stuff end?
smathieu has quit [Ping timeout: 248 seconds]
<slash_nick> s/timeout 4 do stuff end/raise/?
lkba has joined #ruby
Zenigor has quit [Remote host closed the connection]
mr_foobar_baz has joined #ruby
<aep> http://npaste.de/p/sQg this works, but timeout does not work with net-ssh
<aep> it just never fires
wald0 has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
scarolan has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
saarinen has joined #ruby
sunya7a has quit [Ping timeout: 240 seconds]
nerdy has joined #ruby
CodeBunny has joined #ruby
Zenigor has joined #ruby
wald0 has quit [Ping timeout: 240 seconds]
<slash_nick> >> require 'timeout';Timeout::timeout(1) do; sleep 2 end
<eval-in> slash_nick => (https://eval.in/168165)
orionstein is now known as orionstein_away
<slash_nick> ah i bet it can't sleep
<jhass> why you call with :: ? :(
wald0 has joined #ruby
sunya7a has joined #ruby
Shidash has quit [Quit: Leaving.]
<slash_nick> >> require 'timeout';Timeout::timeout(1) do; 100000000000.times { }; end
<eval-in> slash_nick => (https://eval.in/168167)
<slash_nick> oh well, aep it seems to work for me
<slash_nick> jhass: i copy/pasted
<jhass> no excuse!
<jhass> :P
* slash_nick self flagellates
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
kireevco has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
subraminion_ has joined #ruby
kireevco has joined #ruby
subraminion has quit [Ping timeout: 248 seconds]
sinkensabe has quit []
CodeBunny has joined #ruby
qba73 has joined #ruby
djbkd has quit [Remote host closed the connection]
edgarjs is now known as edgarjs_afk
nerdy has quit [Quit: Computer has gone to sleep.]
replay has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alina-malina has quit [Ping timeout: 264 seconds]
thumpba has quit []
thumpba has joined #ruby
sunya7a has quit [Ping timeout: 272 seconds]
fella5s has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Takle has quit [Remote host closed the connection]
qba73 has quit [Ping timeout: 248 seconds]
edgarjs_afk is now known as edgarjs
smathieu has joined #ruby
<aep> any better ssh client for ruby?
cool has quit [Quit: Connection closed for inactivity]
<aep> net-ssh is terrible
Takle has joined #ruby
nateberkopec has quit [Quit: Leaving...]
_Andres has joined #ruby
yekta has joined #ruby
<rdark> aep: what's up with net-ssh?
<aep> it has no way of terminating the running command, do you can't run a log grep for example
kirun has joined #ruby
<aep> also it somehow evades Timeout::timeout
<aep> so it can block forever
Xeago has quit [Read error: Connection reset by peer]
freggles has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
<Cork> aep: no i have a script that i explicitly moved from system() to net-ssh to enable timeout::timeout
replay has joined #ruby
<Cork> so timeout works
Takle has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 244 seconds]
rezzack has quit [Quit: Leaving.]
banjara has quit [Read error: Connection reset by peer]
<aep> for me it just hangs forever if you execute!("sleep 10000")
maestrojed has joined #ruby
sputnik13 has joined #ruby
dideler_ has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
rezzack has joined #ruby
uresu has quit [Quit: uresu]
agarie has joined #ruby
sputnik13 has joined #ruby
wallerdev has joined #ruby
RaCx has joined #ruby
anaeem1__ has joined #ruby
<Cork> aep: that is what i use
agarie has quit [Client Quit]
<rdark> aep: the exec! methods explicitly block until the process finishes
ghr has quit [Ping timeout: 240 seconds]
agarie has joined #ruby
<eam> Timeout has a number of deadlock conditions
goleldar has joined #ruby
relix has joined #ruby
carraroj has joined #ruby
gkra has joined #ruby
schaerli has joined #ruby
<Cork> funny enough i also have a net-ssh question :)
pu22l3r has joined #ruby
MrDoctor has quit [Ping timeout: 240 seconds]
<rdark> there are the other methods that do async with callbacks (can be a pain) - or otherwise there's a popen3 implementation that's good for streaming stuff as in your above example
pu22l3r has quit [Remote host closed the connection]
<Cork> is there a command to escape arguments for exec! ?
nerdy has joined #ruby
anaeem1 has quit [Ping timeout: 244 seconds]
<kalleth_> Cork: you can exec a command with the arguments properly shellexec'ed through most shells
pu22l3r has joined #ruby
XenoWolf is now known as XenoWork
schaerli has quit [Remote host closed the connection]
<kalleth_> Shellwords.escape
<Cork> ah
<kalleth_> require 'shellwords'
<kalleth_> Cork: http://apidock.com/ruby/Shellwords/shellescape it's like the first link on google :|
dideler_ has quit [Quit: dideler_]
RaCx has quit [Ping timeout: 240 seconds]
XenoWolf has joined #ruby
XenoWork has quit [Quit: leaving]
wowXD has joined #ruby
Alina-malina has joined #ruby
pontiki has joined #ruby
sdouglas_ has joined #ruby
<benzrf> >> [].next
<eval-in> benzrf => undefined method `next' for []:Array (NoMethodError) ... (https://eval.in/168182)
<benzrf> >> [].to_enum.next
<eval-in> benzrf => iteration reached an end (StopIteration) ... (https://eval.in/168183)
<benzrf> hmm
<pontiki> hi
Guest86375 is now known as deepy
ndrei has quit [Ping timeout: 240 seconds]
wowXD has quit [Ping timeout: 255 seconds]
<shevy> hey pontiki
sdouglas has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
bradleyprice has quit [Remote host closed the connection]
kith has joined #ruby
razrunelord has joined #ruby
bradleyprice has joined #ruby
Zai00 has quit [Quit: Zai00]
kenneth has quit [Quit: Bye.]
subraminion_ has quit [Quit: Lingo - http://www.lingoirc.com]
Hobogrammer has joined #ruby
dc has quit [Disconnected by services]
dc_ has joined #ruby
Hanmac has joined #ruby
kenneth has joined #ruby
pedahzur has left #ruby ["Konversation terminated!"]
subbyyy has joined #ruby
ndrei has joined #ruby
bradleyprice has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
subbyyy has quit [Client Quit]
subbyyy has joined #ruby
yekta has quit [Ping timeout: 252 seconds]
iamjusthatdude has joined #ruby
anaeem1_ has quit [Ping timeout: 240 seconds]
eka_ has joined #ruby
stytown has joined #ruby
Xeago has quit [Remote host closed the connection]
eka has quit [Read error: Connection reset by peer]
crazymykl has quit [Remote host closed the connection]
Xeago has joined #ruby
subbyyy has quit [Quit: none 0.4.3]
yekta has joined #ruby
subbyyy has joined #ruby
Xeago has quit [Remote host closed the connection]
jonahR has joined #ruby
stytown has quit [Client Quit]
crazymykl has joined #ruby
SilverKey has quit [Quit: Halted.]
sunya7a has joined #ruby
anaeem1 has joined #ruby
fgo has quit [Remote host closed the connection]
bartdorsey has quit [Ping timeout: 264 seconds]
XenoWolf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zamerick has joined #ruby
Zamerick has left #ruby [#ruby]
tacos1de has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
bartdorsey has joined #ruby
tacos1de has joined #ruby
Takle has joined #ruby
stytown has joined #ruby
kaspergrubbe has joined #ruby
danijoo has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
magnetica has joined #ruby
<magnetica> need some help with the syntax please, <%= form_for [@profile, @portfolio], :html => { :multipart => true } do |f| %> multipart doesn't work ? can't figure out why
<jhass> magnetica: #rubyonrails
<mr_foobar_baz> jhass: just as I was about to say that
<magnetica> it's a ruby syntax though
chrishough has joined #ruby
<magnetica> jhass: those guys are pretty busy
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> so that throws a syntax error at you?
rdark has quit [Quit: leaving]
workmad3 has quit [Ping timeout: 248 seconds]
<mr_foobar_baz> just a guess but try using ()
<jhass> I see no syntax error in there, no need for any parens
icole has joined #ruby
<jhass> -> #rubyonrails
IceDragon has quit [Ping timeout: 264 seconds]
lw has joined #ruby
andrewjanssen has joined #ruby
icole has quit [Client Quit]
sk87 has joined #ruby
bartdorsey has quit [Quit: Textual IRC Client: www.textualapp.com]
RaCx has joined #ruby
RaCx has quit [Client Quit]
alec-c4_ has joined #ruby
RaCx has joined #ruby
nmokru has joined #ruby
sk87 has quit [Client Quit]
St_Marx has joined #ruby
alec-c4 has quit [Ping timeout: 252 seconds]
XenoWolf has joined #ruby
IceDragon has joined #ruby
rehat_ has joined #ruby
x1337807x has joined #ruby
bartdorsey has joined #ruby
binaryhat has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
sepp2k has joined #ruby
anaeem___ has joined #ruby
Kricir has joined #ruby
wowXD has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
abdulsattar has quit [Ping timeout: 260 seconds]
x1337807x has quit [Ping timeout: 255 seconds]
Valesk has joined #ruby
amargherio has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
AlSquire has quit [Quit: This computer has gone to sleep]
<shevy> magnetica your syntax translates to
Hobogrammer has quit [Ping timeout: 264 seconds]
<shevy> form_for( [@profile, @portfolio], :html => { :multipart => true }) do |f|
anaeem1 has quit [Ping timeout: 260 seconds]
<shevy> that is valid syntax
<shevy> the first argument given is an array, the second a hash
lw has quit [Quit: s]
TheKruex has quit []
wowXD has quit [Ping timeout: 244 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
magnetica has quit [Ping timeout: 246 seconds]
TheKruex has joined #ruby
chipotle has joined #ruby
Doppp has joined #ruby
postmodern has joined #ruby
jaimef has quit [Excess Flood]
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
kenneth has joined #ruby
fgo has joined #ruby
monsieurp is now known as BR_ALL_VIADOS
BR_ALL_VIADOS is now known as monsieurp
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
jaimef has joined #ruby
banjara has joined #ruby
binaryhat has joined #ruby
krichtof78 has joined #ruby
krichtof78 has quit []
fgo has quit [Ping timeout: 272 seconds]
lw has joined #ruby
subbyyy has quit [Quit: none 0.4.3]
krichtof78 has joined #ruby
Hobogrammer has joined #ruby
ascarter has joined #ruby
yacks has quit [Quit: Leaving]
goleldar has quit []
alec-c4_ has quit [Ping timeout: 252 seconds]
krichtof78 has quit [Client Quit]
olivier_bK1 has quit [Ping timeout: 272 seconds]
buub has joined #ruby
MrDoctor has joined #ruby
ndrei has joined #ruby
bradleyprice has joined #ruby
havenwood has quit [Remote host closed the connection]
bradleyprice has quit [Read error: Connection reset by peer]
kfs has joined #ruby
bradleyprice has joined #ruby
MmmmPie has joined #ruby
centrx has joined #ruby
<kfs> hi guys. i have what i think is a basic issue.
davispuh has joined #ruby
<shevy> it's unfortunate that the ruby-GUI bindings do not have many developers
lw has quit [Quit: s]
<kfs> i'm trying to work with bosh-lite https://github.com/cloudfoundry/bosh-lite/blob/master/README.md and when i try to run bundler, i keep getting a ruby version mismatch, even though I am using rbenv
nobitanobi has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
<nobitanobi> Hi guys, I have created this class in order to be able to convert to JSON my own classes: https://gist.github.com/novito/bd0723e90bf34eaf661e - However, in the JSON result, the keys contain '@'. Any way to get rid of that 'a' before converting to_json? I see that 'var' is a symbol so not sure how to remove that character
FifthWall is now known as Skysoms_boss
RaCx has joined #ruby
Skysoms_boss is now known as FifthWall
<nobitanobi> ok, got it var.to_s.delete '@'
<nobitanobi> :)
sunya7a has quit [Ping timeout: 272 seconds]
FifthWall is now known as SkySom_Himself
havenwood has joined #ruby
SkySom_Himself is now known as FifthWall
yacks has joined #ruby
schaerli has joined #ruby
andikr has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
buub_ has joined #ruby
buub has quit [Quit: leaving]
olivier_bK1 has joined #ruby
Wolland has quit [Remote host closed the connection]
nmokru has quit [Quit: nmokru]
jaimef has quit [Excess Flood]
davispuh has quit [Read error: Connection reset by peer]
Aryasam has quit [Ping timeout: 255 seconds]
lsmola__ has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
sunya7a has joined #ruby
ndrei has joined #ruby
alec-c4 has joined #ruby
jerius_ has joined #ruby
AlSquire has joined #ruby
lw has joined #ruby
jerius_ has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
alem0lars has joined #ruby
jaimef has joined #ruby
workmad3 has joined #ruby
jerius has quit [Ping timeout: 255 seconds]
Shidash has joined #ruby
jerius has joined #ruby
alem0lars has quit [Client Quit]
buzz0763 has joined #ruby
djbkd has joined #ruby
yetanotherdave has joined #ruby
<shevy> nobitanobi hehe
<nobitanobi> :)
jprovazn has joined #ruby
<nobitanobi> I always forgot the .to_s on a symbol
cddr has joined #ruby
<nobitanobi> *forget
ryanneufeld has quit [Ping timeout: 252 seconds]
sunya7a has quit [Remote host closed the connection]
<cddr> Does anyone who uses stackprof know what a high 'miss rate' signifies? https://github.com/tmm1/stackprof/issues/27
wallerdev has quit [Read error: Connection reset by peer]
TheKruex has quit []
wallerdev has joined #ruby
blueOxigen has quit [Remote host closed the connection]
wchun has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
towbes has quit [Ping timeout: 248 seconds]
<kfs> can anyone help me out with what I typed u there?
bluOxigen has joined #ruby
Aryasam has joined #ruby
ylluminate has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
ryanneufeld has joined #ruby
Takle has quit [Remote host closed the connection]
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby
abdulsattar has joined #ruby
chrishough has quit [Quit: chrishough]
SBoolean has joined #ruby
<shevy> kfs no idea, I don't use bundler; it seems to complicate matters for me rather than simplify; same with rbenv, I always compile from the source
wallerdev has quit [Ping timeout: 252 seconds]
XenoWolf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lsmola__ has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
bradhe has joined #ruby
<shevy> what would help is to copy paste the specific error message, a 100% paste
Kricir has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 264 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
<pontiki> kfs, i don't use rbenv. if you don't have the version specified in the Gemfile, is it supposed to install it for you?
<tus> shouldn't this: doc.xpath('//div[@class="titlePage star-box"]') work for this: <div class="titlePage star-box"> 0,5 </div>? because it's not :(
olivier_bK1 has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
heftig has joined #ruby
<postmodern> pontiki, it won't
<pontiki> so then i have to ask, kfs, do you have ruby 1.9.3 set as the ruby version in the place you're trying use bosh-lite?
r_rios has quit [Ping timeout: 272 seconds]
wowXD has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<jhass> tus: that example works, yeah
Aryasam has quit [Ping timeout: 255 seconds]
towbes has joined #ruby
<tus> jhass thanks man. must be wrong somewhere else hmm
<tus> damnit i am so stupid, got it.
Wolland has joined #ruby
chrishough has joined #ruby
wowXD has quit [Ping timeout: 255 seconds]
zorak has quit [Read error: Connection reset by peer]
pp_ has quit [Quit: Lost terminal]
LiohAu has quit [Quit: LiohAu]
zorak has joined #ruby
lsmola__ has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
tesaf has quit [Quit: Lost terminal]
stytown has quit [Quit: stytown]
Takle has joined #ruby
cj___ is now known as cj
emptymag00 has joined #ruby
iwoeri has quit [Remote host closed the connection]
emptymag00 has quit [Client Quit]
olivier_bK1 has joined #ruby
lsmola__ has quit [Ping timeout: 252 seconds]
<ehlovader> I install with rvm and then immediately in the same shell want to know where the gem was installed
<ehlovader> why wouldn't it work for me
<ehlovader> only when I disconnect from the ssh and reconnect in a new session is it avaialble
acalewin has quit [Quit: ZNC - http://znc.in]
kireevco has left #ruby [#ruby]
stytown has joined #ruby
bradhe has quit [Remote host closed the connection]
rien has joined #ruby
acalewin has joined #ruby
andikr has quit [Remote host closed the connection]
bradhe has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
<shevy> by default, gems go into $RUBY_PREFIX/lib/ruby/gems/2.1.0/gems/
<shevy> so if the prefix is /usr, the gems would reside in /usr/lib/ruby/gems/2.1.0/gems/
<RubyPanther> ehlovader: You have to open a new shell because rvm works by fiddling the shell environment, for example it replaces the cd command
<shevy> with rvm it should be $HOME/.rvm/
<ehlovader> ah
<ehlovader> any way to do that on the fly?
<ehlovader> I am using ansible to provision rvm
<ehlovader> which means it is always the same shell
maestrojed has joined #ruby
<havenwood> ehlovader: try #rvm for best advice
<ehlovader> ah
<ehlovader> thank you
<RubyPanther> my opinion, its features bit you and the other options don't have that "feature"
<kfs> shevy: "Your Ruby version is 1.8.7, but your Gemfile specified 1.9.3"
<shevy> hehehe
<kfs> i'm just following a tutorial and it says what to do. i'm not actually coding anything, just trying to get some example code up and running
agent_white has joined #ruby
fgo has joined #ruby
<havenwood> kfs: what os/distro are you on?
<agent_white> Ello everyone!
bluOxigen has quit [Ping timeout: 240 seconds]
<havenwood> agent_white: hey
bradhe has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
XenoWolf has joined #ruby
bluOxigen has joined #ruby
kies has quit [Ping timeout: 248 seconds]
maasha has joined #ruby
<havenwood> kfs: 1.8.7 is past end-of-life. There's usually a 1.9.3 package available.
<maasha> hi, is there a method that iterates over an array two elements at a time? a bit like (1..10).each_cons(2) { |a| p a }, but returning [1,2], [3,4] ...
<havenwood> maasha: each_slice(2)
<maasha> havenwood: ty
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
fgo has quit [Ping timeout: 240 seconds]
razrunelord has quit [Remote host closed the connection]
kireevco has joined #ruby
razrunelord has joined #ruby
lw has quit [Quit: s]
<kfs> havenwood: OSX 10.8
itsfortybelow has left #ruby ["Leaving"]
<havenwood> kfs: Updating to 10.9 would bump system Ruby to 2.0.
<kfs> well i have 1.9.3 installed
<havenwood> kfs: Or you could install 1.9.3 with brew.
<havenwood> kfs: Oh, installed how?
<kfs> ussasabarkm1:bosh-lite sabark$ rbenv versions
<kfs> system
<kfs> * 1.9.3-p547 (set by /Users/sabark/.rbenv/version)
<havenwood> oh, rbenv
smathieu has quit [Remote host closed the connection]
<kfs> i chose rbenv as it seemed the simplest option
<shevy> kfs can't you just eliminate 1.8.x ?
<kfs> but i also used home-brew to install rbenvs
danijoo has quit [Quit: Leaving...]
smathieu has joined #ruby
<kfs> shevy: i don't think so, as it comes with OSX
lxsameer has quit [Ping timeout: 264 seconds]
<havenwood> kfs: I'd say chruby is the simplest. :P
<kfs> havenwood: that wasn't listed as an option on the site i was reading :P
<havenwood> kfs: if switching Rubies is what were talking
<havenwood> kfs: a newer option
Shidash has quit [Quit: Leaving.]
razrunelord has quit [Ping timeout: 252 seconds]
parduse has quit []
<kfs> i have two options. get bundler to see the right version, or tell it to use the old version, which then gives me another error
<havenwood> kfs: no #rbenv channel, but usually with rbenv the answer seems to be: rbenv rehash
<kfs> that didn't do it. BRB
maasha has quit [Ping timeout: 246 seconds]
parduse has joined #ruby
Wolland has joined #ruby
AlexRussia has joined #ruby
<havenwood> kfs: if you just want to use the brew ruby and don't need to switch rubies then you don't need a ruby switcher at all
replay has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has quit [Ping timeout: 248 seconds]
anaeem___ has quit [Remote host closed the connection]
<havenwood> shevy: there's a system 1.8 on OS X up to 10.9, which has 1.8 and 2.0. then 1.8 is gone in 10.10 and there's only system 2.0
mjsmith2 has quit [Remote host closed the connection]
gomikemike has quit [Ping timeout: 272 seconds]
replay has joined #ruby
Tricon has joined #ruby
<shevy> ack
mjsmith2 has joined #ruby
<shevy> you osx folks are truly competing with the slowness of the universe
<shevy> even debian moved past 1.8 now didn't they?
datafirm has joined #ruby
<havenwood> shevy: but whether you setup dotfiles to point at a brew ruby or use rvm/chruby/rbenv you just leave system ruby alone
<Hanmac> shevy: as far as the mailing list says, they did
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Eyes has quit [Remote host closed the connection]
<shevy> Hanmac what do you mean - the statements on the mailing list don't always necessarily reflect reality in the debian world? ;)
<havenwood> shevy: aye, debian packaged ruby got nicer
<shevy> \o/
kies has joined #ruby
<shevy> that just proves that bitching does pay off
jheg has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
<shevy> it's just more effective than begging for something
Eyes has joined #ruby
danijoo has joined #ruby
sigurding has joined #ruby
<shevy> well
<shevy> not always ...
<havenwood> 10.10-pre has ruby 2.0.0p451
<shevy> cool
<shevy> that's ... almost up to date
elaptics is now known as elaptics`away
wizzywoZzy has quit [Ping timeout: 252 seconds]
<aep> any idea how to quit a process with net-ssh from the caller side?
<aep> instead of waiting for it
XenoWolf has quit [Quit: Textual IRC Client: www.textualapp.com]
alvaro_o has joined #ruby
ghr has joined #ruby
kireevco has quit [Quit: Leaving.]
<bricker`work> Non-ruby question incoming: How much memory should I provision for a VM just running HAProxy?
jottr_ has joined #ruby
FDj_ is now known as FDj
jerius has quit []
jerius has joined #ruby
nmokru has joined #ruby
wildroman3 has joined #ruby
timonv has joined #ruby
<kfs> havenwood: if i can get brew to install it, i just gotta get this thing to recognize it.
<kfs> maybe it'e a bunlder problem
Doc_XI is now known as dylannorthrup
<kfs> the first line of /usr/bin/bundle is #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
<kfs> actually i have /usr/bin/bundle and /usr/bin/bundler
<kfs> both have the same
<kfs> if i change that header, i get all kinds of errors
<kfs> even if i don't use rbenv, i have to use bundler as per the directions i'm following: https://github.com/cloudfoundry/bosh-lite/blob/master/README.md
wildroman2 has quit [Ping timeout: 255 seconds]
Vivekananda_y510 has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
stytown has quit [Quit: stytown]
casheew_ has joined #ruby
wildroman3 has quit [Ping timeout: 240 seconds]
Eyes has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Eyes has joined #ruby
freggles has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
jaimef has quit [Excess Flood]
thesheff17 has quit [Ping timeout: 255 seconds]
MrDoctor has quit [Ping timeout: 244 seconds]
<bricker`work> huh... I never thought about doing this: `some_cool_method(cool_param="Something", another_cool_param="Something Else")`
<bricker`work> kind of a neat idea
<bricker`work> to fake named params
casheew_ has quit [Read error: Connection reset by peer]
casheew_ has joined #ruby
volk_ has quit [Quit: volk_]
<workmad3> bricker`work: that's not faked named params at all... that's just default parameters :P
casheew has quit [Read error: Connection reset by peer]
MmmmPie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie> I assume that was a method call, not a definition
casheew has joined #ruby
bradhe has joined #ruby
<Mon_Ouie> Then again why fake named parameters in a language that has named parameters?
<workmad3> ah... if so, my apologies :)
rixius has joined #ruby
nateberkopec has joined #ruby
schaerli has quit [Remote host closed the connection]
rehat_ has quit [Remote host closed the connection]
<Beoran_> Mon_Ouie,
<shevy> you two speak french!
<Beoran_> named parameters are a news feature in ruby 2
<kfs> i just found this: trying to understand it https://gist.github.com/MicahElliott/2407918
<Beoran_> before (and now, still) we used (and use) hash tables to emulate named parameters.
wowXD has joined #ruby
stytown has joined #ruby
Xeago has joined #ruby
Wolland has joined #ruby
jaimef has joined #ruby
<shevy> bash is such a stupid thing
<bricker`work> workmad3: yeah that was a method call
<shevy> VAR = 123 won't work
stytown has quit [Client Quit]
mjsmith2 has quit [Remote host closed the connection]
<bricker`work> Mon_Ouie: because we're not running 2.x yet :)
diegoviola has quit [Ping timeout: 272 seconds]
casheew_ has quit [Read error: Connection reset by peer]
<bricker`work> Mon_Ouie: i.e., the language we're using doesn't have named paramters
casheew_ has joined #ruby
mjsmith2 has joined #ruby
<bricker`work> shevy: VAR=123
<Mon_Ouie> I figured. That's also very different from named parameters, since you can't swap the order of things
<bricker`work> Mon_Ouie: indeed
thesheff17 has joined #ruby
Hanmac1 has joined #ruby
<Mon_Ouie> As mentioned, people usually use option hash instead
top4o has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
wowXD has quit [Ping timeout: 240 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
PerlPuma has joined #ruby
chrisramon has joined #ruby
<shevy> bricker`work inr uby I can do VAR = 123
<shevy> :(
treehug88 has quit [Ping timeout: 252 seconds]
RubyPanther has quit [Ping timeout: 245 seconds]
chrisramon has quit [Client Quit]
Hobogrammer has joined #ruby
Wolland has quit [Ping timeout: 252 seconds]
Shidash has joined #ruby
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
<shevy> let's quiz the channel
<shevy> without googling...
<shevy> When was the program "make" created?
andrewjanssen has joined #ruby
<bmurt> 1985
<eam> 1980
diegoviola has joined #ruby
obscured has quit [Quit: leaving]
<bricker`work> shevy: what does that have to do with bash?
Morkel has joined #ruby
<Beoran_> shevy make in 1977?
bluOxigen has quit [Ping timeout: 240 seconds]
Vitor has joined #ruby
Vitor has quit [Remote host closed the connection]
acrussell has joined #ruby
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<shevy> bricker`work hmm? what does what have to do with bash
acrussell has left #ruby [#ruby]
<shevy> Beoran_ yeah kinda, one year before 1977 actually but I let you pass!
binaryhat has quit [Remote host closed the connection]
<Beoran_> unix... it really is THE operating system... even 50 yers ago they conceived of all the essential s and that in only 32k+32k memory
volk_ has joined #ruby
stytown has joined #ruby
<shevy> from where does the word "bit" originate?
binaryhat has joined #ruby
<Beoran_> like C as we,, the essential programming language... excuse me, I wax lyrical ...
<PerlPuma> shevy: as a synonym for chad
<shevy> hehe
<shevy> Beoran_ I think unix worked because it was rather simple and straightforward for programmers, and programmers were lazy people
kireevco has joined #ruby
<shevy> cd /usr
<shevy> try to type anything else than that, that is longer!
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
CorpusCallosum has quit [Quit: Textual IRC Client: www.textualapp.com]
RaCx_ has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
<bricker`work> What is special about the number 4_611_686_018_427_387_904 ? See here:
<Beoran_> shevy, that's a bit short changing a brilliant idea. Unix is the OS purified into it's most essential form. For instance, most other OS'es had 13 different types of files, but on unix all files, even devices, work as simple byte streams.
chrishough has quit [Quit: chrishough]
gomikemike has joined #ruby
<bricker`work> >> puts "#{1.object_id}; #{1.object_id}; #{4_611_686_018_427_387_903.object_id}; #{4_611_686_018_427_387_903.object_id}
<eval-in> bricker`work => 3; 3; 541258960; 541258870 ... (https://eval.in/168190)
<Mon_Ouie> There's nothing special about it
bluOxigen has joined #ruby
<Mon_Ouie> It's just large so it's not a fixnum so a Bignum needs to be allocated
<PerlPuma> Beoran_: You may be waxing, but it isn't very lyrical
casheew_ has quit [Read error: Connection reset by peer]
casheew_ has joined #ruby
casheew__ has joined #ruby
<PerlPuma> And yes, unix has a philosophy of being able to treat "everything" as a file, but at the same time, there were always still lots of file types.
<Beoran_> PerlPuma, I understand, not everyone can appreciate the beauty and simplicity of C
<shevy> Beoran_ simple concepts work best. See ruby: everything is an object
<shevy> C is not beautiful
<Beoran_> shevy, *indeed*
<bricker`work> Mon_Ouie: ah
<Mon_Ouie> a * b; // <- not as simple as it may look
<Beoran_> shevy, simple concepts are best.
<bricker`work> Mon_Ouie: but 4_611_686_018_427_387_903 is the cutoff for Fixnum?
<PerlPuma> The difference is not in having file types, it is in being able to open and read them in a generic way using the same call regardless of type
<Beoran_> that's why c has inner beauty, in my eyes.
<shevy> button = gtk_button_new_with_label("Hello World");
stytown has quit [Quit: stytown]
<Mon_Ouie> I don't know, it might be. That's entirely platform dependant.
<Beoran_> c + ruby os a match made in heaven
* Eyes pokes Beoran_
<lemur> mac comes with 1.8.7 default
<shevy> GtkWidget *toggle = gtk_toggle_button_new_with_label(const gchar *label)
<Beoran_> espacially mruby is great
<Eyes> I don't like ruby
<Mon_Ouie> On a 64 bit platform it would be something like (2**62)-1
<lemur> oh, wow, lot more stuff here
PerlPuma is now known as RubyPanther
* wasamasa pokes Eyes
<lemur> need to scroll down next time
<lemur> derp
<Eyes> ow
kenneth has quit [Ping timeout: 260 seconds]
<wasamasa> always the same game
<shevy> I think C and C++ should have been one language
stytown has joined #ruby
<Beoran_> shevy, I agree, c++ should never have existed
chrishough has joined #ruby
<shevy> one way or the other :)
<RubyPanther> C++ existing is no problem unless you use it. Just say no.
<Beoran_> strustrup should have made a language that is different from C
<shevy> though I liked: cout << "yo" << endl;
<lemur> but it lets you build up: C, C++, C++++
<shevy> lol
<lemur> (or rather C# as you all like to call it)
<shevy> what is the name ... C10roxr standard?
m8 has joined #ruby
<shevy> these languages are soooo similar
<shevy> don't forget D lemur
casheew has quit [Ping timeout: 264 seconds]
yekta has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
<Beoran_> C isn't similar to C++ at all. They have a fundamental difference in point of view.
LiohAu_ has joined #ruby
<Beoran_> well enough I have to take a rest...
kenneth has joined #ruby
Beoran_ has left #ruby ["Leaving"]
<lemur> We may as well coin everything with Algol-like syntax as too similar.
<RubyPanther> Even C++ programmers agree it is an awful language unless you only use certain parts. Only problem, they don't agree which parts to use.
<RubyPanther> At least in C there is a lot of agreement about how to use it safely these days
PhilippeGeek has quit [Ping timeout: 240 seconds]
* Nilium disagrees.
<RubyPanther> You can't stop there from being a lot of agreement, though. ;)
<Nilium> That said, RAII is rather handy.
paulfm has quit []
smathieu has quit [Remote host closed the connection]
eka has joined #ruby
<RubyPanther> Carefully hedged statements are nearly bulletproof.
replay has quit [Ping timeout: 248 seconds]
smathieu has joined #ruby
chrishough_ has joined #ruby
mtsmith85 has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
chrishough has quit [Ping timeout: 264 seconds]
abdulsattar has quit [Ping timeout: 264 seconds]
chrishough_ is now known as chrishough
<Mon_Ouie> Code that allows your processor to survive taking a bullet. That's *real* progress!
dfinly has joined #ruby
<Nilium> The important thing is that GC sucks.
yekta has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<workmad3> Nilium: more importantly, no-GC sucks more than GC... apart from when it doesn't :)
rfv_ is now known as rfv
razrunelord has joined #ruby
<Nilium> I'd rather have no GC and RAII than GC and no RAII
razrunelord has quit [Client Quit]
LiohAu_ has quit [Ping timeout: 264 seconds]
<Nilium> Otherwise you have to use finalizers and that's just shite
centrx has joined #ruby
eka_ has quit [Ping timeout: 248 seconds]
<mtsmith85> Hi Folks. Hope this is the best room for this questions. I’m building an application with a series of workers taking jobs from a queue, separate from our main Rails app. I’ve been googling solutions for daemonizing the small ruby “scripts” (for lack of a better term), and are curious about best practices. Does anyone have suggestions for this? (We’ve looked at some gems and Process.daemon).
timonv has quit [Remote host closed the connection]
<Nilium> Nope, ask in the Rails room.
terrell_t has joined #ruby
kyb3r_ has joined #ruby
<Nilium> Assuming it's still a Rails question.
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<mtsmith85> Nilium: I’d like to keep it away from rails — it’s just chucking data around, effectively.
bhaak has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
<mtsmith85> (don’t want to add the overhead of everything else)
buzz0763 has quit [Quit: Lingo - http://www.lingoirc.com]
<Nilium> In that case, is there something wrong with Process.daemon?
<mtsmith85> Nilium: Nope. But, it’s a new area for me and google was turning up a lot of various results. I was curious if there were some suggested best practices. But Process.dameon should be perfectly fine.
<Nilium> I'd say start with that and look at alternatives if there's a need to.
<Nilium> Mostly how I prefer to do things since I'd rather not pull in a gem if I don't need to
<mtsmith85> Great. I appreciate that, Nilium. Sometimes all you need is a “you’re not crazy or on the wrong path” :-)
terrell_t is now known as terrellt_
jdj_dk has joined #ruby
terrellt has quit [Disconnected by services]
terrellt_ is now known as terrellt
<Nilium> That said, I'm also crazy.
<mtsmith85> Ha. Well, I’ll still take it. Thanks!
<Nilium> Also, the stdlib is full of garbage, so you kind of have to investigate each thing on its own. Process should be fine though, it already gets a lot of use.
smathieu has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<RubyPanther> mtsmith85: there are lots of solutions for that, look there for the best practices. There are at least half a dozen popular solutions for worker queues.
DrCode has joined #ruby
smathieu has joined #ruby
<mtsmith85> @RubyPanther sorry, when you say “there”…?
phutchin1 has quit [Ping timeout: 260 seconds]
<terrellt> Worker queues?
<terrellt> Sidekiq ftw.
<RubyPanther> You don't have to "pull in" a gem. It is nonsense-speak. You can distribute the gem with your app, or even paste the code from the gem into your app.
<Nilium> My pionus is doing a lot of exploring today.
djbkd has joined #ruby
<RubyPanther> mtsmith85: Just go backwards from the "there" you're wondering about to whatever place or subject was mentioned immediately beforehand.
RaCx has quit [Quit: Computer has gone to sleep.]
<mtsmith85> RubyPanther: Gotcha. Sorry, I misunderstood for a moment. So yep, that’s what we’re talking about. Maybe writing each worker as a small gem and having it daemonized.
<Nilium> RubyPanther: By pull in, I mean introduce more code I'm dependent on.
RaCx has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
<RubyPanther> It makes sense to roll your own when it is something small. Why introduce dependencies for a couple lines of code? Or for security where you have arbitrary needs, and plan to have different arbitrary needs in the future. But workers queues are a very technical thing that requires an exacting solution.
<jdj_dk> so what am I not getting here.. On production server I'm using RVM and I only have one version installed (2.1.1). When starting my Rails app using bundle exec... it starts with ruby 2.1.0.... ? =) Anybody has a clue what is messed up?
<RubyPanther> It is not really an area where there are any category of gains to be had by avoiding existing wheels
<mtsmith85> To clarify, RubyPanther, we’re not building the queue itself. Just the workers that will grab messages from the queue (SQS in this sense)
<Nilium> In other words, far as I can tell, he's just trying to spin up a process.
eka has quit [Ping timeout: 260 seconds]
<RubyPanther> mtsmith85: I would say that increases the benefit of using an existing queue
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
M-Techni1 is now known as M-Technic
andrewjanssen has quit [Remote host closed the connection]
buub_ has quit [Quit: leaving]
<mtsmith85> RubyPanther: Yes, we’re using SQS. Just wondering about the best way to build the workers themselves. Daemonizing? Gem?
bradhe has quit [Remote host closed the connection]
<kfs> ugh still can't get bundler to work
<kfs> is there an alternative to bundler? or can i get away without using it at all?
<Nilium> What isn't working, first?
eka has joined #ruby
<kfs> it won't look at the ruby versions that I install with rbenv
tessi_zz has quit [Ping timeout: 272 seconds]
<kfs> only uses the OSX system version
wasamasa has quit [Ping timeout: 272 seconds]
<Nilium> That's a bit odd.
<kfs> it's probably something basic like paths or some config
<kfs> i'm just trying to get some example code to run, so i'v never done anything like this before
<kfs> both /usr/bin/bundle and bundler are hard coded to the system instance
djbkd has quit [Remote host closed the connection]
<Nilium> When you installed bundler, did you rehash?
wasamasa has joined #ruby
tessi_zz has joined #ruby
<kfs> header of /usr/bin/bundle #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
j_mcnally has joined #ruby
grieg has joined #ruby
Zenigor has quit [Remote host closed the connection]
<Nilium> Have you installed bundler through gem?
jprovazn has quit [Ping timeout: 255 seconds]
<kfs> yes
<Nilium> Also, it shouldn't be in /usr/bin to begin wtih, so that's weird.
bmurt has quit []
<kfs> i installed ruby thoguh brew
<Nilium> brew doesn't put stuff in /usr
<kfs> and rbenv
mijicd has joined #ruby
<tus> what's the best format to write into if i want to have three colums and be able to sort them? (if it's even possible)
<Nilium> It puts stuff in /usr/local, typically, or maybe /opt/local
<kfs> osx 10.8
<kfs> fyi
<Nilium> If you do ruby -v, what does it say?
<kfs> ruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-darwin12.5.0]
<Nilium> Ok, now what happens if you do rbenv which bundle?
kaiserpa_ has joined #ruby
<kfs> rbenv: bundle: command not found
kaiserpathos has quit [Ping timeout: 252 seconds]
<Nilium> Ok, so you haven't installed bundler using the rbenv-installed ruby.
<Nilium> Do that.
jrhorn424 is now known as zz_jrhorn424
<Nilium> Also, just to check, do `which gem`
wallerdev has joined #ruby
<Nilium> Not rbenv which.
<kfs> ./Users/sabark/.rbenv/shims/gem
<Nilium> Ok, now install bundler.
<kfs> how do i make sure it installed with rbenv?
<kfs> rbenv ruby
mconnolly has quit [Ping timeout: 240 seconds]
<kfs> not system ruby
djbkd has joined #ruby
<Nilium> By checking if it's in your installed gems.
<kfs> installed/installs
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<Nilium> If `gem list --local` doesn't have it, you don't have it.
<kfs> ~/.rbenv/shims/gem install bundler
xxneolithicxx has joined #ruby
<Nilium> Just type gem, otherwise it's impossible to figure out if you're even using the right gem instance.
bradhe has joined #ruby
<xxneolithicxx> Hi all, is it safe to use a class and instance variable of the same name as long as its qualified correctly or will the instance variable effectively override the class variable?
<wallerdev> its safe
<wallerdev> the @ is part of the name
<xxneolithicxx> k cool
<xxneolithicxx> thx
djbkd has quit [Remote host closed the connection]
<havenwood> xxneolithicxx: avoid class variables in any case ;)
<kfs> ok i think that worked. i did rehash and now it didn't error out!
<kfs> installing some stuff…
bhaak has joined #ruby
alec-c4 has quit []
robertodecurnex has quit [Remote host closed the connection]
amargherio has quit [Read error: Connection reset by peer]
kaiserpathos has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Zai00 has joined #ruby
<kfs> holy crap. installing Xcode and all this ruby stuff just sucked 25GB of my tiny 128GB drive lol
<kfs> probably mostly xcode
kaiserpa_ has quit [Ping timeout: 244 seconds]
wowXD has joined #ruby
<wasamasa> probably
<wasamasa> there's a smaller download that just installs clang and such
RaCx_ has joined #ruby
Caius has quit [Ping timeout: 255 seconds]
<wasamasa> tried it ages ago, worked up to a certain point, so I just sucked it up and went for xcode
<xxneolithicxx> oh god, I did that macports thing once when I used to use my mac, insane time/storage suck
Caius has joined #ruby
<RubyPanther> mtsmith85: If you daemonize following the normal unix pattern it works fine portably, though often a binmode (no-op on *nix) is added. fork, setsid, cd, etc
einarj has joined #ruby
<kfs> Nilium: !!! it worked! thank you!
ascarter has joined #ruby
paulfm has quit []
<RubyPanther> The relevant Ruby stdlib just wraps the C calls of the same names
terrellt has quit [Read error: Connection reset by peer]
<kfs> now to go to step two lol
Wolland has joined #ruby
<kfs> all day on step 1
xxneolithicxx has left #ruby [#ruby]
terrellt has joined #ruby
alec-c4 has joined #ruby
<RubyPanther> So there are no surprises
bluOxigen has quit [Ping timeout: 272 seconds]
bradhe has quit [Remote host closed the connection]
<shevy> kfs one day you will come to linux
<shevy> like RubyPanther
<kfs> he
<kfs> heh
<wasamasa> kfs: I did, too
<shevy> :)
<shevy> 25GIG seems excessive though
<kfs> i was asked to demo Cloud Foundry to my co workers so i have to just figure this one out
<wasamasa> while os x might be the best allrounder machine
<kfs> I think that's Xcode stuff that i didn't need. all i needed was the command line tools
<wasamasa> linux is better if you do development mostly
<shevy> I have a collection of 2612 programs, including several gcc source tarballs like gcc-4.9.0.tar.xz and I reach only about 12 gigs with all of them
<kfs> wasamasa: yeah i don't do dev. I'm just playing around with Cloud Foundry
wowXD has quit [Ping timeout: 264 seconds]
<kfs> trying to teach some guys about PaaS because my company sells CF
djbkd has joined #ruby
<wasamasa> kfs: good, then you won't miss lacking tiling window managers and such :P
djbkd has quit [Remote host closed the connection]
<kfs> i used to use debian as my workstation, with Windowmaker
<kfs> those were the days
djbkd has joined #ruby
* Nilium stabs shevy
<Nilium> Just gotta get that out of the way.
sigurding has quit [Read error: Connection reset by peer]
<kfs> setting up vagrant now. it's gotta download a VM
<kfs> and i am on LTE. yeah… gotta wait till i get home
hy2guru_ has quit [Quit: Connection closed for inactivity]
<shevy> Nilium hah I have so much todo that I don't even have the time to stab you back
<shevy> right now I sort through all games in that collection
<shevy> the wesnoth guys are insane... it's getting bigger and bigger and bigger
Wolland has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
<shevy> it's the boost effect
<RubyPanther> I didn't switch to linux until common windows apps stopped running with Win 3.11 + Win32s extensions. There was no way I was going to run Win95/98. I actually liked DOS, because I didn't even imagine the quality of shells *nix had. DOS was as good as Pro-DOS on the Apple ][, after all.
mjsmith2 has quit [Remote host closed the connection]
jheg has quit [Read error: Connection reset by peer]
<shevy> Wesnoth Source 1.11.15 now has 390 MB.
<shevy> ruby-2.1.2.tar.xz has 9 MB
jerius has quit [Ping timeout: 264 seconds]
jheg has joined #ruby
<shevy> so that is more than 43x ruby
<shevy> but ruby is much better than wesnoth!!!
mjsmith2 has joined #ruby
<RubyPanther> it amazes me that the modern windows cmd shell still has no features.
<shevy> how about power shell
bradhe has joined #ruby
<shevy> it has the word "power"
<shevy> DOS was kinda funny
<RubyPanther> presumably command history and tab completion are still considered "power" tools to somebody out there.
<shevy> I liked many of the old DOS games; today it's a battle for the faster 3D processor engine
<shevy> lol
<shevy> they want you to think in terms of GUI windows
timgauthier has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
<RubyPanther> I'm not convinced they have any idea how they want me to think. Just look at Win 8
sigurding has joined #ruby
<tus> why is, when i use the inbuilt csv library in ruby, that it adds citations to my last saved variable? could it be that it's numbers with comma? (211,222)
mtsmith85 has quit [Quit: mtsmith85]
<workmad3> tus: do you mean quotations?
<RubyPanther> To know which way MS is trying to manipulate you, you have to know how much Balmer had to drink on a Monday in October, and you have to know which Monday too
<tus> oh yeah! sorry
<workmad3> tus: and if so, it'll be because the field contains commas
TheLarkInn has quit [Quit: Leaving.]
<workmad3> tus: which, without quotes would... unsurprisingly... be separate fields!
<tus> haha i didn't think of that, stupid. thanks man!
<bricker`work> In this example, would hsh[1] *ever* return "a"? `hsh = { "a" => 1, "b" => 1 }.invert` I know hashes aren't ordered. What would cause it to be 1 => "a" ?
<RubyPanther> hashes are ordered now
<bricker`work> RubyPanther: "now"?
<Mon_Ouie> Since 1.9
grieg has quit [Quit: Leaving]
<bricker`work> Really...
<atmosx> hello
<banisterfiend> Mon_Ouie 'alutte
<workmad3> bricker`work: hash keys are ordered on insert order
<slash_nick> bricker`work: Hash#invert ?
<bricker`work> Interesting, I don't remember hearing about that
kireevco has quit [Quit: Leaving.]
<slash_nick> oh, you said invert
<Mon_Ouie> 'alut
<workmad3> bricker`work: so {"b" => 1, "a" => 1}.invert => {1 => "a"}
eka has quit [Ping timeout: 240 seconds]
<RubyPanther> Previously they would be ordered on a hash that small anyways
replay has joined #ruby
<bricker`work> ah
<slash_nick> oh wow, that code example got lost on me...
<bricker`work> workmad3: yeah I'm just more concerned about the predictability of it, I see now that is is indeed predictable
<bricker`work> it*
jaimef has quit [Excess Flood]
<workmad3> bricker`work: depends on how deterministic your process for setting up the hash is ;)
<RubyPanther> I think even before you needed a hash over the page size to have a chance at the order changing, but it might have been a different (large) threshold
djbkd has joined #ruby
ldnunes has quit [Quit: Leaving]
rien has quit [Ping timeout: 246 seconds]
kireevco has joined #ruby
<atmosx> how's life people?
alienaut has joined #ruby
<Mon_Ouie> Hm? Before that the order was totally dependent on what #hash would return
<Mon_Ouie> 18>> {"a" => 1, "b" => 2, "c" => 3}
<eval-in> Mon_Ouie => {"c"=>3, "b"=>2, "a"=>1} (https://eval.in/168192)
RaCx_ has quit [Quit: Computer has gone to sleep.]
<atmosx> sitting in front of my iMac after almost 6 months in a raw (and 3 years in total) in front of a 12.1 inch MBA feels incredibly sweet :-)
jaimef has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
sigurding has quit [Quit: sigurding]
<workmad3> 18>> {"a" => 1, "b" => 2, "c" => 3}.invert
<eval-in> workmad3 => {1=>"a", 2=>"b", 3=>"c"} (https://eval.in/168193)
<workmad3> 18>> {"a" => 1, "b" => 1, "c" => 1}.invert
<eval-in> workmad3 => {1=>"a"} (https://eval.in/168194)
<workmad3> 18>> {"a" => 1, "b" => 1, "c" => 1}.invert
<eval-in> workmad3 => {1=>"a"} (https://eval.in/168195)
<workmad3> 18>> {"b" => 1, "a" => 1, "c" => 1}.invert
<eval-in> workmad3 => {1=>"b"} (https://eval.in/168196)
<Mon_Ouie> I assume that means a and b are stored in the same bucket :p
ppinto has quit [Quit: ppinto]
RaCx has joined #ruby
alexju has quit [Remote host closed the connection]
fgo has joined #ruby
<RubyPanther> for 1.8 people used dictionary from facets
<RubyPanther> Everything from facets has to be included in the language because it is the only way to keep people from using the author's code :o
Morkel has quit [Quit: Morkel]
<shevy> will mruby really be able to replace lua?
eka has joined #ruby
jackneill has quit [Remote host closed the connection]
<RubyPanther> And the mailing list hates him that much, regardless of him having been ahead of even rails at adding most of the modern Ruby features
<RubyPanther> shevy: It can already
<lemur> They're both highly extensible scripting languages. I don't see why not. I've used both and Ruby seems to have more power to it, personally.
<RubyPanther> Same as with Ruby, there is no goal of taking over the world or being "#1," the goal of mRuby is make Ruby more available for embedding
Tricon has quit [Quit: Linkinus - http://linkinus.com]
parduse has quit [Ping timeout: 252 seconds]
<Nilium> Which is a nice idea.
<RubyPanther> Matz had Lua envy, not Lua hate :)
parduse has joined #ruby
Tricon has joined #ruby
<atmosx> is there any project that uses lua worth mentioning?
<lemur> Lua just tends to be lighter weight for embedding is what it comes down to.
parduse is now known as Guest38241
ferr has joined #ruby
<jhass> atmosx: prosody ?
<Nilium> I think it'll just end up being a size/performance trade-off.
<Mon_Ouie> Tons of games use it as a scripting language
<lemur> Adobe last I remember.
<atmosx> jhass: the im client?
edgarjs is now known as edgarjs_afk
<jhass> atmosx: it's an xmpp server
<lemur> that count as huge enough? Photoshop, Lightroom, etc.
<lemur> Minecraft plugin computercraft uses it too.
<RubyPanther> atmosx: Lego Mindstorms is a good example
fgo has quit [Ping timeout: 244 seconds]
<atmosx> jhass: yeah
<atmosx> RubyPanther: okay
<RubyPanther> Apparently Lua is extensively used already in embedded robotics controllers in factories, and those are the companies that invested in mRuby
<katlogic> Only prosody counts though, as it is the whole damn thing written in lua, not just embedded scripting.
<katlogic> As for pure lua software like that, it is somewhat rare.
ferr has quit [Read error: Connection reset by peer]
<RubyPanther> There was a Japanese industrial group that co-sponsored mRuby along with the Japanese government as a Lua competitor for robotics
<atmosx> exactly my point but didn't wanna push it
<lemur> As far as Ruby, RPG Maker XP and above use RGSS heavily.
<katlogic> RubyPanther: Ruby + games, or anything realtime still sounds like laughing / vaporware matter to me at the moment.
<RubyPanther> Well, Lua isn't for writing apps, it is for embedded scripting _and_ embedded apps on SBCs
yusuf_000_ has joined #ruby
motto has joined #ruby
alec-c4_ has joined #ruby
<RubyPanther> If you don't have access to proprietary robotics controllers, then of course you wouldn't matter to Lua developers, or they wouldn't matter to you, or something
<katlogic> RubyPanther: Well, it's more like about lack of standardized "default libraries" like other languages do.
apeiros_ has joined #ruby
<katlogic> So this makes entry barrier higher than just usual ruby/python stuff.
<katlogic> But then again, JS was exactly like that in the beginnning.
edgarjs has joined #ruby
<shevy> JS has monopoly on the browser though, ruby does not
ryotarai_ has joined #ruby
<RubyPanther> There is supposed to be a higher entry barrier because you're expected to be buying hardware dev kits just to get started
<shevy> and python has more devs than ruby too
yekta_ has joined #ruby
patronus has joined #ruby
<katlogic> shevy: About having no runtime worth mentioning
bradhe has quit [Remote host closed the connection]
Havoc][ has quit [Disconnected by services]
<katlogic> node/npm is still pile of crap, but hey, it exists now
<lemur> Python also has the lovely 2/3 divide that no one can ever get over.
todor_ has joined #ruby
Havoc][ has joined #ruby
banjara1 has joined #ruby
<Nilium> node needs to die in a fire.
mjsmith2 has quit [Remote host closed the connection]
<RubyPanther> And for game scripting, there isn't really anything outside of the Ruby stdlib that you'd want to be standard, because you don't want bloat
sigurding has joined #ruby
sweeper_ has joined #ruby
<Nilium> lemur: That one's a mystery. I seriously don't know why so many people have trouble with the Python 2/3 transition.
RaCx_ has joined #ruby
mikemac has joined #ruby
<ericwood> oh my god I am yak shaving please send help
<ericwood> :'(
razum2um1 has joined #ruby
<shevy> RubyPanther why do we have optparse and getoptlang
<ericwood> it might be too late for me
* Nilium hands ericwood a lawnmower
Atomic_Work has joined #ruby
<katlogic> RubyPanther: Ruby is just way too slow, any sort of bloat is the last issue.
<pipework> Ruby sucks, long live Lua.
<shevy> Nilium he needs a gun
<lemur> me either
thalweg_ has joined #ruby
<Nilium> Not for the yak, but for you to stick your head in
thesheff17_ has joined #ruby
<lemur> as far as slowness, not really an issue.
<ericwood> seems reasonable enough
<RubyPanther> shevy: One is for common use, the other is for pedantic GNU-style command parsing
<shevy> just shoot ericwood already Nilium
volk__ has joined #ruby
cescalante_ has joined #ruby
RaCx_ has quit [Client Quit]
claymore has quit [Quit: Leaving]
thesheff17 has quit [Disconnected by services]
<shevy> simple solutions work best
<katlogic> lemur: For some silly gui theming, perhaps.
<lemur> the order of magnitude difference there makes it pretty well worthless to argue
<Nilium> When you pick Python, you just have to accept it's slow as hell and live with that.
thesheff17_ is now known as thesheff17
<katlogic> But implementing half of game as scripted objects, well, uh, good luck with your endeavors with ruby in gaming :>
<Nilium> Python 3 getting slower isn't really an issue.
<lemur> If speed is really an issue, don't go with a scripting language
davzie1 has joined #ruby
QKO_ has joined #ruby
<Nilium> More or less.
<Nilium> Or limit use of the scripting language and embed it.
Rydekull_ has joined #ruby
Muz_ has joined #ruby
<lemur> All of them are categorically slow, and not enough of a magnitude difference to make one an extreme preference.
cout_ has joined #ruby
<shevy> so you just described lua Nilium when you said to embed it
saltsa_ has joined #ruby
stormy3_ has joined #ruby
maestroj_ has joined #ruby
pr00t_ has joined #ruby
<katlogic> lemur: Nbobody cares about such notion, the only factor is developer cost.
wald0_ has joined #ruby
SBoolean_ has joined #ruby
yeticry_ has joined #ruby
<katlogic> lemur: The more dev time you can shift to scripting monkeys, the better.
<RubyPanther> katlogic: If you think Ruby is slow, you think too much for your own good.
zaargy_ has joined #ruby
<lemur> the worse more like it
<katlogic> RubyPanther: It is slow for gamedev, sadly.
<RubyPanther> It isn't, but your code probably is. Your code being slow, that part I believe.
<lemur> as soon as you classify devs as monkies you have a far larger problem
<katlogic> It is ok for webdev and anything in between.
spyderman4g63 has joined #ruby
qpok_ has joined #ruby
Hamled|Erp has joined #ruby
mattmcclure has joined #ruby
<RubyPanther> katlogic: Would like a side of derp with your derp?
<lemur> for every bad dev in a scripting language, it takes two good ones to clean up their mess.
<Nilium> Ruby is slow relative to X thing, where X is some faster thing.
graft has joined #ruby
graft has joined #ruby
thumpba_ has joined #ruby
mnemon2 has joined #ruby
<Nilium> Though you'll have to decide what faster means 'cause I gots me some Baldur's Gate 2.
devyn_ has joined #ruby
Cope__ has joined #ruby
<RubyPanther> Ruby is written in C, and runs at _exactly_the_same_speed_ as other C code.
<katlogic> lemur: That much is true. The monkeys is literally "hiring exceptionally bad devs who learn lua by giving em php examples"
<lemur> Language execution speed will rarely be the bottleneck from what I've seen for most people.
<katlogic> Simply because they knew only php before.
<Nilium> RubyPanther: That argument needs to die in a fire, thanks.
spyderman4g63 has quit [Remote host closed the connection]
erichmenge_ has joined #ruby
spinx_ has joined #ruby
<katlogic> It's rare to see RubyPanther trolling like that :)
spyderman4g63 has joined #ruby
wallerdev_ has joined #ruby
<lemur> eh, I have him muted for a reason.
<Nilium> No, he trots that one out every time.
<RubyPanther> Nilium: I dunno, we tried for years to burn them in a fire whenever they said "herp-a-derp, Ruby slow" but they kept coming
chrishough_ has joined #ruby
wildroman2 has joined #ruby
<katlogic> But I agree to his point, CSS is turing complete and written in C. Thus CSS is as fast as machine code.
eka has quit [Ping timeout: 240 seconds]
<RubyPanther> CSS isn't slow either, that would be an equally stupid claim.
<Eiam> does it ever bother anyone else that you write "binding.remote_pry" but to connect to it, you write "pry-remote" ?
<Nilium> CSS isn't fast either.
<Nilium> It's static.
<Eiam> not only are they inverted, but one uses a - and one uses a _
<Mon_Ouie> You can invert them
drowl_ has joined #ruby
erichmenge has quit [Ping timeout: 240 seconds]
ryotarai has quit [Ping timeout: 240 seconds]
edgarjs_afk has quit [Ping timeout: 240 seconds]
yekta has quit [Read error: Connection reset by peer]
yekta_ is now known as yekta
ryotarai_ is now known as ryotarai
erichmenge_ is now known as erichmenge
<katlogic> Nilium: CSS3+HTML5 rule 101 :)
RaCx has quit [Ping timeout: 240 seconds]
agarie has quit [Ping timeout: 240 seconds]
<lemur> Mon_ouie wrote it, though you may have better luck in the #Pry channel for more SNR
sweeper has quit [Ping timeout: 240 seconds]
Rydekull has quit [Ping timeout: 240 seconds]
QKO has quit [Ping timeout: 240 seconds]
todor has quit [Ping timeout: 240 seconds]
Muz has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
<Nilium> katlogic: Well you'd think it was rule 101 but then the web developers keep proving I have far too high standards for web developers. >_>
<katlogic> Farewell javascript, I for one welcome our table cell web scripting CSS overlords.
kevinfagan_ has joined #ruby
elaptic`` has joined #ruby
Some-body_ has joined #ruby
jonathanwallace_ has joined #ruby
<Eiam> Mon_Ouie: sure by modifying the code I could, or making an alias for remote_pry on the shell etc
Affix_ has joined #ruby
Affix_ has quit [Changing host]
Affix_ has joined #ruby
<lemur> He means there already is one
<lemur> it's mentioned in the readme
alec-c4 has quit [Ping timeout: 240 seconds]
alienaut has quit [Ping timeout: 240 seconds]
volk_ has quit [Ping timeout: 240 seconds]
SBoolean has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Ping timeout: 240 seconds]
Creeves has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
pr00t has quit [Ping timeout: 240 seconds]
cout has quit [Ping timeout: 240 seconds]
saltsa has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
stormy3 has quit [Ping timeout: 240 seconds]
volk__ is now known as volk_
m8 has quit [Ping timeout: 240 seconds]
crazymykl has quit [Ping timeout: 240 seconds]
wald0 has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
Arkaniad|Laptop has quit [Ping timeout: 240 seconds]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
Affix has quit [Ping timeout: 240 seconds]
jimeh has quit [Ping timeout: 240 seconds]
mnemon has quit [Ping timeout: 240 seconds]
DarthGandalf has quit [Ping timeout: 240 seconds]
spinx has quit [Ping timeout: 240 seconds]
elaptics`away has quit [Ping timeout: 240 seconds]
yxhuvud has quit [Ping timeout: 240 seconds]
zaargy has quit [Ping timeout: 240 seconds]
cescalante has quit [Ping timeout: 240 seconds]
davzie has quit [Ping timeout: 240 seconds]
chrishough has quit [Ping timeout: 240 seconds]
thalweg has quit [Ping timeout: 240 seconds]
kevinfagan has quit [Ping timeout: 240 seconds]
patronus_ has quit [Ping timeout: 240 seconds]
chrishough_ is now known as chrishough
maestrojed has quit [Ping timeout: 240 seconds]
yacks has quit [Ping timeout: 240 seconds]
Guest49985 has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 240 seconds]
devyn has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
Hamled has quit [Ping timeout: 240 seconds]
Cope has quit [Ping timeout: 240 seconds]
qpok has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 240 seconds]
thumpba has quit [Ping timeout: 240 seconds]
DrOwl has quit [Ping timeout: 240 seconds]
banjara has quit [Ping timeout: 240 seconds]
adamholt has quit [Ping timeout: 240 seconds]
razum2um has quit [Ping timeout: 240 seconds]
wallerdev has quit [Ping timeout: 240 seconds]
wallerdev_ is now known as wallerdev
Some-body_ is now known as DarthGandalf
drowl_ is now known as DrOwl
Affix_ is now known as Affix
<Eiam> lemur: I'm staring at the readme..
MrDoctor has joined #ruby
<Eiam> you connect with pry-remote, you bind with binding.remote_pry is the sum of the readme
yacks has joined #ruby
<Mon_Ouie> Well binding.pry_remote also exists anyway
jimeh has joined #ruby
<lemur> yeah
s00pcan has joined #ruby
<lemur> probably also want to specify that you need to put your IP on there to connect remotely.
spyderman4g63 has quit [Ping timeout: 244 seconds]
<Eiam> don't have to from within the VM anyway
<lemur> Granted
<Eiam> Mon_Ouie: any handy way to "continue" without losing your remote session and having to reconnect?
<lemur> I use it on occasion to debug across a building.
<Eiam> Mon_Ouie: e.g. if you are cycling through a root
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lemur> There are pry sessions now that might help
<Eiam> lemur: nginix and passenger unfortunately run my app so I have to use pry_remote anyway to debug it since I can't just use like bundle exec padrino s to start a little mini server
<lemur> yeah
mtsmith85 has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
<Mon_Ouie> Eiam: You mean exiting and then re-running the pry-remote command?
<Eiam> Mon_Ouie: err cycling through a loop
<Eiam> yeah
razieliyo has quit [Ping timeout: 244 seconds]
<Eiam> like i hit "c" and it kicks me out, but its already waiting for me again on the next iteration of the loop
<Eiam> so i gotta reenter the session
mijicd has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 272 seconds]
<Mon_Ouie> There's an issue with DRb and multiple connections from the same process
<lemur> might look into pry-remote-em
adamholt has joined #ruby
<Eiam> I normally just do conditional bindings but, sometimes I literally just need to look through the data in the loop to see what I'm looking for
ClarusCogitatio has joined #ruby
eka has joined #ruby
stytown has quit [Quit: stytown]
mijicd has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yxhuvud has joined #ruby
andrewjanssen has joined #ruby
Arkaniad|Laptop has joined #ruby
yekta has quit [Quit: yekta]
Fire-Dragon-DoL has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
kireevco has quit [Quit: Leaving.]
mrjensen has quit [Remote host closed the connection]
baweaver has joined #ruby
drago777 has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
bamyyyooo14335 has joined #ruby
MrDoctor has quit [Ping timeout: 272 seconds]
<bamyyyooo14335> How can I get unique models by attribute in rails, but keeping the models (and not mapping to an attribute first)?
baroquebobcat has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
x1337807x has joined #ruby
<Mon_Ouie> For Rails specific stuff you'll want to ask on #rubyonrails
motto has quit [Quit: Sto andando via]
<Mon_Ouie> But it sounds like you want #uniq_by
workmad3 has quit [Ping timeout: 255 seconds]
<Mon_Ouie> Oh, actually it's just uniq with a block
alem0lars has joined #ruby
<mtsmith85> RubyPanther: Sorry, i was AFK before. Thanks for the last few messaages. Very Helpful!
alem0lars has quit [Client Quit]
r_rios has joined #ruby
ascarter has joined #ruby
mnemon2 is now known as mnemon
baroquebobcat has joined #ruby
Hobogrammer has joined #ruby
aspires has quit []
terrellt has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
terrellt has joined #ruby
smathieu has quit [Remote host closed the connection]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
smathieu has joined #ruby
jottr_ has joined #ruby
yubrew has quit [Remote host closed the connection]
buub has joined #ruby
wallerdev has quit [Quit: wallerdev]
lemur has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
wallerdev has joined #ruby
Ariadeno has joined #ruby
bradhe has joined #ruby
smathieu has joined #ruby
freggles has quit [Ping timeout: 248 seconds]
bruno- has quit [Ping timeout: 255 seconds]
wowXD has joined #ruby
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
Wolland has joined #ruby
jheg has quit [Quit: jheg]
dik_dak has quit [Ping timeout: 240 seconds]
jhass is now known as jhass|off
Tricon has quit [Quit: Linkinus - http://linkinus.com]
bradhe has quit [Ping timeout: 264 seconds]
wowXD has quit [Ping timeout: 260 seconds]
<sent-hil> what's the best way to read just the last line of a very big file in ruby? i was using File#seek(-1, IO::END), which returns last -1 chars, but I don't know how to get the last line
roombadaboomba has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
mtsmith85 has quit [Quit: mtsmith85]
<roombadaboomba> quick question about case, can someone help me
hobodave has quit [Quit: Computer has gone to sleep.]
hobodave has joined #ruby
hobodave has quit [Client Quit]
<Mon_Ouie> Probably not if you don't ask your question
zkay11 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<roombadaboomba> here is the code: https://gist.github.com/JasonY1/1873a845d1697e20d9ae
<roombadaboomba> Is that proper use of the || function?
<roombadaboomba> Or do I need to do a seperate "when" inbetween them all?
anaeem1 has joined #ruby
monid has joined #ruby
kyb3r_ has quit [Ping timeout: 248 seconds]
monid has left #ruby [#ruby]
monid has joined #ruby
kyb3r_ has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Tricon has joined #ruby
rodri_gore has joined #ruby
lkba has joined #ruby
roombadaboomba has quit [Read error: Connection reset by peer]
monid has left #ruby [#ruby]
boom has joined #ruby
volk_ has quit [Quit: volk_]
DrShoggoth has joined #ruby
djbkd has quit [Remote host closed the connection]
Lewix has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez5271 has joined #ruby
scarolan has joined #ruby
saarinen has quit [Quit: saarinen]
dblessing has quit [Quit: dblessing]
snath has quit [Ping timeout: 248 seconds]
ARCADIVS has joined #ruby
djbkd has joined #ruby
<slash_nick> heh, that's wild
<boom> im going to assume it is okay because the code works
riotjone_ has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
fgo has joined #ruby
<ericwood> kind of a weird use of a case statement
yusuf_000_ has quit [Quit: Leaving]
andrewlio has quit [Remote host closed the connection]
inkblots has joined #ruby
<boom> its for practice. i guess your formatting is much more eloquent and legible
jobewan has quit [Quit: Leaving]
<ericwood> it makes it much easier to read
<ericwood> if it's just one condition and an else you should nix the case statement :P
<boom> yeah, i felt like a case was a bit overkill for 2 options. but i wanted to try it
cddr has quit [Ping timeout: 244 seconds]
<ericwood> coolio
<boom> thank you eric!
<ericwood> np
b00stfr3ak has quit [Ping timeout: 272 seconds]
lkba has quit [Read error: Connection reset by peer]
<havenwood> boom: one liner: [['R', 'S'], ['P', 'R'], ['S', 'S']].any? { |a, b| p1[a] == p2[b] } ? p1 : p2
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
bruno- has joined #ruby
b00stfr3ak has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
<boom> havenwood: could you explain that example?
isodude has quit [Quit: Leaving]
geggam has quit [Remote host closed the connection]
snath has joined #ruby
kirun has quit [Quit: Client exiting]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
chipotle has quit [Quit: cya]
mikecmpbll has joined #ruby
enebo has quit [Quit: enebo]
kaiserpathos has quit []
Vivekananda_y510 has joined #ruby
alec-c4_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 272 seconds]
alec-c4 has joined #ruby
<havenwood> boom: so it starts with an array of arrays
wildroman3 has joined #ruby
<havenwood> boom: then the #any? method, which takes a block
<ericwood> oooh I like that one
<havenwood> boom: in the block check p1 vs p2
TorpedoSkyline has joined #ruby
<apeiros_> boom! one liner! :D
<havenwood> boom: then i use the ternary operator: ? :
<apeiros_> (took me a sec to figure it was a nick)
apeiros_ is now known as apeiros
Vivekananda_y510 has quit [Max SendQ exceeded]
<ericwood> haha
alec-c4_ has joined #ruby
<ericwood> I liked the roomba nick better
mtsmith85 has joined #ruby
<havenwood> apeiros: hehe
Vivekananda_y510 has joined #ruby
<ericwood> someone should use my roomba gem
<boom> weird, it defaulted to my old nick :(
Tricon has quit [Quit: Linkinus - http://linkinus.com]
einarj has quit [Remote host closed the connection]
<apeiros> ericwood: the roomba nick? what was it? humparumba? :)
<apeiros> *humparoomba
Caius has quit [Ping timeout: 255 seconds]
wildroman2 has quit [Ping timeout: 272 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
bamyyyooo14335 has joined #ruby
alec-c4 has quit [Ping timeout: 248 seconds]
Caius has joined #ruby
<boom> roombadaboomba
jdj_dk has quit [Remote host closed the connection]
Vivekananda_y510 has quit [Read error: Connection reset by peer]
devyn_ has quit [Quit: leaving]
alec-c4_ has quit [Ping timeout: 264 seconds]
devyn has joined #ruby
<boom> havenwood, so it checks the conditions, does that last statement verify if they are the same?
RaCx has quit [Quit: Computer has gone to sleep.]
<boom> havenwood, betweenthe curly braces
r_rios has quit [Quit: No Ping reply in 180 seconds.]
wildroman3 has quit [Read error: Connection reset by peer]
mtsmith85 has quit [Quit: mtsmith85]
franzip has joined #ruby
yubrew_ has joined #ruby
<boom> havenwood, im just trying to figure out where the tie goes to p1.
r_rios has joined #ruby
<havenwood> boom: oh, i forgot the `p1[1] == p2[1]`, oops
<havenwood> boom: actually i messed it all up
<boom> havenwood, i was reading up on it and i thought i wasnt fully understanding it
<havenwood> boom: multitasking ftl
sepp2k has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
<boom> havenwood, i caught the other error, but its more of a learning than you do it for me situation
r_rios has quit [Client Quit]
<boom> rather than "you-do-it-for-me" situation*
yubrew_ has quit [Ping timeout: 264 seconds]
r_rios has joined #ruby
sdouglas has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
sdouglas_ has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
CorpusCallosum has joined #ruby
bradleyprice has quit [Remote host closed the connection]
r_rios has quit [Client Quit]
axl_ has quit [Quit: axl_]
<havenwood> boom: maybe check if any pairs match, then if your arrays? match
AlexRussia has quit [Ping timeout: 240 seconds]
<boom> havenwood, i think this is good practice, i'm going to figure out how to make this work.
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
luksaur has quit [Quit: Leaving]
klaut_ has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b00stfr3ak has joined #ruby
bradleyprice has joined #ruby
<havenwood> boom: commented on your gist with some ideas, but spoilers so maybe check out after you've solved
bradhe has joined #ruby
rodri_gore_ has joined #ruby
Blue_Ice_ has quit [Ping timeout: 264 seconds]
sdouglas_ has quit [Remote host closed the connection]
rodri_gore has quit [Remote host closed the connection]
rodri_gore_ has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
rodri_gore has joined #ruby
<boom> havenwood, it was posted on eric's but i saved it :)
<boom> i'll play with it first before i put in the cheat codes
nateberkopec has joined #ruby
jaimef has quit [Excess Flood]
sqwirl has joined #ruby
ascarter has joined #ruby
sqwirl has quit [Client Quit]
mijicd has quit [Quit: leaving]
jaimef has joined #ruby
smathieu has quit [Remote host closed the connection]
franzip has quit [Quit: ...]
lmickh has quit [Remote host closed the connection]
smathieu has joined #ruby
wowXD has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Zai00 has quit [Quit: Zai00]
johnmolina has joined #ruby
rixius has quit [Quit: leaving]
Wolland has joined #ruby
Avahey_ has joined #ruby
r_rios has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
Caius has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Ping timeout: 260 seconds]
mr_foobar_baz has quit [Remote host closed the connection]
Caius has joined #ruby
scarolan has quit [Quit: Changing server]
spider-mario has quit [Remote host closed the connection]
wowXD has quit [Ping timeout: 255 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
K3dare has quit [Ping timeout: 252 seconds]
IceDragon has joined #ruby
dfinly has quit [Quit: Farewell]
nateberkopec has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
K3dare has joined #ruby
mjsmith2 has joined #ruby
buub has quit [Ping timeout: 264 seconds]
lemur has joined #ruby
srnty has joined #ruby
mikecmpbll has quit [Quit: ciao.]
cashnguns has joined #ruby
Takle has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
<kfs> any thoughts on this one?
<kfs> dyld: Library not loaded: @@HOMEBREW_CELLAR@@/openssl/1.0.1h/lib/libcrypto.1.0.0.dylib
<kfs> Referenced from: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
<kfs> i have openssl
djbkd has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Quit: Leaving]
jottr_ has quit [Ping timeout: 248 seconds]
testcore has joined #ruby
replay has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
touzin has joined #ruby
phinfonet has quit []
djbkd has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
mjsmith2 has quit [Remote host closed the connection]
shevy has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
touzin has left #ruby [#ruby]
ephemerian has quit [Quit: Leaving.]
AlexRussia has joined #ruby
shevy has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<george2> In Python, functions that don't need to be in a class can just be used directly from a module (which is not the same as Ruby's modules). Is Ruby the same way, or should (for the most part) all methods be inside a class?
fgo has joined #ruby
mjsmith2 has joined #ruby
Ariadeno has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
benzrf is now known as benzrf|offline
CorpusCallosum has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
shevy has quit [Client Quit]
mgorbach has quit [Quit: ZNC - http://znc.in]
bruno- has quit [Ping timeout: 264 seconds]
mgorbach has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
jrhe has joined #ruby
mgorbach has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
mgorbach has joined #ruby
shevy has joined #ruby
j_mcnally has quit [Ping timeout: 272 seconds]
shevy has quit [Client Quit]
northfurr has joined #ruby
djbkd has joined #ruby
mgorbach has quit [Client Quit]
Atttwww has joined #ruby
abdulsattar has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
mgorbach has joined #ruby
troulouliou_dev has joined #ruby
mgorbach has quit [Remote host closed the connection]
codeurge has joined #ruby
mgorbach has joined #ruby
northfurr has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Ping timeout: 264 seconds]
Rubass has joined #ruby
<Rubass> How come ruby has a ruby icon in my IRC?
mgorbach has quit [Client Quit]
mgorbach has joined #ruby
inkblots has quit [Remote host closed the connection]
charliesome has joined #ruby
Rubass has quit [Changing host]
Rubass has joined #ruby
djbkd has quit [Remote host closed the connection]
<Rubass> Seems like a feature in limechat lol
yubrew has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
dorei has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<kfs> ok i got wget to work by using curl instead.
danijoo has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
<bricker`work> george2: example?
danijoo has joined #ruby
<bricker`work> george2: You can call YourModule.some_method if the method is defined as `self.some_method`. I see this often for "utility modules", although it's not great OOP (then again, who cares :D )
yubrew has quit [Ping timeout: 240 seconds]
johnmolina has quit [Remote host closed the connection]
nmokru has quit [Quit: nmokru]
<george2> bricker`work: well, in Python not everything should be OOP. I'm just wondering what ruby "best practice" is.
IceDragon has quit [Ping timeout: 244 seconds]
nmokru has joined #ruby
<george2> the "utility modules" you mention are probably about the same as I'm thinking.
johnmolina has joined #ruby
IceDragon has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<george2> Functions that just have no need for object orientation. They are related, and share some information, so they could be put in a class. I'm just not sure if they *should* be.
djbkd has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
<bricker`work> george2: contrived example: https://gist.github.com/bricker/69dc4f5924a3a49448c7
<george2> Modules in ruby seem like they're used more as java Interfaces than Python modules. Is that example "correct," idiomatic usage?
bamyyyooo14335 has joined #ruby
hermanmunster has joined #ruby
<bricker`work> george2: the example I sent is correct and idiomatic depending on who you ask (some would prefer to open the String class and add instance methods "whisper" and "yell")
<boom> bricker`work, thanks for that example.
johnmolina has quit [Ping timeout: 252 seconds]
<george2> bricker`work: ok, thanks.
<bricker`work> george2: I've used modules as pseudo-interfaces before, although you don't really see that often in Ruby
<bricker`work> george2: modules in ruby are used mostly for a) code organization, and b) code reuse
sunya7a has joined #ruby
<bricker`work> (in my experience)
<george2> hm, ok. Maybe the stuff I was reading was out of date, or just plain wrong then.
<george2> just don't want to form any bad habits, or be writing Pythonic Ruby. :)
mgorbach has quit [Quit: ZNC - http://znc.in]
CorpusCallosum has joined #ruby
johnmolina has joined #ruby
mgorbach has joined #ruby
LadyRainicorn has joined #ruby
blackgoat has quit [Quit: WeeChat 0.3.8]
<bricker`work> george2: just don't write code like this :D https://gist.github.com/bricker/572749fab3f8c5af9e95
j_mcnally has joined #ruby
<george2> ugh
<george2> I'm not that noob :D
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shevy has joined #ruby
<boom> bricker`work, what is so wrong with that code?
jdj_dk has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h> boom, nothing wrong with that code :p
<wallerdev> could be worse
<boom> always end with empty ()
<george2> but it could be a lot better
<AntelopeSalad> there's not enough boilerplate in that code imo
<george2> looks like a Java dev's Ruby
<wallerdev> looks like a python dev's ruby
the_f0ster has joined #ruby
<wallerdev> hence the name of the file
jamto11 has quit [Remote host closed the connection]
<wallerdev> lol
<AntelopeSalad> i think it can be improved upon by having "self." in front of those instance variables?
<george2> that's not pythonic at all. :/
<wallerdev> yeah needs more returns
<george2> python would use @properties and snake_case
<boom> george2, means to say, challenge accepted
nmokru has quit [Quit: nmokru]
shevy has quit [Ping timeout: 260 seconds]
mgorbach has quit [Quit: ZNC - http://znc.in]
<george2> by the way, snake_case is recommended in Ruby over babyCamel, right? I read a style guide at one point, but I don't remember what it said.
<wallerdev> yeah snakeCase
<boom> snakecase
mgorbach has joined #ruby
<george2> cool
freerobby has quit [Quit: Leaving.]
<AntelopeSalad> unfortunately there's not as fool proof as pep8
<AntelopeSalad> *nothing
<george2> Yeah, I noticed that.
<AntelopeSalad> https://github.com/bbatsov/rubocop , that is the closest you'll find i think
<bricker`work> wallerdev: oh shit you're right, I forgot the retunrs
<george2> I like strict style guides, makes it easier to collaborate. Also, I've heard rubocop chokes on some things (but again, don't remember where I read that).
<wallerdev> i disagree on the numbered regex groups in that guide
<bricker`work> wallerdev: returns *
<wallerdev> naming variables in regex makes them super hard to read
<wallerdev> (?<some random text in the middle of my regex>x)
shevy has joined #ruby
<george2> bricker`work: no fair using bad Python practice and calling it Pythonic. no real Python dev would right such verbose code. :p
hermanmunster has quit [Read error: Connection timed out]
<wallerdev> much prefer (x)
<george2> *write
stytown has joined #ruby
qhartman has quit [Remote host closed the connection]
mgorbach has quit [Client Quit]