jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
grp066 has joined #ruby
dfockler has quit [Remote host closed the connection]
asteros has joined #ruby
rodfersou has joined #ruby
Xeago has quit [Remote host closed the connection]
attlasbot has joined #ruby
kotk has joined #ruby
sevenseacat has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
yfeldblum has quit [Remote host closed the connection]
<a1fa> what is better, build an array and then write to csv file or write as you go?
vassy has joined #ruby
caseypatrickdris has quit [Ping timeout: 256 seconds]
kotk_ has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> no need for an array if you write it at the end // but at the same time, the array could permit you to debug, sort, filter etc etc //
<volty> (make it easier to debug, etc)
jackjackdripper1 has quit [Quit: Leaving.]
<vassy> Hi I am implementing a program to read facebook posts from timeline using Koala
<eam> does the dataset fit in memory :)
nateberkopec has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
<vassy> Some code can be found here - https://gist.github.com/svassy/af7693173844aaddc613
<volty> the memory will let him know that :)
hotpancakes has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
CloCkWeRX has left #ruby [#ruby]
<vassy> Facebook is grouping related posts and then giving the response
<vassy> Is there a way to read individual responses?
kinduff has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
caconym has quit [Ping timeout: 265 seconds]
LicHacker has joined #ruby
Yzguy has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has quit [Remote host closed the connection]
fmcgeough has joined #ruby
jesterfraud has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jesterfraud> OH: "Yeah, I assumed the build would break" - guy who pushed the code that broke the build
GPrime has joined #ruby
<jesterfraud> it failed because a test on his branch got autogenerated and wasn't right... which means he didn't run tests
<Radar> lol
<Radar> That's a paddlin'
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
yxhuvud has quit [Ping timeout: 255 seconds]
fella5s has quit [Read error: Connection reset by peer]
Yiota has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
fgo has joined #ruby
prereflect has joined #ruby
bruno- has joined #ruby
iml_ has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
bgmarx has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
Porfa has joined #ruby
x1337807x has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
commondream has quit [Remote host closed the connection]
bkxd has joined #ruby
vassy has quit [Ping timeout: 246 seconds]
Porfa has quit [Client Quit]
pengin has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 244 seconds]
astrobunny has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
apofis has quit [Ping timeout: 258 seconds]
fgo has joined #ruby
scripore has joined #ruby
<al2o3-cr> fail
CloCkWeRX has joined #ruby
astrobunny has quit [Ping timeout: 244 seconds]
<havenwood> raise
bkxd has quit [Ping timeout: 256 seconds]
<al2o3-cr> prime
ur5us has joined #ruby
penzur has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
penzur has quit [Read error: Connection reset by peer]
<havenwood> optimus
<al2o3-cr> dishes
lindii_ is now known as adavia
<sevenseacat> dirty
jenrzzz has quit [Ping timeout: 244 seconds]
justintv90 has joined #ruby
<al2o3-cr> ล้าง
dgutierrez1287 has joined #ruby
zubov has quit [Quit: Leaving]
<al2o3-cr> Jag behöver en hamburgare
enebo has quit [Quit: enebo]
mistermo_ has quit [Ping timeout: 276 seconds]
<al2o3-cr> eller master regex
arooni-mobile has joined #ruby
malconis has joined #ruby
sepp2k has quit [Quit: Leaving.]
robustus has quit [Ping timeout: 264 seconds]
yxhuvud has joined #ruby
dgutierrez1287 has quit [Ping timeout: 256 seconds]
robustus has joined #ruby
hotpancakes has joined #ruby
wallerdev has joined #ruby
KillerFox has joined #ruby
premera has quit [Remote host closed the connection]
jenrzzz has joined #ruby
centrx has joined #ruby
duggiefresh has joined #ruby
dalafa has quit [Quit: (null)]
CamonZ has quit [Read error: Connection reset by peer]
<al2o3-cr> kanske sova o/
nateberkopec has quit [Quit: Leaving...]
greenbagels_ has joined #ruby
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has joined #ruby
babykosh has joined #ruby
duggiefresh has quit [Remote host closed the connection]
adefa has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
auzty has joined #ruby
fujimura has joined #ruby
Scroff has quit [Ping timeout: 245 seconds]
araujo has quit [Ping timeout: 246 seconds]
eggoez has quit [Ping timeout: 272 seconds]
volty has quit [Quit: Konversation terminated!]
auzty has quit [Read error: Connection reset by peer]
centrx has quit [Ping timeout: 272 seconds]
premera has joined #ruby
kies has joined #ruby
auzty has joined #ruby
pothibo has joined #ruby
mello has joined #ruby
mello has joined #ruby
fujimura has quit [Ping timeout: 258 seconds]
aspiers has joined #ruby
centrx has joined #ruby
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kinduff has joined #ruby
kinduff has joined #ruby
mello has quit [Ping timeout: 265 seconds]
jgt2 has joined #ruby
auzty has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
auzty has joined #ruby
auzty has quit [Read error: Connection reset by peer]
eggoez has joined #ruby
jgt1 has quit [Ping timeout: 264 seconds]
soasme has joined #ruby
meph has quit [Quit: Leaving.]
dgutierrez1287 has joined #ruby
discord has quit [Ping timeout: 256 seconds]
jgt2 has quit [Ping timeout: 246 seconds]
discord has joined #ruby
iml_ has quit [Remote host closed the connection]
centrx has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Ping timeout: 265 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
centrx has joined #ruby
serivichi has quit [Ping timeout: 272 seconds]
soasme has quit [Quit: Leaving...]
attlasbot has joined #ruby
discord has quit [Ping timeout: 255 seconds]
soasme has joined #ruby
discord has joined #ruby
Fooster has quit [Ping timeout: 272 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 244 seconds]
revoohc has quit [Quit: revoohc]
araujo_ has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
centrx has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
arooni-mobile has quit [Ping timeout: 265 seconds]
FernandoBasso has quit [Quit: WeeChat 1.2]
ur5us has quit [Remote host closed the connection]
auzty has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
amclain has joined #ruby
<pothibo> I’m having issue trying to get 2 gems that I work on locally to get included in a Gemfile in a Docker, anyone knows something about that ?
<Radar> pothibo: No info?
<pothibo> Radar: I can provide for sure, just didn’t want to print a wall of text for no reason
<Radar> It's generally a good idea to explain what you've tried and how it's not worked for you.
commondream has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tubuliferous_ has joined #ruby
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
TinkerTyper has quit [Ping timeout: 264 seconds]
astrobunny has joined #ruby
affenhoden has quit [Quit: leaving]
araujo_ has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaycee has joined #ruby
lokulin has joined #ruby
bricker has quit [Ping timeout: 265 seconds]
<Diabolik> how can i do the maths on this better
commondream has quit [Ping timeout: 272 seconds]
araujo_ has quit [Max SendQ exceeded]
<Diabolik> in rules.rb
kwatz has joined #ruby
TinkerTyper has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
araujo_ has joined #ruby
<avdi> define "better"?
<pothibo> https://gist.github.com/pothibo/c318deedd3d850c146cf this is a basic project where I’m trying to run bundle install and be able to install the bundle including a gem that I am developing in sync
<pothibo> I don’t know if that makes sense, but the Gemfile should give an idea
prereflect has joined #ruby
j4cknewt has joined #ruby
dopie has joined #ruby
willharr_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Ping timeout: 250 seconds]
Sevelina has quit [Quit: Page closed]
araujo_ has quit [Max SendQ exceeded]
remendo has joined #ruby
araujo_ has joined #ruby
JoshGlzBrk has joined #ruby
CalvinnHobbes has joined #ruby
discord has quit [Read error: Connection reset by peer]
soasme has quit [Ping timeout: 256 seconds]
serivichi has joined #ruby
yfeldblum has joined #ruby
j4cknewt has quit [Remote host closed the connection]
iml_ has joined #ruby
sandstrom has joined #ruby
postmodern has quit [Quit: Leaving]
sandstrom has quit [Client Quit]
umgrosscol has quit [Quit: Quit]
CalvinnHobbes has quit [Ping timeout: 256 seconds]
rodfersou has quit [Remote host closed the connection]
centrx has joined #ruby
mary5030 has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
j4cknewt has joined #ruby
<weaksauce> Diabolik well for starters the magic numbers are magic
axsuul has quit [Ping timeout: 256 seconds]
wallerdev has quit [Ping timeout: 255 seconds]
unreal has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Diabolik> weaksauce what do you mean
<weaksauce> what is 3.11?
<weaksauce> would you know what 3.11 meant 6months down the line?
unreal_ has quit [Ping timeout: 264 seconds]
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
Ox0dea has quit [Read error: Connection reset by peer]
<weaksauce> count is an unidiomatic way to do things.
<Diabolik> weaksauce what is a better way?
penzur has joined #ruby
<weaksauce> >> [:sr1,sr2,:sr1].count { |x| x == :sr1}
<ruboto> weaksauce # => undefined local variable or method `sr2' for main:Object (NameError) ...check link for more (https://eval.in/378689)
<weaksauce> >> [:sr1,:sr2,:sr1].count { |x| x == :sr1}
avahey has joined #ruby
<ruboto> weaksauce # => 2 (https://eval.in/378690)
<penzur> wassup
<penzur> :D
centrx has quit [Ping timeout: 276 seconds]
ruby-lang441 has quit [Quit: Page closed]
tubuliferous_ has joined #ruby
gusrub has joined #ruby
rbowlby has quit [Remote host closed the connection]
[H]unt3r has quit [Quit: Leaving]
dfockler has joined #ruby
fujimura has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
araujo__ has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> >> [:sr1, :sr2, :sr1].count(:sr1)
<ruboto> Ox0dea # => 2 (https://eval.in/378691)
<Ox0dea> weaksauce: Do you even?
<Diabolik> weaksauce what would be a better way/
<weaksauce> showing the generic so it could be used with a property Ox0dea
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce> like in the original problem
dfockler has quit [Ping timeout: 265 seconds]
araujo_ has quit [Ping timeout: 276 seconds]
arooni-mobile has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
fujimura has quit [Ping timeout: 246 seconds]
pengin has joined #ruby
greenbagels_ has quit [Quit: Leaving]
attlasbot has quit [Quit: Leaving]
EllisTAA has joined #ruby
centrx has joined #ruby
tmoor has quit [Remote host closed the connection]
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
ReinH has left #ruby ["WeeChat 1.0.1"]
ur5us has joined #ruby
hotpancakes has quit []
kinduff has quit [Ping timeout: 256 seconds]
towski_ has quit [Remote host closed the connection]
charliesome has joined #ruby
pengin has quit [Remote host closed the connection]
centrx has quit [Ping timeout: 265 seconds]
<EllisTAA> how do i update ruby version? i have rbenv installed
Yzguy has quit [Quit: I'm sleeping, go away.]
<Ox0dea> EllisTAA: Do you enjoy projecting an air of helplessness?
fgo has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_barkerd427 is now known as barkerd427
sdothum has quit [Ping timeout: 276 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
gusrub has quit [Quit: Leaving]
Zamerick has joined #ruby
<sevenseacat> oh snap
asteros has quit [Quit: asteros]
gusrub has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
gusrub has quit [Client Quit]
gusrub has joined #ruby
asteros has joined #ruby
yqt has quit [Ping timeout: 258 seconds]
asteros has quit [Client Quit]
sdothum has joined #ruby
atomical has joined #ruby
nateberkopec has joined #ruby
djbkd has joined #ruby
centrx has joined #ruby
<EllisTAA> i enjoy not wasting time …
dgutierrez1287 has quit [Remote host closed the connection]
<sevenseacat> you've just wasted fifteen minutes
<EllisTAA> how?’
<sevenseacat> by not googling it and updating ruby
<EllisTAA> i did google it
<EllisTAA> shit didn’t come up
<sevenseacat> lolwat
<EllisTAA> how to update my ruby version
monsieur1 has joined #ruby
<EllisTAA> everything that was returned was related to rvm
* sevenseacat googles "rbenv update ruby" and looks at the dozens of results
<remendo> EllisTAA: then get rvm
<sevenseacat> you need to improve your google skills.
Fooster has joined #ruby
<EllisTAA> ok first result, sstephenson/rbenv, i looked and i didn’t see the command
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
bogdanteleaga has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Client Quit]
monsieurp has quit [Ping timeout: 258 seconds]
<sevenseacat> Ox0dea: I guess that's a yes.
ruby384 has joined #ruby
chishiki has joined #ruby
<sevenseacat> ruby384: sounds like you used sudo somewhere along the line where you shouldnt have
<remendo> sevenseacat: Do you see Elixir as a replacement for Ruby in the future?
<ruby384> how can i fix this
<remendo> sevenseacat: For your case.
<sevenseacat> remendo: well, my case is I'm a web developer, and it's definitely possible.
centrx has quit [Ping timeout: 265 seconds]
<sevenseacat> ruby384: by undoing whatever you did with sudo
<ruby384> what if i dont know what i did. is there a way to uninstall everything?
<havenwood> ruby384: What OS/distro are you on?
astrobunny has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 258 seconds]
<ruby384> Yosemite
<havenwood> ruby384: ruby -v
<havenwood> ruby384: which ruby
<ruby384> 2.2.2
<havenwood> ruby384: command -v ruby
<EllisTAA> boom figured it ou
chishiki has quit [Client Quit]
<EllisTAA> otu
<sevenseacat> EllisTAA: good job :)
<ruby384> that outputs: /Users/FarhanSyed/.rbenv/shims/ruby
chishiki has joined #ruby
vivekananda has quit [Quit: Leaving]
<havenwood> ruby384: whoami
<ruby384> gives FarhanSyed
ylla has joined #ruby
hubcaps has joined #ruby
hubcaps has joined #ruby
bogdanteleaga has joined #ruby
nickmm has quit [Quit: Lost terminal]
astrobunny has quit [Ping timeout: 255 seconds]
<havenwood> ruby384: And it's saying?: Permission denied
pothibo has quit [Quit: pothibo]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> ruby384: Is that stackoverflow your exact output or just similar?
babykosh has quit [Quit: babykosh]
CalvinnHobbes has joined #ruby
<remendo> sevenseacat: What book did you use for Elixir/Phoenix?
<sevenseacat> programming elixir, by dave thomas, for getting started with elixir.
<remendo> sevenseacat: Ok great, thanks.
<sevenseacat> phoenix, making shit up as I go along, poking through the source, reading the guides.
<remendo> sevenseacat: Are we going to see something from you soon? :)
<sevenseacat> remendo: maaaaaybe.
<remendo> sevenseacat: Why I have the feeling that you planned to write a book later with Radar?
<Radar> TIL sevenseacat and I are writing an Elixir book
hakunin has joined #ruby
<sevenseacat> lol
qsuscs has quit [Ping timeout: 256 seconds]
matti has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 272 seconds]
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
qsuscs has joined #ruby
ponga has quit [Remote host closed the connection]
<remendo> Radar: planned :o
GPrime has joined #ruby
<Radar> I am teh n00b at Elixir
<Radar> and I haven't even started on Phoenix yet
centrx has joined #ruby
* sevenseacat also a noob
<sevenseacat> but learning
* remendo the noobiest
<Aeyrix> I'm not learning Elixir, dammit.
* remendo not the noobiest anymore
<Aeyrix> :D
<EllisTAA> how did u choose elixir over the many other languages?
Zamerick has quit [Disconnected by services]
<Radar> EllisTAA: Jose Valim came to me in a dream and told me that I had to start learning Elixir.
<Aeyrix> That's why I picked up Go.
<Aeyrix> Except it was Graydon Hoare.
Zamerick has joined #ruby
<Radar> Aeyrix: Contrarian ;)
<ruby384> similar
Langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aeyrix> Wait fuck
<Aeyrix> I meant Rust, not Go.
<Aeyrix> I'm clearly having a bad day.
<remendo> Radar: He came to many dreams. Concurrent dreams ^^
<Radar> Welp, time to go back to writing the inferior language now that my lunch break is over.
<ruby384> i try to do gem pristine --all and some of the gems get restored but eventually said permission denied
<Radar> remendo: Yes, exactly :D
<Aeyrix> Radar: Inferior/
<Aeyrix> ?
<Radar> Aeyrix: You heard me.
<Aeyrix> Since when are you writing Python? :^)
<Aeyrix> You actually prefer Elixir over Ruby? o_O
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeyrix> I have flashbacks to the time I looked at Elixir's syntax.
<sevenseacat> the syntax is pretty ruby-esque.
<Aeyrix> ->
<zenspider> ruby384: prolly because some of them were installed via sudo
<Aeyrix> It's like someone spilled Go's syntax.
oo_ has joined #ruby
<ruby384> how do i fix it?
<Aeyrix> |> cast
<Aeyrix> Why are you drawing a sail?
<sevenseacat> ok, it has one different operator.
commondream has joined #ruby
<Radar> Aeyrix: Haters gonna hate hate hate
<Aeyrix> What operator is that?
<sevenseacat> the pipe operator
<remendo> Aeyrix: Think about it, it comes from Unix | operator.
<Radar> Aeyrix: Yes, I prefer Elixir's syntax to Ruby.
<Aeyrix> What the hell is double whack?
<Aeyrix> "\\"
revath has joined #ruby
<sevenseacat> defaults.
<Aeyrix> o
<Radar> default params
<Aeyrix> What was wrong with =?
<Radar> I think of it as "sideways equals"
mello has joined #ruby
<Radar> = is pattern matching, which is reserved for other things
<Aeyrix> I think of it as incorrect.
fujimura has joined #ruby
<remendo> Aeyrix: An example from the book about the |>, "$ grep Elixir *.pml | wc -l" in Unix.
Zamerick has quit [Disconnected by services]
<sevenseacat> anyway, this is #ruby, #elixir-lang is over there ->
<Radar> Aeyrix: y u no come to Church of Elixir / Railscamp so we can bring you into the Church? :)
jpfuentes2 has joined #ruby
<remendo> sevenseacat: Oh yea :o
ponga has joined #ruby
<Aeyrix> Radar: I can't come to RailsCamp.
<Aeyrix> A> Price
<Aeyrix> B> Proximity to spiders
axsuul has joined #ruby
<Radar> Aeyrix: Whore yourself out like the rest of us do.
zamerick_ has joined #ruby
<Radar> Alt. work for a company who pays for it
<remendo> Aeyrix: Click here #elixir-lang
<sevenseacat> i'm not a whore, i'm a consulting escort.
<Aeyrix> I work in security, not programming.
<Aeyrix> <_<
<Radar> B> Spiders won't hurt you if you don't hurt them.
<Aeyrix> Doesn't matter.
msnyon has joined #ruby
<Aeyrix> 2scared
<remendo> +1 to arachnophobia
centrx has quit [Ping timeout: 256 seconds]
Yiota has joined #ruby
<Aeyrix> :(
<sevenseacat> B> Spiders wont hurt you if you have a really big goddamn shoe to squish them with.
<ruby384> is there a way to reverse the issue?
<remendo> sevenseacat: And what if they are inside your shoe?
<sevenseacat> remendo: shake them out. then squish them.
<remendo> sevenseacat: *Australia*
<sevenseacat> I'm aware of Australia.
mark[oz] has quit [Remote host closed the connection]
<Radar> ruby384: Yeah: install Ruby using chruby+ruby-install
* sevenseacat has lived there for over thirty years oh christ
<Radar> still alive
<Radar> that's quite a feat
* remendo age revealed
mello has quit [Ping timeout: 264 seconds]
<Aeyrix> I've lived here for 12 years. :^)
<Aeyrix> AGE NOT REVEALED
<Radar> Aeyrix: Everyone knows you're 17 its ok
<sevenseacat> I revealed nothing.
<Aeyrix> ;_;
msnyon has quit [Ping timeout: 256 seconds]
<Aeyrix> Radar: Next meetup when?
<Radar> Aeyrix: 2 weeks from now
<Aeyrix> So glad I have a human calendar.
<remendo> Why do they look so evil?
<Aeyrix> GET OUT
<remendo> Aeyrix: I was shaking the whole time looking for a picture..
<Aeyrix> nope.avi
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeyrix> Radar: I'll come to that one.
<ruby384> what is chruby
<Aeyrix> I'm not sick now. :D
<Aeyrix> ruby384: Basically containerised environments for Ruby apps.
<Aeyrix> It means your gems for one app don't affect your gems for another app.
<Radar> ruby384: What OS are you on?
<ruby384> Yosemite
<Aeyrix> Anyone not using a separate user per Ruby app
<Aeyrix> is upsetting me.
<sevenseacat> Aeyrix: not sure you know what chruby is
<Radar> ruby384: Follow that. That should help you get setup.
<Aeyrix> sevenseacat: I mean in general.
<ruby384> thanks
Fooster has quit [Ping timeout: 265 seconds]
<sevenseacat> its got nothing to do with gems, or containerization
<Aeyrix> sevenseacat: chruby is for ruby versions amirite?
<sevenseacat> its a ruby switcher
<Aeyrix> Yeah that's rubyevv
<Aeyrix> env even
<Aeyrix> I got confused.
<sevenseacat> ruby-install is an installer, and chruby is a switcher. thats it.
<Aeyrix> Wait so is chruby preferred over rvm now?
<Radar> yes
<sevenseacat> I haven't used rvm in many years
<Radar> it has been that way for at least two years now
<Aeyrix> What was wrong with rvm?
<sevenseacat> well for me, it was the fact that every time a new version of ruby came out, you had to upgrade rvm and get all the new bugs
* Aeyrix just uses latest stable Ruby tbh.
<sevenseacat> then for one project I needed jruby, and installing it made my shell completely unusable
<Radar> Aeyrix: See the bottom of my blog post. It explains my feelings towards RVM :)
<remendo> Ubuntu latest version for Ruy iiiiiiiiis, 1.9...
<sevenseacat> remendo: no, 2.0.
<remendo> holy cow
<Aeyrix> "Even if you don't want to use Bundler (i.e. you're crazy)"
<havenwood> Just for fun, here's a quick little Ruby implementation of Elixir's Stream.unfold/2: https://gist.github.com/havenwood/e1b65e004ce716f428b0
<Aeyrix> lmao
<remendo> sevenseacat: They updated? Must be recently.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Radar> havenwood: woah
<Aeyrix> remendo: Depends entirely on what repository you use.
<Aeyrix> I have 2.1 on Debian.
<sevenseacat> remendo: if by recently you mean when 2.0 came out, sure.
minmax has joined #ruby
tkuchiki has joined #ruby
<sevenseacat> i dont think they have 2.1 in the repos yet, but not sure on that.
<remendo> Aeyrix: I have a laptop with the standard ubuntu installation, it was 1.9 :o
<sevenseacat> remendo: then you installed the wrong package
<Aeyrix> remendo: I use apt pinning.
<Radar> lol if you're using Ruby from apt
<remendo> sevenseacat: No idea I just checked. Don't use that lappy tho, just for surfing.
<Aeyrix> Radar: Depends on my install tbh.
<Radar> neg
<Radar> apt-get ruby is bad for your health
<Radar> like smoking
<Aeyrix> No, really, it does.
<sevenseacat> +1
<Aeyrix> I hear that so much
<Aeyrix> no real justification ever
<Aeyrix> from Python people at least
<Aeyrix> "muh 3.4 install"
<Radar> Aeyrix: It pretends to install a version of Ruby that it doesn't really install.
<Radar> apt-get install ruby1.9 -> Ruby 2.0 gets installed
<Aeyrix> Uhhhh
<remendo> havenwood: lool :D
<Aeyrix> what?
<Aeyrix> no
<sevenseacat> it them requires sudo for *everything*
<Aeyrix> can confirm absolutely otherwise
<Radar> ^
<Aeyrix> as of about this morning
<sevenseacat> ruby1.9 isnt ruby 2.
sdothum has joined #ruby
<Radar> Oh they fixed that :)
<Radar> Good.
<Aeyrix> ruby2 is ruby 2.0
<sevenseacat> aye.
<Aeyrix> ruby2.2 is ruby 2.2
<Aeyrix> it works properly now
<sevenseacat> oh they have a ruby 2.2 package now?
<Aeyrix> In testing, yes.
<Radar> Aeyrix: And how are you switching between Ruby versions?
<Aeyrix> I installed it about a week ago on a VM.
<Aeyrix> Radar: Why would I switch between versions when it's my own projects?
<Radar> And do they have a 2.2.2 release yet?
duggiefresh has joined #ruby
<sevenseacat> if you have projects that arent all on the same version?
<Radar> Aeyrix: Because you contribute to OSS and you want to test the project on 2.0, 2.1 and 2.2.
<Aeyrix> I maintain and test that they work with the latest on one box, then update.
<sevenseacat> you don't work in a team do you >_>
<Aeyrix> Active/standby mirrors. :^)
sdothum has quit [Read error: Connection reset by peer]
<Aeyrix> Not for my Ruby projects, no.
<Radar> (admittedly there isn't really many differences between 2.0, 2.1 and 2.2, but still!)
<Aeyrix> If it was between 1.9 and 2.0
<Aeyrix> I'd understand
<Aeyrix> but it isn't.
<sevenseacat> cant just upgrade a project when all the other team members and all the server config is for the other version
n008f4g_ has quit [Ping timeout: 245 seconds]
<Aeyrix> And if it was there's other underlying issues at this point.
Palmer11 has quit [Quit: Palmer11]
sdothum has joined #ruby
<Aeyrix> sevenseacat: Hence staging/production
<sevenseacat> whats that got to do with anything?
<Aeyrix> I have two boxes that are identical right now. When a new version of nginx or Ruby comes out, my test box updates and I, well, test.
<Aeyrix> Or postgres, or Python.
aaeron has quit [Quit: aaeron]
<sevenseacat> your server auto-updates itself?
<sevenseacat> o.o
<Aeyrix> I update it.
<Aeyrix> >auto updates on anything that isn't a desktop machine
<sevenseacat> and your infrastructure that builds these systems?
<Diabolik> weaksauce is there an easy way of fixing the messiness in this code
<Aeyrix> sevenseacat: ?
<Aeyrix> KVM VMs hosted by my old work.
<sevenseacat> we're not just talking about one server sitting in a corner here
<Radar> Diabolik: Why direct your message at weaksauce?
<Aeyrix> I don't really understand what your point is.
<Diabolik> because i was talking to him about it earlier?
<Aeyrix> My point is I test versions in a nonpublic environment before I update it elsewhere.
<Diabolik> i've been refactoring code on his suggestion
<Aeyrix> Just like you, you know, should be doing.
<Aeyrix> Anywhere.
<zenspider> ruby384: how do you know it is broken? gem pristine --all is a last-ditch effort
<sevenseacat> I'm not an ops person.
<Aeyrix> OS updates, software updates, anything.
<Aeyrix> Oh.
<sevenseacat> I have an ops team for that.
<Aeyrix> Yeah.
<zenspider> you probably can't say for sure that you're addressing your problem with it
CloCkWeRX1 has joined #ruby
<sevenseacat> for them, just changing a version of ruby is not a trivial task
<Aeyrix> But given my "team" size is 1-3 people, it's not really an issue.
<Aeyrix> I made sure that it would be a trivial task when I set up the env.
<sevenseacat> again, you only have one env
<Aeyrix> Because I made it so easy.
<sevenseacat> the ops team here manages a *lot* of envs.
ponga has quit [Read error: No route to host]
<nofxx> There was a gem to gdb/find memory leaks.. anyone remember the name?
<Aeyrix> I don't manage my work's env fwiw.
<sevenseacat> yeah we're talking about different scales then
<Aeyrix> sevenseacat: ofc
braincrash has quit [Quit: bye bye]
<sevenseacat> at one point in my last job I had projects on six different versions/patch levels of ruby
<Aeyrix> That's just an accident waiting to happen.
<sevenseacat> what makes you say that
<Aeyrix> Depends on the version disparity I guess.
<havenwood> Updated gist with Elixir/Ruby examples: https://gist.github.com/havenwood/e1b65e004ce716f428b0
<Aeyrix> And also how often you're flitting between environments.
<havenwood> ;)
<sevenseacat> this is why upgrades are not always trivial :P
<Aeyrix> This is why they should be. :(
<sevenseacat> heh
<Radar> !popcorn
CloCkWeRX has quit [Ping timeout: 265 seconds]
<sevenseacat> Aeyrix: your non-programmer is starting to show, just a little.
<Aeyrix> Yeah this is where we'll deviate.
zamerick_ has quit [Remote host closed the connection]
micmus has quit [Quit: Leaving]
<Radar> "should be"
* Radar giggles
* Radar pats Aeyrix
<Radar> You'll become old + bitter soon.
<Aeyrix> wtf are you going on about now
<Aeyrix> No I won't.
hahuang65 has joined #ruby
<Aeyrix> I'm not a programmer. :^)
fgo has joined #ruby
mase-chatter has joined #ruby
* sevenseacat remembers fondly upgrading one app from ruby 1.9 to 2.2, testing it happily everywhere she could, then waiting for devops to push out the change to staging... anywhere.... gave up waiting
<baweaver> Yeah, you're in OpSec. If you cross to Ops you're worse
braincrash has joined #ruby
<sevenseacat> I knew a devops guy that refused to install the latest version of anything, anywhere. he 'wanted other people to find the bugs and security holes'
<baweaver> We just deploy a new box for everything. Problem solved
<baweaver> sevenseacat: I can appreciate that sentiment to a degree
bin_005 has joined #ruby
<sevenseacat> so can I, but we were permanently a major version behind on everything
tubulife- has joined #ruby
<baweaver> It afforded me a lot of laughs at Mavericks upgraders a while back
<sevenseacat> it was really, really frustrating
<sevenseacat> and I do mean a *major* version
<baweaver> sevenseacat: then stay far far away from Java shops
<baweaver> They're normally 3-4 behind :D
jacobdam has quit [Ping timeout: 255 seconds]
jacobdam_ has joined #ruby
<sevenseacat> on the other hand, I once knew a CEO that is probably already running el capitan on his work machine
<sevenseacat> I'd be very very surprised if he isn't
<ruby384> im doing the guide to installation and im on the Rails section
<baweaver> ruby384: #RubyOnRails
<ruby384> says to run this: gem install rails -v 4.2.2 --no-rdoc --no-ri
<ruby384> but i get this :Could not find a valid gem 'rails' (= 4.2.2) in any repository
swgillespie has joined #ruby
<sevenseacat> eh? 4.2.1 is the latest
<havenwood> ruby384: Just run: gem install rails
fgo has quit [Ping timeout: 258 seconds]
<sevenseacat> Radar: what silly did you do
<Radar> Oops.
xcesariox has joined #ruby
<Radar> sorry ruby384, install 4.2.1. I'll fix the guide.
commondream has quit [Remote host closed the connection]
<ruby384> no worries!
<havenwood> ruby384: `--no-document` for a quicker install if you don't want rdoc and ri docs
<sevenseacat> #betatesting
CloCkWeRX has joined #ruby
<Radar> <3 Jekyll
exceion has joined #ruby
<sevenseacat> jekyll is indeed the shit.
<Radar> I'd like to automate that deployment process but it's not too painful right now
tubulife- has quit [Ping timeout: 256 seconds]
<sevenseacat> it used to be such a pain to set up and get going, but now it's really good.
<Aeyrix> Wait
<sevenseacat> you mean, you don't just use github pages like the rest of us?
<Aeyrix> You're using Jekyll?
<Radar> sevenseacat: correct I don't use GitHub Pages like the rest of you.
<Aeyrix> You're not using the blog platform you wrote for your first rails app?
<sevenseacat> lame-o
<Aeyrix> Come on m8
<Radar> sorry bro that thing was old school
CloCkWeRX has quit [Read error: Connection reset by peer]
<sevenseacat> I use jekyll for http://sevenseacat.net and it's hosted by github.
<Aeyrix> I use Tumblr lmao
<Radar> If I used RoR it would serve like 20 req/s
<Radar> and you know my blog is ultra popular because I am famous
<Radar> it needs to serve way more than that
willharr_ has joined #ruby
<Radar> at least 40 req/s
CloCkWeRX has joined #ruby
<remendo> It smells something
<remendo> P..h...
rbowlby has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 264 seconds]
zotherstupidguy has quit [Ping timeout: 252 seconds]
<Aeyrix> Philistine?
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commondream has joined #ruby
<remendo> Phteven
mdz_ has joined #ruby
mdz_ has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
apofis has joined #ruby
<Aeyrix> @Radar: I wanted to have a career as a programmer once
yasu has quit [Ping timeout: 255 seconds]
<Aeyrix> Then I realised I was jaded enough because I'm British, and didn't need to be any more so.
<remendo> Aeyrix: What you working as?
<zenspider> bah. jekyll.
<Aeyrix> I'm a security consultant.
michael_mbp has quit [Excess Flood]
duderonomy has joined #ruby
commondream has quit [Ping timeout: 250 seconds]
<remendo> Oh I see.
ruv has quit [Ping timeout: 264 seconds]
Ioyrie has joined #ruby
Ioyrie has left #ruby [#ruby]
michael_mbp has joined #ruby
someword has joined #ruby
<Aeyrix> Job description: Break things and tell people how.
<Aeyrix> Good fun.
xcesariox has quit [Ping timeout: 265 seconds]
adefa has joined #ruby
<baweaver> I'm DevOps. Break things and don't tell people how
astrobunny has joined #ruby
<Aeyrix> Lmao
Rickmasta has joined #ruby
apofis has quit [Ping timeout: 258 seconds]
<Aeyrix> I heard other people broke your things baweaver. ;)
<baweaver> Ah that's right. Always blame the devs
anekos has quit [Remote host closed the connection]
<baweaver> they probably have a bug somewhere anyways you can blame
<Aeyrix> Or Korea
Yiota has joined #ruby
<Aeyrix> Or Chinese hackers are the current fbi flavour of the month
mrsolo has quit [Quit: This computer has gone to sleep]
<baweaver> Korea is still a bit of a sore subject around certain sister companies
<ruby384> im still getting the issue
ReK2 has joined #ruby
<havenwood> ruby384: Which one?
<Aeyrix> Haha
adefa has quit [Ping timeout: 250 seconds]
<havenwood> ruby384: What's the error?
<ruby384> so i followed the guide for installing ruby churby etc. and basically i get this : http://stackoverflow.com/questions/30726848/why-do-i-keep-getting-these-errors-after-running-gem-pristine-all
baweaver_ has joined #ruby
cvtsx has quit [Quit: Leaving]
<havenwood> ruby384: Why are you running?: gem pristine --all
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davedev2_ has quit []
<ruby384> i do that and then i get this :ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /Users/FarhanSyed/.rvm/rubies/ruby-2.2.1/lib/ruby/gems/2.2.0/gems/mini_portile-0.6.2/History.txt
astrobunny has quit [Ping timeout: 256 seconds]
<havenwood> ruby384: So you have rbenv, RVM and chruby installed?
<ruby384> yes
chrisgeorge has joined #ruby
<bnagy> haha
<chrisgeorge> I'm pretty new to Ruby, and I'm having trouble understanding what something like this does: https://gist.github.com/chrisgeo/6bb4ff596d94d021961c what I gather is when I do Bar::new or b.foo = new_db.dup.returns_some_foo is that it will run some_func
<baweaver> bet you it's a path issue as well
stoogenmeyer__ has joined #ruby
<remendo> chrisgeorge: What is it that you don't understand?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> ruby384: I haven't been following what you're doing but that sounds complicated. ;) RVM has an `rvm fix-permissions` command to fix user and group permissions.
<chrisgeorge> remendo: I guess it seems like magic that you're calling a function within an attribute AND that it's automatically run with you assign it a value?
<remendo> chmod 777 :d
Jandre has quit [Ping timeout: 272 seconds]
<Radar> ruby384: rm -rf ~/.rvm ~/.rbenv
<Radar> problem fixed
<Radar> next question please
baweaver_ has quit [Ping timeout: 245 seconds]
<Aeyrix> wow rude
<Aeyrix> Why do so many people do that in this channel?
mark[oz] has joined #ruby
Spami has joined #ruby
<Radar> With time, you will do it too.
<Aeyrix> I doubt it.
bkxd has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> RVm and rbenv are getting in the way. Eliminating them willf ix the problem.
<Aeyrix> Yes, but "next question please" makes you sound like the idea of helping others bores the shit out of you.
<Aeyrix> Very discouraging for new users.
<havenwood> Or questions are exciting and we want more!
<Radar> ^
<remendo> chrisgeorge: By using = you are calling that method.
<Radar> What havenwood said
<Radar> I gorge on questions.
<Aeyrix> Garbage.
<Radar> If I found it boring, would you think that I would be here for 8+ years?
<chrisgeorge> Thanks remendo, I guess I need to get used to the translation in my brain :)
<Aeyrix> You know I mean it's the way you're wording it.
<Radar> Aeyrix: Are you attacking the tone of the statement rather than the statement itself?
<Radar> Logical fallacy much?
<Aeyrix> I've seen you use !next before as well.
anekos has joined #ruby
<remendo> chrisgeorge: Another example could be, foo + 1. What you actually do is calling the + method, so it's syntax sugar for foo.+(1).
<Radar> !next doesn't work in this channel
<Aeyrix> Which is your bot screaming NEXT!
<Aeyrix> Works in #ror.
Yiota has joined #ruby
<chrisgeorge> Ah, good example remendo, thank you
<Radar> Aeyrix: I don't see newbies complaining about it when I answer their questions correctly.
someword has quit [Quit: Leaving.]
<Aeyrix> I can certainly see how you trivializing their problems by acting like a Coles cashier would be discouraging.
<Radar> You are the first person to complain about it in 3 years.
<Aeyrix> You can't?
<Radar> *sigh*
willharr_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Aeyrix> Am I wrong?
<Radar> Here comes the fun police
<Radar> Whoop whoop
* Radar puts hands out for the cuffs
* Radar is hauled away
willharr_ has joined #ruby
<havenwood> Aeyrix: The #ruby-community channel is the perfect place to discuss how to make this channels automated messages friendlier and more helpful. The #rubyonrails channel for what happens there.
<havenwood> channel's
jack_rabbit has quit [Ping timeout: 246 seconds]
<Aeyrix> havenwood: what are you even talking about
eggoez has quit [Ping timeout: 276 seconds]
<Radar> Aeyrix: I do it to indicate that I'm ready to answer someone else's question.
willharrison is now known as willharrison-pho
<havenwood> Aeyrix: The #RubyOnRails channel bot is off-topic here. The best place to discuss it is #RubyOnRails.
willharr_ is now known as willharrison
<Aeyrix> havenwood: Please stop.
<Radar> (And yes, I was a Coles cashier in a previous life, but that's not why I do it)
<havenwood> Aeyrix: You asked what I was talking about. I was trying to answer.
<Aeyrix> havenwood: Okay, thank you for clarifying. My request stands. Please stop.
<sevenseacat> once a console operator, always a console operator.
<havenwood> Aeyrix: If it's about this channel, #ruby-community is the best place to discuss but please don't bring up #RubyOnRails stuff here.
<Aeyrix> Shhhh.
<havenwood> Aeyrix: Please be nice.
<Aeyrix> Is havenwood a bot?
<sevenseacat> where's mah popcorn
<Aeyrix> I can't tell.
<sevenseacat> no.
<remendo> sevenseacat: Did you finish the book? (Elixir)
<sevenseacat> remendo: not yet.
chrisgeorge has quit [Remote host closed the connection]
<Aeyrix> Radar: Okay, so you're saying you can only answer one question at a time?
<Aeyrix> It still seems rude.
<Radar> Aeyrix: I have been known to help 5 people at a time.
<remendo> sevenseacat: Does this seem accurate to you? ""But this power comes at a price. You’re going to have to unlearn a whole lot of what you know about programming. Many of your instincts will be wrong. And this will be frustrating, because you’re going to feel like a total n00b. "
<Aeyrix> Then when do you scream "next"?
<Aeyrix> After all five or after each one?
<sevenseacat> remendo: if you have questions about elixir, #elixir-lang is likely the best place
<Radar> Aeyrix: Are you willingly going to continue to waste my time or can I go back to work now?
<sevenseacat> but yes, that's true if you're new to functional programming.
<Radar> Aeyrix: This discussion is petty and useless and will not change my behaviour.
<Aeyrix> You have never indicated I was wrong.
<willharrison> any opinions on this? https://upcase.com/test-driven-rails
scripore has quit [Quit: This computer has gone to sleep]
<baweaver> remendo: Ruby is a good stepping stone at least towards it making it less of a pain
scripore has joined #ruby
<baweaver> willharrison: Thoughtbot puts up good stuff
<baweaver> (makers of Upcase)
<willharrison> baweaver k cool, thanks
<baweaver> So probably fairly good
revath has left #ruby [#ruby]
darkf has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
pepperbreath has joined #ruby
Exuma has joined #ruby
gix has quit [Ping timeout: 255 seconds]
ruby384 has quit [Ping timeout: 246 seconds]
zotherstupidguy has quit [Ping timeout: 258 seconds]
bin_005 has quit [Ping timeout: 246 seconds]
zotherstupidguy has joined #ruby
freerobby has joined #ruby
mrsolo has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
gix has joined #ruby
davedev24_ has joined #ruby
balazs has joined #ruby
_seanc_ has joined #ruby
towski_ has joined #ruby
eggoez has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
choke has joined #ruby
stoogenmeyer__ has quit [Ping timeout: 245 seconds]
EllisTAA has quit [Quit: EllisTAA]
fgo has joined #ruby
choke has quit [Client Quit]
Jandre has joined #ruby
jamesbrink has quit [Ping timeout: 265 seconds]
Jandre is now known as Guest41768
RegulationD has joined #ruby
jacobdam_ has left #ruby [#ruby]
ur5us has quit [Remote host closed the connection]
scripore has joined #ruby
EllisTAA has joined #ruby
premera has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
skade has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
GGMethos has quit [Ping timeout: 272 seconds]
agent_white has quit [Read error: Connection reset by peer]
EllisTAA has quit [Quit: EllisTAA]
duggiefresh has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
agent_white has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
shock_one has joined #ruby
towski_ has quit [Remote host closed the connection]
Exuma has quit []
eggoez has quit [Ping timeout: 252 seconds]
shock_one has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
GGMethos has joined #ruby
EllisTAA has joined #ruby
ur5us has joined #ruby
eggoez has joined #ruby
maletor has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Scroff has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Zen-Zen has joined #ruby
Zen-Zen has quit [Client Quit]
mdw has joined #ruby
jbomo has quit []
Scroff has quit [Ping timeout: 245 seconds]
astrobunny has joined #ruby
rhg135 has quit [Read error: Connection reset by peer]
rhg331 has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
yardenbar has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
dgutierrez1287 has joined #ruby
psy_ has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
Randroid has joined #ruby
jamesbrink has joined #ruby
mello has joined #ruby
mello has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
towski_ has joined #ruby
rhg331 is now known as rhg135
matrix9180 has joined #ruby
j4cknewt has quit [Remote host closed the connection]
revath has joined #ruby
dgutierrez1287 has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
jamesbrink has quit [Ping timeout: 250 seconds]
mello has quit [Ping timeout: 265 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
revath has left #ruby [#ruby]
<shevy> once a beaver always a beaver
<baweaver> hi to you too
* baweaver has a watch on the word beaver now
skade has quit [Quit: Computer has gone to sleep.]
<sevenseacat> lol
jwaldrip has joined #ruby
djbkd has joined #ruby
drizz has quit [Remote host closed the connection]
jmhmccr has quit [Quit: Connection closed for inactivity]
mdz_ has joined #ruby
<shevy> hmm what kind of package managers do we have written in ruby? we have ... rubygems ... and macosx homebrew. Anyone knows of another one?
krz has joined #ruby
drizz has joined #ruby
bb010g has joined #ruby
casadei has quit [Remote host closed the connection]
jenksy has quit [Ping timeout: 256 seconds]
Randroid has quit [Quit: Randroid]
rikai has quit [Read error: Connection reset by peer]
nwhirschfeld has quit [Ping timeout: 265 seconds]
jenksy has joined #ruby
nwhirschfeld has joined #ruby
aaeron has joined #ruby
shadoi has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
aaeron_ has joined #ruby
tubulife- has joined #ruby
Ox0dea has joined #ruby
bronson has joined #ruby
<Ox0dea> shevy: CocoaPods.
rikai has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
<shevy> funny name
<shevy> ah so also related to OSX or?
<shevy> "CocoaPods is the dependency manager for Swift and Objective-C Cocoa projects."
<shevy> curious how there are so many things in ruby for mac osx users
<Ox0dea> You must be new. ^_^
aaeron_ has quit [Client Quit]
<shevy> dunno, the osx landscape is unknown to me
<shevy> I do look at what gets changed at https://github.com/Homebrew/homebrew/commits/master/Library/Formula though
aaeron has quit [Ping timeout: 256 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> How come?
aaeron has joined #ruby
_ht has joined #ruby
<shevy> it's like a news feed :)
arooni-mobile has joined #ruby
tubulife- has quit [Ping timeout: 255 seconds]
adavia has quit [Ping timeout: 258 seconds]
<shevy> awww they use internal versioning
jwaldrip has quit [Quit: Be back later ...]
<shevy> 0.9.1-1
bronson has quit [Ping timeout: 272 seconds]
cubicme has joined #ruby
<Ox0dea> Arch patches if and when appropriate, so that makes good sense.
LicHacker has quit [Remote host closed the connection]
cubicme has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
jenksy has quit [Ping timeout: 276 seconds]
allomov has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
jenksy has joined #ruby
rbowlby has quit [Remote host closed the connection]
nwhirschfeld has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
nwhirschfeld has joined #ruby
casadei has joined #ruby
bosma has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
mdw has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<starfox_sf> is there any Gem that attempts to verify the existence of an email by actually connecting to the SMTP server and ask it if the email address is valid?
krz has quit [Ping timeout: 272 seconds]
<starfox_sf> I'm looking for something more than just verifying that a domain exists
mrsolo has joined #ruby
mcpierce has quit [Ping timeout: 256 seconds]
<Ox0dea> starfox_sf: That seems to be something of a fool's errand.
<sevenseacat> sounds like a security hole if its possible
yfeldblum has joined #ruby
hololeap has joined #ruby
astrobunny has joined #ruby
<Ox0dea> It's certainly possible, but any modern SMTP server is likely to have checks in place to prevent such an approach being viable for very long.
<sevenseacat> this is usually why people do confirmation emails - to verify that emails are actually valid.
wjimenez5271 has quit [Excess Flood]
hahuang65 has quit [Ping timeout: 244 seconds]
wjimenez5271 has joined #ruby
mcpierce has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
lxsameer has joined #ruby
lxsameer has joined #ruby
<sevenseacat> if you get a hard bounce, well, then its not. :)
tvw has joined #ruby
shock_one has joined #ruby
hololeap has left #ruby [#ruby]
<starfox_sf> Ox0dea: I'm not entirely sure of that. There are a few sites that allow you to do similar things http://gb-emailvalidator.azurewebsites.net/
<starfox_sf> sevenseacat: I know that for some cases the only solution is to actually send an email
<Aeyrix> starfox_sf: Just because you can, doesn't at all mean you should.
<Aeyrix> It is a bad idea.
yardenbar has joined #ruby
hololeap has joined #ruby
firehots has joined #ruby
<Aeyrix> The intention behind the email-based challenge-response is to not only verify the domain's correct, but also that the user owns that inbox.
<starfox_sf> Aeyrix: well, I need to do it. no evil reason behind it.
<Aeyrix> It's a bunch of checks in one.
<Aeyrix> I'd venture your design is wrong, if you need to do that.
sinkensabe has quit [Remote host closed the connection]
mdz_ has quit [Remote host closed the connection]
shock_one has quit [Read error: Connection reset by peer]
shock_on_ has joined #ruby
krz has joined #ruby
yfeldblu_ has joined #ruby
mdw has quit [Ping timeout: 265 seconds]
aaeron has quit [Ping timeout: 256 seconds]
rikai has quit [Remote host closed the connection]
shock_on_ has quit [Client Quit]
mase-chatter has quit [Quit: Leaving]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
aaeron has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
<shevy> he needs to do it
<Aeyrix> Did they state reasoning ever or?
datanoise has quit [Ping timeout: 246 seconds]
<Aeyrix> Hm, nope.
<shevy> Do they have to?
<shevy> Hm, nope.
<Aeyrix> Not at all, but I'm not keen on assisting people making bad decisions.
<sevenseacat> thats okay, they dont have to, but we dont have to help people that are doing something wrong.
<Aeyrix> FWIW the "Hm, nope" was actually me checking.
<Aeyrix> It wasn't me being a twat.
<Aeyrix> I have a lot of windows to pay attention to.
rikai has joined #ruby
firehots has left #ruby [#ruby]
matrix9180 has quit [Remote host closed the connection]
<shevy> no prob Aeryix, I wouldn't know the answer to his question myself anyway so it's not as if I can contribute anything meaningful myself :)
<starfox_sf> this is for a university project, at some point we have a long list of names and we are trying to figure out their emails
<Aeyrix> starfox_sf: What course?
<starfox_sf> I think what they are doing here https://github.com/Gradberry/Email-Permutator/blob/master/smtp_validateEmail.class.php is precisely what I was looking for
<Aeyrix> Programming or security?
<shevy> ack... php got the answers
<starfox_sf> they basically send the RCPT TO:<email you want to test>
<Aeyrix> shevy: It's about ten lines of Ruby.
<Aeyrix> I could write a gem and package it in a half hour.
<shevy> At least that php file is extensively documented.
<starfox_sf> and then they send a RSET command
sinkensabe has joined #ruby
<Aeyrix> starfox_sf: That doesn't always work.
<starfox_sf> I know
<shevy> Aeyrix yeah, I don't understand why php is that verbose
<shevy> $parts = explode('@', $email); $domain = array_pop($parts); $user= implode('@', $parts);
<starfox_sf> just need it to work often enough
<shevy> that's .join and .split right?
<Aeyrix> Yes.
<starfox_sf> shevy: I found that syntax funny too
<shevy> ah, one .pop
<Aeyrix> implode =~ join
<Ox0dea> >> require 'net/smtp'; Net::SMTP.method_defined?(:rcptto)
<ruboto> Ox0dea # => true (https://eval.in/378697)
<Ox0dea> starfox_sf: Fancy that.
<shevy> :)
aganov has joined #ruby
tagrudev has joined #ruby
<meshugga> heyo
<Ox0dea> I feel like require should evaluate to the major "namespace" it introduces.
<meshugga> if i do a bundle install on one host and ship the resulting directory/app to another, is it necessary that it is executed in the same path or are the gems ok with living relative to each other?
<meshugga> or put differently, do absolute paths play a role in bundle installed gems?
arooni-mobile has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
finisherr has joined #ruby
lavros has joined #ruby
<starfox_sf> Ox0dea: can you give me some resource to learn a bit more about $,$! and the like? I have seen people using those but I don't quite understand it yet
<Ox0dea> starfox_sf: You're asking for information about Ruby's "dollar variables"?
<Aeyrix> About $3.50.
<Ox0dea> $3.85 with rice.
<Aeyrix> I like rice.
ferr1 has joined #ruby
bkxd has joined #ruby
<starfox_sf> I need to spend more time here. I feel like there is always some inside joke I have no clue about
Xiti has quit [Ping timeout: 265 seconds]
<Aeyrix> starfox_sf: That's not even from here, it's garbage from reddit.com.
<Aeyrix> :D
<starfox_sf> the hole is always deeper than I expect
TinkerTyper has quit [Ping timeout: 252 seconds]
jack_rabbit has quit [Ping timeout: 272 seconds]
avahey has quit [Quit: Connection closed for inactivity]
<starfox_sf> *rabbit hole
<starfox_sf> that sounded weird
mcpierce has quit [Ping timeout: 265 seconds]
seank_ has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
pcfreak30 has quit [Ping timeout: 265 seconds]
chinmay_dd has joined #ruby
phizzbuzz has quit [Ping timeout: 265 seconds]
rbowlby has joined #ruby
Fooster has joined #ruby
duncannz has joined #ruby
rikai has quit [Quit: No Ping reply in 180 seconds.]
pwnz0r has joined #ruby
allomov has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
rbowlby_ has joined #ruby
rikai has joined #ruby
<starfox_sf> bnagy: thanks! that looks good.
<bnagy> btw your email testing idea is bad and you should feel bad
Fooster has quit [Ping timeout: 250 seconds]
<Aeyrix> kek
<Aeyrix> It's official because bnagy agrees with me.
rbowlby__ has joined #ruby
<Ox0dea> >> $__=$$/$$;_=$__+$__;__=$__+_;$_=_+_;@_=$__+$_;$-_=_**@_;$___=_*$-_;@__=$-_+$___;''<<$___+__*(_+@_)<<@__+_*$_<<$-_+__*$_+$__<<@__+__*@_<<@__+_*$_<<(''<<$-_+_*(_+@_))*__
<ruboto> Ox0dea # => "Uh-oh..." (https://eval.in/378698)
<Aeyrix> Ox0dea: please go.
Ox0dea has left #ruby ["WeeChat 1.3-dev"]
bootstrappm has joined #ruby
ylla has quit [Ping timeout: 252 seconds]
rbowlby has quit [Ping timeout: 256 seconds]
bootstrappm has left #ruby [#ruby]
axilla has quit [Ping timeout: 250 seconds]
<starfox_sf> bnagy: I felt bad way before that idea. And I still need to do it
aaeron has left #ruby [#ruby]
khebbie has joined #ruby
<Aeyrix> spotify:track:0cwEvwz7syhgHKXX1z4puc
<Aeyrix> oops
rbowlby_ has quit [Ping timeout: 244 seconds]
<starfox_sf> Ox0dea: what in the heck...
<baweaver> the pain
apofis has joined #ruby
<Aeyrix> >and Gluecon
<Aeyrix> lmao
bMalum has joined #ruby
MVPhelp has quit [Remote host closed the connection]
<shevy> "I need a fleet now?"
<shevy> lol
<Aeyrix> No, it’s called rkt now. Totally different.
<Aeyrix> Lost it.
<baweaver> That's DevOps, I swear on it
<sevenseacat> they lost me about three lines in
<shevy> "Uh, OK. And he wrote that Katy Perry song?"
<shevy> hahaha
lessless has joined #ruby
<Aeyrix> "It’s San Francisco. Everyone’s into distributed systems and BDSM."
<Aeyrix> s/San Francisco/Ruby/
<Aeyrix> :^)
<baweaver> Aeyrix: Fly in around August and I can show you the Folsom St Fair
<Aeyrix> baweaver: If this was last year I'd have been around lel.
<Aeyrix> Well, I'd have been in ATL, but I could've come up.
<baweaver> protip: HUGE NSFW
<baweaver> Folsom St Fair is the huge BDSM parade here, walked in on it once by accident last year
<Aeyrix> >BDSM parade
<Aeyrix> 'Murica
<baweaver> More like San Francisco
<baweaver> Most of the time you just shrug and keep walking
<Aeyrix> CAVS IN SIX
<Aeyrix> I know I'm an hour late.
<Aeyrix> CLE 2 - 1 GSW
<baweaver> You think I watch sports
<shevy> hehe
<baweaver> that's funny
<Aeyrix> :<
<shevy> the beaver olympics
<baweaver> shevy: that's where we give a dam
<shevy> hahaha
<Aeyrix> I had something for that.
<Aeyrix> ;_;
sandstrom has joined #ruby
<baweaver> I'm an amalogous blob of puns and programming knowledge.
axilla has joined #ruby
<baweaver> Well, bed for me. 'night
krz has quit [Ping timeout: 258 seconds]
baweaver has quit [Remote host closed the connection]
_seanc_ has quit [Quit: _seanc_]
<Aeyrix> ciao
nahtnam has quit [Quit: Connection closed for inactivity]
mark[oz] has quit []
sandelius has joined #ruby
Guest34113 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
roolo has joined #ruby
IanVorn has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
<flughafen> oi oi oi
<Guest34113> Help needed on our new genuinevBulletin forum software (it is not nulled) please visit https://www.criosphinx.net for more information (we're able to install vBulletin 5 Connect
Guest34113 has quit [Client Quit]
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
aaeron has joined #ruby
astrobunny has quit [Remote host closed the connection]
fgo has joined #ruby
IanVorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aeyrix> kek
bosma has quit [Quit: Leaving]
joneshf-laptop has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
revath has joined #ruby
astrobunny has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
lavros has quit [Quit: leaving]
amclain has quit [Quit: Leaving]
<Aeyrix> oh dear
dseitz has joined #ruby
finisherr has quit [Quit: finisherr]
<Aeyrix> I don't really know what was being asked for by that vB guy.
andikr has joined #ruby
kerunaru has joined #ruby
jmhmccr has joined #ruby
jgt2 has joined #ruby
<Aeyrix> “The evaluation of reinforcement learning has analyzed RAID, and current trends suggest that the emulation of linked lists will soon emerge.“
<Aeyrix> Oh good.
<certainty> haha
<certainty> "I want to hear what the little girl has to say"... hilarious
<Aeyrix> wat
<certainty> xD
mello has joined #ruby
commondream has joined #ruby
allomov has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
datanoise has joined #ruby
mello has quit [Ping timeout: 250 seconds]
unshadow has joined #ruby
<shevy> yaml files must have a trailing newline?
<certainty> the linter says so
fgo has quit [Ping timeout: 265 seconds]
bMalum has quit [Quit: bMalum]
aaeron has quit [Quit: aaeron]
lsmola has joined #ruby
codecop_ has joined #ruby
towski_ has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
Iskarlar has joined #ruby
hubcaps has quit [Ping timeout: 255 seconds]
axilla_ has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
axilla has quit [Ping timeout: 244 seconds]
Pathfinder has joined #ruby
allomov has quit [Read error: Connection reset by peer]
Pathfinder has quit [Remote host closed the connection]
allomov has joined #ruby
apofis has quit [Ping timeout: 246 seconds]
Iskarlar has quit [Ping timeout: 245 seconds]
DoubleMalt has joined #ruby
irctc241 has joined #ruby
axilla_ has quit [Ping timeout: 256 seconds]
TinkerTyper has joined #ruby
<shevy> yeah I was wondering
axilla has joined #ruby
<shevy> simple yaml files very like:
<shevy> "--- true\n"
apofis has joined #ruby
<irctc241> so i followed the instructions on the guide on http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/ and i try to run "gem install rails -v 4.2.1" and once it installs i try to run "rails new app" and it says to install rails
<irctc241> it wants me to use sudo
<irctc241> but the guide says not to use sudo
<sevenseacat> what was the output when you ran `gem install rails -v 4.2.1` ?
ta has quit [Remote host closed the connection]
<irctc241> it installs fully
<sevenseacat> thats not what I asked
<sevenseacat> can you please gist the output
thesheff17 has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
kwd has joined #ruby
<irctc241> what do you mean output? it installs all the necessary things and at the end it says Done installing documentation for thread_safe, tzinfo, i18n, activesupport, rails-deprecated_sanitizer, mini_portile, nokogiri, rails-dom-testing, loofah, rails-html-sanitizer, erubis, builder, actionview, rack, rack-test, actionpack, sprockets, sprockets-rails, bundler, thor, railties, globalid, activejob, mime-types, mail, actionmailer, arel, activem
thesheff17 has joined #ruby
<sevenseacat> I sense this is going to be a slow process.
<Aeyrix> Nah.
<Aeyrix> irctc241:
<Aeyrix> Run this:
* sevenseacat shrugs and goes back to work
<Aeyrix> Wait actually, don't, you've already got it installed. Never mind, it will be a slow process!
<Aeyrix> I notice 'rails' isn't in the list of things that had documentation installed.
<sevenseacat> i did ask to see the output, but nooooo.
<irctc241> all of the output?
<Aeyrix> Yes.
<sevenseacat> yes, please gist it.
<Radar> irctc241: https://gist.github.com
<Aeyrix> Get outspeeded, Radar.
<Radar> :)
<Radar> irctc241: It would also be helpful to us to know what 'gem env' outputs for you
chinmay_dd has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
<Aeyrix> Fetching: rails-4.2.1.gem (100%)
<Aeyrix> Successfully installed rails-4.2.1
MVPhelp has joined #ruby
<sevenseacat> brew ruby, and rbenv and rvm still in path
<Radar> ^
<Radar> brew uninstall ruby
<Radar> rm -rf ~/.rbenv ~/.rvm
stoogenmeyer__ has joined #ruby
MVPhelp has quit [Remote host closed the connection]
<irctc241> wait u both said to do something..
<Radar> we said the same thing
<sevenseacat> I didnt say to do anything, I was pointing out problems
bluOxigen has joined #ruby
<Radar> you need to uninstall the 3 OTHER versions of Ruby that you have installed.
<irctc241> ohh gotcha
MVPhelp has joined #ruby
chinmay_dd has joined #ruby
bosma has joined #ruby
kwd has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
<irctc241> how do i uninstall the 3 other versions?
pcfreak30 has joined #ruby
<Radar> irctc241: brew uninstall ruby
<Radar> That's the first one.
<Radar> Let me know when you have run that command.
phizzbuzz has joined #ruby
<irctc241> brew ruby?
commondream has quit [Remote host closed the connection]
<Radar> irctc241: The command is "brew uninstall ruby"
pyo_ has joined #ruby
Pathfinder has joined #ruby
<irctc241> okay ran it
<Radar> now run "rm -rf ~/.rbenv ~/.rvm"
tubuliferous_ has joined #ruby
<irctc241> did it
<Radar> Show us "gem env" output again please
commondream has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
allenn has joined #ruby
<irctc241> kk
troulouliou_dev has joined #ruby
RegulationD has joined #ruby
<Radar> Can you run that one more time in a new terminal window?
<irctc241> yes
<Radar> And show us the output from that too
pwnz0r has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 255 seconds]
commondream has quit [Ping timeout: 246 seconds]
pwnz0r has joined #ruby
<Radar> Looks better. Shell path still seems weird, but that is just a $PATH thing which you can fix up later.
<Radar> Can you run chruby ruby 2.2.2?
<Radar> And then tell us what ruby -v shows?
astrobunny has quit [Ping timeout: 256 seconds]
adefa has joined #ruby
<irctc241> chruby ruby 2.2.2 comes back as -bash: chruby: command not found
<irctc241> and ruby -v comes back as : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
<Radar> Ok, so you didn't install chruby yet. Keep following the guide.
bluOxigen has quit []
fabrice31 has joined #ruby
hubcaps has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
astrobunny has joined #ruby
browsestoics has joined #ruby
pwnz0r has quit [Ping timeout: 256 seconds]
agent_white has joined #ruby
adefa has quit [Ping timeout: 244 seconds]
agent_white has quit [Read error: Connection reset by peer]
rubie_ has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<shevy> do you guys tend to follow the "one class per .rb file" guideline?
<Radar> yup
<sevenseacat> aye.
<certainty> yes
strixd has joined #ruby
<certainty> on rare occasions i have nested classes in the same file
strixd has quit [Excess Flood]
timonv has joined #ruby
strixd has joined #ruby
<irctc241> im confused on waht to do
jesterfraud has quit [Quit: Page closed]
<Radar> irctc241: after running those commands does "chruby" work?
<Radar> If so, what does "ruby-install" do
j4cknewt has joined #ruby
<irctc241> churby doesnt work
<irctc241> but ruby-install does
Raboo has quit [Ping timeout: 265 seconds]
jcaho_m has quit [Quit: Leaving]
<Radar> what does "chruby" say when you try it?
<irctc241> lemme check
<irctc241> -bash: chruby: command not found
bkxd has quit [Ping timeout: 264 seconds]
<Radar> I don't know how that's possible. It looks like it's installing it successfully there.
<Radar> Opening a new tab still doesn't fix it?
<Radar> What is your $PATH?
<Radar> echo $PATH
solars has joined #ruby
<Radar> Seems alright save for the .rvm things leftover in there
<Radar> I don't know what's going wrong here, sorry.
dhjondoh has joined #ruby
<sevenseacat> didnt actually load chruby in your .bashrc ?
plashchynski has joined #ruby
<Radar> oh right it needs to be loaded
fabrice31 has quit [Remote host closed the connection]
<sevenseacat> it was probably part of your guide.
<irctc241> is there a way to uninstall completely everything? and start over
<Radar> It is
<Radar> "After this has been installed, we'll need to load chruby automatically, which we can do by adding these lines to ~/.bashrc:"
fabrice31 has joined #ruby
<Radar> irctc241: You're missing that part of my guide ^
<Radar> Please keep reading from that part that I just quoted
<irctc241> kk ill read it
j4cknewt has quit [Ping timeout: 265 seconds]
ylla has joined #ruby
<irctc241> chruby outputs back ruby 2.2.2
<Radar> \o/
<Radar> Keep reading the guide and you should be alright now.
pepperbreath has left #ruby [#ruby]
<irctc241> where shoiuld i put the file that needs to be created?
olistik has quit [Remote host closed the connection]
<Radar> Which file?
<shevy> :)
<irctc241> "Now we need to make that Ruby the default Ruby for our system, which we can do by creating a new file called ~/.ruby-version with this content:"
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> ~/ means base home dir of your user account
<Radar> vim ~/.ruby-version
<shevy> so if you are on linux and your name is joe, it would be /home/joe/
<irctc241> so just whatever it is on when i open terminal?
<shevy> ~/ should work always irctc241 just as Radar's example showed
<shevy> you could use nano rather than vim :P
plashchynski has quit [Client Quit]
hanmac has quit [Ping timeout: 256 seconds]
<irctc241> im on osx
<Darkwater> use ed
serivichi has quit [Ping timeout: 272 seconds]
<Darkwater> nothing will go wrong I swear
polysics has joined #ruby
bosma has quit [Quit: Leaving]
<shevy> I guess osx uses /Users/name_here/
<irctc241> i saved it where on OSX the applications folder is, downloads etc
<irctc241> and when i run 'ruby -v' ruby 2.0.0 comes, not ruby 2.2.2
<shevy> lots of osx users use ruby
Iskarlar has joined #ruby
<ddv> somes i'm ashamed of my osx brothers
<ddv> sometimes*
<shevy> hehe
<shevy> I just compile from source on linux; wget ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
<flughafen> sevenseacat: which video are you on now?
<flughafen> ;)
sandstrom has quit [Quit: My computer has gone to sleep.]
<Radar> irctc241: run "cat ~/.ruby-version" for me and tell me what that outputs
<irctc241> no such file or directory
<Radar> So you didn't create it there.
<Radar> irctc241: Do you know how to use Vim or Nano?/
<irctc241> found the issue. i stupidly added the "~/. " in the file name
ayaz has joined #ruby
<sevenseacat> well the . is part of the filename
<sevenseacat> and the ~/ is the path
ta has joined #ruby
ayaz is now known as Guest43554
bosma has joined #ruby
Guest43554 has quit [Client Quit]
<shevy> cool
Zai00 has quit [Quit: Zai00]
<shevy> so he would have ~/.~/.ruby-version
<irctc241> doesnt let me save it with a dot. says its reserved for system
chussenot has joined #ruby
<sevenseacat> sigh
<Radar> irctc241: Override it.
<irctc241> how can i do that
<ddv> irctc241: why are you not installing a ruby version manager?
<shevy> ddv you should be ashamed indeed ^^^^
<sevenseacat> ddv: they did
revath has left #ruby [#ruby]
<sevenseacat> now theyre trying to configure it but instructions are hard.
<ddv> :) ah
<shevy> :D
<Radar> ddv: He is and we're trying to help.
<irctc241> newbie here sorry guys
<shevy> you will manage!
plashchynski has joined #ruby
<shevy> listen to Radar
<irctc241> okay so how can i override it so i can put a dot in front of the file
<Radar> irctc241: vim ~/.ruby-version
fgo has joined #ruby
CustosLimen has quit [Read error: Connection timed out]
Iskarlar has quit [Quit: Textual IRC Client: www.textualapp.com]
<ddv> you just type the dot
CustosLimen has joined #ruby
hahuang65 has joined #ruby
<shevy> irctc241 did you try what Radar showed you in your terminal yet
<irctc241> yeah i typed the file in terminal but how do i save it
<irctc241> its just stuck on the insert
<ddv> :wq
<Radar> escape, then :wq
<ddv> irctc241: you can use any text editor tho
<shevy> irctc241 if vim confuses you, use "nano"
dumdedum has joined #ruby
hanmac has joined #ruby
chussenot has quit [Quit: chussenot]
<irctc241> yeah nano alot easier
fgo has quit [Ping timeout: 264 seconds]
vdamewood has joined #ruby
<irctc241> when i save it, doesnt show in the dir
<shevy> yeah
<shevy> leading . means hidden
<shevy> you can show hidden files and dirs too
<irctc241> so i ran cat ~/.ruby-version and i get back ruby-2.2.2
<flughafen> holy crap, it looks like for the 2nd day in a row the package isn't being delivered! grrrrrrr
gagrio has joined #ruby
plashchynski has quit [Quit: plashchynski]
<shevy> irctc241, in your home dir try: "ls -l --almost-all", I hope this works on osx
<shevy> flughafen still trouble in Berlin?
<certainty> double trouble
<shevy> airport not build, packages not delivered... time to move to other parts of the world man
<irctc241> says illegal option
<shevy> oops
<flughafen> shevy's jokes are an illegal option
<shevy> works on linux!
<certainty> -la will do
<shevy> lalalala
<flughafen> ls -lalallala
DEA7TH has joined #ruby
livathinos has joined #ruby
<irctc241> so i ran ruby -v now and it says ruby 2.2.2
livathinos is now known as livathinos|away
<sevenseacat> yay, ruby is installed.
dseitz has quit [Quit: g'night]
<shevy> you are such a motivational cat
GnuYawk has joined #ruby
GnuYawk has quit [Client Quit]
<irctc241> ill just follow the rest of the guide now
<sevenseacat> good idea :)
starfox_sf has quit [Ping timeout: 246 seconds]
<shevy> lol
Spami has quit [Quit: This computer has gone to sleep]
Hounddog has joined #ruby
sandstrom has joined #ruby
browsestoics has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
parduse is now known as Guest41929
ki0 has joined #ruby
pardusf has joined #ruby
Guest41929 has quit [Ping timeout: 265 seconds]
GnuYawk has joined #ruby
GnuYawk has joined #ruby
Soda has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
datanoise has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
<shevy> is it common to define to_s in any given class?
aapole has joined #ruby
monsieur1 is now known as monsieurp
monsieurp has quit [Changing host]
monsieurp has joined #ruby
jenrzzz has joined #ruby
<irctc241> thanks everyone for helping me out.
livathinos|away is now known as livathinos
Xeago has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 246 seconds]
msgodf has joined #ruby
anisha has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
MVPhelp has quit [Remote host closed the connection]
mc_fail has quit [Quit: leaving]
bronson has joined #ruby
MVPhelp has joined #ruby
Yiota has joined #ruby
davidhq has joined #ruby
irctc241 has quit [Ping timeout: 246 seconds]
irctc239 has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
commondream has joined #ruby
j4cknewt has joined #ruby
<irctc239> so i finished the guide. everything seems to run fine. but when i quit terminal. Rails commands dont work, and now it says ruby is version 2.0.0
baweaver has joined #ruby
nilo is now known as niko
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iml_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
bog has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
<bog> hi !
<bog> could someone help me to understand a ruby concept ?
c0m0 has joined #ruby
<bog> What is a tLabel ?
cajone has left #ruby [#ruby]
<bog> I don't really understand what variables like var: means
jamesbrink has joined #ruby
meph has joined #ruby
Scroff has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
<bog> I tried to find some information on the web but I have not found any tutorial about that
<bog> Is there a link with hashtable ?
<apeiros> bog: can you provide a bit more code?
<ljarvis> morning
<apeiros> tLabel itself doesn't tell me anything. I guess that's how the tokenizer calls it…
<apeiros> moin ljarvis
<bog> apeiros, what is the "tokenizer" ?
<ljarvis> bog: what ruby version are you using? `ruby --version`
IanVorn has joined #ruby
<apeiros> bog: something irrelevant to your question. it's part of how code is usually evaluated. the first step is tokenizing the blob of text.
<bog> ljarvis, 2.1.6
<ljarvis> bog: ok, please paste your code on gist.github.com
IanVorn has quit [Max SendQ exceeded]
<ljarvis> tLabel is used for 1.9 style hash keys in the lexer (I think)
IanVorn has joined #ruby
<ljarvis> i should really start just calling them hashes and not 1.9 style hases
<ljarvis> hashes*
<apeiros> ljarvis: that's what I'd assume too. but I don't want to guess, hence waiting for actual code by bog.
* ljarvis reminises
<ljarvis> yep good call
<ljarvis> reminisces*
IanVorn has quit [Max SendQ exceeded]
<ljarvis> today is not a good spelling day
<apeiros> speling?
<ljarvis> :P
<bog> I want to learn ruby on rails. Before that, I try to learn ruby
<ljarvis> bog: again, if you want help we're going to need to see code
ki0 has quit [Remote host closed the connection]
IanVorn has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
<bog> ljarvis, I don't understand this line of code : @article = Article.new(params.require(:article).permit(:title, :text))
IanVorn has quit [Max SendQ exceeded]
chthon has joined #ruby
<bog> because I don't know what is :var
drzel is now known as zel
tobiasvl has quit [Quit: reboot]
<apeiros> bog: it's not var
<apeiros> it's a value
zel is now known as drzel
<apeiros> like "var" is a literal string, :var is a literal symbol
IanVorn has joined #ruby
<bog> is that a kind of pointer ?
<apeiros> no
<apeiros> it's kind of a number combined with a string
<apeiros> for the programmer, the string aspect of it is the important part, for the machine it's the number which is important
<bog> humm.. I don't really understand what is a symbol
<ljarvis> bog: do you know any other programming languages?
<apeiros> at this point, you can just think about it as a string (just with a different class than String). in most cases that's how it behaves.
<bog> ljarvis, I know python, java, c and c++
chthon has quit [Client Quit]
CloCkWeRX1 has joined #ruby
psy_ has joined #ruby
<flughafen> ah, it makes sense now, i guess dhl along with deutschepost is on strike
chthon has joined #ruby
<Darkwater> hopefully not in nl
<apeiros> flughafen: germany seems to be in strike mood… first DB, now Post… what's next? :)
<bog> when I do var = 42, the value of var is 42, and the value of :var is "var" ?
<Darkwater> they need to pick up my phone for repairs
<apeiros> bog: again, it's not :var
tvl has joined #ruby
<apeiros> var = :value
<apeiros> var = "value"
<apeiros> and yes, with `var = :value`, the value of var is :value
<flughafen> apeiros: ruby developers!
<apeiros> just like with `var = "value"`, the value of var is "value"
<Darkwater> :value.to_s == 'value'
IanVorn has quit [Client Quit]
ndrei has joined #ruby
<apeiros> but repeat with me: symbols are not variables.
IanVorn has joined #ruby
<Darkwater> 'value'.to_sym == :value
tvl is now known as tobiasvl
<bog> ohh ? Symbols are not variables ?
<apeiros> you can't assign a value to a symbol. i.e., `:symbol = "value"` is NOT valid. because symbols are not variables, they're values.
<bog> Symbol are object ?
<apeiros> yes. as I said from the start :-p
<bog> *A symbol is an object ?
Zai00 has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 255 seconds]
<bog> And what is the semantic of this object ?
bruno- has joined #ruby
<Darkwater> 5, 'five', [ 5, 5 ], :five, true, nil
<Darkwater> those are all valies
<apeiros> bog: again, you can treat them like strings at this point
mello has joined #ruby
mello has joined #ruby
<irctc239> why is it when i quit terminal, and reopen it my ruby version is back to 2.0.0 but when before it said 2.2.2
<irctc239> i followed Radars guide
<apeiros> bog: the main difference is that a symbol with the same value will always be an identical object.
<Darkwater> irctc239: did you change your PATH?
<apeiros> >> [:foo.object_id, :foo.object_id]
<ruboto> apeiros # => [417458, 417458] (https://eval.in/378826)
<apeiros> bog: ^ same object
<irctc239> i dont think so? what should it be
<apeiros> >> ["foo".object_id, "foo".object_id]
<ruboto> apeiros # => [552387320, 552387600] (https://eval.in/378828)
krz has joined #ruby
<apeiros> bog: ^ while strings allocate new objects
wald0 has joined #ruby
IanVorn has quit [Client Quit]
<Darkwater> irctc239: did anything else that may change the environment?
<bog> apeiros, in `var = 42`, what :var means ? Does :var allow us to identify the variable var ?
IanVorn has joined #ruby
<Darkwater> iow, what have you done to get to 2.2.2?
<shevy> no bog, :var is not var
<apeiros> bog: in `var = 42`, there IS NO :var
<apeiros> you're still for some reason stuck believing that symbols have something to do with variables. they do not.
IanVorn has quit [Max SendQ exceeded]
<Darkwater> just like var = 42 doesn't do anything to 'var'
<shevy> his brain needs a bit longer :)
<bog> I didn't said that var and :var was equivalent
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
kadoppe has joined #ruby
spider-mario has quit [Remote host closed the connection]
IanVorn has joined #ruby
<shevy> but you wrote :var
<shevy> there was no :var
<Darkwater> >> puts :"hello world"
<ruboto> Darkwater # => hello world ...check link for more (https://eval.in/378832)
<Darkwater> >> puts :"hello"
<ruboto> Darkwater # => hello ...check link for more (https://eval.in/378833)
<Darkwater> >> puts :hello
<ruboto> Darkwater # => hello ...check link for more (https://eval.in/378834)
IanVorn has quit [Max SendQ exceeded]
<irctc239> when i run "source /usr/local/share/chruby/chruby.sh & source /usr/local/share/chruby/auto.sh & . ~/.bashrc" everything works
<shevy> the output of ruboto confuses me more than eval-in did
<bog> What does `var = :var2` ?
<ljarvis> irctc239: you need to add that to your .bashrc or .zshrc, then (so it's executed every time your shell starts)
<sevenseacat> irctc239: adding those lines to your .bashrc was part of the directions.
<apeiros> bog: what do you think it does?
bruno- has quit [Ping timeout: 245 seconds]
<shevy> bog you assign the symbol :var2 to a variable called var
<bog> For me var is "pointing" to var2 or something like that
chussenot has joined #ruby
<shevy> it's just normal assignment; var is now a symbol
mello has quit [Ping timeout: 264 seconds]
<shevy> >> var = :foobar; var.class
<ruboto> shevy # => Symbol (https://eval.in/378836)
<apeiros> > bog: For me var is "pointing" to var2 or something like that
<apeiros> bog: but there is no `var2` in your code. there's `:var2`
<shevy> hehe
<apeiros> bog: var2 IS NOT the same as :var2
<irctc239> where does it say
<shevy> his brain drops the : automatically :)
<apeiros> they are fundamentally different
ki0 has joined #ruby
<apeiros> bog: just like `var` and `"var"` are fundamentally different.
<bog> :var2 is not an object that is designating the variable var2 ?
<shevy> of course not
<apeiros> bog: NO
<sevenseacat> irctc239: "After this has been installed, we'll need to load chruby automatically, which we can do by adding these lines to ~/.bashrc:"
<apeiros> and I think we said that often enough now.
<shevy> remember, you can give your variables any name bog
<ljarvis> loud words start
<shevy> the ruby parser does not care about the names
<sevenseacat> irctc239: please read the guide barefully.
<sevenseacat> *carefully
mikecmpbll has joined #ruby
<shevy> symbols will always have the same object_id bog
<sevenseacat> and don't skip parts
<ljarvis> barefully :D
<ljarvis> FULLY BARE
<shevy> var = 'var' <--- always creates a new String object, with another object_id
<irctc239> i try to "~/.bashrc" but it says permission denied
serivich has joined #ruby
<bog> apeiros, So I didn't understand the semantic of the :
<apeiros> bog: do you understand the semantic of ""?
<sevenseacat> irctc239: what? it's a file. open it. edit it.
<bog> apeiros, Yes, the content of "" is a string
fella5s has joined #ruby
<apeiros> bog: good. same thing with :
<irctc239> how can i open it, isnt it hidden?
<apeiros> content after : is a symbol
<sevenseacat> use your terminal, just like you did with .ruby-version
<bog> apeiros, So why : exists if we have "" ?
<shevy> irctc239 you can open hidden files too
<apeiros> bog: because they have different characteristics
<apeiros> bog: regarding performance and memory. :foo only exists once. "foo" can exist as many times as it wants.
<bog> and what are those characteristics ?
<bog> ah !
<shevy> bog ruby uses symbols because they are always the same and thus will be faster to check
<shevy> >> :foo.object_id
<ruboto> shevy # => 417458 (https://eval.in/378839)
<shevy> >> "foo".object_id.to_s+' versus '+"foo".object_id.to_s
<ruboto> shevy # => "549800380 versus 549803950" (https://eval.in/378840)
<shevy> see bog
remendo has quit [Quit: Page closed]
ur5us has quit [Remote host closed the connection]
granthatcher has joined #ruby
<bog> So, there isn't semantic links between var and :var ?
<apeiros> bog: really?
<sevenseacat> for about the hundredth time...
<apeiros> bog: read the backlog. we've told you five times at least already.
blue_deref has quit [Quit: bbn]
chinmay_dd has quit [Remote host closed the connection]
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
<bog> Sorry but I am a completly begginer with ruby, and english is not my mother tongue. I really thought that there were a link between var and :var
chinmay_dd has joined #ruby
<bog> thank you for your patience ^^
<irctc239> so i added the the source lines.
DEA7TH has quit [Ping timeout: 250 seconds]
ferr1 has quit [Quit: WeeChat 1.2]
dhjondoh has quit [Quit: dhjondoh]
ferr has joined #ruby
dhjondoh has joined #ruby
commondream has quit [Ping timeout: 258 seconds]
unshadow has quit [Ping timeout: 265 seconds]
DEA7TH has joined #ruby
<irctc239> i addded it to the file and still now working
ki0 has quit [Remote host closed the connection]
unshadow has joined #ruby
olistik has joined #ruby
speakingcode has joined #ruby
lsmola has quit [Quit: Leaving]
jmhmccr has quit [Quit: Connection closed for inactivity]
<bog> So apeiros, :var is a symbole, ie a sort of string which is a kind of unique id ?
axl_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<apeiros> symbol. not symbole.
dede has joined #ruby
<apeiros> it is a number. which has a string "label" attached to it. the string label is what you use in code when you write :foo.
Xeago has quit [Remote host closed the connection]
<apeiros> and the label is what you, as a programmer, are concerned about.
<apeiros> you use it to identify things.
dieAntwoordK has joined #ruby
Xeago has joined #ruby
CamonZ has joined #ruby
<bog> apeiros, I see !
Palmer11 has joined #ruby
<Sp4rKy> Hi, I'm trying to use net-dns2
<bog> in `render plain: params[:article].inspect`, does `plain:` is a ruby object ? (Or does it below to rails ?)
speakingcode has quit [Ping timeout: 252 seconds]
<Sp4rKy> but : require 'net-dns2' ; but I get NameError: uninitialized constant Net::Dns
<Sp4rKy> -but
<apeiros> bog: `plain: "value"` is an alternative way to write `:plain => "value"`
<apeiros> i.e., plain: is the symbol :plain
Xeago_ has joined #ruby
dieAntwoordK has quit [Client Quit]
llafodog_sh has joined #ruby
lsmola has joined #ruby
ratazzi has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
marr has joined #ruby
DEA7TH has quit [Ping timeout: 265 seconds]
<bog> apeiros, so plain: is also a symbol ?
<Sp4rKy> rhaa ... this is Net::DNS , not Dns
<apeiros> bog: isn't that what I just said?
sandstrom has quit [Quit: OS X IRC Client (www.textualapp.com)]
<apeiros> yes. it is.
tubuliferous_ has joined #ruby
<bog> apeiros, if plain: "value"` is an alternative way to write `:plain => "value"`{, and if plain: is a symbol, so `:plain => "value"` is also a symbol since it is juste a rewriting, no ?
CloCkWeRX has joined #ruby
<apeiros> bog: I don't follow. :plain is a symbol, yes. we've established that already.
speakingcode has joined #ruby
<ljarvis> hmm, have we though?
lkba has joined #ruby
banister has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<bog> apeiros, the expression `{:plain => "value"} ` is a symbol ?
joonty has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
RegulationD has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
<shevy> haha
lkba_ has quit [Ping timeout: 246 seconds]
<shevy> he does not want to accept it!
<shevy> bog leading : means symbol
<shevy> in your hash example, the key you use is a symbol
<shevy> it is associated with a string object
serivichi has joined #ruby
<shevy> you can also use the new syntax by the way
<shevy> { plain: "value" }
<bog> apeiros, If want to be sure of what I understand !
<shevy> >> { plain: "value" }
<ruboto> shevy # => {:plain=>"value"} (https://eval.in/378851)
<shevy> curiously enough, ruby translates this into the main syntax
timonv has joined #ruby
attlasbot has joined #ruby
starfox_sf has joined #ruby
<shevy> the first is shorter to type, which is why it is cool
serivich has quit [Ping timeout: 258 seconds]
<Darkwater> and looks like json, yay!
<Darkwater> one of the good things javascript brought us
<shevy> hmm
jamesbrink has quit []
dmolina has joined #ruby
ki0 has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
<bog> Ok, thank you shevy, Darkwater and apeiros !
<shevy> you now have understood symbols!
<shevy> keep in mind the most important thing about them - they are boring
<Darkwater> shevy: are you sure
<shevy> Darkwater ruby drops :(
agent_white has joined #ruby
<Darkwater> bog: foo = :bar
platzhirsch has joined #ruby
<shevy> though not on other charts
<Darkwater> what will `puts foo` tell us
<shevy> oh, a quiz for bog
<Darkwater> this is your final exam
<shevy> haha
<agent_white> It puts the foo on the skin...
<shevy> is he allowed to google?
<Darkwater> for all I care about he can execute it
edwinvdgraaf has joined #ruby
<shevy> I just realized... Swift language does not require terminating ;
<shevy> unlike Objective C I think
<bog> Darkwater, I don't know : maybe ruby would just return :bar
<bog> It would assign to foo the symbols :bar
starfox_sf has quit [Ping timeout: 272 seconds]
* Darkwater moves hand near head-.. and quickly back towards keyboard
<Darkwater> good job!
<apeiros> > bog: apeiros, the expression `{:plain => "value"} ` is a symbol ?
gambl0re has quit [Read error: Connection reset by peer]
<apeiros> bog: no. the whole expression is not a symbol.
<bog> apeiros, it isn't
<apeiros> bog: the `:plain` in it is a symbol
rubie has joined #ruby
<bog> it is a hash or something like that
<apeiros> the whole expression is a hash.
<shevy> \o/
<shevy> bog is now an expert apeiros
<shevy> he understands Hashes; he understands Symbols
<Darkwater> now, one more thing: (afaik) you can put anything you like in a symbol
<Darkwater> :"this is still a symbol"
<flughafen> but does he understand hash symbols?
khebbie has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> oh oh oh bog did you see this, he has a symbol with ' ' inside
khebbie has joined #ruby
<shevy> flughafen take off from Berlin first before you look at other people's problems!
<apeiros> Darkwater: only valid utf-8
<Darkwater> :"asdf!@#$'\"\\"
<Darkwater> >> :"asdf!@#$'\"\\"
<ruboto> Darkwater # => :"asdf!@\"\\" (https://eval.in/378854)
<shevy> oh use the snowman unicode character as symbol
<apeiros> lets see how eval.in crashes…
<apeiros> >> :"\xc0"
<ruboto> apeiros # => /tmp/execpad-6471ce3e64fa/source-6471ce3e64fa: invalid encoding symbol (EncodingError) (https://eval.in/378855)
<Darkwater> >> :"☃"
bin_005 has joined #ruby
<shevy> huh
<ruboto> Darkwater # => :☃ (https://eval.in/378856)
<shevy> that works here for me
<shevy> :À
AnoHito has quit [Ping timeout: 265 seconds]
<ddv> is that dog poo?
<Darkwater> weather = :☃
codecop_ has quit [Remote host closed the connection]
<shevy> it looks like some strange A with a tilde
<ljarvis> it's a snowman..
<shevy> really?
<bog> I think symbols can be used a little bit like enum in c++ or java
<shevy> yes bog!
<apeiros> bog: to an extent. there's no test for inclusion in the enum.
irctc239 has quit [Quit: Page closed]
AnoHito has joined #ruby
chris-sonar has quit [Quit: Connection closed for inactivity]
attlasbot has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
<bog> apeiros, what is a test for inclusion ?
Xeago has quit [Remote host closed the connection]
plashchynski has joined #ruby
<apeiros> C will complain if you try to use a value which is not part of the enum
hefest has joined #ruby
irctc621 has joined #ruby
<hefest> Base64.decode64(base64string) returning different values with ruby 1.9.3 and 2.0.0
<irctc621> so when i add "source /usr/local/share/chruby/chruby.sh & source /usr/local/share/chruby/auto.sh" to ~/.bashrc it does work when i load up terminal
<bog> apeiros, I understand now, ty !
<ljarvis> irctc621: great
<apeiros> hefest: example?
Pathfinder has quit [Remote host closed the connection]
Xeago has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
<irctc621> how can i do it?
<ljarvis> irctc621: do what?
<ljarvis> you just said it does work
platzhirsch has left #ruby [#ruby]
<irctc621> i think you misread what i wrote
<ljarvis> I don't think I did
<ljarvis> I think you misread what you wrote
<irctc621> but its not working
<hefest> apeiros: try Base64.decode64('NDMxMzc').strip()
<hefest> apeiros: it's returning 3 digits number on 1.9.3 and 5 on 2.0.0
<ljarvis> irctc621: try and add the lines to ~/.bash_profile and see if that works
<irctc621> kk
BTRE has quit [Ping timeout: 250 seconds]
<irctc621> thanks
terlar has quit [Quit: WeeChat 1.2]
hmnhf has joined #ruby
<hefest> apeiros: sorry, it's 1.9.3 and 2.0.0 vs 2.2.0 , on first two it's returning 3 digits number and on 2.2.0 it's returning 5
lavros has joined #ruby
MasterPiece has joined #ruby
<apeiros> 19>> require 'base64'; Base64.decode64('NDMxMzc')
<ruboto> apeiros # => "431" (https://eval.in/378886)
irctc621 has quit [Ping timeout: 246 seconds]
<apeiros> >> require 'base64'; Base64.decode64('NDMxMzc')
<ruboto> apeiros # => "43137" (https://eval.in/378888)
<apeiros> >> require 'base64'; Base64.encode64("43137")
<ruboto> apeiros # => "NDMxMzc=\n" (https://eval.in/378889)
<apeiros> hefest: your input is invalid
<apeiros> the trailing = is afaik not optional.
<apeiros> (the newline is)
terlar has joined #ruby
<hefest> apeiros: hm damn, is trailing = appearing in every base64 encoded string?
<apeiros> hefest: no
<adaedra> it's for padding
<apeiros> ^
<adaedra> there can be (0..2) =
<hefest> the thing is i'm decoding base64 from the url, and that can't be changed because im breaking backward compatibility
<hefest> what would be the way to detect if = is missing and how many of them?
<apeiros> hefest: base64 encoded data is always 4*n bytes long
auzty has quit [Quit: Leaving]
<apeiros> so if your data's size does not divide by 4, you're lacking =. not sure whether you can simply pad with ='s, though.
<hefest> apeiros: oh ok, ruby 2.2.0 is obviously handling that. i might just upgrade to 2.2.0
<apeiros> 19>> require 'base64'; 'NDMxMzc'.unpack("m").first
<ruboto> apeiros # => "431" (https://eval.in/378892)
<apeiros> mhm, unpack fails already. backporting that would be problematic
BTRE has joined #ruby
<apeiros> interesting, urlsafe_decode64 even complains about it being invalid base64
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
<apeiros> 19>> require 'base64'; 'NDMxMzc'.unpack("m0").first
<ruboto> apeiros # => invalid base64 (ArgumentError) ...check link for more (https://eval.in/378893)
<apeiros> heh
stan has joined #ruby
<apeiros> so unpack("m") is fault tolerant, and recovery changed from 1.9 to 2.2
<apeiros> m0 is strict and will raise
<apeiros> yeah, I think upgrading to 2.2 is your best bet.
alex88 has joined #ruby
irctc697 has joined #ruby
pikos has joined #ruby
<irctc697> i follwed radars guide for chruby and ruby rails, but when i do a rails command i get "-bash: /usr/local/bin/rails: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory"
terlar has quit [Ping timeout: 276 seconds]
<maloik> is this the very first time using chruby, right after installing? if so, try restarting terminal
<irctc697> ive tried that
banister has quit [Ping timeout: 256 seconds]
<jhass> mh, link to the guide?
platzhirsch has joined #ruby
startupality has joined #ruby
<jhass> ruby -v prints 2.2.2?
llafodog_sh has left #ruby ["Leaving"]
<irctc697> yes
<jhass> you did gem install rails not sudo gem install rails ?
<irctc697> i did gem
<irctc697> no sudo
<irctc697> but maybe in the past i did sudo
<ddv> lol
<irctc697> how can i fix it haha
<jhass> type -a rails prints what?
hakunin has quit [Remote host closed the connection]
<jhass> weird, why does it order /usr/local first in your path
<jhass> anyway, I'd say try sudo gem uninstall rails
pikos has quit []
<irctc697> when i do that is there supposed to have some output?
<jhass> sometimes, sometimes not
<jhass> does /usr/local/bin/rails still exist?
<irctc697> okay i did it
<irctc697> yeah it does
Guest41768 has quit [Ping timeout: 272 seconds]
<jhass> sudo rm it
<irctc697> whats the full command?
<jhass> sudo rm /usr/local/bin/rails
<irctc697> do i do it 3 times? since its there 3 times
multi_io has quit [Ping timeout: 256 seconds]
<jhass> no
plashchynski has quit [Quit: plashchynski]
bruno- has joined #ruby
<irctc697> thank you for the help works now
multi_io has joined #ruby
Soda has quit [Remote host closed the connection]
hectortrope has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
rbowlby__ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
pikos has joined #ruby
lavros_ has joined #ruby
pikos has quit [Client Quit]
pikos has joined #ruby
lavros has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 256 seconds]
pikos has quit [Client Quit]
jds has joined #ruby
pikos has joined #ruby
axl_ has quit [Remote host closed the connection]
weemsledeux has joined #ruby
Guest34113 has joined #ruby
pikos has quit [Remote host closed the connection]
pikos has joined #ruby
<Guest34113> vBulletin vbShout for versions 5.x download the attachment without signning up! http://bit.ly/1FIwtND - More vBulletin products/plugins for any version will be added in due course.
<Guest34113> vBulletin vbShout for versions 5.x download the attachment without signning up! http://bit.ly/1FIwtND - More vBulletin products/plugins for any version will be added in due course.
Guest34113 has quit []
<irctc697> i get this when i run "bundle" : -bash: /usr/local/bin/bundle: No such file or directory
<jhass> irctc697: same procedure, sudo gem uninstall bundler; sudo rm /usr/local/bin/bundle; gem install bundler
serivichi has quit [Ping timeout: 265 seconds]
Xeago has quit [Read error: Connection reset by peer]
<hefest> apeiros: ugly hack, but it works for now: base64string = base64string + "="*(4 - ( base64string.length % 4 ))
pikos has quit [Client Quit]
pikos has joined #ruby
<SebastianThorn> any cool (or uncool) way of echoing the max amount of memory my program every used, before exiting it?
<SebastianThorn> ruby usally has cool ways of doing things :)
serivich has joined #ruby
Xeago has joined #ruby
irctc697 has quit [Ping timeout: 246 seconds]
Zai00 has quit [Quit: Zai00]
<Sp4rKy> but can't find a "simple" way for this
revath has joined #ruby
<jhass> Sp4rKy: Hash.merge with a block
<Sp4rKy> mhh
<jhass> mmh, actually nope
Zai00 has joined #ruby
<jhass> so you have a composed key of :a and :name over which you want to aggregate value?
<Sp4rKy> yep, exactly :)
<Sp4rKy> wasn't sure how to explain it, but that's it :)
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> I think you should probably build an intermediate hash keyed by :name or whatever you want to uniq by
<apeiros> hefest: that'll append 4 '=' on a correct length string
<apeiros> you need an additional %4
<apeiros> str.ljust(str.size + (4-str.size%4)%4, '=')
withnale_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
<bnagy> Sp4rKy: so build {:bar => { :a => "foo", :name => "bar", :value => "1.2.3.4" }} and then next time when the working has already has :bar << the :value instead of creating a new entry
<bnagy> *working hash
<Sp4rKy> bnagy: yep, I'll do it :)
_joes_ has joined #ruby
<apeiros> Sp4rKy: you should consider :value being always an array
<bnagy> you could make it shorter by using the block constructor to Hash, but at the risk of making it too clever and annoying to read
pikos has left #ruby ["..."]
<apeiros> otherwise I bet you'll end up with tons of additional branching logic to deal with "might be an array, might not be an array"
<bnagy> this is a good point
<bnagy> but if it's a specified json format or something then maybe can't :<
Zai00 has quit [Client Quit]
<apeiros> yes. there's tons of braindead specs like that
<apeiros> I'd love to hit the authors of those with a stick. or maybe a brick…
Zai00 has joined #ruby
edwinvdg_ has joined #ruby
<jhass> .group_by {|hash| [hash[:a], hash[:name]] }.map {|(a, name), hashes| hashes.each_with_object({a: a, name: name, value: []}) {|hash, res| res[:value] << hash[:value] } }
<jhass> meh
<bougyman> that's absolutely horrid
<adaedra> o_O
<jhass> eh, right, should just map out the value
<jhass> .group_by {|hash| [hash[:a], hash[:name]] }.map {|(a, name), hashes| {a: a, name: name, value: hashes.map {|hash| hash[:value] }} }
edwinvdgraaf has quit [Ping timeout: 265 seconds]
MasterPiece has quit [Quit: Leaving]
rubie has joined #ruby
arup_r has joined #ruby
msnyon has joined #ruby
ringarin has joined #ruby
x0f has quit [Ping timeout: 272 seconds]
<bougyman> [6] pry(main)> hs.group_by {|hash| [hash[:a], hash[:name]] }.map {|(a, name), hashes| {a: a, name: name, value: hashes.map {|hash| hash[:value] }} }
<bougyman> => [{:a=>"foo", :name=>"bar", :value=>[["1.2.3.4", "1.2.3.6"], "1.2.3.6"]}, {:a=>"foo", :name=>"bar2", :value=>[["1.2.3.5"]]}]
<bougyman> not sure that's what he's looking for.
rubie has quit [Ping timeout: 265 seconds]
olistik has quit [Remote host closed the connection]
<jhass> wat, how did you manage to make it nested arrays
<bougyman> i just ran your line of code.
<bougyman> hs is his array of 3 hashes.
<bougyman> [5] pry(main)> hs.inject([]) { |a, e| if existing = a.detect { |i| i[:name] == e[:name] }; existing[:value] << e[:value]; a; else; e[:value] = Array(e[:value]); a << e;end }
<bougyman> => [{:a=>"foo", :name=>"bar", :value=>["1.2.3.4", "1.2.3.6"]}, {:a=>"foo", :name=>"bar2", :value=>["1.2.3.5"]}]
<bougyman> works with a longhand inject.
duncannz has quit [Ping timeout: 245 seconds]
<jhass> yours is missing the compound key
<bougyman> ah yes, i'd modified hs.
dgutierrez1287 has joined #ruby
<bougyman> missing what key?
CustosLimen has quit [Ping timeout: 256 seconds]
<Sp4rKy> apeiros: bnagy I finally changed my structure to { :a => { :name => [values] }}
<bougyman> they both produce the same result now, here.
mello has joined #ruby
<jhass> bougyman: for the example input, I asked them whether :a and :name is a compound key and they said yes
<bougyman> ah, gotcha
<bougyman> the group_by is better.
x0f has joined #ruby
<bougyman> computationally, anyway.
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kies has quit [Quit: baaaaiiiiiiiiiii~]
<jhass> Sp4rKy: wat, where's "foo" stored now
<glcx> heya, does know a ruby method to reduce a string length ?
doertedev has joined #ruby
plashchynski has joined #ruby
<jhass> glcx: reduce in what way for what purpose?
<Sp4rKy> jhass: in place of :a
<glcx> like i'm using string like this: "www.some-random-url.com" to create unix user
<glcx> but its limited to 32
<bougyman> this sounds all wrong.
<jhass> Sp4rKy: eh, too much fake data and too less context
<Sp4rKy> well, I now have { "foo" => { "bar" => [ '1.2.3.4','1.2.3.5'] }}
<jhass> glcx: well, what do you expect the output to be?
<bougyman> glcx: use a crc
charliesome has joined #ruby
<jhass> wa
<jhass> wat
<jhass> how is CRC remotely relevant here
mello has quit [Ping timeout: 245 seconds]
<glcx> something like "www.som-rand-url.com" maybe
<glcx> :/
<bougyman> jhass: to guarantee unique usernames.
dgutierrez1287 has quit [Ping timeout: 272 seconds]
<jhass> CRC collides all the time, hundreds of times per seconds inside your machine right now
sevenseacat has joined #ruby
<jhass> it's a checksum, not a hash
lkba_ has joined #ruby
<bougyman> some hashing transform was my point
<bougyman> I'm up way too early to be correct.
<jhass> glcx: you'll need to define clear rules first I'm afraid
coderhs has joined #ruby
<glcx> well the "www." and ".com" must not be edited
jenrzzz has quit [Ping timeout: 264 seconds]
<bougyman> you're gonna keep the dot in the user name?
<glcx> and the middle just need to be understandable
<glcx> yep
<jhass> "looks good" is hard to implement, try to find technical rules
fujimura has quit [Remote host closed the connection]
<glcx> then lets say
lkba has quit [Ping timeout: 265 seconds]
<glcx> it will cut the last 2 letter of a word till its <= 32
<jhass> what happens on collisions?
<jhass> like I have "www.some-random-url.com" and "www.some-random-urlab.com" as input
<jhass> eh well, assuming they would break the limit (which they don't)
<glcx> exemple
<glcx> 39 -> 32
coderhs has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
<adaedra> hi jhass
<jhass> morning
<glcx> or may i should try to look to remove "-" first
<glcx> and see if its reach 32
fgo has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<glcx> it difficult to create technical rules
<glcx> :/
<glcx> +'s
<adaedra> Or you just force names to be up to 32 chars
<glcx> FQDN=>username
<glcx> i wont force fqdn to be up to 32 chars ^'
<adaedra> o_O
CloCkWeRX has quit [Ping timeout: 258 seconds]
<glcx> well nevermind guys
<glcx> i'll think about this
<glcx> i may come later
<glcx> with cleaner ideas
<jhass> glcx: also think if you really need the fqdn as username
<jhass> or can have a db that maps somewhere
Scroff has quit [Remote host closed the connection]
<glcx> db is another problem ^^
CustosLimen has joined #ruby
coderhs has joined #ruby
Scroff has joined #ruby
fgo has quit [Ping timeout: 276 seconds]
ndrei has quit [Ping timeout: 276 seconds]
serivichi has joined #ruby
ndrei has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
serivich has quit [Ping timeout: 265 seconds]
commondream has joined #ruby
Xeago has quit [Remote host closed the connection]
dionysus69 has joined #ruby
datanoise has joined #ruby
araujo__ has quit [Quit: Leaving]
coderhs has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
tubuliferous_ has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
bayed has joined #ruby
commondream has quit [Ping timeout: 258 seconds]
penzur has quit [Quit: leaving]
<glcx> ok
<glcx> now i've something
<glcx> 1 letter is removed till it reach 32 chars
datanoise has quit [Ping timeout: 245 seconds]
<glcx> 1 letter per word separated by "-" subdomain & extension wont be edited
ndrei has quit [Ping timeout: 252 seconds]
pikos has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
axl__ has joined #ruby
axl_ has joined #ruby
<jhass> run the algo on www.some-very-very-huge-urls-sadface.com please
RegulationD has joined #ruby
CloCkWeRX has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
<glcx> what do you mean ?
<jhass> do it
<jhass> notice the s I added to url
<glcx> oh
intinig has joined #ruby
marr has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
coderhs has joined #ruby
polysics has quit [Remote host closed the connection]
adefa has joined #ruby
ebarrett has joined #ruby
<ebarrett> howdy, is there a way to get the monotonic system time in ruby?
RegulationD has quit [Ping timeout: 255 seconds]
<jhass> ebarrett: not portable, but yes, see Process.clock_gettime
<ebarrett> jhass: perfect!
<ebarrett> it only needs to run on linux for now :)
stoogenmeyer_ has joined #ruby
<jhass> ebarrett: good, there it works :D
<glcx> i need to go i'll be back in 1-2 hours :/
<jhass> glcx: notice how it's the same result for a different input? is that what you want?
<glcx> oh nice
scripore has joined #ruby
<glcx> well that a nice point
<glcx> but it wont probably happend
stoogenmeyer__ has quit [Ping timeout: 252 seconds]
<glcx> i can't find a way it could be perfect
<ebarrett> jhass: so ruby is one of the few vms that actually lets me get at the C clock_gettime() implementation!
tkuchiki has quit [Ping timeout: 245 seconds]
<ebarrett> nice to to have to extend the interpreter or use an FFI :)
<jhass> glcx: which might be a good indicator for that the whole idea is, well, flawed ;)
<ebarrett> to *not* have to
chinmay_dd has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 265 seconds]
adefa has quit [Ping timeout: 246 seconds]
<glcx> this kind of error could be solved by a simple "unless username != something"
<jhass> glcx: you should at least have a plan on what happens when a collision does happen
<glcx> its something easy to check
<glcx> in this case
<glcx> well i'm out
<glcx> see you later maybe
<glcx> and thanks
k3asd` has joined #ruby
sandelius has joined #ruby
coderhs has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pikos has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
Scroff has quit [Remote host closed the connection]
minmax has quit [Quit: WeeChat 0.4.3]
ki0 has quit [Remote host closed the connection]
bin_005 has quit [Ping timeout: 258 seconds]
Scroff has joined #ruby
chussenot has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
coderhs has quit [Ping timeout: 276 seconds]
kedare has joined #ruby
segfalt has joined #ruby
datanoise has joined #ruby
charliesome has quit [Quit: zzz]
datanoise has quit [Client Quit]
pikos has joined #ruby
whomai has joined #ruby
ki0 has joined #ruby
coderhs has joined #ruby
rodfersou has joined #ruby
rodfersou has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
j4cknewt has quit [Remote host closed the connection]
thelastinuit has joined #ruby
kerunaru has joined #ruby
yfeldblu_ has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
charliesome has joined #ruby
CustosLimen has quit [Ping timeout: 258 seconds]
coderhs has quit [Ping timeout: 252 seconds]
kerunaru has quit [Client Quit]
C1V0 has joined #ruby
kerunaru has joined #ruby
pikos has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
wprice has quit [Quit: wprice]
Xeago has joined #ruby
mc_fail has joined #ruby
coderhs has joined #ruby
<mc_fail> hi guys
<mc_fail> i have ruby broken again, gem fails with error /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:128:in `require': No such file or directory - /home/plab/.gem/ruby/extensions/x86_64-cygwin/psych-2.0.13/psych.so (LoadError)
<mc_fail> and it is actually strange, because this file exists
<mc_fail> -rwx---r-x 1 plab plab 607141 Mar 23 19:42 /home/plab/.gem/ruby/extensions/x86_64-cygwin/psych-2.0.13/psych.so
<mc_fail> so, what is wrong with ruby again?
claw_ has quit [Quit: claw_]
pikos has joined #ruby
barkerd427 is now known as zz_barkerd427
jenrzzz has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cmisenas has joined #ruby
jackjackdripper has joined #ruby
claw has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
justintv90 has quit [Remote host closed the connection]
jackjackdripper has quit [Client Quit]
yasu has joined #ruby
weemsledeux has joined #ruby
<jhass> maybe it's actually incompatible with your architecture? *shrug*
kedare has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
kerunaru has joined #ruby
<mc_fail> jhass it was compatible a few hours ago
Fooster has joined #ruby
<mc_fail> may be i can turn more dabug somehow?
<jhass> on windows? no idea
<sevenseacat> well what did you do in the last few hours?
<mc_fail> sevenseacat i've only installed nc and updated some system libraries
<sevenseacat> and you updated something that broke ruby
jenrzzz has quit [Ping timeout: 272 seconds]
yoongkang has quit [Remote host closed the connection]
<mc_fail> sevenseacat as usial with ruby
pikos has quit [Quit: ...]
<sevenseacat> no.
yoongkang has joined #ruby
<mc_fail> but how to find what exactly broke it?
<sevenseacat> look at the list of things you upgraded.
ki0 has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 258 seconds]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<mc_fail> sevenseacat and if i don't have it
<sevenseacat> you do.
<sevenseacat> it'll be recoded somewhere.
<sevenseacat> recorded
CustosLimen has joined #ruby
<jhass> does ldd work in cygwin?
<mc_fail> sevenseacat no, i don't, cygwin rewritiong log on every installer run, i've started it again after libraries update
<mc_fail> jhass yes, it is
<adaedra> you can try reinstalling pry
<mc_fail> *it does
<sevenseacat> then even more lol cygwin
<adaedra> er
<adaedra> ruby
<sevenseacat> dont blame ruby for cygwin's fuckups
<jhass> mc_fail: reports anything missing on the .so?
<adaedra> why is it in .gem even o_O
moshee has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
<mc_fail> jhass hmm, seems like yes
<mc_fail> ??? => ??? (0x50eed0000)
<mc_fail> ??? => ??? (0x180040000)
c355E3B has joined #ruby
codecop has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
edwinvdg_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
<jhass> oh great it even lost what it was linked to?
<jhass> hf
BTRE has quit [Quit: Leaving]
scripore has quit [Quit: This computer has gone to sleep]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
plashchynski has quit [Quit: plashchynski]
scripore has joined #ruby
BTRE has joined #ruby
<mc_fail> jhass does it possible to find somehow where it was linked to
Musashi007 has quit [Quit: Musashi007]
<jhass> that was the possibility
plashchynski has joined #ruby
<jhass> the first set of ??? would've told it
ndrei has joined #ruby
masmus_id has joined #ruby
<mc_fail> jhass i don't get wjat you mean
<masmus_id> piye
ki0 has joined #ruby
<jhass> masmus_id: well, look at the non missing entries ldd prints
mdw has quit [Ping timeout: 265 seconds]
<jhass> bah, mc_fail ^ sorry masmus_id
<masmus_id> jhass: sorry, i'm newbie
<jhass> masmus_id: and did nothing wrong ;)
<mc_fail> jhass what i'm expecting to se there http://pastebin.com/9wPaAJmz
<ruboto> mc_fail, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1aff209618a678823db1
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<masmus_id> I am new in ruby programming , what should I learn
<jhass> mc_fail: idk, a link to libyaml and libruby I'd assume
<jhass> masmus_id: what did you learn so far?
Scroff has quit [Remote host closed the connection]
<agent_white> That life is pointless! Born to die!
fgo has joined #ruby
<jhass> mc_fail: http://paste.mrzyx.de/pza9gmqmn no ???
<agent_white> To might as well... code some ruby :D
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
ylla has quit [Ping timeout: 256 seconds]
<mc_fail> jhass don't sure it is the same on cygwin
anisha has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Client Quit]
stamina has joined #ruby
<jhass> mc_fail: ldd uses ??? to indicate a missing library, which goes well together with the No such file or directory errno you're getting
<ddv> his name is mc_fail what do you expect
<arup_r> hahaha
<arup_r> ddv: is a Sir!
<ddv> Sir. ddv
<ddv> sounds great
<arup_r> ok.. Sir. ddv
<ddv> sirup_r
sarkyniin has joined #ruby
Scroff has joined #ruby
phutchins has joined #ruby
<arup_r> cool..
meph has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 244 seconds]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
uri_ has joined #ruby
Scroff has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
k3asd` has quit [Ping timeout: 264 seconds]
C1V0 has quit []
Scroff has joined #ruby
A205B064 has quit [Ping timeout: 264 seconds]
premera has joined #ruby
<Diabolik> if anyone is around
<Diabolik> can someone help me fix this?
ur5us has quit [Remote host closed the connection]
crdpink2 has joined #ruby
ItSANgo has joined #ruby
<sevenseacat> fix what?
<sevenseacat> are you doing interviews again?
olistik has joined #ruby
crdpink has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
lessless has joined #ruby
<agent_white> I need a new jawb :(
<agent_white> sevenseacat: How goes R4iA? :)
rushed has joined #ruby
<sevenseacat> getting there.... just proofreading ch08 as we speak
<agent_white> :) Awesome! I had a dream the other night I had it in my hands and was telling a friend about it.
<agent_white> I have some weird ass dreams.
<sevenseacat> sooooon
bog has quit [Quit: Quitte]
<noethics> am i the first person to think of web dependencies as trees
<ddv> noethics: yes
startupality has joined #ruby
<ddv> :/
<noethics> i mean really is that common knowledge
mello has joined #ruby
mello has joined #ruby
<noethics> or did i just like have a eureka
CloCkWeRX has joined #ruby
<jhass> "web dependencies"
<jhass> what's that even
<ddv> :)
ndrei has quit [Ping timeout: 255 seconds]
<noethics> any dependencies, but specifically like stylesheets or js scripts dependent on eachother
<jhass> that's a graph
<noethics> no
<noethics> it can be
<noethics> it's simpler as a tree though
<jhass> can have two that don't make sense without each other
dopie has joined #ruby
<jhass> can't have a tree where the child depends on the parent
<noethics> ?
<noethics> that's exactly what it is
<noethics> i know what a graph is
<noethics> i literally was writing down StyleGraph
<noethics> then im like w8888
<noethics> this is a tree
DexterLB has joined #ruby
ndrei has joined #ruby
masmus_id has quit [Quit: Leaving]
<noethics> there can be duplicate nodes on different branches
<noethics> but you can access the whole dependency chain by just picking the node then grabbing the whole branch
but3k4 has joined #ruby
mello has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
AlphaAtom has quit [Max SendQ exceeded]
Xeago has joined #ruby
AlphaAtom has joined #ruby
krisquigley has quit [Remote host closed the connection]
Musashi007 has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
gaboesquivel has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
AlphaAtom has quit [Max SendQ exceeded]
jcaho has joined #ruby
AlphaAtom has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
wpp has joined #ruby
Musashi007 has quit [Client Quit]
wpp has quit [Client Quit]
ndrei has joined #ruby
zack6849 has quit [Remote host closed the connection]
bMalum has joined #ruby
k3asd` has joined #ruby
atomical has joined #ruby
zz_barkerd427 is now known as barkerd427
lxsameer has quit [Quit: Leaving]
Endretoft has joined #ruby
bMalum has quit [Client Quit]
senayar has joined #ruby
Endretoft has left #ruby [#ruby]
walterheck has joined #ruby
ajax0xd9 has joined #ruby
<walterheck> ola, I have a server that doesn't have internet access and I want to install a gem from my own gem repo. How do I stop gem install from trying to reach http://rubygems.org anyway?
luluapple has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
<walterheck> I tried gem install --source http://blah.it.mgt/gems/ r10k
sdothum has joined #ruby
anisha has quit [Ping timeout: 264 seconds]
rikkipitt has joined #ruby
ahmetkapikiran has joined #ruby
psyprus has quit [Ping timeout: 248 seconds]
psyprus has joined #ruby
Xeago has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
<ajax0xd9> is your gem repo offlline? I'd never tried this but maybe try changing the url that points to the default gem repo.
zack6849 has joined #ruby
zack6849 has joined #ruby
Jandre has joined #ruby
Jandre is now known as Guest19049
RegulationD has joined #ruby
jmignault has joined #ruby
gianlucadv has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
plashchynski has quit [Quit: plashchynski]
ldnunes has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
jhooker has joined #ruby
anisha has joined #ruby
bMalum has joined #ruby
tedstriker has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
plashchynski has joined #ruby
terlar has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
tvw has quit [Remote host closed the connection]
MarkMhn has joined #ruby
MarkMhn has quit [Max SendQ exceeded]
davidhq has joined #ruby
rikkipitt has quit [Quit: Leaving...]
MarkMhn has joined #ruby
<glcx> jhass, what ruby method could help me reach my goal ?
<jhass> glcx: okay, I see I can't convince you that you'll run into too many conflicts
davidhq has quit [Ping timeout: 246 seconds]
<jhass> glcx: String#[, 1] out the middle part, .split it, .size-32 to get the amount of iterations your need, .cycle that many times and .chop! off
Soda has joined #ruby
[H]unt3r has joined #ruby
<jhass> the reassemble (join, #{})
<jhass> *then
bruno- has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
segfalt has quit [Quit: segfalt]
sgambino has joined #ruby
MarkMhn has quit []
Xeago has joined #ruby
<glcx> if i could choose i would name my username in a different way
<glcx> but meeh ^^
Oxelist has joined #ruby
<glcx> thx for help i wanna build this
Oxelist has quit [Max SendQ exceeded]
<jhass> who's forcing that ridiculous requirement upon you?
rubie has joined #ruby
Oxelist has joined #ruby
diegoviola has joined #ruby
Oxelist has quit [Max SendQ exceeded]
ferfoster has joined #ruby
<glcx> well i'm 'just' a "trainee" so ^^
Oxelist has joined #ruby
treehug88 has joined #ruby
realDAB has joined #ruby
<glcx> its a standard naming so it'll be hard to change the whole
<glcx> since it was hand naming before it was "fine"
<glcx> but im working on automation
rubie has quit [Ping timeout: 265 seconds]
edwinvdgraaf has joined #ruby
decoponio has joined #ruby
bruno- has joined #ruby
caseypatrickdris has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
ItSANgo has quit [Quit: Leaving...]
realDAB has quit [Client Quit]
dgutierrez1287 has quit [Remote host closed the connection]
havenwood has joined #ruby
_joes_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ndrei has quit [Ping timeout: 255 seconds]
melter has joined #ruby
Scrofff has joined #ruby
_joes_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
edwinvdgraaf has joined #ruby
symm- has joined #ruby
_joes_ has quit [Client Quit]
edwinvdg_ has joined #ruby
_joes_ has joined #ruby
jenrzzz has joined #ruby
benlovell has joined #ruby
gianlucadv has quit [Ping timeout: 264 seconds]
Scrofff has quit [Ping timeout: 272 seconds]
Xeago has quit [Read error: Connection reset by peer]
caseypatrickdris has quit [Remote host closed the connection]
Xeago has joined #ruby
Scroff has joined #ruby
jmignault has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
tedstriker has quit [Ping timeout: 252 seconds]
edwinvdg_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
CamonZ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
bmurt has joined #ruby
autrilla has quit [Quit: Connection closed for inactivity]
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24_ has quit [Remote host closed the connection]
ferfoster has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
Guest19049 has quit [Quit: Lost terminal]
yoongkang has quit [Remote host closed the connection]
pikos has joined #ruby
senayar has quit [Remote host closed the connection]
gianlucadv has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
hoov has joined #ruby
<izzol> Anyone is using resque-scheduler ?
<maloik> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
chinmay_dd has joined #ruby
griffindy has joined #ruby
arup_r has joined #ruby
poguez_ has joined #ruby
dblessing has joined #ruby
<izzol> I'm trying to understand how to use it in the correct way. The documentation is not really clear for me. I know how resque is working and I did few tests but now I would like to execute tasks from the queue with some options like, execute it every 1 min or something.
<izzol> So I found rescue-scheduler but it's in default reading the yaml file.
<izzol> But I don't have any yaml file in my code :P
<maloik> the resque (or was it sidekiq) readme has a section on that, but basically, use a cron job for that
<maloik> the whenever gem can help you out
mdz_ has joined #ruby
Oxelist has quit [Ping timeout: 276 seconds]
mrmargolis has joined #ruby
<izzol> hmm, so some sort of cron gem instead of this resque-scheduler ?
chinmay_dd has quit [Ping timeout: 244 seconds]
polysics has joined #ruby
senayar has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
jerius has joined #ruby
Guest69973 has quit [Ping timeout: 256 seconds]
yqt has joined #ruby
hinbody has joined #ruby
ndrei has joined #ruby
stoogenmeyer_ has quit [Ping timeout: 256 seconds]
bigkevmcd has joined #ruby
bMalum has quit [Quit: bMalum]
bronson has joined #ruby
prasselpikachu has quit [Ping timeout: 265 seconds]
stoogenmeyer_ has joined #ruby
bMalum has joined #ruby
bMalum has quit [Client Quit]
Biohazard has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
Biohazard is now known as Guest23257
whomai has quit [Ping timeout: 246 seconds]
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
Miphix has joined #ruby
Oxelist has joined #ruby
kobain has joined #ruby
mary5030 has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
arup_r has quit [Remote host closed the connection]
Oxelist has quit [Max SendQ exceeded]
Scrofff has joined #ruby
zotherstupidguy has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
fgo has joined #ruby
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
umgrosscol has joined #ruby
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
commondream has joined #ruby
caseypatrickdris has joined #ruby
Oxelist has joined #ruby
pyo_ has quit []
Oxelist has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 255 seconds]
malconis has joined #ruby
balazs has quit [Remote host closed the connection]
pepperbreath1 has joined #ruby
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
chinmay_dd has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
Oxelist has joined #ruby
Scroff has quit [Ping timeout: 272 seconds]
Oxelist has quit [Max SendQ exceeded]
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
Oxelist has joined #ruby
endash has joined #ruby
decoponio has quit [Quit: Leaving...]
ferr has quit [Ping timeout: 252 seconds]
Oxelist has quit [Max SendQ exceeded]
startupality_ has joined #ruby
tjbiddle has joined #ruby
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
commondream has quit [Ping timeout: 276 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Oxelist has joined #ruby
Xiti has joined #ruby
Oxelist has quit [Read error: Connection reset by peer]
Oxelist has joined #ruby
startupality has quit [Ping timeout: 246 seconds]
startupality_ is now known as startupality
Oxelist has quit [Max SendQ exceeded]
krisquigley has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Oxelist has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
allcentury has joined #ruby
Xeago has joined #ruby
mister_solo has joined #ruby
veleno has joined #ruby
xxneolithicxx has joined #ruby
arup_r has joined #ruby
<veleno> hi. writing tests with the Minitest framework, what is the suggested way to execute a group of tests all togheter (as in a suite of tests) ?
michaeldeol has joined #ruby
symbol has joined #ruby
mello has joined #ruby
mello has joined #ruby
davidhq has joined #ruby
Xeago has quit [Remote host closed the connection]
coderhs has joined #ruby
hanmac1 has joined #ruby
depesz has joined #ruby
<hanmac1> shevy you may not notice but rwx is growing again!!! i added more code in the samples and the specs ,P
<depesz> hi. I can't find it easily - what is the ruby way of getting system uid/gid of particular user/group?
<depesz> I know I can `id -u user`, but it doesn't look clean
<flughafen> later shevy hanmac1 Radar sevenseacat certainty arup_r Radar apeiros
<adaedra> that double hl
<arup_r> flughafen: why Radar twice ? ;)
<jhass> flughafen: was that mass hl really necessary?
jwaldrip has joined #ruby
<arup_r> jhass: he loves fun... Its ok
<hanmac1> arup_r: this airport is SO big, it does need two Radars ,P
<arup_r> cool
<arup_r> like ut
<adaedra> haha
<arup_r> it**
mello has quit [Ping timeout: 246 seconds]
<shevy> hanmac1 \o/
<chris2> depesz: require 'etc'; Etc.getpwnam('chris').uid
<depesz> chris2: thanks.
<chris2> and getgrnam i think
charliesome has quit [Quit: zzz]
<chris2> yep
<depesz> yeah. i missed "require etc". now i'm all good.
<chris2> :)
someword has joined #ruby
symm- has quit [Quit: Leaving...]
axl___ has joined #ruby
jimms has joined #ruby
davedev24_ has joined #ruby
cmisenas has quit [Quit: cmisenas]
freerobby has joined #ruby
symm- has joined #ruby
diegoviola has quit [Read error: No route to host]
charliesome has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
allomov has quit [Remote host closed the connection]
ndrei has joined #ruby
CustosLimen has quit [Ping timeout: 244 seconds]
ylla has joined #ruby
NeverDie has joined #ruby
balazs has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
symbol has joined #ruby
Oxelist has quit [Ping timeout: 252 seconds]
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
scripore has joined #ruby
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
diego3 has joined #ruby
diego3 is now known as diegoviola
Oxelist has joined #ruby
gianlucadv has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
balazs has quit [Ping timeout: 250 seconds]
duggiefresh has joined #ruby
hmnhf has quit [Quit: Konversation terminated!]
psy_ has quit [Ping timeout: 264 seconds]
barkerd427 is now known as zz_barkerd427
psy_ has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
fusillicode has joined #ruby
CustosLimen has joined #ruby
fusillicode has left #ruby [#ruby]
_ht has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Me dun like you no more.]
banister has joined #ruby
_ht has joined #ruby
micmus has joined #ruby
chinmay_dd has joined #ruby
The_Phoenix has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yoongkang has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
The_Phoenix has quit [Max SendQ exceeded]
edwinvdgraaf has joined #ruby
prasselpikachu has joined #ruby
The_Phoenix has joined #ruby
bruno- has joined #ruby
Xeago has quit [Remote host closed the connection]
orionstein_ is now known as orionstein
kinduff has joined #ruby
_ht has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
chinmay_dd has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
mase-chatter has joined #ruby
RegulationD has joined #ruby
gianlucadv has joined #ruby
adefa has joined #ruby
soosfarm_ has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
jhooker has quit [Read error: Connection reset by peer]
shay- has joined #ruby
jhooker has joined #ruby
Palmer11 has quit [Quit: Palmer11]
whippythellama has joined #ruby
Spami has joined #ruby
<shay-> hi, I have a TCPServer listening on a port, and using .accept to get a socket for each connection (without multiple threads), so if a connection is running, another has to wait. Is is possible to raise an exception instead of letting the second connection wait (without multithreading)?
terlar has joined #ruby
adefa has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
arup_r has quit []
ylla has quit [Ping timeout: 256 seconds]
commondream has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Oxelist_ has joined #ruby
Oxelist_ has quit [Max SendQ exceeded]
zwh has joined #ruby
Oxelist_ has joined #ruby
JDiPierro has joined #ruby
CloCkWeRX1 has joined #ruby
Oxelist_ has quit [Max SendQ exceeded]
zwh has quit [Quit: Ex-Chat]
Oxelist has quit [Read error: Connection reset by peer]
carpet_the_walls has joined #ruby
<carpet_the_walls> hello
Oxelist has joined #ruby
Oxelist has quit [Max SendQ exceeded]
jpfuentes2 has joined #ruby
plashchynski has quit [Quit: plashchynski]
<carpet_the_walls> I am looking for duplicates with the following code: results = files.group_by{|file| file}.map{|k,v| [k,v.count] }
justintv90 has joined #ruby
andikr has quit [Remote host closed the connection]
<carpet_the_walls> I have objects store in my array, and I have provided a == operator
Xeago has joined #ruby
ta has quit [Remote host closed the connection]
Oxelist has joined #ruby
<carpet_the_walls> however it is not behaving as expected
justintv90 has quit [Max SendQ exceeded]
<hoelzro> shay-: exception in the client, or server?
Oxelist has quit [Max SendQ exceeded]
nateberkopec has joined #ruby
<apeiros> carpet_the_walls: you're referring to the objects referenced by `file`?
justintv90 has joined #ruby
<carpet_the_walls> yes
Oxelist has joined #ruby
<apeiros> carpet_the_walls: hash keys don't rely on ==
enebo has joined #ruby
Synthead has quit [Quit: Leaving]
<carpet_the_walls> its a class that holds filename and filesize
Oxelist has quit [Max SendQ exceeded]
<apeiros> carpet_the_walls: you need #eql? and #hash
justintv90 has quit [Max SendQ exceeded]
Synthead has joined #ruby
Oxelist has joined #ruby
depesz has left #ruby ["WeeChat 1.2-dev"]
CloCkWeRX has quit [Ping timeout: 246 seconds]
Oxelist has quit [Max SendQ exceeded]
justintv90 has joined #ruby
<apeiros> in that case, you could probably write them as: def hash; [filename, filesize].hash; end; def eql?(other); other.class.equal?(self.class) && other.filesize == filesize && other.filename == filename; end
<carpet_the_walls> apeiros, this is what I have https://gist.github.com/deathwishdave/53562c3d9417893e6cc1
<apeiros> carpet_the_walls: as said, not sufficient. you need eql? and hash.
CloCkWeRX1 has quit [Ping timeout: 252 seconds]
<apeiros> == is irrelevant for hash keys
codecop has quit [Remote host closed the connection]
<carpet_the_walls> apeiros, I see, thank you
Xeago has quit [Remote host closed the connection]
justintv90 has quit [Max SendQ exceeded]
caseypatrickdris has quit [Remote host closed the connection]
soosfarm has joined #ruby
justintv90 has joined #ruby
fusillicode has joined #ruby
fusillicode has left #ruby [#ruby]
justintv90 has quit [Max SendQ exceeded]
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<shay-> hoelzro: in the server
dejean has joined #ruby
jordanm has joined #ruby
kobain has quit [Read error: Connection timed out]
ESpiney has joined #ruby
baweaver has joined #ruby
<Diabolik> where can i hire someone to do a half hour pair programming session?
_seanc_ has joined #ruby
psy_ has quit [Ping timeout: 258 seconds]
rubie has joined #ruby
kobain has joined #ruby
<jalcine> Diabolik: hackhands maybe
kenpoint has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
dopie has quit [Quit: This computer has gone to sleep]
kobain has quit [Max SendQ exceeded]
tjbiddle has quit [Quit: tjbiddle]
psy_ has joined #ruby
Miphix has quit [Quit: Leaving]
downwithbender has joined #ruby
platosha has quit [Ping timeout: 256 seconds]
downwithbender has quit [Client Quit]
<agent_white> Diabolik: Gimme yer monay
fabrice31_ has joined #ruby
<Diabolik> :P
hanmac1 has quit [Quit: Leaving.]
ahmetkapikiran has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
_seanc_ has quit [Client Quit]
<hoelzro> shay-: why do you want the *server* to raise an exception?
<hoelzro> why should a second client connecting interrupt the handling of the first?
hoov has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 255 seconds]
<shay-> hoelzro: because I want to be able to return a beautiful error message instead of just letting the client wait
<hoelzro> how about not letting the second client connect?
<hoelzro> or is that not sufficient?
jimms has quit [Remote host closed the connection]
carpet_the_walls has quit [Read error: Connection reset by peer]
<havenwood> weaksauce mentioned https://www.codementor.io/ the other day and I spotted some good folk on there as mentors
<havenwood> Diabolik: ^
krz has joined #ruby
<shay-> hoelzro: I am using the first example of code: http://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/TCPServer.html
mary5030 has quit [Ping timeout: 256 seconds]
DaniG2k has joined #ruby
dstarh has joined #ruby
DoubleMalt has quit [Ping timeout: 258 seconds]
<shay-> hoelzro: the second connection is waiting until it gets accepted, I think there is not possiblity to refuse the second connection without multithreading
rippa has joined #ruby
CloCkWeRX has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
dejean has quit [Excess Flood]
<hoelzro> shay-: I think you could
<hoelzro> but also, why the aversion to threads?
someword has quit [Quit: Leaving.]
dejean has joined #ruby
khebbie has joined #ruby
aapole has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
Miphix has joined #ruby
mary5030 has joined #ruby
krisquigley has joined #ruby
<shay-> hoelzro: right, was just curious is there is an easy way =)
jenrzzz has joined #ruby
caseypatrickdris has joined #ruby
dEPy has joined #ruby
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
platosha has joined #ruby
sepp2k has joined #ruby
skade has joined #ruby
fuzzyhorns has joined #ruby
jmignault has joined #ruby
carpet_the_walls has joined #ruby
<hoelzro> heh, I don't know about easy =)
revath has quit [Ping timeout: 246 seconds]
CustosLimen has quit [Ping timeout: 252 seconds]
jhooker has quit [Quit: Leaving]
<carpet_the_walls> apeiros, that worked a treat, thanks! I have one more change to make, could I get your help please? I want to output where the filename is the same, but the filesize is different https://gist.github.com/deathwishdave/53562c3d9417893e6cc1
jhooker has joined #ruby
blandflakes has joined #ruby
bluOxigen has joined #ruby
joaomdmoura has joined #ruby
<carpet_the_walls> apeiros, i tried changinging the == to != in the == operator, but no joy
krisquigley has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
tubuliferous_ has joined #ruby
AhabsBeard has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
redjack1964 has joined #ruby
casadei has joined #ruby
<apeiros> carpet_the_walls: group by filename then?
<apeiros> carpet_the_walls: also note that a == method should never raise
<apeiros> yours will raise if other does not respond to the two methods you expect
<carpet_the_walls> ok
leafybasil has joined #ruby
<carpet_the_walls> if I group_by filename, then that won't enforce filesize has to be different
<apeiros> no. but it's trivial from there.
<apeiros> .uniq the resulting arrays -> only differing will remain
shay- has quit [Remote host closed the connection]
jhooker has quit [Read error: Connection reset by peer]
fuzzyhorns has left #ruby ["later nerds"]
jhooker has joined #ruby
segfalt has joined #ruby
AhabsBeard has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
diegoviola has quit [Remote host closed the connection]
jordanm has quit [Remote host closed the connection]
vikaton has joined #ruby
yardenbar has quit [Quit: Leaving]
fusillicode has joined #ruby
fusillicode has left #ruby [#ruby]
dopie has joined #ruby
agent_white has joined #ruby
noname2 has joined #ruby
prasselpikachu has quit [Ping timeout: 265 seconds]
CustosLimen has joined #ruby
skade has quit [Ping timeout: 255 seconds]
allcentury has joined #ruby
yardenbar has joined #ruby
jhooker has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
tjbiddle has joined #ruby
segfalt has quit [Ping timeout: 252 seconds]
bigkevmcd has joined #ruby
dgutierrez1287 has joined #ruby
gambl0re has joined #ruby
tjbiddle has quit [Remote host closed the connection]
jhooker has joined #ruby
prasselpikachu has joined #ruby
justintv90 has joined #ruby
rushed has quit [Quit: rushed]
tvw has joined #ruby
mrsolo has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justintv90 has quit [Max SendQ exceeded]
coderhs has quit [Ping timeout: 264 seconds]
justintv90 has joined #ruby
cndiv has joined #ruby
Papierkorb has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<carpet_the_walls> apeiros, thank you very much
Shidash has quit [Quit: ZNC - http://znc.in]
segfalt has joined #ruby
ogpastaling has joined #ruby
skade has joined #ruby
leafybas_ has joined #ruby
pikos has quit [Quit: ...]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
dgutierrez1287 has quit [Ping timeout: 256 seconds]
stoogenmeyer_ has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
yeticry has quit [Ping timeout: 276 seconds]
pikos has joined #ruby
mc_fail has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
leafybasil has quit [Ping timeout: 272 seconds]
dejean has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
livathinos has quit [Ping timeout: 250 seconds]
fabrice31_ has quit [Remote host closed the connection]
carpet_the_walls has quit [Read error: Connection reset by peer]
stamina has quit [Quit: WeeChat 1.2]
jwilson has quit [Read error: Connection reset by peer]
jwilson has joined #ruby
jimms has quit []
revoohc has joined #ruby
jordanm has joined #ruby
segfalt has quit [Ping timeout: 272 seconds]
segfalt has joined #ruby
jmignault has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
adefa has joined #ruby
bootstrappm has joined #ruby
ixti has joined #ruby
someword has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
sdwrage has quit [Client Quit]
joaomdmoura has joined #ruby
renier has joined #ruby
vbexpert has joined #ruby
segfalt_ has joined #ruby
segfalt has quit [Ping timeout: 252 seconds]
segfalt_ is now known as segfalt
jgpawletko has joined #ruby
adefa has quit [Ping timeout: 258 seconds]
chinmay_dd has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
d10n-work has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
chinmay_dd has quit [Remote host closed the connection]
coderhs has joined #ruby
<vbexpert> Have you got vBulletin? Want to get a Mod/Product/Style? No problem request one here https://www.criosphinx.net/boards/showthread.php?p=4#post4 and we'll get it from vbulletin.org and attach it!
<havenwood> !mute vbexpert
<vbexpert> Have you got vBulletin? Want to get a Mod/Product/Style? No problem request one here https://www.criosphinx.net/boards/showthread.php?p=4#post4 and we'll get it from vbulletin.org and attach it!
someword has quit [Quit: Leaving.]
<havenwood> !kick vbexpert No spam
vbexpert was kicked from #ruby by ruboto [No spam]
jpfuentes2 has quit [Ping timeout: 258 seconds]
<ljarvis> I'd have backed a ban
benlovell has quit [Ping timeout: 250 seconds]
mello has joined #ruby
mello has joined #ruby
jpfuentes2 has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
ndrei has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
coderhs has joined #ruby
someword has joined #ruby
adefa has joined #ruby
gusrub has quit [Quit: Leaving]
<ljarvis> who wants to come work with me?! https://loco2.com/about/jobs
rubie has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
mello has quit [Ping timeout: 245 seconds]
caseypatrickdris has quit [Read error: Connection reset by peer]
caseypatrickdris has joined #ruby
mistermocha has joined #ruby
<dudedudeman> i don't know whether or not to click that....
<dudedudeman> shevy: help me decide. to click or not to click
mistermo_ has joined #ruby
<adaedra> “Has 4+ years of programming experience” :T
someword has quit [Client Quit]
aapole has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
jpfuentes2 has quit [Ping timeout: 250 seconds]
<dudedudeman> working with trains would be kind of cool
<ljarvis> s/trains/xml/ but yeah it's all relative
_seanc_ has joined #ruby
commondream has quit [Remote host closed the connection]
fedexo has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 252 seconds]
<adaedra> that looks like a nice offer
terlar has quit [Ping timeout: 256 seconds]
edwinvdg_ has joined #ruby
<bootstrappm> that does actually look like a nice offer, +1 ljarvis
jpfuentes2 has joined #ruby
mdz_ has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
terlar has joined #ruby
Xeago has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
dorei has joined #ruby
adavia has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
vdamewood has quit [Quit: Life beckons.]
lessless has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
dopie has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fooster has quit [Remote host closed the connection]
msgodf has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
msgodf has joined #ruby
hubcaps has quit [Ping timeout: 264 seconds]
slackbotgz has joined #ruby
claw has quit [Ping timeout: 264 seconds]
mdz_ has joined #ruby
jpfuente_ has joined #ruby
claw has joined #ruby
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Quit: Leaving]
sdwrage has joined #ruby
jpfuentes2 has quit [Ping timeout: 256 seconds]
<ljarvis> :)
Xeago has quit [Ping timeout: 252 seconds]
<adaedra> that could even make me apply
Scroff has joined #ruby
<Papierkorb> Is there some short-hand to write Foo.server = { |interface, port| create_server interface, port } ?
<jhass> that's not valid ruby
Xeago has joined #ruby
j4cknewt has joined #ruby
<Papierkorb> missing 'lambda'?
<jhass> maybe? I don't magically see your real code
<adaedra> or proc
Hounddog has quit [Remote host closed the connection]
<adaedra> or context
Scrofff has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Remote host closed the connection]
dfockler has joined #ruby
<Papierkorb> http://stackoverflow.com/questions/17687993/how-to-get-capybara-selenium-to-play-nicely-with-ssl-in-local-environment?answertab=active#tab-top bascially I'm trying to get Capybara to use SSL and was following this answer. See the last line of it
mistermocha has joined #ruby
<jhass> well, that answer is a syntax error then
ruv has joined #ruby
allenn has quit [Ping timeout: 276 seconds]
zekriad has joined #ruby
<jhass> >> A.b = {|c| d }
<ruboto> jhass # => /tmp/execpad-53484cd435db/source-53484cd435db:2: syntax error, unexpected '|', expecting '}' ...check link for more (https://eval.in/379235)
<adaedra> >> a = {|b, c| [b, c]}
<ruboto> adaedra # => /tmp/execpad-350f6ebea72a/source-350f6ebea72a:2: syntax error, unexpected '|', expecting '}' ...check link for more (https://eval.in/379236)
tjohnson has joined #ruby
nofxx has quit [Quit: Leaving]
<adaedra> too slow again
<jhass> but yeah probably meant to be a proc or lambda
<jhass> you can use the stabby lambda if you like
<havenwood> stabby stab stab
<jhass> Capybara.server = -> {|app, port| run_ssl_server(app, port) }
<jhass> eh
<jhass> fucked it up
<bnagy> makes-me-stabby lambda
<jhass> Capybara.server = -> app, port { run_ssl_server(app, port) }
<Papierkorb> jhass: interesting, thanks.
_ht has joined #ruby
<jhass> or you make a class
<Papierkorb> So, there's no short-hand for that like a 'function pointer' of sorts?
<jhass> class SSLServer; def call(app, port); run_ssl_server code here; end; end; Capybara.server = SSLServer
sharpmachine has joined #ruby
<jhass> .new
gamename has joined #ruby
<jhass> well, Capybara.server = method(:run_ssl_server) would probably even work
<jhass> but meh
<Papierkorb> actually that lets me have a few symbols less cluttering the global scope, I think I'll go with a small class then, ty
towski_ has joined #ruby
<bootstrappm> ljarvis how many monthly active users do you guys have if you don't mind me asking?
giuseppesolinas has joined #ruby
Xiti has quit [Quit: Xiti]
<ljarvis> bootstrappm: a few hundred thousand iirc
<bootstrappm> cool thanks
kinduff has quit [Ping timeout: 265 seconds]
iml_ has joined #ruby
slawrence00 has joined #ruby
livathinos has joined #ruby
msgodf has quit [Ping timeout: 255 seconds]
DaniG2k has quit [Quit: leaving]
gsd has quit [Quit: WeeChat 1.2]
livathinos has quit [Client Quit]
JDiPierro has quit [Remote host closed the connection]
Agoldfish has joined #ruby
startupality has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
strixd has quit [Quit: 500]
CustosLimen has quit [Ping timeout: 258 seconds]
startupality has joined #ruby
iml_ has quit [Ping timeout: 276 seconds]
hoov has joined #ruby
olistik has quit [Remote host closed the connection]
stoogenmeyer_ has joined #ruby
olistik has joined #ruby
<hanmac> shevy i added specs for stuff like WX::Point.new(x,y) == [x,y] or == OpenStruct.new({x: x, y: y}) for == {x: x ,y: y} will added later
scripore has quit [Quit: This computer has gone to sleep]
joonty has quit [Quit: joonty]
tenderlove has quit [Quit: Leaving...]
jcaho has quit [Read error: Connection reset by peer]
jcaho has joined #ruby
ruv has quit [Ping timeout: 264 seconds]
zz_barkerd427 is now known as barkerd427
Xiti has joined #ruby
yqt has quit [Ping timeout: 252 seconds]
DoubleMalt has joined #ruby
mase-chatter has quit [Quit: Leaving]
<pipework> hanmac: Ooh comparable!
startupality has quit [Quit: startupality]
walterheck has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anisha has quit [Quit: Leaving]
<hanmac> pipework: its not so much using comparable, but more a aggressive way of duck-typing ;P
mrsolo has joined #ruby
<pipework> hanmac: But you could though!
<pipework> and that's neat.
nertzy has joined #ruby
stoogenmeyer_ has quit [Ping timeout: 265 seconds]
aapole has quit [Ping timeout: 265 seconds]
jhooker has quit [Ping timeout: 264 seconds]
bricker has joined #ruby
scripore has joined #ruby
jhooker has joined #ruby
alex88 has quit []
bantic has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
krisquigley has joined #ruby
scripore has quit [Client Quit]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 265 seconds]
rbowlby has joined #ruby
dmolina has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
war_pigs has joined #ruby
war_pigs has quit [Max SendQ exceeded]
<dfockler> aggressive ducks
msgodf has joined #ruby
bronson_ has joined #ruby
ascarter has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
jpfuente_ has quit [Ping timeout: 276 seconds]
Jackneill has joined #ruby
jpfuentes2 has joined #ruby
decoponio has joined #ruby
someword has joined #ruby
iwaffles has joined #ruby
ascarter has quit [Client Quit]
<adaedra> \_o<
feoh has joined #ruby
commondream has joined #ruby
<feoh> Anyone have any suggestions for a good syntax completion mode for Ruby in emacs?
commondream has quit [Remote host closed the connection]
ruv has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
senayar has quit []
<feoh> I'd love it if something would add end blocks, and give me the ability to tab complete methods on an object.
towski_ has quit [Ping timeout: 272 seconds]
spider-mario has joined #ruby
commondream has joined #ruby
yqt has joined #ruby
noethics has quit [Ping timeout: 252 seconds]
stan has quit [Ping timeout: 256 seconds]
stoogenmeyer_ has joined #ruby
Parker0 has joined #ruby
revath has joined #ruby
adefa has quit [Quit: leaving]
_seanc_ has quit [Quit: _seanc_]
atm0sphere has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
nertzy has quit [Quit: This computer has gone to sleep]
gambl0re has quit [Ping timeout: 246 seconds]
k3asd` has quit [Ping timeout: 265 seconds]
gambl0re has joined #ruby
michael_mbp has quit [Excess Flood]
revath has left #ruby [#ruby]
the_real_intinig has joined #ruby
drocsid has joined #ruby
chipotle has quit [Quit: cheerio]
darkf has quit [Quit: Leaving]
<atm0sphere> can anyone shoe me the roadmap hthat how to call c file through ffi ruby?
<atm0sphere> show
<drocsid> If I have two hashes, and want to remove the union of the hashes from the other hash, is there a method to do this, or do I need to write a loop to remove each key myself?
segfalt has quit [Quit: segfalt]
ruby-lang459 has joined #ruby
michael_mbp has joined #ruby
<ruby-lang459> Hi, I know javascript but am teaching myself ruby could someone tell me if this is the proper/best syntax
CloCkWeRX has quit [Quit: Leaving.]
<axl_> ruby-lang459, no XD
<adaedra> wow, I didn't know there was worse than pastebin
<adaedra> lacks a end, def is not capitalized
<ruby-lang459> pastebin..thats the site i was looking for
<adaedra> no it's not
<adaedra> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
intinig has quit [Ping timeout: 276 seconds]
<adaedra> and syntax errors aside, your code always returns true
<ruboto> ruby-lang459, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5cea9e35643ad3f5e79a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<adaedra> >_>
<ruby-lang459> ahh dammit sorry
<havenwood> ruby-lang459: `=` an assignment operator
<ruby-lang459> oh, is it === ?
<adaedra> no
<adaedra> another try, you're close
<atm0sphere> can anyone show me the roadmap hthat how to call c file through ffi ruby?
granthatcher has quit []
<havenwood> ruby-lang459: threequals is mainly used implicitly by the when clauses of a case statement
<axl__> ruby-lang459, just do : x == 10 ? true : false
<axl__> :D
<havenwood> ruby-lang459: twoquals!
<adaedra> or just x == 10
<axl__> idd
chussenot has quit [Quit: chussenot]
<axl__> lol
<ruby-lang459> but how do I make it a function?
<adaedra> like you did
<axl__> def func
ajax0xd9 has quit [Read error: Connection reset by peer]
Hirzu has joined #ruby
<ruby-lang459> is that correct?
<axl__> but you don't need a function for that
<havenwood> ruby-lang459: You're missing and `end` to your if statement
mikecmpbll has quit [Ping timeout: 264 seconds]
Hirzu has quit [Client Quit]
<havenwood> ruby-lang459: Try it in irb or pry.
<adaedra> ?gistusage
<ruboto> I don't know anything about gistusage
<adaedra> ?gist_usage
<ruboto> To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
<axl__> gistusage
<axl__> ?gistusage
<ruboto> I don't know anything about gistusage
<axl__> lol
<axl__> liar
tskogberg has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
<havenwood> axl__: gistusage != gist_usage
feoh has quit [Ping timeout: 258 seconds]
<ruby-lang459> I know I don't need it as a function, but just trying to learn how to set a function up with if else :)
<havenwood> ruby-lang459: A nit, but it's a method not a function.
<axl__> havenwood, im just trolling around
<axl__> with... a bot
chthon has quit [Ping timeout: 244 seconds]
<havenwood> axl__: aha!
<ruby-lang459> nit?
k3asd` has joined #ruby
<axl__> -.-
<adaedra> if your goal is just to set up a function^Wmethod, this looks like it
x1337807x has joined #ruby
<havenwood> ruby-lang459: A minor incorrect detail.
jordanm has quit [Quit: Konversation terminated!]
<ruby-lang459> well, i was trying to take a javascript function and do it in ruby
<ruby-lang459> so i would want a method?
<havenwood> ruby-lang459: We name methods with snake_case, never headlessCamelCase in Ruby.
scripore has joined #ruby
jordanm has joined #ruby
<havenwood> ruby-lang459: def my_method
JimmyNeutron has joined #ruby
<ruby-lang459> gotcha
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
<ruby-lang459> but the syntax is correct now?
<havenwood> ruby-lang459: Drop the `return`s.
<havenwood> ruby-lang459: Yup, run it in irb: irb
M-Technic has quit [Ping timeout: 265 seconds]
<havenwood> ruby-lang459: Now just drop the returns, and switch the hard tabs to two-spaces.
finisherr has joined #ruby
<adaedra> you don't need the return, as value is passed outside the if
<adaedra> and you don't need as many line returns
the_real_intinig has quit [Remote host closed the connection]
kerunaru has joined #ruby
<havenwood> ruby-lang459: And if you want a cherry on top, rename the gistfile1.txt to my_method.rb for syntax highlighting and making it easier for others to try it out by cloning your gist.
susmus has quit [Ping timeout: 252 seconds]
intinig has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
Torsten` has left #ruby [#ruby]
jhooker has quit [Read error: Connection reset by peer]
<havenwood> ruby-lang459: Check in irb: x == 10
Spami has joined #ruby
aapole has joined #ruby
<havenwood> ruby-lang459: Now compare that to your if statement.
<havenwood> ruby-lang459: In irb: 5 == 10
jhooker has joined #ruby
<havenwood> ruby-lang459: 10 == 10
<havenwood> >> 10 == 10
<ruboto> havenwood # => true (https://eval.in/379250)
baweaver has joined #ruby
<ruby-lang459> i'm confused
<havenwood> ruboto: Sorry, I explained badly.
<havenwood> ruboto: ^
<havenwood> ruby-lang459: ^
<havenwood> :(
apofis has quit [Remote host closed the connection]
<havenwood> ruby-lang459: Do you know how to use irb?
Spami has quit [Client Quit]
<adaedra> In French, we have a saying "Never two without three"
<ruby-lang459> nope
<adaedra> Seems you broke it here.
<havenwood> ruby-lang459: From your terminal type: irb
<drocsid> I can't find a method which given two hashes, removes the intersection of the two hashes. But it should be easy enough to create this method. Acrually I don't even need to check the values, just the keys.
blueOxigen has joined #ruby
<adaedra> see you all
<havenwood> adaedra: o/
dionysus69 has joined #ruby
mister_solo has quit [Ping timeout: 272 seconds]
<adaedra> drocsid: if you have activesupport, Hash#reject and Hash#keys
Spami has joined #ruby
<ruby-lang459> ok
<havenwood> ruby-lang459: Try out `5 == 10` and hit return, then `10 == 10` and hit return. What do they return?
<ruby-lang459> false
intinig has quit [Ping timeout: 256 seconds]
<ruby-lang459> true
<ruby-lang459> well that make sense..
<havenwood> ruby-lang459: With that in mind, what's the point of the if statement in your method?
<ruby-lang459> to check if x is 10, if not it returns false
<havenwood> ruby-lang459: The return value from the expression is already your desired return value.
whoami has joined #ruby
whoami is now known as howdoi
<havenwood> ruby-lang459: So compare your if statement with `5 == 10` to just plain old: 5 == 10
<ruby-lang459> you're saying the if/else is unnecessary
<havenwood> aye
thiagoflins has joined #ruby
<havenwood> ruby-lang459: Indent two spaces inside the method.
bluOxigen has quit [Ping timeout: 276 seconds]
<ruby-lang459> i gotcha, i was doing it more just to learn how to setup a function/emethod
ascarter has joined #ruby
<havenwood> ruby-lang459: Roger that.
veleno has quit [Ping timeout: 264 seconds]
<ruby-lang459> if you were comparing a # regularly on a call, you would seutp a method though, no?
<howdoi> sad, in ruby we can't typecast a boolean to an int, without extending the default classes
<howdoi> true.to_int bombs ....hmm
_djbkd has joined #ruby
<bnagy> wat
<havenwood> howdoi: What's the context where you want `true` to be an Integer?
<bnagy> you can't typecast anything to anything
<howdoi> havenwood :param to db
<dfockler> howdoi: you can always write your own function
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
<howdoi> "1".to_i
<howdoi> we can do that, but not true.to_i, why?
fedexo has quit [Read error: Connection reset by peer]
<dfockler> >> true ? 1 : 0
thiagovsk has joined #ruby
<ruboto> dfockler # => 1 (https://eval.in/379260)
<howdoi> dfockler there are so many inbuilt functions, why not such a simple typecast?
<dfockler> because there is no definition of what int true should be
bluOxigen has joined #ruby
<bnagy> it's not a typecast
<bnagy> still
towski_ has joined #ruby
starfox_sf has joined #ruby
jackjackdripper has joined #ruby
<howdoi> class TrueClass
<bnagy> ruby is beyond strongly typed
<havenwood> howdoi: Ruby makes things beautiful and simple to encourage use and ugly to discourage use.
<dfockler> bnagy: like you said you can't typecast in ruby
RobertBirnie has joined #ruby
<howdoi> def to_i 1 end
lkba_ has quit [Ping timeout: 256 seconds]
ixti has quit [Ping timeout: 276 seconds]
<howdoi> everything is an Object right?
<bootstrappm> havenwood: that's a nice way to put it
<bnagy> TrueClass and FalseClass deliberately have very limited methods
towski_ has quit [Remote host closed the connection]
bgmarx has joined #ruby
<bootstrappm> howdoi: just because something can be done and can be done easily doesn't mean it should be done
aapole has quit [Ping timeout: 244 seconds]
<dfockler> ^
<howdoi> what's so evident about the deliberation ?
blueOxigen has quit [Ping timeout: 258 seconds]
<ruby-lang459> havenwood: thanks for your help, having fun learning ruby
<howdoi> bootstrappm agree, but there must be a resaon why it's not done.
<havenwood> ruby-lang459: nice
<bnagy> >> true.object_id
<ruboto> bnagy # => 2 (https://eval.in/379262)
c0m0 has quit [Ping timeout: 255 seconds]
<ruby-lang459> i know html/css/javascript - but not many jobs for that
<bnagy> because the real truth would SHOCK you!
<bootstrappm> I think dfockler phrased it pretty well. Semantically, true has no integer representation
<howdoi> in irb, if I do a true.<tab> why on earth does it show to_i and to_int if it does not work ?
<ruby-lang459> Ruby and php seem to be most demanded
<howdoi> bnagy heh heh I liked to face the truth :)
<dfockler> and in ruby every but nil and false are truthy
<dfockler> so any other integer would violate that idea
<howdoi> true.object_id is 20 for me!
<havenwood> ruby-lang459: Old languages have demand because they need maintaining and everyone is doing new things. Popular languages are in demand because there new things being grown. Obscure languages are in demand because no one knows them.
<bnagy> yeah not a great idea to rely on that
GGMethos has quit [Ping timeout: 276 seconds]
<finisherr> Is there an easy way for gemspec to include all files under lib? Just provide a method that searches for each file under the lib directory and returns an array?
<bnagy> it's fixed per implementation afaik, and trues are immediates, effectively, like small ints
<bnagy> but that's all interpreter business
<howdoi> bnagy but why does irb tab complete those method which does not even operator on boolean ?
<bnagy> nfi
<bnagy> mine doesn't
<bootstrappm> corollary: languages where most existing work has been phased out, have full libraries, and everybodys already tried are dead?
<howdoi> bnagy :(
zotherstupidguy has quit [Quit: WeeChat 1.2]
kenpoint has quit []
<howdoi> Display all 931 possibilities? (y or n)
rbowlby has quit [Remote host closed the connection]
jhooker has quit [Ping timeout: 265 seconds]
<havenwood> ?pry howdoi
<ruboto> howdoi, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
<howdoi> havenwood yup, aware of pry
<howdoi> pry says: Display all 1845 possibilities? (y or n)
<howdoi> holy goodness
<havenwood> ;)
tskogberg has joined #ruby
<howdoi> how do view the source of a class within pry?
<howdoi> to_soruce ??
<bnagy> >> true.methods.include? :to_i
<ruboto> bnagy # => false (https://eval.in/379263)
ogpastal_ has joined #ruby
<havenwood> howdoi: `$` is an alias for `show-source`, from Pry see: help
allcentury has joined #ruby
<bnagy> >> true.methods.include?(:to_i).__id__ # VICTORY!
<ruboto> bnagy # => 0 (https://eval.in/379264)
<havenwood> howdoi: help show-source
<havenwood> bnagy: ha
<howdoi> bnagy nice :)
<howdoi> source_file ?
JDiPierro has joined #ruby
<howdoi> >> > show-source TrueClass
<ruboto> howdoi # => /tmp/execpad-d33207d1a0ee/source-d33207d1a0ee:2: syntax error, unexpected '>' ...check link for more (https://eval.in/379265)
<howdoi> >> show-source TrueClass
<ruboto> howdoi # => /tmp/execpad-cf52f1ef94d8/source-cf52f1ef94d8:2: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/379266)
<howdoi> :/
<havenwood> howdoi: Try in your own terminal.
<howdoi> Error: Couldn't locate a definition for TrueClass!
<havenwood> howdoi: From Pry.
<howdoi> I wanted to make a point, sorry for that
<havenwood> howdoi: gem install pry pry-doc
<havenwood> howdoi: Did you install?: pry-doc
<howdoi> doing it now ;)
atm0sphere has quit [Ping timeout: 246 seconds]
<howdoi> but there is this source_file attr for every class, right?
ogpastaling has quit [Ping timeout: 255 seconds]
<howdoi> Done installing documentation for pry after 4 seconds
armyriad has joined #ruby
<howdoi> ^ does not sound right grammatically ?
rodferso1 has joined #ruby
Musashi007 has joined #ruby
Filete has joined #ruby
wallerdev has joined #ruby
<havenwood> howdoi: For example, from Pry try: public_method(:pretty_inspect).source_location
<havenwood> howdoi: But do read: help
pietr0 has joined #ruby
GGMethos has joined #ruby
ta has joined #ruby
<howdoi> havenwood nice :)
<howdoi> after gem install pry pry-doc, it still says Error: Couldn't locate a definition for TrueClass!
umgrosscol has quit [Ping timeout: 256 seconds]
rodfersou has quit [Ping timeout: 256 seconds]
psyprus has quit [Changing host]
psyprus has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<howdoi> :(
segfalt has joined #ruby
barkerd427 is now known as zz_barkerd427
mello has joined #ruby
mello has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
duderonomy has quit [Ping timeout: 244 seconds]
zz_barkerd427 is now known as barkerd427
jhooker has joined #ruby
thiagovsk has left #ruby [#ruby]
paulcsmith has joined #ruby
dseitz has joined #ruby
<hanmac> howdoi: source_location only works for ruby methods, not compiled ones
aryaching has joined #ruby
mello has quit [Ping timeout: 256 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<sts> hello folks. How can I access the instance of Rake::Task from within a rake task?
<jhass> sts: isn't it yielded to the task?
<havenwood> howdoi: gem install pry-doc pry-docmore
ta has quit [Remote host closed the connection]
<havenwood> howdoi: show-doc true
ta has joined #ruby
abirazor has joined #ruby
<havenwood> #=> not false. Everything in Ruby (except `false` and `nil`) are true...
rbowlby has joined #ruby
bMalum has joined #ruby
olistik has quit []
<sts> jhass: Hm. How would I access it then?
<jhass> sts: do |t|
<jhass> t is the task object
<howdoi> hanmac how do I know which are ruby methods and which are compiled ones?
dhialife has joined #ruby
k3asd` has quit [Ping timeout: 255 seconds]
<howdoi> havenwood, nice
<hanmac> howdoi: methods from core are mostly compiled ones, ones from stdlib are sometimes compiled too
<howdoi> yeah, but is there a method or a way to check them in the cli?
<jhass> howdoi: if you have pry-doc you don't need to care, just ? [].pretty_inspect or whatever
<jhass> ri
<jhass> ri String#gsub
<bootstrappm> if you look in the online ruby documentation the ones that aren't compiled have a Show Source option
<howdoi> hmm
<jhass> bootstrappm: what docs do you use? all I do show the C source functions
susmus has joined #ruby
joaomdmoura has joined #ruby
AlphaAtom has joined #ruby
<bootstrappm> you're right jhass my mistake. I should have said: the ones that are compiled start with rb_ and are clearly in C
AlphaAtom has quit [Max SendQ exceeded]
<bootstrappm> when you click the Show Source option
<howdoi> oki
krz has joined #ruby
zipace has joined #ruby
AlphaAtom has joined #ruby
baweaver has quit [Remote host closed the connection]
mdz_ has quit [Remote host closed the connection]
<sts> jhass: yeah that worked.
<sts> unfortunately it doesn't seem I can access t.sources from within Capistrano tasks.
krisquigley has joined #ruby
<jhass> oO
drewo has joined #ruby
ruby-lang459 has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Client Quit]
cyrus_mc has joined #ruby
<jhass> t.prerequisites ?
<jhass> maybe sources was only for rules? I don't remember
<shevy> hanmac don't forget the examples!
aapole has joined #ruby
ht__ has joined #ruby
maxshelley has joined #ruby
<cyrus_mc> I ran into a situation where I required an updated ruby on a CentOS 6 box (as it only comes with 1.8.7. Built my own ruby 2.2.2 package. However the base repositories have RPMs for most gems. But they install in the 1.8.7 path. Is there a way to have the new version of ruby reference that path as well for gems, or else I would have to rebuild RPM for all the gems I need.
ki0 has quit [Remote host closed the connection]
maletor has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
ogpastal_ has quit [Remote host closed the connection]
ki0 has joined #ruby
baweaver has joined #ruby
thiagoflins has quit [Read error: Connection reset by peer]
<jhass> cyrus_mc: 2.2.2 and 1.8 are ABI incompatible, so while yes, it will not work
<jhass> cyrus_mc: get bundler and use --deployment, don't install gems via RPM
ogpastaling has joined #ruby
<cyrus_mc> jhass: ok, I will look at bundler
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> cyrus_mc: if you're deploying apps on centos6, consider bundling a ruby interpreter per-app
<sts> jhass: for me t.sources is []
joaomdmoura has quit [Remote host closed the connection]
ascarter has joined #ruby
<sts> jhass: also []
<jhass> you're sure there any? :P
<jhass> *there are
<sts> jhass: well I call one task from another task. now i want to find out who was the caller.
bootstrappm has left #ruby [#ruby]
ruby-lang695 has joined #ruby
thomcom has joined #ruby
ixti has joined #ruby
shadoi has joined #ruby
<jhass> sts: oh, that's not what either of these is about
<sts> jhass: but 'pp t' gives me: <Rake::Task notify:hubot:send => []>
jenrzzz has joined #ruby
micmus has quit [Ping timeout: 256 seconds]
aaeron has joined #ruby
zendrix has joined #ruby
chouhoul_ has joined #ruby
<jhass> yeah, I doubt that information is available tbh
<jhass> at least not as public API
_seanc_ has joined #ruby
bgmarx has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 252 seconds]
axsuul has quit [Ping timeout: 255 seconds]
Eiam has joined #ruby
towski_ has joined #ruby
<jhass> sts: I mean if we look at Task#invoke, invoke_with_call_chain(task_args, InvocationChain::EMPTY)
moretti has joined #ruby
zendrix has quit [Remote host closed the connection]
<jhass> it's specifically empty even internally that way
ascarter has quit [Max SendQ exceeded]
<sts> basically I want to execute a notify task, and have the task determine whether it was successfull or exited because of an exception.
rikai has quit [Ping timeout: 255 seconds]
ruby-lang695 has quit [Client Quit]
ascarter has joined #ruby
<jhass> I think you want a normal method/class you can call and pass that information as an argument
<jhass> Reporter.report_error / Reporter.report_success
jwaldrip has quit [Quit: Be back later ...]
<jhass> just because it's a rake task doesn't mean you have to stuff everything it does into rake tasks too
chouhoulis has quit [Ping timeout: 246 seconds]
jwaldrip has joined #ruby
bantic has quit [Quit: bantic]
bantic has joined #ruby
bantic has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
jwaldrip has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 276 seconds]
jwaldrip has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
jwaldrip has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
duderonomy has joined #ruby
bgmarx has joined #ruby
zendrix has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
jwaldrip has joined #ruby
<drbrain> sts: if an exception is raised in a task rake is done and bails out
pdoherty has joined #ruby
<drbrain> rake doesn't have a mechanize for rescuing from task failure
jwaldrip has quit [Read error: Connection reset by peer]
<sts> drbrain: In capistrano it will usually call deploy:failed before it exits
yaw has joined #ruby
<drbrain> they probably wrap regular ruby exception handling around the inside of their tasks
<drbrain> then invoke that task from the capistrano side
jwaldrip has joined #ruby
mike___1234 has quit [Ping timeout: 265 seconds]
jwaldrip has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mike___1234 has joined #ruby
<sts> yeah
<drbrain> sts: https://github.com/capistrano/capistrano/search?utf8=✓&q=exit_deploy_because_of_exception
micmus has joined #ruby
tvw has quit [Remote host closed the connection]
<drbrain> they subclass Rake::Application to do special things
mello has joined #ruby
Domon has joined #ruby
<drbrain> when I build larger tools atop rake I put all the guts in a Plain Ol' Ruby Library
<drbrain> then call into the library from tasks that are 2–3 lines each
jgt2 has quit [Ping timeout: 245 seconds]
<sts> drbrain: any examples?
gsd has joined #ruby
<drbrain> hrm
<sts> anyways I'm gonna figure it out. I got a small example working now
<sts> nvm
<drbrain> ok, I don't think I have anything in public repos
gsd has quit [Client Quit]
jwaldrip_ has joined #ruby
<drbrain> one way to implement "if task A failed execute task B" is to have A rescue an exception and set a flag, then have B depend upon A and check the flag
blueOxigen has quit []
<drbrain> if you don't control the source of A you can use invoke, (but ugh)
<jhass> I still don't see why you need to stuff the failure case into a task at all
arooni-mobile has joined #ruby
joaomdmoura has joined #ruby
<jhass> it's not like you'll ever call that task
ascarter has joined #ruby
<jhass> it's there for when you actual task failed, as such it's actually part of that actual task
<jhass> if you need to deduplicate just apply your regular programming skills, see above
ascarter has quit [Max SendQ exceeded]
axl__ has quit [Ping timeout: 245 seconds]
axl_ has quit [Ping timeout: 245 seconds]
axl___ is now known as axl_
mrsolo has quit [Quit: Leaving]
ascarter has joined #ruby
ascarter has quit [Client Quit]
jwaldrip_ has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
solars has quit [Ping timeout: 255 seconds]
jwaldrip_ has joined #ruby
mister_solo has joined #ruby
hakunin has joined #ruby
setient has joined #ruby
platzhirsch has left #ruby [#ruby]
sandelius has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
mister_s_ has joined #ruby
moretti has quit [Quit: Leaving...]
mike___1234 has quit [Ping timeout: 245 seconds]
krisquigley has quit [Remote host closed the connection]
umgrosscol has joined #ruby
aaeron has quit [Quit: aaeron]
apt-get_ has joined #ruby
apt-get_ has quit [Max SendQ exceeded]
Yiota has joined #ruby
<sts> hmm. I send need to send different notifications based upon whether the run was successful or not.
aaeron has joined #ruby
<sts> So i either need it as argument to one method, or I need two methods..
apt-get_ has joined #ruby
<shevy> .succes
<shevy> oops
<shevy> .success and .failure
<shevy> \o/
Eiam has joined #ruby
mister_solo has quit [Ping timeout: 252 seconds]
wallerdev_ has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
* apeiros doesn't like tasks with code
dionysus69 has quit [Remote host closed the connection]
<apeiros> I prefer rake task to call into library code
sarkyniin has quit [Ping timeout: 265 seconds]
wallerdev has quit [Ping timeout: 258 seconds]
wallerdev_ is now known as wallerdev
ascarter has joined #ruby
rockymadden has joined #ruby
mike___1234 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
yaw has quit [Ping timeout: 255 seconds]
ascarter has quit [Client Quit]
hahuang65 has joined #ruby
michaeldeol has joined #ruby
slawrence00 has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
baweaver has joined #ruby
mwlang has joined #ruby
<jhass> sts: yes, any problem with that?
umgrosscol has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
tubuliferous_ has quit [Read error: Connection reset by peer]
mike___1234 has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
nertzy has joined #ruby
<mwlang> I need a better strategy for accessing values of a hash that can be 5 to 7 levels deep. For example: foo[:case_info][:docket][:defendant][:name][:first_name] I know I can use #fetch as foo.fetch(:case_info, {}).fetch(:docket, {}).fetch(:name, {}).fetch(:first_name, nil), but man, that’s unwieldy.
<dfockler> mwlang: split them into separate objects?
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<dfockler> or use something like OpenStruct to access them as members
<mwlang> dfockler: I was thinking something along those lines…somehow break up and feed into a bunch of Structs or something.
jwaldrip_ has quit [Ping timeout: 276 seconds]
<jhass> why are you so uncertain about the structure anyway?
<mwlang> the challenge is, if any section is missing along the way, I want nil back.
<jhass> why's all of that optional?
jwaldrip_ has joined #ruby
<mwlang> jhass: legacy system and human error
<mwlang> jhass: within a gov’t entity.
<mwlang> jhass: ‘nuff said? :-)
<jhass> meh
<jhass> :P
rikai has joined #ruby
<mwlang> jhass: it’s actually a bunch of SOAP exchanges I’ve turned into Hashes with the nori gem.
<jhass> would actually be a fun case for https://github.com/tomstuart/monads
<mwlang> but the legacy system doesn’t enforce the presence of everything. There are some I’ll need to enforce.
<jhass> wonder if anybody uses these in prod
krz has quit [Quit: WeeChat 1.0.1]
zendrix has quit [Remote host closed the connection]
mike___1234 has joined #ruby
<apeiros> mwlang: wrap it in a class which manages accessing for you
<apeiros> foo.fetch(:a, :b, :c, …)
AlphaAtom has joined #ruby
<dfockler> I still don't understand monads
veleno has joined #ruby
mikecmpbll has joined #ruby
<jhass> dfockler: watch the talk linked in the repos description
Dopagod has joined #ruby
jwaldrip_ has quit [Ping timeout: 256 seconds]
Dopagod has quit [Changing host]
Dopagod has joined #ruby
<shevy> monads are all the things dfockler
whippythellama has quit [Quit: whippythellama]
jwaldrip_ has joined #ruby
AlphaAtom has quit [Client Quit]
<mwlang> jhass: maybe monad…That’s exactly my use-case.
rikai has quit [Ping timeout: 245 seconds]
<jhass> yep
<mwlang> I’d be happy with a syntax like Maybe Int -> Maybe Int -> Maybe Int
iamjarvo has joined #ruby
<mwlang> vs. the .and_then {} blocks
__butch__ has joined #ruby
AlphaAtom has joined #ruby
<dfockler> after 3 minutes I still don't understand monads...
mrsolo has joined #ruby
axsuul has joined #ruby
<mwlang> dfockler: take the maybe nomads…chain up a bunch of objects in a straight line. To get to the 5th object, 1st - 4th have to be non-nil.
<mwlang> if at any point in that chain one of those objects is nil, nil is returned and we stop walking the chain.
<jhass> dfockler: it does take at least the half thing
<jhass> mwlang: method_missing
<dfockler> haha I know, I'm just being obstinate
withnale_ has quit [Ping timeout: 264 seconds]
Miphix has quit [Quit: Leaving]
<jhass> mwlang: override it to return an optional and add a value accessor
<jhass> Optional.new(hash).foo.bar.baz.value
gsd has joined #ruby
<zekriad> mwlang: have one laying around https://gist.github.com/zekriad/a50c6913fc24bba81a7a you may be able to drop in.
deric_skibotn has quit [Ping timeout: 272 seconds]
jhooker has quit [Ping timeout: 276 seconds]
yqt has quit [Ping timeout: 246 seconds]
jhooker has joined #ruby
thiagofm has joined #ruby
<shevy> dfockler take schroedinger's cat. It maybe dead or it maybe alive. That's the example for a maybe monad
hdev1 has joined #ruby
jenrzzz has joined #ruby
veleno has quit [Quit: veleno]
<dfockler> I understand how a Maybe works
umgrosscol has joined #ruby
<dfockler> and Optional
<dfockler> from Rust
<mwlang> zekriad: thanks! checking it out now.
Scroff has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
jwaldrip_ has quit [Ping timeout: 256 seconds]
megaman has joined #ruby
<megaman> Hi everyone
sepp2k has quit [Quit: Leaving.]
<dfockler> He's a fighting robot!
leafybas_ has quit []
jwaldrip_ has joined #ruby
mister_s_ has quit [Ping timeout: 252 seconds]
megaman has left #ruby [#ruby]
drewo has quit [Ping timeout: 256 seconds]
<adaedra> duh
<jhass> you scared them :(
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bin_005 has joined #ruby
mc_fail has joined #ruby
kinduff has joined #ruby
kinduff has joined #ruby
whippythellama has joined #ruby
wallerdev has quit [Quit: wallerdev]
<apeiros> dfockler: to me, it also was a very dying robot :(
giuseppesolinas has quit [Quit: This computer has gone to sleep]
drewo has joined #ruby
wallerdev has joined #ruby
Dingus has joined #ruby
zendrix has joined #ruby
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> lol
Xiti` has joined #ruby
postmodern has joined #ruby
jwaldrip_ has quit [Ping timeout: 265 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
ixti has quit [Ping timeout: 252 seconds]
<dfockler> Did he die a lot?
mc_fail has quit [Ping timeout: 276 seconds]
<miah> johnny 5 is alive!
Xiti has quit [Ping timeout: 250 seconds]
axsuul has quit [Ping timeout: 258 seconds]
mpistone has joined #ruby
khebbie has joined #ruby
jwaldrip_ has joined #ruby
Eiam_ has joined #ruby
allomov has joined #ruby
giuseppesolinas has joined #ruby
fabrice31 has joined #ruby
<shevy> ohhhh
<shevy> this is hilarious to no ends miah
<apeiros> dfockler: megaman? yes. every other second.
<shevy> that english line has a punch-line ... "johnny five, is alive"
<apeiros> the only kind of death it didn't die was getting eaten by a grue…
<dfockler> haha I don't remember that
mpistone has left #ruby [#ruby]
deric_skibotn has joined #ruby
<shevy> in german it is "Nummer 5 lebt" which sort of is the translation "number five is alive"; but during that translation, the punchline is completely lost
yaw has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ferfoster has joined #ruby
yaw has quit [Max SendQ exceeded]
<jhass> shevy: give me a single example where a german movie title doesn't destroy a punchline the original had
yaw has joined #ruby
rikai has joined #ruby
<miah> lol
yaw has left #ruby [#ruby]
<shevy> jhass project A! http://www.imdb.com/title/tt0085127/
kirun has joined #ruby
<miah> HEY LASERLIPS
<shevy> the big pirate boss spoke in northern germany dialect
<miah> your mother was a snowblower, your daddy was a lawnmower
thiagofm has quit [Ping timeout: 265 seconds]
<miah> i tried watching that movie again recently... it was difficult i didnt get that far.
<dfockler> auf Ihren Hintern halten
<shevy> actually, most translated chinese kung fu movies are a lot more fun in german, than in the english variant :)
iwaffles has quit [Quit: iwaffles]
<shevy> lol dfockler
jwaldrip_ has quit [Ping timeout: 256 seconds]
<jhass> miah: chappie is basically a recent version of the same story
<miah> ya i saw chappie, it was alright
<bougyman> I thought it was better than alright.
<bougyman> just saw it yesterday.
axsuul has joined #ruby
<miah> i think short circuit was better
<dfockler> what would be funnier would to have google translate a full movie from english to german
<bougyman> short circuit was absolutely not better.
ferfoster has quit [Client Quit]
<shevy> from that movie a pretty epic jackie stunt https://www.youtube.com/watch?v=Yj0zNIUNLTo
jwaldrip_ has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
<miah> opinions are like assholes, everybody has their own?
<bougyman> short circuit was a cheesy comedy.
<bougyman> chappie was just a higher level.
bgmarx has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
<shevy> robots don't have that!
<miah> it was a 1.5 hour long Die Antewoord skit
atomical has joined #ruby
<shevy> sounds dutch
<miah> well, south africa
<bougyman> close enough
<shevy> :)
<jhass> anyway, make we should give #ruby-offtopic some life with that topic ;)
<jhass> er, *maybe
<miah> agree =)
hdev1 has quit [Ping timeout: 272 seconds]
<shevy> offtopic talk always generates the most traffic
uri_ has quit [Ping timeout: 256 seconds]
ruv has quit [Ping timeout: 258 seconds]
<dfockler> ahhh I can finally pretend I understand Monads
<jhass> yeah, it's a great talk for that
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kadoppe has quit [Ping timeout: 256 seconds]
<miah> i can only pretend
jwaldrip_ has quit [Ping timeout: 250 seconds]
arooni-mobile has quit [Ping timeout: 256 seconds]
aspiers has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
kadoppe has joined #ruby
wald0 has quit [Ping timeout: 245 seconds]
barkerd427 is now known as zz_barkerd427
<shevy> dfockler can you explain the simplest monad in a single sentence?
dfinninger has joined #ruby
<dfockler> An optional returns a value or it doesn't
mleung has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
<shevy> lol
haxr has joined #ruby
jwaldrip_ has joined #ruby
<dfockler> but the important part is that you can use the monad as an interface to use the return values
<dfockler> in a standard way
jhooker has quit [Ping timeout: 264 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhooker has joined #ruby
IanVorn118 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Yiota has joined #ruby
solars has joined #ruby
Yiota has quit [Client Quit]
jwaldrip_ has quit [Read error: Connection reset by peer]
qwertme has joined #ruby
jwaldrip_ has joined #ruby
<shevy> so a monad is a wrapper over return values?
IanVorn118 has quit [Client Quit]
<dfockler> yeah basically monads are burritos
joelataylor has joined #ruby
iamjarvo has joined #ruby
mrsolo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<zekriad> hehe, monad analogies...
aspiers has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
iamjarvo has joined #ruby
plashchynski has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
chrisja has joined #ruby
DEA7TH has joined #ruby
IanVorn118 has joined #ruby
krisquigley has joined #ruby
iamjarvo has joined #ruby
jwaldrip_ has quit [Ping timeout: 256 seconds]
Zai00 has quit [Ping timeout: 255 seconds]
iamjarvo has quit [Max SendQ exceeded]
Zai00 has joined #ruby
Ox0dea has joined #ruby
iamjarvo has joined #ruby
jwaldrip_ has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
hoov has quit [Ping timeout: 265 seconds]
<Ox0dea> Hey, you got your categorical endofunctor in my zygomatic prepromorphism!
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
ruby_nuby has joined #ruby
IanVorn118 has quit [Client Quit]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
yqt has joined #ruby
IanV0rn has joined #ruby
iamjarvo has joined #ruby
<dfockler> In other words your return value was nil
iamjarvo has quit [Max SendQ exceeded]
mdz_ has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
gianlucadv has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Max SendQ exceeded]
bMalum has quit [Quit: bMalum]
iamjarvo has joined #ruby
rockymad_ has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
krisquigley has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
jwaldrip_ has quit [Ping timeout: 276 seconds]
iamjarvo has quit [Max SendQ exceeded]
baweaver has joined #ruby
jwaldrip_ has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
Parter_ has joined #ruby
kyrylo has joined #ruby
rockymadden has quit [Ping timeout: 264 seconds]
pdoherty has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
zz_barkerd427 is now known as barkerd427
iamjarvo has quit [Max SendQ exceeded]
mdz_ has quit [Ping timeout: 276 seconds]
apofis has joined #ruby
tubuliferous_ has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
tubuliferous_ has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
<kyrylo> Hi! Say I have allocated some memory with ALLOC_N(). Later on I have a conditional rb_raise() in my code. If the check doesn't pass I xfree() the allocated memory. My question is should I worry about the allocated memory if the rb_raise() conditional succeeds and I actually raise an exception
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
ixti has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
lkba has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
hdev1 has joined #ruby
<miah> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
codecop has quit [Remote host closed the connection]
jerius has quit [Quit: /part]
bdnelson has joined #ruby
apofis has quit [Read error: Connection reset by peer]
Ox0dea has quit [Read error: No route to host]
ag4ve_ has quit [Ping timeout: 248 seconds]
apofis has joined #ruby
aphprentice has joined #ruby
juanpaucar has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
joneshf-laptop has quit [Remote host closed the connection]
gianlucadv has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
mrmargolis has quit [Remote host closed the connection]
apofis_ has joined #ruby
apofis_ has quit [Client Quit]
joneshf-laptop has joined #ruby
apofis_ has joined #ruby
bdnelson has quit [Quit: Computer has gone to sleep.]
cmisenas has joined #ruby
pullphinger has joined #ruby
podman has joined #ruby
apofis has quit [Ping timeout: 264 seconds]
apofis_ is now known as apofis
pullphinger has joined #ruby
jwaldrip_ has quit [Ping timeout: 272 seconds]
aphprentice has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jwaldrip_ has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
Ox0dea has joined #ruby
mdz_ has joined #ruby
<Ox0dea> kyrylo: Your exception can always be caught, so the decision becomes whether or not you want to leak memory. :P
<Ox0dea> Also, fast_method_source eats all the syntax errors during parsing, but Ruby's internal errno still gets set to non-zero.
<Ox0dea> This makes programs using FSM likely to signal failure on exit when they shouldn't.
diegoviola has joined #ruby
drewo has quit [Ping timeout: 276 seconds]
jwaldrip_ has quit [Ping timeout: 255 seconds]
jwaldrip_ has joined #ruby
Ox0dea has quit [Read error: No route to host]
ajax0xd9 has joined #ruby
baweaver has quit [Remote host closed the connection]
zdman135 has joined #ruby
cmisenas has quit [Ping timeout: 246 seconds]
MarkTurner has joined #ruby
ajax0xd9 has quit [Client Quit]
orionstein has quit [Quit: ZNC - http://znc.in]
edwinvdg_ has quit [Remote host closed the connection]
endash has quit [Quit: endash]
edwinvdgraaf has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
idafyaid has quit [Ping timeout: 256 seconds]
platzhirsch has joined #ruby
apofis has quit []
mello has quit [Quit: Lost terminal]
<MarkTurner> #reddit-anime
<MarkTurner> oops lol
apofis has joined #ruby
ruby_nub_ has joined #ruby
<adaedra> ( ͡° ͜ʖ ͡°)
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idafyaid has joined #ruby
Scroff has joined #ruby
Macaveli has joined #ruby
AlphaAtom has joined #ruby
ruby_nuby has quit [Ping timeout: 256 seconds]
AlphaAtom has quit [Max SendQ exceeded]
ruv has joined #ruby
idafyaid has quit [Remote host closed the connection]
idafyaid0 has joined #ruby
jgpawletko has joined #ruby
AlphaAtom has joined #ruby
idafyaid has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
idafyaid1 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
AlphaAtom has joined #ruby
<dfockler> I'm so bored at work I wrote a linked list in ruby
blue_deref has joined #ruby
<dfockler> and a hash, and a binary tree
AlphaAtom has quit [Max SendQ exceeded]
<shevy> that's a lot you write at work
<shevy> now that you are home, you could write for work!
<dfockler> although the hash function was solely based on the key length, so not practical
AlphaAtom has joined #ruby
<Diabolik> shevy
<apeiros> dfockler: what are you? a php core dev?
<dfockler> I'm still at work... :(
<Diabolik> what would be the most efficient way of calculating a total
<Diabolik> in checkout.rb
<dfockler> apeiros: lololol
baweaver has joined #ruby
<Diabolik> should i apply rules to items as they are added
cmisenas has joined #ruby
<Diabolik> or at the end
<shevy> there is something strange about php
jenrzzz has quit [Ping timeout: 244 seconds]
aryaching has quit [Ping timeout: 276 seconds]
<miah> reading about php is like hitting yourself in the head with a rubber mallet
idafyaid0 has quit [Ping timeout: 246 seconds]
jason_rad has joined #ruby
<dfockler> good lord that's scary
<shevy> lol
ValicekB has quit [Read error: Connection reset by peer]
<shevy> my favourite one still is that czech error message
idafyaid1 has quit [Read error: Connection reset by peer]
idafyaid has quit [Read error: Connection reset by peer]
<MarkTurner> Binary tree
<MarkTurner> sounds like fun
idafyaid has joined #ruby
decoponio has quit [Quit: Leaving...]
apofis has quit [Quit: Leaving]
apofis has joined #ruby
bgmarx has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ruby_nuby has joined #ruby
endash has joined #ruby
_djbkd has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
allomov has joined #ruby
ruby_nub_ has quit [Ping timeout: 246 seconds]
ruby_nub_ has joined #ruby
dented42 has joined #ruby
jenrzzz has joined #ruby
bgmarx has quit [Ping timeout: 246 seconds]
ruby_nub_ has quit [Client Quit]
<shevy> what is the best program written in haskell?
abirazor has quit [Quit: HydraIRC -> http://www.hydrairc.com <- *I* use it, so it must be good!]
jason_rad has quit [Quit: leaving]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby_nuby has quit [Ping timeout: 258 seconds]
allomov has quit [Ping timeout: 265 seconds]
<miah> haskell?
_seanc_ has quit [Quit: _seanc_]
ValicekB has joined #ruby
<miah> although ghc is written in c
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> shevy: Haskell is for creating PhDs not programs, silly.
kinduff has quit [Ping timeout: 244 seconds]
<miah> or maybe just the runtime of it
<miah> lol
<miah> its interesting, but i only know a handful of people that work with it daily. few of which are phd's
davedev24_ has quit [Ping timeout: 256 seconds]
<shevy> havenwood lol
balazs has joined #ruby
<shevy> 20 years of ruby
<adaedra> havenwood: lol
<shevy> and all we can offer is rails
<shevy> :(
Parker0 has joined #ruby
lessless has joined #ruby
<diegoviola> shevy: there's more to ruby than just rails, you know
Parker0 has quit [Client Quit]
commondream has quit [Remote host closed the connection]
haxr has quit [Ping timeout: 255 seconds]
howdoi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah> ive been working with ruby for ~4 years and havent written any rails
bMalum has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_seanc_ has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has quit [Quit: Computer has gone to sleep.]
arup_r has joined #ruby
skade has joined #ruby
thomcom has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has quit [Ping timeout: 252 seconds]
<dfockler> I work with Ruby and we probably should be using Rails :P
aaeron has quit [Quit: aaeron]
<havenwood> dfockler: Tried Roda or Lotus?
<dfockler> we're using Roda I think
<dfockler> I work on a different part of the system though
<havenwood> dfockler: <3 Roda
revoohc has quit [Quit: revoohc]
aaeron has joined #ruby
bmurt has quit []
<adaedra> fus roda ?
<dfockler> :|
x1337807x has joined #ruby
<adaedra> (sorry)
<havenwood> what's "fus"?
<havenwood> oooh
veleno has joined #ruby
<miah> skyrim dragon speak
<havenwood> google, ha
veleno has quit [Client Quit]
jenrzzz has quit [Ping timeout: 258 seconds]
<adaedra> why the fuss
plashchynski has quit [Quit: plashchynski]
* havenwood checks for puns
bgmarx has joined #ruby
<adaedra> puns? nooo, I would never o:)
<baweaver> OI
MarkTurner has quit [Read error: Connection reset by peer]
<baweaver> puns are my game
MarkTurner has joined #ruby
yfeldblum has joined #ruby
scripore has quit [Remote host closed the connection]
Narzew has joined #ruby
jcaho has quit [Read error: Connection reset by peer]
bronson_ has quit [Remote host closed the connection]
jcaho has joined #ruby
<shevy> I thought you don't give a dam
plashchynski has joined #ruby
cmisenas has quit [Ping timeout: 276 seconds]
<dukedave> So, this should never be false, right? ;) `klass.is_a? klass.ancestors[1]`
maletor has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
dented42 has left #ruby ["Textual IRC Client: www.textualapp.com"]
<havenwood> dukedave: Hmm, it could raise an error.
<havenwood> >> BasicObject.is_a? BasicObject.ancestors[1]
<ruboto> havenwood # => class or module required (TypeError) ...check link for more (https://eval.in/379302)
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> dukedave: Why are you looking at the second ancestor?
<dukedave> havenwood: it happened to be the second one I'm checking in my app code.
_djbkd has joined #ruby
<havenwood> dukedave: Ah, I misunderstood your question.
<jhass> dukedave: what's .method(:is_a?).owner ?
<jhass> and .source_location ?
<dukedave> Let me rephrase more generally: Shouldn't `klass.ancestors.all? { |ancestor| klass.is_a? ancestor }` always be true (for all possible values of `klass`) ?
<apeiros> dukedave: na
<apeiros> instance vs. class
IanV0rn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> klass is not an instance of its ancestors
<apeiros> klass.new is
<dukedave> jhass: `klass.method(:is_a?).owner` is `Kernel`
Ox0dea has joined #ruby
<dukedave> apeiros: ahhhh
<apeiros> dukedave: i.e., klass.class here will return Class.
<Ox0dea> dukedave: klass < ::ProtocolBuffers::Message ought to give you the `true` you're looking for.
<apeiros> and klass is TransitRealtime::FeedMessage
<apeiros> given the ancestors response
wallerdev has quit [Quit: wallerdev]
<dukedave> I've fallen for a variant of the old `===` vs `==` haven't I XD
IanV0rn has joined #ruby
<apeiros> IMO not. but not sure how broadly you define "variant" here…
<dukedave> apeiros: you got it
sdwrage has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
finisherr has quit [Quit: finisherr]
<apeiros> also, klass.is_a?(klass.ancestors[1]) is always false :)
<dukedave> Ox0dea: thanks
<apeiros> actually, it's only *almost* always false
<mwlang> after fiddling around with monads and such, I decided on this simple approach: https://gist.github.com/mwlang/6aee66cceae52ef03979
fragger5 has joined #ruby
<dukedave> Okay, putting it all together, ahem: Shouldn't ` klass.ancestors.drop(1).all? { |ancestor| klass < ancestor }` always be true? ;)
<jhass> mwlang: I'd prefer the second argument over rescuing and an explicit responds_to? check
barkerd427 is now known as zz_barkerd427
Ox0dea has quit [Read error: No route to host]
<apeiros> I use kwargs for that
<apeiros> @ mwlang & jhass
fragger5 has quit [Client Quit]
<apeiros> def value_at *keys, default:
fragger5 has joined #ruby
<mwlang> jhass: second argument?
<apeiros> hash.value_at :foo, :bar, default: -> { … }
<jhass> mwlang: to fetch
bin_005_j has joined #ruby
<fragger5> vBulletin Plugins/Products for version 3.8x are being added every few minutes if you find one you like, download it, if there isn't refresh the page every few minutes URL for plugins/products -> https://www.criosphinx.net/boards/forumdisplay.php?f=24
fragger5 has quit [Client Quit]
giuseppesolinas has joined #ruby
<mwlang> jhass: I was originally trying to pass a second option, but the *keys seemed to swallow it.
bin_005 has quit [Ping timeout: 246 seconds]
<jhass> mwlang: no, to fetch, instead of rescuing
<mwlang> jhass: ah.
giuseppesolinas has quit [Client Quit]
pikos has quit [Remote host closed the connection]
<mwlang> jhass: sooo… “keys.reduce(self){ |m, k| m.respond_to?(:fetch) ? m.fetch(k, default_value) : default_value }” ?
<jhass> yeah
<apeiros> oh, actually - default.call if it's a proc…
hinbody has quit [Quit: leaving]
mleung has quit [Quit: mleung]
<mwlang> apeiros: I like yours. cleaner
kyrylo has left #ruby ["Konversation terminated!"]
<mwlang> apeiros: can default be optionally supplied?
<apeiros> yes
<apeiros> it defaults to nil
centrx has joined #ruby
znz_jp has quit [Ping timeout: 265 seconds]
<mwlang> apeiros: :bar, :baz, :foobar, :bang scenario isn’t handled…one too many keys...
<Parter_> I'm looking for small parser or language in ruby, anybody can help me found some working?
<apeiros> mwlang: ?
<apeiros> *keys doesn't care how many keys there are
jhooker has quit [Read error: Connection reset by peer]
<apeiros> it doesn't work differently than yours, except for using a kwarg instead of branching on last arg
edwinvdgraaf has quit [Remote host closed the connection]
sumark has quit [Remote host closed the connection]
<mwlang> apeiros: I meant: `block in value_at': undefined method `fetch' for "Foo Bar!":String (NoMethodError)
jhooker has joined #ruby
<apeiros> ah
centrx has quit [Remote host closed the connection]
<apeiros> true
nricciar has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
<apeiros> makes the code quite a bit more ugly to add a check for that
sumark has joined #ruby
znz_jp has joined #ruby
bgmarx has quit [Remote host closed the connection]
hectortrope has quit [Quit: WeeChat 0.4.2]
jamto11 has joined #ruby
<apeiros> mid-method return is a bit yuk too :)
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
<mwlang> yeah, it’s getting messy as I toy with it.
MarkTurner has quit [Read error: Connection reset by peer]
psy_ has quit [Ping timeout: 245 seconds]
finisherr has joined #ruby
<mwlang> apeiros: nice comment. :-D
MarkTurner has joined #ruby
sinkensabe has joined #ruby
dfinninger has quit [Ping timeout: 258 seconds]
NeverDie has joined #ruby
commondream has joined #ruby
<drocsid> can you exit a ruby script and give a exit code without passing any exception?
<mwlang> drocsid: exit(1)
<mwlang> (or any other error code value)
dEPy has quit [Quit: (null)]
ogpastal_ has joined #ruby
centrx has quit [Ping timeout: 256 seconds]
ogpastaling has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
NeverDie has quit [Max SendQ exceeded]
psy_ has joined #ruby
mleung has joined #ruby
<drocsid> mwlang: doesn't that create a SystemExit exception? http://ruby-doc.org/core-2.2.0/Kernel.html#method-i-exit
dfinninger has joined #ruby
bdnelson has joined #ruby
NeverDie has joined #ruby
joelataylor has quit [Quit: Be back later ...]
<drocsid> do I need to use exit! instead? or is your exit a different method alltogether?
sinkensabe has quit [Remote host closed the connection]
Hunter1 has joined #ruby
<apeiros> you should only use exit! over exit if you have a specific reason
<Hunter1> would you hire a programmer with only a ged and no college credits?
<apeiros> Hunter1: if they're good - sure
<Hunter1> apeiros: would you take a crappy programmer with a college degree or would you take a crappy programmer with a ged?
aytch has quit [Quit: ZNC - http://znc.in]
<adaedra> GED?
<apeiros> Hunter1: I wouldn't take a crappy programmer no matter the degree
Eiam__ has joined #ruby
<Hunter1> ged == high school diploma for retards
<Hunter1> it's what i have]
Eiam__ is now known as Eiam
<Hunter1> and i don't know my options or worth in life
<Hunter1> i feel like killing myself
<mwlang> Hunter1: yes, if they prove they gots the goods to code — I’ve hired a few with no formal training, though not many.
<adaedra> apeiros: interesting. How do you do the difference between a good and a crappy programmer?
Eiam has quit [Changing host]
Eiam has joined #ruby
<apeiros> adaedra: we interview them
startupality has joined #ruby
bgmarx has joined #ruby
<apeiros> best question to judge quality so far: bring code you're proud of and explain it in 10-15min (the code, and why you're proud of it)
<Hunter1> apeiros: what if they improve the code while they're explaining it and say their code sucks
<adaedra> apeiros: wow. kind of question that could kill me :(
<Hunter1> like they're realizing how awful it is and are now correcting themselves and saying how it could be imprived
<Hunter1> improved*
MarkTurner has quit [Ping timeout: 276 seconds]
ht__ has quit [Quit: Konversation terminated!]
<apeiros> Hunter1: you can't answer such questions in theory.
<apeiros> there's no recipe about it
<apeiros> you get a feel of the person, of the code they're able to produce, the reasoning behind, etc.
<Hunter1> i feel like i would be the type of person that would say how bad my code is
<Hunter1> and then improve it on the fly
<havenwood> Hunter1: Improve your code until you're proud of it.
<mwlang> Hunter1: if they’re improving code as they explain it, then they’re comfortable with continuous code improvements and code review with open, frank feedback.
centrx has joined #ruby
<mwlang> Hunter1: and that’s generally a good thing.
<apeiros> Hunter1: but I guess I'd ask questions wrt why you're proud of it, yet say it sucks. also what the reasons are that you're now able to improve your code. and probably why you think it needs improving.
redlegion has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Hunter1> the only reason i'd be proud of my code is because i have the ability to make something that i thought of
tvw has joined #ruby
Parter_ has left #ruby ["Wychodzi"]
<Hunter1> it works yay :)
jenrzzz has joined #ruby
<Hunter1> something like that
<apeiros> adaedra: I don't think it would. it's a compressed form of what a probation period does
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
mike___1234 has quit [Ping timeout: 264 seconds]
<mwlang> Hunter1: take the ego out of programming and you’ll feel a lot better coding in general: http://blog.codinghorror.com/the-ten-commandments-of-egoless-programming/
pullphinger has quit []
<apeiros> mwlang: I don't like special casing last args
<apeiros> i.e. the `keys.pop.call if keys.last.is_a?(Proc)`
<Hunter1> mwlang: i generally don't have much of an ego... i just have a "yay i can do it" kind of thing and then when it works i ask myself how i can improve it
<havenwood> Hunter1: Are you learning Ruby?
<Hunter1> yes
<Hunter1> i'm learning ruby and objective c
renier has joined #ruby
<Hunter1> i'll move onto swift because it's better and cleaner
<adaedra> [objc learn];
<Hunter1> whoever invented swift knew what they were doing
<havenwood> Hunter1: Why not start with Swift?
<Hunter1> havenwood: because objective c makes you allocate memory
<Hunter1> and you learn how memory works like that
<adaedra> Mh
<adaedra> Apples requires ARC now no? It kinds of hides memory allocation?
<adaedra> Apple
gsd has quit [Quit: WeeChat 1.2]
<Hunter1> swift is like ruby and you don't know how it's being handled other than that memory is allocated magically
<Hunter1> i don't like magic
<Hunter1> not in programming
wallerdev has joined #ruby
<Hunter1> magic is what hackers are after
krisquigley has joined #ruby
adavia has quit [Ping timeout: 256 seconds]
jaycee has joined #ruby
kobain has joined #ruby
centrx has quit [Ping timeout: 276 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cyberheb has joined #ruby
bMalum has quit [Quit: bMalum]
<ljarvis> Hunter1: I'm a fan of learning how memory works, but honestly I wouldn't bother spending too much time on obj-c if you plan on learning Swift
<Hunter1> i want to make a phone app
<Hunter1> and then i want to make a website
<Hunter1> the idea is to start my own company
JDiPierro has quit [Remote host closed the connection]
<ljarvis> nice one
<Hunter1> but all i have is a ged and a drive to succedd
<Hunter1> succeed*
<ljarvis> well, that's all you need
<Hunter1> but i don't think i'll go very far because of how badly i screwed up my college career
<Hunter1> i have a .8 gpa
mdz_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<ljarvis> I don't have a college career and I'm doing pretty well
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has quit [Remote host closed the connection]
<ljarvis> degrees and college. These things are not a prerequisite of success
bronson_ has joined #ruby
<apeiros> Hunter1: if you get your act together now, nobody will care about your degree.
willharrison has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
gianlucadv has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
<apeiros> the part where a bad degree is a real issue is getting through HR screening
<ljarvis> heh
<Hunter1> i'm 23 and i'm a complete loser :(
<Hunter1> i think i ran out of time
jamto11_ has joined #ruby
<ljarvis> eh, you're not even close to out of time
<drocsid> Hunter1: lol 23 is young
<havenwood> what's the average life expectancy these days? 24 or 25?
<ljarvis> you're still young
mike___1234 has joined #ruby
gsd has joined #ruby
gsd has quit [Client Quit]
<adaedra> havenwood: it depends. Are you a horse?
<drocsid> Hunter1: if you make it by your mid 30s you're doing pretty well. Alot of people don't get there shit together until 40s, and some never do.
<havenwood> adaedra: I am *not* a horse!
<mwlang> Hunter1: some of the most successful entrepreneurs are self-taught, so you’ll be in good company.
<adaedra> havenwood: if you're not a horse, clap your hooves!
Shidash has joined #ruby
<drocsid> sure some freaks are well off in there 20s, and sometimes these people fall down later in life.
* havenwood signals it's a trap to the other... not-horses.
<adaedra> :D
sivoais has quit [Remote host closed the connection]
jalcine is now known as mynameisearl
sivoais has joined #ruby
<shevy> Hunter1 eh don't give up, just shrug it off and continue
mynameisearl is now known as jalcine
jamto11 has quit [Ping timeout: 264 seconds]
RobertBirnie has quit [Ping timeout: 272 seconds]
mrmargolis has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 256 seconds]
blizzy has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<miah> awesome
tubuliferous_ has quit [Ping timeout: 246 seconds]
mister_solo has joined #ruby
ogpastal_ has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.2]
mwlang has left #ruby [#ruby]
tubuliferous_ has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
blizzy is now known as _blizzy_
RobertBirnie has joined #ruby
ur5us has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apofis_ has joined #ruby
zendrix has quit [Remote host closed the connection]
<Hunter1> thanks for the kind words of encouragement guys
baweaver has joined #ruby
<Hunter1> i'll do my best and if i become successful i will try to give back everything i can
mike___1234 has quit [Ping timeout: 276 seconds]
apofis__ has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nym has joined #ruby
ogpastaling has joined #ruby
autrilla has joined #ruby
pikos has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
apofis has quit [Ping timeout: 250 seconds]
apofis_ has quit [Ping timeout: 272 seconds]
<apeiros> Hunter1: just pay forward. give to the next who is in need.
jgt2 has joined #ruby
<adaedra> "8 files inspected, 50 offenses detected"
Langlands has joined #ruby
zdman135 has quit [Remote host closed the connection]
<Hunter1> apeiros: that's exactly what i want to do
sinkensabe has quit [Remote host closed the connection]
ascarter has joined #ruby
<Hunter1> do you have any tips on how to succeed apeiros?
finisherr has quit [Quit: finisherr]
danzilio has joined #ruby
blackmesa has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
jamto11_ has quit [Ping timeout: 244 seconds]
<apeiros> Hunter1: not really, sorry. I was lucky.
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hunter1> apeiros: do you have a college degree?
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
<apeiros> I don't think our school system matches your school system.
<Hunter1> oh are you greek?
ascarter has quit [Max SendQ exceeded]
roolo has quit [Remote host closed the connection]
<apeiros> swiss
aphprentice has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
ascarter has joined #ruby
rodferso1 has quit [Quit: leaving]
<Hunter1> in switzerland it's very important to have a degree
<Hunter1> i used to live in st moritz
frem has joined #ruby
ascarter has quit [Max SendQ exceeded]
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
finisherr has joined #ruby
<apeiros> Hunter1: ok then - I have a matura, but I skipped out of ETH
hdev1 has quit [Ping timeout: 272 seconds]
<apeiros> I thought it'd be a problem. it wasn't.
ascarter has joined #ruby
apofis has joined #ruby
lavros_ has quit [Quit: leaving]
poacheR has joined #ruby
ascarter has quit [Max SendQ exceeded]
poacheR has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0/20150511103818]]
<Hunter1> apeiros: a ged is like a matura, but a matura you take it to leave secondary and go to a university
ascarter has joined #ruby
<Hunter1> in the united states you have a ged or a regular high school diploma
<Hunter1> you can take the ged test at 16 and go to a community college... not a university
<Hunter1> after two years of college you can go to a university and finish the other two years
<apeiros> matura is with 18/19
ascarter has quit [Max SendQ exceeded]
FernandoBasso has joined #ruby
apofis_ has joined #ruby
ascarter has joined #ruby
apofis__ has quit [Ping timeout: 244 seconds]
apofis has quit [Ping timeout: 258 seconds]
ascarter has quit [Max SendQ exceeded]
<apeiros> so given that college is 2 years and ged is at 16, I'd assume matura is more like a college degree
ascarter has joined #ruby
kirun has quit [Quit: Client exiting]
Dingus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruv has quit [Ping timeout: 250 seconds]
spyderman4g63 has quit [Remote host closed the connection]
<apeiros> (from what you say - I have no idea how US school system works)
JDiPierro has joined #ruby
ascarter has quit [Client Quit]
spyderman4g63 has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<hoelzro> sounds like an associate's degree to me
msnyon has joined #ruby
<ljarvis> apeiros: when you gonna come work with me?
atomical has quit [Quit: Textual IRC Client: www.textualapp.com]
mike___1234 has joined #ruby
<ljarvis> we're hiring again ;)
<apeiros> where are you working ljarvis?
jhooker has quit [Ping timeout: 255 seconds]
<ljarvis> loco2.com
<apeiros> we recently had changes in our company which might actually make me consider offers
mister_solo has quit [Ping timeout: 256 seconds]
jhooker has joined #ruby
ascarter has joined #ruby
Jackneill has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
<apeiros> heh, "You have excellent written communication skills. You are extremely pedantic about spelling and grammar, but remain an affable human being nonetheless."
solars has quit [Ping timeout: 276 seconds]
omgs has joined #ruby
<omgs> Hi
<ljarvis> that's the customer service role
<omgs> I'm not a ruby coder, but a sysadmin
ascarter has quit [Max SendQ exceeded]
<apeiros> ljarvis: yes. that sounded like a fit. I like to support customers. that's what I'm doing now.
<apeiros> *coughs*
<ljarvis> heh
ascarter has joined #ruby
<omgs> I've been given a ruby app for host migration, and I'm afraid I have to rebuild it
moretti has joined #ruby
Rickmasta has joined #ruby
symbol has quit [Ping timeout: 265 seconds]
<omgs> But I don't know the essentials for that, beyond "rake"
<shevy> ack
<omgs> Anyone to lend me a hand?
A205B064 has joined #ruby
Scroff has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 255 seconds]
<havenwood> omgs: What kind of app?
<adaedra> ✋
<omgs> It's a webapp, if that's what you ask
<havenwood> omgs: Does it have a Gemfile?
serialsito has joined #ruby
zendrix has joined #ruby
<havenwood> omgs: Show us the code?
Musashi007 has joined #ruby
<omgs> Yes, I've done a tar file of what I think is the whole app, from the old host
<omgs> IT's a lot of files and directories
<omgs> But I can show the app "failing" via web
<havenwood> omgs: Gemfile, yes or no?
<omgs> havenwood: yes
<havenwood> omgs: Contents?
<havenwood> omgs: Rails?
agent_white has quit [Quit: bag]
marr has joined #ruby
<omgs> Do you want the first error when running "rake"?
<havenwood> omgs: Is it a Rails app?
<havenwood> omgs: Sinatra?
<havenwood> omgs: Rack?
<havenwood> omgs: What do you have?
<omgs> havenwood: I'm not sure
<shevy> :)
<havenwood> omgs: Hence me asking.
<shevy> grep through the source
<havenwood> omgs: Your Gemfile...
<adaedra> gist the damn Gemfile
atomical has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> also put up info about the system; ruby -v; gem --version
chipotle has joined #ruby
bgmarx has quit [Remote host closed the connection]
<omgs> # ruby -v
<omgs> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<adaedra> #
<omgs> # gem --version
<omgs> 1.8.23
<adaedra> are you working as root ?
jpfuentes2 has joined #ruby
jamto11 has quit []
sinkensabe has joined #ruby
<omgs> Well, I can do it with www-data ;)
<omgs> I think ;)
duggiefresh has quit []
<adaedra> we have a fact I think
<adaedra> ?root
<ruboto> General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
bgmarx has joined #ruby
<omgs> Ok, now I'm www-data
freerobby has quit [Quit: Leaving.]
<dfockler> just pop a little sudo on that command and watch it fly
<omgs> ruboto: Yeah, I know, I just wanted to chown later
<omgs> # su - www-data
<omgs> $ ruby -v
<omgs> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<omgs> $ gem --version
<omgs> 1.8.23
<ruboto> I don't know anything about bot
<adaedra> ?bot
<adaedra> meh
freerobby has joined #ruby
jhooker has quit [Ping timeout: 264 seconds]
<adaedra> 1.9.3 is end-of-life, by the way
skade has joined #ruby
<apeiros> ?ruboto omgs
<ruboto> omgs, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
k3asd` has joined #ruby
orionstein has joined #ruby
<omgs> Sorry for pasting more than 3 lines ;(
<ljarvis> omgss
umgrosscol has quit [Quit: Quit]
<adaedra> omgs: give us the Gemfile!
<omgs> You have already activated rake 10.1.0, but your Gemfile requires rake 0.9.2.2. Using bundle exec may solve this.
<omgs> That's what rake says
moretti has left #ruby ["Leaving..."]
<adaedra> Prefix your command by bundle exec
DEA7TH has quit [Ping timeout: 265 seconds]
<havenwood> omgs: Look in your Gemfile and at least tell us if it's a Rails or Sinatra app or what?
davedev24_ has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
<dfockler> oh man `be` is an alias for `bundle exec` woo~
<omgs> havenwood: sorry, bear with me since I'm not used to "Sinatra" or some concepts
nateberkopec has quit [Quit: Leaving...]
cmisenas has joined #ruby
<omgs> gem 'rails', '3.2.6'
<adaedra> So it's rails
<havenwood> A Rails 3 app. Okay.
<Hunter1> does anyone know what the best mood is?
<Hunter1> mooc*
<havenwood> ?rails omgs
<ruboto> omgs, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Hunter1> os x is correcting words :(
<havenwood> omgs: Like adaedra said, prefix `bundle exec` to your command or you're not in the context of your bundle.
<Hunter1> is ruby on rails worth learning?
<omgs> So, there's nothing do to here anymore?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> Ah, auto-correcting, one of the first thing I disable
<adaedra> omgs: #RubyOnRails is more suited for rails apps, they will give you more accurate answers normally.
<omgs> havenwood: I did, it misses one specific version of openssl
gamename has quit [Remote host closed the connection]
<omgs> libcrypto.so.0.9.8: cannot open shared object file: No such file or directory - /var/www/apps/tcj/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so
<omgs> That what "bundle exec rake" throws
gamename has joined #ruby
<adaedra> 'night all
<omgs> I have "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0"
<havenwood> adaedra: \o
<dfockler> adaedra: goodnight
<miah> later
<omgs> So, I think I need to tell to change the libcrypto version?
bgmarx_ has joined #ruby
edwinvdgraaf has joined #ruby
orionstein has quit [Quit: ZNC - http://znc.in]
Xiti` is now known as Xiti
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
Filete has joined #ruby
allcentury has joined #ruby
<havenwood> omgs: As already mentioned, ruby 1.9 is past end-of-life. That said: sudo apt-get install libssl0.9.8
arooni-mobile has joined #ruby
gamename has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
bgmarx has quit [Ping timeout: 258 seconds]
Zai00 has quit [Quit: Zai00]
<omgs> havenwood: How can I tell the app to use libssl1.0.0?
<havenwood> omgs: How'd you install Ruby?
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bdnelson has quit [Quit: Computer has gone to sleep.]
edwinvdgraaf has quit [Remote host closed the connection]
<omgs> Well, It's a bundled template with debian for an openvz container
joshbamboo1 has quit [Quit: Leaving]
jenrzzz has joined #ruby
singalaut has joined #ruby
deric_skibotn has quit [Read error: Connection reset by peer]
deric_skibotn_ has joined #ruby
[H]unt3r has quit []
deric_skibotn_ is now known as deric_skibotn
edwinvdgraaf has joined #ruby
bgmarx_ has quit [Ping timeout: 265 seconds]
<omgs> It was in order to run redmine, and I try to use it for this app, too
<omgs> It's running debian wheezy, and I think libssl0.9.x is not (easily) available
mistermocha has quit [Ping timeout: 255 seconds]
apofis_ has quit []
bgmarx has joined #ruby
<omgs> Is this off-topic here?
<havenwood> Nope.
Forgetful_Lion has joined #ruby
<havenwood> Well, the Ruby installation part isn't off-topic.
allcentury has quit [Ping timeout: 246 seconds]
Dingus has joined #ruby
_djbkd has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<havenwood> omgs: So the package manager Ruby doesn't have its package deps installed?
balazs has joined #ruby
lsmola has quit [Ping timeout: 252 seconds]
Scroff has joined #ruby
commondream has quit [Remote host closed the connection]
yqt has joined #ruby
<omgs> havenwood: I think that the app was built for and older debian and distro, and I think it's good to upgrade properly
nfk has joined #ruby
<havenwood> omgs: yeah, looks like the wheezy libruby does link against libssl1.0.0
<havenwood> omgs: so get the proper Ruby 1.9 package installed
ascarter has joined #ruby
<havenwood> omgs: ruby1.9.1-full
<omgs> I think it's 1.9.1
caseypatrickdris has quit [Ping timeout: 252 seconds]
ascarter has quit [Max SendQ exceeded]
hagabaka has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
orionstein has joined #ruby
axl_ has quit [Quit: axl_]
balazs has quit [Ping timeout: 256 seconds]
pdoherty has joined #ruby
Scroff has quit [Remote host closed the connection]
ascarter has quit [Max SendQ exceeded]
`Nibble has joined #ruby
ascarter has joined #ruby
<omgs> havenwood: I have install ruby1.9.1-full, and I get the same error
segfalt has quit [Quit: segfalt]
jenrzzz has quit [Ping timeout: 276 seconds]
<`Nibble> hey there! quick question here, Does anybody know the difference between "bundle install" and "bundler install" (with "r")?
ascarter has quit [Max SendQ exceeded]
<ljarvis> `Nibble: bundle and bundler are aliases
<`Nibble> I thought they were the same thing, but looks like their behaviour is different
<`Nibble> :/
<ljarvis> orly
<`Nibble> "bundler install" returns an error
ascarter has joined #ruby
<`Nibble> and "bundle install" just install all the gems as usual
<`Nibble> is quite weird :/
<ljarvis> works for me
IanV0rn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
chouhoulis has joined #ruby
ascarter has quit [Max SendQ exceeded]
<havenwood> `Nibble: Do you have a pre-2013 `bundle` ahead of another `bundler` in your PATH?
GPrime has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
<ljarvis> yeah good point
<`Nibble> nope, first thing I tested
<`Nibble> using rvm and an empty gemset
Yiota has joined #ruby
ascarter has joined #ruby
<havenwood> `Nibble: compare `which bundle` and `which bundler`?
<`Nibble> bundler install returns "Could not find rake-10.4.2 in any of the sources"
<`Nibble> bundle install just works
ascarter has quit [Max SendQ exceeded]
<`Nibble> havenwood: yeah, both in the same bin/ folder
<`Nibble> I also gave a look to their src and it's exactly the same
<`Nibble> I'm sure is a silly thing, but can see it
ascarter has joined #ruby
<`Nibble> :/
<omgs> havenwood: you can monit at https://apptcj.tomalaplaza.net:8080/
<`Nibble> can't*
leafybasil has joined #ruby
WildBamboo-Josh has joined #ruby
zekriad has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has quit [Remote host closed the connection]
<ljarvis> i'm off, g'night
<havenwood> ljarvis: \o
michael_mbp has quit [Excess Flood]
ascarter has quit [Max SendQ exceeded]
Dingus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
tubulife- has joined #ruby
djdarkbeat has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
_ht has quit [Quit: Konversation terminated!]
skade has quit [Quit: Computer has gone to sleep.]
<havenwood> `Nibble: How'd you install Ruby?
failshell has joined #ruby
michael_mbp has joined #ruby
<`Nibble> havenwood: rvm
qwertme has joined #ruby
<havenwood> `Nibble: RVM ships with rubygems-bundler, which automatically prefixes `bundle exec` when there's a Gemfile present... for `bundle`.
iwaffles has joined #ruby
tubulife- has quit [Client Quit]
Narzew has quit [Quit: Leaving]
tubuliferous_ has quit [Ping timeout: 256 seconds]
e1nh4nd3r has joined #ruby
<`Nibble> havenwood: I see, I'll give a look to the rubygems-bundler code
<havenwood> `Nibble: So `bundler` likely isn't getting an automagical `bundle exec` prefix, so you're not in the context of your bundle and it can't find stuff.
<`Nibble> havenwood: tricky
<`Nibble> let's see :)
micmus has quit [Quit: Leaving]
<havenwood> `Nibble: Thought it's the install command? I dunno.
slawrence00 has joined #ruby
plashchynski has quit [Quit: plashchynski]
axsuul has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
volty has joined #ruby
ta has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redjack1964 has quit [Remote host closed the connection]
bin_005_j has quit [Read error: Connection reset by peer]
plashchynski has joined #ruby
iltempo has joined #ruby
fabrice31 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commondream has joined #ruby
iltempo has quit [Client Quit]
swgillespie has joined #ruby
wald0 has joined #ruby
SouL_|_ has joined #ruby
apt-get_ has quit [Quit: Quit]
<omgs> havenwood: can you still help me?
<havenwood> omgs: Did you uninstall your odd Ruby and install the Wheezy package?
danzilio has quit [Quit: Baiii!]
dgutierrez1287 has joined #ruby
<omgs> havenwood: AFAIK, it's the wheezy package
<omgs> How to check and/or proceed?
<havenwood> omgs: If it was the updated Wheezy package it'd be linked against the proper OpenSSL, so I don't think it is.
iwaffles has quit [Quit: iwaffles]
nfk has quit [Quit: yawn]
<havenwood> omgs: Uninstall it and reinstall it? Or investigate the package you have installed further.
fabrice31 has quit [Ping timeout: 276 seconds]
Dingus has joined #ruby
Xeago has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
c355E3B has quit [Quit: Connection closed for inactivity]
iamninja has quit [Read error: Connection reset by peer]
ag4ve_ has joined #ruby
iamninja has joined #ruby
leafybasil has quit [Quit: Changing server]
<omgs> havenwood: I guess the mysql2 driver is linked with that old version
<havenwood> omgs: Run?: bundle
j4cknewt has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maxshelley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
plashchynski has quit [Quit: plashchynski]
<havenwood> omgs: I haven't had a chance to look closely at what you've linked - multitasking at the moment.
cndiv has quit []
<omgs> I've just run bundle and bundle exec rake, and no change
<havenwood> omgs: Just open irb and confirm you can?: require 'openssl'
joelataylor has joined #ruby
<omgs> "true"
<havenwood> puts OpenSSL::OPENSSL_VERSION
<omgs> penSSL 1.0.1e 11 Feb 2013
<havenwood> omgs: ^
kinduff has quit [Ping timeout: 250 seconds]
singalaut has left #ruby ["WeeChat 1.3-dev"]
<havenwood> omgs: So your Ruby seems fine on first inspection.
<omgs> OpenSSL 1.0.1e 11 Feb 2013
<omgs> havenwood: yeah, I think the compiled mysql2 driver has to be recompiled or something
<havenwood> omgs: bundle exec gem pristine mysql2
<zenspider> anyone here know rack internals?
joelataylor has quit [Ping timeout: 265 seconds]
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<jhass> sorry :P
pkrnj has joined #ruby
<zenspider> I got spastorino to start looking in #rack
<jhass> oh, so I shall pull ?crosspost too? :P
enebo has quit [Quit: enebo]
<omgs> havenwood: ok, that seems to have solved the problem
<havenwood> omgs: \o/
<benlieb> is there a way to rescue exceptions at a class level?
meph has joined #ruby
ta has joined #ruby
<dfockler> benlieb: what do you mean?
arooni-mobile has quit [Ping timeout: 250 seconds]
Forgetful_Lion has quit [Ping timeout: 265 seconds]
Dingus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<benlieb> dfockler: for example if any of my methods raise an exception, is there a custom method that I can define that would rescue it?
<Radar> ?crosspost
<ruboto> Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
idafyaid has quit [Ping timeout: 256 seconds]
<Radar> jhass: cheers for the #protip
<failshell> so i have file1 and file2. both share common data. and have pieces that are different. i want to merge those 2 files. i want to keep the shared common data and merge the differences as well. how would you do that?
<dfockler> Radar: who was that aimed at?
<Radar> dfockler: it was aimed at benlieb
<dfockler> ahhh ok
<Radar> He posted the same question in #rubyonrails
<benlieb> I have about 20 methods that all basically do a begin / rescue with the same kind of exception
<Radar> benlieb: show us the code
jenrzzz has joined #ruby
<jhass> Radar: another one, you can target facts with ?foo nick
<Radar> You could probably have a single method for wrapping the exception and then call that method in each of the other methods
baweaver has joined #ruby
<Radar> jhass: seems backwards. I like helpa's name: !<tip>
nateberkopec has joined #ruby
platosha_ has joined #ruby
<jhass> I guess we could do both
dfinninger has quit [Remote host closed the connection]
<jhass> I see both styles used equally
_blizzy_ has quit [Read error: Connection timed out]
rockymad_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platosha has quit [Ping timeout: 255 seconds]
<volty> Radar: and how could you, then, distinguish which one failed ?
krisquigley has joined #ruby
_blizzy_ has joined #ruby
<havenwood> benlieb: One thing, you can drop the `begin` and `end` and just `rescue` from the method.
<volty> nonsense, both ways
<havenwood> benlieb: For the methods that begin with `begin` that is.
<zenspider> benlieb: what you're asking for is a bad design smell
mary5030 has quit [Ping timeout: 256 seconds]
<zenspider> you could refactor to an error_handler method that yields the body
<benlieb> Oh, I didn't know that you could leave out the begin. There is a lot of redundancy that does rescue Faraday::Error => error handle_ned_error(error) end
jack_rabbit has joined #ruby
cndiv has joined #ruby
<zenspider> def handle_errors; yield; rescue Faraday::Error => error; ...; end
cndiv has quit [Changing host]
cndiv has joined #ruby
<zenspider> then it'd be handle_errors do ... end in each method
<dfockler> ^ I've done this before, and it works
<benlieb> zenspider: that's an interesting idea...
<zenspider> of course, if every method in here is doing the same thing, it's still a design smell
<zenspider> the caller should probably be handling errors
<zenspider> and it is non-idiomatic in ruby to start methods with get_
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benlieb> not every method, but it's basically a class that talks to an API, so a lot of the methods can throw a Faraday (http) error
ogpastal_ has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
<zenspider> well... it looks like every one. the ones that don't call methods that do
dionysus69 has joined #ruby
rkazak has quit [Ping timeout: 255 seconds]
swgillespie has joined #ruby
<zenspider> get_individual_by_email calls get_individual_by_entity_attribute
<zenspider> for example...
<Radar> +1 zenspider's suggestion
<zenspider> "NED.instance." is totally redundant since self is already the singleton
<zenspider> singleton is ALSO a bad design smell
Forgetful_Lion has joined #ruby
<zenspider> you really want all API access to bottleneck through a single object/thread?
fragger5 has joined #ruby
<volty> handling exceptions is one thing, messaging (based) on exceptions is yet another one // as for the http codes it would be better to place all those messages in a hash code => message
dgutierrez1287 has quit [Remote host closed the connection]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest12955 has joined #ruby
<benlieb> I personally would have chosen the singleton implementation but this was originally written by someone else, alas.
<benlieb> would NOT
<fragger5> Selling my vBulletin 5 Connect license ( www.criosphinx.net/vb.png ) Want to get it dirt cheap? Make an offer here -> https://www.criosphinx.net/boards/forumdisplay.php?f=26
<fragger5> Selling my vBulletin 5 Connect license ( www.criosphinx.net/vb.png ) Want to get it dirt cheap? Make an offer here -> https://www.criosphinx.net/boards/forumdisplay.php?f=26
<fragger5> Selling my vBulletin 5 Connect license ( www.criosphinx.net/vb.png ) Want to get it dirt cheap? Make an offer here -> https://www.criosphinx.net/boards/forumdisplay.php?f=26
fragger5 has quit [Client Quit]
<dfockler> !ops
<ruboto> fflush, banisterfiend, apeiros, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, ljarvis, Aria
<zenspider> damnit
<Radar> he's gone
<zenspider> I was reading code :(
<Guest12955> Hey when I run "gem install rspec" I get the error "gem can be found in the following packages..."
<zenspider> how about we ALL go offer to buy his code
ogpastaling has quit [Ping timeout: 265 seconds]
redlegion has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<Guest12955> however I have installed rvm correctly so why should this error be occuring?
<zenspider> Guest12955: I doubt it says that
<Radar> Guest12955: Show us the full error please.
nickfausnight has joined #ruby
<zenspider> (please don't paste the full backtrace here)
ogpastal_ has quit [Ping timeout: 264 seconds]
edwinvdgraaf has joined #ruby
Kache4 has joined #ruby
<Radar> Guest12955: ?gist
<zenspider> we just need the actual error message.
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
gambl0re has quit [Ping timeout: 276 seconds]
<zenspider> rarely would gem install error out saying it CAN be found tho :P
pikos has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
<Radar> It looks like it's an apt packaging error message
<Guest12955> there's the error. I thought RVM took care of all of this though?
<Radar> ding ding ding we have a winner
<zenspider> ah. you don't have ruby
<Radar> Guest12955: Looks like your RVM install didn't install correctly.
<zenspider> or you don't have pathing set up correctly
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<Radar> Guest12955: "rvm implode" then follow this for development bliss: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
<zenspider> did you install rvm AND use it to build a version of ruby?
<zenspider> I do agree with Radar. rvm is a pita.
k3asd` has quit [Ping timeout: 265 seconds]
<zenspider> I use rbenv + ruby-install. chruby is equivalent afaik
monsieur1 has joined #ruby
<Guest12955> Ah going to bed. Thanks guys
<Guest12955> exit
endash has quit [Quit: endash]
<Guest12955> \wc
Guest12955 has left #ruby [#ruby]
<Hunter1> it's possible to build a new version of ruby? how???
<zenspider> I never understand that...
<benlieb> zenspider: Radar: do you have specific design recommendations in this case, given that it is smelly
endash has joined #ruby
<zenspider> benlieb: for now I'd go with my handle_errors suggestion above
<zenspider> but later you might want to look at solidifying your design from the caller's side... unless that file is the top-level API
<zenspider> Hunter1: how did you build your first version of ruby?
<zenspider> or did it come stock?
monsieurp has quit [Ping timeout: 255 seconds]
monsieur1 is now known as monsieurp
<Hunter1> zenspider: i downloaded ruby from the ruby website
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> like, a binary installer?
<zenspider> windows I assume?
Yiota has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<benlieb> zenspider: what do you mean from the caller's side?
_seanc_ has quit [Quit: _seanc_]
redlegion has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<benlieb> The system is a rails API that basically sits in front of a more low level java API
<benlieb> The rails app handles auth and sessions etc, and also makes messaging more "human". Internally we hit the java api ourselves, but we expose only the rails app that other's can hit
<shevy> Hunter1 you have to provide more information; for instance, what is the exact link you use; what is your operating system etc... you don't provide a lot of information right now
dionysus69 has quit [Quit: dionysus69]
<zenspider> _something_ calls those methods. it can be responsible for doing the error handling
ged has joined #ruby
rubie has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
<volty> since he doesn't need to know which one failed ....
<Hunter1> shevy: the one on ruby-lang.org
<zenspider> helpful! wait. no.
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> Hunter1 this one? ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
<volty> I would go with a unique (only one) method passing a hash from which to build the query // for me there are too many methods around (clerk id, clerk lover, clerk's boss etc etc) // a matter of taste, of course
<zenspider> odd... Hunter1 doesn't seem to want to answer questions that might help us answer his question.
<Aeyrix> Ignore zenspider.
redlegion has joined #ruby
<shevy> hmm he does have a slow reaction, perhaps webchat user :D
<shevy> I have to sleep soon though
<Aeyrix> Perhaps discouraged by the culture of technical elitism. :^)
<Hunter1> yes i'm a web chat user lol
<zenspider> volty: that can get messy tho. either passing through slop or having a ratsnest to validy there is no slop.
<zenspider> validate. ugh. my fingers are troublesome
<volty> it's only that your are too fast, @shevy :)
<Hunter1> shevy: on ruby lang it has a button to download ruby
<Aeyrix> Hunter1: What operating system are you using? Windows?
glcx has quit [Ping timeout: 255 seconds]
<Diabolik> is codementor.io the best service for paid pair programming?
<volty> zenspider: of course, but If I have to lose time and write all those methods, I'd go directly with querying directly or build something more sohpisticated
e1nh4nd3r has quit [Quit: Leaving.]
<Hunter1> yes windows and i'm also using ubuntu and os x
<zenspider> volty: *nod*
<Hunter1> what's the best system to use?
<Aeyrix> Um.
<Aeyrix> OS X or Ubuntu.
mrsolo has quit [Quit: Leaving]
Ropeney has joined #ruby
<Aeyrix> I use OS X personally. Some in here use Ubuntu/Linux.
<Diabolik> unless someone here wants to help :P
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> Diabolik: not sure there is a "best". there are more and more every day tho
<Aeyrix> For OS X you just run, in the Terminal application, `brew install ruby`.
<Aeyrix> Then you're done.
swgillespie has joined #ruby
<Diabolik> i just need a half hour to sort out some problems in my app
<Diabolik> not some kind of extreme mentoring
<Aeyrix> For Windows you can grab an installer from http://www.rubyinstaller.org/
tjohnson has joined #ruby
platzhirsch has left #ruby [#ruby]
<zenspider> hrm... how much does that service charge? I wonder if I should sign up :)
glcx has joined #ruby
<cyrus_mc> Trying to use bundler in my RPM spec file. Install path should be /opt/puppet/lib/ruby/gems/2.2.0/ so I specify --path on install as /opt/puppet/lib. But it adds on the relative path ruby/2.2.0/gems. The gems and 2.2.0 are reversed.
bgmarx has quit [Remote host closed the connection]
<Diabolik> zenspider pm?
<Aeyrix> Hunter1: Pick your OS and someone can help you install it.
<Aeyrix> But you can't say "oh I have three of them lol"
rubie has joined #ruby
michaeldeol has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
AndChat299081 has joined #ruby
nunayerBeezwax has joined #ruby
<zenspider> Diabolik: sorry. my plate is full atm.
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Diabolik> np
allcentury has joined #ruby
freerobby has quit [Client Quit]
monsieurp has quit [Changing host]
monsieurp has joined #ruby
Langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vikaton has quit [Quit: Connection closed for inactivity]
qwertme has joined #ruby
<dfockler> what projects do people look at for good ruby architecture?
Yiota has joined #ruby
<volty> not quite (in) english :)
moshee has joined #ruby
<volty> ops, sorry, another chan
bgmarx has joined #ruby
<volty> there are only good «programming architecture» paradigms // when you master that abstract, the specifics go by themselves
Yiota has quit [Client Quit]
<Radar> Who can say what it truly means to be "good"?
Musashi007 has joined #ruby
<volty> or, translated: you are not going to be a good architect just by looking at nice buildings :)
<volty> s/to be/to become/
<baweaver> Radar: What causes me not to fly into a blood rage
<Radar> baweaver: fair :)
<baweaver> read: Java / Perl
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<zenspider> baweaver: that's a low bar :P
<Aeyrix> Perl's great mate.
<weaksauce> you forgot php baweaver
dionysus69 has joined #ruby
* baweaver is currently using Java for Spark jobs for some reason
<Aeyrix> Uh oh.
* baweaver is remembering why he hates it
<baweaver> Hackathon and most of the codebase is already Java
<zenspider> dfockler: it's incredibly subjective. I think xkcd was onto something w/ the "wtf / minute" measurement
<baweaver> so instead of screwing with getting both of them to play together or rewriting the dang thing...
* baweaver sighs
<dfockler> oh haha, I was just looking a Resque, and HAML, and the codebases for those are clear to read through
<volty> dfockler: write whatever, and refactor it forever — the best way :)
<Radar> dfockler: Read through the Rails source for some good times
<Radar> That codebase isn't confusing _at all_
<baweaver> For varying definitions of the word good
Sheik` has joined #ruby
<zenspider> Radar: that's mean
<Radar> zenspider: It is.
startupality has quit [Quit: startupality]
<zenspider> I know... read minitest's source and then go read rspec's source. :P
<Radar> hahaha
<baweaver> zenspider: read rack's source
<baweaver> how many evals was that?
<volty> on the architects' wave: you are not going to become a good boxer watching box
aapole has quit [Ping timeout: 255 seconds]
<dfockler> volty: yeah I need to build more buildings
jhooker has joined #ruby
nunayerBeezwax has quit []
<zenspider> baweaver: I happen to be right now. :)
<dfockler> zenspider: throwing down the unit test gauntlet!
<zenspider> working on converting the tests from bacon to minitest
<volty> dfockler: or beat more your keyboard :)
<zenspider> surprisingly easy with minitest-bacon :)
<baweaver> dfockler: It's more like accidentally destroying the supports for a few buildings and having to play Atlas on production support trying to keep it alive whilst fixing
<baweaver> For the life of me I don't get why they're evaling to get the version in there though.
<dfockler> my first big ruby project and we chose to rebuild it from scratch :P
<Radar> baweaver: source?
<baweaver> I read through it a few days back and stared at that one for a bit
<baweaver> just a sec
<zenspider> oh in lib/rack/builder.rb ? interesting.
<zenspider> to be fair... there's exactly 3 evals in rack's lib.... that's not bad
<baweaver> granted
<Aeyrix> baweaver: :|
<baweaver> that one makes little sense to me though
mistermocha has joined #ruby
<zenspider> I've got more in minitest :)
cmisenas has quit [Ping timeout: 276 seconds]
<zenspider> and 211 in rails :)
baweaver has quit [Remote host closed the connection]
cmisenas has joined #ruby
cndiv has quit []
<Radar> wow that's weird that they'd be doing that.
<Radar> patches welcome? :P
arooni-mobile has quit [Ping timeout: 276 seconds]
<dfockler> whoa ruby gems has a full html template embedded in the code
<zenspider> Radar: yup yup
<zenspider> I guess that way they leave the parsing up to ruby and don't have to deal with regexping it, like I do
<zenspider> no. no I just don't get it
<zenspider> I'll roll it into my PR that I'm currently doing
stoogenmeyer_ has quit [Ping timeout: 244 seconds]
rubie has quit [Remote host closed the connection]
_seanc_ has joined #ruby
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
razorgfx has joined #ruby
maxshelley has joined #ruby
rubie has joined #ruby
failshell has quit []
<omgs> Why do I get syntax errors in some "do" loops?
mattcc has joined #ruby
yfeldblu_ has joined #ruby
<zenspider> actually I'll just point tenderlove at it
<zenspider> omgs: you'll have to show some code. we're not psychic
<volty> omgs: because something is wrong?
<volty> maybe
<zenspider> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<zenspider> use that
<zenspider> aaand he told me to kill it
nunayerBeezwax has joined #ruby
<omgs> But it's been working in the previous server
giuseppesolinas has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
<volty> and my spaghetti cooked better in the right pot
ta has quit [Remote host closed the connection]
yfeldblum has joined #ruby
CustosLimen has joined #ruby
<zenspider> omgs: really... we're NOT psychic... I can come up with 50 reasons and all will be wrong
<volty> if the code is same then it could be another ruby version // but as zenspider said, we are not sorcerers
<zenspider> baweaver left... I need a code review:
<zenspider> s.version = File.read('lib/rack.rb')[/RELEASE += +([\"\'])([\d][\w\.]+)\1/, 2]
<zenspider> omgs: no comma
<zenspider> no clue why that'd parse in any ruby
yfeldblu_ has quit [Ping timeout: 256 seconds]
deric_skibotn has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
<zenspider> (no comma on line 3)
mrsolo has joined #ruby
<omgs> zenspider: well, there are two occurrences of that
nunayerBeezwax has quit [Client Quit]
<volty> omgs: you have a virus inside your server
<zenspider> then get rid of both
<omgs> If I remove both commas, then the application fails
_djbkd has quit [Quit: My people need me...]
bdnelson has joined #ruby
<omgs> I mean, gets in a loop
<zenspider> there's one comma on line 3
<omgs> And I have to restart the webserver
<zenspider> also, that's not a loop
<Diabolik> zenspider are you sure? :D
bayed has quit [Quit: Connection closed for inactivity]
symm- has quit [Ping timeout: 265 seconds]
giuseppesolinas has quit [Client Quit]
<zenspider> Diabolik: that I'm busy? yes... I'm doing a horrible job of staying on task tho
<Diabolik> :|
<Diabolik> fair
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
deric_skibotn has joined #ruby
msnyon has quit [Ping timeout: 258 seconds]
<omgs> Maybe I have to "resize" Passenger?
<omgs> Is Passenger on-topic here?
finisherr has quit [Quit: finisherr]
<zenspider> _I_ think it is ruby-enough
j4cknewt has joined #ruby
<omgs> I wonder how to put passenger in debug moder for this
GPrime has joined #ruby
<Hunter1> why do you prefer programming in ruby over other languages?
<zenspider> omgs: `ruby -cw path/to/file.rb` on your local machine and server should be enough
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
_djbkd has joined #ruby
<volty> Hunter1: reason 1 - for the same reason you prefer to speak in your mother language
<Hunter1> my mother language is russian and i prefer to speak english
mistermocha has quit [Remote host closed the connection]
<zenspider> haha
<zenspider> volty: showed you
<volty> Hunter1: you are an exception that, being an exception, confirms that rule (and do not try to troll at me :) )
aphprentice has quit [Remote host closed the connection]
<Hunter1> i'm trying to understand what makes ruby a good choice in programming
Yzguy has joined #ruby
_seanc_ has quit [Quit: _seanc_]
<dfockler> I like ruby because it lets you code how you want and the people who use ruby generally don't take themselves too seriously
<shevy> Hunter1 it fills a similar niche that perl/php/python do
<volty> so, Hunter1, prove it by answering (fast) in russian why are you asking such a question
bkxd has joined #ruby
<Hunter1> i don't get what you're trying to get me to prove
dfockler has quit [Remote host closed the connection]
<shevy> ack ... volty speaks russian too
<Hunter1> oh
mattcc has quit []
<volty> pocemu?
<Aeyrix> Hunter1: Most people pick it up because they enjoy the syntax over other languages.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> (hunter1 went on google translate .... , ah ah ah )
chouhoulis has joined #ruby
swgillespie has joined #ruby
<Hunter1> so the syntax is what makes it nice then?
<Aeyrix> Yeah.
<Aeyrix> For me, at least.
<Aeyrix> I'd venture for most in here.
<Hunter1> have you tried swift?
pkrnj has quit [Quit: Computer has gone to sleep.]
<volty> dynamic, no types, no burden of clumsy python like indent-structuring
prereflect has joined #ruby
mary5030 has joined #ruby
commondream has quit [Remote host closed the connection]
<Aeyrix> I've used Swift.
jhooker has quit [Ping timeout: 276 seconds]
jhooker has joined #ruby
sharpmachine has quit [Remote host closed the connection]
charliesome has joined #ruby
<Hunter1> do you like swift's syntax over ruby's?
<Aeyrix> No.
idafyaid has joined #ruby
<omgs> [App 29834 stderr] /var/lib/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
<volty> object oriented, with mixing, so you are more free to think about the design, pretty readable
<Aeyrix> omgs: That's an old version of Ruby, there.
<omgs> That's the system library, isn't it?
dorei has quit []
<zenspider> pure OO is what I prefer about ruby. very few languages really are.
<volty> no small-state-of-the-art haskell like constructs, but impossible-to-read haskell like mess
mrsolo_ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
<omgs> Aeyrix: I see two versions: 3.2.12 and 4.0.0
<omgs> I guess that if I just delete (previous tar) the 3.2.12, it could solve the problem?
baweaver has joined #ruby
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
<Aeyrix> omgs: Run `ruby --version`
<Aeyrix> But yes probably.
pietr0 has quit [Quit: pietr0]
mary5030 has quit [Ping timeout: 256 seconds]