apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<Mon_Ouie> Negation: !string.empty?
rootshift has joined #ruby
jollyy has quit [Quit: jollyy]
aspires has joined #ruby
whomp has joined #ruby
andy__ has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
smathieu has quit [Remote host closed the connection]
andy__ has joined #ruby
ndrei has joined #ruby
smathieu has joined #ruby
<dcope> Mon_Ouie: nah i have a method that returns a string
SCommette has joined #ruby
SonicX has joined #ruby
tylersmith has quit [Remote host closed the connection]
<dcope> so i'm trying to do something like this .... name = (user.name.length > 0) ? user.name : nil
<dcope> without using the ternary
<wallerdev> !user.name.empty? && user.name
nateberkopec has quit [Quit: Leaving...]
Hanmac has joined #ruby
smathieu has quit [Remote host closed the connection]
jlebrech has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
freezey has quit [Ping timeout: 265 seconds]
andy__ has quit [Remote host closed the connection]
aspires has quit []
Es0teric has joined #ruby
smathieu has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
kaspergrubbe has quit [Remote host closed the connection]
Azure has quit [Quit: Blue Sky Fish]
Gooder``` has quit [Ping timeout: 252 seconds]
artgoeshere has joined #ruby
aspires has joined #ruby
dgarstang has quit [Quit: WeeChat 0.4.2]
<havenwood> dcope: name = user.name unless user.name.empty?
x1337807x has joined #ruby
SCommette has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
<havenwood> dcope: so `nil` if #empty? otherwise the `user.name`
philcrissman has quit [Ping timeout: 264 seconds]
<wallerdev> hah
sparrovv has quit [Remote host closed the connection]
<wallerdev> good use of if statements at the end returning nil when false :p
agrinb has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
aspires has quit [Client Quit]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewlio has quit [Quit: Leaving.]
jollyy has joined #ruby
zachallett has joined #ruby
jollyy has quit [Client Quit]
YamakasY has joined #ruby
r0nin has joined #ruby
agrinb has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
sailias has joined #ruby
rjhunter has joined #ruby
<shevy> havenwood turns ugly code into better code
`mrspock has quit [Quit: Textual IRC Client: www.textualapp.com]
<dcope> havenwood: nice and elegant, thanks
<wallerdev> why write pretty code when you can write fewer characters is my motto
r0nin has quit [Ping timeout: 240 seconds]
<mr_snowf1ake> wallerdev, by that logic, nested ternary operators ftw :P
<wallerdev> yeah and skip the parens on those :p
pel_daniel1 has left #ruby [#ruby]
davy has joined #ruby
coderxin has quit [Remote host closed the connection]
<shevy> you evil bastards
Azure has joined #ruby
platzhirsch has left #ruby [#ruby]
<shevy> def foo(a,b,c,d)
<shevy> this is what I will use from now on
afreidah has joined #ruby
<shevy> because wallerdev said so
sailias has quit [Ping timeout: 240 seconds]
<wallerdev> def f(p,a,c,k,e,r)
sambao21 has joined #ruby
samuel02 has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
rjhunter has quit [Ping timeout: 264 seconds]
<benzrf> wallerdev: function(i,s,o,g,r,a,m)
poikon has quit []
bradhe has joined #ruby
<shevy> def b(e,n,z,r,f)
nobitanobi has quit []
<wallerdev> anyway i came up with the optimal solution to his issue
<wallerdev> using regex of course
eynj has joined #ruby
<wallerdev> user.name[/.{1,}/]
maletor has quit [Quit: Computer has gone to sleep.]
<wallerdev> haha or +
danshultz has joined #ruby
davy has quit [Remote host closed the connection]
cashnguns has joined #ruby
gregf1 has quit [Quit: WeeChat 0.4.3]
funktor has joined #ruby
afreidah has quit [Ping timeout: 265 seconds]
|RicharD| has quit [Quit: Sto andando via]
sdwrage has joined #ruby
lepht has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
funktor has quit [Remote host closed the connection]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
afreidah has joined #ruby
mikecmpbll has quit [Quit: ciao.]
sailias has joined #ruby
<shevy> man
lukec has joined #ruby
Shidash has joined #ruby
<boombadaroomba> lady
afreidah has quit [Ping timeout: 240 seconds]
shinobi_one has quit [Quit: shinobi_one]
<thoraxe> so i'm having a brain malfunction right now. https://gist.github.com/thoraxe/9752673 ultimately i want to generate an ID if id isn't passed in, but right now if id is passed in I get an undefined method error, which I am guessing makes sense because id is a reader not an accessor?
rootshift has left #ruby [#ruby]
lepht has quit [Quit: ZNC - http://znc.in]
lepht has joined #ruby
smathieu has quit [Remote host closed the connection]
<thoraxe> so in the case of defining a reader, if i want a writer i have to define a writer method?
<benzrf> thoraxe: don't use send
mary5030 has joined #ruby
<benzrf> just hardcode :u
smathieu has joined #ruby
afreidah has joined #ruby
<benzrf> this is not the case for send imo
sambao21 has quit [Quit: Computer has gone to sleep.]
<thoraxe> benzrf: not sure i follow
<thoraxe> well i mean, i follow "don't use send"
lele has quit [Ping timeout: 246 seconds]
mary5030_ has joined #ruby
<thoraxe> but i'm not sure i follow "hardcorde :u"
Zunonia__ has joined #ruby
YamakasY has quit [Quit: The best revenge is massive success...]
<benzrf> :u was an emoticon ;p
<benzrf> a meaningless onewheelskyward
<benzrf> *one
msmith_ has joined #ruby
<benzrf> i dunno why i typed it
RoxasShadowRS has quit [Quit: Leaving]
klaut has quit [Remote host closed the connection]
mansi has joined #ruby
<wallerdev> :u
grvgr has joined #ruby
<benzrf> :u :u :u
Stalkr_ has quit [Quit: Leaving...]
Hobogrammer_ has joined #ruby
Danny_Joris has joined #ruby
afreidah has quit [Ping timeout: 246 seconds]
bradhe has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 265 seconds]
grvgr has quit [Client Quit]
joshsmith has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
<joshsmith> hey all, I have the following models:
bradhe has joined #ruby
danshultz has joined #ruby
<joshsmith> PhotoColor has the column reference_color which is a hex value
<thoraxe> benzrf: not sure how to hardcode it i guess.
<joshsmith> I’m trying to get all the photos with a given reference_color
predator117 has joined #ruby
sailias has quit [Quit: Leaving.]
<joshsmith> I’m trying color_class.where(reference_color: hex).joins(:photo) but that just gives me an array of PhotoColors
<Danny_Joris> I’m having issues with upgrading ruby gems. I have to say I’m not a ruby developer, I just need the gems for sass and jekyll etc.. Jekyll stopped working so I read I need to install the json gem. This fails, resulting in this error: ERROR: Error installing json: ERROR: Failed to build gem native extension.
<wallerdev> joshsmith: #rubyonrails probably
<Danny_Joris> I updated xcode command line tools, but no success
tkuchiki has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<Danny_Joris> sudo gem install json --platform=ruby --verbose —> didn’t work either
<joshsmith> ah wallerdev thought I was in rails
<Danny_Joris> jekyll -v doens’t even work
<Danny_Joris> any ideas?
derek_c has joined #ruby
oneawayman has joined #ruby
predator217 has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
lolmaus has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
polyidus has quit [Quit: EOF]
razrunelord has quit []
lepht_ has quit []
apeiros has quit [Remote host closed the connection]
<thoraxe> https://gist.github.com/9752673 this sortof works but if i don't pass an id value it doesn't auto generate one still
mansi has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
mercwithamouth has joined #ruby
<onewheelskyward> lol benzrf
jlast has joined #ruby
Hobogrammer_ has quit [Ping timeout: 252 seconds]
reset has quit [Ping timeout: 252 seconds]
<thoraxe> https://gist.github.com/9752673 seems to work
ephemerian has quit [Remote host closed the connection]
<wallerdev> thoraxe: i think by hardcoding he was just saying if params[:file_contents] @file_contents = params[:file_contents]
<havenwood> thoraxe: you want setter methods only, no getter methods for the ones you're adding?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<thoraxe> havenwood: not sure i understand the question. in theory you shouldn't be able to change the id for an existing object
p4tux has quit [Read error: Connection reset by peer]
<thoraxe> but when creating an instance of the object you should be able to set its id
p4tux has joined #ruby
<havenwood> thoraxe: i mean for your param attr= methods
<wallerdev> hes not creating methods
<wallerdev> hes using send
<havenwood> oh
<thoraxe> havenwood: don't understand the question
<havenwood> thoraxe: nevermind, looked closer at what you're actually doing
<havenwood> thoraxe: why are you doing that!? :P
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jason__ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
ndrei has quit [Read error: Operation timed out]
<havenwood> thoraxe: what are you doing then with those params?
<pontiki> heyo o/
<havenwood> hey
invinceable has quit [Ping timeout: 268 seconds]
<thoraxe> havenwood: not sure again that i understand the question. ultimately i just want a really simple class that can easily be serialized to json for storage in redis
cpruitt has joined #ruby
dkamioka has joined #ruby
kaspergrubbe has joined #ruby
m0s has joined #ruby
andy__ has joined #ruby
cpruitt has quit [Client Quit]
brain_shim has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
pimpthink has quit [Quit: leaving]
cpruitt has joined #ruby
TigerWolf has joined #ruby
nateberkopec has joined #ruby
cpruitt has quit [Client Quit]
<havenwood> thoraxe: maybe pasting more code would help. what i'm curious about is how you mean to use the params you assign here: self.public_send("#{attr}=", value)
jmarbach has joined #ruby
cpruitt has joined #ruby
samuel02 has joined #ruby
<havenwood> thoraxe: consider using `@id.nil?` instead of `@id == nil`
<thoraxe> havenwood: not sure i understand the question -- how would you "use" params normally? foo.param1, foo.param2 ?
cpruitt has quit [Client Quit]
no6 has quit [Ping timeout: 265 seconds]
trhodes_ has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
kbarry has quit [Ping timeout: 245 seconds]
incade has quit [Quit: incade]
mehlah has quit [Quit: Leaving...]
<postmodern> is there such a thing as String#rsplit
robustus has quit [Ping timeout: 252 seconds]
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
hakunin_ is now known as hakunin
dcope has quit [Ping timeout: 264 seconds]
sleepee has joined #ruby
trhodes_ has joined #ruby
jason__ has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
jason__ has joined #ruby
robustus has joined #ruby
<shevy> postmodern no but perhaps you can .reverse the string first
<shevy> wait sorry
jmarbach has quit [Quit: Page closed]
<shevy> there is rsplit
<havenwood> postmodern: i recall it being mentioned as absent here: https://bugs.ruby-lang.org/issues/9116
no6 has joined #ruby
<shevy> or perhaps not... hmmm
jmarbach_ has joined #ruby
samuel02 has quit [Ping timeout: 252 seconds]
dcope has joined #ruby
Es0teric has quit [Ping timeout: 246 seconds]
papercode has joined #ruby
kennym has joined #ruby
r0nin has joined #ruby
jason__ has quit [Ping timeout: 264 seconds]
Es0teric has joined #ruby
mansi has quit [Remote host closed the connection]
<havenwood> thoraxe: i was just confused as to your intention, i'm slow on the uptake this evening. i'd have expected you to set the instance variable.
lukec has quit [Quit: lukec]
n1tr0g has joined #ruby
necrotic_ has joined #ruby
necrotic_ has quit [Remote host closed the connection]
<Danny_Joris> I have two versions of Ruby on my Mac. How do I get rid of this?
<Danny_Joris> jekyll is in version 1.8 , but I also have 2.x it seems..
<havenwood> Danny_Joris: What version of OS X?
<Danny_Joris> 10.9.2
<havenwood> thoraxe: maybe i just need to wake up, but along the lines of what i was thinking: https://gist.github.com/havenwood/590fa631debc05e39f20
lukec has joined #ruby
r0nin has quit [Ping timeout: 265 seconds]
<havenwood> Danny_Joris: Mavericks ships with both 1.8 and 2.0, but 2.0 is default Current system Ruby.
freerobby has joined #ruby
coderxin has joined #ruby
<Danny_Joris> but jekyll is under 1.8 and it throws errors
<havenwood> Danny_Joris: I don't know if you have more than two Rubies, but you should have at least two. :P
smathieu has joined #ruby
<havenwood> Danny_Joris: Have you installed any additional Rubies? Using `sudo` sometimes?
<Danny_Joris> I need to install json into 1.8 or jekyll into 2.0 , but not sure how to do that
<Danny_Joris> yeah, sass components
<Danny_Joris> breakpoint etc
<Danny_Joris> compass
<wallerdev> ruby -v ?
<havenwood> Danny_Joris: So you've installed gems, but you're just using system Ruby?
sleepee has quit [Quit: Leaving]
<Danny_Joris> that’d be 2.0.0p247
<Danny_Joris> havenwood: I think so?
elaptics`away has quit [Ping timeout: 245 seconds]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
coderxin has quit [Read error: Operation timed out]
<Danny_Joris> for a moment I tried to install it through brew, but that made things worse, so I unintalled that
tvw has quit []
sdouglas has joined #ruby
<Danny_Joris> so I’m left with (I think) those two versions
<wallerdev> where is the 1.8 ruby on mavericks?
<havenwood> wallerdev: /System/Library/Frameworks/Ruby.framework/Versions/1.8
armyriad has joined #ruby
oneawayman has quit [Ping timeout: 265 seconds]
<wallerdev> interesting
<Danny_Joris> … /Library/Ruby/Gems/ has 1.8 and 2.0.0 in it
aspires has joined #ruby
chipotle has quit [Quit: cya]
<Nilium> Alternatively: `ls -l "$(which ruby)"`
<Danny_Joris> so how do I manage that? I assume I need to bring all my gems from 1.8 into 2.0.0 ?
<Danny_Joris> lrwxr-xr-x 1 root wheel 76 11 Nov 00:02 /usr/bin/ruby -> ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby
<wallerdev> try using gem env
<pontiki> just fyi, jekyll needs >= 1.9.3
<wallerdev> it should show what ruby its using
zarul has joined #ruby
zarul has quit [Read error: Connection reset by peer]
markisonfire has quit [Quit: markisonfire]
<Nilium> Far as I remember, Mac OS 10.9 shipped with 2.0.0-p247
elaptics`away has joined #ruby
<Danny_Joris> well, when I do jekyll -v, it throws a big error and it looks like it’s looking into the 1.8 folder for some reason...
<pontiki> yes, Nilium
Hanmac1 has joined #ruby
<Danny_Joris> from /Library/Ruby/Gems/1.8/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
<Danny_Joris> etc ...
<wallerdev> maybe uninstall the jekyll gem in 1.8
<Danny_Joris> how do I do that?
<Danny_Joris> since it seems like by default I’m using ruby 2.0.0
<wallerdev> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem uninstall jekyll
Hanmac has quit [Ping timeout: 246 seconds]
<Nilium> Might just want to set up a ruby environment thing like chruby or rbenv.
<Nilium> Or use bundler, I guess. I admittedly don't use it for anything.
<havenwood> or install Ruby to /usr/local with ruby-install
mikepack has joined #ruby
<wallerdev> or install a virtual machine and run ruby from that
funktor has joined #ruby
<Nilium> Or build a virtual machine so you have absolute control
Kam_ has joined #ruby
<Nilium> Then you can implement special ruby-specific instructions at the VM level
geopet has quit []
<Danny_Joris> havenwood: thanks! removing that way worked. Now installing it again throws this error: http://pastebin.com/aN1yHhVf
<wallerdev> gcc :(
monkegjinni has joined #ruby
<havenwood> Danny_Joris: You'll need command line tools to build C-extensions. Grab latest Xcode then run: xcode-select --install
Voodoofish430 has quit [Quit: Leaving.]
<Danny_Joris> havenwood: I did that earlier. xcode-select --install trows an error saying that it’s not available. I did install it by going into the apple developer site and downloading it manually
<havenwood> Danny_Joris: Do you have Xcode installed?
<wallerdev> try ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install xxxxx
<Danny_Joris> havenwood: yes
<wallerdev> the new clang will throw errors on unknown arguments
<wallerdev> usually arguments that are gcc exclusives
dcope has quit [Quit: leaving]
jason__ has joined #ruby
<Danny_Joris> havenwood: based on http://stackoverflow.com/a/19908327/477949 I assume I have it installed now
Hobogrammer has quit [Ping timeout: 252 seconds]
funktor has quit []
rjhunter has joined #ruby
<havenwood> Danny_Joris: Double check your Xcode version?: xcodebuild -version
<Danny_Joris> Xcode 5.1
<Danny_Joris> Build version 5B130a
r0nin has joined #ruby
<havenwood> that is up to date
<havenwood> Danny_Joris: ahh, i think i've seen something like this..
Kam_ has left #ruby ["Leaving"]
peret has joined #ruby
zarul has joined #ruby
zarul has joined #ruby
zarul has quit [Changing host]
<havenwood> Danny_Joris: Try just?: gcc
<Danny_Joris> clang: error: no input files
<havenwood> Danny_Joris: And?: xcode-select -p
elaptics`away has quit [Ping timeout: 252 seconds]
kitak has quit [Remote host closed the connection]
<Danny_Joris> >> /Applications/Xcode.app/Contents/Developer
<eval-in> Danny_Joris => /tmp/execpad-60d06cad1d19/source-60d06cad1d19:2: unknown regexp options - Xcd (https://eval.in/125975)
<wallerdev> lol
<Danny_Joris> oh
<Danny_Joris> that’s a bot
<Danny_Joris> lol
rjhunter has quit [Ping timeout: 246 seconds]
kitak has joined #ruby
r0nin has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
<Danny_Joris> sudo gem install json throws a similar error
elaptics`away has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> Danny_Joris: did you have no luck with?: ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll
pfg has joined #ruby
danshultz has joined #ruby
LostDatagram has quit [Quit: Bye :P - znc.in]
chrisseaton has quit []
<havenwood> sudo*
tylersmith has joined #ruby
zachallett has quit [Remote host closed the connection]
lyanchih_ has quit [Quit: lyanchih_]
lyanchih__ has joined #ruby
echevemaster has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
brain_shim has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
<havenwood> Danny_Joris: Setting up a brew install of Ruby, ruby-install to /usr/local, or ruby-install/chruby, ruby-build/rbenv, or RVM are all options for getting Ruby 2.1.1 and leaving the OS X system Ruby issues behind.
yacks has joined #ruby
LostDatagram has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
Es0teric has quit [Ping timeout: 252 seconds]
<Danny_Joris> havenwood: jekyll seems to be installed correctly now using archflags. (it seems like I’d need to use that approach for every gem install)
p4tuxx has joined #ruby
<havenwood> Danny_Joris: wallerdev nailed that one ;)
<Danny_Joris> yes brew or rvm might be a better way
p4tux has quit [Read error: Connection reset by peer]
shutchie has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
cpruitt has joined #ruby
elaptics`away has quit [Ping timeout: 268 seconds]
<havenwood> Danny_Joris: if you had problems with brew you likely just didn't update your PATH with something like this in your .bashrc: export PATH=$(brew --prefix ruby)/bin:$PATH
Es0teric has joined #ruby
BuSerD has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
sdouglas has quit [Remote host closed the connection]
RaptorJesus has quit [Remote host closed the connection]
rh1n0 has joined #ruby
charliesome has joined #ruby
sputnik13 has joined #ruby
elaptics`away has joined #ruby
RaptorJesus has joined #ruby
teddyp1cker has joined #ruby
mikepack_ has joined #ruby
BuSerD has joined #ruby
<Danny_Joris> havenwood: thanks, added that now
<Danny_Joris> trying to install jekyll under ruby installed with brew
<Danny_Joris> and it seems to work
<Danny_Joris> json too
<Danny_Joris> w00t !
<Danny_Joris> havenwood & wallerdev : Thank you so much!!! :)
<Danny_Joris> havenwood++
mikepack has quit [Ping timeout: 240 seconds]
Ca11yWally has quit [Ping timeout: 240 seconds]
tacos1de has quit [Ping timeout: 265 seconds]
sdwrage has quit [Quit: Leaving]
zarul[afk] has joined #ruby
<Danny_Joris> wallerdev++
Brando753 has quit [Ping timeout: 255 seconds]
wallerdev is now known as wallerdev2
boombadaroomba has quit [Ping timeout: 240 seconds]
sumark has quit [Ping timeout: 240 seconds]
end_guy has quit [Ping timeout: 265 seconds]
matcouto has quit [Ping timeout: 268 seconds]
nuba has quit [Ping timeout: 268 seconds]
Solnse has quit [Ping timeout: 240 seconds]
snath has quit [Ping timeout: 246 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nuba has joined #ruby
tacos1de has joined #ruby
CaptainJet has joined #ruby
<wallerdev2> anyway
<wallerdev2> have a good night, time for me to go home :p
teddyp1cker has quit [Ping timeout: 264 seconds]
end_guy has joined #ruby
wallerdev2 has quit [Quit: wallerdev2]
toastynerd has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
jgoss has joined #ruby
jgoss has joined #ruby
felipecvo has joined #ruby
toastynerd has quit [Remote host closed the connection]
Brando753 has joined #ruby
sumark has joined #ruby
koowgnojeel has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
koowgnojeel has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Abyss__ has joined #ruby
mansi has joined #ruby
hamakn_ has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
nisstyre has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
gancl has joined #ruby
dkamioka has quit [Remote host closed the connection]
Rober9393 has quit [Quit: Computer has gone to sleep.]
Ca11yWally has joined #ruby
beneggett has joined #ruby
zarul[afk] has quit [Quit: Leaving]
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
boombadaroomba has joined #ruby
mikepack_ has joined #ruby
Cache_Money has joined #ruby
sambao21 has joined #ruby
agrinb has joined #ruby
Solnse has joined #ruby
freezey has joined #ruby
<benzrf> yo
spicerack has joined #ruby
sambao21 has quit [Client Quit]
<benzrf> is there a hook for overriding of constant assignment?
<benzrf> and method declaration?
freezey has quit [Remote host closed the connection]
jason__ has quit [Remote host closed the connection]
jason__ has joined #ruby
<centrx> Sounds like you are ready to switch to LISP.
mikepack_ has quit [Read error: Connection reset by peer]
funburn has joined #ruby
mikepack_ has joined #ruby
jason____ has joined #ruby
mikepack_ has quit [Client Quit]
<benzrf> haha
<benzrf> it's for quick
<benzrf> i want it to log what you've defined so that you can export it later
agrinb has quit [Ping timeout: 252 seconds]
<benzrf> and also view it in the fs
<benzrf> the idea being that if you open pry and define a method, it should appear as an editable file
<benzrf> but i'd need a hook to get the code content
<benzrf> :I
incade_ has joined #ruby
joshsmith has quit [Quit: joshsmith]
matcouto has joined #ruby
mikepack_ has joined #ruby
<benzrf> hmm, maybe i can hook into pry instead.
<benzrf> or maybe not o-o
<benzrf> that seems like a brittle solution
jason__ has quit [Ping timeout: 264 seconds]
whomp has joined #ruby
lukec has quit [Quit: lukec]
lukec has joined #ruby
sambao21 has joined #ruby
lukec has quit [Client Quit]
lethjakman has quit [Ping timeout: 268 seconds]
coderxin has joined #ruby
mikepack has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 252 seconds]
hfp is now known as hfp`away
hfp`away is now known as hfp
Lewix has joined #ruby
hfp is now known as hfp`away
patrick99e99 has joined #ruby
<boombadaroomba> is there a RAILS channel?
whomp has quit [Ping timeout: 240 seconds]
<benzrf> #rails
aspires has quit []
<benzrf> #rubyonrails actually, but #rails forwards to it
yfeldblum has quit [Remote host closed the connection]
marcdel has joined #ruby
<boombadaroomba> invite only
coderxin has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<benzrf> neh?
agarie has quit [Quit: Leaving...]
<havenwood> boombadaroomba: just register your nick
<boombadaroomba> how to do?
<boombadaroomba> Havent used IRC since 95
toastynerd has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
<havenwood> boombadaroomba: /msg NickServ REGISTER password youremail@example.com
whomp has joined #ruby
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
<benzrf> hmmmm
<boombadaroomba> says i am reg'd
mr_red has quit [Ping timeout: 246 seconds]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
mr_red has joined #ruby
kennym has quit [Quit: Leaving.]
meatherly has joined #ruby
sdouglas has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
smathieu has quit [Ping timeout: 268 seconds]
hamakn has joined #ruby
r0nin has joined #ruby
alexju has joined #ruby
Danny_Joris has quit [Quit: Danny_Joris]
wallerdev has joined #ruby
mansi has quit [Remote host closed the connection]
incade_ has quit [Quit: incade_]
meatherl_ has joined #ruby
maroloccio has quit [Ping timeout: 246 seconds]
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
aspires has quit []
Musashi1 has joined #ruby
r0nin has quit [Ping timeout: 246 seconds]
nisstyre has joined #ruby
funburn has quit [Ping timeout: 268 seconds]
meatherly has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
peret has quit []
yfeldblum has joined #ruby
Chester has joined #ruby
Chester has left #ruby [#ruby]
Chester has joined #ruby
postmodern has quit [Quit: Leaving]
Bumptious has joined #ruby
werdnativ has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
drag0n_ has joined #ruby
funburn has joined #ruby
lukec has joined #ruby
drag0n_ has left #ruby [#ruby]
<Chester> exit
Chester has quit [Client Quit]
echevemaster has joined #ruby
rh1n0 has quit [Quit: Hopefully you don't see this...]
Briareos1 has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
Avahey_ has quit [Quit: Connection closed for inactivity]
alexju has joined #ruby
joshsmith has joined #ruby
cpruitt has quit [Quit: cpruitt]
snuffeluffegus has quit [Quit: Leaving]
ValicekB has quit [Read error: Operation timed out]
Hanmac has joined #ruby
jason____ has quit [Remote host closed the connection]
sailias has joined #ruby
samuel02 has joined #ruby
jason__ has joined #ruby
Briareos1 has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 265 seconds]
cpruitt has joined #ruby
armyriad has joined #ruby
sambao21 has joined #ruby
_sambao21 has joined #ruby
jason__ has quit [Ping timeout: 264 seconds]
samuel02 has quit [Ping timeout: 252 seconds]
smathieu has joined #ruby
joshsmith has quit [Quit: joshsmith]
xcv has quit [Remote host closed the connection]
frog0909 has joined #ruby
xcv has joined #ruby
echevemaster has quit [Remote host closed the connection]
ValicekB has joined #ruby
Cache_Money has quit [Remote host closed the connection]
_justin has joined #ruby
nateberkopec has quit [Quit: Leaving...]
funktor has joined #ruby
xcv has quit [Ping timeout: 268 seconds]
sdouglas has quit [Remote host closed the connection]
_justin has quit [Client Quit]
Sawbones has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
benzrf is now known as benzrf|offline
sailias has quit [Quit: Leaving.]
toastynerd has joined #ruby
rh1n0 has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aspires has joined #ruby
smathieu has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 246 seconds]
kobain_ has joined #ruby
smathieu has joined #ruby
agent_white has joined #ruby
mary5030 has quit [Remote host closed the connection]
agent_white has quit [Client Quit]
agent_white has joined #ruby
shaileshg has joined #ruby
toastynerd has quit [Remote host closed the connection]
monzie has joined #ruby
freerobby has quit [Quit: Leaving.]
BeingUntoDeath has joined #ruby
Celm has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 252 seconds]
funktor has quit [Remote host closed the connection]
Photism has quit [Ping timeout: 265 seconds]
funburn has quit [Quit: funburn]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
miah_ is now known as miah
coderxin has joined #ruby
sdouglas has joined #ruby
felipecvo has quit [Remote host closed the connection]
Solnse has quit [Ping timeout: 246 seconds]
tectonic has joined #ruby
kitak has quit [Remote host closed the connection]
samuelkadolph has quit [Quit: Quitting]
Abyss__ has quit [Ping timeout: 265 seconds]
samuelkadolph has joined #ruby
mary5030 has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
coderxin has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
kitak has joined #ruby
agent_white has quit [Quit: leaving]
alvaro_o has quit [Quit: Ex-Chat]
agent_white has joined #ruby
toastyne_ has joined #ruby
toastyne_ has quit [Read error: Connection reset by peer]
toastyne_ has joined #ruby
toastyne_ has quit [Remote host closed the connection]
rahult is now known as rahult_
agent_white has quit [Client Quit]
werdnativ has joined #ruby
jlast has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 268 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
agent_white has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
terrellt has quit [Ping timeout: 246 seconds]
agent_white has quit [Client Quit]
Hobogrammer has joined #ruby
maroloccio has joined #ruby
toastynerd has joined #ruby
sski has joined #ruby
mikepack_ has quit [Remote host closed the connection]
browndawg has joined #ruby
toastynerd has quit [Remote host closed the connection]
no6 has quit [Ping timeout: 246 seconds]
jmarbach_ has quit [Remote host closed the connection]
jmarbach has joined #ruby
peret has joined #ruby
bradhe has joined #ruby
r0nin has joined #ruby
havenwood has quit [Remote host closed the connection]
lyanchih__ has quit [Quit: lyanchih__]
nateberkopec has joined #ruby
postmodern has joined #ruby
r0nin_ has joined #ruby
Cache_Money has joined #ruby
r0nin has quit [Read error: Connection reset by peer]
kitak has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
toastynerd has joined #ruby
snath has joined #ruby
sdouglas_ has joined #ruby
vlad_starkov has joined #ruby
sputnik13 has joined #ruby
meatherl_ has quit [Remote host closed the connection]
Solnse has joined #ruby
r0nin_ has quit [Ping timeout: 246 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
aspires has quit []
BeingUntoDeath has quit []
rahult_ is now known as rahult
rahult is now known as rahult_
BeingUntoDeath has joined #ruby
toastynerd has quit [Remote host closed the connection]
monzie has quit [Ping timeout: 265 seconds]
sdouglas_ has quit [Ping timeout: 268 seconds]
BuSerD has quit [Quit: Lost terminal]
vlad_starkov has quit [Ping timeout: 252 seconds]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
_sambao21 has quit [Quit: Computer has gone to sleep.]
evenix has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
robbyoconnor has joined #ruby
dkamioka has joined #ruby
monzie has joined #ruby
jason___ has joined #ruby
alexju_ has joined #ruby
alexju has quit [Ping timeout: 265 seconds]
saarinen has joined #ruby
teddyp1cker has joined #ruby
_justin has joined #ruby
Sawbones has quit [Remote host closed the connection]
creede has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Ping timeout: 264 seconds]
kitak has quit [Remote host closed the connection]
samuel02 has joined #ruby
dkamioka has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
kitak has joined #ruby
brandonjmckay has joined #ruby
MatthewsFace has joined #ruby
braincra- has quit [Quit: bye bye]
Solnse has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 268 seconds]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
rudisimo has quit []
mattmcclure has quit [Quit: Connection closed for inactivity]
IceDragon has quit [Ping timeout: 264 seconds]
perldork has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
endash_ has quit [Quit: endash_]
oso96_2000 is now known as oso|away
boombadaroomba has quit [Ping timeout: 240 seconds]
brandonjmckay1 has joined #ruby
perldork has quit [Remote host closed the connection]
Wolland has joined #ruby
jason___ has quit [Remote host closed the connection]
jason___ has joined #ruby
rabeldable has joined #ruby
agrinb has joined #ruby
sdouglas has joined #ruby
brandonjmckay has quit [Quit: Lingo - http://www.lingoirc.com]
coder_neo has joined #ruby
coder_neo has quit [Client Quit]
kaleigh has joined #ruby
sdouglas_ has joined #ruby
jason___ has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
agrinb has quit [Ping timeout: 252 seconds]
polyidus has joined #ruby
brain_shim has joined #ruby
polyidus has quit [Max SendQ exceeded]
ujvaljoshi has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
JBlazeCoder21 has joined #ruby
brandonjmckay1 has quit [Quit: Leaving.]
Jeticus has joined #ruby
havenwood has joined #ruby
creede has joined #ruby
_lynX has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 252 seconds]
nbezzala has quit [Remote host closed the connection]
coderxin has joined #ruby
JBlazeCoder21 has quit [Client Quit]
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
papercode has joined #ruby
boombadaroomba has joined #ruby
rationalrevolt has joined #ruby
pwh has joined #ruby
cpruitt has quit [Quit: cpruitt]
coderxin has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
brain_shim has quit [Ping timeout: 268 seconds]
michael_lee has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
rationalrevolt has quit [Read error: Connection reset by peer]
rationalrevolt has joined #ruby
george2 has quit [Quit: No Ping reply in 180 seconds.]
mary5030 has joined #ruby
george2 has joined #ruby
samuel02 has joined #ruby
funburn has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abdulsattar has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
vallieres_ has joined #ruby
chris_thomson has quit [Quit: Zzz...]
thomasxie has joined #ruby
agent_white has quit [Client Quit]
_justin has joined #ruby
samuel02 has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
agent_white has quit [Client Quit]
bradhe has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
rationalrevolt has quit [Ping timeout: 268 seconds]
mansi has joined #ruby
Lewix has quit [Remote host closed the connection]
r0nin has joined #ruby
fgo has joined #ruby
nateberkopec has joined #ruby
lukec has quit [Quit: lukec]
funburn has quit [Quit: funburn]
funburn has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
r0nin has quit [Ping timeout: 252 seconds]
bahar has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 264 seconds]
aagdbl has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
Lewix has joined #ruby
agent_white has joined #ruby
MatthewsFace has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
anshin has joined #ruby
yasushi has joined #ruby
fgo has quit [Remote host closed the connection]
fieldfirst has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
hobodave has joined #ruby
fgo has joined #ruby
freezey has joined #ruby
kitak has quit [Remote host closed the connection]
msmith_ has quit [Remote host closed the connection]
anshin has left #ruby ["WeeChat 0.4.2"]
yfeldblum has joined #ruby
CaptainJet has joined #ruby
incade_ has joined #ruby
browndawg has quit [Quit: Leaving.]
kitak has joined #ruby
Jeticus has quit [Ping timeout: 252 seconds]
bricker`LA has quit [Read error: Connection reset by peer]
abdulsattar has quit [Ping timeout: 265 seconds]
JasmeetQA has joined #ruby
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
lyanchih__ has joined #ruby
r0bby has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
tectonic has quit []
Cache_Money has quit [Quit: Cache_Money]
gancl has quit [Ping timeout: 246 seconds]
bricker`LA has joined #ruby
vallieres_ has quit [Quit: Textual IRC Client: www.textualapp.com]
maroloccio has quit [Quit: WeeChat 0.4.3]
bakon3 has joined #ruby
armyriad has joined #ruby
postmodern has quit [Quit: Leaving]
havenwood has quit []
derek_c has joined #ruby
virtualize has quit [Ping timeout: 240 seconds]
bakon3 has left #ruby [#ruby]
chipotle has joined #ruby
chipotle has quit [Client Quit]
tectonic has joined #ruby
rabeldable has quit [Quit: Leaving.]
dx7 has joined #ruby
chipotle has joined #ruby
cover_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<agent_white> Evening folks
<BeingUntoDeath> :D
Hanmac has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
gancl has joined #ruby
thomasxie has left #ruby [#ruby]
bricker`LA has quit [Quit: leaving]
arietis has joined #ruby
Lewix has quit [Remote host closed the connection]
kobain_ is now known as kobain
vlad_starkov has quit [Ping timeout: 264 seconds]
virtualize has joined #ruby
nari has joined #ruby
dekz__ has joined #ruby
Abyss__ has joined #ruby
aagdbl has joined #ruby
Slavox is now known as Slavox|AFK
coderxin has joined #ruby
Celm has joined #ruby
lyanchih__ has quit [Quit: lyanchih__]
andy__ has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
shastaky has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_justin has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
coderxin has quit [Ping timeout: 264 seconds]
Celm has quit [Remote host closed the connection]
Celm has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby
Zunonia__ has quit [Quit: Computer has gone to sleep.]
shastaky has quit [Quit: Leaving...]
gancl has quit [Ping timeout: 264 seconds]
kaleigh has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
lyanchih_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
mrnugget has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
tylersmith has joined #ruby
spicerack has joined #ruby
nateberkopec has joined #ruby
samuel02 has joined #ruby
Zunonia__ has joined #ruby
krz has joined #ruby
Slavox|AFK is now known as Slavox
m0s is now known as m0s^away
vlad_starkov has joined #ruby
m0s^away is now known as m0s
m0s is now known as _m0s
_m0s is now known as m0s
m0s is now known as _m0s
_m0s is now known as m0s
tylersmith has quit [Ping timeout: 240 seconds]
m0s is now known as _m0s
_m0s is now known as m0s
nateberkopec has quit [Ping timeout: 240 seconds]
abdulsattar has joined #ruby
meinside has joined #ruby
nateberkopec has joined #ruby
samuel02 has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
r0nin has joined #ruby
yasushi has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
makara has joined #ruby
r0nin has quit [Ping timeout: 265 seconds]
makara has quit [Max SendQ exceeded]
bahar has quit [Ping timeout: 268 seconds]
bahar has joined #ruby
senayar has joined #ruby
freezey has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
_justin has joined #ruby
teddyp1cker has joined #ruby
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
AussieDownUnder has joined #ruby
vlad_starkov has quit []
shaman42 has quit [Ping timeout: 252 seconds]
jmarbach has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 252 seconds]
nw has quit [Ping timeout: 246 seconds]
echevemaster has joined #ruby
nw has joined #ruby
dx7 has quit [Ping timeout: 264 seconds]
Celm has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
davedev2_ has quit [Ping timeout: 268 seconds]
browndawg has joined #ruby
ahawkins has joined #ruby
_justin has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
chaos___________ has joined #ruby
subbyyy has joined #ruby
_justin has joined #ruby
lemonsparrow has joined #ruby
rh1n0 has quit [Quit: Hopefully you don't see this...]
shaman42 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
samuel02 has joined #ruby
dzhulk has joined #ruby
nisstyre has quit [Quit: bai]
agrinb has joined #ruby
shaman42 has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
subbyyy has quit [Quit: none 0.4.3]
nw has quit [Ping timeout: 252 seconds]
endash_ has joined #ruby
postmodern has joined #ruby
coder_neo has joined #ruby
agrinb has quit [Ping timeout: 252 seconds]
anarang has joined #ruby
ujvaljoshi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevinykchan has joined #ruby
armyriad has quit [Quit: Leaving]
armyriad has joined #ruby
abdulsattar has quit [Ping timeout: 265 seconds]
Gooder has joined #ruby
_justin has quit [Ping timeout: 246 seconds]
toastynerd has joined #ruby
coderxin has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
nw has joined #ruby
shaman42 has joined #ruby
m0s is now known as m0s^away
coderxin has quit [Read error: Operation timed out]
amclain has quit [Quit: Leaving]
Hanmac1 has quit [Ping timeout: 252 seconds]
lyanchih_ has quit [Quit: lyanchih_]
ujvaljoshi has joined #ruby
r0bby_ has joined #ruby
r0bby has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
andy__ has quit [Ping timeout: 268 seconds]
marcdel has quit [Ping timeout: 268 seconds]
marcdel has joined #ruby
cj3kim_ has joined #ruby
marcdel has quit [Client Quit]
phansch has joined #ruby
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
phansch has quit [Client Quit]
bahar has quit [Ping timeout: 252 seconds]
tonni has quit [Remote host closed the connection]
r0bby_ has quit [Client Quit]
cj3kim has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
Hanmac has joined #ruby
nateberkopec has joined #ruby
kitak has quit [Remote host closed the connection]
tectonic has quit []
__class__ has quit [Ping timeout: 246 seconds]
tagrudev has joined #ruby
kitak has joined #ruby
kitak has quit [Remote host closed the connection]
ValicekB has quit [Read error: Operation timed out]
kitak has joined #ruby
browndawg has quit [Quit: Leaving.]
r0nin has joined #ruby
CaptainJet has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
djancak has quit [Ping timeout: 255 seconds]
djancak has joined #ruby
djancak has joined #ruby
monkegjinni has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Macaveli has joined #ruby
r0nin has quit [Ping timeout: 265 seconds]
<n1tr0g> ok stupid question but guys what editor are you using for ruby ? Right now most of my coding is done in sublime text 2 OS X
heftig has quit [Quit: Quitting]
coder_neo has quit [Quit: Leaving]
browndawg has joined #ruby
<centrx> vim
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
noop has joined #ruby
agent_white has quit [Ping timeout: 268 seconds]
funburn has quit [Quit: funburn]
hermanmunster has quit [Remote host closed the connection]
Chris- has quit [Quit: Chris-]
mary5030 has joined #ruby
hermanmunster has joined #ruby
tonni has joined #ruby
agent_white has joined #ruby
aganov has joined #ruby
ValicekB has joined #ruby
apeiros has quit [Remote host closed the connection]
pwh has quit []
apeiros has joined #ruby
abdulsattar has joined #ruby
mrnugget has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 268 seconds]
monzie has quit [Remote host closed the connection]
mrnugget has joined #ruby
hermanmunster has quit [Remote host closed the connection]
lsmola_ has quit [Quit: Leaving]
hermanmunster has joined #ruby
lsmola_ has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
RaptorJesus is now known as BassToMouth
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
peret has quit [Remote host closed the connection]
poikon has joined #ruby
nomenkun has joined #ruby
xcv has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
BassToMouth is now known as RaptorJesus
lyanchih__ has joined #ruby
rdark has joined #ruby
skammer has joined #ruby
lyanchih__ has quit [Client Quit]
lyanchih_ has joined #ruby
BeingUntoDeath has quit []
xcv has quit [Ping timeout: 264 seconds]
rahult_ has quit [Ping timeout: 240 seconds]
mrnugget has quit [Quit: mrnugget]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AussieDownUnder has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
Wolland has quit []
poikon has quit [Remote host closed the connection]
<pipework> n1tr0g: vim
markisonfire has joined #ruby
havenwood has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
m0s^away is now known as m0s
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<n1tr0g> pipework: using that in remote servers already :) i want something stupid and easy to use :)
tvw has joined #ruby
tonni has quit [Ping timeout: 246 seconds]
<pipework> n1tr0g: vim.
<n1tr0g> pipework: ok vim it is :)
havenwood has quit [Ping timeout: 240 seconds]
coderxin has joined #ruby
roolo has joined #ruby
whomp has quit [Ping timeout: 252 seconds]
m0s is now known as m0s^away
ahawkins has joined #ruby
nomenkun has quit [Quit: Leaving...]
crystal77 has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
coderxin has quit [Ping timeout: 268 seconds]
Zunonia__ has quit [Quit: Computer has gone to sleep.]
tonni has joined #ruby
echevemaster has quit [Remote host closed the connection]
gizmore has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
lkba has joined #ruby
sdouglas has joined #ruby
lewellyn has quit [Ping timeout: 246 seconds]
lewellyn has joined #ruby
bahar has quit [Ping timeout: 246 seconds]
bricker`LA has joined #ruby
Zunonia__ has joined #ruby
n1tr0g has quit [Quit: n1tr0g]
bahar has joined #ruby
gaussblurinc has joined #ruby
<krz> ah nvm
AussieDownUnder has joined #ruby
dgaffney_ has joined #ruby
<krz> actually, yea, shouldnt it be at least 1 hour?
nolic has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
rahult has joined #ruby
<centrx> a.rb:1:in `<main>': undefined method `to_datetime' for "Fri, 21 Mar 2014 22:00:00 +0000":String (NoMethodError)
apeiros has joined #ruby
rahult has quit [Client Quit]
<centrx> Also I get h = -1
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
rahult has joined #ruby
dgaffney has quit [Ping timeout: 246 seconds]
eynj has left #ruby [#ruby]
yacks has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 252 seconds]
Shidash has quit [Ping timeout: 252 seconds]
<krz> centrx: yea sorry to_datetime is rails
<krz> is -1 normal? should i throw in an .abs?
<centrx> Well, you're subtracting a later date from an earlier date
<centrx> so it's like 1 - 2
<centrx> so you would get a negative
nomenkun has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
r0nin has joined #ruby
nolic has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
<krz> centrx: if i switch the dates. i get 0 hours though
<krz> i.e. time_until = ("Sat, 22 Mar 2014 00:00:00 +0000".to_datetime - "Fri, 21 Mar 2014 22:00:00 +0000".to_datetime)
<krz> ps. i removed the extra minutes to make the hours more evident
RaptorJesus has quit [Quit: Leaving]
<centrx> I get 1/12
<centrx> which is 2 hours
RaptorJesus has joined #ruby
<centrx> krz, You are using modular division for some reason, which might wipe out the fraction
<krz> centrx: what did you do exactly?
<centrx> I copied and pasted the time_until line you wrote above
r0nin has quit [Ping timeout: 265 seconds]
<bnagy> isn't 1/12 correct?
<krz> centrx: h returns 1/12 for your?
<centrx> yes
<centrx> no just for the whole thing
endash_ has quit [Quit: endash_]
<centrx> krz, DateTime returns days and fractions of days. Time returns seconds
markisonfire has quit [Quit: markisonfire]
<centrx> krz, All your logic following that is designed for Time/seconds
<bnagy> wait wat no divmod works for rationals
FL1SK has quit [Ping timeout: 252 seconds]
<bnagy> which is what you should get with datetime?
<bnagy> btu I am completely LOOPY on no sleep and air travel, so I'm probably wrong
<krz> hmm given the dates, how would i output something like "it took 0 days, 2 hours and 0 minutes"?
<centrx> >> (1/2).divmod(86400)
<centrx> >> :eval
<eval-in> centrx => :eval (https://eval.in/126049)
<centrx> >> (1/2).to_r.divmod(86400)
<eval-in> centrx => [0, (0/1)] (https://eval.in/126050)
<centrx> >> Rational(1,2).divmod(86400)
<eval-in> centrx => [0, (1/2)] (https://eval.in/126051)
<krz> should i just do (1/2).to_i
<bnagy> unlikely
<krz> i can also turn datetime to date and do something like (date1-date2).to_i
<bnagy> >> (Rational(1,12) * 86400).divmod 60
<eval-in> bnagy => [120, (0/1)] (https://eval.in/126052)
hiall has joined #ruby
<krz> but am trying to understand rationals better
<bnagy> 120 minutes. easy
yfeldblum has joined #ruby
<bnagy> I mean if you have a rational you need to express it as a fractional of the smallest unit you care about
havenwood has joined #ruby
<bnagy> because arithmetic
andikr has joined #ruby
<bnagy> so it's say 1/12 of 86400 seconds, now you can divmod into minutes hours etc
teddyp1cker has joined #ruby
<bnagy> well.. hours, minutes etc.. big first
centrx has quit [Quit: All this computer hacking is making me thirsty]
<bnagy> it would be easier to see if you used a rational that weren't an exact number of hours probably
yfeldblum has quit [Remote host closed the connection]
makara has joined #ruby
_justin has joined #ruby
<krz> >> (1/12).divmod(3600)
<eval-in> krz => [0, 0] (https://eval.in/126054)
yfeldblu_ has quit [Read error: Connection reset by peer]
<bnagy> you didn't biggen it
<krz> biggen?
<bnagy> technical term
yfeldblum has joined #ruby
<bnagy> we mathetmaticians use it a lot for rational work
dumdedum_ has joined #ruby
andy__ has joined #ruby
Zunonia__ has left #ruby [#ruby]
<krz> hmm am confused
monkegjinni has joined #ruby
<bnagy> ok well you do actually need to understand fractions before it will make sense
Bumptious has quit [Remote host closed the connection]
bradhe has joined #ruby
jenskarlsen has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
Bumptious has joined #ruby
RaptorJesus has quit [Ping timeout: 246 seconds]
tonni has quit [Ping timeout: 240 seconds]
<bnagy> trying to think of a third way to explain it
fabrice31 has joined #ruby
yacks has joined #ruby
FL1SK has joined #ruby
<bnagy> a fraction is just a ratio, which we conventiently reduce to a portion of '1', if we can - like a pie chart or whatever
cj3kim has joined #ruby
<bnagy> but before you can start looking at seconds, for example, you need to make the total pie actually as big as the number of seconds in a day
<bnagy> instead of 1/12 of what would effectively be one second
AussieDownUnder has quit [Remote host closed the connection]
<bnagy> so when you * 86400 you're saying "I want to look at some stuff to do with fractions of a pie that is 86400 second"
shutch has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
<bnagy> if the fraction was actually 5 and a twelfth then it would be 5 times that big BUT the basic unit is still seconds so we're cool
jenskarlsen has quit [Client Quit]
jenskarlsen has joined #ruby
<krz> bnagy: so whats the issue with this then https://gist.github.com/krzkrzkrz/3d1a422c027bbbcf2ded
<krz> im already doing it by the number of seconds
<krz> hours still equals 0
<bnagy> I don't have to_datetime
zigomir has joined #ruby
andy__ has quit [Ping timeout: 246 seconds]
<bnagy> wait, you're dividing by 86400
<bnagy> you should be multiplying
<bnagy> I honestly cannot explain it a fourth time
<bnagy> I am done
yasushi has joined #ruby
jprovazn has joined #ruby
hiall has quit [Quit: hiall]
dgaffney has joined #ruby
<bnagy> require 'date';((DateTime.parse("Sat, 22 Mar 2014 00:00:00 +0000") - DateTime.parse("Fri, 21 Mar 2014 22:00:00"))*86400).divmod 3600
havenwood has quit [Ping timeout: 268 seconds]
<bnagy> lame
tonni has joined #ruby
razibog has joined #ruby
dgaffney_ has quit [Ping timeout: 252 seconds]
_justin has quit [Quit: _justin]
blackmesa has joined #ruby
agrinb has joined #ruby
ahawkins has joined #ruby
yasushi has quit [Ping timeout: 268 seconds]
senayar_ has joined #ruby
cj3kim has quit [Remote host closed the connection]
senayar has quit [Read error: Operation timed out]
klaut has joined #ruby
<krz> :P
<krz> a sigh of relief
roolo has quit [Quit: Leaving...]
<apeiros> what a luck… no need to understand elementary school math :-p
agrinb has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 268 seconds]
tonni has quit [Remote host closed the connection]
rahult is now known as rahult_
bal has joined #ruby
claymore has joined #ruby
<krz> but i do appreciate your explanation. will definitely continue the manual route and see how far i get
Deele has joined #ruby
Xeago has joined #ruby
mrnugget has joined #ruby
LiohAu has joined #ruby
cj3kim has joined #ruby
einarj has joined #ruby
coderxin has joined #ruby
tvw has quit []
<bnagy> well it's not just convenience
<bnagy> using rationals will be very accurate, even for long periods of time
_Andres has joined #ruby
<bnagy> although you kind of need a rational expression of seconds I guess :/
<bnagy> using a - b in seconds and dividing will be less accurate
ndrei has joined #ruby
sk87 has joined #ruby
rahult_ is now known as rahult
rahult is now known as rahult_
rahult_ is now known as rahult
hiall has joined #ruby
andrewlio has joined #ruby
_justin has joined #ruby
stef_204 has joined #ruby
<certainty> moin
coderxin has quit [Ping timeout: 252 seconds]
<apeiros> moin
sdouglas has joined #ruby
ktosiek has joined #ruby
Gooder has quit [Remote host closed the connection]
Photism has joined #ruby
dangerousdave has joined #ruby
SonicX has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
Gooder has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Mrdarknezz has joined #ruby
sdouglas has quit [Ping timeout: 268 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
pfg has joined #ruby
himsin has joined #ruby
bahar has joined #ruby
poikon has joined #ruby
nateberkopec has joined #ruby
rdark has quit [Quit: leaving]
camilasan has joined #ruby
r0nin has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
skkeeper has joined #ruby
NovapaX has joined #ruby
bahar has quit [Ping timeout: 268 seconds]
cj3kim has quit [Remote host closed the connection]
bahar has joined #ruby
r0nin has quit [Ping timeout: 268 seconds]
ikaros has joined #ruby
wallerdev has quit [Quit: wallerdev]
tonni has joined #ruby
poikon has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
popl has joined #ruby
popl has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
bradhe has joined #ruby
ephemerian has joined #ruby
dagobah has joined #ruby
elaptics`away is now known as elaptics
rahult is now known as rahult_
Dr3amc0d3r has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
samuel02 has joined #ruby
bluenemo has joined #ruby
poikon_ has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
tgkokk has joined #ruby
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
rahult_ is now known as rahult
bradhe has quit [Ping timeout: 252 seconds]
rahult is now known as rahult_
Rober9393 has joined #ruby
rahult_ is now known as rahult
rahult is now known as rahult_
lele has joined #ruby
msmith_ has joined #ruby
samuel02 has quit [Ping timeout: 264 seconds]
samuel02 has joined #ruby
dangerousdave has quit [Quit: Leaving...]
jespada has joined #ruby
mehlah has joined #ruby
dgaffney has quit [Ping timeout: 252 seconds]
msmith_ has quit [Ping timeout: 240 seconds]
razibog has quit [Ping timeout: 265 seconds]
mupkoo has joined #ruby
havenwood has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
jlebrech has joined #ruby
<agent_white> Well... I still need to learn event loops. But I did get my arduino to play happy birthday on an old computer speaker.
<agent_white> I just need to find someone with a birthday.
<DefV> lol
<DefV> "I did this cool thing, now to find some friends.."
<DefV> :-)
YamakasY has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<agent_white> ;D
monkegjinni has joined #ruby
roolo has joined #ruby
dgaffney has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
postmodern has quit [Quit: Leaving]
nvrch has joined #ruby
mikecmpbll has joined #ruby
Rober9393 has quit [Quit: Lingo - http://www.lingoirc.com]
shredding has joined #ruby
tvw has joined #ruby
decoponio has joined #ruby
dangerousdave has joined #ruby
scoff has joined #ruby
eliasp has quit [Ping timeout: 252 seconds]
dEPy has joined #ruby
werdnativ has quit [Quit: werdnativ]
coderxin has joined #ruby
scoff has left #ruby ["Leaving"]
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parduse has quit [Ping timeout: 252 seconds]
b00stfr3ak has quit [Ping timeout: 246 seconds]
parduse has joined #ruby
agent_white has quit [Quit: gnight]
tgkokk has quit [Quit: WeeChat 0.4.3]
victorbjelkholm has joined #ruby
AlSquire has joined #ruby
coderxin has quit [Ping timeout: 246 seconds]
tgkokk has joined #ruby
pfg has joined #ruby
eliasp has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
workmad3 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
victorbjelkholm has quit [Client Quit]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
camilasa_ has quit [Read error: No route to host]
camilasan has joined #ruby
victorbjelkholm has joined #ruby
camilasa_ has joined #ruby
shaunbaker has joined #ruby
camilas__ has joined #ruby
sski has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 240 seconds]
camilas__ has quit [Read error: Connection reset by peer]
camila___ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
NovapaX has joined #ruby
Alina-malina has joined #ruby
Gooder has quit [Remote host closed the connection]
camila___ has quit [Read error: Connection reset by peer]
camilas__ has joined #ruby
camila___ has joined #ruby
camilas__ has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
camilasan has quit [Ping timeout: 268 seconds]
camila___ has quit [Read error: Connection reset by peer]
lolmaus_ has joined #ruby
camilasan has joined #ruby
ayaz has joined #ruby
camilasa_ has quit [Ping timeout: 268 seconds]
lolmaus has quit [Ping timeout: 268 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
gigetoo has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
camilasa_ has joined #ruby
skammer is now known as skammer|afk
skammer|afk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasa_ has quit [Remote host closed the connection]
camilasa_ has joined #ruby
fantazo has joined #ruby
gigetoo has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
kobain has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
r0nin has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
obs has joined #ruby
<shevy> lol DefV
camilasan has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
ujvaljoshi has quit [Quit: Textual IRC Client: www.textualapp.com]
jackneill has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
bradhe has joined #ruby
r0nin has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 240 seconds]
lemonsparrow has quit [Ping timeout: 245 seconds]
n1tr0g has joined #ruby
bahar has joined #ruby
n1tr0g has quit [Client Quit]
crystal77 has joined #ruby
razibog has joined #ruby
abdulsattar has quit [Ping timeout: 264 seconds]
razibog has quit [Client Quit]
slava has left #ruby [#ruby]
slava has joined #ruby
slava has left #ruby [#ruby]
jackneill has quit [Client Quit]
bradhe has quit [Ping timeout: 252 seconds]
<gaussblurinc> how to solve this: get all file names in directory with absolute paths? Dir.glob("*").map{|path| File.absolute_path(path)} ?
eka has joined #ruby
<apeiros> do the glob with the absolute path
jackneill has joined #ruby
havenwood has joined #ruby
ktosiek has quit [Ping timeout: 240 seconds]
sski has joined #ruby
timonv has joined #ruby
nfk has quit [Read error: Operation timed out]
monkegjinni has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
alexju_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 268 seconds]
monkegjinni has joined #ruby
codenapper has quit [Quit: codenapper]
ezelohar has joined #ruby
xcv has joined #ruby
teddyp1cker has quit [Ping timeout: 268 seconds]
gregf___2 has quit [Quit: leaving]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sski_ has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
chipotle has joined #ruby
tgkokk has quit [Ping timeout: 246 seconds]
sski has quit [Ping timeout: 268 seconds]
lyanchih_ has quit [Quit: lyanchih_]
etqqkoiflwhb has joined #ruby
fieldfirst has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
withnale has quit [Ping timeout: 245 seconds]
sski_ has quit [Remote host closed the connection]
dayepa has joined #ruby
dp90219 has joined #ruby
dp90219 has quit [Max SendQ exceeded]
dp90219 has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
dp90219 has quit [Max SendQ exceeded]
razibog has joined #ruby
Jetchisel has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
TigerWolf has joined #ruby
razibog has quit [Ping timeout: 252 seconds]
bahar has quit [Ping timeout: 246 seconds]
mansi has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
mehlah has quit [Quit: Leaving...]
mengu has quit [Remote host closed the connection]
n1tr0g has joined #ruby
withnale has joined #ruby
ndrei has joined #ruby
matchaw has joined #ruby
matchaw_ has quit [Ping timeout: 240 seconds]
jollyy has joined #ruby
rdark has joined #ruby
red234324 has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
dp90219 has joined #ruby
ezrios has quit [Read error: Operation timed out]
dp90219 has quit [Max SendQ exceeded]
lkba has quit [Ping timeout: 252 seconds]
dp90219 has joined #ruby
dp90219 has quit [Max SendQ exceeded]
monkegjinni has quit [Remote host closed the connection]
sepp2k has joined #ruby
dp90219 has joined #ruby
dp90219 has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
dayepa has quit [Quit: dayepa]
bradhe has joined #ruby
pliu219 has joined #ruby
pliu219 has quit [Max SendQ exceeded]
mercwithamouth has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
cbreeze has joined #ruby
mupkoo has quit []
bahar has quit [Ping timeout: 264 seconds]
r0nin has joined #ruby
S0da has joined #ruby
monkegjinni has quit [Ping timeout: 264 seconds]
lyanchih_ has joined #ruby
bahar has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
Jetchisel has joined #ruby
r0nin has quit [Ping timeout: 246 seconds]
n1tr0g has quit [Quit: n1tr0g]
blackmes1 has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
mansi has quit [Remote host closed the connection]
maximski has joined #ruby
mansi has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
skammer has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
mansi has quit [Ping timeout: 252 seconds]
rahult has joined #ruby
brandonjmckay has joined #ruby
brandonjmckay has quit [Client Quit]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
timonv has quit [Remote host closed the connection]
m0s^away is now known as m0s
Speed has joined #ruby
rahult has quit [Client Quit]
monkegjinni has joined #ruby
blackmes1 has quit [Ping timeout: 268 seconds]
pliu219 has joined #ruby
timonv has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 252 seconds]
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
lkba has joined #ruby
mengu has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
rahult has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
roberto_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
mostlybadfly has joined #ruby
Advocation has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
gregf_ has joined #ruby
_justin has quit [Quit: _justin]
roberto_ is now known as maculai
coderxin has joined #ruby
red234324 has quit [Remote host closed the connection]
tgkokk has joined #ruby
sski has joined #ruby
gancl has joined #ruby
Advocation has quit [Client Quit]
monkegjinni has quit [Remote host closed the connection]
maculai has quit [Quit: Saliendo]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
bambuka has joined #ruby
twiceaday has quit [Ping timeout: 264 seconds]
twiceaday has joined #ruby
mrnugget has quit [Quit: mrnugget]
razibog has joined #ruby
danshultz has joined #ruby
S0da has quit [Remote host closed the connection]
fabrice31 has joined #ruby
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
tgkokk has quit [Ping timeout: 252 seconds]
tgkokk has joined #ruby
Advocation has joined #ruby
sparrovv has joined #ruby
razibog has quit [Quit: Leaving.]
rahult is now known as rahult_
jottr has joined #ruby
jason___ has joined #ruby
dzhulk has quit [Quit: Leaving.]
hermanmunster has joined #ruby
ndrei has quit [Ping timeout: 268 seconds]
tgkokk has quit [Ping timeout: 252 seconds]
boboc has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
mrnugget has joined #ruby
nari has quit [Ping timeout: 264 seconds]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
n1tr0g has joined #ruby
danshult_ has joined #ruby
gancl has quit [Ping timeout: 265 seconds]
gaussblurinc has quit [Quit: Leaving.]
roolo has quit [Quit: Leaving...]
gaussblurinc has joined #ruby
danshultz has quit [Ping timeout: 246 seconds]
sski has quit [Remote host closed the connection]
skammer has quit [Ping timeout: 264 seconds]
sski has joined #ruby
bradhe has joined #ruby
Lewix has joined #ruby
Loaft has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
francois_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
nfk has joined #ruby
bradhe has joined #ruby
nateberkopec has joined #ruby
patrick99e99 has quit [Ping timeout: 252 seconds]
razibog has joined #ruby
samuel02 has quit [Remote host closed the connection]
danshult_ has quit [Remote host closed the connection]
rahult_ is now known as rahult
Hanmac1 has quit [Ping timeout: 252 seconds]
samuel02 has joined #ruby
danshultz has joined #ruby
jmarbach has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
jason___ has quit [Remote host closed the connection]
jmarbach has quit [Remote host closed the connection]
_justin has joined #ruby
gancl has joined #ruby
jason___ has joined #ruby
Advocation has quit [Quit: Advocation]
bradhe has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
cover has joined #ruby
Danny_Joris has joined #ruby
jkamenik has joined #ruby
nvrch has quit [Quit: nvrch]
samuel02 has quit [Ping timeout: 240 seconds]
r0nin has joined #ruby
NovapaX has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
antihero has joined #ruby
skammer has joined #ruby
skammer has quit [Max SendQ exceeded]
<antihero> I'm trying to install stuff with rubygems. If I do gem install, I get cannot write to /usr/lib/... which makes sense, but if I do sudo gem install, it tries to install it to /root/.gem
<antihero> which is like
<antihero> wat
jason___ has quit [Ping timeout: 264 seconds]
<apeiros> sounds like you borked your ruby installation to begin with
shredding has quit [Quit: shredding]
<antihero> I installed it with pacman
francois_ has quit [Quit: Leaving]
francois_ has joined #ruby
<apeiros> I'd ask in pacman related channels then
<apeiros> it sounds as if you installed a user installation in /usr/lib
ndrei has joined #ruby
<crome> pacman <o>
r0nin has quit [Ping timeout: 265 seconds]
<apeiros> pacman… C • • •
<crome> that kind of pacman is alright
rahult is now known as rahult_
francois_ has quit [Client Quit]
Hanmac has quit [Quit: Leaving.]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
dzhulk has joined #ruby
Macaveli has joined #ruby
havenwood has joined #ruby
roolo has joined #ruby
teddyp1cker has joined #ruby
blackmes1 has joined #ruby
davedev24 has joined #ruby
tgkokk has joined #ruby
simono has joined #ruby
arietis has joined #ruby
arietis has quit [Client Quit]
SonicX has joined #ruby
samuel02 has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
maximski has quit [Ping timeout: 265 seconds]
rmill has quit [Ping timeout: 265 seconds]
tgkokk has quit [Client Quit]
mehlah has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
JasmeetQA has quit [Quit: Leaving.]
maximski has joined #ruby
rmill has joined #ruby
jason___ has joined #ruby
dblessing has joined #ruby
gancl has quit [Ping timeout: 252 seconds]
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nvrch has joined #ruby
rdark has quit [Read error: Operation timed out]
_justin has quit [Quit: _justin]
jason___ has quit [Remote host closed the connection]
rahult_ is now known as rahult
jason___ has joined #ruby
relix has joined #ruby
banister has quit [Read error: Connection reset by peer]
pliu219 has quit [Remote host closed the connection]
abdulsattar has joined #ruby
alex88 has joined #ruby
_justin has joined #ruby
razibog has quit [Ping timeout: 265 seconds]
rdark has joined #ruby
Hanmac has joined #ruby
popl has quit [Ping timeout: 252 seconds]
jason___ has quit [Ping timeout: 252 seconds]
gancl has joined #ruby
funktor has joined #ruby
jhass|off is now known as jhass
banister has joined #ruby
fieldfirst has joined #ruby
scottj has joined #ruby
agrinb has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
simono has joined #ruby
Melnorme has joined #ruby
tgkokk has joined #ruby
peret has joined #ruby
Melnorme has quit [Remote host closed the connection]
lethjakman has joined #ruby
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
sk87 has joined #ruby
agrinb has quit [Ping timeout: 252 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
Advocation has joined #ruby
boboc has quit []
benzrf|offline is now known as benzrf
andrewlio has quit [Ping timeout: 246 seconds]
_justin has quit [Quit: _justin]
geoffw8_ has joined #ruby
jcs222 has quit [Read error: Connection reset by peer]
jcs222 has joined #ruby
freerobby has joined #ruby
<jhass> antihero: post your gem env
kennym has joined #ruby
Beoran_ has quit [Ping timeout: 246 seconds]
sambao21 has quit [Ping timeout: 240 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 252 seconds]
freggles has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
ndrei has joined #ruby
sparrovv has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
nari has joined #ruby
monkegjinni has joined #ruby
TuxLyn has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
pu22l3r_ has quit [Ping timeout: 240 seconds]
jxport has quit [Read error: Operation timed out]
kwertie has quit [Read error: Operation timed out]
eregon has quit [Read error: Operation timed out]
jxport has joined #ruby
kwertie has joined #ruby
mark_locklear has joined #ruby
patronus_ has joined #ruby
tgkokk has quit [Ping timeout: 265 seconds]
monsieur1 has joined #ruby
eregon has joined #ruby
monsieurp has quit [Read error: Operation timed out]
Sawbones has joined #ruby
jibi has quit [Read error: Operation timed out]
alk_ has quit [Read error: Operation timed out]
tkuchiki_ has joined #ruby
alk_ has joined #ruby
bradhe has joined #ruby
<TuxLyn> Hello, is it possible to do something like this in ruby > (PHP) for ($i=1; $i<=10; $i++) { echo $i; }
jibi has joined #ruby
sparrovv has quit [Ping timeout: 268 seconds]
patronus has quit [Ping timeout: 252 seconds]
<jhass> 1.upto(10) {|i| print i }
<TuxLyn> I know you can do something like; (RUBY) for i in 1..10 do puts i end but its not the same, because when you want to reverse that it wont work :)
sski has quit [Remote host closed the connection]
<jhass> 10.downto(1) {|i| print i }
sski has joined #ruby
<TuxLyn> example in reverse in (PHP) for ($i=10; $i>=1; $i--)
<TuxLyn> jhass, is that the same ?
<TuxLyn> let me try :)
<jhass> ;)
momomomomo has joined #ruby
Advocation has quit [Quit: Advocation]
tkuchiki has quit [Ping timeout: 246 seconds]
<TuxLyn> jhass, ok how will this be in block ?
<jhass> hm?
<TuxLyn> jhass, like into 3 lines :)
<jhass> 1.upto(10) do |i|
<jhass> print i
<jhass> end
<TuxLyn> thank you :)
gancl has quit [Ping timeout: 240 seconds]
<TuxLyn> jhass, yeah this is what I was looking for :) any other way to do this ?
bradhe has quit [Ping timeout: 246 seconds]
<jhass> a couple, no superior IMO
<jhass> (1..10).each / (10..1).each is a common one (actually not sure if the last one works)
yacks has quit [Ping timeout: 252 seconds]
Beoran_ has joined #ruby
<TuxLyn> so you think this is the best way to convert (PHP) function like I showed above ?
sski has quit [Ping timeout: 246 seconds]
<jhass> don't convert code to ruby from php
<DefV> don't convert PHP code to ruby
<jhass> write new code with the same functionality
<DefV> indeed
<DefV> and cover it with tests while you're at it
nateberkopec has joined #ruby
<TuxLyn> jhass, last one dont work
yfeldblum has joined #ruby
<TuxLyn> jhass, thanks
_justin has joined #ruby
tgkokk has joined #ruby
oneawayman has joined #ruby
Advocation has joined #ruby
<TuxLyn> jhass, oh one more thing is it possible to do this with vars ? like instead of defining static numbers.
<jhass> sure
<jhass> a = 1; b = 20; a.upto(b)
<TuxLyn> awesome :)
<lolmaus_> I'm doing this: {}.tap { |hash| hash[:id] = 'foo'; hash[:title] = hash[:id].capitalize + '.
<TuxLyn> lolmaus_, long ass one-lines are just stupid :)
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has quit [Client Quit]
<TuxLyn> no offance :)
<lolmaus_> TuxLyn: i'm struggling to compose a question as short as possible, hold on. I'm not doing code golf in real life projects.
<jhass> yeah, no benefit over hash = {id: 'foo'}; hash[:title] = "#{hash[:id].capitalize}."
<TuxLyn> jhass, has the best answers so far :-)
einarj has quit [Remote host closed the connection]
jollyy has quit [Quit: jollyy]
sambao21 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<lolmaus_> I'm doing this: `{}.tap { |hash| hash[:id] = 'foo'; hash[:title] = hash[:id].capitalize + '.' }`. I wonder whether there's a way to do the same with the literal syntax? something like: `{ id: 'foo', title: self.capitalize + '.'}`.
m0s is now known as m0s^away
<lolmaus_> Oops i meant this: `{ id: 'foo', title: self[:id].capitalize + '.'}`.
yfeldblum has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
<jhass> not afaik (easy to try out)
afreidah has joined #ruby
<jhass> I already wrote what I think you should be doing
<lolmaus_> jhass: i know that self wouldn't work, but there might be another reserved word or something.
<jhass> ruby has very few reserved words (compared to other languages)
sambao21 has quit [Client Quit]
<TuxLyn> so now I can do something like > ended.downto(start) or start.upto(start) :D very cool.
<TuxLyn> sorry 2nd one is > start.upto(ended)
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
xcv has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 246 seconds]
samuel02 has quit []
<lolmaus_> jhass: i hate to create ad hoc variables when they are used only once, especially when you define half of the hash with a literal and the other half with assignments. The tap approach looks cleaner to me. But at the same time it's bulkier, so i crave for being able to access a literal from itself.
benzrf is now known as benzrf|offline
dumdedum_ has quit [Quit: foo]
withnale_ has joined #ruby
<jhass> well, in a realworld example I'd expect, def to_h; {id: id, title: "#{id.capitalize}." }; end
<jhass> or s/id/@id/
Danny_Joris has left #ruby [#ruby]
afreidah1 has joined #ruby
Advocation has joined #ruby
<jhass> or id passed as parameter to the method building the hash
afreidah has quit [Ping timeout: 246 seconds]
poguez__ has joined #ruby
jcs222_ has joined #ruby
sparrovv has joined #ruby
Photism_ has joined #ruby
Photism has quit [Read error: Connection reset by peer]
mjmac has quit [Ping timeout: 265 seconds]
withnale has quit [Quit: No Ping reply in 180 seconds.]
tvw has quit [Remote host closed the connection]
poguez_ has quit [Ping timeout: 265 seconds]
twiceaday has quit [Remote host closed the connection]
artgoeshere has quit [Ping timeout: 265 seconds]
jcs222 has quit [Ping timeout: 265 seconds]
Abyss__ has quit [Ping timeout: 265 seconds]
mjmac has joined #ruby
jackneill has quit [Ping timeout: 265 seconds]
poguez__ is now known as poguez_
Alina-malina has quit [Read error: Connection reset by peer]
artgoeshere has joined #ruby
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
benzrf|offline is now known as benzrf
Bumptious has quit [Ping timeout: 255 seconds]
afreidah2 has joined #ruby
twiceaday has joined #ruby
Alina-malina has joined #ruby
lolmaus_ has quit [Remote host closed the connection]
lolmaus has joined #ruby
gancl has joined #ruby
<lolmaus> jhass: i mean, any Ruby expression returns a value. When all you need is to return a new object, why put it into a variable?
jmarbach has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
xjiujiu has joined #ruby
jason___ has joined #ruby
<TuxLyn> Does anyone know if CURB is complete wrapper for CURL ?
<workmad3> lolmaus: readability?
<jhass> it can be useful to build it up. as I said I think it's a rare case that you have a static value that you assign to a datastructure and then want to do operations on it
klaut has quit [Remote host closed the connection]
<jhass> instead you rather have that value available as parameter / method / variable
<jhass> and then as well can use that reference multiple times
rdark has quit [Ping timeout: 265 seconds]
<TuxLyn> it says its fully featured, but does it support COOKIEFILE for example ?
<TuxLyn> I can't seem to find full manual for it lol
jmarbach has quit [Remote host closed the connection]
havenwood has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jhass is now known as jhass|off
agjacome has joined #ruby
rdark has joined #ruby
<lolmaus> workmad3: splitting an object into two pieces (a literal and assignments) does not improve readability either.
afreidah2 has quit [Ping timeout: 264 seconds]
felipecvo has joined #ruby
<workmad3> lolmaus: depends on how you do it ;)
<lolmaus> jhass|off: i'm building a frontend prototype and i do that daily to generate dummy content.
sparrovv has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
<TuxLyn> never mind it looks like it supports all this > http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
DaniG2k has joined #ruby
<workmad3> lolmaus: but it is, as jhass|off says, rare IME that you have a lot of assignment to statics in a real world literal
felipecvo has quit [Read error: Connection reset by peer]
<lolmaus> Ok, i'll stay with tap.
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
felipecvo has joined #ruby
PlxAnswer has joined #ruby
<PlxAnswer> Help by answering a single stupid question. Thanks in advance! https://docs.google.com/forms/d/1pv0Fq87udiUXLQ-DJhDQnKwjZFGpX4D-3y2OMaEvaeY/viewform
rvraghav93 has joined #ruby
kukyakya has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
PlxAnswer has quit [Killed (idoru (Spam is off topic on freenode.))]
kukyakya has joined #ruby
dzhulk has left #ruby [#ruby]
soulcake has joined #ruby
coderxin has quit [Remote host closed the connection]
andy___ has joined #ruby
sailias has joined #ruby
m0s^away is now known as m0s
sailias has quit [Client Quit]
andy___ is now known as Guest55922
sailias has joined #ruby
bambuka has quit [Quit: Saliendo]
ahawkins has quit [Quit: leaving]
ahawkins has joined #ruby
ahawkins has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
<TuxLyn> I wonder why there is no CURL wrapper in stdlib ^_^ It's one of the most advanced tools.
havenwood has joined #ruby
ezelohar has quit [Ping timeout: 252 seconds]
ahawkins has joined #ruby
jmarbach has joined #ruby
Guest55922 has quit [Ping timeout: 246 seconds]
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
gancl has quit [Ping timeout: 265 seconds]
brain_shim has joined #ruby
felipecv_ has joined #ruby
jmarbach has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
felipecvo has quit [Read error: Connection reset by peer]
fieldfirst has quit [Ping timeout: 268 seconds]
m0s is now known as m0s^away
TuxLyn has quit [Quit: Leaving]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
chris_thomson has joined #ruby
inkblots has joined #ruby
jason___ has quit [Remote host closed the connection]
jackneill has joined #ruby
coderxin has joined #ruby
jason___ has joined #ruby
gancl has joined #ruby
tkuchiki has quit [Ping timeout: 268 seconds]
felipecvo has joined #ruby
felipecv_ has quit [Ping timeout: 264 seconds]
brain_shim has quit [Ping timeout: 265 seconds]
armyriad has joined #ruby
dik_dak has joined #ruby
dEPy has joined #ruby
chris_thomson has quit [Quit: Zzz...]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jason___ has quit [Ping timeout: 264 seconds]
larissa has quit [Quit: Leaving]
mansi has joined #ruby
_tpavel has joined #ruby
thomasxie has joined #ruby
felipecvo has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
Advocation has quit [Quit: Advocation]
bradhe has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
sski has joined #ruby
felipecvo has joined #ruby
Advocation has joined #ruby
browndawg has quit [Remote host closed the connection]
trhodes_ has quit [Ping timeout: 255 seconds]
pliu219 has joined #ruby
Vovko has joined #ruby
pliu219 has quit [Max SendQ exceeded]
Lewix has quit [Remote host closed the connection]
pliu219 has joined #ruby
pliu219 has quit [Max SendQ exceeded]
browndawg has joined #ruby
eka has joined #ruby
jollyy has joined #ruby
felipecv_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
r0nin has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
monkegjinni has joined #ruby
zachallett has joined #ruby
hfp`away is now known as hfp
trhodes_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
SrRaven-work has joined #ruby
monkegjinni has joined #ruby
dekz__ has quit [Quit: Connection closed for inactivity]
<SrRaven-work> Hey, I have Ruby 1.9.3p545 and want to install Rake, but rake says it cant because it needs Ruby >=1.9. Which I obviously have installed, any idea ? CentOS is the OS
atno has quit [Read error: Connection reset by peer]
felipecvo has quit [Ping timeout: 268 seconds]
atno has joined #ruby
rjhunter has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pfg has joined #ruby
mansi has quit [Quit: Leaving...]
workmad3 has quit [Quit: leaving]
tkuchiki has joined #ruby
rudisimo has joined #ruby
felipecv_ has quit [Ping timeout: 265 seconds]
felipecvo has joined #ruby
razibog has joined #ruby
Sawbones has quit []
monkegjinni has quit [Remote host closed the connection]
cpruitt has joined #ruby
rvraghav93 has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
monkegjinni has joined #ruby
sk87 has joined #ruby
keen______ is now known as keen_
einarj has joined #ruby
ctp has quit [Client Quit]
yacks has joined #ruby
MattStratton has joined #ruby
scottj has left #ruby [#ruby]
einarj has quit [Remote host closed the connection]
gancl has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
einarj has joined #ruby
rvraghav93 has joined #ruby
nateberkopec has joined #ruby
LiohAu has quit [Quit: LiohAu]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
_justin has quit [Quit: _justin]
LiohAu has joined #ruby
monkegjinni has quit [Ping timeout: 268 seconds]
funktor has quit [Remote host closed the connection]
meatherly has joined #ruby
codabrink has joined #ruby
_justin has joined #ruby
yekta has joined #ruby
mansi has joined #ruby
workmad3 has joined #ruby
BitBandit has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
BitBandit has left #ruby [#ruby]
rubydog has joined #ruby
gwb3 has quit [Quit: leaving]
mary5030 has joined #ruby
kaspergrubbe has joined #ruby
alexju has joined #ruby
predator117 has joined #ruby
thomasxie has quit [Remote host closed the connection]
Murci3lago has quit []
afreidah2 has joined #ruby
S0da has joined #ruby
CorySimmons has joined #ruby
notjohn has joined #ruby
jollyy has quit [Quit: jollyy]
r0nin has quit [Remote host closed the connection]
felipecvo has quit [Remote host closed the connection]
havenwood has joined #ruby
jason___ has joined #ruby
monkegjinni has joined #ruby
jollyy has joined #ruby
garndt has joined #ruby
notjohn has quit [Client Quit]
teddyp1cker has joined #ruby
notjohn has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
sailias has quit [Quit: Leaving.]
xcv has joined #ruby
jason___ has quit [Ping timeout: 246 seconds]
jason___ has joined #ruby
pliu219 has joined #ruby
pliu219 has quit [Max SendQ exceeded]
teddyp1cker has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
sailias has joined #ruby
pliu219 has joined #ruby
pliu219 has quit [Max SendQ exceeded]
pu22l3r has quit [Remote host closed the connection]
dEPy has quit [Quit: Computer has gone to sleep.]
ValicekB has quit [Ping timeout: 252 seconds]
pliu219 has joined #ruby
chipotle_ has joined #ruby
ndrei has quit [Ping timeout: 268 seconds]
pu22l3r has joined #ruby
m0s^away is now known as m0s
chipotl__ has joined #ruby
CreativeEmbassy has joined #ruby
<ghr> SrRaven-work how are you trying to install rake?
havenwood has quit [Ping timeout: 240 seconds]
pedda has joined #ruby
makara has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Remote host closed the connection]
<ghr> And how did you install ruby?
kennym has left #ruby [#ruby]
monkegjinni has joined #ruby
havenwood has joined #ruby
Solnse has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 240 seconds]
kaspergr_ has joined #ruby
enebo has joined #ruby
_tpavel has quit [Ping timeout: 264 seconds]
chipotle_ has quit [Ping timeout: 265 seconds]
chuk has joined #ruby
sputnik13 has joined #ruby
sdouglas has joined #ruby
sailias has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
juarlex has joined #ruby
momomomomo has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
juarlex has quit [Remote host closed the connection]
chipotle has joined #ruby
ValicekB has joined #ruby
sailias has joined #ruby
rubydog has quit []
yekta has quit [Quit: yekta]
chipotl__ has quit [Ping timeout: 265 seconds]
m0s is now known as m0s^away
dayepa has joined #ruby
Es0teric has joined #ruby
agrinb has joined #ruby
sdouglas has quit [Remote host closed the connection]
armyriad has quit [Read error: Operation timed out]
zz_jrhorn424 is now known as jrhorn424
dangerousdave has quit [Read error: Connection reset by peer]
CorySimmons has quit [Quit: Bye!]
chipotle_ has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
rayners has joined #ruby
dangerousdave has joined #ruby
chipotle_ has joined #ruby
chipotle_ has quit [Max SendQ exceeded]
chipotle_ has joined #ruby
chipotle_ has quit [Max SendQ exceeded]
dEPy has joined #ruby
ffranz has joined #ruby
chipotle_ has joined #ruby
agrinb has quit [Ping timeout: 252 seconds]
makara has joined #ruby
cjk101010 has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
bradhe has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
agarie has joined #ruby
evenix has joined #ruby
sdouglas has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
_tpavel has joined #ruby
_justin has quit [Quit: _justin]
cjk101010 has joined #ruby
<SrRaven-work> I am now stuck after this command "RAILS_ENV=production rake tarantula:install"
<SrRaven-work> gives me a bunch of errors
yfeldblum has joined #ruby
pr0ggie has joined #ruby
rvraghav93 has quit [Ping timeout: 246 seconds]
snath has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
Lewix has joined #ruby
_justin has joined #ruby
yekta has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
bradhe has quit [Ping timeout: 240 seconds]
meatherly has quit [Read error: Connection reset by peer]
andy___ has joined #ruby
meatherly has joined #ruby
sambao21 has joined #ruby
andy___ is now known as Guest33272
CorySimmons has joined #ruby
CorySimmons has quit [Client Quit]
jcs222_ has quit [Quit: leaving]
coderxin has quit []
chipotle_ has quit [Read error: Connection reset by peer]
dayepa has quit [Quit: dayepa]
tonni has quit [Remote host closed the connection]
chipotle has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chipotle_ has joined #ruby
<havenwood> SrRaven-work: Paste a Gist of the errors?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
m0s^away is now known as m0s
Lewix has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<havenwood> SrRaven-work: Might try #rubyonrails as well.
xjiujiu has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
lukec has joined #ruby
MindfulMonk has quit [Ping timeout: 265 seconds]
chipotle has quit [Ping timeout: 268 seconds]
SevereOverfl0w has quit [Ping timeout: 265 seconds]
patrick99e99 has joined #ruby
yasushi has joined #ruby
notjohn has quit [Quit: notjohn]
eka has joined #ruby
codabrink has quit [Ping timeout: 265 seconds]
codabrink has joined #ruby
joonty has quit [Ping timeout: 246 seconds]
joonty_ has joined #ruby
monkegjinni has joined #ruby
joonty_ is now known as joonty
notjohn has joined #ruby
dx7 has joined #ruby
SCommette has joined #ruby
pliu219 has quit [Remote host closed the connection]
jason___ has quit [Remote host closed the connection]
jollyy has quit [Ping timeout: 268 seconds]
<SrRaven-work> sec havenwood im moving between offices all the frigging time
brain_shim has joined #ruby
notjohn has quit [Client Quit]
freezey has joined #ruby
sdouglas has quit [Remote host closed the connection]
rjhunter has quit [Quit: Leaving...]
notjohn has joined #ruby
m0s is now known as m0s^away
SonicX has quit [Ping timeout: 252 seconds]
geggam has joined #ruby
<havenwood> SrRaven-work: looks like 1.8 and 1.9.3 are being equivocated between
<SrRaven-work> ...whaa?
_justin has quit [Quit: _justin]
<havenwood> SrRaven-work: Check?: which gem
himsin has quit [Quit: himsin]
<SrRaven-work> gives me /usr/local/bin/gem
S0da has quit [Remote host closed the connection]
<Takumo> Hi, in rake is it possible to suppress normal output?
jollyy has joined #ruby
_justin has joined #ruby
<Takumo> I want to silence the output from `sh` and `cp` etc, and just use a Logger to create a build log
blackmes1 has quit [Read error: Operation timed out]
skaflem has joined #ruby
<havenwood> SrRaven-work: Looks like maybe an RVM Ruby miss-paired with a system RubyGems? Did you do a `sudo` RVM install or something I wonder.
<SrRaven-work> yes I had to,otherwise it wouldnt work
<SrRaven-work> dont ask me why
tonni has joined #ruby
jason___ has joined #ruby
jason___ has quit [Remote host closed the connection]
paulfm has quit []
jottr has quit [Ping timeout: 240 seconds]
<havenwood> SrRaven-work: I'm not an RVM user, but #rvm may have advice for the best way forward. Curious what you'd get for?: RAILS_ENV=production sudo rake tarantula:install --trace
jason___ has joined #ruby
Celm has joined #ruby
monkegjinni has quit [Remote host closed the connection]
paulfm has joined #ruby
<havenwood> Takumo: Checkout: rake -h | grep quiet
blackmes1 has joined #ruby
monkegjinni has joined #ruby
<Takumo> havenwood: can I set that from within a rakefile?
hopkin has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
xcv has quit [Remote host closed the connection]
hamakn has joined #ruby
toastynerd has quit [Remote host closed the connection]
kbarry has joined #ruby
<havenwood> Takumo: I *think* `Rake.application.options.silent` for `--silent` and `Rake.application.options.quiet` for `--quiet`.
xcv has joined #ruby
anarang has quit [Quit: Leaving]
jason___ has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
deadlock has quit [Ping timeout: 268 seconds]
Abyss__ has joined #ruby
<Takumo> havenwood: I'll try it
fgo has quit [Remote host closed the connection]
<Takumo> yep
Patteh has quit [Quit: leaving]
funktor has joined #ruby
Patteh has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
geopet has joined #ruby
xcv_ has joined #ruby
toastyne_ has joined #ruby
jmarbach has joined #ruby
SonicX has joined #ruby
yfeldblum has joined #ruby
yasushi has quit [Remote host closed the connection]
davedev24 has quit []
razibog has quit [Quit: Leaving.]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
xcv has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
timonv has quit [Remote host closed the connection]
rvraghav93 has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
krz has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
pu22l3r has quit [Remote host closed the connection]
bklane has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
sn0wb1rd has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
tylersmith has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
shaileshg has joined #ruby
noop has quit [Ping timeout: 268 seconds]
sn0wb1rd has joined #ruby
kevind has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
RaCx has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
keen__ has joined #ruby
sambao21 has joined #ruby
kpshek has joined #ruby
keen_ has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
timonv has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
ikaros has quit [Quit: Ex-Chat]
kaspergr_ has quit [Ping timeout: 265 seconds]
dannluciano has joined #ruby
abdulsattar has quit [Ping timeout: 268 seconds]
<linduxed> hey guys, i
<benzrf> linduxed: you what
<benzrf> dont leave us hangin
qhartman has quit [Quit: Ex-Chat]
<linduxed> pressed enter too quickly
<linduxed> that's what
<benzrf> huehue
<benzrf> hue
snath has joined #ruby
jmarbach has quit []
<linduxed> i've got an application that has somehow set my flash[:alert] to ""
<linduxed> i don't know where
<benzrf> >>> #rails
<linduxed> i have no code which does that
<eval-in> benzrf => /tmp/execpad-be6f2d5a45d1/source-be6f2d5a45d1:2: syntax error, unexpected '>' ... (https://eval.in/126426)
<linduxed> benzrf: i'll jump over there, then
<benzrf> =)
<apeiros> benzrf: not #rails, #ror or #rubyonrails
<linduxed> my thought was that all i really wanted was a way to debug what it was that called the class ActionDispatch::Flash::FlashHash
danman_ has joined #ruby
CreativeEmbassy has joined #ruby
<apeiros> #rails != #ror
<apeiros> (and #ror == #rubyonrails)
<benzrf> apeiros: so does #rails
a1ph4g33k has joined #ruby
<benzrf> ugh pry-remote terminates when i press ctrl+c
<benzrf> banister pls fix
werdnativ has joined #ruby
<a1ph4g33k> Good morning all.
RaCx has joined #ruby
<shevy> hey benzrf
freezey has quit [Remote host closed the connection]
<benzrf> hello a1ph4g33k
<benzrf> your nick is annoying >:o
<benzrf> i read 'alphageek' and try to press a 1 instead of an l
bufferloss has joined #ruby
<benzrf> *vice versa
juarlex_ has joined #ruby
rvraghav93 has quit [Ping timeout: 252 seconds]
<banister> benzrf not my gem, and pull requests welcome :)
_justin has quit [Quit: _justin]
ce_afk is now known as cescalante
<banister> benzrf also, check out pry-remote-em
<benzrf> pfft eventmachine is for n00bz
<benzrf> anyway quick is coming along p nicely
<benzrf> banister: have i told u about quick =D
freerobby has quit [Read error: Connection reset by peer]
kaspergrubbe has quit []
<banister> benzrf no, what is it?
<banister> benzrf eventmachine is cool
<apeiros> benzrf: no, does not
<benzrf> it's my smalltalk-like env project
<benzrf> apeiros: ur mumblerit
<benzrf> *mum
<apeiros> benzrf: but at least #rails is invite-only now
<benzrf> then why can i join #rails and it goes to ror
pu22l3r has joined #ruby
<benzrf> 1 sec ill show u
<banister> benzrf cool, link?
<benzrf> banister: theres not much on my gh ye
<benzrf> t
<apeiros> benzrf: ask why you got invited :-p
toastyne_ has quit [Remote host closed the connection]
<benzrf> but im gonna make a quick tweak and then do a short screengif
<benzrf> o=
<apeiros> benzrf: 16:13 Error(473): #rails Cannot join channel (+i) - you must be invited
<benzrf> o-O
chuk has quit [Ping timeout: 265 seconds]
<apeiros> so really, #ror or #rubyonrails, but not #rails :-)
dannluciano has quit [Ping timeout: 252 seconds]
n1tr0g has quit [Ping timeout: 252 seconds]
a1ph4g33k has quit [Client Quit]
<apeiros> aaah!
<havenwood> they went and redirected everything
<apeiros> the mechanism of forwarding fails when you already are in the target channel
<apeiros> interesting
fieldfirst has joined #ruby
<apeiros> benzrf: ok, I retract my statement. so they rectified that. nice.
bradhe has joined #ruby
SrRaven-work has left #ruby [#ruby]
<j416> File#exist? vs. File#exists? -- which is the one to use?
<havenwood> j416: the former
<j416> thanks
<benzrf> =]
Speed has quit [Ping timeout: 240 seconds]
<j416> same for Dir I suppose?
circuit has joined #ruby
<apeiros> a dir is a file
<apeiros> File#directory? checks existence and type
<apeiros> well, actually ::
kukyakya_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
<j416> a Dir is an Object, apparently?
fieldfirst has quit [Ping timeout: 252 seconds]
<havenwood> j416: #exists? was deprecated in favor of #exist? in Ruby 2.1
chuk has joined #ruby
_justin has joined #ruby
nomenkun has joined #ruby
<j416> havenwood: 2.1, ty
fieldfirst has joined #ruby
tgkokk has quit [Quit: WeeChat 0.4.3]
bradhe has quit [Ping timeout: 240 seconds]
xcv_ has quit [Remote host closed the connection]
freezey has joined #ruby
bklane has quit [Quit: Leaving...]
sski has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
Shidash has joined #ruby
sski has joined #ruby
n1tr0g has joined #ruby
nomenkun has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
Macaveli has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 265 seconds]
sputnik13 has joined #ruby
mengu has quit []
werdnativ has quit [Quit: werdnativ]
<shevy> j416 in order to find out whether exist? or exists? is right, you need to formulate the question from the object in question
kevind_ has joined #ruby
<shevy> j416 apeiros explained that once, the correct question to be asked is "object, do you exist?"
<havenwood> shevy: tell the truths object, do you exists?!
tagrudev has quit [Quit: Me = Awesome]
badhatter has joined #ruby
<apeiros> well, that's how matz sees it
<shevy> havenwood lol
<apeiros> sadly ruby core/stdlib is inconsistent
<apeiros> but yes, matz wants 2nd person, not 3rd
sdouglas has joined #ruby
<shevy> we need to clone matz brain and put it into the channel here
<DouweM> especially with #have_ or #has_, I very much prefer the latter
<tobiasvl> i prefer haz?
<tobiasvl> cat.haz? cheese_burger
<DouweM> hehe
<crome> it would make sense if exist? was to be called on an instance of File
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
<crome> because it is more like "hey File, tell me if `param` exists"
philcrissman has joined #ruby
<DouweM> Hey File, does `arg` exist?
incade_ has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
<shevy> Hey Cheezeburger, you is tasty?
<crome> fair enough
funktor has quit [Remote host closed the connection]
diegoviola has joined #ruby
<shevy> what about .is_a? vs .is? btw
<crome> in the end everyting is up to how you phrase it then ;>
<shevy> if object.is? Array
<shevy> if object.is_a? Array
<shevy> some people also append a then
<shevy> if object.is_a? Array then
<havenwood> shevy: objects.are_an? Array
<shevy> lol
<shevy> hmm
<shevy> can there be questions asked on objects?
<shevy> most of these things are singular or?
<shevy> Array, not Arrays
<shevy> Hash, not Hashes
<havenwood> i kid
<shevy> String, not Stringens
lolmaus has quit [Remote host closed the connection]
<havenwood> StringWithIndifferentAccess
<j416> shevy, apeiros: aah, makes sense
lolmaus has joined #ruby
<shevy> havenwood that one trips me up
<j416> yes what about is_a?
<j416> it should be #am?
<j416> :P
hobodave has quit [Quit: Computer has gone to sleep.]
<apeiros> havenwood: use FuzzyMethodNameMatching
<shevy> I think they have one point; it is more convenient to not have to worry whether you pass in a string or a symbol as a key (for a query)
lethjakman has joined #ruby
<shevy> unless you have hashes like: hash = { :abc => 'yo there', 'def' => 'oki dokie' }
<havenwood> apeiros: hehe
<shevy> OR
hobodave has joined #ruby
<shevy> php style arrays
xcv has joined #ruby
<apeiros> php style wtfdatastructure
aganov has quit [Remote host closed the connection]
<apeiros> since they aren't really arrays
<apeiros> or hashmaps
hobodave has quit [Client Quit]
<apeiros> too bad, centrx or whathisname isn't here, he could remind us of what php is
<shevy> hehe
hobodave has joined #ruby
hobodave has quit [Client Quit]
<shevy> he shall be informed that he has missed some php praising here
grayWolf has joined #ruby
<workmad3> php 'associative arrays' a.k.a. a frickin hashmap
lxsameer has quit [Quit: Leaving]
oneawayman has quit [Ping timeout: 268 seconds]
Alina-malina has quit [Quit: Leaving]
geoffw8_ has quit [Quit: Connection closed for inactivity]
saarinen has joined #ruby
Alina-malina has joined #ruby
aspires has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
_Andres has joined #ruby
dkamioka has quit [Remote host closed the connection]
Alina-malina has joined #ruby
camilasa_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
obs_ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
camilasa_ has quit [Read error: Connection reset by peer]
saarinen has quit [Client Quit]
camilasa_ has joined #ruby
teddyp1cker has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
<apeiros> workmad3: I'm actually curious as to how it's implemented
camilasa_ has joined #ruby
jugs has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
coderhs has quit [Ping timeout: 246 seconds]
<hoelzro> I don't that they're actually hashmaps
<hoelzro> but they could be these days
<apeiros> I mean it's positional and associative. usually it's either.
jugs_ has joined #ruby
pioz has joined #ruby
Alina-malina has joined #ruby
<hoelzro> Lua has that too
jugs has quit [Client Quit]
<apeiros> I somewhat doubt that its positional property is through linked lists as in ruby
jugs_ has quit [Client Quit]
camilasa_ has joined #ruby
<hoelzro> probably not =)
<hoelzro> Ruby's approach is pretty clever
<apeiros> well, rubys approach doesn't allow O(1) positional lookup
<hoelzro> I remember smiling when reading that's how hash traversal was impl'd
<hoelzro> why not?
<apeiros> which is why I doubt that php uses it
camilas__ has joined #ruby
camilasan has quit [Ping timeout: 268 seconds]
devdazed has quit [Ping timeout: 268 seconds]
patrick99e99 has quit [Ping timeout: 246 seconds]
<apeiros> because you can't. you have to enumerate all values up to position N in a linked list to get at position N
obs has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
grayWolf is now known as Speed
jugs has joined #ruby
<hoelzro> you mean the fact that each bucket could contain a linked list of a number of items?
pioz has quit [Client Quit]
Alina-malina has joined #ruby
devdazed has joined #ruby
jugs has quit [Client Quit]
crystal77 has joined #ruby
<apeiros> hoelzro: no, I mean the fact that each value has a prev/next entry to establish order
obs_ has quit [Ping timeout: 268 seconds]
<hoelzro> right
<apeiros> (or maybe only a next, never actually checked)
<hoelzro> but you don't need to traverse that linked list for a lookup
<apeiros> that doesn't allow you to do hash.get_nth_element(N) in O(1)
<hoelzro> it's just for iteration, iirc
<hoelzro> oh, yes
<hoelzro> that's true
<hoelzro> I thought you were saying that hash[:foo] wasn't O(1)
<apeiros> and I think php does provide O(1) lookup for that in its "array"
<hoelzro> I'm curious to see now!
<apeiros> hoelzro: that's associative lookup (vs. positional lookup)
<hoelzro> right, I must've missed that when you said it =)
<apeiros> (and I made those terms up, so if there are technically more correct terms…)
aspires_ has joined #ruby
<hoelzro> Lua uses a plain array in conjunction with a hash map
DaniG2k has quit [Quit: leaving]
<apeiros> hoelzro: but then deletion is at least O(n), no?
<hoelzro> so positionals are (usually) a O(1) array lookup
<apeiros> also insertion is O(n) then
DaniG2k has joined #ruby
<apeiros> basically anything which moves indices
aspires has quit [Read error: Connection reset by peer]
<hoelzro> if you have forward and backward links, you can do it in O(n)
Vovko has quit []
camilasa_ has quit [Ping timeout: 240 seconds]
<apeiros> no, with linked list it's O(1)
<apeiros> all you have to do is relink prev/next on insert/delete
<hoelzro> ok, are we talking about Lua's arrays now?
<hoelzro> right
coderhs has joined #ruby
<apeiros> not sure :)
coderhs has quit [Read error: Connection reset by peer]
<hoelzro> heh
<apeiros> you said lua was plain array + hash map. so no fwd/backward link
<hoelzro> right
whomp has joined #ruby
<apeiros> so I assumed you meant ruby when you mentioned those
<hoelzro> ok, that was another case of talking about different things =)
<apeiros> :D
<hoelzro> Lua's insertions/deletions are indeed O(n)
<apeiros> ok
funktor has joined #ruby
monkegjinni has joined #ruby
<apeiros> I'm curious now where php makes the tradeoff
<apeiros> they can't have O(1) everything, after all
relix has joined #ruby
_justin has quit [Quit: _justin]
<apeiros> hm, seems they use separate "branches" for integer/non-integer keys
devdazed has quit [Ping timeout: 246 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
<benzrf> banister: the basic idea of Quick is that
<benzrf> once it is done
<benzrf> it will do two main things:
<banister> benzrf link? i haven't seen a gif yet :)
aspires has joined #ruby
<benzrf> 1. manage the freezing and thawing of ruby processes
<benzrf> that run:
<benzrf> 2. a program that provides a few interfaces to itself
Hamburglr has joined #ruby
<benzrf> i.e., like smalltalk
notjohn has quit [Quit: notjohn]
aspires_ has quit [Ping timeout: 240 seconds]
<benzrf> so once it is finished you should be able to something like
<banister> benzrf how can you do 1. without writing a C-hack to ruby internals?
<benzrf> dmtcp
<benzrf> =D
<benzrf> process freezer
<banister> benzrf isn't that only linux?
<benzrf> yeah
<benzrf> but this isnt meant to be super portable :\
<banister> benzrf 99% of rubyists are probably on osx ;)
<benzrf> pfft sucks to be them i guess
kpshek has quit []
<benzrf> ok SonicX
<benzrf> *so
AlexRussia has joined #ruby
tylersmith has quit [Remote host closed the connection]
<benzrf> ideally what you will be able to do is something like:
<benzrf> $ quick thaw my_site
dkamioka has joined #ruby
<benzrf> $ cd my_site/Controllers/LoginController
<benzrf> $ vim login.rb
whomp has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
<benzrf> [which corresponds to a method]
_justin has joined #ruby
<benzrf> $ quick pry
<benzrf> and then you can write code in the vim and test it in the pry, live
zigomir has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Frank13760 has joined #ruby
<benzrf> 1 SecretAgent .
<benzrf> *sec
Frank13760 has quit [Remote host closed the connection]
Frank13760 has joined #ruby
<benzrf> [it's like 5% done right Nowaker ]
<benzrf> *now
<benzrf> [ive written about half of the FUSE interface]
mikepack_ has joined #ruby
zigomir has joined #ruby
kpshek has joined #ruby
Es0teric_ has joined #ruby
<Nowaker> benzrf: i am 100% done right
<benzrf> hehe
Frank13760 has left #ruby [#ruby]
<brain_shim> what's this quick command you're talking about? gotta link?
Es0teric has quit [Ping timeout: 240 seconds]
<benzrf> brain_shim: no, it's my current project
<benzrf> o=
abdulsattar has joined #ruby
freerobby has quit [Quit: Leaving.]
gaussblurinc has quit [Quit: Leaving.]
tylersmith has quit [Ping timeout: 252 seconds]
<benzrf> called 'quick' because it has an archaic meaning of 'alive' and the point is to be working in a living system instead of dead code
<shevy> called quick because it is unfinished
funktor has quit [Remote host closed the connection]
<benzrf> also cuz the gem name wasnt taken
mary5030_ has joined #ruby
sambao21 has joined #ruby
yasushi has joined #ruby
freerobby has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
mary5030_ has quit [Remote host closed the connection]
notjohn has joined #ruby
mary5030_ has joined #ruby
geopet has quit []
geopet has joined #ruby
rippa has joined #ruby
r0nin has joined #ruby
<alex88> is wrong to cast case statements?
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juarlex_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 265 seconds]
QKO has quit [Remote host closed the connection]
<alex88> I've this code http://pastie.org/private/jyew8x0uqyh9cmwjaotw and I get unexpected keyword_when on line 4
tonni has quit [Remote host closed the connection]
IceDragon has joined #ruby
juarlex has joined #ruby
dgaffney has quit [Remote host closed the connection]
<benzrf> banister: im doin a terminal recording, gib me a moment
<benzrf> o=
yasushi has quit [Ping timeout: 264 seconds]
shaunbaker has quit []
<toretore> alex88: ++
<alex88> toretore: ooops
<alex88> I always forget that
camilasan has joined #ruby
QKO has joined #ruby
chipotle_ has quit [Quit: cya]
notjohn has quit [Quit: notjohn]
r0nin has quit [Remote host closed the connection]
<alex88> shortest way is += 1 right?
fabrice31 has quit [Remote host closed the connection]
r0nin has joined #ruby
<AlexRussia> someone here know c++?(people on channel c++-help silent)
werdnativ has joined #ruby
bynaryshef has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
rmill has quit [Changing host]
rmill has joined #ruby
lmickh has joined #ruby
<benzrf> ok actually
<benzrf> banister: try it yourself, ill show you how to do it :u
<benzrf> banister: git clone gh/benzrf/quick
<banister> benzrf i'm not on linux :)
<benzrf> :I
<banister> benzrf just record a video, dont worry about a gif
<benzrf> OK
<benzrf> well i was gonna do that
pwh has joined #ruby
<benzrf> but screen recorders are kinda flaky, gif or not
<benzrf> >.>
camilas__ has quit [Ping timeout: 264 seconds]
tgkokk has joined #ruby
<shevy> alex88 yea
tgkokk is now known as Guest76242
<alex88> kk thanks!
shlant has joined #ruby
<shlant> anyone see something wrong here? or a better way? I want to read a file and add lines if they don't exist
Guest76242 has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
<shlant> something about empty range in char class:
<shlant> is it because f_lines is an array?
maletor has joined #ruby
jason____ has joined #ruby
agrinb has joined #ruby
notjohn has joined #ruby
toastynerd has joined #ruby
<havenwood> shlant: usually best to use File#open with a block so it closes itself (looks like you're leaving it open)
<apeiros> havenwood faster then me… AGAIN!
<havenwood> shlant: when you just want the lines: f = File.readlines
monkegjinni has quit [Remote host closed the connection]
paulfm has quit []
monkegjinni has joined #ruby
DouweM has joined #ruby
maxiaojun has joined #ruby
<havenwood> apeiros: ;)
<havenwood> i've not used Chef
<shlant> havenwood: thanks! I was looking at File.readlines actually
agrinb has quit [Ping timeout: 252 seconds]
<shlant> there always seems to be a better way with ruby ;)
jason____ has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
sdouglas has quit [Remote host closed the connection]
dstynchula has joined #ruby
<benzrf> i need to implement proper timestamping for this FS
cpruitt has quit [Quit: cpruitt]
<havenwood> shlant: since you were removing newlines: f_lines = File.readlines("/home...").map(&:chomp)
<benzrf> :I
monkegjinni has quit [Ping timeout: 268 seconds]
RaCx has joined #ruby
<havenwood> shlant: or: File.read("/home...").split("\n")
whomp has joined #ruby
dkamioka has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
<benzrf> banister: k i finally got it working right http://benzrf.com/out.ogv
mercwithamouth has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
<benzrf> banister: in the future you will be able to create new method files with a command
<benzrf> something like 'quick def' maybe
markisonfire has joined #ruby
bilbo_swaggins has joined #ruby
<benzrf> and it will support opening prys within any module by running 'quick pry' in that dir
<benzrf> =3
apeiros has quit [Remote host closed the connection]
rainmanjam has joined #ruby
apeiros has joined #ruby
xcv has quit [Remote host closed the connection]
diegoviola has quit [Read error: Connection reset by peer]
<bilbo_swaggins> are there any good getting-started guides for Pry?
nateberkopec has quit [Quit: Leaving...]
<benzrf> bilbo_swaggins: check the gh wiki
<bilbo_swaggins> It seems promising, but for what exactly I'm not sure
xcv has joined #ruby
<shlant> havenwood: undefined method `split' for #<Array:0x0000000368a940>
<benzrf> bilbo_swaggins: pry : irb :: bash : sh
<benzrf> maybe zsh
<havenwood> shlant: not #readlines then #split, #read
<havenwood> shlant: might as well just #readlines them map'n'chomp though
<banister> benzrf i have no idea what's going on there but it seems like some jew conspiracy
pu22l3r has joined #ruby
<DefV> .3
<benzrf> banister: pls no.
<benzrf> likemike:
<benzrf> *like
<benzrf> seriously can you not
heftig has joined #ruby
<benzrf> uh
brandonjmckay has joined #ruby
<benzrf> *ugh
jason____ has joined #ruby
<banister> bilbo_swaggins vid on pry http://www.youtube.com/watch?v=D9j_Mf91M0I
<benzrf> banister: why would you make that kind of joke
<benzrf> that's incredibly tasteless
jottr has joined #ruby
Bumptious has joined #ruby
<shlant> benzrf: +1
chaos___________ has quit [Ping timeout: 240 seconds]
whomp has quit [Ping timeout: 252 seconds]
brandonjmckay has quit [Client Quit]
catphish has joined #ruby
jason____ has quit [Remote host closed the connection]
rabeldable has joined #ruby
zigomir has quit [Remote host closed the connection]
jason____ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
paulfm has joined #ruby
<bilbo_swaggins> benzrf: thanks for the analogy
sdouglas has joined #ruby
<bilbo_swaggins> is that video SFW?
lw has joined #ruby
m0s^away is now known as m0s
<benzrf> bilbo_swaggins: what analogy o-O
<havenwood> bilbo_swaggins: yes, SFW
<benzrf> oh right
connor_goodwolf has quit [Ping timeout: 246 seconds]
<benzrf> my bad >.<
<bilbo_swaggins> "benzrf> bilbo_swaggins: pry : irb :: bash : sh"
<benzrf> bilbo_swaggins: i was complaining about banister's jewish conspiracy joke
<benzrf> not the vid
funktor has joined #ruby
jespada has quit [Quit: Leaving]
<bilbo_swaggins> Was it really a joke?
<bilbo_swaggins> I didn't get it
<catphish> are jewish conspiracies funny?
<benzrf> well im calling it a joke because im giving him the benefit of the doubt
<bilbo_swaggins> that's nice of you
funktor has quit [Remote host closed the connection]
<benzrf> but if it turns out he actually believes in jewish conspiracies im not gonna feel comfortable using pry anymore :<
<bilbo_swaggins> what's the GH wiki, though?
<catphish> i mean, if 3 of them were conspiring to go into a bar, it could quickly get hilarious
<benzrf> bilbo_swaggins: github
<bilbo_swaggins> oh shit
<benzrf> the pry repo's wiki =p
circuit has quit [Quit: leaving]
<bilbo_swaggins> I feel like I should have known that
<DouweM> wait what did I miss about pry?
<bilbo_swaggins> if y'all haven't seen this talk: https://www.youtube.com/watch?v=csyL9EC0S0c
<bilbo_swaggins> "Programming is terrible; lessons from a life wasted"
jason____ has quit [Ping timeout: 246 seconds]
<banister> benzrf it was a joke, untwist your panties.
bufferloss has quit [Quit: bufferloss]
<shlant> banister: yea hide the racism under the thin vail of "it was a joke"
<benzrf> >tfw banister is a shithead
<benzrf> shlant: *veil
<benzrf> ;p
abdulsattar has quit [Ping timeout: 240 seconds]
andy___ has joined #ruby
<banister> shlant i'm a jew myself, it's a common, stupid expression we say among my friends. I apologize from the bottom of my heart if you were offended.
Speed has quit [Ping timeout: 264 seconds]
<alex88> I've to create an hash like home_team: { some_values: int }, away_team: { some_values: int }, players: { int: { soome_values: int }, int2... } what I've actually is for example "stats['home_team']['yellow_cards'] += 1" and "stats['players'][player_id]['corners'] += 1" but obviously I should check if the value or even the player_id key exists first, should I create a method to set these values or is there an Hash/Struct way to set values and auto c
<alex88> reate parent keys if they don't exists?
andy___ is now known as Guest82966
<shevy> man alex88
<shevy> that was one of the longest sentences here
<alex88> wops :D
camilasan has quit []
<catphish> bilbo_swaggins: nice talk :)
cburyta has joined #ruby
<catphish> "people who are wrong on the internet" :)
<benzrf> kk
<shevy> alex88 yes, work with methods - it's what I would use
<benzrf> banister: the basic idea there is
<benzrf> banister: modules form dirs
<alex88> shevy: thanks for reading the long one ;)
<shevy> the method names can be logical enough so that you never have to worry again about how you store it internally
<benzrf> banister: methods form files
<shevy> I dont like hash like this though: stats['players'][player_id]['corners']
<benzrf> banister: so I mounted Object to the dir 'quick_test'
<alex88> shevy: well it's just to create some data to be serialized to json
<shevy> but once it gets as complicated as that, using methods is much better
<benzrf> then when i cd in, it has all of the constants in Object as subdirs
<shevy> ewwww
<shevy> json
<shevy> one way to bind them
<shevy> one way to rule them all
<bilbo_swaggins> shevy, look into ostructs
<shevy> and in the darkness ... SEND OVER INTO XML HELL
freezey has joined #ruby
<bilbo_swaggins> they're midway between an object and a hash
<shevy> hmm bilbo_swaggins
<benzrf> banister: so i made a class Foo
<bilbo_swaggins> you can redefine methods on them with ease
shlant has left #ruby [#ruby]
monkegjinni has joined #ruby
<shevy> isn't that a lord of the ring dude
bradhe has quit [Remote host closed the connection]
<benzrf> banister: cd'd into it
<shevy> I remember you said something funny not long ago
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
<benzrf> banister: touched the file-method hash on foo to add a bar method
<bilbo_swaggins> I say lots of funny things
<benzrf> banister: this creates a 'bar.rb' file in quick_test/Foo/
<alex88> shevy: hahah never xml, never!
<benzrf> banister: i edit it to have a definition for bar
<benzrf> whenever i save, if the file contains valid syntax and nothing but a definition for a bar method, it will load it into the class
senayar has quit [Remote host closed the connection]
<benzrf> otherwise it holds onto the current code but does not load it
Guest33272 has quit [Ping timeout: 268 seconds]
<benzrf> i also started a remote pry server in another thread before mounting the dir
<benzrf> so i pried into the process, and tested out the code I was writing in bar.rb
browndawg has left #ruby [#ruby]
bynaryshef has quit []
Guest82966 has quit [Ping timeout: 240 seconds]
napcae has quit [Quit: leaving]
<benzrf> itf you'll be able to create the bar.rb file by typing 'quick def bar' or something
patrick99e99 has joined #ruby
napcae has joined #ruby
<benzrf> instead of manually touching the method hash thingy
<banister> benzrf cool
m0s is now known as m0s^away
<benzrf> =o
<benzrf> you can probably try it on your end
<benzrf> it's not using dmtcp at all yet
invinceable has joined #ruby
<benzrf> if you can get FUSE for mac it should work great
kevind has quit [Quit: kevind]
w1zeman1p has joined #ruby
sk87 has joined #ruby
QuintinAdam has joined #ruby
Es0teric_ has quit [Quit: Computer has gone to sleep.]
redlines has joined #ruby
senayar has joined #ruby
sdouglas has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
echevemaster has joined #ruby
patrick99e99 has quit [Ping timeout: 268 seconds]
jollyy has quit [Quit: jollyy]
quatron has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
notjohn has quit [Quit: notjohn]
DrShoggoth has joined #ruby
kevind has joined #ruby
andy__ has joined #ruby
cj__ has joined #ruby
dgaffney has joined #ruby
mercwithamouth has joined #ruby
rezzack has joined #ruby
bradhe has joined #ruby
whomp has joined #ruby
Spami has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
<alex88> shevy: building the stats object using { home_team: {}, away_team: {}, players: {} } I can do the method like "if @stats[(team + '_team').to_sym][stat.to_sym].nil?; define it; end; increase it" but it creates symbols
<alex88> in memory
<shevy> I dont know
Es0teric has joined #ruby
<shevy> it looks so ugly that I can not get my head over it
sailias has quit [Ping timeout: 246 seconds]
<benzrf> >tfw cant see shevy's chats
<alex88> eheh what would you do? create classes?
yfeldblum has joined #ruby
<benzrf> feelsgoodman
aspires has quit []
bluenemo has quit [Remote host closed the connection]
agrinb has joined #ruby
jollyy has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> dunno, I don't have the whole problem at hand, but before I'd use such a hash, I'd simplify
<shevy> having to use to_sym twice, and then querying whether it is nil, seems so weird
<benzrf> >> {1, 2, 3}
<eval-in> benzrf => /tmp/execpad-dffa67924fe5/source-dffa67924fe5:2: syntax error, unexpected ',', expecting => ... (https://eval.in/126483)
<bilbo_swaggins> hashes are nice for hand-notating large data trees
<benzrf> >not having set syntax
<benzrf> >2014
<alex88> yeah, In fact I've now changed to Hash.new and so on using 'home_team' etc as string
<benzrf> >mfw im greentexting without thinking about it in irc
<benzrf> :<
<alex88> so I've just to if @stats[team + '_team'][stat].nil?
<benzrf> ry
<bilbo_swaggins> alex88 post a large sample with context to gist and link us
<bilbo_swaggins> also please restate the question
sailias has joined #ruby
ahawkins has quit [Ping timeout: 264 seconds]
<bilbo_swaggins> I'll check out what you're doing
<brain_shim> !gist
hobodave has joined #ruby
jollyy has quit [Client Quit]
<alex88> like this https://gist.github.com/alex88/1271d18c6d02c8a0385b I've a list of events, counting through them has to create an hash of statistics, for home team, away team and each of the players
<brain_shim> hmmm not in this channel
pskosinski has joined #ruby
aspires has joined #ruby
sski has joined #ruby
lmickh has quit [Remote host closed the connection]
<bilbo_swaggins> alright I'm at work, but I'll take a look as I can
<bilbo_swaggins> I may be in and out
tyfighter has joined #ruby
tyfighter has quit [Client Quit]
smathieu has joined #ruby
<alex88> thanks guys!
tyfighter has joined #ruby
<Tachoh> bilbo_swaggins: haha that nickname
momomomomo has quit [Quit: momomomomo]
<brain_shim> so you're making a statemachine using ternary operators inside of a case statement?
yfeldblum has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
Dude007 has joined #ruby
<Dude007> Hi, I just wanna ask. If call validates_presence_of :some_attribute in rails, does it call class method or an instance method?
tkuchiki has quit [Remote host closed the connection]
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<w1zeman1p> Dude007: instance method
kpshek has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins> alex88: can you also post an example list of events?
<alex88> brain_shim: well forget the ternary operators, I'm going to remove them
<alex88> bilbo_swaggins: I don't have a complete one, basically { event_type: 'CORNER|SHOT|something else', team_id: int, outcome: 'other text', player_id: int }
apeiros has joined #ruby
ahawkins has joined #ruby
<alex88> I've just to loop through them and based on each type and team/player increase the value of the stat
<bilbo_swaggins> alright
saarinen has joined #ruby
lukec has quit [Quit: lukec]
<bilbo_swaggins> You're getting damn close to being better off with objects
sambao21 has joined #ruby
wallerdev has joined #ruby
<bilbo_swaggins> Let me critique style and offer suggestions for functionality
<alex88> create an object for each teams and players?
<alex88> sure
CreativeEmbassy has quit [Quit: FO SHO]
<bilbo_swaggins> yeah but hold up
nateberkopec has joined #ruby
<alex88> sure
wallerdev has quit [Client Quit]
<bilbo_swaggins> I'd do that and call player.print, for example
wallerdev has joined #ruby
saarinen has quit [Client Quit]
cover has quit [Ping timeout: 264 seconds]
<bilbo_swaggins> let me make sure I grok this totally, but you could separate your concerns here
momomomomo has joined #ruby
<wallerdev> good morning :)
<benzrf> sup wallerdev
<benzrf> are u on gnu/linux o3o
<wallerdev> not much, just got to work
saarinen has joined #ruby
<wallerdev> going bowling today with my team
<Dude007> w1zeman1p: How it is implemented then? I am trying something like this: http://hastebin.com/yuwifoxiwa.rb but when I call the come_on_test "Hello world" in same way as validates_presence_of .. it says that the method is not defined
abra has joined #ruby
<wallerdev> you?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> ok u know what im unignoring shevy just so i dont get confused as to who is talking
<benzrf> but shevy im totally gonna ignore u in my MIND
ahawkins has quit [Ping timeout: 246 seconds]
<benzrf> bbl
benzrf is now known as benzrf|offline
<shevy> benzrf|offline <3
segmond has quit [Ping timeout: 268 seconds]
Chronocity has joined #ruby
aspires has quit []
michaeldeol has joined #ruby
<brain_shim> alex88: There's a great 5 minute video about refactoring out conditionals, and if you apply this pattern it'll make your case quite a bit easier to read. https://www.youtube.com/watch?v=7K1jB7fTmXQ
deadlock has joined #ruby
<Dude007> w1zeman1p: class method.........
alexju has quit [Remote host closed the connection]
mad_hatter has joined #ruby
MrThePlague has joined #ruby
CaptainJet has joined #ruby
aspires has joined #ruby
toastynerd has quit [Remote host closed the connection]
<mad_hatter> hey guys
<alex88> thanks a lot brain_shim, going through it!
osvico has quit [Ping timeout: 240 seconds]
<mad_hatter> I'm really excited to learn ruby
<mad_hatter> what are the best places to start
<shevy> here
<bilbo_swaggins> tryruby.com
<mad_hatter> I have a background in Perl and Java
<bilbo_swaggins> ruby.learncodethehardway.com
<shevy> well from perl to ruby is quite the same
MrThePlague has left #ruby [#ruby]
<bilbo_swaggins> then skip the first one
<bilbo_swaggins> rubydoc.com
<workmad3> mad_hatter: install ruby, type 'irb' and then start playing
<brain_shim> alex88: My pleasure! Also, maybe checkout aasm -> https://github.com/aasm/aasm It looks a lot like you're trying to make a statemachine, and they have a really slick dsl for that.
<wallerdev> instead of using irb you can just use the bot in this chatroom, just type >> your_ruby_code_here
kennym has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
<bilbo_swaggins> mad_hatter: pardon ruby-doc.org
<alex88> brain_shim: you think I really need that in this case? I mean, I see the case I'm actually using very simple
<bilbo_swaggins> and ruby.learncodethehardway.com
JBreit has joined #ruby
<alex88> I could just use that for settings which stats to increase, then use the ternary operator just one time
andikr has quit [Read error: Connection reset by peer]
blahblah has joined #ruby
JBreit has quit [Max SendQ exceeded]
abdulsattar has joined #ruby
JBreit has joined #ruby
danno2 has joined #ruby
toastynerd has joined #ruby
cover has joined #ruby
Dude007 has quit []
jason__ has joined #ruby
<brain_shim> alex88: Maybe aasm is pushing it, but if your thing get's more complicated, it's worth knowing about. But replacing your conditionals with the pattern in the video is definitely a win in my books.
chrisseaton has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
danno1 has quit [Ping timeout: 240 seconds]
poikon has joined #ruby
jespada has joined #ruby
SHyx0rmZ has joined #ruby
andrewlio has joined #ruby
eka has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
xcv_ has joined #ruby
nvrch has quit [Quit: nvrch]
dangerousdave has joined #ruby
poikon_ has quit [Ping timeout: 268 seconds]
xcv has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
tylersmith has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
Spami has quit [Ping timeout: 265 seconds]
eka has joined #ruby
Spami has joined #ruby
Lewix has joined #ruby
no6 has joined #ruby
Es0teric has quit [Ping timeout: 265 seconds]
[gmi] has joined #ruby
dagobah has quit [Quit: Leaving...]
pel_daniel has joined #ruby
<alex88> brain_shim: yeah in that case of course, I've moved out the ternary operator in the method, no i just tell which stat to increase in each case, way more lighter
lw has quit [Quit: s]
mrnugget has quit [Read error: Operation timed out]
acrussell has joined #ruby
<brain_shim> alex88: What's immediately obvious from your first gist was the duplication caused by the ternary's. It's really the kind of thing you want to decide before you enter the case, and just pass in whether it was home or away. :)
<alex88> brain_shim: I've done a bit of refactoring this way https://gist.github.com/alex88/1271d18c6d02c8a0385b
papercode has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
kryptek has joined #ruby
andy__ has joined #ruby
papercode has joined #ruby
<alex88> maybe I should directly set 'home_team' and don't concatenate it in line 39-41
<jlebrech> i feel like ruby is the proverbial hammer where i work, there's so much complexity when we could sprinkle a bit of javascript in places instead
devdazed has joined #ruby
lw has joined #ruby
Gadgetoid has left #ruby [#ruby]
shinobi_one has joined #ruby
toastynerd has quit [Remote host closed the connection]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
jmpf has joined #ruby
m0s^away is now known as m0s
RaptorJesus has joined #ruby
timonv has joined #ruby
nanoyak has joined #ruby
xcv_ has quit [Remote host closed the connection]
f0ster has joined #ruby
chaos___________ has joined #ruby
lw has quit [Ping timeout: 265 seconds]
f0ster has quit [Changing host]
f0ster has joined #ruby
papercode has quit [Remote host closed the connection]
pr0ggie has quit [Ping timeout: 252 seconds]
freezey has quit [Remote host closed the connection]
papercode has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
r0nin has quit [Remote host closed the connection]
poikon has quit [Read error: Connection reset by peer]
w1zeman1p has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
poikon has joined #ruby
benzrf|offline is now known as benzrf
terrellt has joined #ruby
lukec has joined #ruby
monkegji_ has quit [Remote host closed the connection]
<benzrf> is anybody here on gnu/linux and willing to give my 5% finished half-baked project a try
<benzrf> owo
monkegjinni has joined #ruby
tgkokk has joined #ruby
poikon has quit [Remote host closed the connection]
<apeiros> benzrf: you need an answer, quick?
chuk has quit [Quit: This computer has gone to sleep]
boombadaroomba has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 264 seconds]
jfisk87 has quit [Ping timeout: 264 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
shaileshg has quit [Quit: Connection closed for inactivity]
tgkokk has quit [Client Quit]
m0s is now known as m0s^away
<benzrf> apeiros: -shrug-
_tpavel has quit [Quit: Leaving]
arietis has quit [Quit: Computer has gone to sleep.]
<benzrf> actually this should work on mac as well
<benzrf> but you need FUSE
dangerousdave has quit [Quit: Leaving...]
monkegjinni has quit [Ping timeout: 246 seconds]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
theRoUS has quit [Quit: Coyote finally caught me]
<benzrf> apeiros: wanna give it a try =D
<apeiros> benzrf: I was just making a pun ;-) (or trying to)
<benzrf> oh shit
<benzrf> i forgot it was called quick for a second there
* benzrf facepalms
<benzrf> nice pun btw .-.
jottr has quit [Read error: Operation timed out]
dangerousdave has joined #ruby
roolo has joined #ruby
JBreit has left #ruby ["Leaving"]
bluOxigen has quit [Ping timeout: 265 seconds]
freezey has joined #ruby
<apeiros> ^^
bluOxigen has joined #ruby
carraroj has joined #ruby
<benzrf> apeiros: but wanna try what i have so far :3
catphish has quit [Quit: Leaving]
<apeiros> busy, sorry
roolo has quit [Client Quit]
agrinb_ has joined #ruby
<benzrf> kk =[
agrinb has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
Deejay_ has joined #ruby
alexju has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
havenwood has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
havenwood has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
bluOxigen has quit [Ping timeout: 268 seconds]
havenwood has joined #ruby
<benzrf> havenwood: wanna try my thing
<apeiros> benzrf: prod me on the WE?
<benzrf> apeiros: WE?
<apeiros> week-end
<benzrf> o rite
<apeiros> the point of abbreviations gets lost once you have to explain them :D
smathieu_ has joined #ruby
<chuck> is there any way to turn a class method into a callable anonymous function?
sski has quit [Remote host closed the connection]
<benzrf> chuck: class method?
<benzrf> you mean a method on a class?
<apeiros> chuck: depends
<chuck> I have the name of the method as a string. I'm trying this: proc { |v| self.call(field, v) }
<chuck> but that doesn't work
<apeiros> chuck: Object#method can create a callable method instance
sski has joined #ruby
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
afex has joined #ruby
bluOxigen has joined #ruby
<benzrf> >> Class.method(:new) # chuck
<eval-in> benzrf => #<Method: Class#new> (https://eval.in/126521)
<chuck> ooo
<chuck> where's the rdoc for that, under Class?
<benzrf> there's also Class#instance_method
<benzrf> chuck: no, Object
<benzrf> >> 3.method(:times)
<eval-in> benzrf => #<Method: Fixnum(Integer)#times> (https://eval.in/126522)
<benzrf> >> Fixnum.instance_method(:times) # chuck
<eval-in> benzrf => #<UnboundMethod: Fixnum(Integer)#times> (https://eval.in/126523)
<bilbo_swaggins> benzrf what's your project?
<benzrf> bilbo_swaggins: quick
<benzrf> =D
<chuck> omg this is perfect
<chuck> thank you benzrf and apeiros!
<benzrf> chuck: yw
<benzrf> bilbo_swaggins: do u have FUSE installed?
Deejay_ has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> >> 3.method(:*).call 4
<eval-in> bilbo_swaggins => 12 (https://eval.in/126524)
<bilbo_swaggins> I have linux
<bilbo_swaggins> do I need FUSE?
<benzrf> bilbo_swaggins: get fuse o=
<benzrf> it's a library and/or kernel module
<bilbo_swaggins> what the fuck is it first
<benzrf> it's for userspace filesystems
<benzrf> you may have it already
<bilbo_swaggins> oh
<benzrf> basically it allows you to write non-root-requiring programs that can be mounted to directories
inkblots has quit [Ping timeout: 265 seconds]
<bilbo_swaggins> you can use that for live USB sticks and such right?
axl_ has joined #ruby
<benzrf> well you can mount filesystems already
mikecmpbll has joined #ruby
<benzrf> basically you can use FUSE's api from your program to let it act as a filesystem
<benzrf> so when somebody does ls or edits a file, your program handles the call
mattmcclure has joined #ruby
<bilbo_swaggins> neat
sski has quit [Ping timeout: 265 seconds]
aspires has quit [Read error: Connection reset by peer]
<bilbo_swaggins> make installing dependencies easy and I'll test it
<benzrf> check if u got it
<benzrf> first
aspires has joined #ruby
<bilbo_swaggins> why is pry hanging when I do a "gem install" using RVM?
<bilbo_swaggins> I mean
* benzrf shrugs
<bilbo_swaggins> fuck
<bilbo_swaggins> "gem install pry" hangs
<benzrf> are you sudo'd
<benzrf> ive had gem hang when not root
<bilbo_swaggins> it's using RVM
<benzrf> altho i guess rvm you could have a user gemset or something
* benzrf shrugs
<benzrf> my repo has a bundle anyway
xcv has joined #ruby
fieldfirst has quit [Ping timeout: 252 seconds]
<bilbo_swaggins> okay lemme close some stuff
VTLob has joined #ruby
<benzrf> bilbo_swaggins: what distro?
fieldfirst has joined #ruby
<bilbo_swaggins> Mint 16
lw has joined #ruby
<benzrf> kool
<bilbo_swaggins> I like it the most
jmpf has quit [Quit: leaving]
<bilbo_swaggins> I wasn't cool enough for Arch
yfeldblu_ has quit [Remote host closed the connection]
<benzrf> k
heftig has quit [Quit: Quitting]
davy_ has joined #ruby
tek0_ has joined #ruby
CreativeEmbassy has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
chaos___________ has quit [Ping timeout: 240 seconds]
zenergi has quit [Quit: zenergi]
w1zeman1p has joined #ruby
<havenwood> benzrf: yeah, i do want to try it, but crazy busy right now! rain check?
jason__ has quit [Remote host closed the connection]
armyriad has joined #ruby
jason__ has joined #ruby
wallerdev has quit [Quit: wallerdev]
jason__ has quit [Remote host closed the connection]
<bilbo_swaggins> benzrf: which file do I open
razrunelord has joined #ruby
<bilbo_swaggins> fs.rb?
<benzrf> oh
<benzrf> 1 SecretAgent
<benzrf> *sec
<bilbo_swaggins> lol
jason__ has joined #ruby
<benzrf> go to lib/quick
<benzrf> mkdir quick_test
<benzrf> http://bpaste.net/show/193554/ <- run this
<benzrf> it should be pretty self-explanatory
zenergi has joined #ruby
tcstar has joined #ruby
<benzrf> modules gain a method called method_files
<benzrf> it returns a hash
<havenwood> benzrf: looks pretty awesome actually, i want to see if i can get it working with osxfuse or fuse4x or whatever they're called.
<benzrf> if you access a member of that hash
wallerdev has joined #ruby
<benzrf> it will create a method file
<benzrf> see my vid for more info :u
<benzrf> bilbo_swaggins: http://benzrf.com/out.ogv
<benzrf> bbiab
oso|away is now known as oso96_2000
patrick99e99 has joined #ruby
benzrf is now known as benzrf|offline
ixti has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
<tek0_> where would I find the doc on the semantics of the "class constructor"? i.e. `module M; def self.MyClass()...`
[yalue] is now known as yalue
victorbjelkholm has quit [Quit: Leaving]
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
davedev2_ has joined #ruby
_justin has joined #ruby
sputnik13 has joined #ruby
benzrf|offline is now known as benzrf
sputnik13 has quit [Max SendQ exceeded]
ixti has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
benzrf is now known as benzrf|offline
dangerousdave has quit [Quit: Leaving...]
dkamioka has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
davedev24 has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 268 seconds]
yacks has quit [Ping timeout: 264 seconds]
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
<philcrissman> tek0_: what are you looking for, exactly?
<tek0_> philcrissman: whether it's possible to chain these in inherited classes, like passing an arg to the superclass
pierre1_ has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
<philcrissman> "these"
<philcrissman> tek0_: I still have no idea what your question is.
dangerousdave has joined #ruby
<tek0_> oh, I thought you wanted my specific question
<tek0_> well
<philcrissman> ಠ_ಠ
reset has joined #ruby
<tek0_> wenn inheriting a class with parameters like `class A < B(param)`
<tek0_> when*
<bilbo_swaggins> benzrf your linked file was looking for your library files in the same directory
<bilbo_swaggins> I fixed that, but it's still looking for some files I don't have
yfeldblum has joined #ruby
<bilbo_swaggins> 'rfusefs' for one
<tek0_> can I make B inherit another class and pass the parameter on?
mikemar10 has joined #ruby
mikemar10 has quit [Max SendQ exceeded]
benzrf|offline is now known as benzrf
<benzrf> bilbo_swaggins: btw quick thing
blackmes1 has joined #ruby
<bilbo_swaggins> can't install rfusefs because of missing libraries and/or headers
<bilbo_swaggins> and I have fuse
<benzrf> bilbo_swaggins: swapfiles and other things cannot be written in the special fs
papercod1 has joined #ruby
<bilbo_swaggins> that's fine
<benzrf> you may need libfuse-dev
<benzrf> or something similar
<benzrf> so if you use vim with quick, for the moment you need to turn off swapfiles
<benzrf> :u
<bilbo_swaggins> make documentation
maxiaojun has quit [Ping timeout: 240 seconds]
<benzrf> it's 5% done ;p
<benzrf> not meant to be used yet
<benzrf> once it's at least 75% done and/or in alpha ill start making docs
<benzrf> bilbo_swaggins: u need libfuse-dev
<tek0_> well, I guess this isn't a language feature, but some hack
<benzrf> gems that interface with c usually require dev versions
<benzrf> they give headers
<benzrf> the regular package usually just gives .so's
<philcrissman> tek0_: I don't know what you're trying to do, I'm not sure that would even work.
tcstar has quit [Read error: Connection reset by peer]
<philcrissman> classes don't take params.
<bilbo_swaggins> ah okay
<bilbo_swaggins> I didn't know what headers really were
fieldfirst has quit [Ping timeout: 268 seconds]
papercode has quit [Ping timeout: 268 seconds]
<bilbo_swaggins> I also need the ruby_parser gem
<bilbo_swaggins> :(
<bilbo_swaggins> is there going to be a whole lot more of this
fieldfirst has joined #ruby
tonni has joined #ruby
<bilbo_swaggins> I hate dependencies
<benzrf> bilbo_swaggins: just use sudo bundle install
<benzrf> apart from libfuse-dev that should install the gems
<benzrf> =]
banister has joined #ruby
<bilbo_swaggins> <.<
<bilbo_swaggins> I know ruby I swear
QuintinAdam has quit [Remote host closed the connection]
<benzrf> hehe
workmad3 has quit [Ping timeout: 246 seconds]
w1zeman1p has quit [Quit: Lost terminal]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<bilbo_swaggins> boss is taking us to lunch
<bilbo_swaggins> will you be here in 1.5 hours?
eynj has joined #ruby
<benzrf> probably.
<benzrf> in fact thatd be a better time
<benzrf> right now im kinda being hounded by my teacher for being in irc instead of doing work
<benzrf> :y
ghr has quit [Ping timeout: 252 seconds]
tek0_ has left #ruby ["Konversation terminated!"]
<bilbo_swaggins> "fuse: failed to access mountpoint quick_test: No such file or directory
<bilbo_swaggins> "
maasha has joined #ruby
<benzrf> did you mkdir it
<benzrf> i mentioned that =p
<bilbo_swaggins> that's where I'm running the code from the gist from
<benzrf> ah
<benzrf> no, run it in the dir above that
<bilbo_swaggins> ~/Desktop/quick-master/lib/quick
<benzrf> it's a path remember :P
<bilbo_swaggins> that explains everything
<benzrf> ;p
<benzrf> ok basically each dir is a module
<benzrf> subdirs are module constants in that module
<benzrf> you can create a file that maps to a method by touching the hash you get from Module#method_files
<benzrf> for example if I do 'Object.method_files["thingy"]', that will populate the hash with the default for thingy
<bilbo_swaggins> cannot load such files...
<bilbo_swaggins> "./fs"
<benzrf> which in turn causes thingy.rb to appear in Object
<bilbo_swaggins> in the same directory
<benzrf> wo-o
<benzrf> wut
<bilbo_swaggins> I do remember 'require' being weird in Ruby
<benzrf> u sure about this?
<bilbo_swaggins> 2.1.0
<benzrf> o.O
<benzrf> whats the error exactly
abdulsattar has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> /home/lex/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require': cannot load such file -- ./pry-remote (LoadError)
<benzrf> o=
<apeiros> relative requires ftl
xcv has quit [Remote host closed the connection]
subbyyy has joined #ruby
<benzrf> and this is in the same dir with it?
<benzrf> apeiros: doesnt work with code from stdin :I
rdark has quit [Quit: leaving]
xcv has joined #ruby
<bilbo_swaggins> lex@luthor ~/Desktop/quick-master/lib/quick/quick_test $ ruby '/home/lex/Desktop/quick-master/lib/quick/tmp.rb'
m0s^away is now known as m0s
<apeiros> benzrf: hm?
<benzrf> bilbo_swaggins: yes, requires are relative to the current dir
<benzrf> bilbo_swaggins: run the start script from lib/quick
<benzrf> =p
<benzrf> also nice user/host
* apeiros prefers his@shadow
<benzrf> hehe
cj__ has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> bilbo_swaggins: doth run?
tomshafer has joined #ruby
cj__ has joined #ruby
toastynerd has quit [Remote host closed the connection]
<bilbo_swaggins> sec I got a support email
mad_hatter has quit [Ping timeout: 264 seconds]
<bilbo_swaggins> I hate the software we sell. It's so bad.
deadlock has quit [Ping timeout: 252 seconds]
l3ck has joined #ruby
Advocation has quit [Quit: Advocation]
platzhirsch has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf> oh?
mikepack has quit [Remote host closed the connection]
<platzhirsch> I've been coding Java now for two days, I feel abducted... into a dark place
<bilbo_swaggins> that's how it starts
<bilbo_swaggins> then it gets darker
<benzrf> platzhirsch: huehuehue
<benzrf> platzhirsch: talk about static typing done wrong
<bilbo_swaggins> to be fair
<platzhirsch> I am on Android actually
<bilbo_swaggins> Ruby is the most typed untyped language ever
<benzrf> bilbo_swaggins: u sure dude
<bilbo_swaggins> you end up declaring types anyway with class.new
<bilbo_swaggins> you often have to put comments on the type of variable being used
<maasha> apeiros: forkpool revistited -> https://gist.github.com/maasha/af4df2d4f0fe9c6211b7
<jokke> can someone explain this to me:
CorySimmons has joined #ruby
<maasha> apeiros: besides the obvious errors, do you think the design could work?
decoponio has quit [Quit: Leaving...]
<jokke> >> "bla: blub\nfoo: bar".match(/(?:bla: (\w+))?.*(?:foo: (\w+))?/m)
<eval-in> jokke => #<MatchData "bla: blub\nfoo: bar" 1:"blub" 2:nil> (https://eval.in/126541)
<benzrf> jokke: what is there to explain
<benzrf> how the regex works?
<jokke> isn't bar in the second match group?
<jokke> *why
<benzrf> try http://regex101.com
sepp2k1 has joined #ruby
<benzrf> its good at regex
sepp2k has quit [Ping timeout: 252 seconds]
SHyx0rmZ has joined #ruby
aspires has quit []
deadlock has joined #ruby
<benzrf> jokke: o god are you trying to parse something
<benzrf> for the love of pete just use json
eka has joined #ruby
<jokke> benzrf: lol
<jokke> yeah i'll just use upower --output-format json
<bilbo_swaggins> can't parse with regex. Someone link him that SO post on this
<jokke> and btw that's bullshit
peret has quit [Ping timeout: 240 seconds]
<benzrf> bilbo_swaggins: the post was about xhtml
<benzrf> but k
<benzrf> 1 sec
<jokke> you _can_ parse virtually everything with regex
<bilbo_swaggins> this is wrong
<benzrf> no.
<jokke> yes
<benzrf> regex == REGULAR expressions
<bilbo_swaggins> pumping lemma
<benzrf> therefore, regular grammars
<jokke> benzrf: wrong
<benzrf> lookahead/lookbehind KINDA allow context-sensitivity
* maasha stabs fork in the face
<jokke> benzrf: not just kinda
<benzrf> regex is the worst
<benzrf> jokke: pls show me recursion, TheNumb
<benzrf> *then
* benzrf folds his arms
<bilbo_swaggins> jokke, I give you permission to show us wrong
smathieu_ has quit [Remote host closed the connection]
fubelly has joined #ruby
senayar has quit [Remote host closed the connection]
<jokke> benzrf: uh.. recursion with regex? that's so easy
aspires has joined #ruby
<bilbo_swaggins> please I beg you don't
* benzrf covers his eyes in horror
<bilbo_swaggins> well wait
<bilbo_swaggins> give him a chance
<bilbo_swaggins> now I'm intrigued
cj__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m0s is now known as m0s^away
<fubelly> Hey there, does anyone know how to get n random bits? I can do Random.new.bytes(n), but what if I don't want a factor of 8?
<fubelly> Specifically, I want 23 random bits
smathieu_ has joined #ruby
papercod1 has quit [Remote host closed the connection]
<benzrf> fubelly: whatever for?
lmickh has joined #ruby
<benzrf> jmaister: http://stackoverflow.com/a/1732454/1277613 <- everything you need to know about parsing with regex
<bilbo_swaggins> >> (Array.new(23) {Random.new.rand 2}).join
<eval-in> bilbo_swaggins => "01000010100010110111110" (https://eval.in/126542)
<jokke> come back after
papercod1 has joined #ruby
<fubelly> benzrf: I'm generating unique IDs, but I'm having a timestamp in front of a random number.
<fubelly> so the random number needs to fill the remaining of the 64 bits, which would be 23 bits, 41bits for the timestamp
<bilbo_swaggins> jokke, I'd call you out on debating semantics, but... well that would be too much to the point
<apeiros> 41bits for a timestamp?
<bilbo_swaggins> fubelly
<wallerdev> whats the difference between Random.new.rand and rand
<bilbo_swaggins> I was busting out a quick hack
<bilbo_swaggins> it's the same
<wallerdev> >> Array.new(23) { rand 2 }.join
<apeiros> wallerdev: verbosity?
<eval-in> wallerdev => "01101101101011010000110" (https://eval.in/126543)
<benzrf> fubelly: why not gen 24, then bitmask
<wallerdev> gotcha
<jokke> bilbo_swaggins: benzrf regex engines in most modern programming languages are NP complete
Lewix has quit [Remote host closed the connection]
<apeiros> maasha: will take a look later today! thanks for the link
bobwilliams has joined #ruby
<fubelly> benzrf: Ok, so I'll gen 24 with Random.new.bytes(3), and then how would I grab just 23?
<bilbo_swaggins> jokke: do what you want
<benzrf> jokke: that doesn't mean they SHOULD be
<jokke> i never said you SHOULD!
<jokke> i said you CAN
<benzrf> fubelly: use bitmasking
<bilbo_swaggins> if you play language games, sure
<benzrf> >> 0b11111111111111111111111.to_s 16
davy_ has quit [Remote host closed the connection]
<maasha> apeiros: OK. I really want to solve this in a way I understand :o)
<eval-in> benzrf => "7fffff" (https://eval.in/126544)
<benzrf> fubelly: randomly_generated & 0x7fffff
<fubelly> benzrf: googling now
<bilbo_swaggins> >> 99999999999999999.times
<eval-in> bilbo_swaggins => #<Enumerator: 99999999999999999:times> (https://eval.in/126545)
<apeiros> rand(1<<N).to_s(2)
<benzrf> fubelly: look up 'c bitwise operators'
<apeiros> less work than N times rand
<benzrf> apeiros: derp.
<benzrf> apeiros: i feel silly :I
<benzrf> apeiros: wait don't you mean >>
<apeiros> benzrf: why? bitmask is the proper solution anyway :-p
codezomb has joined #ruby
<benzrf> wait derp
<benzrf> shit
<jokke> jeez i come here with a question and first "answer" i get is "regular expressions are for _regular_ languages". always the same story...
<apeiros> herp derp!
<benzrf> nvm
<benzrf> jokke: only bullshit annoying non-standard stuff allows regexes to be non-regular
BuSerD has joined #ruby
<apeiros> though, "%#{N}b" % rand(1<<N) is better, for leading zeroes
mikepack has joined #ruby
<apeiros> meh, forgot a 0
<jokke> i need to parse, yes parse, output of a unix program.
<apeiros> "%0#{N}b" % rand(1<<N)
<wallerdev> what was the q jokke, i love using regex even when its unnecessary
<jokke> benzrf: excuse me?? you're saying backreferences and look behinds and look aheads are "bullshit annoying non-standard stuff" XD
<benzrf> w/e
fieldfirst has quit [Ping timeout: 252 seconds]
<benzrf> if you are using lookaheads or behinds, that is just a sign that you should not be using regex
<jokke> benzrf: dude...
blahblah has left #ruby [#ruby]
<bilbo_swaggins> fellas, wait
<wallerdev> lookaheads are useful, lookbehinds are a bit iffy
CorySimmons has quit [Quit: Zzz...]
<jokke> benzrf: if you're saying stuff like that, it just means you don't understand them
<bilbo_swaggins> can we at least agree that regex is unpretty?
dkamioka_ has joined #ruby
<benzrf> yep.
fieldfirst has joined #ruby
creede has quit [Ping timeout: 252 seconds]
<wallerdev> ruby makes regex pretty sexy
fluve has joined #ruby
<benzrf> hell no
<wallerdev> languages like c# where you write regex as strings are ugly
<jokke> wallerdev: question was why
dkamioka_ has quit [Remote host closed the connection]
<jokke> >> "bla: blub\nfoo: bar".match(/(?:bla: (\w+))?.*(?:foo: (\w+))?/m)
<eval-in> jokke => #<MatchData "bla: blub\nfoo: bar" 1:"blub" 2:nil> (https://eval.in/126556)
<jokke> the second matchgroup is nil
<wallerdev> what do you expect it to be
<banister> jokke are you dutch?
dkamioka_ has joined #ruby
<jokke> bar
<jokke> banister: no
diegoviola has joined #ruby
CorySimmons has joined #ruby
<banister> jokke oh, isn't your name a dutch name? where are you from?
abdulsattar has joined #ruby
lmickh has quit [Remote host closed the connection]
dkamioka has quit [Ping timeout: 268 seconds]
<jokke> banister: no it's not.. And i guess you're name's not banister either so why should mine be jokke
<wallerdev> probably because its optional
<banister> jokke because it reminded me of a real dutch name i've seen before
<jokke> i'm 3/4 finnish and 1/4 german. I grew up in finland but moved to germany to study.
bynaryshef has joined #ruby
Vlat- has joined #ruby
petey has joined #ruby
Maitiu has quit [Ping timeout: 268 seconds]
<jokke> and jokke is not german. It's not even finnish actually. Rather swedish.
<jokke> anyhow
Maitiu has joined #ruby
<bilbo_swaggins> jokke, lebst du in Deutschland jetztz?
<jokke> jup
<bilbo_swaggins> -z
jzig has joined #ruby
benzrf is now known as benzrf|offline
m0s^away is now known as m0s
<bilbo_swaggins> Echt cool. Ich kann mein Deutsch nie hier in USA sprechen.
AlSquire has quit [Quit: This computer has gone to sleep]
blackmes1 has quit [Quit: WeeChat 0.4.3]
yfeldblum has quit [Remote host closed the connection]
<bilbo_swaggins> Es ist schlecht wie Regex zu parsen benutzen.
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
CorySimmons has quit [Ping timeout: 264 seconds]
<wallerdev> jokke: youd need to tell the .* where to stop or itll just gobble up the rest
<jokke> bilbo_swaggins: people tend to get annoyed when you speak another language on an english channel
sigurding has joined #ruby
<jokke> but i can tell you're not german
jprovazn has joined #ruby
<jokke> wallerdev: yeah i tried using .*? too
<jokke> still the same result
<jokke> >> "bla: blub\nfoo: bar".match(/(?:bla: (\w+))?.*?(?:foo: (\w+))?/m)
<eval-in> jokke => #<MatchData "bla: blub" 1:"blub" 2:nil> (https://eval.in/126559)
<wallerdev> that wouldnt work since the last part is optional
<wallerdev> it doesnt have any reason to stop if the last part is optional
<jokke> wallerdev: oooh i see
pfg has quit [Quit: Textual IRC Client: www.textualapp.com]
<bilbo_swaggins> jokke, I learned German in high school
<jokke> ah that sucks
incade has joined #ruby
<jokke> bilbo_swaggins: okay, cool
sambao21 has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 246 seconds]
incade has quit [Remote host closed the connection]
<wallerdev> jokke: depending on the format, it might make sense to just split it by lines first and match one line at a time
<wallerdev> if youre not sure how many lines there will be
<bilbo_swaggins> I'd like to have more opportunities to speak it. I've met people here and there in odd places who speak it.
<bilbo_swaggins> you can tell by the accent
<jokke> wallerdev: yeah i know.. but that would break my whole setup
pu22l3r_ has joined #ruby
<wallerdev> that sounds like a weird setup haha
<jokke> bilbo_swaggins: sometimes
zigomir has joined #ruby
<wallerdev> maybe youre passing in a regex and you can also pass in an optional block for more complicated things
bilbo_swaggins is now known as bilbo_swaggins|b
_justin has quit [Quit: _justin]
pu22l3r_ has quit [Read error: Connection reset by peer]
<wallerdev> if its just two parameters just make the last part non-optional and itll work
pu22l3r__ has joined #ruby
<jokke> wallerdev: yeahh
centrx has joined #ruby
<wallerdev> >> "bla: blub\nfoo: bar".match(/(?:bla: (\w+))?.*(?:foo: (\w+))/m)
<eval-in> wallerdev => #<MatchData "bla: blub\nfoo: bar" 1:"blub" 2:"bar"> (https://eval.in/126561)
bilbo_swaggins|b is now known as bilbo|brb_at_Mor
<wallerdev> but i assume theres more to it than that haha
sambao21 has joined #ruby
pfg has joined #ruby
yfeldblu_ has joined #ruby
<jokke> nah that's still outdated
pu22l3r__ has quit [Remote host closed the connection]
aspires has quit []
b00stfr3ak has joined #ruby
pu22l3r_ has joined #ruby
<sigurding> short question: is there a command line parser, which offers a “wizard” like input, when no params are specified?
pu22l3r has quit [Ping timeout: 265 seconds]
endash_ has joined #ruby
zeropx has quit [Ping timeout: 240 seconds]
<banister> sigurding not that i know of, but u should write it, i'd use it, thanks
hiall has quit [Quit: hiall]
<sigurding> banister: I saw it in the cloudfoundry client
<sigurding> which was previously based on ruby
popl has joined #ruby
popl has joined #ruby
<banister> sigurding probably a custom thing, but you can ask them
<sigurding> now ported to go
pel_daniel has quit [Read error: Connection reset by peer]
<banister> what is so cool about go?
chuk_ has joined #ruby
<jokke> wallerdev: i think i found a way
shinobi_one has joined #ruby
toastynerd has joined #ruby
sk87 has joined #ruby
bilbo|brb_at_Mor is now known as lex
geggam has quit [Ping timeout: 264 seconds]
lex is now known as bilbo_swaggins
smathieu_ has quit [Remote host closed the connection]
pel_daniel has joined #ruby
weems has quit [Quit: Leaving]
smathieu has joined #ruby
xcv_ has joined #ruby
sk87 has quit [Client Quit]
zeropx has joined #ruby
fantazo has joined #ruby
xcv has quit [Read error: Connection reset by peer]
freggles has joined #ruby
eka has joined #ruby
chuk_ has quit [Client Quit]
__class__ has joined #ruby
weems has joined #ruby
spider-mario has joined #ruby
_justin has joined #ruby
patrick99e99 has joined #ruby
redlines has quit [Ping timeout: 252 seconds]
redlines has joined #ruby
invinceable has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
papercod1 has quit [Ping timeout: 246 seconds]
papercod1 has joined #ruby
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
pel_daniel has quit [Quit: Leaving.]
creede has joined #ruby
afex has quit [Ping timeout: 240 seconds]
papercod1 has quit [Client Quit]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
lw has quit [Quit: s]
CorySimmons has joined #ruby
baroquebobcat has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
papercode has joined #ruby
weems has quit [Quit: Leaving]
smathieu has quit [Remote host closed the connection]
sputnik13 has joined #ruby
smathieu has joined #ruby
monkegjinni has joined #ruby
geggam has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
bilbo_swaggins has quit [Quit: Leaving]
mikepack_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lolmaus has quit [Read error: Connection reset by peer]
kirun has joined #ruby
andrewlio has quit [Quit: Leaving.]
sputnik13 has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Leaving...]
mikepack has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
_justin has quit [Quit: _justin]
zarul has quit [Quit: Leaving]
nanoyak has joined #ruby
BuSerD has quit [Ping timeout: 264 seconds]
Dreamer3 has quit [Quit: Leaving...]
znow has joined #ruby
lolmaus has joined #ruby
afex has joined #ruby
_justin has joined #ruby
failshell has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<znow> heya! I have an array of elements, where each element contains elements. Each elements in element has an attribute "correct" which is true/false, its basically an array of answers, and each answers has the attribute "correct". I need to count which "array" / "element" has the largest number of correct's.. So some comparison, how could I do this easiest?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<bricker`LA> What would cause a ping to a URL resolve to a completely different URL? My problem is that I'm trying to ping one of our websites and the resolved URL is something that's just completely wrong, some random website.
<havenwood> znow: it's easier for humans to understand complex data than complex logic, mind gisting the expected input and desired output?
<bricker`LA> I realize that question has nothing to do with ruby
BuSerD has joined #ruby
pel_daniel has joined #ruby
<atmosx> bricker`LA: ping and URL don't play well together.
<znow> havenwood: ofc, just a sec
<atmosx> bricker`LA: different protocols involved
<bricker`LA> atmosx: interesting
Spami has joined #ruby
bobwilliams has left #ruby ["Leaving..."]
<bricker`LA> atmosx: so you're saying I should always use IP when trying to ping something?
<Vlat-> znow: have to agree with havenwood. however, i guess you can simply do the job using code blocks (lambda)
nanoyak has quit [Read error: Connection reset by peer]
<atmosx> bricker`LA: A uniform resource locator, abbreviated as URL (also known as web address, particularly when used with HTTP)
<znow> havenwood: yeah ofc, it was a rather tricky question haha, give me a sec, and thanks :)
<znow> Vlat-: true true :D
nanoyak has joined #ruby
<atmosx> bricker`LA: when you ping, you use HTTP? Do you choose protocol and remote port when pinging?
<bricker`LA> atmosx: no, just `ping google.com`, for example
<atmosx> bricker`LA: so you are not using the URL, you're using the hostname
ahawkins has joined #ruby
<atmosx> domain name to be more precise
<apeiros> znow: max_by + count
duggiefresh has joined #ruby
<bricker`LA> ah, which is going through DNS and so the resolved URL I was seeing was some other website on the same nameservers? Or something like that. I don't know jack shit about networking.
malnek has left #ruby [#ruby]
<atmosx> bricker`LA: anyway, what are you trying to do exactly, resolve a URL or test a domain is online?
<znow> apeiros: will google that thanks
<apeiros> znow: but better yet you use proper classes instead of just nest arrays
<apeiros> znow: noooo!
<apeiros> znow: use actual *api docs*
<bricker`LA> atmosx: actually right now I'm just trying to test that outgoing HTTP connections are working
<znow> apeiros: what I meant, sorry ;)
<apeiros> both methods are either on Array or Enumerable
<atmosx> bricker`LA: HTTP connections are *usually* made to ports 80 and 443, so instead of ping you should probably use a tool like netcat: nc www.google.com 80 (telnet will do too, but it's not optimal)
seemant has joined #ruby
<atmosx> bricker`LA: what I'm saying is that your server/host/whatever might be able to send ICMP and receive a reply (ping) but not connect to port 80, depends on teh firewall rules of the router, ISP, firewall... whatever sits in between.
<seemant> hi all, anyone recommend "the ruby way" to get a hash of hashes from a larger hash of hashes, based on keys in an array
<bricker`LA> atmosx: got it, thanks
jeregrine has joined #ruby
m0s is now known as m0s^away
<apeiros> znow: misnamed, that's not a .rb, that's a .yaml
<seemant> at the moment, I'm iterating, with a (filter & largehash.keys).each{ |b| filteredhash[b] = largehash[b] }
<apeiros> znow: also, with 2 lines of code, it'd be reproducable :-p
<seemant> but that "feels" wrong, somehow
<znow> apeiros: my bad
<znow> apeiros: sec
senayar has joined #ruby
sambao21 has joined #ruby
<apeiros> seemant: filterset = filter.to_set; filtered = large.select { |k,v| filterset.include?(k) }
<apeiros> not necessarily faster.
<b00stfr3ak> I'm trying to learn metaprogramming, does this http://pastebin.com/gRpeJAKX work? or is there a better way?
<seemant> apeiros: it feels like there's gotta be a mappy way to do it
jrunning_____ has left #ruby [#ruby]
<apeiros> seemant: map is for mapping, not filtering.
<apeiros> select/reject is for filtering
duggiefresh has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
enebo has joined #ruby
patrick99e99 has joined #ruby
Gadgetoid has joined #ruby
agrinb_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
agrinb has joined #ruby
eynj has left #ruby [#ruby]
_justin has quit [Quit: _justin]
juarlex has quit [Remote host closed the connection]
tonni_ has joined #ruby
bluenemo has joined #ruby
yekta has quit [Quit: yekta]
jgoss has quit [Read error: Connection reset by peer]
<havenwood> znow: @participants.map { |participant| participant.map &:answer }
crystal77 has joined #ruby
agrinb_ has joined #ruby
<havenwood> znow: oh, sorry i didn't read...
<znow> :D
<havenwood> znow: sec
patrick99e99 has quit [Ping timeout: 246 seconds]
<znow> havenwood: &:correct instead?
<znow> havenwood: gives me: [[false, true, true, true], [true, true, false, false]]
jgoss has joined #ruby
tonni has quit [Ping timeout: 268 seconds]
Stalkr_ has joined #ruby
agrinb has quit [Ping timeout: 268 seconds]
* apeiros repeats: max_by + count
<havenwood> znow: max_by indeed, you counting numbers or points
<apeiros> znow: btw., with these two lines you could have provided actually reproducable case:
<apeiros> AnswerModel = Struct.new(:name,:answer,:correct,:correct_answer,:question,:point,:number)
<apeiros> YAML.load(yourdata)
<znow> havenwood: huh? numbers or points?
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
pskosinski has quit [Quit: Til rivido Idisti!]
<havenwood> znow: i'm just slow on the uptake it looks like, you're counting the number of `correct: true`?
smathieu has quit [Remote host closed the connection]
<znow> havenwood: yes! :)
<apeiros> hm, actually needs a constructor :D
<znow> havenwood: I need to get the participant, with most correct answers
fubelly has quit [Quit: Leaving...]
smathieu has joined #ruby
<znow> havenwood: most correct: true that is
MindfulMonk has joined #ruby
SevereOverfl0w has joined #ruby
Asher has quit [Quit: Leaving.]
toastynerd has joined #ruby
zachallett has quit [Remote host closed the connection]
l3ck has quit [Quit: Leaving...]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poikon has joined #ruby
<apeiros> ok, the struct thingy doesn't work out >:(
<toretore> answers.each_with_object(Hash.new(0)){|a,h| h[a.user] += 1 if a.correct? }
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<toretore> => {'daniel' => 3, 'elsa' => 2, etc}
lw has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
<toretore> _.sort{|(_,a),(_,b)| a <=> b }
<apeiros> this one works out: class AnswerModel; attr_accessor :name,:answer,:correct,:correct_answer,:question,:point,:number; end
<Hanmac1> toretore: use _.sort(&:last)
bradhe has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
<Hanmac> toretore: i mean sort_by
<toretore> i like to be explicit
* Hanmac thinks there should be a function named count_by working similar to group_by
bradhe has joined #ruby
<apeiros> how's sort_by not explicit?
<toretore> what if there's a third element?
<havenwood> znow: @participants.max_by { |participant| participant.count &:correct }.first.name
skaflem has quit [Quit: Leaving]
<apeiros> Hanmac: hm? how'd it differ from count?
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
michaeldeol has joined #ruby
<Hanmac> apeiros: ["abc","xyz","de","fg","xy","za"].count_by(&:size) #=> { 3 => 2, 2 => 4 } # 2 elements has size =3 and 4 elements does have size = 2
<apeiros> Hanmac: ah!
shlant has joined #ruby
<znow> havenwood: thanks alot :-) apeiros also thanks :)
<apeiros> Hanmac: yes, that'd be nice. have done a group_by + map + to_h many times
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> znow: well, I'm sorry the others are such fun-spoils and just hand you the solution
<toretore> i always do that
pfg has joined #ruby
<havenwood> :O
<znow> apeiros: haha yeah, although used abit time to try to find th esolution my self, but I had to ask professionals
<toretore> it's not like people should be learning anything
crystal77 has quit [Quit: Computer has gone to sleep.]
ktosiek has joined #ruby
<shlant> since you guys were so helpful before…. any way I can handle multiple up/down entries? https://gist.github.com/MrMMorris/0aa62d5bf0e73de41271
bradhe has quit [Ping timeout: 252 seconds]
<shlant> sorry it's chef-heavy
axl_ has quit [Quit: axl_]
bynaryshef has quit []
maroloccio has joined #ruby
sambao21 has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
<shlant> would I need .each for entries that could have multiples?
shutchie has joined #ruby
<apeiros> shlant: I don't think line 11/12 works
<shlant> apeiros: yea it won't currently
<shlant> how can I make it work
<apeiros> unless chef is as horrible to use a notation that looks like json but isn't
jespada has quit [Quit: Leaving]
<shlant> apeiros: currently it only puts the first down value
<apeiros> use an array
<shlant> in the json?
shutch has quit [Read error: Operation timed out]
yokel has quit [Ping timeout: 246 seconds]
fieldfirst has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
terrellt has quit [Ping timeout: 265 seconds]
yokel has joined #ruby
yfeldblum has joined #ruby
<apeiros> shlant: yes. if you don't, your data won't even *contain* two values
<apeiros> i.e., what you do in the code no longer even matters.
afex has quit [Ping timeout: 265 seconds]
<apeiros> but I don't know how chef works, whether you can call up/down more than once e.g.
nanoyak has quit [Quit: Computer has gone to sleep.]
lethjakman has joined #ruby
<shlant> apeiros: it errors with Option down must be a kind of String! You passed ["ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0", "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"]
YamakasY has quit [Ping timeout: 265 seconds]
<j416> o/ this is somewhat of a crosspost from #bundler which seems rather dead at the moment; if I have a Gemfile with only dev stuff (I use rack and rspec, neither of which are required for just running the program), how would I specify this so that bundler won't barf saying I need to bundle install when running the program? They're in a group :dev. Should I just skip the require 'bundler/setup'?
agarie_ has joined #ruby
<shlant> apeiros: I guess I could ask the cookbook maintainer to create it as an array
<Paradox> hmm, when i use Bundler.require, it works fine if i start the script within the same path as the Gemfile, i.e 'ruby script.rb'. However, if i attempt to run the script from OUTSIDE that path (say, from the parent directory by 'ruby myscript/script.rb), i get this error: private method `require' called for Bundler:Module (NoMethodError)
nanoyak has joined #ruby
<Paradox> a quick googling turns up thousands of results on that error
<Paradox> but no actual fixes, just people ripping out bundler require and replacing it with manual requires
wallerdev has quit [Quit: wallerdev]
<apeiros> Paradox: do your require bundler prior to Bundler.require?
<Paradox> yup
<sigurding> what do I need to do, if I get: “There are files that need to be committed first.”
<Paradox> hold on quick pastebin
<j416> sigurding: that would depend on what you're tying to do in the first place
bilbo_swaggins has joined #ruby
<j416> trying* even
<Paradox> first 3 lines of the file
<sigurding> j416: rake release
kaleigh has joined #ruby
<j416> sigurding: that would be something specific to your program, is it?
<Paradox> apeiros its the weirdest thing
<Paradox> run the script from within its directory
<Paradox> flawless
<j416> sigurding: judging from the message itself it seems like you've uncommitted things
<Paradox> outside? wont even start
<apeiros> Paradox: k, no idea
<Paradox> hm
<Paradox> i'll see if anyone in bundler knows
<Paradox> thanks
<sigurding> j416: uncommited in which context, git?
agarie has quit [Ping timeout: 265 seconds]
<Paradox> apeiros did you make it to mountain west ruby conf?
jprovazn has quit [Quit: Odcházím]
<j416> sigurding: I assume so, but this is project-specific
oeooao has joined #ruby
<j416> sigurding: as it seems.
<apeiros> Paradox: I don't think I ever planned to go there?
<Paradox> hmm
<Paradox> thought you did
<j416> sigurding: check what your Rakefile says about that task
maasha has quit [Quit: Page closed]
<Paradox> maybe im confusing you with someone else
<apeiros> the usual places I go are railsconf and euruko
<apeiros> railsconf I no longer go because of USA
<Paradox> i forgot to buy tickets :( so i just had to watch the live stream even though it was just down the street
<apeiros> euruko I can't go because of russia
<apeiros> gotta love those nations.
<j416> sigurding: I'd assume you have a task :release or the like in your Rakefile that does some checking, presumably git something
afex has joined #ruby
patrick99e99 has joined #ruby
havenwood has quit []
_justin has joined #ruby
znow has quit [Quit: Page closed]
wallerdev has joined #ruby
<bilbo_swaggins> apeiros where are you from
crystal77 has joined #ruby
<Paradox> well i'll idle in bundler and hopefully not miss it in the scrollback
<Paradox> thanks all
<apeiros> bilbo_swaggins: CH
funktor has joined #ruby
<sigurding> j416: my rakefiles content: require "bundler/gem_tasks"
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CorySimmons has quit [Quit: Bye!]
agarie_ has quit [Quit: Leaving...]
<bilbo_swaggins> chech republic?
<Paradox> i've told the user to just alter his startup script to use the proper directory
<seemant> [itzerla]
<Paradox> gonzo fixes woohoo
nanoyak has quit [Quit: Computer has gone to sleep.]
<Paradox> c'ya
<apeiros> that'd be CZ
AlexRussia has quit [Ping timeout: 240 seconds]
<apeiros> bilbo_swaggins: switzerland
rvraghav93 has joined #ruby
<bilbo_swaggins> ah okay
<bilbo_swaggins> I've been to Bern
<j416> sigurding: aha.
<j416> sigurding: there you go
<j416> sigurding: that seems to be what it's doing. So yes, git.
* j416 afk getting off the train
<sigurding> j416: I commited all the stuff
benzrf|offline is now known as benzrf
rm_ has joined #ruby
<benzrf> bilbo_swaggins: hey, you there?
<bilbo_swaggins> am now
<benzrf> sup
zachallett has joined #ruby
<bilbo_swaggins> looking at hammocks for backpacking
<benzrf> i looked up the error and it looks like ":fatal" is showing up in Object.constants somehow?
<bilbo_swaggins> I dunno
<bilbo_swaggins> your example code is straightforward
patrick99e99 has quit [Ping timeout: 246 seconds]
claymore has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> something to do with libraries on this version of ruby?
<benzrf> >> Object.constants.any? {|s| s[0].downcase == s[0]}
<eval-in> benzrf => false (https://eval.in/126596)
<benzrf> p:
<benzrf> can you try running that in your thing
<benzrf> >ERROR: Exception #<NameError: wrong constant name fatal> not an Errno:: !respond_to?(:errno)
<bilbo_swaggins> at what line?
<bilbo_swaggins> before initializing FS?
<benzrf> that happens because something that FUSE called raised an error that wasn't an errno
weems has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
<benzrf> the exc was 'wrong constant name fatal'
<bilbo_swaggins> that's kind of funny
<benzrf> 'wrong constant name' comes from lowercase constants
<benzrf> i.e.
<benzrf> >> Object.const_get :fatal
<eval-in> benzrf => wrong constant name fatal (NameError) ... (https://eval.in/126597)
m8 has joined #ruby
<benzrf> it's from line 146, which is...
<benzrf> @mod.constants(false).select {|c| @mod.const_get(c).is_a? Module}
<bilbo_swaggins> do you have a linux?
<benzrf> i am on ubuntu saucy
oeooao has quit [Quit: Page closed]
Bumptious has quit [Remote host closed the connection]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> >> ObjectSpace.each_object(Class).reject{|c|c.to_s.downcase!}
<eval-in> Hanmac => [fatal] (https://eval.in/126609)
andrewhl has joined #ruby
lw has quit [Quit: s]
<sigurding> anyone here who could tell me, what I am doing wrong with rake? :(
drumusician has joined #ruby
pu22l3r_ has quit [Ping timeout: 268 seconds]
carraroj has quit [Quit: Konversation terminated!]
_Andres has quit [Ping timeout: 240 seconds]
<benzrf> sigurding: everything
drumusician has quit [Remote host closed the connection]
ghr has joined #ruby
<benzrf> Hanmac: ..huh
<benzrf> o-O
michaeldeol has joined #ruby
<benzrf> Hanmac: where's that from?
<sigurding> benzrf: no, I works until I try `rake release`
<sigurding> when I get: “There are files that need to be committed first.”
<Hanmac> benzrf: i asked the OBjectSpace itself
<benzrf> Hanmac: can you find out who has that const?
_justin has quit [Quit: _justin]
Vovko has joined #ruby
SonicX has quit [Remote host closed the connection]
<benzrf> ObjectSpace.each_object(Class).reject{|c|c.to_s.downcase!}
<benzrf> oop
<benzrf> >> ObjectSpace.each_object(Module).reject{|c|c.to_s.downcase!}
<eval-in> benzrf => [fatal] (https://eval.in/126618)
<benzrf> k so just that o=
<benzrf> ...huh
<benzrf> >> exit!
<eval-in> benzrf => (https://eval.in/126621)
ghr has quit [Ping timeout: 246 seconds]
felixjet has quit [Ping timeout: 240 seconds]
SonicX has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
claymore has joined #ruby
skammer has joined #ruby
weems has quit [Read error: Connection reset by peer]
armyriad has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
freeone3000 has joined #ruby
smathieu has quit [Remote host closed the connection]
<freeone3000> I want to execute a command in the system's shell, like http://linux.die.net/man/3/system . What Ruby function do I want to do this?
<benzrf> system
<benzrf> >> system 'ls
<eval-in> benzrf => /tmp/execpad-5c00c4e4b6a2/source-5c00c4e4b6a2:2: unterminated string meets end of file ... (https://eval.in/126631)
<benzrf> >> system 'ls'
<eval-in> benzrf => (https://eval.in/126632)
smathieu has joined #ruby
<benzrf> freeone3000: why, though?
<dx7> I've had this error after run rspec: "[BUG] Bus Error"
<dx7> Do you know something about that?
lw has joined #ruby
<freeone3000> benzrf: Because I need to execute a command on the user's path, and figuring out where they stuck it is way more trouble.
thumpba_ has joined #ruby
<benzrf> freeone3000: it's really not
<benzrf> there are utilities for this
<benzrf> :I
<freeone3000> benzrf: It's a python script. Did they build it manually? Is it stuck in /bin/env? Are they in a virtualenv instead? Did they install it from source manually?
<benzrf> >.>
<benzrf> wait, what do you mean by 'stuck in /bin/env'
timonv has quit [Remote host closed the connection]
<shevy> freeone3000 system() should work fine
<benzrf> env is always $PATH based
<freeone3000> benzrf: My users are scientists.
armyriad has joined #ruby
alvaro_o has joined #ruby
<benzrf> 3 second google
<freeone3000> benzrf: Or I could use system().
<benzrf> :(
<benzrf> b-but
<benzrf> system() is eeeeevil!
<benzrf> everyone knows hat!
<benzrf> *that
<freeone3000> Oh no, it invokes a subshell and is potentially more bulky than alternatives!
<benzrf> ;-;
<benzrf> >tfw
thumpba has quit [Ping timeout: 268 seconds]
<bilbo_swaggins> >> `ls`
<eval-in> bilbo_swaggins => (https://eval.in/126635)
<bilbo_swaggins> >> p `echo "backticks up in this"`
<eval-in> bilbo_swaggins => (https://eval.in/126636)
bradhe has joined #ruby
doodlehaus has joined #ruby
r0nin has joined #ruby
m0s^away is now known as m0s
kpshek has quit []
failshell has quit []
makerops has joined #ruby
tvw has joined #ruby
<makerops> how would i add a -y to that? system("yum", "install", *packages)
<makerops> after install*
funktor has quit []
wallerdev has quit [Quit: wallerdev]
<benzrf> ..just add -y?
<makerops> benzrf, it seems to split it up into 2 commands if i do that
<shevy> freeone3000 what kind of scientists :)
zachallett has quit [Remote host closed the connection]
<makerops> if i call "yum", "install" *packages, it works, but it's then interactive
<shevy> makerops system 'yum install -y '+packages.join(' ')
<sigurding> is it possible to bundle all required gems, necessary to run?
smathieu has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
wald0 has joined #ruby
<benzrf> shevy no
mansi has quit [Remote host closed the connection]
smathieu has joined #ruby
<makerops> No such command: install -y. Please use /usr/bin/yum --help
yasushi has joined #ruby
<makerops> thats the output if i just add the -y to "install"
brain_shim has quit [Ping timeout: 240 seconds]
<shevy> makerops what command do you use
<makerops> shevy, what do you mean?
<shevy> makerops build up the full string you would use on the commandline, then send it as string to system()
benzrf is now known as benzrf|offline
rainmanjam has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
mansi has joined #ruby
<bilbo_swaggins> sigurding bundler
<sigurding> bilbo_swaggins: and how?
<shevy> now the name suddenly makes sense :)
<sigurding> I did bundle install
arubincloud has joined #ruby
<bilbo_swaggins> I'm not sure what you're asking then?
<bilbo_swaggins> Automatic generation of dependency list when creating a project?
andrewlio has joined #ruby
sivoais has quit [Quit: leaving]
makerops has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
crystal77 has joined #ruby
momomomomo has quit [Quit: momomomomo]
monkegjinni has quit [Remote host closed the connection]
<sigurding> bilbo_swaggins: I created a project, which depends different other gems. Now I created `rake build`and afterwards I do: ruby -Ilib ./bin/project
monkegjinni has joined #ruby
<sigurding> getting the error: cannot load such file — ‘bla/blu’
elaptics is now known as elaptics`away
omegahm has quit [Ping timeout: 264 seconds]
jlast has quit [Remote host closed the connection]
mrnugget has joined #ruby
chipotle has joined #ruby
popl has quit [Quit: Touch the frog.]
<bilbo_swaggins> sigurding: sorry I don't know
crystal77 has quit [Max SendQ exceeded]
monkegjinni has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
crystal77 has joined #ruby
danshultz has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
<freeone3000> sigurding: You want require_relative instead of require when loading depends in your own module.
smathieu has joined #ruby
danshultz has joined #ruby
m0s is now known as m0s^away
sivoais has joined #ruby
danman_ has quit [Quit: danman_]
sailias has quit [Ping timeout: 246 seconds]
YamakasY has joined #ruby
bluenemo has quit [Ping timeout: 264 seconds]
petey has quit []
poikon_ has joined #ruby
doodlehaus has quit []
mary5030_ has quit [Ping timeout: 246 seconds]
fantazo has quit [Quit: Verlassend]
freezey has quit [Remote host closed the connection]
oneawayman has joined #ruby
quba is now known as Su7
duggiefresh has joined #ruby
Voodoofish430 has joined #ruby
rm_ has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 268 seconds]
duggiefr_ has joined #ruby
rm_ has joined #ruby
<sigurding> bilbo_swaggins: bundle install –binstubs it is
poikon__ has joined #ruby
poikon has quit [Ping timeout: 240 seconds]
duggiefr_ has quit [Read error: Connection reset by peer]
lw_ has joined #ruby
wallerdev has joined #ruby
duggiefr_ has joined #ruby
aspires has quit []
Abyss__ has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
lw_ has quit [Max SendQ exceeded]
linojon has joined #ruby
freezey has joined #ruby
lw_ has joined #ruby
mrnugget has quit [Quit: mrnugget]
duggiefresh has quit [Ping timeout: 240 seconds]
lw_ has quit [Max SendQ exceeded]
alex88 has quit [Quit: Leaving...]
roolo has joined #ruby
no6 has quit [Ping timeout: 240 seconds]
ikawnoclast has quit [Remote host closed the connection]
xIzIv has joined #ruby
poikon_ has quit [Ping timeout: 268 seconds]
lw has quit [Ping timeout: 268 seconds]
alex88 has joined #ruby
aspires has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
shlant1 has joined #ruby
<hfp> Hi guys!
<hfp> Is there a syntax sugar way of writing things like `foo = foo.to_s` ?
<banister> hfp no
echevemaster has quit [Quit: Leaving]
<hfp> ok
<hfp> That's fine, I still like Ruby
bklane has joined #ruby
DallasG has joined #ruby
shlant has quit [Ping timeout: 264 seconds]
Mrdarknezz has quit [Ping timeout: 264 seconds]
<sigurding> hfp: congrats
<sigurding> :)
<mozzarella> foo = "#{foo)"
<mozzarella> shit
<mozzarella> foo = "#{foo}"
lw has joined #ruby
<banister> hfp does any language have that? :P
YamakasY has quit [Remote host closed the connection]
<mozzarella> use the to_s! function
duggiefresh has joined #ruby
acrussell has quit [Quit: Leaving.]
no6 has joined #ruby
fluve has quit []
rabeldable has quit [Quit: Leaving.]
duggiefr_ has quit [Ping timeout: 264 seconds]
bluenemo has joined #ruby
emdub has quit [Quit: .]
emdub has joined #ruby
freezey has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
duggiefresh has quit [Ping timeout: 265 seconds]
lw has quit [Quit: s]
<xIzIv> mozzarella: where you found to_s! method?)
mengu__ has joined #ruby
bluenemo has quit [Ping timeout: 246 seconds]
rabeldable has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
poikon__ has quit [Remote host closed the connection]
YamakasY has joined #ruby
whomp has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
alex88 has quit [Quit: Leaving...]
<bilbo_swaggins> all objects have #to_s, but not necessarily #to_s!
mengu__ has quit [Read error: Connection reset by peer]
<shevy> hey hfp
<shevy> aren't you the guy that is learning ruby?
alexherbo2 has quit [Quit: WeeChat 0.4.3]
<hfp> shevy: I am he
<bilbo_swaggins> aren't we all?
mengu has joined #ruby
<shevy> bilbo_swaggins dunno, I guess a few people know so much that they learn only very little anymore
juarlex has joined #ruby
Chronocity has quit [Ping timeout: 268 seconds]
<bilbo_swaggins> I'd be willing to pay for tutoring services, then
jrhorn424 is now known as zz_jrhorn424
osvico has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
<shevy> understandably
<shevy> after all rails killed your father
spider-mario has quit [Remote host closed the connection]
jonaskindler has joined #ruby
kaleigh has quit [Remote host closed the connection]
* hfp is now known around here as "the guy who is learning Ruby"
zachallett has joined #ruby
poikon has joined #ruby
abdulsattar has quit [Ping timeout: 268 seconds]
BuSerD has quit [Ping timeout: 240 seconds]
<shevy> yeah hfp
<shevy> we will document your errors
<shevy> so in 3 years you can either laugh about them
evenix has quit [Remote host closed the connection]
<shevy> or be very much ashamed
mary5030 has joined #ruby
whomp has joined #ruby
<freeone3000> https://gist.github.com/freeone3000/206d3cd00e0bdb2d9e23 <- Why do I get the error "NoMethodError: undefined method `run_with_arguments' for NoctilucentWorker::NoctilucentBuilder:Module"? It's passed in as a parameter.
mark_locklear has quit [Quit: Leaving]
ctp has joined #ruby
wedgeV has joined #ruby
LexicalScope` has joined #ruby
jonaskindler has quit [Quit: jonaskindler]
subbyyy_ has joined #ruby
xIzIv has quit [Ping timeout: 265 seconds]
LexicalScope has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
rudisimo has quit []
<centrx> freeone3000, Your module does not have the method you are callin.
cschneid has quit [Ping timeout: 264 seconds]
rickenharp__ has quit [Ping timeout: 264 seconds]
bpgoldsb has quit [Ping timeout: 245 seconds]
yosafbridge has quit [Ping timeout: 245 seconds]
mikepack_ has quit [Remote host closed the connection]
<lethjakman> so when I use tap...is there a way to use outside variables?
<freeone3000> centrx: It's passed in as a parameter. It's the second parameter to that method. It's defined as a lambda elsewhere and passed in.
<centrx> lethjakman, Variables from outside a block can be used in the block.
rickenharp__ has joined #ruby
yosafbridge has joined #ruby
wallerdev has quit [Quit: wallerdev]
<centrx> freeone3000, Use #call to call a lambda, like run_with_arguments.call("string")
xcv_ has quit [Remote host closed the connection]
ada2358_ has joined #ruby
r0nin has quit [Remote host closed the connection]
tris- has joined #ruby
<freeone3000> centrx: Ah. That worked, thanks.
shlant1 has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shlant has joined #ruby
george2 has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 264 seconds]
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
bpgoldsb has joined #ruby
brandon_1 has joined #ruby
toastynerd has joined #ruby
brandon__ has quit [Ping timeout: 245 seconds]
ada2358 has quit [Ping timeout: 245 seconds]
tris has quit [Ping timeout: 245 seconds]
tris- is now known as tris
omegahm has joined #ruby
LBRapid has quit [Ping timeout: 264 seconds]
banister is now known as banisterfiend
vjt has quit [Ping timeout: 245 seconds]
yasushi has quit [Remote host closed the connection]
ohcibi has quit [Read error: Connection reset by peer]
ohcibi has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
Liothen has quit [Ping timeout: 245 seconds]
jokke has quit [Ping timeout: 264 seconds]
jason__ has quit [Remote host closed the connection]
shadoi has joined #ruby
St_Marx has quit [Ping timeout: 245 seconds]
pagios has quit [Read error: Connection reset by peer]
jason__ has joined #ruby
vjt has joined #ruby
jokke has joined #ruby
YamakasY_ has joined #ruby
pagioss has joined #ruby
Liothen has joined #ruby
spyderman4g63 has quit []
workmad3 has joined #ruby
LBRapid has joined #ruby
cschneid has joined #ruby
toretore has quit [Read error: Connection reset by peer]
jason__ has quit [Read error: Connection reset by peer]
xMopxShell has quit [Ping timeout: 264 seconds]
YamakasY_ has quit [Remote host closed the connection]
jason__ has joined #ruby
patronus_ has quit [Read error: Connection reset by peer]
toretore has joined #ruby
YamakasY_ has joined #ruby
BuSerD has joined #ruby
St_Marx has joined #ruby
Vlat- has quit [Quit: Vlat-]
AlexRussia has joined #ruby
YamakasY has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Remote host closed the connection]
hermanmunster has quit [Remote host closed the connection]
xMopxShell has joined #ruby
agrinb has joined #ruby
YamakasY_ is now known as YamakasY
kevind_ has joined #ruby
alexju has quit [Remote host closed the connection]
kevind__ has joined #ruby
patronus has joined #ruby
<hfp> shevy: github does a pretty good job at documenting my steps :D
Es0teric has joined #ruby
kevind__ has quit [Client Quit]
agrinb_ has quit [Ping timeout: 268 seconds]
george2 has joined #ruby
abdulsattar has joined #ruby
zigomir has quit [Ping timeout: 265 seconds]
kevind__ has joined #ruby
maximski has quit []
ChrisAnn has joined #ruby
duggiefresh has joined #ruby
freezey has joined #ruby
kevind has quit [Ping timeout: 240 seconds]
kevind__ is now known as kevind
duggiefresh has quit [Remote host closed the connection]
hobodave has quit [Ping timeout: 268 seconds]
<shevy> hfp damn
<shevy> I still have not used github much
<shevy> git is well above my head :(
benzrf|offline is now known as benzrf
mansi has quit [Remote host closed the connection]
<shevy> but the issue reporting there is great, rubygems does not offer anything like that
jlast has quit [Remote host closed the connection]
kevind_ has quit [Ping timeout: 268 seconds]
mansi has joined #ruby
<hfp> github is awesome, you should learn it asap
<bilbo_swaggins> git is easy when it's just with github
<hfp> You don't need all the arcane stuff to start, just learn init add commit branch and checkout
<hfp> and push pull
cescalante is now known as ce_afk
<shevy> bilbo_swaggins yeah I read these things
<shevy> somehow my brain does not remember the git commands :\
<bilbo_swaggins> I really really like RubyMine
Tijuanense has joined #ruby
<bilbo_swaggins> I did my time with text editors
<shevy> right now I am working through sinatra tutorials, that's more fun than git :P
<bilbo_swaggins> I like having an IDE
<hfp> shevy: what put it together for me was the course on treehouse
<bilbo_swaggins> I am too
skammer has quit [Ping timeout: 268 seconds]
<bilbo_swaggins> Sinatra is also more interesting than Rails
<shevy> hfp oh man, not another course!
<bilbo_swaggins> but hey
skammer_ has joined #ruby
<bilbo_swaggins> RubyMine is the only paid software on my machine
<Tijuanense> why in the hell am I getting this error after compiling?
<bilbo_swaggins> and it's so worth the $100
aspires has quit []
<Tijuanense> this is even after double checking
<shevy> hpf I have reached the age where, the less I Need to learn, the better for me ;)
<hfp> Tijuanense: nice
aspires has joined #ruby
meatherly has quit [Remote host closed the connection]
<bilbo_swaggins> yeah I really burned myself out trying to learn everything about everything
wedgeV has quit [Quit: wedgeV]
<hfp> shevy: haha you can't really do without git though. It removes all the pain in having 482989053 copies of the same file with exotic names like file1good fil1goodworkingv2 etc
<shevy> bilbo_swaggins everything about what?
<shevy> I mean, I used ruby for a long time, but I still don't know everything
meatherly has joined #ruby
<hfp> shevy: how old are you?
<shevy> hfp one copy to rule them all
<bilbo_swaggins> computer science, functional programming, linear algebra, neural networks, etc etc etc
<shevy> hfp the age at which point you no longer ask!
mansi has quit [Ping timeout: 265 seconds]
nanoyak has joined #ruby
alexherbo2 has joined #ruby
QKO has quit [Changing host]
QKO has joined #ruby
otherj has joined #ruby
<hfp> shevy: oh well, just saying that git is a fantastic tool and even if you stick to basic commands it will be of a tremendous help in your workflow once you get the whole picture how the system was designed
davy has joined #ruby
<shevy> hmm
<hfp> (am I the only one with linked images displaying inline and being disturbed by the link Tijuanense posted?)
<shevy> but that would mean that I'd have to use git locally too
<shevy> Tijuanense will get banned for life once apeiros is back, no worries
<shevy> but the real challenge is to find him in reallife
<hfp> shevy: what do you mean use it locally too?
<hfp> yaaay!
juarlex has quit [Remote host closed the connection]
<shevy> hfp one problem I see is that, if I switch to git, I kinda need to use it everywhere or?
Tijuanense was kicked from #ruby by apeiros [inappropriate]
<shevy> hfp because right now I am not using git, it would be possible but it would also change my existing workflow
<hfp> shevy: git works per directory
Avahey_ has joined #ruby
<apeiros> aaah
<DallasG> solid ban
<shevy> lol
<shevy> yeah
<DallasG> (nick!*@*)
<apeiros> damn invisible space!
<benzrf> thank u based apeiros
<hfp> shevy: so if you don't want to use it for a given project/directory, you don't need to do anything. If you want to start a git repo for a particular project then you just `git init`
<apeiros> well, barely visible space
<apeiros> /mode #ruby +b *!*@ 200.79.251.35 <-- spot the mistake :-)
<benzrf> @ and 2
juarlex_ has joined #ruby
<benzrf> >not using a fixed-width font in irc
Ziarkaen has joined #ruby
<benzrf> >2014
<benzrf> >realize im greentexting in irc AGAIN
<benzrf> :(
meatherly has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Remote host closed the connection]
mikepack has joined #ruby
toastynerd has quit [Remote host closed the connection]
beneggett has joined #ruby
andrewhl has quit [Quit: andrewhl]
yfeldblum has joined #ruby
poikon has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<hfp> did anyone ever interview with Shopify?
<unholycrab> i want to execute a block of lines underneath 'when' in a 'case' block
inkblots has joined #ruby
<unholycrab> so like,
kukyakya_ has quit [Remote host closed the connection]
toastynerd has joined #ruby
<lethjakman> centrx: ahhh I was referencing the wrong one, thanks!
<shevy> what is shopify hfp
abdulsattar has quit [Ping timeout: 264 seconds]
<hfp> shevy: shopify.com/careers
jgoss has quit [Ping timeout: 268 seconds]
<hfp> It's a Ruby/Rails shop that provides a complete ecommerce solution in a SaaS form
<shevy> unholycrab bundle these statements into a method
<shevy> then call that method
cover has quit [Ping timeout: 252 seconds]
derek_c has joined #ruby
<apeiros> unholycrab: a `when` part does not end with an `end`
<apeiros> only the whole case does
<unholycrab> apeiros: agreed
poikon has joined #ruby
<unholycrab> aha, looks like i can just put multiple statements, and they will all execute up to the next when
<shevy> hfp that scrolling there is cool
<shevy> wonder how that is done, I could use that for my local sitemap haha :D
mehlah has joined #ruby
chris_thomson has joined #ruby
<hfp> shevy: You mean when clicking one of the top links in the menu bar?
bluOxigen has quit [Ping timeout: 240 seconds]
jason__ has quit [Remote host closed the connection]
afreidah2 has quit [Ping timeout: 265 seconds]
bilbo_swaggins has quit [Quit: Leaving]
jason__ has joined #ruby
eynj has joined #ruby
enebo has quit [Quit: enebo]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> hfp yeah
<shevy> that delayed scrolling
<shevy> I click and click and watch it scroll, it's more fun than the content ;)
linojon has quit [Quit: linojon]
<hfp> shevy: haha, probably with jQuery
<shevy> if we could just replace javascript with ruby!
mercwithamouth has quit [Ping timeout: 264 seconds]
<hfp> shevy: HTML5 + CSS3 can do amazing stuff. You can write CSS3 in Sass which is written in Ruby. It's as close as it gets IMO
YamakasY has quit [Quit: The best revenge is massive success...]
davedev24 has joined #ruby
sambao21 has joined #ruby
<shevy> but then I'd have to learn Sass too :(
<shevy> css I like
charliesome has joined #ruby
spicerack has joined #ruby
jason__ has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
jollyy has joined #ruby
<f0ster> shevy: just do scss
pierre1_ has quit [Quit: Leaving]
dblessing has quit [Quit: dblessing]
rabeldable has quit [Quit: Leaving.]
sambao21 has quit [Client Quit]
sputnik13 has joined #ruby
QuintinAdam has joined #ruby
aspires has quit []
<hfp> shevy: CSS is a lot easier with Sass and it's not very complicated to learn. It's mostly CSS on steroids. It took me about 5h to learn enough to make good use of it. If you know Ruby and CSS, you pretty much know 90% of Sass.
<shevy> 5h!!!
iceden has quit [Read error: Connection reset by peer]
<apeiros> it takes you 5min to put it to good use
<apeiros> (that is: get rid of all the ;'s and {}'s)
davedev2_ has quit [Ping timeout: 268 seconds]
otherj has quit []
<f0ster> meh. or you could use scss instead of sass
<apeiros> if you're good, you might squeeze in selector nesting in the 5min too
jobewan has quit [Quit: Leaving]
<apeiros> f0ster: but then I don't get rid of those silly sigils
<f0ster> but then you dont have to worry about fickle whitespacing issues
<f0ster> :D
<centrx> Does anyone know if there is a successor to RSRuby? It seems derelict.
<centrx> RinRuby has more recent activity but still two years old, and it lacks nice Ruby bindings and is apparently slower
<apeiros> f0ster: odd… I never worried about those and never experienced one…
<apeiros> f0ster: maybe you need to see an eye-doctor :)
Xeago_ has quit [Remote host closed the connection]
hermanmunster has joined #ruby
Xeago has joined #ruby
aspires has joined #ruby
sputnik13 has quit [Ping timeout: 240 seconds]
m8 has quit [Quit: Sto andando via]
wget_master has joined #ruby
jgoss has joined #ruby
maximski has joined #ruby
wget_master has quit [Client Quit]
<apeiros> "Why spend the time learning a language that is radically different from CSS" <-- lol
<apeiros> yeah, sass is *radically* different from css :D
<apeiros> dunno, but our neighboring cantons dialects differ far more wildly (that's some ~50km distance)
jzig has quit [Remote host closed the connection]
<f0ster> lol, so radically different
<lethjakman> what's sass's learning curve? 20 minutes?
<apeiros> lethjakman: only if you go up to the advanced features like mixins and writing your own functions
<lethjakman> lol
TigerWolf has joined #ruby
<lethjakman> yeah....
Xeago has quit [Ping timeout: 252 seconds]
<f0ster> sass uses yaml right? i dont even know because i just stuck with scss
cover has joined #ruby
<apeiros> o0
<f0ster> so i didnt have to worry about whitespace tricks
<f0ster> jk
timonv has joined #ruby
<apeiros> phew
<apeiros> I just pictured you with an IQ graph, in a free fall… :-p
poikon has quit [Remote host closed the connection]
<hfp> f0ster: sass uses CSS, it just adds awesome stuff to CSS like mixins, variables, helper functions and nesting
<dx7> Some one have had "[BUG] Bus Error" with ruby 2.0?
<lethjakman> shevy: I agree...I wish we could replace JS with ruby.
<shevy> this sounds like yet-another-programming-language
<apeiros> lethjakman: you can. google opal
<lethjakman> I just don't like JS though.
<dx7> I've had this error after rspec runs: "ruby-2.0.0-p451/bin/ruby_executable_hooks: [BUG] Bus Error"
<shevy> cool
<shevy> does opal really work?
poikon has joined #ruby
monsieur1 is now known as monsieurp
<lethjakman> apeiros: I'm always weary of things that try to compile actual languages to javascript.
tylersmith has quit [Read error: Connection reset by peer]
<lethjakman> coffeescript I can understand becaues it's not actually a language.
ItSANg___ has joined #ruby
<f0ster> hfp, ik, I'm talking about SCSS vs SASS
<hfp> f0ster: Yeh, I just realised :D
tylersmith has joined #ruby
eynj1 has joined #ruby
<apeiros> lethjakman: I'd love if they'd just add an open vm to browsers
ItSANg___ has quit [Read error: Connection reset by peer]
no6 has quit [Ping timeout: 265 seconds]
<lethjakman> apeiros: I would agree with that.
<hfp> f0ster: I'm using scss so I can't really comment on sass
<apeiros> lethjakman: and then you can compile to that vm's bytecode
dik_dak has quit [Read error: Connection reset by peer]
<f0ster> hfp: same, i just jumped straight to scss to save time and haven't really tried sass
<apeiros> that'd probably even save a good amount of bandwith
<lethjakman> apeiros: then you'd have a ton of languages on the browser though...
<lethjakman> I just wish they chose a better language early on
<lethjakman> I feel like we're stuck with it now.
<apeiros> lethjakman: to the browser, it'd only be one
ItS______ has joined #ruby
eynj has quit [Ping timeout: 246 seconds]
<lethjakman> apeiros: it would and it wouldn't
rationalrevolt has joined #ruby
<lethjakman> there'd be different interpretors
<apeiros> just as with JS now, yes
<lethjakman> it's just it'd convert it to the same byte code
timonv has quit [Ping timeout: 268 seconds]
<apeiros> as long as the bytecode is standardized
<lethjakman> except you'd have a ruby interpretor and a JS interpretor
ghr has joined #ruby
<lethjakman> or a source converter...which would be ugly.
toretore has quit [Quit: This computer has gone to sleep]
<lethjakman> perhaps...however converting to bytecode wouldn't be error free
ItSANgo has quit [Ping timeout: 268 seconds]
<lethjakman> there'd be speed differences
_Andres has joined #ruby
QKO has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
QKO has joined #ruby
QKO has quit [Changing host]
QKO has joined #ruby
b00stfr3ak has quit [Ping timeout: 252 seconds]
<shevy> apeiros that would be sweet to target VMs instead
<shevy> the ultimate freedom! use whatever language you want
zachallett has quit [Remote host closed the connection]
iceden has joined #ruby
<shevy> jvm for the browser!
zachallett has joined #ruby
zachalle_ has joined #ruby
<apeiros> I think jvm's warm-up time is a bit prohibitive for that :-/
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
ghr has quit [Ping timeout: 252 seconds]
heftig has joined #ruby
<apeiros> otherwise it'd be awesome
<lethjakman> shevy: just think of the maintenance!
<lethjakman> I'd write everything in cobol.
<IceDragon> shevy: Hi, are you on Keybase? I want to track you, so I can kil.. err I mean :D
<shevy> Keybase?
<IceDragon> keybase.io
<apeiros> IceDragon is being creepy again…
<IceDragon> :O
<shevy> I don't think I have heard of that before
<IceDragon> I have 8 invites and no one to invite ;(
<apeiros> IceStalker :-p
<shevy> nope, never heard of that before
ahawkins has quit [Remote host closed the connection]
<IceDragon> apeiros how about you?
<shevy> yeah apeiros how about you!
<apeiros> how about me?
<IceDragon> shevy: Would you be intersted?
rayners has quit [Remote host closed the connection]
rationalrevolt has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<apeiros> surprise! https://keybase.io/apeiros
<IceDragon> :D
davy has quit [Remote host closed the connection]
ktosiek has quit [Ping timeout: 246 seconds]
<apeiros> but thanks for the offer! :)
<shevy> IceDragon hmm I would know me, I'd probably not go there after a while
<shevy> I am even forgetting playing online chess with a reallife friend - one move per day is the average :P
<IceDragon> XD
<IceDragon> ok
<apeiros> shevy: just plan ahead and send them via cron-job!
<IceDragon> I hold unto the invites, if you change your mind I'll give you one, free of cost
<shevy> apeiros hehe
<IceDragon> or have the ai play for you
<IceDragon> :P
zachallett has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
<IceDragon> apeiros: I'm now stalking you errr tracking :D
<shevy> hehe
mary5030 has joined #ruby
<shevy> I wanna stalk apeiros as well
roolo has quit [Quit: Leaving...]
poikon has quit [Remote host closed the connection]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<IceDragon> I wonder if Hanmac would be interested :O
jaywastaken has quit [Quit: This computer has gone to sleep]
nfk has quit [Ping timeout: 264 seconds]
jaywastaken has joined #ruby
<apeiros> IceDragon: that's dangerous, I might have a fire atronarch
<IceDragon> D: keep that far away pls
garndt has quit [Quit: Connection closed for inactivity]
dangerousdave has quit [Quit: Leaving...]
jzig has joined #ruby
Vovko has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
geopet has quit []
rahult has joined #ruby
mary5030 has quit [Remote host closed the connection]
crystal77 has joined #ruby
Jetchisel has joined #ruby
mirage335 has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<shevy> Hanmac go learn rails, then get a new job!
andrewlio has quit [Quit: Leaving.]
yasushi has joined #ruby
eynj1 has quit [Quit: Leaving.]
<codezomb> I asked over in rack, but I'm being a little impatient so I thought I'd ask here. when trying to start a rack server, I'd like to set some defaults, that can be overriden by the rackup params. For example, I want to assume a default server (puma), but allow -s to override this. Is there a way to handle this? I was thinking I could somehow load a yaml file, or something however I can't find any easy way to do this.
<shevy> will matz speak anywhere in 2014?
<shevy> I mean, a presentation
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
freerobby has quit [Client Quit]
workmad3 has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
Alina-malina has quit [Ping timeout: 246 seconds]
<arubincloud> shevy: It appears that he normally keynotes RubyConf.
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
freezey has quit [Ping timeout: 252 seconds]
gilest has joined #ruby
yasushi has quit [Ping timeout: 264 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
obs has joined #ruby
toastynerd has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 240 seconds]
obs has quit [Client Quit]
x77686d has joined #ruby
mikepack has quit [Remote host closed the connection]
toastynerd has joined #ruby
crystal77 has joined #ruby
Shidash has joined #ruby
inkblots has quit [Remote host closed the connection]
mikepack_ has joined #ruby
relix has joined #ruby
arubincloud has quit []
mikepack_ has quit [Remote host closed the connection]
Abyss__ has joined #ruby
mikepack_ has joined #ruby
cina has joined #ruby
zenergi has quit [Quit: zenergi]
crystal77 has quit [Client Quit]
DallasG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
funburn has joined #ruby
tyfighter has quit [Quit: tyfighter]
jaywastaken has quit [Quit: This computer has gone to sleep]
abra has quit [Read error: Operation timed out]
evenix has joined #ruby
andy__ has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
andy__ has joined #ruby
zenergi has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
havenwood has joined #ruby
S0da has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
abra has joined #ruby
abra has quit [Max SendQ exceeded]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
rainmanjam has joined #ruby
abra has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctruett has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
andy__ has quit [Ping timeout: 240 seconds]
Speed has joined #ruby
bklane has quit [Quit: Leaving...]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
freerobby has quit [Quit: Leaving.]
mengu has quit []
kirun has quit [Quit: Client exiting]
montyboy has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
aspires has quit []
freerobby has joined #ruby
okdas has joined #ruby
jollyy has quit [Quit: jollyy]
stephenmac7 has quit [Ping timeout: 255 seconds]
DrShoggoth has quit [Quit: Leaving]
chipotle has quit [Quit: cya]
ChrisAnn has quit [Remote host closed the connection]
riceandbeans has joined #ruby
<riceandbeans> if I see a crappy gem and want to improve on it, what can I do?
okdas_ has joined #ruby
jollyy has joined #ruby
snath has quit [Ping timeout: 252 seconds]
<DouweM> riceandbeans: fork it and submit pull requests
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<DouweM> alternatively, if the gem looks unmaintained, ask to be added as a maintainer
<DouweM> but it helps if you've already got some pull requests to show your skill
sailias has joined #ruby
okdas has quit [Ping timeout: 264 seconds]
charlies_ has joined #ruby
cina has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 240 seconds]
rahult is now known as rahult_
VTLob has quit [Quit: VTLob]
mikecmpbll has quit [Quit: i've nodded off.]
iliketurtles has joined #ruby
mikecmpbll has joined #ruby
<riceandbeans> DouweM: yeah, that's all well and all if there is a link on the page to it being hosted anywhere
<DouweM> hehe
<riceandbeans> DouweM: the one I'm looking at links back to the rubygems page
<DouweM> what gem are we talking here?
<riceandbeans> net-dns-rbl
<riceandbeans> I've been doing work with perl for basically the same thing
<riceandbeans> the gem archive is borked too
b00stfr3ak has quit [Read error: Connection reset by peer]
<riceandbeans> I downloaded the gem and timestamps on files were from 1969
<shevy> riceandbeans take it over, improve on it, release a new gem
<shevy> it was last updated 2 years ago, the author has only 2 gems in total
Olipro has quit [Ping timeout: 246 seconds]
<riceandbeans> but it has a good name
<shevy> I hate the name!
<shevy> two -
jollyy has quit [Quit: jollyy]
vpretzel has quit [Ping timeout: 264 seconds]
<riceandbeans> one thing I HATE about gems is you get gems that are like foo foobar barfoo foo1bar
<shevy> require 'foo' are ideal names, also common namespace should be Foo in this case, and the project name should be foo as well
yasushi has joined #ruby
<riceandbeans> and they all are really similar
<DouweM> you've got the owners name. try to find his info and ask to take over the project
<shevy> quality rating is missing on rubygems.org :)
<DouweM> Although Joseph Lombardo is apparently a mafioso
rudisimo has joined #ruby
<riceandbeans> yeah? well his crap doesn't work in ruby 1.9
jollyy has joined #ruby
thomasxie has joined #ruby
<riceandbeans> if I can't copy paste examples from your readme and get output that isn't a complete error and the script crashing, you did something wrong
<DouweM> meh, who cares about the name. just be findable through google and your 2014 gem will be used over his 2012 one
<riceandbeans> no it won't, because they'll see, 1 download vs his thousands, so they'll be like, he's got the good one
kevind has quit [Ping timeout: 265 seconds]
cndiv has joined #ruby
<hfp> I tried to take a sample codility test. Am I doomed as a developer if I hate that kind of abstract mathematical tests?
<DouweM> and then they check his gem, see it doesn't work (like you did) and use yours
<DouweM> who cares. if you want to use his project but improve it, check the license and re-release it if allowed
postmodern has quit [Quit: Leaving]
<shevy> DouweM hehe I thought he just works at a pizzeria
<DouweM> you'll need to write the code anyway, releasing it as a new gem is just one next step
thomasxie has quit [Remote host closed the connection]
<shevy> riceandbeans ruby 1.8 to 1.9 and above was a big transition with a few incompatible syntaxes, and the big encoding change
b00stfr3ak has joined #ruby
<shevy> riceandbeans download statistic alone doesn't mean much, you can have 1 million downloads and the software is still utter shit :)
<shevy> I mean
<shevy> look at bundler
* shevy hides
<DouweM> haha
michaeldeol has joined #ruby
<riceandbeans> this is the best I get from his gem
<riceandbeans> /checker.rb:42:in `<main>': uninitialized constant Net::Dns::Rbl::Netchecker (NameError)
<shevy> how do you invoke that?
Alina-malina has joined #ruby
<riceandbeans> very carefully
<shevy> no I mean the syntax
montyboy has quit [Quit: Textual IRC Client: www.textualapp.com]
benzrf|offline is now known as benzrf
jottr has joined #ruby
<benzrf> hej davidcelis
<benzrf> *da
<benzrf> yo DouweM wanna try my 5% done half-baked project thing
Olipro has joined #ruby
Olipro has quit [Changing host]
Olipro has joined #ruby
snath has joined #ruby
<DouweM> benzrf: would love to but not now ;P gotta go to class in 6 hours so I'm just reading this one last post on FB buying Oculus before going to bed :P
<benzrf> kk
<riceandbeans> just as his readme says
<benzrf> bbl
chipotle has joined #ruby
benzrf is now known as benzrf|offline
dx7_ has joined #ruby
<DouweM> riceandbeans: and looking through the source, what seems to be the cause?
<DouweM> benzrf|offline: what project is that anyway?
poikon has joined #ruby
<shevy> Net::Dns::Rbl::Netcheck.new('127.0.0.1')
<shevy> riceandbeans try this, perhaps it is a typo in the readme
jaywastaken has joined #ruby
<DouweM> shevy: you downloaded the gem?
<shevy> DouweM yeah
<DouweM> a'ight
dstynchula has quit []
<shevy> it has an awful name
<shevy> gemi net-dns-rbl
jaywastaken has quit [Changing host]
jaywastaken has joined #ruby
<shevy> I think people who use hyphens in gem names must be spanked
mikecmpbll has quit [Quit: ciao.]
<f0ster> isnt' that more common than udnerscores?
<f0ster> most web people use hyphens
<riceandbeans> I've tried without the second part, it didn't work either
dx7 has quit [Ping timeout: 268 seconds]
<shevy> I love underscores
<shevy> but only one
<DouweM> yeah, hyphens in gem names is definitely more common and I don't mind it
dx7_ has quit [Ping timeout: 246 seconds]