havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
rmulliga` has joined #ruby
rmulliga` has quit [Remote host closed the connection]
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
ascarter has joined #ruby
marr has quit [Ping timeout: 244 seconds]
Gasher has quit [Remote host closed the connection]
helpa has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
mr_oh has joined #ruby
sudoubuntu has joined #ruby
<mr_oh> group_by and flat_map saved my butt
stantona has joined #ruby
karioleez has joined #ruby
ur5us has joined #ruby
<mr_oh> I looked at some code today that was supposed to be Ruby, but it looked nothing like it. I mean, I know it is Ruby but I wonder what other language they are forcing it to look like....
<Ox0dea> Let's see it.
<mr_oh> Is that common?
<baweaver> Yeah
<baweaver> it's called a Java developer
dc4 has quit [Ping timeout: 244 seconds]
whathappens has quit [Remote host closed the connection]
duckpuppy has joined #ruby
<mr_oh> Trying to find it again
<goglosh> Fortran in any language, I tell ya
karioleez has quit [Ping timeout: 268 seconds]
<goglosh> so, uh, is there a module or library for ratio types?
<goglosh> like > 10 / 8 => 5/4
fumihiro has quit [Ping timeout: 264 seconds]
<baweaver> Rational
<baweaver> &ri Rational
<goglosh> k, thanks
<baweaver> not sure how to simplify with it though
<baweaver> never had a need
polysics has joined #ruby
<Ox0dea> >> 10/8r
<ruby[bot]> Ox0dea: # => (5/4) (https://eval.in/547616)
<Ox0dea> Ruby loves you.
<goglosh> doesn't it do it automatically?
<baweaver> I guess so
mr_oh has quit [Ping timeout: 250 seconds]
* baweaver never uses rational
<goglosh> Ox0dea: ooooh
<goglosh> are you a wizard?
<baweaver> Ox0dea: you scared them off :(
duckpuppy has quit [Ping timeout: 264 seconds]
mr_oh has joined #ruby
<Ox0dea> Where?
<Ox0dea> Oh.
<mr_oh> Some
<mr_oh> Not mine
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greg has quit [Quit: Leaving]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
shmuli has quit [Remote host closed the connection]
mr_oh_ has joined #ruby
polysics has quit [Ping timeout: 268 seconds]
jgt1 has quit [Ping timeout: 248 seconds]
yqt has joined #ruby
mr_oh has quit [Ping timeout: 250 seconds]
shmuli has joined #ruby
<mr_oh_> How much of github is just junk ?
<shevy> no
karioleez has joined #ruby
shmuli has quit [Remote host closed the connection]
parduse has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 246 seconds]
shmuli has joined #ruby
youch has joined #ruby
<goglosh> classes are built on top of objects?
mr_oh_ has quit [Ping timeout: 250 seconds]
karioleez has quit [Ping timeout: 264 seconds]
<shevy> you instantiate your object from a class
<goglosh> b-but the infrastructure...
<Ox0dea> >> [Class.is_a?(Module), Class.is_a?(Object), Module.is_a?(Class), Module.is_a?(Object), Object.is_a?(Class), Object.is_a?(Module)].all? # goglosh
<ruby[bot]> Ox0dea: # => true (https://eval.in/547618)
madgen has quit [Ping timeout: 244 seconds]
<goglosh> now I'm confus
<Ox0dea> It's all rather circular, but it makes sense if you squint.
<Ox0dea> Or take the time to figure out why it makes sense and is a Good Thing.
<goglosh> ruby's gonna swap my brain hemispheres
<baweaver> turn that frown upside down :D
BtcBen has joined #ruby
hightower2 has quit [Ping timeout: 244 seconds]
smathy_afk is now known as smathy
symm- has quit [Ping timeout: 252 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<shevy> goglosh you write your class: class Foo; end now you create a new object from that class: foo = Foo.new
<Ox0dea> >> (c = Class.new).new.class == c
<ruby[bot]> Ox0dea: # => true (https://eval.in/547619)
<Ox0dea> It's all very symmetrical and reasonable.
karioleez has joined #ruby
PlasmaStar has quit [Ping timeout: 248 seconds]
crowell is now known as croxer
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
arescorpio has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
r0b3rt has quit [Ping timeout: 244 seconds]
smckee has joined #ruby
PlasmaStar has joined #ruby
<smckee> Hi everyone, I'm doing a study at Oregon State University trying to determine what is difficult about merge conflicts and how developers solve their conflicts. We're looking for professional developers with 3+ years of experience. Would anybody here be interested in participating in a ~20 minute interview? We will, of course, compensate you for your time :)
karioleez has quit [Ping timeout: 260 seconds]
<smckee> If anybody is interested and sees this later, you can get ahold of me at mckeesh@oregonstate.edu
baweaver has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
hightower2 has joined #ruby
baweaver has joined #ruby
mistermocha has joined #ruby
Musashi007 has joined #ruby
dstarh has joined #ruby
parduse has quit [Ping timeout: 250 seconds]
PlasmaStar has quit [Ping timeout: 260 seconds]
toretore has joined #ruby
phpwebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
<Arcaire> I just delete the repo and pull a fresh copy down.
mistermocha has quit [Ping timeout: 276 seconds]
<mozzarella> what about your changes
karioleez has joined #ruby
<mozzarella> what if they are local branches
<Arcaire> i put them on my desktop temporarily
PlasmaStar has joined #ruby
vdamewood has joined #ruby
sgambino has joined #ruby
rkazak has joined #ruby
pawnbox has joined #ruby
parduse has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
noService has joined #ruby
karioleez has quit [Ping timeout: 276 seconds]
<goglosh> Ox0dea: so what if you change something in the internal structure/behaviour of either Class or Object?
<Ox0dea> goglosh: It will affect the system quite globally.
<baweaver> Matz pops out of the compiler and slaps you
<goglosh> lol
<Ox0dea> >> class Class; def foo; 42; end; end; String.foo
<ruby[bot]> Ox0dea: # => 42 (https://eval.in/547621)
<baweaver> potentially dangerous things
doug_ has joined #ruby
<goglosh> !!
<Ox0dea> >> !!:dangerous
<ruby[bot]> Ox0dea: # => true (https://eval.in/547622)
<goglosh> heh what?
auzty has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
<baweaver> >> not :dangerous?
<ruby[bot]> baweaver: # => false (https://eval.in/547623)
<baweaver> bot has spoken
<goglosh> what does !! stand for there?
<baweaver> not not
<goglosh> oooh
<goglosh> you guys are wizards
<Ox0dea> The "boolificator".
dc4 has joined #ruby
ruby-lang664 has quit [Ping timeout: 250 seconds]
<baweaver> boolifornication?
<Ox0dea> ;)
* baweaver starts tapping out RHCPs
<Ox0dea> Looks like I'm listening to Stadium Arcadium.
noService has quit [Ping timeout: 246 seconds]
shmuli has quit [Remote host closed the connection]
doug_ has quit [Ping timeout: 244 seconds]
polysics has joined #ruby
jenrzzz has joined #ruby
dc4 has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
karioleez has joined #ruby
dc4 has joined #ruby
moeabdol1 has joined #ruby
polysics has quit [Ping timeout: 244 seconds]
stantona has quit [Ping timeout: 248 seconds]
TheNet has joined #ruby
Denart_ has quit [Remote host closed the connection]
BtcBen has quit [Ping timeout: 248 seconds]
karioleez has quit [Ping timeout: 276 seconds]
B1n4r10 has joined #ruby
dc4 has quit [Ping timeout: 244 seconds]
jokester has quit [Quit: WeeChat 1.4]
moeabdol1 has quit [Ping timeout: 276 seconds]
Musashi007 has quit [Quit: Musashi007]
amclain has quit [Quit: Leaving]
<goglosh> thanks for the insightful responses
<goglosh> I'm off now
<goglosh> night
rake_db_migrate has joined #ruby
goglosh has quit [Quit: leaving]
frem has quit [Quit: Connection closed for inactivity]
dc4 has joined #ruby
doug_ has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
h99h9h88 has joined #ruby
hxegon has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
babblebre has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
karioleez has joined #ruby
cpup has joined #ruby
r0b3rt has joined #ruby
magikid has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
dopie_ has quit [Quit: Lost terminal]
karioleez has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
shmuli has joined #ruby
karmatr0n has joined #ruby
mistermocha has joined #ruby
smckee has quit [Remote host closed the connection]
r0b3rt has quit [Ping timeout: 276 seconds]
dc4 has quit [Ping timeout: 276 seconds]
doug_ has quit [Quit: Leaving...]
doug_ has joined #ruby
h99h9h88 has quit [Quit: Leaving...]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has quit [Ping timeout: 244 seconds]
doug_ has quit [Client Quit]
diegoviola has quit [Quit: WeeChat 1.4]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 246 seconds]
karmatr0n has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
nodejunkie has joined #ruby
vdamewood has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
karioleez has joined #ruby
NinjaPanzer has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
karioleez has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
Cohedrin_ has joined #ruby
bry4n has joined #ruby
Cohedrin has quit [Ping timeout: 276 seconds]
fumihiro has joined #ruby
ILikeBears has joined #ruby
<ILikeBears> So
<ILikeBears> at least one of you knows how to get this horrid language to work
<ILikeBears> "Error running 'requirements_debian_update_system ruby-2.1.5',
<ILikeBears> showing last 15 lines of /usr/local/rvm/log/1459822209_ruby-2.1.5/update_system.log
<ILikeBears> "
Spami has quit [Quit: Leaving]
<ILikeBears> doing " rvm install 2.1.5"
youch has quit [Ping timeout: 244 seconds]
GodFather has quit [Ping timeout: 260 seconds]
<ILikeBears> Any of you know how to get this horrid language's interpreter working?
duckpuppy has joined #ruby
<toretore> not with that attitude
<ILikeBears> toretore, can you give an answer yes or no?
smckee_ has joined #ruby
<ILikeBears> The attitude is because a tool like rvm shouldn't need to exist.
<ILikeBears> I shouldn't have to jump through hoops to get ruby 2.1.5 when I can go apt-get install OpenJDK-1.7 or 1.6 or select a version of python.
<ILikeBears> I have ruby2.0 installed but because they don't register themselves with alternatives I can't force 2.0, I have to use RVM instead
<ILikeBears> toretore,
fumihiro has quit [Ping timeout: 244 seconds]
karioleez has joined #ruby
<ILikeBears> torandu, so are you going to help or did you reply just to stick your 2cents in?
smckee_ has quit [Ping timeout: 250 seconds]
<ILikeBears> This will be the third day in a row I've rought with RVM. Last time I had to manually force ruby2.0 as my default with a symlink and then tins didn't want to install
<ILikeBears> tins demanded 2.0 and I had 2.0
<ILikeBears> So I have a good reason to have an attitude and not like Ruby right now.
jinette has joined #ruby
<toretore> and i have good reason to ignore you, which i will be doing from now on
<ILikeBears> torandu, Cool
<ILikeBears> Go be a pretentius hipster somewhere else
<jinette> hello everyone, can you help me fix this problem please; http://paste.ubuntu.com/15623258/ ?
<ILikeBears> while you're at it shove your two cents up your ass and learn a real language.
karmatr0n has joined #ruby
karioleez has quit [Ping timeout: 244 seconds]
andywojo has quit [Ping timeout: 244 seconds]
<ILikeBears> I don't appreciate assholes that are too good for others sticking their two cents in on things just to bitch rather than help. So take it the nice way from me. Go fuck yourself.
dvinciguerra_ has quit [Ping timeout: 276 seconds]
barajasfab has quit [Ping timeout: 276 seconds]
<ILikeBears> Keep your bitching to yourself when someone spends three days fighting a piece of software has a problem
<ILikeBears> And like I've said, go fuck yourself with those two cents.
<ILikeBears> (Ruby makes me salty)
<NinjaPanzer> We all have our triggers i guess
<ILikeBears> NinjaPanzer, if he didn't like my attitude he could've kept his two cents to himself.
<toretore> ?ops ^
<ruby[bot]> toretore: I don't see no ^, whom should I tell about ops?
<toretore> ?ops ILikeBears
<ruby[bot]> ILikeBears: to call for ops use the !ops command. You can find a list of channel staff on http://ruby-community.com/pages/irc_staff
<toretore> ?ops
<ruby[bot]> to call for ops use the !ops command. You can find a list of channel staff on http://ruby-community.com/pages/irc_staff
<NinjaPanzer> Well you did pop into a Ruby channel and po on the subject matter
Mon_Ouie has quit [Ping timeout: 260 seconds]
<ILikeBears> ?ops toretore
<ILikeBears> !ops torandu
<ILikeBears> !ops toretore
andywojo has joined #ruby
<NinjaPanzer> We should adapt our troll tracker from hipchat to irc maybe :P
<ILikeBears> toretore, Go back to your safeplace and learn to talk to others without immediately being a condescending asshole.
<ILikeBears> You're not the only one with the solution to the problem. Others have it.
davedev24 has quit []
<shevy> pls permaban ILikeBears
<ILikeBears> shevy, that has no impact on me.
<shevy> nah just be patient
karioleez has joined #ruby
<ILikeBears> oh no I'll be banned from #ruby!1
<[ace]> !ops
<[ace]> ?ops
<NinjaPanzer> jinette are you sure you wanna do foreman run and not bundle exec?
<toretore> !ops
<ruby[bot]> toretore: ops currently in #ruby: adaedra, aredridel, havenwood, Radar, apeiros, drbrain, jhass, ljarvis, miah, ruby[bot] and zenspider
<jinette> NinjaPanzer, there is foreman in the setup instructions
<ILikeBears> toretore, You're the one who started this being condecending like I should bend over and kiss your ass.
<ILikeBears> ><toretore> not with that attitude
<ILikeBears> If you didn't act like you're the only one with the answer / will control the entire outcome I wouldn't have retaliated.
<NinjaPanzer> jinette I am not saying you are specifically doing something wrong I just never have run db:create like that
Alayde has quit [Ping timeout: 248 seconds]
Suntzu has quit [Read error: Connection reset by peer]
<jinette> NinjaPanzer, when I run "rake db:migrate" or 'bundle exec rake db:migrate', I get this: 'Your Ruby version is 2.1.5, but your Gemfile specified 1.9.3'..
karioleez has quit [Ping timeout: 250 seconds]
<ILikeBears> jinette, Would you happen to know?
MrSamuel has joined #ruby
<NinjaPanzer> jinette are you using rvm if so `rvm install ruby-1.9.3`
Mon_Ouie has joined #ruby
<ILikeBears> NinjaPanzer, I'm asking nicely.
<ILikeBears> Why does RVM exist?
duckpuppy has quit [Ping timeout: 276 seconds]
skweek has joined #ruby
<jinette> NinjaPanzer, I used rvm on another install, and have had to wrestle with the same problem there. it was as if no matter what I did, including complete removal, the version 2.1.5 was referred with above error.
<ILikeBears> jinette, does ruby not install into it's own directory for each revision?
<ILikeBears> So 2.2, 2.3 in seperate directories with seperate gems etc
adymitruk has quit [Read error: Connection reset by peer]
<NinjaPanzer> jinette once you use rvm to install a new version you might have to `rvm use 1.9.3` to make sure that is currently selected
<ILikeBears> NinjaPanzer, jinette I'm presuming you're ignoring me or /ignored me because I insulted toretore ?
adymitruk has joined #ruby
<jinette> NinjaPanzer, yes, I remember having done that, too..but I will go about it again now
<NinjaPanzer> jinette then you will have to bundle install again to populate the new version of ruby's gems
<jinette> NinjaPanzer, I'll do so..very much hope to get a different outcome this time
djbkd has quit [Remote host closed the connection]
<NinjaPanzer> jinette one thing that poped into my head are you trying to do a heroku deploy is that where foreman is coming in or is this just local development?
djbkd has joined #ruby
benlieb has quit [Quit: benlieb]
MrSamuel has quit [Quit: MrSamuel]
<NinjaPanzer> jinette one thing I always do is make a .ruby-version at the root of my project. Inside you can put a string with the ruby version and gemset like this `ruby-1.9.3@my_gemset` and rvm will respect that and autoswitch when you enter the directory
<jinette> NinjaPanzer, precisely done both. I gave up Heroku one because I needed a cloud subscription which I didnt need for now. and now I'm trying the local one. had problem with foreman in both
Ebok has joined #ruby
Moblin has joined #ruby
djbkd has quit [Ping timeout: 268 seconds]
Ebok has quit [Client Quit]
Moblin has quit [Client Quit]
_blizzy_ has joined #ruby
Ebok has joined #ruby
PedramT has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
<NinjaPanzer> jinette foreman is a runner with a side effect of loading the a local .env file or spinning up some other processes before it runs your command. You should look in the Procfile and see if it gives you any insight as to why foreman is needed
benlieb has joined #ruby
Eiam_ has joined #ruby
darkxploit has quit [Quit: Leaving]
<jinette> NinjaPanzer, does it matter in which folder I run the rvm install?
karioleez has joined #ruby
BtcBen has joined #ruby
<NinjaPanzer> jinettte no as long as rvm is available. rvm installs rubies in your home directory or root if you are logged in as root
<NinjaPanzer> jinette ^
<jinette> ah, thank you
<ILikeBears> jinette, NinjaPanzer are the same person
statelesscode has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
PedramT has quit [Ping timeout: 264 seconds]
karioleez has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
tsou has joined #ruby
Chagel has joined #ruby
<jinette> NinjaPanzer, I saw that rvm version was already installed, and reverted to that. there was no gemfile version problem this time, but, speaking of 'foreman run rake db:create', it gave the error that database could not be created. when run with sudo, this time it returned the same error as in my above link.
Mon_Ouie has joined #ruby
<NinjaPanzer> jinette I am not sure you would want to run it sudo anyways. What reason did it tell you the database could not be created
Cohedrin_ has quit [Ping timeout: 264 seconds]
Ebok has quit [Quit: Leaving]
<jinette> NinjaPanzer, I had a long struggle with postgres to solve its issues, but it was horribly impenetrable; I've been digging through stackoverflow, but all solutions ended up with outputs like fatal, failed, doesnt exist..
<jinette> so the database is not created, it says
Suntzu has joined #ruby
<jinette> the user could not be created
<NinjaPanzer> right so postgres needs a table and user with access. It uses that to make a schema which we usually refer to as to the db from a rails perspective. The default is it will try and login as your local user and look for a db of the same name.
safe has quit [Quit: Leaving]
<jinette> NinjaPanzer, I got stuck here with postgres: 'sudo -u postgres createuser --superuser $USER'
Cohedrin has joined #ruby
<NinjaPanzer> I just did this lemme look through my history
blackmesa has joined #ruby
karioleez has joined #ruby
<NinjaPanzer> I used this as my reference http://www.tunnelsup.com/setting-up-postgres-on-mac-osx
<NinjaPanzer> starting at the section "Additional Postgres Commands"
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
<NinjaPanzer> you should reference the .env file and the config/database.yml (assuming rails here) to see if there are any expectations on the database name
shmuli has quit [Remote host closed the connection]
<NinjaPanzer> when it says `createuser --pwprompt tunnelsup` i would replace tunnelsup with a username you like or your loginuser account for simplicity
<NinjaPanzer> same thing with the `createdb -Otunnelsup -Eutf8 mysite_development` command
ILikeBears has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
karioleez has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
Inside has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
saneax_AFK is now known as saneax
shmuli has joined #ruby
<jinette> NinjaPanzer, I have brew installed on Linux, though haven't tried pg with it yet
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jt__ has joined #ruby
mistermocha has joined #ruby
<NinjaPanzer> Hah I didn't even know they made a linux homebrew
karioleez has joined #ruby
<NinjaPanzer> you shouldn't need it as long as you have postgres installed via apg-get
devbug has joined #ruby
smathy is now known as smathy_afk
karmatr0n has quit [Ping timeout: 252 seconds]
fumihiro has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
vale_tudo has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
braincras has joined #ruby
htmldrum has joined #ruby
tmtwd has joined #ruby
karioleez has quit [Ping timeout: 240 seconds]
bear_ has joined #ruby
devbug has quit [Client Quit]
bear_ is now known as ILikeBears
mistermocha has quit [Ping timeout: 268 seconds]
ILikeBears is now known as InfinityBear
karmatr0n has joined #ruby
polysics has joined #ruby
paradisaeidae_ has joined #ruby
<InfinityBear> I am back.
<InfinityBear> new name. now registered
adymitruk is now known as Adam_FromVancouv
kam270 has quit [Ping timeout: 240 seconds]
Adam_FromVancouv is now known as Adam_FrVancouver
karioleez has joined #ruby
IrishGringo has joined #ruby
dc4 has joined #ruby
karioleez has quit [Ping timeout: 250 seconds]
polysics has quit [Ping timeout: 244 seconds]
xsdfdfsa has joined #ruby
duckpuppy has joined #ruby
gix has quit [Ping timeout: 248 seconds]
karioleez has joined #ruby
BSaboia has quit [Ping timeout: 268 seconds]
benlieb has quit [Quit: benlieb]
chouhoulis has quit [Remote host closed the connection]
baweaver has joined #ruby
r0b3rt has joined #ruby
<Radar> Hello.
<Radar> I'm back from lunch. Did anything interesting happen?
<jinette> NinjaPanzer, I think I magically managed to create a user. at least I can enter psql command line now
gix has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
<NinjaPanzer> Programming -> The endless search for a new error :P
karioleez has quit [Ping timeout: 260 seconds]
<NinjaPanzer> There was a little drama Radar but it settled down
smckee has joined #ruby
<Radar> I am sad that I missed the drama.
<InfinityBear> Radar, I got into an argument with another guy
<InfinityBear> told him to learn a real language, he called ops on me.
<InfinityBear> nothing happened.
<Radar> I see.
<Radar> Is the sooky attitude gone or does someone need a time out?
<InfinityBear> Radar, fuck RVM.
<InfinityBear> Fuck it and a half.
<jinette> the db error is not coming anymore, but the other error is.
<InfinityBear> I'm porting parts of BeEF to Java.
<Radar> InfinityBear: I agree with the "fuck RVM"
<Radar> InfinityBear: Have you tried chruby+ruby-install?
<InfinityBear> never heard of it.
<Radar> They're two separate things. I use them to install and switch between Rubies on all my machines. Works seamlessly.
<Radar> RVM does not.
<NinjaPanzer> jinette what happens if we leave out the foreman run portions?
djbkd has joined #ruby
smckee has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
<jinette> NinjaPanzer, if you mean running only 'rake db:migrate' or 'bundle exec rake db:migrate', I still get the ruby version problem with Gemfile.
jgrevich has quit [Ping timeout: 260 seconds]
<NinjaPanzer> T_T
<NinjaPanzer> this stuff up on github somewhere?
karmatr0n has quit [Ping timeout: 260 seconds]
<jinette> NinjaPanzer, yes, here: http://is.gd/oKXp7m for localhost, and here for Heroku: http://is.gd/NjsLnP
Chagel_ has joined #ruby
* Radar hisses at another RVM mention
<Radar> Well, there's your problem
PedramT has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Chagel has quit [Ping timeout: 246 seconds]
<NinjaPanzer> so it looks like foreman is here to setup the .env before the command runs. Have you gone through that part of the setup already jinette
shmuli has quit []
jpfuentes2 has joined #ruby
Chagel_ has quit [Remote host closed the connection]
<NinjaPanzer> also can you post the full stacktrace becuase i bet the line right after your error will help direct us a little further
fedexo has joined #ruby
<jinette> NinjaPanzer, as I was trying the Heroku one, yes, I went through that, too, referring to the 'foreman run rake secret' part
Chagel has joined #ruby
PedramT has quit [Ping timeout: 244 seconds]
karioleez has joined #ruby
<jinette> in the localhost one I guess it doesnt have a similar role
shayan has joined #ruby
<NinjaPanzer> I was referring to "Your .env file should look something like this:" .... part
Chagel has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
<jinette> yes, I mean there, too..the foreman command generated the secret tokens, as far as I remember
Chagel has joined #ruby
duncannz has joined #ruby
karioleez has quit [Ping timeout: 276 seconds]
B1n4r10 has quit [Read error: Connection reset by peer]
jino has joined #ruby
cdg has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 248 seconds]
jinette has quit [Ping timeout: 264 seconds]
B1n4r10 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
jino is now known as jinette
InfinityBear is now known as InfinityBear2
InfinityBear2 is now known as InfinityBear1
InfinityBear1 is now known as infinitybear
<jinette> something unearthly passed through
infinitybear is now known as InfinityBear
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<jinette> NinjaPanzer, I will leave foreman and all the foremen to their fate for today. I must give up for now..thank you very much for helping me all the while!
blackmesa has joined #ruby
ericlee has quit [Ping timeout: 268 seconds]
NinjaPanzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karioleez has joined #ruby
<jinette> ciao, till later!
jinette has quit [Quit: Leaving]
NinjaPanzer has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
karioleez has quit [Ping timeout: 248 seconds]
jt__ has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 276 seconds]
d0nn1e has joined #ruby
karioleez has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
lxsameer has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
bronson has quit []
hk238 has joined #ruby
ramfjord has joined #ruby
matp has quit [Remote host closed the connection]
karioleez has quit [Ping timeout: 276 seconds]
minimalism has quit [Quit: minimalism]
rmulligan has quit [Ping timeout: 250 seconds]
G has joined #ruby
moeabdol1 has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
shayan has quit [Quit: shayan]
karioleez has joined #ruby
holmser has joined #ruby
Chagel has quit [Remote host closed the connection]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
G has quit [Quit: leaving]
BtcBen has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
matp has joined #ruby
devbug has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
karmatr0n has joined #ruby
Chagel has joined #ruby
kp666 has quit [Remote host closed the connection]
NinjaPanzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has joined #ruby
rippa has joined #ruby
smckee has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
r0bby_ has quit [Ping timeout: 276 seconds]
duncannz has quit [Ping timeout: 260 seconds]
arescorpio has quit [Remote host closed the connection]
jenrzzz has joined #ruby
krz has quit [Ping timeout: 252 seconds]
rmulligan has joined #ruby
youch has joined #ruby
jokester has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
A5101 has joined #ruby
karioleez has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 250 seconds]
vdamewood has quit [Quit: Life beckons.]
Chagel has quit [Remote host closed the connection]
elifoster has joined #ruby
PedramT has joined #ruby
blackmesa has joined #ruby
Inside has quit [Ping timeout: 244 seconds]
<baweaver> Ox0dea: working on that Reducible post
rake_db_migrate has quit [Read error: Connection reset by peer]
<Ox0dea> baweaver: W00t!
<baweaver> it even comes with *tests* :O
<baweaver> I'll release it as a gem too because why not.
<Ox0dea> baweaver: A bad wheel to reinvent, I should think.
krz has joined #ruby
<baweaver> Maybe, but the point is to show how to think in those terms
PedramT_ has joined #ruby
<Ox0dea> Oh, I meant for the tests.
<baweaver> which inadvertantly makes you think very close to what Haskell or Scala would look like
<Ox0dea> That was a genuine "W00t!" back there.
<baweaver> just to prove that it works as intended
<Ox0dea> $ ruby -r ./reducible trunk/test/runner.rb trunk/test/ruby/test_enum.rb
PedramT has quit [Ping timeout: 260 seconds]
<baweaver> Shhh
<baweaver> it lets me cheat
<Ox0dea> I'm just grabbing hold of Enumerable's #reduce before reassigning it to Reducible.
<Ox0dea> Heaps of explosions!
rake_db_migrate has joined #ruby
<baweaver> joking aside, the point is to say you can effectively do it. I won't be pedantic about absolute correctness
<baweaver> this is a toy implementation in the end
<baweaver> and its better that it doesn't 100% work to dissuade people from actually using it.
<Ox0dea> I'd like to see your #zip when you get to the bottom of the list. :)
<baweaver> ...cripes
<baweaver> I'd like to see it too
<Ox0dea> `reduce([]) { |a, e| a << [e, *others.map(&:shift)] }` is terrible.
PedramT has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
<baweaver> I'll go for readability over performance.
<baweaver> Going to put a long list of disclaimers in the header for pedants
<Ox0dea> I more meant that it's stateful.
PedramT_ has quit [Ping timeout: 244 seconds]
<baweaver> ah
<Ox0dea> Carrying around the accumulator and an index is suck.
lele has quit [Ping timeout: 260 seconds]
<baweaver> the heck
<baweaver> itunes keeps opening asking me for credentials
B1n4r10 has quit [Ping timeout: 244 seconds]
<baweaver> fine, take your dang credentials and go away
Devalo has joined #ruby
lele has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
B1n4r10 has joined #ruby
PedramT has joined #ruby
jt__ has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
polysics has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
rmulligan has joined #ruby
Chagel has joined #ruby
polysics has quit [Ping timeout: 276 seconds]
dc4 has quit [Ping timeout: 260 seconds]
GitGud has joined #ruby
BtcBen has joined #ruby
duckpuppy has joined #ruby
statelesscode has quit [Quit: statelesscode]
Chagel has quit [Remote host closed the connection]
Neo_ has joined #ruby
<Neo_> hi
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 244 seconds]
fumihiro has quit [Ping timeout: 246 seconds]
<baweaver> Neo_: Follow the white rabbit
<baweaver> ah wait, wrong movie
<baweaver> what's up?
InfinityBear has quit [Remote host closed the connection]
<mozzarella> red dress?
bluOxigen has joined #ruby
_blizzy_ has joined #ruby
<baweaver> or red pill?
jenrzzz has quit [Ping timeout: 244 seconds]
<Neo_> lol
<Neo_> baweaver; I didnt get u
sauvin has joined #ruby
PedramT has quit [Remote host closed the connection]
<baweaver> With Keaunu Reeves as Neo
Chagel has joined #ruby
<baweaver> anyways, joke is a miss.
<Neo_> lol
<Neo_> so you been programming since?
PedramT has joined #ruby
<baweaver> since ...?
<Neo_> 1 year>
<Neo_> ?
<Neo_> 2-?
<baweaver> I lose track.
<Neo_> ooow
<baweaver> Somewhere north of 12 though including non-professional
zast has quit [Remote host closed the connection]
<Neo_> anyways you know how to stay connected to this irc through android?
<Neo_> any app?
PedramT has quit [Remote host closed the connection]
rake_db__ has joined #ruby
karmatr0n has joined #ruby
<Ox0dea> Neo_: JuiceSSH.
PedramT has joined #ruby
<Neo_> ow
<Neo_> tx
<Neo_> I'll check that
rake_db_migrate has quit [Read error: Connection reset by peer]
dc4 has joined #ruby
vondruch has quit [Quit: Ex-Chat]
<Neo_> 12 years is a lot of experience! @baweaver
hahuang65 has joined #ruby
vondruch has joined #ruby
Mia has quit [Read error: Connection reset by peer]
rake_db__ has quit [Read error: Connection reset by peer]
codecop has joined #ruby
rake_db_migrate has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
htmldrum has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
mistermocha has joined #ruby
yfeldblum has quit [Remote host closed the connection]
skweek has joined #ruby
rake_db__ has joined #ruby
rake_db_migrate has quit [Read error: Connection reset by peer]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jorum has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
<Ox0dea> baweaver: https://git.io/vVzUa :P
fedexo has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 260 seconds]
PedramT has quit [Ping timeout: 244 seconds]
<baweaver> I ignore anything that tells me to use single letters when explaining anything
elifoster has quit [Ping timeout: 248 seconds]
noService has joined #ruby
<baweaver> half of style is knowing when it's appropriate to ignore it
<baweaver> that, and we're not Python :P
jenrzzz has joined #ruby
scepticulous has joined #ruby
<Neo_> so I downloaded Juice SSH
<Neo_> JuiceSSH
Suntzu has quit [Read error: Connection reset by peer]
<Neo_> what do I do next?
babblebre has quit [Quit: Connection closed for inactivity]
Es0teric has joined #ruby
<Ox0dea> ♫ It’s so much better when everyone is in. Are you in? ♫
<Ox0dea> baweaver: Convention uber alles.
<Neo_> ?
rake_db__ has quit [Read error: Connection reset by peer]
aganov has joined #ruby
rake_db_migrate has joined #ruby
<Ox0dea> Neo_: JuiceSSH is for connecting to an SSH server; I was mostly being facetious.
skweek has quit [Ping timeout: 260 seconds]
<Ox0dea> The folks who join here from their phones tend to be using AndroIRC; maybe give that one a go.
<Neo_> oh.k
<Neo_> ty
<Ox0dea> Sure thing.
Musashi007 has joined #ruby
<Neo_> you can see I am complete newbie!
<Neo_> in both .. all those network connections and ruby
<Neo_> so..
Xiti has quit [Quit: Xiti]
<Ox0dea> Whatcha using to learn Ruby?
jt__ has quit [Remote host closed the connection]
<Neo_> a book and irbmain
<Neo_> :O
<Neo_> :P
<Neo_> ruby interpreter
ericlee has joined #ruby
karioleez has joined #ruby
<Neo_> book name:- Beginning Ruby From Novice To Professional
<Neo_> what do you suggest?
karioleez has quit [Remote host closed the connection]
noobplayer97 has joined #ruby
htmldrum has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
Musashi007 has quit [Quit: Musashi007]
karioleez has joined #ruby
smckee has quit [Remote host closed the connection]
gusrub has joined #ruby
<Ox0dea> The one you're reading is by the fellow who made this, though: https://www.youtube.com/watch?v=VBC-G6hahWA
<Ox0dea> So it's probably fine to stick with it to the end. :)
gusrub has quit [Client Quit]
aeterne has quit [Read error: Connection reset by peer]
<baweaver> Ox0dea: I think cycle is out of range too
<baweaver> each_cons is going to be a pain
<Neo_> .. yah I do have tht book in my lib too
<Neo_> kk
<Neo_> ty
mistermocha has joined #ruby
benlieb has quit [Quit: benlieb]
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
biberu has joined #ruby
crameth has joined #ruby
crameth has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 248 seconds]
<Ox0dea> baweaver: Hm... I guess all the ones that return Enumerators are excessively painful.
<baweaver> pretty much
<Ox0dea> #each_cons is pretty easy if you're okay with mutable state, though.
<baweaver> I _could_ do them but that's beside the point of this one.
mistermocha has quit [Ping timeout: 276 seconds]
<baweaver> I'll do enumerators in another tutorial
Devalo has quit [Remote host closed the connection]
<Neo_> tutorial?
<Neo_> baweaver is a tutor?
Musashi007 has joined #ruby
<Ox0dea> baweaver: Blech. https://eval.in/547664
<baweaver> In a manner of speaking
rake_db_migrate has quit [Remote host closed the connection]
testee has joined #ruby
htmldrum has joined #ruby
<baweaver> I'll give you a hint there
e4xit has joined #ruby
<baweaver> remember that project euler solution from yesterday?
<Ox0dea> Myep.
<baweaver> that
<Ox0dea> Heh.
<baweaver> >> first, *rest = [1,2,3]; rest
<ruby[bot]> baweaver: # => [2, 3] (https://eval.in/547665)
<baweaver> keep a state reference to the current stack, whenever it hits 3, push one to the result
<testee> Hello
<testee> why this is wrong ? ruby -wne'BEGIN{h={}};h[gets]++;puts h.inspect'
<testee> it points to semicolon before puts
<Ox0dea> baweaver: It only "hits" 3 the once?
<baweaver> why the begin?
<Ox0dea> For initialization purposes.
<baweaver> ignoring that BEGIN doesn't mean anything there and probably causes an error unless Ruby inherited some screwed up AWK syntax somewhere.
<Ox0dea> It did.
dikaio has joined #ruby
<Ox0dea> testee: Ruby doesn't have `++`.
A5101 has quit [Remote host closed the connection]
<testee> thank you
<Ox0dea> >> h = Hash.new(0); h[:foo] += 1; h # testee
<ruby[bot]> Ox0dea: # => {:foo=>1} (https://eval.in/547667)
polysics has joined #ruby
tjvc has quit [Ping timeout: 252 seconds]
<baweaver> are you trying to get a word count or something?
<baweaver> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
Suntzu has joined #ruby
SenpaiSilver_ has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
<baweaver> Ox0dea: where's the notes on that? Never seen it before
sandstrom has joined #ruby
<Ox0dea> baweaver: The -n flag runs the -e for each line of input; BEGIN is for avoiding your state getting reset for each line.
<baweaver> and admittedly never want to see again :P
Musashi007 has quit [Quit: Musashi007]
<baweaver> ah
shmuli has joined #ruby
<Ox0dea> It's the opposite of END, which is essentially synonymous with #at_exit.
<baweaver> feels dirty though, there's not a better way just to get stdin?
gusrub has joined #ruby
Macaveli has joined #ruby
<Ox0dea> I mean, you could read it all at once? The -n and -p flags are for using Ruby like a stream editor.
gusrub has quit [Client Quit]
<baweaver> I very very rarely use ruby inline in bash
<Ox0dea> Smart.
<baweaver> by that point I just switch straight to ruby
<testee> sometimes you feel need to write shortest one-liner possible
last_staff has joined #ruby
benlieb has joined #ruby
<baweaver> sometimes people like that should be thrown out a window
davee_ has joined #ruby
* Ox0dea is at risk of being defenestrated.
holmser has quit [Remote host closed the connection]
benlieb has quit [Client Quit]
<baweaver> focus on clarity rather than length
<Ox0dea> Bonus points if you manage to do both.
<testee> one-liner doesn't need clarity
<Neo_> k.. I'll stay connected with..
<Ox0dea> testee: Golf is recreational.
<noobplayer97> This
jas02 has joined #ruby
johnbat26 has joined #ruby
Neo_ has quit [Quit: Page closed]
<zenspider> rawr
nando293921 has quit [Ping timeout: 248 seconds]
<testee> 0x0dea: if i need a sect to teach my how to live, i'd consider isis and not irc channel
<baweaver> !kick testee
testee was kicked from #ruby by ruby[bot] [kickable offense, see http://ruby-community.com/pages/user_rules]
<Ox0dea> Good call.
<baweaver> they can come back in a minute
<Ox0dea> Fingers crossed.
<baweaver> anyways
<baweaver> Enumerator could effectively be simulated with closures if you try hard enough
<baweaver> though I'd _really_ have to think about that one
zenspider has quit [Changing host]
zenspider has joined #ruby
<baweaver> zenspider: shiny
firstdayonthejob has joined #ruby
skweek has joined #ruby
<zenspider> now I'm all... official n' sh...tuff, right?
<baweaver> something like that
stan has quit [Quit: Leaving]
blackgoat has quit [Ping timeout: 260 seconds]
<lxsameer> _ko1: is there any plan to implement the bye code caching on cruby ?
<zenspider> I need a better pruney algorithm/script
<zenspider> lxsameer: timezones are probably not your friend
<lxsameer> zenspider: it seems so :P, assuming koichi lives in Japan, we would have about 5 hourse time difference
agit0 has quit [Quit: zzzZZZ….]
<zenspider> that also depends on whether he's a morning person or a nocturne. I think he's a morning person iirc
duncannz has joined #ruby
jas02 has quit [Remote host closed the connection]
Chagel has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
<lxsameer> Ox0dea: thanks
<Ox0dea> lxsameer: Sure thing. See also: https://bugs.ruby-lang.org/issues/11788
roelof has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
<lxsameer> Ox0dea: cool , to be honest I really like to work on this field but I don't have any idea about core team plans and stuff
hahuang65 has joined #ruby
ta_ has joined #ruby
bry4n has quit [Ping timeout: 276 seconds]
ta_ has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
patrick-sartent has joined #ruby
ta_ has joined #ruby
<havenwood> really enjoyed rewatching Y Not Adventures in Functional Programming <3 <3 <3
<roelof> someone who can help me solve this one : https://gist.github.com/rwobben/a8a06da3b0a511cccdcb3ac201c283b4
polysics has quit []
<roelof> I cannot make the inject work
<havenwood> my not-so-pure notes from this watch: https://gist.github.com/havenwood/fd96e63ec60c15e07af85fc2f76f8ed7
kits has joined #ruby
mark2 has joined #ruby
<havenwood> 'tis the fibonacci hour
<baweaver> roelof: spec file?
<baweaver> also, do you know how inject works?
speaking1ode has quit [Read error: Connection reset by peer]
<roelof> baweaver: I cannot give you. It's a exercise from ruby monk
jgt1 has joined #ruby
<baweaver> what was the problem?
<baweaver> *exercise description
webus has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
<roelof> baweaver: I thought I knew how inject works , [ 1, 2,3].inject { |item,sum| sum += item } schould give 6
<baweaver> It does, though += isn't needed there
<roelof> at the bottom
pawnbox has quit [Remote host closed the connection]
sinanislekdemir has joined #ruby
<roelof> baweaver: oke, how could I write the inject then better ?
pandaant has joined #ruby
<baweaver> did you read the description?
<Ox0dea> roelof: You're not being asked to implement #inject, for what that's worth.
ssiris has quit [Quit: End of Line]
PedramT has joined #ruby
<baweaver> read again, slowly
<Mon_Ouie> Also the names you're giving to item and sum suggest you got the arguments backwards
jaruga__ has joined #ruby
jaruga__ has quit [Remote host closed the connection]
<baweaver> Mon_Ouie: good catch
jorum has quit [Ping timeout: 246 seconds]
jgrevich has joined #ruby
<Ox0dea> havenwood: That's nifty! Good on you for giving it its proper name. :)
jaruga__ has joined #ruby
<roelof> o, I thought I need it because of this hint : The tests are using the map and inject methods. These are available in the Enumerable module. Mix the module in and define the each method for your class.
<havenwood> Ox0dea: :)
djbkd has joined #ruby
PedramT has quit [Remote host closed the connection]
speaking1ode has joined #ruby
<roelof> beagles: oke, I will begin again. Then I see this message : the `each` method should be defined
<roelof> so I make a each method , correct baweaver
<baweaver> yeah
existensil has quit [Ping timeout: 260 seconds]
<roelof> baweaver: then I see this one : Enumerable's inject method should work
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
jaruga__ has quit [Client Quit]
cdg has joined #ruby
<roelof> how do I make it then work, baweaver ?
<Ox0dea> roelof: Read again.
<Ox0dea> Slowly.
vondruch has quit [Quit: Ex-Chat]
hxegon has joined #ruby
<roelof> Ox0dea: which part. I see this rspec message : Enumerable's inject method should work and then undefined method `inject' for #FibonacciNumbers:0x000000031339d8
<baweaver> Read that last box, word for word
<baweaver> you're going to need to find this one yourself
<zenspider> roelof: you need to read and think BEFORE you write in this window. on EACH error.
<roelof> you mean this one : the Enumerable module should be mixed in
<zenspider> slow down. read. think. you got this
sandstrom has quit [Quit: My computer has gone to sleep.]
ur5us has quit [Remote host closed the connection]
noobplayer97 has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
ur5us has joined #ruby
<roelof> found it, The answer is in the second part of the explanation
<baweaver> not a fan of it, need to simplify more later.
lsmola has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
stan has joined #ruby
jorum has joined #ruby
SCHAAP137 has joined #ruby
youch has quit [Ping timeout: 244 seconds]
agent_white has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
<baweaver> chunk_while is easier.
jt__ has joined #ruby
PedramT has joined #ruby
<zenspider> baweaver: baby steps
pandaant has quit [Remote host closed the connection]
pawnbox has joined #ruby
<baweaver> ah, in my context
galeido has quit [Quit: leaving]
<baweaver> reimplementing all of Enumerable (minus Lazy/Enumerator) using Reduce
smckee has joined #ruby
galeido has joined #ruby
galeido has quit [Changing host]
galeido has joined #ruby
<baweaver> mostly for fun / thought exercise.
<baweaver> also works as a great intro to recursion using inner functions and TCO without realizing that's effectively what you're doing.
blackmesa has joined #ruby
pandaant has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
mistermocha has quit [Ping timeout: 248 seconds]
diegoaguilar has quit [Remote host closed the connection]
<baweaver> writing a tutorial over all of it, comments / notes included. At the end I drop the bombshell that they've just realized how to implement a good portion of FP basics that translate almost 1:1 to Scala/F#
smckee has quit [Ping timeout: 268 seconds]
mhoungbo has joined #ruby
PedramT has quit [Remote host closed the connection]
agit0 has joined #ruby
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
CausaMortis has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
jt__ has quit [Remote host closed the connection]
aufi has joined #ruby
devbug has joined #ruby
<karioleez> how can someone talk to kernel devices with Ruby ? Do I need any C libraries ?
tmtwd has quit [Ping timeout: 268 seconds]
sandstrom has joined #ruby
AndroUser has joined #ruby
AndroUser has left #ruby [#ruby]
<djellemah> karioleez: http://ruby-doc.org/stdlib-2.3.0/libdoc/fiddle/rdoc/Fiddle.html is a good place to start
terlar has joined #ruby
AndroUser has joined #ruby
PedramT has joined #ruby
roelof has quit [Quit: Page closed]
jt__ has joined #ruby
<karioleez> djellemah: so it will always be a call to a C library ?
djbkd has quit [Quit: Leaving...]
AndroUser has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<djellemah> dunno. Depends on the device, I think. If the device has /dev entries, you might be able to use those. I've talked to a serial port before using /dev/ttyS0
PedramT_ has joined #ruby
<djellemah> on linux
nodejunkie has quit [Ping timeout: 252 seconds]
PedramT has quit [Ping timeout: 244 seconds]
fumihiro has joined #ruby
duckpuppy has joined #ruby
<karioleez> djellemah: talking to serial devices is pretty easy
baweaver has quit [Remote host closed the connection]
PedramT_ has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
tmtwd has joined #ruby
<Ox0dea> &ri ioctl karioleez
jorum has quit [Ping timeout: 260 seconds]
<karioleez> `derpy: I believe this is only for read requests
rmulligan has quit [Remote host closed the connection]
fumihiro has quit [Ping timeout: 246 seconds]
jorum has joined #ruby
shmuli has quit [Remote host closed the connection]
<Ox0dea> karioleez: IO#ioctl can do anything ioctl(2) can, I'd imagine.
<Ox0dea> It's effectively a wrapper.
Madplatypus has joined #ruby
shmuli has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
dn` has joined #ruby
Silox| has joined #ruby
<karioleez> Ox0dea: interesting
<karioleez> Ox0dea: have you ever used this ?
<Ox0dea> I've not.
<Ox0dea> Too low-level for my blood.
AlexRussia has quit [Ping timeout: 248 seconds]
CloCkWeRX has quit [Quit: Leaving.]
hxegon has quit [Quit: BRB]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<karioleez> but this is awesome
antgel has joined #ruby
<Ox0dea> Ruby loves you and wants you to be happy. :)
solars has joined #ruby
rmulligan has joined #ruby
<karioleez> lol thanks for the hint
last_staff has quit [Quit: last_staff]
Chagel has joined #ruby
<Ox0dea> No worries.
<adaedra> Hello
terlar has quit [Quit: WeeChat 1.4]
pawnbox has quit [Remote host closed the connection]
terlar has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dikaio has joined #ruby
shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
merida has joined #ruby
karmatr0n has joined #ruby
_blizzy_ has quit [Ping timeout: 264 seconds]
GitGud has quit [Quit: You're gonna carry that weight...]
Chagel has quit [Remote host closed the connection]
Ishido has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
SHyx0rmZ has joined #ruby
hahuang65 has joined #ruby
lkba has quit [Remote host closed the connection]
rmulligan has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 260 seconds]
rmulligan has joined #ruby
davee_ has quit [Ping timeout: 264 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
skade has joined #ruby
pawnbox has joined #ruby
the_drow has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
vondruch has joined #ruby
stannard has joined #ruby
mdw has joined #ruby
neanderslob has quit [Ping timeout: 248 seconds]
neanderslob_ has joined #ruby
ruby-lang624 has joined #ruby
sandstrom has left #ruby ["OS X IRC Client (www.textualapp.com)"]
tmtwd has quit [Ping timeout: 248 seconds]
BtcBen has quit [Ping timeout: 248 seconds]
stannard has quit [Ping timeout: 246 seconds]
smckee has joined #ruby
tildes has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
ruby-lang624 has quit [Quit: Page closed]
blackmesa has joined #ruby
pawnbox has quit [Remote host closed the connection]
jt__ has quit [Remote host closed the connection]
Couch has joined #ruby
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #ruby
merida has quit [Remote host closed the connection]
polysics has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
rmulligan has quit [Remote host closed the connection]
marr has joined #ruby
Snowy has joined #ruby
yfeldblum has joined #ruby
rmulligan has joined #ruby
colegatron has joined #ruby
existensil has joined #ruby
karioleez has quit []
mistermocha has joined #ruby
colegatron has left #ruby [#ruby]
karioleez has joined #ruby
sepp2k has joined #ruby
mrgrieves has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
anisha has joined #ruby
Snowy has joined #ruby
senayar has joined #ruby
senayar was kicked from #ruby by ruby[bot] [was banned before]
<chridal> I'm very interested in understanding and measuring performance of a Rack app and in general
<chridal> Where should I be looking resources-wise?
<chridal> I'd love to read some good text on performance and benchmarking and in general but also Ruby-specific
ncopa has quit [Quit: Leaving]
mistermocha has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
Beast has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
shmuli_ has joined #ruby
devbug has quit [Quit: ZZZzzz…]
weckl has joined #ruby
shmuli has quit [Ping timeout: 250 seconds]
Chagel has joined #ruby
weckl has quit [Client Quit]
weckl has joined #ruby
glcx has joined #ruby
glcx has joined #ruby
weckl has quit [Client Quit]
weckl has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
Chagel has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
mistermocha has joined #ruby
hahuang65 has joined #ruby
elaptics`away is now known as elaptics
ramfjord has quit [Ping timeout: 252 seconds]
polysics_ has joined #ruby
skade has joined #ruby
vale_tudo has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
ferr has joined #ruby
<Radar> chridal: considered using a service like new relic or skylight for that?
<chridal> Radar: What I mean is I'd like to understand actually how different things affect performance
polysics has quit [Ping timeout: 260 seconds]
<chridal> such as the real cost of spinning of a thread
<chridal> off *
hahuang65 has quit [Ping timeout: 268 seconds]
skade has quit [Client Quit]
bluOxigen has quit [Ping timeout: 260 seconds]
rodfersou has joined #ruby
skade has joined #ruby
bluOxigen has joined #ruby
vale_tudo has quit [Ping timeout: 248 seconds]
kam270 has joined #ruby
hahuang65 has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
shmuli_ has quit [Remote host closed the connection]
dc4 has quit [Ping timeout: 252 seconds]
shmuli has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
Ox0dea has quit [Ping timeout: 260 seconds]
antgel has quit [Ping timeout: 276 seconds]
brent_ has quit [Quit: Connection closed for inactivity]
smckee has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 246 seconds]
madgen has joined #ruby
Chagel has joined #ruby
n008f4g_ has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.3 Beta Build (2016/04/05) 32 Bit]
Tempesta has joined #ruby
blackgoat has joined #ruby
skislak has joined #ruby
<adaedra> !unban senayar
<Adam_FrVancouver> ok.. I need to install ruby 1.9.2 (preferrably 1.9.2-p180).. don't ask why
<Adam_FrVancouver> how can I get that old version?
<Radar> Adam_FrVancouver: ruby-install ruby 1.9.2-p180
<Adam_FrVancouver> is that it?
<Adam_FrVancouver> ruby-install will do it?
<Radar> yup.
<Radar> You have to install ruby-install first.
<Adam_FrVancouver> ok.. thanks. was thinking I would need to trick rvm or something...
polysics_ has quit []
the_drow has quit [Read error: Connection reset by peer]
<Adam_FrVancouver> no specific ppa needed for ruby-install?
tjvc has joined #ruby
tjvc has quit [Changing host]
tjvc has joined #ruby
<adaedra> rvm should be able to do it too, no?
sathish has joined #ruby
blackmesa has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
kedare has quit [Ping timeout: 248 seconds]
<Adam_FrVancouver> adaedra: I don't think it supports crappy versions like this one
<Adam_FrVancouver> it's full of security holes
<Adam_FrVancouver> but i'm not sure
<Adam_FrVancouver> I'm new to this
antgel has joined #ruby
jorum has quit [Ping timeout: 244 seconds]
shmuli has quit [Remote host closed the connection]
<sathish> Hey I'm currently using middleman for a project, Now I want to collect payments from the website, I want to make API calls and send API tokens, How can i go about doing that in middleman
shmuli has joined #ruby
<adaedra> Adam_FrVancouver: well did you at least try?
<Adam_FrVancouver> I will
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Chagel has quit [Read error: Connection reset by peer]
Es0teric has quit [Quit: Computer has gone to sleep.]
glcx has quit [Quit: Quitte]
blackgoat has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
blackgoat has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
kedare has joined #ruby
evidex has joined #ruby
nodejunkie has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
tvw has joined #ruby
Chagel has quit [Remote host closed the connection]
fumihiro has joined #ruby
Chagel has joined #ruby
platzhirsch has joined #ruby
rmulligan has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
minimalism has joined #ruby
fumihiro has quit [Ping timeout: 244 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
workmad3 has joined #ruby
PedramT_ has joined #ruby
htmldrum has quit [Ping timeout: 268 seconds]
PedramT__ has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
merida has joined #ruby
jorum has joined #ruby
PedramT_ has quit [Ping timeout: 248 seconds]
karmatr0n has joined #ruby
zenspider has quit [Quit: bye]
acosonic has joined #ruby
codenea has joined #ruby
platzhirsch has left #ruby [#ruby]
<acosonic> hi all whats the difference between something["something"] and something.something ?
codenea has quit [Client Quit]
PedramT__ has quit [Ping timeout: 248 seconds]
<adaedra> it's not the same at all.
<Adam_FrVancouver> it is in JavaScript
DoubleMalt has joined #ruby
<acosonic> can I just use something.something without previously declaring it?
<adaedra> Yeah, but here it's #ruby :)
<acosonic> I want to pass some data structure to a function
<Adam_FrVancouver> adaedra: :0)
<adaedra> acosonic: use a hash?
<acosonic> hash? Can you point me to some tutorial?
<forcer> acosonic: foo["something"] calls the [] method on the food object with one argument, the string "something". foo.something calls the method named "something" on the foo object with no arguments. You could use some tricks to handle unknown messages, but remember that most objects implement a lot of methods you would miss, then.
<acosonic> forcer: thanks, that was the answer I was looking for....
karmatr0n has quit [Ping timeout: 244 seconds]
<forcer> I said "food" instead of "foo" there. I need to get some lunch I think.
<adaedra>
<yorickpeterse> forcer: what kind of foo are you going to have for lunch?
<yorickpeterse> A bar?
<yorickpeterse> :>
<adaedra> ?rimshot
antgel has joined #ruby
merida_ has joined #ruby
<forcer> yorickpeterse: You don't have bar for foo, you have foo at a bar.
<forcer> adaedra: ♥
blackgoat has quit [Ping timeout: 244 seconds]
<forcer> Also, pizza. We should use "pizza" as a metasyntactic variable anyhow. It's a great word, and with most people it evokes warm and happy feelings.
<adaedra> ?pizza
<ruby[bot]> here's your pizza:
<forcer> :-D
benlieb has quit [Quit: benlieb]
merida has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
jorum has quit [Ping timeout: 240 seconds]
tildes has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 268 seconds]
the_drow has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
jorum has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
hahuang65 has joined #ruby
Musashi007 has joined #ruby
smckee has joined #ruby
yfeldblum has joined #ruby
Musashi007 has quit [Client Quit]
the_drow has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
antgel has joined #ruby
smckee has quit [Ping timeout: 268 seconds]
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
blaxter has joined #ruby
bry4n has joined #ruby
nobitanobi has joined #ruby
nodejunkie has quit [Ping timeout: 252 seconds]
Blaze_Boy has joined #ruby
ur5us has quit [Remote host closed the connection]
bry4n has quit [Ping timeout: 260 seconds]
auzty has quit [Quit: Leaving]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
rmulligan has joined #ruby
last_staff has joined #ruby
<chridal> I have this regex:
<chridal> The Algorithm Design manual
<chridal> Wait what.
<chridal> mentions = message.body.scan(/@(\w+)/i).flatten
<chridal> So what I want is to capture all usernames that come after an @ so that we can send them a notification that they have been mentioned
<chridal> There is however the issue when someone is writing something like: "Great job @steven!"
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chridal> So is there a way that I can transform my regex to only capture the first alphanumeric string (like \w) that precludes whichever special character that comes after
<chridal> so that "Hey there @steven!how are you doing?" would only yield `steven`?
<workmad3> chridal: that regexp already does that...
<n1colas> Hello
<chridal> What.. ok, so the bug is elsewhere then
<DefV> idd, \w doesn't capture !
n008f4g_ has quit [Ping timeout: 260 seconds]
<workmad3> chridal: http://rubular.com/
<chridal> but it will still capture @christian! and return christian?
<chridal> Thanks. We have a bug somewhere else then. Thanks.
izi has joined #ruby
<djellemah> chridal: https://github.com/JuanitoFatas/fast-ruby might be good for performance
RegulationD has quit [Remote host closed the connection]
<chridal> djellemah: Thanks! Will have a look at that.
<chridal> Btw, also; we'd like to add statistics to our application. We'd for instance like to know what users are viewing which content etc
<chridal> What would be the best way to record these metrics? I mean it 'sounds bad' adding an INSERT-query to every single GET
rmulligan has quit [Ping timeout: 250 seconds]
<chridal> or hitting something like Redis with the network overhead associated with that
<chridal> Spinning off a new thread to avoid incurring the network overhead also sounds bad to me
blackgoat has joined #ruby
<hanmac> chridal: a better regexp might be this:
<hanmac> >> "Hey there @steven!how are you doing?".scan(/(?<=@)\w+/i)
<chridal> Have any one of you done anything like this with some sort of pre-forking like thing? That you have a pipe open to another process on the system that handles something like that?
<ruby[bot]> hanmac: # => ["steven"] (https://eval.in/547832)
shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
<chridal> hanmac: Why is it better? What does the ?<=@ do?
<hanmac> chridal: http://ruby-doc.org/core-2.3.0/Regexp.html Positive lookbehind assertion: ensures that the preceding characters match pat, but doesn't include those characters in the matched text
fumihiro has joined #ruby
baweaver has joined #ruby
<chridal> Aha. Yes, that would be better. Cheers!
andywojo has quit [Ping timeout: 240 seconds]
shmuli has quit [Remote host closed the connection]
shmuli has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
m8 has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
k13nox has joined #ruby
Begi has joined #ruby
Begi has left #ruby [#ruby]
gregf has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
the_drow has joined #ruby
karmatr0n has joined #ruby
<Caerus> chridal, read up on Rails actioncable, I thinks that's the only way you're gonna get rid of a redis aproach to achieve something stateful
webus has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<chridal> Caerus: I thought ActionCable uses Redis?
merida_ has quit [Remote host closed the connection]
<chridal> also, I'm unsure if I see how actioncable would solve this
<chridal> I don't really need the client to tell me whether he has viewed a resource since that GET really is enough
merida has joined #ruby
<chridal> Come to think about it I could probably do this with NGINX as well
Beast has quit [Quit: Leaving]
<chridal> Too bad KONG uses Cassandra or I'd pull that right in.
<Caerus> i don't know. haven't really used it. just echoing what i've read lately, whenever stateful features show up, lots of people point to actiocable
karmatr0n has quit [Ping timeout: 244 seconds]
jgt1 has joined #ruby
<Caerus> oh i think i misunderstood. you wrote about saving statistics (doh). don't know where i got stateful from
* Caerus yawns
platzhirsch has joined #ruby
<Caerus> i guess it's really late :P
neanderslob_ is now known as neanderslob
Chagel has quit [Ping timeout: 244 seconds]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
anisha has quit [Quit: Leaving]
anisha has joined #ruby
jgt1 has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
evie_hammond has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
dvinciguerra_ has joined #ruby
Musashi007 has quit [Client Quit]
andywojo has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Rickmasta has quit [Ping timeout: 246 seconds]
smckee has joined #ruby
nhhc has joined #ruby
davedev24 has joined #ruby
the_drow has joined #ruby
Blaze_Boy has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 276 seconds]
Suntzu has quit [Quit: changing servers]
krz has quit [Ping timeout: 264 seconds]
smckee has quit [Ping timeout: 268 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
FooMunki has joined #ruby
vale_tudo has joined #ruby
sandelius has joined #ruby
DoubleMalt has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
DoubleMalt has joined #ruby
bkxd has joined #ruby
tvw has quit []
tvw has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
mistermocha has quit [Ping timeout: 268 seconds]
GodFather has joined #ruby
jgt1 has joined #ruby
k13nox_ has joined #ruby
k13nox has quit [Ping timeout: 244 seconds]
trinaldi has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
k13nox_ has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
sdothum has joined #ruby
polysics has joined #ruby
RegulationD has joined #ruby
ldnunes has joined #ruby
sathish has quit [Quit: Leaving]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cheerio]
Blaze_Boy has joined #ruby
duckpuppy has joined #ruby
mikecmpbll has joined #ruby
Ishido has quit [Remote host closed the connection]
jmorgado has joined #ruby
senayar has joined #ruby
Ishido has joined #ruby
Suntzu has joined #ruby
<rahc> *paths["app/assets"].existent_directories
<rahc> what does the "*" at the start of that line do?
skade has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
<rahc> fully, it's:
<rahc> app.config.assets.paths.unshift(*paths["app/assets"].existent_directories)
the_drow has quit [Read error: Connection reset by peer]
<adaedra> it's a splat
the_drow has joined #ruby
<rahc> err.. a what? :-)
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
y0da has joined #ruby
Musashi007 has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
htmldrum has joined #ruby
<adaedra> it expand the parameters
parduse has quit []
<adaedra> >> def add(a, b); a + b; end; input = [2, 3]; add *input
<ruby[bot]> adaedra: # => 5 (https://eval.in/547901)
<adaedra> ^ here, it took the array input and passed contents as separate parameters
sandelius has joined #ruby
solars has quit [Ping timeout: 244 seconds]
stannard has joined #ruby
freerobby has joined #ruby
rodferso1 has joined #ruby
Macaveli has joined #ruby
blackmesa has joined #ruby
rodfersou has quit [Ping timeout: 268 seconds]
rodferso1 has quit [Quit: leaving]
rodfersou has joined #ruby
Ishido has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 276 seconds]
Ishido has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
binaryplease1 has joined #ruby
<rahc> I see
<rahc> kind of
hanmac has quit [Ping timeout: 250 seconds]
toretore has quit [Ping timeout: 276 seconds]
Snowy has quit [Remote host closed the connection]
PedramT has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
<rahc> is there a language reference for ruby?
Musashi007 has quit [Quit: Musashi007]
k13nox has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Quit: Leaving.]
<rahc> I've done the "Try Ruby!" tutorial, and all the Ruby Koans but there seems to be lots of things about the language that keep coming up which I don't understand
k13nox has quit [Client Quit]
<rahc> like:
<rahc> paths.add "config/database", with: "config/database.yml"
Snowy has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
<rahc> I can't seem to find any language reference document for the language
<rahc> does one exist?
jorum has quit [Ping timeout: 246 seconds]
<adaedra> not officially
<rahc> O_o
<adaedra> all officially provided documents are here: http://ruby-doc.org/
FooMunki has quit [Quit: FooMunki]
binaryplease1 is now known as binaryplease
<rahc> that seems like quite a huge oversight
rmulligan has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
StyXman has left #ruby [#ruby]
bry4n has joined #ruby
PedramT has quit [Remote host closed the connection]
hanmac has joined #ruby
<apeiros> generally take a look at the section "files" on the left
NinjaPanzer has joined #ruby
<apeiros> hm, but something looks off wrt those files. they seem truncated.
barajasfab has joined #ruby
jorum has joined #ruby
<apeiros> ah, it misses the nested files.
bkxd has joined #ruby
<apeiros> the splat operator would be explained here: https://github.com/ruby/ruby/blob/trunk/doc/syntax/calling_methods.rdoc
<adaedra> Ah, I missed these ones
<adaedra> 9_6
bry4n has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
Ishido has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
kentnl has joined #ruby
kentnl has joined #ruby
kent\n has quit [Ping timeout: 248 seconds]
Ishido has joined #ruby
FooMunki has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 244 seconds]
kentnl is now known as kent\n
solars has joined #ruby
IrishGringo has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
stannard has quit [Remote host closed the connection]
pawnbox has joined #ruby
stevednd has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Chagel has joined #ruby
sudoubuntu has joined #ruby
baweaver has joined #ruby
Vile` has quit [Ping timeout: 268 seconds]
rmulligan has quit [Ping timeout: 250 seconds]
Takumo is now known as ginge_bot
ginge_bot is now known as Jagmills
swills has quit [Ping timeout: 244 seconds]
Jagmills is now known as Takumo
but3k4 has joined #ruby
y0da has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
stevednd has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
dstarh has joined #ruby
rake_db_migrate has joined #ruby
skade has joined #ruby
jorum has quit [Ping timeout: 276 seconds]
Paradox has quit [Ping timeout: 260 seconds]
rake_db_migrate has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
rake_db_migrate has joined #ruby
joaumg has joined #ruby
pawnbox has joined #ruby
Paradox has joined #ruby
Denart_ has joined #ruby
CloCkWeRX has joined #ruby
roelof has joined #ruby
PedramT has joined #ruby
blaxter has quit [Quit: foo]
r4z3r has quit [Max SendQ exceeded]
r4z3r has joined #ruby
<roelof> who can help me to get the @normal and @subject to the self.can_drive function ? code so far : https://gist.github.com/rwobben/704fa2e9c9e09f3f71196b84dbd0d1d0
cdg has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
hosttor has joined #ruby
_stu_ has joined #ruby
r4z3r has quit [Max SendQ exceeded]
r4z3r has joined #ruby
johnmilton has joined #ruby
PedramT has quit [Ping timeout: 248 seconds]
callen92 has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
fumihiro has quit [Read error: Connection reset by peer]
pifon has joined #ruby
bluOxigen has joined #ruby
fumihiro has joined #ruby
despai has joined #ruby
lxsameer has quit [Quit: WeeChat 1.4]
xsdfdfsa has quit [Remote host closed the connection]
freerobby has joined #ruby
NinjaPanzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie> Why are you defining 'can_drive?' as a class method?
nobitanobi has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
<roelof> Mon_Ouie: it's defined in the class VisualAcuity (10 and later) . but I have to use it in the DrivingLicenseAuthority class
nobitanobi has joined #ruby
ChiefAlexander has joined #ruby
merida has quit [Remote host closed the connection]
nerium has joined #ruby
<Mon_Ouie> Why does that mean it should be a class method?
<roelof> because its a method which lifes in a class
krz has joined #ruby
<Mon_Ouie> All methods live inside classes.
<roelof> sorry, im a beginner which try to learn ruby by using ruby monk
<Mon_Ouie> For example, look at '@age >= 18'
<Mon_Ouie> This is how you are calling the Integer#>= method, even though you are not inside the Integer class
madgen has quit [Ping timeout: 260 seconds]
<roelof> yes, its defined in the same class as it's being used
agent_white has quit [Quit: leaving]
hahuang65 has joined #ruby
<roelof> normal and subject are part of another class
jorum has joined #ruby
<Mon_Ouie> No, valid_for_license? is used in the class where it is defined, but Integer#>= most certainly is not
davedev24 has quit [Remote host closed the connection]
rmulligan has joined #ruby
<Mon_Ouie> To call a method on an object, you'd use the_object.method_name (with arguments if needed)
smckee has joined #ruby
diegoaguilar has joined #ruby
<roelof> Mon_Ouie: normal and subject need to be floats otherwise I cannot divide it and check if the outcome is bigger then 0.5
hahuang65 has quit [Ping timeout: 260 seconds]
lapisangularis has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie> What difference does that make?
madgen has joined #ruby
<Mon_Ouie> I was just talking about @age, which is an Integer (I assume; it doesn't really matter either)
<lapisangularis> hello, i've got a problem with curses gem in ruby 2.3.0
rmulligan has quit [Ping timeout: 248 seconds]
ta__ has joined #ruby
the_drow_ has joined #ruby
<lapisangularis> I'm requiring the gem, but then, I want to include module, and it seems ruby can't find it
antgel has quit [Ping timeout: 244 seconds]
_SenpaiSilver_ has joined #ruby
moeabdol2 has joined #ruby
Denart__ has joined #ruby
ocbtec has joined #ruby
<lapisangularis> also, curses methods are not working
AccordsLTN has joined #ruby
rmosolgo has joined #ruby
DoubleMalt has quit [Ping timeout: 276 seconds]
e4xit_ has joined #ruby
Mendenhall_ has joined #ruby
xaxisx has joined #ruby
optimaleatscout_ has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pfg__ has joined #ruby
troter_________ has joined #ruby
glacius_ has joined #ruby
bestie_ has joined #ruby
antgel has joined #ruby
jgt2 has joined #ruby
pmarreck_ has joined #ruby
bb010g_ has joined #ruby
jhill_ has joined #ruby
akitada_ has joined #ruby
dstarh has joined #ruby
neanderslob has quit [Disconnected by services]
neanderslob__ has joined #ruby
Ikzi has joined #ruby
madgen_ has joined #ruby
roelof has quit [Quit: Page closed]
speaking2ode has joined #ruby
jmignault has joined #ruby
chihhsin_ has joined #ruby
xsdg_ has joined #ruby
gigetoo_ has joined #ruby
pawnbox_ has joined #ruby
_aeris_ has left #ruby ["Konversation terminated!"]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spk_ has joined #ruby
cschneid has joined #ruby
Phanes- has joined #ruby
bihi_ has joined #ruby
Pupeno has joined #ruby
FastJack_ has joined #ruby
Donkoko has joined #ruby
madgen has quit [*.net *.split]
smckee has quit [*.net *.split]
Denart_ has quit [*.net *.split]
IrishGringo has quit [*.net *.split]
solars has quit [*.net *.split]
the_drow has quit [*.net *.split]
jgt1 has quit [*.net *.split]
mhoungbo has quit [*.net *.split]
speaking1ode has quit [*.net *.split]
ta_ has quit [*.net *.split]
SenpaiSilver_ has quit [*.net *.split]
e4xit has quit [*.net *.split]
jokester has quit [*.net *.split]
moeabdol1 has quit [*.net *.split]
hk238 has quit [*.net *.split]
hightower2 has quit [*.net *.split]
Didac has quit [*.net *.split]
gigetoo has quit [*.net *.split]
pwnd_nsfw has quit [*.net *.split]
bb010g has quit [*.net *.split]
AccordLTN has quit [*.net *.split]
shellie_ has quit [*.net *.split]
crdpink has quit [*.net *.split]
iooner has quit [*.net *.split]
c355e3b has quit [*.net *.split]
FastJack has quit [*.net *.split]
xsdg has quit [*.net *.split]
whiteline has quit [*.net *.split]
tinnvec has quit [*.net *.split]
Mendenhall has quit [*.net *.split]
QualityAddict has quit [*.net *.split]
chihhsin has quit [*.net *.split]
mburns has quit [*.net *.split]
Miron has quit [*.net *.split]
melter has quit [*.net *.split]
bihi has quit [*.net *.split]
HashNuke has quit [*.net *.split]
glacius has quit [*.net *.split]
russt has quit [*.net *.split]
jwang has quit [*.net *.split]
bestie has quit [*.net *.split]
pfg has quit [*.net *.split]
troter________ has quit [*.net *.split]
jhill has quit [*.net *.split]
spk has quit [*.net *.split]
Ikri has quit [*.net *.split]
avenj has quit [*.net *.split]
optimaleatscout has quit [*.net *.split]
pmarreck has quit [*.net *.split]
akitada has quit [*.net *.split]
saneax has quit [*.net *.split]
shiver has quit [*.net *.split]
ctrlrsf has quit [*.net *.split]
Phanes has quit [*.net *.split]
ddv has quit [*.net *.split]
teotwaki has quit [*.net *.split]
demophoon has quit [*.net *.split]
cschneid_ has quit [*.net *.split]
DanKnox has quit [*.net *.split]
tomaw has quit [*.net *.split]
tylersmith has quit [*.net *.split]
nobitanobi has quit [*.net *.split]
pawnbox has quit [*.net *.split]
polysics has quit [*.net *.split]
sepp2k has quit [*.net *.split]
patrick-sartent has quit [*.net *.split]
ericlee has quit [*.net *.split]
gix has quit [*.net *.split]
PlasmaStar has quit [*.net *.split]
znz_jp has quit [*.net *.split]
ujjain has quit [*.net *.split]
jsaak has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
n1colas has quit [*.net *.split]
nano- has quit [*.net *.split]
howdoi has quit [*.net *.split]
rehat has quit [*.net *.split]
Billias has quit [*.net *.split]
aibot has quit [*.net *.split]
nyandoge has quit [*.net *.split]
Caerus has quit [*.net *.split]
Veejay has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
JStoker has quit [*.net *.split]
djcp has quit [*.net *.split]
Cork has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
charles81 has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
Diabolik has quit [*.net *.split]
Eleeleth has quit [*.net *.split]
shelling__ has quit [*.net *.split]
kireevco has quit [*.net *.split]
j2k_ has quit [*.net *.split]
tekacs has quit [*.net *.split]
Mr_Pancake has quit [*.net *.split]
ledestin has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
hostess has quit [*.net *.split]
kloeri has quit [*.net *.split]
codepete has quit [*.net *.split]
_dev has quit [*.net *.split]
shadoi1 has quit [*.net *.split]
oz has quit [*.net *.split]
Olipro has quit [*.net *.split]
CustosLimen has quit [*.net *.split]
dede has quit [*.net *.split]
jcp has quit [*.net *.split]
caw has quit [*.net *.split]
cardoni has quit [*.net *.split]
rflot has quit [*.net *.split]
catbusters has quit [*.net *.split]
ddfreyne_ has quit [*.net *.split]
epochwolf has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
mozzarella has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
zzak___ has quit [*.net *.split]
braderhart has quit [*.net *.split]
DanielJack has quit [*.net *.split]
Meeh has quit [*.net *.split]
jokke has quit [*.net *.split]
jlyndon has quit [*.net *.split]
ijij has quit [*.net *.split]
jrod has quit [*.net *.split]
gigetoo_ is now known as gigetoo
e4xit_ is now known as e4xit
bihi_ is now known as bihi
spk_ is now known as spk
FastJack_ is now known as FastJack
russt has joined #ruby
Miron_ has joined #ruby
tomaw has joined #ruby
lapisangularis has left #ruby ["WeeChat 1.4"]
bestie_ is now known as bestie
QualityAddict has joined #ruby
braderhart has joined #ruby
iooner has joined #ruby
teotwaki_ has joined #ruby
bgresham has joined #ruby
DanKnox_ has joined #ruby
IrishGringo_ has joined #ruby
tinnvec_ has joined #ruby
ericlee has joined #ruby
crdpink2 has joined #ruby
jsaak has joined #ruby
Billias has joined #ruby
nyandoge has joined #ruby
Veejay has joined #ruby
znz_jp has joined #ruby
MuffinPimp has joined #ruby
ujjain has joined #ruby
HashNuke_ has joined #ruby
shiver_ has joined #ruby
Caerus has joined #ruby
gix has joined #ruby
pwnd_nsfw` has joined #ruby
nobitanobi has joined #ruby
JStoker has joined #ruby
mikeiniowa has joined #ruby
kireevco has joined #ruby
c355e3b_ has joined #ruby
DarkBushido has joined #ruby
djcp has joined #ruby
Olipro has joined #ruby
dede has joined #ruby
rehat has joined #ruby
CustosLimen has joined #ruby
cardoni has joined #ruby
kloeri has joined #ruby
oz has joined #ruby
patrick-sartent has joined #ruby
Eleeleth has joined #ruby
JoL1hAHN has joined #ruby
rflot has joined #ruby
codepete has joined #ruby
EvilJStoker has joined #ruby
jokke has joined #ruby
pocketprotector has joined #ruby
_dev has joined #ruby
DanielJack has joined #ruby
zzak___ has joined #ruby
ijij has joined #ruby
n1colas has joined #ruby
mozzarella has joined #ruby
hostess has joined #ruby
epochwolf has joined #ruby
BackEndCoder has joined #ruby
jlyndon has joined #ruby
polysics has joined #ruby
charles81 has joined #ruby
Diabolik has joined #ruby
nano- has joined #ruby
sepp2k has joined #ruby
Meeh has joined #ruby
j2k_ has joined #ruby
aibot has joined #ruby
ddfreyne_ has joined #ruby
Cork has joined #ruby
ledestin has joined #ruby
Mr_Pancake has joined #ruby
shelling__ has joined #ruby
ELCALOR has joined #ruby
incomprehensibly has joined #ruby
shadoi1 has joined #ruby
jrod has joined #ruby
jcp has joined #ruby
catbusters has joined #ruby
tekacs has joined #ruby
voidDotClass has joined #ruby
saneax has joined #ruby
pfg__ is now known as pfg
<voidDotClass> If I need to get a date object for 1st Jan 2016, how to do that?
c355e3b_ has quit [Changing host]
c355e3b_ has joined #ruby
HashNuke_ has quit [Changing host]
HashNuke_ has joined #ruby
saneax has quit [Changing host]
saneax has joined #ruby
caw has joined #ruby
caw has quit [Changing host]
caw has joined #ruby
tylersmith has joined #ruby
dede has quit [Max SendQ exceeded]
jcp has quit [Max SendQ exceeded]
patrick-sartent has quit [Max SendQ exceeded]
IrishGringo_ has quit [Max SendQ exceeded]
Olipro has quit [Max SendQ exceeded]
ELCALOR has quit [Max SendQ exceeded]
jlyndon has quit [Max SendQ exceeded]
nyandoge has quit [Max SendQ exceeded]
c355e3b_ is now known as c355e3b
shellie_ has joined #ruby
Olipro has joined #ruby
bgresham is now known as Guest15649
PlasmaStar has joined #ruby
Kharma has quit [Ping timeout: 252 seconds]
mburns has joined #ruby
drptbl has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
ggherdov has quit [Ping timeout: 276 seconds]
jero_ has joined #ruby
swills has joined #ruby
<Mon_Ouie> >> Date.new(2016)
<ruby[bot]> Mon_Ouie: # => uninitialized constant Date ...check link for more (https://eval.in/547958)
mhoungbo has joined #ruby
<Mon_Ouie> >> require 'date'; Date.new(2016)
<ruby[bot]> Mon_Ouie: # => #<Date: 2016-01-01 ((2457389j,0s,0n),+0s,2299161j)> (https://eval.in/547959)
whiteline has joined #ruby
jhill_ is now known as jhill
jwang has joined #ruby
dede has joined #ruby
sinanislekdemir has quit [Remote host closed the connection]
howdoi has joined #ruby
hk238 has joined #ruby
pmarreck_ is now known as pmarreck
hightower2 has joined #ruby
ELCALOR has joined #ruby
darkf has quit [Quit: Leaving]
hk238 has joined #ruby
nyandoge has joined #ruby
jcp has joined #ruby
jokester has joined #ruby
melter has joined #ruby
drptbl has joined #ruby
rbennacer has joined #ruby
akitada_ is now known as akitada
sgambino has joined #ruby
GodFather has joined #ruby
mistermocha has joined #ruby
haylon has joined #ruby
duckpuppy has joined #ruby
bb010g_ is now known as bb010g
Aviio has joined #ruby
IrishGringo has joined #ruby
callen92 has quit [Quit: Leaving]
jlyndon has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
platzhirsch has quit [Quit: Leaving.]
platzhirsch1 has joined #ruby
Kharma has joined #ruby
saneax is now known as saneax_AFK
mostlybadfly has quit [Quit: Connection closed for inactivity]
AlexRussia has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Ropeney has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
BSaboia has joined #ruby
ChiefAlexander has joined #ruby
Zai00 has joined #ruby
bry4n has joined #ruby
griffindy has joined #ruby
noService has quit [Ping timeout: 246 seconds]
karmatr0n has joined #ruby
ggherdov has joined #ruby
bkxd has joined #ruby
solars has joined #ruby
ddv has joined #ruby
bry4n has quit [Ping timeout: 248 seconds]
ctrlrsf has joined #ruby
malconis has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
mtkd has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
diegoaguilar has quit [Ping timeout: 246 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
Zai00 has quit [Read error: Connection reset by peer]
Chagel has quit [Ping timeout: 240 seconds]
smckee has joined #ruby
madgen_ is now known as madgen
yqt has joined #ruby
PedramT has joined #ruby
smckee has quit [Remote host closed the connection]
Zai00 has joined #ruby
karioleez has quit [Remote host closed the connection]
bry4n has joined #ruby
sseewwee has joined #ruby
mhoungbo has quit [Read error: Connection reset by peer]
platzhirsch1 has quit [Quit: Leaving.]
platzhirsch has joined #ruby
Blaze_Boy has quit [Ping timeout: 260 seconds]
jorum has quit [Quit: Lost terminal]
whippythellama has joined #ruby
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
PedramT has quit [Ping timeout: 250 seconds]
malconis has joined #ruby
hightower2 has joined #ruby
idle_task has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
jmorgado has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
idletask has quit [Ping timeout: 244 seconds]
grill has joined #ruby
ta__ has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby
bry4n has quit [Ping timeout: 260 seconds]
skade has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
Chagel has joined #ruby
davedev24 has joined #ruby
anisha has quit [Quit: Leaving]
diegoaguilar has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
PedramT has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
Chagel has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Remote host closed the connection]
dfinninger has joined #ruby
cpruitt has joined #ruby
mistermocha has joined #ruby
rmosolgo has quit [Remote host closed the connection]
mistermo_ has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
_SenpaiSilver_ has quit [Quit: Leaving]
nobitanobi has joined #ruby
aegis3121 has joined #ruby
Ropeney_ has joined #ruby
CloCkWeRX has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
dhollinger has joined #ruby
smckee has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
sseewwee has quit [Remote host closed the connection]
bry4n has joined #ruby
sseewwee has joined #ruby
xaxisx has quit [Quit: xaxisx]
freerobby has quit [Quit: Leaving.]
xaxisx has joined #ruby
Ropeney has quit [Quit: Leaving]
yqt has quit [Ping timeout: 248 seconds]
xaxisx has quit [Client Quit]
aufi has joined #ruby
pawnbox__ has joined #ruby
tmtwd has joined #ruby
PedramT has quit [Ping timeout: 252 seconds]
karmatr0n has joined #ruby
pawnbox_ has quit [Ping timeout: 248 seconds]
stantona has joined #ruby
ChiefAlexander has joined #ruby
platzhirsch has quit [Quit: Leaving.]
constantinexvi has joined #ruby
jmignault has quit [Ping timeout: 248 seconds]
mistermo_ has quit [Remote host closed the connection]
Miron_ is now known as Miron
last_staff has quit [Ping timeout: 244 seconds]
Gasher has joined #ruby
Blaze_Boy has joined #ruby
braincras has quit [Ping timeout: 244 seconds]
scepticulous has quit [Ping timeout: 244 seconds]
c355e3b has quit []
sseewwee has quit [Remote host closed the connection]
c355e3b has joined #ruby
blackmesa has joined #ruby
freerobby has joined #ruby
rake_db_migrate has quit [Read error: No route to host]
rake_db_migrate has joined #ruby
kies has quit [Ping timeout: 248 seconds]
dh64 has quit [Quit: Konversation terminated!]
rmosolgo has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
banister has quit [Remote host closed the connection]
Ropeney_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has joined #ruby
<a1fa> I have epoch time, and need to strftime it to another timezone. In rails i used in_time_zone(), but that does not appear to be available in Ruby 1.9.3
hxegon has joined #ruby
<a1fa> Time.at("1459866601").in_time_zone("London").strftime("%Y%m%dT%H%M00000")
deuterium has joined #ruby
mistermocha has joined #ruby
wilbert has joined #ruby
PedramT has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
platzhirsch has joined #ruby
<a1fa> http://ruby-doc.org/core-1.9.3/Time.html < nothing is sticking out
dionysus69 has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
<ddv> a1fa: 1.9.3 is EOL
<deuterium> hi, i get "*** ERROR: You are not authorized to query the status for this Phusion Passenger instance. Please try again with 'rvmsudo'." all of a sudden when executing 'cap production deploy tenant=mytenanttodeploy'. any idea what's causing this and how to prevent this error? stack-trace: https://gist.github.com/anonymous/b6f76ea9f4a36bf2484f8b9d4f73f0df
tmtwd has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 244 seconds]
<deuterium> it could be related to a recent security upgrade of linux-libc-dev (debian package, i.e. a minor security upgrade done via apt-get upgrade)
speaking2ode has quit [Ping timeout: 276 seconds]
diegoaguilar has quit [Ping timeout: 264 seconds]
<chris2> >> Time.at(1459866601).localtime("+05:00")
<ruby[bot]> chris2: # => 2016-04-05 19:30:01 +0500 (https://eval.in/548013)
smathy has joined #ruby
<deuterium> passenger has been installed as a gem like: $ gem install passenger
<a1fa> chris2: but that would be a static offset
<chris2> yes
PedramT has quit [Ping timeout: 260 seconds]
<chris2> for real time zones, you need some lib i guess
<deuterium> the passenger apache module has been installed by executing $ passenger-install-apache2-module
<a1fa> chris2: would that not cause issues with DST?
Zai00 has quit [Ping timeout: 264 seconds]
<a1fa> i had it as .gmt. before, and that caused issue because London moved to summer time
rmulligan has joined #ruby
Zai00 has joined #ruby
<deuterium> do i have to reinstall the passenger gem after a (minor) security upgrade of linux-libc-dev? or do i have to re-run passenger-install-apache2-module?
<chris2> as a hack, and probably only on glibc, you can do
<chris2> >> ENV["TZ"]="Chile/Continental"; Time.at(1459866601)
<ruby[bot]> chris2: # => 2016-04-05 11:30:01 -0300 (https://eval.in/548015)
shmuli has quit [Ping timeout: 248 seconds]
<chris2> dont forget to restore $TZ after :P
<a1fa> roger that
<a1fa> i was actually thinking that, but it was ugly as sin
<chris2> or use some time zone gem
PedramT has joined #ruby
polishdub has joined #ruby
<chris2> actually its safe, ruby ensures tzset is run
<chris2> still not threadsafe etc
nemesit|znc has quit [Ping timeout: 260 seconds]
forcer has quit [Ping timeout: 252 seconds]
aganov has quit [Remote host closed the connection]
abyx has joined #ruby
<a1fa> thanks
Blaze_Boy has quit [Ping timeout: 244 seconds]
PedramT has quit [Ping timeout: 252 seconds]
diegoaguilar has joined #ruby
troulouliou_div2 has joined #ruby
hahuang65 has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
skislak has quit [Ping timeout: 244 seconds]
ItSANgo has joined #ruby
dfinninger has quit [Remote host closed the connection]
mistermocha has joined #ruby
rodfersou is now known as rodfersou|lunch
Rickmasta has joined #ruby
nemesit|znc has joined #ruby
Zai00 has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
forcer has joined #ruby
codecop has joined #ruby
PedramT has joined #ruby
smckee has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
hahuang65 has quit [Ping timeout: 268 seconds]
avenj has joined #ruby
avenj has joined #ruby
dfinninger has joined #ruby
hxegon has quit [Quit: BRB]
phpwebdev has joined #ruby
dfinninger has quit [Remote host closed the connection]
smckee has joined #ruby
parduse has joined #ruby
xaxisx has joined #ruby
jottr has joined #ruby
hxegon has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
nhhc has quit [Ping timeout: 264 seconds]
mark2 has quit [Quit: Leaving.]
parduse has quit [Client Quit]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phage has joined #ruby
<phage> How can I check whether a json field is empty or not? I've tried if parsed_source['link'] == [] but that doesn't seem tok work.
smckee has quit [Ping timeout: 268 seconds]
ocbtec has quit [Quit: leaving]
greenbigfrog has joined #ruby
greenbigfrog has left #ruby [#ruby]
<Donkoko> if its a string you can use .blank?
Guest15649 is now known as demophoon
rmulligan has quit [Ping timeout: 248 seconds]
mistermo_ has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has quit [Remote host closed the connection]
<rmosolgo> >> parsed_source = {"key" => 1}; [parsed_source.key?("link"), parsed_source["link"].nil?]
<Donkoko> so parsed_source['link'].blank?
<ruby[bot]> rmosolgo: # => [false, true] (https://eval.in/548026)
PedramT has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
<rmosolgo> key?("key_name") will check if the key is present at all
hxegon has quit [Quit: BRB]
<rmosolgo> parsed_source["key_name"].nil? # will be true if 1) key is not present; OR 2) key is present and value is `nil`
<phage> rmosolgo: thank you very much!
Snowy has quit [Quit: ragequit]
sgambino has joined #ruby
Blaze_Boy has joined #ruby
merida has joined #ruby
mostlybadfly has joined #ruby
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
<rmosolgo> (`.blank?` is good too, but it's from ActiveSupport, right? `.blank?` is true for: `nil`, `""` (empty string), `[]` (empty array), `{}`, (empty hash))
ferr has quit [Quit: WeeChat 1.4]
dfinninger has joined #ruby
<phage> rmosolgo: it always returns false
<phage> even though it's empty
melter has quit [Remote host closed the connection]
<Donkoko> oooh i didnt realize we are not in rails :)
moeabdol3 has joined #ruby
<phage> We're not
<Donkoko> yeah, in that case .nil? should do the work
<Mon_Ouie> you can use #empty?
<phage> {"month": "1", "num": 1, "link": "", "year": "2006" }
<rmosolgo> oh, it's an empty string?
<smathy> a1fa, http://devdocs.io/rails~4.2/time#method-c-use_zone is nice, not pure ruby though obviously.
stantona has quit [Ping timeout: 244 seconds]
solars has quit [Ping timeout: 250 seconds]
<rmosolgo> >> parsed_source = {"link" => ""}; parsed_source.key?("link") && parsed_source["link"].empty?
<ruby[bot]> rmosolgo: # => true (https://eval.in/548028)
<a1fa> smathy: i was using in_time_zone in rails, and that worked great
ruby-lang391 has joined #ruby
<a1fa> ended up using chris2 solution for the ruby1.9.3 code via ENV[TZ]
CausaMortis has quit [Ping timeout: 252 seconds]
<ruby-lang391> anyone here?
moeabdol2 has quit [Ping timeout: 246 seconds]
<deuterium> what exactly does this warning mean? "Warning: can not check `/etc/sudoers` for `secure_path`, falling back to call via `/usr/bin/env`, this breaks rules from `/etc/sudoers`. Run: export rvmsudo_secure_path=1"
<a1fa> ruby-lang391: obviously not
<a1fa> just us chickens
<deuterium> does that mean rvm has lacking permission to read /etc/sudoers or what?
fedexo has joined #ruby
<phage> rmosolgo: thanks! works now :)
solars has joined #ruby
VeryBewitching has joined #ruby
<VeryBewitching> o/
abyx has quit [Quit: This computer has gone to sleep]
Guest38_ has joined #ruby
dfinning_ has joined #ruby
shmuli has joined #ruby
elifoster has joined #ruby
dikaio has joined #ruby
duckpuppy has joined #ruby
dfinninger has quit [Ping timeout: 276 seconds]
pawnbox__ has quit [Ping timeout: 244 seconds]
<smathy> deuterium, you might find a more knowledgable audience in #rvm
<deuterium> smathy: thanks for the hint
BSaboia has quit [Ping timeout: 252 seconds]
B1n4r10 has joined #ruby
shmuli has quit [Ping timeout: 248 seconds]
braincrash has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
kellabyte has left #ruby [#ruby]
abyx has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Blaze_Boy has quit [Remote host closed the connection]
Blaze_Boy has joined #ruby
x77686d has joined #ruby
solars has quit [Ping timeout: 244 seconds]
dede has quit [Quit: Connection closed for inactivity]
hxegon has joined #ruby
sseewwee has joined #ruby
miqlas has joined #ruby
<miqlas> Hi Guys!
madgen has quit [Ping timeout: 260 seconds]
WhoLettem has joined #ruby
<WhoLettem> /msg NickServ help
rikkipitt has joined #ruby
Blaze_Boy has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
WhoLettem has quit [Client Quit]
sseewwee has quit [Ping timeout: 260 seconds]
WhoLettem has joined #ruby
<WhoLettem> Hey
kies has joined #ruby
<WhoLettem> Can anyone help me with tech?
<WhoLettem> The channel is empty and I canot seem to find help
darkxploit has joined #ruby
<smathy> WhoLettem, this is #ruby, the rules are in the /topic
<WhoLettem> Yea I realize
<WhoLettem> Is there any channel for tech help?
[Butch] has joined #ruby
<shevy> WhoLettem try to ask on #freenode, they know their channels
<WhoLettem> Ok Thank you
<smathy> WhoLettem, freenode is all about tech help, but it's in specific categories.
rmulligan has joined #ruby
<chris2> do you mean TeX?
The_Phoenix has joined #ruby
dfinning_ has quit [Remote host closed the connection]
anon7766 has joined #ruby
thegunbuster has joined #ruby
kits has quit [Quit: Leaving]
amclain has joined #ruby
<havenwood> WhoLettem: Now that you're here you have to learn Ruby. We can't bend the rules.
<WhoLettem> havenwood: I already know Ruby. Haha
ChiefAlexander has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 248 seconds]
<havenwood> WhoLettem: Then you may pass.
<havenwood> Good day.
ChiefAlexander has joined #ruby
PlasmaStar has quit [Ping timeout: 264 seconds]
anon7766 has left #ruby [#ruby]
codecop has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
rbraaf has joined #ruby
nfk|laptop has joined #ruby
rbraaf has quit [Client Quit]
benlieb has joined #ruby
PlasmaStar has joined #ruby
sseewwee has joined #ruby
miqlas has quit [Ping timeout: 260 seconds]
noService has joined #ruby
Devalo has joined #ruby
aegis3121 has quit [Ping timeout: 268 seconds]
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smckee has joined #ruby
andikr has quit [Remote host closed the connection]
sseewwee has quit [Ping timeout: 268 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrgrieves has quit [Ping timeout: 240 seconds]
the_drow_ has quit [Quit: This computer has gone to sleep]
Zai00 has quit [Ping timeout: 264 seconds]
merida_ has joined #ruby
sudoubuntu has joined #ruby
symm- has joined #ruby
Zai00 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou|lunch is now known as rodfersou
GitGud has joined #ruby
ljames has joined #ruby
merida has quit [Ping timeout: 276 seconds]
madgen has joined #ruby
GitGud is now known as GG
sudoubuntu has quit [Client Quit]
smckee has quit [Remote host closed the connection]
smckee has joined #ruby
Macaveli has joined #ruby
stantona has joined #ruby
baweaver has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Remote host closed the connection]
Zai00 has joined #ruby
Balzrael has joined #ruby
marxarelli has joined #ruby
sseewwee has joined #ruby
n008f4g_ has joined #ruby
rkazak has quit [Ping timeout: 248 seconds]
sandelius has joined #ruby
bkxd has joined #ruby
genpaku has quit [Ping timeout: 252 seconds]
hxegon has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
SenpaiSilver has joined #ruby
sseewwee has quit [Ping timeout: 276 seconds]
terlar has quit [Ping timeout: 276 seconds]
clyster is now known as CrazEd
johnbat26 has quit [Ping timeout: 252 seconds]
pleiosaur has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
ramfjord has joined #ruby
pleiosaur has joined #ruby
CrazEd is now known as Guest69357
Pathfinder_ has joined #ruby
genpaku has joined #ruby
Zai00 has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 276 seconds]
platzhirsch has quit [Quit: Leaving.]
Alayde has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j0bk has quit [Ping timeout: 260 seconds]
rake_db_migrate has quit [Remote host closed the connection]
tjvc has quit [Quit: Leaving]
Pritchard has joined #ruby
moeabdol4 has joined #ruby
antgel has quit [Ping timeout: 276 seconds]
j0bk has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
rbennacer has joined #ruby
moeabdol3 has quit [Ping timeout: 276 seconds]
sandelius has joined #ruby
smckee has quit [Remote host closed the connection]
pawnbox has joined #ruby
Zai00 has joined #ruby
hightower3 has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 260 seconds]
SenpaiSilver has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
NinjaPanzer has joined #ruby
The_Phoenix has joined #ruby
mikecmpb_ has joined #ruby
sseewwee has joined #ruby
mikecmpb_ has quit [Client Quit]
Donkoko has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 246 seconds]
smckee_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
SenpaiSilver has quit [Client Quit]
hahuang65 has joined #ruby
senayar has quit [Remote host closed the connection]
SenpaiSilver has joined #ruby
mikecmpbll has quit [Ping timeout: 248 seconds]
Zai00 has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
Pathfinder_ has quit [Ping timeout: 260 seconds]
tvw has quit []
tvw has joined #ruby
nobitanobi has quit [Remote host closed the connection]
sseewwee has quit [Ping timeout: 276 seconds]
hxegon has joined #ruby
senayar has quit [Client Quit]
noobplayer97 has joined #ruby
ruby-lang391 has quit [Ping timeout: 250 seconds]
rmulligan has joined #ruby
nobitanobi has joined #ruby
shellfu has joined #ruby
baweaver has joined #ruby
dfinninger has quit [Remote host closed the connection]
merida_ has quit [Remote host closed the connection]
banister has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
Xiti has joined #ruby
malconis has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
riddley has joined #ruby
codecop has quit [Remote host closed the connection]
codecop_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 244 seconds]
Couch has quit [Ping timeout: 240 seconds]
<riddley> is there a more Ruby-ish way to remove a leading/trailing character from a String (if it exists) than str.gsub(/\A:(.*)\/\Z/,'\1') ?
baweaver has quit [Remote host closed the connection]
Don_John has joined #ruby
smckee_ has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 250 seconds]
Zai00 has joined #ruby
smckee has joined #ruby
sgambino has joined #ruby
noobplayer97 has quit [Remote host closed the connection]
zast has joined #ruby
aegis3121 has joined #ruby
rbennacer has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MacCracken has joined #ruby
<MacCracken> Hey everyone...
sseewwee has joined #ruby
<eam> riddley: how about just str.sub /^:/, ''
rmulligan has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
<smathy> eam, you forgot the trailing part.
ruby-lang435 has joined #ruby
<riddley> eam, I only want the leading and trailing ones, but it's cool, my regex works :) I thought ruby might have something fancy
<shevy> there is .chop!
<riddley> I don't know that the string has those chars though
<riddley> and was trying to avoid conditionals
smckee has quit [Ping timeout: 268 seconds]
tjvc has joined #ruby
tjvc has joined #ruby
Guest69357 is now known as CrazEd
smckee has joined #ruby
deeqoo has joined #ruby
<smathy> riddley, you know that your code will only remove either if BOTH are there right?
CrazEd is now known as Guest72339
<riddley> smathy, I didn't
<riddley> smathy, I should run two .sub then?
shinnya has joined #ruby
<smathy> riddley, it's also quicker to do each separately.
<riddley> gtk! thanks
<smathy> ...captures are expensive.
deeqoo has quit [Client Quit]
sseewwee has quit [Ping timeout: 252 seconds]
rmulligan has quit [Ping timeout: 250 seconds]
ruby-lang435 has quit [Ping timeout: 250 seconds]
rmulligan has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
KingOfNoobs has joined #ruby
<KingOfNoobs> Hi everyone!
chocoelho has quit [Read error: Connection reset by peer]
<KingOfNoobs> Guys can you help me with source code files examples.. ? I am new at ruby!
<KingOfNoobs> So..
deuterium has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
<apeiros> hi KingOfNoobs
<apeiros> maybe. we shall see once you asked your question :)
ChiefAlexander has joined #ruby
<KingOfNoobs> I mean its a good practice of reading codes right?
B1n4r10 has quit [Ping timeout: 276 seconds]
dfinninger has joined #ruby
Zai00 has joined #ruby
<KingOfNoobs> When you are not writing
dfinninger has quit [Remote host closed the connection]
<KingOfNoobs> I need files to read!
<miah> go to github, and look at all ruby code then
<apeiros> oh, so you're asking for source code to study
<KingOfNoobs> Yah
<miah> but if you're looking to do a specific thing, let us know and we can point you towards code that may be more appropriate to your study
<smathy> KingOfNoobs, lots of great stuff here: https://www.ruby-lang.org/en/documentation/
<KingOfNoobs> Tysm
howdoi has quit [Quit: Connection closed for inactivity]
<KingOfNoobs> I'll check github then
chocoelho has joined #ruby
<KingOfNoobs> I'll have to register right?
<miah> not to view code no
<KingOfNoobs> Gr8
<miah> to submit changes or host your code yes
<KingOfNoobs> Ok
<KingOfNoobs> And any android app to see codes?
<KingOfNoobs> Github has its app?
devbug has joined #ruby
<KingOfNoobs> On android?
<miah> yes, go to the play store and type github
mdw has joined #ruby
<KingOfNoobs> Wew no official app
<KingOfNoobs> ?
KingOfNoobs has quit [Remote host closed the connection]
<miah> its there, just buried in bs.
noobplayer97 has joined #ruby
<noobplayer97> No official app for github?
<shevy> NoobPlayer97 there is #github
rcvalle has joined #ruby
mylord has joined #ruby
riddley has left #ruby ["Ex-Chat"]
<noobplayer97> Oh
rake_db_migrate has joined #ruby
Zai00 has quit [Ping timeout: 248 seconds]
<noobplayer97> Maybe not tht famous
<miah> some questions are easily answered by google too
<noobplayer97> Lol..
<noobplayer97> Kk
<noobplayer97> Will ask on google first
Zai00 has joined #ruby
rmosolgo has quit [Remote host closed the connection]
noobplayer97 has quit [Client Quit]
sseewwee has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
<MacCracken> was attempting send(var) in which the var is a method object within a string, I can't remember how to get it not to be a string
ramfjord has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
<apeiros> MacCracken: do you really mean a Method object, or do you mean a method name?
rake_db_migrate has quit [Ping timeout: 246 seconds]
dfinninger has quit [Remote host closed the connection]
<MacCracken> its ultimately a page object name so I would think so...
dfinninger has joined #ruby
mojca has joined #ruby
sseewwee has quit [Ping timeout: 244 seconds]
<apeiros> your statements are confusing. please be precise.
<apeiros> what's var.class now?
idle_task is now known as idletask
<mojca> I have problems with "gem install nokogiri" because "gem env" grabs SHELL PATH that I explicitly don't want (a path where my package manager lives) and libxml2 finds dependencies that shoudn't be discoverable. Is there any way to remove a particular path from gem env? I wasn't able to find the answer via google and I'm not sure how gem works. The "gem" command comes from rbenv's ruby. rbenv was installed by a package manager, but is not in PA
<eam> smathy: oh, missed that. then add a .sub /\/$/, ''
ivanskie_work has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
djbkd has joined #ruby
pawnbox has joined #ruby
<shevy> mojca have you tried to output and modify ENV['PATH'] yet? though I am not sure if that would help, some directories may be always checked
rmulligan has quit [Remote host closed the connection]
<mojca> shevy: where/how do I do that? I would imagine that ENV['PATH'] would be ruby code; I'm working in shell at the moment, so I'm not sure which file to change
hxegon has quit [Quit: BRB]
gizmore has joined #ruby
elifoster has quit [Ping timeout: 244 seconds]
Lomex has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
weckl has quit [Quit: Leaving]
last_staff has joined #ruby
<shevy> as far as I know ENV['PATH'] is just a 1:1 copy of what your shell would have in $PATH
diegoaguilar has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
wldcordeiro has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
sandelius has joined #ruby
yfeldblum has joined #ruby
sgambino has joined #ruby
RegulationD has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
rikkipitt has quit [Remote host closed the connection]
tomchapin has joined #ruby
Cohedrin has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.4]
Zai00 has joined #ruby
sseewwee has joined #ruby
ssiris has joined #ruby
ruby-lang384 has joined #ruby
rake_db_migrate has joined #ruby
x77686d has quit [Quit: x77686d]
sseewwee has quit [Ping timeout: 268 seconds]
Cohedrin has joined #ruby
hightower3 has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
shellfu has quit [Ping timeout: 250 seconds]
Zai00 has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
tjohnson has joined #ruby
mikecmpbll has joined #ruby
Zai00 has quit [Client Quit]
rmosolgo has joined #ruby
B1n4r10 has joined #ruby
jottr has joined #ruby
<mojca> shevy: I'm still not sure to which ruby file to put ENV['PATH'] because I'm not even trying to use ruby yet
<mojca> but I found "export RBENV_DEBUG=1"
rwy0717 has joined #ruby
<mojca> and the relevant line seems to be [rbenv:76] export PATH=/opt/local/bin:/Users/me/.rbenv/shims:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
<mojca> I don't know where this comes from
nofxx has joined #ruby
nofxx has joined #ruby
xaxisx has quit [Ping timeout: 240 seconds]
<mojca> or actually, I do, line 76 of "rbenv" calls export PATH="${bin_path}:${PATH}"
<mojca> I don't want that
dc4 has joined #ruby
Dimik has joined #ruby
xaxisx has joined #ruby
sseewwee has joined #ruby
baweaver has joined #ruby
<mojca> the problem is that if I remove it, rbenv-exec isn't found
jt__ has joined #ruby
spider-mario has joined #ruby
rbennacer has joined #ruby
scepticulous has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
jottr has quit [Ping timeout: 276 seconds]
NinjaPanzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sseewwee has quit [Ping timeout: 264 seconds]
tvon has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
rmosolgo has quit [Remote host closed the connection]
hahuang65 has joined #ruby
NinjaPanzer has joined #ruby
smckee has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
<shevy> it is just the $PATH variable
rwy0717 has quit [Quit: Page closed]
dasher^0_o has quit [Quit: Leaving]
dasher00 has joined #ruby
scepticulous has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
dasher00 has quit [Remote host closed the connection]
devbug has quit [Quit: ZZZzzz…]
sseewwee_ has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
KensoDev has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
PaulCapestany has quit [Quit: .]
aegis3121 has quit [Ping timeout: 246 seconds]
aegis3121 has joined #ruby
sandelius has joined #ruby
PaulCapestany has joined #ruby
agit0 has joined #ruby
Don_John has quit [Quit: Later]
rubie has joined #ruby
devbug has joined #ruby
elifoster has joined #ruby
norc has joined #ruby
solars has joined #ruby
sseewwee_ has quit [Ping timeout: 260 seconds]
madgen has quit [Ping timeout: 264 seconds]
plonk_ has joined #ruby
plonk_ has joined #ruby
aegis3121 has quit [Ping timeout: 248 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol4 has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
aegis3121 has joined #ruby
freerobby has joined #ruby
sseewwee has joined #ruby
zast has quit [Remote host closed the connection]
swills has quit [Quit: Leaving]
plonk has quit [Ping timeout: 244 seconds]
swills has joined #ruby
chouhoulis has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
ivanskie_work_ has joined #ruby
scepticulous has joined #ruby
cwenner has joined #ruby
sseewwee has quit [Ping timeout: 248 seconds]
baweaver has joined #ruby
marxarelli is now known as dzduvall
mojca has quit [Quit: mojca]
tildes has joined #ruby
dzduvall is now known as marxarelli
ivanskie_work has quit [Ping timeout: 276 seconds]
shadoi has joined #ruby
mojca has joined #ruby
tvw has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
shadoi1 has quit [Ping timeout: 250 seconds]
Cohedrin has joined #ruby
<sandelius> hey, anyone worked with celluloid/reel ?
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
sseewwee has joined #ruby
rikkipitt has joined #ruby
goglosh has joined #ruby
rmosolgo has joined #ruby
x77686d has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
sseewwee has quit [Ping timeout: 260 seconds]
gregf has joined #ruby
patrick-sartent has joined #ruby
scepticulous has quit [Ping timeout: 250 seconds]
<benzrf> sandelius: i've touched celluloid
<benzrf> hardly an expert
<benzrf> there IS a #celluloid although it's not super actie
<sandelius> benzrf yeah I tryied but they're not very active
<sandelius> benzrf I'm trying to grasp " Like EventMachine or Node.js, but uses Fibers in place of callbacks, and can communicate seamlessly with other Celluloid actors"
<sandelius> benzrf is a request serve isolated from another like on the erlang vm? or do we need no-blocking io adpaters for e.g postgres
<benzrf> sandelius: whats confusing you about it
<benzrf> oh
<benzrf> based on a moments thought, my inference (which COULD be wrong) would be
elifoster has quit [Ping timeout: 276 seconds]
<benzrf> you get an actor, and that actor handles requests, and the actor does node.js-style async I/O with the requestor by means of fibers
<benzrf> it's not clear to me from that whether a new actor is spawned for each request, but if i had to guess, i'd say no
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swills has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 248 seconds]
ruby766 has joined #ruby
nfk|laptop has quit [Ping timeout: 244 seconds]
shiver_ is now known as shiver
marxarelli is now known as marxarelli|brb
shiver has quit [Changing host]
shiver has joined #ruby
but3k4 has quit [Quit: Textual IRC Client: www.textualapp.com]
rmulligan has joined #ruby
scepticulous has joined #ruby
ivanskie_work_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
davee_ has joined #ruby
sseewwee has joined #ruby
ivanskie_work_ has joined #ruby
rmulligan has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 264 seconds]
smckee has joined #ruby
blackmesa has joined #ruby
benlieb has quit [Quit: benlieb]
rmulligan has joined #ruby
rikkipitt has quit [Remote host closed the connection]
swills has joined #ruby
rmulligan has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
sseewwee has quit [Ping timeout: 240 seconds]
MacCracken has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
smckee has quit [Ping timeout: 268 seconds]
GG is now known as Socialdawg
ruby766 has quit [Ping timeout: 250 seconds]
fartface has joined #ruby
symm- has joined #ruby
baweaver has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ferr has joined #ruby
hahuang65 has joined #ruby
tildes has quit [Ping timeout: 268 seconds]
mistermocha has quit [Ping timeout: 246 seconds]
tercenya has joined #ruby
mistermo_ has quit [Ping timeout: 252 seconds]
NinjaPanzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davee_ has quit [Quit: Leaving]
davedev24 has joined #ruby
tildes has joined #ruby
sandelius has joined #ruby
skweek has joined #ruby
ruby-lang101 has joined #ruby
johnbat26 has joined #ruby
sseewwee has joined #ruby
rikkipitt has joined #ruby
zenspider has joined #ruby
freerobby has quit [Quit: Leaving.]
mikecmpbll has joined #ruby
zenspider has quit [Client Quit]
jackjackdripper has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
d0nn1e has quit [Ping timeout: 240 seconds]
sseewwee_ has joined #ruby
ruby-lang725 has joined #ruby
sseewwee_ is now known as karioleez
mistermocha has joined #ruby
d0nn1e has joined #ruby
mojca has quit [Quit: mojca]
yfeldblum has joined #ruby
evidex has quit [Remote host closed the connection]
<ruby-lang725> building ruby 2.3.0 from source, error is ext/fiddle/extconf.rb:31: unknown type of %string (SyntaxError) libffi = Struct.new(*%I[dir srcdir builddir include l... libffi is installed, anyone have ideas?
tvw has joined #ruby
Azure has quit [Remote host closed the connection]
ruby-lang101 has quit [Ping timeout: 250 seconds]
sseewwee has quit [Ping timeout: 248 seconds]
zotherstupidguy has joined #ruby
dfinninger has quit [Remote host closed the connection]
Rickmasta has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
zeroDivisible has joined #ruby
marxarelli|brb is now known as marxarelli
patrick-sartent has quit [Quit: .]
ixti has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
nobitanobi has joined #ruby
chouhoulis has joined #ruby
patrick-sartent has joined #ruby
Devalo has quit [Remote host closed the connection]
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
vdamewood has joined #ruby
karioleez has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
<shevy> ruby-lang725 not a lot of information that you provide
yqt has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jt__ has quit [Remote host closed the connection]
izi has left #ruby ["Leaving"]
<ruby-lang725> shevy: thank you, have a look here http://pastebin.com/4d1A66DA
<ruby[bot]> ruby-lang725: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/64de0f4582de6aace2d1f680656d4e74
<ruby[bot]> ruby-lang725: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
symm- has quit [Quit: Leaving...]
shmuli has joined #ruby
magikid has joined #ruby
<shevy> "Error, this is a private paste. If this is your private paste, please login to Pastebin first."
<djellemah> 19>> %I[dir srcdir builddir include] # ruby-lang725
<ruby[bot]> djellemah: # => /tmp/execpad-d964123453e6/source-d964123453e6:2: unknown type of %string ...check link for more (https://eval.in/548120)
moeabdol4 has joined #ruby
<djellemah> ruby-lang725: in other words, your currently installed version of ruby is too old.
ixti has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
duncannz has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
<ruby-lang725> djellemah: thank you, ruby 1.9.3p484 (2013-11-22 revision 43786)
<eam> what's the preferred way to construct a regex with binary encoding?
shmuli has quit [Ping timeout: 250 seconds]
karioleez has joined #ruby
<eam> pass a properly encoded string to Regexp.new? Or is there a nicer way to indicate to // that I wish to have Encoding:US-ASCII?
ramfjord has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
diegoaguilar has quit [Ping timeout: 276 seconds]
<smathy> RegExp.new "...".encode(...)
<smathy> ?
<eam> yeah that's what I'm doing now -- just wondering if there's a shorter form usable with /fo\x00o/ or somesuch
tildes has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
<shevy> does that work?
scepticulous has quit [Ping timeout: 264 seconds]
plonk_ has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
PedramT has joined #ruby
<eam> shevy: ah sorry, bad example. Consider something with a high bit set like /fo\x80o/
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
ramfjord has joined #ruby
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has joined #ruby
plonk has quit [Changing host]
wilbert has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
mdw_ has joined #ruby
jenrzzz has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
plonk has quit [Read error: Connection reset by peer]
plonk_ has joined #ruby
plonk_ has quit [Changing host]
plonk_ has joined #ruby
rake_db_migrate has quit [Remote host closed the connection]
rmosolgo has quit []
symm- has joined #ruby
pawnbox has joined #ruby
<goglosh> >> c = "reverse!"; c.send(c)
<ruby[bot]> goglosh: # => "!esrever" (https://eval.in/548126)
<goglosh> beautiful
plonk_ has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
mdw has quit [Ping timeout: 268 seconds]
plonk has quit [Read error: Connection reset by peer]
pandaant has quit [Remote host closed the connection]
jenrzzz has joined #ruby
hxegon has quit [Quit: BRB]
Musashi007 has quit [Quit: Musashi007]
duckpuppy has joined #ruby
rake_db_migrate has joined #ruby
<shevy> yeah I wonder because I remember that I had difficulties aligning regexes with the same encoding and gave up
matp has quit [Remote host closed the connection]
<goglosh> if I do x.send(m), I am sending x a message to send m to itself?
<goglosh> am I getting this right?
elaptics is now known as elaptics`away
dc4 has quit [Ping timeout: 240 seconds]
<shevy> goglosh you ask the object a question here; m should be the specific method that the object can respond to
diegoaguilar has joined #ruby
hxegon has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
<goglosh> ssso.. send() is a misnomer? is it actually a request to perform a method rather than send [itself] a message?
matp has joined #ruby
<goglosh> heh I know it's a weird question :9
rikkipitt has quit [Remote host closed the connection]
<a1fa> is it possible to have begin/rescue that would queue up exceptions, versus failing on the first exception it hits?
agit0 has joined #ruby
smckee has joined #ruby
<a1fa> I'm doing a CSV import via active recrod, and the first exception it runs into, it stops processing the rest of the file
djbkd has quit [Remote host closed the connection]
<a1fa> it would be nice to have a way of queueing up exceptions, and then throwing an exception at the end
djbkd has joined #ruby
<Papierkorb> a1fa: Build it yourself?
patrick-sartent has quit [Quit: .]
mistermocha has quit [Remote host closed the connection]
<a1fa> basically begin, and rescue, and do some kind of array thing in the rescue, then check for array, and raise array at the end?
<a1fa> anything more elegant?
<Papierkorb> Why's that not "elegant"?
<a1fa> < self doubts
n008f4g_ has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jottr has joined #ruby
cdg has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
pifon has quit [Quit: Leaving]
<djellemah> goglosh: I've always thought that send is a bit of a misnomer when it comes to most OO implementations. sending implies that the message itself is an object. Which isn't really the case in ruby. You can kinda get the relevant pieces from caller, __method__ and method(...) But mostly send(m) just calls the method named m.
rake_db_migrate has quit [Remote host closed the connection]
whippythellama has quit [Ping timeout: 248 seconds]
lemur has joined #ruby
mistermocha has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
Guest50706 has quit [Ping timeout: 260 seconds]
mr_oh has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
LW_Luna has joined #ruby
trinaldi has quit [Quit: WeeChat 1.5-dev]
baweaver has quit [Remote host closed the connection]
<smathy> goglosh, you're not "sending x a message to send m to itself", you're just sending x a message named m.
[Butch] has quit [Quit: I'm out . . .]
rikkipitt has joined #ruby
<goglosh> djellemah: so sending a message is actually an abstract.. something?
Luna_Moonfang has quit [Quit: WeeChat 1.4]
<goglosh> handled internally but not really *there*?
LW_Luna is now known as Luna_Moonfang
baweaver has joined #ruby
rake_db_migrate has joined #ruby
<mr_oh> Looking for small answers on the net is like rummaging through a closet...
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<smathy> goglosh, the distinction between languages where you "call a method" and languages where you "send a message" is more to do with what choices the object has. In a language (like Ruby) you don't actually know if foo.bar is calling a method on foo, or being handled in a method_missing, or aliased to another method. Ie. you don't know if `bar` is a method, all you're doing is sending that message into `foo` and foo is then handling that in any number of
<smathy> ways, including having a method `bar` defined.
<goglosh> oh
<goglosh> I think I get it
rbennacer has quit [Remote host closed the connection]
<baweaver> smathy: I think he gets the message
<goglosh> lol
* baweaver bows
ramfjord has quit [Ping timeout: 240 seconds]
dfinninger has quit [Remote host closed the connection]
rbennacer has joined #ruby
<mr_oh> pretty good message. Good explanation
Luna_Moonfang has quit [Quit: brb]
dfinninger has joined #ruby
Luna_Moonfang has joined #ruby
jottr has joined #ruby
<goglosh> so in any case foo.send(bar) is actually a message for foo to receive :bar?
Lomex has quit [Remote host closed the connection]
haylon has quit [Ping timeout: 246 seconds]
nerium has quit [Quit: nerium]
whippythellama has joined #ruby
<goglosh> then it should be called receive, and the whole world breaks down
<smathy> "a message" is ambiguous there.
Devalo has joined #ruby
<smathy> The args of `send` *IS* the message.
<goglosh> isn't send a message in itself?
ChiefAlexander has quit [Ping timeout: 248 seconds]
nerium has joined #ruby
<smathy> goglosh, and you're right, you're not really telling foo to send anything.
Eiam_ has joined #ruby
<smathy> goglosh, a more correct syntax might be: self.send :foo, :bar
aegis3121 has quit [Ping timeout: 276 seconds]
nerium has quit [Client Quit]
hightower3 has joined #ruby
* goglosh is dizzy now
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<smathy> or send foo, :bar really.
GodFather has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
<mr_oh> Is it normal to know a fair amount of concepts, but trip repeatedly over the details of how to do something?
<goglosh> yes
<smathy> goglosh, and yes, `send` is a message itself, there's a lot of mind bending recursion up in this part of Ruby - some of it is just pragmatic.
<goglosh> smathy: yeah I can tell, I just take relief in knowing that everything's somehow handled internally by the interpreter
pifon has joined #ruby
hahuang65 has joined #ruby
<smathy> mr_oh, you mean like how to use gist?
Olipro_ has joined #ruby
ramfjord has joined #ruby
Olipro_ is now known as Guest59454
blackgoat has joined #ruby
andywojo has quit [Ping timeout: 252 seconds]
<mr_oh> smathy: everything... tons of details to pick up
shmuli has joined #ruby
swills has quit [Ping timeout: 246 seconds]
Ox0dea has joined #ruby
<mr_oh> my gist is for looking at, not running
<smathy> mr_oh, in gists, if you name the file with the correct extension it will use proper syntax coloring, and down the bottom of the new/edit gist page is an Add File button for adding more than one file.
<mr_oh> ok
<shevy> goglosh yeah, but it is easier to think in terms of methods. this is the mother of objects in ruby, BasicObject http://ruby-doc.org/core-2.3.0/BasicObject.html - you can see that it has methods such as #__send__
<shevy> goglosh if you redefine it, ruby issues a warning: "warning: redefining `__send__' may cause serious problems"
dfinninger has quit [Ping timeout: 268 seconds]
StevenNunez has joined #ruby
Pritchard has quit [Quit: Page closed]
karmatr0n has quit [Ping timeout: 244 seconds]
<StevenNunez> I'm having an issue when entering text into `gets`. When I backspace I get ^H instead. Any ideas?
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
<StevenNunez> And HELLO
haylon has joined #ruby
<Ox0dea> goglosh: `foo.bar` is syntax; it gets parsed into a method call node which, when interpreted, looks up `bar` in `foo`'s "method table" and executes the code it finds there. When `bar` is `send`, something special happens: the same process occurs, only the method to look up is dynamic, namely whatever you pass to #send.
bronson has joined #ruby
Guest59454 has quit [Ping timeout: 246 seconds]
<Ox0dea> In short, you'd be hard-pressed to re-implement #send in pure Ruby, since, well, you'd have to implement it in terms of #send, wouldn't you?
norc has quit [Read error: Connection reset by peer]
ruby-lang725 has quit [Ping timeout: 250 seconds]
bronson has quit [Read error: Connection reset by peer]
antoinfive has joined #ruby
<baweaver> Ox0dea: eval :D
<Ox0dea> What's that?
<StevenNunez> eval ++
<baweaver> exactly
shmuli has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
madgen has joined #ruby
<baweaver> StevenNunez: ruby has no ++
<Ox0dea> Nor eval.
<mr_oh> it has eval
<Ox0dea> Nope.
<baweaver> heresy
<mr_oh> it did back in 2004
<Papierkorb> <Evil> I've been waiting for you, Mr Bond *strokes cat*
<StevenNunez> eval += 1
<baweaver> just like there's only one Matrix movie
<Ox0dea> mr_oh pls
ekinmur has joined #ruby
Devalo has quit [Remote host closed the connection]
<StevenNunez> Any idea why a ruby script would interpret a backspace as ^H?
<Papierkorb> why is there a backspace in the file in the first place?
infra-red has joined #ruby
<Ox0dea> >> "\C-H" == "\b"
<ruby[bot]> Ox0dea: # => true (https://eval.in/548142)
codecop has joined #ruby
<Ox0dea> But I think StevenNunez is having a readline issue.
<StevenNunez> @Papierkorb @Ox0dea I think it's a readline thing
<Ox0dea> StevenNunez: It's a readline thing.
jason^ has left #ruby ["WeeChat 1.4"]
pifon has quit [Quit: Leaving]
<baweaver> mr_oh: yes, it has eval. No, you should not use it.
<mr_oh> oh, ok
<smathy> eval all the things
<mr_oh> I didn't catch the tone
PMunch has joined #ruby
dling` has quit [Ping timeout: 276 seconds]
<StevenNunez> It is a busted ruby install?
<PMunch> Hi, I'm having some trouble with Apricot and Rubinius would this be the right place to ask?
<Ox0dea> StevenNunez: Did you compile your Ruby yourself?
<StevenNunez> RVM
* Ox0dea runs.
<StevenNunez> lol
* StevenNunez chases Ox0dea
Guest38_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<smathy> PMunch, you _can_ ask here, although you'll find a more captive audience over in #rubinius
<chrisseaton> smathy PMunch I think they're on Gitter now
shinnya has quit [Ping timeout: 268 seconds]
wilbert has joined #ruby
spider-mario has quit [Remote host closed the connection]
blandflakes has joined #ruby
spider-mario has joined #ruby
wilbert has quit [Client Quit]
spider-mario has quit [Read error: Connection reset by peer]
johnmilton has quit [Remote host closed the connection]
<chrisseaton> Ox0dea: you could implement #send in Ruby - #method, and then #call
scepticulous has joined #ruby
rodfersou is now known as rodfersou|afk
_stu_ has quit [Quit: _stu_]
<Ox0dea> chrisseaton: Fair enough. Is there something heavier than "re-implement" that better conveys "do it from scratch"?
<baweaver> Javascript
x77686d has quit [Quit: x77686d]
troulouliou_dev has joined #ruby
<chrisseaton> 'from first principles'
devbug has quit [Quit: ZZZzzz…]
<Ox0dea> I suppose that'd be the one.
Trynemjoel has quit [Ping timeout: 244 seconds]
karioleez has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
karioleez has joined #ruby
machinewar has joined #ruby
<machinewar> anyone know of solid excel -> csv gem?
<Papierkorb> Excel itself?
djbkd has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zeroDivisible has quit [Quit: WeeChat 1.4]
kies has quit [Ping timeout: 276 seconds]
<PMunch> smathy, I found one guy over there at least. Thanks for the help
<baweaver> machinewar: what have you looked up?
hxegon is now known as hxegon_AFK
<baweaver> because there are search results on the first page of google that cover this
<machinewar> Papierkorb: without opening it
<machinewar> baweaver: i understand
<machinewar> theres a lot
<machinewar> was curious of opinons
<Ox0dea> The spreadsheet gem is the best offering, I think.
karioleez has quit [Remote host closed the connection]
hxegon_AFK is now known as hxegon
dfockler has joined #ruby
<machinewar> Ox0dea: thank you
<Ox0dea> machinewar: Sure thing. Maybe also give roo a look: http://roo.rubyforge.org/
<baweaver> rubyforge still lives?
rubie has quit [Remote host closed the connection]
scepticulous has quit [Ping timeout: 260 seconds]
<Ox0dea> I wonder whether you've accidentally conflated it with that?
gregf has quit [Read error: No route to host]
gregf1 has joined #ruby
<baweaver> Not really
<Ox0dea> It'll be the subconscious association with SourceForge, then.
<baweaver> just that most content is 2008ish
<smathy> PMunch, np.
johnbat26 has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
<baweaver> and has migrated to git
<Ox0dea> Ah, well, it "lives". :P
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> SourceForge is a dirge on open source
<baweaver> that should be dead
Lomex has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<Ox0dea> Well, they got bought and were pivoting into something less evil last I checked.
jaequery has joined #ruby
dling has joined #ruby
<Ox0dea> They stopped shoving adware into their downloads, at any rate.
<baweaver> dirge on open source
<Ox0dea> ^
<baweaver> suuuuure they did
karmatr0n has joined #ruby
<Papierkorb> Their UI still sucks though. Way too complicated to even quickly download some binary.
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
<baweaver> Time for another rousing game of "Which is the actual download button"
<Papierkorb> baweaver: Adblock all the way
<baweaver> yep
jaequery has quit [Max SendQ exceeded]
x77686d has joined #ruby
CausaMortis has joined #ruby
dunpeal has joined #ruby
<baweaver> Then it's "Hello, we noticed you're using adblock. Please turn it off for an 'ad lite' experience"
johnmilton has joined #ruby
jaequery has joined #ruby
<baweaver> nope, just means I never go to that site again. (Wired, Forbes)
cpruitt has quit [Quit: cpruitt]
jaequery has quit [Max SendQ exceeded]
mdw_ has quit [Quit: Sleeping Zzzzz]
krz has quit [Ping timeout: 248 seconds]
<goglosh> man I was away, didn't read your answers. Thanks
<goglosh> shevy Ox0dea
jaequery has joined #ruby
<Papierkorb> baweaver: Oh just install the Anti-Anti-Adblock lists. It's somewhat hilarious that you now have to do that. OR just not use those webpages. Most of them aren't worth of ones time anyway
<baweaver> ^ that
codecop has quit [Remote host closed the connection]
shmuli has joined #ruby
jaequery has quit [Max SendQ exceeded]
dfinninger has joined #ruby
jaequery has joined #ruby
<hanmac> Papierkorb: just use lynx as browser, they do not support Anti-Adblock stuff xD
postmodern has joined #ruby
jaequery has quit [Max SendQ exceeded]
<dunpeal> Hi. I have an rspec test foo.rb that's not ready for production. How do I make sure it doesn't run with my full test run, but does run when I explicitly 'rspec foo.rb'
jaequery has joined #ruby
<baweaver> don't launch things that aren't ready for production
<baweaver> including specs
jaequery has quit [Max SendQ exceeded]
<dunpeal> baweaver: OK. but the test is currently under specs/, so the continuous integration server is running it.
<baweaver> why can't it work on prod?
<baweaver> it's the same to me as committing commented out code to prod
<baweaver> it's either there or it's not, half states make a mess.
<dunpeal> baweaver: because it's a Capybara test and while I'm developing it, I'm running it on Selenium, which is not headless.
<baweaver> there's a way to do it, but you should have that in your CI pipeline
Begi1 has joined #ruby
<baweaver> you can tag specs
<Papierkorb> dunpeal: separate feature tests from unit tests and then only run the unit tests
<baweaver> that as well
skade has joined #ruby
<Papierkorb> dunpeal: like spec/lib for library unit tests and spec/features for feature tests. Then do $ rspec spec/lib # to just run the unit tests
Begi1 is now known as Begi
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Ox0dea> it('might not work in prod') { skip unless dev?; ... }
<Ox0dea> It's Just Ruby.™
<dunpeal> Papierkorb: but I do run many feature tests
<baweaver> Just tag them as integration or separate them out into a separate folders.
<dunpeal> on the CI
gizmore has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
davedev24 has quit []
crdpink2 has quit [Quit: q term]
dionysus69 has quit [Ping timeout: 260 seconds]
<baweaver> the simple thing is to switch it out with PhantomJS
pawnbox has quit [Read error: Connection reset by peer]
<baweaver> which is headless
jero_ has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
zotherstupidguy has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
<dunpeal> baweaver: except I do want a headfull setup as I'm developing the tests...
nobitanobi has quit [Remote host closed the connection]
rubie has joined #ruby
antoinfive has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
<dunpeal> anyway, I'll just put it in a wip directory, and make sure the CI doesn't run the rspecs from that directory.
B1n4r10 has quit [Ping timeout: 244 seconds]
klagid has joined #ruby
tvon has quit [Ping timeout: 240 seconds]
jgt3 has joined #ruby
<klagid> yooooo!
crdpink has joined #ruby
dfockler has quit [Ping timeout: 252 seconds]
PedramT has quit [Remote host closed the connection]
troulouliou_dev has quit [Quit: Leaving]
pikajude has quit [Quit: Quit]
jgt2 has quit [Ping timeout: 248 seconds]
machinewar has quit [Remote host closed the connection]
BSaboia has joined #ruby
Ormm has joined #ruby
klagid has quit []
stunder has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
ldnunes has quit [Quit: Leaving]
solars has quit [Ping timeout: 268 seconds]
andywojo has joined #ruby
Guest38_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
optimaleatscout_ has quit [Ping timeout: 248 seconds]
machty has quit [Ping timeout: 248 seconds]
polysics has quit [Remote host closed the connection]
mr_oh has quit [Ping timeout: 250 seconds]
dunpeal has quit [Ping timeout: 244 seconds]
daxroc has quit [Ping timeout: 264 seconds]
yo61 has quit [Ping timeout: 264 seconds]
aeterne has joined #ruby
moeabdol4 has quit [Ping timeout: 244 seconds]
jimeh has quit [Ping timeout: 264 seconds]
twodayslate has quit [Ping timeout: 248 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
andywojo has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
daxroc has joined #ruby
optimaleatscout_ has joined #ruby
twodayslate has joined #ruby
jimeh has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<djellemah> If you're still interested in message passing, search for "messenger structure" in http://worrydream.com/EarlyHistoryOfSmalltalk/ Also "To eval a program list" :-p
yo61 has joined #ruby
tvon has joined #ruby
magikid has quit [Quit: Leaving.]
abyx has quit [Quit: This computer has gone to sleep]
machty has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
swills has joined #ruby
<goglosh> cool
baweaver has quit [Remote host closed the connection]
yfeldblum has joined #ruby
dunpeal has joined #ruby
<goglosh> tfw no smalltalk machine
stunder has quit [Ping timeout: 244 seconds]
stantona has quit [Ping timeout: 252 seconds]
PedramT has joined #ruby
karioleez has joined #ruby
<goglosh> why did the processor research got stuck at register machine Von Neumann architectures?
CausaMortis has quit [Ping timeout: 244 seconds]
smckee has quit [Remote host closed the connection]
Begi has quit [Quit: Begi]
last_staff has quit [Quit: last_staff]
stunder has joined #ruby
StevenNunez has quit [Remote host closed the connection]
Musashi007 has joined #ruby
jenrzzz_ has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
abyx has joined #ruby
mostlybadfly has joined #ruby
dunpeal has quit [Quit: Lost terminal]
duckpuppy has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
andywojo has joined #ruby
ruby-lang384 has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
hxegon has quit [Quit: BRB]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
duckpuppy has quit [Ping timeout: 276 seconds]
hxegon has joined #ruby
rodfersou|afk has quit [Quit: leaving]
BtcBen has joined #ruby
LastWhisper____ has joined #ruby
axisys has left #ruby [#ruby]
ItSANgo has quit [Read error: Connection reset by peer]
rikkipitt has quit [Quit: Leaving...]
voidDotClass has quit [Ping timeout: 244 seconds]
ItSANgo_ has joined #ruby
<shevy> they all do their thesis papers - and then do something else!
edwardly has quit [Ping timeout: 248 seconds]
forcer has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Ping timeout: 248 seconds]
forcer has joined #ruby
gagrio has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
BTRE has quit [Ping timeout: 248 seconds]
vith has quit [Ping timeout: 248 seconds]
gagrio has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
existensil has quit [Ping timeout: 248 seconds]
ozzloy has quit [Ping timeout: 248 seconds]
skade has joined #ruby
stannard has quit [Remote host closed the connection]
ramfjord has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
edwardly has joined #ruby
edwardly has joined #ruby
sgambino has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vith has joined #ruby
lkba has joined #ruby
baweaver has joined #ruby
jaruga__ has joined #ruby
<goglosh> hmmm. Any modern system could be thought as 'object oriented' in a way wouldn't it?
QualityAddict has quit [Ping timeout: 248 seconds]
<goglosh> where objects = { processes, files }
QualityAddict has joined #ruby
wldcordeiro has quit [Ping timeout: 264 seconds]
lemur has joined #ruby
<goglosh> and message passing is pipelining/socket handling
troulouliou_dev has joined #ruby
dfinninger has quit [Remote host closed the connection]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troulouliou_dev has quit [Max SendQ exceeded]
ozzloy has joined #ruby
ozzloy has joined #ruby
troulouliou_dev has joined #ruby
stunder has quit [Ping timeout: 248 seconds]
<Ox0dea> Processes don't inherit behavior, only state.
slappy16 has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
<Ox0dea> You can charitably skew many terms to apply where they needn't, but at what cost and to whose benefit?
LastWhisper____ has quit [Ping timeout: 244 seconds]
<goglosh> you're right
lemur has quit [Ping timeout: 250 seconds]
voidDotClass has joined #ruby
G has joined #ruby
fartface has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
BTRE has joined #ruby
smckee has joined #ruby
stunder has joined #ruby
Socialdawg is now known as GG
jenrzzz_ has quit [Ping timeout: 276 seconds]
babblebre has joined #ruby
dvinciguerra__ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<shevy> goglosh well if we would have object-centric behaviour on linux
<shevy> it is semi-similar; in ruby everything is an object; in linux, everything is a ... well, file
skade has quit [Quit: Computer has gone to sleep.]
<shevy> unix pipes are like messages / filtering but for data from files mostly, not really objects
karioleez has quit [Remote host closed the connection]
<shevy> and let us not forget streem from matz https://github.com/matz/streem - last commit 3 hours ago \o/
znz_jp has quit [Ping timeout: 250 seconds]
dvinciguerra_ has quit [Ping timeout: 246 seconds]
karioleez has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
Rasi has joined #ruby
devbug has joined #ruby
<Gasher> hi, where can I find formatting functions in Ruby? things like setw in C++
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<shevy> we have sprintf, %, .ljust, .rjust, .center ... I also think there was some gem specifically for that, a copy from perl ... hmm but most should suffice for the above
<Ox0dea> &ri String#% Gasher
karioleez has quit [Ping timeout: 244 seconds]
<Gasher> ah, thanks
fumihiro has quit [Ping timeout: 260 seconds]
<Gasher> is it regex there?
dc4 has joined #ruby
<Ox0dea> No, more like C's printf().
dhollinger has quit [Quit: WeeChat 1.4]
troulouliou_dev has quit [Quit: Leaving]
jero_ has joined #ruby
<shevy> the examples below the explanation are best, if you already know C or C++
<Gasher> ahh, alright, thanks
<Gasher> actually, I've mostly done Ruby, but just didn't play with strings too much
<Gasher> learning C++ right now and saw that function
<shevy> good old C++
<eam> is there an easy way to get the byte offset of a match in a scan()?
SCHAAP137 has quit [Quit: Leaving]
<eam> I guess I should use index() instead of scan?
<eam> and then manage my own stepping through offsets?
dc4 has quit [Ping timeout: 244 seconds]
stantona has joined #ruby
x77686d has quit [Quit: x77686d]
baweaver has joined #ruby
<eam> hmm, but this doesn't give me the *length* of the match ...
ferr has quit [Quit: WeeChat 1.4]
Xiti has quit [Quit: Xiti]
BtcBen has quit [Ping timeout: 260 seconds]
<eam> I guess I need to use $~ together with index()? Is there a cleaner way I'm just not recognizing?
sepp2k has quit [Quit: Leaving.]
Denart__ has quit [Remote host closed the connection]
<Ox0dea> eam: Nothing springs to mind. :/
Lomex has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
jpfuentes2 has joined #ruby
jenrzzz has joined #ruby
karioleez has joined #ruby
hightower2 has joined #ruby
<shadoi> huh… you could do that in 1.9.3 with StringScanner#pos but I can't find an equiv in 2.x
smckee has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
hightower3 has quit [Ping timeout: 252 seconds]
tvw has quit [Remote host closed the connection]
smckee has joined #ruby
baweaver has joined #ruby
<eam> did StringScanner go away?
spintronic has joined #ruby
hosttor has quit [Read error: Connection reset by peer]
karioleez has quit [Ping timeout: 244 seconds]
<Ox0dea> >> require 'strscan'; StringScanner
<ruby[bot]> Ox0dea: # => StringScanner (https://eval.in/548177)
<eam> aha perfect
aibot has quit [Remote host closed the connection]
TakG has joined #ruby
aibot has joined #ruby
<Ox0dea> I assumed you were searching the same pattern each time.
<eam> I am
rubie has quit [Remote host closed the connection]
<Ox0dea> Then that seems heavy-handed.
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
_stu_ has joined #ruby
benlieb has quit [Quit: benlieb]
<spintronic> >> 1+3
<ruby[bot]> spintronic: # => 4 (https://eval.in/548178)
smckee has quit [Ping timeout: 240 seconds]
<eam> here's my exact use case: scan(/ab(..)cd../) and $1.unpack "n" and extract the following bytes of that length
Zai00 has joined #ruby
aibot has quit [Remote host closed the connection]
<eam> so start of the match + 8 to start of the match + 8 + $1 as a length
aibot has joined #ruby
BSaboia has quit [Ping timeout: 252 seconds]
<Ox0dea> You could do some monstrous #gsub to convert the input to a suitable #unpack template.
<eam> eew
<Ox0dea> Very.
<eam> also this is a binary file
x77686d has joined #ruby
bry4n has quit [Ping timeout: 248 seconds]
<eam> ab and cd aren't ascii
skade has joined #ruby
<Ox0dea> #unpack has binary directives.
ta_ has quit [Ping timeout: 260 seconds]
<eam> yeah and I'm usin' em but the rest of the file can be arbitrary .. oh I see what you're saying, *reduce* the string to that
workmad3 has joined #ruby
jaruga__ has quit [Remote host closed the connection]
jaruga__ has joined #ruby
shmuli has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
<Ox0dea> Well, yeah, #gsub can be used "iteratively", but it's nasty.
Azure has joined #ruby
moei has quit [Quit: Leaving...]
zenlot6 has joined #ruby
jaruga__ has quit [Remote host closed the connection]
zenlot has quit [Ping timeout: 264 seconds]
haylon has quit [Quit: WeeChat 1.4]
maletor has joined #ruby
johnmilton has quit [Remote host closed the connection]
PedramT has quit [Ping timeout: 240 seconds]
xaxisx has quit [Ping timeout: 248 seconds]
jaruga__ has joined #ruby
karioleez has joined #ruby
htmldrum has joined #ruby
rubie has joined #ruby
PedramT has joined #ruby
mwlang has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
shmuli has joined #ruby
polishdub has quit [Quit: Leaving]
biberu has quit []
x0f has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
hahuang65 has joined #ruby
jaruga__ has quit [Ping timeout: 252 seconds]
PedramT has quit [Ping timeout: 248 seconds]
abyx has quit [Quit: This computer has gone to sleep]
jottr has quit [Quit: WeeChat 1.4]
karioleez has quit [Ping timeout: 248 seconds]
RegulationD has quit [Remote host closed the connection]
<goglosh> can anyone point me to a good resource on why OOP is so unpopular?
<goglosh> some essay or something
<shadoi> goglosh: why do you say it's unpopular?
<goglosh> lot of people seem to not like it
<shadoi> Java is the most widely used language by far and it's OOP.
hahuang65 has quit [Ping timeout: 250 seconds]
<goglosh> Edgar Djikstra for example
<havenwood> goglosh: Can you describe these people in terms of Objects?
<goglosh> uh... that's not what I meant
rake_db_migrate has quit [Remote host closed the connection]
<havenwood> goglosh: Who do they inherit from?
<goglosh> unpopular amongst people who know what they're doing
<Ox0dea> ?
<goglosh> heavenwood whaat?
<havenwood> goglosh: Are these people objects or functions? Let's get down to brass tacks!
<goglosh> anyway, Djikstra is one instance of a great mathematician who has strong opinions on it
<RickHull> goglosh: lots of stuff here: http://c2.com/cgi/wiki/FrontPage
<goglosh> also leo brodie
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
smckee has joined #ruby
<goglosh> RickHull: oh yeah I've still to get comfortable browsing that site
<havenwood> goglosh: Communicating with nouns considered harmful by verb speakers.
aibot has quit [Remote host closed the connection]
<shadoi> goglosh: there will always be philosophical arguments about programming. Inescapable.
aibot has joined #ruby
<RickHull> goglosh: i would say that inheritance has turned out to be very brittle and unpleasant for code sharing
<goglosh> havenwood: you're making my head spin
<RickHull> and many OOP camps recommend composition-over-inheritance now
<havenwood> goglosh: Is it a single instance of your head?
<havenwood> goglosh: Is it mutable?
<goglosh> What I mean to know is what are the theoretical aspects of the debate
<RickHull> also, people mean different things by OOP. Alan Kay has one view
<goglosh> I mean I know java has disgraced OOP by large
chipotle has quit [Quit: cheerio]
<RickHull> for example, communicate by message passing, not manipulating memory
blackmesa has quit [Ping timeout: 244 seconds]
<shadoi> RickHull: of course YOU would show up for this argument. ;)
<RickHull> java misses on a lot of important OOP concepts. it has primitives which aren't objects. it loves shared state and memory manipulation
<goglosh> RickHull: didn't smalltalk too have non-object primitives?
stunder has quit [Quit: WeeChat 1.4]
<RickHull> not sure.
<RickHull> i would say that you can make nice interfaces by being able to instantiate a class and encapsulate private state
<RickHull> to me, that's the best contribution of OOP
<goglosh> some people say you can do that with
<RickHull> and i prefer everything-is-an-X where X can be object
<goglosh> closures
<goglosh> and that's the usual argument that seems to have a meaning
<RickHull> OOP was supposed to be the holy grail for maximizing cohesion and minimizing coupling
elifoster has joined #ruby
<RickHull> and i think if you're careful, it can do very well at that
<RickHull> unsurprisingly, i find Ruby to be the best OOP language
smckee has quit [Ping timeout: 276 seconds]
<Ox0dea> goglosh: CLOS exists, and Slava put an object system in Factor.
<RickHull> but I rarely use class based inheritance these days
<RickHull> and i prefer "static" methods at the class layer for most complicated logic
<goglosh> ^ I've heard that causes more trouble than it solves
<RickHull> drifting towards a functional style
<RickHull> and I <3 Elixir
<goglosh> but again, I rarey find actual technical discussion
<havenwood> goglosh: Folk have varied preferences. There's something lovely about functional. There is more than one way to do it. Either can be convoluted.
<goglosh> just a bunch of biases
<Ox0dea> goglosh: They're all effectively equivalent at the bottom; any paradigm can produce an acceptable facsimile of any other.
maletor has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
<Ox0dea> "Functional OOP" (read: the Ruby way) is a pretty solid middle ground.
hahuang65 has joined #ruby
karioleez has joined #ruby
rake_db_migrate has joined #ruby
<havenwood> goglosh: Ruby is from a place of experienced OO lessons with functional envy. :)
<goglosh> hmmm
<goglosh> OKAY
* goglosh wonders what that meant
ta_ has joined #ruby
shadoi has quit [Quit: Leaving.]
<havenwood> goglosh: Give Elixir a spin if you haven't already.
<goglosh> "The next big language for the web"
<shevy> everything is next and big!
<goglosh> ^
m8 has quit [Quit: Sto andando via]
gregf1 has quit [Quit: WeeChat 1.4]
<goglosh> I'd like to see The Former Small Language For []
karioleez has quit [Ping timeout: 244 seconds]
dfockler has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
aibot has quit [Remote host closed the connection]
mr_oh has joined #ruby
aibot has joined #ruby
rake_db_migrate has quit [Ping timeout: 264 seconds]
<RickHull> that would be forth, i suppose
<mr_oh> Can padding be done within #{ } ?
fumihiro has joined #ruby
Devalo has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<RickHull> any ruby expression can go in there. e.g. #{'hello'.rjust(5, ' ')}
<Ox0dea> RickHull: Not `BEGIN`. :P
<RickHull> argh!
ramfjord has joined #ruby
<Ox0dea> I think that's the only thing that can't be interpolated, though.
chouhoulis has joined #ruby
<RickHull> >> ">#{'hello'.rjust(20, ' ')}"
<ruby[bot]> RickHull: # => "> hello" (https://eval.in/548181)
<Ox0dea> >> "#{'%10s' % 'foo'}"
<ruby[bot]> Ox0dea: # => " foo" (https://eval.in/548182)
darkf has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<RickHull> we need a left-pad module so there is just one blessed way to do this
<baweaver> printf
pikajude has joined #ruby
pikajude has joined #ruby
baweaver has quit [Remote host closed the connection]
<mr_oh> what about: "#{thing} Word: #{other_thing}" ? Can I push or pad 'Word:' around ?
Devalo has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
rake_db_migrate has joined #ruby
<RickHull> mr_oh: you'll have to construct the final string somewhat differently, but sure
<eam> ok so guess what? StringScanner doesn't work properly with binary encoding
<mr_oh> what happens if someone requires a file that just has Object.freeze in it ?
IrishGringo has quit [Ping timeout: 250 seconds]
<RickHull> mr_oh: best bet is to try it and see
<mr_oh> I tried in irb
Ropeney has joined #ruby
<mr_oh> prvents any classes from being made
<mr_oh> also prevents any methods from being made
<Ox0dea> mr_oh: Just thaw it.
<eam> >> require 'strscan'; s = StringScanner.new "\x80\x82\x80".force_encoding("ASCII-8BIT"); s.scan Regexp.new(0x82.chr)
<ruby[bot]> eam: # => nil (https://eval.in/548183)
duckpuppy has quit [Ping timeout: 248 seconds]
PMunch has quit [Read error: Connection reset by peer]
<eam> >> "\x80\x82\x80".force_encoding("ASCII-8BIT") =~ Regexp.new(0x82.chr)
<ruby[bot]> eam: # => 1 (https://eval.in/548184)
<RickHull> what happens when your Objects melt?
<eam> sigh :(
<Ox0dea> That sucks. :/
stantona has quit [Ping timeout: 248 seconds]
whippythellama has quit [Quit: WeeChat 1.4]
karioleez has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
sudoubuntu has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
<mr_oh> cant thaw it
<Ox0dea> Sure can.
<Ox0dea> mr_oh: https://eval.in/548185
elifoster has joined #ruby
karioleez has quit [Ping timeout: 250 seconds]
<mr_oh> witchcraft
<mr_oh> the lonely teen beginner won't know about fiddle :-(...
* eam collects bonfire wood
<Ox0dea> mr_oh: Said lonely teen shouldn't be freezing Object.
<Ox0dea> You asked for this.
<Ox0dea> I still think we should get a pyre set up.
<mr_oh> No, but they could send their friends .rb files and urge them to require them
<mr_oh> Just thinking about weird scenarios
Aviio has quit [Quit: Leaving.]
<eam> a pyre of tire
<Ox0dea> Necklacing. :<
<eam> oh, here I was just going for a good old tire fire :(
<eam> but you are correct, that is a thing people do
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AccordsLTN has quit [Ping timeout: 276 seconds]
<eam> I can't immediately see what StringScanner is doing to break binary matching
bry4n has joined #ruby
johnmilton has joined #ruby
Ormm has quit [Quit: Nettalk6 - www.ntalk.de]
Inside has quit [Disconnected by services]
Inside_ has joined #ruby
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami_ has joined #ruby
<Ox0dea> eam: Oh, it's just that you have to consume all of the input explicitly.
<Ox0dea> >> require 'strscan'; StringScanner.new('abc').scan(/b/)
<ruby[bot]> Ox0dea: # => nil (https://eval.in/548186)
<eam> oh crap, seriously?
Spami has quit [Ping timeout: 244 seconds]
<eam> <-- did not rtfm
JesseH has joined #ruby
<eam> well that's not what I want at all
mr_oh has quit [Quit: Page closed]
<Ox0dea> It'd be nice if String#scan returned MatchDatas, but maintaining an index isn't awful.
Inside has joined #ruby
GG is now known as Socialdawg
Vile` has joined #ruby
Inside_ has quit [Ping timeout: 240 seconds]
plonk has joined #ruby
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
RickHull has left #ruby [#ruby]
Spami has joined #ruby
<eam> threw all this out and went with blob.scan pattern { matchdata = $~[0]; start, end = *$~.offset 0; ... }
karioleez has joined #ruby
<eam> >:|
<eam> cuz there *is* a way to get at the MatchData ...
nerium has joined #ruby
Spami_ has quit [Ping timeout: 276 seconds]
<goglosh> eam: that's an interesting ruby operator >:|
plonk has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
jero_ has quit [Ping timeout: 260 seconds]
s2013 has joined #ruby
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
pu has joined #ruby
plonk has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
stantona has joined #ruby
karioleez has quit [Ping timeout: 264 seconds]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
<Ox0dea> >> :~ >:|
<ruby[bot]> Ox0dea: # => true (https://eval.in/548187)
<eam> >> :< >:|
Musashi007 has joined #ruby
<ruby[bot]> eam: # => false (https://eval.in/548188)
plonk has quit [Read error: Connection reset by peer]
plonk has joined #ruby
plonk has quit [Changing host]
plonk has joined #ruby
plonk has quit [Read error: Connection reset by peer]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
plonk has joined #ruby
plonk has joined #ruby
plonk has quit [K-Lined]
Guest38_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >>:>>>:>
<ruby[bot]> Ox0dea: # => true (https://eval.in/548189)
WhoLettem has quit [Ping timeout: 250 seconds]
DLSteve has joined #ruby
stannard has joined #ruby
<Ox0dea> It's a guy with a guy with a chevron for a forehead for a forehead.
<eam> it's super weird that :> is legit but :3 isn't
existensil has joined #ruby
r4z3r has quit [Max SendQ exceeded]
<Ox0dea> define_method('3') {}; send :3
r4z3r has joined #ruby
RegulationD has joined #ruby
BtcBen has joined #ruby
Balzrael has quit [Quit: Leaving]
<eam> Ox0dea: can't do
<Ox0dea> eam: Not with that attitude.
<eam> gotta define_method('3') {}; send ?3
<eam> so strange
<Ox0dea> This is a bug.
<eam> I think so too
<eam> the quoting semantics of : are super odd, like :> is legit, but :>o isn't
<eam> and why shouldn't it be?
<Ox0dea> Well, but, that would mean that #>o should be a valid method name, and that would get hairy.
kfpratt has quit []
<Ox0dea> It's only the Symbols that're valid identifiers that don't have to be quoted.
stannard has quit [Ping timeout: 246 seconds]
<eam> but that is a valid method name
ramfjord has quit [Ping timeout: 250 seconds]
BSaboia has joined #ruby
lemur has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
<Ox0dea> >> def >o; end
<ruby[bot]> Ox0dea: # => :> (https://eval.in/548190)
<Ox0dea> That didn't go so well.
<eam> >> define_method('>o') {">:|"}; send '>o'
<ruby[bot]> eam: # => ">:|" (https://eval.in/548191)
RegulationD has quit [Ping timeout: 246 seconds]
<eam> all strings are valid method names afaik, including the empty string
<Ox0dea> I was sure we meant syntactically.
karioleez has joined #ruby
Gasher has quit [Quit: Leaving]
<eam> oh well then
<eam> I still think the rules around : are weird
<Ox0dea> >> %i[+@ -@ !@ ~@] # For your amusement.
<ruby[bot]> Ox0dea: # => [:+@, :-@, :"!@", :"~@"] (https://eval.in/548192)
<Ox0dea> And/or righteous indignation.
mr_oh has joined #ruby
karioleez has quit [Ping timeout: 244 seconds]
lemur has quit [Ping timeout: 250 seconds]