havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<apeiros> (it can only deal with numerics, though)
n_blownapart has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cheerio]
araujo has quit [Ping timeout: 256 seconds]
<vikas027> apeiros: notifications['last_notified'] throws error -- no implicit conversion of String into Integer (TypeError). Earlier, I had tried that. When it didn't worked, I decided to move with map
edwinvdg_ has quit []
araujo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<apeiros> vikas027: you really should learn ruby basics
cschnei__ has quit [Remote host closed the connection]
<Radar> vikas027: notifications is an array
<apeiros> vikas027: your notifications is an array. you can't access array members by name. they don't have one.
<Radar> vikas027: notifications[0]['last_notified']
waka has joined #ruby
<Radar> vikas027: notifications[0] is the first element for the array
<Radar> vikas027: and I agree with apeiros: learn some basic Ruby. Go through the Ruby Koans.
<apeiros> without the basics, you'll need spone-feeding all the time when asking for help. that's usually not really appreciated.
twe4ked has joined #ruby
<apeiros> *spoon
babblebre has quit [Quit: Connection closed for inactivity]
<eam> hm turns out spone is a word too
<apeiros> it is? I just looked it up too and my dict didn't know it… what does it mean?
<Ox0dea> !w spone
firstdayonthejob has joined #ruby
<eam> urban dictionary has a definition for it
<Ox0dea> It's not in words-insane.
<Ox0dea> Pfft.
<eam> ;)
<apeiros> oh, UD - can't be a nice word…
cajone has left #ruby [#ruby]
<eam> yes, I am not sharing the definition
Limix has joined #ruby
hannelita has quit [Ping timeout: 245 seconds]
gizless has quit [Ping timeout: 250 seconds]
<Ox0dea> spone(v. intr.): To fork while spoons.
kalopsian has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
pwnd_nsfw has quit [Read error: Connection reset by peer]
floatingpoint has joined #ruby
<vikas027> apeiros, Radar: Yeah, I am doing that side by side. Sorry, for the unwanted noise. Thank you so much. This (https://dpaste.de/WntQ) is what I wanted, all good now.
hannelita has joined #ruby
<Ox0dea> vikas027 plz
pwnd_nsfw has joined #ruby
<apeiros> ugh, .parse
<Ox0dea> I mean, why not, though?
<apeiros> vikas027: .parse is like saying "fuck it, I have no idea what's in there, please ruby do your best to figure out, I don't care whether the result will actually be correct".
<Ox0dea> apeiros: And Ruby tends to be like "I got dis".
<apeiros> Ox0dea: yes, until it changes how it interprets it (yes, that has happened)
<apeiros> and even if ruby gets it right, it's still a stoopid idea.
<apeiros> anyway, bedtime for me
* apeiros afk
firstdayonthejob has quit [Ping timeout: 260 seconds]
oivoodoo has joined #ruby
<vikas027> apeiros: Have a good night
bonhoeffer has joined #ruby
ruby-lang833 has joined #ruby
<vikas027> I am also going thru this tutorial https://www.pluralsight.com/courses/ruby-fundamentals
<Ox0dea> vikas027: For what it's worth, this is the exact same problem you were having earlier.
<Ox0dea> You don't need a video course.
<ruby-lang833> Hi, is there a preferred place to put my "config.x." declarations to use as configuration options for my app?
floatingpoint has quit [Ping timeout: 260 seconds]
jaiks has quit [Ping timeout: 250 seconds]
<Ox0dea> ruby-lang833: Insufficient data for meaningful answer.
<vikas027> Ox0dea: Hmm.. I will look for some options, particularly to handle arrays and hashes
kies^ has joined #ruby
<Ox0dea> vikas027: http://rubykoans.com/
<Ox0dea> You'll be glad you did.
northfurr has joined #ruby
<ruby-lang833> I want to use the custom configuration options in ruby 4 - store my app configuration date in outside of my main models/controllers - didn't know if there was a default place to declare the config.x.___ options
<vikas027> Ox0dea: Thanks, will have a look
<Ox0dea> vikas027: Sure thing.
northfurr has quit [Client Quit]
<jottr> Maybe someone is around willing to earn some stackoverflow points. I am strange rbenv troubles: https://stackoverflow.com/questions/34936829/rbenv-not-working-shell-is-still-reporting-to-use-system-ruby
<Ox0dea> jottr: `rbenv rehash` or the like.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jottr> Ox0dea: did that already
<Ox0dea> Gonna have to switch to chruby, then.
<eam> jottr: your path is wrong
<ruby-lang833> This is what I'd like to experiment with - but doesn't mention if there is a particiular place i should declare them in http://guides.rubyonrails.org/configuring.html#custom-configuration
<eam> "/usr/local/bin" is the first element of $PATH, and as you'd expect, /usr/local/bin/ruby is the first ruby you fine
<eam> find
<eam> PATH is traversed in order, left to right
<jottr> eam: Ok. So rbenv needs to intialized at the beginning of my .zshenv... Let me try
<eam> well, the shims dir needs to be the first element of $PATH
asccigcc has quit [Quit: asccigcc]
<eam> how you do that depends on your setup
oivoodoo has quit [Remote host closed the connection]
shiver32 is now known as shiver
<jottr> eam: Ok. thx
<hxegon> eam: I may have submitted your answer (explanation is mine) because I desperately need SO points. That OK?
yfeldblum has joined #ruby
<eam> go for it
<hxegon> :D
<eam> jottr: ruby -e'puts ENV["PATH"].split(":").select { |p| File.executable? p + ARGV.first}' /ruby
go|dfish has quit [Quit: SIGQUIT]
<eam> that'll show you all the "ruby" executables in your path, according to the order they'll be chosen (only the first one really matters)
<jottr> eam: Already added the rbenv setup to .zlogin. That fixed it
<eam> awesome
<jottr> eam: God, what a timesink these things can be.
<eam> I guess I should've said File.executable? File.join p, ARGV.first
<hxegon> eam your the best. If I had some cherry wine, I'd give you some. We could dance all night with our clothes on
nertzy2 has joined #ruby
<eam> shit yes
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
d0nn1e has joined #ruby
<eam> now someone help me figure out why android "repo" isn't working :(
guacamole has joined #ruby
baweaver has joined #ruby
lemur has joined #ruby
<hxegon> I like how that video is basically black luke skywalker saying how he doesn't want to be objectified.
<Ox0dea> jottr: Might be indicative of having picked the wrong one. :P
finisherr has quit [Ping timeout: 260 seconds]
jam_ has joined #ruby
<Ox0dea> Can your rbenv do this? alias rubydo='chruby | tr -d \* | xargs -I ver chruby-exec ver -- ruby -ve'
<Ox0dea> It probably can, to be fair, but it'd be a timesink.
lemur has quit [Ping timeout: 240 seconds]
guacamol_ has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jam_ has quit [Ping timeout: 256 seconds]
guacamole has quit [Ping timeout: 276 seconds]
ropeney has joined #ruby
toretore has joined #ruby
hannelita has quit [Remote host closed the connection]
mondok has quit [Ping timeout: 276 seconds]
bklane has quit []
mfb2 has quit [Remote host closed the connection]
bonhoeffer has quit [Ping timeout: 250 seconds]
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
mfb2 has joined #ruby
nertzy2 has quit [Quit: This computer has gone to sleep]
hannelita has joined #ruby
ympeg has quit [Ping timeout: 264 seconds]
maletor_ has quit [Read error: Connection reset by peer]
huQeQwdpu47q has quit [Quit: Leaving]
gregf has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
chipotle has joined #ruby
gregf has joined #ruby
RTG` has quit [Ping timeout: 240 seconds]
bafbomb has quit [Read error: Connection reset by peer]
kalopsian has quit [Ping timeout: 245 seconds]
guacamol_ has quit [Quit: My face has gone to sleep. ZZZzzz…]
tinnvec has quit [Remote host closed the connection]
mondok has joined #ruby
ekem has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
scripore has joined #ruby
go|dfish has joined #ruby
skcin7 has joined #ruby
helpa has quit [Remote host closed the connection]
erichmenge has quit [Ping timeout: 246 seconds]
helpa has joined #ruby
Radar has quit [Ping timeout: 240 seconds]
bafbomb has joined #ruby
jpterry has quit [Ping timeout: 256 seconds]
ekem has joined #ruby
chouhoulis has joined #ruby
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
nirix has quit [Ping timeout: 264 seconds]
lyoshajapan has joined #ruby
fn2187_ has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
erichmenge has joined #ruby
nirix has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
mondok has quit [Ping timeout: 240 seconds]
jericon_ has quit [Ping timeout: 240 seconds]
Radar has joined #ruby
fn2187 has quit [Ping timeout: 264 seconds]
lyoshajapan has joined #ruby
lessless has joined #ruby
guacamole has joined #ruby
Radar is now known as Guest64350
scripore has quit [Quit: This computer has gone to sleep]
lacuna has joined #ruby
jidar has quit [Ping timeout: 260 seconds]
BraddPitt has quit [Ping timeout: 265 seconds]
jericon has joined #ruby
csmb has quit [Ping timeout: 256 seconds]
akem has joined #ruby
BraddPitt has joined #ruby
perry has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
jpterry has joined #ruby
Snowy has quit []
perry has joined #ruby
perry has joined #ruby
jidar has joined #ruby
scottschecter has joined #ruby
rkazak has joined #ruby
jackjackdripper1 has joined #ruby
jaequery has joined #ruby
baweaver has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
sgambino has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
jschoolcraft has joined #ruby
kalopsian has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
csmb has joined #ruby
jackjackdripper has quit [Ping timeout: 245 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nymous has quit [Quit: RAGING AXE! RAGING AXE!]
baweaver has joined #ruby
Limix has quit [Quit: Limix]
jottr_ has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.5-dev]
jottr has quit [Ping timeout: 276 seconds]
mfb2 has quit [Remote host closed the connection]
mfb2 has joined #ruby
blackmes1 has joined #ruby
johnzorn has joined #ruby
mfb2 has quit [Remote host closed the connection]
mfb2 has joined #ruby
jottr_ is now known as jottr
lyoshaja_ has joined #ruby
lyoshajapan has quit [Ping timeout: 250 seconds]
Jardayn has quit [Read error: Connection reset by peer]
guacamol_ has joined #ruby
mwlang has joined #ruby
bluOxigen has joined #ruby
beast has joined #ruby
bluOxigen_ has quit [Ping timeout: 245 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
guacamole has quit [Ping timeout: 265 seconds]
guacamol_ has quit [Client Quit]
scripore has joined #ruby
guacamole has joined #ruby
atomical has joined #ruby
guacamol_ has joined #ruby
lyoshaja_ has quit []
kalopsian has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
Jwad has joined #ruby
Jwad has left #ruby ["Leaving"]
guacamol_ has quit [Client Quit]
guacamole has quit [Ping timeout: 265 seconds]
hanneli has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
guacamole has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
guacamole has quit [Client Quit]
hannelita has quit [Ping timeout: 260 seconds]
hanneli has quit [Read error: No route to host]
guacamole has joined #ruby
karmatr0n has quit [Ping timeout: 272 seconds]
chihhsin has quit [Client Quit]
atomical_ has joined #ruby
chihhsin has joined #ruby
atomica__ has joined #ruby
blackmes1 has quit [Ping timeout: 245 seconds]
atomical has quit [Ping timeout: 265 seconds]
ss_much has joined #ruby
akem has quit [Remote host closed the connection]
onlyme_ has joined #ruby
atomical_ has quit [Ping timeout: 276 seconds]
finisherr has joined #ruby
roller123 has quit [Ping timeout: 252 seconds]
d0nn1e has quit [Ping timeout: 276 seconds]
marr has quit [Ping timeout: 250 seconds]
Asher has quit [Quit: Leaving.]
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
atomical has joined #ruby
hayden_ has quit [Quit: Connection closed for inactivity]
Asher has joined #ruby
Asher is now known as Guest17677
moei has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
Guest17677 has quit [Client Quit]
solocshaw has joined #ruby
atomica__ has quit [Ping timeout: 240 seconds]
finisherr has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
hxegon has quit [Ping timeout: 245 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
rakm has joined #ruby
mrsolo_ has joined #ruby
sneakerhax has quit [Ping timeout: 272 seconds]
bronson has quit [Ping timeout: 265 seconds]
guacamole has quit [Quit: Textual IRC Client: www.textualapp.com]
django_ has joined #ruby
<django_> hey
<django_> why is ruby so popular?
guacamole has joined #ruby
Guest64350 is now known as Radar
graphettion has quit [Read error: Connection reset by peer]
<Radar> django_: why not
choke has joined #ruby
x77686d has quit [Quit: x77686d]
dfockler has quit [Ping timeout: 240 seconds]
scottschecter_ has joined #ruby
blackgoat has quit [Ping timeout: 256 seconds]
scottschecter_ has quit [Read error: Connection reset by peer]
zambini has quit [Quit: Leaving.]
<Darmani> django - Ever since I started getting into it people have been trying it out.
<Darmani> I have that effect on shit.
Sucks has quit [Read error: Connection reset by peer]
<Radar> it's true
huQeQwdpu47q has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<django_> Darmani, lol
Sucks has joined #ruby
<django_> im a newb programmer should i get into it?
tinnvec has joined #ruby
tinnvec has quit [Client Quit]
tinnvec has joined #ruby
cbyrda has joined #ruby
Averna has joined #ruby
arescorpio has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
<Radar> django_: I'm curious as to why your name is django and you claim to be a newb porgrammer?
kalopsian has quit [Ping timeout: 240 seconds]
toretore has quit [Ping timeout: 264 seconds]
<Radar> I don't see many Djangos online.
<cbyrda> perhaps after the musician
TomPeed has joined #ruby
ajf- has quit [Quit: Textual IRC Client: www.textualapp.com]
Ox0dea has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
jam_ has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sembei has quit [Read error: Connection reset by peer]
jottr has joined #ruby
kalopsian has joined #ruby
jam_ has quit [Ping timeout: 276 seconds]
Sembei has joined #ruby
mfb2 has quit [Remote host closed the connection]
neohunter has quit [Ping timeout: 240 seconds]
ruby-lang144 has joined #ruby
fgo has quit [Quit: WeeChat 1.3]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
cbyrda has quit [Quit: Gone]
hakunin has quit []
mahk has quit [Ping timeout: 240 seconds]
goezz has quit [Ping timeout: 250 seconds]
<ruby-lang144> hello
brixen has quit [Excess Flood]
griffindy has joined #ruby
northfurr has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
<Ox0dea> Hi.
<ruby-lang144> im fairly new with Ruby and was wondering if someone would look at my code
mrsolo_ has quit [Quit: This computer has gone to sleep]
brixen has joined #ruby
<Ox0dea> Only if you make it a wallpaper.
realtime_ has joined #ruby
<baweaver> ruby-lang144: https://gist.github.com/
choke has joined #ruby
<django_> Radar, movie
DonOtreply has joined #ruby
<ruby-lang144> ty baweaver
yfeldblum has quit [Quit: Leaving...]
mfb2 has joined #ruby
<Radar> django_: Do you have Ruby installed yet?
<django_> no
<Radar> django_: What operating system are you using?
guacamo__ has joined #ruby
<django_> xubuntu
gbgdev has quit [Remote host closed the connection]
<Radar> ?ubuntu
<ruby[bot]> Ubuntu installation guide for Ruby + Rails: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
<Radar> Follow that and that'll get you setup.
<ruby-lang144> PRIVMSG Ox0dea
<Ox0dea> Well done.
<ruby-lang144> lol
<baweaver> ruby-lang144: don't PM members without asking first.
<ruby-lang144> as i said, new to this
<ruby-lang144> apologies
<Ox0dea> /query ruby-lang144 Ohai!
<Ox0dea> Shit.
<django_> Radar, yeah
norc_ has joined #ruby
hakunin has joined #ruby
choke has quit [Ping timeout: 256 seconds]
<Ox0dea> ruby-lang144: But do post your code to the channel; more eyes make for shallower bugs.
djbkd has quit [Quit: My people need me...]
<ruby-lang144> ok, need to find out to msg you
guacamole has quit [Ping timeout: 265 seconds]
<Radar> ruby-lang144: Just put it into the channel
jottr has quit [Ping timeout: 256 seconds]
mahk has joined #ruby
norc has quit [Ping timeout: 276 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speaking1ode has quit [Ping timeout: 256 seconds]
<Darmani> Radar I just made a bomb cup of coffee. Man that shit looked like art dude, it was almost a shame to drink it.
<Darmani> I just feel like you should know that.
<Radar> I'm excited for yuo.
akkad has quit [Excess Flood]
<Darmani> yea bruh. if programming doesn't work out...
<Darmani> i'ma make coffee
<Darmani> lmao
eggoez has joined #ruby
yfeldblum has joined #ruby
akkad has joined #ruby
yfeldblu_ has joined #ruby
<Ox0dea> Is "H" for "Horange"?
<ruby-lang144> it seems to work but i cant get it to confirm if the player has won
<ruby-lang144> hazel
<ruby-lang144> lol
<ruby-lang144> but i do like Horange
<ruby-lang144> and I'm aware of line 18 giving the code. i was testing as to match it
<baweaver> Most of it you're going to want to reconsider your object layout.
emilford has joined #ruby
<baweaver> putting the event loop in with the board makes it interesting to work with.
ddv has quit [Ping timeout: 250 seconds]
<baweaver> For a game you want, at a minimum: A Board, and an Event Loop
<ruby-lang144> ok
<baweaver> look into making your own to_s method so you could just say something in your event loop like `puts board`
yfeldblum has quit [Ping timeout: 260 seconds]
<baweaver> You might read 'Practical Object Oriented Design in Ruby' some time
<ruby-lang144> hmm ok
<baweaver> it'll cover a lot of what you need to think about for structuring applications like that.
<baweaver> mainly what methods are the concern of what objects
<baweaver> like a Board should not know what a turn is
A124 has quit [Read error: Connection reset by peer]
<ruby-lang144> ok. so possibly create another class
blackgoat has joined #ruby
<ruby-lang144> thank you for the suggestion. I'll have to check that book out tomorrow
shinnya has quit [Ping timeout: 265 seconds]
Arnvald has joined #ruby
<sunya7a> I'm trying to understand the concept of Foo.send(visibility, :a) on line 21 from this article http://weblog.jamisbuck.org/2007/2/23/method-visibility-in-ruby.html. Could someone point me to the name of this technique so i can google it...when I look up object.send it describes something different I believe
<Radar> sunya7a: It's calling a method on Foo.
Encapsulation has quit [Remote host closed the connection]
guacamo__ has quit [Quit: Textual IRC Client: www.textualapp.com]
northfurr has quit [Quit: northfurr]
A124 has joined #ruby
ddv has joined #ruby
<Ox0dea> And #public, #private, and #protected are methods, not keywords.
jbrhbr has quit [Ping timeout: 264 seconds]
DonOtreply has quit [Quit: DonOtreply]
<sunya7a> Radar: so it calls the method "public" of Foo (which i didn't have to define because it's already there) and passes it the argument :a ?
baweaver has quit [Remote host closed the connection]
<sunya7a> Radar: i see...found http://ruby-doc.org/core-2.2.0/Module.html#method-i-public i think i understand...thank you
yqt has quit [Ping timeout: 250 seconds]
a1fa has joined #ruby
<a1fa> what time format is this? 20140112T000000000
northfurr has joined #ruby
<Radar> awful lot of zeros after the T.
<Ox0dea> That'd be midnight.
<Radar> Ah, followed by the zone. True.
<a1fa> is it iso8601?
ziyadb has quit [Quit: Connection closed for inactivity]
<Ox0dea> No.
<Radar> It almost looks like it, but it isn't.
<a1fa> so i should just use Time method to make that time?
<Radar> >> Time.parse("20140112T000000000")
<ruby[bot]> Radar: # => undefined method `parse' for Time:Class (NoMethodError) ...check link for more (https://eval.in/506158)
<Radar> >> require 'time';Time.parse("20140112T000000000")
<ruby[bot]> Radar: # => 2014-01-12 00:00:00 +0000 (https://eval.in/506159)
dlitvak has joined #ruby
<a1fa> Radar: i need to go other way.. epoch to that particular format
<Radar> a1fa: Example input + output please
<Ox0dea> They just said?
<a1fa> input 1453432488
<a1fa> output would be 20160121T21150600
<a1fa> i think
<a1fa> utc would be fine too
<Ox0dea> &ri Time.at Time#strftime
mfb2 has quit [Remote host closed the connection]
<ruby-lang144> Oxodea did you see any issues in the gist i provided earlier?
<ruby-lang144> outside of the advice baweaver provided
<Ox0dea> There was a global variable somewhere that caught my eye.
<Ox0dea> Excise it with ruthless abandon and great haste for the good of the realm.
<ruby-lang144> lol
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby-lang144> will do. ill remove it
<a1fa> Ox0dea: thats what i was going to do, just checking there is no shortcut
Encapsulation has joined #ruby
<ruby-lang144> global variable gone
<ruby-lang144> ill continue to work on it until it works. thanks!
mfb2 has joined #ruby
<Ox0dea> ruby-lang144: I'm operating under the assumption that they won't mind in sharing a friend's solution: https://eval.in/506161
Dimik has quit [Ping timeout: 276 seconds]
<Ox0dea> It even just "feels" a lot cleaner, doesn't it? Good object orientation does that.
duderonomy has joined #ruby
krobzaur has joined #ruby
<ruby-lang144> lol it does
krobzaur has quit [Client Quit]
django_ has quit [Quit: Leaving]
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has quit [Quit: Lost terminal]
rkazak has quit [Quit: Sleep.....ing....]
s00pcan has joined #ruby
Arnvald_ has joined #ruby
workmad3 has joined #ruby
Arnvald has quit [Ping timeout: 276 seconds]
User458764 has joined #ruby
rkazak has joined #ruby
mfb2 has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
skcin7 has joined #ruby
rakm has joined #ruby
radgeRayden_ has quit [Ping timeout: 260 seconds]
radgeRayden has joined #ruby
ruby-lang144 has quit [Ping timeout: 252 seconds]
ruby-lang833 has quit [Ping timeout: 252 seconds]
asccigcc has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
northfurr has quit [Quit: northfurr]
Asher has joined #ruby
mfb2 has joined #ruby
baweaver has joined #ruby
<Darmani> Okay
<Darmani> I gotta go play some video games or something.
<Darmani> I'm going to die if I keep looking at this computer screen
<Darmani> brb
djbkd has quit [Client Quit]
iateadonut has joined #ruby
adam_ is now known as adam12
howdoi has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UtkarshRay has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
emilford has quit [Ping timeout: 272 seconds]
mfb2 has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
RTG` has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
graffix222 has quit [Quit: graffix222]
asccigcc has quit [Quit: asccigcc]
YR has joined #ruby
tjbiddle has joined #ruby
<YR> basic question....how do i do a for loop that's variable number of times? reading tutorial only shows static number repeats
<YR> i want like .... for (var i=0;i<j;i++)
usershell has joined #ruby
toretore has joined #ruby
<Ox0dea> >> sum = 0; j.times { |i| sum += i }; sum # YR
<ruby[bot]> Ox0dea: # => undefined local variable or method `j' for main:Object (NameError) ...check link for more (https://eval.in/506165)
<Ox0dea> Derp.
<Ox0dea> You get the idea.
braincrash has quit [Quit: bye bye]
nerium has quit [Quit: nerium]
onlyme_ has quit [Remote host closed the connection]
<YR> ah. so there's a .times function that acts on numerics
cpup has quit [Ping timeout: 265 seconds]
<Ox0dea> Well, only Fixnums, but yes.
<Ox0dea> *Integers
<Ox0dea> So Fixnum and Bignum.
<Ox0dea> But if you're calling Bignum#times, something's probably gone wrong.
cpup has joined #ruby
sakix has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
usershell has quit [Remote host closed the connection]
zast has joined #ruby
sakix has quit [Quit: WeeChat 1.3]
oivoodoo has joined #ruby
braincrash has joined #ruby
emilford has joined #ruby
oivoodoo has quit [Ping timeout: 250 seconds]
Klumben has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
<Ox0dea> YR: You gave me a bad idea: https://glot.io/snippets/eb77d1hhk9
saneax_AFK is now known as saneax
saneax is now known as Guest2672
alem0lars has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Quit: Leaving...]
arlek has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
jam_ has joined #ruby
davedev24 has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
YR has quit [Ping timeout: 252 seconds]
Contigi has joined #ruby
Darmani has quit [Ping timeout: 252 seconds]
Guest2672 is now known as saneax_AFK
dextertzu has joined #ruby
Arnvald_ has quit [Remote host closed the connection]
Arnvald has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
dextertzu has quit [Client Quit]
baweaver has joined #ruby
usershell has joined #ruby
choke has joined #ruby
dextertzu has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
blackgoat has quit [Ping timeout: 265 seconds]
dextertzu has quit [Quit: WeeChat 1.3]
dextertzu has joined #ruby
usershell has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
ramfjord_ has joined #ruby
mfb2 has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord_ has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
gix has quit [Ping timeout: 240 seconds]
mfb2 has quit [Ping timeout: 264 seconds]
cicloid has joined #ruby
<norc_> Ox0dea, I can only wait to see _that_ in production code.
gix has joined #ruby
<Ox0dea> norc_: What, you can't think of a use case? :P
<norc_> Aside from confusing the heck out of the next person discovering a line that reads "2.79.times do ... end" ... no. :D
darkxploit has quit [Ping timeout: 240 seconds]
<Ox0dea> Well, it should only be used with reasonably "round" floats, of course.
<norc_> You know you can just use #round right.. ? :-)
adgtl has joined #ruby
dextertzu has quit [Quit: WeeChat 1.3]
dextertzu has joined #ruby
<shevy> what is half a time
<Ox0dea> I meant "round" in the sense that "two-and-a-half" is... uncomplicated, for lack of a better term.
<Ox0dea> >> Time.at Time.now.to_i / 2
<ruby[bot]> Ox0dea: # => 1993-01-11 02:28:44 +0000 (https://eval.in/506178)
usershell has joined #ruby
konsolebox has joined #ruby
<Ox0dea> norc_: Reckon Array#drain would find any use?
<norc_> Ox0dea, feel free to share how naughty you have been again.
<Ox0dea> norc_: Er, the Rust 1.6 release brought to my attention that they have drain(), which empties a collection but doesn't dispose of the backing memory.
<Ox0dea> So Array#drain would be #clear without GC.
<Ox0dea> Only something weird is happening in rb_ary_clear().
bronson has joined #ruby
<Ox0dea> "Simple" Arrays aren't explicitly passed to the various unsharing and freeing mechanisms, but they're obviously not being completely ignored either.
pawnbox has quit [Remote host closed the connection]
<norc_> What is the use case here? Trying to avoid time spent in the GC for large arrays?
<Ox0dea> Under the assumption that (many of) those same elements are likely to find their way back in, aye.
<norc_> So this is about locality of reference?
<norc_> To improve caching?
<Ox0dea> Or even just to avoid freeing an object which we know is about to be used again.
hxegon has joined #ruby
<norc_> Oh I see.
<Ox0dea> We don't yet have the sufficiently smart interpreter.
<Ox0dea> It's easy enough to make sure something's still got a reference, I guess.
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harly has quit [Read error: Connection reset by peer]
harly has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<hxegon> anyone understand why this wouldn't record cassettes? VCR isn't playing nice today :(
shadoi has quit [Quit: Leaving.]
darkxploit has joined #ruby
ljames has joined #ruby
x77686d has joined #ruby
joneshf-laptop has joined #ruby
<Ox0dea> norc_: Any way to ask an Array if it's the result of a splat?
<Ox0dea> I can't imagine that information hangs around past parsing, but maybe there's something.
rkazak has joined #ruby
juddey has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
yfeldblu_ has quit [Remote host closed the connection]
arlek has quit [Ping timeout: 276 seconds]
<norc_> Ox0dea, since the introduction of the VM we have lost any representation of the AST.
<norc_> Ox0dea, and considering how splatarray isn is implemented, no.
<norc_> Ox0dea, I suppose you could simply patch up splatarray to set a flag on whatever it returns on the stack fairly trivially though.
<Ox0dea> It'd solely be to make `hash[*keys] = *values` always do the right thing.
<Ox0dea> norc_: A worthwhile tradeoff, I reckon.
beast has quit [Ping timeout: 265 seconds]
tjbiddle has quit [Ping timeout: 264 seconds]
altaircg has joined #ruby
oivoodoo has joined #ruby
graphettion has joined #ruby
Kabaka has quit [Quit: WeeChat 1.3]
beast has joined #ruby
adgtl_ has joined #ruby
oivoodoo has quit [Ping timeout: 264 seconds]
<Ox0dea> norc_: The splatarray flag is only ever tested for truthiness, but I'm not sure of the repercussions of twiddling its bits.
haraoka has joined #ruby
tjbiddle has joined #ruby
adgtl has quit [Ping timeout: 260 seconds]
domgetter has quit [Ping timeout: 265 seconds]
pawnbox_ has joined #ruby
<ICantCook> I'm trying to get a very simple sinatra script to simply return the raw request body to the requester
pawnbox__ has joined #ruby
lucas_menezes has joined #ruby
<ICantCook> I've managed to return the headers (request.env) but when I try to return request.body
<ICantCook> I get #<StringIO:0x00000001c14b10>
<Ox0dea> ICantCook: Call #string on that.
pawnbox has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
<Ox0dea> Instead of #to_s, to clarify.
<Ox0dea> >> s = StringIO.new 'foo'; [s.to_s, s.string, s.read, s.read]
<ruby[bot]> Ox0dea: # => ["#<StringIO:0x40fe5a48>", "foo", "foo", ""] (https://eval.in/506182)
tjbiddle has quit [Ping timeout: 240 seconds]
pawnbox_ has quit [Ping timeout: 240 seconds]
adgtl_ has quit []
<ICantCook> calling string, instead of to_s, gives me nothing
ramfjord has joined #ruby
_djbkd has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tjbiddle has joined #ruby
hxegon is now known as hxegon_AFK
adgtl has joined #ruby
<Ox0dea> ICantCook: GET requests don't have bodies.
stevemackinnon has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
craigp has joined #ruby
altaircg has quit [Remote host closed the connection]
UtkarshRay has quit [Remote host closed the connection]
arup_r has joined #ruby
c0der0x has joined #ruby
<ICantCook> Ox0dea: doh!
<ICantCook> changed to post, all working
<ICantCook> thanks
<Ox0dea> ICantCook: Happens. :)
<Ox0dea> Sure thing.
scripore has quit [Quit: This computer has gone to sleep]
Klumben has joined #ruby
pontiki has joined #ruby
hxegon_AFK is now known as hxegon
adgtl has joined #ruby
Hobbyboy has quit [Ping timeout: 240 seconds]
hxegon has quit [Quit: BRB]
arthropododo has quit [Quit: Leaving]
adgtl has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
dfinninger has joined #ruby
consti has quit [Ping timeout: 250 seconds]
UtkarshRay has joined #ruby
dudedudeman has joined #ruby
Hobbyboy|BNC has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
lucas_menezes has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
vikas027 has quit [Ping timeout: 252 seconds]
Amnez777- has joined #ruby
BaroMeter has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UtkarshRay has joined #ruby
jam_ has quit [Remote host closed the connection]
Amnez777 has quit [Ping timeout: 276 seconds]
dudedudeman has quit [Quit: dudedudeman]
VaibhavRajput has joined #ruby
bluOxigen_ has joined #ruby
adgtl has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VaibhavRajput has left #ruby [#ruby]
Rickmasta has joined #ruby
onlyme_ has joined #ruby
norc has joined #ruby
<norc> Ox0dea: here is a good one:
<norc> Ruby can be quite helpful.
adgtl has quit [Remote host closed the connection]
<Ox0dea> Huh.
krz has joined #ruby
blackgoat has joined #ruby
<norc> Be back in a minute when Im in the office.
karapetyan has joined #ruby
robh71 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalopsian has quit [Ping timeout: 250 seconds]
<Ox0dea> It's not that weird, really.
JohnT has joined #ruby
<Ox0dea> norc: https://eval.in/506210
<Ox0dea> It's just finding the one in Module instead.
BaroMeter has quit [Quit: Leaving]
<Ox0dea> Er, no need even to try to invoke it, actually.
oivoodoo has joined #ruby
adgtl has joined #ruby
norc has quit [Ping timeout: 252 seconds]
altaircg has joined #ruby
darkf has joined #ruby
oivoodoo has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
chihhsin has quit [Quit: leaving]
altaircg has quit []
altaircg has joined #ruby
altaircg has quit [Client Quit]
zast has quit [Remote host closed the connection]
altair118 has joined #ruby
chouhoul_ has joined #ruby
chihhsin has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
chouhoulis has quit [Ping timeout: 250 seconds]
Hobbyboy|BNC is now known as Hobbyboy
fedexo has joined #ruby
onlyme_ has quit [Remote host closed the connection]
altair11_ has joined #ruby
jackjackdripper has joined #ruby
altair118 has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
altair11_ has quit [Client Quit]
altair118 has joined #ruby
arlek has joined #ruby
Lucky__ has joined #ruby
JohnT has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
framling has quit [Remote host closed the connection]
alyssadaemon has joined #ruby
krz has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
jameser has joined #ruby
SweetSoulBro has joined #ruby
mdw has joined #ruby
<SweetSoulBro> Oh
<SweetSoulBro> Hi.
<SweetSoulBro> I come for assistance.
mdw has quit [Client Quit]
<Ox0dea> Prove it.
<alyssadaemon> SweetSoulBro: what's the issue?
<SweetSoulBro> Uh
<SweetSoulBro> Oh
<SweetSoulBro> Okay
<SweetSoulBro> So I'm trying to make a quick Combat character generator for my RPG.
<Ox0dea> SweetSoulBro: Your Enter key does not deserve the abuse.
<SweetSoulBro> I need to read specific lines from a txt file.
<Ox0dea> Are you sure?
<SweetSoulBro> Yes.
<alyssadaemon> Is there anything unique about the lines?
<SweetSoulBro> They're strings.
<Ox0dea> All strings?
jas02 has joined #ruby
<SweetSoulBro> The rest of the lines are ints.
<SweetSoulBro> No
<Ox0dea> You should use a better format.
kies^ has quit [Ping timeout: 272 seconds]
<SweetSoulBro> It goes string, int, int, string, int int, etc.
<Ox0dea> JSON or YAML, for instance.
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<SweetSoulBro> For a dice bot?
<Ox0dea> I don't see why not, but that format's pretty simple.
<alyssadaemon> I think SweetSoulBro wants to read some sort of input like IRC
c355e3b has quit [Quit: Connection closed for inactivity]
<SweetSoulBro> Nah, i got that covered already
<alyssadaemon> Am I correct?
<SweetSoulBro> It reads from txt files.
<alyssadaemon> Then I agree with Ox0dea, if you can control the output of the txt files, use that to your advantage
dionysus69 has joined #ruby
<SweetSoulBro> ALright, so basically the strings are the names of the 6 "Classes", the 2nd number is the base HP, and the third is the base attack bonus.
<SweetSoulBro> It repeats.
<Ox0dea> SweetSoulBro: How does this make you feel? https://eval.in/506219
<SweetSoulBro> I don't know what that is.
<Ox0dea> It's a solution to your problem, silly.
krz has joined #ruby
<SweetSoulBro> Huh.
sigurding has joined #ruby
<SweetSoulBro> Intresting.
<Ox0dea> Instead of DATA, you'll want something like File.open('stuff'), but it should suffice.
<SweetSoulBro> How did you do that?
<Ox0dea> Computer magicks.
<SweetSoulBro> :B My expertise is in hardware and a transformation servers.
<alyssadaemon> Ox0dea is a computer wizard, don't cha know
<SweetSoulBro> I don't know fuckall about programming.
<Ox0dea> Somebody thinks we didn't just stock up on troll food.
<SweetSoulBro> (Transformation as in from one file to another, thousands of times a second)
<SweetSoulBro> Huh
<SweetSoulBro> But yeah
<Ox0dea> Is that... copypasta?
<SweetSoulBro> That fixes the issue.
<SweetSoulBro> Here's the issue.
<Ox0dea> We've been duped.
<SweetSoulBro> THe reason I want to read JUST the strings is becasue-
<SweetSoulBro> Well
<SweetSoulBro> No.
<SweetSoulBro> I suppose this wokrs.
<SweetSoulBro> I want to put each thing into an array, basically
<SweetSoulBro> But yeah
<SweetSoulBro> I can do this.
<Ox0dea> You can do this.
<Ox0dea> You have the technology.
<apeiros> Ox0dea: I doubt they're a troll, no need to grill them ;-)
amclain has quit [Quit: Leaving]
<Ox0dea> Who's grillin'?
<SweetSoulBro> I'm not a troll.
<apeiros> you is grillin
<Ox0dea> You can't say they didn't come off a bit Markov chain-y back there.
<SweetSoulBro> If you want I can show you what I have so far
<SweetSoulBro> as far as the bot goes
<apeiros> a bit
<shevy> so many bots!
<SweetSoulBro> I made a few random generators(The gun generator is hardcoded, so forgive me)
<apeiros> SweetSoulBro: that goes a long way on irc :)
<SweetSoulBro> question
<SweetSoulBro> The whole slice thing
ohaibbq has joined #ruby
<Ox0dea> It slices.
<SweetSoulBro> Where's the api for that?
<Ox0dea> &ri Array#slice
<SweetSoulBro> I want to read up on that.
<SweetSoulBro> Danke.
<Ox0dea> Bitte.
krz has quit [Read error: Connection reset by peer]
<SweetSoulBro> And it's funny
<Ox0dea> &ri Array#each_slice
<Ox0dea> That's the one you want.
<SweetSoulBro> Cause ruby has no practical application at my job
<Ox0dea> Ruby is basically useless, amirite?
<SweetSoulBro> Not if you're a webdev.
<davidcelis> yeah
<davidcelis> if you're a webdev you should be learning Swift
<SweetSoulBro> I may code a isometric turn based strat game with it.
<SweetSoulBro> One day.
<Ox0dea> Why not hexagons?
<Ox0dea> Hexagons > voxels.
<SweetSoulBro> ?
<SweetSoulBro> I coudl do both.
<Ox0dea> Hexagonal voxels?! Contain the madness!
<SweetSoulBro> The RPG it would be built under supports both.
<SweetSoulBro> Lol
beast_ has joined #ruby
<SweetSoulBro> Oh
<SweetSoulBro> ANother question
<SweetSoulBro> What does | | do in ruby?
<Ox0dea> SweetSoulBro: It denotes block parameters.
bronson has joined #ruby
x77686d has quit [Quit: x77686d]
<SweetSoulBro> Huh.
<SweetSoulBro> Ok.
<SweetSoulBro> So this thing prints..basically the string, the int, and the int2
<SweetSoulBro> SO it reach each data chunk
<SweetSoulBro> slices it
<SweetSoulBro> and reds again?
<Ox0dea> SweetSoulBro: That was just to show you that you want #each_slice; the rest is up to your imagination.
<Ox0dea> But yeah, seems like you've got the idea.
<SweetSoulBro> Coo.
<SweetSoulBro> I can pass each one to it's own array.
<Ox0dea> Each what?
<SweetSoulBro> The strings go to an array
<SweetSoulBro> The HP goes to an array
<SweetSoulBro> and the BAB goes to an array
<Ox0dea> In that case, I have a present for you.
<SweetSoulBro> ?
<SweetSoulBro> I know I'm not explainign what I want to do right. I should try to at least.
<SweetSoulBro> :/
<alyssadaemon> I feel like a map is coming on
<Ox0dea> SweetSoulBro: Peep this fancy: https://eval.in/506220
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> What you needed was a matrix transposition!
<alyssadaemon> I forgot all about transpose xD
<Ox0dea> You'll probably want to `strs.map!(&:chomp)` and `hps.map!(&:to_i)`, but that'll about do it.
karapetyan has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 265 seconds]
krz has joined #ruby
<SweetSoulBro> what does that p do?
<Ox0dea> No idea.
<Ox0dea> I type it instinctively.
<alyssadaemon> prints the variable (like puts)
<SweetSoulBro> Oh
<SweetSoulBro> That's puts
<SweetSoulBro> herp
n00bdev has joined #ruby
<Ox0dea> No.
<SweetSoulBro> I am new :V
<alyssadaemon> It's not puts, it's like puts
mondok has joined #ruby
<SweetSoulBro> Oh
<SweetSoulBro> OH.
<SweetSoulBro> Okay.
<SweetSoulBro> Yes
<SweetSoulBro> that makes sense.
_djbkd has quit [Remote host closed the connection]
<SweetSoulBro> I see now.
<SweetSoulBro> You guys/girls are nice.
<SweetSoulBro> I appreciate all the help on my silly little project.
<alyssadaemon> Take care
CaptainAl has joined #ruby
<SweetSoulBro> I'm not leaving
<SweetSoulBro> :B
<alyssadaemon> Ah
<SweetSoulBro> I'm just thanking you
solars has joined #ruby
dexter-tzu has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
<SweetSoulBro> Hmn.
<SweetSoulBro> Ox0dea: You still here?
<Ox0dea> SweetSoulBro: In the metaphysical sense?/
<SweetSoulBro> Yes.
<Ox0dea> No.
<SweetSoulBro> Sad.
<SweetSoulBro> ALright, so I have a bit of an issue with the .transpose thing.
<SweetSoulBro> Lemme see if I can explain exactly what I'm trying to do.
ympeg has joined #ruby
<SweetSoulBro> The class listing in the txt file goes class(Str),hp(int1), bab(int2). The program then randomly(psudorandomly) picks one of the classes, which determines what HP and BAB the character gets. The program THEN randomlly generates a random level for the character within set parameters(In a different text file), while also generating six additional ability scores(I got that part down)
juddey has joined #ruby
<SweetSoulBro> The level determines the BAB, and HP, which is modified, positively or negatively, by the the ablity scores it generates.
dfinninger has joined #ruby
LMity has joined #ruby
toretore has quit [Ping timeout: 264 seconds]
tmtwd has quit [Remote host closed the connection]
<Ox0dea> SweetSoulBro: Whence comes the requirement that your data be stored in flat text files?
<SweetSoulBro> Easily modifiable without having to close down and reopen the text file.
<SweetSoulBro> er
<SweetSoulBro> the program
<SweetSoulBro> since it's a dicebot.
<Ox0dea> Wat.
<SweetSoulBro> I can just delete a thing in the text file.
<SweetSoulBro> And it will show up/be changed when i use the command
<SweetSoulBro> to trigger that particular generator
yfeldblum has quit [Ping timeout: 265 seconds]
dfinninger has quit [Ping timeout: 240 seconds]
agit0 has quit [Quit: zzzZZZ….]
<SweetSoulBro> ...?
hayden_ has joined #ruby
iateadonut has quit [Remote host closed the connection]
<Ox0dea> >> Array.new(5) { rand 6 }.reduce('') { |s, d| s + '' << 0x2680 + d }
<ruby[bot]> Ox0dea: # => "⚄⚅⚀⚅⚀" (https://eval.in/506250)
<Ox0dea> Yahtzee!
<Ox0dea> Wait, no.
pawnbox__ has quit [Remote host closed the connection]
CaptainAl has quit [Quit: CaptainAl]
<SweetSoulBro> Wat.
<SweetSoulBro> Ox0dea: ANy ideas?
<Ox0dea> SweetSoulBro: Write some code.
<SweetSoulBro> lol
<SweetSoulBro> Alright.
<SweetSoulBro> I'll use what you gave me
<Ox0dea> I shouldn't have.
<SweetSoulBro> ?
<SweetSoulBro> WHy?
<Ox0dea> You really ought to impose more structure on your data.
<SweetSoulBro> ?
<Ox0dea> It's just much less painful in the long run.
<SweetSoulBro> I don't know what that means
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
<alyssadaemon> YAML / JSON instead of flat text files, for starters.
sandstrom has joined #ruby
SOLDIERz has joined #ruby
<SweetSoulBro> I don't know how to do that.
<alyssadaemon> Assuming you have a setup where people can save characters, that would be super valuable
karapetyan has joined #ruby
<SweetSoulBro> I don't, actually.
<SweetSoulBro> This was for the GM.
<SweetSoulBro> basically generat
<SweetSoulBro> gen and copy paste.
<alyssadaemon> GMs do need NPCs though, anyway, getting off track
<alyssadaemon> YAML is baked into ruby
<SweetSoulBro> Alright.
<SweetSoulBro> Hmn.
djbkd_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
<SweetSoulBro> This works for a non-IRC issue.
last_staff has joined #ruby
karapetyan has joined #ruby
<alyssadaemon> An issue you didn't bring up in IRC, or an issue that does not deal with IRC?
mic_e has joined #ruby
<SweetSoulBro> I guess the issue with IRC is everything's gotta be a single sentence
<SweetSoulBro> so that you don't spam chat lines.
altair11_ has joined #ruby
<SweetSoulBro> I like yaml
<alyssadaemon> The class txt file is generated in the backend or is provided to the bot without need of transfering over IRC right?
<SweetSoulBro> It's made by me
<SweetSoulBro> So..yes?
Pupp3tm4st3r has joined #ruby
<alyssadaemon> Then you don't need to worry about transmitting the file over IRC, it can be a yaml file
<SweetSoulBro> Oh
<SweetSoulBro> yeah, I said that wrong.
<SweetSoulBro> Printing to irc.
<Ox0dea> logs $ grep -v -- -- irc.freenode.#ruby.weechatlog | tail -100 | grep -c Soul
<SweetSoulBro> That's what I meant
<Ox0dea> 69
dopie has quit [Quit: Lost terminal]
<Ox0dea> New record, I think.
dn` has joined #ruby
<alyssadaemon> Of talking, or mentions?
<SweetSoulBro> Talking.
<SweetSoulBro> Like
firstdayonthejob has joined #ruby
<SweetSoulBro> !combatNPC
karapetyan has quit [Ping timeout: 245 seconds]
<SweetSoulBro> Prints "I gneerate a combat NPC, blah blah blah"
altair118 has quit [Ping timeout: 240 seconds]
<Ox0dea> alyssadaemon: Well, that caught both, but it's obviously almost entirely the former.
dopie has joined #ruby
<alyssadaemon> Sorry, I talking to Ox0dea, I forgot to put their name in the chat.
<SweetSoulBro> Ah
rkazak has joined #ruby
mic_e has quit [Ping timeout: 272 seconds]
<alyssadaemon> SweetSoulBro: You don't have to print the yaml file. You can just print the important data itself.
<SweetSoulBro> Oh
<SweetSoulBro> :/
<SweetSoulBro> This is getting complicated.
krz has quit [Ping timeout: 264 seconds]
dopie has quit [Client Quit]
krz has joined #ruby
<SweetSoulBro> So
<SweetSoulBro> QUestion
<SweetSoulBro> with yaml
<SweetSoulBro> Can I just...call a thing?
<SweetSoulBro> Like just read a-
<SweetSoulBro> Hmn
<SweetSoulBro> ALright
<Ox0dea> SweetSoulBro: https://eval.in/506270
<Ox0dea> Look at all that structure!
SCHAAP137 has joined #ruby
jamto11 has quit [Remote host closed the connection]
<SweetSoulBro> Okay. How do I get all taht in a single sentence?
<Ox0dea> ?
<SweetSoulBro> It's an IRC dicebot.
<SweetSoulBro> I want it to spit out a sentence when I speek a command.
kp666 has joined #ruby
<SweetSoulBro> speak*
puria has joined #ruby
kp666 has quit [Max SendQ exceeded]
<alyssadaemon> You mean like: "The Knight's BAB is 10"?
<SweetSoulBro> Yes.
<Ox0dea> Learn you some Ruby. :)
kp666 has joined #ruby
<SweetSoulBro> :B
<alyssadaemon> How much ruby do you know, SweetSoulBro?
<SweetSoulBro> Very little.
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agit0 has joined #ruby
<SweetSoulBro> THis is a learning project.
<SweetSoulBro> I was using this to figgure out selection from a file, and arrays.
<SweetSoulBro> This specific project, rather.
<Ox0dea> I'd say that was your first mistake, but at least now you know how not to do it.
<SweetSoulBro> ?
<SweetSoulBro> I didn't even know how to start it.
jamto11_ has joined #ruby
<SweetSoulBro> Now at least I can slice it up
<SweetSoulBro> Honestly I could just put all three values in different files, read from it, and go about it that way
<SweetSoulBro> but that's lazy
<SweetSoulBro> and bad.
<SweetSoulBro> So
<alyssadaemon> One sec
finisherr has joined #ruby
LMity has quit [Ping timeout: 250 seconds]
fn2187_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
parus has quit [Ping timeout: 265 seconds]
Dimik has joined #ruby
jaiks has joined #ruby
baweaver has quit [Remote host closed the connection]
neanderslob has quit [Ping timeout: 240 seconds]
<SweetSoulBro> Mmhm
neanderslob has joined #ruby
beast has quit [Ping timeout: 256 seconds]
<SweetSoulBro> what does the .keys do?
aufi has joined #ruby
beast_ has quit [Ping timeout: 256 seconds]
<SweetSoulBro> Also
<SweetSoulBro> Awesome.
<SweetSoulBro> Thaink you
<SweetSoulBro> This is exactly the kind of example I needed
<alyssadaemon> So, when you parse YAML (or JSON) it becomes a Hash
<SweetSoulBro> Mmhm.
jameser` has joined #ruby
<SweetSoulBro> Thanks
<SweetSoulBro> can i save this
<SweetSoulBro> or bookmark it?>
<alyssadaemon> I imagine you can
<SweetSoulBro> Cool.
<alyssadaemon> A hash is like an array, but is named (so instead of classes[0] it's classes["Knight"])
altair11_ has quit []
<SweetSoulBro> ...That's actually kinda cool
jameser has quit [Ping timeout: 276 seconds]
<SweetSoulBro> so instead of my string int int bullshit.
<SweetSoulBro> I can just have it look more readable.
<alyssadaemon> In order to use the sample function (which pulls an element at pseudorandom), I need to grab the 'name' of the Hash
codecop has joined #ruby
<SweetSoulBro> Mmhm.
<SweetSoulBro> I've used sample before.
jam_ has joined #ruby
<SweetSoulBro> WOrks for arrays or txt files
<SweetSoulBro> Or any file.
<alyssadaemon> The keys function makes an array of the 'names' (called keys, btw)
adgtl has quit [Remote host closed the connection]
<alyssadaemon> I'm sure Ox0dea could do it better with fewer lines of code.
elaptics`away is now known as elaptics
pawnbox has joined #ruby
<Ox0dea> alyssadaemon: I think you did much better with the student than I could've. Just wanted to voice my appreciation on that front.
<SweetSoulBro> I can work with this
<SweetSoulBro> thanks
jam_ has quit [Ping timeout: 240 seconds]
fn2187 has joined #ruby
<alyssadaemon> Thank you Ox0dea.
<alyssadaemon> SweetSoulBro: no problem
adgtl has joined #ruby
tmtwd has joined #ruby
<SweetSoulBro> Cool
<SweetSoulBro> I'm out
SweetSoulBro has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
lkba has joined #ruby
puria has quit [Ping timeout: 276 seconds]
adgtl has quit [Remote host closed the connection]
graphettion has quit [Read error: Connection reset by peer]
jamto11_ has quit [Remote host closed the connection]
adgtl has joined #ruby
juddey has quit [Ping timeout: 240 seconds]
gagrio has joined #ruby
r0bby_ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
blackgoat has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
iateadonut has joined #ruby
r0bby_ has joined #ruby
krzkrz has joined #ruby
pawnbox has quit [Remote host closed the connection]
krz has quit [Ping timeout: 276 seconds]
dfinninger has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jameser` has quit [Ping timeout: 256 seconds]
blackgoat has quit [Client Quit]
frem has quit [Quit: Connection closed for inactivity]
jgt has joined #ruby
puria has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
dfinninger has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
oivoodoo has joined #ruby
djbkd_ has quit [Remote host closed the connection]
sepp2k has joined #ruby
djellemah_ has quit [Ping timeout: 264 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
lindistock has joined #ruby
antgel has joined #ruby
adgtl has quit [Remote host closed the connection]
arup_r has quit []
last_staff1 has joined #ruby
symm- has quit [Ping timeout: 245 seconds]
ympeg has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
futilegames has joined #ruby
last_staff has quit [Ping timeout: 256 seconds]
last_staff1 is now known as last_staff
araujo_ has joined #ruby
araujo has quit [Ping timeout: 240 seconds]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
Outlastsheep has quit [Ping timeout: 264 seconds]
ohaibbq has quit [Quit: Leaving...]
andikr has joined #ruby
Lycaonian has quit [Ping timeout: 256 seconds]
sandstrom has joined #ruby
Lycaonian has joined #ruby
pawnbox has joined #ruby
bluOxigen has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmolina has joined #ruby
futilegames has quit [Quit: futilegames]
antgel has quit [Ping timeout: 276 seconds]
CloCkWeRX has joined #ruby
tmtwd has quit [Remote host closed the connection]
bluOxigen_ has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
kp666 has quit [Ping timeout: 260 seconds]
nofxx has quit [Ping timeout: 276 seconds]
devbug has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
yos7ph has joined #ruby
chipotle has quit [Quit: cheerio]
devbug has joined #ruby
devbug has quit [Read error: Connection reset by peer]
jbrhbr has joined #ruby
zenlot1 is now known as zenlot
yfeldblum has joined #ruby
adgtl has joined #ruby
bronson has joined #ruby
ferr has joined #ruby
djellemah has joined #ruby
adgtl has quit [Remote host closed the connection]
drptbl has joined #ruby
adgtl has joined #ruby
mark1 has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
nhhagen has joined #ruby
Xeago has joined #ruby
arcanemethods has joined #ruby
dopie has joined #ruby
maloik has joined #ruby
dopie has quit [Client Quit]
<maloik> Hiya, it has been a while!
sftrabbit has joined #ruby
arcanemethods has quit [Quit: Textual IRC Client: www.textualapp.com]
vondruch has joined #ruby
huyderman has joined #ruby
karapetyan has joined #ruby
haraoka has quit [Ping timeout: 265 seconds]
alyssadaemon has quit [Remote host closed the connection]
xescugc has joined #ruby
mic_e has joined #ruby
<ljarvis> hello
arcane-methods has joined #ruby
<xescugc> hello
adgtl_ has joined #ruby
samgerber has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
arcane-methods has quit [Client Quit]
Dimik has quit [Ping timeout: 265 seconds]
r0bby_ is now known as robbyoconnor
adgtl has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
ajf- has joined #ruby
araujo_ has quit [Quit: Leaving]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
yaewa has joined #ruby
toretore has joined #ruby
astrobu__ has joined #ruby
yos7ph has quit [Quit: Leaving]
chthon has joined #ruby
srenatus has joined #ruby
moei has quit [Ping timeout: 276 seconds]
Lycaonian has quit [Ping timeout: 256 seconds]
Lycaonian has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
toretore has joined #ruby
maloik has quit [Quit: Bye!]
PedramT has joined #ruby
maloik has joined #ruby
maloik has quit [Client Quit]
radgeRayden_ has joined #ruby
PedramT_ has joined #ruby
PedramT_ has quit [Remote host closed the connection]
Snowy has joined #ruby
PedramT_ has joined #ruby
radgeRayden has quit [Ping timeout: 276 seconds]
arcane-methods has joined #ruby
arcane-methods has quit [Max SendQ exceeded]
arcane-methods has joined #ruby
User458764 has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
Xeago has quit [Read error: Connection reset by peer]
arcane-methods has quit [Max SendQ exceeded]
rdark has joined #ruby
c0der0x has quit [Ping timeout: 256 seconds]
arcane-methods has joined #ruby
f4cl3y has joined #ruby
karapetyan has joined #ruby
arcane-methods has quit [Max SendQ exceeded]
ESpiney has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
vdamewood has joined #ruby
PedramT has joined #ruby
arcane-methods has joined #ruby
oivoodoo has quit [Remote host closed the connection]
ESpiney_ has quit [Ping timeout: 240 seconds]
PedramT has quit [Remote host closed the connection]
Burgestrand has joined #ruby
PedramT has joined #ruby
PedramT_ has quit [Ping timeout: 240 seconds]
toretore has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
rodfersou has joined #ruby
kp666 has joined #ruby
PedramT_ has joined #ruby
kp666 has quit [Max SendQ exceeded]
c0d3r0x has joined #ruby
kp666 has joined #ruby
c0d3r0x has quit [Max SendQ exceeded]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kp666 has quit [Max SendQ exceeded]
c0d3r0x has joined #ruby
astrobu__ has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 250 seconds]
arlek has quit [Ping timeout: 250 seconds]
kp666 has joined #ruby
blaxter has joined #ruby
PedramT__ has joined #ruby
kp666 has quit [Max SendQ exceeded]
PedramT has quit [Ping timeout: 256 seconds]
kp666 has joined #ruby
dlitvak has joined #ruby
kp666 has quit [Max SendQ exceeded]
PedramT_ has quit [Ping timeout: 245 seconds]
kp666 has joined #ruby
timonv has quit [Quit: WeeChat 1.3]
timonv has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
astrobu__ has joined #ruby
shredding has joined #ruby
kp666 has quit [Max SendQ exceeded]
baweaver has joined #ruby
Amnez777- has quit [Changing host]
Amnez777- has joined #ruby
FernandoBasso has joined #ruby
Xeago has joined #ruby
karapetyan has quit [Remote host closed the connection]
arcane-methods has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT__ has quit [Remote host closed the connection]
timonv has quit [Client Quit]
timonv has joined #ruby
arlek has joined #ruby
livcd has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
arcane-methods has joined #ruby
jam_ has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
dlitvak has quit [Remote host closed the connection]
n00bdev has quit [Remote host closed the connection]
Outlastsheep has joined #ruby
<livcd> I have problem installing (building native extensions for nokogiri) rails in a docker container. Similar to this: https://github.com/sparklemotion/nokogiri/issues/1370
PedramT has joined #ruby
jam_ has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
Xeago has quit [Remote host closed the connection]
adgtl_ has quit [Remote host closed the connection]
darkxploit has quit [Ping timeout: 250 seconds]
adgtl has joined #ruby
troulouliou_div2 has joined #ruby
drptbl has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Ping timeout: 276 seconds]
PedramT has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbrhbr has quit [Quit: Leaving.]
PedramT_ has joined #ruby
mondok has left #ruby ["Leaving"]
blaxter has quit [Quit: foo]
arup_r has joined #ruby
PedramT__ has joined #ruby
DirtyFinn has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
ferr has quit [Ping timeout: 245 seconds]
PedramT__ has quit [Remote host closed the connection]
dwfait has joined #ruby
tens0r has joined #ruby
PedramT has quit [Ping timeout: 265 seconds]
beast has joined #ruby
dfinninger has joined #ruby
PedramT_ has quit [Ping timeout: 272 seconds]
PedramT has joined #ruby
PedramT_ has joined #ruby
darkxploit has joined #ruby
saneax_AFK is now known as saneax
Averna has quit [Ping timeout: 245 seconds]
tulak has joined #ruby
dfinninger has quit [Ping timeout: 265 seconds]
saneax is now known as Guest32289
PedramT has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
PedramT_ has quit [Remote host closed the connection]
PedramT_ has joined #ruby
nofxx has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
nofxx has quit [Changing host]
nofxx has joined #ruby
guardian has quit [Quit: Coyote finally caught me]
guardian has joined #ruby
ldnunes has joined #ruby
tens0r has quit [Quit: tens0r]
astrobu__ has quit [Remote host closed the connection]
astrobunny has joined #ruby
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
PedramT_ has quit [Remote host closed the connection]
usershell has quit [Read error: Connection reset by peer]
c0d3r0x has quit [Ping timeout: 245 seconds]
usershell has joined #ruby
adgtl has quit [Remote host closed the connection]
arcane-methods has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
mdw has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
mrtomme_ has quit [Ping timeout: 248 seconds]
tulak has quit [Remote host closed the connection]
mrtomme has joined #ruby
Azulinho has joined #ruby
gbgdev has joined #ruby
Anderson69s_Deb has quit [Ping timeout: 250 seconds]
hannelita has joined #ruby
big|bad|wolf has joined #ruby
oivoodoo has joined #ruby
PedramT has joined #ruby
Anderson69s_Deb has joined #ruby
<livcd> hmm do i need llzma for nokogiri ?
Ishido has joined #ruby
Azulinho has quit [Quit: Azulinho]
PedramT has quit [Ping timeout: 256 seconds]
Azulinho has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
c0d3r0x has joined #ruby
c0d3r0x has quit [Max SendQ exceeded]
platzhirsch has left #ruby [#ruby]
c0d3r0x has joined #ruby
c0d3r0x has quit [Max SendQ exceeded]
c0d3r0x has joined #ruby
c0d3r0x has quit [Max SendQ exceeded]
c0d3r0x has joined #ruby
c0d3r0x has quit [Max SendQ exceeded]
c0d3r0x has joined #ruby
minimalism has joined #ruby
PedramT has joined #ruby
marr has joined #ruby
n00bdev has joined #ruby
Anderson69s_Deb has quit [Ping timeout: 264 seconds]
Azulinho has quit [Quit: Azulinho]
oivoodoo has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
Azulinho has joined #ruby
oivoodoo has joined #ruby
karapetyan has joined #ruby
Arnvald has quit [Remote host closed the connection]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azulinho has quit [Client Quit]
tobacco_joe has joined #ruby
oivoodoo has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
Azulinho has joined #ruby
anisha_ has joined #ruby
oivoodoo has joined #ruby
n00bdev has quit [Ping timeout: 250 seconds]
PedramT has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Quit: tjbiddle]
karapetyan has quit [Ping timeout: 245 seconds]
tobacco_joe has quit [Remote host closed the connection]
Anderson69s_Deb has joined #ruby
c0ncealed has quit [Remote host closed the connection]
jbrhbr has joined #ruby
c0ncealed has joined #ruby
akkmaxon has joined #ruby
ramfjord has joined #ruby
dlitvak has joined #ruby
ziyadb has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<kedare> Is there any working ruby planet ? All the ones I knew are kind of dead... ( http://planetruby.0x42.net/ and http://www.planetrubyonrails.org/ )
djellemah_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
whippythellama has quit [Ping timeout: 272 seconds]
djellemah has quit [Ping timeout: 240 seconds]
Azulinho has quit [Ping timeout: 272 seconds]
FooMunki has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Ox0dea> kedare: I think this is about as good as it gets nowadays: http://rubyweekly.com/issues
<kedare> Nice :)
<kedare> Thanks
<Ox0dea> Sure thing. :)
anisha_ has quit [Quit: This computer has gone to sleep]
futilegames has joined #ruby
anisha_ has joined #ruby
futilegames has quit [Client Quit]
oivoodoo has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
oivoodoo has joined #ruby
krzkrz has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
oivoodoo has quit [Read error: Connection reset by peer]
PedramT has quit [Ping timeout: 260 seconds]
dlitvak has quit [Ping timeout: 256 seconds]
jamto11 has joined #ruby
oivoodoo has joined #ruby
jamto11 has quit [Client Quit]
jottr has joined #ruby
PedramT has joined #ruby
usershell has quit [Read error: Connection reset by peer]
joncol has joined #ruby
usershell has joined #ruby
Azure has quit [Quit: Oops.]
vikas027 has joined #ruby
oivoodoo has quit [Remote host closed the connection]
Azure has joined #ruby
PedramT has quit [Ping timeout: 265 seconds]
PedramT has joined #ruby
Azulinho has joined #ruby
Shaboum has joined #ruby
<joncol> What's a good way of deploying a Ruby application, when Windows is the target OS? Should I rely on Ruby being installed or use something like phusion/traveling-ruby to include the platform in the package...?
mdw has joined #ruby
blackmes1 has joined #ruby
platzhirsch has left #ruby [#ruby]
PedramT has quit [Remote host closed the connection]
dlitvak has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
mdw has quit [Client Quit]
<workmad3> joncol: if you're targeting windows, you probably want to somehow ensure ruby is installed with your package
jaiks has quit [Ping timeout: 250 seconds]
PedramT has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
big|bad|wolf has joined #ruby
<Ox0dea> joncol: "Rely" probably isn't the word, but best really is to counsel your users to have a working Ruby installation before trying to run your thing.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> joncol: I haven't actually used Traveling Ruby on Windows but I think that's worth a shot!
tobacco_joe has joined #ruby
<havenwood> Assuming the Win support is far enough along.
BTRE has quit [Quit: Leaving]
casadei has joined #ruby
<Ox0dea> http://phusion.github.io/traveling-ruby/img/logo.png What's the reasoning behind the rotated alphabet, do you reckon?
sftrabbit has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
samgerber has quit [Remote host closed the connection]
jschoolcraft has quit [Quit: peace]
Pupp3tm4st3r has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
jam_ has joined #ruby
Pupp3tm4st3r has joined #ruby
whippythellama has joined #ruby
c355e3b has joined #ruby
jespada has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 272 seconds]
n00bdev has joined #ruby
<havenwood> Ox0dea: And did they rotate 2 or -1?
<Ox0dea> havenwood: Aha!
jam_ has quit [Ping timeout: 245 seconds]
<Ox0dea> My level of bafflement is invariant in that regard.
<Ox0dea> It would've been RGB, even!
Pupp3tm4st3r has quit [Ping timeout: 264 seconds]
tobacco_joe has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
tulak has joined #ruby
Pupp3tm4st3r has joined #ruby
n00bdev has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
tobacco_joe has joined #ruby
big|bad|wolf has joined #ruby
burbus has joined #ruby
Burgestrand has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
robh71 has joined #ruby
joonty has joined #ruby
robh71 has quit [Client Quit]
robh71 has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
arup_r has quit [Remote host closed the connection]
ferr has joined #ruby
<jottr> Hi all.
<Ox0dea> Hey, jottr.
<jottr> I must have some issue with the json gem (I believe). When I run rake db:migrate RAILS_ENV=test I see the following crash log: https://gist.github.com/jottr/2442688950d912f3ec60
<jottr> Does someone have an idea how I could debug this?
lucasb has joined #ruby
scripore has joined #ruby
Psy-Q has left #ruby ["..."]
krzkrz has joined #ruby
<Eising> jottr: have you tried updating the json gem?
<Eising> there's an 1.8.3 out there
<havenwood> jottr: Try?: RAILS_ENV=test bundle exec rake db:migrate
<chrisseaton> jottr: attach GDB?
akkmaxon has quit [Quit: akkmaxon]
IanV0rn2341 has joined #ruby
ferr has quit [Ping timeout: 276 seconds]
futilegames has joined #ruby
arup_r has joined #ruby
<jottr> havenwood: problem remains. and Eising problem remains with 1.8.3
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
aupadhye has joined #ruby
sandstrom has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
astrobunny has quit [Remote host closed the connection]
big|bad|wolf has joined #ruby
nhhagen has quit []
Ishido has quit [Ping timeout: 250 seconds]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
oivoodoo has joined #ruby
last_staff has quit [Quit: last_staff]
dionysus69 has joined #ruby
oivoodoo has quit [Remote host closed the connection]
Jardayn has joined #ruby
dlitvak_ has joined #ruby
pawnbox has joined #ruby
Ishido has joined #ruby
Ishido has quit [Remote host closed the connection]
aryaching has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
<jottr> Something must be really messed up with my setup. https://gist.github.com/jottr/669b276076a323005392
arup_r has joined #ruby
mdw has quit [Ping timeout: 264 seconds]
adgtl has joined #ruby
<jottr> Could this be an issue with my rbenv?
jackjackdripper has quit [Quit: Leaving.]
andrey has quit [Remote host closed the connection]
mdw has joined #ruby
lessless has joined #ruby
Ishido has joined #ruby
samgerber has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<jottr> Thats so weird. Why would `bundle install` not run because it `can't find rake in any of the sources`....
Xeago_ has joined #ruby
User458764 has joined #ruby
sdothum has joined #ruby
14WAAR304 has joined #ruby
<blarghlarghl> Does anyone have any insight on why mkmf's find_header would be failing to find a header when it definitely exists on the system? I'm giving it an absolute path even, and it keeps saying "checking for <x>... no"
blackmes1 has joined #ruby
khaki has joined #ruby
bahar has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hogetaro has joined #ruby
hogetaro has quit [Client Quit]
skade has joined #ruby
_August_ has joined #ruby
hogetaro_ has quit [Ping timeout: 250 seconds]
n00bdev has joined #ruby
usershell has quit [Remote host closed the connection]
usershell has joined #ruby
arlek has quit [Ping timeout: 265 seconds]
<Mon_Ouie> Not sure find_header accepts absolute paths, have you tried find_header("foo.h", "/directory/to/file/")?
<blarghlarghl> Mon_Ouie: Yep!
blackmes1 has quit [Ping timeout: 250 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
samgerber has quit [Remote host closed the connection]
<blarghlarghl> Mon_Ouie: that last approach at least lets me also specify lots of directories, so I went and specified all of the parent dirs to search, too. Nothing.
synthroid has joined #ruby
drptbl has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie> These functions work by trying to compile a simple program to see if the file can be included (as opposed to checking for the existence of a file), maybe you need to add values to your FLAGS before calling find_header for the test program to compile properly?
_August_ has quit [Ping timeout: 240 seconds]
<blarghlarghl> Mon_Ouie: ahh, interesting. okay, I'll go play with that, that's good to know.
xescugc has quit [Ping timeout: 260 seconds]
n00bdev has quit [Ping timeout: 250 seconds]
khaki has left #ruby ["Leaving"]
<blarghlarghl> Mon_Ouie: Aha. It _does_ "find" it, but as you suggested, it can't include it. Digging around, I can see that it's failing because "fatal error: cstring: No such file or directory"
mdw has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
<Mon_Ouie> Aha, so I guess you need to add CFLAGS to make it compile as C++?
mdw has joined #ruby
<blarghlarghl> Mon_Ouie: Yes, likely. Or libstdc++ is missing or something - but I highly doubt that.
<Mon_Ouie> I don't think it tries to link the produced object file when you use find_header
bluOxigen has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
usershell has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
[adaedra] has joined #ruby
<[adaedra]> Hello
dlitvak has joined #ruby
c0d3r0x has quit [Quit: Leaving]
<blarghlarghl> Mon_Ouie: with_cflags("-x c++") did the trick!
rippa has joined #ruby
dlitvak_ has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
beast_ has joined #ruby
karapetyan has joined #ruby
treaki has joined #ruby
tobacco_joe has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
joonty has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
sftrabbit has joined #ruby
mfb2 has joined #ruby
[adaedra] has quit [Quit: Page closed]
sftrabbit has quit [Client Quit]
griffindy has joined #ruby
chipotle has quit [Ping timeout: 276 seconds]
Rickmasta has joined #ruby
futilegames has quit [Quit: futilegames]
chipotle has joined #ruby
sftrabbit has joined #ruby
hnagamin has joined #ruby
chipotle has quit [Max SendQ exceeded]
jaiks has joined #ruby
sepp2k has quit [Quit: Leaving.]
joonty has joined #ruby
sgambino has joined #ruby
dfinninger has joined #ruby
Jackneill has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
adgtl_ has joined #ruby
IanV0rn2341 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jardayn_two has joined #ruby
blackmes1 has joined #ruby
Jardayn has quit [Disconnected by services]
Jardayn_two is now known as Jardaynb
Jardaynb is now known as Jardayn
mfb2 has quit [Remote host closed the connection]
sepp2k has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
adgtl has quit [Ping timeout: 260 seconds]
IanV0rn2341 has joined #ruby
sftrabbit has joined #ruby
cvusr has joined #ruby
<cvusr> what is the diff between ' and " in ruby ?
<blarghlarghl> " can be used to interpolate variables. ' cannot.
chipotle has quit [Max SendQ exceeded]
_August_ has joined #ruby
<apeiros> also within ', only \\ and \' are escape sequences
<apeiros> the rest is literally a backslash followed by a char
<apeiros> >> puts '\t'
<ruby[bot]> apeiros: # => \t ...check link for more (https://eval.in/506438)
<apeiros> >> puts '"\t"
<ruby[bot]> apeiros: # => /tmp/execpad-a3a80b022a83/source-a3a80b022a83:2: unterminated string meets end of file ...check link for more (https://eval.in/506439)
<apeiros> whoops
DoubleMalt has quit [Remote host closed the connection]
<apeiros> >> puts "\t"
<ruby[bot]> apeiros: # => ...check link for more (https://eval.in/506440)
chipotle has joined #ruby
<cvusr> thanks, any recommended python -> ruby cheat sheat ?
<cvusr> sheet
<apeiros> not really a python -> ruby cheatsheet, but otherwise quite useful:
<apeiros> ?quickref cvusr
mfb2 has joined #ruby
shinnya has joined #ruby
emilford has joined #ruby
BTRE has joined #ruby
ramortegui has joined #ruby
kalopsian has joined #ruby
krzkrz has quit [Ping timeout: 240 seconds]
Pupp3tm4st3r has quit [Ping timeout: 250 seconds]
bMalum has joined #ruby
bMalum has quit [Client Quit]
dfinninger has quit [Remote host closed the connection]
hxegon has joined #ruby
DirtyFinn has quit []
gbgdev has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
kalopsian has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
hannelita has quit [Remote host closed the connection]
sftrabbit has quit [Quit: sftrabbit]
d10n-work has joined #ruby
Almoullim has joined #ruby
_August_ has quit [Quit: Leaving.]
hxegon has quit [Ping timeout: 272 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
dlitvak_ has joined #ruby
<cvusr> why is it elsif ?? :)
jam_ has joined #ruby
whippythellama has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
dwfait has quit [Remote host closed the connection]
drptbl has joined #ruby
<apeiros> because that's what matz decided it to be
<apeiros> could ask the same for python - why elif?
* apeiros actually prefers C/C++' `else if`
<havenwood> cvusr: Ada had it that way in 1983 but somewhere along the line Python lost an "s"!
mdw has joined #ruby
tildes has joined #ruby
norc has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<havenwood> at least pronouncing elsif turns out well
<havenwood> elif?
dlitvak has quit [Ping timeout: 276 seconds]
<norc> Shows me how much I know. I just began to understand what the GIL really is, and how many myths revolve around it.
n00bdev has joined #ruby
jam_ has quit [Ping timeout: 265 seconds]
<havenwood> norc: The GIL is dead, long live the GVL!
kalopsian has joined #ruby
<havenwood> norc: :P
<cvusr> i once tried to remove python's GIL in the source code :)
<Ox0dea> "<x> is dead, long live <x>!" is dead, long live "<x> is dead, long live <x>!".
<Ox0dea> Welcome to SICP 101.
<Ox0dea> sjums: It's metacircular, I think?
tildes has quit [Ping timeout: 260 seconds]
<norc> havenwood: Heh.
* Ox0dea hides his pristine copy of The Little Schemer.
nertzy2 has joined #ruby
<Ox0dea> norc: I'm doing a very naughty.
<norc> I am curious though what part of Ruby it protects.
treehug88 has joined #ruby
<cvusr> https://gist.github.com/tzickel/f153280ee390d8e351b2 <-- any way to make this more ruby ? (my first ruby code)
<norc> Ox0dea: Tell me more
B1n4r10 has joined #ruby
<Ox0dea> norc: It must presently suffice to say that I'm using gensyms in a C extension. ^_^
<Ox0dea> (Because I have to.)
n00bdev has quit [Ping timeout: 250 seconds]
<Ox0dea> By which I mean to say that I'm almost certain it's the only way to do it.
bensarz has joined #ruby
14WAAR304 has quit [Remote host closed the connection]
oivoodoo has joined #ruby
zerowaitstate has joined #ruby
<cvusr> is it ruby enough ?
mdw has quit [Ping timeout: 272 seconds]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie> Does x[21..23] actually work? Even if HOMEBREW_PREFIX changes?
domgetter has joined #ruby
<cvusr> Mon_Ouie: nop, thats a bug i'm already fixing :)
whippythellama has joined #ruby
<Mon_Ouie> I'd probably use Dir.glob(…) do … end instead of Dir[…].each do … end but apart from that it looks fine
dlitvak has joined #ruby
<Almoullim> Hello
JohnT has joined #ruby
<Almoullim> If anyone wont be botherd to answer, could you tell why ruby is the right language for you/
<Almoullim> ?
<cvusr> Mon_Ouie: i'm keeping the style of the whole script which is like that
beast_ has quit [Quit: Leaving]
dwfait has joined #ruby
<Almoullim> no need for complications, just simple answers :D
DoubleMalt has joined #ruby
<cvusr> Almoullim: because I must submit a patch to a project written in ruby :)
<shevy> Almoullim it maps easily to simple thinking
JohnT has quit [Client Quit]
kalopsian has quit [Quit: leaving]
kalopsian has joined #ruby
fmcgeough has joined #ruby
krzkrz has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
chthon has quit [Quit: Ex-Chat]
joonty has quit [Quit: Leaving]
<Almoullim> if it is not fair to ask, please, do not answer. Would you say that ruby is better than Python, or every language has it own purposes.
dlitvak_ has quit [Ping timeout: 250 seconds]
<shevy> what's with those strange disclaimers
<cvusr> better for what ? python has stuff that ruby almost doesn't have which is a major scientific community
<Almoullim> LOL, i asked almost the same question in another channel and they almost ate me alive
<Almoullim> sorry, for Web Applications
davedev24 has joined #ruby
tildes has joined #ruby
Xeago has joined #ruby
<shevy> yeah ruby is better than python
<cvusr> both have stuff from flask / sinatra up to rails / django
VeryBewitching has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
<norc> Almoullim: Languages are like editors or religion. Pick one you like, but try not to discuss your choice.
<VeryBewitching> Good morning folks.
tulak has quit []
<ddv> also you're in Ruby do you think we are going to recommend Python?
hogetaro has joined #ruby
hahuang65 has joined #ruby
adgtl has joined #ruby
<Almoullim> I will search about the both languages but i just wanted to see some opinions on them
<Ox0dea> Almoullim: Why?
<norc> Almoullim: Would you go into a VW shop and ask their opinion about Mercedes Benz?
<Almoullim> i know thats why i asked, i wanted to know why do you prefer ruby
<norc> Or would you go into a VW shop and ask them whether VW is good?
<ddv> DHH explains it fairly well why the philosophy of Ruby is better than Python: http://rubyonrails.org/doctrine/
mdw has joined #ruby
<Almoullim> and i will se why python people prefer their language and then i will decide based on that and more search on google.
<norc> ddv: I stopped reading after DHH. Can you summarise your sentence?
<norc> ;-)
lindistock has quit [Remote host closed the connection]
<ddv> norc: no you can troll elsewhere
dexter-tzu has quit [Ping timeout: 265 seconds]
dwfait has quit [Remote host closed the connection]
<norc> ddv: I am just very allergic to the name since he just shoves Basecamp down every Rails users throat.
<Ox0dea> DHHIMASWAM.
dfinninger has joined #ruby
<VeryBewitching> Almoullim: I love Ruby because if I'm going to spend my day writing code, it should be in a language that doesn't feel like I'm fighting to express my business logic in.
<VeryBewitching> Python has its uses and I don't begrudge their community or Python itself, but I'd rather write Ruby code than almost anything else.
oivoodoo has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
peeja has joined #ruby
dwfait has joined #ruby
oivoodoo has joined #ruby
oivoodoo has quit [Remote host closed the connection]
adgtl_ has quit [Ping timeout: 272 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
oivoodoo has joined #ruby
scottschecter has quit [Ping timeout: 265 seconds]
<Almoullim> Great, just what i wanted to read (People opinions or feeling for that matters)
hnagamin has quit [Ping timeout: 276 seconds]
<konsolebox> Almoullim: just curious, what is their best argument about why Python could be better than Ruby?
oivoodoo has quit [Remote host closed the connection]
Sucks has joined #ruby
<Almoullim> havent gone there yet, i started with you :D
aegis3121 has joined #ruby
<VeryBewitching> Almoullim: That's the start of my opinion, to fully summarize I would say "Use whatever language *you* like, try them all!"
<VeryBewitching> Language all the things.
dlitvak_ has joined #ruby
<Ox0dea> VeryBewitching: There are thousands!
<VeryBewitching> Yes!
<VeryBewitching> You'll *never* be bored
<VeryBewitching> haha
joonty has joined #ruby
<Almoullim> VeryBewitching: thanks for the advice, I'm PHP guy and now I started to think that i should explore some other kanguages
<VeryBewitching> Almoullim: Oh, I was a PHP guy for about 15 years.
<VeryBewitching> Then I met this girl named Ruby
<VeryBewitching> And I like her :D
oivoodoo has joined #ruby
JohnT has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
<cvusr> but now there is PHP 7 :)
emilford has joined #ruby
<VeryBewitching> Feh
<Almoullim> VeryBewitching: thats too long, I've been using PHP only for about 3 years now
<VeryBewitching> Almoullim: Read this: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
<VeryBewitching> He captured it best.
<Ox0dea> cvusr: https://eval.in/506448
JohnT has quit [Client Quit]
<Ox0dea> Probably some things in there you shouldn't actually do, but good for your bag of tricks.
Sucks has joined #ruby
oivoodoo has quit [Remote host closed the connection]
<apeiros> I guess we should add ?isrubybetterthanx
chipotle has quit [Ping timeout: 272 seconds]
ljames has quit []
<shevy> norc yeah I could not finish the latest blog, too much promo content IMO
above has joined #ruby
<Ox0dea> VeryBewitching: Is Eevee okay with "he", then?
newdan has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
<VeryBewitching> Ox0dea: You'd have to ask Eevee.
<cvusr> Ox0dea: cool, will read it (altough I just did a PR for it :) )
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> VeryBewitching: "she/they/he" according to https://twitter.com/eevee
<shevy> php is the only language where you can jump from version 5 to 7 and nobody will wonder!
<ddv> PHP was originally a hack not meant to be taken seriously
<Ox0dea> cvusr: You submitted your PR with "pyhton" in the method name? :(
<shevy> can you still take php seriously? :)
<ddv> then people started to use it in production
dlitvak has joined #ruby
<cvusr> Ox0dea: it's for homebrew :)
<ddv> :p
<Ox0dea> cvusr: "pyhton"
<shevy> ddv know what would be cool? a language that starts at version 10, and will decrement until 1! which will be the final version haha
s00pcan has quit [Ping timeout: 250 seconds]
<VeryBewitching> Ox0dea: I never looked at his/her/their Twitter feed before.
<ddv> nice shevy
<VeryBewitching> OK, I have to go kill MySQL for a bit, bbs
<Almoullim> konsolebox: for your curiousity: SomeStranger: IMO ruby is good for nothing except learning purposes
rodfersou is now known as rodfersou|lunch
<shevy> ruby 1.0 - the ultimate ruby version
<cvusr> Ox0dea: ahh, nop, just a typo here
<shevy> Almoullim you can find trolls anywhere!
<Ox0dea> Including right here right now...
<Almoullim> :P
<Ox0dea> I hope you're happy.
<shevy> :D
<Almoullim> who, me?
s00pcan has joined #ruby
oivoodoo has joined #ruby
Xeago has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
frem has joined #ruby
<Almoullim> you have been somehow helpful, i just need to search on my own now get to the final verdic
casadei has joined #ruby
<shevy> Almoullim uh oh... you may soon be given a strange image with some man with a beard wagging a finger
casadei has quit [Remote host closed the connection]
<Almoullim> xD
dlitvak_ has quit [Ping timeout: 240 seconds]
* apeiros thinks that "collecting facts about two languages, making up a list and then decide" is about as good as flipping a coin
<shevy> with the Caption "I don't believe you!"
<apeiros> go use each language for a week or two. then you've got something to decide.
<shevy> yeah except... that apeiros also designs his own language!
<apeiros> who doesn't?
<havenwood> and it's impossible to weight a coin flip
hnagamin has joined #ruby
speakingtoad has joined #ruby
moufl has quit [Quit: ZNC - http://znc.in]
speakingtoad has quit [Quit: Bye]
speakingtoad has joined #ruby
<Ox0dea> havenwood: Unless you don't actually flip it! :P
<Almoullim> apeiros: i'm not just collectng facts, i will search about both, and i will try both, and then i will decide which suits me best :)
mdw_ has joined #ruby
mdw has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
<newdan> Almoullim: what's the other language?
<Ox0dea> ?ot
<ruby[bot]> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<cvusr> newdan: php or java
<newdan> Oh lol what
<Almoullim> newdan: Ruby or Python
<Ox0dea> shevy: You thought Ron Burgundy had a beard?
<shevy> Almoullim well really, the difference is not huuuuuge... the biggest is the philosophy really
<shevy> I have no idea who that is... but I think I saw him in some strange blooper
nertzy2 has quit [Quit: This computer has gone to sleep]
moufl has joined #ruby
<Ox0dea> Ron Burgundy is the fellow in the "I don't believe you" GIF.
<Almoullim> well, i think thats about enough discussion for me, i will move on to search and try some codes ;)
<shevy> somehow this name makes me hungry
<Ox0dea> But it's a shade of red!
<shevy> Almoullim so - is it ruby or python
sigurding has quit [Quit: sigurding]
TomPeed has joined #ruby
iamvery has joined #ruby
<Almoullim> I'll fisrt do some search and see some code or perhaps try to code in both, and then i will decidee
f4cl3y has quit [Ping timeout: 250 seconds]
<VeryBewitching> I suggest working with both on a small project.
<Almoullim> i will let you know when i do :)
davedev2_ has joined #ruby
<Almoullim> Yes thats right.
nertzy2 has joined #ruby
<shevy> ok so ruby
<VeryBewitching> Task: Write a command line app in Ruby and Python, both of which read a Twitter feed.
<shevy> ewww
<shevy> write a game!
babblebre has joined #ruby
craigp has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 250 seconds]
peeja has quit [Ping timeout: 250 seconds]
malconis has joined #ruby
pawnbox_ has joined #ruby
dlitvak_ has joined #ruby
davedev24 has joined #ruby
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
v0n has quit [Quit: WeeChat 1.0.1]
v0n has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
nertzy2 has quit [Quit: This computer has gone to sleep]
davedev2_ has quit [Ping timeout: 260 seconds]
emilford has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
jas02 has quit [Quit: jas02]
hannelita has joined #ruby
lacuna has joined #ruby
malconis has quit [Remote host closed the connection]
kkh is now known as duracrisis
<blarghlarghl> I'm trying to create a gem with an external library. There are some steps involved to compile this and get the .so file which Ruby can use. I have those steps in a Rake task. How do I have a gem install trigger that rake task to do the actual compiling-on-install?
f4cl3y has joined #ruby
mdw_ has quit [Quit: Sleeping Zzzzz]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
<Ox0dea> But I think you might mean something different?
sgambino has joined #ruby
<blarghlarghl> Ox0dea: yeah, I've read that. Doesn't help.
<Ox0dea> blarghlarghl: You want to execute some code post-install?
dlitvak__ has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
bensarz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<blarghlarghl> Ox0dea: No, I think I want just a regular run of the mill gem with extension. So the thing you linked helps. I'm just not sure I follow. Give me 2 minutes.
malconis has joined #ruby
dudedudeman has joined #ruby
<Ox0dea> blarghlarghl: There's a sort of TL;DR near the bottom.
hannelita has quit [Ping timeout: 250 seconds]
adgtl has quit [Remote host closed the connection]
<konsolebox> Almoullim: well i was hoping for a more technical reply
anisha_ has quit [Quit: This computer has gone to sleep]
f4cl3y has quit [Ping timeout: 256 seconds]
bensarz has joined #ruby
bronson has joined #ruby
anisha_ has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
einarj has quit [Remote host closed the connection]
<blarghlarghl> Ox0dea: I think I'm confused on where the actual work gets done and how it knows. So I'm not using rake-compile, but I have a rake task which calls extconf and make. that produces the .so file. how do I get that to run during install? and then how do I get the .so file moved to where I want it to?
<blarghlarghl> Ox0dea: Or does all that happen magically and i don't even need the rake task, and it all happens because I declared an extension in my gemfile?
samgerber has joined #ruby
bensarz has quit [Client Quit]
<Ox0dea> blarghlarghl: Right, the latter. :)
<blarghlarghl> Oh. Well.
<Ox0dea> Assuming you meant gemspec.
n00bdev has joined #ruby
<blarghlarghl> Er, yes, I did.
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
Sembei has quit [Quit: WeeChat 1.4-dev]
<blarghlarghl> Now I'm kind of upset, because I wasted so much effort to stitch it together myself and someone's done it for me. :)
<Ox0dea> The happy kinda sad.
<blarghlarghl> yeah :)
chipotle has quit [Ping timeout: 250 seconds]
tildes has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
kalopsian has quit [Ping timeout: 250 seconds]
n00bdev has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
ferr has joined #ruby
samgerber has quit [Ping timeout: 265 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<blarghlarghl> Ox0dea: bit new to gem building as you can see. I assume that things like Gemfiles and Rakefiles also go into the gemspec's 'files' array? Literally every file that gets shipped (but not files that are generated like the .so files, of course)
betafive has joined #ruby
<Ox0dea> blarghlarghl: Aye, the default's quite sane.
gheegh has joined #ruby
<gheegh> hey all.. question.. if you have two LARGE (around 1mb) hashes, how would you do a diff of them? i was using hashdiff, and it's a pig.. taking more than an hour to do it.
emilford has joined #ruby
dfinninger has quit [Remote host closed the connection]
<gheegh> this is essentially to compute a changelog
<apeiros> gheegh: define "diff"
<gheegh> so its not supposed to be a heavy process
<gheegh> changed fields & values
<treehug88> output in deterministic fashion; use diff
drptbl has joined #ruby
dudedudeman has quit [Quit: dudedudeman]
<apeiros> also 1MB isn't necessarily a large hash. {"single key" => "1"*1000000} # there, 1MB hash, one key
kalopsian has joined #ruby
<gheegh> yeah, well on HashDiff, it's taking more than 1 hour to compare 2 hashes.
<apeiros> lol
<apeiros> how many keys?
<gheegh> that has a singel key..:-)
<gheegh> 58 root keys
dlitvak has joined #ruby
<gheegh> some of those are array, with keys below.
<apeiros> gheegh: I'd probably do it manually then and profile to improve the code. if all you want is changed fields and values that's not hard to do.
huyderman has quit [Read error: Connection reset by peer]
<gheegh> yeah, i was tying to do it "not-specific"
<apeiros> arrays don't have keys… do you mean nested hashes?
chipotle has joined #ruby
usershell has joined #ruby
<gheegh> some of those root keys have values of arrays, with hashes in the array..
dfinninger has joined #ruby
<apeiros> and you want subdiffs of those?
adgtl has joined #ruby
<gheegh> yep..
<gheegh> talking through it here, i'm coming to the conclusion.. that doing this quickly.. it will have ot be custom
<apeiros> well, if you want it generically, you might have to settle on the thought that it does take time.
<apeiros> the alternative is to write code optimized for your specific usecase.
<apeiros> there's also this:
<apeiros> ?toolbox
<ruby[bot]> https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
SenpaiSilver_ has joined #ruby
<apeiros> maybe there's another gem which does diffs on hashes faster.
<gheegh> the most common case is that it's pulling ti from ElasticSearch, making 1 change, and then putting it back.. I"m trying to log what changed.
dlitvak__ has quit [Ping timeout: 245 seconds]
<apeiros> yet another option is to consider a different base data structure to begin with, which yields better to diffing
s00pcan has quit [Ping timeout: 256 seconds]
<apeiros> then log the change instead of figuring it out?
<speakingtoad> Hmm
<speakingtoad> It's like diffing trees basically, interesting problem
<gheegh> the idea is that i can pick up processing along the way.. it it crashes midstream..
govg has joined #ruby
<gheegh> yeah, i was considering trying something iwthi a trie
samgerber has joined #ruby
N3sh108 has joined #ruby
sftrabbit has joined #ruby
<speakingtoad> Whatever you're using now seems to not be linear
<gheegh> apeiros: that would mean embedding "logging" logic all over hte app
s00pcan has joined #ruby
usershell has quit [Remote host closed the connection]
<gheegh> yeah, tis not.
<apeiros> if you've edit point all over the app instead of a clean interface for edits… well, yes.
<apeiros> *points
<N3sh108> hello there! I am having some troubles with RoR. I just created a model and I would like to generate a controller for it. How do I do it? If I do 'db:migrate' I get an error concerning the role not being present
<gheegh> you have the JSON before, and after save.. if you can do a diff efficiently.. then that's the better way
<apeiros> ?rails N3sh108
<ruby[bot]> N3sh108: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<speakingtoad> N3sh108: rails g controller MyModelsController
<apeiros> gheegh: you just claimed otherwise a few minutes ago :-p
f4cl3y has joined #ruby
<N3sh108> thanks speakingtoad ;)
<apeiros> anyway, I mentioned the options I see
<gheegh> ha.. yeah, its not efficient right now.. but that assumes I'm 1) using the most right gem and 2) the best approach..
<gheegh> :-)
norc has quit [Ping timeout: 252 seconds]
SenpaiSilver has quit [Read error: Connection reset by peer]
nertzy2 has joined #ruby
<speakingtoad> If performance is an issue it seems to me the cost of logging the change where it occurs is < implementing your own solution
<gheegh> yeah.. its not going to work as is.. we do about 100K of these "writes" an hour.
<speakingtoad> Tracking the change your making is likely always more efficient computationally than looking for it after, and in terms of your time which costs more than cpu time, well..
Musashi007 has quit [Quit: Musashi007]
<gheegh> thanks for the thoughts everyone
<gheegh> yeah.. probably will end up there..
<gheegh> but this is done across a dozen models.. it would be nice to have a clean, unified solution
kies^ has joined #ruby
SenpaiSilver_ has quit [Ping timeout: 276 seconds]
<speakingtoad> Make a mixin?
ellen_ has joined #ruby
<gheegh> yeah, that's what it is.. :)
mostlybadfly has quit [Quit: Connection closed for inactivity]
scripore has quit [Quit: This computer has gone to sleep]
adgtl has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
parus has joined #ruby
momomomomo has joined #ruby
dlitvak_ has joined #ruby
anisha_ has quit [Quit: Leaving]
nertzy2 has quit [Quit: This computer has gone to sleep]
dlitvak__ has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
momomomomo has quit [Client Quit]
momomomomo has joined #ruby
tjohnson has joined #ruby
boboc has joined #ruby
dlitvak has joined #ruby
dhollinger has joined #ruby
mdw has joined #ruby
<livcd> can i force the version of gem rails depends on (nokogiri?)
adgtl has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak_ has quit [Ping timeout: 276 seconds]
asccigcc has joined #ruby
gbgdev has joined #ruby
dlitvak__ has quit [Ping timeout: 264 seconds]
adgtl has joined #ruby
karmatr0n has joined #ruby
Trieste has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
aegis3121 has quit [Ping timeout: 264 seconds]
PedramT has joined #ruby
adgtl has quit [Remote host closed the connection]
PedramT has quit [Read error: Connection reset by peer]
dlitvak_ has joined #ruby
sgambino has joined #ruby
karapetyan has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
Guest38 has joined #ruby
dudedudeman has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
blackmes1 has joined #ruby
TomyWork has quit [Ping timeout: 248 seconds]
sftrabbit has quit [Quit: sftrabbit]
PedramT has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
karapetyan has quit [Remote host closed the connection]
lessless has joined #ruby
dionysus69 has joined #ruby
sftrabbit has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
rodfersou|lunch is now known as rodfersou
krzkrz has quit [Ping timeout: 272 seconds]
mchu has joined #ruby
<blarghlarghl> Is it possible in a Gemfile to specify a github url to a gemspec to install, but the gemspec is _not_ in the root of the repo?
agit0 has quit [Quit: zzzZZZ….]
SenpaiSilver has joined #ruby
gagrio has quit [Quit: Leaving...]
PedramT has quit [Ping timeout: 272 seconds]
SCHAAP137 has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
cschneid_ has joined #ruby
<soahccc> blarghlarghl: what is that for a gem? :D sure its not a submodule or something?
<Ox0dea> blarghlarghl: Looks like not. :<
terminalrecluse has joined #ruby
<Ox0dea> A submodule might do, but that's just putting a bit of spin on "root".
LMity has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
hannelita has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
pawnbox has joined #ruby
skade has joined #ruby
ramfjord has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<blarghlarghl> soahccc, Ox0dea, no, not a submodule. I want this: gem 'nokogiri', :git => 'https://github.com/tenderlove/nokogiri.git' but the gemspec file is not in the root of that repo, but in /ruby/
skade has quit [Client Quit]
<Ox0dea> blarghlarghl: Your inability to do so is quite deliberate.
<blarghlarghl> ah, shame.
<Ox0dea> They specifically don't want folks running edge Nokogiri.
<blarghlarghl> wait, how does that stop people running edge nokogiri?
<blarghlarghl> gem 'nokogiri', :git => 'https://github.com/tenderlove/nokogiri.git' # this works after all
jam_ has joined #ruby
<Ox0dea> Er, then what problem needs solved?
mdw has joined #ruby
krzkrz has joined #ruby
aufi has quit [Quit: Konversation terminated!]
<Ox0dea> blarghlarghl: Are you sure that works? https://github.com/tenderlove/nokogiri
<blarghlarghl> well, https://github.com/sparklemotion/nokogiri/ does. I just copy and pasted from the bundler docs.
<Ox0dea> blarghlarghl: https://git.io/vza7y
pawnbox has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
<blarghlarghl> Okay, this is not the issue Ox0dea
<blarghlarghl> I am following http://bundler.io/v1.11/git.html
<apeiros> "Sometimes people imply that we've forgotten, or that we don't how to properly manage our codebase. Those people are super fun to respond to!"
<apeiros> lol
<blarghlarghl> I am not using nokogiri. :)
jam_ has quit [Ping timeout: 240 seconds]
<blarghlarghl> if it aids the discussion, then I'll use :git => 'https://github.com/rails/rails.git' as an example. That should work - there's a gemspec file in the root of that repo.
x77686d has joined #ruby
speakingtoad has quit [Ping timeout: 240 seconds]
<blarghlarghl> The question now is - how do I do that: :git => 'https://github.com/rails/rails.git' # but without a .gemspec in the root of the repo, but in a subdirectory. :)
goodcodeguy has joined #ruby
freerobby has joined #ruby
n00bdev has joined #ruby
sigurding has joined #ruby
<Ox0dea> blarghlarghl: https://git.io/vzadR
<Ox0dea> That's a decent handful of options, but none of them has anything to do with subdirectories.
kspencer has joined #ruby
DonOtreply has joined #ruby
<blarghlarghl> Ox0dea: argh. hm.
Trieste has joined #ruby
<blarghlarghl> thanks Ox0dea
<Ox0dea> Sure thing, blarghlarghl.
<Ox0dea> (I couldn't help saying your nick aloud that time.)
<blarghlarghl> Ox0dea: You can guess the state I was in when I picked it. Most definitely because of some a computer issue.
<Ox0dea> I believe it. :P
n00bdev has quit [Ping timeout: 264 seconds]
<Ox0dea> It's not entirely clear why it's not an option, mind, but I suspect that the fact that there are just saner ways to achieve the same effect has something to do with it.
sandstrom has quit [Quit: My computer has gone to sleep.]
nofxx has quit [Ping timeout: 256 seconds]
<Ox0dea> I had a blarghlarghl moment just this morning when I discovered that `ls` now defaults to --quoting-style=shell-escape.
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
SOLDIERz has quit [Ping timeout: 276 seconds]
tomchapin has joined #ruby
<blarghlarghl> Ox0dea: Well, it's all a bit of an edge case here. I am writing gemspecs for a set of language bindings (as you have probably surmised) to a commercial library that's a customer of ours, but they've given me push access to their repo. but i can't just go and restructure all their stuff and i also can't just create a new repo just for the gem.
rkazak has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TomyLobo has joined #ruby
<Ox0dea> blarghlarghl: Secret Gists not an option, I trust?
Anasta7 has joined #ruby
<blarghlarghl> Ox0dea: not the worst idea... what does a gist get me?
oivoodoo has quit [Remote host closed the connection]
Anderson69s has joined #ruby
<Ox0dea> blarghlarghl: Well, Gists are valid Bundler sources.
chouhoulis has joined #ruby
oivoodoo has joined #ruby
scottschecter has joined #ruby
ajf- has quit [Ping timeout: 265 seconds]
<Ox0dea> Too "flat" for your intended use case, though. :/
oivoodoo has quit [Remote host closed the connection]
Shaboum has quit [Quit: WeeChat 1.4]
astrobunny has joined #ruby
bjessbrown has joined #ruby
hahuang65 has joined #ruby
oivoodoo has joined #ruby
<dudedudeman> can i ask what #ruby thinks of scala?
troulouliou_div2 has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
<blarghlarghl> Ox0dea: yeah, likely. I'll keep casting about. thanks. i'm going to go for a walk first.
chouhoul_ has quit [Ping timeout: 240 seconds]
efox has left #ruby ["adios!"]
<Ox0dea> dudedudeman: So much syntax! <3
<dudedudeman> ha. i’m starting to realize that, @Ox0dea
einarj has joined #ruby
<dudedudeman> my office is doing an intro to functional programming class during office hours, and I won a copy of the book they’re using(scala book), and i’m kind of interested to see how i feel about it
<Ox0dea> blarghlarghl: I'm pretty sure you want a submodule, but I don't know how much "restructuring" you'd count that as.
<dudedudeman> i’ve only really touched ruby, so i’m trying to wrap my head around what hte learning cuve is going to be
TomyLobo has quit [Ping timeout: 276 seconds]
<Ox0dea> dudedudeman: It's surely not the simplest introduction to FP, but it does make a lot of things "easy".
<Ox0dea> Which, hey!, is one of the biggest Ruby draws.
<dudedudeman> that’s good to know
<dudedudeman> all of our server side code at the office is written in scala, so i’ll be able to peg some people here about questions
hahuang65 has quit [Ping timeout: 264 seconds]
antgel has joined #ruby
<Ox0dea> Good deal. Be wary of the Java interop, though.
RTG` has quit [Ping timeout: 272 seconds]
fmcgeough has quit [Quit: fmcgeough]
<dudedudeman> yeah, i don’t know much java at all
TomyLobo has joined #ruby
wldcordeiro has joined #ruby
dlitvak has joined #ruby
RTG` has joined #ruby
shredding has quit [Ping timeout: 256 seconds]
kojak_ has joined #ruby
sigurding has quit [Quit: sigurding]
speakingtoad has joined #ruby
jbrhbr has joined #ruby
<kojak_> I have the following code: http://pastebin.com/k8UG0EXi. That lambda is further called within a method of deliverv. However, it yields this error: `block in <main>': undefined method `[]' for nil:NilClass (NoMethodError)
<ruby[bot]> kojak_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/193ee4f292e69d4c3ea2
<ruby[bot]> kojak_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
sftrabbit has quit [Quit: sftrabbit]
<kojak_> I include net/sftp in both files, so I don't understand. Any tips?
dlitvak_ has quit [Ping timeout: 256 seconds]
aganov has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
<Ox0dea> kojak_: `config` and `@config` aren't the same thing.
<Ox0dea> >> @foo[] rescue $!
<ruby[bot]> Ox0dea: # => #<NoMethodError: undefined method `[]' for nil:NilClass> (https://eval.in/506530)
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kojak_> Thank you, Ox0dea
<Ox0dea> kojak_: Happy to help. :)
B1n4r10 has quit [Ping timeout: 240 seconds]
sftrabbit has joined #ruby
PedramT has joined #ruby
FernandoBasso has joined #ruby
ramfjord has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
psy_ has joined #ruby
kalopsian has quit [Ping timeout: 265 seconds]
psy_ has quit [Max SendQ exceeded]
mostlybadfly has joined #ruby
dmolina has quit [Quit: Leaving.]
psy_ has joined #ruby
ferr has quit [Ping timeout: 276 seconds]
bjessbrown has quit []
dfockler has joined #ruby
jaiks has quit [Ping timeout: 264 seconds]
PedramT has quit [Ping timeout: 276 seconds]
arup_r has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
mark1 has quit [Remote host closed the connection]
arthurnn has quit [Quit: bye...]
Xeago has joined #ruby
skcin7 has joined #ruby
Xeago has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 265 seconds]
rakm has joined #ruby
lobster has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
vikas027 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Anderson69s has joined #ruby
lobster has quit [Client Quit]
arup_r has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 240 seconds]
arthropododo has joined #ruby
samgerber has quit [Remote host closed the connection]
AndChat-641136 has joined #ruby
zambini has joined #ruby
blackms has quit [Quit: Leaving]
polishdub has joined #ruby
peeja has joined #ruby
amclain has joined #ruby
Burgestrand has joined #ruby
<norc_> Ox0dea, how is that naughty?\
speakingtoad has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
arthropododo has quit [Client Quit]
skade has quit [Read error: No route to host]
arthropododo has joined #ruby
skade has joined #ruby
<Ox0dea> norc_: Gensyms. In C.
<Ox0dea> But it didn't work. :<
<Ox0dea> Can't declare functions in functions and have them be accessible from outside.
<norc_> Huh
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> I *briefly* considered constructing strings of C code and bringing them back in with dlopen(), but that's just too much.
<blarghlarghl> Ox0dea: yeah, i'm starting to think the same thing.
<Ox0dea> blarghlarghl: It's pretty straightforward.
bnagy has quit [Ping timeout: 250 seconds]
<norc_> Ox0dea, so you want to define Ruby methods and be able to call them from C-world?
<Ox0dea> norc_: Other way round. ^_^
<Ox0dea> Sort of.
<Ox0dea> It's very intertwingled.
<norc_> Sort of?
<blarghlarghl> Ox0dea: i know, it is, it's just an extra layer of ... wait, am i allowed to swear in here?
<Ox0dea> But I want it to be a surprise.
<norc_> Im beginning to notice that it is.
<norc_> blarghlarghl, sure, if it is appropriate.
<norc_> ;-)
<blarghlarghl> norc_: :D
karapetyan has joined #ruby
<norc_> Ox0dea, I am not sure how that could possibly be a problem to you yet.
<Ox0dea> blarghlarghl: Since when is "indirection" profane?
<blarghlarghl> Yeah. Let's go with that. :)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
arthropododo has quit [Client Quit]
<Ox0dea> norc_: There's an MRI API that accepts C functions as arguments; I want to define those functions with Ruby blocks.
sandstrom has joined #ruby
gruz0 has joined #ruby
<norc_> I can see how this might be non-trivial.
karapetyan has quit [Remote host closed the connection]
<norc_> Ox0dea, doing a bit of googling I stumbled over this mighty fine piece by the way: https://rubygems.org/gems/RubyInline/versions/3.12.4
<Ox0dea> Yep, I was familiar.
<Ox0dea> It'd probably work, but I wanted to do it without.
<norc_> Yeah I figured that much already.
pietr0 has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
drptbl has quit [Ping timeout: 245 seconds]
casadei has joined #ruby
ss_much has joined #ruby
bronson has joined #ruby
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has quit [Quit: Sleeping Zzzzz]
<norc_> Look at that.
n00bdev has joined #ruby
<norc_> It almost looks like Ruby even.
rkazak has quit [Ping timeout: 245 seconds]
user083 has quit [Read error: Connection reset by peer]
<blarghlarghl> Ox0dea: actually, can't i just do this: gem 'extracted_library', :path => './vendor/extracted_library' except for a _not_ extracted library, i.e. for a .gem bundle?
<blarghlarghl> i can host the .gem file somewhere on our network and then just have the gemfile fetch and install it directly, without running a gem server, surely...
_djbkd has joined #ruby
lucasb has quit [Ping timeout: 276 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jxs_ has joined #ruby
casadei has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 265 seconds]
<Ox0dea> blarghlarghl: DEFAULT_GLOB = "{,*,*/*}.gemspec"
<Ox0dea> Maybe, though.
Coldblackice has quit [Ping timeout: 276 seconds]
<Ox0dea> I don't see why it couldn't be finagled into just doing the unpacking.
<Ox0dea> norc_: Does it now? :P
<blarghlarghl> Ox0dea: yeah, :path is for unpacked ones only it seems... irritating. but I can cheat. I can clone the repo using chef, then point to the cloned repo in the gemfile. it's another layer of... indirection, but there we are.
ls has joined #ruby
n00bdev has quit [Ping timeout: 276 seconds]
<Ox0dea> norc_: thread_start_func_2() is not the most promising name.
tobacco_joe has joined #ruby
casadei has joined #ruby
_djbkd has quit [Ping timeout: 245 seconds]
Snowy is now known as IdleMcBridle
Xeago has joined #ruby
kalopsian has joined #ruby
ajf- has joined #ruby
LMity has quit [Ping timeout: 240 seconds]
<norc_> Ox0dea, it follows the common naming convention. Take a function name, and append an integer or _fix or _two to it and then use it.
<norc_> Ox0dea, it is a bit bad though.
foufou31d has joined #ruby
<norc_> Ox0dea, they should have done a #define THREAD_START_FUNC_2 thread_start_func_2 for proper calling conventions sake.
<Ox0dea> norc_: There's a lot of that goin' around.
<norc_> ;-)
B1n4r10 has joined #ruby
User458764 has joined #ruby
aryaching has quit []
blackmesa has joined #ruby
skade has quit [Read error: No route to host]
aryaching has joined #ruby
skade has joined #ruby
<norc_> Ox0dea, the whole code base is pretty anti vim
<norc_> Ox0dea, you really need an IDE that does full preprocessing to quickly navigate code. :/
IdleMcBridle is now known as Snowy
<Ox0dea> Pfft.
dlitvak has quit [Ping timeout: 260 seconds]
n00bdev has joined #ruby
blackmes1 has quit [Ping timeout: 245 seconds]
goodcodeguy has joined #ruby
<Ox0dea> ctags is fine ~90% the time for MRI.
<Ox0dea> But you're right, higher would be nice.
skade has quit [Read error: No route to host]
karapetyan has joined #ruby
dlitvak has joined #ruby
user083 has joined #ruby
_djbkd has joined #ruby
vdamewood has quit [Quit: Life beckons.]
pdoherty has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
Limix has joined #ruby
_djbkd has quit [Remote host closed the connection]
jbrhbr has quit [Quit: Leaving.]
_djbkd has joined #ruby
iateadonut has quit [Quit: Leaving.]
machinewar has joined #ruby
<machinewar> anyonen seen this with rails server? log writing failed. "\xE2" from ASCII-8BIT to UTF-8
<machinewar> I understand the encoding issue, but not sure what code is throwing this error, gets printed to console when run rails server
symm- has joined #ruby
<machinewar> thinking need to fore_encode 'utf-8' but no idea where to place the fix
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<soahccc> machinewar: you should have a backtrace, no?
_djbkd has quit [Ping timeout: 250 seconds]
<machinewar> soahccc: this is on my development machine when i initially run the rails server command, will check devlopemnt logs and see if anything was written
ellen_ has quit [Quit: Connection closed for inactivity]
_djbkd has joined #ruby
mchu has quit [Quit: mchu]
Aditya has joined #ruby
bnagy has joined #ruby
SenpaiSilver has joined #ruby
mchu has joined #ruby
<Aditya> Is ruby good for first time programmers
<soahccc> Aditya: yes because it's awesome, no because you have a hard time looking at other languages :D
<machinewar> soahccc: its strange, its trying to log something between Ctrl-C to shutdown server, Listening on IP:Port
AndChat-641136 has quit [Ping timeout: 260 seconds]
<machinewar> Aditya: I would say its a great language for first time programmers
<Aditya> Thnx
boboc has quit []
<Aditya> I know the basics like "abc" of c++ from school
<Aditya> But i feel like it's gonna take too long before i do something productive with c++
emilford has joined #ruby
<shevy> Aditya it depends on how you wanna learn, if you are happy to use the basics and be productive, then yeah, ruby is very simple. if you wanna learn everything and use everything, it can be very complex and probably confusing at times
<shevy> like when you have to know... what is -> versus Proc.new versus lambda
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> I solved it by banning -> and lambda !!!
<soahccc> shevy: I would ban anything but -> :D
<soahccc> +rather
<shevy> see Aditya, everything is using ruby differently
<shevy> erm, *everyone
<soahccc> shevy: :P
<Aditya> Well i wanted to design a website of mine
<shevy> hmm
<shevy> if you go the rails route, that's quite a lot of extra stuff to know
<Aditya> What other route is their?
ferr has joined #ruby
adgtl has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Quit: Leaving]
<shevy> cgi!
<shevy> sinatra is also somewhat simple
<Aditya> I will look into that
<Aditya> What are they btw?
Abrin has joined #ruby
devbug has joined #ruby
Newtonianb has joined #ruby
x77686d has quit [Quit: x77686d]
baweaver has joined #ruby
<shevy> well you know the fancy-pants/buy/swords/3 thingies
<shevy> rest stuff
<Aditya> No
IanV0rn2341 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> and easier access to databases
<shevy> you want to design a website so of course you know rest!
Axy has quit [Read error: Connection reset by peer]
speakingtoad has joined #ruby
<Aditya> Umm
craigp has joined #ruby
<shevy> sinatra is here http://www.sinatrarb.com/
AndChat-641136 has joined #ruby
<Aditya> Sorry to disappoint but i am a complete noob here
<momomomomo> Rails can be a low barrier entry point to creating a complex application
<momomomomo> sinatra is much more hands-on, from the ground-up approach
blackmesa has quit [Ping timeout: 272 seconds]
Anasta7 has quit []
<Aditya> Gotta sleep for now
<Aditya> Thnx for the help anyway
<shevy> cya
fantazo has joined #ruby
adgtl has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
Aditya has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
speakingtoad has quit [Ping timeout: 250 seconds]
Anderson69s has joined #ruby
arthropododo has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
hxegon has joined #ruby
lacuna has joined #ruby
arthropododo has quit [Client Quit]
arthropododo has joined #ruby
samgerber has joined #ruby
dlitvak_ has quit [Ping timeout: 250 seconds]
sftrabbit has quit [Quit: sftrabbit]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ziyadb has quit [Quit: Connection closed for inactivity]
dwfait has quit [Remote host closed the connection]
dlitvak has joined #ruby
agit0 has joined #ruby
goodcodeguy has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
jbrhbr has joined #ruby
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
PedramT has quit [Remote host closed the connection]
samgerber has quit [Ping timeout: 276 seconds]
usershell has joined #ruby
PedramT has joined #ruby
mikecmpbll has joined #ruby
sftrabbit has joined #ruby
devbug has quit [Read error: Connection reset by peer]
tobacco_joe has quit []
sftrabbit has quit [Client Quit]
sundhell has joined #ruby
BSaboia has joined #ruby
jam_ has joined #ruby
PedramT_ has joined #ruby
f3ttX] has joined #ruby
User458764 has joined #ruby
devbug has joined #ruby
guacamole has joined #ruby
Oog has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
jam_ has quit [Ping timeout: 250 seconds]
camillo has joined #ruby
jxs_ has quit [Quit: Leaving]
<cvusr> is there any ask.fm like frameworks in rails ?
bluOxigen_ has joined #ruby
guacamo__ has joined #ruby
sol_ has quit [Ping timeout: 240 seconds]
camillo is now known as sol_
PedramT_ has quit [Ping timeout: 250 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
usershell has quit [Remote host closed the connection]
guacamole has quit [Ping timeout: 272 seconds]
dostoyevsky has quit [Quit: leaving]
bluOxigen has quit [Ping timeout: 272 seconds]
goodcodeguy has joined #ruby
K1MOS has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<norc_> machinewar, generally there never is a reason to use force_encoding
Abrin has quit [Read error: Connection reset by peer]
lacuna has quit [Quit: Textual IRC Client: www.textualapp.com]
<norc_> machinewar, whatever you are using, you need to specify the correct encoding to begin with.
lacuna has joined #ruby
karapetyan has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lessless has joined #ruby
Oog has quit []
atomical has joined #ruby
<machinewar> norc_: hmmm it might be something between how Thin's encoding scheme and Ruby version I'm on
jottr has quit [Ping timeout: 272 seconds]
<machinewar> Not sure why Thin would be using Ascii thought and not utf-8
<norc_> machinewar, with rails the usual culprit is an encoding mismatch with your database.
<norc_> mmm
<machinewar> norc_: okay thanks I know my Postgres is using UTF-8, but will do some more digging on the rails side
krobzaur has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<norc_> machinewar, do you have the possibility to regress with git bisect?
Jackneill has quit [Quit: Leaving]
<machinewar> I do
mfb2 has quit [Remote host closed the connection]
<machinewar> norc_: whats interesting is thinking about it I believe this started showing up when I upgraded to ruby 2.2.4
dlitvak_ has joined #ruby
<norc_> From which version?
arlek has joined #ruby
<machinewar> 2.2.2
arlek has quit [Max SendQ exceeded]
PedramT has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
arcane-methods has joined #ruby
<norc_> machinewar, can you gist the relevant parts of your log and STDOUT?
<shevy> come to 2.3.0 man
Abrin has joined #ruby
fsapo has joined #ruby
karapetyan has quit [Remote host closed the connection]
skade has joined #ruby
arcane-methods has quit [Max SendQ exceeded]
PedramT_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
<machinewar> sorry deleting that link
arup_r has quit []
oivoodoo_ has joined #ruby
machinewar has left #ruby [#ruby]
machinewar has joined #ruby
karapetyan has joined #ruby
hahuang65 has joined #ruby
PedramT_ has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
ur5us has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
<norc_> machinewar, is there anything in your development.log ?
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<machinewar> norc_: notthing out of ordinary, or about encoding
mchu has quit [Quit: mchu]
Snowy has quit [Remote host closed the connection]
hnagamin has quit [Ping timeout: 250 seconds]
oivoodoo has quit [Ping timeout: 276 seconds]
Sembei has joined #ruby
hahuang65 has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
graphettion has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
mchu has joined #ruby
<norc_> machinewar, which logger are you using?
Limix has quit [Quit: Limix]
mfb2 has joined #ruby
ympeg has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arcane-methods has joined #ruby
sandstrom has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
<norc_> machinewar, oh it looks like its lib/logger from ruby.
<norc_> machinewar, monkey patch the write method to write out a stacktrace.
zambini has quit [Quit: Leaving.]
<norc_> (or replace it with a sensible logger)
jbrhbr has quit [Quit: Leaving.]
x0f has quit [Ping timeout: 260 seconds]
jgpawletko has joined #ruby
emilford has quit [Ping timeout: 272 seconds]
ferr has quit [Ping timeout: 240 seconds]
lacuna has quit [Quit: Textual IRC Client: www.textualapp.com]
Limix has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
x0f has joined #ruby
brixen has quit [Excess Flood]
skade has quit [Ping timeout: 240 seconds]
ljames has joined #ruby
jbrhbr has joined #ruby
zambini has joined #ruby
lacuna has joined #ruby
craigp has quit [Remote host closed the connection]
brixen has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
guacamole has joined #ruby
JohnT has joined #ruby
mchu has quit [Quit: mchu]
craigp has joined #ruby
mchu has joined #ruby
guacamo__ has quit [Ping timeout: 265 seconds]
andikr has quit [Remote host closed the connection]
baweaver has joined #ruby
dlitvak has joined #ruby
adgtl has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
karapetyan has quit [Remote host closed the connection]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
scottschecter has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
dlitvak_ has quit [Ping timeout: 265 seconds]
momomomomo has quit [Quit: momomomomo]
PsionTheory has joined #ruby
baweaver has quit [Remote host closed the connection]
samgerber has joined #ruby
howdoicomputer has joined #ruby
scripore has joined #ruby
mchu has quit [Quit: mchu]
karapetyan has quit [Ping timeout: 245 seconds]
kalopsian has quit [Ping timeout: 245 seconds]
skade has joined #ruby
Limix has quit [Ping timeout: 245 seconds]
dhollinger has quit [Quit: WeeChat 1.4]
Xeago has joined #ruby
samgerber has quit [Remote host closed the connection]
samgerber has joined #ruby
craigp has quit [Remote host closed the connection]
kalopsian has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
samgerber has quit [Client Quit]
ferr has joined #ruby
emilford has joined #ruby
craigp has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
slash_quit is now known as slash_nick
FernandoBasso has quit [Quit: Leaving]
Limix has joined #ruby
baweaver has joined #ruby
f3ttX] has quit [Ping timeout: 250 seconds]
rehat_ has joined #ruby
fantazo has quit [Quit: Verlassend]
<rehat_> does anyone know how to use mechanize to seelct an item from a Form selectlist? The page uses hidden html li elements as the options :(
IrishGringo has joined #ruby
skade has quit [Ping timeout: 250 seconds]
craigp has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
scottschecter has joined #ruby
bb010g has joined #ruby
<shevy> anyone remembers offhand, if there is a hook I can use, when "foo.extend SomeModule" is done? a per-extend hook or something
kristian_on_linu has joined #ruby
bronson has joined #ruby
<kristian_on_linu> hi
<kristian_on_linu> okay, this is a long shot
craigp has joined #ruby
<kristian_on_linu> I need to get RIS data for all books in a WorldCat search and I found the gem "worldcat"
einarj has joined #ruby
betafive has quit [Ping timeout: 252 seconds]
einarj has quit [Remote host closed the connection]
hahuang65 has joined #ruby
<kristian_on_linu> and http://www.worldcat.org/
<shevy> I suppose there is no way other than parsing a .rb file, in order to find out what classes or modules reside in that specific .rb file?
skade has joined #ruby
mdw has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
chancy has joined #ruby
<shevy> so many questions
robh71 has quit [Quit: Textual IRC Client: www.textualapp.com]
chancy has left #ruby [#ruby]
chancy has joined #ruby
blackmesa has joined #ruby
maletor_ has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<machinewar> norc_: thats a great idea thanks will do that and let you know!
skcin7 has joined #ruby
baweaver has quit [Remote host closed the connection]
<adaedra> shevy: you can use ctags for that.
emilford has quit [Ping timeout: 276 seconds]
BSaboia has quit [Ping timeout: 250 seconds]
dlitvak has quit [Remote host closed the connection]
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bonhoeffer has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
Cohedrin has joined #ruby
bonhoeffer has left #ruby [#ruby]
bonhoeffer has joined #ruby
Cohedrin has quit [Client Quit]
cicloid has joined #ruby
einarj has joined #ruby
Cohedrin has joined #ruby
aryaching_ has joined #ruby
sigurding has quit [Quit: sigurding]
ur5us has joined #ruby
baweaver has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
aryaching has quit [Ping timeout: 260 seconds]
dwfait has joined #ruby
dfinninger has quit [Remote host closed the connection]
sperant has joined #ruby
skade has quit [Ping timeout: 256 seconds]
devbug has quit [Ping timeout: 276 seconds]
zambini has quit [Quit: Leaving.]
enape_101 has joined #ruby
N3sh108 has quit [Quit: Page closed]
Puffball has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
jackjackdripper1 has joined #ruby
<norc_> &ri Module#extended Module#included # shevy
arup_r has joined #ruby
Puffball has joined #ruby
<drbrain> shevy: see also Method.source_location
zambini has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
kies^ has quit [Ping timeout: 256 seconds]
B1n4r10 has joined #ruby
pdoherty has joined #ruby
AndChat-641136 has quit [Ping timeout: 250 seconds]
Burgestrand has quit [Quit: Textual IRC Client: www.textualapp.com]
axisys has quit [Read error: Connection reset by peer]
jbrhbr has quit [Quit: Leaving.]
colin_ has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
dfinninger has joined #ruby
kojak_ has quit [Quit: leaving]
craysiii has quit [Remote host closed the connection]
skade has joined #ruby
bitcycle has joined #ruby
<bitcycle> Hey all. Is it possible, with net-ssh, to disable automatic-loading/use of my $HOME/.ssh/config file options?
beast has quit [Quit: Leaving]
axisys has joined #ruby
arcane-methods has quit [Ping timeout: 256 seconds]
lemur has joined #ruby
Guest38 has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 240 seconds]
TomPeed has joined #ruby
speakingtoad has joined #ruby
jbrhbr has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
oivoodoo_ has quit [Remote host closed the connection]
tomchapin has joined #ruby
lemur has quit [Ping timeout: 260 seconds]
IrishGringo has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
jackjackdripper1 has joined #ruby
kadoppe has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kies^ has joined #ruby
jackjackdripper has quit [Ping timeout: 276 seconds]
DonOtreply has joined #ruby
TomPeed has quit [Ping timeout: 240 seconds]
ramfjord_ has joined #ruby
oivoodoo has joined #ruby
jackjackdripper1 has quit [Client Quit]
jackjackdripper has joined #ruby
blackmesa has joined #ruby
mdw has joined #ruby
Cohedrin has joined #ruby
Salve has joined #ruby
baweaver has quit [Remote host closed the connection]
neanderslob has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
neanderslob has joined #ruby
melter has quit [Quit: Client exiting]
skade has quit [Ping timeout: 264 seconds]
emilford has joined #ruby
oivoodoo has quit [Remote host closed the connection]
dotix has joined #ruby
srenatus has quit [Quit: Connection closed for inactivity]
Salve has left #ruby [#ruby]
dhollinger has joined #ruby
juddey has joined #ruby
machinewar has quit [Ping timeout: 260 seconds]
RTG` has quit [Ping timeout: 264 seconds]
sperant has quit [Read error: Connection reset by peer]
enape_101 has quit [Ping timeout: 256 seconds]
jam_ has joined #ruby
bluOxigen has joined #ruby
devbug has joined #ruby
BSaboia has joined #ruby
RTG` has joined #ruby
jbrhbr1 has joined #ruby
jbrhbr has quit [Ping timeout: 250 seconds]
bluOxigen_ has quit [Ping timeout: 245 seconds]
chouhoul_ has joined #ruby
hannelita has quit [Remote host closed the connection]
_djbkd has quit [Quit: My people need me...]
hannelita has joined #ruby
JJM has joined #ruby
hannelita has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
fsapo has quit [Remote host closed the connection]
riceandbeans has quit [Quit: leaving]
aegis3121 has joined #ruby
ldnunes has quit [Quit: Leaving]
jam_ has quit [Ping timeout: 265 seconds]
x77686d has joined #ruby
momomomomo has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kristian_on_linu has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 276 seconds]
FernandoBasso has joined #ruby
hannelita has joined #ruby
goodcodeguy has joined #ruby
hannelita has quit [Remote host closed the connection]
bronson has joined #ruby
jottr has joined #ruby
hannelita has joined #ruby
hannelita has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
mchu has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
Dimik has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
mfb2 has quit [Remote host closed the connection]
craysiii has joined #ruby
craysiii has quit [Max SendQ exceeded]
craysiii has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
skade has joined #ruby
oivoodoo has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
EasyCo has joined #ruby
freerobby has quit [Quit: Leaving.]
itspriddle has joined #ruby
asccigcc has quit [Quit: asccigcc]
momomomomo has quit [Quit: momomomomo]
havenwood has quit [Remote host closed the connection]
TomPeed has joined #ruby
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
itspriddle has quit [Quit: itspriddle]
mdw has quit [Quit: Sleeping Zzzzz]
IanV0rn2341 has joined #ruby
darkf has quit [Quit: Leaving]
havenwood has joined #ruby
havenwood has joined #ruby
Limix has quit [Quit: Limix]
newbie22 has joined #ruby
oivoodoo has quit [Remote host closed the connection]
gbgdev has quit [Remote host closed the connection]
puria has quit [Quit: Leaving]
malconis has quit [Read error: Connection reset by peer]
dain1 has joined #ruby
skade has quit [Ping timeout: 260 seconds]
malconis has joined #ruby
ur5us has quit [Remote host closed the connection]
Salve_ has joined #ruby
dain1 has left #ruby [#ruby]
newbie22 has quit [Client Quit]
dain1 has joined #ruby
synthroid has quit []
dcunit3d has joined #ruby
Dimik has quit [Ping timeout: 256 seconds]
Dimik has joined #ruby
IanV0rn2341 has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
symm- has quit [Quit: Leaving...]
Limix has joined #ruby
mwksl__ has joined #ruby
skade has joined #ruby
gbgdev has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
IanV0rn2341 has joined #ruby
cody____ has joined #ruby
cody____ has left #ruby [#ruby]
hayden_ has quit [Quit: Connection closed for inactivity]
misguided923 has joined #ruby
colin_ has quit [Ping timeout: 252 seconds]
Coldblackice has joined #ruby
firstdayonthejob has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
AwchinBruh has quit [Quit: Leaving]
howdoicomputer has quit [Ping timeout: 276 seconds]
guacamole has quit [Quit: Textual IRC Client: www.textualapp.com]
gbgdev has quit [Remote host closed the connection]
guacamole has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
ur5us has joined #ruby
huQeQwdpu47q has quit [Quit: Leaving]
oivoodoo has joined #ruby
IanV0rn2341 has quit [Read error: Connection reset by peer]
dain1 has quit [Quit: Leaving.]
kalopsian has quit [Ping timeout: 250 seconds]
Synthead has joined #ruby
misguided923 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dwfait has quit [Remote host closed the connection]
guacamole has quit [Client Quit]
guacamole has joined #ruby
momomomomo has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
JohnT has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Ping timeout: 240 seconds]
ferr has quit [Ping timeout: 250 seconds]
hxegon is now known as hxegon_AFK
Limix has quit [Ping timeout: 276 seconds]
maletor_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IanV0rn2341 has joined #ruby
nej has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
betafive has joined #ruby
kalopsian has joined #ruby
jhn has joined #ruby
jottr has joined #ruby
krainboltgreene has joined #ruby
dfinninger has quit [Remote host closed the connection]
l4v2 has joined #ruby
f3ttX] has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #ruby
baweaver has joined #ruby
BSaboia has quit [Ping timeout: 250 seconds]
dotix has quit []
chancy has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
zambini has quit [Quit: Leaving.]
TomyLobo has quit [Ping timeout: 272 seconds]
gruz0 has quit [Quit: Leaving]
ramfjord_ has quit [Ping timeout: 265 seconds]
ruby-lang372 has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<ruby-lang372> Hi, pretty new to ruby but have made my first app that's single page - what is the best way for me to post a message to the page based on a controllers function?
oivoodoo has quit [Read error: Connection reset by peer]
l4v2 has left #ruby [#ruby]
oivoodoo has joined #ruby
arup_r has quit []
hxegon_AFK is now known as hxegon
skade has joined #ruby
jud has quit [Quit: Leaving]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has quit [Ping timeout: 240 seconds]
casadei has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
n_blownapart has joined #ruby
baweaver has joined #ruby
jbrhbr1 has quit [Quit: Leaving.]
tlaxkit has joined #ruby
mwksl__ has quit [Quit: leaving]
emilford_ has joined #ruby
emilford has quit [Ping timeout: 265 seconds]
kies^ has quit [Ping timeout: 256 seconds]
Salve_ has quit []
Cohedrin has joined #ruby
mfb2 has joined #ruby
skade has quit [Ping timeout: 250 seconds]
B1n4r10 has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
dexter-tzu has joined #ruby
<cout> so I've got this odd problem: I'm requiring 'net/ssh' inside a method (not at the toplevel), and it spuriously fails with LoadError. Afaict, there's never a case where I call this method outside the main thread (and in fact, require is only ever called from the main thread). Yet sometimes it succeeds and sometimes it fails. Any ideas?
<cout> tried GC.disable in case this was an odd GC issue but no change in behavior
Limix has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
B1n4r10 has quit [Ping timeout: 276 seconds]
Canar has joined #ruby
pdoherty has joined #ruby
<Canar> Hi there, I'm reading about nested-for-loop limits.
<Canar> Python's is 21.
<Canar> I'm curious if Ruby has one and what the value is.
B1n4r10 has joined #ruby
<Ox0dea> Canar: For loops in Ruby are *literally* converted to invocations of #each, so I suspect there's no such artificial limit.
peeja has quit [Ping timeout: 260 seconds]
howdoicomputer has joined #ruby
<Canar> Ox0dea: That's what I hoped.
<Canar> Whenever I compare Ruby to Python, I end up prefering Ruby.
<Ox0dea> There was that one time for me, but I can scarcely recall it.
baweaver has quit [Remote host closed the connection]
maletor_ has joined #ruby
baweaver has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<Ox0dea> Oh! `ary[::-1]` for reverse is pretty nifty.
<mg^> There are two reasons that sum up why I dislike Python. 1. meaningful whitespace. 2. 'print' is a reserved keyword.
PedramT has joined #ruby
B1n4r10 has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
<betafive> issue #2 with python is fixed by version 3
<Ox0dea> mg^: On the other hand, lots of things are slightly surprisingly *not* keywords in Ruby.
scottschecter has quit [Quit: Leaving]
<Ox0dea> Of course, that's a plus by my lights.
<Ox0dea> >> public == private # except maybe when this happens
<ruby[bot]> Ox0dea: # => true (https://eval.in/506556)
<mg^> yeah I consider that a positive attribute myself.
<mg^> heheh
jas02 has joined #ruby
bitcycle has quit [Quit: WeeChat 1.1.1]
jespada has quit [Quit: Leaving]
Darmani has joined #ruby
krzkrz has quit [Ping timeout: 256 seconds]
<Darmani> Hey kids<3
[-Orbit-] has joined #ruby
jas02 has quit [Client Quit]
ramfjord has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
<Ox0dea> Are you Standard or Zen, bro?
<Darmani> :o
<Darmani> Uhhh I'm gonna be completely honest with you
baweaver has joined #ruby
<Darmani> Pokemon wasn't allowed in my house. Due to it being created by the devil and associated with wickedness.
skade has joined #ruby
* Darmani shrugs
jas02 has joined #ruby
jas02 has quit [Client Quit]
<Darmani> I know next to nothing about pokemon.
chouhoulis has joined #ruby
cvusr has left #ruby [#ruby]
ferr has joined #ruby
jgpawletko has joined #ruby
<Darmani> I do like that it's half male and half female though lmao wtf?
<ympeg> what would you recommend as a gui framework for ruby desktop application?
<ympeg> and I don't want GTK
hiyosi has joined #ruby
above has quit [Ping timeout: 265 seconds]
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
<newdan> ympeg: Fltk?
<Ox0dea> ympeg: JS?
chouhoul_ has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
renderf__ has joined #ruby
<Darmani> Ox0dea - On the other hand I did create this. I've never used a program with another file before like a CSV. It was kinda fun.
huQeQwdpu47q has joined #ruby
<ympeg> newdan: I am taking a look, thx
shortdudey123 has quit [Max SendQ exceeded]
renderfu_ has quit [Ping timeout: 240 seconds]
<ympeg> Ox0dea: what do you mean by JS? Is there a clean way to incorporate js & html based gui to a ruby desktop application?
<Ox0dea> Darmani: That's pretty cool, man. You've definitely gotten better. :)
workmad3 has joined #ruby
shortdudey123 has joined #ruby
zeroDivisible has joined #ruby
<Darmani> Ox0dea - For real?? Man that means a lot coming from you dude. Thanks(:
<Ox0dea> ympeg: No, not really; I was (not entirely) facetiously suggesting that you should forget native; it's dying.
huQeQwdpu47q has quit [Max SendQ exceeded]
huQeQwdpu47q has joined #ruby
chouhoul_ has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
<ympeg> oh I feel you, definitely. But the stuff I want to write is very specific and I am strongly convinced that id should be a native app
B1n4r10 has joined #ruby
adgtl has quit [Ping timeout: 265 seconds]
<ympeg> also I will be the only person to use this (or at least I don't plan to spread)
tlaxkit has quit [Quit: ¡Hasta luego!]
<ympeg> *it should
<newdan> ympeg: Another (kind of far out) option is to use JRuby with something like JavaFX
jottr has joined #ruby
<Ox0dea> norc_: You about?
<newdan> I don't really know a well maintained Ruby GUI lib. Fltk is pretty old (although it worked well enough last time I used it)
zeroDivisible has quit [Read error: Connection reset by peer]
zeroDi has joined #ruby
BTRE has quit [Remote host closed the connection]
<ympeg> I've checked out shoes but they are jruby-dependent. And I don't want to be jruby-dependent.
workmad3 has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
<newdan> ympeg: Maybe this one would work well https://github.com/larskanis/fxruby
BTRE has joined #ruby
freerobby has joined #ruby
<ympeg> another option for me is to drop ruby completely and write it in c++
karapetyan has joined #ruby
<Darmani> Ox0dea - https://youtu.be/feQuv1VWCv0
<ympeg> it's not any business-ish project, I can experiment and have fun. But I want to finish this app in a finite amount of time ;d
<Ox0dea> Darmani: Decent song. I'm gonna listen to it to the end.
<Darmani> Do it xP
K1MOS has joined #ruby
blackgoat has joined #ruby
<newdan> ympeg: I would probably try FXRuby before Fltk since it seems maintained, if you choose to stick with Ruby. (Note it's FXRuby uses FOX toolkit not JavaFX)
<Ox0dea> Darmani: Video's pretty funny. What's all this words in my screens?
<Darmani> Ox0dea: It's a lyric video
<Ox0dea> Darmani: Yes, that's the problem.
soxet has joined #ruby
<Ox0dea> Needs more Gambino in a hangar because reasons.
<Darmani> Ox0dea - Lol no doubt xD
karapetyan has quit [Remote host closed the connection]
soxet has quit [Client Quit]
<Ox0dea> Donald Glover -> Don Glover -> DONG LOVER
<Ox0dea> I wouldn't even be mad.
emilford_ has quit [Ping timeout: 256 seconds]
<Darmani> Ox0dea - lmao did you just make that up?
<Ox0dea> Of course not.
<Ox0dea> That's Gambino's real name, to clarify.
<ympeg> newdan: thank you for your advice.
Term_ has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Darmani> No I know that's his real name but I didn't know if you switch the letters you get dong lover
lemur has joined #ruby
<Darmani> that's too funny.
ramfjord has joined #ruby
<Darmani> E.E Cummin on her face now that's poetry in motion<33 lulz
<Ox0dea> He talked about how he realized it long after he'd been writing his name "Don Glover" on official papers and the like.
mfb2 has quit [Ping timeout: 264 seconds]
<Ox0dea> On Conan or some such.
<baweaver> !ot
* baweaver sighs
<Darmani> Ox0dea - Did you ever watch Community?
zambini has joined #ruby
<baweaver> #ruby-offtopic if you want to talk tv and such
ZeeNoodleyGamer has joined #ruby
<Darmani> baweaver - what would we do without you man.
einarj has joined #ruby
codecop has quit [Remote host closed the connection]
<baweaver> chat about tv in #ruby I think
<Ox0dea> He's not wrong.
<Darmani> baweaver - And surprisingly the world wouldn't end.
<Darmani> I know it's hard to believe.
<newdan> Darmani: But other people in this channel would find it a little noisy
emilford has joined #ruby
<Darmani> newdan - Because there is so much else going on.
<Darmani> I rest my case.
lemur has quit [Ping timeout: 250 seconds]
<baweaver> be nice.
<Ox0dea> Darmani: You totally interrupted a legitimately Ruby-centric conversation, though. I only ended up a co-conspirator because you linked a not-terrible song.
<Darmani> baweaver - I will<3
einarj has quit [Remote host closed the connection]
<Darmani> Ox0dea - A co-conspirator? Are we the mafia? Lol
DonOtreply has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
B1n4r10 has quit [Quit: leaving]
<Ox0dea> Darmani: Are we the hyperbolice?
<Darmani> that's not a word.
<Darmani> I had to google it
sftrabbit has joined #ruby
<Ox0dea> It's a portmanteau of "hyperbole" and "police".
<Darmani> Ox0dea - Can you do that? Lol
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
VeryBewitching has quit [Quit: Konversation terminated!]
<zerowaitstate> hyperbolice, i like it
<Ox0dea> Duh.
<Ox0dea> <3
<Darmani> I do have a legitimate question though
mchu has quit [Quit: mchu]
<Darmani> So I'm making a version of Hangman that can be played on the command line. But I'm having trouble figuring out how to account for how many turns the "guesser" has before he loses.
<Darmani> Would that just be like a number inside a variable that decreases after each guess?
nfk has joined #ruby
<Ox0dea> For bad guesses, yeah.
mchu has joined #ruby
<Ox0dea> You're not supposed to lose a turn if you guess good.
aupadhye has quit [Ping timeout: 250 seconds]
<Darmani> Really? That's not how I played...
<Ox0dea> Uh... did you play on paper?
Term_ has quit [Ping timeout: 252 seconds]
jaffachief_ has joined #ruby
wilbert_ has joined #ruby
<newdan> Yeah, when I played it, if you guess a letter wrong you draw another part of the hangman
<Ox0dea> *hanged man, but ^
<Ox0dea> The hangman is the executioner.
<Ox0dea> "I know from experience, dude."
<Darmani> newdan - Even if you guessed a letter right you only had a limited number of guesses before you lost. At least the way I played.
<Darmani> Ox0dea - Wut? Lol
<Ox0dea> > And from having seen a lot of drops in my day.
<newdan> Darmani: Weird. I don't see how that makes any sense... so you can't have large words?
ESpiney has quit [Read error: Connection reset by peer]
<Darmani> newdan - Maybe I just never played correctly.... Lol
<Ox0dea> Darmani: There's supposed to be an emotional component.
<Darmani> Ox0dea - Lol what?
<Darmani> Are you supposed to feel something for the "hanged man"?
<Ox0dea> You're supposed to want to guess correctly so that you don't have to draw more parts of him so that he doesn't have to meet an untimely end.
<Ox0dea> He's, like, early thirties.
<Darmani> Damn, so young.
jottr_ has joined #ruby
<Ox0dea> >> 30 * 525600 * 60
<ruby[bot]> Ox0dea: # => 946080000 (https://eval.in/506559)
<Ox0dea> Not even enough time to count to a billion.
jam_ has joined #ruby
<Darmani> Can you imagine if hangman was real though? Like people sentenced to death by hanging actually had a chance to live if someone correctly guessed the word the executioner had? lmao
djcp has quit [Ping timeout: 272 seconds]
<Ox0dea> That's not funny, but I exhaled through my nose a little harder than usual anyhow.
<zerowaitstate> Darmani: um, yes, that's how court cases work
sperant has joined #ruby
<Darmani> Lol xP
<zerowaitstate> Darmani: a little bit abstract, but the same principle
<Darmani> zerowaitstate - What a controversial statement. Explain it.
<Darmani> Or pm me and explain it.
jottr has quit [Ping timeout: 240 seconds]
<Ox0dea> Nobody knows what it means, but it's provocative.
gbgdev has joined #ruby
<Darmani> Ox0dea - ^ That's what I'm thinking.
skade has quit [Ping timeout: 245 seconds]
<aegis3121> If you say the right things, you can convince the executioner not to kill you (i.e.: guess the word he's thinking of)
<zerowaitstate> Darmani: I am looking for a link, gimme a bit
<Darmani> aegis3121 - Whaaat. It can't be as simple as that.
<Darmani> Actually now I'm thinking about Bill Clinton and that woman... damn. Maybe you're right.
<aegis3121> Sure it is. Plant the reasonable doubt, say the magic words, and the jury finds you not guilty.
govg has quit [Ping timeout: 240 seconds]
jam_ has quit [Ping timeout: 240 seconds]
<Darmani> aegis3121 - What a sad reality you've brought to light. That is depressing.
<Ox0dea> "'Scuse me, hangman, hate to bother ya while you're at work, but this noose is causing me considerable discomfiture. You think you could--" "That's Numberwang! You've won the rest of your life."
Ebok has joined #ruby
Ebok has quit [Client Quit]
jbrhbr has joined #ruby
<Darmani> Ox0dea - That was an actual conversation recorded in 1742 in England. For a man who had stolen some sausages for dinner and was condemned to hang by the noose until dead.
Ebok has joined #ruby
<Darmani> true story.
dhollinger has quit [Quit: WeeChat 1.4]
<Ox0dea> Darmani: I think we're reading the same PDF.
yfeldblum has joined #ruby
<Darmani> Ox0dea - No doubt
bronson has joined #ruby
Musashi007 has joined #ruby
chancy has joined #ruby
ympeg has quit [Ping timeout: 256 seconds]
IanV0rn2341 has quit [Quit: Textual IRC Client: www.textualapp.com]
sudrien has joined #ruby
<Darmani> Alrightt I'm going to actually work on this game.
<Darmani> I'll be back.
<Darmani> Don't hesitate to summon me<3
<zerowaitstate> Darmani: I can't find the link from this location. I read a really well-written article by a federal judge for a law journal which talks about certain criminal justice issues in the US where the Fed is way behind the States in terms of fair legal practices. One of the topics was the requirement for prosecutors, who have first access to the crime scene and witnesses, to provide exculpatory evidence to the defense
Burgestrand has joined #ruby
krobzaur_ has joined #ruby
krobzaur has quit [Ping timeout: 240 seconds]
<Darmani> summoned me like a minute after I said that lmao
bronson has quit [Ping timeout: 265 seconds]
<zerowaitstate> Darmani: in many States, they are required to do that, but in Federal cases, the prosecutor is only compelled to turn over evidence to the defense if the prosecution feels it's relevant
<Burgestrand> apeiros how do you manage to stay connected to IRC 24/7? :)
<zerowaitstate> Darmani: frequently, a person's life hangs in the balance because the prosecutor encountered evidence that was clear them of suspicion, but failed to turn it over to defense because they had no other credible suspect
dfinninger has quit [Remote host closed the connection]
<zerowaitstate> Darmani: so, hunting for the right words, or guessing that evidence exists and succesfully compelling the prosecutor to disclose it, has saved lives in the past
polishdub has quit [Quit: Leaving]
duderonomy has quit [Ping timeout: 276 seconds]
<zerowaitstate> Darmani: and none of that has to do with rubyh
<Darmani> zerowaitstate - XD
<Darmani> zerowaitstate - That is very interesting to say the least. Although if it is true that is absolutely depressing that a man's life depends on whether or not you can convince a prosecutor to do the right thing.
ramortegui has quit [Remote host closed the connection]
Newtonianb has quit [Read error: Connection reset by peer]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lucasb has joined #ruby
<Ox0dea> Burgestrand: http://wiki.znc.in/ZNC
skade has joined #ruby
<Darmani> zerowaitstate - I'll read that later. Thanks for showing me.
<Burgestrand> :)
altair118 has joined #ruby
FooMunki has quit [Quit: FooMunki]
emilford has quit [Ping timeout: 250 seconds]
Newtonianb has joined #ruby
FooMunki has joined #ruby
ur5us has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Newtonianb has quit [Read error: Connection reset by peer]
Term_ has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
FooMunki has quit [Client Quit]
cbyrda has joined #ruby
emilford has joined #ruby
TomPeed has quit [Ping timeout: 245 seconds]
zerowaitstate has quit [Quit: leaving]
finisherr has joined #ruby
<Darmani> Ox0dea - How would I choose a random word within an array of strings?
Xeago has joined #ruby
<lucasb> array.sample
Newtonianb has joined #ruby
_djbkd has joined #ruby
<Darmani> lucasb - Never seen that one before. I could kiss you right now.
<Darmani> Thanks man.
newdan has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dudedudeman has quit [Quit: dudedudeman]
guacamol_ has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
sudrien has quit [Quit: Page closed]
PsionTheory has quit [Remote host closed the connection]
guacamole has quit [Ping timeout: 260 seconds]
Term_ has quit [Ping timeout: 252 seconds]
skade has quit [Ping timeout: 240 seconds]
ferr has quit [Ping timeout: 256 seconds]
crowell has quit [Ping timeout: 256 seconds]
yqt has joined #ruby
scripore has joined #ruby
<zambini> I saw that last week! (when lucasb told me about it :P)
dwfait has joined #ruby
ls has quit [Quit: ls]
zenlot1 has joined #ruby
skade has joined #ruby
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
<Ox0dea> lucasb is a pretty cool guy.
guacamole has joined #ruby
zenlot has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
<Darmani> lucasb - he kinda smells.
guacamol_ has quit [Ping timeout: 264 seconds]
<Darmani> Ox0dea - Another question,
TDJACR has quit [Ping timeout: 250 seconds]
<Darmani> So I want to present the word like this => [ _ _ _ _ _ _ _ ]
<Darmani> But I have no idea how to do that.
<Darmani> Q.Q
<Papierkorb> Darmani: "_" * the_string.size
Cohedrin has joined #ruby
kies^ has joined #ruby
<Darmani> o.o
wilbert has joined #ruby
devbug has quit [Ping timeout: 256 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
User458764 has joined #ruby
<Darmani> Papierkorb - Could you explain that to me a little more?
<Darmani> Possiblyy
<aegis3121> ?ri String#*
<ruby[bot]> aegis3121: I don't see no String#*, whom should I tell about ri?
<Ox0dea> &ri String#*
<aegis3121> bah
FernandoBasso has quit [Quit: Leaving]
<Ox0dea> Darmani: I'm no longer convinced that was your code I praised earlier. :P
<Papierkorb> Darmani: '*' multiplies the string and returns the new string, where multiplication is 'repeating' in this context
<Darmani> Ox0dea - It was! D:
wilbert_ has quit [Ping timeout: 264 seconds]
<Darmani> Papierkorb - Okay, gotcha.
<aegis3121> >> string = 'harold'; ('_ ' * string.size).chomp
<ruby[bot]> aegis3121: # => "_ _ _ _ _ _ " (https://eval.in/506580)
<Ox0dea> *chop
<Ox0dea> #chomp is for line endings.
<aegis3121> or #rstrip, ya?
<Papierkorb> or just don't remove the space if you want to have it anyway in front of the closing bracketg :P
<Papierkorb> -g
shadoi has joined #ruby
postmodern has joined #ruby
<Ox0dea> Or pretend it's 2016 and use a more appropriate character than underscore.
<Darmani> Ox0dea - Like what??
solocshaw has joined #ruby
TDJACR has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
<ruby-lang372> Can you not change the font-size of flash messages?
<aegis3121> sounds like a css AND a rails question :)
solars has quit [Ping timeout: 265 seconds]
<Darmani> Ox0dea - Is that what the cool kids use these days? lmao
<ruby-lang372> :S
<Ox0dea> ?rails ruby-lang372
<ruby[bot]> ruby-lang372: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Ox0dea> It'll definitely be a CSS rule.
<ruby-lang372> ahh have to register
griffindy has joined #ruby
<ruby-lang372> Yeah, font-size isn't working on flash message - but all my other CSS styling is so ill have to dig deeper
oivoodoo has quit [Remote host closed the connection]
aryaching_ has quit []
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
<Ox0dea> ruby-lang372: Ah, in that case, it could only be one thing.
n_blownapart has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
baweaver has quit [Remote host closed the connection]
ajf- has quit [Excess Flood]
ferr has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mchu has quit [Quit: mchu]
dexter-tzu has quit [Ping timeout: 245 seconds]
chouhoul_ has quit [Ping timeout: 256 seconds]
joneshf-laptop has quit [Remote host closed the connection]
passcod has quit [Remote host closed the connection]
JJM has joined #ruby
asccigcc has joined #ruby
finisherr has quit [Quit: finisherr]
skade has quit [Ping timeout: 256 seconds]
dexter-tzu has joined #ruby
passcod has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
TomPeed has joined #ruby
SophieDeBenedett has joined #ruby
joshuabamboo has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
dwfait has quit [Remote host closed the connection]
krobzaur has joined #ruby
JJM has quit [Ping timeout: 256 seconds]
<Darmani> Ox0dea - Question,
karmatr0n has joined #ruby
<Darmani> Once a person guesses a letter from the correct word... How do I reveal that letter in the array?
<Darmani> I have no ideaaa.
<Ox0dea> ¯\_(ツ)_/¯
ruby-lang372 has quit [Ping timeout: 252 seconds]
krobzaur_ has quit [Ping timeout: 245 seconds]
<aegis3121> haha
<Darmani> Come on dude
<Ox0dea> Come on, dude.
<Darmani> Seriously -,-
kies^ has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
baweaver has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
<zambini> You know the word, just replace that `_` string value with the new letter
emilford has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Darmani> zambini - yeah I figured it out shortly after I asked lol
<Darmani> But I'm glad that there are people that you that help people like me xP so thanks lol
<zambini> Make sure you do the equivalent to find_all :P
wilbert has quit [Ping timeout: 265 seconds]
aupadhye has joined #ruby
<Papierkorb> Darmani: Go and #collect the guessed chars
<Darmani> Papierkorb - I'll show you what I have in a sec. But yeah. I have the wrong letters pointing to an array that catches them.
IrishGringo has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<Papierkorb> Darmani: We only give you pointers, you still need to bind those together to build what you want
davedev24 has joined #ruby
<Ox0dea> Papierkorb: What's a linked list got to do with it?
<lucasb> I'm going to think how to write a hangman too, just for the lulz. But I'm gonna abandon it half-finished, like I did to tictactoe.
bronson has joined #ruby
duderono_ has joined #ruby
<Darmani> Papierkorb - Aye aye captain.
Musashi007 has quit [Quit: Musashi007]
davedev2_ has joined #ruby
LMity has joined #ruby
<zambini> `KEY.each_with_index.map { |x, i| i if 'E' == KEY[i]}.compact` where KEY is your string and 'E' is their guess. Not super pretty and likely not "rubish" :P
sundhell has quit [Ping timeout: 276 seconds]
Guest80422 has joined #ruby
<zambini> `map.with_index` also works\
sine` has joined #ruby
oivoodoo has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Guest80422> hello
dlitvak has joined #ruby
<Darmani> Guest80422 - Aloha
emilford has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 260 seconds]
big|bad|wolf has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
TheHodge has joined #ruby
emilford has joined #ruby
jud has joined #ruby
<Darmani> Papierkorb, Ox0dea, lucasb, - Okay so this is still a work in progress...
<Darmani> Obviously
<Darmani> but here
rehat_ has quit [Remote host closed the connection]
nerium has joined #ruby
big|bad|wolf has quit [Ping timeout: 250 seconds]
<lucasb> just a note, you don't need commas in %w(a, b, c, d)
dcunit3d has quit [Ping timeout: 250 seconds]
<Darmani> lucasb - Mmk ^^
paradisaeidae has joined #ruby
zeroDi has quit [Quit: WeeChat 1.3]
dudedudeman has joined #ruby
maletor__ has joined #ruby
SophieDeBenedett has quit [Remote host closed the connection]
LMity has quit [Ping timeout: 276 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aupadhye has quit [Quit: Leaving]
dlitvak has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 272 seconds]
<zambini> Are you looking for feedback?
<Darmani> Advice, feedback, love, anything. lol
<Darmani> I suck at OOP programming rbh.
<Darmani> tbh*
frewtc4ke has joined #ruby
maletor_ has quit [Ping timeout: 260 seconds]
joshuabamboo has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
davedev24 has joined #ruby
ajf- has joined #ruby
<lucasb> Darmani: don't you try snippets in irb or pry?
<zambini> :P Np. Everyone starts somewhere. My immediate suggestion (not the most important) is to get rid of that switch and turn it into a more maintainable data structure. Array probably is fine. It can be a const array and you can just add/remove entries. Since you already have that mapping, your describe method can be reduced to `DESCRIPTIONS[@number_of_guesses]`
<Darmani> lucasb - yeah I do. I like to get general criticism first I guess.
<zambini> `array[i]` returns `nil` if it's out of bounds, so you can not worry about Out of Bounds exceptions :P
zyzioziom has joined #ruby
<Darmani> zambini - Lol got it.
<zambini> Also I would suggest having it return the string instead of `puts`ing. I don't have a real reason for that one.
davedev2_ has quit [Ping timeout: 240 seconds]
<Darmani> zambini - np. Alright let me go work on this a little more. Maybe I posted it a bit premature. I probably should have tested it beforehand.
nertzy2 has joined #ruby
woodruffw has quit [Ping timeout: 250 seconds]
Azure has quit [Quit: Oops.]
pietr0 has quit [Quit: pietr0]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 250 seconds]
woodruffw has joined #ruby
spooq has joined #ruby
woodruffw has joined #ruby
maletor__ has quit [Read error: Connection reset by peer]
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<aegis3121> probably ;)
chipotle has joined #ruby
einarj has joined #ruby
IrishGringo has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
wilbert has joined #ruby
shortdudey123 has quit [Max SendQ exceeded]
shortdudey123 has joined #ruby
Azure has joined #ruby
dx_xb has joined #ruby
mfb2 has joined #ruby
zyzioziom has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
wilbert has quit [Ping timeout: 245 seconds]
lemur has joined #ruby
maletor has quit [Ping timeout: 250 seconds]
nerium has quit [Quit: nerium]
dx_xb has quit [Client Quit]
mfb2 has quit [Ping timeout: 256 seconds]
mostlybadfly has joined #ruby
nerium has joined #ruby
Sembei has quit [Ping timeout: 250 seconds]
goodcodeguy has joined #ruby
zyzioziom1 has joined #ruby
lemur has quit [Ping timeout: 260 seconds]
einarj has quit [Remote host closed the connection]