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
djbkd has quit [Remote host closed the connection]
bradleyprice has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
kldskp has joined #ruby
x1337807x has joined #ruby
Sie00 has quit [Ping timeout: 255 seconds]
JoshGlzBrk has joined #ruby
skysploit has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Mead error: Connection reset by beer]
x1337807x has quit [Client Quit]
RichardLitt has quit [Quit: RichardLitt]
kldskp has quit [Ping timeout: 259 seconds]
asdasdasdasss has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
mlr has joined #ruby
EvanR_ has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
x1337807x has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
InfraRuby has joined #ruby
terrellt has quit [Quit: Leaving...]
jmbrown412 has joined #ruby
InfraRuby has left #ruby [#ruby]
nanoyak has quit [Quit: Computer has gone to sleep.]
centipedefarmer has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 256 seconds]
centipedefarmer has joined #ruby
jmbrown412 has quit [Ping timeout: 250 seconds]
jxf has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
jayunit100 has quit [Quit: jayunit100]
ter_464 has quit [Ping timeout: 244 seconds]
centipedefarmer has quit [Remote host closed the connection]
Sawbones has joined #ruby
centipedefarmer has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
EvanR_ has joined #ruby
danijoo has joined #ruby
icebourg has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
wenshan has joined #ruby
philcrissman has quit [Ping timeout: 244 seconds]
<wenshan> On Debian jessie/sid, ran rake db:migrate and got "PG::UndefinedFile: ERROR: could not open extension control file \"/usr/share/postgresql/9.1/extension/postgis.control\": No such file or directory".
Sawbones has quit [Ping timeout: 245 seconds]
<wenshan> I have psql 9.1 and 9.3 installed, `psql --version` gives "psql (PostgreSQL) 9.3.4"
centipedefarmer has joined #ruby
<wenshan> and "/usr/share/postgresql/9.3/extension/postgis.control" exists
<wenshan> what should I do to use psql 9.3 instead for rake db:migrate?
centipedefarmer has quit [Remote host closed the connection]
yekta has quit [Quit: yekta]
gdd229 has joined #ruby
gdd229 has left #ruby [#ruby]
gdd229 has joined #ruby
BBBThunda has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
centipedefarmer has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
kaspergrubbe_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Kricir has joined #ruby
tylerkern has joined #ruby
centipedefarmer has joined #ruby
snath has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Remote host closed the connection]
oo_ has joined #ruby
skysploit has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
<patrick99e99> hey ruby buddies! quick question.. if I have a module that does module Foo; def add_methods; define_method :m; self; end; end...
<patrick99e99> self is actually not the object extending the module
<patrick99e99> but if I change that to: def add_methods; def m; self; end; end..
<patrick99e99> then it is
centipedefarmer has quit [Remote host closed the connection]
<patrick99e99> I am curious, is there a way to get the instance when using define_method ?
zz_karupa is now known as karupa
eyeamaye has quit [Quit: Leaving.]
chrishough has quit [Quit: chrishough]
Brolen has quit []
<zenspider> imap_processor version 1.5 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2014/08/imap_processor-version-1-5-has-been-released.html
danman has joined #ruby
centipedefarmer has joined #ruby
gdd229 has quit [Quit: Leaving.]
<zenspider> patrick99e99: def ... def end end doesn't do what you think it does
<zenspider> or maybe it does... it's still terrible
centipedefarmer has quit [Remote host closed the connection]
chipotle has joined #ruby
djbkd has joined #ruby
danman has quit [Client Quit]
<zenspider> methods are MADE to add methods to something (sorta). why add an add_methods method to it?
cantonic has joined #ruby
<eam> >> r = %r%zzzz%; loop do r = Regexp.new(r.to_s.gsub(r, r.to_s)) end
<eval-in> eam => /tmp/execpad-bd32e10e2eaa/source-bd32e10e2eaa:2: [BUG] Segmentation fault at 0xbcb09fe8 ... (https://eval.in/176358)
timgauthier has joined #ruby
<patrick99e99> zenspider: let me give you an example to illustrate what im trying to do
centipedefarmer has joined #ruby
bradleyp_ has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
bradleyprice has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
ter_464 has joined #ruby
Macacity has quit [Quit: Connection closed for inactivity]
centipedefarmer has joined #ruby
SilkFox_ has joined #ruby
oo_ has quit [Remote host closed the connection]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centipedefarmer has quit [Remote host closed the connection]
tyfighter has quit [Quit: <3]
djbkd has quit [Ping timeout: 255 seconds]
centipedefarmer has joined #ruby
Pharaoh2 has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Remote host closed the connection]
<patrick99e99> zenspider: basically I need a way to get self into the accessor method..
kireevco1 has quit [Ping timeout: 255 seconds]
centipedefarmer has joined #ruby
Sie00 has joined #ruby
wenshan has quit [Remote host closed the connection]
marr has quit []
centipedefarmer has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<patrick99e99> zenspider: I can accomplish it by doing this variation: https://gist.github.com/patrick99e99/d6c51044630afa1bdff8
<patrick99e99> but I would like to know how I can accomplish this by using define_method instead of def...
chipotle has quit [Quit: cya]
centipedefarmer has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
chichou has quit [Read error: Connection reset by peer]
chichou has joined #ruby
<Nowaker> what betalist/erlibird-like sites do you guys follow? i'm adding my open source startup (www.virtkick.io) to such places, and i'm wondering where else I can post it
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centipedefarmer has joined #ruby
toastynerd has quit [Remote host closed the connection]
kireevco has joined #ruby
RichardLitt has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
sergiomiranda has quit [Quit: sergiomiranda]
tkuchiki has quit [Remote host closed the connection]
testcore has quit [Quit: [BX] The Hobbits use BitchX. Shouldn't you?]
riceandbeans has joined #ruby
<riceandbeans> has anyone here ever used Palo Alto firewalls?
jamesfordummies has joined #ruby
centipedefarmer has joined #ruby
jrhorn424 is now known as zz_jrhorn424
centipedefarmer has quit [Read error: Connection reset by peer]
JBreit has joined #ruby
justinv has joined #ruby
JBreit has left #ruby [#ruby]
pietr0 has quit [Quit: pietr0]
djbkd has joined #ruby
<patrick99e99> i guess ill try stackoverflow.. thanks
InfraRuby has joined #ruby
centipedefarmer has joined #ruby
dbasch has quit [Quit: dbasch]
centipedefarmer has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesfor_ has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
centiped_ has joined #ruby
centiped_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
oo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
eyeamaye1 has joined #ruby
danijoo has joined #ruby
Sawbones has joined #ruby
chrishough has joined #ruby
jamesfordummies has quit [Ping timeout: 240 seconds]
axl_ has quit [Client Quit]
ghostmoth has quit [Quit: ghostmoth]
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 250 seconds]
centipedefarmer has joined #ruby
tylerkern has joined #ruby
kireevco has quit [Quit: Leaving.]
Channel6 has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
Sawbones has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
hgl_ has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
tylerkern has quit [Read error: Connection reset by peer]
larsam has quit [Ping timeout: 250 seconds]
tylerkern has joined #ruby
PanPan has joined #ruby
kldskp has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
dbasch has joined #ruby
tylerkern has joined #ruby
_djbkd has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iteratorP has joined #ruby
centipedefarmer has joined #ruby
sevenseacat has joined #ruby
_djbkd has quit [Remote host closed the connection]
dbasch has quit [Client Quit]
centipedefarmer has quit [Read error: Connection reset by peer]
kldskp has quit [Ping timeout: 244 seconds]
asdasdasdasss has joined #ruby
bronson has quit [Quit: bronson]
_djbkd has joined #ruby
centiped_ has joined #ruby
centiped_ has quit [Read error: Connection reset by peer]
zorak has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 272 seconds]
superscott[8] has quit []
spastorino has quit [Quit: Connection closed for inactivity]
Tricon has quit [Quit: Leaving...]
nfk has quit [Quit: yawn]
tkuchiki has joined #ruby
amystephen has quit [Ping timeout: 240 seconds]
ixti has quit [Quit: WeeChat 0.4.3]
centipedefarmer has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
centipedefarmer has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
centipedefarmer has quit [Read error: Connection reset by peer]
asdasdasdasss has quit [Ping timeout: 240 seconds]
RichardLitt has quit [Quit: RichardLitt]
vjanicek has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centipedefarmer has joined #ruby
<vjanicek> hey, one question from a new ruby programmer: if for some reason I'm reading a file where I get this as a string: '[{"id":10,"text":"Rack 3"},{"id":5,"text":"Rack 2"}]' how could I convert is as an array directly from the string?
centipedefarmer has quit [Read error: Connection reset by peer]
bricker`work has quit [Ping timeout: 256 seconds]
centipedefarmer has joined #ruby
Barrayar has joined #ruby
<benzrf> vjanicek: you want to parse the json?
centipedefarmer has quit [Read error: Connection reset by peer]
Lingo_ has quit [Quit: Lingo - http://www.lingoirc.com]
centipedefarmer has joined #ruby
icebourg_ has joined #ruby
<vjanicek> benzrf, I'm getting those arrays as strings from a text file. I would like to convert that string as an array as is as it comes correctly formatted as an array of hashes but as a string
centipedefarmer has quit [Read error: Connection reset by peer]
<Nowaker> vjanicek: but what we see there is a JSON
bbloom has quit [Quit: Computer has gone to sleep.]
jshultz has quit [Quit: Connection closed for inactivity]
centipedefarmer has joined #ruby
amystephen has joined #ruby
<vjanicek> Nowaker, sorry sorry, you are right... I'm a python programmer and I saw that like a list of dictionaries... I forgot that hashes are a bit different.
centipedefarmer has quit [Read error: Connection reset by peer]
<vjanicek> Thanks anyway. My bad
vjanicek has quit [Client Quit]
icebourg has quit [Ping timeout: 256 seconds]
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
yetanotherdave has quit [Ping timeout: 250 seconds]
meinside has joined #ruby
larsam has joined #ruby
amclain has joined #ruby
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
zorak has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
centiped_ has joined #ruby
centiped_ has quit [Read error: Connection reset by peer]
MartinCleaver has quit [Quit: MartinCleaver]
GlenK has quit []
ssvo has joined #ruby
InfraRuby has left #ruby [#ruby]
bradleyp_ has quit [Ping timeout: 255 seconds]
jamesfor_ has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
centiped_ has joined #ruby
magikfx has joined #ruby
axl_ has joined #ruby
MartinCleaver has joined #ruby
centiped_ has quit [Read error: Connection reset by peer]
centipedefarmer has quit [Ping timeout: 240 seconds]
echooo has joined #ruby
TorpedoSkyline has quit [Client Quit]
goshdarnyou has joined #ruby
mlr has quit [Ping timeout: 260 seconds]
nemesit|znc has quit [Ping timeout: 260 seconds]
magikfx has quit [Client Quit]
mary5030 has joined #ruby
Bumptious has joined #ruby
SilkFox has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 255 seconds]
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 240 seconds]
centipedefarmer has joined #ruby
robustus has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
nemesit|znc has joined #ruby
axl_ has quit [Quit: axl_]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
tokik has joined #ruby
EmacsKid has joined #ruby
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
<EmacsKid> hi
bricker`LA has joined #ruby
SilkFox has quit [Ping timeout: 256 seconds]
Barrayar has quit [Quit: Leaving]
<benzrf> EmacsKid: vim or gtfo!!!11111
<benzrf> jk jk
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
darkxploit has quit [Quit: Leaving]
centipedefarmer has joined #ruby
<EmacsKid> i'm a vim master actually
<EmacsKid> Using Emacs evil-mode. It's a better vim than vim.
centipedefarmer has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
<EmacsKid> Emacs has better interactive programming environments. Vim is only better with database interaction with the dbext plugin.
Jameser` has joined #ruby
locsmif has quit [Quit: Cya.]
Pharaoh2 has quit [Ping timeout: 260 seconds]
lidaaa has quit [Ping timeout: 255 seconds]
Jameser has quit [Ping timeout: 260 seconds]
<EmacsKid> oh. does anyone here program ruby at their job?
<sevenseacat> yes
<benzrf> >better vim than vim
<benzrf> >emacs
<benzrf> troll detected
<EmacsKid> benzrf. not a troll. I've used vim for many years before evil mode came out.
<benzrf> poo
ki0 has joined #ruby
troyready has quit [Ping timeout: 255 seconds]
<EmacsKid> there are several reasons I think Emacs is better. Emacs tends to parse it's content. Vim tends to treat things as strings.
vyorkin has quit [Ping timeout: 245 seconds]
InfraRuby has joined #ruby
<benzrf> meehhhh
<EmacsKid> not a mehh. that's a big deal.
centiped_ has joined #ruby
centiped_ has quit [Read error: Connection reset by peer]
ki0 has quit [Ping timeout: 240 seconds]
<EmacsKid> emacs has async. Not the biggest deal, but it opens the door to better interaction modes.
chichou has quit [Read error: Connection reset by peer]
<EmacsKid> neovim might close that gap but it's still not ready
_djbkd has quit [Remote host closed the connection]
chichou has joined #ruby
Barrayar has joined #ruby
centipedefarmer has joined #ruby
<benzrf> EmacsKid: hmmmmmmmmm
<benzrf> do u think that emacs could use neovim as a headless editor to get evil++
<EmacsKid> emacs has js2-mode. a real javascript parser. Antoher example of how emacs tends to parse while vim... could but doesn't.
centipedefarmer has quit [Read error: Connection reset by peer]
tjr9898 has quit [Remote host closed the connection]
Sie00 has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
eyeamaye1 has quit [Quit: Leaving.]
axl_ has quit [Quit: axl_]
djbkd has joined #ruby
wjimenez_ has joined #ruby
<bricker`LA> I can't install ruby 2.x on Yosemite with ruby-install, getting this error: https://gist.github.com/bricker/246083e9f941c8586864 Has anybody else had this problem?
<EmacsKid> it could. I'm not sure how much effort it would take to integrate real neovim.
<bricker`LA> I can install 1.9.x fine
axl_ has joined #ruby
<sevenseacat> bricker`LA: looks like ruby is already installed?
hamakn has quit [Remote host closed the connection]
_2_Miriam has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centipedefarmer has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
_2_Miriam has left #ruby [#ruby]
wjimenez5271 has quit [Ping timeout: 264 seconds]
wjimenez_ has quit [Ping timeout: 240 seconds]
<bricker`LA> oh damn that is the wrong gist
centipedefarmer has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
<bricker`LA> This is what I meant to post: https://gist.github.com/bricker/9a24cfd88415cd5db61f
razum2um has joined #ruby
mistergibson has quit [Quit: Quitting ... be good to each other :)]
Spami has quit [Ping timeout: 250 seconds]
<bricker`LA> it's something to do with gcc I think. I install gcc via homebrew, and apple-gcc4.2
<bricker`LA> tried it with both
hgl_ has quit [Remote host closed the connection]
pontiki has joined #ruby
<pontiki> hi
hgl_ has joined #ruby
<EmacsKid> hiho
axl_ has quit [Quit: axl_]
<bricker`LA> meh, I'm going to try a reboot, what the hell
bricker`LA has quit [Quit: leaving]
centipedefarmer has quit [Ping timeout: 272 seconds]
<zenspider> oedipus_lex version 2.3.2 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2014/08/oedipus_lex-version-2-3-2-has-been-released.html
kireevco has joined #ruby
lidaaa has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
skysploit has joined #ruby
bricker`LA has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
kireevco has joined #ruby
kldskp has joined #ruby
<bricker`LA> lol nope
philcrissman has joined #ruby
<bricker`LA> *sigh*
<bricker`LA> this is what I get
dpbus has joined #ruby
tokik has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
tokik has joined #ruby
banjara has quit [Read error: Connection reset by peer]
kldskp has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
asdasdasdasss has joined #ruby
cantonic has quit [Ping timeout: 244 seconds]
cantonic has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
tectonic has joined #ruby
skysploit has quit []
hamakn has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
asdasdasdasss has quit [Ping timeout: 264 seconds]
uokesita has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smooks has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylerkern has joined #ruby
mlr has joined #ruby
mikepack has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrbrklyn has joined #ruby
wallerdev has joined #ruby
<mrbrklyn> anyone from NYC?
bronson has joined #ruby
xlogic has quit []
smooks has joined #ruby
ter_464 has quit [Quit: Leaving]
krz has joined #ruby
mlr has quit [Ping timeout: 264 seconds]
Avahey_ has joined #ruby
uokesita has quit [Quit: uokesita]
GriffinHeart has joined #ruby
seamon has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
Pharaoh2 has joined #ruby
spastorino has joined #ruby
chipotle has joined #ruby
timonv_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Pharaoh2 has quit [Ping timeout: 260 seconds]
danijoo has joined #ruby
kriskropd has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
RichardLitt has joined #ruby
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
Cache_Money has joined #ruby
dpbus has quit [Quit: Computer has gone to sleep.]
dpbus has joined #ruby
hgl_ has quit [Quit: Lingo - http://www.lingoirc.com]
reset has quit [Ping timeout: 240 seconds]
kriskropd has joined #ruby
chichou has quit []
dpbus has quit [Ping timeout: 250 seconds]
larsam has quit [Read error: Connection reset by peer]
<gr33n7007h> s = Socket.new(2,1,0); s.connect Socket.pack_sockaddr_in(80, "example.com"); s.addr #undefined method addr but s = TCPSocket.new("example.com", 80); s.addr and s.peeraddr work?
iamjarvo has joined #ruby
seamon has quit [Quit: Zzzzzzz]
<sevenseacat> different classes? need context?
<gr33n7007h> sevenseacat, How would I get the peeraddr from the the former any ideas?
chipotle has quit [Quit: cya]
<sevenseacat> not enough context
RichardLitt has quit [Quit: RichardLitt]
jayunit100 has joined #ruby
<gr33n7007h> What other context do I need to give?
Cache_Money has quit [Quit: Cache_Money]
bronson has quit [Quit: bronson]
tectonic has quit []
GriffinHeart has quit [Remote host closed the connection]
tylerkern has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
<sevenseacat> Socket does not inherit from IPSocket. addr and peeraddr are defined on IPSocket
<sevenseacat> google is amazing
tylerkern has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<gr33n7007h> I see said the blind man to his wife :)
nso95 has joined #ruby
GriffinHeart has joined #ruby
<sevenseacat> i dont know anything about sockets, but thats why s.addr and s.peeraddr dont work for your Socket instance.
siwica has quit [Remote host closed the connection]
snath has joined #ruby
<gr33n7007h> This should suffice Socket.getaddrinfo("example.com", 80, nil, :STREAM)
fold has quit [Quit: WeeChat 0.4.3]
Sawbones has joined #ruby
Panicky has quit [Ping timeout: 250 seconds]
brianherman has quit [Read error: Connection reset by peer]
<gr33n7007h> thanks sevenseacat I understand now :)
<sevenseacat> awesome.
<gr33n7007h> should of read the docs first
michaeldeol has joined #ruby
<gr33n7007h> when in doubt give ruby a shout
tectonic has joined #ruby
gogohome has joined #ruby
djbkd has joined #ruby
EmacsKid has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
kldskp has joined #ruby
braincra- has quit [Quit: bye bye]
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
abuzze has joined #ruby
renier has joined #ruby
seamon has joined #ruby
InfraRuby has left #ruby [#ruby]
kldskp has quit [Ping timeout: 250 seconds]
asdasdasdasss has joined #ruby
abuzze_ has quit [Ping timeout: 255 seconds]
wjimenez_ has joined #ruby
pontiki has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
RichardLitt has joined #ruby
eka has joined #ruby
braincrash has joined #ruby
mlr has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
eyeamaye has joined #ruby
Logico has quit [Quit: Saindo]
<gogohome> Hello
CaptainJet has quit []
mattmcclure has quit [Quit: Connection closed for inactivity]
alvaro_o has quit [Quit: Ex-Chat]
jmeeuwen has quit [Ping timeout: 256 seconds]
gogohome has left #ruby [#ruby]
GinoMan has joined #ruby
seamon has quit [Quit: Zzzzzzz]
nso95 has left #ruby [#ruby]
larsam has joined #ruby
InfraRuby has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
justinv has quit [Remote host closed the connection]
keen_____ has joined #ruby
maximski has joined #ruby
oo_ has quit [Remote host closed the connection]
gogohome has joined #ruby
<gogohome> what is arduino?
<sevenseacat> what is google?
keen____ has quit [Ping timeout: 272 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
jmeeuwen has joined #ruby
toastynerd has joined #ruby
dseitz has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
Pharaoh2 has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
<ari-_-e> what is love?
sputnik13 has joined #ruby
<gogohome> explain me arduino?
<sevenseacat> baby dont hurt me
<gogohome> why?
<ari-_-e> bahaha
oo_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
maximski has quit []
<gogohome> ari-_-e: you know it?
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
aspires has quit []
RichardLitt has joined #ruby
RichardLitt has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
RichardLitt has joined #ruby
Pharaoh2 has quit [Ping timeout: 255 seconds]
Emmanuel_Chanel has joined #ruby
oo_ has quit [Remote host closed the connection]
ki0 has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
Sawbones has quit []
djbkd has quit [Quit: My people need me...]
saarinen has joined #ruby
Deele has quit [Read error: No route to host]
ki0 has quit [Ping timeout: 256 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez5271 has joined #ruby
patrick99e99 has joined #ruby
wjimenez5271 has quit [Client Quit]
devdazed has quit [Ping timeout: 245 seconds]
<gogohome> ari-_-e: are you both python and ruby?
asmodlol has quit [Quit: Leaving]
<ari-_-e> yes, I am the personification of python and ruby
<ari-_-e> and several other languages
philcrissman has joined #ruby
echooo1 has joined #ruby
<ari-_-e> many primitive cultures have erected idols in my honor
devdazed has joined #ruby
echooo has quit [Ping timeout: 246 seconds]
justinv has joined #ruby
GinoMan has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 272 seconds]
philcrissman has quit [Ping timeout: 260 seconds]
<gogohome> ari-_-e: you know arduino?
chipotle has joined #ruby
wjimenez_ has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
totem has joined #ruby
totem has quit [Max SendQ exceeded]
gogohome has left #ruby [#ruby]
InfraRuby has left #ruby [#ruby]
Cache_Money has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
GinoMan has joined #ruby
chipotle_ has joined #ruby
wjimenez5271 has quit [Ping timeout: 272 seconds]
chipotle has quit [Ping timeout: 255 seconds]
kldskp has joined #ruby
saarinen has quit [Quit: saarinen]
chipotle_ has quit [Ping timeout: 256 seconds]
asdasdasdasss has joined #ruby
chipotle has joined #ruby
lidaaa has quit [Ping timeout: 255 seconds]
kldskp has quit [Ping timeout: 272 seconds]
timgauthier has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
amystephen has quit [Quit: amystephen]
toastynerd has quit [Remote host closed the connection]
cschneid has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
kldskp has joined #ruby
Cache_Money has quit [Ping timeout: 250 seconds]
anaeem1 has joined #ruby
chrishough has quit [Quit: chrishough]
Channel6 has quit [Quit: Leaving]
Cache_Money has joined #ruby
yfeldblu_ has joined #ruby
InfraRuby has joined #ruby
mikepack has joined #ruby
chipotle has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
_whitelogger has joined #ruby
klaut has joined #ruby
chrishough has quit [Quit: chrishough]
dwts has joined #ruby
Wixy has quit [Read error: Connection reset by peer]
jprovazn has joined #ruby
Wixy has joined #ruby
Wixy has quit [Changing host]
Wixy has joined #ruby
toastynerd has joined #ruby
eyeamaye has quit [Quit: Leaving.]
goodenough has quit []
alem0lars has quit [Quit: Going AFK...]
kriskropd has joined #ruby
gauke has joined #ruby
momomomomo has quit [Quit: momomomomo]
ziyadb has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
saarinen has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
Sid05 has quit [Ping timeout: 240 seconds]
InfraRuby has joined #ruby
newUser1234 has quit [Ping timeout: 246 seconds]
elektronaut has joined #ruby
canton7 has joined #ruby
{xenomorph} has joined #ruby
jinie has joined #ruby
leslie has joined #ruby
heyimwill has joined #ruby
Veidit has joined #ruby
oo_ has quit [Remote host closed the connection]
<arup_r> I am too much weak in Regex. I just wanted to know the diff between [\s\\n] and [\s\n]. http://rubular.com/r/Y8vYaAjaB2
andrewlio has joined #ruby
duper has joined #ruby
oo_ has joined #ruby
<arup_r> If I use [\s\n] it is not recognising the new lines..
<arup_r> Why ?
pr0t has quit [Ping timeout: 245 seconds]
<arup_r> How to recognize space or newlines using regex
michael_lee has joined #ruby
wwalker has quit [Ping timeout: 250 seconds]
dawkirst has quit [Remote host closed the connection]
wwalker has joined #ruby
Ayey_ has joined #ruby
relix has joined #ruby
zz_LoRdToLsToI has joined #ruby
<sevenseacat> interesting
<sevenseacat> the code bases i work on are miniscule in comparison lol
<Hanmac> arup_r: your test string does not have new lines
<arup_r> sorry
wjimenez5271 has quit [Remote host closed the connection]
<Hanmac> arup_r: as you can see it does work and it does detect the new lines
asdasdasdasss has joined #ruby
<arup_r> not sure \s this or [ \n] ?
Takle has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
mlr has joined #ruby
<arup_r> Hi
<sevenseacat> according to `rake stats`(probably not the best measure but eh) my current project has 17K lines of code
<arup_r> \s is same as [ \t\r\n\f]
<sevenseacat> though that doesnt count the gems it uses
maestrojed has quit [Quit: Computer has gone to sleep.]
<shevy> sevenseacat well I think the main problem was that he used java, but I also had seen another programmer who wrote in scheme
alem0lars has joined #ruby
<shevy> then he was tired, switched to python, got into other problems and abandoned the game completely (http://downloads.sourceforge.net/project/nazghul/nazghul/)
dEPy has joined #ruby
max06 has joined #ruby
<shevy> "Bigger is just something you have to live with in Java."
<shevy> hahaha
anarang has joined #ruby
vyorkin has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
<txdv> just like i have to live with my wife
asdasdasdasss has quit [Ping timeout: 250 seconds]
<arup_r> lol
gauravagarwalr has joined #ruby
gauravag_ has joined #ruby
Takle has joined #ruby
mlr has quit [Ping timeout: 272 seconds]
<shevy> "I find myself focusing on Java because I have this enormous elephant of a code base that I'm trying to revive this week."
<shevy> hahaha
<shevy> enormous elephant of a code base
<shevy> he has an elephant
<shevy> what does ruby have?
<pipework> Is it his wife?
<apeiros> hm, 32KLoC for the "core" app. does not include the ~15 engines it loads :)
axsuul has quit [Ping timeout: 255 seconds]
InfraRuby has left #ruby [#ruby]
<arup_r> shevy Not getting your discussions..too much HiFi.. :(
<shevy> arup_r have a beer man
<arup_r> My wife will beat me then.. ;)
Mon_Ouie has joined #ruby
<shevy> man
banjara1 has quit [Quit: Leaving.]
<shevy> what's with you married sissies
<apeiros> jealous?
<pipework> apeiros: Yeah, usually I have to beat myself off when I've been drinking. :(
sepp2k has quit [Quit: Leaving.]
<sevenseacat> nothing wrong with being married, not that i am
* apeiros wonders whether "beat off" means what he thinks it means
<sevenseacat> apeiros: likely.
zitsel has joined #ruby
<arup_r> shevy Hehe.. Drinking is banned in India except water.. :-)
pranny has joined #ruby
<txdv> you mean drinking alcohol is not allowed in india?
bayed has joined #ruby
zitsel has quit [Client Quit]
<arup_r> Yes..
jottr has joined #ruby
<arup_r> But people do
<apeiros> was going to ask on how well that works…
<arup_r> It is considered as a bad habbit
<arup_r> :-(
<apeiros> the USA tried it once too and failed miserably
<Hanmac> shevy for my rwx project: "LANG=C wc -l `git ls-files` | tail -n1" => 35113 total
<apeiros> forbidding drugs never worked. pointless IMO. the money spent on enforcing it could be put to much better use.
<pipework> Hanmac: Small hippo at best.
Xeago has joined #ruby
toastynerd has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
<sevenseacat> ah if i do that i get 61K lines... wow
<arup_r> apeiros Yes.. your thought is perfect
<arup_r> as per Indian thought
<arup_r> :)
lid_ has quit [Ping timeout: 246 seconds]
<txdv> i once read a story about some elephants in india breaking somewhere in drinking a shitton of booze
<txdv> so i wondered how that story could have been possible if alcohol consumption is forbidden
Sammael has joined #ruby
philcrissman has joined #ruby
pr0t has joined #ruby
<Hanmac> pipework: yeah but thats only the source not the compiled stuff ... the source is only 1.4% comprared to the size of the compiled stuff ;P (if i count the .o files too) ;P
clauswitt has joined #ruby
<arup_r> Current Govt. increased tax on Tobacco .. so I reduced smoking ... as it is too costly.. :-(
<pipework> Hanmac: I don't think that counts in LOC competitions.
<Hanmac> nah i does not, but it was fun too see what such tiny code does make such many size in *.o and *.so files
luckyruby has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hanmac> specially if you have massive use of macros ;P
Morkel has joined #ruby
totem has joined #ruby
totem has quit [Max SendQ exceeded]
Ilyas has joined #ruby
bronson has quit [Quit: bronson]
<apeiros> I think hanmac aims for 1 LOC in his files. where that one line is "GENERATE_ALL_THE_CODES"
philcrissman has quit [Ping timeout: 260 seconds]
<shevy> arup_r my coworker is from India but he does not smoke, so neither should you!
mountaingoat has joined #ruby
guardian` is now known as guardian
clauswit_ has joined #ruby
<mountaingoat> any tips on how to take the max of a number in a liquid template? e.g. {{ [2,5].max }} doesn't seem to work
<arup_r> shevy Yes it is bad.. I am also reducing the rate .. Now 2 times in a day... I want live many many days.. Man
Guest37458 has quit [Quit: leaving]
<apeiros> so per year of smoking, you reduce your lifetime by 3.5 days :)
clauswitt has quit [Ping timeout: 264 seconds]
alem0lars has quit [Quit: Going AFK...]
<arup_r> I started 3 years back..
<arup_r> I love my wife.. so I will quit it too..
dawkirst has joined #ruby
Barrayar has quit [Ping timeout: 272 seconds]
<arup_r> I meant I will quit smoking too...
sk87 has joined #ruby
arup_r has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
<txdv> i hate my wife so i will quit smoking too to get on her nerves as many days as possible
radic has quit [Ping timeout: 260 seconds]
radic has joined #ruby
coderhs has joined #ruby
mercwithamouth has joined #ruby
havenwood has quit [Remote host closed the connection]
qba73 has joined #ruby
LangeOortjes has joined #ruby
alem0lars has joined #ruby
dawkirst has joined #ruby
<Hanmac> apeiros: hey! that would be possible but i dont think rdoc would like that ... recently i have written a file that has more rdoc comments than actual code ;P
jottr has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
luckyruby has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
alem0lars has quit [Client Quit]
dopie has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
dopie has joined #ruby
mijicd has joined #ruby
oo_ has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
oo_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
patrick99e99 has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
toastynerd has joined #ruby
Atttwwww has quit [Ping timeout: 245 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LiohAu has joined #ruby
ghr has joined #ruby
mikecmpbll has joined #ruby
bhaak_ is now known as bhaak
toastynerd has quit [Ping timeout: 244 seconds]
kaspergrubbe_ has joined #ruby
oo_ has quit [Remote host closed the connection]
vinleod has joined #ruby
olivier_bK has joined #ruby
vinleod has quit [Max SendQ exceeded]
ardsrk has quit [Quit: Connection closed for inactivity]
GriffinHeart has joined #ruby
oo_ has joined #ruby
asdasdasdasss has joined #ruby
mlr has joined #ruby
gauravagarwalr has quit [Read error: Connection reset by peer]
gauravag_ has quit [Read error: Connection reset by peer]
gaurava__ has joined #ruby
gaurav___ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
ItSANgo has joined #ruby
chth0n has joined #ruby
joonty has joined #ruby
Barrayar has joined #ruby
axsuul has joined #ruby
timonv_ has joined #ruby
alem0lars has joined #ruby
W0rmDr1nk has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
asdasdasdasss has quit [Ping timeout: 272 seconds]
mlr has quit [Ping timeout: 255 seconds]
ki0 has joined #ruby
ki0 has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
ki0 has joined #ruby
Wolland has quit [Remote host closed the connection]
Pharaoh2 has quit [Remote host closed the connection]
yfeldbl__ has joined #ruby
Wolland has joined #ruby
Pharaoh2 has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
hellangel7 has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
<ddv> smoking is disgusting
<ddv> I can't stand people who smoke
yfeldblu_ has quit [Ping timeout: 250 seconds]
alexju has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
Pharaoh2 has quit [Ping timeout: 264 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
ardsrk has joined #ruby
pr0t has quit [Ping timeout: 240 seconds]
gaussblurinc1 has joined #ruby
jaygen_ has joined #ruby
ephemerian has joined #ruby
jaygen has quit [Ping timeout: 255 seconds]
InfraRuby has joined #ruby
krisquigley has joined #ruby
<apeiros> ddv: I don't care about people killing themselves slowly - as long as they do it at least 200m away from me
CpuID has joined #ruby
<apeiros> I hate it when they pull out their cigarette in the middle of a crowd where you can't easily go away and start smoking :(
<ddv> apeiros: exactly
kaspergrubbe_ has quit [Read error: No route to host]
kaspergrubbe_ has joined #ruby
pr0t has joined #ruby
LangeOortjes has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
yfeldbl__ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
W0rmDr1nk has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
kaspertidemann has quit [Ping timeout: 245 seconds]
GriffinHeart has joined #ruby
workmad3 has joined #ruby
mijicd has quit [Remote host closed the connection]
havenwood has joined #ruby
sevenseacat has quit [Quit: Leaving.]
alem0lars has quit [Quit: Going AFK...]
<arup_r> I do know there is no difference between Kernel#raise and Kernel#fail. Still I am confirming from you.. Am I right ?
GriffinHeart has quit [Ping timeout: 272 seconds]
timonv_ has quit [Remote host closed the connection]
ViPi2 has quit [Ping timeout: 260 seconds]
<apeiros> they're aliases. no difference.
havenwood has quit [Ping timeout: 264 seconds]
<wasamasa> another thing stolen from elisp!
<wasamasa> aliases
Jackneill has joined #ruby
jhass|off is now known as jhass
rdark has joined #ruby
toastynerd has joined #ruby
Jameser` has quit [Remote host closed the connection]
<arup_r> apeiros: Feeling happy
<gaussblurinc1> hi
benvds has quit [Quit: leaving]
benvds has joined #ruby
dopie has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
dopie has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
kaspertidemann has joined #ruby
pranny has quit [Quit: Leaving.]
CpuID has quit [Read error: Connection reset by peer]
creede has quit [Quit: Leaving]
max061 has joined #ruby
max06 has quit [Ping timeout: 250 seconds]
<lxsameer> hi, I included a module in my class but an instance method which is defined in module is protected in my class. is it ok ?
sepp2k has joined #ruby
asdasdasdasss has joined #ruby
tiguser has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
<arup_r> Can anyone tell me how :of works here https://github.com/boris-s/yzz/blob/master/lib/yzz/side.rb#L68 I see :of is a key
parzo has joined #ruby
mlr has joined #ruby
<jhass> of is a keyword argument
tiguser has joined #ruby
<jhass> it's not actually the symbol :of here
max061 has quit [Quit: Leaving.]
banister has joined #ruby
pranny1 has joined #ruby
max06 has joined #ruby
Jameser has joined #ruby
brandon__ has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
<arup_r> Ok
philcrissman has joined #ruby
asdasdasdasss has quit [Ping timeout: 255 seconds]
pranny has quit [Ping timeout: 260 seconds]
mlr has quit [Ping timeout: 250 seconds]
<arup_r> jhass I forgot the existence of keyword argument..
wallerdev has quit [Quit: wallerdev]
sputnik13 has joined #ruby
n1x has quit [Ping timeout: 246 seconds]
naw_ has joined #ruby
naw has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
Photism has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
luckyruby has joined #ruby
brandon_ has joined #ruby
pranny1 has quit [Remote host closed the connection]
kaspertidemann has quit [Read error: Connection reset by peer]
TieSoul has quit [Ping timeout: 255 seconds]
kaspertidemann has joined #ruby
echooo has joined #ruby
echooo1 has quit [Ping timeout: 245 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
dumdedum has joined #ruby
ptrrr has joined #ruby
kalleth_ is now known as kalleth
Wolland has joined #ruby
spider-mario has joined #ruby
GriffinHeart has joined #ruby
mr_foobar_baz has joined #ruby
sputnik13 has joined #ruby
InfraRuby has left #ruby [#ruby]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Port3M5[Work] has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
sputnik13 has quit [Client Quit]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
InfraRuby has joined #ruby
ViPi2 has joined #ruby
ViPi2 is now known as Vez
Vez is now known as Vezz
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
Vezz has quit [Client Quit]
Gaen has joined #ruby
gaurava__ has quit [Remote host closed the connection]
gaurav___ has quit [Remote host closed the connection]
toastynerd has joined #ruby
echooo has quit [Quit: echooo]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
PeterBoy has joined #ruby
supermarkettoday has joined #ruby
Gaen has quit [Client Quit]
supermarkettoday has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 255 seconds]
supermarkettoday has joined #ruby
PeterBoy has quit [Client Quit]
shredding has quit [Quit: shredding]
havenwood has joined #ruby
Shidash has quit [Ping timeout: 272 seconds]
supermarkettoday has quit [Remote host closed the connection]
<arup_r> One more help I need is what is the need of super here https://github.com/boris-s/yzz/blob/master/lib/yzz.rb#L38 ?
Port3M5[Work] has joined #ruby
<arup_r> Inside the module I never saw #intialize.. What is the significance of it
<arup_r> ?
supermarkettoday has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
elico has quit [Read error: Connection reset by peer]
elico has joined #ruby
alem0lars has joined #ruby
mrfoto has joined #ruby
shredding has joined #ruby
kaspertidemann has quit []
mrfoto has quit [Client Quit]
mrfoto has joined #ruby
mrfoto has quit [Client Quit]
jottr has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
supermarkettoday has quit [Ping timeout: 260 seconds]
techsethi has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 244 seconds]
abuzze_ has joined #ruby
towbes has quit [Ping timeout: 250 seconds]
abuzze has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
<workmad3> arup_r: initialize is the constructor method
<arup_r> I know
chipotle has joined #ruby
<arup_r> I meant to say
shaileshg has quit [Quit: Connection closed for inactivity]
<arup_r> Inside the module what is the need to to have #initialize ?
<ddv> to setup the module
Guest37821 has quit [Ping timeout: 244 seconds]
<workmad3> arup_r: read the comments? ;)
<arup_r> Ohh! Closuring ;)
<workmad3> arup_r: and consider it... initialize is still just a method
top4o has joined #ruby
duncannz has quit [Ping timeout: 260 seconds]
<arup_r> Ahh.. and super is calling ???
<workmad3> arup_r: no...
gauravagarwalr has joined #ruby
gauravag_ has joined #ruby
<arup_r> I meant #super is calling which constructor
<arup_r> ?
<workmad3> arup_r: super continues on the way to any *other* initialize methods up the method hierarchy
asdasdasdasss has joined #ruby
Guest9259 has quit []
<workmad3> arup_r: ok... I'll explain rather than provide hints
GriffinHeart has quit [Remote host closed the connection]
<arup_r> Please
<workmad3> arup_r: putting 'initialize' in a module means that when you include that module, the class you included it in gains an initialize method
<workmad3> arup_r: which means that the class now has a constructor
mlr has joined #ruby
<arup_r> Ok.. If the class also have its own constructor..then ?
<workmad3> arup_r: now, if there are other initialize methods further up in the inherited hierarchy (e.g. other modules, superclass constructors) then calling 'super' will proceed on to call them
<workmad3> arup_r: if the class has its own initialize instance method, that will shadow the module initialize method (same as with any other method)
<arup_r> humm..
<workmad3> arup_r: so you'd also need to call 'super' in the class's initialize method
banister has joined #ruby
GriffinHeart has joined #ruby
<arup_r> Cleared... some noise introduced in my understanding ..now it is OK
<arup_r> Thanks
<workmad3> arup_r: it does help to remember than even these 'special' methods like initialize are really just normal methods
<workmad3> arup_r: so they behave exactly the same as any other method, they're just called automatically in some instances
<workmad3> arup_r: so knowledge about how mixing in methods from a module applies just as much to initialize as any other method
asdasdasdasss has quit [Ping timeout: 260 seconds]
mlr has quit [Ping timeout: 250 seconds]
<arup_r> Got it.. And the Author used the power of closure.. as lazy object creation
<workmad3> arup_r: no... no closures in play there
<arup_r> Wait
<workmad3> arup_r: or do you mean in the hash default proc?
TorpedoSkyline has joined #ruby
stef_204 has joined #ruby
<arup_r> See the https://github.com/boris-s/yzz/blob/master/lib/yzz/side_pair.rb#L10 line which is confined inside the closure
LeShadow has joined #ruby
<arup_r> As the time of object creation dimension value is not provided
<arup_r> Cell.new
<LeShadow> so I have the following question, I installed rvm and did “rvm user gemsets”. This should allow me to install gems in my homedir, correct?
<LeShadow> Now the problem is, when I do gem install gemname
<LeShadow> it still installs in /usr/local/rvm/...
<LeShadow> what am I doing wrong?
<arup_r> That's why I am telling *lazy*
<arup_r> Might be I am wrong.. It looks so
<arup_r> When you will call the method #along...
<arup_r> then only all will wake up the way actually Hash.new { |h,k| .. } works
<workmad3> arup_r: right... you meant the hash default proc was doing lazy construction... yeah
<workmad3> arup_r: I thought you were still on the initialize chaining ;)
<arup_r> workmad3 Feeling good.. I started to understand Ruby
<arup_r> :-)
franks2 has joined #ruby
eka has joined #ruby
<LeShadow> does anyone have an idea what i’m doing wrong?
St_Marx has joined #ruby
<workmad3> LeShadow: first question - did you activate a gemset before installing the gem or is it still the default gemset?
<LeShadow> I didn’t activate any gemset at all
<LeShadow> the first gem I wanted to install in my home dir was bundler
<workmad3> LeShadow: that could be the issue then... probably worth asking in #rvm though
niik00 has joined #ruby
AlSquire has joined #ruby
mr_foobar_baz has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
DrCode has quit [Write error: Broken pipe]
o0oo0o has quit [Write error: Connection reset by peer]
<jhass> LeShadow: you installed RVM globally / as root. That's what you did wrong
mr_foobar_baz has joined #ruby
towbes has joined #ruby
<LeShadow> jhass howso?
<niik00> Hi guys, I have a little question about architecture. I'd like to build an API which will be contacted by multiple client types : ios, android, web site, w/e. Is it *better* to build a rails app which will include my API + my web site or to make a Sinitra app for the API and a rails app for the web site ?
DrCode has joined #ruby
brianherman has joined #ruby
o0oo0o has joined #ruby
dangerousdave has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
jottr has quit [Ping timeout: 272 seconds]
Beoran has quit [Ping timeout: 264 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
luckyruby has quit [Quit: Leaving...]
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smooks has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niik00 has left #ruby [#ruby]
fgo has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
tjr9898 has quit [Remote host closed the connection]
kevkev_ has quit [Quit: Lingo - http://www.lingoirc.com]
supermarkettoday has joined #ruby
eka has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
Beoran has joined #ruby
<arup_r> Do anyone use Mac here ? If so how can I split the console vertically ?
<arup_r> out of topic... But if I get help.. will be good
<arup_r> But after typing screen what need to do.. not mentionedf
xkami has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
mupkoo has joined #ruby
phinfonet has joined #ruby
<tsunamie> Hey guyys, please be kind. been googling for 30 minutes and figured best to ask in here. Is there a simple text based guide that shows me how to build a basic website using Ruby on Rails?
Pharaoh2 has quit [Remote host closed the connection]
<jhass> tsunamie: http://guides.rubyonrails.org also better ask in #rubyonrails
<tsunamie> not found one that I can use yet, some of them eithier to basic or to advanced
Pharaoh2 has joined #ruby
havenwood has joined #ruby
<tsunamie> jhass, ty
ziyadb has quit [Quit: Connection closed for inactivity]
klaut has quit [Remote host closed the connection]
Pharaoh2 has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: Going AFK...]
havenwood has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
Xeago has joined #ruby
kaspertidemann has joined #ruby
sn0wb1rd has quit [Ping timeout: 255 seconds]
ardsrk has quit [Quit: Connection closed for inactivity]
mijicd has joined #ruby
TorpedoSkyline has joined #ruby
sn0wb1rd has joined #ruby
<xkami> There's ruby on rails for ruby is there anything for python?
Pharaoh2 has joined #ruby
<xkami> I'll ask in python >_>
anarang has quit [Quit: Leaving]
<wasamasa> django
<wasamasa> though it's less magic
<wasamasa> and way less hyped
philcrissman has joined #ruby
jaygen has joined #ruby
phoo1234567 has joined #ruby
nfk has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
clauswitt has joined #ruby
phoo1234567 has joined #ruby
TorpedoSkyline has quit [Ping timeout: 240 seconds]
ptrrr has quit [Quit: ptrrr]
kldskp_ has joined #ruby
jaygen_ has quit [Ping timeout: 255 seconds]
philcrissman has quit [Ping timeout: 240 seconds]
amystephen has joined #ruby
smooks has joined #ruby
sopheny has joined #ruby
kldskp has quit [Ping timeout: 260 seconds]
sopheny has quit [Client Quit]
asdasdasdasss has joined #ruby
mlr has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
TieSoul has joined #ruby
kyb3r_ has quit [Quit: Leaving]
maximski has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
asdasdasdasss has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
mlr has quit [Ping timeout: 264 seconds]
GriffinHeart has quit [Remote host closed the connection]
alem0lars has joined #ruby
kldskp_ has quit [Read error: Connection reset by peer]
_bart has joined #ruby
<_bart> Hi
<_bart> I'm using Exuberant Ctags 5.8 on a big project, and I get this after some time: [1] 10700 segmentation fault ctags -R .
<Hanmac> hm is ctags a rails app?
<jhass> oO Hanmac doesn't know ctags?
<Hanmac> hm no what does it do?
<workmad3> Hanmac: creates a big file of stuff from your code which can be fed into tab-completion in things like vim
Xeago has quit [Read error: Connection timed out]
<jhass> like, where does that function come from and what's its signature look like
<jhass> it doesn't work too well for Ruby in my experience
Xeago has joined #ruby
<_bart> it isn't designed for ruby, but for C, but yeah, it's quite popular and works nice with CtrlP in vim
<workmad3> jhass: I tend to get better success from just ctrl-n completion :)
smooks has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> Hanmac: but since all you do is writing C++ and claiming it would be Ruby, I really thought you knew it oO
Takle has quit [Remote host closed the connection]
<Hanmac> ah ok ... i use eclipse for my bigger projects but sometimes also for my small ruby ones ... but most of the time i dont use tab-completion because i might not trust it
<_bart> Is there maybe another tag generation thing that works well with Ruby (on Rails) projects and Vim CtrlP?
<Mon_Ouie> I like clang to complete C/C++ stuff (don't know anything for Ruby though)
<jhass> wasn't there some new experimental project? If I only could recall that name...
<workmad3> _bart: have you already ruled out the default ctrl-n behaviour in vim as unsuitable?
<wasamasa> jhass: experimental?
abdulsattar has joined #ruby
<workmad3> jhass: YouCompleteMe?
kloeri has quit [Ping timeout: 608 seconds]
<wasamasa> jhass: I hope you're not coming up with that java thingie :P
<jhass> no no
<jhass> in ruby for ruby, pretty sure there was something
<workmad3> hmm, not familiar with that one
<wasamasa> there's robe which uses the introspection abilities of a repl
<wasamasa> static analysis in ruby for ruby would be better though
<wasamasa> something akin to jedi for python
gilesw has quit [Ping timeout: 240 seconds]
kloeri has joined #ruby
<jhass> okay, I'm wrong, it's not new but rather stalled again, but I meant rsense
<wasamasa> that's in java
<wasamasa> :P
Cereal` has joined #ruby
<jhass> only 60% according to github! :P
<wasamasa> they just slapped some ruby over it
<jhass> alomost 30% ruby!
gilesw has joined #ruby
<wasamasa> but the server runs java
<wasamasa> so...
<arup_r> Any idea.. what is the need of Object#tap here https://github.com/boris-s/yzz/blob/master/lib/yzz/side.rb#L102 ?
Takle has joined #ruby
<arup_r> I din't see its purpose
<jhass> arup_r: they want to return the old value
<_bart> workmad3: that's keyword completion right? I'm looking for something that actually allows you to find methods across multiple files in a project
<wasamasa> jhass: 100% java!
<workmad3> _bart: no, it's completion from all words in open buffers
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<wasamasa> jhass: ok, no, I'm kidding
<wasamasa> jhass: but still way too much
<jhass> yeah :(
xcv has joined #ruby
<_bart> workmad3: ok pretty neat, just tried it and it's awesome, but it doesn't allow you to jump to function declarations and stuff like that
<arup_r> That's the comment I see :-) But how does #tap helps here
chipotle has quit [Ping timeout: 240 seconds]
<_bart> workmad3: thanks for that magic command though :)
<jhass> arup_r: an assignment always returns the rhs, so that's an alternative to old_neighbour = neighbour; @neighbour = new_neighbour; old_neighbour
Arkaniad has joined #ruby
<workmad3> _bart: yeah... I have it mapped to tab personally, as it's good enough for me 80% of the time
<workmad3> _bart: and the other 20% hasn't yet been worth the effort of getting ctags or something similar sorted out :)
<_bart> workmad3: mapped it to tab? but I use ctrl+n while in insert mode, so how'd you insert a tab then..?
<workmad3> _bart: the best thing about ctl-n for me is that it's completely language independent :)
chipotle has joined #ruby
<arup_r> jhass #tap returns the object on which it is called after block terminates.. what you are saying I am not getting it
Arkaniad|Desktop has quit [Ping timeout: 240 seconds]
maximski has quit []
<workmad3> _bart: supertab maps it intelligently, so it'll only invoke ctl-n when I'm partway through a word
Pharaoh2 has joined #ruby
Rahul_Roy has joined #ruby
<jhass> arup_r: do you have the separation between variables/method calls and objects clear?
<_bart> workmad3: wow haha what a setup
<_bart> workmad3: you never got a case where you needed an actual tab but got the ctrl-n? I might try supertab
<arup_r> jhass not getting you really
<jhass> arup_r: or the other way around: why do you think it would work without tap?
<workmad3> _bart: can't think of any... so they're at least rare occurances for me
<jhass> arup_r: how and why would it work then?
<workmad3> _bart: or at least, not enough hassle to bother remembering ;)
<arup_r> jhass Got it... shame on me!!
<workmad3> _bart: supertab can also handle omnicomplete functions, so you can use it to play around with other setups too
<arup_r> Nice trick it is
c_nick has joined #ruby
<c_nick> whats the best tutorial to use to start on ruby using RubyMine
eka has joined #ruby
axilla has joined #ruby
<arup_r> jhass: I sued this method in other cases.. But this application I was not aware of... So, I was not being able to get it..
eka has quit [Client Quit]
hellangel7 has quit [Read error: Connection reset by peer]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has joined #ruby
alem0lars has quit [Quit: Going AFK...]
hellangel7 has joined #ruby
<_bart> workmad3: thanks, I got it setup
TorpedoSkyline has joined #ruby
lanox has joined #ruby
joonty has quit [Quit: Leaving]
MartinCleaver has joined #ruby
toastynerd has joined #ruby
lkba has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Ping timeout: 244 seconds]
Morkel has quit [Quit: Morkel]
shredding has joined #ruby
tvw has joined #ruby
havenwood has joined #ruby
ldnunes has joined #ruby
britneywright has joined #ruby
himsin has joined #ruby
maximski has joined #ruby
<c_nick> hello
<c_nick> can someone help me with my query ?
<c_nick> whats the best tutorial to use to start on ruby using RubyMine
workmad3 has quit [Ping timeout: 246 seconds]
Grantlyk has joined #ruby
spastorino has joined #ruby
Macaveli has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
ghr has quit []
maximski has quit []
gaussblurinc1 has left #ruby [#ruby]
ghr has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
dawkirst has quit [Remote host closed the connection]
arup_r has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
paulfm has joined #ruby
supermarkettoday has joined #ruby
arup_r has quit [Remote host closed the connection]
supermarkettoday has quit [Remote host closed the connection]
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
arup_r has joined #ruby
supermarkettoday has joined #ruby
supermarkettoday has quit [Read error: Connection reset by peer]
qmfnp has joined #ruby
arup_r has quit [Remote host closed the connection]
cocotton has joined #ruby
asdasdasdasss has joined #ruby
Grantlyk has quit [Remote host closed the connection]
Grantlyk has joined #ruby
mlr has joined #ruby
sambao21 has joined #ruby
cheemobile has joined #ruby
claymore has joined #ruby
axsuul has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
Sid05 has joined #ruby
mlr has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 255 seconds]
edmellum has quit [Quit: Connection closed for inactivity]
sergiomiranda has joined #ruby
alem0lars has joined #ruby
InfraRuby has left #ruby [#ruby]
Sie00 has joined #ruby
ppinto has joined #ruby
ixti has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
cheemobile has quit [Quit: cheemobile]
c_nick has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Rollabunna has joined #ruby
bjornar has quit [Ping timeout: 260 seconds]
starkhalo has joined #ruby
amacou has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
vyorkin has joined #ruby
alexju has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
Sie00 has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
relix has joined #ruby
dangerousdave has joined #ruby
<tsunamie> jhass, thanks again, really start to cook now. was hoping to ask a few more questions
havenwood has quit [Ping timeout: 264 seconds]
<tsunamie> I am trying to find a list of resources I can declare in routing
<tsunamie> however have not been able to find such a list over the last hour
<tsunamie> is there an example of searching resources or similar things like you would in a javadoc?
jerius has joined #ruby
jerius has quit [Client Quit]
maximski has joined #ruby
sk87 has joined #ruby
maximski has quit [Max SendQ exceeded]
gilesw has quit [Quit: WeeChat 0.4.2]
<jhass> ruby-doc.org for ruby, api.rubyonrails.org for rails
maximski has joined #ruby
jerius has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
bmurt has joined #ruby
stef_204 has quit [Remote host closed the connection]
<tsunamie> jhass, sorry, thanks for the first link however the second link it not really what I am looking for. Forexample, I see I can put into the route file a statment like resource :profile or resources :articles is there a list of resources I can call~?
maximski has quit [Max SendQ exceeded]
<tsunamie> for simply setup of things that are know to already exist?
maximski has joined #ruby
jerius has quit [Client Quit]
coderhs has quit [Read error: Connection reset by peer]
dawkirst has quit [Ping timeout: 260 seconds]
coderhs has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
alem0lars has quit [Quit: Going AFK...]
Dreamer3 has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
dRbiG has quit [Quit: co'o ro do]
comma8 has quit [Ping timeout: 250 seconds]
emergion has joined #ruby
arup_r has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
toastynerd has quit [Ping timeout: 246 seconds]
coderhs has quit [Read error: Connection reset by peer]
hsps_ has joined #ruby
cocotton has quit [Remote host closed the connection]
philcrissman has joined #ruby
<tagrudev> certainty, ping
maximski has quit []
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lanox has quit []
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton_ has joined #ruby
anaeem1 has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
workmad3 has joined #ruby
Sie00 has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
magikfx has joined #ruby
cocotton_ has quit [Remote host closed the connection]
zorak has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
kaspertidemann has quit []
<jhass> tsunamie: did you read http://guides.rubyonrails.org/routing.html ? note that we're really on #rubyonrails territory here
Sid05 has quit [Ping timeout: 250 seconds]
<tsunamie> jhass, ty will jump n there and red throught all of that
SilkFox has joined #ruby
DivineEntity has quit [Quit: Lost terminal]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
Zenigor has joined #ruby
bennylope has joined #ruby
cocotton_ has joined #ruby
cocotton has quit [Ping timeout: 245 seconds]
Sie00 has quit [Quit: free the internet]
ppinto has quit [Ping timeout: 260 seconds]
yekta has joined #ruby
ppinto has joined #ruby
starkhalo has quit [Ping timeout: 244 seconds]
mupkoo has quit []
tkuchiki_ has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
asdasdasdasss has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Quit: https://twitter.com/AleenaMaleena]
mlr has joined #ruby
eka has joined #ruby
Barrayar has quit [Quit: Leaving]
Zenigor has quit [Remote host closed the connection]
tkuchiki_ has quit [Ping timeout: 272 seconds]
astav has joined #ruby
kenichi has quit [Ping timeout: 240 seconds]
eka has quit [Client Quit]
dEPy has quit [Quit: Computer has gone to sleep.]
asdasdasdasss has quit [Ping timeout: 240 seconds]
Liothen has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
kenichi has joined #ruby
zkay11 has joined #ruby
alexju has joined #ruby
dEPy has joined #ruby
astav has quit [Client Quit]
mlr has quit [Ping timeout: 246 seconds]
dumdedum has joined #ruby
eka has joined #ruby
dumdedum has quit [Client Quit]
zorak has joined #ruby
Sid05 has joined #ruby
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
dEPy has quit [Ping timeout: 246 seconds]
claymore has quit [Quit: Leaving]
ohcibi_ is now known as ohcibi
bhaus has joined #ruby
livingstn has joined #ruby
jamesfor_ has joined #ruby
starkhalo has joined #ruby
w09x has joined #ruby
MARY21 has joined #ruby
MARY21 has left #ruby [#ruby]
Zenigor has joined #ruby
gaussblurinc1 has joined #ruby
Zenigor has quit [Read error: Connection reset by peer]
<gaussblurinc1> hi!
<bhaus> hello
Zenigor has joined #ruby
<gaussblurinc1> I want to use instance-setters in initialize - is it bad or not?
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
<gaussblurinc1> every code that I see use instance variables, not instance-variable-setters
joonty has joined #ruby
Olipro has joined #ruby
<bhaus> i am not sure what you are refering to? the init daemon?
supermarkettoday has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
shredding has quit [Quit: shredding]
siwica has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
top4o has joined #ruby
tkuchiki has joined #ruby
supermarkettoday has joined #ruby
w09x has quit []
<centrx> gaussblurinc1, That is pretty bad because it changes @name
iamjarvo has joined #ruby
Jameser` has joined #ruby
comma8 has joined #ruby
gtrak has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
shredding has joined #ruby
<centrx> gaussblurinc1, Your path "setter" does not actually set anything with path, it sets @name
<gaussblurinc1> centrx: why so? this is robust behavior
maximski has joined #ruby
<centrx> You put a name setter inside a path setter and the path setter doesn't set the path
krisquigley has quit [Remote host closed the connection]
iamjarvo has quit [Client Quit]
<gaussblurinc1> centrx: it sets path, @path = path at the end of setter
djcp has joined #ruby
<centrx> It's pointless
<centrx> gaussblurinc1, This is all you're doing really: https://gist.github.com/anonymous/457323434a7fba949dbc
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
sputnik13 has joined #ruby
sailias has joined #ruby
arup_r has quit []
failshell has joined #ruby
<gaussblurinc1> yeah, this is good if I have readonly-fields. I could not guarantee that changes on path or name would not cause inconsistency
<centrx> gaussblurinc1, And if you look at your old code, you'll see how the misleading fact of putiting a name setter in the path is misleading
maximski has quit [Client Quit]
<centrx> gaussblurinc1, In your original code, that re-setting of @name in #path= never takes effect, because @name is set again right afterwards in the #initialize
freerobby has joined #ruby
comma8 has quit [Ping timeout: 250 seconds]
smooks has joined #ruby
<gaussblurinc1> uh, ok, this code without checks. here must be @name = name if name in the initialize
kaiwren has quit [Quit: kaiwren]
robbyoconnor has quit [Excess Flood]
supermarkettoday has quit [Remote host closed the connection]
supermarkettoday has joined #ruby
top4o has joined #ruby
<gaussblurinc1> centrx: do you like robust smart behavior or strict warnings/error full behavior of your code?
robbyoconnor has joined #ruby
alem0lars has joined #ruby
<centrx> gaussblurinc1, Clear, explicit, readable code is best, and often results in both more robust code with fully described behavior
<centrx> gaussblurinc1, self.path = path _implicitly_ changes @name, while being actually unnecessary for the the explicit name path
supermarkettoday has quit [Remote host closed the connection]
newUser1234 has joined #ruby
cheeti has quit [Quit: Page closed]
MartinCleaver has joined #ruby
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
charliesome has joined #ruby
supermarkettoday has joined #ruby
<gaussblurinc1> centrx: path do it for consistency. I don't want to write File.basename outside that classes to set name if name doesn't given. ThisClass.new(path, File.basename(path)) - bad solution
toastynerd has joined #ruby
workmad3 has joined #ruby
LeShadow has quit [Quit: Aaaaaaaaand.... I'm gone]
djcp has left #ruby ["WeeChat 0.4.3"]
yekta has quit [Quit: yekta]
tylerkern has joined #ruby
diegoviola has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
toastynerd has quit [Ping timeout: 272 seconds]
Ilyas has quit [Read error: Connection reset by peer]
Sid05_ has joined #ruby
patrick99e99 has joined #ruby
rdark has quit [Quit: leaving]
iamjarvo has joined #ruby
rdark has joined #ruby
towbes has quit [Ping timeout: 264 seconds]
Ilyas has joined #ruby
Zenigor has quit []
vuiiiiiiiiiiiic has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
jamesfordummies has joined #ruby
vuiiiiiiiiiiiic has quit [Killed (idoru (Spam is off topic on freenode.))]
Zenigor has joined #ruby
CorpusCallosum has joined #ruby
SilkFox has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
Sid05 has quit [Ping timeout: 264 seconds]
Sid05_ is now known as Sid05
danijoo has joined #ruby
aganov has quit [Remote host closed the connection]
Ju` has joined #ruby
Morkel has joined #ruby
cocotton_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
jamesfor_ has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
ppinto_ has joined #ruby
ppinto has quit [Ping timeout: 240 seconds]
rdark has joined #ruby
momomomomo has quit [Client Quit]
MartinCleaver has quit [Quit: MartinCleaver]
razum2um1 has joined #ruby
MartinCleaver has joined #ruby
razum2um has quit [Read error: Connection reset by peer]
cocotton has quit [Ping timeout: 260 seconds]
justinv has joined #ruby
alex88 has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
cantonic has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
supermarkettoday has joined #ruby
zorak has quit [Ping timeout: 255 seconds]
JohnFord has joined #ruby
fold has joined #ruby
ryantm has joined #ruby
<ryantm> Is there a way to setup your guard file so it runs a shell script when a set of files change? The way described in the guard :shell section of the README seems to run the shell command once for every file that changes.
olivier_bK has quit [Remote host closed the connection]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlr has joined #ruby
hsps_ has quit [Read error: Connection reset by peer]
hsps_ has joined #ruby
<centrx> ryantm, What is the desired behavior? Every file in the set must be changed before the event is triggered?
towbes has joined #ruby
cantonic has quit [Ping timeout: 244 seconds]
SilkFox_ has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
CorpusCallosum has quit [Ping timeout: 240 seconds]
banister has joined #ruby
mary5030 has joined #ruby
michael_lee has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
icebourg has joined #ruby
icebourg has quit [Client Quit]
gauravagarwalr has quit [Remote host closed the connection]
gauravag_ has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 250 seconds]
asdasdasdasss has joined #ruby
devdazed has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Diaoer has joined #ruby
Takle has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
17SAASD55 has joined #ruby
gauravagarwalr has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
zorak has joined #ruby
cocotton has joined #ruby
centipedefarmer has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
ffranz has joined #ruby
dblessing has joined #ruby
amacou has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
autonomousdev has joined #ruby
<ryantm> centrx, when you have something like https://gist.github.com/ryantm/2dbd7c81270d7c6e98ff and you Run All in the guard shell, it runs it for every single file something that only ran once per Run All
havenwood has joined #ruby
jamesfor_ has joined #ruby
ari-_-e has quit [Read error: Connection reset by peer]
CorpusCallosum has joined #ruby
alem0lars has quit [Read error: No route to host]
anaeem1 has joined #ruby
dru has quit [Ping timeout: 244 seconds]
Dreamer3 has joined #ruby
<ryantm> actually I'm really confused by how guard works, so I think I should try figuring it out more. It is doing different things when I do `git status` vs puts "hi"
dru_ has joined #ruby
alem0lars has joined #ruby
olivier_bK has joined #ruby
<ryantm> different for `git status` and system "git status"
graft_ has joined #ruby
graft_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<workmad3> ryantm: those two do have different return values
ianco has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
<ryantm> right. it's interesting to me that guard is throwing away the string returned by some of the blocks.
jamesfordummies has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
<workmad3> ryantm: namely, `` will return stdout, while system() will return true/false based on exit status
<workmad3> ryantm: you'll also likely want to process the results from git status as it would be a single string
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
phoo1234567 has quit [Quit: Leaving]
<ryantm> I don't care about git status, I'm just using it because it was the example.
tylerkern has joined #ruby
<workmad3> ryantm: right... I was assuming you were shelling out to a command that gave you files to trigger on
<ryantm> it seems like if you have 4 files in the directory, it is going to run git status 4 times and throw out the output 3 times.
wjimenez5271 has joined #ruby
mc_fail has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<mc_fail> hi guys, i'm trying to do some sql query into sqlite database and get SQLite3::CorruptException database disk image is malformed
cpruitt has joined #ruby
<mc_fail> so, it's ok for me, database can be corrupted, but how i can check if it corrupted?
jayunit100 has joined #ruby
freerobby has joined #ruby
<mc_fail> so, i need to create new database if old one is corrupted
<ryantm> mc_fail, you could catch that exception, but why is your db getting corrupted?
lxsameer has joined #ruby
<mc_fail> ryantm power loss and owerloaded io
lw has joined #ruby
<DefV> omg that list is huge
<ryantm> it shouldn't get corrupted from power loss
<ryantm> or, i mean if it does it should be able to fix itself
amacou has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<ryantm> a huge list seems like a good thing to me. it means they thought about a lot of stuff.
jamesfordummies has joined #ruby
StephenA1 has joined #ruby
Guest70922 has quit [Ping timeout: 245 seconds]
<mc_fail> ryantm why? if io is overloaded, a lot of data going to os cache, and when power going down, cache flushes, so, a part of data will be losed, and database file will be corrupted
sambao21 has joined #ruby
<mc_fail> (sorry for my english)
Wolland has joined #ruby
<ryantm> well, the first P of that link says "If an application crash, or an operating-system crash, or even a power failure occurs in the middle of a transaction, the partially written transaction should be automatically rolled back the next time the database file is accessed."
TorpedoSkyline has joined #ruby
ppinto has joined #ruby
InfraRuby has joined #ruby
ppinto_ has quit [Ping timeout: 255 seconds]
Ayey_ has quit [Ping timeout: 260 seconds]
jamesfor_ has quit [Ping timeout: 255 seconds]
tobago has quit [Remote host closed the connection]
RealMarc has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
tylerkern has joined #ruby
nfk has quit [Ping timeout: 244 seconds]
<ryantm> maybe 7.3 is happening?
<mc_fail> anyway, i don't care about data in this datbase, application sending data to central server every 5 munutes, and i have more than one thousands nodes like this, so losing a 5 minutes of data is just a drop in the ocean
<ryantm> oh that was fixed
Zenigor has quit [Remote host closed the connection]
endash has joined #ruby
<momomomomo> ryantm: that 5 min of data could be your debugging logs :p
centipedefarmer has quit [Remote host closed the connection]
<mc_fail> i have a syslog for collecting debug logs)
Zenigor has joined #ruby
abdulsattar has quit [Ping timeout: 260 seconds]
philcrissman has quit [Ping timeout: 244 seconds]
snath has quit [Ping timeout: 255 seconds]
justinv has quit [Remote host closed the connection]
Mongey has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
max06 has quit [Quit: Leaving.]
toastynerd has joined #ruby
Zenigor has quit [Remote host closed the connection]
supermarkettoday has joined #ruby
Zenigor has joined #ruby
byteddown has joined #ruby
endash has quit [Quit: endash]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
StephenA1 has quit [Quit: StephenA1]
dru has joined #ruby
dru_ has quit [Ping timeout: 244 seconds]
speaking1ode is now known as speakingcode
Takle has joined #ruby
toastynerd has quit [Ping timeout: 240 seconds]
Zenigor_ has joined #ruby
Zenigor has quit [Read error: Connection reset by peer]
Mongey has joined #ruby
eyeamaye has joined #ruby
tylerkern has joined #ruby
Zenigor_ has quit [Remote host closed the connection]
justinv has joined #ruby
sergiomiranda has quit [Quit: sergiomiranda]
supermarkettoday has quit [Remote host closed the connection]
Zenigor has joined #ruby
_bart has quit [Quit: leaving]
icebourg has joined #ruby
supermarkettoday has joined #ruby
icebourg has quit [Max SendQ exceeded]
apeiros has quit [Remote host closed the connection]
icebourg has joined #ruby
wmoxam_ has quit [Quit: leaving]
apeiros has joined #ruby
wmoxam has joined #ruby
sputnik13 has joined #ruby
antonishen has quit []
antonishen has joined #ruby
xkami has quit [Remote host closed the connection]
charliesome has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
frankle has joined #ruby
mikepack has joined #ruby
xkami has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.0-dev]
Sid05 has quit [Quit: Sid05]
apeiros has quit [Ping timeout: 246 seconds]
Macaveli has quit [Read error: Connection reset by peer]
eyeamaye has quit [Quit: Leaving.]
Macaveli has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
ari-_-e has joined #ruby
hamakn has quit [Remote host closed the connection]
tectonic has joined #ruby
xkami has quit [Remote host closed the connection]
emergion has quit [Quit: Connection closed for inactivity]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
xkami has joined #ruby
Macaveli has quit [Ping timeout: 255 seconds]
Grantlyk has quit [Remote host closed the connection]
17SAASD55 has quit [Quit: Leaving...]
gauravagarwalr has quit []
bronson has joined #ruby
MengHX has joined #ruby
BadQuanta has joined #ruby
Grantlyk has joined #ruby
MengHX has quit [Client Quit]
drusepth has joined #ruby
arya_ has joined #ruby
Xeago has quit [Remote host closed the connection]
dru has quit [Ping timeout: 244 seconds]
SilkFox_ has joined #ruby
Diaoer has quit [Ping timeout: 250 seconds]
fgo has quit []
gauke has quit [Quit: gauke]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
asdasdasdasss has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
icebourg has quit []
justinv has quit [Remote host closed the connection]
sickweezle is now known as lagweezle
icebourg has joined #ruby
<shevy> so at work I finally found out
bal has quit [Quit: bal]
<shevy> I could use ruby AND a webserver
<shevy> but how and what to do
icebourg has quit [Max SendQ exceeded]
<shevy> sinatra? rails? plain .cgi?
icebourg has joined #ruby
drusepth has quit [Ping timeout: 272 seconds]
mclee has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
mclee has joined #ruby
asdasdasdasss has quit [Ping timeout: 245 seconds]
qwyeth has joined #ruby
cobakobodob has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
Morkel has quit [Quit: Morkel]
eval-in has quit [Remote host closed the connection]
freerobby has joined #ruby
eval-in has joined #ruby
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
<cocotton> Hi all, I have a string which look like this "Total physical ram: 1 024 Mb". I would like to only get the 1024 value. Right now, what I was planing to do what to cast that string in an array(with split(" "), find the indexes of the '1' and '024', concat them and finally cast them into a string. Yet that does not seem clean at all and I'm certain there's a better way to do that. Would anyone have a suggestion on how to improve that?
krisquigley has joined #ruby
mattwashere has joined #ruby
eval-in_ has joined #ruby
marr has joined #ruby
eval-in has quit [Read error: Connection reset by peer]
jk5 has quit [Quit: Connection closed for inactivity]
Pharaoh2 has quit [Remote host closed the connection]
Grantlyk has quit [Ping timeout: 272 seconds]
eval-in_ has quit [Remote host closed the connection]
Ju` has quit [Quit: -Clic-]
eval-in has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
yekta has joined #ruby
Ainieco has joined #ruby
<Ainieco> is it just me or it's impossible to install passenger gem via "gem install passenger"?
<Ainieco> Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/latest_specs.4.8.gz)
threesixes has joined #ruby
<Ainieco> did rubygems was hacked again?
AlexRussia has joined #ruby
terrellt has joined #ruby
chrishough has joined #ruby
root3d has joined #ruby
<cocotton> I guess I could use a regex
workmad3 has quit [Ping timeout: 244 seconds]
luisjose has joined #ruby
<centrx> cocotton, Regex is the most reliable way, since it will fail to match/return nil if it is the wrong format
<cocotton> @centrx alright cool thx :)
gruz0[russia] has joined #ruby
drusepth has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gaussblurinc1 has quit [Quit: Leaving.]
snath has joined #ruby
rdark has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
ghostmoth has joined #ruby
renderful has joined #ruby
axsuul has joined #ruby
lxsameer has quit [Quit: Leaving]
alexju has quit [Remote host closed the connection]
elico has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
apeiros has joined #ruby
elico has joined #ruby
dru has joined #ruby
drusepth has quit [Ping timeout: 255 seconds]
TieSoul_ has joined #ruby
alem0lars has quit [Quit: Going AFK...]
TieSoul has quit [Ping timeout: 255 seconds]
St_Marx has joined #ruby
TheSojourner is now known as mjulian
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
himsin has quit [Quit: himsin]
bennylope has quit [Quit: My Tandy 1000 has gone to sleep. ZZZzzz…]
amacou has quit [Remote host closed the connection]
alexju has joined #ruby
<Ainieco> anyone?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ilyas has quit [Ping timeout: 255 seconds]
justinv has joined #ruby
rdark has joined #ruby
Pharaoh2 has joined #ruby
amacou_ has joined #ruby
hamakn has joined #ruby
shredding has quit [Quit: shredding]
SCHAAP137 has joined #ruby
cocotton has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
<centrx> Ainieco, The package is in rubygems
mlr has quit [Ping timeout: 240 seconds]
amargherio has joined #ruby
aef_ has quit [Remote host closed the connection]
jamesfordummies has quit [Remote host closed the connection]
mijicd has joined #ruby
aef has joined #ruby
cobakobodob has joined #ruby
<Ainieco> centrx: i know
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinv has quit [Read error: No route to host]
Cheezebox has joined #ruby
workmad3 has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
CaptainJet has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
michaeldeol has joined #ruby
mikepack has quit [Remote host closed the connection]
MartinCleaver has quit [Quit: MartinCleaver]
mikepack has joined #ruby
mattwashere has quit [Remote host closed the connection]
TieSoul_ is now known as TieSoul
aspires has joined #ruby
kireevco has joined #ruby
tectonic has quit []
wjimenez_ has joined #ruby
reisl has joined #ruby
mikepack has quit [Remote host closed the connection]
yuung has joined #ruby
qba73 has quit []
reisl is now known as larissa
aaronrl has quit [Quit: Leaving]
dacamp_ is now known as dacamp
ryantm has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby
MartinCleaver has joined #ruby
timonv_ has quit [Remote host closed the connection]
ppinto_ has joined #ruby
doev has quit [Ping timeout: 240 seconds]
sergiomiranda has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
ppinto has quit [Ping timeout: 250 seconds]
luisjose has quit [Quit: Leaving...]
xkami has left #ruby [">_>"]
wjimenez_ has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
bricker`work has joined #ruby
SilkFox_ has joined #ruby
yuung has left #ruby ["Leaving"]
jprovazn has quit [Quit: Leaving]
vsoftoiletpaper has joined #ruby
InfraRuby has left #ruby [#ruby]
darkness has joined #ruby
ephemerian has quit [Quit: Leaving.]
hellangel7 has quit [Ping timeout: 260 seconds]
kireevco has quit [Read error: Connection reset by peer]
darkness is now known as Guest54417
kireevco has joined #ruby
timgauthier has joined #ruby
joonty has quit [Quit: Leaving]
postmodern has joined #ruby
maestrojed has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
W0rmDr1nk has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
klaut has joined #ruby
alex88 has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
vsoftoiletpaper has quit []
sambao21 has joined #ruby
arq_ has joined #ruby
gee_totes has joined #ruby
startupality has joined #ruby
CorpusCallosum has quit [Read error: Connection reset by peer]
gruz0[russia] has quit [Read error: No route to host]
miyako has joined #ruby
<gee_totes> quick question: what is the datatype of bar? bar[:foo] = "fizz"
gruz0[russia] has joined #ruby
<canton7> hash, probably
<canton7> (but it could be anything that implements the [] method
<gee_totes> how can i find of list of what implents the [] method?
<canton7> why do that cal?
<canton7> just ask bar what it is
<canton7> bar.class
ghr has quit [Ping timeout: 240 seconds]
vsoftoiletpaper has joined #ruby
<apeiros> >> ObjectSpace.each_object(Module).select { |m| m.method_defined?(:[]) }
<eval-in> apeiros => [Bignum, Fixnum, Symbol, String, Thread, ObjectSpace::WeakMap, Method, Proc, Process::Tms, MatchData, Struct, Hash, Array] (https://eval.in/176971)
pietr0 has joined #ruby
<apeiros> gee_totes: ^
ryanleesipes has joined #ruby
<apeiros> but really, what canton7 said
aaronrl has joined #ruby
Takle_ has joined #ruby
mlr has joined #ruby
<apeiros> canton7: though it's the []=, not the [] method :)
<canton7> yeah, I start with '[]=(..)', then got a bit too keen with the backspace key when simplifying it :p
<canton7> *started
amacou_ has quit [Remote host closed the connection]
johnmolina has joined #ruby
tylerkern has joined #ruby
amacou has joined #ruby
robscormack has joined #ruby
Ainieco has quit [Quit: leaving]
ppinto_ has quit [Quit: ppinto_]
Takle has quit [Ping timeout: 260 seconds]
asdasdasdasss has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
mlr has quit [Ping timeout: 240 seconds]
InhalingPixels has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
amacou has quit [Ping timeout: 272 seconds]
<miyako> I'm going through some of the documentation on ruby-lang.org (ruby in 20 minutes, and the ruby core documentation) - does anyone have any other recommendations for a some quick documentation on sort of jumping into ruby when you're familiar with progrmaming in general already
<centrx> Ruby Koans, Ruby Monk
<miyako> I've seen and edited ruby code before, so it's not completely arcane, I've just never really started a project in it and I'm not familiar with the idioms and such
<centrx> Code Academy
<gee_totes> hmm... so it would be the same for an attribute?
asdasdasdasss has quit [Ping timeout: 245 seconds]
<gee_totes> or rather, bar is telling me it is NilClass
<apeiros> miyako: not a tutorial or anything, but zenspiders quickref is a good resource IMO
<apeiros> !quickref
<helpa> http://www.zenspider.com/Languages/Ruby/QuickRef.html - Quick reference for the Ruby Language
<shevy> hmm
<miyako> apeiros: thanks, I was just looking at the oreilly pocket guide, I think something like that is what I want
<shevy> in irb we can do Array#<PRESS TAB>
<shevy> how can I get the listing of each methods like that?
gruz0[russia] has quit [Read error: No route to host]
<apeiros> Array.instance_methods
<miyako> I don't really need a tutorial on how to program, just a rosetta stone to map what I know into ruby idioms and venacular
chipotle has quit [Ping timeout: 272 seconds]
<miyako> and really the thing I'm doing is pretty small so I'm not sure that I need to be as highly concerned with idioms
TieSoul has quit [Ping timeout: 255 seconds]
<miyako> plus the ruby developer on our team will probably just re-write the whole thing to use metaprogramming magic as soon as I push the commits anyway
iceden has quit [Read error: Connection reset by peer]
<apeiros> :-D
nszceta has joined #ruby
Sid05 has joined #ruby
<crome> slap on his wrist with a ruler
linoge has joined #ruby
<miyako> is 2-space indent a convention or a syntactic requirement?
Jameser` has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
<crome> you can use as many spaces/tabs as you fancy
wallerdev has joined #ruby
<miyako> okay, I've looked at 2-space indented code before, I just find that 4 spaces feels a lot more readable to me
<apeiros> miyako: convention
momomomomo has quit [Quit: momomomomo]
<miyako> granted I may still evoke the ire of the rubyists en-mass by violating what seems to be a very dearly held convention
mercwithamouth has joined #ruby
<apeiros> miyako: I had that too. but it's really only a matter of getting adjusted to it
<apeiros> takes maybe a week
mikecmpbll has quit [Quit: i've nodded off.]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> yes, many conventions are indeed held quite dearly :)
philcrissman has joined #ruby
krisquigley has quit [Remote host closed the connection]
Tricon has joined #ruby
<crome> and it is exactly why I think indentation by space should be abolished. you can set the size of tabs to whatever you fancy
workmad3 has quit [Ping timeout: 245 seconds]
<miyako> crome: the problem with that is that code that might look readable and well-aligned on my 4-space-tabs configuration could look horribly mangled on someon else's 2 or 3 space setup
bbloom has joined #ruby
<shevy> miyako most people use 2 spaces in ruby
<apeiros> crome: I concur. But sadly that doesn't help :(
<shevy> because ruby code is so terse, people pack stuff together like in a small rucksack
<miyako> I suppose that if I'm going to actually use ruby I should probalby try to do things the ruby way
<miyako> most of my experience with ruby in the past has been the language and I actively working against eachother
<shevy> well, if your question is already between 2 spaces vs. 4 spaces
<centrx> miyako, The preference is to use actual spaces, where your one tab gets actually replaced by X spaces
<shevy> then 2 spaces wins out due to reasons
theharshest has joined #ruby
ponch_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> miyako, So it doesn't matter what someone else's tab set up is, though if they are a Rubyist it is set at 2 spaces anyway
<crome> I don't mind conventions as long as they perfectly match my idea
linoge has quit [Quit: Page closed]
wwalker has quit [Ping timeout: 245 seconds]
sputnik13 has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> crome what is your convention for indent in ruby
<miyako> I think I'll just stick with 2-space indent for now
<crome> well, I'm "forced" into this 2 spaces nonsense
<shevy> miyako you could use 2 spaces, tabs, and 4 spaces, all in the same ruby file. remember, there is more than one way to do it in ruby
hamakn has quit [Remote host closed the connection]
<centrx> don't do that...
<shevy> crome ok so you are a 2spacer too
philcrissman has quit [Ping timeout: 255 seconds]
<miyako> shevy: can... but that sounds like an awful idea and I won't
jamesfor_ has joined #ruby
<centrx> crome, 2 spaces is the minimal possible indentation, it is perfectly rational
wwalker has joined #ruby
<crome> centrx: 2 spaces is fine, I don't like spaces in general
<miyako> now I just need to remember how to OO
chth0n has quit [Ping timeout: 272 seconds]
<shevy> Idontlikethemeither,theworldisbetterwithoutspaces
<crome> shevy: :+1:
mikecmpbll has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crome> #downwithspaces
<shevy> miyako objects respond to methods
timonv_ has joined #ruby
<shevy> that is about 90% of OOP
<crome> they respond to messages
troyready has joined #ruby
TieSoul has joined #ruby
m4rCsi has joined #ruby
<shevy> now technically you could also say that a message is a message object but it always confused me when I started that, so I stopped
<shevy> it's like ... what is smaller than an atom
<crome> your penis
<shevy> man
<shevy> we are trying to have a philosophical discussion here
<crome> oh
<crome> sorry
wjimenez5271 has joined #ruby
<jamesfor_> lolol
krz has quit [Quit: WeeChat 0.4.3]
jamesfor_ is now known as jamesfordummies_
jamesfordummies_ has quit [Client Quit]
jamesfor_ has joined #ruby
jamesfor_ is now known as jamesfordummies_
MartinCleaver has quit [Quit: MartinCleaver]
workmad3 has joined #ruby
<miyako> shevy: it's more OO architecture that I haven't done in a while
krisquigley has joined #ruby
Fire-Dragon-DoL has joined #ruby
MartinCleaver has joined #ruby
dangerousdave has joined #ruby
iceden has joined #ruby
InhalingPixels has quit []
<apeiros> hm, shift-in shift-out ascii chars sound funny
alem0lars has joined #ruby
itadder__ has joined #ruby
<itadder__> quick question when I run my post code I get requested registry access is not allowed
<itadder__> but I am running as admin
gee_totes has quit [Ping timeout: 250 seconds]
Alina-malina has quit [Ping timeout: 250 seconds]
<itadder__> any ideas
timonv^ has joined #ruby
cocotton has joined #ruby
wallerdev has quit [Quit: wallerdev]
<shevy> what
InhalingPixels has joined #ruby
<shevy> is this google related
ssvo has joined #ruby
<apeiros> itadder__: I think your fiduddle is not retabulated to the correct incissor
<shevy> lol
tkuchiki has quit [Remote host closed the connection]
<crome> :DD
dawkirst has quit [Remote host closed the connection]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> itadder__: in other words: you may want to reconsider what information you have to give in order to get a useful answer. your question right now makes a perfect *zero* sense to me.
anaeem1 has joined #ruby
momomomomo has joined #ruby
<eam> in ruby zero is true
<apeiros> it's also zero :)
Spami has joined #ruby
magikfx_ has joined #ruby
<shevy> no
<shevy> I liked apeiros' original reply much better
arup_r has joined #ruby
<itadder__> oh
<itadder__> okay sorry
<eam> I'm still trying to come up with something witty related to atoms
<shevy> It's the best answer there ever was
<itadder__> I an getting some data from the registry
<itadder__> using get-itemproperty
<shevy> eam man, just tell a perl joke
timonv_ has quit [Ping timeout: 272 seconds]
<apeiros> itadder__: "the registry" - explain
<itadder__> and I am unable to get the data becuase it saying get-item registry access
<apeiros> are you sure you're in the right channel? this is #ruby
<itadder__> all I am trying to do with my script is check what pc in this OU have the drive letter L mapped
<itadder__> opps
<itadder__> sorry
<itadder__> I have huge 24 inch screen
<itadder__> I missed that
cocotton has quit [Ping timeout: 260 seconds]
<eam> shevy: what's the shortest code you have to segfault cruby
<shevy> 0/0?
<DreamingRainne> >> 0/0
<eval-in> DreamingRainne => divided by 0 (ZeroDivisionError) ... (https://eval.in/176976)
<eam> that ain't a segfault bro
timgauthier has joined #ruby
vyorkin has quit [Quit: WeeChat 0.4.3]
<shevy> it was close
Zenigor has joined #ruby
magikfx has quit [Ping timeout: 272 seconds]
<eam> >> r = %r%zzzz%; loop do r = Regexp.new(r.to_s.gsub(r, r.to_s)) end
<eval-in> eam => /tmp/execpad-c8c283854439/source-c8c283854439:2: [BUG] Segmentation fault at 0xbcc76f7c ... (https://eval.in/176977)
Sie00 has joined #ruby
<shevy> wow
<shevy> I don't even know what that would do
<Hanmac> huch ... works for me
Panicky has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> crashes for me
bbloom has quit [Quit: Computer has gone to sleep.]
<eam> too many () in the regex engine I think
* Hanmac point and laugh at all others
<eam> Hanmac: jruby? what platform?
yekta has quit [Quit: yekta]
deric_skibotn has joined #ruby
<shevy> wait
<shevy> >> r = %r%zzzz%; loop do y = Regexp.new(r.to_s.gsub(r, r.to_s)) end
<eval-in> shevy => (https://eval.in/176978)
<shevy> hmmmm
<shevy> the assignment causes a problem
<Hanmac> eam: MRI ruby but works for me
<DreamingRainne> >> r=/zzzz/;loop{r=/#{r.to_s.gsub(r,r.to_s)}/}
<eval-in> DreamingRainne => /tmp/execpad-6f42abb160f2/source-6f42abb160f2:2: [BUG] Segmentation fault at 0xbcc10eec ... (https://eval.in/176979)
<eam> right, the assignment lets it build larger and larger expressions
<DreamingRainne> Shorter.
<shevy> does not work for me: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
<shevy> >> r=/zzzz/;loop{now_it_works=/#{r.to_s.gsub(r,r.to_s)}/}
<eval-in> shevy => (https://eval.in/176980)
<shevy> ok
<shevy> it does not
<shevy> Time limit exceeded (wall clock)
<shevy> that's some epic shit
<Hanmac> shevy all my ruby version does work for me but i got SystemStackError but no Segmentation fault
<DreamingRainne> >> /zzzz/.to_s
<eval-in> DreamingRainne => "(?-mix:zzzz)" (https://eval.in/176981)
<eam> I'm going to try to fix it today if I get a chance
lele has quit [Quit: Coyote finally caught me]
wwalker has quit [Ping timeout: 244 seconds]
<DreamingRainne> I assumed it would just produce "/zzzz/" or "zzzz" but it does that ?-mix: thing.
<DreamingRainne> And the parentheses.
lele has joined #ruby
<DreamingRainne> >> /zzzz/.inspect
<eval-in> DreamingRainne => "/zzzz/" (https://eval.in/176982)
<drizz_> >> RUBY_DESCRIPTION
<eval-in> drizz_ => "ruby 2.1.2p95 (2014-05-08 revision 45877) [i686-linux]" (https://eval.in/176983)
anaeem1 has quit [Remote host closed the connection]
soulcake has quit [Quit: Quack.]
kaspergrubbe_ has joined #ruby
soulcake has joined #ruby
wwalker has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rippa has joined #ruby
jamesfordummies_ has quit []
<eam> as usual, perl can segfault in fewer characters
ki0 has quit [Ping timeout: 240 seconds]
<apeiros> :)
nowthatsamatt has joined #ruby
<DreamingRainne> Does running out of memory cause a segfault? If so, that'd probably be simpler to achieve.
<eam> it shouldn't
phoo1234567 has joined #ruby
<DreamingRainne> >> s='x';loop{s*=s.length}
<eval-in> DreamingRainne => (https://eval.in/176984)
<apeiros> should be an Errno::ENOMEM or similar
centrx has quit [Quit: Mead error: Connection reset by beer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DreamingRainne> >> s='xx';loop{s*=s.length}
<eval-in> DreamingRainne => argument too big (ArgumentError) ... (https://eval.in/176985)
phoo1234567 has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 260 seconds]
<miyako> sorry about asking so many newbie questions but I have another one- if I'm working in irb is there an easy way to view information about, e.g. what a method expects to receive, or to quickly view the ri page on it, or something?
momomomomo has quit [Quit: momomomomo]
<apeiros> miyako: install pry and pry-doc
phoo1234567 has joined #ruby
renderful has quit [Remote host closed the connection]
Takle_ has quit [Remote host closed the connection]
<miyako> in haskell if I were looking into an API I might start by doing: ':t functionName' to get it's type signature
<apeiros> miyako: then use pry instead of irb and do e.g. `? obj.some_method`
<apeiros> and `$ obj.some_method` to get its source
maestrojed has quit [Read error: Connection reset by peer]
maestroj_ has joined #ruby
<miyako> apeiros: okies, I'm installing pry
<DreamingRainne> >> 'x'*(0.0/0.0)
<eval-in> DreamingRainne => float NaN out of range of integer (RangeError) ... (https://eval.in/176986)
root3d has quit [Read error: Connection reset by peer]
kireevco has quit [Ping timeout: 244 seconds]
<miyako> oh, another question- sorry for obnoxiousness- is it generally preferable to install things via gem or via my package manager, and is there a preferred way doing sandboxing?
<DreamingRainne> >> 'x'*(1.0/0)
<eval-in> DreamingRainne => float Inf out of range of integer (RangeError) ... (https://eval.in/176987)
sputnik13 has joined #ruby
cocotton has joined #ruby
<DreamingRainne> >> File.read("/dev/zero")
<eval-in> DreamingRainne => failed to allocate memory (NoMemoryError) ... (https://eval.in/176988)
SilkFox_ has joined #ruby
wallerdev has joined #ruby
root3d has joined #ruby
ponch_ has quit [Ping timeout: 246 seconds]
hellangel7 has joined #ruby
arup_r has quit [Quit: Leaving.]
failshel_ has joined #ruby
W0rmDr1nk has joined #ruby
<miyako> apeiros: can I use pry to get info about the ruby core?
<DreamingRainne> >> require __FILE__
<eval-in> DreamingRainne => cannot load such file -- /tmp/execpad-f52190d645f3/source-f52190d645f3 (LoadError) ... (https://eval.in/176989)
<miyako> it's not finding anything, when I do, e.g. "? [1,2,3].map" or "? Array.map"
<apeiros> miyako: if you installed pry-doc as I said, yes
Guest54417 has quit [Ping timeout: 264 seconds]
ponch_ has joined #ruby
Takle has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
iamjarvo has joined #ruby
<cocotton> Hey guys, I got a string similar "Total physical ram: 1 024 mb" and I'd like to be able to return the 1024 in the string (note there is a white space between 1 and 024), I tried string.match(/\d+\s\d+) but it does not seem to work. Anyone know how I could fix this^
<miyako> apeiros: hmm, no package in the repos for pry-doc, I guess I just need to get a gem for it?
failshell has quit [Ping timeout: 240 seconds]
<apeiros> miyako: `gem install pry pry-doc`
<apeiros> I wouldn't use the package manager for gems
failshel_ has quit [Remote host closed the connection]
siwica has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 260 seconds]
ryanleesipes has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
<eam> >> "Total physical ram: 1 024 mb" =~ /(\d+\s\d+)/; $1
<eval-in> eam => "1 024" (https://eval.in/176991)
Sid05_ has joined #ruby
<miyako> apeiros: okay, thanks; another round of apologies for newbiness- I know it can get wearing
failshell has joined #ruby
<apeiros> miyako: easy
iamjarvo has quit [Read error: Connection reset by peer]
<DreamingRainne> >> s='ram: 1 024 mb'; s.tr('^0-9','').to_i
<eval-in> DreamingRainne => 1024 (https://eval.in/176992)
* DreamingRainne shrugs.
iamjarvo has joined #ruby
failshell has quit [Read error: Connection reset by peer]
siwica has joined #ruby
<bricker`work> I can't decide if I should raise on non-success requests, or return nil or false or whatever, with an API client library.
failshell has joined #ruby
<bricker`work> Someone tell me what to do I'm tired
C0deMaver1ck_ is now known as C0deMaver1ck
<DreamingRainne> What convention does the rest of the library use?
<DreamingRainne> Or is that what you're deciding?
<apeiros> bricker`work: `kill -9 #{$$}` unless request.successful?
failshell has quit [Remote host closed the connection]
<apeiros> only sane thing to do
timonv^ has quit [Remote host closed the connection]
failshell has joined #ruby
Alina-malina has joined #ruby
banjara has joined #ruby
<bricker`work> apeiros: :)
<bricker`work> DreamingRainne: that's what I'm deciding
ki0 has joined #ruby
Liothen has joined #ruby
<apeiros> request! # raise
<bricker`work> DreamingRainne: the API returns a bunch of different things, and I'd rather be able to rescue NotFoundError, BadRequestError, ConflictError, etc. and deliver a useful message to the end-user
<apeiros> request # return object which can be queried about success/content/etc
<DreamingRainne> Well, there you go.
<bricker`work> hm
kireevco has joined #ruby
<bricker`work> but that feels like an abuse of exceptions
<eam> >> Process.kill 9, $$
<eval-in> eam => (https://eval.in/176993)
<apeiros> eam: oh that's actually nicer than backticks
<DreamingRainne> Have them in an appropriate inheritance tree so that whoever handles it can choose exactly what to handle.
* apeiros takes note
<DreamingRainne> And in fact, that's actually an excellent use of exceptions, not an "abuse" of them.
<bricker`work> Alrighty, I'm convinced, thanks
tylerkern has joined #ruby
iamjarvo has quit [Remote host closed the connection]
nfk has joined #ruby
mlr has joined #ruby
Doc_X has quit [Read error: Connection reset by peer]
bbloom has joined #ruby
failshell has quit [Ping timeout: 260 seconds]
wallerdev_ has joined #ruby
larsam has quit [Quit: Exit]
ryanleesipes has joined #ruby
wallerdev has quit [Ping timeout: 260 seconds]
wallerdev_ is now known as wallerdev
Doc_X has joined #ruby
dangerousdave has joined #ruby
<shevy> I use exceptions for my if else clauses
failshell has joined #ruby
<shevy> and retry as my goto
ascarter has joined #ruby
asdasdasdasss has joined #ruby
<shevy> or perhaps catch throw, I don't know... I actually never used catch throw, somehow I never needed it
vsoftoiletpaper has quit []
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<DreamingRainne> >> a=[ArgumentError];a.push(a.last.superclass) until a.last.nil?;a
<eval-in> DreamingRainne => [ArgumentError, StandardError, Exception, Object, BasicObject, nil] (https://eval.in/176994)
renderful has joined #ruby
mlr has quit [Ping timeout: 264 seconds]
<DreamingRainne> Which of those should user-made exceptions inherit from, in general? StandardError or Exception?
chipotle has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
<toretore> StandardError
arya_ has quit [Ping timeout: 264 seconds]
<toretore> or more specific if possible
failshell has quit [Ping timeout: 240 seconds]
bbloom has quit [Quit: Computer has gone to sleep.]
skylite has joined #ruby
asdasdasdasss has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
abuzze_ has quit [Ping timeout: 260 seconds]
sputnik13 has joined #ruby
mijicd has quit [Remote host closed the connection]
<eam> it's a shame one can't raise arbitrary objects
minum has joined #ruby
<apeiros> you can throw arbitrary objects
<apeiros> but why's it a shame you can't raise arbitrary objects?
<eam> ok you got me, I don't have a good reason
atmosx has joined #ruby
yekta has joined #ruby
hellangel7 has joined #ruby
klaut_ has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
eyeamaye has joined #ruby
* shevy throws apeiros
klaut has quit [Ping timeout: 272 seconds]
<shevy> I throw objects!
<shevy> somebody rescue him
* apeiros still not sure whether it'd be nice if ruby had interfaces/protocols
<DreamingRainne> >> raise OBJECTION!
<eval-in> DreamingRainne => undefined method `OBJECTION!' for main:Object (NoMethodError) ... (https://eval.in/176995)
<shevy> is this the eiffel story again...
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> shevy: no. that'd be about contracts. and there I'm sure it'd be very nice.
Sid05 has quit [Ping timeout: 245 seconds]
Sid05_ is now known as Sid05
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
klaut_ has quit [Read error: Connection reset by peer]
discr33t__ has joined #ruby
Rylee has quit [Remote host closed the connection]
sputnik13 has joined #ruby
vsoftoiletpaper has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
<discr33t__> hey guys is there an iterator (i think that's what it's called) that will match a string to a variable value? right now i'm using .include?(variable)
Morkel has joined #ruby
kenneth has joined #ruby
<apeiros> an iterator iterates, so I don't think that's what you want.
<DreamingRainne> discr33t__: Well, 'include?' will see if the string includes the other string. Which may or may not be what you meant.
elico has quit [Quit: Leaving.]
GlenK has joined #ruby
<apeiros> what's wrong with .include?
<DreamingRainne> >> "explication".include? "cat"
<eval-in> DreamingRainne => true (https://eval.in/176998)
klaut has joined #ruby
<shevy> I guess he just used the wrong word
<DreamingRainne> Or just == if that's what you're after?
<bricker`work> The motherload:
<discr33t__> DreamingRainne: it will get the job done for sure but i was wondering if there was something that tells it to match exactly
<bricker`work> >> Net::HTTPResponse::CODE_TO_OBJ
<eval-in> bricker`work => uninitialized constant Net (NameError) ... (https://eval.in/176999)
<shevy> discr33t__ you could always use a regex comparison via =~ //
<bricker`work> >> require 'net/http'; Net::HTTPResponse::CODE_TO_OBJ
<eval-in> bricker`work => {"100"=>Net::HTTPContinue, "101"=>Net::HTTPSwitchProtocol, "200"=>Net::HTTPOK, "201"=>Net::HTTPCreated, "202"=>Net::HTTPAccepted, "203"=>Net::HTTPNonAuthoritativeInformation, "204"=>Net::HTTPNoContent, ... (https://eval.in/177000)
<shevy> lol bricker`work
<bricker`work> :O
<shevy> what is that word... "motherload" ... I don't think I have read that before :D
<shevy> motherload and fatherboard
<DreamingRainne> discr33t__: ==
<shevy> fatherload and motherboard
<apeiros> discr33t__: == matches exactly
<DreamingRainne> * motherlode
bMalum has joined #ruby
<DreamingRainne> Comes from mining, I think.
krisquigley has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
startupality has joined #ruby
brianherman has quit [Quit: Leaving]
danijoo has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rdark has quit [Quit: leaving]
Rylee has joined #ruby
klaut_ has joined #ruby
alem0lars has quit [Quit: Going AFK...]
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
tobago has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
klaut has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
Rylee has quit [Client Quit]
cocotton has quit [Remote host closed the connection]
ponch_ has quit [Ping timeout: 250 seconds]
cocotton has joined #ruby
ghr has joined #ruby
arup_r has joined #ruby
alem0lars has quit [Client Quit]
abdulsattar has joined #ruby
krisquigley has joined #ruby
jdj_dk has joined #ruby
startupality has quit [Quit: startupality]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ari-_-e has quit [Quit: Leaving]
djbkd has joined #ruby
hamakn has joined #ruby
chrishough has quit [Quit: chrishough]
InhalingPixels has quit []
eyeamaye has quit [Quit: Leaving.]
cpruitt has quit [Read error: Connection reset by peer]
eyeamaye has joined #ruby
glebm_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endash has joined #ruby
claymore has joined #ruby
cpruitt has joined #ruby
gee_totes has joined #ruby
anaeem1 has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
ffranz has quit [Ping timeout: 260 seconds]
coldkey21 has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
JohnFord has joined #ruby
yetanotherdave has joined #ruby
sputnik13 has joined #ruby
maestroj_ is now known as maestrojed
eyeamaye has quit [Client Quit]
startupality has joined #ruby
sputnik13 has quit [Client Quit]
minum has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
Sie00 has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 250 seconds]
bMalum is now known as tomasres
gee_totes has quit [Quit: leaving]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
dbasch has joined #ruby
ffranz has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bbloom has joined #ruby
jmbrown412 has joined #ruby
Rylee has joined #ruby
Zenigor has quit [Remote host closed the connection]
jdj_dk has quit [Remote host closed the connection]
chipotle_ has joined #ruby
Zenigor has joined #ruby
chrishough has joined #ruby
Rylee has quit [Client Quit]
timonv_ has joined #ruby
djbkd has quit [Remote host closed the connection]
dpatel has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
kireevco1 has joined #ruby
icarus has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
gtrak has quit [Ping timeout: 264 seconds]
failshell has joined #ruby
sputnik13 has joined #ruby
dbasch has quit [Quit: dbasch]
reset has joined #ruby
gtrak has joined #ruby
jonahR has joined #ruby
tomasres is now known as bMalum
startupality has quit [Quit: startupality]
kireevco1 has left #ruby [#ruby]
axsuul has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
failshel_ has joined #ruby
djbkd has joined #ruby
failshell has quit [Read error: Connection reset by peer]
Rylee has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Ping timeout: 240 seconds]
eeezkil has joined #ruby
banjara has quit [Quit: Leaving.]
chipotle_ has quit [Quit: cya]
dEPy has joined #ruby
cocotton has joined #ruby
dbasch has joined #ruby
banjara has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
dbasch has quit [Client Quit]
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
timonv_ has quit [Remote host closed the connection]
endash has quit [Quit: endash]
dbasch has joined #ruby
the8thbit|work has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
<cocotton> @DreamingRainne Hey I'm late but thank you very much :)
mlr has joined #ruby
amacou has joined #ruby
philcrissman has joined #ruby
sdwrage has joined #ruby
asdasdasdasss has joined #ruby
kaspertidemann has joined #ruby
testcore has joined #ruby
Liothen has joined #ruby
Liothen has joined #ruby
mlr has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
amacou has quit [Ping timeout: 240 seconds]
philcrissman has quit [Ping timeout: 240 seconds]
jxf has quit [Ping timeout: 250 seconds]
bronson has quit [Quit: bronson]
gruz0[russia] has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
bradleyprice has joined #ruby
jm0 has joined #ruby
freerobby1 has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
gtrak has quit [Quit: No Ping reply in 180 seconds.]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
comma8|BNC has joined #ruby
gtrak has joined #ruby
zarubin has quit []
sputnik13 has joined #ruby
timonv_ has joined #ruby
Sauvin has quit [Remote host closed the connection]
nszceta_ has joined #ruby
nszceta has quit [Read error: Connection reset by peer]
ponch_ has joined #ruby
sputnik13 has quit [Client Quit]
iliketurtles has joined #ruby
failshel_ is now known as failshell
renderful has quit [Remote host closed the connection]
krisquigley has joined #ruby
renderful has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
tjr9898 has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 245 seconds]
Nahra has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
ponch_ has quit [Ping timeout: 250 seconds]
flughafen_ has joined #ruby
sputnik13 has joined #ruby
claymore has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
Nahra has joined #ruby
flughafen_ has quit [Client Quit]
goodenough has joined #ruby
freerobby1 has joined #ruby
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
shacklef_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
freerobby has quit [Read error: Connection reset by peer]
<shacklef_> is 'self' in ruby similar to 'this' in javascript?
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
jayunit100 has quit [Quit: jayunit100]
cnj has quit [Ping timeout: 240 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ki0 has quit [Ping timeout: 244 seconds]
jprovazn has joined #ruby
Cheezebox has quit [Remote host closed the connection]
jdj_dk_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ghr has joined #ruby
Cheezebox has joined #ruby
tricon_ has joined #ruby
andrewhampton has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
<hoelzro> shacklef_: yes
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tricon has quit [Ping timeout: 240 seconds]
cnj has joined #ruby
banister has joined #ruby
<jm0> does anyone know if the C extension API under ruby, can do the same things as the Standard C Library?
<hoelzro> jm0: why wouldn't it be able to?
<hoelzro> you can call any code from a C extension that a regular C program would call
banister has quit [Max SendQ exceeded]
<arup_r> Need one help
nanoyak has quit [Quit: Computer has gone to sleep.]
goodenough has quit [Remote host closed the connection]
Hanmac has joined #ruby
Matip has joined #ruby
Matip has joined #ruby
<arup_r> on top level it is Object but here ?
<jm0> because im building a website about the C language, so when i heard that Ruby had made this extension avaliable i got hooked on the idea to write my website i C, how awesome is that!? :)
<hoelzro> arup_r: Object, I presume
ghr has quit [Ping timeout: 260 seconds]
<arup_r> Need to be sure :-)
<hoelzro> jm0: there are C web frameworks
<jm0> hoelzro: nice, that answered my question! :)
<hoelzro> I don't know why you'd *want* to use C to write a web application, but don't let my opinion stop you =)
freerobby1 has quit [Quit: Leaving.]
bbloom has quit [Quit: Computer has gone to sleep.]
Wixy has quit [Read error: Connection reset by peer]
alexju has quit [Read error: Connection reset by peer]
Spami has quit [Read error: Connection reset by peer]
terrellt has quit [Read error: Connection reset by peer]
centrx has joined #ruby
Spami has joined #ruby
<jm0> hoelzro: It wont, im really fixated on the idea to write my website about C in C, just because it makes sense! :D
alexju has joined #ruby
dEPy has quit [Read error: Connection reset by peer]
<arup_r> Yes it is Object
terrellt has joined #ruby
kireevco has joined #ruby
<centrx> jm0, Ruby is written in C. So, QED.
banister has joined #ruby
<arup_r> which class method
banister has quit [Max SendQ exceeded]
dEPy has joined #ruby
<shevy> arup_r the first result of Ancestor
<shevy> >> Object.ancestors
<eval-in> shevy => [Object, Kernel, BasicObject] (https://eval.in/177061)
<shevy> hmm
<jm0> centrx: yeah most languages is originated form the C language in one way or the other :P
<shevy> can I use double super?
<shevy> like
<shevy> super.super
<momomomomo> jm0: lib onion
jdj_dk_ has quit [Ping timeout: 260 seconds]
amargherio has quit [Remote host closed the connection]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> Got it
sepp2k has quit [Quit: Konversation terminated!]
<arup_r> Thanks.... shevy why I am not still confident on Ruby ? :-( Give some tips
<jm0> momomomomo: thats looks very useful, but isnt the C extension API enough?
aclearman037 has joined #ruby
mikepack has joined #ruby
<momomomomo> I don't know what you're trying to do with that; I just saw you say you wanted to write C
root3d has quit [Quit: Leaving]
<momomomomo> erm, write your web sit e/ app in c
<centrx> arup_r, Meditation
saarinen has joined #ruby
<jm0> momomomomo: well thats the plan :)
<arup_r> centrx: How does it help ? :-(
dawkirst has joined #ruby
mordof_work has quit [Remote host closed the connection]
sepp2k has joined #ruby
bradleyprice has quit [Remote host closed the connection]
andrewhampton has left #ruby [#ruby]
tricon_ has quit [Quit: Leaving...]
bradleyprice has joined #ruby
krisquigley has quit [Remote host closed the connection]
<Hanmac> apeiros & shevy i found a lite-wight web forum in ruby!! and it supports markdown!!! https://github.com/Quintus/chessboard
aspires has quit []
sepp2k has quit [Client Quit]
<apeiros> note quite sure why you tell me that - but… nice? :)
anaeem1_ has joined #ruby
confounds has joined #ruby
confounds has left #ruby [#ruby]
<Hanmac> because you might interested and i know the author ... but now he is whining because its still unstable ;P
tylerkern has joined #ruby
awc737 has joined #ruby
charliesome has joined #ruby
dawkirst has quit [Remote host closed the connection]
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
sailias has quit [Read error: Connection reset by peer]
bradleyprice has quit [Ping timeout: 246 seconds]
kireevco has quit [Read error: Connection reset by peer]
sputnik13 has joined #ruby
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
TrueJet has joined #ruby
jprovazn has quit [Quit: Odcházím]
CaptainJet has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
saarinen has quit [Quit: saarinen]
kireevco has joined #ruby
tjr9898 has quit [Remote host closed the connection]
britneywright has joined #ruby
arup_r has quit [Quit: Leaving.]
SilkFox_ has joined #ruby
<apeiros> s/note/not/ :)
Matadoer has joined #ruby
mikepack has quit [Remote host closed the connection]
craigbowen3 has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
<shevy> Quintus
<shevy> that must be a german ruby guy right?
<shevy> yeah https://github.com/Quintus I think I recall him from rubyforum.de or something
<shevy> perhaps he was the reason I abandoned that forum :P
freerobby has joined #ruby
<robscormack> shevy: AFAIK Quintus is a game engine in HTML5
alem0lars has joined #ruby
<shevy> haha
<shevy> I wanna play rick dangerous in the browser
alem0lars has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
mikepack has joined #ruby
mr_foobar_baz has joined #ruby
InfraRuby has joined #ruby
<shevy> lol
<shevy> I wanna play lemmings
krisquigley has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
Hobogrammer has joined #ruby
toastynerd has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
jdj_dk_ has joined #ruby
mlr has joined #ruby
jdj_dk_ has quit [Read error: Connection reset by peer]
jdj_dk_ has joined #ruby
saarinen has joined #ruby
troyready has quit [Quit: Leaving]
workmad3 has joined #ruby
JoshGlzBrk has joined #ruby
asdasdasdasss has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
djcp has joined #ruby
St_Marx has quit [Remote host closed the connection]
St_Marx has joined #ruby
mlr has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
asdasdasdasss has quit [Ping timeout: 240 seconds]
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
bbloom has joined #ruby
parzo_ has joined #ruby
luckyruby has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
dawkirst has quit [Remote host closed the connection]
dpatel has quit [Quit: dpatel]
definiv has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
jdj_dk_ has quit [Ping timeout: 250 seconds]
Shidash has joined #ruby
ponch_ has joined #ruby
parzo has joined #ruby
tjr9898 has joined #ruby
mattmcclure has joined #ruby
parzo_ has quit [Ping timeout: 260 seconds]
nicklolsen has joined #ruby
abuzze has quit [Remote host closed the connection]
nanoyak has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has quit [Ping timeout: 245 seconds]
parzo_ has joined #ruby
marr has quit []
tvw has quit []
bronson has joined #ruby
krisquigley has quit [Remote host closed the connection]
Cereal` has quit [Ping timeout: 245 seconds]
ponch_ has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
parzo has quit [Ping timeout: 240 seconds]
abuzze has joined #ruby
Morkel has joined #ruby
johnmolina has quit [Remote host closed the connection]
<miyako> okay, so every time I pick up ruby I seem to run into this problem with map or something and I'm realizing that I really don't get how methods work in ruby
abuzze has quit [Remote host closed the connection]
sepp2k has joined #ruby
abuzze_ has joined #ruby
txdv has quit [Read error: Connection reset by peer]
<miyako> but if I have a method, foo, I realize that I can't just do [1,2,3].map(foo)
txdv has joined #ruby
<miyako> and the internet says that I should be able to do .map(&:foo) but that seems to be giving me an error
magikfx__ has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<miyako> I feel like there is something I'm not groking here
parzo has joined #ruby
<jhass> that would call foo on the mapped elements
cschneid has quit [Ping timeout: 240 seconds]
<jhass> it's a shortcut to writing .map {|item| item.foo }
jaygen_ has joined #ruby
<shevy> miyako you need to pass and name the argument
<jhass> and _not_ .map {|item| foo(item) }
TieSoul has quit [Ping timeout: 255 seconds]
bbloom has quit [Quit: Computer has gone to sleep.]
jaygen_ has quit [Client Quit]
abuzze_ has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
<shevy> an alternative would be .map(&:foo) but that essentially also works via {}
jamesfordummies has joined #ruby
<miyako> jhass: okay, that makes sense I think
parzo_ has quit [Ping timeout: 244 seconds]
abuzze has joined #ruby
dangerousdave has joined #ruby
<jhass> if that confuses you, for now it's totally okay to forget about .map(&:foo) and always pass an explicit block to map
toastynerd has joined #ruby
<shevy> miyako you can think of .map(&:foo) as .map {|element| foo(element) }
magikfx_ has quit [Ping timeout: 240 seconds]
<workmad3> shevy: no, it's element.foo, not foo(element)
stef_204 has joined #ruby
<shevy> damn
<miyako> shevy: wait, I thought that someone just said it was the other way
iliketurtles has quit [Quit: zzzzz…..]
<shevy> yeah
<miyako> what I _want_ is something that's a shortcut for map {|x| foo(x)}
alvaro_o has joined #ruby
<workmad3> miyako: there isn't one in standard ruby
jaygen has quit [Ping timeout: 250 seconds]
cschneid has joined #ruby
<shevy> :(
<miyako> workmad3: is that because there just isn't, or because there are other considerations that make that a bad idea?
* crome pats shevy
<crome> there there
<shevy> haha
<shevy> crome, you have the same colour as centrx ... and you both start with c
<shevy> that always confuses me
<crome> okay, important question
<crome> what colour is centrx?
<shevy> yellowish-lightbrownish
bMalum has quit [Remote host closed the connection]
mongag has joined #ruby
<crome> like
<shevy> workmad3 is a healthy blue, miyako is some ... indigo
<crome> diarrhoea?
<shevy> hmm
parzo has quit [Ping timeout: 260 seconds]
parzo_ has joined #ruby
<shevy> I am not sure how diarrhoea looks like but I'd say no, it is more on the yellow side of things
djbkd has quit [Remote host closed the connection]
<workmad3> miyako: it's just the way Symbol#to_proc was written... and it tends to be more common to call a method on each item in a collection rather than the other way around
<crome> reassuring
<shevy> oh yeah that was it! to_proc
<crome> centrx: hey, colour-bro
tylerkern has quit [Read error: Connection reset by peer]
<shevy> now you see what &: will call miyako
djbkd has joined #ruby
x1337807x has joined #ruby
<shevy> miyako I guess the best you can do is use a one character variant
tylerkern has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<shevy> map {|_| foo(_)}
<shevy> haha!
<shevy> I'd love to have implicit variables in a block
<shevy> $1
alem0lars has quit [Quit: Going AFK...]
<shevy> hmm
x1337807x has joined #ruby
<shevy> actually, call it _
<shevy> .map { foo(_) }
x1337807x has quit [Max SendQ exceeded]
<shevy> and only for one |element|
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> this here would look ugly:
<shevy> .map { foo(_,__) }
x1337807x has joined #ruby
<workmad3> shevy: .map{foo(*_)} ? ;)
relix has quit [Remote host closed the connection]
x1337807x has quit [Max SendQ exceeded]
parzo has joined #ruby
<eam> (_*_)
ghr has joined #ruby
relix has joined #ruby
x1337807x has joined #ruby
alem0lars has joined #ruby
x1337807x has quit [Max SendQ exceeded]
djbkd has quit [Remote host closed the connection]
parzo_ has quit [Ping timeout: 240 seconds]
johnmolina has joined #ruby
Logico has joined #ruby
djbkd has joined #ruby
x1337807x has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
x1337807x has quit [Max SendQ exceeded]
Pumukel has joined #ruby
mongag has quit [Quit: Leaving]
<jamesfordummies> real ruby pros use 'puts' by saying :puts.to_proc.call(Kernel, 'some text')
<jamesfordummies> ;)
mikepack has joined #ruby
x1337807x has joined #ruby
<miyako> so I feel like this is kind of awful as a first go but can someone take a look and tell me if this is even a reasonable thing to do: https://gist.github.com/rebeccaskinner/d7268f23b7c848365f91
sailias has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<shevy> workmad3 hmm no
<workmad3> miyako: btw, if your method always returned 'self' you could do '.inject(self,&:foo)'
<shevy> the * adds one character
<terrellt> shevy: I feel like any good set of dev standards would say don't do that. Requiring named variables gives you some context.
<shevy> terrellt but I'd know the context!
x1337807x has joined #ruby
<terrellt> shevy: Only today.
<miyako> workmad3: I just posted a gist of what I was trying to do- it might be a bad idea
x1337807x has quit [Max SendQ exceeded]
<shevy> I have to be explicit when I access a block variable
parzo_ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<shevy> miyako looks ok but I would space the code out a bit more for readability
<shevy> after class NetworkFlow I myself would add another newline
<terrellt> o.o
chrishough has quit [Quit: chrishough]
<shevy> after Fields = as well
<terrellt> That stuff looks scary.
x1337807x has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
<workmad3> miyako: hmm, I'd probably have done 'line.split("sep").each{|val, attr| send("#{attr}=", val)}'
tewlz has joined #ruby
<terrellt> ^ Better
<shevy> miyako oh yeah you can simplify
ponch_ has joined #ruby
<shevy> Fields.each
<workmad3> oh, you'd still need the zip
amacou has joined #ruby
<shevy> giving methods camelsnakes is weird... def symToAssignment
<workmad3> Fields.zip(line.split("sep")).each{...}
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jamesfordummies> miyako: what's the goal of this method? in short
anarang has joined #ruby
<workmad3> oh, that would reverse the params to the block
<workmad3> jamesfordummies: seems to be mass-assignment
djcp has left #ruby ["WeeChat 0.4.3"]
<jamesfordummies> uh
<miyako> jamesfordummies: I have a list of delimited fields, I just want to quickly load it into my object
<apeiros> s/send/instance_variable_set/ IMO
parzo has joined #ruby
<jamesfordummies> why not use instance_variable_set
<shevy> parrot!
<workmad3> apeiros: in this case it would work
lkba has joined #ruby
<miyako> jamesfordummies: because I literally started writing ruby this morning and don't know about stuff lol
<workmad3> apeiros: I tend to prefer using send so that I'm not restricted to changing the setter to a custom one down the line
<jamesfordummies> ah
<miyako> I mean, I've edited other people's ruby before, but this is my first go at starting something
<jamesfordummies> and you're doing mass assignment already
parzo_ has quit [Ping timeout: 260 seconds]
<jamesfordummies> bold move
<jamesfordummies> sir
<shevy> that is not the scary part
<miyako> jamesfordummies: lady
msmith_ has joined #ruby
<jamesfordummies> ma'am
<terrellt> I'd do something like...
<shevy> can we agree on dude
<shevy> this is the internetz after all
<workmad3> shevy: duuuuuude
<apeiros> workmad3: should it become necessary to use the writer, it's easy enough to change it to send
<shevy> the scary part is when lines become very long
<miyako> well eventually I'd like to have each assignment method do some sort of sanity checking on the input value
<miyako> like, you should be able to set the port number to "steve"
<tewlz> I have `array = [[1,2], [3,4], [5,6]]` how can I get the output `#=>[1,2] #=>[3,4] #=>[5,6]` ?
ghostmoth has joined #ruby
<jamesfordummies> miyako: are the fields always in the correct order?
<miyako> jamesfordummies: for now I'm making that assumption
<jamesfordummies> ok
<tewlz> i assumed each_with_index do |f, i|; puts f[i] end would work but no dice
<miyako> I wrote the other program that's sending this data, so I can just fix it there rather than trying to be clever about input validation for now
<workmad3> tewlz: just each{|f| puts f}
<tewlz> workmad3: thanks
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Max SendQ exceeded]
parzo_ has joined #ruby
<workmad3> tewlz: s/puts/p
amacou has quit [Ping timeout: 255 seconds]
<tewlz> workmad3: hmm that's just outputting each elem one by one and not keeping the inner array intact
superscott[8] has joined #ruby
TorpedoSkyline has joined #ruby
<workmad3> tewlz: forgot that puts will print out each item of an array separately
Logico has quit [Quit: Saindo]
<tewlz> workmad3: that did it thanks
parzo has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<jamesfordummies> miyako: line.split(sep).zip(instance_variables).each { |val, name| x.instance_variable_set(name, val) }
<jamesfordummies> sorry, x should be self
basiclaser has quit [Excess Flood]
<jamesfordummies> or not there
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> workmad3: btw, where's fly2web/gogohome/rubygogo?
<terrellt> miyako: There's a gist above for ya.
<workmad3> wasamasa: f knows
<workmad3> wasamasa: I /ignored them
alexju has quit [Remote host closed the connection]
jdj_dk has joined #ruby
<wasamasa> workmad3: I /fooled them
basiclaser has joined #ruby
chichou has joined #ruby
<wasamasa> workmad3: so it's grayed out and allows toggling between displaying and not displaying it
Logico has joined #ruby
yfeldblu_ has quit [Ping timeout: 244 seconds]
parzo_ has quit [Ping timeout: 260 seconds]
parzo has joined #ruby
<workmad3> wasamasa: heh
yfeldblum has quit [Ping timeout: 255 seconds]
Ilyas has joined #ruby
tylerkern has joined #ruby
<wasamasa> I'm not sure though whether to filter out by default or not
Ilyas has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wasamasa> if I don't do, I can recognize useless discussions by huge swaths of greyed out text
Ilyas has joined #ruby
bhaus has quit [Quit: Page closed]
ponch_ has quit [Ping timeout: 246 seconds]
<wasamasa> if I do, I'll miss out on them by default and only notice if I suspect I'm missing some part of the conversation
<shevy> damn it
<shevy> wasamasa, you are the only guy to miss him
dangerousdave has joined #ruby
<jamesfordummies> miyako: if you're really trying to get tiny code - this should do it https://gist.github.com/semaj/0a0f6e4e6ef1e3e6f8ee
hephaestus_rg has joined #ruby
<shevy> you have a weak spot for trolls
parzo_ has joined #ruby
<hephaestus_rg> hello
<wasamasa> shevy: well, yes, I do
<shevy> I'll ask him to ask you to unban him
<wasamasa> shevy: I plan to eventually write an ircbot that can impersonate people based on my irc logs
parzo has quit [Ping timeout: 255 seconds]
<shevy> lol
<hephaestus_rg> is there some kind of ruby gem or framework for writing a user facing domain specific language?
<benzrf> wasamasa: just use dissociated press
patrick99e99 has quit [Ping timeout: 260 seconds]
troyready has joined #ruby
<wasamasa> might get interesting results if I mash up every trolling individual I meet on freenode
<wasamasa> benzrf: the emacs one?
<benzrf> i dont know
<benzrf> i dont use emacs
<benzrf> cuz im not a CHUMP
tobago has quit [Remote host closed the connection]
<jamesfordummies> hephaestus_rg: https://github.com/ms-ati/docile
<jamesfordummies> plenty of similar gems too
smooks has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> how is Docile.dsl_eval any different from instance_eal
<benzrf> *eval
<miyako> jamesfordummies: I'm not necessarily trying for tiny code, just reasonably idiomatic code
<eam> benzrf: how can you say that
TorpedoSkyline has quit [Ping timeout: 260 seconds]
SilkFox_ has joined #ruby
Logico has quit [Quit: Saindo]
wallerdev has joined #ruby
<miyako> hmm, anyone know offhand how I reload code in pry?
<benzrf> eam: say what
magikfx__ has quit [Quit: Computer has gone to sleep.]
<jamesfordummies> miyako: i would argue using instance_variables and instance_variable set is more idiomatic
<eam> emacs is wonderful :(
philcrissman has joined #ruby
<shevy> it's a good religion
<jamesfordummies> instance_variable_set
<shevy> an ok operating system
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> but lacking as an editor
<eam> it's smaller than vim jfyi
<shevy> vim is for people who can not afford a monitor
TorpedoSkyline has joined #ruby
<workmad3> jamesfordummies: as I said, it really depends on whether you need to invoke a specific setter
* benzrf cannot afford a monitor
<shevy> they can hit on their keyboard with their eyes closed
bronson has quit [Quit: bronson]
* benzrf just uses his laptop screen
<eam> eight megs and constantly swapping => is now the smallest editor in the universe
Logico has joined #ruby
<shevy> real programmers can't code on laptops
<jamesfordummies> workmad3: she doesnt though, does she?
<workmad3> jamesfordummies: she wants to
ppinto has joined #ruby
<benzrf> eight thousand megabytes and constantly swapping!!!!!!!
<eam> shevy: but my laptop has two thunderbolt plugs and two 30" monitors
<workmad3> jamesfordummies: for validation of attribute assignments
<shevy> now how is that a laptop!
<shevy> you don't have two monitors in your lap
<terrellt> Vim ftw.
<benzrf> >> 'eight-thousand megabytes and constantly swapping!!!!!!!'.split.map {|s| s[0].upcase}.join
<eval-in> benzrf => "EMACS" (https://eval.in/177073)
<jamesfordummies> ahh
<benzrf> eval-in knows whats up
<jamesfordummies> so much noise
<eam> you can't put laptops in your lap anyway, they burn your *ahem*
ybit is now known as heath
<workmad3> jamesfordummies: yeah, it's obviously time for the weekly #ruby editor flamewar :)
heath has quit [Changing host]
heath has joined #ruby
<jamesfordummies> :(
<jamesfordummies> more ruby
<benzrf> eam: you must be abusing your laptop if it gets that hot
<terrellt> workmad3: Yup.
<jamesfordummies> less text editor
<shevy> why
<shevy> vim vs. emacs
<shevy> one thing is sure
<shevy> there be only two losers
<eam> benzrf: it's all these learn ruby in 21 days youtube videos
<benzrf> yes, the emacs users AND the emacs users who claim to be using vim because they use evil mode
<eam> it's viper-mode jfyi
vt102 has quit [Quit: Leaving]
<workmad3> centrx: :D
<jamesfordummies> workmad3: what kind of validation?
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
decoponio has quit [Quit: Leaving...]
<eam> I meant for me
<workmad3> jamesfordummies: pass? it was just mentioned a little while back ;)
Logico has quit [Client Quit]
<jamesfordummies> okok
<workmad3> jamesfordummies: '20:53 < miyako> well eventually I'd like to have each assignment method do some sort of sanity checking on the input value'
ppinto has left #ruby [#ruby]
Darryl has quit [Quit: Connection closed for inactivity]
<jamesfordummies> ah
<hephaestus_rg> i'm really looking for something more user facing in terms of a DSL thing
<jamesfordummies> define user facing?
jdj_dk has quit [Ping timeout: 264 seconds]
<miyako> I'm not sure if doing input validation during setting the value is the right thing to do though?
<jamesfordummies> which user
<eam> you know what really burns my crotch: intellij
<hephaestus_rg> like mustache templates with a few string manipulation functions
<workmad3> hephaestus_rg: don't give them ruby... nuff said
philcrissman has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
<eam> it makes my macbook run so hot the tips of my fingers get scorched
SilkFox_ has quit [Ping timeout: 272 seconds]
Logico has joined #ruby
<jamesfordummies> templates = i am out of my element
<hephaestus_rg> for example, the client wants to generate unique titles based on templates he designs
<workmad3> hephaestus_rg: preferably, don't give users a programmatic DSL at all... unless your users are programmers
<jamesfordummies> front end code
maestrojed has quit [Quit: Computer has gone to sleep.]
<momomomomo> eam: yeah intellij takes some work
<momomomomo> though not too much
<jamesfordummies> intellij is awesome yo
<workmad3> hephaestus_rg: as that sort of DSL generally ends up with non-coders writing code in a badly specced language with no error handling... a.k.a. a support nightmare ;)
<hephaestus_rg> something like "{{make}} {{model}} !random{features} !random{features}"
<jamesfordummies> jetbrains knows their shit
<workmad3> hephaestus_rg: liquid template with some custom functions?
<eam> java in the winter when it's chilly
cpruitt has quit [Quit: cpruitt]
<miyako> I have to say that I'm still having a hard time "getting" ruby, not so much in the how to make it do stuff sense, but just sort of culturally the way it does stuff seems foreign and makes me vaguely uncomfortable
<hephaestus_rg> i'll check out liquid templates
<momomomomo> idea 13 is taking up 650mb right now for me, and ~2% cpu eam
<jamesfordummies> miyako: read any ruby books?
<miyako> jamesfordummies: so far I've just done online documentation and talked to people
<momomomomo> miyako: consider picking up a book, like the Well Grounded Rubyist
ascarter has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jamesfordummies> read eloquent ruby
<miyako> jamesfordummies: honestly I'm hoping that writing ruby does not become a regular thing for me
<jamesfordummies> but
<momomomomo> lol
<jamesfordummies> why
<jamesfordummies> :(
tewlz has left #ruby ["WeeChat 0.4.3"]
<miyako> I have yet to see anything about the language that makes me want to write more of it than I have to
<momomomomo> then use something you prefer
<jamesfordummies> i guess you're a heathen then
<jamesfordummies> :P
<benzrf> miyako: what do u prefer
<eam> miyako: 650m RAM is gonna consume what, 3 watts?
<hephaestus_rg> yeah looks like liquid will work sincei can extend it with the necessary functions https://github.com/Shopify/liquid/wiki/Liquid-for-Programmers
<workmad3> miyako: it can be a bit weird coming to ruby at first, I find... to me a big difference from many other ecosystems is that rubyists tend to be a lot heavier on the client being responsible for not doing stupid stuff
<momomomomo> eam: that's me :p
<miyako> benzrf: I usually write haskell and C
<eam> ooop momomomomo
tjr9898 has joined #ruby
<benzrf> miyako: hella
ascarter has quit [Client Quit]
<workmad3> 'client' meaning 'people using my wonderful library'
<eam> it's my fault for living in the stone age with text-based editors and irc clients
<workmad3> eam: it's warm and cosy here in the stone age
<momomomomo> ugh, dude hadoop classpaths are killing me
ppinto has joined #ruby
<benzrf> :: is nicest when it is not constant lookup
<benzrf> :-D
<jamesfordummies> haha
<momomomomo> closing idea now :p
<miyako> workmad3: yeah, I find the lack of generally doing anything about safety aside from blowing-up at runtime to be infuriating
<eam> not too warm, I can start emacs without burning my lap
<momomomomo> also, developing java without IDEA isn't the best :p
<miyako> it seems like at work all of our ruby code get's "delivered" in half the time as anything else, but spends 10x as long in testing because it never quite works right
<benzrf> miyako: it's nice for scripting, anyway
<shevy> you won't need an IDEA if you have an IDE in java
<jamesfordummies> miyako: hire me
<shevy> lol
<eam> miyako: only 10x, you must to relatively little metaprogramming :)
<shevy> that is too pitiful jamesfordummies
<benzrf> miyako: as dynamic languages go, ruby at LEAST has ubiquitous HOFs without horrible syntax
<jamesfordummies> pitiful?
<shevy> yes
<benzrf> unlike python and JStoker
<benzrf> *js
<workmad3> miyako: heh :) I'm resisting the urge to insult your ruby devs ;)
<momomomomo> same Wolland
<momomomomo> workmad3: *
<momomomomo> or their leadership
<jamesfordummies> ruby is OOP freedom, which your resume (no offense) somewhat lacks miyako
<benzrf> first they said "WE DON'T NEED NO TYPE SAFETY, WE KNOW HOW TO WRITE CORRECT CODE", and so they rejected compile time guarantees
<shevy> stalker!
Dwarf has quit [Ping timeout: 260 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> miyako: by 'heavier on client being responsible' I mean 'if I say to call the method with a string and you call it with a fricking TCP Socket because 'you can' then it's going to explode and it's *your* fault, not mine'
<benzrf> soon enough, they found their code lacking
<shevy> is this about haskell again
<benzrf> and lest they recant their vows, they found a new solution:
SchweetPapa has joined #ruby
<benzrf> FUCKING UNIT TESTS
<shevy> do haskell guys test?
<eam> shevy: everything is baout haskell
<benzrf> shevy: some of them do
<benzrf> but it's not needed nearly as much
<eam> well see your compiler catches errors
<miyako> jamesfordummies: oh, I've done OOP but I'll admit that I don't come from a really heavy traditional OO background
<workmad3> benzrf: tbh, most of my code bugs are nothing to do with type check issues
cschneid has quit [Ping timeout: 240 seconds]
<benzrf> workmad3: oh?
<jamesfordummies> miyako: ruby is especially refreshing when coming from languages like java
<benzrf> maybe you're thinking of java-style typing then
<shevy> what kind of bugs do you have workmad3
<benzrf> aka the kind that blows
Nahra has quit [Remote host closed the connection]
<benzrf> workmad3: in haskell, types MEAN something
<workmad3> shevy: the kind where I did something stupid :)
<benzrf> miyako: OO is not toooooooooooo terrible
<benzrf> miyako: just think about which behavior needs to know about which state
<benzrf> then put them in a class
<miyako> benzrf: it really depends on what you're doing, I mean I've done OO when appropriate
mlr has joined #ruby
<shevy> benzrf even wrote gems
<shevy> so he knows what he is writing about
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<miyako> but the domains I've worked in haven't been ones where OO made a lot of sense
<workmad3> shevy: DHH wrote a popular web framework... I still ignore half of what he says ;)
<jamesfordummies> academia?
<jamesfordummies> miyako:
<miyako> I've done plenty of "object-ish if you squint at it" C
<workmad3> benzrf: I ignore less of what you say btw ;)
<shevy> I don't even listen to what he says
<eam> ocaml is pretty great
Jackneill has quit [Read error: Connection reset by peer]
<workmad3> shevy: heh :) sometimes it's amusing
<shevy> to be honest, I don't think he exists outside of rails
<momomomomo> eh, I feel like whenever someone discovers 'learn you a haskell' or lisp, they get this reaction; it's a disservice to the languages
<miyako> jamesfordummies: kernel development, low level userspace C development
<shevy> except now that you brought it up workmad3! :(
<benzrf> wlanboy: than who?
<shevy> momomomomo can you explain to me what a monad is?
<workmad3> benzrf: than dhh
<benzrf> oh right
<workmad3> shevy: it's an endofunctor... I know that much
cschneid has joined #ruby
<momomomomo> shevy: I'm not your teacher http://www.haskell.org/haskellwiki/Monad
<benzrf> shevy: they say that a monad is a monoid in the category of endofunctors
* workmad3 knows to parrot 'endofunctor' when the term 'monad' comes up
jamesfordummies has quit []
<momomomomo> lol workmad3
<miyako> It's not really that I think ruby is fundamentally bad- I guess I can see why people might want it; I'm just having some culture shock
<benzrf> this is the same as saying that a class is a duplicatable template for instantiation of polymorphic bundles of state and behavior
<miyako> since it's very different from what I'm accustomed to
Vile` has quit [Quit: brb]
asdasdasdasss has joined #ruby
<shevy> so again you haskellites fail at communication
parzo_ is now known as parzo
Logico has quit [Quit: Saindo]
<miyako> shevy: but succeed in our motto, "avoid success at all costs!"
<momomomomo> shevy: I never said I was into haskell, I've never written any
<shevy> lol miyako
<shevy> momomomomo that is a valid excuse
<benzrf> a monad is a functor along with the ability to collapse its structure and the ability to lift a value into the functor
<benzrf> see, simple
cantonic has joined #ruby
<workmad3> benzrf: or that an object is a struct holding some state and a table of pointers to functions?
<shevy> lift a value
<miyako> a monad is like a burritor where the shell is an analogy for a metaphore
<benzrf> workmad3: perhaps
<miyako> *burrito
jottr has quit [Ping timeout: 245 seconds]
<benzrf> shevy: return :: a -> m a
Logico has joined #ruby
mikepack has quit [Remote host closed the connection]
<benzrf> shevy: monads are not terribly complicated
<benzrf> they are, however, terrifyingly abstract
Logico has quit [Client Quit]
mlr has quit [Ping timeout: 244 seconds]
<shevy> so something that is abstract
<eam> my VXmodules SDK shipped with a large compendium of monads
<shevy> can be super simple
<benzrf> shevy: imagine if you had to explain objects and classes without being able to make any analogies or metaphors
<workmad3> benzrf: one of these days, I'll try and get my head around haskell :)
<shevy> benzrf I would refer to real world objects
danijoo has quit [Read error: Connection reset by peer]
livingstn has quit [Read error: Connection reset by peer]
<benzrf> shevy: you're not allowed to
Logico has joined #ruby
<workmad3> shevy: that would be an analogy...
livingstn has joined #ruby
<momomomomo> loooool
<benzrf> shevy: see how easy it is now :p
<shevy> but to who would you explain it?
<shevy> to a human being?
Nahra has joined #ruby
<shevy> to a computer?
<centrx> a human what?
danijoo has joined #ruby
<eam> does anyone work with vx modules in ruby?
<benzrf> shevy: monads are arguably simpler than classes, but since they dont have as close an analogue as classes, they are much harder to grasp
<shevy> a human being
<workmad3> shevy: you'd probably spend most of your time explaining it to other people that already know wtf you're talking about </troll>
<shevy> class should be renamed to factory
<momomomomo> ick
<benzrf> factoryfactory
<momomomomo> not all classes are factories
<benzrf> factoryfactoryFACTORYFACTORY
Dwarf has joined #ruby
<benzrf> make me a ruby where there all classes are eigen
<eam> bespokeArtist
anarang has quit [Quit: Leaving]
<shevy> which classes are no factory?
asdasdasdasss has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
<benzrf> and i may clone
<workmad3> shevy: Fixnum
<eam> artisinalLocallyProduced
aclearman037 has quit []
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> Fixnum is not a real object
felixjet has quit [Read error: Connection reset by peer]
<workmad3> shevy: Fixnum is
<eam> but everything in ruby is a real object
<workmad3> shevy: instances of it aren't... but Fixnum is a real object ;)
<shevy> >> x = 5; def x.hi; puts "hi"; end
<eval-in> shevy => can't define singleton (TypeError) ... (https://eval.in/177084)
<workmad3> shevy: I'm talking about the class Fixnum, not instances of it ;)
<workmad3> >> Fixnum.new
<eval-in> workmad3 => undefined method `new' for Fixnum:Class (NoMethodError) ... (https://eval.in/177085)
<shevy> >> Fixnum.new
<eval-in> shevy => undefined method `new' for Fixnum:Class (NoMethodError) ... (https://eval.in/177086)
felixjet has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
bradleyprice has joined #ruby
<workmad3> shevy: see, a class that isn't a factory ;)
havenwood has joined #ruby
<centrx> maybe it will work on the third try
<centrx> >> Fixnew.nu
<eval-in> centrx => uninitialized constant Fixnew (NameError) ... (https://eval.in/177087)
<shevy> man
mikepack has joined #ruby
<workmad3> shevy: also, TrueClass, FalseClass, Float...
<workmad3> NilClass...
mikesplain has joined #ruby
<benzrf> >> Fixnum.allocate
<eval-in> benzrf => allocator undefined for Fixnum (TypeError) ... (https://eval.in/177088)
iliketurtles has joined #ruby
<benzrf> >> Fixnum.youre_a_cheat
<eval-in> benzrf => undefined method `youre_a_cheat' for Fixnum:Class (NoMethodError) ... (https://eval.in/177089)
<shevy> :\
<benzrf> >> Fixnum.youre_a_fraud
<eval-in> benzrf => undefined method `youre_a_fraud' for Fixnum:Class (NoMethodError) ... (https://eval.in/177090)
<shevy> >> String.allocate
<eval-in> shevy => "" (https://eval.in/177091)
<benzrf> >> Fixnum.youre_a_real_kneebiter
<eval-in> benzrf => undefined method `youre_a_real_kneebiter' for Fixnum:Class (NoMethodError) ... (https://eval.in/177092)
<workmad3> shevy: it would probably be more accurate to say that most classes have a factory method rather than that they are factories btw
<miyako> okay, well ruby is clearly inferior to haskell because I can't put comma at the front of elements when doing a multi-line list :P
<workmad3> miyako: hehe
<eam> >> Fixnum.instance_eval { def self.new; rand(2**31).to_i end }; Fixnum.new
<eval-in> eam => 1322415317 (https://eval.in/177095)
<benzrf> workmad3: lrn2haskell
<workmad3> miyako: that's still a better criticism than one I heard against javascript today :)
<benzrf> it will make you like types again
Logico has quit [Quit: Saindo]
<benzrf> jjj
cocotton_ has joined #ruby
<benzrf> ive been doing so much haskell, it surprised me for a second to see an impure function there :p
<workmad3> 'javascript is bad because it runs in the browser so clients can modify it'
<benzrf> rand()
<shevy> workmad3 in where I live, a factory is a building that produces stuff
<benzrf> workmad3: >implying proprietariness is a desirable trait
<benzrf> old man rms waves his cane @ u!
<shevy> please no sex joke
<workmad3> benzrf: even better, this guy is an RMS fan!
TorpedoSkyline has joined #ruby
<shevy> benzrf which language do you use the most these days?
chichou has quit [Remote host closed the connection]
goodenough has joined #ruby
<workmad3> benzrf: and was complaining about how it's wrong that you can't do that with phones nowadays and it's a sign of an orwellian state
<eam> workmad3: well he'd be right
<benzrf> shevy: huskul
<benzrf> workmad3: th-then
<benzrf> how do you
<benzrf> the
<shevy> I trust my corporate overlords
<benzrf> what
<benzrf> i
<shevy> man benzrf you have a sugar rush again
<benzrf> how do yoERROR DETECTED SHUTTING DOWN
<centrx> Is Haskell approved by Microsoft?
benzrf has left #ruby ["headsplode"]
benzrf has joined #ruby
<workmad3> woo!
<apeiros> yo
<shevy> Microsoft does not approve of anything
<workmad3> I crashed benzrf !
<apeiros> imagine that's all you can say
<apeiros> yo
<benzrf> haskell is totally m$ approved
<centrx> now that's what I call a monad
<shevy> yo apeiros
<benzrf> most of the creators work for haskell :p
<apeiros> shevy: no, only yo
<shevy> damn
<shevy> yo
<apeiros> and you get $MILLIONS$ for it :-S
cocotton has quit [Ping timeout: 260 seconds]
<benzrf> haskell is fun because it was created as a spec from the beginning
<workmad3> apeiros: yoyoyo yo yo yo yoyoyo
<benzrf> there is not a `reference implementation'
<apeiros> workmad3: hm, I'm actually curious whether it was always only a single "yo"
<benzrf> although GHC is starting to become that for the many, many language extns :-\
<benzrf> :-/ :-\
InfraRuby has left #ruby [#ruby]
cocotton_ has quit [Ping timeout: 240 seconds]
<workmad3> apeiros: so the entire limit of your vocalisation for your whole lifetime is a single 'yo'?
abuzze_ has joined #ruby
<centrx> it's feasible, but you have to add some additional words like "dude" and "okay"
<workmad3> centrx: no... as in you can only utter 'yo' once... for your entire life
<workmad3> otherwise you could ascribe meanings to different lengths of pause between utterances
<workmad3> I guess some gesticulation and pointing at things would be needed to share meanings
ppinto has quit [Quit: ppinto]
dbasch has quit [Quit: dbasch]
<benzrf> workmad3: the `monoid in the category of endofunctors' joke is a joek
<miyako> okay, what did I do wrong here: https://gist.github.com/rebeccaskinner/dd5e84cec2b8cb4adc8e
ascarter has joined #ruby
* workmad3 points at apeiros
ascarter has quit [Max SendQ exceeded]
<benzrf> it is true that the notion of a monoid in the category of endofunctors is isomorphic to the original definition of a monad
<workmad3> yo yo yo yo yo yo
<eam> will a person every say "yo" in their lifetime? This is known as the yo'ing problem
<benzrf> but defining monads that way is kind of like defining graphing an equation in terms of calculus
alem0lars has quit [Quit: Bye !]
ascarter has joined #ruby
alem0lars has joined #ruby
jdj_dk has joined #ruby
<terrellt> miyako: It has to be :"@#{iv}
<terrellt> "
<workmad3> miyako: instance_variable_set("@#{iv}", val
yfeldblum has joined #ruby
zenspider has quit [Ping timeout: 240 seconds]
<workmad3> (: to make it a symbol is, I believe, optional)
abuzze has quit [Ping timeout: 255 seconds]
ssvo has joined #ruby
renderful has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> workmad3: it is simple, mang!'
<miyako> ah, okay, I see how it's working
<benzrf> workmad3: merely consider the category of endofunctors on a category C
<benzrf> given functor composition as a bifunctor on this category of endofunctors
<workmad3> benzrf: yeah, I follow :)
brianherman has joined #ruby
<benzrf> it is simple to show that it is associative and has an identity in the form of the identity functor
<workmad3> benzrf: I'm just not sufficiently versed in category theory to fully understand
brianherman has quit [Max SendQ exceeded]
<benzrf> workmad3: do you know what a monoid is
<apeiros> workmad3: you never heard about that "yo" app?
<workmad3> benzrf: and right now, I'm busy cramming my head with popper and next it's going to be more tensors methinsk
<workmad3> benzrf: not particularly
<shevy> "Others were even considering a Python wrapper for both GCC and LLVM to keep the interface common."
<shevy> ruby is losing out to python :(
<workmad3> benzrf: I have some stanford lectures on haskell in my youtube to-watch list for bus trips though :)
zenspider has joined #ruby
<benzrf> workmad3: it's just a set along with an associative binary operator that the set is closed under, plus a designated element of the set that is a left and right identity for the operator
michaeldeol has joined #ruby
<benzrf> workmad3: i.e. {N, +, 0}
sdwrage has quit [Quit: This computer has gone to sleep]
siwica1 has joined #ruby
<workmad3> benzrf: ah, ok
<workmad3> benzrf: that I can follow :)
<benzrf> or {functions_from_a_set_to_itself, composition, identity_function}
Ayey_ has joined #ruby
<benzrf> workmad3: well, a monoid in a category is an extreme generalization of the notion of a monoid that will make no sense if you dont know basic category theory
<benzrf> =)
<workmad3> benzrf: {NxN matrices, *, I}
<benzrf> workmad3: ya
charliesome has joined #ruby
<workmad3> benzrf: category theory is on my list of things to read more about :)
<benzrf> workmad3: groups are just monoids w/ inverses
<benzrf> ^v good
InfraRuby has joined #ruby
ghr has joined #ruby
<benzrf> workmad3: dyou know about groups
<benzrf> they seem pretty popular these days
<benzrf> and those days
<lfox> Is there a equivalent of respond_to? for private methods?
krisquigley has joined #ruby
<benzrf> >> Object.instance_methods.grep /respond/
<eval-in> benzrf => [:respond_to?] (https://eval.in/177098)
<benzrf> hm
<benzrf> lfox: heck if i knw
<workmad3> benzrf: slightly more familiar with groups, mostly in association with concepts of symmetry
<benzrf> workmad3: ya, groups are just monoids where each element has an inverse that yields identity when multiplied by it
<benzrf> multiplication meaning the group operation
siwica has quit [Ping timeout: 250 seconds]
<momomomomo> #haskell
<benzrf> workmad3: i assume you know about group homomorphisms, then
<benzrf> momomomomo: :-3
Zenigor has quit [Remote host closed the connection]
* momomomomo points at the door
<momomomomo> :D
<workmad3> momomomomo: :P
<workmad3> momomomomo: topics are there as guidelines, not rules, right? :P
<momomomomo> there's a bacon party for the interns right now
<jhass> lfox: pass true as second parameter
kireevco has quit [Quit: Leaving.]
<benzrf> workmad3: let me tell u
<benzrf> about category theory
<benzrf> (⊙ω⊙)
tylerkern has quit [Remote host closed the connection]
<momomomomo> let me tell you guys about a little thing I like to call the haskell site - complete with docs, tutorials and descriptions!
<benzrf> ironically i still need to learn linear algebra
tylerkern has joined #ruby
sergiomiranda has quit [Quit: sergiomiranda]
<workmad3> benzrf: hmm... do those have symmetry?
<benzrf> workmad3: i dont even know what that means
<workmad3> benzrf: heh :) linear algebra is something I am *much* more familiar with :)
<momomomomo> boom done
<benzrf> b-but i like lecturing people
<momomomomo> boom done benzrf
<jhass> ^
kireevco has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<momomomomo> just kidding, don't let me ruin the fun
Ankhers has quit [Remote host closed the connection]
testcore has quit [Remote host closed the connection]
<momomomomo> i'm always in here talking about Go
skylite has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> momomomomo: ooh... got and good life and death problems atm?
Ankhers has joined #ruby
<workmad3> or is that the wrong Go? :P
testcore has joined #ruby
bmurt has quit []
<benzrf> in a category theres objects
<benzrf> then theres morphisms
<shevy> who the fuck needs Go
<momomomomo> wrong go workmad3
<momomomomo> :D
<workmad3> shevy: it's a great game
<benzrf> then theres a rule for describing the src and destination objects of a given morphism
<shevy> that was before the internet
<momomomomo> workmad3: I've never played
<shevy> I played Go when I was younger
<workmad3> shevy: it's still a great game :)
<shevy> but it gets complicated
<benzrf> then theres an identity morphism for each object whose src and dest are that object
<momomomomo> ;P shevy
<benzrf> then theres an associative `composition' operator that takes a morphism from A to B and one from B to C and gives a morphism from A to C
<benzrf> also a couple laws
<benzrf> Set is a category where the objects are sets and the morphisms are functions
<benzrf> Hask is a category where the objects are haskell types and the morphisms are haskell functions
tylerkern has quit [Client Quit]
<workmad3> benzrf: hmm... how about if after I finish popper I read this book I have on discrete maths? :)
* benzrf doesnt read books
<benzrf> the internet has nuked my attention span ;-;
<benzrf> mostly i just read wikipedia, the occasional pdf, and spend a lot of time in #haskell-blah and ##math
paulfm has quit []
<workmad3> benzrf: sets, graphs, groups, finite fields and the like
<benzrf> i spend too much time in those channels actually
<benzrf> i keep forgetting that not everybody in irc knows what a group homomorphism is
tylerkern has joined #ruby
bdnchr has joined #ruby
CaptainJet has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> benzrf: heh :) I get like that... but with how to use a fricking browser
<workmad3> benzrf: and mostly with people IRL, not online
jdj_dk has quit [Ping timeout: 272 seconds]
<workmad3> benzrf: ah, abstract algebra is another area I really want to delve into deeper
<workmad3> benzrf: there's just too many of the damn things! :(
jgx has joined #ruby
jgx has left #ruby [#ruby]
TrueJet has quit [Ping timeout: 250 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
verto_ is now known as verto
<benzrf> i keep intending to learn linear algebra and calculus and topology and ...
<benzrf> juuust as soon as i finish this CT pdf ive had open in a tab for several months and advance on by 1 page per 3 days
tylerkern has quit [Client Quit]
<workmad3> benzrf: a very familiar situation :)
livingstn has quit []
OffTheRails has joined #ruby
ponch_ has joined #ruby
maestrojed has joined #ruby
momomomomo has quit [Quit: momomomomo]
<Hanmac> benzrf: NEW SEASON OF GRAVITYFALLS!!!! WTF xD
<benzrf> Hanmac: did u just realize
bradleyprice has quit [Read error: Connection reset by peer]
<benzrf> its been almost a week geesh
<benzrf> new ebisode monday after the 1st two
<benzrf> Hanmac: fyi ending sentences w/ `WTF xD' is generally a bad sign eh
marr has joined #ruby
<Hanmac> benzrf: how did you like that shapeshifter?
mikesplain has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
TorpedoSkyline has joined #ruby
arunagw has joined #ruby
nateberkopec has joined #ruby
<benzrf> creepy fuck
ged_ is now known as ged
balazs has joined #ruby
<benzrf> i think things worked out for dipper as well as they theoretically could
<benzrf> like wow that was a pretty great resolution on his part
<benzrf> er, for him
ponch_ has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
InfraRuby has left #ruby [#ruby]
<bdnchr> Can someone help me understand why the Open4 gem running inside rails/passenger/nginx would be using my system Ruby (1.9.3) at /usr/bin/ruby instead of the /usr/local/bin/ruby (2.1.2) that rails/passenger/nginx are explicitly configured to use? I installed 2.1.2 on Precise from the binaries, and do not have rvm installed. I'm at the point where I just want to delete the /usr/bin/ruby or symlink it, but I have a bad feeling ab
<bdnchr> out that. =)
kireevco1 has joined #ruby
andrewjanssen has joined #ruby
tjr9898 has quit [Remote host closed the connection]
starkhalo has quit [Quit: WeeChat 1.0-dev]
kireevco has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
<shevy> just move it away and then put a symlink?
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
<bdnchr> that's ok to do? I feel like I'd be busting something, but busting what's already broke can't be worse, right?
MartinCleaver has quit [Quit: MartinCleaver]
Vile` has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
basiclaser has quit [Excess Flood]
alem0lars has quit [Quit: alem0lars]
patrick99e99 has joined #ruby
gdd229 has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
AlexRussia has quit [Ping timeout: 244 seconds]
rb2k has joined #ruby
omosoj has joined #ruby
<rb2k> Why can I push to a queue in Ruby 2.1.2 inside Signal handler even though it uses a mutex?
jm0 has left #ruby [#ruby]
SilkFox_ has quit [Ping timeout: 250 seconds]
JohnBat26 has quit [Ping timeout: 250 seconds]
<rb2k> or does it even use a mutex in 2.1.2 anymore? I can’t seem to quite find it :-/
basiclaser has joined #ruby
<rb2k> maybe because it’s all C now that doesn’t matter anymore?
<bdnchr> thanks, shevy. =)
claymore has quit [Quit: Leaving]
Zenigor has joined #ruby
bradleyprice has joined #ruby
claymore has joined #ruby
jottr has joined #ruby
ldnunes has quit [Quit: Leaving]
timonv_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Matip has quit [Ping timeout: 246 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Mead error: Connection reset by beer]
Zenigor has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
failshel_ has joined #ruby
mlr has joined #ruby
joelteon has joined #ruby
Cheezebox has quit [Remote host closed the connection]
kriskropd has quit [Quit: leaving]
startupality has joined #ruby
gdd229 has quit [Quit: Leaving.]
Ankhers has quit [Ping timeout: 264 seconds]
asdasdasdasss has joined #ruby
jdj_dk has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
byteddown has quit [Read error: Connection reset by peer]
failshel_ has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
mlr has quit [Ping timeout: 245 seconds]
benzrf is now known as benzrf|offline
SilkFox has quit [Ping timeout: 260 seconds]
parzo has quit [Remote host closed the connection]
kriskropd has joined #ruby
parzo has joined #ruby
asdasdasdasss has quit [Read error: No route to host]
asdasdasdasss has joined #ruby
<shevy> bdnchr well it should work and is simple, the filesystem should not care about absolute positions. the only exceptions are I think related to glibc and /bin/bash or /bin/sh or something... lemme try to find that
lidaaa has joined #ruby
renderfu_ has joined #ruby
<bdnchr> shevy: thank you... I can't think of any reason not to, I just hear "don't delete system ruby" enough that I hesitate.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> bdnchr found it: http://nixos.org/nixos/about.html
<shevy> "A big implication of the way that Nix/NixOS stores packages is that there is no /bin, /sbin, /lib, /usr, and so on. Instead all packages are kept in /nix/store. (The only exception is a symlink /bin/sh to Bash in the Nix store.)"
yekta has quit [Quit: yekta]
<shevy> hmm
<shevy> perhaps I mix it up... I could have sworn that there was an entry related to hardcoded paths somewhere related to glibc
<shevy> I remember that because it was a reason why GoboLinux could not easily do away with their legacy symlinks to the FHS-style layout in their tree
OffTheRails has quit [Quit: Leaving]
<bdnchr> shevy I won't touch Bash then, and the glibc is probably important enough to leave alone.
parzo has quit [Ping timeout: 244 seconds]
<shevy> hehe
<shevy> I always failed upgrading glibc :(
<crome> what, it's just emerge glibc
<shevy> crome which version
<jhass> no, it's just pacman -Syu
iliketurtles has quit [Quit: zzzzz…..]
renderful has quit [Ping timeout: 240 seconds]
<shevy> which version
<jhass> 2.19
definiv has quit [Quit: leaving]
<shevy> how about 2.18
<jhass> why would you want to downgrade?
<crome> it's just emerge =glibc-2.18
kaspertidemann has quit []
<shevy> there can be many reasons to use different versions
cpruitt has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<shevy> I had to use ruby 1.8.x for a long time!
<jhass> oh, well, just pacman -U /var/cache/pacman/pkg/glibc-2.18-10-x86_64.pkg.tar.xz then
iliketurtles has joined #ruby
amacou has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Eiam has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
gtrak has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
gdd229 has joined #ruby
x1337807x has joined #ruby
goodenough has quit [Ping timeout: 272 seconds]
babykosh has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
anaeem1_ has quit [Remote host closed the connection]
Sid05 has quit [Quit: Sid05]
jdj_dk has quit [Ping timeout: 250 seconds]
<babykosh> is there a Rails channel?
<havenwood> babykosh: #rubyonrails
* apeiros was tempted to say 'yes'
<havenwood> apeiros: you have two wishes remaining.. :)
LiohAu has quit [Quit: LiohAu]
ghr has joined #ruby
bronson has quit [Quit: bronson]
benlieb has joined #ruby
johnmolina has quit []
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
Nahra has quit [Remote host closed the connection]
dapz has joined #ruby
<shevy> can he wish for more wishes to have?
itadder__ has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> shevy: only if you setup RubyVM::InstructionSequence for TCO
joelteon has left #ruby ["bye"]
bdnchr has quit [Ping timeout: 250 seconds]
gdd229 has quit [Quit: WeeChat 0.4.2]
goodenough has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Quit: night]
TorpedoSkyline has joined #ruby
bradleyprice has quit [Ping timeout: 260 seconds]
jds has quit [Quit: Connection closed for inactivity]
philcrissman has joined #ruby
jdj_dk has joined #ruby
<shevy> hmm
<shevy> >> Array.instance_methods(false)
<eval-in> shevy => [:inspect, :to_s, :to_a, :to_h, :to_ary, :frozen?, :==, :eql?, :hash, :[], :[]=, :at, :fetch, :first, :last, :concat, :<<, :push, :pop, :shift, :unshift, :insert, :each, :each_index, :reverse_each, :le ... (https://eval.in/177108)
<shevy> ok so we get those methods
<shevy> but how do I get all of ruby classes? class Array class String class Hash etc...
miyako has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Client Quit]
alexju has joined #ruby
parzo has joined #ruby
sailias has quit [Quit: Leaving.]
gdd229 has joined #ruby
<eam> >> ObjectSpace.each_object.select {|o| o.class == Class }
<eval-in> eam => [Errno::ETIME, Errno::ENODATA, Errno::ENOSTR, Errno::EBFONT, Errno::EBADSLT, Errno::EBADRQC, Errno::ENOANO, Errno::EXFULL, Errno::EBADR, Errno::EBADE, Errno::EL2HLT, Errno::ENOCSI, Errno::EUNATCH, Errn ... (https://eval.in/177109)
bluOxigen has quit [Ping timeout: 240 seconds]
InhalingPixels has joined #ruby
<crome> >> Module.constants.sort
<eval-in> crome => [:ARGF, :ARGV, :ArgumentError, :Array, :BasicObject, :Bignum, :Binding, :CROSS_COMPILING, :Class, :Comparable, :Complex, :ConditionVariable, :Config, :Data, :Date, :Dir, :ENV, :EOFError, :Encoding, :En ... (https://eval.in/177110)
<eam> some of those aren't classes
<crome> yeah
<crome> (https://eval.in/177110) looks like an odd one
amacou has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 264 seconds]
<apeiros> eam: each_object accepts an argument
amacou has joined #ruby
<eam> oh that's right, I always forget that
<shevy> hmmm
Mattx has joined #ruby
<havenwood> shevy: You wanna know all methods of Array and it's ancestors? Or all methods of all Objects? Or something else?
<apeiros> shevy: ObjectSpace.each_object(Module).inject([]) { |meths, mod| meths | mod.instance_methods(false) }
<eam> too bad you can't really get all the classes
<apeiros> or somesuch
jottr has quit [Ping timeout: 272 seconds]
<shevy> havenwood I want to add tab completion in a shell, like ri Array#dup or something
<crome> apeiros injects meths
<apeiros> eam: hm? I think you can with ObjectSpace - which ones can't you get?
TorpedoSkyline has joined #ruby
<eam> eigenclasses?
alexju has quit [Ping timeout: 264 seconds]
parzo has quit [Ping timeout: 260 seconds]
newUser1234 has quit [Remote host closed the connection]
codecop has quit [Quit: Išeinu]
andrewlio has quit [Remote host closed the connection]
<apeiros> hm, odd. indeed. why does ObjectSpace not enumerate them?
amacou has quit [Ping timeout: 246 seconds]
<eam> I mean, ObjectSpace probably has to create them in order to enumerate them right
<apeiros> not the ones which already exist
axsuul has joined #ruby
hasseo has joined #ruby
chichou has joined #ruby
CpuID has joined #ruby
hasseo has left #ruby ["Leaving..."]
<apeiros> >> x = Object.new; def x.foo; end; xsc = x.singleton_class; ObjectSpace.each_object(Class).include?(xsc)
<eval-in> apeiros => false (https://eval.in/177111)
<apeiros> I expected that to be true
poguez_ has quit [Quit: Connection closed for inactivity]
<shevy> eval-in!! you disappointed apeiros!
krisquigley has quit [Remote host closed the connection]
auxbuss has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<hephaestus_rg> hi, i'm trying to change delayed_job's delay method to do a databse lookup instead of persisting the calling object, see:
<hephaestus_rg> how could i make this support methods with 0-n arguments
icarus has quit [Quit: Lost terminal]
zoo-zed has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
<jhass> try appending *args everywhere
gdd229 has quit [Quit: WeeChat 0.4.2]
<jhass> also consider public_send over send
<jhass> *args everywhere, just not in the call
icarus has joined #ruby
<jhass> well, at least in the queue definition I'd do it
<jhass> seems more natural than having to pass an array
<hephaestus_rg> will that handle methods that take one argument that is an array?
<jhass> yes
aspires has quit []
<hephaestus_rg> let me fix it with the *args,
SCHAAP137 has quit [Remote host closed the connection]
<hephaestus_rg> does thi slook right? https://gist.github.com/hayksaakian/9a8391f69b4af54fe763
<jhass> yep
<hephaestus_rg> cool, now to write some tests
benzrf|offline is now known as benzrf
<jhass> you don't need the self. there btw.
danijoo has quit [Ping timeout: 250 seconds]
<jhass> and I'd consider using self.class in case the class is renamed
<hephaestus_rg> oh good idea
<crome> because it happens all the time
<jhass> also allows for extraction into a module or something
<hephaestus_rg> i was planning on extracting it into something that could be included into relevant models
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
phoo1234567 has quit [Quit: Leaving]
asdasdasdasss has joined #ruby
mrsolo has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heyimwill has quit [Quit: bye]
auxbuss has quit [Quit: I'm gone.]
o0oo0o has quit [Quit: WeeChat 0.4.3]
asdasdasdasss has quit [Read error: No route to host]
o0oo0o has joined #ruby
asdasdasdasss has joined #ruby
d4nk has quit [Read error: Connection reset by peer]
d4nk has joined #ruby
magikfx__ has joined #ruby
heyimwill has joined #ruby
mlr has joined #ruby
ValicekB has joined #ruby
dblessing has quit [Quit: dblessing]
jrhorn424 is now known as zz_jrhorn424
<shevy> ok I now added tab completion support
workmad3 has quit [Ping timeout: 260 seconds]
<shevy> is there a simple way to find the documentation of e. g. Array#size ?
<shevy> from within a .rb file
<hephaestus_rg> neat, it works. thanks jhass
siwica1 has quit [Remote host closed the connection]
siwica has joined #ruby
rb2k has quit [Quit: rb2k]
asdasdasdasss has quit [Ping timeout: 264 seconds]
<jhass> shevy: look at how pry-doc does it
bronson has joined #ruby
mlr has quit [Ping timeout: 260 seconds]
msmith_ has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<wallerdev> python comments are parsed though
<wallerdev> ruby parser ignores comments
<hephaestus_rg> now i need to figure out a way to replace object.queue(:method, args) with object.queue.method args
centrx has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> you need an intermediate class that defines method_missing
Sie00 has joined #ruby
<hephaestus_rg> yeah, i'm looking at the delayed_job source code, seems like they do that https://github.com/collectiveidea/delayed_job/blob/0e98e1610e95152ccb4c06790de3ff66e34d0233/lib/delayed/message_sending.rb#L18
ryanleesipes has quit [Quit: Leaving]
ponch_ has joined #ruby
ki0 has joined #ruby
Ayey_ has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
tylerkern has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
jdj_dk has quit [Remote host closed the connection]
Ilyas has quit [Ping timeout: 240 seconds]
siwica has quit [Ping timeout: 264 seconds]
Lucky__ has joined #ruby
Sgeo has joined #ruby
ponch_ has quit [Ping timeout: 260 seconds]
Sid05 has joined #ruby
ponch_ has joined #ruby
x1337807x has quit [Ping timeout: 260 seconds]
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
Rennex_ is now known as Rennex
glebm has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
ki0 has quit [Remote host closed the connection]
jottr has joined #ruby
ki0 has joined #ruby
mikepack has quit [Remote host closed the connection]
testcore has quit [Ping timeout: 264 seconds]
gregf has quit [Quit: WeeChat 0.4.3]
DivineEntity has joined #ruby
InfraRuby has joined #ruby
startupality has quit [Quit: startupality]
krisquigley has joined #ruby
ki0 has quit [Ping timeout: 240 seconds]
TorpedoSkyline has quit [Ping timeout: 250 seconds]
weems|nix has joined #ruby
bronson has quit [Quit: bronson]
asdasdasdasss has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
lw has quit [Quit: s]
TrueJet has joined #ruby
_djbkd has joined #ruby
Renich has joined #ruby
CaptainJet has quit [Ping timeout: 250 seconds]
<Renich> hey guys
<crome> hey
banister has joined #ruby
<crome> at least I guess it was an appropriate response
<Renich> how can I make my gems's binaries install in ~/bin; not ~/.gem/ruby/<version>/bin?
krisquigley has quit [Ping timeout: 260 seconds]
<havenwood> Renich: -i, --install-dir DIR
<Renich> havenwood: that affects the bin only?
<havenwood> Renich: ah, i didn't understand question
<havenwood> Renich: -n, --bindir DIR
<Renich> havenwood: oh, great. What about putting that in a .gemrc or something?
<Renich> havenwood: is it possible?
djbkd has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
_djbkd has quit [Ping timeout: 272 seconds]
shacklef_ has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<Renich> havenwood: and, btw, where did you find that option? I've been looking at gem --help and gem help install for a while now
mikepack has joined #ruby
goodenough has quit [Remote host closed the connection]
<havenwood> Renich: I'm not sure on gemrc but I think yes. Checkout: gem help install
<Renich> havenwood: forget it... found it
<Renich> ok
<Renich> thanks
yfeldblum has joined #ruby
balazs has quit [Ping timeout: 255 seconds]
tvw has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
axsuul has joined #ruby
mikepack has quit [Remote host closed the connection]
<havenwood> Renich: oh, you said gem help install, it's just hidden there :)
<havenwood> a lot going on
<Renich> havenwood: yeah, it was. Found it. Thanks a lot. No worries!
CoffeeDrivenC0de has joined #ruby
babykosh has quit [Quit: babykosh]
<shevy> class Gem::RDoc
Mattx has quit [Ping timeout: 240 seconds]
<shevy> @rdoc_version = nil
<shevy> that is weird
Takle has quit [Remote host closed the connection]
tewlz has joined #ruby
Takle has joined #ruby
SchweetPapa has quit [Ping timeout: 240 seconds]
<Renich> havenwood: it works great on a .gemrc. just add gem: -i ~/bin and voila!
testcore has joined #ruby
<Renich> havenwood: thanks again
parzo has joined #ruby
<havenwood> Renich: no prob ;)
aspires has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<tewlz> I'm trying to figure out why when I push a hash of key values onto and array and then push another hash (with identical keys) onto the same array, it shows up as the second hash just being there twice....hmm
spider-mario has quit [Remote host closed the connection]
davedev24_ has joined #ruby
<CoffeeDrivenC0de> Stuck in a loop?
<tewlz> would that have something to do with identical keys so it somehow overwrites the first because keys are identical?
<jhass> tewlz: not sure I follow you, got an example?
<tewlz> one second
CpuID has quit [Quit: This computer has gone to sleep]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
toastynerd has joined #ruby
iamjarvo has joined #ruby
djbkd has joined #ruby
nanoyak has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
renderfu_ has quit [Remote host closed the connection]
davedev2_ has quit [Ping timeout: 260 seconds]
<tewlz> does anyone have any idea how to copy from a tmux buffer?
<tewlz> I remember how to enter copy mode
Renich has left #ruby [#ruby]
parzo has quit [Ping timeout: 250 seconds]
SchweetPapa has joined #ruby
<tewlz> can't remember how to copy the selection lol
<crome> command+p
<crome> oh
<crome> you mean copy
<tewlz> mhm
nicklolsen has quit []
<crome> just hit enter when you select stuff
<tewlz> ctrl+space enters selection mode
nateberkopec has joined #ruby
<tewlz> really? lol that easy?
mary5030 has quit [Remote host closed the connection]
Atttwww has joined #ruby
<tewlz> nope :( brb
<tewlz> gotta look it up lol
goodenough has joined #ruby
<crome> I'm looking at my tmux config but I have nothing fancy for copying stuff
<tewlz> damnit it is supposed to be enter...one second
cpruitt has quit [Quit: cpruitt]
havenwood has quit []
TorpedoSkyline has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
renderful has joined #ruby
iaj has quit [Ping timeout: 250 seconds]
phutchins has quit [Ping timeout: 240 seconds]
<tewlz> tmux copy to hard >.<
redondo has quit [Ping timeout: 240 seconds]
bobdobbs has quit [Read error: Connection reset by peer]
<tewlz> lol had to do some wonky buffer to vim to clipboard crap
qhartman has joined #ruby
deric_skibotn has quit [Ping timeout: 255 seconds]
<jhass> so you push the same hash s.size times into container_array
<jhass> (btw. you need better variable names)
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
renderful has quit [Ping timeout: 240 seconds]
<crome> s, i, k, v
charliesome has joined #ruby
<CoffeeDrivenC0de> ++ For better variable names
<crome> cpt. obvious understands all this stuff
<jhass> attrs and container_array isn't good either
<CoffeeDrivenC0de> Does your code have a character limit? =p (just kidding)
<tewlz> sorry this is just from irb testing
tvw has joined #ruby
<tewlz> not actual code yet
<tewlz> :p
rb2k has joined #ruby
<jhass> what is i.bindings.class?
toastynerd has quit [Remote host closed the connection]
<crome> splitting hairs but maybe Hash[k.to_sym, v.to_s] could be {k.to_sym => v.to_s} :)
<CoffeeDrivenC0de> You said the last hash is just getting added twice?
<tewlz> sorry, I'm working with some really crazy RDF sparql stuff
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tewlz> I figured it out though, I had to clear attrs after pushing to array
<jhass> still, what is i.bindings.class
<CoffeeDrivenC0de> Nice, glad you figured it out.
<tewlz> not sure why attrs wasn't getting much more full than that.....but it works?
toastynerd has joined #ruby
<tewlz> jhass: Sparql::Solution
<CoffeeDrivenC0de> Shouldn't merge! overwrite hashes with duplicate keys though?
axsuul has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
<tewlz> jhass: sorry I lied it's a Hash
<tewlz> CoffeeDrivenC0de: that's what I was thinking I'm not sure how I'm getting that output, but it works....
<jhass> tewlz: so you want a hash and you have a hash
<jhass> ...
<jhass> do I need to say more?
siwica has joined #ruby
<CoffeeDrivenC0de> Yeah, I would of made the same assumption you did tewlz. Maybe you just broke ruby? lol
<tewlz> jhass: I have to cast stuff inside that hash to string before getting my final hash
icebourg has quit []
<jhass> i.bindings.map {|k,v| [k.to_s, v.to_s] }.to_h then
<tewlz> CoffeeDrivenC0de: the code I'm working on is pretty strange, ruby being broken isn't out of the realm of possibility
<tewlz> jhass: that's a much better solution, thanks
<jhass> or Hash[i.bindings.map {|k,v| [k.to_s, v.to_s] }] on a older ruby
<tewlz> got too bogged down in crap to look for a cleaner approach
<tewlz> thanks gentlepeople, I'ma get back to it
<crome> well, CoffeeDrivenC0de just broke english, I wouldn't be surprised if ruby were broken as well ;>
<tewlz> LOL
ccolorado has joined #ruby
ccolorado has left #ruby [#ruby]
Sid05 has quit [Quit: Sid05]
<CoffeeDrivenC0de> I did?
<crome> it raises an interesting point though
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
autonomousdev has joined #ruby
* CoffeeDrivenC0de still confused
maletor_ has joined #ruby
<crome> < CoffeeDrivenC0de> Yeah, I would of
abdulsattar has quit [Ping timeout: 240 seconds]
<CoffeeDrivenC0de> Ah, thank you for pointing that out.
SchweetPapa has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 250 seconds]
mlr has joined #ruby
rb2k has quit [Ping timeout: 260 seconds]
maletor has quit [Ping timeout: 245 seconds]
DivineEntity has quit [Ping timeout: 240 seconds]
bricker`work has quit [Read error: Connection reset by peer]
babykosh has joined #ruby
<crome> I see it way too often, I'm wondering when it will become standard
toastynerd has quit [Remote host closed the connection]
bricker`work has joined #ruby
<crome> apparently it's a rather old phenomenon
qwyeth has quit [Remote host closed the connection]
toastynerd has joined #ruby
Sid05 has joined #ruby
nbarnett has joined #ruby
hephaestus_rg has quit [Ping timeout: 240 seconds]
aspires has quit []
nowthatsamatt has quit [Quit: nowthatsamatt]
mlr has quit [Ping timeout: 260 seconds]
nfk has quit [Quit: yawn]
DivineEntity has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
SchweetPapa has joined #ruby
usinganalias has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snath has quit [Ping timeout: 260 seconds]
<usinganalias> Hello #ruby! Beginning Ruby user here - what's the difference between Object#instance_methods and Object#methods?
jdj_dk has joined #ruby
<usinganalias> Oops - the first one should be Module#instance_methods
andrewjanssen has quit [Quit: Leaving...]
nateberkopec has joined #ruby
<Radar> usinganalias: one returns instance methods for that object, the other returns the object's methods.
<crome> well, the main differnce is that they are different things :)
banister has joined #ruby
<tewlz> lol
banister has quit [Max SendQ exceeded]
<wallerdev> theyre pretty similar
<wallerdev> object.methods will get the class and then call instance_methods on that basically
banister has joined #ruby
<usinganalias> I see.
<usinganalias> Thanks!
tylerkern has joined #ruby
TorpedoSkyline has joined #ruby
<Radar> usinganalias: good example here: https://gist.github.com/radar/79fc1ac58101c894e255
<usinganalias> Thanks Radar :)
tylerkern has quit [Client Quit]
<usinganalias> So Object#methods only returns class methods?
<Radar> usinganalias: It returns the methods of that object.
charliesome has joined #ruby
<usinganalias> But how come your example didn't also return :baa when #methods was called?
jayunit100_ has joined #ruby
<usinganalias> baa is also a method, right?
bbloom has joined #ruby
mib_mib has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<Radar> because baa is a method on instances of the Ryan class, and not the Ryan object.
Sie00 has quit [Remote host closed the connection]
<usinganalias> I see. So even if I call Ryan.new.methods, it will only return [:moo]
<Radar> No.
Mattx has joined #ruby
Mattx has joined #ruby
<usinganalias> Oh, and everything from Object.
banister has quit [Client Quit]
<Radar> Ryan.new.methods will retuyrn baa
<usinganalias> Oops - it returns :baa, that makes more sense.
tewlz has quit [Ping timeout: 255 seconds]
<Radar> Because Ryan.new is a new instance of Ryan
<usinganalias> Now it's clearing up - thanks Radar.
<Radar> :)_
banister has joined #ruby
<usinganalias> Appreciate the help - have a good one!
usinganalias has left #ruby [#ruby]
snath has joined #ruby
<Radar> you too
axsuul has quit [Ping timeout: 245 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philcrissman has joined #ruby
PeterBoy has joined #ruby
sdwrage has joined #ruby
TorpedoSkyline has joined #ruby
toastynerd has quit [Remote host closed the connection]
ghr has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
gregf has joined #ruby
InhalingPixels has quit []
toastyne_ has joined #ruby
ffranz has quit [Quit: Leaving]
jdj_dk has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
b00stfr3ak has joined #ruby
Ulrike_Rayne has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nszceta_ has quit []
Sammael has quit [Ping timeout: 260 seconds]
toastyne_ has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby
cantonic has quit [Quit: cantonic]
sevvie has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
cantonic has joined #ruby
tkuchiki has joined #ruby
lid_ has joined #ruby
_maes_ has joined #ruby
parzo has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]