apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
brotatos has quit [Quit: WeeChat 0.4.1]
ckrailo has quit [Quit: Computer has gone to sleep.]
amedeiros has quit [Ping timeout: 246 seconds]
<havenwood> But yeah, sad that gems have to wait years for 1.9 use to fade away before __dir__ing.
<havenwood> I want a teeshirt that says: File.expand_path(File.dirname(__FILE__))
amedeiros has joined #ruby
<davidcelis> god
<davidcelis> fucking ruby
<davidcelis> why isn't it __DIR__
<havenwood> davidcelis: They wanted to "make it clear it was a method".
ravster has quit [Ping timeout: 256 seconds]
<davidcelis> fuck consistency, I guess
vlad_starkov has joined #ruby
nilved has quit [Read error: Connection reset by peer]
m4dnificent is now known as madnificent
byprdct has joined #ruby
bigoldrock has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL1 has joined #ruby
<havenwood> to be fair, __FILE__ isn't a method and __dir__ is
Fire-Dragon-DoL has quit [Quit: Terminated with extreme prejudice - dircproxy 1.1.0]
<havenwood> caps methods is crazy talk :P as to the why __FILE__ is an expression and __dir__ is a method, dunno
<havenwood> i guess __dir__ needs to be composed, isn't a constant
slainer68 has quit [Ping timeout: 264 seconds]
amedeiros has quit [Ping timeout: 252 seconds]
Harima_Kenji has quit [Quit: yawn]
amedeiros has joined #ruby
harrymoreno_ has joined #ruby
TheFuzzball has quit [Ping timeout: 264 seconds]
<mindeavor> thank you pontiki, it all works
vlad_starkov has quit [Ping timeout: 268 seconds]
Fire-Dragon-DoL1 has quit [Client Quit]
thams has joined #ruby
<mindeavor> for whatever reason I couldn't add /to/my/folder to '../..'
<havenwood> Apane: Might try #RubyOnRails if you haven't yet.
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Fire-Dragon-DoL has joined #ruby
<mindeavor> and had to do add File.join instead
patbr0wn has quit [Ping timeout: 276 seconds]
harrymoreno has quit [Ping timeout: 268 seconds]
harrymoreno_ is now known as harrymoreno
lewix has joined #ruby
<havenwood> Guess if you're going to bother using File.join you should '..', '..' instead of '../..'
byprdct has quit [Ping timeout: 240 seconds]
thoughtpunch has joined #ruby
<havenwood> hrm
<mindeavor> File.expand_path(File.dirname(__FILE__), '../..') got me to the lib directory
devoldmx has quit [Ping timeout: 240 seconds]
<mindeavor> but adding to the '../..' string still left me with the lib directory
<mindeavor> strange.
baroquebobcat has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
ner0x has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
d2dchat has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tylersmith has joined #ruby
<mindeavor> anyways, thanks a lot! I've gotta go
amedeiros has quit [Ping timeout: 264 seconds]
mindeavor has quit [Quit: mindeavor]
tw1sted has quit [Quit: tw1sted]
kadoo has joined #ruby
brennanMKE has joined #ruby
patbr0wn has joined #ruby
yshh has quit [Remote host closed the connection]
thams has quit [Quit: thams]
geggam has joined #ruby
bionhart has joined #ruby
timkohrumel has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
burlyscudd has joined #ruby
djbkd has quit [Remote host closed the connection]
slyv has joined #ruby
kadoo has quit [Quit: Textual IRC Client: www.textualapp.com]
ravster has joined #ruby
cod3r__ has joined #ruby
cod3r_ has quit [Ping timeout: 256 seconds]
arubin has joined #ruby
markalanevans has quit [Quit: markalanevans]
hogeo has joined #ruby
agjacome has quit [Quit: leaving]
markalanevans has joined #ruby
LennyLinux has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
wsterling has joined #ruby
jimg has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 256 seconds]
jkline has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
Fire-Dragon-DoL has left #ruby [#ruby]
wsterling has quit [Ping timeout: 248 seconds]
mmlac-bv has quit [Quit: mmlac-bv]
DomKM has joined #ruby
mmlac-bv has joined #ruby
geggam has joined #ruby
sroy2 has quit [Read error: Connection reset by peer]
sroy2 has joined #ruby
Fire-Dragon-DoL has joined #ruby
mansi has joined #ruby
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
mmlac-bv has quit [Ping timeout: 240 seconds]
krawchyk has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
rgrinberg has joined #ruby
burlyscudd has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 268 seconds]
zeade has quit [Quit: Leaving.]
cooldman224 has joined #ruby
tkuchiki has joined #ruby
zets has joined #ruby
sambao21 has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
jesly has joined #ruby
L8D has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
freeayu has joined #ruby
havenwood has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
slash_nick has quit [Ping timeout: 245 seconds]
icole has quit [Remote host closed the connection]
rupee has quit [Quit: Leaving]
jasonkuhrt has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.1]
burlyscudd has joined #ruby
jesly has quit [Ping timeout: 252 seconds]
jimg has joined #ruby
jdunck has quit [Ping timeout: 260 seconds]
justsee has quit [Ping timeout: 245 seconds]
ahuman_ is now known as ahumane
ahumane is now known as ahuman
Levin_22 has joined #ruby
tommyvyo has quit [Quit:]
jesly has joined #ruby
djbkd has joined #ruby
jdunck has joined #ruby
yshh has joined #ruby
atyz has joined #ruby
timkohrumel has quit [Remote host closed the connection]
geggam_ has joined #ruby
cj3kim has joined #ruby
geggam has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
MrZYX is now known as MrZYX|off
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
saarinen has quit [Quit: saarinen]
mikepack has joined #ruby
timkohrumel has joined #ruby
cj3kim has quit [Ping timeout: 252 seconds]
cantonic has quit [Quit: cantonic]
blitz has quit [Quit: This computer has gone to sleep]
bigmac has joined #ruby
tommyvyo has joined #ruby
lyanchih has joined #ruby
pootler_ has quit [Ping timeout: 260 seconds]
chxane has quit [Quit: Leaving]
chxane has joined #ruby
buzzybron has joined #ruby
mityaz has quit [Quit: See ya!]
maroloccio has quit [Quit: WeeChat 0.4.0]
mikepack has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
geggam__ has joined #ruby
nfk has quit [Quit: yawn]
Solnse has quit [Remote host closed the connection]
geggam_ has quit [Ping timeout: 260 seconds]
justsee has quit [Ping timeout: 252 seconds]
<RubyPanther> defined? __FILE__ => "expression"
geggam__ is now known as geggam
amedeiros has joined #ruby
Alina-malina has joined #ruby
chxane has quit [Quit: Leaving]
Aaaarg has quit [Quit: Aaaarg]
shadoi has quit [Quit: Leaving.]
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
thoughtpunch has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 268 seconds]
gyre007 has quit [Ping timeout: 264 seconds]
threesome has joined #ruby
amedeiros has joined #ruby
amedeiros has quit [Ping timeout: 264 seconds]
davedev24 has quit [Read error: Connection reset by peer]
amedeiros has joined #ruby
davedev24 has joined #ruby
kasper has quit [Remote host closed the connection]
jesly has quit [Ping timeout: 256 seconds]
Hanmac1 has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
Aaaarg has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
Shirakawasuna has joined #ruby
sevenseacat has joined #ruby
amedeiros has quit [Ping timeout: 248 seconds]
Voodoofish430 has quit [Quit: Leaving.]
viszu has quit [Quit: Leaving.]
bradleyprice has quit [Remote host closed the connection]
Mattix has joined #ruby
amedeiros has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
arya has joined #ruby
thesheff17 has joined #ruby
ssvo has joined #ruby
nilved has joined #ruby
brianpWins has quit [Quit: brianpWins]
mansi has joined #ruby
brennanMKE has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 240 seconds]
krz has joined #ruby
buzzybron has quit []
amedeiros has joined #ruby
tommyvyo has quit [Quit:]
mansi has quit [Ping timeout: 264 seconds]
sailias has quit [Read error: Connection reset by peer]
Dekade has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
amedeiros has quit [Remote host closed the connection]
amedeiros has joined #ruby
timkohrumel has quit [Remote host closed the connection]
andres833 has joined #ruby
GeissT has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ARCADIVS has joined #ruby
AlbireoX has joined #ruby
amedeiros has quit [Ping timeout: 248 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
amedeiros has joined #ruby
nari has quit [Ping timeout: 252 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
dankest has quit [Quit: Leaving...]
mocfive has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
thams has joined #ruby
fridim_ has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
Spooner has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
timkohrumel has joined #ruby
amedeiros has quit [Ping timeout: 260 seconds]
amedeiros has joined #ruby
Domon has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
Norrin has quit [Excess Flood]
pitzips has quit [Ping timeout: 268 seconds]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
dmiller has quit [Remote host closed the connection]
pkrnj has joined #ruby
poincare1011 has joined #ruby
amedeiros has quit [Ping timeout: 240 seconds]
Norrin has joined #ruby
amedeiros has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mansi has joined #ruby
<RubyPanther> no problem, gems can just add a line of boilerplate for __dir__ on old rubies: Object.send(:define_method,:__dir__){File.expand_path(File.dirname(__FILE__)) unless __FILE__=~/\A\(.*\)|-.\Z/} if RUBY_VERSION < "2.0.0"
ttt has joined #ruby
gildo has quit [Ping timeout: 256 seconds]
amedeiros has quit [Ping timeout: 264 seconds]
amedeiros has joined #ruby
Levin_22 has quit [Quit: Levin_22]
jimg has quit [Remote host closed the connection]
v0n has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<pontiki> hmm, so testing this out, i ran it in ROOT/lib/gem_name/, and i got ROOT back
<pontiki> the expand_path i mentioned
brennanMKE has joined #ruby
cj3kim has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
radic_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
amedeiros has quit [Ping timeout: 246 seconds]
centr0 has left #ruby [#ruby]
amedeiros has joined #ruby
dankest has joined #ruby
radic has quit [Ping timeout: 268 seconds]
agjacome has quit [Quit: leaving]
nari has joined #ruby
kiela has quit [Ping timeout: 264 seconds]
jimg has joined #ruby
amedeiros has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 268 seconds]
generalissimo has joined #ruby
amedeiros has joined #ruby
sroy2 has left #ruby [#ruby]
jimg has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
Dummies_freelanc has joined #ruby
werdnativ has quit [Quit: werdnativ]
amedeiros has quit [Ping timeout: 268 seconds]
amedeiros has joined #ruby
Opettaja has joined #ruby
brennanMKE has joined #ruby
kil0byte has joined #ruby
allanm_ has joined #ruby
kenmaz has joined #ruby
amedeiros has quit [Read error: Operation timed out]
buzzybron has joined #ruby
amedeiros has joined #ruby
allanm has quit [Ping timeout: 256 seconds]
kenmaz has quit [Ping timeout: 240 seconds]
synthetix has joined #ruby
davedev24 has quit [Remote host closed the connection]
jesly has joined #ruby
lyanchih has quit [Quit: lyanchih]
amedeiros has quit [Ping timeout: 268 seconds]
amedeiros has joined #ruby
geoffrey has quit [Ping timeout: 248 seconds]
Lemtzas has quit [Ping timeout: 260 seconds]
mengu has quit [Quit: This computer has gone to sleep]
lyanchih has joined #ruby
synthetix has quit [Ping timeout: 240 seconds]
amedeiros has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
Fire-Dragon-DoL has joined #ruby
amedeiros has joined #ruby
f0ster` has joined #ruby
Guga_ has quit [Remote host closed the connection]
Guga_ has joined #ruby
geggam has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 256 seconds]
amedeiros has joined #ruby
Lemtzas has joined #ruby
hawtin has quit [Ping timeout: 252 seconds]
Guga_ has quit [Quit: ~]
Lemtzas has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
fomatin has joined #ruby
blitz has joined #ruby
amedeiros has quit [Ping timeout: 264 seconds]
amedeiros has joined #ruby
chrishough has quit [Quit: chrishough]
catphish has joined #ruby
pothibo has quit [Quit: pothibo]
Lemtzas has joined #ruby
wsterling has joined #ruby
f0ster` is now known as f0ster__
pitzips has joined #ruby
f0ster__ is now known as f0ster
f0ster has quit [Changing host]
f0ster has joined #ruby
Cooler_ has joined #ruby
Fire-Dragon-DoL1 has joined #ruby
Fire-Dragon-DoL1 has quit [Client Quit]
Fire-Dragon-DoL has quit [Quit: bye]
amedeiros has quit [Ping timeout: 264 seconds]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
Fire-Dragon-DoL has joined #ruby
james_ has joined #ruby
mansi has quit [Remote host closed the connection]
james_ is now known as Guest56356
generalissimo has quit [Remote host closed the connection]
mansi has joined #ruby
bradleyprice has joined #ruby
lyanchih has quit [Quit: lyanchih]
synthetix has joined #ruby
<Inside> man
<Inside> f = Hash.new( {} ) has such funky syntax.
blitz has quit [Quit: This computer has gone to sleep]
Treeson has quit [Ping timeout: 252 seconds]
lyanchih has joined #ruby
blitz has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
Chim3ra has joined #ruby
<r0bgleeson> Inside: remove the whitespace and it isn't bad
<Inside> hmm?
jesly has quit [Ping timeout: 264 seconds]
ssvo has quit [Ping timeout: 268 seconds]
<Inside> I mean doing f[:a].update( {c:3} ), for example, doesn't seem to update the value of f at all :P
bradleyprice has quit [Remote host closed the connection]
Chim3ra has quit [Remote host closed the connection]
<Inside> but it does insert {c:3} into that hash supplied into Hash.new
<Inside> I sort of understand why it's doing that though
jesly has joined #ruby
<r0bgleeson> can you show all of your code?
<Inside> it's literally just that
<Inside> foo = Hash.new({})
<Inside> foo[:a].update({b:2})
<Inside> p foo
sean_s has joined #ruby
<Inside> (output: {} )
kofno has quit [Remote host closed the connection]
mengu has joined #ruby
kofno has joined #ruby
<ryan_turner> Hi, Im a beginner to rails. I've made a create method that has @user = User.new(params[:post]), but for some reason the form values is not being dumped into that. The parameters show up properly in the console, but then in the sql insert created from @user.save its all null like the vars aren't there. The form was created using form_for @user do |f| with text fields, labels, and a submitand that local var is being created in the new method
<ryan_turner> with @user = User.new so, I dont quite know how to troubleshoot why the params are being passed properly but the constructor is not doing anything with em. Advice?
<sevenseacat> got some code for us to see?
jkline has quit [Quit: jkline]
<Inside> r0bgleeson: the solution to that is this apparently:
<Inside> foo = Hash.new { |hash, key| hash[key] = {} }
<Inside> foo[:a].update( {b:2} )
<Inside> p foo
mansi has joined #ruby
<catphish> is it possible to use sendto for udp sockets in ruby?
richiebkr has quit [Quit: richiebkr]
fschuindt has joined #ruby
carlyle has joined #ruby
<ryan_turner> Oh duh, params was grabbing the wrong symbol!
<catphish> #send seems to do an unwanted extra call
serp` has joined #ruby
Nautilus has joined #ruby
pkrnj has quit [Ping timeout: 268 seconds]
sean_s has quit [Quit: sean_s]
harrymoreno has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
harrymoreno has joined #ruby
Randomage has quit [Ping timeout: 252 seconds]
pkrnj has joined #ruby
fschuindt has quit [Client Quit]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<r0bgleeson> Inside: Hash.new({}) shares a single Hash
<Inside> Yes, I figured that out
carlyle has quit [Ping timeout: 245 seconds]
zeade has joined #ruby
catphish has quit [Quit: Leaving]
jimg has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
<Nautilus> anyone around to help a bit of a nix command line newbie? At one time I installed ruby (IIRC), then did "gem install sass" and "gem install compass". I would like to uninstall those at this time (and start over with RVM)
<Nautilus> (ubuntu 12.04 LTS)
harrymoreno has quit [Ping timeout: 246 seconds]
<Nautilus> ah, just use 'uninstall' on those. let me try that
f0ster has quit [Remote host closed the connection]
v0n has quit [Read error: Operation timed out]
harrymoreno has joined #ruby
lewix has quit [Remote host closed the connection]
jrhe has joined #ruby
hadees has quit [Quit: hadees]
jrhe has quit [Client Quit]
brichter45 has joined #ruby
io_syl has quit [Ping timeout: 264 seconds]
<Nautilus> ah that worked great. Now I want to cleanly uninstall Ruby and whatever it might have included. It's been a while, I think I used apt-get. Would someone help me see what Ruby stuff is installed, and clean it up?
rezzack has quit [Quit: Leaving.]
jimg has quit [Ping timeout: 240 seconds]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> whatever you apt-get installed, apt-get remove ?
<Nautilus> ok, but unsure exactly what I installed.
athst has quit [Quit: athst]
arya has quit [Ping timeout: 248 seconds]
<sevenseacat> check through your install history?
<sevenseacat> software center has a history of everything installed
reactormonk has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<Nautilus> aha, thanks :)
<reactormonk> in nokogiri, any way to jump to the next `table` node in the current hierarchy?
richiebkr has joined #ruby
ssvo has joined #ruby
arya has joined #ruby
cj3kim has quit [Remote host closed the connection]
hadees has joined #ruby
brichter45 has quit []
timkohrumel has quit [Remote host closed the connection]
f0ster has joined #ruby
<Nautilus> I found my install history for that day and there's quite a lot of items with ruby in the name... (15). IIRC the primary items were "ruby" and "ruby1.8", but i don't know where to start or if uninstall order is important
kofno has quit [Remote host closed the connection]
jasonkuhrt has quit [Quit: Leaving...]
jasonkuhrt has joined #ruby
jasonkuhrt has quit [Client Quit]
richiebkr has quit [Remote host closed the connection]
<Nautilus> oh, actually I uninstalle those a few days later and re-installed... ruby1.8, ruby1.8-dev, rubygems, etc. no actual 'ruby'
<sevenseacat> ruby1.8 is ruby.
<Nautilus> ok, so that should be what i remove, yes? The rest will follow as dependencies?
<sevenseacat> no idea.
<sevenseacat> check what the dependencies are
thetristan has quit [Quit: thetristan]
AlbireoX has quit [Remote host closed the connection]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
<Nautilus> gotcha. thanks for your patience, trying not to fubar this ;)
<sevenseacat> too late, you already did :p
<Nautilus> not surprising
ntus1017 has quit [Remote host closed the connection]
DomKM has quit [Quit: Leaving.]
slash_nick has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
<reactormonk> hm, an option type in ruby would be fun
bionhart has quit [Remote host closed the connection]
falkoner has quit [Quit: Leaving.]
EPIK has quit [Ping timeout: 248 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
rippa has joined #ruby
pothibo has joined #ruby
<Nautilus> think I got it done :)
poincare1011 has quit [Read error: Operation timed out]
davedev24 has joined #ruby
hoyang has joined #ruby
Fire-Dragon-DoL has quit [Remote host closed the connection]
bionhart has joined #ruby
Fire-Dragon-DoL has joined #ruby
icole has joined #ruby
serp` has quit [Quit: serp`]
rafb3 has joined #ruby
tonini has joined #ruby
BSaboia has joined #ruby
freeayu has quit [Ping timeout: 248 seconds]
rippa has quit [Ping timeout: 248 seconds]
DomKM has joined #ruby
ntus1017 has joined #ruby
kobain has quit [Quit: El motor por excelencia http://www.europio.org/]
rippa has joined #ruby
lyanchih has quit [Quit: lyanchih]
Guest56356 has quit [Quit: Leaving]
f0ster has quit [Remote host closed the connection]
wsterling has quit [Remote host closed the connection]
freeayu has joined #ruby
BSaboia has quit [Quit: Leaving]
redgirl has joined #ruby
pitzips has quit [Ping timeout: 248 seconds]
pootler_ has joined #ruby
ivanoats has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
devdazed has quit [Ping timeout: 252 seconds]
adkron has joined #ruby
ssvo_ has joined #ruby
tw1sted has joined #ruby
kokobaby has joined #ruby
<kokobaby> hello
devdazed has joined #ruby
Nautilus has left #ruby ["Client Exiting"]
ssvo has quit [Ping timeout: 264 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
vxr9 has quit [Quit: Lost terminal]
mansi has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
andres833 has quit [Ping timeout: 276 seconds]
andres833 has joined #ruby
bigoldrock has joined #ruby
burlyscudd has joined #ruby
cooldman224 has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 268 seconds]
kil0byte has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
lewix has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
Arzaga has joined #ruby
arya has joined #ruby
Arzaga is now known as broohaha
lewix has quit [Ping timeout: 252 seconds]
danslo has quit [Quit: danslo]
tacos1de has joined #ruby
richiebkr has joined #ruby
vlad_starkov has joined #ruby
jasonkuhrt has joined #ruby
rafb3 has quit [Remote host closed the connection]
cj3kim has joined #ruby
comrade_ has joined #ruby
comrade_ has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 260 seconds]
comrade_ has joined #ruby
lyanchih has joined #ruby
havenwood has joined #ruby
comrade_ has quit [Client Quit]
jasonkuhrt has quit [Ping timeout: 246 seconds]
Inside has quit [Ping timeout: 260 seconds]
Lemtzas has quit [Ping timeout: 240 seconds]
cj3kim_ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
jalcine has quit [Excess Flood]
jalcine has joined #ruby
jalcine has quit [Changing host]
jalcine has joined #ruby
Lemtzas has joined #ruby
jalcine has quit [Excess Flood]
jlast has quit [Remote host closed the connection]
carlyle has joined #ruby
carlyle has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
arya_ has joined #ruby
patbr0wn has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
dhruvasagar has joined #ruby
kevinykchan has joined #ruby
arya has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
mosez has quit [Ping timeout: 252 seconds]
arya_ has quit [Ping timeout: 248 seconds]
mosez has joined #ruby
tylersmith has quit [Remote host closed the connection]
ttt_ has joined #ruby
ttt has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
synthetix has quit [Ping timeout: 248 seconds]
araujo has quit [Quit: Leaving]
havenwood has joined #ruby
arya has joined #ruby
ezkl has joined #ruby
ryanf_ has joined #ruby
ryanf_ has quit [Client Quit]
mduvall has joined #ruby
macmartine has joined #ruby
Mon_Ouie has joined #ruby
bigoldrock has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
zets2 has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
girija has joined #ruby
zets has quit [Ping timeout: 264 seconds]
arya has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
atyz has quit [Ping timeout: 268 seconds]
icole has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
icole has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
Aaaarg has quit [Quit: Aaaarg]
macmartine has quit [Quit: Computer has gone to sleep.]
zets2 is now known as zets
jlast has joined #ruby
bigmac has quit [Quit: Leaving]
eldariof has joined #ruby
tomzx_mac has quit [Ping timeout: 260 seconds]
pyrac has joined #ruby
boblu has joined #ruby
dfdf has joined #ruby
dayepa has quit [Remote host closed the connection]
viszu has joined #ruby
slainer68 has joined #ruby
DomKM has quit [Quit: Leaving.]
apeiros has quit [Read error: Connection reset by peer]
thesheff17 has quit [Ping timeout: 276 seconds]
apeiros has joined #ruby
scipi0 has joined #ruby
dayepa1 has joined #ruby
scipi0 has quit [Remote host closed the connection]
Opettaja has quit [Quit: WeeChat 0.4.1]
jlast has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
slainer68 has quit [Ping timeout: 268 seconds]
lunarjar has quit [Ping timeout: 252 seconds]
Jackneill has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
lunarjar has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
Rizzle has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
DonRichie has joined #ruby
Rizzle has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
braoru has joined #ruby
kiela has joined #ruby
pyrac has quit [Quit: pyrac]
ry4nn has quit [Ping timeout: 268 seconds]
browndawg has joined #ruby
pcarrier_ has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mklappstuhl has joined #ruby
ry4nn has joined #ruby
ARCADIVS has quit [Ping timeout: 260 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
pcarrier has quit [Disconnected by services]
pcarrier_ is now known as pcarrier
pcarrier has quit [Changing host]
pcarrier has joined #ruby
pcarrier has joined #ruby
ananthakumaran has joined #ruby
chrishough has quit [Quit: chrishough]
sayan has joined #ruby
bionhart has quit [Remote host closed the connection]
pcarrier_ has joined #ruby
casheew has quit [Remote host closed the connection]
kiela has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
tw1sted has quit [Quit: tw1sted]
JohnBat26 has joined #ruby
codecop has joined #ruby
icole has quit [Remote host closed the connection]
tagrudev has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
rafb3 has joined #ruby
whowantstolivefo has joined #ruby
lewix has joined #ruby
apeiros has quit [Remote host closed the connection]
dash_ has joined #ruby
ColKurtz has quit [Quit: ps]
philcrissman_ has joined #ruby
mpereira has quit [K-Lined]
arya has quit [Ping timeout: 248 seconds]
pootler__ has joined #ruby
timkohrumel has joined #ruby
bionhart has joined #ruby
wallerdev has quit [Quit: wallerdev]
ColKurtz has joined #ruby
tylersmith has joined #ruby
lewix has quit [Remote host closed the connection]
rafb3 has quit [Ping timeout: 252 seconds]
dankest has quit [Quit: Leaving...]
pootler_ has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 268 seconds]
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
arya has joined #ruby
timkohrumel has quit [Ping timeout: 264 seconds]
GeissT_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
timkohrumel has joined #ruby
GeissT_ has quit [Client Quit]
GeissT_ has joined #ruby
GeissT has quit [Ping timeout: 264 seconds]
GeissT_ has quit [Client Quit]
ffio has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
jesly1 has joined #ruby
_ffio_ has quit [Ping timeout: 276 seconds]
jarjar_prime has joined #ruby
jarjar_prime has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 260 seconds]
jesly has quit [Ping timeout: 264 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
pipework has quit [Remote host closed the connection]
ssvo_ has quit [Quit: Lost terminal]
Jackneill has quit [Ping timeout: 264 seconds]
arya has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
arya has joined #ruby
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
sarkis has quit [Ping timeout: 256 seconds]
mengu has quit [Quit: This computer has gone to sleep]
cj3kim has quit [Read error: Connection reset by peer]
emmanuelux has quit [Quit: emmanuelux]
cj3kim has joined #ruby
pcarrier_ has quit [Disconnected by services]
mengu has joined #ruby
pcarrier_ has joined #ruby
timkohrumel has quit [Remote host closed the connection]
swordsmanz has joined #ruby
huoxito has quit [Quit: Leaving]
bionhart has quit [Remote host closed the connection]
workmad3 has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
aganov has joined #ruby
L8D has joined #ruby
timonv has joined #ruby
<L8D> Anyone here want to do some paired programming?
arya has quit [Ping timeout: 248 seconds]
<L8D> I have a project I've been working, and could really use a second pair of eyes
brennanMKE has quit [Remote host closed the connection]
Jackneill has joined #ruby
<havenwood> L8D: Whatcha working on?
<L8D> Virtual robots
<L8D> Similar to fightcodegame.com but in ruby
jlast has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<havenwood> cool
<L8D> Wanna help me out?
<havenwood> sure, i'd take a look
arya has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
swordsmanz has quit [Ping timeout: 240 seconds]
<L8D> https://github.com/L8D/gembots/blob/master/lib/gembots/bot.rb is what I'm currently working on right now
swordsmanz has joined #ruby
<L8D> Have very little done...
<L8D> Refresh the page, just did a push
cads has joined #ruby
eldariof has quit [Ping timeout: 268 seconds]
burlyscudd has joined #ruby
kiri has quit [Quit: Leaving]
blaxter has joined #ruby
<havenwood> seems like a fun project, i'll have to take a look at it again with fresh eyes
jlast has quit [Ping timeout: 246 seconds]
<havenwood> L8D: Only critique i'd have is avoid unnecessary namespacing - but it looks like you have something planned for Gembots that just doesn't exist yet.
zeade has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
dfdf has quit [Remote host closed the connection]
mafolz has joined #ruby
ivanoats has quit [Remote host closed the connection]
<havenwood> i don't really like the explicit returns at the last line of a method
<havenwood> i think implicit is more idiomatic Ruby
<havenwood> L8D: Overall seems pretty solid. Stuck on anything or just still spiking out the code?
Apane has quit [Ping timeout: 268 seconds]
<havenwood> L8D: Is it going to be playable by command line with the action printed out, or a gui of some sort?
mklappstuhl has joined #ruby
<L8D> Sorry, was doing something, back
justsee has joined #ruby
<L8D> Bascially, there will cli board
<L8D> The arena will be printed out on the clui
<L8D> cli*
<L8D> I'm still working on everything though
<havenwood> curses?
<L8D> Probably
<L8D> Though I'm thinking of having more of an API to use the robots
<L8D> And then have a seperate part that is a pre-made curses arena that uses said API
<L8D> Do you want to develop it with me?
<havenwood> L8D: Gosu might be a need lib to implement the gui in.
<havenwood> L8D: http://www.libgosu.org
<L8D> I probably won't code a GUI to it though, just have an API for one to be made
Al__ has joined #ruby
relix has joined #ruby
<havenwood> L8D: I'm dead tired right now. Seems like a fun little project though. Hit me up later and i'll take a look.
<L8D> K
Al__ has quit [Client Quit]
DanKnox_away is now known as DanKnox
havenwood has quit [Remote host closed the connection]
hu45 has joined #ruby
DanKnox is now known as DanKnox_away
LennyLinux has joined #ruby
ayaz has joined #ruby
beilabs_ has quit [Ping timeout: 256 seconds]
dr_bob has joined #ruby
lyanchih has quit [Quit: lyanchih]
arya has quit [Ping timeout: 248 seconds]
Heero has joined #ruby
richiebkr has quit [Quit: richiebkr]
mklappstuhl has quit [Remote host closed the connection]
filipe has joined #ruby
lyanchih has joined #ruby
himsin has joined #ruby
banjara has joined #ruby
banjara has left #ruby [#ruby]
arya has joined #ruby
GeissT has joined #ruby
jds_ has joined #ruby
tylersmith has joined #ruby
icole has joined #ruby
pranny has joined #ruby
burlyscudd has joined #ruby
<pranny> I have to truncate a given string, into max N characters, such that no word is cut off. What is the best rubist way to do so?
<joelteon> that is a good question
zigomir has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Heero has quit [Quit: Leaving]
rmnuvg has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
<pranny> joelteon: i have a loop, which iterates over words, and adds them if the total length < N, but it seems like too much work to do
haxrbyte has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
<joelteon> I feel like maybe you could do it with a scan
<joelteon> let me see
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
<Paradox> pranny, split on spaces
icole has quit [Ping timeout: 268 seconds]
<Paradox> then build a string till adding the next section would make the string too long
<joelteon> yeah, I guess that's the best way to do it
<pranny> Paradox: Yup, that is the approach I am using right now. But I believe, there should be a more elegant way
<Paradox> well
<elliptical> Check if s[n+1] id whitespace
danslo has joined #ruby
alup has joined #ruby
<Paradox> you could cut the string off at the length
<elliptical> If it is, s[0..n]
<Paradox> and then look backwards from the end till you hit whitespace
<elliptical> else rsplit
<Paradox> and delete everything after that
<Paradox> yeah
persand has joined #ruby
pothibo has quit [Ping timeout: 240 seconds]
ffio has joined #ruby
<Mon_Ouie> Don't forget s[0..n] is not n but n + 1 characters
<Mon_Ouie> You want s[0, n]
tonini has joined #ruby
kokobaby has quit [Ping timeout: 240 seconds]
<Paradox> nah
<Paradox> here's the faster way
EasyMac_ has joined #ruby
kasper has joined #ruby
kasper_ has joined #ruby
vlad_starkov has joined #ruby
<Paradox> yourstring.split(0,length).slice!(/\s.*?\z/)
<Paradox> that might have some trickyness with split not having a bang method
<Paradox> but its 12 am
<joelteon> I'm trying to figure out a clever way to do it
<Paradox> so i cant think
<pranny> :)
<Paradox> slice! returns the cast off part
<pranny> Paradox: that's a good suggestion. You should sleep() now
<Paradox> in this case, the last space and anything after it till the end of the string
<Paradox> i knew a regexp would do it somehow
<Mon_Ouie> split's first argument has to be a regular expression (or a string)
<Paradox> doesnt split support numbuhs
<Paradox> oh
<Paradox> slice
<Mon_Ouie> and the second one is the maximal amount of parts in the array it returns
<Paradox> i swapped those two
Lemtzas_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
kasper has quit [Ping timeout: 248 seconds]
byprdct_ has joined #ruby
lyanchih has joined #ruby
Lemtzas has quit [Ping timeout: 256 seconds]
<Paradox> yeah
<Paradox> what i said was sound, but the wrong calls
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby
<Paradox> truncate it at your maximum width, then use a regexp to get rid of the end
lyanchih has quit [Client Quit]
<Paradox> using the \z
kokobaby has joined #ruby
arya has quit [Ping timeout: 248 seconds]
EasyMac_ has quit [Read error: Operation timed out]
mklappstuhl has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<Mon_Ouie> So what's the real code in the end? string[0, n].split(/\s.*?\z/) isn't going to work.
baroquebobcat has joined #ruby
<pranny> yup it isnt
byprdct has quit [Ping timeout: 264 seconds]
richiebkr has joined #ruby
richiebkr has quit [Client Quit]
lyanchih has joined #ruby
<Paradox> yourstring[0..length].slice(/\s.*?\z/)
<Mon_Ouie> Oh, actually I have code that does that. text[0, columns][/^(.+)\s(\S+)$/, 1]
<Paradox> heh, yours is more elegant
arya has joined #ruby
<Paradox> same basic thing though
nomenkun has quit [Remote host closed the connection]
andikr has joined #ruby
lyanchih has quit [Client Quit]
<Paradox> isn't [] basically just slice
De`off has joined #ruby
<Mon_Ouie> (not really mine btw, I transliterated it from a Perl)
<Mon_Ouie> a Perl example*
<Paradox> yeah, its the same thing as mine
<Paradox> but with more syntax sugar
lyanchih has joined #ruby
<pranny> Mon_Ouie: that doesnt seem to work
<Paradox> does for me
djbkd has quit [Ping timeout: 260 seconds]
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
<pranny> yup it does !! My bad
jimg has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
dagobah has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
benlieb has quit [Remote host closed the connection]
popl has joined #ruby
<Mon_Ouie> Paradox: Your regexp still looks wrong to me: https://eval.in/33845
lyanchih has quit [Ping timeout: 248 seconds]
<Paradox> yeah you did a substitution
<Paradox> because it uses the []
dfdf has joined #ruby
benlieb has joined #ruby
timkohrumel has joined #ruby
<Paradox> if you use the ! slice it modifies the string in place, returns the crap you cut off, but the string is what you want
<popl> won't .+ grab \s?
mduvall has quit [Quit: mduvall]
<Paradox> you want it to
<Mon_Ouie> It will grab all \s up to the last one
<Paradox> grab everything but the last one
* popl reads about ruby regular expressions
<Mon_Ouie> Actually, it might have to be \S* in case the string terminates properly
jimg has quit [Ping timeout: 260 seconds]
<Paradox> if you're gonna have newlines in it
kil0byte has joined #ruby
<Paradox> you need to set dotall
<popl> How different is Ruby regex than Perl regex?
<Mon_Ouie> Paradox: If you use slice! the initial string will just be the first word (in that example "Lorem")
arya has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Paradox> you're probably right
<pranny> Mon_Ouie: in some cases your regex seems to fail https://eval.in/33852
hu45 has quit [Ping timeout: 260 seconds]
mikewintermute has joined #ruby
Judge has joined #ruby
timkohrumel has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<Judge> Hi @ all
<Paradox> yeah
<Mon_Ouie> Yeah, it should be \S* (the regexp only worked when there was a word that would be cut off)
<Paradox> it coughs on newlines
<Paradox> too
pothibo has joined #ruby
banjara has joined #ruby
<Mon_Ouie> That can be solved with jusst adding the m modifier to the regexp I think
brennanMKE has joined #ruby
<Paradox> replace ^ and $ with \A and \z
<Paradox> and do that
<Paradox> and it works
<Mon_Ouie> Oh, right
arturaz has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
browndawg has joined #ruby
camilasan has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<pranny> Mon_Ouie: yup.. that makes it complete
cj3kim has joined #ruby
hoyang has quit [Ping timeout: 248 seconds]
jprovazn has joined #ruby
<Paradox> could play around and use \b and \B or \w and \W
<Paradox> if you wanna deal with hyphens and commas and shit like that
popl has left #ruby [#ruby]
<pranny> Thanks guys ! :)
brennanMKE has quit [Ping timeout: 260 seconds]
yashshah has quit [Read error: Connection reset by peer]
girija has left #ruby ["Ex-Chat"]
Fire-Dragon-DoL has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
alex88 has joined #ruby
<Mon_Ouie> Well, there are still edge cases I can find. When words are longer than the amount of characters you allow (although that shouldn't be a problem in practice), and when text[0, columns] ends exactly with a word (it cuts off one word too many because you need the next character to know if this is the end of a word)
harrymoreno has quit [Quit: harrymoreno]
<Paradox> also don't try to run the name of tintin through it
<Paradox> you'll get ""
Banistergalaxy has quit [Ping timeout: 264 seconds]
yashshah has joined #ruby
popl has joined #ruby
jasonkuhrt has joined #ruby
dawkirst has joined #ruby
fuleo has quit [Ping timeout: 252 seconds]
fuleo has joined #ruby
richiebkr has joined #ruby
LarsSmit has joined #ruby
Xeago has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
mafolz has quit [Quit: mafolz]
jasonkuhrt has quit [Ping timeout: 252 seconds]
Dreamer3 has joined #ruby
mafolz has joined #ruby
arya has quit [Ping timeout: 268 seconds]
_Renegade_ has joined #ruby
mafolz has left #ruby [#ruby]
cj3kim has quit [Read error: Connection reset by peer]
_Renegade has quit [Ping timeout: 268 seconds]
_Renegade_ is now known as _Renegade
hoyang has joined #ruby
Fire-Dragon-DoL has quit [Remote host closed the connection]
slash_nick has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Fire-Dragon-DoL has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
richiebkr has quit [Quit: richiebkr]
ericmathison has quit [Ping timeout: 240 seconds]
tonini_ has joined #ruby
MrZYX|off is now known as MrZYX
charliesome has joined #ruby
jds_ has quit [Remote host closed the connection]
niceguyjames has joined #ruby
stkowski has quit [Quit: stkowski]
Criztian has joined #ruby
aspiers_ has quit [Ping timeout: 260 seconds]
tonini has quit [Ping timeout: 248 seconds]
emanon_ has joined #ruby
mahmoudimus has joined #ruby
dfdf has quit [Remote host closed the connection]
arya has joined #ruby
apeiros has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<emanon_> Found out a funny idea of instantiating a Hash object where :function => lambda will be stored
cj3kim has quit [Remote host closed the connection]
blitz has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<emanon_> Something like this Object = { function: ->() { puts "implementing..." } }
<emanon_> Object[:function].()
vlad_starkov has joined #ruby
burlyscudd has joined #ruby
<Xeago> don't overwrite Object thi..
Shirakawasuna has quit [Quit: Leaving]
troessner has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
slainer68 has joined #ruby
<emanon_> we have something like in javascript but in ruby
<emanon_> kinda funny
apod has joined #ruby
girija has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
arya has quit [Ping timeout: 248 seconds]
browndawg has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 276 seconds]
ephemerian has joined #ruby
browndawg has joined #ruby
niklasb has joined #ruby
jbpros has joined #ruby
Coffers has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
Dummies_freelanc has quit [Ping timeout: 240 seconds]
kil0byte_ has joined #ruby
benlieb has quit [Quit: benlieb]
vlad_starkov has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 240 seconds]
arya has joined #ruby
Al__ has joined #ruby
marwinis1 is now known as marwinism
lsmola has quit [Ping timeout: 260 seconds]
byprdct_ has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
sheeny has joined #ruby
<sheeny> Could someone please help me with me ruby and gems install?
arya has quit [Ping timeout: 248 seconds]
rdark has joined #ruby
arya has joined #ruby
lsmola has joined #ruby
fixl has joined #ruby
matthewrobbins has joined #ruby
<sheeny> can anyone tell me why bundler isnt recognised? https://gist.github.com/anonymous/5803577
ghr has joined #ruby
binaryplease has joined #ruby
byprdct has joined #ruby
khushildep has joined #ruby
sheeny has quit [Quit: Page closed]
mikepack has joined #ruby
brtdv has joined #ruby
broohaha has quit [Ping timeout: 255 seconds]
brtdv has quit [Client Quit]
Randomage has joined #ruby
umttumt has joined #ruby
statarb3 has quit [Ping timeout: 248 seconds]
obs has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
il_of has joined #ruby
<il_of> hi
pi3r has joined #ruby
Mo0O has quit [Changing host]
Mo0O has joined #ruby
mikepack has quit [Remote host closed the connection]
apod has quit [Remote host closed the connection]
apod has joined #ruby
<il_of> an easy way to delete the first null bytes in an hex string. Example: "00F4F2" --> "F4F2" or "0000F4F2" --> "f4f2"
noname001 has joined #ruby
lyanchih has joined #ruby
<popl> d'oh
timmow has joined #ruby
mahmoudimus has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
mahmoudimus has joined #ruby
relix has joined #ruby
tonini_ has quit [Quit: leaving]
mklappstuhl has quit [Remote host closed the connection]
tonini has joined #ruby
lsmola has quit [Ping timeout: 268 seconds]
<Nom-> Hey guys... anyone know a good library for doing timing on a method? I'd like to capture how long it takes for a particular method to execute, but make it pluggable so I can attach it to any method without substantial code changes
banisterfiend has joined #ruby
Proshot has joined #ruby
BizarreCake has joined #ruby
lsmola has joined #ruby
mklappstuhl has joined #ruby
Randomage has quit [Read error: Connection reset by peer]
marr has joined #ruby
Randomage has joined #ruby
Zai00 has joined #ruby
brtdv has joined #ruby
filipe has quit [Ping timeout: 276 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
tatsuya_o has joined #ruby
MrZYX is now known as MrZYX|off
zigomir has quit [Quit: zigomir]
lsmola has quit [Ping timeout: 252 seconds]
lsmola has joined #ruby
vlad_starkov has joined #ruby
hawtin has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tylersmith has joined #ruby
Kar- has joined #ruby
timonv has joined #ruby
lsmola_ has joined #ruby
benlieb has quit [Quit: benlieb]
lsmola has quit [Read error: Operation timed out]
himsin has quit [Quit: himsin]
burlyscudd has joined #ruby
chichou has joined #ruby
himsin has joined #ruby
MrZYX|off is now known as MrZYX
lsmola_ has quit [Client Quit]
jds has joined #ruby
lsmola has joined #ruby
m00nlight has quit [Quit: No Ping reply in 180 seconds.]
m00nlight has joined #ruby
nomenkun has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
freeayu has quit [Ping timeout: 256 seconds]
freeayu__ has joined #ruby
filipe has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
Rizzle has quit [Read error: Connection reset by peer]
Rizzle has joined #ruby
jds has quit [Ping timeout: 252 seconds]
jbpros has quit [Quit: jbpros]
<mwlang> Nom-: ruby benchmark
sevenseacat has quit [Quit: Leaving.]
ryan_turner has quit [Ping timeout: 260 seconds]
ryan_turner has joined #ruby
lunarjar has quit [Ping timeout: 252 seconds]
girija has quit [Ping timeout: 252 seconds]
eka has joined #ruby
lunarjar has joined #ruby
nari has quit [Ping timeout: 260 seconds]
jastix has joined #ruby
byprdct has quit [Ping timeout: 268 seconds]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
dagobah has quit [Read error: Operation timed out]
dagobah has joined #ruby
senayar_ has joined #ruby
Aaaarg has joined #ruby
lunarjar has quit [Ping timeout: 260 seconds]
girija has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
cookcode has joined #ruby
filipe has quit [Ping timeout: 268 seconds]
adambeynon has joined #ruby
<Xeago> date - date returns a rational right?
<Xeago> how do I interpret that rational?
nari has joined #ruby
<Xeago> banisterfiend: would you make me a styling thing in pry to give irb_rocket style?
<Xeago> (pry(main)> Date.today #=> #<Date: 2013-06-18 ((2456462j,0s,0n),+0s,2299161j)>
jrhe has joined #ruby
marcgg_ has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
hogeo has quit [Remote host closed the connection]
marcgg has quit [Ping timeout: 240 seconds]
gasbakid has joined #ruby
d4x has quit [Ping timeout: 240 seconds]
dr_bob has quit [Ping timeout: 240 seconds]
filipe has joined #ruby
Domon has quit [Remote host closed the connection]
dr_bob has joined #ruby
jbpros has joined #ruby
Randomage has quit [Read error: Connection reset by peer]
razi has joined #ruby
Fire-Dragon-DoL has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
gh72 has joined #ruby
ferr has joined #ruby
matthewrobbins has quit [Ping timeout: 252 seconds]
Gonzih has joined #ruby
<MarcWeber> Is it possible to create rake task with multiple target files per task? eg file ['a', 'b'] do sh "echo a > a; echo b > b" end ?
sayan has quit [Read error: Connection reset by peer]
staafl has quit [Ping timeout: 264 seconds]
stef_204 has joined #ruby
Weems has quit [Ping timeout: 268 seconds]
<MarcWeber> Xeago: Why do you need a rational?
ferr has quit [Remote host closed the connection]
Gonzih has quit [Quit: IRC is just multiplayer vim.]
aspiers_ has joined #ruby
fermion has joined #ruby
apeiros has quit [Remote host closed the connection]
Criztian has quit [Ping timeout: 240 seconds]
Criztian has joined #ruby
gh72 has quit [Quit: leaving]
<Xeago> MarcWeber: don't need a rational
<Xeago> I think ruby returns a rational so that it can show differences with precision loss
Elhu has joined #ruby
AlSquire has joined #ruby
tylersmith has joined #ruby
vlad_starkov has joined #ruby
tommyvyo has joined #ruby
burlyscudd has joined #ruby
Brando753 has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
Randomage has joined #ruby
Brando753 has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
lyanchih has quit [Quit: lyanchih]
danslo has quit [Read error: Connection reset by peer]
danslo_ has joined #ruby
atno__ has joined #ruby
atno has quit [Read error: No route to host]
burlyscudd has quit [Ping timeout: 264 seconds]
cookcode has quit [Ping timeout: 276 seconds]
gildo has joined #ruby
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
kasper_ has quit [Read error: Connection reset by peer]
kasper has joined #ruby
vlad_starkov has joined #ruby
TheNumb has quit [Quit: ZNC - http://znc.sourceforge.net]
filipe has quit [Ping timeout: 268 seconds]
lyanchih has joined #ruby
elliptical is now known as ellipse
staafl has joined #ruby
lyanchih has quit [Client Quit]
amedeiros has joined #ruby
LarsSmit has quit [Quit: Leaving.]
filipe has joined #ruby
eliqtrope has joined #ruby
<eliqtrope> hi
vlad_starkov has quit [Ping timeout: 248 seconds]
<Xeago> I seem to be unable to install debugger-linecache:
staafl has quit [Ping timeout: 240 seconds]
TheNumb has joined #ruby
<MrZYX> yeah, they always lag behind
amedeiros has quit [Ping timeout: 252 seconds]
<eliqtrope> how align fields like this http://pastebin.com/36CxqgZ0
camilasan has quit [Remote host closed the connection]
amedeiros has joined #ruby
d4x has joined #ruby
cowbacon has joined #ruby
<cowbacon> Hello. I
amedeiros has quit [Read error: Operation timed out]
persand has quit [Quit: persand]
Hanmac2 has joined #ruby
<cowbacon> Hello. I've completed the lectures at codecadamey and was wondering where you suggest i look now to continue to learn the ruby language. I was thinking of doing some simple web dev with it but mosly I'll be using ruby for linux sys admin work
<popl> cowbacon: read design patterns with ruby
<MrZYX> cowbacon: find a repetitive task you do daily to weekly and try to further automate it using ruby
amedeiros has joined #ruby
<MrZYX> if you already have some shell script try to replace it, just for learning experience
Hanmac1 has quit [Ping timeout: 268 seconds]
F1skr has joined #ruby
<cowbacon> popl: alright, ty. i'll go look it up
<cowbacon> MrZYX: thats a good idea, i'll def try that too
jimg_ has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
jbpros has quit [Quit: jbpros]
staafl has joined #ruby
viszu has quit [Quit: Leaving.]
kasper has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 264 seconds]
mwlang has quit [Quit: mwlang]
hogeo has joined #ruby
lkba has joined #ruby
amedeiros has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
sayan has quit [Read error: Connection reset by peer]
ditto572 has joined #ruby
camilasan has joined #ruby
ToApolytoXaos has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
atyz has joined #ruby
camilasan has quit [Remote host closed the connection]
iamjarvo has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
matled- has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
amedeiros has quit [Ping timeout: 252 seconds]
DrCode has quit [Ping timeout: 240 seconds]
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
amedeiros has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
amedeiros has quit [Read error: Connection reset by peer]
Kabaka has quit [Ping timeout: 240 seconds]
end_guy has quit [Ping timeout: 240 seconds]
kstephens has quit [Quit: PredictTheFuture]
kstephens has joined #ruby
ndngvr has quit [Ping timeout: 264 seconds]
wildcard0 has quit [Ping timeout: 264 seconds]
wildcard0 has joined #ruby
LarsSmit has joined #ruby
yshh has quit [Remote host closed the connection]
tacos1de has joined #ruby
amedeiros has joined #ruby
DrCode has joined #ruby
krisfremen has quit [Ping timeout: 264 seconds]
zigomir has joined #ruby
end_guy has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
rdark has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Remote host closed the connection]
Kabaka has joined #ruby
amedeiros has quit [Ping timeout: 268 seconds]
arya_ has joined #ruby
rdark has joined #ruby
cads has quit [Read error: Operation timed out]
rippa has quit [Ping timeout: 248 seconds]
ndngvr has joined #ruby
arya has quit [Ping timeout: 264 seconds]
LarsSmit has quit [Quit: Leaving.]
atno__ has quit [Ping timeout: 252 seconds]
staafl_alt has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
lyanchih has joined #ruby
ttt has joined #ruby
ttt_ has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
hoyang has quit [Quit: 离开]
staafl has quit [Ping timeout: 240 seconds]
snearch has joined #ruby
mansi has joined #ruby
jacktrick has joined #ruby
TIJ has joined #ruby
joshu has quit [Quit: Bye.]
kasper has joined #ruby
Spooner has joined #ruby
LarsSmit has joined #ruby
<il_of> an easy way to delete the first null bytes in an hex string. Example: "00F4F2" --> "F4F2" or "0000F4F2" --> "f4f2"
coco_was_banned has joined #ruby
<coco_was_banned> who came up with the implementation of currying in ruby?
arya_ has quit [Ping timeout: 246 seconds]
<Spooner> il_of, "00F4f0".gsub(/\A0+/, '')
<Spooner> They aren't "null bytes" though. They are leading zeroes ;)
tylersmith has joined #ruby
<Spooner> Oh, no,. they are. Wasn't concentrating there :$
<coco_was_banned> evaluating the proc as soone as all arguemntes are present ist sutpid in a non functional language with extensive side effects -_-
burlyscudd has joined #ruby
kofno has joined #ruby
<Spooner> coco_was_banned, When should it be evaluated other than when all args are present?
Domon has joined #ruby
arya has joined #ruby
<coco_was_banned> Spooner: currying should again result in a function
<coco_was_banned> imho
tylersmith has quit [Ping timeout: 252 seconds]
buzzybron has quit [Quit: Leaving.]
<coco_was_banned> and evaluation should take place once this function is called
<Spooner> Oh, you mean that you should be able to curry a 3-arg method 3 times and then it can be called without any args at all?
burlyscudd has quit [Ping timeout: 246 seconds]
ArchBeOS has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
xeviox has joined #ruby
<coco_was_banned> Spooner: exactly
<coco_was_banned> I was sooo happy that I finally found a uscase for currying (passing a curried block to a library function) but then...
<coco_was_banned> no can do
pootler__ has quit [Ping timeout: 264 seconds]
<zomg> coco_was_banned: if you want uses for currying, use a functional programming language =)
<zomg> they utilize it much more
atno has joined #ruby
azerton has joined #ruby
<coco_was_banned> zomg: I know
<coco_was_banned> zomg: i was just happy to finally finde a nice usecase for currying in ruby
<coco_was_banned> what good is a feature that only makes sense in another language?
<zomg> hehe
<xeviox> hi guys, I've created an app using ruby 2.0.0. Now I want to run it on a server only offering ruby 1.8.7 and a first problem occurred. I use "Integer(some_string, 10)" to convert my integers. But the second paramter is not available in ruby 1.8.7. Is it possible add it somehow (e. g. default to the single parameter version) ?
<zomg> People implement currying in JavaScript too and tbh I haven't had much use for it there either
<coco_was_banned> zomg: sure sure, its a nice execise and everything
ramblex has joined #ruby
<Spooner> xeviox, 10 is the default, but presumably you want to parse a different base?
<xeviox> Spooner: no, the problem is the constructor "Integer(string, base)" is not available in ruby 1.8.7
pothibo has quit [Quit: pothibo]
niceguyjames has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
<xeviox> so I wondered if its possible to add it and just use the single parameter constructor ..
<Spooner> Yes, but Integer() doesn't necessarily need a base. If the number starts with a 0, it assumes oct. starts with 0x, hex, otherwise decimal. So you could work around it.
zets has quit [Ping timeout: 246 seconds]
apod has quit [Quit: apod]
rdark has quit [Ping timeout: 268 seconds]
<Spooner> You could use string.to_i(base) instead, though that will generate 0 if the string isn't really a number.
<Spooner> Integer() will explode with a bad string.
<xeviox> jup, but that's what I don't want ^^
<xeviox> maybe I should go with a little helper .. is it possible to check if a certain ctor is available?
boblu has quit [Ping timeout: 260 seconds]
rdark has joined #ruby
Domon has quit [Remote host closed the connection]
<Spooner> You could match the string with /\A\d+\Z/ first and use str.to_i(base)
verto has joined #ruby
beilabs_ has joined #ruby
<xeviox> just thought there might be a quick workaround that doesn't force me to change the existing code ..
<xeviox> thanks
<MrZYX> xeviox: just pointing out that 1.8 is EOL and the real solution is to update the servers ruby
umttumt has quit [Remote host closed the connection]
nari has quit [Ping timeout: 260 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
<xeviox> MrZYX: jup, but that's always a little hazzle, isn't it? ^^
ntus1017 has quit [Remote host closed the connection]
<MrZYX> largely depends on the servers OS and the already running application
<MrZYX> s
joshu has joined #ruby
<MrZYX> and how ruby is installed
umttumt has joined #ruby
tacos1de has joined #ruby
mansi has quit [Remote host closed the connection]
<MrZYX> In most cases I'd consider it less of a hazzle than backporting working code to an now unsupported version. That is basically introducing security issues into a software on purpose
mansi has joined #ruby
beilabs_ has quit [Ping timeout: 240 seconds]
<xeviox> other question, how is "Integer(...)" implemented?
<MrZYX> should be a method
<xeviox> it's not the ctor as I thought first (didn't think of the missing new)
himsin has quit [Quit: himsin]
<MrZYX> it's a method on Kernel
<xeviox> ok, so if I want to add a method to kernel, should I extend kernel or object?
<xeviox> object
<xeviox> right?
robustus has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
<MrZYX> you want to extend kernel and therefore extend object? sounds a bit silly :)
<xeviox> I wasn't sure if there is actually a class called "kernel" ..
chichou has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 260 seconds]
camilasan has joined #ruby
<MrZYX> module Kernel; def my_shiny_method; "yay"; end; end; But! In most cases you want to wrap your application/library into a module MyApplication which is also a good place for such functions
<MrZYX> eh, methods
robustus has joined #ruby
timonv has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<MrZYX> so be really careful with extending Kernel, avoid it as long as you can
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
coco_was_banned has left #ruby [#ruby]
apeiros has joined #ruby
haxrbyte has quit [Remote host closed the connection]
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
haxrbyte has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
kil0byte has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
senayar_ has joined #ruby
rovert has joined #ruby
razi has quit [Quit: Leaving.]
d4x has quit [Ping timeout: 240 seconds]
kil0byte_ has quit [Ping timeout: 248 seconds]
<Spooner> You are best off extending the module/class that Integer() is being called in, to prevent side effects where else it is used.
<MrZYX> and wrap the whole thing into a if RUBY_VERSION
<Spooner> Yeah, but the intention is to not alter existing code (you could monkey-patch the new Integer in).
senayar_ has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
ArchBeOS has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
Brando753 has quit [Ping timeout: 264 seconds]
timmow has quit [Read error: Connection reset by peer]
d4x has joined #ruby
matthewrobbins has joined #ruby
nalaginrut has quit [Ping timeout: 268 seconds]
timmow has joined #ruby
thams_ has joined #ruby
lyanchih has quit [Ping timeout: 264 seconds]
ttt has quit [Remote host closed the connection]
ArchBeOS is now known as enroxorz
Brando753 has joined #ruby
thams has quit [Ping timeout: 240 seconds]
thams_ is now known as thams
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
kenmaz has joined #ruby
enroxorz is now known as ArchBeOS
chichou has joined #ruby
osvico has joined #ruby
Dekade has joined #ruby
ldnunes has joined #ruby
lyanchih has joined #ruby
kenmaz has quit [Ping timeout: 248 seconds]
rafb3 has joined #ruby
<lupine> if I want a pure-ruby, cross-platform gui toolkit, what am I looking at?
Aaaarg has quit [Quit: Aaaarg]
Elhu has joined #ruby
<lupine> we have a qt gui at the moment but it doesn't package nicely under mac and smoke is insane
persand has joined #ruby
<tagrudev> lupine, try at ruby toolbox :)
<lupine> already there :)
rdark_ has joined #ruby
<lupine> it doesn't distinguish between pure-ruby and not
Maoko has joined #ruby
rfizzle has joined #ruby
<lupine> I may well be asking the impossible, of course. seems shoes has native extensions too
jonathanwallace has quit [Quit: WeeChat 0.4.0]
lkba has joined #ruby
jonathanwallace has joined #ruby
ntus1017 has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Client Quit]
io_syl has joined #ruby
gyre007 has joined #ruby
rdark_ has quit [Read error: Operation timed out]
rdark has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
Mattix has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
tylersmith has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
relix has joined #ruby
TIJ has joined #ruby
ditto572 has quit [Ping timeout: 256 seconds]
burlyscudd has joined #ruby
mklappstuhl has joined #ruby
jbpros has joined #ruby
nari has joined #ruby
<Spooner> Pure ruby can't really work for a gui (well, I suppose you could FFI something, but that would still need binaries).
matthewrobbins has quit [Ping timeout: 248 seconds]
relix has quit [Client Quit]
tylersmith has quit [Ping timeout: 264 seconds]
arya has quit []
eliqtrope has quit [Quit: Page closed]
osvico has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Quit: bye]
mark_locklear has joined #ruby
<Spooner> Maybe you should be asking: What Gui toolkit can we get nicely into a .app on OSX?
jonathanwallace has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
timonv has joined #ruby
<Spooner> In which case, Releasy might help you out.
<Spooner> at lupine ^^
<lupine> Spooner, cross-platform? :)
<lupine> oh, I seeee
ryannielson has joined #ruby
ArchBeOS is now known as enroxorz
yalue has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
<lupine> Spooner, unfortunately, "Building OS X apps on non-OS X systems will not currently work with compiled gems at all (other than Gosu, Chipmunk & TexPlay)." is a no-go for us
pyrac has joined #ruby
<Spooner> Right, so you need to build an OSX app on a non-OSX platform. You are exposing hidden requirements at quite a rate ;)
konr has quit [Remote host closed the connection]
patbr0wn has joined #ruby
<lupine> we can already build an OSX app on a non-OSX platform, as long as it hasn't got any native gems
<Spooner> lupine, It will work with binary gems (assuming they are already compiled for OSX). Just won't compile for you.
<Spooner> OK.
<lupine> mm, qtbindings, which is what we have right now, isn't
<lupine> they precompile for windows, which is kind of them
mklappstuhl has quit [Ping timeout: 260 seconds]
davedev24 has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
<Spooner> Yeah, that is usual.
lyanchih has quit [Ping timeout: 252 seconds]
<lupine> mac's dynamic linker really rather gets in the way when trying to compile it for redistribution into a .app, even if you're doing the compilation on a mac
dhruvasagar has quit [Ping timeout: 256 seconds]
<lupine> I spent several days with a built qtbindings-mac gem, unsuccessfully
davedev24 has joined #ruby
kil0byte has quit [Ping timeout: 276 seconds]
pyrac has quit [Ping timeout: 252 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
<lupine> we currently build the cli and gui parts of the application into a .tar for unices, .deb, .rpm and a nullsoft installer .exe - all from linux
<lupine> we then build the cli part of the application into a .app, Just For Mac#
browndawg has quit [Quit: Leaving.]
jacktrick has quit [Quit: Leaving]
enroxorz has quit [Ping timeout: 264 seconds]
Paul-Atreides has joined #ruby
Paul-Atreides has joined #ruby
arya has joined #ruby
coderhut has joined #ruby
coderhut has quit [Client Quit]
coderhut has joined #ruby
pyrac has joined #ruby
Maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has joined #ruby
<banisterfiend> Mon_Ouie: 'alut
Spami has joined #ruby
mmitchell has joined #ruby
<il_of> Spooner: I'm back sorry
<il_of> let me try it :D
paulswilliamsesq has joined #ruby
iamjarvo has quit [Quit: Leaving.]
Paul-Atreides has quit [Ping timeout: 276 seconds]
<il_of> Spooner: are you still there?
devoldmx3 has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
xeviox has left #ruby ["Verlassend"]
d4x has quit [Ping timeout: 240 seconds]
hogeo has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
pyrac has quit [Ping timeout: 264 seconds]
geekbri has joined #ruby
patbr0wn has quit [Ping timeout: 248 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Spooner> il_of, I am.
<matti> ;]
Judge has quit [Ping timeout: 248 seconds]
danslo_ has quit [Quit: danslo_]
<il_of> Spooner: that solucion is good
<il_of> but I need just bytes
TIJ has quit [Ping timeout: 248 seconds]
<il_of> I mean, in this case: "000F4f" the result would have to be "0F4F"
relix has joined #ruby
Judge has joined #ruby
<Spooner> Oh yes. I didn't think of that. "000F4f".gsub(/\A(?:00)+/, '')
niceguyjames has joined #ruby
adambeynon has joined #ruby
<L8D> How do you define a specific object's methods?
<il_of> Spooner: thank you so much
Banistergalaxy has joined #ruby
<ellipse> def obj.singleton() :hi; end
<L8D> THAT WORKS?
* L8D tests it out in irb
banisterfiend has quit [Remote host closed the connection]
anekos has quit [Remote host closed the connection]
patteh has quit [Quit: leaving]
atyz has joined #ruby
sambao21 has joined #ruby
devoldmx3 has quit [Ping timeout: 252 seconds]
patteh has joined #ruby
anekos has joined #ruby
<Spooner> il_of, No problem. Sorry I missed that case in the initial solution.
mmitchell has quit [Remote host closed the connection]
<MarcWeber> What is teh equivalent to multitask using file? (rake)
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<LennyLinux> L8D: you could you instance_eval method with a block or a string, or you can open the singleton class
devoldmx has joined #ruby
tk_ has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
d4x has joined #ruby
iamjarvo has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
fsperling has joined #ruby
nettoweb has joined #ruby
carloslopes has joined #ruby
atno__ has joined #ruby
ayaz has quit [Ping timeout: 248 seconds]
rafb3 has quit [Remote host closed the connection]
wchun has quit [Read error: Connection reset by peer]
atno has quit [Ping timeout: 264 seconds]
ttt has joined #ruby
mklappstuhl has joined #ruby
aalmenar_ has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre_laptop has joined #ruby
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
vlad_starkov has quit [Remote host closed the connection]
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DaniG2k has quit [Quit: Leaving.]
krawchyk has joined #ruby
krawchyk has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
senayar_ has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
<joshu> I'm using rbenv on Mac with bundler. How do I update the bundler gem itself? Is it via gem update bundler?
niklasb has joined #ruby
pranny has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 240 seconds]
icole has joined #ruby
jasonkuhrt has joined #ruby
Lubinski has joined #ruby
carloslopes has quit [Ping timeout: 246 seconds]
krawchyk has joined #ruby
mikewintermute has joined #ruby
adambeynon has joined #ruby
jlast has joined #ruby
mklappstuhl has quit [Read error: No route to host]
senayar has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
rdark_ has joined #ruby
tylersmith has joined #ruby
boblu has joined #ruby
dangerousdave has joined #ruby
wchun has joined #ruby
cdelo has joined #ruby
phite has joined #ruby
rdark has quit [Ping timeout: 268 seconds]
jerius has joined #ruby
krz has quit [Ping timeout: 240 seconds]
EasyMac_ has joined #ruby
rdark has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
rdark_ has quit [Ping timeout: 252 seconds]
<EasyMac_> ruby novice: Is there some more elegant way to do: someArray = someArray.empty ? someOtherArray : someArray
<EasyMac_> That is, without three repetitions of someArray?
jbpros has quit [Quit: jbpros]
serp` has joined #ruby
<EasyMac_> empty should be empty?
<EasyMac_> someArray = someArray.empty? ? someOtherArray : someArray
krz has joined #ruby
<EasyMac_> I'm coming from python, where empty arrays evaluate to false, so there are some nifty elegant ways to do that
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adambeynon has joined #ruby
<EasyMac_> namely, something like: someArray = someArray || someOtherArray
johnmilton has joined #ruby
<ellipse> someArray.update(otherArray) if someArray.empty?
<EasyMac_> yeah, that's certainly better
<EasyMac_> thanks ellipse
rdark_ has joined #ruby
jesly1 has quit [Ping timeout: 268 seconds]
<ellipse> np, have fun on your Ruby adventure!
breakingthings has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
splittingred has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
LarsSmit has quit [Quit: Leaving.]
ntus1017 has quit [Remote host closed the connection]
devoldmx has joined #ruby
LarsSmit has joined #ruby
huoxito has joined #ruby
senayar_ has quit [Remote host closed the connection]
rdark_ has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
senayar has joined #ruby
rdark has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
pitzips has joined #ruby
<MarcWeber> EasyMac_ There is also ||=
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DonRichie has quit [Ping timeout: 246 seconds]
DonRichie has joined #ruby
adambeynon has joined #ruby
pootler_ has joined #ruby
wmoxam has joined #ruby
apeiros has quit [Remote host closed the connection]
<ellipse> MarcWeber: [] is truthy
<ellipse> ||= won't update it.
<nettoweb> can someone help me with a question about routes?
woodbridge has joined #ruby
emergion has joined #ruby
<MarcWeber> Without knowing all code of EasyMac_ its hard to tell him the nicest solutoin.
ananthakumaran has quit [Quit: Leaving.]
<MarcWeber> nettoweb: Always just ask. There is also #networking or such.
serp` has quit [Quit: serp`]
emergion has quit [Max SendQ exceeded]
mansi has joined #ruby
<nettoweb> MarcWeber: I asked first because I thinks it's a rails question, but I still cant get my answer
serp` has joined #ruby
serp` has quit [Client Quit]
emergion has joined #ruby
<MarcWeber> nettoweb: So what? Rails is ruby, isn't it?
<nettoweb> hhe ok
iamjarvo has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
adambeynon has quit [Client Quit]
<MarcWeber> If hpeople know an answer then they will reply. Otherwise try to find out where to put rails support quetions ..
<nettoweb> I'm net to ruby, I'm working sometime, but with ruby 1.8 ;/ now I'm creating a new app, but I'm so lost with routes
<nettoweb> because
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<woodbridge> hi guys -- I found this way to crash Ruby: https://gist.github.com/woodbridge/5805212 . is this a bug? should I report it?
<nettoweb> I'm trying to do this : localhost:3000/type_of_fight/championships/region/city
<MarcWeber> woodbridge: Talk about your os and ruby version.
TIJ has joined #ruby
<nettoweb> but I dont know how to accomplish this, I dont know if I must use nested routes
<MarcWeber> sry, second file :)
<nettoweb> or not
<nettoweb> each of action passed ir URL there is some data in DB
tkuchiki has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<nettoweb> type_of_fight = "boxe, jiu-jitsu", region = "new york, chicago"
<nettoweb> do you understand?
camilasan has joined #ruby
<woodbridge> MarcWeber: ok. Yeah, 10.8.2 and 2.0.0-p0 / 2.0.0-p195. Are you seeing the same behavior on your system?
nalaginrut has joined #ruby
<MarcWeber> woodbridge Yes, my ruby also crashes. => bugs.ruby-lang.org . Even a very recent ruby version crashes
nimor has quit [Quit: nimor]
<woodbridge> MarcWeber: Ok. thanks :) Going to submit a report.
<MarcWeber> woodbridge: git revision 4ff3b (its from 8th June)
<MarcWeber> woodbridge: Include that info, that that revision also crashes (x86_64)
generalissimo has joined #ruby
<woodbridge> MarcWeber: Will do
v0n has joined #ruby
mansi has quit [Remote host closed the connection]
jimg_ has quit [Remote host closed the connection]
blaxter has quit [Ping timeout: 260 seconds]
burlyscudd has joined #ruby
axl_ has joined #ruby
nalaginrut has quit [Read error: Operation timed out]
<woodbridge> MarcWeber: Here's the bug: https://bugs.ruby-lang.org/issues/8540
rippa has joined #ruby
<MarcWeber> woodbridge: If there are any additional questions: I'm on linux. But I guess your bug report is enough for the devs to reporudce the problem.
dr_bob has quit [Quit: Leaving.]
<nettoweb> MarcWeber: did you see my queston? do u know how I must procced?
mikewintermute has quit [Quit: mikewintermute]
krawchyk_ has joined #ruby
<woodbridge> MarcWeber: ok. I'll add a note about linux
bionhart has joined #ruby
cookcode has joined #ruby
<woodbridge> MarcWeber: what's your exact os?
<MarcWeber> nettoweb: http://rubyonrails.org/community -> mailing list. Sorry, I don't know rails.
thesheff17 has joined #ruby
<ramblex> nettoweb: try #rubyonrails
synthetix has joined #ruby
<nettoweb> ramblex: I already tried but with no answer, but I'll keep trying
pipework has joined #ruby
atmosx has joined #ruby
<MarcWeber> nettoweb: -> mailinglist, then be patient (24 to 48h)
<nettoweb> MarcWeber: thank you
<MarcWeber> nettoweb: Also it should be easy to find a company which knows rails inside out.
cookcode has quit [Client Quit]
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sailias has joined #ruby
krawchyk has quit [Ping timeout: 264 seconds]
e-dard has joined #ruby
sambao21 has joined #ruby
avril14th has joined #ruby
avril14th has left #ruby [#ruby]
kenmaz has joined #ruby
fuzzyhorns has joined #ruby
adkron has quit [Ping timeout: 256 seconds]
kenmaz has quit [Read error: Connection reset by peer]
achromatiaceae17 has joined #ruby
kenmaz has joined #ruby
woodbridge has quit [Quit: woodbridge]
wsterling has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
icole has quit [Remote host closed the connection]
<e-dard> Hi, how do I call a module method from within a class defined in the same module? http://codepad.org/HdIyICT7
emergion has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
codecop has quit [Remote host closed the connection]
mmitchell has joined #ruby
<L8D> Not sure e-dard
<L8D> But I'd instead declare MFoo
<e-dard> L8D: I'm confounded :D Tried everything. Am I using a strange approach?
justsee has quit [Ping timeout: 264 seconds]
<L8D> I would have declared foo and Bar seperately than MFoo
achromatiaceae17 has quit [Remote host closed the connection]
<L8D> As in: def MFoo:foo
<e-dard> foo is a helper method useful to all the classes in MFoo module.
<L8D> and: class MFoo::Bar
nalaginrut has joined #ruby
<ramblex> e-dard: you can declare foo as self.foo and then call it as MFoo::foo
<e-dard> L8D: you mean surround foo in the module declaration and Bar in another MFoo declaration?
<L8D> Yes
<e-dard> ramblex: ah cool
<L8D> Either of those should work
yacks has quit [Read error: Connection reset by peer]
<e-dard> ramblex: that worked perfectly, thanks!
umttumt has quit [Remote host closed the connection]
sethetter has joined #ruby
DonRichie has quit [Ping timeout: 248 seconds]
<e-dard> L8D: did you mean like this? http://codepad.org/NbwcgikT
<L8D> Similar
DonRichie has joined #ruby
Fire-Dragon-DoL has joined #ruby
paulswilliamsesq has quit [Ping timeout: 264 seconds]
<L8D> The second time you declare MFoo, just do class MFoo::Bar
<L8D> unless you're making a few more classes
poincare101 has joined #ruby
yacks has joined #ruby
poincare101 has quit [Max SendQ exceeded]
tomzx_mac has joined #ruby
pignut61 has joined #ruby
adambeynon has joined #ruby
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
devoldmx3 has joined #ruby
EasyMac_ has quit [Quit: EasyMac_]
poincare101 has joined #ruby
phantasm66 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
adkron has joined #ruby
iamjarvo1 has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
girija has quit [Ping timeout: 252 seconds]
poseid has joined #ruby
kofno has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
phantasm66 has quit [Client Quit]
<poseid> I am looking for an easy shortcut to make a dummy string with length N
Randomage has quit [Quit: Randomage]
<poseid> N.times { "a" }
<poseid> doesnt seem to do the trick
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
<ellipse> 'a'*N
<poseid> ah, right
poincare101 has joined #ruby
<poseid> I was looking into: times.map { "a" }.join
poincare101 has quit [Max SendQ exceeded]
devoldmx3 has quit [Ping timeout: 256 seconds]
niceguyjames has joined #ruby
pignut61 has quit [Remote host closed the connection]
kofno has joined #ruby
akells` has joined #ruby
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
<ellipse> i.times{do_it} does it i times.
iamjarvo1 has quit [Ping timeout: 240 seconds]
<ellipse> And returns i.
effacements00 has joined #ruby
kil0byte has joined #ruby
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
pranny has joined #ruby
pranny has quit [Remote host closed the connection]
kpshek has joined #ruby
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
atno__ has quit [Remote host closed the connection]
banisterfiend has joined #ruby
justsee has joined #ruby
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
viszu has joined #ruby
DaniG2k has joined #ruby
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
devoldmx has joined #ruby
kil0byte_ has quit [Ping timeout: 264 seconds]
poincare101 has joined #ruby
poincare101 has quit [Max SendQ exceeded]
JustinAiken has joined #ruby
bionhart has quit [Remote host closed the connection]
jimg has joined #ruby
vlad_starkov has joined #ruby
poincare101 has joined #ruby
acrussell has joined #ruby
tw1sted has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tylersmith has joined #ruby
bean has joined #ruby
effacements00 has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
jerius_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Uranio has joined #ruby
umttumt has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
girija has joined #ruby
atyz has joined #ruby
jimg has quit [Ping timeout: 241 seconds]
<il_of> I have a pack value of "}\365\037" but when I do ---> print value I get binary data
devoldmx has quit [Ping timeout: 268 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has joined #ruby
<il_of> not the literal "}\365\037". Is there a way to get that ?
fomatin has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has joined #ruby
kobain has joined #ruby
shambat has joined #ruby
zomg has left #ruby [#ruby]
<shambat> is there a dedicated Rails channel?
<Mon_Ouie> Yes, #rubyonrails
<wuest> il_of: String#inspect is probably what you're looking for.
<il_of> Spooner: wuest let me see ...
<il_of> thank you
viszu has quit [Quit: Leaving.]
rdark has quit [Ping timeout: 240 seconds]
Spooner_ has joined #ruby
TIJ has quit [Read error: Connection reset by peer]
scrollback has quit [Remote host closed the connection]
TIJ has joined #ruby
pothibo has joined #ruby
Spooner_ has quit [Client Quit]
scrollback has joined #ruby
redgirl has joined #ruby
jtharris has joined #ruby
rdark has joined #ruby
girija has quit [Ping timeout: 248 seconds]
sobering has joined #ruby
<shambat> Looking for a Rails console way to make an ActiveRecord query that joins tables. Is it possible to use Rails magic to get the relations automatically or should I just use the joins() method?
laitances14 has joined #ruby
krawchyk has joined #ruby
<banisterfiend> Shambat: join #rubyonrails
<shambat> banisterfiend: thanks!
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
<il_of> wuest: from irb. If I type: value I get "}\365\037"
TIJ has quit [Client Quit]
<sobering> Hey guys, annoying encoding problem here. I have a piece of XML that looks like this: http://pastebin.com/yQPbzfZP
JustinAiken has quit [Quit: Leaving.]
<sobering> It's ISO-8859-1 encoded. I can't get the special characters to display properly for the life of me, despite trying every technique I could find to encode the string to UTF-8
<il_of> but with print value.inspect I get "}\xF5\x1F"
<ellipse> Did you try .encode?
<sobering> Yup, tried .encode, the characters still display weird.
dhruvasagar has joined #ruby
<sobering> Current attempt: @sites = Document.new(f.read.encode("UTF-8"))
<wuest> il_of: 0xF5 == 0365
<ellipse> il_of: That data isn't encoded.
krawchyk_ has quit [Ping timeout: 276 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
<il_of> yes, but I need the 0xF5 form
Neomex has joined #ruby
<ellipse> Only the literal character is, not how you created it.
Neomex has quit [Client Quit]
generalissimo has quit [Remote host closed the connection]
<ellipse> p str
sethetter has left #ruby [#ruby]
<il_of> let me see
girija has joined #ruby
<ellipse> Does Ruby know the string is ISO-8859-1 to start with?
burlyscudd has quit [Quit: Leaving.]
niceguyjames has joined #ruby
RORgasm_ has quit [Read error: Connection reset by peer]
gasbakid has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
<sobering> ellipse: are you talking to me? If so, I opened the file like so: File.open("siteList.xml", "r:ISO-8859-1")
gasbakid has joined #ruby
krz has quit [Quit: krz]
<ellipse> Hmm. Weird. Are you sure the issue isn't with your terminal?
rafb3 has joined #ruby
rhys has joined #ruby
_irc__ has joined #ruby
<_irc__> Hi everyone
rovert has quit [Quit: Leaving]
carloslopes has joined #ruby
<sobering> The chars don't display properly in my terminal or in my browser
<sobering> So strange.
steamboy has joined #ruby
<ellipse> Do they display properly in ISO-8859-1?
cmarques has joined #ruby
<ellipse> i.e. Does the problem originate in reencoding?
rafb3 has quit [Read error: Connection reset by peer]
<sobering> Let me double check really quickly. Tried so many options I don't remember the output of each attempt
<il_of> wuest: nothing :(
devoldmx has joined #ruby
dpritchett has joined #ruby
rafb3 has joined #ruby
<il_of> I need the hex format with 0xF5
<il_of> I was taking a look if inspect sopport more methods
fomatin has quit [Quit: Computer has gone to sleep.]
devoldmx3 has joined #ruby
devoldmx3 has quit [Remote host closed the connection]
devoldmx27 has joined #ruby
kokobaby_ has joined #ruby
carlyle has joined #ruby
mansi has joined #ruby
<ellipse> "0x%02X" % chr.ord
senayar has quit [Remote host closed the connection]
marwinism has quit [Ping timeout: 245 seconds]
_irc__ has quit [Client Quit]
<sobering> If I read the file and output it directly to the terminal without encoding to UTF-8, it writes a bunch of question marks in diamonds, however when I encode it to UTF-8 and output it, instead of question marks in diamonds I get a bunch of question marks and 1/2 characters ½
Schmidt has quit [Ping timeout: 246 seconds]
gazarsgo has joined #ruby
<wuest> il_of: super dirty and hacky but should get you started.
codecop has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
AlSquire has quit [Ping timeout: 264 seconds]
<wuest> il_of: "}\365\037".force_encoding('ISO-8859-1').each_char.reduce("") { |c,e| c << e.inspect.gsub(/^"|"$/, '').gsub(/\\x(..)/, '0x\1') }
slash_nick has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
<il_of> 0_o
theRoUS has joined #ruby
senayar has joined #ruby
kokobaby has quit [Ping timeout: 260 seconds]
<ellipse> sobering: It sounds like just gibberish.
bluenemo has joined #ruby
bluenemo has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
DomKM has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
<ellipse> Are you sure the data makes sense?
boblu has quit [Ping timeout: 264 seconds]
<il_of> wuest: nice job
<il_of> I thought there was an easy way :D
<sobering> The data makes sense, it just has a bunch of special characters (e's and a's with accents, etc)
JustinAiken has joined #ruby
fsperling has quit [Quit: Verlassend]
<ellipse> Oh, force_encoding might be the right method.
<ellipse> I am on Android, only memory.
atmosx has quit [Quit: And so the story goes…]
mnzaki has joined #ruby
<sobering> Force encoding to ISO-8859-1 before converting to UTF-8? Or just force it to UTF-8?
<mnzaki> hi, I'm trying to compile this version of ruby https://github.com/github/ruby-thecodeshop/commits/github-p231 and I'm getting this strange compilation error http://pastebin.ca/2401267 any ideas?
ananthakumaran has joined #ruby
<il_of> wuest: thank you so much :D
<wuest> il_of: no prob; hope it helps you find a good solution. :)
<ellipse> What is your terminal encoding btw?
d4x has quit [Ping timeout: 240 seconds]
akells` has quit [Remote host closed the connection]
<sobering> Terminal encoding is UTF-8
<ellipse> Try just to UTF-8.
akells` has joined #ruby
<sobering> Still a no go. Damn this is frustrating
johnnyfuchs has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
<wuest> sobering: are you getting invalid char errors? That's the only reason to force encoding to ASCII and then convert to UTF-8, of which I am aware.
<ellipse> I've no idea.
<sobering> Haven't ran into an invalid char error yet
steamboy has quit [Remote host closed the connection]
steamboy has joined #ruby
<sobering> I'll whip up a quick pastebin that might help show some of my results
<ellipse> Ask wuest. He seems to know more about encoding than I do.
<Mon_Ouie> What does your_string.encoding tells you? and `#valid_encoding?'?
umttumt has quit [Remote host closed the connection]
philcrissman_ has quit [Remote host closed the connection]
<wuest> ellipse: Yeah, I've had invalid encodings wreck my days too many times in the past :)
pootler_ has quit [Ping timeout: 256 seconds]
fomatin has joined #ruby
<sobering> If I don't specify external encoding as ISO-8859-1 when I read the file, .encoding returns "UTF-8"
DonRichie has quit [Read error: Connection reset by peer]
astrostl- has joined #ruby
generalissimo has joined #ruby
<wuest> And #valid_encoding?
`MArceLL` has quit [Ping timeout: 246 seconds]
DonRichie has joined #ruby
fomatin has quit [Client Quit]
<sobering> valid_encoding retursn true
<sobering> Here is the XML I'm trying to read: http://pastebin.com/raw.php?i=yQPbzfZP
yshh has joined #ruby
<ericwood> ooooh that's not ascii
<Uranio> I'm using twitter's gem and anything give me back 407 proxy auth error... I"d not declaring any proxy... how could I correct declare it?
<ericwood> you're asking for trouble, mister
<sobering> Are those accented characters the problem?
robscomputer has joined #ruby
<ericwood> I'm guessing so
<sobering> Well, obviously they are what's giving me grief
<ericwood> forcing UTF-8 should fix that
<ericwood> it fixes everything usually
<sobering> I'll try again, didn't work before
<wuest> ericwood: it's valid ISO-8859-1, though.
<ericwood> ah yeah
<ericwood> so wait are you using nokogiri?
Davey has joined #ruby
<sobering> I'm using rexml
<wuest> I think he was just opening the file with File#open
<ericwood> sorry I have scrollback to read
astrostl- is now known as astrostl
<sobering> File#open
astrostl has quit [Client Quit]
<ericwood> what ruby version?
<Mon_Ouie> Everything is valid ISO-8859-1
<sobering> 1.9.3
astrostl has joined #ruby
<ericwood> hmmm
<sobering> Man this is confusing
<ericwood> yep, this is over my head
<sobering> Encodings are stupid, hah
Coffers has joined #ruby
<ericwood> life was so easy when all we had was ascii
<ericwood> no cool smilies, though ಠ_ಠ
<sobering> couldn't have said it better
<wuest> 1.9.3-p429 allows me to open, read, print as UTF-8 even. Can you pastebin the relevent snippet?
<Mon_Ouie> It looks like, despite the specified encoding, your data is UTF-8
<banisterfiend> ericwood: cool, you're a marionette user?
<ericwood> banisterfiend: are you in #marionette?
<ericwood> I am
<banisterfiend> ericwood: for real
<ericwood> using it a lot for work
<banisterfiend> i've been there a few months
<banisterfiend> i really like it
<ericwood> me too
<wuest> Forgive my ignorance; I assume marionette is a Puppet fork?
<banisterfiend> t's a shame people focus on bloated/over complicated thingies like angular/ember
<ericwood> I have the world's coolest IE bug right now where it caches my JS and ruins the execution path :DD:D:D:D:D
<banisterfiend> ericwood: on recent versions of IE or just ancient ones
<ericwood> wuest: it's a wrapper around backbone.js that makes life awesomer
<ericwood> banisterfiend: IE10 does it :D:D:D:D
<sobering> Here is a complete snippet of XML with the lastest attempt at parsing it: http://pastebin.com/raw.php?i=biUyGr99
<ericwood> wuest: good guess, though, that's probably what I would have guessed as well :P
<wuest> ericwood: Does it corrupt EIP?
synthetix has quit [Read error: Operation timed out]
<ericwood> wuest: idk what that is
<ericwood> maybe?
devoldmx27 has quit [Ping timeout: 246 seconds]
agjacome has joined #ruby
devoldmx has joined #ruby
atno has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
Uranio has quit [Quit: while you reading this, a kitty dies]
<Mon_Ouie> If I download your previous snippet and print it as UTF-8 it seems to work properly (but maybe that has to do with how copy-pasting/your browser/etc. dealt with encoding)
<ericwood> hmmm you can't redirect the output of pbpaste in OS X :(
<sobering> I'll try copying my snippet and reading it and see what happens
<Mon_Ouie> Well, the XML parser might choke on it anyway because of the encoding="ISO-8859-1" bit. Does printing the string work properly though?
<sobering> Even printing the string doesn't work :\
senayar_ has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
<ericwood> what have you done?!?!
<sobering> Hmm If I copy the xml from my pastebin it works fine. baaaah
<ericwood> I copy-pasted the string into ruby and it works :P
persand has quit [Quit: persand]
araujo has quit [Ping timeout: 276 seconds]
<sobering> The browser still displays it a bit weird but it shows up correctly in the term
<ericwood> just take that copied XML, paste it into a document and save it
<ellipse> Some browser magic no doubt.
AlSquire has joined #ruby
<wuest> sobering: time to inspect the xml via xxd to see where the errant byte is.
haxrbyte has joined #ruby
<sobering> This is definitely going to be an interesting challenge. I have ~800 xml files that need to be parsed and manipulated all encoded like this, haha
senayar has quit [Ping timeout: 248 seconds]
Hanmac1 has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<sobering> wuest: when i xxd the file the special character doesn't show up:
<sobering> wuest: 000060: 456e 3e50 6f69 6e74 652d c3a0 2d6c 612d En>Pointe-..-la-
coderhut has quit [Quit: Page closed]
wesside has joined #ruby
steamboy_ has joined #ruby
Hanmac2 has quit [Ping timeout: 268 seconds]
senayar has joined #ruby
jprovazn has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
tk_ has quit [Quit: ばいばい]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<Mon_Ouie> c3a0 is UTF-8 for 'à'
dreamreal has joined #ruby
steamboy has quit [Ping timeout: 248 seconds]
<sobering> This gets it displaying in the terminal correctly: f = File.open("siteList.xml", "r:iso-8859-1:utf-8")
senayar_ has quit [Ping timeout: 240 seconds]
mnzaki has quit [Ping timeout: 260 seconds]
<sobering> Now I just need to get it displaying correctly in my browser...
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
apod has joined #ruby
dmiller has joined #ruby
<sobering> for example Pointe-à-la-Croix is showing up in the browser as Pointe-Ã -la-Croix
niceguyjames has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
<ericwood> doctype crap maybe?
baroquebobcat has joined #ruby
kokobaby has joined #ruby
hogeo has joined #ruby
<Mon_Ouie> puts "à".force_encoding("iso-8859-1").encode("utf-8") reproduces that bug
<Mon_Ouie> (That is, you are interpreting that UTF-8 string as an ISO-encoded one)
pipework has quit [Remote host closed the connection]
kpshek has quit []
freeayu__ has quit [Remote host closed the connection]
poikon has joined #ruby
<sobering> Mon_Ouie: I get nil when I run that in irb
citizensinspace has joined #ruby
<wuest> So you are not properly encoding the files which you are advertising as ISO-8859-1
mansi has quit [Read error: Connection reset by peer]
braoru has quit [Remote host closed the connection]
mansi has joined #ruby
kokobaby_ has quit [Ping timeout: 264 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
<Mon_Ouie> sobering: Well, puts does return nil after printing the string. Does it not print it?
nettoweb has quit [Quit: nettoweb]
wallerdev has quit [Client Quit]
angusiguess has joined #ruby
<sobering> Mon_Ouie: it didn't print the character
denver has joined #ruby
tylersmith has joined #ruby
<Mon_Ouie> >> "à".force_encoding("iso-8859-1").encode("utf-8")
<eval-in> Mon_Ouie => "à" (https://eval.in/33893)
<Mon_Ouie> Well, that's unexpected
<sobering> Alright that is the exact error I'm running into
niceguyjames has joined #ruby
jrhe has quit [Quit: jrhe]
baroquebobcat has quit [Quit: baroquebobcat]
mfletcher has joined #ruby
<Mon_Ouie> Anyway, it does sound like those encoding="iso-8869-1" should be replaced by encoding="utf-8"
_maes_ has joined #ruby
timonv has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
<sobering> I GOT IT
<sobering> File.open("siteList.xml", "r:utf-8")
<sobering> reading it in as UTF-8 works
<sobering> Doesn't display properly in the terminal, but it displays in the browser
<sobering> Which is all that matters at this point.
<wuest> sobering: UTF-8 is default in 1.9.3 for sure; I think from 1.9.0 onward.
Weems has joined #ruby
Weems has quit [Changing host]
Weems has joined #ruby
hogeo has quit [Remote host closed the connection]
devoldmx has joined #ruby
<sobering> strange though, shouldn't it still display fine in the terminal?
gazarsgo_ has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
mmitchel_ has joined #ruby
ffio_ has joined #ruby
bionhart has joined #ruby
nimor has joined #ruby
gazarsgo has quit [Ping timeout: 276 seconds]
gazarsgo_ is now known as gazarsgo
ffio has quit [Ping timeout: 264 seconds]
<sobering> Hey you guys I really appreciate all your spent helping me
DaniG2k has quit [Quit: Leaving.]
<sobering> Gotta jet for a bit but I'll be back. This is an awesome room
nomenkun has quit [Remote host closed the connection]
d2dchat has joined #ruby
<Mon_Ouie> The default_external encoding depends just on your locales, it's not necessarily UTF-8
bionhart has quit [Remote host closed the connection]
kokobaby has quit [Read error: Connection reset by peer]
<sobering> wuest, Mon_Ouie, ellipse, ericwood, eval-in: Thanks again
<Mon_Ouie> (eval-in is a bot, you know :p)
<sobering> Didn't know
<sobering> :p
wsterling has quit [Remote host closed the connection]
<Mon_Ouie> >> puts "no problem man ;)"
<eval-in> Mon_Ouie => no problem man ;) ... (https://eval.in/33894)
<sobering> He deserves thanks anyway
<sobering> :p
mmitchell has quit [Ping timeout: 264 seconds]
generali_ has joined #ruby
* ellipse starts a round of applause for eval-in.
<sobering> *clap clap*
<sobering> I'll be back
sobering has left #ruby [#ruby]
interactionjaxsn has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
generalissimo has quit [Ping timeout: 264 seconds]
cmarques has quit [Ping timeout: 268 seconds]
Apane has joined #ruby
Squarepy has joined #ruby
yshh has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 248 seconds]
ananthakumaran1 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
alex__c2022 has joined #ruby
krainboltgreene has joined #ruby
sarkis has joined #ruby
LarsSmit has quit [Quit: Leaving.]
danslo has joined #ruby
alex__c2022 has quit [Client Quit]
geggam has joined #ruby
kokobaby has joined #ruby
jesly has joined #ruby
Uranio has joined #ruby
burlyscudd has joined #ruby
alex__c2022 has joined #ruby
[1]hw has joined #ruby
Appineer has joined #ruby
pootler_ has joined #ruby
andikr has quit [Remote host closed the connection]
falkoner has joined #ruby
burlyscudd has quit [Ping timeout: 276 seconds]
bigoldrock has joined #ruby
baroquebobcat has joined #ruby
jdunck has joined #ruby
nari has quit [Ping timeout: 248 seconds]
virtuose has quit [Quit: Leaving]
timkohrumel has joined #ruby
dr_bob has joined #ruby
pootler__ has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brtdv has joined #ruby
Norrin has quit [Excess Flood]
brtdv has quit [Client Quit]
haxrbyte has quit [Read error: Connection reset by peer]
Norrin has joined #ruby
pootler_ has quit [Ping timeout: 264 seconds]
fomatin has joined #ruby
tonini has joined #ruby
timonv has joined #ruby
carloslopes has quit [Remote host closed the connection]
dr_bob1 has joined #ruby
Appineer has quit [Remote host closed the connection]
steamboy_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
s0ber has quit [Ping timeout: 245 seconds]
kasper has quit [Read error: Operation timed out]
chrishough has joined #ruby
timonv has quit [Remote host closed the connection]
steamboy has joined #ruby
dr_bob has quit [Ping timeout: 240 seconds]
d2dchat has quit [Remote host closed the connection]
steamboy has quit [Remote host closed the connection]
cads has joined #ruby
JustinAiken has quit [Quit: Leaving.]
[1]hw has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Like it? Visit #hydrairc on EFNet]
emanon_ has quit [Remote host closed the connection]
s0ber has joined #ruby
falkoner has left #ruby [#ruby]
mikepack has joined #ruby
virtuose has joined #ruby
wallerdev has joined #ruby
wsterling has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
ivanoats has joined #ruby
ckrailo has joined #ruby
JustinAiken has joined #ruby
Norrin has quit [Excess Flood]
statarb3 has quit [Quit: Leaving]
Judge has quit [Quit: Konversation terminated!]
niceguyjames has quit [Quit: Computer has gone to sleep.]
DaniG2k has joined #ruby
sayan has joined #ruby
sayan has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
ddm has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
sventon has joined #ruby
mmitchell has joined #ruby
caleon has joined #ruby
Solnse has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
niceguyjames has joined #ruby
timonv has joined #ruby
anonymuse has joined #ruby
yshh has joined #ruby
havenwood has joined #ruby
caleon has left #ruby [#ruby]
bluenemo has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
filipe has quit [Read error: No route to host]
filipe has joined #ruby
virtuose has quit [Quit: Leaving]
slash_nick has quit [Ping timeout: 264 seconds]
niceguyjames has quit [Client Quit]
jesly1 has joined #ruby
apod has quit [Quit: apod]
asteve has joined #ruby
jesly has quit [Read error: Connection reset by peer]
jesly2 has joined #ruby
dpritchett has quit [Quit: This computer has gone to sleep]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
acrussell has left #ruby [#ruby]
carlyle has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
azerton has quit [Quit: azerton]
mikecmpbll has joined #ruby
djbkd has joined #ruby
kokobaby has quit [Ping timeout: 264 seconds]
row has joined #ruby
jesly1 has quit [Ping timeout: 256 seconds]
azerton has joined #ruby
_br_ has joined #ruby
Spooner has quit [Remote host closed the connection]
Norrin has joined #ruby
devoldmx3 has joined #ruby
kenmaz has left #ruby ["Leaving..."]
niceguyjames has joined #ruby
krainboltgreene has quit [Ping timeout: 246 seconds]
moshee has quit [Ping timeout: 252 seconds]
jcromartie has joined #ruby
atyz has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 264 seconds]
Neener54 has joined #ruby
sayan has joined #ruby
carloslopes has joined #ruby
moshee has joined #ruby
burlyscudd has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bionhart has joined #ruby
dross has quit [Ping timeout: 245 seconds]
azerton has quit [Client Quit]
obs has quit [Quit: Konversation terminated!]
kokobaby has joined #ruby
tylersmith has joined #ruby
burlyscudd has quit [Client Quit]
devoldmx has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
dross has joined #ruby
niceguyjames has quit [Client Quit]
kil0byte_ has joined #ruby
DaniG2k has quit [Quit: Leaving.]
devoldmx3 has quit [Ping timeout: 240 seconds]
AlSquire has quit [Ping timeout: 240 seconds]
dankest has joined #ruby
DaniG2k has joined #ruby
spider-mario has joined #ruby
ngoldman has joined #ruby
mmitchel_ has joined #ruby
bionhart has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
burlyscudd has joined #ruby
niceguyjames has joined #ruby
timonv_ has quit [Remote host closed the connection]
<Uranio> there is any SIMPLE gem (or way) for make a twitt?
kil0byte has quit [Ping timeout: 256 seconds]
nbe has quit [Ping timeout: 245 seconds]
<ericwood> the twitter gem
carloslopes has quit [Ping timeout: 256 seconds]
<ericwood> but you still have to grapple with OAuth for any and all twitter-related gems
<ericwood> so yay :D:D:D:D
tylersmith has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 248 seconds]
filipe has quit [Remote host closed the connection]
_br_ has quit [Ping timeout: 264 seconds]
Neomex has joined #ruby
alup has quit [Quit: Leaving]
Voodoofish430 has joined #ruby
Neener54 has quit [Quit: Textual IRC Client: www.textualapp.com]
timkohrumel has quit [Remote host closed the connection]
_br_ has joined #ruby
xardas has joined #ruby
shadoi has joined #ruby
poseid has quit [Quit: Leaving.]
pothibo has quit [Quit: pothibo]
moshee has quit [Quit: ZNC - http://znc.in]
Neomex has quit [Client Quit]
mmitchel_ has quit [Remote host closed the connection]
jkline has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
mmitchell has joined #ruby
moshee has joined #ruby
girija has quit [Ping timeout: 260 seconds]
matthewrobbins has joined #ruby
AlSquire has joined #ruby
blaxter has joined #ruby
sobering has joined #ruby
<sobering> Is this irc room logged anywhere?
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tkuchiki has joined #ruby
brtdv has joined #ruby
<JustinAiken> irclogger.com
<Xeago> by freenode's rules it should be mentioned if so
<Xeago> if it isn't mentioned it shouldn't be logged
<JustinAiken> ooh, actually irclogger skips #ruby, my bad
<sobering> No worries. I actually didn't know about that rule, thanks for informing me Xeago
cmarques has joined #ruby
redgirl_ has joined #ruby
greenarrow has joined #ruby
redgirl has quit [Read error: Connection reset by peer]
nbe has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
camilasan has quit [Remote host closed the connection]
matthewrobbins has quit [Ping timeout: 240 seconds]
angusiguess has joined #ruby
freerobby has quit [Quit: Leaving.]
io_syl has joined #ruby
camilasan has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
Neener54 has joined #ruby
camilasan has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
slainer68 has quit [Remote host closed the connection]
hron84 has left #ruby [#ruby]
slainer68 has joined #ruby
nettoweb has joined #ruby
timonv has joined #ruby
kokobaby has quit [Ping timeout: 248 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
Hare has joined #ruby
billiam has joined #ruby
dhruvasagar has joined #ruby
noname001 has quit [Remote host closed the connection]
DaniG2k has quit [Quit: Leaving.]
camilasan has joined #ruby
ngoldman_ has joined #ruby
jkline has quit [Quit: jkline]
camilasan has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 240 seconds]
<Hare> Need some advice on this code http://pastebin.com/PtJNevkJ
jonasac has quit [Quit: Coyote finally caught me]
Spooner has joined #ruby
vlad_starkov has joined #ruby
ngoldman has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gasbakid has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
gazarsgo has quit [Quit: gazarsgo]
shawn_sher has joined #ruby
atno has joined #ruby
shawn_sher has left #ruby [#ruby]
<_br_> Hare: is that nokogiri or what are you using?
gazarsgo has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has quit [Remote host closed the connection]
devoldmx has joined #ruby
<Hare> REXML class
Davey has quit [Quit: Computer has gone to sleep.]
<_br_> Hare: is there any reason why you don't use the each_with_index block?
<_br_> Hare: REXML? Why? Whats wrong with nokogiri? Should be faster too..
<_br_> Hare: http://www.rubyinside.com/ruby-xml-performance-benchmarks-1641.html You probably picked the slowest kid in town.
Criztian has quit [Remote host closed the connection]
<Hare> lol
ghr has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
<Hare> Well, just started using ruby recently. I will take a look at nokogiri
popl has joined #ruby
<_br_> That'll be 49,95,- :)
<_br_> happy hacking, nokogiri is alot of fun.
kil0byte_ has quit [Remote host closed the connection]
Davey has joined #ruby
<_br_> (compared to REXML)
harrymoreno has joined #ruby
northelks has quit [Read error: Connection reset by peer]
dpritchett has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<Hare> Ha I didnt realize an xml parser could be described as fun
northelks has joined #ruby
terrellt has joined #ruby
<_br_> Hey, this is #ruby. We turn even the most boring stuff into fun.
jonathanwallace has quit [Ping timeout: 268 seconds]
devoldmx3 has joined #ruby
<_br_> Hare: did you explore the poignant guide already?
werdnativ has joined #ruby
blitz has joined #ruby
carloslopes has joined #ruby
<Hare> Nope, hadnt even heard of it.. Good intro to Ruby I take it?
<popl> It's fun to compute.
ngoldman_ has quit [Ping timeout: 256 seconds]
dr_bob1 has left #ruby [#ruby]
Cyrus has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
_Renegade has quit [Quit: _Renegade]
camilasan has joined #ruby
<Hare> I did read the ruby shoes guide. Ruby and cartoons seem to go hand in hand
<popl> What's the URL for the poignant guide?
jkline has joined #ruby
ephemerian has quit [Quit: Leaving.]
<popl> thanks splittingred
<_br_> ah 3 seconds too late :)
harrymoreno has quit [Ping timeout: 256 seconds]
ngoldman has joined #ruby
<popl> thank you _br_
brennanMKE has joined #ruby
<_br_> :)
pi3r has quit [Quit: Leaving]
<ryan_turner> In rails, I have a model that I'm trying to make a method define some values that would previously be nil. I've got the symbols listed under attr_accessible. What's the right way to update those? :name = blah? self.name = blah? @name = blah? I keep getting undefined method errors when I try any of those.
<pontiki> ryan_turner: :name is right out
<ryan_turner> syntax error, unexpected '=', expecting keyword_end
pitzips has joined #ruby
<ryan_turner> is what I get when I do that
camilasan has quit [Remote host closed the connection]
<pontiki> right out == WRONG
<pontiki> sorry
<ryan_turner> Oh
<ryan_turner> ok
<_br_> ryan_turner: Might have more luck in #rubyonrails with that
<pontiki> @name=value or self.name=value should both work, don't do name=value as that may wind up creating a local variable.
mgorbach has joined #ruby
<mgorbach> Can anyone help me out with Ruby's optparse?
workmad3 has joined #ruby
<pontiki> now as to the error you're getting, i'd say look up from where it's hitting to find a missing end
<mgorbach> I'm having trouble getting it to eat up an optional string argument.
<_br_> mgorbach: Pastie?
<_br_> mgorbach: You did hear of the thor gem btw. ?
<mgorbach> Nope. But I'm writing a build script so unfortunatly I'm stuck using no dependencies and OS X built in Ruby.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<mgorbach> So I want the team_identifier to be an optional string.
freerobby has joined #ruby
<mgorbach> But instead, when I add --team-identifier to the argument list, the actual string after that ends up in the remaining argv.
<mgorbach> i.e. parse! doesn't eat it.
nomenkun has joined #ruby
<mgorbach> If I set the argument to required instead, parse! does eat it.
banisterfiend has joined #ruby
x1337807x has joined #ruby
<_br_> Hm, you are using it in a funny way. Maybe you could try to use it according to the manual. http://ruby-doc.org/stdlib-2.0/libdoc/optparse/rdoc/OptionParser.html
bradleyprice has joined #ruby
Hanmac has joined #ruby
ngoldman has quit [Ping timeout: 256 seconds]
saarinen has joined #ruby
dankest has quit [Quit: Linkinus - http://linkinus.com]
harrymoreno has joined #ruby
<_br_> Have never seen the :optional you are passing before. Is that a specific version of the lib?
maycon has quit [Read error: Connection reset by peer]
zigomir has quit [Quit: zigomir]
<mgorbach> Nope, just whatever is default
<mgorbach> So how do I get an optional argument without passing :optional?
De`off is now known as Deele
<_br_> I think you can ignore that. Also, "--blah FOO" is optional FOO while "--blah [FOO]" is mandatory
brennanM_ has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
timkohrumel has joined #ruby
marr has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
<mgorbach> What about for a boolean switch?
<mgorbach> i.e. I want --verbose to be optional
<_br_> ah, alas, sorry the other way around.
ericmath1son has joined #ruby
<_br_> what do you mean by optional? If it isn't used in the CLI it is ignored?
<mgorbach> Yeah I mean that the app doesn't error while parsing if that argument isn't specified.
<mgorbach> Whereas for reuired arguments the app will fail without them.
timmow has quit [Remote host closed the connection]
<_br_> a normal definition of "--verbose" without anything makes it optional by default.
<pontiki> i think you may be using the term argument incorrectly. option parse parses options, aka, switches
freerobby has quit [Ping timeout: 240 seconds]
<pontiki> so: prog [options] arg, arg, arg
ToApolytoXaos has quit [Quit: Leaving]
senayar has quit [Remote host closed the connection]
<pontiki> optparse deals with the part in [options]
<mgorbach> Right, that makes sense.
<mgorbach> I'm parsing the last argument to my app manually. It should be the one left over after parse! finished.
stkowski has joined #ruby
<mgorbach> But I can't get parse! to the the specified team_identifier
<pontiki> looking at switches, if you want --team-identifier to have an option value, _br_ has it: "-t", "--team-identifier [TEAM]", "blah...."
<_br_> mgorbach: here is a simple example, how possibly to use it. https://github.com/rennhak/Sedo-Inflecto/blob/master/src/controller.rb
apeiros has joined #ruby
<mgorbach> opts.on("-t", "--team-identifier IDENTIFIER", "Match identity by team identifier") do |team_identifier|
<mgorbach> options[:team_identifier] = team_identifier
<mgorbach> end
d4x has joined #ruby
<mgorbach> That should be required, right?
adambeynon has joined #ruby
jonathanwallace has joined #ruby
sayan has quit [Ping timeout: 268 seconds]
<_br_> In that case the IDENTIFIER should be required according to the manual. If you actually use the CLI switch.
<_br_> That means if you execture ./myprogram -t then it will give an error "need parameter"
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<_br_> "--team-identifier [TEAM]" would not bark at you with ./myprogram -t
tkuchiki has quit [Remote host closed the connection]
sobering has left #ruby [#ruby]
Appineer has joined #ruby
d4x has quit [Changing host]
d4x has joined #ruby
d4x has left #ruby [#ruby]
Cyrus has quit [Quit: Cyrus.close()]
ngoldman has joined #ruby
persand has joined #ruby
jesly2 has quit [Ping timeout: 264 seconds]
Guga_ has joined #ruby
emmanuelux has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
kokobaby has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
Apane has quit [Ping timeout: 240 seconds]
jpsirois has joined #ruby
pitzips has quit [Ping timeout: 268 seconds]
ravster has joined #ruby
jrhe has joined #ruby
cafk_ has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 240 seconds]
carlyle has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
MrZYX is now known as MrZYX|off
<Uranio> anybode used twitter gem behind a proxy?
<_br_> d(^.^)p \/
brtdv has joined #ruby
jesly has joined #ruby
yshh has quit [Remote host closed the connection]
johnrlive has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
kindjal has joined #ruby
azerton has joined #ruby
<_br_> Uranio: Why, any problems?
kenmaz has joined #ruby
JohnBat26 has joined #ruby
jkline has quit [Quit: jkline]
paul_k has joined #ruby
MrZYX|off is now known as MrZYX
rupee has joined #ruby
dagobah has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 276 seconds]
jdunck has joined #ruby
bigoldrock has quit [Quit: Leaving.]
Neomex has joined #ruby
arietis has joined #ruby
banjara has joined #ruby
pskosinski has quit [Remote host closed the connection]
kenmaz has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
tylersmith has joined #ruby
tomsthumb has joined #ruby
Hare has quit [Quit: Page closed]
binaryplease has quit [Read error: Operation timed out]
rezzack has joined #ruby
Zai00 has quit [Quit: Zai00]
`MArceLL` has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
geggam has quit [Ping timeout: 264 seconds]
twoism has joined #ruby
nikeita has joined #ruby
freerobby has joined #ruby
redgirl_ has quit [Read error: Connection reset by peer]
redgirl_ has joined #ruby
apod has joined #ruby
mrsolo has joined #ruby
baordog has joined #ruby
kokobaby has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
jasonkuhrt has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
nikeita has quit [Client Quit]
wsterling has quit [Remote host closed the connection]
nikeita has joined #ruby
kokobaby has joined #ruby
mahmoudimus has joined #ruby
geggam has joined #ruby
wsterling has joined #ruby
poincare1011 has joined #ruby
jacobw has joined #ruby
DanKnox_away is now known as DanKnox
poincare101 has quit [Ping timeout: 268 seconds]
atyz has joined #ruby
jesly has quit [Ping timeout: 276 seconds]
athst has joined #ruby
apod has quit [Quit: apod]
mgorbach has quit [Quit: Leaving...]
sayan has quit [Ping timeout: 256 seconds]
mocfive has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
franzliedke has joined #ruby
flak has joined #ruby
jonathanwallace has joined #ruby
ellipse has quit [Quit: Bye]
flak is now known as Guest81003
jonahR has joined #ruby
browndawg has left #ruby [#ruby]
harrymoreno_ has joined #ruby
chrishough has joined #ruby
<rfizzle> How to do transactions with Datamapper?
harrymoreno has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 248 seconds]
ramblex has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
<_br_> rfizzle: Transactions? Huh? #save ?
Guest81003 is now known as rippa
danslo has quit [Quit: danslo]
<rfizzle> I am reading a file and storing each line in the database. It's taking forever. SQLite3. I think I have to do a transaction block. But I can't seem to find an example
<rfizzle> 80,000 lines
harrymoreno_ has quit [Ping timeout: 256 seconds]
jesly has joined #ruby
jalcine has joined #ruby
tvw has quit [Ping timeout: 268 seconds]
rdark has quit [Quit: leaving]
tommyvyo has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
harrymoreno has joined #ruby
ssvo has joined #ruby
freerobby has quit [Quit: Leaving.]
Coffers has joined #ruby
<_br_> rfizzle: Create all objects in-memory with #new, stuff into array, and then finally iterate over them with #save! (note the bang).
Al__ has quit [Quit: Al__]
ngoldman has quit [Remote host closed the connection]
Al__ has joined #ruby
zigomir has joined #ruby
tomsthumb has left #ruby [#ruby]
Coffers has quit [Client Quit]
kadoo has joined #ruby
zigomir has quit [Client Quit]
emmanuelux has quit [Quit: emmanuelux]
sventon has quit [Remote host closed the connection]
<Uranio> _br_ yeah, nothing is working
ngoldman has joined #ruby
jesly has quit [Ping timeout: 252 seconds]
<_br_> Uranio: What proxy are you using? Is the proxy working correctly?
dhruvasagar has quit [Ping timeout: 256 seconds]
<rfizzle> This was what it is - http://pastebin.com/nHLCySuh So you're saying replace create with new, add to array, then save?
sambao21 has joined #ruby
<Uranio> _br_: yeah, proxy's work fine with everything
byprdct has joined #ruby
<Uranio> but with the twitter gem, it sayd 407
mgorbach has joined #ruby
dhruvasagar has joined #ruby
<Uranio> gem do not send any auth data
freerobby has joined #ruby
<Uranio> I'm tried EVERYTHING
interactionjaxsn has quit [Remote host closed the connection]
<popl> Uranio: Have you tried standing on your head and clucking like a chicken?
Al__ has quit [Quit: Al__]
<Uranio> Twitter.connection_options[:proxy]= (a lot of diferent things here)
scottdware has joined #ruby
interactionjaxsn has joined #ruby
<Uranio> popl: hummm... nop...
<Uranio> shall that work?
<popl> I don't know, I've never tried it.
<_br_> rfizzle: I would do it that way.
<_br_> (if each line needs to be a row)
denver has quit [Remote host closed the connection]
scottdware has left #ruby [#ruby]
sayan has joined #ruby
<_br_> Uranio: What ports are you proxying?
spinagon has joined #ruby
swordsmanz has quit [Ping timeout: 252 seconds]
<Uranio> 3128 Sr.
<Uranio> with the enviroment variable it should work but return 407, but.. just now
<Uranio> diabled it ENV['http_proxy']=nil
<Uranio> use proxychains and it work
<Uranio> but that very VERY dirty solution
dhruvasagar has quit [Ping timeout: 240 seconds]
jibi has joined #ruby
<Uranio> _br_: please, try it, in debug mode and pastebin it...
<Uranio> sorry... that was for the troll
interactionjaxsn has quit [Ping timeout: 256 seconds]
<Uranio> wrong nick
alex__c2022 has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
<Uranio> _br_: it is working with proxychains now.. I asked to sferik (the developer), thanks anyway for you help
<_br_> Uranio: You didn't properly forward the ports via the proxy. Anyway, good that it works.
rippa has quit [Ping timeout: 248 seconds]
kokobaby has quit [Ping timeout: 264 seconds]
<asteve> what is the preferred postgresql gem?
kokobaby has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<Uranio> _br_: beleive me... I even use Net::HTTP with the same data doing this: Net::HTTP=Net::HTTP::Proxy('192.168.1.1',3128,',myuser','mypass')
<Uranio> and it work with everey gem that use Net:HTTP
replay has joined #ruby
jasonkuhrt has joined #ruby
GaryOak_ has joined #ruby
scottdware has joined #ruby
<_br_> Uranio: Interesting, well, hope you have no further issues with using proxychains ..
fomatin has quit [Quit: Computer has gone to sleep.]
jastix has quit [Quit: Leaving]
kirun has joined #ruby
franzliedke has quit [Remote host closed the connection]
scottdware has quit [Remote host closed the connection]
sideshowcoder has quit [Read error: Operation timed out]
F1skr has quit [Ping timeout: 260 seconds]
<popl> Uranio: Please don't try to /msg people without asking them. Some people might not like it.
Hanmac has joined #ruby
scottdware has joined #ruby
marr has joined #ruby
_serial_ has joined #ruby
<Uranio> popl: do not troll peoples, Some people might not like it
<Uranio> not my case
Uranio has quit [Quit: while you reading this, a kitty dies]
<_br_> Wth. Very unfriendly person.
alvaro_o has joined #ruby
azerton has quit [Quit: azerton]
Neomex has quit [Quit: Neomex]
<popl> Luckily I have my +g
ngoldman has quit [Remote host closed the connection]
<pontiki> that's what happens when you come in knowing the answers to your problem will all be wrong
scottdware has quit [Remote host closed the connection]
brtdv has quit [Quit: brtdv]
<popl> _br_: Last week someone trolled me by trying to login to my account via nickserv.
icole has joined #ruby
<popl> They ended up trying it over 600 times (I forgot the exact number).
_serial_ has quit [Quit: Ex-Chat]
zeade has joined #ruby
<_br_> popl: Excellent, I hate such people :( Pretty uncool.
tommyvyo has joined #ruby
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
jesly has joined #ruby
dhruvasagar has joined #ruby
sideshowcoder has joined #ruby
DomKM has quit [Quit: Leaving.]
jprovazn has joined #ruby
fermion has joined #ruby
fomatin has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
_serial_ has joined #ruby
geggam has quit [Remote host closed the connection]
_serial_ has quit [Client Quit]
geggam has joined #ruby
SeySayux has quit [Read error: Connection reset by peer]
<popl> Are there any problem spaces where ruby may not be the best choice of implementation language?
byprdct has quit [Ping timeout: 248 seconds]
ngoldman has joined #ruby
<popl> If so which?
F1skr has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
<canton7> things that have strict resource limits
<popl> canton7: What do you mean?
<GaryOak_> basically high performance computing?
Villadelfia_ has quit [Ping timeout: 252 seconds]
<canton7> ruby's an interpreted scripting language. if you need to do something which is CPU-intensive, it's not going to be the ideal choice
<canton7> (the same goes for any scripting language)
<Hanmac> canton7: not true, you can run ruby inside an EFI shell ... show me that you can do that with java too ;P
<r0bgleeson> canton7: Ruby is as interpeted as the JVM
<GaryOak_> something like graphics programming
<r0bgleeson> it's no longer just a AST walker post-1.8 and in any of the alternative implementations
vlad_starkov has quit [Remote host closed the connection]
<popl> I thought ruby was a programming language.
<popl> Atleast that's how it is defined where I have read about it.
tatsuya_o has joined #ruby
<GaryOak_> popl: What's the difference between scripting and programming?
<banisterfiend> popl: well if it's not a programming language, what could it be? :)
<popl> Anyways I am not trying to troll and I realize this sort of talk can start flamewars among zealots.
<Hanmac> popl & GaryOak_ : with the right bindings (C(++) Extensions) you can make 3d graphic stuff with ruby too and get similar framerate than with pure C++
athst has quit [Quit: athst]
<popl> So thank you for your answers.
SeySayux has joined #ruby
<GaryOak_> Hanmac: sounds cool
<popl> We were just discussing what Perl was not good for in #perl and it made me curious about Ruby.
k3rn3lito has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
weeb1e has quit [*.net *.split]
asuka_ has quit [*.net *.split]
jso has quit [*.net *.split]
sgkim126l has quit [*.net *.split]
ping-pong has quit [*.net *.split]
epta has quit [*.net *.split]
dreamreal has quit [*.net *.split]
TJNII has quit [*.net *.split]
asuka has joined #ruby
dreamreal has joined #ruby
epta has joined #ruby
sgkim126l has joined #ruby
<banisterfiend> popl: well i probably wouldn't want to write an OS in ruby :)
TJNII has joined #ruby
ping-pong has joined #ruby
<banisterfiend> or something that needs extremely good performance
robbyoconnor has joined #ruby
<popl> Well I wouldn't do that in Perl either.
ngoldman has quit [Remote host closed the connection]
mvangala has quit [Write error: Connection reset by peer]
dmyers has quit [Write error: Connection reset by peer]
nezumi has quit [Ping timeout: 258 seconds]
dmyers_ has joined #ruby
k3rn3lito has joined #ruby
weems2 has joined #ruby
jso has joined #ruby
mvangala has joined #ruby
Villadelfia has joined #ruby
viszu has joined #ruby
<popl> like someone just mentioned in #perl, if your task is CPU-bound then you probably don't want Perl in the first place.
jonathanwallace has quit [Write error: Connection reset by peer]
<fryguy> ruby isn't great for systems engineering
weeb1e has joined #ruby
<GaryOak_> that could be said for most languages
<popl> fryguy: what do you mean by systems engineering?
xardas has quit [Changing host]
xardas has joined #ruby
danslo has joined #ruby
<fryguy> popl: writing code to build systems/infrastructure as opposed to writing code for software/applications
<popl> ok
<Hanmac> fryguy: OpenSuse will use ruby for there YAST replacement
<fryguy> Hanmac: ok
yshh has joined #ruby
Weems has quit [Ping timeout: 276 seconds]
DomKM has joined #ruby
interactionjaxsn has joined #ruby
defaultro has joined #ruby
<defaultro> hi folks. Maybe you can tell me how asw_endpoint gets used in the code @awsEndpoint: "<%= asw_endpoint %>" I searched for that string in the entire application but I only found it in one file
carloslopes has quit [Remote host closed the connection]
<fryguy> defaultro: need a lot more detail than that
BizarreCake has quit [Read error: Operation timed out]
mikepack has quit [Remote host closed the connection]
troessner has quit [Quit: Leaving]
weems2 has quit [Ping timeout: 240 seconds]
yshh has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Quit: Leaving.]
kokobaby has quit [Ping timeout: 241 seconds]
ngoldman has joined #ruby
carloslopes has joined #ruby
zmike123 has joined #ruby
poikon has quit [Remote host closed the connection]
<defaultro> fryguy: i've been trying to search the whole fs. The one thing i found is that awsEndpoint gets called in another class file. url: -> Asm.Config.aswEndpoint + "/asw/definition/ .................
mikepack has joined #ruby
_Renegade has joined #ruby
<defaultro> but the asw_endpoint is still a mystery to me. I am not sure if it's pulling from somewhere or if it's being populated
<fryguy> defaultro: check out pry and binding.pry and investigate where it finds the calling code at
stkowski has quit [Ping timeout: 268 seconds]
alex__c2022 has joined #ruby
<defaultro> what are those files?
<fryguy> defaultro: what are what files
<defaultro> binding.pry file
<fryguy> defaultro: pry is a debugging gem
<defaultro> oh
<defaultro> :D
<defaultro> cool, let me do some research on how to install it. New to ruby here
ananthakumaran1 has quit [Quit: Leaving.]
gildo has quit [Quit: Leaving]
danslo has quit [Quit: danslo]
mmlac-bv has joined #ruby
blaxter has quit [Ping timeout: 256 seconds]
DanKnox is now known as DanKnox_away
<defaultro> looks like i got an error installing it. I'll put it in pastebin
mmlac-bv has quit [Remote host closed the connection]
F1skr has quit [Ping timeout: 256 seconds]
DanKnox_away is now known as DanKnox
kokobaby has joined #ruby
Guga_ has quit [Remote host closed the connection]
Guga_ has joined #ruby
<defaultro> fryguy: check this out please, http://pastebin.com/dE3qsDL8
<popl> defaultro: there's a better pastebin URL in the topic
tatsuya_o has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
<fryguy> defaultro: install with --no-rdoc for now, you have a busted rdoc in your main platform installation
richiebkr has joined #ruby
<fryguy> defaultro: or just ignore it because it got installed anyway
<defaultro> oh ok
statarb3 has joined #ruby
statarb3 is now known as dimpossso
audy has joined #ruby
<audy> is there a maximum number of iterations you can have in an Enumerable?
<popl> what a great question
fomatin has quit [Quit: Computer has gone to sleep.]
<audy> I'm iterating over a file with more than a million lines but for some reason it ends at exactly 1-million
<audy> but wc -l file is 500 million
ngoldman has quit [Remote host closed the connection]
fomatin has joined #ruby
<defaultro> reading pry doc on the web to figure out how to use it
<JustinAiken> big_ass_file.each_million do… :p
ferr has joined #ruby
khushildep has quit [Read error: Operation timed out]
<audy> JustinAiken what happens when I get to 1 trillion?
jerius has joined #ruby
<audy> big_ass_file.each_million { |x| x.each_million { |x| … } }
LarsSmit has joined #ruby
danslo has joined #ruby
jerius_ has quit [Ping timeout: 240 seconds]
kokobaby_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
sayan has quit [Ping timeout: 256 seconds]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
kasper has joined #ruby
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
kokobaby has quit [Ping timeout: 256 seconds]
richiebkr has quit [Quit: richiebkr]
mansi has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
devoldmx has joined #ruby
mansi has joined #ruby
emptynine has joined #ruby
<audy> _maes_ how is that different that File.open('reallyreallybig').each ?
CaptainKnots has quit [Quit: bazinga!]
F1skr has joined #ruby
tonini has joined #ruby
Weems has joined #ruby
Weems has quit [Changing host]
Weems has joined #ruby
jkline has joined #ruby
devoldmx3 has quit [Ping timeout: 252 seconds]
devoldmx3 has joined #ruby
<apeiros> audy: File.open('reallyreallybig').each leaves a dangling file descriptor - might be closed whenever
DomKM1 has joined #ruby
DomKM has quit [Ping timeout: 264 seconds]
mansi_ has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
mansi has quit [Ping timeout: 264 seconds]
<asteve> how can you use parameterized queries for the pg gem?
ferr has quit [Ping timeout: 246 seconds]
F1skr has quit [Ping timeout: 276 seconds]
<audy> apeiros is the GC closing it?
Shirakawasuna has joined #ruby
<asteve> does this look incorrect? exec('CREATE TABLE $1_$2 ($3)', [table_name, today, schema_str])
<apeiros> a finalizer, which afaik is triggered by gc
slainer68 has joined #ruby
ivanoats has quit [Remote host closed the connection]
emmanuelux has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
kil0byte has joined #ruby
synthetix has joined #ruby
<audy> apeiros thanks. I'll try that
<apeiros> try what? o0
<audy> oh wait I mean thanks _maes_ I'll try that
<audy> thanks apeiros for explaining it
Mon_Ouie has joined #ruby
<_maes_> ))
<audy> apeiros would that still happen if I did @handle = File.open(); @handle.each ??
<apeiros> audy: of course. you don't close @handle.
nikeita has quit [Quit: bye bye]
jpsirois has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> so you leave it to rubys finalizers, which have no determined runtime (other than "after object stopped to be referenced")
<audy> but that doesn't happen until after the .each block
<apeiros> that won't even happen for much later
<_maes_> now I am puzzled
nikeita has joined #ruby
<apeiros> instance variables exist as long as the associated object exists
<apeiros> "after .each" != "I stop referencing the object"
<apeiros> also, "I don't use it anymore" != "I stop referencing the object"
<audy> Right but for some reason it stops at 1 million lines
<audy> even though there are more to go
<_maes_> but "@handle.each" == "I am using and referencing object", right?
hadees has quit [Quit: hadees]
<apeiros> @handle alone == "I'm referencing the object"
<apeiros> but it's a chain. if you stop referencing the object which contains @handle, you stop referencing @handle too.
generali_ has quit [Remote host closed the connection]
<mgorbach> Would any Ruby experts have a moment to look over my script? It's working, but I'm a Ruby-noob trying to better understand idiomatic Ruby.
<epitron> defaultro: there's a railsconf talk about pry
<canton7> mgorbach, pastie it, and see who chips in :)
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
devoldmx has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<defaultro> awesome epitron
<defaultro> thanks a lot!!!
nikeita has quit [Quit: bye bye]
devoldmx3 has quit [Ping timeout: 246 seconds]
nikeita has joined #ruby
brianherman has joined #ruby
benlieb has joined #ruby
nikeita has quit [Client Quit]
JumpMast3r has joined #ruby
nomenkun has quit [Remote host closed the connection]
kokobaby has joined #ruby
athst has joined #ruby
snearch has quit [Quit: Verlassend]
nikeita has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
kokobaby_ has quit [Ping timeout: 256 seconds]
DarthGandalf has quit [Ping timeout: 256 seconds]
<rfizzle> Anyone know anything about Datamapper and inputing tens of thousands of items in a table at a time?
<rfizzle> To SQLite3
<_br_> rfizzle: Is there any particular issue why you don't ask in #datamapper ?
<_br_> rfizzle: whats wrong with the solution I gave you?
DarthGandalf has joined #ruby
<rfizzle> It doesn't work. Still limits the input and hangs
mgorbach has quit [Read error: Connection reset by peer]
generalissimo has joined #ruby
<_br_> rfizzle: Are you reaching OOM ?
stkowski has joined #ruby
<rfizzle> No.
pipework has joined #ruby
<_br_> rfizzle: Whats the error?
kokobaby has quit [Ping timeout: 246 seconds]
mgorbach has joined #ruby
richiebkr has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
<mgorbach> I'm an objective-c programmer (and these are build scripts for an objc app), but I'd appreciate it if anyone can look and tell me what I'm doing stupidly
burlyscudd has joined #ruby
<rfizzle> No error, just hangs. Like the database grows at like 17kb a second.
Squarepy has quit [Quit: Leaving]
<_br_> rfizzle: Why don't you run it with the debugger to see whats going on. Might give you a hint whats happening here.
kokobaby has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Read error: Operation timed out]
mgorbach has quit [Client Quit]
<Mon_Ouie> mgorbach: It should be require 'logger' — require 'Logger' only works on your system because your file system is case-insensitive
banjara has quit [Quit: Leaving.]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara has joined #ruby
burlyscudd has quit [Read error: Operation timed out]
burlyscudd has joined #ruby
obs_ has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
jds has joined #ruby
<Mon_Ouie> def self.create_identity(long_id, full_name_string, logger) # This looks like it should just be your initialize method
eldariof has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
pootler__ has quit [Ping timeout: 252 seconds]
generali_ has joined #ruby
ivanoats has joined #ruby
<Mon_Ouie> Also using backticks and just interpolating arguments can cause problems with special character. I would recommend using another way to call external commands (e.g. system(…) when you don't need the output of the process) so you can pass multiple arguments to that method
brennanM_ has quit [Read error: Connection reset by peer]
<Mon_Ouie> Oh
<Mon_Ouie> I should check if people are still here when talking to them :p
generalissimo has quit [Ping timeout: 268 seconds]
pentameter has joined #ruby
Criztian has joined #ruby
theRoUS has quit [Read error: Operation timed out]
pskosinski has joined #ruby
Apane has joined #ruby
workmad3 has joined #ruby
chrishough has quit [Quit: chrishough]
<apeiros> ok
<apeiros> whoops
<apeiros> wrong window
saarinen has quit [Quit: saarinen]
rdFLeece has joined #ruby
brianherman has quit [Quit: Leaving]
athst has quit [Quit: athst]
pootler_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
kokobaby has quit [Ping timeout: 246 seconds]
richiebkr has quit [Quit: richiebkr]
jkline has quit [Quit: jkline]
robbyoconnor has quit [Read error: Connection reset by peer]
kokobaby has joined #ruby
ivanoats has quit [Remote host closed the connection]
adambeynon has joined #ruby
ivanoats has joined #ruby
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
syamajala has joined #ruby
arietis has joined #ruby
kadoo has joined #ruby
krainboltgreene has joined #ruby
markalanevans has quit [Ping timeout: 268 seconds]
Jackneill has quit [Ping timeout: 252 seconds]
kofno has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
thams has quit [Quit: thams]
danslo has quit [Quit: danslo]
LarsSmit has quit [Quit: Leaving.]
heftig has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
ngoldman has joined #ruby
generali_ has quit [Remote host closed the connection]
mgorbach has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Neomex has joined #ruby
mocfive has quit [Remote host closed the connection]
ryannielson has quit [Quit: ryannielson]
jds has quit [Remote host closed the connection]
athst has joined #ruby
tommyvyo has quit [Quit:]
Neomex has quit [Client Quit]
mocfive has joined #ruby
redgirl_ has quit [Quit: This computer has gone to sleep]
carloslopes has quit [Remote host closed the connection]
rubik has joined #ruby
<rubik> hello
chrishough has joined #ruby
ChristianS has quit [Excess Flood]
carlyle has joined #ruby
ChristianS has joined #ruby
<rubik> Anyone use gem Fuubar?
rubik has quit [Client Quit]
x1337807x has joined #ruby
mgorbach has quit [Quit: Bye!]
kenneth has joined #ruby
timonv has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
axl_ has quit [Quit: axl_]
hadees has joined #ruby
Xeago has joined #ruby
freerobby has quit [Quit: Leaving.]
jdunck has joined #ruby
timonv has quit [Remote host closed the connection]
Appineer has quit [Remote host closed the connection]
<fryguy> well this is interesting, trying to find things taht would cause ruby 2.0 to be universally slower across teh board than ruby 1.9.3 on these centos machines
postmodern has joined #ruby
khushildep has joined #ruby
harrymoreno_ has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
fomatin has joined #ruby
tatsuya_o has joined #ruby
<banisterfiend> fryguy: what did u find?
bean has joined #ruby
fmcgeough has joined #ruby
k610 has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
<Hanmac> maybe its the centos that makes the ruby slow? isnt centos written with stone plates?
Guest87428 is now known as nitrodex
jprovazn has quit [Quit: Odcházím]
khushildep has quit [Client Quit]
freerobby has joined #ruby
<fryguy> Hanmac: pretty much, but on the same platform with 1.9.3 installed the benchmarks we are using run noticably faster, and things like jmeter are showing higher throughput
spinagon has quit [Ping timeout: 248 seconds]
<fryguy> so sure, would love to blame/change the platform, but I'm not a sysadmin and don't want to make their life harder than it needs to be
m8 has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
zmike123 has quit [Quit: Выходжу]
generalissimo has joined #ruby
zeade has left #ruby [#ruby]
fungoat has joined #ruby
zeade has joined #ruby
persand has quit [Quit: persand]
gazarsgo has quit [Quit: gazarsgo]
devoldmx has quit [Ping timeout: 276 seconds]
persand has joined #ruby
persand has quit [Client Quit]
threesome has quit [Read error: Operation timed out]
RonScagz has joined #ruby
heftig has joined #ruby
Evixion has quit []
Hanmac2 has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
mocfive has quit [Remote host closed the connection]
axl_ has joined #ruby
Criztian has quit [Remote host closed the connection]
syamajala has quit [Quit: leaving]
pipework has quit [Remote host closed the connection]
mocfive has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
Evixion has joined #ruby
mocfive has quit [Remote host closed the connection]
Davey has joined #ruby
rafb3 has quit [Remote host closed the connection]
ssvo_ has joined #ruby
Meatant has joined #ruby
pipework has joined #ruby
Criztian has joined #ruby
devoldmx has joined #ruby
ssvo has quit [Ping timeout: 252 seconds]
jonathanwallace has joined #ruby
mocfive has joined #ruby
huoxito has quit [Quit: Leaving]
tw1sted has quit [Quit: tw1sted]
sambao21 has quit [Quit: Computer has gone to sleep.]
dash_ has quit [Quit: Time to beer :)]
chichou has joined #ruby
hadees has quit [Quit: hadees]
obs_ has quit [Quit: Konversation terminated!]
jalcine has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
fungoat has quit [Quit: fungoat]
threesome has joined #ruby
krawchyk has quit [Remote host closed the connection]
hadees has joined #ruby
yaroslav has joined #ruby
devoldmx3 has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
zets has joined #ruby
ffio_ has quit [Ping timeout: 264 seconds]
`p has quit [Remote host closed the connection]
yaroslav has quit [Client Quit]
burlyscudd has quit [Quit: Leaving.]
saarinen has joined #ruby
chichou has quit [Ping timeout: 268 seconds]
Criztian has quit [Remote host closed the connection]
thams has joined #ruby
devoldmx has joined #ruby
shykes has joined #ruby
araujo has quit [Read error: Connection reset by peer]
<shykes> Hi, I'm trying to build the latest ruby 2 release from source, but make fails with "/missing/isnan.c:8: error: expected identifier or '(' before 'sizeof'". I'm building on x86_64 with ulibc and busybox
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
devoldmx3 has quit [Ping timeout: 268 seconds]
geekbri has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
bean__ has joined #ruby
<_br_> shykes: seems you are missing some base lib functionality. Might be ulibc is not supported properly for the ruby2 build. Why don't you try to cross-compile it on a normal linux box for your embedded platform directly, instead of relying on the vanilla installer?
<shykes> _br_ yeah I might do that. I'm actually trying to bootstrap such a "normal linux box" starting from my embedded system, but that's outside of the scope of this chan :)
_Andres has quit [Quit: jazz]
<shykes> Ie. I'm trying to find the absolute smallest system capable of building ruby
<_br_> hah interesting stuff
<_br_> I think you should go to ruby-lang where the core devs are hanging around for such kind of issues.
<shykes> ah, thanks!
<_br_> My guess though is that with ulibc you don't have a certain functionality which you get in glibc, hence the error.
<_br_> np
<_br_> Probably you can fix it if you just implement the missing functions directly or if you switch to some other c lib that supports the needed functionality.
<_br_> For one of my theses I had fun porting this nonsense, hence these errors seems familiar.
krainboltgreene has joined #ruby
jtharris has joined #ruby
rdg has joined #ruby
<shykes> I'm going to try and build glibc on top of ublic, and then use that to build ruby. Maybe it will work?
<shykes> Thanks again
<_br_> try :)
sailias has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
dimpossso has quit [Quit: Leaving]
dpritchett has quit [Quit: Leaving]
johnrlive has quit [Remote host closed the connection]
mark_locklear has quit [Remote host closed the connection]
brennanMKE has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
m8 has quit [Quit: Sto andando via]
JustinAiken has left #ruby [#ruby]
jrhe has quit [Quit: jrhe]
richiebkr has joined #ruby
Hanmac has quit [Quit: Leaving.]
Hanmac1 has joined #ruby
jds has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Xeago has quit [Ping timeout: 264 seconds]
sarkis has quit [Ping timeout: 260 seconds]
arya has joined #ruby
rafb3 has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
werdnativ has quit [Quit: FAMOUS_LAST_WORDS is nil]
ivanoats has quit [Ping timeout: 264 seconds]
zeromodulus has quit [Remote host closed the connection]
milardovich has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
zeade has quit [Quit: Leaving.]
burlyscudd has joined #ruby
krainboltgreene has quit [Ping timeout: 246 seconds]
zeade has joined #ruby
Zai00 has quit [Quit: Zai00]
ivanoats has joined #ruby
niklasb has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ehaliewicz has joined #ruby
sambao21 has joined #ruby
athst has quit [Quit: athst]
kristiandelay has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
devoldmx has quit [Ping timeout: 256 seconds]
sambao21 has quit [Client Quit]
devoldmx has joined #ruby
tommyvyo has joined #ruby
m8 has joined #ruby
rdg has quit [Quit: ttfn]
fmcgeough has quit [Quit: fmcgeough]
ngoldman has quit [Remote host closed the connection]
jesly has quit [Quit: Leaving.]
emmanuelux has quit [Ping timeout: 268 seconds]
DrCode has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
DrCode has joined #ruby
axl__ has joined #ruby
Squarepy has quit [Quit: Leaving]
ngoldman has joined #ruby
axl_ has quit [Ping timeout: 256 seconds]
axl__ is now known as axl_
atno has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
codecop has quit [Remote host closed the connection]
Schmidt has joined #ruby
eldariof has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
MrZYX is now known as MrZYX|off
johnmilton has quit [Remote host closed the connection]
wu_lmao has quit [Remote host closed the connection]
asteve has quit [Ping timeout: 246 seconds]
v0n has quit [Read error: Operation timed out]
brennanM_ has joined #ruby
viszu has quit [Quit: Leaving.]
brennanMKE has quit [Ping timeout: 246 seconds]
atyz has quit [Quit: Linkinus - http://linkinus.com]
wmoxam has quit [Ping timeout: 264 seconds]
astrostl has quit [Quit: astrostl]
athst has joined #ruby
astrostl has joined #ruby
fomatin has joined #ruby
x1337807x has joined #ruby
poincare101 has joined #ruby
sailias has joined #ruby
atno has joined #ruby
cads has quit [Ping timeout: 256 seconds]
ElderFain has quit [Read error: Connection reset by peer]
xardas has quit [Ping timeout: 268 seconds]
row has quit [Read error: Connection reset by peer]
poincare1011 has quit [Ping timeout: 276 seconds]
Xeago_ has joined #ruby
sambao21 has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<joshu> anyone use gs and dep gems to maintain gems instead of bundler?
jkline has joined #ruby
dangerousdave has joined #ruby
icole has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 268 seconds]
interactionjaxsn has quit [Remote host closed the connection]
jerius has quit [Quit: jerius]
interactionjaxsn has joined #ruby
sarkis has joined #ruby
matchaw has quit [Ping timeout: 246 seconds]
dmiller has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
m8 has quit [Read error: Connection reset by peer]
enhance has joined #ruby
<enhance> hi - anyone familiar with sinatra/cross_origin?
interactionjaxsn has quit [Ping timeout: 256 seconds]
<enhance> i'm having difficulty passing :allow_headers options to this gem
devoldmx has quit [Ping timeout: 276 seconds]
mmitchell has quit [Ping timeout: 276 seconds]
<enhance> i have: set :cross_origin, :allow_headers, ['Content-Type', 'Origin', 'Accept', 'X-Requested-With', 'Authorization']
<enhance> but
<enhance> http://localhost:4567/auth.json Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers.
<jkline> For testing purposes I want to mock a class defined elsewhere, and have my mock replace all uses of that class throughout the code. What library should I be using?
robscomputer has quit [Read error: Connection reset by peer]
matchaw has joined #ruby
devoldmx has joined #ruby
ivanoats has quit [Remote host closed the connection]
robscomputer has joined #ruby
Kar- has quit [Remote host closed the connection]
<jkline> For example: class SystemUnderTest; def initialize; @client = SomeApiClient.new; end; end; I want to make a pretend SomeApiCLient so I can unit test my SystemUnderTest class
icole has joined #ruby
robscomputer_ has joined #ruby
<enhance> anyone?
<enhance> nobody knows Sinatra?
<enhance> ...that's alive...
<enhance> lol
<Beoran> enhance, I do, but I'm just off to be
<Beoran> to bed
dmiller has joined #ruby
<enhance> Beoran: haha, this is a quick thing
robscomputer has quit [Read error: Connection reset by peer]
<Beoran> ask me in a PM and I'll try to answer tomorrow
<enhance> heh
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
<enhance> i don't have until tomorrow :(
<Beoran> exam question?
<Beoran> ;)
<enhance> no.
<Beoran> well, aks quickly then
<enhance> i have a resource that gives out json in ruby
<enhance> via POST
<Beoran> ok
<enhance> and my issue is CORS
ssvo_ has quit [Read error: Connection reset by peer]
ssvo has joined #ruby
<Beoran> CORS?
Lubinski has quit [Quit: Leaving]
<enhance> yes, cross origin requests
<enhance> i have an angular app connecting to this endpoint
ddm has quit [Quit: Page closed]
<Beoran> sorry my time is up
<enhance> Beoran: see anything offhand there?
<Beoran> good night
<enhance> fine :)
<enhance> just say you don't know
ElderFain has joined #ruby
breakingthings has quit [Quit: breakingthings]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
milardovich has quit [Quit: Leaving]
jasonkuhrt has quit [Quit: Leaving...]
mfletcher has quit [Quit: mfletcher]
mahmoudimus has joined #ruby
fuzzyhorns has quit [Remote host closed the connection]
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
jtharris has quit [Quit: WeeChat 0.4.0]
kadoo has joined #ruby
baordog has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
Zai00 has joined #ruby
kadoo has quit [Client Quit]
ngoldman has quit [Remote host closed the connection]
richiebkr has quit [Quit: richiebkr]
richiebkr has joined #ruby
Zai00 has quit [Client Quit]
robscomputer has joined #ruby
`p has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
robscomputer_ has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
kadoo has joined #ruby
cj3kim has joined #ruby
dangerousdave has quit [Quit: Leaving...]
vlad_starkov has quit [Remote host closed the connection]
Zai00 has joined #ruby
thams has quit [Quit: thams]
rfizzle has quit [Quit: Leaving]
wesside has quit [Quit: Ice cream truck!]
ElderFain_ has joined #ruby
niklasb has joined #ruby
ElderFain has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
burlyscudd has quit [Quit: Leaving.]
thams has joined #ruby
heftig_ has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
heftig has quit [Quit: Quitting]
DonRichie has quit [Ping timeout: 248 seconds]
pipework has quit [Remote host closed the connection]
heftig_ is now known as heftig
heftig has quit [Client Quit]
heftig has joined #ruby
krainboltgreene has joined #ruby
stkowski has quit [Quit: stkowski]
sailias has quit [Ping timeout: 268 seconds]
synthetix has quit [Ping timeout: 264 seconds]
_br_ has quit [Quit: leaving]
Neener54 has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
jrhe has joined #ruby
nikeita has quit [Quit: bye bye]
mansi_ has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mansi has joined #ruby
generalissimo has quit [Remote host closed the connection]
ivanoats has joined #ruby
freerobby has quit [Quit: Leaving.]
nkts has joined #ruby
spengbab has joined #ruby
Brando753 has quit [Ping timeout: 264 seconds]
spengbab has quit [Client Quit]
ravster has quit [Quit: Leaving.]
Brando753 has joined #ruby
Xeago_ has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 276 seconds]
mocfive has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nezumi has joined #ruby
Davey has quit [Ping timeout: 256 seconds]
t_p has joined #ruby
ggordan has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
Davey has joined #ruby
mocfive has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
devoldmx has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
nezumi has quit [Ping timeout: 264 seconds]
shykes has left #ruby ["Leaving..."]
arya has quit [Ping timeout: 252 seconds]
tatsuya_o has quit [Remote host closed the connection]
richiebkr has quit [Quit: richiebkr]
ivanoats has quit [Remote host closed the connection]
radic_ is now known as radic
GaryOak_ has quit [Quit: Page closed]
fomatin has quit [Quit: Computer has gone to sleep.]
RORgasm has quit [Read error: Connection reset by peer]
hattusili_III has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
burlyscudd has joined #ruby
Hare has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
hadees has quit [Quit: hadees]
arya has joined #ruby
Opettaja has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
devoldmx3 has joined #ruby
AlSquire has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
athst has quit [Quit: athst]
krainboltgreene has quit [Ping timeout: 268 seconds]
skasio has joined #ruby
jacobw has quit [Quit: WeeChat 0.4.0]
gstamp has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
fomatin has joined #ruby
jibi has quit [Quit: .]
vlad_starkov has joined #ruby
mmitchell has joined #ruby
harrymoreno has quit [Ping timeout: 246 seconds]
harrymoreno_ has joined #ruby
astrostl has left #ruby [#ruby]
akells` has joined #ruby
<joshu> on Mac anyone install ruby with homebrew instead of using rbenv? Most people seem to use rbenv (or rvm) but just curious about the homebrew install without either rbenv or rvm
arietis has quit [Quit: Computer has gone to sleep.]
osvico has joined #ruby
<r0bgleeson> joshu: what's your question?
mmitchell has quit [Ping timeout: 240 seconds]
robscomputer has quit [Read error: Connection reset by peer]
<joshu> r0bgleeson any good reasons to install ruby with homebrew and skip rbenv/rvm
robscomputer_ has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
falkoner has joined #ruby
robscomputer has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
<r0bgleeson> joshu: not really
<r0bgleeson> well, I would be against RVM
<r0bgleeson> it has become a complicated monster
hadees has joined #ruby
gazarsgo has joined #ruby
akells` has quit [Ping timeout: 264 seconds]
<joshu> I just mentioned it to avoid any rbenv versus rvm debates as my I'm more curious about a brew install instead of either "manager"
<joshu> I'm currently using rbenv
<r0bgleeson> well, brew installs a single ruby
AlSquire has quit [Ping timeout: 240 seconds]
<r0bgleeson> there's not much more to say
rhys has quit [Quit: Leaving]
Trynemjoel has joined #ruby
<postmodern> joshu, if you just need "a" ruby use system or homebrew ruby
<postmodern> joschi, rvm/rbenv/chruby if you need multiple ruby implementations/versions
alvaro_o has quit [Read error: Connection reset by peer]
<joshu> postmodern I see
alvaro_o has joined #ruby
jimg has joined #ruby
<Hare> Can you text/email images with the net::smtp class, or is there a better gem to use?
<r0bgleeson> Hare: the 'mail' gem might be better for attachments.
hadees has quit [Client Quit]
atno has quit [Remote host closed the connection]
<Hare> ok thanks, Ill have a look at it
burlyscudd has quit [Ping timeout: 256 seconds]
<joshu> r0bgleeson what do you use for gem management, bundler?
<r0bgleeson> that's what ActionMailer uses.
<r0bgleeson> joshu: yeah
mikepack has quit [Remote host closed the connection]
athst has joined #ruby
robscomputer has quit [Remote host closed the connection]
<r0bgleeson> i don't use gemsets, never have
robscomputer has joined #ruby
Treeson has joined #ruby
AlSquire has joined #ruby
defaultro has quit [Ping timeout: 250 seconds]
slainer68 has quit [Remote host closed the connection]
brennanM_ has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
robscomputer has quit [Ping timeout: 240 seconds]
robscomputer has joined #ruby
anonymuse has quit [Quit: Leaving...]
slyv has joined #ruby
predator217 has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
rdFLeece has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: Operation timed out]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
_maes_ has quit [Ping timeout: 268 seconds]
hadees has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 240 seconds]
ntus1017 has joined #ruby
slash_nick has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
skasio has quit [Ping timeout: 240 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synthetix has joined #ruby
Weems has quit [Ping timeout: 256 seconds]
mansi has quit [Ping timeout: 240 seconds]
pentameter has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
benlieb has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
hawtin has quit [Ping timeout: 248 seconds]
robscomputer has quit [Ping timeout: 264 seconds]
geggam has quit [Remote host closed the connection]
robscomputer has joined #ruby
kadoo has joined #ruby
bean has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
axl_ has quit [Quit: axl_]
nari has joined #ruby
arya has quit [Ping timeout: 240 seconds]
wsterling has quit [Ping timeout: 276 seconds]
mrsolo has quit [Ping timeout: 245 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
brice_ has joined #ruby
guiocavalcanti has joined #ruby
jds has quit [Remote host closed the connection]
kokobaby has quit [Ping timeout: 240 seconds]
daniel_- has quit [Quit: WeeChat 0.4.1]
timkohrumel has quit [Remote host closed the connection]
<jkline> hi, i'm trying to learn Mocha. I want to stub the My::Own::Thing.get_creds function. When I try My::Own::Thing.stubs(:get_creds) the error is NameError: uninitialized constants My::Own
kokobaby has joined #ruby
<jkline> I don't need any real behavior from My::Own::Thing, it is a collaborator. How do I replace that with a double or mock version?
r0bgleeson has quit [Ping timeout: 245 seconds]
<pontiki> not fmiliar woth mocha
tomzx_mac has joined #ruby
<pontiki> but you do need to ha module My and My::Own defined
justsee has joined #ruby
<pontiki> have*
<pontiki> before you can use My::Own::Thing
brennanMKE has quit [Read error: Connection reset by peer]
<jkline> ok, so the mock doesn't do that for me. I guess that makes sense, it would not know how
<pontiki> nod
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
<pontiki> simple enough, just wrap your test with module My::Own ... end
<pontiki> or whatever they are in your app
eka has quit [Ping timeout: 252 seconds]
<pontiki> low batt
<jkline> ah. Ok. so that leads into my next question. I am using Test::Unit. The examples I have seen say something like class DefaultTest < Test::Unit::TestCase
kiry has joined #ruby
brennanMKE has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<jkline> how do people nest their unit tests ? in their own name space? In directories?
saarinen has quit [Quit: saarinen]
<jkline> feel free to give me a link , I just haven't see a tutorial that answers this yet
hawtin has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
guiocavalcanti has quit [Ping timeout: 240 seconds]
guiocavalcanti has joined #ruby
<jkline> Should I be usingng class My::Own::ThingTest < Test::Unit::TestCase to test class My::Own::Thing ?
eka has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
gildo has joined #ruby
jonathanwallace1 has joined #ruby
slainer68 has joined #ruby
arya_ has joined #ruby
brennanMKE has joined #ruby
skasio has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
wookiehangover has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
arya has quit [Ping timeout: 240 seconds]
mocfive has quit [Remote host closed the connection]
thams has quit [Quit: thams]
incorvia has joined #ruby
brennanMKE has joined #ruby
nezumi has joined #ruby
citizensinspace has joined #ruby
jonathanwallace1 has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
krainboltgreene has joined #ruby
wookiehangover has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
mocfive has quit [Remote host closed the connection]
sepp2k1 has quit [Quit: Leaving.]
fomatin has joined #ruby
aces1up has joined #ruby
robscomputer has quit [Remote host closed the connection]
<aces1up> what happens for Thread.current.raise if the current thread is blocking waiting on socket?
slainer68 has quit [Ping timeout: 276 seconds]
robscomputer has joined #ruby
<aces1up> will it break out of that blocking call?
cantonic has joined #ruby
mocfive has joined #ruby
rafb3 has quit [Remote host closed the connection]
brennanMKE has joined #ruby
tw1sted has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
robscomputer has quit [Ping timeout: 276 seconds]
saarinen has quit [Quit: saarinen]
emergion has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
jimg has quit [Remote host closed the connection]
rdFLeece has joined #ruby
nkts has quit [Quit: -]