jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
PpPyg has joined #ruby
baweaver_ has quit [Read error: Connection reset by peer]
Regulati_ has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
<shevy> it's the old way!
sarkyniin has quit [Ping timeout: 264 seconds]
lannonbr has joined #ruby
startupality has joined #ruby
<nitenq> Ox0dea: do you know why I can’t convert : nm = NetAddr.i_to_bits('0xffffff00'.to_i(16)) to a string ? It seems to be an array but i don’t get why
sankaber has joined #ruby
nateberkope has joined #ruby
howdoicomputer has quit [Ping timeout: 244 seconds]
mdcox_ has joined #ruby
scpike has quit [Quit: leaving]
<nitenq> and I can’t get the value i want, even if i do a nm[0].to_str
<zenspider> Ox0dea: odd that you quibble "split(//)".length > "chars".length but have no problem opening up Fixnum and adding a whole new (comparatively giant) method.
iceyec_ has joined #ruby
shadoi1 has joined #ruby
<Ox0dea> zenspider: We have Integer#bit_length, but not Integer#bits?
Rutix`away has joined #ruby
Rutix`away has joined #ruby
lordkryss_ has joined #ruby
bruno-_ has joined #ruby
<Ox0dea> Additionally, even Rubocop doesn't consider one line "comparatively giant".
MiracleBlue_ has joined #ruby
xkickflip_ has joined #ruby
<Ox0dea> inb4 s/line/expression/
<jhass> jeez, this is easily settled: both of you suck. case closed
dimasg has quit [Ping timeout: 255 seconds]
<Ox0dea> I hope you feel better.
<shevy> I just had to see how people in 1982 programmed in C -> http://shevegen.square7.ch/screenshot.png
<zenspider> I didn't even know about bit_length
<zenspider> n = 42; n.bit_length.downto(0).map { |i| n[i] }
<zenspider> shevy: you should read Lion's commentary of unix V
<zenspider> lyon ?
sankaber has quit [Ping timeout: 260 seconds]
<zenspider> it's kinda amazing
shmilan has quit [Ping timeout: 264 seconds]
<Ox0dea> zenspider: You have an OBOE in that snippet.
Olipro_ has joined #ruby
<zenspider> oboe? I play no musical instruments
Olipro_ is now known as Guest87023
polpak has quit [Quit: leaving]
<Ox0dea> My condolences.
kx_ has joined #ruby
<al2o3-cr> wow, chill guys :)
<Ox0dea> Yeah, it was getting pretty rowdy, huh?
crazydiamond_ has joined #ruby
<al2o3-cr> apparently :)
drewdavis_ is now known as drewdavis
<Ox0dea> >> ObjectSpace.each_object(Class).select { |c| c.instance_method(:inspect).arity != 0 rescue nil }
<ruboto> Ox0dea # => [Bignum, Fixnum] (https://eval.in/402680)
eggoez has quit [Ping timeout: 256 seconds]
<shevy> I just fell in love with those oldschool terminals in the 1980s
<Ox0dea> Ruby has more inconsistencies than Web frameworks.
tuelz has quit [Quit: WeeChat 1.1.1]
<zenspider> I assume that's base?
<zenspider> no different than the to_s, no?
<Ox0dea> Yes, it's an inappropriate alias.
<zenspider> doesn't seem inappropriate to me
<Ox0dea> #inspect is for inspecting the object, not converting it.
<zenspider> or... converting it to a string for inspection
<Ox0dea> Paul Graham has something to say about that kind of thinking.
cappsio has quit [Ping timeout: 240 seconds]
<zenspider> I don't care.
cappsio has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
lannonbr has joined #ruby
snockerton has quit [Quit: Leaving.]
lannonbr has quit [Client Quit]
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lannonbr has joined #ruby
<Ox0dea> The Blub paradox transcends its originator.
vdamewood has quit [Quit: Life beckons.]
fella5s has quit [Read error: Connection reset by peer]
<Ox0dea> "This is how it's done in my favorite language, so it must be correct."
<bosma> anyone have a tip on how to get all text of a node (using rexml/document)?
eggoez has joined #ruby
<bosma> I have code that i think does it but it's inelegant.
<bosma> .text only gets first Text found
<shevy> huh... UNIX seemed to have weird commands like "makewords" or "mismatch"
mikecmpbll has quit [Quit: i've nodded off.]
<al2o3-cr> anyone smoke here?
entropie has quit [Ping timeout: 240 seconds]
xkickflip has quit [*.net *.split]
bruno- has quit [*.net *.split]
Rutix has quit [*.net *.split]
mdcox has quit [*.net *.split]
u3d4dd has quit [*.net *.split]
Guest74977 has quit [*.net *.split]
crazydiamond has quit [*.net *.split]
shadoi has quit [*.net *.split]
MiracleBlue has quit [*.net *.split]
iceyec has quit [*.net *.split]
nateberkopec has quit [*.net *.split]
lordkryss has quit [*.net *.split]
silverdust has quit [*.net *.split]
alem0lars has quit [*.net *.split]
xkickflip_ is now known as xkickflip
iceyec_ is now known as iceyec
<bosma> <element>hello <b>there</b> <span><i>test</i></span></element>. would like "hello there test"
MiracleBlue_ is now known as MiracleBlue
<Ox0dea> bosma: children.map(&:text) maybe?
lordkryss_ is now known as lordkryss
<zenspider> bosma: first step is to get off of rexml if you're doing ANY level of serious parsing
<zenspider> esp wrt size of document... it's horrifically inefficient
<zenspider> (and incorrect)
<bosma> it's not *that* serious. I'd use noko if I could.
crazydiamond_ is now known as crazydiamond
<zenspider> kk
<bosma> I'm just converting Colloquy log files (done in XML)
endash has quit [Quit: endash]
<bosma> no noko support on 64-bit latest Win
<zenspider> that can add up pretty quick (at least, my adium logs are huge)
<zenspider> poo
<bosma> old ones only so many
marr has quit [Read error: Connection reset by peer]
<Ox0dea> bosma: Oga?
pengin has quit [Remote host closed the connection]
18WAAAGJN has joined #ruby
alem0lars has joined #ruby
silverdust has joined #ruby
alem0lars has joined #ruby
<bosma> is .children a property?
phutchins has quit [Ping timeout: 256 seconds]
<Ox0dea> It ought to be a method?
lorikeet has joined #ruby
<Ox0dea> I've never used REXML.
chuythong has joined #ruby
silverdust is now known as Guest64668
Soda has quit [Remote host closed the connection]
<Ox0dea> Oga is pure Ruby, so you ought to be able to use it on Win64.
chipotle has joined #ruby
18WAAAGJN has quit [Quit: Leaving]
<nitenq> do you know why I can’t convert : nm = NetAddr.i_to_bits('0xffffff00'.to_i(16)) to a string ? It seems to be an array but i don’t get why
mleung has quit [Quit: mleung]
<Ox0dea> nitenq: You want to convert a string of hexadecimal digits to a string of binary digits?
<nitenq> exactly
xcesariox has joined #ruby
<al2o3-cr> nitenq: pack
<Ox0dea> >> 'ff'.hex.to_s(2)
<ruboto> Ox0dea # => "11111111" (https://eval.in/402681)
<nitenq> oh so no, it’s not what i want
<Ox0dea> nitenq: What do you want 'ff' to turn into?
<nitenq> from 0xffffff00 I want 24
<Ox0dea> ...
<bosma> ah
<Fluent> That's not binary...
<nitenq> 0xffffff00 is a net addr
<Ox0dea> That's little-endian bit length.
rafaelsales has quit []
<al2o3-cr> >> 0xffffff00 >> 24
<nitenq> no it’s not my mistake
<ruboto> al2o3-cr # => 255 (https://eval.in/402682)
<bosma> .texts worked, I tried it before but was using the wrong element.
<bosma> .texts.join
<nitenq> ip = NetAddr.i_to_bits(0xffffff00) give me 24
<al2o3-cr> nitenq: what do you want?
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
<nitenq> I have my netmask in hexadecimal. I want the subnet associated
workmad3 has joined #ruby
howdoicomputer has joined #ruby
<zenspider> you want the number of leading 1's ... yes?
gambl0re has quit [Ping timeout: 240 seconds]
<nitenq> I don’t know what is unclear. I have a netmask in hexadecimal, I use ip = NetAddr.i_to_bits(0xffffff00) to have the associated subnet and now I want to use ‘ip’ as a string
workmad3 has quit [Ping timeout: 246 seconds]
<nitenq> but when I do a ip.to_str it gives me the folowing error : heck failed to run: undefined method `to_str' for 24:Fixnum,
t_ has quit [Read error: Connection reset by peer]
<drbrain> use #to_s, you almost never want to use to_str
<drbrain> most objects don't have a to_str
<drbrain> or a to_XXX
<zenspider> you never call to_str explicitly... that's for ruby only
startupality has quit [Quit: startupality]
roger_rabbit has quit [Ping timeout: 264 seconds]
<nitenq> ok
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
lorikeet has quit [Read error: Connection reset by peer]
jhack32 has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
transiency has joined #ruby
xkef has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
doodleha_ has joined #ruby
rubie has quit [Remote host closed the connection]
danzilio has quit [Quit: My computer has fallen asleep!]
xkickflip has quit [Quit: xkickflip]
phutchins has joined #ruby
stantonnet has joined #ruby
xkickflip has joined #ruby
<al2o3-cr> >> [0xffffff00].pack('N').unpack('C4')*'.'
<ruboto> al2o3-cr # => "255.255.255.0" (https://eval.in/402685)
<al2o3-cr> it's unclear to me what you want
lordkryss has quit [Quit: Connection closed for inactivity]
bruno-_ has quit [Ping timeout: 264 seconds]
<al2o3-cr> anyway i'm off to play hangman
dfockler has joined #ruby
<nitenq> I had the answer I wanted, I wanted the subnet from the hexa netmask
centrx has joined #ruby
<al2o3-cr> nitenq: brilliant :p
kawaii-imouto has quit [Quit: brb fix config]
fgo_ has joined #ruby
eminence_ has quit [Remote host closed the connection]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
pyon has joined #ruby
pyon is now known as kawaii-imouto
paulcsmith has joined #ruby
NeverDie has joined #ruby
ledestin has joined #ruby
dfockler has quit [Ping timeout: 264 seconds]
doodleha_ has quit [Remote host closed the connection]
enalix has joined #ruby
jcoe has joined #ruby
fgo_ has quit [Ping timeout: 260 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
jamesaxl|2 has quit [Remote host closed the connection]
cyrus_ has quit [Quit: leaving]
devbug has joined #ruby
<bosma> Ox0dea, thanks for the Oga suggestion.
postmodern has quit [Quit: Leaving]
baweaver has joined #ruby
RegulationD has joined #ruby
shmilan has joined #ruby
shmilan has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
dimasg has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
wallerdev has quit [Ping timeout: 252 seconds]
fullofcaffeine has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
radialneon has joined #ruby
paulcsmith has quit [Ping timeout: 244 seconds]
radialneon has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
cnngimenez has joined #ruby
Hobogrammer has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
livcd has quit [Ping timeout: 255 seconds]
_djbkd has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
[H]unt3r has quit [Quit: Leaving]
tsvenson_ has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
bmurt has joined #ruby
entropie has joined #ruby
tsvenson has quit [Ping timeout: 264 seconds]
towski_ has quit [Remote host closed the connection]
nateberkope has quit [Quit: Linkinus - http://linkinus.com]
eminencehc has joined #ruby
mdcox_ has quit [Ping timeout: 244 seconds]
neoseeker191 has joined #ruby
_djbkd has joined #ruby
Guest64668 is now known as bl4ckdu5t
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as silverdust
<Ox0dea> bosma: Sure thing. Blame yorickpeterse if something catches fire.
nfk has quit [Quit: yawn]
christiandsg has joined #ruby
[H]unt3r has joined #ruby
nymous has quit [Quit: RAGING AXE! RAGING AXE!]
Vile` has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
chuythong has quit [Ping timeout: 246 seconds]
Vile` has joined #ruby
jbw__ has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
Lucky_ has joined #ruby
devbug has joined #ruby
Lucky_ has quit [Client Quit]
jbw_ has quit [Ping timeout: 265 seconds]
gccostabr has joined #ruby
kx_ has quit [Ping timeout: 244 seconds]
howdoicomputer has quit [Ping timeout: 272 seconds]
sepp2k has quit [Quit: Leaving.]
f3ttX] has quit [Quit: Lost terminal]
bricker has quit [Ping timeout: 240 seconds]
wcalderipe has quit [Ping timeout: 246 seconds]
webguynow has quit [Ping timeout: 244 seconds]
_djbkd has quit [Quit: My people need me...]
webguynow has joined #ruby
shoerain has joined #ruby
shoerain has left #ruby ["WeeChat 1.1.1"]
j4cknewt has joined #ruby
allcentury has joined #ruby
cxpp has joined #ruby
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Agoldfish has quit [Quit: G'Bye]
rubie has joined #ruby
mleung has joined #ruby
jcoe has joined #ruby
oo_ has quit [Remote host closed the connection]
bruno- has joined #ruby
neoseeker191 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
jpfuentes2 has joined #ruby
Lucky_ has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
veduardo has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
davedev24 has quit []
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
christiandsg has quit [Remote host closed the connection]
<Ox0dea> What's the least hackish way to determine how we were require'd?
casadei_ has joined #ruby
hfp has quit [Ping timeout: 244 seconds]
<RickHull> the filename which did the requiring?
<Ox0dea> Oui.
<RickHull> (is that what you mean by how?)
<Ox0dea> I'd rather not muck about in ObjectSpace if possible.
_blizzy_ has quit [Ping timeout: 244 seconds]
hfp_work has quit [Ping timeout: 240 seconds]
<Ox0dea> And I don't think I can get at the internal loading_table from an extension.
<Ox0dea> Canonicalization makes this tricky. :/
mleung has quit [Quit: mleung]
christiandsg has joined #ruby
Stratege has quit [Ping timeout: 246 seconds]
hfp has joined #ruby
hfp_work has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
mleung has joined #ruby
<Ox0dea> Wow, Ruby already contains special-casing for GCC 6.
casadei_ has quit [Ping timeout: 240 seconds]
Stratege has joined #ruby
Feyn has joined #ruby
failshell has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
mleung has quit [Client Quit]
choke has joined #ruby
Rodya_ has joined #ruby
Muhannad has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
r00tninja has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
cnngimenez has quit [Ping timeout: 264 seconds]
livcd has joined #ruby
mdcox has joined #ruby
xkickflip has quit [Quit: xkickflip]
paulcsmith has joined #ruby
eggoez has joined #ruby
GnuYawk has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
havenwood has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
swgillespie has joined #ruby
nitenq has quit [Quit: nitenq]
tmtwd has joined #ruby
<r00tninja> Having issues with fswatch..can someone plz help a n00b out? :)
<Ox0dea> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<r00tninja> fswatch
<r00tninja> --- Changed: []
<r00tninja> var/lib/gems/1.9.1/gems/rb-fsevent-0.9.5/bin/fsevent_watch: 1: /var/lib/gems/1.9.1/gems/rb-fsevent-0.9.5/bin/fsevent_watch: ������: not found
user1138 has joined #ruby
veduardo has quit [Ping timeout: 256 seconds]
<r00tninja> var/lib/gems/1.9.1/gems/rb-fsevent-0.9.5/bin/fsevent_watch: Syntax error: "(" unexpected
jcoe has quit [Quit: Quitting...]
totimkopf has joined #ruby
sevenseacat has joined #ruby
gccostabr has quit [Quit: See you later!]
fumihiro has joined #ruby
failshell has joined #ruby
arooni-mobile has joined #ruby
Mendenhall has joined #ruby
monstordh has quit [Quit: good night to all...and to all a good night.]
<Ox0dea> r00tninja: Are you on OS X?
<r00tninja> Ubuntu 12.04.5 LTS
failshell has quit [Remote host closed the connection]
<Ox0dea> r00tninja: That file is for OS X.
<r00tninja> server
<Ox0dea> You're using the wrong gem.
mdcox has quit [Ping timeout: 256 seconds]
<r00tninja> hmm odd
<r00tninja> i just did gem install fswatch
<Ox0dea> > A program for triggering a script on file system change (on OS X)
<Ox0dea> r00tninja: You probably want rb-inotify.
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
Violentr has quit [Ping timeout: 256 seconds]
EasyCo has joined #ruby
<r00tninja> hmm i see only for osx gem
<r00tninja> im trying to use something like fswatch on ubuntu
<Ox0dea> Then you want rb-inotify.
<r00tninja> ill give that a shot then
<r00tninja> thanks Ox0dea!
<Ox0dea> r00tninja: Well, rb-inotify is a wrapper; if you don't necessarily need to go through Ruby, just use inotifywait/inotifywatch.
<Ox0dea> r00tninja: Happy to help.
<r00tninja> yeah dont really need ruby
<r00tninja> anything that can monitor a dir and execute a script on dir change
workmad3 has joined #ruby
sharpmachine has joined #ruby
Mia has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> r00tninja: If you're looking for a turnkey solution, you probably want Guard.
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> If you find that's too heavy for your purposes, just apt-get install inotify-tools.
<r00tninja> yeah i was using fswatch dir | xargs -n1 script.sh
<r00tninja> that to mean is dead simple lol
enalix has quit [Ping timeout: 246 seconds]
bronson has quit [Remote host closed the connection]
<r00tninja> looks like inotifywatch will do!
<Ox0dea> r00tninja: inotifywait -me modify $dir | xargs ...
<r00tninja> thanks again
<Ox0dea> Sure thing.
mdcox has joined #ruby
<r00tninja> ah great! thanks for the cmd :)
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dimasg has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
audiodude has joined #ruby
dimasg has quit [Ping timeout: 250 seconds]
veduardo has joined #ruby
mark06 has joined #ruby
christiandsg has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
baweaver has joined #ruby
Rodya_ has joined #ruby
rubie has joined #ruby
j4cknewt has quit [Remote host closed the connection]
[H]unt3r has quit [Quit: Leaving]
bungoman has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
GnuYawk has joined #ruby
veduardo has quit [Ping timeout: 246 seconds]
hololeap has joined #ruby
hololeap|2 has joined #ruby
sharpmachine has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 256 seconds]
Mendenhall has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
hololeap has quit [Ping timeout: 244 seconds]
swgillespie has joined #ruby
fumihiro has quit [Quit: leaving]
davedev24 has joined #ruby
shadoi1 has quit [Quit: Leaving.]
xkickflip has joined #ruby
eminencehc has quit [Remote host closed the connection]
n1lo has joined #ruby
<n1lo> Hi folks,
Casty has quit [Quit: Textual IRC Client: www.textualapp.com]
j4cknewt has joined #ruby
cxpp has left #ruby ["Leaving"]
audiodude has quit [Ping timeout: 256 seconds]
Kalov has joined #ruby
bungoman has quit []
jesterfraud has joined #ruby
<n1lo> How can I simplify a method call to use only the methods name not Class#Method ? I want to do this: Lorem.sentence not: Faker::Lorem.sentence. I did a require “faker” in my code. Tks.
AnoHito_ has quit [Quit: Leaving]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> n1lo: `include Faker`, but maybe consider not doing that.
transiency has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 256 seconds]
<n1lo> Ox0dea: yeah. =/
<Ox0dea> n1lo: Do you know the consequences?
t_ has joined #ruby
r00tninja has quit [Quit: Leaving]
<n1lo> Ox0dea: If I use include? For sure. I just don’t want to repeat every time: Faker::X, Faker::Y etc.
<Ox0dea> n1lo: Are you going to be using many of the classes from Faker?
yfeldblum has quit [Remote host closed the connection]
danzilio has joined #ruby
cnngimenez has joined #ruby
mdcox has quit [Ping timeout: 244 seconds]
<Ox0dea> If you don't want to pollute your namespace with all of the constants Faker exports, you could just do `Lorem = Faker::Lorem`, and so on for the modules you actually need.
dwithers2 has joined #ruby
dwithers1 has quit [Read error: No route to host]
jenrzzz has quit [Ping timeout: 264 seconds]
<n1lo> Ox0dea: I think yes because in every factoryGirl fixture I’m going to use a lot of diferents Classes. Like: Faker::Lorem, Faker::Name, Faker::Address etc.
dwithers3 has joined #ruby
jbw_ has joined #ruby
<Ox0dea> n1lo: Well, maybe check the output of `Faker.constants` to ensure none of them will conflict with any of yours.
<Ox0dea> If you find everything to be copacetic, `include Faker` shouldn't do any damage.
<Ox0dea> Still, it's not something you should get in the habit of doing.
jbw__ has quit [Ping timeout: 244 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Casty has joined #ruby
dwithers2 has quit [Ping timeout: 244 seconds]
darkf has joined #ruby
yfeldblum has joined #ruby
michaeldeol has joined #ruby
<n1lo> Ox0dea: Well for now I’m going to keep this repetion. :~
<n1lo> Ox0dea: Thanks a lot!
<Ox0dea> Sure thing.
user1138 has quit [Ping timeout: 246 seconds]
<Ox0dea> Try to think of it as clarity rather than repetition. :)
<n1lo> Ox0dea: hahaha lol
<Ox0dea> %w[Name Address].each { |c| Object.const_set(c, Faker.const_get(c)) }
<Ox0dea> n1lo: There's one more approach you might consider.
shinnya has quit [Ping timeout: 256 seconds]
fullofcaffeine has joined #ruby
El3ktra has quit [Quit: Leaving]
slawrence00 has joined #ruby
<n1lo> Ox0dea: Wow! Nice!
<Ox0dea> Yay!
braincrash has quit [Quit: bye bye]
<n1lo> Ox0dea: I’m going to try this.
rubie has quit [Remote host closed the connection]
<Ox0dea> Tread gently, but it should go off without a hitch.
user1138 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lysw123 has joined #ruby
lysw123 has quit [Client Quit]
C1V0 has joined #ruby
braincrash has joined #ruby
lysw123 has joined #ruby
arooni-mobile has quit [Ping timeout: 244 seconds]
arooni-mobile has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has joined #ruby
Rodya_ has quit [Quit: Leaving...]
michael_mbp has quit [Excess Flood]
C1V0 has quit [Ping timeout: 256 seconds]
Mendenhall has joined #ruby
mleung has joined #ruby
zacts has quit [Quit: leaving]
failshell has quit [Ping timeout: 244 seconds]
tmtwd has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jbw__ has joined #ruby
bronson has joined #ruby
michael_mbp has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
jbw_ has quit [Ping timeout: 272 seconds]
<n1lo> Ox0dea: tks again.
dimasg has joined #ruby
cnngimenez has quit [Ping timeout: 256 seconds]
mdcox has joined #ruby
sharpmachine has joined #ruby
sharpmachine has quit [Remote host closed the connection]
n1lo has quit [Quit: n1lo]
bronson has quit [Ping timeout: 244 seconds]
chinmay_dd has joined #ruby
yfeldblum has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
dimasg has quit [Ping timeout: 256 seconds]
smoak has joined #ruby
<Ox0dea> yrwlc
arescorpio has joined #ruby
oo_ has joined #ruby
mdcox has quit [Ping timeout: 246 seconds]
<smoak> does ruby 2.2.2 include minitest?
joelataylor has joined #ruby
<smoak> i cant seem to find any rdocs for it. e.g. http://ruby-doc.org/stdlib-2.2.2/libdoc/minitest/rdoc/MiniTest.html
aaeron has quit [Quit: Leaving.]
Blaguvest has quit []
<Ox0dea> smoak: minitest was bundled with Ruby for a long time, but that did indeed stop with 2.2.
mdcox has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<smoak> interesting, thanks
<Ox0dea> In case you'd like to read up on the rationale behind its removal.
<smoak> thanks
scripore has joined #ruby
<Ox0dea> Sure thing.
jbw_ has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
user1138 has joined #ruby
rubie has joined #ruby
jbw__ has quit [Ping timeout: 260 seconds]
user1138 has quit [Max SendQ exceeded]
fgo_ has joined #ruby
user1138 has joined #ruby
mleung has quit [Quit: mleung]
tmtwd has joined #ruby
Musashi007 has joined #ruby
jbw__ has joined #ruby
fgo_ has quit [Ping timeout: 246 seconds]
dopie has joined #ruby
michaeldeol has joined #ruby
jbw_ has quit [Ping timeout: 264 seconds]
qiukun has joined #ruby
bruno- has joined #ruby
danzilio has quit [Quit: Baiii!]
audiodude has joined #ruby
gix has quit [Ping timeout: 252 seconds]
qiukun_ has joined #ruby
qiukun has quit [Ping timeout: 244 seconds]
qiukun_ is now known as qiukun
christiandsg has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cheerio]
gix has joined #ruby
fenjamin has joined #ruby
mike___1234 has quit [Ping timeout: 240 seconds]
devbug has joined #ruby
<fenjamin> there was a computer science phd thesis that explained computer programs
CaryInVictoria has joined #ruby
<fenjamin> type in a program and it explains how it runs
mike___1234 has joined #ruby
<fenjamin> does anyone know this project?
symm- has joined #ruby
joelataylor has quit [Quit: Lingo: www.lingoirc.com]
eggoez has joined #ruby
Hongo has joined #ruby
Hongo has left #ruby [#ruby]
<Ox0dea> fenjamin: Do you happen to recall in any detail what sort of "explaining" it did?
chinmay_dd has quit [Quit: See ya!]
<fenjamin> input a code snippet and it would explain in blocks and lines how each line worked
howdoicomputer has joined #ruby
<Ox0dea> fenjamin:
<Ox0dea> A code snippet in which language?
oo_ has quit [Remote host closed the connection]
<fenjamin> javascript, python, ruby i believe
<Ox0dea> Are you having a laugh? :/
totimkopf has quit [Quit: WeeChat 1.2]
<fenjamin> no, a programming academy showed it briefly
<Kalov> how can i have multiple: raise ArgumentError, inside a def
<Ox0dea> Kalov: Please clarify.
<fenjamin> it would explain a for loop or an if statement
arescorpio has quit [Quit: Leaving.]
aaeron has joined #ruby
oo_ has joined #ruby
<Kalov> i wish it to return "hola" or "chao" if the first is negative or the second is
<Kalov> but it just prints the first one
RobertBirnie has joined #ruby
<Kalov> the first rescue
workmad3 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<Ox0dea> Kalov: You've thoroughly misunderstood the purpose of exceptions, I'm afraid.
<Kalov> :/
<ElSif> you can just get it to print that when you check the variable's value
astrobunny has joined #ruby
<Kalov> yeah... i just wanted to know if i could use multiple exceptions for different conditions
symm- has quit [Quit: Leaving...]
<ElSif> you could, but you would need to use more than 1 error class, or look at the error (first would be clearer probably)
gilest has joined #ruby
<ElSif> you can pass error into a rescue with `rescue <error_type> => e`
<Ox0dea> Kalov: Better to just raise once if either argument is negative.
<ElSif> ^
mdcox has quit [Ping timeout: 252 seconds]
jbw__ has quit [Ping timeout: 246 seconds]
jbw_ has joined #ruby
fenjamin has quit [Quit: 离开]
<Kalov> so how is the syntaxis for multiple error class
Channel6 has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
lampd1 has quit [Remote host closed the connection]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lampd1 has joined #ruby
<ElSif> you can use the same code structure, but you would need to define your own errors (im not really recommending this as the best choice for this situation, see Ox0dea's response)
Eiam_ has joined #ruby
jbw__ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fullofcaffeine has quit [Remote host closed the connection]
smoak has left #ruby ["WeeChat 1.2"]
<Kalov> thank you very much Ox0dea, that was what i was looking for
fullofcaffeine has joined #ruby
jbw_ has quit [Ping timeout: 244 seconds]
<Ox0dea> Kalov: Sure thing.
ScriptGeek has quit [Quit: Leaving.]
<Ox0dea> Kalov: As ElSif mentioned, you *could* create distinct NegativeAError and NegativeBError classes, but that seems rather heavy-handed.
<ElSif> just a little :)
<ElSif> but very explicit
Tritone has quit [Remote host closed the connection]
kawaii-imouto has quit [Quit: fix config]
<Ox0dea> Aye, and it's certainly the right thing to do in many cases, but perhaps not in this particular example. :)
pyon has joined #ruby
pyon is now known as kawaii-imouto
tkuchiki has joined #ruby
Tritone has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
mleung has joined #ruby
ss_much has quit [Quit: Erm. Temp?]
freerobby has quit [Quit: Leaving.]
ss_much has joined #ruby
mdcox has joined #ruby
freerobby has joined #ruby
girakrok has joined #ruby
jbw_ has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
sharpmachine has joined #ruby
jbw__ has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
lysw123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has quit [Remote host closed the connection]
chrishough has joined #ruby
Cache_Money has joined #ruby
simplyianm has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
sharpmachine has joined #ruby
howdoicomputer has quit [Ping timeout: 250 seconds]
howdoicomputer has joined #ruby
mleung has quit [Quit: mleung]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdcox has quit [Ping timeout: 246 seconds]
fgo_ has joined #ruby
dubkoidragon has joined #ruby
<dubkoidragon> hey, do you guys know where i can find a list of all the ruby built in modules ex.Math and a little desription about them and what I can do with them. Google has failed me, although I'm starting to think that I'm asking a non sensical question
dented42 has joined #ruby
<Ox0dea> dubkoidragon: Linux?
<dubkoidragon> win
RobertBirnie has joined #ruby
<Ox0dea> :(
maletor has joined #ruby
<Ox0dea> dubkoidragon: I trust you know how to use irb?
<dubkoidragon> lol I mean is there a website that list like for example 1: Math, list of things its stores : Pi so on an so forth
Jarboe has quit []
<dubkoidragon> yes i have used irb
<dubkoidragon> though only to do (1..100).to_a
<Ox0dea> I see.
fgo_ has quit [Ping timeout: 246 seconds]
<Ox0dea> Well, Ruby's introspection capabilities make it quite easy to see what all a given module defines, but there's probably not a straight list anywhere. Is the documentation not sufficiently enlightening?
EllisTAA has joined #ruby
mdcox has joined #ruby
<dubkoidragon> I'd love too see how enlighning it is, where is the documentation? and what's introspection
<Ox0dea> dubkoidragon: Introspection is a language's ability to ask questions about itself.
<Ox0dea> That page contains a nice list of all the default classes.
<Ox0dea> Click around to your heart's content. :)
icebourg has joined #ruby
<dubkoidragon> nice!!
lxsameer has joined #ruby
<dubkoidragon> thanks man
<Ox0dea> Happy to help.
jbw__ has joined #ruby
<dubkoidragon> you always do. and I always appriciate
<dubkoidragon> :)
<Kalov> ruby bible :)
RobertBirnie has quit [Read error: Connection reset by peer]
<Ox0dea> >> ObjectSpace.each_object(Class).select { |c| c.instance_methods.include?(:to_a) }.size
<ruboto> Ox0dea # => 18 (https://eval.in/402786)
<Ox0dea> dubkoidragon: There's a nice example of introspection. Ruby was able to tell us, from within Ruby, that there are 18 classes whose instances can be converted to an array.
<dubkoidragon> is that a template of what i should type intp irb?
<dubkoidragon> oh ok
<dubkoidragon> i see
<dubkoidragon> I will play around with that
<dubkoidragon> in irb right
RobertBirnie has joined #ruby
<dubkoidragon> it's so frustrating being sucha noob
<Ox0dea> irb is simply for interactively evaluating Ruby code.
jbw_ has quit [Ping timeout: 244 seconds]
<Ox0dea> It's a nice "playground", but you'll want to write "real" programs into their own files.
<acl_> it's actually nice being new
Musashi007 has quit [Quit: Musashi007]
<ElSif> >> a = []; ObjectSpace.each_with_object(Class, a).select { |c, a| a<< c if c.instance_methods.include?(:to_a) }; p a
<ruboto> ElSif # => undefined method `each_with_object' for ObjectSpace:Module (NoMethodError) ...check link for more (https://eval.in/402798)
<ElSif> ah, no each_with_object T_T
<Ox0dea> ElSif: Just each_object.
<ElSif> yea i wanted to print out the class names but wanted it not to spew them into chat too mcuh
aaeron has quit [Quit: Leaving.]
<Ox0dea> >> puts ObjectSpace.each_object(Class).select { |c| c.instance_methods.include?(:to_a) }
<ruboto> Ox0dea # => Process::Tms ...check link for more (https://eval.in/402800)
<ElSif> ah, ruboto is smart and wont spam i see
user1138 has quit [Read error: Connection reset by peer]
<Ox0dea> It'll print a fair amount, but it stops at the first if there's more than one line of output.
<ElSif> gotcha, gtk
fenjamin has joined #ruby
freerobby has quit [Quit: Leaving.]
dseitz has joined #ruby
rubie has quit [Remote host closed the connection]
sp1rs has joined #ruby
casadei_ has joined #ruby
oo_ has quit [Remote host closed the connection]
failshell has joined #ruby
audiodude has quit [Ping timeout: 255 seconds]
simplyianm has joined #ruby
Musashi007 has joined #ruby
fyliu_ has joined #ruby
simplyia_ has joined #ruby
simplyianm has quit [Remote host closed the connection]
fyliu_ has left #ruby [#ruby]
failshell has quit [Ping timeout: 244 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
RegulationD has joined #ruby
casadei_ has quit [Ping timeout: 240 seconds]
EllisTAA has quit [Quit: EllisTAA]
RegulationD has quit [Ping timeout: 240 seconds]
user1138 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
htmldrum has quit [Ping timeout: 255 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
<dubkoidragon> Ox0dea: Hey sorry for going into radio silence. two cops just came to my house to arrest me. But i'm good now. Anyway so whats the purpose then of irb
<dubkoidragon> to test small fragments of code??
tmtwd has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
<Ox0dea> dubkoidragon: Yes, that's about the size of it.
<Ox0dea> The interactivity is key.
oo_ has joined #ruby
<Ox0dea> You can try a snippet of code, immediately get the results and see that they're almost correct, and then iteratively improve it until it's ready to be used in your program.
sharpmachine has quit [Remote host closed the connection]
fantazo has joined #ruby
<dubkoidragon> ok i see. and for explae that test you posted about the diff kind of instances able to turn to an array. too array = .to_a , so does that documentation page have the different types of methonds like ".to_a", "to_sym" etc. I haven't looked thorugh all of it yty\
<dubkoidragon> yet**
<Kalov> i use half screen for code and in the other side the terminal, is pretty easy to use...
Lucky_ has joined #ruby
<dubkoidragon> im on windows kalov
gilest has quit [Quit: Leaving...]
<Ox0dea> dubkoidragon: Yes, all the classes have documentation for (almost) all of their methods.
<dubkoidragon> awsome. much thanks again for that
<dubkoidragon> I'll be going through all that as soon as I get back from my shower. One more question before i take a break here is have you ever used shoes? for making gui apps. I wanted to play with that here tonight as well
Musashi007 has joined #ruby
htmldrum has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<Ox0dea> As I understand it, it makes simple things easy, but not all hard things possible.
Muhannad has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
pjsim has joined #ruby
user1138 has quit [Read error: Connection reset by peer]
Musashi007 has quit [Client Quit]
<Ox0dea> It'd be good for getting your feet wet as regards "graphical" programming, but you'll likely find yourself needing something more featureful before long.
bronson has joined #ruby
<dubkoidragon> oki dokie. I'll be back in a hour, maybe less. look forward to rubying some more with ya. thx again
* dubkoidragon flies away
jbw__ has quit [Ping timeout: 256 seconds]
jbw__ has joined #ruby
ixti has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
bronson has quit [Ping timeout: 255 seconds]
Cache_Money has quit [Quit: Cache_Money]
dhjondoh has joined #ruby
hololeap|2 is now known as hololeap
CloCkWeRX has joined #ruby
<pontiki> let's get together and ruby about
dubkoidragon has quit [Ping timeout: 252 seconds]
<Ox0dea> I'm trying to make it so that $thing *must* be required as 'foo.so'... on all platforms.
<Ox0dea> I've got it working on Linux. :P
riotjones has joined #ruby
mdcox has quit [Ping timeout: 244 seconds]
user1138 has joined #ruby
tmtwd has joined #ruby
<Kalov> so the idea of classes is that they can hold local variables and work with them, EJ: (@something)
pjsim has left #ruby [#ruby]
krz has joined #ruby
armyriad has quit [Ping timeout: 256 seconds]
<Ox0dea> Kalov: The "idea" of classes is simply that you often want more than one of something, but they need only be similar rather than identical.
jbw_ has joined #ruby
slawrence00 has joined #ruby
jbw__ has quit [Ping timeout: 246 seconds]
<Ox0dea> Ox0dea: The "similar" part is that each instance *behaves* like the others, where "not identical" falls out of, as you say, having different instance variables.
<Ox0dea> Wow, I just highlighted me. :/
<Ox0dea> Might be time for sleep.
lysw123 has joined #ruby
Kalov has quit [Ping timeout: 244 seconds]
<pontiki> :)
yardenbar has joined #ruby
bmurt has quit []
lysw123 has quit [Client Quit]
htmldrum has quit [Ping timeout: 244 seconds]
devbug has quit [Remote host closed the connection]
<pontiki> nite, all
sepp2k has quit [Quit: Leaving.]
lysw123 has joined #ruby
davedev24 has quit [Remote host closed the connection]
lysw123 has quit [Max SendQ exceeded]
user1138 has quit [Ping timeout: 246 seconds]
user1138 has joined #ruby
tagrudev has joined #ruby
fgo_ has joined #ruby
Guest32 has joined #ruby
Casty has quit [Quit: Textual IRC Client: www.textualapp.com]
Eiam_ has quit [Ping timeout: 252 seconds]
simplyia_ has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
htmldrum has joined #ruby
Kalov has joined #ruby
kx_ has joined #ruby
cnngimenez has joined #ruby
sandelius has joined #ruby
fgo_ has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
pwnz0r_ has joined #ruby
iateadonut has joined #ruby
icebourg has quit []
_ht has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyia_ has joined #ruby
duncannz has joined #ruby
eminencehc has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
workmad3 has joined #ruby
duncannz has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
duncannz has quit [Max SendQ exceeded]
Channel6 has quit [Quit: Leaving]
pwnz0r_ has quit [Remote host closed the connection]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
pwnz0r_ has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
duncannz has joined #ruby
rubie has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xcesario_ has joined #ruby
roolo has joined #ruby
iateadonut has quit [Quit: Leaving.]
xcesariox has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
eGGsha has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
dseitz has joined #ruby
mdcox has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
avahey has quit [Quit: Connection closed for inactivity]
pwnz0r_ has quit [Ping timeout: 246 seconds]
Mendenhall has quit [Ping timeout: 265 seconds]
rubie has quit [Ping timeout: 265 seconds]
xcesario_ has quit [Ping timeout: 252 seconds]
solars has joined #ruby
amclain has quit [Quit: Leaving]
fullofcaffeine has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 272 seconds]
eggoez has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
user1138 has quit [Quit: Leaving]
Muhannad has joined #ruby
oo_ has quit [Remote host closed the connection]
aaeron has joined #ruby
jackjackdripper has joined #ruby
simplyianm has joined #ruby
mdcox has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
clocKwize has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohaibbq has joined #ruby
tmtwd has quit [Remote host closed the connection]
htmldrum has joined #ruby
oo_ has joined #ruby
simplyia_ has quit [Ping timeout: 244 seconds]
NeverDie has quit [Ping timeout: 244 seconds]
howdoicomputer has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
fenjamin has quit [Remote host closed the connection]
Alayde has quit [Ping timeout: 244 seconds]
djbkd has quit [Quit: Leaving...]
htmldrum has quit [Ping timeout: 246 seconds]
choke has joined #ruby
serivich has joined #ruby
aganov has joined #ruby
user1138 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
mdcox has joined #ruby
ZYPP is now known as hool
Musashi007 has joined #ruby
arooni-mobile has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
Kalov has quit [Quit: Leaving]
codecop_ has joined #ruby
codecop has joined #ruby
girakrok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
codecop_ has quit [Client Quit]
_blizzy_ has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
ScriptGeek has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
Dopagod has joined #ruby
Dopagod has joined #ruby
michaeldeol has joined #ruby
stan has joined #ruby
schaerli has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby
Sypheren has quit [Quit: Easy as 3.14159265358979323846...]
Sypheren has joined #ruby
lsmola has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
xMopxShell has quit [Ping timeout: 256 seconds]
acke has joined #ruby
xMopxShell has joined #ruby
howdoi_ has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
jbw__ has joined #ruby
simplyianm has quit [Ping timeout: 272 seconds]
CloCkWeRX1 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 264 seconds]
jbw_ has quit [Ping timeout: 256 seconds]
NeverDie has joined #ruby
rdark has joined #ruby
k3asd` has joined #ruby
<baweaver> Ox0dea: guess who wrote the talk
<Ox0dea> The one and only.
jbw_ has joined #ruby
<Ox0dea> You got me momentarily excited for a new Tom talk. :/
jbw__ has quit [Ping timeout: 246 seconds]
<sevenseacat> that talk was in like february
<baweaver> yes, but Matz just mentioned it.
hashrocket has quit [Quit: Connection closed for inactivity]
schaerli has quit [Remote host closed the connection]
<Ox0dea> Even Tom's lightning talk at BaRuCo 2014 was glorious.
<baweaver> I'll start conf-following him then
<Ox0dea> Who else could make the Burrows-Wheeler transform so engaging?
schaerli has joined #ruby
<baweaver> with any luck I get into Keep Ruby Weird
j4cknewt has quit [Remote host closed the connection]
<Ox0dea> Presenting on Clairvoyant?
<baweaver> yep
<flughafen> hey
<baweaver> now that I have a vacation to think about it
<flughafen> it's our resident hackathon winner baweaver
<baweaver> freaking crazy busy at work, 1.0 release coming up.
k3asd` has quit [Ping timeout: 240 seconds]
tmtwd has joined #ruby
eminencehc has quit [Remote host closed the connection]
<Ox0dea> baweaver: Tom's speakerly oeuvre is here: http://codon.com/talks
Musashi007 has quit [Quit: Musashi007]
<Ox0dea> baweaver: Is it called Pepperqueue?
<baweaver> No no
<Ox0dea> For shame.
<baweaver> my project is called BaDASS
AlphaAtom has joined #ruby
<baweaver> Build and Deployment Automation Support System
<Ox0dea> Genius.
<baweaver> So I'm officially a BaDASS developer
_sillymarkets has quit [Quit: Page closed]
bayed has joined #ruby
simplyianm has joined #ruby
<Ox0dea> I suspect there's a good handful of programmers out there who specialize in Builds and Deployments.
CloCkWeRX1 has quit [Quit: Leaving.]
<Ox0dea> Or, indeed, Automation Support Systems.
<Ox0dea> - * - = +
aaeron1 has joined #ruby
eGGsha has joined #ruby
schaerli has quit [Ping timeout: 272 seconds]
xcesariox has joined #ruby
aaeron has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
htmldrum has joined #ruby
sp1rs has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Client Quit]
<Ox0dea> I'm trying to thwart Ruby's canonicalization of required files; it's rough going.
quazimodo has joined #ruby
heftig has quit [Remote host closed the connection]
code1o6 has quit [Ping timeout: 244 seconds]
<baweaver> come again?
mdcox has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
heftig has joined #ruby
<Ox0dea> I'd like to be able to determine exactly how the user require'd us.
Musashi007 has joined #ruby
<Ox0dea> From within the file being required, mind, which is very tricky since we won't be in $LOADED_FEATURES yet.
cornerma1 has joined #ruby
michael_mbp has quit [Excess Flood]
user1138 has quit [Ping timeout: 246 seconds]
<Ox0dea> There's an internal Hash called loading_table that contains the information I need, but it was made much harder to access late in 1.9.3.
hool is now known as ZYPP
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andikr has joined #ruby
krandi has joined #ruby
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
lxsameer has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp1rs has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat1 has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat1 has joined #ruby
failshell has joined #ruby
roolo has quit [Remote host closed the connection]
lxsameer has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
j4cknewt has joined #ruby
<eam> Ox0dea: a perl feature I really miss in ruby is sticking a lambda into $:
<eam> which is called when the path is traversed for a load, with loading context
<eam> super easy to write a require() tracer with that
htmldrum has quit [Ping timeout: 264 seconds]
failshell has quit [Ping timeout: 256 seconds]
Olipro has quit [Ping timeout: 240 seconds]
user1138 has joined #ruby
<Ox0dea> eam: Damn. That would be terribly convenient right about now.
<Ox0dea> I think I have to do this as a crazy, memory-traversing C extension. :/
fantazo has quit [Ping timeout: 244 seconds]
Dopagod has quit [Ping timeout: 255 seconds]
Musashi007 has quit [Quit: Musashi007]
oo_ has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
sn0wb1rd has quit [Quit: See ya]
TomyWork has joined #ruby
Ox0dea has quit [Read error: No route to host]
Ox0dea has joined #ruby
<eam> Ox0dea: I wonder if you can hook *all* access to $: instead
CaryInVictoria has quit [Remote host closed the connection]
redlegion has quit [Ping timeout: 256 seconds]
<Ox0dea> eam: Well, I'll need to go at it from a very low level anyhow, on account of trying to permit requiring '.so' files on not-Linux.
<Ox0dea> The '.so' file needn't actually exist, which is sort of the point.
CloCkWeRX has joined #ruby
<eam> wtf, $: is read only? That's nonsense
<eam> when did that happen
redlegion has joined #ruby
<Ox0dea> >> $: << 1
<ruboto> Ox0dea # => ["/execpad/interpreters/ruby-2.2.0/lib/ruby/site_ruby/2.2.0", "/execpad/interpreters/ruby-2.2.0/lib/ ...check link for more (https://eval.in/402940)
Musashi007 has joined #ruby
<eam> why ... my irb ...
ukd1 has quit [Remote host closed the connection]
ukd1 has joined #ruby
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> You can't assign to $:, but you can shovel into it.
<eam> ah
<eam> well I guess you could instrument the strings inside it
<eam> lame you can't replace it entirely though
<Ox0dea> >> $:.clear
<ruboto> Ox0dea # => [] (https://eval.in/402942)
<Ox0dea> $: is sort of irrelevant, though, as its elements have already been canonicalized.
bronson has joined #ruby
<eam> what do you mean canonicalized?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Ruby takes 'foo' and finds the first file that matches, be that a .rb, a .so, a .dylib, or a .dll.
<Ox0dea> I need the literal string that was passed to require.
msgodf has joined #ruby
<eam> well you'll be under require()
iateadonut has joined #ruby
Iron-LV has joined #ruby
<Ox0dea> RubyGems manages to go over it, but that's only because Ruby requires it automatically.
Iron-LV has quit [Quit: Iron-LV]
arup_r has joined #ruby
Mendenhall has joined #ruby
Iron-LV has joined #ruby
aaeron1 has quit [Ping timeout: 244 seconds]
Iron-LV has left #ruby [#ruby]
aaeron has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
sameerynho has joined #ruby
relix has joined #ruby
baweaver has quit [Remote host closed the connection]
tmtwd has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
oo_ has joined #ruby
lxsameer_ has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
safeforge has joined #ruby
senayar has joined #ruby
ohaibbq has quit [Quit: Leaving...]
Iskarlar has joined #ruby
emilkarl has joined #ruby
sameerynho has quit [Ping timeout: 244 seconds]
dimasg has joined #ruby
keen__________28 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
j4cknewt has quit [Remote host closed the connection]
j4cknewt_ has joined #ruby
keen__________27 has quit [Read error: Connection reset by peer]
serivich has quit [Ping timeout: 246 seconds]
bricker has joined #ruby
j4cknewt_ has quit [Remote host closed the connection]
duncannz has joined #ruby
slawrence00 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thiagovsk has quit [Quit: Connection closed for inactivity]
dimasg has quit [Ping timeout: 265 seconds]
auzty has joined #ruby
clocKwize has joined #ruby
Musashi007 has joined #ruby
Muhannad has quit [Remote host closed the connection]
<shevy> I'd wish we would have more advanced load systems
<shevy> require 'bla' add to Foo # do a include Bla to constant Foo
<shevy> eh don't take that syntax... it's not good, I only mean the mechanism
schaerli has joined #ruby
krokuz has joined #ruby
bosma_ has joined #ruby
Timba-as has joined #ruby
<Ox0dea> shevy: How about `import 'foo' (Bar, Baz)`?
ZYPP is now known as hool
c0m0 has joined #ruby
<Ox0dea> It looks like some demented combination of Ruby, Python, and Haskell.
workmad3 has joined #ruby
bosma has quit [Ping timeout: 255 seconds]
eGGsha has joined #ruby
<shevy> Ox0dea the () are so lispy
Juanchito has joined #ruby
schaerli has quit [Ping timeout: 240 seconds]
<Ox0dea> Aye, we wouldn't really need them.
bosma has joined #ruby
marr has joined #ruby
bosma_ has quit [Ping timeout: 265 seconds]
<Ox0dea> require 'foo', [ClassX, ModuleY], [method_bar]
<Ox0dea> Probably as Symbols, though. :/
bruno- has joined #ruby
CaryInVictoria has joined #ruby
Pupeno has joined #ruby
<adaedra> Hi
<Ox0dea> I'm sure the thing could be finagled/brute-forced into "working" along the lines of require_all, where it just keeps marching until no more NameErrors, but specific imports are supposed to be faster. :/
dubkoidragon has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<dubkoidragon> back
<Ox0dea> What is "dubkoid"?
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
redlegion has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
simplyianm has joined #ruby
IronTalk has joined #ruby
emilkarl has quit [Quit: emilkarl]
bricker has quit [Ping timeout: 260 seconds]
redlegion has joined #ruby
lysw123 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 240 seconds]
<ljarvis> moin
<adaedra> plu
simplyianm has quit [Ping timeout: 246 seconds]
fgo_ has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
tesuji has joined #ruby
Iskarlar has joined #ruby
bricker has joined #ruby
umo has joined #ruby
senayar has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
fgo_ has quit [Ping timeout: 240 seconds]
user1138 has quit [Read error: Connection reset by peer]
senayar has joined #ruby
blaxter has joined #ruby
CaryInVictoria has quit [Ping timeout: 244 seconds]
emilkarl has joined #ruby
iateadonut has quit [Quit: Leaving.]
benlovell has joined #ruby
sameerynho has joined #ruby
<dubkoidragon> Ox0dea: what do you mean?
Musashi007 has joined #ruby
schaerli has joined #ruby
michael_mbp has quit [Excess Flood]
lxsameer_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
blaxter has quit [Ping timeout: 252 seconds]
aaeron has quit [Quit: Leaving.]
Spami has joined #ruby
<Ox0dea> dubkoidragon: Well, does it mean anything?
aspiers has joined #ruby
michael_mbp has joined #ruby
oo_ has quit [Remote host closed the connection]
white_bear has joined #ruby
ironsay has joined #ruby
tomphp has joined #ruby
Olipro has joined #ruby
<shevy> Ox0dea well it does not read very elegantly so
oo_ has joined #ruby
Musashi007 has quit [Ping timeout: 240 seconds]
<shevy> require() has one huge thing going - it really is short and elegant. and simple!
<Ox0dea> shevy: It's short and simple, but not elegant.
<shevy> not elegant?
<Ox0dea> I was mostly going for a syntax that could theoretically be retro-fitted.
einarj has joined #ruby
<shevy> I have come to the conclusion that ruby core will not modify require()
<shevy> well
<Ox0dea> shevy: What's elegant about it? What clever operation does it perform in a very neat way?
<shevy> at least not for 2.x era
<shevy> it's short!
<shevy> require 'Ox0dea'
<shevy> \o/
<Ox0dea> Elegance has nothing to do with length.
<shevy> it's cleverness lies in its simplicity
<Ox0dea> No, that's just simplicity.
<shevy> that's clever
<Ox0dea> You're conflating three very different things.
<Ox0dea> Ruby's require is an MVP; it's the simplest thing that could possibly work.
cnngimenez has quit [Quit: Konversation terminated!]
<dubkoidragon> Ox0dea: I dunno I have a tattoo of koi fish, and a dargon, so one time in a game I just made that name and then it kind of stuck.
<dubkoidragon> 2 koi fish
<dubkoidragon> hence the dub
<Ox0dea> Oh, wow; I accidentally read it as "dubkoid dragon".
<shevy> koi fish
<dubkoidragon> yea
Violentr has joined #ruby
<shevy> that's kinda hilarious :)
<dubkoidragon> :)
mhib has joined #ruby
TheHodge has joined #ruby
<Ox0dea> All my tattoos are text.
user1138 has joined #ruby
jbw__ has joined #ruby
<dubkoidragon> cool cool
lessless has joined #ruby
<Ox0dea> That's not a terribly common opinion, but fuck 'em. :)
krandi has quit [Remote host closed the connection]
jbw_ has quit [Ping timeout: 244 seconds]
<Ox0dea> It's very difficult to defend "a word is worth a thousand pictures" in the general case.
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<dubkoidragon> what u mean?
<dubkoidragon> who's opinion
<Ox0dea> dubkoidragon: You're familiar with the aphorism, "a picture is worth a thousand words"?
<dubkoidragon> yes
<Ox0dea> Well, I think the reverse can be just as true, if the word has significant personal meaning.
lordkryss has joined #ruby
<Ox0dea> But most people don't seem to agree with that premise.
duncannz has quit [Ping timeout: 244 seconds]
<dubkoidragon> yea, I get that. Totally if it has significant meaning I can totally see that
<yorickpeterse> morning kids
umo has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
IronTalk has quit [Quit: leaving]
<Ox0dea> Can I prevent further execution of a require'd file without wrapping the whole thing in a conditional expression?
yfeldblum has joined #ruby
<jhass> doubt it
blaxter has joined #ruby
<SebastianThorn> Ox0dea: haha, i watched this movie yesterday: http://www.imdb.com/title/tt0299977
<Ox0dea> It's gonna be Memento.
<Ox0dea> Oh.
bigkevmcd has quit [Quit: Outta here...]
<SebastianThorn> has some of the meaning you just described
CaryInVictoria has joined #ruby
arup_r has quit [Remote host closed the connection]
dangerousdave has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
bricker has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
Philipp_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Philipp_> why doesn't gem cache the latest_spec.gz file?
CaryInVictoria has quit [Ping timeout: 244 seconds]
<shevy> does it error out?
Spami has quit [Quit: This computer has gone to sleep]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba has quit [Read error: Connection reset by peer]
lessless has joined #ruby
AnoHito has joined #ruby
totimkopf has joined #ruby
ruurd has joined #ruby
DEA7TH has joined #ruby
djdb has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha has joined #ruby
astrobun_ has joined #ruby
safeforge has quit [Remote host closed the connection]
brianpWins has joined #ruby
bigkevmcd has joined #ruby
safeforge has joined #ruby
acl_ has quit [Ping timeout: 246 seconds]
astrobunny has quit [Ping timeout: 255 seconds]
<dubkoidragon> ok I'm gonna try out shoes before bed such excited much wow
astrobunny has joined #ruby
Pupeno has quit [Quit: Leaving...]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
clocKwize has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* adaedra throws dubkoidragon a bone
<dubkoidragon> tyty
astrobun_ has quit [Ping timeout: 246 seconds]
clocKwize has joined #ruby
fella5s has joined #ruby
ffledgling has joined #ruby
<ffledgling> So... I'm getting a codedump when I try to run `bundle exec jekyll serve -w`, anyone know where I can start debugging this?
lkba has joined #ruby
<Ox0dea> ffledgling: A core dump?
<ffledgling> Ox0dea: yup
<Ox0dea> Post the dump.
<Ox0dea> Or, well, do you know how to read a C stacktrace?
<ffledgling> Ox0dea: not entirely, but I'm willing to learn
<ljarvis> ffledgling: did you try 2.2.2?
<ljarvis> (assuming that's not what you're on... stupid Ruby directory names who knows)
RegulationD has joined #ruby
<ffledgling> ljarvis: ruby --version = ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
<ljarvis> right :)
xkickflip_ has joined #ruby
user1138 has quit [Quit: Leaving]
xkickflip has quit [Ping timeout: 252 seconds]
xkickflip_ is now known as xkickflip
user1138 has joined #ruby
quimrstorres has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
arup_r has joined #ruby
kx_ has quit [Remote host closed the connection]
Mendenhall has quit [Ping timeout: 272 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
tkuchiki has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
sgambino has joined #ruby
<ffledgling> ljarvis: for some reason it seems gem is using ruby 2.2.0 ...
quimrstorres has quit [Ping timeout: 256 seconds]
<Ox0dea> ffledgling: It's to do with something attempting to (and, for a second, succeeding in) modifying a frozen string.
quimrstorres has joined #ruby
<shevy> "Tue Jul 21 21:21:33 2015 Nobuyoshi Nakada"
<shevy> "* thread.c (do_select): replace switch and goto with a loop to suppress maybe-uninitialized warnings by gcc6."
<ffledgling> Ox0dea: how do you get the from ... that
<Ox0dea> ffledgling: That confuses Ruby's internal bookkeeping and ultimately causes a null pointer to be dereferenced.
<shevy> hmm... gcc6?
<Ox0dea> shevy: You said you'd stop that?
<Ox0dea> :P
<shevy> no
<Ox0dea> ffledgling: Well, you can see right at the top that the last successful invocation whose name could be known is rb_str_new_frozen().
<Ox0dea> From there it's just a matter of knowing that modifying frozen strings tends to cause segfaults.
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
meatchicken has joined #ruby
eGGsha has joined #ruby
<Ox0dea> >> require 'fiddle'; s = 'foo'.freeze; Fiddle::Pointer.new(s.object_id * 2)[0, 8] = 0 # ffledgling
<ruboto> Ox0dea # => /tmp/execpad-175207915089/source-175207915089:2: [BUG] Segmentation fault at 0x000000 ...check link for more (https://eval.in/402990)
mhf has quit [Ping timeout: 246 seconds]
<Ox0dea> That's not the same thing, of course, but it likely demonstrates the root of the problem.
<ffledgling> Ox0dea: okay... and a fix would be?
<Ox0dea> Fuck if I know. :/
meatchicken has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
schaerli has joined #ruby
<ffledgling> So you're saying that one of (a) libruby or (b) the package manager are broken? :o
<Ox0dea> Try disabling redcarpet; given it's the biggest processor of text, it seems a reasonable guess for the culprit.
<Ox0dea> ffledgling: No, a Jekyll dependency.
meatchicken has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
<meatchicken> Hello
senayar has quit [Remote host closed the connection]
<meatchicken> Why is a struct slower than a class?
senayar has joined #ruby
<meatchicken> wouldn't the struct normally be quicker?
<ffledgling> Ox0dea: How do I do that?
bodgix has joined #ruby
oo_ has joined #ruby
allomov has joined #ruby
<ljarvis> meatchicken: Struct uses a new class. It's for convenience, not metal
<Ox0dea> ffledgling: Well, redcarpet shouldn't be invoked unless you've got Markdown files to parse.
_blizzy_ has joined #ruby
<meatchicken> ljarvis, thanks
<Silex> meatchicken: is there a language where a struct is faster than a class?
<Ox0dea> Silex: "C".
<meatchicken> Silex, C#
<Silex> Ox0dea: not true
poguez_ has quit [Quit: Connection closed for inactivity]
<ffledgling> Ox0dea: I have no idea how it's being used tbh, this is just a way to build some docs for project
<Silex> meatchicken: ah, yeah maybe
<ffledgling> let me see if can figure out a way to fix it the old fashioned way
<Ox0dea> Silex: Not true?
<ffledgling> ... nuke and reinstall
sevenseacat has quit [Quit: Me dun like you no more.]
<Ox0dea> "Object-oriented C" is a thing, and chasing function pointers is definitely slower than using raw data.
<Silex> Ox0dea: well for starter there's no class in C, assuming you meant C++ struct is stricly equivalent to class
<Ox0dea> Silex: No, I meant C; you can write object-oriented C very similarly to how you'd do in Python.
<Ox0dea> Explicit "self" everywhere.
<Silex> Ox0dea: sure but it's not really a class is it?
<Ox0dea> Why not?
davedev24 has joined #ruby
<Silex> well it's just a struct function pointers
<Silex> struct with*
<dubkoidragon> omg half my focus is on rails and half on showes. I'm so frustrated and confused with everything lol
<flughafen> shevy no airplanes are taking off
<Ox0dea> Silex: Is that not the essence of a class?
stamina has joined #ruby
<Ox0dea> The non-function members are "instance variables", and the function pointers are methods.
<shevy> flughafen awww
<flughafen> so sadd
meatchicken has quit [Quit: Leaving]
_blizzy_ has quit [Ping timeout: 255 seconds]
<ffledgling> Ox0dea: how did you read the stack trace again?
<ffledgling> I don't see any of the function calls you mentioned
<ffledgling> not in the raw text anyway
<Ox0dea> They're hidden amongst all the addresses, but they're there.
ribbons has joined #ruby
<Ox0dea> I only mentioned rb_str_new_frozen(), for what that's worth.
<Ox0dea> It's where the interpreter breathes its last.
schaerli has quit [Remote host closed the connection]
<heftig> Ox0dea: methods are only indirect when they're virtual
<Ox0dea> heftig: Please see GObject.
<Ox0dea> ffledgling: Line 10 in your paste.
<ffledgling> Ox0dea: do I run the trace through gdb with debugging info or something to see the translation from addresses to function names?
<Ox0dea> ffledgling: The function names are there.
<heftig> Ox0dea: I know GObject. It allows fine control over static vs. virtual dispatch, and my own code is mostly static
<ffledgling> I see it
Philipp__ has joined #ruby
<Ox0dea> ffledgling: That it's not at the very top of the trace indicates that it succeeded in allocating a new frozen string, but something tries to modify it (almost certainly inadvertently) a few instructions later.
user1138 has quit [Quit: Leaving]
psy_ has quit [Ping timeout: 256 seconds]
user1138 has joined #ruby
workmad3 has joined #ruby
Philipp_ has quit [Ping timeout: 256 seconds]
<bnagy> Ox0dea: that's not a very convincing analysis imho
psy_ has joined #ruby
<Ox0dea> bnagy: I defer to your expertise.
rubie has joined #ruby
<bnagy> that crash is in free(), and the pointer it's freeing looks bunk
<ffledgling> Ox0dea: All I see is a bunch of rb_[ary_each,yield,iterate]
waka has quit [Ping timeout: 244 seconds]
<bnagy> I'm not sure the frozenness of the string is related
<bnagy> I mean I'm not saying it's NOT, just that I don't see evidence for it
<Ox0dea> bnagy: Symbols are garbage-collected now.
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bnagy> it definitely looks GC related
joonty has joined #ruby
<Ox0dea> Touching an interned string could very well cause free() to bail.
CaryInVictoria has joined #ruby
<bnagy> that's the only thing that should be calling libc free, those unnamed libruby frames could be in the GC
<bnagy> but I doubt assembly cares about whether a ruby string is frozen
mhf has joined #ruby
<Ox0dea> How does assembly come into it?
<bnagy> unless they implement it by moving it into some magic RO page or something, but I doubt it
dangerousdave has joined #ruby
sankaber has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 244 seconds]
<bnagy> that's probably a libc assert, but I don't know why the symbol isn't there
<Ox0dea> I wonder if very small strings are implemented as tagged pointers.
michael_mbp has quit [Excess Flood]
rubie has quit [Ping timeout: 265 seconds]
<bnagy> usually I would expect the top of that stack to look like free, _GI_abort, _GI_raise
<dubkoidragon> k guys good night
<bnagy> cause if it crashed hard you wouldn't get the libc warning
astrobunny has quit [Remote host closed the connection]
CaryInVictoria has quit [Ping timeout: 264 seconds]
<bnagy> what we need is a deeper stack trace :\
michael_mbp has joined #ruby
<bnagy> ffledgling: imho your last idea is a good one. Update everything to latest and reinstall etc.
<bnagy> :>
<ffledgling> bnagy: I did
<ffledgling> Didn't really work
<bnagy> ffledgling: are you on linux?
<ffledgling> Also, for some reason gem insists on installing everything in ruby ~/.gem/ruby/2.2.0 when my ruby version is 2.2.2
<bnagy> if so you might see something from the trap handler in the kernel log ( /var/log/kern.log possibly )
<ffledgling> bnagy: yes, running arch
<bnagy> ffledgling: ruby uses the ABI level for those dir names, that's probably not a problem
<bnagy> (I think, anyway)
<jhass> ?abi ffledgling
<ruboto> ffledgling, Each Ruby release has actually two versions, the interpreter version and the ABI version. The interpreter version is what commonly is referred to, like 2.1.5. The ABI version is for the binary interface used by compiled extensions and it is what you see in your paths. It's shared among one release series, for example for the Ruby versions 2.1.0 to 2.1.5 the ABI version is 2.1.0.
codecop has quit [Remote host closed the connection]
AlexAltea has quit [Ping timeout: 252 seconds]
<bnagy> ilu ruboto
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
<ruboto> ilu2 bnagy
benlovell has quit [Ping timeout: 246 seconds]
<jhass> morning apeiros :D
<bnagy> hahaha
benlovell has joined #ruby
<apeiros> who dares summon me? :D
<apeiros> moin jhass
<apeiros> what's up?
oo_ has quit [Remote host closed the connection]
dubkoidragon has quit [Ping timeout: 255 seconds]
<jhass> love's in the air, I guess
duncannz has joined #ruby
<adaedra> /summon apeiros
duncannz has quit [Max SendQ exceeded]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serivich has joined #ruby
c0m0 has quit [Quit: Leaving]
duncannz has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
duncannz has quit [Max SendQ exceeded]
<jhass> ffledgling: public project?
waka has joined #ruby
<ffledgling> jhass: ?
<jhass> that's throwing you the error
Mia has joined #ruby
symm- has joined #ruby
duncannz has joined #ruby
<jhass> you know, can people get it and try to reproduce your issue
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
codenihal has joined #ruby
<bnagy> as an aside, I'm kind of surprised ruboto evals Fiddle code :)
<jhass> well, a good sandbox withstands a root exploit
<darix> https://bugs.ruby-lang.org/issues/11384 - that's brave. doesnt that cry race condition from far far away?
<darix> yorickpeterse: does rubinius handle this correctly?
[k- has joined #ruby
<yorickpeterse> darix: our autoload is thread-safe
workmad3 has joined #ruby
stamina has quit [Remote host closed the connection]
<yorickpeterse> or at least should be, lemme try that script
<[k-> hello
<Ox0dea> [k-!
<[k-> Ox0dea!
oo_ has joined #ruby
schaerli has joined #ruby
hool is now known as ZYPP
* [k- checks PRs
greygoblin has joined #ruby
ixti has joined #ruby
benlovell has quit [Ping timeout: 246 seconds]
<[k-> Ox0dea, look!
startupality has joined #ruby
<[k-> jhass knows IIFEs too!
<yorickpeterse> darix: not triggering anything here so far
<yorickpeterse> I fixed our last known autoloading problem a while ago so it should be fine
<jhass> ?
<yorickpeterse> other parts were thread-safe for years
hans_ has joined #ruby
<[k-> Ox0dea: look, he also isn't able to resolve IIFEs
benlovell has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
schaerli has quit [Remote host closed the connection]
<[k-> he is*
<Ox0dea> [k-: That's... a little odd.
<[k-> you shouldn't use that elite term anymore
<Ox0dea> [k-: ~420k hits.
<[k-> ~420k hits isn't high enough then!
<Ox0dea> S'a lotta hits, though.
sinkensabe has quit [Ping timeout: 250 seconds]
<Ox0dea> It's not some terribly obscure initialism.
main has joined #ruby
<hans_> rbenv install 2.2.2 or rbenv global 2.2.2
<hans_> what is the difference?
leslie_ is now known as leslie
leslie has quit [Changing host]
leslie has joined #ruby
<[k-> consult the documentation?
<Ox0dea> hans_: rbenv global is a setter.
<hans_> umm?
<[k-> he should consult a documentation! Honest!
<[k-> we must mould rubyists into independent people!
<hans_> i used the install
<hans_> i don't think it should make a difference
serivich has quit [Ping timeout: 255 seconds]
CaryInVictoria has joined #ruby
main has quit [Quit: WeeChat 0.4.2]
totimkopf has quit [Quit: WeeChat 1.2]
livathinos has joined #ruby
<ddv> [k-: if this is true you are the least independent person in this channel :p
<ffledgling> jhass: oh yes, it is a public project -- https://github.com/taskcluster/taskcluster-docs/tree/learn (with that branch in particular)
<[k-> [citation needed]
<[k-> okay, okay, it's true
CaryInVictoria has quit [Ping timeout: 240 seconds]
greygoblin has left #ruby ["Leaving"]
Papierkorb has joined #ruby
brianpWins has quit [Quit: brianpWins]
serivich has joined #ruby
Philipp_ has joined #ruby
dmolina has joined #ruby
waka has quit [Read error: Connection reset by peer]
<jhass> ffledgling: interesting, it does reproduce here
<ffledgling> jhass: oh great, then it's not my setup
Philipp__ has quit [Ping timeout: 256 seconds]
<jhass> well, I'm on arch too
<ffledgling> oh
<ffledgling> Let me see if I can reproduce on a different machine
<adaedra> what's to reproduce?
<jhass> seems to be yajl though
<ddv> j/k [k-
dgutierrez1287 has joined #ruby
msnyon has joined #ruby
<jhass> on the second run it happens on Ctrl+C only
davedev24 has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
<ffledgling> jhass: yeah, I noticed, seems to be only because of -w though
<jhass> something's seriously messing up Ruby's internals there
<ffledgling> if you run it without that
<ffledgling> or just run jekyll build, you'll get one too
<ffledgling> I'm note entirely convinced that Arch's ruby stack isn't broken atm...
<ffledgling> s/note/not
<jhass> nah, it's pretty vanilla
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> let me try against an older Ruby
<ffledgling> jhass: I'm trying 2.0.0 on OSX
eGGsha has joined #ruby
<jhass> okay 2.1 crashes too
<ffledgling> 2.0.0 on OSX worked
eGGsha is now known as eGGshke
<jhass> 2.0 crashes here too, mmh
lkba_ has joined #ruby
emilkarl has quit [Quit: emilkarl]
<ffledgling> hmm, begining to sound like a linux/arch thing ...
serivich has quit [Ping timeout: 244 seconds]
<jhass> yeah, probably an ABI incompatibility that didn't receive a proper bump or a too loose requirement on on of the dependencies
_blizzy_ has quit [Read error: Connection reset by peer]
<ffledgling> hm, those still sounds like issues ruby would have, and not arch/linux
<ffledgling> ie. to say, those sounds like problems in packaging the gems...
fgo_ has joined #ruby
<ffledgling> Which would mean they should happen on all platforms
<ffledgling> but I could be wrong
serivich has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
qiukun has quit [Quit: qiukun]
tjbiddle has joined #ruby
_blizzy_ has joined #ruby
duncannz has quit [Remote host closed the connection]
<jhass> mmh, I don't see anything loaded that wouldn't also be loaded in most other slightly more complex apps and thus cause a host of issues
timonv has joined #ruby
casadei_ has joined #ruby
schaerli has joined #ruby
<ffledgling> yeah
<ffledgling> Most of this should be just markdown parsing...
fgo_ has quit [Ping timeout: 246 seconds]
<ffledgling> and given that github uses jekyll internally I think it would've raised flags... if something was mucked with on that side of things.
eGGshke is now known as eGGsha
<ffledgling> Hm. this is interesting.
Guest32 has quit [Ping timeout: 244 seconds]
_ixti_ has joined #ruby
Vile` has quit [Remote host closed the connection]
livathinos has quit []
waka has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
livathinos has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
despai has joined #ruby
<Ox0dea> ffledgling: The problem is in redcarpet; using `markdown: rdiscount` in _config.yml prevents the crash.
shevy has joined #ruby
Vile` has joined #ruby
<[k-> isn't kramdown the most popular option
<Ox0dea> Using kramdown also prevents the crash. :)
senayar has quit [Remote host closed the connection]
<adaedra> [k-: For OSes, Windows is the most popular option. Does it means it's the right one? :)
senayar has joined #ruby
<Ox0dea> adaedra: Popularity implies freedom of choice.
<workmad3> Ox0dea: I'm free to choose... my choices are to run windows on a machine, or not be able to play half my steam library
<workmad3> still a choice :)
Vile` has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
phutchins has joined #ruby
senayar has joined #ruby
eminencehc has joined #ruby
ZYPP is now known as hool
Outlastsheep is now known as zz_Outlastsheep
lysw123 has quit [Quit: Textual IRC Client: www.textualapp.com]
safeforge has quit [Remote host closed the connection]
safeforge has joined #ruby
senayar has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 246 seconds]
eminencehc has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
apfeluser has joined #ruby
Vile` has joined #ruby
slawrence00 has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
Seich has joined #ruby
codenihal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DEA7TH has joined #ruby
simplyianm has joined #ruby
marr has quit []
codenihal has joined #ruby
CaryInVictoria has joined #ruby
Averna has joined #ruby
simplyianm has quit [Ping timeout: 244 seconds]
CaryInVictoria has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
livathinos has quit []
failshell has joined #ruby
endash has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haroldwu_ has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 240 seconds]
bodgix has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
emilkarl has joined #ruby
bodgix has joined #ruby
hool is now known as ZYPP
sinkensabe has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
livathinos has joined #ruby
<yorickpeterse> I just have a separate Windows desktop for that
<yorickpeterse> everything else runs on Lunix
<adaedra> Lunix
<ffledgling> Ox0dea: oh wow
<[k-> GMU/Linux!
diegoviola has joined #ruby
<[k-> autocorrect struck again :(
<[k-> GMU/Lunix
<sonOfRa> I'm using ruby-net-ldap to talk to our ldap server. The ldap.open method yields a block in which I can carry out other LDAP operations. However, these aren't nestable: https://gist.github.com/sonOfRa/f5c87c810d08a9f4ca8e
Vile` has quit [Read error: Connection reset by peer]
codecop has joined #ruby
<sonOfRa> So, if I need to call another ldap method from inside one ldap call, I either get an exception, or I have to pass the already opened instance on to another method (but then I can't call that method on its own anymore).
c355E3B has joined #ruby
<adaedra> yorickpeterse: tell me it's satire
<sonOfRa> Would a connect method like this be safe to use? https://gist.github.com/sonOfRa/3291e7fd6ac23e9ae70d I'm not sure that this doesn't have any undesired side-effects...
<[k-> Topic: Internet Idiocy on the extreme left corner
<yorickpeterse> adaedra: no it's totally legit
<[k-> it *is* satire
<adaedra> yorickpeterse: I don't believe you
<[k-> he believes me! :3
<[k-> that's a first!
Rinzlit has joined #ruby
Vile` has joined #ruby
<Rinzlit> Could someone perhaps help me install a ruby script on a centos server, I've never really messed with ruby at all
<adaedra> 7, 6, 5?
<Rinzlit> Centos 7
<Rinzlit> Minimal with bitnami ruby installed
<adaedra> I don't remember if they have ruby 1.9 or 2.0
<Rinzlit> oh...
<Rinzlit> I'm trying to setup this
<[k-> cat.arse....
<Rinzlit> Yes...
<adaedra> what a strange project name
<Rinzlit> Its a crowdfunding ruby website script
<Rinzlit> it looked very nice.
<adaedra> well, it looks like their readme cover it all
<Rinzlit> yeah, except everytime I try to install it idk what this bundle is
<Rinzlit> what rake is and how to make it work
fabrice31 has joined #ruby
<Rinzlit> I was told it was a ruby command
<Rinzlit> but I installed ruby and it still wouldn't work...
<adaedra> ah yes
<adaedra> you need to install it, try `gem install bundler`
<Rinzlit> what is this gem command?>
<Rinzlit> And it wouldn't run it
<Rinzlit> What does it run off of?
<adaedra> it's the ruby package manager
<adaedra> gems are ruby libraries
sarkyniin has joined #ruby
<Rinzlit> Okay, thank you. maybe I should just install ruby without the bitnami stuff?
<adaedra> what's a bitnami
<Rinzlit> The bitnami stacks
dangerousdave has joined #ruby
<Ox0dea> Who manages the package managers?
<workmad3> Ox0dea: more package managers
<adaedra> normally, you can install ruby and gem with yum
<apeiros> the container managers
<adaedra> santa claus
serivich has joined #ruby
bruno- has joined #ruby
<Rinzlit> Okay I did yum install gem
<Rinzlit> And I got a ton of ruby packages
<[k-> :o
<Rinzlit> gem works now
<[k-> doesn't gem ship with Ruby
Soda has joined #ruby
<Rinzlit> gem install bundler is working now
<Rinzlit> adaedra thank you Q_Q
<Rinzlit> you are a life savor
<Rinzlit> saver*
<Rinzlit> like the candy but better
<adaedra> a ton? o_O
<Rinzlit> The guy who wrote this guide...
<Rinzlit> The BR is real
<workmad3> [k-: welcome to the joy of package-managed ruby
<adaedra> Don't have a CentOS at hand, but normally, rubygems is in only one package, rubygems
<adaedra> no need to install 'a ton'
mikenovikov has quit [Ping timeout: 240 seconds]
safeforge has quit [Remote host closed the connection]
<Rinzlit> adaedra if you want to help me, I can probably free up a centos server...
<Rinzlit> I have 4 at the moment...
<workmad3> adaedra: unless the ruby package hadn't installed some important things... like zlib, openssl, net/http...
<adaedra> I can fire up a container for that, Rinzlit
<Rinzlit> fair enough xD...
<Rinzlit> The people I work for never get their stuff done...
<Rinzlit> so i have to get a new server every so often....
<adaedra> lol
<adaedra> What I know for sure, is that on Fedora the package with gem is rubygems
<Rinzlit> rake command still doesn't work...
_blizzy_ has quit [Ping timeout: 255 seconds]
<adaedra> what step are you in the README?
serivich has quit [Ping timeout: 244 seconds]
<Rinzlit> $ rake db:create db:migrate db:seed
<adaedra> all the previous commands, including bundle install, worked correctly?
<Rinzlit> yeah
<Rinzlit> I just had to rephrase them
<Rinzlit> to get install bundle
schaerli has quit [Remote host closed the connection]
<Rinzlit> gem install bower
htmldrum has joined #ruby
ruby-lang285 has joined #ruby
<ruby-lang285> hey
<Rinzlit> Hi
<[k-> hi
<ruby-lang285> i have some array with multiple emails how can i print out each ?
bmurt has joined #ruby
<adaedra> Rinzlit: woot
<Rinzlit> What is it adaedra?
psy_ has quit [Ping timeout: 240 seconds]
<Ox0dea> ruby-lang285: On A4, do you mean?
<adaedra> the commands you have in the readme should work without changing them
<Rinzlit> ermmm they don't though
<adaedra> that's what you have to fix
<Rinzlit> Well $ doesn't do anything?
<adaedra> take them one by one, and if one errors, that's what you have to look at
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> $ means enter to terminal
<adaedra> $ represents your shell, ignore it
<Rinzlit> I need gem file 2.1.0
<Ox0dea> [k-: As not-root!
<adaedra> Rinzlit: what's the error (use gist for > 3 lines)
<[k-> ok
<Rinzlit> Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0
<Rinzlit> I need to also not run it as root...
<Rinzlit> -facepalm-
<adaedra> ?root
<ruboto> General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<adaedra> It means the ruby provided by your system is too old, you'll have to get an alternative ruby
<Rinzlit> Yeah, I'm a bad systems administrator...
Philipp_ has quit [Ping timeout: 246 seconds]
<Ox0dea> You... thought $ was part of the command.
<Fluent> I root for days
Philipp_ has joined #ruby
<Rinzlit> Ox0dea he said the whole command, I was pretty sure $ was just there to be annoying
<adaedra> If it's just for deployment, better get ruby-install for that
<Rinzlit> I just need this thing up and running in 8 hours...
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Rinzlit> ah ha ha....
wpp has joined #ruby
bmurt has quit []
Igorshp has joined #ruby
<Fluent> That sounds dirty
schaerli has joined #ruby
<Rinzlit> eh... yeah... I should be less lazy
<ruby-lang285> AH
Philipp_ has quit [Read error: Connection reset by peer]
<adaedra> 8 hours?
<adaedra> that's more than needed
<Rinzlit> great...
<Rinzlit> because its 4AM and I haven't slept in like 24 hours
<adaedra> oh
<Rinzlit> Should I wipe the system?
codenihal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Fluent> Sure
<adaedra> not needed, Rinzlit
<Fluent> Sounds logical
<Fluent> lol
<Rinzlit> Okay, Fluent its instant resets
<Rinzlit> Its wonderful these servers man
<Rinzlit> and almost every OS too
<Rinzlit> adaedra are there any OS's that would make this easier?
<adaedra> Rinzlit: if you want to do it from scratch, you can, but it's not needed
<Fluent> Cool
pandaant has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
endash has left #ruby [#ruby]
<adaedra> Rinzlit: It's possible to make it work on your current OS. I think you chose it for a reason?
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
Xzanron has joined #ruby
<Rinzlit> uhmmm because my dad always uses centos
scripore has joined #ruby
<adaedra> :)
<Rinzlit> all linux is the same to me since I don't use them that often
jeramyRR has joined #ruby
<Rinzlit> but he is a IT guy of 40 years...
<Rinzlit> I'm sure he has some amazing reasons
<Fluent> an IT guy *
<adaedra> there may be a more recent ruby on another system, but it has also other implications
<Fluent> I doubt he has amazing reasons
<Fluent> Probably just preference
<adaedra> We all do
<adaedra> but it could be a corporate requirement or something
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
ledestin has quit [Read error: Connection reset by peer]
<Rinzlit> The guys I work with are like kids lol....
<Fluent> Sounds like me
<Rinzlit> they think stuff like this is black magic...
<Ox0dea> Sounds like "\u2649\u{1f4a9}".
iateadonut has joined #ruby
<Rinzlit> Okay so adaedra someone referenced in one of the guides a ruby installer script
<Rinzlit> to make life easier do I want that one?
<Rinzlit> or should I just go and install it the normal way for once?
iateadonut has quit [Client Quit]
<adaedra> I don't have my crystal ball, I can't see what you're talking about
<Fluent> kek
<Rinzlit> Good point let me link it
<adaedra> ubuntu
<Rinzlit> I got another server to do it in ubuntu
<Rinzlit> Still had as much trouble...
<Rinzlit> Want me to go change the server to ubuntu 12.04
<adaedra> oh, and rvm
<adaedra> this will not get you love in here
<Rinzlit> oh...
<Rinzlit> I'm kinda like an idiot with this stuff...
<Rinzlit> Sorry...
<[k-> adaedra owns a crystal ball! :o
<Ox0dea> Points for humility, if nothing else.
fgo_ has joined #ruby
<Rinzlit> Thank you Ox0dea
<[k-> adaedra is an Oracle like Ox0dea, shevy!
<Ox0dea> [k-: Sick trilight!
PpPyg has quit [Remote host closed the connection]
<adaedra> [k-: I gave it, so yorickpeterse can see what I'm wearing
<Rinzlit> it says I have the latest version of ruby...
<[k-> yorickpeterse is an Oracle now too!
<sonOfRa> Why is the return explicit in one of these, but I have to make it explicit in the other? https://gist.github.com/sonOfRa/49cb0d713c503680796c
<Rinzlit> I updated yum and still said I did
lkba_ has quit [Remote host closed the connection]
hans_ has quit [Ping timeout: 240 seconds]
<adaedra> Rinzlit: CentOS may not provide the latest version
<Rinzlit> oh okay...
<sonOfRa> Any idea why this is the case? I'm a bit stumped
<Ox0dea> sonOfRa: Because the if block is the last "expression" in #connect.
<adaedra> Rinzlit: look at this https://github.com/postmodern/ruby-install, it can install any ruby version
tkuchiki has quit [Remote host closed the connection]
<[k-> the if block is an expression...
fgo_ has quit [Ping timeout: 260 seconds]
<sonOfRa> Ox0dea: so the yield statement needs to be the last thing that happens in #connect in order for it to be implicit?
oo_ has joined #ruby
tvw has joined #ruby
<adaedra> Rinzlit: eep, don't pm without asking first
<Rinzlit> adaedra: sorry didn't know that was like bad...
<[k-> the explicit return is needed because it was in a loop
<[k-> or else the value gets lost in the next iteration
arup_r has quit [Remote host closed the connection]
<Rinzlit> adaedra: is it okay if I continue to pm you?
<sonOfRa> ah, yes.
<Ox0dea> Rinzlit: First day on IRC?
<adaedra> Rinzlit: short story, because my lunch time comes soon: you can use it to install a newer version of ruby in a custom place. Look at the readme, it has lot of examples. Then you can use this ruby (use chruby or change your path manually for that) to do the install of catarse.
<Rinzlit> Ox0dea: last time I was on an IRC was when I was into all those alternative cryptocoins
<Ox0dea> But you're a sysadmin...
<adaedra> There are a lot of people in here that can help you, don't push it to pm
<Ox0dea> Aren't sysadmins legally required to frequent IRC?
<Rinzlit> Ox0dea I got the job, because I did the companies website, and I'm cheap
<[k-> dun dun dun
<Rinzlit> I get paid 10$ an hour....
bruno- has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
allcentury has joined #ruby
oo_ has quit [Remote host closed the connection]
jeramyRR has quit [Quit: Peace out!]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Don't you have colleagues that can help you?
<Rinzlit> nope, im the only guy there besides the other offsite IT guy...
bmurt has joined #ruby
bmurt has quit [Client Quit]
CaryInVictoria has joined #ruby
<Rinzlit> And he doesn't like me since they want me to replace him
<Rinzlit> And he works with some other company too
<[k-> but you can't replace him...
<Ox0dea> Ouch.
<[k-> better go on a course!
<Rinzlit> I just turned 18 like 11 days ago...but I think I'll be alright...
<Rinzlit> Since I also help with their marketing too
<Ox0dea> /r/nottheonion: Barely legal sysadmin fails to properly install Ruby.
hahuang65 has joined #ruby
<adaedra> Ox0dea: that's mean
Igorshp has quit [Remote host closed the connection]
<Rinzlit> ah ha ha.... xD
<Ox0dea> ^_^ <3
<Rinzlit> I installed an older version of ruby... at least...
<adaedra> The system provided one
<Rinzlit> And its only because this is also on a server
snophey has joined #ruby
<Rinzlit> No I used the bitnami one xD
<adaedra> ah
<Rinzlit> Which is just as bad ah ha ha
sameerynho has quit [Quit: Leaving]
<adaedra> so, let me summarize
fabrice31 has quit [Remote host closed the connection]
ldnunes has joined #ruby
<adaedra> A junior sysadmin, a server, a ruby project, and 8 hours to have it working
Seich has quit [Ping timeout: 244 seconds]
<Rinzlit> ah ha ha... xD.....
<Ox0dea> s/ju/se/
CaryInVictoria has quit [Ping timeout: 256 seconds]
RobertBirnie has joined #ruby
<Rinzlit> well its not the company i work for that wanted it done...
<Rinzlit> I have a friend who thinks I'm a magician with computers
<adaedra> o_O
<Rinzlit> and he talked to another company, and they wanted a website done in 48 hours
RobertBirnie has quit [Read error: Connection reset by peer]
<Rinzlit> and my best idea was use an open source template for it
<Rinzlit> An of course 2/3 haven't worked properly or were really bad
<Rinzlit> And this last one is kinda my lost hope...
RobertBirnie has joined #ruby
<Rinzlit> So I'm trying to get this ruby website script going...
<[k-> I can ctrl-a and the screens turns blue!
<[k-> I'm a magician!
<Rinzlit> lol... you could impress him by turning the screen....
<Ox0dea> Manually?
yfeldblum has quit [Ping timeout: 244 seconds]
<Rinzlit> even manually...
schaerli has quit [Remote host closed the connection]
<mikecmpbll> i've implemented a thread pool in part of my code and I want to write tests for it; so if i queue up 20 jobs with a thread pool of 10 i should really be testing that there's no more than 10 threads i guess? but i don't really know where to start with that
<Rinzlit> of course they offered me like 500$ for the website, so I leaped at the chance to get some money xD....
<mikecmpbll> nvm i'm being an idiot
<adaedra> USD 500 for a website?
<Rinzlit> Yeah o-o
<adaedra> I don't know well the marked, but that seems cheap
<adaedra> market*
<Rinzlit> well I kinda dropped out of high school ah ha ha...
eGGsha has joined #ruby
<Rinzlit> and I'm kinda a nobody so....
<adaedra> well, it's not difficult to learn
<adaedra> there are plenty of resources on the interwebz
<adaedra> but better start low
<Rinzlit> yeah, but I also have to make money to...
<Rinzlit> like I do a lot of editing of code...
<Rinzlit> just not any coding my self
failshell has joined #ruby
<Rinzlit> Anyway I need to get this stuff done I'm sooo tired Q_Q
codenihal has joined #ruby
Seich has joined #ruby
<mikecmpbll> lol
codenihal has quit [Client Quit]
nofxx has quit [Ping timeout: 240 seconds]
schaerli has joined #ruby
RegulationD has joined #ruby
<adaedra> anyway, it's time to eat something
<adaedra> glhf
<Rinzlit> thank you for the help
<Rinzlit> I'll probably be here when you get back xD
failshell has quit [Ping timeout: 265 seconds]
<[k-> I thought adaedra was going to miss lunch :o
<Rinzlit> brb im grabbing a protien drink...
senayar has quit [Remote host closed the connection]
<mikecmpbll> yeah, better get that protein in your for a coding session
senayar has joined #ruby
<[k-> it's a drink too!
<Rinzlit> yes... work on that finger strength...
<Rinzlit> nah i drink them because im fat and there is only 1 gram of sugar
<Rinzlit> and its 160 calories
<mikecmpbll> 160 calories ...
<mikecmpbll> is quite a lot for a drink
<[k-> drink water
<mikecmpbll> if you're fat probably drink something with 0 calories
<Rinzlit> I drink about 3 of them for meals a day
<Rinzlit> So about 480 calories
<Rinzlit> And then I drink water all day .-.
symm- has quit [Ping timeout: 244 seconds]
<mikecmpbll> k. sounds healthy
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Rinzlit> It's alright, its for meal replacement maybe it will work .-.
<Rinzlit> anyway need to get this done >.<
<[k-> the meal doesn't like the drink because Rinzlit wants the drink to replace him
<mikecmpbll> :D
<[k-> and the meal is working for another person too
<Rinzlit> O_o... What...?
<[k-> XD
<mikecmpbll> lol
<Rinzlit> I don't think I'm that tired...
<[k-> repeating what you said earlier
<Rinzlit> uhmmm okay...
<Rinzlit> I'm like really tired, and like half brain dead after working the last 20 hours...
<[k-> there besides the other offsite IT guy...
<[k-> [19:53:21] <Rinzlit> And he doesn't like me since they want me to replace him
<[k-> [19:53:36] <Rinzlit> And he works with
<[k-> :( it got cut off
<Rinzlit> Another company
<Rinzlit> Oh, lol xD
<[k-> the same with the meal!
<mikecmpbll> a joke loses something when it has to be explained to the very last letter, dontcha think?
<Rinzlit> yeah, and at some point I'd like to be able to do my job properly...
<[k-> motivation is a key to success!
<Rinzlit> Maybe 1 of those 3 things will happen xD
<mikecmpbll> and protein
esantiago has joined #ruby
<[k-> I look like a propaganda spreader, with all those !
esantiago has left #ruby [#ruby]
<Rinzlit> It's okay spamassasin wouldn't flag you
<Ox0dea> Rinzlit: There are two asses in assassin.
<mikecmpbll> :D
<Rinzlit> Yeah, I should work on my spelling along with learning to program,
<Rinzlit> and my grammar
<Ox0dea> And your axe.
<Rinzlit> I had a math professor point out how bad my grammar is
<mikecmpbll> maybe he meant your algebraic grammar
<Rinzlit> no I was doing the support emails till that happened
<[k-> if your math professor pointed it out, you are really bad
<Rinzlit> he said they should go hire some Americans
<Rinzlit> lol... I was born in New York....
iateadonut has joined #ruby
Trynemjoel has quit [Max SendQ exceeded]
Tempesta has joined #ruby
benlovell has joined #ruby
schaerli has quit [Remote host closed the connection]
<Rinzlit> if this template wasn't so nice looking, I'd go find a different one...
<[k-> oops
Trynemjoel has joined #ruby
[k-_ has joined #ruby
<Rinzlit> Oh, and [k- I can't afford college xD
<Rinzlit> I work with guys who sell stuff to teachers
Trynemjoel has quit [Max SendQ exceeded]
DoubleMalt has quit [Remote host closed the connection]
<yorickpeterse> You mean like drugs?
<[k-_> :(
<Rinzlit> ah ha ha, almost as good profit margins
DoubleMalt has joined #ruby
<Rinzlit> They sell insurance
<[k-_> i feel sad and emphathetic now
arup_r has joined #ruby
<Rinzlit> Its okay [k- at least I have a job as a systems admin
Trynemjoel has joined #ruby
<Rinzlit> I can use it as experience to get a real job at some point
* mikecmpbll ponders what's unreal about systems adminning
<Rinzlit> hopefuly I can teach my self how to do the stuff I need xD
<[k-_> you should stay!
Trynemjoel has quit [Max SendQ exceeded]
<Rinzlit> What do you mean? O_o?
<Rinzlit> Stay where?
<[k-_> here!
<mikecmpbll> >> Thread.list
<ruboto> mikecmpbll # => [#<Thread:0x42165a5c run>] (https://eval.in/403096)
<Rinzlit> Ermm, yeah I can do that
<mikecmpbll> hm
yalue has joined #ruby
<[k-_> more than a day, i mean
<Rinzlit> Yeah I'll just leave it up on my desktop
<Rinzlit> I refuse to install skype on my desktop anyway
<Rinzlit> I'd prefer to keep my virus's on my laptop
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-_> good policy
christiandsg has joined #ruby
<Rinzlit> [k- I'm sure Microsoft doesn't like that xD
sandelius has joined #ruby
<Rinzlit> They can't stalk me as well without skype
Trynemjoel has joined #ruby
n1lo has joined #ruby
<[k-_> XD
<Rinzlit> Same reason I use duckduckgo
dhjondoh has quit [Quit: dhjondoh]
<[k-_> but they know where you live!
<Rinzlit> and the DNS server I use
<Rinzlit> Yeah, they probably do
<Rinzlit> On the bright side I still order my license keys from china
<Rinzlit> 10$ per microsoft office key
<Rinzlit> Fk microsoft
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
<Rinzlit> Oh, has anyone found any good ways to avoid paying microsoft for stuff? or other big companies?
systemd0wn has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<Rinzlit> There was a nice Centos add on that you could use to run a windows domain, and host printers and everything
<jhass> uhm
<jhass> now we're gone fully ?ot
<jhass> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
despai has quit [Quit: This computer has gone to sleep]
systemd0wn has joined #ruby
<mikecmpbll> right.
<Rinzlit> Oh okay my bad .-.
<shevy> ruby on centos is a disaster!
<Rinzlit> oh wait really?
<Rinzlit> what should I use then...?
<mikecmpbll> python
<shevy> haha I don't really know... I just wanted to bring it back on topic ;)
<Rinzlit> oh... because I'm having trouble installing ruby on centos...
<Rinzlit> lol...
<shevy> in general people tend to advice for rvm or rbenv or something like that, rather than the distribution-specific packages
<[k-_> that little a thing won't satisfy jhass!
<[k-_> :o there is an ass in jhass
<[k-_> whoops
<shevy> debian tends to remove mkmf for instance; you can easily get mkmf back, but it's an extra step many people don't know about
<shevy> oh but you don't know the word "hass" [k-
<shevy> it's "hate", in german
<[k-_> really? :o
fantazo has quit [Quit: Verlassend]
dangerousdave has quit [Client Quit]
<shevy> yeah
<Rinzlit> I've spent the last 3 hours trying to fix this ruby problem...
mhib has quit [Quit: Leaving]
<Rinzlit> I think I'm going to go look for something that isn't ruby
<shevy> nooooooo :(
<[k-_> ask your father!
<mikecmpbll> Rinzlit: no, at leaast half an hour of it has been spent talking nonsense in here :)
esantiago has joined #ruby
<Rinzlit> Yeah mike, but before that I spent hours
Igorshp has joined #ruby
usershell has joined #ruby
<mikecmpbll>
<Rinzlit> And I've been casually mashing commands into my consel
<esantiago> Hi everyone
<Rinzlit> Trying stuff to install ruby, and getting it working
<shevy> that is the proper unix way :)
<mikecmpbll> esantiago: 'ello
<Rinzlit> This ruby site looks so pretty too
<shevy> Rinzlit right. it depends on the base system you use
<shevy> is this portuguese
<Antiarc> Whoops, wrong channel
<Rinzlit> Yes it is Shevy
<shevy> \o/
<Rinzlit> All the ones in English didn't look as nice
<shevy> lol
<Rinzlit> Or didn't work properly
pepperbreath1 has left #ruby [#ruby]
<Rinzlit> Key [k-
<Rinzlit> Don't ruby programmers get paid really well?
* mikecmpbll checks payslip
<mikecmpbll> nope.
senayar has quit [Remote host closed the connection]
<Rinzlit> I swear I saw something about a ton of people wanting ruby programmers at one point .-.
senayar has joined #ruby
<[k-_> i dont have a job
<[k-_> im a student
<[k-_> ask apeiros!
<Rinzlit> Oh .-.
<[k-_> adaedra too!
<shevy> Rinzlit probably the good ones get paid a lot
<shevy> apeiros is getting super rich for sure
<mikecmpbll> shevy: zing :(
<[k-_> or yorickpeterse!
<shevy> mikecmpbll you are constantly getting better!!!
<shevy> then you switch jobs - and get rich
<Rinzlit> [k-_ if I gave you the login info for my server you think you could set it up for me :D?
<mikecmpbll> heh, SOON.
xkickflip has quit [Ping timeout: 246 seconds]
<[k-_> i do not have experience in setting up servers/ruby/gems/etc/etc/etc
<Rinzlit> fair enough .-.
xkickflip has joined #ruby
<[k-_> what i do is brew install ruby
<shevy> you have to go in baby steps
<[k-_> and im done!
<Silex> /etc has so many configs it needs to be set up 3 tiems
<shevy> (1) is your ruby working as-is; can you start "irb" and type "5+5" then hit enter
senayar has quit [Remote host closed the connection]
<Rinzlit> shevy I need version 2.1.0
senayar has joined #ruby
<shevy> damn
<Rinzlit> And it says 2.0.0 is the latest
<shevy> no
<shevy> 2.2.x something
<[k-_> you need 2.2.0!
Silox| has joined #ruby
<Rinzlit> Yeah, well I know its not the latest...
<shevy> latest source is at: ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
<Rinzlit> Yeah... except it comes with the bitnami stacks
<[k-_> compile from source?
<Rinzlit> And its a nice simple 2 command install
Averna has left #ruby ["JOIN #offsec"]
<Rinzlit> and the yum install won't help either
<shevy> yeah you are addicted to your package managers
yqt has joined #ruby
<shevy> you have to remain with them :)
<[k-_> i tried compiling weechat from source
<[k-_> that uh, didnt go so well
<esantiago> it's such nostalgic. It's been awhile since the last time that I access an irc channel
<[k-_> i ended up with brew install weechat
<shevy> [k-_ why not... it works here!
despai has joined #ruby
<[k-_> i forgot what went wrong ¯\_(ツ)_/¯
<Rinzlit> [k-_ maybe I should try a different OS
<Rinzlit> Anyone know any server OS's that come with ruby 2.1 or higher from package manager?
<[k-_> you should try fedora then
<[k-_> i heard it's bleeding edge
<Rinzlit> lol... its on the automatic installs
<Rinzlit> but im good, thank you
<[k-_> but it's not server os though
dhjondoh has joined #ruby
<Rinzlit> Fedora 21 64Bit
fabrice31 has joined #ruby
<Rinzlit> Its on the list of the guys who host my VPS will do xD
<shevy> hasn't ubuntu switched to a more recent ruby version?
xcesariox has joined #ruby
<shevy> hmm debian still has 2.2.2 in unstable https://packages.debian.org/search?keywords=ruby2.2
christiandsg has quit [Remote host closed the connection]
<esantiago> Rinzlit, why you don't install using rbenv?
Kully3xf has joined #ruby
<Rinzlit> I don't know what that is .-.
Kully3xf has quit [Remote host closed the connection]
<darix> shevy: any newer than 2.2.2 is?
<Rinzlit> Yeah, I'm too tired to actually focus, on work...
<Rinzlit> R.I.P. I lose
msgodf has quit [Ping timeout: 265 seconds]
<shevy> darix hmm no ... unless one gets the latest source snapshot
<shevy> I have ruby 2.2.2p95
<shevy> >> RUBY_VERSION
<ruboto> shevy # => "2.2.0" (https://eval.in/403147)
<shevy> the bot is almost there
<esantiago> Rinzlit, are you new with ruby?
victortyau has joined #ruby
<Rinzlit> esantiago I only ran into ruby because the website script I want is in ruby
<Rinzlit> And I couldn't figure out how to install it easily
<esantiago> Rinzlit, hmm I see
_blizzy_ has joined #ruby
<Rinzlit> esantiago: Yeah, from what I'm experiencing ruby isn't fun on servers
<esantiago> Rinzlit, wich linux distro are you using?
allcentury has quit [Ping timeout: 264 seconds]
<Rinzlit> esantiago: I can use ubuntu, centos, or debian
<esantiago> ok
<Rinzlit> I just need one with ruby 2.1.0
Averna has joined #ruby
<Rinzlit> I have a centos server 7 with ruby 2.0.0
<shevy> ruby works perfectly well here
<Rinzlit> Idk, probably because I'm an idiot .-.
<shevy> depends
<shevy> does centos provide up-to-date ruby packages?
<Rinzlit> nope
<Rinzlit> I'll be right back,
blaxter has quit [Quit: foo]
<shevy> actually that page has a lot of centos specific info
<shevy> e. g. "yum groupinstall -y 'development tools'"
tmtwd has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Read error: Connection reset by peer]
<Rinzlit> ERROR: Could not find 'which' command, make sure it's available first before con tinuing installation.
<Rinzlit> I had used "curl -L get.rvm.io | bash -s stable"
fabrice31 has quit [Remote host closed the connection]
<yorickpeterse> lol RVM
<yorickpeterse> lol rbenv
dseitz has joined #ruby
<yorickpeterse> Seriously, chruby > everything
<shevy> funny that 'which' would be required
<shevy> and that it was not available too
<Rinzlit> ...brb bathroom...
despai has quit [Quit: This computer has gone to sleep]
christiandsg has joined #ruby
_blizzy_ has joined #ruby
<esantiago> shevy, yes it is...
sankaber has joined #ruby
<shevy> :)
<Rinzlit> Okay, back.
<esantiago> shevy, actually is very weird
<Rinzlit> Okay, louder music, and time to look into chruby.
ggerman has joined #ruby
dimasg has joined #ruby
<esantiago> LOL
<shevy> I hope that the music helps
n1lo has left #ruby [#ruby]
<Rinzlit> Eh, its hollywood undead
<Rinzlit> #tooedgy
<ggerman> hello anybody try with ruby in docker? I have this problem: ERROR: Loading command: install (LoadError)
<shevy> you would make yorickpeterse very happy if you succeed with chruby
<ggerman> cannot load such file -- zlib
<ggerman> ERROR: While executing gem ... (NoMethodError)
<ggerman> undefined method `invoke_with_build_args' for nil:NilClass
galeido has quit [Ping timeout: 264 seconds]
<shevy> ggerman sounds as if you do not have zlib installed. are you on a debian based system?
<yorickpeterse> ggerman: you need to have zlib installed when compiling RUby
<yorickpeterse> * Ruby
<ggerman> yes debian / jessi
<shevy> yeah. several ways to fix it. I usually recompile zlib :) in your case you may have to get the dev package for zlib... not sure how it is called on debian
CaryInVictoria has joined #ruby
<Rinzlit> [k- is it okay to private message you?
<shevy> perhaps the name is zlib1g-dev BUT I am not sure
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
prefixed has joined #ruby
<ggerman> i try with this apt-get install zlib1g zlib1g-dev; but dosn't work
msgodf has joined #ruby
despai has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
Kully3xf has joined #ruby
<ggerman> let try compiling zlib manually
bmurt has joined #ruby
<shevy> yeah not sure what convention debian follows. perhaps it is logical, I never found out. you need to find out what your current zlib is
<shevy> and then find the corresponding -dev component
<shevy> I don't even know what is jessie etc...
<Rinzlit> How do I know if I installed chruby properly?
<shevy> if you need help for the source, the latest zlib version is http://www.zlib.net/zlib-1.2.8.tar.gz and LFS/BLFS has information how to compile it properly: http://www.linuxfromscratch.org/lfs/view/development/chapter06/zlib.html
<[k-_> Rinzlit, i wouldn't be able to guide you
galeido has joined #ruby
<ggerman> ok, thanks
<[k-_> I literally have zero experience in the ruby ecosystem
<Rinzlit> [k-_: May I PM you though?
<[k-_> yup
dgutierrez1287 has quit [Remote host closed the connection]
<[k-_> sometimes you might get a +g message tho
<shevy> ah I forgot to mention one thing actually
RegulationD has quit [Remote host closed the connection]
<shevy> ggerman the above error happens in ruby actually, in particular the ruby bindings to zlib
<shevy> in the ruby source, they are under ext/zlib
CaryInVictoria has quit [Ping timeout: 264 seconds]
<shevy> I have no idea if debian provides the ruby-zlib part in a package
johnhamelink has quit [Ping timeout: 244 seconds]
<ggerman> no, we haven't ruby zlib
retornam has quit [Ping timeout: 265 seconds]
G has quit [Ping timeout: 244 seconds]
<shevy> ok I am looking at other problems... similar problems on ubuntu http://stackoverflow.com/questions/769496/ubuntu-noob-rails-install-fails-on-zlib
<shevy> first reply suggests RVM
christiandsg has quit [Remote host closed the connection]
Liothen has quit [Ping timeout: 244 seconds]
drewdavis has quit [Ping timeout: 244 seconds]
mustmodify has joined #ruby
dimasg has joined #ruby
<shevy> on centous, the dev parts would be "yum install zlib zlib-devel" but he also recompiles ruby from source actually
<shevy> *centOS
<shevy> if you have compiled zlib though, you can try to go into ext/zlib and just compile the bindings. not sure if it will work though
<ggerman> I dowloaded zlib .. configure ... make make install; and have the same problem
<ggerman> :S
drewdavis has joined #ruby
Liothen has joined #ruby
G has joined #ruby
<shevy> yeah, the ruby bindings to zlib
<shevy> but zlib compiled fine?
<yorickpeterse> ggerman: you need to recompile Ruby for it to pick up zlib
<yorickpeterse> recompiling zlib does nothing
retornam has joined #ruby
darxun has left #ruby [#ruby]
allcentury has joined #ruby
<yorickpeterse> and make sure your development headers of zlib are installed
<shevy> he did not have the dev package so no .h files
simplyianm has joined #ruby
<yorickpeterse> IIRC it's `sudo apt-get install zlib1g-dev` on Debian
<ggerman> recompiling ...
<shevy> ah now I see, so he had the zlib dev stuff already
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
usershell has quit [Remote host closed the connection]
ItSANgo has quit [Quit: Leaving...]
ruby-lang285 has quit [Ping timeout: 246 seconds]
pandaant has quit [Remote host closed the connection]
rubie has joined #ruby
hinbody has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
penzur has joined #ruby
simplyianm has quit [Ping timeout: 244 seconds]
<Rinzlit> esantiago, I'm trying ubuntu 14.0.4 now
<adaedra> still at it?
CaryInVictoria has joined #ruby
<Rinzlit> I WILL NOT SURRENDER
<Rinzlit> And yes .-.
<esantiago> hahaha good
<esantiago> you'll win!
<apeiros> oooh, TIL:
<apeiros> >> "foo & bar".encode(xml: :text)
<ruboto> apeiros # => "foo &amp; bar" (https://eval.in/403158)
<shevy> wow
rubie has quit [Ping timeout: 265 seconds]
<shevy> >> require 'cgi'; CGI.escape_html("foo & bar")
<ruboto> shevy # => "foo &amp; bar" (https://eval.in/403160)
<esantiago> Rinzlit, have you ever worked with vagrant?
<Rinzlit> I read on it
<Rinzlit> Its a virtual envirement thingy
<Rinzlit> right?
ndrei has quit [Ping timeout: 250 seconds]
<esantiago> yes
Yiota has joined #ruby
johnhamelink has joined #ruby
<pontiki> radar has a writeup on installing rails on ubuntu 14.04
<adaedra> grmbl, connection dropped
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ggerman> solution: install zlib recompile the ruby
mustmodify has left #ruby [#ruby]
<ggerman> in docker the openssl isn't installed then i have a new error but more explicit
<ggerman> Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
<shevy> yeah openssl is more annoying
<shevy> it also is in ext/openssl btw just as ext/zlib or ext/readline for all those bindings for ruby
<Rinzlit> 25% of the way esantiago, I just need to stay awake ah ha ha
jgpawletko has joined #ruby
failshell has joined #ruby
<adaedra> shevy ggermanit's not more annoying than everything else, just need to install the dependencies
<shevy> ggerman if you need the source way, BLFS for the win http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssl.html - however had, I assume that debian has -dev package for it
<esantiago> hahaha
<esantiago> good
<esantiago> Rinzlit, I created an script for environment provisioning using vagrant https://github.com/emilio2hd/development-ubuntu-ruby-rails-ansible
Iskarlar has joined #ruby
<Rinzlit> YES YES YES YES
<Rinzlit> -Throws a god damn party-
<Rinzlit> I have ruby 2.2.1
<adaedra> [APPLAUSE]
<Rinzlit> Only took a few hours, thank you ^_-
<esantiago> YES!
<ggerman> trying with "apt-get install libssl-dev" and recompiling ruby
<esantiago> congrats!
<pontiki> esantiago: i <3 ansible :)
woodruffw has joined #ruby
<esantiago> pontiki :D
<pontiki> years of fighting with chef and puppet
<pontiki> i learn ansible in 2 hours
<adaedra> sounds interesting
dangerousdave has joined #ruby
bronson has joined #ruby
<esantiago> pontiki I like ansible very much too, it's very easy to learn
n008f4g_ has quit [Ping timeout: 264 seconds]
<pontiki> just to show off, here's my setup: https://github.com/tamouse/vagrant-with-ansible-starter-kit
<pontiki> they're so bloody easy to customize
<shevy> ggerman hmm in principle, you would not need to have to recompile ruby, the ext/openssl should suffice. however don't quote me 100% on it, in particular with ext/openssl I have had problems in the past, so I also ended up recompiling
<esantiago> pontiki, nice
mhib has joined #ruby
gamename has joined #ruby
TOAA has quit [Ping timeout: 264 seconds]
[H]unt3r has joined #ruby
mbeasley_ has joined #ruby
mbeasley_ has quit [Client Quit]
TOAA has joined #ruby
jerius has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
bronson has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
gamename has quit [Remote host closed the connection]
bahar has joined #ruby
Papierkorb has joined #ruby
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
bungoman has joined #ruby
lannonbr has joined #ruby
<ggerman> working !!!
<ggerman> but if i'm not compile ruby again after install libssl-dev dosn't work
riotjones has quit [Remote host closed the connection]
sevenseacat has joined #ruby
paulcsmith has joined #ruby
DEA7TH has joined #ruby
<shevy> ggerman ext/openssl should suffice
<shevy> the parts there recompiling would take ~20 seconds
malconis has joined #ruby
Feyn has quit [Ping timeout: 260 seconds]
<Rinzlit> So I finally got ruby 2.2.1 and now it can't find gemfile?
AlexAltea has joined #ruby
<adaedra> what did you do
<Rinzlit> "bundle install"
<Rinzlit> I'm install gem now .-.
<Rinzlit> -prays that it will fix it-
<pontiki> did you install the bundler gem for your new ruby?
<Rinzlit> I don't know what that is
<pontiki> it is what lets you run "bundle install"
<Rinzlit> Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing
<Rinzlit> your bundle as root will break this application for all non-root users on this
<Rinzlit> machine.
<Rinzlit> Could not locate Gemfile or .bundle/ directory
<Rinzlit> Wops went over 3 lines >.<
<adaedra> Are you in the right directory?
<Rinzlit> I am in the root
<jhass> and why do you run it as root?
a346 has joined #ruby
<adaedra> Also, what the f*ck are you doing as root.
<Rinzlit> If I don't run it as root it completely ignores my command
dhjondoh has quit [Remote host closed the connection]
<jhass> ?root
<ruboto> General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<adaedra> Rinzlit: You need to run these commands from the project root directory, as the user that will run the software.
<jhass> and "the root" is ambiguous, could mean /, could mean the root of the project you want to install, ...
<esantiago> you need to be in the same directory which have the Gemfile
dblessin_ has joined #ruby
<Rinzlit> Where are the gemfiles on ubuntu...?
CaryInVictoria has quit [Remote host closed the connection]
<adaedra> The gemfile is in the thing you're trying to install
<Rinzlit> I did apt-get install gem
<Rinzlit> And it just automatically did it for me...
<esantiago> did you install bundle?
<esantiago> gem install bundler
eggoez has quit [Ping timeout: 252 seconds]
<adaedra> Ah, he reset his system finally?
<Rinzlit> Yes, I am on ubuntu now
<Rinzlit> But wait this worked on Centos
<Rinzlit> adaedra you said I needed to follow the order in the readme, and It worked fine if I didn't follow it o-o
serivich has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
<adaedra> wat
greydog has quit [Ping timeout: 252 seconds]
acl_ has joined #ruby
<Rinzlit> Didn't you tell me to follow the instructions
<Rinzlit> and not rephrase the commands
<Rinzlit> RAKE WORKS NOW :D :D :D
<Rinzlit> OMG!
<pontiki> did any of these instructions say to use apt-get?
<Rinzlit> Nope
<pontiki> but you are
<Rinzlit> I never follow instructions properly
<pontiki> ah, good to know
fgo_ has joined #ruby
Xzanron has quit [Ping timeout: 240 seconds]
<Rinzlit> Yeah, I'm not good at being patient and not trying everything
JoshL has joined #ruby
<pontiki> it helps me to weed out the people whom i can properly help
<Rinzlit> Fair enough, I usually figure things out eventually xD
<Rinzlit> Although adaedra and esantiago helped a lot
despai has quit [Quit: This computer has gone to sleep]
Iskarlar has joined #ruby
<adaedra> ok
<Rinzlit> Thank you both ^^
<adaedra> it's better when you understand what you do though
allomov has quit [Remote host closed the connection]
<Rinzlit> I'll do that once I have slept and care more about keeping the server working xD
<Rinzlit> I just need it for a display for like 30 mins xD
rubycoder02 has joined #ruby
<Rinzlit> and then I got to the part for why I had bitnami >.< ah ha ha
<esantiago> hahaha good
<esantiago> go sleep
rubycoder02 has quit [Client Quit]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo_ has quit [Ping timeout: 264 seconds]
wpp has quit [Ping timeout: 264 seconds]
eggoez has joined #ruby
<Rinzlit> esantiago, I can't sleep till I get the server up then white label it for the company xD
yqt has quit [Ping timeout: 252 seconds]
marr has joined #ruby
<Rinzlit> I got 5 hours left
freerobby has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
ruby-lang934 has joined #ruby
despai has joined #ruby
<howdoi_> pry.debugger vs binding.pry ?
bruno- has joined #ruby
<ruby-lang934> hii
<ruby-lang934> any rubby programmer there?
sankaber has joined #ruby
<ruby-lang934> any rubby programmer there?
<pontiki> i don't know where you are, can't tell
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby-lang934> xD
senayar has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
senayar has joined #ruby
<pontiki> howdoi_: binding.pry afaik; i've never seen the other
ruby128 has joined #ruby
<ruby128> hi
<ruby-lang934> hi
<howdoi_> pontiki: hmm
<adaedra> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
duggiefresh has joined #ruby
Igorshp has quit [Remote host closed the connection]
loc22 has joined #ruby
jbw_ has joined #ruby
<ruby-lang934> Hi, I started programming with ruby a few weeks ago, now I manage the basics but i dont know how to expand my knowledge about ruby, i cant find any course or something, could you give me some advise to carry on learning ruby?
<pontiki> howdoi_: "Runtime Invocation" on http://pryrepl.org/
<pontiki> ruby-lang934: if you've searched the net and NOT found any information on learning ruby, what are you finding???
<jhass> ruby-lang934: did the koans already?
<ruby-lang934> i found a basic tutorial
jbw__ has quit [Ping timeout: 244 seconds]
<ruby-lang934> which explained the basics obviously
<jhass> ?koans ruby-lang934
<ruboto> ruby-lang934, I don't know anything about koans
RegulationD has joined #ruby
<jhass> meh
decoponio has joined #ruby
<ruby-lang934> what's koans?
<adaedra> it should highlight the person that triggered the fact, not the target, on unknown fact
<jhass> !fact mk koans A test driven walk through Ruby, http://rubykoans.com/
<ruboto> jhass, I will remember that koans is A test driven walk through Ruby, http://rubykoans.com/
<[k-_> ?book
<ruboto> I don't know anything about book
<[k-_> ?books
<ruboto> I don't know anything about books
<[k-_> :(
<jhass> adaedra: yeah, it's fixed but not deployed iirc
<adaedra> THANKS APEIROS
aganov has quit [Remote host closed the connection]
<jhass> [k-_: neither deployed afaik
werelivinginthef has joined #ruby
senayar has quit [Remote host closed the connection]
<pontiki> i've got 33k hits on "ruby tutorials" in google
<pontiki> (quoted)
senayar has joined #ruby
jbw__ has joined #ruby
<ruby-lang934> yeah but most of them speaks about basics
<pontiki> and you've read all the books, manuals and documentation?
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tagrudev has quit [Remote host closed the connection]
dangerousdave has joined #ruby
auzty has quit [Quit: Leaving]
jbw_ has quit [Ping timeout: 244 seconds]
<ruby-lang934> nope
<pontiki> then?
<ruby-lang934> I'll try to find something to carry on
<jhass> try the koans
<ruby-lang934> okay
<howdoi_> pontiki: yup
<ruby-lang934> Are you ruby programmers or ror?
<ruby-lang934> maybe both
<howdoi_> both
<jhass> quite a few both but Rails talk goes to #RubyOnRails
<pontiki> both here
<howdoi_> I do, node.js as well ;)
<ruby-lang934> nice
<ruby-lang934> I come from java and its a bit strange to see ruby syntax
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby-lang934> lot easier
bigkevmcd has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
<ruboto> Rinzlit, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/713b92db18e7e8eeca05
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Muhannad has joined #ruby
<jhass> ruby-lang934: another good way to improve is to solve some problem you actually have and then get the script reviewed here
<ruby-lang934> yeah nice too
<ruby-lang934> Koans is a manual?
ItSANgo has joined #ruby
fdjrt has joined #ruby
<jhass> did you even look at the site :/
codecop has quit [Remote host closed the connection]
<fdjrt> which one
usershell has joined #ruby
<ruby-lang934> i've just entered
<fdjrt> re-entered it
<jhass> ?!
<jhass> ?logs
<ruboto> You can find a log of this channel at http://irclog.whitequark.org/ruby/
bigbadbear has joined #ruby
<jhass> Rinzlit: why still root m(
<Rinzlit> jhass all that is important is I get this done quickly >.<
<Rinzlit> And when I'm not in root it gives me more trouble
schaerli has joined #ruby
<jhass> no, it's more important that not working as root is not trouble for you
christiandsg has joined #ruby
<jhass> read some basics about file permissions, users and groups
Igorshp has joined #ruby
<workmad3> jhass: but didn't you hear... only speed matters! not security, safety, correctness or anything else... just speed!
<Rinzlit> jhass I'll do that once I get this done I got like 4 hours left >.<
<esantiago> Rinzlit, in Gemfile's project must be something like ruby: '2.1.0', change it to '2.2.1'
Iskarlar has joined #ruby
Kully3xf_ has joined #ruby
<Rinzlit> okay search for gemfile right now
christiandsg has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
Kully3xf has quit [Ping timeout: 255 seconds]
tesuji has quit [Read error: Connection reset by peer]
symbol has joined #ruby
griffindy has joined #ruby
sshuff|gone is now known as sshuff
<Rinzlit> More problems >.<
<jhass> yep, number one: you still work as root
<Rinzlit> lol jhass I love you xD
CaryInVictoria has joined #ruby
<Rinzlit> And I'd love for you to teach me stuff like this tomorrow if possible xD
jbw_ has joined #ruby
<Rinzlit> Maybe you could let some little things slide for now?
flughafen has quit [Ping timeout: 244 seconds]
<Rinzlit> Or is that actually a real problem?
<adaedra> no
<jhass> not really, no
<adaedra> yes
willywos has joined #ruby
<Rinzlit> Okay I'll login into none root
<Rinzlit> So now I need to refile everything under the home directory?
fdjrt has quit [Ping timeout: 246 seconds]
casadei_ has quit [Ping timeout: 240 seconds]
<jhass> probably
<ruby-lang934> Is it posible to make GUI's with ruby?
<Rinzlit> Okay, I'll get right on that
<jhass> ruby-lang934: yes
<crowell> ruby-lang934: yes, there are bindings for several toolkits
<Rinzlit> Will I need to reinstall things?
<jhass> possibly
freerobby has quit [Quit: Leaving.]
<ruby-lang934> i don't get the gems at all
jbw__ has quit [Ping timeout: 246 seconds]
<jhass> ruby-lang934: gems are just libraries for Ruby
<jhass> Rails is packaged as a bunch of gems for example
freerobby has joined #ruby
<ruby-lang934> okei
<ruby-lang934> so ruby on rails is no more than a bunch of gems?
<ruby-lang934> isn't it?
<ruby-lang934> ah
<ruby-lang934> yeah
<adaedra> yes
troulouliou_div2 has quit [Remote host closed the connection]
mengu has joined #ruby
<adaedra> actually, it's a gem itself (rails), which depends on many other
Xzanron has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<ruby-lang934> I have just downloaded koans
<ruby-lang934> i'll do all the exercises during this week
fabrice31 has joined #ruby
<jhass> cool
<adaedra> you'll be a ruby pro
ironsay has quit [Ping timeout: 240 seconds]
<ruby-lang934> xD SUREe
<[k-_> unlike me who did not read koans :(
<ruby-lang934> what could i do after koans?
quimrstorres has quit [Remote host closed the connection]
<[k-_> very powerful stuff
DoubleMalt has quit [Remote host closed the connection]
<pontiki> write code
slawrence00 has joined #ruby
<ruby-lang934> thats nice
<ruby-lang934> does koans also teach GUI's ?
despai has quit [Quit: This computer has gone to sleep]
<pontiki> sign up with project euler and exercism.io
<TheBrayn> I don't think that project euler is particulary great for gaining ruby experience
<pontiki> not especially
<pontiki> but it's coding
<workmad3> codewars seems reasonable from what I've seen
<ta> I'm using CSV.read with throws `"\xE6" on US-ASCII` - offending text seems to be `...,o0xHAi,...` - which is just an id... how can I get CSV.read to just treat as text ?
<ta> which even
<jhass> codewars has more things to churn through, exercism.io focuses better on the reviews
andikr has quit [Remote host closed the connection]
anjen has joined #ruby
<workmad3> ta: 'just treat as text' <-- what encoding?
<ta> workmad3: `file -i` says us-ascii
<jhass> ta: sounds like you need to patch up you system locale to actually match your files
<workmad3> ta: sounds like `file` has it wrong
<ta> iconv ... -t utf-8 says `iconv: illegal input sequence`
<jhass> what does enca report?
<ta> enca is a tool?
dimasg has quit [Ping timeout: 260 seconds]
<jhass> yeah
<ta> Hmm.. not available on the box (can't easily install new software)
Spami has joined #ruby
<jhass> why not? is http://www.toastball.net/toast/ an option?
despai has joined #ruby
<Rinzlit> Why am I trying to do things as not root...
<Rinzlit> I can't install stuff or use what I need...
<jhass> ?root Rinzlit
<ruboto> Rinzlit, General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<jhass> Rinzlit: you know sudo?
Vile` has quit [Ping timeout: 252 seconds]
<apeiros> shouldn't that be "advice"?
<jhass> probably, fix it
<Rinzlit> I wish my root password wasn't impossibly long...
CaryInVictoria has quit [Ping timeout: 252 seconds]
<workmad3> Rinzlit: root gives you no safety net... doing stuff as root when you don't actually know what you're doing or why == tightrope walking over a pit of spikes whilst drunk and blindfolded
<Rinzlit> workmad3 but im fine with that this is a tossaway server
<jhass> long password is good, gives you chance to think about what you're doing as root there again
<Rinzlit> I'll format it once I get what I want going
hahuang65 has quit [Ping timeout: 244 seconds]
<Rinzlit> and reinstall it correctly on the other one
Vile` has joined #ruby
<jhass> why not learn to do it correctly in the first place?
<jhass> reduces number of iterations
ndrei has joined #ruby
<adaedra> yeah
<adaedra> could me you get to bed earlier
<adaedra> mean*
<ruby-lang934> jhass
<Rinzlit> ....I don't know how to use the sudo command... -facepalm-
tjohnson has joined #ruby
hashrocket has joined #ruby
<jhass> man sudo
fabrice31_ has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
<Rinzlit> It wants my password
<jhass> yes
<Rinzlit> just to tell me I can't use it
<ruby-lang934> have you programmed anything interesting recently i would be glad to see your projects
<Rinzlit> It asks for user password not admin password
<ruby-lang934> it seems like you're such a programmer
<jhass> yes
<adaedra> man sudo
ruurd has quit [Quit: ZZZzzz…]
<jhass> ruby-lang934: guess my github nick
<adaedra> that's like sysadmin 101
<pontiki> this is just depressing me
allomov has joined #ruby
pontiki has left #ruby [""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson"]
<ruby-lang934> what is it ?
<Rinzlit> pontiki, I'm about to just give up and call it a day tbh...
<ruby-lang934> jhass
krz has quit [Quit: WeeChat 1.2]
<jhass> ruby-lang934: github? oO
despai has quit [Ping timeout: 246 seconds]
<ruby-lang934> no i mean your user name
despai has joined #ruby
<ruby-lang934> i think ive just found you xD
tkuchiki has joined #ruby
<jhass> yeah, you didn't even try to guess if you ask that
krz has joined #ruby
fullofcaffeine has joined #ruby
jerius has quit [Quit: /part]
hahuang65 has joined #ruby
<ruby-lang934> in which languages do you programm
<adaedra> damn, those people who use the same nick everywhere
<jhass> ruby-lang934: the ones you find on my github
<ruby-lang934> do you work on programming?
<jhass> still finishing up studies :/
symbol is now known as lobmys
jerius has joined #ruby
<ruby-lang934> nice
Averna has quit [Quit: Leaving.]
havenwood has joined #ruby
ruby-lang934 has quit [Quit: Page closed]
schaerli has quit [Remote host closed the connection]
MissionCritical has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
riotjones has joined #ruby
pengin has joined #ruby
mengu has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
<Rinzlit> Well...
<Rinzlit> I am going to look for a different one
bohallor has joined #ruby
scripore has joined #ruby
sp1rs has quit [Ping timeout: 240 seconds]
Tritone has quit [Remote host closed the connection]
ruby128 has quit [Ping timeout: 246 seconds]
ItSANgo has quit [Quit: Leaving...]
sarkyniin has quit [Ping timeout: 244 seconds]
flughafen has joined #ruby
montyboy_ has joined #ruby
rikkipitt has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
<shevy> never give up!
hornairs has joined #ruby
<Rinzlit> Nah, I really need to get this website done in the next 4 hours
<Rinzlit> I can't spend anymore time "trying" to get that one working
<[k-_> all this for a script :/
<Rinzlit> I need some sort of script like that one .-.
kb3ien has joined #ruby
<kb3ien> Why does searchquery = searchquery.gsub('%28','(').gsub('%3A',':').gsub('%29',')').gsub('%23',',')
fabrice31 has joined #ruby
<kb3ien> only change the FIRST instance of '%28' to "(" not all ?
<Rinzlit> Any chance I could pay someone to set it up for me .-.
psy_ has joined #ruby
<Rinzlit> Turns out I already tried every other script...
Violentr has quit [Ping timeout: 265 seconds]
schaerli has quit [Remote host closed the connection]
despai has joined #ruby
<sevenseacat> o.O
<sevenseacat> ooh, script kiddies having fun?
pengin has quit [Remote host closed the connection]
despai has quit [Client Quit]
<kb3ien> I thought gsub was intended to swap all occurances.
DoubleMalt has joined #ruby
<sevenseacat> kb3ien: code, input and expected output?
sharpmachine has joined #ruby
chouhoulis has joined #ruby
mary5030 has joined #ruby
bumbar_ has joined #ruby
<bumbar_> what do ? and = at the end of methods means?
schaerli has joined #ruby
<yorickpeterse> ? is a predicate method, they often return booleans
<yorickpeterse> = is used for setter methods
<sevenseacat> they're part of the method name.
<bumbar_> kind of like overloading?
<sevenseacat> no.
<kb3ien> hahaha never mind the guy before more didn't seem to know his ascii very well, or i totally missed the point of his code.
despai has joined #ruby
<yorickpeterse> bumbar_: "?" can just be part of the name if it comes at the end
<yorickpeterse> "=" comes with some syntax sugar
<esantiago> Rinzlit, oh no, when you did your ruby configuration you were root
<yorickpeterse> that is, foo.bar = 10 is basically foo.bar=(10)
<Rinzlit> Yeah I did
jY has left #ruby ["Linkinus - http://linkinus.com"]
<Rinzlit> esantiago, I only got a few hours left ah ha ha....
<esantiago> no man,
jerius has quit [Ping timeout: 252 seconds]
<Rinzlit> I'll probably see if I can find an alternetive to this ruby script
<esantiago> you can't do this as root
<adaedra> ffs
al2o3-cr has quit [Ping timeout: 260 seconds]
<Rinzlit> uhh?
<adaedra> don't work as root
soahccc_ is now known as soahccc
<Rinzlit> okay .-.
<Rinzlit> ill reinstall
<Rinzlit> and do it without root
<adaedra> this will open door for more problems that it will solve
<adaedra> no need to reinstall everything
<sevenseacat> what even is the problem here?
imperator has joined #ruby
bashusr has left #ruby ["Ex-Chat"]
<bumbar_> so i have an object and would like to get methods that have disable in their names. i've tried: (u.methods - Object.methods).index{|s| s.include?("disable")} but doesn't work
tvw has quit [Remote host closed the connection]
<sevenseacat> why index? why not select?
<sevenseacat> index will not do what you want
jerius has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Rinzlit> esantiago, let me figure out how to setup accounts...
aryaching has joined #ruby
<bumbar_> sevenseacat, first time i'm using ruby, was just look at 1st SO answer :P
<sevenseacat> well that was your first mistake
nateberkopec has joined #ruby
imperator has left #ruby ["Leaving"]
Iskarlar has joined #ruby
scpike has joined #ruby
fabrice31 has quit [Remote host closed the connection]
f3ttX] has joined #ruby
<ljarvis> >> GC.methods(false).grep /disable/
<ruboto> ljarvis # => [:disable] (https://eval.in/403395)
<havenwood> bumbar_: Take a look at #grep: http://ruby-doc.org/core/Enumerable.html#method-i-grep
<ljarvis> ;P
<bumbar_> judging from documentation, i can just replace index with select, but then the variable in block doesn't have include? method
schaerli has quit [Remote host closed the connection]
rikkipitt has quit [Quit: Leaving...]
<ljarvis> bumbar_: enum.grep(/foo/) will give the same result as enum.select {|e| e =~ /foo/ }
fabrice31 has joined #ruby
Igorshp has quit [Remote host closed the connection]
<Rinzlit> Okay, so I gave my self sudo permissions
<Rinzlit> Still can't seem to use the sudo command.
CaryInVictoria has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
<bumbar_> i think you need to logout and back in for it to take effect
<adaedra> depends on the method you gave yourself rights
<Rinzlit> 2 different putty clients
<Rinzlit> Okay .-.
Silox| has quit [Quit: Connection closed for inactivity]
<bumbar_> havenwood, ljarvis, thanks
yardenbar has quit [Quit: Leaving]
<olas> how would you create a function like the [0..5] you can do with an array?
<shevy> def foo; [0..5]; end
Channel6 has joined #ruby
<ljarvis> olas: def [](x); end
<ljarvis> x will be the range 0..5
<jhass> Rinzlit: make sure to logout and login again in all sessions
giuseppesolinas has joined #ruby
acke has quit [Remote host closed the connection]
<olas> ljarvis: ah, but what if i already have something defined for that
Xiti has quit [Quit: Xiti]
<Rinzlit> yeah... I got that working now...
<olas> would i just check if a range object was passed in?
fabrice31 has quit [Client Quit]
<Rinzlit> just now things can't be found
<jhass> olas: yeah
<olas> mmk
mhf has quit [Ping timeout: 244 seconds]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> Rinzlit: if you want any actual tips provide actual error messages
<Rinzlit> -sh: 35: cd: can't cd to /home/ari
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<ljarvis> olas: exactly, usually case is your friend here
Xiti has joined #ruby
<jhass> that's hardly the full output of... what even?
<Rinzlit> Thats all I got when I type in cd
<jhass> then you didn't create the homedir for the user
<jhass> (or rather didn't the user creation command do it)
<jhass> + let
<olas> ljarvis: usually case?
mhf has joined #ruby
<ljarvis> olas: case arg.. when Range .. etc
<jhass> Rinzlit: sudo cp -a /etc/skel /home/ari; sudo chown -R ari:ari /home/ari
mhib has quit [Quit: Leaving]
solars has quit [Ping timeout: 260 seconds]
j4cknewt has joined #ruby
<Rinzlit> I created it already
<Rinzlit> but wow
tmtwd has quit [Ping timeout: 272 seconds]
dgutierrez1287 has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 244 seconds]
<Rinzlit> I use one of jhass's commands
chipotle has joined #ruby
<Rinzlit> Suddenly everything works
<Rinzlit> I don't fking even
msgodf has quit [Ping timeout: 240 seconds]
desigx has joined #ruby
Xzanron has quit [Read error: Connection reset by peer]
<adaedra> Rinzlit: once this is done, you'll get some sleep, then read a guide on basic linux administration, right?
<Rinzlit> Yeah, well once this is done I've got to go set it up the way these guys want it
<Rinzlit> Then I'm passing out
<olas> ljarvis: my god as i wrote it out i realized that the code for the range and normal indexing into my data structure looked exactly the same haha
chipotle has quit [Client Quit]
<olas> i just wasn't think of the a..b range as a range object
<Rinzlit> Where is there even a guide on basic linux administration?
<adaedra> Google can find you that.
araujo has quit [Quit: Leaving]
jessu has joined #ruby
<Rinzlit> $ source ~/.bash_profile
<Rinzlit> -sh: 51: source: not found
<adaedra> -sh
<Rinzlit> Whats that mean?
<adaedra> it means you're not using bash
<Rinzlit> How do I use bash?
rubie has joined #ruby
quimrstorres has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
werelivinginthef has joined #ruby
<ljarvis> olas: :)
livathinos has quit []
dgutierrez1287 has quit [Ping timeout: 264 seconds]
hobodave has joined #ruby
<havenwood> Rinzlit: Check your current shell: echo $SHELL
thang has quit [Ping timeout: 255 seconds]
coffeejunk has quit [Ping timeout: 255 seconds]
Igorshp has joined #ruby
<jhass> Rinzlit: chsh /bin/bash
desigx has quit [Ping timeout: 250 seconds]
<Rinzlit> I had typed in bash and it started working
<Rinzlit> Is that bad?
<jhass> ah no, chsh -s /bin/bash
thang has joined #ruby
<jhass> no
<jhass> just tedious to do everytime you login
<jhass> chsh changes your login shell
<Rinzlit> oh okay
<Rinzlit> 1 sec closing my window
<havenwood> Rinzlit: Type `bash` to use bash. See: man bash
tkuchiki has quit [Remote host closed the connection]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
<havenwood> Rinzlit: The #bash channel is a good place for bash. ;)
shevy has quit [Ping timeout: 252 seconds]
coffeejunk has joined #ruby
Kero has quit [Ping timeout: 272 seconds]
shevy has joined #ruby
safeforge has joined #ruby
Kero has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
dfockler has joined #ruby
peppermint has joined #ruby
MissionCritical has joined #ruby
christiandsg has joined #ruby
ruurd has joined #ruby
duoi has quit [Remote host closed the connection]
warreng has quit [Ping timeout: 255 seconds]
ruurd has quit [Client Quit]
warreng has joined #ruby
quimrsto_ has joined #ruby
quimrstorres has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
tkuchiki has joined #ruby
emilkarl has quit [Quit: emilkarl]
dfockler has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
christiandsg has quit [Ping timeout: 265 seconds]
The_Phoenix has joined #ruby
thiagovsk has joined #ruby
ItSANgo has joined #ruby
rcvalle has joined #ruby
<Rinzlit> ari@KM301:~/testapp$ rake db:create
<Rinzlit> bash: rake: command not found
<Aria> Install rake!
<jhass> Rinzlit: bundle install --deployment; bundle exec rake db:create
chipotle has joined #ruby
simplyianm has joined #ruby
clocKwize has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
despai has quit [Quit: This computer has gone to sleep]
pyoor has joined #ruby
fullofcaffeine has joined #ruby
ruby-lang096 has joined #ruby
<ruby-lang096> hello world
bascht has quit [Ping timeout: 256 seconds]
DroidBurgundy has joined #ruby
<adaedra> too bad I'm on mars
Cache_Money has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<ruby-lang096> hey adeadra hows it going
<adaedra> fine
rehat has joined #ruby
_ixti_ has quit [Ping timeout: 255 seconds]
<ruby-lang096> i was on yesterday morning and i met you
ruurd has joined #ruby
<adaedra> this was long ago
<ruby-lang096> I was the guy asking about how to strip a hash
<jhass> ruby-lang096: why don't you /nick into something recognizable if that's important for you?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Ping timeout: 244 seconds]
<Rinzlit> I feel like I'm almost there for the 4th time...
<ruby-lang096> I'm going to do that now. i wasn't sure that i would ever see the same people again
<ruby-lang096> so i never did it.
<ruby-lang096> but now i am
<pyoor> Hi all - I'm fairly new with ruby. Can anyone tell me why this variable assigment doesn't work - http://pastebin.com/RZLGS9AP
<ruboto> pyoor, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/fa7581f9ca2256df9e21
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jhass> Rinzlit: did you try my suggestion yet?
Arnold_ has joined #ruby
<Arnold_> I was ruby <096> a few minutes ago
<Rinzlit> yes I got a deployment error
snockerton has joined #ruby
<Arnold_> now I'm back
msgodf has joined #ruby
<jhass> Arnold_: you could've just typed /nick Arnold_ in the old client
<adaedra> next time, just use /nick
<adaedra> ninja'd
<jhass> Rinzlit: do I have to guess it? fine. Does it contain an e?
<Arnold_> lol thanks guys i remember that for the future
<Mon_Ouie> !hangman error
<Arnold_> will*
<Rinzlit> You got me jhass
<Rinzlit> There is an E
<jhass> Rinzlit: sudo apt-get install ruby-dev
<jhass> then rerun
<Arnold_> i have a question: is there anyway to preserve a hash structure if you are iterating through an array of hashes
<jhass> Arnold_: that's not quite clear, some code might help to explain your problem
Iskarlar has joined #ruby
charliesome has joined #ruby
<Arnold_> PAGE_STRUCTURE[0][:deal].map do |k, v| "#{k}" => "#{v}" end
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<prefixed> yo. is it possible to use RSYNC in ruby?
gorums has joined #ruby
<jhass> prefixed: sure, at the end of the day you an always just shell out
baroquebobcat has joined #ruby
ruby-lang096 has quit [Ping timeout: 246 seconds]
<adaedra> can*
<prefixed> **stan
<jhass> Arnold_: that seems to be a bit pointless, but you can do .map {|k, v| [k, v] }.to_h
<Rinzlit> I'm suprised I've gotten this far doing everything wrong for so long
<Rinzlit> ah ha ha
<havenwood> pyoor: The `@body_data` instance variable isn't the same thing as the `body_data` local variable.
<havenwood> pyoor: Note the @
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Arnold_> at jhass Im going to do a nested iteration but i need the results to not be a string that looks like a hash
dubkoidragon has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<jhass> ?code Arnold_
<ruboto> Arnold_, We can't help you without your code, please post it to https://gist.github.com
<jhass> that's not illustrating your problem
kb3ien has quit [Ping timeout: 246 seconds]
<jhass> that information you gave earlier and I already provided the best guess I could make from it
stan has quit [Ping timeout: 246 seconds]
k3asd` has joined #ruby
Silex has quit [Ping timeout: 246 seconds]
snapcase has quit [Ping timeout: 246 seconds]
Scient has quit [Ping timeout: 264 seconds]
snapcase has joined #ruby
superrorc has quit [Ping timeout: 256 seconds]
htmldrum has quit [Ping timeout: 272 seconds]
dfoolz has quit [Ping timeout: 265 seconds]
DylanJ has quit [Ping timeout: 264 seconds]
<Arnold_> hey jhass I updated the gist
stamina has joined #ruby
<pyoor> havenwood: thanks I just realized that. I didn't know I had to use @ when referencing it too
<jhass> Arnold_: btw if you name your file something.rb your gist will get syntax highlighting
dimasg has joined #ruby
<jhass> Arnold_: could you add an example of the output you want?
bascht has joined #ruby
<Arnold_> I'm going to add it now
senayar has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 256 seconds]
peppermint has quit [Ping timeout: 255 seconds]
acke has joined #ruby
senayar_ has joined #ruby
superrorc has joined #ruby
senayar_ has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
khando has joined #ruby
_ixti_ has joined #ruby
Trynemjoel has joined #ruby
senayar has joined #ruby
seansith has quit [Ping timeout: 255 seconds]
davedev24 has quit [Remote host closed the connection]
DylanJ has joined #ruby
peppermint has joined #ruby
<Rinzlit> well thats an interesting one...
<jhass> Rinzlit: follow this https://www.brightbox.com/docs/ruby/ubuntu/ to get Ruby 2.2 or 2.1, also follow the ruby-switch part to make that version the default ruby
Scient has joined #ruby
<Rinzlit> Somehow I got an older version of ruby
dfoolz has joined #ruby
cndiv has joined #ruby
<jhass> then rerun gem install bundler and the command
aryaching has quit [Read error: Connection reset by peer]
seansith has joined #ruby
eminencehc has joined #ruby
<Arnold_> I update it with the output
<Rinzlit> jhas I had version 2.2.1 like 20 mins ago
jhack has joined #ruby
Ilyas has joined #ruby
senayar has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 244 seconds]
jpfuentes2 has joined #ruby
Silex has joined #ruby
<cndiv> Hey #ruby, quick question. I'm about to learn, and I'm about to read "The Well-Grounded Rubyist" by David Black. My edition covers 1.9.1, and was published in 2009. This is a very serious thing for me, do I need to replace the book with the new one?
senayar has joined #ruby
<jhass> Arnold_: that's not possible, a hash can only have one value for a particular key
ruurd has quit [Quit: ZZZzzz…]
<jhass> cndiv: 2009 is getting a bit too old, yeah
ruurd has joined #ruby
Channel6 has quit [Quit: Leaving]
<jhass> the basics are the same but there are some new things you want to pick up
<cndiv> jhass: I don't want to "un" or "re-" learn something in the end.
<jhass> it is mostly new things, but still
<cndiv> jhass: Right now learning is about to become the most important thing I'm doing. Can't have that. Do you know that book? Or anyone?
<jhass> I don't
<cndiv> I tried using codeacademy and learned it's style was the biggest problem.
snockerton has quit [Quit: Leaving.]
<Arnold_> thats not exactly my problem. the problem is that I want the value to be: ["key": "value" ] and not ["key: value"]
tmtwd has joined #ruby
<Rinzlit> E: Sub-process /usr/bin/dpkg returned an error code (1)
<Arnold_> when i call to_h on ["key:value"] it sends me an error called no to_h for string
kawaii-imouto has quit [Quit: fix config]
<Ox0dea> Rinzlit: Damn, dude. I hope you've got coffee.
<Ox0dea> Or whatever stimulant takes your fancy.
<jhass> Arnold_: let me rewrite what you just wrote in canonical syntax: [{:"key" => "value"}], are you sure about that?
<Rinzlit> Ox0dea I don't do anything like that
<jhass> also sure this isn't just a huge XY problem?
<Rinzlit> I simply live off protien drinks, and water
<Rinzlit> Lots of water.
<Ox0dea> Yes, you've said as much.
<Arnold_> <jhass> thats what i would like
<cndiv> Does anyone have a strong opinion on book, then? Ruby the hard way is the other option.
aryaching has joined #ruby
<Rinzlit> Yeah, I don't drink or eat anything else xD
kawaii-imouto has joined #ruby
<jhass> Arnold_: I'm asking because it's a very odd datastructure
PaulCape_ has joined #ruby
<Ox0dea> cndiv: The Well-Grounded Rubyist.
mdcox has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
<cndiv> Ox0dea: That's what I'm considering. I like it but I have the old version. You recommend that one, did you use it? Do this professionally now?
<Arnold_> i see what you mean. this is more like what I need [{"key" => "value"}]
ddarkpassenger has joined #ruby
<jhass> cndiv: well, LRTHW's style is worse than codeacademy's ;D
<Rinzlit> I'll pay someone to get rubby running on my server properly...
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cndiv> jhass: Sorry, who's LRTHW?
<jhass> learn ruby the hard way
cpruitt has joined #ruby
<Ox0dea> cndiv: I did read TWGR when I was learning Ruby, and I do write code for a living, but not Ruby. :/
marcoamo1 has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
<cndiv> Ox0dea: OK, that means a lot. Thank you.
<Ox0dea> Rinzlit: Isn't that the "black magic" approach which you so adamantly scorned not long ago?
<Ox0dea> cndiv: It's a very good book.
<cndiv> jhass: Great, that's wonderful to hear. For years that's what I've struggled with.
<Rinzlit> I said that whats my friend calls it
<Arnold_> I'm currently reading eloquent ruby
shevy has joined #ruby
<Rinzlit> And since I have multiple servers
PaulCapestany has quit [Ping timeout: 255 seconds]
<Rinzlit> I only need one to work
<cndiv> Arnold_: Is that your first book?
<Arnold_> is it worth it to also read twgr
<Ox0dea> Rinzlit: "Just make it work" is really the first ingredient of black magic.
<havenwood> over 9000 today...?
bronson has joined #ruby
<Rinzlit> Ah ha ha, yeah but I'm having no luck with ruby for some reason
<Arnold_> i read AWD 4 and Beginning ruby and learning to program
<Rinzlit> I don't know why ruby hates me so much xD
<Rinzlit> Probably b/c I treat it like shyt
<adaedra> Because you don't know the basics
<Ox0dea> havenwood: >9000 PRIVMSGs?
Kully3xf_ has quit [Ping timeout: 264 seconds]
<havenwood> Ox0dea: JRuby \o/
RegulationD has quit [Remote host closed the connection]
<Ox0dea> Derp.
<Rinzlit> Yeah...
<jhass> Rinzlit: you could try not sharing only the part of the error message that said "something went wrong" but the part which says what did
<adaedra> 9_6
dopie has joined #ruby
<Ox0dea> Is the release code-named Vegeta?
<Rinzlit> Wait cpanel comes with ruby preinstalled right?
<jhass> cpanel comes with cruelty and a big fat "I have no clue about any of this" sign preinstalled
<havenwood> JRuby 9.0!!!
anisha has quit [Quit: Leaving]
fgo_ has joined #ruby
<Ox0dea> jhass: Do you update daily?
<cndiv> It means a lot, thank you all.
davedev24 has joined #ruby
<havenwood> ruby-install jruby 9.0.0.0 --sha256 7dd05e327ba3b39a4b8efb02b03f2ca7f5cec5ec
<jhass> Ox0dea: no
<jhass> about weekly
sinkensabe has joined #ruby
<Ox0dea> All right; you've missed this craziness with the sudo package, then.
<havenwood> oops, thats not the right shasum is it?
CaryInVictoria has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<havenwood> SHA1 != SHA256
<jhass> Ox0dea: curios, tell me in -offtopic ;D
<havenwood> Trying again...: ruby-install jruby 9.0.0.0 --sha256 655665db3a1dc0462cba99d45532ab57d8416b5f168d8a0081bde9b7a93a394e
<Ox0dea> jhass: I've brought it up in #archlinux.
<havenwood> Success!
joonty has quit [Quit: joonty]
chouhoulis has joined #ruby
<jhass> Rinzlit: that mysql dialog seems to be broken over putty...
dfockler has joined #ruby
<jhass> Ox0dea: ah, got that on highlight notification only
Obfuscate has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby
<headius> havenwood: thank you for confirming!
CaryInVictoria has joined #ruby
marcoamo1 has joined #ruby
<Rinzlit> jhass whats that mean...?
<jhass> Rinzlit: if you do sudo dpkg-reconfigure mysql-server-5.5 it should ask you to enter a password for the mysql root user
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 250 seconds]
fgo_ has quit [Ping timeout: 250 seconds]
cndiv has quit [Quit: Quit]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arturmartins has joined #ruby
towski_ has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
<Rinzlit> ari@KM301:~$ sudo dpkg-reconfigure mysql-server-5.5
<Rinzlit> [sudo] password for ari:
DEA7TH has quit [Quit: DEA7TH]
hahuang65 has joined #ruby
<jhass> well, after the sudo prompt
<Rinzlit> ./usr/sbin/dpkg-reconfigure: mysql-server-5.5 is broken or not fully installed
jhack has quit [Ping timeout: 244 seconds]
<Ox0dea> Rinzlit: Did you mean to type *******?
<jhass> eh
* jhass loads up pacman rosetta
<Rinzlit> -___________-
* shevy plays pacman with jhass!
al2o3-cr has joined #ruby
<Rinzlit> Yeah....
polpak has joined #ruby
<jhass> sudo apt-get --fix-broken ?
timonv has quit [Ping timeout: 256 seconds]
vmonteco has joined #ruby
<vmonteco> Hello!
mleung has joined #ruby
<jhass> hi
<adaedra> coucou
pyoor has left #ruby [#ruby]
<Rinzlit> jhass is that even a real command..?
scripore has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 255 seconds]
benlovell has quit [Ping timeout: 260 seconds]
<jhass> according to the pacman rosetta it is
<Rinzlit> okay...
sarkyniin has joined #ruby
<Rinzlit> Well its okay I would've given up on me hours ago too
<Rinzlit> I'm going to go see if cpanel will work
dented42 has joined #ruby
<Rinzlit> Thank you for trying though .-.
troulouliou_div2 has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
<shevy> the taint of failure
Trynemjoel has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
senayar has quit []
Ilyas has joined #ruby
snockerton has quit [Quit: Leaving.]
Trynemjoel has joined #ruby
benlovell has joined #ruby
michaeldeol has joined #ruby
<Rinzlit> AAaaanndd
<Rinzlit> Ruby isn't on cpanel
vmonteco has quit [Quit: leaving]
<Ox0dea> Rinzlit: What year is it?
<Rinzlit> 2015
<Rinzlit> ikr
dimasg has joined #ruby
c_nick has joined #ruby
<sevenseacat> people are still using cpanel?
<sevenseacat> why???????
<c_nick> how to enable the inline debugger in Rubymine 6.3? I couldnt find it in Settings
<jhass> sevenseacat: what better way is there to shout "I have no idea what I'm doing"?
<sevenseacat> fair point.
<ElSif> these are all great questions :D you could also try asking in a channel specifically for your distro Rinzlit
<sevenseacat> though the last couple of hours of chat logs seem to verify that also.
<Ox0dea> ElSif: Rinzlit has easy access to every distro.
<Ox0dea> Because servers.
<ElSif> lol true
<ElSif> so maybe ask in all of them?
<sevenseacat> wat
<sevenseacat> what exactly is the problem?
<Rinzlit> I've tried 2 of them so far...
<sevenseacat> I've asked that several times and gotten no response
<Rinzlit> Next up debain?
<ElSif> #of distros >> 2
<Ox0dea> Rinzlit: Does your client support wildcard /join?
<jhass> sevenseacat: better leave it
<ElSif> sure, debian guys are cool
<Rinzlit> ElSif I have 6 distro's that can be instantly flashed
<jhass> Rinzlit: next up fix your broken mysql-server-5.5 package so apt would let you install Ruby
<Rinzlit> But I won't use gentoo thank you
bronson has quit [Remote host closed the connection]
<ElSif> D:
<adaedra> Ox0dea: /join * ?
<ElSif> what???
<ElSif> why not?
<Ox0dea> adaedra: Go for it. :)
yardenbar has joined #ruby
<sevenseacat> jhass: k. glhf.
<jhass> sevenseacat: no worries, already got them to let go of doing everything as root
<sevenseacat> good start
prettiestPony11 has joined #ruby
<ElSif> i bet if you used gentoo the error message would be much more illuminating as it would be a direct compiler error :D
<Rinzlit> jhass its the same error when I try to reinstall....
<jhass> Rinzlit: yeah, you'll need to figure out how to get that dialog bullshit running over putty
petersaints has joined #ruby
lessless has joined #ruby
<ElSif> oh god D: what did i walk into?
dimasg has quit [Ping timeout: 240 seconds]
<Rinzlit> well...
snockerton has joined #ruby
<Rinzlit> I got this...
<Rinzlit> -_______-
segfalt has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<ElSif> dpkg is debian so yea, try debian channel :D
paulcsmith has joined #ruby
anjen has quit [Quit: anjen]
jhack has joined #ruby
jhack has quit [Changing host]
jhack has joined #ruby
DEA7TH has joined #ruby
bronson has joined #ruby
<jhass> apparently nobody else had a problem for the dialog stuff to be usable over putty ...
HanaNix has joined #ruby
<ElSif> sounds like an environment issue?
<Senjai> Morning ruby
<jhass> Rinzlit: is your putty configured to read UTF-8?
<ElSif> >> p 'good morning senjai'
<ruboto> ElSif # => "good morning senjai" ...check link for more (https://eval.in/403452)
<Rinzlit> yes it is
<sevenseacat> google is your friend. that error can come for about a million different reasons apparently
Trynemjoel has quit [Ping timeout: 256 seconds]
<ElSif> i bet, most of those exit error codes can
<ElSif> just means 'hey i no worky!'
<havenwood> Ruby 2.2 in JRuby, wheeeee!
<havenwood> Happy day!
<diegoviola> nice
Trynemjoel has joined #ruby
<adaedra> neat
<Rinzlit> I'm formatting it jhass and reinstalling bitnami mysql, and other programs
<Rinzlit> Then I will grab the ruby they I was using before
<adaedra> why are you even dealing with bitnami
<sevenseacat> who knows.
<Rinzlit> Because it nicely puts together the other stuff I need .-.
<jhass> because cpanel doesn't have ruby
<sevenseacat> lol
<Rinzlit> That too
<Rinzlit> I checked all my cpanel servers
<ElSif> for some definition of nicely
<Rinzlit> none of them have it
<sevenseacat> Rinzlit: may i suggest finding a sysadmin who knows stuff about servers
<adaedra> .-.
<sevenseacat> and then getting them to set up your servers
scripore has joined #ruby
<adaedra> sevenseacat: don't, please don't
<Rinzlit> sevenseacat only one I know is sleeping
<sevenseacat> this has been going on since I joined the channel three hours ago, and it was already well underway by then.
diegoviola has quit [Quit: WeeChat 1.2]
loc22_ has joined #ruby
<sevenseacat> like seriously, setting up a server isnt rocket science.
k3asd` has quit [Ping timeout: 265 seconds]
sharpmachine has left #ruby [#ruby]
<ElSif> what if the server is in a rocket?
<Rinzlit> Appearently setting up ruby is .-.
loc22 has quit [Read error: Connection reset by peer]
<sevenseacat> no, its not.
<sevenseacat> ?ubuntu
<ruboto> Ubuntu installation guide for Ruby + Rails: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
<sevenseacat> you can skip the rails parts.
<adaedra> it takes litterally minutes
<adaedra> of course, it's longer if you reinstall a different OS at each error
<ElSif> and that is literally mostly downloading it
lordkryss has joined #ruby
<Ox0dea> That's easy for you literates to say!
<Rinzlit> oh gosh...
loc22_ has quit [Client Quit]
<sevenseacat> it is, thats why we wrote instructiona.
<sevenseacat> instructions.
HanaNix has quit [Quit: Textual IRC Client: www.textualapp.com]
<ElSif> ?gentoo
<ruboto> I don't know anything about gentoo
<ElSif> LOL
<adaedra> LEL
aaeron has joined #ruby
<ElSif> ?archlinux
<ruboto> I don't know anything about archlinux
<ElSif> ?arch
<ruboto> I don't know anything about arch
<ElSif> ok ill stop spamming
j4cknewt has quit [Remote host closed the connection]
<Ox0dea> ?anything
<ruboto> I don't know anything about anything
diegoviola has joined #ruby
ndrei has joined #ruby
Igorshp has quit [Remote host closed the connection]
<ElSif> ?everything
<ruboto> I don't know anything about everything
_blizzy_ has joined #ruby
<ElSif> ruboto is so cute ^__^
melter has quit [Quit: Client exiting]
<adaedra> ?ruboto
<ruboto> I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
eminencehc has joined #ruby
Kully3xf has joined #ruby
bohallor has quit [Ping timeout: 244 seconds]
<Rinzlit> well...
diegoviola has quit [Client Quit]
<jhass> Arnold_: oh sorry, didn't see your reply earlier. But that doesn't change anything about its oddness really :/
startupality has quit [Quit: startupality]
sinkensabe has quit [Remote host closed the connection]
ArchRogem has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
acke has quit [Remote host closed the connection]
Liothen has quit [Changing host]
Liothen has joined #ruby
<ElSif> Rinzlit: you said you tried reinstalling, what steps did you take to remove the package first?
bungoman has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 264 seconds]
<Rinzlit> ElSif I ran aot-get remove
_blizzy_ has quit [Read error: Connection reset by peer]
<ElSif> k, if the package is borked in a way that apt-get cant understand then that will likely not be enough
towski_ has quit [Remote host closed the connection]
benlieb has joined #ruby
Alayde has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
diegoviola has joined #ruby
j4cknewt has joined #ruby
Zai00 has joined #ruby
bricker has joined #ruby
helpa has joined #ruby
_blizzy_ has joined #ruby
Muhannad has quit [Ping timeout: 246 seconds]
helpa has quit [Remote host closed the connection]
esantiago has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
<Rinzlit> wow
<Rinzlit> I followed the solution
<Rinzlit> went to reinstall
Igorshp has quit [Remote host closed the connection]
<Rinzlit> still same error -____-
Igorshp has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
<Rinzlit> I think somethings conflicting with it
<ElSif> sure, not terribly surprising
<ElSif> this is a fresh install right?
<ElSif> no previous mysql?
<Rinzlit> Well ubuntu 14.0.4
<Rinzlit> For server
<Rinzlit> Since I'm very tired...
<Rinzlit> full install
galeido has quit [Remote host closed the connection]
<Rinzlit> I semi mindlessly followed the guides
casadei_ has joined #ruby
n008f4g_ has joined #ruby
usershell has quit [Read error: Connection reset by peer]
Lucky_ has joined #ruby
<ElSif> do you have a /var/log/mysql/error.log?
drowe has joined #ruby
usershell has joined #ruby
Zai00 has quit [Client Quit]
<arup_r> i am getting strings which could be either "11" or "11.11" ... how to check if string is Integer or Float .. `Integer("100.22") rescue $!; $! ? "integer" : "float" .. but always getting false.`
<arup_r> what is the proper way to handling this ?
werelivinginthef has quit [Remote host closed the connection]
<arup_r> to validate this? *****
<ElSif> ok, can you post the output of `ps aux | grep mysql`
<Rinzlit> what is that?
<ElSif> just a bash command
<ElSif> to list processes and match for mysql
howdoi_ has quit [Quit: Connection closed for inactivity]
pengin has joined #ruby
benlovell has quit [Ping timeout: 246 seconds]
<ElSif> your error.log is showing 'servier already running'
<jhass> arup_r: .include? "."
blaines has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
Channel6 has joined #ruby
blaines_ has joined #ruby
<ElSif> yea, there are several mysql processes running there
sevenseacat has quit [Quit: Me dun like you no more.]
<ElSif> do you know how to use kill?
<Rinzlit> I usually do services stop
<Rinzlit> .-.
<ElSif> may not work here cause there may not be a matching service running, though you can try
<ElSif> kill is just `kill <the first number in the output of ps aux>`
<Rinzlit> any chance I can give you access to the server and I'll give you how ever much you want to install ruby
<ElSif> lol
<Rinzlit> I've been at this since 2AM
<Rinzlit> Its 9AM now
diegoviola has quit [Quit: WeeChat 1.2]
Nirgali43 is now known as Nirgali42
<dudedudeman> man, you need some rest
<Rinzlit> From my understanding one of you guys can do it in like 5 mins from fresh install
<ElSif> i could but you wouldn't learn anything :(
blaines has quit [Ping timeout: 244 seconds]
einarj has quit [Remote host closed the connection]
<Rinzlit> Dude I need to get this website up for a company
<ElSif> oh
scripore has quit [Quit: This computer has gone to sleep]
<Rinzlit> like I will be here everyday from now on I told [k- I'd be here too
<Rinzlit> Like I do like talking to you guys
<Rinzlit> But I do really need this up
<Rinzlit> And I have less than an hour and a half
<ElSif> you can pm me if you want, but i cannot promise i can maky it work
<ElSif> and you will need to configure it still
diegoviola has joined #ruby
Lord-Kamina has joined #ruby
spider-mario has joined #ruby
girakrok has joined #ruby
Jackneill has joined #ruby
<Lord-Kamina> Hello. Badwrong question: Is there a ruby equivalent of eval?
failshell has quit [Remote host closed the connection]
<ElSif> >> eval("p yes")
<ruboto> ElSif # => undefined local variable or method `yes' for main:Object (NameError) ...check link for more (https://eval.in/403468)
<ElSif> ah
platosha has quit [Quit: This computer has gone to sleep]
<ElSif> oops but yes
<Lord-Kamina> Or, more specifically, I need to iterate through a list of JSON objects, the list of which is defined inside another JSON list.
scripore has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
despai has joined #ruby
|\|370 has joined #ruby
blaines_ has quit [Ping timeout: 256 seconds]
shadoi has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<jhass> ?json_object Lord-Kamina
<ruboto> Lord-Kamina, I don't know anything about json_object
<jhass> meh, what was it
<jhass> ?jsonobject
<ruboto> there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
<jhass> ah
<jhass> Lord-Kamina: ^
|\|370 has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
hemanth has joined #ruby
lannonbr has quit [Ping timeout: 260 seconds]
phoo1234567 has joined #ruby
blaines has joined #ruby
<jhass> Lord-Kamina: the valid usecases for eval in Ruby are pretty much just templating languages, so there's most certainly a better solution
RegulationD has joined #ruby
khando has quit [Quit: Lost terminal]
hobodave has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby
dmolina has quit [Quit: Leaving.]
howdoicomputer has joined #ruby
bronson has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
yqt has joined #ruby
wallerdev has quit [Client Quit]
RegulationD has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
<Ox0dea> jhass: I was going to use eval to retrofit selective imports. :/
lannonbr has joined #ruby
hanmac has quit [Quit: Leaving.]
<jhass> Ox0dea: none of your stuff counts ;P
phoo1234567 has quit [Max SendQ exceeded]
hanmac has joined #ruby
Trynemjoel has joined #ruby
phoo1234567 has joined #ruby
InternetFriend has joined #ruby
<Ox0dea> You know you want selective imports.
white_bear has quit [Quit: leaving]
dorei has joined #ruby
wallerdev has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> It seems like it would've been much easier for Crystal to have them; I wonder why they went in the exact opposite direction.
scripore has joined #ruby
scripore has quit [Client Quit]
<jhass> well, crystal has an open class model too
stamina has quit [Remote host closed the connection]
<Lord-Kamina> Sorry, I meant ruby objects gotten from serialized json strings.
araujo has joined #ruby
prettiestPony11 has quit [Ping timeout: 240 seconds]
bodgix has quit [Quit: Leaving.]
simplyianm has joined #ruby
pengin has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 244 seconds]
aphprentice has joined #ruby
<Ox0dea> jhass: Can has better lighting for the interactive Crystal crystal?
<Ox0dea> Only two faces are ever illuminated, and usually quite harshly.
Trynemjoel has quit [Ping timeout: 256 seconds]
<jhass> Ox0dea: it's open source, send a PR to the gh-pages branch
<jhass> Lord-Kamina: so you're asking how to foo.each do |bar| bar.each do |baz| ?
aaeron has quit [Quit: Leaving.]
<Lord-Kamina> eval (object)["pointer"] works.
darkf has quit [Quit: Leaving]
<jhass> Lord-Kamina: nope
<jhass> don't do this
<Lord-Kamina> Why?
<jhass> just forget it even is possible. right now
<jhass> it's wrong, it's just soo wrong
<Lord-Kamina> I know it is.
<Lord-Kamina> Hence why I opened saying "Badwrong question:"
Trynemjoel has joined #ruby
<Lord-Kamina> But it's a one-time script
<Ox0dea> Famous last words.
<jhass> what does works even mean? what does it do?
<jhass> or do you mean eval(object)["pointer"]?
Anthony__ has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
NeverDie has joined #ruby
<Lord-Kamina> It correctly references the contents of the object I want it to.
<Lord-Kamina> Here's what's going on, I have a ridiculous xcode project (which I swear is not my fault)
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >> n = 50000; t = []; s = Time.now; n.times { 1 + 1 }; t << Time.now - s; s = Time.now; n.times { eval "1 + 1" }; t + [Time.now - s]
<ruboto> Ox0dea # => [0.00831109, 0.69152753] (https://eval.in/403493)
<Ox0dea> Lord-Kamina: ^ eval is slow as fuck.
_blizzy_ has quit [Ping timeout: 255 seconds]
<Lord-Kamina> And I needed to have so many targets that xcode literally decided to "Nope." on me.
Hien has quit [Quit: leaving]
dubkoidragon has quit [Ping timeout: 246 seconds]
Hien has joined #ruby
Anthony__ is now known as _blizzy_
<Lord-Kamina> I realized I could probably dump them all in just one giant target instead. But it's such a ridiculous amount of cherry-picked source files in a ridiculous nested folder structure...
<eam> Ox0dea: well, compare apples to apples - parsing json is kinda slow too
<Lord-Kamina> That I got all the files into these JSON strings by using regex on a build log.
<Ox0dea> eam: Is it?
<eam> compared to adding two fixnums? yeah
dsaint-pierre has joined #ruby
<Lord-Kamina> The whole point of this is to add all these files to my target and never look back on the horrible thing I'm doing.
<Ox0dea> Lord-Kamina: Is it that you don't know how to traverse a tree?
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<eam> cost of one eval() on top of one json parse isn't gonna be ruinous
<Lord-Kamina> Ox0dea, it's roughly 2900 files.
<Ox0dea> I fail to see how that's relevant.
<Lord-Kamina> 2900 files which are not all the files inside those folders.
<jhass> Lord-Kamina: yeah, not following how we end up at eval for any of this
<Lord-Kamina> Meaning I'd have to cherry pick 2900 files.
<c_nick> Anyone using RubyMine 6.3 for development ? How to enable inline debugging in it?
hahuang65 has quit [Ping timeout: 255 seconds]
nveselinov has joined #ruby
<Lord-Kamina> Originally I was going to try adding all targets separately so I've got a bunch of objects for each one.
<nickjj> c_nick, i am pretty sure only 7.x has inline variables if that's what you mean
pengin has joined #ruby
<Lord-Kamina> That's how I ended up at iterating through a list of objects which then need to be read for the list of files.
<jhass> Lord-Kamina: "object" is still not a ruby datastructure
hanmac has quit [Quit: Leaving.]
hanmac has joined #ruby
drowe has quit [Quit: PEACE OUT DAWGZ]
<Lord-Kamina> Hmm... hash?
maletor has joined #ruby
<jhass> possibly, I don't see your screen
yb_drowe has joined #ruby
<jhass> to access a hash'es value by key do foo["key"]
ThaiWood has quit [Quit: leaving]
<jhass> not eval needed
ht__ has joined #ruby
Igorshp has quit [Remote host closed the connection]
yb_drowe has quit [Client Quit]
ThaiWood has joined #ruby
yb_drowe has joined #ruby
Blaguvest has joined #ruby
howdoicomputer has quit [Quit: WeeChat 1.2]
Silox| has joined #ruby
<c_nick> nickjj: Yes 7.x has inline debugging but i have seen it in the RubyMine version prior to 6.3.3
andikr has joined #ruby
bronson has joined #ruby
krandi has joined #ruby
werelivinginthef has joined #ruby
dented42 has joined #ruby
bungoman has joined #ruby
mhib has joined #ruby
jamesaxl has joined #ruby
hobodave has joined #ruby
fluffet has joined #ruby
gambl0re has joined #ruby
krandi has quit [Remote host closed the connection]
mike___1234 has quit [Ping timeout: 244 seconds]
zz_Outlastsheep is now known as Outlastsheep
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eggoez has quit [Ping timeout: 244 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
nahtnam has joined #ruby
mjuszczak has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
mike___1234 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<c_nick> Just for inline debugging i need to upgrade my rubymine what crap
eggoez has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Lord-Kamina> jhass, yeah, but the name of the hash changes is gotten from another hash, which is why I am using eval.
mike___1234 has quit [Max SendQ exceeded]
<jhass> Lord-Kamina: that makes no sense at all
Yiota has joined #ruby
yardenbar has quit [Ping timeout: 265 seconds]
<jhass> >> some_hash = {"foo" => "bar"}; other_hash = {"baz" => "foo"}; some_hash[other_hash["baz"]]
<ruboto> jhass # => "bar" (https://eval.in/403496)
bohallor has joined #ruby
acke has joined #ruby
failshell has joined #ruby
<Ox0dea> Lord-Kamina: Please take some time to understand the above.
peppermint has quit [Ping timeout: 240 seconds]
harleypig has joined #ruby
christiandsg has joined #ruby
kraljev11 has joined #ruby
maletor|home has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roger_rabbit has joined #ruby
rubie has quit [Remote host closed the connection]
synthroid has joined #ruby
arturmartins has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
pipework has quit [Ping timeout: 264 seconds]
c_nick has left #ruby [#ruby]
InternetFriend has joined #ruby
usershel_ has joined #ruby
synthroid has left #ruby [#ruby]
usershell has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
michaeldeol has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
casadei_ has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
christiandsg has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
centrx has joined #ruby
synthroid has joined #ruby
blackmesa has joined #ruby
juanpaucar has joined #ruby
iateadonut has quit [Quit: Leaving.]
pipework has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheHodge has quit [Quit: Connection closed for inactivity]
maletor has quit [Quit: Computer has gone to sleep.]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
a346 has quit [Remote host closed the connection]
a346 has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
jackjackdripper has joined #ruby
acl_ has quit [Ping timeout: 246 seconds]
Casty has joined #ruby
peter_paule has joined #ruby
michaeldeol has joined #ruby
mleung has joined #ruby
mjuszczak has joined #ruby
mleung has quit [Client Quit]
GnuYawk has quit [Remote host closed the connection]
bumbar_ has quit [Ping timeout: 250 seconds]
yb_drowe has quit [Quit: Zzzzzzz....]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
benlovell has joined #ruby
Pyrotecnix has quit [Ping timeout: 252 seconds]
yb_drowe has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
aaeron has joined #ruby
bungoman has joined #ruby
Kully3xf has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
penzur has quit [Quit: quit]
dgutierrez1287 has joined #ruby
benlovell has quit [Ping timeout: 256 seconds]
bmurt has quit [Read error: Connection reset by peer]
casadei_ has joined #ruby
shadoi has joined #ruby
bruno- has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
loc22_ has joined #ruby
blaines has joined #ruby
blaines has quit [Client Quit]
gambl0re has joined #ruby
dmolina has joined #ruby
<eam> >> x = Object; x.instance_eval {def succ; Class; end}; (x..Class).to_a
<ruboto> eam # => [] (https://eval.in/403510)
<eam> why does that not return [Object, Class] ?
rdark has quit [Ping timeout: 244 seconds]
dgutierrez1287 has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
rdark has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
dmolina has quit [Client Quit]
roolo has joined #ruby
werelivinginthef has joined #ruby
choke has joined #ruby
ModusPwnens has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
ruurd has joined #ruby
lobmys has quit [Quit: WeeChat 1.1]
<ModusPwnens> I have a class that extends another class. I want this subclass to call a method in the parent class that returns an instance of that parent class and then I want to construct an instance of the child class from that. How can I do that from a class method on the child class?
bossheisenberg has joined #ruby
<ModusPwnens> For some reason, I'm having a very difficult time thinking about this, but maybe that's because I'm coming from javaland
synthroid has left #ruby [#ruby]
_ixti_ has quit [Ping timeout: 255 seconds]
<centrx> What is this for?
Pyrotecnix has joined #ruby
<centrx> What are you really trying to do?
<ModusPwnens> I just want to create an instance of my child class with all the fields that the parent class has already initialized properly
_ixti_ has joined #ruby
Synthead has quit [Remote host closed the connection]
<ModusPwnens> I'm mimicking the ActiveRecord interface for these classes, so in my child class' self.find method I am calling the parent class' self.find method, but I want to create/return an instance of the child class from that
rubie has joined #ruby
kies^ has joined #ruby
SCHAAP137 has joined #ruby
<ljarvis> ModusPwnens: superclass: https://eval.in/403511 -- but yeah I would agree this is generally an odd thing to do. You might want to provide some more context/code
yb_drowe has quit [Quit: Zzzzzzz....]
bossheisenberg has left #ruby [#ruby]
baroquebobcat has quit [Quit: baroquebobcat]
jpfuentes2 has joined #ruby
baroquebobcat has joined #ruby
graft has joined #ruby
dmolina has joined #ruby
uber has quit [Ping timeout: 265 seconds]
<ModusPwnens> basically, I want to be able to create a 'Dog' instance from the result of a call to Animal.find(id).
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhack> question, so I want to build a cmd line blackjack game, would it be smart if I i designed it like: array for cards outside, Player class (will get name), and Blackjack class (where the functions of the game/options belong in)?
<graft> hey, anyone good with String#unpack? I have a many-byte character string i'd like to turn into a ruby array-of-arrays
baweaver has quit [Remote host closed the connection]
<eam> >> x = Class; x.instance_eval {def succ; Object; end}; (x..Object).to_a
<ruboto> eam # => [Class, Object] (https://eval.in/403514)
mjuszczak has quit []
<eam> it's because Range firsts compares endpoints before iterating
aaeron has quit [Quit: Leaving.]
diegoviola has quit [Quit: WeeChat 1.2]
Trynemjoel has quit [Ping timeout: 240 seconds]
mleung has joined #ruby
Synthead has joined #ruby
d10n-work has joined #ruby
<mdcox> So something fun...I
<mdcox> woops, hit enter too early...too close to shift
davedev24 has quit [Ping timeout: 244 seconds]
<wasamasa> I hate ansi keyboards for that reason
Trynemjoel has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
<mdcox> I'm getting a "Something went wrong" err page in production, but it's not logging any error in the logs. Any ideas on where to look next or figure out why it's not logging errors but all the INFOs?
aaeron has joined #ruby
choke has joined #ruby
<mdcox> Oh woops, this is #ruby not #rails. I'm failing at IRC today.
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
sharpmachine has joined #ruby
mleung has quit [Quit: mleung]
shadoi has quit [Read error: Connection reset by peer]
<ljarvis> ModusPwnens: ok, my code should allow you to do that, but basically they're static methods so you could just use the class directly (i.e Foo.find(...))
uber has joined #ruby
<ModusPwnens> ljarvis: Oh. But how do I create an instance of the child class from the call to SuperClass.find(...)?
dsaint-pierre has quit [Remote host closed the connection]
<ModusPwnens> ljarvis: or does that not even really make sense to do in a class method
<ljarvis> ModusPwnens: new(SuperClass.find(...)) ?
<ljarvis> ModusPwnens: new is just a class method
Trynemjoel has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
<ModusPwnens> Can you call .new with an instance of a parent class as an argument?
<ljarvis> you can call new with whatever you want..
simplyianm has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
shadoi has joined #ruby
Trynemjoel has joined #ruby
sdrew has joined #ruby
lannonbr has joined #ruby
bmurt has joined #ruby
aaeron has quit [Quit: Leaving.]
sgambino has joined #ruby
msgodf has quit [Remote host closed the connection]
mjuszczak has quit []
DEA7TH_ has joined #ruby
kb3ien has joined #ruby
allomov has quit [Remote host closed the connection]
<kb3ien> "if query_has_qstr? " errors with "no implicit conversion of String into Integer" its defined thusly [http://pastebin.ca/3071528], should that not be boolean (enough) to run `if` with ?
mleung has joined #ruby
<ljarvis> kb3ien: one of those things in an array and you're treating them like a hash
<ljarvis> I don't know which, because there's 13 million levels of nesting
<ljarvis> but I would argue that [:results]["SearchRequestGet"] seems odd
mikeric has joined #ruby
safeforge has quit []
jerius has quit [Ping timeout: 260 seconds]
<kb3ien> Lifted it from a related function. I'll look at that first....
<ljarvis> also, that pastie is almost as bad as pastebin.com
aaeron has joined #ruby
Alex-_ has joined #ruby
AlxAltea has joined #ruby
<kb3ien> Que
<kb3ien> riesWithAction is an array....
<ljarvis> who'd have thunk
quimrsto_ has quit [Remote host closed the connection]
ggerman has quit [Ping timeout: 240 seconds]
<kb3ien> and it about 12million :p
<kb3ien> http://pastebin.ca/3071537 updated with the inspect of session[:results] ...
<ljarvis> kb3ien: im sorry but please use gist.github.com
<ljarvis> I care about my eyes
AlexAltea has quit [Ping timeout: 246 seconds]
a346 has quit [Ping timeout: 256 seconds]
sdwrage has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
mleung has quit [Quit: mleung]
deepu has joined #ruby
girakrok has quit [Read error: Connection reset by peer]
ruurd has quit [Quit: ZZZzzz…]
choke has quit [Ping timeout: 265 seconds]
loc22_ has quit [Quit: Lingo: www.lingoirc.com]
bungoman has quit [Remote host closed the connection]
<hanmac> kb3ien: QueriesWithAction is an Array, so ['Query'] does not work on it
simplyianm has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 250 seconds]
christiandsg has joined #ruby
<Ox0dea> How long has this (https://github.com/ruby/ruby/blob/trunk/load.c#L807-L809) been a lie?
<Ox0dea> >> require 'socket.dll'
<ruboto> Ox0dea # => cannot load such file -- socket.dll (LoadError) ...check link for more (https://eval.in/403532)
puppeh_ has joined #ruby
simplyianm has joined #ruby
aaeron has quit [Quit: Leaving.]
j4cknewt has quit [Remote host closed the connection]
bruno- has joined #ruby
Trynemjoel has joined #ruby
<deepu> can you please tell me how I can get this info? https://dpaste.de/ofCH
Outlastsheep is now known as zz_Outlastsheep
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
christiandsg has quit [Ping timeout: 265 seconds]
Jackneill has quit [Read error: Connection reset by peer]
Violentr has joined #ruby
mleung has joined #ruby
ironsay has joined #ruby
usershell has joined #ruby
<havenwood> deepu: What do you get for?: node["rows"].values
Corndawg has joined #ruby
<Corndawg> anyone here good at networking?
last_staff has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
<jhass> deepu: node["rows"].map {|row| row.values.first["ipaddress"] }
Jackneill has joined #ruby
<ljarvis> I have been called the networking mesiah once before
<deepu> havenwood: I want to get Ip address
Jackneill has quit [Read error: Connection reset by peer]
<ljarvis> i can't even spell it properly
<jhass> Corndawg: welcome to the Ruby programming language channel
<ljarvis> snicker
<Corndawg> i thought snicker was a candy bar and snigger was the correct way to spell it
usershel_ has quit [Ping timeout: 260 seconds]
<Ox0dea> Snickering and sniggering are similar things.
bruno- has joined #ruby
<Corndawg> i'm russian and i find english hard
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Corndawg> our school taught us snigger
<Ox0dea> Das waycist.
<Corndawg> it's a half suppressed laugh
aaeron has joined #ruby
<Corndawg> like HA!
maletor|home has quit []
last_staff has quit [Client Quit]
<eam> what's the difference between a snicker and a snigger?
<shevy> I think this may be jhass old enemy
n1lo has joined #ruby
<havenwood> deepu: See what jhass wrote above. Had trouble reading your code at a glance because it isn't mono-spaced! Use gist.github.com. ;)
mhib has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 256 seconds]
cornerma1 has joined #ruby
<ljarvis> both work
tsvenson_ has quit [Quit: Ex-Chat]
codecop has joined #ruby
tsvenson has joined #ruby
user1138_ has joined #ruby
<ljarvis> http://www.wordreference.com/definition/snigger snick•er /ˈsnɪkɚ/also snigger /ˈsnɪgɚ/snigger
<ljarvis> a snickering laugh.
* ljarvis closes the internet.
<eam> so they're synonyms
<ljarvis> correct
<ljarvis> one is also a delicious chocolate bar
<Corndawg> why didn't they name it snigger?
<Corndawg> sniggers*
<havenwood> ?offtopic Corndawg
<ruboto> Corndawg, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<Corndawg> okay sorry
<Corndawg> let's be on topic guys
<jhass> ?guys Corndawg
<ruboto> Corndawg, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<ljarvis> :D
<Corndawg> omg
Trynemjoel has joined #ruby
<ljarvis> ?omg
<ruboto> I don't know anything about omg
<Corndawg> -_-
<ljarvis> damn
<havenwood> ?ruboto Corndawg
<ruboto> Corndawg, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
user1138_ has quit [Excess Flood]
<ljarvis> ?cookie ruboto
<ruboto> ruboto, here's your cookie:
cornerman has quit [Ping timeout: 244 seconds]
<Corndawg> ban me pls ruboto
cornerma1 is now known as cornerman
<ljarvis> .. you shouldn't say that
bungoman has joined #ruby
<Corndawg> wow that's neat ljarvis
user1138 has quit [Ping timeout: 246 seconds]
simplyianm has quit [Read error: Connection reset by peer]
desigx has joined #ruby
<ljarvis> anyway, back to Ruby
user1138_ has joined #ruby
simplyianm has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
desigx has quit [Ping timeout: 252 seconds]
Alex-_ has quit [Quit: Alex-_]
InternetFriend has joined #ruby
rubie has quit [Remote host closed the connection]
j4cknewt has joined #ruby
DEA7TH_ has quit [Quit: DEA7TH_]
eminencehc has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
sdwrage has quit [Quit: Leaving]
eggoez has quit [Ping timeout: 244 seconds]
kraljev11 has quit [Read error: Connection reset by peer]
Papierkorb_ has joined #ruby
yqt has joined #ruby
ironsay has quit [Remote host closed the connection]
juanpaucar has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
kraljev11 has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
Papierkorb has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 256 seconds]
rubie has joined #ruby
nitenq has joined #ruby
_djbkd has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
eggoez has joined #ruby
bigbadbear has quit [Ping timeout: 250 seconds]
Rinzlit1 has joined #ruby
Trynemjoel has joined #ruby
eindoofus has joined #ruby
<eindoofus> hi, hoping someone here uses Rally. if so, do you happen to know how to multitask in it? is it possible to switch between incompleted tasks?
Rinzlit has quit [Ping timeout: 246 seconds]
Cust0sLim3n has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
bronson has quit [Remote host closed the connection]
ixti has joined #ruby
CustosLimen has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
ruurd has joined #ruby
peter_paule has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
sharpmachine has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
gorums has quit [Ping timeout: 240 seconds]
juanpaucar has joined #ruby
shinnya has joined #ruby
sshuff is now known as sshuff|gone
lordkryss has quit [Quit: Connection closed for inactivity]
sharpmachine has joined #ruby
gambl0re has quit [Ping timeout: 240 seconds]
dfockler has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
grubernaut has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
gambl0re has joined #ruby
yardenbar has quit [Quit: Leaving]
miwood has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
eminencehc has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
sshuff|gone is now known as sshuff
atesec has quit [Ping timeout: 256 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
ruby-lang759 has joined #ruby
<ruby-lang759> hello
isavage has joined #ruby
Rinzlit1 is now known as Rinzlit
<centrx> ?hi
<ruboto> I don't know anything about hi
<centrx> ?hello
<ruboto> I don't know anything about hello
hans_ has joined #ruby
isavage has left #ruby [#ruby]
xkickflip has quit [Quit: xkickflip]
usershell has quit [Remote host closed the connection]
benlovell has joined #ruby
Corndawg has quit [Ping timeout: 246 seconds]
gorums has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ruby-lang759 has quit [Ping timeout: 246 seconds]
JoshL has quit []
DEA7TH_ has joined #ruby
vimz has quit [Quit: leaving]
benlovell has quit [Ping timeout: 256 seconds]
devbug has joined #ruby
freerobby has quit [Quit: Leaving.]
blackmesa has quit [Ping timeout: 260 seconds]
k3asd` has joined #ruby
freerobby has joined #ruby
Encapsulation has quit [Read error: Connection reset by peer]
Arnold_ has quit [Ping timeout: 246 seconds]
atesec has joined #ruby
quimrstorres has joined #ruby
baweaver has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
sharpmachine has joined #ruby
jgpawletko has joined #ruby
hobodave has joined #ruby
mike___1234 has joined #ruby
choke has joined #ruby
michaeldeol has joined #ruby
lkba has joined #ruby
rehat has quit [Remote host closed the connection]
bluOxigen has joined #ruby
treehug88 has joined #ruby
yb_drowe has joined #ruby
<Sypheren> ?help
<ruboto> You can find an overview of my commands at http://ruby-community.com/ruboto/commands
ruurd has quit [Quit: ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
imperator has joined #ruby
<imperator> any ideas on what could cause a broken pipe for a win32ole method call?
dimasg has joined #ruby
kraljev11 has quit [Ping timeout: 264 seconds]
<imperator> it is running within a rails app
<imperator> i can't duplicate it just running it locally, even did a little webrick test where i repeat the calls over and over
platosha has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
mike___1234 has quit [Ping timeout: 244 seconds]
craysiii has joined #ruby
lkba_ has joined #ruby
<treehug88> imperator: (from unix) check the signal you get when the pipe breaks
Mendenhall has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
<Sypheren> what are some starter projects to do in ruby ( not rails )?
ndrei has joined #ruby
giuseppesolinas has joined #ruby
<Sypheren> Like how there's 200000 greenhouse projects for arduino because it's easy
simplyianm has joined #ruby
rubie has quit [Remote host closed the connection]
<Mendenhall> implementing algorithms is cool
lkba has quit [Ping timeout: 244 seconds]
<Ox0dea> I don't suppose there exists a nice clean mapping from Ruby patch levels to their relevant commit hashes?
yfeldblum has quit [Ping timeout: 246 seconds]
<Mendenhall> the euclidean algorithm for greatest common divisors is a nice simple one
kraljev11 has joined #ruby
<Sypheren> Implementing algorithms?
<Sypheren> Just.. using them for things?
rubie has joined #ruby
postmodern has joined #ruby
fantazo has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silox| has quit [Quit: Connection closed for inactivity]
<Mendenhall> no i mean like, algorithms as in the abstract thing
<Sypheren> :<
<Mendenhall> there's a single euclidean algorithm and different implementations of that algorithm, like how there's a single linked list and different implementations of linked lists
_djbkd has quit [Remote host closed the connection]
<Sypheren> I see
<Sypheren> :D
<Mendenhall> that projects git thing is fantastic wow
<Ox0dea> Sypheren: ^
<Ox0dea> Go nuts.
<Sypheren> I'm going to, I need to get this down so I can do rails :3
<Mendenhall> programming before google must have been a lot harder
tno has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
<Mendenhall> "calculate pi to the Nth digit" first thought: "I am going to have to google how to calculate pi"
<Ox0dea> Books have been a thing for millennia.
<prefixed> how would I install net-ssh from source? https://github.com/net-ssh/net-ssh I need to use this on a machine that does not have a network connection
<Aria> It was definitely more deliberate and slow-paced.
<Ox0dea> And yet here we are.
<Aria> And definitely more focused on the task at hand; working together at a distance is the biggest change.
baweaver has joined #ruby
Lucky_ has joined #ruby
CaryInVictoria has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
simplyianm has quit [Remote host closed the connection]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky_ has quit [Client Quit]
tjohnson has quit [Quit: Connection closed for inactivity]
<Ox0dea> >> (c=->n,i=1{n==1?i:c[n%2>0?n*3+1:n/2,i+1]})[194]
kraljev11 has quit [Quit: kraljev11]
<ruboto> Ox0dea # => 120 (https://eval.in/403574)
<Ox0dea> Collatz sequence golf.
lkba has joined #ruby
mikeric has quit []
kraljev11 has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
quimrstorres has quit [Remote host closed the connection]
Lucky_ has joined #ruby
<Rinzlit> Hey Ox0dea
<Rinzlit> Almost there xD
<Rinzlit> xD
<Ox0dea> Yay!
<Rinzlit> someone shoot me
<Rinzlit> in the fking face plz
kadoppe has quit [Ping timeout: 256 seconds]
<Rinzlit> I finally got ruby working but the gems are having problems with the site
<Rinzlit> ha ha ha ha
aaeron has quit [Quit: Leaving.]
peter_paule has joined #ruby
quimrstorres has joined #ruby
lkba_ has quit [Ping timeout: 244 seconds]
<Rinzlit> Ox0dea
<Rinzlit> Can you help me please D:?
kadoppe has joined #ruby
<Rinzlit> = yield :application_js
<Rinzlit> - else
<Rinzlit> = javascript_include_tag :application
Kully3xf has joined #ruby
nitenq has quit [Quit: nitenq]
a346 has joined #ruby
<Ox0dea> That doesn't look right.
<Rinzlit> yeah I know .-.
<Ox0dea> Rinzlit: Malformed Haml?
bahar has quit [Changing host]
bahar has joined #ruby
<Rinzlit> can I link you to it .-.
dimasg has quit [Ping timeout: 250 seconds]
<Rinzlit> because its giving me this weird error page
<Rinzlit> I don't want people stalking it tho so may I PM you?
<Ox0dea> I'd rather not commit to the abyss, if you don't mind. :/
imperator has left #ruby ["Leaving"]
<Rinzlit> Ermm fair enough, screenshot?
<shevy> show us your sexy pics!
<Ox0dea> ^
<Rinzlit> I'm fat n ugly
<Rinzlit> nuh
<Rinzlit> >.<
<shevy> don't show your sexy pics!
<Rinzlit> Better
Channel6 has quit [Remote host closed the connection]
aaeron has joined #ruby
<shevy> actually I meant the code. we did not have images of code in a long while... people love these usually :)
InternetFriend has joined #ruby
puppeh_ has quit [Quit: Leaving...]
<Ox0dea> They're the best!
<shevy> lol
<Rinzlit> Don't judge my setup
<Rinzlit> or my 100 tabs
<Rinzlit> I need all of them
kraljev11 has quit [Ping timeout: 256 seconds]
pengin has quit [Remote host closed the connection]
<shevy> hehehe
<Rinzlit> wut?
<Rinzlit> Is it the league of legends?
bigbadbear has joined #ruby
chadwtaylor has joined #ruby
_djbkd has joined #ruby
<shevy> are these two monitors?
<Rinzlit> I have 3, but I don't have 3 video ports
<Rinzlit> But when I upgrade my computer I will use all 3
<Rinzlit> Till then it will have to wait .-.
<adaedra> so many tabs.
<Rinzlit> >_<
<Rinzlit> Don't judge my tabs!
Mendenhall has quit [Ping timeout: 264 seconds]
<Rinzlit> I google 1001 things
<Rinzlit> and like I haven't slept
<Rinzlit> and im a mess
<Rinzlit> and I need to stuff
bluOxigen has quit [Ping timeout: 256 seconds]
dmolina has quit [Quit: Leaving.]
battas has joined #ruby
peter_paule has quit [Ping timeout: 264 seconds]
<shevy> you need to stuff
werelivinginthef has quit [Remote host closed the connection]
<Ox0dea> I think you accidentally didn't the stuff.
<shevy> well I suppose it is a rails error
<Rinzlit> >_<
<Rinzlit> Your being bullies
<Ox0dea> *You're
<Rinzlit> Q_Q
<Ox0dea> :"(
mleung has quit [Quit: mleung]
<Rinzlit> ;{
<Ox0dea> Ensure you've got underscore.js in your javascripts directory, then restart the server.
Aswebb_ has joined #ruby
<shevy> havenwood did you make this page https://ruby-operators.herokuapp.com/#/spaceship
<Ox0dea> Or, well, it'll need to be wherever Sprockets has been told to look for it, but that should be assets/javascripts/.
<Ox0dea> shevy: No, that was https://github.com/anildigital.
<Ox0dea> It's missing !~, &&=, and probably a few others.
bigbadbear has quit [Ping timeout: 240 seconds]
<Ox0dea> You should give them clever names and submit a PR.
failshell has quit [Remote host closed the connection]
simplyianm has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mike___1234 has joined #ruby
<shevy> they will reject it
<adaedra> who forgot to bower install
<adaedra> it's Rinzlit
<Rinzlit> Hey
<Ox0dea> shevy: "Could you please send pull request if possible?" -- /u/anildigital
<Ox0dea> No, I think not.
<Rinzlit> adaedra on the brightside
bronson has joined #ruby
andikr has quit [Read error: Connection reset by peer]
yardenbar has quit [Quit: Leaving]
<Rinzlit> someone installed ruby for me at the end of the day
<Rinzlit> still ended up taking a while .-.
<adaedra> I just came back
blackmesa has joined #ruby
<Rinzlit> Ruby isn't very good at not breaking
<shevy> do you look at rails
<shevy> or at ruby
<Ox0dea> Let's blame the tools!
<Rinzlit> The gems
<Rinzlit> The gems are sooo annoying
quimrstorres has quit [Remote host closed the connection]
<adaedra> no they're not
<miah> whats annoying about them?
<Rinzlit> I have it break 3 times on the gems
<Rinzlit> while instealling the bundle
<Rinzlit> I had*
mleung has joined #ruby
Kully3xf has quit [Ping timeout: 244 seconds]
<Rinzlit> I had to install each one that broke by its self
<Rinzlit> Then restart the bundle
<miah> why did they break?
<Antiarc> by "break" I presume you mean "I didn't have the proper system dependencies"?
<adaedra> missing -dev packages, I think.
giuseppesolinas has joined #ruby
nfk has joined #ruby
<shevy> oh so you failed to get the system deps!
<Rinzlit> It was missing -dev packages
<adaedra> Oh no, packages need dependencies
<adaedra> What should I do
<Rinzlit> It was a lot of work >.<
<Ox0dea> > Why does technology hate me?!
battas has quit [Quit: Saindo]
<Rinzlit> Meh
<Rinzlit> >.<
alvaro_o has joined #ruby
<Rinzlit> I need to get this website stuffz
<shevy> Rinzlit well that is the distribution's fault. if you compile from source, you have everything
user1138 has joined #ruby
<Antiarc> Programming often is a lot of work. Ruby can smooth out a lot of things for you but it can't magically do everything. :)
Blaguvest has quit []
<Ox0dea> Antiarc: Are you claiming P != NP?
<adaedra> sssh shevy
<Antiarc> Ox0dea: heterodox as it is!
<adaedra> Rinzlit: with a little bit of experience and common sense, this becomes trivial to solve.
<adaedra> That's the way of becomming a sysadmin.
<Rinzlit> Okay .-.
<Rinzlit> Well I am really tired okay >.<
<shevy> you were tired 4 hours ago already!
dfockler has joined #ruby
<Rinzlit> lol....
<Rinzlit> on the bright side
<Rinzlit> my HP keyboard arrived
<Rinzlit> I got a refurbished old HP keyboard
<Rinzlit> I love them <3
<Ox0dea> You should do something about your (in)ability to focus.
bronson has quit [Ping timeout: 255 seconds]
eminencehc has quit [Ping timeout: 256 seconds]
<Rinzlit> >_<
ascarter has joined #ruby
<adaedra> Sleeping would be a start...
<Ox0dea> ^
rehat has joined #ruby
<Rinzlit> I need to finish this website though
<Rinzlit> Thats more important
pengin has joined #ruby
<adaedra> closing LoL, a second step
<adaedra> Rinzlit: no
<adaedra> there's a limit at getting no sleep
<Rinzlit> I didn't even play League of legends in the last 40 hours
user1138_ has quit [Ping timeout: 246 seconds]
<adaedra> above, you're breaking more stuff than you fix
<bricker> lol
Violentr has quit [Ping timeout: 244 seconds]
<Rinzlit> yeah probably
<Rinzlit> good night
<adaedra> 'night
<Rinzlit> I'ma go cuddle with my teddybears
[H]unt3r has quit []
tomphp has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
msgodf has joined #ruby
jenrzzz has joined #ruby
msgodf has quit [Remote host closed the connection]
<_blizzy_> is there a way to pass by reference in ruby? like I pass an array to a method, and it modifies the array permanently?
Trynemjoel has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
bigbadbear has joined #ruby
acovrig has joined #ruby
ModusPwnens has quit [Quit: Page closed]
hanmac has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
werelivinginthef has joined #ruby
dblessin_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Trynemjoel has joined #ruby
<acovrig> I have a string that seems to have a space at the end, yet .strip doesn’t remove it, how can I tell the utf code for the character that is there?
<adaedra> >> a = [3, 4]; def foo(z); z.push(5); end; foo a; p a
<ruboto> adaedra # => [3, 4, 5] ...check link for more (https://eval.in/403582)
<adaedra> _blizzy_ ^ default is to pass by reference
<_blizzy_> hmm, ok
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_blizzy_> thanks, adaedra
<Ox0dea> acovrig: foo[-1].ord
bigbadbear has quit [Client Quit]
<_blizzy_> also, acovrig, you could just str.gsub(/[^A-z0-9]/,'')
giuseppesolinas has quit [Quit: Leaving]
<Ox0dea> That's hardly the same thing.
<Ox0dea> _blizzy_: Also, [A-z] isn't what you think it is.
<adaedra> ^
<_blizzy_> Ox0dea, oh.
<adaedra> wouldn't \s match all space characters?
<_blizzy_> I thought he was trying to get rid of it
<Ox0dea> _blizzy_: But you don't know the contents of his string.
nahtnam has quit [Quit: Connection closed for inactivity]
benlieb has joined #ruby
<_blizzy_> Ox0dea, true.
kraljev11 has joined #ruby
<adaedra> _blizzy_: get rid of trailing spaces, not everything that is not A-z0-9
pandaant has joined #ruby
<_blizzy_> adaedra, oh ok.
<_blizzy_> wouldn't str.delete(" ") work
jazz_ has joined #ruby
dgutierrez1287 has joined #ruby
<Ox0dea> _blizzy_: Not if it's not actually 0x20.
<adaedra> that would delete all spaces
jazz_ is now known as vimz
<adaedra> not just trailin
<Ox0dea> adaedra: \p{space} catches all the Unicode "space" characters, but not \s.
<_blizzy_> I'm messing up today
<adaedra> trailing*
bronson has joined #ruby
<adaedra> Ox0dea: ok
<adaedra> didn't know about \p
<Ox0dea> It's pretty nifty.
<Ox0dea> \p{Hiragana} is also a thing.
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea> acovrig: The suspense is killing us; what's foo[-1].ord?
<acovrig> Ox0dea: sorry, was AFK, back now; pending
<Ox0dea> Standing by.
blackmesa has quit [Ping timeout: 244 seconds]
<adaedra> Ox0dea: spoiler: It's between 0x0 and 0xFFFFFFFF
paulcsmith has joined #ruby
<acovrig> interesting, I’m running .to_sym on it (it’s the keys of a has) seems to fix it…
<acovrig> adaedra: lol
<adaedra> wat
<Ox0dea> acovrig: Then you had an XY problem.
<adaedra> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<Ox0dea> String#to_sym doesn't modify the string, it just interns it.
sharpmachine has quit [Remote host closed the connection]
<acovrig> Ox0dea: 160
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<Ox0dea> acovrig: Yeah, #strip wouldn't get rid of that one.
xkickflip has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kraljev11 has quit [Quit: kraljev11]
<prefixed> Hey. I need to run a ruby method on an external host (from a local host). I believe I can use net/ssh to do this. However, how do I go about running the command and returning data?
<Ox0dea> acovrig: Are you getting this string from some HTML?
kraljev11 has joined #ruby
<acovrig> Ox0dea: yup
<Ox0dea> acovrig: Makes sense; 160 is &nbsp;.
hornairs has quit [Quit: hornairs]
scripore has joined #ruby
sumark has quit [Remote host closed the connection]
frem has joined #ruby
DEA7TH_ has quit [Quit: DEA7TH_]
<deepu> can someone please tell me how I can achieve this? https://dpaste.de/7cvc haven't used ERB yet
ruby-lang422 has joined #ruby
<vimz> is this possible? https://gist.github.com/anonymous/5be6caa76b487bebfe44 accessing a varible outside the context of yield. I really hope it is! also, untested that code might actually work xD
sumark has joined #ruby
christiandsg has joined #ruby
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
<Mon_Ouie> just yield array if you need the block to be able to access the array
baweaver has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<acovrig> Ox0dea: to sub that, this doesn’t do anything, what is wrong? t.sub(/\u0160/,’’)
A_ron has joined #ruby
<vimz> Mon_Quie yield array? what does that mean? and yes all I need is for the block to access the array. example? thanks
<prefixed> Hey. I need to run a ruby method on an external host (from a local host). I believe I can use net/ssh to do this. However, how do I go about running the command and returning data?
<Mon_Ouie> vimz: yield array means you literally type 'yield array' in your code
kraljev11 has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
DEA7TH_ has joined #ruby
choke has joined #ruby
<deepu> can someone please tell me how I can achieve this? https://dpaste.de/7cvc haven't used ERB yet
<adaedra> acovrig: like Ox0dea said above, you can use \p{space} to catch all spaces. Also, suffix with $ to take trailing space (+$ for trailing space/s/)
christiandsg has quit [Ping timeout: 265 seconds]
crdpink2 has quit [Quit: q term]
<Mon_Ouie> To pass an argument to the block, which can then be accessed as in { |x| … do stuff with x … }
<acovrig> adaedra, Ox0dea: ah, I see, thanks
<vimz> Mon_Ouie cool. oooohh. So if we were to type | yield array, foo, bar, biz | array, foo, bar and biz variables would all be available inside the proc that's executed by yield?
skavez has joined #ruby
kraljev11 has joined #ruby
<Ox0dea> adaedra: It turns out 0xA0 isn't in \p{space}. :/
<adaedra> &ri ERB
<`derpy> I'm sorry, I don't know anything about ERB.
<prefixed> does net/ssh allow for ruby code execution?
<prefixed> probably not, huh?
<adaedra> grmbl
<Ox0dea> acovrig: Do you want to #strip or #sub?
<adaedra> prefixed: no, ruby you can ruby ruby binary
<jhass> wat
<prefixed> adaedra what
<jhass> try again :D
<Mon_Ouie> They would all be passed as arguments. Inside the block, you'd retrieve such arguments by using |…| notation at the beginning of the block.
<Ox0dea> Is it not the case that in Ruby you can Ruby Ruby binary?
<adaedra> wow
<adaedra> I don't know what happend
<adaedra> <<<< rewind
Wolland has joined #ruby
crdpink has joined #ruby
<adaedra> prefixed: no, but you can run ruby binary
<prefixed> ok. so if i wanted to run some code, it'd have to be on the remote host?
<adaedra> deepu: read that: http://www.rubydoc.info/stdlib/erb/ERB
<adaedra> prefixed: what are you trying to do.
skavez has quit [Remote host closed the connection]
skavez has joined #ruby
<snockerton> why does using !!@ or !!! in pry not actually exit the program when I'm in a loop?
skavez has left #ruby [#ruby]
<prefixed> I need to list a bunch of files and directories on a remote server
baroquebobcat has quit [Quit: baroquebobcat]
<adaedra> sftp exists for that
baroquebobcat has joined #ruby
paulcsmith has quit [Ping timeout: 265 seconds]
Agoldfish has joined #ruby
<Mon_Ouie> snockerton: What do you mean? Typing 'loop {' on one line then '!!@' on the next does exit here
<ljarvis> Net::SFTP#dir.entries(...)
kraljev11 has quit [Ping timeout: 244 seconds]
<snockerton> Mon_Ouie: I want to completely kill my ruby execution
<prefixed> I need to get a specific list of directories (recursively) on a remote server. I also need to be able to ignore certain directories. I have a ruby script that does this
<Ox0dea> snockerton: exit!
DroidBurgundy has quit []
<snockerton> and not finish running the rest of the objects in an array for instance
lkba_ has joined #ruby
<snockerton> Ox0dea: why do you know everything
<adaedra> prefixed: using sftp would make you able to browse remote directory like you do in local.
<Ox0dea> snockerton: Do I?
Agoldfish has quit [Client Quit]
<snockerton> well you just used a question mark so apparently not
Agoldfish has joined #ruby
<snockerton> thx
<Ox0dea> Sure thing.
umo has joined #ruby
<adaedra> Ox0dea: next step is becoming ruby god
<bricker> that's deep.
<bricker> How do I know if I know everything?
<Ox0dea> bricker: The question is its own refutation.
Eiam_ has joined #ruby
<adaedra> nicely said
<bricker> Ox0dea: you caught me!
<Eiam_> clever girl
sshuff is now known as sshuff|gone
jgpawletko has quit [Quit: jgpawletko]
<Ox0dea> Eiam_: What is the significance of your nick?
<Eiam_> Ox0dea: its the initials of my wife & kids
<Ox0dea> Hey, mine's initials too!
<prefixed> adaedra so, does that mean i'd be able to use methods like Find.prune and File.directory?()
<Ox0dea> prefixed: Yep.
<adaedra> Eiam_: what can of name begins by _
chipotle has quit [Quit: cheerio]
Papierkorb_ is now known as Papierkorb
<adaedra> sorry but
lkba has quit [Ping timeout: 240 seconds]
<adaedra> prefixed: RTFM
<Eiam_> adaedra: thats because I don't use a bouncer for this nick so that jerk Eiam is here on my other machine ;)
<Ox0dea> Feckin' Eiam.
<prefixed> impressive. very impressive.
<Ox0dea> Eiam_: Hey, you just exposed a bug in WeeChat.
<Eiam> =(
<Eiam> Happy to help
<Ox0dea> The underscore in your nick didn't get highlighted in the nicks column.
ht__ has quit [Quit: Konversation terminated!]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Ox0dea: only for Eiam ?
<prefixed> also sorry. no time. I just started learning ruby this week boss wants a solution two days ago. (don't get me started). thanks for you help though
<Ox0dea> The bug is more likely in colorize_nicks.py, now that I think about it.
<prefixed> *last week
sharpmachine has joined #ruby
<Ox0dea> adaedra: Aye, only for Eiam.
<Ox0dea> Eiam_, rather.
<Eiam_> weird
<Ox0dea> But only if you mention Eiam.
tomphp has joined #ruby
n1lo has quit [Quit: n1lo]
<Ox0dea> It is weird, though, because _ is \w.
<adaedra> prefixed: just have to look at sftp documentation to see what is available. But for a remote directory browsing, you should have what you need. Also, it allows you not to run code on the remote machine.
<prefixed> ok. I am going to play with it now
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
umo has left #ruby [#ruby]
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
bayed has quit [Quit: Connection closed for inactivity]
Zai00 has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
dagda1_ has joined #ruby
charliesome has joined #ruby
apfeluser has quit [Ping timeout: 252 seconds]
Papierkorb_ has joined #ruby
yfeldblum has joined #ruby
duggiefresh has quit [Client Quit]
krz has quit [Quit: WeeChat 1.2]
sshuff|gone is now known as sshuff
eggoez has joined #ruby
jackjackdripper1 has joined #ruby
Papierkorb has quit [Disconnected by services]
Papierkorb_ is now known as Papierkorb
hobodave has quit [Quit: Computer has gone to sleep.]
jackjackdripper1 has quit [Client Quit]
pengin has quit [Remote host closed the connection]
user1138 is now known as bob3243242
jackjackdripper1 has joined #ruby
bob3243242 has quit [Quit: Leaving]
jackjackdripper has quit [Ping timeout: 240 seconds]
<Eiam_> Ox0dea: sorry to cause you trouble =0
user1138 has joined #ruby
<Ox0dea> No worries; visible bugs are better than invisible ones.
stantonnet has quit [Ping timeout: 260 seconds]
<dfockler> ^ no doubt!
<adaedra> Eiam_: push it a bit further, make Ox0dea's client crash now.
dimasg has joined #ruby
noname has quit [Quit: WeeChat 1.0.1]
freeUmo has joined #ruby
eminencehc has joined #ruby
freeUmo has quit [Client Quit]
johnMcLain has joined #ruby
pengin has joined #ruby
<jhass> yeah, join as Eam__ and mention Eam_ and Eam
<jhass> eh, I can't type
<adaedra> ruby ruby ruby
<Eiam_> Ox0dea: لُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ 冗
despai has quit [Quit: Leaving]
<Eiam_> Ox0dea: still with us? ;)
<adaedra> wow
noname has joined #ruby
<adaedra> selection works weird with that
xcesariox has joined #ruby
<Eiam_> just a treasure trove of bugs I am.. I should have never left QA =p
<adaedra> File://
<eam> file://con/con
<Eiam_> no relation to eam. they are smarter than i for sure
CaryInVictoria has joined #ruby
polpak has quit [Quit: Lost terminal]
janno90 is now known as janno
<adaedra> :(){:|:&};:
dimasg has quit [Ping timeout: 255 seconds]
vdamewood has joined #ruby
<dfockler> fork lamb
<dfockler> fork bomb
ldnunes has quit [Quit: Leaving]
<Ox0dea> adaedra: st handled it just fine. :)
<adaedra> ?
<Ox0dea> st, the simple terminal emulator.
<adaedra> what are you replying to?
<adaedra> why do you all people have terminal emulators I never heard of
<Ox0dea> adaedra: You had trouble selecting Arabic?
Sypheren_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<jhass> adaedra: as said, because they all suck
<adaedra> well, selection is not linear, but I think it's ok
<Ox0dea> jhass: Some just suckless.
<adaedra> also, I'm not in a terminal here
<Ox0dea> adaedra: Then your client needs to be flogged.
<adaedra> flogged?
<Ox0dea> Well, punished however software can be.
<Ox0dea> Remove one of its dependencies.
Sypheren has quit [Ping timeout: 240 seconds]
<adaedra> my client is all fine
<adaedra> and arabic selection looks file to me here, from right to left in a left to right sequence
dopie has joined #ruby
<adaedra> just surprising
<Ox0dea> adaedra: It's surely because you started selecting from outside the Arabic.
<adaedra> yep
nfk has quit [Remote host closed the connection]
miwood_ has joined #ruby
<prefixed> so, I just installed "net/ssh" but ruby is telling me that I cannot load net/ssh
A_ron has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> prefixed: Go shopping.
Aswebb_ has quit []
ruurd has joined #ruby
nitenq has joined #ruby
iamjarvo_ has joined #ruby
gamename has quit [Remote host closed the connection]
ruby-lang422 has quit [Ping timeout: 246 seconds]
iamjarvo_ has joined #ruby
gamename has joined #ruby
miwood has quit [Ping timeout: 240 seconds]
simplyianm has quit [Read error: Connection reset by peer]
scripore has joined #ruby
<prefixed> also, Gems::... says it is installed
hobodave has joined #ruby
simplyianm has joined #ruby
<shevy> dfockler hmm... fork lambda would almost be valid syntax
bosma_ has joined #ruby
A_ron has joined #ruby
tvw has joined #ruby
mhf has quit [Ping timeout: 240 seconds]
NeverDie has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
code1o6 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eindoofus has quit [Ping timeout: 240 seconds]
lkba_ has quit [Ping timeout: 240 seconds]
dubkoidragon has joined #ruby
GBrawl has joined #ruby
<Ox0dea> shevy: `fork lambda` isn't a syntax error.
acke has quit [Remote host closed the connection]
<shevy> you use backticks
Eiam_ has quit [Read error: Connection reset by peer]
bosma has quit [Ping timeout: 265 seconds]
dseitz has joined #ruby
<Ox0dea> >> def fork(*) end; lambda = 42; fork lambda
<ruboto> Ox0dea # => nil (https://eval.in/403595)
chadwtaylor has quit [Quit: Leaving...]
<prefixed> what's the best way to determine whether if a gem isn't supported by my version of ruby
Zai00 has quit [Quit: Zai00]
Eiam_ has joined #ruby
blaines has joined #ruby
gamename has quit [Ping timeout: 244 seconds]
<Antiarc> Try to install it and see if it can't find a match
<Mon_Ouie> Probably just to try it considering many gemspecs won't actually tell you what versions of Ruby are supported
<Antiarc> Or read the gemspec
<prefixed> i have 1.9.3. net/ssh says that 2.9.x works with 1.9.x. this shouldn't be a problem
Channel6 has joined #ruby
<prefixed> This means that the gem isn't installed, right? `require': cannot load such file -- net/ssh (LoadError)
<Ox0dea> prefixed: Your paths must not be configured properly.
lkba has joined #ruby
<adaedra> this can mean a lot of things
bronson has quit [Remote host closed the connection]
janno is now known as Janno
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
mhf has joined #ruby
icebourg has joined #ruby
mary5030 has joined #ruby
bosma_ is now known as bosma
bmurt has quit []
duoi has joined #ruby
Janno has quit [Quit: Lost terminal]
paulcsmith has joined #ruby
duoi has quit [Changing host]
duoi has joined #ruby
<adaedra> anyway, time to sleep, see y'all
<prefixed> looks like my path might not be correct
frem is now known as Guest38521
bigbadbear has joined #ruby
phutchins has joined #ruby
blackmesa has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
failshell has joined #ruby
Janno has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
simplyianm has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
simplyianm has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
Eiam_ has quit [Read error: Connection reset by peer]
bb010g has joined #ruby
RobertBirnie has quit [Ping timeout: 246 seconds]
helpa has quit [Remote host closed the connection]
baweaver has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
helpa has joined #ruby
failshell has quit []
jpfuentes2 has joined #ruby
sdrew has joined #ruby
RobertBirnie has joined #ruby
treehug88 has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
bigbadbear has quit [Ping timeout: 252 seconds]
neoseeker191 has joined #ruby
lalalaaa has joined #ruby
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Radar is now known as NotRadar
mweshi has joined #ruby
scripore has joined #ruby
miwood_ has quit [Remote host closed the connection]
NotRadar is now known as Radar
miwood has joined #ruby
<lalalaaa> Hi! How would one split `self.to_s.downcase.gsub(/['`]/, "").parameterize` into two lines? Ie. `self.to_s.downcase.parameterize` + `self.to_s.gsub(/['`]/, "")`?
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
<drbrain> I would probably: parameters = self.to_s.downcase; parameters.gsub(…).parameterize
<lalalaaa> When I do it like that, the first line doesn't seem to matter.
<drbrain> but I'm not sure if "parameters" is the best name
baweaver has quit [Ping timeout: 244 seconds]
dagda1 has joined #ruby
<lalalaaa> drbrain: Ideally I'd like to put the gsub on a separate line so I can explain that I'm trying to eliminate apostrophes
<lalalaaa> ooh
__main__ has quit [Read error: Connection reset by peer]
<lalalaaa> awesome
bungoman has quit [Remote host closed the connection]
<drbrain> three lines is probably better than two then
<lalalaaa> thanks man looks really good:)
<drbrain> by picking a good variable name for the gsub result you won't need a comment saying "this removes apostrophes"
freeUmo has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
<drbrain> also, you can use String#delete instead of gsub, which is a little more intention-revealing
freeUmo has joined #ruby
<miah> >> "foo'bar".tr("'", '')
<ruboto> miah # => "foobar" (https://eval.in/403599)
blackoperat has joined #ruby
<drbrain> >> "foo ``bar''".delete "'`"
<ruboto> drbrain # => "foo bar" (https://eval.in/403601)
<apeiros> IMO delete > tr(…, '')
<miah> agree
<apeiros> (delete has the same character semantics as tr)
<drbrain> I've used #tr to implement a hangman
<shevy> now it is "dirty secrets" time again!
<apeiros> drbrain: you can play hangman over in #ruby-offtopic…
bungoman has joined #ruby
choke has quit [Ping timeout: 240 seconds]
<drbrain> the template had 0, 1, 2, … for each stage of the game arranged appropriately
blackoperat has quit [Client Quit]
benlovell has joined #ruby
<drbrain> then you'd either replace it with the proper, err, body part, or whitespace
fantazo has quit [Ping timeout: 252 seconds]
<drbrain> (what a grim game to play, if you don't guess this word then YOU DIE)
<lalalaaa> lol
thoraxe_ is now known as thoraxe
<lalalaaa> thanks again guys, i love it how you always present not just the solution but tons of other ways to go about it
ruurd has quit [Quit: ZZZzzz…]
s00pcan has quit [Ping timeout: 240 seconds]
neoseeker191 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Eiam_ has joined #ruby
<miah> not all guys either
<Radar> ?guys
<ruboto> we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
rdark has quit [Ping timeout: 272 seconds]
shevy has quit [Ping timeout: 256 seconds]
decoponio has quit [Quit: Leaving...]
shevy has joined #ruby
__main__ has joined #ruby
s00pcan has joined #ruby
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
<lalalaaa> i stand corrected
<lalalaaa> trust me my intentions were all unisex ;)
benlovell has quit [Ping timeout: 244 seconds]
<apeiros> we do :)
jhack has quit [Ping timeout: 265 seconds]
<dfockler> I'm not doing anything, what should I try to write in ruby in 2 hours?
<apeiros> small steps towards everybody feeling welcome :D
nofxx has quit [Ping timeout: 256 seconds]
<jhass> dfockler: learn some crystal :P
<Ox0dea> >> require 'socket.so'; File.basename $LOADED_FEATURES.grep(/socket/)[0]
<ruboto> Ox0dea # => "socket.so" (https://eval.in/403602)
<dfockler> jhass: that's a good idea
<Ox0dea> Could a Windows user please run and report the output of that snippet?
<Ox0dea> Would a kindly volunteer from the Apple tree do the same?
nofxx has joined #ruby
<dfockler> I always get distracted by the crystal logo on their home page
yb_drowe has quit [Quit: Zzzzzzz....]
gilest has joined #ruby
bruno- has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpaucar has quit [Remote host closed the connection]
htmldrum has joined #ruby
gilest has quit [Client Quit]
<lalalaaa> dfockler: yeah cant take my eyes off it
<dfockler> I try spinning it really fast
user1138 has quit [Ping timeout: 255 seconds]
<shevy> I spin in my chair
user1138_ has joined #ruby
arooni-mobile has joined #ruby
victortyau has quit [Quit: Leaving]
hobodave has quit [Quit: Computer has gone to sleep.]
roolo_ has joined #ruby
<shevy> dfockler write a package manager in 2 hours :)
<lalalaaa> lol
<shevy> it must be able to: download remote data; extract it; run configure make make install ... hmm that's it for a start
<lalalaaa> or maybe a twitterbot?
gamename has joined #ruby
havenwood has joined #ruby
<jhass> alias jhpm=tar done
jenrzzz has quit [Ping timeout: 260 seconds]
<Ox0dea> jhass: I see you saw YAPM was taken.
werelivinginthef has quit [Remote host closed the connection]
<jhass> no I'm just egocentric
bronson has joined #ruby
ERIK__ has joined #ruby
jenrzzz has joined #ruby
miwood has quit []
roolo has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
user1138_ has quit [Client Quit]
Wolland has quit []
quimrstorres has joined #ruby
user1138 has joined #ruby
acovrig has quit [Ping timeout: 255 seconds]
htmldrum has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Client Quit]
code1o6 has quit [Ping timeout: 265 seconds]
bohallor has quit [Ping timeout: 240 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<vimz> how should I pass a block onto another method? def meth1 &b end def meth2 &b b.call end ?
havenwood has quit [Read error: Connection reset by peer]
hinbody has quit [Quit: leaving]
mweshi has quit [Remote host closed the connection]
wsterling has joined #ruby
<dfockler> I'm glad someone used pacman to name a package manager
mweshi has joined #ruby
Channel6 has quit [Quit: Leaving]
ruurd has joined #ruby
Obfuscate has joined #ruby
wsterling has quit [Client Quit]
startupality has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> vimz: def foo(&block); bar(&block); end
<jhass> how bar takes the block is not relevant
<prefixed> how exactly would I use Find.find() with Net:SFTP? .opendir does not return a string...
aaeron has quit [Quit: Leaving.]
Rinzlit has quit [Read error: Connection reset by peer]
dmolina has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
swgillespie has joined #ruby
DEA7TH_ is now known as DEA7TH
phutchins has quit [Ping timeout: 240 seconds]
aaeron has joined #ruby
icebourg has quit []
simplyianm has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Ping timeout: 244 seconds]
<Ox0dea> dfockler: Arch user?
kies^ has quit [Ping timeout: 255 seconds]
simplyianm has joined #ruby
<dfockler> nah I was thinking of a name for a package manager :P
<Ox0dea> I see.
<Ox0dea> jhass: ILoveCandy?
DEA7TH has quit [Quit: DEA7TH]
<[k-> shevy! Ox0dea!
wallerdev has quit [Quit: wallerdev]
<prefixed> hym
<shevy> wat
<shevy> did you just wake up [k-
<prefixed> i don't think it's possible
<[k-> yes
crazydiamond has quit [Ping timeout: 244 seconds]
<Ox0dea> Happy dawn.
<jhass> Ox0dea: hm?
k3asd` has quit [Ping timeout: 250 seconds]
<Ox0dea> jhass: echo ILoveChandy >> /etc/pacman.conf
Tritone has joined #ruby
<Ox0dea> *ILoveCandy, obviously.
<shevy> dfockler give it a POWERFUL name
<shevy> "ruckage"
crazydiamond has joined #ruby
<shevy> "ruman"
<dfockler> I'm calling it pancakes
<shevy> lol
<Ox0dea> Hey, [k-, what happens if you require 'socket.so' on OS X?
s00pcan has quit [Ping timeout: 250 seconds]
bungoman has quit [Remote host closed the connection]
<[k-> I'll add it to the lists of things to do when I get back
simplyianm has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
<shevy> lol
simplyianm has joined #ruby
<drbrain> Ox0dea: ruby doesn't care about platform-specific C extensions*
a346 has quit [Quit: a346]
<drbrain> * except for .dll, unless you've built ruby to enable it, IIRC windows-only
<prefixed> adaedra it doees not look possible to use Find.find() with SFTP objects
<drbrain> Ox0dea: so if you've got a .bundle you can require the .so and it'll work
<Ox0dea> drbrain: But the reverse isn't true.
<Ox0dea> I can only require .so on Linux.
Ilyas has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
arooni-mobile has quit [Ping timeout: 244 seconds]
<Ox0dea> For what it's worth, I'm only interested in the behavior you've described, but is .so guaranteed to resolve on all platforms?
werelivinginthef has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<Ox0dea> To add to that, do you know if the path gets canonicalized to .so for $LOADED_FEATURES?
nveselinov has quit [Quit: Connection closed for inactivity]
Log1x has quit [Ping timeout: 255 seconds]
<drbrain> ah, right, I think RbConfig::CONFIG['DLEXT'] and DLEXT2 are what control this
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Yes, that's right.
jenrzzz has joined #ruby
<drbrain> without checking, I think .so is hard-coded as something that will always work, and adding DLEXT and DLEXT let ruby try extra things
elia has joined #ruby
<Ox0dea> Only they're not really accessible at runtime, at least not before require does its thing.
sshuff is now known as sshuff|gone
<drbrain> which aren't?
<Ox0dea> DLEXT{,2}
MisterRusty has quit [Ping timeout: 264 seconds]
<Ox0dea> They're manifest constants at build time.
aryaching has quit [Ping timeout: 250 seconds]
<drbrain> rubygems fetches (and uses) them when overriding require
<Ox0dea> Hmm.
duoi has quit [Remote host closed the connection]
freerobby has joined #ruby
Log1x has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
MisterRusty has joined #ruby
<Ox0dea> drbrain: Nah, doesn't seem to permit requiring .dll files on Linux.
<Ox0dea> Neither RbConfig::CONFIG['DLEXT'] nor 'DLEXT2'.
<drbrain> oh, you mean getting plain ruby require to load a .dll as a compiled extension library?
<Ox0dea> Well, no, RubyGems' require would be fine?
<drbrain> I think DLEXT and DLEXT2 are reflections of what is compiled-in to ruby, so changing them won't change that behavior
icebourg has joined #ruby
<Ox0dea> I alluded to that regrettable truth a few minutes ago.
[k- has quit [Ping timeout: 246 seconds]
lalalaaa has quit [Quit: leaving]
gamename has quit [Remote host closed the connection]
<drbrain> I may have missed that bit, sorry
jenrzzz has quit [Ping timeout: 272 seconds]
<Ox0dea> "Manifest constants" and whatnot.
<drbrain> you can discover what ruby will look for, but not change this behavior without recompiling
baweaver has joined #ruby
<Ox0dea> Right.
<Ox0dea> I was hoping to respond differently depending on the extension used to require me, but .so working on all platforms would suffice.
<Ox0dea> I still need a way to determine that .so was explicitly used, though.
PaulCape_ has quit [Quit: .]
MrWharfsnort has joined #ruby
RegulationD has quit [Remote host closed the connection]
<Ox0dea> The best I've got so far was walking ObjectSpace.each_object(String), remembering the last time we saw "loading_table", and giving the okay if "foo.so" occurs soon enough after.
<drbrain> what do you need to determine that for?
<Ox0dea> Silly reasons.
<drbrain> several libraries have a .rb with the same name which requires the .so
<Ox0dea> drbrain: I, uh... want requiring the .rb to fail. ^_^
<Senjai> Uhm
<Senjai> Do exceptions propogate if used with send?
MrWharfsnort has quit [Client Quit]
freeUmo has quit [Quit: freeUmo]
<Senjai> >> def rawr; raise StandardError.new; end; send :rawr; puts "Still here"
<ruboto> Senjai # => StandardError (StandardError) ...check link for more (https://eval.in/403604)
PaulCapestany has joined #ruby
<drbrain> Ox0dea: add "raise LoadError, __FILE__"?
<Senjai> Hmm
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Ox0dea> drbrain: Sorry, I should have been more exact; I'm setting a non-capitalized constant from C, and then requiring the .rb from C as well; the .rb dies if the constant isn't set.
<Ox0dea> And since non-capitalized constants can't be defined from Ruby land, I can ensure that I was required as .so, at least on Linux.
j4cknewt has quit [Remote host closed the connection]
unsymbol has quit [Ping timeout: 244 seconds]
j4cknewt has joined #ruby
jenrzzz has joined #ruby
<Ox0dea> drbrain: I know it sounds strange, and I confess it's mostly for a laugh, but I know it must be feasible.
<drbrain> yeah, I think NameError has a lowercase constant on it, but that's part of the core library
yqt has joined #ruby
dmolina has quit [Quit: Leaving.]
craysiii has left #ruby [#ruby]
unsymbol has joined #ruby
<Ox0dea> >> Complex.constants(false)
<ruboto> Ox0dea # => [:compatible, :I] (https://eval.in/403605)
<Ox0dea> There are also a bunch of internal instance variables without leading asperands.
<ght> Question: I have a JSON string that is built dynamically and then parsed using JSON.parse. Normally it works fine, but it appears some of the data...
GBrawl has quit [Quit: (null)]
<ght> being retrieved contains chars that are invalid to JSON.
<prefixed> nope
<ght> Anyone have any tips on finding and detecing / escaping chars that would be invalid
duoi has joined #ruby
<prefixed> i had to reimplement everything
<prefixed> you know why?
<prefixed> because yolo
<ght> In a string that was to be parsed via JSON.parse?
j4cknewt has quit [Ping timeout: 252 seconds]
<jhass> ght: sounds like a broken approach. Can't you build the hash directly? if not why not?
msnyon has joined #ruby
<ght> Nope, approach is completely logical, just looking for tips regarding detecting and escaping chars that would be invalid to JSON.
<ght> Anyone?
yb_drowe has joined #ruby
eggoez has quit [Ping timeout: 244 seconds]
<Ox0dea> ght: Are you not able to read the error message to determine exactly which characters are being considered invalid?
FernandoBasso has joined #ruby
<ght> Yes, I can read the string, but it contains several entries, and it's dynamic anyway, so, again, I need to be able to detect and escape chars invalid to JSON.
FernandoBasso has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
<ght> So no one has any tips there?
roolo_ has quit [Remote host closed the connection]
<jhass> could you elaborate a bit on why it's logical?
<ght> I'll continue researching, thanks just the same.
<jhass> well, you can obtain valid json by calling to_json
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> >> require "json"; 'foo"bar'.to_json
casadei_ has quit [Remote host closed the connection]
<ruboto> jhass # => "\"foo\\\"bar\"" (https://eval.in/403606)
<jhass> but again, doing that just stuff it back into JSON.parse sounds pretty broken
<jhass> *just to
zonetti has quit [Quit: cya]
<jhass> and even if not parsing it again building a hash and calling to_json on it would be better
guyz is now known as daynaskully
eggoez has joined #ruby
jenrzzz_ has joined #ruby
sharpmachine has quit [Remote host closed the connection]
Tritone has quit [Remote host closed the connection]
Tritone has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
AnoHito_ has joined #ruby
nym has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
mike___1234 has quit [Ping timeout: 240 seconds]
A_ron has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
serivich has joined #ruby
pandaant has quit [Remote host closed the connection]
WillAmes has joined #ruby
AlxAltea has quit [Read error: Connection reset by peer]
AnoHito has quit [Ping timeout: 244 seconds]
AlxAltea has joined #ruby
jenrzzz has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 255 seconds]
Guest33 has joined #ruby
christiandsg has joined #ruby
martinbjeldbak has quit [Ping timeout: 264 seconds]
neoseeker191 has joined #ruby
martinbjeldbak has joined #ruby
quazimodo has joined #ruby
neoseeker191 has quit [Max SendQ exceeded]
towski__ has joined #ruby
towski_ has quit [Ping timeout: 255 seconds]
CaryInVictoria has quit [Remote host closed the connection]
icebourg has quit []
devbug has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby
spider-mario has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Igorshp has joined #ruby
baweaver has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
SCHAAP137 has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 246 seconds]
benlieb has quit [Quit: benlieb]
j4cknewt has quit [Ping timeout: 265 seconds]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
Igorshp has quit [Ping timeout: 246 seconds]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
a346 has joined #ruby
davedev24 has joined #ruby
jcp has joined #ruby
jcp has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 252 seconds]
jcp has joined #ruby
Guest33 has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest38521 has quit [Quit: Connection closed for inactivity]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
user1138 has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
cpruitt has quit [Quit: cpruitt]
rehat has quit [Read error: Connection reset by peer]
howdoi_ has joined #ruby
christiandsg has joined #ruby
devbug has joined #ruby
martinbjeldbak has quit [Ping timeout: 244 seconds]
ruurd has quit [Quit: ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
casadei_ has joined #ruby
mike___1234 has joined #ruby
workmad3 has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
<snockerton> is there a way to drop a specific key from all hashes in an array:
<snockerton> [ { "key1"=>"a", "key2"=>"b" }, { "key1"=>"c", "key2"=>"d" } ]
<snockerton> get rid of key1
mandarinkin has joined #ruby
<jhass> .each do |hash| hash.delete("key1"); end
dopie has quit [Quit: This computer has gone to sleep]
<snockerton> how is that different from #tap ?
<Ox0dea> snockerton: #tap returns the object.
martinbjeldbak has joined #ruby
<jhass> tap yield the object not the array elements
<jhass> each returns the object too :P
Igorshp has quit [Remote host closed the connection]
<Ox0dea> Oh, right.
casadei_ has quit [Ping timeout: 246 seconds]
bungoman has joined #ruby
ph8 has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
user1138 has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
<al2o3-cr> tap is powerfull
mkosaki has quit [Quit: Leaving...]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> class Object; def tap; yield self; self end end
<Ox0dea> #tap is elegant as fuck.
GeissT has joined #ruby
bungoman has quit [Ping timeout: 246 seconds]
waka has quit [Ping timeout: 240 seconds]
<shevy> better than #fuck is elegant as tap!
<al2o3-cr> just like me :p
Kully3xf has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has joined #ruby
allomov has joined #ruby
swgillespie has joined #ruby
amargherio has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<prefixed> yo. how do I i do a negation of path =~ /^\.\?$/
bruno- has quit [Ping timeout: 244 seconds]
<Ox0dea> prefixed: !~
<Ox0dea> prefixed: Also, please help us name that operator.
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<prefixed> the waving bang
<Ox0dea> But it's a bangy wave? :/
<prefixed> WAVE BANG
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<prefixed> GNAB EVAW
<Ox0dea> Ooh! Bangarang?!
Musashi007 has joined #ruby
<prefixed> omg
<Ox0dea> So good, right?
<prefixed> if that actually happened
Musashi007 has quit [Client Quit]
benlieb has joined #ruby
bohallor has joined #ruby
jeramyRR has joined #ruby
<prefixed> fucking ruby
<prefixed> ok
<prefixed> 12 hour day. time to go home
quazimodo has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
bohallor has quit [Client Quit]
sepp2k has quit [Ping timeout: 250 seconds]
segfalt has quit [Quit: segfalt]
Musashi007 has joined #ruby
CaryInVictoria has joined #ruby
Feyn has joined #ruby
sepp2k has joined #ruby
allomov has quit [Remote host closed the connection]
<al2o3-cr> >> :ruby || :python
<ruboto> al2o3-cr # => :ruby (https://eval.in/403615)
poguez_ has joined #ruby
<al2o3-cr> if that what ruboto says, it me the truth
arooni-mobile has joined #ruby
stantonnet has joined #ruby
waka has joined #ruby
<zenspider> ooooh my mattress is showing up tomorrow! Maybe I won't be stiff and cranky on friday!
<Ox0dea> >> :Ruby > :Python
<ruboto> Ox0dea # => true (https://eval.in/403616)
<Ox0dea> zenspider: You're better when you're cranky.
<Ox0dea> The stiffness I could do without.
pontiki has joined #ruby
<al2o3-cr> my vocabulary is non-existent at this time of night :p
charliesome has quit [Ping timeout: 246 seconds]
waka has quit [Read error: Connection reset by peer]
<Ox0dea> al2o3-cr: I was going to comment on that; your English skills definitely trickle away with the clock. :P
<al2o3-cr> to true :p
<Ox0dea> "It me the truth" is pretty great, if I'm honest.
slackbotgz has joined #ruby
<al2o3-cr> :D
xaxisx has joined #ruby
<al2o3-cr> i even focused hard on too :p
<pontiki> hello
rcvalle has quit [Quit: rcvalle]
charliesome has joined #ruby
<al2o3-cr> forget it i'm going sleep :(
Musashi007 has quit [Quit: Musashi007]
baroquebobcat has quit [Quit: baroquebobcat]
baweaver has quit [Remote host closed the connection]
snophey has quit [Ping timeout: 256 seconds]
acke has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
CaryInVictoria has quit [Ping timeout: 255 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
acke has quit [Ping timeout: 250 seconds]
webguynow has quit [Ping timeout: 256 seconds]
webguynow has joined #ruby
prefixed has quit [Ping timeout: 272 seconds]
eminencehc has quit [Remote host closed the connection]
<kb3ien> http://pastebin.ca/3071737 why is this happening, what's the while syntax here?
segfalt has joined #ruby
hans_ is now known as Kalov
<al2o3-cr> kb3ien: is that ruby
<RickHull> ++ is not valid
waka has joined #ruby