apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
mercwithamouth has joined #ruby
art_man1 has quit [Quit: art_man1]
<notbrent> it can be ugly but it's worse to try to read a line that should be two
ikaros has quit [Quit: Ex-Chat]
<notbrent> in my opinion
chrisbolton__ has quit [Quit: chrisbolton__]
<billy_ran_away> Yea no reason I can't turn possible_roles.collect into possible_roles.collect!
<notbrent> maybe you can think about if you should pull that into a method on Role, or a method on the object that it is on
<seanstickle> People still use "collect" ?
<seanstickle> I thought everyone moved to "map"
nat2610 has quit [Read error: Connection reset by peer]
nat2610 has joined #ruby
<billy_ran_away> Well I meant map in this instance, but I do tend to collect things it just depends on what I'm doing, I try to match the verb with the actual action of what I'm doing...
c001os has joined #ruby
<billy_ran_away> Like if I have a bunch of City instances and each has a population method… I'd collect them.
jimeh has quit [Quit: Computer has gone to sleep.]
<notbrent> seems like you are allowing your method to accept an array of strings of role names or an array of roles.
Marco has quit [Ping timeout: 260 seconds]
dagnachew has joined #ruby
slash_nick has quit [Ping timeout: 276 seconds]
mneorr has quit [Remote host closed the connection]
<notbrent> would be nicer if you were explicit about that somewhere and did the conversion in one step.. http://www.youtube.com/watch?v=T8J0j2xJFgQ
mneorr has joined #ruby
<notbrent> anyways, just a style thing
<notbrent> to each their own
_nitti has joined #ruby
fflush has quit [Ping timeout: 255 seconds]
lenovodroid has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
<billy_ran_away> notbrent: Thanks for the YouTube link, watching it now.
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
Xeago has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 260 seconds]
_nitti has quit [Ping timeout: 244 seconds]
nwertman_ has quit [Ping timeout: 250 seconds]
fyolnish has quit [Remote host closed the connection]
dagnachew has quit [Quit: Leaving]
chimkan_ has quit [Quit: chimkan_]
brianpWins has quit [Quit: brianpWins]
BigO_ has quit [Remote host closed the connection]
reppard_ has quit [Ping timeout: 252 seconds]
reppard has quit [Ping timeout: 252 seconds]
h8R has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
d-best is now known as d-snp
My_Hearing has joined #ruby
wallerdev has quit [Quit: wallerdev]
Mon_Ouie has quit [Ping timeout: 260 seconds]
nat26101 has joined #ruby
nat2610 has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 260 seconds]
dagnachew has joined #ruby
nwertman has joined #ruby
companion has quit [Ping timeout: 264 seconds]
jtharris has quit [Quit: WeeChat 0.3.9.2]
atal421 has joined #ruby
DatumDrop has joined #ruby
Nowaker has quit [Quit: proboszcz]
companion has joined #ruby
freeayu has joined #ruby
u89 has quit [Remote host closed the connection]
FiveAcres has joined #ruby
rellin has quit [Ping timeout: 276 seconds]
hsbt is now known as hsbt_away
jeffreybaird has quit [Quit: jeffreybaird]
otters has quit [Ping timeout: 265 seconds]
alexspeller has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
c001os has quit [Remote host closed the connection]
JDubs has quit [Read error: Operation timed out]
pyr0commie has joined #ruby
dagnachew has quit [Quit: Leaving]
sn0wb1rd_ has joined #ruby
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd_ is now known as sn0wb1rd
pyx has joined #ruby
wargasm has joined #ruby
Gooder``` has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
alexspeller has quit [Ping timeout: 252 seconds]
yshh has quit [Remote host closed the connection]
atal421 has quit [Quit: atal421]
daniel_- has quit [Quit: WeeChat 0.3.9.2]
dagnachew has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
Shadow_S has quit [Quit: Textual IRC Client: www.textualapp.com]
cdt has quit [Ping timeout: 260 seconds]
Fretta_ has joined #ruby
Fretta has quit [Ping timeout: 265 seconds]
Fretta_ is now known as Fretta
cferwin has joined #ruby
S3kx has quit [Ping timeout: 244 seconds]
s1n4 has quit [Quit: leaving]
babonk has quit [Quit: babonk]
fyolnish has joined #ruby
osvico has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
dagnachew has quit [Quit: Leaving]
slainer68 has quit [Remote host closed the connection]
_Mon_Ouie_ has joined #ruby
alex__c2022 has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
havenn has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
atal421 has joined #ruby
My_Hearing has quit [Ping timeout: 260 seconds]
jonan has joined #ruby
cferwin has left #ruby ["Leaving"]
phipes has quit [Quit: phipes]
yshh has joined #ruby
ner0x has quit [Quit: Leaving]
lenovodroid has quit [Read error: Connection reset by peer]
alex__c2022 has quit [Ping timeout: 260 seconds]
lenovodroid has joined #ruby
lenovodroid has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nat26101 has quit [Read error: Connection reset by peer]
nat2610 has joined #ruby
seanstickle has quit [Quit: seanstickle]
ryanh has joined #ruby
phipes has joined #ruby
atal421 has quit [Ping timeout: 260 seconds]
lolcathost has joined #ruby
jfl0wers has joined #ruby
slainer68 has joined #ruby
gyre007 has quit [Remote host closed the connection]
havenn has joined #ruby
maletor has joined #ruby
dagnachew has joined #ruby
efrainolivares has joined #ruby
slainer68 has quit [Remote host closed the connection]
yakko has joined #ruby
chord has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
<chord> who here agrees with me that Ruby > Python
forced_request has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
<havenn> chord: Everyone, next question.
dagnachew has quit [Quit: Leaving]
<chord> havenn: Tcl > Ruby > Python
<havenn> chord: PostScript > Tcl > Ruby > Python
dmiller has quit [Remote host closed the connection]
carlyle has joined #ruby
<chord> havenn: so we agree?
squidBits has quit [Quit: squidBits]
otters has joined #ruby
jeffreybaird has joined #ruby
jfl0wers has quit [Quit: jfl0wers]
fred909 has quit [Ping timeout: 250 seconds]
<bricker> If you wanted to implement something like attr_accessor, where would you store the attributes that have been added? Class variable?
maletor has quit [Quit: Computer has gone to sleep.]
<havenn> bricker: Not instance vars?
<bricker> havenn: instance vars on the class?
maletor has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
nkts has quit []
maletor has quit [Max SendQ exceeded]
<chord> who here thinks that ruby on rails is overrated?
<havenn> bricker: That's what I woulda guessed, class instance variables. Now I must know! :)
<havenn> Searching.
<havenn> chord: Try that in Rails.
<bricker> chord: do you know of a better web framework?
maletor has joined #ruby
<chord> django
<havenn> I'm a really big fan of Sinatra.
malkomalko has quit [Remote host closed the connection]
<havenn> Or Flask, if you must use Python. :P
<bricker> chord: false. I have used both extensively and django is fair inferior.
<havenn> ^
malkomalko has joined #ruby
atal421 has joined #ruby
<bricker> havenn: sinatra is not made for the same purpose as Rails, so you can't really compare them.
<chord> bricker: explain django inferiority to mean
<bricker> Far less flexibility
<havenn> bricker: Not same purpose, but both hit port 80 with your Ruby code. I find I do choose between them.
camonz_ has quit [Quit: Leaving...]
<bricker> It insists on its own DSL, whereas rails insists that you know Ruby
taoru has joined #ruby
<bricker> chord: python in general is a less flexible language than ruby
<bricker> chord: Rails is incredible easy to extend
<bricker> (as is ruby)
<havenn> bricker: I'd think both Sinatra and Rails insist you know Ruby. Rails already has a lot of Ruby coding done for you, Sinatra you'd better be able to roll your own.
dcope has quit [Changing host]
dcope has joined #ruby
<bricker> incredibly*
dagnachew has joined #ruby
<havenn> chord: Is Flask compliant with Python 3.0 yet? People don't like 3.0 or what?
<chord> bricker: why would you need deep flexibility in the language,
<bricker> havenn: sinatra isn't the same thing. It's for light applications, compare them if you want but it's like comparing the iPhone to the iPod Shuffle
jsilver has joined #ruby
<havenn> chord: Why doesn't pip have the ability to show all the installed packages, or update them?
<bricker> chord: lol
Brainix has joined #ruby
<chord> havenn: I can't answer that question because I don't actually know anything about django
<bricker> chord: I'll be over in #rubyonrails if you want to continue this conversation
<bricker> fucking trolls
<havenn> obvious troll is obvious
<chord> you guys mad?L
apeiros_ has joined #ruby
chrstphrhrt has quit [Quit: chrstphrhrt]
malkomalko has quit [Ping timeout: 256 seconds]
elico has quit [Ping timeout: 256 seconds]
tyfighter has quit [Quit: tyfighter]
jfl0wers has joined #ruby
reset has joined #ruby
<havenn> chord: Matz is nice so we are nice. All the languages you mention are lovely in their own right.
<havenn> chord: Trolls have souls too.
<chord> bricker: python is dynamic isn't that enough "flexibilyt"
jfl0wers has quit [Client Quit]
alejandro_ has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
Gooder has joined #ruby
Gooder has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 255 seconds]
<chord> bricker: no counterargument?
Gooder has joined #ruby
nat2610 has joined #ruby
<shevy> lol
<shevy> chord the problem is you do not use python nor ruby
<chord> shevy: I use Go close enough
<shevy> nah, go is in the java C and C++ area
<shevy> you are on the other side of the world
<chord> CLOSE ENOUGH
<shevy> it's like USA vs. Sowjet Russia - totally different
<havenn> chord: Compiling is sooooo 1980s.
Mon_Ouie has joined #ruby
<havenn> Nice Ruby libraries implementing Go-style concurrency: https://github.com/igrigorik/agent https://github.com/robgleeson/ichannel
ryanh has quit [Quit: Computer has gone to sleep.]
<havenn> Or did Erlang get it right?? http://celluloid.io/
_Mon_Ouie_ has quit [Ping timeout: 244 seconds]
<waxjar> i'd like to learn haskell some time, seems like a cool language
<havenn> <3 Celluloid::IO, just switched a Gist from EM::Synchrony and so nice and so clean.
phelps has joined #ruby
phelps has quit [Max SendQ exceeded]
<shevy> waxjar what is a monad
<havenn> waxjar: Is there a Haskell web server and app framework? Did you see jim weirich's fizz-buzz in pure ruby lambda calculus?
Banistergalaxy has quit [Ping timeout: 260 seconds]
phelps has joined #ruby
Banistergalaxy has joined #ruby
<waxjar> i've read it, but i'm afraid i forgot shevy :p
<davidcelis> shevy: ask gary bernhardt
<chord> One day a compiled scripting language will kill RoR
<davidcelis> he likes lazy lists and lots of monads
<davidcelis> (ノಥ益ಥ)ノ彡┻━┻
<waxjar> havenn, no idea. haven't seen it
<shevy> I know know who is gary bernhardt
<davidcelis> shevy: how
<havenn> Monads are people who move a lot.
c0rn has quit [Quit: Computer has gone to sleep.]
<davidcelis> those are nomads
<shevy> I also do not understand the people on #haskell
<shevy> they speak in strange words
<shevy> f(x) - |¬¬¬955 +552 5
tjbiddle has quit [Quit: tjbiddle]
<havenn> #haskell: TS;DL
<davidcelis> +++++---+++ >> ++---+
<shevy> brainfuck!!!
<chord> I want a compiled scripting language, not interpreted
<shevy> chord languages on the JVM?
<davidcelis> jrubby
<shevy> what's with the double b hehe
<davidcelis> sorry
<shevy> is that the fat variant of jruby?
<davidcelis> jroobie
<havenn> jython is still kicking, just a wiggle but kicking
<chord> jruby still too slow
<shevy> TOO SLOW
<havenn> chord: Pics or it didn't happen.
<shevy> your mom is too slow chord
<chord> i pasted the shootut link showing jruby getting raped
<davidcelis> chord: cool word choice bro
<havenn> chord: roflcopter, have you looked at the code it is running?
<chord> havenn: but you concede that the graph is correct
<havenn> Hard not to feed bad trolls. Good trolls require restraint!
Seich is now known as seich
<shevy> he is not worthy to be called a troll
<shevy> let's call him hatchling
<havenn> shevy: True. Trolls are clever.
<havenn> shevy: A zergling.
robotmay has quit [Ping timeout: 260 seconds]
ryanlecompte has quit [Remote host closed the connection]
<chord> zerglings suck in starcraft 2
<havenn> hence your name, zergling
<havenn> zergling: Do you code?
maletor has quit [Quit: Computer has gone to sleep.]
<chord> i++
<chord> see
<havenn> zergling: Touche.
kenneth has joined #ruby
dmiller has joined #ruby
lordnaz has joined #ruby
<chord> lets make a starcraft clone in ruby
<chord> who is with me
<waxjar> ಠ_ಠ
malkomalko has joined #ruby
<shevy> nah
<shevy> too much work chord
<foucist> chord: YES.. let's do it, it should be text-based so i can play it over SSH!
<havenn> chord: Checkout mruby, lua replaement: https://github.com/mruby/mruby
<havenn> foucist: +1
ephemerian has quit [Quit: Leaving.]
davidcelis has quit [Quit: K-Lined.]
<shevy> :)
<shevy> look chord "matz authored 18 hours ago"
lordnaz has quit [Client Quit]
<havenn> games over anything but ssh are like buttons... superfluous and ostentatious.
<chord> so if no starcraft clone then what do you guys work on
<foucist> http://mtrek.com/ one of the best text-based games ever.. over telnet of course
<havenn> chord: Uhh, duh. Diablo 3 clones.
atno has quit [Remote host closed the connection]
malkomalko has quit [Remote host closed the connection]
<havenn> chord: Here is a gem I cut to check if Diablo 3 server is up: https://github.com/Havenwood/d3
<chord> Diablo 3 is a horrible game
<chord> click click click
<chord> I don't know how people don't get bored
mrsolo has quit [Quit: This computer has gone to sleep]
<shevy> no idea, it never interested me
<shevy> there are some nice indie games tho
<waxjar> tetris
dmiller has quit [Ping timeout: 276 seconds]
<shevy> how do you require anything in mirb or mruby?
<shevy> > require 'foo'
<shevy> NoMethodError: undefined method 'require' for main
<chord> that gets you banned for hacking
<havenn> shevy: There is no require.
NiteRain has joined #ruby
<shevy> hmmm odd
<havenn> chord: Not so far...
<havenn> shevy: There are a bunch of forks with various stuff like threads and processes. But Mruby itself is waaaay minimalist.
reppard has joined #ruby
reppard_ has joined #ruby
<waxjar> does that also mean it's much faster?
<foucist> also another good telnet game used to be this battletech mud, you could actually pilot a mecha of different types, and you had fog of war, you got an ascii rendering and there as altitudes and so on.. man some good ole text-based gaming back in the day
mengu_ has quit [Read error: Connection reset by peer]
<waxjar> eh, my japanese isn't that good :p
<havenn> foucist: My law school buddy is totally into battletech. Never tried it.
<foucist> havenn: fortan speed? seriously? pretty fast isn't it iirc
<havenn> foucist: Waay fast.
kenneth has quit [Quit: kenneth]
<foucist> havenn: nah the battletech mud is long gone by now i reckon
<havenn> foucist: **was into it, never partook
<foucist> man, sucks how good games just die off as we upgrade our operating systems and break that shit
<foucist> yeah
hsbt_away is now known as hsbt
<foucist> hpc ruby complier + hadoop
<foucist> now we're talking
<chord> You guys are failing, Ruby is only #2 on github: https://github.com/languages
<havenn> chord: Most of the JavaScript is inside Ruby apps. Ruby is so concise there are very few lines!
wf2f has quit []
axl_ has quit [Quit: axl_]
<Virunga> Hi guys, i have to upload a json file on a server through, obviously, a post request, could you advise me some good method to do it?
Targen has joined #ruby
<havenn> Virunga: HTTParty.post
<waxjar> sinatra :3
<Virunga> havenn: is it a gem?
<havenn> Virunga: yes
<waxjar> ah, to a server. thought you needed a server of your own :/
<havenn> Virunga: Options include HTTParty, Faraday, Typhoeus, Rest-Client, etc.
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
<Virunga> havenn: one of those you nominated should be ok, thanks :)
swarley-freenode has quit [Ping timeout: 240 seconds]
<Virunga> havenn: are you the same havenn of #railsnoob?
<havenn> Virunga: Yup.
<chord> LOL HAVENN A NOOB
<havenn> chord: Pssh, you outta see the non-noob rubyists. Us noobs are top shelf!
<Virunga> havenn: you're /were in a canyon, meanwhile here's snowing. eheh
ttt has joined #ruby
squidBits has joined #ruby
alexim has quit [Quit: sleep]
sn0wb1rd has quit [Quit: sn0wb1rd]
phipes has quit [Ping timeout: 244 seconds]
manizzle has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
johnmilton has quit [Quit: Leaving]
atal421 has quit [Quit: atal421]
dissemble_ has joined #ruby
nari has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
dissemble has quit [Ping timeout: 260 seconds]
dissemble_ is now known as dissemble
mercwithamouth has quit [Ping timeout: 276 seconds]
phipes has joined #ruby
swarley-freenode has joined #ruby
gyre007 has joined #ruby
mercwithamouth has joined #ruby
pyr0commie has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
beachandbytes has quit [Ping timeout: 245 seconds]
DatumDrop has quit [Remote host closed the connection]
reppard_ has quit [Ping timeout: 244 seconds]
reppard has quit [Ping timeout: 244 seconds]
voodoofish430 has quit [Quit: Leaving.]
segv-_ has joined #ruby
MasterIdler has joined #ruby
phipes_ has joined #ruby
gyre007 has quit [Ping timeout: 264 seconds]
phipes has quit [Ping timeout: 244 seconds]
phipes_ is now known as phipes
rhys has joined #ruby
rhys has quit [Changing host]
rhys has joined #ruby
tomsthumb has joined #ruby
jonahR has quit [Quit: jonahR]
segv- has quit [Ping timeout: 255 seconds]
segv-_ is now known as segv-
lenovodroid has quit [Ping timeout: 248 seconds]
<DanBoy> help me out here
rakl has quit [Quit: gone]
<DanBoy> im almost done with the pickaxe book, im still a noob
<DanBoy> i need something to move on to
<DanBoy> if you had to choose one of these to read front to back which would it be?
reset has joined #ruby
<DanBoy> ;P
chrstphrhrt has joined #ruby
jaygen has quit [Remote host closed the connection]
reppard has joined #ruby
reppard_ has joined #ruby
atno has joined #ruby
jfl0wers has joined #ruby
swarley-freenode has quit [Ping timeout: 245 seconds]
Banistergalaxy has quit [Ping timeout: 244 seconds]
zastern has joined #ruby
squidBits has quit [Quit: squidBits]
Banistergalaxy has joined #ruby
<Virunga> Maybe the ruby way to get the idioms of ruby
banjara has quit [Quit: Leaving.]
<Virunga> I don't know the other book
banjara has joined #ruby
jfl0wers has quit [Client Quit]
<zastern> So I'm just learning ruby via lrthw, and I'm somehow missing something here - https://gist.github.com/4282056 - on line 44 im getting unexpected tCONSTANT, expecting $end, and I've not a clue why
samphippen has quit [Quit: Computer has gone to sleep.]
<DanBoy> problem is they both seem pretty similar
medik has joined #ruby
medik has quit [Excess Flood]
<zastern> ah 43 is unterminated
medik has joined #ruby
jenrzzz has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
jonahR has joined #ruby
swarley-freenode has joined #ruby
Juul has quit [Quit: Leaving]
krawchyk has quit [Remote host closed the connection]
pac1 has quit [Quit: I got it one line of code at a time]
aapzak has quit [Read error: Connection reset by peer]
DatumDrop has joined #ruby
DatumDrop has quit [Read error: Connection reset by peer]
aapzak has joined #ruby
banisterfiend has quit [Remote host closed the connection]
DatumDrop has joined #ruby
Vert has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
reset has quit [Quit: Leaving...]
Phrogz has joined #ruby
Hanmac has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
Munto has quit [Remote host closed the connection]
Phrogz has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 248 seconds]
cakehero has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
Munto has joined #ruby
tomsthumb has quit [Quit: Leaving.]
medik has quit [Quit: medik has no reason]
brax4444 has quit [Quit: brax4444]
lolcathost has quit [Ping timeout: 260 seconds]
atal421 has joined #ruby
chord has quit [Quit: Page closed]
Aiur has joined #ruby
lusory has quit [Quit: leaving]
Gooder has quit [Read error: Connection reset by peer]
reppard_ has quit [Ping timeout: 250 seconds]
reppard has quit [Ping timeout: 250 seconds]
My_Hearing has joined #ruby
reppard_ has joined #ruby
reppard has joined #ruby
wargasm1 has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 244 seconds]
mascool has quit [Ping timeout: 276 seconds]
wargasm has quit [Ping timeout: 265 seconds]
chrstphrhrt has quit [Quit: chrstphrhrt]
jfl0wers has joined #ruby
dmiller has joined #ruby
reset has joined #ruby
dmiller_ has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
xpen has joined #ruby
My_Hearing has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
adeponte has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
yacks has quit [Ping timeout: 260 seconds]
alvaro_o has quit [Quit: Ex-Chat]
entrenador has joined #ruby
adeponte has quit [Remote host closed the connection]
includex has quit [Ping timeout: 265 seconds]
ossareh has quit [Ping timeout: 252 seconds]
atno has quit [Remote host closed the connection]
atno has joined #ruby
sorbo_ has joined #ruby
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<Dreamer3> in ruby 19 what's the quickest way to go from "abc" to "abd"
<Dreamer3> i.e., increase the value 1 bit
Gooder has joined #ruby
Ihavenopants has quit [Quit: Leaving]
Aiur has quit [Quit: Computer has gone to sleep.]
<DanBoy> abc..abd?
jfl0wers has quit [Quit: jfl0wers]
<blazes816> Dreamer3: "abc".succ
joeycarmello has quit [Remote host closed the connection]
<zastern> I've got possibly a dumb question - in a module like this, why is self required at the beginning of every def? https://gist.github.com/4282427
Virunga has quit [Remote host closed the connection]
BigO_ has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
manizzle has joined #ruby
mfridh_ has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
mfridh has quit [Read error: Operation timed out]
mfridh_ is now known as mfridh
<zastern> like i get that self refers to the current objet
<zastern> i just don't get why it needs to be referred to in every single def
jenrzzz has quit [Ping timeout: 256 seconds]
noric has left #ruby [#ruby]
jonathancutrell has joined #ruby
<jonathancutrell> Hey folks
<jonathancutrell> Does anyone know how to use the geocoder gem to calculate distance between two arbitrary points?
Gooder has quit [Read error: Connection reset by peer]
Gooder has joined #ruby
xclite has quit [Remote host closed the connection]
apok has quit [Quit: apok]
michaelmartinez has joined #ruby
guns has joined #ruby
JohnBat26 has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
iamjarvo has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
brax4444 has joined #ruby
freakazoid0223 has joined #ruby
Alex-_ has joined #ruby
alx- has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
altious2 has joined #ruby
vd0 has joined #ruby
spleeze has quit [Ping timeout: 255 seconds]
<jonathancutrell> A different question - how can I use active record to find records that match a computed condition?
forced_request has quit [Remote host closed the connection]
epwhorl has joined #ruby
mneorr has quit [Remote host closed the connection]
adeponte has joined #ruby
mneorr has joined #ruby
havenn has joined #ruby
altious2 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 255 seconds]
art_man1 has joined #ruby
altious has joined #ruby
quest88 has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
reppard_ has quit [Ping timeout: 264 seconds]
reppard has quit [Ping timeout: 264 seconds]
hsbt is now known as hsbt_away
headius has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
havenn has quit [Ping timeout: 244 seconds]
nat2610 has quit [Quit: Leaving.]
lenovodroid has joined #ruby
FlyingFoX has quit [Read error: Connection reset by peer]
FlyingFoX has joined #ruby
Alex-_ has quit [Quit: Alex-_]
My_Hearing has quit [Ping timeout: 244 seconds]
sn0wb1rd has joined #ruby
phelps has quit [Quit: Textual IRC Client: www.textualapp.com]
cantonic has quit [Remote host closed the connection]
cantonic has joined #ruby
xAndy is now known as xandy
fir_ed has quit [Ping timeout: 255 seconds]
mguy has joined #ruby
babonk has joined #ruby
babonk has quit [Changing host]
babonk has joined #ruby
c0rn has joined #ruby
My_Hearing has joined #ruby
krz has joined #ruby
fir_ed has joined #ruby
archangelpetro has quit [Quit: Leaving]
sn0wb1rd has quit [Quit: sn0wb1rd]
dagnachew has quit [Quit: Leaving]
kiyoura has quit [Quit: Leaving]
ezkl` has joined #ruby
xandy is now known as xAndy
ezkl` has quit [Changing host]
ezkl` has joined #ruby
brax4444 has quit [Quit: brax4444]
altious has quit [Ping timeout: 244 seconds]
ezkl` is now known as ezkl
jlwestsr has quit [Quit: Ex-Chat]
hemanth_ has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
hemanth_ has joined #ruby
d2dchat has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
benlieb has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
haylon has joined #ruby
combataircraft_ has quit [Quit: combataircraft_]
dissemble has quit [Quit: dissemble]
tps_ has quit [Quit: tps_]
<haylon> Hello, I'm trying to practice creating objects and passing data to them. Last night i was following a tutorial and had this same issue. then i copied the code from the tutorial, and it worked. I compared the code side by side, and saw no differences. what would be an idea of the issue? error code is on: https://gist.github.com/4282659.git
<epwhorl> heh
tps_ has joined #ruby
BigO_ has quit [Remote host closed the connection]
<epwhorl> there's probably more information (the context) needed to debug this.
<epwhorl> parsing error?
<haylon> maybe, i'll paste my code here in a second.
Munto has quit [Read error: Connection reset by peer]
newptone_ has joined #ruby
newptone_ has quit []
<haylon> i have posted the ruby code in there also
lavois has joined #ruby
lavois has quit [Client Quit]
_Mon_Ouie_ has joined #ruby
arkiver has joined #ruby
<iamjarvo> hi all i have a starter config.ru file that 404s in firefox but in safari it works http://pastie.org/5524652 does anyone know if firefox requires more headers
tommyvyo_ has joined #ruby
fir_ed has quit [Ping timeout: 256 seconds]
MasterIdler has quit [Ping timeout: 276 seconds]
My_Hearing has quit [Ping timeout: 264 seconds]
pwelch has joined #ruby
joeycarmello has joined #ruby
uris has quit [Quit: Leaving]
ananthakumaran has joined #ruby
davidcelis has joined #ruby
phipes has quit [Quit: phipes]
banjara has joined #ruby
<epwhorl> haylon: the link to your code is https://gist.github.com/4282683 I'm not sure where you're getting the .git
<epwhorl> haylon: looks good
<epwhorl> I don't have the capacity to test it right now
joeycarmello has quit [Ping timeout: 246 seconds]
<haylon> epwhorl: my friend was saying the same thing. when we did a code comparison last night with the last scenario i was using, he was stumped.
<epwhorl> well there are bugs
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<haylon> i am running: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin10.8.0]
<haylon> should i look at trying to down grade it?
<ezkl> haylon: Nah
banjara has quit [Read error: Connection reset by peer]
<haylon> i'm going to try downloading an actual IDE and see if that has anything to do with it
a_a_g has joined #ruby
<epwhorl> does the script run at the command line?
carlyle has quit [Remote host closed the connection]
billy_ran_away has quit [Ping timeout: 260 seconds]
<haylon> I'm trying to run it from the commandline
jsilver has quit [Remote host closed the connection]
<ezkl> `def initialized` should be `def initialize`
<ezkl> ln5
<haylon> ok, i'll try that. Thank you
<haylon> thank you, the methods called. now i have to figure out why its not displaying my data
billy_ran_away has joined #ruby
benlieb has quit [Quit: benlieb]
matrixise has quit [Ping timeout: 244 seconds]
cyong has joined #ruby
fir_ed has joined #ruby
<ezkl> haylon: Cool. You'll figure it out. A few other minor mistakes like before.
arkiver has quit [Quit: Leaving]
<haylon> Thank you
zaki has quit [Read error: Operation timed out]
<haylon> ezkl: you were right. noobish on my part
<haylon> thank you
zastern has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Client Quit]
<ezkl> haylon: Anytime. Not newbish, just new. Glad you figured it out.
zastern has joined #ruby
benlieb has joined #ruby
haylon has quit [Remote host closed the connection]
pwelch has quit [Quit: pwelch]
atal421 has quit [Quit: atal421]
weasels has joined #ruby
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
zastern has quit [Ping timeout: 264 seconds]
otters has quit [Ping timeout: 265 seconds]
phelps has joined #ruby
jonan has quit [Ping timeout: 264 seconds]
sorbo_ has quit [Quit: sorbo_]
rellin has joined #ruby
lenovodroid has quit [Ping timeout: 264 seconds]
BigO_ has joined #ruby
jonan has joined #ruby
friskd has joined #ruby
atal421 has joined #ruby
havenn has joined #ruby
tommyvyo_ has joined #ruby
zastern has joined #ruby
sn0wb1rd has joined #ruby
fir_ed has quit [Ping timeout: 244 seconds]
zaki has joined #ruby
Marco has joined #ruby
ada2358 has joined #ruby
havenn has quit [Remote host closed the connection]
pyx has quit [Quit: WeeChat 0.3.9.2]
krz has quit [Quit: krz]
jxriddle has quit [Quit: jxriddle]
altious has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
joofsh has quit [Remote host closed the connection]
woolite64 has quit []
woolite64 has joined #ruby
teejmya has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
tjbiddle has joined #ruby
bigmac has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
jenrzzz has quit [Client Quit]
jenrzzz has joined #ruby
altious has quit [Ping timeout: 246 seconds]
entrenador has quit [Quit: leaving]
phipes has joined #ruby
jekotia has quit [Quit: sleeeeeeeeeeeeeeeep]
mercwithamouth has joined #ruby
_Mon_Ouie_ has quit [Ping timeout: 244 seconds]
dmiller_ has quit [Remote host closed the connection]
brianpWins has joined #ruby
atal421 has left #ruby [#ruby]
altious has joined #ruby
tommyvyo_ has quit [Ping timeout: 244 seconds]
icole has quit [Remote host closed the connection]
lake2 has joined #ruby
teejmya has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
chord has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
altious has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
xpen_ has joined #ruby
<chord> Ruby on Rails is overrated
hotovson has joined #ruby
<kirotan> Unfortunately, that's what companies are looking for.
tps_ has quit [Quit: tps_]
<kirotan> Had I decided to get involved with rails earlier on in life, I'd be in Tokyo right now.
swex_ has joined #ruby
<epwhorl> I dunno, rails seems pretty nice
ananthakumaran has joined #ruby
ananthakumaran1 has joined #ruby
<epwhorl> Seems about as nice as PHP but quicker, soo..
c0rn has quit [Quit: Computer has gone to sleep.]
<kirotan> I interviewed with a few companies in Tokyo while I was studying abroad, and they were all looking for rails.
swex has quit [Ping timeout: 260 seconds]
xpen has quit [Ping timeout: 248 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
cyong has quit [Quit: Leaving.]
hotovson has quit [Read error: No route to host]
skaczor has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 265 seconds]
skaczor has joined #ruby
altious has joined #ruby
swex has joined #ruby
<Hanmac> kirotan all my projects are rails free ... and what i currently need are developer that can do both C++ an Ruby
haxrbyte has joined #ruby
<macmartine> rails vs. php comparisons are hilarious
swex_ has quit [Ping timeout: 255 seconds]
<chord> C++ EWWWWWWWWWWW
Marco has quit [Ping timeout: 244 seconds]
<Hanmac> chord use it for my own evil plans ... i use it to make ruby faster :P
elsifaka has joined #ruby
carlyle has joined #ruby
<a_a_g> Hanmac: is integrating with C++ easier than integrating with plain C?
altious has quit [Ping timeout: 246 seconds]
<Hanmac> a_a_g i bind C++libs into ruby, and the ruby extensions can be C++ too
squidBits has joined #ruby
benlieb has quit [Quit: benlieb]
wallerdev has joined #ruby
<a_a_g> yes, what I'm asking is is it easier to write extentions and bind libs written in C++ than C
generalissimo has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
<Hanmac> i think the binding itself is equal ...
woolite64 has quit []
cj3kim has left #ruby ["Leaving"]
phipes_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
yacks has joined #ruby
<chord> Hanmac: Ruby frontend, Go backend (not C++)
phipes has quit [Ping timeout: 255 seconds]
phipes_ is now known as phipes
<Hanmac> chord i does not use it for web-shit, i have an 3d-engine with that :P
<chord> wtf you using Ruby for 3d-engine?
vd0 has quit [Ping timeout: 244 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
<Hanmac> chord because i can :D
skaczor has quit [Remote host closed the connection]
<banisterfiend> chord: good on him, the last thing this world needs is another retard web developer
<chord> hanmac so you get frame rate of 2 using Ruby?
<banisterfiend> refreshign that he's doing something different
benlieb has joined #ruby
<Hanmac> chord nearly similar, i get 200
<chord> rendering 10 polygons?
<chord> thats good
carlyle has joined #ruby
<Hanmac> chord wrong
carlyle has quit [Remote host closed the connection]
<chord> link to virus?
agarie has quit [Remote host closed the connection]
<Hanmac> no its a test video
haxrbyte_ has joined #ruby
xpen_ has quit [Remote host closed the connection]
agarie has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
<chord> youtube link
stkowski has quit [Quit: stkowski]
xpen has joined #ruby
<Hanmac> i dont have a youtube account
jlwestsr has joined #ruby
aces23up has quit []
Mon_Ouie has quit [Ping timeout: 244 seconds]
yakko has quit [Read error: Connection reset by peer]
<foucist> chord: .ogv ? it's a standard video wrapper
ryanf has quit [Quit: leaving]
h4mz1d has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
yakko has joined #ruby
agarie has quit [Ping timeout: 248 seconds]
Pyro111 has joined #ruby
Gooder has joined #ruby
<Hanmac> foucist ogv is a virus for him :P
agarie has joined #ruby
kenneth has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
tommyvyo has quit [Quit: http://thomasvendetta.com]
iamjarvo has quit [Quit: Leaving.]
krz has joined #ruby
apeiros_ has joined #ruby
BigO_ has quit [Remote host closed the connection]
altious has joined #ruby
d34th4ck3r_ has joined #ruby
<chord> Hanmac: so you another failed indie game dev?
<Hanmac> chord its an engine binding not an indie game
eroc has joined #ruby
<notbrent> Hanmac: cool stuff, is that up on github?
phipes has quit [Quit: phipes]
<Hanmac> notbrent yes and no, it is but i need to update it
h4mz1d has quit [Ping timeout: 244 seconds]
<chord> so failed iphone game
<Hanmac> chord i think you should troll in an other channel ... i never said that it is for iphone
<Hanmac> and i say it twice before that it is not a game
altious2 has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
Solnse has joined #ruby
guns has quit [Quit: guns]
altious has quit [Ping timeout: 264 seconds]
burgestrand1 has quit [Quit: Leaving.]
_alejandro has joined #ruby
<Solnse> I'm trying to create a simple titleize method, and it seems to both work and not work. It returns the result twice, once with a space, and once without.. ex: titleize("first second") returns "First Second FirstSecond" I've only got the return in there once so I'm really confused. Anybody can look? https://gist.github.com/4283166
altious2 has quit [Ping timeout: 260 seconds]
haxrbyte_ has quit [Read error: Connection reset by peer]
moshee has quit [Remote host closed the connection]
killerbunny has joined #ruby
moshee has joined #ruby
<killerbunny> Im trying to figure out how to use rubygem in a app (non-rails). I have gem unpacked my gems into vendor/gems and added require 'rubygem' to the main file
moshee has quit [Changing host]
moshee has joined #ruby
<killerbunny> But now i cant load my other files without require problems
c0rn has joined #ruby
rhys has quit [Ping timeout: 244 seconds]
<Sou|cutter> killerbunny: what sort of require problems?
<Sou|cutter> are you expecting to be able to rely on the rails auto-requiring 'feature' ?
<killerbunny> i dont know, im new to ruby :)
<epwhorl> TONS of joins/quits
<killerbunny> What i want to is use load some gems, and some of my own classes
<epwhorl> and little chatting -_-
<killerbunny> Im having a hard time figuring out how to setup gems to use unpacked gems
xpen_ has joined #ruby
<Sou|cutter> it might be helpful to use Bundler
c0rn has quit [Ping timeout: 244 seconds]
<Solnse> I'm trying to create a simple titleize method, and it seems to both work and not work. It returns the result twice, once with a space, and once without.. ex: titleize("first second") returns "First Second FirstSecond" I've only got the return in there once so I'm really confused. https://gist.github.com/4283166
<Sou|cutter> the whole vendoring gems thing is sorta unpopular these days
<Sou|cutter> you can use bundler and have it install to a project-local path if you really want
havenn has joined #ruby
<Sou|cutter> killerbunny: http://gembundler.com/ if you weren't sure what I am talking about
apeiros_ has quit [Remote host closed the connection]
squidBits has quit [Read error: Connection reset by peer]
xpen has quit [Ping timeout: 250 seconds]
<killerbunny> Sou|cutter reading up on it
<lake2> Solnse try something like: %w(words in title).map(&:capitalize).join(' ')
ryanf has joined #ruby
pdtpatri1k has quit [Quit: leaving]
<Solnse> I'll try, thanks lake2
<killerbunny> Seems a bit overkill
<killerbunny> I have 2-3 gems max in a very small app
pdtpatrick has joined #ruby
<epwhorl> K.I.S.S.
<epwhorl> :D
<epwhorl> p.s. your 8 space tabs are *nasty* :P
<Solnse> epwhorl: looking...
<Solnse> it doesn't really look like that... just pasted that way for some reason
connor_ has joined #ruby
<Sou|cutter> killerbunny: ok, well then you are going to want to add stuff to your $LOAD_PATH if you want it to get picked up when you require
<epwhorl> ah
<connor_> Hi, have a syntax question if anyone's up for it
zommi has joined #ruby
wargasm1 has quit [Ping timeout: 252 seconds]
<connor_> Trying to figure what the characters <<- do within a method
<Sou|cutter> killerbunny: I use bundler for small projects personally, it is convenient
* Sou|cutter shrugs
<connor_> Haven't found any documentation yet
<ryanf> connor_: google "heredoc"
<Solnse> epwhorl: thanks, that works for me :) Now I gotta figure out how to ignore the small words :)
<connor_> awesome, thanks ryanf
<ryanf> np
<Solnse> I see the difference, very subtle.
brianpWins has quit [Quit: brianpWins]
<epwhorl> small words?
<epwhorl> like what
wargasm has joined #ruby
<Solnse> a and the
brianpWins has joined #ruby
<Sou|cutter> Solnse: unless it's the first word? :P
<Solnse> I guess that might be next :) I'm going through a series of RSpec tests one at a time :)
<epwhorl> Solnse, I don't see why your function would return the strings twice, puzzling.
<Solnse> epwhorl: the only difference I see between our code of any significance is me using the keyword return... but yeah I couldn't figure it out
<epwhorl> using 'while' confused me
samuel02 has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
Nisstyre has quit [Quit: Leaving]
<epwhorl> oh I see
<epwhorl> I bet if you passed your function THREE words it would return the same thing THREE times
<epwhorl> try it
<epwhorl> because you're looking at ALL the words (words.count).times
squidBits has joined #ruby
<epwhorl> 2 words = add all the words twice
<epwhorl> 3 words = add all the words thrice
<epwhorl> and so on
DatumDrop has quit [Remote host closed the connection]
<Solnse> looking at it...
<epwhorl> the while aspect is totally unecessary if you're using words.each
<Solnse> I see...
<epwhorl> although I understand your thoughts - you wanted a way to test for the final word
<Solnse> I was trying to set a manual counter... I see that .each handles all that
<epwhorl> and now you know array.last :)
<epwhorl> well yes
<Solnse> yes, thank you
<epwhorl> but your conditional unless needs to test for words.last
tagrudev has joined #ruby
<epwhorl> cool beans
<Solnse> and I'm guessing I can now solve the next one with unless w.first :)
<epwhorl> :D
mikepack has joined #ruby
bradhe has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
bluOxigen has joined #ruby
<Solnse> hmm, doesn't really work chainging unless statements :)
<Solnse> there has to be a better way to refactor this line anyway: w.capitalize! unless (w == "a" || w == "and" || w == "the")
havenn has quit [Remote host closed the connection]
DatumDrop has joined #ruby
havenn has joined #ruby
mercwithamouth has joined #ruby
<epwhorl> ["a", "and", "the"].include? w
<Sou|cutter> Solnse: maybe keep an array of skip words
<Sou|cutter> ^^ like that
<epwhorl> so you could create an array
<epwhorl> exactamundo
<epwhorl> then it's extensible
igor_ has joined #ruby
<Solnse> yeah but a lot of words could includ the letter a... ?
<epwhorl> it will only test complete words in the array
<Solnse> wouldn't it trigger on any word with the letter a in it?
<epwhorl> nononono
<Solnse> so, exact matches... not as include implies?
<epwhorl> the array is a "list"
<Solnse> ok, I understand.
<epwhorl> does the list include "word"?
<epwhorl> does the list include "apples"?
<epwhorl> etc
Nisstyre has joined #ruby
<Solnse> yeah, I understand. Was weary of include as looking within words too
<epwhorl> Solnse: browse the ruby api and be pleasantly surprised at the built-in "cherries" :)
a_a_g has quit [Quit: Leaving.]
havenn has quit [Ping timeout: 265 seconds]
<Solnse> I have browsed it many times... I have issues with informaiton overload and seem to dump it instead :)
<Solnse> that's why I'm trying to go through rspec tests to actuall apply stuff more more use-learning.
mc_plectrum has joined #ruby
_Mon_Ouie_ has joined #ruby
squidBits has quit [Quit: squidBits]
banjara has joined #ruby
<Solnse> w.capitalize! unless ["a", "and", "the"].include?w.downcase is not happy abut the syntax... I'll look at the docs for use again.
My_Hearing has quit [Ping timeout: 244 seconds]
NiteRain has quit [Ping timeout: 246 seconds]
<mc_plectrum> hi! can someone please help me with a regex for gsub: string should not start with NSLocalizedString( , but it should start with @" and anything that follows until " and should not end with );
<killerbunny> sou|cutter i ended up doing something like $:.unshift(*Dir[path + "/vendor/gems/**/lib"])
<mc_plectrum> i tried /(?<!NSLocalizedString)@\"(.
<killerbunny> if this project grows a bit i might look into bundler
mikepack has quit [Remote host closed the connection]
chord has quit [Quit: Page closed]
seoaqua has joined #ruby
d34th4ck3r_ has quit [Quit: Konversation terminated!]
cantonic has joined #ruby
DatumDrop has quit [Remote host closed the connection]
<killerbunny> maybe /(<!NSLocalizedString)@\".*\"/ ?
<killerbunny> do you really care about the last ); part?
Elhu has joined #ruby
<mc_plectrum> killerbunny: i want to match @"foo" but not NSLocalizedString(@"foo",...);
mercwithamouth has quit [Ping timeout: 260 seconds]
woolite64 has joined #ruby
<killerbunny> but if you dont match NSLocalized( that should be enough
<killerbunny> you can always make it more strict
Solnse has quit [Ping timeout: 246 seconds]
<mc_plectrum> killerbunny: i tried your regex, but no it does not match anything
<killerbunny> otherwise you have to figure out if people made all sort of crazy stuff like NSLocalizedString(@"foo", (bar?@"1","2"))
Solnse has joined #ruby
m3pow has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby
samuel02 has joined #ruby
altious has joined #ruby
nemesit has joined #ruby
timonv has joined #ruby
<mc_plectrum> killerbunny: ahh /(?<!NSLocalizedString)@\".*\"/ question mark was missing, but still matches strings starting with NSLocalizedString
<killerbunny> hmm
<killerbunny> think it should be (?!
VoiDeT has joined #ruby
VoiDeT has quit [Client Quit]
Hanmac has quit [Quit: Leaving.]
workmad3 has joined #ruby
<mc_plectrum> killerbunny: still matches: @"Menu" of NSLocalizedString(@"Menu"....
morf has joined #ruby
<killerbunny> craps
Hanmac has joined #ruby
<killerbunny> I have to go, trains arrived
<killerbunny> :)
killerbunny has quit [Quit: Leaving]
u89 has joined #ruby
hotovson has joined #ruby
_Mon_Ouie_ has quit [Ping timeout: 244 seconds]
mahmoudimus has joined #ruby
lenovodroid has joined #ruby
sandGorgon has joined #ruby
Morkel has joined #ruby
d34th4ck3r_ has joined #ruby
jonahR has quit [Ping timeout: 265 seconds]
connor_ has quit [Remote host closed the connection]
<Solnse> got it passing all tests now... but it seems like I'm repeating myself... is there a better way to refactor this? https://gist.github.com/4283461
combataircraft has joined #ruby
jonahR has joined #ruby
Slivka has joined #ruby
friskd has quit [Quit: friskd]
squidBits has joined #ruby
daniel_hinojosa has quit [Ping timeout: 256 seconds]
adeponte has quit [Remote host closed the connection]
msch has joined #ruby
<burgestrand> Solnse: could start by moving the "title << w" and "title << " "" thing out of the if-statement and put it after.
<canton7> Solnse, sure. 1) take the common bits in the if and else out of the if statement. 2) Now you can get rid of the if statement entirely, and use `w.capitalize! if words.first == w || !%w{a and the over}.include?(w.downcase)`
<canton7> then you can combine lines 3 and 4 into `words.split.each do |w|`
<canton7> *word.split.each do |w|
maesbn has joined #ruby
<Solnse> I see... doesn't it kind of confusing to have so much processing on one line though?
<canton7> ok, you can fo `if words.first == w || %w{a and the over}.include?(w.downcase) \n w.capitalize! \n end`
<canton7> s/fo/do
arkiver has joined #ruby
a_a_g has joined #ruby
u89 has quit [Remote host closed the connection]
<canton7> and I missed a negation...
altious has quit [Ping timeout: 250 seconds]
<canton7> But `if words.first == w \n w.capitalize! \n elsif !%w{a and the over}.include?(w.downcase) \n w.capitalize! \n end` is far more confusing to me
<Solnse> thanks
eldariof has joined #ruby
chimkan has joined #ruby
chclto has joined #ruby
<canton7> and your `w == words.last` tests look like they'll fail if you have a repeated word in the title?
jonahR has quit [Quit: jonahR]
rippa has joined #ruby
<canton7> similarly `words.first == w`
<Solnse> interesting, hadn't thought of that...
chclto has quit [Client Quit]
bluOxigen has quit [Ping timeout: 264 seconds]
<Solnse> so I should do it with a position test instead?
<canton7> yeah, you can do word.split.each_with_index do |w,i|
<Solnse> w[0] = w ?
<Solnse> I see yeah... ok, that makes sense.
lenovodroid has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<canton7> ..or you can fix your mistakes afterwards. so build your string with a potentially uncapitalised first letter and a trailing space, then fix them after
Elhu has quit [Quit: Computer has gone to sleep.]
<Solnse> yeah ok... build the string, then I don't need to worry if small words or first or I add a trailing space.
buibex has joined #ruby
Phoop has joined #ruby
scruple has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
quest88 has quit [Quit: quest88]
pavilionXP has joined #ruby
spleeze has joined #ruby
chimkan has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
fyolnish has quit [Read error: Connection reset by peer]
ryanf has quit [Quit: leaving]
fyolnish has joined #ruby
robustus has joined #ruby
dr_bob has joined #ruby
manizzle has quit [Ping timeout: 260 seconds]
yshh has quit [Read error: No route to host]
yshh has joined #ruby
banjara has left #ruby [#ruby]
epwhorl has quit [Ping timeout: 244 seconds]
schaary has joined #ruby
tobinharris has joined #ruby
cantonic has quit [Quit: cantonic]
tomsthumb has joined #ruby
combataircraft has quit [Remote host closed the connection]
combataircraft has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
Brainix has quit [Quit: Brainix]
robustus has joined #ruby
chussenot has joined #ruby
hoelzro|away is now known as hoelzro
robustus has quit [Client Quit]
bradhe has joined #ruby
aganov has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
robustus has joined #ruby
cantonic has joined #ruby
mafolz has joined #ruby
wargasm has quit [Ping timeout: 265 seconds]
robustus has quit [Client Quit]
Fretta has quit [Quit: Fretta]
xpen has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
robustus has joined #ruby
reset has quit [Ping timeout: 264 seconds]
spleeze has quit [Ping timeout: 244 seconds]
_Mon_Ouie_ has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
lurch_ has joined #ruby
internetishard has left #ruby [#ruby]
robotmay has joined #ruby
xpen_ has quit [Ping timeout: 244 seconds]
tonini has joined #ruby
buibex has quit [Remote host closed the connection]
connor_ has joined #ruby
tvw has joined #ruby
wargasm has joined #ruby
cascalheira has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
weasels is now known as otters
ephemerian has joined #ruby
babonk has quit [Quit: babonk]
DatumDrop has joined #ruby
malte_ has quit [Quit: malte_]
_Mon_Ouie_ has quit [Ping timeout: 264 seconds]
altious has joined #ruby
cdt has joined #ruby
clocKwize has joined #ruby
DatumDrop has quit [Ping timeout: 265 seconds]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
grzywacz has joined #ruby
lele has quit [Ping timeout: 246 seconds]
nemesit|osx has joined #ruby
Beoran__ has joined #ruby
codecaster has joined #ruby
cdt has quit [Ping timeout: 260 seconds]
altious has quit [Ping timeout: 244 seconds]
tPl0ch has joined #ruby
lele has joined #ruby
hsbt_away is now known as hsbt
d34th4ck3r_ has quit [Quit: Konversation terminated!]
nemesit has quit [Ping timeout: 252 seconds]
Beoran_ has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 265 seconds]
Rix has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
FredLe has joined #ruby
codecaster has quit [Quit: Leaving.]
n1x has joined #ruby
u89 has joined #ruby
chussenot has quit [Quit: chussenot]
ccooke_ is now known as ccooke
reset has joined #ruby
Elhu has joined #ruby
blaxter has joined #ruby
kevinfagan has joined #ruby
zastern has quit [Remote host closed the connection]
n1x has quit [Ping timeout: 255 seconds]
otters has quit [Quit: WeeChat 0.3.9.1]
robert_ has joined #ruby
robbyoconnor has joined #ruby
otters has joined #ruby
ltsstar has joined #ruby
vlad_starkov has joined #ruby
jonathancutrell has quit [Quit: jonathancutrell]
Fretta has joined #ruby
yshh has quit [Read error: No route to host]
foucist has quit [Remote host closed the connection]
yshh has joined #ruby
Rix has joined #ruby
Averna has joined #ruby
jayne_ has joined #ruby
musl has quit [Ping timeout: 255 seconds]
jayne has quit [Read error: Connection reset by peer]
musl has joined #ruby
squidBits has quit [Quit: squidBits]
Fretta has quit [Ping timeout: 264 seconds]
headius has quit [Quit: headius]
apeiros_ has joined #ruby
nemesit|osx has quit [Quit: Linkinus - http://linkinus.com]
nemesit has joined #ruby
FredLe has quit [Quit: Leaving.]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
habstinat has quit [Ping timeout: 276 seconds]
arturaz has joined #ruby
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
vlad_starkov has quit [Remote host closed the connection]
Iszak has joined #ruby
samuel02 has quit [Remote host closed the connection]
clocKwize has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 265 seconds]
clocKwize has joined #ruby
vlad_starkov has joined #ruby
samuel02_ has joined #ruby
nomenkun has joined #ruby
havenn has joined #ruby
ltsstar has quit [Ping timeout: 264 seconds]
ejnahc has quit [Max SendQ exceeded]
ejnahc has joined #ruby
samuel02_ has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
GeekOnCoffee_ has joined #ruby
mneorr has joined #ruby
zastern has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
chussenot has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
samuel02 has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
zastern has quit [Ping timeout: 244 seconds]
rezzack has quit [Quit: Leaving.]
fyolnish has quit [Remote host closed the connection]
Virunga has joined #ruby
hsbt is now known as hsbt_away
sw2wolf has joined #ruby
havenn has quit [Ping timeout: 248 seconds]
combataircraft_ has joined #ruby
sw2wolf has quit [Remote host closed the connection]
combataircraft has quit [Ping timeout: 260 seconds]
combataircraft_ is now known as combataircraft
<maetthew> I'm new to Ruby and trying to learn from rubydock.info. However I cannot figure the explanation of this. http://rubydoc.info/github/cinchrb/cinch/Cinch/Channel#users-instance_method
<maetthew> "Users are represented by a Hash, mapping individual users to an array of modes (e.g. "o" for opped)."
<maetthew> Does this mean there are arrays within the hash?
<maetthew> I cannot figure out how it's supposed to be used
<maetthew> *rubydoc.info even
manizzle has joined #ruby
<apeiros_> matchaw: yes, it means the values are arrays of strings
<apeiros_> stated so explicitly in the `Returns:` section: `Hash{User => Array<String}`
<maetthew> hmm okay..
<maetthew> so #users is the hash?
xscc has joined #ruby
<apeiros_> #users returns a hash
<apeiros_> that's why it says "Returns: Hash"
JDubs_ has joined #ruby
Solnse has quit [Ping timeout: 246 seconds]
JonnieCache has quit [Quit: leaving]
<JDubs_> Hey guys! o/
<apeiros_> hi JDubs_
blacktulip has joined #ruby
<maetthew> apeiros_, k thanks
<JDubs_> Apeiros_ any suggestions for any open source projects I might be able to make small contributions to? :)
<hoelzro> JDubs_: what kind of stuff do you like working on?
timmow has joined #ruby
manizzle has quit [Remote host closed the connection]
<JDubs_> hoelzro: I don't really have a preference as of yet
<JDubs_> Just trying to learn and contribute
chiel_ is now known as chiel
zigomir has joined #ruby
<hoelzro> ok
<hoelzro> I'm guessing you're only looking to contribute to Ruby projects? =)
timonv has joined #ruby
workmad3 has joined #ruby
jimeh has joined #ruby
cdt has joined #ruby
cdt_ has joined #ruby
elaptics`away is now known as elaptics
xbob has joined #ruby
berserkr has joined #ruby
xscc has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
slainer68 has joined #ruby
cdt has quit [Ping timeout: 260 seconds]
<maetthew> apeiros_, I cannot for the life of me figure out how I am supposed to retrieve values from this. Do you think you can show me an example?
m3pow has quit [Ping timeout: 265 seconds]
<apeiros_> maetthew: I don't use cinch, so no, I can't. but you can show what you've tried.
<apeiros_> and what you got and what you expected instead.
<maetthew> apeiros_, sure hold on
* dominikh grabs some popcorn
<maetthew> dominikh, :)
<maetthew> apeiros_, https://gist.github.com/4284193
<maetthew> In a channel with only me and the bot
<maetthew> it returns this
<apeiros_> maetthew: you know what a hash is?
<maetthew> [[#<Bot nick="TF2Pug_">, []], [#<User nick="maetthew">, ["o"]]]
<dominikh> Channel#users returns hash, mapping User objects to arrays of modes
vlad_starkov has joined #ruby
reset has quit [Quit: Leaving...]
<maetthew> apeiros_, yes I know. But I didn't realize hash's could contain arrays
<apeiros_> maetthew: beginner question - what does Hash#each yield?
<maetthew> apeiros_, are you talking general ruby now, or specific for my case?
wallerdev has quit [Quit: wallerdev]
m3pow has joined #ruby
<apeiros_> general ruby
<apeiros_> (which just so happens to apply to your case too, because hashes don't suddenly change how they work)
<maetthew> apeiros_, hmm hold on
Xeago has joined #ruby
<maetthew> hmm it yields an Enumerator (which im not quite sure what it is, googling now)
<maetthew> 1.9.3p194 :001 > hash = {"one" => 1, "two" => 2}
<maetthew> => {"one"=>1, "two"=>2}
<maetthew> 1.9.3p194 :002 > hash.each
<maetthew> => #<Enumerator: {"one"=>1, "two"=>2}:each>
<dominikh> that's what it returns, not what it yields
<maetthew> hmm maybe my english fails me :P
<dominikh> the question is what arguments it yields to the block
Gooder has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
zastern has joined #ruby
<maetthew> gah i hate being noob :)
gyre007 has joined #ruby
<maetthew> i don't think i understand the meaning of "yield" in this case
<JDubs_> Sorry, I'm back now
<JDubs_> Had to help the fam with somethin
<JDubs_> So any suggestions guys?
<dominikh> maetthew: Hash#each will iterate over the elements in the hash, and call the block for every element, yielding values. In this case, an array, [key, value]. so for h.each {|arg|}, for each key-value pair, arg will be an array, with two elements, the key and the value. for h.each {|key, value|}, key will be the key and value the value
<maetthew> dominikh, hmm i think this clears it up. gonna try something out
mneorr has quit [Remote host closed the connection]
sadfaaa has joined #ruby
<sadfaaa> Y
<sadfaaa> oo
<sadfaaa> Is ruby good for programming
<sadfaaa> ?
voodoofish has quit [Ping timeout: 264 seconds]
<a_a_g> so extra arguments to a proc/lambda are globbed up in the last argument?
tonini has quit [Remote host closed the connection]
<dominikh> maetthew: and if you want an array of all nicks in a channel: channel.users.map {|user, _| user.name} will return an array of nicks
BeLucid_ has joined #ruby
krz has quit [Quit: krz]
<a_a_g> or does Hash#each pass in an array of 2 elements which gets deconstructed if you accept 2 argumetns?
<a_a_g> probably the later
<sadfaaa> I WANNA GET RUBY SKILLZ
<dominikh> a_a_g: dunno if it deconstructs or checks the block's arity for performance reasons, but yeah, either of those two.
<sadfaaa> GIMME DEM RUBY SCRIPTZ
<dominikh> a_a_g: if you want to "glob up" arguments, that requires the splat operator as usual
<sadfaaa> BR0
<dominikh> apeiros_: do me a favour?
<maetthew> dominikh, hmm i think this clears it up. gonna try something out
<maetthew> oops
<a_a_g> dominikh: thats if you dont pass in an array
<maetthew> sorry wrong window i uparrow+enter :P
arkiver has quit [Quit: Leaving]
BeLucid has quit [Ping timeout: 260 seconds]
<sadfaaa> any ruby playaz here?
<sadfaaa> i wanna play around with ruby and earn reputation of being a ruby ma$ter
zastern has quit [Ping timeout: 244 seconds]
cpruitt has joined #ruby
<maetthew> sadfaaa, i suggest trying codecademy.com or tryruby.org
<maetthew> if you're new to programming completely
<sadfaaa> hmm
<sadfaaa> i am new to progaming yes
<maetthew> they both have interactive tutorials
<Xeago> what is the splat operator?
<Xeago> => ?
<dominikh> Xeago: *
<Xeago> ah, why is it called that?
<dominikh> maybe * looks like a splat
<maetthew> dominikh, thanks alot. map works better than each.
kjellski has joined #ruby
<dominikh> maetthew: :)
<maetthew> i still don't fully understand it
<maetthew> but sill
<dominikh> heh
<maetthew> *still
<sadfaaa> so what is ruby not GOOD FOR?
<Xeago> maetthew: just think of it as whatever the block gives for each element, becomes an array
<apeiros_> maetthew: sorry, got interrupted at work
<maetthew> apeiros_, np. thank you as well. always trying to help me out with my silly noob questions :)
cpruitt has quit [Client Quit]
<apeiros_> seems dominikh took over, thanks @ dominikh :)
<apeiros_> dominikh: let me guess @ favor…
<dominikh> apeiros_: heh, he's kinda my user :P
<dominikh> and yeah at the favor..
<apeiros_> dominikh: what what? I thought I shouldn't openly tell that anymore? :-p
<dominikh> apeiros_: you shouldn't. I may :P
lkba has quit [Ping timeout: 252 seconds]
hsbt_away is now known as hsbt
<apeiros_> sadfaaa: ruby is a general purpose programming language. you can use it for whatever you want.
<apeiros_> sadfaaa: also please don't troll or spam the channel. thank you.
<sadfaaa> is ruby good for my own maliscious intentions?
<maetthew> dominikh, apeiros: i already knew that :P
hsbt is now known as hsbt_away
<dominikh> hehe
<apeiros_> sadfaaa: you're close to be getting kickbanned.
pcarrier has joined #ruby
<sadfaaa> nope
ikaros has joined #ruby
<sadfaaa> if you are so pro-ruby why did you want to ban me? i am here 2 promote my ruby forum
<apeiros_> you know exactly why and I have no patience for that kind of behavior.
<dominikh> way too much patience for it if you ask me :P
<apeiros_> I have an "at least one warning" policy :-)
<sadfaaa> if you can tolerate trolls, then you can tolerate me.
<sadfaaa> i am not a troll.
<dominikh> and see what it got you
<sadfaaa> nope
<sadfaaa> lets talk about ruby dev
<maetthew> nope.avi?
<sadfaaa> hope.mpeg
<dominikh> apeiros_: fyi, he's spamming #freenode as well
thone has joined #ruby
<sadfaaa> am i?
grzywacz has quit [Ping timeout: 244 seconds]
<sadfaaa> im not
<apeiros_> dominikh: ok
voodoofish has joined #ruby
jsilver has joined #ruby
<Xeago> :O wha's goin on man! apeiros_
arkiver has joined #ruby
<apeiros_> Xeago: hopefully nothing
<sadfaaa> apeiros_ is having a nervous breakdown
<sadfaaa> give him time, take deep breaths
<JDubs_> lol
thone_ has quit [Ping timeout: 252 seconds]
answer_42 has joined #ruby
caveat- has quit [Read error: Operation timed out]
sadfaaa has left #ruby [#ruby]
<ezkl> You know what is way better than trolling random channels on IRC? Trolling those same trolls with Metasploit which just so happens to be written in the Ruby programming language!
<apeiros_> ezkl: have fun
<apeiros_> you have his IP after all…
<Xeago> ah just read the backlog
<jsilver> GlobalChat2 would probably fix this some how
<Xeago> rofl
<jsilver> well, at first it'd be broken but then somebody would add the features so next time it didn't happen, and nobody would get trolled
<jsilver> :D
FDj_ has joined #ruby
zmo_ has joined #ruby
<jsilver> our ruby and node pongers are fully functional and ready to body-check ghosts
sepuku has quit [Ping timeout: 260 seconds]
<jsilver> and reconnect clients
FDj has quit [Ping timeout: 264 seconds]
<jsilver> wow, a channel of 745 clients
combataircraft has quit [Quit: combataircraft]
<jsilver> and not one person wants to help out on my 90% ruby 10% node IRC killer
hsbt_away is now known as hsbt
adambeynon has joined #ruby
<jsilver> must be a lot of posers
<jsilver> no offense
<jsilver> ;]
bluOxigen has joined #ruby
<jsilver> MINASWAN, but
hsbt is now known as hsbt_away
<jsilver> cmon
<dominikh> well, I'm opposed to killing IRC for obvious reasons :)
<jsilver> we're using it right now?
<dominikh> that's hardly the reason
hsbt_away is now known as hsbt
<jsilver> oh
<jsilver> then what??
hsbt is now known as hsbt_away
<dominikh> my biggest proejct so far would be kinda pointless without IRC :P
odyssey4me has joined #ruby
<jsilver> burgestrand: saw it earlier today looking thru IRC lores, hilaridad
<jsilver> ^_^
<jsilver> dominikh: whats yr proj
odyssey4me has quit [Client Quit]
<dominikh> ruby irc library/bot framework.
<maetthew> jsilver, #cinch
<jsilver> ah cinch, is nice. ive made something with summer before
* apeiros_ hates that limechat won't autocomplete your own nick
<apeiros_> always have to type out my nick when deop-ing
odyssey4me has joined #ruby
<Xeago> apeiros_: indeed, FIX IT!
<apeiros_> I'm not an objC coder
<clocKwize> jsilver: you want to kill IRC?
<jsilver> not really
<jsilver> its a joke
<jsilver> i gre up on irc
<Xeago> apeiros_: neither am I
TylerE has quit [Ping timeout: 260 seconds]
<jsilver> back in the day, 1998 ish
<Xeago> I still contributed to some other projects
<Xeago> quickcursor I think it was called
<jsilver> just want to make something a little more convenient
<jsilver> and the protocol level
<jsilver> whilst avoiding web
<jsilver> like it's going out of style.
<jsilver> which it's not
grzywacz has joined #ruby
sepuku has joined #ruby
<jsilver> but i wanted to tweak IRC at a low level using ruby... but ended up creating a new protocol
<burgestrand> Xeago: was it you a few months back that collected questions to ask ruby developers in a quick phone interview?
<maetthew> apeiros_, have you tried Textual?
etehtsea has joined #ruby
<clocKwize> it'd be akin to google trying to kill email with wave. its not the technology thats a problem, its the fact irc is already there and nobody will change
<Xeago> no, but I think I participated
<clocKwize> because nobody else will be on irc-wave
cascalheira has joined #ruby
<clocKwize> and who cares about IRC at a protocol level? They care that they can chat to people
<jsilver> just wanted to see if i could accelerate IRC's death
<jsilver> no multiline pastes
<jsilver> no scrollback
<apeiros_> maetthew: I don't even know what that is
<jsilver> netsplits
jlast has quit [Read error: Connection reset by peer]
whowantstolivefo has quit [Read error: Connection reset by peer]
<jsilver> mos-eisley-ness
<clocKwize> what features would convince people to change?
<jsilver> bad server hierachy
whowantstolivefo has joined #ruby
jlast has joined #ruby
caveat- has joined #ruby
<w|t> lol
<jsilver> logging scrollback, multiline pasting, you own your own server/room instead of X ppl who are "trusted", no netsplits
mahmoudimus has quit [Quit: Computer has gone to sleep.]
hsbt_away is now known as hsbt
<jsilver> anything modern that IRC can do that i may add
<Xeago> chat reliable
<Xeago> without fancy stuff
<jsilver> currently i can send any multi-line unicode
zastern has joined #ruby
<jsilver> and i have autoreconnect
<Xeago> I don't want contact pictures
hsbt is now known as hsbt_away
<Xeago> I don't even want contacts
<jsilver> hide IPs
<Xeago> hate smileys
<Xeago> hate file transfers
<maetthew> apeiros_, "Textual is a highly modified version of the open source project known
<maetthew> as LimeChat."
<jsilver> smileys, /slash commands are removed
<maetthew> from their wiki
hsbt_away is now known as hsbt
<Xeago> use filepicker.io for that
<clocKwize> server-side logs, you can own your own irc server? and you can't get rid of net splits, unless everything is on 1 server, then everyone gets disconnected when a server goes down
<maetthew> apeiros_, it's my irc client of choice and i absolutely love it
hsbt is now known as hsbt_away
<jsilver> bluepill, monit, forever all work
<clocKwize> auto-reconnect? These things mostly seem like a client side thing, not a server side thing
hakunin_ has joined #ruby
yshh has quit [Remote host closed the connection]
<jsilver> server will come back up and logs will be restored faster than an ircd
<maetthew> apeiros_, http://codeux.com/textual/
<w|t> limechat is pretty cool
hsbt_away is now known as hsbt
<jsilver> there is a server and client side ponger design
hakunin has quit [Read error: Connection reset by peer]
tchebb has quit [Ping timeout: 245 seconds]
rcj_ has quit [Ping timeout: 245 seconds]
Sigma00 has quit [Ping timeout: 245 seconds]
<jsilver> which runs ghost handle cleaning and autoreconnecting (disconnect detection)
hsbt is now known as hsbt_away
<w|t> interesting
<w|t> commercial and open source
<jsilver> yee
hsbt_away is now known as hsbt
<clocKwize> jsilver: you arne' convincing me… 90% of what you said is implemented on the client side, and the other 10% is impossible or not really wanted?
<w|t> that's pretty cool
<jsilver> also an experiment
<jsilver> yes, good eye
<maetthew> jsilver, what is this protocol called? have you released it?
<jsilver> yes, there's a short specification
<jsilver> it's called GC2
hsbt is now known as hsbt_away
chussenot has quit [Remote host closed the connection]
<maetthew> ah GlobalChat2?
<jsilver> yes
chussenot has joined #ruby
hsbt_away is now known as hsbt
rcj_ has joined #ruby
<jsilver> clocKwize: some consider it kinda rude but we've found it kinda convenient.. it works great with 2 ppl
<jsilver> as sort of a PM thingy right now
tvw has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
tvw has joined #ruby
<jsilver> but it's not impossible, it's stable right now and it does it... a new build is coming in App Store that enables hyperlinks in the chat, kinda nicer than LimeCHat really :]
<jsilver> also enables tab name completion, copied from LC
tchebb has joined #ruby
Sigma00 has joined #ruby
<maetthew> jsilver, is this "functional"? as in, is it possible to setup a server and connect to it?
<maetthew> and try it out
keanehsiao has joined #ruby
<jsilver> maetthew: yes, totally :)
<jsilver> been stable for a while
<maetthew> cool
<jsilver> yee :)
luckyruby has quit [Remote host closed the connection]
<maetthew> i've actually thought about that IRC needs alot of improvements
<jsilver> also, there's a coffee nodeserver which uses low resources
<maetthew> for like the last 5 years
arkiver has quit [Quit: Leaving]
<jsilver> same, but the protocol sort of precludes them and encourages deviation and weirdness
<jsilver> instead
<jsilver> imo
<maetthew> :P
<clocKwize> I don't even know where to start with why this will be an epic waste of your time
<jsilver> big multiline pastes would be rude in a public channel like this and i intend to make that an option
schwap has quit [Ping timeout: 252 seconds]
<maetthew> jsilver, i understand what you mean. but how about limit multiline?
<maetthew> like 5 lines max
<maetthew> or something
<jsilver> it could easily be made a backend option
<maetthew> allright
<jsilver> there are already some options, private from MSL, password, and scrollback is infact optional
samuel02 has quit [Remote host closed the connection]
<maetthew> cool
<maetthew> "It actually looks like there has not been that radical development on the chat systems during the last decade. I find that surprising given all the areas where improvements could be made." - Jarkko Oikarinen, Inventor Of IRC
<jsilver> :D
<maetthew> i like this quote on the wiki :)
<jsilver> me too me too
<maetthew> basically irc have not been improved in years, right?
<jsilver> totally
<jsilver> the web took it over like a porsche vs a toyota
<Xeago> no jsilver, irc wsa good
<Xeago> and still is good
<maetthew> jsilver, yeah that's what i was supposed to say. irc lacks tight integration with the web
<Xeago> why does it need it ?
hsbt_away is now known as hsbt
<maetthew> because user friendlyness
<jsilver> well, theres mibbit but thats not exactly "nice" software or whatever in my opinion
<dominikh> please, no.
<jsilver> irc just seems rude to biz
<jsilver> enterpriseness
habstinat has joined #ruby
<dominikh> making things "user friendly" just attracts the kind of users nobody wants
<jsilver> that rails seemed to eek
<maetthew> jsilver, yeah
hsbt is now known as hsbt_away
<maetthew> dominikh :D
<jsilver> sure
<jsilver> but
<jsilver> the lack of noise is nice for me too
pcarrier has quit []
zastern has quit [Ping timeout: 244 seconds]
<jsilver> don't like a lot of extra features i'm not gonna use, prefer the software to be subtle but slick
<maetthew> jsilver, have you seen qvaq.com?
<jsilver> no
<maetthew> i like the idea. but not that is central in one website
<maetthew> jsilver, basically it's irc on the web
includex has joined #ruby
<jsilver> lol
<jsilver> ye
<maetthew> i would prefer some kind of protocol like irc, where i could connect a website to the server
<maetthew> well it's possible.. but
<jsilver> exact sort of problems i was trying to avoid
<jsilver> by avoding the web stack
<jsilver> <^>ing off websockets and the ancient irc protocol
<maetthew> yeah
<jsilver> and <3ing ruby and node
<jsilver> :D
m3pow has quit [Remote host closed the connection]
JonnieCache has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<jsilver> and flipping off standards organizations.. sick of them and their poor specifications
* JonnieCache has just installed the html_truncator gem
<JonnieCache> bad times
SoonerBourne has quit [Read error: Connection reset by peer]
Slivka has quit [Remote host closed the connection]
<jsilver> lol
<Xeago> JonnieCache: do tell, how is it bad?
<Xeago> jsilver: irc protocol is nice imo
<Xeago> I like it
<Xeago> besides dcc
<jsilver> dcc.
<jsilver> lets talka bout it
<jsilver> would it still work on today's internet?
SoonerBourne has joined #ruby
cableray_ has joined #ruby
<Xeago> yes
<JonnieCache> if you have to use that gem then its a good indication that youre working on a shitty project
<jsilver> but, routers? NAT?
<jsilver> DCC me or something
<dominikh> the IRC specification lacks some details. most implementations have their own interpretations. and DCC is horribly stupid :)
<jsilver> lol
<jsilver> im on limechat
<jsilver> why's it stupid?
<JonnieCache> dcc was cool back in the day
F1skr has joined #ruby
<dominikh> DCC does still work and is still being used (DCC SEND), but that in particular is moronic, too
<JonnieCache> xdcc bots and the like made be feel very l33t as a young person
<jsilver> lol
arkiver has joined #ruby
<jsilver> indeed
<jsilver> doesnt dcc usually break
<dominikh> jsilver: DCC SEND expects you to ACK every package you get. now why is that stupid? a) TCP b) neither the packages nor the ACKS carry any number or ID. if you don't get an ACK, it doesn't help anyone. and the spec forbids you to send the next package before you get the ACK, so it slows down the transfer majorly.
<jsilver> for legitimate purposes
<jsilver> not send
<jsilver> like CHAT or whatever the other one was
<dominikh> there are a ton of things over DCC
<dominikh> chat, whiteboard or whatever it's called, couple others
io_syl has quit [Quit: Computer has gone to sleep.]
alexspeller has joined #ruby
<jsilver> ah, nice
<dominikh> and yes, if you're behind a NAT, you have to deal with port forwards, telling your client the correct IP, etc
<jsilver> er bad i mean
<jsilver> lol
cableray has quit [Ping timeout: 265 seconds]
cableray_ is now known as cableray
<jsilver> yeah
<jsilver> basically, GC2 is against that. wants to work 100% on modern internet, and easily
<dominikh> nevertheless, xdcc, still very common :)
<jsilver> so thats why i made the serverdropper at globalchat2.net
<jsilver> whts xdcc
<jsilver> as a science i mean
<jsilver> some as DCC?
<maetthew> jsilver, "The worlds #1 most popular chat client"
<maetthew> :P
<Xeago> jsilver, simply cut out all dcc and irc is fine
<jsilver> lol
djdb has joined #ruby
<dominikh> xdcc is a label for dcc bots
<dominikh> as in, dcc send
<JonnieCache> xdcc was a standard for the bots i think
rellin has quit [Ping timeout: 255 seconds]
<jsilver> ah
<dominikh> (originally it was some script, named xdcc)
<JonnieCache> the bots were standard enoguh that people could crawl and index them
<jsilver> !send some_illegal_filez.zip
<maetthew> jsilver, do you have a globalchat2 server set up?
<jsilver> yes
TylerE has joined #ruby
<JonnieCache> it was fucking l33t as fuck
xpen has quit [Remote host closed the connection]
<jsilver> globalchat2.net:9994 is GlobalChatNet
<dominikh> anime is still distributed via xdcc :)
<jsilver> globalchat2.net:38139 is PineChat (node)
<JonnieCache> this was how it used to be http://en.wikipedia.org/wiki/File:Xdccpacks.gif
<maetthew> jsilver, cool i'm gonna buy the app and try it out :)
<jsilver> maetthew: thanks ! :)
<jsilver> update comin soon too
<jsilver> good one
<maetthew> lol can't remember my app store password :P
<dominikh> no loss
<jsilver> it happens
<jsilver> LOL
<jsilver> there's a free version too
<jsilver> "gem install globalchat"
<jsilver> but the new macruby version 4.0b19 coming soon is SICK
<maetthew> btw jsilver, the download links are backwards
<maetthew> OSX links to iOS and vice versa
<jsilver> thx! fixing!
lkba has joined #ruby
seoaqua has quit [Quit: 离开]
<clocKwize> ah xdcc was awesome
<jsilver> fixed
<maetthew> when trying to "gem install globalchat"
jayne_ is now known as jayne
<jsilver> Install qt with 'brew install qt'
<maetthew> jsilver, hmm i thought i had it installed
DaZ has joined #ruby
mikecmpbll has joined #ruby
<maetthew> nvm i bought the app store app :)
<jsilver> nice
<jsilver> that version better
<jsilver> update soon, itll rock yr socks with link support and tab name completion
<jsilver> :D
<jsilver> honestly my link support is nicer than LimeCHat's somehow
<jsilver> (doubleclick? nothanks)
<maetthew> jsilver, about LimeChat that I told apeiros_. Have you tried Textual?
<workmad3> irssi ftw!!!
<jsilver> no, havent tried it
awestroke has joined #ruby
<jsilver> i love limechat, lolz
<jsilver> based mine thingy on it
<jsilver> a lil
tobinharris has quit [Quit: tobinharris]
<maetthew> jsilver, "Textual is a highly modified version of the open source project known as LimeChat."
<maetthew> not sure what the differences are though
<jsilver> ive heard that
<jsilver> me either
<jsilver> not sure i care
<jsilver> lol
<maetthew> but i looove textual anyway
<maetthew> haha :)
<maetthew> haven't tried limechat more than a few minutes
<maetthew> Textual has Ruby scripts support as well
<maetthew> (not sure if limechat has that)
<jsilver> IRC's like IPv4 to GlobalChat's IPv6
<clocKwize> jsilver: nobody uses it? :D
<Xeago> maetthew: it has
<ezkl> lol
<jsilver> it could be bridged anyway
<maetthew> jsilver, you're not on globalchat right?
larissa has joined #ruby
<jsilver> yes
<maetthew> also, no channels?
<maetthew> is there just one main?
<jsilver> correct
<jsilver> hence the name
<maetthew> i see
<jsilver> but
<workmad3> jsilver: sounds noisy
<jsilver> PMs will be added
<jsilver> workmad3: it works with like 2 ppl right now
yshh has joined #ruby
<maetthew> do you plan to implement channels?
<jsilver> havent had more than 2 at a time that much, sometimes 3
<workmad3> jsilver: sure, but would it work with 200,000 with no organisation?
<jsilver> maybe, if its a popular requests
<jsilver> workmad3: probably not thats a lot
<jsilver> is that the size of freenode?
<workmad3> jsilver: would it work with even 1,000 with no organisation?
<jsilver> well, channels could be added and im sure node would be up to it
<jsilver> there's a ruby gserver and a coffee nodeserver
rellin has joined #ruby
<maetthew> i think channels is needed
<clocKwize> it sounds like a poorly thought out and built pet project that nobody will take seriously
DaZ has quit [Ping timeout: 248 seconds]
<jsilver> i see
<jsilver> channels could be done
<workmad3> jsilver: there's an upper limit to how many people can be involved in a conversation sensibly, and also an upper limit to how many different conversations can go on concurrently without causing major confusion... unless you plan on everyone who wants a separate channel to set up a new server and get the people they want to talk to on it, you're going to need channels in order to grow
<jsilver> but right now, chat is not the main focus on the protocol
<maetthew> what workmad3 said
<jsilver> ok
<jsilver> i can make a ticket
<maetthew> i can see it being used for small organizations
<jsilver> yes
<maetthew> but then again, they might as well use skype or something
<Xeago> maetthew: maintaining the server
<Xeago> becomes costly
<maetthew> Xeago, in what regard? channels?
<Xeago> skype, a proven irc server, campfire
<workmad3> jsilver: and if you don't want to overload people's bandwidth, you're going to need to introduce these at the protocol level and include some form of routing on the server in order to handle them
<Xeago> maetthew: making sure it runs, safely
<maetthew> ah
<workmad3> jsilver: and not just do something naieve and attach a channel to each message and let the client figure things out
<jsilver> workmad3: sure, thats fine
<Xeago> workmad3: do tell what is wrong with that :3
<jsilver> whats naieve about that?
<jsilver> lol
<ezkl> :s/c/g
<workmad3> jsilver: data overload
<clocKwize> I think campfire is an awesome thing
zastern has joined #ruby
<jsilver> hm
<jsilver> oh
<jsilver> makes sense
<clocKwize> they've taken simple chat and made it focussed to a specific thing
<workmad3> jsilver: once you get to something beyond trivial with channels, if you just blindly send everything out to all clients then you'll just create massive, useless data overheads
<jsilver> oh
<jsilver> maintain the channel list
<jsilver> that makes sense
carloslopes has joined #ruby
<workmad3> jsilver: you'd need to maintain a channel list, and you'd need to maintain what channels a connection is subscribed to
<jsilver> got it
<jsilver> i'll make the ticket now
Phoop has quit [Quit: Phoop]
<maetthew> jsilver, have you thought about things like inline images?
<maetthew> or even youtube videos
<jsilver> yes, i had images but didnt go with it, its very possible with apple's API
<jsilver> i was able to do links, but thats not released in the app store yet
<workmad3> client issues, fun :D
<jsilver> yes :)
<jsilver> server ones can be scary
hsbt_away is now known as hsbt
tobinharris has joined #ruby
<workmad3> jsilver: are you going to release a globalchat-client gem that implements just the client-side of the protocol, which would allow others to easily build their own clients?
<maetthew> i think stuff as youtube and images could be very viable. it's just that the chat could become very bloated and messy
<jsilver> workmad3: yes this is planned and the name of this project is LibGlobalChat
<maetthew> but if it could be client specified how images/videos are being shown. i.e like when someone posts an image. you have to actively open it
DaZ has joined #ruby
<jsilver> maetthew: yeah, since the idea is nonannoyingness, this will probably be a big point
<maetthew> yeah i understand that. the power of irc lies in it's simplicity imo
<jsilver> the style now in 4.0b19 (next update) is very nice
<jsilver> yea
<jsilver> Channel support planned
<jsilver> :D
<maetthew> irc isn't "simple". but using/reading is
<jsilver> yes
<jsilver> but GC2 tries to be Ruby to IRC's Perl
<maetthew> :)
<jsilver> ah, i gotta get to bed
fflush has joined #ruby
<maetthew> i like what you've done though. how long have you been working on this?
<maetthew> go to bed? where are you at? :P
<jsilver> thanks for the +1 !
<jsilver> LA
jaygen has joined #ruby
<workmad3> so it's about 3am there?
<jsilver> yep
<workmad3> get a coffee and keep going!
<jsilver> lol im not coding right now really
adamholt_ is now known as adamholt
<jsilver> yea
<jsilver> k
<jsilver> brb
woolite64 has quit []
<maetthew> jsilver, ah. it's 12:20 pm here
<maetthew> (sweden)
sevenseacat has joined #ruby
soc42 has joined #ruby
<jsilver> ah
<jsilver> actually, just remmebered, i got a meeting tomorrow so i really gotta crash, lol
foohey has joined #ruby
<maetthew> haha
<maetthew> night :)
<jsilver> nn ev1
<jsilver> ttyl
zastern has quit [Ping timeout: 244 seconds]
sevenseacat has left #ruby [#ruby]
blacktulip has quit [Read error: Connection reset by peer]
blacktulip has joined #ruby
djdb has quit [Remote host closed the connection]
connor_ has quit [Remote host closed the connection]
fir_ed has joined #ruby
slainer68 has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
hsbt is now known as hsbt_away
Shrink has quit [Quit: ta]
havenn has joined #ruby
fir_ed has quit [Ping timeout: 244 seconds]
Phoop has joined #ruby
vlad_starkov has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
sandGorgon has quit [Remote host closed the connection]
wermel has joined #ruby
djdb has joined #ruby
zastern has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nobuoka has joined #ruby
arkiver has quit [Quit: Leaving]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
alexspeller has quit [Read error: Connection reset by peer]
alexspeller has joined #ruby
eykosioux has quit [Quit: eykosioux]
jaygen has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 264 seconds]
soc42 has quit [Remote host closed the connection]
<ddd> is there a recommended way/place to drum up support for a project? getting it out there to people in such a way to ask for assistance with it, getting testers etc?
zastern has quit [Ping timeout: 244 seconds]
<ezkl> ddd: Build something interesting or useful and they will come.
paolooo has joined #ruby
samphippen has joined #ruby
<ddd> its built already, i just don't know the right way (without pissing people off) to advertise it exists
jaygen has joined #ruby
Mon_Ouie has joined #ruby
<ddd> yes
cableray has quit [Quit: cableray]
<ddd> the *main* is at dtf-gems/dtf
<ddd> the ddd/dtf is my testbed before i push to dtf-gems/dtf
chussenot has quit [Quit: chussenot]
cantonic has joined #ruby
<ddd> i'm actually in the process of removing the dependency on activerecord and swapping in Sequel
cdt_ has quit [Quit: Ex-Chat]
cdt has joined #ruby
<maetthew> Is it not possible to have more than one condition in a "backwards one line if statement"
<ddd> ezkl: right now I'm looking for people to write rspec tests to help drive the code. I'll write the code, or take PRs of course, based off the tests.
<ddd> also figure that should help for those that don't want to write code
<maetthew> i.e "return unless this == something or this2 == somethingelse"
chussenot has joined #ruby
<ddd> maetthew: might use an ||
<maetthew> ddd, ah
<maetthew> will try thanks
<ddd> np
cantonic has left #ruby [#ruby]
Juul has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.2]
<ezkl> ddd: A blog post (or series) which provides a pragmatic example(s) of how the framework can be used to easily test otherwise problematic code might be a great place to start.
<maetthew> ddd, it works
<ddd> maetthew: nice :)
<ddd> ezkl: ah true. blog post didn't even enter my mind. hey, gives me a chance to try out the technical blogging book i bought
Mon_Ouie has quit [Ping timeout: 264 seconds]
nkts has joined #ruby
<ddd> ezso code an example of using the master gem, and one of a sub-module in the framework then make public. gotcha
<ddd> thanks
samuel02 has joined #ruby
<ezkl> ddd: No problem. The project is interesting for sure, but it is often hard (for me, at least) to identify immediate value in frameworks without concrete examples.
<ezkl> http://www.rubyflow.com/ http://www.reddit.com/r/ruby http://news.ycombinator.com/ etc would be good places to post those articles.
<ddd> ezkl: yeah i can see that. I'll be spending the next week, maybe 2 fleshing everything out once i get this conversion to sequel done, and the install process debugged.
<ezkl> yeah
<ezkl> cool
<ddd> thanks. wasn't sure if posting on those would actually draw negatives rather than positives especially reddit
<ezkl> I don't read the ruby subreddit personally, but I don't see why you'd get negative attention
<ezkl> http://rubyreflector.com/ is another one
gbchaosmaster has quit [Ping timeout: 250 seconds]
<JonnieCache> ddd: sequel is great isnt it
<ddd> hehe reddit just seems filled with hairballs and trolls most of the time. there are good articles there, its the clientele that i worry over hehe
<ddd> oh, didn't know about rubyreflector
<maetthew> Is there a good way to push code from your development machine -> production?
yalue has joined #ruby
<ddd> JonnieCache: I like it. much smaller than AR, fairly easy to understand if you look at it as itself and not compare to AR (as in trying to map everything over to how i used AR with rails, and then how i've been using it standalone in this CLI framework)
hsbt_away is now known as hsbt
pcarrier has joined #ruby
<ddd> JonnieCache: the only drawback so far is the lack of the helpers that AR has in sequel.
<ddd> but thats a reliance mechanism i need to clear out of my working process anyways. write my own etc
[Neurotic] has quit [Remote host closed the connection]
elico has joined #ruby
<ddd> JonnieCache: the places i butt up against Sequel are the places I'm still trying to do things the AR way. definitely showing me the pervasiveness of AR in my own process at least hehe
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
chussenot has quit [Quit: chussenot]
k610 has joined #ruby
segv- has quit [Quit: segv-]
Goles has joined #ruby
zastern has joined #ruby
tudor_ has joined #ruby
alexspeller has quit [Remote host closed the connection]
tudor_ is now known as m3pwo
m3pwo is now known as m3pow
schaerli has joined #ruby
<JonnieCache> ddd: most of the stuff you miss is probably in the various plugins sequel ships with
xbob has quit [Quit: Leaving]
tobinharris has quit [Quit: tobinharris]
<ddd> JonnieCache: thank you for that. I've a LOT of the docs for Sequel to go through still. Think i missed that
<JonnieCache> that plugins page is pretty vital
<ddd> i got caught up in rewriting the migrations from AR to S. i clearly missed the plugins
<ddd> i did the migrations by hand
tPl0ch has quit [Quit: Verlassend]
hotovson has quit [Remote host closed the connection]
Giorgio has joined #ruby
zastern has quit [Ping timeout: 244 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<shevy> odd
<shevy> 751 folks here, 517 on #php
ejnahc has quit [Max SendQ exceeded]
ejnahc has joined #ruby
gregorg has quit [Quit: Quitte]
mc_plectrum has quit [Quit: mc_plectrum]
jeffreybaird has joined #ruby
iIlL10Oo has joined #ruby
<maetthew> why is that odd? :P
<Xeago> both numbers are odd?
<Xeago> that's why
rakuN has joined #ruby
<iIlL10Oo> how to convert ruby code to c++ ?
Guest73164 has joined #ruby
<heftig> iIlL10Oo: there's no automatic method
<iIlL10Oo> heftig: oh I think it is not difficult
ttt has quit [Remote host closed the connection]
<heftig> yes, it is. c++ and ruby are too different
<iIlL10Oo> heftig: no , just meta program is different
<heftig> yes.
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<Drakevr> can i somehow see why a particular gem was installed?
<heftig> Drakevr: no.
<Drakevr> that is which gem brought it in as dep
<heftig> not saved
<Drakevr> ah :( thanks heftig
fflush has quit [Ping timeout: 250 seconds]
<shevy> maetthew that we have so many more people than
<shevy> #php
<maetthew> aha
<shevy> even perl is higher than php, at 674
<Xeago> as it should be
<shevy> and python at 1053
<Xeago> they have aliens, remember?
<shevy> yeah but TIOBE says php is more widely in use
fflush has joined #ruby
<workmad3> no, TIOBE *claims* that PHP is more widely in use
kirun has joined #ruby
<workmad3> all TIOBE actually *says* is that PHP is searched for more
<workmad3> which doesn't actually support the claim
blaxter has quit [Quit: foo]
<Drakevr> shevy: OHLOH sais that about java and github sais ruby don't trust that stuff
<Xeago> if I search for php failure by design
<Xeago> does that count?
<shevy> Drakevr github says it only for github
<Drakevr> search and preference of platform does not really reflect true usage of a lang
<shevy> and TIOBE says this: " The ratings are based on the number of skilled engineers world-wide, courses and third party vendors."
<shevy> wonder how they measure skilled engineers
<shevy> :)
<Drakevr> good question ;)
<ccooke> shevy: They don't, they approximate something based on some stuff they made up? ;-)
<shevy> :(
uris has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kandinsk1 is now known as kandinski
slainer68 has joined #ruby
Goles has quit [Ping timeout: 246 seconds]
<Virunga> shevy: are you registered on rubygems?
zastern has joined #ruby
Goles has joined #ruby
ryanh has joined #ruby
odyssey4me has quit []
blueoxigen has joined #ruby
hsbt is now known as hsbt_away
bluOxigen has quit [Ping timeout: 244 seconds]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
awestroke has quit [Remote host closed the connection]
blueoxigen has quit [Ping timeout: 265 seconds]
geekbri has joined #ruby
bluOxigen has joined #ruby
<shevy> Virunga yea https:/rubygems.org/profiles/58718 but I am registered twice there, my old account holds one gem that I need for my other gems :\
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<shevy> they should really add a simple way to kill old profiles
x0F_ is now known as x0F
<shevy> https://rubygems.org/profiles/shevegen this one I wanna kill, especially this gem: ansi_colours
<Virunga> shevy: is it possible delete a gem one created?
nwertman has quit [Ping timeout: 255 seconds]
mark_locklear has joined #ruby
<shevy> in your account, yes
<shevy> with gemcutter
zastern has quit [Ping timeout: 252 seconds]
<shevy> I can do this with my current profile
<shevy> but the old one, I think it uses my old email address
<shevy> which I have removed 2 years ago
<shevy> I have no idea what to do now
<Virunga> :)
dmerrick has quit [Quit: dmerrick]
<Virunga> shevy: can you tell me what's the handle you have to insert to sing up?
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> hmm handle? just the name or... in your case "Virunga" :P
chimkan has joined #ruby
<Virunga> shevy: wtf, couldn't call it just nickname or username
<shevy> https://rubygems.org/users/new yeah the name you want to use comes in the "Handle" part
xkx_ has joined #ruby
<shevy> haha the usability of rubygems.org is odd
<Virunga> Really!
krawchyk has joined #ruby
<shevy> but "gem install bla" is nice to have, so I am using it
<Virunga> For God's sake
<shevy> :D
<JonnieCache> workmad3: tiobe is nonsense
<workmad3> :)
<Virunga> shevy: thanks
samuel02 has quit [Remote host closed the connection]
<shevy> but... but... JonnieCache !!!
<shevy> they write: "the number of skilled engineers world-wide" <--- IMPORTANT SOUNDING WORDS
<shevy> they seem competent to me
<shevy> from these numbers I deduce php has 3x as many "skilled engineers" compared to ruby
keanehsiao has quit [Quit: keanehsiao]
waxjar has left #ruby ["Textual IRC Client: www.textualapp.com"]
waxjar has joined #ruby
<JonnieCache> the thing is those they make those words up
rdark has joined #ruby
<JonnieCache> im surprised theyre allowed to get away with it
<shevy> hehe
<workmad3> JonnieCache: who is going to stop them?
postmodern has quit [Quit: Leaving]
<shevy> firefox is dying!
JonnieCache has quit [Quit: leaving]
<shevy> at least internet explorer is dying too, so I am ok with that
reset has joined #ruby
xAndy is now known as xandy
Uranio has joined #ruby
<workmad3> 'The popular search engines Google, Bing, Yahoo!, Wikipedia, Amazon, YouTube and Baidu are used to calculate the ratings' so it's not about the most, it's about the most googlable
<iIlL10Oo> 212213
cakehero has joined #ruby
morf has quit [Quit: eof]
nanothief has quit [Ping timeout: 276 seconds]
blueoxigen has joined #ruby
cakehero has quit [Client Quit]
bluOxigen has quit [Ping timeout: 255 seconds]
<shevy> iIlL10Oo do you use magic numbers here
<iIlL10Oo> sheerun: what is magic number
kjellski_ has joined #ruby
hsbt_away is now known as hsbt
<iIlL10Oo> shevy: sorry I press alt+n in irssi , but it is lags ..
xkx_ has quit [Quit: WeeChat 0.3.7]
xkx_ has joined #ruby
<shevy> hehe
<shevy> 212213 212214 212MAGIC INVOCATION
schaary has left #ruby [#ruby]
phelps has quit [Read error: Connection reset by peer]
<shevy> I could not handle irssi's pasting, I always mispasted :(
<heftig> iIlL10Oo: that's still ruby - you just removed the parser stage
<iIlL10Oo> heftig: o
<fflush> lala
<fflush> lolo
<fflush> lili
tk__ has joined #ruby
kjellski has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
Slivka has joined #ruby
blueoxigen has quit [Ping timeout: 255 seconds]
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
Goles has quit [Ping timeout: 255 seconds]
iIlL10Oo has left #ruby [#ruby]
nomenkun has quit [Remote host closed the connection]
cakehero has joined #ruby
Kuifje has joined #ruby
<m3pow> hi shevy
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<shevy> hi m3pow
<m3pow> got a minute ?
nomenkun has joined #ruby
<shevy> just ask here in #ruby
<shevy> much easier than divert focus
<m3pow> sure
alexspeller has joined #ruby
<m3pow> i want to install RoR from a tutorial
<m3pow> thing is i want to install mySQL aswell although in the rvm requirements list mySQL does not show up
<shevy> eww
<shevy> rvm AND RoR at the same time ;)
<m3pow> yes
cantonic has joined #ruby
<m3pow> that's the one
<shevy> I failed to install RoR myself last time I tried, and I dont use rvm as I compile from source into standalone, versioned directories
<shevy> ohh AND ubuntu too
<m3pow> i got to the stage where i check the rvm requirements
<shevy> they dont even provide mkmf by default, those bastards
nwertman has joined #ruby
<shevy> that is all awful
<shevy> ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev
<shevy> curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev
<shevy> libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversi
fflush has quit []
joofsh has joined #ruby
<shevy> that is just awful horribly crippled shit
<m3pow> do you have some better stuff?
<shevy> for me yeah. always compile from sources
<shevy> and if possible into versioned directories
Banistergalaxy has quit [Ping timeout: 276 seconds]
<shevy> ruby I have at /Programs/Ruby/VERSION_HERE like /Programs/Ruby/1.9.3p... something
<m3pow> but in that tutorial
<m3pow> where do i need to add the mysql package to install it
Banistergalaxy has joined #ruby
<shevy> first install all you need from mysql via the apt-get stuff
<shevy> then install the ruby bindings to mysql
zastern has joined #ruby
<shevy> I dunno which ones these are
ewag has joined #ruby
<shevy> gem install ruby-mysql
<shevy> Successfully installed ruby-mysql-2.9.10
<shevy> is that it? I dont know mysql well
<m3pow> thanks a lot !
tommyvyo has joined #ruby
tommyvyo has joined #ruby
<shevy> really no idea how to install this with rvm
<shevy> but without rvm it seems to work for me
reset has quit [Quit: Leaving...]
<shevy> require 'mysql' # => true
<shevy> my = Mysql.connect('hostname', 'username', 'password', 'dbname') # SocketError: getaddrinfo: Name or service not known
<shevy> at least I get an error hehehehe
atran has joined #ruby
mercwithamouth has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
jrajav has joined #ruby
Juul has quit [Quit: coding complete]
ananthakumaran1 has quit [Quit: Leaving.]
bluOxigen has joined #ruby
d34th4ck3r_ has joined #ruby
blueoxigen has joined #ruby
a_a_g has quit [Quit: Leaving.]
zastern has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
dawkirst_2 has quit [Ping timeout: 260 seconds]
ffranz has quit [Quit: Leaving]
blueoxigen has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
segv- has joined #ruby
xkx_ has quit [Quit: WeeChat 0.3.7]
kirun_ has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
jenrzzz_ has joined #ruby
jonathancutrell has joined #ruby
schaerli has quit [Remote host closed the connection]
elico has quit [Quit: elico]
rondale_sc has joined #ruby
kirun has quit [Ping timeout: 240 seconds]
lolmaus has quit [Ping timeout: 255 seconds]
ffranz has joined #ruby
m3pow has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129165506]]
havenn has joined #ruby
carlyle has joined #ruby
enroxorz-work has joined #ruby
samphippen has joined #ruby
bbttxu has joined #ruby
GoGoGarrett has joined #ruby
Squarepy has joined #ruby
vd0 has joined #ruby
TylerE has left #ruby [#ruby]
lolmaus has joined #ruby
altious has joined #ruby
willob has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
Goles has joined #ruby
xkx_ has joined #ruby
ryannielson has joined #ruby
spleeze has joined #ruby
Giorgio has quit [Ping timeout: 250 seconds]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
zastern has joined #ruby
Coolhand has joined #ruby
DaltonUS has joined #ruby
BigO_ has joined #ruby
spleeze has quit [Client Quit]
gregorg has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
tps_ has joined #ruby
arya has joined #ruby
DaltonUS has quit [Client Quit]
DaltonUS has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
spleeze has joined #ruby
miskander has joined #ruby
paolooo has quit [Quit: Page closed]
NiteRain has joined #ruby
Vainoharhainen has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
aquaranto has joined #ruby
rakuN has quit [Quit: rakuN]
BigO_ has quit [Remote host closed the connection]
havenn has joined #ruby
skaczor has joined #ruby
samphippen has joined #ruby
jtharris has joined #ruby
zastern has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
statarb3 has quit [Quit: Leaving]
bluOxigen has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
tjbiddle has joined #ruby
JDubs__ has joined #ruby
hotovson has joined #ruby
Squarepy has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
itchyouch has joined #ruby
h4mz1d has joined #ruby
mikecmpbll has quit []
JDubs_ has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
arya has quit [Ping timeout: 244 seconds]
skaczor has quit [Remote host closed the connection]
skaczor has joined #ruby
tjbiddle has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
JDubs__ is now known as JDubs
lkba has joined #ruby
igor has joined #ruby
atran has quit [Quit: Leaving]
igor is now known as igor1
igor1 is now known as igor_12345
<igor_12345> Hey guys. Anyone have experience with the mail gem? Trying to download image attachment with all exif data but when I get it is empty. Anyone have experience with this?
skaczor has quit [Remote host closed the connection]
skaczor has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
skaczor has quit [Remote host closed the connection]
skaczor has joined #ruby
_alejandro has quit [Remote host closed the connection]
tps_ has quit [Quit: tps_]
malte_ has joined #ruby
miskander has quit [Quit: miskander]
bradhe has joined #ruby
maesbn has quit [Remote host closed the connection]
miskander has joined #ruby
adamnbowen has joined #ruby
ToTo has joined #ruby
Proshot has joined #ruby
arya has joined #ruby
mmitchell has joined #ruby
xkx_ has quit [Quit: WeeChat 0.3.7]
dmerrick has joined #ruby
skaczor has quit [Remote host closed the connection]
xkx_ has joined #ruby
mc_plectrum has joined #ruby
skaczor has joined #ruby
atno has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
axl_ has joined #ruby
Squarepy has joined #ruby
nari has joined #ruby
ananthakumaran has joined #ruby
<apeiros_> banisterfiend: feature request - `edit FooClass` should open the file which contains most methods defined on FooClass
<banisterfiend> apeiros_: i know, i'm working on that nw :)
<apeiros_> (alternatively the first in $LOADED_FEATURES)
<apeiros_> cool :)
<banisterfiend> apeiros_: i can go straight to the point the class is defined
<apeiros_> well, there can be multiple source files for a class…
<apeiros_> oh, could also open all…
solidoodlesuppor has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
rellin has quit [Read error: Connection reset by peer]
<apeiros_> also `files FooClass` to show all files which define something in FooClass would be nice
xkx_ has quit [Client Quit]
xkx_ has joined #ruby
xkx_ has quit [Client Quit]
segv- has quit [Read error: Connection reset by peer]
phelps has joined #ruby
skaczor has quit [Remote host closed the connection]
skaczor has joined #ruby
PsciCOde1iXHAt has quit [Remote host closed the connection]
cakehero has joined #ruby
taoru has quit [Remote host closed the connection]
segv- has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
gyre007 has quit [Remote host closed the connection]
lusory has joined #ruby
zastern has joined #ruby
xkx_ has joined #ruby
stopbit has joined #ruby
xkx_ has quit [Client Quit]
xkx_ has joined #ruby
xkx_ has quit [Client Quit]
skaczor has quit [Remote host closed the connection]
skaczor has joined #ruby
slainer68 has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
art_man1 has quit [Quit: art_man1]
niklasb has joined #ruby
carloslopes has quit [Remote host closed the connection]
brianosborne has joined #ruby
entrenador has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
altious2 has joined #ruby
altious has quit [Read error: Connection reset by peer]
hsbt_away is now known as hsbt
gyre007 has joined #ruby
heftig has quit [Read error: Connection reset by peer]
C0deMaver1ck has joined #ruby
t0rc has joined #ruby
zastern has quit [Ping timeout: 250 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
a_a_g has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
pavilionXP has joined #ruby
zastern has joined #ruby
nemesit has quit [Quit: Leaving...]
lolmaus has joined #ruby
miskander has joined #ruby
bbttxu has joined #ruby
lolmaus has quit [Client Quit]
nari has quit [Ping timeout: 255 seconds]
chussenot has joined #ruby
rellin has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
buibex has joined #ruby
skaczor has quit [Remote host closed the connection]
skaczor has joined #ruby
heftig has joined #ruby
tjbiddle has joined #ruby
DatumDrop has joined #ruby
skaczor has quit [Remote host closed the connection]
skaczor has joined #ruby
spleezedos has joined #ruby
pcarrier has quit []
nkts has quit [Ping timeout: 244 seconds]
spleeze has quit [Quit: Leaving]
spleezedos has quit [Read error: Connection reset by peer]
spleeze has joined #ruby
blazes816 has quit [Quit: blazes816]
skaczor has quit [Remote host closed the connection]
skaczor has joined #ruby
buibex has quit [Ping timeout: 246 seconds]
samphippen has joined #ruby
_alejandro has joined #ruby
burgestrand has quit [Quit: Leaving.]
jxriddle has joined #ruby
nanothief has joined #ruby
a_a_g has quit [Quit: Leaving.]
nwertman has quit [Ping timeout: 260 seconds]
bean has joined #ruby
hsbt is now known as hsbt_away
vd0 has quit [Quit: WeeChat 0.3.9.2]
vd0 has joined #ruby
xandy is now known as xAndy
DatumDrop has quit [Ping timeout: 265 seconds]
slainer68 has joined #ruby
h4mz1d has joined #ruby
nanothief has quit [Ping timeout: 276 seconds]
tomsthumb has quit [Quit: Leaving.]
d34th4ck3r_ is now known as d34th4ck3r
x82_nicole has joined #ruby
horrror has joined #ruby
jmampost has joined #ruby
Giorgio has joined #ruby
<bean> JDubs: in here doing project euler problems again?
GoGoGarrett has joined #ruby
nomenkun has quit [Ping timeout: 244 seconds]
awestroke has joined #ruby
carloslopes has joined #ruby
tagrudev has quit [Remote host closed the connection]
djdb has quit [Remote host closed the connection]
kuzushi has quit [Ping timeout: 255 seconds]
tjbiddle_ has joined #ruby
zastern has quit [Remote host closed the connection]
Phoop has quit [Quit: Phoop]
cantonic has quit [Quit: cantonic]
bwlang has joined #ruby
t0rc has quit [Quit: WeeChat 0.3.9.2]
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
<JDubs> bean: working on sinatra apps atm actually
carloslopes has quit [Ping timeout: 255 seconds]
<bean> sweet, what are you doing with it
<JDubs> bean: going through a tutorial that teaches you to write a todo list app
Giorgio has quit [Ping timeout: 244 seconds]
<JDubs> bean: earlier I wrote something simple that let's people input commands into some functions and get the result
<JDubs> sinatra is simpler than rails so I'm using it to get my feet wet in the webapps stuff
geekbri has quit [Remote host closed the connection]
vd0 has quit [Ping timeout: 248 seconds]
<bean> JDubs: I love sinatra for easy stuff.
<bean> Plus you can throw Bootstrap into it pretty easily
jmampost has quit [Remote host closed the connection]
arya_ has joined #ruby
<JDubs> bean: bootstrap?
<bean> JDubs: twitter bootstraphttp://twitter.github.com/bootstrap/
<bean> makes thing pretty, easily
<bean> :)
apeiros_ has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
freeayu has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
<JDubs> @bean it doesn't really say what it is though lol
<bean> JDubs: Javascript / CSS that does easy styling
skaczor2 has joined #ruby
<JDubs> so it's like a wysiwyg for styling or something?
<bean> JDubs: no, one sec.
clocKwize has quit [Remote host closed the connection]
eldariof has quit [Ping timeout: 244 seconds]
buibex has joined #ruby
<bean> JDubs: http://twitter.github.com/bootstrap/examples/hero.html is a good example if you read the source
Liothen has quit [Remote host closed the connection]
xAndy is now known as xandy
clocKwize has joined #ruby
<bean> you'll see it just pulls in a few files and sets up some sane CSS
xandy is now known as xAndy
<bean> / adds some prettyness.
<shevy> bean I am going to call you twitter-bean from now on
ryanh has quit [Quit: Computer has gone to sleep.]
<bean> why
<shevy> so many twitter links from bean ;)
<bean> heh
SCommette has joined #ruby
_alejandro has quit [Remote host closed the connection]
<JDubs> twean bitter lol
<JDubs> tween bitter*
billiam has joined #ruby
quest88 has joined #ruby
yakko has quit [Remote host closed the connection]
dstywho has joined #ruby
Pyro111 has quit [Quit: Leaving]
brianosborne has quit [Quit: brianosborne]
d34th4ck3r has quit [Ping timeout: 255 seconds]
quest88 has quit [Client Quit]
aganov has quit [Remote host closed the connection]
Guest____ has joined #ruby
Guest____ is now known as asteve
asteve has quit [Changing host]
asteve has joined #ruby
hsbt_away is now known as hsbt
gbchaosmaster has joined #ruby
clocKwize has quit [Quit: clocKwize]
axl_ has quit [Quit: axl_]
vlad_starkov has quit [Read error: Connection reset by peer]
theRoUS has quit [Read error: Operation timed out]
meskyanichi has joined #ruby
fyolnish has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
vlad_starkov has joined #ruby
alex__c2022 has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
joshman_ has joined #ruby
zastern has joined #ruby
vd0 has joined #ruby
geekbri has joined #ruby
tps_ has joined #ruby
generalissimo has joined #ruby
chrstphrhrt has joined #ruby
h4mz1d has joined #ruby
carloslopes has joined #ruby
k611 has joined #ruby
ryanh has joined #ruby
joeycarmello has joined #ruby
quest88 has joined #ruby
chrstphrhrt has quit [Client Quit]
browndawg has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
elsifaka has quit [Quit: Veloma e!]
woolite64 has joined #ruby
k610 has quit [Ping timeout: 248 seconds]
mguy has quit [Ping timeout: 276 seconds]
hsbt is now known as hsbt_away
Marco has joined #ruby
zastern has quit [Ping timeout: 264 seconds]
h4mz1d has quit [Ping timeout: 256 seconds]
kuzushi has joined #ruby
hiroyuki has quit [Read error: No route to host]
<robotmay> How the hell do you hook NewRelic into a Grape app?
baroquebobcat has joined #ruby
<robotmay> None of the instructions I've found work, and the NR docs seem to suggest just including the gem will work
<robotmay> ...but it doesn't
arya_ has quit []
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat_ has joined #ruby
hoelzro is now known as hoelzro|away
gbchaosmaster has quit [Ping timeout: 255 seconds]
arya has joined #ruby
davidcelis has quit [Quit: K-Lined.]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
bean has joined #ruby
k611 has quit [Ping timeout: 265 seconds]
nazty has joined #ruby
slainer68 has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
benlieb has joined #ruby
rakl has joined #ruby
slainer68 has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
browndawg has joined #ruby
d2dchat has joined #ruby
yekta has joined #ruby
piotr_ has joined #ruby
vborja has joined #ruby
zastern has joined #ruby
ckrailo has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 244 seconds]
Fretta has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<zastern> So I'm teaching myself ruby, and I'm have trouble understanding something. In this example - https://gist.github.com/4286726 - why is the self.function_name necessary for every function? I don't get it.
DaltonUS has quit [Quit: DaltonUS]
pu22l3r has joined #ruby
<zastern> Specifically the self part
gbchaosmaster has joined #ruby
mc_plectrum has quit [Quit: mc_plectrum]
h4mz1d has joined #ruby
Banistergalaxy has joined #ruby
<rondale_sc> zastern: the self makes those class methods instead of instance methods.
<zastern> rondale_sc: Ah. I guess I'll go look up what that means now
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jfl0wers has joined #ruby
vborja has quit [Quit: Leaving.]
makerbreakr has joined #ruby
<rondale_sc> zastern: There was a nice post about that from Nunemaker a while back http://railstips.org/blog/archives/2009/05/11/class-and-instance-methods-in-ruby/
<makerbreakr> im struggling with being able to access the elements of this hash of arrays
browndawg has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
<zastern> rondale_sc: ill check it out. it might still be over my head at this point though
chimkan has left #ruby [#ruby]
<rondale_sc> zastern: gl
<makerbreakr> pp playlist{"playlists"}[0]{"assets"} shouldnt that work?
browndawg has joined #ruby
iamjarvo1 has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 264 seconds]
<zastern> rondale_sc: yeah it's pretty much meaningless to me. hmm, ill keep researching
rakl has quit [Quit: sleeping]
ewag has quit [Ping timeout: 264 seconds]
nemesit has joined #ruby
blazes816 has joined #ruby
Marco has quit [Ping timeout: 264 seconds]
xclite has joined #ruby
<rondale_sc> makerbreakr: Not sure why you have the constant Hash at the top, but if you want to reference that hash you'll need to use square brackets to reference keys in your hash.
pcarrier has joined #ruby
igor_12345 has quit [Quit: igor_12345]
<makerbreakr> rondale_sc, just a pp of the object type
<rondale_sc> makerbreakr: playlist["playlists"][0]["assets"]
<makerbreakr> ah, cool thanks
ryanh has quit [Quit: Computer has gone to sleep.]
<havenn> zastern: class << self is an alternative to all those self-dots.
<zastern> havenn: Ok . . . so?
<rondale_sc> makerbreakr: And in your gist you aren't assigning a local variable playlists to access.
jslowe has joined #ruby
<zastern> havenn: I wasn't whining about having to put them in over and over, I'm trying to figure out what it means. I'm totally new to ruby.
jslowe has quit [Read error: Connection reset by peer]
Phoop has joined #ruby
<havenn> zastern: Ahh.
vborja has joined #ruby
DaltonUS has joined #ruby
rockets has joined #ruby
KevinSjoberg has joined #ruby
dmiller has joined #ruby
<havenn> zastern: ^^ an example using Class instead of Module.
rakl has joined #ruby
<zastern> havenn: right, that shows me that there will be an error. but not why.
<zastern> nor do I know what the "new" bit means
<zastern> unless thats just another builtin method
<havenn> zastern: cause class methods can be called on the class Example, but instance methods have to be called on an instance of Example (Example.new is an instance of Example).
<workmad3> zastern: do you know what the difference between a class and an instance yet?
Shadow_S has joined #ruby
<zastern> workmad3: not reallllly. ive been trying to google it
zommi has quit [Read error: No route to host]
rakl has quit [Client Quit]
<zastern> havenn: that actually makes a bit of sense to me, although i still need to figure out more, e.g. what workmad3 said
<havenn> Example is the class, Example.new is an instance of the class.
<workmad3> zastern: ok, I'd suggest you keep on plugging through whichever book you're using to learn ruby until you get more context ;)
nkts has joined #ruby
<zastern> workmad3: lrthw. Alas, they just dumped this self.blah example in there without explanation
zommi has joined #ruby
<workmad3> zastern: I've generally found IRC a bad place to get the basic foundations for OO programming across, compared to books or f2f conversations (or even remote pairing)
JohnBat26 has joined #ruby
<zastern> workmad3: yeah agreed. i just come here if i cant figure out something in the book
havenn has quit [Remote host closed the connection]
johnmilton has joined #ruby
<zastern> Unfortunately I don't have any ruby programmer friends
<workmad3> zastern: good practice :) it could be something they just haven't explained yet because they need to introduce a bit more first though
<zastern> yeah ill keep trying, thanks
havenn has joined #ruby
<workmad3> zastern: or it could be something that can go through several levels of understanding, like def self.whatever
AndChat| has joined #ruby
<zastern> Also I'm a sysadmin by trade, so going to IRC after trying to figure out something for 2 hours is basically muscle memory for me.
mikecmpbll has joined #ruby
igor_ has quit [Ping timeout: 255 seconds]
<workmad3> zastern: where the first level of understanding is that 'if you want to do ModuleName.whatever, you need do define the method with def self.whatever'
zmo_ has quit [Quit: Leaving]
Banistergalaxy has quit [Ping timeout: 244 seconds]
<workmad3> zastern: the next level is that 'def self.whatever' defines the method as a module or class method, as opposed to an instance method
<zastern> workmad3: right and I guess it's just unclear why itd ever be useful to have an instance method.
<zastern> or can i not call a class method on a new instance of a class
jfl0wers has quit [Quit: jfl0wers]
<workmad3> zastern: that involves understanding the difference between classes and instances ;)
<zastern> hahahah fair enough
BigO_ has joined #ruby
havenn has quit [Read error: Connection reset by peer]
hsbt_away is now known as hsbt
vlad_starkov has quit [Read error: Connection reset by peer]
<workmad3> zastern: you're progressing through levels of understanding and are asking the right questions, unfortunately in order to answer them adequately, you need a bit more knowledge of the context for them ;)
havenn has joined #ruby
<zastern> Yeah, I'm figuring out "this is how you do X", but not "this is WHY you do X"
<havenn> zastern: The 'self.break_words' in your example is interchangeable with 'Ex25.break_words'.
<zastern> havenn: yes I now get that.
vlad_starkov has joined #ruby
<havenn> zastern: kk :)
<zastern> oh waiiiit a minute
<workmad3> yeah, that happens... it's also a bit of an annoyance in programming primers that they don't really cover the 'why'... but then the 'why' is much more context sensitive
nateberkopec has joined #ruby
<zastern> so when I do require Ex25
miskander has quit [Quit: miskander]
<zastern> im making self Ex25
<zastern> erm
<zastern> not that
<zastern> when i do require Ex25 im making self the current context rather
<havenn> zastern: No, when you are inside module Ex25, self is Ex25
rockets has quit [Ping timeout: 264 seconds]
u89 has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
<zastern> right but the way im using this module is to require it from inside irb
MasterIdler has joined #ruby
<zastern> its a test
<zastern> sort of
<havenn> zastern: Yeah, but if you require Ex25, then do "puts self", self is just main.
<workmad3> zastern: when you do 'require "ex25" ' you're just loading the code inside the file 'ex25.rb'
<AndChat|> Workmad3 sup
<zastern> workmad3: im aware of that. but i then thought self might be the class im currently in? i dont know. i need to stop asking questions nad read more
<workmad3> zastern: no, require doesn't change 'self'
<havenn> zastern: On the other hand self inside the module is Ex25: module Ex25; puts self; end
buibex has quit [Remote host closed the connection]
mc_plectrum has joined #ruby
<workmad3> zastern: things that change 'self' are generally fairly obvious in ruby... inside an instance method 'self' will be the instance, inside a class or module method, 'self' will be the class or module
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ryanlecompte has joined #ruby
<zastern> Ahhh! No more! I'm just going to keep plugging through these examples.
<zastern> I appreciate everybody trying to help though.
miskander has joined #ruby
<workmad3> zastern: and if you do 'class Whatever' or 'module Whatever' then 'self' will be that class or module until you close the class/module with an end
brianpWins has quit [Quit: brianpWins]
buibex has joined #ruby
h4mz1d has quit [Remote host closed the connection]
davidcelis has joined #ruby
horrror has quit [Quit: horrror]
quest88 has quit [Quit: quest88]
chimkan has joined #ruby
jonan_ has joined #ruby
kjellski_ has quit [Quit: Leaving]
jsaak has quit [Ping timeout: 264 seconds]
chrstphrhrt has joined #ruby
xAndy is now known as xandy
jonan has quit [Ping timeout: 265 seconds]
jonan_ is now known as jonan
buibex has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
entrenador has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
jonahR has joined #ruby
xandy is now known as xAndy
squidBits has joined #ruby
headius has joined #ruby
buibex has joined #ruby
bradhe has quit [Remote host closed the connection]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
buibex has quit [Remote host closed the connection]
h4mz1d has joined #ruby
buibex has joined #ruby
ner0x has joined #ruby
dmiller has quit [Remote host closed the connection]
<shevy> workmad3 what are you doing with ruby the most btw? writing small scripts? or larger projects?
<shevy> for myself, I tend to enjoy writing small things way more than large projects. the latter seem to require so much more work and effort to maintain and keep at a good quality
<shevy> or require rewrites
<shevy> and way more attention anyway
<shevy> DIE, LARGE PROJECTS, DIE!
larissa has quit [Quit: Leaving]
<Gate> Yep, but the large projects are the ones that people want to pay for
ewag has joined #ruby
<Gate> Everybody wants to be facebook.... sigh.
gbchaosmaster has quit [Ping timeout: 246 seconds]
<shevy> I hate facebook and google+
phelps has quit [Read error: Connection reset by peer]
sjuxax has joined #ruby
<davidcelis> im writing the next facebook+
BigO__ has joined #ruby
chimkan has left #ruby [#ruby]
ryanlecompte has quit [Remote host closed the connection]
BigO_ has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
ryanlecompte has joined #ruby
dr_bob has quit [Quit: Leaving.]
<sjuxax> Suppose I need to do millions of things in a single run of a script. So far, Ruby has been horrendous for this in my experience because: http://stackoverflow.com/questions/12487986/how-can-i-make-ruby-release-unreferenced-memory . This is sad. Is there a way I can structure my program so I can do millions of things without dragging down Ruby's GC such that the script doesn't get progressively slower? You can see that Ruby will not actually clear out the mem
nyuszika7h has joined #ruby
<pasties> sjuxax: I'd say your best bet would be to make use of Process#fork and do small simple tasks within the block
ewag has quit [Ping timeout: 246 seconds]
asobrasil has left #ruby [#ruby]
mybrainis404 has joined #ruby
mark_locklear has quit [Remote host closed the connection]
itchyouch has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<pasties> sjuxax: Something that might help if you're not familiar with multi-threaded programming: https://github.com/robgleeson/xpool
<pasties> sjuxax: Just be careful and make sure you're performing tests as any kind of multi-threading work gets hairy no matter what the language
rockets has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
grzywacz has quit [Ping timeout: 255 seconds]
jso_ has joined #ruby
buibex has quit [Remote host closed the connection]
soyapi has joined #ruby
DatumDrop has joined #ruby
nanothief has joined #ruby
hsbt is now known as hsbt_away
yanq has joined #ruby
r126l has joined #ruby
tvw has quit [Read error: Connection reset by peer]
etank has quit [Read error: Connection reset by peer]
<davidcelis> robotmay: hi
carlyle has joined #ruby
adeponte has joined #ruby
skaczor2 has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
Mon_Ouie has joined #ruby
jso_ has quit []
DatumDrop has quit [Ping timeout: 260 seconds]
awestroke has quit [Remote host closed the connection]
tvw has joined #ruby
nanothief has quit [Ping timeout: 276 seconds]
pyr0commie has joined #ruby
AndChat| has quit [Ping timeout: 276 seconds]
hotovson has quit [Remote host closed the connection]
mc_plectrum has quit [Quit: mc_plectrum]
entrenador has joined #ruby
brianpWins has quit [Quit: brianpWins]
rockets has quit [Ping timeout: 264 seconds]
chussenot has quit [Quit: chussenot]
slash_nick has joined #ruby
alvaro_o has joined #ruby
brax4444 has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
carloslopes has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 260 seconds]
<nateberkopec> Is there any way to make Date.parse read Dates the good ol American way? Or am I stuck with dd-mm-yyyy?
io_syl has joined #ruby
Fretta has quit [Read error: Connection reset by peer]
alexspeller has quit [Remote host closed the connection]
danneu has joined #ruby
pu22l3r has joined #ruby
Neomex has joined #ruby
carlyle has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
cakehero has quit [Quit: Computer has gone to sleep.]
slash_nick is now known as darkwing_duck
<nateberkopec> rondale_sc: yeah, I'm just too lazy to want to pass a second parameter.
<nkts> hi, I use yardoc with yard-sinatra to document sinatra project
<nkts> how to know if yard-sinatra plugin is really used?
<nateberkopec> I guess I could write my own method. Date#patriotic_parse.
chimkan___ has joined #ruby
bradhe has joined #ruby
adeponte has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
Fretta has joined #ruby
bigkevmcd has quit [Quit: outta here]
Giorgio has joined #ruby
yanq has quit []
adeponte has joined #ruby
entrenador has quit [Ping timeout: 264 seconds]
nwertman has joined #ruby
friskd has joined #ruby
burntbyte has joined #ruby
chimkan___ has quit [Client Quit]
burntbyte has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
burntbyte has joined #ruby
burntbyte has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
AndChat| has joined #ruby
PsciCOdeliXHAt has joined #ruby
<workmad3> shevy: sorry, was distracted by work
<workmad3> shevy: I tend to mostly end up in the area of medium-large rails projects
kuzushi has quit [Ping timeout: 250 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
<workmad3> shevy: most of my plain ruby hacking is personal stuff in small projects
AndChat- has joined #ruby
Naeblis has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
bean has quit [Quit: Computer has gone to sleep.]
<Naeblis> I'm having trouble understanding Ruby's block scope. In this code, why isn't the total available to me at line 5? http://bpaste.net/show/H8DgFjR7CEIq4VWDQVFM/
Banistergalaxy has quit [Ping timeout: 264 seconds]
nwertman has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Gate> Naeblis: try this: x = tield(total_2, arr)
<Gate> I mean: total_2 = yield(total_2, arr)
<Gate> (I can type, I swear!)
AndChat| has quit [Ping timeout: 264 seconds]
<Naeblis> oh
<Naeblis> cool
<workmad3> Naeblis: ^^ and the reason is that 'x = 0' <-- that changes the reference held in the variable 'x' to the value object 0, it doesn't alter the reference held in the variable 'total_2'
banisterfiend has joined #ruby
phelps has joined #ruby
Phoop has quit [Quit: Phoop]
h4mz1d has joined #ruby
mafolz has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
<Naeblis> workmad3, so I could've done this without initializing x to 0 again?
<workmad3> Naeblis: not in this case
<workmad3> Naeblis: because x += i would also change the reference
<workmad3> Naeblis: if x was an array though, you could have done x.push(i) to add items to the array
<workmad3> Naeblis: it's basically distinguishing between what modifies an object, and what changes a variable reference
Naeblis has quit [Disconnected by services]
chimkan_ has joined #ruby
Naeblis has joined #ruby
<Naeblis> timed out. :|
<Naeblis> <Naeblis> workmad3, so I could've done this without initializing x to 0 again?
Vainoharhainen has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
theRoUS has quit [Ping timeout: 244 seconds]
<PsciCOdeliXHAt> hey iḿ learning ruby, can O do like C, var++, i++?
BigO__ has quit [Remote host closed the connection]
jonathancutrell has quit [Quit: jonathancutrell]
<Naeblis> so if I remove line.9, the x in the each block is the one from the outer block, correct ?
<workmad3> PsciCOdeliXHAt: no
tjasko__ has joined #ruby
<workmad3> PsciCOdeliXHAt: i += 1
<workmad3> Naeblis: no
<workmad3> Naeblis: because x += 1 also changes the reference
<workmad3> Naeblis: it's basically distinguishing between what modifies an object, and what changes a variable reference
sn0wb1rd has joined #ruby
sjuxax has left #ruby [#ruby]
tvw has quit [Remote host closed the connection]
maletor has joined #ruby
<PsciCOdeliXHAt> thanks
<workmad3> Naeblis: things like 'some_array.push(5)' will modify the array, something like 'some_array += [5]' will create a new array and store a reference to it in 'some_array'
jonathancutrell has joined #ruby
Jasko has quit [Ping timeout: 260 seconds]
maletor has quit [Client Quit]
<reactormonk> Naeblis, it's considered impolite to modify the arguments of a function/method in a lib
<reactormonk> although some people still do it
maletor has joined #ruby
h4mz1d has quit [Remote host closed the connection]
rockets has joined #ruby
<Naeblis> so there's no way I can get the outer total value (initialized in line 2) to the inner each?
<Naeblis> I'm confused about scope here
alex__c2022 has quit [Quit: alex__c2022]
<workmad3> Naeblis: it's not so much scope as it is how references work
<PsciCOdeliXHAt> workmad3: I writed my first program in python now, I got erro, can yoy look it? http://pastie.org/5531137
buibex has joined #ruby
<rismoney> is there a way to see the arguments a method takes?
<workmad3> Naeblis: the moment you passed it as a parameter to a block you changed scope, but the parameter contains a reference to the same object
<workmad3> Naeblis: if you do anything to reassign that parameter, you change the reference
makerbreakr has left #ruby ["Leaving"]
<PsciCOdeliXHAt> workmad3: I found...thanks
<Naeblis> workmad3, cool
<workmad3> Naeblis: and because you're dealing with a plain fixnum integer which is an immutable value object you can't modify it, only reassign it with a new value
xea has quit [Ping timeout: 240 seconds]
carlyle has quit [Remote host closed the connection]
darthdeus has joined #ruby
asteve has quit [Quit: Computer has gone to sleep.]
<danneu> PsciCOdeliXHAt: that's ruby
keyvan has quit [Ping timeout: 244 seconds]
<danneu> PsciCOdeliXHAt: also, you set the 'number' var but only reference a var named 'i' that doesn't exist
hsbt_away is now known as hsbt
eldariof has joined #ruby
bean has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
m3pow has joined #ruby
h4mz1d has joined #ruby
nat2610 has joined #ruby
<danneu> PsciCOdeliXHAt: you could condense that code into this: http://pastie.org/5531194
kenneth has joined #ruby
nmabry has joined #ruby
nga4 has joined #ruby
mosheee has joined #ruby
mosheee has quit [Changing host]
mosheee has joined #ruby
<danneu> PsciCOdeliXHAt: or, simpler: `10.times do |i|`
<PsciCOdeliXHAt> danneu: can i do puts i + "its pair"
BigO_ has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
<danneu> PsciCOdeliXHAt: sorry, what?
moshee has quit [Ping timeout: 250 seconds]
<PsciCOdeliXHAt> danneu: I want to tells if i is impa or pair..
Naeblis has left #ruby ["Leaving"]
brianpWins has joined #ruby
Planet_EN has joined #ruby
<PsciCOdeliXHAt> http://pastie.org/5531230
<PsciCOdeliXHAt> danneu: like that
ltsstar has joined #ruby
<Planet_EN> https://raw.github.com/philipjkim/sinatra-quickstart/master/app.rb that run! method, is it a ruby thing or something specific to sinatra?
rockets has quit [Ping timeout: 246 seconds]
<PsciCOdeliXHAt> I'm just doind some exercices, to start with ruby and ruby on rails
pwelch has joined #ruby
arya has quit []
<PsciCOdeliXHAt> ok...I saw
arya has joined #ruby
pu22l3r has joined #ruby
<PsciCOdeliXHAt> danneu: this way, I have to know lots of methods
<PsciCOdeliXHAt> eh?
Aiur has joined #ruby
rhys has joined #ruby
rhys has quit [Changing host]
rhys has joined #ruby
<danneu> PsciCOdeliXHAt: http://pastie.org/5531273
<danneu> you can interpolate ruby into strings: "one plus one is #{1 + 1}"
Uranio has joined #ruby
h4mz1d has quit [Ping timeout: 264 seconds]
<danneu> PsciCOdeliXHAt: which is nicer than adding strings. `i.to_s + " is the number"` vs `"#{i} is the number"`
nkts has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 265 seconds]
<danneu> PsciCOdeliXHAt: is that what you wanted?
Gu_______ has joined #ruby
pu22l3r has joined #ruby
buibex has quit [Remote host closed the connection]
BigO_ has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
jonahR has quit [Quit: jonahR]
Axsuul has joined #ruby
<PsciCOdeliXHAt> danneu: yeah...thanks
theRoUS has joined #ruby
<PsciCOdeliXHAt> danneu: this way you showed me number.upto(10) do |i|
Gu_______ is now known as asteve
asteve has quit [Changing host]
asteve has joined #ruby
<PsciCOdeliXHAt> number.upto is a class and method respectivly
<PsciCOdeliXHAt> ?
workmad3 has quit [Ping timeout: 264 seconds]
<darkwing_duck> number is a variable
<blazes816> number is an instance of a class
tk__ has quit [Quit: ばいばい]
<PsciCOdeliXHAt> and .upto is a method eh?
<darkwing_duck> like number = Integer(2)
<darkwing_duck> yup
<lectrick__> class A; def B; puts 'whoa'; end; end; A.methods(false) #=> nil ... What did I just do?
punkrawkR has joined #ruby
harushimo has joined #ruby
thatguycraig has joined #ruby
Aiur has quit [Quit: Computer has gone to sleep.]
lectrick__ has quit [Changing host]
lectrick__ has joined #ruby
lectrick__ is now known as lectrick
<lectrick> oh, I'm an idiot. A.new.B #=> whoa
mrsolo has joined #ruby
ossareh has joined #ruby
banjara has joined #ruby
alexim has joined #ruby
<PsciCOdeliXHAt> thank you guys
voodoofish430 has joined #ruby
chimkan__ has joined #ruby
<lectrick> PsciCOdeliXHAt: in "number.upto(3)", number is a variable. upto is the method called on (or "message being sent to") that variable. (3) is the argument passed to that message.
d34th4ck3r has joined #ruby
mneorr has joined #ruby
banjara has quit [Client Quit]
<lectrick> PsciCOdeliXHAt: The result of that upto call gives you an instance of Enumerator
banjara has joined #ruby
<lectrick> PsciCOdeliXHAt: That instance will take a block, and then yield each number up to the argument, in turn, to that block, repeatedly
chimkan_ has quit [Ping timeout: 252 seconds]
<lectrick> PsciCOdeliXHAt: It will take a while to realize that every single thing you do in Ruby returns a value, even if that value is "nil"
chimkan__ has quit [Client Quit]
<lectrick> (personal pet peeve: i wish method definitions returned the symbol of the method name. that way you could do cleverness like "private def priv_method(arg); do_stuff; end"
Aiur has joined #ruby
<banisterfiend> lectrick: instance_methods != m
<banisterfiend> lectrick: you're asking for methods on the class, but you want instance methods on the class, use instance_methods(false) instead
<lectrick> I proposed this on ruby-talk and was shot down for really nebulous reasons, even though the C code that defines methods in ruby already generates the symbolized version of that method name
<lectrick> banisterfiend: I know. I corrected myself later
generalissimo has quit [Remote host closed the connection]
Vainoharhainen has quit [Ping timeout: 246 seconds]
<banisterfiend> oh ok..
<lectrick> I love the introspection stuff, I wish there was more of it, as well as a few more callbacks available
rockets has joined #ruby
<banisterfiend> lectrick: it's good raw material for building more sophisticated introspection stuff
art_man1 has joined #ruby
<lectrick> Planet_EN: It looks like "run!" is probably defined by Sinatra::Base, so you'll have to look at its docs
<banisterfiend> lectrick: pry wraps a lot of that up and provides a tonne more introspection functionality via Pry::Method and Pry::WrappedModule
<lectrick> banisterfiend: yes and it does that by hacking a very good binding_of_caller :O but I am not done studying Pry's code :)
<banisterfiend> lectrick: ah no, 99% of our introspection stuff works without binding_of_caller
<banisterfiend> binding_of_caller is for the really crazy stuff :P
<banisterfiend> hehe
<lectrick> banisterfiend: really? I better get on that studying then :O Is it very hacky, even if it doesn't use BoC?
c0rn has joined #ruby
geekbri has quit [Remote host closed the connection]
nga4 has quit [Remote host closed the connection]
<banisterfiend> lectrick: what kind of introspection stuff are you talking about? we have stuff like, Pry::WrappedModule(MyClass).source
<banisterfiend> to return the source of a module
<banisterfiend> and things like that, it does all that without using binding_of_caller, and isn't *too* hacky
dbeest has joined #ruby
jojokoko has joined #ruby
cdt has quit [Quit: Ex-Chat]
<lectrick> i consider "hacky" if it does things like File.read the line of code referenced by a line number in a stock callback trace. That's the sort of thing that is ugly enough where I wish it was a language feature
thams has joined #ruby
pcarrier has quit []
<banisterfiend> lectrick: ah, we do a bit of that, but only for messing with exceptions, but that's just the limited nature of 'caller' unfortunately
<lectrick> banisterfiend: yeah I am going to look at the introspection features added by Pry. I'm already a fan
<banisterfiend> lectrick: btw, ruby 2.0 has caller_locations
phelps has quit [Ping timeout: 255 seconds]
<banisterfiend> lectrick: that returns an OOP stack trace
<lectrick> banisterfiend: yeah, i know caller is limited... which is why I was wishing aloud that the language itself was better at that :)
<banisterfiend> lectrick: ruby 2.0 has better than that ;) check it out, you'll be impressed
<lectrick> banisterfiend: 2.0? Really? No effing way!I Sweet!
<banisterfiend> lectrick: i'll show u, one sec
* lectrick goes immediately
<lectrick> ...or waits patiently for url from banisterfiend...
Planet_EN has quit [Quit: Planet_EN]
bbttxu has quit [Quit: bbttxu]
<lectrick> Does 2.0 provide any more event hooks? Specifically at some point I was looking at hooking into when a class, module or method are opened/closed. I know that some of these were available, but not all of them, and they seemed reasonable
<banisterfiend> lectrick: https://gist.github.com/4287593
<lectrick> I'm really on the fence about Refinements (again) but I think "prepend" will be cool
<Gate> didn't refinements get downgraded to an experimental feature?
Jasko has joined #ruby
<banisterfiend> lectrick: is that what you wanted?
<lectrick> banisterfiend: yeah that's nice :)
dbeest has left #ruby ["Konversation terminated!"]
<lectrick> banisterfiend: does to_s return the actual code? or the former caller implementation?
jekotia has joined #ruby
brianosborne has joined #ruby
<lectrick> Gate: Not sure... but I think it was also slow, at the time I saw it
pyr0commie has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
Solnse has joined #ruby
rockets has quit [Ping timeout: 260 seconds]
jojokoko has quit [Quit: Page closed]
tjasko__ has quit [Ping timeout: 248 seconds]
Shadow_S has quit [Quit: Textual IRC Client: www.textualapp.com]
mguy_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
mascool has joined #ruby
tenmilestereo has joined #ruby
kenneth has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
<Gate> I remember seeing some comment from Charles Nutter about it being marked experimental, I'm not suprised it was slow, its a very.... meta.... feature.
iamvery has joined #ruby
browndawg has quit [Quit: Leaving.]
brianosborne has quit [Quit: brianosborne]
vd0 has quit [Quit: WeeChat 0.3.9.2]
v0n has joined #ruby
C0deMaver1ck has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
v0n has quit [Client Quit]
yoklov has joined #ruby
v0n has joined #ruby
yoklov has left #ruby [#ruby]
arturaz has quit [Ping timeout: 244 seconds]
zuurr has joined #ruby
jrist is now known as jrist-afk
zuurr has left #ruby [#ruby]
<robert_> banisterfiend: hai
<banisterfiend> robert_: sup
timmow has quit [Quit: has left the building]
tenmilestereo has quit [Quit: Leaving]
<robert_> banisterfiend: not much; working on a site website in padrino. :D
<banisterfiend> cool
Kruppe has joined #ruby
<robert_> yup
combataircraft has joined #ruby
mneorr has quit [Remote host closed the connection]
jonathancutrell has quit [Quit: jonathancutrell]
mneorr has joined #ruby
FDj_ is now known as FDj
mneorr has quit [Remote host closed the connection]
joshman_ has quit [Ping timeout: 265 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
mneorr has joined #ruby
slainer68 has joined #ruby
arietis has joined #ruby
joshman_ has joined #ruby
yekta has quit [Quit: yekta]
Kruppe has quit [Ping timeout: 264 seconds]
Jasko has quit [Read error: Connection reset by peer]
flip_digits has joined #ruby
rakl has quit [Quit: sleeping]
rockets has joined #ruby
ner0x has quit [Remote host closed the connection]
Jasko has joined #ruby
arturaz has joined #ruby
<lectrick> Gate: I got pretty far implementing refinements-like functionality in 1.9 :O
tenmilestereo has joined #ruby
tenmilestereo has quit [Client Quit]
rezzack has joined #ruby
hackerdude has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
<davorb> can someone tell me why this isn't working in 1.8? it works fine in 1.9.7 http://pastebin.com/8NSHB0dt
<davorb> (and how to fix it)
awestroke has joined #ruby
<davorb> the code "runs", but it doesn't 'do' anything at line 13
Goles_ has joined #ruby
ryanf has joined #ruby
C0deMave_ has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
_alejandro has joined #ruby
Goles has quit [Ping timeout: 244 seconds]
himsin has joined #ruby
geekbri has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
nanothief has joined #ruby
DatumDrop has joined #ruby
atmosx has joined #ruby
rockets has quit [Ping timeout: 264 seconds]
<davorb> nm, solved it. it appears that the verify mode isn't supported.
schwap has joined #ruby
awestroke has quit [Remote host closed the connection]
etehtsea has quit [Quit: Computer has gone to sleep.]
Goles_ has quit [Ping timeout: 265 seconds]
entrenador has joined #ruby
gilbert1 has joined #ruby
Goles has joined #ruby
fred909 has joined #ruby
DatumDrop has quit [Ping timeout: 256 seconds]
entrenador has quit [Client Quit]
C0deMave_ is now known as C0deMAver1ck
C0deMAver1ck has quit [Changing host]
C0deMAver1ck has joined #ruby
foohey has quit [Quit: Quitte]
C0deMAver1ck is now known as C0deMaver1ck
nanothief has quit [Ping timeout: 276 seconds]
<gilbert1> Hi all, this is driving me nuts, I just need a pointer to a tutorial. I'm not much of a ruby dev (just getting into it), and I'm attempting to install a plugin written in ruby. I can handle simple gem commands, but this particular plugin only has a "Gemspec" file. I read through the Bundler doc, but I'm not intending to develop on this plugin, I just want to install and use it. I need to know how to get from where I'm at to an installed gem.
Giorgio has quit [Ping timeout: 260 seconds]
<tommyvyo> gilbert1: what gem is it?
<gilbert1> chef-jenkins
<gilbert1> not actually available as a gem, from what I can tell, I pulled it from github
<gilbert1> yeah
includex has quit [Ping timeout: 252 seconds]
<tommyvyo> are you using chef?
<gilbert1> yes
<tommyvyo> are you experienced with chef
<tommyvyo> this looks like a cookbook
<tommyvyo> which while technically is written is ruby, needs to be executed through chef
<tommyvyo> or maybe knife?
<gilbert1> I'm in a situation where I have just enough information to be dangerous. Have to get it working, when I get to "working" I move on to next problem. So, while I have a little experience playing around in Chef, I'm by no means well-versed in it.
<tommyvyo> gilbert1 i think you need to use it with knife
<gilbert1> ok
wermel has quit [Remote host closed the connection]
<gilbert1> yeah, i've read that :)
<gilbert1> perhaps i missed something, i'll go read it again
<gilbert1> thanks
<tommyvyo> perhaps that?
<tommyvyo> gilbert1 you might be better off asking in ##devops
pcarrier has joined #ruby
<gilbert1> that looks interesting, thank you. and yeah, i'll skip over to devops and see what they say, after I've read through this
<tommyvyo> sorry i couldnt be of more help!
pcarrier_ has joined #ruby
<gilbert1> you've been helpful! at least got me pointed in a direction :D
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<TTilus> banisterfiend: http://www.hulu.com/watch/434936
<TTilus> banisterfiend: just noticed that rare exports is free on hulu
<TTilus> banisterfiend: that reminded me of the santa discussion yesterday :)
callie has joined #ruby
pcarrier has quit [Ping timeout: 264 seconds]
pcarrier_ is now known as pcarrier
Planet_EN has joined #ruby
fmcgeough has joined #ruby
<callie> Is there anyone familiar with actionmail here? For some reason, actionmailer sends a 'domain' to my mailserver, and my mailserver refuses to send any mail when this is done.
<Planet_EN> has sinatra-contrib ever worked for anyone?
<callie> If I comment out the 'domain' line, it still sends it - just as localhost.localdomain
cakehero has joined #ruby
cicekhayri has joined #ruby
robotmay has quit [Remote host closed the connection]
<cicekhayri> scree irssi
cicekhayri has quit [Client Quit]
thmzlt has joined #ruby
BigO_ has joined #ruby
jtharris has quit [Quit: WeeChat 0.3.9.2]
<zastern> Is there something I can use to just step through a ruby file line by line as it runs? The debugger gem seems to need me to put in break points and all these things. I just want to examine execution
_bart has joined #ruby
apok has joined #ruby
altious2 has quit [Ping timeout: 244 seconds]
u89 has joined #ruby
ziv has joined #ruby
ziv has left #ruby [#ruby]
hsbt_away is now known as hsbt
PsciCOdeliXHAt has quit [Remote host closed the connection]
jgarvey has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
rockets has joined #ruby
gbchaosmaster has joined #ruby
altious2 has joined #ruby
banisterfiend has quit [Remote host closed the connection]
ninegrid has quit [Quit: moving]
Slivka has joined #ruby
<zastern> rondale_sc: im confused . . . what's pry?
<rondale_sc> zastern: it's a repo like irb.
<zastern> oh the irb replacement
<rondale_sc> zastern: repl*
tommyvyo has quit [Quit: Computer has gone to sleep.]
awestroke has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<davidcelis> zastern: yes... replacement.....
generalissimo has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
Mon_Ouie has joined #ruby
zommi has quit [Quit: Leaving.]
rockets has quit [Ping timeout: 264 seconds]
aquaranto has quit [Remote host closed the connection]
answer_42 has quit [Quit: WeeChat 0.3.9.2]
altamic has joined #ruby
Banistergalaxy has joined #ruby
altamic has quit [Client Quit]
andrew has joined #ruby
andrew is now known as Guest90766
Guest90766 is now known as andrewhl
jtharris has joined #ruby
kzrl has quit [Ping timeout: 255 seconds]
pwelch_ has joined #ruby
pwelch_ has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
jenrzzz_ has quit [Ping timeout: 265 seconds]
pwelch_ has joined #ruby
manizzle has joined #ruby
pwelch has quit [Read error: Connection reset by peer]
pwelch_ is now known as pwelch
AndChat- has quit [Ping timeout: 264 seconds]
includex has joined #ruby
otters has quit [Ping timeout: 260 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
himsin has quit [Ping timeout: 276 seconds]
carlyle has joined #ruby
vborja has quit [Quit: Leaving.]
vborja has joined #ruby
darkwing_duck is now known as slash_nick
chaosis has quit [Remote host closed the connection]
Aiur has quit [Quit: Computer has gone to sleep.]
shevy has quit [Ping timeout: 244 seconds]
Godd2 has joined #ruby
epwhorl has joined #ruby
FredLe has joined #ruby
banisterfiend has joined #ruby
kzrl has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
joshman_ has joined #ruby
<sn0wb1rd> Hey
<epwhorl> hoy
Adget has joined #ruby
nat2610 has quit [Quit: Leaving.]
johnmilton has joined #ruby
xclite has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
axl_ has joined #ruby
Goles has quit [Quit: Out.]
kzrl has quit [Ping timeout: 276 seconds]
itchyouch has joined #ruby
Planet_EN has left #ruby [#ruby]
Adget has quit [Client Quit]
Adget has joined #ruby
macmartine has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
Adget has quit [Client Quit]
Hanmac has joined #ruby
<atmosx> I have a list of words that I want to downcase, instead of creating a new list can I use map?
rondale_sc has left #ruby [#ruby]
<atmosx> list.map {|word| downcase.word} ?
<swarley-freenode> yes
<swarley-freenode> well not exactly
<swarley-freenode> word.downcase
fred909 has quit [Ping timeout: 246 seconds]
<swarley-freenode> and you can do list.map(&:downcase) as a shortcut
miskander has quit [Quit: miskander]
nat2610 has joined #ruby
rondale_sc has joined #ruby
<atmosx> swarley-freenode: no, I'm dealing with Greek chars and I wrote my own downcase method
rondale_sc has quit [Client Quit]
<atmosx> which is loaded via another file (require_relative)
<swarley-freenode> oh
<swarley-freenode> then yes
<swarley-freenode> except
<atmosx> but map creates a new list from what I've seen
<swarley-freenode> downcase(word)
Goles has joined #ruby
<atmosx> maybe using collect! is more aproprieate
<swarley-freenode> because, if you have some weird ass black magic to make downcase.word work, the villagers better not find out
<atmosx> ahahah
swarley-freenode is now known as swarley
<atmosx> okay
shevy has joined #ruby
<atmosx> I'll use map.
<macmartine> What's the best way to add methods to a class from an external api, such as Google::APIClient::Schema::Calendar::V3::Event ?
<atmosx> shevy!
<shevy> atmosx hey, still in greece?
<atmosx> no, I'm still in Czech (fucking) Republic, I'm leaving with 2 friends tomorrow by car for greece (finally)
<shevy> macmartine not sure you can easily snatch methods and tag them to other objects
<atmosx> I passed microbiology btw!
<shevy> yay!
carlyle_ has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
mosheee has quit []
rockets has joined #ruby
eldariof has quit []
Morkel_ has joined #ruby
benlieb_ has joined #ruby
nomenkun has joined #ruby
iamvery_ has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<swarley> I want to make a regexp builder so that everyone can make fantastic regular expressions
squidBits has quit [Quit: squidBits]
thams has quit [Quit: thams]
a_a_g has quit [Quit: Leaving.]
daniel_hinojosa has joined #ruby
tjbiddle_ has joined #ruby
ryanf has quit [Ping timeout: 276 seconds]
brandon has joined #ruby
v1n has joined #ruby
<swarley> I shall call it
<swarley> reggie
nilg` has joined #ruby
brandon is now known as Guest29403
<swarley> Also
dv__ has joined #ruby
sailias1 has joined #ruby
Russell^^ has joined #ruby
<banisterfiend> swarley: call it tits mcgee
BigO_ has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
axl_ has quit [Quit: axl_]
tjbiddle has quit [Ping timeout: 264 seconds]
siksi has joined #ruby
chiel_ has joined #ruby
<swarley> is there a gem/executable that makes a standard project environment. I.e makes a bin/ lib/ spec/ tree and generates default README.md LICENSE and other files like that?
tjbiddle has joined #ruby
<swarley> banisterfiend; i should
Goles has quit [Quit: Computer has gone to sleep.]
rippa has quit [Ping timeout: 276 seconds]
pewter_tao has joined #ruby
ltsstar has quit [Ping timeout: 265 seconds]
joast has quit [Ping timeout: 265 seconds]
KevinSjoberg has quit [Ping timeout: 265 seconds]
Morkel has quit [Ping timeout: 265 seconds]
v0n has quit [Ping timeout: 265 seconds]
Morkel_ is now known as Morkel
Guest89350 has quit [Ping timeout: 265 seconds]
iamvery has quit [Ping timeout: 265 seconds]
stopbit has quit [Ping timeout: 265 seconds]
sailias has quit [Ping timeout: 265 seconds]
benlieb has quit [Ping timeout: 265 seconds]
brax4444 has quit [Ping timeout: 265 seconds]
six has quit [Ping timeout: 265 seconds]
chiel has quit [Ping timeout: 265 seconds]
nilg has quit [Ping timeout: 265 seconds]
gilbert1 has quit [Ping timeout: 265 seconds]
dv_ has quit [Ping timeout: 265 seconds]
benlieb_ is now known as benlieb
<swarley> I'm too lazy to set up my environment everytime
darthdeus has quit [Read error: Connection reset by peer]
gilbert1 has joined #ruby
miskander has joined #ruby
stopbit has joined #ruby
rdark has quit [Quit: leaving]
<swarley> I want to use rbenv. But i'm too lazy to switch from rvm
benlieb has quit [Quit: benlieb]
danneu has quit [Quit: WeeChat 0.3.8]
banisterfiend has quit [Remote host closed the connection]
ebouchut has joined #ruby
tjbiddle_ has quit [Ping timeout: 245 seconds]
awestroke has quit [Remote host closed the connection]
BigO_ has joined #ruby
<atmosx> swarley: why?
<atmosx> what does rbenv has to offer than rvm doesnt?
<swarley> Less headaches
rockets has quit [Ping timeout: 245 seconds]
<GeekOnCoffee> swarley: I made the switch when I had a hard drive crash, it's not worth the effort of a switch
Guest73164 has quit [Quit: Guest73164]
<swarley> Damn
<swarley> I wish i could install MagLev
<swarley> the build always fails with RVM
DrShoggoth has joined #ruby
vborja has quit [Quit: Leaving.]
<atmosx> what is maglev
sn0wb1rd has quit [Quit: I will be right back]
carlyle has joined #ruby
DaZ has quit [Read error: Connection reset by peer]
<atmosx> truth is rvm give me too many issues with octopress but just that and that only under macosx. In FreeBSD is awesome, everything works.
sn0wb1rd has joined #ruby
rondale_sc has joined #ruby
jtharris has quit [Quit: WeeChat 0.3.9.2]
includex has quit [Ping timeout: 265 seconds]
heftig has quit [Ping timeout: 245 seconds]
carlyle_ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
ryanf has joined #ruby
Fretta has quit [Ping timeout: 244 seconds]
miskander has quit [*.net *.split]
pu22l3r has quit [*.net *.split]
pewter_tao has quit [*.net *.split]
kenneth has quit [*.net *.split]
gilbert1 has quit [*.net *.split]
hackerdude has quit [*.net *.split]
dmerrick has quit [*.net *.split]
baroquebobcat_ has quit [*.net *.split]
yacks has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
Targen has quit [*.net *.split]
SJrX has quit [*.net *.split]
mikekelly has quit [*.net *.split]
ruzu has quit [*.net *.split]
Nykolla has quit [*.net *.split]
inimino has quit [*.net *.split]
dantesun has quit [*.net *.split]
madhatter has quit [*.net *.split]
pcboy__ has quit [*.net *.split]
niklasb has quit [Write error: Connection reset by peer]
darthdeus has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
Fretta has joined #ruby
Fretta has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
rramsden has quit [Remote host closed the connection]
arya has quit []
banisterfiend has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
jrist-afk is now known as jrist
<reactormonk> atmosx, maglev - ruby implementation in a smalltalk vm. fancy stuff like suspending & resuming
harushimo has quit [Quit: Leaving]
<atmosx> I see
joeycarm_ has joined #ruby
joeycarmello has quit [Read error: Connection reset by peer]
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
fred909 has joined #ruby
epwhorl has quit [Ping timeout: 244 seconds]
darthdeus has joined #ruby
jfl0wers has joined #ruby
thatguycraig has quit [Quit: Leaving.]
c0rn has quit [Quit: Computer has gone to sleep.]
alexspeller has joined #ruby
arya has joined #ruby
timonv has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
timonv has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
ryannielson has quit [Quit: ryannielson]
rondale_sc has quit [Quit: rondale_sc]
alvaro_o has joined #ruby
sepp2k1 has joined #ruby
altious2 has quit [Read error: Connection reset by peer]
DaZ has joined #ruby
sepp2k has quit [Ping timeout: 244 seconds]
haxrbyte has joined #ruby
caleb_io has joined #ruby
Russell^^ has quit [Quit: Russell^^]
mercwithamouth has quit [Ping timeout: 255 seconds]
rockets has joined #ruby
SJr has joined #ruby
kuzushi has joined #ruby
yalue has quit [Quit: Leaving]
ebouchut has quit [Quit: This computer has gone to sleep]
otters has joined #ruby
freakazoid0223 has joined #ruby
jfl0wers has quit [Quit: jfl0wers]
maletor has joined #ruby
h4mz1d has joined #ruby
_alejandro has quit [Remote host closed the connection]
Godd2 has quit [Quit: Page closed]
carlyle has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
cakehero has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<robert_> shevy :D
jlast has quit [Remote host closed the connection]
carlyle has joined #ruby
krawchyk has quit [Remote host closed the connection]
jfl0wers has joined #ruby
rockets has quit [Ping timeout: 245 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
squidBits has joined #ruby
squidBits has quit [Read error: Connection reset by peer]
arturaz has quit [Remote host closed the connection]
squidBits has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
vborja has joined #ruby
Shamgar has quit [Ping timeout: 265 seconds]
baroquebobcat has joined #ruby
s0ber has joined #ruby
Shamgar has joined #ruby
<atmosx> can I specify entries in categories using properties? (like having a list and accepting values only from that list for this category) in datamapper?
<reactormonk> atmosx, #datamapper
<atmosx> alrady there
<atmosx> I'm positive I can do it though datamapper I just need a sample code. I'm doing it with pure ruby now
carlyle has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
nanothief has joined #ruby
elaptics`away is now known as elaptics
altious2 has joined #ruby
ephemerian has left #ruby [#ruby]
nobuoka has quit [Quit: Leaving...]
h4mz1d has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
carlyle_ has joined #ruby
otters has quit [Ping timeout: 252 seconds]
nanothief has quit [Ping timeout: 276 seconds]
h4mz1d has joined #ruby
joast has joined #ruby
Neomex has joined #ruby
andrewhl has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
carlyle has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
asteve has quit [Quit: Computer has gone to sleep.]
carlyle_ has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
iamvery_ has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
alex__c2022 has quit [Quit: alex__c2022]
davidcelis has joined #ruby
gordon1775 has joined #ruby
geekbri has quit [Remote host closed the connection]
daniel_- has joined #ruby
dstywho has quit [Quit: Leaving]
heftig has joined #ruby
rockets has joined #ruby
hamfz_ has joined #ruby
h4mz1d has quit [Read error: Connection reset by peer]
sailias1 has quit [Quit: Leaving.]
otters has joined #ruby
rellin has quit [Quit: Nettalk6 - www.ntalk.de]
dmiller_ has joined #ruby
g_bleezy has joined #ruby
clocKwize has joined #ruby
rondale_sc has joined #ruby
axl_ has joined #ruby
jtharris has joined #ruby
billy_ran_away has joined #ruby
pu22l3r has joined #ruby
pewter_tao has joined #ruby
miskander has joined #ruby
hackerdude has joined #ruby
ruzu has joined #ruby
gilbert1 has joined #ruby
Targen has joined #ruby
yacks has joined #ruby
dantesun has joined #ruby
mikekelly has joined #ruby
Nykolla has joined #ruby
pcboy__ has joined #ruby
inimino has joined #ruby
madhatter has joined #ruby
clocKwize has quit [Client Quit]
Targen has quit [Max SendQ exceeded]
caleb_io has quit [Quit: caleb_io]
luckyruby has joined #ruby
Targen has joined #ruby
dmiller_ has quit [Ping timeout: 245 seconds]
g_bleezy has quit [Ping timeout: 264 seconds]
arkiver has joined #ruby
nat2610 has left #ruby [#ruby]
reppard has joined #ruby
cakehero has joined #ruby
hsbt is now known as hsbt_away
Or6itz has joined #ruby
darthdeus has quit [Quit: Leaving...]
jeffreybaird has quit [Quit: jeffreybaird]
rockets has quit [Ping timeout: 245 seconds]
alex__c2022 has joined #ruby
tomsthumb has joined #ruby
vborja has left #ruby [#ruby]
jaygen_ has joined #ruby
Morkel has quit [Quit: Morkel]
jaygen has quit [Read error: Connection reset by peer]
pavilionXP has quit [Ping timeout: 264 seconds]
ner0x has joined #ruby
Goles has joined #ruby
Goles has quit [Client Quit]
jgarvey has quit [Quit: Leaving]
tomsthumb has quit [Quit: Leaving.]
joshman_ has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
yekta has joined #ruby
otters has quit [Ping timeout: 264 seconds]
arkiver has quit [Quit: Leaving]
jfl0wers has quit [Quit: jfl0wers]
whowantstolivef1 has joined #ruby
spleeze has quit [Quit: Leaving]
u89 has quit [Remote host closed the connection]
xnm has quit [Ping timeout: 244 seconds]
Juul has joined #ruby
Xeago has quit [Remote host closed the connection]
beneggett has quit [Remote host closed the connection]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mahmoudimus has joined #ruby
xAndy is now known as xandy
<Solnse> I keep getting an error, can't convert array into string but I don't see where I'm getting an array. I tried using .to_s but still get the same error. Am I going in the wrong direction? https://gist.github.com/4289121
<bean> ill take a look
<bean> 1 sec
<Solnse> bean: thanks I appreciate it.
phipes has joined #ruby
k_89 has joined #ruby
caleb_io has joined #ruby
ozzloy has quit [Ping timeout: 276 seconds]
jerius has joined #ruby
davidcelis has quit [Quit: K-Lined.]
cableray has joined #ruby
caleb_io has quit [Client Quit]
yekta has quit [Quit: yekta]
alex__c2022 has quit [Quit: alex__c2022]
alex__c2022 has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
alex__c2022 has quit [Client Quit]
ndboost has joined #ruby
headius has quit [Quit: headius]
robotmay has joined #ruby
dmiller_ has joined #ruby
ewag has joined #ruby
BigO_ has quit [Remote host closed the connection]
mengu has joined #ruby
BigO_ has joined #ruby
dankest has joined #ruby
ner0x has quit [Quit: Leaving]
[1]SoonerBourne has joined #ruby
SoonerBourne has quit [Ping timeout: 244 seconds]
[1]SoonerBourne is now known as SoonerBourne
rockets has joined #ruby
dmiller_ has quit [Ping timeout: 264 seconds]
skcin7 has quit [Quit: Computer has gone to sleep.]
hsbt_away is now known as hsbt
jxriddle has quit [Ping timeout: 265 seconds]
BigO_ has quit [Ping timeout: 246 seconds]
<bean> Solnse:
<reppard> Solnse: what are you passing to the method?
<bean> reppard: my gist fixes it for him already :p
FredLe has quit [Quit: Leaving.]
<reppard> oh alright
<reppard> haha
<reppard> didnt see that in the network noise
atno has joined #ruby
<bean> loll, except i think it doesn't
<bean> one sec.
thufir_ has joined #ruby
otters has joined #ruby
pwelch_ has joined #ruby
pwelch_ has quit [Client Quit]
<bean> Solnse: https://gist.github.com/4289155 << reppard
<thufir_> I'm getting started with Net::IMAP and would like to parse some e-mails. Just to start with, maybe iterate the inbox and move each message to another folder?
jxriddle has joined #ruby
bel3atar has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
pwelch has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
sjuxax has joined #ruby
meskyanichi has quit [Quit: Linkinus - http://linkinus.com]
bigmcq77_ is now known as bigmcq77
rockets has quit [Ping timeout: 250 seconds]
Or6itz has quit [Remote host closed the connection]
<reppard> hmmm
<reppard> why does he have to convert a string to a string?
darthdeus has joined #ruby
<bean> reppard: it was the %w{ a e i o u } that doesnt work
Giorgio has joined #ruby
<bean> can't give .include? a array
ltsstar has joined #ruby
gilbert1 has quit [Read error: Connection reset by peer]
bel3atar has left #ruby ["Leaving"]
<atmosx> bean: result is an array?
<bean> ?
<bean> look at my 2nd gist.
<atmosx> result = "" <-
<bean> no, do you know what happens when you << a string?
<atmosx> no
<atmosx> what happens?
<bean> [14] pry(main)> test ="test"
<bean> => "test"
<bean> => "test really"
<bean> [15] pry(main)> test << " really"
sjuxax has left #ruby [#ruby]
<atmosx> ah, make sense.
<atmosx> I don't see the different from result = "blah" + @blah in your case though
<bean> there isnt one
<bean> i was just following his styler
<reppard> something like that no good?
<atmosx> k
Slivka has quit [Read error: Connection reset by peer]
<bean> reppard: yes that works as well :p I was just trying to follow Solnse 's style.
carlyle_ has joined #ruby
<reppard> ahh i gotcha +)
<reppard> i was going to say, you dont even really have to declare the variable at all
<reppard> haha
d34th4ck3r has quit [Ping timeout: 252 seconds]
thmzlt has quit [Remote host closed the connection]
<bean> yeah, I wasn't sure why @word = word.to_s
<bean> since it's likely coming in as a string anyways
carlyle has quit [Ping timeout: 245 seconds]
SwooshyCueb has quit [Ping timeout: 246 seconds]
hamfz_ has quit [Ping timeout: 265 seconds]
<Solnse> I declared the variable simply because I was trying to use the to_s
<Solnse> because of the error
<Solnse> reading docs on scan now... that will only apply to words that start with a vowel, not if a vowel is anywher ein the word, right?
rramsden has joined #ruby
u89 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 248 seconds]
ewag has quit [Ping timeout: 255 seconds]
tomsthumb has joined #ruby
<Solnse> hmm, looks like the example in the docs is scanning for boobs... a.scan(/(.)(.)/) {|x,y| print y, x }
<bean> lol
<bean> its scanning for groupings
medik has joined #ruby
<bean> of (.)
<bean> :p
medik has quit [Excess Flood]
<Solnse> :)
* slash_nick hopes it finds what it's looking for
tommyvyo_ has joined #ruby
medik has joined #ruby
atno has quit [Remote host closed the connection]
berserkr has quit [Quit: Leaving.]
<reppard> >> "Shat".scan(/[aeiou]/).empty?
<eval-in> reppard: Output: "" (http://eval.in/4645)
mmitchell has quit [Remote host closed the connection]
ltsstar has quit [Quit: ltsstar]
<reppard> that evals to true in irb
sepp2k1 has quit [Remote host closed the connection]
<reppard> er false
<reppard> so you dont have to test the number, you can just through .empty? on the end
atno has joined #ruby
<atno> yo
phipes has quit [Quit: phipes]
includex has joined #ruby
jtharris has quit [Quit: WeeChat 0.3.9.2]
<reppard> you can do something like that and its still pretty readable
<bean> yep
<reactormonk> >> p "Shat".scan(/[aeiou]/).empty?
<eval-in> reactormonk: Output: "false\n" (http://eval.in/4647)
axl_ has quit [Quit: axl_]
<reppard> haha thanks reactormonk
<reppard> forgot the p
<bean> >> p "test".scan(/[aeiou]/)
<Solnse> so is scan the preferred method to us for looking at what a string startswith/contains/ends with?
<eval-in> bean: Output: "[\"e\"]\n" (http://eval.in/4648)
<bean> >> p !"test".scan(/[aeiou]/).empty?
<eval-in> bean: Output: "true\n" (http://eval.in/4649)
<reactormonk> Solnse, you can look at the activesupport implenetations ;-)
<reactormonk> Solnse, actually, contains is =~
blacktulip has quit [Remote host closed the connection]
dmiller has joined #ruby
<reactormonk> Solnse, and begins /^.../ and ends /...$/
<Solnse> yes, thanks.
bwlang has left #ruby [#ruby]
<bean> you could write a monkey patch method on String for starts_with and ends_with :p
<bean> oh wait
<bean> start_with? exists
<bean> so does end_with?
<bean> lol
<reppard> haha
* bean is tired
<Solnse> and can I negate it with !scan(/[aeiou]/) ?
SwooshyCueb has joined #ruby
<bean> yep
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
rockets has joined #ruby
<reactormonk> bean, that's from activesupport, as mentioned
thufir_ has quit [Remote host closed the connection]
alanp_ has joined #ruby
alanp has quit [Read error: Connection reset by peer]
MasterIdler has quit [Quit: MasterIdler]
<bean> reactormonk: what, starts_with? / ends_with? naw thats in plain old String
robotmay has quit [Remote host closed the connection]
<Solnse> what about removing the first letter of the string?
carlyle_ has quit [Remote host closed the connection]
<reactormonk> bean, no, it's not
<reactormonk> >> "foo".starts_with? "f"
<eval-in> reactormonk: Output: "/tmp/execpad-94704b1aa512/source-94704b1aa512:1:in `<main>': undefined method `starts_with?' for \"foo\":String (NoMethodError)\n" (http://eval.in/4650)
<bean> ?
<reactormonk> >> "foo".start_with? "f"
<eval-in> reactormonk: Output: "" (http://eval.in/4651)
<reactormonk> bean, you win.
<reactormonk> those guys should learn some english...
<bean> loll
DrShoggoth has quit [Quit: Leaving]
dankest is now known as dankest|away
dankest|away is now known as dankest
<reppard> haha
<reppard> start_with sans the s
<bean> yep
yanq has joined #ruby
miskander has left #ruby [#ruby]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
Kuifje has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
adamnbowen has quit [Quit: Textual IRC Client: www.textualapp.com]
CamonZ has quit [Quit: Leaving...]
Juul has quit [Quit: boop!]
d2dchat has quit [Remote host closed the connection]
headius has joined #ruby
c0rn has joined #ruby
soyapi has quit [Quit: Ex-Chat]
rockets has quit [Ping timeout: 245 seconds]
slash_nick has quit [Quit: Lost terminal]
<Solnse> is this right for checking that it starts with a consonant? elsif word.scan(/^aeiou]/).count >= 1
<Solnse> the ^ negates the regex?
k_89 has quit [Ping timeout: 265 seconds]
arya_ has joined #ruby
apeiros_ has joined #ruby
CamonZ has joined #ruby
awarner has quit [Read error: Connection reset by peer]
nemesit has quit [Read error: Connection reset by peer]
<havenn> Trying to get Ruby higher on the FizzBuzz code golf leaderboard: https://www.hackerrank.com/fizzbuzz/leaderboard/challenges/fizzbuzz
lake2 has quit [Ping timeout: 255 seconds]
nemesit has joined #ruby
awarner has joined #ruby
<JDubs> Hey guys! o/
s0ber has quit [Remote host closed the connection]
s0ber has joined #ruby
arya has quit [Ping timeout: 244 seconds]
<reppard> wud up
neurotech has joined #ruby
<reppard> Solnse: the ^ specifies the start of a line
<reppard> Read up on some regex
kstephens has quit [Ping timeout: 264 seconds]
emmanuelux has joined #ruby
kstephens has joined #ruby
<JDubs> oops
otters has quit [Ping timeout: 264 seconds]
combataircraft has quit [Read error: Connection reset by peer]
combataircraft has joined #ruby
<bricker> is there an opposite of !str.empty? for a string ?
<heftig> the opposite of !str.empty? is str.empty?
<bean> havenn: I think it doesn't get much smaller than "1.upto(100){|i|puts"FizzBuzz#{i}"[i%3<1?0:i%5<1?4:8,i%15<1?8:4]}"
soyapi has joined #ruby
_alejandro has joined #ruby
otters has joined #ruby
hsbt is now known as hsbt_away
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
tommyvyo_ has joined #ruby
nanothief has joined #ruby
chord has joined #ruby
<chord> In ruby what is the idiomatic way to do RAII closing of for examples files
[1]SoonerBourne has joined #ruby
tomsthumb has quit [Quit: Leaving.]
<heftig> File.open("foobar") do |f| ... end
wargasm has quit [Ping timeout: 244 seconds]
<heftig> f is the File object, which will automatically be closed when control leaves the block
SoonerBourne has quit [Ping timeout: 245 seconds]
[1]SoonerBourne is now known as SoonerBourne
<heftig> (internally it uses ensure)
soyapi has quit [Client Quit]
<swarley> mmm ensure
atmosx has quit [Quit: And so the story goes…]
whowantstolivef1 has quit [Ping timeout: 245 seconds]
<heftig> as a last resort, files are also closed when they're cleaned up by the garbage collector
nanothief has quit [Ping timeout: 276 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
otters has quit [Ping timeout: 250 seconds]
combataircraft has quit [Quit: combataircraft]
baroquebobcat has joined #ruby
NobbZ is now known as NobbZ|away
NobbZ|away is now known as NobbZ|ZZzz
combataircraft has joined #ruby
itchyouch has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<reppard> anyone know how to scroll up the buffer in irssi
<reppard> i thought i did
nat2610 has joined #ruby
<bean> page up?
<bean> ctrl page up?
generalissimo has quit [Remote host closed the connection]
Giorgio has quit [Read error: Connection reset by peer]
<reppard> i'm on a macbook air
<reppard> no damn page up button
<reppard> im not use to this thing
<JDubs> lol
<JDubs> Your first problem is using a mac ;)
<reppard> haha
<JDubs> I kid, I kid...
<reppard> i've been on nix boxes forever but my new job got me this thing
<JDubs> kinda
<JDubs> oh nice, bought it for ya eh?
<JDubs> that's cool then
<JDubs> :)
<reppard> yeah
<reppard> apple has a decent product but i have some arguments
rockets has joined #ruby
<reppard> how can you base your kernel of bsd and not support ext filesystems?
zastern has quit [Remote host closed the connection]
<reppard> my damn external wont work unless i put fuse and all kinds of crap on this thing
<JDubs> I just don't know how they get people to pay such high prices...
<JDubs> reppard: really? that's crazy!
piotr_ has quit [Remote host closed the connection]
<JDubs> if I was going to spend that much on a laptop, I'd get a damn alienware ;)
<reppard> not to mention they have itunes for windows but no linux support
<reppard> not paying their dues
bean has quit [Quit: Computer has gone to sleep.]
<reppard> yeah no kidding JDubs
<reppard> ....
C0deMaver1ck has quit [Remote host closed the connection]
<reppard> a free one is nice though ;)
efrainolivares_ has joined #ruby
<reppard> its the 13 inch with a quad core and 8 gigs of ram
sn0wb1rd_ has joined #ruby
<reppard> could through arch on it ;)
ndboost has quit [Remote host closed the connection]
<JDubs> ewww 13 inch...so small :(
<JDubs> that would strain my eyes
epwhorl has joined #ruby
<JDubs> I'm using a 15' right now and it hurts my eyes...
<JDubs> 15"
<JDubs> Can't wait to get home to my 40 inch flatscreen for a monitor lol
<JDubs> xD
altious2 has quit [Ping timeout: 264 seconds]
yanq has quit [Ping timeout: 244 seconds]
<waxjar> damn, 40"
efrainolivares__ has joined #ruby
<reppard> i have a 40" samsung that makes a decent monitor =)
<waxjar> i got a tv that size but i'll take 13" over that
sn0wb1rd__ has joined #ruby
jlwestsr has joined #ruby
<reppard> right now i've got my raspberry pi owning the tv though
kirun_ has quit [Quit: Client exiting]
sn0wb1rd has quit [Ping timeout: 255 seconds]
sn0wb1rd__ is now known as sn0wb1rd
<JDubs> reppard: nice, how do you like the pi?
<JDubs> reppard: how well do they run?
efrainolivares has quit [Ping timeout: 255 seconds]
<JDubs> reppard: I was considering running one as an app server :)
<reppard> it runs 1080p video flawlessly
<Solnse> I can use .last to identify the last element in an array, right? I'm trying to add spaces between words unless its the last one, but I'm getting no spaces at all... https://gist.github.com/4289652
<reppard> its a little on the slow side with a full on gui running
efrainolivares_ has quit [Ping timeout: 260 seconds]
<DanBoy> reppard, give the mac a chance :P
sn0wb1rd_ has quit [Ping timeout: 250 seconds]
<reppard> but since the video decoding is done at the hardware level its awesome
<reppard> i just use it to stream media and it works beautifully
ryanf has quit [Ping timeout: 248 seconds]
ryanf has joined #ruby
<reppard> and i can ssh into it
<elaptics> Solnse: word.split(//).join(" ")
<reppard> 18:46:20 up 11 days, 25 min, 2 users, load average: 2.31, 1.82, 1.81 (from the pi)
yanq has joined #ruby
<elaptics> Solnse: oh, I think I might have misunderstood what you were askin
<Solnse> yeah the join won't work for my result
<reactormonk> Solnse, #join
<reppard> DanBoy: i had 2 powerbooks back in the day, i dont hate mac =)
<elaptics> Solnse: did you want to split a single word or multiple words?
<DanBoy> i actually got kind of pissed it didn't support ext as well
<Solnse> i want the method to work on a single word or on each word of multiple words if given.
<DanBoy> but after using linux as a desktop for 12 years and going to a mac i'll never go back
<DanBoy> i only use this linux box for idling on irc all day
<Solnse> so I split the incoming to a word_list, then wrap my method in a .each
stopbit has quit [Quit: Leaving]
rockets has quit [Ping timeout: 245 seconds]
banjara has quit [Ping timeout: 264 seconds]
<reactormonk> Solnse, you know you're appending them to the end of the array?
knoppix has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<reactormonk> oh, wait
<Solnse> result is a string, not array
<reactormonk> this stuff is ...
robotmay has joined #ruby
tyfighter has joined #ruby
eph3meral has joined #ruby
<reppard> DanBoy: I will always rock a nix box somewhere, at work we run 8 core redhat boxes with 16 gigs, id rather have one of those then this air
<Solnse> it all works on a single word, but now I can't seem to inject the spaces between words into the result String
yanq has quit [Client Quit]
<JDubs> reppard: that's smexy
freeayu has joined #ruby
<Solnse> result << " " unless word == word_list.last
<Solnse> is what I thought would work
<Solnse> so there is no trailing space
<DanBoy> ya i gotta have linux somewhere but i still love osx, i do just about everything in a terminal still tho
<DanBoy> to me its unix that actually works without a fuss
<Solnse> expected: "eatay iepay"
<Solnse> got: "eatayiepay" (using ==)
tomsthumb has joined #ruby
knoppix has quit [Quit: Leaving]
banjara has joined #ruby
seanstickle has joined #ruby
<Banistergalaxy> Hey stick
jlwestsr has quit [Quit: Ex-Chat]
<Banistergalaxy> Seanstickle Sup fren
hsbt_away is now known as hsbt
<seanstickle> Hullo
Raboo_ has joined #ruby
xandy is now known as xAndy
NiteRain has quit [Ping timeout: 246 seconds]
<gbchaosmaster> Solnse: #chomp to kill trailing whitespace.
darthdeus has quit [Quit: Leaving...]
<apeiros_> chomp removes newlines, not whitespace
<apeiros_> thinking of strip? or specifically lstrip?
juarlex_ has quit [Remote host closed the connection]
Raboo has quit [Ping timeout: 264 seconds]
<Solnse> gbchaosmaster: thanks... I just took that line out of the if statements and put it at the end of the iterator. works now, and cleaner that way.
ismaelabreu has joined #ruby