fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
Knodi has left #ruby [#ruby]
chimkan has quit [Quit: chimkan]
Pochacco has joined #ruby
LouisGB has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 240 seconds]
nari_ has quit [Ping timeout: 245 seconds]
noyb has joined #ruby
Criztian has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
lggr has joined #ruby
slicslak has joined #ruby
ttt has joined #ruby
jimeh5 has quit [Ping timeout: 245 seconds]
cakehero has joined #ruby
josh^ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Pochacco has quit [Quit: Pochacco]
TomJ has quit [Quit: TomJ]
lggr has joined #ruby
deryl has joined #ruby
jasonkuhrt has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby
justinmcp has joined #ruby
skogis has quit [Ping timeout: 260 seconds]
roadt has joined #ruby
elux has quit [Quit: Leaving...]
RudyValencia- has quit [Ping timeout: 256 seconds]
wedtm is now known as wedtm|away
lggr has quit [Ping timeout: 255 seconds]
Forevernade has quit [Remote host closed the connection]
t0rc has quit [Ping timeout: 252 seconds]
hsbt_away is now known as hsbt
linoj has joined #ruby
Pochacco has joined #ruby
tgraham is now known as tgraham|away
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has joined #ruby
enrique has joined #ruby
g-ram has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
dmiller has quit [Ping timeout: 246 seconds]
Markvilla has quit [Read error: Connection reset by peer]
Markvilla has joined #ruby
tgraham|away is now known as tgraham
lggr has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
harushimo has joined #ruby
hekin has joined #ruby
<harushimo> I upgraded my ruby to 1.9.2 but I want to use it as my default. when I do the command rvm use 1.9.2 --default and I check the version, it shows 1.8.7
baroquebobcat has joined #ruby
<harushimo> how can I fix that
Tref has quit [Quit: Tref]
fyolnish has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Markvilla has quit [Read error: Connection reset by peer]
lggr has joined #ruby
t0rc has joined #ruby
hekin has quit [Ping timeout: 240 seconds]
justinmcp has quit [Remote host closed the connection]
Takehiro has joined #ruby
justinmcp has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
yshh has quit [Remote host closed the connection]
slicslak has quit [Ping timeout: 260 seconds]
ryanf_ has quit [Ping timeout: 255 seconds]
Takehiro has quit [Ping timeout: 244 seconds]
<deryl> should be asked in #rvm not here. Quick solution is rvm alias delete default ; rvm use 1.9.2@mygemset —-default then close your terminal and reopen it. should open with that ruby+gemset set. (see rvm info to ensure)
<deryl> any other questions, take it to #rvm as thats their Q&A channel
bthesorceror has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<harushimo> I didn't know they had rvm channel
<harushimo> thank you
ndrei has joined #ruby
lggr has joined #ruby
touareg has joined #ruby
wedtm|away is now known as wedtm
<touareg> hi I'm running into an issue where I can't install any gems (ubuntu setup). When I try running irb or gem anything I get a loaderror (can't load rubygems.rb). any idea
<touareg> i'm completely blocked
<arubin> touareg: What does ruby -version return?
<arubin> Sorry, ruby -v.
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<touareg> I'm using rvm too if that changes anything
<touareg> ruby-v returns
<touareg> ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
<touareg> arubin*
Takehiro has joined #ruby
yshh has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
seanwash has joined #ruby
bencaron has joined #ruby
Aaaarg has joined #ruby
Aaaarg has quit [Excess Flood]
lusory has quit [Ping timeout: 246 seconds]
Takehiro has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
Aaaarg has joined #ruby
Aaaarg has quit [Excess Flood]
<arubin> Does this return what you expect? ruby -e 'puts $:'
<touareg> prints a bunch of rvm directories
CaptainJet has quit []
seanstickle has joined #ruby
<touareg> ruby foo.rb works
<touareg> but running either irb
blazes816 has joined #ruby
<touareg> or any gem x commands
<touareg> results in the load error rubygems.rb
lggr has joined #ruby
gry has quit [Quit: gone]
yasushi_ has joined #ruby
justinmcp has quit [Remote host closed the connection]
R3dy has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
tgraham is now known as tgraham|away
wpaulson has joined #ruby
noyb has joined #ruby
Dreamer3 has joined #ruby
lggr has joined #ruby
touareg has quit [Quit: Page closed]
Pochacco has quit [Quit: Pochacco]
jblack has quit [Ping timeout: 244 seconds]
ryanf has joined #ruby
Goles has joined #ruby
S1kx has quit [Quit: Leaving]
binary3D has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
gry has joined #ruby
ly- has quit [Remote host closed the connection]
lggr has joined #ruby
Jonah11_ has quit [Ping timeout: 245 seconds]
Jonah11_ has joined #ruby
R3dy has quit [Ping timeout: 244 seconds]
R3dy has joined #ruby
<binary3D> How do I extract the unique id from a url and then use it as the key for a hash? http://pastie.org/4888865
bthesorceror has quit [Quit: bthesorceror]
codeFiend has joined #ruby
seanwash has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
amskah has joined #ruby
fantazo has joined #ruby
brianpWins has joined #ruby
tgraham|away is now known as tgraham
lggr has quit [Ping timeout: 256 seconds]
jblack has joined #ruby
bthesorceror has joined #ruby
lggr has joined #ruby
daniel_- has quit [Ping timeout: 255 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
ly- has joined #ruby
ly- has quit [Changing host]
ly- has joined #ruby
futilegames has quit [Quit: futilegames]
seoaqua has joined #ruby
beachandbytes has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 248 seconds]
wpaulson has quit [Ping timeout: 255 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
linoj has quit [Quit: linoj]
<binary3D> Spooner: I'm good with the URI part, it's the part where I need to set the key that I need help with http://pastie.org/4888900
brianpWins has quit [Quit: brianpWins]
lggr has joined #ruby
Takehiro has joined #ruby
jasonkuhrt has joined #ruby
<binary3D> nm, i realized i had the ":" infront of the id when it shouldn't be there...
<binary3D> 10 hours of coding makes my mind mushy
<Spooner> You can't have :...yeah that (though you can have :"12345" as a symbol, it isn't that useful).
<Spooner> Just use: hash[id] = instead of hash[:id]
<binary3D> thanks
ryanf_ has joined #ruby
wpaulson has joined #ruby
R3dy has quit [Ping timeout: 246 seconds]
<binary3D> is there any difference in using :"12345" as the symbol vs 12345 (ie Integer) as the symbol?
<Spooner> Oh, you need hash[id.to_i] =, otherwise you are indexing on a string.
Takehiro has quit [Ping timeout: 248 seconds]
<binary3D> gotcha
jeff_sebring has quit [Quit: Leaving]
<Spooner> There isn't a difference in performance, at least. Interger makes more sense here, of course. You are using the Hash to create a sparse array, really, if you want to look at it that way.
ryanf has quit [Ping timeout: 240 seconds]
ryanf_ is now known as ryanf
jrunning has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 252 seconds]
bbttxu has joined #ruby
wpaulson has quit [Ping timeout: 260 seconds]
<harushimo> !pastebin
<harushimo> do you have a pastebin for this channel
wpaulson has joined #ruby
<Spooner> binary3D : Hashes consider "1234", :"1234", 1234 as completely different keys.
<binary3D> and performance is all the same?
<Spooner> harushimo : Not directly. If you want to show code, just link to your favourite pasting site.
<harushimo> I just did that
<harushimo> I'm getting this bundle install error
InternetFriends has joined #ruby
<harushimo> its on ubuntu
InternetFriends has quit [Excess Flood]
<Spooner> No, you pasted "!pastbin" not the link, as far as I could see.
InternetFriends has joined #ruby
<harushimo> I just pasted the link
wpaulson_ has joined #ruby
<Spooner> harushimo : Try doing it what it said. That usually gives more verbose errors.
InternetFriends has quit [Excess Flood]
linoj has joined #ruby
<harushimo> gem install name?
InternetFriends has joined #ruby
<Spooner> gem install linecache19 -v '0.5.12'
lggr has joined #ruby
InternetFriends has quit [Excess Flood]
<Spooner> Needs to compile it from C, so probably a problem with finding a library it needs.
InternetFriends has joined #ruby
ewag has joined #ruby
yoklov has joined #ruby
seoaqua has quit [Quit: 离开]
InternetFriends has quit [Excess Flood]
InternetFriends has joined #ruby
<harushimo> I'm not understanding this error message at all
wpaulson has quit [Ping timeout: 260 seconds]
<Spooner> Just compiled it on Windows without issue, so that usually means there aren't external requirements. Probably just not finding something "standard" on your system.
ryanf has quit [Quit: broken pipes |||]
<Spooner> The bundler one or the one you get when you gem install?
InternetFriends has quit [Excess Flood]
InternetFriends has joined #ruby
<harushimo> what are rubies?
<InternetFriends> die
<InternetFriends> die
<InternetFriends> die
<InternetFriends> die
<InternetFriends> die
wpaulson_ has quit [Ping timeout: 246 seconds]
<InternetFriends> die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die
<InternetFriends> die die die die die die die die die die die die die die die die die die die die die die die die die die die die
<InternetFriends> die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die die
<InternetFriends> now you're going to die...
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has left #ruby [#ruby]
InternetFriends has joined #ruby
InternetFriends has quit [Excess Flood]
<harushimo> what the heck is going on
InternetFriends has joined #ruby
<Spooner> Just /ignore InternetFriends
InternetFriends has quit [Excess Flood]
InternetFriends has joined #ruby
<Spooner> I'm guessing that you are referring to ~/.rvm/rubies - that is the directory where RVM installs all your installed versions of Ruby.
ryanf has joined #ruby
InternetFriends has quit [Excess Flood]
<harushimo> gems/linecache19-0.5.12/ext/trace_nums/gem_make.out
InternetFriends has joined #ruby
<harushimo> i'm trying to install my software for this class
Guedes has quit [Ping timeout: 246 seconds]
<harushimo> I need to get it running
lggr has quit [Ping timeout: 252 seconds]
notVert has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
InternetFriends was kicked from #ruby by seanstickle [InternetFriends]
nari_ has joined #ruby
bbttxu has quit [Quit: bbttxu]
wpaulson has joined #ruby
<Spooner> Yes, but I'm not really getting enough information to magically fix it for you. It isn't compiling and it should, somewhere, give you an indication of which library, in particular, it is failing to find (or a more direct C error).
Hanmac1 has joined #ruby
<Spooner> For example, if it is called linecache19, it implies that it is the version for Ruby 1.9.1+, not 1.8.7, so I have to assume you are using the expected Ruby version.
<harushimo> hold on
<harushimo> let me do a paste bin of the current error
Ruler_Of_Heaven_ has quit [Ping timeout: 244 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
jrunning has joined #ruby
<harushimo> here is the other error I just got
pipopopo has joined #ruby
<harushimo> what should I do to fix this?
rburton- has joined #ruby
noyb has quit [Ping timeout: 248 seconds]
<Spooner> Mmm, that isn't as helpful as it might be and I think you need one of the more wise people for this one. Might get something from the mkmf.log, but not sure.
wpaulson has quit [Read error: Connection reset by peer]
dakine has quit [Quit: Leaving]
cakehero has joined #ruby
pac1 has quit [Remote host closed the connection]
philcrissman has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 245 seconds]
oldB has joined #ruby
philcrissman has quit [Remote host closed the connection]
cbuxton has joined #ruby
oldB has quit [Client Quit]
<harushimo> I'll try to install it on my macbook
<harushimo> ubuntu has failed me
<harushimo> I'm going to cry now
<harushimo> hehe
<harushimo> its weird behavior
<Spooner> Someone might be able to help, but they are asleep or visiting Alaska or something.
<harushimo> thats cool
<harushimo> its annoying
cbuxton has quit [Client Quit]
<Spaceghostc2c> You failed it.
wpaulson has joined #ruby
t0rc has quit [Quit: WeeChat 0.3.9]
jblack has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
linoj has quit [Quit: linoj]
cbuxton has joined #ruby
jblack has joined #ruby
ndrei has quit [Read error: Operation timed out]
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
<harushimo> how did I fail
xscc has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
oldB has joined #ruby
xscc has quit [Client Quit]
lggr has quit [Ping timeout: 246 seconds]
oldB has quit [Client Quit]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
lggr has joined #ruby
duracrisis has joined #ruby
duracrisis has joined #ruby
duracrisis has quit [Changing host]
beachandbytes has joined #ruby
xorgnak has joined #ruby
BMF has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
vitor-br has joined #ruby
binary3D has quit [Ping timeout: 255 seconds]
wpaulson has joined #ruby
enrique has quit [Remote host closed the connection]
lggr has joined #ruby
wpaulson_ has joined #ruby
cbuxton1 has joined #ruby
wpaulson has quit [Ping timeout: 245 seconds]
wpaulson_ is now known as wpaulson
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
cbuxton1 has left #ruby [#ruby]
cbuxton has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 245 seconds]
ryanf has quit [Quit: leaving]
ryanf_ has joined #ruby
Takehiro has joined #ruby
ryanlecompte has joined #ruby
lggr has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
wez_ has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
arubin has quit [Quit: arubin]
wargasm has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 246 seconds]
jeffreybaird has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
replore has joined #ruby
jeffreybaird has quit [Client Quit]
maletor has joined #ruby
lggr has joined #ruby
Banistergalaxy has joined #ruby
ly- has quit [Remote host closed the connection]
codeFiend has quit [Ping timeout: 260 seconds]
Spooner has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
wez_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
baroquebobcat has joined #ruby
Pochacco has joined #ruby
harushimo has quit [Quit: Leaving]
lggr has quit [Ping timeout: 245 seconds]
jblack has quit [Ping timeout: 252 seconds]
alek_b has quit [Remote host closed the connection]
uris has joined #ruby
nwest has joined #ruby
lggr has joined #ruby
<RubyPanther> Somebody made an internet friend today, that is nice.
<seanstickle> You made an Internet friend?
alek_b has joined #ruby
<RubyPanther> Well, he's not _my_ friend.
Banistergalaxy has quit [Ping timeout: 260 seconds]
verto is now known as verto|off
havenn has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<havenn> I've been kinda curious how refinements will be tested, if they materialize - any thoughts on this?: https://gist.github.com/3809258
lggr has joined #ruby
<rking> havenn: My thoughts are that RSpec is so hacky that it'll probably require a special thing.
jrunning has quit [Ping timeout: 248 seconds]
<rking> havenn: Though you could make a test-only class before the `describe` that does its own `using`
<Spaceghostc2c> rking: Wat?
ryanf_ has quit [Quit: broken pipes |||]
ianblenke1 has quit [Quit: Leaving.]
<rking> Spaceghostc2c: On his gist, line 20, you definitely don't have a class.
Forevernade has joined #ruby
<havenn> rking: Mmm. I've never actually used rpec. That is just Minitest with a Spec syntax. But I'm curious how well rspec supports 2.0 with it around the corner.
<Spaceghostc2c> Oh looking.
<rking> Spaceghostc2c: By the time the `it` block runs, you're so far from a thing like a normal class.
Takehiro has joined #ruby
<rking> havenn: Sorry, right, not RSpec in this case, but spec-style assertions.
<Spaceghostc2c> Yeah that's odd. and also no rspec.
<rking> havenn: If I'm not mistaken, minitest would generate a function like: Array.test_0001_a_single_element and run that
<havenn> rking: ahh, gotcha - yeah, I felt it was hacky to put the 'using' there, but... it works?
<havenn> rking: I'll have to investigate, over my head. Just playing around with it trying to learn. :)
cakehero has quit [Ping timeout: 240 seconds]
replore has quit [Remote host closed the connection]
<rking> havenn: So the `using` would actually have to happen from some place where `Array` is `self`, and then at that point it's all goofy with the refinement
<rking> havenn: Are you saying this test passes?
<havenn> rking: Yup, it does.
<rking> havenn: And it fails if you comment out line 20?
<havenn> rking: Yes.
<rking> OK I eat my words.
jrunning has joined #ruby
joofsh has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 240 seconds]
cakehero has joined #ruby
dmiller has quit [Remote host closed the connection]
<rking> havenn: OK, so it works because in minitest/spec stuff the `self` is in fact the class being described.
syamajala has joined #ruby
lggr has joined #ruby
<rking> Which means it's doing a funky thing; performing `using` on the class that's being `refine`d.
jasonkuhrt has left #ruby ["Linkinus - http://linkinus.com"]
<havenn> rking: Yeah, my thinking was to test it in isolation of any class it was actually included in - which I'm not at all sure is sane in the least.
hsbt has joined #ruby
<rking> RSpec on the other hand leaves you with a lovely self of #<Class:0x00000005f2f008>
<rking> Which is why I'll probably never intentionally use RSpec again, minitest beats it as far as the AST it builds.
wpaulson has joined #ruby
jrunning_ has joined #ruby
wpaulson has quit [Client Quit]
jrunning has quit [Ping timeout: 256 seconds]
<havenn> rking: Eek. I've been wondering if a mass exodus would happen from Rspec to Minitest? Is there some Rspec magic that prevents it?
<rking> Yes, a greatly reduced set of matchers.
awarner has quit [Remote host closed the connection]
<havenn> rking: Hmm. I guess I'd rather use Minitest with custom matchers. Yeah, it's Rspec I don't know anything about!
<havenn> rking: I've just never used Rspec. Seems to be the craze, but...
<havenn> rking: Just a lot more to read than minitest.
<rking> I like how they're exploring the reaches of communicable code.
<rking> But in some of the stuff I've been doing lately (that is, using pry-rescue to interact with failing tests), I've found RSpec to be unnecessarily miserable.
Banistergalaxy has joined #ruby
<Spaceghostc2c> I don't have too bad of a time with it, but it is a bit more complex to delve into.
Pochacco has quit [Quit: Pochacco]
<havenn> rking: I'm not sure I'll use it, but you've got me curious about the code! Will have to put on my reading list.
jrunning has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
cjs226 has quit []
dmiller has joined #ruby
jrunning_ has quit [Ping timeout: 260 seconds]
luckyruby has joined #ruby
ryanlecompte has quit [Read error: Connection reset by peer]
ZubKonst has joined #ruby
ryanlecompte has joined #ruby
Takehiro has quit [Remote host closed the connection]
lggr has joined #ruby
jrajav has joined #ruby
ZubKonst_ has quit [Ping timeout: 245 seconds]
triptec has joined #ruby
havenn has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
freeayu has joined #ruby
raul782 has joined #ruby
nwest has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 245 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
Guest71256 has joined #ruby
arya_ has joined #ruby
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
<rking> What is the purpose of MyClass::meh over MyClass.meh ?
triptec has quit [Quit: triptec]
<rking> Just to splatter 3 extra pixels on the screen?
<RubyPanther> rking: two bytes and three pixels
<rking> =D
wallerdev has quit [Quit: wallerdev]
nari_ has quit [Ping timeout: 245 seconds]
yoklov has quit [Quit: computer sleeping]
lggr has quit [Ping timeout: 260 seconds]
arya_ has quit [Ping timeout: 260 seconds]
jrunning has quit [Ping timeout: 252 seconds]
tgraham has quit [Quit: Leaving...]
Takehiro has joined #ruby
lggr has joined #ruby
yoklov has joined #ruby
nari_ has joined #ruby
tgraham has joined #ruby
Guest55992 has quit [Quit: Linkinus - http://linkinus.com]
Cache_Money has joined #ruby
macmartine has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
yasushi_ has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 248 seconds]
macmartine has quit [Read error: Connection reset by peer]
uris has quit [Quit: Lost terminal]
Banistergalaxy has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
fredjean has joined #ruby
tgraham has quit [Quit: Leaving...]
fredjean has quit [Client Quit]
macmartine has joined #ruby
Jonah11_ has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 260 seconds]
krz has joined #ruby
fredjean has joined #ruby
lggr has joined #ruby
Spaceghostc2c is now known as CombatWombat
nochamani has joined #ruby
blazes816 has quit [Quit: blazes816]
macmartine has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
ly- has joined #ruby
Forevernade has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
CombatWombat is now known as Spaceghostc2c
lggr has joined #ruby
nochamani has quit [Ping timeout: 255 seconds]
jarred_ has joined #ruby
elico has quit [Quit: elico]
syamajala has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
Targen has quit [Read error: Connection reset by peer]
davidcelis has quit [Ping timeout: 260 seconds]
justinmcp has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
otters has joined #ruby
davidcelis has joined #ruby
nochamani has joined #ruby
kuzushi_ has quit [Ping timeout: 256 seconds]
nochamani has quit [Remote host closed the connection]
lggr has joined #ruby
Targen has joined #ruby
dmiller has joined #ruby
Fretta has quit [Quit: Fretta]
josh^ has quit [Remote host closed the connection]
josh^ has joined #ruby
Takehiro has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
dmiller has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
lggr has joined #ruby
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
DracoDan has joined #ruby
ori-l has quit [Quit: bye.]
dmiller has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
arkiver has joined #ruby
jblack has joined #ruby
Guest71256 has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
dakine has joined #ruby
<rking> LOL @ Go. What an unexciting language.
<rking> LOL @ rking, w/w champion.
yoklov has quit [Quit: computer sleeping]
lggr has quit [Ping timeout: 246 seconds]
virtualentity has quit [Ping timeout: 244 seconds]
ly- has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
Takehiro has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
lggr has joined #ruby
<Paradox> rking, at least Go! is better than Haskell
virtualentity has joined #ruby
<rking> Paradox: My relative interest in those two is opposite. I really want to get around to Haskell. Go is just a meh-fest for me.
Banistergalaxy has joined #ruby
<Paradox> rking, brace for aspergers if you plan to do anything with haskell
<Paradox> and a lot of this: http://i.imgur.com/rAA3o.jpg
Takehiro has joined #ruby
<rking> Paradox: That doesn't trouble me. In fact, I like it when there's a bit of feistiness surrounding a topic.
<rking> People that do Haskell seem to a) like it, and b) think about programming very differently than I do.
<Paradox> rking, they dont actually ever program
<rking> Haha
<Paradox> they just sit about circlejerking about algorithims
noyb has joined #ruby
<Paradox> OMG HUFFMAN ALGORITHIMS IN MY DJIKSTRA!
icole has joined #ruby
Eplemosen has joined #ruby
Eplemosen has quit [Client Quit]
lggr has quit [Ping timeout: 245 seconds]
burgestrand has joined #ruby
vitor-br has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
ly- has joined #ruby
dmiller has quit [Remote host closed the connection]
iori has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 255 seconds]
Aaaarg has joined #ruby
Aaaarg has quit [Excess Flood]
arkiver has quit [Quit: Leaving]
sagax has joined #ruby
sagax has quit [Read error: Connection reset by peer]
sagax_ has joined #ruby
ly- has quit [Remote host closed the connection]
lggr has joined #ruby
Aaaarg has joined #ruby
Banistergalaxy has joined #ruby
samphippen has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
lggr has quit [Ping timeout: 260 seconds]
L1 has quit [Read error: Connection reset by peer]
altivec has quit [Quit: WeeChat 0.3.7]
ananthakumaran has joined #ruby
ly- has joined #ruby
ly- has quit [Changing host]
ly- has joined #ruby
bhavesh_a_p has joined #ruby
bhavesh_a_p has quit [Client Quit]
ori-l has joined #ruby
lggr has joined #ruby
cakehero has joined #ruby
emanu has joined #ruby
AndChat| has joined #ruby
cakehero has quit [Ping timeout: 246 seconds]
tagrudev has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
Apathetic has joined #ruby
lggr has joined #ruby
<Apathetic> should I be downloading the one on the top of at the bottom? http://i.imgur.com/5m45I.png
<Mon_Ouie> Top
<Mon_Ouie> Don't start using 1.8.x now
Banistergalaxy has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
<Apathetic> thanks :D
starship has joined #ruby
whowantstolivefo has joined #ruby
AndChat| has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Pochacco has joined #ruby
slicslak has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Ping timeout: 255 seconds]
lurraca has quit [Quit: This computer has gone to sleep]
Banistergalaxy has quit [Ping timeout: 246 seconds]
DrShoggoth has quit [Ping timeout: 245 seconds]
vukini has joined #ruby
lggr has joined #ruby
Erfankam has joined #ruby
conor_ireland has joined #ruby
aganov has joined #ruby
Banistergalaxy has joined #ruby
ly- has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
pauC has joined #ruby
A124 has quit [Read error: No route to host]
maletor has joined #ruby
starship_ has joined #ruby
starship_ has quit [Read error: Connection reset by peer]
<Cache_Money> What's the best approach to saving a hash to a file?
lggr has quit [Ping timeout: 240 seconds]
Apathetic has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 245 seconds]
AlbireoX has quit [Ping timeout: 252 seconds]
starship has quit [Ping timeout: 248 seconds]
A124 has joined #ruby
lggr has joined #ruby
Cache_Money has quit [Quit: Leaving]
duracrisis__ has joined #ruby
duracrisis has quit [Read error: Connection reset by peer]
amskah has quit [Quit: Leaving]
senny has joined #ruby
cakehero has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
AndChat| has joined #ruby
triptec has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
lggr has joined #ruby
maletor has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
answer_42 has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
thebastl has joined #ruby
thunderstrike has joined #ruby
ananthakumaran has joined #ruby
noyb has quit [Ping timeout: 244 seconds]
duracrisis__ has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
Banistergalaxy has joined #ruby
_mak has joined #ruby
Eplemosen has joined #ruby
conor_ireland has quit [Quit: conor_ireland]
samphippen has quit [Quit: Computer has gone to sleep.]
vectorshelve has joined #ruby
<vectorshelve> hemanth: Hi
<hemanth> vectorshelve, hey
<vectorshelve> hemanth: hwo you ?
<hemanth> meza fine, u?
<vectorshelve> hemanth: meza teek too
<hemanth> will be deticating site to Gandhi tomo :)
<hemanth> wait and watch
<vectorshelve> hemanth: special day tomorrow... :)
<vectorshelve> deticating or dedicating ?
<hemanth> dedicating
<hemanth> hmm
jenrzzz has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
maesbn has joined #ruby
Eplemosen has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
zigomir has joined #ruby
mikepack has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
timonv has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
Morkel has joined #ruby
nilg has joined #ruby
lggr has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 260 seconds]
twinturbo has joined #ruby
twinturbo has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Banistergalaxy has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Pochacco has quit [Quit: Pochacco]
bigkevmcd has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
punkrawkR has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
lggr has joined #ruby
margle has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
passbe has quit [Quit: WeeChat 0.3.8]
arturaz has joined #ruby
awestroke has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Monie has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
zommi has joined #ruby
lggr has joined #ruby
icole has quit [Remote host closed the connection]
jastix has joined #ruby
Takehiro has quit [Remote host closed the connection]
jprovazn has joined #ruby
zii has joined #ruby
zii has quit [Changing host]
zii has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
djdb has joined #ruby
Elhu has joined #ruby
dhruvasagar has joined #ruby
lggr has joined #ruby
vlad_starkov has joined #ruby
vukini has quit [Quit: vukini]
matrixise has quit [Ping timeout: 245 seconds]
samphippen has joined #ruby
rpgsimmaster has quit [Read error: Operation timed out]
mtkd has quit [Read error: Operation timed out]
mtkd has joined #ruby
samphippen has quit [Client Quit]
rpgsimmaster has joined #ruby
pigggie_ has joined #ruby
thunders_ has joined #ruby
thunderstrike has quit [Ping timeout: 240 seconds]
pigggie_ has left #ruby [#ruby]
Rochefort has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
hoelzro|away is now known as hoelzro
Hanmac1 is now known as Hanmac
Xeago has joined #ruby
bluOxigen has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Remote host closed the connection]
lggr has joined #ruby
<whowantstolivefo> hiya. i begin to write a web app as amateur and i want to implement same in ruby. I am aware of the ruby frameworks like Campimp, Ramaze, vintage, merb, sinatra. only i wanna learn which is most suitable framework for developing web based application using ruby and more docs in ruby if have any problem ?
passbe has joined #ruby
elico has joined #ruby
<Spaceghostc2c> whowantstolivefo: No.
<whowantstolivefo> Spaceghostc2c : ?
<Xeago> a backend does not define a webapp
Takehiro has joined #ruby
joshman_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
elico has quit [Quit: elico]
lggr has joined #ruby
Solnse has joined #ruby
elsifaka has joined #ruby
LouisGB has joined #ruby
shiki has quit [Remote host closed the connection]
joshman_ has quit [Quit: Computer has gone to sleep.]
Eplemosen has joined #ruby
Eldariof-ru has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rippa has joined #ruby
jimeh5 has joined #ruby
lurraca has joined #ruby
icole has joined #ruby
lggr has joined #ruby
Hamed-R has joined #ruby
roadt has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
ryanf has joined #ruby
slicslak has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
KevinSjoberg has joined #ruby
rabidpraxis has joined #ruby
lggr has joined #ruby
kjellski has joined #ruby
cezar has joined #ruby
chimay has joined #ruby
samphippen has joined #ruby
haxrbyte_ has joined #ruby
kjellski has quit [Read error: Connection reset by peer]
alienaut1 has left #ruby [#ruby]
cezar has quit [Client Quit]
colinbm has joined #ruby
Solnse has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 255 seconds]
haxrbyte has quit [Ping timeout: 240 seconds]
fixl has joined #ruby
Iszak has joined #ruby
awestroke has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
icooba has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
lggr has joined #ruby
bluenemo has quit [Remote host closed the connection]
Eplemosen has quit [Ping timeout: 252 seconds]
roadt has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Eplemosen has joined #ruby
justinmcp has quit [Remote host closed the connection]
Eplemosen has quit [Client Quit]
rakl has joined #ruby
icole has quit [Remote host closed the connection]
slainer68 has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
jarred_ has quit [Quit: jarred_]
lggr has joined #ruby
Criztian has joined #ruby
icooba has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Bosox20051 has quit [Quit: Leaving]
[Neurotic] has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
skogis has joined #ruby
KevinSjoberg has joined #ruby
lggr has joined #ruby
AndChat| has joined #ruby
AndChat- has joined #ruby
elaptics`away is now known as elaptics
Criztian has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 248 seconds]
AndChat| has quit [Ping timeout: 245 seconds]
SeySayux has quit [Quit: SeySayux]
Villadelfia has quit [Quit: Leaving.]
daniel_- has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
Criztian has joined #ruby
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
SeySayux has joined #ruby
lggr has joined #ruby
Villadelfia has joined #ruby
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
AndChat- has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 245 seconds]
ryanf has quit [Quit: leaving]
Neomex has joined #ruby
cantonic has quit [Quit: cantonic]
Chryson has quit [Quit: Leaving]
matrixise has joined #ruby
chussenot has joined #ruby
c0rn_ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
cantonic has joined #ruby
gyre007 has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
gregorg_taf has joined #ruby
AndChat| has joined #ruby
robotmay has joined #ruby
Vainoharhainen has joined #ruby
gregorg has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 248 seconds]
graeme has joined #ruby
thunders_ has quit []
Banistergalaxy has quit [Ping timeout: 245 seconds]
thunderstrike has joined #ruby
jgrevich has quit [Quit: jgrevich]
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby
c0rn_ has quit []
d3vic3 has joined #ruby
cantonic has quit [Client Quit]
chussenot has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
lggr has joined #ruby
dr_bob has joined #ruby
m3pow has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
snearch has joined #ruby
c0rn_ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
timmow has joined #ruby
sspiff has joined #ruby
sspiff has joined #ruby
pigggie has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
lggr has joined #ruby
vlad_starkov has joined #ruby
timonv has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
arietis has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
_bart has joined #ruby
maletor has joined #ruby
Rochefortes has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Chat3456 has joined #ruby
<Chat3456> Hello
Chat3456 has quit [Client Quit]
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
beachandbytes has quit [Ping timeout: 260 seconds]
cantonic has joined #ruby
lggr has joined #ruby
Rochefort has quit [Ping timeout: 245 seconds]
roadt has quit [Ping timeout: 245 seconds]
rakl has quit [Quit: sleeping]
<_bart> Hi
pskosinski has joined #ruby
reset has joined #ruby
<Neomex> hi indeed
<_bart> How do use path (or css) on a nokogiri document to get same level div, tr and li in an array? So let's say <body><ul><li>1</li><li>2</li><li>3</li></ul><div id="main"><div>some</div><div>thing</div></div></body>
m3pow has joined #ruby
<_bart> then I would like the "collections" in an array, so [<li>1</li>, <li>2</li>, <li>3</li>], [<div>some</div>, <div>thing</div>]
<_bart> I know you could nest another "collection" in side a set of same-level elements, that doesn't matter, I want to get both levels.
Rochefortes has quit [Remote host closed the connection]
<_bart> (the selection does not care about the contents of the html element)
workmad3 has joined #ruby
pauC has quit [Quit: Ex-Chat]
wedtm is now known as wedtm|away
lggr has quit [Ping timeout: 260 seconds]
freeayu__ has joined #ruby
lggr has joined #ruby
freeayu has quit [Ping timeout: 248 seconds]
roadt has joined #ruby
indian has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
flovv has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<thomasfedb> _bart, what's wrong with .children ?
lggr has quit [Ping timeout: 246 seconds]
snearch has quit [Quit: Verlassend]
lggr has joined #ruby
Eldariof-ru has quit []
Banistergalaxy has joined #ruby
AndChat- has joined #ruby
raul782 has quit [Remote host closed the connection]
freeayu__ has quit [Ping timeout: 248 seconds]
AndChat| has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Eldariof-ru has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
notVert has joined #ruby
roadt has quit [Ping timeout: 244 seconds]
robotmay_ has joined #ruby
ephemerian has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
manizzle has quit [Ping timeout: 256 seconds]
flovv has quit [Remote host closed the connection]
graeme has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
graeme has joined #ruby
robotmay has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 255 seconds]
robotmay_ has quit [Remote host closed the connection]
justinmcp has joined #ruby
robotmay has joined #ruby
fixl has quit [Remote host closed the connection]
cantonic_ has joined #ruby
chussenot_ has joined #ruby
lggr has joined #ruby
fixl has joined #ruby
chussenot has quit [Ping timeout: 245 seconds]
chussenot_ is now known as chussenot
pskosinski has quit [Read error: Connection reset by peer]
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
pskosinski has joined #ruby
samphippen has joined #ruby
indel has joined #ruby
adambeynon has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
iCEAGE has joined #ruby
iCEAGE has quit [Changing host]
iCEAGE has joined #ruby
graeme has quit [Ping timeout: 246 seconds]
chussenot has quit [Remote host closed the connection]
beachandbytes has joined #ruby
chussenot has joined #ruby
lggr has joined #ruby
Hamed-R has quit [Ping timeout: 245 seconds]
futilegames has joined #ruby
luckyruby has quit [Remote host closed the connection]
Forevernade has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
shiki has joined #ruby
monkegjinni has joined #ruby
lggr has joined #ruby
TomJ has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
<_bart> thomasfedb: hmm you're right, I'm testing it right now
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<_bart> thomasfedb: I wonder, does /*/*/*/p also match the first-level p's? or only the ones that are four levels in?
x0F_ is now known as x0F
fyolnish has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
<nw_> only the ones that are four levels in
Russell^^ has joined #ruby
<nw_> _bart: you could also do html.xpath("//ul/li").to_a or html.xpath("//div[@id = 'main']/div").to_a if you're so inclied
Guedes_out is now known as Guedes
<nw_> or html.xpath("//ul/li | //div[@id = 'main']/div").to_a if you want both elements in the same array... but i suppose you don't
<_bart> nw_: thanks, but that example I mentioned was abstract, my .xpath should match any set at any level.
<nw_> oh, i see
<nw_> so by set you mean, any set of more than one element?
lggr has joined #ruby
nari_ has quit [Ping timeout: 245 seconds]
reset has quit [Quit: Leaving...]
Neomex has quit [Quit: Neomex]
zeromodulus has quit [Ping timeout: 245 seconds]
nilg has quit [Ping timeout: 245 seconds]
hsbt is now known as hsbt_away
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
robotmay has quit [Read error: Connection reset by peer]
robotmay_ has joined #ruby
dhruvasagar has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
ndrei_ has joined #ruby
rubz_gold has joined #ruby
lggr has joined #ruby
robotmay_ has quit [Read error: Connection reset by peer]
robotmay has joined #ruby
<rubz_gold> HI, I came across a method .dup in ruby (rails). What sort of benefit does it have over assignment operator. for instance I have @user variable. Assigning user2 = @user is the same as user2 =@user.dup?
<nw_> _bart: my question was badly worded, but i think this XPath monster should do it: html.xpath("//*[following-sibling::*[name(.) = name(preceding-sibling::*[1])] or preceding-sibling::*[name(.) = name(following-sibling::*[1])]]")
<nw_> didn't test it extensively, but something along those lines should work
robotmay has quit [Remote host closed the connection]
<_bart> nw_: wow that's a real beast
<nw_> if i understood correctly what you meant :)
<nw_> _bart: yeah, xpath often is :P
piotr_ has joined #ruby
Ayey has joined #ruby
robotmay has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fermion has joined #ruby
chrisja has joined #ruby
roadt has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
sgupta is now known as Shrink
Shrink has quit [Changing host]
Shrink has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
<workmad3> rubz_gold: no, it's not the same
tgraham has joined #ruby
<workmad3> rubz_gold: user2 = @user just creates a new variable pointing to the same object, while user2 = @user.dup creates a duplicate object that user2 is now pointing to
heftig has quit [Quit: leaving]
beachandbytes has quit [Ping timeout: 248 seconds]
<rubz_gold> oh.
<rubz_gold> got it
<rubz_gold> thanks workmad3
elaptics`away is now known as elaptics
ndrei_ has quit [Quit: Lost terminal]
lggr has joined #ruby
iCEAGE has quit [Quit: Leaving]
dangerousdave has joined #ruby
<nw_> _bart: something along these lines might work too: http://pastie.org/4890595
beiter has joined #ruby
<_bart> nw_: but I think you should loop through each level then, not just randomly
freeayu has joined #ruby
<_bart> so each level separately I mean
tgraham has quit [Quit: Leaving...]
robotmay_ has joined #ruby
playmuc_ has quit [Quit: leaving]
<_bart> nw_: but that's only a minor adjustment, to keep adding /*'s
<_bart> but then the question is, how many levels does a document contain?
<_bart> (my battery is by the way running low, so if I'm suddenly gone it's because the battery died.
lggr has quit [Ping timeout: 256 seconds]
robotmay has quit [Ping timeout: 245 seconds]
_bart has quit [Quit: _bart]
zeromodulus has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
chussenot_ has joined #ruby
tvw has joined #ruby
Ayey has quit [Quit: Leaving]
lggr has joined #ruby
chussenot has quit [Ping timeout: 245 seconds]
chussenot_ is now known as chussenot
rubz_gold has quit [Ping timeout: 245 seconds]
robotmay has joined #ruby
robotmay has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
robotmay_ has quit [Ping timeout: 246 seconds]
josh^ has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
josh^ has joined #ruby
Mon_Ouie has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
thunderstrike has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
slainer68 has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
nga4 has quit [Ping timeout: 244 seconds]
Xeago_ has joined #ruby
robertotauille has joined #ruby
nga4 has joined #ruby
lggr has joined #ruby
josh^ has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 244 seconds]
chimay has quit [Quit: WeeChat 0.3.9-rc1]
Takehiro has joined #ruby
josh^ has joined #ruby
KevinSjoberg has joined #ruby
JonnieCa1he has joined #ruby
tgraham has joined #ruby
cantonic has quit [Quit: cantonic]
bartj3 has joined #ruby
rotev has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
colinbm has quit [Quit: colinbm]
sspiff has quit [Remote host closed the connection]
cantonic has joined #ruby
mr_dynamix has joined #ruby
Elhu has quit [Ping timeout: 244 seconds]
chimay has joined #ruby
sspiff has joined #ruby
sspiff has joined #ruby
lggr has joined #ruby
Elhu has joined #ruby
heftig has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
pk1001100011 has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
colinbm has joined #ruby
Banistergalaxy has joined #ruby
beiter has quit [Ping timeout: 246 seconds]
AndChat| has joined #ruby
leehambley has joined #ruby
<leehambley> hi all, I have a long, long running process that has now eaten 26Gb of RAM, I was expecting it to use a lot of memory, but this is kindof out of control - without breaking the process, how do I even begin to figure out where that memory has gone, so that I can optimzie that out for the next run ? http://cl.ly/image/092G2w1v3O2v
TomJ has quit [Quit: TomJ]
nga4 has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 260 seconds]
<leehambley> (ok, RSS at 13.4Gb is a bit more reasonable, virtual is more than double that, machine has 16Gb physical)
AndChat- has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
arkiver has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
resuremade has joined #ruby
frogprince has joined #ruby
josh^ has quit [Ping timeout: 245 seconds]
moshef has joined #ruby
R3dy has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
larissa has joined #ruby
<moshef> I have a text and I want to split this text into sentences. I use to split it by dots and usually it works ok. problem is - sometimes the text looks something like this -- hi bla bla bla -- hihi bla bla bla -- etc
pk1001100011 has quit [Remote host closed the connection]
<moshef> as in, people are using -- to split the text into sentences, and sometimes its just some random ASCII crap they like.
<ccooke> Welcome to the natural language processing problem :-)
<moshef> thank you :)
<moshef> my first thought is, check if any of those signs appear a lot and there aren't many dots, and then split by that sign instead
<moshef> thoughts? better ideas?
josh^ has joined #ruby
ZubKonst_ has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
Eplemosen has joined #ruby
ZubKonst has quit [Ping timeout: 245 seconds]
Foxandxss has joined #ruby
bencaron has quit [Quit: bencaron]
iori has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 245 seconds]
Xeago_ has quit [Remote host closed the connection]
jrajav has quit []
Xeago has joined #ruby
vlad_starkov has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
pskosinski has joined #ruby
monkegjinni has joined #ruby
lggr has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
triptec has quit [Read error: Connection reset by peer]
triptec has joined #ruby
<moshef> ccooke: solr knows how to do it?
tommyvyo has joined #ruby
c0rn_ has quit []
tommyvyo has quit [Client Quit]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Hanmac has quit [Ping timeout: 248 seconds]
Hanmac has joined #ruby
cantonic has quit [Quit: cantonic]
<A124> I would like to isolate differences between two strings, any hint how that could be done?
lggr has quit [Ping timeout: 248 seconds]
tgraham has quit [Quit: Leaving...]
lggr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
resuremade has quit [Remote host closed the connection]
cantonic has joined #ruby
jrunning has joined #ruby
<burgestrand> leehambley: I take it you have no possibility of opening a debugging session with IRB/Pry in the process?
<leehambley> burgestrand, too late- didn't load any of those Gems, unfortunately
<burgestrand> leehambley: you can attach GDB to the process and inspect it from there. The process will be frozen for the duration, but as far as I know you can execute ruby code by using the ruby C API, and possibly even eval strings, from within the GDB session.
KevinSjoberg has joined #ruby
<burgestrand> I’ve done it a few times before, but that was nearly two years ago now.
<burgestrand> leehambley: I was thinking you could iterate through ObjectSpace.each_object, and figure out what kind of objects you have the most of (which would likely be the kind of object eating your memory)
<leehambley> burgestrand, that might be worth a shot, cheers -- the problem is I'd liek to see the heap_info, and see if there's any information about where all the memory went, or if it's a GC issue or something
<burgestrand> leehambley: I would expect you have some kind of object being stored forever, or possibly if you generate symbols dynamically.
triggerfox has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<leehambley> yeah, could be the case, it's an anemone based crawler, so I don't expect much from good memory management
carloslopes has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
triggerfox has quit [Client Quit]
Mon_Ouie has joined #ruby
slainer68 has joined #ruby
<bnagy> A124: even a very naive differ is quite tricky to write
<bnagy> depends what kinds of strings you're diffing and what kind of output you want
<bnagy> I've had luck with a gem called diff-lcs, but it's VERY slow
lggr has joined #ruby
<bnagy> otherwise shell out to diff / sdiff imho
<bnagy> there's also a google project called diff match patch, but no ruby impl.
R3dy has quit [Ping timeout: 248 seconds]
<moshef> bnagy: my dear friend :)
jrunning has quit [Ping timeout: 245 seconds]
<moshef> bnagy: how are you up for some regex time?
<bnagy> yeah, I hate regexes
<moshef> awesome
<Hanmac> A124: "abcde".chars.zip("abced".chars).map {|a,b| a == b}
futilegames has quit [Quit: futilegames]
nari_ has joined #ruby
<moshef> so, thats the thing. I'd like to take all non chars (non a-Z, 0-9) and make list with counters of how many times they appear
<moshef> make a hash*
mark_locklear has joined #ruby
<moshef> so if i have "-- hi guys whats up? -- I'm all good" then i'd have {'-' => 4}
<bnagy> and ? => 1 and ' => 1
<moshef> ok, we can ignore ? and '
<bnagy> why?
<moshef> lets do it better, ill have an array defining the keys to ignore, and add this to a-z 0-9
<moshef> because it might help me split text into sentances
<moshef> unless you have a better idea
<bnagy> good luck
<moshef> no worries, lets start with the regex
TomJ has joined #ruby
<moshef> bnagy: can you help me?
<Xeago> moshef: tokenize your text
lggr has quit [Ping timeout: 260 seconds]
<moshef> Xeago: explain?
<workmad3> moshef: why not create an array of sentence-enders and split the text on them?
<Xeago> tokenize: [a..Z0..9], "\.."
<moshef> Xeago: I don't want to break it into words
<Xeago> moshef: then when everytoken is parsed
<Xeago> the most occured of the non-words
<Xeago> cna be used as a sentence seperator
<moshef> workmad3: thats exactly what I'd like to do. because there are different sentence-enders in different text, so I first need to find out what is the sentence ender
<moshef> xeago can you show an example pls?
<Xeago> my regex is too bad, sec
<moshef> it does sound like what I'm trying to do
<workmad3> moshef: it's not something that can be easily determined by purely counting occurences btw
<Xeago> a matcher that matches ! . ? followed by a space
<moshef> workmad3: I know, but thats the best thing I got right now so I'm going with that
<workmad3> moshef: I'd personally be explicit
<Xeago> moshef: maybe best would be to write a learning algorithm
geekbri has joined #ruby
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<workmad3> moshef: sentence_enders = %w(. ! ? --)
fmcgeough has joined #ruby
<moshef> Xeago: what do you mean by ! . ? there are no dots in the text..
lggr has joined #ruby
<moshef> or I understood wrong
<Xeago> moshef: period is a valid sentence ender in my knowledge
<moshef> it is
<Xeago> moshef: basically the same as workmad3 proposed
<moshef> Xeago: but I'm processing text where they're written without dots
<Xeago> you're processing text where it is unknown what the sentence ender is
<moshef> exactly
<Xeago> hence, anything you code into the code will by definition not be sufficient
krawchyk has joined #ruby
<moshef> yet better than nothing
linoj has joined #ruby
<workmad3> moshef: probably not, actually
<Xeago> Because I am inventing a new sentence ender right now **** That's a good one.
<Xeago> workmad3: a better approach would be an algorithm that learns
<moshef> Xeago: example?
<Xeago> write stuff that tokenizes, makes a best guess, asks human for verification, learns, rinse repeat
<workmad3> Xeago: assuming you can teach it the right sort of constructs to look for :)
<moshef> basically - there are no different 'sentence enders' within the same text. not likely at least.
<Xeago> workmad3: everything is tokenizeable :)
<moshef> if -- used as splitter, it will be used through out the entire text
<moshef> same way goes for **** etc
<workmad3> moshef: so the '?' isn't a sentence ender in the example?
<moshef> thats assumption, that could be wrong
dangerousdave has quit [Ping timeout: 265 seconds]
newbism has quit [Ping timeout: 245 seconds]
<moshef> what was the example again
<Xeago> the problem with that is, there are multiple sentence enders given a sentence ender
<bnagy> moshef: you don't understand your problem, but it's already clear they your approach to it is just wrong
<Xeago> -- might have __ and // aswell in the same text
<workmad3> moshef: or is this not really splitting into sentences, but splitting into messages?
<Xeago> just as we have .!?
paolooo has joined #ruby
groupcat is now known as mrmist
<moshef> Xeago: might, not likely. I'm saying this based on the texts I've seen
<bnagy> how is your algorithm going to detect that '--' is the spli not '-'?
<bnagy> anyway, it's all just too silly for words
<Xeago> moshef: what I would do was, count the number of non alphanumerics, make a benchmark for reasonable tipover numbers, verify with a human
yoklov has joined #ruby
<shevy> how to return random character from string like "abcdef" ?
<moshef> bnagy: exactly, the - isn't enough, nor * for ****, I'll need to find the actual -- or **** and split by that
<Xeago> shevy sample
<Xeago> craop
<Xeago> string is not enumerable
<shevy> hmm
<bnagy> split(//).sample
<moshef> so maybe I should begin with that, by trying to find those non chars concurrences ?
yoklov has quit [Client Quit]
<shevy> oh that is a cool solution, thanks
<Xeago> how long is your benchmark text?
<bnagy> or str[rand(str.size)]
<moshef> 400-500 chars
<moshef> top
samphippen has joined #ruby
<Xeago> per text? how many texts?
lggr has quit [Ping timeout: 245 seconds]
<moshef> Xeago: sorry its longer. it's 500-1000 ~ but usually around 400-500
krz has quit [Quit: krz]
<moshef> thats how long each text
<Xeago> do you know the language of the text?
<moshef> I don't process that many texts
<moshef> english
<moshef> written by not english native people :)
<Xeago> >.<
<workmad3> man, that's an awesome set of ranges... 'the text is 500-1000 characters, but normally around 400-500 characters' :D
<moshef> :)
<Xeago> there goes my theorem
<Xeago> in any case, count tokens that match different types of tokenizers, and make it learn
<moshef> workmad3: does it matter if the text is 300 or 500 or 800?
<Xeago> moshef: yes, accuracy
<workmad3> ^^
<moshef> and I define those tokenizers ?
<Xeago> in 1 sentence -- might be a valid mid-sentence seperator, because an em-dash is usually represented as two hyphens
<moshef> like -- , **** etc?
nari_ has quit [Ping timeout: 244 seconds]
<workmad3> if you're doing what amounts to statistical analysis of the text to attempt to pick out certain structures, then the larger the sample the more accurate you can (hopefully) make your results
fbernier has joined #ruby
<Xeago> moshef: no, alphanumerical and non alphanumerical, it will then learn new matchers
<workmad3> that said, the character count isn't really important in this situation... it's the sentence count
<moshef> do you have an example?
lggr has joined #ruby
<workmad3> how many sentences do you tend to get in this text?
<moshef> workmad3: but the char count might help determine that one is the ender and not the other. am I wrong?
<workmad3> moshef: probably not
<Xeago> moshef: while that's the case, you can only use that measurement as verification
<bnagy> in real text I would imagine stuff like , will be more common than sentence terminators
<workmad3> ^^
<Xeago> bnagy: I doubt a comma is more common than a period
<bnagy> also real text does NOT have one unique terminator
<workmad3> Xeago: depends on the writer
<moshef> bnagy: usually it's not. I'm saying this because I've seen the different texts. I might share an example
<bnagy> Xeago: Ibet you a car you're wronh
<bnagy> unless we're talking about IRC or SMS
<workmad3> Xeago: philosophical texts use ',' a lot for example
<Xeago> you're narrowing down to a specific field
<workmad3> Xeago: normal english writing uses , quite a bit too
<workmad3> Xeago: modern technical english style uses , quite minimally though
sagax_ has quit [Quit: Ухожу я от вас]
<bnagy> still >= .
charliesome has joined #ruby
<bnagy> anything with a subsidiary clause will have two, for a start
mensvaga has joined #ruby
AlbireoX has joined #ruby
tgraham has joined #ruby
<moshef> here is a sample text: https://gist.github.com/d88013d08eaf203dc5b7
<Xeago> that is not a representative sample
<workmad3> moshef: still, unless you fancy checking through all your possible text inputs to make sure that the most common non-alphanumeric character is the separator you want, you shouldn't assume anything about occurence
<Xeago> as it is not a text.
<moshef> Xeago: what do you mean its not a text?
<workmad3> moshef: ok, so with that, what constitutes a sentence?
<Xeago> representative sample. it's hardly of any volume
vectorshelve has quit [Quit: Page closed]
<Xeago> it is clearly not natural english
<moshef> - will be a separator, and yes, it means 'Info about me - here!' will be split up as well
lggr has quit [Ping timeout: 256 seconds]
<moshef> Xeago: dude, this is the kind of texts I'm working with.
<workmad3> moshef: right, so with that, - is *not* the most common non-alphanumeric character
<moshef> what is then?
<bnagy> !
<workmad3> moshef: it's tied with !
<moshef> but ! will be ignored
<workmad3> why?L
<Xeago> who said that?
<moshef> me
<Xeago> lol
<Xeago> ..
<workmad3> no you didn't
<moshef> read up a bit, I said I'd like to have an array containing some chars to ignore
<bnagy> if you split on - you will get gibberish
<workmad3> ^^ that too
<Xeago> moshef: my opinion still holds, use a learning algorithm
<moshef> i'll update the gist with split ("-")
<Xeago> read about machine learning
<bnagy> you'd be better splitting on \n for that
<workmad3> moshef: you didn't say that the array would always contain '!'
<Xeago> bnagy: and indentation
My_Hearing has joined #ruby
uris has joined #ruby
<workmad3> moshef: so why would you add a valid split option (one that, in this case, would make more sense than your chosen one) to the automatically ignored options?
<moshef> workmad3: ok, I'm explaining this now then. I know that some chars will not be used as separator and can be ignored. ! is one of them.
<workmad3> moshef: that's f***ing stupid
<moshef> I might just /n, lets see if it's part of my text
<moshef> workmad3: how come
<workmad3> moshef: because you said you wanted to split into sentences
<workmad3> moshef: and ! delimits the end of a sentence
<moshef> workmad3: not always
<Xeago> moshef: you are not splitting on sentence, you're splitting on structures
<workmad3> moshef: yes, always
lggr has joined #ruby
<Xeago> 5! is not a case where '!' ends a sentence :).
<Xeago> unfortunately
TomJ has quit [Quit: TomJ]
<moshef> ok, I take what you say
<moshef> just don't kill
Mon_Ouie has quit [Ping timeout: 245 seconds]
<Xeago> use an evolving algorithm, use a human to verify
emergion has joined #ruby
<moshef> Xeago: thats sort of what I'm doing right now
<A124> Hanmac: Thank you. It's HTML, but I would like to hate it general purpose. The thing is I would like to have something like diff. But dif highlights the differences on line, but no option to separate them from the line by other means.
<moshef> I have a human verifying if I was right or wrong
<Xeago> moshef: but there's no feedback to the algorithm
<Xeago> you get the feedback
<moshef> Xeago: yes, right now I'm still not there. I change myself the algo, it doesn't adapt
<moshef> so yeah, its not machine learning
<Xeago> make it learn, and you're done
elux has joined #ruby
zii has quit [Read error: Connection reset by peer]
<Xeago> teach your human regex
<bnagy> uh
<moshef> Xeago: easy to say
<Xeago> ofcourse that's easy to say :)
<bnagy> sentence detection is really quite a hard problem, even for a 'normal' corpus
zii has joined #ruby
<bnagy> let alone whatever this crap is
Erfankam has quit [Quit: Leaving.]
<bnagy> A124: did you read what I wrote?
<moshef> bnagy: I know
Guest71256 has joined #ruby
<moshef> bnagy: I thought it might be easer when I sort of know the structure, but just splitting by /n might do it
<A124> bnagy: Yes. I'm sorry to blind you.
<A124> *out
<shevy> BLIND
<bnagy> moshef: what are you actually trying to do, anyway?
<A124> shevy: xD
lggr has quit [Ping timeout: 252 seconds]
<moshef> bnagy: see if any of the defined word combinations appear within each sentance
<moshef> sentence
jrist-afk is now known as jrist
<bnagy> wouldn't it be easier to just find them naively and then check to see if it's a false positive?
<bnagy> it's certainly easier than tokenising sentences
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<moshef> bnagy: I did that at first, but too many false positive came up, so I was asked to check within each sentence only. splitting by . and checking lowered the number of false positive by tons
lggr has joined #ruby
<moshef> bnagy: i'll try to split by \n and lets see how it goes
<bnagy> this sounds like a job for Bayes
<bnagy> anyway, my point was you make a first cut, and then look at context to try and guess FPs, like across a '.', second word capitalizes, etc etc
yshh has quit [Remote host closed the connection]
samphipp_ has joined #ruby
<moshef> FPs?
<bnagy> false positives
samphippen has quit [Ping timeout: 252 seconds]
<bnagy> you can probably cook up some sort of fuzzy score that will give you a confidence
leehambley has quit [Quit: leehambley]
<bnagy> but honestly, there is a TON of fricking work on this kind of area
<moshef> yeah, I rather use some library instead
<moshef> I thought solr/lucene can help me with that
<moshef> since I've been told its a very powerful search engine
Goles has joined #ruby
<bnagy> well you're not really searching
<bnagy> you're classifying
samphipp_ has quit [Client Quit]
tommyvyo has joined #ruby
slainer68 has quit [Remote host closed the connection]
<moshef> I'm sort of searching. I'm searching for this kind of texts, I can put it this way
jrajav has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<moshef> I need to put some more thought into this on how I continue from here
<moshef> since it's a bit side track
<moshef> interesting one, so we'll see..
bjhaid has joined #ruby
joofsh has joined #ruby
futilegames has joined #ruby
<bjhaid> hi all I am trying to compile ruby from source and force it to look use openssl that I compiled not the system one, as overiding the system openssl breaks openssh, and using rvm is not an option because the server does not have internet access, please help
Eplemosen has quit [Quit: NOPE]
<shevy> bjhaid, where does the system openssl reside and where does the openssl reside that you compiled?
lggr has joined #ruby
<bjhaid> system openssl is in /usr/bin
<bjhaid> i installed mine in /home/foo/.bar/usr
<bjhaid> sorry system openssl is in /usr
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
krawchyk has quit [Ping timeout: 244 seconds]
<shevy> I guess the ruby scripts will first try to use the system openssl
TomJ has quit [Client Quit]
<shevy> you could temporarily move the openssl libraries to another location, compile ruby, then move them back
<moshef> tr('^A-Za-z0-9.', ' ') . would like to ignore \n
<roadt> hi, i just get ruby's private instance method is inherited by subclass, with risk to overridden by subclass's method mistakenly. so, why (ruby still be) that?
<roadt> afaik, in some other language , private instance method means no inheritance..
<bjhaid> well I actually did override system openssl, installed ruby (code worked), reversed by to system openssl, and the code that requires openssl breaks
<moshef> bnagy: tr('^A-Za-z0-9.', ' ') ignore \n too?
<shevy> roadt, the subclass is like a copy of the parent class
samphippen has joined #ruby
<bnagy> moshef: don't highlight people if nobody answers your question
xsdg has quit [Ping timeout: 245 seconds]
<moshef> bnagy: k sry
daniel_- has quit [Ping timeout: 255 seconds]
daniel_- has joined #ruby
<moshef> so..anyone?
<bjhaid> moshef is that bash or ruby??
trooney has quit [Quit: Lost terminal]
<moshef> bash
<roadt> shevy, yeah, if be that, it can be tought like that. i mean any background of decision? or any pros or cons analysis..
My_Hearing is now known as Mon_Ouie
<bjhaid> moshef ask the question in #bash and not here
<bnagy> roadt: lots of people use private methods for class internals that aren't part of the API
lggr has quit [Ping timeout: 260 seconds]
<bnagy> if they didn't inherit it would all break
xyzodiac has joined #ruby
<bjhaid> shevy: any help here
<bjhaid> ?
<bnagy> if you're that worries use composition not inheritance
<bnagy> via DelegateClass etc
peneconleche has joined #ruby
<A124> bnagy: As I'm aware from the LCS principle, it should do the trick. But I'm not certain how I get the desired output.
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<bnagy> bnagy: with which approach?
<roadt> bnagy, ah.. will look into it.
arkiver has quit [Quit: Leaving]
lggr has joined #ruby
slainer68 has joined #ruby
<moshef> tr('^A-Za-z0-9.', ' '). would like to ignore \n as well. help?
<bnagy> moshef: you're not behaving well
<shevy> bjhaid hmm
<bnagy> people are unlikely to help you
<Mon_Ouie> Just add it to the initial string, \n (and switch to double quotes; I recommend using double quotes by default.)
vlad_starkov has joined #ruby
<moshef> bnagy: what am I doing wrong?
<shevy> bjhaid try to go to ext/ subdirectory to the openssl part there and run the extconf.rb file or what was the name
<bnagy> asking the same question every two minutes
<shevy> hehe
<moshef> bnagy: more like 5, I don't think anyone noticed/remember that I asked it.
<bnagy> shevy / bjhaid does the configure script have a with-openssl-dir option?
<moshef> besides you of course that don't want to help me :)
leehambley has joined #ruby
<roadt> bnagy, creating a class that only reserve public instance methods thru delegation, can give a indirect way to clean private method of previous superclass. it's good practice. i'm still curious about language design background though.
<shevy> it seems as if ruby configure script has no ssl-related option :(
<bnagy> shevy: hrmmmm ok I was sure it did, but I am too lazy to google
pskosinski has quit [Read error: Connection reset by peer]
<shevy> bjhaid you need to somehow let ruby find the ssl libraries first
<roadt> sorry for poor english in adavance.;)
<bnagy> shevy: ahhh it's an rvm option maybe :<
pskosinski has joined #ruby
<bnagy> wait... no
<bnagy> that
lggr has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
yoklov has joined #ruby
GoGoGarrett has joined #ruby
<bjhaid> I have included the --with-openssl-dir option
<bjhaid> yet that doesnt help
<bjhaid> returns a warning that option is not available
zigomir has quit [Read error: Operation timed out]
<bnagy> which tarball?
lggr has joined #ruby
<bjhaid> this is ruby 1.9.3-p194
jeffreybaird has joined #ruby
zigomir has joined #ruby
chimay has quit [Ping timeout: 245 seconds]
<bjhaid> shevy, I have gone to the ext directory to run extconf.rb, all this return with success, but when I open irb and fire require 'openssl', it fails
jitesh_shetty has joined #ruby
Coolhand has quit [Remote host closed the connection]
bencaron has joined #ruby
<burgestrand> bjhaid: you must make and install as well
<bjhaid> moshef, I have not seen the method tr in ruby, except it has just been added or I never came across it, gsub is the ruby alternative, tr is bash
<burgestrand> or, well, at least make
<bjhaid> burgestrand, I did make and make install, same
<bjhaid> I would prefer if I can force ruby to understand where to look for openssl
<bjhaid> that would fix all of my headaches
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Left_Turn has joined #ruby
* burgestrand shrug
stopbit has joined #ruby
<bjhaid> irb(main):001:0> require 'openssl' LoadError: /usr/local/lib/ruby/site_ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: d2i_ECPKParameters - /usr/local/lib/ruby/site_ruby/1.9.1/x86_64-linux/openssl.so
lggr has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
vlad_starkov has joined #ruby
AndChat- has joined #ruby
polaco has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
lggr has joined #ruby
asteve_ has joined #ruby
<moshef> bjhaid: ok, tnx
AndChat| has quit [Ping timeout: 240 seconds]
Criztian has quit [Remote host closed the connection]
obryan has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
asteve_ has quit [Client Quit]
stopbit has quit [Quit: Leaving]
fredjean has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
JustinCampbell has joined #ruby
philcrissman has joined #ruby
justinmcp has quit [Remote host closed the connection]
adambeynon has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
emergion has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
lggr has joined #ruby
Spooner has joined #ruby
moshef has quit [Quit: moshef]
Goles has quit [Ping timeout: 252 seconds]
shiki has quit [Remote host closed the connection]
sahli_ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Targen has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
dpk has joined #ruby
Takehiro has quit [Remote host closed the connection]
<A124> bnagy: You refered to self xD. But I'm not able to find how do I get the set out as LCS not as characters
JustinCampbell has quit [Remote host closed the connection]
enroxorz-work has joined #ruby
leehambley has quit [Quit: leehambley]
<enroxorz-work> hey guys. how do i update the patch level for windows ruby installer?
<enroxorz-work> not the installer, sorry
bluOxigen has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
the_jeebster has joined #ruby
indian has quit [Remote host closed the connection]
m3pow has quit [Remote host closed the connection]
nari_ has joined #ruby
Takehiro has joined #ruby
m3pow has joined #ruby
<shevy> bjhaid no it can actually be that it was not a success
<shevy> bjhaid was a log file created?
<enroxorz-work> anyone know how to update patchlevel on windows?
<shevy> bjhaid and what files were created anew
gatherum has joined #ruby
xclite has joined #ruby
<shevy> on windows I only use the ruby installer
<enroxorz-work> same here, shevy. do they not have a built in way of updating patch level?
v0n has joined #ruby
<bjhaid> well I am following the instructions bnagy gave me
jonathanwallace has quit [Remote host closed the connection]
<bjhaid> once I am done and I have issues I would get back
gatherum has quit [Quit: http://mirc.me]
lggr has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
xsdg has joined #ruby
<shevy> enroxorz-work no real idea, I use linux 99,9% of my time. I am usually fine staying on a somewhat recent windows-ruby version
TomJ has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
otters has quit [Ping timeout: 244 seconds]
<enroxorz-work> so do i. this is for work. and tehy wont listen to me when i tell them windows sucks
<shevy> enroxorz-work but if it is something compiled, then it would require recompilation right? so I am not sure how you wanna "patch" it
<Spooner> enroxorz-work : No, you have to uninstall and reinstall. If you are using pik, however, you can manage/download multiple versions (it is a poor man's rvm on Windows).
philips_ has quit [Excess Flood]
<enroxorz-work> shevy: yeah, its a bit confusing. Spooner: that makes me a sad panda.
sailias has joined #ruby
lggr has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 245 seconds]
<Spooner> enroxorz-work : It is no different on Linux. You can't upgrade the version without recompiling. At least we have pre-built binaries, unlike them.
<JonnieCa1he> hey
<Xeago> enroxorz-work: you can try cygwin
<JonnieCa1he> whats the gem I should be using to get the debugger commands in pry?
<JonnieCa1he> pry-debug?
philips_ has joined #ruby
<JonnieCa1he> there seem to be several
aquaranto has joined #ruby
<Spooner> JonnieCa1he : There is a #pry channel - ask the experts. And yes, there seem to be a lot of extensions.
<enroxorz-work> im just going to uninstall and re-install. that sucks, but i will live.
<bnagy> as opposed to the magic unicorn method on linux?
kpshek has joined #ruby
<JonnieCa1he> apparently its pry-debugger
xyzodiac has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
_md has joined #ruby
busybox42 has quit [Quit: Leaving.]
rabidpraxis has joined #ruby
Juul has joined #ruby
busybox42 has joined #ruby
<Spooner> enroxorz-work : Honestly, use pik (gem install pik). It makes life a lot easier and doesn't get mentioned a lot because most Rubyists aren't aware that there even is a Windows build of Ruby ;)
KevinSjoberg has joined #ruby
<Spooner> e.g. I think you can install the newer version and then sync all your gems across before you uninstall the old version.
lggr has joined #ruby
JustinCampbell has joined #ruby
yoklov has quit [Quit: computer sleeping]
<bjhaid> shevy, I still have issues, should I gist mkmf.log?
baroquebobcat has joined #ruby
Pochacco has joined #ruby
<A124> Anyone familiar with Diff::LCS?
cascalheira has joined #ruby
<A124> I could not get the output as a set of strings.
<bnagy> A124: you gotta read the docs, I can't remember
<enroxorz-work> Spooner: will do. i want to have an instance of jruby as well so this should help.
<bnagy> he puts it in chunks in some special objects
<A124> bnagy: Yes. That's where I could not figure out how.
jgwong has joined #ruby
<Spooner> enroxorz-work : Yeah, you do need it then.
<enroxorz-work> yup :)
<enroxorz-work> thx
dr_bob has joined #ruby
chrismcg is now known as zz_chrismcg
<bnagy> A124: can't help, sry, once I got it working I found it was too slow anyway, so I forgot how
<Spooner> Unlike rvm, however, yuou need to have a single installation of Ruby already installed (using a regular installer) before you can install pik and then download all the versions you want.
<Spooner> Which I found a little silly. You can add existing versions to pik control though. Anyway, I'll shut up ;)
lggr has quit [Ping timeout: 260 seconds]
<A124> bnagy: Ok. Thank you. The thing is I would like it to have it as preprocessor to my own diff / extraction method. So speed is not much of an issue. What did you used instead?
vlad_starkov has quit [Remote host closed the connection]
ffranz has joined #ruby
lolmaus has quit []
<shevy> bjhaid never ask, always do, then optionally provide the link to it ;)
lggr has joined #ruby
dr_bob has left #ruby [#ruby]
internet_user has joined #ruby
<bjhaid> :) the gist is at https://gist.github.com/3812030
chimay has joined #ruby
hunglin has joined #ruby
hunglin has left #ruby [#ruby]
froio has joined #ruby
<matti> shevy: ;-)
otters has joined #ruby
ananthakumaran has joined #ruby
awarner has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
skaczor has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
bjhaid has quit [Ping timeout: 245 seconds]
joshman_ has joined #ruby
baroquebobcat has joined #ruby
<bnagy> A124: I shelled out to a hacked python version of diff-match-patch
<bnagy> cause the stock one doesn't handle binary strings
baroquebobcat has quit [Client Quit]
<A124> bnagy: Shelling out is an option too. I would like to just have something like [ "Not changed", "changed", "another not changed string"].
tk__ has joined #ruby
<bnagy> how do you deliniate strings?
Appineer has joined #ruby
lggr has joined #ruby
<bnagy> cause you can just use sdiff if it's by lines
Appineer has left #ruby [#ruby]
deryl has quit [Quit: Leaving.]
josh^ has quit [Remote host closed the connection]
skryking has joined #ruby
x82_nicole has joined #ruby
vlad_starkov has joined #ruby
codeFiend has quit [Quit: codeFiend]
daniel_- has quit [Ping timeout: 246 seconds]
jrajav has quit []
deryl has joined #ruby
Criztian has joined #ruby
<A124> bnagy: deliniate? Not. I want to have the differences on the lines
lggr has quit [Ping timeout: 246 seconds]
jimeh5 has quit [Read error: Operation timed out]
<bnagy> so if it's line by line then unix diff / sdiff work well for that
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jimeh5 has joined #ruby
<bnagy> just need to do a bit of parsing
adambeynon has quit [Quit: Computer has gone to sleep.]
JohnBat26 has joined #ruby
bjhaid has joined #ruby
lggr has joined #ruby
maesbn has quit [Read error: Connection reset by peer]
<shevy> bjhaid I think there is some error
<shevy> checking for socket() in -lsocket... -------------------- no
<shevy> some libsocket.so file or something is missing
<bjhaid> shevy so how do I fix this
<bjhaid> if I override system ruby
maesbn has joined #ruby
<bjhaid> sorry system openssl
<shevy> hmm
<bjhaid> it works
<shevy> it works?
<lectrick> it work!
<lectrick> works even!
Pochacco has quit [Quit: Pochacco]
ltsstar has joined #ruby
fantazo has quit [Remote host closed the connection]
leehambley has joined #ruby
Kruppe has joined #ruby
peneconleche has quit [Quit: Leaving...]
duracrisis_ has quit [Changing host]
duracrisis_ has joined #ruby
duracrisis_ is now known as starship
deryl has quit [Quit: Leaving.]
Russell^^ has quit [Quit: Russell^^]
ttt has quit [Remote host closed the connection]
froio has quit [Quit: Page closed]
lggr has quit [Ping timeout: 240 seconds]
<bjhaid> shevy, I mean if i override system openssl
<bjhaid> it works
<bjhaid> but openssh breaks
peneconleche has joined #ruby
lggr has joined #ruby
jonathanwallace has joined #ruby
flashuni has joined #ruby
billiam has joined #ruby
verto|off is now known as verto
dnstbr has joined #ruby
jeff_sebring has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
Criztian has quit [Remote host closed the connection]
dmiller has joined #ruby
samphippen has joined #ruby
<JonnieCa1he> exit
<JonnieCa1he> oops
JonnieCa1he has quit [Quit: leaving]
lggr has joined #ruby
Criztian has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
Takehiro has quit [Remote host closed the connection]
cakehero has joined #ruby
blazes816 has joined #ruby
cakehero has quit [Client Quit]
Fretta has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
Jay_Levitt has quit [Quit: Jay_Levitt]
emanu has quit [Quit: emanu]
AndChat- has quit [Ping timeout: 246 seconds]
fredjean has joined #ruby
Eplemosen has joined #ruby
kpshek has quit []
Banistergalaxy has quit [Ping timeout: 256 seconds]
emanu has joined #ruby
mikepack has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
kpshek has joined #ruby
bartj3 has quit []
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
TomJ has quit [Quit: TomJ]
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
codeFiend has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
aldodelgado has joined #ruby
lggr has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
wallerdev has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
sspiff has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
lurraca has quit [Ping timeout: 240 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
<bjhaid> shevy any ideas
maesbn has quit [Remote host closed the connection]
ttt has joined #ruby
maesbn has joined #ruby
<shevy> bjhaid nope. I'd use only system openssl
<shevy> I never tried to use two different openssl at the same time before
<Xeago> I blew my mac once doing that, not fun. I feel for you!
haxrbyte_ has quit [Ping timeout: 245 seconds]
<bjhaid> okay, but here overriding system openssl breaks ssh
<bjhaid> I feel sick right now
carlyle has joined #ruby
polaco has quit [Remote host closed the connection]
catphish has joined #ruby
<catphish> what is the best way to resolve this issue?
<catphish> "\250".force_encoding('BINARY').encode('ASCII', :invalid => :replace)
<catphish> Encoding::UndefinedConversionError: "\xA8" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII
lggr has joined #ruby
<matti> Hi Xeago
aflynn has joined #ruby
<Xeago> hello!
maesbn has quit [Ping timeout: 252 seconds]
bwlang has joined #ruby
ayawaska has joined #ruby
ZubKonst has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 252 seconds]
davidcelis has quit [Quit: K-Lined.]
dmiller has quit [Ping timeout: 260 seconds]
flashuni has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rippa has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
Takehiro has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
ZubKonst_ has quit [Ping timeout: 256 seconds]
TomJ has quit [Client Quit]
Hanmac has quit [Remote host closed the connection]
lggr has joined #ruby
monkegjinni has quit [Remote host closed the connection]
kuzushi_ has joined #ruby
TomJ has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
dmiller has joined #ruby
baroquebobcat has joined #ruby
TomJ has quit [Client Quit]
adaoraul has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Quit: Leaving.]
catphish has quit [Quit: Leaving]
margle has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby
sv has joined #ruby
quazimodo has joined #ruby
<quazimodo> any sinatra users here?
sv is now known as Guest74235
dhruvasagar has quit [Ping timeout: 248 seconds]
tagrudev has quit [Remote host closed the connection]
<adaoraul> i am
aganov has quit [Quit: aganov]
lggr has quit [Ping timeout: 256 seconds]
patrickximenes has joined #ruby
dpk has quit []
yakitori has joined #ruby
leehambley has quit [Quit: leehambley]
Neomex has joined #ruby
_mak has quit [Remote host closed the connection]
Guest70701 has quit [Ping timeout: 248 seconds]
samphippen has joined #ruby
xyzodiac has joined #ruby
krawchyk has joined #ruby
tk__ has quit [Quit: ばいばい]
zommi has left #ruby [#ruby]
krawchyk has quit [Remote host closed the connection]
lggr has joined #ruby
m3pow has quit [Ping timeout: 244 seconds]
Eldariof-ru has quit [Ping timeout: 245 seconds]
F1skr has joined #ruby
philcrissman has quit [Remote host closed the connection]
radic has quit [Remote host closed the connection]
d1zzYLuLz has joined #ruby
krawchyk has joined #ruby
<d1zzYLuLz> what is the difference between ruby enterprise and production?
<d1zzYLuLz> i cant get eventmachine 0.10.12 to install on debian so i can use snorby but when i use arch linux, it works but installs ruby-enterprise
bwlang has left #ruby [#ruby]
nari_ has quit [Ping timeout: 260 seconds]
radic has joined #ruby
<matti> d1zzYLuLz: Ruby EE is a patched version of normal Ruby.
<matti> d1zzYLuLz: It includes some of the patches from people behind Passenger.
<matti> d1zzYLuLz: And integrates MBARI patchset which makes it a little bit more faster.
JohnBat26 has quit [Ping timeout: 248 seconds]
jgrevich has joined #ruby
<matti> d1zzYLuLz: Aside of that, there is not much difference.
Morkel has quit [Quit: Morkel]
bradleyprice has joined #ruby
<d1zzYLuLz> would it make sense that eventmachine would install w/ ruby enterprise adn not ruby 1.9.2
lggr has quit [Ping timeout: 260 seconds]
<matti> d1zzYLuLz: No.
sahli_ has quit [Remote host closed the connection]
<matti> d1zzYLuLz: But, said that. EvetMachine 0.x is reallly old.
<matti> d1zzYLuLz: And I would vote against using it.
samphippen has quit [Quit: Computer has gone to sleep.]
<matti> d1zzYLuLz: The recommended version is to go with pre.
<matti> d1zzYLuLz: gem install --pre ...
peneconleche is now known as peneconleche|awa
<d1zzYLuLz> i couldn't get snorby to work w/ 1.0.0
<matti> d1zzYLuLz: 0.x might be broken just because its old and not supported, to be honest.
<d1zzYLuLz> i'll try it w/ --pre
<matti> d1zzYLuLz: Oh, that's not good. It is a drop-in replacement (should be).
havenn has joined #ruby
larissa has quit [Quit: Leaving]
punkrawkR has joined #ruby
Takehiro has joined #ruby
lkba has joined #ruby
lggr has joined #ruby
<matti> d1zzYLuLz: I'd poke Snorby guys to let them know that something breaks.
<matti> d1zzYLuLz: For most of the projects 0.x vs 1.x-pre should make no difference.
nateberkopec has joined #ruby
cakehero has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
<A124> bnagy: I'm not sure if you got me right. I need to identify changed subsets of a line. The diff has that capability, but I have had not found how to get it out. It cannot be for commandline I think.
<d1zzYLuLz> alright matti, i'll check it out
<d1zzYLuLz> thanks
pskosinski has joined #ruby
winterdj has joined #ruby
<winterdj> hi all. Is there a way to surpress command output when using `sh` with rake?
xyzodiac has quit [Quit: Computer has gone to sleep.]
<winterdj> have tried adding ` 2>&1` onto the end of the command I'm trying to run - but it seems to be escaped… so wondering if I have to pass options to the sh method
bluenemo has quit [Remote host closed the connection]
emanu has quit [Quit: emanu]
baphled has quit [Ping timeout: 248 seconds]
samphippen has joined #ruby
Synthead has joined #ruby
hoelzro is now known as hoelzro|away
lggr has quit [Ping timeout: 260 seconds]
margle has joined #ruby
<matti> winterdj: Ruby's system should do.
<matti> winterdj: system '/bin/echo > /dev/null 2>&1'
<matti> Or ls, LOL ;
lggr has joined #ruby
leehambley has joined #ruby
awestroke has joined #ruby
xyzodiac has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
Morkel has quit [Client Quit]
Morkel has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
Morkel has quit [Client Quit]
drmegahertz has quit [Ping timeout: 245 seconds]
drmegahertz has joined #ruby
colinbm has quit [Quit: colinbm]
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
ewag has quit [Ping timeout: 252 seconds]
zigomir has quit [Quit: Leaving]
manizzle has joined #ruby
sailias has quit [Quit: Leaving.]
yoklov has joined #ruby
lggr has joined #ruby
xyzodiac has joined #ruby
tommyvyo_ has joined #ruby
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
samphippen has quit [Quit: Computer has gone to sleep.]
ncr100 has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
Dreamer3 has joined #ruby
Hanmac has joined #ruby
codeFiend has quit [Quit: codeFiend]
<winterdj> matti: cheers!
daniel_- has joined #ruby
gmci has joined #ruby
winterdj has left #ruby ["Goodbye."]
<Xeago> pff, wget is fast with mirroring
GoGoGarrett has quit [Remote host closed the connection]
<Xeago> and I always used httrack, it took ages
<Xeago> tho, 1 thing I miss, copying thirdparty sites that were hit
senny has quit [Remote host closed the connection]
aantix has joined #ruby
dmiller has quit [Remote host closed the connection]
aantix has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 240 seconds]
aantix has joined #ruby
codeFiend has joined #ruby
voodoofish430 has joined #ruby
pskosinski has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
dmiller has joined #ruby
Drewch has joined #ruby
Drewch has quit [Excess Flood]
xyzodiac has quit [Quit: Computer has gone to sleep.]
Drewch has joined #ruby
lggr has joined #ruby
notVert has quit [Read error: Connection reset by peer]
daniel_hinojosa has joined #ruby
Iszak has quit [Quit: User has gone to sleep.]
ryanlecompte has joined #ruby
wallerdev has quit [Quit: wallerdev]
ttt has joined #ruby
adaoraul has quit [Quit: Textual IRC Client: www.textualapp.com]
uris has quit [Ping timeout: 260 seconds]
futilegames has quit [Quit: futilegames]
Takehiro has quit [Remote host closed the connection]
xyzodiac has joined #ruby
mohits has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
ltsstar has quit [Quit: ltsstar]
friskd has joined #ruby
<matti> Xeago: LOL? ;]
<Xeago> I have to deliver a offline copy of all my documentation
<Xeago> I host my documentation in several formats
<Xeago> stylish .html
<Xeago> manpage .html
<Xeago> .md
<Xeago> .txt
<Xeago> .asc
<Xeago> .man
<Xeago> .pdf
<Xeago> .ps
<Xeago> and .pdf as image rendering
heftig has quit [Quit: leaving]
dnstbr has quit [Quit: Computer has gone to sleep.]
<Xeago> source to all formats is markdown with meta data from file resource forks
lggr has joined #ruby
adeponte has joined #ruby
wallerdev has joined #ruby
Virunga has joined #ruby
maletor has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
awestroke has quit [Remote host closed the connection]
Ankhers has joined #ruby
macmartine has joined #ruby
Tombar has joined #ruby
apmacwrk has joined #ruby
carloslopes has quit [Quit: Leaving.]
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 245 seconds]
philcrissman has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
c0rn_ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
cinch_ has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
moted has joined #ruby
Tombar has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
matrixise has quit [Ping timeout: 246 seconds]
davidcelis has joined #ruby
rakm has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adeponte has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_away
lggr has quit [Ping timeout: 248 seconds]
fermion has quit [Quit: P]
cinch_ has quit [Remote host closed the connection]
luckyruby has joined #ruby
codeFiend has quit [Quit: codeFiend]
slainer68 has quit [Remote host closed the connection]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
Goles has joined #ruby
Takehiro has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rakm has joined #ruby
wedtm|away is now known as wedtm
uris has joined #ruby
dakine has quit [Quit: Leaving]
williamcotton has joined #ruby
Neomex has quit [Ping timeout: 244 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
Eduardo_ has joined #ruby
_md has quit [Quit: Leaving...]
philcrissman has quit [Remote host closed the connection]
sent-hil has joined #ruby
tommyvyo has joined #ruby
Goles has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
monkegjinni has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Goles has joined #ruby
frogprince_mac has joined #ruby
hadees has quit [Quit: hadees]
GoGoGarrett has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
jenrzzz has joined #ruby
stkowski has joined #ruby
unrar has joined #ruby
unrar has quit [Changing host]
unrar has joined #ruby
philcrissman has joined #ruby
Kruppe has quit [Read error: Operation timed out]
xyzodiac has joined #ruby
samphippen has joined #ruby
bricker has joined #ruby
lggr has joined #ruby
eignerchris has joined #ruby
bricker has quit [Client Quit]
bricker has joined #ruby
jastix has quit [Quit: Leaving]
Eduardo_ is now known as Parah
dpk has joined #ruby
wedtm has quit [Ping timeout: 260 seconds]
codeFiend has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
NiteRain has joined #ruby
Parah is now known as ebragaparah
JonnieCa1he has joined #ruby
slicslak has joined #ruby
JonnieCa1he has quit [Client Quit]
awc737 has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
evilsushi has quit [Ping timeout: 246 seconds]
adambeynon has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
evilsushi has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
samphippen has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
alvaro_o has joined #ruby
nykur has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
unrar has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
shevy has quit [Ping timeout: 246 seconds]
yxhuvud has quit []
yxhuvud has joined #ruby
DrShoggoth has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
Left_Turn has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
lggr has joined #ruby
mrsolo has joined #ruby
awestroke has joined #ruby
xyzodiac has joined #ruby
cbuxton has joined #ruby
tvw has quit [Remote host closed the connection]
Tombar has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Read error: No route to host]
Eplemosen has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
philcrissman has quit [Remote host closed the connection]
philcrissman has joined #ruby
sneakyness_wk has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
lggr has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 252 seconds]
philcrissman has quit [Remote host closed the connection]
shevy has joined #ruby
Synthead has quit [Quit: p33 ba115]
<Guest71256> how can i add a directory to my path?
<Guest71256> for permamently
havenn has quit [Remote host closed the connection]
chimay has quit [Quit: WeeChat 0.4.0-dev]
indel has quit [Remote host closed the connection]
sitong has joined #ruby
sitong has left #ruby [#ruby]
yoklov has quit [Quit: bye!]
pskosinski has quit [Read error: Connection reset by peer]
bwlang has joined #ruby
bwlang has quit [Excess Flood]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xyzodiac has quit [Quit: Computer has gone to sleep.]
ttt has joined #ruby
bwlang has joined #ruby
bwlang has quit [Client Quit]
bwlang has joined #ruby
futilegames has joined #ruby
<shevy> Guest71256 wat
lggr has quit [Ping timeout: 246 seconds]
<shevy> Guest71256 ruby
Guest71256 is now known as Jackneill
Jackneill has quit [Changing host]
Jackneill has joined #ruby
<Jackneill> shevy: http://rubygem.me/2012/01/21/installing-rails-on-windows/ - "(don’t forget to add the make bin directory to your path)"
pskosinski has joined #ruby
c0rn_ has quit []
Tombar has quit [Read error: Connection reset by peer]
Tombar has joined #ruby
rippa has joined #ruby
<Jackneill> should i just copy make.exe to the ruby bin dir?
Kruppe has joined #ruby
chussenot has quit [Quit: chussenot]
Left_Turn has joined #ruby
jeff_sebring has quit [Quit: Leaving]
margle has joined #ruby
lggr has joined #ruby
robustus has joined #ruby
jsmonkey123 has joined #ruby
<jsmonkey123> I have time in seconds and I want to display 120 seconds as 2m and if I have 121 I want to display it as 2m1s, I have this code Time.at(mySeconds).utc.strftime("%Mm%Ss") which works BUT it display it like 02m01s
<jsmonkey123> I dont want it to display 08s when it's 8 seconds
<jsmonkey123> am I using the wrong lib for this?
nightfalcon has quit [Quit: Lost terminal]
sent-hil has quit [Remote host closed the connection]
nwest has joined #ruby
margle has quit [Client Quit]
leehambley has quit [Quit: leehambley]
ttt has quit [Ping timeout: 240 seconds]
bradleyprice is now known as bradleyprice_
<shevy> Jackneill dont know, I dont use windows myself. I think you can dump binaries straight into /Program Files and they will then work
<Jackneill> well anyway thanks. :)
bradleyprice_ is now known as bradleyprice
<Spaceghostc2c> shevy, Jackneill: Windows has a PATH just like linux does.
<Spaceghostc2c> Go configure that.
tommyvyo_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<Jackneill> well i'll google it how to
<Jackneill> thx
g-ram has joined #ruby
evilsushi has quit [Ping timeout: 260 seconds]
evilsushi has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
kuzushi_ has quit [Remote host closed the connection]
sepp2k has joined #ruby
Russell^^ has joined #ruby
Eiam has joined #ruby
pskosinski has joined #ruby
roadt has quit [Ping timeout: 255 seconds]
mroh has joined #ruby
<mroh> what's up
<Jackneill> .
<mroh> .
kuzushi has joined #ruby
lggr has joined #ruby
jgwong has quit [Ping timeout: 248 seconds]
paolooo has quit [Quit: Page closed]
<mroh> dcc send startkeylogger 0 0 0
mroh has quit [Killed (idoru (Spam is off topic on freenode.))]
jgwong has joined #ruby
zii has quit [Ping timeout: 246 seconds]
<voodoofish430> that was interesting...
<Jackneill> anyone can help me with this: http://nopaste.me/paste/19499099045069d69f7b7c2 gem install json fails badly
<Jackneill> i already tried everything...
kpshek has quit []
Neomex has joined #ruby
jsmonkey123 has left #ruby [#ruby]
lggr has quit [Ping timeout: 240 seconds]
Kruppe has quit [Remote host closed the connection]
Kruppe has joined #ruby
Goles has joined #ruby
xorgnak has quit [Remote host closed the connection]
bjhaid has quit [Quit: Page closed]
Pip has joined #ruby
<Pip> How is Ruby today?
lggr has joined #ruby
margle has joined #ruby
<Jackneill> sucky
<Jackneill> :(
heftig has joined #ruby
ltsstar has joined #ruby
<Pip> :-]
<Pip> Jackneill, How come?
macmartine has quit [Quit: Computer has gone to sleep.]
ltsstar has quit [Client Quit]
<Jackneill> well i have trouble with a single json gem install
<Pip> lol
<Jackneill> simply cant figure it out whats the problem
50UABP4SR has quit [Ping timeout: 245 seconds]
<Jackneill> at the moment i have a e=2 error :D
<Pip> Can't help you with that
jblack has quit [Read error: Operation timed out]
<Pip> I'm a Python user actually
<Pip> But I keep an eye on Ruby from time to time
EddieS has joined #ruby
<the_jeebster> I couldn't tell by the name :)
<Jackneill> yeah
EddieS is now known as Guest98262
<Jackneill> make *** [generator.o] Error 2
<Jackneill> The system cannot find the file specified, but i pasted here the whole error:
lggr has quit [Ping timeout: 256 seconds]
jgwong has quit [Ping timeout: 240 seconds]
sent-hil has joined #ruby
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
cakehero has quit [Quit: Computer has gone to sleep.]
jgwong has joined #ruby
sent-hil has quit [Remote host closed the connection]
cakehero has joined #ruby
lggr has joined #ruby
R3dy has joined #ruby
<R3dy> Is there any thing in ruby for supporting/working with ESE database files?
Goles has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Quit: Leaving.]
<Spooner> Jackneill : 1.9.3 has json built in. Just use that.
<R3dy> Something similar to libesedb for example
jrist is now known as jrist-afk
<Jackneill> spooner: when i try rails new project, i got an error when bundler runs, that i need to do gem install json first before the bundler runs.
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
Guest98262 has quit [Ping timeout: 255 seconds]
<Spooner> Oh right. It wants you to install the gem, which would then make it work with 1.8.7 (1.9 added json to the standard lib). Other alternative is json-pure (which is slower, but since it isn't binary it can't fail :P), but bundler. Hmm.
EddieS_ has joined #ruby
<Jackneill> :(
<Spooner> If bundler is needing the json gem, however, it is needing a specific version. Just installing json won't use the version you need.
CodeVision has quit [Quit: WeeChat 0.3.8]
<Jackneill> spooner well im going to post it a rubyinstaller google group, maybe someone will able to help me :(
<Spooner> What version do you need to install?
<Jackneill> well it says it needs 1.7.5
indian has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
bigdc1 has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<Spooner> 1.7.5 just compiled fine "on my machine" (win7 with 1.9.3p194)
<Jackneill> idk..
<Jackneill> so the problem is with my machine
<Jackneill> anyway the 1.6.7 json version also fails
<Spooner> 1.7.5 is the current one, so you are ok just doing gem install json. Probably just your installation - you installed 1.9.3p194 using RubyInstaller then the devkit yeah?
<Spooner> I'd recommend a clean reinstall of them both - sorry! Devkit sometimes gets in a tangle. Might be fixable, but I've not got anywhere.
hadees has joined #ruby
<Jackneill> yeah, thanks
leehambley has joined #ruby
<Spooner> Right, so ruby.h is missing. Ruby.h should be provided by the devkit.
lggr has joined #ruby
xyzodiac has joined #ruby
<Spooner> Although it is a pain, reinstalling gems is usually pretty quick since you just bundle each project as needed.
Solnse has joined #ruby
imami|afk is now known as banseljaj
<Jackneill> should i do it? and if so how?
<Spooner> Jackneill : You could try "gem install perlin --platform=ruby" (a very simple gem of mine - shouldn't fail ;P)
bigdc1 has left #ruby [#ruby]
<Spooner> But all that would tell you is if devkit is fubar for json or for everything.
<Jackneill> failed same error
<Jackneill> couldn't file ruby-h
sent-hil has joined #ruby
<Jackneill> so for everything :)
<Spooner> Yeah, so uninstall Ruby from "add and remove programs", install ruby again and apply the devkit.
xyzodiac has quit [Client Quit]
<Spooner> I find that usually un-fubars it. Sorry!
<Jackneill> ok, btw im going to have dinner now, after i'll do it, thanks spooner :)
<Spooner> Well, sorry that I can't tell you anything more helpful. Not my fault the devkit is messed up.
<Spooner> Wish it was included in the release, honestly.
jbw has quit [Ping timeout: 246 seconds]
icole has joined #ruby
<Jackneill> yeah :)
<Spooner> I would recommend pik, by the way.
notwen has quit [Read error: Connection reset by peer]
<Spooner> Does make reinstalling a bit less painful.
notwen has joined #ruby
<Spooner> It uses the rubyinstallers too, so you get the same end effect.
deadghost has quit [Ping timeout: 255 seconds]
ananthakumaran has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
deadghost has joined #ruby
ananthakumaran has quit [Client Quit]
kpshek has joined #ruby
daniel_hinojosa has joined #ruby
<reactormonk> Spooner: go with an ubuntu VM ;-)
lggr has joined #ruby
leehambley has quit [Quit: leehambley]
<Spooner> reactormonk Ubuntu is too bloated for a VM. I use Lubuntu thanks ;)
dr_bob has joined #ruby
m3pow has joined #ruby
shadoi has joined #ruby
<reactormonk> Spooner: and you use windows? blub.
<Spooner> reactormonk : But since I use OpenGL and otehr stuff that VMs don't manage well, it isn't worth bothering. Too bloated to run effectively as a VM, yes. I didn't say Windows wasn't bloated and slow.
<reactormonk> Spooner: wasn't there some experimental support for 3d?
apok has joined #ruby
pdtpatrick has joined #ruby
diegoviola has joined #ruby
<Spooner> I'm only doing 2D opengl, but it doesn't support e.g. shaders and it runs < 5fps using very basic OpenGL (wehre I'd get 120+ in Windows or native Linux), so isn't a useful tool at all.
<Spooner> I think it is more about drivers really.
elaptics is now known as elaptics`away
lggr has quit [Ping timeout: 240 seconds]
<wmoxam> Spooner: you doing 2d openGL in Ruby?
<Spooner> Or rather, the drivers that areprovided by a VM compared to native (yes, I tried installing real drivers, but VMs don't have real graphics).
elaptics`away is now known as elaptics
ttt has joined #ruby
<Spooner> wmoxam : Well, not OpenGL directly, but using OpenGL frameworks in Ruby (Gosu).
niklasb has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<wmoxam> Spooner: ah, cool, Gosu
<Spooner> And Ashton, which is my extension for Gosu (which includes shader support).
mark_locklear has quit [Quit: Leaving]
<wmoxam> I was using Slick + jruby, but now using LWJGL + jruby
<Spooner> How do you find that?
iamjarvo has joined #ruby
<wmoxam> Spooner: alright so far. I'm pretty much a noob at this stuff though
<Spooner> jruby would be a better fit for me really. The GC is not my friend.
<wmoxam> :/
c0rn_ has joined #ruby
deryl has joined #ruby
tgraham has quit [Quit: Leaving...]
lggr has joined #ruby
<Spooner> I tried Slick at one point, but trying to map my head around Java docs and converting it to Ruby in my brain didn't feel comfortable. Instead, I end up with a different sort of compromise.
<Spooner> I can mostly avoid the GC though. It only stutters in "sloppy" code really ;)
pfaff has quit [Ping timeout: 268 seconds]
<Spooner> Or rather, it is quite possible to program defensively to avoid it crippling you.
<wmoxam> I'd stick with Slick, but it's kinda dead, and the version of LWJGL it depends on is buggy
<Spooner> Yeah, that is never good.
<wmoxam> I've found the conversion to be ok though. Basically replace camelcase with underscores
<Spooner> Isn't LWJGL largely there so people can build stuff like Slick on top of it, rather than access it directly?
baphled has joined #ruby
<Spooner> I've not looked too far into it though.
ttt has quit [Ping timeout: 260 seconds]
<wmoxam> Spooner: well it handles input and sound, etc
ryanf has joined #ruby
<wmoxam> Spooner: the gfx lib is just OpenGL thoough
<wmoxam> there are some rough edges, like if you want a resizable window you'll need to muck around with AWT
<Spooner> You mean it is just a straight mapping to OpenGL? That is pretty horrid.
LordDoskias has joined #ruby
pfaff has joined #ruby
Trioke has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
carloslopes has quit [Quit: Leaving.]
carloslopes has joined #ruby
carloslopes has quit [Client Quit]
carlyle has quit [Remote host closed the connection]
<LordDoskias> why don't those two functions behave identically http://pastebin.com/X2eGVWsq
carloslopes has joined #ruby
<LordDoskias> fib1 correctly gives the fibonacci number but fib2 essentially does succ + succ
supergiantrobot_ has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
mr_dynamix has quit [Quit: mr_dynamix]
havenn has joined #ruby
Morkel has joined #ruby
Morkel has quit [Client Quit]
cakehero has quit [Quit: Leaving...]
pskosinski has quit [Remote host closed the connection]
burgestrand has joined #ruby
Morkel has joined #ruby
<Spooner> LordDoskias : Because the latter one sets curr before it sets success, whereas the latter uses Ruby's concurrent setting thing (a, b = b, a)
niklasb has quit [Read error: Connection reset by peer]
reset has joined #ruby
niklasb has joined #ruby
<LordDoskias> Spooner: you mean the former uses the concurrent thingy, but aren't they functionally equivalent?
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<Spooner> Yes, they aren't functionally equivalent.
<LordDoskias> so how can i fix the latter one, i tried re-arranging the position of curr/success but still the same result
<Spooner> They aren't full methods either, but I assume you trimmed them.
<LordDoskias> nope, this is the whole method
<Spooner> By using a temp var (or just use the second one).
margle has quit [Quit: Computer has gone to sleep.]
awarner has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
<wmoxam> Spooner: I dunno. I am a noob
reset has quit [Client Quit]
<Spooner> LordDoskias : Those aren't full methods. Take my word on it ;) They need a return value and another "end".
lggr has joined #ruby
Goles has joined #ruby
adambeynon has joined #ruby
elaptics is now known as elaptics`away
slainer68 has joined #ruby
<Spooner> LordDoskias : http://pastebin.com/e2T7xJ4b
glyytchy has joined #ruby
dr_bob has quit [Quit: Leaving.]
Neomex has quit [Quit: Neomex]
kirun has joined #ruby
<Spooner> LordDoskias : Oops, did that wrong. Should be: http://pastebin.com/umeE67EC
lggr has quit [Ping timeout: 260 seconds]
<LordDoskias> thanks
<LordDoskias> it is working now, but where can i read more about the multiple assignemnt
philcrissman has joined #ruby
<Spooner> Not sure. It is pretty straightforward once you know it happens, isn't it?
c0rn_ has joined #ruby
<matti> Hash.new{ |h,k| h[k] = k < 2 ? k : h[k-1] + h[k-2] }[42]
<matti> ;]
c0rn_ has quit [Client Quit]
daniel_- has joined #ruby
<LordDoskias> Spooner: well it is definitely not functionaly equivalent to assigning 2 variables in 2 consecutive lines
<Spooner> matti: Mmm ;)
<matti> Spooner: I was about to suggest inject first, but then... ;p
<Spooner> Yes, it isn't supposed to be.
<Spooner> For example, you can also do a, b = b, a to swap two values, which is another one where you'd need a temp variable to do it in other languages.
colindensem has joined #ruby
colindensem has left #ruby [#ruby]
lggr has joined #ruby
nikhgupta has joined #ruby
rubious has joined #ruby
<matti> Spooner: I wonder if you could abuse XOR swap trick in Ruby ;d
margle has joined #ruby
banseljaj is now known as imami|afk
br4ndon has joined #ruby
<Spooner> That only works for integers, doesn't it, matti? Should work though.
c0rn_ has joined #ruby
nykur has quit [Quit: bye]
c0rn_ has quit [Client Quit]
conor_ireland has joined #ruby
c0rn_ has joined #ruby
futilegames has quit [Quit: futilegames]
c0rn_ has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
nikhgupta has quit [Quit: Leaving.]
zigomir has joined #ruby
tgraham has joined #ruby
reset has joined #ruby
tgraham has quit [Client Quit]
nikhgupta has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
nat2610 has joined #ruby
tgraham has joined #ruby
<Spooner> matti the issue with the Hash solution is that it generates all the values. Which is probably good if you are using it a lot, of course, but less so if you want the millionth value only. Hash.new{|h,k| k < 2 ? k : h[k-1] + h[k-2] }[9]
arietis has joined #ruby
gfredericks has joined #ruby
leehambley has joined #ruby
<gfredericks> streaming a net/http get response back through sinatra is surprisingly difficult
burgestrand has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby
<Spooner> matti Though I suppose that version is terrible since it iterates a million times. Oh well.
<matti> Haha
pfaff has quit [Ping timeout: 268 seconds]
haxrbyte has joined #ruby
zii has joined #ruby
zii has joined #ruby
zii has quit [Changing host]
<Spooner> It seemed like a good idea at the time :D
<matti> [ Famous last words ... ;p ]
lggr has joined #ruby
samuel02 has joined #ruby
pfaff has joined #ruby
ori-l has quit [Quit: bye.]
ukd1 has joined #ruby
<ukd1> is there a ruby equivelent of PHP __autoload?
macmartine has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<matti> ukd1: autoload
<matti> ukd1: DO NOT USE
<matti> ;d
<burgestrand> autoload is deprecated.
margle has quit [Quit: Computer has gone to sleep.]
<ukd1> matti, that doesn't support dynamic names?
<burgestrand> So, DO NOT USE
<burgestrand> ukd1: you want const_missing
<ukd1> burgestrand, great thanks! :-)
justinlilly has joined #ruby
<ukd1> oh cool, it even has a sample :)
<burgestrand> :)
robustus has quit [Quit: ZNC - http://znc.in]
ltsstar has joined #ruby
margle has joined #ruby
<justinlilly> anyone have clues why foo = fn(arg) {:bar => foo} would be different than {:bar => fn(arg)} ? This may be chef-specific, but I'm passing a variable into a template. If I inline the declaration, I get the method arguments concatenated rather than the string the function returns.
h4mz1d has joined #ruby
<matti> I want select_map {}
<matti> ;/
<theRoUS> how common a pattern is it for a module to be used for namespacing *and* defining methods for classes in that namespace? e.g., 'module Foo ; attr_reader(:common_to_all_fooclasses) ; class Bar ; include Foo ; end ; end'
<burgestrand> justinlilly: fn(arg) { :bar => foo } is a syntax error
JonnieCache has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
<justinlilly> burgestrand: sorry, IRC. semicolon in between.
<burgestrand> justinlilly: then it should be the same thing. Perhaps you are overriding a variable you should not be overriding, or perhaps your code is different than what you think.
<burgestrand> theRoUS: not uncommon — besides, including that module will also give easy access to the constants within.
<burgestrand> So it can be useful.
Xeago has quit [Remote host closed the connection]
<justinlilly> burgestrand: https://gist.github.com/10cbfb5d2da38c9afdac -- these two things return different results. I suppose this is in the realm of #chef at this point.
<burgestrand> justinlilly: if you print "self" (p self) inside the block given to nagios_conf, what does it show?
<theRoUS> burgestrand: or maybe a little prettier: http://pastie.org/4892838
jrist-afk is now known as jrist
<burgestrand> justinlilly: it’s entirely possible that nagios_conf uses instance_eval to execute the block, which would change the "self" inside the block, meaning the method call to gen_service_for_node would go somewhere else than if you ran it outside the block.
rubious has quit [Quit: Leaving...]
rads has joined #ruby
CodeVision has joined #ruby
<justinlilly> burgestrand: is there a way to make it not do that?
<burgestrand> justinlilly: could be tested by this code: http://pastie.org/private/wbzvnjqyli92lnfe2fmmg
<burgestrand> justinlilly: it’s the same as your first example, but the foo= put inside the block.
haxrbyte has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 240 seconds]
<burgestrand> justinlilly: I suppose, but it’d be kind of ugly. It would involve saving the "self" outside of the block in a local variable, and then calling methods on that explicitly… or using TOPLEVEL_BINDING and evaling some code on that.
elico has joined #ruby
ttt has joined #ruby
bbttxu has joined #ruby
<burgestrand> Anyhow, I’ll go for some gaming now. I wish you luck in all your endeavours, lots of riches and whatever else you feel like at the moment.
mohits has quit [Ping timeout: 245 seconds]
havenn has quit [Remote host closed the connection]
nikhgupta has quit [Quit: Leaving.]
lurraca has joined #ruby
lggr has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
LordDoskias has quit [Quit: Lost terminal]
phantasm66 has joined #ruby
gfredericks has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
guns has joined #ruby
leehambley has quit [Quit: leehambley]
ergodicsum has joined #ruby
rouss has joined #ruby
sspiff has quit [Remote host closed the connection]
rouss is now known as Guest38311
eignerchris has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 246 seconds]
rubious has joined #ruby
vlad_starkov has joined #ruby
haxrbyte has joined #ruby
Xeago has joined #ruby
horofox has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
<horofox> How does rubygems docs sync with git repositories?
<horofox> rubyforge*
lggr has joined #ruby
eignerchris has joined #ruby
pskosinski has joined #ruby
jitesh_shetty has quit [Remote host closed the connection]
<R3dy> I am trying to search for good documentation explaning how to take a C librar and make a ruby extension out of it
<shevy> is rubyforge still alive? :(
<R3dy> does anyone here have any good suggestions?
<shevy> R3dy do you know C already
<shevy> there are very few good resources for Ruby+C
<R3dy> shevy: not as well as Ruby
<shevy> unfortunately, there is not that much after these two pages :(
<R3dy> Thanks!
<shevy> you can ask Hanmac here
* Hanmac thinks that shevy wants to ping me
<Hanmac> XD
<shevy> lol
<shevy> yeah
<shevy> but you know your disadvantage
<shevy> YOU WRITE in C++!!!
<R3dy> and to clarify, a ruby extension in C will allow me to create a ruby object
<R3dy> that can call C functions correct?
<davidcelis> hi
<shevy> yeah several ways. FFI should be one R3dy
<Hanmac> shevy i do because i can :D
<shevy> "Ruby-FFI is a ruby extension for programmatically loading dynamic libraries, binding functions within them, and calling those functions from Ruby code."
pskosinski has quit [Remote host closed the connection]
<shevy> R3dy, most people use FFI these days I think for trivial stuff at least
<R3dy> Ok in that case I will start there
<R3dy> thanks much
pskosinski has joined #ruby
Takehiro has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<Hanmac> R3dy if you still wants to write an C(++) Ext you could ping me
kpshek has quit []
lggr has joined #ruby
rippa has quit [Ping timeout: 256 seconds]
kpshek has joined #ruby
thillux has joined #ruby
Guedes is now known as Guedes_out
glyytchy has quit [Quit: Leaving...]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has quit [Ping timeout: 245 seconds]
thillux_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
mrsolo has quit [Quit: This computer has gone to sleep]
margle has quit [Quit: Computer has gone to sleep.]
h4mz1d has quit [Ping timeout: 240 seconds]
<Xeago> hello rubyists
<Xeago> my javascripting/html'ing is awfull
mrsolo has joined #ruby
rubious has quit [Quit: Leaving...]
jvkTommy is now known as tommylommykins
c0rn_ has joined #ruby
lggr has joined #ruby
thillux has quit [Ping timeout: 244 seconds]
<Xeago> given this nice script https://github.com/hoyois/html5outliner
<Xeago> I need a hover over thingy that will then show that outline
<Xeago> anyone :3 ?
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
tommylommykins is now known as jvkTommy
haxrbyte has quit [Ping timeout: 256 seconds]
rubious has joined #ruby
awestroke has quit [Remote host closed the connection]
<wting> I have a simple question, I'm trying to create a new deque with "d = Containers::Deque.new()" but it responds with error "NameError: uninitialized constant Containers"
macmartine has quit [Quit: Computer has gone to sleep.]
guns has quit [Quit: guns]
pskosinski has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
wpaulson has joined #ruby
<wting> A Google search for "ruby deque example" shows all Java examples. Do Ruby programmers not use deques?!?
pskosinski has joined #ruby
<shevy> wting what is deque?
<wting> double ended queue
<shevy> what does this even mean :P
<blazes816> java programmings call double ended queues dequeus?
<shevy> wting, the error hints that you did not require the program properly
<blazes816> programmers*
<shevy> otherwise "Containers" would be available in the namespace
<blazes816> there isn't one built in, you'd need to find a gem
rubious has quit [Read error: Connection reset by peer]
<wting> oh
<shevy> yeah, the gem could add "Containers" to the known namespace (usually via require 'name')
<wting> ohhh I see what my problem is
rubious has joined #ruby
rubious has quit [Remote host closed the connection]
<wting> and I thought it was part of standard API
<wting> and not someone else's gem
<blazes816> found this via the googs https://www.ruby-toolbox.com/projects/depq
eignerchris has quit [Ping timeout: 240 seconds]
<blazes816> ah, gotcha
deadghost has quit [Ping timeout: 244 seconds]
<blazes816> just require it
<wting> deryl: Yeah you can implement with an array, but it's highly inefficient for certain operations.
rotev has quit [Ping timeout: 245 seconds]
eignerchris has joined #ruby
cakehero has joined #ruby
<deryl> ok
<wting> e.g. popping from front requires recopying entire array
krawchyk has quit [Remote host closed the connection]
lggr has joined #ruby
leehambley has joined #ruby
<deryl> the Queue from stdlib and that double ended queues using Array are all I found
<wting> k thx
<deryl> np
<wting> I can make do with a queue
<wting> :D
elux has quit [Quit: Bye!]
<deryl> that first link should get you rolling then
pskosinski has quit [Remote host closed the connection]
nykur has joined #ruby
samuel02 has quit [Ping timeout: 260 seconds]
ltsstar has quit [Quit: ltsstar]
wpaulson has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
<Paradox> ugh
<Paradox> fucking redis to go
LouisGB has quit [Ping timeout: 240 seconds]
reset has quit [Quit: Leaving...]
deadghost has joined #ruby
<matti> Paradox: ?
<Paradox> went down
<Paradox> ಠ_ಠ
<matti> Ah.
<Xeago> anyone kung fu html5?
<Paradox> Xeago, i do
lggr has quit [Ping timeout: 248 seconds]
<matti> I was thinking about starting a service like Redis to Go.
<Paradox> if you can have better uptime than them
<Paradox> people will switch everywhere
<Paradox> they go down more than a 2 yen whore
<Xeago> given this nice script https://github.com/hoyois/html5outliner — I need a hover over thingy that will then show that outlin
<matti> Paradox: LOL
Jackneill has quit [Quit: Jackneill]
<Xeago> btw, html5 includes css and js :3
<matti> Paradox: Is it really a demand for things like that?
codeFiend has quit [Ping timeout: 246 seconds]
<Paradox> matti, demand for stable redis databases?
<Paradox> yah
<matti> Paradox: If so, then I will get going with it.
emmanuelux has joined #ruby
<Xeago> preferably no use of jquery and shizzles, pages are <3kb of markdown
ltsstar has joined #ruby
kpshek has quit []
ltsstar has quit [Client Quit]
Targen has joined #ruby
jblack has joined #ruby
<Xeago> Paradox: gittip or flattrs await <3
lggr has joined #ruby
<Paradox> Xeago, i'll work on it when i get to class heh
samuel02 has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
s0ber_ has joined #ruby
fantazo has joined #ruby
ttt has joined #ruby
elaptics`away is now known as elaptics
BrianJ has joined #ruby
s0ber has quit [Ping timeout: 260 seconds]
Takehiro has quit [Remote host closed the connection]
s0ber_ is now known as s0ber
soulisson has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Tombar has quit [Remote host closed the connection]
obryan has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
<soulisson> Hi, i'm new to ruby and i'd like to know if the end keyword is simply a mean to mark the end of a block of instructions ?
jimeh5 has quit [Ping timeout: 256 seconds]
ttt has quit [Ping timeout: 240 seconds]
margle has joined #ruby
Chryson has joined #ruby
pskosinski has joined #ruby
nykur has quit [Ping timeout: 256 seconds]
gogiel has quit [Ping timeout: 246 seconds]
gogiel has joined #ruby
lggr has joined #ruby
soulisson has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
soulisson has joined #ruby
<canton7> soulcake, 'end' is used to mark the end of a block started by 'begin', or 'do', or 'if', or 'unless', or 'def', or 'class', or some other things I'm bound to have missed
soulisson has quit [Read error: Connection reset by peer]
soulisson has joined #ruby
soulisson has quit [Read error: Connection reset by peer]
soulisson has joined #ruby
soulisson has quit [Read error: Connection reset by peer]
havenn has joined #ruby
codeFiend has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
alvaro_o_ has joined #ruby
pskosinski has quit [Remote host closed the connection]
LouisGB has joined #ruby
lggr has joined #ruby
alvaro_o has quit [Ping timeout: 260 seconds]
pskosinski has joined #ruby
reset has joined #ruby
Monie has joined #ruby
bencaron has quit [Quit: bencaron]
robertotauille has quit [Quit: Leaving...]
lurraca has quit [Quit: This computer has gone to sleep]
<TTilus> canton7: you only missed 'case' ... i think ;)
lggr has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
robertotauille has joined #ruby
<canton7> and module
vlad_starkov has joined #ruby
robertotauille has quit [Client Quit]
<TTilus> \o/
jimeh5 has joined #ruby
kenneth has joined #ruby
<kenneth> i really wish ruby had a let statement, like in lisp
<kenneth> (def something (let [[a, b] (w/e)] (method a (+ 2 b))))
lggr has joined #ruby
<kenneth> wonder if there's a clean way to hack it in
wpaulson has joined #ruby
codeFiend has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
Takehiro has joined #ruby
CarlB_the_great has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
<kenneth> i take it the only way to do that would be
<kenneth> lambda { a, b = whatever; method(a, b+2) }.call
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tommyvyo_ is now known as tommyvyo
mikepack has quit [Remote host closed the connection]
ndbroadbent has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
ndbroadbent has quit [Quit: Leaving]
geekbri has quit [Remote host closed the connection]
ndbroadbent has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
My_Hearing has joined #ruby
leehambley has quit [Quit: leehambley]
h4mz1d has joined #ruby
lggr has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby
sent-hil has quit [Remote host closed the connection]
havenn has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
<havenn> brew update
<havenn> oops, sorry >.>
Takehiro has quit [Ping timeout: 255 seconds]
aquaranto has quit [Remote host closed the connection]
<matti> havenn: ;]
elben has joined #ruby
sami has joined #ruby
elben has left #ruby [#ruby]
<sami> Hi, I'm wondering how i can choose a Random.rand with 0-1 :). Sounds weird perhaps.
jrist is now known as jrist-afk
lggr has quit [Ping timeout: 260 seconds]
<havenn> sami: rand 2 or rand 0..1
ndbroadbent has left #ruby ["Leaving"]
Jellyg00se has quit [Ping timeout: 240 seconds]
tgraham is now known as tgraham|away
manizzle has quit [Ping timeout: 256 seconds]
Guest38311 has quit [Quit: Computer has gone to sleep.]
nwest has quit [Quit: Computer has gone to sleep.]
<sami> Is there any way to get random in 1.8.x?
alvaro_o has joined #ruby
<davidcelis> rand, by default, returns a floating point number between 0 and 1
<davidcelis> with no arguments
lggr has joined #ruby
sent-hil has joined #ruby
iamjarvo has quit [Ping timeout: 255 seconds]
<davidcelis> and i dont think rand can take a range
<havenn> davidcelis: In 1.9.3+ is can take a range. =)
vlad_starkov has quit [Remote host closed the connection]
<davidcelis> yeah you're right
<davidcelis> weird. thought my jruby was running in 1.9 mode
<davidcelis> [1] pry(main)> RUBY_VERSION # => "1.9.3"
<davidcelis> [2] pry(main)> rand(0..1) # => TypeError: can't convert Range into Integer
<davidcelis> ಠ_ಠ
<davidcelis> fucking jruby
Kruppe has quit [Ping timeout: 240 seconds]
<blazes816> for sure use rbx
bwlang has left #ruby [#ruby]
R3dy has quit [Read error: Connection reset by peer]
tgraham|away is now known as tgraham
sepp2k has quit [Remote host closed the connection]
JonnieCache has joined #ruby
Xeago has quit [Remote host closed the connection]
codecop has joined #ruby
codecop has quit [Client Quit]
lggr has quit [Ping timeout: 260 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
mulinux has joined #ruby
lggr has joined #ruby
mulinux has left #ruby [#ruby]
tommyvyo has joined #ruby
Criztian has quit [Remote host closed the connection]
sami has left #ruby [#ruby]
Vinz| has joined #ruby
asteve has quit []
mwillhite has joined #ruby
ttt has joined #ruby
joofsh has quit [Ping timeout: 260 seconds]
shadoi1 has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has quit [Ping timeout: 252 seconds]
dmiller has quit [Remote host closed the connection]
ttt has quit [Ping timeout: 240 seconds]
Vinz| has quit [Quit: Leaving]
kirun has quit [Quit: Client exiting]
shadoi has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
wpaulson has joined #ruby
awarner has joined #ruby
naz has quit [Read error: Connection reset by peer]
nykur has joined #ruby
naz has joined #ruby
jrist-afk is now known as jrist
voodoofish430 has quit [Read error: Connection reset by peer]
daniel_hinojosa has quit [Ping timeout: 256 seconds]
voodoofish430 has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
sailias has joined #ruby
iamjarvo has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
noahsussman has joined #ruby
daniel_hinojosa has joined #ruby
dmiller has joined #ruby
Morkel has quit [Quit: Morkel]
samphippen has joined #ruby
samuel02 has quit [Remote host closed the connection]
lggr has joined #ruby
awestroke has joined #ruby
davidcelis has quit [Quit: K-Lined.]
Morkel has joined #ruby
thone_ has joined #ruby
codeFiend has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
uris has quit [Quit: Lost terminal]
bradleyprice has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
thone has quit [Ping timeout: 260 seconds]
uris has joined #ruby
wpaulson has joined #ruby
dju has quit [Read error: Operation timed out]
blumbri has joined #ruby
dju has joined #ruby
blumbri has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 240 seconds]
leifmadsen has joined #ruby
Chryson has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
lggr has joined #ruby
My_Hearing has quit [Ping timeout: 246 seconds]
My_Hearing has joined #ruby
<leifmadsen> evening all! I'm trying to track down an issue where something is calling a function with too many arguments from an external library. I'm thinking of just raising an exception at the function call where I know it is going to bomb out, and maybe try to show enough information that'll tell me what called the function incorrectly. Being fairly new to ruby, I'm wonder how I might do that?
timonv has quit [Ping timeout: 245 seconds]
Criztian has joined #ruby
soulisson has joined #ruby
timonv has joined #ruby
internet_user has quit [Remote host closed the connection]
Elfix_113 has quit [Ping timeout: 268 seconds]
Morkel has quit [Quit: Morkel]
JustinCampbell has quit [Remote host closed the connection]
soulisson has quit [Quit: Quitte]
linoj has quit [Quit: linoj]
stephenjudkins has joined #ruby
savant has joined #ruby
<savant> are operators in ruby objects?
soulisson has joined #ruby
Takehiro has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
GoGoGarrett has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
<havenn> leifmadsen: I'd suggest using pry with pry-rescue to automatically start a REPL session at the exception.
awestroke has quit [Remote host closed the connection]
alanp_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<leifmadsen> havenn: huh neat... I'll look into that
awestroke has joined #ruby
awestroke has quit [Remote host closed the connection]
mwillhite has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bbttxu has quit [Quit: bbttxu]
jeffreybaird has quit [Quit: jeffreybaird]
Ankhers has quit [Remote host closed the connection]
bradhe has joined #ruby
alanp has quit [Ping timeout: 245 seconds]
williamcotton has quit [Ping timeout: 255 seconds]
joshman_ has quit [Ping timeout: 248 seconds]
Takehiro has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
awarner has quit [Remote host closed the connection]
<soulisson> Hi, i'm starting ruby programming, i'd to know if the "end" keyword is simply a mean to mark the end of a block of instructions ?
codeFiend has quit [Ping timeout: 246 seconds]
Elfix has joined #ruby
<Spooner> soulisson : Yes, it is either the end of an expression (if/else/elsif/end) or a block (do..end).
<Spooner> It should be obvious from the indentation, though that it is for this purpose.
Foxandxss has joined #ruby
wpaulson has quit [Read error: Connection reset by peer]
[Neurotic] has joined #ruby
oldB has joined #ruby
wpaulson has joined #ruby
<soulisson> so it's basically the same a a closing brace in C or Java
oldB has quit [Client Quit]
<Spooner> Yes. Blocks can also be written using {...} instead of do...end, but the convention is to use {...} for single-lines and do...end for multiline expressions.
<Spooner> soulisson : I recommend this tutorial if you are a newbie http://pine.fm/LearnToProgram/?Chapter=00 though it is more for people new to programming rather than new to Ruby.
justinmcp has joined #ruby
codeFiend has joined #ruby
hadees has quit [Quit: hadees]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<Spooner> You'll skip through it quickly if you knwo C.
<soulisson> ok, thank Spooner, i have the book the pragmatic programmer for ruby, is it good ?
<Spaceghostc2c> soulisson: Really good.
wpaulson has quit [Client Quit]
<Spaceghostc2c> It's not about ruby per se.
lggr has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 252 seconds]
LouisGB has quit [Ping timeout: 245 seconds]
manizzle has joined #ruby
<Spooner> Spaceghostc2c No, there is The Pragmatic Programmer (general software eng book) and "Programming Ruby: The pragmatic programmer's guide" aka the Pickaxe.
<Spooner> soulisson : I assume you mean the latter?
Criztian has quit [Remote host closed the connection]
<soulisson> Spooner: yes
<Spooner> Just call it "the Pickaxe book" and we'll know what you are on about. And yes, it is very good and appropriate for someone who has aprogramming background.
<Spaceghostc2c> Oh that one.
lggr has joined #ruby
dmiller has quit [Remote host closed the connection]
zigomir has quit [Quit: Leaving]
stephenjudkins has quit [Quit: stephenjudkins]
Russell^^ has quit [Quit: Russell^^]
brahman_ has quit [Quit: Changing server]
piotr__ has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
elsifaka has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
ergodicsum has quit [Ping timeout: 246 seconds]
sent-hil has quit [Remote host closed the connection]
hadees has joined #ruby
lggr has joined #ruby
stephenjudkins has joined #ruby
williamcotton has joined #ruby
catphish has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
fantazo has quit [Remote host closed the connection]
<catphish> is there a simple way to close all files after forking?
vlad_starkov has joined #ruby
nat2610 has quit [Quit: Leaving.]
elico has quit [Quit: Elico]
jrunning has joined #ruby
ttt has joined #ruby
<catphish> ah, you can 1024.times {|fd| IO::new(fd).close}
monkegjinni has quit [Remote host closed the connection]
nat2610 has joined #ruby
dmiller has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
savant has quit [Ping timeout: 240 seconds]
<catphish> or maybe ObjectSpace.each_object(IO) { |io| io.close }
CarlB_the_great has quit [Remote host closed the connection]
Forevernade has quit [Ping timeout: 244 seconds]
elico has joined #ruby
<catphish> also, the io-extra gem :)
<elico> need some help with socket programming please.
vlad_starkov has quit [Ping timeout: 246 seconds]
JustinCampbell has joined #ruby
Forevernade has joined #ruby
<elico> i am using raw socket for tproxy and (tcp) and I am thinking of a logic to know when there is data waiting in the socket
sailias has quit [Quit: Leaving.]
ttt has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
<elico> a select and read will get me a a 0 size data size
<catphish> Elico: look at IO.select and the _nonblock methods
<elico> ok thanks
<catphish> read should only return 0 data if the socket has been closed
<catphish> otherwise it should block
<catphish> tcpsocket.read generally returns all data until the socket is closed
wpaulson has joined #ruby
<catphish> if it returns an empty string then the remote sent nothing but closed the connection afaik
<elico> it's not a tcpsocket .. it's a raw socket with tproxy option
<catphish> err
emmanuelux has quit [Remote host closed the connection]
Synthead has joined #ruby
<elico> it's kind of different
<catphish> i have no idea what that is :(
billiam has quit [Quit: Leaving]
JustinCampbell has quit [Remote host closed the connection]
<elico> it's for a proxy
tgraham is now known as tgraham|away
<catphish> ok, but tproxy is not an option i'm aware of
jprovazn_away has quit [Ping timeout: 252 seconds]
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
<elico> well this is one problem in ruby.. there is no constant for that yet..
<elico> so i need to use it manually...
<elico> a sec i will find my code for that
<catphish> what does it do
bbttxu has joined #ruby
<catphish> and what type of socket is it?
<catphish> because google has nothing
<elico> a sec...
stephenjudkins has quit [Quit: stephenjudkins]
JustinCampbell has joined #ruby
<catphish> i can see tproxy is an iptables target
<elico> yes a sec..
lggr has quit [Ping timeout: 240 seconds]
jblack_ has joined #ruby
stephenjudkins has joined #ruby
<elico> ok there are two sides of tproxy..
jblack has quit [Disconnected by services]
jblack_ is now known as jblack
conor_ireland has quit [Quit: conor_ireland]
<catphish> anyway, the normal flags, options, structs work fine in ruby
<catphish> sockets are pretty raw
samphippen has quit [Quit: Computer has gone to sleep.]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<elico> one side is the server which intercepts the request and using some getsockopt can get the original destination of the request and there is a socket for outgoing request by the ip+port of the original requester an example for something about it in couple secs at a pastie
JustinCa_ has joined #ruby
ebragaparah has left #ruby [#ruby]
lggr has joined #ruby
ForevernadeAFK has joined #ruby
carloslopes has quit [Quit: Leaving.]
JustinCampbell has quit [Read error: Connection reset by peer]
jgwong has quit [Ping timeout: 252 seconds]
mikestewart has joined #ruby
<kenneth> oh hey question: if i have a submodule called Whatever, and I want to refer to a top-level module Whatever from within it, how would i do that?
<elico> what i want to do is wrap it with a receive_data like in event machine
jgwong has joined #ruby
<Gate> kenneth: ::Whatever
skogis has quit [Ping timeout: 244 seconds]
<kenneth> oh sweet, that does it, thanks
<catphish> :: starts back at the root
<elico> catphish: the problem is that a proxy can serve pipelined requests which means: one request one reply and again one request and one reply
<elico> so I need to know when to stop reading from the server side and start reading the client side again
ergodicsum has joined #ruby
JustinCa_ has quit [Ping timeout: 260 seconds]
JustinCampbell has joined #ruby
<catphish> content-length is the way http does it
lggr has quit [Ping timeout: 260 seconds]
<catphish> if its a stream
mikestewart has quit [Quit: I'm not a quitter, I just had something else to do ;-)]
Solnse has quit [Ping timeout: 265 seconds]
<catphish> obviously if it's datagram based, one at a time
SegFaultAX|work has joined #ruby
<elico> the tproxy sockets are steam sockets
JustinCa_ has joined #ruby
SegFaultAX|work has quit [Client Quit]
ergodicsum has quit [Read error: Connection reset by peer]
<elico> in any case at all..
JustinCa_ has quit [Read error: Connection reset by peer]
<catphish> then you need a header to define the length
JustinCa_ has joined #ruby
<catphish> look up tcp keepalive for an example of how you can serve multiple requests over one stream
<catphish> *http keepalive
<catphish> sorry
SegFaultAX|work has joined #ruby
apok has quit [Ping timeout: 246 seconds]
<elico> well i will look at this but i have another problem..
tommyvyo has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
markss has joined #ruby
<elico> tproxy sockets are stream sockets but... not always the hijacked socket is...
patrickximenes has quit [Quit: patrickximenes]
<catphish> tricky
JustinCampbell has quit [Ping timeout: 246 seconds]
<catphish> seems a little hacky
<elico> exatcly that what tproxy is...
JustinCampbell has joined #ruby
<catphish> so you redirect a stream
<elico> yes
<catphish> but you can find its original destination
<catphish> so you can MITM it but send it on its way
<elico> yes it was ment for load balancing filtering and caching.
simonista has joined #ruby
<catphish> yes
simonista has left #ruby [#ruby]
<elico> the whole idea is to do low level mitm and not more
Guest5541 is now known as mahlon
davidcelis has joined #ruby
JustinCa_ has quit [Ping timeout: 256 seconds]
<elico> just to allow http filtering and some basic protocols
<catphish> well yes
JustinCa_ has joined #ruby
<catphish> but...
<elico> ?
x82_nicole has quit [Quit: Computer has gone to sleep.]
<catphish> why would you only look at one socket at a time
<catphish> why not select data from both directions
margle has quit [Quit: Computer has gone to sleep.]
JustinCampbell has quit [Read error: Connection reset by peer]
<catphish> and process whichever
<elico> well this is the tricky point
<catphish> if its a udp conversation sent over a stream you're fucked
<elico> i'm not sure yet what and how
<catphish> because you don't know where each packet starts
<catphish> unless it prefixes each one with a lengh
jgwong has quit [Ping timeout: 255 seconds]
<catphish> which it should if its designed properly
<elico> not exactly
<elico> hoo well yes
notVert has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
<elico> it's tricky indeed..
<catphish> i've used ethernet over tcp
<catphish> and that prefixes each frame in the steam with a length
JustinCampbell has joined #ruby
jgwong has joined #ruby
triptec has quit [Quit: triptec]
bier has quit [Ping timeout: 255 seconds]
<catphish> things like http rely on EOF though
Takehiro has joined #ruby
<catphish> actually http uses \n\n in some places and EOF in others
<catphish> but its a but arbitrary
conor_ireland has joined #ruby
<elico> well since my main goal is http filtering I dont have really a big problem with it
<elico> I just want to peek at the data and decide if it's http or proxy connection
ckrailo has joined #ruby
<elico> else then that i just relay it until it's being closed
rabidpraxis has quit [Remote host closed the connection]
Justi____ has joined #ruby
<deryl> ok, all my tasks work if I am in the gem itself (as in its git repo as the working dir) which I expect. But, say I have a task like copying files (such as db files and the db config.yml) that is part of the installed gem, but I'm in the working dir of a project that has it listed in its Gemfile, and I have the require for written. How would I make that available? its like a chicken and the egg equation.
JustinCa_ has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
nari_ has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
JustinCampbell has quit [Ping timeout: 246 seconds]
DrShoggoth has quit [Quit: Leaving]
JustinCampbell has joined #ruby
<elico> I was thinking of doing a loop that iterate over each side until it's getting 0 size response or gets into a close state.
Takehiro has quit [Ping timeout: 253 seconds]
the_jeebster has quit [Quit: Leaving.]
<elico> like: read 4096 bytes and write it into the paired socket in a loop until there is no data in the stream
<elico> then move over to the client side and start reading
<elico> or do them both sides in a loop
Justi____ has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 256 seconds]
JustinCa_ has joined #ruby
JustinCampbell has quit [Ping timeout: 246 seconds]
JustinCa_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Karmaon has joined #ruby
soulisson has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
KillerFox has quit [Ping timeout: 265 seconds]
conor_ireland has quit [Quit: conor_ireland]
lggr has joined #ruby
bier has joined #ruby
zcreative has joined #ruby
savant has joined #ruby
Solnse has joined #ruby
xrl has quit [Quit: Connection closed for inactivity]
SeanTAllen has quit [Quit: Connection closed for inactivity]
<zcreative> I'm just getting into ruby. How may i run it in parallel on my local system along with php and apache?
<elico> you mean rails?
<zcreative> yes.
jimeh5 has quit [Ping timeout: 260 seconds]
<catphish> the easiest way (IMO) is with passenger
luckyruby has quit [Remote host closed the connection]
<catphish> ask #rubyonrails
mahmoudimus has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<elico> catphish: what do you think? read here and write there unless state is closed and then close both sides...
<catphish> Elico: use select to read data that arrives from either side and write it to the othe
KillerFox has joined #ruby
vitoravelino is now known as vitoravelino`afk
<catphish> if you receive EOF from one side, you should close the other (but not both)
codeFiend has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 255 seconds]
<elico> well since it's a proxy that connecting two side to each other then i need to close both in most cases
<catphish> wrong
ephemerian has quit [Quit: Leaving.]
v0n has quit [Quit: Leaving]
<catphish> just because one side is finished sending data doesn't mean the other side is
<elico> if it's a transparent proxy and one of the sides closed the connection it means the whole session from now on has ended
<catphish> no
monkegjinni has quit [Ping timeout: 246 seconds]
<elico> and let say if i'm not a proxy just a computer and one side closed the connection what the state of the connection? close..fin etc..
lggr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<elico> this is what the last time sockets (not server) worked like
gabrielrotbart has joined #ruby
<catphish> once one side closes the connection the other can still send its response back
<elico> to where?
<catphish> to the client that closed the connection
<elico> you mean by the tcp level
<elico> ?
<catphish> closing a connection doesn't mean you won't accept any more data on it
<catphish> in tcp at least
<elico> intresting
lkba has quit [Ping timeout: 260 seconds]
<catphish> closing a connection simply means EOF
pkondzior_ has quit [Quit: Connection closed for inactivity]
jhowarth has quit [Quit: Connection closed for inactivity]
seanstickle has joined #ruby
<catphish> ie i have no more data to send
jimeh5 has joined #ruby
<catphish> at which point the connection is half-open and can only receive
chussenot has joined #ruby
<catphish> until the other side also closes
manizzle has quit [Ping timeout: 256 seconds]
<catphish> it's common for protocols to end their request by closing the connection
<catphish> though HTTP doesn't
<elico> a sec
dangerousdave has quit [Quit: Leaving...]
Jellyg00se has joined #ruby
<catphish> While it takes three segments to establish a connection, it takes four to terminate a connection. This is caused by TCP's half-close. Since a TCP connection is full-duplex (that is, data can be flowing in each direction independently of the other direction), each direction must be shut down independently. The rule is that either end can send a FIN when it is done sending data. When a TCP receives a FIN, it must notify the application that the other
<catphish> end has terminated that direction of data flow. The sending of a FIN is normally the result of the application issuing a close.
JonnieCache has quit [Ping timeout: 240 seconds]
<catphish> The receipt of a FIN only means there will be no more data flowing in that direction. A TCP can still send data after receiving a FIN. While it's possible for an application to take advantage of this half-close, in practice few TCP applications use it. The normal scenario is what we show in Figure 18.3. We describe the half-close in more detail in Section 18.5.
nat2610 has quit [Quit: Leaving.]
slainer68 has quit [Remote host closed the connection]
Averna has joined #ruby
horofox has quit [Quit: horofox]
Karmaon has quit [Remote host closed the connection]
<catphish> in tcp close means EOF
<elico> section 18.5 of what?
<catphish> i was pasting from a document
Solnse has quit [Ping timeout: 240 seconds]
<elico> ho thanks for the doc
lggr has quit [Ping timeout: 248 seconds]
<elico> I read about it in a book i bought but it was too long ago
<catphish> so when you get a FIN (EOF) from one side, close the other side
<catphish> and vice versa
nat2610 has joined #ruby
<catphish> but don't close both unless you have an error of some kind
cakehero has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby
<elico> hmm ok got it
ttt has joined #ruby
nat2610 has quit [Client Quit]
nat2610 has joined #ruby
cakehero has joined #ruby
lggr has joined #ruby
tgraham|away is now known as tgraham
savant has left #ruby [#ruby]
Virunga has quit [Remote host closed the connection]
linoj has joined #ruby
<catphish> sleep now :)
<catphish> zzzzz
catphish has quit [Quit: Leaving]
<elico> Nighty night
dpk has quit []
Guedes has quit [Read error: Connection reset by peer]
tekacs has quit [Read error: Operation timed out]
jimeh5 has quit [Quit: bye]
ttt has quit [Ping timeout: 240 seconds]
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Nisstyre has quit [Ping timeout: 245 seconds]
Synthead has quit [Quit: p33 ba115]
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
d1zzYLuLz has quit [Disconnected by services]
d1zzYLuLz_ has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
g-ram has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
g-ram has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
CodeFriar has quit [Quit: Leaving...]
fredjean has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
sciolizer has joined #ruby
CodeFriar has joined #ruby
tekacs has joined #ruby
<sciolizer> Can somebody help me with a scoping problem? http://pastebin.com/xBZZTBLf
apok has joined #ruby
<Gate> sciolizer: remove the .class from .target.class.send
<Gate> sciolizer: your defining method on Class there, not Foo or Bar
<sciolizer> Gate: weird.rb:15:in `<main>': undefined method `speak' for Foo:Class (NoMethodError)
<ryanlecompte> sciolizer: Right, if you want to define the method on Foor/Bar, just use #define_singleton_method
<ryanlecompte> sciolizer: target.define_singleton_method(:speak) { p number }
moshee has quit [Ping timeout: 252 seconds]
Forevernade has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<sciolizer> ryanlecompte: that worked, thanks
apok has quit [Client Quit]
<ryanlecompte> no problem sciolizer
<sciolizer> ryanlecompte: I still don't understand though. At what point is number "allocated"?
<sciolizer> Closures don't behave the way I expect them to.
<ryanlecompte> sciolizer: number references the value that you pass in as the argument when you call #populate
<ryanlecompte> sciolizer: so it first has the value 1, which is captured with the first #define_singleton_method call
duracrisis has joined #ruby
duracrisis has quit [Changing host]
duracrisis has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Nisstyre has joined #ruby
<ryanlecompte> sciolizer: then, when #populate exits, you call #populate a second time which introduces a new local variable (number) pointing to a new object instance
<ryanlecompte> sciolizer: and the 2nd #define_singleton_method closure captures _that_ local variable
<ryanlecompte> so they are indeed different between the separate calls
h4mz1d has quit [Ping timeout: 244 seconds]
<sciolizer> ok, I think I get it
<sciolizer> I misunderstood what define_method does. I thought you called it on an object, but you actually call it on the class.
<ryanlecompte> right, #define_method does nothing more than add a new instance method inside of its receiver (a class or module)
<ryanlecompte> you can call #define_singleton_method on *any* object, not just classes/mdoules
<ryanlecompte> what it does is add a new instance method into the receiver's singleton class
<sciolizer> ok, that makes sense
lggr has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
<ryanlecompte> sciolizer: yup. a great book for grokking this stuff is "Metaprogramming Ruby" by Paolo Perrotta.
duracrisis has quit [Ping timeout: 260 seconds]
<sciolizer> ok
pdtpatrick has quit [Quit: pdtpatrick]
Banistergalaxy has joined #ruby
duracrisis has joined #ruby
duracrisis has quit [Changing host]
duracrisis has joined #ruby
ForevernadeAFK is now known as Forevernade
hsbt_away is now known as hsbt
AndChat| has joined #ruby
AndChat- has joined #ruby
mildfate has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<mildfate> If I have a very long regexp, how do I break it up in the code for readability without it matching whitespace?
graft has joined #ruby