apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
AntiTyping has joined #ruby
mahmoudimus has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
hiroyuki has quit [Ping timeout: 240 seconds]
j^2 has joined #ruby
d2dchat has joined #ruby
centipedefarmer has joined #ruby
breakingthings has joined #ruby
teamon has quit [Ping timeout: 256 seconds]
mboro has joined #ruby
<mboro> how do you compress a JSON string? I basically just want to remove all newlines, spaces etc.
hbpoison has quit [Ping timeout: 272 seconds]
horofox_ has joined #ruby
sirecote has quit [Quit: ZNC - http://znc.in]
apeiros_ has quit [Ping timeout: 276 seconds]
jekotia has joined #ruby
slainer68 has joined #ruby
gyre007 has joined #ruby
<Spooner> mboro, There shouldn't be newlines in JSON. It is a stream.
Takehiro has joined #ruby
enroxorz-work has quit [Read error: Connection reset by peer]
<Spooner> Or unnecessary spaces for that matter. Why not compress using...regular compression?
Chinorro has quit [Remote host closed the connection]
backjlack has quit [Remote host closed the connection]
enroxorz-work has joined #ruby
chichou has joined #ruby
<mboro> Spooner: how do I compress a JSON string?
mahmoudimus has quit [Read error: Connection reset by peer]
centipedefarmer has quit [Remote host closed the connection]
hiroyuki has joined #ruby
d34th4ck3r has quit [Ping timeout: 260 seconds]
predator217 has joined #ruby
dankest has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
berserkr has quit [Quit: Leaving.]
cyong has joined #ruby
[[johnonymous]] has joined #ruby
q1w2e3 has left #ruby [#ruby]
<mboro> Spooner: thx, will try that out
markalanevans has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
<markalanevans> Are there better docs somewhere else besides : http://rubydoc.info/gems/mysql/2.9.1/frames
<markalanevans> This is kinda of pointless. There is no description, for the params in each method. or return types...
jamie_vp is now known as jamie_ca
jamie_ca is now known as jamie_vp
palyboy has joined #ruby
mootpointer has joined #ruby
<markalanevans> ?
<mboro> Spooner: but I don't want to compress like that. I just have a pretty formatted JSON string I want to uglify
cyong has quit [Max SendQ exceeded]
<mboro> that is, a one liner with no whitespace, newlines etc.
hogeo has joined #ruby
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
enroxorz-work has quit [Read error: Connection reset by peer]
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
cyong has joined #ruby
enroxorz-work has joined #ruby
cyong has quit [Max SendQ exceeded]
jsilver has quit [Remote host closed the connection]
cyong has joined #ruby
Honeycomb has quit [Quit: Leaving.]
<otters> has anybody seen this before https://gist.github.com/otters/f2d71e60612e08c10777
yshh has quit [Remote host closed the connection]
Honeycomb has joined #ruby
marr has quit [Ping timeout: 264 seconds]
<markalanevans> Hey Folks, just wondering if there is a certain place you all go online to see the details of methods in gems?
sn0wb1rd has joined #ruby
<markalanevans> It seems that the ruby-doc etc online sources that I have found, all have the classes and the methods in the docs
Criztian has quit [Remote host closed the connection]
<markalanevans> But none actually define the paramters, return types and provide descriptions about what each method does.
Honeycomb has quit [Client Quit]
LouisRoR has quit [Read error: Connection reset by peer]
jamie_ca has joined #ruby
centipedefarmer has joined #ruby
LouisRoR has joined #ruby
jamie_vp has quit []
jsilver has joined #ruby
<bnagy> probably depends on the gem
<bnagy> if the gem has rdoc stuff you can probably ri it
GreenPlastik has joined #ruby
<markalanevans> bnagy: ? ri it?
<bnagy> 'ri' is the commandline doc viewer tool thing
nari has quit [Ping timeout: 252 seconds]
<markalanevans> ok.
<markalanevans> checking that out now
<markalanevans> bnagy: i'm not crazy am i?
<markalanevans> Why wouldn't there be descriptions and params for all these methods on the ruby-doc sites
<bnagy> I can't really make that determination on our interaction so far, sorry
pandawarrior1 has quit [Quit: Leaving.]
mboro has quit [Quit: leaving]
<markalanevans> For instance: http://rubydoc.info/gems/mysql/2.9.1/frames
bradleyprice has quit [Remote host closed the connection]
<markalanevans> none of those methods have param definitions or return falue definitions...
<lewis> what do you mean markalanevans
<markalanevans> lewis: for example if you go to that link
slainer68 has quit [Remote host closed the connection]
jpcamara has joined #ruby
<markalanevans> you will see there are details for Result < Object
apeiros_ has joined #ruby
<markalanevans> it has a method fetch_row
<markalanevans> which looks like it might take "object"
<markalanevans> or likely returns Object.
<markalanevans> But does it take params, what is the Object it returns.
emmanuelux has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
cyong has joined #ruby
Honeycomb has joined #ruby
peregrine81 has joined #ruby
<markalanevans> There is no human readable description of the methods, the things that they do, the data they return and what to expect.
Virunga has quit [Remote host closed the connection]
babykosh has joined #ruby
jonahR has quit [Quit: jonahR]
Loaft has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
malkomalko has quit [Ping timeout: 240 seconds]
Honeycomb has quit [Client Quit]
j^2 has quit [Ping timeout: 256 seconds]
<bnagy> yeah that's just yard flailing cause they clearly didn't document for yard
joshman_ has quit [Quit: Computer has gone to sleep.]
<bnagy> not wrt that exact gem, but usually I either look at the gem's own site which usually has better docs, or just read the source
apeiros_ has quit [Ping timeout: 246 seconds]
<bnagy> assuming I can't just work it out in irb, with stuff like .methods .instance_methods etc
<markalanevans> lewis: bnagy : so this is just particular to the mysql gem?
<bnagy> not really a good answer but *shrug*
<bnagy> well some gems are well documented, some aren't
<markalanevans> Seems like for such a popular gem they would do a bit more documenting.
<markalanevans> But I get ya now.
<bnagy> you might find they have amazing documentation of their own, but that the auto-generated yard docs are useless
<bnagy> then again you might not :)
takeru has joined #ruby
<markalanevans> haha.
yacks has joined #ruby
<markalanevans> what does fetch_row accept as params and return?
<bnagy> ahh I see, it's all C, no wonder yard has a tough time
<bnagy> just click view source
<lewis> markalanevans: document it and the community will love you for that
<breakingthings> Is there a better way to assign one value to several variables other than `var1, var2 = false, false`
danneu has joined #ruby
<markalanevans> lewis: just gotta figure out what each method does first... ;)
peregrine81 has quit [Ping timeout: 244 seconds]
jrajav has joined #ruby
<bnagy> breakingthings: a = b = c = d = false
<bnagy> but if you want to 'initialize' normal vars that's often an antipattern
<breakingthings> yeah, more initialize.
hiroyuki has quit [Read error: Connection reset by peer]
<breakingthings> I'm aware of the issue with that.
<bnagy> you can use @ivars, they're 'self initialising'
jsilver has quit [Remote host closed the connection]
<bnagy> ie they always exist, but they're nil if nothing has been assigned
bradleyprice has joined #ruby
hiroyuki has joined #ruby
<breakingthings> doesn't work for this situation, though interesting to know.
<Quadlex> HAET Net:HTTP
ph^ has joined #ruby
takeru has quit [Ping timeout: 272 seconds]
dougireton has quit [Quit: Leaving.]
<bnagy> breakingthings: last way is just to use defined?
<bnagy> >> defined? xyzzy
<eval-in> bnagy: Output: "" (http://eval.in/11272)
<bnagy> returned nil there :/
<breakingthings> lol
skattyadz has quit [Quit: skattyadz]
<breakingthings> it's alright
jsilver has joined #ruby
<breakingthings> I'll stick with extra falses than give myself more hassle than it's worth.
etcetera has quit []
carlyle has joined #ruby
<matchaw> hi, how would you set a variable inside a look which is then available outside?
kirchevsky has joined #ruby
<matchaw> I have tried global, but it never sets?
garbagecollectio has joined #ruby
<bnagy> matchaw: use an @ivar or create the var before you start the loop
tomzx_mac has joined #ruby
chussenot has quit [Quit: chussenot]
etcetera has joined #ruby
endzyme has quit [Remote host closed the connection]
dougireton has joined #ruby
<matchaw> bnagy, ok thats done the trick, cheers.
<matchaw> This sets up the global var?
F1skr has quit [Quit: WeeChat 0.4.0]
<bnagy> it's not global, but it's scoped outside your loop
jjbohn has joined #ruby
<matchaw> ok, makes sense as $ is global
niklasb has quit [Ping timeout: 240 seconds]
ph^ has quit [Ping timeout: 255 seconds]
<bnagy> def foo;a=nil;loop do #whatever; end; #foo still in scope; end; #foo out of scope
samphippen has quit [Quit: Computer has gone to sleep.]
toekutr has joined #ruby
punchfacechampio has joined #ruby
skattyadz has joined #ruby
punchfacechampio is now known as punchfacechamp
<matchaw> thanks
dankest has quit [Quit: Leaving...]
jerius has quit [Ping timeout: 260 seconds]
hiroyuki has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
kofno has quit [Remote host closed the connection]
hiroyuki has joined #ruby
kofno has joined #ruby
JayT has joined #ruby
<JayT> Why don't people use for loops in ruby?
yshh has joined #ruby
<bnagy> not really idiomatic
centipedefarmer has quit [Remote host closed the connection]
<bnagy> basically Enumerator makes them a bit useless
_MJ_4Q_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
cyong has quit [Quit: Leaving.]
jpcamara has quit [Quit: jpcamara]
hybris has quit [Quit: hybris]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Honeycomb has joined #ruby
mrsolo has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 255 seconds]
LS\MFT has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
codezombie has joined #ruby
<codezombie> anyone seen this error w/ webrick? https://gist.github.com/gitt/d4c740397b48d810df4c Happens on line 63 of webrick.rb
<havenwood> JayT: people do use `loop do` for loops, but what bnagy said for iterating
dankest has joined #ruby
dhruvasagar has joined #ruby
<codezombie> nvm I'm an idiot
AlStanforth has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
znode has joined #ruby
DrCode has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
IceDragon has joined #ruby
carlyle has quit [Remote host closed the connection]
matchaw has quit [Read error: Connection reset by peer]
bradleyprice has quit [Remote host closed the connection]
sebastorama has quit [Quit: Computer has gone to sleep.]
dankest has quit [Ping timeout: 264 seconds]
znode has quit [Remote host closed the connection]
znode has joined #ruby
reppard has joined #ruby
bubblehead has joined #ruby
kofno has joined #ruby
Honeycomb has quit [Quit: Leaving.]
rickmasta has quit [Quit: Leaving...]
etcetera has quit [Ping timeout: 255 seconds]
garbagecollectio has left #ruby [#ruby]
Takehiro has joined #ruby
elaptics is now known as elaptics`away
DrCode has joined #ruby
Honeycomb has joined #ruby
etcetera has joined #ruby
centipedefarmer has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
hbpoison has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
jblack has quit [Ping timeout: 272 seconds]
DrCode has quit [Remote host closed the connection]
freq47 has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
znode_ has joined #ruby
<freq47> I am looking for a framework that does web well but also helps with command line apps like yii does with php
mercwithamouth has joined #ruby
rickmasta has joined #ruby
JStoker2 is now known as EvilJStoker
mockra_ has joined #ruby
v0n has joined #ruby
taoru has joined #ruby
hiall has joined #ruby
tommyvyo has joined #ruby
znode has quit [Ping timeout: 264 seconds]
jsilver has quit [Remote host closed the connection]
jsilver has joined #ruby
mikepack has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 244 seconds]
<Xeago> freq47: without knowing what the framework is supposed to help in those areas there isn't much to choose of
gtc has quit [Quit: kill -9 gtc]
<freq47> Rest and process files
Guest95619 has joined #ruby
<freq47> Based on rules
MrZYX is now known as MrZYX|off
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
Guest95619 has quit [Remote host closed the connection]
<Xeago> what is Rest?
nga4 has quit [Ping timeout: 272 seconds]
<Xeago> REST?
meoblast has joined #ruby
mando has quit [Remote host closed the connection]
<Xeago> freq47: I have never seen those requirements together, at least the way I interpret them
tylersmith has quit [Quit: tylersmith]
enebo has joined #ruby
chichouw has joined #ruby
<Quadlex> So, it seems there's no way to use a https address with Net:HTTP
jpfuentes2 has joined #ruby
<Quadlex> You can turn on SSL
hiall has quit [Quit: hiall]
jsilver has quit [Ping timeout: 276 seconds]
<Quadlex> But it will still use http as part of the url
zeade has quit [Quit: Leaving.]
jblack has joined #ruby
<freq47> Well file get posted needs process it
<Quadlex> Which is a problem if the restful API you're integrating against returns 301 for http
<Xeago> freq47: I don't understand you
dhruvasagar has quit [Ping timeout: 244 seconds]
<Xeago> usecase: user uploads a resume, extract details out of resume put them in database
<Xeago> you don't want to do that in the request
<Xeago> so we add it to a queue
v0n has quit [Ping timeout: 272 seconds]
<freq47> And need to do run it against multiple files via cron
<Xeago> sidekiq, delayed_job, and resque are popular solutions
hiroyuki has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
<Xeago> you create 'handlers' or similar things, that do what you want and done
chichou has quit [Ping timeout: 272 seconds]
hackeron has quit [Ping timeout: 248 seconds]
<freq47> OK, that's sounds good
<Xeago> you can call those handlers/etc yourself
<mootpointer> Resque and Sidekiq are my favourites.
peregrine81 has joined #ruby
DrCode has joined #ruby
icole has joined #ruby
<Xeago> I think resque is really easy to understand
<freq47> What framework can handle that?
<Xeago> well they all are easy to understand
<freq47> OK
<mootpointer> Resque could probably do with a little love.
<freq47> I will check those out
Spooner has quit [Quit: Leaving]
<Xeago> freq47: in ruby terms they are gems, google the names I mentioned and you will find their website or the source on github
mneorr has quit [Remote host closed the connection]
<Xeago> mootpointer: I agree, pity github didn't really do much with it after release
dayepa1 has quit [Quit: dayepa1]
ephemerian has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
icole_ has joined #ruby
<mootpointer> Xeago: I haven't looked at it for a while, but the 2.0 work looked promising.
dayepa1 has joined #ruby
<Xeago> yea, tom said he would focus more on the things that the community considered to be given to die
enebo has joined #ruby
<Xeago> which started to look like a theme around github gem publishings
<Xeago> jekyll has/had similar traits
<Xeago> such a pity :<
eka has quit [Quit: Computer has gone to sleep.]
icole has quit [Ping timeout: 276 seconds]
dougireton has quit [Remote host closed the connection]
nat_home has joined #ruby
mockra_ has quit [Remote host closed the connection]
adkron_ has joined #ruby
hiroyuki has joined #ruby
vaskas has joined #ruby
vaskas has left #ruby [#ruby]
icole has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
tish has joined #ruby
JayT has left #ruby [#ruby]
icole_ has quit [Read error: Connection reset by peer]
GreenPlastik has quit [Remote host closed the connection]
jpcamara has joined #ruby
nari has joined #ruby
Xeago has quit [Remote host closed the connection]
aeontech has joined #ruby
adkron__ has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
deepinskin has joined #ruby
forced_request has joined #ruby
atno has quit [Remote host closed the connection]
horofox_ has quit [Quit: horofox_]
deepinskin has quit [Max SendQ exceeded]
atno has joined #ruby
hiroyuki has quit [Ping timeout: 264 seconds]
deepinskin has joined #ruby
chrishough has quit [Quit: chrishough]
love_color_text has joined #ruby
starburst has quit [Quit: kthnxbye!]
xardas has quit [Ping timeout: 255 seconds]
AlStanforth has quit [Remote host closed the connection]
Pip has quit [Quit: Leaving]
codezombie has quit [Quit: Leaving...]
znode_ has quit [Remote host closed the connection]
znode has joined #ruby
j^2 has joined #ruby
joeycarmello has quit [Remote host closed the connection]
nonotza has left #ruby [#ruby]
shadowshell has quit [Remote host closed the connection]
inao has joined #ruby
znode__ has joined #ruby
znode has quit [Ping timeout: 252 seconds]
Voodoofish430 has quit [Quit: Leaving.]
peregrine81 has quit [Quit: Computer sleeping.]
havenwood has quit [Ping timeout: 276 seconds]
skattyadz has quit [Quit: skattyadz]
j^2 has quit [Ping timeout: 272 seconds]
_MJ_4Q_ has quit [Remote host closed the connection]
<jrajav> My ruby-based OS X package manager is updating 'ruby'
<jrajav> WHEN SUDDENLY
<jrajav> ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1e --openssldir=/us
<jrajav> D:
<breakingthings> D:
<breakingthings> :O
<breakingthings> :D
<breakingthings> :C
<breakingthings> faces.
<Quadlex> Can someone give me a bit of a hand with HTTP?
<jrajav> (To be fair it is in fact openssl that is being updated, as a dependency for Ruby)
<Quadlex> I'm just a little shaky on the debug output
<Quadlex> Host is at a different subdomain to location
<Quadlex> Location is the ACTUAL url requested, yeah?
<Quadlex> And Host just what the machine calls itself
malkomalko has joined #ruby
the_jeebster has quit [Quit: Leaving.]
znode has joined #ruby
nfk has quit [Quit: yawn]
dmiller has quit [Ping timeout: 276 seconds]
mootpointer has quit [Remote host closed the connection]
znode__ has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Slivka has quit [Read error: Operation timed out]
jrendell has quit [Quit: jrendell]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
joeycarmello has joined #ruby
Takehiro has joined #ruby
pdamer has joined #ruby
rhinux has joined #ruby
huoxito has joined #ruby
hiroyuki has joined #ruby
toekutr has quit [Remote host closed the connection]
punkrawkR has quit [Read error: Connection reset by peer]
markalanevans has quit [Ping timeout: 256 seconds]
toekutr has joined #ruby
Takehiro has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Read error: Operation timed out]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Progster has quit [Remote host closed the connection]
icole has quit [Ping timeout: 255 seconds]
Honeycomb has quit [Quit: Leaving.]
Progster has joined #ruby
dmiller has joined #ruby
ebobby has quit [Quit: Lost terminal]
jrendell has joined #ruby
gtc has joined #ruby
hiroyuki has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
cyberflux has joined #ruby
willbradley has left #ruby [#ruby]
zzing has joined #ruby
angusiguess has joined #ruby
end_guy has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
gtc has quit [Quit: kill -9 gtc]
pskosinski has quit [Quit: Red Eclipse, game of racist admins/devs: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
LouisRoR has quit [Ping timeout: 276 seconds]
pdamer has quit [Quit: pdamer]
znode has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
etcetera has quit []
adeponte has joined #ruby
jrendell has quit [Quit: jrendell]
rupee has quit [Quit: Leaving]
freq47 has quit [Read error: No route to host]
etcetera has joined #ruby
LouisRoR has joined #ruby
etcetera has quit [Max SendQ exceeded]
mootpointer has joined #ruby
etcetera has joined #ruby
tommyvyo has quit [Quit:]
mneorr has joined #ruby
pakchoi2 has joined #ruby
tommyvyo has joined #ruby
mneorr has quit [Read error: Operation timed out]
Myconix has quit [Quit: looging onto another system]
Myconix has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
alvaro_o has quit [Quit: Ex-Chat]
mootpoin_ has joined #ruby
sirecote has joined #ruby
stopbit has joined #ruby
Honeycomb has joined #ruby
blahwoop has joined #ruby
LouisRoR has quit [Ping timeout: 252 seconds]
mootpointer has quit [Ping timeout: 276 seconds]
sn0wb1rd has joined #ruby
aedornm has quit [Quit: Leaving]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
mootpointer has joined #ruby
mootpoin_ has quit [Remote host closed the connection]
Takehiro has joined #ruby
IceDragon has quit [Quit: Space~~~]
<aytch> can you evaluate a statement within case/when clauses?
<aytch> or is it only on match?
lethjakman_lapto has joined #ruby
<lethjakman_lapto> hey, every time I want to use ruby I have to type rvm use 1.9.3-p362 to get the right versions set up
<lethjakman_lapto> I'm on a mac
apok has quit [Quit: apok]
<lethjakman_lapto> is there anything I can do so taht I don't have to type that every time?
<aytch> rvm default 1.9.3, I think
ffranz has joined #ruby
<aytch> sorry
<aytch> rvm --default use 1.9.3
chico_chicote has quit [Remote host closed the connection]
gtc has joined #ruby
<aytch> You may need to restart Terminal for it to take effect
<aytch> you can check what version of ruby it's defaulting to with: ruby -v
shadowshell has joined #ruby
endzyme has joined #ruby
AntiTyping has quit [Quit: AntiTyping]
taoru has quit [Remote host closed the connection]
jpfuentes2 has quit [Ping timeout: 252 seconds]
<lethjakman_lapto> aytch: I tried that, I used rvm 1.9.3-p362 --default and it doesn't work after I restart the terminal
<lethjakman_lapto> I just tried your command too
<aytch> what was the output from the rvm --default use command?
banjara has quit [Quit: Leaving.]
jrendell has joined #ruby
Emplitz has quit [Quit: Leaving]
jpfuentes2 has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
twoism has quit [Remote host closed the connection]
bricker has quit [Quit: leaving]
newUser1234 has joined #ruby
hadees has quit [Ping timeout: 252 seconds]
ffranz has quit [Quit: Leaving]
hadees has joined #ruby
Emplitz has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
macmartine has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
baroquebobcat has joined #ruby
newUser1234 has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
newUser1234 has joined #ruby
reppard has quit [Quit: leaving]
greenarrow has joined #ruby
Guedes has quit [Remote host closed the connection]
rismoney has quit [Read error: Connection reset by peer]
newUser1234 has quit [Read error: No route to host]
newUser1_ has joined #ruby
punchfacechamp has quit [Quit: adios!]
pdamer has joined #ruby
rocket has quit [Disconnected by services]
Quebert has joined #ruby
joshwines has joined #ruby
mockra has joined #ruby
sepp2k has quit [Remote host closed the connection]
r0bby has joined #ruby
newUser1_ has quit [Ping timeout: 276 seconds]
etcetera has quit []
adamjleonard has quit [Quit: Leaving...]
dmiller has quit [Ping timeout: 260 seconds]
pdamer has quit [Quit: pdamer]
adkron__ has quit [Ping timeout: 244 seconds]
adkron_ has quit [Ping timeout: 264 seconds]
chrishunt has quit [Quit: ZzZzZz...]
chrishunt has joined #ruby
punchfacechamp has joined #ruby
_MJ_4Q_ has joined #ruby
hiroyuki has joined #ruby
jeffreybaird has joined #ruby
punchfacechamp has quit [Client Quit]
nga4 has joined #ruby
nfk has joined #ruby
<dcope> is there a way to prevent the timeout one open uri open?
gtc has quit [Quit: kill -9 gtc]
havenn has joined #ruby
pakchoi2 has quit [Quit: 离开]
brianpWins has quit [Quit: brianpWins]
baroquebobcat has quit [Quit: baroquebobcat]
hiroyuki has quit [Ping timeout: 276 seconds]
NihilistDandy has joined #ruby
fire has quit [Ping timeout: 246 seconds]
mockra has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
zeade has joined #ruby
jpcamara has quit [Quit: jpcamara]
mockra has joined #ruby
arya has joined #ruby
anonymuse has joined #ruby
gaffo has joined #ruby
<gaffo> anyone in here know much about mruby? I'm trying to figure out how I create / access some type of context in my c methods
pakchoi2 has joined #ruby
pakchoi2 has quit [Client Quit]
forced_request has quit [Read error: Connection reset by peer]
etcetera has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
emanu has joined #ruby
gyre007 has quit [Remote host closed the connection]
r0bby has joined #ruby
sam113101 has quit []
etcetera has quit [Client Quit]
emanu has quit [Client Quit]
pdamer has joined #ruby
<havenn> gaffo: So are you compiling with mruby to readable C code with -C then? Not sure I understand?
<gaffo> havenn, not sure what you mean by -C, lemme make up a GIST for ya
<havenn> gaffo: oh, just meant: mrbc -C
<gaffo> nah, I'm embedding mruby in a c++ app
<havenn> gaffo: ahhh, gotcha
dmerrick has quit [Quit: dmerrick]
blahwoop has quit [Ping timeout: 248 seconds]
Takehiro_ has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
<Nom-> Don't suppose Ruby is going to move away from this pXXX versioning in 2.0?
<havenn> Nom-: Nope.
endzyme has quit [Remote host closed the connection]
wmoxam has joined #ruby
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
<Nom-> I've never understood the difference in the Ruby versioning between say a 1.9.3p0 vs 1.9.3p1 ... isn't that just a 1.9.4 to symantec versioning?
<Nom-> Oh well
allaire has joined #ruby
<havenn> gaffo: Hrm, i don't know, and i don't know where best to ask either!? Only thing i've really done in mruby is compile a fizzbuzz a C bytecode array and then put it in a little wrapper to immediately execute. So a standalone fizzbuzz self-executable that does't need Ruby or mruby to run. https://github.com/havenwood/mruby-fizzbuzz/blob/master/fizzbuzz.c
tessi has quit [Ping timeout: 245 seconds]
<havenn> gaffo: I haven't embedded mruby yet. Look forward to learning about it!
<bnagy> Nom-: it's a patchlevel, which is different to a feature release
swistak35 has quit [Ping timeout: 256 seconds]
<dcope> is it possible to use net/http with a resource that is served over https?
<bnagy> some projects roll both into the versioning, some don't
parus has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
jrendell has quit [Quit: jrendell]
msch has quit [Ping timeout: 260 seconds]
<gaffo> havenn, the embedding is easy. I just can't figure out where to hook into the "new" type stuff. my initalize *is* getting called though ...
NihilistDandy has quit [Quit: Textual IRC Client: www.textualapp.com]
<gaffo> maybe I should try new instead
Muz has quit [Ping timeout: 264 seconds]
Blue_Ice has quit [Ping timeout: 276 seconds]
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge. Please contact an administrator]
end_guy has quit [Ping timeout: 276 seconds]
<gaffo> nope, that doesn't work... new is not called. :(
vlad_starkov has joined #ruby
sdavis has joined #ruby
Myconix has joined #ruby
Bish has quit [Ping timeout: 252 seconds]
<havenn> gaffo: I don't know a proper mruby channel to ask in. Maybe #ruby-core folks would know? #mruby isn't populated
sam113101 has joined #ruby
Honeycomb has left #ruby [#ruby]
Honeycomb has joined #ruby
<gaffo> havenn, hrm... I'll try there, thanks.
<nightfly> Just checking, but the splat operator is pretty much the same thing as lisps apply right?
Takehiro has joined #ruby
arya has joined #ruby
Takehiro_ has quit [Ping timeout: 264 seconds]
r0bby has quit [Ping timeout: 248 seconds]
r4stakWhere has joined #ruby
abstrusenick has joined #ruby
anonymuse has quit [Quit: Leaving...]
tish has quit [Quit: Leaving.]
gabrielrotbart has joined #ruby
VonKingsley has joined #ruby
<havenn> gaffo: Have you played with mgem for mruby? Just tried a few additional classes/modules to build with, but worked really well and was easy.
d2dchat has quit [Remote host closed the connection]
<havenn> nightfly: Ruby's splat does different things depending on context of use. What does Lisp's apply do?
ocnam has joined #ruby
<gaffo> no, haven't played with it much. I may use it for some core libraries or some other package format but I'm working on a game engine and using the ruby for scripting so I'll be loading and unloading contexts a lot I think and just working with .rb files loaded by convention.
zeade has quit [Quit: Leaving.]
Elico1 has joined #ruby
Elico1 has quit [Client Quit]
<havenn> gaffo: Cool!
Blue_Ice has joined #ruby
swistak35 has joined #ruby
<nightfly> havenn: Calls a function with the elements in argument(s) of a list as it's arguments (apply something '(1 2 3 4)) => (something 1 2 3 4)
mneorr has joined #ruby
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
sayan has joined #ruby
sayan has joined #ruby
r4stakWhere has left #ruby [#ruby]
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
<gaffo> havenn, what were you using mruby for / mrubygems?
<havenn> nightfly: Then I think in that context, yes. Calling a method with a splatted-Array passes each element of the Array as an argument: foo(*[1, 2, 3])
Es0teric has joined #ruby
parus has joined #ruby
r4stakWhere has joined #ruby
r4stakWhere has quit [Client Quit]
r4stakWhere has joined #ruby
<havenn> gaffo: I'm not using it for anything practical yet. I've just been poking at it out of curiosity. :)
<gaffo> aah
Muz has joined #ruby
dougireton has joined #ruby
tessi has joined #ruby
<havenn> nightfly: foo(*[1, 2, 3]) == foo(1, 2, 3)
Takehiro_ has joined #ruby
radic has quit [Disconnected by services]
tommyvyo has joined #ruby
radic_ has joined #ruby
<gaffo> ya, one of the cool things is that I believe I should be able to make things in ruby for the most part and then when I need speed or direct engine access I can just replace some methods with c/c++
Takehiro has quit [Ping timeout: 264 seconds]
r4stakWhere has quit [Client Quit]
<nightfly> Alright, that's what I was thinking it did. Saw it is some code and wasn't really sure.
joeycarmello has quit [Remote host closed the connection]
<lethjakman_lapto> gaffo: I've been wanting to use mruby, it looks pretty cool
a_a_g has joined #ruby
babykosh has quit [Quit: babykosh]
otherj has joined #ruby
otherj has quit [Client Quit]
end_guy has joined #ruby
cantonic has quit [Quit: cantonic]
dmiller has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
Takehiro_ has quit [Ping timeout: 276 seconds]
crackfu has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
greenarrow has quit [Ping timeout: 255 seconds]
greenarrow has joined #ruby
etcetera has joined #ruby
arya has joined #ruby
mneorr has quit [Read error: Connection timed out]
feedbackloop has quit [Read error: No route to host]
mneorr has joined #ruby
shadowshell has quit [Remote host closed the connection]
kirchevsky has quit [Ping timeout: 248 seconds]
jlwestsr has joined #ruby
brooks has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
takeru has joined #ruby
Takehiro_ has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
rocket has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
freakazoid0223 has quit [Ping timeout: 264 seconds]
malkomalko has quit [Remote host closed the connection]
t-mart has quit [Read error: Connection reset by peer]
takeru has quit [Ping timeout: 260 seconds]
w400z has joined #ruby
mando has joined #ruby
Quebert has quit [Ping timeout: 248 seconds]
sandGorgon has joined #ruby
dougireton has quit [Quit: Leaving.]
gaffo has quit [Ping timeout: 272 seconds]
tjbiddle_ has joined #ruby
kylefox has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
tommyvyo has quit [Quit:]
Bish has joined #ruby
newUser1234 has joined #ruby
kylefox has quit [Quit: kylefox]
ocnam has quit [Quit: Tan Tan!]
moos3 has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
tjbiddle has quit [Ping timeout: 276 seconds]
leesmith has joined #ruby
tjbiddle_ has quit [Ping timeout: 255 seconds]
adeponte has quit [Remote host closed the connection]
divout has joined #ruby
mneorr has quit [Read error: Connection timed out]
dhruvasagar has quit [Ping timeout: 240 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
mneorr has joined #ruby
jamesfung14 has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Quit: Leaving.]
straind has joined #ruby
cyberflux has quit []
ocnam has joined #ruby
leesmith has quit [Quit: leesmith]
dougireton has joined #ruby
nyrb has quit [Remote host closed the connection]
Takehiro has joined #ruby
dmiller has joined #ruby
smitjel has joined #ruby
Takehiro_ has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 240 seconds]
girija has joined #ruby
jekotia has left #ruby [#ruby]
centipedefarmer has joined #ruby
gyre007 has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
meoblast has quit [Remote host closed the connection]
SCommette has joined #ruby
dhruvasagar has joined #ruby
nfk has quit [Quit: yawn]
newUser1234 has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
ner0x has quit [Quit: Leaving]
newUser1234 has joined #ruby
gyre007 has quit [Ping timeout: 255 seconds]
arya has joined #ruby
pdamer has quit [Quit: pdamer]
poikon has quit [Read error: Connection timed out]
ikst has joined #ruby
ikst has quit [Remote host closed the connection]
poikon has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
newUser1234 has quit [Ping timeout: 264 seconds]
joeycarmello has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
stopbit has quit [Quit: Leaving]
hck89 has joined #ruby
mando has quit [Remote host closed the connection]
r0bby has joined #ruby
shammancer has quit [Quit: Leaving.]
gwhilts has joined #ruby
shammancer has joined #ruby
allaire has quit []
mockra has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 246 seconds]
breakingthings has quit []
Mattx has quit [Read error: Connection reset by peer]
w400z has quit []
girija has quit [Ping timeout: 272 seconds]
Mattx has joined #ruby
r0bby_ has joined #ruby
girija has joined #ruby
mockra has joined #ruby
mneorr has quit [Read error: Connection timed out]
r0bby has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
brum has quit [Remote host closed the connection]
carlyle has joined #ruby
tatertots has joined #ruby
blf has joined #ruby
tish has joined #ruby
mercwithamouth has joined #ruby
reset has quit [Read error: Operation timed out]
tjbiddle has joined #ruby
sdavis has quit [Quit: sdavis]
qubit has quit [Ping timeout: 252 seconds]
jlwestsr has quit [Quit: Ex-Chat]
etcetera has quit [Ping timeout: 256 seconds]
qubit has joined #ruby
dougireton has quit [Quit: Leaving.]
etcetera has joined #ruby
smitjel has left #ruby [#ruby]
arya_ has joined #ruby
macmartine has joined #ruby
dawkirst has joined #ruby
willob has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
poikon has quit [Read error: Connection timed out]
_MJ_4Q_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 252 seconds]
ahokaomaeha has left #ruby ["When I come back, please tell me in what new ways you have decided to be completely wrong."]
poikon has joined #ruby
d2dchat has joined #ruby
h4mz1d has joined #ruby
r0bby_ is now known as robbyoconnor
mneorr has quit [Read error: Connection timed out]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
rippa has joined #ruby
xnm has joined #ruby
hiroyuki has joined #ruby
pyrac has joined #ruby
<xnm> Hey. Does anyone know how I'd call PGconn#wait_for_notify from the pg gem with eventmachine without blocking?
SCommette has quit [Quit: SCommette]
etcetera has quit []
mootpointer has joined #ruby
SCommette has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
gwhilts has quit [Quit: gwhilts]
Vert has quit [Remote host closed the connection]
mneorr has joined #ruby
hiroyuki has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
<blf> Hey guys, how would I got about writing a unit test which tests the proper construction of an object, if the test depends upon a property of the constructed object? Wouldn't this first require testing the accessor returns the correct value?
<ryanf> blf: if the accessor returns the correct value, why does it matter what the underlying state of the object is?
<blf> For instance, a test method: test_initialize_without_shape_yields_zero_dimensional_array() would require that I access the length property of my array class.
<ryanf> blf: sure, what's wrong with that?
lewis has quit [Remote host closed the connection]
<blf> ryanf: nothing wrong with the intent of the method. However, it would depend upon checking the length of returned object (which is not a ruby array, by the way).
<blf> But in order to validate that the length property of my object is working correctly, I must first have a valid object.
<blf> So it seems like a chicken and the egg problem here.
nomenkun has joined #ruby
<blf> I'll put the test up on github to better clarify.
<ryanf> blf: in any test, you're going to first set up an object and then assert that it behaves the way you expect it to, right?
<ryanf> in this case behaving the way you expect it to means returning 0 when you call length on it
v0n has joined #ruby
<ryanf> there's no rule that any given test can only have one method call in it
poikon has quit [Read error: Connection timed out]
Mon_Ouie has joined #ruby
poikon has joined #ruby
rickmasta has quit [Quit: Leaving...]
<mnemon> blf: after that, give it a non 0 value and assert that the length returns the expected value?
richardjortega has quit [Quit: richardjortega]
jonathanwallace has quit [Ping timeout: 256 seconds]
<blf> mnemon: Right, I intend to do so when writing a method to validate the length. But still, since the length property is dependant upon the proper construction of the object, it seems that I must first have validated the object is property constructed?
* blf feels like he's chasing his tail
<ryanf> blf: the definition of "the object being constructed correctly" is that after you construct it, it behaves as you expect across the methods in its public interface
<blf> ryanf: Yes.
<blf> So I don't need to validate the initialize method?
<blf> It will be validated across the other tests?
<blf> I guess that makes sense.
adeponte has joined #ruby
codecop has joined #ruby
<ryanf> the test you have is fine. you're saying, "after I make an object with the zero-arg constructor, I expect length to return 0"
<blf> Exactly
<ryanf> if there are other consequences of it being zero-dimensional that are important, you can illustrate those with whatever other method calls are relevant
<ryanf> but you don't need to, like, question the entire basis of your reality anytime you make an object
crackfu has quit [Remote host closed the connection]
<blf> ryanf: Heh. I tend to do that :/
SCommette has quit [Quit: SCommette]
<blf> Okay, well thanks. You guys have calmed the storm for the time being. I'll continue happily down this trail until the next tornado.
<ryanf> no problem, good luck with that
luckyruby has joined #ruby
rhyselsmore_ has joined #ruby
ryanf has quit [Quit: leaving]
havenn has quit [Remote host closed the connection]
adeponte has quit [Ping timeout: 264 seconds]
mneorr has quit [Read error: Connection timed out]
sandGorgon has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
mneorr has joined #ruby
sandGorgon has quit [Max SendQ exceeded]
sandGorgon has joined #ruby
xnm has quit [Quit: WeeChat 0.3.9.2]
sandGorgon has quit [Max SendQ exceeded]
sandGorgon has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
elico has quit [Remote host closed the connection]
Bry8Star has quit [Ping timeout: 276 seconds]
Bish has quit [Ping timeout: 248 seconds]
rhyselsmore_ has quit [Quit: Computer has gone to sleep.]
Bry8Star has joined #ruby
Retistic has quit [Quit: Retistic]
rhyselsmore_ has joined #ruby
Quebert has joined #ruby
mneorr has quit [Read error: Operation timed out]
wallerdev has joined #ruby
mneorr has joined #ruby
poikon has quit [Read error: Connection timed out]
dhruvasagar has quit [Ping timeout: 260 seconds]
poikon has joined #ruby
elico has joined #ruby
rocket has quit [Ping timeout: 264 seconds]
noop has joined #ruby
kumavis has joined #ruby
<kumavis> is a ruby IO, analogous to a stringbuilder?
lethjakman has joined #ruby
<Hanmac1> kumavis look for StringIO
Hanmac1 is now known as Hanmac
<kumavis> ty
canton7 has quit [Remote host closed the connection]
rocket has joined #ruby
rocket_ has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
lethjakman_lapto has quit [Ping timeout: 255 seconds]
pandawarrior1 has joined #ruby
brum has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
brianpWins has joined #ruby
pandawarrior1 has quit [Client Quit]
pandawarrior1 has joined #ruby
Quebert has quit [Ping timeout: 245 seconds]
rocket has quit [Ping timeout: 252 seconds]
Bish has joined #ruby
pandawarrior1 has quit [Client Quit]
tomzx_mac has quit [Read error: Operation timed out]
pandawarrior1 has joined #ruby
msch has joined #ruby
brum has quit [Ping timeout: 272 seconds]
pandawarrior1 has quit [Client Quit]
huoxito has quit [Read error: Connection reset by peer]
elkclone has joined #ruby
pandawarrior1 has joined #ruby
carlyle has quit [Remote host closed the connection]
pandawarrior1 has quit [Client Quit]
piotrj has joined #ruby
yacks has quit [Remote host closed the connection]
rhyselsmore_ has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
mneorr has quit [Read error: Connection timed out]
braoru has joined #ruby
brooks has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
brooks has joined #ruby
goganchic has joined #ruby
goganchic has quit [Max SendQ exceeded]
poikon has quit [Read error: Connection timed out]
vlad_starkov has joined #ruby
poikon has joined #ruby
goganchic has joined #ruby
brooks_ has joined #ruby
lewis has joined #ruby
takeru_ has joined #ruby
apeiros_ has joined #ruby
blf has quit [Quit: Page closed]
w|t has quit [Remote host closed the connection]
SeySayux has quit [Ping timeout: 272 seconds]
girija has quit [Ping timeout: 276 seconds]
brooks has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
sayan has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 264 seconds]
SeySayux has joined #ruby
rezzack has quit [Ping timeout: 248 seconds]
<tjbiddle> Can someone explain why (0..0).each {|x| puts 'test'} outputs test once and not zero times?
takeru_ has quit [Ping timeout: 244 seconds]
<lewis> tjbiddle: because it goes through 0 once?
generalissimo has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
dmiller has joined #ruby
<tjbiddle> Guess I should have phrased that a different way. Is there a more syntactical way to type that? At first glance I would expect that to do nothing
girija has joined #ruby
<lewis> tjbiddle: it's indexed from 0
<lewis> tjbiddle: when you type (0..1).each {|x| puts 'test'} it outputs twice
<goganchic> tjbiddle, (0…0) - do nothing, 3 dots
<goganchic> tjbiddle, .. - means including last number, … - not including
<tjbiddle> lewis: Makes sense. I was screwing around in python (python noob) - And realized `for n in range(0, 0)` doesn't have the same affect (It wouldn't output anything)
ClownZ_ has joined #ruby
<tjbiddle> goganchic: Nifty, good to know. Thanks :)
abstrusenick has quit [Quit: abstrusenick]
trumpeter2003 has joined #ruby
<lewis> goganchic: including last number in what context
JohnBat26 has joined #ruby
apok has joined #ruby
ClownZ has quit [Ping timeout: 248 seconds]
<goganchic> lewis, in context of Range, 0..1 - is an instance of class Range
mneorr has quit [Read error: Connection timed out]
himsin has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 255 seconds]
himsin has joined #ruby
backjlack has joined #ruby
mneorr has joined #ruby
jankly has quit [Ping timeout: 272 seconds]
spanx has quit [Ping timeout: 255 seconds]
spanx has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
apeiros_ has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
himsin has quit [Remote host closed the connection]
himsin has joined #ruby
aeontech has joined #ruby
dawkirst has quit [Ping timeout: 248 seconds]
aeontech has quit [Client Quit]
tagrudev has joined #ruby
braoru has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
piotrj has joined #ruby
braoru has joined #ruby
quazimodo has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
pyrac has joined #ruby
pyrac has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
fbernier has quit [Ping timeout: 255 seconds]
sayan has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
himsin has quit [Remote host closed the connection]
fbernier has joined #ruby
himsin has joined #ruby
piotrj has quit [Remote host closed the connection]
Gooder has joined #ruby
rocket_ has quit [Read error: Connection reset by peer]
Quebert has joined #ruby
vlad_starkov has joined #ruby
hiroyuki has joined #ruby
mneorr has quit [Read error: Connection timed out]
poikon has quit [Read error: Connection timed out]
mneorr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
arturaz has joined #ruby
poikon has joined #ruby
rhinux has quit [Ping timeout: 276 seconds]
goganchic has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
Honeycomb has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
whowantstolivefo has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
whowantstolivefo has joined #ruby
justsee has quit [Quit: Leaving...]
babykosh has joined #ruby
phatypus has joined #ruby
budmang_ has quit [Read error: Connection reset by peer]
phatypus has quit [Client Quit]
niklasb has joined #ruby
brum has joined #ruby
mikurubeam has joined #ruby
budmang has joined #ruby
dhruvasagar has joined #ruby
ryanf has joined #ruby
VonKingsley has left #ruby [#ruby]
mikekelly has quit [Ping timeout: 252 seconds]
Slivka has joined #ruby
a_a_g has quit [Quit: Leaving.]
brum has quit [Ping timeout: 272 seconds]
hck89 has quit [Ping timeout: 264 seconds]
niklasb has quit [Ping timeout: 264 seconds]
mneorr has quit [Read error: Connection timed out]
dr_bob has joined #ruby
dawkirst has joined #ruby
mneorr has joined #ruby
hogeo has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
hiroyuki has quit [Ping timeout: 252 seconds]
replore has joined #ruby
poikon has quit [Read error: Connection timed out]
poikon has joined #ruby
EvilJStoker is now known as JStoker
jonathanwallace has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mh` has quit [Ping timeout: 272 seconds]
mh` has joined #ruby
slainer68 has joined #ruby
Opettaja has joined #ruby
alta has quit [Ping timeout: 272 seconds]
Quebert has quit [Ping timeout: 245 seconds]
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
rdark has joined #ruby
mikekelly has joined #ruby
apeiros_ has joined #ruby
Quebert has joined #ruby
dnyy has quit [Ping timeout: 255 seconds]
tdelam has quit [Ping timeout: 255 seconds]
alta has joined #ruby
krz has joined #ruby
rburton- has joined #ruby
beiter has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
tdelam has joined #ruby
jrendell has joined #ruby
whowantstolivefo has joined #ruby
Morkel has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
joschi has quit [Ping timeout: 272 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
joschi has joined #ruby
filipe has joined #ruby
babykosh has quit [Quit: babykosh]
msch has quit [Ping timeout: 272 seconds]
piotrj has joined #ruby
tish has quit [Quit: Leaving.]
whowantstolivefo has quit [Read error: Connection reset by peer]
eldariof has joined #ruby
whowantstolivefo has joined #ruby
replore has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
Opettaja has quit [Remote host closed the connection]
piotr_ has joined #ruby
mikurubeam has joined #ruby
vlad_starkov has joined #ruby
dnyy has joined #ruby
mafolz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
m3pow has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
msch has joined #ruby
dawkirst has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Client Quit]
sirecote has quit [Ping timeout: 272 seconds]
sirecote has joined #ruby
canton7 has joined #ruby
aganov has joined #ruby
razibog has joined #ruby
mneorr has quit [Read error: Operation timed out]
nomenkun has joined #ruby
mneorr has joined #ruby
wallerdev has quit [Quit: wallerdev]
locriani has quit [Ping timeout: 255 seconds]
v0n has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Remote host closed the connection]
zigomir has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
locriani has joined #ruby
miso1337 has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
blooberr has quit [Ping timeout: 255 seconds]
hemanth has quit [Read error: Connection reset by peer]
HecAtic has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
predator217 has quit [Ping timeout: 276 seconds]
hemanth has joined #ruby
imami|afk is now known as banseljaj
Takehiro has quit [Remote host closed the connection]
goganchic has joined #ruby
decoponio has joined #ruby
browndawg has joined #ruby
banjara has joined #ruby
rhinux has joined #ruby
slainer68 has quit [Remote host closed the connection]
elico has quit [Ping timeout: 255 seconds]
timonv has quit [Remote host closed the connection]
tessi has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
tessi has joined #ruby
predator117 has joined #ruby
lewis has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection timed out]
mneorr has joined #ruby
banjara has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 256 seconds]
carraroj has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
jrendell has quit [Quit: jrendell]
greenarrow has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
piotrj has joined #ruby
bubblehead has quit [Remote host closed the connection]
m3pow has joined #ruby
noxoc has joined #ruby
nat_home has quit [Quit: Leaving.]
Stilo has joined #ruby
Zta has quit [Read error: Connection reset by peer]
threesome has quit [Ping timeout: 252 seconds]
rocket has joined #ruby
railsbros_dirk has joined #ruby
schaerli has joined #ruby
predator117 has joined #ruby
m3pow has quit [Read error: Operation timed out]
Quebert has quit [Ping timeout: 252 seconds]
sirecote has quit [Ping timeout: 272 seconds]
blf has joined #ruby
jprovazn has joined #ruby
ocnam has quit [Quit: Tan Tan!]
filipe has quit [Read error: Operation timed out]
Slivka has quit [Ping timeout: 272 seconds]
apok has quit [Quit: apok]
sirecote has joined #ruby
alta has quit [Ping timeout: 272 seconds]
larissa has quit [Quit: Leaving]
hoelzro|away is now known as hoelzro
JohnBat26 has joined #ruby
cool has quit [Ping timeout: 255 seconds]
new299 has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby
apod has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
new299 has joined #ruby
alta has joined #ruby
apeiros_ has joined #ruby
mneorr has quit [Read error: Connection timed out]
mockra has quit [Remote host closed the connection]
jacobw has joined #ruby
borickard has joined #ruby
mneorr has joined #ruby
r0ss_ has joined #ruby
apod has quit [Client Quit]
werzie has joined #ruby
apod has joined #ruby
daig0ro has joined #ruby
jacobw has quit [Client Quit]
TheDeadSerious_ has quit [Ping timeout: 272 seconds]
borickard has left #ruby [#ruby]
arietis has joined #ruby
beiter has quit [Quit: beiter]
jacobw has joined #ruby
beiter has joined #ruby
poikon_work has joined #ruby
Zta has joined #ruby
hogeo has joined #ruby
Drager has quit [Ping timeout: 255 seconds]
Phoop has joined #ruby
Drager has joined #ruby
crackfu has joined #ruby
monkegjinni has joined #ruby
obs has joined #ruby
d34th4ck3r has joined #ruby
filipe has joined #ruby
poikon_work has quit [Ping timeout: 264 seconds]
tatertots has left #ruby [#ruby]
toekutr has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
<blf> When implementing an each() iterator, how would I go about returning an Enumerator if a block does not exist?
r0ss_ has left #ruby ["Leaving..."]
ephemerian has joined #ruby
jimeh has joined #ruby
filipe has quit [Ping timeout: 272 seconds]
arturaz has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
d34th4ck3r has quit [Quit: Konversation terminated!]
pyrac has quit [Ping timeout: 246 seconds]
hogeo has quit [Remote host closed the connection]
wreckimnaked has joined #ruby
mneorr has quit [Read error: Connection timed out]
noxoc has quit [Quit: noxoc]
crackfu has quit [Remote host closed the connection]
mengu has joined #ruby
mneorr has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
shiin has joined #ruby
piotrj has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
eka has joined #ruby
alta has quit [Ping timeout: 272 seconds]
mengu_ has joined #ruby
verysoftoiletppr has joined #ruby
piotrj has joined #ruby
<blf> Ah, nevermind, I see. Just return a new Enumerator.
<blf> Hm, but then is there any way to have the Enumerator call my implementation of each_with_index()?
Takehiro has joined #ruby
werzie has left #ruby [#ruby]
mneorr has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
adambeynon has joined #ruby
alta has joined #ruby
arya has joined #ruby
marr has joined #ruby
noxoc has joined #ruby
blacktulip has joined #ruby
<Hanmac> blf: to_enum(__method__) unless block_given?
artm has joined #ruby
<blf> Oh, very nice. I'll look into to_enum(). Thanks indeed! :)
horofox_ has joined #ruby
filipe has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
poikon has quit [Read error: Connection timed out]
threesome has joined #ruby
poikon has joined #ruby
blaxter has joined #ruby
workmad3 has joined #ruby
mneorr has quit [Remote host closed the connection]
arya has joined #ruby
monkegjinni has quit [Remote host closed the connection]
achamian has joined #ruby
tish has joined #ruby
arya_ has joined #ruby
horofox_ has quit [Quit: horofox_]
monkegjinni has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
francisfish has joined #ruby
arya has quit [Ping timeout: 248 seconds]
gokul has joined #ruby
piotrj has quit [Remote host closed the connection]
m3pow has joined #ruby
elaptics`away is now known as elaptics
spider-mario has joined #ruby
Vainoharhainen has joined #ruby
piotrj has joined #ruby
mockra has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
fire has joined #ruby
teamon has joined #ruby
beiter has quit [Read error: Connection reset by peer]
shiin has left #ruby ["Textual IRC Client: www.textualapp.com"]
arya_ has quit []
duosrx has joined #ruby
hbpoison has joined #ruby
verysoftoiletppr has quit []
nari has quit [Ping timeout: 276 seconds]
bricker`LA has joined #ruby
slainer68 has joined #ruby
verysoftoiletppr has joined #ruby
Eerbin has quit [Ping timeout: 264 seconds]
xardas has joined #ruby
codezombie has joined #ruby
<artm> I'm lookng for advise on interface of something like: https://gist.github.com/artm/5055521
clocKwize has joined #ruby
schaerli has quit [Remote host closed the connection]
mpfundstein has joined #ruby
<artm> *advice
sayan has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
<artm> I don't like that I pass the options and 'mapping' in the same hash
daig0ro has quit [Quit: Textual IRC Client: www.textualapp.com]
<clocKwize> anyone used state_machine?
<artm> but I like how 'clean' the calls to the api look like
timonv has joined #ruby
<ClownZ_> for those who wana master VIM http://vim-adventures.com/
<clocKwize> I'm trying to model an Order object - I have a new state and I want to call authorise! to get it to authorise money on the customers card, and then move to an authorised state or stay in new state if not, but I'm not sure how best t to do this
arietis has quit [Quit: Computer has gone to sleep.]
io_syl has quit [Quit: Computer has gone to sleep.]
Criztian has joined #ruby
poga has quit [Remote host closed the connection]
<artm> ClownZ_: this is fun! :)
HecAtic has quit [Quit: Àá¼ö]
poikon_work has joined #ruby
a_a_g has joined #ruby
kevinfagan has joined #ruby
kayloos has joined #ruby
brianpWins has quit [Quit: brianpWins]
<blf> What do you guys think? https://gist.github.com/anonymous/c5e0dfeb178378b0f6f7 Comments and critiques welcome. I'm still pretty new to Ruby, so everything helps.
poikon_work has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Konversation terminated!]
kumavis has quit [Quit: kumavis]
d34th4ck3r has joined #ruby
justsee has joined #ruby
nari has joined #ruby
elkclone has quit [Quit: It's never too late to unplug and run.]
Al__ has joined #ruby
obs has joined #ruby
razibog has quit [Read error: No route to host]
justsee has quit [Client Quit]
codezombie has quit [Quit: Leaving...]
razibog has joined #ruby
hbpoison has quit [Read error: Operation timed out]
EMPZ has joined #ruby
d34th4ck3r has quit [Quit: Konversation terminated!]
gosshedd has joined #ruby
miso1337 has quit [Quit: afk]
nonotza has joined #ruby
ozgura has quit [Remote host closed the connection]
Emplitz has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
himsin has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
LS\MFT has joined #ruby
himsin has joined #ruby
softbit has joined #ruby
Gooder has quit [Remote host closed the connection]
nonotza has quit [Ping timeout: 252 seconds]
gyre007 has joined #ruby
hbpoison has joined #ruby
blooberr has joined #ruby
seich- has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
seich- has joined #ruby
blf has quit [Quit: Page closed]
anderse has joined #ruby
MrZYX|off is now known as MrZYX
railsbros_dirk_ has joined #ruby
mpfundstein_ has joined #ruby
railsbros_dirk has quit [Ping timeout: 244 seconds]
railsbros_dirk_ is now known as railsbros_dirk
chussenot has joined #ruby
admin0 has joined #ruby
timmow has joined #ruby
timmow has quit [Read error: Connection reset by peer]
timmow has joined #ruby
kirchevsky has joined #ruby
<nyuszika7h> hi, is it possible to return a function, not a function call? or do I have to use procs?
<nyuszika7h> s/call/&'s result/
<hoelzro> nyuszika7h: what's your use case?
<hoelzro> it is possible
<hoelzro> I'm just curious about the use case
mockra has quit [Read error: Connection reset by peer]
mockra has joined #ruby
brum has joined #ruby
piotrj has quit [Remote host closed the connection]
pyrac has joined #ruby
<nyuszika7h> sec
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<Xeago> nyuszika7h: you can return a lambda
<Xeago> and call the method that returns the lambda with a &
<Xeago> hoelzro: useful for dynamically constructing some query stuff (in my case elasticsearch)
<hoelzro> Xeago: I'm aware of the uses
freeayu has quit [Ping timeout: 276 seconds]
<hoelzro> sometimes using lambdas isn't idiomatic Ruby, though
<Xeago> but curious about the usecase?
<hoelzro> which I why I asked why nyuszika7h in particular needed it
<hoelzro> there might be a more "Ruby-ish" solution
<Xeago> probably yea :)
freeayu has joined #ruby
<hoelzro> in which case it's done in a way familiar to others reading the code
* apeiros_ always choses the rubbish solution
<apeiros_> *chooses
<nyuszika7h> f = add(1); f(2) # => 3
<nyuszika7h> is this ony possible with a proc/lambda?
<nyuszika7h> * proc
<nyuszika7h> and f.call(2) (or f[2] or f.(2)
<nyuszika7h> )
<hoelzro> nyuszika7h: yeah
<hoelzro> f(...) is always a method call
<nyuszika7h> ok then, that works too, was just curious
couscous has joined #ruby
<otters> so I get this error using rails 4 https://gist.github.com/otters/e0a9ea4c416b812852e9 but that guide URL is a 404
<otters> so I can't exactly you know visit it and find out how to upgrade
brum has quit [Ping timeout: 272 seconds]
<apeiros_> f = expression; f() # <-- never possible
<apeiros_> f = expression; f.() # <-- this is possible
<nyuszika7h> ah
<apeiros_> well, the upper is possible
<apeiros_> but f wouldn't be the f assigned to
<Xeago> apeiros_: f = lambda { .. } is an expression ?
<apeiros_> Xeago: yes, but you can't do f() after that
<Xeago> :O
<apeiros_> you can do f[] or f.()
<Xeago> he is fine with f.() :)
<nyuszika7h> I prefer f.call(x), because f.(x) looks ugly and f[x] looks like an array slicing
<otters> oh shit
<otters> that's a rails thing not ruby, sorry
<hoelzro> nyuszika7h: agreed
nari has quit [Ping timeout: 255 seconds]
niklasb has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
<nyuszika7h> btw, can someone explain why ->(x, y) and -> x, y work, but -> (x, y) doesn't?
cool has joined #ruby
<Xeago> I think (x,y) gets interpreted separately from the -> in that case
<Xeago> nyuszika7h: can't give you more, not in a position to use newer rubies :<
niklasb has quit [Ping timeout: 246 seconds]
<nyuszika7h> how about rvm?
banseljaj is now known as imami|afk
<nyuszika7h> I have 1.8.7, 1.9.3 and 2.0.0 :P
cousine has joined #ruby
thone_ has quit [Quit: leaving]
cousine has quit [Remote host closed the connection]
thone has joined #ruby
Slivka has joined #ruby
emergion has joined #ruby
hogeo has joined #ruby
tvw has joined #ruby
TheDeadSerious_ has joined #ruby
justsee has joined #ruby
hackeron has joined #ruby
hiall has joined #ruby
ozgura has joined #ruby
mneorr has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Spooner_ has joined #ruby
mootpointer has joined #ruby
mneorr has quit [Ping timeout: 244 seconds]
lethjakman has joined #ruby
<otters> are AR callbacks called when seeding the test database?
piotrj has joined #ruby
mikecmpbll has joined #ruby
<clocKwize> yes
<Hanmac> otters wrong channel
<otters> damn it, not again
fermion has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
justsee has quit [Quit: Leaving...]
piotrj has quit [Remote host closed the connection]
<couscous> hello i am couscous
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
<hoelzro> ahoy
<Spooner_> I like cous cous.
banister`sleep has quit [Remote host closed the connection]
kayloos has quit [Quit: kayloos]
hiall has quit [Read error: Operation timed out]
hiall has joined #ruby
F1skr has joined #ruby
fire has quit [Ping timeout: 276 seconds]
threesome has quit [Ping timeout: 248 seconds]
threesome has joined #ruby
banister`sleep has joined #ruby
malkomalko has joined #ruby
workmad3 has joined #ruby
theRoUS has joined #ruby
inao has quit [Quit: Leaving...]
ph^ has joined #ruby
skattyadz has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
pac1 has joined #ruby
ph^ has quit [Remote host closed the connection]
rocket has quit [Ping timeout: 260 seconds]
xardas has quit [Read error: Connection reset by peer]
huttan has quit [Remote host closed the connection]
Spooner_ has quit [Remote host closed the connection]
wobblini has joined #ruby
testingb0t has joined #ruby
artm has quit [Quit: artm]
Shine-neko has joined #ruby
hogeo has quit [Remote host closed the connection]
mootpointer has quit [Quit: Computer has gone to sleep.]
<Shine-neko> #join ruby-fr
sepp2k has joined #ruby
michael_mbp has joined #ruby
chussenot has quit [Quit: chussenot]
wreckimnaked has quit [Read error: Operation timed out]
Phoop has quit [Quit: Phoop]
wreckimnaked has joined #ruby
xrq` has joined #ruby
xrq has quit [Remote host closed the connection]
justsee has joined #ruby
jacobw has quit [Quit: WeeChat 0.4.0]
samphippen has joined #ruby
schaerli has joined #ruby
michael_mbp has left #ruby [#ruby]
ExxKA has joined #ruby
jacobw has joined #ruby
Banistergalaxy has joined #ruby
rhinux has quit [Quit: Konversation terminated!]
slainer68 has quit [Remote host closed the connection]
kayloos has joined #ruby
chichouw has quit [Remote host closed the connection]
nkr has joined #ruby
fire has joined #ruby
HelenCrowley has joined #ruby
LS\MFT has quit [Disconnected by services]
HelenCrowley is now known as LS\MFT
F1skr has quit [Quit: WeeChat 0.4.0]
tish has quit [Quit: Leaving.]
gokul has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
deepinskin has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
Shine-neko_ has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
nomenkun has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
Shine-neko_ has left #ruby [#ruby]
yshh has quit [Remote host closed the connection]
maxmanders has joined #ruby
dmonjo has joined #ruby
Shine-neko has quit [Ping timeout: 264 seconds]
mneorr has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
divout has quit [Remote host closed the connection]
imami|afk has quit [Ping timeout: 256 seconds]
pyrac has quit [Read error: Connection reset by peer]
pyrac_ has joined #ruby
ozgura has quit [Remote host closed the connection]
srchelp has quit [Quit: leaving]
ozgura has joined #ruby
rmartin has joined #ruby
banseljaj has joined #ruby
khismetix has joined #ruby
EMPZ has quit [Quit: Leaving]
rickmasta has quit [Quit: Leaving...]
piotrj has joined #ruby
codespectator has joined #ruby
hashmal has joined #ruby
slainer68 has joined #ruby
zoonfafer has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
TomJ has quit [Client Quit]
TomJ has joined #ruby
TomJ has quit [Client Quit]
m3pow has quit [Read error: Connection reset by peer]
TomJ has joined #ruby
miso1337 has joined #ruby
LS\MFT has left #ruby ["Leaving"]
malkomalko has quit [Remote host closed the connection]
miso1337 has quit [Read error: Connection reset by peer]
miso1337_ has joined #ruby
freeayu has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
Kudos has quit [Ping timeout: 264 seconds]
mibitzi has joined #ruby
Kudos has joined #ruby
lkba has joined #ruby
lethjakman has quit [Ping timeout: 276 seconds]
freeayu has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Kudos has quit [Ping timeout: 264 seconds]
miso1337_ has quit [Quit: unplugging]
browndawg has quit [Quit: Leaving.]
achamian has quit [Remote host closed the connection]
wobblini has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
keyvan has joined #ruby
keyvan has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
hbpoison_ has joined #ruby
decoponi_ has joined #ruby
arturaz has quit [Ping timeout: 272 seconds]
Progster has quit [Remote host closed the connection]
jpcamara has joined #ruby
railsbros_dirk_ has joined #ruby
krz has quit [Quit: krz]
ph^ has joined #ruby
jpfuentes2 has joined #ruby
Lemtzas_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
Progster has joined #ruby
Virunga has joined #ruby
yacks has joined #ruby
Virunga has quit [Read error: Connection reset by peer]
Virunga has joined #ruby
M- has joined #ruby
kofno has quit [Remote host closed the connection]
mikecmpb_ has joined #ruby
kloeri_ has joined #ruby
maxmande_ has joined #ruby
whitedawg has joined #ruby
goganchic has quit []
AlSquirrel has joined #ruby
ph^ has quit [Ping timeout: 272 seconds]
cupakrom- has joined #ruby
sirecote_ has joined #ruby
mh`` has joined #ruby
hogeo has joined #ruby
elektronaut_ has joined #ruby
Banistergalaxy has joined #ruby
digifiv5e has joined #ruby
postmodern has quit [Quit: Leaving]
digifiv5e is now known as Guest62431
maxmanders has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
hackeron has quit [*.net *.split]
railsbros_dirk has quit [*.net *.split]
admin0 has quit [*.net *.split]
hbpoison has quit [*.net *.split]
obs has quit [*.net *.split]
jprovazn has quit [*.net *.split]
sirecote has quit [*.net *.split]
decoponio has quit [*.net *.split]
mikurubeam has quit [*.net *.split]
mikekelly has quit [*.net *.split]
mh` has quit [*.net *.split]
jbw has quit [*.net *.split]
Guest78855 has quit [*.net *.split]
love_color_text has quit [*.net *.split]
Eiam has quit [*.net *.split]
ndngvr has quit [*.net *.split]
joast has quit [*.net *.split]
asobrasil has quit [*.net *.split]
AlSquire has quit [*.net *.split]
Lemtzas has quit [*.net *.split]
Shrink has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
im0b has quit [*.net *.split]
jwang has quit [*.net *.split]
ThePicard has quit [*.net *.split]
delqn has quit [*.net *.split]
cupakromer has quit [*.net *.split]
QKO has quit [*.net *.split]
elektronaut has quit [*.net *.split]
kloeri has quit [*.net *.split]
mh`` is now known as mh`
sirecote_ is now known as sirecote
elektronaut_ is now known as elektronaut
railsbros_dirk_ is now known as railsbros_dirk
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
admin0 has joined #ruby
grayson has joined #ruby
hackeron has joined #ruby
QKO has joined #ruby
nfk has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
Zespre has quit [Quit: leaving]
techlife has quit [Ping timeout: 248 seconds]
mikecmpb_ has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
kofno has joined #ruby
jprovazn has joined #ruby
takeru has joined #ruby
jwang has joined #ruby
mikekelly has joined #ruby
khismetix has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
jbw has joined #ruby
slainer68 has joined #ruby
khismetix has joined #ruby
techlife has joined #ruby
asobrasil has joined #ruby
hoelzro is now known as hoelzro|away
Zespre has joined #ruby
M- has quit [Quit: This computer has gone to sleep]
takeru has quit [Ping timeout: 255 seconds]
pandawarrior1 has joined #ruby
achamian has joined #ruby
mneorr has joined #ruby
carloslopes has joined #ruby
codespectator has quit [Ping timeout: 276 seconds]
PragCypher has joined #ruby
dustint has joined #ruby
piotrj has quit [Remote host closed the connection]
Al___ has joined #ruby
mneorr has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
kloeri_ is now known as kloeri
<dmonjo> any good cms opensource system written in ruby?
codespectator has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
Al__ has quit [Ping timeout: 264 seconds]
grafthez has joined #ruby
deepinskin has joined #ruby
<shevy> rails ecosystem?
<shevy> Hanmac loves rails
<grafthez> hello, I need to set up plain ruby-driver for MongoDB with connection pool for plain multithreaded ruby app. A as ruby newbie (java programmer) I'm not sure if I should put MongoClient as a module constant, module method, class method or any other way? And how to use that in other classes?
deepinskin has quit [Max SendQ exceeded]
<shevy> grafthez not sure I get the question
yshh has joined #ruby
monkegjinni has joined #ruby
<shevy> I dont know what is MongoClient. is that a class, a module?
<dmonjo> web for ruby = rails?
<shevy> dmonjo to 80% yeah :(
<dmonjo> why the sad face?
deepinskin has joined #ruby
<shevy> rails crushed everything else... there is sinatra... and a few other things too
Kudos has joined #ruby
<shevy> dmonjo because there is less choice
Kudos has quit [Changing host]
Kudos has joined #ruby
<shevy> and by comparing with rails, you have to compare to a HUGE ecosystem
<dmonjo> but rails seems to be well appreciated
achamian has quit [Remote host closed the connection]
<shevy> then all is good isn't it? :)
<dmonjo> you mean lot of features still lack
deepinskin has quit [Read error: Connection reset by peer]
<grafthez> shevy, it's a class from mongo-driver
<grafthez> it maintains its own thread safe connection pool
schaerli has quit [Remote host closed the connection]
<dmonjo> python works on ?
<shevy> no, dmonjo see, if you try to compete with rails, you won't have as many features easily, because then you would have to be as big as rails
fire has quit [Quit: WeeChat 0.4.0]
poikon has quit [Read error: Connection timed out]
<grafthez> I want to use connections from that pool in multiple threads, and don't know how to store this MongoClient instance
geekbri has joined #ruby
<shevy> grafthez hmm I dont know anything about MongoClient
poikon has joined #ruby
zykes- has quit [Ping timeout: 245 seconds]
chichou has joined #ruby
<shevy> grafthez if your question would be a plain ruby question without any specific, already existing class it may be easier to answer
deepinskin has joined #ruby
<shevy> dmonjo what I would love to see is the ancient cgi module in standard ruby improved heavily
mulinux has joined #ruby
EPIK has quit [Ping timeout: 255 seconds]
yshh has quit [Ping timeout: 255 seconds]
mh` has left #ruby [#ruby]
<grafthez> wil ltry to clarify: it's not Mongo-specific thing, I just need to keep instance of given class around so that other objects (in multiple threads) can use it
deepinskin has quit [Max SendQ exceeded]
<MrZYX> grafthez: sidekiq stores it's redis connection pool as a module level instance variable: https://github.com/mperham/sidekiq/blob/master/lib/sidekiq.rb#L69, so you might want to follow that. But I guess it's not the only right way to do it.
<banister`sleep> MrZYX: its*
<grafthez> MrZYX, thanks - will take a look
deepinskin has joined #ruby
<grafthez> that's exactly what I was asking about. What about storing such thing as a module constant or other way? Any drawbacks comparing to this sidekiq approach?
zykes- has joined #ruby
<dmonjo> shevy: so maionly going ruby rails is a good idea for web development ? :
<dmonjo> or should look for some other alternatives
admin0 has quit [Read error: Connection reset by peer]
<dmonjo> website will mainly be dynamic
piotrj has joined #ruby
hackeron has quit [Read error: Connection reset by peer]
<shevy> dmonjo hmm... sinatra is small... I dont know what your goal is, I dont like rails but I think it is only an advantage if you know rails very well, so there you go
Eerbin has joined #ruby
hackeron has joined #ruby
<dmonjo> i dont know rails too :/
<shevy> you are young, you can learn it :P
<dmonjo> lol
<MrZYX> grafthez: that would require the initialization to happen on the evalutation of the module (when the file is required the first time), feels a bit unclean to me
<dmonjo> what about djanjo and python
<csmrfx> lol dont learn rails for just one website
xemu has joined #ruby
tish has joined #ruby
<dmonjo> csmrfx: have to start somewhere :)
<shevy> dmonjo django now has python 3 support, I think it is to python what rails is for ruby to some extent
<csmrfx> sinatra +1
robustus has quit [Ping timeout: 276 seconds]
<shevy> but I really know nothing at all about django
ozgura has quit [Read error: Connection reset by peer]
<shevy> I once wanted to learn python just because of django
ozgura has joined #ruby
<dmonjo> but?
<shevy> but it did not have python 3 support back then, and I hated to have to choose between either python 2 or python 3
<shevy> I dont feel motivated to spend time learning python 3 when there is this transition phase still going on
brum has joined #ruby
<dmonjo> django can run on java i think too
<shevy> :P
m3pow has joined #ruby
<shevy> Hanmac loves java
berserkr has joined #ruby
d2dchat has quit [Remote host closed the connection]
robustus has joined #ruby
sandGorgon has quit [Ping timeout: 276 seconds]
k610 has joined #ruby
mikecmpbll has joined #ruby
<csmrfx> jython or pure java?
<dmonjo> i hopt ethere is a future for ruby on rails
banister`sleep has quit [Remote host closed the connection]
<shevy> hehe ... my cat is watching TV
<csmrfx> dmonjo: why?
<dmonjo> coz we investing time and manhours on that :)
<shevy> dmonjo man you seem to be too passive
<shevy> where is the old ruby mentality "if it does not exist, we'll write it from scratch"
kpshek has joined #ruby
<shevy> Initial release: July 2004 <--- see? in 1 year it will be 10 years
<Hanmac> shevy my cats does it too ... but mostly they are not interested what is showing in TV
_bart has joined #ruby
<_bart> Hi, I use God for monitoring server processes, but I got this: ERROR: Condition 'God::Conditions::ProcessExits' requires an event system but none has been loaded
<_bart> I'm on Debian6
zigomir has quit [Quit: zigomir]
<shevy> Hanmac my cat only watches if some animals can be seen... usually birds, but other animals too
<shevy> humans on TV are not interesting to her
vlad_starkov has quit [Remote host closed the connection]
<dmonjo> what are the benefits of using ruby on rails vs the other alternativ es in the market i am doing a small research now
DaltonUS has joined #ruby
DaltonUS has quit [Client Quit]
<shevy> dmonjo you can build a huge infrastructure based on rails
<csmrfx> !g what are benefits of rails vs alternatives
<shevy> technical university of vienna is using rails internally for its student pages, https://tiss.tuwien.ac.at/
iamjarvo has joined #ruby
mengu_ has quit [Ping timeout: 255 seconds]
dblack_ has joined #ruby
mengu_ has joined #ruby
JarJar has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
Squarepy has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
b0oh has joined #ruby
b0oh has left #ruby [#ruby]
vlad_starkov has joined #ruby
decoponi_ is now known as decoponio
malkomalko has joined #ruby
ozgura has quit [Remote host closed the connection]
buscon has joined #ruby
pskosinski has joined #ruby
chussenot has joined #ruby
justsee has quit [Quit: Leaving...]
moos3 has joined #ruby
Al___ has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
Al__ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
tommyvyo has joined #ruby
tvw has joined #ruby
hoelzro|away is now known as hoelzro
brooks_ has left #ruby [#ruby]
d2dchat has joined #ruby
khismetix has quit [Ping timeout: 244 seconds]
hashmal is now known as one[faget]
ozgura has joined #ruby
wf2f has quit []
<shevy> whoa cool ... it seems I could actually switch to UTF-8
mengu__ has joined #ruby
tomzx_mac has joined #ruby
mengu_ has quit [Ping timeout: 272 seconds]
piotrj has quit [Remote host closed the connection]
pyrac_ has quit [Read error: Connection reset by peer]
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
pyrac has joined #ruby
brum has quit [Remote host closed the connection]
krawchyk has joined #ruby
girija has quit [Ping timeout: 255 seconds]
Voting has joined #ruby
<apeiros_> shevy: does that mean you can finally enjoy a modern ruby?
<apeiros_> you'll become part of the civilized world again?
jprovazn has quit [Quit: Leaving]
stopbit has joined #ruby
znode has joined #ruby
hbpoison_ has quit [Ping timeout: 246 seconds]
softbit has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 272 seconds]
Voting has left #ruby [#ruby]
softbit has joined #ruby
browndawg has quit [Quit: Leaving.]
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
piotrj has joined #ruby
<finnomenon> what does the p in ruby version names stand for?
<apeiros_> patchlevel
malkomalko has quit [Remote host closed the connection]
<finnomenon> thank you
<Hanmac> it means power :P
<Hanmac> 1.9.3p362 => 1.9.3³⁶² :P
chussenot has quit [Quit: chussenot]
malkomalko has joined #ruby
pandawarrior1 has quit [Quit: Leaving.]
banister`sleep has joined #ruby
<csmrfx> ooo, LA Ruby Conf...
khismetix has joined #ruby
<csmrfx> No vids on utub yet, but found this https://speakerdeck.com/mleone/python-for-ruby-programmers
yshh has joined #ruby
poikon has quit [Read error: Connection timed out]
elico has joined #ruby
znode has quit [Remote host closed the connection]
<csmrfx> dmonjo: see that ^
poikon has joined #ruby
theRoUS has quit [Read error: Operation timed out]
sonda has joined #ruby
Coolhand has quit [Remote host closed the connection]
etank has quit [Quit: WeeChat 0.4.0]
Coolhand has joined #ruby
etank has joined #ruby
nari has joined #ruby
khismetix has quit [Ping timeout: 255 seconds]
jjbohn has joined #ruby
solidoodlesuppor has joined #ruby
huoxito has joined #ruby
piotrj has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
zmike123 has joined #ruby
kayloos has quit [Quit: kayloos]
jpcamara has quit [Quit: jpcamara]
vlad_starkov has quit [Remote host closed the connection]
zmike123 has quit [Client Quit]
Slivka has quit [Ping timeout: 272 seconds]
malkomal_ has joined #ruby
freeayu has quit [Remote host closed the connection]
invisime1 has joined #ruby
malkomalko has quit [Ping timeout: 272 seconds]
iPhoneMRZ has joined #ruby
wreckimnaked has quit [Read error: No route to host]
wreckimnaked has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nari has quit [Ping timeout: 255 seconds]
piotrj has joined #ruby
achamian has joined #ruby
noop has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
jgarvey has joined #ruby
breakingthings has joined #ruby
brum has joined #ruby
davestrock has joined #ruby
kayloos has joined #ruby
achamian has quit [Ping timeout: 255 seconds]
tvw has quit [Ping timeout: 272 seconds]
kristofers has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
slainer6_ has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
davestrock has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
brum has quit [Ping timeout: 244 seconds]
LBRapid has joined #ruby
wmoxam has joined #ruby
maycon_ has joined #ruby
stayarrr has joined #ruby
maycon has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
joshman_ has joined #ruby
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jtharris has quit [Quit: WeeChat 0.4.0]
jtharris has joined #ruby
hordo_ has joined #ruby
<hordo_> hy there
<hoelzro> ahoy
angusiguess has joined #ruby
<hordo_> is there any way to control client browser with ruby?
<dmonjo> watir is your friend
<hordo_> but watir controls server browser
<hordo_> i can't manage it to start client browser
Mattx has quit [Quit: Leaving]
<dmonjo> what is a servert
<dmonjo> browser
dmerrick has joined #ruby
<hordo_> i have a website that runs on a server
d34th4ck3r has joined #ruby
<hordo_> i want to open a new browser when i click on a button
<hordo_> but watir opens the browser on the server
d34th4ck3r has quit [Client Quit]
<hordo_> and not my comp
solancer has joined #ruby
<hoelzro> you mean click a button in the website?
<hoelzro> or...?
<hordo_> yes
invisime1 is now known as invisime
verysoftoiletppr has quit []
<hoelzro> why not use JS then?
<hoelzro> that's what it's for
<solancer> hey guys is there a way to use heroku with a custom domain(with gapps email) without a credit card ?
<workmad3> hordo_: you're trying to use a headless browser driver to automate a browser that your site has no control over?
iamjarvo has quit [Quit: Leaving.]
adamjleonard has joined #ruby
<hordo_> i don't need headless
<hordo_> i just want to control the browser of the user accesing my site
<csmrfx> lol
<dmonjo> impossible :)
<csmrfx> NEWSFLASH: you cant
<hordo_> like open a new tab, go to an url .......
codecop has quit [Remote host closed the connection]
<workmad3> hordo_: you can do some of that with javascript
<csmrfx> hordo_: learn html
Choobie has joined #ruby
<solancer> anyone ?
<workmad3> hordo_: you can't do that with a server-side process
lupine has quit [Excess Flood]
<csmrfx> solancer: put it in an iframe in your own domain
babykosh has joined #ruby
<workmad3> hordo_: and yes, as csmrfx just implied, you can do some of that just through standard HTML
<csmrfx> (ie. looks like its from your domain)
<csmrfx> hordo_: aka <a> -tag
<workmad3> <a href="example.com" target="_blank">Opens in a new tab</a>
<solancer> csmrfx, sure sure....
<hordo_> it's a bit complicated than that
<workmad3> hordo_: it always is :P
<hordo_> you se the new opened tab has forms that i need to fill automaticaly
<solancer> csmrfx, you do the same for your client websites ?
sam_ has joined #ruby
sam_ has quit [Client Quit]
<workmad3> hordo_: but your current desire of an approach isn't workable... you can't control arbitrary client-side browsers with a watir instance running on the server
<dmonjo> fill automatically use
<dmonjo> cookies
<csmrfx> hordo_: Oh, you mean you want the clients CC# to be set automatically in their newly opened browser tab?
<csmrfx> 8P
jrajav has joined #ruby
lupine has joined #ruby
<hordo_> smth like that
sam_ has joined #ruby
<solancer> csmrfx, no wonder western countries outsource work to Bangalore...
tvw has joined #ruby
<csmrfx> solancer: well, seems you're not up to the task!
jerius has joined #ruby
<solancer> csmrfx, iframe ? seriously ?
JohnBat26 has quit [Remote host closed the connection]
<solancer> csmrfx, you must be real n00b
<csmrfx> sure
* csmrfx is a noob, only made web apps since 1996
kaichanvong has joined #ruby
im0b has joined #ruby
yshh has quit [Remote host closed the connection]
kpshek has quit []
mmitchell has joined #ruby
sam_ has quit [Client Quit]
<solancer> csmrfx, putting them in iframes
Zespre has quit [Quit: leaving]
BrokenCog has joined #ruby
sam_ has joined #ruby
<csmrfx> solancer: and you just joined my Pro-Dev's Super Ignore List
sam_ has quit [Client Quit]
<solancer> csmrfx, LIC
<csmrfx> 8)
<csmrfx> next!
sam_ has joined #ruby
sam_ is now known as samuelj
samuelj has quit [Client Quit]
sam_ has joined #ruby
<BrokenCog> hello. I'd like to avoid a check 'if o.nil?' within a colection.each { |o| } block.
<BrokenCog> is it possible to have something of a .each_not_null ?
sam_ has quit [Client Quit]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
samuelj has joined #ruby
solancer has left #ruby ["Leaving"]
hackeron_ has joined #ruby
<BrokenCog> ah, let me try that. thanks.
samuelj has quit [Client Quit]
hackeron has quit [Read error: Connection reset by peer]
jtharris has quit [Quit: WeeChat 0.4.0]
maxmande_ has quit [Quit: Textual IRC Client: www.textualapp.com]
maxmanders has joined #ruby
takeru has joined #ruby
yshh has joined #ruby
jtharris has joined #ruby
samuelj has joined #ruby
d2dchat has quit [Ping timeout: 255 seconds]
Gwyxx has joined #ruby
sailias has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
JohnBat26 has joined #ruby
<BrokenCog> ah ... crap. I miss characterized the problem. totally ignored that the collection is itself a container, I would like to skip the block when a specific element of the container is null: https://gist.github.com/anonymous/50d757b8dabf3db9ce36
d2dchat has joined #ruby
samuelj has quit [Client Quit]
samuelj has joined #ruby
samuelj has quit [Client Quit]
samuelj has joined #ruby
<MrZYX> hm, .collection.reject {|record| record.name.nil? }.each ?
hordo_ has quit [Quit: Page closed]
samuelj has left #ruby [#ruby]
samuelj has joined #ruby
samuelj has left #ruby [#ruby]
samuelj has joined #ruby
blahwoop has joined #ruby
<BrokenCog> ah. I was reading backwards up that page :) should have read forward, and I'd have seen that method! thanks. I'll try it.
maycon_ has quit [Changing host]
maycon_ has joined #ruby
maycon_ is now known as maycon
<sailias> BrokenCog: even though you're changing the code some pointers
<sailias> if !name.blank? should be unless name.blank?
takeru has quit [Ping timeout: 276 seconds]
<sailias> if <condition> then
samuelj has left #ruby [#ruby]
<sailias> oh please don't write 'then' at the end of if statements
<MrZYX> I prefer if name.present? in that case
mneorr has joined #ruby
<sailias> i'd agree, just illustrating 'unless'
davetherat has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
davetherat has joined #ruby
llaskin1 has joined #ruby
<sailias> i don't like an else on unless statements
<llaskin1> Minitest output: Errno::ENOENT: No such file or directory - diff.exe -u C:/Users/Leo/AppData/Local/Temp/expect20130228-8176-n7d76w C:/Users/Leo/AppData/Local/Temp/butwas20130228-8176-z42ra2
<llaskin1> But I don't call diff anywhere in my code...What does this mean?
samuelj has joined #ruby
<BrokenCog> If I need the conditional, then I'll modify the ActiveRecord to purge records with null names, and then do a query for valid records. that why the record processing block doesn't need think about the validity of the record.
<BrokenCog> let me try the reject mechanism first.
ExxKA has quit [Quit: This computer has gone to sleep]
peregrine81 has joined #ruby
jjbohn has quit [Quit: Leaving...]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
<csmrfx> llaskin1: probably means there is dependency on diff.exe in the code
apod has quit []
samuelj has left #ruby [#ruby]
ffranz has joined #ruby
whitedawg has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 244 seconds]
v0n has joined #ruby
BizarreCake has joined #ruby
Gues_____ has joined #ruby
hackeron_ has quit [Ping timeout: 255 seconds]
d2dchat has quit [Remote host closed the connection]
enebo has joined #ruby
mulinux has quit [Quit: mulinux]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
jtharris is now known as jtharris-heyilik
jtharris-heyilik is now known as jtharris
hackeron has joined #ruby
Guest62431 is now known as digifiv5e
jtharris is now known as jth-CAKEISTHEBES
jth-CAKEISTHEBES is now known as jtharris
digifiv5e is now known as Guest53251
Guest53251 is now known as guyz
jeffreybaird has joined #ruby
guyz has quit [Changing host]
guyz has joined #ruby
jamesfung14 has joined #ruby
ExxKA has joined #ruby
atyz has joined #ruby
tomzx_mac has quit [Ping timeout: 260 seconds]
bean has joined #ruby
pdamer has joined #ruby
pdamer has quit [Client Quit]
JarJar has quit [Ping timeout: 260 seconds]
Gwyxx has quit [Read error: Connection reset by peer]
d2dchat has joined #ruby
<llaskin1> sailias: thanks, trying your solution now
Virunga has quit [Remote host closed the connection]
JarJar has joined #ruby
Gwyxx has joined #ruby
tcstar has joined #ruby
mibitzi has quit [Quit: Leaving]
ner0x has joined #ruby
<BrokenCog> MrZYX: using: actions.reject{ |r| r.command.nil? or r.command == "" }.each as the fields aren't always nil, but sometimes empty fields.
<hoelzro> alternatively, you could do r.command.empty?
<MrZYX> you're in rails, right?
kayloos has quit [Quit: kayloos]
malkomal_ has quit [Remote host closed the connection]
<BrokenCog> hoelzro: ah. I'll try that!
<BrokenCog> MrZYX: yes.
bluOxigen has joined #ruby
malkomalko has joined #ruby
<MrZYX> so empty?, or .blank? or .present? with select instead of reject
sk87 has quit [Read error: Connection reset by peer]
jtharris is now known as jtharris-coffee
<BrokenCog> well, i need select the invalid records, just process them differently. So, I don't want to do two selects.
Gwyxx has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
rcigni has joined #ruby
fermion has quit [Ping timeout: 246 seconds]
<BrokenCog> I suppose it wouldn't be a huge hit to worry about two different selects, but then i'd need two different processing loops, which is what I really mean by avoiding rather than select queries.
<dblack_> BrokenCog: maybe use partition
ph^ has joined #ruby
`p has quit [Remote host closed the connection]
<BrokenCog> dblack_: haven't seen it ... let me look.
Banistergalaxy has quit [Ping timeout: 272 seconds]
<llaskin1> i find it wierd that minitest in any way relies on Diff....
<Xeago> llaskin1: Diff does string comparisons
generalissimo has joined #ruby
<Xeago> quite useful to see how the vlaues differ
<BrokenCog> hoelzro: empty? is the better test thanks. MrZYX looking now ...
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kpshek has joined #ruby
fermion has joined #ruby
Kudos has quit [Ping timeout: 264 seconds]
<BrokenCog> MrZYX: dblack_
jpcamara has joined #ruby
<BrokenCog> yes, that looks like it could be used. I'll see how to rework the loop using that. thanks!
clocKwize has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
`p has joined #ruby
<llaskin1> Xeago: aaha ok
vlad_starkov has quit [Remote host closed the connection]
clocKwize has joined #ruby
JarJar has quit [Quit: Leaving]
brum has joined #ruby
achamian has joined #ruby
Kudos has joined #ruby
solars has joined #ruby
_nitti has joined #ruby
senayar has joined #ruby
sk87 has joined #ruby
_MJ_4Q_ has joined #ruby
interactionjaxsn has joined #ruby
<solars> a question, I've got some apps that connect to webservices (e.g. rabbitmq, or some http services) - we have multiple DNS entries pointing to different replicated servers. I wondered if it is somehow possible to have ruby automatically reconnect (for TCP) if the service is down, using different DNS records for the domain? (I hope this was undestandable)
brum has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
pyrac has quit [Ping timeout: 276 seconds]
anonymuse has joined #ruby
zigomir has joined #ruby
jtharris-coffee is now known as jtharris
chussenot has quit [Quit: chussenot]
braoru has quit [Quit: Leaving]
arietis has joined #ruby
<Hanmac> solars: isnt that a #rubyonrails question?
<shevy> apeiros_ yeah, possibly :)
JarJar has joined #ruby
chussenot has joined #ruby
<csmrfx> solars: of course it is possible
himsin has quit [Ping timeout: 255 seconds]
<shevy> got a question...
frem has joined #ruby
<shevy> I have a method, div. I also have a module called Div, which allows me to change the default values to the method div()
JaTochNietDan has quit [Ping timeout: 245 seconds]
joshman_ has joined #ruby
pdamer has joined #ruby
<shevy> this works so far, but my next idea was to also change or overrule the default values to the arguments of div() right within the block passed to div() itself, by using the module Div (inside the block)
Zespre has joined #ruby
JaTochNietDan has joined #ruby
<shevy> hmm awful idea? I think I will try to make a minimal example on pastie soon
Gues_____ has quit [Quit: Computer has gone to sleep.]
girija has joined #ruby
nat_home has joined #ruby
pyrac has joined #ruby
dr_bob has left #ruby [#ruby]
jeffreybaird has quit [Ping timeout: 248 seconds]
<solars> Hanmac, nope.. ruby
<solars> csmrfx, are there any plugins or builtin things to do this?
grafthez has quit [Quit: Leaving]
Slivka has joined #ruby
<Hanmac> solars its not so an ruby question, more an network one ...
SCommette has joined #ruby
Morkel has joined #ruby
<solars> Hanmac, nope.. because ruby has to do this..
<solars> afaik, but thats why I'm asking here
<solars> but it's not related to rails in any way
sailias1 has joined #ruby
mando has joined #ruby
puppeh has quit [Remote host closed the connection]
shadowshell has joined #ruby
<shevy> solars I think the pool of ruby users with a lot of network experience is fairly small here
Czupa has joined #ruby
sk87 has quit [Read error: Connection reset by peer]
<hoelzro> solars: what are you trying to do?
<solars> no problem, just thought I'd ask in any way
<csmrfx> solars: a plugin for changing a DNS-server?
iamjarvo has joined #ruby
<solars> the scenario is as follows:
<csmrfx> solars: who knows, sounds bit strange.
rippa has joined #ruby
beiter has joined #ruby
sailias has quit [Ping timeout: 255 seconds]
<solars> I've got 2 IPs with a replicated instance of a database or other service
<solars> the domain, fu.example.com resolves to both of the IPs
<solars> browsers can do an automatic fallback to one of those IPs in case the other one is not accessible
khismetix has joined #ruby
<solars> the question is: does ruby do this as well? and if not; how can I tell ruby to do so
<csmrfx> lol
<csmrfx> first of all, usually you dont let web-apps conf your network
<hoelzro> solars: it should
<solars> TCPSocket.gethostbyname returns both IPs, so it could be the case that it is done automatically
<solars> hoelzro, makes me think so too...
<hoelzro> it's really up to the socket library that Ruby's using
<solars> csmrfx, sorry?
<solars> hoelzro, exactly
<csmrfx> secondly, depending on the OS, DNS address is just a line in a conf -file.
wallerdev has joined #ruby
<hoelzro> but it might just pick one and connect to that
<solars> hoelzro, yeah, the question is if it uses the other one if the first one fails.. but it might be the case if gethostbyname already returns multiple IPs
<solars> csmrfx, I think you misunderstood the scenario and what I'm trying to do
<csmrfx> having a script that changes between two DNS IP's or conf -files and kicks a restart buttons should be trivial.
<csmrfx> solars: probably so
<hoelzro> solars: I'm not sure, but considering how it works with IPv4 vs IPv6, that makes sense
<hoelzro> TIAS
<solars> yeah..
<solars> I'll just give it a try
<solars> thought someone might know it.. just in case I'm testing it in the wrong way
<dmonjo> i am reading socket.gets into a string, i would like to check for the 7th line of that string to see if a pattern matches, how can i check on the 7th line? means 7ths socket.get iteration
wallerdev has quit [Client Quit]
<v0n> hum, there's many doc for how to compress a string with zlib, but not how to compress several files (as you'd do with a UI)
<v0n> any experience there?
<dmonjo> i dont want to keep counting every line received, just want to trigger pattern matching on the 7th data line the server is sending to my socket
<csmrfx> lol
<csmrfx> you dont count the lines, you wont know if it's 7th or not.
mikepack has joined #ruby
<dmonjo> i want to count only thr first 7
<dmonjo> then forget about it
theRoUS has joined #ruby
<csmrfx> dmonjo: well, test if line count is under 7, and increment a counter, if 7, do magix, and else do nothing
<dmonjo> if received_line == 7 && incoming_data == /.*/ ...
<bean> hoelzro: you don't want to have it setup like that... You should have your app one ONE ip and have 2 servers share that IP with something like heartbeat
<dmonjo> wanted to see if any shortcut can do done on that
amacleod has joined #ruby
markalanevans has joined #ruby
<amacleod> What's the best way to get the first element of an array that matches a predicate? myarray.select { |e| pred?(e) }.first #?
<Hanmac> amacleod .find
<amacleod> I didn't see find in the docs. I must have forgotten to look at Enumerable again. :(
punchfacechamp has joined #ruby
markalanevans has quit [Client Quit]
Progster has quit [Ping timeout: 276 seconds]
aedornm has joined #ruby
allaire has joined #ruby
Progster has joined #ruby
deepinskin has quit [Quit: Leaving]
Virunga has joined #ruby
akemrir has joined #ruby
mneorr has joined #ruby
pandawarrior has joined #ruby
dross has quit [Ping timeout: 244 seconds]
<pandawarrior> hello!
<shevy> Hanmac, "Posted by Tukai Patra (loveconcept)"
jamesfung14 has quit [Read error: Operation timed out]
BrokenCog has left #ruby [#ruby]
<shevy> what are those nicks
<pandawarrior> what's the best way to try something and, if it fails try something else?
<aedornm> I had a major rewrite going of this project, but I don't think it's going to be in time (tomorrow) so now I have to backport to something buggy just to make a dead line. It's like being covered in mud and then sprayed with disinfected - You're still dirty, but oh so bacteria free!
<shevy> ILoveRuby... loveconcept... all those lovers
dross has joined #ruby
jamesfung14 has joined #ruby
<amacleod> pandawarrior, begin/rescue, sounds like.
<shevy> aedornm yeah... I ended up ruining 3 of my projects that way (personal projects only though)... I was 50% finished, about... then suddenly no longer had ANY fun, and abandoned them
<pandawarrior> in the rescue do i need to give details of the exception or can i just use the rescue with no arguments?
<shevy> I usually just start from scratch these days, after it's all a mess :P
<Hanmac> shevy i think this are lovecraft monsters in disguise :P
<shevy> Yeah Hanmac
<aedornm> shevy: yeah, this one was from all scratch. Made with love, leprechauns, and ponies.
<amacleod> pandawarrior, you can use a bare rescue if you just want to recover from everything.
nOStahl has joined #ruby
<nOStahl> hi guys
mneorr has quit [Ping timeout: 264 seconds]
<pandawarrior> lovely
<nOStahl> guys I'm having issues , I think passenger can't find the gem_home I have in config/GEM_HOME the dir setup and the apache vhost config has the setenv path/to/gems and i've restarted apache and even the whole server and still getting error from passenger asking if I ran bundle install cause it can't find gems
<pandawarrior> thanks
<v0n> there's no standard tar lib?
<workmad3> amacleod: 'rescue' on its own doesn't rescue from everything... it only rescues from all StandardError derived exceptions ;)
geggam_wk has joined #ruby
<amacleod> workmad3, thanks for the clarification. :) I wasn't aware there was stuff that rescue wouldn't catch.
<dmonjo> whats wrong with this code:
a_a_g has joined #ruby
<dmonjo> test10.rb:6:in `initialize': uninitialized constant IRCBot::Thead (NameError)
<amacleod> What's an example of something that wouldn't be caught by rescue?
<dmonjo> getting this error
<Hanmac> shevy he said "Don't worry" ... that may work in autrailia but not for me! *angry mode*
khismetix has quit [Quit: Computer has gone to sleep.]
<amacleod> dmonjo, Thead? Is that a typo for Thread?
Neomex has joined #ruby
Neomex has quit [Client Quit]
<nOStahl> here is a paste http://pastie.org/6354689 of what shows up in error.log
generalissimo has quit [Remote host closed the connection]
<workmad3> amacleod: LoadError
<workmad3> amacleod: or a plain Exception
<shevy> Hanmac hehehe I kind of gave up on the forum
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
<dmonjo> lol
<workmad3> amacleod: basically anything that inherits directly from Exception, rather than StandardError
<dmonjo> guess a sign of being tired
<shevy> dmonjo careful when being tired
<dmonjo> will try to!
<shevy> dmonjo I once wrote "def initialise" and could not understand why things did not work as expected
<dmonjo> hehe
<shevy> and another time, I wrote "def intialize"
<_bart> This sidekiq god recipe is constantly creating new sidekiq instances, and leaving the old ones in place, but why?
<shevy> sidekick headkick asskick deadkick
ThePicard has joined #ruby
<shevy> hmm or rather *deathkick
<shevy> ruby users have a strange way to name their gems
geggam_wk has quit [Client Quit]
<shevy> God.watch do
<nOStahl> lol
<nOStahl> thor
geggam_wk has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<nOStahl> sexp
jonahR has joined #ruby
<Hanmac> shevy i normaly have a helper syndrome ... that means i want to help everyone if i can ... but this guy makes me that i want tu punch some faces ...
<shevy> yeah, but I like the name thor actually
<shevy> thor wauki - lightning hammer of steel!
<ClownZ_> lol
<shevy> nOStahl there is a gem called sexp?
<shevy> isn't that lisp?
<ClownZ_> i guess we all have tendency to help people if we can hanmac
<shevy> Hanmac hehe
<nOStahl> sexp_something or other
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<shevy> helping can be fun, if the answer can be simple and the one asking for help isn't trolling
pyrac has quit [Ping timeout: 276 seconds]
<nOStahl> shevy: think you can help me point in the right direction on my issue?
keyvan has quit [Remote host closed the connection]
<shevy> if he is a troll, he is just stealing time. and if the answer isn't simple, it often means a lot of time investment, not always simple :(
hogeo has joined #ruby
<shevy> nOStahl I dont know much about bundler
<nOStahl> passenger pops up in the browser and says runtime error bundler couldn't find some gems.
<shevy> I usually end up using only .gem files
takeru has joined #ruby
<nOStahl> I have checked EVERY place I know of and they all have the dir to the gems set...
<shevy> yeah, no idea, last time I tried bundler it did not want to work. I think workmad3 here is a bundler guru
khismetix has joined #ruby
aapzak has quit [Ping timeout: 255 seconds]
<shevy> and Hanmac, especially Hanmac
<nOStahl> workmad3: ! hi :P
<nOStahl> lol
tagrudev has quit [Remote host closed the connection]
skattyadz has quit [Quit: skattyadz]
<shevy> this error does not say which gems are missing nOStahl right?
<nOStahl> i even tried it all out with a wrapper script to set production and dir to gems
<nOStahl> it does not
<shevy> man, this would make me mad
<nOStahl> heres what shows up in error log
<Hanmac> Quintus_q may be better for bundler ...
rickmasta has joined #ruby
<_bart> But any ideas?
<shevy> nOStahl I cant see anything useful in this error
<nOStahl> I don't think its a gem thats failing its that it can't find any of the gems
<shevy> _bart not me, dont have any experience with God
zoonfafer has quit [Ping timeout: 272 seconds]
<shevy> _bart you could try to find out at which line the error happens
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<dmonjo> Thread.new is not getting called :/
BizarreCake has quit [Quit: Leaving]
aapzak has joined #ruby
<shevy> nOStahl hmm then perhaps bundler does not look into the proper directory
<workmad3> nOStahl: how did you run 'bundle install'? how did you install ruby?
<nOStahl> workmad3: I am trying to get canvas - lms up
allaire has quit []
<nOStahl> followed the production start guide. let me grab you a link
<nOStahl> it has you setup a gem_home in your /home/ dir
monkegjinni has quit [Remote host closed the connection]
<nOStahl> so as I followed the guide then somewhere down the road it tells you to setup a new user after I had already ran bundle install as my admin user
<dmonjo> can you call Thread.new in initialize() ?
<nOStahl> then I cp the gems folder to the new user for canvas and changed owner of it etc.
<dmonjo> my Thread.new is not being called there
<workmad3> nOStahl: you can't just copy the gems folder around
<nOStahl> re-ran bundle install as that user and it showed all systems go
<workmad3> nOStahl: also, for a prod system, it's better to do 'bundle install --deployment'
<workmad3> nOStahl: which I'd suggest you do ;)
<nOStahl> what does that do
<nOStahl> I'm very new to ruby stuff :P
piotrj has quit [Remote host closed the connection]
<workmad3> nOStahl: primarily, 'bundle install --deployment' will install all your gems to a vendor/bundle directory instead of to a global gem repo
<dmonjo> http://pastebin.com/VzVY88tX appreciate if someone can tell me why Thread called is not being reached
<workmad3> nOStahl: it does some other stuff too, such as ensuring the Gemfile.lock matches the Gemfile, is checked into source control, and doesn't attempt to do any extra dependency resolution
<nOStahl> workmad3: will this be simple to change or do I need to start all over?
piotrj has joined #ruby
<workmad3> nOStahl: you shouldn't need to change anything
<workmad3> nOStahl: just run 'bundle install --deployment' in your canvas directory
brjannc has quit [Ping timeout: 272 seconds]
<nOStahl> k trying
rickmasta has quit [Ping timeout: 252 seconds]
jocellyn has joined #ruby
monkegjinni has joined #ruby
Choobie has quit [Remote host closed the connection]
<nOStahl> so I don't have to worry about the GEM_HOME in config/GEM_HOME pointing to a user dir in home?
DrCode has quit [Remote host closed the connection]
generalissimo has joined #ruby
daniel_- has joined #ruby
railsbros_dirk has quit [Quit: railsbros_dirk]
<nOStahl> or passenger pointing to that gem dir
<nOStahl> or apache vhost config pointing to it as well
iamjarvo has quit [Read error: Connection reset by peer]
couscous has quit [Read error: Operation timed out]
Targen has joined #ruby
clocKwize has quit [Quit: clocKwize]
iamjarvo has joined #ruby
mockra has quit [Ping timeout: 276 seconds]
forrest has joined #ruby
<workmad3> nOStahl: you shouldn't need to, bundler actually handles all of that detail and changes it around appropriately when you go with a bundled path (like the --deployment option does)
<nOStahl> k
<nOStahl> trying it now I took snapshot of the vm first
DrCode has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<nOStahl> $GEM_HOME/bin/bundle install this is the command I was using before
<workmad3> nOStahl: yeah, use that but with a '--deployment' option
<nOStahl> ok
jtharris is now known as jtharris-HUNGRY
lethjakman has joined #ruby
jtharris-HUNGRY is now known as jtharris
razibog has quit [Ping timeout: 246 seconds]
endzyme has joined #ruby
fedza has joined #ruby
solars has quit [Read error: Operation timed out]
endzyme has quit [Read error: Connection reset by peer]
_bart has quit [Ping timeout: 264 seconds]
endzyme has joined #ruby
kevinfagan has quit [Quit: Linkinus - http://linkinus.com]
kevinfagan has joined #ruby
banister`sleep has quit [Remote host closed the connection]
brum has joined #ruby
jeffreybaird has joined #ruby
arya has joined #ruby
jjbohn has joined #ruby
brum has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
w400z has joined #ruby
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
ndngvr has joined #ruby
bean has quit [Ping timeout: 252 seconds]
<lectrick> So String has a #start_with? but no end_with? ... What is the fastest possible way to check if a string ends in something? Is something faster than string =~ /suffix$/ ?
<nOStahl> workmad3: still fetching sources :)
jonathanwallace has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.0]
d2dchat has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
<lectrick> ok I can't read. there is an end_with? Duh.
Liquid-- has joined #ruby
Jewl94c has joined #ruby
jamesfung14 has quit [Ping timeout: 264 seconds]
Jewl94c has left #ruby [#ruby]
Axsuul has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
takeru has quit [Remote host closed the connection]
eldariof has quit [Read error: Operation timed out]
chrishough has joined #ruby
takeru has joined #ruby
cs02rm0 has quit [Read error: No route to host]
jamesfung14 has joined #ruby
mercwithamouth has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
skattyadz has joined #ruby
piotrj has quit [Remote host closed the connection]
jocellyn has quit [Quit: Leaving.]
sayan has quit [Ping timeout: 264 seconds]
bean has joined #ruby
pandawarrior has left #ruby [#ruby]
takeru has quit [Ping timeout: 240 seconds]
danneu has joined #ruby
piotrj has joined #ruby
piotrj has quit [Remote host closed the connection]
Weazy has quit [Quit: leaving]
Weazy has joined #ruby
love_color_text has joined #ruby
apeiros_ has quit [Remote host closed the connection]
brjannc has joined #ruby
j^2 has joined #ruby
aganov has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Zolo has joined #ruby
j^2 has quit [Client Quit]
j^2 has joined #ruby
Targen has joined #ruby
<Mon_Ouie> Just for the record, /suffix$/ is wrong in general. "foo\nbar" =~ /foo$/
etcetera has joined #ruby
akemrir has joined #ruby
kumavis has joined #ruby
a_a_g has quit [Quit: Leaving.]
otters has quit [Ping timeout: 252 seconds]
apok has joined #ruby
_br_ has quit [Excess Flood]
otters has joined #ruby
alv-r- has joined #ruby
<dmonjo> can we use == with regex or only =~ ?
vlad_starkov has quit [Ping timeout: 245 seconds]
_br_ has joined #ruby
banister`sleep has joined #ruby
Takehiro has joined #ruby
holaholahola has joined #ruby
one[faget] is now known as hashmal
angusiguess has joined #ruby
rippa has joined #ruby
Choobie has joined #ruby
Choobie has joined #ruby
Choobie has quit [Changing host]
chrishunt has quit [Ping timeout: 246 seconds]
_br_ has quit [Excess Flood]
mercwithamouth has quit [Ping timeout: 276 seconds]
nat_home has quit [Quit: Leaving.]
zehrizzatti has joined #ruby
<Mon_Ouie> You can use ==. Except == is for equality.
<Mon_Ouie> /foo/ == /foo/
<Mon_Ouie> but /foo/ != "foo"
_br_ has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
<dmonjo> food =~ /foo/
<dmonjo> foo
<dmonjo> "foo" =~ /foo/
apok has quit [Quit: apok]
holaholahola has quit [Ping timeout: 248 seconds]
chrishunt has joined #ruby
nachtwandler has joined #ruby
jeffreybaird has quit [Ping timeout: 276 seconds]
chussenot has quit [Quit: chussenot]
richardjortega has joined #ruby
zehrizzatti has quit [Client Quit]
zz_Inoperable has quit [Quit: ZNC - http://znc.in]
krawchyk has quit [Remote host closed the connection]
fire has joined #ruby
verysoftoiletppr has joined #ruby
timonv has quit [Remote host closed the connection]
tjbiddle has joined #ruby
FenrirReturns has joined #ruby
Takehiro has quit [Remote host closed the connection]
codecop has joined #ruby
tcstar has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
vlad_starkov has joined #ruby
<rdark> Having a bit of fun with yaml and dumping complex-ish data (basically a hash, with each key value being a public or private RSA key)
Takehiro has joined #ruby
ryanf has quit [Quit: leaving]
<rdark> when I write out to the console it's fine, but as soon as I perform a to_yaml on the data it gets crapped all over. Doubly so when I do a YAML.dump out to a file - it's not even valid data
jeffreybaird has joined #ruby
tvw has quit []
tvw has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
Zolo has quit [Remote host closed the connection]
kumavis has quit [Quit: kumavis]
<dmonjo> what is the equivalent of shift for a string? example "test".shift = "est"
Zolo has joined #ruby
mneorr has quit [Ping timeout: 255 seconds]
Choobie has quit [Quit: End]
moos3 has quit [Quit: Computer has gone to sleep.]
<llaskin1> "test"[1..3]
tcstar has joined #ruby
<dmonjo> used .slice(1..-1)
mockra has joined #ruby
jonathanwallace has joined #ruby
moos3 has joined #ruby
IrishGringo has joined #ruby
<rdark> http://pastebin.com/HsXG448z if anyone could throw a clue my way
skum has joined #ruby
<shevy> guys, I want to change default values through a block
<shevy> def div(a=Div.a,b=Div.b,c=Div.c)
skum has quit [Remote host closed the connection]
<shevy> div { do_something_here_to_change_Div.a }
skum has joined #ruby
<shevy> what syntax would you suggest using for the block syntax there?
emptyflask has joined #ruby
Takehiro has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 248 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<shevy> there may be around 50 of these methods, I'd like to have a very simple way to remember
Zolo has quit [Ping timeout: 246 seconds]
<lupine> shevy, put together an environment object that has the value of "a" set, then instance_exec the block on that object, exposing a method that can change the value of a
<shevy> hmm all these return a string btw
<lupine> after the block is executed, you can then query the environment object
<shevy> lupine alright, give my head a moment to understand what you wrote here :-)
dblack_ has quit [Quit: dblack_]
ssvo has quit [Remote host closed the connection]
mlr has quit [Remote host closed the connection]
MrZYX has left #ruby [#ruby]
MrZYX has joined #ruby
<shevy> hmm ok biggest problem I have... instance_exec? hmm have to look it up
<shevy> ohhh... "instance_exec was added to ruby 1.9 and it allows you to pass parameters to a proc." interesting
<rdark> seems that yaml is converting the strings to binary.. Anyone know how make it not do that?
joeycarmello has quit [Read error: Connection reset by peer]
kpshek has quit []
GeorgesLeYeti has joined #ruby
akashj87 has joined #ruby
joeycarmello has joined #ruby
Vainoharhainen has quit [Ping timeout: 276 seconds]
<dmonjo> anything wrong with this ? socket_out.gets.chomp
<dmonjo> undefined method `chomp' for nil:NilClass (NoMethodError)
<GeorgesLeYeti> I have a question. Let say I have an expression exp="Hello how are you?" And I want to remove words "Hello" and "are". I found tmp=exp.gsub("Hello", "") and then tmp=tmp.gsub("are", "")
nga4 has quit [Ping timeout: 252 seconds]
<dmonjo> ok got it
<GeorgesLeYeti> Is it possible to write this in 1 line ?
<dmonjo> it is defined afterwards
<dmonjo> ruby is sequential
kpshek has joined #ruby
mlr has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
tesuki has joined #ruby
_nitti has quit [Remote host closed the connection]
yalue has joined #ruby
ssvo has joined #ruby
<shevy> GeorgesLeYeti YES
<shevy> oops damn caps
<Hanmac> exp.gsub(/Hello|are/, "")
<shevy> I typed "G", then tab complete in xchat, then typed YES :-)
Liquid-- has quit [Ping timeout: 255 seconds]
<shevy> GeorgesLeYeti you can chain methods
<shevy> object.method1.method2.method3
<shevy> object.method1().method2().method3()
sgmac has joined #ruby
<shevy> object.gsub().gsub().gsub()
<shevy> Hanmac optimized your example GeorgesLeYeti ;)
<rdark> Seems that YAML::ENGINE.yamler='syck'
<rdark> is the way to go :)
<shevy> rdark no in 2.0 :(
<GeorgesLeYeti> TY shevy and TY Hanmac i ll take your solution
akashj87 has quit [Ping timeout: 244 seconds]
carloslopes has joined #ruby
<shevy> "syck has been removed"
<lupine> shevy, something a little like: http://ideone.com/QHftvz
<shevy> see rdark :(
joeycarmello has quit [Ping timeout: 255 seconds]
<shevy> lupine ok one moment, still trying to get my head to learn something new (old dogs, new tricks... you know)
<lupine> (in that example, it needs "self." to avoid setting a local variablew
<lupine> there's probably something better
<rdark> shevy: syck has been removed? As in it's not in ruby 2?
zehrizzatti has joined #ruby
sepp2k1 has joined #ruby
nomenkun has quit [Remote host closed the connection]
[[johnonymous]] has joined #ruby
<lupine> if you're willing to pass an argument to the block and set things on that, it all becomes much simpler
<shevy> rdark in 2.0 yeah, in 1.9.x you can still use it
<dmonjo> test10.rb:7:in `block in negotiate_with_server': undefined method `chomp' for nil:NilClass (NoMethodError)
fermion has joined #ruby
<shevy> lupine that's quite advanced
pyrac has joined #ruby
<dmonjo> cant figure out the problem
sepp2k has quit [Ping timeout: 272 seconds]
<rdark> Not much of an issue for me atm. Still 1.8.7 and 1.9.3 on stuff I'm working with
<lupine> something like div() {|env| env.a = "foo" }
<lupine> it's quite a lot of boilerplate though
<shevy> lupine One thing I dont quite understand... why do we use &blk twice?
holaholahola has joined #ruby
<lupine> shevy, so that it's passed as the block argument to instance_exec, rather than being an ordinary argument of type Proc
joshman_ has quit [Ping timeout: 276 seconds]
<lupine> it's the same as doing instance_exec() { blk.call }
<lupine> (a bit)
Targen has joined #ruby
francisfish has quit [Remote host closed the connection]
<lupine> without the &, it'd be the same as instance_exec(Proc.new)
<lupine> (again, a bit)
piotrj has joined #ruby
francisfish has joined #ruby
joshman_ has joined #ruby
jrendell has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
browndawg has joined #ruby
khismetix has quit [Ping timeout: 240 seconds]
kumavis has joined #ruby
w400z has quit []
filipe has quit [Remote host closed the connection]
<GeorgesLeYeti> Hmm
<GeorgesLeYeti> I have a little problem
<GeorgesLeYeti> I want to delete <div> and </div> with gsub
mpfundstein has quit [Remote host closed the connection]
francisfish has quit [Read error: No route to host]
pyrac has quit [Ping timeout: 246 seconds]
lewis_ has joined #ruby
<GeorgesLeYeti> i guess it s not possible with gsub(/<div>|</div>/, "") because of / in exp </div>
w400z has joined #ruby
malkomalko has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 248 seconds]
BrianJ has joined #ruby
<lupine> GeorgesLeYeti, it's not possible in principle
khismetix has joined #ruby
<lupine> but gsub(/<div>|</div>\/, "") is possible
joeycarmello has joined #ruby
<lupine> it just doesn't do what you want
w400z has quit [Client Quit]
<GeorgesLeYeti> ho ty lupine
<LiquidInsect> GeorgesLeYeti: Are you sure you don't want to use an HTML parser to do this?
<LiquidInsect> er.
<LiquidInsect> sorry wrong guy
<LiquidInsect> no. Right guy.
<lupine> he definitely wants a html parser, but won't use one
noop has joined #ruby
<LiquidInsect> ah. okay...
<GeorgesLeYeti> LiquidInsect: I can't
<lupine> tbh, I probably wouldn't either, until it broke
aeontech has joined #ruby
<GeorgesLeYeti> it's bit complex
devdazed has quit [Quit: Bye]
<LiquidInsect> hey, if you can't you can't
<lupine> GeorgesLeYeti, remember, <div
<lupine> > is entirely valid
llaskin1 has left #ruby [#ruby]
<lupine> and is, in fact, idiomatic in some circles
<GeorgesLeYeti> Let say it define as texte
<alv-r-> can't you just escape the "/" with a \ ?
mpfundstein_ has quit [Ping timeout: 255 seconds]
kab60 has joined #ruby
<shevy> lupine thanks
kab60 has left #ruby [#ruby]
devdazed has joined #ruby
<shevy> lupine how long have you been using ruby btw? you seem quite a guru :)
newUser1234 has quit [Remote host closed the connection]
brum has joined #ruby
<lupine> regexen can't do html comprehensively, but sometimes, you don't need comprehensive html parsing
<lupine> shevy, main programming language at work for 4 years
newUser1234 has joined #ruby
tylersmith has joined #ruby
_nitti has joined #ruby
holaholahola has quit [Remote host closed the connection]
noxoc has quit [Quit: noxoc]
<alv-r-> GeorgesLeYeti: gsub(/<div>|<\/div>/, "") works fine (just add the \ before the /)
pdtpatrick has quit [Read error: Operation timed out]
<enroxorz-work> does anyone know a good ruby remote jobs board?
<ddv> enroxorz-work: Google
kpshek has quit []
Voodoofish430 has joined #ruby
holaholahola has joined #ruby
<shevy> lupine cool, even at work! you are a lucky man
<enroxorz-work> ddv: you truly are a paramount of succinct, useless answer. Thank you for pointing out google because without you I would surely have binged by accident.
<lupine> shevy, if you can get the method and the block to share a binding, you can get rid of the self, I think. possibly.
* lupine -> home
helvete has joined #ruby
kpshek has joined #ruby
<alv-r-> enroxorz-work: lol
devdazed has quit [Ping timeout: 240 seconds]
piotrj has quit [Remote host closed the connection]
brum has quit [Ping timeout: 248 seconds]
newUser1234 has quit [Ping timeout: 255 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
helvete has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 244 seconds]
jeffreybaird has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
helvete has joined #ruby
atyz has quit [Ping timeout: 264 seconds]
joast has joined #ruby
buscon has quit [Ping timeout: 272 seconds]
Lockzi has joined #ruby
helvete has quit [Client Quit]
dblack__ has joined #ruby
cupakrom- has left #ruby [#ruby]
jeffreybaird has joined #ruby
BizarreCake has joined #ruby
mephux has quit [Excess Flood]
tjbiddle has quit [Quit: tjbiddle]
mephux has joined #ruby
cupakromer has joined #ruby
holaholahola has quit [Ping timeout: 260 seconds]
ozgura has quit [Read error: Connection reset by peer]
RonScagz has joined #ruby
d2dchat has joined #ruby
ozgura has joined #ruby
dmerrick has quit [Quit: dmerrick]
threesome has joined #ruby
holaholahola has joined #ruby
wreckimnaked has quit [Read error: Operation timed out]
bricker`1A has joined #ruby
jonahR has quit [Quit: jonahR]
alvaro_o has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
<aedornm> Sweet... tables as formatters, javascript for simple text and links, php backend that just inserts variables into the javascript, and ... AND! ... FRAMES!
mikepack has quit [Read error: Connection reset by peer]
<banister`sleep> aedornm: is that your creation? u were talking about job security the other day :)
<aedornm> banister`sleep: no, I would never torture myself *this* much.
mikepack has joined #ruby
Gugs has joined #ruby
<Gugs> hi
Gugs has left #ruby ["Saindo"]
io_syl has joined #ruby
bricker`LA has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
jeffreybaird has quit [Ping timeout: 256 seconds]
anderse has quit [Quit: anderse]
zigomir has quit [Quit: zigomir]
breakingthings has quit []
pdamer has quit [Quit: pdamer]
adeponte has joined #ruby
bricker`1A has quit [Ping timeout: 248 seconds]
alvaro_o has quit [Quit: Ex-Chat]
noxoc has joined #ruby
carloslopes has joined #ruby
jrendell has quit [Quit: jrendell]
bricker`LA has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
Voting has joined #ruby
holaholahola has quit [Remote host closed the connection]
GeorgesLeYeti has quit [Quit: Quitte]
<Lockzi> Hey, I am getting really annoyed...
<Lockzi> The path `/home/administrator/.rvm/gems/ruby-1.9.3-p374@SiriProxy/gems/siriproxy-0.11.3/plugins/SiriProxy-Domotic` does not exist.
<Lockzi> Why do I get that when it's doing bundling?
<Lockzi> Any hints on where to look would be appriciated
danneu has quit [Quit: WeeChat 0.3.8]
jrendell has joined #ruby
banjara has joined #ruby
_br_ has quit [Excess Flood]
vbajpai has joined #ruby
<Lockzi> Essentially I take it like - It finds the actual source, creates the .gem file, and then it doesn't create the plugin folder in the .rvm directory
<Lockzi> Which causes that error...
_br_ has joined #ruby
achamian has quit [Remote host closed the connection]
noop has quit [Quit: Leaving]
browndawg has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
eldariof has joined #ruby
<vbajpai> coming from a python world, how do I install: https://github.com/britram/ripfix ?
banjara has quit [Client Quit]
NiteRain has joined #ruby
beiter has quit [Quit: beiter]
Es0teric has joined #ruby
beiter has joined #ruby
mityaz has joined #ruby
rupee has joined #ruby
fedza has quit [Read error: Connection reset by peer]
geggam_wk has quit [Ping timeout: 255 seconds]
girija has quit [Ping timeout: 276 seconds]
<LiquidInsect> vbajpai: not sure that it is installable
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<LiquidInsect> no gemfile, so it's not intended to be a gem
<LiquidInsect> README says "Intended as a reference implementation"
jpfuentes2 has joined #ruby
zz_Inoperable has joined #ruby
_br_ has quit [Excess Flood]
<vbajpai> LiquidInsect: yea, I see an example in bin/ , when I try to run it, it complains about missing modules, that should come from this library
shiningblue has quit [Ping timeout: 248 seconds]
<vbajpai> LiquidInsect: gives me a feeling this library needs to installed first, before I can use the example
ananthakumaran has quit [Read error: Connection reset by peer]
<Mon_Ouie> You can add the lib and ext/sctp (after compiling the extension with ruby extconf.rb; make) to the load path manually
_MJ_4Q_ has quit [Remote host closed the connection]
<Mon_Ouie> ($LOAD_PATH << "…" from code; ruby -I… from the terminal)
jrendell has quit [Quit: jrendell]
alvaro_o has joined #ruby
_MJ_4Q_ has joined #ruby
hck89 has joined #ruby
ananthakumaran has joined #ruby
hiall has quit [Quit: hiall]
_br_ has joined #ruby
thone_ has joined #ruby
piotrj has joined #ruby
jamesfung14 has quit [Ping timeout: 245 seconds]
_MJ_4Q_ has quit [Remote host closed the connection]
__Big0__ has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
nga4 has joined #ruby
MaxMoon has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
jamesfung14 has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
ferdev has joined #ruby
thone has quit [Ping timeout: 240 seconds]
<Hydroxide> is there a way for a class to have a default exception handler for all methods in the class?
predator117 has joined #ruby
kayloos has joined #ruby
ph^ has quit [Remote host closed the connection]
Stilo has joined #ruby
<aedornm> Hydroxide: With delegation
piotrj has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby
nighthwk1 has joined #ruby
aeontech has quit [Read error: Connection reset by peer]
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
sn0wb1rd has joined #ruby
IrishGringo has joined #ruby
<Hydroxide> aedornm: so nothing that allows my code to be readable to someone who isn't familiar with metaprogramming?
jekotia has joined #ruby
geggam_wk has joined #ruby
pyrac has joined #ruby
fermion has joined #ruby
banjara has joined #ruby
tjbiddle has joined #ruby
<dmonjo> bash: fork: Cannot allocate memory
<dmonjo> :D
MaxMoon has quit [Quit: This computer has gone to sleep]
emptyflask has quit [Ping timeout: 245 seconds]
endzyme has quit [Remote host closed the connection]
<dmonjo> included Thread.new in an infinite loop
skattyadz has quit [Quit: skattyadz]
Vert has joined #ruby
<Lockzi> Guys, any idea on how to solve this? http://pastiebin.com/512f9bc35b84f Where should I start to look? It works fine when I have the path specified as a git repository - but it refuses to work when installed from local path
<aedornm> Hydroxide: It would still be readable if you inherit from Delegator, and then wrap begin/rescue around the object return in #__getobj__
skum has quit [Ping timeout: 246 seconds]
yshh has quit [Remote host closed the connection]
twoism has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
himsin has joined #ruby
dmonjo has quit [Remote host closed the connection]
<sailias1> Lockzi: i wrote a quick blog post about using bundle config for local gem development
bradhe has joined #ruby
fedza has joined #ruby
<Lockzi> sailias1: Interesting - URL please? :)
predator117 has joined #ruby
<sailias1> Lockzi: let me see if i can find it, it might be too rails specific
gosshedd has quit [Ping timeout: 272 seconds]
MaxMoon has joined #ruby
<Hydroxide> aedornm: so __getobj__ would return self, but wrapped in a begin..rescue block?
<Hydroxide> aedornm: and __setobj__ would remain undefined?
<Lockzi> I am trying to get into Ruby by create my own plugin for SiriProxy - I am NOT up to a good start… It also take a long time to test changes since it has to be bounded and installed for every change...
<Hydroxide> aedornm: and I guess storing the object wouldn't be required since self is self, so I could skip defining an initialize method that just calls 'super' ?
<whitequark> Lockzi: also see bundle config foo.local /path/to/foo
<sailias1> Lockzi: my post may not help unfortunately then
<sailias1> whitequark: that's what my suggestion is in the post above
Choobie has joined #ruby
icole has joined #ruby
<whitequark> oh right
<whitequark> yea, it will help
d34th4ck3r has joined #ruby
<Lockzi> Far to much of a newbie to understand your suggestion
<Lockzi> I'll try to read up
tenmilestereo has joined #ruby
Czupa has quit [Remote host closed the connection]
icole_ has joined #ruby
jpcamara has quit [Quit: jpcamara]
slainer6_ has quit [Remote host closed the connection]
<Lockzi> From your post sailias1: "Up until now, using the path option was the recommended approach. " Currently I have a file in ~/.siriproxy/config.yml that specifies path: './plugins/SiriProxy-Domotic'
ryanf has joined #ruby
<Lockzi> Is that what you meant by that sentence?
<sailias1> Lockzi: yes
k610 has joined #ruby
<sailias1> Lockzi: but keep in mind this is all in the scope of bundler
<sailias1> Lockzi: my blog post that is, is all regarding bundler
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
dmonjo has joined #ruby
<Lockzi> Can I take it 3 steps back please. Ruby is the language, Rails is a web framework, RVM is some kind of versioning system of different Ruby versions (Like PHP 4.2 and PHP 5.3 eg.), what is bundler? The Compiler?
<Hydroxide> aedornm: so far I've inherited from Delegator, done an initialize method that calls super(self), done a __getobj__ as described, done an empty __setobj__(obj), and added a method that just throws an exception. calling that method doesn't trigger __getobj__'s rescue block
maligree has joined #ruby
<Hydroxide> Lockzi: a tool for installing gems and following their dependencies
<aedornm> Hydroxide: actually, you'd have to override more now that I think about it.
<sailias1> Bundler is a gem for managing application dependencies
<Hydroxide> aedornm: yeah. not that clean.
JeanMertz has joined #ruby
<aedornm> So you'll need more of a proxy
icole has quit [Ping timeout: 260 seconds]
<sailias1> Lockzi: you can create a 'Gemfile' and put your gem requirements in there
<Hydroxide> honestly if it's getting this complicated I'll just wrap the uses of the class in a suitable begin...rescue
BRMatt has joined #ruby
<Hydroxide> it only makes sense if simple
Xeago_ has joined #ruby
Xeago is now known as Guest79772
Guest79772 has quit [Killed (pratchett.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
FenrirReturns has quit [Ping timeout: 252 seconds]
<Lockzi> sailias1: https://github.com/Lockzi/SiriProxy-Domotic I already have one. I basically copied an existing plugin, stopped the name of it and replaced it with mine - yet I get errors and the other one does not… Sooo weird
brum has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest65215
Guest65215 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
FenrirReturns has joined #ruby
c0rn has joined #ruby
hoelzro is now known as hoelzro|away
skattyadz has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
chussenot has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (pratchett.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago is now known as Guest21976
Xeago_ has joined #ruby
Guest21976 has quit [Killed (morgan.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
softbit has quit [Remote host closed the connection]
brum has quit [Ping timeout: 248 seconds]
squidBits has joined #ruby
endzyme has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest74939
Guest74939 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
beiter has quit [Quit: beiter]
yacks has quit [Read error: Connection reset by peer]
<tjbiddle> #rspec is a bit dead - Anyone know if there is a way to test if a method is using it's parent class's method, or is overriding functionality?
Xeago_ has joined #ruby
Xeago has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
chrishough has quit [Quit: chrishough]
mafolz has quit [Remote host closed the connection]
<banister`sleep> tjbiddle: you mean if an *object* is using its parent class's method
interactionjaxsn has quit [Remote host closed the connection]
<banister`sleep> or its own method
Xeago is now known as Guest1189
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Guest1189 has quit [Killed (card.freenode.net (Nickname regained by services))]
<banister`sleep> tjbiddle: use this: obj.method(name).owner
<Mon_Ouie> Do you want to make sure it calls super or just that it doesn't override it?
Slivka has quit [Ping timeout: 255 seconds]
<Hydroxide> aedornm: yeah, the whole need for a proxy is too ugly for this use case. I can see how I could hide the ugly inside a gem or whatever, but the convenience is not worth the obscure pain for my colleagues
<banister`sleep> it's a pretty stupid method if all it does is calls super
<banister`sleep> though i guess i can think of a couple of use cases
<Mon_Ouie> It could call super and do other stuff around
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago has quit [Killed (zelazny.freenode.net (Nickname regained by services))]
nomenkun has joined #ruby
<dmonjo> i need someone expert with Threads to assist me
jamesfung14 has quit [Ping timeout: 276 seconds]
<dmonjo> when i remove Thread.new the code works fine, when i add it the program exists with no error
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
<dmonjo> in def negotiate_with_server
<dmonjo> what am i doing wrong?
takeru has joined #ruby
<tjbiddle> banister`sleep: No, none of them are just calling super :p That'd be silly. I'll give that a shot - thanks!
JohnBat26|2 has joined #ruby
<Hydroxide> aedornm: now if only I could override something like method_called instead of method_missing
<Hydroxide> aedornm: but I doubt that exists :)
<aedornm> Hydroxide: Ah.. well, unfortunately nothing simpler to specifically rescue exceptions per class basis. (As far as I know, anyway)
astronaute has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<astronaute> hello all
<Hydroxide> I could maybe override method_added to alias methods out of the way and wrap them individually in begin..rescue...end
<Hydroxide> but that's still kind of awkward in terms of stomping on the namespace
Xeago_ has joined #ruby
Xeago has quit [Killed (pratchett.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<aedornm> Not called, but you can hook into method_added if you want to go that way, but that's quite a bit more code to understand
<astronaute> Can someone please help me install pry gem on ruby 2.0.0-p0 here is my error: http://pastebin.com/XPW6QJni
<aedornm> But at least then you could make it into a module and extend your classes with it
<Hydroxide> this is almost solved by 2.0's Module#prepend or rails's alias_method_chain, but I'm not using either 2.0 or rails and I don't think Module#prepend works where you want it to apply to all things without restriction
<banister`sleep> astronaute: that's not pry, that's pry-debugger
Xeago_ has joined #ruby
Xeago has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
DrShoggoth has joined #ruby
<banister`sleep> astronaute: 'debugger'doesn't yet work on 2.0
<dmonjo> can you include an infinite loop in a thread?
<banister`sleep> astronaute: just instal plain 'pry' in the meantime
<astronaute> banister`sleep yes debugger, you're right, is there any ETA on it ?
<dmonjo> i am assuming a thread can read all global variables
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<banister`sleep> astronaute: no idea
Xeago_ has joined #ruby
Xeago is now known as Guest43581
Guest43581 has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<astronaute> banister`sleep okay thank you
<banister`sleep> astronaute: try pry-nav
apok has joined #ruby
<banister`sleep> astronaute: it has a lot of the same functionality and doesnt need debugger
<banister`sleep> astronaute: or pry Mon_Ouie's pry_debug gem
takeru has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
Xeago is now known as Guest60103
Guest60103 has quit [Killed (morgan.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<banister`sleep> Hydroxide: you can just wrap them after the fact
<astronaute> banister`sleep I'll look into it, thank you :)
<banister`sleep> Hydroxide: using metaprogramming
jeffreybaird has joined #ruby
<dmonjo> how vsn i troubleshoot if my program is exiting with no error?
nighthwk1 has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
<Hydroxide> banister`sleep: that's what the whole conversation has been
newUser1234 has joined #ruby
<Hydroxide> hm, I have an interesting idea
Xeago_ has joined #ruby
Xeago is now known as Guest17134
Guest17134 has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<Hydroxide> one moment :)
jonahR has joined #ruby
DrShoggoth has quit [Ping timeout: 246 seconds]
blaxter has quit [Ping timeout: 246 seconds]
pkrnj has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (zelazny.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
joofsh has joined #ruby
yshh has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest17777
Guest17777 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
TomJ has quit [Ping timeout: 244 seconds]
Xeago_ has joined #ruby
Xeago has quit [Killed (gibson.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
duosrx has quit [Remote host closed the connection]
icole has joined #ruby
elaptics is now known as elaptics`away
hashmal is now known as one[faget]
jamesfung14 has joined #ruby
icole_ has quit [Ping timeout: 245 seconds]
richardjortega has quit [Ping timeout: 245 seconds]
jeffreybaird has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jeffreybaird has joined #ruby
DaltonUS has joined #ruby
DaltonUS has quit [Client Quit]
smallcapsdude has joined #ruby
<Hydroxide> banister`sleep: thank you! I was struggling with how to wrap the old thing in a way that didn't pollute the namespace
smallcapsdude is now known as katie89
<banister`sleep> Hydroxide: you can easily modify that to take an array of method names
<banister`sleep> Hydroxide: i.e: before_filter :method1, :method2, :method3 do; puts "im gonna do this before every method specified"; end
devdazed has joined #ruby
<Hydroxide> banister`sleep: I'd want it to happen for all methods, so I'd just rename before_filter to be method_added :)
<Hydroxide> and wrap it in another method to pass the block or something
<banister`sleep> Hydroxide: yeah you could, but i personally hate those hooks
burgestrand has quit [Ping timeout: 255 seconds]
yshh has quit [Ping timeout: 244 seconds]
<banister`sleep> Hydroxide: i find it better to just explicitly call: before_filter after you've defined the methods
<Hydroxide> the idea is a very simple UI that my colleagues can use without having to think about ruby metaprogramming
chrishough has joined #ruby
<Hydroxide> but, yeah
<banister`sleep> ah ok
<banister`sleep> well if you can ensure no one is going to subclass and want to use their own method_added
jeffreybaird has quit [Read error: Connection reset by peer]
<banister`sleep> otherwise they have to be aware of the method_added you define
<banister`sleep> that kind of stuff becomes stupid fast
noxoc has quit [Ping timeout: 245 seconds]
Al__ has quit [Quit: Al__]
<banister`sleep> Hydroxide: for example: before_filter *methods(false), ...
<banister`sleep> well it'd have to be
jeffreybaird has joined #ruby
breakingthings has joined #ruby
<aedornm> Hmmm... repeats
<banister`sleep> before_filter *instance_methods(false)
`p has quit [Quit: Leaving]
<Hydroxide> well yeah, I don't want to fall into the same overly metaprogrammed trap that I get annoyed at in e.g. sinatra or rails (have you tried wanting a slight variation on an ActiveSupport::Calculations-enhanced DateTime class? not fun)
`p has joined #ruby
<Hydroxide> (my variation worked, but some of the ActiveSupport-provided methods returned a bare DateTime, not with my changes)
<banister`sleep> actually all that shit is so impossible now with Module#prepend
i_s has joined #ruby
beiter has joined #ruby
<Hydroxide> I'm still on 1.9 and it doesn't make sense for my team to migrate - that said, I'd certainly use 2.0 if i were starting something now
<banister`sleep> you have to do something like: before_filter instance_methods(false).select { |v| instance_method(v).owner == self }
<banister`sleep> Hydroxide: no i mean, Module#prepend just breaks a bunch of assumptions and forces u to have more complicated code
<Hydroxide> depends on what you want to do - it was already mostly possible with alias_method_chain right?
<aedornm> Hydroxide: Just remember to add a repeat catch when using method_added and define_method
<banister`sleep> Hydroxide: i just explained what i want to do :) my point is that instance_methods(false) no longer just selects the methods on the receiver
<banister`sleep> it can also give methods on prepended modules
theRoUS has quit [Quit: Leaving]
<Hydroxide> at this point I'm probably going to skip adding this goo, but I would want to understand :)
<aedornm> If I remember correctly, those together will just loop forever
love_color_text has quit [Read error: Connection reset by peer]
<Hydroxide> banister`sleep: sure
<xibalba> My wife wants to learn a programming language, thinking Ruby is the best fit. Anyone have any general guidlines or starting points I should send to her?
<Hydroxide> xibalba: don't listen to the above conversation, it's confusing :)
<banister`sleep> xibalba: _why's poignant guide
devdazed has quit [Quit: Bye]
<Hydroxide> (that's a recommendation)
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
devdazed has joined #ruby
<xibalba> banister`sleep, do you have a link to this guide?
<banister`sleep> xibalba: it's all over google
<banister`sleep> it's very famous
* Hydroxide hands google a tissue to wipe it off
<xibalba> this look right? _why's poignant guide
<xibalba> Why's (Poignant) Guide to Ruby
<xibalba> mislav.uniqpath.com/poignant-guide/
<banister`sleep> xibalba: yeah
<banister`sleep> yes
<xibalba> this looks like a comic :|
<banister`sleep> xibalba: it's an entertaining way to learn ruby
<xibalba> k, thought i was getting trolled at first
<banister`sleep> xibalba: noobie's find it really accessible
icole has quit [Remote host closed the connection]
<dmonjo> anyone free to read my code? what to see what is the wrong thing i am doing with the Thread.new http://pastebin.com/4Rjd1rC5
<shevy> xibalba some like it, some hate it. I was among those who hated it. but it is creative, one has to give it to _why
katie89 has left #ruby [#ruby]
<xibalba> I got her one of the Ruby programming books too, can't remmeber the title off the top of ym head but it's popular
<shevy> dmonjo and how should they find out?
<banister`sleep> xibalba: what langauge do you come from?
<shevy> dmonjo also use a pastie with ruby syntax highlighting man
cantonic has joined #ruby
<xibalba> well I haven't really touched alot of code in about 8 years. I originally programmed mostly PHP, some C#, learned ASM x86 and Java but didn't use themin production
Eldariof-ru has joined #ruby
<dmonjo> shevy: its easy code
<shevy> xibalba did she work through this here already: http://pine.fm/LearnToProgram/?Chapter=01
<shevy> dmonjo it isn't
<dmonjo> trying to open a socket and throw it in a thread
<xibalba> shevy, no but i'll add it to the list
<xibalba> i've mostly been talking to her about OO concepts
<shevy> xibalba she must start with that!
<xibalba> I am a sys admin for vmware clusters
<shevy> forget OO :P
<banister`sleep> xibalba: ruby does OO really well
<xibalba> i've noticed, much better than the bastardized OO of PHP
<shevy> xibalba this is the wrong thing to learn ruby, the real way is to consider ruby as poetry
bradleyprice has joined #ruby
<xibalba> i've noticed the Ruby community if significantly different from others too
<banister`sleep> xibalba: dont listen to shevy, he's been programming ruby for 4 years and he's still a noob ;)
<banister`sleep> :P
<banister`sleep> jk
dblack__ has quit [Quit: dblack__]
SCommette has quit [Quit: SCommette]
<shevy> xibalba depends which community, rails is to a large degree non-overlapping, but there are many long time rails users who also have lots of non-rails related gems
cviebrock has joined #ruby
<xibalba> She has an Econ degree, dunno if that's a good fit for programming too or if it's just useless
Lemtzas_ is now known as Lemtzas
<shevy> *non-overlapping with the "ruby community"
<banister`sleep> xibalba: what kind of programs does she want to write?
<dmonjo> getting this error: test10.rb:51:in `<main>': undefined method `join' for nil:NilClass (NoMethodErro
d2dchat has quit [Read error: Connection reset by peer]
<aedornm> xibalba: I have an art degree.. it really doesn't matter.
<shevy> dmonjo you have a nil object there
d2dchat has joined #ruby
<xibalba> she doesn't know yet, i was thinking some financial or statistical apps might be good for her. she's great at math
<cviebrock> hey all .. would this be an okay place to ask a question about god? And I mean godrb.com … :)
<shevy> dmonjo you must ensure that the code you write will not lead to nil objects
eldariof has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 246 seconds]
<dmonjo> getting this error: test10.rb:51:in `<main>': undefined method `join' for nil:NilClass (NoMethodErro
<dmonjo> sorry
<dmonjo> by mistake
<shevy> yes we read you before!
<banister`sleep> xibalba: well unfortunately, there are other (much less fun/enjoyable) languages that are far superior to rubh when it comes to financial/statistical stuff
interactionjaxsn has joined #ruby
<dmonjo> was reexucting a shell command
<shevy> shall I copy paste it for you so we have it a third time :P
<dmonjo> :)
<shevy> dmonjo nil object does not have .join method
<banister`sleep> xibalba: such as R, Julia, python
<xibalba> banister`sleep, i think ruby is a good introduction to programming in general though. she dabbled in basic php about 10 years ago, enjoyed it but her father told her to get a business/econ degree and not to do programming
<dmonjo> it shouldnt be nil should be the thread fired inside a method
<banister`sleep> xibalba: but she'll likely have a harder time learning those
<banister`sleep> xibalba: given all the simliarities between python/ruby, i actually found learning python a real boring chore, and gave up and switched to ruby instead
icole has joined #ruby
samuel02 has joined #ruby
<xibalba> what makes python better for math than ruby?
nachtwandler has quit [Quit: leaving]
<xibalba> I bought her an iMac do you know if Ruby is builtin?
icole has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
hck89 has quit [Ping timeout: 256 seconds]
elico has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 244 seconds]
icole_ has joined #ruby
<lewis_> xibalba: there's more library math related
<xibalba> gotcha
percival__ has quit []
<banister`sleep> xibalba: yes ruby is built-in, but it's an old version, luckily it's fairly easy to upgrade it
Villadelfia has quit [Ping timeout: 260 seconds]
ebobby has joined #ruby
icole_ has quit [Remote host closed the connection]
<shevy> xibalba also remember python has more users
<xibalba> great, do you recommend any sort of IDE for a newbie? I dont think VIM is gonna cut it.
<shevy> xibalba you can see it on IRC too, ruby here 858, #python around 1200
ExxKA has quit [Quit: This computer has gone to sleep]
mneorr has joined #ruby
<banister`sleep> xibalba: rubymine
<xibalba> is it free?
Villadelfia has joined #ruby
<xibalba> nope
d2dchat has quit [Remote host closed the connection]
<lewis_> how does the sort operator sort from high to low -when overriding the spaceship operator
stkowski has joined #ruby
tesuki has quit [Quit: Leaving.]
lewis_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
rcigni has quit [Quit: rcigni]
<dmonjo> if i have @string in a Thread1, can i get the latest state of @string in Thread2? they both are fired aftereach from the parent main thread
Zta has quit [Ping timeout: 255 seconds]
<dmonjo> @string is actually a socket stream in thread1
<dmonjo> so i want to use that socketstream in thread 2
Xeago has quit [Remote host closed the connection]
<shevy> xibalba no really
<shevy> xibalba it is the wrong way to go about wanting an IDE
Xeago has joined #ruby
reset has joined #ruby
<xibalba> how do you mean
BizarreCake has quit [Read error: Connection reset by peer]
zehrizzatti has quit [Quit: Leaving...]
mahmoudimus has joined #ruby
<shevy> xibalba always think in the simplest possible way in ruby
icole has joined #ruby
joofsh has quit [Remote host closed the connection]
harumph has joined #ruby
<banister`sleep> xibalba: blergh, ignore shevy :)
Zolo has joined #ruby
Zolo has quit [Remote host closed the connection]
<xibalba> give me some context, do you mean simplest as in use the simplest IDE like VIM?
<banister`sleep> xibalba: a lot of newbs love rubymine, it's just a bit ram hungry, but it's supposed to be very helpful when you're starting out
<shevy> no, vim is awfully complicated
<xibalba> my buddy is a vim fiend, wont use anything else
<shevy> xibalba a gtk widget, like gtksourceview, is enough to serve as an editor
icole_ has joined #ruby
<xibalba> I upgraded her box to 12GB of RAM so RubyMine should be fine on that I would guess
cascalheira has joined #ruby
<shevy> yeah, once your brain is addicted to vim, it finds other editors boring
icole_ has quit [Remote host closed the connection]
<lewix> class movie def <=>(other_movie) other_movie.rank <=> @rank end , and when I call movie.sort it sorts from highest to lowest rank
SCommette has joined #ruby
<lewix> why
angusiguess has joined #ruby
jamesfung14 has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
babykosh has quit [Ping timeout: 240 seconds]
ph^ has joined #ruby
<lewix> xibalba: i use textmate
chussenot has quit [Quit: chussenot]
<lewix> xibalba: who have you been talking about between
<xibalba> i dont understand
<xibalba> one moment, phone call
berserkr has quit [Quit: Leaving.]
<lewix> xibalba: i see a lot of her, she, my buddy, I'm confused
peregrine81 has quit [Quit: Computer sleeping.]
<amacleod> Presumably the antecedent to "she" is "my wife".
icole has quit [Ping timeout: 255 seconds]
<banister`sleep> lewix: did u try: @rank <=> other_movie.rank
peregrine81 has joined #ruby
<lewix> banister`sleep: no but I assume it would rank from low to high. I just want to understand the behind the scene.
<aedornm> great.. ajax calls.
<xibalba> lewix, oh the she is my wife, the buddy is my friend who is a ruby dev. i think he's in this channel now
d2dchat has joined #ruby
<lewix> xibalba: so your friend is a ruby dev, your wife wants to change career and what are you = )
<xibalba> sys admin of vmware stuff =P
pandawarrior has joined #ruby
pandawarrior has left #ruby [#ruby]
<xibalba> programmer in yesteryear
cviebrock has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
m8 has joined #ruby
Zta has joined #ruby
<shevy> xibalba well, vim has a big learning curve right?
<banister`sleep> xibalba: re shevy: noise >> signal
<shevy> xibalba now when your wife is a programmer, it surely pays off to become as good as possible with every keystroke that you use in your next 50 years
<shevy> xibalba if she would program just for fun, she wouldn't need anything fancy, especially nothing that would be complicated to use
<shevy> xibalba try sublime text or geany perhaps
<xibalba> i think she wants to make a career out of it, but she wants to try it out first to see if she enjoys it
<xibalba> i've seen sublime before and that looked amazing
duosrx has joined #ruby
brum has joined #ruby
<lewix> xibalba: textmate
gosshedd has joined #ruby
holahola has joined #ruby
<lewix> banister`sleep: wake up, you have a call for duty to enlighten me with the spaceship operator
<xibalba> thanks for the info gents, i'll bbiab.
jonathanwallace has quit [Ping timeout: 246 seconds]
holahola has left #ruby [#ruby]
rezzack has joined #ruby
babykosh has joined #ruby
dayepa has quit [Read error: Connection reset by peer]
carraroj has quit [Quit: Konversation terminated!]
chussenot has joined #ruby
holahola has joined #ruby
brum has quit [Ping timeout: 246 seconds]
Targen has quit [Ping timeout: 246 seconds]
malkomalko has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
DrShoggoth has joined #ruby
_nitti has quit [Remote host closed the connection]
atyz has joined #ruby
ozgura_ has joined #ruby
ozgura has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
<aedornm> Same submission, same packet back... different pages.
jjbohn is now known as jjbohn|afk
budmang_ has joined #ruby
wmoxam has quit [Read error: Connection reset by peer]
holahola has quit [Remote host closed the connection]
budmang has quit [Ping timeout: 255 seconds]
xardas has joined #ruby
atyz has quit [Ping timeout: 246 seconds]
chrishough has quit [Quit: chrishough]
jamesfung14 has joined #ruby
<dmonjo> @socket_out.puts(@client_stream.gets) is only returning the first words, cutting on a whitepace for example hello world is only returning hello
<dmonjo> shoudl i use gets.line?
Eldariof-ru has quit []
jrendell has joined #ruby
<aedornm> inline CSS, inline JS
pskosinski has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
freakazoid0223 has joined #ruby
Xeago is now known as Xeago_
Cicloid has joined #ruby
Xeago_ is now known as Xeago
mikurubeam has joined #ruby
mikekelly has quit [Ping timeout: 264 seconds]
Honeycomb has joined #ruby
Eiam has joined #ruby
dv_ has quit [Quit: No Ping reply in 180 seconds.]
decoponio has quit [Quit: Leaving...]
mneorr has quit [Ping timeout: 245 seconds]
bradleyprice has quit [Remote host closed the connection]
snearch has joined #ruby
chrishough has joined #ruby
snearch has quit [Max SendQ exceeded]
oposomme has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mikekelly has joined #ruby
fire has quit [Ping timeout: 248 seconds]
snearch has joined #ruby
baba has joined #ruby
<oposomme> Hi, I would like to know how to match any characters exclude those who are in tags like <foo>bar</foo> I dont know how to use ? anchors
snearch has quit [Max SendQ exceeded]
whowantstolivef1 has joined #ruby
JohnBat26|2 has quit [Remote host closed the connection]
snearch has joined #ruby
jasonkuhrt has joined #ruby
snearch has quit [Max SendQ exceeded]
shevy has quit [Ping timeout: 272 seconds]
nachtwandler has joined #ruby
snearch has joined #ruby
<oposomme> Nokogiri text method returns me text inside tags but also other subtags if they exists and I don't want those tags
jonathanwallace has joined #ruby
Retistic has joined #ruby
snearch has quit [Max SendQ exceeded]
cg433n has joined #ruby
akemrir has quit [Ping timeout: 240 seconds]
cg433n has left #ruby [#ruby]
snearch has joined #ruby
snearch has quit [Max SendQ exceeded]
Spooner has joined #ruby
snearch has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
snearch has quit [Max SendQ exceeded]
sdavis has joined #ruby
sheenobu has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
blahwoop has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
timonv has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
Extreme has joined #ruby
_nitti has joined #ruby
shevy has joined #ruby
hackeron has quit [Ping timeout: 264 seconds]
baba has quit [Quit: WeeChat 0.4.0]
ozgura_ has quit [Remote host closed the connection]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
jgarvey has quit [Ping timeout: 248 seconds]
Atte_Ruby has joined #ruby
mmitchell has quit [Ping timeout: 260 seconds]
xemu has quit [Ping timeout: 272 seconds]
<Atte_Ruby> Anyone know what could be wrong: trying to set-up Ruby on Rails for the first time according to railstutorial.org instructions. I'm doing the "demo app" but when I try to start the server it says "A server is already running"
<Atte_Ruby> Can't shut it down by pressing ctrl+c either it seems
<Atte_Ruby> And there's nothing on localhost:3000
<Atte_Ruby> Yesterday it still worked
<Atte_Ruby> Incredibly frustrating
<shevy> the railsers are on #rubyonrails
<Honeycomb> Restart your terminal application
<Atte_Ruby> Yeah I've done that numerous times
zeade has joined #ruby
<shevy> probably its hanging in your terminal
hiroyuki has joined #ruby
marr has joined #ruby
<shevy> kill all ruby scripts, then restart
<shevy> the script there
pdamer has joined #ruby
adambeynon has joined #ruby
fasta has quit [Ping timeout: 240 seconds]
statarb3 has joined #ruby
hackeron has joined #ruby
jpcamara has joined #ruby
chrrz has joined #ruby
_nitti has quit [Ping timeout: 255 seconds]
<aedornm> Atte_Ruby: Linux?
fermion has joined #ruby
<Atte_Ruby> No
<Atte_Ruby> Windows
Morkel_ has joined #ruby
<Atte_Ruby> Thanks shevy, going to Google instructions on how to kill all ruby scripts :D
<shevy> Atte_Ruby many ways
<shevy> I usually do "psax | grep ruby"
<shevy> but I am lazy
<shevy> alias psax='ps ax'
<aedornm> ctrl-shift-escape, go to Processes, and see if you have anything running ruby.exe
<shevy> ohhh
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
<shevy> windows, did not read that
<shevy> that's annoying Atte_Ruby! come to linux or mac
cpruitt has joined #ruby
<shevy> on linux you quickly get the PIDs listed on the left side, then you cann kill it
richardjortega has joined #ruby
jpcamara has quit [Ping timeout: 246 seconds]
<shevy> like: kill -9 4389
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
<tylersmith> shevy: ps ax | grep rub[y]
<aedornm> pgrep ruby
<tylersmith> and it won't return the grep itself
MaxMoon has quit [Quit: This computer has gone to sleep]
<shevy> tylersmith cool, did not know that
<shevy> first time I see a [] there
<tylersmith> it's a regex
<shevy> ah I see
<tylersmith> that can't match itself. it's a neat little trick an ops guy showed me
kirchevsky has quit [Ping timeout: 264 seconds]
sepp2k1 has quit [Remote host closed the connection]
sk87 has joined #ruby
nomenkun has quit [Remote host closed the connection]
* TTilus is used to doing grep -v grep
<Xeago> I thought there were other options to exclude the saerch program
<tylersmith> there may be, but my unix foo is weak
<Xeago> the regex thingy is cool tho
<Atte_Ruby> shevy: I'm definitely going to get a mac next :)
noxoc has joined #ruby
blahwoop has joined #ruby
<aedornm> expensive
noxoc has quit [Read error: Connection reset by peer]
fasta has joined #ruby
jgarvey has joined #ruby
budmang_ has quit [Read error: Operation timed out]
gosshedd has quit [Ping timeout: 240 seconds]
FenrirRe1urns has joined #ruby
icole has joined #ruby
noxoc has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
Stilo has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
icole_ has joined #ruby
IrishGringo has joined #ruby
brum has joined #ruby
budmang has joined #ruby
bradleyprice has joined #ruby
DrShoggoth has quit [Quit: Leaving]
geggam_wk has quit [Remote host closed the connection]
FenrirReturns has quit [Ping timeout: 260 seconds]
<Xeago> aedornm: not as much as you think it is
<Xeago> but that is a discussion for another medium
_nitti has joined #ruby
jsilver has joined #ruby
slashslashbaka has joined #ruby
ddd has joined #ruby
icole has quit [Ping timeout: 246 seconds]
hiroyuki has quit [Ping timeout: 245 seconds]
ddd is now known as Guest34862
elaptics`away is now known as elaptics
rodj has joined #ruby
brum has quit [Ping timeout: 248 seconds]
evbogue has joined #ruby
khismetix has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
schaerli has joined #ruby
takeru has joined #ruby
<lectrick> How can I run a set of 3 unit tests at once without reloading the stack each time? So the order would be 1) load Rails stack 2) run test 1 3) run test 2 4) run test 3. I don't need them to run in parallel (yet)
noxoc has quit [Quit: noxoc]
geekbri_ has joined #ruby
jsilver has quit [Remote host closed the connection]
<i_s> anyone know the ruby equivalent of these 2 lines of c#? https://gist.github.com/isaksky/5059818
zigomir has joined #ruby
Targen has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
endzyme has quit [Remote host closed the connection]
bawigga has joined #ruby
jrendell has quit [Quit: jrendell]
<rdark> quit
rdark has quit [Quit: leaving]
geekbri has quit [Ping timeout: 264 seconds]
d34th4ck3r has quit [Quit: Konversation terminated!]
<nmeum> i_s: I am not very c#, but I guess you are looking for Open3.popen3? http://www.ruby-doc.org/stdlib-1.9.3/libdoc/open3/rdoc/Open3.html#method-c-popen3
takeru has quit [Ping timeout: 256 seconds]
<nmeum> *good
<nmeum> *at
icole has joined #ruby
<i_s> wow nice, thanks nmeum
ctp has joined #ruby
Extreme has left #ruby [#ruby]
one[faget] is now known as hashmal
_nitti has quit [Remote host closed the connection]
jsilver has joined #ruby
w400z has joined #ruby
centipedefarmer has joined #ruby
mando has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
icole_ has quit [Ping timeout: 245 seconds]
mityaz has quit [Quit: See ya!]
ozgura has joined #ruby
Quebert has joined #ruby
<lectrick> i_s: or simple backticks
<dmonjo> i have 2 threads that wants to write to another 3rd thread stream, thread1 can write to thread3 but thread2 cant write to thread3
<dmonjo> is their lick a locking mechanisms?
FenrirRe1urns has quit [Ping timeout: 255 seconds]
<dmonjo> like*
<dmonjo> there*
<lectrick> i_s: output_from_running_this_on_commandline = `somecommand.exe args`
Spooner has joined #ruby
huoxito has quit [Quit: Leaving]
oposomme is now known as oposomme|away
icole has quit [Remote host closed the connection]
Al__ has joined #ruby
k610 has quit [Quit: Leaving]
icole has joined #ruby
Squarepy has quit [Remote host closed the connection]
jsilver has quit [Remote host closed the connection]
<i_s> lectrick: yeah i wanted to use those, but in this case i need to be able to keep talking to it
richardjortega has quit [Quit: richardjortega]
holahola has joined #ruby
icole_ has joined #ruby
holahola has quit [Excess Flood]
<lectrick> i_s: yeah, popen3's your bet then
mneorr has joined #ruby
<lectrick> i_s: note that the ruby stdlib is not as clear/concise as the C# stdlib is... I've worked in both... but I enjoy ruby a lot more
pandawarrior1 has joined #ruby
oposomme|away has quit [Quit: Leaving...]
<i_s> agreed
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
icole has quit [Ping timeout: 240 seconds]
nkr has quit [Quit: Linkinus - http://linkinus.com]
icole_ has quit [Remote host closed the connection]
xemu has joined #ruby
pskosinski has joined #ruby
frem has quit [Ping timeout: 244 seconds]
_nitti has joined #ruby
dmonjo has left #ruby ["Leaving"]
mneorr has quit [Ping timeout: 255 seconds]
cascalheira has quit [Quit: Leaving...]
wobblini has joined #ruby
hoelzro|away is now known as hoelzro
hoelzro is now known as hoelzro|away
atyz has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
Slivka has joined #ruby
<brandon|work> sublimetext is pretty awesome
<lectrick> brandon|work: late to the party :)
mpfundstein has joined #ruby
mpfundstein_ has joined #ruby
wobblini is now known as realDAB
<brandon|work> yes. I just noticed after I replied that my scroll bar was at the *top* of the window, and not the bottom.
kumavis has quit [Quit: kumavis]
etcetera has quit []
mikurubeam has quit [Ping timeout: 255 seconds]
horofox_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
jrajav has quit [Quit: I tend to be neutral about apples]
kirchevsky has joined #ruby
alv-r- has quit [Quit: Konversation terminated!]
enroxorz-work has quit [Ping timeout: 276 seconds]
horofox_ has quit [Ping timeout: 255 seconds]
jeffreybaird_ has joined #ruby
rmartin has quit [Remote host closed the connection]
beiter has quit [Quit: beiter]
jeffreybaird has quit [Ping timeout: 245 seconds]
jeffreybaird_ is now known as jeffreybaird
oposomme has joined #ruby
nachtwandler has quit [Remote host closed the connection]
wrench has left #ruby [#ruby]
<shevy> Atte_Ruby most things related to ruby should work on windows too, sometimes it takes more effort, and it can be annoying
<shevy> brandon|work do you use sublime?
w400z has quit []
<shevy> I am working through an ... emacs tutorial right now ... :\ :/ :\
skattyadz has quit [Quit: skattyadz]
dmonjo has joined #ruby
kkrku has joined #ruby
hashmal is now known as q99
etcetera has joined #ruby
dmiller has joined #ruby
grzywacz has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
kold has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
Neomex has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
<nmeum> shevy: emacs is a great operating system, but a very awful editor
jeffreybaird has quit [Ping timeout: 248 seconds]
bawigga has quit [Ping timeout: 248 seconds]
burgestrand has joined #ruby
frem has joined #ruby
<banister`sleep> nmeum: that joke died 15 years ago
<nmeum> pffftztzt
<shevy> nmeum yeah, I cant even compile it right now
<shevy> vim compiled fine hmmmm
<nmeum> well...just use your package manager?
<nmeum> inb4: windows user
<shevy> --without-imagemagick
<nmeum> (or mac user)
<shevy> why does an "editor" need a configure switch for ... ImageMagick ... :\ :/
<nmeum> :D
mpfundstein__ has joined #ruby
pyrac has quit [Quit: pyrac]
<shevy> nmeum nah, I dont use any distribution, they are evil as long as they don't give me AppDirs
mpfundstein has quit [Ping timeout: 260 seconds]
jeffreybaird has joined #ruby
pkrnj has joined #ruby
bawigga has joined #ruby
jjbohn|afk is now known as jjbohn
statarb3 has quit [Ping timeout: 244 seconds]
ryanneufeld has left #ruby [#ruby]
nergy has joined #ruby
<brandon|work> shevy, yes, I use Sublime
Kevin has joined #ruby
<brandon|work> I'm not a very advanced user of it, but I like the way it behaves
noxoc has joined #ruby
harumph has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Kevin is now known as Guest64410
<amacleod> sublimetext is pretty awesome
harumph has joined #ruby
jeffreybaird_ has joined #ruby
harumph has quit [Client Quit]
harumph has joined #ruby
<amacleod> I really like the ability to have parallel selections and overwrite them simultaneously.
brianpWins has quit [Quit: brianpWins]
wr has joined #ruby
Neomex has quit [Quit: Neomex]
sgmac has quit [Remote host closed the connection]
kevinfagan has quit [Ping timeout: 248 seconds]
noxoc has quit [Client Quit]
<shevy> hey
<shevy> what is: (a^b)
zehrizzatti has joined #ruby
evbogue has left #ruby [#ruby]
<shevy> def h2(a, b); (a^b).to_s(2).count("1"); end
<amacleod> What type is a?
<banister`sleep> amacleod: what do you mean by parallel selection?
jeffreybaird has quit [Ping timeout: 248 seconds]
jeffreybaird_ is now known as jeffreybaird
<amacleod> If I were a clever library designer, I might use ^ to indicate some sort of set operation (union, I think?).
Bosma has quit [Quit: leaving]
<shevy> amacleod hmmm a moment
<amacleod> banister`sleep, if you select a word and hit Alt-F3, it selects every occurrence of that word in the document. You can then type over the word like a single selection, only it types it for each instance.
<shevy> h1(2323409845, 1782647144)
<banister`sleep> amacleod: ah ok
<shevy> amacleod no real idea what it is haha... have not seen it before
<amacleod> Oh, if it's numbers then maybe it's exponentiation, or maybe it's some crazy bitwise thing.
swex has quit [Ping timeout: 272 seconds]
<shevy> nmeum hmm
<realDAB> it's bitwise xor
justsee has quit [Quit: Leaving...]
<nmeum> yep
pskosinski has quit [Quit: Red Eclipse, game of racist admins/devs: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
txdv has quit [Read error: Connection reset by peer]
locriani has quit [Ping timeout: 256 seconds]
kold has quit [Remote host closed the connection]
txdv has joined #ruby
mikurubeam has joined #ruby
cascalheira has joined #ruby
jblack has quit [Ping timeout: 240 seconds]
alexim has joined #ruby
brum has joined #ruby
cascalheira has quit [Client Quit]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Honeycomb has quit [Quit: Leaving.]
Honeycomb has joined #ruby
nomenkun has joined #ruby
justsee has quit [Client Quit]
Honeycomb has quit [Client Quit]
jrendell has joined #ruby
swex has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
zehrizzatti has quit [Quit: Leaving...]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
brum has quit [Ping timeout: 248 seconds]
khismetix has joined #ruby
endzyme has joined #ruby
nomenkun has quit [Ping timeout: 255 seconds]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
locriani has joined #ruby
kold has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
jeffreybaird_ has joined #ruby
motto has joined #ruby
FenrirReturns has joined #ruby
tylersmith has quit [Quit: tylersmith]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
geson has joined #ruby
tylersmith has joined #ruby
geson has left #ruby [#ruby]
jeffreybaird has quit [Ping timeout: 248 seconds]
jeffreybaird_ is now known as jeffreybaird
m8 has quit [Ping timeout: 240 seconds]
geson has joined #ruby
carlyle has joined #ruby
<whowantstolivef1> hi, i follow this tutorial http://rubymonk.com/learning/books/1/chapters/19-ruby-methods/lessons/57-being-methodical . and i got stuck at the last question. i type "add_two = 1.method("next") puts add_two.next " but it is not true, help please
bawigga has quit [Quit: Computer has gone to sleep.]
bawigga has joined #ruby
francisfish has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
horofox_ has joined #ruby
Beoran_ has joined #ruby
<i_s> whowantstolivef1: add_two is a method object, so if you want the result from it you gotta .call it
<realDAB> whowantstolivef1: i think the idea is to write def add_two(n) and implement the method
sailias1 has quit [Ping timeout: 264 seconds]
<realDAB> def add_two(n); n.next.next; end or whatever
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
khismetix has quit [Quit: Computer has gone to sleep.]
Atte_Ruby has quit []
geson has left #ruby [#ruby]
Beoran__ has quit [Ping timeout: 255 seconds]
testingb0t has quit [Quit: Leaving.]
c0rn has joined #ruby
Guest64410 has quit [Quit: Leaving...]
emergion has quit [Quit: Computer has gone to sleep.]
codecop has quit [Remote host closed the connection]
bryanjswift has joined #ruby
d2dchat has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
locriani_ has joined #ruby
geekbri_ has quit [Remote host closed the connection]
Zta has quit [Quit: Leaving.]
Zta has joined #ruby
sonda has quit [Remote host closed the connection]
fixl has joined #ruby
ClownZ_ has quit [Ping timeout: 276 seconds]
pdamer has quit [Quit: pdamer]
fedza has quit [Ping timeout: 248 seconds]
mando_ has joined #ruby
schaerli has joined #ruby
geggam_wk has joined #ruby
maxmanders has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
zehrizzatti has joined #ruby
JeanMertz has quit []
<whowantstolivef1> i_s: and realDAB thank you. i will try asap
locriani has joined #ruby
<pandawarrior1> ellooo. when i use #clear for an array it prints out the contents of the array on the screen. is there a way for me to clear/empty an array silently?
locriani_ has quit [Read error: Connection reset by peer]
<amacleod> pandawarrior1, are you talking about interactively in irb?
<pandawarrior1> no, on the command line
<canton7> then you're doing something else as well. pastie your code?
<pandawarrior1> k….
<pandawarrior1> one sec..
Rick has joined #ruby
Rick is now known as Guest3841
wr has quit [Quit: Leaving]
xrq` is now known as xrq
bawigga has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
ebobby has quit [Ping timeout: 255 seconds]
<pandawarrior1> canton7 yup, you're right i am doing something else and i've figured out what it is..
fsperling has quit [Ping timeout: 264 seconds]
<pandawarrior1> cheers
kold has quit [Remote host closed the connection]
bricker`LA has quit [Quit: leaving]
<canton7> heh, irc makes you psychic
mengu__ has quit [Quit: Konversation terminated!]
<Xeago> duckdebugging :D
sheenobu has quit [Quit: sheenobu]
maxmanders has quit [Ping timeout: 260 seconds]
samuel02_ has joined #ruby
malkomalko has quit [Read error: Connection reset by peer]
<dmonjo> if i create a thread named thread1 and define a local variable x in that thread, can i access that variable from the main thread using thread1.x ?
ryanf_ has joined #ruby
malkomalko has joined #ruby
bawigga has joined #ruby
zehrizzatti has quit [Quit: Leaving...]
samphippen has joined #ruby
zoned has quit [Quit: zoned]
ph^ has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 248 seconds]
Criztian has joined #ruby
<pandawarrior1> i love it when all that reading finally starts to pay off and you start writing code that makes sense and looks good
stkowski has quit [Quit: stkowski]
<dmonjo> class Test12
<dmonjo> @x = 12
<dmonjo> print i.@x
<dmonjo> i = Test12.new
<dmonjo> end
<samir> hi all. I'm trying to build a gem file using gem build foobar.gemspec, which depends on other gems I've build. Is there a way to tell it to look in a paritular directory for the other gems?
mikurubeam is now known as ahokaomaeha
<dmonjo> can you access sucha variable in ruby? or need to declare a method that returns x?
ryanf_ has quit [Ping timeout: 248 seconds]
buscon has joined #ruby
<canton7> dmonjo, you can, but it's not too pretty. the normal method is to create a function called x which returns @x
<canton7> or, rather get attr_reader :x to do it for you
<dmonjo> test12.rb:5: syntax error, unexpected tIVAR
<canton7> dmonjo, what's your code?
<dmonjo> the one i paste above
<dmonjo> 4 lines
ner0x has quit [Quit: Leaving]
<canton7> ah
<canton7> yeah, you can't do it quite like that
<dmonjo> whats wrong with it
<kayloos> Anybody here knows how to specify a style using pygments.rb?
<canton7> the way of grabbing @x without a method inside Test12 to expose @x isn't pretty, I mean
<canton7> dmonjo, what's wrong with it? It isn't possible. Ruby doesn't have public instance variables
Mon_Ouie has quit [Ping timeout: 245 seconds]
hogeo_ has joined #ruby
monkegjinni has joined #ruby
Bosma has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
ryanf_ has joined #ruby
IrishGringo has joined #ruby
chrishough has quit [Quit: chrishough]
<dmonjo> so i should use a method i cant refer to it by variable
LBRapid has quit [Quit: Farewell.]
ryanf_ has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Remote host closed the connection]
kumavis has joined #ruby
centipedefarmer has joined #ruby
<dmonjo> i = Test12 equiv to i=Test12.new ?
axl_ has quit [Quit: axl_]
<canton7> oops, taht's a typo
<realDAB> dmonjo: no. i = Test12 sets i to the class object Test12. i = Test12.new sets i to an instance of Test12.
<canton7> should be Test12.new
timonv has quit [Remote host closed the connection]
<dmonjo> ok
<dmonjo> and attr_reader :x what does it do exactly
<realDAB> oh, whoops, didn't realize that was a question about canton7's paste
<canton7> dmonjo, you've got some reading to do
<canton7> it generates a method which returns the value of @x
<dmonjo> cool
<canton7> an automatic way of writing what i've done on lines 9-11 for x
<dmonjo> so you showed x in one way and y in another
<dmonjo> thanks
<canton7> there's also attr_accessor which generates a function called x= too
<canton7> allowing you to assign to @x
<dmonjo> but mainly a method should be used to access these instance variables if we calling them from outside the instance
kkrku has quit [Quit: kkrku]
<canton7> a method is the *only* way
centipedefarmer has quit [Read error: Connection reset by peer]
<canton7> attr_reader generates a method
<canton7> (well, strictly not the only way, but as far as you're concerned right now)
centipedefarmer has joined #ruby
<dmonjo> so now if i have a thread1 and define a variable there, i can publish it to the main thread using a method
ebobby has joined #ruby
the_jeebster has joined #ruby
lethjakman has quit [Quit: WeeChat 0.3.9]
kuzushi has quit [Ping timeout: 248 seconds]
m3pow has quit [Ping timeout: 272 seconds]
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
kold has joined #ruby
nergy has quit [Ping timeout: 248 seconds]
nergy has joined #ruby
Starrfish has joined #ruby
Starrfish has quit [Client Quit]
tenmilestereo has quit [Quit: Leaving]
sirish has joined #ruby
BRMatt has quit [Quit: Leaving]
dmonjo has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
etcetera has quit []
hogeo_ has quit [Remote host closed the connection]
dmonjo has joined #ruby
kold has quit [Remote host closed the connection]
kayloos has quit [Quit: kayloos]
hogeo has joined #ruby
maxmanders has joined #ruby
etcetera has joined #ruby
i_s has quit [Quit: i_s]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
dexec has joined #ruby
dexec has quit [Client Quit]
chussenot has joined #ruby
dustint has quit [Ping timeout: 272 seconds]
cantonic_ has joined #ruby
brum has joined #ruby
hogeo has quit [Ping timeout: 255 seconds]
chrrz has quit [Ping timeout: 276 seconds]
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
Stilo has joined #ruby
etcetera has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
samuel02 has joined #ruby
samuel02_ has quit [Ping timeout: 244 seconds]
hck89 has joined #ruby
carlyle has quit [Remote host closed the connection]
etcetera has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
oposomme is now known as oposomme|away
EPIK has joined #ruby
dexec has joined #ruby
grzywacz has quit [Ping timeout: 245 seconds]
brum has quit [Ping timeout: 246 seconds]
tar_ has joined #ruby
<dmonjo> this doesnt work for example
huoxito has joined #ruby
<dmonjo> i think the only way is using Thread.current
<dmonjo> to publish thread info into the main one
invisime has quit [Quit: Leaving.]
<dmonjo> any comments?
nazty has joined #ruby
takeru has joined #ruby
rodj has quit [Quit: Page closed]
Nisstyre-laptop has joined #ruby
whowantstolivef1 has quit [Quit: quit]
hiroyuki has joined #ruby
oposomme|away has quit [Quit: Leaving...]
takeru has quit [Ping timeout: 260 seconds]
anteaya has joined #ruby
schaerli has joined #ruby
chrishough has joined #ruby
dv_ has joined #ruby
Mon_Ouie has joined #ruby
mengu has joined #ruby
tish has quit [Ping timeout: 272 seconds]
schaerli has quit [Remote host closed the connection]
hiroyuki has quit [Ping timeout: 255 seconds]
i_s has joined #ruby
sheenobu has joined #ruby
budmang has quit [Read error: No route to host]
bluOxigen has quit [Ping timeout: 240 seconds]
horofox_ has quit [Quit: horofox_]
i_s has quit [Client Quit]
nazty has quit [Quit: Lost terminal]
nga4 has quit []
qhartman has joined #ruby
<qhartman> having trouble with gems, this the place to ask, or is there a better channel?
sheenobu has quit [Client Quit]
etcetera has quit []
<ryanf> qhartman: here or #ruby-lang is probably your best bet
<shevy> qhartman yeah we are the gem experts
Mon_Ouie has quit [Ping timeout: 245 seconds]
jpcamara has joined #ruby
geggam_wk has quit [Remote host closed the connection]
buscon has quit [Remote host closed the connection]
<qhartman> Cool. This is on Centos 6. I installed gems 1.6.2 from the tarball using "ruby setup.rb --no-format-executable"
<qhartman> (done this on centos 6 hundreds of times)
<whitequark> aren't rubygems bundled with 1.9?
<whitequark> qhartman: are you using 1.8 in 2013?
<qhartman> and now none of the gems I install seem to be working, failing with various errors. Here's one from trying to install the format gem: https://gist.github.com/qhartman/5060744
phantasm66 has quit [Quit: *sleeeep….]
<qhartman> whitequark, yes, using 1.8.7, have legacy apps that need it.
chrrz has joined #ruby
<whitequark> qhartman: you might want to know that ruby 1.8 is EOL and will receive its last security update this summer
<qhartman> whitequark, yeah, we're moving that way, but aren't there yet
peregrine81 has quit [Quit: Computer sleeping.]
i_s has joined #ruby
<whitequark> qhartman: as a temporary migration strategy, both jruby and rubinius have 1.8 modes which will be supported for quite some time
<whitequark> especially jruby is good with compatibility.
<qhartman> whitequark, I'll definitely keep that in mind. Any suggestions for getting around the immediate problem? Any specific info I can provide that will help?
i_s has quit [Client Quit]
nazty has joined #ruby
Honeycomb has joined #ruby
<whitequark> qhartman: downgrade rdoc
<whitequark> to something of 1.8 era, definitely older than 4
<whitequark> or just pass --no-ri --no-rdoc
chrishunt has joined #ruby
yours_truly has joined #ruby
<qhartman> whitequark, k, ty
mfcabrera has joined #ruby
mercwithamouth has joined #ruby
atyz has quit [Quit: Leaving...]
mando_ has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
hiroyuki has joined #ruby
etcetera has joined #ruby
ckrailo has joined #ruby
harumph has quit [Ping timeout: 255 seconds]
adkron has quit [Ping timeout: 264 seconds]
wmoxam has quit [Quit: leaving]
yours_truly has quit [Quit: Leaving]
icole has joined #ruby
dv_ has quit [Ping timeout: 244 seconds]
icole_ has joined #ruby
adamjleonard has quit [Quit: Leaving...]
jerius has quit [Ping timeout: 240 seconds]
i_s has joined #ruby
__Big0__ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 255 seconds]
LS\MFT has joined #ruby
hiroyuki has quit [Ping timeout: 248 seconds]
icole has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
tish has joined #ruby
woolite64 has joined #ruby
mercwithamouth has joined #ruby
Bosma has quit [Ping timeout: 260 seconds]
Guest3841 has quit [Remote host closed the connection]
pskosinski has joined #ruby
woolite64_ has quit [Ping timeout: 248 seconds]
huoxito has quit [Quit: Leaving]
Bosma has joined #ruby
ffranz has quit [Quit: Leaving]
theRoUS has quit [Ping timeout: 276 seconds]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
alanp_ has joined #ruby
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
icole_ has quit [Remote host closed the connection]
kpshek has quit []
ckrailo has quit [Ping timeout: 276 seconds]
grayson has quit [Quit: Computer has gone to sleep.]
hiroyuki has joined #ruby
nergy has quit []
havenn has joined #ruby
forrest has quit [Quit: Leaving]
zoonfafer has joined #ruby
jjbohn is now known as jjbohn|afk
kristofers has quit []
ph^ has joined #ruby
HecAtic has joined #ruby
icole has joined #ruby
dv_ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
icole_ has joined #ruby
<pandawarrior1> does anyone know what the leftmost rows in a table are called? row columns?
<workmad3> pandawarrior1: how can a row be leftmost?
ckrailo has joined #ruby
<pandawarrior1> in excel the leftmost rows are labelled a,b,c etc
<workmad3> pandawarrior1: a row spans the entire table
kpshek has joined #ruby
<workmad3> pandawarrior1: do you mean cells?
zigomir has quit [Quit: zigomir]
hiroyuki has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
ph^_ has joined #ruby
LS\MFT has quit [Remote host closed the connection]
<pandawarrior1> yeah
ph^ has quit [Ping timeout: 245 seconds]
icole has quit [Ping timeout: 260 seconds]
<pandawarrior1> the leftmost cells
<pandawarrior1> heading cell?
<workmad3> pandawarrior1: that's the best I can think of to call them
LS\MFT has joined #ruby
<workmad3> pandawarrior1: row headings
<pandawarrior1> yup, i use that
<pandawarrior1> cheers :)
<aedornm> In Excel, the row header is the grayish - colored column containing the numbers used to identify each row in the worksheet
e-dard has joined #ruby
endzyme has quit [Remote host closed the connection]
<e-dard> Hi is anyone aware of anything similar to Capybara but event-driven (asynchronous)?
<pandawarrior1> aedornm: yeah, that's the stuff i meant
babykosh has quit [Ping timeout: 276 seconds]
<e-dard> Seems capybara is synchronous so very slow due to waiting for request responses.
ckrailo has quit [Ping timeout: 276 seconds]
zoned has joined #ruby
chussenot has quit [Quit: chussenot]
Takehiro has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
mfcabrera has quit [Quit: This computer has gone to sleep]
solidoodlesuppor has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 240 seconds]
<aedornm> That doesn't make sense... do you want asynchronous or event driven?
<aedornm> or asynchronous and event driven
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
chrishough_ has joined #ruby
workmad3 has quit [Read error: Operation timed out]
ckrailo has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
chrishough_ is now known as chrishough
<Xeago> pandawarrior1: usually you have your subjects horizontally
anteaya has left #ruby ["Leaving"]
<Xeago> and the metrics vertically (top of table)
icole has joined #ruby
<Xeago> in a performance test, you have the products below eachother
Virunga has quit [Remote host closed the connection]
<Xeago> and their qualities next to each other
<pandawarrior1> Xeago: sounds a bit confusing
<Xeago> however depending on the type of analysis/view or opinion you want to depict you can flip it ;P
icole_ has quit [Ping timeout: 246 seconds]
kpshek has quit []
<e-dard> aedornm: *yawns* sorry, I realise they are different.. I mean event-driven
dmiller has quit [Ping timeout: 240 seconds]
brum has joined #ruby
<Xeago> pandawarrior1: http://cl.ly/image/2f1G1o1Q3i1k
jimeh has quit [Quit: Computer has gone to sleep.]
<e-dard> aedornm: I guess what I'm asking is… Is there anything like Capybara built on top of EventMachine or similar?
<Xeago> that is most suitable for an unbiased analysis
chipotle_ has joined #ruby
baroquebobcat has joined #ruby
<Xeago> if you want a biased analysis, it is usually done the other way around
<e-dard> What I'm after is something that behaves like Capybara (can interpret JS etc) but is architected more like a fast scraping framework
robbyoconnor has quit [Ping timeout: 255 seconds]
<Xeago> and lots of more useless metrics/quality aspects get added
<chipotle_> what ruby book is recommended that has been published in the past year or so? i'm coming from no real programming experience (some php)...
<aedornm> hmmm...
<aedornm> e-dard: not in Ruby then
Radnor has quit [Quit: leaving]
breakingthings has quit []
<pandawarrior1> Xeago: i see what you mean, that's the data. i'm talking about the greyout non editable cells that appear before each row in excel
<Xeago> ah
<e-dard> aedornm: well, quite :-) (Pythonista here)
<e-dard> aedornm I would normally use something like Scrapy in Python…
<Xeago> The rownumbers, and the columnalphabeticallynumered
<Xeago> are both called headings
<pandawarrior1> oh
<Xeago> they can be toggled in the layout section of the stupid ribbon
<Xeago> I usually turn those off, together with gridlines
maxmanders has quit [Quit: Computer has gone to sleep.]
Al__ has quit [Quit: Al__]
<pandawarrior1> so i can use: vertical_headings and horizontal_headings in my program?
<Xeago> whatever makes sense
<Xeago> I don't know :P
<pandawarrior1> :)
<Xeago> just know that excel calls it headings
<Xeago> I'd call it headings, and numbering maybe
<pandawarrior1> i'll nick excels names ;)
<Xeago> but I think vertical_headings and horizontal_headings is fine too
<Xeago> maybe even better
<pandawarrior1> yeah
<Xeago> depending on the context
<Xeago> not all data makes sense on a numbered spreadsheet
brum has quit [Ping timeout: 245 seconds]
<pandawarrior1> in my particular context those names are cool
<Xeago> I always turn it off, because I see it fulfilling no extra information once the document is done
<pandawarrior1> true, but this dta will
seich- has quit [Read error: Operation timed out]
<pandawarrior1> s/dta/data
<Xeago> you might want to consider including the numbering as part of the data
<aedornm> e-dard: You probably want an HTTP client, and then parse the results with Nokogiri. Might want to look into Faraday, as it can use different adapters, including em-http.
<Xeago> not as part of the visualization program
<pandawarrior1> umm
<e-dard> aedornm: do any of those traditional frameworks interpret JS like capybara does though?
the_jeebster has quit [Quit: Leaving.]
<e-dard> That's tha advantage of CB as I see it — it's built for acceptance testing of web-apps so acts just like a modern webkit browser
<aedornm> Right... about that - no.
ckrailo has quit [Quit: Computer has gone to sleep.]
<e-dard> :-P
nazty has quit [Ping timeout: 248 seconds]
<Eiam> anyone had any experience with this product? http://www.vagrantup.com/
t-mart has joined #ruby
enebo has quit [Quit: enebo]
sirish has quit [Ping timeout: 248 seconds]
seich- has joined #ruby
<Xeago> Eiam: yes
<Xeago> love it
<Xeago> don't use it in production, but use it to run puppet on
<Eiam> we are looking at replacing our dev env on OS X with some virtual machines
<Eiam> and I just stumbled into that
<brandon|work> Eiam: that's what I use
<Xeago> most of my gamserver machines are pretty lowbare, they can't handle vm's
<brandon|work> I test my puppet configs and stuff on it
<Xeago> and most of the cpu's don't have virtualizing support
Pandaen has joined #ruby
<aedornm> e-dard: Sikuli on top of a browser...hook into jruby
<Xeago> Eiam: devote a day/week for some time to build the formula/cookbooks/whatever it uses
<Xeago> and then 2 hours per month to keep them up to date
<Xeago> but it helps a ton
<brandon|work> our developers are using it in a terrible fasion. They're deploying a stand-alone image, then customizing it for multiple clients
Radnor has joined #ruby
<aedornm> and if you want to get really fancy, OpenCV.
<brandon|work> fashion*
Criztian has quit [Ping timeout: 244 seconds]
tar_ has quit [Quit: tar_]
<brandon|work> Eiam: you can also join #vagrant to ask about people's usage of vagrant
<Eiam> interesting, good to know
piotr__ has joined #ruby
<Eiam> sure, thats going to be a biased sample =)
<aedornm> okay, but seriously, you could do watir with EM
<Eiam> figure I'd start with a community I'm in before moving into their own community =0
HecAtic has quit [Quit: Àá¼ö]
<aedornm> or even capybara webkit EM
sirish has joined #ruby
<aedornm> But it's going to get insanely complicated very quickly
kirchevsky has quit [Ping timeout: 276 seconds]
piotr_ has quit [Ping timeout: 272 seconds]
HecAtic has joined #ruby
amacleod has quit [Quit: Leaving]
jpcamara has quit [Quit: jpcamara]
carlyle has joined #ruby
icole has quit [Read error: Connection reset by peer]
nari has joined #ruby
icole_ has joined #ruby
icole__ has joined #ruby
dmiller has joined #ruby
<Eiam> cool, thanks for the info
<Eiam> guess I'll add it to my list of shit to look into =
<Eiam> =0
havenn has quit [Remote host closed the connection]
icole___ has joined #ruby
rburton- has joined #ruby
jlast has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
icole has joined #ruby
icole_ has quit [Ping timeout: 255 seconds]
hck89 has quit [Quit: Sto andando via]
havenwood has joined #ruby
frem has quit [Ping timeout: 255 seconds]
_nitti has joined #ruby
<chipotle_> hi, what ruby book is recommended? eloquent ruby, the well rounded rubyist, or the ruby programming language?
<chipotle_> all are 4.5 or 5 stars on amazon...
<chipotle_> i'm new to programming, done some hacking of php...
icole__ has quit [Ping timeout: 246 seconds]
<Xeago> Eiam: as long as you design your vagrants to be freshly setup in <15 minutes you are good to go
<Xeago> chipotle_: I have seen all of those 3 recommended here
<DanKnox> eloquent ruby is by far the best ruby book out there but might not be the best book to start with
<Xeago> however there is also another recommendation: learning ruby the hard way
<chipotle_> Xeago: i'm trying to decide if i should get one, or the other or all three
<brandon|work> chipotle_: lots of people recommend _why's Poignant Guide to Ruby, or the Pickaxe book
<chipotle_> Xeago: i've heard of learn python the hard way; is the ruby one a good bet too?
<havenwood> chipotle_: I haven't read the other two, but The Ruby Programming Language is very good.
<DanKnox> i would start with the pickaxe book then go eloquent ruby
<Xeago> chipotle_: haven't read any book
<Xeago> I sure recommend _why's Poignat Guide to Ruby aswell
<Xeago> it is free so can't hurt to look at that first
icole___ has quit [Ping timeout: 244 seconds]
<Eiam> Xeago: going to try to have it spit out ubuntu + ruby + nginix
<Eiam> see where i get
icole has quit [Read error: Connection reset by peer]
icole has joined #ruby
_nitti has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
angusiguess has joined #ruby
jamie_ca has quit [Quit: ZNC - http://znc.in]
anonymuse has quit [Quit: Linkinus - http://linkinus.com]
jjbohn|afk has quit [Quit: Leaving...]
Ontolog has joined #ruby
<Ontolog> when you re-open a class do you need to specify again which class it inherits from?
dmiller1 has joined #ruby
the_jeebster has joined #ruby
<chipotle_> is ruby 1.9 the current stable release?
bean has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby
mneorr has joined #ruby
<brandon|work> ruby 2 was just released
<chipotle_> cause i notice that the ruby programming language book was published in 2008 and it says it works with 1.9...
dmiller has quit [Ping timeout: 260 seconds]
<brandon|work> but most written works will use 1.9 or 1.8
hiroyuki has joined #ruby
nazty has joined #ruby
gyre007 has quit [Ping timeout: 272 seconds]
jamie_ca has joined #ruby
horofox_ has joined #ruby
bradleyprice has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
nomenkun has joined #ruby
malkomalko has quit [Remote host closed the connection]
Mattix has joined #ruby
generalissimo has quit [Remote host closed the connection]
<chipotle_> i wish i could figure out which of those three paper books to buy
iamjarvo has quit [Quit: Leaving.]
<havenwood> chipotle_: A 1.9 book will work in 2.0. Not so for 1.8.
banjara has quit [Remote host closed the connection]
newUser1234 has quit [Ping timeout: 264 seconds]
<havenwood> chipotle_: 2.0 is latest stable release.
banjara has joined #ruby
<chipotle_> well that narrows it down to the well grounded rubyist and eloquent ruby
chrrz has quit [Ping timeout: 276 seconds]
<havenwood> chipotle_: There is a 1.9 release of Ruby Programming Language.
yshh has joined #ruby
ph^_ has quit [Remote host closed the connection]
<chipotle_> it's both 1.8 and 1.9
<havenwood> chipotle_: Ah, right.
FenrirReturns has quit [Ping timeout: 264 seconds]
<havenwood> chipotle_: No reason at this point to learn 1.8. Still a good book though. :) Hopefully new release soon that is 1.9/2.0.
zehrizzatti has joined #ruby
the_jeebster1 has joined #ruby
the_jeebster has quit [Ping timeout: 240 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ctp_ has joined #ruby
dorei has joined #ruby
the_jeebster1 has quit [Client Quit]
icole has quit [Read error: Connection reset by peer]
<chipotle_> so which would you go with? this http://amzn.to/XoDuPE or this http://amzn.to/ZF2faz
F1skr has quit [Quit: WeeChat 0.4.0]
jsilver has joined #ruby
icole has joined #ruby
iPhoneMRZ has joined #ruby
mercwithamouth has joined #ruby
benlieb has joined #ruby
iPhoneMRZ has quit [Remote host closed the connection]
<Xeago> I need a difficulty scale
<Xeago> easy moderate intermediate hard
<Xeago> need 6 values total
<Xeago> and is that order correct?
<Muz> very easy,, very hard
<Muz> Done
<Xeago> well, that was easy, but is the order correct?
<Xeago> is intermediate harder than moderate?
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
<Xeago> bah, I'll express it in time
<Xeago> is easier