apeiros changed the topic of #ruby to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
deol has quit [Remote host closed the connection]
lewix has joined #ruby
<shevy> hmm
ss_ has quit [Remote host closed the connection]
<lewix> hi
Jeticus has joined #ruby
joaoh82 has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
CaptainJet has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Read error: Connection reset by peer]
joaoh82 has joined #ruby
geggam has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 264 seconds]
ValicekB has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
predator117 has joined #ruby
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
ss_ has joined #ruby
joaoh82 has quit [Ping timeout: 240 seconds]
mildfate has joined #ruby
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
rh1n0 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
samuel02 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
BraddBitt has quit [Ping timeout: 260 seconds]
predator217 has quit [Ping timeout: 272 seconds]
Geniack has quit [Disconnected by services]
<mildfate> I've got ruby installed globally on my system, but in order to do some local stuff I've installed rbenv. But, despite it being correctly in my path, when I try to do the installs it's still using my system ruby. How do I solve this?
Geniack_ has joined #ruby
ace_striker has joined #ruby
samuel02 has quit [Read error: Operation timed out]
klaut has quit [Remote host closed the connection]
BraddPitt has joined #ruby
vikhyat has joined #ruby
shedd has joined #ruby
mary5030 has joined #ruby
marr has joined #ruby
lukec has quit [Quit: lukec]
shedd has quit [Ping timeout: 250 seconds]
tyl has joined #ruby
mary5030 has quit [Remote host closed the connection]
tylersmith has joined #ruby
drumusician has quit [Ping timeout: 246 seconds]
bogeyd6 has quit [Ping timeout: 241 seconds]
Jeticus has quit [Read error: Connection reset by peer]
coca_rails has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
reach has joined #ruby
bogeyd6 has joined #ruby
tylersmith has quit [Ping timeout: 272 seconds]
Tearan has joined #ruby
didge has joined #ruby
kitak has quit [Remote host closed the connection]
CaptainJet has joined #ruby
deol has joined #ruby
ehc has joined #ruby
mklappstuhl has quit [Ping timeout: 250 seconds]
siwica has joined #ruby
brunops has joined #ruby
dayepa has joined #ruby
deol has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
prc has quit [Quit: Leaving.]
rjhunter has joined #ruby
Barrin6 has joined #ruby
mildfate has quit [Quit: Leaving.]
dogweather has joined #ruby
<pipecloud> I use chruby, it doesn't require shims or rehashing
<pipecloud> With ruby-install
petey has joined #ruby
senayar has quit [Quit: Quitte]
LexicalScope has joined #ruby
CaptainJet has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
shedd has joined #ruby
colonolGron has quit [Quit: leaving]
ValicekB has joined #ruby
rjhunter has quit [Remote host closed the connection]
intuxicated has quit [Ping timeout: 240 seconds]
kcombs has quit [Ping timeout: 240 seconds]
Faris has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
robustus has quit [Ping timeout: 245 seconds]
peregrine81 has joined #ruby
robustus has joined #ruby
peregrine81 has quit [Max SendQ exceeded]
peregrine81 has joined #ruby
ValicekB has quit [Ping timeout: 246 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
peregrine81 has quit [Max SendQ exceeded]
peregrine81 has joined #ruby
peregrine81 has quit [Max SendQ exceeded]
peregrine81 has joined #ruby
Lewis has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
Barrin6 has quit [Quit: Leaving]
charliesome has joined #ruby
Xaitec has quit [Remote host closed the connection]
alexherb1 has quit [Quit: WeeChat 0.4.3-dev]
joaoh82 has joined #ruby
Faris has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
tharindu has joined #ruby
Lewis has quit [Ping timeout: 272 seconds]
lethjakm1 has quit [Ping timeout: 246 seconds]
intuxicated has joined #ruby
L8D has joined #ruby
joaoh82 has quit [Ping timeout: 260 seconds]
lyanchih has joined #ruby
rjhunter has joined #ruby
ValicekB has joined #ruby
L8D has quit [Ping timeout: 248 seconds]
kcombs has joined #ruby
benlieb has joined #ruby
cj3kim has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhruvasagar has joined #ruby
havenwood has joined #ruby
jonathanwallace has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
ephemerian has quit [Quit: Leaving.]
charliesome has joined #ruby
dopie has joined #ruby
ewnd9 has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zastern> Potentially silly question, but anybody know of a good doc on how to pipe text INTO a ruby script? I'm not having good luck with The Googles.
tyl has joined #ruby
klaut has joined #ruby
reach has quit []
<zastern> ah STDIN maybe
maletor has joined #ruby
tylersmith has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
sergicles has joined #ruby
ambushsabre has joined #ruby
ValicekB has quit [Ping timeout: 252 seconds]
peregrine81 has quit []
rh1n0 has quit [Quit: -- I'm getting very tired --]
<zastern> hmm, not in an obvious way
klaut has quit [Ping timeout: 260 seconds]
lethjakm1 has joined #ruby
petey has quit []
mklappstuhl has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
coca_rails has joined #ruby
ambushsabre has quit [Client Quit]
reach has joined #ruby
ambushsabre has joined #ruby
flubba_ has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Operation timed out]
flubba has joined #ruby
deol has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
mklappstuhl has quit [Ping timeout: 241 seconds]
<havenwood> zastern: are you wanting to get input from stdin?
mary5030 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
cow_ has joined #ruby
ewnd9 has quit [Ping timeout: 246 seconds]
tatsu_ has joined #ruby
tatsu_ has quit [Client Quit]
<havenwood> zastern: Or: require 'io/console'; STDIN.getch
marr has quit [Ping timeout: 246 seconds]
tonni has quit [Read error: Connection reset by peer]
tonni_ has joined #ruby
aryaching has joined #ruby
flubba has quit [Ping timeout: 260 seconds]
deol has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 248 seconds]
<havenwood> zastern: Or are you actually looking to pipe, like IO#pipe?? Maybe explain more what you're thinking to have happen?
ValicekB has joined #ruby
tatsu has joined #ruby
maroloccio has quit [Ping timeout: 260 seconds]
xk_id has left #ruby ["
bricker`LA has quit [Quit: leaving]
<bnagy> zastern: ARGF works
ehc has quit [Quit: ehc]
ehc has joined #ruby
mastr has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: leaving]
Gooder` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
mercwithamouth has quit [Ping timeout: 264 seconds]
phipes has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 240 seconds]
<benlieb> Can anyone tell me why my rake lists the spec:models task, but then can't run it? https://gist.github.com/pixelterra/8090684
tobor_one has quit [Quit: tobor_one]
estebistec has joined #ruby
tobor_one has joined #ruby
kenrick has joined #ruby
coca_rails has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
ehc has quit [Ping timeout: 260 seconds]
tobor_one has quit [Client Quit]
dhruvasagar has joined #ruby
tyl has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
ehc has joined #ruby
ehc has quit [Client Quit]
colonolGron has joined #ruby
rjhunter has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
samuel02 has joined #ruby
siwica has quit [Quit: siwica]
deol has joined #ruby
ambushsabre has quit [Quit: rip]
osvico has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
peregrine81 has joined #ruby
samuel02 has quit [Ping timeout: 252 seconds]
peregrine81 has quit [Max SendQ exceeded]
tharindu_ has joined #ruby
benlieb has quit [Quit: benlieb]
peregrine81 has joined #ruby
tharindu has quit [Ping timeout: 260 seconds]
lukec has joined #ruby
ValicekB has joined #ruby
angusiguess has joined #ruby
tatsu has quit [Quit: Konversation terminated!]
joaoh82 has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
psyl0n has joined #ruby
virt|away has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
blandflakes has joined #ruby
ValicekB has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
okinomo has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
joaoh82 has quit [Ping timeout: 250 seconds]
kcombs has quit [Ping timeout: 240 seconds]
cbetta is now known as cbetta_afk
nari has joined #ruby
ambushsabre has joined #ruby
nanoyak has joined #ruby
ambushsabre has quit [Quit: rip]
ambushsabre has joined #ruby
ambushsabre has quit [Client Quit]
ValicekB has joined #ruby
Vivekananda has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ambushsabre has joined #ruby
tylersmith has joined #ruby
phipes has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
mklappstuhl has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
gja has joined #ruby
ambushsabre has quit [Quit: rip]
cow_ has quit [Remote host closed the connection]
deol has quit [Remote host closed the connection]
deol has joined #ruby
tropicalmug has joined #ruby
deol has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 272 seconds]
snath has quit [Remote host closed the connection]
cow_ has joined #ruby
<tropicalmug> is there a way to run python code from ruby? i've seen http://rubypython.rubyforge.org/ but i'd love to know if anyone has actually used it.
sheap has joined #ruby
aryaching_ has joined #ruby
ambushsabre has joined #ruby
frustrum has joined #ruby
randomnick_ has quit [Quit: Leaving]
peregrine81 has quit []
snath has joined #ruby
aryaching has quit [Ping timeout: 241 seconds]
conner has quit [Ping timeout: 252 seconds]
<pipecloud> tropicalmug: open3.
sheap has left #ruby [#ruby]
<tropicalmug> pipecloud thank you :)
<tropicalmug> {◕ ◡ ◕}
ValicekB has quit [Ping timeout: 264 seconds]
hrs has joined #ruby
coca_rails has joined #ruby
peregrine81 has joined #ruby
dylandog has joined #ruby
tylersmith has joined #ruby
reach has quit []
coca_rails has quit [Ping timeout: 245 seconds]
didge has quit [Ping timeout: 240 seconds]
Faris has joined #ruby
iio7 has joined #ruby
<iio7> I wanted to install a ruby program (have no ruby experience), but when I run it I get the following error: "Invalid gemspec in [/var/lib/gems/1.8/specifications/ZenTest-4.9.5.gemspec]: Illformed requirement ["< 3.0, >= 1.8"]", how do I solve that?
nobitanobi has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipecloud> iio7: I'd upgrade to the latest ruby.
tyl has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
Faris has quit [Read error: Connection reset by peer]
Faris has joined #ruby
colonolG1on has joined #ruby
hrs has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
shedd has quit [Remote host closed the connection]
Parker0 has joined #ruby
joaoh82 has joined #ruby
vlad_starkov has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
gja has quit [Quit: This computer has gone to sleep]
radic has quit [Disconnected by services]
radic_ has joined #ruby
rjhunter has joined #ruby
pierre1 has joined #ruby
phipes has quit [Remote host closed the connection]
<bahar_> hey guys, i'm on project euler problem #3 and have a question
tyl has quit [Ping timeout: 240 seconds]
lethjakm1 has quit [Ping timeout: 252 seconds]
<bahar_> it's "find the largest prime factor of number x"
iio7 has quit [Quit: Leaving]
joaoh82 has quit [Ping timeout: 248 seconds]
tyl has joined #ruby
<bahar_> i've been going back and forth, because what i've built so far, if i input the number 13195, will return 5, 7, 13, 29 (which are correct!) but also adds in 35 65 and 91 (which shouldn't be there
vlad_starkov has quit [Ping timeout: 248 seconds]
<bahar_> i put in a cheat, lines 10-12, "prime array.each do |x|; if x.prime; array <<x" but i was hoping to fix the program to just return primes only in the first place in lines 5-7... any ideas?
colonolG1on has quit [Quit: still dancing naked..yuhhuu]
nfk has quit [Quit: yawn]
kitak has joined #ruby
deol has joined #ruby
bklane has joined #ruby
antoniojasr has joined #ruby
agent_white has joined #ruby
araujo has quit [Quit: Leaving]
Faris has quit [Ping timeout: 272 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
tyl has quit [Ping timeout: 264 seconds]
tyl has joined #ruby
crazysim has quit [Max SendQ exceeded]
deol has quit [Remote host closed the connection]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
tropicalmug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tharindu_ has quit [Quit: Leaving...]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dylandog> anyone can suggest to me any book for learn ruby for web?
mklappstuhl has joined #ruby
ValicekB has joined #ruby
yacks has quit [Read error: Operation timed out]
yacks has joined #ruby
mklappstuhl has quit [Ping timeout: 260 seconds]
crazysim has joined #ruby
dkamioka has joined #ruby
antoniojasr has quit [Ping timeout: 264 seconds]
<dylandog> thank you
crazysim has quit [Max SendQ exceeded]
shedd has joined #ruby
aryaching has joined #ruby
crazysim has joined #ruby
didge has joined #ruby
deol has joined #ruby
ValicekB has quit [Ping timeout: 252 seconds]
dayepa has quit [Ping timeout: 245 seconds]
crazysim has quit [Max SendQ exceeded]
aryaching_ has quit [Ping timeout: 240 seconds]
shedd has quit [Ping timeout: 248 seconds]
udon has joined #ruby
diegoviola has joined #ruby
ace_striker has joined #ruby
tyl has joined #ruby
dkamioka_ has joined #ruby
subbyyy has joined #ruby
dkamioka has quit [Read error: Connection reset by peer]
grep_awesome has joined #ruby
blandflakes has quit [Quit: Leaving]
antoniojasr has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
samuel02 has joined #ruby
crazysim has joined #ruby
antoniojasr has quit [Remote host closed the connection]
TomRone has joined #ruby
dayepa has joined #ruby
dkamioka_ has quit [Ping timeout: 250 seconds]
coca_rails has joined #ruby
maletor has joined #ruby
flubba has joined #ruby
samuel02 has quit [Ping timeout: 264 seconds]
maletor has quit [Client Quit]
diegoviola has quit [Ping timeout: 250 seconds]
cow_ has quit [Remote host closed the connection]
Guest16644 has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
DouweM has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
vikhyat has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
tropicalmug has joined #ruby
lethjakm1 has joined #ruby
gquental has quit [Ping timeout: 252 seconds]
Guest16644 has quit [Changing host]
Guest16644 has joined #ruby
Guest16644 is now known as diegoviola
braincra- has quit [Quit: bye bye]
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
braincrash has joined #ruby
joaoh82 has joined #ruby
benlieb has quit [Quit: benlieb]
tonni_ has quit [Read error: Connection reset by peer]
Barrin6 has joined #ruby
tonni has joined #ruby
dkamioka has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
joaoh82 has quit [Ping timeout: 260 seconds]
estebistec has quit [Remote host closed the connection]
vikhyat has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
peregrine81 has quit []
fire has joined #ruby
brunops has quit [Ping timeout: 250 seconds]
peregrine81 has joined #ruby
gquental has joined #ruby
binford has quit [Remote host closed the connection]
phipes has joined #ruby
estebistec has joined #ruby
studzinsk has joined #ruby
fuhgeddaboudit has joined #ruby
dseitz has joined #ruby
dseitz has quit [Max SendQ exceeded]
dseitz has joined #ruby
dseitz has quit [Max SendQ exceeded]
sayan has joined #ruby
cj3kim has quit [Remote host closed the connection]
dseitz has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
estebistec has quit [Remote host closed the connection]
estebistec has joined #ruby
psyl0n has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
estebistec has quit [Ping timeout: 250 seconds]
brunops has joined #ruby
pierre1 has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Ping timeout: 250 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
shedd has joined #ruby
chomskiii has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
shedd has quit [Ping timeout: 246 seconds]
mj12albert has joined #ruby
bklane has quit [Quit: Leaving...]
bluOxigen has joined #ruby
okinomo has quit [Ping timeout: 272 seconds]
kitak has quit [Ping timeout: 245 seconds]
okinomo has joined #ruby
_justin has joined #ruby
stevenhaddox_ has joined #ruby
hakunin has joined #ruby
_justin has quit [Client Quit]
ValicekB has joined #ruby
cow_ has joined #ruby
stevenhaddox_ has quit [Quit: Sayonora]
dayepa has quit [Ping timeout: 245 seconds]
ss_ has quit [Remote host closed the connection]
coca_rails has joined #ruby
dogweather has quit [Remote host closed the connection]
lethjakm1 has quit [Ping timeout: 252 seconds]
lethjakm1 has joined #ruby
cow_ has quit [Ping timeout: 260 seconds]
angusiguess has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
Jake232_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ambushsabre has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 245 seconds]
ambushsabre has joined #ruby
yacks has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
crazysim has quit [Max SendQ exceeded]
Jason has joined #ruby
<Jason> hi all - i'm trying to install spree via gem install spree.
<Jason> i run in to a strange error.
<Jason> activemerchant-1.42.2 requires activesupport (< 5.0.0, >= 2.3.14) but it conflicted: Activated activesupport-4.0.2 instead of (= 4.1.0.beta1) via: rails-4.1.0.beta1, deface-1.0.0, spree_core-2.1.3, spree-2.1.3
crazysim has joined #ruby
dopie has quit [Ping timeout: 246 seconds]
dayepa has joined #ruby
dhruvasagar has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
cow_ has joined #ruby
lyanchih_ has joined #ruby
b00stfr3ak has joined #ruby
brennanMKE has quit []
crazysim has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
crazysim has joined #ruby
tharindu has joined #ruby
peregrine81 has quit []
joaoh82 has joined #ruby
brennanMKE has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
dylandog has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Ping timeout: 260 seconds]
Megtastique has quit []
kitak has joined #ruby
maroloccio has joined #ruby
CaptainJet has quit []
aagdbl has joined #ruby
Jetchisel has joined #ruby
ambushsabre has quit [Quit: rip]
lukec has quit [Quit: lukec]
udon has quit [Ping timeout: 250 seconds]
cow_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
mklappstuhl has joined #ruby
frustrum has quit [Ping timeout: 272 seconds]
pierre1 has joined #ruby
samuel02 has joined #ruby
unstable has joined #ruby
<unstable> ERROR: Could not find a valid gem 'qtruby4' (>= 0), here is why: Found qtruby4 (2.1.0), but was for platform mswin32
<unstable> I wanted to play around with userland ruby GUI apps for fun. Is this commonly done? or insane?
<unstable> I know large parts of ubuntu use python with some widget library.
mklappstuhl has quit [Ping timeout: 260 seconds]
shedd has joined #ruby
mastr has joined #ruby
ace_striker has quit [Quit: Page closed]
samuel02 has quit [Ping timeout: 240 seconds]
grep_awesome is now known as grep_away
shedd has quit [Ping timeout: 240 seconds]
ss_ has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 250 seconds]
tyl has quit [Ping timeout: 240 seconds]
cow_ has joined #ruby
iliketur_ has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
tyl has joined #ruby
iliketur_ has joined #ruby
akitada_ is now known as akitada
coca_rails has joined #ruby
angusiguess has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
dkamioka has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
deol has quit [Remote host closed the connection]
fomatin has joined #ruby
deol has joined #ruby
dkamioka has quit [Read error: No route to host]
dkamioka has joined #ruby
fomatin has quit [Max SendQ exceeded]
BrixSat has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 240 seconds]
lemonsparrow has joined #ruby
phipes has quit [Remote host closed the connection]
BrixSat has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has joined #ruby
trolling is now known as prophile
prophile has quit [Changing host]
prophile has joined #ruby
dkamioka has quit [Read error: No route to host]
dkamioka has joined #ruby
pierre1 has quit [Quit: Leaving]
cj3kim has quit [Remote host closed the connection]
w|t has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
phansch has joined #ruby
<dseitz> The problem with Python/Ruby as primary language is that the tooklit bindings fall out of spec quite often, sometimes projects just die without notice
Jason has left #ruby [#ruby]
w|t has joined #ruby
<dseitz> Usually these happen when GTK or Qt make major version transitions and the contributors the bindings projects can feel a bit overwhelmed [it'll literally be like starting over]
joaoh82 has joined #ruby
rh1n0 has joined #ruby
<dseitz> JRuby might be a nice option still
abra has joined #ruby
cj3kim has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
abra has quit [Client Quit]
w|t has quit [Ping timeout: 264 seconds]
joaoh82 has quit [Ping timeout: 246 seconds]
<pipecloud> Shoes4 is jruby and while it's not 100% implemented, it's pretty neat.
w|t has joined #ruby
<dseitz> oh cool
tylersmith has quit [Ping timeout: 248 seconds]
phipes has joined #ruby
OdNairy has joined #ruby
cj3kim has quit [Remote host closed the connection]
phipes has quit [Read error: Connection reset by peer]
<dseitz> RubyMotion is fun to play with; but it ties you to one platform
phipes has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
sayan has joined #ruby
Barrin6 has quit [Quit: Leaving]
w|t has quit [Ping timeout: 252 seconds]
cj3kim has joined #ruby
<jalcine> unstable: ubuntu uses qt with python or python-gtk2
w|t has joined #ruby
<unstable> jalcine: right, are there people doing the same thing with ruby?
<jalcine> not that much ruby in there
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<jalcine> not so much
<jalcine> afaik
<jalcine> there's a bit of work with ruby in KDE/Qt with SMOKE but it's probably a bit behind (using Qt 4.7 as opposed to Qt 4.8.4)
<dseitz> qtbindings is still being maintained
<dseitz> and suports 4.8.5 I think
aryaching has quit [Ping timeout: 264 seconds]
<unstable> Well if Canonical is using pyqt all over the place in their gui, there is a good change the toolkit bindings will stay up to date in spec quite often.
Kricir has joined #ruby
<unstable> Though if no one is updating ruby, it seems ill advised to use that.
<unstable> egg/chicken
conner has joined #ruby
maroloccio has quit [Ping timeout: 248 seconds]
w|t has quit [Ping timeout: 272 seconds]
browndawg has joined #ruby
ss_ has quit [Remote host closed the connection]
kiki_lamb has quit [Quit: leaving]
oznik-o has joined #ruby
w|t has joined #ruby
katherinem13 has joined #ruby
noop has joined #ruby
ss_ has joined #ruby
mklappstuhl has joined #ruby
seemant has left #ruby [#ruby]
tyl has quit [Ping timeout: 240 seconds]
w|t has quit [Ping timeout: 248 seconds]
w|t has joined #ruby
reach has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
tyl has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
cj3kim has quit [Remote host closed the connection]
shedd has joined #ruby
dhruvasa1ar has joined #ruby
katherinem13 has quit [Quit: Lost terminal]
katherinem13 has joined #ruby
katherinem13 is now known as kiki_lamb
gja has joined #ruby
w|t has quit [Ping timeout: 272 seconds]
w|t has joined #ruby
shedd has quit [Ping timeout: 248 seconds]
<RubyPanther> The last thing I want is software that gets a lot of updates
<RubyPanther> choose yer features already, I say.
psyl0n has joined #ruby
dhruvasa1ar has quit [Quit: leaving]
w|t has quit [Ping timeout: 246 seconds]
kostine has quit [Remote host closed the connection]
maroloccio has joined #ruby
araujo has joined #ruby
w|t has joined #ruby
aep has quit [Ping timeout: 246 seconds]
rh1n0 has quit [Quit: -- I'm getting very tired --]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
coca_rails has joined #ruby
bartj3 has quit [Ping timeout: 245 seconds]
w|t has quit [Ping timeout: 246 seconds]
primenum has quit [Ping timeout: 272 seconds]
w|t has joined #ruby
sassamo has quit [Ping timeout: 272 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
jetblack has joined #ruby
cbetta_afk is now known as cbetta
maroloccio has quit [Ping timeout: 272 seconds]
jetblack has quit [Client Quit]
vlad_starkov has joined #ruby
maroloccio has joined #ruby
mengu has quit [Remote host closed the connection]
joaoh82 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mastr has quit [Ping timeout: 252 seconds]
hunterr986 has quit [Quit: Leaving.]
hunterr986 has joined #ruby
joaoh82 has quit [Ping timeout: 250 seconds]
zipace has quit [Read error: Operation timed out]
samuel02 has joined #ruby
fire has quit [Ping timeout: 240 seconds]
oerhoert has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ValicekB has joined #ruby
mobius has joined #ruby
samuel02 has quit [Ping timeout: 248 seconds]
gja has joined #ruby
lewix has quit [Remote host closed the connection]
sergicles has quit [Quit: sergicles]
jchristi has quit [Ping timeout: 240 seconds]
Tearan has quit [Read error: Connection reset by peer]
BraddPitt has quit [Quit: Leaving]
mklappstuhl has joined #ruby
BraddPitt has joined #ruby
dhruvasagar has joined #ruby
Beoran__ has joined #ruby
zipace has joined #ruby
zipace has joined #ruby
zipace has quit [Changing host]
mklappstuhl has quit [Ping timeout: 248 seconds]
shedd has joined #ruby
dhruvasagar has left #ruby [#ruby]
Beoran_ has quit [Ping timeout: 264 seconds]
oerhoert has quit [Read error: Connection reset by peer]
psyl0n has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
fire has joined #ruby
kiki_lamb has quit [Disconnected by services]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
clamstar_ has joined #ruby
coca_rails has joined #ruby
mjburgess has joined #ruby
S0da has joined #ruby
ValicekB has quit [Read error: Operation timed out]
coca_rails has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
holderbaum has joined #ruby
fire has quit [Ping timeout: 240 seconds]
St_Marx has quit [Quit: Ex-Chat]
kostine has joined #ruby
tobago has joined #ruby
keen_ has joined #ruby
subbyyy_ has quit [Ping timeout: 248 seconds]
samuel02 has joined #ruby
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
quazimodo has joined #ruby
relix has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
wjimenez5271 has joined #ruby
<quazimodo> so i just read in a jpg using IO and i noticed it stored it in memory as a string
<quazimodo> is that supposed to be the way to deal with blobs?
kostine has quit [Ping timeout: 246 seconds]
<pipecloud> As opposed to a buffer?
samuel02 has quit [Client Quit]
<quazimodo> ?? idno
deol has quit [Remote host closed the connection]
<pipecloud> Then what are you questioning?
<quazimodo> what's the correct way to deal with larger binary objects
<pipecloud> All data is just binary, so surely you had some kind of question or curiousity.
<pipecloud> quazimodo: Depends on how you'll be using it.
kitak has quit [Remote host closed the connection]
dkamioka has quit [Ping timeout: 250 seconds]
<quazimodo> pipecloud: well i have no idea. Am i supposed to allocate a space in memory and put the data there? what if it's a 3gig file, etc
kitak has joined #ruby
<pipecloud> quazimodo: You don't have to allocate memory, ruby does it for you. This isn't C
<quazimodo> I have no introduction to dealing with this sort of thing in ruby
<quazimodo> pipecloud: what class should the input data be?
<pipecloud> quazimodo: How will you be using this file?
<pipecloud> quazimodo: Does it matter?
<quazimodo> *belong to
<quazimodo> pipecloud: atm im using popen to pass it to filters and recollect the data
<pipecloud> quazimodo: So the first question I'd ask is "Do I have to read it all into memory, or can I stream it?"
tropicalmug has quit [Quit: Textual IRC Client: www.textualapp.com]
<quazimodo> specifically, it's a set of images that I read into memory, send to image magick convert, then read back into memory. this is the only point I have to hold onto it
ValicekB has joined #ruby
<pipecloud> So you're not persisting to disk between converting it?
<quazimodo> nope
fire has joined #ruby
brunops has quit [Quit: leaving]
nanoyak has joined #ruby
<quazimodo> hrm found a doc
<pipecloud> Are you writing the filters in ruby?
<quazimodo> pipecloud: oh, no.
<quazimodo> but I'd like to just to know how
<quazimodo> later on
<pipecloud> Is there any point to reading the files into memory just to pass them to your imagemagick/
<pipecloud> ?
fella5s has joined #ruby
<quazimodo> pipecloud: probably not, and maybe I'll remove that from the program. But aside from solving the pracitcal problems I really do want to know how to 'deal' with blobs in general
joaoh82 has joined #ruby
<quazimodo> from your questions its clear that I don't know enough to ask sensical questions, so I'll keep reading
<pipecloud> quazimodo: It depends on how you intend to use them. The first part is reading them into memory or streaming the chunks. See File vs IO.
<pipecloud> I think File even has the chunky stuff.
<quazimodo> yeah maybe streaming it into pipes makes more sense sometimes
lemonsparrow has quit [Ping timeout: 272 seconds]
<pipecloud> Well, pipes or not.
<shevy> to pipes or not to pipes
<shevy> that is the question
<quazimodo> yep
<quazimodo> see I thought there might be a data type specifically for dealing with binary data in the form of hexadecimal
<quazimodo> apparently not
<pipecloud> Why would you care unless you're operating on that data?
vlad_starkov has joined #ruby
<pipecloud> You aren't, you're just (for some unknowable reason) reading it into memory and passing it into another process only to have the result read back into memory (for yet again some unknowable reason)
joaoh82 has quit [Ping timeout: 250 seconds]
gja has quit [Quit: This computer has gone to sleep]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hunterr986 has quit [Ping timeout: 272 seconds]
fire has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
amclain has quit [Quit: Leaving]
<shevy> now you made me curious about the unknowable reason
<shevy> I wanna know!
didge has quit [Quit: goodbye]
<Nilium> The unknowable reason is kitties.
<pipecloud> kitties with itty bitty...
<Nilium> Paws.
<shevy> hmm
<shevy> you know a lot about kitties
predator117 has quit [Ping timeout: 260 seconds]
aep has joined #ruby
prc has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conner has quit [Ping timeout: 250 seconds]
kenrick has quit [Ping timeout: 272 seconds]
phipes has quit [Remote host closed the connection]
keen_ has quit [Remote host closed the connection]
dkamioka has joined #ruby
keen_ has joined #ruby
claymore has joined #ruby
dkamioka_ has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
dkamioka has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
jle` is now known as jle_
sayan has joined #ruby
xiphias has joined #ruby
tharindu is now known as tharindu|away
jle_ is now known as jle`
drumusician has joined #ruby
dkamioka_ has quit [Ping timeout: 264 seconds]
tharindu|away is now known as tharindu
mjburgess has quit [Ping timeout: 246 seconds]
tyl has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
fire has joined #ruby
olivier_bK has joined #ruby
xiphias has joined #ruby
keen_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
keen_ has joined #ruby
predator117 has joined #ruby
reach has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
Azure has quit [Quit: My MBP went to sleep.]
<pontiki> the itty bitty kitty committee rules all
predator117 has quit [Remote host closed the connection]
xiphias has quit [Ping timeout: 240 seconds]
<rjhunter> the witty ditty about the gritty city is on the settee
<pontiki> ++
coca_rails has joined #ruby
clamstar_ has quit [Quit: Computer has gone to sleep.]
xiphias has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
xiphias has quit [Changing host]
xiphias has joined #ruby
parduse has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
parduse has joined #ruby
workmad3 has joined #ruby
<rjhunter> (composed, admittedly, with some help from `egrep '^[^aeiou]+it+(i|ee|y)$' /usr/share/dict/words`)
drago777 has quit [Ping timeout: 240 seconds]
h0rrorvacui has quit [Ping timeout: 252 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
dkamioka has joined #ruby
wjimenez5271 has quit [Ping timeout: 272 seconds]
dkamioka has quit [Read error: No route to host]
subbyyy_ has joined #ruby
gregoriokusowski has joined #ruby
drago777 has joined #ruby
dkamioka has joined #ruby
xjiujiu has joined #ruby
Xeago has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
subbyyy has quit [Ping timeout: 272 seconds]
guardianx has joined #ruby
ephemerian has joined #ruby
dkamioka has quit [Ping timeout: 250 seconds]
RoryHughes has joined #ruby
noop has quit [Ping timeout: 252 seconds]
ua_ has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
<shevy> cheaaaaaaater
RoryHughes has joined #ruby
parduse is now known as Guest57832
Guest57832 has quit [Killed (dickson.freenode.net (Nickname regained by services))]
parduse has joined #ruby
camilasan has quit [Read error: No route to host]
camilasa_ has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
codenapper has joined #ruby
flubba has quit [Remote host closed the connection]
flubba has joined #ruby
rjhunter has quit [Remote host closed the connection]
ua has quit [Ping timeout: 264 seconds]
shedd has joined #ruby
keen_ has quit [Remote host closed the connection]
roolo has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
RoryHughes has joined #ruby
joaoh82 has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
parduse has quit [Ping timeout: 272 seconds]
flubba has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
blaxter_ has joined #ruby
camilasa_ has quit []
RoryHughes has joined #ruby
parduse has joined #ruby
shedd has quit [Ping timeout: 250 seconds]
joaoh82 has quit [Ping timeout: 240 seconds]
zigomir_ has joined #ruby
brennanMKE has joined #ruby
gauteh has joined #ruby
Elhu has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
parduse has quit [Ping timeout: 248 seconds]
cbetta is now known as cbetta_afk
zigomir has left #ruby [#ruby]
parduse has joined #ruby
zigomir_ is now known as zigomir
brennanMKE has quit [Ping timeout: 241 seconds]
jeffreyio2 has joined #ruby
noop has joined #ruby
agent_white has quit [Quit: gnight all]
jeffreyio2_ has joined #ruby
maddog_ has quit [Ping timeout: 252 seconds]
jeffreyio2__ has joined #ruby
flubba has joined #ruby
txdv has quit [Quit: No Ping reply in 180 seconds.]
jeffreyio2_ has quit [Remote host closed the connection]
txdv has joined #ruby
jeffreyio2 has quit [Read error: Connection reset by peer]
jeffreyio2__ has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreyio2 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banghouse2 has quit [Quit: What if the hokey pokey really is what it's all about?]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aagdbl has quit [Ping timeout: 246 seconds]
skaflem has joined #ruby
Xeago has quit [Remote host closed the connection]
maddog_ has joined #ruby
fijimunkii has joined #ruby
S0da has quit [Remote host closed the connection]
Xeago has joined #ruby
zipper has joined #ruby
arefaslani has joined #ruby
mklappstuhl has joined #ruby
spider-mario has joined #ruby
dapz has quit [Ping timeout: 250 seconds]
mklappstuhl has quit [Ping timeout: 250 seconds]
obs has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars` has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
Gestahlt has joined #ruby
<Gestahlt> Hi
vlad_starkov has quit [Remote host closed the connection]
aagdbl has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
shredding has joined #ruby
fijimunkii has quit [Quit: leaving]
subbyyy_ has quit [Quit: none 0.3.9.2]
Advocation has joined #ruby
keen_ has joined #ruby
coca_rails has joined #ruby
wildroman2 has joined #ruby
jibi has quit [Quit: ZNC - http://znc.in]
kitak has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
kitak_ has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
ior3k has joined #ruby
zipper is now known as conceptual_hygen
ior3k has left #ruby [#ruby]
jibi has joined #ruby
conceptual_hygen is now known as conceptualHygene
coca_rails has quit [Ping timeout: 245 seconds]
djdb has joined #ruby
b00stfr3ak has quit [Quit: Lost terminal]
marr has joined #ruby
Gonzih has joined #ruby
MrZYX|off is now known as MrZYX
dkamioka has joined #ruby
rippa has joined #ruby
klaut has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
OnkelTem has joined #ruby
<OnkelTem> Hi all. I don't know Ruby, but I've got some problem with Compass. http://pastebin.com/raw.php?i=LgjaAmCv - this is the output.
<OnkelTem> What does it mean: can't convert Array into String?
xjiujiu has quit [Read error: Connection reset by peer]
wildroman2 has quit [Read error: Connection reset by peer]
<MrZYX> that it gets passed an array where it expects a string
wildroman2 has joined #ruby
<OnkelTem> The correspoinding code is here: http://pastebin.com/D33WVPJj
dkamioka has quit [Ping timeout: 272 seconds]
xjiujiu has joined #ruby
<OnkelTem> 27th line is: image_names.map { |f| File.basename(f, '.png') }
robbyoconnor has quit [Excess Flood]
icedp has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
<OnkelTem> MrZYX: thanks, that I know :) You are too fast )
xsdg has quit [Ping timeout: 250 seconds]
<MrZYX> so image_names seems to be an array of arrays rather than an array of strings as it expects
<OnkelTem> Ah
gja has joined #ruby
<OnkelTem> This is how I invoke this function: sprite-map("../../../files/styles/menu_icon/public/menu_icons/*.png");
Hamled has quit [Ping timeout: 272 seconds]
St_Marx has joined #ruby
error404 has quit [Ping timeout: 272 seconds]
Guest97410 has quit [Ping timeout: 272 seconds]
naquad has quit [Ping timeout: 272 seconds]
Cope has quit [Ping timeout: 272 seconds]
stopbit has quit [Ping timeout: 272 seconds]
terlar has quit [Ping timeout: 272 seconds]
<OnkelTem> So I pass it a string...
Hamled has joined #ruby
xsdg has joined #ruby
stopbit has joined #ruby
Cope has joined #ruby
DrForr has quit [Remote host closed the connection]
terlar has joined #ruby
error404 has joined #ruby
<OnkelTem> (Oh, this was annother function, my fault)
monomyth has quit [Remote host closed the connection]
shoMo has quit [Remote host closed the connection]
bahar_ has quit [Ping timeout: 272 seconds]
DrForr has joined #ruby
monomyth has joined #ruby
destructure has quit [Remote host closed the connection]
shoMo has joined #ruby
<OnkelTem> MrZYX: thanks, looks very similar!
destructure has joined #ruby
charliesome has joined #ruby
icedp has joined #ruby
bahar has joined #ruby
lyanchih_ has quit [Ping timeout: 272 seconds]
naquad has joined #ruby
Guest97410 has joined #ruby
rumi has joined #ruby
rumi has quit [Client Quit]
rippa has quit [Ping timeout: 248 seconds]
tyl has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
browndawg has quit [Ping timeout: 240 seconds]
davorb has quit [Ping timeout: 240 seconds]
ununPentium has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 240 seconds]
ununPentium has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
gja has quit [Ping timeout: 248 seconds]
Mon_Ouie has joined #ruby
TomRone has joined #ruby
joaoh82 has joined #ruby
gja has joined #ruby
rdark has joined #ruby
keen_ is now known as blackenedgold
davorb has joined #ruby
blackenedgold has left #ruby [#ruby]
p4d4w4n has joined #ruby
browndawg has joined #ruby
drago777 has joined #ruby
mojjojo has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
arefasla_ has joined #ruby
joaoh82 has quit [Ping timeout: 250 seconds]
brennanMKE has joined #ruby
codenapper has quit [Quit: codenapper]
noop has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
matchaw has joined #ruby
TomRone has joined #ruby
arefaslani has quit [Ping timeout: 252 seconds]
blaxter_ is now known as blaxter
brennanMKE has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
<Gestahlt> I have a question: I got a log variable which gets filled and appended from a method which runs in a while loop in a seperate thread
<Gestahlt> Now i need to clear it from time to time
<Gestahlt> I can get the output
<Gestahlt> but i cannot clear it (by log_var = String.new
relix has joined #ruby
<Gestahlt> Do you guys have an idea how to do this?
<MrZYX> make a class
floyd20183 has joined #ruby
<Gestahlt> I got a class. The attr accessor is :log_var
<Hanmac1> you need self.log_var =
Xeago has quit [Ping timeout: 240 seconds]
<MrZYX> class Log; attr_reader :log; def initialize; clear; end; def << msg; @log << msg; end; def clear; @log = ""; end; end;
Xeago has joined #ruby
<MrZYX> + using a mutex as needed
xjiujiu has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
mengu has quit [Remote host closed the connection]
<Gestahlt> ok will try
xjiujiu has joined #ruby
Emmanuel_Chanel has joined #ruby
RoryHughes has quit []
cow_ has quit [Remote host closed the connection]
cow_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
noop has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
freggles has joined #ruby
Gonzih has quit [Ping timeout: 250 seconds]
cow_ has quit [Ping timeout: 264 seconds]
mjburgess has joined #ruby
mklappstuhl has joined #ruby
vlad_starkov has joined #ruby
ss_ has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Ping timeout: 252 seconds]
bashdy has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
flatr0ze_ has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
aganov has joined #ruby
Gonzih has joined #ruby
radic_ has quit [Quit: Verlassend]
ss_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nomenkun has joined #ruby
m8 has joined #ruby
coca_rails has joined #ruby
aganov has quit [Quit: aganov]
culturel_ has joined #ruby
aganov has joined #ruby
RoryHughes has joined #ruby
Mars` has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
browndawg has quit [Quit: Leaving.]
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
joaoh82 has joined #ruby
joaoh82 has quit [Client Quit]
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
joaoh82 has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
Mars` has quit [Ping timeout: 272 seconds]
RoryHughes has joined #ruby
hunterr986 has joined #ruby
dkamioka has joined #ruby
okinomo has quit [Ping timeout: 250 seconds]
mengu has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
jamblack has joined #ruby
mojjojo has quit [Quit: mojjojo]
kep has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
dkamioka has quit [Ping timeout: 252 seconds]
kep has quit [Client Quit]
kep has joined #ruby
joaoh82 has quit []
joaoh82 has joined #ruby
plotter has quit [Ping timeout: 245 seconds]
hunterr986 has quit [Remote host closed the connection]
AlSquire has joined #ruby
aagdbl has quit [Ping timeout: 252 seconds]
flubba has quit [Remote host closed the connection]
flubba has joined #ruby
cow_ has joined #ruby
RoryHughes has quit []
SHyx0rmZ has joined #ruby
mojjojo has joined #ruby
RoryHughes has joined #ruby
freggles has quit [Read error: Connection reset by peer]
freggles has joined #ruby
flubba has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
plotter has joined #ruby
browndawg has left #ruby [#ruby]
brennanMKE has joined #ruby
alexherbo2 has joined #ruby
freggles has quit [Read error: Connection reset by peer]
plotter has quit [Ping timeout: 245 seconds]
pedda has joined #ruby
michael_lee has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
okinomo has joined #ruby
mklappstuhl has joined #ruby
plotter has joined #ruby
rjhunter has joined #ruby
DouweM has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
shime has joined #ruby
radic has joined #ruby
kep is now known as ladyboy
okinomo has joined #ruby
radic has quit [Quit: ZNC - http://znc.in]
aagdbl has joined #ruby
radic has joined #ruby
robertjpayne has joined #ruby
freggles has joined #ruby
iMe has quit [Quit: Bye Bye]
rjhunter has quit [Ping timeout: 272 seconds]
bashdy has quit [Ping timeout: 246 seconds]
kitak has joined #ruby
tyl has quit [Ping timeout: 240 seconds]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
mercwithamouth has joined #ruby
bashdy has joined #ruby
tyl has joined #ruby
OdNairy has joined #ruby
<robertjpayne> While developing a gem is there any easy way to sort of use the same workflow you would as if the gem were installed?
gja has joined #ruby
gja has quit [Client Quit]
gja has joined #ruby
cow_ has quit [Remote host closed the connection]
<MrZYX> if the target application is using bundler, there's the path option
wildroman2 has quit [Remote host closed the connection]
<MrZYX> if not, manually modify $LOAD_PATH to include it
vlad_starkov has joined #ruby
gauteh has quit [Ping timeout: 250 seconds]
threesome has joined #ruby
aganov has quit [Quit: Leaving]
dkamioka has joined #ruby
pedda has quit [Ping timeout: 240 seconds]
coca_rails has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
jalcine is now known as Agent_Smith
Agent_Smith is now known as group
group is now known as Agent_Smith
ryanRT_ has quit [Quit: Ex-Chat]
Agent_Smith is now known as jalcine
pedda has joined #ruby
threesome has quit [Max SendQ exceeded]
bashdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
plotter has quit [Ping timeout: 245 seconds]
roolo has quit [Remote host closed the connection]
dkamioka has quit [Ping timeout: 272 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
Bofu2U has joined #ruby
drumusician has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
kung has joined #ruby
chrisja has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
gauteh has joined #ruby
cow_ has joined #ruby
psyl0n has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
sayan has quit [Ping timeout: 264 seconds]
larssmit has joined #ruby
TomRone has joined #ruby
bashdy has joined #ruby
amedeiros has joined #ruby
cmedeiros has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
cmedeiros has quit [Max SendQ exceeded]
cmedeiros has joined #ruby
intuxicated has quit [Read error: No route to host]
gja has joined #ruby
osvico has joined #ruby
gja has quit [Client Quit]
mklappstuhl has quit [Remote host closed the connection]
siwica has joined #ruby
bashdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has joined #ruby
vikhyat_ has joined #ruby
lkba has joined #ruby
pootler has joined #ruby
gauteh has quit [Ping timeout: 250 seconds]
mklappstuhl has joined #ruby
rippa has joined #ruby
rjhunter has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
ewnd9 has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
St_Marx has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
St_Marx has joined #ruby
monkegjinni has joined #ruby
mojjojo has quit [Quit: mojjojo]
TomRone has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
freggles has quit [Remote host closed the connection]
freggles has joined #ruby
freggles has quit [Changing host]
freggles has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has joined #ruby
freggles has quit [Remote host closed the connection]
freggles has joined #ruby
jamblack has quit [Quit: jamblack]
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
jamblack has joined #ruby
gja has joined #ruby
cbetta_afk is now known as cbetta
freggles has quit [Read error: Connection reset by peer]
freggles has joined #ruby
prc has quit [Quit: Leaving.]
agjacome has joined #ruby
cbetta is now known as cbetta_afk
gigetoo has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
gja has quit [Quit: This computer has gone to sleep]
gigetoo has joined #ruby
coca_rails has joined #ruby
rjhunter has quit [Remote host closed the connection]
shredding has joined #ruby
browndawg has joined #ruby
freggles has quit [Read error: Connection reset by peer]
coca_rails has quit [Ping timeout: 245 seconds]
mklappstuhl has quit [Remote host closed the connection]
Vivekananda has quit [Quit: Ex-Chat]
tehKitten has joined #ruby
freggles has joined #ruby
ior3k has joined #ruby
ior3k has left #ruby [#ruby]
conceptualHygene has quit [Ping timeout: 248 seconds]
drumusician has joined #ruby
freggles has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
aryaching has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
freggles has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
shredding has joined #ruby
flame_ has joined #ruby
studzinsk has quit [Remote host closed the connection]
vikhyat_ has quit [Remote host closed the connection]
Advocation has joined #ruby
shredding has quit [Quit: shredding]
lewix has joined #ruby
Advocation has quit [Client Quit]
freggles has quit [Ping timeout: 246 seconds]
nomenkun has quit [Ping timeout: 248 seconds]
floyd20183 has left #ruby [#ruby]
conceptualHygene has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
dagen has quit []
bashdy has joined #ruby
drumusician has quit [Ping timeout: 246 seconds]
freggles has joined #ruby
freggles has joined #ruby
freggles has quit [Changing host]
brennanMKE has quit [Ping timeout: 250 seconds]
zarul has quit [Ping timeout: 240 seconds]
ArchBeOS-work has quit [Quit: Leaving]
zarul has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
keen_ has joined #ruby
gja has joined #ruby
okinomo has joined #ruby
ffranz has joined #ruby
vlad_starkov has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
freggles has quit [Remote host closed the connection]
vpretzel has joined #ruby
S0da has joined #ruby
ckinni has joined #ruby
vikhyat has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joaoh82 has quit []
drumusician has joined #ruby
maroloccio has quit [Ping timeout: 246 seconds]
klcant102 has joined #ruby
vlad_starkov has joined #ruby
flame_ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
okinomo has quit [Ping timeout: 250 seconds]
Bira has joined #ruby
crazysim has quit [Excess Flood]
tharindu has quit [Quit: Leaving...]
okinomo has joined #ruby
ss_ has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
cmedeiros has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
devdazed has joined #ruby
sayan has quit [Read error: Connection reset by peer]
bashdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aagdbl has quit [Quit: Leaving.]
sayan has joined #ruby
horofox has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
rootshift has joined #ruby
Elhu has joined #ruby
okinomo has quit [Quit: Lost terminal]
yacks has joined #ruby
mlpinit has joined #ruby
breakingthings has joined #ruby
coca_rails has joined #ruby
Advocation has joined #ruby
workmad3 has joined #ruby
angusiguess has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
mojjojo has quit [Quit: mojjojo]
coca_rails has quit [Ping timeout: 245 seconds]
crazysim has joined #ruby
joaoh82 has joined #ruby
klaut has quit [Remote host closed the connection]
nomenkun has joined #ruby
crazysim has quit [Max SendQ exceeded]
habanany has joined #ruby
arefasla_ has quit [Ping timeout: 248 seconds]
crazysim has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
kwertie has joined #ruby
Guest97410 has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
Guest97410 has joined #ruby
<kwertie> is there some sort of operation which would allow me to more concisely express this? new_value = get_value(); if new_value ne old_value then print "new"; else print "same"; end; old_value = new_value
<kwertie> it seems to be a very common pattern
L8D has joined #ruby
freezey has joined #ruby
atno has joined #ruby
crazysim has quit [Max SendQ exceeded]
drago777 has joined #ruby
lewix_ has joined #ruby
rootshift has quit [Quit: rootshift]
crazysim has joined #ruby
<shevy> kwertie ternary operator
<kwertie> how would you directly translate that example?
<kwertie> i can't see how the ternary op would come into it
<kwertie> oh, hang on
<shevy> dunno, I dont use the ternary operator myself
Elhu has quit [Quit: Computer has gone to sleep.]
<Hanmac1> something like print(new_value != old_value ? "new" : "same")
siwica has quit [Remote host closed the connection]
crazysim has quit [Max SendQ exceeded]
<shevy> you wanted to be more concise so we need to find a solution where you can chop off chars from your code here ;)
ewnd9 has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
rjhunter has quit [Ping timeout: 250 seconds]
crazysim has joined #ruby
Advocation has quit [Quit: Advocation]
gja has quit [Quit: This computer has gone to sleep]
bluenemo has joined #ruby
freezey has quit [Ping timeout: 272 seconds]
nowthatsamatt has joined #ruby
<shevy> god
diegoviola has quit [Quit: WeeChat 0.4.2]
cmedeiros has joined #ruby
Squarepy has joined #ruby
samsonasu has joined #ruby
<shevy> it sucks that the first one to register at rubygems.org gets to decide which name to use
<shevy> and then prevent everyone else from being able to use that name
<shevy> :(
samsonasu has quit [Client Quit]
<deepy> shevy: can you think of another fair system?
Advocation has joined #ruby
Elhu has joined #ruby
gja has joined #ruby
mojjojo has quit [Quit: mojjojo]
crazymykl has quit [Ping timeout: 246 seconds]
<shevy> deepy sure. aliases. the first one gets to register picks that name, but everyone else gets optional entries where they can specify to use another project instead. that may require an additional field in a .gemspec
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
crazymykl has joined #ruby
jamblack has joined #ruby
peregrine81 has joined #ruby
lewix has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 250 seconds]
arefaslani has joined #ruby
brennanMKE has joined #ruby
lewix has joined #ruby
mojjojo has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
mjburgess has quit [Remote host closed the connection]
sassamo has joined #ruby
freezey has joined #ruby
Mohan has quit [Ping timeout: 246 seconds]
conceptualHygene is now known as coneptualHygiene
gja has joined #ruby
coneptualHygiene is now known as conceptualHygien
baordog_ has joined #ruby
TomRone has joined #ruby
conceptualHygien is now known as codeHygiene
Mohan has joined #ruby
Mohan has joined #ruby
Mohan has quit [Changing host]
brennanMKE has quit [Ping timeout: 272 seconds]
arefaslani has quit [Ping timeout: 260 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
allaire has joined #ruby
lewix has quit [Ping timeout: 272 seconds]
fella5s has quit [Read error: Connection reset by peer]
asobrasil has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
Megtastique has joined #ruby
fella5s has joined #ruby
samsonasu has joined #ruby
burlyscudd has joined #ruby
psyl0n has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
banister has joined #ruby
brennanMKE has joined #ruby
IceDragon has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
fuhgeddaboudit has joined #ruby
amedeiros has quit [Remote host closed the connection]
vikhyat has quit [Remote host closed the connection]
grep_away is now known as grep_awesome
brennanMKE has quit [Ping timeout: 248 seconds]
lewix_ has quit [Remote host closed the connection]
semperos has joined #ruby
semperos has left #ruby [#ruby]
Faris has joined #ruby
zipper has joined #ruby
xjiujiu has quit [Ping timeout: 272 seconds]
octoberry has joined #ruby
Landshark753 has joined #ruby
havenwood has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
amedeiros has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
codeHygiene has quit [Ping timeout: 252 seconds]
drago777 has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
mojjojo has joined #ruby
TomRone has joined #ruby
end_guy has joined #ruby
kitak has quit [Remote host closed the connection]
drago777 has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
ewnd9 has joined #ruby
drago777 has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
arefaslani has joined #ruby
ewnd9 has joined #ruby
ZoanthusR has quit [Ping timeout: 246 seconds]
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
gja has quit [Quit: This computer has gone to sleep]
Advocation has quit [Quit: Advocation]
TomRone has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
estebistec has joined #ruby
vikhyat has joined #ruby
vikhyat has quit [Remote host closed the connection]
gja has joined #ruby
zipper is now known as codeHygiene
Azure has joined #ruby
arefasla_ has joined #ruby
arefaslani has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
TomRone has joined #ruby
coca_rails has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
drago777 has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
lewix has joined #ruby
<kwertie> I need to get out of the habit of not writing constructor methods named 'new' all the time.
<apeiros_unid> indeed
noop has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
zumba_addict has quit [Quit: zumba_addict]
gja has quit [Quit: This computer has gone to sleep]
tylersmith has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
randomnick_ has joined #ruby
allaire has quit [Ping timeout: 240 seconds]
vikhyat has joined #ruby
mary5030 has joined #ruby
pushpak has joined #ruby
DrCode has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
mary5030 has joined #ruby
<shevy> kwertie how do you write that?
gja has quit [Client Quit]
DrCode has joined #ruby
<kwertie> shevy: def new ...
<shevy> Wanna see something ugly? One way how to make a menu in ruby-gtk: http://pastie.org/pastes/8571471/text
deception has joined #ruby
gja has joined #ruby
<kwertie> Not to say they actually serve the purpose of being constructors
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
TomRone has joined #ruby
<kwertie> How best to actually go about making a GUI for a Ruby app?
<kwertie> There's Shoes, but I don't know alternatives
xiphias has quit [Ping timeout: 240 seconds]
mlpinit has quit [Remote host closed the connection]
divi_ has joined #ruby
<shevy> shoes4 depends on java/jruby
<shevy> that's no longer the original spirit of shoes :(
divi_ has quit [Client Quit]
<kwertie> It's the only GUI framework I've come across, still, that doesn't seem completely ugly
xiphias has joined #ruby
<shevy> the ruby GUI bindings are not really great. ruby-gnome is ok... there is (ruby)qt qtruby... dunno how that progresses, from my perspective it died. FXRuby died about 4 years ago ... wxruby bindings aren't maintained since years (save for Hanmac1 here who tries to write bindings)
<shevy> and ruby-tk always looked ugly
<kwertie> I don't get how a language as popular as ruby doesn't have any decent gui stuff going on
Hanmac1 is now known as Hanmac
<shevy> because you need people who can code in C or C++
g0bl1n has joined #ruby
<Hanmac> shevy i already added new Dialogs today ...
<kwertie> that must restrict Ruby's use cases tremendously
<shevy> kwertie well
<kwertie> and therefore its uptake as a language
gja has quit [Quit: This computer has gone to sleep]
<shevy> people who know C or C++ tend to work for things that make money
snath has quit [Ping timeout: 264 seconds]
gja has joined #ruby
divi_ has joined #ruby
Parker0 has joined #ruby
ambushsabre has joined #ruby
meatherly has quit []
baordog_ has quit [Read error: Connection timed out]
gja has quit [Client Quit]
baordog_ has joined #ruby
frustrum has joined #ruby
synergy has joined #ruby
meatherly has joined #ruby
divi_ has quit [Client Quit]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
lukec has joined #ruby
Yarou has joined #ruby
Yarou has quit [Client Quit]
psyprus has quit [Ping timeout: 240 seconds]
root_empire has joined #ruby
drumusician has quit [Ping timeout: 248 seconds]
psyprus has joined #ruby
bean__ has joined #ruby
vlad_starkov has joined #ruby
michael_lee has quit [Ping timeout: 250 seconds]
habanany has quit [Remote host closed the connection]
root_empire has quit [Max SendQ exceeded]
tkuchiki has quit [Read error: Connection reset by peer]
habanany has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
OnkelTem has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
root_empire has joined #ruby
OnkelTem has joined #ruby
ladyboy has quit [Quit: WeeChat 0.4.2]
kep has joined #ruby
kep is now known as ladyboy
tkuchiki has quit [Remote host closed the connection]
bogeyd6 has joined #ruby
nircUser has joined #ruby
burlyscudd has quit [Quit: Leaving.]
mojjojo has quit [Quit: mojjojo]
_bart has joined #ruby
mengu has quit [Remote host closed the connection]
mojjojo has joined #ruby
brennanMKE has joined #ruby
nircUser has quit [Client Quit]
nircUser has joined #ruby
nircUser has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
lmickh has joined #ruby
vlad_starkov has joined #ruby
cody-- has joined #ruby
mjburgess has joined #ruby
brennanMKE has quit [Ping timeout: 250 seconds]
shevy has quit [Ping timeout: 272 seconds]
Advocation has joined #ruby
cody-- has quit [Client Quit]
jmaister has joined #ruby
burlyscudd has joined #ruby
rh1n0 has joined #ruby
<ericwood> that stereotype is a crock of shit
<jmaister> Hi! I've got a file, settings.rb which contains http://pastebin.com/QpGT3rkj and want to read this into a hash. I've been thinking of doing it like this http://pastebin.com/mm4c26Ha . This doesn't seem to work. Any help?
root_empire has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
<apeiros_unid> jmaister: http://pastebin.com/QpGT3rkj this code is a plain syntax error :-p
jonathanwallace has quit [Ping timeout: 240 seconds]
<apeiros_unid> you mean =, not => in line 1, I guess…
drago777 has quit [Ping timeout: 240 seconds]
<apeiros_unid> jmaister: and loading could be done via: `load 'settings.rb'; h = Cinch::Plugins::Calculator`
root_empire has joined #ruby
<jmaister> and if I want to append to h?
<jmaister> h << Cinch::Plugins::Calculator?
drago777 has joined #ruby
<jmaister> also, I meant to write that arrow
TomRone has joined #ruby
<jmaister> as in Cinch::Plugins::Calculator is a key itself
<kwertie> I wish there was a more general alternative to .nil? or .empty
<ericwood> kwertie: .nil? is pretty general!
<apeiros_unid> jmaister: no, Hash#<< does not exist
<kwertie> Sometimes I don't know if it's going to be nil, or empty - and I don't care -- either clearly indicates a particular state
<apeiros_unid> see Hash#merge
<kwertie> ericwood: if a string has been initialized to '' though..
<apeiros_unid> jmaister: re "as in Cinch::Plugins::Calculator is a key itself" still a syntax error.
monkegjinni has quit [Remote host closed the connection]
<ericwood> kwertie: I mean, .nil should only check if it's nil!
<ericwood> >> ''.empty?
<eval-in> ericwood => true (https://eval.in/82218)
<apeiros_unid> you need to wrap it in {} then.
<ericwood> >> ''.blank?
<eval-in> ericwood => undefined method `blank?' for "":String (NoMethodError) ... (https://eval.in/82219)
<ericwood> oh yeah this isn't JS
yshh has joined #ruby
<apeiros_unid> kwertie: looking for activesupport's Object#blank?
<ericwood> apeiros_unid: AHA I'm not crazy
<ericwood> just stuck in rails-world
<ericwood> I hate it when I get used to patterns only to find that they're only ActiveSupport spoiling me...
Bumptious has joined #ruby
amedeiros has quit [Remote host closed the connection]
cooterrr has joined #ruby
anderson has joined #ruby
<Bumptious> When subtracting one datetime from another I get a result like "2958623/90"
amedeiros has joined #ruby
<ericwood> uh oh
<apeiros_unid> IMO .blank? is an anti-pattern
<Bumptious> I'm not sure how do interpret this
<ericwood> apeiros_unid: but I likes it :(
<apeiros_unid> Bumptious: .class will tell you that it is a Rationale
<apeiros_unid> Rational
cooterrr has quit [Client Quit]
mikepack has joined #ruby
<ericwood> eric-wood.rational? #=> false
<apeiros_unid> Bumptious: and docs will tell you that DateTime#- returns days
<ericwood> oh man I don't even know my own nic
<jmaister> apeiros_unid: All right, but what if I don't know what settings.rb contains, I just dumbly want to load it into my hash?
<apeiros_unid> jmaister: as said, see Hash#merge
<apeiros_unid> if you always want to load it under a specific key in your hash, plain Hash#[] will do too.
<jmaister> so h.merge!(IO.read('settings.rb')) could work?
<apeiros_unid> jmaister: no
<apeiros_unid> IO.read returns a String
shevy has joined #ruby
<jmaister> oh
<apeiros_unid> you'd have to eval the file (not very nice), or use something like LiteralParser (gem literal_parser)
<apeiros_unid> (the latter doesn't use eval)
<Bumptious> why is the result a Rational, and why would the denominator be 90?
<apeiros_unid> your config file still needs valid syntax, though.
<jmaister> apeiros_unid: maybe I should just write json and parse it
drago777 has quit [Ping timeout: 240 seconds]
<Bumptious> and thanks by the way
<apeiros_unid> Bumptious: because DateTime works off of Rational internally.
<jmaister> I thought the settings.rb would be a quick fix
jamblack has quit [Quit: jamblack]
<apeiros_unid> and /90 because it probably can't be shortened further.
robertjpayne has quit [Remote host closed the connection]
mehlah has joined #ruby
yjmsf20 has quit [Quit: leaving]
<Bumptious> also, that number, 2958623/90 = 32873, which is certainly not correct because my two DateTimes are about 2-3 days apart
larissa has joined #ruby
_maes_ has joined #ruby
<Bumptious> if that number is days
drago777 has joined #ruby
lyanchih_ has joined #ruby
<apeiros_unid> then you made a mistake
<apeiros_unid> >> require 'date'; DateTime.civil(2013,12,20) - DateTime.civil(2013,12,18)
<eval-in> apeiros_unid => (2/1) (https://eval.in/82225)
<apeiros_unid> >> require 'date'; result = DateTime.civil(2013,12,20) - DateTime.civil(2013,12,18); result.to_f
<eval-in> apeiros_unid => 2.0 (https://eval.in/82226)
<Bumptious> ooops yes 2103
<Bumptious> not 2013
<apeiros_unid> I'm just awesome at remote problem analysis :-p
jamblack has joined #ruby
<apeiros_unid> jmaister: just calling it .rb doesn't make IO.read evaluate it as ruby code. that'd be horrible.
<apeiros_unid> helloooo glaring security hole
<Bumptious> thank you
<apeiros_unid> also hellooooo glaring inconsistency and how the f'ck do I read a .rb as text :)
asteve has joined #ruby
asteve has quit [Max SendQ exceeded]
<ericwood> eval(File.open('lol.rb').read)
coca_rails has joined #ruby
<Hanmac> ericwood: wrong in multible ways
<ericwood> don't care
asteve has joined #ruby
<ericwood> I do what I want
sayan has joined #ruby
<xibalba> eric wood
rootshift has joined #ruby
<xibalba> from RBHS ?
<ericwood> hi
<Hanmac> first: use File.read() not File.open().read
<Hanmac> second why not Kernel#load ?
<ericwood> xibalba: RBHS?
<xibalba> na you're not from RBHS
<xibalba> you'd know it else
<ericwood> Hanmac: because I was being silly intentionally :)
freezey has quit [Remote host closed the connection]
<apeiros_unid> Hanmac: Kernel#load doesn't return the evaluated value iirc
<apeiros_unid> load was my initial suggestion when I thought he wanted to assign it to a constant
<Hanmac> ah yeah shit ... and load(str,true) does not return the anonymous class :(
coca_rails has quit [Ping timeout: 245 seconds]
<olivier_bK> how i can call my function putoli in the script BackupMysql ?
<apeiros_unid> s/class/module/ - yeah, that'd be nice
<apeiros_unid> I'm amazed time and time again how people can fail at indenting *so hard*
arefasla_ has quit [Remote host closed the connection]
<apeiros_unid> it's like "spaces? what's that?"
<shevy> olivier_bK you must make that method known
fire has quit [Quit: WeeChat 0.4.1]
<olivier_bK> ?
<shevy> olivier_bK but is it attached to a class, so you must make an instance
wallerdev has joined #ruby
<shevy> olivier_bK your code does not work because def putoli is defined within the namespace of ConnectMysql
<shevy> *class ConnectMysql
<shevy> so either use ConnectMysql.new.putoli or define a class method ConnectMysql.putoli or define a method called putoli that does one of the two ways mentioned
vlad_starkov has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 264 seconds]
freezey has joined #ruby
S0da has quit [Remote host closed the connection]
brtdv has joined #ruby
bluenemo has quit [Remote host closed the connection]
estebistec has quit [Remote host closed the connection]
<olivier_bK> shevy, thank why i didn't' guess that before :(
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
cow_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
matchaw has quit [Ping timeout: 248 seconds]
Advocation has quit [Quit: Advocation]
ValicekB has quit [Ping timeout: 264 seconds]
b00stfr3ak has joined #ruby
Kar- has joined #ruby
zigomir has quit [Ping timeout: 248 seconds]
ffranz has quit [Ping timeout: 248 seconds]
kcombs has joined #ruby
fedesilva has joined #ruby
lyanchih_ has quit [Ping timeout: 240 seconds]
mojjojo has quit [Quit: mojjojo]
jamblack has quit [Quit: jamblack]
Kar- has quit [Quit: leaving]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
Kar- has joined #ruby
relix has joined #ruby
OdNairy has joined #ruby
mojjojo has joined #ruby
rh1n0 has quit [Quit: -- I'm getting very tired --]
notroot_ has quit [Quit: Leaving]
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
grep_awesome is now known as grep_away
nircUser has joined #ruby
rh1n0 has joined #ruby
amedeiros has quit [Remote host closed the connection]
rh1n0 has quit [Max SendQ exceeded]
ValicekB has joined #ruby
rh1n0 has joined #ruby
amedeiros has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
amedeiros has quit [Read error: No route to host]
amedeiro_ has joined #ruby
amedeiro_ is now known as amedeiros
rh1n0 has joined #ruby
rh1n0 has quit [Client Quit]
monkegjinni has joined #ruby
Faris has quit [Ping timeout: 272 seconds]
nircUser has quit [Client Quit]
mosscollum has joined #ruby
larssmit has quit [Quit: Leaving.]
ffranz has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
grep_away is now known as grep_awesome
rh1n0_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
nircUser has joined #ruby
vlad_starkov has joined #ruby
mlpinit has joined #ruby
tylersmith has quit [Remote host closed the connection]
Faris has joined #ruby
brennanMKE has joined #ruby
angusiguess has quit [Ping timeout: 272 seconds]
nircUser has quit [Quit: goodbye]
mlpinit has quit [Client Quit]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
cody-- has joined #ruby
blandflakes has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
octoberry has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
gja has quit [Client Quit]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
Faris has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
cody-- has quit [Client Quit]
ladyboy has quit [Quit: WeeChat 0.4.2]
brennanMKE has quit [Ping timeout: 250 seconds]
clamstar_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
RoryHughes has quit []
marr has quit [Ping timeout: 250 seconds]
jonathanwallace has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ambushsabre has quit [Quit: rip]
burlyscudd has quit [Quit: Leaving.]
RoryHughes has joined #ruby
burlyscudd has joined #ruby
drago777 has joined #ruby
aspires has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
g0bl1n has quit [Read error: Operation timed out]
kcombs has quit [Remote host closed the connection]
brennanMKE has joined #ruby
kirun has joined #ruby
m_3 has quit [Ping timeout: 246 seconds]
iamdoo2 has quit []
vikhyat has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 272 seconds]
vikhyat has joined #ruby
mjburgess has quit [Ping timeout: 246 seconds]
klaut has joined #ruby
mosscollum has quit [Ping timeout: 240 seconds]
yshh has quit [Remote host closed the connection]
clamstar_ has quit [Quit: Computer has gone to sleep.]
browndawg has left #ruby [#ruby]
<jmaister> apeiros_unid: Ok, I tried another approach, but it still doesn't work. Could you please have a look at this? According to what I did in irb, it should work http://pastebin.com/BwziLswR
<jmaister> I think this should be valid at least
rh1n0_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dawe has joined #ruby
Advocation has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
<apeiros_unid> jmaister: API keys in pastes are not a good idea ;-p
Oculus has joined #ruby
<apeiros_unid> and please, don't use eval for string interpolation
<jmaister> dammit
gja has joined #ruby
<apeiros_unid> "foo#{variable}"
psyl0n has quit [Remote host closed the connection]
<apeiros_unid> jmaister: so what's your issue with the pasted code?
Oculus has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 240 seconds]
p4d4w4n has joined #ruby
ce_afk is now known as cescalante
<jmaister> I'm not quite able to identify it, but my config isn't made avalible to my plugin, so I wanted to at least check if the ruby was ok
Oculus has joined #ruby
<jmaister> It's kind of hard to debug
Faris has joined #ruby
jamblack has joined #ruby
root_empire has quit [Quit: Ex-Chat]
octoberry has joined #ruby
divi_ has joined #ruby
dr_bob has joined #ruby
jonathanwallace has joined #ruby
Parker0 has quit [Read error: Connection reset by peer]
<jmaister> Ah, it seems options is still empty
Parker0 has joined #ruby
mojjojo has joined #ruby
geggam has joined #ruby
<jmaister> better grab some food and try again. thanks :)
<apeiros_unid> jmaister: the loading part is not difficult to debug
drago777 has quit [Ping timeout: 240 seconds]
<apeiros_unid> replace c.plugins.options with a plain variable and you can easily run it without cinch.
<apeiros_unid> well, and drop the `debug` call, or replace it with raise or whatever
divi_ has quit [Ping timeout: 240 seconds]
<apeiros_unid> btw., Dir["./lib/cinch/data/*.config.json"].each do |file| -> Dir.glob("./lib/cinch/data/*.config.json") do |file|
octoberry has quit [Ping timeout: 240 seconds]
vikhyat_ has joined #ruby
threesome has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
bashdy has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
drago777 has joined #ruby
jonathanwallace has quit [Ping timeout: 250 seconds]
kevind_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
<Underbyte> hey, would anyone be willing to help me out with a phusion passenger + apache + sinatra/ruby2.0 setup issue i'm having?
b00stfr3ak has quit [Quit: Lost terminal]
sharms has quit [Changing host]
sharms has joined #ruby
<Underbyte> everything seems to be installed correctly, but apache keeps insisting on serving the rackbase URI like its a static file.
<Underbyte> i'm pretty much stumped.
jamblack has quit [Quit: jamblack]
flubba has joined #ruby
ambushsabre has joined #ruby
TomRone has joined #ruby
chrisja has quit [Ping timeout: 272 seconds]
octoberry has joined #ruby
kostine has joined #ruby
chrisja has joined #ruby
klcant102 has quit [Quit: Leaving]
<lessless> hey folks, can someone explain me the mechanics of [1,2,3].each.with_index.with_object([]) { |(obj, index), accum| puts index} ?
RoryHughes has quit []
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juarlex has joined #ruby
<lessless> especially why first two parameters are grouped with braces?
IceDragon has joined #ruby
<apeiros_unid> lessless: try it without and see ;-)
<lessless> apeiros_unid, I tried, but I cant understand the mechanics :)
<apeiros_unid> what did you see, when you tried?
stardiviner has joined #ruby
io_syl has joined #ruby
<lessless> apeiros_unid, when I added #with_object to the #each_with_index, the arguments of last was coupled in the array
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
octoberry has quit [Ping timeout: 240 seconds]
<Mon_Ouie> each_with_object(o) is like each { |x| yield x, o } — it will always pass two arguments to the block
<lessless> so, instead of obj, index, accum, they became [obj, index], accum
<apeiros_unid> lessless: so you got 2 objects, an array and accum
<apeiros_unid> so what do you suggest the () does with the array?
<lessless> yeah
<lessless> hm
Advocation has quit [Quit: Advocation]
KK4MGV has joined #ruby
deol has joined #ruby
<lessless> apeiros_unid, it split it apart?
<olivier_bK> i odnt remember how to pass variable in another class
<olivier_bK> ConnectMysql.new.connect_mysql('@uid_instance')
<olivier_bK> ?
<KK4MGV> could somebody point me to an "official" style guide that would cover things like do end vs {}, whitespace conventions, etc?
<apeiros_unid> lessless: correct
<shevy> KK4MGV there is none
<KK4MGV> there must be some informally agreed upon convention though, no?
lethjakm1 has quit [Ping timeout: 264 seconds]
<shevy> KK4MGV {} binds more tightly than do/end and you may have to use () in case you want to pass arguments to the method called
Voodoofish4301 has joined #ruby
lethjakm1 has joined #ruby
<Mon_Ouie> olivier_bK: "passing a variable to another class" doesn't make sense
nari has quit [Ping timeout: 252 seconds]
<xibalba> KK4MGV, The book : eloquent ruby
bashdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gonzih has quit [Quit: IRC is just multiplayer vim.]
<shevy> KK4MGV no. the pickaxe tried to establish one by stating "use do/end for multiline, for one-liners use {}" but the ruby parser does not enforce that so people can ignore it as they wish
<lessless> apeiros_unid, I know, that a, b = [1,2] splits array without any braces
shredding has joined #ruby
<KK4MGV> the pickaxe?
<lessless> apeiros_unid, can you please give another example of this kind of usage of the braces?
<Mon_Ouie> KK4MGV: There are different ones. There's the one shevy mentioned and also another one that uses do … end for side-effect and { … } for the rest; also, if you're chaining blocks, you'd probably prefer { … }
<shevy> hmm interesting
<lessless> i.e. to split array with braces
conner has joined #ruby
<shevy> it seems as if the pickaxe is no longer called the pickaxe
<shevy> KK4MGV, the latest should be this one: http://pragprog.com/book/ruby4/programming-ruby-1-9-2-0
<Mon_Ouie> >> (a,b) = [1, 2]; p [a, b]
<eval-in> Mon_Ouie => [1, 2] ... (https://eval.in/82245)
<shevy> Apparently they changed the title to "Programming Ruby"
axl_ has joined #ruby
<Mon_Ouie> >> (a,b), c = [[1, 2], 3]; p [a, b, c]
<eval-in> Mon_Ouie => [1, 2, 3] ... (https://eval.in/82246)
<olivier_bK> Mon_Ouie, i would want to say a methode
<olivier_bK> sorry
<KK4MGV> was its literal title once "the pickaxe?"
zumba_addict has joined #ruby
cow_ has joined #ruby
<lessless> oh, cool
<lessless> now I got some more perspective on this
ioNull_ has joined #ruby
<KK4MGV> is that considered the canonical reference book?
angusiguess has joined #ruby
ioNull_ has quit [Client Quit]
Faris has quit [Ping timeout: 264 seconds]
flubba has quit [Remote host closed the connection]
dima has joined #ruby
ioNull has joined #ruby
octoberry has joined #ruby
monkegjinni has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
<Mon_Ouie> KK4MGV:  https://github.com/styleguide/ruby This is a style guide people often refer to if you want to look up this sort of things
thumpba has joined #ruby
<shevy> KK4MGV I am not sure
mastr has joined #ruby
<shevy> KK4MGV I think back in 2004 it was called that way
clamstar_ has joined #ruby
jonathanwallace has joined #ruby
<shevy> "This book is the only complete reference for Ruby 1.9, the very latest version of Ruby. (If you are still using Ruby 1.8, you'll want to check out the original PickAxe.)"
ssvo has joined #ruby
<shevy> it's literally mentioned there!
ssvo has quit [Client Quit]
<shevy> nowadays I store things in my local knowledge base
flubba_ has joined #ruby
shime has quit [Ping timeout: 264 seconds]
<KK4MGV> is there a ruby equivalent of k&r for C or the lama book for perl, etc.?
<KK4MGV> would that be the pickaxe?
cow_ has quit [Ping timeout: 272 seconds]
<shevy> yeah
<shevy> except that k&r is very short and terse
angusiguess has quit [Ping timeout: 260 seconds]
<KK4MGV> but it's considered "the book"
<shevy> the pickaxe has like the whole stdlib of ruby documented inside of it
burlyscudd has quit [Quit: Leaving.]
octoberry has quit [Ping timeout: 240 seconds]
<Mon_Ouie> olivier_bK: I still don't know what you mean by that
<Mon_Ouie> You pass object to methods through their arguments
thumpba has quit [Remote host closed the connection]
brtdv has quit [Ping timeout: 260 seconds]
<KK4MGV> well, i can use the website as a library reference (probably more up to date, probably easier to navigate), i was more looking for a solid conceptual foundation for ruby
thumpba has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
marr has joined #ruby
lukec has quit [Quit: lukec]
lewix has quit [Remote host closed the connection]
<shevy> I dunno
shredding has quit [Ping timeout: 240 seconds]
<shevy> the best way to ruby is to start writing things
<shevy> the main things you'll need most of the time are (a) class Array (b) class String (c) class Hash ... that's about it really
shredding has joined #ruby
noop has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
alexherbo2 has joined #ruby
tharindu has joined #ruby
olivier_bK has quit [Ping timeout: 261 seconds]
fridim_ has joined #ruby
atma111 has joined #ruby
mojjojo has quit [Quit: mojjojo]
danshultz has quit [Ping timeout: 252 seconds]
flubba_ has quit [Remote host closed the connection]
mojjojo has joined #ruby
<atma111> Does anyone speak Spanish? need help
flubba has joined #ruby
Elhu has joined #ruby
<Underbyte> Baxter! tu sabes que yo no hablo español!
dima has quit [Remote host closed the connection]
flubba has quit [Ping timeout: 246 seconds]
drago777 has quit [Ping timeout: 240 seconds]
dima has joined #ruby
vlad_starkov has joined #ruby
wallerdev has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
drago777 has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
divi_ has joined #ruby
Squarepy has joined #ruby
<shevy> atma111 mi gato es un perro
<atma111> lel
sr78ger has joined #ruby
rdark has quit [Quit: leaving]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
Asher has quit [Client Quit]
kalleth has joined #ruby
lukec has joined #ruby
Asher has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
conner has quit [Ping timeout: 272 seconds]
sr78ger has quit [Client Quit]
<atma111> bueno tengo instalado squid3 en ubuntu server y queria instalar nginx para guardar los videos de youtube
divi_ has quit [Ping timeout: 252 seconds]
cj3kim has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lethjakm1 has quit [Ping timeout: 246 seconds]
bashdy has joined #ruby
<atma111> pero cuando instalo todo reinicio el squid3 y ya no tengo internet en las otras pcs
<atma111> le pongo el signo a esto q le puse al squid.conf #url_rewrite_program /etc/nginx/nginx.rb y ya tengo internet de nuevo
lethjakm1 has joined #ruby
freezey has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 262 seconds]
dima has quit [Remote host closed the connection]
drago777 has joined #ruby
Neomex has joined #ruby
<Underbyte> anyone feel like helping me out with an apache/ruby/sinatra/passenger problem i'm having?
Mon_Ouie has quit [Read error: Operation timed out]
habanany has quit [Quit: Bye]
baroquebobcat has quit [Quit: baroquebobcat]
shedd has quit [Remote host closed the connection]
subbyyy has joined #ruby
CaptainJet has joined #ruby
h0rrorvacui has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
peregrine81 has quit []
katherinem13 has joined #ruby
Squarepy has quit [Ping timeout: 272 seconds]
katherinem13 is now known as kiki_lamb
stardiviner has quit [Remote host closed the connection]
freezey has joined #ruby
kiki_lamb has quit [Client Quit]
kiki_lamb has joined #ruby
peregrine81 has joined #ruby
peregrine81 has quit [Max SendQ exceeded]
guardianx has quit [Remote host closed the connection]
peregrine81 has joined #ruby
b00stfr3ak has joined #ruby
angusiguess has joined #ruby
<Aloysius1> Heyo...I got a "block (2 levels) in <my routine>" where "<my routine>" is a function running two independent threads. Googling this error doesn't seem to turn up what it actually is...
TomRone has joined #ruby
hl has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Remote host closed the connection]
joaoh82 has quit []
DouweM has quit [Quit: Leaving...]
ValicekB has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
cj3kim has quit [Remote host closed the connection]
Faris has joined #ruby
brtdv has joined #ruby
shanlar has quit [Quit: Be back later]
flubba has joined #ruby
atma111 has quit [Ping timeout: 240 seconds]
atma111 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
shanlar has joined #ruby
arefaslani has joined #ruby
iamjarvo has joined #ruby
maxmanders has quit [Ping timeout: 260 seconds]
pdtpatr11k has quit [Quit: leaving]
Kricir has joined #ruby
Speed has joined #ruby
mpereira has quit [Ping timeout: 272 seconds]
Speed is now known as Guest54692
alexherbo2 has quit [Ping timeout: 264 seconds]
Guest54692 has quit [Changing host]
Guest54692 has joined #ruby
lewix has joined #ruby
Guest54692 is now known as Speed
maxmanders has joined #ruby
sayan has joined #ruby
<shevy> atma111 eh some guy has problems there
<shevy> pongo pongo problems
benzrf has joined #ruby
<benzrf> one thing i can definitely say is awesome about ruby far beyond python
wildroman2 has quit []
<benzrf> DEFAULT BUILTIN LIBRARY
<atma111> le pongo el signo a esto q le puse al squid.conf #url_rewrite_program /etc/nginx/nginx.rb y ya tengo internet de nuevo
<benzrf> i wrote some python again yesterday and i felt like i was in a barren wasteland of functions & methods by comparison
<benzrf> ._.
synergy has quit [Read error: Connection reset by peer]
mpereira has joined #ruby
polaco_zZz has quit [Quit: HTTP/1.1 410 Gone]
<atma111> creo q es por la version el script para le version que tengo no funciona
polaco has joined #ruby
larissa has quit [Quit: Leaving]
platzhirsch has joined #ruby
parduse has quit [Ping timeout: 272 seconds]
spyderman4g63 has joined #ruby
mosscollum has joined #ruby
<Underbyte> still need help with a passenger issue, have conf files ready to go if anyone wants to take a shot
cj3kim has joined #ruby
brtdv has quit []
hl has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
bricker has joined #ruby
conner has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Remote host closed the connection]
Part_ has joined #ruby
ambushsabre has quit [Quit: rip]
<Part_> hi
<benzrf> hello Part_
<benzrf> hows it going
iamjarvo has joined #ruby
<shevy> die
<shevy> I mean
<shevy> hi benzrf
<benzrf> D:
drago777 has joined #ruby
<shevy> Part_ is soon gone
<Part_> hi benzrf :)
<benzrf> man what a freudian slip
<shevy> yeah I should not too often let out my thoughts :(
<Part_> hi shevy
<shevy> benzrf, have you finally made gems on rubygems.org
<benzrf> no
<benzrf> i still have v mixed feelings about ruby
alexherbo2 has joined #ruby
<shevy> let them out man
<benzrf> the layer you use in everyday programming is like 80% highly superior to python
<benzrf> but the last 20% drives me up the wall
<Part_> I have a string with a path like this d:/music/mp3/ What is the best way to check if the first directory is music ?
<benzrf> and the underlying semantics...
<benzrf> god so messy
iamjarvo_ has joined #ruby
mosscollum has quit [Quit: mosscollum]
Neomex has quit [Quit: Neomex]
codeHygiene has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Read error: Connection reset by peer]
<shevy> Part_ File.directory? File.dirname(your_string_here)
<shevy> benzrf the cool thing is that one can ignore most of these things in ruby and only use what is cool
<Part_> shevy: let me check
<benzrf> shevy: maybe for YOU
<benzrf> and jesus christ scoping and imports
<benzrf> ruby is terrifyingly awful about scoping and impots
<benzrf> *imports
<benzrf> holy shit
Fire-Dragon-DoL has joined #ruby
<jxport> benzrf: in which ways?
<benzrf> jxport: one example...
<benzrf> requiring sinatra will override your Date class.
<benzrf> the old one was useless, so it's not a big deal
<benzrf> but
<shevy> hehe
<benzrf> the fact that that is _POSSIBLE_ and _HAPPENS_ in a _POPULAR FRAMEWORK_
<benzrf> god damn does that reek of bad design
lagweezle has joined #ruby
<shevy> how would you solve the problem when you wish to provide flexibility and power to the user
<benzrf> python still rules the universe in terms of import systems
<shevy> "you may not overrule stdlib" *waves hand like jedi knight*
<benzrf> -smug-
lagweezle is now known as sickweezle
Czupa has joined #ruby
<benzrf> shevy: no, you may not override anything outside of your namespace unless the importing party specifies so!!
<shevy> dictatorship!!!
colonolGron has joined #ruby
<shevy> I fight for freedom like mel gibson in braveheart!!!!
<shevy> DOWN WITH THE PANTS NOW!!!!!!
<benzrf> a single shared namespace for _EVERY FILE RUN_ is absurdly idiotic!!
<shevy> hehe
<jxport> BTW - if I'm triggering an exception in a test, and its rescue block is outputs debug info/warning -- how can I avoid that happening when using rspec?
<shevy> (close eyes and wait until the info passed the screen)
<benzrf> NOT TO MENTION that it is freaking impossible for readers of code to figure out where any given method or class is from without a good search tool
<jxport> benzrf: there's a single shared namespace..? I did not realise this
<jxport> shevy: was that to me? I don't know whether that's normal from testing
axl_ has quit [Quit: axl_]
<benzrf> one awesome feature of python's import system is that you usually specify the names of the things you import
<shevy> well there is .owner and .source_location and method() and method_source
jrd0 has quit [Quit: ZNC - http://znc.in]
<benzrf> or else you prefix imported stuff with the location its from
<benzrf> you CAN use 'from foo import *' but you usually dont unless you have a good reason
<shevy> ack
<benzrf> THEREFORE, a simple text search can easily locate where something is from!!
<shevy> you prefix stuff with the location where its from?
<shevy> china_foo
<shevy> italy_bar
<shevy> hmm... is that cuisine coding...
<benzrf> no
<benzrf> import flask
<benzrf> flask.redirect
<benzrf> OR.
<benzrf> from flask import redirect
<benzrf> redirect()
juarlex has quit []
<shevy> yeah the second one is cool
kostine has quit [Remote host closed the connection]
<shevy> I want to have the feature in ruby to redefine the names of namespaces
<benzrf> it is considered badish practice, but i enjoy it
Kricir has quit [Remote host closed the connection]
<benzrf> shevy: it's not namespace names
<shevy> module War
<shevy> ^^^ import as Love
<benzrf> it's just a local var
IceDragon has quit [Read error: No route to host]
<shevy> huh
<shevy> where is the local var?
<benzrf> shevy: i may have mentioned before :p
<benzrf> shevy: in python all names are either vars or attributes
<benzrf> period
<benzrf> no other kind of name
<shevy> well you can fake that in ruby by using objects with reader methods
gregoriokusowski has quit [Quit: gregoriokusowski]
<Part_> shevy: shevy If I do File.dirname("c:\music\mp3\rock") I do not get the first "music"
<shevy> require 'foo'
<shevy> foo
jamesaxl has joined #ruby
<shevy> ok, it's an object, not a local var
<benzrf> meh
<benzrf> local vars point to objects
peregrine81 has quit []
mojjojo has quit [Quit: mojjojo]
<shevy> Part_ you have a 3 tier path there
<benzrf> anyway in python scoping is freaking consistent
<benzrf> not screwy and with 20 different ways of working like in ruby
<shevy> Part_ are you on windows?
<benzrf> although to be fair the 20 different ways come in handy
<benzrf> ;p
jrd0 has joined #ruby
<Part_> I want just the first no matter how many tier
<shevy> huh
<shevy> Part_ split it on \
<benzrf> ew
<benzrf> thats platform dependednt and gross
<Part_> shevy: ok thanks
cj3kim has quit [Read error: Connection reset by peer]
<shevy> File.directory? 'c:\music\mp3\rock'.split("\\")[1]
cj3kim_ has joined #ruby
mojjojo has joined #ruby
<benzrf> Part_: dont do it like that
brtdv has joined #ruby
axl_ has joined #ruby
<shevy> >> File::SEPARATOR
<eval-in> shevy => "/" (https://eval.in/82249)
<shevy> Part_, use that constant
<benzrf> Part_: use Pathname
<shevy> no that is awful
soheil has joined #ruby
tharindu has quit [Quit: Leaving...]
<shevy> go show him the example with Pathname
subbyyy has quit [Ping timeout: 248 seconds]
<benzrf> oh wow that is a bit terrible
IceDragon has joined #ruby
soheil has quit [Remote host closed the connection]
habanany has joined #ruby
<shevy> come on!
<shevy> show it!
<shevy> I used it when I came to ruby
<shevy> I hate it so much nowadays
mehlah has quit [Read error: Connection reset by peer]
mehlah_ has joined #ruby
<benzrf> yeah this is p gross
<terrellt> Hate what now?
<benzrf> -.-
<shevy> >> Pathname.new("http://www.google.com/google_is/toobig/stuff.mp3").basename
<eval-in> shevy => uninitialized constant Pathname (NameError) ... (https://eval.in/82250)
<shevy> grrr
<shevy> >> require 'pathname'; Pathname.new("http://www.google.com/google_is/toobig/stuff.mp3").basename
<eval-in> shevy => #<Pathname:stuff.mp3> (https://eval.in/82251)
<shevy> ok now
<shevy> >> require 'pathname'; Pathname.new("http://www.google.com/google_is/toobig/stuff.mp3").basename.to_s
<eval-in> shevy => "stuff.mp3" (https://eval.in/82252)
<terrellt> That seems right to me.
<shevy> :)
<shevy> benzrf see what is bad in ruby? you'll never get people to agree on anything!
<shevy> like what amount of indent is the right one to use, for instance
mehlah_ is now known as mehlah
<benzrf> 2sp
<benzrf> duh
<terrellt> ...Two spaces isn't agreed on?
<shevy> hehe
<shevy> if you ask me sure
<benzrf> python uses 4sp but i use tabs because im a REBEL
<terrellt> That's just project specific stuff, you define that at the beginning.
clamstar_ has quit [Ping timeout: 240 seconds]
<terrellt> Write it down, that's just good practice.
Kricir has joined #ruby
kevind_ has quit [Quit: kevind_]
<benzrf> what i really want is a language with ruby's pleasantness of everyday usage, Io's pleasantness of underlying semantics and metaprogramming, and python's import system
<benzrf> then i will live in programming bliss maybe
Part_ has quit [Ping timeout: 252 seconds]
mehlah has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
<benzrf> i should probably learn scala at some point
mikepack has quit [Remote host closed the connection]
<shevy> don't you need java for scala?
mojjojo has quit [Ping timeout: 240 seconds]
mehlah has joined #ruby
<benzrf> it is a jvm languages
mehlah has quit [Read error: Connection reset by peer]
<benzrf> *languag
<benzrf> e
mehlah_ has joined #ruby
kevind_ has joined #ruby
Part_ has joined #ruby
marr has quit [Ping timeout: 248 seconds]
clamstar_ has joined #ruby
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drago777 has joined #ruby
mehlah_ is now known as mehlah
<atma111> como puedo saber q version de ruby tengo instalado en mi ubuntu server
bashdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Zhwazi> "How can I know what version of ruby I have installed on my ubuntu server"
kalleth has joined #ruby
<shevy> atma111 el gato sabe mucho mas
vlad_starkov has joined #ruby
<shevy> Zhwazi "ruby -v" should do
<shevy> I have: ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
<Zhwazi> atma111: "ruby -v"
<atma111> thx
<benzrf> Zhwazi: oh i was gonna say
<Zhwazi> I was just translating.
<benzrf> ruby -e 'puts RUBY_VERSION'
<shevy> hehehe
<shevy> that too
<Zhwazi> I haven't got ruby install on my system right now to check
<shevy> >> ruby -e 'puts RUBY_VERSION'
<Zhwazi> installed*
<eval-in> shevy => /tmp/execpad-dc933e9c4372/source-dc933e9c4372:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/82253)
<shevy> ohhh pure ruby only
psyl0n has joined #ruby
<shevy> >> RUBY_VERSION
<eval-in> shevy => "2.0.0" (https://eval.in/82254)
<shevy> oh!
<shevy> you don't have ruby installed Zhwazi? :(
<terrellt> >> `ruby -e 'puts RUBY_VERSION'`
<eval-in> terrellt => (https://eval.in/82255)
<Zhwazi> Not at the moment. It's complicated.
reset has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<shevy> terrellt clever
<Zhwazi> It's not a ruby issue, it might be a FreeBSD issue.
peregrine81 has joined #ruby
conner has quit [Ping timeout: 272 seconds]
shedd has joined #ruby
mosscollum has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
txdv has quit [Ping timeout: 272 seconds]
soheil has joined #ruby
<atma111> have ruby 1.8.7 the script works for me in this version?
conner has joined #ruby
arefasla_ has joined #ruby
TomRone has joined #ruby
S0da has joined #ruby
Guest97410 is now known as Martxel
Martxel has quit [Changing host]
Martxel has joined #ruby
<Zhwazi> The top line seems to explicitly requst 1.9.1
<atma111> i can update my ruby?
shedd has quit [Ping timeout: 260 seconds]
<atma111> 1.8.7 a 1.9.1?
arefaslani has quit [Ping timeout: 252 seconds]
mojjojo has joined #ruby
<shevy> sure
<shevy> compile it ;)
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2
zipper has joined #ruby
<shevy> atma111 don't use 1.9.1, use 1.9.3 or 2.0 / 2.x
<shevy> omg why is this all in spanish
<atma111> i need work script http://paste.ubuntu.com/6624805/
<shevy> can't you turn this into english
<shevy> that is spuby
<shevy> then we have juby... japanese ruby ...
<shevy> STDIN.each_line hacer | ln |
shredding has quit [Quit: shredding]
<shevy> :D
bradhe has joined #ruby
lukec has quit [Quit: lukec]
skaflem has quit [Quit: This computer has gone to sleep]
<Part_> shevy: split is ok for me thanks.
skaflem has joined #ruby
<benzrf> :[
<benzrf> bbbbut
<benzrf> that would be the PERLISH way of doing things!
<Part_> now have another question. If I wanna get from d:\music\..\..\.. the first directory plus the letter I mean: d:\music
Mars` has joined #ruby
_bart has quit [Remote host closed the connection]
<Part_> an efficent way instead of playing with split and <<
<Part_> ?
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<shevy> Part_ \o/
<Part_> xDD
<shevy> benzrf perl is good! write it and be done!
<shevy> except that ruby allows you to reuse the crap you wrote, unlike the perl line noise
subbyyy has joined #ruby
<shevy> Part_ with .split you get an array, ok?
<Part_> yes
<shevy> and then you apply regular array operations on that
kevind_ has quit [Quit: kevind_]
<Part_> ok that how I've done
grep_awesome is now known as grep_away
<Part_> :)
<Part_> thanks
<shevy> >> 'c:\music\mp3\rock'.split("\\")[1]
<eval-in> shevy => "music" (https://eval.in/82256)
<shevy> >> 'c:\music\mp3\rock'.split("\\")
<eval-in> shevy => ["c:", "music", "mp3", "rock"] (https://eval.in/82257)
<shevy> so you need the first two
<shevy> >> 'c:\music\mp3\rock'.split("\\")[0,1].join("\\")
<eval-in> shevy => "c:" (https://eval.in/82258)
<Part_> yes yes I didn't know if there was another better option
<shevy> grrr
<shevy> >> 'c:\music\mp3\rock'.split("\\")[0..1].join("\\")
<eval-in> shevy => "c:\\music" (https://eval.in/82259)
<shevy> there, I think
<shevy> but use a CONSTANT rather than "\\"
<Part_> that's ok for me
kevind_ has joined #ruby
<Part_> thank you so much
vlad_starkov has joined #ruby
<shevy> I love constants
Hanmac1 has joined #ruby
<shevy> benzrf, do you use constants in python?
matchaw has joined #ruby
<benzrf> hmm?
<shevy> like
<benzrf> python has no explicit constants, but you can of course define variables...
<shevy> MY_FILE = 'bla.py'
<benzrf> well duh you can do that
<shevy> delete_file(MY_FILE) if File.exist? MY_FILE
<benzrf> the semantics are no different than 'my_file; though
<sickweezle> So ... noob question while we are on it ... How do constants work in Rby?
<sickweezle> Ruby, even
Hanmac has quit [Ping timeout: 250 seconds]
<benzrf> sickweezle: they are p different from local vars
<shevy> sickweezle they are not constants in ruby :(
<shevy> >> X = 5; X = 7
<eval-in> shevy => /tmp/execpad-31fa0e433d61/source-31fa0e433d61:2: warning: already initialized constant X ... (https://eval.in/82260)
<shevy> huh
mojjojo has quit [Quit: mojjojo]
<benzrf> sickweezle: they are lexically scoped into defs, for one
<benzrf> sickweezle: or... not really
<benzrf> sickweezle: it's more like
<shevy> the bot lies!
<benzrf> constants live inside modules and classes in hierarchies
<shevy> >> CAT = "Tom"; CAT = "Jerry"; p CAT
<eval-in> shevy => /tmp/execpad-b6c76d8c9dda/source-b6c76d8c9dda:2: warning: already initialized constant CAT ... (https://eval.in/82261)
<benzrf> and methods can see constants in the class or module they're defined in
<benzrf> it's complicated
<shevy> man! this is totally valid ruby code!
<shevy> anyway sickweezle
<benzrf> shevy: remember the only kinds of names in python are vars and attrs
<benzrf> period
<shevy> ignore the eval-in bot... IRB says that this is fine, you only get a warning: "(irb):3: warning: already initialized constant CAT"
ambushsabre has joined #ruby
<shevy> benzrf python still eludes me
blaxter has quit [Quit: foo]
<shevy> but the syntax looks very familiar
<benzrf> shevy: Python is beautiful
cornedbeefsand has joined #ruby
<benzrf> it is far less messy than ruby
<benzrf> but unfortunately it is less pleasant to use also
<shevy> hmm
<shevy> ruby can also be unpleasant to use
shime has joined #ruby
<shevy> especially if other people wrote something
<benzrf> shevy: python has no constants or methods or ivars
<benzrf> just vars & attrs
<benzrf> vars are really called names i guess
<benzrf> methods are just attrs, functions are just vars
<benzrf> constants are nowhere to be seen, and vars are lexically scoped
<benzrf> like they FREAKING SHOULD BE
<shevy> click "view source"
<shevy> I tried to understand what the original author wanted
decoponyo has joined #ruby
<shevy> because I thought "hey, this is useful, but messy. let's clean up."
<shevy> I gave up :(
tylersmi_ has joined #ruby
<shevy> self.AddPage(@CurOrientation)
<shevy> such things are all over the place
subbyyy_ has joined #ruby
moted_ has joined #ruby
<benzrf> buh
nanoyak_ has joined #ruby
<benzrf> did u see that graph thing i made
relix_ has joined #ruby
wallerdev_ has joined #ruby
havenn has joined #ruby
havenn has quit [Client Quit]
thumpba_ has joined #ruby
<shevy> the weird code you showed and where you claimed that this is ruby?
<shevy> yes
<benzrf> but
<benzrf> it IS ruby
<shevy> looked like haskelthon to me :D
steinsgate has joined #ruby
<benzrf> u see, you make a 2d array that shows where each direction is in comparison to the center
drago777 has quit [Ping timeout: 240 seconds]
steinsgate is now known as Guest50800
<benzrf> then the thingy generates a graph based on it
Trazira has joined #ruby
<benzrf> well idk if its a graph
<benzrf> look @ this again hold on
Hobogrammer_ has joined #ruby
Monie_ has joined #ruby
<benzrf> ok so lets say you want a square grid
jonathanwallace has joined #ruby
<benzrf> the directions from one node to another are up down left and right
Monie_ has quit [Max SendQ exceeded]
<benzrf> so you make this 2d array:
Zhwazi- has joined #ruby
<benzrf> [[nil, :up, nil],
arefaslani has joined #ruby
nyarlshub has joined #ruby
<benzrf> [:left, nil, :right],
vikhyat has joined #ruby
<benzrf> [nil, :down, nil]]
<benzrf> then you pass it to my thingy and get back a node
it_tard has joined #ruby
it_tard has quit [Changing host]
it_tard has joined #ruby
<benzrf> you can then say node.up to get the node above it
<benzrf> then node.up.left to go up and left
<benzrf> you can store data in nodes
<nyarlshub> why did ruby's rdoc choose to use SimpleMarkup instead of POD (Perl's Plain Old Documentation) ?
Squarepy has joined #ruby
<benzrf> and the directions work like they sould
<benzrf> *should
<benzrf> i.e. up left down is the same as left
<nyarlshub> they seem pretty similar in functionality and syntax
soheil_ has joined #ruby
<nyarlshub> and POD's been around forever, and was pretty standard
Nahra_ has joined #ruby
<nyarlshub> ruby's creation was influenced by perl, so why avoid its standard documentation format?
ayaz_ has joined #ruby
Monie_ has joined #ruby
kiki_lam1 has joined #ruby
Blue_Ice_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
eliasp_ has joined #ruby
flori_ has joined #ruby
mr_red1 has joined #ruby
drago777 has joined #ruby
<shevy> nyarlshub does rdoc impose any format? as far as I know you can use quite a lot with it
mary5030 has joined #ruby
magbeat_ has joined #ruby
asteve_ has joined #ruby
iamjarvo has joined #ruby
graft__ has joined #ruby
iamjarvo_ has quit [Read error: Connection reset by peer]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
jamesaxl_ has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<shevy> hmm I thought there is more... there is an option for a .gemspec file where you can set the markup you want to use AFAIK. or you could just use yard http://yardoc.org/
<benzrf> shevy: so i was thinking i could make something sinatra-ish but for irc bots instead of web sites
<benzrf> for my gem
txdv has joined #ruby
<benzrf> then you will stop harassing me ?
sharms has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
Hanmac1 has quit [*.net *.split]
jamesaxl has quit [*.net *.split]
soheil has quit [*.net *.split]
arefasla_ has quit [*.net *.split]
subbyyy has quit [*.net *.split]
nanoyak has quit [*.net *.split]
tylersmith has quit [*.net *.split]
wallerdev has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
thumpba has quit [*.net *.split]
vikhyat_ has quit [*.net *.split]
relix has quit [*.net *.split]
asteve has quit [*.net *.split]
anderson has quit [*.net *.split]
nfk has quit [*.net *.split]
frustrum has quit [*.net *.split]
havenwood has quit [*.net *.split]
banister has quit [*.net *.split]
naquad has quit [*.net *.split]
Beoran__ has quit [*.net *.split]
decoponio has quit [*.net *.split]
Monie has quit [*.net *.split]
Hobogrammer has quit [*.net *.split]
mr_red has quit [*.net *.split]
crapple has quit [*.net *.split]
eliasp has quit [*.net *.split]
descala has quit [*.net *.split]
Zhwazi has quit [*.net *.split]
autumn has quit [*.net *.split]
ayaz has quit [*.net *.split]
moted has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
magbeat has quit [*.net *.split]
oz has quit [*.net *.split]
Nahra has quit [*.net *.split]
Galgorth has quit [*.net *.split]
graft_ has quit [*.net *.split]
guyz has quit [*.net *.split]
TigerWolf has quit [*.net *.split]
sarlalian has quit [*.net *.split]
flori has quit [*.net *.split]
Tarential has quit [*.net *.split]
wchun has quit [*.net *.split]
dreamchaser has quit [*.net *.split]
xybre has quit [*.net *.split]
moted_ is now known as moted
Trazira has quit []
Faris has quit [Ping timeout: 272 seconds]
wallerdev_ is now known as wallerdev
b00stfr3ak has quit [Ping timeout: 246 seconds]
naquad has joined #ruby
magbeat_ has quit [Ping timeout: 240 seconds]
<benzrf> shevy: i am now looking at your rubygems profile
kcombs has joined #ruby
magbeat has joined #ruby
<benzrf> what do you do, put every half-made project of yours on there
<benzrf> >:P
Hanmac has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
digifiv5e has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
b00stfr31k has joined #ruby
<nyarlshub> shevy, i thought rdoc required the use of SimpleMarkup
octoberry has joined #ruby
arefasla_ has joined #ruby
crapple has joined #ruby
graft__ has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Read error: Connection reset by peer]
TomRone has quit [Ping timeout: 240 seconds]
arefaslani has quit [Ping timeout: 248 seconds]
graft_ has joined #ruby
xiphias has joined #ruby
kiki_lam1 is now known as kiki_lamb
Kricir has quit [Remote host closed the connection]
snath has joined #ruby
monkegjinni has joined #ruby
burlyscudd has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
Beoran__ has joined #ruby
IceDragon has quit [Read error: Connection timed out]
lukec has joined #ruby
Tarential has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
psyprus has joined #ruby
frustrum has joined #ruby
octoberry has quit [Ping timeout: 240 seconds]
anderson has joined #ruby
sarlalian has joined #ruby
xybre has joined #ruby
descala has joined #ruby
reach has joined #ruby
Xiti has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
Jake232_ has joined #ruby
<benzrf> shevy: oh it looks like somebody made the irc bot thing first NEVER MIND
anderson has quit [Excess Flood]
xiphias has quit [Ping timeout: 240 seconds]
anderson has joined #ruby
TomRone has joined #ruby
grep_away is now known as grep_awesome
xiphias has joined #ruby
soheil_ has quit [Remote host closed the connection]
threesome has joined #ruby
shime has quit [Ping timeout: 264 seconds]
xiphias has quit [Ping timeout: 240 seconds]
udon has joined #ruby
xiphias has joined #ruby
clamstar_ has quit [Quit: Computer has gone to sleep.]
vikhyat has quit [Ping timeout: 272 seconds]
TomRone has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
Xiti has quit [Quit: Leaving]
rhys has joined #ruby
TomRone has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
soheil has joined #ruby
benzrf has left #ruby [#ruby]
nanoyak_ has quit [Quit: Computer has gone to sleep.]
<rhys> when i run 'pstree -ac' the ruby threads are marked \040 \040 repeating.
<rhys> where htop displays them correctly
<rhys> does anyone know why this would be?
xiphias has joined #ruby
Megtastique has quit []
<shevy> nyarlshub not entirely sure. I stopped using rdoc like 6 years ago or so
<nyarlshub> what do you use instead?
<shevy> hmm I tend to write extensive tutorials
gja has quit [Quit: This computer has gone to sleep]
Megtastique has joined #ruby
<shevy> for my local use, some .cgi scripts display the things and info I need
TomRone has quit [Ping timeout: 240 seconds]
<shevy> if it's for other people, I usually put instructions into simple markdown .md files
<nyarlshub> hmm
freezey has quit [Remote host closed the connection]
<nyarlshub> interesting
<nyarlshub> thanks
<xibalba> If in California : please sign : https://shameonfeinstein.org
reach has quit [Remote host closed the connection]
meatherl_ has joined #ruby
peregrine81 has quit []
kdaigle has quit [Quit: Connection closed for inactivity]
Galgorth has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
TomRone has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
RoryHughes has joined #ruby
mojjojo has quit [Quit: mojjojo]
<nyarlshub> question on a completely unrelated subject:
RoryHughes has quit [Max SendQ exceeded]
xiphias has joined #ruby
<nyarlshub> in vim (and various vim-emulation modes in emacs) you can jump to the corresponding bracket or brace that's under the cursor position by typing %
<nyarlshub> is there anything like that for do/end delimiters in ruby?
burlyscudd has quit [Quit: Leaving.]
shedd has joined #ruby
peregrine81 has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
jetblack has joined #ruby
RoryHughes has joined #ruby
Xiti has joined #ruby
marr has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
<nyarlshub> hmm.. looks like the "matchit" plugin in vim is a crude first attempt at getting that functionality
<nyarlshub> but, "Actually, it doesn't even seem to be matching ruby syntax at all - it's just matching indent levels. Since I use foldmethod=indent, this is... fairly useless."
tkuchiki has joined #ruby
bradhe has quit [Remote host closed the connection]
arefasla_ has quit [Remote host closed the connection]
xiphias has quit [Ping timeout: 240 seconds]
kevind_ has quit [Quit: kevind_]
Hanmac1 has joined #ruby
xiphias has joined #ruby
kevind_ has joined #ruby
reach has joined #ruby
jsmath has joined #ruby
sivsushruth has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
<jsmath> hi, im' trying to run xor for two arrays
tkuchiki has quit [Ping timeout: 246 seconds]
<jsmath> doesn't seem to work : NoMethodError: undefined method `^' for [185]:Array
ValicekB has quit []
<sivsushruth> can someone please help me with this
Mohan has quit [Ping timeout: 272 seconds]
<jsmath> sivsushruth: goto #rubyonrails
burlyscudd has joined #ruby
tobago has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Mohan has joined #ruby
drago777 has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
monkegjinni has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 240 seconds]
atno_ has joined #ruby
Megtastique has quit []
xiphias has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
atno has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
TomRone has joined #ruby
IceDragon has joined #ruby
jsmath has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
iliketurtles has joined #ruby
vikhyat has joined #ruby
Megtastique has joined #ruby
phipes has joined #ruby
Mars` has quit [Remote host closed the connection]
ValicekB has joined #ruby
<atma111> I can uninstall ruby 1.8.7 to install ruby 1.9.1??
colonolGron has quit [Quit: leaving]
jetblack has quit [Quit: leaving]
udon has quit [Ping timeout: 272 seconds]
<shevy> atma111 YES
<shevy> or use something like gobolinux
<shevy> all programs have their own versioned directory
<atma111> which is the command estoy usando ubuntu server
<shevy> then you never have to remove old versions
<shevy> ask ubuntu!
<shevy> ubuntu do not give you a simple way
<shevy> Hanmac1, can you help atma111 - but answer in spanish :)
<atma111> T.T
<shevy> Hanmac1 uses ubuntu, atma111
Czupa has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
<atma111> Hanmac1 usted puede ayudar quiero desinstalar ruby
<atma111> Hanmac1 estoy usando ubuntu server
kep has joined #ruby
frustrum has quit [Ping timeout: 272 seconds]
kep is now known as ladyboy
Kricir has joined #ruby
deol has quit [Remote host closed the connection]
drago777 has quit [Ping timeout: 240 seconds]
deol has joined #ruby
ambushsabre has quit [Quit: rip]
burlyscudd has quit [Quit: Leaving.]
bricker has quit [Ping timeout: 272 seconds]
drago777 has joined #ruby
bklane has joined #ruby
cj3kim has joined #ruby
phansch has quit [Quit: Leaving]
bradhe has joined #ruby
udon has joined #ruby
michaeldeol has joined #ruby
deol has quit [Ping timeout: 252 seconds]
Faris has joined #ruby
<shevy> atma111 if you use apt-get, ubuntu will usually only install one version
Baluse has joined #ruby
<shevy> that's a big reason why things like rbenv or rvm exist in the first place - because you can not easily mix versions on distributions like ubuntu
<Baluse> has anyone installed ruby on rasberri ?
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
ambushsabre has joined #ruby
matchaw_ has joined #ruby
matchaw has quit [Ping timeout: 260 seconds]
kevind_ is now known as kevind
mordocai has joined #ruby
asteve_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arefaslani has joined #ruby
<atma111> no work apt get
mikepack has joined #ruby
<atma111> 0 updates found
<mordocai> Looking for some ruby + emacs users here. Anyone know why emacs would highlight syntax interpolation in this way http://picpaste.com/syntax_screenshot.png? Is there a good reason? I don't see why the character before the # would be highlighted.
<mordocai> There didn't appear to be any rubyists in #emacs :P
axl_ has quit [Ping timeout: 240 seconds]
<mordocai> s/syntax interpolation/string interpolation/
sayan has quit [Ping timeout: 246 seconds]
drago777 has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
bricker has joined #ruby
alexherbo2 has quit [Ping timeout: 248 seconds]
tkuchiki_ has joined #ruby
drago777 has joined #ruby
<shevy> people here use the superior vim
<mordocai> shevy: Uh huh, tell me that after you try out inf-ruby with emacs :P
<atma111> How do you uninstall Ruby 1.8.7 and install Ruby 1.9.2? ubuntuserver
queequeg2 has quit [Read error: No route to host]
<shevy> atma111 ask the ubuntu guys or use a better distribution or be a man and compile from source
<shevy> or be a chicken
<Jamo> atma111: just install rvm (global installation) and set default ruby to be one installed via rvm
tkuchiki_ has quit [Remote host closed the connection]
<shevy> I am gonna lookup that word now in spanish
tkuchiki has quit [Ping timeout: 252 seconds]
<atma111> rvm
<Jamo> For a Multi-User install you would execute the following:
<Jamo> user$ \curl -sSL https://get.rvm.io | sudo bash -s stable
g0bl1n has joined #ruby
<shevy> atma111 es un gallino :D
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
Mars` has joined #ruby
<atma111> ohh xD
arefaslani has quit [Remote host closed the connection]
<atma111> creo que mejor reinstalo el ubuntu server
interactionjaxsn has joined #ruby
mateNz has joined #ruby
<shevy> wtf man
<shevy> compile ruby from source
<shevy> of course you have to uncripple the packages ubuntu gave you by default without headers
benzrf has joined #ruby
<benzrf> hey, what does ruby have that's like plumbum for python
<shevy> so use google to apt-get install all those devel packages, then
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2
<shevy> benzrf btw I have so many gems because I found it easier to turn the smaller ones into standalone gems, while continuing to work on the larger ones
<shevy> what is plumbum
mehlah_ has joined #ruby
mehlah- has joined #ruby
<atma111> in windows is as easy to uninstall programs
<atma111> ubuntuserver is a headache
Neomex has joined #ruby
<jalcine> lol
echevemaster has quit [Ping timeout: 264 seconds]
<shevy> apt-get remove
<benzrf> shevy: ping
<shevy> or apt-get uninstall
<benzrf> >> "ping"
<eval-in> benzrf => "ping" (https://eval.in/82277)
<jalcine> I can't see how sudo apt-get uninstall X is hard
<shevy> but don't ask me atma111 you decided to use ubuntu
<atma111> u.u
benzrf has quit [Client Quit]
<shevy> jalcine I think because he does not want to learn the english language
<jalcine> on Windows; you aren't even sure if the apps are fully removed
<jalcine> shevy: that might be the biggest thing tbh
<shevy> but he can click to remove things!
<atma111> How do you uninstall Ruby 1.8.7 and install Ruby 1.9.2?
<shevy> click! click! click!
<jalcine> that and being resistant to RFTM
<jxport> How can I find all gem dependencies for a given script?
benzrf has joined #ruby
<shevy> atma111 STOP USING UBUNTU
<benzrf> did anybody answer my question while i was having mega lag
<benzrf> >> "ping"
<eval-in> benzrf => "ping" (https://eval.in/82278)
<shevy> atma111 DOWNLOAD SOURCE. EXTRACT. COMPILE "./configure --prefix=/usr"
<benzrf> shevy: oh you
<jxport> Say, I've got a bunch of ruby files -- and now I want a gemfile for easy installation elsewhere
echevemaster has joined #ruby
<shevy> benzrf you constantly go up and down man
<jalcine> atma111: if you're on ubuntu, install rbenv (sudo apt-get install rbenv)
<benzrf> basicly
mehlah has quit [Ping timeout: 261 seconds]
<benzrf> what does ruby have which is like plumbum in python
<shevy> jxport dunno if there is a simple way... probably Gem module can parse .gemspec files
<shevy> what does plumbum do
mehlah_ has quit [Ping timeout: 240 seconds]
b00stfr31k has quit [Quit: leaving]
<nyarlshub> it plumbs your bum
<benzrf> nyarlshub: cute
<jalcine> that's awesome! I've been needing that
<shevy> lol
alexherbo2 has joined #ruby
<benzrf> >>> from plumbum.cmd import grep, ls
<benzrf> >>> chain = ls['/'] | grep['lib']
<eval-in> benzrf => /tmp/execpad-40dc22e3d261/source-40dc22e3d261:2: syntax error, unexpected '>' ... (https://eval.in/82279)
<benzrf> u'lib\nlib64\n'
<benzrf> >>> chain()
<atma111> ok sudo apt-get install rbenv ..... dowloading..
<eval-in> benzrf => /tmp/execpad-a96d5974b26a/source-a96d5974b26a:2: syntax error, unexpected '>' ... (https://eval.in/82281)
<eval-in> benzrf => /tmp/execpad-73f56c8b6b31/source-73f56c8b6b31:2: syntax error, unexpected '>' ... (https://eval.in/82281)
<benzrf> among other things
shedd has joined #ruby
Mars` has quit [Ping timeout: 252 seconds]
<shevy> omg
<shevy> what are you doing to the poor bot
<benzrf> basically it is full of super nice shortcuts and operator overloading for making script-type stuff easy & fun
<shevy> one day it'll have feelings too man
<benzrf> like it has classes for file paths and you can concat them with /dev/
<benzrf> */
skaflem has quit [Quit: Leaving]
<benzrf> stuff like that
matchaw_ has quit [Ping timeout: 272 seconds]
<benzrf> but especially for external execution
<jalcine> it probably will
eka has joined #ruby
carraroj has joined #ruby
Mars` has joined #ruby
frustrum has joined #ruby
<atma111> ok sudo apt-get install rbenv reaady now?? pls :(
m8 has quit [Quit: Sto andando via]
deception has quit [Quit: Goodbye]
cmedeiros has quit [Ping timeout: 264 seconds]
<nyarlshub> when i did a "gem rdoc --all --overwrite" i got the following error: http://bpaste.net/show/NELIQEtFkICeshID3gny/
udon has quit [Quit: Leaving]
<benzrf> how can you define methods for your instances' instances
<shevy> atma111 now you must use the ruby inside rbenv
<shevy> benzrf huh?
<shevy> def name.method ?
<shevy> singleton?
<benzrf> i.e. how does Struct create methods on Struct.new(:foo).new
shedd has quit [Ping timeout: 240 seconds]
<nyarlshub> any way to get that command to skip bigdecimal and continue for the rest of the gems?
<shevy> >> Struct.new(:foo).new
<eval-in> shevy => #<struct foo=nil> (https://eval.in/82282)
<jxport> shevy: actually I'm looking to generate a gemspec file, really
<shevy> >> Struct.new(:foo).new.new
<eval-in> shevy => undefined method `new' for #<struct foo=nil> (NoMethodError) ... (https://eval.in/82283)
Kricir has quit [Remote host closed the connection]
<shevy> jxport oh
<jxport> shevy: my approach at the moment is just to add a gem line for each require I've got
<benzrf> shevy: how are the methods on Struct.new(:foo).new defined from Struct
eka has quit [Client Quit]
<benzrf> bluh w/e
<shevy> jxport I wrote a script once... generate_gemspec.rb
<shevy> jxport yeah now I see what you mean
<shevy> like you want to traverse all requires?
<shevy> benzrf I never before saw Struct.new(:foo).new
<benzrf> well
<benzrf> FooHolder = Struct.new :foo
<benzrf> afooholder = FooHolder.new
<benzrf> w/e i can figure it out\
phipes has quit [Remote host closed the connection]
<jxport> shevy: I can do it manually no problem -- but I've never used a gemspec before; I don't want to do it wrong
<jxport> I'm kind of unsure how to test that it'd get all of those dependencies on another system, too
ambushsabre has quit [Quit: rip]
ambushsabre has joined #ruby
<jxport> I thought I had a fresh VM to check it out on!
clamstar_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
<shevy> right now I do it manually
bklane has quit [Quit: Leaving...]
<shevy> jxport you simply add to .add_dependency
carraroj has quit [Quit: Konversation terminated!]
<shevy> .gemspec is basically a ruby file in that it uses ruby syntax, so you can use ruby arrays, hashes, constants... etc
<shevy> some people do stuff like
<shevy> .add_dependency MyProject::Dependencies
<shevy> or
zeropx has quit [Quit: has left the room … Or did he?]
<shevy> MyProject::Version
Faris has quit [Ping timeout: 240 seconds]
Faris has joined #ruby
bradhe has quit [Remote host closed the connection]
drago777 has joined #ruby
<jalcine> atma111: don't PM me
<jalcine> atma111: this is the support channel, not my private messages
<jalcine> atma111: after having it installed, run "sudo rbenv install 2.0.0-p247"
<shevy> jxport, for instance this gemspec I just autogenerated. http://pastie.org/pastes/8572141/text it's not complete, lacks docu parts ...
<benzrf> is there a way to just extend one method
<benzrf> so as not to Pollute the Namespace
nanoyak has joined #ruby
cj3kim has quit [Remote host closed the connection]
mikepack_ has joined #ruby
<shevy> benzrf sure? just redefine it?
eka has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
Vivekananda has joined #ruby
<benzrf> shevy: who was that bash @
<shevy> benzrf I dunno but I <3 that
<benzrf> :D
phipes has joined #ruby
<shevy> I actually typo a lot, but before I press enter for IRC, I usually edit my lines
mikepack_ has quit [Remote host closed the connection]
<benzrf> ah
<shevy> that sentence above had 3 errors which I corrected just now... my fingers have their own brain :P
kostine has joined #ruby
freezey has joined #ruby
kevind has quit [Quit: kevind]
<Mars`> if you're getting data from an api (i.e. twitter) and don't plan on caching it in a database, should you create a model for it?
<jalcine> what's the point of a model if you're not storing it into a DB or a cache?
kevind has joined #ruby
g0bl1n has quit [Ping timeout: 248 seconds]
<jxport> shevy: thanks
clamstar_ has quit [Quit: Computer has gone to sleep.]
<shevy> I like models. They tend to be good looking.
Hobogrammer_ has joined #ruby
<Mars`> jalcine: idk. so I can abstract away all the GET's and POSTS and data validation stuff from the controller. But maybe a model isn't the best way to go
_bart has joined #ruby
ArchBeOS-work has joined #ruby
<Mars`> in other frameworks, I might do like a Client library or something, that would handle that sort of stuff.
<jxport> I like my models skinny
<h0rrorvacui> jxport what do you mean like everything in the controller or do you abstract domain objects?
iamjarvo has quit [Remote host closed the connection]
<h0rrorvacui> extract* not abstract
cj3kim has joined #ruby
iamjarvo has joined #ruby
Megtastique has quit []
<jxport> h0rrorvacui: I was talking about another kind of model -- but I would agree with abstracting domain objects
<h0rrorvacui> ohh you was making a joke :P
<canton7> if you're going to be manupulating that data, yes I'd represent it as an object, and that'll turn into a model if it needs to be one
clamstar_ has joined #ruby
clamstar_ has quit [Max SendQ exceeded]
zumba_addict has quit [Quit: zumba_addict]
mateNz has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<jxport> h0rrorvacui: I like my jokes to have truth on multiple levels
clamstar_ has joined #ruby
mneorr has joined #ruby
zigomir has joined #ruby
clamstar_ has quit [Client Quit]
iamjarvo has quit [Ping timeout: 248 seconds]
prc has joined #ruby
phipes has quit []
lkba has quit [Ping timeout: 272 seconds]
mdpatrick has quit [Quit: No Ping reply in 180 seconds.]
vongrippen has quit [Quit: No Ping reply in 180 seconds.]
vongrippen has joined #ruby
alpha123 has quit [Quit: Trying http://www.haiku-os.org/ on real hardware.]
drago777 has quit [Ping timeout: 240 seconds]
lethjakm1 has quit [Ping timeout: 241 seconds]
mdpatrick has joined #ruby
<benzrf> wait a sec
<benzrf> in a case, is it condition === testing thing?
octoberry has joined #ruby
<slash_nick> benzrf: yeah
dayepa has quit [Quit: dayepa]
<benzrf> ah
thumpba_ has quit [Remote host closed the connection]
Neomex has quit [Quit: Neomex]
thumpba has joined #ruby
<h0rrorvacui> benzrf I often don't find I need to use === but instead just leave it out and use a literal
mehlah- is now known as mehlah
drago777 has joined #ruby
<h0rrorvacui> looks better imo
<benzrf> wait, case is a METHOD?!
<benzrf> I thought it was a keyword?
<Mon_Ouie> No it isn't
<Mon_Ouie> It's just a documentation trick
<benzrf> ah
<Mon_Ouie> It's the "keywords" section of the documentation if you look at the page more closely
<benzrf> >_>
TomRone has quit [Ping timeout: 240 seconds]
sivsushruth has quit [Ping timeout: 240 seconds]
thumpba has quit [Ping timeout: 252 seconds]
KS has joined #ruby
thumpba has joined #ruby
bradhe has joined #ruby
TomRone has joined #ruby
sivsushruth has joined #ruby
St_Marx has quit [Ping timeout: 240 seconds]
<benzrf> haha I just made a pattern matching thingy
<benzrf> it works
<benzrf> :D
mikepack has joined #ruby
<h0rrorvacui> regex?
jpodlech has joined #ruby
<benzrf> no, fp-style
<h0rrorvacui> awesome
<benzrf> sarcasm?
<h0rrorvacui> no...
<benzrf> o:
<benzrf> thanks
jpodlech has left #ruby [#ruby]
<benzrf> let me make a quick demo p:
TomRone has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
<shevy> sarcasm or orgasm
<shevy> that is the question
<benzrf> neat
codenapper has joined #ruby
<h0rrorvacui> I'm impressed by ruby and how easy it is to recreate rspec. It is seriously so simple to make DSLs in ruby its fun.
octoberry has quit [Ping timeout: 240 seconds]
ladyboy has quit [Quit: WeeChat 0.4.2]
<benzrf> i know right?
TomRone has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
coca_rails has joined #ruby
<benzrf> oh shit it looks like I messed something up :\
mikepack has quit [Ping timeout: 246 seconds]
xiphias has joined #ruby
lukec has quit [Quit: lukec]
cj has joined #ruby
<cj> hey folks
osvico has joined #ruby
<cj> anyone feel like helping me figure out how to make dist in a ruby project?
grep_awesome is now known as grep_away
<benzrf> make dist?
ambushsabre has quit [Quit: rip]
<h0rrorvacui> what do you mean by dist? distribution?
polaco is now known as polaco_zZz
pleal has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
drago777 has quit [Ping timeout: 240 seconds]
lmickh has quit [Quit: lmickh]
<benzrf> hey
<cj> yeah. most autotools and perl build environments have a target called 'dist'
<benzrf> how can I paste a pry session w/ syntax highlighting
<cj> I know that ruby prefers Rakefiles and Gemfiles
mehlah has quit [Ping timeout: 260 seconds]
<cj> I want to know how to build a distributable package given a Gemfile
<cj> benzrf: blog it?
<benzrf> isnt a gemfile a distributable package?
<benzrf> cj: huh?
<cj> shoot dude. I'm a perl guy. I don't know what a Gemfile is.
<benzrf> *a gem
<benzrf> derp
<benzrf> cj: a gemfile is a deps file
<slash_nick> cj... you can easily build a gem with bundler... bundle gem <gem name>
<benzrf> well, a Gem is
<benzrf> *Gemfile
<benzrf> a .gem file is a distributable package
<benzrf> it's a tad obtuse
<benzrf> so:
<benzrf> benzrf@benzrf-laptop:~/project-dir$ cat Gemfile
<benzrf> gem 'foo'
<benzrf> but project.gem would be a package
shedd has joined #ruby
<benzrf> gem 'foo' there means that this project depends on the gem 'foo'
drago777 has joined #ruby
<benzrf> cj: that is a Gemfile
<benzrf> it contains the deps for the thing you're using
<benzrf> what exactly do you want to do with it?
<cj> I want to put changes to the daemon in this directory on about 60 systems which run an older version.
<shevy> cj first, create a .gemspec file
<shevy> then do:
<benzrf> huh?
<shevy> gem build *.gemspec
<cj> what does a .gemspec file look like?
<slash_nick> an example ^
decoponyo has quit [Read error: Connection reset by peer]
<shevy> cj if you still use perl, write a small perl script that generates that for you. or write one in ruby :D
<cj> can't seem to connect to pastie.org
zumba_addict has joined #ruby
<benzrf> cj: is this already a gem?
<slash_nick> cj: the link i provided is very similar
pleal has quit [Remote host closed the connection]
<benzrf> cj: how was it deployed to the 60 systems?
pleal has joined #ruby
decoponio has joined #ruby
<cj> benzrf: dunno. you'll have to ask the guy whose contract they just failed to renew.
<benzrf> ugh
tspike has joined #ruby
<benzrf> cj: what these guys are telling you to do is how to create a gem from the project, a gem being a package like .deb
<benzrf> cj: so if you want something to push out and run install with, cool
<benzrf> but if the previous version was not installed as a gem, that isn't going to help a ton
<benzrf> you'd still have to remove it and so on
reach has quit [Remote host closed the connection]
dunc has joined #ruby
pleal has quit [Read error: Connection reset by peer]
shedd has quit [Ping timeout: 272 seconds]
pleal has joined #ruby
<benzrf> h0rrorvacui: check out muh pattern matching https://gist.github.com/benzrf/ee1df8a682e13f59a05c
<nyarlshub> cj: the above pastie.org paste -> http://bpaste.net/show/tqTagpHFoIyZUAwABUPV/
<h0rrorvacui> benzrf will do
mneorr has quit [Remote host closed the connection]
<cj> all I've got in the root directory is doc/ lib/ Gemfile Gemfile.lock lib README.md foo.rb
Part_ has quit [Quit: Lost terminal]
<cj> I'm thinking it was tarred up, scp'd and then untarred.
<benzrf> cj: then turning it into a gem is not going to help unless you choose to switch to that deployment strategy
<cj> I suppose I could reproduce this awful implementation decision. ;-)
<cj> but first, lunch!
<benzrf> cj: Gemfile is just the dependency list
<cj> it would probably be a better thing to do ;-)
<h0rrorvacui> cj just git repo the shit and git pull on them all :P
<benzrf> cj: if you use 'bundle install' in the project dir it will install all the project's deps from the gemfile
grep_away is now known as grep_awesome
<shevy> cj, yeah this is a typical layout
<benzrf> h0rrorvacui: Git Is Not A Deployment Tool
<benzrf> :-D
<cj> they *are* in a git repo... that would probably work well.
<h0rrorvacui> true
<cj> benzrf: SURE IT IS!
pskosinski has joined #ruby
culturel_ has joined #ruby
* cj ducks
<cj> but food!
<benzrf> alright
<benzrf> >project not done
culturel_ has quit [Max SendQ exceeded]
<benzrf> >leaving the comp
<benzrf> clearly unlet
<benzrf> *leet
jamblack has joined #ruby
joaoh82 has joined #ruby
<benzrf> cj: have you seen Ansible? ive been looking at it and it looks super awesome and maybe what you want
vlad_starkov has quit [Remote host closed the connection]
<benzrf> cj: it is a configuration management thingy [or can be used as one] but it works by running commands and stuff remotely, so there's no client software needed
chrisja has quit [Quit: leaving]
<benzrf> you only need to set up anything on the controlling system
<benzrf> B)
lewix has quit [Remote host closed the connection]
<benzrf> [assuming the target systems have python 2, which every mainstream distro does afaik]
drago777 has quit [Ping timeout: 240 seconds]
<nyarlshub> puppet is like ansible, but ruby-based
<h0rrorvacui> makes me think of puppet and capistrano
mneorr_ has joined #ruby
<nyarlshub> and chef
dunc has quit [Remote host closed the connection]
<benzrf> yes it is in the same class
<h0rrorvacui> and chef yeah
<benzrf> but ansible, as noted, needs no client software
dunc has joined #ruby
<benzrf> you can just install it on the controller and youre done with setup
<nyarlshub> salt is another, similar python-based tool
<benzrf> also it doesnt need you to know python
<benzrf> it uses a simple yaml config language
<benzrf> h0rrorvacui: thoughts on my pattern thingy
culturel_ has joined #ruby
cbetta_afk is now known as cbetta
sivsushruth has quit [Ping timeout: 272 seconds]
<h0rrorvacui> Looking at it right now
culturel_ has quit [Max SendQ exceeded]
drago777 has joined #ruby
<h0rrorvacui> What you making? IRC stalker :P?
<benzrf> nah
<nyarlshub> benzrf, i haven't used ansible, but i'd bet it still needs some client-side setup, like setting up ~/.ssh/authorized_key files, giving the user you want to deploy with sudo rights, etc
<benzrf> well
<benzrf> :P
<benzrf> i think we're assuming those are already there
<benzrf> given that you're probably switching from something else
<nyarlshub> you don't necessarily need those with puppet
<nyarlshub> but you do have to get the puppet agent on the nodes
culturel_ has joined #ruby
<nyarlshub> so it's a tradeoff
ckinni has joined #ruby
<nyarlshub> there are other tradeoffs as well
<nyarlshub> i've heard it argued that puppet is more suitable for larger/more complex environments
culturel_ has quit [Max SendQ exceeded]
<benzrf> i feel like putting the agent is probably more of a setup than having authorized keys
<nyarlshub> while ansible and salt are good for simple environments
<h0rrorvacui> What about chef?
<nyarlshub> benzrf: putting on the puppet agent is usually not much more involved than "apt-get puppet"
<benzrf> :P
<nyarlshub> chef is all ruby-based... while puppet uses its own ruby-like DSL
<nyarlshub> also, i've heard that chef doesn't give you all the pretty guis and reporting capability that puppet enterprise does
<nyarlshub> but i don't know chef myself... nor salt, nor ansible.. and only a little puppet
_bart has quit [Remote host closed the connection]
Neomex has joined #ruby
<nyarlshub> so take what i say with a grain of salt
<h0rrorvacui> I'm not familiar with any of them, tbh I'm going to use docker and haven't looked into automation.
culturel_ has joined #ruby
dunc has quit []
zumba_addict has quit [Quit: zumba_addict]
grep_awesome is now known as grep_away
culturel_ has quit [Max SendQ exceeded]
meatherl_ has quit [Read error: Connection reset by peer]
zumba_addict has joined #ruby
habanany has quit [Ping timeout: 264 seconds]
<nyarlshub> yeah, docker looks pretty handy
<nyarlshub> i'm probably going to be using both docker and puppet together
culturel_ has joined #ruby
jamblack has quit [Quit: jamblack]
Mars` has quit [Remote host closed the connection]
culturel_ has quit [Max SendQ exceeded]
charliesome has joined #ruby
<h0rrorvacui> I'm guessing puppet is the most popular though right?
culturel_ has joined #ruby
reach has joined #ruby
vlad_starkov has joined #ruby
arturmoczulski has joined #ruby
nyarlshub_ has joined #ruby
<benzrf> it looks like ansible is simpler so there
pleal has quit [Remote host closed the connection]
amsi has joined #ruby
<benzrf> ok so basically i only read http://probably.co.uk/puppet-vs-chef-vs-ansible.html
<benzrf> sure me
<benzrf> *sue
nyarlshub has quit [Ping timeout: 240 seconds]
<h0rrorvacui> I'm looking at popularity just simply because I want employment opportunities from it :P
<nyarlshub_> if your needs are simple, ansible or salt are probably good enough
<nyarlshub_> h0rrorvacui, same here
echevemaster has quit [Ping timeout: 240 seconds]
<nyarlshub_> but there's no rule that says you couldn't use both
<nyarlshub_> if you have the time to learn both
zumba_addict has quit [Quit: zumba_addict]
<h0rrorvacui> I'll probably try them all out. I'm unemployed and a struggling self employed nobody so I got all the time in the world.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<h0rrorvacui> Well I do mom and pop websites for a few bucks
kenneth has joined #ruby
johnny22 has joined #ruby
Neomex has quit [Quit: Neomex]
<nyarlshub_> i've heard headhunters ask if i know puppet or chef
havenwood has joined #ruby
<nyarlshub_> never heard them mention salt or ansible
ffranz has quit [Quit: Leaving]
<h0rrorvacui> Yeah I got an email from a recruiter wanting to know if I had similar skills that they were in demand.
<nyarlshub_> same with job ads.. don't remember seeing salt or ansible in any of them
breakingthings has quit []
g0bl1n has joined #ruby
<nyarlshub_> but saw some with puppet and chef
Azure has quit [Ping timeout: 260 seconds]
<benzrf> bah
ua_ has quit [Quit: Leaving]
<h0rrorvacui> salt is ahead but because of salt in food industry
<h0rrorvacui> or something
echevemaster has joined #ruby
<h0rrorvacui> means nothing when you look at the hits though
<nyarlshub_> otoh, back in the day everyone was using perl.. and you couldn't find any jobs that wanted you to know python or ruby
ambushsabre has joined #ruby
<h0rrorvacui> puppet comes up with companies with the name puppet in them
<h0rrorvacui> so that graph is shit
arturmoczulski has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
arturmoczulski has joined #ruby
TigerWolf has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
arturmoczulski has left #ruby [#ruby]
arturmoczulski has joined #ruby
Mars` has joined #ruby
grep_away is now known as grep_awesome
mordocai has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
mehlah has joined #ruby
lethjakm1 has joined #ruby
<h0rrorvacui> http://www.google.com/trends/explore#q=puppet%20enterprise%2C%20AnsibleWorks%20Ansible%2C%20Enterprise%20Chef%2C%20SaltStack%20Enterprise%20
<h0rrorvacui> looks like a battle between chef and puppet
<h0rrorvacui> but thats using enterprise versions
gauteh has joined #ruby
agent_white has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
iliketurtles has joined #ruby
<dorei> hello
coca_rails has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 264 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
<dorei> is there another way for: some_array.each_slice(3).to_a ?
coca_rails has joined #ruby
fedesilva has quit [Ping timeout: 248 seconds]
rootshift has quit [Quit: rootshift]
TomRone has joined #ruby
klip has quit [Remote host closed the connection]
brtdv has quit []
lukec has joined #ruby
arturmoczulski has quit [Quit: arturmoczulski]
baordog_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
barratt has joined #ruby
charliesome has joined #ruby
iliketurtles has quit [Ping timeout: 272 seconds]
brtdv has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
asobrasil has left #ruby [#ruby]
aspires has quit []
pskosinski has quit [Quit: Til rivido Idisti!]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has quit [Quit: Leaving.]
claymore has quit [Quit: Leaving]
echevemaster has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
KS has quit [Ping timeout: 272 seconds]
nyarlshub_ is now known as nyarlshub
nyarlshub has quit [Quit: Leaving]
kitak has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
kitak has joined #ruby
dr_bob has quit [Quit: Leaving.]
KS has joined #ruby
devdazed has quit [Quit: Bye]
Jetchisel has joined #ruby
johnny22 is now known as jrobeson
echevemaster has joined #ruby
<atma111> ruby necesita lamp server ?
<jrobeson> no
<benzrf> atma111: lamp == linux/apache/mysql/php
<benzrf> by definition that's not ruby
<jrobeson> p could be php/python/perl
m_3 has joined #ruby
<terrellt> So...what..a larm stack?
<benzrf> mehlah:
<benzrf> *meh
dapz has joined #ruby
IceDragon has joined #ruby
<benzrf> terrellt: i prefer lnpr myself
<terrellt> Marlp. Mysql,/Apache/Ruby/Linux/Passenger
<benzrf> if possible
<benzrf> well ok that's a lie, I don't know how to use nginx so I just stick to apache
<benzrf> >_>
<Rylee> You could always go for a lnrmm
<Zhwazi-> I like FNRP.
<benzrf> but I acknowledge that nginx is superior
<benzrf> Zhwazi-: ?
<Zhwazi-> FreeBSD/nginx/Ruby/Postgres
<terrellt> I use lurmn personally.
<Rylee> mention a web server and the entire world suddenly becomes active
<Rylee> lolz
<terrellt> Linux/Unicorn/Ruby/MariaDB/Nginx.
<shevy> Rylee yea
interactionjaxsn has quit [Remote host closed the connection]
<benzrf> Zhwazi-: nice
<benzrf> I never got into bsd cuz frankly i don't see it being worthwhile when linux has so much adoption
<benzrf> ^argument for windows i know shut up
lkba has joined #ruby
<Rylee> lul
ambushsabre has quit [Quit: rip]
workmad3 has quit [Ping timeout: 248 seconds]
<Zhwazi-> I used to be into Linux but they seem to rewrite every subsystem every 3 years and I got tired of relearning it
<Zhwazi-> At least the major distros change everything out annoyingly quickly
<benzrf> its GUHNOO slash LIHNUCKS
<benzrf> GOD
jeffreyio2 has quit [Read error: Connection reset by peer]
Zhwazi- is now known as Zhwazi
<h0rrorvacui> why were you depending on the the concrete implementations and not the abstractions Zhwazi- :P
Zhwazi has quit [Changing host]
Zhwazi has joined #ruby
mosscollum has quit [Quit: mosscollum]
culturel_ has joined #ruby
<Zhwazi> I would have used the "abstractions" if you want to call it that, but they became unreliable, complex, and autoconfigured themselves in ways I didn't want, and became resistant to attempts to make them behave as I wanted.
<h0rrorvacui> I know what you mean but debian is relatively uncharacteristic of what you describe :P
<Zhwazi> I am not a big fan of "automagic" :P
<Zhwazi> Debian is one that I didn't use a whole lot
<h0rrorvacui> But you chose right if you want little change
<Zhwazi> I'm sure there are exceptions, as there seem to be as many distros as there are tastes for software behaviors :P
<h0rrorvacui> Nothing wrong with the devil
<Zhwazi> I'm content to have the one single best-practice way of doing it that doesn't have any obvious deficiencies and is simple enough that any unexpected behavior can be quickly corrected without going past the manpage of the program or component in question
cj3kim has quit [Remote host closed the connection]
<Zhwazi> I had difficulty finding that in Linux
vlad_starkov has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
Megtastique has joined #ruby
<Zhwazi> And yeah, the only major changes to FreeBSD that have affected me are the new packaging system and some changes to the wifi system that made me change the configs for a couple of things.
<canton7> You might like arch :) Although they do change things from time to time, they try and keep things simple
mosscollum has joined #ruby
<Zhwazi> I've heard, I understand they and Gentoo like to try to keep to the BSD style of things :P
vlad_starkov has joined #ruby
Steven_ has joined #ruby
<Zhwazi> Gentoo was the last distro that I used regularly
<h0rrorvacui> Zhwazi I don't know he wouldn't probably like arch seeing as it is bleeding edge and changes distro wise aren't common
<h0rrorvacui> but application wise they are abundant
<h0rrorvacui> I meant that to canton7
<Zhwazi> I'm more concerned with the changes being manageable, correctable, predictable, and well documented, and ideally well explained, and all of these are best served by the system being simple.
cj3kim has joined #ruby
<canton7> yeah, I was sure to mention that :) You do need to spent a bit of effort keeping up with it, so it probably doesn't best BSD in that respect, but I do have a lot of respect for their attitude to not abstracting away things
thumpba has joined #ruby
<canton7> the arch wiki is generally regarded as the best
<h0rrorvacui> yeah was about to say that
echevemaster has quit [Ping timeout: 252 seconds]
unstable has left #ruby [#ruby]
<Zhwazi> Arch wasn't popular yet when I switched away from Linux
kostine has quit [Remote host closed the connection]
emocakes has quit [Quit: Linkinus - http://linkinus.com]
<Zhwazi> Gentoo was still eating Arch's lunch and Arch was this thing-sorta-like-gentoo
<h0rrorvacui> Arch has underwent a lot of changes in regards to installation process
<canton7> it's still not "popular" tbh, and I wouldn't recommend it to anyone who hadn't been through a few distros already
nanoyak has quit [Ping timeout: 240 seconds]
<h0rrorvacui> But they aren't really that different for long time users
<Zhwazi> Popular in the sense of mindshare, not in the sense of users
oz has joined #ruby
<canton7> gotcha
echevemaster has joined #ruby
<canton7> but anyway, BSD's good, and I'm not going to try and convince you away from it
brtdv has quit []
cj3kim has quit [Remote host closed the connection]
<benzrf> i prefer the gpl to bsd myself but im sure ill be changing my mind when i get a job someday writing proprietary software
<benzrf> WOOHOO
<canton7> (the OS, not the license ;))
nobitanobi has joined #ruby
parshap_ is now known as parshap
emocakes has joined #ruby
<h0rrorvacui> besides if he has been away from linux long enough he has missed the whole upstart and systemd
<h0rrorvacui> and might not like them
iliketurtles has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grep_awesome is now known as grep_away
<h0rrorvacui> I've been away from bsd for a long time so I don't know how that is going
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<KK4MGV> so, correct me if any of this is wrong (first day using ruby), but to use gems on 1.8 i need to require 'rubygems', then gem 'mygem', then require 'mygem', whereas on 2.0 i just need to require 'mygem'
<KK4MGV> does this mean that i should just always do the former if i ever might want to be backwards compatible?
nanoyak has joined #ruby
<canton7> KK4MGV, the 'gem mygem' thing is for bundler only, not for rubygems
<canton7> and don't bother supporting 1.8, it's going end-of-life really soon (if it hasn't already)
<ddd> or do you mean 'gem install mygem'?
monkegjinni has joined #ruby
<KK4MGV> nope, i mean gem mygem
<KK4MGV> i get a NameError if i dont
<ddd> thats both 1,8 and 1.9 regardless. the difference is 1.9 incorporates gem by default
<ddd> ah ok
postmodern has joined #ruby
mosscollum has quit [Quit: mosscollum]
<canton7> NameError when you do what?
<ddd> thats what i get for sticking my nose in hehe
<KK4MGV> nameerror when i require 'rubygems', require 'mygem' (without gem 'mygem' inbetween)
vlad_starkov has quit [Remote host closed the connection]
<canton7> that really shouldn't be. pastie the full file and the exact error message?
<KK4MGV> sure, 1sec
zoo-zed has joined #ruby
vlad_starkov has joined #ruby
<benzrf> i wonder if it would be possible to make something that feels like ruby but uses Io's basic semantics
<benzrf> o:
g0bl1n has quit [Ping timeout: 248 seconds]
<zoo-zed> Possible for you or for someone else? Rhetorical question or just musing?
<ddd> Io is that like Go or something? I've heard it mentioned a few times but did zero research to see what it is like
<benzrf> Io is the most reflective and metaprogrammable language EVRF
nanoyak has quit [Ping timeout: 246 seconds]
<benzrf> maybe less than lisp idk
<ddd> i've enough on my radar scope with ruby and rails to add anything else hehe. or i'll never get *anything* done :)
jwest has quit [Quit: WeeChat 0.4.1]
<benzrf> it is kind of like smalltalk but it is 100% prototype-based
<ddd> interesting
<benzrf> variables are just slots in the current object's context
axl_ has quit [Quit: axl_]
<benzrf> so that means that you can manipulate scopes n stuff
<benzrf> also, method-call arguments are not evaluated unless the method requests it
<benzrf> meaning that you can pass code directly
<ddd> in ruby context is that like a BasicObject you slot just what you want into?
zoo-zed has quit [Client Quit]
mehlah has quit [Ping timeout: 272 seconds]
<benzrf> no, by slots I mean attrs/methods
<ddd> ah
g0bl1n has joined #ruby
<benzrf> in Io, 'if' is just a method
<benzrf> it looks like this:
<benzrf> if(foo > 2, "what" println)
<benzrf> all exprs are slot lookups
<ddd> hmm interesting (god i need to find a new word, but damn it is!)
<benzrf> which is sort of the same thing as method calls?
IceDragon has quit [Ping timeout: 248 seconds]
<ddd> yeah, thats how i'm thinking of them
<benzrf> so when I say 'foo', that's looking up the slot foo in the object you're currently inside of
<ddd> from what you're sauing
<benzrf> foo := 3 is just sugar for calling setSlot or something
<ddd> powershell for windows seems a lot like that last line
<benzrf> and self is just a method that returns self
<benzrf> althought it is not always accessible
<ddd> regardless of windows or not, similar?
<benzrf> idk
<benzrf> anyway
<benzrf> since all vars are slots on objects
<benzrf> that means that you can do absurdly awesome magic
nanoyak has joined #ruby
gauteh has quit [Ping timeout: 240 seconds]
<ddd> yoou got a url for a github proj based on Io?
<ddd> might be cool to dumpster dive
iliketurtles has quit [Ping timeout: 272 seconds]
<benzrf> for example, when you call a method it runs the code you defined, setting the current object to a 'locals' object with the receiver under the slot 'self' and as a prototype
<h0rrorvacui> Io was one of the languages in the 7 languages in 7 weeks book
<benzrf> so you can lookup slots in the receiver directly, but setting them can only be done through self
<ddd> ive got it but haven't had time to read it yet
<benzrf> ddd: do you know about prototypes/
<ddd> extremely vague concepts
<benzrf> the basic idea is
<ddd> nothing extensive
<benzrf> on any object you can call 'clone'
<h0rrorvacui> think javascript object creation
<benzrf> which returns a new object
<jalcine> no, it's a keyword
<benzrf> that new object will foward slot lookups to the obj it was cloned from if it doesn't have it itself
<benzrf> and that is all
<jalcine> wait sorry was reading backlog
<KK4MGV> https://linxb.in/raw/6c3ac4f.txt <== "odd" require 'mygem' behavior
<KK4MGV> canton7: ^
<benzrf> ddd: basically you use regular objects as classes
<ddd> oh snap! thats pretty cool! so if the clone doens't have it and the parent doesn't have it what then/
<h0rrorvacui> vomits?
<benzrf> then the parent forwards it up the prototype chain
<benzrf> this is how JS works
<ddd> that would gen an error i would imagine. what happens in io?
<ddd> ah, i don't really know JS either. I'm a throwback., C, some C++, a but of java, and ruby are really all i know beyond shell scripting
<benzrf> python uses a prototype-ish system, but it's set up to only allow you to use them like classes
<benzrf> which is total BS
<benzrf> cool
<ddd> so an object is still instntiated from a class, but then afterwards you use the objecs themselves as classes?
<ddd> or class like?
<benzrf> Io> Object bar := 3
<benzrf> ==> 3
<benzrf> ==> Object_0x128ef30:
<benzrf> Io> foo bar
<benzrf> Io> foo := Object clone
<benzrf> ==> 3
<benzrf> Io> foo bar := 2
<benzrf> ==> 2
<benzrf> Io> foo bar
<benzrf> ==> 2
<benzrf> Io> Object bar
<benzrf> ==> 3
<benzrf> Io>
<benzrf> oh shit i forgot to pastebin -.-
<benzrf> ddd: there is no such thing as a class in Io, or in JS
<benzrf> just objects
vlad_starkov has quit [Remote host closed the connection]
<ddd> that is insanely cool!~
<benzrf> i know, right?
<benzrf> =]
<ddd> how do you define the initial object though?
<benzrf> it's usually set up before hand
<h0rrorvacui> You can do something similar in ruby by just opening up objects and cloning them
<benzrf> a builtin
<ddd> like in ruby yoiu can def object.method
<benzrf> i really wish prototype-based OOP were more mainstream
michaeldeol has quit [Remote host closed the connection]
<benzrf> it can be used just like class-based OO plus it's handy for cloning and stuff
<ddd> how do you instantiate the first object, and then afterwards is it the same as with def object.method for adding/slotting?
<benzrf> hmm?
mosscollum has joined #ruby
<ddd> not sure how to properly explain that thought thread
<benzrf> objects already exist, created by the lang
<ddd> lemme see if i can refine that
<benzrf> i.e. Object is an object
<ddd> right, as it is in ruby
<benzrf> to create a new object you can clone an old one
<benzrf> if you want a perfectly generic object, clone Object
<ddd> ok, that makes it easier to ask my question., sec lemme type it
<ddd> its a concept issue so fgive me a sec
<benzrf> in python, you cannot do direct cloning, but classes behave more or less like prototypes
mordocai has joined #ruby
<benzrf> i.e. they are sources of attrs if not found in the instance
<benzrf> so you can do something like what I pasted earlier in python
<benzrf> although not with the builtin classes because those are frozen
<ddd> lang creates Object. you clone Object (like obj = Object.clone) then on the object you slot in var and methods, and to get another with those same atrs and methods you .clone the obj with that.
<benzrf> right
<benzrf> although Io borrows smalltalk's convention of denoting slot lookup with spaces
<h0rrorvacui> Its so simple it sounds complicated
kitak has quit [Remote host closed the connection]
<h0rrorvacui> lol
<ddd> and if the cloned obj or the parent doesn't have say myvar or mymethod, it goes up the chain to Object and if Object doesn't have it.. what then?
<benzrf> error of curse
<benzrf> *course
<benzrf> just like how method lookup in ruby goes up the class chain to BasicObject
<benzrf> then pukes
<h0rrorvacui> well in javascript you state what is the parent of the object
<ddd> and the syntax like := are mainly syntactic sugar for longer named methods
<benzrf> right
<ddd> which is what Powershell does
<ddd> and there's no writing blueprint classes at ALL in io?
<benzrf> blueprint classes?
<ddd> defining classes that get instantiated on startup of an app say
mmitchell has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 240 seconds]
<benzrf> not sure what you mean
<ddd> nm, i answered my own question in the head
nobitanobi has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
platzhirsch has joined #ruby
<benzrf> ok
<ddd> i like it.
<benzrf> Object string := method(self asString)
<benzrf> i know :D
IceDragon has joined #ruby
<ddd> takes a new way of thinking
<benzrf> ^args are not evaled unless requested, so you can define methods that take code
<benzrf> self is not magic
spider-mario has quit [Read error: Connection reset by peer]
<benzrf> method returns an object that, when activated, runs the code that you passed it
<benzrf> it runs it in the context of a new object
<ddd> well you can do that now in ruby can't you? pass a block to a method
<benzrf> which uses the receiver as a prototype
<benzrf> ddd: yes, but regular args
<benzrf> no special syntax at all
<benzrf> so like
benlieb has joined #ruby
<benzrf> add := method(a, b, a + b)
<ddd> and that creates a method named method to the add object where the method method is a block of code to eval (but only done when called so the result isn't stored in the object, the code isn't actually evaluated *until* method method is called)
<ddd> making sure i'm understanding
<benzrf> no
<benzrf> well not exactly
<benzrf> add is a new slot
<benzrf> method is a method that creates a method object
<benzrf> it's like rpoc
<benzrf> *proc
<benzrf> i'm not 100% sure how it works, but some objects can be 'activated'
<benzrf> which means that when they're looked up directly, they get activated instead of returning themselves
<benzrf> the value returned by 'method' acts like that
<benzrf> if you use 'foo bar', bar will be activated if possible. whereas 'foo getSlot("bar")' will give you whatever bar is
<ddd> thats a weird concept to get down. but i tink i understand
<ddd> oh ok now that makes sensse
<ddd> err sense
ss_ has joined #ruby
<h0rrorvacui> Just look into object oriented javascript
jonathanwallace has joined #ruby
<benzrf> Io> add := method(a, b, a + b)
<benzrf> ==> method(a, b, a + b
<benzrf> ==> 5
<benzrf> )
<benzrf> Io> add(2, 3)
<h0rrorvacui> Thats basically a c style syntax with prototyping
<KK4MGV> crockford's book covers it really well
<benzrf> the values a, b, and a + b are passed verbatim without being evaled.
<ddd> getSlot returns whatever the def for bar *is*, whereas calling bar directly returns the result that whatever is in bar generates
<benzrf> method never tries to eval them
<benzrf> ddd: unless bar is not activatable
<benzrf> in which case it just returns it
<benzrf> i.e. numbers
tyl has joined #ruby
<h0rrorvacui> KK4MGV what book is that? I'm not good with remembering author names.
<KK4MGV> the good parts
<KK4MGV> the oreilly one
<h0rrorvacui> ahh yeah
<h0rrorvacui> Highly recommend that book.
deol has joined #ruby
<ddd> hehe i might have to adjust my todo list and read up on it
<benzrf> ddd: so the current object that the code of the method is evaled within is generated whenever you call the method
<benzrf> it has the 'self' slot set to the receiver, and the same object as one of the prototypes
<benzrf> so you get slots without explicit self, but setting will not affect self
<benzrf> :D
<ddd> so the object 'owning' that method doesn't even exist until its method is actually called?
<benzrf> very VERY clever
<benzrf> no, it does
<ddd> did i get that right?? thats insanely cool!
<benzrf> the object owning it is Lobby
<ddd> oh
<benzrf> add is a slot on Lobby
<ddd> yeah but thats a placeholder object right?
<benzrf> Lobby exists from the beginning
<benzrf> oh wait
<benzrf> the object that the code is evalled in is different from the one that it is called on
<benzrf> if I do 'foo bar', the code for bar will be evalled in a special object created for that invocation
benlieb has quit [Quit: benlieb]
<benzrf> which has 'foo' as a proto, and as the value of the slot 'self'
mikepack has joined #ruby
<ddd> i mean if obj.mymethod hasn't been called yet, obj dfoesn't yet exist, but the reference to the fact that there is an obj object and that it has a method obj is stored in lobby?
<benzrf> nooo
<ddd> meaning you'd save memory because then just a reference exists
<h0rrorvacui> ddd the book KK4MGV listed is short too
<benzrf> the code in the REPL is evalled inside the object Lobby
<h0rrorvacui> it gets right to the point
mikepack has quit [Read error: Connection reset by peer]
<h0rrorvacui> and javascript will benefit your rails
<benzrf> so when I say 'add', that's the same as 'Lobby add'
<ddd> hehe
mikepack has joined #ruby
<benzrf> foo bar := baz is foo setSlot("bar", baz)
<ddd> Lobby is the 'anonymous object'?
<benzrf> ddd: no, it's just the host for the REPL
<ddd> ok
<benzrf> code in ruby is always run inside an object
<ddd> where is this damned book?
<benzrf> and method calls without a receiver will be called on the object you're in
<benzrf> same in io_syl
<benzrf> *Io
jonathanwallace has quit [Ping timeout: 240 seconds]
<benzrf> in ruby:
<benzrf> def add(a, b); a + b; end; add(1, 2)
<ddd> hehe I want to read this cause I think i might understand a bit if i have more of a mental model rather than trying to build it on the fly from your explanation
<benzrf> in IoL
samsonasu has quit [Quit: samsonasu]
<benzrf> *Io:
<benzrf> add := method(a, b, a + b)
<benzrf> add(1, 2)
mikepack has quit [Read error: Connection reset by peer]
<ddd> shoudl ad 1 and 2
<benzrf> ddd: remember, in Io all names are slots. period.
mikepack has joined #ruby
<ddd> ohhhhh
<benzrf> if you don't put an object in front of a name, it defaults to the one you're evaluating inside
mikepack has quit [Read error: Connection reset by peer]
<benzrf> so 'foo' is synonymous with 'Lobby foo'
<benzrf> ...if im in Lobby
<benzrf> which you start out in
mikepack has joined #ruby
<benzrf> when I say 'add := method(a, b, a + b)', add is now a slot on Lobby that contains a method
<ddd> lol this is sounding a lot like banisterfiend's implementation in pry
<ddd> cd'ing into objects and whatnot
mosscollum has quit [Quit: mosscollum]
<benzrf> but when the code 'a + b' is run, it is run inside a special new object made for that invocation that uses Lobby as a prototype
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<benzrf> but assigning slots will not add them!
<benzrf> so I can still see the slots in Lobby
<benzrf> this is how local vars work
zigomir has joined #ruby
kirun has quit [Quit: Client exiting]
mikepack_ has joined #ruby
<benzrf> since you can explicitly manipulate the scope that code runs in and control where those scopes inherit from
KS has quit [Quit: Lost terminal]
<benzrf> you can actually do things like create dynamically scoped methods!
<benzrf> :D
nanoyak has quit [Ping timeout: 252 seconds]
mikepack_ has quit [Remote host closed the connection]
<ddd> rockin!
<ddd> i think i got most of this. definitely going to need a tut or 2, but i think i've the gist of it
mikepack_ has joined #ruby
<benzrf> yeah its pretty mind blowing
<benzrf> Owo
<ddd> how old is this language? i've only heard a few references to it prior to this
<benzrf> idk
<ddd> wondering how it escaped me :)
Mars` has quit [Remote host closed the connection]
mikepack has quit [Read error: Operation timed out]
<ddd> iolanguage.org right?
<benzrf> something like that
<ddd> i'm there now
<benzrf> look @ this
<benzrf> Io> foo := method(val, call sender bar := val)
<shevy> isn't it dead?
<benzrf> Io> foo(3)
<benzrf> ==> 3
<benzrf> ==> 3
<benzrf> Io> bar
sassamo has quit [Remote host closed the connection]
mneorr_ has quit [Remote host closed the connection]
<ddd> wow! nice chaining especially since not eval'd until called
sassamo has joined #ruby
nanoyak has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
<ddd> add method val to foo which is in reality a handoff to bar with value of val setting val on bar
<cj> you folks are chatty ;-)
<benzrf> the reference is a bit insubstantial
<benzrf> :{
<cj> KK4MGV: wow, that's a new call isn't it?
<benzrf> ddd: no, not adding a method val
<ddd> hehe benzrf is showing me a new language.
<benzrf> ddd: val is the argument
<ddd> ohh
<benzrf> ddd: method() creates a new method object, it does not add a method
<ddd> missed that
<benzrf> I am assigning the slot foo to the result of the call
<ddd> yeah i thought := was doing that
<KK4MGV> cj: you mean my nick?
<cj> yeah, that one
<KK4MGV> yep :)
<cj> I thought I was new and I'm a KF
<ddd> benzrf: ok ok, you've convinced me. i'ma earmark some time this weekend to look into this
<KK4MGV> its been about a year
spyderman4g63 has quit []
<benzrf> new call?
<benzrf> what's this o_o
<cj> well, welcome to the club. It was about a year before I started to use mine. And I haven't used it in a year so ;-)
<ddd> ham callsign i think
<cj> benzrf: qrz.com/db/KK4MGV
<benzrf> o:
kitak has joined #ruby
mordocai has quit [Remote host closed the connection]
<ddd> can't tell from the site. am i right? ham raido callsign?
<KK4MGV> i didn't want to interrupt your good prototypal oo discussion, but i'm still curious about https://linxb.in/raw/6c3ac4f.txt
<ddd> err radio
<KK4MGV> yes, it is
mordocai has joined #ruby
<ddd> i've a few neighbors with the tall assed ham towers in their yards (bear in mind that neighbors are separated by a few miles lol)
<KK4MGV> hehe, yep
<ddd> someone wanted to give me a tower their father used to use before he died, but i've no equipment so i didn't take it
<KK4MGV> i still haven't gotten around to getting my general class license yet which is required to transmit on the lower bands (for which you need big antennae)
<ddd> they just wanted it out of their yard i think hehe
freezey has quit [Ping timeout: 246 seconds]
<ddd> this one is about ohh 20 feet talk maybe 25?
<canton7> KK4MGV, could it be an ancient rubygems? gem update --system
<ddd> idk how powerful that would be
estebistec has joined #ruby
<ddd> no maybe a bit bigger. 30 - 35 ft maybe
mneorr has joined #ruby
<ddd> big enough you have to use wires to anchor it
<ddd> or screw it into a concrete pad or something
mojjojo has joined #ruby
<h0rrorvacui> Anyone hear any number stations?
<ddd> idk man, computers are my gig hehe
Red_Onyx has joined #ruby
<KK4MGV> well there's always https://en.wikipedia.org/wiki/Echolink if that's more your thing :P
<KK4MGV> i consider it cheating, but to each their own
<KK4MGV> and packet radio :)
<KK4MGV> that's always fun
<ddd> KK4MGV: oh this looks a LOT like how the MARS is done (Military network made of civilian ham radio operators that pass messages for soldiers)
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kcombs has quit [Ping timeout: 248 seconds]
<benzrf> any language where you can implement how scoping works in the language itself is ok in my book
<benzrf> or
<benzrf> cool, at least
<ddd> KK4MGV: and yeah, this would be more my speed, cheatin or not ;)
<KK4MGV> MARS? http://www.koth.org/pmars/ :D
<ddd> benzrf: i think i'll be trying to earmark some time to play with it'
banghouse2 has joined #ruby
<ddd> KK4MGV: trying to find it. sec
banghouse2 is now known as banghouse
<ddd> during peace time we use it for soldiers to send messages home rather than paying long distance charges and stuff. or at least when I was active duty
<ddd> its also used during war time in case main military channels get knocked out
pioz has joined #ruby
pioz has quit [Client Quit]
<KK4MGV> nice
<ddd> its not an efficient real time conversation mode, you're just relaying messages to the states and the operators just place the call for you, but it works :)
<ddd> yeah, its how i told my ex wife when we were still together that I was coming home for christmas when I was stationed in Kora in the early 90s :)
<ddd> err Korea
shedd has joined #ruby