apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
RobW_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rickruby has joined #ruby
arya has quit [Ping timeout: 256 seconds]
cofin has joined #ruby
JZTech101 has joined #ruby
crazymykl has joined #ruby
arya has joined #ruby
devoldmx has joined #ruby
wmoxam has joined #ruby
freeayu has joined #ruby
wargasm has quit [Ping timeout: 268 seconds]
freeayu__ has joined #ruby
x1337807x has joined #ruby
arya has quit [Ping timeout: 252 seconds]
acook8103 has quit [Read error: Operation timed out]
arya has joined #ruby
<RobW_> Is the ruby 1.9 hash considered ordered?
sailias has quit [Ping timeout: 240 seconds]
freeayu has quit [Ping timeout: 260 seconds]
<davidcelis> yes
<RobW_> davidcelis: Thanks.
<RobW_> I suppose my real question is can I rely on key order for each loops, and insert keys at specific points in the hash?
devoldmx has quit [Read error: Connection reset by peer]
<RobW_> Or would it be better to store ordered references to the keys in an array maybe.
Tectonic has joined #ruby
arya has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
whowantstolivefo has quit [Quit: quit]
crazymykl has quit [Ping timeout: 264 seconds]
arya has joined #ruby
julweber_ has joined #ruby
lutfidemirci has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jalcine has quit [Excess Flood]
PSKOSINSKI has quit [Quit: pskosinski]
vigintas has joined #ruby
crazymykl has joined #ruby
brum has quit [Remote host closed the connection]
sailias has joined #ruby
julweber has quit [Ping timeout: 276 seconds]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
x1337807x has joined #ruby
Jefus has joined #ruby
cofin has quit [Quit: cofin]
teclator has joined #ruby
dodosan has joined #ruby
choobie has joined #ruby
lutfidemirci has quit [Ping timeout: 268 seconds]
patronus has quit [Quit: leaving]
patronus has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 268 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
Dekade has quit [Ping timeout: 246 seconds]
jeffscot_ has joined #ruby
Spooner has quit [Remote host closed the connection]
<jeffscot_> can any one possibly help with helping me with 'brew doctor' ( I know this is ruby but nobody is in homebrew )
<jeffscot_> i will sent you cake
<jeffscot_> send*
<popl> jeffscot_: there is #macosx
<jeffscot_> kk will try that. thanks
<popl> good luck
DonRichie has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
DonRichie has joined #ruby
danslo has quit [Read error: Connection reset by peer]
danslo has joined #ruby
nettoweb has joined #ruby
arya has quit []
mercwithamouth has quit [Ping timeout: 264 seconds]
Lewis has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
PSKOSINSKI has joined #ruby
s7ry93r has joined #ruby
mikepack_ has joined #ruby
DenSchub is now known as offSchub
mercwithamouth has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 256 seconds]
dv_ has quit [Read error: Operation timed out]
choobie has quit [Remote host closed the connection]
hadees has joined #ruby
jonathanwallace1 has joined #ruby
wargasm has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
dv_ has joined #ruby
jeffscot_ has quit [Ping timeout: 276 seconds]
mikewintermute has quit [Quit: mikewintermute]
jonathanwallace has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
kofno has joined #ruby
strax has quit [Ping timeout: 240 seconds]
[0x1a] has quit [Ping timeout: 256 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Lewis has quit [Remote host closed the connection]
danslo has quit [Read error: Connection reset by peer]
bigkm has joined #ruby
danslo has joined #ruby
Spaceghost|work has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
jonathanwallace1 has quit [Ping timeout: 248 seconds]
jonathanwallace1 has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
james_ has joined #ruby
james_ is now known as Guest56428
RORgasm has joined #ruby
rickmasta has quit [Quit: Leaving...]
mercwithamouth has quit [Ping timeout: 252 seconds]
chrstphr has joined #ruby
cheese1756 has quit [Excess Flood]
cheese1756 has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
eka has joined #ruby
philcrissman_ has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
PSKOSINSKI has quit [Quit: pskosinski]
Liothen has joined #ruby
Bry8Star{T2 has joined #ruby
lfitz has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
jimg has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
nettoweb has quit [Quit: nettoweb]
chrstphr has left #ruby [#ruby]
Guest56428 has quit [Ping timeout: 264 seconds]
Asher1 has joined #ruby
io_syl has joined #ruby
mars__ has joined #ruby
Asher has quit [Ping timeout: 246 seconds]
Mars` has joined #ruby
Asher1 has quit [Client Quit]
Asher has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
Thermo has joined #ruby
emergion has joined #ruby
cofin has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
Tectonic has quit [Quit: Tectonic]
Liothen has quit [Remote host closed the connection]
<s7ry93r> question about dvm … how do revert back to the system ruby path and those gems and gem paths etc. ?
<s7ry93r> *rvm
devoldmx has quit [Remote host closed the connection]
<bnagy> rvm use system
<s7ry93r> thanks
Mars` has quit [Ping timeout: 246 seconds]
mars__ has quit [Ping timeout: 252 seconds]
huoxito has joined #ruby
<bnagy> RobW_: I don't think you can splice in hash entries - like it's ordered by insert order
<bnagy> and imvho, it's unclassy to rely on even that
wmoxam has joined #ruby
<RobW_> bnagy: Thanks. I'm using an array of references to the keys and splicing in new keys in the order I need them.
cheese1756 has quit [Excess Flood]
<RobW_> Seem reasonable?
<bnagy> erm..
crazymykl has quit [Ping timeout: 252 seconds]
<bnagy> isn't that just the same as keeping an array of pairs?
<bnagy> although tbh it sounds liek a tree of some kind would be nicer
<bnagy> new 2.0 Array has a bsearch, though
chris_rb has joined #ruby
cheese1756 has joined #ruby
banghouse2 has joined #ruby
crazymykl has joined #ruby
<bnagy> also depending on how often you're doing stuff there's a block option to sort hashes by whatever
zastern has quit [Remote host closed the connection]
banghouse2 is now known as banghouse
lfitz has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
devoldmx has joined #ruby
cofin has quit [Quit: cofin]
kofno has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
milardovich has quit [Quit: Leaving]
emergion has quit [Quit: Computer has gone to sleep.]
teclator has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
Tectonic has joined #ruby
nettoweb has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
kofno has quit [Remote host closed the connection]
jcromartie has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
peta_ has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
Asher1 has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
Asher has quit [Ping timeout: 248 seconds]
dodosan has quit [Ping timeout: 248 seconds]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 252 seconds]
harrymoreno_ is now known as harrymoreno
krisfremen has quit [Ping timeout: 248 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
Nisstyre has quit [Quit: Leaving]
Thermo has joined #ruby
Nisstyre-laptop has joined #ruby
wmoxam has joined #ruby
kasper has quit [Remote host closed the connection]
peta_ has quit [Quit: peta_]
RobW_ has quit [Quit: RobW_]
Inside has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
Trynemjoel has quit [Ping timeout: 245 seconds]
axeman_ has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
TheDick has quit [Quit: TheDick]
butblack has quit [Quit: butblack]
jimg has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
zigomir_ has quit [Ping timeout: 268 seconds]
eka has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
jalcine has joined #ruby
Inside has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 256 seconds]
hadees has quit [Quit: hadees]
axeman__ has joined #ruby
axeman_ has quit [Ping timeout: 256 seconds]
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
emergion has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Guga_ has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
teclator has joined #ruby
momomomomo has quit [Quit: momomomomo]
danneu has quit [Quit: Leaving.]
emergion has joined #ruby
rickmasta has joined #ruby
emergion has quit [Client Quit]
Asher has joined #ruby
axeman_ has joined #ruby
emergion has joined #ruby
emergion has quit [Client Quit]
axeman__ has quit [Ping timeout: 268 seconds]
Asher1 has quit [Ping timeout: 259 seconds]
kasper has joined #ruby
generalissimo has joined #ruby
tkuchiki has joined #ruby
Mars` has joined #ruby
phrozensilver has quit [Quit: Leaving]
kasper has quit [Ping timeout: 246 seconds]
generalissimo has quit [Remote host closed the connection]
butblack has joined #ruby
marcgg has quit [Read error: No route to host]
teclator has quit [Ping timeout: 246 seconds]
marcgg has joined #ruby
momomomomo has joined #ruby
Mars` has quit [Ping timeout: 256 seconds]
reset has quit [Read error: Operation timed out]
Tectonic has quit [Quit: Tectonic]
LnL has quit [Quit: LnL]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
veco has quit [Remote host closed the connection]
veco has joined #ruby
harrymoreno has quit [Ping timeout: 260 seconds]
harrymoreno_ has joined #ruby
pkrnj has joined #ruby
RichardBaker has joined #ruby
strax has joined #ruby
gwillickers has left #ruby [#ruby]
[0x1a] has joined #ruby
butblack has quit [Quit: butblack]
asteve has joined #ruby
axeman_ has quit [Ping timeout: 256 seconds]
jefflyne has joined #ruby
axeman_ has joined #ruby
BizarreCake has joined #ruby
EleetoBurrito has joined #ruby
Mars` has joined #ruby
RORgasm has joined #ruby
harrymoreno has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
harrymoreno_ has quit [Ping timeout: 246 seconds]
EleetoBurrito has quit [Remote host closed the connection]
RORgasm has quit [Read error: Operation timed out]
mars__ has joined #ruby
rickmasta has quit [Quit: Leaving...]
hogeo has joined #ruby
kofno has joined #ruby
Inside has joined #ruby
<Inside> derp. is there any way to use the #{} string formatting thing to format the number of decimal places, etc?
mikepack_ has quit [Remote host closed the connection]
<Inside> I mean I can do the whole "%0.2f"%number thing
mikepack has joined #ruby
Omego2K has joined #ruby
wald0 has joined #ruby
<wald0> i use xgettext to generate templates of .pot files, I can do the same with ruby ? (parse a source code and extract sentences onto a .pot file), finally, ruby apps can load .mo files for show translated messages on the UI?
Omego2K has quit [Remote host closed the connection]
<wald0> I ask that specially because i dont see ruby in the xgettext manpage (--language= option)
<s7ry93r> can macports and homebrew co-exist, or will they constantly butt heads?
<popl> s7ry93r: that's not really a ruby question. :)
|jemc| has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
grillermo has joined #ruby
grillermo has quit [Client Quit]
<wald0> im trying to learn ruby for write my apps on it but its useless if i can't do that
mikepack has quit [Ping timeout: 276 seconds]
rickmasta has joined #ruby
<|jemc|> I've got a question, coming from a python background. Check out this paste: http://bpaste.net/show/BYVHGYuhfV5ba4OOUVFc/ I'm trying to create a "pass-thru" function, although this is just to demonstrate my issue. My end target is a little more complex. In python, using the *args, **kwargs argument pattern passes all arguments exactly as received. Can somebudy tell me if I can do something like this in
<|jemc|> ruby?
Vert has quit [Remote host closed the connection]
nettoweb has quit [Quit: nettoweb]
<popl> wald0: There's no mention of Ruby in the manpage. That probably means that no, it doesn't support it. However, the manpage also suggests that it will usually guess the language depending on the extension of the particular file.
<GeekOnCoffee> |jemc|: leave out the * on line 6
<popl> wald0: so I'd suggest trying it with some .rb file and if it doesn't work then you have your answer.
<Kelet> Hello. I have an optional feature I'd like to add to my software. This feature requires a gem. I don't want the user to need the gem unless they want the feature. What I thought of doing is adding a file like Application_Extension.rb which monkey patches a method into my class which adds the feature. Unfortunately, I would need to modify another method to call this method. I was thinking about monkey patching in a variable like @feature_injected, checking that, a
<Kelet> nd then running the monkey patched method. But this seems messy. Any suggestions?
<Kelet> The feature is sort of tied in with the existing code, it needs some integration, so it cannot exactly be separated fully
<|jemc|> GeekOnCoffee: `foo': wrong number of arguments (1 for 2..4)
<GeekOnCoffee> nevermind
<GeekOnCoffee> it works as is
<|jemc|> can you show your output?
orangerobot has joined #ruby
<GeekOnCoffee> sorry, the first 2 work
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GeekOnCoffee> |jemc|: you probably just want bar(55, 22, 'moo','woof')
danslo has quit [Quit: danslo]
danneu has joined #ruby
sambao21 has joined #ruby
<|jemc|> well, no I don't, unfortunately
<orangerobot> i'm using HTMLEntities to decode hexadecimal utf8 character codes into characters but, when I do this page.gsub!(/(&#x.{2,4};)/, HTMLEntities.new.decode('\1')) , the code itself gets returned, not the character to which it refers. Any help?
<|jemc|> they need to be keyword args
sambao21 has quit [Client Quit]
heftig_ has joined #ruby
<popl> :O
<|jemc|> maybe ruby just doesn't support keyword args to quite the same extent as python
hamakn has joined #ruby
sambao21 has joined #ruby
<|jemc|> or at least they're not commutative
incubus_ has joined #ruby
<popl> what are you trying to accomplish |jemc|?
<GeekOnCoffee> |jemc|: can you explain better what you're trying to accomplish?
pipework has joined #ruby
<GeekOnCoffee> |jemc|: a pattern I often see is an options hash
mikepack has joined #ruby
<|jemc|> popl, GeekOnCofee: the desired output is [55, 22, 'moo', 'woof']; that is, the keyword arguments should be passed through the bar function to the foo function just as if they were passed directly to the foo function
heftig has quit [Ping timeout: 252 seconds]
<|jemc|> ah wait
<|jemc|> they do
<|jemc|> I was using the wrong syntax
<popl> yes you were :P
<|jemc|> I should have been using bar(55, 22, cow='moo', dog='woof')
<|jemc|> and it all works exactly as it does in python
<|jemc|> wonderful
<popl> Well I don't know what you're trying to do so I can't say.
<GeekOnCoffee> |jemc|: you can always accept a hash as an argument, which I generally prefer to *args
<|jemc|> well, I'm trying to pass keyword arguments through with the double-splat
agjacome has quit [Quit: leaving]
hogeo has quit [Remote host closed the connection]
<|jemc|> GeekOnCoffee: using an options hash isn't desirable, because the function should be 'transparent'
<|jemc|> that is to say
hogeo has joined #ruby
hamakn has quit [Ping timeout: 268 seconds]
<popl> that is to say?
<GeekOnCoffee> |jemc|: yeah, if you're just doing a transparent passthrough like that
<|jemc|> bar(*args, **kwargs) should be able to pass the arguments through to any function with an arbitrary argument pattern
<popl> good luck
Mars` has quit [Ping timeout: 246 seconds]
<|jemc|> well, it appears I don't need the luck
incubus_ has quit [Ping timeout: 256 seconds]
<|jemc|> as it works out of the box
mars__ has quit [Ping timeout: 276 seconds]
<|jemc|> thanks for the ear, folks
|jemc| has left #ruby ["WeeChat 0.4.0"]
hogeo has quit [Ping timeout: 256 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
johnjohnson has joined #ruby
mars__ has joined #ruby
Mars` has joined #ruby
hogeo has joined #ruby
rickmasta has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
splittingred has quit [Quit: splittingred]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has quit [Quit: Computer has gone to sleep.]
icecandy has joined #ruby
lfitz has joined #ruby
johnjohnson has quit [Quit: johnjohnson]
teclator has joined #ruby
Guga_ has quit [Quit: ~]
mikepack has quit [Ping timeout: 252 seconds]
harrymoreno has quit [Ping timeout: 260 seconds]
Spaceghost|work has joined #ruby
harrymoreno has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
pipework has quit [Ping timeout: 264 seconds]
Levin_22 has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
Tectonic has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg_ has joined #ruby
ner0x has quit [Quit: Leaving]
grn has joined #ruby
<grn> hi
pipework has joined #ruby
Levin_22 has quit [Client Quit]
<popl> Hello.
bubblehead has quit [Remote host closed the connection]
rickmasta has joined #ruby
bubblehead has joined #ruby
Spaceghost|work has quit [Ping timeout: 248 seconds]
thesheff17 has quit [Remote host closed the connection]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
orangerobot has quit [Ping timeout: 240 seconds]
akashj87 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lfitz has quit [Quit: Leaving]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
zacts has joined #ruby
hogeo has quit [Remote host closed the connection]
marcgg_ has quit [Ping timeout: 268 seconds]
Mars` has quit [Ping timeout: 252 seconds]
mars__ has quit [Ping timeout: 256 seconds]
hogeo has joined #ruby
nbouscal has joined #ruby
sailias has joined #ruby
horofox_ has quit [Quit: horofox_]
marcgg has joined #ruby
harrymoreno has quit [Ping timeout: 246 seconds]
harrymoreno has joined #ruby
cofin has joined #ruby
wu_lmao has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 256 seconds]
danneu1 has joined #ruby
danneu has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
icecandy has quit [Remote host closed the connection]
nbouscal has quit [Ping timeout: 256 seconds]
orangerobot_ has joined #ruby
alanjc is now known as dormiens_
icecandy has joined #ruby
Mars` has joined #ruby
dormiens_ is now known as alanjc
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 260 seconds]
mars__ has joined #ruby
harrymoreno_ is now known as harrymoreno
alanjc is now known as dormiens_
dormiens_ is now known as alanjc
alanjc is now known as dormiens
dormiens is now known as alanjc
farn has quit [Remote host closed the connection]
Kruppe has quit [Remote host closed the connection]
icecandy has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 268 seconds]
djbkd has joined #ruby
fixl has joined #ruby
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
harrymoreno has joined #ruby
ILoveYou has quit [Read error: Connection reset by peer]
banghouse has quit [Remote host closed the connection]
_Andres has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
Tectonic has quit [Quit: Tectonic]
icecandy has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
icecandy has quit [Remote host closed the connection]
nithinbekal has joined #ruby
icecandy has joined #ruby
Spaceghost|work has joined #ruby
pipework has quit [Ping timeout: 252 seconds]
irmbrady has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
mars__ has quit [Ping timeout: 264 seconds]
RobW_ has joined #ruby
x1337807x has joined #ruby
eldariof has joined #ruby
chris_rb has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
hogeo has joined #ruby
bmn has quit [Quit: obai]
sailias has quit [Ping timeout: 252 seconds]
freeayu__ has quit [Ping timeout: 252 seconds]
Pholey has joined #ruby
<Pholey> allrighty hopefully somebody is on
havenwood has joined #ruby
<Pholey> i have been trying to do a simple get request however i keep getting an invalid URI error
rsahae_ has joined #ruby
<irmbrady> What is the url? Does it contain any unusual syntax?
<r0bgleeson> Pholey: escape the URI before you pass to URI.parse, e.g: URI.parse URI.escape("http:...")
<irmbrady> Yeah, as r0bgleeson says :)
<Pholey> it most certainly does :-) however i am extremely new to ruby with a background in C++ and python
rickruby has quit [Remote host closed the connection]
<pontiki_> Pholey: !code
<pontiki_> Pholey: show us your code, please?
<Pholey> sure
<Pholey> URI.parse(URI.escape(link)) got rid of the error however
heftig_ is now known as heftig
<Pholey> pontiki_
<irmbrady> The | was breaking that URL
<pontiki_> yep
<pontiki_> URI.parse is *very* strict
<Pholey> thats what i thought it was
<Pholey> i was looking at the actual source and thought it was either that or the nested link
IcyDragon has quit [Quit: Space~~~]
<Pholey> thank you very much you guys!
<irmbrady> Anyone here using vim for ruby? I asked the #vim guys but didn't really get an answer. I installed vim on ubuntu with apt-get vim vim-gtk. If I 'ruby puts RUBY_VERSION' in vim it shows 1.9.3 (presumably compiled in this version)
<Pholey> vim?
<irmbrady> However my $PATH in vim is pointing to my RVM folder which has 2.0
<popl> vim is a text editor Pholey
<Pholey> like the text editor?
<irmbrady> Yes, the editor :)
<Hanmac> irmbrady: it seems that vim cant detect rvm ... good that i dont use one of them ;P
<irmbrady> ... However, I was wondering if vim-ruby's autocomplete would be using the 2.0 binaries or the 1.9.3 binaries? Does anyone know?
<popl> the help would know
<irmbrady> :help ruby ?
<Pholey> sorry for two questions, but now that i have crafted my GET request, how do i read the page, ".read"?
<havenwood> irmbrady: looks like there's an rvm vim plugin: https://github.com/tpope/vim-rvm#readme
<popl> Pholey: have you looked at the URI documentation?
<Pholey> regrettably.. i have skimmed over it..
<Pholey> i will do an indepth read now
<havenwood> irmbrady: RVM's page on vim: http://rvm.io/integration/vim
<popl> havenwood++
<irmbrady> Thanks havenwood, will give them a read
dawkirst has joined #ruby
<Pholey> actually i am having a hard time finding how to read the page's content.. a link would be appreciated :-p
<irmbrady> Tim Pope is becoming a minor celebrity in my life
<popl> o_O
cout_ is now known as cout
<irmbrady> Pholey: .read should do it for you
<Pholey> actually
<Pholey> was about to say that was a dumb question
<Pholey> but thanks anyways irmbrady
<Pholey> i had a total brain fart and thought URI would do everything for me haha
* popl returns to koans
<Pholey> but i forgot to even initialize the request
dawkirst has quit [Ping timeout: 246 seconds]
incubus_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
farn has joined #ruby
irmbrady has quit [Quit: WeeChat 0.4.0]
<pontiki_> vim seems to be gaining much favour among rubyists
<pontiki_> Pholey: what are you using to fetch the page?
<popl> vim is pretty awesome
<pontiki_> i think i'd try vim, but i have such an awful time unlearning emacs key bindings
<pontiki_> i had to drop sublime for that reason; most especially because most of the emacs keybindings worked on linux, but then they didn't on os/x
<Pholey> well i am trying to figure out what would be best to use
<pontiki_> too hard to switch back and forth
<Pholey> i was considering HTTParty
<Pholey> but net/http seems to work as well
<pontiki_> Pholey: oh! maybe look at mechanize, or even nokogiri + open_uri
<Pholey> open uri is also in my script
<pontiki_> if you are going to do anything with the page content, assuming it is html or xml, nokogiri is rather wonderful
<pontiki_> mechanize is rather cool for scraping
wallerdev has joined #ruby
RobW_ has quit [Ping timeout: 248 seconds]
zacts has quit [Quit: leaving]
<Pholey> well essentially i am having a contest with my friend
<Pholey> we are reverse engineering polldaddy's JS and using it to to rig the poll, whomever coded the best script (determined by the amount of votes) wins
<Pholey> (our poll of course)
<Pholey> i chose ruby, he chose perl
<popl> popularity contest?
<popl> Pholey: You are violating Polldaddy's TOS.
<popl> Pholey: You should ask them first.
_ffio_ has joined #ruby
ffio_ has quit [Ping timeout: 246 seconds]
<Pholey> well we are not really using poll daddy's server per say
<Pholey> we found a copy
<Pholey> rather he did i guess
<popl> huh?
<Pholey> but i am curious as to whether it works on polldaddy
<Pholey> and it is only one vote ;-)
<popl> :(
<pontiki_> oh man
<Pholey> technically it is user submitted lol
<pontiki_> you want watir :)
<Pholey> ah i tried watir
<Pholey> i got it working
<Pholey> but it was really slow
<Pholey> its essentially a macro haha
<pontiki_> tru
<pontiki_> actually
<pontiki_> hah
browndawg has joined #ruby
<pontiki_> you want node
<popl> man I wish you didn't mention what you were doing with it.
<Pholey> well im not rigging polls or anything
Davai__ has joined #ruby
<Pholey> well
<Pholey> other than my own
<popl> Have you ever seen Fantasia?
<pontiki_> meh, online polls are made for rigging
<popl> Sure, I guess. Whatever. :P
<Pholey> but i might even report it to polldaddy if a cash reward is involved ;)
<popl> you are unethical Pholey
GeissT has joined #ruby
<pontiki_> i consider it unethical to pass off online polls as something to be considered valid indications of public opinion
<popl> What?
<Pholey> hey, tons of people report bugs for cash
<pontiki_> what what?
<Pholey> in fact google promotes it
lutfidemirci has joined #ruby
<popl> pontiki_: How is that unethical? It is a poll, and people answer it.
<Pholey> im just trying to pay for me and my pup's food
<Pholey> lol
<pontiki_> yes, but *which* people
<popl> Data is data. Interpretation of the data is what can be skewed.
Davai has quit [Ping timeout: 246 seconds]
<pontiki_> read what i said
browndawg has quit [Ping timeout: 246 seconds]
<pontiki_> "valid indications of public opinion"
<pontiki_> deconstruct that in light of your last sentence
<popl> It seems your problem is with the interpretation of the data.
fuhgeddaboudit has quit [Ping timeout: 256 seconds]
<pontiki_> that is where the ethics lie, yes
<popl> So why did I need to reread what you said?
<Pholey> well, i am not using it to rig a poll but my own
vlad_starkov has quit [Ping timeout: 276 seconds]
<popl> 23:10 < popl> Data is data. Interpretation of the data is what can be skewed.
<pontiki_> because youare questioning it
<Pholey> a private one might i add
<Pholey> just two questions
<Pholey> perl
<Pholey> and ruby
<popl> pontiki_: Perhaps we are agreeing.
<pontiki_> were those the questions, Pholey ?
<pontiki_> they seem like answers
<Pholey> well, we are supposed to be writing a script in each aforementioned language to see which can send/handle requests better
<Pholey> as well as other things
<popl> So your goal is to find a bug in the polldaddy API?
<Pholey> such as dealing with tor, multi threading, etc
<Pholey> well we already found the bug
<Pholey> but now we are using it to determine which language is "better" if it were to be used for the bug
<popl> heh
<Pholey> hence, perl and ruby being "questions"
<Pholey> rule is languages we do not know
<popl> Threads in Perl are horrid.
<Hanmac> popl: no, Data is a Crewmember of the Enterprise ;P
<pontiki_> oh i see
<popl> Your friend is at a disadvantage.
<pontiki_> what are the criteria for "better"-ness ?
<popl> Hanmac: The Enterprise is not real.
<popl> Hanmac: Therefore Data is not real.
<pontiki_> oh don't break a girl's heart now!
<popl> Data's cat isn't real either.
<incubus_> popl :)
<pontiki_> SPOT WASN'T REAL?!?!?!
<Pholey> yeah i was banking on ruby
<havenwood> popl: Spot is a cyborg?
Mars___ has joined #ruby
mneorr_ has joined #ruby
<popl> havenwood: Spot was a meat popsicle.
<pontiki_> i have now lost all faith in 23rd century humanity
<pontiki_> and droidery
<havenwood> Data ran what versions of Ruby I wonder?
<pontiki_> Dr. Singh would never stoop to running Ruby
<popl> Probably something better than Ruby.
<havenwood> popl: Ruby 3000
jefflyne has joined #ruby
<popl> Programming languages wouldn't exist in the way we know them now.
<havenwood> No GIL.
jefflyne has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 240 seconds]
<Hanmac> havenwood: Loor maybe still runs on ruby1.8
<pontiki_> lol
<havenwood> haha
<popl> hurr
<pontiki_> we all get emotional about 1.8.7, don't we?
jefflyne has joined #ruby
<pontiki_> but 2.0.0 has no contractiosn?
<havenwood> RIP 1.8
<Hanmac> pontiki_: today should be the last day ... (of Ruby1.8)
fgo has joined #ruby
<popl> I'm using 1.9.3
<pontiki_> i'm sure all the distros will keep flogging the corpose
<pontiki_> corpse
<pontiki_> can you get 1.9 native on *any* current distro?
Mars___ has quit [Ping timeout: 264 seconds]
<havenwood> Lo, they bid 1.8 take its place among them, in the halls of Valhalla!
<popl> pontiki_: my distro is using 1.9.3
<Hanmac> pontiki_: on the current ubuntu 1.9 is default, on the version before you could install it as secondary ruby (and then later switch it to default)
<pontiki_> hail, hail 1.8
<Pholey> who suggested mechinizew?
<pontiki_> o/
<pontiki_> why? did i break something?
<Pholey> allrighty reading the API
<Pholey> no lol
kasper has joined #ruby
icecandy has quit [Remote host closed the connection]
<popl> Does Ubuntu do anything to Ruby?
<Pholey> would it be allright if i pm'ed you?
<pontiki_> notably, mechanize doesn't do js
<Pholey> just some questions is all
<pontiki_> sure, Pholey
browndawg has joined #ruby
jonahR has joined #ruby
rsahae_ has quit [Quit: rsahae_]
tkuchiki has quit [Remote host closed the connection]
<Hanmac> popl: it only split it in logical pieces ... (so when you install ruby, the ruby-dev package is not installed too)
<popl> oh right, I remember that dude had a problem with it
<popl> that's annoying, though
<popl> and obviously causes confusion
wolcanus has joined #ruby
<popl> Hanmac: thanks for answering
kasper has quit [Ping timeout: 276 seconds]
rsahae_ has joined #ruby
<Hanmac> hm but its only logical, when you install for sample the ruby-* packages of the gems, you dont need the ruby-dev package (you only need it when you build and install your own gems)
akashj87 has quit [Ping timeout: 248 seconds]
<popl> But it breaks things doesn't it?
wargasm has quit [Read error: Connection reset by peer]
<Hanmac> hm not so much, i mean for sample "make" is not installed per default, it does break thinks too doesnt it?
BizarreCake has joined #ruby
<Hanmac> when you install bindings as gem, the requireing header files are not installed per default, it does also break things?
zeromodulus has quit [Remote host closed the connection]
Inside has quit [Ping timeout: 256 seconds]
zeromodulus has joined #ruby
<popl> I think you are underestimating the silliness of users.
wolcanus has quit [Ping timeout: 276 seconds]
<popl> But as far as responding to your questions, I'm not sure what you're saying (but I'd like to answer you).
Shirakawasuna has joined #ruby
<Hanmac> popl: yeah sorry but gems can not install distribution packages, and when the users are to dump to see when "make not found" that they should install make via the package manager, then no one can help them
<popl> I remember in this very channel having to walk a user through installing ubuntu packages for ruby-dev (admittedly he seemed pretty dense) and it took hours.
<popl> Ubuntu is supposed to be super user friendly though right?
<Hanmac> it is user friendly but it is not noob friendly
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Remote host closed the connection]
echevemaster has quit [Quit: Leaving]
<popl> What's the difference?
<Mon_Ouie> Part of the standard library is in ruby-dev
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
rickruby has joined #ruby
djbkd has quit [Remote host closed the connection]
<Hanmac> Mon_Ouie: part of that standard library does not work without the ruby header files (that are in ruby-dev)
mityaz has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
<popl> So why not just keep it all bundled, nice and tidy?
emergion has joined #ruby
blob has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Hanmac> popl: there are reasons why it is split in Binary, Library and Header files
<popl> I don't think I will agree they are good reasons but this is why I don't use Ubuntu I guess. :)
<popl> If it works for you that's good. :)
julweber_ has quit []
julweber has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
mikewintermute has joined #ruby
yacks has quit [Quit: Leaving]
Mon_Ouie has quit [Read error: Connection reset by peer]
rickruby has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<Hanmac> i dropped long time ago each version of released ruby version ... i am use rubytrunk ;P
incubus_ has quit [Read error: Connection reset by peer]
mikewintermute has quit [Ping timeout: 240 seconds]
rickruby has joined #ruby
mamtina has joined #ruby
cha1tanya has quit [Quit: Leaving]
<r0bgleeson> it doesnt make practical sense for ruby
nivoc has joined #ruby
butblack has joined #ruby
pibix has joined #ruby
momomomomo has quit [Quit: momomomomo]
rsahae_ has quit [Quit: rsahae_]
butblack has quit [Client Quit]
predator217 has quit [Ping timeout: 246 seconds]
butblack has joined #ruby
butblack has quit [Client Quit]
djbkd has joined #ruby
veco has quit [Ping timeout: 264 seconds]
orangerobot has quit [Quit: ChatZilla 0.9.90 [Firefox 22.0/20130620121849]]
ananthakumaran has quit [Ping timeout: 256 seconds]
aqil has joined #ruby
kevinykchan has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
ntus1017 has joined #ruby
wald0 has joined #ruby
vlad_starkov has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pibix has quit [Ping timeout: 246 seconds]
goganchic has joined #ruby
ananthakumaran has joined #ruby
aqil has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
RORgasm has joined #ruby
jbpros has joined #ruby
mamtina has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
huoxito has quit [Quit: Leaving]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
krainboltgreene has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
RORgasm has quit [Ping timeout: 276 seconds]
mamtina has joined #ruby
browndawg1 has joined #ruby
jbpros has quit [Ping timeout: 256 seconds]
Spaceghost|work has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
goganchic has quit [Quit: Leaving.]
browndawg has quit [Ping timeout: 252 seconds]
rickruby has quit [Remote host closed the connection]
Peej has quit [Quit: Research is what I'm doing when I don't know what I'm doing.]
<mamtina> hello !
<mamtina> someone knows what is dora!?
Peej has joined #ruby
axeman_ has quit [Read error: Connection reset by peer]
axeman_ has joined #ruby
<pontiki_> dora is an explorer
zigomir has joined #ruby
emergion has joined #ruby
rickmasta has quit [Quit: Leaving...]
<mamtina> :D I heard a ruby programer said, I've done the project with dora
LarsSmit has joined #ruby
jbpros has joined #ruby
crazymykl has quit [Ping timeout: 260 seconds]
rickruby has joined #ruby
jbpros has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<pontiki_> sorry, no idea really
<pontiki_> maybe they meant fedora?
<Pholey> lol
Xeago has quit [Remote host closed the connection]
<Pholey> mamtina they probably meant fedora, the Linux distribution, which can run ruby projects
railsbros_dirk has joined #ruby
yacks has joined #ruby
<mamtina> thanks for your care!
<mamtina> :)
pibix has joined #ruby
monkegjinni has joined #ruby
viszu has joined #ruby
pipework has joined #ruby
pibix has quit [Client Quit]
mary5030 has joined #ruby
marr has joined #ruby
mary5030 has quit [Remote host closed the connection]
statarb3 is now known as Proshot
relix has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Kar- has joined #ruby
sevenseacat has joined #ruby
hadees has joined #ruby
icecandy has joined #ruby
jds_ has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
nfk has quit [Quit: yawn]
gildo has quit [Ping timeout: 246 seconds]
subbyyy has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
byprdct has joined #ruby
axeman_ has quit [Remote host closed the connection]
codecop has joined #ruby
vlad_starkov has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
vlad_starkov has quit [Ping timeout: 246 seconds]
Meatant has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
ChronocityLC has quit [Ping timeout: 240 seconds]
pfui has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
<pfui> I have a problem with em-http-request always failing with "connection closed by server" no matter what the url I try to load. any ideas what might be wrong on my side?
<pipework> Anything descendant from SGML, actually.
<pipework> Fudge.
MrZYX is now known as MrZYX|off
<pipework> Forget that. My client hates this channel.
Shirakawasuna has quit [Ping timeout: 252 seconds]
Meatant has quit [Quit: bbl]
mityaz has quit [Quit: See ya!]
arietis has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
marcgg has quit [Read error: No route to host]
scrollback has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
jonahR has quit [Quit: jonahR]
scrollback has joined #ruby
lutfidemirci has joined #ruby
LnL has joined #ruby
spider-mario has joined #ruby
bamdad has joined #ruby
pfui has left #ruby [#ruby]
decoponio has joined #ruby
<Veejay> http://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/ <--- Shouldn't that be mentioned in the topic somehow?
RichardBaker has quit [Quit: RichardBaker]
_daniel-s__ is now known as daniel-s
RichardBaker has joined #ruby
<Hanmac> Veejay: :P
<Hanmac> /me sings "DingDong the Witch is dead"
<Veejay> What I like about this is that they won't have to support crusty old features anymore
<Veejay> More room for ground-breaking stuff
bamdad has quit [Client Quit]
RichardBaker has quit [Ping timeout: 252 seconds]
* Hanmac summons apeiros_
jbpros has quit [Quit: jbpros]
hadees has quit [Quit: hadees]
emergion has joined #ruby
LarsSmit has quit [Quit: Leaving.]
jbpros has joined #ruby
julweber has quit [Remote host closed the connection]
jbpros has quit [Client Quit]
adambeynon has joined #ruby
Zolo has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
Heero has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
rickruby has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
haxrbyte has quit [Read error: Connection reset by peer]
Soliah has quit [Read error: Connection reset by peer]
Soliah has joined #ruby
zz_pinage404 is now known as pinage404
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
AlbireoX has joined #ruby
vigintas has joined #ruby
osccar has joined #ruby
Deele has joined #ruby
Mars___ has joined #ruby
msuszczy has joined #ruby
Jackneill has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
RichardBaker has joined #ruby
osccar has left #ruby [#ruby]
Mars` has joined #ruby
k610 has joined #ruby
lkba has joined #ruby
vlad_starkov has joined #ruby
RichardBaker has quit [Ping timeout: 256 seconds]
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
RORgasm has joined #ruby
jefflyne has joined #ruby
timonv has joined #ruby
DestinyAwaits has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
DestinyAwaits has quit [Client Quit]
DestinyAwaits has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has quit [Changing host]
harrymoreno_ has joined #ruby
djbkd has quit [Quit: Leaving]
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
RORgasm has quit [Ping timeout: 248 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
railsbros_dirk_ has joined #ruby
railsbros_dirk has quit [Ping timeout: 264 seconds]
railsbros_dirk_ is now known as railsbros_dirk
BizarreCake has quit [Read error: Connection reset by peer]
lutfidemirci has quit [Remote host closed the connection]
eka has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
snearch has joined #ruby
blackmesa has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
ToApolytoXaos has joined #ruby
jbpros has joined #ruby
sevenseacat has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
DaniG2k has joined #ruby
fulcan has joined #ruby
jds_ has quit [Remote host closed the connection]
<fulcan> line 28 it prints the entire line a string is found on. I need just the string? http://susepaste.org/64283284
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
k610 has quit [Quit: Leaving]
danneu1 has quit [Quit: Leaving.]
julweber has joined #ruby
Emmanuel_Chanel has quit [Read error: No route to host]
Davey has joined #ruby
msuszczy has quit [Ping timeout: 260 seconds]
marcgg_ has quit [Read error: No route to host]
rickruby has joined #ruby
marcgg has joined #ruby
Mars` has quit [Ping timeout: 268 seconds]
leonidlm has joined #ruby
Mars___ has quit [Ping timeout: 276 seconds]
julweber has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
Emmanuel_Chanel has joined #ruby
ndngvr has joined #ruby
irmbrady has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
harrymoreno has quit [Ping timeout: 241 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
RichardBaker has joined #ruby
rickruby has quit [Ping timeout: 264 seconds]
harrymoreno has joined #ruby
ntus1017 has quit [Remote host closed the connection]
Al__ has joined #ruby
msuszczy has joined #ruby
jds_ has joined #ruby
PeteyT has quit [Quit: leaving]
jmimi has joined #ruby
DestinyAwaits1 has joined #ruby
cdelo_ has joined #ruby
DestinyAwaits is now known as Guest70024
DestinyAwaits1 is now known as DestinyAwaits
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
LnL7 has joined #ruby
Al__ has quit [Read error: Connection reset by peer]
Al__ has joined #ruby
Guest70024 has quit [Ping timeout: 248 seconds]
LnL has quit [Ping timeout: 240 seconds]
cdelo has quit [Ping timeout: 264 seconds]
BarneyRubble has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kjellski has joined #ruby
bionoid has joined #ruby
jds_ has quit [Remote host closed the connection]
DaniG2k has quit [Quit: Leaving.]
msuszczy has quit [Ping timeout: 264 seconds]
msuszczy has joined #ruby
mercwithamouth has joined #ruby
dhruvasagar has joined #ruby
love_color_text has joined #ruby
irmbrady has quit [Quit: WeeChat 0.4.0]
Pholey has quit [Ping timeout: 260 seconds]
fulcan has quit [Quit: ircII EPIC5-0.3.5 -- Are we there yet?]
viszu has quit [Remote host closed the connection]
jimg has joined #ruby
kzrl has quit [Ping timeout: 256 seconds]
bionoid has quit [Remote host closed the connection]
bionoid has joined #ruby
autumn is now known as Aki-chan
Aki-chan is now known as autumn
jds_ has joined #ruby
Al__ has quit [Quit: Al__]
jimg has quit [Ping timeout: 240 seconds]
kzrl has joined #ruby
emergion has joined #ruby
bionoid has quit [Remote host closed the connection]
msuszczy has quit [Ping timeout: 260 seconds]
Al__ has joined #ruby
love_color_text has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
Al__ has quit [Client Quit]
jds_ has quit [Remote host closed the connection]
msuszczy has joined #ruby
hogeo has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
mityaz has joined #ruby
hogeo has joined #ruby
tfittsy has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
decoponio has quit [Quit: Leaving...]
Thermo has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
axeman_ has joined #ruby
LnL7 has quit [Quit: LnL7]
hogeo has quit [Ping timeout: 268 seconds]
LnL has joined #ruby
axeman__ has joined #ruby
axeman_ has quit [Read error: Connection reset by peer]
nithinbekal has quit [Quit: nithinbekal]
rickruby has joined #ruby
Mars___ has joined #ruby
Mars` has joined #ruby
takezawa has quit [Remote host closed the connection]
wmoxam has joined #ruby
GeissT has quit [Ping timeout: 264 seconds]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mars` has quit [Ping timeout: 260 seconds]
msuszczy has quit [Ping timeout: 260 seconds]
Mars___ has quit [Ping timeout: 256 seconds]
BrianJ has quit [Quit: Computer has gone to sleep.]
cofin has quit [Quit: cofin]
jds_ has joined #ruby
peta_ has joined #ruby
rickruby has quit [Ping timeout: 241 seconds]
atno has joined #ruby
LnL has quit [Quit: LnL]
mercwithamouth has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby
Thermo has joined #ruby
vlad_starkov has joined #ruby
MrZYX|off is now known as MrZYX
arietis has quit [Quit: Computer has gone to sleep.]
zmike123 has joined #ruby
test_ has joined #ruby
nettoweb has joined #ruby
BarneyRubble has quit [Ping timeout: 246 seconds]
RORgasm has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
jalcine has quit [Excess Flood]
RORgasm has quit [Ping timeout: 260 seconds]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has joined #ruby
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
franzliedke has joined #ruby
ZuzzleBuzzer has joined #ruby
eldariof has quit [Ping timeout: 260 seconds]
franzliedke has quit [Remote host closed the connection]
jalcine has joined #ruby
ZuzzleBuzzer has quit [Client Quit]
tacos1de has quit [Ping timeout: 240 seconds]
ZuzzleBuzzer has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
fulcan has joined #ruby
tacos1de has joined #ruby
fenicks has joined #ruby
<fulcan> line 28 in my code is failing to validate http://susepaste.org/89627179
nettoweb has quit [Quit: nettoweb]
KhalilC has quit [Ping timeout: 246 seconds]
test_ has quit [Quit: Leaving]
<Hanmac> fulcan: i think line 27-34 does not work as you expect
bwwrd has joined #ruby
sepp2k has joined #ruby
<fulcan> I want to suck out the vowels and replace with random characters.
<fulcan> It should be doing that.
<fulcan> if li[x].chr =~ /[aeiouy]/ is my validation
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bwwrd has quit [Client Quit]
axeman__ has quit [Remote host closed the connection]
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
relix has joined #ruby
<fulcan> How do I validate for a vowel per character in a word?
poseid has joined #ruby
<poseid> anyone here is using middleman for serving static web pages?
<poseid> what is the difference to e.g. sinatra?
wmoxam has quit [Ping timeout: 260 seconds]
Neomex has joined #ruby
Thermo has joined #ruby
lkba has joined #ruby
araujo has quit [Quit: Leaving]
nettoweb has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
LnL has joined #ruby
vlad_sta_ has joined #ruby
<Hanmac> fulcan, what about: li.gsub(/[aeiouy]/) { generate_activation_code }
rickmasta has joined #ruby
kayloos has joined #ruby
jds_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 268 seconds]
jannik has joined #ruby
eldariof has joined #ruby
poseid has quit [Quit: poseid]
kirun has joined #ruby
zeromodulus has quit [Remote host closed the connection]
browndawg1 has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
rickmasta has quit [Quit: Leaving...]
AlbireoX has quit [Remote host closed the connection]
rickmasta has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
railsbros_dirk has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
Neomex has quit [Quit: Neomex]
nari has joined #ruby
emergion has joined #ruby
PSKOSINSKI has joined #ruby
jbpros has quit [Quit: jbpros]
jefflyne has joined #ruby
BizarreCake has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
rickmasta has quit [Quit: Leaving...]
mklappstuhl has joined #ruby
anderson has joined #ruby
rickmasta has joined #ruby
poseid has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
gildo has joined #ruby
alexwh has joined #ruby
vlad_sta_ has joined #ruby
takezawa has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has quit [Ping timeout: 268 seconds]
DestinyAwaits has quit [Ping timeout: 256 seconds]
axeman_ has joined #ruby
Mattix has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
motto has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has joined #ruby
devoldmx3 has joined #ruby
m8 has quit [Ping timeout: 240 seconds]
DestinyAwaits has quit [Client Quit]
DestinyAwaits has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
vlad_sta_ has quit [Remote host closed the connection]
m8 has joined #ruby
vlad_starkov has joined #ruby
jds_ has joined #ruby
motto has quit [Ping timeout: 256 seconds]
horofox_ has joined #ruby
timonv has quit [Remote host closed the connection]
janniks has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
janniks has quit [Remote host closed the connection]
janniks has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby
JZTech101 has joined #ruby
postmodern has quit [Quit: Leaving]
timonv has joined #ruby
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Thermo has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
asteve has joined #ruby
<apeiros_> Hanmac: what's up?
Fire-Dragon-DoL has joined #ruby
<Hanmac> apeiros_: it happed ... ruby1.8 dies do night ,P you can add this to the topic http://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/
<apeiros_> *tonight ;-)
Thermo has quit [Client Quit]
wu_lmao has joined #ruby
<apeiros_> no, not topic material IMO
<matti> :)
atno has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
<matti> Quick.
eka has joined #ruby
kasper has joined #ruby
<matti> Start a company that offers paid LTS support for 1.8.7.
<matti> ;d
<MrZYX> Oh please don't
<matti> Haha
emergion has quit [Client Quit]
<matti> More or less.
sailias has quit [Read error: Operation timed out]
<krainboltgreene> Only 20.87% of gems (that match SEMVER semantics) on RubyGems.org are 1.X.Y (aka production ready).
<krainboltgreene> That's 11,273 out of 57,843.
Thermo has joined #ruby
<krainboltgreene> There are 67 gems, with +1,000,000 downloads, that are < 0.X.Y (AKA 0.4.5 or 0.19.24)
blackmesa has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 268 seconds]
harrymoreno_ is now known as harrymoreno
didlix_ is now known as didlix
<Hanmac> krainboltgreene: i use more of the time with developing, i dont have the time to care about version numbers
emergion has joined #ruby
<krainboltgreene> Hanmac: You will when it stops you from working.
wallerdev has quit [Quit: wallerdev]
jbpros has joined #ruby
<krainboltgreene> Point being, no one has time to care about versioning, version control, backups, etc.
<krainboltgreene> That shit is there to prevent future problems.
dhruvasagar has joined #ruby
Proshot has quit [Quit: Leaving]
charliesome has joined #ruby
RORgasm has joined #ruby
poseid has quit [Ping timeout: 246 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
dach has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dach has left #ruby [#ruby]
RORgasm has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
rickmasta has quit [Quit: Leaving...]
cofin has joined #ruby
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danslo has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
jbpros has quit [Quit: jbpros]
poseid has joined #ruby
vigintas has quit [Ping timeout: 260 seconds]
harrymoreno has quit [Ping timeout: 246 seconds]
harrymoreno has joined #ruby
poseid has quit [Client Quit]
vlad_sta_ has joined #ruby
Spooner has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
nomenkun has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
DestinyAwaits1 has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DestinyAwaits is now known as Guest92033
DestinyAwaits1 is now known as DestinyAwaits
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
mercwithamouth has joined #ruby
nomenkun has quit [Remote host closed the connection]
emergion has joined #ruby
danslo has quit [Read error: Connection reset by peer]
Guest92033 has quit [Ping timeout: 268 seconds]
danslo has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
AlHafoudh has joined #ruby
emmanuelux has joined #ruby
jds_ has quit [Remote host closed the connection]
nettoweb has quit [Quit: nettoweb]
axeman__ has joined #ruby
niklasb has joined #ruby
nettoweb has joined #ruby
axeman_ has quit [Ping timeout: 246 seconds]
<apeiros_> krainboltgreene: we use an ldap ruby lib which has been on 0.0.5 for like 5y
<krainboltgreene> apeiros_: Jeeze.
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
workmad3 has quit [Ping timeout: 256 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
nettoweb has quit [Client Quit]
_Andres has joined #ruby
sideshowcoder has quit [Read error: Operation timed out]
vlad_sta_ has quit [Ping timeout: 268 seconds]
poseid has joined #ruby
janniks_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlHafoudh has quit [Ping timeout: 252 seconds]
_ffio_ has quit [Ping timeout: 246 seconds]
freeayu has joined #ruby
viszu has joined #ruby
jds_ has joined #ruby
Kruppe has joined #ruby
ravster has joined #ruby
relix has joined #ruby
pinage404 is now known as zz_pinage404
mklappstuhl has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
freeayu has quit [Read error: Connection reset by peer]
DestinyAwaits has quit [Read error: Connection reset by peer]
Danishman has joined #ruby
subbyyy has joined #ruby
teclator has joined #ruby
freeayu has joined #ruby
sambao21 has joined #ruby
himsin has joined #ruby
mengu has joined #ruby
ILoveYou has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
arya has joined #ruby
nomenkun has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
DestinyAwaits has joined #ruby
banghouse has joined #ruby
Matip has joined #ruby
stopbit has quit [Read error: Operation timed out]
_ffio_ has joined #ruby
snearch has quit [Quit: Verlassend]
nomenkun has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
poseid has quit [Quit: poseid]
stopbit has joined #ruby
Mattix has quit [Ping timeout: 276 seconds]
freeayu has quit [Ping timeout: 264 seconds]
jds_ has joined #ruby
freeayu__ has joined #ruby
TheDick has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
nettoweb has joined #ruby
danslo has quit [Ping timeout: 256 seconds]
vlad_sta_ has joined #ruby
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 268 seconds]
weldan has quit [Ping timeout: 245 seconds]
danslo has joined #ruby
robscomputer has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
mamtina has quit [Read error: Connection reset by peer]
timonv has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Astralum has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
freeayu__ has quit [Remote host closed the connection]
DestinyAwaits has quit [Ping timeout: 240 seconds]
_rgn has left #ruby [#ruby]
_rgn has joined #ruby
_rgn has left #ruby [#ruby]
weldan has joined #ruby
jbpros has joined #ruby
codecop has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_sta_ has joined #ruby
vlad_st__ has joined #ruby
jbpros has quit [Quit: jbpros]
agjacome has joined #ruby
MadDog31 has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
Zolo has quit [Remote host closed the connection]
vlad_sta_ has quit [Ping timeout: 246 seconds]
flowerhack has joined #ruby
wesside has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
kjellski has quit [Quit: This computer has gone to sleep]
marcgg has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
wesside has joined #ruby
marcgg has joined #ruby
ericmathison has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
denver has joined #ruby
osvico has joined #ruby
Nisstyre-laptop has joined #ruby
rcs has quit [Ping timeout: 240 seconds]
janniks__ has joined #ruby
janniks_ has quit [Read error: Operation timed out]
jannik_ has joined #ruby
janniks_ has joined #ruby
jannik has quit [Ping timeout: 248 seconds]
rcs has joined #ruby
janniks has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: nettoweb]
Nisstyre-laptop has quit [Quit: Leaving]
veco has joined #ruby
instinkt has joined #ruby
jds_ has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
jds_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
r0bgleeson has quit [Ping timeout: 252 seconds]
Peej has quit [Ping timeout: 260 seconds]
arya has joined #ruby
havenwood has joined #ruby
kofno has quit [Remote host closed the connection]
jannik__ has joined #ruby
jefflyne has joined #ruby
RORgasm has quit [Ping timeout: 264 seconds]
kofno_ has joined #ruby
janniks has joined #ruby
jannik_ has quit [Read error: Operation timed out]
janniks_ has quit [Ping timeout: 264 seconds]
generalissimo has joined #ruby
janniks__ has quit [Ping timeout: 276 seconds]
janniks_ has joined #ruby
Asher has joined #ruby
tootubular has joined #ruby
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
cha1tanya has quit [Quit: Leaving]
DrCode has quit [Ping timeout: 240 seconds]
jannik__ has quit [Remote host closed the connection]
tdammers has joined #ruby
asteve has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
jds_ has quit [Remote host closed the connection]
janniks_ has quit [Ping timeout: 264 seconds]
janniks has quit [Ping timeout: 264 seconds]
DrCode has joined #ruby
nari has quit [Ping timeout: 256 seconds]
sgkim126l has quit [Ping timeout: 268 seconds]
sgkim126l has joined #ruby
tulip has joined #ruby
enthrops has joined #ruby
<enthrops> Anybody know how to check if console supports colors?
<apeiros_> puts "\e[31mIs this red?\e[0m [yN]"; gets…
tacos1de has quit [Ping timeout: 240 seconds]
crazymykl has joined #ruby
zastern has joined #ruby
tacos1de has joined #ruby
<enthrops> I mean I don't know where my script will run, so I want to know if color output is supported
apeiros has joined #ruby
timonv has joined #ruby
<enthrops> Without asking the user, preferably
dormiens has joined #ruby
binarycub has joined #ruby
binarycub has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 246 seconds]
<tulip> enthrops: You check if you're a tty.
<enthrops> tulip: what do you mean? I'm always in tty
<tdammers> you're not when stdout is redirected to something that's not a terminal
<Hanmac> >> STDOUT.tty?
<eval-in> Hanmac => false (https://eval.in/35868)
<enthrops> what does that have to do with colors though?
<enthrops> some terminals don't support them
<tulip> enthrops: Ah, if you're just worried about the TERM environment variable, do it by that ;-)
<tulip> Pretty much the most common are xterm-color, xterm-color256, screen-color, etc.
<enthrops> yeah, I will probably have to go with checking TERM, thought there was something more reliable
<tulip> enthrops: But really, it seems you want to check the tty part.
<tulip> Cause like... do people use terminals without color?
<tulip> And if they do, do you care to support them?
dhruvasagar has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
<enthrops> kinda
<tulip> enthrops: Nah you don't.
flowerhack has quit [Remote host closed the connection]
alexwh has left #ruby [#ruby]
<enthrops> tulip: hahaha
<tulip> enthrops: Sounds like you're worrying about a problem that isn't there while children in africa don't have enough AK47s.
<enthrops> I'll do a --no-color flag then
apeiros has quit [Remote host closed the connection]
<tulip> All I've ever needed is to check if it is a tty or not.
<tulip> Cause colours mess it up when I wanna run it through awk... I mean... ruby -lane or something.
<enthrops> tulip: why would I do that? The script is not supposed to be ever redirected or grepped
himsin has quit [Ping timeout: 260 seconds]
<tulip> enthrops: What kinda script would never need to be grepped?
<enthrops> tulip: an interactive one :)
<tulip> enthrops: Grep is interactive.
timonv has quit [Remote host closed the connection]
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
<enthrops> there are more people with terminals that don't support colors than people who'd like to grep this particular script
<Mon_Ouie> You can use terminfo to know what your terminal is capable of
bobbyz has quit [Ping timeout: 260 seconds]
<enthrops> there are more children with ak47s in africa
<enthrops> Mon_Ouie: right
vdandre has joined #ruby
timonv has joined #ruby
arubin has joined #ruby
<Deele> hello
<tulip> enthrops: Yes, but, not enough. While we in the west are all decadent.
<Deele> why is it so, that tmp = initial creates some sort of reference, not copy
bobbyz has joined #ruby
generalissimo has quit [Remote host closed the connection]
Rix has quit [Quit: No One Lives Forever]
<enthrops> Deele: because tmp now points to whatever initial was pointed at
<tulip> Deele: tmp = whatever.dup
<tulip> Deele: or whatever.clone
<Deele> oh
<Deele> so, that is OK
<Deele> and tmp = initial.clone is correct way
<tulip> Or .dup
Rix has joined #ruby
<tulip> There is tiny difference though.
<Deele> which is better?
<tulip> I usually use .dup
binw_ has joined #ruby
<Deele> ok, I will check in docs
<tulip> Cause .clone seems more thorough.
<tulip> So I like to live dangerously.
<Hanmac> or Marshal.load(Marshal.dump(whatever))
<tulip> That always seemed weird to me... also too thorough.
<tulip> How are you going to create something unexpected to keep you busy if you do things properly?
janniks_ has joined #ruby
janniks has joined #ruby
danslo has quit [Quit: danslo]
jds_ has joined #ruby
TheDick has quit [Quit: TheDick]
leonidlm has quit [Ping timeout: 256 seconds]
<tulip> Anyone in this place from .jp?
binw__ has quit [Ping timeout: 260 seconds]
<Mon_Ouie> Object#clone preserves #frozen? and #tainted? while #dup doesn't (I don't think I've seen much code that uses either of those though)
LennyLinux has joined #ruby
kofno_ has quit [Remote host closed the connection]
<Mon_Ouie> The Marshal trick is to do a deep copy for marshallable classes
Pholey has joined #ruby
havenn_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
<tulip> Mon_Ouie: What is a marshallable class?
<Mon_Ouie> A class that supports Marshal.load and Marshall.dump
<tulip> Something I guess I gotta read up on.
<Hanmac> tulip: Proc for sample is not marshalble
mengu has quit [Quit: This computer has gone to sleep]
Catie has quit [Ping timeout: 246 seconds]
<Mon_Ouie> (I don't remember what methods you have to define for it to work, I believe it's #_marshall_dump and then ._marshall_load as a class method)
<Hanmac> Mon_Ouie: there is also _dump and _load that work a bit different
<Mon_Ouie> Oh, it's marshal*
dhruvasagar has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
JZTech101 has quit [Read error: Connection reset by peer]
<tulip> Why would someone wish to do this exactly?
<Hanmac> tulip with marshal you can copy an entire Tree of elements
<Mon_Ouie> A deep copy, or having the marshal methods?
<tulip> Deep copy.
<Mon_Ouie> To avoid having multiple references to the same objects if you're going to mutate some of them
<Hanmac> tulip: lets say you have an array of elements, and you call array.dup, then the elements are not dupped too
zastern has quit [Remote host closed the connection]
<tulip> Really? Thought they were.
<Mon_Ouie> [1, 2, 3].dup — That should be an example of why they're not ;)
r4nd0m1 has joined #ruby
Catie has joined #ruby
<tulip> I just did irb and array.dup works for me?
Catie is now known as Guest93797
<Mon_Ouie> It does, but try 1.dup
havenn_ has quit [Ping timeout: 240 seconds]
<tulip> Yeah, but with Fixnum you don't have that "reference" problem.
<tulip> Oh.
<Hanmac> Mon_Ouie: it makes me a bit agry, imo it should return just self without error
<tulip> I get your point suddenly.
JZTech101 has joined #ruby
<tulip> Entire tree of elemants.
<Mon_Ouie> But it shows Array#dup can't just dup its elements (besides the fact that, most of the time, you don't want a deep copy)
JZTech101 has quit [Max SendQ exceeded]
mcarron has joined #ruby
ntus1017 has joined #ruby
enthrops has quit [Quit: enthrops]
<Mon_Ouie> Hanmac: Yes, I think that definition would make more sense for immutable objects (although, they're not technically immutable)
subbyyy has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
<Hanmac> PS: you should also be careful when you marshal objects that revereces other duped objects ... like A points to B and B points to A, then you can only marshal them together if you want to keep that intact
<tulip> They way both of you sound, .dup and .clone are useless?
<Hanmac> yes and no
<Mon_Ouie> They're not
icecandy has quit [Remote host closed the connection]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ryan_turner has left #ruby ["Leaving"]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
timonv has quit [Remote host closed the connection]
<tulip> Well, something to read up on sometime. Nighty nighty.
<Deele> how to concat safely two different objects, to output as string
<Deele> p 1 <<
<Deele> p 1 << " <- " << 23
<Pholey> question, i do not know whether its a bug in ruby or something on my part, however i am under the impression that open-uri's ".read" should read *all* the content of a page correct?
<Mon_Ouie> "#{1} <- #{23}"
<Deele> oh, I remember such form, thanks
<Pholey> i would produce code, however it is a bit odd because i am dealing with sessions so links only last a little while
bradhe has joined #ruby
<Pholey> but my problem is that open-uri will *not* read JS, even if it is all in plain text
kjellski has joined #ruby
<Pholey> it will cut off at the first statement
<Pholey> rather the first ";"
<Pholey> same with mechanize, and net/http, curb just throws me an error
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
subbyyy has joined #ruby
<Mon_Ouie> I'm not sure what your issue is, but open-uri doesn't know anything about JS/HTML/etc.
<Mon_Ouie> It just wraps net/http (and other libraries for other protocols) to download stuff
butblack has joined #ruby
<Pholey> well
<Pholey> i get something like this back
<Pholey> PD_button7215679.className='pds-vote-button';
<Pholey> when it should be something like PD_button7215679.className='pds-vote-button';document.getElementById('PDI_container7215679').innerHTML=' #etc etc
<Mon_Ouie> What if you use curl (from command line) to retrieve the page?
<Pholey> it preforms as i would expect it to
<Pholey> reading all the output
<Deele> I want to convert integer to array, where each digit is single element of array, how to do that? I know 1234.to_s.split('') is there any better way
thesheff17 has joined #ruby
icecandy has joined #ruby
<Mon_Ouie> By repeating rest, digit = divmod(10) you can extract successive digits
blackmesa has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
bubblehead has quit [Remote host closed the connection]
bubblehead has joined #ruby
<Pholey> i am thinking i am going to change languages.. ruby seems to give me nothing but trouble
<Hanmac> pholey: goto C
<Pholey> i know C++
<Pholey> so i was considering making the sawitch
mityaz has quit [Quit: See ya!]
<hoelzro> switch from C++ to Ruby?
niklasb has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
fridim__ has quit [Quit: Leaving]
<Pholey> well i am extremely frustrated with ruby currently
<Pholey> i am convinced that the 'net/http' module is broken
<Hanmac> pholey: make a gist of your code so we can look over it
horofox_ has quit [Quit: horofox_]
anderson has quit [Read error: Connection reset by peer]
icecandy has quit [Remote host closed the connection]
icecandy has joined #ruby
<Pholey> i have done it with headers, and without
<Pholey> it seems to have the same result
havenwood has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
icecandy has quit [Ping timeout: 248 seconds]
<Pholey> i think it's the "|" in the url
<Pholey> i NEED that "|"
<havenwood> pholey: what's stripping the pipe?
kjellski has quit [Quit: Leaving]
<Pholey> but i get an error claiming a false URI
<Pholey> im sorry what do you mean?
<havenwood> pholey: Oh, i just showed up late and dunno what's going on. >.> Just curious what failed with a pipe in the URL.
d4rkstalk3r has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<Pholey> i have no idea
<Pholey> i am extremely frustrated
cofin has joined #ruby
<Pholey> how can i use a "|" in the url withoutescaping it
<MrZYX> I'd do something like params = {param: "value"} and url = ".../?#{params.map {|k,v| "#{k}=#{CGI.escape(v)}" }.join("&")}"
<Hanmac> the funn thing, after i called "poll = open(url).read" later, it does show more, but when i called directly with the others it show less ...
<Pholey> (keep in mind i have been in ruby for a day :( )
<Pholey> what do you mean hanmac?
cofin has quit [Client Quit]
machuga is now known as machuga|away
<Pholey> i have been dealing with oddities since the beginning of my ruby career
jds_ has quit [Remote host closed the connection]
<Pholey> i am convinced that ruby needs a major overhaul, never have i had such problems in any other language
jarin has joined #ruby
jds_ has joined #ruby
<Pholey> i don't mean to be dissing ruby, the syntax and usage is beautiful, but the functionality of things i need seem to be in a "barely working" state
<Hanmac> pholey: i paste your entire code in irb, and it shows me only that one part, but then i called "open(url).read" later and it shows me more
generalissimo has joined #ruby
kayloos has quit [Remote host closed the connection]
<Pholey> so.. what should i do hanmac?
<Hanmac> i dont know .. i never used open-uri :(
<Pholey> well do you have any suggestions on what i should do?
<Pholey> i am open to other gems
BSaboia has joined #ruby
wargasm has joined #ruby
<havenwood> pholey: You might wanna look at Addressable: https://github.com/sporkmonger/addressable#readme
Shirakawasuna has joined #ruby
vlad_st__ has quit [Remote host closed the connection]
nettoweb has quit [Quit: nettoweb]
<havenwood> Apache 2.0 License, don't see that a whole lot with RubyGems...
<Pholey> checking it out now
vlad_starkov has joined #ruby
lutfidemirci has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
mneorr_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mklappstuhl has joined #ruby
wargasm1 has joined #ruby
emmanuelux has quit [Ping timeout: 248 seconds]
wargasm has quit [Ping timeout: 268 seconds]
wald0 has quit [Quit: leaving]
dankest has quit [Quit: Linkinus - http://linkinus.com]
sambao21 has joined #ruby
icecandy has joined #ruby
<pontiki_> hey pholey
lindenle has joined #ruby
<Pholey> hey
<pontiki_> pm?
<Pholey> sure
ravster has quit [Quit: Leaving.]
vlad_sta_ has joined #ruby
nettoweb has joined #ruby
jwest has quit [Quit: WeeChat 0.4.0]
sambao21 has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
RORgasm has joined #ruby
<MrZYX> pholey: I doubt it's ruby's fault: http://paste.mrzyx.de/show.php?id=1544 (if I got your issue right)
kayloos has joined #ruby
sayd has quit [Read error: Connection reset by peer]
msuszczy has joined #ruby
sambao21 has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
KhalilC has joined #ruby
browndawg has left #ruby [#ruby]
havenwood has joined #ruby
kofno has joined #ruby
RORgasm has quit [Ping timeout: 252 seconds]
sayd has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
emmanuelux has joined #ruby
kayloos has quit [Remote host closed the connection]
popl has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby
bradhe has quit [Remote host closed the connection]
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
jds_ has quit [Remote host closed the connection]
Thermo has joined #ruby
jds_ has joined #ruby
tjbiddle has joined #ruby
motto has joined #ruby
Thermo has quit [Client Quit]
sambao21 has joined #ruby
Guest93797 has quit [Changing host]
Guest93797 has joined #ruby
Guest93797 is now known as Catie
jds_ has quit [Read error: No route to host]
v0n has joined #ruby
m8 has quit [Ping timeout: 240 seconds]
jds_ has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
codezombie has joined #ruby
nomenkun has joined #ruby
rsahae_ has joined #ruby
mneorr has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
rsahae_ has quit [Client Quit]
wesside has quit [Quit: Computer has gone to sleep.]
offSchub is now known as DenSchub
codepython777 has joined #ruby
<codepython777> on my mac os, how do i upgrade my ruby?
<codepython777> 1.8.7 here with brew installed
krisfremen has quit [Ping timeout: 241 seconds]
DenSchub has left #ruby ["Leaving..."]
wesside has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
jalcine has quit [Excess Flood]
axeman_ has joined #ruby
axeman__ has quit [Ping timeout: 268 seconds]
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
optimusprimem has quit [Read error: Connection reset by peer]
optimusprimem has joined #ruby
workmad3 has joined #ruby
pkrnj has joined #ruby
<codepython777> rbenv install 1.9.3-p194 — is this what i should be installing?
jalcine has joined #ruby
jarin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jalcine has quit [Excess Flood]
bionoid has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
<RubyPanther> codepython777: glancing up at the channel subject, I would say no.
sambao21 has quit [Quit: Computer has gone to sleep.]
<RubyPanther> If you actually needed that version, you'd be sure you needed it.
<havenwood> codepython777: Yeah, 1.8.7 is OS X system Ruby until 10.9 Mavericks updates to 2.0.0. You have several options, install Ruby with Homebrew, with ruby-install/chruby, ruby-build/rbenv, or RVM.
<havenwood> codepython777: What RubyPanther said, go 2.0.0. :)
<codepython777> I just tried rbenv
<havenwood> codepython777: I really like ruby-install/chruby on OS X. RVM is the most popular route.
<havenwood> codepython777: Problem with rbenv?
<RubyPanther> as a happy rbenv user I have to point out, unless you have a reason to choose rbenv, use rvm is it the usual thing to use. rbenv is for certain types of *nix curmudgeon.
<havenwood> codepython777: The ruby-install route to install 2.0.0-p247 is: brew install ruby-install; ruby-install ruby
* Hanmac is a happy trunk user
<RubyPanther> s/is it/it is/
rsahae_ has joined #ruby
<codepython777> I already did — rbenv install 1.9.3-p448
<codepython777> should have asked and waited here
<codepython777> Its taking too much time
<codepython777> now in a new shell, when i do ruby —version -> 1.8.7
rsahae_ has quit [Client Quit]
<codepython777> what did i do wrong?
<RubyPanther> the longer compiling takes the better, if it takes long enough it means it found the optional dependencies </snark>
krisfremen has quit [Ping timeout: 268 seconds]
<codepython777> here is my history: http://www.bpaste.net/show/vX38pw5q8XZEa2M3e5Nh/
<havenwood> RubyPanther: Have you looked at chruby?
<codepython777> it installed it in my hoome dir - Installed ruby-1.9.3-p448 to /Users/username/.rbenv/versions/1.9.3-p448
<codepython777> I need to update paths?
<RubyPanther> havenwood: I did. It suffers the same problem as rvm... it has features!
<havenwood> RubyPanther: chruby has features compared to rbenv? :O
<havenwood> RubyPanther: chruby is much more minimalist, 93 lines of bash: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
<RubyPanther> rbenv has no magic, the features it uses are *nix features like symlinks
kayloos has joined #ruby
rickruby has quit [Remote host closed the connection]
<havenwood> RubyPanther: chruby uses *nix features like environment variables :P
jalcine has joined #ruby
machuga|away is now known as machuga
<havenwood> RubyPanther: I guess I consider executable shims to be an anti-feature, that causes more problems than does good.
<RubyPanther> right, and to a sysadmin how does it sound if you ask, "hey why don't you replace those symlinks with some env vars... then your programs work the same... assuming your shell is set up 'right'"
<codepython777> ok. I set my path to point to -> /Users/username/.rbenv/versions/1.9.3-p448/bin - and am trying to use gem install veewee - is that alright?
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
<codepython777> ERROR: While executing gem ... (Gem::DependencyError ... Unable to resolve dependencies: fog requires net-scp (~> 1.1); vagrant requires net-scp (~> 1.0.4)
<codepython777> how do i fix this?
<havenwood> codepython777: I blame shims.
<havenwood> :P
jds_ has quit [Remote host closed the connection]
msuszczy has quit [Ping timeout: 260 seconds]
<havenwood> RubyPanther: Yeah, the shims / env var debate is an interesting one.
<RubyPanther> yes it is short tricks, but I don't care how many lines of code it takes, I care how much it departs from old-school *nix practices. If I'm not using any features, how many do I still have?
<codepython777> havenwood: any workarounds?
jds_ has joined #ruby
bionoid has quit [Remote host closed the connection]
<havenwood> RubyPanther: i'd just maintain that chruby is very *nix, single responsibility, does it well, sets env vars as Ruby specifies them to be set and things work
butblack has quit [Quit: butblack]
<Hanmac> vagrant had dropped ruby gems, so you should drop vagrant too
msuszczy has joined #ruby
rsahae has joined #ruby
<havenwood> RubyPanther: also chruby has a manpage, etc, as a good unix citizen
<RubyPanther> chruby is fine, it doesn't commit any of the _unforgivable_ sins that rvm does (or did, when I was an unhappy user)
<havenwood> RubyPanther: Sad that many supposed unix-supported gems have no manpage. :(
<havenwood> RubyPanther: I don't know if rbenv does, actually. It ought.
<RubyPanther> it doesn't, it is a sin but these days it is a typical one
<havenwood> particularly for a ruby installer, the manpage info is kinda essential - what are you modifiying? what files? etc.
<havenwood> gem's manpage sorely needs love
<RubyPanther> these days everything is self-documenting
jds_ has quit [Ping timeout: 264 seconds]
takezawa has quit [Remote host closed the connection]
headius has joined #ruby
<havenwood> RubyPanther: Yeah, definitely seems that way. I think there is real wisdom in the FILES and ENVIRONMENT sections of manpage though that don't get self-documented well.
<waxjar> we've got google and readme's these days :D
<RubyPanther> yeah, manpages have more room
nomenkun has joined #ruby
<havenwood> waxjar: Sometimes a google'd manpage is best google resource, which is kinda funny.
<waxjar> heh
araujo has quit [Quit: Leaving]
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
<Hanmac> http://www.youtube.com/watch?v=jgHwLvF-qfk << "less than worthless, and still more worth than US Dollar" ;P
jds_ has joined #ruby
<RubyPanther> yeah, nobody wants dollars anymore... oh, wait
<havenwood> codepython777: seems that is a problem with the gem's own dependencies, not on your end
dmiller_ has joined #ruby
timonv has joined #ruby
<havenwood> codepython777: veewee's dependencies can't be resolved: https://github.com/jedi4ever/veewee/blob/master/veewee.gemspec
dmiller has quit [Ping timeout: 252 seconds]
<havenwood> codepython777: i'd suggest starting an Issue ticket if you want to use the gem, so they can fix it
<havenwood> or better yet, Pull Request :)
codecop has joined #ruby
cj3kim has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
JZTech101 has joined #ruby
<Deele> is unless working the same as if !(cond) ?
<Deele> unless cond = if !(cond) ?
havenwood has joined #ruby
<Hanmac> Deele yes until you overwrite the ! method (because unless does not call it)
<Deele> I'm coming from PHP camp, that is why I'm confused
<havenwood> Tokaido is another interesting way to install Ruby on OS X, just built the Tokaido.app and played with launching a webapp, pretty cool
msuszczy has quit [Ping timeout: 260 seconds]
<havenwood> uses statically linked build of Ruby, which is unique (the Wycatz Kickstarter Tokaido thing): https://github.com/tokaido/tokaido-build
<Deele> Hanmac how is it, "unless does not call it"?
<Hanmac> Deele: i mean this: class << o = Object.new; def !; true;end;end
<Hanmac> with that !o is changed but unless o is not
msuszczy has joined #ruby
jefflyne has joined #ruby
<Deele> oh, you mean ! is reserved to something?
<Deele> I just wanted to negate bool
k610 has joined #ruby
<Hanmac> i mean that ! is not reserverd, you can overwrite the method (but you cant fool unless with that)
Ziarkaen has joined #ruby
h4mz1d has joined #ruby
araujo has joined #ruby
markalanevans has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
rsahae has quit [Quit: rsahae]
devoldmx has joined #ruby
msuszczy has quit [Ping timeout: 264 seconds]
jds_ has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
devoldmx3 has quit [Ping timeout: 248 seconds]
axeman_ has quit [Remote host closed the connection]
RichardBaker has joined #ruby
end_guy has quit [Remote host closed the connection]
LennyLinux has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
krisfremen has quit [Ping timeout: 264 seconds]
<bigmac> whats wrong with: for x in var.map
harrymoreno has quit [Ping timeout: 252 seconds]
harrymoreno_ is now known as harrymoreno
<bigmac> what is enumeration
<popl> bigmac: are you asking what enumeration is in general?
<bigmac> and maybe irb example
<popl> enumeration is an idea that is bigger than ruby, bigmac.
<bigmac> lol
<Hanmac> bigmac you dont want to use "for"
<bigmac> i see
<bigmac> people tell me that all the time
strax has quit [Ping timeout: 260 seconds]
<bigmac> its just a bad habit i guess
<havenwood> bigmac: [1, 2, 3].each { |n| puts "#{n}, muah ha ha..."
<havenwood> }
<popl> Do people not tell you why it's a bad idea?
<bigmac> can you explain why you guys dont like FOR
tvw has joined #ruby
Neomex has joined #ruby
<havenwood> bigmac: instead of for'ing over things with the odd three-argument construct, you have an enumerable module: http://ruby-doc.org/core-2.0/Enumerable.html
end_guy has joined #ruby
<havenwood> bigmac: makes a nicer syntax
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
<bigmac> var.map.each do |x| puts x end
<bigmac> var.map.each {|x| puts x}
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
<havenwood> bigmac: that would make a bunch of nil
<havenwood> bigmac: since #puts returns nil
<bigmac> or print off each line that var="a\na\na\na\na"
<havenwood> bigmac: don't use #map and #each
<bigmac> lol see i do things wrong
<bigmac> i never found any problems with the way i do things
<bigmac> so, 1 sec
<popl> bigmac: are you interested in finding out the why of things working?
<havenwood> bigmac: Use map when you're actually wanting to return a new array: [1,2,3].map { |n| n.to_s }; #=> ["1", "2", "3"]
timonv has quit [Remote host closed the connection]
<havenwood> bigmac: Or fancier: [1,2,3].map &:to_s; #=> ["1", "2", "3"]
BSaboia has quit [Ping timeout: 246 seconds]
<bigmac> a=sock.read; a.map.each
<havenwood> bigmac: stop with the map.each, either you want map or each, never both
viszu has quit [Quit: Leaving.]
<bigmac> oh, lol i see now
cj3kim has quit [Remote host closed the connection]
<bigmac> its like map and each do the same thing
marcgg has joined #ruby
<bigmac> a.map {|x|...}
<havenwood> yeah, use each unless you need map
<bigmac> a.each {|x|...}
marcgg_ has quit [Read error: Connection reset by peer]
<fryguy> bigmac: the return values are different, otherwise yes
BizarreCake has quit [Quit: Leaving]
Zolo has joined #ruby
<bigmac> so there is no need..... for x in var.map (that is ugly)
kasper has quit [Remote host closed the connection]
<bigmac> im trying to break bad habits
zeromodulus has joined #ruby
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
<popl> bigmac: It might be considered a bad habit to not answer people's questions when they address you directly.
<bigmac> i have to stop doing this also.... `cat file.txt`
banister has joined #ruby
<popl> It might even be considered rude.
harrymoreno has quit [Ping timeout: 246 seconds]
<bigmac> sorry
<bigmac> i didnt understand your question
harrymoreno has joined #ruby
<popl> Which one?
jhowarth_ has quit [Ping timeout: 264 seconds]
Peej has joined #ruby
<bigmac> bigmac: are you interested in finding out the why of things working?
<popl> It's not a sin to ask for clarification. :)
<havenwood> bigmac: not a crime to shell out, but easy enough to: File.read 'file.txt'
<bigmac> sorry i can read but cant comprehend ;)
<bigmac> my bad English
wallerdev has quit [Quit: wallerdev]
alexwh has joined #ruby
havenwood has quit [Remote host closed the connection]
sambao21 has joined #ruby
pothibo has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<pothibo> When you require a file in a relative folder, does the folder name by default becomes a module? I'm pretty sure this only happen in rails but I want to make sure
danslo has joined #ruby
instinkt has quit [Read error: Connection reset by peer]
Neomex has quit [Quit: Neomex]
jds_ has joined #ruby
Mars___ has joined #ruby
Mars` has joined #ruby
niklasb has joined #ruby
r0bgleeson has joined #ruby
poseid has joined #ruby
h4mz1d has quit [Quit: h4mz1d]
sambao21 has quit [Quit: Computer has gone to sleep.]
obs has joined #ruby
zmike123 has quit [Ping timeout: 268 seconds]
zhando has joined #ruby
<Deele> does ruby methods always passes variables by reference?
cofin has joined #ruby
<pothibo> Deele: C passes everything by value, but yes, it passes the value of the reference
<hoelzro> Deele: pretty much everything in Ruby is a "reference"
<pothibo> unless you built a C extension, it shouldn't matter to you
<yxhuvud2> They copy the reference. That is not the same thing, since some values are stored in the reference itself. Integers etc
<pothibo> what yxhuvud2 said
Zolo has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<pothibo> "scalar" variable are "copied" so you can't modify an integer, but you can modify a hash key/value
ntus1017 has quit [Remote host closed the connection]
<Deele> so `collection = [] foo(collection,addition) collection << addition foo(collection,"bar") end p collection` will output ["bar"]?
jds_ has quit [Remote host closed the connection]
KhalilC has quit [Ping timeout: 256 seconds]
jds_ has joined #ruby
<Deele> I guess I need interactive ruby
tomzx_mac_ has joined #ruby
apeiros has quit [Remote host closed the connection]
swistak35 has quit [Read error: Operation timed out]
apeiros has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
Mars___ has quit [Ping timeout: 252 seconds]
<pothibo> yes
<pothibo> collection can be added/remove
<Morrolan> Your example up there, once you fixed the syntax, will recurse indefinitely. :P
<pothibo> ahaa
Mars` has quit [Ping timeout: 256 seconds]
jds_ has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
sambao21 has joined #ruby
Zolo has joined #ruby
samuel02 has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
denver has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
takezawa has joined #ruby
kasper has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
Zolo has quit [Remote host closed the connection]
mary5030 has joined #ruby
takezawa has quit [Ping timeout: 256 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
tjbiddle_ has joined #ruby
nettoweb has quit [Quit: nettoweb]
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
cofin has quit [Quit: cofin]
rsahae has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
ninegrid has quit [Ping timeout: 248 seconds]
ntus1017 has joined #ruby
RichardBaker has joined #ruby
nomenkun has quit [Remote host closed the connection]
lutfidemirci has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
RobW_ has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
fyym has joined #ruby
headius has quit [Quit: headius]
cheese1756 has quit [Excess Flood]
Chat3357 has joined #ruby
<Chat3357> Hi
Chat3357 has quit [Client Quit]
cheese1756 has joined #ruby
vdandre has quit [Quit: leaving]
JZTech101 has quit [Read error: Connection reset by peer]
fyym has quit [Remote host closed the connection]
asteve has joined #ruby
strax has joined #ruby
fomatin has joined #ruby
fulcan has quit [Quit: ircII EPIC5-0.3.5 -- Are we there yet?]
JZTech101 has joined #ruby
Jackneill has quit [Remote host closed the connection]
JZTech101 has quit [Max SendQ exceeded]
d4rkstalk3r has quit [Read error: Operation timed out]
Al__ has joined #ruby
Al__ has quit [Read error: Connection reset by peer]
Al__ has joined #ruby
graft has quit [Ping timeout: 264 seconds]
headius has joined #ruby
mary5030 has quit [Remote host closed the connection]
graft has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
rsahae has quit [Quit: rsahae]
jacktrick has joined #ruby
kofno has joined #ruby
graft has quit [Ping timeout: 246 seconds]
nomenkun has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
g3orge has joined #ruby
asteve has joined #ruby
tvw has quit [Read error: Operation timed out]
nomenkun has quit [Ping timeout: 264 seconds]
mars__ has joined #ruby
eldariof has quit [Ping timeout: 246 seconds]
jds_ has joined #ruby
jonathanwallace1 has quit [Ping timeout: 252 seconds]
subbyyy has quit [Ping timeout: 246 seconds]
Al__ has quit [Quit: Al__]
<davidcelis> Hi
graft has joined #ruby
spider-mario has quit [Remote host closed the connection]
mars__ has quit [Ping timeout: 264 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jds_ has quit [Ping timeout: 252 seconds]
jonathanwallace1 has joined #ruby
kofno has quit [Remote host closed the connection]
_seanc_ has joined #ruby
LennyLinux has joined #ruby
jimg has joined #ruby
cads has joined #ruby
demet8 has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
<hoelzro> Hi
cj3kim has quit [Remote host closed the connection]
JZTech101 has joined #ruby
codezombie13 has joined #ruby
codezombie has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
JZTech101 has quit [Max SendQ exceeded]
mahmoudimus has joined #ruby
roadt_ has quit [Ping timeout: 276 seconds]
poseid has quit [Quit: poseid]
arya has quit [Disconnected by services]
fabioluciano has joined #ruby
staafl has joined #ruby
arya_ has joined #ruby
LnL7 has joined #ruby
jhowarth_ has joined #ruby
wallerdev has joined #ruby
LnL has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
subbyyy has joined #ruby
airlok has joined #ruby
demet8 has quit [Quit: demet8]
airlok has quit [Remote host closed the connection]
bionoid has joined #ruby
poseid has joined #ruby
jds_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Ziarkaen has quit [Ping timeout: 256 seconds]
poseid has quit [Client Quit]
badquanta has joined #ruby
cdelo__ has joined #ruby
cdelo_ has quit [Ping timeout: 240 seconds]
machuga is now known as machuga|away
staafl has quit [Ping timeout: 264 seconds]
Danishman has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
msuszczy has joined #ruby
monkegji_ has joined #ruby
RobW_ has quit [Quit: RobW_]
kx has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
kx has joined #ruby
jds_ has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 276 seconds]
cofin has joined #ruby
ner0x has joined #ruby
_seanc_ has quit [Quit: _seanc_]
vlad_starkov has quit [Remote host closed the connection]
RORgasm has joined #ruby
emmanuelux has quit [Ping timeout: 256 seconds]
lindenle has quit [Quit: This computer has gone to sleep]
JZTech101 has joined #ruby
JZTech101 has quit [Max SendQ exceeded]
undert_ has joined #ruby
JZTech101 has joined #ruby
marcgg has quit [Read error: No route to host]
RORgasm has quit [Ping timeout: 276 seconds]
marcgg has joined #ruby
jds_ has joined #ruby
Davey has joined #ruby
bionoid has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 252 seconds]
dmiller_ has quit [Remote host closed the connection]
zigomir has joined #ruby
marcgg has quit [Read error: No route to host]
dmiller has joined #ruby
marcgg has joined #ruby
jds_ has quit [Remote host closed the connection]
ciziar has joined #ruby
emmanuelux has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
JZTech101 has joined #ruby
mahmoudimus has joined #ruby
s0ber_ has joined #ruby
monkegjinni has quit [Read error: No route to host]
dhruvasagar has quit [Ping timeout: 268 seconds]
s0ber has quit [Ping timeout: 268 seconds]
kayloos has quit [Remote host closed the connection]
ferdev has quit [Ping timeout: 256 seconds]
monkegji_ has quit [Ping timeout: 268 seconds]
s0ber_ is now known as s0ber
g3orge has quit [Quit: leaving]
ninegrid has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
tomzx has joined #ruby
nivoc has quit [Quit: nivoc]
MrZYX is now known as MrZYX|off
ivanoats_ has joined #ruby
codezombie13 has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
tomzx has quit [Disconnected by services]
icecandy has quit [Remote host closed the connection]
brennanMKE has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
<Fire-Dragon-DoL> I always love ruby syntax: where(email: email, subscribed: true).limit(1).first or email
<Fire-Dragon-DoL> :Q_
vlad_starkov has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
cj3kim has joined #ruby
msuszczy has quit [Ping timeout: 260 seconds]
butblack has joined #ruby
hadees has joined #ruby
RobW_ has joined #ruby
msuszczy has joined #ruby
iamjbecker has joined #ruby
BrianJ has joined #ruby
k610 has quit [Quit: Leaving]
cj3kim has quit [Ping timeout: 260 seconds]
demet8 has joined #ruby
milardovich has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Quit: Computer has gone to sleep.]
ffio has joined #ruby
<krainboltgreene> Don't use `or`, Fire-Dragon-DoL.
<krainboltgreene> Use ||
jonathanwallace1 has quit [Ping timeout: 252 seconds]
_ffio_ has quit [Ping timeout: 268 seconds]
Mon_Ouie has joined #ruby
Neomex has joined #ruby
teclator has quit [Ping timeout: 248 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
danslo has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
danslo has joined #ruby
Nisstyre-laptop has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<RubyPanther> krainboltgreene: based on that snipped, you may be right... or wrong
<RubyPanther> snippet
teclator has joined #ruby
<krainboltgreene> In this case he wants an object or a string, I can't imagine why he'd want `or`.
<krainboltgreene> Now, if it was some action, like user.ban! or redirect_to
Neomex has quit [Client Quit]
Nisstyre-laptop is now known as Nisstyre
bionoid has joined #ruby
kirun has quit [Quit: Client exiting]
motto has quit [Quit: Sto andando via]
emmanuelux has quit [Read error: Operation timed out]
<Kelet> Opinions on image magick gems for ruby? I don't want to have to compile RMagick, and quick_magick has the problem that it's too easy to generate a command to big for the command line.
<Kelet> Going to try mini_magick
iamjbecker has quit [Remote host closed the connection]
<ner0x> So when using fog you have to first dir.files.create(key: @key) before you can actually delete it?
<krainboltgreene> "compile" RMagick?
nomenkun has joined #ruby
<Kelet> RMagick requires me to install developer tools to compile something.
<Kelet> Unfortunately mini_magick is the same as quick_magick, it uses the command line tools and thus commands are easily too large. Suppose I'll just bite the bullet and compile RMagick.
Xeago has joined #ruby
MadDog31 has quit [Quit: Leaving]
nomenkun has quit [Ping timeout: 264 seconds]
msuszczy has quit [Ping timeout: 260 seconds]
msuszczy has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
ferdev has joined #ruby
<krainboltgreene> I'm fairly sure the only thing rmagick requires is imagemagick
codecop has quit [Remote host closed the connection]
butblack has left #ruby [#ruby]
<Kelet> krainboltgreene, Well I'm here, typing gem install rmagick with imagemagick in my path and it's telling me I need the developer tools to compile it.
cofin has joined #ruby
<krainboltgreene> Paste log?
emmanuelux has joined #ruby
fabioluciano has quit [Remote host closed the connection]
demet8 has quit [Quit: demet8]
SeySayux has quit [Ping timeout: 260 seconds]
rickruby has quit [Remote host closed the connection]
<krainboltgreene> Yeah, so image_magick relies on a native extension. You don't have that library.
codezombie has joined #ruby
Villadelfia has quit [Ping timeout: 256 seconds]
<Kelet> I don't have what library?
<krainboltgreene> Trying to find out, doesn't look like it's specific to image_magick.
<krainboltgreene> Paste the contents of mkmf.log
mosheee has quit [Quit: ZNC - http://znc.in]
SeySayux has joined #ruby
<krainboltgreene> Kelet: search for "try_do" https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting
mosheee has joined #ruby
<popl> Kelet: You should pay attention to the output of the commands. The information can be useful. :)
cdelo__ has quit [Read error: Connection reset by peer]
Opettaja has joined #ruby
<popl> "Check the mkmf.log file for more details."
threesome has quit [Ping timeout: 248 seconds]
brianherman has joined #ruby
demet8 has joined #ruby
Villadelfia has joined #ruby
cdelo has joined #ruby
<krainboltgreene> Kelet: Realistically windows development sucks. No one tests their gems against Windows and many gems you'll want require native extensions.
<popl> Kelet: you could use a better pastebin site too, like the one pointed to in the topic (pastebin.com *sucks*)
<Kelet> Well, I was mostly just asking if anyone had any sensible alternatives for image modification, specifically I need to edit pixels like an array, but it would be super, super nice if I could make multiple frames and combine it to an animation, hence why I wanted to use something that used ImageMagick
<Kelet> as it's the only tool I know of that can do such a thing that has bindings in Ruby
jacktrick has quit [Quit: Leaving]
<krainboltgreene> Yeah.
Mon_Ouie has quit [Ping timeout: 248 seconds]
codezombie13 has joined #ruby
<Kelet> but most of the command-line interfaces get overloaded because I need to draw a lot of pixels and it keeps making the command bigger. And TBH I read a lot of bad things about RMagick involving high memory usage and memory leaks, I don't have much memory.
<krainboltgreene> So you have two options: Change your platform or figure out what piece your missing.
mercwithamouth has joined #ruby
codezombie13 has quit [Read error: Connection reset by peer]
threesome has joined #ruby
codezombie has quit [Read error: Connection reset by peer]
codezombie13 has joined #ruby
machty has joined #ruby
<krainboltgreene> Oh hey, or you could try out jruby.
<krainboltgreene> I know it has better windows support, and usually there's a java native extension version of popular gems.
<krainboltgreene> That would basically solve your problem.
zigomir has quit [Ping timeout: 268 seconds]
codezombie has joined #ruby
jimg has joined #ruby
<machty> hi all, this might be more of a rails question, but it seems to be Ruby-related at the root: I'm requiring the active_admin gem, and in a rails initializer, I reopen class in that gem to `include` a module defined in my app's lib directory. Based on my tests in IRB, it seems that the way things should work is that if a class is defined, and includes a module, and then that module is reopened, the including class also gets those changes… confirm?
codezombie has quit [Read error: Connection reset by peer]
codezombie has joined #ruby
ryanhirsch has joined #ruby
<machty> but this doesn't seem to be happening
<popl> machty: there's a #rubyonrails
codezombie13 has quit [Read error: Connection reset by peer]
msuszczy has quit [Quit: Lost terminal]
<machty> popl: i know… but i think this is more of a ruby question. i might just be fundamentally misunderstanding how class/module reopening/inclusion works
<popl> ok
headius has quit [Quit: headius]
codezombie13 has joined #ruby
codezombie13 has quit [Client Quit]
jimg_ has joined #ruby
JZTech101 has quit [Ping timeout: 268 seconds]
tkuchiki has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno has joined #ruby
cdelo_ has joined #ruby
danslo has quit [Read error: Connection reset by peer]
cdelo has quit [Ping timeout: 248 seconds]
danslo has joined #ruby
codezombie has quit [Ping timeout: 260 seconds]
nomenkun has joined #ruby
<krainboltgreene> machty: What you're saying is correct.
<popl> What is machty saying?
<krainboltgreene> machty: But you should make a tiny script to confirm this.
tkuchiki has quit [Remote host closed the connection]
<machty> i did. i think i might be getting bitten by some rails magic
<machty> thanks for the confirm though
<krainboltgreene> Most likely due to the autoload process.
reset has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
cdelo has joined #ruby
mosheee has quit [Quit: ZNC - http://znc.in]
harrymoreno has joined #ruby
LennyLinux has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
mosheee has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
<RobW_> Any good tutorials on working with minimagick?
cdelo_ has quit [Ping timeout: 252 seconds]
<RobW_> I'm finding the imagemagick docs pretty disorganized
Peej has quit [Ping timeout: 256 seconds]
mosheee has quit [Client Quit]
<popl> damn, Symbol.all_symbols.length == 3322
r0bby has joined #ruby
<popl> \o/
mosheee has joined #ruby
jimg_ has quit [Remote host closed the connection]
AlSquire has joined #ruby
AlSquire has quit [Client Quit]
cdelo has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
<Deele> it is so funny, to code some permutations function and after 2 hours of work and testing, find out that it can be done with built-in function
lindenle has joined #ruby
bionoid has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 252 seconds]
<popl> Deele: It's better to learn how it is done first IMHO.
<Deele> this time, it was permutations
<popl> it's like learning Newton's Method in calculus
<Deele> I ported like 5 different methods from C and Java
samuel02 has quit [Remote host closed the connection]
<Deele> none worked
<popl> oh
<popl> whose fault is that? ;)
<Deele> ofc, it could be mine
<popl> Deele: win some, lose some
<Deele> popl can you check my code for mistakes?
<popl> I could but I am a beginner too.
<popl> at least with ruby
threesome has quit [Ping timeout: 256 seconds]
<Deele> I dunno why, it outputs array with same numbers
bionoid has joined #ruby
Thermo has joined #ruby
<popl> control structure makes it look like a snake!
obs has quit [Quit: Konversation terminated!]
<Deele> that is... a good attribute
vigintas has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
ciziar has quit [Quit: Computer has gone to sleep.]
<popl> Deele: I think you should not try to port something from some other language and instead start with a generalized description of an algorithm then go from there
<Deele> already did that, but it worked for numbers up to 3 digits
JZTech101 has joined #ruby
AntelopeSalad has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 240 seconds]
<AntelopeSalad> hey guys, i added the 'which gem' path to my PATH dir but i can't run any gems that i install -- any idea what's going on with that? i'm brand new to ruby
harrymoreno has joined #ruby
<popl> Deele: why couldn't you make it work for longer sequences?
A124 has quit [Ping timeout: 264 seconds]
Kar- has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
julweber has joined #ruby
bionoid has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
jonathanwallace1 has joined #ruby
Lewis has joined #ruby
cofin has quit [Quit: cofin]
Lewis is now known as lewix
<lewix> hi
LennyLinux has joined #ruby
machty has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Quit: Leaving]
jimg has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 256 seconds]
Soliah has quit [Ping timeout: 248 seconds]
blackmesa has quit [Quit: WeeChat 0.4.1]
mercwithamouth has joined #ruby
freeayu has joined #ruby
jonathanwallace1 has quit [Ping timeout: 252 seconds]
janniks has quit [Quit: Leaving]
janniks_ has quit [Remote host closed the connection]
postmodern has joined #ruby
harrymoreno has joined #ruby
nomenkun has joined #ruby
skasio_ has joined #ruby
skasio_ has quit [Client Quit]
daihuws has joined #ruby
marr has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
zhando` has joined #ruby
banzounet has joined #ruby
RORgasm has joined #ruby
fredjean has quit [Ping timeout: 246 seconds]
saurabh has joined #ruby
Peej has joined #ruby
<saurabh> hi guys
<Deele> hi
zhando has quit [Remote host closed the connection]
ninegrid has quit [Remote host closed the connection]
<saurabh> any one attended recently ruby conference '2013
demet8 has quit [Quit: demet8]
emergion has joined #ruby
fredjean has joined #ruby
demet8 has joined #ruby
brianherman has quit [Quit: Leaving]
brianherman has joined #ruby
statarb3 has quit [Quit: Leaving]
saurabh has quit [Client Quit]
RORgasm has quit [Ping timeout: 268 seconds]
marcgg has quit [Read error: No route to host]
harrymoreno has quit [Quit: harrymoreno]
fomatin has joined #ruby
marcgg has joined #ruby
tkuchiki has joined #ruby
banghouse has quit [Remote host closed the connection]
fomatin has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
<banzounet> Hey, I've this object : http://pastebin.com/WynSR9W4 if I want to acces to a var like entities I should do nameOfObject.entities right?? (I'm pretty new to ruby)
crazymykl has quit [Ping timeout: 276 seconds]
tkuchiki has quit [Remote host closed the connection]
nari has joined #ruby
x1337807x has joined #ruby
ntus1017 has quit [Remote host closed the connection]
jimg has joined #ruby
jimg has quit [Remote host closed the connection]
Thermo has joined #ruby
Tarential has quit [Excess Flood]
<krainboltgreene> banzounet: Usually, yes.
Tarential has joined #ruby
<krainboltgreene> You don't access variables this way, you are calling a method.
takezawa has joined #ruby
<krainboltgreene> That method then might return the value of a instance variable (usually)
justsee has quit [Ping timeout: 246 seconds]
Es0teric has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
nisa has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
<banzounet> krainboltgreene: is there a way to know all the methods of a object? (since It's not my class)
generalissimo has quit [Remote host closed the connection]
<krainboltgreene> banzounet: Yes, everything that inherits from Object has access to the #public_methods, #private_methods, etc.
kasper has quit [Remote host closed the connection]
v0n has joined #ruby
<banister> banzounet: if you use pry, you can just go: ls your_object
<banister> and it'll tell you
<krainboltgreene> To get ONLY the methods of that class, and not methods it inherits from other classes, use object.public_methods(false)
havenwood has joined #ruby
nomenkun has joined #ruby
<krainboltgreene> banister: As much as I love Pry, it's better to start understanding how Ruby's method categorization works.
<banister> :)
ZuzzleBuzzer has joined #ruby
zhando` has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomenkun has quit [Ping timeout: 276 seconds]
kofno has joined #ruby
emergion has joined #ruby
codepython777 has quit [Quit: Leaving.]
GeissT has joined #ruby
kasper has joined #ruby
RobW__ has joined #ruby
codepython777 has joined #ruby