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
nowthatsamatt has joined #ruby
brotatos has quit [Client Quit]
apalmblad has quit [Quit: apalmblad]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
apalmblad has joined #ruby
wsterling has joined #ruby
gluma83 has quit [Ping timeout: 248 seconds]
pipework has joined #ruby
jlast has quit [Remote host closed the connection]
ivanoats has joined #ruby
slash_nick has joined #ruby
gluma83 has joined #ruby
dmiller has joined #ruby
apeiros_ has joined #ruby
framling has quit [Read error: Connection reset by peer]
twoism has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: nettoweb]
w|t has joined #ruby
wolcanus_ has joined #ruby
ruby has quit [Remote host closed the connection]
wolcanus_ has quit [Remote host closed the connection]
twoism has joined #ruby
wsterling has quit [Ping timeout: 248 seconds]
ruby has joined #ruby
peta_ has quit [Quit: peta_]
<konr`> Where is the bin/ folder of rubygems?
wolcanus has quit [Ping timeout: 260 seconds]
<tomsthumb> konr`: did you try `sudo find / -name bin` yet?
kofno has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.0]
sam113101 has joined #ruby
GeissT has joined #ruby
<konr`> tomsthumb: yup! found it
niklasb has joined #ruby
falood has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
Soliah has quit [Read error: Operation timed out]
slash_nick has quit [Ping timeout: 264 seconds]
ivanoats has quit [Remote host closed the connection]
johnrlive has quit [Remote host closed the connection]
<terrellt> So I got this mostly working and then discovered I had an issue. I want to be able to do Google::Scholar.new, but Google::Scholar is a module for namespacing purposes. I could create a Google::Scholar::Base class, but that just makes it feel harder to use. Thoughts?
jjasonclark has quit [Quit: jjasonclark]
AlbireoX has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
<daniel_-> Hi all. Is there a way to get the item that sent true on the the Array.any? method
<tomsthumb> daniel_-: you mean a method that's already there? you still have the array right?
<tomsthumb> daniel_-: I would just filter and grab the first element
<daniel_-> array.any? { |word| "hello world" =~ /#{word}/ }
<waxjar> daniel_-: Enumerable#find
sam113101 has quit [Quit: WeeChat 0.4.0]
tyl has joined #ruby
suporte85 has joined #ruby
sam113101 has joined #ruby
yshh has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 260 seconds]
Soliah has joined #ruby
Soliah has quit [Client Quit]
Soliah has joined #ruby
akells` has quit [Remote host closed the connection]
<daniel_-> it sends true for one item in my array, but I want the value back
val___ has joined #ruby
agjacome has joined #ruby
io_syl has joined #ruby
<daniel_-> let me check
w|t has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
tmorgan has quit [Remote host closed the connection]
d11wtq has joined #ruby
<daniel_-> thx tomsthumb and waxjar Enum.find works fine
agarie has quit [Remote host closed the connection]
w|t has joined #ruby
hogeo has joined #ruby
druonysus has quit [Ping timeout: 256 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
tjbiddle_ has joined #ruby
westoque has quit [Quit: westoque]
slainer68 has joined #ruby
falood has joined #ruby
Neomex has quit [Quit: Neomex]
jdunck has quit [Quit: Computer has gone to sleep.]
ravster has joined #ruby
jacktrick has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
tjbiddle_ has quit [Client Quit]
zeade has quit [Quit: Leaving.]
eykosiou_ has quit [Remote host closed the connection]
zphobic has joined #ruby
zastern_ has quit [Remote host closed the connection]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
eykosioux has joined #ruby
robottin1 has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
w|t has quit [Quit: Computer has gone to sleep.]
apalmblad has quit [Ping timeout: 248 seconds]
<zphobic> My installation of rvm (1.20.10) on OS X 10.8.3 is missing .rvm/scripts/md5, and it's screwing things up - notably, the apache2 module installer for passenger is choking on this issue. I haven't been able to find *any* info on this failure online.
robottinosino has quit [Ping timeout: 248 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
Ontolog has joined #ruby
Ontolog has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 276 seconds]
<zphobic> Neither of the commands passenger suggests for repairing rvm work properly. Should I just wax rvm and re-install? (just installing the gem again doesn't fix it) Will that cause problems with my extra ruby version?
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
agjacome has quit [Quit: leaving]
jcromartie has quit [Ping timeout: 256 seconds]
eykosioux has quit [Ping timeout: 248 seconds]
Ontolog_ has quit [Ping timeout: 256 seconds]
apalmblad has joined #ruby
osvico has joined #ruby
mrsolo has quit [Read error: Connection reset by peer]
breadthfirst has joined #ruby
waxjar has quit [Ping timeout: 245 seconds]
sepp2k has quit [Remote host closed the connection]
darkapex has quit [Ping timeout: 245 seconds]
<stewart_> is there an rvm package that provides this script?
thomasfedb has quit [Ping timeout: 240 seconds]
ruby has quit [Remote host closed the connection]
PigDude has left #ruby [#ruby]
ruby has joined #ruby
AgentWillyWonka has joined #ruby
Kricir has joined #ruby
lewix has joined #ruby
mrsolo has joined #ruby
tylersmith has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
`brendan has joined #ruby
prk has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
jcromartie has joined #ruby
yshh has joined #ruby
pipework has quit [Remote host closed the connection]
waxjar has joined #ruby
thomasfedb has joined #ruby
<breakingthings> I have a gem module that takes a rather lengthy argument list for #new that is constantly the same for my application so I'd like to DRY up by making a class that wraps that module and takes care of the arguments. How can I accomplish this? I was thinking of extending the module in the class but how then do I trigger the #new method on that module?
darkapex has joined #ruby
<breakingthings> (well, I guess it's not actually a Module I'm talking about, it's an object)
<breakingthings> (Class.* My brain is broke.)
skattyadz has quit [Quit: skattyadz]
pkill has joined #ruby
<stewart_> why not use a block
akells` has joined #ruby
nari_ has quit [Ping timeout: 260 seconds]
ericmathison has quit [Quit: leaving]
<breakingthings> stewart_: why would a block help here?
ericmathison has joined #ruby
Kovensky has quit [Ping timeout: 264 seconds]
<stewart_> pass a block to new and init your params in the block. Rails uses this pattern in many places
ehaliewicz has joined #ruby
<stewart_> works well I think
mrsolo has quit [Quit: Leaving]
roadt_ has joined #ruby
<breakingthings> but that doesn't really solve the issue that the params are the same for every call of this Gem's Klass#new, unless I'm misunderstanding you which I probably am
<stewart_> what do you mean when you say the params are the same? They are the same values or that new is always called with the same amount of params?
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
<breakingthings> For the purposes of my application, that Klass#new is always called with the exact same parameters and values
<breakingthings> So, I'd like to create a wrapper that hides this connection detail and allow me to use WrapperKlass#new instead of Klass#new with 4 arguments every time
<breakingthings> Otherwise, I would like it to act roughly the same
huoxito has joined #ruby
<breakingthings> hmm
<breakingthings> I guess I could just return the object, huh.
ericmathison has quit [Client Quit]
<stewart_> why not just set the values explicitly in your module if they are always the same?
* breakingthings thinks for a second
<breakingthings> stewart_: it's not my module, though.
daniel_- has quit [Ping timeout: 252 seconds]
<breakingthings> It's part of a gem
<stewart_> oh it's 3rd party?
<breakingthings> yes
<stewart_> ahhh yea just create a factory then
gensym` has quit [Read error: Connection reset by peer]
peteyg has quit [Quit: Lost terminal]
druonysus has quit [Quit: Konversation terminated!]
<stewart_> i think your on the right track it sounds like you could be overthinkng this one a bit(i do the same :))
<breakingthings> Yeah, I was definitely overthinking it
<breakingthings> My brain is wrecked right now
<breakingthings> Thanks for helping nonetheless :)
Voodoofish4302 has quit [Quit: Leaving.]
devoldmx3 has joined #ruby
ruby has quit [Remote host closed the connection]
<stewart_> just create a factory class and have a class method in there…. somehting like MyModuleFactory.create which returns what ever object your gem module spits out
ruby has joined #ruby
akells` has quit [Ping timeout: 248 seconds]
kf8a has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
jpstock has quit [Remote host closed the connection]
tootubular has quit [Quit: tootubular]
devoldmx3 has quit [Client Quit]
devoldmx has joined #ruby
dhruvasagar has joined #ruby
jamesfung14 has quit [Ping timeout: 256 seconds]
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
eykosioux has joined #ruby
gensym` has joined #ruby
ericmathison has joined #ruby
_main_0 has quit [K-Lined]
JZTech101 has quit [Ping timeout: 248 seconds]
splittingred has joined #ruby
krz has joined #ruby
robottin1 has quit [Ping timeout: 245 seconds]
codesoda has quit [Remote host closed the connection]
ericmathison has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
S1kx has joined #ruby
S1kx has joined #ruby
nfk has quit [Quit: yawn]
ruby has quit [Remote host closed the connection]
apalmblad has quit [Quit: apalmblad]
ruby has joined #ruby
ericmathison has joined #ruby
prk has quit [Ping timeout: 256 seconds]
chid has joined #ruby
<chid> am I meant to run gem as root? is there a way around this>
emergion has joined #ruby
__main__ has joined #ruby
banjara has quit [Quit: Leaving.]
l33 has quit [Remote host closed the connection]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
ericmathison has quit [Quit: leaving]
twoism has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
twoism has joined #ruby
ericmathison has joined #ruby
tyl has joined #ruby
akells` has joined #ruby
jcromartie has joined #ruby
peteyg has joined #ruby
mockra has quit [Remote host closed the connection]
ggordan has quit [Quit: Leaving]
twoism has quit [Ping timeout: 276 seconds]
cpruitt has quit [Quit: cpruitt]
cpruitt has joined #ruby
tjbiddle has joined #ruby
r0bby_ has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
Ontolog has joined #ruby
cpruitt has quit [Client Quit]
johnrlive has joined #ruby
thomasle_ has quit [Remote host closed the connection]
johnrlive has quit [Read error: Operation timed out]
kf8a has quit [Ping timeout: 276 seconds]
joshu has quit [Ping timeout: 256 seconds]
gensym` has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
r0bby_ has quit [Ping timeout: 256 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
Kricir has joined #ruby
RORgasm has joined #ruby
lyanchih has joined #ruby
nari_ has joined #ruby
cpruitt has joined #ruby
Xeago has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 248 seconds]
dayepa1 has quit [Quit: dayepa1]
breadthfirst has quit [Remote host closed the connection]
tockitj has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
breadthfirst has joined #ruby
dayepa has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Quit: tjbiddle]
arya has joined #ruby
kil0byte has joined #ruby
bradhe has joined #ruby
cpruitt has quit [Quit: cpruitt]
<chid> am I meant to run gem as root? is there a way around this?
hamakn has joined #ruby
<superscott[8]> chid: no. yes.
ruby has quit [Remote host closed the connection]
<superscott[8]> what OS are you on?
ruby has joined #ruby
Domon has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
AgentWillyWonka has quit [Quit: Leaving...]
ravster has left #ruby [#ruby]
phipes has quit [Quit: phipes]
jonahR has joined #ruby
<superscott[8]> chid: https://rvm.io/ should work for you unless you're running microsoft
superscott[8] has quit [Quit: superscott[8]]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Kovensky has joined #ruby
w|t has joined #ruby
dallasm has quit [Remote host closed the connection]
breadthfirst has quit [Remote host closed the connection]
ruby has quit [Remote host closed the connection]
jeebster has quit [Quit: Leaving.]
ruby has joined #ruby
ttt has joined #ruby
krainboltgreene has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
Hanmac1 has joined #ruby
breadthfirst has joined #ruby
tndrbt has joined #ruby
mixel has quit [Quit: mixel]
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
niklasb has quit [Ping timeout: 256 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
generalissimo has quit [Remote host closed the connection]
rickruby has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
Rumsteak_ has joined #ruby
dallasm has joined #ruby
phipes has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
w|t has joined #ruby
Rumsteak has quit [Ping timeout: 256 seconds]
Rumsteak_ is now known as Rumsteak
reset has quit [Quit: Leaving...]
roadt_ has quit [Ping timeout: 256 seconds]
konr` has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
breadthfirst has quit [Remote host closed the connection]
Leighton has quit [Quit: Leaving]
Apocalypse has quit [Ping timeout: 264 seconds]
AgentWillyWonka has joined #ruby
emergion has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 252 seconds]
ColKurtz has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
Ontolog has quit [Remote host closed the connection]
ruby has quit [Remote host closed the connection]
robustus has joined #ruby
ruby has joined #ruby
iamjarvo has joined #ruby
lewix has quit [Remote host closed the connection]
apok has quit [Quit: apok]
arya has quit [Ping timeout: 248 seconds]
chrishough has quit [Quit: chrishough]
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
peteyg has quit [Ping timeout: 248 seconds]
chrishough has joined #ruby
larissa has joined #ruby
zeade has joined #ruby
arya has joined #ruby
17SACX5KT has quit [Ping timeout: 245 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
kil0byte has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
Bosox20051 has joined #ruby
khushildep has joined #ruby
phite has joined #ruby
<khushildep> Hey all - trying to build a gem and getting http://pastebin.com/8wdgmjvR - any ideas form you folks please?
tshauck has quit [Quit: leaving]
<stewart_> what gem is it?
<stewart_> ah wait the ruby racer
<stewart_> it has some external requirements
zeade has quit [Quit: Leaving.]
<stewart_> have you installed its prerequisites?
kpshek has joined #ruby
pkill has quit [Quit: leaving]
ruby has quit [Remote host closed the connection]
<khushildep> I'm doing a bundle install - that's pulling the requirements right?
<stewart_> no
ruby has joined #ruby
<stewart_> well not always is a better answer
machuga|away is now known as machuga
pookito has joined #ruby
<stewart_> that's whats happening in your case
<khushildep> ah ta
<stewart_> "ERROR: Failed to build gem native extension." means ruby is trying to build something and it cant because you dont have library installed
<khushildep> gem install libv8 it is then
<khushildep> thanks mate
mduvall has joined #ruby
mduvall has quit [Client Quit]
<stewart_> I can vaguely remember installed node.js which fixed an issue i was having
mmitchell has joined #ruby
cpruitt has joined #ruby
<fryguy> yah i just use node instead of rubyracer for execjs
falood has quit [Remote host closed the connection]
r0bglees0n has quit [Ping timeout: 252 seconds]
machuga is now known as machuga|away
kpshek has quit [Ping timeout: 264 seconds]
krainboltgreene has quit [Ping timeout: 240 seconds]
val___ has quit [Ping timeout: 248 seconds]
<khushildep> it's part of the graylog2 web interface install so not much choice alas
rupee has quit [Quit: Leaving]
julian-delphiki has joined #ruby
krainboltgreene has joined #ruby
<stewart_> khushildep: I would suggest they have used the ruby racer because it's the most portable solution. Just a guess though
dhruvasagar has quit [Ping timeout: 276 seconds]
lewix has joined #ruby
bradhe has joined #ruby
aedornm has quit [Read error: Operation timed out]
chrishunt has joined #ruby
Glamdrin_ has joined #ruby
bean has quit [Ping timeout: 256 seconds]
tomzx_mac has quit [Ping timeout: 252 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
ColKurtz has quit [Quit: sleeping]
Apocalypse has quit [Ping timeout: 240 seconds]
aedornm has joined #ruby
Evixion has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 245 seconds]
Evixion has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
ioNull has joined #ruby
cyong has joined #ruby
fivetwentysix has joined #ruby
rezzack has quit [Ping timeout: 260 seconds]
<khushildep> hmmm
ruby has quit [Remote host closed the connection]
<khushildep> no such luck http://pastebin.com/aqjQ71fm
ruby has joined #ruby
t_p has joined #ruby
<stewart_> you might want to look in to other ways of getting libv8 installed then
falood has joined #ruby
<stewart_> perhaps your OS provides a package for it
Naeblis|XChat has quit [Ping timeout: 276 seconds]
clevermatt has joined #ruby
mockra has joined #ruby
<khushildep> well I just hacked the Gemfile and pushed the version up - let's see
<khushildep> all sorts of things will no doubt break
Azulinho_ has joined #ruby
Glamdrin_ has left #ruby [#ruby]
pierre1 has joined #ruby
Azulinho has quit [Ping timeout: 248 seconds]
falood has quit [Remote host closed the connection]
freeayu has joined #ruby
apalmblad has joined #ruby
codesoda has joined #ruby
thesheff17 has joined #ruby
val___ has joined #ruby
<stewart_> I would look at installing the requirements on your OS before I started hacking up 3rd party gem files
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
Apocalypse has joined #ruby
casheew has quit [Read error: Operation timed out]
ebobby has quit [Quit: Lost terminal]
fridim__ has quit [Ping timeout: 248 seconds]
bubblehe_ has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
Guedes0 has quit [Ping timeout: 276 seconds]
eykosioux has quit [Ping timeout: 248 seconds]
manuphp has joined #ruby
Naeblis|XChat has joined #ruby
tndrbt has quit [Quit: tndrbt]
ruby has quit [Remote host closed the connection]
Apocalypse has quit [Ping timeout: 245 seconds]
ruby has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
cpruitt has left #ruby [#ruby]
clevermatt has quit [Remote host closed the connection]
Cultofme_ has joined #ruby
IceDragon has quit [Quit: Space~~~]
bigmac has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
casheew has joined #ruby
Matip has quit [Ping timeout: 256 seconds]
<bigmac> im having a hard time logging output of a command `ffmpeg #{input} output.avi`{|x| log.write(x)}
allure has joined #ruby
allure has quit [Changing host]
allure has joined #ruby
Cultofmetatron has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
splittingred has joined #ruby
ericmathison has quit [Quit: leaving]
dayepa has quit [Quit: dayepa]
ericmathison has joined #ruby
manuphp has quit [Read error: Connection reset by peer]
dankest has quit [Quit: Leaving...]
DrShoggoth has quit [Ping timeout: 246 seconds]
dallasm has quit [Remote host closed the connection]
girija has joined #ruby
frem has joined #ruby
phipes has quit [Quit: phipes]
dankest has joined #ruby
clevermatt has joined #ruby
Naeblis|XChat has quit [Quit: Leaving]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
lunarjar has quit [Ping timeout: 245 seconds]
megha has joined #ruby
DonRichie has joined #ruby
thesheff17 has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
casheew has quit [Ping timeout: 248 seconds]
lunarjar has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
brain_shim has joined #ruby
ColKurtz has joined #ruby
lewix has quit [Remote host closed the connection]
nwertman has quit [Quit: nwertman]
SeptimusSeptum has joined #ruby
casheew has joined #ruby
girija has quit [Ping timeout: 252 seconds]
<SeptimusSeptum> What's the difference between using attr_accessor and attr_reader and attr_writer
ColKurtz has quit [Client Quit]
cofin has quit [Quit: cofin]
val___ has quit [Read error: Connection reset by peer]
nedbat has quit [Ping timeout: 276 seconds]
jdunck has joined #ruby
YanniHoza has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
tjbiddle has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
Alex_ has joined #ruby
rakl has quit [Quit: sleeping]
wallerdev has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<Alex_> hello all
pierre1 has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
Alex_ has quit [Client Quit]
arya has joined #ruby
Artheist has joined #ruby
Kovensky has quit [Ping timeout: 264 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
kofno has quit [Remote host closed the connection]
mduvall has joined #ruby
clevermatt has quit [Remote host closed the connection]
Alex_ has joined #ruby
Artheist has quit [Client Quit]
w|t has quit [Quit: Computer has gone to sleep.]
YanniHoza has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
RORgasm has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
tommyvyo has joined #ruby
Davey has quit [Ping timeout: 256 seconds]
Artheist has joined #ruby
girija has joined #ruby
Davey has joined #ruby
kil0byte has joined #ruby
mduvall has quit [Quit: mduvall]
therod has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
sleetdrop has joined #ruby
RORgasm has quit [Ping timeout: 252 seconds]
girija has quit [Ping timeout: 240 seconds]
bubblehe_ has quit [Remote host closed the connection]
mikepack has joined #ruby
iMadper has joined #ruby
w|t has joined #ruby
ruby has quit [Remote host closed the connection]
rakl has joined #ruby
io_syl has joined #ruby
ruby has joined #ruby
huoxito has quit [Quit: Leaving]
splittingred has quit [Quit: splittingred]
mikepack has quit [Ping timeout: 256 seconds]
Alex_ has quit [Ping timeout: 276 seconds]
decentrality has joined #ruby
alexgordon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fivetwentysix has quit [Ping timeout: 246 seconds]
chandankumar has joined #ruby
fivetwentysix has joined #ruby
phipes has joined #ruby
falood has joined #ruby
ntus1017 has joined #ruby
iamjarvo has quit [Quit: Leaving.]
_cheney3 has quit [Ping timeout: 256 seconds]
dallasm has joined #ruby
mmitchell has quit [Remote host closed the connection]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
_cheney3 has joined #ruby
dhruvasagar has joined #ruby
ariedler has joined #ruby
deeepblue has joined #ruby
katsrc has joined #ruby
mikepack has joined #ruby
allure has quit [Quit: Saindo]
Davey has quit [Ping timeout: 246 seconds]
robottin1 has joined #ruby
Davey has joined #ruby
darkapex has quit [Ping timeout: 245 seconds]
thomasfedb has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Quit:]
frem has quit [Ping timeout: 248 seconds]
<ericmathison> SeptimusSeptum: attr_accessor creates both reader and writer methods for instance variables while the others create just a reader method or just a writer method.
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
<ericmathison> is that the info you are looking for?
waxjar has quit [Ping timeout: 260 seconds]
<SeptimusSeptum> Yes thx
tjbiddle has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
SeptimusSeptum has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Cultofme_ has quit [Remote host closed the connection]
<ericmathison> np
pierre1 has joined #ruby
pierre1 has quit [Read error: Connection reset by peer]
tomsthumb has quit [Quit: Leaving.]
_cheney4 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Quit: Leaving]
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
ARCADIVS has joined #ruby
rae__ has joined #ruby
tyl has joined #ruby
waxjar has joined #ruby
darkapex has joined #ruby
_cheney3 has quit [Ping timeout: 241 seconds]
pookito has left #ruby [#ruby]
tommyvyo has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
kenneth has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
tjbiddle has joined #ruby
jerius has joined #ruby
tjbiddle_ has joined #ruby
robottin1 has quit [Quit: WeeChat 0.4.0]
robottinosino has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
tjbiddle_ has quit [Client Quit]
lyanchih has quit [Quit: lyanchih]
dayepa1 has joined #ruby
baba has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Ping timeout: 256 seconds]
megha has quit [Ping timeout: 264 seconds]
krainboltgreene has quit [Ping timeout: 276 seconds]
w|t has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
dankest has quit [Quit: Leaving...]
arya has joined #ruby
iamjarvo1 has joined #ruby
ruby has quit [Remote host closed the connection]
banghouse has quit [Remote host closed the connection]
ruby has joined #ruby
breakingthings has quit [Quit: breakingthings]
DanKnox is now known as DanKnox_away
alx- has quit [Quit: alx-]
tyl has quit [Read error: Connection reset by peer]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
codesoda has quit [Read error: Connection reset by peer]
codesoda has joined #ruby
tyl has joined #ruby
roadt_ has joined #ruby
tyl has quit [Client Quit]
Fretta has quit [Quit: Fretta]
w|t has joined #ruby
undersc0re97 has quit [Quit: WeeChat 0.4.0]
kofno has joined #ruby
undersc0re97 has joined #ruby
iamjarvo1 has quit [Ping timeout: 256 seconds]
Dummies_freelanc has left #ruby [#ruby]
jerius has quit [Quit: Computer has gone to sleep.]
chandankumar has quit [Quit: Leaving]
corehook has joined #ruby
therod has quit [Quit: Linkinus - http://linkinus.com]
chrishunt has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
eldariof has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
cyong has quit [Quit: Leaving.]
YuryBatenko has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
Cultofmetatron has joined #ruby
jrhorn424 has joined #ruby
baba has quit [Quit: WeeChat 0.4.0]
ruby has quit [Remote host closed the connection]
megha has joined #ruby
ruby has joined #ruby
clevermatt has joined #ruby
tjbiddle_ has joined #ruby
DonRichie has quit [Quit: Verlassend]
ivanoats has joined #ruby
browndawg has joined #ruby
tyl has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Ping timeout: 248 seconds]
mikepack_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dougireton has joined #ruby
tyl has quit [Client Quit]
tommyvyo has joined #ruby
pitzips has quit [Remote host closed the connection]
clevermatt has quit [Ping timeout: 264 seconds]
tyl has joined #ruby
tyl has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 256 seconds]
lewix has joined #ruby
girija has joined #ruby
dankest has joined #ruby
[[thufir]] has joined #ruby
ruby has quit [Remote host closed the connection]
corehook has quit [Remote host closed the connection]
ruby has joined #ruby
tyl has joined #ruby
tyl has quit [Client Quit]
ariedler has quit [Remote host closed the connection]
cj3kim has joined #ruby
arubin has joined #ruby
Nisstyre-laptop has joined #ruby
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
tyl has joined #ruby
insel has joined #ruby
codecop has joined #ruby
tyl has quit [Read error: Connection reset by peer]
tyl has joined #ruby
T|ASK has joined #ruby
robbyoconnor has joined #ruby
tommyvyo has quit [Quit:]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Rumsteak has quit [Ping timeout: 260 seconds]
yannis has joined #ruby
mmitchell has joined #ruby
Rumsteak has joined #ruby
lyanchih has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
T|ASK has left #ruby [#ruby]
robbyoconnor has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
mmitchell has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
browndawg has quit [Ping timeout: 241 seconds]
ivanoats has quit [Remote host closed the connection]
saarinen has joined #ruby
akells` has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
dhruvasagar has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
kenneth_ has joined #ruby
prk has joined #ruby
BonSequitur has quit [Quit: Leaving]
rismoney has quit [Read error: Operation timed out]
ipalaus has quit [Read error: Operation timed out]
BonSequitur has joined #ruby
aedornm has quit [Remote host closed the connection]
rismoney has joined #ruby
echevemaster has quit [Read error: Operation timed out]
ipalaus has joined #ruby
Derander_ has quit [Read error: Operation timed out]
Drewch has quit [Read error: Operation timed out]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
Derander has joined #ruby
Drewch has joined #ruby
kenneth has quit [Ping timeout: 256 seconds]
kenneth_ is now known as kenneth
bradhe has quit [Remote host closed the connection]
nyuszika7h has quit [Remote host closed the connection]
ruby has quit [Read error: Connection reset by peer]
nyuszika7h has joined #ruby
w|t has joined #ruby
elliottcable has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
ffranz1 has joined #ruby
kofno has joined #ruby
larissa has quit [Quit: Leaving]
vlad_starkov has joined #ruby
bradhe has joined #ruby
dallasm has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
ffranz has quit [Ping timeout: 245 seconds]
dallasm has joined #ruby
RORgasm has quit [Ping timeout: 256 seconds]
ffranz1 has quit [Quit: Leaving]
smiler has quit [Quit: WeeChat 0.3.8]
bubblehead has joined #ruby
lyanchih has quit [Quit: lyanchih]
kofno has quit [Ping timeout: 256 seconds]
Al___ has joined #ruby
aedornm has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
tagrudev has joined #ruby
bubblehead has quit [Ping timeout: 246 seconds]
lushious has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.4.0]
dmiller has quit [Remote host closed the connection]
sleetdrop has joined #ruby
Al___ has quit [Client Quit]
yashshah- has quit [Read error: Connection reset by peer]
yashshah__ has joined #ruby
undersc0re97 has quit [Ping timeout: 264 seconds]
spike|spiegel has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
undersc0re97 has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
philcrissman has quit [Remote host closed the connection]
w|t has joined #ruby
eldariof has quit [Ping timeout: 276 seconds]
dougireton has quit [Quit: Leaving.]
jonahR has quit [Quit: jonahR]
kil0byte_ has joined #ruby
lyanchih has joined #ruby
workmad3 has joined #ruby
kil0byte has quit [Ping timeout: 245 seconds]
undersc0re97 has quit [Ping timeout: 276 seconds]
kil0byte_ has quit [Remote host closed the connection]
CodeZombie has joined #ruby
khushildep has quit [Read error: Connection reset by peer]
elliottcable has joined #ruby
khushildep has joined #ruby
slainer68 has joined #ruby
<CodeZombie> I've been looking at this bit of code for way too long. Just for kicks, can anyone spot a way to trim it down? https://gist.github.com/gitt/37b50be15efdfa627c20
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
decentrality has quit [Quit: decentrality]
danslo has quit [Quit: danslo]
mikepack_ has quit [Remote host closed the connection]
ehaliewicz has quit [Ping timeout: 256 seconds]
skasio has quit [Ping timeout: 240 seconds]
undersc0re97 has joined #ruby
DrCode has quit [Remote host closed the connection]
mnaser has quit [Read error: Operation timed out]
slainer68 has quit [Ping timeout: 245 seconds]
falood has quit [Remote host closed the connection]
BeegPeeg00 has joined #ruby
mnaser has joined #ruby
ananthakumaran has joined #ruby
persand has joined #ruby
bradhe has quit [Remote host closed the connection]
ia___ has joined #ruby
DrCode has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
jkline__ has joined #ruby
iMadper has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Artheist has quit [Remote host closed the connection]
zeeraw has joined #ruby
bradhe has joined #ruby
<BonSequitur> Is there a good Ruby library for parsing Atom/RSS?
tjbiddle has joined #ruby
dmiller has joined #ruby
fschuindt has joined #ruby
yannis has quit [Quit: yannis]
dhruvasagar has quit [Ping timeout: 248 seconds]
agjacome has joined #ruby
firebury_ has quit [Ping timeout: 264 seconds]
tjbiddle_ has quit [Ping timeout: 256 seconds]
aganov has joined #ruby
phipes has quit [Quit: phipes]
tylersmith has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
DrCode has joined #ruby
arturaz has joined #ruby
firebury has joined #ruby
rakl has quit [Quit: sleeping]
andikr has joined #ruby
Kar- has joined #ruby
alexmreis has joined #ruby
[[thufir]] has quit [Quit: Leaving.]
nari_ has quit [Ping timeout: 240 seconds]
akells` has joined #ruby
nari_ has joined #ruby
kenneth has quit [Quit: kenneth]
pduin has joined #ruby
mafolz has joined #ruby
dallasm has quit [Remote host closed the connection]
insel has quit []
browndawg has joined #ruby
corehook has joined #ruby
corehook has quit [Max SendQ exceeded]
alexmreis has quit [Client Quit]
akells` has quit [Ping timeout: 252 seconds]
dankest has quit [Quit: Leaving...]
mafolz has quit [Quit: mafolz]
yannis has joined #ruby
pkh has joined #ruby
mafolz has joined #ruby
<pkh> is there an obvious way to convert an narray to an array?
workmad3 has quit [Ping timeout: 264 seconds]
kil0byte has joined #ruby
timonv has quit [Remote host closed the connection]
phipes has joined #ruby
dankest has joined #ruby
kofno has joined #ruby
phipes has quit [Client Quit]
kil0byte_ has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
mafolz has quit [Client Quit]
mafolz has joined #ruby
hakunin has quit [Remote host closed the connection]
zeeraw has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby
arietis has joined #ruby
mafolz has quit [Client Quit]
mafolz has joined #ruby
stewart_ has quit [Quit: Leaving.]
timonv has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
skasio has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
kil0byte_ has quit [Remote host closed the connection]
kil0byte has joined #ruby
kil0byte has quit [Remote host closed the connection]
khushildep has quit [Quit: khushildep]
Ontolog has joined #ruby
phipes has joined #ruby
dankest has quit [Quit: Leaving...]
dr_bob has joined #ruby
bradhe has quit [Remote host closed the connection]
mafolz has quit [Remote host closed the connection]
bradhe has joined #ruby
mafolz has joined #ruby
Rumsteak has quit [Quit: Rumsteak]
kil0byte has joined #ruby
tylersmith has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
persand has quit [Quit: persand]
ayaz has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
kenneth has joined #ruby
monkegjinni has joined #ruby
skoovdebo has joined #ruby
bigmac has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
filipe has joined #ruby
jimg has joined #ruby
welias has joined #ruby
dankest has joined #ruby
codecop has quit [Remote host closed the connection]
codecop has joined #ruby
ntus1017 has quit [Remote host closed the connection]
bigmac has joined #ruby
jpun has quit [Read error: Operation timed out]
persand has joined #ruby
lethjakman has joined #ruby
bean has joined #ruby
monkegjinni has quit [Remote host closed the connection]
shevy has quit [Remote host closed the connection]
arusso has quit [Read error: Operation timed out]
d_roge has quit [Read error: Operation timed out]
arusso has joined #ruby
arusso has quit [Changing host]
arusso has joined #ruby
julian-delphiki has quit [Ping timeout: 256 seconds]
d_roge has joined #ruby
waxjar has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
sideshowcoder has quit [Read error: Operation timed out]
cheese1756 has quit [Ping timeout: 256 seconds]
lethjakm1 has joined #ruby
waxjar has joined #ruby
three18ti has quit [Ping timeout: 256 seconds]
jimg has quit [Remote host closed the connection]
pi3r has joined #ruby
bigmac has quit [Quit: Leaving]
three18ti has joined #ruby
lethjakman has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
LennyLinux has joined #ruby
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
vlad_starkov has joined #ruby
altamic has joined #ruby
mklappstuhl has joined #ruby
jpun has joined #ruby
cheese1756 has joined #ruby
sideshowcoder has joined #ruby
tobiasvl has quit [Quit: kjerneoppdatering]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
undersc0re97 has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 241 seconds]
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
monkegjinni has quit [Read error: Connection reset by peer]
cj3kim has quit [Remote host closed the connection]
monkegjinni has joined #ruby
tvl has joined #ruby
jastix has joined #ruby
tvl is now known as Spug
Cultofmetatron has quit [Remote host closed the connection]
<sebastianb> pkh: .to_a maybe?
mklappstuhl has quit [Remote host closed the connection]
phipes has quit [Quit: phipes]
dhruvasagar has joined #ruby
dangerousdave has joined #ruby
prk has quit [Ping timeout: 248 seconds]
<sebastianb> yep, fosho
daniel_hinojosa has quit [Quit: Leaving.]
<sebastianb> it works ;)
welias has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
teclator has joined #ruby
hamakn_ has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
hamakn has joined #ruby
ntus1017 has joined #ruby
rickruby has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 276 seconds]
kil0byte has quit [Remote host closed the connection]
nomenkun has joined #ruby
threesome has joined #ruby
undersc0re97 has joined #ruby
Coffers has joined #ruby
mahmoudimus has joined #ruby
kil0byte has joined #ruby
Silent__ has joined #ruby
apok has joined #ruby
kirkstrobeck has joined #ruby
rdark has joined #ruby
camilasan has joined #ruby
<kirkstrobeck> having install issues
ellipse has joined #ruby
ellipse has quit [Client Quit]
phromo has joined #ruby
Hobogrammer_ has quit [Ping timeout: 256 seconds]
jprovazn_away is now known as jprovazn
danslo has joined #ruby
m8 has joined #ruby
ellipse has joined #ruby
<ericmathison> codezombie: maybe i'm showing my ignorance but are there certain scenarios where image.model, image.date_time, and the others are going to return nil or false and thus making the if statements necessary?
marr has joined #ruby
blaxter has joined #ruby
cj3kim has joined #ruby
MrZYX|off is now known as MrZYX
tylersmith has joined #ruby
decoponio has joined #ruby
bradhe has joined #ruby
alexmreis has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
alexmreis has left #ruby [#ruby]
saarinen has quit [Quit: saarinen]
bradhe has quit [Ping timeout: 248 seconds]
cj3kim has quit [Ping timeout: 256 seconds]
matchaw has joined #ruby
ioNull has quit [Ping timeout: 260 seconds]
troessner has joined #ruby
ioNull has joined #ruby
ioNull has quit [Max SendQ exceeded]
katsrc has quit [Ping timeout: 252 seconds]
ioNull has joined #ruby
ioNull has quit [Max SendQ exceeded]
zeeraw has joined #ruby
BizarreCake has joined #ruby
ioNull has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
ioNull has quit [Max SendQ exceeded]
ghr has joined #ruby
atmosx has joined #ruby
niceguyjames has joined #ruby
ioNull has joined #ruby
elaptics`away is now known as elaptics
ephemerian has joined #ruby
JohnBat26 has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
tethra has joined #ruby
peta_ has joined #ruby
jrhorn424 has quit [Quit: Textual IRC Client: www.textualapp.com]
megha has quit [Quit: WeeChat 0.4.0]
ferdev has quit [Quit: ferdev]
predator217 has quit [Ping timeout: 240 seconds]
rdark has quit [Ping timeout: 276 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
Iszak has joined #ruby
predator117 has joined #ruby
rdark has joined #ruby
lsmola has quit [Ping timeout: 264 seconds]
kil0byte_ has joined #ruby
decentrality has joined #ruby
mklappstuhl has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
kil0byte has quit [Ping timeout: 248 seconds]
kil0byte has joined #ruby
zastaph has joined #ruby
fixl has joined #ruby
iMadper has joined #ruby
slainer6_ has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
kil0byte_ has quit [Ping timeout: 248 seconds]
jkline__ has quit [Quit: jkline__]
ttt has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
codesoda has quit [Remote host closed the connection]
devoldmx has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
AgentWillyWonka has joined #ruby
lsmola has joined #ruby
lethjakm1 has quit [Ping timeout: 264 seconds]
noname001 has joined #ruby
timmow has joined #ruby
lsmola has quit [Client Quit]
lsmola has joined #ruby
subbyyy has joined #ruby
hamburger2000 has quit [Ping timeout: 245 seconds]
ferdev has joined #ruby
Ontolog has quit [Remote host closed the connection]
behemot has quit [Read error: Operation timed out]
Al___ has joined #ruby
agjacome has quit [Ping timeout: 256 seconds]
daniel_- has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
sivoais has joined #ruby
BonSequitur has quit [Remote host closed the connection]
skoovdebo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moofy has joined #ruby
fivetwentysix has joined #ruby
obs has joined #ruby
juo100 has left #ruby [#ruby]
vlad_starkov has joined #ruby
sivoais has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
tylersmith has joined #ruby
sivoais has joined #ruby
<moofy> Hello. I wondered if i could get some advice? I'm trying to make a teeny sinatra application so I can do some basic css/html stuff with livereload but I can't work out how to get rack to start guard. Any ideas?
<moofy> The idea is to use pow as a rack server and just have sinatra look for/compile stuff.
d11wtq has quit [Ping timeout: 248 seconds]
tylersmith has quit [Ping timeout: 248 seconds]
<fivetwentysix> moofy: rack to start guard?
<moofy> well, pow runs a rack server, and adds some niceties to let you use appname.dev
tvw has joined #ruby
<moofy> but i can't work out a way of using guard to launch an individual application
<fivetwentysix> moofy: yeah it's rackup with a proxy pass
mad_hatter_ has joined #ruby
<moofy> so i wondered if i could have sinatra launch a guard
reset has joined #ruby
<moofy> to compile scss and coffeescript
reset has quit [Client Quit]
w|t has joined #ruby
<fivetwentysix> sure
marcgg has joined #ruby
<fivetwentysix> `bundle exec guard&` in ruby
<fivetwentysix> i don't suggest it tho :)
b0oh has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
ry4nn has quit [Ping timeout: 276 seconds]
<fivetwentysix> why don't u just use recss?
<fivetwentysix> binding the bookmark to a hotkey would make your live much easier
<moofy> recss?
anderson has joined #ruby
<fivetwentysix> it's a bookmark
<fivetwentysix> that will reload ur css
<moofy> I could i guess, but the whole point of this really was to get livereload working
<fivetwentysix> oh you want to save and updates appear right?
nari_ has quit [Ping timeout: 245 seconds]
<moofy> yeah.
<fivetwentysix> no idea :)
<moofy> save = browser refresh
<moofy> i got it working without pow, just not with it
gyre007 has joined #ruby
sivoais has joined #ruby
<fivetwentysix> why use pow?
<moofy> so i wondered if there was some way to have rack launch some processes when it starts
<moofy> ease of headspace
<moofy> can run application.dev instead of http://localhost:4000 or whatever
<moofy> I thought it might be an interesting experiment to learn Ruby but it just turns out to be horrible :[
ry4nn has joined #ruby
agjacome has joined #ruby
<moofy> ooh
<fivetwentysix> yep
<fivetwentysix> that's how u run guard
<moofy> that might work
<fivetwentysix> but it'll block your process
<fivetwentysix> maybe have it run in a separate thread?
<moofy> how would i do that?
b0oh has left #ruby [#ruby]
<moofy> thanks, i guess it's time to do some reading.
gasbakid has joined #ruby
<fivetwentysix> I guess in your config.ru
<fivetwentysix> you just run your app in a thread
<fivetwentysix> and run guard in a different thread
<fivetwentysix> and it "should" work
<fivetwentysix> lol
alup has joined #ruby
<moofy> huh?
<fivetwentysix> moofy: config.ru is your rackup file…
mstuefer has joined #ruby
<moofy> but running in different threads?
<moofy> or is this what you mean with the fibre
<andrewh> win /win 1
<andrewh> it's all win
sivoais has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
k13n has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
nari_ has joined #ruby
emergion has joined #ruby
lyanchih has quit [Quit: lyanchih]
Spami has quit [Client Quit]
ttt has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
lsmola has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 264 seconds]
obs has quit [Read error: No route to host]
thone_ has joined #ruby
obs has joined #ruby
sivoais has joined #ruby
apok has quit [Quit: apok]
Elhu has joined #ruby
thone has quit [Ping timeout: 248 seconds]
marwinism has joined #ruby
subbyyy has quit [Ping timeout: 256 seconds]
Caperizm has joined #ruby
lyanchih has joined #ruby
jgrevich has quit [Remote host closed the connection]
sayan has joined #ruby
JohnBat26 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
emergion has quit [Quit: Computer has gone to sleep.]
sivoais has quit [Ping timeout: 264 seconds]
Caperizm has quit [Quit: Caperizm]
sivoais has joined #ruby
RORgasm has joined #ruby
moofy has quit [Quit: moofy]
Astral_ has joined #ruby
kimosabe has joined #ruby
Astralum has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
m8 has quit [Read error: Connection reset by peer]
RORgasm has quit [Ping timeout: 276 seconds]
Guest27861 has quit [Ping timeout: 264 seconds]
m8 has joined #ruby
niklasb has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
m8 has quit [Max SendQ exceeded]
nhhagen has joined #ruby
m8 has joined #ruby
sivoais has joined #ruby
m8 has quit [Max SendQ exceeded]
blacktulip has joined #ruby
YuryBatenko has quit [Quit: Computer has gone to sleep.]
daniel_- has quit [Ping timeout: 256 seconds]
persand has quit [Quit: persand]
ExxKA has joined #ruby
blacktulip has quit [Remote host closed the connection]
rae__ has quit [Quit: rae__]
obs has quit [Ping timeout: 252 seconds]
blacktulip has joined #ruby
DrCode has quit [Read error: Connection reset by peer]
Bry8Star has quit [Read error: Connection reset by peer]
end_guy has quit [Write error: Broken pipe]
atmosx has quit [Write error: Broken pipe]
adambeynon has joined #ruby
echevemaster has quit [Quit: Leaving]
sivoais has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
ttt has quit [Remote host closed the connection]
dangerousdave has joined #ruby
sivoais has joined #ruby
iMadper has quit [Remote host closed the connection]
tockitj has joined #ruby
ttt has joined #ruby
blaxter has quit [Ping timeout: 245 seconds]
nedbat has joined #ruby
tylersmith has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
clevermatt has joined #ruby
sivoais has joined #ruby
umren has joined #ruby
tylersmith has quit [Ping timeout: 248 seconds]
t_p has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
d11wtq has joined #ruby
obs has joined #ruby
monkegjinni has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
filipe has quit [Ping timeout: 252 seconds]
yashshah__ has quit [Read error: Connection reset by peer]
nari_ has quit [Ping timeout: 264 seconds]
nari_ has joined #ruby
kil0byte_ has joined #ruby
MrZYX is now known as MrZYX|off
sivoais has quit [Ping timeout: 264 seconds]
blaxter has joined #ruby
adambeynon has joined #ruby
ttt has quit [Remote host closed the connection]
sivoais has joined #ruby
Rumsteak has joined #ruby
yashshah has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
swex_ has joined #ruby
swex has quit [Ping timeout: 256 seconds]
D4T has joined #ruby
madb055 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
chichouw has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ttt has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mawueli has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
vlad_sta_ has joined #ruby
mawueli is now known as Guest78170
monkegjinni has joined #ruby
h8R has quit [Ping timeout: 256 seconds]
k13n has quit [Ping timeout: 260 seconds]
joshu has joined #ruby
camilasan has quit [Remote host closed the connection]
sivoais has joined #ruby
camilasan has joined #ruby
DrCode has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
DrCode has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
obs has quit [Ping timeout: 276 seconds]
monkegjinni has joined #ruby
GeissT_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
alexmreis has joined #ruby
breadthfirst has joined #ruby
skattyadz has joined #ruby
monkegjinni has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
filipe has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
falood has joined #ruby
GeissT has quit [Ping timeout: 276 seconds]
clevermatt has quit [Remote host closed the connection]
alexmreis has left #ruby [#ruby]
girija has quit [Ping timeout: 264 seconds]
DrCode has joined #ruby
clevermatt has joined #ruby
sivoais has joined #ruby
end_guy has joined #ruby
apeiros_ has quit [Remote host closed the connection]
chandankumar has joined #ruby
MrZYX|off is now known as MrZYX
monkegjinni has quit [Read error: Connection reset by peer]
Dan has joined #ruby
dankest has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Dave has joined #ruby
chandankumar has quit [Max SendQ exceeded]
Dave is now known as Guest77048
monkegjinni has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
chandankumar has joined #ruby
dangerousdave has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
haxrbyte has joined #ruby
mstuefer has quit [Ping timeout: 260 seconds]
sivoais has quit [Ping timeout: 252 seconds]
GeissT_ has quit [Quit: MillBroChat AdIRC User]
umren has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
chandankumar has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
sivoais has joined #ruby
chandankumar has joined #ruby
kiri has quit [Ping timeout: 245 seconds]
clevermatt has quit [Remote host closed the connection]
hasse has joined #ruby
kiri has joined #ruby
berkes has joined #ruby
arya_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
umren has joined #ruby
persand has joined #ruby
monkegjinni has joined #ruby
chandankumar has quit [Max SendQ exceeded]
khushildep has joined #ruby
Domon has quit [Remote host closed the connection]
chandankumar has joined #ruby
chandankumar has quit [Excess Flood]
clevermatt has joined #ruby
chandankumar has joined #ruby
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
sivoais has quit [Ping timeout: 260 seconds]
Bry8Star has joined #ruby
breadthfirst has quit [Remote host closed the connection]
chandankumar has quit [Max SendQ exceeded]
girija has joined #ruby
sivoais has joined #ruby
blaxter has quit [Ping timeout: 245 seconds]
haxrbyte_ has joined #ruby
chandankumar has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
GeissT has joined #ruby
halida_ has joined #ruby
halida_ has quit [Client Quit]
xcv has joined #ruby
lsmola has joined #ruby
slainer68 has joined #ruby
afd__ is now known as tibi
breadthfirst has joined #ruby
lyanchih has quit [Quit: lyanchih]
chandankumar has quit [Max SendQ exceeded]
haxrbyte has quit [Ping timeout: 248 seconds]
thesheff17 has joined #ruby
breadthfirst has quit [Remote host closed the connection]
slainer6_ has quit [Ping timeout: 256 seconds]
pcarrier_ has joined #ruby
chandankumar has joined #ruby
sambao21 has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 264 seconds]
niklasb has quit [Ping timeout: 252 seconds]
sayan has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
arya_ has joined #ruby
tylersmith has joined #ruby
sambao21 has quit [Ping timeout: 256 seconds]
davetherat has quit [Remote host closed the connection]
shellox_ has joined #ruby
<shellox_> hi
falood has quit [Remote host closed the connection]
jnoob22 has joined #ruby
davetherat has joined #ruby
mmitchell has joined #ruby
<shellox_> anyone use RSS::Atom::Feed in ruby 2 ?
emergion has joined #ruby
monkegji_ has joined #ruby
<shellox_> in older versions RSS::Atom::Feed.new { |f| f.title = "foo" } worked
PaulePanter has joined #ruby
yannis has quit [Quit: Bye!]
mercwithamouth has joined #ruby
PaulePanter has left #ruby [#ruby]
cj3kim has joined #ruby
monkegj__ has joined #ruby
monkegjinni has quit [Ping timeout: 256 seconds]
blaxter has joined #ruby
lyanchih has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
machuga|away is now known as machuga
sivoais has quit [Ping timeout: 264 seconds]
sleetdrop has quit [Ping timeout: 246 seconds]
monkegji_ has quit [Ping timeout: 256 seconds]
cj3kim has quit [Ping timeout: 260 seconds]
hamed_r has joined #ruby
yshh has quit [Remote host closed the connection]
sivoais has joined #ruby
Matip has joined #ruby
Xeago has joined #ruby
nari_ has quit [Ping timeout: 256 seconds]
hamakn has quit [Ping timeout: 246 seconds]
lyanchih has quit [Quit: lyanchih]
henn1nk has joined #ruby
<henn1nk> How do i exclude . and .. from Dir.entries?
rakl has joined #ruby
monkegjinni has joined #ruby
obs has joined #ruby
monkegji_ has joined #ruby
lyanchih has joined #ruby
monkegj__ has quit [Ping timeout: 260 seconds]
girija has quit [Ping timeout: 260 seconds]
zeeraw has quit [Quit: Computer has gone to sleep.]
<Spug> henn1nk: just reject them?
xcv_ has joined #ruby
<Spug> henn1nk: or use Dir.glob if you're on linux
<Spug> iirc
sivoais has quit [Ping timeout: 248 seconds]
gyre008 has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
nanothief has joined #ruby
<henn1nk> Spug: but Dir.glob('./downloads/*') displays downloads in the filename
monkegjinni has quit [Ping timeout: 240 seconds]
sivoais has joined #ruby
girija has joined #ruby
kimosabe has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
workmad3 has joined #ruby
gyre007 has quit [Ping timeout: 256 seconds]
xcv has quit [Ping timeout: 260 seconds]
<Zelest> dirs = Dir.entries('/'); dirs[2, dirs.length-2]
<henn1nk> ah :)
ttt has quit [Remote host closed the connection]
<Zelest> no idea if that's the cutest solution :P
allaire has joined #ruby
ramblex has joined #ruby
clevermatt has quit [Remote host closed the connection]
<Zelest> dirs.each { |d| puts d unless d == '.' || d == '..' }
statarb3 has quit [Quit: Leaving]
kofno has joined #ruby
hamakn has joined #ruby
<Zelest> in case . and .. aren't first in that array
kstephens has quit [Ping timeout: 256 seconds]
dr_bob has quit [Quit: Leaving.]
bjeanes has quit [Ping timeout: 276 seconds]
lyanchih has quit [Quit: lyanchih]
kstephens has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
clevermatt has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
obs has quit [Ping timeout: 252 seconds]
bjeanes has joined #ruby
hamakn has joined #ruby
sivoais has quit [Ping timeout: 252 seconds]
mstuefer has joined #ruby
k13n has joined #ruby
catphish has joined #ruby
sivoais has joined #ruby
DrHeiter23 has joined #ruby
<catphish> can anyone suggest an HTTP client library that supports streaming responses? unfortunately, while Net::HTTP does, it requires it to be done inside a block
gyre008 has quit [Remote host closed the connection]
gyre007 has joined #ruby
Caperizm has joined #ruby
<waxjar> there's a great spreadsheet that compares "all" http clients for Ruby, lemme find the link
arya has joined #ruby
elliptical has joined #ruby
<catphish> the reason being that i need to make an http request, then pass its response to rack to stream through to a client
arya_ has quit [Ping timeout: 248 seconds]
kimosabe has joined #ruby
mtfk__ is now known as mtfk
<catphish> thanks
guiocava_ has joined #ruby
clevermatt has quit [Remote host closed the connection]
epta has quit [Remote host closed the connection]
ellipse has quit [Ping timeout: 256 seconds]
kimosabe has left #ruby [#ruby]
Caperizm has quit [Client Quit]
Mattx has joined #ruby
notbrent_ is now known as notbrent
guiocavalcanti has quit [Ping timeout: 256 seconds]
<catphish> httpclient looks good from that s/s
arya has quit [Ping timeout: 248 seconds]
sivoais has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
chandankumar has quit [Ping timeout: 260 seconds]
skoovdebo has joined #ruby
ia___ has quit [Ping timeout: 248 seconds]
Matip has quit [Ping timeout: 248 seconds]
sivoais has joined #ruby
moos3 has joined #ruby
RORgasm has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
monkegji_ has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
berkes has quit [Ping timeout: 240 seconds]
Guest73627 has joined #ruby
Guest73627 has left #ruby [#ruby]
monkegjinni has quit [Read error: Connection reset by peer]
ia___ has joined #ruby
nari_ has joined #ruby
monkegjinni has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
RORgasm has quit [Ping timeout: 264 seconds]
LennyLinux has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
moos3 has quit [Excess Flood]
bubblehead has joined #ruby
monkegjinni has joined #ruby
moos3 has joined #ruby
moos3 has quit [Excess Flood]
nobitanobi has joined #ruby
berkes has joined #ruby
sivoais has quit [Ping timeout: 248 seconds]
moos3 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
bubblehead has quit [Read error: Connection reset by peer]
NimeshNeema has quit [Excess Flood]
moos3 has quit [Excess Flood]
<catphish> aaargh, httpclient also expects a block in order to do streaming responses
bubblehead has joined #ruby
moos3 has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
guiocavalcanti has joined #ruby
moos3 has quit [Excess Flood]
braoru has joined #ruby
sivoais has joined #ruby
moos3 has joined #ruby
lovclrtxt has quit [Excess Flood]
stenno|work has joined #ruby
epta has joined #ruby
keyvan has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
keyvan has quit [Excess Flood]
guiocava_ has quit [Ping timeout: 248 seconds]
robottinosino has quit [Quit: WeeChat 0.4.0]
Elhu has quit [Quit: Computer has gone to sleep.]
<stenno|work> good day, is this the right place to ask about a problem concerning passenger configuration?
keyvan has joined #ruby
nobitanobi has quit [Quit: Leaving]
<matti> stenno|work: Consider #rubyonrails too.
<stenno|work> ok
deeepblue has quit [Quit: deeepblue]
zeeraw has joined #ruby
b0oh1 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 248 seconds]
freeayu has quit [Quit: This computer has gone to sleep]
mmitchell has quit [Remote host closed the connection]
nettoweb has joined #ruby
carloslopes has joined #ruby
daniel_- has joined #ruby
Guest27861 has joined #ruby
NimeshNeema has joined #ruby
sivoais has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
blaxter has quit [Read error: Operation timed out]
kil0byte has joined #ruby
sivoais has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Dummies_freelanc has joined #ruby
monkegjinni has joined #ruby
epta has quit [Ping timeout: 260 seconds]
clevermatt has joined #ruby
epta has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
nettoweb has quit [Read error: Connection reset by peer]
kil0byte_ has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
nettoweb has joined #ruby
DrHeiter23 has quit [Quit: DrHeiter23]
pipework has joined #ruby
paulgatt has joined #ruby
kil0byte_ has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
eka has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
<timmow> does anyone know of anything that can check ruby indentation matches certain rules, for use in CI?
monkegjinni has joined #ruby
roadt_ has quit [Ping timeout: 256 seconds]
kil0byte has quit [Ping timeout: 260 seconds]
xcv_ has quit [Remote host closed the connection]
xcv has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
ferdev has quit [Quit: ferdev]
<stenno|work> hmm as #rubyonrails is either ignoring me or doesn't have a solution for my problem, let me try here again: i am trying to install redmine following http://www.redmine.org/projects/redmine/wiki/InstallRedmineOnDebianStableApacheMysqlPassenger. At point 1.8, after executing passenger-install-apache2-module, the tutorial mentions putting some lines in /etc/apache/mods-available/passenger.load, but it doesn't exists there - however ther
<stenno|work> e is a passenger.load in /usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.2/debian/. So did i follow the tutorial wrong, or shoudl i use the existing .load, or should i create a new .load file and delete the old or...
cj3kim has joined #ruby
r0bglees0n has joined #ruby
m8 has joined #ruby
monkegjinni has joined #ruby
machuga is now known as machuga|away
niceguyjames has joined #ruby
sambao21 has joined #ruby
sivoais has joined #ruby
atno has quit [Ping timeout: 276 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
machuga|away is now known as machuga
pipework has quit [Remote host closed the connection]
monkegjinni has joined #ruby
cj3kim has quit [Ping timeout: 246 seconds]
k13n_ has joined #ruby
ewag_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
k13n has quit [Ping timeout: 260 seconds]
devoldmx3 has joined #ruby
mark_locklear has joined #ruby
monkegjinni has joined #ruby
manutter has joined #ruby
ewag has quit [Ping timeout: 256 seconds]
postmodern has quit [Quit: Leaving]
manutter has quit [Client Quit]
mtfk has quit [Quit: leaving]
manutter has joined #ruby
epta has quit [Ping timeout: 256 seconds]
pkh has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
sivoais has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
manutter has quit [Client Quit]
nettoweb has quit [Read error: Connection reset by peer]
Rumsteak has quit [Quit: Rumsteak]
pskosinski has joined #ruby
nettoweb has joined #ruby
chxane has joined #ruby
sivoais has joined #ruby
matchaw has quit [Ping timeout: 256 seconds]
epta has joined #ruby
RonScagz has joined #ruby
Guest78170 has quit []
fridim__ has joined #ruby
stenno_ has joined #ruby
tommyvyo has joined #ruby
mawueli has joined #ruby
ravster has joined #ruby
Morrolan has quit [Ping timeout: 256 seconds]
mawueli is now known as Guest58007
yshh has joined #ruby
mark_locklear has quit [Remote host closed the connection]
joshu has quit [Remote host closed the connection]
<ravster> hello everyone
<ravster> is there a UTM->latitude/longitude converter library available in ruby?
devoldmx3 has quit [Read error: Connection reset by peer]
bugg has joined #ruby
krz has quit [Quit: krz]
arya has joined #ruby
Morrolan has joined #ruby
stenno|work has quit [Ping timeout: 248 seconds]
sivoais has quit [Ping timeout: 256 seconds]
paulgatt has left #ruby [#ruby]
paulgatt has joined #ruby
yshh has quit [Ping timeout: 256 seconds]
geekbri has joined #ruby
sivoais has joined #ruby
b0oh1 has left #ruby [#ruby]
Guest58007 has quit [Ping timeout: 256 seconds]
alexgordon has joined #ruby
YuryBatenko has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<stenno_> hello i execute a rake task, and i get the error:
<stenno_> Gemfile syntax error:
devoldmx has joined #ruby
browndawg has joined #ruby
<stenno_> what does that mean? where is the error?
sambao21 has quit [Quit: Computer has gone to sleep.]
iMadper has joined #ruby
iMadper has left #ruby [#ruby]
tomkad has joined #ruby
Elhu has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mark_locklear has joined #ruby
wargasm has quit [Ping timeout: 252 seconds]
devoldmx has quit [Ping timeout: 248 seconds]
bluOxigen has joined #ruby
dustint has joined #ruby
BeegPeeg00 has left #ruby [#ruby]
niklasb has joined #ruby
MoraaroM has joined #ruby
sivoais has quit [Ping timeout: 248 seconds]
tvw has quit [Ping timeout: 252 seconds]
ttt has joined #ruby
crankycoder has joined #ruby
gaahrdner has joined #ruby
arya has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
YuryBatenko has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mercwithamouth has joined #ruby
sivoais has joined #ruby
jurbat has joined #ruby
Elhu has quit [Ping timeout: 260 seconds]
jurbat has left #ruby [#ruby]
Elhu has joined #ruby
dustint_ has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Client Quit]
tk_ has joined #ruby
blueOxigen has joined #ruby
ramblex has quit [Ping timeout: 276 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
huoxito has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
tomzx_mac has joined #ruby
aef has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
m8 has quit [Quit: Sto andando via]
atno has joined #ruby
hamed_r has quit [Quit: Leaving]
dustint has quit [Quit: Leaving]
dustint_ has quit [Quit: Leaving]
sivoais has joined #ruby
dustint_ has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
ferdev has joined #ruby
Neomex has joined #ruby
k13n_ has quit [Ping timeout: 260 seconds]
Neomex has quit [Client Quit]
ramblex has joined #ruby
jdkram has joined #ruby
obs has joined #ruby
kf8a has joined #ruby
nedbat has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
<ravster> stenno_: what does you Gemfile look like?
<stenno_> ravster, let me pastebin it
<stenno_> er gist
sivoais has quit [Ping timeout: 260 seconds]
kil0byte has joined #ruby
roadt_ has joined #ruby
k13n has joined #ruby
jdkram has quit [Quit: jdkram]
rakl has quit [Quit: sleeping]
<stenno_> ravster, to be precise, it is the gemfile provided by the current version of redmine
sivoais has joined #ruby
<stenno_> the error seems to occur with the database adapters - a colleague already sugested i need to install an adapter gem or something like that?
statarb3 has joined #ruby
decoponio has quit [Quit: Leaving...]
kil0byte_ has quit [Ping timeout: 252 seconds]
<stenno_> we are using the mysql database
csaunders has joined #ruby
krawchyk has joined #ruby
tommyvyo has quit [Quit:]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
<stenno_> er sorry
strax has joined #ruby
kindjal has joined #ruby
nouh has joined #ruby
<ravster> stenno_: I can't see anything weird. Maybe something with the "=>" being phased out?
<ravster> what ruby version?
<stenno_> ruby -v gives me ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-linux]
<ravster> try "platforms: [:mri, :mingw]". Thats all I can think of.
<stenno_> will give it a try, thanks a lot for your help
breakingthings has joined #ruby
shellox_ has quit [Quit: leaving]
sivoais has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
roadt_ has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby
sivoais has joined #ruby
nettoweb has quit [Quit: nettoweb]
roadt_ has joined #ruby
Kar- has quit [Remote host closed the connection]
fridim__ has quit [Read error: Operation timed out]
berkes has quit [Read error: Operation timed out]
cj3kim has joined #ruby
afd__ has joined #ruby
bugg has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 246 seconds]
csaunders has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
splittingred has joined #ruby
Lubinski has joined #ruby
dallasm has joined #ruby
<stenno_> we pinpoint the problem to the line: database_config = YAML::load(ERB.new(IO.read(database_file)).result)
tibi has quit [Ping timeout: 256 seconds]
<stenno_> we will if the relevant libraries are loaded, thanks again for your help
DonRichie has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
yshh has joined #ruby
JohnBat26 has joined #ruby
yshh has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 276 seconds]
robottinosino has joined #ruby
yshh has joined #ruby
bean__ has joined #ruby
ewag_ is now known as ewag
ewag has quit [Changing host]
ewag has joined #ruby
rudisimo has joined #ruby
miskander has joined #ruby
sivoais has joined #ruby
johnrlive has joined #ruby
jerius has joined #ruby
sambao21 has joined #ruby
dallasm has quit []
kobain has joined #ruby
skoovdebo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcromartie has joined #ruby
jcromartie has quit [Max SendQ exceeded]
bugg has joined #ruby
jcromartie has joined #ruby
ariedler has joined #ruby
shevy has joined #ruby
<shevy> hey
<shevy> what would you guys use:
<shevy> Time.now.strftime('%H:%M:%S')
<shevy> vs
<shevy> Time.now.strftime '%H:%M:%S'
<waxjar> the latter
ntus1017 has joined #ruby
<Spug> yes, drop the parentheses
casheew has quit [Read error: Connection reset by peer]
osvico has joined #ruby
casheew has joined #ruby
blacktulip has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
<shevy> ok
<Spug> it doesn't matter though, as you're probably aware
emergion has quit [Quit: Computer has gone to sleep.]
<Spug> but for readability, no parens is better
<shevy> it matters insofar that, as trivial as it may sound, it stops my thinking :-)
<Spug> how so?
justsee has quit [Ping timeout: 252 seconds]
sivoais has quit [Ping timeout: 252 seconds]
<shevy> I was porting an old project, and in that old code I use two methods
<shevy> in one method I had:
<shevy> Time.now.strftime '%H:%M:%S'
<shevy> and in the other, for year.month.time, I was using .strftime with ()
<shevy> and when I re-arranged the methods closer to each other, it made me furious that I was not consistent
sivoais has joined #ruby
<Spug> hehe
xcv_ has joined #ruby
wesside has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
wmoxam has joined #ruby
matchaw has joined #ruby
thesheff17 has joined #ruby
jamesaxl has joined #ruby
sayan has quit [Read error: Connection reset by peer]
atno has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 248 seconds]
johnmilton has joined #ruby
pipework has joined #ruby
dougireton has joined #ruby
tomzx_mac has quit [Ping timeout: 276 seconds]
xcv has quit [Ping timeout: 256 seconds]
ntus1017 has quit [Remote host closed the connection]
persand has quit [Quit: persand]
cofin has joined #ruby
sivoais has quit [Ping timeout: 252 seconds]
dougireton has quit [Ping timeout: 264 seconds]
statarb3 has quit [Read error: Connection reset by peer]
roadt_ has quit [Ping timeout: 276 seconds]
tommyvyo has joined #ruby
nezumi has quit [Ping timeout: 252 seconds]
sivoais has joined #ruby
roadt_ has joined #ruby
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
hogeo has quit [Remote host closed the connection]
girija has quit [Ping timeout: 246 seconds]
ellipse has joined #ruby
ramblex has quit [Remote host closed the connection]
girija has joined #ruby
ramblex has joined #ruby
monkegjinni has joined #ruby
gaahrdner has quit [Remote host closed the connection]
gaahrdner has joined #ruby
elliptical has quit [Ping timeout: 245 seconds]
sami has left #ruby [#ruby]
rickruby has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
roadt_ has quit [Ping timeout: 256 seconds]
sailias has joined #ruby
mmitchell has joined #ruby
v0n has joined #ruby
<stenno_> ok, now we pinpoint it to YAML::load failing _silently_. rake --trace does not give any errors, and we have no clue at all what went wront
<stenno_> wrong(
roadt_ has joined #ruby
<banister_> stenno_: use pry-rescue
<stenno_> it would be awesome if we could rake make talk more
rippa has joined #ruby
whowantstolivefo has quit [Ping timeout: 256 seconds]
<banister_> stenno_: github.com/conradirwin/pry-rescue
<stenno_> banister_, i will look up what that is, thanks
<banister_> stenno_: it'll drop you into the error context
<stenno_> ah thanks
<stenno_> greak
mmitchell has quit [Remote host closed the connection]
<stenno_> great even
sivoais has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
roadt_ has quit [Max SendQ exceeded]
mmitchell has joined #ruby
gaahrdner has quit [Ping timeout: 264 seconds]
blaxter has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
sivoais has joined #ruby
generali_ has joined #ruby
<stenno_> sorry to bug you again, but after installing, " RAILS_ENV=production rescue rake db:migrate --trace " does not give any extra output apart from Gemfile syntax error:
jtharris has joined #ruby
roadt_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
RORgasm has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
<stenno_> which was located to the line YAML::load
<stenno_> wait, i will try something else, just a second please
atno has joined #ruby
sayan has joined #ruby
<banister_> stenno_: you could try pinging cirwin, im not that familiar with pry-rescue + rails
<stenno_> here we are, duh! i executed the line with the output in an irb
<stenno_> Psych::SyntaxError: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
<stenno_> that is the error, i will look into that
AndChat| has quit [Ping timeout: 264 seconds]
<stenno_> banister_, never mind, thanks again for your help :)
ravster has quit [Ping timeout: 248 seconds]
<stenno_> so the .yml file seems to be borked
<stenno_> er wait
sivoais has quit [Ping timeout: 264 seconds]
arya has joined #ruby
roadt_ has quit [Ping timeout: 256 seconds]
<stenno_> oh no
vlad_starkov has quit [Remote host closed the connection]
roadt_ has joined #ruby
sivoais has joined #ruby
monkegji_ has joined #ruby
elepfontius has joined #ruby
ffranz has joined #ruby
* stenno_ facepalms hard
<stenno_> there were tabs in the database.yml
monkegjinni has quit [Read error: No route to host]
<stenno_> sorry for all the hassle :|
ananthakumaran has quit [Quit: Leaving.]
k13n has quit [Ping timeout: 260 seconds]
nowthatsamatt has joined #ruby
freerobby has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<banister_> stenno_: cool :) not sure it would have been useful in this case, but pry-rescue and pry (generally, incl. pry-rails) are very cool pieces of kit, u should check them out ;)
beneggett has joined #ruby
Xeago has quit [Remote host closed the connection]
jurbat has joined #ruby
monkegjinni has joined #ruby
<apeiros> stenno_: and that silently errors?
subbyyy has joined #ruby
<apeiros> if so, that's bad…
dhruvasagar has quit [Ping timeout: 252 seconds]
<stenno_> apeiros, i only got the error by executing YAML::Load in the IRB. the rake task still failed silently, although i used rescue and --trace
<stenno_> banister_, one last tiem thank you and sorry that you had to waste your time because of my stupidity
<banister_> i didnt waste time :)
nettoweb has joined #ruby
<banister_> i just linked to a project on github
<banister_> hehe
Xeago has joined #ruby
sivoais has quit [Ping timeout: 261 seconds]
LaPetiteFromage has joined #ruby
sivoais has joined #ruby
Zai00 has joined #ruby
kpshek has joined #ruby
vlad_starkov has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
DrCode has joined #ruby
persand has joined #ruby
headius has joined #ruby
ravster has joined #ruby
tylersmith has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ellipse has quit [Ping timeout: 256 seconds]
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
sivoais has quit [Ping timeout: 264 seconds]
lethjakm1 has joined #ruby
cj3kim has joined #ruby
tylersmi_ has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tvw has joined #ruby
rickruby has quit [Remote host closed the connection]
t_p has joined #ruby
alx- has joined #ruby
sivoais has joined #ruby
_nitti has joined #ruby
bugg has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 264 seconds]
jdkram has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
kpshek has quit []
atno has quit [Ping timeout: 240 seconds]
linusoleander has joined #ruby
monkegjinni has joined #ruby
<linusoleander> I'm using irb version 0.9.6 and I'm having problem with the output not being printed directly into the console.
<linusoleander> Right now it opens up something like more where I've to press "q" to get out from, why is that?
failshell has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
m_3 has quit [Ping timeout: 252 seconds]
k13n has joined #ruby
wolcanus has joined #ruby
BizarreCake has quit [Quit: Leaving]
lethjakm1 has quit [Ping timeout: 252 seconds]
braoru has quit [Quit: Leaving]
arturaz has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
nettoweb_ has joined #ruby
kpshek has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
nettoweb_ is now known as nettoweb
jprovazn is now known as jprovazn_away
roadt_ has quit [Ping timeout: 256 seconds]
sivoais has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
rhys has joined #ruby
<ericwood> because it's a crapload of output
monkegjinni has joined #ruby
wesside has joined #ruby
miskander has quit [Quit: miskander]
miskander has joined #ruby
interactionjaxsn has joined #ruby
RORgasm has joined #ruby
dougireton has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
atno has joined #ruby
evenix has joined #ruby
sivoais has joined #ruby
k13n has quit [Ping timeout: 260 seconds]
Squarepy has joined #ruby
johnnyfuchs has joined #ruby
_Amaan has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ner0x has joined #ruby
dougireton has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
forrest has joined #ruby
catphish has left #ruby ["Leaving"]
Kricir has joined #ruby
tagrudev has quit [Remote host closed the connection]
MarioEIU has joined #ruby
MarioEIU has left #ruby [#ruby]
thomasfedb has quit [Ping timeout: 252 seconds]
l33 has joined #ruby
nari_ has quit [Ping timeout: 264 seconds]
sivoais has quit [Ping timeout: 260 seconds]
roadt_ has joined #ruby
nedbat has joined #ruby
madb055 has quit [Ping timeout: 260 seconds]
thomasfedb has joined #ruby
tockitj has quit [Read error: No route to host]
evenix has quit [Remote host closed the connection]
wsterling has joined #ruby
apeiros has quit [Remote host closed the connection]
sivoais has joined #ruby
evenix has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
lewix has quit [Remote host closed the connection]
daniel_- has quit [Quit: WeeChat 0.4.0]
dougireton has joined #ruby
evenix has quit [Ping timeout: 252 seconds]
e-dard has left #ruby [#ruby]
nettoweb_ has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
nettoweb_ is now known as nettoweb
ipalaus has quit [Ping timeout: 248 seconds]
sivoais has quit [Ping timeout: 260 seconds]
gaahrdner has joined #ruby
tomkad has quit [Ping timeout: 252 seconds]
sivoais has joined #ruby
monkegjinni has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
wsterling has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
generali_ has quit [Remote host closed the connection]
nettoweb has quit [Read error: Connection reset by peer]
akells` has joined #ruby
tbrock has joined #ruby
gaahrdner has quit [Ping timeout: 245 seconds]
<tbrock> hey guys, do you know how to stop the gmail-ruby gem from producing verbose output when you send a message
<tbrock> err ruby-gmail
nettoweb has joined #ruby
beneggett has joined #ruby
bugg has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
P1RATEZ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
dougireton has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 252 seconds]
stoic_squirrel has joined #ruby
fdelacruz has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
jerius has joined #ruby
<fdelacruz> ruby is a modern lang
sivoais has quit [Ping timeout: 276 seconds]
<fdelacruz> influenced by perl and other langs
jdkram has quit [Quit: jdkram]
b0oh has joined #ruby
noop has quit [Ping timeout: 276 seconds]
<fdelacruz> can somebody explain why inherit the chomp method from perl??
<tbrock> its actually coming from the mail gem
<MrZYX> fdelacruz: why not?
sivoais has joined #ruby
vlad_starkov has joined #ruby
<fdelacruz> i dont know, because modern langs should know how to deal with inputs
LennyLinux has joined #ruby
adambeynon has joined #ruby
<fdelacruz> java does
<fdelacruz> or does it?
slainer6_ has joined #ruby
<MrZYX> not sure why you would want to take control from the programmer whether to include trailing newlines or not
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
slainer68 has quit [Ping timeout: 256 seconds]
<MrZYX> it's also useful beyond that, since you can chomp arbitrary characters, I actually used it with something different already (though I don't remember where currently)
<fdelacruz> ok
<canton7> I won't want the language to magically remove every newline at the end of every string ever. unless that's the case, you're going to need chomp at some point
b0oh has quit [Ping timeout: 260 seconds]
subbyyy has quit [Ping timeout: 264 seconds]
<MrZYX> ah, generating nice paths if you're unsure about your base: root_path.chomp('/')
pduin has quit [Remote host closed the connection]
<ChristianS> .oO( "if you want your string to actually end with a newline, just add TWO newlines." )
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<fdelacruz> it makes sense now
lmduve has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ntus1017 has joined #ruby
slainer68 has joined #ruby
sambao21 has joined #ruby
sivoais has quit [Ping timeout: 276 seconds]
apeiros has joined #ruby
saarinen has joined #ruby
wsterling has joined #ruby
<tbrock> MrZYX: can you think of why the mail gem uses puts all over the place?
<tbrock> its really annoying
evenix has joined #ruby
<MrZYX> bad style?
slainer6_ has quit [Ping timeout: 256 seconds]
<failshell> hey. do you guys know of a web-based file manager written in ruby? basically, i want to expose a directory for upload/downloads
evenix has quit [Remote host closed the connection]
<tbrock> MrZYX: its a hugely popular gem
davetherat has quit [Remote host closed the connection]
b0oh has joined #ruby
davetherat has joined #ruby
<MrZYX> not really
<apeiros> hugely popular doesn't guarantee good stlye
evenix has joined #ruby
<apeiros> *style
sivoais has joined #ruby
acrussell has joined #ruby
<apeiros> MrZYX: yes it is - since it backs things like actionmailer ;-)
nettoweb_ has joined #ruby
<MrZYX> and then it only got 25k downloads?
falood has joined #ruby
<MrZYX> note there's both, ruby-gmail and gmail
<MrZYX> and he isn't talking about mail
<apeiros> 15,250,375 total downloads; 100,875 for this version
markalanevans has joined #ruby
umren has quit [Ping timeout: 264 seconds]
<apeiros> ah
<tbrock> yeah ruby-gmail uses mail
<tbrock> and it spews output when you send a message
<tbrock> which is super annoying
nettoweb has quit [Ping timeout: 256 seconds]
daniel_- has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<apeiros> so which one spews? mail or ruby-gmail?
_nitti has quit [Remote host closed the connection]
w|t has quit [Ping timeout: 276 seconds]
beneggett has quit [Ping timeout: 256 seconds]
kil0byte has quit [Ping timeout: 240 seconds]
_nitti has joined #ruby
kil0byte has joined #ruby
<tbrock> am i missing something or should those gems be less noisy
<tbrock> i see every communication with the smtp server
krawchyk_ has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
acrussell has left #ruby [#ruby]
<MrZYX> not sure where that would generate noise
<apeiros> so we're back at my previous question - which one spews? sounds like it was ruby-gmail.
nettoweb_ has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
r0bglees0n has quit [Ping timeout: 248 seconds]
<apeiros> tbrock: unsubstantiated accusations don't help. do the homework. figure out where the noise really originates from.
<tbrock> i think it may be from my logger
<tbrock> which has level debug
<apeiros> you can do that by e.g. patching out $stdout.puts and $stderr.puts
<apeiros> lol?
<MrZYX> ^
<apeiros> then it's *probably* supposed to be verbose.
markalanevans has quit [Client Quit]
<tbrock> wasn't accusing just trying to figure it out
<tbrock> yeah but that is the logger for my class
<tbrock> im not sure why it would affect the output of the mail gem
krawchyk has quit [Ping timeout: 256 seconds]
Travis-42 has joined #ruby
lewis_ has joined #ruby
Travis-42 has left #ruby [#ruby]
<tbrock> and this happens in pry, without my code
lewis_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
<tbrock> just using the gem
beneggett has joined #ruby
Travis-42 has joined #ruby
<tbrock> so that doesn't make much sense
sivoais has quit [Ping timeout: 240 seconds]
jerius has quit []
<Travis-42> I'm looking at a function that ends with "an_array.each do |value| …. end if an_array" -- what exactly is the "if an_array" doing at the end of the same line of the "end" statement?
fdelacruz has quit [Quit: EPIC5-1.1.5[1683] - amnesiac : Instant asshole - just add alcohol]
<apeiros> Travis-42: try: `puts "Hi" if false`
<apeiros> and `puts "Hi" if true`
codesoda has joined #ruby
[[thufir]] has joined #ruby
<tbrock> ah
<Travis-42> apeiros: ah, it's controlling whether the entire array is looped through or not
<Travis-42> thanks
<tbrock> nice catch
carloslopes has quit [Remote host closed the connection]
hasse has quit [Ping timeout: 250 seconds]
sivoais has joined #ruby
<stenno_> i can finally announce that we successfully migrated redmine2 on squeeze to redmine 3 on wheezy :D
<stenno_> thanks for your help, everyone
codesoda has quit [Remote host closed the connection]
<tbrock> thanks MrZYX
<tbrock> that was awesome
<MrZYX> that was grep -Rin debug
lethjakm1 has joined #ruby
saarinen has quit [Quit: saarinen]
r0bglees0n has joined #ruby
blandflakes has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
<stenno_> i still wonder why the rake task didn't shout at me when YAML::Load failed
<stenno_> it would have saved me a bit of time ^^"
Travis-42 has left #ruby [#ruby]
joshmyers has joined #ruby
<stenno_> as recommended and mentioned before, i used both pry-rescue and --trace
jkamenik has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
<joshmyers> hi guys, I have something like this: https://gist.github.com/joshmyers/8f05f568d7185909616b
<stenno_> i will definetely look into this a bit closer,
<joshmyers> but I actually want it to take it away
<joshmyers> so it would end up like [0,0,5]
sivoais has quit [Ping timeout: 245 seconds]
<joshmyers> in the above example
<joshmyers> any ideas?
jkamenik has left #ruby [#ruby]
Davey has joined #ruby
alex__c2022 has joined #ruby
fuzzyhorns has joined #ruby
linusoleander has left #ruby [#ruby]
<apeiros> joshmyers: zip + map
mawueli has joined #ruby
<joshmyers> apeiros: ! :)
<joshmyers> the man!
<apeiros> >> [0, 0, 17].zip([0, 0, 22]).map { |a,b| b-a }
<eval-in> apeiros => [0, 0, 5] (http://eval.in/31166)
mawueli is now known as Guest73853
sivoais has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
tylersmi_ has quit [Remote host closed the connection]
<apeiros> or use the Vector class (require 'matrix')
jrhorn424 has joined #ruby
<tbrock> MrZYX: cool
tockitj has joined #ruby
<stenno_> hmm zip is cool
<joshmyers> ahhh
<stenno_> now if ruby had actual list comprehensions :P
<joshmyers> thanks apeiros, never used zip before :)
andikr has quit [Remote host closed the connection]
<canton7> stenno_, I thoughr that. Then I noticed that select/map is often the same length as the equivalent list comprehension, and clearer
<apeiros> stenno_: I prefer methods over syntax
Squarepy has quit [Remote host closed the connection]
aganov has quit [Quit: aganov]
mando has joined #ruby
ioNull has joined #ruby
Ontolog has joined #ruby
decentrality has quit [Quit: decentrality]
ckrailo has joined #ruby
<stenno_> fair enough, you two - i think i just got carried away by a friend showing me some stuff with perl6
generalissimo has joined #ruby
<stenno_> for this problem, .zip really gives an elegant solution
<canton7> I was thinking of python list comprehensions - are perl ones much different?
<stenno_> sorry, got to go right now, will be online in half an hour or and show you some examples - iirc those should be similar to python
<stenno_> also note that perl6 != perl :P
<stenno_> anyway, til later
<joshmyers> zip boggles my head
<stenno_> :D
stenno_ has quit [Quit: Leaving]
bugg is now known as _KGBot_
<banister_> stenno_: with lazy enumerators in 2.0 you should have the same complexity too
monkegjinni has joined #ruby
<banister_> (1..100).lazy.select(&:even?).map { |v| v * 10000 }.first(20)
<Veejay> I have a question for you guys. Suppose you have two objects a and b, is there a way to formulate a.send(m1).send(m2).slice(three attributes) == b.send(m1).send(m2).slice(three attributes) without having to write all this
<Veejay> i.e. when you pass the two objects in the same black box the output is the same
tk_ has quit [Quit: ばいばい]
<Veejay> I should write a method eh?
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<Veejay> To group all that logic
sivoais has quit [Ping timeout: 245 seconds]
<Veejay> Or is there some other way
chrishough has joined #ruby
arya has left #ruby [#ruby]
arya has joined #ruby
jlast has quit [Remote host closed the connection]
<MrZYX> [a, b].map {|e| e.send(:bla) }.uniq.size == 1 though not sure I'd use that in production code :P
sleetdrop has joined #ruby
<Veejay> heh
<Veejay> Well it does the job though
cj3kim has joined #ruby
wolcanus has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
slash_nick has joined #ruby
sivoais has joined #ruby
_nitti has joined #ruby
guiocava_ has joined #ruby
guiocavalcanti has quit [Ping timeout: 256 seconds]
jtharris has quit [Quit: WeeChat 0.4.0]
mark_locklear has quit [Ping timeout: 256 seconds]
mikepack has joined #ruby
beneggett has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
<Veejay> Is there a common Ruby idiom for methods that take either a symbol or a hash as their parameters?
<Veejay> Something that can for example take :today or :in => 1.week or something
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<Veejay> By idiom I mean something nice to retrieve and manipulate said parameters without having to reinvent the wheel
sivoais has joined #ruby
wolcanus has joined #ruby
wolcanus has quit [Remote host closed the connection]
carloslopes has joined #ruby
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
wolcanus has joined #ruby
saarinen has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
JoeTheGuest has quit [Ping timeout: 252 seconds]
jeffreylevesque_ has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
JoeTheGuest has joined #ruby
patricksroberts_ has quit [Ping timeout: 252 seconds]
kf8a has quit [Quit: Computer has gone to sleep.]
chrisja has joined #ruby
slash_nick has quit [Ping timeout: 246 seconds]
apalmblad has quit [Quit: apalmblad]
tvw has quit []
v0n has quit [Ping timeout: 264 seconds]
apalmblad has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
mityaz has joined #ruby
monkegjinni has quit [Remote host closed the connection]
bradhe has joined #ruby
sivoais has joined #ruby
phromo has quit []
carloslopes has quit [Ping timeout: 256 seconds]
m_3 has joined #ruby
stenno has joined #ruby
camilasan has quit [Remote host closed the connection]
lyanchih has joined #ruby
dmiller has joined #ruby
ayaz has quit [Quit: Bye!]
dmiller has quit [Remote host closed the connection]
apok has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dmiller has joined #ruby
apok has quit [Client Quit]
wargasm has joined #ruby
jkline__ has joined #ruby
jkline__ has quit [Client Quit]
bradhe has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
jdunck has joined #ruby
dekz__ has quit [Ping timeout: 252 seconds]
moeSeth has quit [Ping timeout: 252 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
tbrock_ has joined #ruby
caveat- has quit [Ping timeout: 252 seconds]
sivoais has quit [Ping timeout: 246 seconds]
atmosx has quit [Remote host closed the connection]
caveat- has joined #ruby
maodun has joined #ruby
jamesaxl has joined #ruby
<WhereIsMySpoon> Anyone used metric_fu gem here?
lmduve has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
sivoais has joined #ruby
[[thufir]] has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
jtharris has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
ivanoats has joined #ruby
devdazed has quit [Ping timeout: 245 seconds]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
sayan has joined #ruby
altamic has quit [Quit: altamic]
verdin has joined #ruby
toastynerd has joined #ruby
toastynerd is now known as tmorgan
pagios has joined #ruby
jlast has joined #ruby
<pagios> i would like to add a line on a specific line i na file, how can i do that?
<stenno> open you text editor, add the line
NimeshNeema has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
devdazed has joined #ruby
<stenno> my work here is done!
tylersmith has joined #ruby
<rgrinberg> pagios: there's the __LINE__ variable if that's what you want
kirkstrobeck has quit [Quit: kirkstrobeck]
<apeiros> stenno: fuck that, I'm outta here? :)
<stenno> :P
<apeiros> pagios: you'd read the file line by line, add the line, write the lines back.
Guest73853 has quit []
sivoais has quit [Ping timeout: 252 seconds]
Neomex has joined #ruby
carloslopes has joined #ruby
ivanoats is now known as IvanOnAMac
Neomex has quit [Client Quit]
<apeiros> see IO::readlines and IO#puts (or IO::write, whatever floats your boat)
zastern has joined #ruby
IvanOnAMac is now known as ivanoats
<stenno> apeiros: the perl6 way of substracting the content of an array from another array: [4,5,6] »-« [1,2,3] (not exactly list comprehension though)
ananthakumaran has joined #ruby
<pagios> hmm ok so no way to just reference a line directly , i have to readline by line to reach the line i am targetting
Dan has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
<r0bglees0n> pagios: it is not a hard thing to do, i'm sure you'll figure it out pretty fast.
<pagios> r0bglees0n: yea but just trying to find the fastest way :)
sivoais has joined #ruby
maodun has left #ruby [#ruby]
<r0bglees0n> pagios: I use would use readlines to return an array, and replace the line by index.
Kudos has quit [Quit: ZNC - http://znc.in]
<apeiros> pagios: um, with .readlines you get an array
<apeiros> so you do get to the line directly
jastix has quit [Quit: Leaving]
<apeiros> or what do you mean? unless your file is indexed in some way, there's no way to know where line nr X is… you're bound to read.
ivanoats is now known as brookr_
brookr_ is now known as ivanoats
<stenno> you could use sexy unix tools like sed
<apeiros> which have to read too
<apeiros> since they can't magically know where line X starts either
<stenno> well yes
_KGBot_ has quit [Remote host closed the connection]
<stenno> %x{ sed -n '23p' myfile }
<stenno> line 23 of the file
eldariof has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
jlast has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 260 seconds]
kirkstrobeck has joined #ruby
mafolz has quit [Ping timeout: 264 seconds]
l33_ has joined #ruby
<stenno> that would be useless if you wanted to insert something with ruby after that line though
<stenno> which i think you want >_>
<apeiros> :)
erry has quit [Quit: brb]
girija has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
erry_ has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
jbueza has joined #ruby
Criztian has quit [Remote host closed the connection]
habib has quit [Quit: Leaving]
l33_ has quit [Remote host closed the connection]
erry_ is now known as erry
sivoais has joined #ruby
brianherman has joined #ruby
jlast has quit [Read error: Connection reset by peer]
umren has joined #ruby
jlast_ has joined #ruby
bradhe has joined #ruby
l33 has quit [Ping timeout: 256 seconds]
zastern_ has joined #ruby
Squarepy has joined #ruby
Voodoofish430 has joined #ruby
_KGBot_ has joined #ruby
naquad has quit [Ping timeout: 245 seconds]
falood has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
stenno has quit [Quit: leaving]
apalmblad has quit [Quit: apalmblad]
gkunno has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
DaniG2k has joined #ruby
tjbiddle has joined #ruby
mikepack has joined #ruby
zastern has quit [Ping timeout: 256 seconds]
nwertman has joined #ruby
xardas has joined #ruby
codesoda has joined #ruby
jamie_ca_ has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mzarella has joined #ruby
monkegjinni has joined #ruby
naquad has joined #ruby
<Luyt> I made a transcript of DHH's interview for FLOSS79, about his history as a programmer and what he likes about Ruby, see http://www.transcribed-interview.com/dhh-rails-david-heinemeier-hansson-interview-randal-schwartz-floss.html
mzarella has quit [Client Quit]
obs has quit [Remote host closed the connection]
arya has quit [Ping timeout: 240 seconds]
Cultofmetatron has quit [Remote host closed the connection]
superscott[8] has joined #ruby
gkunno has joined #ruby
arya has joined #ruby
sivoais has quit [Ping timeout: 260 seconds]
lyanchih has quit [Quit: lyanchih]
tbrock_ has quit [Quit: Computer has gone to sleep.]
jjasonclark has joined #ruby
BizarreCake has joined #ruby
joshmyers has quit [Remote host closed the connection]
<DaniG2k> Luyt: thanks for that, will read it l8r
sivoais has joined #ruby
rads has quit [Quit: rads]
graft has joined #ruby
<Luyt> DaniG2k: It was quite some work ;-) I hope my transcript is useful for the generations to come.
<DaniG2k> :)
noname001 has quit [Remote host closed the connection]
yashshah_ has joined #ruby
<graft> hi, i have a curb question - how do i save a url straight to disk instead of loading it into memory and writing the file?
yashshah has quit [Ping timeout: 246 seconds]
xcv_ has quit [Remote host closed the connection]
xcv has joined #ruby
<bean__> graft: "save a url"... you mean save the contents of the page to disk?
dankest has joined #ruby
DaniG2k has left #ruby [#ruby]
tvw has joined #ruby
cj3kim has quit [Remote host closed the connection]
k3rn3lito has joined #ruby
roa has joined #ruby
roa has quit [Changing host]
roa has joined #ruby
<graft> bean__: yeah
peteyg has joined #ruby
<graft> bean__: i don't want to have an 80Gb string in memory before i write it
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<bean__> require 'curb'
<bean__> Curl::Easy.download(url, filename)
<bean__> ?
<bean__> I'm not sure if that loads it into memory first
Ontolog has quit [Remote host closed the connection]
<bean__> i'd imagine that it does.
<graft> hmm
jonathanwallace has quit [Quit: WeeChat 0.4.0]
<Luyt> Aha, you're talking about streaming then?
jonathanwallace has joined #ruby
joshu has joined #ruby
<Luyt> Like what Streamripper does with internet radios, which are also accessible by an URL?
sivoais has quit [Ping timeout: 246 seconds]
<graft> actually i just want to grab a tarball from somewhere, just wondering if there's a way to avoid doing `wget #{file}`
<Luyt> internet radios are in essence URLs which you open and read and provide unlimited data. It never ends!
kjellski has joined #ruby
frem has joined #ruby
<graft> bean__: that seems to be the way, thanks
<bean__> np.
frem has quit [Max SendQ exceeded]
<Luyt> graft: I guess it depends on the library that you use to retrieve data using HTTP
earthquake has quit [Ping timeout: 248 seconds]
ckipel has joined #ruby
sivoais has joined #ruby
mawueli has joined #ruby
mawueli is now known as Guest69430
codecop has joined #ruby
crazymykl has quit [Ping timeout: 256 seconds]
alup has quit [Quit: Leaving]
ivanoats_ has joined #ruby
moofy has joined #ruby
spider-mario has joined #ruby
Fretta has joined #ruby
saarinen has quit [Quit: saarinen]
ivanoats has quit [Ping timeout: 256 seconds]
machuga is now known as machuga|away
verdin has quit [Remote host closed the connection]
_KGBot_ is now known as bugg_
sayan has quit [Quit: Leaving]
gasbakid has quit [Quit: Quitte]
sayan has joined #ruby
bugg_ is now known as [bugg]
sivoais has quit [Ping timeout: 256 seconds]
crazymykl has joined #ruby
sivoais has joined #ruby
jgrevich has joined #ruby
apok has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
jerius has joined #ruby
oiievc has joined #ruby
backjlack has quit [Remote host closed the connection]
moeSeth has joined #ruby
binaryplease has joined #ruby
kil0byte has quit [Remote host closed the connection]
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
backjlack has joined #ruby
arya has quit [Ping timeout: 241 seconds]
mstuefer has quit [Ping timeout: 260 seconds]
arya has joined #ruby
roa is now known as Roa
Zai00 has quit [Quit: Zai00]
<graft> is it just me, or is File.symlink busted? If i do File.symlink "path/to/file", "path/to/link", I get a busted link pointing to "path/to/path/to/file"
sivoais has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
sivoais has joined #ruby
apalmblad has joined #ruby
stkowski has joined #ruby
elaptics is now known as elaptics`away
slainer68 has quit [Remote host closed the connection]
<apeiros> graft: just you
<apeiros> maybe your relative paths are off?
Cultofmetatron has joined #ruby
artemeff has joined #ruby
artemeff has quit [Remote host closed the connection]
<graft> apeiros: how do you mean?
<apeiros> I mean that maybe "path/to/file" isn't the correct relative path
nomenkun has quit [Ping timeout: 264 seconds]
nettoweb has quit [Quit: nettoweb]
<graft> hmm, ln has this same behavior... i guess i just don't understand symlinks
ewag has quit [Remote host closed the connection]
jamie_ca_ has quit [Quit: jamie_ca_]
Cultofmetatron has quit [Read error: Connection reset by peer]
persand has quit [Quit: persand]
machuga|away is now known as machuga
sivoais has quit [Ping timeout: 248 seconds]
ewag has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
tjbiddle has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
io_syl has joined #ruby
gaahrdner has joined #ruby
twoism has joined #ruby
thomasle_ has joined #ruby
Cultofmetatron has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
zeade has joined #ruby
<MrZYX> try handing it the realpath
Cultofmetatron has joined #ruby
sepp2k has joined #ruby
binaryplease has quit [Read error: Operation timed out]
Elhu has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
alx- has quit [Read error: Connection reset by peer]
Alex- has joined #ruby
Kricir has quit [Remote host closed the connection]
anildigi- has quit [Changing host]
anildigi- has joined #ruby
arya has quit []
arya has joined #ruby
graft has quit [Ping timeout: 246 seconds]
anildigi- is now known as anildigital
ephemerian has quit [Quit: Leaving.]
sivoais has quit [Ping timeout: 252 seconds]
DrCode has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
ravster has quit [Quit: Leaving.]
rads has joined #ruby
shevy has quit [Remote host closed the connection]
hakunin has joined #ruby
c0rn has joined #ruby
sivoais has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Guest27861 has quit [Ping timeout: 248 seconds]
mzarella has joined #ruby
<mzarella> what is the dot notation called?
<apeiros> which one?
<mzarella> 3.to_s
<apeiros> method invocation, I'd say
saarinen has joined #ruby
Ontolog has joined #ruby
sambao21 has joined #ruby
DrCode has joined #ruby
<mzarella> in python, there's str(3)
<mzarella> in ruby, it's 3.to_s, but i thought there was another name for that
<apeiros> you call the 'to_s' method on the object '3'.
<apeiros> not much to name there.
gaahrdner has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
brotatos has joined #ruby
Kov|sumika has joined #ruby
gaahrdne_ has joined #ruby
bradhe has quit [Remote host closed the connection]
<pagios> can i replace the last line of a file by using lines.last = "new text for last line" assuming i am using readlines to read this file?
DanKnox_away is now known as DanKnox
<MrZYX> >> [].last = 'foo'
<eval-in> MrZYX => undefined method `last=' for []:Array (NoMethodError) ... (http://eval.in/31170)
Ontolog_ has joined #ruby
<MrZYX> >>[][-1] = "foo"
<eval-in> MrZYX => index -1 too small for array; minimum: 0 (IndexError) ... (http://eval.in/31171)
<MrZYX> eh
b0oh has quit [Quit: Leaving.]
mrsolo has joined #ruby
rupee has joined #ruby
<MrZYX> >> ['bar'][-1] = "foo"
<eval-in> MrZYX => "foo" (http://eval.in/31172)
zodiak has quit [Ping timeout: 245 seconds]
<pagios> MrZYX: http://pastie.org/7939893 i need to replace the last line with my own text
<MrZYX> easy to just try it out ;)
sivoais has quit [Read error: Connection reset by peer]
<moofy> Uhm, does anyone have any suggestions for a new programmer to get some experience? I've done most of the basics but every time I make something I get horribly lost and frustrated and it doesn't work. Is there anything sort of intermediate out there that's more about programming thinking than code syntax?
sivoais has joined #ruby
Squarepy has quit [Remote host closed the connection]
Ontolog has quit [Ping timeout: 248 seconds]
banjara has joined #ruby
codesoda has quit [Remote host closed the connection]
Kov|sumika has quit [Client Quit]
Ontolog has joined #ruby
pinpin404 has joined #ruby
nobitanobi has joined #ruby
davetherat has quit [Read error: Connection reset by peer]
<nobitanobi> Hi. I have a question about Bundler groups. How does ruby know which group it is running at (:test, :development...)?
<browndawg> moofy: Code
davetherat has joined #ruby
<browndawg> moofy: and read code
Kov|sumika has joined #ruby
<nobitanobi> I mean, for Rails there is the Rails.env, but what about other Ruby programs?
<moofy> It just gets so disheartening, nothing I make ever works
jdunck has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
<MrZYX> nobitanobi: ruby doesn't. Bundler knows by telling it what groups to require, have a Look at Bundler#setup and Bundler#require
Kov|sumika is now known as Kovensky
Kovensky has quit [Client Quit]
banister_ has quit [Ping timeout: 245 seconds]
<nobitanobi> uhmmm MrZYX ok...
girija has joined #ruby
khushildep has quit [Ping timeout: 276 seconds]
Kov|sumika has joined #ruby
Kov|sumika is now known as Kovensky
Ontolog_ has quit [Ping timeout: 248 seconds]
<browndawg> moofy: We all know how you feel. Thing is, you've got to suck at something for a long time before you get good at it. Here - http://norvig.com/21-days.html & http://kadavy.net/blog/posts/permission-to-suck/. Good luck.
<nobitanobi> MrZYX, ok let's see
<nobitanobi> thank you
sleetdrop has quit [Quit: Computer has gone to sleep.]
<pagios> any easier method than File.open to write to a file? something like writelines / readlines :)
<apeiros> pagios: I already pointed you at File::write
<MrZYX> File.write ary.join("\n")
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<pagios> ok great, sorry missed that
<MrZYX> plus correct filename etc of course
sivoais has quit [Ping timeout: 240 seconds]
zeeraw has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
whowantstolivefo has joined #ruby
<nobitanobi> MrZYX, I think I am lost here. My question is, how does Bundle know in which "group" is currently installing at?
nowthatsamatt has quit [Quit: nowthatsamatt]
<MrZYX> you mean you want to know how you can exclude an group from being installed?
johnrliv_ has joined #ruby
sivoais has joined #ruby
johnrlive has quit [Read error: Connection reset by peer]
scottmey has joined #ruby
<nobitanobi> say I have a Sinatra project, and I want some gems to be installed just in development and others just installed in production
<MrZYX> bundle help install
mark_locklear has joined #ruby
<MrZYX> have a look at the --without option
<nobitanobi> in Rails I know that if I use group :development, group :production , it will automatically do that
bradhe has joined #ruby
<MrZYX> no it won't
<nobitanobi> what?
<nobitanobi> mmm
beneggett has joined #ruby
<MrZYX> doing RAILS_ENV=production bundle doesn't change a thing about what groups are installed
[bugg] has quit [Remote host closed the connection]
umren has quit [Ping timeout: 252 seconds]
<nobitanobi> I guess I'm going to read again what Bundler is and how does actually work
<nobitanobi> I've been blindly using it in Rails
<yxhuvud> the homepage is pretty enlightening.
<whowantstolivefo> MrZYX: ~ im keep reading the book of Russ Olsen Eloquent Ruby and i am almost at half of book
d2dchat has joined #ruby
cj3kim has joined #ruby
<spike|spiegel> and how is it?
woolite64__ has joined #ruby
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
kenneth has quit [Quit: kenneth]
banisterfiend has joined #ruby
<banisterfiend> moofy: libgosu.org
DanKnox is now known as DanKnox_away
<banisterfiend> moofy: writing a game is the best (and most fun way) to learn a new language
<banisterfiend> IMO :)
<banisterfiend> you get immediate results, and you're encouraged to stick with it
<aedornm> Anyone in CO Springs looking for a job?
arya has quit []
zodiak has joined #ruby
girija has quit [Ping timeout: 248 seconds]
bradhe has quit [Remote host closed the connection]
arya has joined #ruby
jp___ has joined #ruby
xcv_ has joined #ruby
woolite64_ has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 252 seconds]
jp___ has quit [Client Quit]
oiievc has quit [Remote host closed the connection]
patricksroberts_ has joined #ruby
elepfontius has quit [Remote host closed the connection]
sivoais has joined #ruby
xcv has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
monkegjinni has quit [Remote host closed the connection]
Dummies_freelanc has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
katsrc has joined #ruby
alvaro_o has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
akells` has quit [Remote host closed the connection]
Kudos has joined #ruby
zeade has joined #ruby
jeebster has joined #ruby
brianpWins has joined #ruby
c0rn has quit [Ping timeout: 256 seconds]
Kudos has quit [Quit: IRCRelay - http://ircrelay.com]
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has joined #ruby
Kudos has quit [Excess Flood]
DanKnox_away is now known as DanKnox
Kudos has joined #ruby
dhruvasagar has joined #ruby
workmad3 has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
sivoais has quit [Ping timeout: 248 seconds]
hamburger2000 has joined #ruby
sivoais has joined #ruby
c0rn has joined #ruby
cj3kim has quit [Remote host closed the connection]
chrishough has joined #ruby
zombor has joined #ruby
zombor has left #ruby ["Leaving..."]
sayan has quit [Ping timeout: 248 seconds]
jerius_ has joined #ruby
dekz__ has joined #ruby
interactionjaxsn has quit [Ping timeout: 248 seconds]
jerius has quit [Ping timeout: 260 seconds]
jerius_ is now known as jerius
mad_hatter_ has quit [Ping timeout: 246 seconds]
rins has joined #ruby
pi3r has quit [Quit: Leaving]
IrishGringo has joined #ruby
Xeago has joined #ruby
brotatos has quit [Read error: Connection reset by peer]
ewag has quit [Changing host]
ewag has joined #ruby
v0n has joined #ruby
<ner0x> Issue: I have an array of "postal_code" => [lat, long]. Try to go through a list of records and see if one of the keys matches /^record.postal_code/. Any suggestions? Seems like a lot of loops.
JohnBat26 has quit [Ping timeout: 248 seconds]
sivoais has quit [Ping timeout: 256 seconds]
Al___ has quit [Quit: Al___]
<terrellt> ner0x: You mean you have a hash with that? If so, you should just be able to do postal_codes.has_key?(record.postal_code.to_s)
akells` has joined #ruby
<MrZYX> yeah, that was somehow unclear, do you have example data and desired result?
frem has joined #ruby
guns has joined #ruby
frem has quit [Max SendQ exceeded]
sivoais has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ananthakumaran has quit [Quit: Leaving.]
atmosx has joined #ruby
<ner0x> terrellt: MrZYX: Something like that except in a regex form.
kenneth has joined #ruby
<terrellt> ner0x: Gonna need examples if the above isn't enough.
<ner0x> terrellt: Canadian postal_codes only include the first three letterNumberLetter combination. I need to see if record.postal_code matches the first three rather than the entire string.
mahmoudimus has joined #ruby
<ner0x> So postal_code list has "A3B" but record.postal_code is "A3B 6K3"
Ontolog_ has joined #ruby
<terrellt> ner0x: Ah. Do you want it to return the first matched record or just true/false?
<ner0x> terrellt: First matches should work. It will have a few duplicates but I'm assuming they'll be close enough for this use.
evenix has quit [Read error: Connection reset by peer]
evenix has joined #ruby
<terrellt> ner0x: If you want all the matches you'll have to do something like postal_codes.keys.reject{|x| someregexconditionorlogicorwhatevs}
pitzips has joined #ruby
<ner0x> terrellt: Fair enough. I just wanted to see if there was a way to not do 30000 * 30000 loops.
browndawg has left #ruby [#ruby]
Proshot has joined #ruby
relix has joined #ruby
<relix> hey guys
Ontolog has quit [Ping timeout: 248 seconds]
<terrellt> That's O(N) loops.
<terrellt> Er, O(N)*. It's not O(N^2)
<relix> is there a best practice approach to do "@a ||= {}"
<ner0x> terrellt: I have to do it for around 30k records.
<relix> but then also populate the new object with a few fields that need some code executed (i.e. not inline)
<terrellt> ner0x: Right, you'll have to loop over your keys once. Not twice, no?
kf8a has joined #ruby
NimeshNeema has joined #ruby
<ner0x> terrellt: Right just once. But there are around 30000 geodata records and about 30000 rows. (Sorry, the numbers being close probably gave youthat idea).
<MrZYX> relix: I'd write a private method that always generates the new object and do @a ||= that_method
rezzack has joined #ruby
<terrellt> If the numbers are that close there's not much you can do. =(
miskander has quit [Quit: miskander]
allaire has quit [Quit: allaire]
<relix> MrZYX: but the method I'm using is already solely responsible for this var
<terrellt> Other than like, querying a database with an indexed text field and doing LIKE 'this%'
sivoais has quit [Read error: Connection reset by peer]
ivanoats_ is now known as ivanoats
<ner0x> terrellt: That's what I thought. It's alright. It only has to be done once in a blue moon.
<relix> i.e. def a; @a ||= {}; end
sivoais has joined #ruby
<ner0x> terrellt: Only took 10min last time.
<MrZYX> relix: don't see domain duplication here, one is an accessor, the other ones creates a new whatever
mad_hatter_ has joined #ruby
<terrellt> ner0x: Rofl. Consider using a database query - I'm sure an indexed text field OR query would be far faster than 10 minutes.
miskander has joined #ruby
Guest27861 has joined #ruby
miskander has quit [Client Quit]
<ner0x> terrellt: It takes longer to load them than to sort through the array.
<ner0x> terrellt: Since it's 30k reads.
<atmosx> ner0x: you're trying to find a match between two big lists?
<ner0x> atmosx: No. Not quite.
<atmosx> ah k
<ner0x> atmosx: I've gotten it figured out. :)
<terrellt> atmosx: An imprecise match. Can't use set operaitons. =(
<terrellt> Operations too.
ramblex has quit [Remote host closed the connection]
<relix> MrZYX: just found out about ActiveSupport's memoize module, that does what you describe, I'll use that
Zolo has joined #ruby
<relix> MrZYX: thanks!
miskander has joined #ruby
r0bby has joined #ruby
<terrellt> ner0x: 30k reads?
<ner0x> terrellt: One read for each postal to see if it matches.
nomenkun has joined #ruby
interactionjaxsn has joined #ruby
<ner0x> terrellt: The multiple loop method will probably work best. I'm benchmark both to be sure though.
<terrellt> ner0x: Is any of this stuff in a database?
khismetix has joined #ruby
BizarreCake has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
Guest69430 has quit [Ping timeout: 256 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
<ner0x> terrellt: Yes. The postal => [lat,long] is.
kpshek has quit []
jrhorn424 has quit [Quit: Textual IRC Client: www.textualapp.com]
mawueli has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
mawueli is now known as Guest85580
arturaz has joined #ruby
r0bby_ has joined #ruby
r0bby has quit [Ping timeout: 276 seconds]
<terrellt> ner0x: So why not load up all your zip codes and build a query, "select * from postals WHERE zipcode LIKE 'firstone%' OR zipcode LIKE 'secondone%'", then take the result set and populate your objects from it.
<terrellt> Should take a fraction of the time assuming your zipcode field is indexed.
sivoais has quit [Ping timeout: 248 seconds]
v0n has quit [Quit: WeeChat 0.4.1]
v0n has joined #ruby
<apeiros> string zipcode?
<terrellt> apeiros: In this case it's fortunate, since he's looking for inexact matches.
<apeiros> could do with integers too, but not as elegant.
sivoais has joined #ruby
<apeiros> though, oracle e.g. would accept a like on an integer field.
kirun has joined #ruby
lethjakm1 has quit [Ping timeout: 256 seconds]
kpshek has joined #ruby
<terrellt> I wonder how long a 30,000 OR statement query would take to run..
Guest85580 has quit [Ping timeout: 248 seconds]
<terrellt> Not exactly ideal.
<apeiros> hu?
<apeiros> why 30000 ORs?
<apeiros> zipcodes are fixed size I'd assume, so it's just a between
<MrZYX> worst case an IN
<terrellt> They're zipcode partials.
<terrellt> The things in firstone, secondone, etc.
viszu has joined #ruby
<apeiros> what do you have, 5 digits? if so, '50%' would be `between 50000 and 50999`
<ner0x> terrellt: I'll check it out. :)
<MrZYX> I wonder if you can exceed the maximum length for a sql statement
jlast_ has quit [Remote host closed the connection]
<apeiros> terrellt: so what? prefix based it can be done with the between as showed
peterhellberg has joined #ruby
umren has joined #ruby
jlast has joined #ruby
xcv_ has quit [Remote host closed the connection]
<apeiros> the difficulty is in that you have to properly adjust the limits first
sivoais has quit [Client Quit]
<apeiros> '%50%' would be harder
<terrellt> apeiros: His zipcode examples included letters, for canada.
brotatos has joined #ruby
mklappstuhl has joined #ruby
xcv has joined #ruby
<apeiros> terrellt: aha. that'd not be a numeric zip code and not be in the scope anyway :-)
beneggett has joined #ruby
tomsthumb has joined #ruby
<ner0x> apeiros: And it's not how close, it's how many match the first. I'm just matching the start, since none will be less than 3 character.
m8 has joined #ruby
<terrellt> apeiros: Right, %50% would defeat the purpose, since text indexes are left->right.
kpshek has quit [Client Quit]
<ner0x> 'record.postal%' will suffice.
<apeiros> ner0x: you might want to think about what '50%' and between 50000 and 50999 do in a 5 digit number ;-)
<cofin> I'm currently listening to: Give Life Back to Music by Daft Punk from the album Random Access Memories
<apeiros> (hint: exactly the same)
generalissimo has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
<ner0x> apeiros: In this example all the US postal codes will have at least 5 digits, Canadian 5. So if it doesn't match all 5 it doesn't match.
arturaz has quit [Quit: Leaving]
<ner0x> apeiros: I see what you're saying. In another scenario that would be a pitfall I'd have to compensate for. :)
kenneth has quit [Quit: kenneth]
<apeiros> with variable digits, it'd be ORed betweens. i.e., you only need N OR clauses, where N is the maximum number of digits.
<apeiros> anyway, purely theoretical since you're doing a like anyway :-p
arya has quit [Ping timeout: 276 seconds]
<apeiros> or rather, where N is the number of possible digit counts (i.e. if it's 5-7 digits, then N=3)
<terrellt> ner0x: In any case, if you can find a way to make the database do the heavy lifting I wouldn't be surprised to see things drop under a second.
beneggett has quit [Ping timeout: 246 seconds]
<terrellt> ner0x: Er, well, under a minute.
<apeiros> it's less about the db doing the heavy lifting probably, and more the time required to deserialize a lot of objects
kenneth has joined #ruby
<apeiros> I missed the start of the discussion, though
tjbiddle has joined #ruby
<apeiros> under a minute? ok, then I guess deserialization isn't the only culprit :D
brotatos has quit [Read error: Connection reset by peer]
arya has joined #ruby
skattyadz has quit [Quit: skattyadz]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
saarinen has quit [Quit: saarinen]
<ner0x> It's not a minute per record. it's 10 minutes for 38k of records. lol
<cofin> I'm currently listening to: Touch (feat. Paul Williams) by Daft Punk from the album Random Access Memories
<MrZYX> cofin: I think posting that to #ruby is quite offtopic ;P
<cofin> lol
<cofin> i agree
<cofin> wtf
<cofin> sorry
<terrellt> ner0x: I'm currently syncing data between a database and a text file with roughly 60k records. Takes about 12 seconds.
<cofin> MrZYX: totally disabled that feature. Had no idea that it was turned on by default
kpshek has joined #ruby
mklappstuhl has joined #ruby
<terrellt> In any case, I gotta bail.
spacemud has quit [Ping timeout: 264 seconds]
<ner0x> terrellt: COPY does it in less than a second.
<ner0x> terrellt: It's the manipulation of the data to fit the constraints of the app that piss with the time.
csaunders has joined #ruby
cj3kim has joined #ruby
<ner0x> terrellt: Thanks for all the help.
jdunck has quit [Quit: Computer has gone to sleep.]
tealmage has joined #ruby
BrianJ has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
codesoda has joined #ruby
ebobby has joined #ruby
khismetix has joined #ruby
viszu has quit [Quit: Leaving.]
Guest77048 has quit [Read error: Connection reset by peer]
viszu has joined #ruby
skattyadz has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
spacemud has joined #ruby
codesoda has quit [Ping timeout: 248 seconds]
Dreamer3 has quit [Quit: Leaving...]
saarinen has joined #ruby
beneggett has joined #ruby
k13n has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
sivoais has joined #ruby
ehaliewicz has joined #ruby
skattyadz has quit [Quit: skattyadz]
ravster has joined #ruby
jdunck has joined #ruby
nobitanobi has quit [Ping timeout: 256 seconds]
peterhellberg has quit [Remote host closed the connection]
viszu has quit [Quit: Leaving.]
ctp has joined #ruby
Dreamer3 has joined #ruby
tymat has joined #ruby
fschuindt has joined #ruby
JZTech101 has joined #ruby
viszu has joined #ruby
<fschuindt> I have installed ruby 2.0 using rvm in a ubuntu server vps, but it seems only installed to one user. How can I make it work for all users?
blaxter has quit [Ping timeout: 252 seconds]
flx1rc1 has joined #ruby
choobie has joined #ruby
bradhe has joined #ruby
Astral_ has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: Computer has gone to sleep.]
Astral_ has joined #ruby
Evixion` has joined #ruby
DanKnox is now known as DanKnox_away
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
csaunders has joined #ruby
mmitchel_ has joined #ruby
generali_ has joined #ruby
Evixion has quit [Ping timeout: 260 seconds]
beneggett has quit [Ping timeout: 246 seconds]
chrishunt has quit [Quit: ZzZzZz...]
csaunders has quit [Client Quit]
mmitchell has quit [Read error: Operation timed out]
adambeynon has joined #ruby
kpshek has quit []
tymat has quit [Quit: kthnxbye!]
DanKnox_away is now known as DanKnox
tymat has joined #ruby
kaboofa has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
Spami has joined #ruby
miskander has quit [Quit: miskander]
<kaboofa> hi rubyists, i wanted to know if someone could help me out with what should be something super simple.. i'm trying to read a file, but when i write `f = File.read('/path/to/some/file')` I get Errno::EINVAL: invalid argument - /path/to/some/file. I've checked that my user has correct permissions.. what am I doing wrong?
io_syl has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
flx1rc1_ has joined #ruby
<MrZYX> ensure that your path doesn't contain special characters, like newlines
emmanuelux has joined #ruby
<kaboofa> MrZYX: the argument i'm passing to File.read, or $PATH in my shell?
mstuefer has joined #ruby
<MrZYX> the argument
io_syl has joined #ruby
<kaboofa> i typed the path in by hand ;)
<apeiros> best you inspect it (p path, or puts path.inspect)
gasbakid has joined #ruby
<apeiros> o0
ctp has quit [Quit: Leaving...]
<MrZYX> what's the real value then?
<kaboofa> fn = '/Users/tom/work/chuck-rails-gh.log'.chomp; fh = File.read(fn)
pitzips has quit [Quit: Leaving]
<kaboofa> Errno::EINVAL: Invalid argument - /Users/tom/work/chuck-rails-gh.log from (irb):3:in `read'
m8 has quit [Quit: Sto andando via]
mityaz has quit [Quit: See ya!]
<kaboofa> when we ask the shell.... 4796080 -rw-r----- 1 tom staff 2.3G May 21 14:51 /Users/tom/work/chuck-rails-gh.log
ioNull has quit [Quit: Computer has gone to sleep.]
relix has quit [Read error: Connection reset by peer]
dross_ is now known as dross
flx1rc1 has quit [Ping timeout: 256 seconds]
<apeiros> hm, I wonder
<apeiros> what ruby version?
flx1rc1_ is now known as flx1rc1
<kaboofa> apeiros: 1.9.3-p194
<fryguy> kaboofa: you have to open the file first
<apeiros> fryguy: no, not for File.read
tmorgan has quit [Remote host closed the connection]
<apeiros> kaboofa: ok. I thought maybe you had a 32bit ruby and it might have an issue with 2.3G filesize
<MrZYX> fryguy: no, File::read opens the file, File#read expects to be called on a File instance (well IO but okay)
<kaboofa> /Users/tom/.rvm/rubies/ruby-1.9.3-p194/bin/ruby: Mach-O 64-bit x86_64 executable
banghouse2 has joined #ruby
<kaboofa> ah so i need to hand someone a filehandle?
<apeiros> no. your code is correct.
<apeiros> this is an odd problem.
kpshek has joined #ruby
kpshek has quit [Client Quit]
<apeiros> File.read(path) and File.open(path, 'r') { |fh| fh.read } # are roughly equivalent
c0rn has quit [Quit: Computer has gone to sleep.]
<kaboofa> fwiw, i see the same behavior in 1.9.3p327
banghouse2 is now known as banghouse
<apeiros> what does `p File.exist?(path)` print? (I'd assume true, but lets rule things out)
<kaboofa> ok, so i guess you can't give File.open an absolute path inside irb?
sambao21 has quit [Quit: Quitter]
<kaboofa> when i moved the file to '.' it seems to work
ghr has quit [Quit: Computer has gone to sleep.]
<kaboofa> apeiros: => true
ntus1017 has quit [Remote host closed the connection]
<apeiros> wait, is the name of the file "/Users/tom/work/chuck-rails-gh.log"?
<apeiros> or is that the path?
<kaboofa> that is the full path + name of the file
<apeiros> because you can have files with a name which looks like that in the finder, I'd not know how to do it in the shell
breadthfirst has joined #ruby
<kaboofa> ahh ok i see what you're saying
subbyyy has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
<apeiros> but still, that should result in an Errno::ENOENT, not an Errno::EINVAL
<apeiros> also a wrong argument type usually gives TypeError with File.read… odd
DrShoggoth has joined #ruby
ebouchut has joined #ruby
lethjakm1 has joined #ruby
monkegjinni has joined #ruby
<spike|spiegel> what ya talking about?
<kaboofa> i just saw this output: "Maybe IRB bug!"
cj3kim has quit [Remote host closed the connection]
Faris11 has joined #ruby
Kricir has joined #ruby
Ontolog_ is now known as Ontolog
wolcanus has quit [Remote host closed the connection]
anonymuse has joined #ruby
peteyg has quit [Ping timeout: 248 seconds]
baroquebobcat has joined #ruby
beneggett has quit [Ping timeout: 252 seconds]
mawueli has joined #ruby
<workmad3> apeiros: looking through the io.c source... linux will give an EINVAL if you try to open a pipe... but that doesn't seem right here :/
kf8a has joined #ruby
mawueli is now known as Guest14368
peteyg has joined #ruby
<apeiros> yeah, this problem confuses me
<apeiros> could try to open a 2.3GB file and see whether the filesize is actually a problem. but I'd be surprised.
<kaboofa> workmad3: my os thinks different >:) i'll give it a shot in ubuntu tho
<kaboofa> i mean, file reports that my ruby is 64 bit
<MrZYX> we're talking about darwin not linux here, right?
BonSequitur has joined #ruby
<kaboofa> MrZYX: Darwin Kernel Version 12.3.0
<MrZYX> yup, just wanted to point out that linuxs behavior is not really relevant here. Not that I have any experience with darwin :P
Guest____ has joined #ruby
<workmad3> MrZYX: yeah, but there's very little that causes an EINVAL error in the io.c file, and that was the only one that was even vaguely close that I could see :/
jurbat has quit [Quit: Computer has gone to sleep.]
miskander has joined #ruby
<MrZYX> doesn't ruby forward the syscall erros as Errno:: ones?
<MrZYX> if it can't handle them
beneggett has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<yxhuvud> it does. at least usually
kron4eg has joined #ruby
Bry8Star has quit [Ping timeout: 240 seconds]
jnoob22_ has joined #ruby
kf8a has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
moofy has quit [Quit: moofy]
wolcanus has joined #ruby
jnoob22 has quit [Ping timeout: 248 seconds]
tvw has quit [Ping timeout: 256 seconds]
mmitchel_ has quit [Remote host closed the connection]
mmitchell has joined #ruby
beneggett has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
[Rickmasta] has joined #ruby
kron4eg has left #ruby ["Leaving"]
kpshek has joined #ruby
Bry8Star has joined #ruby
beneggett has joined #ruby
rickmasta has quit [Ping timeout: 256 seconds]
rezzack has quit [Quit: Leaving.]
mzarella has quit [Quit: leaving]
stenno has joined #ruby
jamesaxl has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Kovensky has quit [Read error: Connection reset by peer]
ivanoats has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
beneggett has quit [Max SendQ exceeded]
Evixion has joined #ruby
Evixion has quit [Client Quit]
DanKnox is now known as DanKnox_away
bionhart has joined #ruby
Evixion` has quit [Ping timeout: 276 seconds]
ggordan has joined #ruby
Elhu has joined #ruby
lushious has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
beneggett has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
pkh has joined #ruby
codesoda has joined #ruby
bradhe has quit [Remote host closed the connection]
gasbakid has quit [Ping timeout: 252 seconds]
viszu has quit [Quit: Leaving.]
nfk has quit [Quit: yawn]
choobie has quit [Ping timeout: 252 seconds]
<Spami> does any now if there is anyway to force ruby to use ipv4 ?
<bean__> Spami: for what
kf8a has joined #ruby
viszu has joined #ruby
sambao21 has joined #ruby
Kovensky has joined #ruby
pipework has quit [Ping timeout: 252 seconds]
Ontolog_ has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
<MrZYX> Spami: don't connect your host to a v6 net? :P
pipework has joined #ruby
<Spami> bean, I'm using httparty, and some servers I'm querying don't support ipv6
ebouchut has quit [Quit: This computer has gone to sleep]
csaunders has joined #ruby
m8 has joined #ruby
Kricir has joined #ruby
<MrZYX> but got an AAAA record?
Ontolog has quit [Ping timeout: 248 seconds]
<bean__> Spami: so your host you're running the script on is using ipv6?
foofoobar has joined #ruby
<foofoobar> Hi. While running bundle install I come to this error: https://gist.github.com/anonymous/8573f454cadbd35e5042
<foofoobar> What's going wrong here?
<MrZYX> make: g++: Command not found
<Spami> bean yes
<MrZYX> foofoobar: get your OSes equivalent for build-essentials
<bean__> Spami: but also has a v4 address?
<foofoobar> MrZYX: ah, okay
havenwood has quit [Remote host closed the connection]
<Spami> bean yes
<foofoobar> MrZYX: worked, thanks
<MrZYX> Spami: so the hosts your querying react different when requested over v6 than when requested over v4?
havenwood has joined #ruby
<Spami> MrZYX, yes
<MrZYX> ugh, bad configuration :/
monkegjinni has quit [Remote host closed the connection]
<bean__> it should just use the one that it is queried on, and it it is querying an ipv4 address it should use ipv4. i thought.
Kovensky has quit [Remote host closed the connection]
csaunders has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
darrik has quit [Ping timeout: 252 seconds]
chrishunt has joined #ruby
c0rn has joined #ruby
<MrZYX> Spami: do you rely on some virtualhost magic or could you just query over the IP address directly?
cj3kim has joined #ruby
DonRichie has quit [Quit: Verlassend]
nedbat has left #ruby ["Leaving"]
andrew12 is now known as ANDREW12
<kaboofa> after all that i could have just used grep. MrZYX, apeiros, workmad3: thanks for the help. I appreciate it
kaboofa has left #ruby [#ruby]
skattyadz has joined #ruby
bradhe has joined #ruby
Guest____ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
johnkary has joined #ruby
brotatos has joined #ruby
Guest14368 has quit [Remote host closed the connection]
arya has quit []
Rumsteak has joined #ruby
clocKwize has joined #ruby
ikea_meatballs has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
gasbakid has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
robottinosino has quit [Ping timeout: 276 seconds]
<Spami> MrZYX, i don't think i can query the IP directly. I'm actually querying mtgox.com
arietis has joined #ruby
<MrZYX> some api or the site directly?
<Spami> api
workmad3 has quit [Ping timeout: 246 seconds]
cj3kim has quit [Read error: Connection reset by peer]
Kricir_ has joined #ruby
<MrZYX> hm, is there an example url I can try without going through any authentication mess?
Kricir has quit [Read error: No route to host]
bionhart has quit [Remote host closed the connection]
Kovensky has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
ctp has joined #ruby
_nitti has quit [Remote host closed the connection]
jbpros has joined #ruby
machuga is now known as machuga|away
bionhart has joined #ruby
<MrZYX> not sure what your issue is then
chipotle_ has joined #ruby
havenwood has quit [Remote host closed the connection]
jnoob22_ has quit [Remote host closed the connection]
P1RATEZ has quit [Quit: Read error: Text overflow]
havenwood has joined #ruby
workmad3 has joined #ruby
darrik has joined #ruby
jnoob22 has joined #ruby
<Spami> MrZYX, i tried also on my work station, And I get the same result as my serveur
geekbri has quit [Remote host closed the connection]
Kudos has left #ruby ["Textual IRC Client: www.textualapp.com"]
_nitti has joined #ruby
<MrZYX> so what's your problem? just don't care whether it uses v6 or v4
devoldmx has joined #ruby
vlad_starkov has joined #ruby
<Spami> MrZYX, well when It use ipv6 it's not working
`brendan has joined #ruby
<MrZYX> it does work fine for me
ivanoats has joined #ruby
<MrZYX> I get the exact same result, as I showed you
sarkis has joined #ruby
codesoda has quit [Remote host closed the connection]
<Spami> MrZYX, that's so weird
ctp has quit [Ping timeout: 260 seconds]
kofno has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 248 seconds]
<spike|spiegel> Spami: cloudflare messing it?
pdswan has joined #ruby
tylersmith has joined #ruby
<sarkis> with this ruby function: https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/flatten.rb would i be able to pass args to it like flatten(foo,bar,baz) or does it have to explicitly be flatten([foo,bar,baz])
Ontolog has joined #ruby
huoxito has quit [Quit: Leaving]
devoldmx3 has joined #ruby
<sarkis> array = arguments[0] in the first case that would just equal to foo right?
<Spami> spike|spiegel, i guess yes
<Spami> i mean My server, my work station and my roommate work station have the same output
troessner has quit [Quit: Leaving]
tshauck has joined #ruby
<spike|spiegel> Spami: bad response headers.. Cache-Control:public, max-age=1800 ... unless you want the data cashed
<MrZYX> sarkis: easy thing to find out, open irb and try both variants
<Spami> spike|spiegel, well tbh, I just want to have their stupid json :)
<spike|spiegel> CF-Cache-Status:UPDATING heh what does that mean
<Spami> no idea about the cache control
k13n has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 248 seconds]
eldariof has quit [Ping timeout: 248 seconds]
Ontolog_ has quit [Ping timeout: 248 seconds]
tylersmi_ has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby
pdswan has quit [Quit: pdswan]
mklappstuhl has joined #ruby
miskander has joined #ruby
beneggett has quit [Ping timeout: 246 seconds]
stkowski has quit [Quit: stkowski]
reset has joined #ruby
mwillhite has joined #ruby
mwillhite has quit [Max SendQ exceeded]
crazymykl has quit [Ping timeout: 256 seconds]
chrishough has quit [Quit: chrishough]
bradhe has quit [Remote host closed the connection]
w400z has joined #ruby
arya_ has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
ebobby has quit [Ping timeout: 260 seconds]
crazymykl has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
machuga|away is now known as machuga
beneggett has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
wallerdev has quit [Quit: wallerdev]
Criztian has joined #ruby
darrik has quit [Ping timeout: 276 seconds]
mklappstuhl has quit [Remote host closed the connection]
brianherman has quit [Read error: Connection reset by peer]
setient has quit [Ping timeout: 240 seconds]
cj3kim_ has joined #ruby
chrisja has quit [Quit: leaving]
foofoobar has quit [Quit: Lost terminal]
breadthfirst has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 260 seconds]
choobie has quit [Ping timeout: 248 seconds]
Zai00 has joined #ruby
bradhe has joined #ruby
Al_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
Zai00 has quit [Client Quit]
ebobby has joined #ruby
ephemerian has joined #ruby
mando has joined #ruby
roadt_ has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
wolcanus has quit [Remote host closed the connection]
kjellski has quit [Quit: This computer has gone to sleep]
obs has joined #ruby
paulgatt has quit [Quit: paulgatt]
Elhu has joined #ruby
nomenkun has quit [Remote host closed the connection]
kjellski has joined #ruby
k13n has joined #ruby
kpshek has joined #ruby
kjellski has quit [Client Quit]
ner0x has quit [Quit: Leaving]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
havenwood has joined #ruby
darrik has joined #ruby
DanKnox_away is now known as DanKnox
sambao21 has quit [Quit: Computer has gone to sleep.]
khismetix has joined #ruby
scottmey has quit [Quit: scottmey]
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
breadthfirst has joined #ruby
jdunck has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
w400z has quit []
pkh has quit [Ping timeout: 248 seconds]
reset has quit [Quit: Leaving...]
tndrbt has joined #ruby
_nitti has quit [Remote host closed the connection]
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
darrik has quit [Read error: Operation timed out]
_nitti has joined #ruby
fschuindt has joined #ruby
`brendan has quit [Ping timeout: 248 seconds]
chrishough has joined #ruby
eykosioux has joined #ruby
khushildep has joined #ruby
eykosioux has quit [Read error: Connection reset by peer]
eykosiou_ has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
katsrc has quit [Quit: leaving]
Banistergalaxy has joined #ruby
pipework has quit [Remote host closed the connection]
stkowski has joined #ruby
pipework has joined #ruby
dallasm has joined #ruby
pipework has quit [Remote host closed the connection]
L8D has joined #ruby
<L8D> Again...
skattyadz has quit [Quit: skattyadz]
<L8D> Why should I use symbols over standard variables and vice versa?
carloslopes has quit [Remote host closed the connection]
`brendan has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
wolcanus has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
<L8D> I don't completely understand the uses of symbols.
tylersmi_ has quit [Remote host closed the connection]
<L8D> Besides being able to convert a string to one.
<yxhuvud> how did you ever learn to read?
<L8D> For referencing.
<MrZYX> symbols are identifiers
tylersmith has joined #ruby
<MrZYX> "foo" and "foo" isn't necessarily the same object, :foo and :foo is guaranteed to be the same object
io_syl has quit [Quit: Computer has gone to sleep.]
<L8D> So, they're used as static variables?
<MrZYX> they aren't variables at all
<MrZYX> foo = "bar", foo is an variable
<waxjar> symbols are immutable, singleton and never garbage collected. makes them very handy to use as a "bar code"
ia___ has quit [Quit: ia___]
tealmage has quit [Remote host closed the connection]
Alex- has quit [Quit: Alex-]
<L8D> Well, so far form reading ruby's documentation on it. It seems like symbols are like global variables.
<fschuindt> Do you guys recommend RVM in a deployment machine?
<L8D> Or are symbols like C-style pointers?
<C0deMaver1ck> I use rvm in production
Ontolog_ has joined #ruby
<MrZYX> L8D: you can't assign a value to them. They are a value, like a string, a number, a hash, an array etc
<C0deMaver1ck> ^
<C0deMaver1ck> "hello".object_id != "hello".object_id
<L8D> OH>
<L8D> It makes sense now.
<C0deMaver1ck> :hello.object_id == :hello.object_id
coderhs has joined #ruby
sambao21 has joined #ruby
xcv_ has joined #ruby
<L8D> So, :thing => "asdf"
jbpros has quit [Quit: jbpros]
machuga is now known as machuga|away
tomkad has joined #ruby
<L8D> and :thing.object_id == "asdf".object_id ? no?
<MrZYX> no
<MrZYX> you're creating a hash there
pcarrier_ has quit [Ping timeout: 252 seconds]
<L8D> Wait...
<MrZYX> hsh = {:foo => "asdf"}; hsh[:foo] == "asdf"
alx- has joined #ruby
<MrZYX> equivalent: hsh = Hash.new; hsh[:foo] = "asdf"; hsh[:foo] == "asdf"
<L8D> Is ':foo' a symbol in the context?
<MrZYX> yes
<MrZYX> used as key in the hash
<C0deMaver1ck> in that case the symbol becomes the hash key
<waxjar> the { and } are not required when passing a hash to a method, so `method :key => "value"` is a valid method call and equivalent to method({ :key => "value" })
choobie has joined #ruby
<L8D> Okay.
Ontolog has quit [Ping timeout: 248 seconds]
<L8D> Then, would: :asdf == "asdf".object_id ?
<C0deMaver1ck> no
<MrZYX> no
<L8D> I assumed
<MrZYX> :asdf.class == Symbol, "asdf".class == String
<waxjar> don't think of Symbols as Strings, think of them as a separate data structure
<L8D> But: asdf = "asdf"
<L8D> Then: :asdf == asdf.object_id ?
xcv has quit [Ping timeout: 245 seconds]
<C0deMaver1ck> no
<MrZYX> no
<MrZYX> asdf is a variable
<MrZYX> holding the string value "asdf"
<L8D> Then how do I use and/or define a symbol?
<MrZYX> you did already
kpshek has quit []
<MrZYX> >> :foo
<eval-in> MrZYX => :foo (http://eval.in/31179)
<C0deMaver1ck> a symbol is not a variable to be assigned
<MrZYX> I defined the symbol :foo
<C0deMaver1ck> :foo will be :foo and will always be :foo
<L8D> So...All a symbol is, is a value that will always stay the same,
<C0deMaver1ck> correct
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<L8D> And, that's it?
<MrZYX> yup
<C0deMaver1ck> and the object id will always be the same
pinpin404 has quit [Quit: No Ping reply in 180 seconds.]
<C0deMaver1ck> because it can't be modified
<MrZYX> and the #hash and what's not
<L8D> So...Why are we using symbols in hashes?
<C0deMaver1ck> less resource hungry
<L8D> Oh nvm.
<waxjar> they're efficient
<L8D> That was a stupid question.
Zolo has quit [Remote host closed the connection]
<C0deMaver1ck> symbols create only one object in memory
pinpin404 has joined #ruby
kpshek has joined #ruby
<L8D> If you didn't use symbols, the hash wouldn't be referencable as 'hash["variablenamethingy"]'
<L8D> And in that case, you might as well just use a class
<C0deMaver1ck> yes
kpshek has quit [Client Quit]
<C0deMaver1ck> but it's cheaper on resources to use a symbol as a key instead of a string
<L8D> Is there a difference between 'hash["something"]' and 'hash["something".to_sym]'?
mengu has joined #ruby
<MrZYX> yes
<L8D> What?
saarinen has quit [Quit: saarinen]
hamburger2000 has quit [Quit: Textual IRC Client: www.textualapp.com]
<waxjar> #to_sym returns a Symbol
<MrZYX> "something" and "something".to_sym being :something are completely different things
<C0deMaver1ck> however "something".to_sym.object_id == :something.object_id
saarinen has joined #ruby
mark_locklear has quit [Quit: Leaving]
<MrZYX> >> hsh = {"something" => "foo", :something => "bar"}; [hsh["something"], hsh[:something]]
<eval-in> MrZYX => ["foo", "bar"] (http://eval.in/31183)
<C0deMaver1ck> however doing "something".to_sym for that purpose would be stupid
johnrliv_ has quit [Remote host closed the connection]
[Rickmasta] has quit [Ping timeout: 248 seconds]
lkba has joined #ruby
<L8D> hash = {:my_var => "asdf"}
advorak has joined #ruby
<L8D> hash["my_var"] == hash["my_var".to_sym] ?
dustint_ has quit [Quit: Leaving]
jtharris has quit [Quit: WeeChat 0.4.0]
rickmasta has joined #ruby
<waxjar> no
pinpin404 has quit [Client Quit]
<C0deMaver1ck> nope
<MrZYX> have a look at my last example
_nitti has quit [Remote host closed the connection]
<MrZYX> it just showed you that's not the case
`brendan has quit [Ping timeout: 240 seconds]
<L8D> OH okay.
<otters> that's true in ActiveSupport::HashWithIndifferentAccess, though
<C0deMaver1ck> well that'll just confuse him if he's just trying to learn Ruby
<MrZYX> ^
<C0deMaver1ck> in that instance :my_var and "my_var" are 2 completely separate objects
haxrbyte has quit [Remote host closed the connection]
<waxjar> and badly named :P
<MrZYX> L8D: notice that you can have abitrary objects as keys in a hash, even other hashes
haxrbyte has joined #ruby
<C0deMaver1ck> that's like trying to access element at key "dog" with key "cat"
ctp has joined #ruby
<C0deMaver1ck> two different things
ivanoats has quit [Remote host closed the connection]
<L8D> Okay.
<L8D> This makes sense.
kpshek has joined #ruby
<L8D> But when I was learning, there was something about the new way to define symbols in hashes or something was:
gasbakid has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
<L8D> hsh = {asdf: "asdf",foo: "foo"}
<L8D> I'm not sure what is was talking about.
<waxjar> { key: "value" } is the same as { :key => "value" }
<L8D> Okay.
<waxjar> just a syntax difference
<L8D> Is it more or less faux pas than the latter?
<C0deMaver1ck> convention is :foo
kpshek has quit [Client Quit]
cj3kim_ has quit [Read error: Connection timed out]
<L8D> Okay
<MrZYX> well, choose your preference
<C0deMaver1ck> ^
<L8D> I like foo:
<C0deMaver1ck> but I've never seen foo: used in the wild
<whowantstolivefo> listening #ruby is being good sometimes for basic tutorials by rubyists , yay
ivanoats has joined #ruby
<L8D> I got jabbed in the shoulder for doing:
<MrZYX> you'll mostly find people here that learned ruby back when it didn't exists, so they'll tell you it's bad style ;P
<L8D> def my_method arg1, arh2
<waxjar> i think it was introduced to easy the transition to keyword arguments
<C0deMaver1ck> MrZYX: I would :p
<MrZYX> I actually like it
<MrZYX> saves characters
<L8D> That's what I said
<L8D> :D
<C0deMaver1ck> makes me itch when I see it though
<C0deMaver1ck> and we all know my feelings are far more important than anything else
<MrZYX> you just need to get used to it ;P
<L8D> Is there any way around using parenthases when wanting to use a method on a function?
<L8D> Like:
<L8D> doFun(arg1).something
sailias has quit [Ping timeout: 256 seconds]
<C0deMaver1ck> nope
<MrZYX> C0deMaver1ck: wait till you work with keyword arguments, suddenly you'll use it for hashes too :P
kofno has joined #ruby
pcarrier_ has joined #ruby
peterhellberg has joined #ruby
havenwood has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
jbpros has joined #ruby
ctp has quit [Ping timeout: 260 seconds]
<C0deMaver1ck> MrZYX: you just do stuff backwards, you should rename yourself to MrXYZ
<C0deMaver1ck> ;)
tvw has joined #ruby
<C0deMaver1ck> and use :foo
<pskosinski> (a = a) == nil => true, how does it works?
Kar- has joined #ruby
<C0deMaver1ck> because a is nil when you assign it to itself
<pskosinski> It is creating var with nil before assigning value?
<MrZYX> yup
<C0deMaver1ck> unless you defined a outside of that statement yes
<pskosinski> oh
<pskosinski> thanks :p
narsqt has joined #ruby
viszu has quit [Quit: Leaving.]
narsqt has left #ruby [#ruby]
nik_-_ has joined #ruby
d2dchat has quit [Remote host closed the connection]
brotatos has joined #ruby
<daniel_-> Hi all! anybody can tell me how I get only the root domain of a string url, e.g. "http://subdomain.domain.com/bla/123/" to "http://domain.com" ?
arya_ has quit [Ping timeout: 248 seconds]
khismetix has quit [Ping timeout: 252 seconds]
<MrZYX> pskosinski: another example would be a = :foo if false; a will be nil because the parser saw it once, even though it never gets a value assigned
viszu has joined #ruby
<C0deMaver1ck> daniel_-: regex
<L8D> daniel_-: You could start with `domain.split(".")`
havenwood has quit [Ping timeout: 248 seconds]
<MrZYX> daniel_-: URI.parse
<L8D> `^
mrsolo has quit [Quit: This computer has gone to sleep]
<C0deMaver1ck> yeah or that lol
TomRone has quit [Ping timeout: 256 seconds]
<L8D> commands = Hash.new do echo: Proc.new do |*args| args.each do |arg| print arg end end end
saarinen has quit [Quit: saarinen]
<L8D> :(
<L8D> >> commands = Hash.new do echo: Proc.new do |*args| args.each do |arg| print arg end end end
<eval-in> L8D => /tmp/execpad-8c15c0667c0a/source-8c15c0667c0a:2: syntax error, unexpected ':', expecting keyword_end ... (http://eval.in/31186)
sambao21 has quit [Quit: Computer has gone to sleep.]
<pskosinski> MrZYX: Hm, thanks :)
breadthfirst has quit [Remote host closed the connection]
<L8D> Why can't I use do and end with a hash?
<L8D> ????
<otters> why would you?
<C0deMaver1ck> ^
<MrZYX> you can, it just does something completely different than you think it does ;P
<L8D> Because I like do and end better than { and }
<apeiros> you can, but you'd have to do it properly. the braceless-syntax is only for arguments.
kofno has quit [Ping timeout: 248 seconds]
<apeiros> also what MrZYX said
<apeiros> L8D: with regards to the bot: please refrain from using it for experiments. use irb for that.
mrsolo has joined #ruby
<L8D> apeiros: Okay.
brianpWins has quit [Quit: brianpWins]
<apeiros> >> Hash.new do {foo: "bar" } end
<eval-in> apeiros => {} (http://eval.in/31187)
reset has joined #ruby
arya_ has joined #ruby
<L8D> Hm...
pitzips has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
<MrZYX> >> hsh = Hash.new { |hsh, k| hsh[k] = [:foo] }; hsh[:existing] = :bar; [hsh[:not_existing], hsh[:existing]]
<eval-in> MrZYX => [[:foo], :bar] (http://eval.in/31188)
mstuefer has quit [Ping timeout: 260 seconds]
val___ has joined #ruby
val___ has quit [Client Quit]
<MrZYX> but I guess that's just confusing for a beginner, so just ignore it for know and don't use Hash.new with a block
tndrbt has quit [Quit: tndrbt]
<MrZYX> eh, *for now
<otters> L8D: do/end are for blocks; the fact that hashes and blocks both use {} is a coincidence
sambao21 has joined #ruby
breadthfirst has joined #ruby
wmoxam has quit [Ping timeout: 276 seconds]
graft has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
akhet has quit [Remote host closed the connection]
CodeZombie has quit [Quit: Linkinus - http://linkinus.com]
<C0deMaver1ck> I feel like ruby symbols are like haskell monads
<C0deMaver1ck> such a simple concept that new people have such a hard time grasping
blandflakes has quit [Remote host closed the connection]
<otters> don't even get me started on monads
<C0deMaver1ck> lol
<C0deMaver1ck> go ahead, I want to hearit
<C0deMaver1ck> s/hearit/hear it
cj3kim has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Z_Mass has joined #ruby
<otters> nice try
<waxjar> some day i'll gather some courage, join the local haskell channel and ask for an explanation on monads
<otters> haha
<waxjar> all i take away from it now is that they're basically null objects
<otters> join YOUR local haskell channel today!
<C0deMaver1ck> the haskell channel is actually very nice
<otters> no they aren't null objects
<otters> yeah #haskell is easily the nicest place on freenode
<otters> the best way to troll #haskell is to say "oh, I get it, monads are [incorrect definition]"
tomkad has quit [Read error: Operation timed out]
<L8D> Should I use a proc or a lambda more often?
<otters> the solution to figuring out what monads are is to stop trying to figure out what they are and just use them
<banisterfiend> L8D: proc IMO
<C0deMaver1ck> otters: even then they'll still politely tell you why that's wrong and explain it again
<otters> L8D: they have slightly different behaviors
<L8D> VERY slightly
<otters> yeah
<otters> like I said
halogenandtoast has joined #ruby
<MrZYX> well, lambdas enforce their arguments for example
<C0deMaver1ck> Proc and Lambda are different in how they handle returns
<L8D> Those are the only two
<L8D> lol
<C0deMaver1ck> one will return from the method it was called from, the other will return from itself
<C0deMaver1ck> can't remember which though lol
Lubinski has quit [Quit: Leaving]
<halogenandtoast> I want to run a pg_restore command from ruby and provide the password without requiring user interaction. Has anyone done this before or have experience with it. I've tried IO.popen and PTY.spawn to no avail.
<halogenandtoast> I might be using them wrong.
<banisterfiend> i've never found lambda behaviour useful, so i stick to procs (which behave like blocks, which everyone uses anyway)
<MrZYX> but lamdba's have nice confusing syntax! :P
<C0deMaver1ck> -> goodness
mklappstuhl has joined #ruby
<MrZYX> ->(arg) {} goodness
sarkis has quit [Ping timeout: 256 seconds]
<banisterfiend> that's true :)
<C0deMaver1ck> how can you not like that
codecop has quit [Remote host closed the connection]
<L8D> Also, defining a lambda uses an instruction, whereas defining a proc uses the 'Proc' type.
mmitchell has quit [Ping timeout: 248 seconds]
<MrZYX> >> -> {}.class
<eval-in> MrZYX => Proc (http://eval.in/31189)
obs has quit [Quit: Konversation terminated!]
<MrZYX> scnr
fuzzyhorns has quit [Remote host closed the connection]
<Spami> MrZYX, in what country are you located?
<L8D> There is no Lambda.new
<MrZYX> >> ->{}.inspect
<eval-in> MrZYX => "#<Proc:0x418491f8@/tmp/execpad-256bb871eb35/source-256bb871eb35:2 (lambda)>" (http://eval.in/31190)
<MrZYX> Spami: germany
<Spami> MrZYX, and what system do you run on ?
<MrZYX> archlinux
<MrZYX> L8D: implementation wise lambdas are a special type of procs
<Spami> damn, these doesn't make sense
brianpWins has joined #ruby
<MrZYX> my v6 comes through tunnelbroker.net though
<C0deMaver1ck> MrZYX: time to have a read through MRI it seems
<Spami> MrZYX, $ different people ruined the command on either a MacBook pro or debian and none of them had ipv6 working. they are all located in france
* C0deMaver1ck wants to know the difference between Proc and Lambda at the source code level
rudisimo has quit [Quit: Leaving.]
<MrZYX> Spami: on my VPS with Hetzner v6 it works too :/
<Spami> MrZYX, in germany also ?
<MrZYX> yup
Banistergalaxy has quit [Ping timeout: 248 seconds]
<MrZYX> both, my tunnelbroker.net and the hetzner network use DE-CIX iirc
sambao21 has quit [Quit: Computer has gone to sleep.]
johnmilton has quit [Remote host closed the connection]
io_syl has joined #ruby
nobitanobi has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
ANDREW12 is now known as andrew12
reset has quit [Quit: Leaving...]
clocKwize has quit [Quit: clocKwize]
kirun has quit [Quit: Client exiting]
Ontolog_ is now known as Ontolog
ravster has left #ruby [#ruby]
evenix has quit [Remote host closed the connection]
sambao21 has joined #ruby
evenix has joined #ruby
jbpros has quit [Quit: jbpros]
jimg has joined #ruby
k13n has quit [Ping timeout: 260 seconds]
jbpros has joined #ruby
wolcanus has quit [Ping timeout: 252 seconds]
randym_ has quit [Quit: Connection closed for inactivity]
nomenkun has joined #ruby
<C0deMaver1ck> anyone ever built a ruby C extension on windows?
<C0deMaver1ck> any gotchas?
moos3 has quit [Quit: Computer has gone to sleep.]
<banisterfiend> C0deMaver1ck: not really
<banisterfiend> but depends on the c ext
<spike|spiegel> GC GC GC
<C0deMaver1ck> there's a terminal notifier gem for OS X, wanted to write a windows notification gem
<C0deMaver1ck> so it'd be using the Win32 C API
pcarrier_ has quit [Ping timeout: 248 seconds]
<stenno> a gotcha would be that you had to use the win32 c api
<C0deMaver1ck> lol
evenix has quit [Ping timeout: 248 seconds]
whowantstolivefo has quit [Quit: quit]
d2dchat has joined #ruby
nomenkun has quit [Read error: Operation timed out]
breadthfirst has quit [Remote host closed the connection]
reset has joined #ruby
breadthfirst has joined #ruby
BSaboia has joined #ruby
brotatos has quit [Ping timeout: 246 seconds]
pcarrier_ has joined #ruby
jfelchner has joined #ruby
johnkary has quit [Quit: @johnkary]
xardas has quit [Read error: Connection reset by peer]
<banisterfiend> C0deMaver1ck: the biggest issue is you sometimes have to precompile for windows
<banisterfiend> as you can't always rely on them having a C compiler
<banisterfiend> but that's not hard
alvaro_o has joined #ruby
<C0deMaver1ck> yeah I can just build 32bit and 64bit binaries and distribute that along with the gem
alvaro_o has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
ofd2 has joined #ruby
ivanoats has quit [Read error: Connection reset by peer]
khismetix has joined #ruby
ivanoats has joined #ruby
<ofd2> hi i want to replace the last line of my file with my own text how can i do that?
advorak has quit [Ping timeout: 248 seconds]
<stenno> open text editor, write own text
<stenno> my work here is done again!
failshell has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
coderhs has quit [Read error: Connection reset by peer]
neku has joined #ruby
rae__ has joined #ruby
Ontolog_ has joined #ruby
<ofd2> ??????????????????????????
<stenno> uhm
<stenno> ofd2: read up the File class
jerius has quit [Ping timeout: 264 seconds]
moos3 has joined #ruby
<apeiros> ofd2: File::readlines, Array#[] and File::write are your friends
freerobby has quit [Quit: Leaving.]
viszu has quit [Quit: Leaving.]
advorak has joined #ruby
d2dchat has quit [Remote host closed the connection]
imbric has joined #ruby
Guedes0 has joined #ruby
<ofd2> i was able to readline the last line i need to overwrite it now, i think i need the File:write then
moos3 has quit [Client Quit]
Ontolog has quit [Ping timeout: 248 seconds]
zastaph has quit []
teclator has joined #ruby
darrik has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
osvico has joined #ruby
ariedler has quit [Remote host closed the connection]
flx1rc1_ has joined #ruby
rezzack has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
mklappstuhl has joined #ruby
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
umren has quit [Ping timeout: 252 seconds]
flx1rc1 has quit [Ping timeout: 240 seconds]
flx1rc1_ is now known as flx1rc1
havenwood has joined #ruby
breakingthings has quit [Quit: breakingthings]
LaPetiteFromage has left #ruby [#ruby]
cj3kim has quit [Read error: Connection timed out]
moos3 has joined #ruby
forrest has quit [Quit: Leaving]
miskander has quit [Quit: miskander]
k13n has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
halogenandtoast has quit [Quit: halogenandtoast]
interactionjaxsn has joined #ruby
cj3kim has joined #ruby
pitzips has quit [Read error: Connection reset by peer]
pitzips has joined #ruby
cj3kim has quit [Remote host closed the connection]
Ctwx has joined #ruby
Al_ has quit [Quit: Al_]
akells` has quit [Ping timeout: 248 seconds]
shorty has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The alternative IRC client]
Proshot has quit [Excess Flood]
jdunck has joined #ruby
Proshot has joined #ruby
devoldmx3 has joined #ruby
twoism_ has joined #ruby
IceDragon has joined #ruby
miskander has joined #ruby
twoism has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: No route to host]
devoldmx3 has quit [Read error: Connection reset by peer]
k13n has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
interactionjaxsn has quit [Ping timeout: 248 seconds]
bean__ has quit [Quit: Textual IRC Client: www.textualapp.com]
jerius has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Ping timeout: 252 seconds]
jdunck has quit [Client Quit]
jbpros has joined #ruby
darrik has quit [Ping timeout: 264 seconds]
miskander has quit [Client Quit]
coderhs has joined #ruby
devoldmx3 has joined #ruby
marr has quit [Ping timeout: 256 seconds]
mad_hatter_ has quit [Quit: Leaving.]
anonymuse has quit [Quit: Leaving...]
miskander has joined #ruby
mstuefer has joined #ruby
marr has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
reset has quit [Quit: Leaving...]
ctp has joined #ruby
ctp has quit [Client Quit]
jdunck has joined #ruby
reset has joined #ruby
imbric has left #ruby [#ruby]
pitzips_ has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
jbpros has quit [Quit: jbpros]
jbpros has joined #ruby
jbpros has quit [Client Quit]
mstuefer has quit [Ping timeout: 260 seconds]
prk has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
Kricir_ has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 245 seconds]
pitzips has quit [Ping timeout: 248 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
Neomex has joined #ruby
peteyg has quit [Quit: Lost terminal]
Neomex has quit [Client Quit]
darrik has joined #ruby
stenno has quit [Quit: leaving]
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby
pcarrier_ has quit [Ping timeout: 256 seconds]
ariedler has joined #ruby
saarinen has quit [Quit: saarinen]
wmoxam has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
pcarrier_ has joined #ruby
seich- has joined #ruby
ivanoats has quit [Read error: Connection reset by peer]
jdunck has quit [Quit: Computer has gone to sleep.]
ivanoats has joined #ruby
brotatos has joined #ruby
pipework has joined #ruby
marr has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
undersc0re97 has quit [Read error: Operation timed out]
miskander has quit [Quit: miskander]
LaPetiteFromage has joined #ruby
wallerdev has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
atno has quit [Ping timeout: 248 seconds]
grnman has joined #ruby
jimg has quit [Remote host closed the connection]
miskander has joined #ruby
dmiller_ has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
freerobby has joined #ruby
miskander has quit [Client Quit]
zeade has quit [Quit: Leaving.]
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
waxjar has quit [Quit: ZNC - http://znc.in]
dmiller has quit [Ping timeout: 240 seconds]
swiftkey has joined #ruby
<swiftkey> hello there
<swiftkey> how can i remove ruby 2??
grnman has left #ruby [#ruby]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<swiftkey> rvm list
<swiftkey> rvm rubies
<swiftkey> =* ruby-2.0.0-p195 [ i686 ]
<Criztian> just install another one after selecting it ;-)
<swiftkey> can i completely remove it ?
jnoob22 has quit [Remote host closed the connection]
<Criztian> swiftkey: you need to remove just the version or also the gemsets with it?
rae__ has quit [Quit: rae__]
<swiftkey> all of it
cofin has quit [Quit: cofin]
<swiftkey> erm
<swiftkey> rvm remove 2.0.0 did it
<swiftkey> but now
<swiftkey> it says no ruby at all
<Criztian> rvm use VERSION_NUMBER then rvm remove VERSION_NUMBER
headius has quit [Quit: headius]
<swiftkey> but when i do ruby -v
<swiftkey> ruby -v
<swiftkey> ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]
<swiftkey> erm
<C0deMaver1ck> ...
<swiftkey> how
pcarrier_ has quit [Ping timeout: 264 seconds]
<Criztian> yes, you only removed 2.0
<swiftkey> 1.8.7 should be in the list ?
mixel has joined #ruby
<swiftkey> just now i installed using yum
Z_Mass has quit [Quit: Leaving]
<Criztian> it's the basic one I had on my mac
<swiftkey> but its not in rvm list
pitzips_ has quit [Remote host closed the connection]
druonysus has quit [Ping timeout: 245 seconds]
<Criztian> do rvm info
johnkary has joined #ruby
arya__ has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
prk has quit [Ping timeout: 240 seconds]
pcarrier_ has joined #ruby
wyhaines has quit [Read error: No route to host]
arya_ has quit [Ping timeout: 248 seconds]
<swiftkey> its not set in homes
<swiftkey> gem and ruby not set as what it says
neku has quit [Quit: Leaving...]
mstuefer has joined #ruby
saarinen has quit [Quit: saarinen]
pen has joined #ruby
gyre007 has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
Proshot has quit [Quit: Leaving]
khismetix has joined #ruby
benlieb has quit [Client Quit]
alx- has quit [Quit: alx-]
halogenandtoast has joined #ruby
<advorak> I want an instance of class Flight to return a new instance of Flight ... am I correct to call self.class.new ?
benlieb has joined #ruby
<advorak> (from within class Flight?)
khismetix has quit [Client Quit]
halogenandtoast has quit [Client Quit]
<banisterfiend> advorak: Yeah, or just Flight.new :)
jdunck has joined #ruby
<banisterfiend> though self.class.new is more future proof
mstuefer has quit [Ping timeout: 260 seconds]
<advorak> banisterfiend: yes, I can't be guaranteed of the class name and it may be subclassed. :-) thanks.
jdunck has quit [Max SendQ exceeded]
atno has joined #ruby
r0bby_ is now known as robbyoconnor
kf8a has quit [Quit: Computer has gone to sleep.]
jdunck has joined #ruby
phipes has joined #ruby
khismetix has joined #ruby
jdunck has quit [Max SendQ exceeded]
tshauck has quit [Quit: Lost terminal]
devoldmx3 has quit [Ping timeout: 245 seconds]
jdunck has joined #ruby
wyhaines has joined #ruby
guns has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
jdunck has quit [Max SendQ exceeded]
advorak has quit [Ping timeout: 248 seconds]
backjlack has quit [Remote host closed the connection]
arya__ has quit [Ping timeout: 246 seconds]
threesome has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
TomRone has joined #ruby
headius has joined #ruby
generali_ has quit [Remote host closed the connection]
advorak has joined #ruby
tealmage has joined #ruby
tealmage has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
bobdobbs has quit [Read error: Connection reset by peer]
bobdobbs has joined #ruby
Akuma has quit [Ping timeout: 246 seconds]
jdunck has joined #ruby
benlieb has quit [Ping timeout: 252 seconds]
wallerdev has quit [Ping timeout: 246 seconds]
backjlack has joined #ruby
wallerdev has joined #ruby
rins has quit [Ping timeout: 245 seconds]
jdunck has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
advorak has quit [Ping timeout: 248 seconds]
stkowski has quit [Quit: stkowski]
johnnyfuchs1 has joined #ruby
brotatos has quit [Quit: WeeChat 0.4.1-dev]
wallerdev has quit [Read error: Operation timed out]
mklappstuhl has quit [Remote host closed the connection]
RiftyMcF3arless has joined #ruby
johnnyfuchs has quit [Ping timeout: 264 seconds]
Kar- has quit [Remote host closed the connection]
zastern_ has quit [Remote host closed the connection]
jdunck has joined #ruby
ravster has joined #ruby
<RiftyMcF3arless> hey everybody. for anyone that's used bombshell, i have a quick question. i can't run the "binary" of my bombshell, i'm getting errors as if it's not finding ruby. error gist: https://gist.github.com/Inkybro/5624010 . it's worth noting that last time i was working on this portion of the project, it worked fine. now i get these errors as if it cant find ruby...
benlieb has joined #ruby
benlieb has quit [Client Quit]
akells` has joined #ruby
benlieb has joined #ruby
<RiftyMcF3arless> bleh! i figured it out. nevermind. thank you all
pkh has joined #ruby
cj3kim has joined #ruby
Nisstyre has quit [Quit: Leaving]
moos3 has joined #ruby
nezumi has joined #ruby
akells` has quit [Ping timeout: 252 seconds]
d11wtq has quit [Ping timeout: 260 seconds]
zastern has joined #ruby
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
alx- has joined #ruby
zastern has quit [Read error: Connection reset by peer]
wsterling has quit [Remote host closed the connection]
suporte85 has quit [Ping timeout: 256 seconds]
zastern has joined #ruby
johnnyfuchs1 has quit [Ping timeout: 248 seconds]
LennyLinux has quit [Remote host closed the connection]
gadgetoid has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
wesside has joined #ruby
Criztian has quit [Remote host closed the connection]
baroquebobcat has quit [Ping timeout: 252 seconds]
druonysus has quit [Remote host closed the connection]
gadgetoid has joined #ruby
pkh has quit [Quit: Leaving]
swex_ has quit [Remote host closed the connection]
tockitj has quit [Ping timeout: 248 seconds]
GeissT has joined #ruby
dankest has quit [Quit: Leaving...]
huoxito has joined #ruby
swex has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
dmiller_ has quit [Remote host closed the connection]
dankest has joined #ruby
kline has joined #ruby
Armon has joined #ruby
Xeago has joined #ruby
<Armon> hi. what is the best way to convert \u0000\u0013\u00a2 string to it's correct hex value?
suporte85 has joined #ruby
gadgetoid has quit [Ping timeout: 252 seconds]
flx1rc1 has quit [Ping timeout: 241 seconds]
coderhs has quit [Read error: Connection reset by peer]
nik_-_ has quit [Quit: nik_-_]
dankest has quit [Client Quit]
jamesaxl has quit [Ping timeout: 248 seconds]
kevinykchan has quit [Ping timeout: 256 seconds]
Matip has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
AgentWillyWonka has joined #ruby
khushildep has quit [Quit: khushildep]
nik_-_ has joined #ruby
kevinykchan has joined #ruby
DanKnox is now known as DanKnox_away
Ctwx has quit [Quit: Verlassend]
Kricir has joined #ruby
DanKnox_away is now known as DanKnox
Mattx has quit [Ping timeout: 256 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
Akuma has joined #ruby
nari_ has joined #ruby
predator217 has joined #ruby
headius has quit [Quit: headius]
jdunck has quit [Quit: Computer has gone to sleep.]
agjacome has quit [Quit: leaving]
robottinosino has joined #ruby
gadgetoid has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit:]
cooldman224 has joined #ruby
mixel has quit [Quit: mixel]
guiocavalcanti has joined #ruby
mstuefer has joined #ruby
guiocava_ has quit [Ping timeout: 256 seconds]
thesheff17 has quit [Ping timeout: 252 seconds]
mixel has joined #ruby
sailias has joined #ruby
jlast has quit [Remote host closed the connection]
lethjakm1 has quit [Ping timeout: 260 seconds]
pskosinski has quit [Quit: pskosinski]
tomsthumb has quit [Quit: Leaving.]
_Amaan has quit [Quit: _Amaan]
lewix has quit [Remote host closed the connection]
zeade has joined #ruby
kindjal has joined #ruby
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
mstuefer has quit [Ping timeout: 260 seconds]
skattyadz has joined #ruby
dmiller has joined #ruby
DanKnox is now known as DanKnox_away
jjasonclark has quit [Quit: jjasonclark]
cespare has quit [Quit: WeeChat 0.3.7]
tvw has quit []
wallerdev has joined #ruby
bradhe has quit [Remote host closed the connection]
supercray has joined #ruby
bionhart has quit [Remote host closed the connection]
rhys has quit [Quit: Leaving]
ravster has left #ruby [#ruby]
johnkary has quit [Quit: @johnkary]
kindjal has quit [Quit: Computer has gone to sleep.]
kf8a has joined #ruby
jdunck has joined #ruby
thesheff17 has joined #ruby