apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<garbagecollectio> which is like 0 or 2 or whatever Drawer is right
shevy has joined #ruby
iparnose has quit [Quit: Page closed]
VTLob has quit [Quit: VTLob]
<garbagecollectio> also what does constantize do
<garbagecollectio> also why does passing in a symbol map to a string on the enum.new?
<garbagecollectio> EModule = Enum.new(
<garbagecollectio> "DRAWER" ,
havenwood has quit []
<jhass> RubyPanther: hmm, don't see on api.rubyonrails.org
monkegjinni has quit [Ping timeout: 240 seconds]
<RubyPanther> it is probably from a plugin since the new rails feature uses a method enum
Brando753 has quit [Ping timeout: 255 seconds]
<RubyPanther> but I wouldn't even worry about that, I'd expect it to be hash-like, and I'd worry about the return value you're dealing with
<shevy> test
<garbagecollectio> well i don't get how she is passing in a symbol that somehow maps to a string
pwh has joined #ruby
<RubyPanther> garbagecollectio: that is common in rails stuff, like HashWithIndifferentAccess
<jhass> garbagecollectio: the [] method probably just does .to_s on the passed key
Axsuul_ has joined #ruby
<garbagecollectio> but
<garbagecollectio> oh
<garbagecollectio> nice find!
Axsuul_ has quit [Read error: Connection reset by peer]
zorak has quit [Ping timeout: 252 seconds]
Ziarkaen has quit [Remote host closed the connection]
Axsuul_ has joined #ruby
Ziarkaen has joined #ruby
Brando753 has joined #ruby
bthesorceror has quit [Remote host closed the connection]
colour has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
jamto11 has joined #ruby
axsuul has quit [Max SendQ exceeded]
dapz has joined #ruby
axsuul has joined #ruby
ce_afk is now known as cescalante
monsieurp has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
fridim_ has quit [Ping timeout: 264 seconds]
Slavox|AFK is now known as Slavox
kitak has joined #ruby
fridim_ has joined #ruby
<garbagecollectio> man
predator117 has quit [Ping timeout: 264 seconds]
Axsuul_ has quit [Ping timeout: 264 seconds]
sailias has quit [Ping timeout: 240 seconds]
srji has joined #ruby
axl_ has joined #ruby
predator117 has joined #ruby
Umschwung has quit []
toastyne_ has quit [Remote host closed the connection]
<garbagecollectio> what does require do
snuffeluffegus has joined #ruby
<garbagecollectio> and include
<garbagecollectio> in a class
srji_ has quit [Ping timeout: 252 seconds]
<shevy> python has a new homepage http://www.python.org/
<jhass> require is just a method, where it's called doesn't matter. It loads a ruby file relative to $LOAD_PATH
toastynerd has joined #ruby
<jhass> include mixes a module into a class, making methods defined in that module available on that class
tkuchiki has quit [Read error: Operation timed out]
axl_ has left #ruby [#ruby]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
axsuul has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
monsieurp has quit [Quit: Lost terminal]
toastynerd has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 240 seconds]
<jamto11> i have a hash map with keys and values that are both strings (the values are all strings but i want to change them to integers). how do i change all the values to integers elegantly while retaining the map?
YamakasY has quit [Ping timeout: 264 seconds]
whomp has joined #ruby
<jhass> hash = Hash[hash.map {|k, v| [k, v.to_i] }]
cescalante is now known as ce_afk
aspires has joined #ruby
ce_afk is now known as cescalante
jack_rabbit has joined #ruby
<jamto11> thanks jhass! that totally works
centrx has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
cjsarette has joined #ruby
monsieurp has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
shadoi has quit [Read error: Connection reset by peer]
sski has quit [Remote host closed the connection]
shadoi has joined #ruby
sski has joined #ruby
nateberkopec has quit [Quit: Leaving...]
shadoi1 has joined #ruby
aspires has quit []
armyriad has joined #ruby
saarinen has joined #ruby
perlsyntax has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has joined #ruby
sski has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
shadoi has quit [Ping timeout: 265 seconds]
whomp has quit [Ping timeout: 244 seconds]
kennym1 is now known as kennym
kennym has quit [Changing host]
kennym has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
<kennym> can someone invite me to the #rails channel?
<kennym> never mind
<centrx> kennym, Register and identify your nick
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<kennym> it is… however the actual channel I am looking for is #rubyonrails
Geniack_ has quit [Read error: Operation timed out]
marcdel has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
YamakasY has joined #ruby
<centrx> kennym, Correct
<kennym> centrx: thank you
FenixFyreX has quit [Ping timeout: 245 seconds]
nhmood_ has joined #ruby
bitsandbooks has joined #ruby
CaptainJet has joined #ruby
cescalante is now known as ce_afk
Geniack has joined #ruby
nhmood_ is now known as nhmood
apeiros has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
zz_karupanerura is now known as karupanerura
sdouglas has quit [Ping timeout: 265 seconds]
nisstyre has joined #ruby
YamakasY has quit [Read error: Operation timed out]
bluepojo_ has joined #ruby
YamakasY has joined #ruby
sparrovv has quit [Remote host closed the connection]
apeiros has joined #ruby
DrShoggoth has joined #ruby
chipotle has joined #ruby
binaryhat has joined #ruby
bluepojo has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
vpretzel has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
nateberkopec has quit [Quit: Leaving...]
jgoss has joined #ruby
lolmaus has joined #ruby
garbagecollectio has joined #ruby
fgo has quit [Remote host closed the connection]
nhhagen has joined #ruby
aspires has joined #ruby
supermarin has joined #ruby
Salve has joined #ruby
jimmyy has quit []
sambao21 has joined #ruby
aspires has quit [Client Quit]
e4xit_ has joined #ruby
e4xit has quit [Ping timeout: 240 seconds]
e4xit_ is now known as e4xit
pu22l3r has joined #ruby
nhhagen has quit [Ping timeout: 265 seconds]
Fyyr13_ has joined #ruby
tkuchiki_ has joined #ruby
jimmyy has joined #ruby
chipotle has quit [Quit: cya]
Fyyr13_ has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
momigi has quit [Remote host closed the connection]
YamakasY has quit [Quit: The best revenge is massive success...]
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
lw has quit [Quit: s]
montyboy has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Client Quit]
LadyRainicorn has quit [Quit: Bye]
robustus has quit [Ping timeout: 252 seconds]
akitada has joined #ruby
Red_Onyx has joined #ruby
confounds has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
axsuul has joined #ruby
momigi has joined #ruby
robustus has joined #ruby
binaryhat has quit [Quit: Leaving]
jamto11 has quit [Remote host closed the connection]
jimmyy has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
mcus has quit [Remote host closed the connection]
lyanchih has joined #ruby
lw has joined #ruby
yubrew has joined #ruby
jimmyy has joined #ruby
lutfidemirci has quit [Read error: Connection reset by peer]
lutfidemirci has joined #ruby
foredoomed has joined #ruby
tils` has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
burgess|vayo has quit [Read error: Connection reset by peer]
jimmyy has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
toastynerd has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
jimmyy has joined #ruby
mikepack has quit [Remote host closed the connection]
foredoomed has quit [Ping timeout: 240 seconds]
tils has quit [Ping timeout: 240 seconds]
momigi_ has joined #ruby
jimmyy has quit [Max SendQ exceeded]
Slavox is now known as Slavox|AFK
newbie1r has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
pu22l3r has quit [Remote host closed the connection]
foredoomed has joined #ruby
jimmyy has quit [Max SendQ exceeded]
saarinen has quit [Quit: saarinen]
larsam has joined #ruby
momigi has quit [Ping timeout: 264 seconds]
jimmyy has joined #ruby
axsuul has quit [Ping timeout: 244 seconds]
dkamioka has quit [Remote host closed the connection]
Steve445 has joined #ruby
whomp has joined #ruby
dkamioka_ has joined #ruby
Ziarkaen has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
foredoomed has quit [Ping timeout: 240 seconds]
duggiefresh has quit [Ping timeout: 244 seconds]
meatherly has joined #ruby
iliketurtles has joined #ruby
fgo has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
Notte has joined #ruby
jimmyy has quit []
<Nilium> So, uh, anyone feel like trying to code golf something?
jimmyy has joined #ruby
Notte has quit [Client Quit]
<whomp> sure
<Steve445> anyone track the time they spent on a issue or commit in GitHub? (usually for billing purposes or resource allocation tracking). Built this: https://github.com/StephenOTT/GitHub-Time-Tracking. Just looking for some UX suggestions around the workflow of the information. Showing Time and Budgets for issues, budgets, and then being able to drill down into different levels of info. Looking for some use cases for r
hobodave has quit [Quit: Computer has gone to sleep.]
jimmyy_ has joined #ruby
kennym1 has joined #ruby
drx_ has joined #ruby
meatherly has quit [Remote host closed the connection]
<Nilium> https://gist.github.com/nilium/d2fbec2e3705f5e38069 ⇐ Alright. I've been working on trying to get this as short as possible. Because it's mostly unreadable now, the comments describe what it's trying to do.
<Nilium> I managed to do it in 100 characters, but it'd be neat to see it shorter.
<Nilium> At this point, though, I'm honestly kind of tired of hitting it with a stick over and over,
ehaliewicz has joined #ruby
<drx_> Thats a freaky cool function
afreidah1 has joined #ruby
<drx_> whats the application for this unique integer function ?
<Nilium> Someone was asking a math problem on Stack Overflow and I decided to try to solve it with Ruby.
<Nilium> And then I solved it, so I tried to code golf it.
shevy has quit [Ping timeout: 244 seconds]
kennym has quit [Ping timeout: 265 seconds]
meatherly has joined #ruby
<drx_> nice
DrShoggoth has quit [Remote host closed the connection]
jimmyy has quit [Ping timeout: 264 seconds]
<drx_> Whats code golf?
hobodave has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
<Nilium> I updated the gist with the non-golf'd implementation
mercwithamouth has quit [Ping timeout: 264 seconds]
jimmyy_ has quit [Ping timeout: 252 seconds]
<Nilium> http://en.wikipedia.org/wiki/Code_golf ⇐ That should explain code golf well enough.
Mongey has quit [Quit: Mongey]
axsuul has joined #ruby
Mongey has joined #ruby
<drx_> hell yeah
<drx_> love it
afreidah has quit [Ping timeout: 265 seconds]
<drx_> damn, even the non-golf'd version looks golf'd compared to other languages
Vovko has joined #ruby
agent_white has joined #ruby
Steve445 has quit [Quit: Steve445]
<drx_> and the golf'd version looks like it can't possibly achieve that output
<drx_> yet it does
Steve445 has joined #ruby
axsuul has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
Steve445 has quit [Client Quit]
<agent_white> Good evenin'!
<xuisc> hello there agent_white
<pontiki> welcome, agent_white. are you ready to report in?
<centrx> Welcome Junior Developer #1
bitsandbooks has quit [Quit: My laptop has gone to sleep. Zzzzzz…]
supermarin has quit [Remote host closed the connection]
Steve445 has joined #ruby
supermarin has joined #ruby
nateberkopec has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
<agent_white> pontiki: Agent_white reporting in! Keeping the peace, doing my best to fight the bad guys, whereever they may be!
nathanso_ has quit [Ping timeout: 264 seconds]
Steve445 has quit [Client Quit]
Steve445 has joined #ruby
francisfish has joined #ruby
<bnagy> Nilium: I don't understand the rules
<bnagy> why no 110?
albedoa has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
kenndel has joined #ruby
<Nilium> For which one?
<bnagy> why is 110 not valid
<Nilium> For which one?
bitsandbooks has joined #ruby
YoloSwaggins has joined #ruby
binaryhat has joined #ruby
<bnagy> uh what? For the output set
<Nilium> That computes two sets of numbers.
<Nilium> One without repeating digits and one with repeating digits, respectively.
Fyyr13_ has joined #ruby
xm has joined #ruby
lw has quit [Quit: s]
<bnagy> ahh I see. OK, and no 1000 because 1...1000 I guess?
<Nilium> It says (0, 1000), so yes, no 0 and no 1000
supermarin has quit [Ping timeout: 265 seconds]
<bnagy> why are there repeats?
<bnagy> 106 is in both sets
<Nilium> Though the reference implementation is slightly incorrect.
Fyyr13_ has quit [Read error: Connection reset by peer]
<Nilium> Because it's _two sets of numbers_.
francisfish has quit [Ping timeout: 252 seconds]
Fyyr13_ has joined #ruby
<bnagy> one with and one without repeating digits? Which digits in 106 repeat?
<Nilium> It doesn't have to have repeating digits to be in the set with repeating digits.
<Nilium> It's merely that one can have repeats and one cannot have repeats.
<bnagy> ok
<Nilium> Is there a way to report spambots on Freenode? This away_ bot is getting annoying.
<YoloSwaggins> Hey all, I'm trying to write tests for a two classes in a module that uses redis. Presently, I'm using $redis, but I'd like to be able to pass in a mock redis driver for testing purposes. How do I pass a redis driver into my module?
Fyyr13__ has joined #ruby
thesheff17_ has quit [Ping timeout: 265 seconds]
BackEndCoder has quit [Read error: Connection reset by peer]
BackEndCoder has joined #ruby
vlad_starkov has joined #ruby
sski has joined #ruby
_maes_ has joined #ruby
Fyyr13_ has quit [Ping timeout: 264 seconds]
fella6s has joined #ruby
Slavox|AFK is now known as Slavox
lw has joined #ruby
thesheff17_ has joined #ruby
fella5s has quit [Ping timeout: 240 seconds]
<drx_> possible causes for this on Os X? : https://gist.github.com/anonymous/9458193
vlad_starkov has quit [Ping timeout: 240 seconds]
bogeyd6 has joined #ruby
h4mz1d has joined #ruby
mehlah has quit [Quit: Leaving...]
toastynerd has quit [Remote host closed the connection]
poguez has joined #ruby
nateberkopec has quit [Quit: Leaving...]
BackEndCoder has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
braincra- has joined #ruby
BackEndCoder has joined #ruby
BackEndCoder has quit [Read error: Connection reset by peer]
<confounds> YoloSwaggins constructor injection, setter injection, config, overwrite global
monsieurp has quit [Ping timeout: 240 seconds]
BackEndCoder has joined #ruby
zarubin has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 244 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
dayepa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
YoloSwaggins has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marcdel has quit []
charliesome has joined #ruby
<bnagy> Nilium: a=(1..996).select(&:even?).map(&:to_s);[b=a.reject{|s|s=~/[258]/},b.reject{|s|s=~/(\d).*\1/}]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<bnagy> the sets are in the opposite order but it matches
<bnagy> can probably trim a few more with the assignments, actually
h4mz1d has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
iliketur_ has joined #ruby
dayepa has quit [Client Quit]
supermarin has joined #ruby
ner0x has joined #ruby
mikepack has quit [Remote host closed the connection]
<Nilium> bnagy: Yeah: [b=(1..996).select(&:even?).map(&:to_s).reject{|s|s=~/[258]/},b.reject{|s|s=~/(\d).*\1/}]
<bnagy> yeah, I get 87
krz has joined #ruby
<bnagy> and it's 200x more readable! \o/
Zunonia_ has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 244 seconds]
charliesome has quit [Ping timeout: 240 seconds]
mojjojo has quit [Quit: mojjojo]
carif has joined #ruby
<Nilium> I question whether regexps make it more readable.
BackEndCoder2 has joined #ruby
confounds has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> they're pretty obvious regexps.. but anyway yours is practically obfuscated
<bnagy> magic bitwise trix ;)
toretore has quit [Quit: This computer has gone to sleep]
<Nilium> Well it is using an int as a bitset.
_5kg has quit [Ping timeout: 252 seconds]
<bnagy> yeah I can see when I squint
pyreal has quit [Quit: pyreal]
<bnagy> also 1,!1 is.. cute :/
nari has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Mongey has quit [Read error: Connection reset by peer]
sriehl has joined #ruby
<bnagy> anyway fine I'll revise down to 50x more readable because of regexps :P
Mongey has joined #ruby
sriehl has quit [Client Quit]
jhass is now known as jhass|off
sdouglas has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
supermarin has quit [Remote host closed the connection]
_5kg has joined #ruby
zcreative has joined #ruby
supermarin has joined #ruby
freerobby has joined #ruby
<Nilium> bnagy: [b=(?2..'996').step(2).reject{|s|s=~/[258]/},b.reject{|s|s.chars.uniq!}]
<Nilium> There you go
<Nilium> 72 characters.
supermarin has quit [Read error: Connection reset by peer]
<bnagy> oh nice
ankushio has joined #ruby
supermarin has joined #ruby
<Nilium> Only downside is the numbers are now strings, but that's less important
lyanchih has quit [Quit: lyanchih]
BackEndCoder has quit [Quit: Leaving]
<bnagy> side effecty uniq! is cool
BackEndCoder_ has joined #ruby
<ankushio> In the following statement, what is URI? x = URI("http://foo.com/") . Is it a method? a class consructor?
<bnagy> doesn't save any chars though
BackEndCoder_ is now known as BackEndCoder
<Nilium> Ah, nevermind, yours was producing strings anyway
charliesome has joined #ruby
<Nilium> Well, the uniq! thing doesn't save chars over the regex, but I do find it more readable since it suggests intent more clearly
<bnagy> hrm. I had to check the side effect
<Nilium> Whether that even means anything at 72 characters is debatable though
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
<Nilium> Checking the side effect is probably preferable to figuring out why it's checking for a regex that's not immediately obvious in what it's doing
MatthewsFace has joined #ruby
<bnagy> meh it's golf I don't really have an opinion
<Nilium> Since I assume most people don't use backreferences in their regular expressions anyway
<bnagy> neither of them are probably fit for real code, so
<Nilium> I will fight people to the death on the use of regular expressions >_>
<ankushio> In the following statement, what is URI? x = URI("http://foo.com/") . Is it a method? a class consructor?
<bnagy> it's a method
meatherly has quit [Remote host closed the connection]
<bnagy> in 99% of cases we don't use Caps for methods, the exception is 'special' methods that either produce something or raise an Exception, like Integer('4')
aryaching has joined #ruby
browndawg has joined #ruby
<Nilium> What bnagy said.
danshultz has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
mikepack has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
<Nilium> Well, I'm convinced we've both committed terrible code-related sins today, bnagy.
* Nilium hangs himself
charliesome has joined #ruby
chipotle has joined #ruby
<bnagy> I was just looking at flip-flops
<Nilium> I pray I reincarnate as a helicopter.
<Nilium> flipflop is a nice wine.
<bnagy> my hindbrain says something about flipflop ternary, but I am scared to look
linojon has quit [Quit: linojon]
<bnagy> so I think I'll write real code instead :)
<RubyPanther> Nilium: I tried Blind Moose, and I swear I could taste the moose
lyanchih has joined #ruby
<bricker`LA> omg true detective ep 8 is released. Everybody shut up!
sski has quit [Remote host closed the connection]
<Nilium> That's probably not a good thing.
<Nilium> There were a few moose in the yard a while ago. Probably destroying the trees. Horrible animals.
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sski has joined #ruby
<bnagy> I have not eaten moose :(
alexju has quit [Remote host closed the connection]
<Nilium> Oh, speaking of animals, I need to dig up that research paper I found on how when people hit animals while driving, the animal is always reported as an instigator (like it was trying to get hit and cause damage)
<bricker`LA> boo HBO Go, "unknown system error"
<Nilium> One of the weirder things I found while researching stuff on roadkill.
<bricker`LA> some sysadmin at HBO HQ is freaking out right now.
BackEndCoder2 has quit [Quit: Leaving]
<RubyPanther> Nilium: In some places if you're drunk you get listed as instigator
<ankushio> bnagy: Thanks
ankushio has quit [Quit: Leaving...]
<RubyPanther> Or if you're speeding
supermarin has quit [Remote host closed the connection]
sski has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has joined #ruby
h4mz1d has joined #ruby
binaryhat has quit [Quit: Leaving]
Vovko has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
<Nilium> RubyPanther: I think I remember reading that some newspaper often reported the driver as the one at fault, but otherwise the animal was usually the one at fault
kung has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
tylersmith has joined #ruby
<RubyPanther> Nilium: I can't find the article, but I read one in the past few months locally that gave a mixed number (Oregon)
<Nilium> I'd guess it's easier to avoid possible defamation if you pin it on an animal that can't sue you than if you blame the driver
<RubyPanther> If it is the driver's fault, then they have to have more expensive comprehensive insurance for it to be covered, so it makes a big difference to many drivers whose fault it is
diegoviola has joined #ruby
<RubyPanther> If you write an mRuby program to drive for you, then it will never be your fault; only mechanical error.
<Nilium> Found it. The article was Mai Kuha's "Degrees of Anthropocentrism in Accounts of Wildlife-Vehicle Collisions". It's a pretty fun read.
meatherly has joined #ruby
<Nilium> Or as fun a read as you can imagine getting from a paper with a title like that.
<Nilium> My time in university might have given me some form of Stockholm syndrome when it comes to academic articles.
sarmiena_ has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
garbagecollectio has quit [Quit: garbagecollectio]
garbagecollectio has joined #ruby
afreidah2 has joined #ruby
whomp has quit [Ping timeout: 252 seconds]
afreidah1 has quit [Ping timeout: 240 seconds]
Fyyr13__ has quit [Remote host closed the connection]
tongcx has left #ruby [#ruby]
<pontiki> got a link, Nilium? i'm interested
thomasxie has joined #ruby
<Nilium> I had to request it at the time, so I'll have to see if I still have it on my disk somewhere
<pontiki> if you can dig it up, super
whomp has joined #ruby
<whomp> RubyPanther, my internet just went down for a sec if you replied
zcreative has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 252 seconds]
<RubyPanther> whomp: replied to what?
<whomp> to what i just wrote
<Nilium> Oh hey, my bratwurst poem. Wasn't expecting to find that in my giant collection of crap.
<whomp> about treating two objects of two different classes as the same one
<whomp> since they both have certain characteristics, like a width, height, etc.
<Nilium> Yeah, I don't have the PDF saved an- actually. Might be in my email.
<Nilium> Nope.
Jetchisel has joined #ruby
<Nilium> 95% chance I printed it out and it's sitting in a file folder somewhere but finding that would actually be pretty difficult
<Nilium> I hoard physical papers and do a terrible job of hoarding digital ones.
<RubyPanther> whomp: maybe it went down before your question
Steve445 has quit [Quit: Steve445]
<whomp> ok, well these objects can either be members of a class defined in the rubygem, or a Hash
<pontiki> well, i have the DOI
iliketurtles has joined #ruby
<whomp> so for a Hash h, we have h[:bounds][:height], whereas for a member of the other class, the Layer class, we have layer.height
<whomp> i want to be able to call h.height and have it give me h[:bounds][:height]
segmond has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
segmond has joined #ruby
segmond has quit [Max SendQ exceeded]
<whomp> RubyPanther, would i create a module on Hash?
segmond has joined #ruby
<RubyPanther> whomp: I would write a simple delegator
<RubyPanther> or a proxy somethingsomething
yubrew has quit [Ping timeout: 240 seconds]
<RubyPanther> whomp: you could just add a method #to_layer method to Hash, though
<whomp> RubyPanther, but then i have issues with testing whether the an instance is equal to another instance
<whomp> RubyPanther, i think maybe i'll make a Slice class for the hash, since it's a hash that represents a Slice in my program
postmodern has joined #ruby
<RubyPanther> whomp: it is better not to call something Slice because there is already #slice
<whomp> so maybe PSDSlice?
<RubyPanther> yeah
<whomp> cool, ty
senayar_ has joined #ruby
Hanmac has joined #ruby
<RubyPanther> whomp: if you need equality you should just instantiate an object from the hash, and then you can have all ducks
jonr22 has quit []
senayar has quit [Ping timeout: 240 seconds]
<whomp> RubyPanther, i don't know how to do that, because the class doesn't have setters for its instance data
<whomp> all i can do is construct a very bare instance
<whomp> or maybe i could make my slice class a subclass of Layer
<RubyPanther> whomp: you could just make another class that has the methods you're using
<whomp> RubyPanther, that's what i'm thinking
<whomp> just wanted to make sure i shouldn't be using some piece of ruby meta goodness
Shidash has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
jamto11 has joined #ruby
axl_ has quit [Quit: axl_]
jetblack has joined #ruby
lutfidemirci has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
jamto11 has quit [Ping timeout: 252 seconds]
trhodes_ has quit [Ping timeout: 244 seconds]
bitsandbooks has quit [Quit: Goodbye!]
psyprus has quit [Ping timeout: 265 seconds]
tongcx has joined #ruby
trhodes_ has joined #ruby
shadoi1 has quit [Quit: Leaving.]
foredoomed has joined #ruby
<pontiki> Nilium: i got it!
<pontiki> whomp, you are a piece of ruby meta goodness :)
psyprus has joined #ruby
<whomp> /hug
Hanmac1 has joined #ruby
foredoomed has quit [Ping timeout: 240 seconds]
Avahey_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
garbagecollectio has quit [Quit: garbagecollectio]
konarr has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<konarr> class Movie
<konarr> def initialize()
<konarr> end
<konarr> def setAction()
<konarr> puts "list, add, delete or update"
<konarr> action = "list"
<konarr> if action == "list"
<konarr> pust "list movie"
<konarr> end
<konarr> end
<konarr> end
<konarr> m = Movie.new()
<konarr> m.setAction
<konarr> anyone know why this code fails ?
<agent_white> pust*?
<centrx> paste*
pothibo has quit [Quit: Computer has gone to sleep.]
<konarr> yeah is pust* but fails again
Beoran has quit [Read error: Operation timed out]
<bnagy> konarr: please don't paste >3 lines into the channel
senayar_ has quit [Remote host closed the connection]
nathansoz has joined #ruby
YoloSwaggins has joined #ruby
<konarr> bnagy: ok, i know but sorry :)
<bnagy> use a paste site, and ideally add the actual error, don't just say 'this fails'
pwh_ has joined #ruby
<konarr> ok, my english is bad. ..
<bnagy> in other news, no empty parens() in ruby ever (only 99.99% accurate) and snake_case not camelCase
aryaching has quit []
<pontiki> you've misspelled 'puts' at 'pust "list movie"'
<konarr> puts is fidex
Steve445 has joined #ruby
<pontiki> what does 'fidex' mean?
Beoran_ has quit [Ping timeout: 264 seconds]
<konarr> pontiki: fix*
iliketurtles has joined #ruby
shabgrd has quit [Ping timeout: 244 seconds]
pwh has quit [Ping timeout: 264 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
jenskarlsen has joined #ruby
decoponio has joined #ruby
<konarr> fix* gets.chomp
nanoyak has joined #ruby
supermarin has joined #ruby
h4mz1d has quit [Ping timeout: 265 seconds]
browndawg has quit [Ping timeout: 265 seconds]
felixflores has joined #ruby
crystal77 has joined #ruby
dkamioka has joined #ruby
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
ner0x has quit [Quit: Leaving]
tjr9898_ has quit [Remote host closed the connection]
supermarin has quit [Remote host closed the connection]
Beoran_ has joined #ruby
thomasxie has quit [Ping timeout: 264 seconds]
Beoran has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
axsuul has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
bthesorceror has quit [Remote host closed the connection]
yacks has joined #ruby
radic has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
radic has joined #ruby
marcdel has joined #ruby
mary5030 has quit [Remote host closed the connection]
yubrew has joined #ruby
marcdel_ has joined #ruby
xuisc is now known as xuisce
mary5030 has joined #ruby
xuisce is now known as xuisc
hiyosi has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
marcdel has quit [Ping timeout: 244 seconds]
shevy has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
supermarin has joined #ruby
butblack has joined #ruby
gener1c has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
snuffeluffegus has quit [Remote host closed the connection]
Salve has quit [Remote host closed the connection]
gener1c_ has quit [Ping timeout: 244 seconds]
Salve has joined #ruby
zachallett has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
mikepack has quit [Remote host closed the connection]
braincra- has quit [Quit: bye bye]
zachallett has quit [Remote host closed the connection]
sensen has joined #ruby
newbie1r has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
zachallett has joined #ruby
redlines has quit [Ping timeout: 244 seconds]
agjacome has quit [Ping timeout: 265 seconds]
redlines has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
CharlieG_ has joined #ruby
armyriad has joined #ruby
CharlieG has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
tkuchiki has joined #ruby
thomasxie has joined #ruby
twiceaday has quit [Ping timeout: 244 seconds]
twiceaday has joined #ruby
butblack_ has joined #ruby
butblack_ has left #ruby [#ruby]
butblack has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
axl_ has joined #ruby
tkuchiki_ has quit [Read error: Operation timed out]
crystal77 has quit [Quit: Computer has gone to sleep.]
nisstyre has quit [Ping timeout: 244 seconds]
philcrissman has joined #ruby
mary5030 has joined #ruby
meatherly has quit [Remote host closed the connection]
crystal77 has joined #ruby
meatherly has joined #ruby
Mongey has quit [Quit: Textual IRC Client: www.textualapp.com]
yeticry has quit [Ping timeout: 244 seconds]
CharlieG has joined #ruby
felixflores has quit []
yasushi has joined #ruby
jimmyy has joined #ruby
<whomp> how can i do some cleanup when ruby throws an exception?
<whomp> but still crash
CharlieG_ has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 265 seconds]
meatherly has joined #ruby
<bnagy> begin; #code; rescue; #cleanup; raise $! # <-- reraise last exception; end
konarr has quit [Quit: WeeChat 0.4.3]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
kenndel has quit [Read error: Connection reset by peer]
kenndel has joined #ruby
mlpinit has quit [Remote host closed the connection]
agent_white has quit [Quit: brbpeeps]
<whomp> bnagy, is that valid ruby?
<whomp> also, can someone kick the spammers, or do they just keep coming back? like away_ keeps sending me links
axl_ has quit [Quit: axl_]
polydius has joined #ruby
YoloSwaggins has quit [Ping timeout: 269 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bnagy> well it's valid ruby apart from the fact that it does nothing
sambao21 has joined #ruby
<bnagy> IRL you'd write it with linebreaks though
WormDrink has quit [Read error: Operation timed out]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pfg has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
<RubyPanther> whomp: normally it would be more like >> begin; raise "beep beep beep ERROR" ; rescue Exception => e; puts 'clean' ; raise e ; end
poguez has quit [Quit: Connection closed for inactivity]
<RubyPanther> nobody actually uses $!
<bnagy> nobody rescues Exception, either
Fire-Dragon-DoL has joined #ruby
Mongey has joined #ruby
nisstyre has joined #ruby
fridim_ has quit [Ping timeout: 244 seconds]
akitada has quit [Quit: Connection closed for inactivity]
carif has quit [Ping timeout: 252 seconds]
Mongey is now known as Mongey-away
pu22l3r has joined #ruby
craigp has quit [Remote host closed the connection]
Steve445 has quit [Quit: Steve445]
UForgotten has quit [Read error: Operation timed out]
micah`_ has quit [Read error: Operation timed out]
[BNC]pagioss has quit [Read error: Operation timed out]
justinmcp has quit [Read error: Operation timed out]
pagioss has joined #ruby
froy has quit [Read error: Operation timed out]
froy has joined #ruby
UForgotten has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
FL1SK has joined #ruby
justinmcp has joined #ruby
micah` has joined #ruby
hidensoft has quit [Quit: Leaving]
philcrissman has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Overlordz has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
freerobby has joined #ruby
shevy has quit [Ping timeout: 265 seconds]
shevy has joined #ruby
bluOxigen has joined #ruby
sparrovv has joined #ruby
<RubyPanther> Actually, they do.
freerobby has quit [Ping timeout: 265 seconds]
_maes_ has joined #ruby
CharlieG has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
cover has quit [Remote host closed the connection]
kukyakya has quit [Remote host closed the connection]
Hobogrammer has quit [Remote host closed the connection]
agent_white has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
sparrovv has quit [Ping timeout: 264 seconds]
kies has joined #ruby
meatherly has quit [Remote host closed the connection]
psyprus has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
jimmyy has quit []
axsuul has quit [Ping timeout: 244 seconds]
lw has quit [Quit: s]
Lewix has quit [Remote host closed the connection]
psyprus has joined #ruby
meatherly has quit [Ping timeout: 264 seconds]
kennym1 has quit [Quit: Leaving.]
MindfulMonk has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
mbff has quit [Ping timeout: 265 seconds]
zachallett has quit [Remote host closed the connection]
zachallett has joined #ruby
zachallett has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
godd2 has quit [Quit: Page closed]
mlpinit has joined #ruby
sdouglas_ has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
Maitiu has quit [Ping timeout: 265 seconds]
mlpinit has quit [Ping timeout: 240 seconds]
Maitiu has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
jamto11 has joined #ruby
dapz has quit [Ping timeout: 240 seconds]
bathula has joined #ruby
BeingUntoDeath has joined #ruby
jaimef has quit [Excess Flood]
jaimef has joined #ruby
BeingUntoDeath has quit [Client Quit]
segmond has quit [Read error: Connection reset by peer]
segmond has joined #ruby
nanoyak has joined #ruby
teleko has joined #ruby
bathula has left #ruby [#ruby]
jetblack has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 244 seconds]
jetblack has joined #ruby
armyriad has joined #ruby
bathula has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mnms_ has quit [Ping timeout: 252 seconds]
mnms_ has joined #ruby
makara has joined #ruby
ce_afk is now known as cescalante
Vovko has joined #ruby
polydius has quit [Quit: EOF]
shevy has joined #ruby
seggy has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
speakingcode has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
segmond has quit [Ping timeout: 265 seconds]
yasushi has quit [Remote host closed the connection]
browndawg has joined #ruby
jimmyy has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
thesheff17_ has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
BeingUntoDeath has joined #ruby
shabgrd has joined #ruby
shabgrd has joined #ruby
shabgrd has quit [Changing host]
sdouglas has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lyanchih has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
tgkokk has joined #ruby
freerobby has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
yubrew has joined #ruby
axsuul has joined #ruby
lutfidemirci has joined #ruby
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
e4xit has quit [Ping timeout: 240 seconds]
CharlieG has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
tgkokk has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
CorySimmons has joined #ruby
pu22l3r has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
francisfish has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has quit [Quit: Leaving.]
shevy has joined #ruby
phansch has joined #ruby
CorySimmons has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
Asher has quit [Ping timeout: 252 seconds]
shevy has quit [Ping timeout: 240 seconds]
<agent_white> Good night Ruby friends!
agent_white has quit [Quit: leaving]
Geniack has quit [Ping timeout: 265 seconds]
Zunonia_ has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Asher has joined #ruby
pu22l3r has joined #ruby
cescalante is now known as ce_afk
Zunonia_ has joined #ruby
paolooo has joined #ruby
segimondu has joined #ruby
sski has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
yeboot has joined #ruby
NicholasFlamel has joined #ruby
<yeboot> how do I get teh examples from stdlib libraries
sski has quit [Remote host closed the connection]
mlpinit has joined #ruby
seggy has quit [Ping timeout: 240 seconds]
sski has joined #ruby
Vovko has quit [Remote host closed the connection]
dtvmzd has quit [Ping timeout: 264 seconds]
<yeboot> hm
<yeboot> one sec
lyanchih has quit [Quit: lyanchih]
yeboot has left #ruby [#ruby]
yeboot has joined #ruby
<yeboot> test
ce_afk is now known as cescalante
diegoviola has quit [Quit: WeeChat 0.4.3]
sski has quit [Remote host closed the connection]
sski has joined #ruby
s2013 has quit [Ping timeout: 244 seconds]
<centrx> yeboot, What examples?
mlpinit has quit [Ping timeout: 244 seconds]
paolooo has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
dpswireless has joined #ruby
Devianttwo has joined #ruby
Devianttwo has left #ruby [#ruby]
sski has quit [Ping timeout: 264 seconds]
dpswireless has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
jimmyy has quit []
aagdbl has quit [Remote host closed the connection]
<centrx> yeboot, Curses has been moved to an external gem, so you can see those examples (and others) at https://github.com/ruby/curses/tree/master/sample
<yeboot> but that's documentation for 2.1.0 ...
rippa has joined #ruby
wlanboy_ is now known as wlanboy
wlanboy has quit [Changing host]
wlanboy has joined #ruby
craigp has joined #ruby
mengu has joined #ruby
browndawg has quit [Ping timeout: 265 seconds]
coder_neo has joined #ruby
<centrx> yeboot, I doubt it's changed much
<centrx> yeboot, What version of Ruby are you using?
tongcx has left #ruby [#ruby]
niklasb has quit [Ping timeout: 252 seconds]
lyanchih has joined #ruby
fgo has quit [Remote host closed the connection]
coder_neo has quit [Client Quit]
amritanshu_RnD has joined #ruby
seggy has joined #ruby
amritanshu_RnD is now known as Guest81137
etqqkoiflwhb has joined #ruby
aagdbl has joined #ruby
xuisc has quit []
mary5030 has quit [Remote host closed the connection]
jetblack has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
sdouglas has quit [Remote host closed the connection]
segimondu has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
carif has joined #ruby
segimondu has joined #ruby
momigi_ has quit [Remote host closed the connection]
pwh_ has quit []
Oog has quit []
alexju has joined #ruby
supermarin has quit [Remote host closed the connection]
ndrei has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
seggy has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
sdouglas has joined #ruby
aganov has joined #ruby
sensen has quit [Ping timeout: 264 seconds]
Mongey-away has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
cescalante is now known as ce_afk
The_NetZ has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
<The_NetZ> hey, little help compiling ruby 2.1.1 under mingw-w64 on linux?
mclaughlin has joined #ruby
<Xeago> have you tried ruby-build or ruby-install ?
<Xeago> set your cc appropriately and it should figure out
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
<The_NetZ> Xeago: ruby-build and ruby-install being? note, I'm attempting this with makepkg, basically an arch linux package maker
tagrudev has joined #ruby
jimmyy has joined #ruby
<Xeago> google/github the 2, they automate dependency resolution and compiler options
<Xeago> etc
<Xeago> so one writes, ruby-install ruby 2.1 and off it goes
Guest81137 has quit [Quit: Leaving]
<The_NetZ> Xeago: interesting.
tesuji has joined #ruby
kitak has quit [Remote host closed the connection]
tonni_ has quit [Remote host closed the connection]
tesuji has quit [Excess Flood]
<The_NetZ> Xeago: see, thing is it goes fine for the most part, just craps out with recipe for target 'ext/socket/static' failed
s2013 has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
codecop has joined #ruby
<Xeago> never seen that before, at what stage is that
<Xeago> (also try #ruby-lang)
amritanshu__RnD has joined #ruby
marcdel_ has quit [Ping timeout: 240 seconds]
bluepojo_ has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
<The_NetZ> one sec; I'm attempting again
yubrew has joined #ruby
bluepojo has joined #ruby
amritanshu__RnD has quit [Read error: Connection reset by peer]
<The_NetZ> actually, I think I may have just figured out the issue; I think maybe my osx cross-compilation toolchain was interfering.
hiyosi has joined #ruby
jackneill has joined #ruby
anarang has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
_tpavel has joined #ruby
lutfidemirci has joined #ruby
marcdel has joined #ruby
lyanchih has quit [Quit: lyanchih]
yubrew has quit [Ping timeout: 244 seconds]
BeingUntoDeath has quit []
freerobby has joined #ruby
amritanshu__RnD has joined #ruby
hiyosi has quit [Ping timeout: 265 seconds]
tanathos has quit [Ping timeout: 241 seconds]
ndrei has quit [Quit: Lost terminal]
CaptainJet has quit []
heftig has quit [Quit: Quitting]
Xeago has quit [Read error: Connection reset by peer]
marcdel has quit []
freerobby has quit [Ping timeout: 264 seconds]
Zunonia_ has quit [Quit: Computer has gone to sleep.]
CorySimmons has joined #ruby
<lxsameer> hey guys, what is the fastest ruby implementations ?
morenoh149 has quit [Ping timeout: 264 seconds]
nhhagen has joined #ruby
<centrx> lxsameer, JRuby, mruby, and MRI 2.1
<apeiros> he asks for the fastest and you give him 3? :D
<apeiros> add rbx to the list!
carif has quit [Read error: Operation timed out]
CorySimmons has quit [Ping timeout: 252 seconds]
Zunonia_ has joined #ruby
<centrx> I thought Rubinius was dead
<lxsameer> great thanks guys
<The_NetZ> I'll say that extending jruby with java made me smash my face into my keyboard many a time, though.
lolmaus has quit [Remote host closed the connection]
momigi has joined #ruby
nhhagen has quit [Ping timeout: 244 seconds]
<lxsameer> The_NetZ: really ? why
supermarin has joined #ruby
<The_NetZ> it just didn't come to me, lol. I tried just about every example I could find, and no dice. so, I switched back to extending MRI with c++
apeiros has quit [Remote host closed the connection]
tonni has joined #ruby
lolmaus has joined #ruby
apeiros has joined #ruby
fgo has joined #ruby
thomasxie has left #ruby [#ruby]
Umschwung has joined #ruby
supermar_ has joined #ruby
supermarin has quit [Ping timeout: 244 seconds]
apeiros has quit [Ping timeout: 240 seconds]
ayaz has joined #ruby
mclaughlin has quit [Remote host closed the connection]
momigi has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
supermar_ has quit [Ping timeout: 244 seconds]
mlpinit has joined #ruby
vlad_starkov has joined #ruby
sensen has joined #ruby
sdouglas has quit [Remote host closed the connection]
Avahey_ has quit [Quit: Connection closed for inactivity]
sdouglas has joined #ruby
<lxsameer> how can i capture key values in a json structure using regex ?
mlpinit has quit [Ping timeout: 240 seconds]
sski has joined #ruby
jamto11 has joined #ruby
shabgrd has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
jimmyy has quit []
RohanRNS has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
roolo has joined #ruby
jamto11 has quit [Ping timeout: 244 seconds]
CharlieG has quit [Quit: Leaving]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
WormDrink has joined #ruby
tonni has quit [Ping timeout: 240 seconds]
fella7s has joined #ruby
saarinen has quit [Quit: saarinen]
fella6s has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 265 seconds]
UserNameInvalid has joined #ruby
amclain has quit [Quit: Leaving]
tesuji has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
Red_Onyx has quit [Quit: Leaving]
<whomp> is there a nice way of finding all the strings in an array between two strings? so like finding all of the strings starting with the letter F to the letter H, for example
St_Marx has quit [Read error: Connection reset by peer]
V__ has joined #ruby
tonni has joined #ruby
yubrew has joined #ruby
mary5030 has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
m104 has joined #ruby
lkba has joined #ruby
<bnagy> sort your array
sski has quit [Remote host closed the connection]
sski has joined #ruby
Merks has joined #ruby
dumdedum has joined #ruby
claymore has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
tonni has quit [Read error: Connection reset by peer]
Speed has joined #ruby
V__ has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
<whomp> bnagy, just looking for something concise
<bnagy> select
<bnagy> strs.select {|s| lower <= s <= upper} or something I guess
sski has quit [Ping timeout: 264 seconds]
etqqkoiflwhb has joined #ruby
hiyosi has joined #ruby
sdouglas has joined #ruby
<bnagy> oh wait can't chain < like that in ruby :/
<bnagy> >> %w(cat bat dog frog zebra).select {|s| 'c' <= s && s <= 'q'}
<eval-in> bnagy => ["cat", "dog", "frog"] (https://eval.in/116939)
sarmiena_ has quit [Quit: sarmiena_]
crantron has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
freerobby has joined #ruby
apeiros has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
dumdedum has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
Xeago has joined #ruby
francisfish has joined #ruby
m104 has quit [Quit: bye]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
St_Marx has joined #ruby
m1lt0n_ has joined #ruby
lyanchih has quit [Client Quit]
freerobby1 has quit [Ping timeout: 244 seconds]
lyanchih has joined #ruby
CorySimmons has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 240 seconds]
jhass|off is now known as jhass
jph98 has joined #ruby
browndawg has joined #ruby
CorySimmons has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
marcgg has joined #ruby
Xeago has quit [Remote host closed the connection]
dkamioka has joined #ruby
klaut_ has joined #ruby
nhhagen has joined #ruby
dumdedum has joined #ruby
supermarin has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
sarmiena_ has joined #ruby
ankushio has joined #ruby
relix has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
senayar has quit [Remote host closed the connection]
Macaveli has joined #ruby
mlpinit has joined #ruby
senayar has joined #ruby
whomp has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
dkamioka has quit [Remote host closed the connection]
tanathos has joined #ruby
weie has joined #ruby
aagdbl has quit [Ping timeout: 264 seconds]
kate_r has joined #ruby
axsuul has joined #ruby
tanathos has quit [Client Quit]
invinceable has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 244 seconds]
jph98 has quit [Quit: jph98]
roolo has quit [Quit: Leaving...]
jprovazn has joined #ruby
drx_ has quit [Ping timeout: 240 seconds]
whowantstolivef1 is now known as whowantstolivefo
tonni has quit [Remote host closed the connection]
francisfish has joined #ruby
paolooo has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
francisfish has quit [Remote host closed the connection]
sk87 has joined #ruby
francisfish has joined #ruby
larsam has quit [Read error: Connection reset by peer]
Slavox is now known as Slavox|AFK
DouweM has quit [Ping timeout: 265 seconds]
ikaros has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
axsuul has quit [Ping timeout: 240 seconds]
ScalaClient has joined #ruby
Fridurmus has joined #ruby
Fridurmus has left #ruby [#ruby]
BeingUntoDeath has joined #ruby
amundj has quit [Read error: Connection reset by peer]
amundj has joined #ruby
razibog has joined #ruby
<BeingUntoDeath> need some help getting started on ruby! :) will somebody pm me who cares to?
<jhass> do not fear to ask your questions publicly
francisfish has quit [Ping timeout: 244 seconds]
Vivekananda has joined #ruby
yubrew has joined #ruby
drx_ has joined #ruby
yacks has joined #ruby
Slavox|AFK is now known as Slavox
andrewlio has joined #ruby
camilasan has joined #ruby
rubyduby has joined #ruby
Fridurmus has joined #ruby
<BeingUntoDeath> how do i make it wait for an input, some empty variable
<BeingUntoDeath> im using sublime
<rubyduby> can somebody explain me the "Symbol" in ruby.
<rubyduby> its very confusing concept.... and there is no good material that explains it clearly.
<BeingUntoDeath> symbol? i've seen that used in a distinct way, but i haven't gotten to that as a concept.
yubrew has quit [Ping timeout: 240 seconds]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bnagy> rubyduby: they're constant identifiers, used normally to save memory. It's for when you want an identifier to use in code
<bnagy> so there can be many copies of 'cat' in memory, but only ever one :cat
<BeingUntoDeath> what is the symbol then?
<BeingUntoDeath> sounds like... an object?
<bnagy> so we'd tend to lookup pet_hash[:cat] not pet_hash['cat']
<BeingUntoDeath> :O
shevy has joined #ruby
momigi has joined #ruby
<BeingUntoDeath> coding is trippy.
<BeingUntoDeath> i try and wrestle with these things as concepts... i usually get way ahead of myself in my design as i'm trying to learn...
<bnagy> rubyduby: make any sense yet?
<rubyduby> <bnagy> thanks bro, if they are constant identifiers, then if two object has same name like :cat in a hash, when used in keys like { :cat => "bark", :cat => "meow"}.. is this valid
Fridurmus has quit [Quit: leaving]
amritanshu__RnD has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
<bnagy> well no duplicate hash keys are ever possible, symbol string anything
<apeiros> rubyduby: a hash key can only occur once
<apeiros> rubyduby: whether two values are equal hash keys is determined by the use of a.eql?(b)
Fridurmus has joined #ruby
mlpinit has joined #ruby
<rubyduby> and does object occupy same space in memory, then how they can be differ like, is it built in ruby to differ these automatically
blackmesa has joined #ruby
<apeiros> rubyduby: one fact about :symbols - they are never garbage collected. that is, once you created one, it'll stay in the memory for as long as the program runs. for that reason you should not convert user input to symbols.
Umschwung has quit []
<apeiros> rubyduby: :foo differs from "foo" just the same ways as 12 differs from "12". not the same type of object.
<rubyduby> so when defining a function or class, should i use symbols or not, when they are used in programming?
<shevy> hmm
<apeiros> as bnagy already said - their main purpose is to identify things.
camilasa_ has joined #ruby
sparrovv has joined #ruby
<rubyduby> then variables also identify things like pointing to an object, why they are introduced in ruby...
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<apeiros> that's confusing things rubyduby
Slavox is now known as Slavox|AFK
<apeiros> a variable *references* an object
<apeiros> x = 12 # x references the integer 12
<jhass> BeingUntoDeath: start your scripts from the commandline, not from sublime
<apeiros> a symbol identifies (by its name) things
<apeiros> x = :hello # x references to the Symbol :hello
momigi has quit [Ping timeout: 240 seconds]
<apeiros> you use that identifier the same way you'd use a string.
<BeingUntoDeath> k so, how do i get it to wait for an input?
<apeiros> just that it's a bit more efficient.
<BeingUntoDeath> to fill a variable or whatever.
tonni has joined #ruby
<BeingUntoDeath> for a specific value with an if statement of something.
nvrch has joined #ruby
<BeingUntoDeath> is that get?
<jhass> you can read a string from standard input with gets http://rubydoc.info/stdlib/core/Kernel#gets-instance_method
camilasan has quit [Ping timeout: 252 seconds]
hiyosi has joined #ruby
<rubyduby> so :hello is just an identifier, it neither contain any values nor is a member of any class, does symbols have any specific class??
<BeingUntoDeath> thank you jhass. :)
<shevy> wow
<shevy> jhass how did you manage to have that link up so quickly?
<BeingUntoDeath> :D
<tobiasvl> >> :hello.class
<eval-in> tobiasvl => Symbol (https://eval.in/117005)
<tobiasvl> rubyduby: there's the class
<jhass> shevy: bookmark on http://rubydoc.info/stdlib/core/index -> Methods -> gets -> copy URL
sparrovv has quit [Remote host closed the connection]
leonidlm has joined #ruby
<apeiros> rubyduby: symbols are ordinary objects, like integers, strings, arrays
freerobby has joined #ruby
<apeiros> rubyduby: their only speciality is that a symbol with the same "string value" will always be the same object. and even that is not all that special - small integers do that too
<shevy> oha, bookmarks :D
<apeiros> >> [12.object_id, 12.object_id, "12".to_i.object_id]
<eval-in> apeiros => [25, 25, 25] (https://eval.in/117011)
axsuul has joined #ruby
NovapaX has joined #ruby
<apeiros> all instances of 12 are the same object
<apeiros> >> ["12".object_id, "12".object_id, "12".object_id]
<eval-in> apeiros => [552899160, 552899150, 552899140] (https://eval.in/117012)
<rubyduby> apeiros: thank you, i now get it, like symbols are just ordinary objects, they are single, they represent themself like integers and any other objects, and they are memory efficient, as they occupy same space in memory. no matter how many times you call them, am i right?
<apeiros> a new instance of a string is a new, different object
<apeiros> rubyduby: yes
<shevy> can you really say memory efficient when they are not garbage collected
<apeiros> >> [:foo.object_id, :foo.object_id, "foo".to_sym.object_id]
<eval-in> apeiros => [210888, 210888, 210888] (https://eval.in/117013)
<apeiros> same symbol - same object. no matter how it is created. just like an integer.
<apeiros> technically symbols *are* integers (with an attached string, so to speak)
hiyosi has quit [Ping timeout: 265 seconds]
Port3M5[Work] has quit [Remote host closed the connection]
arietis has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
rjk808 has joined #ruby
Merks has quit [Remote host closed the connection]
Merks has joined #ruby
Xeago has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
charliesome has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
Port3M5[Work] has joined #ruby
Merks has quit [Ping timeout: 244 seconds]
<rubyduby> well if i do x = 'me' and then x.object_id.. a location comes, but when i do y = x, and then y.object_id same location comes as of x.object_id... you said every instance of a string will occupy different space... is my example is right about it, if not then how can it be explained
weie has quit [Quit: Leaving...]
weie has joined #ruby
<rubyduby> i am using ruby version 1.93
Ziarkaen has joined #ruby
joonty has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<BeingUntoDeath> what is deprecation?
<The_NetZ> heh
<The_NetZ> BeingUntoDeath: I'm attempting to avoid deprication on windows, but no 2.1.1 available XD
<certainty> rubyduby: the expression y = x doesn't copy the object that x references, it just makes y point to the same object. It now references the same object that x references
<BeingUntoDeath> comp sci is metaphysics
obs has joined #ruby
elaptics`away is now known as elaptics
<certainty> it's like introducing another nam for the very same object
<certainty> name, even
xerxas has joined #ruby
fgo has quit [Remote host closed the connection]
<jhass> rubyduby: assignment doesn't copy, you're just giving the same object another reference to it
<jhass> whoops, missed certainty already answered
<The_NetZ> it happens, lol.
fgo has joined #ruby
kennym has joined #ruby
nfk has quit [Quit: yawn]
timonv has joined #ruby
vlad_starkov has joined #ruby
postmodern has quit [Quit: Leaving]
senayar_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
nfk has joined #ruby
timonv_ has joined #ruby
<BeingUntoDeath> what is code for awaiting an input before closing?
<BeingUntoDeath> is it gets?
<jhass> yes
<lxsameer> how can i capture repeating pattern of regex
<jhass> lxsameer: pseudo example?
<tobiasvl> lxsameer: /(pattern)*/ ?
shabgrd has joined #ruby
<lxsameer> jhass: {key1: value, k2: value2 ....}
shabgrd has quit [Changing host]
shabgrd has joined #ruby
<lxsameer> tobiasvl: how can i get all the matching then ?
<jhass> could as well be .scan /pattern/
supermarin has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 265 seconds]
<tobiasvl> jhass: yeah, depends what lxsameer means
NovapaX has joined #ruby
<jhass> lxsameer: that's a hash
<tobiasvl> lxsameer: what do you want?
jespada has joined #ruby
Kneferilis has quit [Quit: Leaving]
arietis has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Ping timeout: 240 seconds]
<lxsameer> tobiasvl: jhass suppose i have a hash like object which user entered, I want to split all the key/values using regex, i don't know how many key/value user entered
<tobiasvl> oooooh.
Shidash has quit [Ping timeout: 264 seconds]
<jhass> so that example is a string?
<lxsameer> jhass: yeah
mengu has quit [Remote host closed the connection]
<jhass> will it always be a valid ruby hash? or valid json perhaps?
foredoomed has joined #ruby
<lxsameer> jhass: no
<BeingUntoDeath> what are the simple rules for when something needs to be "ended"
<lxsameer> jhass: it will be like them but not exactly the same
camilasa_ has quit [Remote host closed the connection]
<BeingUntoDeath> im getting unexpected keyword_end
camilasan has joined #ruby
visof has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<jhass> lxsameer: something like input = input[1..-2] # get rid of the { }; parsed = Hash[input.split(',').map {|pair| pair.strip.split(':').map(&:strip) }] should do then, no?
camilasan has joined #ruby
<jhass> or do you have to handle escaped separation characters?
chrisseaton has quit []
camilasan has quit [Read error: Connection reset by peer]
<tobiasvl> BeingUntoDeath: simple rules? not sure what you mean, but if, classes, methods and blocks need to be closed with end (and more, but those are the likely culprits without seeing your code=
<lxsameer> jhass: let me try that
fgo has quit [Remote host closed the connection]
camilasan has joined #ruby
bluenemo has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
e4xit has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
foredoomed has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
jamto11 has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<BeingUntoDeath> when i try to open my .rb file through cmd.exe.. command prompt just sits there...
<certainty> dunno if that's 100% accurate but my guess is that you have to 'end' every lexical context that you started (probably with the exception of blocks with the {} syntax)
camilasa_ has quit [Read error: Connection reset by peer]
Merks has joined #ruby
<jhass> BeingUntoDeath: enter something and press enter, that's probably your gets
<certainty> gets gets in the way XD
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
camilasan has joined #ruby
heftig has joined #ruby
monkegjinni has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
e4xit has quit [Ping timeout: 240 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
foredoomed has joined #ruby
banister has joined #ruby
camilasan has joined #ruby
lyanchih has quit [Quit: lyanchih]
dkamioka_ has joined #ruby
francisfish has joined #ruby
<shevy> BeingUntoDeath show code on pastie.org !
camilasan has quit [Read error: Connection reset by peer]
monkegjinni has quit [Ping timeout: 264 seconds]
drumusician has joined #ruby
<BeingUntoDeath> finally making some sort of progress. :P
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
TMM has joined #ruby
deadlock_ has joined #ruby
deadlock has quit [Ping timeout: 265 seconds]
<BeingUntoDeath> whats the code for timer?
<tobiasvl> BeingUntoDeath: what is "timer"?
<BeingUntoDeath> telling it to wait x seconds
<BeingUntoDeath> or whatever.
<BeingUntoDeath> nice, you rock Jhass. Thank you.
deadlock_ has quit [Max SendQ exceeded]
<shevy> a timer
<shevy> where did he get those words
deadlock_ has joined #ruby
<BeingUntoDeath> c#?
<BeingUntoDeath> okay so...
deadlock_ has quit [Max SendQ exceeded]
foredoomed has quit [Ping timeout: 240 seconds]
<BeingUntoDeath> what is a singleton method?
<BeingUntoDeath> its like an instance of the object?
deadlock_ has joined #ruby
<jhass> a method defined on the objects singleton class, that is a class that's unique to every object. Since classes are objects, that's how class methods work in ruby
<tobiasvl> yes, it's a method that only exists in one instance of a class
deadlock_ has quit [Max SendQ exceeded]
deadlock_ has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
deadlock_ has quit [Max SendQ exceeded]
deadlock_ has joined #ruby
sk87 has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
amritanshu__RnD has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka_ has joined #ruby
Ziarkaen has quit [Ping timeout: 240 seconds]
Kneferilis has joined #ruby
art-solopov has joined #ruby
momigi has joined #ruby
timonv_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
Jetchisel has joined #ruby
rdark has joined #ruby
lolmaus has quit [Read error: Operation timed out]
ehaliewicz has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
ehaliewicz has joined #ruby
oneawayman has joined #ruby
nari has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
lolmaus has joined #ruby
Ziarkaen has joined #ruby
DaniG2k has joined #ruby
thomasxie has left #ruby [#ruby]
freerobby has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
anarang has joined #ruby
momigi has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 252 seconds]
lw has joined #ruby
lyanchih has quit [Quit: lyanchih]
hiyosi has quit [Ping timeout: 240 seconds]
rococo has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
AlSquire has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
My_Hearing has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 240 seconds]
amritanshu__RnD has quit [Quit: Leaving]
ahawkins has joined #ruby
lyanchih has joined #ruby
mlpinit has quit [Remote host closed the connection]
workmad3 has joined #ruby
mlpinit has joined #ruby
CorySimmons has joined #ruby
professor_soap has joined #ruby
Fridurmus has quit [Ping timeout: 240 seconds]
rails426 has joined #ruby
<BeingUntoDeath> so is ++ an operator in ruby?
<Xeago> BeingUntoDeath: in most cases ++ is a syntax error
lw has quit [Quit: s]
mlpinit_ has joined #ruby
<Xeago> I haven't ever seen ++ in working ruby code
<BeingUntoDeath> its c#
<BeingUntoDeath> it adds to a variable
zeeraw has joined #ruby
<BeingUntoDeath> and int value i guess
<professor_soap> Hey, I have a strange problem that is a bit of a pain in the ass when it comes to collaboration. In my Gemfile, I can't point a gem to a specific git address like this: " gem 'some_gem', git: 'git@github.com:user/some_gem.git' ", BUT I can specify it with an http address like this: " gem 'some_gem', git: 'https://github.com/user/some_gem.git' "
<gr33n7007h> ++ is eqivilent to x+=1
<jxport> user.qualifies_for_free_sandwich? # I feel that this violates Single Responsibility Principle. How should this be structured?
<professor_soap> Any ideas? :/
CorySimmons has quit [Ping timeout: 240 seconds]
<jxport> FreeSandwichQualifier.check(user) # Separates free sandwich qualification logic from user logic. Is this the most idiomatic Ruby possible?
<professor_soap> I have to change my file all the time and every one else seem to be able to spcify the git address
dkamioka_ has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.3]
dkamioka has joined #ruby
<jxport> I find this channel's low level of activity a little odd considering Ruby's community!
sk87 has joined #ruby
<BeingUntoDeath> me too.
krz has joined #ruby
<tobiasvl> this channel is pretty active imho
michael_lee has joined #ruby
kitak_ has joined #ruby
<jxport> tobiasvl: #perl is more active, and well, just compare the communities..
aagdbl has quit [Ping timeout: 244 seconds]
dapz has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
<tobiasvl> we're kind of fragmented though
<BeingUntoDeath> any ideas why it wont print after correct if statement value is "gotten"
<tobiasvl> #ruby-lang and #RubyOnRails
<tobiasvl> BeingUntoDeath: impossible to say without seeing the code
<msch> jxport what's the logic behind determining if the user qualifie for a free sandwhich?
<BeingUntoDeath> if ( var1 == "hello?" )
<BeingUntoDeath> print "yes"
<BeingUntoDeath> end
aagdbl has joined #ruby
<tobiasvl> okay… and what is var1?
<BeingUntoDeath> and var1 = gets.to_s before that
sensen has quit [Ping timeout: 264 seconds]
<tobiasvl> yes, but what IS var1?
<tobiasvl> i'm guessing var1 == "hello?\n"
<BeingUntoDeath> oh... wow.
<BeingUntoDeath> thank you.
<jxport> msch: good question. This is only an abstract example. But, say - it checks to see if user.id exists in the free sandwich DB.
supermarin has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
Squarepy has joined #ruby
<tobiasvl> BeingUntoDeath: when you're wondering why an if test involving a comparison isn't working, just print the variables involved in the comparison
<BeingUntoDeath> awesome...
<msch> BeingUntoDeath or open a REPL there and try it out: http://pryrepl.org/
<msch> BeingUntoDeath via binding.pry
jaxxstorm has joined #ruby
alexju has quit [Remote host closed the connection]
<msch> jxport sounds like something that does belong in the user object to me. ruby isn't like java where you have to put all the code for a class in a single .java file so I'm not seeing how the SRP here doesn't apply. the user should know if it qualifies if the qualification logic is that simple
<BeingUntoDeath> i finally get -n
<BeingUntoDeath> ding
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
<Cork> anyone know of a d3des lib that works in ruby 2.1?
ankushio has quit [Quit: Leaving...]
<Cork> been using this one back in 1.8, but it fails quite badly in 2.1 https://code.google.com/p/ruby-vnc/source/browse/lib/cipher/des.rb
dkamioka has quit [Remote host closed the connection]
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlpinit_ has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
<msch> Cork what's wrong with openssl?
timonv has joined #ruby
<Cork> msch: can it do d3des (in a vnc compatible way)?
hamed_r has joined #ruby
BeingUntoDeath has quit []
dkamioka has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
BeingUntoDeath has joined #ruby
<vlad_starkov> Question (cross-post): I'm testing requests with Rack::Test. Is it possible to get explicit header value?
mlpinit has joined #ruby
<msch> Cork ah d3des is different from des3?
<Cork> ya
<msch> Cork: ah ok, then i've got no idea sorry
aagdbl1 is now known as aagdbl
<Cork> msch: it is a sucky cipher look a like junk encoding
<Cork> but... as it is in the spec not much you can do about it...
rococo has joined #ruby
<BeingUntoDeath> i don't get -n... how do you escape referencing the \n of a gets method
<rubyduby> how "return" works.... ruby always returns something, like result of an expression, i heard ruby handle everything as an expression, is that so... kindly explain it!!
sensen has joined #ruby
<shevy> BeingUntoDeath use .chomp - remember that you deal with a string, you can apply string operations
vlad_starkov has quit [Remote host closed the connection]
tvw has joined #ruby
<BeingUntoDeath> right. thank you.
<BeingUntoDeath> is that the same thing as ruby storing everything as an object?
aagdbl has quit [Quit: Leaving.]
<shevy> you can use Readline module too on linux at least, gives you cursor keys
<shevy> well, the different classes all have defined methods you can invoke
<shevy> array has .size, string has .size, hash has .size
<BeingUntoDeath> so... gets.to_s.chomp
yacks has joined #ruby
<shevy> yeah
<BeingUntoDeath> wow.
<shevy> if you don't like the "\n" there
<BeingUntoDeath> this has taken me all night...
<BeingUntoDeath> lol
yubrew has joined #ruby
<shevy> there is also getc or getchar... hmm, to get just one char
<BeingUntoDeath> ahhh, thank you.
<rubyduby> kindly explain "return" please.................
aaronmcadam has joined #ruby
<shevy> or perhaps not ... I can't find it :(
pothibo has joined #ruby
oneawayman has quit [Read error: Operation timed out]
<shevy> ncurses has it though ... Ncurses.getch
<BeingUntoDeath> so a string can only be referenced like a string yes?
<shevy> well even '' is a string
<shevy> x = ''
<shevy> it has an object id
<BeingUntoDeath> ahh.
<shevy> >> x = ''; x.object_id
<eval-in> shevy => 543339130 (https://eval.in/117110)
<shevy> rubyduby you use return in a method usually
aagdbl has joined #ruby
<shevy> rubyduby you could use it to return early
<shevy> def foo; return false if @game_over; return true; end
<rubyduby> ok... so why puts return nil
<rubyduby> i dont get it
<shevy> ruby allows you to omit return as the last statement is returned always
<shevy> so the above could be rewritten like this:
<shevy> def foo; return false if @game_over; true; end
<shevy> puts does not return nil
<shevy> well
dp_011 has joined #ruby
<shevy> it actually does :D
phansch has quit [Quit: WeeChat 0.4.2]
<shevy> >> x = puts; x.class
<eval-in> shevy => ... (https://eval.in/117112)
<shevy> hmmmm
<shevy> >> x = puts; p x.class
<eval-in> shevy => ... (https://eval.in/117113)
<shevy> hmmmmmmm
anarang has joined #ruby
dkamioka has quit [Remote host closed the connection]
<shevy> ok
<shevy> irb was fooling me
<shevy> rubyduby puts does not return nil
nari has joined #ruby
<BeingUntoDeath> what would happen after that, with a true return value for game_over
<rubyduby> so wht irb shows nil, is he mad ;)
<BeingUntoDeath> and what is @
<workmad3> shevy: yeah it does
yubrew has quit [Ping timeout: 264 seconds]
<shevy> workmad3 why is x not nil in the example above?
<workmad3> >> x = puts "foo"; x.class
<eval-in> workmad3 => foo ... (https://eval.in/117114)
dkamioka has joined #ruby
<shevy> BeingUntoDeath @ is in instance variable, you use this a lot in a class
<workmad3> shevy: it did
<workmad3> shevy: or rather, it is ;)
<shevy> workmad3 why is this not the same:
<shevy> >> x = nil; p x.class
<eval-in> shevy => NilClass ... (https://eval.in/117115)
grx has joined #ruby
<shevy> >> x = puts; p x.class
<eval-in> shevy => ... (https://eval.in/117116)
krz has quit [Quit: WeeChat 0.4.3]
<workmad3> shevy: multi-line output
<workmad3> shevy: follow the link ;)
<shevy> I hate this bot
<workmad3> heh
<shevy> >> quit
<eval-in> shevy => undefined local variable or method `quit' for main:Object (NameError) ... (https://eval.in/117117)
fgo has joined #ruby
<workmad3> rubyduby: so yes, 'puts' returns 'nil' after outputting the passed string(s) to stdout
<shevy> rubyduby there you go!
krz has joined #ruby
Zunonia_ has quit [Quit: Computer has gone to sleep.]
<workmad3> rubyduby: as for why? I'm not sure tbh...
Speed has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rails426 has quit []
sski has joined #ruby
drumusician has quit [Remote host closed the connection]
drumusician has joined #ruby
<shevy> it probably has to return something
rails426 has joined #ruby
kalleth_ is now known as kalleth
<BeingUntoDeath> what is the code to make it go back to before an if statement or something?
<BeingUntoDeath> i forget what it is in c#
<BeingUntoDeath> like...continue or something?
<shevy> in which context
<rubyduby> well thanks... its confusing though but it has to be accepted as it is :)
<shevy> you could use "next" if you are loop {} ing for instance
<BeingUntoDeath> what about just if-ing
<BeingUntoDeath> next after end?
<shevy> huh
<shevy> how should that be doable :)
<shevy> if foo
<shevy> do_this
<shevy> else
<shevy> end
<shevy> end
<BeingUntoDeath> what's foo?
<shevy> how do you want to jump to before if foo without a loop?
<shevy> a variable
<shevy> foo = false
<shevy> in this context :D
<BeingUntoDeath> oh. k.
professor_soap has quit []
<BeingUntoDeath> gotcha, thanks. convention? lol.
<shevy> and the first end should have been something else
<shevy> do_that # not end
philcrissman has joined #ruby
dkamioka has quit [Remote host closed the connection]
<BeingUntoDeath> else end end...
<BeingUntoDeath> what does that do?
<shevy> no, that should have been do_that
<BeingUntoDeath> :O
<BeingUntoDeath> :P
<shevy> I was typing ahead the end
<BeingUntoDeath> i also don't get Fixnum.
sparrovv has joined #ruby
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> what is a Fixnum
<BeingUntoDeath> gets.to_i
<shevy> that is a fixnum?
<BeingUntoDeath> the int will be x.fixnum
<shevy> >> "\n".to_i
<eval-in> shevy => 0 (https://eval.in/117118)
<shevy> newlines are 0!!!
<BeingUntoDeath> ?
<workmad3> shevy: no, strings that cannot be parsed as numbers are 0 ;)
<workmad3> >> "arrrrrrrrrr".to_i
<eval-in> workmad3 => 0 (https://eval.in/117119)
<BeingUntoDeath> "\n".to_i?
<BeingUntoDeath> ahhhh.
<BeingUntoDeath> wow.
<BeingUntoDeath> is that how that's always done?
tils` is now known as tils
<shevy> well
<workmad3> and a Fixnum is really an optimisation... it's used for Integers that fit into the range of values that can be represented as value objects
<shevy> how else do you want to do it?
<shevy> BeingUntoDeath, what should "1".to_i return
banister has joined #ruby
<workmad3> BeingUntoDeath: yes... .to_i gives '0' if it can't parse a number, Integer("fooo") throws an error if it can't parse a number
<BeingUntoDeath> lol!
<BeingUntoDeath> okay.
<workmad3> >> Integer("I am not a number!")
<eval-in> workmad3 => invalid value for Integer(): "I am not a number!" (ArgumentError) ... (https://eval.in/117120)
<BeingUntoDeath> lol...
philcrissman has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.3]
RedKnee has joined #ruby
RedKnee has left #ruby [#ruby]
krz has joined #ruby
nhhagen has joined #ruby
drumusician has quit [Read error: Connection reset by peer]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
drumusician has joined #ruby
lolmaus has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
Fyyr13_ has joined #ruby
<certainty> rubyduby: a possible explanation for puts returning nil is that its sole task is to perform some side-effect, outputting the string, it doesn't compute anything so returning nil is perfectly fine
dkamioka has joined #ruby
<shevy> it should return 42
<workmad3> certainty: that was one answer that flashed through my head... I also came up with the idea that it's unclear if 'puts' should return the argument or the output stream...
shabgrd has quit [Ping timeout: 265 seconds]
<workmad3> so it returns nil
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> shevy: everything should return 42... always
momigi has joined #ruby
hermanmunster has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 264 seconds]
hermanmunster has joined #ruby
hiyosi has joined #ruby
sski has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
sdouglas has joined #ruby
vlad_starkov has joined #ruby
freerobby has joined #ruby
shaunbaker has joined #ruby
<certainty> workmad3: returning the outputstream would be handy to chain calls (putting aside the smells that might result from it), but it would be ok I think, since it 'mutated' the stream and returns that very stream
dj_corncob has joined #ruby
mojjojo has quit [Quit: mojjojo]
<certainty> workmad3: returning the string would surprise me, but it's not so uncommon. Some c io primitives that write data somewhere return the amount of bytes that have actually handed over successfully
drumusician has quit [Ping timeout: 240 seconds]
<certainty> +been
<certainty> bbl
mattmcclure has quit [Quit: Connection closed for inactivity]
hermanmunster has quit [Ping timeout: 240 seconds]
felixjet__ has joined #ruby
mostlybadfly has joined #ruby
einarj_ has joined #ruby
mvangala_ has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 240 seconds]
weeeems has joined #ruby
<BeingUntoDeath> whats the code for skipping code...
einarj has quit [Read error: Connection reset by peer]
mvangala has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 264 seconds]
crodas has quit [Quit: Disconnecting from stoned server.]
matled has quit [Remote host closed the connection]
matled- has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
rodasc has joined #ruby
matled- is now known as matled
TheLarkInn has joined #ruby
<tobiasvl> BeingUntoDeath: what do you mean?
<BeingUntoDeath> skipping ruby reading lines until a certain line...
<BeingUntoDeath> ?
momigi has quit [Ping timeout: 240 seconds]
dkamioka has quit [Remote host closed the connection]
<The_NetZ> he means large block comments
<tobiasvl> what's "a certain line"?
<The_NetZ> =begin
vlad_starkov has quit [Ping timeout: 265 seconds]
<The_NetZ> stuff
<The_NetZ> =end
<tobiasvl> ah yes
ndrei has joined #ruby
<The_NetZ> I think, is that it?
<shevy> that is most definitely a super certain line
TheLarkInn1 has quit [Ping timeout: 264 seconds]
felixjet_ has quit [Ping timeout: 264 seconds]
<shevy> it has never been more certain before for sure
<BeingUntoDeath> yes!!!!
<BeingUntoDeath> thanks.
<BeingUntoDeath> what is the math. for pi?
<shevy> BeingUntoDeath sooner or later you will use # only :)
weems has quit [Ping timeout: 264 seconds]
<shevy> Math::PI
<The_NetZ> no prob, its a good thing I still speak fluent n00b :P
<BeingUntoDeath> what do you mean shevy?
<shevy> The_NetZ lol
<BeingUntoDeath> thanks.
<shevy> BeingUntoDeath I don't think many use =begin =end
<BeingUntoDeath> yeah. no really, thanks. :D
<BeingUntoDeath> lol.
<shevy> if I have to uncomment something, I either use #, or something like: if false
<BeingUntoDeath> i see!
tgkokk has joined #ruby
<tobiasvl> BeingUntoDeath: you could probably benefit from reading http://www.catb.org/esr/faqs/smart-questions.html ;)
<BeingUntoDeath> ...wow.
vlad_starkov has joined #ruby
<BeingUntoDeath> yep. :)
Squarepy has quit [Quit: Leaving]
kennym has quit [Quit: Leaving.]
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby
banister has joined #ruby
mehlah has quit [Quit: Leaving...]
yeticry has quit [Quit: leaving]
blackmesa has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ahawkins_ has joined #ruby
<dj_corncob> Hi all, im trying to implement a hash table in ruby for fun, but I'm having some issues with my 'add' method that adds an element to the table. http://pastebin.com/fpybLi3J . Theres a commented out implementation that shows ideally how I would like it to work, but its not.
Evergrace has joined #ruby
Speed has joined #ruby
BeingUntoDeath has quit [Ping timeout: 265 seconds]
ehaliewicz has quit [Read error: No route to host]
mikecmpbll has joined #ruby
perlsyntax has joined #ruby
banister has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
<art-solopov> dj_corncob: I think, the problem is within lines 46-48. You assign the new variable to list, but not to self[get_slot(k)].
<apeiros> rubyduby: did somebody answer your question?
<apeiros> rubyduby: in case not: x = "hi"; y = x # <-- x references an object, y references the same object, no new object was created, hence same object id
supermarin has joined #ruby
<apeiros> objects are only copied when you explicitly tell ruby to do so
sparrovv has quit [Remote host closed the connection]
* apeiros off for lunch
banister has joined #ruby
<dj_corncob> So how else would you do that? I don't want to run the search twice.
supermar_ has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
ndrei has quit [Read error: Operation timed out]
<art-solopov> dj_corncob: I'd save the get_slot(k) result in a variable (let's name it slot), and then in line 48 I'd write self[slot] = KeyedDoublyLinkedList.new( ListElement.new(k, v) )
yubrew has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
banister has quit [Read error: Connection reset by peer]
<workmad3> art-solopov: you mean like in the working implementation? :)
<art-solopov> workmad3: Oh, sorry, didn't notice it.
dkamioka has joined #ruby
<art-solopov> But yeah, what's the problem with it?
supermar_ has quit [Ping timeout: 244 seconds]
anarang has quit [Ping timeout: 240 seconds]
away_ has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
zeeraw has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
Vivekananda has quit [Read error: Connection reset by peer]
<dj_corncob> its not necessarily those lines, its more lines 50-55, where im searching for a node twice and updating it
zeeraw has quit [Client Quit]
<dj_corncob> i think I need an update key method in my list class to update a particular key
zeeraw has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<workmad3> dj_corncob: line 52 of the commented-out section is wrong
vlad_starkov has joined #ruby
lolmaus has joined #ruby
<workmad3> dj_corncob: that line should stay 'self[i].push( ListElement.new(k, v) )'
dkamioka has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
Vivekananda has joined #ruby
<workmad3> dj_corncob: in your commented out section at the moment, you store the result of the search (good) but then when you discover it's nil (so nothing is found) you then try to push a new ListElement onto nil, rather than onto the list you were searching ;)
jamto11 has joined #ruby
mojjojo has joined #ruby
tolstoi has quit [Quit: Leaving]
camilasa_ has quit [Remote host closed the connection]
banister has joined #ruby
camilasan has joined #ruby
omegahm has quit [Ping timeout: 245 seconds]
yasushi has joined #ruby
camilasa_ has joined #ruby
<dj_corncob> yeah thats not right at all, thanks
camilasa_ has quit [Read error: Connection reset by peer]
robert___ has joined #ruby
robert___ has joined #ruby
NovapaX has joined #ruby
camilasa_ has joined #ruby
koderok has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
Speed has quit [Ping timeout: 264 seconds]
phansch has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
mojjojo has quit [Client Quit]
camilasa_ has joined #ruby
monsieurp has joined #ruby
robert_ has quit [Ping timeout: 252 seconds]
camilas__ has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
yasushi has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 264 seconds]
iceden has quit [Read error: Operation timed out]
camilas__ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
iceden has joined #ruby
anarang has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
foredoomed has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
My_Hearing is now known as Mon_Ouie
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
ahawkins has quit [Ping timeout: 252 seconds]
mojjojo has quit [Client Quit]
camilasa_ has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
tkuchiki has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
foredoomed has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pfg has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaileshg has joined #ruby
pfg has quit [Client Quit]
<dj_corncob> I ended up having to add an update method to my list class, thanks all
mojjojo has joined #ruby
yalue has joined #ruby
alexherbo2 has joined #ruby
kaliya has joined #ruby
northfurr has quit [Ping timeout: 244 seconds]
shaunbaker has joined #ruby
omegahm has joined #ruby
kennym has joined #ruby
mojjojo has quit [Client Quit]
browndawg has quit [Ping timeout: 240 seconds]
nvrch has quit [Quit: nvrch]
randomnick_ has joined #ruby
freerobby has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
dagon666 has joined #ruby
vlad_sta_ has joined #ruby
away_ has joined #ruby
sensen has quit [Quit: leaving]
momigi has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
mehlah has joined #ruby
freerobby has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
garbagecollectio has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
marcgg_ has joined #ruby
koderok has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
art-solopov has quit [Quit: Konversation terminated!]
rails426 has quit [Ping timeout: 240 seconds]
marcgg has quit [Ping timeout: 252 seconds]
DouweM has joined #ruby
rubyduby has quit [Quit: Page closed]
momigi has quit [Ping timeout: 244 seconds]
rjk808 has quit []
andrewlio has quit [Remote host closed the connection]
vt102 has joined #ruby
andrewlio has joined #ruby
foredoomed has joined #ruby
andrewlio has quit [Remote host closed the connection]
foredoomed has quit [Remote host closed the connection]
andrewlio has joined #ruby
pagioss is now known as pagios
yubrew has joined #ruby
Evergrace has quit [Ping timeout: 244 seconds]
mourest has joined #ruby
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
banister has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
supermarin has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
lyanchih has quit [Ping timeout: 240 seconds]
oneawayman has joined #ruby
kitak_ has quit [Remote host closed the connection]
ocx has joined #ruby
S0da has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
<ocx> hi all, i have a linuxheadless system that i would like to authenticate to hotspots, for that i was thinking of developping a webinterface on ruby to run on the headless, user from a pc would access this page press on authenticate hotspot, at this time a request would be send from the headless into hotspot, result would be returned to ruby interface and shown to the user, user enter user/pass and resends now headless is authenticated to h
vlad_starkov has joined #ruby
<ocx> can anyone guide me where should i start? all in all i need the user to authenticate the headless to the hotspot
supermarin has quit [Ping timeout: 265 seconds]
craigp_ has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
shevy has quit [Ping timeout: 240 seconds]
parduse has quit [Ping timeout: 240 seconds]
craigp has quit [Ping timeout: 252 seconds]
fridim_ has joined #ruby
razibog has quit [Ping timeout: 244 seconds]
shevy has joined #ruby
popl has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
yacks has joined #ruby
randomnick_ has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Ping timeout: 264 seconds]
razibog has joined #ruby
paulfm has joined #ruby
NicholasFlamel has quit [Quit: Textual IRC Client: www.textualapp.com]
claymore has quit [Quit: Leaving]
tgkokk has joined #ruby
Mon_Ouie has quit [Ping timeout: 265 seconds]
senayar_ has quit [Remote host closed the connection]
monsieurp has quit [Quit: Lost terminal]
<dp_011> Hi, I try to push an app to heroku but I don't get any errors. I get when visiting the site "The page you were looking for doesn't exist.". I use the pg database and had do this: heroku pg:reset DATABASE than insert the app-name than heroku run rake db:migrate
razibog has quit [Ping timeout: 264 seconds]
james_d_h has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
mavcunha has joined #ruby
maroloccio2 has joined #ruby
oneawayman has quit [Read error: Connection reset by peer]
maroloccio has quit [Ping timeout: 240 seconds]
<perlsyntax> Does ruby come with gui?
ndrei has joined #ruby
<The_NetZ> ocx: would it not be simpler to just use the wireless config on the server
oneawayman has joined #ruby
<The_NetZ> perlsyntax: not really.
<DouweM> perlsyntax: what exactly are you looking for?
Thanatermesis has joined #ruby
<ocx> The_NetZ: what do you mean
mforrester has joined #ruby
<perlsyntax> i thought it came with it.
<The_NetZ> there are bindings for stuff, and you can use swing from jruby
<perlsyntax> thanks
<DouweM> perlsyntax: there's no de facto GUI library, no
<The_NetZ> ocx: as in, iw and such.
<perlsyntax> i see
<workmad3> perlsyntax: there's tk bindings with the stdlib... but not many people want to use that :)
UserNameInvalid has quit [Quit: Leaving]
mark_locklear has joined #ruby
<The_NetZ> workmad3: as in, fltk?
<DouweM> workmad3: ha, I had no idea
YamakasY has joined #ruby
<perlsyntax> i just been doing some seach on ruby that all.
<workmad3> The_NetZ: as in tcl/tk, I believe
<perlsyntax> can't wait to get my ruby book.
<The_NetZ> perlsyntax: which book?
<perlsyntax> rubyist
<The_NetZ> ah
<perlsyntax> i hope it good book.
<perlsyntax> :)
<workmad3> DouweM: not that surprising... who the hell uses tcl/tk by choice nowadays? :D
fridim_ has quit [Ping timeout: 240 seconds]
<perlsyntax> i got ruby 2.0 on my macbook pro
dapz has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> perlsyntax: as in 'The Well Grounded Rubyist'?
<perlsyntax> yes that it
<perlsyntax> silly me
dblessing has joined #ruby
glosoli has joined #ruby
<perlsyntax> workmad3,You read my mind:)
<workmad3> perlsyntax: couldn't think of any other ruby books with the word 'rubyist' in them other that TWGR :)
chrisseaton has joined #ruby
<perlsyntax> i see
<workmad3> perlsyntax: but I don't know every ruby book, so thought I'd double-check...
<perlsyntax> that no prob
<perlsyntax> i think it big book not sure.
<workmad3> perlsyntax: there's a MEAP of the second edition that's being updated for ruby 2 now... but the first edition covers 1.9, so should be ok :)
<perlsyntax> i get a book from my lib on ruby 2.0
kaspergrubbe has joined #ruby
<perlsyntax> :)
<workmad3> 1.9 to 2.0 isn't that big a change for newcomers tbh :)
<perlsyntax> that good to know.
Evergrace has joined #ruby
aagdbl has quit [Quit: Leaving.]
<perlsyntax> The other book i get is on 1.9 and 2.0 if i am right.
<perlsyntax> can't wait to work on some projects.
pu22l3r has joined #ruby
<perlsyntax> workmad3,I try to get use to my mac osx comeing from linux.
kaldrenon has joined #ruby
dj_corncob has quit [Remote host closed the connection]
patrice has joined #ruby
patrice has quit [Client Quit]
<workmad3> perlsyntax: you could just start playing with ruby now... fire up IRB and play around a bit, find a web tutorial :)
tyranja is now known as tyranjoff
freerobby has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
monsieurp has joined #ruby
hiyosi has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<rdark> 2.0 was more like 1.10 IMHO
agjacome has joined #ruby
sailias has joined #ruby
Speed has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
rmorello has joined #ruby
senayar_ has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
stringoO has joined #ruby
Evergrace has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
axsuul has quit [Max SendQ exceeded]
marcgg_ has quit [Read error: Connection reset by peer]
<DouweM> rdark: it wasn't meant to be a 2.0 in semver terms, they're only now starting to use semver
marcgg has joined #ruby
<DouweM> go away away_
danshultz has joined #ruby
northfurr has joined #ruby
northfurr has quit [Changing host]
northfurr has joined #ruby
mjs2600 has joined #ruby
senayar_ has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
alexju has joined #ruby
momigi has joined #ruby
<perlsyntax> i got way_ he been bug me to.
senayar has joined #ruby
<perlsyntax> DouweM,Good idea
supermarin has joined #ruby
hiyosi has joined #ruby
duggiefresh has joined #ruby
grayWolf has joined #ruby
tjr9898 has quit [Remote host closed the connection]
e4xit has joined #ruby
benzrf has joined #ruby
<benzrf> hey is anybody here good w/ celluloid?
nvrch has joined #ruby
yubrew has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
thesheff17_ has joined #ruby
browndawg has joined #ruby
duggiefresh has quit [Ping timeout: 252 seconds]
rudisimo has joined #ruby
momigi has quit [Ping timeout: 240 seconds]
Evergrace has joined #ruby
Salve has joined #ruby
ahawkins_ is now known as ahawkins
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has joined #ruby
havenwood has joined #ruby
Salve_ has joined #ruby
charliesome has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
<pothibo> I have a sort of blank, how would you return the multiple of an integer ie: multiple of 3600 as if 900 returns 0, 3600 returns 3600, 5000 returns 3600 and 7200 would return 7200. I'm thinking of using (value % 3600) * 3600 but I'm wondering if ruby has any constructs for this
<pothibo> I meant (value / 3600) * 3600
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
geekbri has joined #ruby
<benzrf> pothibo: sounds like u want modulo
<benzrf> oh wait
<pothibo> benzrf ;)
<pothibo> want multiple, not reminder
phansch has quit [Quit: WeeChat 0.4.2]
CorySimmons has joined #ruby
<benzrf> im confused, i do not follow what u want o_o
grayWolf is now known as Speed
phansch has joined #ruby
phansch has quit [Client Quit]
jimmyy has joined #ruby
freerobby has joined #ruby
phansch has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
<apeiros> pothibo: by "multiple of an integer", you mean "the closest multiple of an integer"?
linojon has joined #ruby
<pothibo> I have a duration in second and I'm trying to split that duration in hours and minutes independently. so duration.hours would return the number of hours, in seconds, and duration.minutes would return the minutes in second. So if I have a duration of 1hour 15 minutes, it would return hour = 3600 and minutes = 900
<pothibo> apeiros yes, sorry, my mistake
<apeiros> if so, with what bias? up/down? (e.g. with multiple of 3600, to what would 1800 round, to 0 or 3600?)
<apeiros> and yes, your calculation is already almost what you need
tgkokk has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 252 seconds]
<apeiros> num.fdiv(3600).round * 3600
<pothibo> apeiros ceiled, always
<pothibo> ok
<apeiros> in that case, s/round/ceil/
Sawbones has joined #ruby
parduse has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<pothibo> is their a notable difference between your solution and ( num / 3600 ) * 3600 ? besides the object oriented approach vs scalar one
<shevy> it's swiss approved
<pothibo> lol
<benzrf> >> 3.fdiv 2
<eval-in> benzrf => 1.5 (https://eval.in/117224)
<benzrf> o:
<benzrf> i c
<jhass> pothibo: you could also do a classic divmod to get the individual parts, store that and just def hours @hours*3600 end etc
<workmad3> >> 3.fdiv(2).round
<eval-in> workmad3 => 2 (https://eval.in/117225)
Merks has quit []
<workmad3> >> 3 / 2
<eval-in> workmad3 => 1 (https://eval.in/117227)
<workmad3> pothibo: there's your difference ;)
jetblack has joined #ruby
senayar has quit [Remote host closed the connection]
<apeiros> pothibo: num/3600 is integer division if num is an integer. and as workmad3 showed, that will not get you the result you desire.
<pothibo> workmad3 ;) I guess I wasn't clear but I was wondering if there was actual speed gain by using the former (Even though I doubt it since it uses float to int conversions)
Speed has left #ruby ["WeeChat 0.4.3"]
senayar has joined #ruby
yeticry has joined #ruby
<apeiros> pothibo: you're mistaken. it uses no conversion at all.
<apeiros> hence the difference.
<apeiros> hence why you probably don't want it.
<pothibo> I'm lost
<benzrf> >> 10.divmod 35
<eval-in> benzrf => [0, 10] (https://eval.in/117231)
<benzrf> o:
<apeiros> >> 5/2
<eval-in> apeiros => 2 (https://eval.in/117233)
<apeiros> 5 / 2 does NOT result in 2.5
<apeiros> it results in 2. integer division.
mary5030 has joined #ruby
<pothibo> jhass I belive you nailed it. Didn't know about divmod
<pothibo> apeiros ok, then I think we are saying the same thing
<apeiros> I haven't read "I have a duration in second and I'm trying to split that duration in hours and minutes independently." until now
<apeiros> that indeed calls for divmod
<pothibo> I was saying fdiv was doing conversions. not int / int.
<pothibo> yay!
<apeiros> yes, fdiv is always float division
<apeiros> and quo would be rational
<apeiros> >> 1.quo(3)
pabloh has joined #ruby
<eval-in> apeiros => (1/3) (https://eval.in/117235)
<apeiros> infinite precision for rationals.
IceDragon has joined #ruby
S0da has joined #ruby
Jetchisel has joined #ruby
<benzrf> hooray for rationals
* benzrf cheers
<benzrf> ugh away_ is spamming me
<benzrf> idoru: helpa
<benzrf> *help
<workmad3> apeiros: it's not exactly infinite precision... it's just an exact representation ;)
momomomomo has joined #ruby
<benzrf> workmad3: same thing innit
<jhass> benzrf: add a report in #freenode, it affects many people, maybe staff is listening today
tkuchiki has joined #ruby
jimmyy has quit []
omegahm has quit [Ping timeout: 245 seconds]
<workmad3> benzrf: not quite... if something can't be represented as a rational, 'infinite precision' would still be precise
<benzrf> pfft
<workmad3> benzrf: e.g. an exact value of pi needs infinite precision to represente...
<workmad3> *represent
<apeiros> benzrf: if it can't be represented as a rational, it isn't a rational
<apeiros> gah
<apeiros> workmad3: ^
perlsyntax has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> so yes, infinite precision *for rationals*, as I said it :-)
<benzrf> ^
<shevy> only chuck norris can hold infinite precision
<apeiros> the only boundary to precision there is the same as Bignum's limits.
sparrovv has quit [Remote host closed the connection]
<workmad3> apeiros: it's still not infinite precision... it's just a number that would require infinite precision as a decimal expansion can be represented exactly as a rational
<pothibo> benzrf spammin me too
<workmad3> apeiros: otherwise you may as well say that 0.1 is infinite precision (in decimal) because 1/10 requires an infinite binary expansion ;)
candelabra has quit [Remote host closed the connection]
<apeiros> workmad3: it is infinitely precise, yes
crystal77 has joined #ruby
dik_dak has joined #ruby
<apeiros> it's a bit pointless to make the claim for single numbers, though
<workmad3> apeiros: it's exact
<workmad3> apeiros: which is not quite the same as infinitely precise
<workmad3> apeiros: the infinities basically get removed with rationals
<apeiros> I still don't see the difference, at least with regards to my claim
lw has joined #ruby
<apeiros> 12 in decimal is an infinitely precise (exact) representation of 12 in base 10
<apeiros> in base π, you can't represent it with infinite precision
<benzrf> ^fax.
Czupa has joined #ruby
chris_thomson has joined #ruby
sparrovv has joined #ruby
<apeiros> (it may well be that I'm unaware of mathematical terms and their meanings - I'm telling how I understand it and asking for the difference)
<workmad3> apeiros: I guess I'm objecting to the use of the term 'infinitely precise' which (to me) implies that you're getting infinitesimally close to a value through infinite decimal expansion
paolooo has quit [Ping timeout: 245 seconds]
<workmad3> apeiros: as opposed to 'exact' which introduces no infinities or exapansions, it's merely exactly the quantity under question...
<apeiros> hm, ok
<workmad3> *expansions
freerobby has quit [Quit: Leaving.]
<workmad3> apeiros: is that agreement that you can see how I differ the terms and (somewhat) accept it? :)
<workmad3> if so, I'm going to jump around going 'I won! I won! I finally won in a dispute about terms with apeiros!'
aagdbl has joined #ruby
<workmad3> and then go to lunch :)
<benzrf> nobody will evr beat ME in a dispute about terms
<benzrf> B)
<shevy> die benatkin
<shevy> erm
<shevy> die benzrf
pu22l3r has quit [Remote host closed the connection]
<workmad3> benzrf: is that because you'd stick your fingers in your ears and go 'laalalalalala' if someone attempted such a dispute? ;)
pu22l3r has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<workmad3> ok, lunch :)
Sawbones has quit []
<pothibo> semantic war
<benzrf> workmad3: of course!
<benzrf> what else do you expect from a teenager?
<workmad3> pothibo: the best kind of war!
<benzrf> =)
tyranjoff is now known as tyranja
<benzrf> workmad3: indisputably
<pothibo> ;)
workmad3 is now known as wm|lunch
jamto11 has joined #ruby
chris_thomson has quit [Quit: Zzz...]
<apeiros> wm|lunch: damn, I try 3 times to complete your nick just to finally figure you changed it…
<apeiros> wm|lunch: happy jumping around, you've won a dispute ;-)
<The_NetZ> apeiros: lawl
linojon has quit [Ping timeout: 240 seconds]
foredoomed has joined #ruby
linojon has joined #ruby
devdazed has quit [Quit: Bye]
hamakn has quit [Remote host closed the connection]
_tpavel has quit [Quit: Leaving]
charliesome has joined #ruby
hamakn has joined #ruby
jrhe has joined #ruby
bathula has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
IceyEC has joined #ruby
charlies_ has joined #ruby
aagdbl has quit [Quit: Leaving.]
sdouglas has joined #ruby
tonni has quit [Remote host closed the connection]
<shevy> benzrf man, you aren't far away from 18
tonni has joined #ruby
<benzrf> oh shit ill be legally considered an adult in under a year
<benzrf> that doesnt seem right
omegahm has joined #ruby
away_ has quit []
sparrovv has quit [Remote host closed the connection]
away_ has joined #ruby
<Tachoh> dont worry nobody will treat you like an adult until you're in your 30s anyway
<xm> does anyone know why "#!/usr/bin/env ruby" is used?
<xm> rather than invoking ruby directly.. ?
nvrch has quit [Quit: nvrch]
<jhass> xm: it allows you to have multiple rubies and to switch between them just by changing your $PATH
<xm> thanks
<jhass> it also makes your scripts more portable between different setups
charliesome has quit [Ping timeout: 264 seconds]
<xm> ok, interesting
<xm> ive never really seen this done before
<The_NetZ> xm: yep. ruby may be located on a different path depending on the system, though the hashbang is only useful on linux
<xm> most scripts just seem to call their interpreters etc directly
charlies_ has quit [Ping timeout: 240 seconds]
<apeiros> Tachoh: and then they'll treat you like you were senile already
mourest has quit [Remote host closed the connection]
nvrch has joined #ruby
<apeiros> xm: because different distros have their executables in different places
tonni has quit [Ping timeout: 240 seconds]
<apeiros> env abstracts that problem
<xm> i see
<apeiros> sadly gnu env is a bit shitty and can't handle arguments :(
dzhulk has joined #ruby
bal has quit [Quit: bal]
<apeiros> (or can newer versions now?)
CorySimmons has quit [Quit: Bye!]
phantasm66 has joined #ruby
gfunc has joined #ruby
marcgg_ has joined #ruby
yasushi has joined #ruby
<dp_011> After push to heroku I get "The page you were looking for doesn't exist." With heroku logs I get no errors , can someone help me out ?
kevind has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
grx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
cover has joined #ruby
bal has joined #ruby
marcgg has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
<pothibo> dp_011 that's quite vague
<The_NetZ> apeiros: I think it can, now.
mary5030 has joined #ruby
thomasxie has joined #ruby
arietis has joined #ruby
<dp_011> pothibo: I know pave a pg database local running fine
mbff has joined #ruby
mbff is now known as Guest88080
sk87 has joined #ruby
sparrovv has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
MindfulMonk has joined #ruby
devdazed has joined #ruby
fgo has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
<dp_011> pothibo: on config/production.rb I have config.assets.compile = true
thomasxie has quit [Client Quit]
zachallett has joined #ruby
thomasxie has joined #ruby
duggiefresh has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
tjr9898 has joined #ruby
fgo has joined #ruby
kirun has joined #ruby
agjacome has quit [Quit: Lost terminal]
segimondu is now known as segmond
jkamenik has joined #ruby
lmickh has joined #ruby
nvrch has quit [Quit: nvrch]
vlad_starkov has joined #ruby
jimmyy has joined #ruby
supermarin has joined #ruby
mourest has joined #ruby
klaut has quit [Quit: Connection closed for inactivity]
mary5030 has quit [Remote host closed the connection]
jimmyy has quit [Max SendQ exceeded]
mary5030 has joined #ruby
jimmyy has joined #ruby
mary5030 has quit [Remote host closed the connection]
aryaching has joined #ruby
mary5030 has joined #ruby
dkamioka has joined #ruby
slowcon has joined #ruby
mary5030 has quit [Remote host closed the connection]
klaut_ is now known as klaut
momigi has joined #ruby
mary5030 has joined #ruby
agjacome has joined #ruby
npearson has joined #ruby
supermarin has quit [Ping timeout: 244 seconds]
timonv has quit [Remote host closed the connection]
RaCx has joined #ruby
Coolhand is now known as niharvey
senayar_ has joined #ruby
maximski has joined #ruby
meatherly has joined #ruby
phutchins has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
lw has quit [Quit: s]
yacks has quit [Remote host closed the connection]
thomasxie has quit [Read error: Connection reset by peer]
momigi has quit [Ping timeout: 240 seconds]
RaCx_ has joined #ruby
thomasxie has joined #ruby
RaCx has quit [Ping timeout: 264 seconds]
RaCx_ is now known as RaCx
zz_jrhorn424 is now known as jrhorn424
obs has quit [Quit: Konversation terminated!]
craigp has joined #ruby
makara has quit [Ping timeout: 244 seconds]
codabrink has joined #ruby
craigp_ has quit [Ping timeout: 240 seconds]
obs has joined #ruby
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby
camilasa_ has quit [Remote host closed the connection]
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
camilasan has joined #ruby
momomomomo has quit [Client Quit]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
duggiefresh has joined #ruby
mary5030 has joined #ruby
jobewan has joined #ruby
zaargy_ is now known as zaargy
jobewan has quit [Remote host closed the connection]
shabgrd has joined #ruby
jobewan has joined #ruby
mojjojo has joined #ruby
duggiefr_ has joined #ruby
crystal77 has joined #ruby
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby
duggief__ has joined #ruby
momigi has joined #ruby
duggief__ has quit [Read error: Connection reset by peer]
duggief__ has joined #ruby
duggiefresh has quit [Ping timeout: 264 seconds]
karupanerura is now known as zz_karupanerura
jjbohn has joined #ruby
timonv has joined #ruby
duggiefr_ has quit [Ping timeout: 264 seconds]
mojjojo has quit [Quit: mojjojo]
sambao21 has joined #ruby
Celm has joined #ruby
tylersmith has joined #ruby
wm|lunch is now known as workmad3
* workmad3 jumps around
MatthewsFace has joined #ruby
dkamioka has quit [Remote host closed the connection]
eka has joined #ruby
Celm has quit [Client Quit]
fgo has quit [Remote host closed the connection]
parduse has quit [Ping timeout: 265 seconds]
sdouglas has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bathula has joined #ruby
bry4n_ has joined #ruby
snath has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
MatthewsFace has quit [Quit: Leaving]
speakingcode has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
S0da has quit [Remote host closed the connection]
parduse has joined #ruby
supermarin has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
charliesome has quit [Ping timeout: 264 seconds]
The_NetZ has quit [Remote host closed the connection]
et has joined #ruby
hobodave has joined #ruby
Kruppe has quit [Ping timeout: 265 seconds]
<shevy> do you guys use anything special for configuration files
<shevy> such as assume a default - unless the user overruled it specifically, and there may be boolean values for it
<shevy> instance: use colours yes/no
thomasxie has left #ruby [#ruby]
<wuest> shevy: case dependent, but yeah.
hobodave has quit [Client Quit]
kinigitz has joined #ruby
it_tard has joined #ruby
glosoli has quit [Quit: Textual IRC Client: www.textualapp.com]
<certainty> workmad3: why you jumping?
jrhorn424 is now known as zz_jrhorn424
<workmad3> certainty: because I won in a semantic dispute against apeiros :D
shtirlic_ has joined #ruby
* certainty reads the backlog
codecop has quit [Remote host closed the connection]
vjt_ has joined #ruby
<certainty> workmad3: ok i see nothing. what was it about?
<workmad3> certainty: the difference between 'infinitely precise' and 'exact'
cgore has joined #ruby
<certainty> workmad3: what was your point?
benzrf has left #ruby [#ruby]
toastynerd has joined #ruby
antonishen has quit [Ping timeout: 265 seconds]
nfk has quit [Remote host closed the connection]
knigitz has quit [Remote host closed the connection]
Klumben has quit [Ping timeout: 265 seconds]
csq has quit [Ping timeout: 265 seconds]
shtirlic has quit [Ping timeout: 265 seconds]
artgoeshere has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
niharvey has quit [Quit: No Ping reply in 180 seconds.]
ConstantineXVI has quit [Ping timeout: 265 seconds]
seich- has quit [Ping timeout: 265 seconds]
pinage404 has quit [Ping timeout: 265 seconds]
binw has quit [Ping timeout: 265 seconds]
csq has joined #ruby
MindfulMonk has quit [Ping timeout: 265 seconds]
psyprus has quit [Ping timeout: 265 seconds]
cephalostrum has quit [Ping timeout: 265 seconds]
Jakee`__ has quit [Ping timeout: 265 seconds]
xiphiasx_ has quit [Ping timeout: 265 seconds]
tobiasvl has quit [Ping timeout: 265 seconds]
vjt has quit [Remote host closed the connection]
rickenharp_ has quit [Ping timeout: 265 seconds]
dnyy has quit [Ping timeout: 265 seconds]
the_mentat has quit [Ping timeout: 265 seconds]
ninegrid has quit [Ping timeout: 265 seconds]
seich- has joined #ruby
psyprus has joined #ruby
tvl has joined #ruby
kies has quit [Ping timeout: 265 seconds]
lfox has quit [Ping timeout: 265 seconds]
ninegrid has joined #ruby
bluepojo has quit [Quit: No Ping reply in 180 seconds.]
mordocai has quit [Remote host closed the connection]
<shevy> This can get damn long to handle :\
<soahccc> shevy: there is defined? or you just use a hash and check if the key is set at all
<shevy> hmm
<shevy> so just one hash for the configuration?
paulfm has quit [Ping timeout: 265 seconds]
RubyPanther has quit [Ping timeout: 265 seconds]
mjmac has quit [Ping timeout: 265 seconds]
mordocai has joined #ruby
bluepojo has joined #ruby
artgoeshere has joined #ruby
epochwolf has joined #ruby
Klumben has joined #ruby
ceej has quit [Ping timeout: 265 seconds]
epochwolf has quit [Changing host]
epochwolf has joined #ruby
<workmad3> certainty: that 'infinitely precise' is not the same as 'exact' as 'infinitely precise' brings in the idea of an infinite sequence that at its limit is infinitesimally close to the 'correct' answer
<workmad3> ooh, netsplit
ConstantineXVI has joined #ruby
MindfulMonk has joined #ruby
jjbohn is now known as jjbohn|afk
<certainty> yeah mystery
lfox has joined #ruby
mikepack has joined #ruby
mjmac has joined #ruby
sdouglas has joined #ruby
Kneferilis has quit [Quit: Leaving]
felixjet has joined #ruby
<certainty> workmad3: i guess the context were exact vs. inexact numbers?
<certainty> was
yubrew has joined #ruby
Coolhand has joined #ruby
mojjojo has joined #ruby
<soahccc> shevy: Maybe this can give you an idea (my get method is what usually is a fetch method) => https://gist.github.com/2called-chaos/7a3be3ea6e6d2d4cb199
Coolhand has quit [Changing host]
Coolhand has joined #ruby
felixjet__ has quit [Ping timeout: 265 seconds]
yacks has joined #ruby
binw_ has joined #ruby
<shevy> hmm
<shevy> Banana::Kernel
antonishen has joined #ruby
cephalostrum_ has joined #ruby
pinpin404 has joined #ruby
RubyPanther has joined #ruby
ceej_ has joined #ruby
the_mentat has joined #ruby
dnyy has joined #ruby
blackmesa has joined #ruby
rickenharp_ has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
Jakee`__ has joined #ruby
antonishen has quit [Changing host]
antonishen has joined #ruby
ceej_ has quit [Changing host]
dnyy has quit [Changing host]
ceej_ has joined #ruby
dnyy has joined #ruby
Jakee`__ has joined #ruby
rickenharp_ has quit [Changing host]
rickenharp_ has joined #ruby
Jakee`__ has quit [Changing host]
<shevy> hehe
<shevy> that tripped me up in the gist :)
<shevy> apeiros is getting old
razibog has joined #ruby
<soahccc> shevy: hehe banana is our internal collection of stuff :D
<workmad3> certainty: 1/3 being an exact rational representation :)
<workmad3> certainty: while the decimal representation of the same number would require infinite precision in a decimal expansion
centrx has joined #ruby
<soahccc> shevy: and that method I use feels the dirtiest I've ever written :>
paulfm has joined #ruby
xiphiasx_ has joined #ruby
<certainty> workmad3: yeah i see
<workmad3> certainty: then I went to lunch :)
<workmad3> and came back to apeiros agreeing and saying I could jump around in happiness :)
<soahccc> workmad3: so when there is a cake and three person and one says "well everyone get a third of it" then you ask "exactly one third?" :D
ScalaClient has quit [Ping timeout: 240 seconds]
sputnik1_ has joined #ruby
sputnik1_ has quit [Client Quit]
nvrch has joined #ruby
shaunbaker has joined #ruby
jjbohn|afk is now known as jjbohn
jjbohn is now known as jjbohn|afk
thomasxie has joined #ruby
<workmad3> soahccc: yes... I expect the person cutting to cut the cake into exact quarters then trisect one quarter with compass and straight-edge to provide each person with exactly 1 third
browndawg has quit [Quit: Leaving.]
afreidah2 has quit [Ping timeout: 265 seconds]
<certainty> workmad3: in scheme the constant 1/3 is not exact
chrisseaton has quit []
<workmad3> soahccc: or to use some equivalent mechanism to ensure each person gets a swept arc of 2/3rads :)
<workmad3> certainty: 1.quo(3) is exact in ruby ;)
<soahccc> :D
<apeiros> as will be 1/3r
<apeiros> or is?
<soahccc> I'm so bad with numbers
<apeiros> is it 2.2 or 2.1? *confused*
<apeiros> ah, 2.1 already, NOIIICE!
<apeiros> >> 2/1r
<eval-in> apeiros => (2/1) (https://eval.in/117361)
<workmad3> apeiros: works in 2.1
<workmad3> but not in 2.0
dkamioka has joined #ruby
<soahccc> what are the new "named parameters" called or are they just named parameters?
<workmad3> soahccc: keyword arguments?
jack_rabbit has quit [Ping timeout: 240 seconds]
<soahccc> okay basically the same right? I mean that are essentially named parameters
<et> workmad3: infinite sequences are one way to define real numbers
<workmad3> yeah, essentially
<workmad3> et: I'm aware ;)
lxsameer has quit [Quit: Leaving]
<workmad3> et: I'm also aware of dadekind cuts for arriving at the reals from the rationals
SCommette has joined #ruby
<workmad3> *dedekind cuts
<et> so there's no real difference between the sequence and the number
zcreative has joined #ruby
s2013 has joined #ruby
mengu has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 265 seconds]
dzhulk has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
afreidah2 has joined #ruby
<workmad3> et: I like that statement on multiple levels ;)
<workmad3> et: there could be a hyperreal difference between the sequence and the number though ;)
drumusician has joined #ruby
vlad_starkov has joined #ruby
wakus-on has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
<workmad3> et: I still feel there's a difference between an exact representation and a representation that relies on an infinite number of non-zero terms
arubin has joined #ruby
senj has joined #ruby
drumusician has quit [Read error: Connection reset by peer]
mengu has joined #ruby
supersym has joined #ruby
<et> you can identify that infinte number of terms with a sequence which exactly identifies the real number
heftig has quit [Read error: Operation timed out]
rayners has joined #ruby
gfunc has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
mavcunha has quit [Quit: Textual IRC Client: www.textualapp.com]
supershabam has quit [Ping timeout: 245 seconds]
shabgrd has quit [Quit: Aji maji la taraji]
abra has joined #ruby
abra has quit [Max SendQ exceeded]
fayimora has joined #ruby
Kruppe has joined #ruby
shabgard has joined #ruby
abra has joined #ruby
sigurding has joined #ruby
cover has quit [Ping timeout: 240 seconds]
supershabam has joined #ruby
IlIlIlIlIlIlI has joined #ruby
vlad_sta_ has joined #ruby
mostlybadfly has joined #ruby
IlIlIlIlIlIlI has left #ruby ["PRIVMSG #coderdojo.si :if has time :)"]
jds has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
perlsyntax has joined #ruby
larsam has joined #ruby
ndrei has joined #ruby
havenwood has quit [Remote host closed the connection]
danshult_ has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
ceej_ is now known as ceej
afreidah3 has joined #ruby
havenwood has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
afreidah2 has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
CorySimmons has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
snath has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
foredoomed has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 265 seconds]
vpretzel has joined #ruby
SCommette_ has joined #ruby
shabgard has quit [Quit: Aji maji la taraji]
bathula has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Ping timeout: 252 seconds]
<dideler_work> is one of these considered better style than the other? "http://#{url}" vs 'http://' << url
alexju has quit [Remote host closed the connection]
srji has quit [Quit: leaving]
paulfm has quit []
<shevy> dideler_work the first style ensures that .to_s is called
srji has joined #ruby
SCommette has quit [Ping timeout: 240 seconds]
SCommette_ is now known as SCommette
<shevy> dideler_work the second style makes no guarantee, and if url happens to not be a string, the << will lead to a runtime error
<weeb1e> Has anyone here ever implemented chunked streaming for responses using the Thin web server on EventMachine? I've tried every chunked streaming implementation possible and data is never received by the client before the connection closes
<dideler_work> shevy: thanks :)
acrussell has joined #ruby
maletor has joined #ruby
<shevy> you are welcome!
<shevy> ewww wakus-on spams again
datacrusher has joined #ruby
godd2 has joined #ruby
parus has quit [Ping timeout: 264 seconds]
<godd2> Well I got my first segfault in ruby
Ziarkaen` has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Ziarkaen has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
Kneferilis has joined #ruby
maletor has quit [Ping timeout: 264 seconds]
omegahm has quit [Write error: Connection reset by peer]
Celm has joined #ruby
sigurding has quit [Quit: sigurding]
mengu has quit []
sdouglas has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
s2013 has joined #ruby
cover has joined #ruby
zB0hs has joined #ruby
zB0hs has quit [Client Quit]
charliesome has joined #ruby
bthesorceror has joined #ruby
hiyosi has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
_maes_ has quit [Ping timeout: 253 seconds]
garbagecollectio has joined #ruby
tagrudev has quit [Remote host closed the connection]
<garbagecollectio> how do i pass params to a helper method from a view
LadyRainicorn has joined #ruby
paulfm has joined #ruby
<shevy> godd2 yay man!
lutfidemirci has quit [Remote host closed the connection]
<shevy> garbagecollectio sounds like rails -> #rubyonrails
LadyRainicorn has quit [Client Quit]
vpretzel has quit [Read error: Connection reset by peer]
<garbagecollectio> i can't get in there eman
lutfidemirci has joined #ruby
pu22l3r_ has joined #ruby
abra has quit [Ping timeout: 265 seconds]
sdouglas_ has joined #ruby
vpretzel has joined #ruby
sigurding has joined #ruby
abra has joined #ruby
hobodave has joined #ruby
lw has joined #ruby
yubrew has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 241 seconds]
<shevy> you must register before you can join
paulfm has quit [Client Quit]
<shevy> the people on #sinatra and padrino-users don't force you to register though
<workmad3> shevy: too much spam happens if we turn off the registration requirement in #rubyonrails :(
klue has joined #ruby
villainous has joined #ruby
<workmad3> shevy: last time it was turned off for a few days, I think we had half a dozen porn spam bots posting in there...
<shevy> hehehe
monkegjinni has joined #ruby
<shevy> I wanna see that!
yacks has quit [Read error: Connection reset by peer]
<workmad3> shevy: a new one tended to join a few hours after Radar banned one :)
paulfm has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
jprovazn has quit [Quit: Leaving]
yubrew has quit [Ping timeout: 244 seconds]
supersym has quit [Quit: WeeChat 0.4.3]
jimmyy has quit []
AlexRussia has joined #ruby
supersym has joined #ruby
<workmad3> garbagecollectio: to answer your question (although you should really register with freenode and join #rubyonrails :P ), you pass arguments to helper methods in the normal way... so if it's an erb view, <%= some_helper param1, param2, param3, ... %>
<godd2> shevy: just don't ever try to make a buffer length negative for a WAVEHDR multimedia object
<workmad3> godd2: sounds fun... also sounds like it's a bug in the C code :D
Xeago has quit [Remote host closed the connection]
abra has quit [Read error: Connection timed out]
Xeago has joined #ruby
axl_ has joined #ruby
weaksauce has quit [Ping timeout: 264 seconds]
abra has joined #ruby
villainous has left #ruby [#ruby]
poguez has joined #ruby
pfg has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
sputnik1_ has joined #ruby
sdouglas has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
geopet has joined #ruby
havenwood has joined #ruby
<godd2> bugs in winapi code?? surely not!
ce_afk is now known as cescalante
philcrissman has joined #ruby
quatron has joined #ruby
magoo has joined #ruby
pwh has joined #ruby
dp_011 has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
absolutezeroff has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
freerobby has joined #ruby
lw has quit [Quit: s]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
IceDragon has joined #ruby
<garbagecollectio> here is a more ruby question
<garbagecollectio> how can i create an instance varaible
troyready has joined #ruby
havenwood has quit [Remote host closed the connection]
<garbagecollectio> a single time
yubrew has joined #ruby
<garbagecollectio> when my application boots up
havenwood has joined #ruby
sigurding has quit [Ping timeout: 264 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
zcreative has joined #ruby
<centrx> garbagecollectio, How does our application "boot up" ?
<garbagecollectio> sorry, when a request is incoming
aspires has joined #ruby
bry4n_ has quit [Quit: WeeChat 0.4.2]
sdouglas has joined #ruby
<centrx> garbagecollectio, What handles the request?
tcstar has joined #ruby
kevind_ has joined #ruby
<jhass> garbagecollectio: that sounds like a description of the solution you think you need. How about a description of your problem? ;)
datacrusher has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 240 seconds]
Ziarkaen` has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
bthesorceror has quit [Remote host closed the connection]
<garbagecollectio> problem is i have data from a model that is used on my webpage across the entire site
<garbagecollectio> and i don't want to make that call all the time
drumusician has joined #ruby
saarinen has joined #ruby
drumusician has quit [Remote host closed the connection]
RaCx has joined #ruby
drumusician has joined #ruby
<centrx> garbagecollectio, Is this Rails?
<garbagecollectio> yeah it could be if its easier
toastynerd has joined #ruby
hamed_r has quit [Quit: Ex-Chat]
sambao21 has joined #ruby
hamed_r has joined #ruby
kevind has quit [Ping timeout: 264 seconds]
kevind_ is now known as kevind
aspires has quit [Client Quit]
<jhass> it's not a question of "being easier". The best way to do something depends on your application design, not on the fact that you're using Ruby
shime has joined #ruby
kukyakya has joined #ruby
kukyakya has quit [Client Quit]
niklasb has quit [Ping timeout: 240 seconds]
<jhass> what you probably want is a caching view helper
kukyakya has joined #ruby
<garbagecollectio> i have that
<centrx> garbagecollectio, If I can make the question be whatever is easiest, then just turn your page into a static page and host it with webrick
lw has joined #ruby
claymore has joined #ruby
<garbagecollectio> it is programmable
phansch has joined #ruby
et has left #ruby [#ruby]
<garbagecollectio> the content can change depending on models
<garbagecollectio> which is the first thing i said
<jhass> module ApplicationHelper; def whatever; @whatever ||= Whatever.new; end; end;
thumpba_ has quit []
<jhass> and you really should try to get into #rubyonrails
zcreative has quit [Quit: Computer has gone to sleep.]
<garbagecollectio> i cant
WormDrink has quit [Ping timeout: 240 seconds]
saarinen has quit [Ping timeout: 240 seconds]
<garbagecollectio> is that cached?
<garbagecollectio> how do i call the method?
<garbagecollectio> like i have to call the method each time in my views?
zachallett has quit [Remote host closed the connection]
aspires has joined #ruby
bal has quit [Quit: bal]
arietis has quit [Quit: Computer has gone to sleep.]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Quit: Leaving.]
shime has quit [Read error: Operation timed out]
<jhass> that is cached
Macaveli has quit [Ping timeout: 252 seconds]
redlines has quit [Ping timeout: 265 seconds]
<jhass> @whatever is an instance variable, a ||= b is short for a || a = b
<jhass> but iirc AR caches too
claymore has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
pfg has joined #ruby
bthesorceror has joined #ruby
rainmanjam has joined #ruby
jonnyro has joined #ruby
glosoli has joined #ruby
<jonnyro> I need to store time series data (by YYYY-MM-DD) with a fixed number of fields per date. What data structure should I use?
<centrx> jonnyro, Maybe a hash with dates as keys?
claymore has joined #ruby
m1lt0n_ has quit [Quit: leaving]
<jonnyro> Sounds good, what do i put inside the hash? An openstruct, an array, a hash?
Fyyr13_ has quit [Remote host closed the connection]
<centrx> jonnyro, Oh, right. Well, how is it going to be accessed?
<jonnyro> i will need to write to the fields in each date over and over
<jonnyro> incrementing them
<jonnyro> example, a log of the number of animals born on a farm over time
alexju has joined #ruby
<jonnyro> i want to keep track of the number of pigs,chickens,cows,etc born on each date by iterating over birth certificates
<jonnyro> (wierd example, but the best i could come up with on short notice)
Packardnode has left #ruby [#ruby]
s2013 has quit [Ping timeout: 240 seconds]
<jonnyro> The birth certificates of said farm creatures are unsorted
<centrx> Usually it's best to provide real-world information
<garbagecollectio> here is a more ruby focused question
thumpba has joined #ruby
<centrx> jonnyro, That doesn't sound like "a fixed number of fields per date"?
adefa has joined #ruby
<jonnyro> I'm thinking hash(date) -> pigcounter, chicken counter, cowcounter
<workmad3> centrx: sounds like it to me... pig_birthcount, chicken_birthcount, cow_birthcount for each day...
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jonnyro> perhaps a hash of hashes
<centrx> Yes
<centrx> OpenStruct is unnecessary overhead
anarang has quit [Quit: Leaving]
alexju has quit [Read error: Connection reset by peer]
alexju_ has joined #ruby
<garbagecollectio> can u call a class from a helper method?
duggief__ has quit [Remote host closed the connection]
<shevy> lol
<workmad3> jonnyro: either that or an AnimalBirthCounter class that you could assign to the date with a method 'add_birth_for(:cow)' that you call :)
<shevy> wtf is a helper method
slowcons has joined #ruby
<workmad3> jonnyro: it would be a bit more code written, but would probably be a bit cleaner implementation if it was a larger system :)
<havenwood> jonnyro: so like this kinda?: {'2014-03-15' => { pigs: 0, chickens: 0, cows: 0 }, '2014-03-14' => { pigs: 0, chickens: 0, cows: 0 }}
<shevy> garbagecollectio: def foo; Bla.new; end; foo <--- now you call a class from a method
supermarin has quit [Remote host closed the connection]
maletor has joined #ruby
supermarin has joined #ruby
<garbagecollectio> shevy: i mean yea i know that
garbagecollectio is now known as magictween
lmickh has quit [Remote host closed the connection]
magictween is now known as magicrails
visof has quit [Ping timeout: 244 seconds]
pfg has joined #ruby
<toretore> does anyone know of a http parser/generator for ruby?
<havenwood> toretore: nokogiri
<toretore> that's an xml parser
srji has quit [Quit: leaving]
<havenwood> toretore: "Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser."
tstrokes has joined #ruby
drumusician has quit [Remote host closed the connection]
<toretore> where does it say http? ;)
<jonnyro> toretore: you want to parse headers?
<centrx> HTTP
bahar has quit [Ping timeout: 264 seconds]
mojjojo has quit [Quit: mojjojo]
<havenwood> oh
<toretore> i want to parse and generate http requests
<havenwood> i read html >.>
drumusician has joined #ruby
<havenwood> toretore: my mistake
slowcons has quit []
supermarin has quit [Ping timeout: 240 seconds]
Voodoofish430 has joined #ruby
<toretore> https://github.com/tmm1/http_parser.rb is pretty decent at parsing, but it doesn't generate
<jonnyro> Looks like there is a pretty decent amount of support for http in the standard library
<toretore> can someone kill wakus-on already?
vpretzel_ has joined #ruby
<jonnyro> and away_ please
<toretore> net/http doesn't parse or generate http afaik
vpretzel has quit [Read error: Connection reset by peer]
aryaching has quit [Read error: Connection reset by peer]
<toretore> well it does, but it doesn't expose that functionality
michaeldeol has joined #ruby
Mongey has joined #ruby
<workmad3> jonnyro: https://gist.github.com/workmad3/d2f5ae442bafde604a59 quick example using a dedicated class for tracking :)
omegahm has joined #ruby
maletor has quit [Read error: Connection reset by peer]
<Hanmac1> havenwood: hm then i do something wrong ... i use nokogiri as xml generator ;P
<godd2> toretore: bindata may be what you want
aryaching has joined #ruby
vpretzel_ has quit [Client Quit]
maletor has joined #ruby
nomenkun has quit [Remote host closed the connection]
mojjojo has joined #ruby
<toretore> bindata is for parsing binary data afaik
tjr9898 has quit [Remote host closed the connection]
<toretore> http (1) isn't binary
arietis has joined #ruby
rococo has joined #ruby
_maes_ has joined #ruby
tjr9898 has joined #ruby
bahar has joined #ruby
<jhass> toretore: rack + cgi backend maybe? Never tried but might be worth investigating, depending on what you really want
mjs2600 has quit [Remote host closed the connection]
<toretore> ah, rack
DrShoggoth has joined #ruby
<toretore> there really should be *one*, canonical http parsing/generating library though
<toretore> that's one wheel that doesn't need constant reinventing
sputnik1_ is now known as sputnik13net
geggam has joined #ruby
<toretore> webrick might have something usable
apeiros has quit [Remote host closed the connection]
lw has quit [Quit: s]
philcrissman has quit [Remote host closed the connection]
<toretore> they're all hidden inside some server or html parsing library that assume that's what you want
nhhagen_ has joined #ruby
apeiros has joined #ruby
<havenwood> toretore: rack and webmachine on the one hand, and Unicorn Rainbows! Thin Puma Passenger Webrick Reel-Rack on the other
bahar has quit [Read error: Operation timed out]
<toretore> if i was a better programmer with more time i would write a proper, pure http parser/generator
<havenwood> toretore: webrick/mongrel
craigp has quit [Remote host closed the connection]
bahar has joined #ruby
<toretore> alas, none of those are true
nvrch has quit [Quit: nvrch]
senj has quit [Quit: Sleep Now]
yasushi has quit [Remote host closed the connection]
mjs2600 has joined #ruby
senj has joined #ruby
<havenwood> toretore: i like HTTPClient for http clients, mechanize is pretty nifty too
philcrissman has joined #ruby
<oz> toretore: what about https://github.com/tmm1/http_parser.rb ?
nhhagen has quit [Ping timeout: 240 seconds]
<havenwood> or tyhpoeus
<toretore> oz: yeah, i'm using that for parsing, which it does quite well, but it doesn't generate
ahawkins has quit [Remote host closed the connection]
charliesome has joined #ruby
<godd2> I guess the real question is, for what reason are you parsing an HTTP request? and is the fact that yoru answer is hard to find mean you're approaching your underlying problem the wrong way?
RaCx has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Ping timeout: 265 seconds]
<toretore> i have a tcp socket which receives http, which i want to parse. then i want to generate an http response and write that to the socket
<oz> toretore: ah ok, I thought it did. Sorry! :)
nhhagen_ has quit [Ping timeout: 264 seconds]
mlpinit has quit [Remote host closed the connection]
Al__ has joined #ruby
baroquebobcat has joined #ruby
datacrusher has joined #ruby
mlpinit has joined #ruby
<jhass> toretore: where do you get that socket from? maybe you can let webrick or something similar listen on it?
sambao21 has quit [Quit: Computer has gone to sleep.]
<toretore> i kind of want to use the socket directly
<workmad3> toretore: a.k.a. you want to write an HTTP server? :D
kukyakya has quit [Remote host closed the connection]
<toretore> yes :P
<toretore> that is pretty much what i'm doing
axl_ has quit [Quit: axl_]
parus has joined #ruby
<workmad3> toretore: is there something about it that means you can't use rack? (I'm guessing some advanced streaming requirements?)
markisonfire has joined #ruby
rlb3 has joined #ruby
<toretore> it's because of the way i'm handling concurrency
mikepack_ has joined #ruby
axl_ has joined #ruby
<toretore> with fibers
charliesome has quit [Ping timeout: 265 seconds]
<toretore> i can read and write concurrently from/to a socket
sdouglas has quit [Remote host closed the connection]
<toretore> but an existing library won't be aware of this
<toretore> part of me also wants to rant about how there ought to be a pure http parser/generator for ruby
guilleiguaran has joined #ruby
<toretore> and that assuming i want a whole server or html parser is bad design
mikepack has quit [Ping timeout: 240 seconds]
paolooo has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
etqqkoiflwhb has joined #ruby
mikepack_ has quit [Ping timeout: 240 seconds]
pel_daniel has joined #ruby
bluepojo__ has joined #ruby
Mongey has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Zzz...]
sdouglas has joined #ruby
DouweM has quit [Read error: Connection timed out]
kies has joined #ruby
bluepojo has quit [Ping timeout: 265 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kies has quit [Changing host]
kies has joined #ruby
mjs2600 has quit [Remote host closed the connection]
zerun0_ has quit [Ping timeout: 240 seconds]
supermarin has joined #ruby
jlast has joined #ruby
supermarin has quit [Client Quit]
philcrissman has quit [Read error: Connection reset by peer]
Umschwung has joined #ruby
sdouglas has quit [Remote host closed the connection]
zerun0_ has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
shaunbaker has quit [Remote host closed the connection]
xuisc has joined #ruby
xuisc has quit [Changing host]
xuisc has joined #ruby
kaspergr_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
GaryOak_ has joined #ruby
Mongey has joined #ruby
philcrissman has joined #ruby
<certainty> we were in the same situation a while back. Then someone sat down and wrote intarweb which provides all the parsing/unparsing primitives for http
crystal77 has quit [Quit: Computer has gone to sleep.]
nhhagen has joined #ruby
Akuma has quit [Ping timeout: 264 seconds]
yarou has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<weeb1e> This is driving me insane
senayar_ has quit [Remote host closed the connection]
<toretore> certainty: is that a real thing you're talking about?
banister has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
timonv has quit [Remote host closed the connection]
senayar has joined #ruby
nhhagen has quit [Client Quit]
CorySimmons has joined #ruby
timonv has joined #ruby
pfg has joined #ruby
nanoyak has joined #ruby
<weeb1e> I can't figure out where this issue is, I cannot get chunks of a HTTP response to be received by a browser before the connection closes or the last chunk is received
pwh has quit []
peterellisjones has joined #ruby
RaCx has joined #ruby
<toretore> do you receive them with curl?
<weeb1e> I've even written my own simple EventMachine HTTP server and the same things happens
bluenemo has quit [Remote host closed the connection]
<toretore> then it's probably still in the buffer
jmeeuwen has quit [Ping timeout: 244 seconds]
Kruppe has quit [Quit: ZNC - http://znc.in]
<weeb1e> toretore: In what buffer?
<toretore> ruby or kernel
bahar has quit [Read error: Operation timed out]
<weeb1e> Not a chance
<toretore> are you flushing?
<weeb1e> I am sending a chunk once per second, for 10 seconds
<weeb1e> You don't need to flush anything with EventMachine
Luyt__ has left #ruby [#ruby]
<weeb1e> EventMachine does all the flushing
nanoyak has quit [Client Quit]
iliketurtles has joined #ruby
<toretore> well, it's gotta be somewhere
tonni has joined #ruby
Elico1 has quit [Read error: Connection reset by peer]
Slavox|AFK is now known as Slavox
jespada has quit [Quit: Leaving]
<weeb1e> I don't understand this at all, I've exposed the EM servers port for testing so that I can be sure it isn't nginx
shaunbaker has joined #ruby
jmeeuwen has joined #ruby
<weeb1e> I've implemented countless protocols with EM, both UDP and TCP, and usually use long polling with Thin, but streaming simply does not work
shime has joined #ruby
Elico has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<weeb1e> I thought it was an issue with Thin, so I implemented a web server from scratch, and I have still gotten no where
krz has quit [Quit: WeeChat 0.4.3]
Xeago_ has joined #ruby
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
lutfidemirci has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
whomp has joined #ruby
niklasb has joined #ruby
<jhass> dumb question but I just have to ask it. You did set Transfer-Encoding: chunked?
mikepack has joined #ruby
<weeb1e> I just tested with EM::HttpRequest and streaming works perfectly
leonidlm has quit [Read error: Operation timed out]
Guest88080 is now known as mbff
<weeb1e> So it is an issue with Chrome, Firefox and IE... This does not make sense
Xeago has quit [Ping timeout: 240 seconds]
<weeb1e> jhass: Of course
toastynerd has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<toretore> so you are actually receiving the data as you're writing it?
shaunbaker has joined #ruby
bahar has joined #ruby
<toretore> it's just that browsers don't parse each chunk?
<weeb1e> Yes
Kruppe has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby
<weeb1e> Browsers wait until the last chunk or connection close until parsing the whole response
<weeb1e> (both when making the request directly, or using javascript and polling the ajax buffer)
tonni has quit [Quit: Leaving...]
<weeb1e> There are countless streaming examples all over, I've tried everything under the sun, and yet nothing works in browsers...
bthesorceror has quit [Remote host closed the connection]
<weeb1e> How does anyone do HTTP streaming?
Xeago_ has quit [Ping timeout: 265 seconds]
<jhass> hm. Still does sound to me like your stream doesn't confirm to the chunked transfer encoding
bthesorceror has joined #ruby
<jhass> *conform
dagon666 has left #ruby [#ruby]
jrhe has quit [Quit: Connection closed for inactivity]
yeticry has quit [Ping timeout: 252 seconds]
<weeb1e> jhass: I just implemented it from scratch using the spec, my test case is incredibly simple
mark_locklear has joined #ruby
<weeb1e> It's hard coded for a single response
Umschwung has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
lw has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
camilasan has quit []
havenwood has quit [Remote host closed the connection]
crystal77 has joined #ruby
<weeb1e> Also, the chunked encoding has to be correct jhass, because I stopped my server from ever closing the connection, and browsers still parse the chunks correctly after the last one
<weeb1e> Even when the connection remains open
havenwood has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
phantomtiger has joined #ruby
Xeago has joined #ruby
thesheff17_ has quit [Ping timeout: 240 seconds]
yarou has joined #ruby
<weeb1e> (same as EM::HttpRequest, which closes the connection after streaming all chunks correctly)
TMM has quit [Quit: Ex-Chat]
bthesorceror has quit [Ping timeout: 240 seconds]
<weeb1e> Has anyone here ever gotten chunked transfer encoding working correctly?
apeiros has joined #ruby
Xeago has quit [Remote host closed the connection]
michael_lee has quit [Remote host closed the connection]
axsuul has joined #ruby
VTLob has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
xibalba has left #ruby ["Leaving"]
maletor has joined #ruby
rainmanjam has quit []
rainmanjam has joined #ruby
chipotle has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
yfeldblum has quit [Remote host closed the connection]
zcreative has joined #ruby
Lewix has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
lw has quit [Quit: s]
Squarepy has joined #ruby
pwh has joined #ruby
CaptainJet has joined #ruby
Tobarja has quit [Ping timeout: 240 seconds]
tripwired has joined #ruby
Coolhand is now known as niharvey
toastynerd has quit [Remote host closed the connection]
bthesorceror has joined #ruby
Fyyr13_ has joined #ruby
DaniG2k has quit [Quit: leaving]
tjr9898 has quit [Remote host closed the connection]
Tobarja has joined #ruby
flagg0204 has quit [Quit: Cya..]
toastynerd has joined #ruby
nateberkopec has quit [Quit: Leaving...]
aspires has quit []
xuisc has quit []
nanoyak has joined #ruby
flagg0204 has joined #ruby
axl_ has quit [Quit: axl_]
oneawaymann has joined #ruby
dmarr has quit [Remote host closed the connection]
xuisc has joined #ruby
xuisc has quit [Changing host]
xuisc has joined #ruby
aspires has joined #ruby
timonv has joined #ruby
nateberkopec has joined #ruby
Fyyr13_ has quit [Ping timeout: 265 seconds]
zachallett has joined #ruby
shime has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oneawayman has quit [Ping timeout: 244 seconds]
godd2 has quit [Quit: Page closed]
glebm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zcreative has quit [Quit: Computer has gone to sleep.]
RaCx has quit [Ping timeout: 244 seconds]
kaldrenon has quit []
WormDrink has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
RaCx has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
kaspergr_ has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
art-solopov has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
chipotle has quit [Quit: cya]
glebm has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
mjs2600_ has joined #ruby
fraterlaetus has joined #ruby
andy4thehuynh has joined #ruby
agarie has joined #ruby
<andy4thehuynh> Sinatra Question: How do you access a params variable from a route you're not on?
<andy4thehuynh> Do you save it as a global variable?
mjs2600_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
tjr9898 has joined #ruby
echevemaster has joined #ruby
nvrch has joined #ruby
nanoyak has quit [Client Quit]
gregf has quit [Quit: WeeChat 0.4.3]
charliesome has joined #ruby
kaldrenon has joined #ruby
gregf has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
kaldrenon has quit [Client Quit]
mjs2600_ has joined #ruby
mjs2600_ has quit [Remote host closed the connection]
Mongey has quit [Read error: Connection reset by peer]
sparrovv has quit [Remote host closed the connection]
chipotle has joined #ruby
jhass is now known as jhass|off
Mongey has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
cjsarette has quit [Ping timeout: 245 seconds]
cjsarette has joined #ruby
saarinen has quit [Quit: saarinen]
shime has joined #ruby
shadoi has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
<certainty> toretore: yeah, but for scheme :)
stkowski_ has joined #ruby
stkowski_ is now known as stkowski
jhass|off is now known as jhass
charliesome has quit [Ping timeout: 240 seconds]
bluepojo has joined #ruby
<havenwood> andy4thehuynh: instance variable
shinobi_one has joined #ruby
axl_ has joined #ruby
chipotle has quit [Client Quit]
LiohAu has quit [Quit: LiohAu]
fraterlaetus has quit [Read error: Connection reset by peer]
philcrissman has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
bluepojo__ has quit [Ping timeout: 265 seconds]
fraterlaetus has joined #ruby
newbie1r has joined #ruby
monkegjinni has joined #ruby
miah_ is now known as miah
ganthore has joined #ruby
LiohAu has joined #ruby
LiohAu has quit [Client Quit]
atox has joined #ruby
hamed_r has quit [Quit: Ex-Chat]
LiohAu has joined #ruby
LiohAu has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
away_ has quit [Read error: Connection reset by peer]
Shidash has quit [Ping timeout: 265 seconds]
pierre1_ has joined #ruby
pwh has quit [Ping timeout: 244 seconds]
<andy4thehuynh> I have the the params as an IV in a '/define' route
<andy4thehuynh> I want to access that param variable in '/word' route
<Soulcutter> apeiros: that was quite a rubyflow thread :)
oneawaymann has quit [Ping timeout: 264 seconds]
<apeiros> Soulcutter: indeed
away_ has joined #ruby
vpretzel has joined #ruby
shime has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
<andy4thehuynh> oops that makes sense. thanks havenwood
drumusician has quit [Ping timeout: 240 seconds]
cjsarette has quit [Ping timeout: 245 seconds]
WormDrink has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
kaliya has quit [Quit: Lost terminal]
rippa has joined #ruby
momigi has quit [Read error: Connection reset by peer]
CorySimmons has quit [Quit: Zzz...]
Speed has joined #ruby
einarj_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
danshult_ is now known as danshultz
diegoviola has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
cjsarette has joined #ruby
Gadgetoi- has joined #ruby
yfeldblum has joined #ruby
Gadgetoi- is now known as Gadgetoid
saarinen has joined #ruby
nvrch has quit [Quit: nvrch]
momigi has joined #ruby
yfeldblum has quit [Remote host closed the connection]
momigi has quit [Read error: Connection reset by peer]
sentinal8473 has joined #ruby
pwh has joined #ruby
whatasunnyday has joined #ruby
yfeldblum has joined #ruby
WormDrink has joined #ruby
whomp has quit [Ping timeout: 240 seconds]
momigi has joined #ruby
nanoyak has joined #ruby
jaimef has quit [Excess Flood]
timonv has joined #ruby
radic has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
zcreative has joined #ruby
Hanmac has joined #ruby
chrisja has joined #ruby
away_ has quit [K-Lined]
saarinen has quit [Client Quit]
monkegjinni has joined #ruby
toastynerd has joined #ruby
CorySimmons has joined #ruby
jaimef has joined #ruby
sentinal8473 has quit [Quit: Textual IRC Client: www.textualapp.com]
Mongey has quit [Read error: Connection reset by peer]
Hanmac1 has quit [Ping timeout: 265 seconds]
Mongey has joined #ruby
WormDrink has quit [Read error: Connection reset by peer]
radic has joined #ruby
WormDrink has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
CorySimmons has quit [Client Quit]
tvw has quit []
mattmcclure has joined #ruby
magicrails has quit [Quit: magicrails]
<Soulcutter> apeiros: haters gonna hate
garbagecollectio has joined #ruby
francisfish has quit [Remote host closed the connection]
CorySimmons has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
jbarket has joined #ruby
yfeldblum has joined #ruby
nanoyak_ has joined #ruby
nanoyak has quit [Ping timeout: 240 seconds]
benzrf_ has joined #ruby
<benzrf_> PROPOSAL
<benzrf_> stick this into core ruby:
<benzrf_> class Symbol
<benzrf_> def call(*args, &blk)
<benzrf_> proc {|o| o.send(self, *args, &blk)}
<benzrf_> end
<benzrf_> end
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
mourest has quit [Read error: Connection reset by peer]
<benzrf_> now we cn do arr_of_hashes.map &:fetch.(:thingy)
<benzrf_> B)
<jbarket> Question. When I pass a block to a method, is it possible for the block to have access to instance variables inside of the method that's evaluating it?
<benzrf_> jbarket: if the method alows it...
heftig has joined #ruby
<benzrf_> *if it does instance eval
pu22l3r_ has quit [Remote host closed the connection]
<benzrf_> youd need to do evil black magic to do it from the block
WormDrink has quit [Ping timeout: 264 seconds]
CorySimmons has quit [Client Quit]
<centrx> A block has access to instance variables...?
pu22l3r has joined #ruby
Lewix has joined #ruby
<benzrf_> centrx: with instance_eval it does dunnit
x1337807x has joined #ruby
<centrx> Just a regular block too
x1337807x has quit [Max SendQ exceeded]
<centrx> benzrf_, He is saying a block, not define_method
zerun0_ has quit [Ping timeout: 244 seconds]
<benzrf_> >> class Foo; def initialize; @bar = 3; end; def test(&blk); instance_eval(&blk); end; end; Foo.new.test {puts @bar}
<eval-in> benzrf_ => 3 ... (https://eval.in/117477)
<benzrf_> =]
x1337807x has joined #ruby
<jbarket> Oh nice, thanks. That makes sense
<benzrf_> you lose ivars from the source thoonai
<benzrf_> *tho
<benzrf_> instance_eval is p common
thesheff17 has joined #ruby
<benzrf_> look @ sinatra
_maes_ has joined #ruby
juarlex has joined #ruby
zerun0_ has joined #ruby
saarinen has joined #ruby
vpretzel has quit [Quit: Adios!]
peterhu has quit [Quit: leaving]
retnuh has joined #ruby
nanoyak_ has quit [Ping timeout: 240 seconds]
peterhu has joined #ruby
<mist> .
spider-mario has joined #ruby
sarmiena_ has joined #ruby
<jbarket> OK so for the sake of knowledge, would it be possible to do something similar with a local variable and a block? Or would I be better off just assigning the local variable to an instance variable, then doing instance_eval?
shinobi_one has quit [Quit: shinobi_one]
blackmesa has joined #ruby
jaimef has quit [Excess Flood]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shime has joined #ruby
<toretore> certainty: ah, so that's why "ruby intarweb" didn't give me any results :P
bthesorceror has quit [Remote host closed the connection]
jaimef has joined #ruby
<certainty> toretore: :) but i for one would welcome such a thing for ruby, so if you have too much time ... :)
<centrx> jbarket, What is your actual code?
<benzrf_> jbarket: you could inject into the binding of the block
<benzrf_> but that's just evil
<benzrf_> jbarket: i would advise you to make a 'context' class with methods for getting certain values
<benzrf_> then inject the block into an instance
<benzrf_> p standard idiom i think
<apeiros> Soulcutter: sorry, was having dinner
WormDrink has joined #ruby
bthesorceror has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
<toretore> certainty: already started on it :P
Schmidt has quit [Quit: WeeChat 0.4.2]
<jbarket> at this point nothing, I'm just trying to evaluate my options. I realized I kind have... half the cart and half the horse, then the other half of each, so trying to figure out what the hell to do. sort of need to evaluate a passed in block inside of another block calling the outer block's variable
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jbarket> cool thanks for the ideas guys
phansch has joined #ruby
<jhass> jbarket: you could also sort of fake it by instance_eval'ing in an object that has methods that return the right values. But you really should just yield your values or an object with accessors for them
<apeiros> Soulcutter: yeah. I did expect a bit of blowback, but I really disliked his snarky first comment.
nisstyre has quit [Quit: bai]
<certainty> toretore: cool stuff
<toretore> always find myself making better wheels, because someone made a car and then welded the wheels to it
banister has joined #ruby
<apeiros> I mean I know I'm snarky and unpleasant too - on irc. I try not to by on less ephemeral media.
<toretore> reuse and composability, anyone heard of it?
ocx has quit [Ping timeout: 245 seconds]
jbarket has quit [Quit: Page closed]
mehlah has quit [Quit: Leaving...]
ikaros has quit [Quit: Ex-Chat]
pagios has quit [Excess Flood]
<toretore> apeiros: snark is how i refuel my passion
<certainty> no never, what was it again?
andikr has quit [Remote host closed the connection]
<toretore> snarky snark snark
<toretore> that is what they call me
pagioss has joined #ruby
<certainty> damn sometimes i miss a typesystem
<toretore> why can't i do !==
CorySimmons has joined #ruby
<toretore> :( :( :(
<toretore> i miss javascript
moted has quit [Quit: moted]
mjs2600_ has joined #ruby
<workmad3> toretore: open up a console in chrome and type away... get yourself a JS fix!
mjs2600_ has quit [Remote host closed the connection]
peterellisjones has quit [Quit: Leaving.]
<toretore> i do sometimes.. to remove those "you have to register to read this article" things
rdark has left #ruby [#ruby]
<toretore> usually it's just some element they put on top of it
whatasunnyday has quit [Quit: whatasunnyday]
jkamenik has quit [Read error: Connection reset by peer]
jkamenik1 has joined #ruby
obs has quit [Quit: Konversation terminated!]
nomenkun has joined #ruby
pwh has quit []
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<slash_nick> toretore: ah, clever... it usually makes me bugger off, but next time i'll see if i can just get at it
pushpak has joined #ruby
thesheff17_ has joined #ruby
Hanmac1 has joined #ruby
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
<Soulcutter> apeiros: I admit my initial reaction was negative because of the Object method, but I hope I was more constructive in my reaction
Steve445 has joined #ruby
craigp has joined #ruby
Evergrace has quit [Ping timeout: 240 seconds]
<toretore> slash_nick: i think they may be catching up to it though
<Soulcutter> apeiros: I think there's a big difference between giving feedback saying "I don't like that" or "that's bad" vs saying how you think it could be improved
timonv has quit [Remote host closed the connection]
zeeraw has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
whatasunnyday has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
ganthore has quit [Quit: Leaving]
<Soulcutter> apeiros: I struggle to interpret feedback constructively when it isn't necessarily written constructively... it is hard to not have that grate on you
nanoyak has joined #ruby
pwh has joined #ruby
jack_rabbit has joined #ruby
UserNameInvalid has joined #ruby
pierre1_ has quit [Ping timeout: 244 seconds]
momigi has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
momigi has joined #ruby
<Soulcutter> apeiros: I'm not sure I'd use that lib, but it's good to extract reusable snippets that you find yourself repeating, so good on ya
toastynerd has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 240 seconds]
shinobi_one has joined #ruby
momigi has quit [Read error: Connection reset by peer]
momigi has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
Xeago has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
charliesome has joined #ruby
mjs2600_ has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
dumdedum has quit [Quit: foo]
whatasunnyday has joined #ruby
shime_ has joined #ruby
whatasunnyday has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
havenwood has joined #ruby
<RubyPanther> Soulcutter, apeiros: seems like a good time to link this one, for any kids watching: http://yehudakatz.com/2009/11/12/better-ruby-idioms/
jglover has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jglover> if I was to start a ruby application, and then have that program write a new rb script, and then run it, would that work? I think it would if ruby was interpreted, but I know it wouldn't work for a compiled language like C++ or Java
shime has quit [Ping timeout: 240 seconds]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
MrJoshua has joined #ruby
oneawayman has joined #ruby
<slash_nick> jglover: as in - you have a script that writes a file, loads the file, and runs the file?
<jhass> jglover: it would work and even for java and c++ you could first automatically build it and then run the resulting binary. But the real question is why you would need that
codezomb has joined #ruby
<apeiros> Soulcutter: yeah. I can understand both criticism on and rejection of the lib. I don't particularly like that pattern myself.
<apeiros> Soulcutter: but I decided that if I use it, at least I do it better than by using a "magical" callback
Hobogrammer has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
<slash_nick> wakus-on: don't pm me webcam links please
<apeiros> Soulcutter: fun fact - there is a major disadvantage in the current implementation, but none of the critiques noticed
<jglover> slash_nick: jhass: well its really for a rails app. I need to create a model based on user input and then migrate etc, without restarting the server.
camilasan has joined #ruby
<jhass> slash_nick: spam bot, same as away_. Feel free to get ignored in #freenode. Maybe they realize that it might be a problem if they hear it 20-30 times a day
shaileshg has quit [Quit: Connection closed for inactivity]
maletor has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby
<apeiros> jhass: funny idea - lets spam #freenode with notes about the spammer :)
benzrf_ has quit [Quit: leaving]
<jhass> seriously, about a dozen people reported that now (it affects more channels than #ruby)
<RubyPanther> apeiros: " It is an anti-pattern because it violates two things: a) the callback mutates its argument. You generally only want methods to mutate the receiver, not its arguments. Inherit does that correctly." That is clearly a false statement. Ruby core methods ARE Ruby, they _can't_ be anti-patterns.
<jhass> all you get is to /ignore /mode +R
Pricey has joined #ruby
<apeiros> I remember them claiming that switching to dancer (or whatever the ircd is called) would enable better anti-spam measures…
<apeiros> RubyPanther: you're missing the point
<RubyPanther> apeiros: No, I am making another point
<RubyPanther> Just trust I got the point
<apeiros> RubyPanther: a) ruby can *very well* use anti-patterns. b) it's not a core method implementation which is the issue.
<apeiros> RubyPanther: no, you're missing *my* point entirely. also making wrong comparisons.
<RubyPanther> That way, you'll always give appropriate/relevant responses
<apeiros> "it's ruby core, it can't use anti-patterns" <-- odd fallacy.
jsilver has joined #ruby
<RubyPanther> I'm saying Matz decides what is Good in Ruby. The things that Ruby itself does, by design, cannot be "anti-patterns" IN RUBY. Maybe in some other context they are.
maasha has joined #ruby
<apeiros> yeah, what you say is wrong.
<apeiros> matz deciding to use something doesn't automagically make it "not an anti-pattern."
jglover has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
whatasunnyday has joined #ruby
jack_rabbit has joined #ruby
<RubyPanther> Maybe you think they're even bad, and wrong. And that is an opinion. It is fine. But anti-patterns are things that are actually wrong, things that cause real problems. Clearly wanting Ruby to be different than it is is just pundit-land opinion, not an actual "problem" with Ruby
MrLovejoy has joined #ruby
<Mon_Ouie> e.g. Using $SAFE = 4 (or $SAFE at all) was a bad idea even before they removed it
<maasha> this method is surprisingly slow: def is_alpha?(char); 65 <= char.ord and char.ord <= 122; end
<Mon_Ouie> maasha: How about ('a'..'z').cover? char
WormDrink has quit [Read error: Connection reset by peer]
<MrLovejoy> slahs_nick no spam yet
<maasha> Mon_Ouie: will that be faster?
<apeiros> RubyPanther: you're still missing the point and I'm not interested in pointing your nose even more on it.
<RubyPanther> include/extend are _supposed_to_ mutate the argument. That can't be an anti-pattern, because it is basic to Ruby
Speed has joined #ruby
<maasha> I was wondering if there was something low level and fast like the C macro is_alpha
<apeiros> RubyPanther: wrong. include/extend mutate the receiver.
<slash_nick> MrLovejoy: I've been joined for weeks... it's not "on join"
<apeiros> RubyPanther: I guess you meant included/extended?
v0n has joined #ruby
<Mon_Ouie> No idea, didn't try it. It makes more sense than using a magical number for 'A'/'z' (also I forgot to include capitals, I never remember which ones are first)
<RubyPanther> " It is an anti-pattern because it violates two things: a) the callback mutates its argument. You generally only want methods to mutate the receiver, not its arguments. Inherit does that correctly. " But a) is wrong. That can't be proof of something being an anti-pattern. What does it "violate?" Certainly not Ruby, or basic Ruby design or principles.
<MrLovejoy> im jsut wondering whats this channel for?
roolo has joined #ruby
<RubyPanther> Is it a good _general_ principle, sure. But include/extend isn't a general case, it is exactly the specific case where Ruby says it is the way it happens
jprovazn has joined #ruby
<apeiros> RubyPanther: look, if you actually listened (read) what the other says, I would be interested in this discussion
<centrx> maasha, regex [[:alpha]]
phantomtiger has quit [Quit: phantomtiger]
<apeiros> RubyPanther: unfortunately you've proven not to. so I don't bother.
<maasha> centrx: invoing the regex engine for each char in a tight loop is expensive
weaksauce has joined #ruby
jonathanwallace has quit [Ping timeout: 240 seconds]
<RubyPanther> apeiros: You've only repeated I'm wrong and missing your point :( You didn't "bother" in the first place.
bahar has quit [Changing host]
bahar has joined #ruby
<apeiros> RubyPanther: I've also pointed you to the point. you chose to ignore it. I choose not to repeat it.
<Mon_Ouie> maasha: I would try and benchmark all three suggestions (and other ones if you find any) to decide which one to use
jsilver has quit []
<RubyPanther> Assume that: A) I'm not "wrong" unless you've at least tried to make an _objective_ point that shows it and B) just take my word I understand your points, because *I DO*
mikecmpbll has joined #ruby
<RubyPanther> Otherwise, I wouldn't have bothered
<maasha> Mon_Ouie: or head straight for inline C
<Mon_Ouie> You could also go in between and use FFI to load isalpha from the libc
Skunky has joined #ruby
MrLovejoy has left #ruby [#ruby]
Skunky has left #ruby ["Leaving"]
<centrx> maasha, Well, let's test it out
nouitfvf has joined #ruby
<RubyPanther> It actually is useful to you, because I am also making a point, and I predict your gem will get more support if you adopt pro-Ruby reasoning in why it is good, instead of proposing it as a fix to the awful "anti-pattern" is actually just normal Ruby.
<maasha> Mon_Ouie: FFI?
thesheff17 has quit [Quit: Leaving]
<RubyPanther> Is it a better way, I'm not sure one way or the other. I'm sure it doesn't fix a problem with Ruby, though.
<Mon_Ouie> Foreign Function Interface. Allows you to interface with (most often C-written) library files
<maasha> Mon_Ouie: I never heard about that.
nouitfvf_ has quit [Ping timeout: 252 seconds]
pabloh has quit [Quit: Saliendo]
<Mon_Ouie> https://github.com/ffi/ffi has a few examples in the readme
moted has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
jonathanwallace has joined #ruby
<centrx> maasha, Range#cover? is about 45% faster than 65 <= char.ord && char.ord <= 122
<maasha> Mon_Ouie: interesting
craigp has quit []
saarinen has quit [Quit: saarinen]
<maasha> centrx: impressive. I should say that 65 <= char.ord && char.ord <= 122 was very low level, but surprise surprise.
<centrx> maasha, And none of the techniques could be called "slow"
<centrx> maasha, Even using the Regex is less than three-quarters of a second to test one million characters.
deadlock_ has quit [Ping timeout: 244 seconds]
jack_rabbit has quit [Ping timeout: 252 seconds]
whatasunnyday has joined #ruby
<centrx> So not sure what you are talking about
oso|away is now known as oso96_2000
npearson_ has joined #ruby
ouie has joined #ruby
npearson has quit [Ping timeout: 265 seconds]
<apeiros> RubyPanther: the part about reasoning why it's good instead of (just) telling why something else is bad I can agree with.
sk87 has joined #ruby
Al__ has quit [Quit: Al__]
<slash_nick> apeiros: not a fan of squeeze theorem?
elaptics is now known as elaptics`away
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
<apeiros> slash_nick: unaware of that. what's it say?
<maasha> centrx: my is_alpha? method is the bottleneck in this: https://gist.github.com/maasha/cfc094e162dc951fdead
weie has quit [Ping timeout: 265 seconds]
UserNameInvalid has quit [Read error: Connection reset by peer]
<slash_nick> well it's not exactly the same...
klue has quit [Ping timeout: 252 seconds]
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
perlsyntax has left #ruby ["Textual IRC Client: www.textualapp.com"]
sk87 has quit [Client Quit]
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
<centrx> maasha, How many characters are you testing?
<slash_nick> apeiros: The story is that if two policemen are escorting a drunk prisoner between them, and both officers go to a cell, then (regardless of the path taken, and the fact that the prisoner may be wobbling about between the policemen) the prisoner must also end up in the cell.
<centrx> maasha, Why manually parse the string instead of using Regex, which would probably be faster overall?
<slash_nick> apeiros: that's a non mathematical explanation ^
vpretzel has joined #ruby
npearson_ has quit [Ping timeout: 240 seconds]
hiyosi has quit [Read error: Operation timed out]
<maasha> centrx: I am testing 238M chars in my test case.
ScalaClient has joined #ruby
<maasha> centrx: for the real stuff it will be more
<sarmiena_> how do you open a file as binary?
oracal has joined #ruby
<apeiros> slash_nick: ok, I don't follow. what led you to ask whether I'm wasn't a fan of that?
WormDrink has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
CaptainJet has quit [Ping timeout: 252 seconds]
mjs2600_ has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<slash_nick> apeiros: reasoning that Y is good because Z is bad.. it's not exactly the same
<centrx> maasha, Why are you doing it this way instead of using Regex?
shaunbaker has quit [Remote host closed the connection]
<apeiros> slash_nick: ok. I still don't follow. to be clear: I don't argue that A is good because B is bad.
maletor has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
<slash_nick> oh my...
<apeiros> I argue A is a better way to do what is trying to be achieved with B, and that I don't approve of B because it's bad.
<maasha> centrx: I had a earlier version using Regex that was pretty fast. I thought I could do faster :o)
<centrx> maasha, No, Regex is faster. It has a number of tried-and-true optimizations and it is compiled in C.
<slash_nick> apeiros: versus "I'm doing A because B is bad (and A is not as bad)"... i'm not accusing you of anything
mikepack has joined #ruby
Umschwung has joined #ruby
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick> apeiros: just butting into your conversation with something that apparently doesn't make sense outside my world :)
<apeiros> slash_nick: I didn't think you did. but mainly because I completely don't understand what you try to say, sorry :-S
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
<maasha> centrx: sure. But this version could be implemented in inline C and that would be even faster.
lolmaus has joined #ruby
Y3K has joined #ruby
kate_r has quit [Ping timeout: 240 seconds]
<Y3K> \o
<Y3K> I'm not a ruby expert, actually I only use gems.
<Y3K> I tried o install SASS today
<Y3K> Got this https://dpaste.de/h10o
<Y3K> Any suggestion?
<Y3K> Thank you.
jack_rabbit has joined #ruby
<centrx> maasha, I doubt it
mcus has joined #ruby
Fyyr13_ has joined #ruby
<apeiros> Y3K: from the paths it seems like you installed ruby systemwide
<jhass> Y3K: let me quote: "You don't have write permissions for the /usr/lib/ruby/gems/2.1.0 directory."
<apeiros> Y3K: in that case you probably need `sudo gem install sass`
<Y3K> Yes I saw that.
<shevy> hmm when I have a library output into a logfile, where should that logfile reside?
<Y3K> But I had it installed before without problems.
<Y3K> The error happens only with 3.3
<Y3K> I don't want any gems installed systemwide...
<jhass> so gem install sass -v 3.2.15 works?
<Y3K> But ruby is.
<RubyPanther> shevy: libraries shouldn't lot, they should only print to STDERR as needed. Frameworks should have a log directory.
<RubyPanther> s/lot/log/
<jhass> Y3K: are you sure your setup didn't change instead?
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Y3K> jhass: I know my setup pretty well, didn't changed a thing.
<Y3K> And testing with 3.2
Xeago has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
oneawayman has quit [Read error: Operation timed out]
<maasha> can someone kill this spambot -> wakus-on?
hornairs has joined #ruby
<slash_nick> maasha: ask in Freenode
shinobi_one has quit [Quit: shinobi_one]
<slash_nick> #Freenode
<maasha> !ops
Fyyr13_ has quit [Ping timeout: 240 seconds]
claymore has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
lw has joined #ruby
<Y3K> Works flawlessly.
<Y3K> Some shiz happening with 3.3 trying to get systemwide.
zcreative has quit [Quit: Computer has gone to sleep.]
<Y3K> Can' somebody please kickout that wakus-on fag?! It's a bot sending SPAM over query
Notte has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
<RubyPanther> I'm not sure which I should be outraged about, the homophobic attack, or the spam?
<Y3K> Ahh, sorry.
<Y3K> I didn't meant that.
yfeldblum has quit [Remote host closed the connection]
<Y3K> My mother language isn't english so I'm not really used to offensive words.
<jhass> Y3K: join the complaints in #freenode
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
<Y3K> jhass: Thank you!
weeeems is now known as weems
<Y3K> Any suggestion regard the gem?
weems has quit [Changing host]
weems has joined #ruby
<RubyPanther> #freenode really took issue yesterday with my suggestion to use heavy-handed temporary bans on the ISPs they're using, so my advice, keep requesting that until it sounds normal to them
retnuh has quit [Quit: Textual IRC Client: www.textualapp.com]
<RubyPanther> as it is right now, they're not willing to do the things that would stop it
<RubyPanther> well, slow it
robert___ is now known as robert_
<Y3K> RubyPanther: Thanks for the heads up, and sorry if I offended in any way, wasn't intentional.
Fyyr13_ has joined #ruby
<RubyPanther> Y3K: No worries, it is a diverse channel :)
invinceable has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
<slash_nick> Seems like the world's been making stronger efforts these past couple of years toward encouraging tolerance and discouraging ... whatever it is (sexist,racist,homophobic,etc)
geopet has quit []
<jhass> Y3K: hmm, to me it sounds like https://github.com/nex3/sass/commit/a81052ef7537a22760188f81ddb63ae302db522f ignores the --user-install option you probably have in your .gemrc. I'm not sure who's to blame here, RubyGems or SASS though
<jhass> Y3K: workaround should be setting $GEM_HOME
sdouglas has joined #ruby
ndrei has joined #ruby
<jhass> (if you show me your gem env output I'll tell you to what)
senayar_ has joined #ruby
mark_locklear has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
Fyyr13_ has quit [Ping timeout: 244 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
CaptainJet has joined #ruby
relix has quit [Client Quit]
Steve445 has quit [Quit: Steve445]
<Y3K> jhass: Hey! Haven't tested but pretty sure you're right.
<Y3K> Thank you!
claymore has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 240 seconds]
<CorySimmons> Hey guys. What am I doing wrong? http://pastie.org/private/lnccrwcnzbamryzw9g
<slash_nick> CorySimmons: using pastie :)
<centrx> CorySimmons, Several things. Why do you ask?
<CorySimmons> I'm trying to detect if I can use `node.class.node_name`, if so, use it, if not, use `node_name node`
weaksauce has quit [Quit: off like a prom dress]
Xeago has joined #ruby
<jhass> for one thing not doing a problem description
<slash_nick> (it takes so long to load, i usually don't click on pastie links)
geopet has joined #ruby
<CorySimmons> Sorry, I was typing it =)
<Y3K> jhass: GEM_HOME should be ~/.gem or any directory in it?
<shevy> CorySimmons you should streamling that method - you seem to repeat the same thing there
<CorySimmons> shevy: What do you mean?
claymore has joined #ruby
<shevy> method = "visit_#{node.class.node_name}"
decoponio has quit [Quit: Leaving...]
<shevy> method = "visit_#{node_name node}"
<jhass> Y3K: .gem/ruby/2.1.0
noober3 has joined #ruby
sambao21 has joined #ruby
<shevy> then lateron you do the same again, only difference is that you use raise
<CorySimmons> node.class.node_name is the new Sass syntax for what used to be node_name node
<shevy> or another .send
<CorySimmons> Well, I mean, it's not even working
<shevy> lol
rickruby has joined #ruby
grzywacz has quit [Ping timeout: 265 seconds]
<CorySimmons> I guess I'm more concerned about the respond_to not working
<shevy> >> "abc".respond_to? :size
<eval-in> shevy => true (https://eval.in/117504)
<shevy> but respond_to? is working :)
enebo has joined #ruby
<CorySimmons> Am I using node.class wrong?
senayar_ has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 240 seconds]
shadoi1 has joined #ruby
<CorySimmons> (Sass specific)
<shevy> I have no idea, I never saw it used like that before though
senayar has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> omg
<shevy> sass used class vars?
shaunbaker has joined #ruby
<CorySimmons> That's where they update it from `node_name node` to `node.class.node_name node`
<shevy> @@node_names[node.class.name] ||= node.class.name.gsub(NODE_NAME_RE, '\\1').downcase
<shevy> good that I don't use sass
<CorySimmons> :)
kennym has quit [Quit: Leaving.]
<CorySimmons> I don't either
havenwood has quit [Remote host closed the connection]
<CorySimmons> I'm actually working on a Sass2Stylus converter
<shevy> that is a nice commit though, I like the title
<CorySimmons> But I want to cover old and new versions of Sass
<shevy> " Don't use Class vars. "
<CorySimmons> rofl
<CorySimmons> Dat irony
havenwood has joined #ruby
afreidah4 has joined #ruby
<Y3K> I like SASS quite enough, but I don't like Ruby too much (sorry! No hate)
shaunbak_ has joined #ruby
<Y3K> I'd love to have SASS built on Node.js ie
<shevy> I let ruby autogenerate all css I ever need anyway
mjs2600 has joined #ruby
<Y3K> shevy: Ruby itself? Or a Gem?
<shevy> Y3K well some scripts
afreidah3 has quit [Ping timeout: 240 seconds]
<Y3K> Interesting.
CaptainJet has joined #ruby
<shevy> they are spread all over my filesystem though :\
charliesome has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
<Y3K> jhass: SASS 3.3 installed, thanks for your help. I do appreciate it!
stef_204 has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
<CorySimmons> Y3K: Sass is on node
<CorySimmons> node-sass
<CorySimmons> built from libsass
bigkevmcd has quit [Ping timeout: 252 seconds]
bogeyd6 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<shevy> CorySimmons are you using rails or something in addition?
<Y3K> CorySimmons: I remembered checking that before, there was something... Can't remember what, that make me skip it.
hornairs_ has joined #ruby
<Y3K> But I'll check it again for sure, thanks for the heads up.
havenwood has quit [Ping timeout: 244 seconds]
shaunbaker has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
Mongey has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<RubyPanther> I try hard to hate SASS, I just wish CSS was slightly better so I could manage it
<Y3K> RubyPanther: I used to use vanilla CSS always until about... 2 months ago. I never complaint, but when I used a pre-processor I knew it was the right stuff :P
<etqqkoiflwhb> Y3K: If not Ruby, whats your goto language?
sepp2k has joined #ruby
charliesome has quit [Ping timeout: 268 seconds]
maximski has quit [Remote host closed the connection]
<Y3K> etqqkoiflwhb: Mostly Python (yes, Django lover here) and JavaScript (or actually Coffee, Meteor.js and Node.js)
hornairs has quit [Ping timeout: 241 seconds]
bigkevmcd has joined #ruby
tripwired has quit []
phantomtiger has joined #ruby
jjbohn|afk has quit [Read error: Connection reset by peer]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jjbohn has joined #ruby
chipotle has joined #ruby
<RubyPanther> I prefer to just use erb to integrate, but then I just can't manage to claim it is a better way ;)
<AlexRussia> Hi! Who here used TeX and why you use him?
<shevy> Y3K what do you like about django most?
<AlexRussia> RubyPanther: shevy hi bros!
<RubyPanther> AlexRussia: I used TeX to stand in Knuth's shadow
razibog has quit [Quit: Leaving.]
<AlexRussia> RubyPanther: lol, you death in shadow?hihihihi
* AlexRussia in process intall lyx
<Y3K> shevy: _almost_ everything... Fast as hell (which is the main reason I don't like Ruby, I reckon I haven't played with it too much yet and most of its gems are really usable, but I've read many complaints about it's speed).
<AlexRussia> install*
Speed has left #ruby ["WeeChat 0.4.3"]
<Y3K> Also secure, easy, clear, robust, etc.
<Y3K> Not perfect neither, but definetely one of the best Frameworks I've work with.
<AlexRussia> also, some time ago i try haskell......ruby some like haskell......just don't compile XD
adefa has quit [Quit: Lost terminal]
<centrx> Y3K, I doubt it is significantly faster than Ruby any more
<etqqkoiflwhb> Y3K: Fast as in, fast startup time?
<RubyPanther> AlexRussia: More seriously, I use TeX when I want to automate generation of printable documents, but I want to be able to make minor changes without regenerating
zcreative has joined #ruby
yeticry has joined #ruby
<RubyPanther> For most people ruby+pdf is probably a better choice
<Y3K> centrx, etqqkoiflwhb: I reckong I haven't take the time to really test myself, but I've mostly heard about HIGH consume of resources, in case of SASS the process speed and I've tested gem install and it's plain slow.
ouie has quit [Ping timeout: 240 seconds]
lachesis has joined #ruby
<shevy> hmm gem can be slow when installing documentation
<AlexRussia> RubyPanther: but possible convert TeX to PDF, i sound.....
CorySimmons has quit [Quit: Zzz...]
shinobi_one has joined #ruby
<centrx> Y3K, Gem is only slow at generating documentation
CorySimmons has joined #ruby
<Y3K> I'm an ignorant about Ruby, so I'm sure my "complaints" are probably very bad :)
npearson has joined #ruby
<Y3K> As I said, no hate (at all)
<AlexRussia> RubyPanther: anyway, lyx possible
<RubyPanther> AlexRussia: Sure but since TeX is a special purpose programming language, IMO there should be a real reason to bother with it
<Y3K> Ok, I gotta go.
acrussell has quit [Quit: Leaving.]
<Y3K> Thanks for your help guys, this' a very comfortable community indeed.
<Y3K> See ya.
shaunbak_ has quit []
<AlexRussia> RubyPanther: Oo, programming langulage?
shinobi_one has quit [Client Quit]
relix has joined #ruby
<AlexRussia> RubyPanther: not markup?
<RubyPanther> Right
<RubyPanther> like postscript
camilasan has quit [Quit: Konversation terminated!]
axl_ has quit [Quit: axl_]
<RubyPanther> The vast majority of people are better off, IMO, with a general purpose language + markup
<AlexRussia> RubyPanther: :)
<AlexRussia> RubyPanther: maybe, some gems support TeX?
jaimef has quit [Excess Flood]
Y3K has left #ruby [#ruby]
<AlexRussia> RubyPanther: convert to some....
<AlexRussia> RubyPanther: this is also FUN version system!
<RubyPanther> AlexRussia: Sure, but why would you want it?
armyriad has quit [Ping timeout: 242 seconds]
<AlexRussia> RubyPanther: but i think, need chooise 'e' like constant, is REally Very Big Number.
nomenkun has quit [Remote host closed the connection]
<AlexRussia> RubyPanther: cause i want it ;)
kemist has quit [Quit: Textual IRC Client: www.textualapp.com]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<RubyPanther> If you're just converting, then there is no advantage to having a full programming language in the document, for example, it is better to convert to PDF than to PS because they will both print the same, assuming you have PS support
nomenkun has joined #ruby
havenwood has joined #ruby
<AlexRussia> RubyPanther: i want web face for it!
bthesorceror has quit [Remote host closed the connection]
<RubyPanther> web face? x.X
ktosiek has joined #ruby
<AlexRussia> RubyPanther: cause i get some crazy situation, when i'm impossible using some program for conver tex ot lyx to some formats
npearson has quit [Remote host closed the connection]
npearson has joined #ruby
<RubyPanther> AlexRussia: If you work in academia, then LyX/TeX is probably a good choice
rezzack has joined #ruby
<AlexRussia> RubyPanther: i'm student XD
sski has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<RubyPanther> Well, then you'll probably get stuck using all the formats possible at some point ;)
<centrx> AlexRussia, Tex is best for typesetting
toastynerd has quit [Remote host closed the connection]
<AlexRussia> centrx: Hi man
monkegjinni has quit [Remote host closed the connection]
mforrester has quit [Read error: Operation timed out]
toastynerd has joined #ruby
monkegjinni has joined #ruby
<AlexRussia> RubyPanther: wut?
nomenkun has quit [Ping timeout: 240 seconds]
<RubyPanther> All the advantages of TeX are when you're writing the source by hand. Using a GUI tool, it doesn't matter what format you use except that you can print it and exchange it with the people you need to exchange with
<AlexRussia> RubyPanther: i think, tex is good for write some math!
<shevy> hmmm
<RubyPanther> In the old days where all the good tools were commercial, TeX had a serious use case as the free option that could actually do accurate typesetting ;)
<shevy> __method__ only returns a symbol right?
garbagecollectio has quit [Quit: garbagecollectio]
jaimef has joined #ruby
jackneill has quit [Remote host closed the connection]
<AlexRussia> RubyPanther: also, TeX is maybe first open software
<certainty> shevy: yupp
<RubyPanther> >> Object.send :__method__
<eval-in> RubyPanther => nil (https://eval.in/117521)
<AlexRussia> \rmy friend reply me, say, TeX is best over 40 last years!
<RubyPanther> *gasp*
toastynerd has quit [Remote host closed the connection]
<shevy> hmm hmm hmm
<centrx> RubyPanther, What are you proposing as an alternative to tex?
<certainty> shevy: what do you want?
<shevy> certainty dunno yet, just debugging something right now
hyperboreean has quit [Ping timeout: 264 seconds]
<certainty> ah i see
cescalante is now known as ce_afk
Voodoofish430 has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
<RubyPanther> centrx: general purpose language -> PDF
boboc has joined #ruby
<etqqkoiflwhb> is there an irc channel for rails?
<shevy> etqqkoiflwhb #RubyOnRails
yfeldblum has joined #ruby
m8 has quit [Quit: Sto andando via]
<etqqkoiflwhb> shevy: can;t connect, says invite only
<shevy> etqqkoiflwhb yeah, you must register at freenode before you can join
<RubyPanther> or, whatever the format of the GUI tool is because as a GUI tool user it doesn't matter, you're using it as if it was markup
monkegjinni has quit [Ping timeout: 240 seconds]
<shevy> wakus-on is spamming :(
Czupa has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_afk
CorySimmons has quit [Quit: Zzz...]
<centrx> RubyPanther, Does your "general purpose programming language" handle spacing, hyphenation, and justification?
sparrovv has joined #ruby
Macaveli has joined #ruby
<RubyPanther> shevy: /ignore *@90.174.0.140 ALL
<shevy> hmm is that him?
<RubyPanther> centrx: + PDF
klue has joined #ruby
weaksauce has joined #ruby
<centrx> RubyPanther, Where can I find a reference for the PDF language?
Vovko has joined #ruby
saarinen has joined #ruby
nanoyak has joined #ruby
<art-solopov> centrx: If you need PDF specs, they're here: pdf.editme.com/PDFREF
<RubyPanther> centrx: I would use the reference for the generator instead
lw has quit [Quit: s]
sdouglas has quit [Remote host closed the connection]
<centrx> art-solopov, Downloading these files from Adobe doesn't seem to be working
<RubyPanther> If your use case makes it truly worth learning a full language just for document layout, then TeX is the obvious winner. I'm just saying it is niche knowledge few people need, including people who generate documents that have to print accurately
<centrx> RubyPanther, What is the generator?
morenoh149 has joined #ruby
<centrx> RubyPanther, You don't need to learn the full language for tex to be useful
<centrx> RubyPanther, It is pretty simple markup
<RubyPanther> centrx: There are pdf generators in all the modern languages, because that is what is used for printable business documents
<RubyPanther> TeX is not markup, it is a complete programming language
<centrx> Which you don't need to know to make use of it to create documents
<art-solopov> RubyPanther: Markup covers 80% of use cases.
<RubyPanther> art-solopov: I'd give a much much larger fake statistic :) :)
cescalante is now known as ce_afk
whatasunnyday has quit [Quit: whatasunnyday]
afex has joined #ruby
<jonnyro> I am using ActiveResource to pull down data from a REST service. I would like to cache my retrieved results so that I do not have to re-request the same data across program runs. Any tips on how i should marshall/store the data?
Shidash has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
chrisja has quit [Quit: leaving]
<art-solopov> RubyPanther: Well, I didn't really have to learn programming parts of LaTeX until guys at the uni started giving out some weird requirements. And then again, I just learned a couple commands to reset counters and such.
kennym has joined #ruby
boboc has quit [Remote host closed the connection]
boboc has joined #ruby
agent_white has joined #ruby
ktosiek_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<agent_white> Afternoon folks
shinobi_one has joined #ruby
hornairs_ has quit [Remote host closed the connection]
<Soulcutter> jonnyro: pick a cache key naming scheme that works for your resource, then store the response body as a string (assuming you only care about the response body and it IS a string)
wgosling has joined #ruby
hornairs has joined #ruby
maasha has quit [Quit: Page closed]
sdouglas has joined #ruby
sambao21 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Solnse has joined #ruby
shinobi_one has quit [Client Quit]
ktosiek has quit [Ping timeout: 265 seconds]
timonv has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
toastynerd has joined #ruby
rickruby has quit [Remote host closed the connection]
axl_ has joined #ruby
pu22l3r_ has joined #ruby
fxkr has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
juarlex has quit [Remote host closed the connection]
francisfish has joined #ruby
afreidah has joined #ruby
RaCx has joined #ruby
Squarepy has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 265 seconds]
alvaro_o has joined #ruby
afreidah4 has quit [Ping timeout: 245 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
etqqkoiflwhb has quit [Ping timeout: 265 seconds]
tylersmith has joined #ruby
klaut has quit [Remote host closed the connection]
freezey has joined #ruby
shevy has joined #ruby
npearson has quit [Remote host closed the connection]
randomnick_ has joined #ruby
kirun has quit [Quit: Client exiting]
magicrails has joined #ruby
<magicrails> is there a way to have a global setter or getter method in ruby
<magicrails> that affects all classes
centrx has quit [Quit: All this computer hacking is making me thirsty]
hfp is now known as hfp`away
<fxkr> hi! im on Ruby 2.1.0. i try to run "gem install", but it gets stuck in an endless loop of connection attempts. deleting ~/.gem didnt help. "--debug" output here: http://fxkr.net/rubyproblem.txt -- any ideas?
hobodave has quit [Ping timeout: 240 seconds]
<magicrails> I am trying, in Ruby, to override a default accessor method for a standard object. I basically want to funnel all getters through a common super method, without having direct control of any of the defined attributes(in derived classes and such).
<shevy> magicrails well, what will you do if the class in question does not have a setter defined?
timonv has joined #ruby
kaldrenon has joined #ruby
hornairs has quit [Quit: hornairs]
<shevy> magicrails you can iterate over all objects in ObjectSpace, and collect all classes into an array, then iterate over them all and try to modify them on the fly
<magicrails> The problem I am trying to solve - a callers class may or may not have an attribute defined that they expect to be present (due to versioning, serialization etc). I want the system to be smart enough to detect this and react without having to refresh its class definition every time...or crash
agent_white has quit [Quit: brb]
end_guy has quit [Remote host closed the connection]
geekbri has quit []
Xeago has quit [Remote host closed the connection]
Jetchisel has joined #ruby
centrx has joined #ruby
<magicrails> would that be a performant way of doing?
mikecmpbll has quit [Quit: i've nodded off.]
vlad_starkov has joined #ruby
<centrx> magicrails, Why would you do that?
<magicrails> i dont know
<magicrails> why not
Xeago has joined #ruby
baroquebobcat has quit [Ping timeout: 264 seconds]
<magicrails> does the obejctspace method work?
hfp`away is now known as hfp
<magicrails> shevy: do u still have to refresh the class definition in that case
jaimef has quit [Excess Flood]
Spami has quit [Quit: This computer has gone to sleep]
Slavox is now known as Slavox|AFK
Xeago has quit [Remote host closed the connection]
<magicrails> ??
<magicrails> ??
<magicrails> shevy: what would be code to do this
deadlock_ has joined #ruby
sambao21 has joined #ruby
gener1c has quit [Remote host closed the connection]
jprovazn_afk is now known as jprovazn
shinobi_one has joined #ruby
Slavox|AFK is now known as Slavox
rococo has joined #ruby
chrisseaton has joined #ruby
npearson has joined #ruby
jaimef has joined #ruby
wakus-on has quit [K-Lined]
magladroth has joined #ruby
pfg has joined #ruby
magladroth has left #ruby [#ruby]
charliesome has joined #ruby
workmad3 has quit [Read error: Operation timed out]
Zaratustra has joined #ruby
Vovko has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
RaCx has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
quatron has joined #ruby
<magicrails> Lets assume, for argument sake (and because its currently the case) that I don't have access to the *modified* class definitions at run-time, only on creation/save time.
__greg has joined #ruby
zachallett has quit [Remote host closed the connection]
jkamenik1 has quit [Quit: Leaving.]
ScalaClient has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
Gadgetoid has quit [Read error: Operation timed out]
<magicrails> how do i do it on creation/save time?
aryaching has quit [Ping timeout: 252 seconds]
<magicrails> when a class is being "created" vs "at run time"
axsuul has quit [Ping timeout: 240 seconds]
jonnyro has quit [Quit: Lost terminal]
senayar has joined #ruby
lw has joined #ruby
flowerhack has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
nari has quit [Read error: Operation timed out]
Squarepy has joined #ruby
tonni has joined #ruby
shevy has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
grzywacz has joined #ruby
RaCx has joined #ruby
Gadgetoid has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
rickruby has joined #ruby
danshultz has quit [Remote host closed the connection]
terrellt has left #ruby [#ruby]
danshultz has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
mehlah has joined #ruby
hobodave has joined #ruby
mary5030 has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
mary5030 has joined #ruby
paulfm has quit []
art-solopov has quit [Quit: Konversation terminated!]
Spami has joined #ruby
Vovko has joined #ruby
agent_white has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
rudisimo has quit []
dblessing has quit [Quit: dblessing]
mforrester has joined #ruby
mikecmpbll has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
noober3 has quit [Quit: IceChat - Keeping PC's cool since 2000]
IceyEC has quit [Quit: IceyEC]
Steve445 has joined #ruby
popl has quit [Quit: Touch the frog.]
nanoyak has quit [Ping timeout: 244 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
boboc has quit []
shevy has joined #ruby
magoo_ has joined #ruby
hfp is now known as hfp`away
mikepack_ has joined #ruby
Jetchisel has quit [Ping timeout: 256 seconds]
nanoyak has joined #ruby
agent_white has quit [Quit: leaving]
_HolyCow has quit [Quit: Leaving.]
WormDrink has quit [Ping timeout: 240 seconds]
philcrissman has joined #ruby
tekaos has joined #ruby
tekaos has quit [Client Quit]
magoo has quit [Ping timeout: 264 seconds]
CreativeEmbassy has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
momigi has quit [Read error: Connection reset by peer]
mjs2600 has quit [Remote host closed the connection]
lw has quit [Quit: s]
BeingUntoDeath has joined #ruby
axl_ has quit [Quit: axl_]
shevy has quit [Ping timeout: 265 seconds]
momigi has joined #ruby
terrellt has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
sambao21 has joined #ruby
hobodave has quit [Ping timeout: 244 seconds]
freezey has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 244 seconds]
Vovko has quit [Remote host closed the connection]
mary5030 has joined #ruby
<BeingUntoDeath> How are windows forms referenced in Ruby? I'm coming from using VS for C#... very little experience with either.
hfp`away is now known as hfp
CorySimmons has quit [Quit: Zzz...]
newbie1r has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
WormDrink has joined #ruby
<shinobi_one> BeingUntoDeath: are you talking about iron ruby?
rayners has quit [Remote host closed the connection]
ce_afk is now known as cescalante
dkamioka has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
Fyyr13_ has joined #ruby
cescalante is now known as ce_afk
shadoi1 has quit [Quit: Leaving.]
armyriad has joined #ruby
CorySimmons has joined #ruby
<BeingUntoDeath> I suppose I am! Not sure. New to this. Thank you. :)
ScalaClient has joined #ruby
chipotle has quit [Quit: cya]
<magicrails> I am trying, in Ruby, to override a default accessor method for a standard object. I basically want to funnel all getters through a common super method, without having direct control of any of the defined attributes(in derived classes and such).
<magicrails> do i use method missing to do this
klue has quit [Ping timeout: 244 seconds]
<bnagy> you can't, if I understand you correctly
<bnagy> method_missing is for when a method is missing
Fyyr13_ has quit [Ping timeout: 240 seconds]
<magicrails> bnagy: as opposed to what
<soahccc> magicrails: what do you mean by standard object? ruby core object?
<bnagy> well if something has a method defined then it's defined, ergo not missing
<bnagy> you could try a simple wrapper class with a method missing dispatcher to the real thing
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> class Wrapper;def initialize; @real = Blah.new; end; def method_missing meth, *args; # do stuff
CorySimmons has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
zcreative has joined #ruby
shadoi1 has joined #ruby
fxkr has left #ruby [#ruby]
<magicrails> The problem I am trying to solve - a callers class may or may not have an attribute defined that they expect to be present (due to versioning, serialization etc). I want the system to be smart enough to detect this and react without having to refresh its class definition every time...or crash
<bnagy> yeah I read it in scrollback, but I can't parse it
charliesome has joined #ruby
<magicrails> lol
tvw has joined #ruby
lw has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jetchisel has joined #ruby
monkegjinni has joined #ruby
lw has quit [Client Quit]
jkamenik has joined #ruby
it_tard has quit [Quit: yawn]
mary5030 has quit [Ping timeout: 244 seconds]
<Soulcutter> magicrails: I think you should rethink this approach. There's got to be a better way
not_a_guest has joined #ruby
sski has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
sski has joined #ruby
postmodern has joined #ruby
jprovazn has quit [Quit: Odcházím]
Steve445 has quit [Quit: Steve445]
away_ has joined #ruby
vlad_starkov has joined #ruby
juarlex has joined #ruby
jkamenik has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
magicrails has quit [Quit: magicrails]
jaxxstorm has left #ruby [#ruby]
magicrails has joined #ruby
CorySimmons has quit [Client Quit]
shevy has quit [Ping timeout: 265 seconds]
jaimef has joined #ruby
sski has quit [Ping timeout: 265 seconds]
DaniG2k has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
afex has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
weie has joined #ruby
axl_ has quit [Client Quit]
shevy has quit [Ping timeout: 240 seconds]
away_ has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
sdouglas has joined #ruby
Xeago has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
duggiefresh has joined #ruby
klue has joined #ruby
sdouglas has quit [Ping timeout: 252 seconds]
BeingUntoDeath has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
sambao21 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<slash_nick> a better way, ahhh yeeeeah
<centrx> What's going on
tils has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
magicrails has quit [Quit: magicrails]
<slash_nick> centrx: i'm a baller, i'm a twenty inch crawler, blades on impala... etc
Sawbones has joined #ruby
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
maroloccio2 has quit [Quit: WeeChat 0.4.3]
afex has joined #ruby
CorySimmons has joined #ruby
freerobby has quit [Quit: Leaving.]
crystal77 has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
blandflakes has quit [Quit: Page closed]
danshultz has joined #ruby
CorySimmons has quit [Client Quit]
michaeldeol has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
slowcon has quit []
magicrails has joined #ruby
shevy has joined #ruby
Gadgetoid has quit [Read error: Operation timed out]
francisfish has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
havenwood has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
einarj has joined #ruby
havenwood has joined #ruby
Al__ has joined #ruby
sputnik13 has quit [Ping timeout: 265 seconds]
<shinobi_one> slash_nick: did you butcher that on purpose?
Naoe-Kanno has joined #ruby
SHyx0rmZ has quit [Ping timeout: 269 seconds]
Celm has quit [Remote host closed the connection]
jamto11 has quit []
jpierre03 has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
irc_gulliver has joined #ruby
thesheff17_ has quit [Quit: Leaving]
PhilK_ is now known as PhilK
toastynerd has joined #ruby
zz_jrhorn424 is now known as jrhorn424
irc_gulliver has left #ruby [#ruby]
Al__ has quit [Read error: Connection reset by peer]
nanoyak has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 240 seconds]
klue has quit [Ping timeout: 244 seconds]
morenoh149 has left #ruby [#ruby]
Al__ has joined #ruby
stringoO has quit [Quit: stringoO]
Celm has joined #ruby
Umschwung has quit []
zachallett has joined #ruby
tstrokes has quit [Quit: Bye]
Tamae has joined #ruby
nanoyak has joined #ruby
klaut has joined #ruby
magoo_ has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Ping timeout: 240 seconds]
meatherly has quit [Remote host closed the connection]
magoo_ has joined #ruby
claymore has quit [Quit: Leaving]
alexju_ has quit [Remote host closed the connection]
erikruthven has joined #ruby
meatherly has joined #ruby
<slash_nick> shinobi_one: i doubt it
james_d_h has joined #ruby
<ceej> what is the best way to do a select on an array but keep the index?
whomp has joined #ruby
<slash_nick> hmm... convert it to a hash of index/value pairs and select the values you want
oneawayman has joined #ruby
nisstyre has joined #ruby
lw has joined #ruby
danshultz has quit [Remote host closed the connection]
<ceej> slash_nick: that's what I was thinking....
godd2 has joined #ruby
magoo has joined #ruby
danshultz has joined #ruby
<slash_nick> ceej: seems intuitive then
<godd2> Is it code smell to expect a block to return a particular type?
Macaveli has quit [Ping timeout: 252 seconds]
<ceej> slash_nick: thanks, I just wanted to make sure there wasn't a ruby method for this I was missing
<slash_nick> ceej: nothing jumps to mind
sambao21 has quit [Quit: Computer has gone to sleep.]
magoo_ has quit [Ping timeout: 240 seconds]
shadoi1 has quit [Quit: Leaving.]
<shinobi_one> slash_nick: haha ok
meatherly has quit [Ping timeout: 264 seconds]
pwh has quit []
<shinobi_one> slash_nick: wasn't sure if i was missing something or not
FenixFyreX has joined #ruby
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick> shinobi_one: i just passed along what google gave me ;)
<slash_nick> see where that got me :)
baroquebobcat has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
xaq has joined #ruby
<shinobi_one> slash_nick: copy paste works better :P
danshultz has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
<shinobi_one> slash_nick: jk you used the first verse and not the chorus
yarou has quit [Remote host closed the connection]
<slash_nick> yeah,i figured i continued from "there's got to be a better way"
niftylettuce_ has joined #ruby
crystal77 has joined #ruby
<shinobi_one> better way, better way, yeahh yeahhh
lw has joined #ruby
ndrei has joined #ruby
fgo has joined #ruby
magoo has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
<FenixFyreX> Hello, can anyone help me with building the ruby glfw3 gem? I have gotten pkg-config and cmake and mingw installed on my pc, however when the cmake is run it says it cannot find the package 'glfw3'..I' assuming this is a *.pc file, however I'm not sure where pkg-config looks at on Windows..
whatasunnyday has joined #ruby
kllyy has joined #ruby
Vovko has joined #ruby
lmickh has joined #ruby
jeregrine has joined #ruby
duggiefresh has quit [Remote host closed the connection]
<bnagy> FenixFyreX: me neither, but if you have it installed with mingw or whatever, you should be able to run it with --debug or whatever?
<bnagy> otherwise it should respect the env variable? I guess?
chris_thomson has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<bnagy> like there's a PKGCONFIG_PATH env var or something
Salve_ has quit [Remote host closed the connection]
Salve has joined #ruby
Elico has quit [Read error: Connection reset by peer]
klue has joined #ruby
<FenixFyreX> bnagy: Yeah, PKG_CONFIG_PATH
sambao21 has joined #ruby
<FenixFyreX> I need to know how to modify it
Vovko has quit [Ping timeout: 252 seconds]
<FenixFyreX> or read it?
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
hermanmunster has joined #ruby
diegovio1 has joined #ruby
SCommette has quit [Quit: SCommette]
jimmyy has joined #ruby
relix has joined #ruby
jimmyy has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: Connection reset by peer]
relix has quit [Client Quit]
<tfittsy> I'm trying to test if a string matches a regexp. using rubular I have this expression that works ^\d{1}[A-Z]-\d{2}-\d{2}-\d{2}$ but if I do valid = Regexp.new("^\d{1}[A-Z]-\d{2}-\d{2}-\d{2}$").freeze '1A-27-03-01'.match valid I get nil
Notte has quit [Remote host closed the connection]
jimmyy has joined #ruby
oracal has quit [Quit: Leaving]
monkegjinni has joined #ruby
sailias has joined #ruby
jimmyy has quit [Max SendQ exceeded]
spider-mario has quit [Remote host closed the connection]
<apeiros> tfittsy: you should use regex literals
saarinen has quit [Quit: saarinen]
<apeiros> by using a string, your escaping is wrong
<apeiros> >> "\d" == "d"
<eval-in> apeiros => true (https://eval.in/117676)
jimmyy has joined #ruby
<apeiros> >> /^\d{1}[A-Z]-\d{2}-\d{2}-\d{2}$/
<eval-in> apeiros => /^\d{1}[A-Z]-\d{2}-\d{2}-\d{2}$/ (https://eval.in/117677)
axl_ has joined #ruby
jimmyy has quit [Max SendQ exceeded]
diegovio1 is now known as diegoviola
<apeiros> you want that, but with your regex construction from string, you get:
<apeiros> >> Regexp.new("^\d{1}[A-Z]-\d{2}-\d{2}-\d{2}$")
<eval-in> apeiros => /^d{1}[A-Z]-d{2}-d{2}-d{2}$/ (https://eval.in/117678)
agarie has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 252 seconds]
jimmyy has joined #ruby
<apeiros> also freezing a regex is pointless
yfeldblum has quit [Read error: Connection reset by peer]
Al__ has quit [Quit: Al__]
<tfittsy> I just copied that from a benchmark, but thanks.
jimmyy has quit [Max SendQ exceeded]
magoo has joined #ruby
npearson has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
<apeiros> tfittsy: well, I hope you understood what I said, and don't just copy & paste…
kllyy has left #ruby [#ruby]
kllyy has joined #ruby
zachallett has quit [Remote host closed the connection]
jimmyy has joined #ruby
kllyy has left #ruby [#ruby]
monkegjinni has quit [Ping timeout: 244 seconds]
jimmyy has quit [Max SendQ exceeded]
<tfittsy> apeiros: sorry, interrupted. I'll make sure I get it in just a minute and let you know if I have any questions
kllyy has joined #ruby
Avahey_ has joined #ruby
teenwolf has joined #ruby
jobewan has quit [Quit: Leaving]
jimmyy has joined #ruby
freezey has joined #ruby
jimmyy has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
sethen has quit [Ping timeout: 240 seconds]
jimmyy has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<bnagy> FenixFyreX: env vars are in the computer right click properties thing somewhere I think
DaniG2k has quit [Quit: leaving]
rlb3 has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
Shidash has quit [Read error: Connection reset by peer]
geggam has quit [Remote host closed the connection]
kllyy has quit []
klue has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 265 seconds]
shevy has joined #ruby
Shidash has joined #ruby
jpierre03 has joined #ruby
sailias has quit [Quit: Leaving.]
__greg has quit []
pwh has joined #ruby
FenixFyreX has quit [Quit: Page closed]
sailias has joined #ruby
tjr9898 has quit [Remote host closed the connection]
pawprint has joined #ruby
<pawprint> when using ERB, do i need whitespace withing <%= foo %>
iliketurtles has quit [Quit: zzzzz…..]
<pawprint> or can i just use <%=foo%>
james_d_h has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<apeiros> seems to work fine without whitespace
benzrf has joined #ruby
<benzrf> hey yall
polydius has joined #ruby
<apeiros> pawprint: you could try that out yourself just the way I did - open up irb/pry and simply try.
<benzrf> i finally understand delimited continuations
<benzrf> (⊙ω⊙)
<fraterlaetus> Hey guys,
shevy has quit [Ping timeout: 264 seconds]
cover has quit [Ping timeout: 244 seconds]
<tfittsy> apeiros: sorry, still trying to understand. so should it be valid = Regexp.new(/^d{1}[A-Z]{1}-d{2}-d{2}-d{2}$/) without being in a string? that doesn't throw errors at me but it still doesn't show as a match.
<benzrf> hey fraterlaetus
<benzrf> jesus christ regexes
<benzrf> ;-;
<benzrf> *regexen
<apeiros> tfittsy: leave that Regexp.new away
<apeiros> tfittsy: you don't do String.new("foobar") either
momigi has quit [Remote host closed the connection]
<fraterlaetus> I'm still learning at this, so please be patient if I'm off the plot with regards to Ruby
<benzrf> >> String.new
<tfittsy> ok, I tried that too, with just valid = /^d{1}[A-Z]{1}-d{2}-d{2}-d{2}$/
<benzrf> >> String(3)
<eval-in> benzrf => "3" (https://eval.in/117689)
<benzrf> o:
<fraterlaetus> So, I made an array of hashes out of the output of 'lsblk'
<benzrf> >> String.new + 'test'
<eval-in> benzrf => "test" (https://eval.in/117690)
<benzrf> >> String.new
<eval-in> benzrf => "" (https://eval.in/117691)
<benzrf> huh
<pawprint> apeiros: how can i try it in pry? this doesn't seem to work: http://bpaste.net/show/187378/
<fraterlaetus> I want to test A: if the first three characters of "NAME" match any of the other "NAME"s in the array
<fraterlaetus> and B: if there are any matching "SIZE"s
<apeiros> tfittsy: "I tried". so?
<apeiros> I tried to. works for me.
<apeiros> pawprint: you require erb, create an erb instance with a template containing your example, and run it
<pawprint> ah
<pawprint> thanks
SCommette has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
<tfittsy> apeiros: got it, thank for your help.
phantomtiger has quit [Quit: phantomtiger]
rococo has joined #ruby
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fraterlaetus> I've got more of an idea as to how to accomplish B
<fraterlaetus> but A is a mystery to me.
Mongey has joined #ruby
<benzrf> fraterlaetus: i am examinin ur code
<apeiros> benzrf: String.new is mainly useful for subclassing
<fraterlaetus> Thank you ben!
<apeiros> >> class Foo < String; end; x = Foo.new('blah'); [x, x.class]
<eval-in> apeiros => ["blah", Foo] (https://eval.in/117694)
diegoviola has quit [Remote host closed the connection]
<godd2> tfittsy: are you trying to match digit characters? because you want to escape those d's
monkegjinni has joined #ruby
<godd2> valid = /^\d{1}[A-Z]{1}-\d{2}-\d{2}-\d{2}$/
<benzrf> fraterlaetus: how about
<godd2> otherwise you'd only be matching strings like this: "dY-dd-dd-dd" with literal lowercase d's
<centrx> Don't use {1}
freerobby has joined #ruby
<centrx> hell, don't even use {2}
<apeiros> I wouldn't use {2} either…
<apeiros> heh
<benzrf> wait
<benzrf> fraterlaetus: the first 3 chars of what name?
diegoviola has joined #ruby
yarou has joined #ruby
<fraterlaetus> benzrf: see the output.rb?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fgo has quit [Remote host closed the connection]
RaCx has joined #ruby
<benzrf> yeah...
<fraterlaetus> in merged, there is a NAME field
<benzrf> yes
<benzrf> each hash has one
<fraterlaetus> basically, the goal is to eliminate any entries which repeat,
<godd2> okay yes we can all agree it would be better to be valid = /^\d[A-Z]-\d\d-\d\d-\d\d$/
<apeiros> ^^
<fraterlaetus> so, I want to eliminate sda, as there is an sda1 and sda2
<fraterlaetus> but not sdb
<centrx> way better
<fraterlaetus> because there is no sdb1 etc..
<benzrf> ahh
<benzrf> p:
linojon has quit [Quit: linojon]
<bnagy> (-\d\d){3} :P
Mongey has quit [Client Quit]
<godd2> bnagy: That will only match repeats
<fraterlaetus> (I'm working on a chef script to RAID unpartitioned disks intelligently)
<godd2> it would match 7B-34-34-34 but not 7B-23-62-58
jonr22 has joined #ruby
xuisc has quit []
<benzrf> >> {a: 1, b: 2}.reject {false}
<eval-in> benzrf => {:a=>1, :b=>2} (https://eval.in/117702)
<benzrf> hm
<benzrf> ok
<bnagy> it does? huh.
<benzrf> how about
<benzrf> merged.reject {|entry| entry['NAME
<benzrf> oops
<godd2> yea if you group and then tack on {3} it means "whatever was in that group repeated literally 3 times"
troyready has quit [Ping timeout: 244 seconds]
<bnagy> >> '11-22-33-' =~/(\d\d-){3}/
<eval-in> bnagy => 0 (https://eval.in/117704)
<benzrf> merged.reject {|entry| entry['NAME'].length == 3 and merged.any {|entry2| entry2['NAME'].start_with? entry['NAME']}
<benzrf> or something of that ilk
<godd2> aw crap I was wrong. sorry bnagy
einarj has quit [Remote host closed the connection]
<bnagy> it's ok, I was unsure enough to have to check :)
<fraterlaetus> DUDE!
<godd2> valid = /^\d[A-Z](-\d\d){3}$/ would be the best
<fraterlaetus> that's epic!
<bnagy> not using regexps would be the best
<benzrf> fraterlaetus: ;p
<fraterlaetus> thank you so much!
<benzrf> probably a brute-forcey solution
<fraterlaetus> that works awesome
<benzrf> its what comes to mind off the top of my head thoonai
<benzrf> *tho
<fraterlaetus> I'll never be iterating through more than 1-5 disks
<benzrf> fraterlaetus: fyi reject is non-mutating
CaptainJet has quit []
<benzrf> if you want to update merged in place use reject! instead
shevy has joined #ruby
<benzrf> also that should be any?, not any
jrhorn424 is now known as zz_jrhorn424
rainmanjam has quit [Read error: Connection reset by peer]
<bnagy> and && not and
<bnagy> ohhh wait no.. omg that's horrible
* benzrf whaps bnagy with a rolled up magazine
<fraterlaetus> wait, it doesn't work
<benzrf> bnagy: what is
rainmanjam has joined #ruby
<fraterlaetus> ah
<bnagy> relying on and is gross
erikruthven has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> i wasnt even trying to rely on it
<benzrf> i just prefer the word versions
<benzrf> less shift yosafbridge
<benzrf> *yo
<benzrf> also a year of python :)
<centrx> bad benzrf
<bnagy> well for ruby, never tell people to use and, always &&
<fraterlaetus> ok
<fraterlaetus> just needed a closing }
<bnagy> cause and will occasionally do insane stuff
<fraterlaetus> woot woot
<godd2> >> a = true and false; a
<eval-in> godd2 => true (https://eval.in/117712)
<benzrf> wot
<benzrf> oh i see
<benzrf> :P
<godd2> >> a = true && false; a
<eval-in> godd2 => false (https://eval.in/117713)
quatron has quit [Ping timeout: 245 seconds]
<benzrf> ok thats a little silly
<benzrf> ugh bbiab
geopet has quit []
benzrf is now known as benzrf|oppressed
pierre1_ has joined #ruby
<centrx> >> ["ad", "enzrf"].map { |x| "b" + x }.join(" ")
<eval-in> centrx => "bad benzrf" (https://eval.in/117714)
philcris_ has joined #ruby
philcris_ is now known as philcrissman_
<bnagy> you can use and for some_condition and side_effect
<centrx> Oh no. I'm turning into RubyPanther
<bnagy> but imho just don't
<fraterlaetus> hmm
<godd2> >> a = (true and false); a
<eval-in> godd2 => false (https://eval.in/117715)
<godd2> in conclusion, always use parentheses
<fraterlaetus> ok, that outputs the sub sda's
<bnagy> or just always use &&
<fraterlaetus> but omits sda
randomnick_ has quit [Quit: Leaving]
centrx has quit [Quit: All this computer hacking is making me thirsty]
Celm has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 240 seconds]
octv has joined #ruby
jjbohn has quit [Quit: Leaving...]
<fraterlaetus> you have sent me in the right direction though
<fraterlaetus> thank you so much for your help!
<fraterlaetus> reject ftw!
Mon_Ouie has quit [Ping timeout: 240 seconds]
<benzrf|oppressed> =]
shevy has quit [Ping timeout: 240 seconds]
<benzrf|oppressed> fraterlaetus: you told me you wanted sda gone if there are sub sdas...
<benzrf|oppressed> fraterlaetus: did i misunderstand?
sdouglas has joined #ruby
senj has quit [Ping timeout: 264 seconds]
mikepack_ has joined #ruby
<fraterlaetus> no. you understood correctly
toastynerd has joined #ruby
<benzrf|oppressed> o:
<fraterlaetus> it's just running that outputs sda1 sda2 sda3 and sda4
<benzrf|oppressed> yeah ?
<benzrf|oppressed> isnt that what you wanted?
<fraterlaetus> well, sda1 sda2 and sda5
<fraterlaetus> what I want is to remove them and sda
zcreative has quit [Quit: Computer has gone to sleep.]
<fraterlaetus> but this gets me on the right track.
<benzrf|oppressed> o
Shidash has quit [Ping timeout: 264 seconds]
bthesorceror has joined #ruby
<fraterlaetus> basically, I'm trying to output a list of unpartitioned disks
linojon has joined #ruby
<fraterlaetus> and instead of doing the sensible thing, and doing it in bash, my devops team has challenged me to do it in ruby
<fraterlaetus> ;)
<benzrf|oppressed> >using bash over ruby
<benzrf|oppressed> >ever sensible
<benzrf|oppressed> ha.
mikepack has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
<fraterlaetus> teehee
snath has quit [Ping timeout: 252 seconds]
cover has joined #ruby
troyready has joined #ruby
mikepack_ has quit [Ping timeout: 265 seconds]
<pawprint> apeiros: i just tried to instantiate an erb template and got this error: http://bpaste.net/show/187385/
monkegjinni has quit [Remote host closed the connection]
<apeiros> pawprint: what error? I don't see one
<shinobi_one> fraterlaetus: use sytem calls everywhere ;) you did it in ruby :P
monkegjinni has joined #ruby
shevy has joined #ruby
<fraterlaetus> lawl
<fraterlaetus> wollco
<fraterlaetus> willco
<fraterlaetus> rather
<fraterlaetus> :)
<pawprint> apeiros: oh, i thought that big chunk of garbage at the bottom *was* an error
<pawprint> my bad
<apeiros> pawprint: it pays to read
james_d_h has joined #ruby
<pawprint> i did read
<pawprint> but obviously i didn't understand
<benzrf|oppressed> pawprint: ahahaa
<benzrf|oppressed> wow
<apeiros> pawprint: don't worry, you'll learn
<pawprint> thanks for your help
RaCx has quit [Quit: Computer has gone to sleep.]
shadoi1 has joined #ruby
SCommette has quit [Quit: SCommette]
rainmanjam has quit [Remote host closed the connection]
kllyy has joined #ruby
<pawprint> btw, another reason that i thought it was an error was because on my terminal, pry printed that output in red
<pawprint> unlike the results of expressions like: $foo = "bar"
<benzrf|oppressed> hehe
<pawprint> which was in calm cyan
<apeiros> that's misleading, yes
<benzrf|oppressed> pawprint: are you using globals??
<shinobi_one> pawprint: @src is an instance variable of the object, nothing to do with error
monkegjinni has quit [Ping timeout: 265 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
Celm has joined #ruby
agent_white has quit [Remote host closed the connection]
<pawprint> benzrf|oppressed: i was just testing
toastynerd has quit []
fgo has quit [Remote host closed the connection]
<benzrf|oppressed> ok
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
axsuul has joined #ruby
chrisseaton has quit []
sputnik13 has joined #ruby
<pawprint> anyway, thanks again for your help, guys
pawprint has left #ruby ["Leaving"]
snath has joined #ruby
sdouglas has quit [Remote host closed the connection]
YamakasY has quit [Ping timeout: 264 seconds]
sdouglas has joined #ruby
nateberkopec has joined #ruby
shime_ has quit [Ping timeout: 240 seconds]
magicrails has quit [Quit: magicrails]
Fyyr13_ has joined #ruby
duggiefresh has joined #ruby
weie has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
ikaros has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
jph98 has joined #ruby
saarinen has joined #ruby
hiyosi has joined #ruby
magicrails has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
Fyyr13_ has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
Sawbones has quit []
armyriad has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
pwh has quit []
Mongey has joined #ruby
agarie has joined #ruby
kllyy has quit [Read error: Connection reset by peer]
<glosoli> What additional modes to the default ruby-mode one would recommend for someone using Emacs ?
kllyy has joined #ruby
xibalba has joined #ruby
sailias has joined #ruby
centrx has joined #ruby
w1zeman1p has joined #ruby
e4xit has quit [Ping timeout: 240 seconds]
james_d_h has quit [Ping timeout: 264 seconds]
snuffeluffegus has joined #ruby
glosoli has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoviola has quit [Quit: WeeChat 0.4.3]
vlad_starkov has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
mlpinit has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
Megtastique has joined #ruby
_HolyCow has joined #ruby
kevind has quit [Quit: kevind]
S0da has joined #ruby
Tamae has quit [Read error: Connection reset by peer]
Tamae has joined #ruby
saarinen has quit [Quit: saarinen]
vlad_starkov has quit [Ping timeout: 265 seconds]
Mongey has quit [Read error: Connection reset by peer]
shevy has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
oneawayman has quit [Ping timeout: 240 seconds]
pontiki has quit [Ping timeout: 252 seconds]
W0rmDr1nk has joined #ruby
jhass is now known as jhass|off
cashnguns has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Mongey has joined #ruby
atox has quit [Remote host closed the connection]
dapz has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
jph98 has quit [Quit: jph98]
Paradox has quit [Quit: off to herp the derps]
andy4thehuynh has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
WormDrink has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
xibalba has left #ruby ["Textual IRC Client: www.textualapp.com"]
kennym has quit [Ping timeout: 264 seconds]
Elfix has quit [Ping timeout: 240 seconds]
jaimef has quit [Excess Flood]
jaimef has joined #ruby
Elfix has joined #ruby
freezey has quit [Remote host closed the connection]
lkba has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
Elfix has quit [Ping timeout: 240 seconds]
ktosiek_ has quit [Ping timeout: 240 seconds]
Paradox has joined #ruby
pinpin404 has quit [Ping timeout: 244 seconds]
YamakasY has joined #ruby
magoo_ has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
Elfix has joined #ruby
deadlock_ has quit [Ping timeout: 265 seconds]
kennym has joined #ruby
Salve has joined #ruby
xuisc has joined #ruby
xuisc has quit [Changing host]
xuisc has joined #ruby
freezey has joined #ruby
magoo has quit [Ping timeout: 240 seconds]
jimmyy_ has joined #ruby
jimmyy_ has quit [Max SendQ exceeded]
YamakasY_ has joined #ruby
BeingUntoDeath has joined #ruby
jimmyy_ has joined #ruby
awkisopen has quit [Ping timeout: 265 seconds]
jimmyy has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
jimmyy_ has quit [Max SendQ exceeded]
fgo has joined #ruby
axl_ has quit [Quit: axl_]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
klaut has quit [Remote host closed the connection]
magicrails has quit [Quit: magicrails]
jimmyy has joined #ruby
YamakasY has quit [Ping timeout: 252 seconds]
sepp2k has quit [Quit: Leaving.]
zachallett has joined #ruby
dethkrieg has joined #ruby
magicrails has joined #ruby
jetblack has quit [Ping timeout: 265 seconds]
toretore has quit [Ping timeout: 240 seconds]
Salve has quit [Ping timeout: 264 seconds]