apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
jenrzzz has quit [Ping timeout: 245 seconds]
berserkr has quit [Quit: Leaving.]
scant has left #ruby ["Leaving"]
clj_newb has joined #ruby
Juul_ has joined #ruby
jlogsdon_ has joined #ruby
jenrzzz has joined #ruby
Juul_ has quit [Client Quit]
axl_ has quit [Quit: axl_]
jlogsdon has quit [Read error: Operation timed out]
bluenemo has quit [Quit: Verlassend]
<sphera> How can i create an array based the value of another variable, i.e. i want to do this: str = 'test'; arr_#{str} = [];
crazedpsyc is now known as confusion
carlyle has joined #ruby
<Hanmac> sphera its possible in ruby but its bad code
ablankfield has joined #ruby
manizzle has quit [Ping timeout: 260 seconds]
carlyle has quit [Remote host closed the connection]
<sphera> Sort of. I need to dynamically create these array values based on values given by an API. Since I don't want to change them manually on API updates, I'd rather do it this way
Cultofmetatron has joined #ruby
<ablankfield> I have an off topic question I was hoping someone could help me with. it involves port forwarding and UPnP
axl_ has joined #ruby
<Hanmac> sphera use an hash
marius is now known as sdk
rasbonics has joined #ruby
wpaulson has joined #ruby
<sphera> Hanmac: How so?
<Hanmac> hash = {}; hash[str] = [];
axl_ has quit [Client Quit]
<Hanmac> hash[str] << "element1" << "element2"
sertaconay has quit [Ping timeout: 265 seconds]
<sphera> Ah, I see what you mean. Okay.
L0L0L0L0L has quit [Ping timeout: 260 seconds]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
manizzle has joined #ruby
_alejandro has quit [Remote host closed the connection]
sertaconay has joined #ruby
<sphera> I'm getting into one of those deep datastructure manipulation mindsets, where you overthink everything. I'm already using a hash to store these arrays, I should just key the hash directly like you said. Derp.
<sphera> Thanks, Hanmac.
horofox has joined #ruby
lledet has joined #ruby
erichmenge has quit [Quit: Be back later]
emmanuelux has quit [Remote host closed the connection]
jrajav has quit []
L0L0L0L0L has joined #ruby
havenn_ has quit [Remote host closed the connection]
havenn has joined #ruby
ij has joined #ruby
jrajav has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
sn0wb1rd has quit [Quit: sn0wb1rd]
<atmosx> nigth allt
Floydzy has quit [Quit: Floydzy]
maetthew has joined #ruby
stnly has quit [Quit: Lost terminal]
havenn has quit [Ping timeout: 252 seconds]
emptyflask has quit [Read error: Operation timed out]
dankest has joined #ruby
reinaldob has quit [Remote host closed the connection]
u89_ has joined #ruby
cousine has quit [Remote host closed the connection]
booyakah has quit [Quit: ZNC - http://znc.sourceforge.net]
maetthew is now known as booyakah
chrisja has quit [Quit: leaving]
u89 has quit [Read error: Connection reset by peer]
frogstarr78 has quit [Remote host closed the connection]
Araxia has quit [Ping timeout: 246 seconds]
elico has joined #ruby
elentras has quit [Ping timeout: 252 seconds]
manizzle has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
slash_nick has joined #ruby
otters has quit [Ping timeout: 252 seconds]
jeffreybaird has quit [Read error: Connection reset by peer]
stnly has joined #ruby
frogstarr78 has joined #ruby
stnly has quit [Read error: Connection reset by peer]
lenodroid has joined #ruby
stnly has joined #ruby
cousine has joined #ruby
elico has quit [Client Quit]
ablankfield has quit [Ping timeout: 260 seconds]
jash has joined #ruby
otters has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
statarb3 has quit [Quit: Leaving]
slash_nick has quit [Ping timeout: 260 seconds]
lenovodroid has quit [Ping timeout: 252 seconds]
jjang has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 265 seconds]
sambio has quit []
qwerxy has quit [Quit: offski]
swex has quit [Read error: Connection reset by peer]
slash_nick has joined #ruby
kiyoura has joined #ruby
evilsushi has quit [Quit: Lost terminal]
swex has joined #ruby
booyakah is now known as maetthew
carlyle has joined #ruby
yshh has quit [Remote host closed the connection]
jcaudle has joined #ruby
manizzle has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
slash_nick has quit [Ping timeout: 240 seconds]
ablankfield has joined #ruby
kbedding_ has quit [Remote host closed the connection]
maetthew is now known as booyakah
booyakah has quit [Changing host]
booyakah has joined #ruby
fyolnish has joined #ruby
booyakah is now known as maetthew
rjsamson has joined #ruby
maetthew has quit [Quit: bye!]
jimeh has quit [Quit: Computer has gone to sleep.]
esya has quit [Ping timeout: 246 seconds]
maetthew has joined #ruby
maetthew is now known as booyakah
booyakah has quit [Changing host]
booyakah has joined #ruby
booyakah is now known as maetthew
digifiv5e has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
maetthew has left #ruby [#ruby]
tomsthumb has quit [Quit: Leaving.]
stiladigaaanna has joined #ruby
stiladigaaanna has left #ruby [#ruby]
_alejandro has joined #ruby
lledet has left #ruby [#ruby]
ffranz has quit [Quit: Leaving]
hotovson_ has joined #ruby
otters has quit [Ping timeout: 252 seconds]
maetthew has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
otters has joined #ruby
joeycarmello has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
digifiv5e has joined #ruby
Cultofmetatron has joined #ruby
yshh has joined #ruby
mikepack has quit [Remote host closed the connection]
dankest has quit [Quit: Linkinus - http://linkinus.com]
wargasm has quit [Read error: Connection reset by peer]
dpatel has quit [Quit: dpatel]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
maetthew has quit [Changing host]
maetthew has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
dorei has joined #ruby
bigmac has joined #ruby
<dorei> hello
marr has quit [Ping timeout: 252 seconds]
<dorei> i've some rb files in a lib/ subdirectory
samphippen has quit [Quit: Computer has gone to sleep.]
<dorei> what's the proper way to require them?
<dorei> i do something like:
<dorei> $LOAD_PATH.unshift(File.dirname(__FILE__))
<dorei> require '../lib/mylib.rb'
<dorei> but it doesnt work the way it should
cakehero has quit [Quit: Computer has gone to sleep.]
Juul has quit [Ping timeout: 260 seconds]
dpk is now known as manifestation_of
L0L0L0L0L has quit [Ping timeout: 248 seconds]
manifestation_of is now known as AmericanPsyche
enderx86 has joined #ruby
<gabrielrotbart> dorei: from where in your structure are you calling File.dirname? Easiest way is to make sure your top level is in the path to call 'lib/mylib.rb'
lenodroid has quit [Remote host closed the connection]
lenodroid has joined #ruby
hsbt_away is now known as hsbt
L0L0L0L0L has joined #ruby
jash has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
_di has joined #ruby
<dorei> gabrielrotbart: is there a way to find the full path of the file i'm executing?
_di has left #ruby [#ruby]
maxer has quit [Quit: maxer]
_di has joined #ruby
_di has quit [Remote host closed the connection]
Axsuul has joined #ruby
kbeddingfield has joined #ruby
Axsuul has quit [Excess Flood]
banjara has quit [Quit: Leaving.]
ephemerian has quit [Quit: Leaving.]
L0L0L0L0L has quit [Ping timeout: 240 seconds]
jlwestsr has quit [Ping timeout: 246 seconds]
elico has joined #ruby
<gabrielrotbart> dorei: Do you mean what path currently loaded? puts $LOAD_PATH. For file path Dir.pwd
Russell^^ has quit [Quit: Russell^^]
sdk has quit [Ping timeout: 252 seconds]
fantazo has quit [Read error: Operation timed out]
L0L0L0L0L has joined #ruby
AmericanPsyche is now known as dpk
vickaita has joined #ruby
blazes816 has quit [Quit: blazes816]
davidcelis has quit [Quit: K-Lined.]
jcaudle_ has joined #ruby
aantix__ has joined #ruby
<dorei> gabrielrotbart: i mean, when i do ruby myfile.rb, is there a way from within myfile.rb to find the full path of myfile.rb ?
kbeddingfield has quit [Ping timeout: 260 seconds]
yoklov has joined #ruby
sdk has joined #ruby
jcaudle has quit [Ping timeout: 248 seconds]
jcaudle_ is now known as jcaudle
aantix has quit [Ping timeout: 240 seconds]
aantix__ is now known as aantix
jblack has joined #ruby
havenn has joined #ruby
h4mz1d has joined #ruby
jlwestsr has joined #ruby
aantix has quit [Quit: aantix]
rburton- has joined #ruby
enderx86 has quit [Remote host closed the connection]
whomp has joined #ruby
<dorei> i could use __FILE__ and Dir.pwd but then i should check if __FILE__ contains '/' and remove them from __FILE__ and append them to Dir.pwd
<whomp> i was working on a rails project when, all of a sudden, ruby commands stopped working. now they take a long time and then print: /Users/user/.rvm/bin/ruby: line 6: /Users/ruby/.rvm/bin/ruby: Argument list too long
FemaleEngineer has quit [Ping timeout: 260 seconds]
mrsolo has quit [Quit: Leaving]
snearch has quit [Quit: Verlassend]
<whomp> does anyone know what might be the issue?
<dorei> whomp: what's at line 6 ?
slainer68 has quit [Remote host closed the connection]
Chryson has joined #ruby
<havenn> Calling script recursively?
<whomp> `exec ruby "$@"`
<whomp> i think so
<dorei> argument list too long looks like a shell error message
<dorei> meaning that you feed it more arguments than it could handle, for example when you do rm * in a directory with a lot of files
<whomp> no that's not the issue, i can't even run ir
<whomp> *irb
ngoldman has quit [Remote host closed the connection]
tbrock_ has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
vickaita has quit [Ping timeout: 240 seconds]
mneorr has quit [Remote host closed the connection]
mensvaga has joined #ruby
joeycarmello has joined #ruby
monokrome1 has joined #ruby
<mensvaga> What's the best way of testing a private method?
<mensvaga> @object.send(:method_name) ?
undersc0re97 has quit [Ping timeout: 245 seconds]
nari has joined #ruby
monokrome has quit [Read error: Connection reset by peer]
freakazoid0223 has joined #ruby
hotovson_ has quit [Remote host closed the connection]
u89_ has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
<tbrock_> hey guys is there a way to make a gem spec that can optionally compile/install a c-extension
daniel_- has quit [Quit: WeeChat 0.3.9]
havenn has quit [Remote host closed the connection]
<tbrock_> so that it isn't strictly required per-se but could be disabled via an env variable or something
mneorr has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Cultofmetatron has joined #ruby
horofox has quit [Quit: horofox]
c0rn has quit [Quit: Lates.]
wpaulson has joined #ruby
c0rn has joined #ruby
<Kovensky> I dunno what's the procedure in rubygems
Cultofmetatron has quit [Remote host closed the connection]
<Kovensky> but in CPAN, it's recommended that you publish a pure-perl impl
savage- has joined #ruby
<Kovensky> and then have a XS (that is, C-code) version inside the namespace, that always is compiled
wpaulson has quit [Client Quit]
<Kovensky> and have the pure-perl impl use the XS code if it's available, but not require its installation
ttt has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
davidcelis has joined #ruby
monokrome1 has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mneorr has joined #ruby
<tbrock_> anyone else know about this?
hbpoison has joined #ruby
<tbrock_> some platforms may not have the toolchain to compile the c extension
iamjarvo has joined #ruby
Grieg has quit [Ping timeout: 268 seconds]
nari has quit [Ping timeout: 260 seconds]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
mneorr_ has joined #ruby
mneorr_ has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
mmitchell has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
slainer68 has joined #ruby
brianpWins has quit [Quit: brianpWins]
Cultofmetatron has joined #ruby
undersc0re97 has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
yoklov has quit [Quit: computer sleeping]
mneorr_ has quit [Ping timeout: 240 seconds]
Cultofmetatron has quit [Remote host closed the connection]
<dorei> tbrock_: i've noticed that some gems fetch and install a precompiled extension
<tbrock_> thats not really what I'm looking for
<tbrock_> i know you can do that with extension_task
Serial_Killer_C has joined #ruby
<tbrock_> but, I'm thinking at install time compile the extension but if they can't or enable some env var then don't
cousine has quit [Remote host closed the connection]
elico has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
elico has joined #ruby
elico has quit [Client Quit]
pu22l3r has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
kbeddingfield has quit [Ping timeout: 240 seconds]
LouisGB has quit [Ping timeout: 252 seconds]
adeponte has quit [Remote host closed the connection]
loka has quit [Ping timeout: 245 seconds]
beachandbytes has quit [Ping timeout: 246 seconds]
enderx86 has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
chendo has quit [Read error: Operation timed out]
hbpoison has joined #ruby
thinkit2 has quit [Ping timeout: 240 seconds]
gabrielrotbart has joined #ruby
thinkit2 has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
swex has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
pu22l3r_ has joined #ruby
idzuna has quit [Remote host closed the connection]
lenodroid has quit [Ping timeout: 260 seconds]
yshh has quit [Remote host closed the connection]
Progster has joined #ruby
cyong has joined #ruby
gpalmier has joined #ruby
havenn has joined #ruby
pu22l3r has quit [Ping timeout: 248 seconds]
jhgaylor has quit [Read error: Connection reset by peer]
jhgaylor has joined #ruby
LouisGB has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
brianpWins has joined #ruby
niklasb has quit [Read error: Operation timed out]
ckrailo has quit [Quit: Computer has gone to sleep.]
Tearan has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Ping timeout: 246 seconds]
t0rc has joined #ruby
chrxn has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
<t0rc> What's a good way to use git from Ruby?
dmiller has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
n_blownapart has joined #ruby
enderx86 has quit [Remote host closed the connection]
charliesome has joined #ruby
<n_blownapart> http://pastie.org/5338344 hi I'm not sure how an alias works as in this example. this prog doesn't seem to work in 1.9.3, but the point is to teach aliases I guess. Is there an easy way to explain how the newly defined []=(key,value) method works? thanks.
vickaita has joined #ruby
nari has joined #ruby
mengu has quit [Ping timeout: 246 seconds]
beachandbytes has joined #ruby
<maetthew> n_blownapart, where is this example from?
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<n_blownapart> maetthew: its from 'A Well-Grounded Rubyist' . the author calls it a "pass-through alteration of []=."
<n_blownapart> The* Well-Grounded...
BoomCow has quit [Quit: This computer has gone to sleep]
vickaita has quit [Ping timeout: 246 seconds]
dorei has quit []
Whackatre_ has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
<n_blownapart> maetthew: what do you make of it?
Michael_ has joined #ruby
<maetthew> n_blownapart, oh sorry nothing i know basically no ruby
<maetthew> i was just interested in resources :)
haxrbyte has quit [Remote host closed the connection]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<n_blownapart> maetthew: cool so far I really like this book. david black , author
haxrbyte has joined #ruby
<maetthew> yeah i'm looking at the preview on amazon atm
jenrzzz has quit [Ping timeout: 252 seconds]
<n_blownapart> maetthew: worth a look good luck
Michael_ has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
Michael_ has joined #ruby
lucianosousa has joined #ruby
Ruler_Of_Heaven_ has joined #ruby
pipopopo has quit [Ping timeout: 240 seconds]
hsbt is now known as hsbt_away
arubin_ has joined #ruby
<n_blownapart> http://pastie.org/5338344 hi I'm not sure how an alias works as in this example. this prog doesn't seem to work in 1.9.3, but the point is to teach aliases I guess. Is there an easy way to explain how the newly defined []=(key,value) method works? thanks.
adeponte has joined #ruby
nari has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
postmodern has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
blazes816 has joined #ruby
slainer68 has joined #ruby
jenrzzz has joined #ruby
sdk is now known as nkts
enderx86 has joined #ruby
Michael_ has quit [Remote host closed the connection]
crackfu has joined #ruby
kbeddingfield has joined #ruby
atmosx has quit [Remote host closed the connection]
atmosx has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
Z0idberg has quit [Quit: Leaving]
_bart has quit [Quit: _bart]
jenrzzz has quit [Ping timeout: 276 seconds]
areil has joined #ruby
kbeddingfield has quit [Ping timeout: 252 seconds]
xsbeats has quit [Ping timeout: 268 seconds]
Michael_ has joined #ruby
mneorr has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby
Michael_ has quit [Remote host closed the connection]
jcaudle has quit [Quit: jcaudle]
cyong1 has joined #ruby
cyong1 has quit [Client Quit]
n_blownapart has quit [Remote host closed the connection]
cyong1 has joined #ruby
cyong has quit [Ping timeout: 245 seconds]
jcaudle has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
cyong1 has quit [Client Quit]
Michael_ has joined #ruby
cyong has joined #ruby
Whackatre has joined #ruby
Whackatre has quit [Changing host]
Whackatre has joined #ruby
mneorr has joined #ruby
hbpoison has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
rellin has joined #ruby
Michael_ has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
headius has quit [Quit: headius]
Michael_ has joined #ruby
banjara has joined #ruby
aetcore has quit [Ping timeout: 246 seconds]
amacgregor_osx has joined #ruby
cyong has joined #ruby
seanyo has joined #ruby
aetcore has joined #ruby
tjbiddle has joined #ruby
Michael_ has quit [Remote host closed the connection]
tjbiddle has quit [Client Quit]
jrist-afk is now known as jrist
Michael_ has joined #ruby
artnez has joined #ruby
adeponte has quit [Remote host closed the connection]
joofsh has joined #ruby
adeponte has joined #ruby
Progster has quit [Ping timeout: 265 seconds]
jrajav has quit []
hbpoison has quit [Ping timeout: 252 seconds]
<thinkit2> Are there any freelancers in here possibly seeking a job? I have a fun project you might be interested in: https://dl.dropbox.com/u/45988033/son.png I do pay in cash and not Trident layers. Project budget is $4,000 the front-end is already completed - HTML/CSS - I have a full spec written as well. Please PM me or email me at ryan@coupify.com
<thinkit2> Thanks!
havenn has quit [Ping timeout: 252 seconds]
<centipedefarmer> suggestions: 1) move the "Are They" over to the right, it looks like you're asking if they're facebook or twitter
<centipedefarmer> 2) add an "other" box under Guys and Girs
<thinkit2> thanks centi.
<thinkit2> will definitely look into those changes.
<centipedefarmer> lol
adeponte has quit [Ping timeout: 245 seconds]
sn0wb1rd_ has joined #ruby
reset has quit [Quit: Leaving...]
reset has joined #ruby
BoomCow has joined #ruby
sn0wb1rd__ has joined #ruby
siyusong has joined #ruby
pu22l3r has joined #ruby
sn0wb1rd has quit [Ping timeout: 252 seconds]
sn0wb1rd__ is now known as sn0wb1rd
<t0rc> grit, rugged, or ruby-git?
sn0wb1rd_ has quit [Ping timeout: 252 seconds]
stephenjudkins has joined #ruby
dmiller has joined #ruby
rjsamson has quit [Remote host closed the connection]
JohnTeddy has quit [Changing host]
JohnTeddy has joined #ruby
Michael_ has quit [Remote host closed the connection]
<JohnTeddy> How can I get pry to reload a file I'm working on?
caleb_io has joined #ruby
<JohnTeddy> So I want to load all my methods then test them in pry, reload after changes.
pu22l3r has quit [Remote host closed the connection]
amacgregor_osx has quit [Read error: Operation timed out]
tjbiddle has joined #ruby
kbeddingfield has joined #ruby
vitor-br has joined #ruby
linoj has joined #ruby
scx has quit [Ping timeout: 260 seconds]
arubin__ has joined #ruby
mengu has quit [Read error: Connection reset by peer]
radic has quit [Disconnected by services]
radic_ has joined #ruby
caleb_io has quit [Quit: caleb_io]
arubin__ is now known as arubin-
arubin_ has quit [Ping timeout: 240 seconds]
hbpoison has joined #ruby
scx has joined #ruby
luminous has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
amacgregor_osx has joined #ruby
<luminous> I'm not sure if this is the best place for the question.. I'm trying to get up and running with octopress, using rvm and bundle to create a ruby environment for octopress and my work, but I was only able to do this as root due to premissions set when I installed gems and rvm, etc. here's the question - if it is a permissions thing, what bits need to be flipped where so that normal users could follow these instructions and then use octopress: http://octopress.o
tomsthumb has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
<blazes816> luminous: did you install rvm as root? that'd be the issue
<blazes816> idk how do fix that other reinstalling rvm
crackfu has quit [Remote host closed the connection]
adeponte has joined #ruby
<luminous> blazes816: don
<luminous> blazes816: don't I need to install as root?
<blazes816> no, just "curl -L https://get.rvm.io | bash -s stable --ruby" as your normal user
sertaconay has quit [Read error: Connection reset by peer]
nari has joined #ruby
yshh has quit [Ping timeout: 246 seconds]
LouisGB has quit [Ping timeout: 246 seconds]
t0rc has quit [Quit: WeeChat 0.3.9]
zzyybb has joined #ruby
ananthakumaran has joined #ruby
Cultofmetatron has joined #ruby
tommyvyo has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Quit: tjbiddle]
linoj has quit [Quit: linoj]
mneorr has quit [Remote host closed the connection]
reset has quit [Read error: Operation timed out]
Serial_Killer_C has quit [Remote host closed the connection]
tbrock_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
k610 has joined #ruby
tbrock_ has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
linoj has joined #ruby
juarlex__ has quit [Remote host closed the connection]
ablankfield has quit [Ping timeout: 264 seconds]
chendo_ has quit [Ping timeout: 256 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
k610 has quit [Ping timeout: 268 seconds]
chendo_ has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
juarlex_ has joined #ruby
jeff_sebring has quit [Quit: Leaving]
cakehero has joined #ruby
yshh has joined #ruby
Mon_Ouie has joined #ruby
xpen has joined #ruby
mikepack has joined #ruby
aantix has joined #ruby
starship has joined #ruby
hsbt_away is now known as hsbt
quest88 has joined #ruby
nachooo_ has joined #ruby
brianpWins has quit [Ping timeout: 268 seconds]
nachooo has quit [Ping timeout: 246 seconds]
nachooo_ is now known as nachooo
ilyam has quit [Quit: ilyam]
cakehero has quit [Ping timeout: 252 seconds]
skaczor has quit [Remote host closed the connection]
mneorr has joined #ruby
xpen has quit [Read error: Connection reset by peer]
xpen_ has joined #ruby
joeycarmello has quit [Remote host closed the connection]
kbeddingfield has quit [Read error: Connection reset by peer]
flingbob has joined #ruby
cakehero has joined #ruby
flingbob has quit [Client Quit]
d3vic3 has quit [Read error: Operation timed out]
siyusong has joined #ruby
d3vic3 has joined #ruby
confusion is now known as crazedpsyc
Rhainur has joined #ruby
Tombar has joined #ruby
<Rhainur> hey guys
stephenjudkins has quit [Quit: stephenjudkins]
kiyoura has quit [Quit: Leaving]
<Rhainur> wrote some code to test out the birthday paradox
<Rhainur> I'd like to know how I can write it "better"
linoj has quit [Quit: linoj]
ananthakumaran has quit [Quit: Leaving.]
<Paradox> nou
ilyam has joined #ruby
und3f has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
chendo_ is now known as chendo
xpen_ has quit [Ping timeout: 256 seconds]
artOfWar has joined #ruby
kandinski has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
CaptainJet has quit []
Guest10501 has joined #ruby
jlogsdon_ has quit [Remote host closed the connection]
xpen has joined #ruby
carlyle has quit [Remote host closed the connection]
mvangala_ has joined #ruby
hbpoison has quit [Ping timeout: 248 seconds]
artOfWar has quit [Remote host closed the connection]
mvangala has quit [Ping timeout: 240 seconds]
artOfWar has joined #ruby
tbrock_ has quit [Quit: Computer has gone to sleep.]
stephenjudkins has joined #ruby
artOfWar has quit [Ping timeout: 245 seconds]
SCommette has joined #ruby
betz has quit [Quit: Leaving.]
mneorr has joined #ruby
Guest67064 has joined #ruby
ZubKonst_ has joined #ruby
Guest67064 has quit [Quit: Guest67064]
tjbiddle has joined #ruby
BrianJ has joined #ruby
codefyre has joined #ruby
codefyre has left #ruby [#ruby]
ZubKonst has quit [Ping timeout: 246 seconds]
thinkit2 has quit [Ping timeout: 255 seconds]
codefyre has joined #ruby
thinkit2 has joined #ruby
butblack has left #ruby [#ruby]
<rking> Rhainur: You still around?
<Rhainur> rking: yassir
<rking> K here goes
Shrink has quit [Ping timeout: 246 seconds]
<rking> I wouldn't name a function "crate_date_list" and extract it if it's that small and not called by anything else.
<rking> Just like:
krz has joined #ruby
cj3kim has joined #ruby
<rking> date_list = Array.new(50){|i| … # (right above line 26)
<rking> Keep reading up on the Ruby core classes.
<rking> for i in (0..100) is better as:
<rking> 100.times do
chendo has quit [Ping timeout: 245 seconds]
psycho_one has joined #ruby
<Rhainur> noted
<rking> (Actually equivalency would be: "100.times do |i|", but you don't use "i" so you don't need to capture it)
<rking> I'd never name a var "l".
`psudo has joined #ruby
<rking> And in general the body of check_for_collision, with its indices, is not Rubyish.
bigmac has quit [Remote host closed the connection]
joeycarmello has joined #ruby
<Rhainur> rking: it didn't feel that way to me either
<Rhainur> which is why I posted here
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<rking> Oh, a huge one, sorry I didn't say it first: tests
nateberkopec has joined #ruby
<Rhainur> tests?
wargasm has joined #ruby
<rking> Unit Tests.
<rking> And you don't need a test framework for something like this
<rking> Just be like:
ananthakumaran has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<rking> def test
chendo has joined #ruby
<rking> a = [Time.at(123).to_date, Time.at(234).to_date]
<rking> b = [Time.at(123).to_date, Time.at(567).to_date]
SCommette has quit [Quit: SCommette]
<rking> fail unless check_for_collision a, b
<rking> c = []
<rking> fail if check_for_collision a, c
<rking> end
<rking> test
<Rhainur> hm
<rking> Cover more edge cases though
<Rhainur> but how would I "rubify" that function
<rking> Then after you get a run with your uggs version, you can tinker with making it better without wondering if you're screwing it up.
<rking> Oh wait
<rking> I'm messed up your call signature
<Rhainur> yeah never mind
<Rhainur> I figured out what you meant
<rking> Hehe, yeah.
codefyre has quit [Quit: Leaving]
joeycarmello has quit [Remote host closed the connection]
<rking> There are tons of little idioms you could add.
<rking> j = j + 1 # should be:
<rking> j += 1
<rking> I prefer the flipped form of conditionals when the body is so small:
siyusong has quit [Quit: Computer has gone to sleep.]
<rking> return true if dates[i] == dates[j]
<rking> Instead of lines 10, 11, and 19 you should do:
<rking> dates.each_with_index |e,i|
<rking> (Then replace dates[i] with e)
<rking> Then similarly lines 12, 13, 17 become something like:
<rking> dates[i+1..-1].each |f|
<rking> Making lines 14–16 more like:
enderx86 has quit [Remote host closed the connection]
<rking> return true if e == f
<rking> But then there are more creative ways you could leap to from there.
<rking> What about something like this?:
<rking> Hehe 1s, looking for the right method
<rking> Well actually, the low-vocabulary way first:
DanBoy has quit [Read error: Connection reset by peer]
<rking> prev = nil
<rking> dates.sort.each {|e| return true if e == prev; prev = e }
carlyle has joined #ruby
<rking> false
<rking> That should work as the whole body of check_for_collision, unless I'm missing something.
iamjarvo has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 245 seconds]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
hbpoison has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Asher has quit [Ping timeout: 248 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
tjbiddle has joined #ruby
h4mz1d has joined #ruby
mikepack has quit [Remote host closed the connection]
carlyle has quit [Ping timeout: 245 seconds]
BrianJ has quit [Quit: BrianJ]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
robbyoconnor has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Rhainur> rking: I feel like while your one liner would work, it wouldn't be easy to figure out what the code was doing when reading it
<Rhainur> the other changes are awesome though
<Rhainur> thanks muchly
<rking> Rhainur: Well, that's what check_for_collision and the Unit Tests do.
<rking> The name "check_for_collision" is as far as most people would have to read.
<rking> Anyway, good work.
<Rhainur> but having done all that
<Rhainur> hm never mind
<rking> BTW the Array.new(50) thing isn't quite simplified.
<rking> 1min
<Rhainur> haha
<Rhainur> I also realized there's a mistake
<Rhainur> in that I'm comparing dates
<Rhainur> but really I want to just compare the month and day
<Rhainur> ignoring the year
margle has joined #ruby
kil0byte has joined #ruby
<Rhainur> rking: unit tests would have caught that ;)
<rking> 50.times.map { Time.at(rand Time.now.to_i).to_date }
<rking> Rhainur: Yes, you're right.
ryanf has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
<rking> Unit Tests are champsauce that champions pour on problems to turn them into victory.
banjara has left #ruby [#ruby]
<rking> Rhainur: No wait, the Unit Tests would've told you that it's working, because of the way Date#== is implemented.
<rking> [8] pry(main)> Time.at(Time.now.to_i).to_date == Time.at(Time.now.to_i + 3000).to_date
<rking> true
<rking> [9] pry(main)> Time.at(Time.now.to_i).to_date == Time.at(Time.now.to_i + 9000).to_date
<rking> false
joofsh has quit [Remote host closed the connection]
<Rhainur> no
<Rhainur> I'm talking comparing jan 1, 2012 to jan 1 2008
<Rhainur> since I'm interested in birthdays, I don't care about the year
<rking> Oh oh oh
<rking> So sorry.
* rking == sloppy.
<Rhainur> lol still a better ruby programmer than me
ewokchewy has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
<rking> Getting the wrong answer with style.™
<Rhainur> so changing it to
<Rhainur> return true if e.day == f.day && e.month == f.month
centipedefarmer has quit [Remote host closed the connection]
<Rhainur> yeah here we go!
<Rhainur> an array of size 23 gives ~50% chance of collision
<Rhainur> just like the statistics predicts
centipedefarmer has joined #ruby
jcaudle has left #ruby [#ruby]
<Grieg> undefined method '+'
<Grieg> help plz http://pastie.org/5344235
<rking> Rhainur: Coolness.
`psudo has quit [Ping timeout: 245 seconds]
<rking> Rhainur: BTW you could do a broader test that asserts that there are less than 60% and more than 40%
<Rhainur> eh
<rking> Rhainur: More of an "Functional Test" than a Unit Test.
<Rhainur> lazy
<Rhainur> :D
<rking> Hehe, yeah, just throwing it out there as a good practice if this was something more long-living.
<rking> Grieg: Those str's are not the str's you think they are.
psycho_one has quit [Remote host closed the connection]
ryanf has quit [Quit: broken pipes |||]
<Grieg> str is reserved by ruby?
cantonic has quit [Quit: cantonic]
SmoothSage has joined #ruby
<rking> Grieg: No, but you're just setting a var on the class, not the instance.
h4mz1d has quit [Ping timeout: 246 seconds]
<rking> Grieg: And let me show you an even better way.
aantix has quit [Quit: aantix]
centipedefarmer has quit [Ping timeout: 268 seconds]
Tombar has quit [Remote host closed the connection]
fuho has joined #ruby
<rking> Grieg: Using inheritance: https://gist.github.com/d80ef29c4dd93b8093ec
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Tombar has joined #ruby
Tombar has quit [Read error: Connection reset by peer]
artnez has quit [Quit: artnez]
Tombar has joined #ruby
<Grieg> rking: it just rises a whole lot of new questions for me. sry man
slainer68 has joined #ruby
Rizzle has joined #ruby
ilyam has quit [Quit: ilyam]
<rking> Grieg: For what are you learning Ruby?
zzyybb has quit [Quit: Leaving]
<Grieg> everything
<rking> Then get the Pickaxe.
<Grieg> applications, networking, web
<rking> No reason whatsoever to struggle through without a good foundation.
ViperMaul|_ has quit [Ping timeout: 240 seconds]
<rking> If you're super-strapped for funds you could read the older version for free.
Guest10501 has quit [Ping timeout: 245 seconds]
slainer68 has quit [Ping timeout: 252 seconds]
<Grieg> cool. thank you )
jlwestsr has quit [Ping timeout: 246 seconds]
otters has quit [Ping timeout: 264 seconds]
fantazo has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
ilyam has joined #ruby
BoomCow has quit [Quit: Leaving]
Floydzy has joined #ruby
ryanf has joined #ruby
stephenjudkins has joined #ruby
topek has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
arkiver has joined #ruby
Floydzy has left #ruby [#ruby]
elsifaka has joined #ruby
Rhainur has quit [Quit: Leaving]
nari has joined #ruby
arubin- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
joeycarmello has joined #ruby
rippa has joined #ruby
fixl has joined #ruby
ewokchewy has quit [Quit: Leaving]
hbpoison has quit [Ping timeout: 268 seconds]
hsbt is now known as hsbt_away
hbpoison has joined #ruby
Guest11951 has joined #ruby
chendo has quit [Ping timeout: 265 seconds]
joeycarmello has quit [Ping timeout: 276 seconds]
Guest11951 has left #ruby [#ruby]
chendo has joined #ruby
Axsuul has joined #ruby
<Axsuul> Can someone recommend me a library that can parse timespan phrases in english? i.e. 6 hours ago, 10 weeks ago
bradhe has quit [Remote host closed the connection]
<Mon_Ouie> Axsuul: Chronic
nari has quit [Ping timeout: 246 seconds]
<Axsuul> Mon_Ouie: neat, thanks
fantazo has quit [Remote host closed the connection]
brianpWins has joined #ruby
hsbt_away is now known as hsbt
cezar-b has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
bairui has quit [Quit: WeeChat 0.3.7]
<JohnTeddy> How can I have pry reload a file with method in it that I'm editing/resaving?
KnowTheLedge has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 255 seconds]
<rking> JohnTeddy: Are you editing it through Pry's edit or edit-method commands?
AlbireoX has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
thecreators has joined #ruby
chendo has quit [Read error: Operation timed out]
Mon_Ouie has quit [Ping timeout: 240 seconds]
chendo has joined #ruby
brianpWins_ has joined #ruby
brianpWins has quit [Ping timeout: 252 seconds]
brianpWins_ is now known as brianpWins
kil0byte_ has joined #ruby
zommi has joined #ruby
chendo has quit [Ping timeout: 252 seconds]
arturaz has joined #ruby
artOfWar has joined #ruby
kil0byt__ has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
`psudo has joined #ruby
chendo has joined #ruby
hamed_r has joined #ruby
SuperrMann has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
Nanuq has quit [Ping timeout: 246 seconds]
<rking> If you are, it will automatically reload that file when it's done.
<rking> If you aren't, you can use Ruby's load 'lib/whatever.rb' to get it
<rking> Which, very often, that file is available as _file_
kil0byte_ has quit [Ping timeout: 268 seconds]
<rking> E.g. if you put binding.pry in lib/foo.rb, when the Pry instance starts up it will set a local variable named _file_ to 'lib/foo.rb', so you can just:
<rking> load _file_
hbpoison has quit [Ping timeout: 255 seconds]
Cultofmetatron has quit [Remote host closed the connection]
workmad3 has joined #ruby
KnowTheLedge has joined #ruby
araujo has quit [Quit: Leaving]
topek has quit [Quit: Leaving.]
aganov has joined #ruby
topek has joined #ruby
bradhe has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
sagax has joined #ruby
maesbn has joined #ruby
kbeddingfield has joined #ruby
beachandbytes has quit [Ping timeout: 246 seconds]
k610 has joined #ruby
hbpoison has joined #ruby
sagax has quit [Client Quit]
timonv has joined #ruby
timonv_ has joined #ruby
thecreators has quit [Quit: thecreators]
thecreators has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
k610 has joined #ruby
bradhe_ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
jenrzzz has joined #ruby
xpen has quit [Remote host closed the connection]
Morkel has joined #ruby
xpen has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
kbeddingfield has quit [Remote host closed the connection]
xpen_ has joined #ruby
thecreators has quit [Ping timeout: 265 seconds]
k610 has quit [Ping timeout: 248 seconds]
nari has joined #ruby
classix has quit [Ping timeout: 260 seconds]
k610 has joined #ruby
vlad_starkov has joined #ruby
seanyo has quit [Ping timeout: 245 seconds]
xpen has quit [Ping timeout: 246 seconds]
cyong has quit [Quit: Leaving.]
jxriddle has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
k610 has quit [Ping timeout: 276 seconds]
greenarrow has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
classix has joined #ruby
AlbireoX has quit [Remote host closed the connection]
David_Miller has quit [Ping timeout: 276 seconds]
jimeh has joined #ruby
jimeh has quit [Client Quit]
psycho_one has joined #ruby
classix has quit [Ping timeout: 240 seconds]
<werdnativ> rspec question: can I set a message expectation to check if a block was passed? Something like: .with_block?
classix has joined #ruby
<werdnativ> should_receive(:message).with_block # or such.
Tearan has quit [Quit: Sleepy Badger....]
Dreamer3 has quit [Quit: Leaving...]
kil0byte has joined #ruby
SuperrMann has quit [Quit: Computer has gone to sleep.]
qwerxy has joined #ruby
xpen_ has quit [Read error: Connection timed out]
<werdnativ> I tried .with(&proc{foo!}) but it seems to just evaluate it instead of asserting
rellin has quit [Ping timeout: 255 seconds]
xpen has joined #ruby
Jdubs has quit [Ping timeout: 252 seconds]
kil0byt__ has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
zf_ has joined #ruby
<JohnTeddy> How can I define a method where if there is no input, say blah(), that I do a certain result.
Fraeon has quit [Read error: Connection reset by peer]
Fraeon has joined #ruby
<werdnativ> JohnTeddy: def blah(*args); if args.empty?...
<JohnTeddy> thanks
mercwithamouth has joined #ruby
zf has quit [Ping timeout: 255 seconds]
<JohnTeddy> werdnativ: If I have some file.rb I'm editing, then in pry I do 'require "./file.rb"', after I make an edit/save.. how can I reload that file to execute the changed/new method?
filipe has joined #ruby
<werdnativ> try load instead of require
<JohnTeddy> Thanks
<scx> i need function which can do that: f([1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]) => [[1, 4, 7, 10], [2, 5, 8, 11], [3, 6, 9, 12]]
vlad_starkov has joined #ruby
dr_bob has joined #ruby
kil0byte_ has joined #ruby
hoelzro|away is now known as hoelzro
k610 has joined #ruby
hotovson has joined #ruby
<scx> if i good remember it was similar to zip
kil0byte has quit [Ping timeout: 248 seconds]
<heftig> scx: transpose
workmad3 has quit [Ping timeout: 265 seconds]
quest88 has quit [Quit: quest88]
haxrbyte has quit [Ping timeout: 246 seconds]
ilyam has quit [Quit: ilyam]
xorigin has joined #ruby
haxrbyte has joined #ruby
monkegji_ has joined #ruby
richardjapenga has joined #ruby
tonini has joined #ruby
timmillwood has joined #ruby
<scx> heftig: thanks!
heftig has quit [Quit: leaving]
maxer has joined #ruby
maxer has quit [Client Quit]
areil has quit [Ping timeout: 246 seconds]
Asher has joined #ruby
foofoobar has joined #ruby
<foofoobar> Hi. General question: tab or spaces? What is most commonly used?
areil has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<Hanmac> i use tabs and no one can stop me :D
<rking> foofoobar: I burn tabs with putrid hatred.
<foofoobar> Are there any advantages/disadvantages?
<rking> Might as well :%ce your code in vim if you want to use tabs.
<rking> Tabs display differently in different contexts
<rking> At the benefit of a few bytes compactness.
<foofoobar> okay
<foofoobar> so better tell me editor to use 2 spaces when I press tab?
monkegji_ has quit [Read error: Connection reset by peer]
SPYGAME has joined #ruby
FlyingFoX has quit [Read error: Operation timed out]
<rking> foofoobar: Exactly.
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
tomsthumb has quit [Quit: Leaving.]
_alejandro has quit [Remote host closed the connection]
FlyingFoX has joined #ruby
adeponte has quit [Ping timeout: 276 seconds]
eataix has joined #ruby
awestroke has joined #ruby
ReBa_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
mneorr has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
haxrbyte has joined #ruby
SPYGAME has quit [Ping timeout: 264 seconds]
hbpoison has quit [Ping timeout: 246 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
maesbn has quit [Remote host closed the connection]
awestroke has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
dr_bob has joined #ruby
tchebb has quit [Ping timeout: 244 seconds]
pestouille has joined #ruby
monkegji_ has joined #ruby
bradhe has quit [Remote host closed the connection]
maesbn has joined #ruby
Elhu has joined #ruby
`psudo has quit [Ping timeout: 245 seconds]
wf2f has joined #ruby
wchun has quit [Read error: Operation timed out]
elentras has joined #ruby
bradhe has joined #ruby
w2f2 has quit [Ping timeout: 260 seconds]
SPYGAME has joined #ruby
TheFuzzball has quit [Ping timeout: 246 seconds]
jaygen has quit [Remote host closed the connection]
marr has joined #ruby
chussenot has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
sn0wb1rd has quit [Quit: I will be right back]
maxer has joined #ruby
TheFuzzball has joined #ruby
ReBa_ has left #ruby [#ruby]
dekroning has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 260 seconds]
monkegji_ has quit [Ping timeout: 246 seconds]
blacktulip has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
zigomir has joined #ruby
monkegji_ has joined #ruby
cdt has joined #ruby
bradhe has quit [Remote host closed the connection]
<whomp> whenever i try to upload my rails app to heroku, it says "installing sqlite3 (1.3.6) with native extensions" and then gives an error. heroku can't work with sqlite3, so i need to be out of the picture. however, it's installing it because of a dependency on sqlite3, right? so how can i avoid this?
<whomp> *so it needs to be
maxer has quit [Quit: maxer]
<Hanmac> whomp you are in the wrong channel?
<whomp> would rails be the right one?
<Hanmac> #rubyonrails
<whomp> ohhhh ok
<whomp> #rails was so small...
ephemerian has joined #ruby
neersighted has quit [Read error: Operation timed out]
Shrink has quit [Ping timeout: 256 seconds]
colinbm has joined #ruby
nari has joined #ruby
heftig has joined #ruby
scx has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
awestroke has joined #ruby
Chryson has quit [Quit: Leaving]
swex has joined #ruby
thinkit2 has quit [Read error: Connection reset by peer]
statarb3 has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby
chussenot has quit [Quit: chussenot]
hsbt is now known as hsbt_away
tvw has joined #ruby
scx has joined #ruby
mmornati_ has joined #ruby
<mmornati_> hi guys...
<mmornati_> I've a strange problems with Daemons
<mmornati_> can someone help me?
savage- has quit [Quit: savage-]
hbpoison has joined #ruby
polymar has joined #ruby
jimeh has joined #ruby
polymar has quit [Remote host closed the connection]
polymar has joined #ruby
<mmornati_> this is my test code: http://pastie.org/5344820
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<mmornati_> and even if I start the app with the root user I've an error "Permission Denied" creating the PID file
Shrink has joined #ruby
<atmosx> try setting directly uid/gid to 0
<atmosx> see what happens
nari has quit [Ping timeout: 255 seconds]
<atmosx> make sure /var/run exists and has corect (0740 or something) permissions or use a different dir
<atmosx> with 777 permissions like /usr/local/var/run
vlad_starkov has quit [Remote host closed the connection]
<mmornati_> atmosx, I've another app that run correctly with a piece of code like that
zz_chrismcg is now known as chrismcg
<atmosx> in the same host?
haxrbyte has joined #ruby
<atmosx> you sure they don't try to use the exact same filename?
<atmosx> which is locked by the 1st app?
skum has joined #ruby
d3vic3 has quit [Ping timeout: 252 seconds]
Zai00 has joined #ruby
wchun has joined #ruby
<mmornati_> atmosx, yep same host
ryanf has quit [Quit: leaving]
d3vic3 has joined #ruby
SPYGAME has quit [Ping timeout: 268 seconds]
whomp has quit [Quit: This computer has gone to sleep]
<mmornati_> and ... normally no the pid file is different...
<mmornati_> but... wait... I try to check it :D
haxrbyte has quit [Ping timeout: 245 seconds]
<mmornati_> yep different file
<mmornati_> ll /var/run/kermit-restmco.pid
<mmornati_> ls: cannot access /var/run/kermit-restmco.pid: No such file or directory
Iszak has joined #ruby
<mmornati_> Permission denied - /var/run/kermit-restmco.pid (Errno::EACCES)
<mmornati_> if I switch to /tmp all works correctly
<mmornati_> but I don't understand why, knowing I'm root
<mmornati_> is there a way to print out, inside Daemons, the user is using to startup
<mmornati_> ?
<mmornati_> could it be different than the one I'm logged in on the server?
workmad3 has joined #ruby
reinaldob has joined #ruby
bradhe has joined #ruby
<mmornati_> atmosx, find it out... I had a change user to nobody in another class :S
<mmornati_> thanks to grep :D
fyolnish has quit [Remote host closed the connection]
Jork1 has joined #ruby
dakine has quit [Quit: Leaving]
blazes816 has quit [Quit: blazes816]
baphled has joined #ruby
jsmonkey has joined #ruby
cdt has quit [Quit: Ex-Chat]
cdt has joined #ruby
beiter has joined #ruby
<mmornati_> another problems...
<mmornati_> I've a control class (the one I pasted) that daemonized another class...
<mmornati_> and in the second class I'm managing logs...
<mmornati_> but if I start with daemon I get this error: log writing failed. closed stream
nkts has quit []
<mmornati_> that I think it means that log file is closed
u89 has joined #ruby
<mmornati_> any idea?
artOfWar has quit [Ping timeout: 268 seconds]
hbpoison has quit [Ping timeout: 276 seconds]
SPYGAME has joined #ruby
maxer has joined #ruby
piotr_ has joined #ruby
robinbowes is now known as jobinbowes
kil0byte has joined #ruby
jobinbowes is now known as robinbowes
djdb has joined #ruby
elaptics`away is now known as elaptics
timonv has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
SPYGAME has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
araujo has joined #ruby
u89 has quit [Remote host closed the connection]
reset has joined #ruby
haxrbyte has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
u89 has joined #ruby
u89 has quit [Remote host closed the connection]
SeySayux has quit [Read error: Operation timed out]
Villadelfia has quit [Read error: Operation timed out]
rohit has joined #ruby
elico has joined #ruby
zommi has quit [Ping timeout: 244 seconds]
whomp has joined #ruby
SeySayux has joined #ruby
whomp has quit [Read error: Connection reset by peer]
haxrbyte_ has joined #ruby
Villadelfia has joined #ruby
elico has quit [Client Quit]
hackerdu_ has joined #ruby
hackerdude has quit [Ping timeout: 252 seconds]
awestroke has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
SPYGAME has joined #ruby
beilabs has quit [Ping timeout: 252 seconds]
hamed_r has quit [Ping timeout: 260 seconds]
beilabs has joined #ruby
tonini has quit [Remote host closed the connection]
chussenot has joined #ruby
SPYGAME has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
u89 has joined #ruby
Amirh has joined #ruby
daniel_- has joined #ruby
slainer68 has quit [Read error: Operation timed out]
zommi has joined #ruby
hbpoison has quit [Ping timeout: 265 seconds]
xpen has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
Averna has joined #ruby
hotovson has quit [Remote host closed the connection]
bradhe has joined #ruby
jhgaylor has quit [Read error: Connection reset by peer]
morf has joined #ruby
rohit has quit [Ping timeout: 246 seconds]
jake has joined #ruby
jake is now known as Guest28555
hbpoison has quit [Ping timeout: 246 seconds]
codecaster has joined #ruby
tvw has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
pestouille has quit [Quit: pestouille]
emergion has joined #ruby
jbw has joined #ruby
hsbt_away is now known as hsbt
dakine has joined #ruby
casheew has quit [Read error: Connection reset by peer]
chussenot_ has joined #ruby
casheew has joined #ruby
Averna has quit [Quit: Leaving.]
slainer68 has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
jds has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
SPYGAME has joined #ruby
codecaster has joined #ruby
zaki[] has quit [Read error: Operation timed out]
xpen has joined #ruby
zarubin has quit []
berserkr has joined #ruby
chussenot has quit [Ping timeout: 240 seconds]
chussenot_ is now known as chussenot
casheew has joined #ruby
monkegj__ has joined #ruby
SPYGAME has quit [Ping timeout: 268 seconds]
monkegji_ has quit [Ping timeout: 276 seconds]
xpen has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
heftig has quit [Quit: leaving]
heftig has joined #ruby
jj`` has left #ruby [#ruby]
emergion has quit [Quit: Computer has gone to sleep.]
hsbt is now known as hsbt_away
chussenot has quit [Quit: chussenot]
LouisGB has joined #ruby
mikecmpbll has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
zommi has quit [Ping timeout: 244 seconds]
ttt has quit [Disconnected by services]
ABK has joined #ruby
ttt_ has joined #ruby
jgrevich has quit [Quit: jgrevich]
zaki[] has joined #ruby
horofox has joined #ruby
swex_ has joined #ruby
swex has quit [Ping timeout: 246 seconds]
maetthew has quit [Quit: bye!]
chussenot has joined #ruby
fermion has joined #ruby
banisterfiend has joined #ruby
SPYGAME has joined #ruby
hbpoison has joined #ruby
levabalkin_ has joined #ruby
uxp_ has joined #ruby
yxhuvud2 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
dv__ has joined #ruby
FlyingFoXy has joined #ruby
AllStruck has quit [Ping timeout: 265 seconds]
yxhuvud has quit [Ping timeout: 265 seconds]
levabalkin has quit [Ping timeout: 265 seconds]
uxp has quit [Ping timeout: 265 seconds]
FlyingFoX has quit [Read error: Connection reset by peer]
strangeworks has quit [Ping timeout: 265 seconds]
caveat- has quit [Ping timeout: 265 seconds]
jbpros has quit [Ping timeout: 265 seconds]
AllStruck_ has joined #ruby
dv_ has quit [Read error: Connection reset by peer]
strangeworks has joined #ruby
caveat- has joined #ruby
SPYGAME has quit [Ping timeout: 255 seconds]
pyx has quit [Quit: Leaving]
jbpros has joined #ruby
u89 has quit [Remote host closed the connection]
elico has joined #ruby
JonnieCache has quit [Quit: Reconnecting]
arietis has joined #ruby
JonnieCache has joined #ruby
timmow has joined #ruby
JonnieCache has quit [Client Quit]
JonnieCache has joined #ruby
chussenot has quit [Quit: chussenot]
maetthew has joined #ruby
PDani has joined #ruby
<PDani> hi
haxrbyte_ has quit [Ping timeout: 246 seconds]
clocKwize has quit [Remote host closed the connection]
haxrbyte has joined #ruby
clocKwize has joined #ruby
<clocKwize> hey\
haxrbyte has quit [Remote host closed the connection]
chussenot has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
Ry_ has quit [Ping timeout: 252 seconds]
reset has quit [Quit: Leaving...]
emergion has joined #ruby
Amirh has quit [Quit: Leaving.]
jenrzzz has joined #ruby
u89 has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Michael__ has joined #ruby
yeban has quit []
yeban has joined #ruby
hotovson has joined #ruby
mengu has joined #ruby
bradhe has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
samphippen has joined #ruby
_bart has joined #ruby
<_bart> Hi, why should I use .class_eval to reopen a class if just re-defining it will also do the trick?
<banisterfiend> _bart: you dont have to use .class_eval if u dont wanna
beiter has quit [Ping timeout: 252 seconds]
<_bart> banisterfiend: alright
qwerxy has quit [Quit: offski]
psycho_one has quit [Remote host closed the connection]
freeayu has joined #ruby
lkba has joined #ruby
pen has joined #ruby
SPYGAME has joined #ruby
daniel_- has joined #ruby
francisfish has joined #ruby
rippa has joined #ruby
bier has quit [Ping timeout: 248 seconds]
u89 has quit [Remote host closed the connection]
becom33 has joined #ruby
fjfish has quit [Ping timeout: 276 seconds]
<becom33> I was wondering how can run a system application using C and like we stop using ctr+C can we stop the runing application in ruby ?
kil0byte_ has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
<becom33> system application which is written and complied using C *
<shevy> becom33 sure, you can trap this event
<shevy> trap('INT'){ run_this_method_when_sigint_was_used }
<shevy> or begin/rescue
<shevy> rescue Interrupt => error
fyolnish has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
<becom33> shevy, Im sorry I didnt get this ?
carloslopes has joined #ruby
Ry_ has joined #ruby
daniel_- has quit [Ping timeout: 246 seconds]
Michael__ has quit [Remote host closed the connection]
u89 has joined #ruby
tvw has joined #ruby
piotr_ has quit [Ping timeout: 240 seconds]
bier has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
zommi has joined #ruby
becom33 has quit [Quit: Leaving]
SPYGAME has quit [Ping timeout: 252 seconds]
<shevy> becom33 you asked whether you can stop ruby applications via ctr+c right?
<shevy> the answer is, yes you can. if you use ctr+c, an exception is raised automatically, which you can rescue
u89 has quit [Remote host closed the connection]
<shevy> begin; loop { puts "hi this is becom33" }; rescue Interrupt => error; require 'pp'; pp error; end
<shevy> put this in a .rb file, run it, then hit ctr+c
wpaulson has joined #ruby
Astral has joined #ruby
Amirh has joined #ruby
dekroning has quit [Read error: Operation timed out]
Astral is now known as Guest89414
vlad_starkov has joined #ruby
elaptics is now known as elaptics`away
Guest84680 has quit [Ping timeout: 248 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
MrSamuel has joined #ruby
Edward__ has quit [Ping timeout: 252 seconds]
fir_ed has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
<MrSamuel> hey, if I have a method that takes a block, i can only use method(args) do … end right?
<MrSamuel> I can't use method(args) { … } right?
<MrSamuel> oh, it works as long as I have brackets
<MrSamuel> i see
<MrSamuel> so, method args { … } won't work, but method args do … end works
<Xeago> method args { … } tries to pass the block to args
<Xeago> and that as an argument to method
emergion has joined #ruby
<Xeago> which is syntax error
<banisterfiend> myjust that {} binds really right, but do/end binds loosely
<MrSamuel> i see
<MrSamuel> and then it won't parse unless I wrote lambda in front o fit
beiter has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
chussenot has quit [Quit: chussenot]
hbpoison has quit [Ping timeout: 240 seconds]
hamed_r has joined #ruby
bradhe has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
ABK has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
larissa has joined #ruby
banisterfiend has quit [Remote host closed the connection]
verto|off is now known as verto
dhruvasagar has quit [Ping timeout: 246 seconds]
<MrSamuel> Does method_missing only fire when normal method resolution fails?
andrenkov has joined #ruby
krz has quit [Quit: krz]
dhruvasagar has joined #ruby
hbpoison has joined #ruby
<hoelzro> MrSamuel: yes
<MrSamuel> thx
<MrSamuel> :D
dogweather has joined #ruby
slainer68 has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 245 seconds]
cousine has joined #ruby
banisterfiend has joined #ruby
margle has quit [Ping timeout: 265 seconds]
colinbm has quit [Quit: colinbm]
baphled has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
k610 has quit [Read error: Connection reset by peer]
[Neurotic] has quit [Remote host closed the connection]
quazimodo has joined #ruby
kil0byte_ has quit [Ping timeout: 240 seconds]
<shevy> MrSamuel: your example would work if you would also use ()
<shevy> method(args) {}
jprovazn has quit [Remote host closed the connection]
<shevy> but people don't like the () there
<MrSamuel> yeah, that makes sense
<MrSamuel> shevy: I agree
<shevy> so they use do / end usually
<MrSamuel> I'm trying to make a reasonably nice DSL for configuring a compiler/build
<MrSamuel> I found a reasonably nice way of doing it
<shevy> a compiler?
<shevy> what does that compile?
Mon_Ouie has joined #ruby
ltsstar has joined #ruby
fermion has quit [Ping timeout: 268 seconds]
ltsstar has quit [Client Quit]
maesbn_ has joined #ruby
skaczor has joined #ruby
Ry_ has quit [Ping timeout: 276 seconds]
maesbn has quit [Ping timeout: 252 seconds]
scx has quit [Ping timeout: 268 seconds]
Ry_ has joined #ruby
Zai00 has quit [Quit: Zai00]
ffranz has joined #ruby
postmodern has quit [Quit: Leaving]
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
hbpoison has joined #ruby
zommi has left #ruby [#ruby]
codecaster has quit [Quit: Leaving.]
<MrSamuel> Is TABS vs SPACES a big issue for ruby programmers?
<MrSamuel> I just had someone file a bug report against my project because I use TAB indentation
<MrSamuel> I just prefer that, I don't mind if someone else prefers spaces
<MrSamuel> What should I do?
fixl has quit [Remote host closed the connection]
margle has joined #ruby
<morf> use spaces
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<JonnieCache> its not a big issue, because everybody uses two spaces
<MrSamuel> right, but I prefer to use tabs
<MrSamuel> morf: I have 60 projects that all use tabs and are consistent
<morf> you shouldn't
<MrSamuel> morf: yes, but tabs are easier for me
<morf> it's better use spaces always period
<morf> bla bla bla me me me
<MrSamuel> morf: I tried using spaces and found tabs easier?
bradhe has joined #ruby
<morf> setup editor to replace tabs with spaces for you
* Hanmac uses still tabs
<MrSamuel> yes, but we are talking about 100s of source files
<MrSamuel> i mean, at the very least, I'd have to write a script, and to what end, it only makes my life harder?
<morf> it's like the same if the editor doing it for you?
<MrSamuel> I use 3 different editors
<MrSamuel> across at least 3 different machines
<morf> you just love to complain don't you? ;)
<MrSamuel> look, it feels like I'm fighting against you which isn't really what I want to do
<MrSamuel> I'm not complaining
<shevy> MrSamuel: I always use 2 spaces for one level of indent
<MrSamuel> BUT… I'm trying to figure out whether given the circumstances its a worthwhile change
elico has quit [Quit: elico]
<MrSamuel> If you make this out to be a battle then no one is going to win
answer_42 has joined #ruby
<shevy> it can not be a bug in ruby because the ruby parser does not care much unless the python parser (well, ruby actually gives a warning sometimes, in case of wrongful indents in case/when menus)
bbttxu has joined #ruby
fermion has joined #ruby
cascalheira has joined #ruby
banisterfiend has quit [Ping timeout: 252 seconds]
<MrSamuel> shevy: that is a reasonable statement
<shevy> well
<shevy> you should still use spaces of course
<shevy> :)))
<MrSamuel> I kind of feel a bit overwhelmed by these guys
<shevy> but as long as you dont use emacs, that is fine...
<MrSamuel> they all jumped on top of my project
<MrSamuel> I'm happy about that...
<MrSamuel> but not sure about what to do regarding this
vickaita has joined #ruby
<shevy> eh I used to use tabs myself years ago
<MrSamuel> shevy: so why did yo change?
x0F has quit [Disconnected by services]
<shevy> I was somehow using tabs to indent documentation however, and that sucked so much that I decided that spaces is simply easier to deal with
x0F_ has joined #ruby
<morf> anyway tabs vs spaces it's neverending battle
<MrSamuel> why is it easier?
<shevy> MrSamuel: the tab somehow messed things up
x0F_ is now known as x0F
<shevy> in the documentation
Zai00 has joined #ruby
<MrSamuel> For me, tab indentation is so easy, I just select entire blocks of code and it tab or shift tab and everything aligns up beautifully
<shevy> you can align via spaces beautifully as well however :)
BryanWB_ has joined #ruby
<MrSamuel> but that always seems like more work
<BryanWB_> how can I inspect what's inside a Proc object?
<MrSamuel> what happens if it was one space out?
<shevy> BryanWB_: I'd think pp your_object would work
<shevy> MrSamuel: I don't allow that :)
<BryanWB_> shevy: nope unfortunately
<shevy> hmmm
<MrSamuel> shevy: Tabs not only don't allow that but they enforce that.
<shevy> MrSamuel: enforce how? does your editor not allow you to sneakily add an extra tab somewhere of your choosing?
Amirh has quit [Quit: Leaving.]
<morf> MrSamuel: tabs vs spaces > google and read. you have to decide yourself after all
<shevy> BryanWB_: no idea, I thought pp would show the innards of a proc ... :(
<MrSamuel> shevy: If you insert an additional tab its very clear that it is indented incorrectly
<morf> however most people use spaces instead of tabs
<shevy> but so is when I use extra spaces too, it's no longer aligned to the rest of the code, so it sticks out as well
<workmad3> MrSamuel: you could always use an editor that allows soft-tabs
<shevy> I dont use one space alone though
<MrSamuel> workmad3: yeah some of my editors do
<MrSamuel> workmad3: but at least all my editors support tabs correctly and consistently
haxrbyte has joined #ruby
<workmad3> MrSamuel: define 'correctly and consistently'
<shevy> he presses tab, they add \t
<MrSamuel> yeah thats basically it :D
<shevy> since they all do that, that is consistent :D
<workmad3> MrSamuel: because half the complaints surrounding tabs are that they can really screw up your layout when you start switching tab-width between different editors and users
<shevy> of course it is not correct, but well ;)
<MrSamuel> workmad3: I've never had that problem
haxrbyte has quit [Remote host closed the connection]
<shevy> tabs screwed up my documentation-layout!
<MrSamuel> workmad3: not on a single project out of 60
<shevy> can you show me how you document code MrSamuel ?
Guest89414 has quit [Read error: Connection reset by peer]
<shevy> I mean your own code
<workmad3> MrSamuel: I've had code that looks really weird because someone else had laid it out for a tab-width of 8 spaces and my editor opened it up with a tab-width of 4
<shevy> ugh 8 spaces... those are the worst
Guest89414 has joined #ruby
<MrSamuel> Yeah, but using tabs as indentation and using tabs for spacing are two completely separate issues
<MrSamuel> if you use tabs for spacing you are f**ked
larissa has quit [Ping timeout: 240 seconds]
<MrSamuel> I completely agree on that point
<MrSamuel> I only ever use tabs for indentation from the left column
<shevy> ah the first sign of weakness
<shevy> in two years you will be using spaces :)
<workmad3> MrSamuel: they'd laid it out using a tab-width of 8 for indentation, and lined stuff up with spacing based around that
jlwestsr has joined #ruby
horofox has quit [Quit: horofox]
<workmad3> MrSamuel: and that screwed up the layout when viewed with a different tab-width
<shevy> the only one who can never be persuaded is Hanmac
dhruvasagar has quit [Ping timeout: 252 seconds]
<MrSamuel> workmad3: that seems very odd
<MrSamuel> workmad3: never had that problem
haxrbyte has joined #ruby
larissa has joined #ruby
cantonic has joined #ruby
haxrbyte has quit [Remote host closed the connection]
qwerxy has joined #ruby
<MrSamuel> Does it seem reasonable to accept a patch that changes the entire project from TABS to SPACES even though (a) it is purely cosmetic and (b) I personally prefer tabs
<MrSamuel> What about the other way around?
baniste__ has joined #ruby
<MrSamuel> If someone submitted a patch changing all SPACEs to TABS?
<Iszak> MrSamuel it depends, if it's following a standard that the project is meant to follow then sure it's reasonable.
erichmenge has joined #ruby
k610 has joined #ruby
<MrSamuel> Iszak: So, in that case I should write a coding standard for my own projects
Neomex has joined #ruby
Neomex has quit [Client Quit]
<Iszak> No, I think you should adopt an existing one.
<MrSamuel> Then it conforms to at least some documented standard
<Iszak> A good start is https://github.com/styleguide/ruby which says to use soft-tabs with two space indent.
<MrSamuel> Iszak: So, you think I should go and change 100s of source code files JUST for this issue?
<Iszak> MrSamuel it's very easy to convert tabs to spaces….
haxrbyte has joined #ruby
iamjarvo has joined #ruby
<MrSamuel> Personally, I think the patch is obnoxious
cousine_ has joined #ruby
cousine has quit [Read error: Connection reset by peer]
<Iszak> MrSamuel if it doesn't say why, I would comment on asking why, if they say to conform to a standard, say doesn't follow that standard, will look into it.
robbyoconnor has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 246 seconds]
<MrSamuel> The bug report was "There is a convention to use two spaces instead of tabs"
larissa has quit [Ping timeout: 252 seconds]
<Iszak> MrSamuel that is the general convention I've seen among ruby code, I must say.
vickaita has quit [Ping timeout: 268 seconds]
<workmad3> MrSamuel: some people get very militant about their coding standards, and it is a bit obnoxious, especially if the code-base is your project
<shevy> MrSamuel: this issue would not exist if you would embrace 2 spaces with all your heart :)
<MrSamuel> shevy: lol
<MrSamuel> workmad3: yes its my own project..
<workmad3> MrSamuel: I'd probably consider closing it with a trollface ;)
<Iszak> MrSamuel but you don't want to appear hostile and totalitarian over the project otherwise no one will want to contribute
<shevy> but the question is really simple - either you use 2 spaces for that project, or not. if you dont, you must reject the patch.
<Iszak> or you could keep the patch pending why you mull over the idea.
<shevy> this is not "contribution"
<Iszak> for years
chussenot has joined #ruby
<shevy> if it would fix a real bug, yeah
<shevy> but it attempts to impose one world view alone for no benefit as-is
mark_locklear has joined #ruby
larissa has joined #ruby
samphippen has joined #ruby
<shevy> except until the day when MrSamuel embraces spaces finally :)
<MrSamuel> shevy: lol
<Iszak> well considering most people use spaces, it'd mean they need to configure their editor to use tabs and not spaces. Which means patches will be rejected for those who don't.
<Iszak> just a larger barrier to entry.
<MrSamuel> Iszak: yes I appreciate this point
<baniste__> MrSamuel: every language has its coding standards, when i write obj-c code i want my code to look like obj-c, when i write C i want it to look like C, when i write ruby i want it to look like ruby. I don't format/indent my code like it was C if i'm writing Ruby, and so on. Ruby code is generally 2 spaces, that's just how it is. I guess people will live with it if it's not, but it wont look distinctively rubyish
<workmad3> MrSamuel: heh, you could always claim that you're being more performant and space-conservative, after all a tab is only one character while double-space is 2 :)
slainer68 has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<workmad3> MrSamuel: so you're saving on disk-space, and you're speeding up how quickly the ruby runtime can parse your code
<Iszak> you should rewrite all the code in C for performance.
<MrSamuel> assembly
<Iszak> even better.
<shevy> workmad3: I use that reasoning when omitting documentation!
<workmad3> MrSamuel: it's bullshit reasoning, but I bet you someone that's militant enough to send you that patch will swallow it down like it's ambrosia
<workmad3> shevy: :D
jlwestsr has quit [Ping timeout: 246 seconds]
ttt_ has quit [Remote host closed the connection]
<MrSamuel> So, the main reason to use tabs is because its more consistent?
<MrSamuel> sorry
<MrSamuel> spaces
tommyvyo has joined #ruby
<MrSamuel> the main reason people use spaces is because its consistent?
haxrbyte has joined #ruby
<workmad3> MrSamuel: tbh, the main reason I use spaces is because the community standard is for spaces... I used to use tabs, and the consistency arguments can be made in both directions
<baniste__> MrSamuel: consistent with other ruby code? yeah i guess so, 2 spaces is "ruby-ish" :)
haxrbyte has quit [Remote host closed the connection]
<Iszak> I mean, if this was PHP, I'd say - use whatever you like, because it's coding standard is a mess.
erichmenge has quit [Quit: Be back later]
elaptics`away is now known as elaptics
<workmad3> spaces require less work to make consistent across setups, tabs allow a certain amount of user choice and flexibility
SuperrMann has joined #ruby
Neomex has joined #ruby
<workmad3> different languages and different communities fall into place around different choices
haxrbyte has joined #ruby
<workmad3> it's all a big dogmatic battle, and a lot of the ruby community has grown around 2 spaces rather than tabs
erichmenge has joined #ruby
<MrSamuel> right
<Iszak> It's like the vim vs emacs wars.
slainer68 has quit [Ping timeout: 246 seconds]
<workmad3> Iszak: except that in vim vs emacs there's an obvious right answer :P
<workmad3> </troll>
<Iszak> workmad3 yes exactly, emacs.
<workmad3> Iszak: exactly wrong :P
haxrbyte_ has joined #ruby
<MrSamuel> vimacs
hatoishi has joined #ruby
<Iszak> still emacs.
invisime has joined #ruby
<workmad3> Iszak: :D
eataix has quit [Ping timeout: 245 seconds]
<baniste__> even the vim author abandoned vim and said the emacs design was cooler
<baniste__> (it's ok wikipedia :P)
<MrSamuel> oh really!?
<MrSamuel> lol
<baniste__> on*
<baniste__> Yeah
<MrSamuel> thats pretty hilarious
<baniste__> i was teasing my vim frens about it the other day on #pry
beiter has quit [Quit: beiter]
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
krawchyk has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
samphippen has joined #ruby
<workmad3> baniste__: link? :P
eataix has joined #ruby
<baniste__> workmad3: holdon
<MrSamuel> Okay, so I just tried changing TextMate to soft tabs and I loose one think I find useful, the show invisibles for tabs and whitespace in general
<MrSamuel> is there some way to enable this for soft tabs?
haxrbyte_ has quit [Ping timeout: 256 seconds]
<baniste__> Joy continued to be lead developer for vi until version 2.7 in June, 1979,[12][18] and made occasional contributions to vi's development until at least version 3.5 in August, 1980.[18] In discussing the origins of vi and why he discontinued development, Joy said
<baniste__> I wish we hadn't used all the keys on the keyboard. I think one of the interesting things is that vi is really a mode-based editor. I think as mode-based editors go, it's pretty good. One of the good things about EMACS, though, is its programmability and the modelessness. Those are two ideas which never occurred to me.
<workmad3> baniste__: that would be the author of *vi*, not vim
<baniste__> workmad3: the arguments apply equally to vim
<baniste__> and vim isn't much different to vi, it's just a rewrite isn't it?
<baniste__> slightly modernized
<workmad3> only if you leave it in vi compatible mode (which is dumb)
<baniste__> like GLQuake vs Quake
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
<workmad3> baniste__: I mean, for starters, vim includes programmability
<csmrfx> Is there a way to detect a string "foobar" on a page using nokogiri?
haxrbyte has joined #ruby
<baniste__> workmad3: not quite in the sense of the programmability emacs, i think was referring to the programmable design of emacs
<baniste__> workmad3: emacs itself is really just an application written in e-lisp
<csmrfx> what
<csmrfx> Mr. Banner
<baniste__> it's intrinsically programmable
<csmrfx> Did you know that you can script vim using ruby?
<baniste__> csmrfx: it's not the same idea, as i said
thinkdevcode has joined #ruby
<workmad3> baniste__: right, but the original vi didn't even have that much, afaik
<baniste__> most editors are "scriptable" to a certain degree
<elaptics> baniste__: no, but I want a text editor not an OS in an OS :)
<baniste__> emacs is 100% programmable in a totally different sense
<csmrfx> yeah well
<csmrfx> vimscript smells very bad to me
ltsstar has joined #ruby
<Hanmac> shevy they are looking for an java developer on the ruby mailing list :D
<workmad3> baniste__: and as the awesome quote goes - 'emacs can do everything. One day, they'll add a decent text editor and it'll be finished' :P
<csmrfx> never really started doing it but to me it seems like php or pelr
<elaptics> workmad3: lol
<baniste__> workmad3: my favorite one is "vim is a modal editor with two modes: 1. beep all the time 2. break everything" ;)
<MrSamuel> lol
<workmad3> baniste__: :)
<workmad3> baniste__: I turned off the beeps :P
colinbm has joined #ruby
horofox has joined #ruby
codecaster has joined #ruby
<workmad3> baniste__: still, vim is as actively developed as emacs is, and it's decades since it was just a reimplementation of vi :)
<baniste__> ah ok, fair enough
<Hanmac> what about joe? :D
elico has joined #ruby
filipe has quit [Remote host closed the connection]
znake has joined #ruby
cakehero has joined #ruby
und3f has quit [Ping timeout: 240 seconds]
<workmad3> baniste__: and I did spend a summer once determined to learn and use emacs... and came out of that hating emacs ;)
<MrSamuel> lol
<MrSamuel> i was just reading this http://www.codinghorror.com/blog/2009/04/death-to-the-space-infidels.html and I found out I do the unholy melding of tabs and spaces for alignment
<MrSamuel> lol
bradhe has joined #ruby
<MrSamuel> I normally use tabs for indentation from the left column, and spaces for indenting anything that is supposed to align up
flip_digits has joined #ruby
<hoelzro> jjjj
<MrSamuel> however these days I tend to just rely on the editor wrapping code usefully
<baniste__> workmad3: yeah it's not for everyone
<MrSamuel> its generally easier to read since sometimes I have two pages of code side by side or one page vertically
<hoelzro> oops
jlwestsr has joined #ruby
tommyvyo_ has joined #ruby
yshh has quit [Remote host closed the connection]
maasha has joined #ruby
Agis__ has joined #ruby
robozahn has joined #ruby
Neomex has quit [Quit: Neomex]
robozahn has quit [Client Quit]
<Agis__> how can I tell vim to treat .thor files like they are .rb files?
psycho_one has joined #ruby
tk__ has joined #ruby
<heftig> autocmd BufNewFile,BufRead *.thor setf ruby
hatoishi has quit [Quit: leaving]
<Agis__> thx!
Agis__ has quit [Client Quit]
AlbireoX has joined #ruby
elico has quit [Quit: elico]
JonnieCache has quit [Ping timeout: 240 seconds]
<luminous> hello! trying to use octopress as a regular (non-ruby) coder and running into problems. this is running as my regular user: http://pastie.org/private/udycttwfg1qtgkqhqpy1pw this worked when i last ran as root, but i was then trying to use octopress and was unable to do so. any/all guidance is appreciated
levabalkin_ has quit []
Tombar has quit [Remote host closed the connection]
Guest10501 has joined #ruby
Tombar has joined #ruby
chussenot has quit [Quit: chussenot]
<maasha> say, how serious are shoes? is it being maintained? can you build something major with it?
Jdubs has joined #ruby
_fmm has quit [Ping timeout: 240 seconds]
<Jdubs> Hi all! :)
<Jdubs> o/
foofoobar has quit [Ping timeout: 244 seconds]
<luminous> maasha: when was the last commit?
<maasha> luminous: I dont know quite where to see that on github
vectorshelve has joined #ruby
seanyo has joined #ruby
tbrock_ has joined #ruby
<vectorshelve> why is it returning 2 and not false ? https://gist.github.com/4038897
<workmad3> https://github.com/ashbb/green_shoes <-- that one still seems at least somewhat active
chussenot has joined #ruby
betz has joined #ruby
rippa has quit [Ping timeout: 265 seconds]
SilSila has joined #ruby
<dogweather> luminous: I just finished a project with Jekyll Bootstrap. It's pretty similar to Octopress. Was easy.
<maasha> workmad3: so, whats the story with the green shoes?
samphippen has quit [Quit: Computer has gone to sleep.]
<workmad3> maasha: why not try reading the readme for it?
betz has quit [Read error: Operation timed out]
und3f has joined #ruby
* maasha is not getting any wiser
tbrock_ has quit [Quit: Computer has gone to sleep.]
<dogweather> Any here ever write a Jekyll plugin?
<SilSila> friends...is rubyonrails is an editor? or a programming language? i want to develop my own website...
<Mon_Ouie> Neiter, Ruby on Rails is a web framework
erichmenge has quit [Quit: Be back later]
<Hanmac> SilSila rubyonrails is an framework, ruby is the language, redmine is an editor
tbrock_ has joined #ruby
<Mon_Ouie> Redmine isn't an editor
foofoobar has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
tbrock_ has quit [Client Quit]
<Muz> Rubymine's an editor. Redmine is a project management clusterfuck.
<workmad3> Rubymine is an IDE
<baniste__> Mon_Ouie: fun http://picktheperp.com/
jipiboily has joined #ruby
<baniste__> Mon_Ouie: is marijuana legal in belgium?
burgestrand has quit [Ping timeout: 256 seconds]
Nathandim has joined #ruby
<csmrfx> It is not legal in any country afaik
john2x has joined #ruby
<csmrfx> The correct term is decriminalized or similar
<csmrfx> A country cannot be a member state of UN if their laws do not make drugs illegal...
<baniste__> csmrfx: even in holland?
<csmrfx> it is not legal
aquaranto has joined #ruby
<Hanmac> csmrfx in my county its legal if you have an recipe from your doctor
<csmrfx> it is just not prosecuted
<baniste__> csmrfx: me thinks u have a whacked notion of "legal"
<dogweather> csmrfx: very skeptical
samphippen has joined #ruby
<csmrfx> Of course medication is legal. Possessing medication without a prescription is illegal in most countries.
<baniste__> csmrfx: there are constrains on the use of lots of things, doesnt mean that thing is 'illegal'
<SilSila> Mon_Ouie: so ... rubyonrails is a single word? or ruby is alone a name for this programming framework....if yes...what rails means?
<jipiboily> SilSila: Ruby is the language
<baniste__> csmrfx: i can't tow a trailer faster than 80km/s so there's constrains on it, doesn't mean towing a trailer is "illegal", same with marijuana in holland.
<csmrfx> baniste__ dogweather well, you both are the ones who are clueless, dont blame me, and this is off topic, so go read on that
<jipiboily> Ruby on Rails is a web framework built with Ruby
lkba has quit [Ping timeout: 260 seconds]
<csmrfx> baniste__: perl allows you to have global vars, but if you use strict, then you have to declare context. Same deal.
<SilSila> jipiboily: so i have to use redmine to write ruby programming? or i can use simple notepad with ruby file extension?
<Hanmac> you can use notepad too
Rydefalk has quit [Read error: Connection reset by peer]
<jipiboily> SilSila: use what you want, no editor in particular is necessary
<jipiboily> I used Sublime Text 2
burgestrand has joined #ruby
<jipiboily> a lot of ppl are using Vim (unix) or Texmate (Mac)
Rydefalk has joined #ruby
xsbeats_ has joined #ruby
<jipiboily> Sublime Text is available on all major platforms AFAIK
* Hanmac uses gedit or eclipse
<maasha> So, I will revise my question. How serious is green_shoes? can you build something major with it?
aetcore has quit [Remote host closed the connection]
<dogweather> SilSila: http://bit.ly/T8RSbJ
hamed_r has quit [Quit: Leaving]
psycho_one has quit [Read error: Connection reset by peer]
psycho_one has joined #ruby
Axsuul has quit [Ping timeout: 252 seconds]
Serial_Killer_C has joined #ruby
<SilSila> great...which editor i can use for all together....macromedia website builder gives all options like writing html,php,connecting database etc...like this...which editor will be a best one like a me (as a beginner)
macabre has joined #ruby
otters has joined #ruby
<csmrfx> vim
<elaptics> SilSila: anything, whatever you find easiest. If you're looking to do web based programming it is all done with text files
<csmrfx> as a beginner, use cream (it is vim with beginner and normal modes)
nanderoo has joined #ruby
aquaranto has quit [Remote host closed the connection]
cousine_ has quit [Remote host closed the connection]
enderx86 has joined #ruby
<jipiboily> vim is quite a learning curve while trying to learn Ruby, Rails AND Vim….my 2 cents ;)
<elaptics> SilSila: you probably want something that's geared towards programming with features like syntax highlighting but if you're learning a lot of new things - a text editor shouldn't be one of them
carlyle has joined #ruby
<csmrfx> Do you want to be a professional programmer?
haxrbyte_ has joined #ruby
aquaranto has joined #ruby
<csmrfx> You need to learn one editor well. Extremely well.
enderx86 has quit [Remote host closed the connection]
<SilSila> csmrfx: not that much...currently i am a oracle database administrator...i want to learn to build my own website in my free time....so i dont want to invest money in programming or for building a website...i want to do it of my own..
<SilSila> is there any WYSIWYGs where i can do all stuffs?
<jipiboily> csmrfx I totally agree, but learning one thing at a time might be easier...
xsbeats_ is now known as xsbeats
<csmrfx> I wouldn't know, I am professional programmer.
GoGoGarrett has joined #ruby
<Hanmac> i newer saw an WYSIWYG editor for ruby
enderx86 has joined #ruby
<jipiboily> csmrfx so am I :)
Serial_Killer_C has joined #ruby
beiter has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk_ has joined #ruby
screenmutt has joined #ruby
<codecaster> what you need to learn is the language and framework if needed
<codecaster> the editor is not important at all
<screenmutt> Hello! I've got a question for the gallery.
<codecaster> at least with ruby and rails
<codecaster> java,C#, etc are a different matter
<csmrfx> that is incorrect
<jipiboily> anyone knows about String#encode known (or not documented) issue that would result in "code converter not found (universal_newline)" when uploading a CSV from Windows but NOT from a Mac (same CSV!!!)?
<codecaster> actually it's pretty correct
<csmrfx> no it is not
<codecaster> I use a plain text editor, textmate
<codecaster> And I am very productive
haxrbyte has quit [Ping timeout: 260 seconds]
<csmrfx> So, you spend 2-6 times more editing than a vimmer
<codecaster> how come
<codecaster> explain that
Serial_K_ has joined #ruby
Slivka has joined #ruby
<jipiboily> not a Vim vs the world war please guys…;)
baphled has joined #ruby
jcaudle has joined #ruby
<codecaster> reasons would be welcome
<luminous> why would gem error out like this? http://pastie.org/private/udycttwfg1qtgkqhqpy1pw
<morf> vim is so cool lol
<screenmutt> I'm using Rails 3 and Twitter bootstrap. I'm trying to add popovers to some of my forms, but it's a lot of code, so I wrote a helper. Here's the code: http://pastebin.com/645nbe5T. The problem is I want to add another parameter to the text_field. How can I do this?
<MrSamuel> manveru wrote a vim clone called Ver in ruby
<MrSamuel> its pretty cool
thinkdevcode has quit [Remote host closed the connection]
<codecaster> I have been programming in ruby for 8 years and I tell you that I don't need any special editor
<jipiboily> screenmutt I guess that question should be asked on #rubyonrails
Serial_Killer_C has quit [Ping timeout: 276 seconds]
hotovson has quit [Remote host closed the connection]
<jipiboily> so, no one ever faced String#encode problems depending of the OS where a file would be uploaded of?
<screenmutt> jipiboily: It seemed like more of a general ruby syntax and functionality question
<clocKwize> I know a guy who uses vim, he is A LOT less productive than me, and watching him edit code and navigate between files, find in files etc annoys the hell out of me
<codecaster> Actually I used vim a long time ago, dropped it
<csmrfx> codecaster: so, you want to change a variable name in all open files
<SilSila> thank you guys....i have finalised like this...notepad++ in my windows 7 ultimate edition...have anybody used this editor?
ananthakumaran1 has quit [Quit: Leaving.]
<codecaster> csmrfx: i never needed to do that
<csmrfx> codecaster: can you do that with one command
<csmrfx> lol
<_bart> ffi fails to install: https://gist.github.com/926c3a506fe7e7b70e36 what to do?
<csmrfx> 8 years and you never changed a variable name?
<csmrfx> ok
* csmrfx has to go
betz has joined #ruby
<codecaster> In an undefined number of files? no
<codecaster> do you use global variables or what?
dogweather has quit [Remote host closed the connection]
<csmrfx> To each their own
<codecaster> keep changing variable names and using vim for that
<codecaster> very useful
<codecaster> -_-
<codecaster> apart from the fact that textmate can probably do that
<codecaster> But I don't need it
<clocKwize> Find and replace in files? thats well hard
<jipiboily> screenmutt you could probably build your own form builder (http://railscasts.com/episodes/311-form-builders [paid])
amaya_ has joined #ruby
vickaita has joined #ruby
<clocKwize> Ctrl+Shift+F <find string> Tab <replace string> Return
AndChat| has joined #ruby
<clocKwize> you don't need vim to do that without using the mouse
<codecaster> indeed
<SilSila> is this the place i have to start with... http://guides.rubyonrails.org/ ? or any other link is also appreciated....for a beginner like me...
<csmrfx> codecaster: I can tell you really dont have much work.
<clocKwize> SilSila, that is the best place to start
<jipiboily> SilSila that should do it
<jipiboily> SilSila codeschool provides a free beginner course too
<codecaster> lol?
Ry_ has quit [Ping timeout: 255 seconds]
<csmrfx> Ask a noob, get a noob answer...
<jipiboily> SilSila: http://www.codeschool.com/courses (free basic Ruby course and free Rails course)
<codecaster> More than 40 hours per week seems quite a nice amount of programing for the last 8 years
<codecaster> actually I don't care, vim troll
<codecaster> you can leave now
<clocKwize> csmrfx, I would generally not have to change a variable name across files, as variables are defined to scopes and scopes are generally small (i.e. less than 1 file)
<clocKwize> method names, class names, yes more often
<csmrfx> Good job telling someone who points out some facts you didn't realize a 'troll'
<codecaster> yeah, module and class names from time to time
<codecaster> And I can do that with textmate
<clocKwize> codecaster, indeed
<codecaster> It's not a fact
<codecaster> :)
<clocKwize> or sublime
<codecaster> it's your opinion
<csmrfx> Not an opinion.
theRoUS has joined #ruby
theRoUS has joined #ruby
<codecaster> which from my point of view, is wrong
Banistergalaxy has quit [Ping timeout: 260 seconds]
bbttxu has quit [Ping timeout: 246 seconds]
<csmrfx> Same kind of thing as the mythical-man-hour.
<csmrfx> Some things simply are realities, no matter how obscure or too-obvious.
<codecaster> yeah
<codecaster> keep going
bbttxu has joined #ruby
<codecaster> I have stuff to do, which btw is not changing variable names along lots of files
<csmrfx> lol
<csmrfx> You didn't change variable names cause you couldn't do that without tons of manual work, sure.
bradhe has joined #ruby
kil0byte_ has joined #ruby
<codecaster> yeahm you are right
<csmrfx> Doesn't mean a proper editor wouldn't save hours of your time weekly.
<codecaster> that's the reason
<clocKwize> lol
amaya_ has quit [Client Quit]
<codecaster> I could program websites with a keystroke in vim
<clocKwize> codecaster, just ignore him, hes trolling
<SilSila> codecaster and clocKwize: thank you guys.....
<csmrfx> yep, trolling, you into my ignore list 8)
<clocKwize> csmrfx, go for it.
<codecaster> perfect
<codecaster> :D
<luminous> is there a better place for gems / renv gurus?
<clocKwize> codecaster, too, i'm sure he'd appreciate being ignored by you
<codecaster> I use vim mainly for assembler
ABK has joined #ruby
bbttxu has quit [Client Quit]
ttt has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
<jipiboily> luminous have you tried reloading RVM as stated in your pastie?
<shevy> anyone knows of some ruby script that checks ruby code for potential improvements in terms of efficiency, especially speed?
SilSila has left #ruby [#ruby]
raddazong is now known as madhatter
<csmrfx> shevy: it's called profiling
madhatter is now known as Guest47720
jcaudle has left #ruby [#ruby]
<baniste__> can someone refactor this so it's less ridiculous https://gist.github.com/4039101
<shevy> csmrfx: yeah but that requires one to invest time, when it is not a lot of code, profiling seems as if one has to invest more time than worth the initial investment :(
notwen has quit [Read error: Connection reset by peer]
jagira has joined #ruby
notwen has joined #ruby
Guest10501 has quit [Ping timeout: 246 seconds]
Guest47720 has quit [Changing host]
Guest47720 has joined #ruby
SilSila has joined #ruby
<csmrfx> shevy: you mean you have to put in work?
<csmrfx> ooo
<clocKwize> csmrfx, vim sucks
<shevy> of course
Guest47720 is now known as madhatter
<csmrfx> whatever
<clocKwize> haha, you didn't ignore me
<csmrfx> yes, you will have to install the profiler gem and run it
kil0byte has joined #ruby
<csmrfx> being lazy is good, being a dousche is boring
codecaster has quit [Ping timeout: 252 seconds]
nemesit has joined #ruby
<SilSila> friends..when i open the download page in ... http://rubyonrails.org/download... there are 3 parts...one is ruby and rubygems (ok..this is a package ) then what about rails (what this means)?
enroxorz-work has joined #ruby
<vectorshelve> is there a way I can tidy ip this ruby method ? https://gist.github.com/4039121
ttt has quit [Ping timeout: 240 seconds]
jagira has quit [Client Quit]
solidoodlesuppor has joined #ruby
sailias has joined #ruby
mikepack has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
Nanuq has joined #ruby
<csmrfx> baniste__: whats wrong with that code?
<baniste__> csmrfx: just feels weird
<clocKwize> SilSila, try http://rubyinstaller.org/ maybe
<clocKwize> SilSila, Most people here probably aren't on windows
Rydefalk has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
screenmutt has quit [Quit: Page closed]
hbpoison has quit [Ping timeout: 252 seconds]
codecaster has joined #ruby
<csmrfx> hard to say, not knowing what it is for and whats in/out
djdb has quit [Read error: Operation timed out]
<SilSila> clocKwize: in that site also windows installer available
elico has joined #ruby
<clocKwize> SilSila, that site is the windows installer
<clocKwize> I was just making the remark that most people here don't use windows
<clocKwize> either mac or linux
TommyBlue has quit [Quit: Coyote finally caught me]
ABK has quit [Ping timeout: 248 seconds]
TommyBlue has joined #ruby
TommyBlue is now known as TommyBlue
djdb has joined #ruby
marr has quit [Ping timeout: 246 seconds]
Cultofmetatron has joined #ruby
<SilSila> clocKwize: ok...so only this rubyinstaller is enough or i have to install anything for rails...? so ruby and rubyonrails are same?
k610 has quit [Remote host closed the connection]
fernand has joined #ruby
Guest10501 has joined #ruby
gpalmier has quit [Ping timeout: 260 seconds]
linoj has joined #ruby
fernand has quit [Changing host]
fernand has joined #ruby
<clocKwize> SilSila, rubyinstaller installs ruby on windows. I know nothing more than that
<clocKwize> read the guys on the site, I'm sure it tells you how to do it
csaunders has joined #ruby
kkh is now known as Guest10363
fernand is now known as kkh
znake is now known as znake|away
mark9 has joined #ruby
<SilSila> ok...one more thing..is this ruby is more powerful than php and asp?
Serial_K_ has quit [Remote host closed the connection]
<clocKwize> SilSila, in what respect?
<mark9> yeah... it supports chaining
<csmrfx> depends
znake|away is now known as znake
<csmrfx> well, anything is more powerful than asp, though
jeffreybaird has joined #ruby
<clocKwize> ASP is good at talking to microsoft products, PHP is quite fast
bradhe has quit [Ping timeout: 260 seconds]
<clocKwize> yet ASP is also terribly out dated, has masses of problems, no support and makes it very difficult to write scalable reliable applications
quido has joined #ruby
<clocKwize> PHP has problems too, which I can't be assed to list as it'll probably get someones back up
<clocKwize> Ruby also has its problems
<SilSila> so all are having some pros/cons but ruby is the emerging one...is it?
<clocKwize> ASP has no pros
<clocKwize> any more
<clocKwize> it might have done 10 years ago
freeayu has quit [Remote host closed the connection]
<SilSila> not asp .... instead of asp.net or c#.net i wrote asp
<clocKwize> PHP will be harder to learn and you'll find lots of bad advise and won't know better and will end up having hard to maintain, insecure applications that break easily
<clocKwize> Ruby on Rails makes it easy to get things going without really writing any code and covers up stuff you shouldn't care about
Tombar has quit [Remote host closed the connection]
<clocKwize> ASP.NET/C# are ok, I guess
djdb has quit [Remote host closed the connection]
<clocKwize> they also have their problems
<Jdubs> @clocKwize, I'm currently learning Ruby before going on to rails, is that good or bad?
<jamescarr> I switched to ruby, we ran back to the embracing arms of PHP
<csmrfx> Ruby is most fun!
<clocKwize> Jdubs, good
<Jdubs> kk
geekbri has joined #ruby
<csmrfx> And gawds, do learn ruby before you learn a framework
<kaleido> not that i ever built anything serious, but i always preferred sinatra to rails
<clocKwize> jamescarr, then you were probably doing it wrong :) What made you do that?:
cousine has joined #ruby
<jamescarr> clocKwize: we're also converting a legacy django project to PHP too
<clocKwize> kaleido, I have written several semi-large apps with Sinatra, they always start out small and sexy, then end up a mess of code that emulates things rails does for you
<jamescarr> for the lulz
<kaleido> im not smart enough to argue that :)
<kaleido> i also am not smart enough to grasp what goes in controlers vs models etc
foofoobar has quit [Quit: bb]
<kaleido> which is probably my main deterrent
<Vinz_> Controllers act on views, to send info to them
john2x has quit [Quit: Leaving]
<Vinz_> Models act on controllers, to fetch info from db
<csmrfx> Lol @ MVC
<clocKwize> jamescarr, I'm curious - what made you run away from rails and what frameworks do you use in PHP?
<csmrfx> Go to youtube and find rails vids
<kaleido> phpnuke!
<kaleido> ;)
<jamescarr> clocKwize: I'm kidding :)
<clocKwize> jamescarr, oh, ok :)
<Jdubs> Can someone please help me find the error that is crashing my program?
<clocKwize> Jdubs, gist
<Jdubs> just a syntax error somewhere
<Vinz_> csmrfx: I used to code with Sinatra, not with Rails
<Jdubs> having trouble finding it
starship is now known as Guest36125
Guest36125 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Guest10363 is now known as starship
<Vinz_> But as I'm python oriented by now
<clocKwize> !gist
Guest36125 has joined #ruby
<jamescarr> clocKwize: although in all seriousness, i remember reading years ago about CD Baby's attempted rewrite in ruby,then conversion back to php
<jamescarr> granted, i think other forces were at play
<mark9> Jdubs: check line 70, you have an open =begin
<mark9> and no end
ltsstar has quit [Ping timeout: 252 seconds]
<Jdubs> That still didn't fix it :/
<mark9> but it's a good start, right?
<csmrfx> always pastie your error
<csmrfx> (in a case like this)
dmerrick has joined #ruby
enderx86 has quit [Remote host closed the connection]
<wallmani> guys, i have a semi serious question: how employable are ruby developers?
<Muz> Not very, they're either japanese, or scriptkiddies and who wants to employ either of those?!
mmitchell has joined #ruby
flip_digits has quit [Read error: Connection reset by peer]
<clocKwize> CD Baby?
<wallmani> Muz: :D
juarlex_ has quit [Remote host closed the connection]
bbttxu has joined #ruby
<csmrfx> Before talking to codetexteditor and clockman here I would have said rubyists are pro
<clocKwize> Jdubs, you have =begin \n def equip(item)...
<mark9> Jdubs: go to line 79, type: end
<csmrfx> but I think you can not make such generalizations, Muz
<Muz> csmrfx: yeah, someone on the internet might take it seriously and not pick up on the obvious sarcasm.
<Muz> That'd be tragic, wouldn't it.
<Jdubs> hmmm
<clocKwize> wallmani, I currently work on 350 GBP day as a contractor, my contract is up in 1 month, so I put my CV out there yesterday, since then I've had calls basically every 10 mins, all day yesterday and today
<csmrfx> One womans sarcasm is other mans truth
<Jdubs> mark9 That fixed it...What was left open, the else statement? Do 'else' statements need an end?
<clocKwize> so I'd say very employable, given the experience
<mark9> def ^^
<Vinz_> Jdubs: With proper indentation, it's easier to fine.
<Vinz_> find*
<mark9> ask me anything, I spot code mistakes for a living
Neomex has joined #ruby
Neomex has left #ruby [#ruby]
<luminous> jipiboily: the source /usr/local/rvm/scripts/rvm bit? yes
<luminous> but maybe not enough or something? :P
<jipiboily> luminous to make sure it worked, just open a new terminal
<jipiboily> window or tab
<jipiboily> besides that, installing bundler should be enough
kkh has quit [Quit: WeeChat 0.3.8]
hbpoison has joined #ruby
eataix has quit [Quit: ZNC - http://znc.in]
ChronocityLC has joined #ruby
maesbn_ has quit [Remote host closed the connection]
nitti has joined #ruby
quesada has joined #ruby
maesbn has joined #ruby
artnez has joined #ruby
<quesada> my system ruby seems to be borked after updgrade to ubuntu 12.10
<quesada> is this a known problem?
osvico has quit [Ping timeout: 252 seconds]
stopbit has joined #ruby
<csmrfx> define "seems borked"
mikepack has quit [Remote host closed the connection]
<quesada> particularly... I install sass. Then $sass
<csmrfx> install? gem?
<quesada> rubygems/dependency.rb:247:in `to_specs': Could not find sass (>= 0) amongst [] (Gem::LoadError)
<quesada> comes with ruby 1.9.3, right?
<clocKwize> are you using bundler?
maasha has quit [Quit: Page closed]
<quesada> no
aetcore has joined #ruby
<quesada> I'm not a rubyist
<quesada> just need sass
<csmrfx> ok
<csmrfx> so define "install"
<csmrfx> You used system/apt-get ruby?
<csmrfx> You used ubuntus/apt-get rubygems?
philcrissman has joined #ruby
<quesada> from 12.04 to 12.10 they moved from 1.8.4 to 1.9.3 ruby
<csmrfx> Did you install the gem with apt-get or with "gem install"?
<quesada> with sudo gem install
answer_42 has quit [Ping timeout: 276 seconds]
<quesada> the one in apt-get is old
<csmrfx> I think the quickest solution for you would be using the apt-get
<quesada> good point
<csmrfx> tehcnically I am not on ubuntu anymore
cezar-b has quit [Quit: Leaving]
<quesada> should I remove the one from gem install?
<wallmani> clocKwize: how long have you been doind runy and how good of a programmer arr you and which country?
xpen has joined #ruby
answer_42 has joined #ruby
<csmrfx> quesada: perhaps
Appineer has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
<csmrfx> quesada: I not sure where those diff versions of rubygems look for their gems
<csmrfx> +on ubuntu
<clocKwize> wallmani, I've been doing ruby specifically about 3 years, I think I got my first developer job in 2008, but I've been coding since the 90s I guess. I work in London, England
<csmrfx> google for ubuntu 12.10 ruby gems install
* csmrfx goes to build the internet for a while
chussenot has quit [Quit: chussenot]
vickaita_ has joined #ruby
centipedefarmer has joined #ruby
<wallmani> cl
<quesada> "Under no circumstance should you install Ruby, Rubygems or any Ruby-related packages from apt-get. This system is out-dated and leads to major headaches. Avoid it for Ruby-related packages. We do Ruby, we know what's best. Trust us."
bradhe has joined #ruby
gpalmier has joined #ruby
<wallmani> clocKwize: i see. that is reassuring :) i am a college student from eurpe in the us looking forward to moving to europe once i have my degree in computer engineering
ChronocityLC has quit [Ping timeout: 260 seconds]
SCommette has joined #ruby
<Hanmac> quesada the apt-get ruby might not be the recentst but its 1.9.3 and not 1.8 anymore
Roa has quit [Ping timeout: 240 seconds]
<quesada> Hanmac: true
jaygen has joined #ruby
vickaita has quit [Ping timeout: 256 seconds]
hotovson has joined #ruby
<quesada> sass is 3.1.19. is that recent enough?
phantasm66 has joined #ruby
<csmrfx> I am on debian but I find apt-get ruby works fine - as long as the gems you need are in the apt
<csmrfx> for anything more complicated I slap in RVM
<clocKwize> wallmani, awesome, it takes a lot to get where I am I guess, but you are on your way - better than having a degree in childcare like my girlfriend who still earns slightly above minimum wage ;)
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
<wallmani> well i am on a good path alreadg
<clocKwize> yeah
<wallmani> ruby is not my first language
CamonZ has joined #ruby
<wallmani> i just really like it :)
slainer68 has joined #ruby
<luminous> jipiboily: you would be correct, thank you
znake has quit [Ping timeout: 244 seconds]
<clocKwize> wallmani, thats good too :) learning lots of languages and being able to weigh them up
<wallmani> started writing an irc bot for fun yesterday and it was 3 methods for basic functionality
<wallmani> and under 50 lines of code
<wallmani> and it is beautiful code
<jipiboily> luminous: np
<clocKwize> yeah, the great thing about ruby is the concept of gems
<wallmani> i get a warm fuzzy feeling which cant really say i feel when i c++ pr java
Tombar has joined #ruby
<wallmani> i still have a long way to go in ruby though
<wallmani> but its fun :D
<clocKwize> :)
<clocKwize> thats good
JonnieCache has joined #ruby
enderx86 has joined #ruby
<Jdubs> wow, 50 lines of code? it can connect to the server and view what happens in the channels already? what is the current functionality?
enderx86 has quit [Remote host closed the connection]
<Jdubs> @wallmani btw
<wallmani> clocKwize: do you do mostly web development?
tommyvyo_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
larissa has quit [Quit: Leaving]
slainer68 has quit [Ping timeout: 248 seconds]
elsifaka has quit [Read error: Connection reset by peer]
<wallmani> Jdubs: uses TCPSocket, connect to the oftc network with a nick, responds to server pings, responds to VERSION and can print a message
jipiboily has left #ruby [#ruby]
horofox has quit [Quit: horofox]
<clocKwize> wallmani, you can do it in less than that with a gem like isaac http://www.techrepublic.com/blog/programming-and-development/let-isaac-help-you-build-irc-bots/3784
<wallmani> Jdubs: i am thinking of a magnum opus that would be rewriting the irc bot bucket in ruby (i have not looked into thay too much though)
<wallmani> clocKwize: i will check that out, thank you
BrianJ has joined #ruby
callenb has joined #ruby
thinkdevcode has joined #ruby
chussenot has joined #ruby
<quesada> can't use apt-get's sass. As soon as I try to install gem zurb-foundation, it brings gem's sass, which doesn't work
Servidorv has joined #ruby
<quesada> trying with rvm then
SilSila has left #ruby [#ruby]
<Servidorv> hey guys
<Servidorv> how are you
<clocKwize> rvm is good at installing rubies for you (better than apt-get)
xpen has quit [Remote host closed the connection]
<Nathandim> hey servidorv
<Servidorv> you know i have a problem with pushing and info
erichmenge has joined #ruby
<Servidorv> here is my code
xpen has joined #ruby
<Servidorv> i get the error Error:undefined method `<<' for {"name"=>"Mario Coletti Bologna", "id"=>"100004027221950"}:Hash
kkh has joined #ruby
<Servidorv> does anyone know what the problem is??
mpereira has joined #ruby
baniste__ has quit [Remote host closed the connection]
<Hanmac> like['date']=post['created_time']
quesada has quit [Read error: Connection reset by peer]
tommyvyo_ has joined #ruby
<Servidorv> you are a genious
<luminous> in octopress, running rake to create a new post errors out with the following.. is this a zsh thing? % rake new_post["my first post"] >>> zsh: no matches found: new_post[my first post]
jbw has quit [Read error: Operation timed out]
<Servidorv> thanks Hanmac
bitZero__ has joined #ruby
Ry_ has joined #ruby
<Xeago> luminous: yes, zsh tries to glob it
<Xeago> surround it with ticks
<luminous> indeed, escaping with \ also works
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Xeago> if you figure out how to turn globbing/matching off
<Jdubs> Xeago: Hey!!!
<Xeago> do tell, I don't want it >.<
<Xeago> Jdubs: ?
<luminous> :(
* luminous heads to #zsh
<Jdubs> Xeago: Just saying hi, you helped me the other day
<Jdubs> Xeago: remember?
<Xeago> yes I do :)
AndChat- has joined #ruby
jipiboily has joined #ruby
baroquebobcat has joined #ruby
tk__ has quit [Quit: ばいばい]
mikecmpbll has joined #ruby
rippa has joined #ruby
erichmenge has quit [Read error: Connection reset by peer]
erichmenge has joined #ruby
znake has joined #ruby
jakob- has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
Politoed has quit [Ping timeout: 244 seconds]
arya has joined #ruby
AndChat| has quit [Ping timeout: 246 seconds]
cantonic has quit [Quit: cantonic]
bradhe has quit [Ping timeout: 240 seconds]
andrenkov has quit [Quit: Leaving]
joshman_ has joined #ruby
_alejandro has joined #ruby
quest88 has joined #ruby
mikepack has joined #ruby
znake has quit [Ping timeout: 246 seconds]
<JonnieCache> Xeago: theres a noglob option or something
heftig has quit [Quit: leaving]
ananthakumaran has joined #ruby
elsifaka has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
jbw has joined #ruby
casheew has joined #ruby
<Servidorv> hey guys
xpen_ has joined #ruby
<Servidorv> i have another question
<Servidorv> I have this array https://gist.github.com/4039560
betz has quit [Quit: Leaving.]
<Servidorv> and i need it to group by year and months
strangeworks has quit [Quit: Leaving]
blazes816 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<Servidorv> i just tryied .group_by(&:month) but it wont work
<Servidorv> can any one help me in this one??
arya has quit [Ping timeout: 244 seconds]
<Jdubs> I wish I could :(
xpen has quit [Ping timeout: 245 seconds]
<Hanmac> .group_by{|o| [o[:date].year,o[:date].month] } ?
_fmm has joined #ruby
_fmm has quit [Client Quit]
sterNiX has joined #ruby
mmikeym has joined #ruby
arya has joined #ruby
<Servidorv> hanmac i get this error
<Servidorv> undefined method `year' for nil:NilClass
deo has joined #ruby
daniel_- has joined #ruby
deo has quit [Read error: Connection reset by peer]
<Servidorv> Hanmac: i got it pass that error by instead of [:date] ['date]
<Servidorv> ['date']
arya has quit [Client Quit]
<Servidorv> but now i get undefined method `year' for "2012-11-07T21:38:05+0000":String
banisterfiend has joined #ruby
<shevy> well Strings do not have .year method
<Servidorv> how can i change 2012-11-07T21:38:05+0000 to 2012-11-07 string??
<Hanmac> Date.parse after you require "date"
erichmenge has quit [Quit: Be back later]
<shevy> Date.parse("2012-11-06T20:32:25+0000").month
Kudos has quit [Ping timeout: 264 seconds]
<shevy> # => 11
<shevy> apparently this is november!
<Servidorv> yeap
casheew has quit [Read error: Connection reset by peer]
<jsaak> anyone knows what 1.9 native threads good for? or have a link?
deo has joined #ruby
casheew has joined #ruby
<Hanmac> i am still curios because some thing changed the symbols into strings
casheew has quit [Read error: Connection reset by peer]
<Servidorv> you guys are awsome man
deo has quit [Read error: Connection reset by peer]
<Servidorv> i how you my life
lkba has joined #ruby
<shevy> how?
<Servidorv> it worked :)
<Servidorv> i changed the data['from']['date']=Date.parse(post['created_time']) results.push data['from']
osvico has joined #ruby
<Servidorv> so in the array the date will be 2012-10-31
Kudos has joined #ruby
<Servidorv> then
<Servidorv> page_loyalty_joint.group_by{|o| [o['date'].year,o['date'].month] }
samphippen has joined #ruby
<Hanmac> can yo u say to me why your hash changes its keys?
asterinux has joined #ruby
Ry_ has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
callenb has left #ruby [#ruby]
quest88 has quit [Quit: quest88]
<shevy> it gets bored of the old keys
rasbonics has quit [Quit: rasbonics]
artnez has quit [Quit: artnez]
cousine has joined #ruby
<Servidorv> i dont know
<shevy> it's like with girls having a new man every 6 months
<Servidorv> but i think it was an array in the first place
<Servidorv> lol
<Servidorv> this is my complete code
asterinux has quit [Max SendQ exceeded]
<Servidorv> line 50 51 is the results
asterinux has joined #ruby
<Servidorv> line 90 to 122 is the actuall method
casheew has joined #ruby
<Servidorv> well both methods
asterinux has quit [Read error: Connection reset by peer]
codecaster has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
rasbonics has joined #ruby
rafter has joined #ruby
axl_ has joined #ruby
filipe has joined #ruby
daniel_- has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
ABK has joined #ruby
mercwithamouth has joined #ruby
<elico> I was wondering about ruby on rails forums system. anyone knows a good one?
arkiver has quit [Read error: Operation timed out]
kidoz has joined #ruby
<Xeago> elico: I think reddit is on ror, not 100% sure tho
sterNiX has quit [Ping timeout: 260 seconds]
erichmenge has joined #ruby
<elico> Xeago: Thanks, it seems like a nice thing.
codecaster has joined #ruby
erichmenge has quit [Client Quit]
enderx86 has joined #ruby
<elico> I am looking for something ready to use that I can customize.
sterNiX has joined #ruby
kil0byte has quit [Remote host closed the connection]
kkh has quit [Quit: WeeChat 0.3.8]
hbpoison has joined #ruby
kkh has joined #ruby
jaygen has quit [Remote host closed the connection]
tUze has joined #ruby
starship has quit [Quit: Leaving]
enderx86 has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
<davidcelis> reddit isn't rails
<mark9> but it has chaining, so it's better than rails
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
<davidcelis> python
<davidcelis> reddit sux
<Jdubs> davidcelis: BLASPHEMER!
<Jdubs> I like reddit :(
kkh has quit [Client Quit]
maesbn has quit [Remote host closed the connection]
<davidcelis> find a better internet
<mark9> redis is on rails afaik
Appineer has quit [Remote host closed the connection]
sts has joined #ruby
<davidcelis> nope
chussenot_ has joined #ruby
mengu has quit [Ping timeout: 246 seconds]
<davidcelis> sinatra dude
<blacktulip> #ruby and #ruby-lang which is the real ruby language chan?......
hbpoison has quit [Ping timeout: 246 seconds]
<davidcelis> does nobody check the repos before they say what it is? ;P
<banisterfiend> blacktulip: #ruby-lang
<banisterfiend> blacktulip: but it's boring there
<workmad3> :)
cdt has quit [Quit: Ex-Chat]
<sts> hello folks. is there a nicer way to test whether an expression got a hit, than "if not match.nil?" for Regexp?
berserkr has quit [Quit: Leaving.]
<blacktulip> i see.. so this one is the unofficial "fans" chan?
<workmad3> sts: 'if match'
samphippen has quit [Quit: Computer has gone to sleep.]
Serial_Killer_C has joined #ruby
mityaz has joined #ruby
<Hanmac> blacktulip -lang is the channel for the ruby itself developers
<tUze> gimme ideas to create an application in ruby related with music. please
<workmad3> Hanmac: #ruby-lang is actually the official freenode channel for ruby
<JonnieCache> tUze: write a markov chain generator for midi files
<blacktulip> oh, thx Hanmac , thx banisterfiend
<workmad3> Hanmac: not just the channel for the ruby core devs :)
berserkr has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<davidcelis> sts might wanna use the =~ operator as well
chussenot has quit [Ping timeout: 240 seconds]
chussenot_ is now known as chussenot
<workmad3> tUze: do a real time animusic system with ruby
banisterfiend has quit [Remote host closed the connection]
<workmad3> tUze: for extra credit, do it with rails and use webgl :)
morf has quit [Quit: eof]
ABK has quit [Ping timeout: 245 seconds]
<davidcelis> i love it when people can't even come up with their own idea
rasbonics has left #ruby [#ruby]
PDani has quit [Remote host closed the connection]
slainer68 has joined #ruby
vlad_starkov has joined #ruby
vickaita_ has quit [Ping timeout: 255 seconds]
erichmenge has joined #ruby
samphippen has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 268 seconds]
codecaster has joined #ruby
slainer68 has quit [Ping timeout: 265 seconds]
warb0 has joined #ruby
thinkdevcode has quit [Ping timeout: 246 seconds]
jake_ has joined #ruby
erichmenge has quit [Client Quit]
emptyflask has joined #ruby
banisterfiend has joined #ruby
GoGoGarr_ has joined #ruby
Guest28555 has quit [Read error: Connection reset by peer]
SuperrMann has quit [Ping timeout: 268 seconds]
richardjapenga has quit [Quit: Leaving]
xpen_ has quit [Remote host closed the connection]
GoGoGarrett has quit [Ping timeout: 268 seconds]
iaj has quit [Ping timeout: 260 seconds]
answer_42 has quit [Ping timeout: 276 seconds]
marel has joined #ruby
enderx86 has joined #ruby
d3vic3 has quit [Ping timeout: 246 seconds]
marr has joined #ruby
vickaita has joined #ruby
u89 has joined #ruby
Rydefalk_ has joined #ruby
elsifaka has quit [Quit: Veloma e!]
erichmenge has joined #ruby
<marel> Hi. Is there anyone who perhaps could translate some Ruby code ~10 lines to C++ code ? I have never seen ruby and this code is very important for me ..
banisterfiend has quit [Ping timeout: 256 seconds]
sailias has quit [Ping timeout: 240 seconds]
erichmenge has quit [Client Quit]
Rydefalk has quit [Read error: Connection reset by peer]
d3vic3 has joined #ruby
daniel_- has joined #ruby
aganov has quit [Ping timeout: 248 seconds]
headius has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
<hoelzro> marel: go ahead and paste the code
cibs has quit [*.net *.split]
cj3kim has joined #ruby
cj3kim has joined #ruby
baroquebobcat has joined #ruby
maletor has joined #ruby
yshh has joined #ruby
nitti has quit [Remote host closed the connection]
erichmenge has joined #ruby
<hoelzro> marel: which parts of the code are tripping you up?
iaj has joined #ruby
<davidcelis> probably the fact that he has never seen ruby
erichmenge has quit [Client Quit]
davidcelis has quit [Quit: K-Lined.]
<marel> hoelzro: 3rd and 4th lines and 8th and 9th lines
<Xeago> most likely map with the block
<hoelzro> marel: each is just like a for loop
<Xeago> marel: map builds an array of whatever the block returns, the block in this case is line 4
maletor has quit [Ping timeout: 260 seconds]
thinkdevcode has joined #ruby
GoGoGarr_ has quit [Remote host closed the connection]
anachronistic has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
brianpWins has quit [Quit: brianpWins]
wreckimnaked has joined #ruby
sailias has joined #ruby
SpamapS has joined #ruby
<marel> (0..11).map builds an array of 12 elements, right ?
minijupe has joined #ruby
dr_bob has quit [Quit: Leaving.]
<codecaster> not exactly
<codecaster> to_a explicitly does that
jipiboily has left #ruby [#ruby]
<SpamapS> Hi, I'm looking at automating gem dpeloyments and wondering if there is a flag for 'gem install' that will force it to only use https sources for data to avoid MITM vulnerability...
answer_42 has joined #ruby
<codecaster> I guess you can do that with bundler
jake__ has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<SpamapS> I know rubygems.org has https available, but I want gem to refuse to use any non https sources.
jake_ has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
vickaita has quit [Ping timeout: 265 seconds]
rellin has joined #ruby
erichmenge has joined #ruby
kkh has joined #ruby
erichmenge has quit [Client Quit]
Tania has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
marr has quit [Ping timeout: 246 seconds]
darthdeus has joined #ruby
ilyam has joined #ruby
wallerdev has joined #ruby
siyusong has joined #ruby
MrSamuel has quit [Read error: Connection reset by peer]
MrSamuel has joined #ruby
zcreative has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Elhu has joined #ruby
qwerxy has quit [Quit: offski]
enderx86 has quit [Remote host closed the connection]
BryanWB_ has left #ruby [#ruby]
nitti has joined #ruby
tar_ has joined #ruby
theRoUS has quit [Ping timeout: 255 seconds]
philcrissman has quit [Remote host closed the connection]
Elhu has quit [Client Quit]
eph3meral has joined #ruby
Elhu has joined #ruby
enderx86 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nitti_ has joined #ruby
bradhe has joined #ruby
betz has joined #ruby
beiter has quit [Quit: beiter]
<shevy> waaaaaaaaah :(
<shevy> they dump ruby!
<shevy> TRAAAAAAAITORS
philcrissman has joined #ruby
tar_ has quit [Client Quit]
nitti_ has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
cousine has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
<blacktulip> I think ppl are moving to javascript anyway. things like node.js
colinbm has quit [Quit: colinbm]
kil0byte has joined #ruby
nitti has quit [Ping timeout: 268 seconds]
jeff_sebring has joined #ruby
mrsolo has joined #ruby
<shevy> ewww
<shevy> ruby is dying
<rking> Haha
<rking> At least I got my *headshake* in for the day.
mensvaga has quit [Quit: Leaving.]
<codecaster> I don't care, nobody can beat ruby on development
<codecaster> I can move awy from it if I have millions of users, that's fine
<codecaster> away*
sailias has quit [Ping timeout: 240 seconds]
<Hanmac> i do 3d game programming with ruby ... javascript cant beat that :D
kil0byte_ has quit [Ping timeout: 276 seconds]
<shevy> don't say that
<rking> Hanmac: Actually, WebGL is pretty potent
<rking> Not the same niche as your Ogre stuff, but still can do a lot.
<shevy> ruby is only one place ahead of javascript on TIOBE now
<shevy> even perl is still ahead grrrr
<Hanmac> rking you mean like ths? http://www.youtube.com/watch?v=Nm0mOffXzig
<shevy> we really need mruby
<blazes816> luckily mruby exists now so we're good
<Jdubs> hey guys
<shevy> hey is this in ruby?
<Jdubs> when i run 'sudo gem install rails' my console hangs and it doesnt do anything, i have to exit with ctrl c
<Jdubs> What do i do
<Hanmac> shevy this video no, but i can do things like that in ruby
timonv has quit [Remote host closed the connection]
<shevy> mruby still is behind, I still can't require or load anything in it last time I tested mirb :(
tjbiddle has quit [Quit: tjbiddle]
alex__c2022 has joined #ruby
<shevy> Jdubs: depends, could take a while. does installing other, smaller gems work?
<rking> Hanmac: Not yet. ☺
<Jdubs> Shevy: yes
<shevy> well such videos would be cool
khakimov has joined #ruby
<codecaster> what's exactly the point of mruby?
<shevy> I would have lots of data already to describe a virtual world, now gimme a converter, in ruby, so I can load it up!
<codecaster> more lightweight?
<codecaster> extensible?
<shevy> codecaster: a bit similar to how people use lua in C applications
<codecaster> I see
<shevy> it will probably not be as fast as lua though :(
<codecaster> I want to try lua btw
<shevy> if it would be as fast as lua, noone would need lua anymore :P
<shevy> Hanmac: that looks like the alien dude in predator I
<shevy> imagine generating a whole movie like that with ruby
_bart has quit [Ping timeout: 246 seconds]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
nitti has joined #ruby
sailias has joined #ruby
<shevy> or those trailers for some of the newer games like hitman
<Hanmac> shevy ... its an 3d engine ... you could use it for an game ... or for an video ... depending on you :D
mpereira has quit [Ping timeout: 255 seconds]
<Paradox> harp darp
aantix has joined #ruby
brianpWins has joined #ruby
joeycarmello has joined #ruby
chussenot has quit [Quit: chussenot]
aquaranto has quit [Remote host closed the connection]
<shevy> Hanmac: yeah... but most of the ogre videos are very low in detail
<shevy> AND you need to use C++
<shevy> :P
maxmanders has quit [Quit: Changing server]
jaygen has joined #ruby
maxmanders has joined #ruby
<Hanmac> "AND you need to use C++" not anymore :D
<warb0> I got a really silly question - i installed the twitter gem - how would i then go about importing it into my program.rb
chussenot has joined #ruby
zigomir has quit [Ping timeout: 268 seconds]
chussenot has quit [Remote host closed the connection]
<shevy> usually like so:
<shevy> require 'twitter'
chussenot has joined #ruby
<Jdubs> I need help installing rails, I'm getting errors trying to install on lubuntu
<shevy> it would be the simplest convention to have the same name used
<shevy> if project name is "foobar", require "foobar" should work. if everyone follows that convention, things would be super simple
<shevy> and then Foobar.new too
<shevy> warb0: you could test in irb quickly... load irb, then try require 'twitter' and see what this gives you
<shevy> Jdubs: and what extension breaks down?
fyolnish has quit [Remote host closed the connection]
<shevy> the ruby on rails guys are on #rubyonrails btw
slainer68 has joined #ruby
mengu_ has quit [Read error: Connection reset by peer]
AlbireoX has quit [Remote host closed the connection]
Amirh has joined #ruby
punkrawkR has joined #ruby
davidcelis has joined #ruby
xorigin has quit [Quit: leaving]
adeponte has joined #ruby
<shevy> well the last gem is json
<shevy> you could always try to extract the json*.gem and run the extconf.rb or setup.rb file inside
_adeponte has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
cibs has joined #ruby
filipe has quit [Ping timeout: 246 seconds]
ixti has joined #ruby
d3vic3 has quit [Quit: leaving]
kidoz has quit [Quit: Ухожу я от вас]
adeponte has quit [Ping timeout: 240 seconds]
<Jdubs> sorry had to handle something, back now
<Jdubs> @shevy what do you mean? i was trying to install rails if that's what you mean
osvico has quit [Ping timeout: 240 seconds]
elico has quit [Quit: elico]
betz has left #ruby [#ruby]
<shevy> Jdubs: there is an error in your chain
<shevy> I dont know where it is, it looks as if the json gem was not installed properly
<shevy> try in irb, require 'json' or however you use it
<shevy> the ruby on rails experts are on #rubyonrails btw
Iszak has quit [Quit: User has gone to sleep.]
Xeago has quit [Ping timeout: 260 seconds]
ilyam has quit [Quit: ilyam]
C0deMaver1ck has joined #ruby
apok has quit [Quit: apok]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
philcrissman has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
hoelzro is now known as hoelzro|away
arkiver has joined #ruby
philcrissman has joined #ruby
maletor has joined #ruby
<Servidorv> hey guys
hoffmanc has joined #ruby
kbeddingfield has joined #ruby
ckrailo has joined #ruby
<Jdubs> kk
<Servidorv> that is the array i have in page_loyalty_duplicated
<Servidorv> now
mikecmpbll has quit [Client Quit]
<Servidorv> i need to delete the duplicates
ndrei has joined #ruby
<hoffmanc> shouldn't {a: { b: { c: :d } } }.flatten(3) # => [:a, :b, :c, :d] ?
<Servidorv> im doing duplicated.each{|users| users.uniq{|x| x['id']}}
<hoffmanc> instead I get [:a, {:b=>{:c=>:d}}]
<Servidorv> but it wont work
<Jdubs> ok so json qorks
<Jdubs> i can require it
<Servidorv> yeah i just took off the uniq since that is the problem
timonv has joined #ruby
<Servidorv> whenver i put users.uniq!{|x| x['id']}
<Servidorv> i get this error
<Servidorv> Error:can't convert String into Integer
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<Servidorv> i tried ['id'] and [:id]
<Servidorv> nut it doesnt work
<Servidorv> this is the code im using
jsmonkey has quit [Quit: Lost terminal]
ndrei has quit [Quit: leaving]
centipedefarmer has quit [Remote host closed the connection]
<hoffmanc> servidorv: really depends on what duplicated is set to
<maletor> Morning.
dpk is now known as dpk2
JeanMert_ has joined #ruby
daniel_-_ has joined #ruby
dpk2 is now known as dpk
<Servidorv> duplicated is an array
<Servidorv> that is the result
<davidcelis> hoffmanc: flatten doesn't really work that way on a hash, i dont think
<davidcelis> it's not recursive
norbert has joined #ruby
vickaita has joined #ruby
apeiros_ has joined #ruby
daniel_- has quit [Ping timeout: 246 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
<hoffmanc> davidcelis, according to the docs it does function recursively, if you specify a depth
samphippen has joined #ruby
norbert has quit [Client Quit]
<davidcelis> hoffmanc: false
<hoffmanc> servidorv, here's what I get when I go there: Error:undefined method `merge' for #<Array:0x00000002f303c0>
<davidcelis> hoffmanc: in fact, sir, it says the _opposite_
<davidcelis> ah, default
<davidcelis> well the recursion is probably just for the arrays
<Servidorv> yeah is because im trying to test it with mergin test => test
clj_newb has joined #ruby
<Servidorv> but it didnt work
<davidcelis> looking at the source for Hash#flatten, that would appear to be the case
<hoffmanc> servidorv, ...
<hoffmanc> davidcelis, well I'll chalk it up to bad documentation then, thanks
yshh has quit [Remote host closed the connection]
<Servidorv> hoffmanc look again
mahmoudimus has joined #ruby
joeycarmello has quit [Remote host closed the connection]
kbeddingfield has quit [Remote host closed the connection]
<Servidorv> that is the reall result i have
<Servidorv> what i need is to eliminate duplicates for each month, as you can see they are grouped by year month
centipedefarmer has joined #ruby
kbeddingfield has joined #ruby
csaunders has joined #ruby
<Servidorv> what i need is to eliminate duplicates on each of those grouped by
<Servidorv> this is what i use to group page_loyalty_joint.group_by{|o| [o['date'].year,o['date'].month]}
fyolnish has joined #ruby
erichmenge has joined #ruby
hoffmanc has left #ruby [#ruby]
timmow has quit [Ping timeout: 252 seconds]
horofox has joined #ruby
erichmenge has quit [Read error: Connection reset by peer]
erichmenge has joined #ruby
dmiller_ has joined #ruby
alfism has joined #ruby
polymar has quit [Remote host closed the connection]
tjbiddle has joined #ruby
<Servidorv> and this is what im using to try to eliminate the duplicates duplicated.each{|users| users.uniq{|x| x['id']}}
MrSamuel has quit [Quit: MrSamuel]
ephemerian has quit [Quit: Leaving.]
<Servidorv> but it doesn't work, i thought i can go each (of the grouped by) and then eliminate with uniq but it doesn't work
elaptics is now known as elaptics`away
ryanlecompte has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
samphippen has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
<Servidorv> any ideas how i can go it??
sepp2k1 has joined #ruby
Jdubs has quit [Remote host closed the connection]
quido has quit [Quit: leaving]
csaunders has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
csaunders has quit [Client Quit]
kil0byte has quit [Ping timeout: 255 seconds]
brianpWins has quit [Quit: brianpWins]
<shevy> sounds complicated
mmornati_ has quit [Ping timeout: 260 seconds]
<shevy> can you break it down to subproblems that are easier to solve
kil0byte has joined #ruby
fyolnish has quit [Ping timeout: 252 seconds]
samphippen has joined #ruby
Tania has quit [Read error: Connection reset by peer]
<shevy> .uniq does not do much
<shevy> %w( abc def abc ).uniq # => ["abc", "def"]
<shevy> just kills the duplicates
<Servidorv> yeah
<Servidorv> thats exaclty what i need
<Servidorv> i need to eliminate the duplicates but leave on of them
siyusong has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Azure> So you want to ...
<Azure> I hate it when people do that crap.
<shevy> lol
<shevy> servidorv: I dont understand. you want to kill all duplicates, but one?
<Azure> ... oh, misread the quit
philcrissman has quit [Remote host closed the connection]
<Servidorv> yeah eliminate all the duplicates but leave one of them
<Azure> My bad.
<shevy> hehehe
<shevy> well
skum has quit [Quit: Leaving...]
<shevy> which one
<shevy> randomly?
<Servidorv> it doesnt matter since all of the duplicates are exaclty the same
<shevy> but you know what, at this point, why don't you just iterate through your array, and apply whatever you want to do on that?
<shevy> you can add to a new array, by checking if the element is already inside or not
<Azure> So you want something like this: [abc, abc, abc, def, def] => [abc, abc, def, def]?
ndrei has joined #ruby
<shevy> hehehehe
chussenot_ has joined #ruby
<Servidorv> no i want [abc, def]
<shevy> !!!
Jdubs has joined #ruby
apok has joined #ruby
<shevy> %w( abc abc abc def def ).uniq # => ["abc", "def"]
csaunders has joined #ruby
<Servidorv> yeah but uniq wont work
<Servidorv> that it my problem
<jaygen> try uniq!
<Servidorv> i tryed and it comes back with error
<shevy> .uniq works very well
<Servidorv> i did that too
<jaygen> are you assigning the result to another variable?
<Servidorv> i even try uniq{|x| x['d']}
<shevy> what is this
chrismcg is now known as zz_chrismcg
<Servidorv> ['id'] sorry
apok has quit [Read error: Connection reset by peer]
<jaygen> ah, so you are not processing strings then
apok_ has joined #ruby
<shevy> would be so much easier if he'd use strings
<jaygen> ehhh
philcrissman has joined #ruby
chussenot has quit [Ping timeout: 246 seconds]
chussenot_ is now known as chussenot
<Servidorv> you can see the array here
<Servidorv> without the uniq
<jaygen> ah ok
<jaygen> wow
<jaygen> so you need to do .uniq{|k, v| v["id"]}
<jaygen> errr
voodoofish430 has joined #ruby
<Servidorv> Error:can't convert String into Integer
<Servidorv> thats what comes out
wreckimnaked has quit [Read error: Operation timed out]
<Servidorv> - lib/endpoints/pages/posts.rb:138:in `[]'
<Servidorv> - lib/endpoints/pages/posts.rb:138:in `block (2 levels) in remove_duplicated'
<Servidorv> - lib/endpoints/pages/posts.rb:138:in `uniq'
deavid has quit [Quit: No Ping reply in 180 seconds.]
<shevy> Integer?
<shevy> where is an integer there?
baphled has quit [Ping timeout: 248 seconds]
deavid has joined #ruby
fermion has quit [Ping timeout: 252 seconds]
<Servidorv> thats the code i use
GoGoGarrett has joined #ruby
<jaygen> yeah don't use that.. use .uniq!{|u| u["id"]}
<Servidorv> ok
chussenot has quit [Quit: chussenot]
<Servidorv> i still see duplicates
BoomCow has joined #ruby
<jaygen> the ! tells you that the change happens in place
<jaygen> so you need to make sure your framework picks up on that change somehow
<Servidorv> look at the result and search for id = 100000210969134
<Servidorv> yeah i included the !
<jaygen> yeah but that ! does not persist anything
<Servidorv> let me reboot the server
tar_ has joined #ruby
tar_ has quit [Client Quit]
<Servidorv> that might help
<jaygen> lol
Nathandim has quit [Quit: brb]
Tuxist has joined #ruby
BoomCow has quit [Client Quit]
rellin has quit [Ping timeout: 252 seconds]
JonnieCache has quit [Ping timeout: 252 seconds]
aquaranto has joined #ruby
BoomCow has joined #ruby
<Servidorv> Error:undefined method `uniq!' for #<PagesPosts:0x00000001ae4588 @opts={}>
<Servidorv> thats what comes out
nateberkopec has joined #ruby
bluenemo has quit [Remote host closed the connection]
ixti has quit [Quit: So Long, and Thanks for All the Fish!]
judd7 has quit [Read error: Connection reset by peer]
whomp_ has joined #ruby
slainer68 has joined #ruby
u89 has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
neersighted has joined #ruby
judd7 has joined #ruby
ViperMaul|_ has joined #ruby
und3f has quit [Ping timeout: 246 seconds]
tenmilestereo has joined #ruby
emptyflask has quit [Remote host closed the connection]
judd7 has quit [Read error: Connection reset by peer]
Rizzle has quit [Ping timeout: 260 seconds]
slainer68 has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
dmiller_ has quit [Remote host closed the connection]
jeff_sebring has quit [Quit: Leaving]
jlwestsr has quit [Quit: Ex-Chat]
workmad3 has quit [Read error: Operation timed out]
jimeh has quit [Quit: Computer has gone to sleep.]
<mityaz> hi, anybody using vim7 + ruby mode?
jonathanwallace has quit [Remote host closed the connection]
artOfWar has joined #ruby
judd7 has joined #ruby
BSaboia has joined #ruby
<davidcelis> servidorv: PagesPosts doesn't seem like an Array to me
<Servidorv> what does it look like??? cause i was just thinking about that (what if is not an array)
nachooo has quit [Ping timeout: 240 seconds]
nachooo_ has joined #ruby
Ry_ has joined #ruby
Russell^^ has joined #ruby
Tarential has quit [Ping timeout: 255 seconds]
codecaster has quit [Read error: Connection reset by peer]
steffes has joined #ruby
<davidcelis> ..
_________ has joined #ruby
<davidcelis> its an instance of PagesPosts, apparently
codecaster has joined #ruby
viktor_ has joined #ruby
otters has quit [Quit: WeeChat 0.3.9]
<Servidorv> mmm
steffes_ has joined #ruby
<Servidorv> ok so the problem is on the group then
topek has quit [Quit: Leaving.]
dakine has quit [Remote host closed the connection]
<Servidorv> ok so, is ther a way i can grou this arrays by months
<Servidorv> group sorry
<davidcelis> just month?
<Servidorv> i was using .group_by{|o| [o['date'].year,o['date'].month]}
und3f has joined #ruby
<Servidorv> yeah months and year
<Servidorv> but to return an array so i can then eliminate the duplicates with uniq
samphippen has quit [Read error: Operation timed out]
steffes has quit [Ping timeout: 248 seconds]
tvw has quit [Remote host closed the connection]
bricker has joined #ruby
brianpWins has joined #ruby
elico has joined #ruby
Monie has quit [Quit: Quit]
ilyam has joined #ruby
iaj has quit [Ping timeout: 265 seconds]
otters has joined #ruby
und3f has quit [Quit: Leaving.]
stkowski has joined #ruby
mark9 has quit [Quit: ohai]
Tarential has joined #ruby
skcin7 has joined #ruby
u89 has joined #ruby
berserkr has quit [Quit: Leaving.]
ericwood has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
emptyflask has joined #ruby
berserkr has joined #ruby
<ddd> don't know if any of you guys didn't get to go to rubyconf in colorado or haven't seen that confreaks has posted some videos, however, http://www.confreaks.com/videos/1272-rubyconf2012-implementation-details-of-ruby-2-0-vm is up. Sasada talking about the VM if anyone is interested
jenrzzz has quit [Ping timeout: 260 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
ABK has joined #ruby
iaj has joined #ruby
<ddd> if it was spammed earlier and I missed that, I apologize
ericwood has joined #ruby
jaygen has quit [Remote host closed the connection]
c0rn has joined #ruby
imami|afk is now known as banseljaj
slainer68 has joined #ruby
Araxia has joined #ruby
jaygen has joined #ruby
LooChao has joined #ruby
steffes_ has quit [Remote host closed the connection]
timmillwood has quit [Quit: Leaving.]
Zai00 has quit [Quit: Zai00]
havenn has joined #ruby
jonathanwallace has joined #ruby
scx has joined #ruby
insulator has joined #ruby
havenn has quit [Remote host closed the connection]
Araxia_ has joined #ruby
joeycarmello has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
havenn has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
joeycarmello has quit [Ping timeout: 252 seconds]
havenn has quit [Read error: Operation timed out]
maxer has quit [Quit: maxer]
arturaz has quit [Ping timeout: 246 seconds]
marel has quit [Ping timeout: 245 seconds]
rakl has joined #ruby
erichmenge has quit [Quit: Be back later]
ABK has quit [Ping timeout: 260 seconds]
iaj has quit [Ping timeout: 265 seconds]
dmiller_ has joined #ruby
solidoodlesuppor has quit [Remote host closed the connection]
timonv has joined #ruby
axiak_ has left #ruby [#ruby]
neersighted has quit [Quit: http://neersighted.com]
qwerxy has joined #ruby
nachooo has joined #ruby
nachooo_ has quit [Ping timeout: 246 seconds]
qwerxy has quit [Client Quit]
bitZero__ has quit [Ping timeout: 264 seconds]
Araxia has quit [Ping timeout: 246 seconds]
bitZero__ has joined #ruby
enderx86 has quit [Remote host closed the connection]
freakazoid0223 has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
deavid has quit [Quit: No Ping reply in 180 seconds.]
deavid has joined #ruby
tchebb has joined #ruby
rakl has quit [Quit: gone]
bluenemo has quit [Client Quit]
mpereira has joined #ruby
ryanlecompte has quit [Read error: Connection reset by peer]
arkiver has quit [Quit: Leaving]
ryanlecompte has joined #ruby
reinaldob has quit [Remote host closed the connection]
Slivka has quit [Remote host closed the connection]
iaj has joined #ruby
ibash has joined #ruby
ltsstar has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
ChampS666 has joined #ruby
daniel_-_ has quit [Ping timeout: 240 seconds]
thone has joined #ruby
erichmenge has joined #ruby
thone_ has quit [Read error: Operation timed out]
dmiller_ has quit [Remote host closed the connection]
LooChao` has joined #ruby
arturaz has joined #ruby
rakm has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rakl has joined #ruby
LooChao has quit [Remote host closed the connection]
LooChao` has quit [Remote host closed the connection]
LooChao has joined #ruby
<Servidorv> hey guys
<Servidorv> sorry to bother once again
icole has joined #ruby
<Servidorv> but how can i group_by into arrays, so for example, all month 11 into one array, and month 10 into another array
qwerxy has joined #ruby
<Servidorv> if i use group_by it groups them but by hash, i need them into arrays
becom33 has joined #ruby
<Servidorv> what will be the best way to do it
senny has joined #ruby
<blazes816> make arrays from the hash?
<Servidorv> can anyone point me in the right direcction??
dmiller_ has joined #ruby
dmiller_ has quit [Remote host closed the connection]
und3f has joined #ruby
eignerchris has joined #ruby
heftig has joined #ruby
<Servidorv> im using this
<Servidorv> arr.group_by{|o| [o['date'].year,o['date'].month]}
<becom33> when the site is not available Im getting this error getaddress': getaddrinfo: Name or service not known (SocketError)
<blazes816> arr=[]; hash.keys.map{|k| arr << hash[k] }
<Servidorv> but that groups them into a hash
eignerchris has quit [Client Quit]
eignerchris has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
<becom33> http://pastebin.com/v8EdxVTc is the code
sepp2k1 has quit [Remote host closed the connection]
<Servidorv> how can i do it so arr.group_by{|o| [o['date'].year,o['date'].month]} instead of grouping them into hash group them into arrays??
ethicalhack3r has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<apeiros_> servidorv: huh?
horofox has quit [Quit: horofox]
<apeiros_> can you make an example in-/output
<ethicalhack3r> Hi, is there a way in Ruby to get the size of a Hash in MB or similar?
<becom33> anyone for me ?
<Servidorv> yeah this arr.group_by{|o| [o['date'].year,o['date'].month]} does this
<apeiros_> servidorv: I mean data
<apeiros_> the array as it is before the group by and how it should look after
horofox has joined #ruby
alfism has quit [Quit: alfism]
horofox has quit [Client Quit]
<Servidorv> that is with the group
nachooo has quit [Ping timeout: 240 seconds]
daniel_-_ has joined #ruby
SuperrMann has joined #ruby
<Servidorv> what i need is to instead of grouping them on hashes i need to group them by array
<apeiros_> servidorv: yes, and I'd like to see that
cousine has joined #ruby
<apeiros_> i.e., take a small bit of your current data, show how it is now, and show how you want it to look
monkegj__ has quit [Remote host closed the connection]
<Servidorv> ok
nachooo has joined #ruby
ckrailo has joined #ruby
<Servidorv> right now it is -[2012, 11]: [{name:ss,id:aaa,date:2012-11-08}], -[2012, 10]: [{name:ss,id:aaa,date:2012-11-08}]
<Servidorv> but i need it to look like -[2012, 11]: {{name:ss,id:aaa,date:2012-11-08}}
<apeiros_> servidorv: {{ makes no sense
<apeiros_> {} is a hash. a hash has keys and values. your example doesn't.
<Servidorv> -[2012, 11]: {{name:ss,id:aaa,date:2012-11-08}, {name:ss,id:aaa,date:2012-11-08}, {name:ss,id:aaa,date:2012-11-08}, {name:ss,id:aaa,date:2012-11-08}}
hotovson has quit [Remote host closed the connection]
<becom33> when the site is not available Im getting this error getaddress': getaddrinfo: Name or service not known (SocketError)
<becom33> http://pastebin.com/v8EdxVTc is the code
<becom33> anyone for me ?
<Servidorv> oh ok
<Servidorv> ok bro thanks
<Servidorv> i guess i already have it in array then
<Servidorv> never mind
<Servidorv> another question
<Servidorv> [{name:ss,id:aaa,date:2012-11-08}]
<Servidorv> [04:31.22] <servidorv> but i need it to look like -[2012, 11]: {{name:ss,id:aaa,date:2012-11-08}}
<Servidorv> [{name:ss,id:aaa,date:2012-11-08}]
<Servidorv> [04:31.22] <servidorv> but i need it to look like -[2012, 11]: {{name:ss,id:aaa,date:2012-11-08}}
<Servidorv> i have this -[2012, 11]: [{name:ss,id:aaa,date:2012-11-08},{name:ss,id:aaa,date:2012-11-08}], -[2012, 10]: [{name:ss,id:aaa,date:2012-11-08},{name:ss,id:aaa,date:2012-11-08}],
<Servidorv> how can i eliminate the duplicates
<Servidorv> ??
<apeiros_> .uniq!
<Servidorv> cause ive been trying for the past hour or so and uniq wont work
reset has joined #ruby
<apeiros_> servidorv: why don't you remove the duplicates before grouping?
<Servidorv> arr.uniq!{|x, v| v['id']}
<apeiros_> arr.uniq.group_by { …
<apeiros_> why |x,v| ?
<Servidorv> because i need to eliminate the duplicate inside each month
jslowe has joined #ruby
<apeiros_> show the full code please. pastie.org or gist
<becom33> anyone for me ??
<apeiros_> complete with the pp/yaml of a small set of data before grouping/uniqueing
kil0byte has quit [Remote host closed the connection]
<becom33> when the site is not available Im getting this error getaddress': getaddrinfo: Name or service not known (SocketError)
<Servidorv> there is the gist
<becom33> http://pastebin.com/v8EdxVTc is the code
Vinz_ has quit [Quit: J'aime les noobs. ♥]
nachooo has quit [Ping timeout: 246 seconds]
<Servidorv> i need to remove the duplicates only inside each date array
<apeiros_> servidorv: err, yes, that makes no sense
<apeiros_> group_by *returns* the grouped data
arturaz has quit [Ping timeout: 255 seconds]
<apeiros_> yet you make absolutely no use of it. you just throw it away.
<Servidorv> ok
<apeiros_> and then you call uniq! on the original array again…
<apeiros_> servidorv: again, why don't you remove the duplicates before grouping?
pestouille has joined #ruby
<apeiros_> an item will never end up in more than one group
<Servidorv> because i need to eliminate duplicated only inside each month group
<apeiros_> arr.uniq { |o| o.values_at('id', 'month', 'year') }.group_by { |o| o.values_at('month', 'year') }
<Servidorv> well if the person posted on sep and october i need to have both, but i cant have the same person voted 2 times in the same month
kirun has joined #ruby
<atmosx> this ebox 3350mx is really good, it handles an awfull lot of load hmmm
nachooo has joined #ruby
freakazoid0223 has joined #ruby
pnbeast has joined #ruby
<apeiros_> servidorv: if he posted in sept and oct, those are hardly duplicates of each other - are they?
<apeiros_> servidorv: also, you can easily just state month & year to be part of the uniq block - just as I did
<Servidorv> oh i c
<Servidorv> then my problem is the way i was loking into it
<Servidorv> sorry bro i still have php on my head
<Servidorv> :(
theRoUS has quit [Quit: Leaving]
insulator has quit [Remote host closed the connection]
wicky has quit [Quit: leaving]
thinkdevcode has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
kirun_ has joined #ruby
kirun_ has quit [Read error: Connection reset by peer]
darthdeus has quit [Ping timeout: 246 seconds]
thinkdevcode has joined #ruby
jamescarr has quit [Quit: Page closed]
nachooo has quit [Ping timeout: 248 seconds]
nachooo_ has joined #ruby
Jork1 has quit [Quit: Jork1]
kirun has quit [Ping timeout: 260 seconds]
axl_ has quit [Quit: axl_]
kirun has joined #ruby
butblack has joined #ruby
BrianJ has quit [Read error: Connection reset by peer]
psycho_one has quit [Remote host closed the connection]
<shevy> hmm if I have a ruby file in my gem project bin/foo.rb but I want to allow calling it via "foo" too, does anyone know if symlinks for that work?
<shevy> though that will probably not work on windows hmm
nachooo_ has quit [Ping timeout: 246 seconds]
BrianJ has joined #ruby
Ry_ has quit [Ping timeout: 246 seconds]
thinkdevcode has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
Tuxist has quit [Read error: Connection reset by peer]
nachooo has joined #ruby
tar_ has joined #ruby
carloslopes has quit [Remote host closed the connection]
rafter has quit [Remote host closed the connection]
thinkdevcode has joined #ruby
ryh has joined #ruby
emmanuelux has joined #ruby
gpalmier has quit [Quit: leaving]
ryh has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
tvw has joined #ruby
ibash has quit [Quit: ibash]
Morkel has quit [Read error: Operation timed out]
darthdeus has joined #ruby
ltsstar has quit [Quit: ltsstar]
ltsstar has joined #ruby
Morkel has joined #ruby
garndt has joined #ruby
dv__ is now known as dv_
jakob- has quit [Quit: Linkinus - http://linkinus.com]
mikepack has joined #ruby
<Servidorv> hey how can i do this values_at('month', 'year') but without the come or space??
kalleth has joined #ruby
ibash has joined #ruby
<Servidorv> cause for me to be able to save the info into mongo it tells me that the key must be a string
<csmrfx> non comprende
ilyam_ has joined #ruby
<Servidorv> right now values_at('month', 'year') does [11, 2012]
<csmrfx> RETURNS
<csmrfx> ok
<Servidorv> i need it to do [112012]
<csmrfx> ri Array.join
<Servidorv> values_at('month', 'year').join??
<csmrfx> [ values_at(what, ever).join ]
<Servidorv> ok thanks
ibash has quit [Client Quit]
<csmrfx> you do know how to use ri?
<enroxorz-work> anyone familiar with sinatra?
<enroxorz-work> cant figure out why i cant thread out a background process
ilyam has quit [Ping timeout: 248 seconds]
ilyam_ is now known as ilyam
axl_ has joined #ruby
stw has joined #ruby
<csmrfx> enroxorz-work: do you really mean thread?
reset has quit [Quit: Leaving...]
nachooo has quit [Ping timeout: 240 seconds]
<enroxorz-work> tbh idk. i have a background process i need to kick off afer a post
txdv has quit [Read error: Connection reset by peer]
<enroxorz-work> a worker process really, but not a queue
txdv has joined #ruby
horofox has joined #ruby
<csmrfx> You do know that on MRI threading dont help much?
<csmrfx> so, a process
darthdeus has quit [Ping timeout: 246 seconds]
<burgestrand> Bullshit.
pyx has joined #ruby
mmornati_ has joined #ruby
horofox has quit [Client Quit]
techhelp has joined #ruby
<burgestrand> enroxorz-work: what does your code look like?
<burgestrand> enroxorz-work: and what is the problem with it?
<enroxorz-work> let me paste it
<enroxorz-work> gimem a minute
bradhe has quit [Remote host closed the connection]
dakine has joined #ruby
horofox has joined #ruby
tvw has quit [Ping timeout: 268 seconds]
<burgestrand> csmrfx: while MRI threading cannot execute in parallel, they are far from useless.
<burgestrand> csmrfx: it’s true that, for CPU-intensive work (say, heavy number crunching) pure-ruby code will not gain much from threads. However, for IO, and even large calculation with ruby’s bignum (which is used for large numbers), threads will help.
<Servidorv> i need so separate them so i can save them into mongo db
<Servidorv> but as separated like 102012 on record and 112012 another record
cakehero has quit [Quit: Computer has gone to sleep.]
<csmrfx> burgestrand: so, in fact, only thing that is bullshit, is your "bullshit" -statement.
Amirh has quit [Quit: Leaving.]
<csmrfx> 8)
<enroxorz-work> burgestrand: http://pastebin.com/WJsQm8AG
<burgestrand> csmrfx: no, I don’t like FUD being spread.
<csmrfx> MRI still runs in once single core, right?
<csmrfx> *one
<eph3meral> csmrfx: technically no
<burgestrand> enroxorz-work: `` will shell out, and ruby will wait until the command has finished before continuing execution. Is that what you want?
<eph3meral> csmrfx: but for practical purposes given the lock, yes
pettsson has joined #ruby
<enroxorz-work> burgestrand: nope. i want that badboy to run in the background
<kalleth> i had a requirement for that, used open3
<burgestrand> C extensions can unlock the lock, and take advantage of multiple cores; IO in ruby will do a similar thing.
<eph3meral> csmrfx: native multi-core support on the JVM is one reason people choose jruby
<kalleth> for shelling out, that is, enroxorz-work
<csmrfx> you realize that a forking process cannot access another processes memory btw
<burgestrand> enroxorz-work: are you interested in the return value?
<kalleth> Thread.new, then open3 it, then callback w result when it returns
<enroxorz-work> nope.
<burgestrand> enroxorz-work: or any information about the command’s execution at all?
<kalleth> or just `cmd &`
<kalleth> will that work?
* kalleth tries
<burgestrand> It might. :P
<csmrfx> servidorv: that url?
<Servidorv> that is my server url
<kalleth> burgestrand: it depends wether or not `` spins up a bash instance
<kalleth> and wether it waits for command completion and on command 'completion' killing the shell
<kalleth> or waits for the process to exit cleanly
<kalleth> IHNI which
<burgestrand> enroxorz-work: if you don’t care, i.e. fire and forget, Thread.new { `external.bat` } should work just fine, however if the process takes a long time to exit (or never exits), and you call this route many times, you’ll end with a lot of threads that never die which is not really good.
pothibo has joined #ruby
<Servidorv> this one sorry
joeycarmello has joined #ruby
<csmrfx> servidorv: What, is it, exactly, that you want to do?
<burgestrand> enroxorz-work: while naive, it’s the easiest solution.
nachooo_ has joined #ruby
<kalleth> burgestrand: i'd probably do something like @threads << Thread.new { `external.bat` } and then periodically @threads.each { |thread| thread.dosomethingtocheckifstillalive ? thread.kill : '' }
<Servidorv> I need to separate them so i can save them to mongodb
<kalleth> oh god mongodb
<kalleth> i'm out
ephemerian has joined #ruby
<burgestrand> kalleth: if it’s a process that runs for a few seconds that is started once every day I wouldn’t really bother. :P
tar_ has quit [Quit: tar_]
<Servidorv> if i save them right now it will save the complete array
<kalleth> burgestrand: he doesn't care about the output of the command because its mongodb… it can't tell him if it's succeeded or not ;)
<kalleth> also… erm… cron?
<csmrfx> servidorv: you want to separate them? burgestrand and kalleth?
<enroxorz-work> burgestrand: what if i wanted the return results?
<burgestrand> kalleth: that’s servidorv not enroxorz-work ^^
<kalleth> oh ffs
<kalleth> shitty new mac irc client i'm not familiar with
<burgestrand> enroxorz-work: depends. Where do you want the return results?
<csmrfx> servidorv: oh, did you mean you wanted to type "ri URI" in console?
<Servidorv> nop
cousine has quit [Remote host closed the connection]
reinaldob has joined #ruby
<csmrfx> yes you did
* kalleth reads scrollback
vickaita_ has joined #ruby
<Servidorv> ri uri??
<Servidorv> i need to separate that result into those date groups, for example save 102012 into one record and 112012 into another record
<enroxorz-work> burgestrand: actually, i take that back. even if i call an external class (Module::Class.execute) I still don't need anything back
<burgestrand> enroxorz-work: :)
<csmrfx> servidorv: cant see your server. pastie.org?
nachooo_ has quit [Ping timeout: 240 seconds]
nachooo has joined #ruby
<enroxorz-work> burgestrand: So this works as well? http://pastebin.com/30HExcfm
vickaita has quit [Ping timeout: 248 seconds]
<enroxorz-work> and continue to the redirect?
<burgestrand> enroxorz-work: yup!
swarley has joined #ruby
lxsameer has joined #ruby
<Servidorv> got the link csmrfx ??
neersighted has joined #ruby
<wwalker> /lastlog wwalker
cakehero has joined #ruby
<Servidorv> ri URI
lxsameer has quit [Remote host closed the connection]
<burgestrand> enroxorz-work: what it does is that it creates a separate thread that runs the code. Once the long-running code finishes the thread will die and ruby can clean it up.
wwalker has left #ruby [#ruby]
<enroxorz-work> will it continue to the next step while the thread is working?
<burgestrand> enroxorz-work: if your long-running code never finishes, or if you hit the /pdfcompare/text URL so often that you eventually have hundreds of threads running at the same time, you might need to change the code.
<burgestrand> enroxorz-work: yes, it will instantly go on to the next step.
<enroxorz-work> I have a lock file that prevents any additional processes to run
<enroxorz-work> thanks
<enroxorz-work> im gonna try this now. :)
nopolitica has joined #ruby
<burgestrand> :)
invapid has joined #ruby
<Servidorv> any one with ideas on how to separate that array ?? https://gist.github.com/4041317
J-_-L has joined #ruby
<Servidorv> i did try .each but it didnt work, it sais can't convert to integers
<burgestrand> servidorv: what is that?
<burgestrand> servidorv: looks like JSON to me.
<burgestrand> Except for…
<burgestrand> no quoting.
<Servidorv> yeah is json decode right now
<Servidorv> encode sorry
<burgestrand> servidorv: I don’t understand what you want to do.
<Servidorv> i have this array were i have grouped results into months and years
<Servidorv> so what i need is to save 102012 into one record, and 112012 into another record
nachooo has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
<Servidorv> now its without json.dump
SmoothSage has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
pestouille has quit [Quit: pestouille]
tvw has joined #ruby
areil has quit [Remote host closed the connection]
Beoran_ has quit [Read error: Connection reset by peer]
Beoran_ has joined #ruby
BSaboia__ has joined #ruby
<Servidorv> any ideas how i can separated and save both 112012 and 102012 into separate records
aquaranto has quit [Remote host closed the connection]
<Servidorv> more than the save part, i just need to separate them
<burgestrand> servidorv: what am I looking at?
xcvd`` has joined #ruby
techhelp has quit [Quit: Leaving]
<Servidorv> i did try a .each but it doesnt work
<csmrfx> So you want to concatenate two values in a hash?
xcvd`` has quit [Read error: Connection reset by peer]
<csmrfx> *from a hash, into an array
<csmrfx> (ignore the ri URI, I thought you wanted to split that url)
SuperrMann has quit [Quit: Computer has gone to sleep.]
<Servidorv> na let me show it to you in json.dump cause is more organized
<Servidorv> now it has the json.dump,
bradhe has joined #ruby
qwerxy has quit [Quit: offski]
jslowe has quit [Ping timeout: 246 seconds]
arturaz has joined #ruby
<burgestrand> servidorv: so what do you want it to look like?
<Servidorv> you will see that it has [112012]:[{name:bla, id:bla, month:bla, year:bla},{name:bla, id:bla, month:bla, year:bla}], [102012]:[{name:bla, id:bla, month:bla, year:bla},{name:bla, id:bla, month:bla, year:bla}],
BSaboia has quit [Ping timeout: 246 seconds]
<Servidorv> i just need to separate them
qwerxy has joined #ruby
reinaldob has quit [Remote host closed the connection]
<burgestrand> servidorv: it is rather { "112012" => [ { bla }, { bla } ], "102012" => [ { bla }, { bla }] }
<Servidorv> like make 102012 into one array or hash and 112012 into another array or hash
tar_ has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<Servidorv> yeah sorry
<burgestrand> servidorv: show what you want it to look like
<burgestrand> servidorv: I don’t understand what you want
<Serial_Killer_C> .flat_map
<Serial_Killer_C> nm
zommi has joined #ruby
<csmrfx> lol I also am not sure what you want
tbrock_ has joined #ruby
robbyoconnor has joined #ruby
nachooo has joined #ruby
<Servidorv> i want it so that when i send it to mongodb instead of saving it as one record
kbeddingfield has quit [Remote host closed the connection]
<Servidorv> i want it to save it as 2 records
robbyoconnor has quit [Read error: Connection reset by peer]
<csmrfx> what?
<csmrfx> 'it'?
<burgestrand> servidorv: show what it should look like
<tjbiddle> anyone have a second to answer a few rspec/general unit testing questions?
<burgestrand> tjbiddle: just ask, you’ll find out
<Servidorv> ok hold on
<burgestrand> tjbiddle: it’s not rude to just ask, it’s expected
pestouille has joined #ruby
<tjbiddle> burgestrand: heh, good to know :) thanks
<Servidorv> i need it to be organizer like this
chrxn has joined #ruby
<Servidorv> here you will see the way it is organized, wenever i send that response to mongo it will save it as diferent records
judd7 has quit [Read error: Connection reset by peer]
<tjbiddle> not sure if i'm going about this the wrong way (first time tester) - but how would i go about testing a method that does multiple things (calls a few other methods, such as creating git branches and updating trac tickets)
<burgestrand> servidorv: this is different data
fmcgeough has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
<burgestrand> servidorv: can you show with that that looks like the real data? just small is okay
<Servidorv> ok
nachooo has quit [Ping timeout: 260 seconds]
seanyo has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
<burgestrand> tjbiddle: in all due respect, methods that do different things should *usually* be broken down into separate methods, that’d be a general answer without seeing the code
kil0byte has joined #ruby
axl_ has joined #ruby
banjara has joined #ruby
<lxsameer> hi, how can i exclude some files ine gemspec file ?
nachooo has joined #ruby
<Servidorv> { "112012" => [ { bla }, { bla } ]}, {"102012" => [ { bla }, { bla }]}
<Servidorv> that is the way i need it to be like
judd7 has joined #ruby
<Servidorv> instead of { "112012" => [ { bla }, { bla } ], "102012" => [ { bla }, { bla }]}
<tjbiddle> that's what i was thinking - but most things are already broken down, it's just this is one that calls certain things in order e.g.: accept(ticket) would post an update to a trac server, and then create a new branch in git for the ticket - Both the update and branching are different methods, but this is a method that calls both to accomplish something else.
<lectrick> What is the fastest way to combine 2 arrays not testing for uniqueness? += results in GC since it has to reallocate the new value, no?
<Servidorv> so in fack what i need is to separate 102012 anb 112012 into 2 separate hashes
<csmrfx> ri Hash
<csmrfx> for example, ri Hash.delete
JonnieCache has joined #ruby
fantazo has quit [Remote host closed the connection]
swarley| has joined #ruby
nachooo_ has joined #ruby
nachooo has quit [Ping timeout: 246 seconds]
nachooo_ is now known as nachooo
swarley has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
<burgestrand> lectrick: array.concat(other_array) modifies the original array.
<burgestrand> lectrick: and ruby GCs a little bit every now and then, but I assume what you wanted was to not create an entirely new array.
<burgestrand> tjbiddle: well, it sounds like placing an expectation on certain methdods to be called might be something for you.
<burgestrand> … one moment.
thinkdevcode has quit [Remote host closed the connection]
<lectrick> so the solution looks like : .each through the 2nd array doing a first_array << element
JonnieCache has quit [Read error: Operation timed out]
swarley has joined #ruby
<tjbiddle> burgestrand: awesome - thanks! i just pulled over a friend and she just finished explaining the same thing a second ago, but having that page open is a perfect reference.
ilyam has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 246 seconds]
ilyam has joined #ruby
caleb_io has joined #ruby
judd7 has quit [Ping timeout: 255 seconds]
tar_ has quit [Quit: tar_]
swarley| has quit [Ping timeout: 246 seconds]
swarley_ has joined #ruby
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
csmrfx has quit [Quit: leaving]
scx has quit [Ping timeout: 248 seconds]
mityaz has quit [Read error: Connection reset by peer]
Servidorv has quit [Quit: For Sale: Parachute. Only used once, never opened, small stain.]
judd7 has joined #ruby
nkts has joined #ruby
bbttxu has quit [Quit: bbttxu]
<burgestrand> lectrick: concat is way faster for me.
tar_ has joined #ruby
tar_ has quit [Client Quit]
ethicalhack3r has quit [Quit: Leaving]
<burgestrand> lectrick: http://pastie.org/private/uxc1caieb7wjnc8nadbaw code for benchmarking it
<burgestrand> Oups.
judd7 has quit [Read error: Connection reset by peer]
<lectrick> Would people hate me if I did the latter instead of the former? A) a=[1,2,3]; b=[4,5,6]; b.each{|e| a << e} ; a vs. B) a=[1,2,3]; b=[4,5,6]; b.each(&a.method(:<<)); a
judd7 has joined #ruby
<burgestrand> #concat was different.
<burgestrand> Updated it, still about twice as fast.
<burgestrand> probably a little more
senny has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
<lectrick> ok nevermind... the 2nd way is at least twice as slow. interesting
<lectrick> must be the to_proc cleverness
nitti_ has joined #ruby
kbeddingfield has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
nitti__ has joined #ruby
nkts has quit []
fmcgeough has joined #ruby
nkts has joined #ruby
nkts is now known as Guest78730
maxer has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
<apeiros_> burgestrand: paste the timings please
<apeiros_> and lectrick, I'd hate you for both ways :-p
<burgestrand> apeiros_: removed my code, but it was 0.52 and 0.21 (.each, #concat)
<lectrick> apeiros_: ha, of course
judd7 has quit [Read error: Connection reset by peer]
nitti has joined #ruby
<apeiros_> lectrick: I'd only slightly hate you for a.push(*b)
<lectrick> i went to rubyconf this year and didn't even check this channel to see who went or who was going or anything. #social_nerd_fail
reset has joined #ruby
<lectrick> apeiros_: I prefer << to push, but they are just aliases
<apeiros_> lectrick: no, they're not
<lectrick> oh shit. *b
<burgestrand> apeiros_: http://ideone.com/mp6TDY
<apeiros_> which surprised me tbh
nitti_ has quit [Ping timeout: 245 seconds]
t0rc has joined #ruby
g-ram has joined #ruby
<burgestrand> My laptop is slower than ideone.
<burgestrand> :(
erichmenge has quit [Read error: Connection reset by peer]
<apeiros_> lol
nitti_ has joined #ruby
* apeiros_ loves his mbench
erichmeng has joined #ruby
emptyflask has quit [Remote host closed the connection]
<t0rc> I want to download a file in ruby (tarball) and then untar it. Suggestions?
Tania has joined #ruby
nopolitica has quit [Ping timeout: 252 seconds]
nitti___ has joined #ruby
forced_request has quit [Remote host closed the connection]
<lectrick> apeiros_: great recommendation, i like it, thanks!
<apeiros_> I recommended something?
nitti__ has quit [Ping timeout: 276 seconds]
<havenn> t0rc: *nix system or has to work on others?
judd7 has joined #ruby
<lectrick> apeiros_: is a.concat b faster than a.push(*b)?
<t0rc> havenn: lets go for compatibility. Seems to be leaning towards Net::HTTP or something at the moment.
Tombar_ has joined #ruby
nitti has quit [Ping timeout: 265 seconds]
<apeiros_> lectrick: of course
kbeddingfield has quit [Ping timeout: 248 seconds]
<t0rc> havenn: if it was *nix I could just curl it or wget right?
<apeiros_> lectrick: http://pastie.org/5347764
krawchyk has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
<apeiros_> I guess the high stddev is due to me watching an sc2 livecast
Tombar has quit [Ping timeout: 252 seconds]
<apeiros_> hm, though, it uses cpu time, which should be unaffected by other processes…
judd7 has quit [Read error: Connection reset by peer]
pestouille has quit [Quit: pestouille]
nopolitica has joined #ruby
zommi has quit [Quit: Leaving.]
lxsameer has quit [Read error: Connection reset by peer]
<havenn> t0rc: I'l dl it with Ruby, just would be convenient to be *nix for the un-tar-ing.
nitti_ has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
<lectrick> apeiros_: can I have your mbench method? :O
<lectrick> or is that part of 'benchmark' ?
<apeiros_> I think it's on github. let me check…
lxsameer has joined #ruby
ablankfield has joined #ruby
axl_ has quit [Quit: axl_]
und3f has quit [Quit: Leaving.]
judd7 has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
senny has joined #ruby
judd7 has quit [Read error: Connection reset by peer]
<t0rc> havenn: mmm how would you download the file with ruby?
<t0rc> havenn: I mean I can use a zip file too. It's from GH.
<apeiros_> lectrick: https://gist.github.com/923616
clj_newb has joined #ruby
lxsameer has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.9]
<havenn> t0rc: I'd recommend Faraday gem, but there are many options: https://github.com/technoweenie/faraday
lxsameer has quit [Read error: Connection reset by peer]
senny has quit [Remote host closed the connection]
<lectrick> apeiros_: Why is concat not a bang method? It should be ary.concat!(ary2)
<apeiros_> lectrick: yes, and push! and shift! etc.
geekbri has joined #ruby
cdehaan has joined #ruby
twinturbo has joined #ruby
<lectrick> well... they should at least have aliases, for clarity
<apeiros_> lectrick: bang means "be careful" (as stated by matz)
<cdehaan> Hello! I have a simple but silly problem. I'm trying to install bundler, and I run gem install bundler and it says "1 gem installed," but then typing "bundle" does nothing.
judd7 has joined #ruby
<apeiros_> it does NOT mean "all bang methods are in-situ and all non-bangs are not"
<davidcelis> cdehaan: rbenv?
<lectrick> but... i like when semantics line up with side effects...
<apeiros_> that said, I'd very much like it if ruby had a convention like: a.push(x) # in-situ, a.pushed(x) # returns new object
<lectrick> then again, that would mean << would need a bang too, which is ridiculous admittedly. sigh
<apeiros_> same like: a.upcase vs. a.upcased
<cdehaan> davidcelis: Hm, hadn't checked that, I figured it would take care of itself.
<lectrick> a <<! element
<apeiros_> probably even valid ruby
<apeiros_> but parsed as a.<<(!(element))
<lectrick> apeiros_: i like your pushed/upcased idea
judd7 has quit [Read error: Connection reset by peer]
<lectrick> sort of past tense meets side effects
arturaz has quit [Remote host closed the connection]
<havenn> t0rc: require 'zlib'; require 'faraday'; response = Faraday.get 'http://sushi.com/nigiri/sake.gz'; Zlib::GzipReader.new(response).read
<lectrick> it looks like i can't define a <<! method, sigh
timonv has quit [Remote host closed the connection]
<Hanmac> lecktrick methods are only with an ! when there is an non-! method with the same name too ...
<lectrick> well... there is a << method
nanderoo has quit [Excess Flood]
<Hanmac> yeah but an non-bang << method does not make sense
<lectrick> [1,2,3].<<(4) #=> [1, 2, 3, 4]
mmornati_ has quit [Quit: Leaving]
tenmilestereo has quit [Quit: Leaving]
<lectrick> i know. i was investigating the possibility (at least in my head) of implementing a ruby api subset that allowed all methods that modify their receiver to be called in a bang form
judd7 has joined #ruby
nopolitica has quit [Ping timeout: 264 seconds]
<lectrick> for clarity. since side effects => bugs
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
<Hanmac> about method names ... they can end with ? and with ! but not with ?! or !?
nopolitica has joined #ruby
vectorshelve has quit [Quit: Page closed]
<apeiros_> but with !!
<Hanmac> okay you can but only with cheating
J-_-L has quit [Quit: Leaving.]
<Hanmac> a=Object.new; a.define_singleton_method("!!"){ "haha" }; a.send("!!") => "haha"
icole has quit [Remote host closed the connection]
<apeiros_> ah well, with define method, everything goes
<apeiros_> take a look at nokogiris methods ^^
<Hanmac> you could define a method called "123" :D
mpereira has quit [Ping timeout: 252 seconds]
geekbri has quit [Remote host closed the connection]
axl_ has joined #ruby
icole has joined #ruby
kil0byte has quit [Ping timeout: 268 seconds]
rakl has quit [Quit: sleeping]
<havenn> class Array; alias_method(:'<<!', :<<); end; [].send(:'<<!', 'hi') #=> ["hi"]
nomenkun has quit [Remote host closed the connection]
caleb_io has quit [Quit: caleb_io]
rakl has joined #ruby
<havenn> If you call it without #send Ruby thinks it's a bang... >.>
nomenkun has joined #ruby
_________ has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
s0ber has joined #ruby
Coolhand has quit [Ping timeout: 260 seconds]
csaunders has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
cdehaan has left #ruby [#ruby]
nyuszika7h has quit [Remote host closed the connection]
Coolhand has joined #ruby
erichmeng has quit [Quit: Be back later]
dakine has quit [Quit: Leaving]
nyuszika7h has joined #ruby
nopolitica has quit [Ping timeout: 265 seconds]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
nopolitica has joined #ruby
<t0rc> havenn: ahhhh thanks.
workmad3 has joined #ruby
emptyflask has joined #ruby
icooba has quit [Quit: Computer has gone to sleep.]
bigmcq77 has joined #ruby
qwerxy has quit [Quit: offski]
kaiyin has joined #ruby
<kaiyin> hi, everyone.
<kaiyin> how can I find all methods unique to an object?
nopolitica has quit [Read error: Connection reset by peer]
Edward__ has joined #ruby
fir_ed has joined #ruby
<havenn> kaiyin: Object.public_methods false
rakl has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
<kaiyin> suppose doc = Nokogiri::HTML(open("http://www.google.com/search?q=obama")), how can I get a peek at what nodes it contains?
<havenn> kaiyin: I'd use Pry! http://pryrepl.org/
Guest10501 has quit [Quit: Guest10501]
haxrbyte_ has quit [Ping timeout: 246 seconds]
moos3 has joined #ruby
postmodern has joined #ruby
rakl has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
<kaiyin> havenn: so how is that done in pry? I am installing it.
chrxn has quit [Ping timeout: 264 seconds]
<havenn> kaiyin: given the above, you can 'cd doc' then 'ls' to introspect
nopolitica has joined #ruby
<kaiyin> wow, that's awesome~ thanks.
verto is now known as verto|off
LooChao has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
andrew12_ is now known as andrew12
Zai00 has joined #ruby
tbrock_ has quit [Quit: Computer has gone to sleep.]
csaunders has joined #ruby
LastBeerEver has joined #ruby
jrajav has joined #ruby
nopolitica has quit [Ping timeout: 255 seconds]
csaunders has quit [Client Quit]
theRoUS has quit [Ping timeout: 276 seconds]
<kaiyin> havenn: how can i search some word inside doc?
daniel_-_ has quit [Ping timeout: 240 seconds]
ilyam_ has joined #ruby
chrxn has joined #ruby
sailias has quit [Quit: Leaving.]
andrew12 has left #ruby [#ruby]
x82_nicole has joined #ruby
csaunders has joined #ruby
pettsson has quit [Remote host closed the connection]
cantonic has joined #ruby
ilyam has quit [Ping timeout: 265 seconds]
ilyam_ is now known as ilyam
swex_ has quit [Ping timeout: 260 seconds]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
emptyflask has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
chrxn has quit [Ping timeout: 260 seconds]
dmerrick has quit [Quit: dmerrick]
cantonic has quit [Client Quit]
havenn has quit [Remote host closed the connection]
tommyvyo_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cantonic has joined #ruby
havenn has joined #ruby
evilsushi has quit [Quit: Lost terminal]
daniel_-_ has joined #ruby
programR has joined #ruby
emptyflask has joined #ruby
vickaita has joined #ruby
chrxn has joined #ruby
mark_locklear has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
ilyam has quit [Remote host closed the connection]
jenrzzz has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
ilyam has joined #ruby
minijupe has quit [Quit: minijupe]
codecaster has joined #ruby
kbeddingfield has joined #ruby
codecaster has quit [Client Quit]
vickaita_ has quit [Ping timeout: 255 seconds]
havenn has quit [Ping timeout: 260 seconds]
invisime has quit [Quit: Leaving.]
yxhuvud2 has quit [Ping timeout: 252 seconds]
banseljaj is now known as imami|afk
<warb0> quick question
<warb0> if msg.match(/PRIVMSG ##{@channel} :(.*)$/)
<warb0> content = $~[1]
<warb0> whats the $~ mean in this instance
margle has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rakl has joined #ruby
timonv has joined #ruby
kbeddingfield has quit [Ping timeout: 276 seconds]
qwerxy has joined #ruby
kbeddingfield has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
linoj has quit [Ping timeout: 246 seconds]
ltsstar has quit [Quit: ltsstar]
gabrielrotbart has joined #ruby
butblack has quit [Quit: butblack]
chrishunt has joined #ruby
Cultofmetatron has joined #ruby
<davidcelis> $~ is a magic dollar sign variable
<davidcelis> it stores the last regexp match
[Neurotic] has joined #ruby
<davidcelis> though it would be more common to see $1
fmcgeough has quit [Quit: fmcgeough]
<davidcelis> $1 is the second subexpression in the last match (so, equivalent to $~[1]
programR has quit [Quit: Leaving]
Nanuq has quit [Quit: Lost terminal]
ChampS666 has quit []
Cultofmetatron has quit [Ping timeout: 246 seconds]
<apeiros_> it's the first capturing group
Elhu has joined #ruby
<apeiros_> $~[0] is the full match, I wouldn't call that a subexpression
<davidcelis> yeah i meant first subexpression
<davidcelis> although technically a full expression is a subexpression of itself
ABK has joined #ruby
zcreative has quit [Quit: zcreative]
psykotron has joined #ruby
becom33 has quit [Ping timeout: 260 seconds]
jonathanwallace has joined #ruby
<apeiros_> the "sub" part implies otherwise :-p
becom33 has joined #ruby
Chryson has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
BoomCow has quit [Quit: This computer has gone to sleep]
butblack has joined #ruby
<davidcelis> tell that to set mathematicians
ablankfield has quit [Read error: Operation timed out]
BoomCow has joined #ruby
<davidcelis> _proper_ subexpression, however... ;)
invapid has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
emptyflask has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Quit: jeffreybaird]
<apeiros_> pfffft
emptyflask has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<apeiros_> naming obviously is hard, not just in programming
ABK has joined #ruby
<davidcelis> naming my video game characters is always pretty hard
djbpython has joined #ruby
<djbpython> can anyone help me here? https://gist.github.com/4042279
<jrajav> davidcelis: You should name one jrajav
<djbpython> it's like it unwraps the ranges
<davidcelis> Date.today..(Date.today + num.day)
Cultofmetatron has joined #ruby
Araxia has joined #ruby
<davidcelis> precedence, bro
<davidcelis> weird interface, though
berserkr has quit [Quit: Leaving.]
Axsuul has joined #ruby
JohnTeddy has quit [Ping timeout: 268 seconds]
<djbpython> davidcelis, that doesn't fix it
JohnTeddy has joined #ruby
<apeiros_> djbpython: backtraces are a useful thing
<apeiros_> they tell you (and us) where shit goes wrong
ABK has quit [Read error: Connection reset by peer]
<djbpython> apeiros_, updated gist
ABK has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
rman has joined #ruby
<apeiros_> djbpython: that tells you pretty much your problem…
<davidcelis> why are you splatting
<djbpython> davidcelis, it is, but i have the equivalent of TwoListener, whos success accepts a range and another parameter
maletor has quit [Quit: Computer has gone to sleep.]
<apeiros_> wrong number of arguments (2 for 1) - from (irb):312:in `success'
<shevy> can't you do the splatting inside your method?
<apeiros_> tells you that you send your 'success' method 2 arguments instead of 1
<djbpython> davidcelis, it's what i needed to do to get this https://gist.github.com/3969139 to work
<shevy> def foo(*input) <--- here you can have as many arguments as you want
<davidcelis> djbpython: don't splat return_range dude
<davidcelis> you defined the argument as splatted already
jaygen has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
<shevy> why two *args ?
<djbpython> davidcelis, see the other gist
ABK has quit [Read error: Connection reset by peer]
<shevy> confusion is the ultimate cause of all complexity
<djbpython> i needed to splat *two_params
ABK has joined #ruby
headius has quit [Quit: headius]
jenrzzz has quit [Ping timeout: 255 seconds]
skcin7 has quit []
<djbpython> basically i have listeners and data producers, data producers always produce at least a date range, they'll be routed to appropriate listeners
mikepack has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
<djbpython> but the sender needs to work with both
ABK has joined #ruby
cdehaan has joined #ruby
<djbpython> but, im a ruby noob, and sort of painted myself into a corner here
maletor has joined #ruby
<davidcelis> this seems overly complex
<davidcelis> and overengineered
<cdehaan> Hello! I'm trying to install using "bundle" and I'm getting an error while installing cld: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
blacktulip has quit [Remote host closed the connection]
<cdehaan> I am not sure where to go from there...
<davidcelis> read the full error?
<djbpython> davidcelis, fair enough
awaage has joined #ruby
<cdehaan> davidcelis: Was that for me? next thing is: extconf.rb:1:in `require': no such file to load -- rake (LoadError)
Russell^^ has quit [Quit: Russell^^]
vickaita has quit [Ping timeout: 276 seconds]
BSaboia__ has quit [Read error: Connection reset by peer]
<cdehaan> Ah, well, rake wasn't installed, so suddenly it all makes sense.
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
nemesit has quit [Quit: Leaving...]
qwerxy has quit [Quit: offski]
philcrissman has quit [Ping timeout: 252 seconds]
jrajav has quit []
dnstbr has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
Tref has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
cdehaan has left #ruby [#ruby]
csaunders has joined #ruby
sebastorama has joined #ruby
Cultofmetatron has joined #ruby
csaunders has quit [Client Quit]
savage- has joined #ruby
ryanlecompte has quit [Read error: Connection reset by peer]
gabrielrotbart has joined #ruby
Tombar_ has quit [Remote host closed the connection]
alanp_ has joined #ruby
nitti___ has quit [Remote host closed the connection]
alanp has quit [Read error: Connection reset by peer]
GoGoGarrett has quit [Remote host closed the connection]
osvico has joined #ruby
<davidcelis> :P
carlyle has quit [Remote host closed the connection]
stopbit has quit [Quit: Leaving]
Tombar has joined #ruby
Virunga has quit []
ZubKonst_ has quit [Ping timeout: 255 seconds]
minijupe has joined #ruby
iaj_ has joined #ruby
mikepack has joined #ruby
iaj has quit [Read error: Connection reset by peer]
ZubKonst has joined #ruby
awestroke has joined #ruby
jaygen has joined #ruby
djbpython has quit [Ping timeout: 246 seconds]
nkts has joined #ruby
codespectator has joined #ruby
kaneda__ has quit [Ping timeout: 256 seconds]
SuperrMann has joined #ruby
seanyo has joined #ruby
rakl has quit [Quit: sleeping]
mikepack has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 240 seconds]
mrkris has joined #ruby
Araxia has quit [Read error: No route to host]
twinturbo has quit [Quit: twinturbo]
Araxia has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
thinkdevcode has joined #ruby
mvangala has joined #ruby
mikepack has joined #ruby
Tombar has quit [Remote host closed the connection]
bitZero__ has quit [Read error: Operation timed out]
Tref has quit [Quit: Tref]
awarner has quit [Remote host closed the connection]
elentras has quit [Ping timeout: 276 seconds]
dmiller has joined #ruby
thorncp has quit [Ping timeout: 268 seconds]
plains has quit [Ping timeout: 260 seconds]
tr4656 has quit [Ping timeout: 245 seconds]
rakl has joined #ruby
mvangala_ has quit [Ping timeout: 264 seconds]
SegFaultAX has quit [Ping timeout: 260 seconds]
chrishunt has quit [Quit: Linkinus - http://linkinus.com]
Hien has quit [Ping timeout: 260 seconds]
ABK has quit [Read error: Connection reset by peer]
Hien has joined #ruby
ABK has joined #ruby
robbyoconnor has joined #ruby
akl has quit [Ping timeout: 268 seconds]
akl has joined #ruby
akl has joined #ruby
akl has quit [Changing host]
moos3 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
macabre has quit [Remote host closed the connection]
thorncp has joined #ruby
spathi has quit [Quit: leaving]
tr4656 has joined #ruby
spathi has joined #ruby
C0deMaver1ck has quit [Remote host closed the connection]
JonnieCache has joined #ruby
SegFaultAX has joined #ruby
BrianJ has quit [Ping timeout: 255 seconds]
aetcore has quit [Read error: Connection reset by peer]
plains has joined #ruby
aetcore has joined #ruby
kaneda__ has joined #ruby
twinturbo has joined #ruby
codecaster has joined #ruby
osvico has joined #ruby
codezombie has joined #ruby
__miha__ has quit [Ping timeout: 252 seconds]
Jellyg00se has quit [Ping timeout: 246 seconds]
mmitchell has quit [Remote host closed the connection]
anachronistic has quit [Quit: anachronistic]
__miha__ has joined #ruby
emergion has joined #ruby
reinaldob has joined #ruby
jjang has joined #ruby
slainer68 has quit [Remote host closed the connection]
darthdeus has quit [Ping timeout: 276 seconds]
u89 has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
bradhe has quit [Remote host closed the connection]
vickaita has joined #ruby
Jellyg00se has joined #ruby
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
workmad3 has quit [Ping timeout: 276 seconds]
freeayu has joined #ruby
Zai00 has quit [Quit: Zai00]
bricker_ has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
BoomCow has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
alexim has joined #ruby
fantazo has joined #ruby
JeanMert_ has quit []
dnstbr has quit [Quit: Computer has gone to sleep.]
u89 has joined #ruby
yaymukund has joined #ruby
<yaymukund> is there an advantage to using FileUtils over system?
<yaymukund> is it portable?
dnstbr has joined #ruby
mikepack has quit [Remote host closed the connection]
Roa has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
emptyflask has quit [Ping timeout: 276 seconds]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
JonnieCache has quit [Ping timeout: 260 seconds]
<Spaceghostc2c> yaymukund: !rtfm
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<Spaceghostc2c> :D
mmorsi_mobile has joined #ruby
rellin has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
seanyo has quit [Ping timeout: 252 seconds]