<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]
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
<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
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]
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]
<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
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
<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>
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|
<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]
<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>
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
<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]
<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)
<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
<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
<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
<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.
<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
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
<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>
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]
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
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.
<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
<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]
<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]
<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]
<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
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.
<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
<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
<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]
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]
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]
<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
<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]
<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.