apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
eykosioux has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
jonathanwallace has joined #ruby
hiyakashi has quit [Quit: お前は知りすぎた]
nomenkun has joined #ruby
mmitchell has quit [Remote host closed the connection]
brunoro has joined #ruby
slainer68 has joined #ruby
locriani has quit [Remote host closed the connection]
Raydiation has left #ruby [#ruby]
foo_ has quit [Quit: leaving]
locriani has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
Ortuna has joined #ruby
tockitj_ has quit [Ping timeout: 256 seconds]
emmanuelux has quit [Quit: emmanuelux]
DonRichie has quit [Ping timeout: 256 seconds]
locriani has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
ner0x has joined #ruby
tommyvyo has joined #ruby
jamesfung14 has joined #ruby
prk has quit [Remote host closed the connection]
johnrlive has joined #ruby
hidalgo has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 276 seconds]
tommyvyo has quit [Client Quit]
johnrlive has quit [Remote host closed the connection]
ndngvr has joined #ruby
<RiftyMcF3arless> everybody, quick question: chef or puppet, in your opinion? summary of why, too, if you could.
slainer68 has quit [Ping timeout: 248 seconds]
<joshu> is it ok to write if else if statements or should i write just if statements when the conditions need to be specified?
mrsolo has quit [Quit: Leaving]
ffranz has quit [Quit: Leaving]
<RiftyMcF3arless> joshu: depends what you're doing
codesoda has quit [Remote host closed the connection]
Olipro has quit [Remote host closed the connection]
<joshu> RiftyMcF3arless i'm writing a ruby script to parse email and the email comes in 4 specific types…i need to determine what type to know how to process it
<RiftyMcF3arless> well, there are so many paths you might take. im not even sure i understand your question
<RiftyMcF3arless> i would probably do if this == 'that', elsif this == 'otherthat', etc, else, end
zastern has quit [Remote host closed the connection]
<joshu> ok that's what i was thinking but wasn't sure whether to do it like that or should if this == that …… if this == notthat etc
LaPetiteFromage has quit [Quit: LaPetiteFromage]
robottinosino has quit [Quit: WeeChat 0.4.0]
<Xeago> RiftyMcF3arless: puppet unless you have 20 different server types, with more than 200 servers
<Xeago> puppet is just easier
tommyvyo has joined #ruby
<Xeago> joshu: also consider a switchcase
<joshu> the first condition is the TO header, the second condition is FROM header && Subject.. RiftyMcF3arless to provide some more detail
lushious has quit [Ping timeout: 252 seconds]
<RiftyMcF3arless> Xeago: thanks for the input. i've been reading up on chef all evening, and i really like its style, but i'll read into puppet more as well
arubin has joined #ruby
<Xeago> RiftyMcF3arless: chef is bigger
<Xeago> asin, it can do more
<Xeago> but it also forces you through more
jlast has quit [Remote host closed the connection]
<RiftyMcF3arless> Xeago: that's good, for scalability, as i'm learning this to do work for a client
<RiftyMcF3arless> and he already uses chef
<Xeago> then stick with chef
<Xeago> it is a fine piece of tooling
<RiftyMcF3arless> Xeago: also love a challenge ;)
GeissT has joined #ruby
<RiftyMcF3arless> it looks amazing
idkazuma has quit [Remote host closed the connection]
<RiftyMcF3arless> joshu: i think your best bet is to do if, elsif, elsif, elsif, else "something worng" end
<RiftyMcF3arless> etc
<joshu> RiftyMcF3arless Xeago interesting topic cause i'll be diving into that shortly as well
w|t has joined #ruby
<RiftyMcF3arless> joshu: good luck :D
<Xeago> btw, docker :)
<Xeago> docker.io
<joshu> hehe thanks. ok I'll do it like that RiftyMcF3arless
mixel has quit [Quit: mixel]
kornnflake_ has quit [Read error: Operation timed out]
Nuck has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 256 seconds]
tealmage has quit [Remote host closed the connection]
Nuck has joined #ruby
<joshu> RiftyMcF3arless how are you going to use chef/ puppet? cloud servers? linux only?
<havenwood> joshu: Are you matching them against regex? If so, how bout a case statement with regexes?
<RiftyMcF3arless> Xeago: docker lookin cool, what do you think of it?
Nisstyre-laptop has quit [Quit: Leaving]
<RiftyMcF3arless> joshu: not even sure to be honest, it's all for a client
<RiftyMcF3arless> dunno what his production server's running on
<RiftyMcF3arless> my job is essentially to build him a cookbook for easier deployment
jimg_ has quit [Remote host closed the connection]
mootpointer has joined #ruby
w|t has quit [Client Quit]
lushious has joined #ruby
tylersmith has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
<joshu> havenwood the email addresses I need to match against and the subjects are one of 4 types always
<joshu> very specific use case
<joshu> RiftyMcF3arless cool
emergion has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby
w|t has joined #ruby
wargasm has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
jamie_ca_ has joined #ruby
jamie_ca_ has quit [Client Quit]
zodiak has joined #ruby
emergion has joined #ruby
tommyvyo has quit [Quit:]
tjbiddle_ has joined #ruby
DanKnox_away is now known as DanKnox
emergion has quit [Client Quit]
codemonkey010101 has joined #ruby
jnoob22 has joined #ruby
m_3 has quit [Remote host closed the connection]
buscon has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
machuga is now known as machuga|away
kofno has joined #ruby
tjbiddle_ has quit [Ping timeout: 245 seconds]
wargasm1 has joined #ruby
Spooner has quit [Remote host closed the connection]
atno has quit [Ping timeout: 256 seconds]
wargasm has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
devtro_ has quit [Quit: devtro_]
Dummies_freelanc has quit [Quit: Leaving.]
nga4 has quit [Read error: Operation timed out]
BonSequitur has quit [Ping timeout: 252 seconds]
johnrlive has joined #ruby
BonSequitur has joined #ruby
nlv has joined #ruby
brianpWins has quit [Quit: brianpWins]
idkazuma has joined #ruby
gr4yscale has quit [Quit: Computer has gone to sleep.]
m_3 has joined #ruby
<joshu> do you guys have a preference for using a yml config file versus a .env file to keep specific variables private?
Proshot has quit [Quit: Leaving]
P1RATEZ has quit [Ping timeout: 240 seconds]
pskosinski has quit [Quit: pskosinski]
cj3kim has joined #ruby
bradhe_ has quit [Remote host closed the connection]
johnrlive has quit [Ping timeout: 252 seconds]
brian_000__ has joined #ruby
mosez has quit [Ping timeout: 260 seconds]
mosez has joined #ruby
d11wtq has joined #ruby
benlieb has quit [Quit: benlieb]
buscon has quit [Remote host closed the connection]
russfrank has quit [Remote host closed the connection]
brian_000_ has quit [Ping timeout: 276 seconds]
cj3kim has quit [Ping timeout: 248 seconds]
johnrlive has joined #ruby
gommo has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
kil0byte has joined #ruby
mmitchell has joined #ruby
gommo has joined #ruby
yshh has joined #ruby
atno has joined #ruby
fschuindt has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
c0rn has quit [Quit: Computer has gone to sleep.]
gommo has quit [Ping timeout: 256 seconds]
pcarrier_ has joined #ruby
nomenkun has joined #ruby
Collin_ has quit [Ping timeout: 248 seconds]
texasmynsted has left #ruby [#ruby]
dhruvasagar has joined #ruby
lethan has joined #ruby
mosez has quit [Read error: Operation timed out]
mklappstuhl has quit [Remote host closed the connection]
atno has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
locriani has joined #ruby
twoism has quit [Remote host closed the connection]
lethan has quit [Remote host closed the connection]
lethan has joined #ruby
mklappstuhl has joined #ruby
lyanchih has joined #ruby
pkrzywicki_ has quit [Ping timeout: 245 seconds]
mosez has joined #ruby
locriani has quit [Ping timeout: 260 seconds]
mmitchell has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
Michae___ has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
Michae___ has joined #ruby
rakl has joined #ruby
atno has joined #ruby
rakl has quit [Client Quit]
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Guedes0 has joined #ruby
rupee has quit [Quit: Leaving]
yxhuvud has joined #ruby
Michae___ has quit [Ping timeout: 256 seconds]
mosez has quit [Ping timeout: 252 seconds]
mosez has joined #ruby
rakl has joined #ruby
nezumi has joined #ruby
Michae___ has joined #ruby
bricker`LA has joined #ruby
jkline has joined #ruby
bubblehead has joined #ruby
tealmage has joined #ruby
graydot has quit [Quit: graydot]
<wargasm1> can anyone provide browser extension installs?
<wargasm1> lots of $ to be made.
ravster has left #ruby [#ruby]
Rumsteak_ has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Rumsteak has quit [Ping timeout: 252 seconds]
Rumsteak_ is now known as Rumsteak
Michae___ has quit [Remote host closed the connection]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Michae___ has joined #ruby
dhruvasagar has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
jbueza has left #ruby [#ruby]
tommyvyo has joined #ruby
brian_000__ has quit [Quit: Leaving]
brianherman has joined #ruby
brunoro has quit [Read error: Connection reset by peer]
codemonkey010101 has quit [Remote host closed the connection]
nlv has quit [Remote host closed the connection]
Michae___ has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
Michae___ has joined #ruby
moos3 has joined #ruby
codemonkey010101 has joined #ruby
atno has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
Cooler__off has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
rupee has joined #ruby
tjbiddle_ has joined #ruby
nlv has joined #ruby
jimg has joined #ruby
rupee has quit [Client Quit]
lyanchih has quit [Quit: lyanchih]
<RiftyMcF3arless> anybody know about specifying a column type using the Sequel gem that doesnt (seem to) have an option? i need to set a column to 'LONGBLOB', as 'BLOB' won't fit all my data. other ideas are welcome, too.
d2dchat has joined #ruby
mockra has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 245 seconds]
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
dpatel has quit [Quit: dpatel]
<RiftyMcF3arless> in fact, it's only a MEDIUMBLOB i need
<RiftyMcF3arless> but i can't figure out how to do this
pipework has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
jimg has quit [Ping timeout: 245 seconds]
<RiftyMcF3arless> oops -- think i found the answer. thanks anyway, guys. (for those curious, it is the :size option, :size=>:medium).
tommyvyo has quit [Quit:]
brianpWins has quit [Quit: brianpWins]
apok has quit [Quit: apok]
brian_000_ has joined #ruby
brian_000_ has quit [Client Quit]
tjbiddle has quit [Quit: tjbiddle]
brian_000_ has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
brian_000_ has quit [Client Quit]
undersc0re97 has quit [Quit: WeeChat 0.4.0]
dhruvasagar has quit [Ping timeout: 246 seconds]
banister`shop is now known as banister`sleep
ttt has joined #ruby
kil0byte has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
AndChat| has joined #ruby
Michae___ has quit [Remote host closed the connection]
Ortuna has joined #ruby
gommo has joined #ruby
pitzips has quit [Ping timeout: 264 seconds]
johnrlive has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
rickruby has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
Michae___ has joined #ruby
Rumsteak has quit [Quit: Rumsteak]
splittingred has joined #ruby
Hanmac2 has quit [Ping timeout: 276 seconds]
BSaboia has joined #ruby
gommo has quit [Remote host closed the connection]
Domon has joined #ruby
gommo has joined #ruby
cj3kim has joined #ruby
tylersmith has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
<chiel> in a ruby project (sinatra specifically, if it matters), is there any convention on where the source files for frontend code should go?
w|t has joined #ruby
<chiel> basically i will have some scss source files, so i'd like to have those output into ./public... just curious if there is any convention about source files
chile_andes has joined #ruby
bradhe has joined #ruby
Xeago has quit [Remote host closed the connection]
ttt_ has joined #ruby
Vivekananda has quit [Remote host closed the connection]
nomenkun has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
Michae___ has quit [Remote host closed the connection]
zeade has joined #ruby
Michae___ has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
nwertman has joined #ruby
pevjan has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 276 seconds]
huoxito has joined #ruby
guiocavalcanti has joined #ruby
pevjan has joined #ruby
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graydot has quit [Quit: graydot]
undersc0re97 has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
codemonkey010101 has quit [Remote host closed the connection]
pcarrier_ has quit [Ping timeout: 240 seconds]
Michae___ has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
Michae___ has joined #ruby
Michae___ has quit [Remote host closed the connection]
chrishunt has quit [Quit: ZzZzZz...]
Michael_ has joined #ruby
robustus has joined #ruby
pcarrier_ has joined #ruby
chrishunt has joined #ruby
ariedler has joined #ruby
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
Michael_ has quit [Remote host closed the connection]
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
Astral_ has joined #ruby
greenarrow has joined #ruby
Michael_ has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
juco has quit []
johnrlive has joined #ruby
chile_andes has joined #ruby
tealmage has joined #ruby
baba has joined #ruby
megha has quit [Ping timeout: 248 seconds]
ner0x has quit [Quit: Leaving]
Astralum has quit [Ping timeout: 256 seconds]
RiftyMcF3arless has quit [Ping timeout: 256 seconds]
Gooder has joined #ruby
v0n has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
baba has quit [Ping timeout: 260 seconds]
brunoro has joined #ruby
roadt has quit [Ping timeout: 248 seconds]
krz has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
pevjan has quit [Remote host closed the connection]
gommo_ has joined #ruby
Michael_ has quit [Remote host closed the connection]
robert_ has quit [Ping timeout: 256 seconds]
baba has joined #ruby
gommo has quit [Ping timeout: 256 seconds]
machuga|away is now known as machuga
dhruvasagar has quit [Ping timeout: 276 seconds]
RiftyMcF3arless has joined #ruby
dhruvasagar has joined #ruby
rgrinberg has quit [Ping timeout: 276 seconds]
lethan has quit [Remote host closed the connection]
marcdel_ has joined #ruby
orangerobot has joined #ruby
machuga is now known as machuga|away
tealmage has quit [Remote host closed the connection]
C0deMaver1ck has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
C0deMaver1ck has joined #ruby
jwang has quit [Quit: Leaving]
C0deMaver1ck is now known as Guest60076
d2dchat has quit [Remote host closed the connection]
arya has joined #ruby
jamesfung14 has quit [Ping timeout: 248 seconds]
elkclone has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
ariedler has quit [Remote host closed the connection]
nlv has quit [Remote host closed the connection]
locriani has joined #ruby
w|t has joined #ruby
travisjeffery has joined #ruby
dankest has joined #ruby
peterhu has joined #ruby
wargasm1 has quit [Ping timeout: 252 seconds]
travisjeffery has quit [Read error: Connection reset by peer]
locriani has quit [Ping timeout: 248 seconds]
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
bigmac has joined #ruby
_cheney3 has joined #ruby
bubblehead has quit [Remote host closed the connection]
bubblehead has joined #ruby
nomenkun has joined #ruby
LucidDreamZzZz has joined #ruby
ry4nn_ has joined #ruby
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kstephens_ has joined #ruby
kil0byte has joined #ruby
pevjan has joined #ruby
xargoon_ has joined #ruby
sixteneighty has joined #ruby
Grognor has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
<Grognor> I have no idea why symbols = strings.each { |x| x.to_sym }
Nigel_ has joined #ruby
<Grognor> isn't working, and what else it might be doing.
mnemon2 has joined #ruby
flori_ has joined #ruby
marwinis1 has joined #ruby
nyuszika7h has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
darkapex_ has joined #ruby
dr_Poggs has joined #ruby
icedp has joined #ruby
rgoodwin_ has joined #ruby
peteyg_ has joined #ruby
airtonix_ has joined #ruby
rawler has joined #ruby
G has quit [Disconnected by services]
<bnagy> so each iterates over a collection and does something
Nigel_ is now known as G
rickruby has quit [Remote host closed the connection]
prk has joined #ruby
<bnagy> map iterates over a collection and applies some kind of transform to each element
oz` has joined #ruby
nyuszika7h has joined #ruby
z_ has joined #ruby
ssvo_ has joined #ruby
weeb1e_ has joined #ruby
rcs_ has joined #ruby
jaybe_ has joined #ruby
z_ is now known as Guest11598
<bnagy> >> %w( a b c ).each &:to_sym
<eval-in> bnagy => ["a", "b", "c"] (http://eval.in/30478)
waxjar_ has joined #ruby
<bnagy> >> %w( a b c ).map &:to_sym
<eval-in> bnagy => [:a, :b, :c] (http://eval.in/30479)
monomyth has joined #ruby
<Grognor> "does something" what is it doing, in this case, if it's not turning the strings to symbols?
<arubin> Grognor: It does.
<bnagy> it is, but that result is not being used for anything
<arubin> It does not return it.
gregorg_taf has joined #ruby
<Grognor> the instructions specifically say to use .each
mksm has joined #ruby
Gate_ has joined #ruby
mksm is now known as Guest26259
eka has quit [Quit: Computer has gone to sleep.]
Guest60076 has quit [Ping timeout: 245 seconds]
kstephens has quit [Ping timeout: 245 seconds]
xargoon has quit [Ping timeout: 245 seconds]
bakingbread has quit [Ping timeout: 245 seconds]
darkapex has quit [Ping timeout: 245 seconds]
SeySayux_ has quit [Ping timeout: 245 seconds]
flori has quit [Ping timeout: 245 seconds]
zeeraw has quit [Quit: Computer has gone to sleep.]
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
LucidDreamZzZ has quit [Ping timeout: 245 seconds]
sixtenei1hty has quit [Ping timeout: 245 seconds]
_kkh has quit [Ping timeout: 245 seconds]
rgoodwin has quit [Ping timeout: 245 seconds]
ry4nn has quit [Ping timeout: 245 seconds]
weeb1e has quit [Ping timeout: 245 seconds]
airtonix has quit [Ping timeout: 245 seconds]
rawler_ has quit [Ping timeout: 245 seconds]
rcs has quit [Ping timeout: 245 seconds]
gregorg has quit [Ping timeout: 245 seconds]
oz has quit [Ping timeout: 245 seconds]
cschneid has quit [Ping timeout: 245 seconds]
marwinism has quit [Ping timeout: 245 seconds]
ssvo has quit [Ping timeout: 245 seconds]
drPoggs has quit [Ping timeout: 245 seconds]
Apocalypse has quit [Ping timeout: 245 seconds]
ShapeShifter499 has quit [Ping timeout: 245 seconds]
peteyg has quit [Ping timeout: 245 seconds]
waxjar has quit [Ping timeout: 245 seconds]
mnemon has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
[Neurotic] has quit [Ping timeout: 245 seconds]
jaybe has quit [Ping timeout: 245 seconds]
z has quit [Ping timeout: 245 seconds]
Guest85414_ has quit [Ping timeout: 245 seconds]
Rix has quit [Ping timeout: 245 seconds]
malou_ has quit [Ping timeout: 245 seconds]
mksm_ has quit [Ping timeout: 245 seconds]
monomyth_ has quit [Ping timeout: 245 seconds]
xargoon_ is now known as xargoon
kstephens_ is now known as kstephens
oz` is now known as oz
blandflakes has quit [Ping timeout: 245 seconds]
C0deMave- has joined #ruby
Apocalypse has joined #ruby
Gate has quit [Ping timeout: 245 seconds]
sn0wb1rdz_ has quit [Ping timeout: 245 seconds]
Mekkis has quit [Ping timeout: 245 seconds]
rgoodwin_ is now known as rgoodwin
rcs_ is now known as rcs
<tylersmith> Grognor: they say to ADD the symbols to the array
<bnagy> then it probably wants you to put them in a second array
SeySayux has joined #ruby
BombStrike has quit [Ping timeout: 245 seconds]
<bnagy> cause you can't* modify elements with each
Rix has joined #ruby
<bnagy> *sometimes can
<tylersmith> strings.each{|s| strings << s.to_sym}
<tylersmith> not sure if that'd work
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
woolite64_ has joined #ruby
_kkh has joined #ruby
sn0wb1rdz has joined #ruby
<tylersmith> strings.dup....
Mekkis has joined #ruby
<Grognor> this course hasn't introduced << yet, so I don't know what that means.
<Grognor> nor .dup
Emmanuel_Chanel has joined #ruby
<bnagy> >> syms=[]; %w(a b c).each {|s| syms << s.to_sym}; p syms
<eval-in> bnagy => [:a, :b, :c] ... (http://eval.in/30480)
cschneid has joined #ruby
blandflakes has joined #ruby
ShapeShi- has joined #ruby
peterhu has quit [Ping timeout: 264 seconds]
BombStrike has joined #ruby
woolite64 has quit [Ping timeout: 276 seconds]
<arubin> Grognor: How about push?
InFlames has quit [Ping timeout: 246 seconds]
<Grognor> that's what it suggests but I don't actually know how to use it or what it does
RiftyMcF3arless has quit [Ping timeout: 246 seconds]
<Grognor> I tried x.to_sym.push but that's some kind of error
InFlames has joined #ruby
<Grognor> (man this channel really needs to hide joins and quits)
<bnagy> >>[].push 1
<eval-in> bnagy => [1] (http://eval.in/30481)
<arubin> Grognor: Your client does that, not the channel.
tjbiddle has joined #ruby
dylankendal has joined #ruby
<Grognor> gracias
rakl has quit [Quit: sleeping]
bigkm has joined #ruby
dylankendal has quit [Client Quit]
arya_ has joined #ruby
ehaliewicz has joined #ruby
arya has quit [Ping timeout: 248 seconds]
jaybe_ is now known as jaybe
sambao21 has joined #ruby
<Grognor> I still don't know how to use push in this context but I cheated and used .map because that exercise is obviously stupid
<Grognor> do correct me if I'm wrong
<bnagy> I would use map
<arubin> Grognor: Using map is the better solution.
<arubin> But you should understand how to do it with each and push.
w400z has joined #ruby
Guedes0 has quit [Ping timeout: 245 seconds]
<Grognor> where does the push go? it seems to want to go at the end of an array and take something as an input
<Grognor> argument, to be precise
<arubin> Well, which array do you wish to add to?
<Grognor> symbols
<arubin> So how would you call the push method on the array symbols?
<Grognor> symbols.push(!?!??)
<arubin> Yes.
C0deMave- is now known as C0deMaver1ck
mockra has joined #ruby
philcrissman has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
<Grognor> will ruby automatically make symbols an array if that happens or would I have to do symbols = [] first
C0deMaver1ck is now known as Guest83662
<bnagy> the latter
<bnagy> also, there's a scope and visibility thing - variables you declare inside the { block } won't be visible after the map operation is finished
<bnagy> so you need to declare your symbols array before you do your map
<Grognor> I still don't know how to do the thing
w|t has quit [Quit: Computer has gone to sleep.]
<arubin> Grognor: What is your guess?
<Grognor> my first guess was to put that whole block of code as the argument and that didn't work so I am out of ideas
<Grognor> also that seems to have created an array with an array as its sole element
rezzack has quit [Ping timeout: 260 seconds]
nlv has joined #ruby
katsrc has quit [Quit: leaving]
w|t has joined #ruby
mockra has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 248 seconds]
kofno has quit [Remote host closed the connection]
heftig has joined #ruby
matti has quit [Read error: Operation timed out]
<Grognor> oh, I got it
felixjet has joined #ruby
<Grognor> I can just call symbols in the code block. it's already created
<Grognor> now I understand why the instructions divided that into two steps
jonathanwallace has quit [Ping timeout: 248 seconds]
fschuindt has quit [Quit: Computer has gone to sleep.]
timkohrumel has joined #ruby
arya has joined #ruby
SeySayux has quit [Ping timeout: 269 seconds]
Villadelfia has quit [Ping timeout: 264 seconds]
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
pevjan has quit [Remote host closed the connection]
SeySayux has joined #ruby
Villadelfia has joined #ruby
dhruvasagar has joined #ruby
alexgordon has quit [Quit: Computer has gone to sleep.]
tealmage has joined #ruby
bradhe has joined #ruby
superscott[8] has joined #ruby
cooldman224 has quit [Remote host closed the connection]
tealmage has quit [Read error: Operation timed out]
w|t has quit [Ping timeout: 256 seconds]
lewix has quit [Remote host closed the connection]
yacks has joined #ruby
ChrisBolton has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
w|t has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 260 seconds]
w400z has joined #ruby
cj3kim has quit [Remote host closed the connection]
<ChrisBolton> Need some help. I'm trying to return a boolean from line 7, currently an empty array returns true … https://gist.github.com/Iknewthisguy/5589267
johnrlive has quit [Remote host closed the connection]
banghouse has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby
arya has joined #ruby
pevjan has joined #ruby
AxonetBE has joined #ruby
cj3kim has joined #ruby
pipework has joined #ruby
TomRone_ has quit [Read error: Connection reset by peer]
bigkm has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
TomRone has joined #ruby
AxonetBE has left #ruby [#ruby]
nomenkun has joined #ruby
pipework has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
bigkm has joined #ruby
<ChrisBolton> Thanks arubin
nomenkun has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
gr4yscale has joined #ruby
xpen has joined #ruby
w400z has quit []
saarinen has joined #ruby
grobb has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
sambao21 has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
timkohrumel has quit [Remote host closed the connection]
pevjan has quit [Remote host closed the connection]
arya has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Ping timeout: 245 seconds]
w|t has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
w|t has quit [Client Quit]
mklappstuhl has joined #ruby
rickruby has joined #ruby
chandankumar has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
pcarrier_ has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
rippa has joined #ruby
tommyvyo has quit [Quit:]
BizarreCake has joined #ruby
pcarrier_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
splittingred has quit [Quit: splittingred]
codesoda has joined #ruby
Yakko has joined #ruby
kofno has joined #ruby
w|t has joined #ruby
natevick has joined #ruby
keyvan has joined #ruby
keyvan is now known as lovclrtxt
aaronmacy has joined #ruby
nga4 has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
mad_hatter_ has joined #ruby
elkclone has quit [Ping timeout: 252 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
memborsky has quit [Quit: Lost terminal]
kofno has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
jonathanwallace has joined #ruby
arya has joined #ruby
arubin has quit [Quit: sleep]
connor_goodwolf has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
dross has quit [Ping timeout: 264 seconds]
s00pcan_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
c0smic has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
s00pcan has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Ping timeout: 252 seconds]
pevjan has joined #ruby
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
c0smic has left #ruby [#ruby]
arya_ has joined #ruby
sayan has joined #ruby
Heero has quit [Read error: Connection reset by peer]
Heero has joined #ruby
freerobby has quit [Quit: Leaving.]
orangerobot has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0/20130329030848]]
AlbireoX has joined #ruby
Domon has quit [Remote host closed the connection]
tonini has joined #ruby
dross has joined #ruby
connor_goodwolf has joined #ruby
arya has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
mattbl has joined #ruby
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
meh` has joined #ruby
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
corehook has joined #ruby
girija has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
pevjan has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
pevjan has joined #ruby
nomenkun has joined #ruby
MrZYX is now known as MrZYX|off
superscott[8] has quit [Quit: HydraIRC -> http://www.hydrairc.com <- \o/]
arya has joined #ruby
yannis has joined #ruby
johnrlive has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
dnyy has joined #ruby
gr4yscale has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
codecop has joined #ruby
[Neurotic]_ has joined #ruby
Heero has quit [Ping timeout: 264 seconds]
Guest85414_ has joined #ruby
nwertman has quit [Ping timeout: 276 seconds]
blacktulip has joined #ruby
johnrlive has quit [Ping timeout: 252 seconds]
s00pcan_ has quit [Ping timeout: 252 seconds]
brunoro has quit [Quit: WeeChat 0.3.8]
guiambros has left #ruby ["Leaving"]
paul has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
DonRichie has quit [Quit: Verlassend]
Zolo has quit [Remote host closed the connection]
Zolo has joined #ruby
baba has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
S1kx has joined #ruby
S1kx has joined #ruby
paul has joined #ruby
Zolo has quit [Ping timeout: 240 seconds]
pevjan has quit [Remote host closed the connection]
baba has joined #ruby
pevjan has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
timkohrumel has joined #ruby
ananthakumaran has joined #ruby
mneorr has joined #ruby
timkohrumel has quit [Ping timeout: 248 seconds]
xpen has quit [Remote host closed the connection]
Domon has joined #ruby
wallerdev has quit [Quit: wallerdev]
matti has joined #ruby
matti has joined #ruby
matti has quit [Changing host]
dhruvasagar has quit [Ping timeout: 246 seconds]
echevemaster has joined #ruby
nga4 has quit []
sayan has quit [Ping timeout: 256 seconds]
fryguy has quit [Read error: Operation timed out]
Eth4n has joined #ruby
Eth4n has quit [Client Quit]
fryguy has joined #ruby
Eth4n has joined #ruby
undersc0re97 has quit [Quit: WeeChat 0.4.0]
Eth4n is now known as undersc0re97
pevjan has quit [Ping timeout: 260 seconds]
undersc0re97 has quit [Client Quit]
w|t has quit [Quit: Computer has gone to sleep.]
pevjan has joined #ruby
tagrudev has joined #ruby
phipes has joined #ruby
undersc0re97 has joined #ruby
w|t has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Vert has quit [Read error: Connection reset by peer]
undersc0re97 has quit [Client Quit]
undersc0re97 has joined #ruby
<undersc0re97> ugh
<undersc0re97> oops wrong channel
ChrisBolton has quit [Quit: ChrisBolton]
workmad3 has joined #ruby
arya has joined #ruby
AgentWillyWonka has joined #ruby
breakingthings has quit [Quit: breakingthings]
AgentWillyWonka has quit [Client Quit]
mahmoudimus has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
threesome has joined #ruby
gommo_ has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
gommo has joined #ruby
ehaliewicz has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
AlHafoudh has joined #ruby
Sigma00 has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
chrishough has joined #ruby
nomenkun has quit [Remote host closed the connection]
mogsy has quit [Read error: Connection reset by peer]
Dummies_freelanc has joined #ruby
undersc0re97 has quit [Quit: Leaving]
sayan has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
mogsy has joined #ruby
hamakn has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
SAUCYSALAMANDER has quit [Read error: Connection reset by peer]
SAUCYSALAMANDER has joined #ruby
davidboy has quit [Quit: Connection closed for inactivity]
mattbl has quit [Ping timeout: 245 seconds]
sami has joined #ruby
bradhe has quit [Remote host closed the connection]
ayaz has joined #ruby
cj3kim has quit [Remote host closed the connection]
mattbl has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
noop has joined #ruby
corehook has quit [Ping timeout: 245 seconds]
noop has quit [Read error: Connection reset by peer]
noop has joined #ruby
xpen has joined #ruby
LucidDreamZzZ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
LucidDreamZzZz has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
arya has joined #ruby
LucidDreamZzZz has joined #ruby
sayan has joined #ruby
jprovazn has joined #ruby
corehook has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
LucidDreamZzZ has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
apeiros has joined #ruby
phipes has quit [Quit: phipes]
devoldmx has quit [Client Quit]
phipes has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
danslo has quit [Quit: danslo]
sleetdrop has joined #ruby
phipes has quit [Quit: phipes]
hamed_r has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
rakl has quit [Quit: sleeping]
tonini has quit [Ping timeout: 248 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
twoism has quit [Remote host closed the connection]
andikr has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
arya has quit [Ping timeout: 248 seconds]
teclator has quit [Read error: Operation timed out]
tjbiddle_ has joined #ruby
pduin has joined #ruby
tjbiddle_ has quit [Client Quit]
tjbiddle has quit [Ping timeout: 245 seconds]
banister`sleep has quit [Remote host closed the connection]
unstable has joined #ruby
<unstable> If I generate a new access token for an oauth system, will it be significantly slower than if I saved the token and reused it forever? (I'm talking about the yelp api). My code is here: http://pastie.org/7914761
AlHafoudh has quit [Quit: Computer has gone to sleep.]
threesome has quit [Ping timeout: 260 seconds]
ksmth has joined #ruby
predator217 has quit [Ping timeout: 256 seconds]
awc737 has quit [Read error: Operation timed out]
predator117 has joined #ruby
dhruvasagar has joined #ruby
Gooder` has joined #ruby
Gooder has quit [Ping timeout: 245 seconds]
girija has quit [Remote host closed the connection]
rafacv has quit [Remote host closed the connection]
generalissimo has joined #ruby
devoldmx has joined #ruby
girija has joined #ruby
Animawish has quit [Quit: Animawish]
tylersmith has quit [Remote host closed the connection]
Grognor has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
ezotrank has joined #ruby
mattbl has joined #ruby
aganov has joined #ruby
tonini has joined #ruby
generalissimo has quit [Remote host closed the connection]
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
tylersmith has quit [Ping timeout: 246 seconds]
gommo_ has joined #ruby
bigkevmcd has joined #ruby
aaronmacy has quit [Quit: Leaving.]
mafolz has joined #ruby
gommo has quit [Ping timeout: 256 seconds]
sideshowcoder has quit [Read error: Operation timed out]
nignaztic has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
huoxito has quit [Quit: Leaving]
tockitj_ has joined #ruby
sideshowcoder has joined #ruby
freerobby has joined #ruby
palyboy has quit []
cj3kim has joined #ruby
brtdv has joined #ruby
brtdv has quit [Read error: Connection reset by peer]
gommo_ has quit [Remote host closed the connection]
yannis has quit [Quit: yannis]
gommo has joined #ruby
devdazed has quit [Ping timeout: 240 seconds]
gommo has quit [Read error: Connection reset by peer]
gommo has joined #ruby
persand has joined #ruby
nomenkun_ has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
ilpuccio has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
nomenkun has quit [Ping timeout: 256 seconds]
w|t has joined #ruby
timonv has joined #ruby
pevjan has quit [Remote host closed the connection]
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
teclator has joined #ruby
AgentWillyWonka has joined #ruby
monkegjinni has joined #ruby
mklappstuhl has joined #ruby
nlv has quit [Remote host closed the connection]
schaerli has joined #ruby
devdazed has joined #ruby
mootpointer has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
mootpointer has joined #ruby
tibi has quit [Read error: Operation timed out]
whowantstolivefo has joined #ruby
k610 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ninegrid_ has quit [Quit: brb]
darkapex_ is now known as darkapex
darkapex has quit [Changing host]
darkapex has joined #ruby
marr has joined #ruby
bradhe has joined #ruby
threesome has joined #ruby
marwinis1 is now known as marwin
marwin is now known as marwinism
prk has quit [Remote host closed the connection]
alexmreis has joined #ruby
Coffers has joined #ruby
monkegjinni has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
ksmth has quit []
r0bglees0n has quit [Ping timeout: 245 seconds]
alexmreis has left #ruby [#ruby]
ninegrid has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
ezotrank- has joined #ruby
assurbanipal has joined #ruby
ezotrank- has quit [Client Quit]
daniel_- has joined #ruby
freerobby has joined #ruby
ezotrank has quit [Ping timeout: 252 seconds]
bigkevmcd has quit [Remote host closed the connection]
blaxter has joined #ruby
bigkevmcd has joined #ruby
elaptics`away is now known as elaptics
freerobby has quit [Ping timeout: 252 seconds]
backjlack has quit [Remote host closed the connection]
tockitj_ is now known as tockitj
tockitj has quit [Changing host]
tockitj has joined #ruby
LennyLinux has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
davout has joined #ruby
rdark has joined #ruby
jbpros has joined #ruby
buscon has joined #ruby
afd__ has joined #ruby
troessner has joined #ruby
bricker`1A has joined #ruby
slippyd has quit [Quit: slippyd]
niceguyjames has joined #ruby
w|t has joined #ruby
mattbl has joined #ruby
afd___ has joined #ruby
bricker`LA has quit [Ping timeout: 256 seconds]
yashshah has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
noname001 has joined #ruby
atno has joined #ruby
Kar- has joined #ruby
senayar has joined #ruby
monkegjinni has joined #ruby
yannis has joined #ruby
assurbanipal has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
monkegjinni has quit [Remote host closed the connection]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arturaz has joined #ruby
jgrevich has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
Proshot has joined #ruby
monkegjinni has joined #ruby
Hobogrammer_ has joined #ruby
afd___ has quit [Remote host closed the connection]
afd__ is now known as tibi
clocKwize has joined #ruby
ephemerian has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
Silent__ has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
yannis has quit [Quit: Bye!]
Alamo777_ has quit [Quit: Leaving]
Alina-malina has joined #ruby
julian-delphiki has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
sayan has quit [Read error: Connection reset by peer]
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
rickruby has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
Neomex has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
darkapex has left #ruby ["WeeChat 0.4.0"]
darkapex has joined #ruby
camilasan has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
timmow has joined #ruby
monkegjinni has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
slainer68 has joined #ruby
backjlack has joined #ruby
oxnard_ has joined #ruby
jbpros has quit [Quit: jbpros]
tonini has quit [Quit: Lost terminal]
Gu_______ has joined #ruby
tonini has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tvw has joined #ruby
monkegjinni has joined #ruby
Loaft has joined #ruby
jamesaxl has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
nomenkun has joined #ruby
slainer68 has joined #ruby
nomenkun has quit [Remote host closed the connection]
bradhe has joined #ruby
lewix has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
monkegjinni has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
krombr has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
Azulinho has joined #ruby
Grievre has joined #ruby
<Grievre> So I can't for the life of me figure out how to reference a method
<Grievre> like every attempt at doing so just calls the method and gives me its output
Soliah has quit [Ping timeout: 252 seconds]
<hoelzro> Grievre: what about method(name)?
arya has joined #ruby
zhomart has joined #ruby
<hoelzro> >> p = method(:puts); p.call('Hello!')
<eval-in> hoelzro => Hello! ... (http://eval.in/30489)
<Grievre> Ah that's how
<Grievre> neat
kevinykchan has quit [Read error: Connection reset by peer]
<hoelzro> =)
jbpros has joined #ruby
<zhomart> Hi
fumbe has quit [Ping timeout: 276 seconds]
<Grievre> hoelzro: Er, but... *headscratches*
kevinykchan has joined #ruby
<hoelzro> zhomart: ahoy
<Grievre> that's rather awkward syntax o.o
<zhomart> Does case/when call #is_a? method to check types?
cedric_b has joined #ruby
<hoelzro> zhomart: case/when uses ===
adambeynon has joined #ruby
<cedric_b> Hi o/
<hoelzro> Grievre: how so?
<hoelzro> cedric_b: hello
gommo has quit [Remote host closed the connection]
<hoelzro> I believe that Class#=== just calls is_a?
<zhomart> hoelzro: oh, yes. can you check this code? http://eval.in/30491
katsrc has joined #ruby
d11wtq has quit [Ping timeout: 245 seconds]
<Grievre> hoelzro: I dunno in every other language I've used you can just treat methods like anything else
<Grievre> you don't have to do anything special to stuff a method in a variable
Bosox20051 has joined #ruby
<hoelzro> zhomart: so, === for checking is_a only works with class objects, iirc
<cedric_b> I'am stuck with a method call arguments ( shame on me ) with this http://www.ruby-doc.org/stdlib-2.0/libdoc/xmlrpc/rdoc/XMLRPC/Client/Proxy.html the array args is greedy How can I specify the meth argument ?
<hoelzro> >> Array === Object
<eval-in> hoelzro => false (http://eval.in/30492)
<hoelzro> hmm
Villadelfia has quit [Read error: Connection reset by peer]
<hoelzro> ok, I may be wrong here
SeySayux has quit [Read error: Connection reset by peer]
<hoelzro> Grievre: well, Ruby's just different =)
<hoelzro> what other languages have you worked with?
<hoelzro> cedric_b: could you paste the code you're using?
LennyLinux has quit [Remote host closed the connection]
<zhomart> so case/when calls Array#=== to check types?
Al_ has joined #ruby
freerobby has joined #ruby
nomenkun has joined #ruby
<zhomart> in my example
<cedric_b> client.proxy(nil, [blah], :call_async)
<Grievre> hoelzro: python, scheme, common lisp, php, perl, javascript... it's not so easy in C of course, and assembly doesn't have "methods"
<hoelzro> well, it just calls === with the targets of when as the RHS
Bosox20051 has quit [Remote host closed the connection]
<hoelzro> Grievre: ok, so with Python and JS, you just need to grab the method directly
brtdv has joined #ruby
<Grievre> oh with common lisp it's in a different namespace
<hoelzro> Perl, you'd have to do something like my $method = $obj->can('name')
<hoelzro> and $method->(@args)
<cedric_b> The :asyn_call fall in the args array :(
Spami has joined #ruby
Spami has joined #ruby
<hoelzro> with Ruby, method calls don't required parens
<zhomart> I got this problem using rails, mongoid and simple_form. Where should I report this?
<hoelzro> zhomart: #rubyonrails
<Grievre> wait nested functions are unscoped in ruby :(
<Grievre> this makes me a sad panda
F1skr has joined #ruby
<zhomart> ty guys
<hoelzro> I wasn't aware you could nest functions in Ruby!
LennyLinux has joined #ruby
<Grievre> I don't know why anyone would make a programming language where you couldn't nest functions
monkegjinni has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
<cedric_b> Any clue hoelzro ?
<hoelzro> simplicity of implemenation? =)
<hoelzro> cedric_b: no, sorry
<hoelzro> I'm not familiar with XMLRPC
<cedric_b> damned
<cedric_b> this is not xmlrpc problem but method argument parsing one :
jamesaxl has quit [Ping timeout: 252 seconds]
freerobby has quit [Ping timeout: 252 seconds]
<Grievre> hoelzro: Nested functions aren't that hard to implement. We did it in the intro CS at my university
<Grievre> (I mean we did the easy-mode version but still it's not that hard)
monkegjinni has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
<k610> how should i update using rvm from ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
<k610> to ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
<k610> rvm get stable ; rvm install 2.0.0 ; rvm use 2.0.0 ?
zhomart has quit [Quit: Leaving]
Azulinho has quit [Quit: WeeChat 0.4.0]
Azulinho has joined #ruby
Neomex has joined #ruby
w|t has joined #ruby
monkegjinni has quit [Remote host closed the connection]
kais has joined #ruby
soukihei has quit [Ping timeout: 240 seconds]
soukihei has joined #ruby
Xeago has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
<cedric_b> ok nevermind i'll use object.instance_variable_set ...
jbpros has quit [Quit: jbpros]
fixl has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrCode_ has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
arturaz has quit [Remote host closed the connection]
arturaz has joined #ruby
DrCode_ is now known as DrCode
<hoelzro> cedric_b: that's probably a bad idea...
<hoelzro> I would try to figure out the right way
<hoelzro> see if you can find some more examples, perhaps
soukihei has quit [Read error: Operation timed out]
Bosox20051 has joined #ruby
soukihei has joined #ruby
brtdv has joined #ruby
marr has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 240 seconds]
thone has joined #ruby
thone_ has quit [Read error: Operation timed out]
wu_lmao has joined #ruby
freerobby has joined #ruby
brtdv has quit [Ping timeout: 248 seconds]
buscon has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 276 seconds]
KTMBoID has joined #ruby
SeySayux has joined #ruby
daniel_- has joined #ruby
<k610> what is Enable VirtIO (Beta) ?
Villadelfia has joined #ruby
<k610> sry
KTMBoID has quit [Remote host closed the connection]
Bosox20051 has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
hamed_r has quit [Quit: Leaving]
zeel has joined #ruby
maetthew- is now known as maetthew
zeeraw has joined #ruby
mklappstuhl has joined #ruby
oxnard_ has quit [Quit: This computer has gone to sleep]
Guest11598 has quit [Changing host]
Guest11598 has joined #ruby
Guest11598 is now known as z
cbreeze has joined #ruby
InFlames has joined #ruby
bradhe has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
Nuck has quit [Read error: Connection reset by peer]
BonSequitur has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 248 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
fmcgeough has quit [Quit: fmcgeough]
Domon has quit [Remote host closed the connection]
persand has quit [Quit: persand]
Nuck has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
gadgetoid has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
skattyadz has joined #ruby
braincrash has joined #ruby
jdripper has joined #ruby
swex_ has quit [Ping timeout: 245 seconds]
gadgetoid has joined #ruby
swex has joined #ruby
krombr has quit [Remote host closed the connection]
buibex has joined #ruby
freerobby has joined #ruby
lolmaus has joined #ruby
d11wtq has joined #ruby
katsrc has quit [Quit: leaving]
Raboo has joined #ruby
<lolmaus> When making complicated DB requests is too expensive, you do calculations when creating new DB entries and save the results of those calculations together with the entries. How is this technique called?
swex_ has joined #ruby
swex has quit [Ping timeout: 245 seconds]
<hoelzro> sounds like a poor-man's materialized view
mklappstuhl has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 248 seconds]
<lolmaus> hoelzro, some kind of caching maybe?
<hoelzro> hmm
<hoelzro> I dunno
<hoelzro> I just know that materialized views are what that's called when the DB does it for you
jdripper has quit [Ping timeout: 246 seconds]
<lolmaus> hoelzro, and when you do it in the app?
<hoelzro> see, I don't know what that's called
<hoelzro> other than "poor-man's materialized views" ;)
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
skattyadz has quit [Quit: skattyadz]
chichou has joined #ruby
marr has joined #ruby
<lolmaus> Let's say i want to dispay a number of pages that have at least 50 comments by people with at least 200 karma. Instead of running an expensive query each time a page is loaded, i store an integer value in the db. Whenever a comment is posted, i run a less expensive check to see whether this one article has reached the value (if it hasn't alreadY). If the check is positive, i increment the integer.
<lolmaus> Is this "poor man's materialized view"?
swex has joined #ruby
enriclluelles has joined #ruby
<hoelzro> sounds about right
mattbl has quit [Quit: This computer has gone to sleep]
baba has quit [Quit: WeeChat 0.4.0]
swex_ has quit [Ping timeout: 276 seconds]
nomenkun has quit [Ping timeout: 245 seconds]
Gooder`` has joined #ruby
helllen_ has joined #ruby
monkegjinni has joined #ruby
Gooder` has quit [Ping timeout: 256 seconds]
guiocavalcanti has quit [Remote host closed the connection]
arya has quit []
guiocavalcanti has joined #ruby
guiocavalcanti has quit [Ping timeout: 245 seconds]
Domon has joined #ruby
BSaboia has joined #ruby
Michael_ has joined #ruby
gauvoz has joined #ruby
DrCode has quit [Remote host closed the connection]
neataroni has quit [Ping timeout: 256 seconds]
kil0byte has quit [Remote host closed the connection]
Al_ has quit [Quit: Al_]
mklappstuhl has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Gu_______ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gauvoz has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 252 seconds]
DrCode has joined #ruby
ntus1017 has joined #ruby
mercwithamouth has joined #ruby
Neomex has quit [Quit: Neomex]
ntus1017 has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 245 seconds]
ntus1017 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
ntus1017 has joined #ruby
freerobby has joined #ruby
Al_ has joined #ruby
_bart has quit [Read error: Connection reset by peer]
jnoob22 has quit [Remote host closed the connection]
jdripper has joined #ruby
neataroni has joined #ruby
lwgtik has joined #ruby
mattbl has joined #ruby
includex has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
r0bglees0n has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
buibex has quit [Remote host closed the connection]
chase-work has joined #ruby
jprovazn has quit [Quit: Leaving]
fermion has joined #ruby
xpen has quit [Remote host closed the connection]
stnly_ has quit [Read error: Operation timed out]
monkegjinni has joined #ruby
monkegji_ has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
hems has quit [Quit: Leaving]
monkegjinni has quit [Read error: Connection reset by peer]
waxjar_ has quit [Ping timeout: 260 seconds]
sayan has joined #ruby
rking1 has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
thomasfedb has quit [Read error: Connection reset by peer]
ipalaus has joined #ruby
nomenkun has joined #ruby
cbreeze has quit [Quit: cbreeze]
buscon has joined #ruby
monkegjinni has quit [Remote host closed the connection]
bradhe has joined #ruby
Michael_ has quit [Remote host closed the connection]
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
buscon has quit [Remote host closed the connection]
Guest9074 is now known as jani
chichouw has joined #ruby
chichou has quit [Ping timeout: 276 seconds]
sayan has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 252 seconds]
ntus1017 has quit [Remote host closed the connection]
rgrinberg has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
machuga|away is now known as machuga
skattyadz has joined #ruby
chrishough has quit [Quit: chrishough]
monkegjinni has joined #ruby
jonathanwallace has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
sayan has joined #ruby
Spooner has joined #ruby
Hien has quit [Quit: "Update kernel"]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Domon has quit [Remote host closed the connection]
bollen has joined #ruby
Hien has joined #ruby
camilasan has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 252 seconds]
dustint has joined #ruby
robottinosino has joined #ruby
fschuindt has joined #ruby
F__i__L has joined #ruby
<F__i__L> hello
<hoelzro> hi
tonini has joined #ruby
<F__i__L> I am thinking to start learning a new language.. and I am between scala and ruby.. what is your opinion? :P
<hoelzro> hmm
<hoelzro> well, I would say learn both =)
<hoelzro> I've been meaning to learn Scala myself
<hoelzro> it's still on my TODO list somehwere
<F__i__L> I don't think that I have so much free time :P
<hoelzro> well, what's your reason for learning?
<hoelzro> fun?
<hoelzro> do you want to use the new language for something/
<F__i__L> to find a job in about 1-2 years :P
<hoelzro> heh
<hoelzro> well, I think there are probably more Ruby jobs...at least right now
<hoelzro> Scala is gaining some traction
<hoelzro> and just because there are more Ruby jobs doesn't mean that those jobs are better
<hoelzro> also, for any quality company, what language(s) you know shouldn't really matter
Matip has joined #ruby
guiocavalcanti has joined #ruby
rking1 has joined #ruby
<F__i__L> well in adverts they say for instance knwoledge of ruby/ ruby on rails
<F__i__L> or the say knowledge of scala is a really plus
<F__i__L> :P
<F__i__L> so I guess it would help
krz has quit [Quit: krz]
<hoelzro> well, you should know *some* language
<hoelzro> the more, the better
<hoelzro> candidates with a more diverse background in programming languages tend to do better in interviews
<hoelzro> at least, that's my experience
<F__i__L> anyway honestly I prefer rubby but the only thing that worries me is that it is a bit slow and moreover it does not support good multithreading
monkegjinni has joined #ruby
<hoelzro> it's not that slow
monkegjinni has quit [Remote host closed the connection]
<hoelzro> and I think that the lacking of multicore stuff is overblown
<hoelzro> anyway, lunch time
browndawg has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<bnagy> the concurrency thing is only a limitation of the 'standard' interpreter
<bnagy> jruby and rubinius both have 'true' concurrency
<r0bglees0n> MRI has it as well, when IO-bound or using subprocesses.
<r0bglees0n> and MRI is concurrent
<r0bglees0n> its just not always parallel
Mattix has quit [Ping timeout: 252 seconds]
<bnagy> blah blah blah
daniel_- has joined #ruby
<r0bglees0n> bnagy: well its true, MRI threads are concurrent, you're confusing parallelism.
<bnagy> that's why I put 'true' in quotes, to save painstakingly lengthy anti-pendantic language
skattyadz has quit [Quit: skattyadz]
<bnagy> and I'm not confusing anything
<bnagy> I'm explaining things, which is not the same
<r0bglees0n> okay, im not trying to defame you or anything, im just saying MRI threads really are concurrent if you go analyze the definition for concurrent programming.
<r0bglees0n> and when they're IO-bound, the lock is released.
yshh has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 246 seconds]
<bnagy> http://en.wikipedia.org/wiki/Concurrency_(computer_science) not that I really care about wikipedia
<bnagy> I am just giving it as an example of what 99% of people understand the term to mean
skattyadz has joined #ruby
sailias has joined #ruby
<bnagy> MRI does not do that
<r0bglees0n> but it is not right. go ask rob pike for a definition instead :)
<bnagy> I honestly don't care what whoever rob pike is thinks
<r0bglees0n> you're being so hostile because you're afraid to be wrong
browndawg has quit [Quit: Leaving.]
<r0bglees0n> well, thats your thing, im not going to put energy into it
<bnagy> when I explain something to some guy that is confused about ruby concurrency, I use easy to understand terms
kofno has joined #ruby
<bnagy> when it comes to definitions, though, I'd quite happily argue that any definition of 'true concurrency' that encompasses a GIL is anti-intuitive and stupid
thebastl has joined #ruby
jprovazn has joined #ruby
<r0bglees0n> well, they're not real threads in the sense that they're concurrent and don't (always) run in parallel on MRI. MRI will release the lock and let threads run in parallel if they're IO bound and not hitting ruby code.
<r0bglees0n> and there's also subprocesses if you want to hit more cores
<r0bglees0n> but i agree it is suboptimal
<bnagy> well, actually that's not my point - the GIL is there for good reasons, and I think scaling by process makes much more sense in most cases
<r0bglees0n> yeah but i dont know if it is there for 'good reasons'
<bnagy> well it makes C extensions possible
<r0bglees0n> it makes them easier
<r0bglees0n> i dont think it makes them possible
<bnagy> yeah, but MUCH easier :)
<bnagy> as in, you can't have full support without GIL afaik
<bnagy> like, will work for some, but not all
<arturaz> full support?
<r0bglees0n> a lot of extensions would break and I don't think MRI is ready to do that but the trade off is that you lose the notion of threads in another (JVM) languages in a world going toward multi-core
clocKwize has quit [Quit: clocKwize]
<r0bglees0n> MRI is trying to make it better for subprocesses with changes to its GC (CoW-friendly) but i dont think ppl are biting on subprocesses (generally).
<r0bglees0n> threads are more popular
<bnagy> yep
<bnagy> cexts are free to thread out to their hearts' content though
<r0bglees0n> but ruby code is not
<r0bglees0n> so, thats not good
<bnagy> right, but this is how python do numpy and stuff
<bnagy> you just have a call block at the ruby / python level but thread at the native level
<r0bglees0n> like Thread.new ? :)
<bnagy> still possibly not as nice as 'real' threads, but for almost all use cases the same
<bnagy> r0bglees0n: no, like true parallel computation
<r0bglees0n> sure, but that's more or less how thread.new works because you pass a ruby block that's executed on a native thread
clocKwize has joined #ruby
bollen has quit [Quit: Page closed]
<bnagy> but only one bytecode thread can run at a time
freerobby has joined #ruby
<r0bglees0n> but are you suggesting writing a C extension that can spawn ruby blocks on native threads for you?
sailias has quit [Quit: Leaving.]
<bnagy> no
<r0bglees0n> so how does numpy work?
<bnagy> I'm saying well written cexts for truly parallel sci-comp etc can use native threads
<r0bglees0n> oh yeah sure
<bnagy> like you say cthing.prime_factor( 23456789 )
lewix has quit [Remote host closed the connection]
<r0bglees0n> I know eventmachine has its own thread pool
sayan has quit [Read error: Connection reset by peer]
<r0bglees0n> but thats inaccessible to ruby
<bnagy> right
Al_ has quit [Quit: Al_]
freerobby has quit [Ping timeout: 256 seconds]
eka has joined #ruby
sleetdrop has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
<r0bglees0n> i guess C has always been the go-to for when ruby doesnt cut it
danslo has joined #ruby
<r0bglees0n> but ruby is a lot faster now, and could do more with threads.
guiocavalcanti has quit [Ping timeout: 245 seconds]
<r0bglees0n> and if you want to hack the interpreter(at least MRI), its C
<r0bglees0n> a lot of people have done that as well
<joonty> r0bglees0n: MRI's threading still has the GIL
<bnagy> I'm pretty much married to jruby now :/
<r0bglees0n> joonty: im aware my friend, scroll up :)
<joonty> r0bglees0n: so it's still only really useful when using IO
<bnagy> so much of my stuff is jruby only that it doesn't make sense to worry about MRI anymore
<joonty> ah just joined
<joonty> lol
jbpros has joined #ruby
<joonty> excuse me... :)
<r0bglees0n> no worries
<r0bglees0n> bnagy: im using rubinius
<bnagy> does it support 64 bit windows?
<r0bglees0n> nope
<bnagy> sigh
<r0bglees0n> i dont think it supports windows at all :(
fcofdezc has joined #ruby
<r0bglees0n> there was work on a port
<bnagy> not that it's a common requirement, but it's one I am stuck with
nomenkun_ has joined #ruby
<joonty> has anyone had experience with rubinius and rails? particularly in production?
rgrinberg has quit [Ping timeout: 245 seconds]
<r0bglees0n> nope
guiocavalcanti has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
<fcofdezc> nop
<r0bglees0n> MRI at work, always. not much experimentation on that side.
<joonty> yeh, same deal
nomenkun_ has joined #ruby
jamesaxl has joined #ruby
<joonty> a truly multi-threaded ruby app server for rubinius would be ace
<F__i__L> well what I hate about java and as a result scala is that there is little support for vim as most people use these heavy weighted IDEs so I guess I will go for ruby
<r0bglees0n> it exists
<r0bglees0n> a few of them exist
<r0bglees0n> there's puma, & there's reel
<F__i__L> also the built tools suck in java/scala
nomenkun has quit [Read error: Connection reset by peer]
Ortuna has joined #ruby
<joonty> r0bglees0n: nice, never knew about those
<arturaz> bnagy, jruby ftw :)
<F__i__L> but I have to admit that scala is going to be the next java over the next years
<arturaz> F__i__L, heh, lol. Ensime for scala?
<arturaz> also what exactly sucks about build tools?
yalue has joined #ruby
bradhe has joined #ruby
<F__i__L> they are very slow
guiocavalcanti has quit [Ping timeout: 240 seconds]
idkazuma has joined #ruby
XemsDoom has joined #ruby
<joonty> r0bglees0n: thanks
Al_ has joined #ruby
mishke has quit [Ping timeout: 252 seconds]
<r0bglees0n> joonty: and of course, https://github.com/celluloidrb/reel
<XemsDoom> is this a place to get support for ruby?
<r0bglees0n> yeah
<joonty> yup
<XemsDoom> have some issues with installing redmine and their IRC channel is pretty dead :p
<joonty> XemsDoom: shoot
<XemsDoom> I updated my debian to 'wheezy' and it damaged somehow my redmine, I think at the end a sql-gem was not working right. Then I whiped it off and tried to reinstall ruby and everything else
<XemsDoom> Now I am stuck with rake and rails not working probably
<XemsDoom> for example, this exception occurs when I query the version of rails http://hastebin.xemsdoom.com/rubogehiri.vbs
<joonty> XemsDoom: using aptitude ruby?
<XemsDoom> it is always this Gem:SourceIndex error
<XemsDoom> yes
<arturaz> F__i__L, are they? sbt incremental compilation is pretty awesome these days. 1-2 secs
<XemsDoom> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]$
<arturaz> [success] Total time: 64 s, completed May 16, 2013 2:28:24 PM <-- clean rebuilding of whole project. On i7 though
telemachus has joined #ruby
mishke has joined #ruby
<joonty> XemsDoom: when you wiped ruby, did you also wipe rubygems?
helllen_ has quit [Quit: helllen_]
skattyadz has quit [Quit: skattyadz]
<telemachus> Ruby's configure used to support options like --with-openssl-dir=whatever, no? The 1.9.3-p429 one does not.
<XemsDoom> I think it did, I am not sure though
yshh has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<XemsDoom> gem is on version 2.0.3
<joonty> i reckon most people here would use a ruby manager like rvm or rbenv
chandankumar has quit [Ping timeout: 264 seconds]
<XemsDoom> I read about it when searching for solutions on stackoverflow but I wanted to rather use aptidude :p
<telemachus> XemsDoom: Debian-based systems are a particular tricky issue with ruby.
<joonty> but I think your best bet would probably be a `apt-get remove ruby rubygems` and `apt-get purge ruby rubygems`
<telemachus> Is it a development machine or a server?
Rumsteak has joined #ruby
<XemsDoom> a server
<telemachus> ok, then as joonty says, but maybe s/apt-get/aptitude/ if you prefer that
<bnagy> I think you're fine with apt on an up to date server
<joonty> bnagy, XemsDoom: yeh apt is fine for ruby, as long as you don't need the bleeding edge or work with ruby every day
<XemsDoom> well I don't develop in Ruby so yeah
swex has quit [Remote host closed the connection]
<telemachus> Right, if it's just serving, agreed.
<bnagy> you should try and get the ruby 2.0 package though
tomzx_mac has joined #ruby
yshh has quit [Read error: Connection reset by peer]
<telemachus> Hmm. Not all gems are 2.0 friendly yet, are they?
<bnagy> 1.9 -> 2.0 is nowhere near as breaky as 1.8 -> 1.9 was
yshh has joined #ruby
<telemachus> Does anyone know how to get the equivalent of --with-openssl-dir (or --with-readline-dir) for newer Ruby config scripts?
<XemsDoom> well redmine is not compatible with ruby 2.0
<bnagy> telemachus: from what I hear it's almost a nobrainer drop in
<telemachus> Are those options just gone?
<XemsDoom> just from watching at the table on their site
<joonty> bnagy: thing is that if he had it working with 1.9 before, probably safer to stick with it
<XemsDoom> so you suggest I purge ruby and the then reinstall?
swex has joined #ruby
yashshah has joined #ruby
<telemachus> bnagy: Hasn't been my experience developing, but fair enough. I tried 2.0 and quickly backed off. Segfaults and broken gems.
jnoob22 has joined #ruby
jbpros has quit [Quit: jbpros]
<F__i__L> lol arturaz I am on an atom here :P anyway probably sbt is faster than maven and ant
<joonty> XemsDoom: well I do, but then I suggested it :)
<joonty> XemsDoom: I think it's the consensus
h8R has quit [Ping timeout: 256 seconds]
atno has quit [Remote host closed the connection]
<joonty> XemsDoom: as long as you haven't got anything else on the server using ruby, but then as you said you've already removed it once
<XemsDoom> just saw in their table, didn't read it rightly they have 2.0 support
<XemsDoom> I think grub is using ruby
<XemsDoom> because I wasnt able to purge ruby, it automatically kept installing another version
monkegjinni has joined #ruby
<bnagy> telemachus: yeah I don't use MRI, so I'm just summarising what I hear on here
<bnagy> XemsDoom: it will probably keep a system ruby
monkegji_ has joined #ruby
nettoweb has joined #ruby
ttt_ has quit [Remote host closed the connection]
<joonty> here's a question
<nettoweb> hello guys, i'm trying to create a widget "related news"… but it's my first time creating something like this. must I start wth https://github.com/mbleigh/acts-as-taggable-on
<nettoweb> ?
<joonty> is anyone here paid as a ruby programmer, but not in rails development?
ttt has joined #ruby
<bnagy> yes?
<joonty> bnagy: cool, that is all :)
monkegji_ has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
<joonty> do you use it for sys admin? or other fun things?
codemonkey010101 has joined #ruby
<joonty> nettoweb: you might find rails specific help in #rubyonrails
monkegjinni has quit [Ping timeout: 248 seconds]
<nettoweb> joonty: thanks
<joonty> np
<bnagy> joonty: finding bugs in software
<XemsDoom> I am more of a java programmer, did anyone here switch from java to ruby?
freerobby has joined #ruby
<joonty> bnagy: interesting
<ChristianS> XemsDoom: i use java in my dayjob
<joonty> all the rubyists I've come across are railsists
<bnagy> XemsDoom: no, but you should check out jruby :P
chandankumar has joined #ruby
<bnagy> if you know the java namespace you can use any native java stuff directly from ruby
<joonty> XemsDoom: +1 for jruby
<canton7> joonty, not me, and the same goes for a last a few others in here
<bnagy> plus use java profiling tools and stuff
<telemachus> nettoweb: or #railsbridge
flam_ has quit [Ping timeout: 246 seconds]
eph3meral has joined #ruby
sayan has joined #ruby
<eph3meral> so I can't seem to retrieve normal/shell based environment variables the way that this script suggests
<eph3meral> this script is using e.g. ENV['HOME'] for the home directory environment variable but it comes out blank
<eph3meral> I must add HOME=$HOME ruby myscript.rb before it works
<bnagy> probably there's just no env variable called HOME
<eph3meral> there definitely is
<eph3meral> if I `echo $HOME` on my bash command line
wargasm has joined #ruby
guiocavalcanti has joined #ruby
<eph3meral> I get /home/eph3meral as expected
freerobby has quit [Ping timeout: 240 seconds]
<hoelzro> eph3meral: so if you run ruby -e 'puts ENV["HOME"]', nothing is output?
<eph3meral> hoelzro: let me check
<hoelzro> eph3meral: that just means it could be a bash variable
<hoelzro> check the output of env
<XemsDoom> not having much luck here I must say
<joonty> XemsDoom: still the same problem?
<XemsDoom> yep
<eph3meral> hmm weird
<eph3meral> ok yeah I guess it is working
palyboy has joined #ruby
<bnagy> :)
<eph3meral> ahh this is a gem command
<hoelzro> eph3meral: so then something in your script could be removing it
<eph3meral> wonder if it's screwing the environment
<eph3meral> why it would remove ENV i don't know
<eph3meral> it's the `knife` utility from chef, actually
<XemsDoom> ah I guess bundler is not installed
<joonty> XemsDoom: that hastebin is taking forever to load for me
tommyvyo has joined #ruby
<joonty> I can see the logo
<joonty> it's such a tease
<XemsDoom> where ared you from?
<XemsDoom> "are
tonini has quit [Ping timeout: 248 seconds]
<joonty> England
<XemsDoom> weird
<XemsDoom> the server has a very good connection normally
<XemsDoom> ah maybe because I am installing something on the server :p
<joonty> got it
<XemsDoom> it's also loading slow for me now
devoldmx has quit [Ping timeout: 245 seconds]
<joonty> yeh that's bundler, `gem install bundler`
jamesaxl has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
tonini has joined #ruby
mboers has joined #ruby
ramblex has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<XemsDoom> Im asking myself why it always fails to install the json gem
ramblex has quit [Client Quit]
monkegjinni has joined #ruby
ramblex has joined #ruby
<joonty> the json gem possibly requires a C extension
jamesaxl has joined #ruby
<joonty> which I've always thought is a little over the top, for one of the more simple syntaxes out there
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
<telemachus> Ok, found my problem: the configure warnings are bullshit. Funny thing: I filed a but about this three months ago. They closed it saying "The warnings are wrong. Carry on." Fuck.
<joonty> XemsDoom: what's the error with json?
m8 has joined #ruby
enriclluelles has quit [Remote host closed the connection]
<joonty> XemsDoom: `sudo aptitude install ruby1.9.1-dev`
<joonty> or replace 1.9.1 with the package version
maetthew has quit [Read error: Operation timed out]
<XemsDoom> will try thank you
<joonty> it's things like that that make it difficult for people coming to ruby
ttt_ has joined #ruby
<XemsDoom> well for me it's the...ehm...bad performance speech I hear all around
<joonty> what?! who told you that ;)
jbpros has joined #ruby
<joonty> jruby flies, however
helllen_ has joined #ruby
jbpros has quit [Client Quit]
sambao21 has joined #ruby
<joonty> and MRI 2.0 has notable improvements
kil0byte has joined #ruby
<XemsDoom> I might learn Scala instead :p
<joonty> if you want speed I've heard good things about assembly
<XemsDoom> haha
yshh has quit [Remote host closed the connection]
ttt has quit [Ping timeout: 276 seconds]
<eph3meral> jruby has slow boot times though
<bnagy> nah a bad assembler can really kill your speed, bro, you really need to hand tune your machine code for your cpu
<eph3meral> but it is native multicore
maetthew has joined #ruby
yosafbridge` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Nuck has quit [Read error: Connection reset by peer]
chase-work has quit [Ping timeout: 245 seconds]
<XemsDoom> it is working
<XemsDoom> \o/
sambao21 has quit [Client Quit]
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
osvico has joined #ruby
<joonty> XemsDoom: great!
<XemsDoom> now lets see if redmine comes around
gaahrdner has joined #ruby
Nuck has joined #ruby
davout has quit [Remote host closed the connection]
geekbri has joined #ruby
monkegjinni has quit [Ping timeout: 248 seconds]
krawchyk has joined #ruby
persand has joined #ruby
browndawg has joined #ruby
momomomomo has joined #ruby
krombr has joined #ruby
<XemsDoom> wooh \o/ that runs too
<XemsDoom> thank you joonty
mklappstuhl has quit [Remote host closed the connection]
fschuindt has quit [Quit: Computer has gone to sleep.]
<joonty> XemsDoom: no problem, glad it's working :)
slainer6_ has joined #ruby
<joonty> XemsDoom: now you can enjoy all those bugs
yosafbridge has joined #ruby
Lubinski has joined #ruby
<XemsDoom> mhh how would I normally start the app?
<XemsDoom> I guess it's some rails syntax thingy
monkegjinni has joined #ruby
<joonty> XemsDoom: it depends really
ariedler has joined #ruby
<joonty> you need a web server
<XemsDoom> I have an apache
<joonty> ok cool
<XemsDoom> and I just want to proxy to the redmine server
<XemsDoom> which I do
<joonty> easiest way is probably to use passenger
waxjar has joined #ruby
<joonty> passenger is a sort of module that will automatically boot up your rails app when a request comes in
moos3 has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
<joonty> or you can use something like thin, which runs as a separate unix process and creates socket files
<joonty> you can then proxy to those sockets
telemachus has left #ruby [#ruby]
<joonty> or you can cd to the rails app, run `rails server` and hope to god that it doesn't fall over (quickest solution)
wallerdev has joined #ruby
tommyvyo has quit [Quit:]
kornnfla- has joined #ruby
<joonty> i would say that thin is the best of the three, and passenger is the easiest long-term solution
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
Grievre has left #ruby [#ruby]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Inoperable is now known as Inoperabled
Inoperabled is now known as Inoperable
sambao21 has joined #ruby
buibex has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tonini has quit [Quit: Lost terminal]
tonini has joined #ruby
monkegjinni has joined #ruby
flori_ is now known as flori
mklappstuhl has joined #ruby
hogeo has quit [Remote host closed the connection]
invisime has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<eph3meral> passenger++
<eph3meral> for ease of setup at least
<eph3meral> and general compatibility/lack-of-headaches-with-ruby-and-rails-as-compared-to-apache-which-requires-more-wrangling ™
t_p has joined #ruby
monkegjinni has joined #ruby
carloslopes has joined #ruby
bradhe has joined #ruby
<XemsDoom> well didn't work out very well
kpshek has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<joonty> oh dear why not
splittingred has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
kobain has joined #ruby
SAUCYSALAMANDER has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
zebrarage has joined #ruby
monkegjinni has joined #ruby
tomzx_mac has quit [Ping timeout: 252 seconds]
suporte85 has quit [Quit: Saindo]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
daniel_- has quit [Ping timeout: 264 seconds]
<joonty> what do you get if you `sudo updatedb && locate mod_passenger.so`?
<joonty> (that's not the start of a joke)
sambao21 has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 248 seconds]
rgrinberg1 has joined #ruby
danslo has quit [Quit: danslo]
<XemsDoom> .. /usr/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/libout/apache2/mod_passenger.so
<XemsDoom> ah
<XemsDoom> there we go
<XemsDoom> who it works :)
jbpros has joined #ruby
jgarvey has joined #ruby
<XemsDoom> with a lot of errors on the page
<XemsDoom> ._.
kil0byte_ has joined #ruby
jbpros has quit [Client Quit]
idkazuma has quit [Remote host closed the connection]
a_a_g has joined #ruby
slainer6_ has quit [Remote host closed the connection]
suporte85 has joined #ruby
<joonty> lol
<joonty> normally is the case
<joonty> but you're getting closer
alexmreis has joined #ruby
slainer68 has joined #ruby
<joonty> are they explanatory (yay) or bizarre (boo)
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
slainer6_ has joined #ruby
DonRichie has joined #ruby
<XemsDoom> boo
<XemsDoom> and suddenly it works
<XemsDoom> magic
<XemsDoom> facepalm
slainer68 has quit [Ping timeout: 256 seconds]
<XemsDoom> software anyone
<XemsDoom> I really appreciated your help joonty thank you a lot
<XemsDoom> :)
nobitanobi has joined #ruby
<nobitanobi> Hello! Do you guys suggest any framework for Desktop applications? I come from Rails development
rgrinberg1 is now known as rgrinberg
alexmreis has quit [Quit: Leaving.]
buibex has quit [Remote host closed the connection]
reactormonk has quit [Ping timeout: 264 seconds]
<eph3meral> nobitanobi: Qt
alexmreis has joined #ruby
breakingthings has joined #ruby
<eph3meral> nobitanobi: but really, in the modern world, there's not much of a reason to do that if you already are in the Rails world
<eph3meral> nobitanobi: just up your JavaScript skills and build responsive UIs over the web
<nobitanobi> eph3meral, right. Just wanted to see other Ruby frameworks :P
<cedric_b> exit
buibex has joined #ruby
cedric_b has quit [Quit: leaving]
alexmreis has left #ruby [#ruby]
ewag has joined #ruby
katsrc has joined #ruby
<eph3meral> nobitanobi: there aren't really any "desktop" "frameworks" "for ruby" per se
sailias has joined #ruby
ttt_ has quit [Remote host closed the connection]
<eph3meral> nobitanobi: Qt has been around long since before ruby came around, but it has ruby bindings and they're quite nice
enriclluelles has joined #ruby
<eph3meral> nobitanobi: though of course you could try your hand at Tcl/Tk
<nobitanobi> eph3meral, thanks a lot for this info.
<eph3meral> but again, that's not a ruby framework
Ortuna has quit [Quit: Computer has gone to sleep.]
<eph3meral> Tcl is actually another programming language in and of itself
DaniG2k has joined #ruby
<DaniG2k> guys im trying to match a regex and append the text to an array
<DaniG2k> but when I try to do that, it's also returning the object
kofno has quit [Remote host closed the connection]
<nobitanobi> DaniG2k, let's see your code
<eph3meral> nobitanobi: I think you'd be better off investing time to learn BootstrapCSS plus Backbone/Angular/Ember
<nobitanobi> !gist
<DaniG2k> like #<MatchData "service_name=">
<eph3meral> nobitanobi: it'll compliment the skill set you already have
monkegjinni has quit [Read error: Connection reset by peer]
<nobitanobi> eph3meral, right. Ember sounds great.
<DaniG2k> i just have matches << line.match(/^.*=/)
<eph3meral> nobitanobi: I am a backbone guy
<eph3meral> ember forces you into too many paradigms
<eph3meral> I like the loose coupling of backbone
<DaniG2k> nobitanobi: i just have matches << line.match(/^.*=/)
<nobitanobi> I have tried Angular and Ember
<nobitanobi> got tired of ember because of its lack of documentation
<nobitanobi> but it seems they are changing that now
<eph3meral> nobitanobi, give backbone a try, there are only two real detractions from backbone
monkegjinni has joined #ruby
<eph3meral> nobitanobi: there aren't a ton of docs, and backbone can be verbose
toddWork_ has joined #ruby
cofin has joined #ruby
b0oh has joined #ruby
<eph3meral> both of those problems are solved by A) realize that there's a reason there's not a ton of docs, because bacbone is very minimal and flexible and B) coffeescript and backbone were made to go together
enriclluelles has quit [Remote host closed the connection]
<nobitanobi> eph3meral, will take a look at backbone
<eph3meral> esp if you're on rails, you've got coffeescript by default in the asset pipeline
<nobitanobi> yep, that's correct
<joonty> XemsDoom: no problem
<eph3meral> coffeescript solves a lot of the "verbosity" complains that people have about backbone
<nobitanobi> eph3meral, I particularly don't like coffeescript
<eph3meral> nobitanobi: I didn't either
<eph3meral> until I tried it :)
<eph3meral> I was like "why learn a new syntax"
<nobitanobi> hehe
<nobitanobi> yes
monkegjinni has quit [Read error: Connection reset by peer]
<eph3meral> but it's the same reason to go to ruby over PHP
<joonty> eph3meral: hehe i was the same
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
solidoodlesuppor has joined #ruby
<eph3meral> I was a PHP guy for many years, then after doing ruby for like 2 years
<eph3meral> going back to PHP is painful
<nobitanobi> same here
<eph3meral> ditto for coffeescript
<nobitanobi> with PHP
<nobitanobi> :)
<joonty> eph3meral: again the same
<nobitanobi> haha
<joonty> used to be a php-er
<eph3meral> haveing to right REAL javascript (like in a .js.erb or something) is a total pain
monkegjinni has joined #ruby
<eph3meral> nobitanobi: and some of the object oriented language features of coffeescript are just borderline life saving in terms of time savers
codecop has quit [Quit: Išeinu]
jbpros has joined #ruby
<nobitanobi> eph3meral, well, I might have to give it another try
<nobitanobi> :P
<joonty> not to mention that coffeescript is the closest that js will ever be to ruby
<eph3meral> yeah I just never had a "reason" to do it
<eph3meral> like, all my projects either used js already
m8 has quit [Ping timeout: 260 seconds]
<ramblex> DaniG2k, try: matches << line.match(/^.*=/).to_s
<eph3meral> or were too time sensitive and important for me to both invest the time in learning something, and invest it in something risky at that
<eph3meral> something I don't know
<eph3meral> anyway, I got on to a proj that already used CS and it's awesome
<DaniG2k> ramblex: yea that worked thanks
<DaniG2k> :)
<eph3meral> nobitanobi: ^
banghouse2 has joined #ruby
<eph3meral> </coffeescript_rant>
<eph3meral> nobitanobi: also consider backbone as well (coffeescript and backbone are both written by the same guy)
<eph3meral> jashkenashenaehsnaehsnahshs or whatever his name is
persand has quit [Quit: persand]
kofno has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
banghouse2 is now known as baghouse
wmoxam has joined #ruby
mootpointer has joined #ruby
camilasan has quit [Remote host closed the connection]
pskosinski has joined #ruby
krombr has quit [Quit: krombr]
jerius has joined #ruby
kornnfla- has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
chandankumar has quit [Quit: Leaving]
<bnagy> DaniG2k: match returns a matchdata, if you want the match you need to use match(/blah/)[0] or match(/bl(a)h/)[1] for groups
camilasan has joined #ruby
pipework has joined #ruby
camilasan has quit [Remote host closed the connection]
<bnagy> in general, imho, "somestr"[/regexp/,0] is easier on the eye
cofin has quit [Ping timeout: 245 seconds]
<apeiros> +1
johnrlive has joined #ruby
Zai00 has joined #ruby
<bnagy> uh actually "str"[/blah/] is enough :P
Akuma has quit [Read error: Connection reset by peer]
<apeiros> without capture, yes
eph3meral has quit [Quit: eph3meral]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
mikecmpbll has joined #ruby
monkegjinni has joined #ruby
jbpros has quit [Quit: jbpros]
cofin has joined #ruby
johnrlive has quit [Remote host closed the connection]
rippa has joined #ruby
johnrlive has joined #ruby
skattyadz has joined #ruby
<DaniG2k> whats the difference between sort and sort!
<DaniG2k> i understand that sort! is in place, but what does that mean exactly
<DaniG2k> ?
slainer68 has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
nlv has joined #ruby
jgarvey has quit [Quit: Leaving]
chase-work has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
<hoelzro> DaniG2k: it means that the invocant itself has its contents sorted
<hoelzro> sort returns a sorted version of the invocant
<hoelzro> consider:
<DaniG2k> ok
<DaniG2k> then I think I want sort!
<hoelzro> >> a = [5, 4, 3, 2, 1] ; a.sort ; puts a
<eval-in> hoelzro => 5 ... (http://eval.in/30516)
<DaniG2k> it basically changes the object that its being called on, correct
jgarvey has joined #ruby
<DaniG2k> ?
<hoelzro> yes
<DaniG2k> got it
<DaniG2k> thanks
<hoelzro> that's the rule of thumb for ! methods
monkegjinni has quit [Read error: Connection reset by peer]
<DaniG2k> awesome
alex__c2022 has joined #ruby
slainer6_ has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
wallerdev has quit [Quit: wallerdev]
tommyvyo has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<joonty> 1
LaPetiteFromage has joined #ruby
XemsDoom has quit [Quit: Page closed]
<hoelzro> 2
cofin has quit [Quit: cofin]
<joonty> hehe oops
buibex has joined #ruby
<ericwood> irc is hard
buibex has quit [Remote host closed the connection]
<joonty> yes it is
Akuma has joined #ruby
<joonty> i'm using irssi, and I had a huge fail the other day
<joonty> instead of /quit
<joonty> i typed \quit
<joonty> so everyone in the chat room saw:
<joonty> \quit
jonathanwallace has quit [Quit: WeeChat 0.4.0]
axl_ has joined #ruby
Jackneill has quit [Ping timeout: 246 seconds]
johnmilton has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
jonathanwallace has joined #ruby
johnrliv_ has joined #ruby
johnrlive has quit [Read error: Operation timed out]
ffranz has joined #ruby
Jackneill has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
cofin has joined #ruby
HAKEON has joined #ruby
yashshah has joined #ruby
gaahrdner has quit [Remote host closed the connection]
bradhe has joined #ruby
johnrlive has joined #ruby
s00pcan has joined #ruby
helllen_ has quit [Ping timeout: 252 seconds]
johnrliv_ has quit [Read error: Operation timed out]
v0n has joined #ruby
buibex has joined #ruby
tk_ has joined #ruby
gaahrdne_ has joined #ruby
jtharris has joined #ruby
predator117 has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 264 seconds]
predator117 has joined #ruby
axl_ has quit [Ping timeout: 248 seconds]
<nobitanobi> bye guys
nobitanobi has quit [Quit: Leaving]
generalissimo has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
kephra has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
t6d has joined #ruby
<kephra> moin - i have two questions about rvm: is it possible to do a system wide installation as normal user (I'm a staff group member, so I can write in /usr/local/ without becoming root)
chrishunt has joined #ruby
<kephra> and is it possible to give it a different path, e.g. /opt/ruby
failshell has joined #ruby
<apeiros> kephra: I think you'd better ask that in #rvm
<kephra> *ok*
robbyoconnor has joined #ruby
cheese1756_ has quit [Ping timeout: 245 seconds]
ravster has joined #ruby
<r0bglees0n> kephra: rbenv/chruby+ruby-build can do all of that.
<kephra> r0bglees0n, where does rbenv come from?
lolmaus has quit []
tealmage has joined #ruby
cheese1756 has joined #ruby
tealmage has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
sleetdrop has joined #ruby
marr has quit [Ping timeout: 256 seconds]
<ericwood> rvm
<kephra> is rvm or rbenv or chruby prefered?
<ericwood> depends on how hip you are
<havenwood> kephra: They are all good. Different.
HAKEON has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
* kephra is not a ruby programmer - just an admin who has to install it
<ericwood> rvm is an all-in-one solution, rbenv and chruby are meant to work together in more of a unix-style way
<r0bglees0n> i think, as an admin, you'll appreciate rbenv/chruby more than rvm
<ericwood> where each is just compact and does one thing well
arya has joined #ruby
<ericwood> rvm doesn't work well in production :P
daniel_- has joined #ruby
<ericwood> works great for dev, though!
<kephra> *oh* thanks ericwood !
teclator has quit [Ping timeout: 248 seconds]
<ericwood> no need to thank me
<ericwood> just doing my job
<zeeraw> rvm works fine in production, rbenv & chruby are non the less easier to deal with.
<ericwood> well
browndawg has quit [Ping timeout: 245 seconds]
<ericwood> iirc we have system ruby set up for production
helllen_ has joined #ruby
buibex has quit [Remote host closed the connection]
johnrlive has quit [Remote host closed the connection]
wallerdev has joined #ruby
interactionjaxsn has joined #ruby
alanp has quit [Ping timeout: 245 seconds]
<r0bglees0n> I build from source on production
johchri has joined #ruby
persand has joined #ruby
<kephra> r0bglees0n, this might be a sane alternative
persand has quit [Client Quit]
persand has joined #ruby
casheew has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 252 seconds]
casheew has joined #ruby
<kephra> lets explain what I did so far: I installed a Debian wheezy, tried rails on wheezy, failed, removed rails, installed rails by gem, and run into the problem that debian ruby is to old for the application ;-(
braincrash has quit [Quit: bye bye]
jbpros has joined #ruby
<kephra> so I installed the server again from scratch, installed a linux container for the ruby/rails - and now work within the container
<johchri> use rvm to mange any versions of ruby
t6d has quit [Ping timeout: 248 seconds]
<johchri> rvm.io
MrZYX|off is now known as MrZYX
t6d has joined #ruby
<havenwood> kephra: There is a newer Ruby apt-get package: ruby1.9.1
ananthakumaran has quit [Quit: Leaving.]
<r0bglees0n> oh god dont use that
<r0bglees0n> 1.9.1 was a disaster
<r0bglees0n> never a production release
<havenwood> r0bglees0n: Yeah, it is actually 1.9.3, silly package name.
<r0bglees0n> ohhh
<r0bglees0n> thats weird :)
LaPetiteFromage has quit [Quit: LaPetiteFromage]
El_loco has joined #ruby
danslo has joined #ruby
akells` has joined #ruby
ttt has joined #ruby
<havenwood> r0bglees0n: Agreed!
<kephra> well - debian just picked the wrong time for freeze, when it came to ruby/rails
<havenwood> kephra: Building yourself and pointing correct environment at your build with chruby is a nice route.
<havenwood> kephra: If you prefer shims to env vars, rbenv.
Spami_ has joined #ruby
sambao21 has joined #ruby
Spami has quit [Read error: Connection reset by peer]
<kephra> my idea is to setup a complete new container, if the applications requires a newer ruby/rails next time
braincrash has joined #ruby
<kephra> so i can run them in parallel, and switch by iptables
yshh has joined #ruby
monkegjinni has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
enebo has joined #ruby
mboers has quit [Quit: mboers]
El_loco has quit [Client Quit]
monkegji_ has joined #ruby
workmad3 has joined #ruby
peta_ has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
LaPetiteFromage has joined #ruby
jbpros has quit [Quit: jbpros]
jlast has joined #ruby
yshh_ has joined #ruby
slainer68 has quit [Ping timeout: 276 seconds]
devdazed has quit [Quit: Bye]
lusory_ has quit [Ping timeout: 248 seconds]
yshh has quit [Read error: Connection reset by peer]
t6d has quit [Quit: t6d]
guiocavalcanti has quit [Remote host closed the connection]
ewag has quit [Changing host]
ewag has joined #ruby
<r0bglees0n> havenwood: did you check out ichannel since I added redis?
guiocavalcanti has joined #ruby
ellipse has joined #ruby
machuga is now known as machuga|away
browndawg has joined #ruby
<havenwood> r0bglees0n: No, but i've been meaning to! Hopefully I'll get time to do so today. I <3 Redis. :D
monkegjinni has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
nimor has joined #ruby
techminer has joined #ruby
peta_ has quit [Client Quit]
<r0bglees0n> havenwood: yeah, redis adds network support, so maybe distributed futures?
Iszak has joined #ruby
<havenwood> r0bglees0n: Oooh, hadn't thought of the network aspect. Cool!
<Iszak> I'm trying to build a simple GUI application, I've looked at shoes, is it a DSL? Feels like it. Also, don't like how its' not a rubygem, other suggestions?
workmad3 has quit [Ping timeout: 248 seconds]
<r0bglees0n> Iszak: what os are you on?
<r0bglees0n> Iszak: there are a lot of different options
<havenwood> Iszak: As shoes goes, there is a lovely gem called gree_shoes: https://github.com/ashbb/green_shoes
akhet has quit [Remote host closed the connection]
<techminer> Is there a limit to the number of objects that can be created in a Ruby Class? I have some code that is trying to create 40-50 thousand objects. The class is pretty simple, just three String attrs.
<havenwood> Iszak: There are also wx or tk bindings.
<hoelzro> techminer: I'm guessing you're limited only by memory
peta_ has joined #ruby
<techminer> When I get to the end, I am not getting any data back from the Class. If I do a subset of all those objects, just a few hundred, the code works fine.
<hoelzro> granted, from what I remember of Ruby internals, it uses a bit to track whether a value is an object or a Fixnum
guiocavalcanti has quit [Ping timeout: 256 seconds]
<hoelzro> so on a 32-bit machine, that limit is 1 << 31 objects
<techminer> hoelzro: I have 16GB of RAM on this 64 bit host.
johchri has quit [Quit: Textual IRC Client: www.textualapp.com]
<hoelzro> (something about that math seems off)
buibex has joined #ruby
<hoelzro> *my math
Dummies_freelan1 has joined #ruby
<hoelzro> techminer: then 40-50K objects should be no problem at all
Dummies_freelanc has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: nettoweb]
lkba has quit [Quit: Bye]
<techminer> hmmm….I can't figure out what's wrong then. My class is just three strings, mail, department, and servername. A majority of the objects have nil for a department. Let me put up a pastie and I'll show my code....
buscon has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
camilasan has joined #ruby
chrishunt has joined #ruby
tagrudev has quit [Remote host closed the connection]
teclator has joined #ruby
buscon has quit [Remote host closed the connection]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
codecop has joined #ruby
spider-mario has joined #ruby
nettoweb has joined #ruby
bean has joined #ruby
nettoweb has quit [Client Quit]
krz has joined #ruby
ChrisBolton has joined #ruby
camilasan has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
<Iszak> r0bglees0n havenwood I'm on OSX but the software will be running on a rasphberry pi
tomzx_mac has joined #ruby
tonini has quit [Quit: Lost terminal]
<AndChat|> By
dallasm_ has joined #ruby
* hoelzro just came across this: http://innig.net/software/ruby/closures-in-ruby
rgrinberg1 has joined #ruby
jcromartie has joined #ruby
anonymuse has joined #ruby
rgrinberg has quit [Ping timeout: 246 seconds]
thebastl has quit [Read error: Operation timed out]
<techminer> Here's my pastie… http://pastie.org/7916267 I can't figure out why limiting the set of accounts added to the class works, but removing those limits and trying to add all 50K objects to the class doesn't work.
chrishunt has quit [Read error: Connection reset by peer]
<apeiros> techminer: ObjectSpace.each_object(Account) <-- DONT DO THIS
<apeiros> ObjectSpace is for debugging purposes.
Jackneill has quit [Ping timeout: 264 seconds]
rgrinberg1 is now known as rgrinberg
<apeiros> you're walking the tree of all objects (possibly millions) just to search your couple of Account instances.
ExxKA has joined #ruby
buibex has quit [Remote host closed the connection]
<techminer> apeiros: oh really? I found that in a blog post somewhere when learning how to use Classes....
<apeiros> if he didn't mention "debug only", you should send him a note.
<techminer> So how to do a "find_all_by_SOMEVAL" on such a large set of objects?
machuga|away is now known as machuga
<hoelzro> techminer: store weak refs to them in a class variable in initialize
chile_andes has joined #ruby
rippa has joined #ruby
<hoelzro> (does Ruby have weak references?)
<apeiros> yes
<hoelzro> \o/
<apeiros> WeakRef (via require 'weakref')
io_syl has quit [Quit: Computer has gone to sleep.]
<hoelzro> but use strong references if you intend to have the "Manager" class manager these objects 100%
<Iszak> havenwood green shoes is a DSL?
<apeiros> but I either have the docs not installed or they're not documented :-/
momomomomo has quit [Quit: momomomomo]
<kephra> http://upaste.me/c7575903076dffc7 <- failed again - why is ruby/rails so brittle?
<apeiros> aha, docs not installed
<apeiros> damn, I was sure I had them…
<techminer> Do you have a link to an example I could look at?
justsee has joined #ruby
justsee has joined #ruby
chrishunt has joined #ruby
<apeiros> kephra: you wouldn't be happy with fuzzy code.
brunoro has joined #ruby
bradhe has joined #ruby
ayaz has quit [Quit: Bye!]
<kephra> line 16 in lib/rake/trace_output.rb does not have any latin1 chars, or non us-ascii chars
Bry8Star has quit [Ping timeout: 240 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
gaahrdne_ has quit [Remote host closed the connection]
rdark_ has joined #ruby
slainer6_ has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
generalissimo has quit [Remote host closed the connection]
AlHafoudh has joined #ruby
devdazed has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<hoelzro> techminer: what you do is just make sure to wrap a WeakRef.new() around new objects when you add them to the "registry"
dhruvasagar has quit [Ping timeout: 276 seconds]
<hoelzro> and probably go through the registry every so often and clean up dead refs
slainer68 has quit [Ping timeout: 245 seconds]
rdark has quit [Ping timeout: 276 seconds]
helllen_ has quit [Quit: helllen_]
b0oh has left #ruby [#ruby]
<Veejay> Hello everyone, just wanted an opinion of the following: Array.new(10){ Kernel.rand >= 0.5 }
<Veejay> Does that produce an array of 10 boolean values pseudo-randomly chosen as expected or am I being a fool
<Veejay> ?
<hoelzro> looks right to me
<Veejay> It doesn't need super duper randomness
<hoelzro> >> Array.new(10){ Kernel.rand >= 0.5 }
<eval-in> hoelzro => [false, true, false, true, false, false, false, true, false, true] (http://eval.in/30526)
<hoelzro> >> Array.new(10){ Kernel.rand >= 0.5 }.select { |e| e }.length
<eval-in> hoelzro => 6 (http://eval.in/30527)
<hoelzro> close enough =)
<Veejay> Ah, interesting
browndawg1 has joined #ruby
<Veejay> Array.new(size) { something } produces an array or... max length "sioze"
<Veejay> ?
<Veejay> of*
<brunoro> >> Array.new(100){ Kernel.rand >= 0.5 }.select { |e| e }.length
<eval-in> brunoro => 53 (http://eval.in/30528)
<hoelzro> I don't think the length is "max"
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
<canton7> Veejay, of total size 'size'
<Veejay> Ah
<hoelzro> you can grow it
<Veejay> Sorry
browndawg has quit [Ping timeout: 245 seconds]
<Veejay> I misread
<havenwood> Veejay: You want an array of false or true?
<Veejay> You're testing the partition
<brunoro> this is pretty cool
<Veejay> havenwood: Aye
<havenwood> Veejay: Array.new(10){ [true, false].sample }
<hoelzro> oh, neat.
<hoelzro> havenwood++
<Veejay> Nice, even better
helllen_ has joined #ruby
jnoob22_ has joined #ruby
AlHafoudh has quit [Quit: Textual IRC Client: www.textualapp.com]
huoxito has joined #ruby
camilasan has joined #ruby
Iszak has joined #ruby
guiocavalcanti has joined #ruby
Guest83662 has quit [Changing host]
Guest83662 has joined #ruby
Guest83662 is now known as C0deMaver1ck
newUser1234 has joined #ruby
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
jnoob22 has quit [Ping timeout: 252 seconds]
fcofdezc has quit [Remote host closed the connection]
<kephra> does anyone has any idea how to fix the "rake aborted! invalid byte sequence in US-ASCII" problem
helllen_ has quit [Ping timeout: 252 seconds]
Dummies_freelan1 has quit [Ping timeout: 245 seconds]
osvico has quit [Read error: Connection reset by peer]
<kephra> this comes up in google often - but any suggestion there did not work
<MrZYX> use ruby 2.0 :P
<kephra> ruby 1.9.3p194
jamesaxl has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 256 seconds]
<MrZYX> well, just add the magic comment to the file raising the error
<kephra> MrZYX, tried it - did not help
lusory has joined #ruby
<MrZYX> or if it's happening when reading a file ensure your system locale is set (to a utf8 variant)
nettoweb has joined #ruby
<kephra> also the gems/rake-10.0.4/lib/rake/trace_output.rb does not contain any non-ascii character
<kephra> also exported LC_ALL, LC_CYTPE, LANG to be utf
jlast has joined #ruby
<MrZYX> most likely you just got the wrong file
<kephra> http://upaste.me/c7575903076dffc7 <- MrZYX this is the complete error
<MrZYX> (See full trace by running task with --trace)
yshh_ has quit [Ping timeout: 264 seconds]
ravster has quit [Ping timeout: 264 seconds]
<kephra> http://upaste.me/983c5904b61ddbfe <- full trace does not look much different
mockra has joined #ruby
<apeiros> the error does NOT say that the source code contains an invalid byte sequence
<apeiros> it chokes on input
<MrZYX> /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile' yeah
<MrZYX> looks like your Rakefile got a non asccii char
<kephra> apeiros, what might be the input of a rake without parameters?
<MrZYX> setting the system locale correctly should fix that though
ExxKA has quit [Quit: This computer has gone to sleep]
<kephra> MrZYX, system locale is en_US.UTF-8
gaahrdner has joined #ruby
osvico has joined #ruby
Cassim has joined #ruby
bklane has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
grobb has quit [Remote host closed the connection]
sayan has joined #ruby
robbyoconnor has joined #ruby
BSaboia has joined #ruby
_maes_ has joined #ruby
generalissimo has joined #ruby
krombr has joined #ruby
carloslopes has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
Bry8Star has joined #ruby
johnnyfuchs has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
slainer6_ has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
thebastl has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
girija has quit [Ping timeout: 248 seconds]
casheew has quit [Read error: Connection reset by peer]
ravster has joined #ruby
shevy has joined #ruby
<shevy> test
<shevy> test
<kephra> well - at least learned that I would never recomment ruby/rails again to anybody ;-(
tk_ has quit [Quit: ばいばい]
casheew has joined #ruby
<shevy> kephra: why both rails and ruby together?
<shevy> I mean, I use ruby since 8 years, not rails though
<shevy> Hanmac1: test... I am on chatzilla right now...
threesome has quit [Ping timeout: 256 seconds]
ckrailo has joined #ruby
geggam_wk has joined #ruby
<kephra> shevy, because I so far wasted 15 hours on this installation
<shevy> installation of ?
pcarrier_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<kephra> installation of a rails app that was developed under windows on a debian system
<shevy> because I failed with my rails installation myself and gave up :P
<shevy> ah yes
<MrZYX> kephra: did you check your Rakefile has the magic comment?
thebastl has quit [Remote host closed the connection]
<shevy> rails sucks
<shevy> kephra: ruby is better
pduin has quit [Remote host closed the connection]
nimor has quit [Ping timeout: 248 seconds]
yshh has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tealmage has joined #ruby
juarlex has joined #ruby
tealmage has quit [Remote host closed the connection]
<kephra> MrZYX, adding an utf-8 comment into config/application.rb changed the error only slighly http://upaste.me/b4c359059d2e3e92
<kephra> and trace_output.rb does not contain any non ascii character
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
slainer6_ has joined #ruby
<MrZYX> I think the exception is just reraised there
thelamest has quit [Quit: rebook]
mockra has quit [Remote host closed the connection]
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
YanniHoza has joined #ruby
brunoro has quit [Read error: Connection reset by peer]
acrussell has joined #ruby
atno has joined #ruby
chrishough has joined #ruby
monkegji_ has quit [Ping timeout: 252 seconds]
daniel_hinojosa has joined #ruby
monkegjinni has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
sterNiX has joined #ruby
sterNiX has joined #ruby
sterNiX has quit [Changing host]
Beoran_ has joined #ruby
cofin has quit [Quit: cofin]
thelamest has joined #ruby
marcdel_ has joined #ruby
daniel_hinojosa has quit [Client Quit]
LennyLinux has quit [Remote host closed the connection]
dmiller has joined #ruby
dankest has quit [Quit: Leaving...]
monkegjinni has quit [Ping timeout: 256 seconds]
YanniHoza has quit [Remote host closed the connection]
Beoran__ has quit [Ping timeout: 252 seconds]
<kephra> *ok* 3rd try - now with ruby 2.0.0p195
InFlames has quit [Quit: This computer has gone to sleep]
ilpuccio has quit [Quit: This computer has gone to sleep]
YanniHoza has joined #ruby
<shevy> desperate!
prk has joined #ruby
cj3kim has joined #ruby
jgrevich has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
`brendan has joined #ruby
mikecmpbll has joined #ruby
ananthakumaran has joined #ruby
cj3kim has quit [Remote host closed the connection]
<kephra> shevy, I once tried rails around 2006, when it did run out of the box - and I did the error to recommend rails - so I now have to install this fucking app
ipalaus has quit [Quit: Computer has gone to sleep.]
<shevy> kephra: yeah, rails 1.0 was ok, I managed to have the basic tutorials work as well back then
<shevy> then came bundler
botorosa has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
<shevy> it's a huge mistake to fragmentize installation procedures
sayan has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 240 seconds]
bubblehe_ has joined #ruby
pitzips has joined #ruby
<shevy> /var/lib/gems/ <--- typical debian ruby
<shevy> that creates even more problems
catphish has joined #ruby
<catphish> where do methods go if you define them with def in irb?
<shevy> invalid byte sequence in US-ASCII <-- huge mistake of ruby 1.9.x to add all these new problems, for marginal gains
<shevy> catphish: hmm private methods on class Object?
<catphish> in 1.9.2 they seem to become class methods on Object, but not in ruby 2,9
<catphish> *2.0
<shevy> aha, interesting
<havenwood> kephra: 2.0.0 ftw. Lastest stable release of Ruby and avoiding package manager is a much less painful course. :P
<shevy> yea kephra stop using debian man, it's not worth the extra pain
nwertman has joined #ruby
buibex has joined #ruby
bradhe has joined #ruby
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p195.tar.bz2
<catphish> shevy: actually in 1.9.2 they are defined on Kernel and included in Object
<kephra> debian is normally the best distribution, when it comes to maintenance, shevy
<catphish> but we can't find them in 2.0.0 :)
<shevy> kephra: you know they change defaults
emptyflask has joined #ruby
bubblehead has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
<shevy> kephra: mkmf is not part of standard ruby on debian, by default. people then come here on #ruby and ask for help, then we have to explain to them that the debian devs killed mkmf because "we are a server OS, only 0.5% of the debian users ever need mkmf, so we rip it apart"
<kephra> whats the default for gems, if I installed ruby 2.x in /usr/local?
dallasm_ has quit []
<shevy> all the same prefix is used, in that example you gave it would be at: /usr/local/lib/ruby/gems/1.9.1/ (or to make sure, check at /usr/local/lib/ruby/gems/ first)
emptyflask has quit [Remote host closed the connection]
emptyflask has joined #ruby
<shevy> in debian, they used --prefix /usr, but also use /var/lib which can confuse gem
carloslopes has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<catphish> shevy: you could make all strings binary if you were happy to disregard all encodings ruby 1.8 style :)
<shevy> I install into /Programs/NAME/VERSION so ruby would be at /Programs/Ruby/2.0.0p195 (my ruby script will remove '-'). RVM uses something similar, but they install into a user's home dir instead
<havenwood> kephra: GEM_HOME points at default repository location for gem installation. GEM_PATH is a colon-separated list of gem repository directories. I like using chruby to set all the env vars correctly for me.
<catphish> and i'm not sure character encoding support is a "marginal gain" lol
<shevy> catphish: I tried that but there are still things that broke. for instance, syck has been removed, and psych will refuse to load non-utf yaml files :(
bradhe has quit [Ping timeout: 264 seconds]
<shevy> catphish: it gives me nothing I need, but a lot of new hassle
casheew has quit [Read error: Connection reset by peer]
<atmosx> shevy: hello
<atmosx> shevy: did you move to ruby 2.0?
<shevy> and I am not the only one who got new errors, just look at kephra and million of other people who complained about it before
<shevy> atmosx: I cant
<catphish> character encodings are important to me, unless you only use ascii you run into all kinda of problems otherwise
<shevy> atmosx: I'll have to switch to python
<atmosx> ah because of psych?
<atmosx> what if you load sych ?
<atmosx> shevy: omg, we as a community, can't afford to lose you.
<shevy> atmosx: no, because I cant abandon my old editor, so I cant go to UTF
<catphish> shevy: i don't know about psych, can't you just tell it the encoding of the file you're trying to load?
* atmosx will have to move to python shortly anyway
<shevy> catphish: yes partially, # Encoding: ASCII-8BIT works ok
<atmosx> shevy: your old editor doesn't support utf8?
<catphish> shevy: that's just forcing it to binary
<shevy> atmosx: not in the way I would want it hehe
<catphish> not really a solution if you want your characters
<shevy> catphish: what other solution do I have? note that I dont use UTF
<havenwood> shevy: Go to UTF-8!
<catphish> shevy: what encoding do you use?
<kephra> catphish, true ;-( and UTF-8 is carefully designed to be a pain in the ass
<atmosx> shevy: try vi improved!
<shevy> catphish: some ISO subset
ravster has quit [Ping timeout: 248 seconds]
<atmosx> shevy: supports a wide variety of encodings!
<havenwood> shevy: Your editor really doesn't support UTF-8?
<shevy> atmosx: I moved away from vim purposely years ago and never missed it :)
<shevy> atmosx: one option would be to go to sublime
apok has joined #ruby
<catphish> shevy: well find out what ISO variant, and force the string to that
<shevy> havenwood: it claims it does but it is totally broken from how I can see it, it kills my german umlauts when I save things :(
<atmosx> shevy: did you try this one? http://www.chocolatapp.com/
<atmosx> but ti's not free oh wait
<atmosx> you're not on mac
<havenwood> shevy: Uhhg, that sounds like a pain.
<atmosx> you're on leenoux
<catphish> shevy: File.read('isofile').force_encoding("ISO-XXXXX")
<atmosx> shevy: isn't gedit pretty decent? with some plugins?
arya has quit []
<shevy> hmm
<catphish> then ruby will know the encoding and handle it properly
buibex has quit [Ping timeout: 260 seconds]
mafolz has quit [Ping timeout: 252 seconds]
<shevy> oh, you mean gedit, not geany
<atmosx> ye
arya has joined #ruby
<shevy> atmosx: good idea, I have not tried gedit in like 4 years
<atmosx> s
<atmosx> gedit
<havenwood> I thought gedit was pretty nice with Ruby plugin.
<atmosx> the default editor for gnome
<catphish> i use gedit, it's nice
<shevy> yeah, I used it only many years ago in gnome 2, I will give it a try again
<atmosx> shevy: also 'kate' (from KDE) is very powerful, I was kinda amazed about how nice supported snippets out of the box (for ruby)
<catphish> i use pluma (the mate gnome 2 gedit fork)
<havenwood> gedit-gmate
<atmosx> shevy: for me UTF8 is really nice, because supports both Greek and English :-P
<shevy> one thing at a time atmosx
<catphish> i install syntax highlighter plugins for RoR work though
<kephra> shevy, exactly - 1st: utf-8 was designed that latin1 umlaute are illegal sequences, 2nd: utf-8 was designed that getting the n-th character of a string is now O(N) and not O(1), 3rd: utf-8 was designed to break printf formatting, 4th: utf-8 was designed to break #! with BOM ... in result UTF-8 was designed to be a pain in the ass
jdunck has joined #ruby
<shevy> kephra: I can feel with you :D
Heero has quit [Ping timeout: 248 seconds]
awarner has quit [Ping timeout: 248 seconds]
carloslopes has quit [Ping timeout: 252 seconds]
<catphish> i've always liked utf-8 because it doesn't waste bytes
arturaz has quit [Ping timeout: 245 seconds]
casheew has joined #ruby
<catphish> but that does have computational overhead of course
<atmosx> ruby 2.0.0p195 (2013-05-14 revision 40734) [i386-freebsd9.1]
<atmosx> yay!
<catphish> i just installed 195
<shevy> atmosx: you are on the latest ruby now?
<shevy> freebsd?
<shevy> self-compiled??
<shevy> damn you are an advanced geek
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jprovazn has quit [Quit: Odcházím]
<catphish> i just happened to install a server so i used -195
<atmosx> shevy: not quite. Managing leenoux is like 10 times harder than managing a FreeBSD box. I'm good with administrating unix-es, I suck at programming :-(
<shevy> catphish: but you use linux right? that's almost the default now hehehe
<catphish> i'm great at everything
<catphish> yeah, i'm on linux, makes things easy :)
<atmosx> catphish: no way I play better basketball than you, drive a faster car AND ride better on a snowboard!!!!
daniele_ has joined #ruby
<catphish> i've never actually tried any other unixes
<catphish> atmosx: what car?
<shevy> I tried PC-BSD, I liked the idea behind it
<catphish> i have indeed never been on a snowboard :(
<Norrin> its not unix
<shevy> but freebsd feels like linux from 1990
emptyflask has quit [Quit: leaving]
<atmosx> I'm on macosx actually and I wouldn't change it for desktop
* atmosx kisses his macbook air
megha has joined #ruby
<shevy> and PC-BSD, while it had nice ideas, all shows that ancient bsd atmosphere... first time with the slices, I even failed to do a hdinstall of freebsd ...
<catphish> i used to use solaris, but compared to linux it felt like managing something from the 80s
<shevy> haha catphish yeah
emptyflask has joined #ruby
<shevy> that's how it feels for me with the BSDs
Norrin has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
<atmosx> catphish: a lotus elise, but nowadays I use it only for track days and some ride to the sea... doesn't have high-end speed, but the acceleration must be below 5 seconds (0-60 miles)
appleseed has joined #ruby
robottinosino has quit [Read error: Connection reset by peer]
<catphish> atmosx: i quite fancy a hard top lotus, could still outrun it on my ninja though :)
<kephra> *ok* feierabend - MrZYX using ruby 2.0.0p195 solved my problem
<shevy> wheeeee
a_a_g has quit [Quit: Leaving.]
<shevy> and kephra speaks german too :D
<atmosx> you guys need these systems for desktop usage that's why they seem 'archaic' to you. They don't have installation menu's etc. But if you run a Solaris server, you have dtrace working at 100% and manyb other utilities which could help you make system profiling at levels that you couldn't achieve with BSD's or Linuxes :-)
joonty has quit [Read error: Operation timed out]
<atmosx> you also have latest version of ZFS, and so on.
<shevy> atmosx: well I am fine using cfdisk or fdisk, but BSD installation used something ... different. that thing confused me
billiam has quit [Remote host closed the connection]
<kephra> shevy, where are you from? I'm from Bremen/German - home town of Beck's Beer and Ariane rocket upper stage
<shevy> kephra: vienna
<kephra> *oh* nice ;-)
robottinosino has joined #ruby
<kephra> can I PM you?
<shevy> there are like hundreds from germany here... Hanmac1 ... MrZYX ...
<atmosx> fdisk works on bsd, but ... FreeBSD installation is pretty easy if you use the entire HD these days. NetBSD and OpenBSD is still tricky iirc.
marwinism has quit [Ping timeout: 246 seconds]
icedp has quit [Ping timeout: 252 seconds]
<havenwood> shevy: With OpenBSD I'd agree with you about the 80s, but FreeBSD (at least from the command line, haven't used GUI) it seems modern to me!
emptyflask has quit [Client Quit]
prk has quit [Remote host closed the connection]
prk has joined #ruby
emptyflask has joined #ruby
<atmosx> havenwood: again, with openbsd you'd have a full featured PF, instead of a freebsd cropped down version. You could work miracles if you manage a router/firewall with openbsd. It's the use case that determines which OS is good for what.
<shevy> hey
<shevy> fdisk does not work on freebsd right?
<atmosx> however, I could live with a FreeBSD desktop if ... they had proper flash support and not crappy emulation.
<shevy> it took me a while to find out how to mount my external USB hdd
<atmosx> shevy: it works
<shevy> hmmm no...
rgrinberg has quit [Ping timeout: 256 seconds]
<shevy> there is a special command atmosx
<shevy> I wrote it down somewhere, let me try to find it
zeade has joined #ruby
<atmosx> from the manpage: fdisk — PC slice table maintenance utility
jtharris has joined #ruby
bradhe has joined #ruby
baghouse is now known as banghouse
<shevy> no no I swear
daniele_ has quit [Quit: Leaving]
DaniG2k has quit [Quit: Leaving]
Dummies_freelanc has joined #ruby
jamie_ca_ has joined #ruby
emptyflask has quit [Client Quit]
prk has quit [Ping timeout: 245 seconds]
jlast has quit [Remote host closed the connection]
bradhe has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
LennyLinux has joined #ruby
apeiros has joined #ruby
dankest has joined #ruby
ephemerian has quit [Quit: Leaving.]
<appleseed> I'm working on a mutithreaded script to do pings in parallel across a bunch of subnets and I'm seeing the number of threads get way too high. Would someone take a look at https://gist.github.com/anonymous/5592880 ??
joonty has joined #ruby
ravster has joined #ruby
bluOxigen has joined #ruby
altamic has quit [Quit: altamic]
phipes has joined #ruby
includex has quit [Quit: Leaving...]
<shevy> atmosx: hmm I cant find it
<canton7> appleseed, why not have a pool of worker threads, each of which pulls an item off the queue when it's finished with its previous item?
BSaboia has quit [Ping timeout: 256 seconds]
baroquebobcat has joined #ruby
aleph-null has joined #ruby
<canton7> threads aren't massively cheap to create/destroy, so a thread pool is a common approach
<atmosx> shevy: you use ubuntu now?
katsrc has quit [Quit: leaving]
<appleseed> That's a good idea, I was just cannibalizing some other code I wrote a while back.
billiam has joined #ruby
<appleseed> Threads are cheap enough compared to ping, that it's not a big issue
greenarrow has joined #ruby
<appleseed> I'm wondering hw I wind up with 200+ threads
ilpuccio has joined #ruby
<canton7> I don't know how long they hang around for after they're done - that might be your issue
jlast has joined #ruby
<appleseed> They go away at the end of the block
<shevy> atmosx: hmm no, debian hates me
<shevy> atmosx: I just compiled gedit
<havenwood> I'm thinking of switching to Arch linux as my primary vagrant.
carloslopes has joined #ruby
bradhe has joined #ruby
rakl has joined #ruby
<havenwood> Arch seems to be about the only distro whose package manager seems to keep up with Ruby patch releases. I like the minimalism paired with modernity!
<havenwood> Wonder if Arch has 2.0.0-p125 already..
apeiros has quit [Ping timeout: 264 seconds]
v0n has quit [Ping timeout: 241 seconds]
[dee] has joined #ruby
hamakn has quit [Remote host closed the connection]
[dee] has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
[dee] has joined #ruby
apeiros has joined #ruby
rgrinberg has joined #ruby
tjbiddle has joined #ruby
<canton7> havenwood, nah p0. It's flagged as out of date though, as of 2 days ago
apeiros has quit [Read error: Connection reset by peer]
<shevy> yay havenwood \o/
<greenarrow> fast way to get consonants in ruby?
<havenwood> canton7: :D
superscott[8] has joined #ruby
<shevy> greenarrow: hmmmm
<shevy> greenarrow: a random consonant?
<havenwood> greenarrow: #scan(/[^aeiou]/i)
<shevy> wow
<shevy> havenwood: you are too fast
<greenarrow> so regex only way
<havenwood> greenarrow: Nope, just one way.
<shevy> havenwood: let me break some of your fingers, then we are on same speed
<canton7> the quickest and clearest
bradhe has quit [Remote host closed the connection]
<havenwood> shevy: I type with my nose, foiled!
<havenwood> (I'm a bird.)
<shevy> greenarrow: you could always build two arrays, one alphabet, one with constants, and use .reject
<greenarrow> thanks guys sorted
<shevy> havenwood: lol
<greenarrow> or girls?
Voodoofish430 has joined #ruby
<greenarrow> o.O
<shevy> greenarrow: no girls. 99.5%
s2013 has joined #ruby
awc737 has joined #ruby
<shevy> yugui_zzz is a girl but she always sleeps and only understands japanese :(
<greenarrow> i see
<shevy> but she gave a few presentations about ruby, which you could find on youtube :P
mando has joined #ruby
<greenarrow> same name?
mahmoudimus has joined #ruby
<shevy> hmm I cant find her ...
<shevy> I only found matz speaking about ruby 2.0 http://www.youtube.com/watch?v=t9LMOydfc4k but she also gave a few presentations...
mercwithamouth has joined #ruby
* ellipse waves.
tjbiddle_ has joined #ruby
apeiros has joined #ruby
mikepack has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
brianherman has joined #ruby
<greenarrow> I will watch that shevy thanks
<havenwood> That reminds me, meant to ask UberNerdGirl what she ended up doing after Hacker School. My little sis just applied but didn't get in this round. I need to get her on IRC...
<shevy> "Yuki Sonoda" I think that is her name
<shevy> I think she maintained ruby 1.8.x but gave up on that a year ago or so
<s2013> does matz have a job?
_nitti has quit [Remote host closed the connection]
<shevy> matz can speak english fine, but he "thinks" in japanese
krombr has quit [Quit: krombr]
<shevy> s2013: he is paid by I think at least two different organisations
<havenwood> shevy: Wasn't she the release manager for 1.9.3 as well? I can't remember.
ntus1017 has joined #ruby
zeade has quit [Quit: Leaving.]
<s2013> like?
<shevy> havenwood: can't remember either... I think matz only does mruby now :(
zeade has joined #ruby
<YanniHoza> re: does matz have a job? => heroku & ruby
<LennyLinux> havenwood: are you building your own vagrant boxes?
<s2013> i wish i created a programming language that was popular. id apply for jobs that required knowledge of that language just to see the responses id get
<shevy> s2013: I think there is this funding from the japanese government, then there is matz doing consulting for... this big company? yard* something?... and last but not least, where he always worked... net*something ... hmm
Davey has joined #ruby
<s2013> engineyard?
<shevy> ah heroku was the name perhaps
<havenwood> LennyLinux: Nope, at this point I'm just using pre-built boxes. Never actually rolled my own box.
<shevy> I dunno, I mix up those things easily
<havenwood> shevy: Heroku
ExxKA has joined #ruby
<s2013> he is not the founder of heroku though right?
<shevy> matz is probably rich and well deservedly so :D
ilpuccio has quit [Ping timeout: 248 seconds]
helios has joined #ruby
jnoob22_ has quit [Remote host closed the connection]
<s2013> i hope he gives part of his paycheck to DHH :P
daniel_- has quit [Ping timeout: 252 seconds]
kais has quit [Quit: kais]
<LennyLinux> There's a cloud service properly for ruby that claims to be faster than Heroku with equal price: shelly
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
<superscott[8]> i don't think DHH is strapped for cash
jnoob22 has joined #ruby
<superscott[8]> :P
<shevy> :P
<havenwood> s2013: No, Matz just gets a paycheck from Heroku to make it easier for him to focus on developing Ruby.
evenix has joined #ruby
<shevy> mruby!!!
<s2013> oh ok gotcha
<shevy> destroy lua!!!!!!
enebo has quit [Quit: enebo]
<havenwood> s2013: They actually pay 2 or 3 of the core team now, I think.
apeiros has quit [Read error: Connection reset by peer]
<shevy> I should have learned C properly
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> s2013: IIJ might fund some too?
ravster has quit [Read error: Operation timed out]
apeiros has joined #ruby
peteyg has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
<s2013> oh ok
philcrissman has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 245 seconds]
<shevy> hey atmosx what are you doing now? learning for another exam? or getting rich?
apeiros_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
prk has joined #ruby
<alex88> sorry guys, why 2013-01-16 =~ /\d{2}\-\d{2}\-\d{2}/ matches? shouldn't it return false since first number has 4 digits?
<shevy> alex88: I think it is minimal match
<alex88> oh! I should use ^
<shevy> alex88: as your string has 2 matching digits before the first - it is valid
<alex88> yeah, you're right, thanks shevy
<apeiros_> use \A, not ^
elkclone has joined #ruby
<shevy> \o/
waxjar has quit [Ping timeout: 252 seconds]
<apeiros_> ^ is begin of line, \A is begin of string
<apeiros_> same for $ vs \z
thomasfedb has quit [Ping timeout: 246 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
daniel_- has joined #ruby
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
AndChat| has quit [Ping timeout: 248 seconds]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> s2013: Your saying you'd apply to a job in lang you created reminds me of DHH gists: https://gist.github.com/dhh/1960387
robottin1 has joined #ruby
robottinosino has quit [Ping timeout: 264 seconds]
timkohrumel has joined #ruby
<havenwood> Q. How many years Rails experience do you have? A. All of them.
<s2013> hahah
noname001 has quit [Read error: Operation timed out]
chrisja has joined #ruby
rgrinberg has quit [Ping timeout: 256 seconds]
<havenwood> At least they don't ask for 10 years Rails experience. (Guess soon that will actually be possible.)
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
<alex88> apeiros_: oh, using ^$ could break if first line is the formatted date and second line is something else?
<shevy> wheeee atmosx ... gedit works... what do I do next?
<shevy> lol havenwood
<s2013> i remember i was watching some talk he was giving and he said he would be the only person qualified for the 8 year rails experience ny public library was asking for
<alex88> apeiros_: you're right thanks alot!
swex has quit [Remote host closed the connection]
swex has joined #ruby
paul has quit [Quit: leaving]
leftsaidtim has joined #ruby
marwinism has joined #ruby
<superscott[8]> havenwood: that is awesome.
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bklane has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 251 seconds]
dhruvasagar has joined #ruby
_nitti has joined #ruby
<havenwood> shevy: I like the gedit-gmate package, for some of the niceties of TextMate in gedit: https://github.com/gmate/gmate#readme
bklane has joined #ruby
Banistergalaxy has joined #ruby
leftsaidtim has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Ortuna has joined #ruby
<s2013> mixbook is still looking for a ror developer hmm
<s2013> is it really that hard to find good engineers/developers nowadays?
<havenwood> s2013: yup
<ellipse> DHH didn't accept?!?!?!
io_syl has joined #ruby
[dee] has quit [Read error: Connection reset by peer]
Ortuna has quit [Client Quit]
wmoxam has joined #ruby
cj3kim has joined #ruby
<s2013> im probably the worst "programmer" in history of the universe and even i got approached to work :\
LaPetiteFromage has quit [Quit: LaPetiteFromage]
Maitiu has quit [Ping timeout: 276 seconds]
[dee] has joined #ruby
<superscott[8]> s2013: same here. but i took the job because it has a lot of learning opportunities :)
<shevy> always rails
jbueza has joined #ruby
<havenwood> superscott[8]: Nice to get paid to learn!
<YanniHoza> :-)
<shevy> everyone is in rails
<shevy> you guys make me sick!
<greenarrow> is there something similar to scan but for an array
<s2013> well i did accept a job on the condition they hire a senior developer so i can learn from him
<shevy> greenarrow: perhaps #grep ?
<shevy> lol s2013
<havenwood> greenarrow: #keep_if
<s2013> but we havent been able to find anyone else so im on my own which sucks :\
<ellipse> Freelance is more fun.
<s2013> main reason i accepted the job was to learn
<shevy> hahaha s2013 that's too funny
<ellipse> rofl
<shevy> now you are the senior dev
<s2013> yeah i barely know what puts does
<havenwood> haha
bklane has quit [Remote host closed the connection]
elkclone has quit [Quit: It's never too late to unplug and run.]
bakingbread has joined #ruby
<shevy> that is easy, puts comes from "put string" as in "put this object into string display"
<greenarrow> trying to get the consonants of a csv like file i've split using .split(",") and trying to count the consonants
<s2013> i was being facetious but yeah
<ellipse> The student becomes^Wis defined to be the master.
<shevy> and it calls the method #to_s
<fearoffish> it's okay, all senior devs do is copy and paste from stackoverflow anyway ;)
<superscott[8]> ^
<superscott[8]> senior dev just means you can google better
<s2013> my goal isnt to get a job but to develop my own thing
<ellipse> Hah.
<havenwood> greenarrow: Can you paste a gist of sample input and desired output?
<shevy> s2013: there are harder things to know, like: without looking at notes, when do you use instance_eval and when do you use class_eval
<ellipse> What do you want to develop?
cj3kim has quit [Remote host closed the connection]
<shevy> I am sure it's a site related to pr0n
<s2013> i have couple of ideas, mostly web based software for businesses
<ellipse> That could be profitable.
<shevy> lol ellipse
<havenwood> greenarrow: Sounds like you could iterate and increment by consonant scan.size
chile_andes has quit [Quit: Textual IRC Client: www.textualapp.com]
<greenarrow> creating gist now
<ellipse> People seem to like porn.
<shevy> or shopping... either it is pr0n or shopping, these two ... oh.. and movies. hmm and news ... four items...
Zai00 has quit [Quit: Zai00]
catphish has quit [Quit: Leaving]
AndChat| has joined #ruby
<s2013> why do you spell it pr0n
<shevy> that was a famous typo
<s2013> why not just say porn? and no not porn related..
<havenwood> s2013: Use instance_eval for classes and class_eval for instances, of course! :P
<shevy> damn it havenwood
<shevy> you are OUT!
<havenwood> :O
bricker`1A has quit [Read error: Connection reset by peer]
_nitti has quit [Ping timeout: 245 seconds]
_nitti_ has joined #ruby
<shevy> s2013: that's how you defend senior position
<s2013> i am learning ruby side by side with rails. i spent couple of weeks reading and learning about ruby first
<shevy> 50% will not know the difference between the *_evals
bricker`LA has joined #ruby
<s2013> i dont know the difference either
<ellipse> haha
<s2013> but ive been reading this book "the well grounded rubyist"
<shevy> Fixnum.instance_eval { def ten; 10; end }
<shevy> Fixnum.ten
zebrarage has quit [Remote host closed the connection]
<ellipse> That implies 0% knowledge or worse-than-chance guessing.
<fearoffish> the evals are easy…you write one, and when it fails with method missing, you switch to the other. BAYUM
<shevy> omg...
<shevy> method_missing
<shevy> that thing is abused 90% of the time I swear
<s2013> has anyone else read that book?
<shevy> not really, I only read the pickaxe
waxjar has joined #ruby
<fearoffish> s2013: it's by David, so it's good.
<shevy> after a while, most of these books only tell me most of what I know already
zastern has joined #ruby
<ellipse> Yep.
machuga is now known as machuga|away
<shevy> yeah
<shevy> but the old one
<ellipse> That is when you stop reading.
Banistergalaxy has quit [Ping timeout: 256 seconds]
<shevy> from 2004 or so
kil0byte_ has quit [Remote host closed the connection]
<s2013> its in the library ill check it out
<shevy> yeah... I bought the newer one, and I should not have bought it because I knew too much already :(
mmar has joined #ruby
<shevy> but I feel as if I dont know enough
<shevy> so I am in a dilemma ...
<s2013> so if you read that book and get a good understanding of whats going on can you consider yourself a ruby programmer?
<ellipse> Just ask on IRC.
mmar has quit [Remote host closed the connection]
<s2013> yes but asking on irc is like playing russian roulette except the bullets in 5 chambers
<shevy> s2013: dunno... I think nothing beats experience which you can only gain on your own, really
F__i__L has quit [Remote host closed the connection]
<ellipse> But you can't die.
<s2013> id like to build some ruby application thats not web based but i have no clue what
<havenwood> s2013: The Ruby Programming Language is a great book (http://shop.oreilly.com/product/9780596516178.do). I've heard The Well Grounded Rubyist is highly recommended but unfortunately haven't read it yet!
<fearoffish> pay for RubyMotion, and you can do iOS apps and Mac apps
<fearoffish> or just use macRuby for mac apps
<s2013> yeah someone on #ruby recommended the well grounded rubyist to me so i got it
nwertman has quit [Ping timeout: 264 seconds]
krz has quit [Quit: krz]
<s2013> its pretty good although im mostly readnig chapters as i need them instead of in sequence
<greenarrow> havenwood: did you see my pm?
<havenwood> fearoffish: Or MobiRuby is another cool option: http://mobiruby.org/
<atmosx> s2013: and?
<havenwood> greenarrow: Oops, nope. Checking.
<s2013> and nothing. i just dont know if thats a good strategy or not
<fearoffish> havenwood: daaaayum, that's ugly.
centr0 has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
[dee] has quit [Read error: Connection reset by peer]
ravster has joined #ruby
[dee] has joined #ruby
helios has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
<atmosx> I have to implement cache, write a web interface for my cli ORF finder, and... maybe upgrade my twitter backup tool.
<atmosx> but I'm so bored.
ellipse has quit [Ping timeout: 246 seconds]
<shevy> lol atmosx
<shevy> I only port my old shell, method by method
<shevy> one method a day
<atmosx> good thing to work in just 1 project, I'll do that in the future.
<atmosx> 1 release at the time
brunoro has joined #ruby
<atmosx> working in more than 1 makes confused/bored/uninterested
slainer6_ has quit [Remote host closed the connection]
threesome has joined #ruby
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> hehe
danman has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
zastern has quit [Remote host closed the connection]
ExxKA has quit [Quit: This computer has gone to sleep]
machuga|away is now known as machuga
HAKEON has joined #ruby
centr0 has quit [Quit: centr0]
willejs has joined #ruby
zastern has joined #ruby
Eldariof-ru has joined #ruby
_Amaan has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
elaptics is now known as elaptics`away
<willejs> hi all, i need a bit of help… Im using the graphite gdash chef LWRP and trying to iterate through one hash to generate a hash to configure many graphs...
centr0 has joined #ruby
bklane has joined #ruby
<willejs> i get unexpected tASSOC, expecting keyword_end
<willejs> I'm pretty sure its because I'm looping in a method call?
nomenkun has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
tootubular has joined #ruby
wsterling has joined #ruby
camilasan has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
nlv has quit [Remote host closed the connection]
chandankumar has joined #ruby
theRoUS has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
CaptainKnots has left #ruby [#ruby]
mockra has joined #ruby
sambao21 has joined #ruby
BonSequitur has joined #ruby
Dummies_freelanc has quit [Quit: Leaving.]
ipalaus has joined #ruby
zastern has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
<joshu> i'm trying to get started with mintiest to test my code for a ruby script i'm just starting to write but I feel lost on how do do it. ANyone have any suggestions?
brunoro has quit [Ping timeout: 264 seconds]
<joshu> *minitest
zastern has joined #ruby
LennyLinux has quit [Remote host closed the connection]
codesoda has joined #ruby
apeiros has joined #ruby
HAKEON has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
twoism has joined #ruby
BonSequitur has quit [Client Quit]
buibex has joined #ruby
io_syl has quit [Ping timeout: 245 seconds]
memborsky has joined #ruby
<shevy> willejs: you must have forgot an "end"
<daniel_-> Hi all. anyone can tell me how I can exclude an item of an array from another array, e.g. a1 = [ "hello world", "hello ruby", "hello rails", "bye world" ] and a2 = ["ruby", "bye world"] .... so I want items of a1 that match a2 items to be removed. also it should consider case sensitivity
rgrinberg has joined #ruby
<shevy> willejs: your code looks like a mess
bricker`LA has quit [Ping timeout: 248 seconds]
<atmosx> joshu: it's not an easy thing to grasp at once, BBD and TDD. You need to practice a bit and follow online tutorials to do that at the beginning
buibex has quit [Remote host closed the connection]
<havenwood> joshu: I'd suggest starting by putting your `require 'minitest/autorun'` below the source in question in the same file as the code you are testing, while you get the hang of it.
<joshu> atmosx yeah i've read over that a few times but still not sure how to get started.
<atmosx> daniel_-: you need the - method
buibex has joined #ruby
<atmosx> array1 - arra2 = (array1 minues contents of array2)
<peteyg> What seems more 'proper': putting 'nil' before the comparisons (e.g. nil == value && nil == value2), or putting 'nil' after the comparisons (e.g. value == nil && value2 == nil)?
<shevy> :Elapsed => { I dont know what that is, a hash without {} ?
io_syl has joined #ruby
<shevy> peteyg I only see them after the comparison
<joshu> atmosx havenwood if we take the ruby script i'm just about to start writing. the first thing I need to do is read STDIN.
<havenwood> joshu: Here's a Gist example of single-filing it, nice while you learn: https://gist.github.com/havenwood/5119173
<atmosx> joshu: you write the expected behavior
<shevy> but not even that then
<shevy> if object.nil?
<havenwood> joshu: #gets
<atmosx> joshu: okay, take a standard (expected) stdin and feed your script
<atmosx> the BDD will test the rest, for that specific input
<shevy> joshu: user_input = $stdin.gets.chomp; puts 'Hi there' if user_input == 'hi'
<atmosx> I'm not sure if BDD/TDD are meant to be used in scripts though
<shevy> I hate tests
<atmosx> shevy: yes, me too. I never write tests.
<atmosx> lol
<atmosx> It's so boring
<shevy> well
<joshu> i've never done anything like this before and very new to ruby
<daniel_-> atmosx: thx I want this [ "hello world", "hello ruby", "hello rails", "bye world" ] - ["ruby"] to remove "hello ruby" from a1
<shevy> tests can be fine, I think... just BDD and TDD are so annoying
brunoro has joined #ruby
toastynerd has joined #ruby
<shevy> what I dont mind are specifications
brianpWins has joined #ruby
<atmosx> daniel_-: no
e-dard has joined #ruby
<atmosx> daniel_-: you want to remove the entry that has the word 'ruby' in it?
<apeiros> hm, xeago is awol :(
<daniel_-> yes atmosx
<joshu> havenwood I'll try to do as in your gist
jamesfung14 has joined #ruby
<e-dard> If you have an array of stop words you want to remove from some input, is the right way: stopwords.each { |s| input.gsub!(s, "") } ?
nwertman has joined #ruby
io_syl_ has joined #ruby
marcdel_ has joined #ruby
buibex has quit [Ping timeout: 240 seconds]
<e-dard> Or can gsub handle some way of converting an array of choices into a regex?
io_syl has quit [Ping timeout: 248 seconds]
io_syl_ is now known as io_syl
<bean> daniel_-: do you know how to do that correctly or do you need help?
<atmosx> daniel_-: a.each {|x| a.delete(x) if x.include?('ruby')}
dhruvasagar has quit [Ping timeout: 256 seconds]
<apeiros> e-dard: Regexp.union
theRoUS has quit [Ping timeout: 256 seconds]
Ortuna has joined #ruby
andikr has quit [Remote host closed the connection]
<atmosx> daniel_-: this will iterate through all elements of array 'a' looking for an entry (x) containing the word 'ruby' and will remove it.
<e-dard> apeiros: ah brilliant! So something like input.gsub!(Regexp.union(*stopwords), "") ?
jdripper has quit [Quit: Leaving.]
<bean> atmosx: more like a.reject!{ |element| element.include? "ruby" }
<bean> :p
<apeiros> I think regexp.union accepts an array directly, without splat, too
<e-dard> Cool. Thanks
<apeiros> but yes, that was the idea
<atmosx> bean: ah no idea, never worked with 'reject' method
<bean> yep
Ortuna has quit [Client Quit]
<daniel_-> atmosx: thx man! can I do this with multiple items that should be removed?
<atmosx> daniel_-: sure, but if you have a really large list, that iterates *slowly* you might want to consider more than 1 ways to do this and use the faster for your case.
zeel has quit [Quit: "DEVELOPERS DEVELOPERS DEVELOPERS"]
<daniel_-> because I have an array of many elements in a2
<atmosx> daniel_-: bean's code also works (I tested)
<daniel_-> nice thx bean
<atmosx> daniel_-: many as in 5000?
rupee has joined #ruby
persand has quit [Quit: persand]
<daniel_-> only a 10-20 items
<atmosx> daniel_-: is your computer a p100 mhz? :-) if not, these are not *many*
<waxjar> daniel_-: consider picking a more descriptive name than a2 :p
<daniel_-> [ "hello world", "hello ruby", "hello rails", "bye world" ].reject!{ |element| element.include? ["ruby", "Bye", "world" }
<daniel_-> something like this would be fine
<daniel_-> forgot ]
sepp2k has joined #ruby
<havenwood> daniel_-: You want to remove a substring from the element if it matches as well as removing the whole element if it matches in its entirety?
<daniel_-> yes
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
grobb has joined #ruby
<atmosx> include? takes 1 element
k610 has quit [Ping timeout: 256 seconds]
<atmosx> you need another iteration
<daniel_-> both suggestions of atmosx and bean work fine for 1 element
<apeiros> technically ["ruby", "Bye", "world"] is 1 element
<apeiros> but of course, it doesn't work that way :)
gaahrdner has quit [Remote host closed the connection]
<apeiros> and even if it *did* take multiple elements - it'd still be an iteration anyway. just a hidden one.
<atmosx> apeiros: is there any way to do it without iterating through your elements? I don't think so.
hamakn has joined #ruby
<apeiros> atmosx: no trivial one
<apeiros> none that would be worth it
sayan has joined #ruby
<atmosx> I see
dpatel has joined #ruby
fschuindt has joined #ruby
<waxjar> if you only need to check for the whole string you could flip them round: %w[ruby Bye world].include? element
<apeiros> you could construct an DFA from all the input strings and do it in "one run"
huoxito has quit [Ping timeout: 256 seconds]
<apeiros> waxjar: that'd have been solved by Array#-
<waxjar> ah, of course
<apeiros> oh, actually a trivial way to generate such a DFA is Regexp.union :)
io_syl has joined #ruby
dpatel has quit [Client Quit]
dpatel has joined #ruby
ellipse has joined #ruby
<daniel_-> thx havenwood Ill check that one out
<fschuindt> I've created a gem with a bin file, and so installed it with gem install. how can I put my gem bin in the PATH at time of installation? To be able to execute this by typing the gem name in the terminal, like: $ mygem argv
jdunck has quit [Ping timeout: 252 seconds]
<waxjar> you should set a exectubale directory in your gemspec
<waxjar> *executable
hamakn has quit [Ping timeout: 248 seconds]
wolcanus has joined #ruby
<waxjar> rubygems will do the rest
<apeiros> fschuindt: paste your gemspec
c0rn has joined #ruby
<apeiros> Gem::Specification#executables= is the relevant method
<apeiros> and the rest - as waxjar said
dhruvasagar has joined #ruby
carlyle has joined #ruby
pkrzywicki has joined #ruby
DanKnox_away is now known as DanKnox
mityaz has joined #ruby
jdunck has joined #ruby
LennyLinux has joined #ruby
<daniel_-> havenwood: works fine! is it also possible for case sensitive items, e.g. ["ruby"] should remove "ruby" and "Ruby" entries
<fschuindt> waxjar: I have tried that, but when I run 'camelog', terminal says command not found.
<waxjar> fschuindt, are you using rbenv by chance?
Peej has joined #ruby
<fschuindt> waxjar: I don't even know it
<fschuindt> haha
<apeiros> fschuindt: you're indeed missing the executables=
<apeiros> fschuindt: also you should not set the date via s.date=
centr0 has quit [Quit: centr0]
sayan has quit [Ping timeout: 252 seconds]
<fschuindt> apeiros: hum, ok
<fschuindt> apeiros: what should I do to define the executable?
DanKnox is now known as DanKnox_away
BonSequitur has joined #ruby
<apeiros> s.executables = ['camelog']
marie has joined #ruby
<fschuindt> apeiros: hum
nwertman has quit [Remote host closed the connection]
workmad3 has joined #ruby
centr0 has joined #ruby
teddyp1cker has joined #ruby
<fschuindt> apeiros: fine! thank you mate :)
<ramblex> daniel_-, you can also do it using the regexp union apeiros mentioned: a2r = Regexp.new(Regexp.union(a2).source, Regexp::IGNORECASE); a1.reject { |word| word.match(a2r) }
<atmosx> ramblex: that's complex to understand, I'm not sure if it's a good idea to use code you don't understand.
zigomir has joined #ruby
Kabaka has quit [Quit: BRB]
kil0byte has joined #ruby
<daniel_-> thx ramblex a bit too much for me at the moment ;0
<ramblex> atmosx, hm true, perhaps using any? is better
* apeiros prefers /#{foo.source}/i over Regexp.new
tealmage has joined #ruby
phipes has quit [Quit: phipes]
[dee] has quit [Read error: Connection reset by peer]
Fernandos has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
[dee] has joined #ruby
<Fernandos> Hi
<Fernandos> What's the replacement for rvm?
wolcanus_ has joined #ruby
interactionjaxsn has joined #ruby
robottin1 has quit [Ping timeout: 276 seconds]
blaxter has quit [K-Lined]
<havenwood> Fernandos: RVM remains very popular. Good alternatives include chruby and rbenv.
<atmosx> Fernandos: rbenv
marie has quit [Ping timeout: 246 seconds]
<atmosx> Fernandos: y do you need a replacement?
<daniel_-> never needed to replace rvm
nwertman has joined #ruby
huoxito has joined #ruby
Kabaka has joined #ruby
<ramblex> daniel_-, perhaps: a1.reject { |word| a2.any? { |w2| word =~ /#{w2}/i } }
<Fernandos> atmosx: Last year I worked a lot with RVM and it was so awful and buggy.
<havenwood> Fernandos: Select Ruby by setting environment variables: https://github.com/postmodern/chruby
marie has joined #ruby
DanKnox_away is now known as DanKnox
<havenwood> Fernandos: Select Ruby by making shims: https://github.com/sstephenson/rbenv/
LaPetiteFromage has joined #ruby
<Fernandos> havenwood: that sounds cleaner. I'm on gentoo and there is something called eselect. I can switch ruby versions globaly or localy that way.
chase-work has joined #ruby
wolcanus has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
Astral_ has quit [Ping timeout: 246 seconds]
<Fernandos> eselect allows to change kernel versions, bash-completions, X rendering, java version and a lot more
tealmage has quit [Remote host closed the connection]
<atmosx> Fernandos: seriously?
Fraeon has quit [Remote host closed the connection]
<atmosx> Fernandos: rvm seems buggy to you, but you're using gentoo slots which are *not* buggy?
Ortuna has joined #ruby
<daniel_-> ramblex: cool thx. works fine
tvw has quit []
<atmosx> Fernandos: anyway, gentoo last time I checked, didn't support ruby1.9, the developer wanted to be paid to adjust ruby-1.9 properly on the system. So using system wide ruby is a bad idea anyway.
cj3kim has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
ntus1017 has quit [Remote host closed the connection]
kurtf has joined #ruby
<Fernandos> atmosx: Thanks for the elaboration. I didn't know about the backstory.
Ortuna has quit [Client Quit]
<Fernandos> eselect ruby list Available Ruby profiles: [1] ruby18 [2] ruby19 (with Rubygems) *
<Fernandos> ruby19 and gem19 are currently used
lwgtik has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
horrror has joined #ruby
<atmosx> Fernandos: well, that's cool then :-) Today I switched to 2.0
<Fernandos> After developing a project, using bundler and chruby or rbenv, is it possible that someone checking out my project will run into bugs because bunlder or whatever downlaoded newer versions of the gems I had?
alvaro_o has joined #ruby
chrishough has quit [Quit: chrishough]
<atmosx> Fernandos: yes, that's why you use the bundler. To lock down the gem versions of your program
<horrror> hi guys, i'm starting to get to know with socket programing in Ruby. Need a tip or an idea for a small project to code that will help me understand and learn the fundamentals
guiocavalcanti has quit [Remote host closed the connection]
Astralum has joined #ruby
evenix has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
druonysus has joined #ruby
evenix has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
kpshek has quit []
evenix has quit [Read error: Connection reset by peer]
<ramblex> horrror, the fundamentals of socket programming or ruby or both?
<horrror> socket
prk has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
marie has quit []
johnmilton has joined #ruby
<ramblex> perhaps something like a chat room might be quick and easy to get started. Not very original though :P
etabeta has joined #ruby
saarinen has joined #ruby
etabeta has quit [Quit: leaving]
chrishough has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
awarner has joined #ruby
apok has quit [Quit: apok]
nwertman has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<Fernandos> atmosx: I don't have ruby2 available, would probably have to wait for an official release, or use an ebuild. Which OS do you run?
danslo has quit [Quit: danslo]
ner0x has joined #ruby
kpshek has joined #ruby
kpshek has quit [Client Quit]
[dee] has left #ruby [#ruby]
ToApolytoXaos has joined #ruby
Fraeon has joined #ruby
niklasb has joined #ruby
pinpin404 has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
<shevy> linux!!!
<shevy> oh wait
<shevy> he is a mac traitor :(
<shevy> an ebuild you say?
<shevy> gentoo the source guys?
wolcanus has joined #ruby
<shevy> here we go!
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p195.tar.bz2
mando has quit [Remote host closed the connection]
jlast has joined #ruby
mattbl has joined #ruby
<joshu> in ruby is it best practice to define a variable and then use it or just go ahead and call the method where needed. don't know if I've described that correctly but I have subject = mail.subject and then I use subject. should I just use mail.subject instead?
BizarreCake has quit [Quit: Leaving]
<shevy> joshu: depends on the rest of the code, if you use subject more than once, sure, make it a variable
dmiller has quit [Remote host closed the connection]
shevy has quit [Remote host closed the connection]
dmiller has joined #ruby
lunarjar has quit [Ping timeout: 252 seconds]
ravster has quit [Ping timeout: 248 seconds]
forrest has joined #ruby
rezzack has joined #ruby
dmiller has quit [Remote host closed the connection]
krnflake has joined #ruby
k610 has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
dmiller has joined #ruby
carlyle has quit [Remote host closed the connection]
krnflake has quit [Client Quit]
ravster has joined #ruby
krnflake has joined #ruby
Al_ has quit [Quit: Al_]
apok has joined #ruby
evenix has joined #ruby
lunarjar has joined #ruby
ebouchut has joined #ruby
rdark_ has quit [Quit: leaving]
lewix has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
<appleseed> ANy idea what the limit on number of threads in Ruby on Centos 6 is?
IrishGringo has joined #ruby
jp____ has joined #ruby
ravster has quit [Ping timeout: 245 seconds]
xardas has joined #ruby
BonSequiteur has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
<joshu> shevy thanks
dallasm_ has joined #ruby
<ramblex> appleseed, which version of ruby?
bean has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
bean has joined #ruby
BonSequitur has quit [Ping timeout: 248 seconds]
Es0teric has joined #ruby
nwertman has joined #ruby
benlieb has joined #ruby
Neomex has joined #ruby
benlieb has quit [Remote host closed the connection]
<appleseed> 1.9.3
BonSequiteur is now known as BonSequitur
<apeiros> I'd assume the available memory is the only limit
<apeiros> and maybe 2**32
<appleseed> It bombed when I ran 200 threads. 150 seems to work
<apeiros> interesting. what bomb?
Astralum has quit [Ping timeout: 252 seconds]
blueOxigen has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
<appleseed> Exception that it couldn't create a timer thread
<apeiros> fun. I have 250 threads here on first try
<apeiros> 500 don't have an issue either
<appleseed> I think the Net::Ping::External may create threads also
interactionjaxsn has joined #ruby
yashshah has quit [Ping timeout: 245 seconds]
blischalk has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
<havenwood> appleseed: What is you max threads set to?: cat /proc/sys/kernel/threads-max
<apeiros> 2048 is the limit here
<apeiros> ah right, 1.9 maps ruby threads to OS threads
<appleseed> Still running an overall rate of 32 systems pinged / second
<apeiros> so the OS would have a say in it too
ananthakumaran has quit [Quit: Leaving.]
VforAlecs has joined #ruby
nettoweb has quit [Quit: nettoweb]
Leighton has joined #ruby
<appleseed> cat /proc/sys/kernel/threads-max
<appleseed> 59612
robbyoconnor has quit [Ping timeout: 256 seconds]
<nightfly__> ulimit -u
Astralum has joined #ruby
AndChat| has quit [Ping timeout: 256 seconds]
<appleseed> 1024
<aedorn> hmmm
Banistergalaxy has joined #ruby
Collin_ has joined #ruby
kpshek has joined #ruby
ravster has joined #ruby
ramblex has quit [Remote host closed the connection]
v0n has joined #ruby
druonysus has quit [Quit: Konversation terminated!]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
haxrbyte has quit [Read error: Connection reset by peer]
ellipse has quit [Quit: Bye]
<apeiros> anybody know what's up with Xeago?
Rumsteak has left #ruby [#ruby]
Rumsteak has joined #ruby
kemist has joined #ruby
awwaiid has joined #ruby
Collin_ has quit [Ping timeout: 248 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
guiocavalcanti has quit [Ping timeout: 256 seconds]
guiocavalcanti has joined #ruby
<kemist> Basic question: I added a boolean field to my Mongoid model object. Do I need to add it to all objects in the collection before being able to query it?
reset has joined #ruby
Kabaka has quit [Read error: Connection reset by peer]
SDr has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
<kemist> If I did something like, where(:new_field => false) I wouldn't get anything back b/c new_field doesn't exist as a property of the document as stored in Monogo.
teddyp1cker has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
pen has joined #ruby
Kabaka has joined #ruby
fschuindt has joined #ruby
kirun has joined #ruby
jbpros has joined #ruby
<aedorn> apeiros: I shall take the guess that his internet connection died a terrible, but temporary, death.
<Dwarf> Ello, I'm stuck. I'm trying to do some logic but my brain isn't logicing. I have an if that fires if one of the two is true, but I don't want it to run if either of those is false
dhruvasagar has quit [Ping timeout: 256 seconds]
blischalk has quit [Quit: blischalk]
<appleseed> That would be an AND condition.
<Dwarf> Wait
<mstksg> can it fire if they are both true
<Dwarf> Here comes the part where the logic just completely disappears
<Dwarf> I'll explain it more in depth so I can follow myself
<Dwarf> Should be easier for you guys as well
<Dwarf> I have a commandline argument called foreground
workmad3 has joined #ruby
emmanuelux has joined #ruby
<Dwarf> The function I'm doing restarts the script, and it will automatically fork into the background, unless the foreground argument is set. On restarting, I want it to be forked into the background, unless the original program wasn't, or if I explicitly tell it not to
jbpros_ has joined #ruby
<mstksg> can you draw a truth table
<Dwarf> I'm a terrible artist
<mstksg> er i mean
<mstksg> enumerate one
<aedorn> lol
<Dwarf> I can't
<Dwarf> No idea what a truth table is
<mstksg> you have your parameters A, B, C etc.
<Morrolan> mapping input values to expected output values.
<mstksg> A true, B true => false
<mstksg> A false, B true => true
<Morrolan> "If a is true and b is false then the output should be blablabla", "if a is false and b is false then the output should be blablabla"
<mstksg> etc.
jbpros has quit [Ping timeout: 246 seconds]
jbpros_ is now known as jbpros
<Dwarf> I see
<aedorn> I'm more confused about the confusion at the moment.
<mstksg> so i guess your parameters are the initial foreground argument, the state of the lst program, and your new no-fork argument?
<Havvy> The only ones you need are conjunction (and), disjunction (or) and implication (if).
<Morrolan> But if I understood you correctly then, if either you tell it to stay in the foreground or the original program was in the foreground, the new one should be in the foreground, too?
<Dwarf> Unless I tell it not to, yea
cpruitt has joined #ruby
IrishGringo has quit [Remote host closed the connection]
s00pcan has quit [Read error: Operation timed out]
sambao21 has quit [Quit: Computer has gone to sleep.]
browndawg1 has left #ruby [#ruby]
undersc0re97 has joined #ruby
<mstksg> so if A is original program, B is no-fork flag, C is to fork or not
<mstksg> A, !B -> !C
<mstksg> er wait
<mstksg> A, B -> C
<mstksg> sorry ><
jgrevich has quit [Remote host closed the connection]
<mstksg> A, B -> !C
nazty has joined #ruby
<mstksg> !A, B -> !C
sambao21 has joined #ruby
<pitzips> What's another way to check if a string matches any value from an array, but returning which value it matches. I have this, but it only returns true/false: https://gist.github.com/pitzips/449fe17999aed686284b
<mstksg> A, !B -> C
<mstksg> !A, !B -> C
sambao21 has quit [Client Quit]
fermion has quit [Ping timeout: 260 seconds]
<mstksg> oh last one should be !A, !B -> !C
<mstksg> so that looks like A && !B
<Dwarf> That
<greenarrow> http://eval.in/30549 how can i remove \n from words i've tried gsub but it doesnt work
k610 has quit [Quit: Leaving]
<havenwood> greenarrow: #chomp
<apeiros> greenarrow: '\n' is not "\n"
<apeiros> greenarrow: '\n' is "\\n"
m8 has joined #ruby
stoic_squirrel has joined #ruby
<greenarrow> oh
<apeiros> chomp will remove "\n"
<havenwood> apeiros: Oh, i didn't read very closely. >.>
<greenarrow> its being added at the end of the line in ubuntu
<Dwarf> Chomp will remove \n or \n\r
<Dwarf> Or just \r
<apeiros> Dwarf: you mean \r\n
bklane has quit [Remote host closed the connection]
<Dwarf> Ehm
<greenarrow> lemme try
<Dwarf> yea
<apeiros> greenarrow: pretty sure that's "\n" you talk about
<apeiros> and then chomp will work
<apeiros> as suggested by havenwood
bklane has joined #ruby
<greenarrow> can i just do .chomp on the array
alex__c2022 has quit [Quit: alex__c2022]
<apeiros> greenarrow: no
<apeiros> chomp is a string method
<greenarrow> ok
mklappstuhl has quit [Read error: Connection reset by peer]
<apeiros> array does *not* care what items it contains (with probably the sole exception of Array#compact)
<havenwood> greenarrow: Are the strings coming from #gets? If so, #gets.chomp.
kristofers has joined #ruby
mklappstuhl has joined #ruby
alex__c2022 has joined #ruby
<atmosx> Fernandos: I run OSX as a desktop, FreeBSD and Gentoo as servers (with a ruby app on them). I use 'rvm' though. System-wide ruby is used from the system for builds (i.e. vim)
Kabaka has quit [Read error: Connection reset by peer]
Proshot has quit [Quit: Leaving]
lushious has quit [Quit: "RAGEQUITS"]
botorosa has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
undersc0re97 has quit [Quit: WeeChat 0.4.0]
Michael_ has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Remote host closed the connection]
thebastl has joined #ruby
Davey has joined #ruby
Kabaka has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
toastynerd has quit [Remote host closed the connection]
ravster has quit [Ping timeout: 256 seconds]
<greenarrow> http://eval.in/30552 still seems to be there
guiocavalcanti has quit [Read error: Connection reset by peer]
<havenwood> greenarrow: #each doesn't modify the receiver
guiocavalcanti has joined #ruby
<greenarrow> what is the way to do it?
cek has joined #ruby
<cek> is there any callback called when a class is defined?
<cek> class Class; end; callback called after end
sleetdrop has quit [Quit: Computer has gone to sleep.]
<Morrolan> greenarrow: .map would be a possibility. It calls the code inside the block on each element, and creates a new array with the return values of the block.
<apeiros> cek: no
<havenwood> greenarrow: Like apeiros said: "ipsum\\n" != "ipsum\n"
<apeiros> set_trace_func might emit something.
<cek> 'ipsum\n'
<greenarrow> thats whats comming back in my console {"Lorem"=>1, "ipsum"=>1, "ipsum\n"=>1}
<cek> forget that, i'll rewrite the code
<havenwood> greenarrow: ["hi\n", "there\n"].map! &:chomp; #=> ["hi", "there"]
cek has left #ruby [#ruby]
<r0bglees0n> >> %W(hi\n there\n).map(&:chomp)
<eval-in> r0bglees0n => ["hi", "there"] (http://eval.in/30554)
<r0bglees0n> >> RUBY_DESCRIPTION
<eval-in> r0bglees0n => "ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]" (http://eval.in/30555)
<greenarrow> nice
<r0bglees0n> ohhhh
<Morrolan> In the case of chomp you could also use .each with .chomp!, if you prefer.
<r0bglees0n> 2.0.0
mattbl has quit [Quit: This computer has gone to sleep]
<r0bglees0n> shiny :)
Gooder`` has quit [Read error: Connection reset by peer]
<pitzips> I have an array of domains, and I want to know if the user's email contains any of those domains. If yes, which domain from the array. any? method only returns true/false
<Havvy> Whoo, I think I just figured out the key difference between prototypical and classical inheritance.
<greenarrow> thanks everyone
<apeiros> pitzips: .find
<r0bglees0n> >> %w(google.com gmail.com).find { |domain| "rob@gmail.com" =~ /#{domain}$/ }
<eval-in> r0bglees0n => "gmail.com" (http://eval.in/30556)
kurtf has quit [Quit: Goodbye]
wesside_ has quit [Quit: Computer has gone to sleep.]
ebouchut has quit [Quit: This computer has gone to sleep]
<apeiros> \z
<apeiros> habits
<apeiros> using $ is a bad habit
<r0bglees0n> apeiros: true
<appleseed> yeah, you should always use credit cards....
chandankumar has quit [Ping timeout: 248 seconds]
* apeiros prefers debit cards
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
* C0deMaver1ck prefers bitcoin
deadalus has quit [Changing host]
deadalus has joined #ruby
<apeiros> your grocery store accepts them?
<C0deMaver1ck> no
<C0deMaver1ck> but my hosting provider does
rakl has quit [Quit: sleeping]
wolcanus has quit [Remote host closed the connection]
wesside has joined #ruby
wolcanus has joined #ruby
willejs has quit [Quit: willejs]
cj3kim has joined #ruby
techminer has left #ruby [#ruby]
ravster has joined #ruby
Spami_ has joined #ruby
sambao21 has joined #ruby
bklane has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jdunck has quit [Ping timeout: 246 seconds]
nomenkun has quit [Remote host closed the connection]
djwonk has joined #ruby
djwonk has quit [Client Quit]
cj3kim has quit [Remote host closed the connection]
jdunck has joined #ruby
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
mateuszzawisza has joined #ruby
motto has joined #ruby
pinpin404 has quit [Ping timeout: 246 seconds]
bklane has joined #ruby
m8 has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has quit [Quit: chrishough]
marr has joined #ruby
pinpin404 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
awc737 has joined #ruby
rhys has joined #ruby
chandankumar has joined #ruby
<rhys> why does ruby have %w? it just seems weird.
mmitchell has joined #ruby
saarinen has quit [Quit: saarinen]
<otters> does it? I like it
<rhys> is it for times when you want to embed ruby in other languages.
<otters> no
<otters> it's just for convenience
<waxjar> it is p weird, but it's nice to not type out all the quotes and comma's :p
<rhys> i'm just real big on the readability of things. I wrote my first useful ruby script and it is amazingly elegant.
<havenwood> >> %i[symbols too]
<eval-in> havenwood => [:symbols, :too] (http://eval.in/30557)
mattbl has joined #ruby
pipework has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
katsrc has joined #ruby
kindjal has joined #ruby
troessner has quit [Quit: Leaving]
ChrisBolton has quit [Quit: ChrisBolton]
jgarvey has quit [Quit: Leaving]
carloslopes has quit [Remote host closed the connection]
paul has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
guiocavalcanti has quit [Read error: Connection reset by peer]
cj3kim has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
mateuszzawisza has left #ruby [#ruby]
jbpros has joined #ruby
agjacome has joined #ruby
druonysus has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
<kindjal> If I make a ruby daemon and I want to package it for installation on a server, is it correct that anything outside of gemdir must be packaged in something else, like a .deb or .rpm?
<kindjal> ie. There's no such thing as a "fully contained" gem, including init.d scripts /etc files etc.?
ravster has quit [Ping timeout: 248 seconds]
alienven1m has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 240 seconds]
alienvenom has joined #ruby
c0rn has quit [Ping timeout: 248 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
druonysus has quit [Remote host closed the connection]
mando has joined #ruby
stkowski has joined #ruby
saarinen has joined #ruby
monkegjinni has quit [Remote host closed the connection]
backjlack has quit [Remote host closed the connection]
smtlaissezfaire has joined #ruby
backjlack has joined #ruby
cj3kim has joined #ruby
ramblex has joined #ruby
itman_ is now known as itman
awc737 has quit [Ping timeout: 245 seconds]
pitzips has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
kofno has quit [Remote host closed the connection]
jrendell has joined #ruby
kemist has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
awc737 has joined #ruby
c0rn has joined #ruby
cj3kim has quit [Remote host closed the connection]
manutter has joined #ruby
d2dchat has joined #ruby
ravster has joined #ruby
grobb has quit [Quit: grobb]
cj3kim has joined #ruby
alexgordon has joined #ruby
krawchyk has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
skattyadz has quit [Quit: skattyadz]
awc737 has quit [Ping timeout: 245 seconds]
ravster has quit [Read error: Connection reset by peer]
fermion has joined #ruby
yalue has quit [Quit: Leaving]
cj3kim has quit [Remote host closed the connection]
_nitti has joined #ruby
ewag has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
brianherman has quit [Read error: Operation timed out]
cj3kim has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
_nitti_ has quit [Ping timeout: 252 seconds]
cj3kim has quit [Remote host closed the connection]
banister`sleep has joined #ruby
travisjeffery has joined #ruby
brianherman has joined #ruby
backjlack has quit [Remote host closed the connection]
codemonkey010101 has quit [Remote host closed the connection]
Xeago has joined #ruby
<apeiros> Xeago: got a phoenix down? :)
darkapex has quit [Ping timeout: 252 seconds]
thomasfedb has quit [Ping timeout: 246 seconds]
guiocavalcanti has quit [Remote host closed the connection]
waxjar has quit [Ping timeout: 252 seconds]
<appleseed> I now have a script that runs multiple threads of nmap. I'm finishing about 8 systems/second. It's cool.
guiocavalcanti has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
welias has joined #ruby
mnemon2 is now known as mnemon
Zolo has joined #ruby
geekbri has quit [Remote host closed the connection]
guiocavalcanti has quit [Ping timeout: 264 seconds]
Yakko has quit [Read error: Connection reset by peer]
thomasfedb has joined #ruby
Yakko has joined #ruby
memborsky has quit [Quit: bye]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
backjlack has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
awc737 has joined #ruby
Eldariof-ru has quit [Ping timeout: 264 seconds]
acrussell has quit [Quit: Leaving.]
Collin__ has joined #ruby
waxjar has joined #ruby
chrishough has joined #ruby
chriskk has joined #ruby
evenix has quit [Read error: Connection reset by peer]
darkapex has joined #ruby
evenix has joined #ruby
rhys_ has joined #ruby
ravster has joined #ruby
spider-mario_ has joined #ruby
cj3kim has joined #ruby
Heero` has joined #ruby
Beoran__ has joined #ruby
airtonix has joined #ruby
m8tt8 has joined #ruby
nettoweb has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
ramblex has quit [Remote host closed the connection]
YanniHoza is now known as TheGreatest
__eka__ has joined #ruby
manutter has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
evenix has quit [Ping timeout: 256 seconds]
Collin- has joined #ruby
rhys has quit [Ping timeout: 260 seconds]
spider-mario has quit [Ping timeout: 260 seconds]
motto has quit [Ping timeout: 260 seconds]
Heero has quit [Ping timeout: 260 seconds]
Beoran_ has quit [Ping timeout: 260 seconds]
airtonix_ has quit [Ping timeout: 260 seconds]
Drakevr has quit [Ping timeout: 260 seconds]
centr0 has quit [Quit: centr0]
eka has quit [Ping timeout: 260 seconds]
kirun has quit [Ping timeout: 260 seconds]
Collin__ has quit [Remote host closed the connection]
ayonix has joined #ruby
thelames1 has joined #ruby
kirun has joined #ruby
ndngvr` has joined #ruby
nomenkun has joined #ruby
centr0 has joined #ruby
centr0 has quit [Client Quit]
arya has quit [Ping timeout: 248 seconds]
centr0 has joined #ruby
i2hGm has joined #ruby
i2hGm has quit [Max SendQ exceeded]
sgkim1261 has joined #ruby
GCnop has joined #ruby
GCnop has quit [Max SendQ exceeded]
workmad3_ has joined #ruby
maetthew- has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
drPoggs has joined #ruby
e9 has joined #ruby
supki_ has joined #ruby
mstksg_ has joined #ruby
_nitti has quit [*.net *.split]
workmad3 has quit [*.net *.split]
teddyp1cker has quit [*.net *.split]
thelamest has quit [*.net *.split]
devdazed has quit [*.net *.split]
maetthew has quit [*.net *.split]
clocKwize has quit [*.net *.split]
wu_lmao has quit [*.net *.split]
timonv has quit [*.net *.split]
mogsy has quit [*.net *.split]
[Neurotic]_ has quit [*.net *.split]
jaybe has quit [*.net *.split]
dr_Poggs has quit [*.net *.split]
xargoon has quit [*.net *.split]
ndngvr has quit [*.net *.split]
sgkim126l has quit [*.net *.split]
AlSquire has quit [*.net *.split]
mstksg has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
dekz__ has quit [*.net *.split]
sumark has quit [*.net *.split]
virtuose has quit [*.net *.split]
Zelest has quit [*.net *.split]
adrian1 has quit [*.net *.split]
emptynine has quit [*.net *.split]
supki has quit [*.net *.split]
tethra has quit [*.net *.split]
moos3 has joined #ruby
chandankumar has quit [Quit: Leaving]
Khsft has joined #ruby
Khsft has quit [Max SendQ exceeded]
workmad3_ is now known as workmad3
daniel_- has quit [Ping timeout: 256 seconds]
mogsy has joined #ruby
Michael_ has quit [Remote host closed the connection]
RIZaf has joined #ruby
Nisstyre-laptop has joined #ruby
xargoon has joined #ruby
RIZaf has quit [Remote host closed the connection]
Zelest has joined #ruby
jaybe has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
jlast has quit [Remote host closed the connection]
machuga is now known as machuga|away
pitzips has joined #ruby
prk has joined #ruby
Havvy has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
devdazed has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
rakl has joined #ruby
spider-mario_ is now known as spider-mario
jbpros has quit [Quit: jbpros]
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
prk has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
wu_lmao has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
arya has joined #ruby
Yakko has quit [Read error: Connection reset by peer]
pipework has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
jp____ has quit [Ping timeout: 264 seconds]
dustint has quit [Quit: Leaving]
mockra has quit [Remote host closed the connection]
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
monkegjinni has quit [Remote host closed the connection]
mockra has joined #ruby
centr0 has quit [Quit: centr0]
elaptics`away is now known as elaptics
saarinen has quit [Quit: saarinen]
centr0 has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
monkegjinni has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
willejs has joined #ruby
helllen_ has joined #ruby
ravster has quit [Ping timeout: 252 seconds]
Lubinski has quit [Quit: Leaving]
<Eiam> I have a data structure (a hash with arrays and hashes nested down a few levels) I want to enumerate through and find all the Integer/Numbers, get some data based on those numbers, and replace them inline, e.g. replace the array of numbers with an array of objects I create
<Eiam> I'm not sure what tool to solve this problem..
<Eiam> recursion? a bunch of each nests?
JimmyNeutron has joined #ruby
lkba has joined #ruby
<apeiros> Eiam: proper datastructures.
<Eiam> ha!
<apeiros> i.e.: classes
<Eiam> well in this case the data structure is yaml
<Eiam> i suppose i could parse the yaml into a class
<Eiam> =)
<apeiros> that's the persistency, or the source :-p
mityaz has quit [Quit: See ya!]
<Eiam> actually I think that may work better. just make a class called blah, and have accessors for each thing, then i can just say blah.issues.map
<Eiam> why didn't I think of that?
<Eiam> oh right, I'm not a good programmer. okay, well anyway, thanks apeiros I think that will solve this nicely!
<apeiros> ^^
mahmoudimus has joined #ruby
mad_hatter_ has quit [Quit: Leaving.]
kpshek has quit []
horofox has joined #ruby
codecop has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
moos3 has joined #ruby
Ontolog has joined #ruby
prk` has joined #ruby
cj3kim has quit [Remote host closed the connection]
kpshek has joined #ruby
moos3 has quit [Client Quit]
InFlames has joined #ruby
Nuck has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
jamie_ca_ has quit [Quit: jamie_ca_]
prk` is now known as prk
fschuindt has quit [Quit: Computer has gone to sleep.]
alex__c2022 has quit [Quit: alex__c2022]
Animawish has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<Xeago> well, after 30 hours of not having water
<Xeago> it is quite a pain in the ass
dallasm_ has quit []
<apeiros> oy, weather issues?
swarley has left #ruby ["Leaving"]
ravster has joined #ruby
Xeago has quit [Remote host closed the connection]
pinpin404 has quit [Remote host closed the connection]
Ontolog_ has joined #ruby
Michael_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
moos3 has joined #ruby
rgrinberg has quit [Ping timeout: 252 seconds]
rpeterr has joined #ruby
banister`sleep is now known as banisterfiend
graydot has joined #ruby
_nitti has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
mando has quit [Remote host closed the connection]
Fernandos has left #ruby ["PART #angularjs :ISON mikolalysenko Mnkras-Laptop"]
staafl_alt has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
Ontolog has quit [Ping timeout: 256 seconds]
staafl has quit [Read error: Connection reset by peer]
forrest has quit [Quit: Leaving]
Proshot has joined #ruby
prk` has joined #ruby
ravster has quit [Ping timeout: 252 seconds]
prk has quit [Remote host closed the connection]
prk` is now known as prk
kaballero has joined #ruby
danman has quit [Quit: danman]
daniel_- has quit [Ping timeout: 248 seconds]
pothibo has joined #ruby
v0n has quit [Read error: Operation timed out]
skattyadz has joined #ruby
Guedes0 has joined #ruby
vlad_starkov has joined #ruby
kaballero has quit [Client Quit]
saarinen has joined #ruby
niklasb has joined #ruby
alexwh has left #ruby [#ruby]
failshell has quit [Remote host closed the connection]
brianherman has quit [Read error: Connection reset by peer]
jp____ has joined #ruby
<Eiam> apeiros: not ashamed to admit it, just sad =) I've avoided taking a job as a full time programmer because I feel like in my 30s I'm so far behind, I'd just be starting as a novice that has a lot of bad habits and stupid things
mmitchell has quit [Ping timeout: 256 seconds]
jerius has quit []
<Eiam> I'm generally more focused on making code do things, not on… doing it right I suppose. anyway
<Eiam> life sucks sometimes =)
<apeiros> meh. age doesn't matter. willingness to learn and ability does.
wmoxam has quit [Ping timeout: 241 seconds]
<Eiam> or ya know, time ;)
<gf3> Psh, guy at my work just started programming about 6 months ago, he's now an iOS developer pumping out apps
<gf3> He's 32
<appleseed> I want to go back to programming in assembler....
<breakingthings> You sound insane.
<Eiam> not saying I cannot do it =) I said it would start me really far down
sailias has quit [Quit: Leaving.]
<breakingthings> Which may or may not be a good thing depending on your individual frame of reference.
<Eiam> I love programming, but not enough to change careers and start all over =)
<gf3> Eiam: What do you do now?
<breakingthings> ^
<Eiam> gf3: I'm an engineering project manager
<gf3> Mmm
<breakingthings> Good nuff for me
<breakingthings> carry on
<Eiam> I generally code to write tools to support that role.
horrror has quit [Quit: horrror]
<Eiam> =)
enebo has quit [Quit: enebo]
postmodern has joined #ruby
<Eiam> sometimes those tools are in ruby, sometimes obj-c, just whatever works
<banisterfiend> Eiam: were you the guy who did a really expensive course on rails?
<tjbiddle> What would be the windows equivalent of checking for the root of the system (Or drive - if that's my limit) - Eg in a *nix system I'd have (Dir.pwd == "/") or something
<Eiam> banisterfiend: no, but I sure could use one =)
<Eiam> i do rails stuff, poorly. but I do get things done!
Kar- has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
<banisterfiend> Eiam: you seem to lack a bit of confidence :)
<breakingthings> Getting things done is the first step to getting things done right
<Eiam> banisterfiend: I lack time!
<banisterfiend> Eiam: but once you 'grok' programming it all becomes easy
vlad_starkov has quit [Ping timeout: 276 seconds]
<Eiam> tools are rarely essential to shipping products
<Eiam> they are always nice to haves
<sam113101> "grok"?
<banisterfiend> sam113101: understand
Rumsteak_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
travisjeffery has quit [Quit: Textual IRC Client: www.textualapp.com]
akells` has quit [Remote host closed the connection]
Rumsteak has quit [Ping timeout: 256 seconds]
Rumsteak_ is now known as Rumsteak
<Eiam> banisterfiend: I wish I could flog my 15 year old self, "stop playing everquest, instead stop sucking at coding!"
<Eiam> =)
moos3 has quit [Quit: Computer has gone to sleep.]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bean has quit [Quit: Computer has gone to sleep.]
Cassim has left #ruby [#ruby]
kindjal has joined #ruby
piatek has joined #ruby
bklane has quit [Remote host closed the connection]
ravster has joined #ruby
travisjeffery has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
c0rn has quit [Quit: Lates.]
gr4yscale has joined #ruby
monkegjinni has quit [Remote host closed the connection]
toddWork_ has quit [Quit: toddWork_]
xardas has quit [Read error: Connection reset by peer]
s2013 has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
breakingthings has quit [Quit: breakingthings]
interactionjaxsn has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
Ortuna has joined #ruby
kirun has quit [Quit: Client exiting]
oxnard_ has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
akhet has quit [Remote host closed the connection]
manouch has joined #ruby
<manouch> hi… this ignores symlink directories: spec/**/*_spec.rb
<manouch> how can i enable it for symlink directories as well?
Ortuna has quit [Client Quit]
Michael_ has quit [Ping timeout: 256 seconds]
gaahrdner has joined #ruby
piatek has quit []
kpshek has quit []
c0rn has joined #ruby
c0rn has quit [Client Quit]
jtharris has quit [Quit: WeeChat 0.4.0]
Ortuna has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 248 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
Nuck has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
mneorr_ has joined #ruby
<Eiam> anyway, I do appreciate the help banisterfiend, apeiros etc =)
blacktulip has quit [Remote host closed the connection]
solidoodlesuppor has quit [Remote host closed the connection]
YanniHoza has joined #ruby
rgrinberg has joined #ruby
graft has quit [Ping timeout: 264 seconds]
Spami_ has joined #ruby
LaPetiteFromage has joined #ruby
peta_ has quit [Quit: peta_]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
c0rn has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
moos3 has joined #ruby
m8tt8 has quit [Quit: Sto andando via]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
mercwithamouth has joined #ruby
reset has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
<Xeago> no, leak in a pipe leading to possible contamination
<Xeago> no, leak in a pipe leading to possible contamination
<Xeago> just ferried 25L over
jnoob22 has quit [Remote host closed the connection]
_Amaan has quit [Quit: _Amaan]
<Xeago> btw, am around now, girlfriend was using laptop
<Xeago> while I was ferrying..
Nuck has left #ruby ["WeeChat 0.4.0"]
YanniHoza has quit [Remote host closed the connection]
helllen_ has quit [Quit: helllen_]
splittingred has quit [Quit: splittingred]
kpshek has joined #ruby
filipe has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
splittingred has joined #ruby
wolcanus_ has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
kpshek has quit [Client Quit]
brianherman has joined #ruby
splittingred has quit [Client Quit]
<apeiros> Xeago: np, but I'm off now. you wanted to send me an email, though ;-)
_nitti has quit [Remote host closed the connection]
_maes_ has quit [Ping timeout: 256 seconds]
wolcanus has quit [Read error: Operation timed out]
<apeiros> (no hurry, though - won't get to read it before tomorrow evening)
zeeraw has joined #ruby
idkazuma has joined #ruby
<Xeago> yes, first wcs then water, probably get it done tonight or else early morning
<Xeago> we did defrost the freezer for water this morning, was quite desperate lol
pothibo has quit [Quit: pothibo]
LennyLinux has quit [Remote host closed the connection]
<Xeago> was very good water
<Xeago> tastier than most bottled water
kristofers has quit []
danslo has joined #ruby
ner0x has joined #ruby
matematikaadit has joined #ruby
Animawish has quit [Quit: Animawish]
zigomir has quit [Ping timeout: 276 seconds]
rhys_ has quit [Quit: Leaving]
<apeiros> :)
<apeiros> well, 25L should get you a bit for a while
<apeiros> gn8 now
apeiros has quit [Remote host closed the connection]
filipe has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
<Xeago> take care
kil0byte has joined #ruby
SAUCYSALAMANDER has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
oxnard_ has quit [Read error: No route to host]
oxnard_ has joined #ruby
ariedler has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 256 seconds]
kindjal has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
breakingthings has joined #ruby
mneorr_ has quit [Read error: Connection reset by peer]
phrame has quit [Ping timeout: 256 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
nettoweb has quit [Quit: nettoweb]
Heero` has quit [Ping timeout: 276 seconds]
jdunck has joined #ruby
phrame has joined #ruby
<e-dard> Supposing a function does not rely, whatsoever on state in the class it is defined in, is there any reason to make it an instance function? I don't see one, and coming from my background I wouldn't.
mboers has joined #ruby
<e-dard> But I see a lot of "default" definitions in Ruby and especially Rails where things are defined as either methods, or instance functions. Why is this?
TotalEvil has joined #ruby
<TotalEvil> hi2all
<TotalEvil> anyone can help with gem -> rpm rhel
chrishunt has joined #ruby
<MrZYX> e-dard: it might still fit into the domain of the class, also ruby has no functions, only methods ;)
<e-dard> MrZYX I consider anything that does not rely on state not passed directly into the "method" a function.
tootubular has quit [Quit: tootubular]
<e-dard> MrZYX That was a convoluted sentence, but you get the idea..
saarinen has quit [Quit: saarinen]
<MrZYX> I consider everything that has a receiver a method
<MrZYX> and in ruby every method call has an receiver
gyre007 has joined #ruby
<nightfly__> but... lambdas...
<e-dard> MrZYX: OK, we both agree with each other then. It's semantics :)
iamlacroix has joined #ruby
iamlacroix has quit [Remote host closed the connection]
mboers has quit [Client Quit]
Michael_ has joined #ruby
iamlacroix has joined #ruby
ShapeShi- is now known as ShapeShifter499
ravster has quit [Ping timeout: 245 seconds]
<MrZYX> nightfly__: well, lambdas are kind of objects in ruby, not really functions either
<e-dard> MrZYX: I guess I see the domain point, but personally I tend to define every method as a class method by default, unless there is a reason not to. Yet I see all around me defining instance methods unless there is a specific reason not to. Just wondered why this might be :)
dekz__ has joined #ruby
cofin has joined #ruby
<waxjar> blocks/lambdas/procs are Ruby's functions, sort of
<lectrick> We have a nasty situation where we have a suite of > 1000 tests and ONE of them is leaving state behind in such a way that it randomly causes another test to fail
iamlacroix has left #ruby [#ruby]
appleseed has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
<MrZYX> hah, you're not alone
<lectrick> I think I need to write a minitest runner which runs all tests in sequence, one at a time, with this one failing test, to figure out who's the culprit. Anyone ever seen a tool like this before?
<lectrick> So if I have tests 1-10 and test 8 keeps failing it will run: 1, 8, 2, 8, 3, 8, etc... until it figures out who is the culprit
<waxjar> e-dard, do you have any examples?
<MrZYX> hm, in rspec once you discovered a seed that causes the right sequence you can pass it as parameter to reproduce, not sure if there's something like that for minitest
<lectrick> MrZYX: The problem is that even with that, it could be ANY test that runs before it which is screwing things up
<e-dard> waxjar: well I recently moved to a Ruby/Rails shop (my background is Python/Java and now some Go) and it's basically what I'm generally seeing in code-reviews.
<e-dard> waxjar: people by default define instance methods even if they are not making use of any instance state. Seems to be a normal idiom.
vlad_starkov has joined #ruby
mediko_ has quit [Remote host closed the connection]
peteyg has quit [Ping timeout: 264 seconds]
<waxjar> do you mean methods like to_s, for example?
moos3 has joined #ruby
<e-dard> waxjar: no, because I assume something like to_s would be overloading the instance's method.
<e-dard> s/overloading/overriding
moos3 has quit [Client Quit]
peteyg has joined #ruby
<e-dard> I guess it's just style/habit, then :)
newUser1234 has quit [Remote host closed the connection]
daniel_- has joined #ruby
<waxjar> give us some examples :) i don't really know what you mean
ccooke has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 240 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
rakl has quit [Quit: sleeping]
blueOxigen has quit [Ping timeout: 264 seconds]
jgrevich has joined #ruby
krnflake_ has joined #ruby
YanniHoza has joined #ruby
ccooke has joined #ruby
thebastl has quit [Remote host closed the connection]
_nitti has joined #ruby
krnflake has quit [Quit: ZNC - http://znc.in]
machuga|away is now known as machuga
mattbl has quit [Quit: Leaving]
<Eiam> it sounds like people want modules
<Eiam> not classes ?
<Eiam> e-dard:
wmx26 has joined #ruby
wmx26 has quit [Max SendQ exceeded]
<Eiam> if they are making instances but not using instance state, it sounds like methods inside a module ?
<e-dard> Eiam: yes exactly
YanniHoza has left #ruby [#ruby]
<Eiam> so it sounds like they want a module, not a class =0
<e-dard> Well in some cases of course they use state
<Eiam> okay, then define the methods on self in the class
rakl has joined #ruby
brianpWins has quit [Quit: brianpWins]
<e-dard> Exactly
[Neurotic]_ has joined #ruby
<e-dard> I just wanted to check that what I consider sane is not insane to Rubyists ;)
<MrZYX> are the methods used only externally or only internally in the class?
<Eiam> for me, if I end up having a lot of stuff under self and almost nothing that requires an instance, i move the self stuff to a module
<e-dard> Yup
Michael_ has quit [Remote host closed the connection]
<e-dard> Right, I have to go - late here. Thanks all.
gr4yscale has quit [Quit: Computer has gone to sleep.]
TotalEvil has left #ruby [#ruby]
Michael_ has joined #ruby
ariedler has joined #ruby
thebastl has joined #ruby
MrZYX is now known as MrZYX|off
Ontolog has joined #ruby
marwinism has quit [Read error: Operation timed out]
ravster has joined #ruby
Ontolog_ has quit [Ping timeout: 256 seconds]
bakingbread has quit [Ping timeout: 245 seconds]
jkline has joined #ruby
<jkline> I have a function called wat. Why can I not leave off the parenthesis when I call wat and pass in a Hash?
<jkline> wat { :foo => "bar" } # doesn't seem to work
<jkline> wat( { :foo => "bar" } ) # works, awesome
<jkline> I'll gladly rt an fm, but I don't know what the thing i'm looking for is called
Leighton has quit [Quit: Leaving]
geggam_wk has quit [Remote host closed the connection]
TheGreatest has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 246 seconds]
julianhurley has joined #ruby
phipes has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
Mattx has joined #ruby
anonymuse has quit [Quit: Leaving...]
saarinen has joined #ruby
Gate_ is now known as Gate
_nitti has quit [Remote host closed the connection]
prk has quit [Remote host closed the connection]
Gate has quit [Changing host]
Gate has joined #ruby
saarinen has quit [Client Quit]
twoism has quit [Remote host closed the connection]
wsterling has quit [Remote host closed the connection]
arya has joined #ruby
Matip has quit [Ping timeout: 245 seconds]
krnflake_ has quit [Quit: ZNC - http://znc.in]
krnflake has joined #ruby
thebastl has quit [Remote host closed the connection]
twoism has joined #ruby
<julianhurley> What exactly is this gsub doing???
<julianhurley> What's it looking for?
<julianhurley> to put it one way
apalmblad has joined #ruby
elaptics is now known as elaptics`away
bigkm has joined #ruby
slainer68 has quit [Remote host closed the connection]
LaPetiteFromage has left #ruby [#ruby]
aedornm has quit [Quit: Leaving]
Bosox20051 has joined #ruby
johnnyfuchs has quit [Ping timeout: 245 seconds]
Michael_ has quit [Remote host closed the connection]
JimmyNeutron has quit [Quit: Leaving]
<julianhurley> NOOO JIMMMMYYYYY
Michael_ has joined #ruby
bobdobbs has joined #ruby
<rpeterr> rock and roll mcdonalds
sepp2k1 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<gf3> jkline: It thinks you're passing a block
t0rc has joined #ruby
<gf3> jkline: BUT UR NOT #lol
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gf3> julianhurley: \b is a word boundary
pevjan has joined #ruby
oxnard_ has quit [Quit: This computer has gone to sleep]
sepp2k has quit [Ping timeout: 256 seconds]
wolcanus has joined #ruby
<jkline> gf3: what does "but ur not #lol" mean?
<gf3> jkline: But you're not actually passing a block, haha
ohcibi has quit [Read error: Connection reset by peer]
<jkline> oh, right
<jkline> thanks!
<gf3> jkline: You can do this though: wat foo: 'bar'
rgrinberg has quit [Ping timeout: 264 seconds]
<gf3> jkline: Since the braces for the last hash parameter are implicit
matematikaadit has quit [Read error: Connection reset by peer]
rpeterr has quit [Quit: Lost terminal]
<gf3> (or: wat :foo => 'bar')
ohcibi has joined #ruby
<bobdobbs> Hi all. I don't know much about ruby, but I'm using it to compile sass. After a recent system update, I attempted to compile my sass as I normally do, with the command 'sass --watch'
<bobdobbs> This resulted in an error: StringScanner::Error: regexp buffer overflow
wmoxam has joined #ruby
<bobdobbs> I then used the flag --trace, and got this dump:
<bobdobbs> What does this tell me?
Z_Mass has joined #ruby
wolcanus has quit [Ping timeout: 264 seconds]
gr4yscale has joined #ruby
phipes has quit [Quit: phipes]
<gf3> bobdobbs: LOL RUBBY 1.8
jp_____ has joined #ruby
<bobdobbs> ruby --version tells me that I'm using 1.9.3p0
Kabaka has quit [Read error: Connection reset by peer]
<gf3> WAT
<bobdobbs> am I looking at a package management mess perhaps?
nezumi has joined #ruby
moos3 has joined #ruby
oxnard_ has joined #ruby
<gf3> Could be
<bobdobbs> oh gawd
<bobdobbs> so I guess that I should sort that out first?
m08vS has joined #ruby
m08vS has quit [Max SendQ exceeded]
apeiros has joined #ruby
<gf3> bobdobbs: I could be wrong, but perhaps
jp____ has quit [Ping timeout: 248 seconds]
<gf3> bobdobbs: Are you using any sort of ruby version manager?
<bobdobbs> I miiiiiight be using rvm
<bobdobbs> not sure
<bobdobbs> lets see...
<bobdobbs> dang. I really don't know
phipes has joined #ruby
Kabaka has joined #ruby
alpha123 has joined #ruby
pevjan has quit [Read error: Connection reset by peer]
apeiros has quit [Read error: Operation timed out]
meh`_ has joined #ruby
mixel has joined #ruby
jamesfung14 has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
<bobdobbs> yeah, I must be using something. cos I just did 'apt-get remove ruby'. And I can still invoke ruby
<bobdobbs> gah! what a mess!
zeade has quit [Quit: Leaving.]
meh` has quit [Ping timeout: 256 seconds]
stkowski has quit [Quit: stkowski]
<bobdobbs> all I want to do in the end is use sass
johnnyfuchs has joined #ruby
chrisja has quit [Quit: leaving]
Kabaka has quit [Read error: Connection reset by peer]
<bobdobbs> hmmm... I can't find a binary that answers to 'rvm'. So maybe I'm not useing it.
nwertman has quit [Ping timeout: 256 seconds]
jdunck has quit [Ping timeout: 252 seconds]
cofin has quit [Quit: cofin]
predator217 has joined #ruby
tommyvyo has quit [Read error: Connection reset by peer]
<gf3> Well, I recommend rbenv + ruby_build
invisime has quit [Quit: Leaving.]
ckrailo has quit [Quit: Computer has gone to sleep.]
w|t has joined #ruby
vlad_starkov has joined #ruby
mikepack has quit [Remote host closed the connection]
Kabaka has joined #ruby
skattyadz has quit [Quit: skattyadz]
<bobdobbs> gf3: could the problem be that I'm using old gems?
tockitj has quit [Read error: Operation timed out]
<gf3> bobdobbs: It could be, that's not a common error
oxnard_ has quit [Quit: Leaving]
predator117 has quit [Ping timeout: 256 seconds]
<bobdobbs> ok
jdunck has joined #ruby
wesside has joined #ruby
<gf3> bobdobbs: Can you manually compile the files w/o --watch?
<bobdobbs> lets see...
<julianhurley> gf3: Anywhere I can read up on regex?
w|t has quit [Client Quit]
sepp2k1 has quit [Remote host closed the connection]
<bobdobbs> gf3: I don't know if that's possible
d11wtq has quit [Ping timeout: 240 seconds]
<gf3> julianhurley: The docs are pretty good → http://ruby-doc.org/core-2.0/Regexp.html
tommyvyo has joined #ruby
<bobdobbs> gf3: ah, it is possible. And when I try, I get the same buffer overflow error
vlad_starkov has quit [Ping timeout: 276 seconds]
timkohrumel has quit [Remote host closed the connection]
<gf3> bobdobbs: Crap. Try removing and re-installing the sass gem.
bklane has joined #ruby
<bobdobbs> cool. I'll do that.
ohcibi has quit [Remote host closed the connection]
<gf3> bobdobbs: Also make sure you're using the right gem executable
<bobdobbs> ruby found two versions of the gem. I've removed both
Michael_ has quit [Remote host closed the connection]
ilyam has joined #ruby
<bobdobbs> re-installing
Michael_ has joined #ruby
<bobdobbs> dang. still getting the same buffer overflow error
moos3 has quit [Quit: Computer has gone to sleep.]
<bobdobbs> I'm still seeing this filepath in the error strings: "/var/lib/gems/1.8/gems/sass-3.2.9..."
<gf3> bobdobbs: What's the output of `which ruby` and `which gem`?
<bobdobbs> which ruby: /usr/bin/ruby
pevjan has joined #ruby
<bobdobbs> which gem /usr/bin/gem
willejs has quit [Quit: willejs]
<bobdobbs> gem --version: 1.8.15
<gf3> And ruby --version
<gf3> ?
<bobdobbs> ruby --version: ruby 1.9.3p0 (2011-10-30 revision 33570)
rakl has quit [Quit: sleeping]