apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
someish has joined #ruby
<gazarsgo> xybre: is that in reply to anything in the last 5 minutes ?
<xybre> gazarsgo: Nope! And certainly not to you :)
tommyvyo has quit [Client Quit]
<gazarsgo> darn. was hopeful for a second ;)
hackingoff has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
razi has quit [Ping timeout: 264 seconds]
chrisja has quit [Quit: leaving]
Mon_Ouie has joined #ruby
<xybre> gazarsgo: A quick google for your problem turned up something about Jmock, maybe that will help? The article is from 2006 though..
<gazarsgo> everything i've googled is from 2008 or earlier :(
<xybre> gazarsgo: What about http://jtestr.codehaus.org/Mocks
<xybre> Someone mentioned it as recently as 2011
buenob has quit [Remote host closed the connection]
<gazarsgo> i guess everyone has just bit the bullet and rewrote in scala :( hmmm that link looks promising though
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zastern has quit [Remote host closed the connection]
<gazarsgo> the problem is that i need to mock HTTPClient ...
<xybre> gazarsgo: Also, when googling, click "search tools" and restrict the results to the past year or two.
<xybre> Since the tech world and ruby especially moves so fast, sometimes thats the only way to get relevant information.
<gazarsgo> hmmmmm
<gazarsgo> i guess i will construct an input stream myself
<gazarsgo> so i can mock :(
senayar has quit [Remote host closed the connection]
beppu has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
ehaliewicz has quit [Ping timeout: 264 seconds]
beppu has left #ruby [#ruby]
hasrb has quit [Remote host closed the connection]
Tricon has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
hackingoff has joined #ruby
mlpinit has joined #ruby
<xybre> gazarsgo: Maybe you should build a facade/decorator around your Java libary so you can mock it at will. It would greatly reduce the surface area of Java object testing you'd need to mock out.
ner0x has joined #ruby
<gazarsgo> right, if i abstract out the http call then i can stub it with webmock like normal
swordsmanz has joined #ruby
<gazarsgo> and pass in an inputstream (stringreader) into my xmlreader instead of a url
hogeo has joined #ruby
<gazarsgo> just a lot more annoying boilerplate is all
havenwood has quit [Ping timeout: 264 seconds]
JoelMcCracken has joined #ruby
endash has quit [Quit: endash]
guns has quit [Quit: guns]
yshh has joined #ruby
ehc has quit [Quit: ehc]
tjbiddle has joined #ruby
realDAB has quit [Quit: realDAB]
<tjbiddle> Hey guys - If I have an array with 2 items, and I grab [2] - How can I have it return nil rather than going in reverse?
dmerrick has quit [Remote host closed the connection]
mootpointer has joined #ruby
rhys has joined #ruby
Lewix has quit [Remote host closed the connection]
ner0x has quit [Remote host closed the connection]
<xybre> tjbiddle: What?
sailias has joined #ruby
ner0x has joined #ruby
khushildep has quit [Quit: khushildep]
<tjbiddle> xybre: I take that back - I think something else is happening. Ignore me, I'll keep debugging :p
<rhys> Hello. I'm doing the ruby Koans. I have everything working, but it asked a question i'm kinda curious about. http://pastebin.com/GbZKjMMq
ryandeus_ has joined #ruby
<rhys> it asking about dicerolls being random and how they could conceivably be the same, causing the test to fail.
<xybre> tjbiddle: Good plan ;)
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
<rhys> if it were me, I'd just crank the size of the array up to something ridiculous like 128, where i should never ever get the same roll.
yshh has quit [Ping timeout: 264 seconds]
popl has joined #ruby
<rhys> but thats not the perfect solution.
blackmesa has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
ryandeussing has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
ner0x has quit [Remote host closed the connection]
ner0x has joined #ruby
<shevy> huh
<shevy> they can be the same
<shevy> how could you ensure that one never gets the same roll? it's all random
<rhys> nvm.
<rhys> its a stupid question.
<rhys> because i was thinking in the box of the unit tests.
hamakn has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
fenicks has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
zorg24 has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Remote host closed the connection]
<shevy> the ruby koans focus on unit tests as well?
someish has quit [Quit: someish]
dkamioka has quit [Remote host closed the connection]
banisterfiend is now known as banister`sleep
<pontiki> never mind?
<pontiki> that is actually a valid statement
<pontiki> randomness means there should be a possibility they can be the same
<shevy> good point
tkuchiki has joined #ruby
carlyle has joined #ruby
ffranz has joined #ruby
hamakn has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
<pontiki> and it's not a question of taking it up to a ridic extreme, but taking it down to something obvious, like 1D4 or something as your DiceSet
tkuchiki has quit [Ping timeout: 240 seconds]
carlyle has quit [Remote host closed the connection]
around_ has joined #ruby
tommyvyo has joined #ruby
buenob has joined #ruby
xcv_ has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
ryandeussing has joined #ruby
<lewellyn> even 1D6 will have lots of repetition.
xcv has joined #ruby
<popl> shevy: yeah, there's a koan regarding a triangle involving tests
stuartrexking has quit [Quit: Leaving...]
buzzybron has joined #ruby
l33__ has quit [Remote host closed the connection]
superscott[8] has quit [Quit: superscott[8]]
snovak has joined #ruby
axeman- has joined #ruby
taternuts has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ryandeus_ has quit [Ping timeout: 240 seconds]
jlast has quit [Remote host closed the connection]
xcv has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
ephemerian has left #ruby [#ruby]
brain_shim has quit [Ping timeout: 246 seconds]
sml0820 has quit [Quit: sml0820]
sayonarauniverse has joined #ruby
hasrb has joined #ruby
JoelMcCracken has quit [Ping timeout: 240 seconds]
agjacome has joined #ruby
agjacome has quit [Client Quit]
marr has quit [Ping timeout: 248 seconds]
senayar has quit [Ping timeout: 246 seconds]
justsee has joined #ruby
justsee has joined #ruby
SHyx0rmZ has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
amacgregor_ has joined #ruby
Naoe-Kanno has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
amacgregor has quit [Ping timeout: 246 seconds]
Guedes0 has joined #ruby
Guedes0 has left #ruby [#ruby]
hasrb has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
tkuchiki has joined #ruby
Evixion has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
r4nd0m1 has quit []
momomomomo has quit [Quit: momomomomo]
sarkis has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
justsee has quit [Ping timeout: 240 seconds]
Spooner has quit [Quit: Leaving]
narcan has joined #ruby
jonahR has joined #ruby
tricon_ has joined #ruby
cads has quit [Ping timeout: 264 seconds]
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
tricon- has joined #ruby
Tippler has quit [Ping timeout: 248 seconds]
Tricon has quit [Ping timeout: 240 seconds]
sevenseacat has joined #ruby
huoxito has joined #ruby
vlad_starkov has joined #ruby
yshh has joined #ruby
tricon_ has quit [Ping timeout: 264 seconds]
l33_ has joined #ruby
lyanchih has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
byprdct has joined #ruby
Tippler has joined #ruby
cpruitt has quit [Read error: Operation timed out]
tommyvyo has quit [Quit:]
<bricker`LA> If there is a method that accepts an argument, but the argument doesn't get used in the method, which is more idiomatic/the "correct" way? def method(*), or def method(_). It's a rails callback so it must take the argument.
jacktrick has joined #ruby
<sevenseacat> _ is what i usually see
tjbiddle has quit [Quit: tjbiddle]
<bricker`LA> thanks
andrew565 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
kjellski has quit [Quit: Leaving]
axeman- has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
zacts has quit [Quit: leaving]
slash_nick has quit [Ping timeout: 276 seconds]
l33_ has quit [Remote host closed the connection]
footch__ has joined #ruby
Hobogrammer has quit [Ping timeout: 256 seconds]
tricon- has quit [Quit: Leaving...]
devyn has joined #ruby
denom_ has quit [Ping timeout: 248 seconds]
Marc_Online_ has joined #ruby
akells`` has quit []
rupee has quit [Quit: Leaving]
xcv has joined #ruby
denom_ has joined #ruby
akells`` has joined #ruby
zeropx has quit [Quit: has left the room … Or did he?]
joast has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
joast has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
footch__ has quit [Ping timeout: 245 seconds]
Voodoofish430 has quit [Quit: Leaving.]
hasrb has joined #ruby
adrenaline_ has quit [Ping timeout: 245 seconds]
mlpinit has quit [Remote host closed the connection]
adrenaline_ has joined #ruby
agjacome has joined #ruby
xcv has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
xcv has joined #ruby
thepumpkin has quit [Remote host closed the connection]
kpshek has joined #ruby
hasrb has quit [Remote host closed the connection]
Quashie has joined #ruby
pjeide has joined #ruby
pjeide has joined #ruby
xcv_ has joined #ruby
zacts has joined #ruby
xcv_ has quit [Remote host closed the connection]
xcv_ has joined #ruby
eter has joined #ruby
ehaliewicz has joined #ruby
thillux has quit [Remote host closed the connection]
xcv has quit [Ping timeout: 256 seconds]
hogeo has quit [Remote host closed the connection]
<eter> I'm fairly new to ruby(started today) i want to write a program that connects and logins to a website and uses some of it functions, what would be the best way to start on that ?#
hogeo has joined #ruby
mary5030 has joined #ruby
yshh has quit [Remote host closed the connection]
kpshek has quit [Ping timeout: 264 seconds]
<bnagy> something like capybara, watir or ( my favourite ) celerity
<eter> is that a gem ?
<bnagy> all of those drive a headless browser object
<bnagy> they should all be gems
<rhys> drive. like a buggy or more like an automobile?
<bnagy> although if you need JS support then capybara works with PhantomJS, which is an external dependency
<eter> which one is the best documented one in your opinion ?
xcv_ has quit [Ping timeout: 268 seconds]
<bnagy> watir, but it's my least favourite
Guest20628 has joined #ruby
<bnagy> capybara has a pretty nice DSL
<eter> I'll give it a try
<eter> thanks
larissa has joined #ruby
<bnagy> I haven't done much scraping, btw, just a little, so others might have different opinions
<eter> is ok to ask questions here if i stumble on problems or is this channel more a development channel ?
smoothbu_ has joined #ruby
<bnagy> but it's coming up to dead-o-clock for a few hours
carlyle has joined #ruby
snovak has joined #ruby
<bnagy> anything ruby related and not rails related is fine for here
aryaching has joined #ruby
<popl> eter: this is a ask-questions channel
<popl> eter: as long as you ask stuff about ruby like bnagy said
<eter> ah ok thanks lads
<popl> maybe even a little mathy or algorithmic
justsee has quit [Ping timeout: 268 seconds]
<popl> no PHP though or people will start foaming at the mouth
rcosta has joined #ruby
poga has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
<bnagy> or perl. ew.
<popl> hurr durr
<popl> bnagy: HODOR
poga has joined #ruby
* popl realized hurr durr sounds like HODOR and wonders if there is a connection
smoothbutta has quit [Ping timeout: 245 seconds]
<sevenseacat> lol
andrew565 has quit [Quit: andrew565]
wallerdev has joined #ruby
startling has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
senayar has quit [Ping timeout: 246 seconds]
ixti has quit [Quit: WeeChat 0.4.1]
dodosan has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 268 seconds]
pjeide has quit [Quit: Leaving.]
footch__ has joined #ruby
Guest20628 is now known as diegoviola
dayepa1 has quit [Quit: dayepa1]
denom_ has quit [Read error: Operation timed out]
dayepa has joined #ruby
lethjakman has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Quit: leaving]
slash_nick has joined #ruby
hollyw00d has joined #ruby
gr33n7007h has joined #ruby
<reactormonk> can I somehow inject information into the stacktrace?
Domon has joined #ruby
sailias has quit [Quit: Leaving.]
<bnagy> well you can access it via $@ in a rescue clause
<bnagy> so I usually do something like $@.first(5).each {|stack_frame| debug_info stack_frame} where debug_info is some of my own code
adrenaline_ has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
taternuts has quit [Read error: Connection reset by peer]
mootpointer has quit [Read error: Connection reset by peer]
taternuts has joined #ruby
kilophoton has quit [Ping timeout: 245 seconds]
adrenaline_ has joined #ruby
L-sama has joined #ruby
jonathanwallace has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
stuartrexking has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
yaymukund has joined #ruby
<reactormonk> any ideas how to reduce the uglyness factor of http://sprunge.us/GYcR ?
caju has joined #ruby
Guest48734 is now known as raar
raar has quit [Changing host]
raar has joined #ruby
lyanchih has quit [Quit: lyanchih]
caju has quit [Read error: Connection reset by peer]
luckyruby has quit [Remote host closed the connection]
caju has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
<eter> i want celerity browser to select a text area from the website(the documentation is down for some reason) what do i put in after browser.?
Marc_Online_ has quit [Read error: Connection reset by peer]
<eter> text_area doesn't work
<bnagy> reactormonk: well $stderr.puts is just warn
<ner0x> In a background process worker would it make more sense to send a group of IDs or one ID at a time to speed up response time for HTTP?
<bnagy> and it looks like you could just refactor split to take a filetype
lethjakman has quit [Ping timeout: 264 seconds]
postmodern has quit [Quit: Leaving]
<bnagy> or failing that, construct your method names using the symbol and send like self.send "split_#{filetype}", str
wargasm has quit [Read error: Connection reset by peer]
cooldman224 has joined #ruby
<bnagy> eter: like I said, I don't really do much with it - you can get the html or you can get regions via selectors, css or xpath
<bnagy> I don't really know what a 'text area' is in a webpage, I only know about tags and divs and stuff
<sevenseacat> well a textarea is just another tag.
iliketur_ has joined #ruby
<bnagy> ner0x: that doesn't seem to have enough context to be an answerable question
around_ has quit [Quit: around_]
<bnagy> sevenseacat: ok cool, you take over :)
pvizcay has quit [Quit: leaving]
sparq_ has quit [Remote host closed the connection]
sarkis has joined #ruby
<sevenseacat> well ive never used celerity so :/
<popl> I've eaten celery.
havenwood has quit [Remote host closed the connection]
<bnagy> it has the watir api
<sevenseacat> or that
<popl> How can I help/
<popl> ?
tommyvyo has joined #ruby
<ner0x> bnagy: using sidekiq as a background processor to delete files. I mark then as @obj.update_all(status = 'destroy') so that my view doesn't pick them up. Then if that succeeds it adds them to the sidekiq worker. I add each DeleteS3File.perform_async(file.id) individually. Wondering if DeleteS3Files.perform_async(@files.map(&:id)) might be more appropriate.
<Todd> htmlunit? who still uses that since phantomjs was released?
justsee has joined #ruby
<Todd> I attached a phantomjs instance to our selenium grid and never looked back
lyanchih has joined #ruby
<Todd> of course.. only like ~30% of our tests will actually run against it ;)
<bnagy> Todd: not sure what you're referring to
<bnagy> ner0x: ok well without knowing anything about your S3 gem, if you can batch things then it's usually better
<bnagy> heuristics ftw
Dreamer3 has joined #ruby
aryaching_ has joined #ruby
<gazarsgo> S3 can't batch so doesn't matter
aryaching has quit [Read error: Connection reset by peer]
<ner0x> bnagy: https://gist.github.com/6276412 <-- would have been helpful.
<Dreamer3> anyway to treat a module like a block?
<Dreamer3> i want to blend one module into another
<Dreamer3> if i had it in a block i could class_eval it
<ner0x> gazarsgo: Right. I meant batch the queuing process or do each one by one.
<Todd> bnagy, "Celerity is a jruby wrapper around HtmlUnit"
<gazarsgo> you're going to block on network regardless of what you do, so … ?
<bnagy> but what does it have to do with phantomjs?
<bnagy> like htmlunit is JS capable
<bnagy> it's just in java
johnnyfuchs has quit [Remote host closed the connection]
<bnagy> it's also a crapload faster than phantomjs in my tests, but whatever
<Todd> htmlunit has JS support
<Todd> ala Rhino
<Todd> Now I'm curious though.. what is a "crapload"?
mlpinit has joined #ruby
<bnagy> I dunno, a few times for my workload
snath has joined #ruby
<bnagy> it's not speed sensitive so I don't bench
Vivekananda has quit [Ping timeout: 256 seconds]
jerius has joined #ruby
chxane has joined #ruby
<bnagy> but I was using it via capybara, so I don't have any real evidence that it's the phantomjs that was slow
<bnagy> I also find celerity JS errors a bit nicer to handle
<bnagy> capybara dsl was nicer to write on though
BSaboia has joined #ruby
mary5030 has quit [Remote host closed the connection]
thesheff17 has quit [Remote host closed the connection]
sambao21 has joined #ruby
<Todd> I wish I could use capybara. My boss makes us maintain his old testing framework. We rewrote a lot of it and renamed it Fruit.
Levin_22 has joined #ruby
mary5030 has joined #ruby
<Todd> Fruit.. FRamework for UI Testing. Seemed cute.
mootpointer has joined #ruby
<sevenseacat> capybara is awesome.
<Todd> I agree. I've often been tempted to steal their dsl and somehow layer it on top of our framework.
<Todd> I'd just have to do that in my personal time.
<Todd> And I prefer sleeping and video games.
xpirator has joined #ruby
<sevenseacat> i'm quite fond of sleeping.
<pontiki> i hate video games
<pontiki> and i rarely sleep
<sevenseacat> im also fond of video games.
pvizcay has joined #ruby
jonahR has quit [Quit: jonahR]
<defrag1> more pew pew less QQ
<Todd> I'm old... Not sure if I burned out or I'm just annoyed with my employer of late.
pvizcay has quit [Client Quit]
<eka> Todd: maybe both
defrag1 is now known as defrag
<Todd> eka, touche
sambao21 has quit [Ping timeout: 264 seconds]
<Todd> I miss Perl sometimes. *duck*
<eka> wat!?
<eka> :)
<Todd> you know... for uh processing text.. ahem.
<pontiki> i'd say burnout is a huge cause
<eka> yep
<pontiki> the drudgery of working for idiots and wearing
<defrag> Perl is great for when you're retiring and want to leave your legacy forever.
<pontiki> best to be your own idiot
<eka> defrag: like the Egyptians did right?
<shevy> human culture always looked for ways to improve themselves
<defrag> eka, basically... it will stand the test of time...
amacgregor has joined #ruby
<defrag> until someone comes up with a better structure...
<shevy> why still use perl when there are better tools available now
<zendeavor> cpan
<eka> defrag: cause nobody understand what they meant :)
<pipework> Like C#!
Domon has quit [Remote host closed the connection]
<Todd> legacy codebases, processing text, cpan
BSaboia has quit [Quit: Leaving]
<defrag> cpan is pretty sweet.
<pipework> Can base64 encoding end without an equals sign? I'm assuming that it means no padding was necessary.
<Todd> perl is still the best at what it was intended to do
<defrag> was... :|
<zendeavor> pretty much nothing beats cpan
<shevy> cpan is the argument that is repeated over and over again
<zendeavor> it's valid
amacgregor has quit [Read error: Connection reset by peer]
<pipework> Perhaps because it's not a bad argument?
Domon has joined #ruby
amacgregor has joined #ruby
<shevy> you always say cpan
pjeide has quit [Quit: Leaving.]
<shevy> in 20 years
<shevy> 10 years ago
<shevy> today
<shevy> cpan, cpan, cpan
<zendeavor> it's still true
<defrag> we're talking cspan!
amacgregor_ has quit [Read error: Connection reset by peer]
<pipework> I'm sorry that the argument withstands the tests of time.
<defrag> that ^
<shevy> :D
<popl> CPAN has some good stuff.
<popl> Greenspan otoh
Domon_ has joined #ruby
zph has joined #ruby
<eka> too much for me… seeya
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
<Todd> haha
<zendeavor> cpan hasn't become less awesome than rubygems/pypi yet
eka has quit [Quit: Computer has gone to sleep.]
Domon has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby
<popl> zendeavor: not sure it's going to happen at this rate. :P
<zendeavor> may not
<shevy> no
<shevy> even if it would
<shevy> you would still say
<shevy> cpan, cpan, cpan
<zendeavor> nah
<popl> shevy: try using less enter-as-punctuation, eh? :P
<pontiki> cpan doesn't stop
<zendeavor> cpan really is the best reason to use perl, if perl would fit the task
<shevy> at least one of you is grinning now
<pontiki> it keeps growing
<pontiki> but i like perl for a lot of things
<shevy> popl I can't, I would have to write neverending sentences instead :(
<shevy> pontiki let me guess
<shevy> cpan?
<popl> shevy: Conversely, you might audit a course in English.
<pontiki> no
ryandeus_ has joined #ruby
<pontiki> it just fits for so many things
mlpinit has quit [Remote host closed the connection]
<pontiki> i haven't written a perl app in ages and ages tho
iliketur_ has quit [Ping timeout: 256 seconds]
<zendeavor> when perl came, "you don't have to write it in shell anymore"
<pontiki> there is that
<popl> speaking of CPAN, Pinto is pretty fucking awesome. Lets you have your own CPAN-like module repos and manage them.
<pontiki> for sure
<popl> Stratopan is in alpha right now but it's going to be a service that lets you manage a crapload of repos and sync them or whatever.
<shevy> awesome
<shevy> popl convinced me
<shevy> I am going to use perl
<popl> It's very exciting to contribute to Perl apps that help bring the Perl image into the 21st century. :P
<shevy> popl the fossil coder
<zendeavor> i'm gonna wait for perl6 to freeze
<popl> I blame all the shitty web tutorials from Perl 4.
<zendeavor> and then use that
<popl> zendeavor: haha glwt
<zendeavor> someday
<zendeavor> someday.
pjeide has quit [Client Quit]
<popl> around Christmas
<shevy> is perl6 still perl
ryandeussing has quit [Ping timeout: 245 seconds]
<zendeavor> in spirit
mlpinit has joined #ruby
<Todd> perl6 is perl6
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<popl> shevy: Perl 6 is Perl in that Larry Wall decided to call it Perl 6.
<shevy> isn't he like blind and old now?
<popl> shevy: look at some Perl 6 on rosetta code
<zendeavor> wasn't he always nearly blind
<zendeavor> dem specs.
<popl> he had surgery a long time ago
<shevy> dunno really
<zendeavor> i dunno either
iliketur_ has joined #ruby
<shevy> I guess he could still be an awesome coder even when blind
<popl> He had a cornea transplant years back.
yaymukund has quit [Ping timeout: 246 seconds]
Gue______ has joined #ruby
Gue______ has quit [Client Quit]
<zendeavor> there's some conference video floating around where a guy programs in python using dragon naturally speaking
codezomb has joined #ruby
Darkco has joined #ruby
<popl> zendeavor: are you sure it's dragon?
<popl> zendeavor: I think I know what you're talking about.
<zendeavor> i'm pretty sure
brennanMKE has quit [Remote host closed the connection]
<defrag> ls -la
<defrag> er
<defrag> :|
<zph> popl, it's Dragon w/ some custom python injected from an opensource dragon interface
<popl> zendeavor: I just read about a guy who did something for python like that using emacs
rcosta has quit [Read error: Operation timed out]
<pontiki> yes, it's dragon, but *highly* customized
<pontiki> it's really pretty awesome to hear him program
<popl> zph: was emacs involved?
<pontiki> popl that's the guy
<popl> wonder if it's what I'm thinking of
<zph> Yep, you're talking about the same one :)
<popl> ok
<popl> :)
<popl> neato
<popl> isn't it specific for python though?
tommyvyo_ has joined #ruby
mike has joined #ruby
<zendeavor> only because he did it for python
<popl> it's still really neat
snovak has joined #ruby
mike is now known as Guest4113
<zph> popl: It was on a Mac, virtualizing Windows w/ Dragon, with python injected into event loop, and he was coding by voice in emacs using what he called 'modal voice commands'
mootpointer has joined #ruby
<popl> zph: coooool :)
<zph> It was some Python conf :)
codezombie has quit [Ping timeout: 276 seconds]
<pontiki> the code he was writing in the talk was elips
<zendeavor> you can find it on /r/python probably
<pontiki> elisp*
<pontiki> i posted it somewhere...
<shevy> hmm
<shevy> did he learn everything when he was blind? or did he become blind at a later stage in life
<zph> It *was* very cool! Said he was unable to type due to RSI… and once he used voice for typing, gradually hands got better, and he still uses voice for 50% typing
<shevy> ohhhh
<shevy> ok
codezomb has quit [Ping timeout: 240 seconds]
yaymukund has joined #ruby
jerius_ has joined #ruby
agjacome has quit [Ping timeout: 256 seconds]
snovak has quit [Ping timeout: 264 seconds]
Levin_22 has quit [Quit: Levin_22]
taternuts has quit []
dagnachew has joined #ruby
Darkco has left #ruby ["Textual IRC Client: www.textualapp.com"]
jerius has quit [Ping timeout: 268 seconds]
viszu has joined #ruby
agjacome has joined #ruby
<popl> pontiki++
<shevy> is there an easy way to load a .rb file that has no module, and wrap the whole .rb file into a new module?
<shevy> other than modifying the .rb file on the disc
<pontiki> not load
<pontiki> but you could read it in, modify the text, and eval it
<pontiki> but holy cow is that insecure
<shevy> hmm
zorg24 has quit [Ping timeout: 264 seconds]
tommyvyo_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Darkco has joined #ruby
Darkco has quit [Client Quit]
intuxicated has joined #ruby
SmoothPorcupine has joined #ruby
radic__ has joined #ruby
dodosan has joined #ruby
regedare1 has quit [Read error: Operation timed out]
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mlpinit has quit [Remote host closed the connection]
hollyw00d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JDHankle has quit [Remote host closed the connection]
<bnagy> shevy: yeah I think you can require it in a namespace
tkuchiki has quit [Ping timeout: 260 seconds]
<shevy> cool
radic_ has quit [Ping timeout: 245 seconds]
jerius_ has quit [Quit: jerius_]
<bnagy> I think I used to do something like that, but not completely sure, it was a long time ago - but try just module Blah;require ...
mansi has quit [Remote host closed the connection]
mlpinit has joined #ruby
mansi has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
viszu has quit [Quit: Leaving.]
<pontiki> hmm
regedarek has joined #ruby
<pontiki> not seeing that...
pjeide has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
DanKnox is now known as DanKnox_away
dagnachew has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby
michaeldeol has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
bricker`LA has quit [Ping timeout: 246 seconds]
pjeide has quit [Client Quit]
nari has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
denom_ has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
cpruitt has joined #ruby
kamakaze has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
footch__ has quit [Ping timeout: 245 seconds]
Xaitec has joined #ruby
codezombie has joined #ruby
intuxicated has quit [Quit: Leaving]
pjeide has quit [Quit: Leaving.]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest4113 has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
__maes_ has joined #ruby
_maes_ has joined #ruby
mlpinit has quit [Remote host closed the connection]
brennanMKE has joined #ruby
mootpointer has joined #ruby
ntus1017 has quit [Remote host closed the connection]
eter has quit [Quit: Leaving]
kilophoton has joined #ruby
mootpointer has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mlpinit has joined #ruby
caju has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
kamakaze has joined #ruby
zachrab has joined #ruby
sayonarauniverse has quit [Quit: Page closed]
brennanMKE has quit [Ping timeout: 256 seconds]
Xaitec has quit [Remote host closed the connection]
chriskk has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
mary5030 has joined #ruby
pjeide has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
huoxito has quit [Quit: Leaving]
anoNxeRo has quit [Quit: Lagging Off]
pjeide has quit [Client Quit]
ffranz has quit [Quit: Leaving]
postmodern has joined #ruby
mary5030 has quit [Remote host closed the connection]
mootpointer has joined #ruby
banister`sleep has quit [Quit: Computer has gone to sleep.]
lethjakman has joined #ruby
saarinen has quit [Quit: saarinen]
around_ has joined #ruby
baroquebobcat has joined #ruby
tkuchiki has joined #ruby
l33_ has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
wargasm has joined #ruby
dodosan has quit [Remote host closed the connection]
pwh has joined #ruby
Gooder has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
snovak has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has quit [Remote host closed the connection]
nanoxd has joined #ruby
devoldmx3 has joined #ruby
senayar has joined #ruby
io_syl has quit [Quit: io_syl]
io_syl has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 268 seconds]
thepumpkin has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
carlyle has quit [Remote host closed the connection]
zph has quit [Quit: Computer has gone to sleep.]
poga has quit [Read error: No route to host]
poga has joined #ruby
zph has joined #ruby
unRealElite has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
denom_ has quit [Ping timeout: 264 seconds]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
rmsy has joined #ruby
poga has quit [Remote host closed the connection]
fuzzy_ has quit [Ping timeout: 264 seconds]
<rmsy> With ActiveRecord, is there any way to check a field's fields? For example, I have a Post class and a Thread class (with a thread having many posts, and a post belonging to a thread). I want to select posts where the post is visible, and the thread the post belongs to is visible, as well.
<rmsy> Can I do this with Post.where()?
ner0x has quit [Quit: Leaving]
r0bglees0n has joined #ruby
fuzzy has joined #ruby
io_syl has quit [Quit: io_syl]
eka has joined #ruby
cooldman224 has quit [Remote host closed the connection]
poga has joined #ruby
xpirator has quit [Quit: Leaving...]
snovak has joined #ruby
r0bgleeson has quit [Ping timeout: 240 seconds]
iliketur_ has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
rmsy has left #ruby ["Textual IRC Client: www.textualapp.com"]
jwang has joined #ruby
timonv has joined #ruby
lyanchih has quit [Quit: lyanchih]
iliketur_ has quit [Client Quit]
codezomb has joined #ruby
codezombie has quit [Read error: Connection reset by peer]
DanKnox_away is now known as DanKnox
eka has quit [Quit: Computer has gone to sleep.]
obanta has quit [Ping timeout: 246 seconds]
pipework has quit [Remote host closed the connection]
sarkis has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
snath has quit [Ping timeout: 260 seconds]
sayan has joined #ruby
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dodosan has joined #ruby
mootpointer has joined #ruby
sambao21 has joined #ruby
bitcycle has joined #ruby
snath has joined #ruby
<bitcycle> Hey all. Is it possible to delete an attribute from an object?
gazarsgo has quit [Quit: gazarsgo]
danman has joined #ruby
<bnagy> objects don't really have attributes, except in rails lingo
poga has quit [Remote host closed the connection]
<Nilium> Define attribute.
bricker`LA has joined #ruby
poga has joined #ruby
Lewix has joined #ruby
cpruitt has quit [Quit: cpruitt]
dodosan has quit [Remote host closed the connection]
banisterfiend has joined #ruby
s2013 has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
sambao21 has quit [Ping timeout: 248 seconds]
<bitcycle> Nilium: I wish I could. I'm a total ruby noob coming into a pretty mature ruby domain specific language project (used for configuring distributed systems). They use a lot of b.something = something_else
dodosan has joined #ruby
<Nilium> So, you're working on a parser and interpreter in ruby?
<Nilium> Well, maybe just parser.
<Nilium> Could be an interpreter too.
axeman- has joined #ruby
<bnagy> bitcycle: you can b.something = nil, that's about as close as you need to come to 'deleting' it.
<bnagy> under the hood, b has a method like def something= newthing; @newthing = newthing; end
<bnagy> (probably )
<bitcycle> bnagy: That's not a bad idea. :)
<bnagy> @newthing will return nil if it's not initialised, so setting it back to nil is as good as 'deleting' it
<Nilium> Also, stop using the term DSL incorrectly.
<Nilium> Or I will hate you forever and curse you with spiders in the worst way possible.
<popl> I'll curse *you* with spiders.
sparq_ has joined #ruby
<Nilium> You are henceforth cursed with spiders. All semen you encounter is now spiders, henceforth.
<Nilium> Henceforth, spiders.
<bnagy> mmm spiderkakke
<popl> Luckily I don't encounter semen on a regular basis so I'm OK.
<sevenseacat> lol
dodosan has quit [Ping timeout: 256 seconds]
larissa has quit [Quit: Leaving]
<Nilium> I'll work on a curse for that, hang on.
rburton- has joined #ruby
browndawg has joined #ruby
kevinykchan has joined #ruby
havenwood has joined #ruby
zachrab has quit [Read error: Connection reset by peer]
DanKnox is now known as DanKnox_away
zachrab has joined #ruby
Domon_ has quit [Remote host closed the connection]
Domon has joined #ruby
<pontiki> make sure you write it in hex
<bnagy> :<
Desert_eagle has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
havenwood has quit [Ping timeout: 256 seconds]
duracrisis has joined #ruby
lethjakm1 has joined #ruby
Domon has quit [Ping timeout: 256 seconds]
lethjakman has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
io_syl has joined #ruby
mrsolo has joined #ruby
L-sama has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
ffio has joined #ruby
sparq_ has quit [Quit: Leaving]
pjeide has quit [Quit: Leaving.]
Senjai has joined #ruby
Senjai has joined #ruby
intuxicated has joined #ruby
duracrisis has quit [Client Quit]
ananthakumaran has joined #ruby
v0n has joined #ruby
danman has quit [Quit: danman]
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kamakaze has quit [Ping timeout: 260 seconds]
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
gr33n7007h has joined #ruby
chriskk has quit [Quit: chriskk]
pjeide has quit [Client Quit]
kevinykchan has quit [Quit: Computer has gone to sleep.]
duracrisis has joined #ruby
duracrisis has left #ruby [#ruby]
duracrisis has joined #ruby
michaeldeol has joined #ruby
xpirator has joined #ruby
duracrisis has quit [Client Quit]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
duracrisis has joined #ruby
Spami has quit [Remote host closed the connection]
sparq_ has joined #ruby
sparq_ has quit [Client Quit]
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
duracrisis has quit [Changing host]
duracrisis has joined #ruby
apeiros has quit [Remote host closed the connection]
pjeide has quit [Client Quit]
starship has quit [Disconnected by services]
duracrisis is now known as starship
starship_ has joined #ruby
jericon has quit [Read error: Connection reset by peer]
michaeldeol has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
havenwood has joined #ruby
brain_shim has joined #ruby
baroquebobcat has joined #ruby
around_ has quit [Quit: around_]
benjamin_ has quit [Ping timeout: 268 seconds]
jericon has joined #ruby
akells`` has quit [Remote host closed the connection]
nonamehero has quit [Read error: Connection reset by peer]
aprilthemoo has joined #ruby
bitcycle has quit [Quit: Lost terminal]
wargasm has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
iliketur_ has joined #ruby
lyanchih has joined #ruby
St_Marx has quit [Remote host closed the connection]
St_Marx has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
ehaliewicz has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
twoism_ has joined #ruby
mlpinit has joined #ruby
intuxicated has quit [Ping timeout: 248 seconds]
twoism has quit [Ping timeout: 268 seconds]
pranny has joined #ruby
lambda_ has quit [Quit: lambda_]
starship has quit [Ping timeout: 268 seconds]
ananthakumaran has quit [Quit: Leaving.]
banisterfiend has quit [Quit: Computer has gone to sleep.]
Deele has joined #ruby
Nisstyre has quit [Quit: Leaving]
yaymukund has quit [Ping timeout: 256 seconds]
brianpWins has joined #ruby
mlpinit has quit [Ping timeout: 260 seconds]
Domon has joined #ruby
snath has quit [Read error: Operation timed out]
wallerdev has quit [Quit: wallerdev]
aryaching_ has quit [Ping timeout: 256 seconds]
Shirakawasuna has joined #ruby
senayar has joined #ruby
Shirakawasuna has quit [Max SendQ exceeded]
Shirakawasuna has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
thepumpkin has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
narcan has joined #ruby
Shirakawasuna has quit [Client Quit]
senayar has quit [Ping timeout: 276 seconds]
sarkis has quit [Ping timeout: 260 seconds]
snath has joined #ruby
intuxicated has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
lethjakm1 has quit [Ping timeout: 245 seconds]
lethjakm1 has joined #ruby
apeiros has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Senjai has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pranny1 has joined #ruby
pipework has joined #ruby
iliketur_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rshetty has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
GeissT has joined #ruby
pranny1 has quit [Read error: Connection reset by peer]
staafl has joined #ruby
pranny2 has joined #ruby
pranny has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
hogeo_ has joined #ruby
zmansiv has quit []
rshetty has quit [Read error: No route to host]
baroquebobcat has joined #ruby
pr0ggie has joined #ruby
rshetty_ has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
Seus has joined #ruby
jacktrick has quit [Quit: Leaving]
hogeo has quit [Ping timeout: 246 seconds]
baroquebobcat has quit [Client Quit]
lyanchih has quit [Quit: lyanchih]
mootpointer has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
xpirator_ has joined #ruby
xpirator has quit [Quit: Linkinus - http://linkinus.com]
xpirator_ is now known as xpirator
tommyvyo has quit [Quit:]
snath has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
terlar has quit [Ping timeout: 268 seconds]
yaymukund has joined #ruby
DanKnox_away is now known as DanKnox
krz has quit [Quit: krz]
xpirator has left #ruby [#ruby]
* gr33n7007h is away: Adriane............
xpirator has joined #ruby
* gr33n7007h is back (gone 00:00:10)
<bnagy> gr33n7007h: yeahhh... how about not having your client set up to be annoying?
<bnagy> ... just saying
ananthakumaran has joined #ruby
<sevenseacat> wheres the fun in that
<Boohbah> gr33n7007h: how was your break?
<pipework> gr33n7007h: Have you ever considered the very real danger one places themselves in when they annoy others with their already meaningless life events?
aces1up has joined #ruby
<reactormonk> http://sprunge.us/RaWi outputs: true
<reactormonk> WTF.
<popl> a URL outputs true?
<aces1up> what is the format of the system() command to run process detached?
<popl> how does that work?
<reactormonk> popl, that's a pastebin url.
lyanchih has joined #ruby
<gr33n7007h> sorry
<bnagy> aces1up: fork, on MRI
iliketur_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<bnagy> reactormonk: can you narrow it down to the actual problem or question?
<reactormonk> bnagy, replaced it with case/when works now.
<popl> you replaced your URL with case/when?
<reactormonk> popl, stop being a smartass
krz has joined #ruby
<popl> I'd rather be a smartass than a dumb… nevermind
<popl> :)
yaymukund has quit [Ping timeout: 276 seconds]
<davidcelis> too late
<popl> oh stop
Targen has joined #ruby
krz has quit [Client Quit]
narcan has joined #ruby
amacgregor has quit [Ping timeout: 264 seconds]
RichardBaker has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
ayaz has joined #ruby
krz has joined #ruby
randomautomator has joined #ruby
locriani has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 240 seconds]
locriani has joined #ruby
blaxter has joined #ruby
randomau_ has quit [Read error: Operation timed out]
snath has joined #ruby
fridim__ has quit [Ping timeout: 264 seconds]
lambda_ has joined #ruby
randomautomator has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
locriani has quit [Ping timeout: 245 seconds]
akemrir has joined #ruby
dash_ has joined #ruby
eter has joined #ruby
mootpointer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d45h has joined #ruby
<eter> Any idea where to get simple assignment for someone fresh in to ruby ? LIke ones with scaling difficulty ?
havenwood has joined #ruby
d45h is now known as d45s
<jrobeson> well you could go with the simple stuff on codeschool
<pontiki> fork forks the current program. spawn runs another process/command asynchronously
lethjakm1 has quit [Ping timeout: 245 seconds]
<jrobeson> stick a fork in it
<pontiki> it's done
dash_ has quit [Ping timeout: 246 seconds]
<eter> so basically just learn from looking other peoples code and and whatever i feel like to it ?
<pontiki> find a project on github, fork it, fix a bug, write some tests, etc
<pontiki> do a PR and get feedback
<jrobeson> you could try to beat ruby warrior also :)
<pontiki> do it again
tagrudev has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
r0bglees0n has quit [Ping timeout: 264 seconds]
iliketur_ has quit [Quit: zzzzz…..]
r0bglees0n has joined #ruby
marcgg has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
akemrir has quit [Quit: WeeChat 0.4.1]
andikr has joined #ruby
ndrei has joined #ruby
allsystemsarego has joined #ruby
ewnd9 has quit [Remote host closed the connection]
buenob has quit [Remote host closed the connection]
buenob has joined #ruby
ndrei has quit [Client Quit]
blaxter has quit [Quit: foo]
ndrei has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
ewnd9 has joined #ruby
blaxter_ has joined #ruby
rburton- has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
buenob has quit [Ping timeout: 257 seconds]
justsee has quit [Ping timeout: 276 seconds]
iliketur_ has joined #ruby
freeayu__ has joined #ruby
tonni has quit [Remote host closed the connection]
rshetty_ has quit [Quit: Sleeping]
codecop has joined #ruby
zachrab has quit [Remote host closed the connection]
terlar has joined #ruby
freeayu has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
markalanevans_ has joined #ruby
timonv has joined #ruby
buzzybron has quit [Read error: Connection reset by peer]
sayan has quit [Ping timeout: 256 seconds]
zombiebi_ has quit [Remote host closed the connection]
pjeide has quit [Ping timeout: 260 seconds]
DanKnox is now known as DanKnox_away
tonni has joined #ruby
blaxter_ is now known as blaxter
pranny has joined #ruby
pranny has quit [Read error: Connection reset by peer]
pranny has joined #ruby
pranny2 has quit [Read error: Connection reset by peer]
ffio_ has joined #ruby
monkegjinni has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
ffio has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
luckyruby has quit [Remote host closed the connection]
noopq has joined #ruby
zoee has joined #ruby
markalanevans_ has quit [Quit: markalanevans_]
snath has quit [Ping timeout: 276 seconds]
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
Lewix has quit [Remote host closed the connection]
pjeide has quit [Client Quit]
BeLucid has quit [Ping timeout: 245 seconds]
rhys has quit [Quit: Leaving]
Lewix has joined #ruby
relix has joined #ruby
DanKnox_away is now known as DanKnox
JohnBat26 has joined #ruby
snath has joined #ruby
stuartrexking has quit [Quit: Leaving...]
<fuzzy> https://gist.github.com/FuzzySunshine/6277870 Could someone be as so kind as to explain why I can make celluloid-redis work just fine when I don't put it in a class, but as soon as I add it to a class it's like ruby has never heard of it?
Desert_eagle has joined #ruby
Mon_Ouie has joined #ruby
jrobeson has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
aganov has joined #ruby
obs has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
Jan1337z has joined #ruby
jrobeson has joined #ruby
havenwood has joined #ruby
<jrobeson> join #rubyonrails
mootpointer has joined #ruby
razi has joined #ruby
mootpointer has quit [Client Quit]
lurch_ has joined #ruby
filipe has joined #ruby
persand has joined #ruby
maz-dev has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
iliketur_ has joined #ruby
io_syl has quit [Quit: io_syl]
timonv has quit [Remote host closed the connection]
rybnik has joined #ruby
Monie has quit [Ping timeout: 268 seconds]
rybnik has left #ruby ["I was never here…."]
avril14th has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
bluenemo has joined #ruby
bluenemo has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
linux_noob_666 has quit [Remote host closed the connection]
BeLucid has joined #ruby
colonolGron has joined #ruby
huevon has joined #ruby
Monie has joined #ruby
locriani has joined #ruby
lurch_ has quit [Ping timeout: 248 seconds]
mootpointer has joined #ruby
lurch_ has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
Evixion has quit [Read error: Connection reset by peer]
marius has quit [Quit: -]
tatsuya_o has joined #ruby
ch_ has joined #ruby
Evixion has joined #ruby
zombiebit has joined #ruby
ch_ has quit [Remote host closed the connection]
hamed_r has joined #ruby
maz-dev has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
mklappstuhl has joined #ruby
echevemaster has quit [Quit: Leaving]
mootpointer has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
gr33n7007h has quit [Ping timeout: 240 seconds]
mootpointer has quit [Client Quit]
pwh has quit [Quit: pwh]
threesome has joined #ruby
rovar_ has quit [Read error: Connection reset by peer]
atno has joined #ruby
mootpointer has joined #ruby
rovar_ has joined #ruby
atno has quit [Remote host closed the connection]
atno has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
ghr has joined #ruby
threesome has quit [Max SendQ exceeded]
tmi has joined #ruby
threesome has joined #ruby
jonkri has joined #ruby
jonkri has joined #ruby
s0ber has joined #ruby
timonv has joined #ruby
havenwood has quit [Remote host closed the connection]
maxmanders has joined #ruby
jongilbraith has joined #ruby
havenwood has joined #ruby
ahawkins has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
persand has quit [Quit: persand]
persand has joined #ruby
lyanchih has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
lyanchih has quit [Client Quit]
kiri has joined #ruby
terlar has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
maz-dev has quit [Remote host closed the connection]
aces1up has quit []
twoism has joined #ruby
maz-dev has joined #ruby
tesuji has joined #ruby
Coffers has joined #ruby
twoism_ has quit [Ping timeout: 248 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Wildhoney has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
joast has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
camilasan has joined #ruby
lyanchih has joined #ruby
jarray52 has left #ruby [#ruby]
mootpointer has quit [Quit: ENOCAFFEINE.]
browndawg has joined #ruby
mootpointer has joined #ruby
troessner has joined #ruby
kilophoton has quit [Ping timeout: 268 seconds]
mootpointer has quit [Client Quit]
tonni has quit [Remote host closed the connection]
khushildep has joined #ruby
DanKnox is now known as DanKnox_away
vince_prignano has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
<xybre> fuzzy: Maybe your experiencing a Constant collision. Try specifying `::Redis`
mootpointer has joined #ruby
mootpointer has quit [Client Quit]
<fuzzy> I actually just tried that and was able to make it work about 5 minutes ago, but now i'm at a different problem I haven't been able to solve
<apeiros> I always enjoy how people post follow ups to their own questions
<zendeavor> those people exist?
DanKnox_away is now known as DanKnox
stef_204 has joined #ruby
<popl> zendeavor: I know of a place.
mikecmpbll has joined #ruby
<popl> It is not a physical place that we can actually find.
<popl> It is a pure land, a land in the human realm; unless one has the merit and actual karmic association, one may not arrive there.
jim0thy_ has joined #ruby
<zendeavor> where the grass is green and the girls are pretty?
agjacome has quit [Quit: leaving]
Targen has quit [Ping timeout: 256 seconds]
<popl> zendeavor: You've got the idea.
mootpointer has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
thillux has joined #ruby
<xybre> fuzzy: programming is pretty much that. "Got it working! Shit now the next thig isn't working.."
<fuzzy> Yes i'm fully aware, what is burning me though, is I got past this error earlier tonight, but wiped everything because of another mess and now I can't seem for the life of me
<SmoothPorcupine> I was totally sympathetic and willing to help until I saw "websockets."
<SmoothPorcupine> :V
<fuzzy> HA
<popl> Is that duckface?
<SmoothPorcupine> It's ambiguous.
<fuzzy> it's ok, there is a whole club setup for those that ignore me :)
<SmoothPorcupine> Oh I'm not gonna ignore you.
<xybre> fuzzy: How do you like celluloid?
<fuzzy> I would like it alot more if I could make it do the things I want it to do
ndrei has quit [Ping timeout: 264 seconds]
<fuzzy> i feel like i'm walking in a minefield
justsee has quit [Ping timeout: 276 seconds]
Al_ has joined #ruby
eter has quit [Quit: Leaving]
<xybre> fuzzy: Why do you need Celluloid directly? Aren't you doing some Sidekiq-looking stuff?
shredding has joined #ruby
<fuzzy> this is for a different project
<fuzzy> i'm trying to basically make a websocket server that backends redis
tonni has joined #ruby
Wildhoney has quit [Quit: Wildhoney]
marcgg has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
amacgregor has joined #ruby
Xeago has joined #ruby
camilasan has quit [Remote host closed the connection]
<fuzzy> whooo progress :)
marcgg has joined #ruby
Astralum has joined #ruby
<xybre> Ahh
Shirakawasuna has joined #ruby
sayan has joined #ruby
ephemerian has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
love_color_text has joined #ruby
colonolGron has quit [Ping timeout: 240 seconds]
ahawkins has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
Lewix has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<MrZYX> bricker`LA: not reading the entire backlog, so: If you read the source of Array#delete you'll see that it uses rb_equal, which is the C function for ===
tmi has quit [Remote host closed the connection]
camilasan has joined #ruby
<xybre> MrZYX: Scroll down?
<MrZYX> I really just scrolled to my highlight
Domon has quit [Remote host closed the connection]
<MrZYX> don't want to spent 20 minutes reading the log
<popl> lastlog?
Domon has joined #ruby
<xybre> Oh it was only 9 hours ago, for some reason I thought it was like 24.
justsee has joined #ruby
justsee has joined #ruby
<popl> xybre: …Jack?
<xybre> Not Bauer.
senayar has joined #ruby
<popl> PHEW.
Domon_ has joined #ruby
Domon has quit [Read error: Connection reset by peer]
intuxicated has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
snath has quit [Ping timeout: 248 seconds]
Domon_ has quit [Remote host closed the connection]
Domon has joined #ruby
Matriks has joined #ruby
DanKnox is now known as DanKnox_away
guitsaru has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
GeissT has joined #ruby
bluOxigen has joined #ruby
Domon has quit [Ping timeout: 260 seconds]
Domon has joined #ruby
snath has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
jim0thy_ has quit [Quit: jim0thy_]
hoelzro_ is now known as hoelzro
aryaching has joined #ruby
buzzybron has joined #ruby
emergion has joined #ruby
mklappstuhl has joined #ruby
Wildhoney has joined #ruby
ezotrank has joined #ruby
timonv has joined #ruby
amacgregor_ has joined #ruby
maz-dev has quit [Remote host closed the connection]
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
maz-dev has joined #ruby
buzzybron has left #ruby [#ruby]
amacgregor has quit [Ping timeout: 264 seconds]
pedda has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
lurch__ has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 246 seconds]
justsee has quit [Quit: leaving]
justsee has joined #ruby
lurch_ has quit [Ping timeout: 240 seconds]
lurch__ is now known as lurch_
cads has joined #ruby
lyanchih has quit [Quit: lyanchih]
Criztian has joined #ruby
Wildhoney has quit [Quit: Wildhoney]
linux_noob_666 has joined #ruby
kjellski has joined #ruby
nomenkun has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
adambeynon has joined #ruby
bluOxigen has joined #ruby
Davey has joined #ruby
sevenseacat has quit [Quit: Leaving.]
kilophoton has joined #ruby
Wildhoney has joined #ruby
ndrei has joined #ruby
ezotrank has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
kilophoton has quit [Ping timeout: 246 seconds]
freeayu__ has quit [Ping timeout: 268 seconds]
thillux has quit [Remote host closed the connection]
thillux has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
__mp has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
brain_shim has quit [Ping timeout: 276 seconds]
klaut has joined #ruby
jibi has joined #ruby
kevinykchan has joined #ruby
MrZYX is now known as MrZYX|off
bluOxigen has quit [Read error: Connection reset by peer]
fixl has joined #ruby
yacks has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
bluOxigen has joined #ruby
MrZYX|off is now known as MrZYX
lyanchih has joined #ruby
jongilbraith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
intuxicated has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
noname001 has joined #ruby
jim0thy_ has joined #ruby
Speed has joined #ruby
nari has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
gyzmodo has joined #ruby
lyanchih has quit [Quit: lyanchih]
ndrei has quit [Quit: leaving]
narcan has joined #ruby
ndrei has joined #ruby
bluOxigen has joined #ruby
ndrei has quit [Quit: leaving]
marr has joined #ruby
brtdv has joined #ruby
whowantstolivef3 has quit [Ping timeout: 248 seconds]
BRMatt has joined #ruby
joshmyers has joined #ruby
lyanchih has joined #ruby
amacgregor_ has joined #ruby
yacks has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
Domon has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
Domon has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Domon_ has joined #ruby
colonolGron has joined #ruby
m8 has joined #ruby
mklappstuhl has joined #ruby
ndrei has joined #ruby
emogirlj has joined #ruby
emogirlj is now known as zets
ndrei has quit [Client Quit]
ndrei has joined #ruby
snath has quit [Ping timeout: 264 seconds]
marius has joined #ruby
lyanchih has quit [Quit: lyanchih]
snath has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
fermion has joined #ruby
jibi has quit [Quit: .]
fermion has quit [Client Quit]
nicoulaj has joined #ruby
justsee has quit [Quit: leaving]
Kelet_ has quit [Ping timeout: 240 seconds]
yacks has quit [Ping timeout: 246 seconds]
hamed_r has quit [Read error: Connection timed out]
hamed_r has joined #ruby
yacks has joined #ruby
ezotrank has joined #ruby
snath has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
Domon_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Domon has joined #ruby
nomadic has quit [Ping timeout: 240 seconds]
ndrei has quit [Quit: leaving]
nomadic has joined #ruby
ndrei has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Domon_ has joined #ruby
maxmanders has joined #ruby
Domon has quit [Read error: Connection reset by peer]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
ebanoid has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Spooner has joined #ruby
zeel has joined #ruby
mikecmpbll has joined #ruby
GeissT has quit [Ping timeout: 256 seconds]
atmosx has joined #ruby
snath has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
jibi has joined #ruby
jlebrech has joined #ruby
camilasan has quit [Remote host closed the connection]
<jlebrech> i have an issue with rbenv. my global is 1.9.3 but without a .ruby_version file it defaults to 1.8.7 :(
marius has quit [Quit: -]
_ffio_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
lyanchih has quit [Quit: lyanchih]
ffio_ has quit [Ping timeout: 276 seconds]
zoee has quit [Quit: zoee]
maz-dev has quit [Remote host closed the connection]
jongilbraith has joined #ruby
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
niceguyjames has joined #ruby
whowantstolivef3 has joined #ruby
yacks has joined #ruby
zachrab has joined #ruby
ismlages has joined #ruby
jprovazn has quit [Quit: Leaving]
zachrab has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
brtdv has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Read error: No route to host]
man40khi_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
jonkri has quit [Quit: jonkri]
vlad_starkov has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
St_Marx has joined #ruby
timonv has quit [Remote host closed the connection]
ndrei has quit [Quit: leaving]
nfk has joined #ruby
nfk has joined #ruby
bluenemo_ has joined #ruby
bluenemo has quit [Remote host closed the connection]
ndrei has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
vlad_starkov has joined #ruby
timonv has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Domon_ has quit [Remote host closed the connection]
Domon has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
RichardBaker has quit [Quit: RichardBaker]
Domon has quit [Ping timeout: 256 seconds]
sqd has joined #ruby
SmoothPorcupine has left #ruby ["Sleep."]
lyanchih has joined #ruby
Domon has joined #ruby
Matriks has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
Domon has quit [Remote host closed the connection]
bluenemo_ has quit [Read error: Operation timed out]
hogeo_ has quit [Remote host closed the connection]
l33_ has quit [Remote host closed the connection]
Domon has joined #ruby
Kobrakao has joined #ruby
shevy has quit [Ping timeout: 259 seconds]
Domon has quit [Ping timeout: 245 seconds]
lucazi has joined #ruby
hamed_r has quit [Quit: Ex-Chat]
jprovazn has joined #ruby
camilasan has joined #ruby
nonamehero has joined #ruby
aprilthemoo has quit [Read error: Connection reset by peer]
colonolGron has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
Wildhoney_ has joined #ruby
ffio has joined #ruby
_ffio_ has quit [Read error: Connection reset by peer]
Wildhoney has quit [Ping timeout: 276 seconds]
shevy has joined #ruby
Wildhoney_ is now known as Wildhoney
thillux has quit [Remote host closed the connection]
thillux has joined #ruby
Shirakawasuna has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
dr_Poggs has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
pothibo has quit [Quit: pothibo]
dr_Poggs has quit [Quit: +++ATH]
thillux has quit [Remote host closed the connection]
dr_Poggs has joined #ruby
nari has joined #ruby
thillux has joined #ruby
thillux has quit [Read error: Connection reset by peer]
ntus1017 has joined #ruby
vlad_starkov has joined #ruby
jonkri has joined #ruby
ndrei has joined #ruby
zoee has joined #ruby
terlar has quit [Ping timeout: 268 seconds]
terlar has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
ndrei has quit [Client Quit]
mootpointer has joined #ruby
niceguyjames has joined #ruby
snath has quit [Ping timeout: 268 seconds]
mklappstuhl has quit [Remote host closed the connection]
ndrei has joined #ruby
nomenkun has joined #ruby
amacgregor has joined #ruby
kaspergrubbe has joined #ruby
timonv has quit [Remote host closed the connection]
Neomex has joined #ruby
drPoggs has quit [Quit: Goodbye]
dr_Poggs is now known as drPoggs
Davey has quit [Quit: Computer has gone to sleep.]
moos3 has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
man40khi_ has quit [Ping timeout: 256 seconds]
Neomex has quit [Client Quit]
moos3 has joined #ruby
drPoggs has quit [Quit: +++ATH]
lkba has joined #ruby
blackmesa has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
blackmesa has joined #ruby
drPoggs has joined #ruby
<shevy> jlebrech time to destroy stupid software ;)
<shevy> die, rbenv, die!!!
man40khi_ has joined #ruby
caju has joined #ruby
ldnunes has joined #ruby
Kobrakao has quit [Ping timeout: 245 seconds]
iboB has joined #ruby
maz-dev has joined #ruby
bluOxigen has quit [Ping timeout: 268 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
<iboB> hey when appending a newline to a string is str + "\n" going to internally append "\r\n" in windows?
<apeiros> no
<shevy> that would not make sense
<shevy> iboB, you have so many different string objects
<iboB> is there a way to append platform specific line endings?
<apeiros> you can use the appropriate global
<apeiros> $/ I think
<apeiros> but IMO fuck windows, use "\n"
blackmesa has quit [Ping timeout: 240 seconds]
<apeiros> sane editors can deal with it on windows too
<iboB> well wouldn't it be considered better to append the correct one?
quale has quit [Ping timeout: 264 seconds]
<apeiros> define correct
ffio has joined #ruby
<iboB> well maybe not correct but... er... well... "better"
<apeiros> define better :-p
<iboB> the way that nobody would ever complain about the output
<apeiros> srsly, any editor not being able to deal with "\n" is not worth to bother with in the first place.
<apeiros> lol
<apeiros> don't write any program which produces any output whatsoever then
<iboB> :)
<apeiros> there will *always* be somebody who'll complain about your output
<apeiros> IMO utf-8 + \n is where the future is
<shevy> iboB my ruby scripts work on windows without me having to do anything windows specific
<iboB> shevy if you're using \n for a newline, then you're alienating all the notepad users
<iboB> :)
<apeiros> and all DOS users
<apeiros> omigosh!
<apeiros> noooooooooo!
<shevy> iboB all I know is that my ruby scripts work fine on windows
<iboB> well the output of my program could consievable be opened by notepad users (some tech-unsavvy managers... etc)
quazimodo has quit [Read error: No route to host]
<MrZYX> just write a wrapper script that does .gsub("\n", "\r\n") and alias ruby to it on windows :P
<apeiros> gsub(/\r?\n/, "\r\n") - just to be save
<iboB> as i see $/ will work just fine
<iboB> or not
<apeiros> it will do what I want
<iboB> it's nil when i just run the program
<apeiros> I still hold against it that it's stupid
<apeiros> rly?
<huf> shouldnt \n produce platform specific line endings on files opened in text mode?
<iboB> er no no $\ is nil $/ is just "\n" on windows
<apeiros> huf: no. text-mode is not a string specific feature.
hiyosi has joined #ruby
<huf> of course it's not a string-specific feature
<huf> but when you write a \n to a file opened in text mode, it should dtrt
luis_ has joined #ruby
luis_ is now known as kobrakao
<iboB> ah so that's fine then
<apeiros> blech, windows
jibi has quit [Quit: .]
<apeiros> you'd think an OS which is mainly used for games would manage to have sane standard drivers for usb gamepads after as little as what, 10 years? but noooo…
blackmesa has joined #ruby
<apeiros> </random rant>
timonv has joined #ruby
shoi has joined #ruby
weeems has quit [Ping timeout: 268 seconds]
Neomex has joined #ruby
<MrZYX> I've the fear that "gamers" actually isn't microsofts cash cow
<shevy> they are the last stronghold for windows
maz-dev_ has joined #ruby
maz-dev has quit [Ping timeout: 264 seconds]
locriani has joined #ruby
<shoi> Hi, Do You Want to Make Steady Income in Forex Trading online? Can start with small capital $50, Free guide, tips, copy system for long term profits, pm me 2 start now
<shevy> lol
mklappstuhl has joined #ruby
<MrZYX> I'm tempted just to see if it's a bot...
anonymuse has joined #ruby
shoi was kicked from #ruby by apeiros [spam is not welcome]
<MrZYX> hm, shouldn't we report to freenode staff?
weeems has joined #ruby
<apeiros> feel free to
shredding has joined #ruby
ryandeussing has joined #ruby
IceyEC has joined #ruby
eregon has quit [Quit: No Ping reply in 180 seconds.]
pranny has quit [Quit: Leaving.]
eregon has joined #ruby
ezotrank has quit [Quit: Textual IRC Client: www.textualapp.com]
l33_ has joined #ruby
weeems has quit [Ping timeout: 264 seconds]
yacks has quit [Ping timeout: 260 seconds]
Neomex has quit [Quit: Neomex]
ryandeus_ has quit [Ping timeout: 276 seconds]
mklappstuhl has quit [Ping timeout: 256 seconds]
realDAB has quit [Quit: realDAB]
Zoup has joined #ruby
<Zoup> can i pass multiple parameter ro modules?
<Zoup> like x::y(1,2), which returns syntax error
<Zoup> syntax error, unexpected ',', expecting ')'
aaronmcadam has joined #ruby
tommyvyo has joined #ruby
Kar- has joined #ruby
<apeiros> modules can't be called/invoked
nignaztic has joined #ruby
<apeiros> you call/invoke *methods*
<apeiros> and yes, methods accept multiple parameters
verto has joined #ruby
<apeiros> (and moules, for the lack of being callable, accept none)
<apeiros> *modules
<Zoup> apeiros: thanks, in my case, y is a method
e3r98gh35t has joined #ruby
<apeiros> then use .
<apeiros> :: for method invocation is rather outdated
e3r98gh35t has quit [Read error: Connection reset by peer]
<apeiros> and x.y(1,2) should not raise a syntax error
<MrZYX> so paste real code at gist.github.com
<apeiros> so your actual code almost certainly looks different
<apeiros> (same applies for x::y(1,2))
dhruvasagar has quit [Ping timeout: 246 seconds]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nazty has quit [Ping timeout: 248 seconds]
<Zoup> apeiros: hum, syntax error, here is the code: http://codepad.org/IQm8Ax1F
<Zoup> apeiros: its in two files
yfeldblum has joined #ruby
<apeiros> Zoup: did you actually read the errors you get?
<apeiros> because, you know, it doesn't say *anything* about SyntaxError in your paste.
mansi has joined #ruby
<Zoup> apeiros: i just pasted that, re-pasting:
<Zoup> apeiros: vmctl:5: syntax error, unexpected ',', expecting ')' Manage.start (servername,vm_id)
zeel has quit [Remote host closed the connection]
<apeiros> yeah, maybe you first do what this says: `Line 28: warning: don't put space before argument parentheses `
<MrZYX> run it with -w and read the warnings then
Wildhoney has quit [Quit: Wildhoney]
<apeiros> reading… a lost art.
mlpinit has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yalue has joined #ruby
<Zoup> MrZYX: no warning, output is the same
hamakn has quit [Remote host closed the connection]
<apeiros> Zoup: the warning is even in your paste…
hamakn has joined #ruby
<Zoup> apeiros: odd, ruby -w didn't returned that
jonathanwallace has joined #ruby
mklappstuhl has joined #ruby
<apeiros> because your ruby version seems to treat it straight as a syntax error. not just a warning.
shadoi1 has joined #ruby
JohnBat26 has joined #ruby
<Zoup> apeiros: i see, but i can not understand why this is syntax error
mansi has quit [Remote host closed the connection]
<apeiros> because - as the warning says - you must not put a space between method and (
rickmasta has quit [Quit: Leaving...]
mansi has joined #ruby
mikecmpbll has joined #ruby
<Zoup> apeiros: well, i just tried that it i got same error, that can be the issue since i *can* run the method when i have only one parameter
hamakn has quit [Ping timeout: 256 seconds]
<Zoup> *can not
<MrZYX> it is
sml0820 has joined #ruby
someish has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
rezzack has quit [Quit: Leaving.]
cody-- has joined #ruby
<apeiros> Zoup: that's because `foo (1)` is not the same as `foo(1)`
<shevy> Zoup the ruby parser can be picky
cam`_ has quit [Quit: Connection closed for inactivity]
<apeiros> `foo (1)` is `foo(expression)`, with expression being `(1)`
<apeiros> `foo(1)` is `foo(expression)`, with expression being `1`
<apeiros> and hence:
mark_locklear has joined #ruby
<apeiros> `foo (1, 2)` is `foo(expression)`, with expression being `(1, 2)`
<apeiros> and `(1, 2)` is not a valid expression
<Zoup> apeiros , shevy thanks, i guess i know where to continue
pinage404 has quit [Excess Flood]
<apeiros> something like (2-1) would be a valid expression
mansi has quit [Ping timeout: 268 seconds]
Zoup has left #ruby [#ruby]
<MrZYX> uhm, bye
blackmesa has quit [Ping timeout: 240 seconds]
breakingthings has joined #ruby
<MrZYX> that's going to be funny
e3r98gh35t has joined #ruby
<MrZYX> who thinks he'll come back because he tries to call a non module method on a module?
cookiemonsta has joined #ruby
xeviox has joined #ruby
e3r98gh35t has quit [Read error: Connection reset by peer]
<MrZYX> or defining a local inside the module scope
yacks has joined #ruby
e3r98gh35t has joined #ruby
e3r98gh35t has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<apeiros> he's obviously quite new to ruby, so it's quite probable that he'll be back with another problem.
<apeiros> that's how we all started
<xeviox> hi guys, I've a little "architectural kind" question ^^. How is the common way to build a couple of classes where one should be filled with implementation later? Example an authentifaction plugin that is not bundled to a specific database (database methods should be implemented by the user). In Java I would create an abstract class (or interface) "UserStorage" which has to be implemented later.. How is that done in ruby?
tommyvyo has quit [Quit:]
<xeviox> *authentication
e3r98gh35t has joined #ruby
<hoelzro> xeviox: in Ruby, you don't need to placate a type system, so you can usually just define a series of classes conforming to a particular API
e3r98gh35t has quit [Read error: Connection reset by peer]
<hoelzro> if you want to share functionality between implementations, it's typical to use a mixin
lyanchih has quit [Quit: lyanchih]
<xeviox> so in ruby I would just define the authentication api and then "tell" the user to create the db logic and use it with the api?
eka has joined #ruby
<hoelzro> users are going to be the ones defining the implementation classes?
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xeviox> hoelzro: yes
mengu has joined #ruby
<xeviox> I would provide a base user class
momomomomo has joined #ruby
<xeviox> which some properties like username / password / etc. But the storage should be implemented by the "user"
<hoelzro> then I suppose you could just tell them which methods they need to implement
jim0thy_ has quit [Quit: jim0thy_]
<hoelzro> you *could* probably use some fancy metaprogramming magic to ensure that they do things right, but that's probably overkill.
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pranny has joined #ruby
<Olipro> if I want to kill a process group, do I just pass Process.kill the pgid or do I need to pass it that and also put a - operator on the signal?
strk has joined #ruby
<strk> how do I clean up the ruby gems cache ?
<strk> 316720 ./lib/gems/1.9.1/gems
<Olipro> the documentation sounds odd, is Process.kill('-TERM', pgid) actually legit?
<xeviox> hoelzro: ok, so I shouldn't create a "base" class for the storage that shows needed methods?
jim0thy_ has joined #ruby
<hoelzro> you can, but you don't need to
e3r98gh35t has joined #ruby
<xeviox> hoelzro: ok, and how should the user later provide the implementation? In an extra class or as extension to the base class?
e3r98gh35t has quit [Read error: Connection reset by peer]
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
<hoelzro> they should probably create a class that conforms to the API you designed
<xeviox> ok thanks!
<xeviox> :D
<shevy> Olipro, I also have things like Process.kill :QUIT, $PROCESS_ID or Process.kill 'SIGKILL', Process.pid so probably there is more than one way to do it
someish has quit [Quit: someish]
the_fallen has joined #ruby
<MrZYX> wait, you're sending a sigkill to yourself?
xue has joined #ruby
pranny has quit [Quit: Leaving.]
<shevy> I guess the ruby script
wallerdev has joined #ruby
Matriks has joined #ruby
pinage404 has joined #ruby
hanmac has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awc737 has joined #ruby
<hanmac> shevy: Win8 has a funny bug, if you change the FSB your PC does not go faster but your clock in the system will go slower ;P
ndrei has quit [Ping timeout: 256 seconds]
kpshek has joined #ruby
jleishman has quit [Remote host closed the connection]
<shevy> oh well
jp- has joined #ruby
<shevy> there is probably a hidden explanation in where that all makes sense
tkuchiki has quit [Remote host closed the connection]
devoldmx has joined #ruby
<hanmac> shevy i think it was a trick so Win8 does get more points in benchmark than it really did ;P
<Xeago> FSB?
awc737 has quit [Ping timeout: 245 seconds]
denom_ has joined #ruby
marr123 has joined #ruby
marr123 has quit [Remote host closed the connection]
marr has quit [Ping timeout: 246 seconds]
awc737 has joined #ruby
withnale has quit [Remote host closed the connection]
jleishman has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
devoldmx3 has quit [Ping timeout: 276 seconds]
adac has joined #ruby
the_fallen has quit [Remote host closed the connection]
havenwood has joined #ruby
cody-- has joined #ruby
<hanmac> (or is it the same?)
<adac> Via capistrano for to catch an error I try to start a command like that https://gist.github.com/anonymous/6280902 Now I'm wondering how to also output the rest of the comands output? I tried to "put data" but that doesn't give me all output at all
jim0thy_ has quit [Quit: jim0thy_]
kpshek has quit []
__mp has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
sml0820 has quit [Quit: sml0820]
cads has quit [Read error: Operation timed out]
mansi has joined #ruby
brbcoding has joined #ruby
nfk has quit [Ping timeout: 256 seconds]
jefflyne has joined #ruby
ndrei has joined #ruby
huevon has quit [Quit: huevon]
kpshek has joined #ruby
brtdv has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
sml0820 has joined #ruby
zathraz has joined #ruby
thepreacher has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
sheeny has joined #ruby
<sheeny> Hi all, is there a method to split up a camelcase string or do i need to use regex?
jerius has quit [Ping timeout: 246 seconds]
jtgiri_ has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
wallerdev has quit [Quit: wallerdev]
strk has left #ruby [#ruby]
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
Spooner has quit [Remote host closed the connection]
awc737 has joined #ruby
camilasan has quit [Remote host closed the connection]
intuxicated has quit [Ping timeout: 276 seconds]
tonni has quit [Remote host closed the connection]
kobrakao has quit [Ping timeout: 256 seconds]
Monie has joined #ruby
markalanevans_ has joined #ruby
pipework has joined #ruby
colonolGron has quit [Quit: Lost terminal]
<shevy> no inbuilt method
humbolt has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
<sheeny> thanks ill do it the other way then simple enough, just not as tidy :)
blackmesa has joined #ruby
hiyosi has quit [Quit: WeeChat 0.4.1]
<shevy> def de_camelcase(i); i.gsub(/([A-Z]+)([A-Z])/,'\1_\2').gsub(/([a-z])([A-Z])/,'\1_\2').downcase
camilasan has joined #ruby
hiyosi has joined #ruby
sheeny has quit [Quit: Page closed]
<apeiros> I think he asked for split, not de-camelize
<apeiros> shevy:
<apeiros> ups
adambeynon has joined #ruby
<apeiros> oh, he already left… perfect. I love that.
<apeiros> >> "ThisIsACamelCaseString".split(/(?!<\A)(?=[A-Z])/)
<eval-in> apeiros => ["This", "Is", "A", "Camel", "Case", "String"] (https://eval.in/44010)
<shevy> hmmmm
mootpointer has quit [Quit: ENOCAFFEINE.]
<shevy> those young ones are early IRC leavers
<shevy> what happened to the old adage that we can idle to power ... :(
* Xeago is still doing it..
<Xeago> don't have as much idle hours on irc as I had on WoW tho..
<hanmac> >> "DNSServer".split(/(?!<\A)(?=[A-Z])/)
<eval-in> Hanmac => ["D", "N", "S", "Server"] (https://eval.in/44011)
<hanmac> hm not what i wanted
mootpointer has joined #ruby
<apeiros> yeah, can't have it all
<apeiros> either IsACamel is split as Is ACamel
<apeiros> or DNSServer is split as D N S Server
<apeiros> camelcase is a lossy format :)
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
browndawg has joined #ruby
jongilbraith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hanmac> camelcase is for camels ;P
ravster has joined #ruby
<YaNakilon> omgwhatryoualldoing
vlad_starkov has quit [Read error: Connection reset by peer]
awc737 has joined #ruby
vlad_starkov has joined #ruby
St_Marx has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
<YaNakilon> nvm
<YaNakilon> "ThisIsACamelCaseString".scan /.[^A-Z]*/
zph has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
shunt has joined #ruby
zph has quit [Excess Flood]
St_Marx has joined #ruby
<YaNakilon> >> "thisIsACamelCaseString".scan /.[^A-Z]*/
tomzx_mac has joined #ruby
<eval-in> YaNakilon => ["this", "Is", "A", "Camel", "Case", "String"] (https://eval.in/44012)
Liothen has quit [Quit: System of a down……]
luis_ has joined #ruby
tonni has joined #ruby
ndrei has quit [Quit: leaving]
abeaumet has joined #ruby
zph has joined #ruby
ndrei has joined #ruby
abeaumet has left #ruby [#ruby]
JDHankle has joined #ruby
<apeiros> >> "ACamelCaseString".scan /.[^A-Z]*/
<eval-in> apeiros => ["A", "Camel", "Case", "String"] (https://eval.in/44013)
markalanevans_ has quit [Quit: markalanevans_]
nari has quit [Ping timeout: 264 seconds]
io_syl has joined #ruby
yaymukund has joined #ruby
Seus has quit [Read error: Operation timed out]
mklappst_ has joined #ruby
luis_ has quit [Ping timeout: 264 seconds]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
mklappstuhl has quit [Ping timeout: 256 seconds]
tomzx_mac has quit [Ping timeout: 276 seconds]
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
jerius has joined #ruby
whowantstolivef3 has quit [Ping timeout: 248 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
ntus1017 has quit [Remote host closed the connection]
marcgg_ has joined #ruby
Matriks has quit [Remote host closed the connection]
smigg has joined #ruby
Appineer has joined #ruby
thillux has joined #ruby
l33_ has quit [Remote host closed the connection]
Appineer has left #ruby [#ruby]
sambao21 has joined #ruby
whowantstolivef3 has joined #ruby
marcgg has quit [Read error: No route to host]
<Xeago> how do you usually case branches?
xeviox is now known as xeviox|afk
jtgiri_ has quit [Quit: jtgiri_]
<Xeago> brown-stick?
<apeiros> git branches?
<Xeago> yes
<Xeago> just had to give that as an exampel ;)
<apeiros> yes, dashed-lowercase
jleishman has quit [Remote host closed the connection]
sailias has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
marcgg has joined #ruby
v0n has joined #ruby
tomzx_mac has joined #ruby
l33_ has joined #ruby
marcgg_ has quit [Ping timeout: 246 seconds]
<Xeago> do you tack on -123 for issue numbers if there are any?
cody-- has quit [Quit: Computer has gone to sleep.]
<Xeago> or how do you name branches for issues
<Xeago> I don't really like adding -123 to my branchnames
<hanmac> Xeago i think issuename-number would be okay you can do _number if you like it more
<Xeago> don't think it should be there at all..
ptshih has left #ruby ["Textual IRC Client: www.textualapp.com"]
<Xeago> compact-issue-name
<jlebrech> what is better than rbenv now?
<Xeago> where the a commit mentions the issue number it solves
<Xeago> jlebrech: there is chruby
<jlebrech> do you use that?
<Xeago> I use rbenv
freerobby has quit [Quit: Leaving.]
<jlebrech> shevy said it was silly software P
<Xeago> I do agree, somehow
<hanmac> on osx i use rvm but only because it does the work for me when compiling (because i often switch the compiler)
lyanchih has joined #ruby
<Xeago> 'packages' should be self contained and not blutter stuff allover different paths and variables
<apeiros> Xeago: yes, usually the branches here are named f-<pivotal-tracker-id>-<description>
poga_ has joined #ruby
<Xeago> ok, thanks apeiros
<apeiros> e.g. f-123-nicer-pics
<Xeago> what does the f stand for?
<Xeago> fix?
<apeiros> feature
<apeiros> b for bug
<apeiros> r for release
<apeiros> h for hotfix
<apeiros> though, it showed that we always just write f- :)
<apeiros> comes from a thing called git-flow (iirc)
luis_ has joined #ruby
cpruitt has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
poga has quit [Ping timeout: 245 seconds]
<Xeago> that used slashes
<Xeago> feature/name bugfix/123-name
ffranz has joined #ruby
<hanmac> yeah you need the "flow" ;P … for my smaller projects i mostly does not use so much branches … i mean when i am all alone on one project
<apeiros> yeah, we don't use slashes here as it makes it easier to confuse paths and revs
ehc has joined #ruby
<Xeago> naming issue number 2!
luis_ has quit [Client Quit]
<Xeago> One has a model, that needs some pre-set data in production
<apeiros> git checkout foo
<Xeago> how do you name the migration to add that data?
monkegjinni has joined #ruby
<apeiros> can checkout either rev or directory named foo
cody-- has joined #ruby
<apeiros> pre-set data is commonly called 'seed data'
<Xeago> SeedModelName then?
renderful has quit [Remote host closed the connection]
<apeiros> rails?
freeayu has quit [Remote host closed the connection]
<Xeago> yes
<apeiros> there it'd be db/seeds.rb
<Xeago> isn't that for tests?
<apeiros> we use our own mechanism, though
<apeiros> no, that's for seeding :)
akells`` has joined #ruby
abeaumet has joined #ruby
St_Marx has quit [Quit: Leaving]
dhruvasagar has joined #ruby
<Xeago> and you'd have to rake db:seed right?
<Xeago> doesn't seem right
kristiandelay has joined #ruby
burlyscudd has joined #ruby
<Xeago> I don't really want to add a different step to deployment
<Xeago> as it only needs to run once, in order of hte migrations
wallerdev has joined #ruby
burlyscudd has quit [Client Quit]
gazarsgo has joined #ruby
devoldmx has joined #ruby
burlyscudd has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
jim0thy_ has joined #ruby
luis_ has joined #ruby
luis_ is now known as KobraKao
xue has quit [Remote host closed the connection]
failshell has joined #ruby
snovak_ has joined #ruby
tabolario has joined #ruby
Wigflip has quit [Ping timeout: 260 seconds]
asobrasil has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
xue has joined #ruby
filipe has quit [Quit: Leaving]
wmoxam has quit [Quit: leaving]
snath has joined #ruby
wmoxam has joined #ruby
buibex has joined #ruby
dtcrshr has joined #ruby
KobraKao has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 264 seconds]
sarkis has joined #ruby
mootpointer has joined #ruby
hamakn has joined #ruby
havenwood has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
browndawg has quit [Read error: Operation timed out]
<shevy> "<Xeago> 'packages' should be self contained and not blutter stuff allover different paths and variables" <-- completely correct
<shevy> I have software with the strangest paths now
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
interactionjaxsn has joined #ruby
<shevy> if I give libffi the configure command "./configure --prefix=/usr --disable-static"
<shevy> I end up with something like /usr/lib/libffi-3.0.13/include/ffi.h
momomomomo has quit [Quit: momomomomo]
akells`` has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
starfox21 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<shevy> hmm apparently the makefile does /usr/bin/mkdir -p '/usr/lib/libffi-3.0.13/include' ... but why it wants to install into such a directory completely eludes me
marr has joined #ruby
hiyosi has quit [Quit: WeeChat 0.4.1]
hiyosi has joined #ruby
zachrab has joined #ruby
buenob has joined #ruby
endzyme has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
nadirvardar has joined #ruby
banisterfiend has joined #ruby
nadirvardar has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
carlyle has joined #ruby
pipework has quit [Remote host closed the connection]
abeaumet has left #ruby [#ruby]
jim0thy_ has quit [Quit: jim0thy_]
nadirvardar has joined #ruby
freerobby has joined #ruby
tk_ has joined #ruby
brain_shim has joined #ruby
akells`` has joined #ruby
carlyle_ has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
Targen has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
akells`` has quit [Remote host closed the connection]
lyanchih has joined #ruby
mansi has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
awc737 has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
<shevy> test
rhys has joined #ruby
kpshek has quit []
michaeldeol has joined #ruby
jlebrech has quit [Ping timeout: 276 seconds]
starship_ has quit [Changing host]
starship_ has joined #ruby
starship_ is now known as starship
mary5030 has joined #ruby
havenwood has quit [Remote host closed the connection]
rhys has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
mrsolo has joined #ruby
suffix has joined #ruby
jlebrech has joined #ruby
<suffix> how do I print an array value inside of a File.puts function?
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
__maes_ has quit [Quit: __maes_]
zoee has quit [Quit: zoee]
mary5030 has joined #ruby
awc737 has joined #ruby
atyz has joined #ruby
devoldmx has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
rhys has joined #ruby
_honning_ has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
visof has quit [Remote host closed the connection]
joast has joined #ruby
poga_ has quit [Remote host closed the connection]
mlpinit_ has joined #ruby
<shevy> why not array.join("\n")
snovak has joined #ruby
Jan1337z is now known as jan1337zZz
zeroXten has joined #ruby
<zeroXten> silly question.. if i have a hash structure like h[:a][:b][:c] = 1 and an array [:a,:b,:c] - how can i best use the array to traverse the hash resulting in the value 1?
timonv has quit [Remote host closed the connection]
snovak_ has quit [Ping timeout: 242 seconds]
michaeldeol has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
<hanmac> suffix: File.puts(*array)
<suffix> yes
<suffix> I got it
<suffix> love u
orionstein_away is now known as orionstein
mlpinit has quit [Ping timeout: 260 seconds]
l33__ has joined #ruby
l33__ has quit [Read error: Connection reset by peer]
l33__ has joined #ruby
yaymukund has quit [Ping timeout: 256 seconds]
poga has joined #ruby
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
renderful has joined #ruby
MarioEIU has joined #ruby
YaNakilon has quit [Ping timeout: 256 seconds]
l33_ has quit [Ping timeout: 268 seconds]
thesheff17 has joined #ruby
MarioEIU has left #ruby [#ruby]
<wuest> zeroXten: that's a weird datastructure. Assuming a is your Hash, and b is your Array, this works to your spec, but it's very smelly
<wuest> b.reduce(a) { |c,e| c[e] }
<wuest> It might be worth revisiting your data structure if possible though; that's a weird one. :)
chxane has quit [Quit: Leaving]
markalanevans_ has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
markalanevans_ has quit [Remote host closed the connection]
awc737 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
luis_ has joined #ruby
Tricon has joined #ruby
luis_ is now known as kobrakao
timonv has joined #ruby
mark_locklear has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
around_ has joined #ruby
YaNakilon has joined #ruby
<zeroXten> wuest: h is hash, its a hash of hashes.. h = {:a => {:b => {:c => 1 } } }
<wuest> b.reduce(h) { |c,e| c[e] } #, then :-)
Kar- has quit []
<wuest> Assuming b is [:a, :b, :c]
<zeroXten> sweet
<wuest> But again: having to use that code is smelly. It's rare to encounter data structures like that, in a context where there's not a better way.
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
sambao21 has quit [Quit: Computer has gone to sleep.]
humbolt has quit [Ping timeout: 264 seconds]
<zeroXten> wuest: hmm, its just a massive tree structure basically
<zeroXten> well "massive"
<zeroXten> is it really that unusual?
tonni has quit [Remote host closed the connection]
<Xeago> does ruby or postgres differentiate between space and hardspace? (32.chr and hundredsomething)
<zeroXten> and the array is a path in the tree
<Xeago> that used to be a 'big' problem among SQLServer and .NET based code
<Xeago> I can't however find that space in my asciitable
humbolt has joined #ruby
theRoUS has joined #ruby
sambao21 has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 264 seconds]
Spooner has joined #ruby
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
threesome has quit [Read error: Operation timed out]
dodosan has joined #ruby
stef_204 has quit [Ping timeout: 246 seconds]
petercommand has joined #ruby
tagrudev has quit [Remote host closed the connection]
huoxito has joined #ruby
awc737 has joined #ruby
ananthakumaran has joined #ruby
bookmage has joined #ruby
Tricon has quit [Quit: Bye!]
bookmage has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
<wuest> zeroXten: Yeah, fair enough. The simplified example made it seem less clean than that.
nari has joined #ruby
mlpinit_ has quit [Read error: Connection reset by peer]
<wuest> Though if you're traversing the structure enough to create an Array pointing to your value, why not return the value at that point?
axl_ has joined #ruby
mlpinit has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
bklane has joined #ruby
jonathanwallace has quit [Ping timeout: 248 seconds]
freerobby has quit [Quit: Leaving.]
jprovazn is now known as jprovazn_afk
sml0820 has quit [Quit: sml0820]
d45s has quit [Ping timeout: 276 seconds]
yacks has quit [Quit: Leaving]
anay has joined #ruby
tkuchiki has joined #ruby
_honning_ has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
ewnd9 has quit [Ping timeout: 261 seconds]
thepumpkin has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
kobrakao has quit [Remote host closed the connection]
peregrine81 has joined #ruby
endash has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
rippa has joined #ruby
Fire-Dragon-DoL has joined #ruby
stef_204 has joined #ruby
awc737 has joined #ruby
enebo has joined #ruby
mmitchell has joined #ruby
threesome has joined #ruby
hiroyuki has joined #ruby
nari has quit [Ping timeout: 256 seconds]
dankest has joined #ruby
quazimodo has joined #ruby
terlar has joined #ruby
spyderman4g63 has joined #ruby
xue has quit [Remote host closed the connection]
afd__ has quit [Read error: Connection reset by peer]
denom_ has quit [Quit: Leaving]
<quazimodo> I am very confused re BigDecimal type. p = BigDecimal.new(8888.88, 6); p.precs => [18, 36]; I don't understand this :/
renderful has quit [Remote host closed the connection]
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
afd__ has joined #ruby
<proxie> quazimodo: The first value is the current number of significant digits in the BigDecimal. The second value is the maximum number of significant digits for the BigDecimal.
* lsmola is away: Away
xue has joined #ruby
<quazimodo> proxie: yeah I get that, but why are those both so large?
hanmac has quit [Quit: Leaving.]
<quazimodo> why did bigdecimal do that?
mrsolo has quit [Quit: This computer has gone to sleep]
<proxie> that's what bigdecimals are for. precise accurate arithmetic.
johnnyfuchs has joined #ruby
<quazimodo> proxie: ok well then that doesn't helpme understand my real problem
<quazimodo> i have 8888.88 in my sql database (the value of some record in there), yet my activemodel attribute has 8888.87999999999
acrussell has joined #ruby
<quazimodo> weird shit :/
acrussell has left #ruby [#ruby]
<proxie> what's the column type in the sql database?
kilophoton has joined #ruby
renderful has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
interactionjaxsn has quit [Remote host closed the connection]
hanmac has joined #ruby
<quazimodo> decimal, precision 8 scale 2
<quazimodo> its very bizarre, let me gist it
zachrab has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
luis_ has joined #ruby
luis_ is now known as Kobrakao
__maes_ has joined #ruby
dtcrshr has quit [Ping timeout: 264 seconds]
io_syl has quit [Quit: io_syl]
_maes_ has joined #ruby
buibex has quit [Remote host closed the connection]
ahawkins has quit [Quit: leaving]
<avril14th> Can one force an Enumerable::inject to stop looping and return a given value?
<avril14th> (hello)
maz-dev_ has quit [Write error: Broken pipe]
persand has quit [Quit: persand]
dodosan has quit [Remote host closed the connection]
anay has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 264 seconds]
Targen has joined #ruby
jonathanwallace has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
adac has quit [Quit: Leaving]
* avril14th autoanswers: yes you can! :)
<apeiros> break generally returns directly from a yielding method, without returning control to the yielding method
<apeiros> @ avril14th
<apeiros> but seems you discovered that or something else which works for you
renderful has quit [Remote host closed the connection]
<avril14th> yes I used break
<avril14th> >>[1,2,3].inject(nil){ |stamp, n| puts n; n == 2 ? (break n) : n }
<eval-in> avril14th => 1 ... (https://eval.in/44047)
<avril14th> >>[1,2,3].inject(nil){ |stamp, n| n == 2 ? (break n) : n }
<eval-in> avril14th => 2 (https://eval.in/44048)
<avril14th> yeah :)
JohnBat26 has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby
DrShoggoth has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
<apeiros> avril14th: it's quite a smell to break from inject, though
Kobrakao has quit [Ping timeout: 256 seconds]
dankest has quit [Quit: Peace]
<avril14th> well, i would agree with that
interactionjaxsn has joined #ruby
<avril14th> maybe someday I'll find a better way to write what I need :)
vlad_starkov has joined #ruby
MrZYX is now known as MrZYX|off
jan1337zZz is now known as jan1337z
jan1337z is now known as Jan
zarubin has joined #ruby
VTLob has joined #ruby
Jan is now known as Guest66696
pel_daniel has joined #ruby
buenob has quit [Remote host closed the connection]
noopq has quit [Ping timeout: 276 seconds]
akells`` has joined #ruby
diegoviola has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
jim0thy_ has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
whowantstolivef2 has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Lewix has joined #ruby
<quazimodo> proxie: !!!
elux has joined #ruby
zombiebit has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby
akells`` has quit [Ping timeout: 246 seconds]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
endzyme has left #ruby [#ruby]
cortexman has joined #ruby
dangerousdave has joined #ruby
whowantstolivef3 has quit [Ping timeout: 264 seconds]
smlgs has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Remote host closed the connection]
ismlages has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
ner0x has joined #ruby
cam`_ has joined #ruby
<proxie> see if that 'For Clarity's Sake' section rings any bells.
<proxie> all i've got is documentation for you. unfortunately, not a definitive answer :(
anay has joined #ruby
renderful has joined #ruby
tylersmith has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby
<quazimodo> oh, i thought maybe you knew
Tricon has joined #ruby
whowantstolivef2 has quit [Ping timeout: 260 seconds]
pipework has joined #ruby
l33__ has quit [Remote host closed the connection]
whowantstolivef2 has joined #ruby
michaeldeol has joined #ruby
aganov has quit [Quit: aganov]
zachrab has joined #ruby
jlast has joined #ruby
tk_ has quit [Quit: ばいばい]
pjeide has quit [Quit: Leaving.]
<hanmac> shevy i found an funny german joke: "Geht im PC die Uhrzeit krumm … berechnet sie ein Pentium" ;P
MrZYX|off is now known as MrZYX
tylersmith has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 246 seconds]
joonty has quit [Ping timeout: 245 seconds]
joonty has joined #ruby
lethjakm1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
whowantstolivef1 has joined #ruby
_veer has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx3 has joined #ruby
kjellski has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 260 seconds]
aedorn has quit [Remote host closed the connection]
swordsmanz has quit [Quit: ooh ponies kinkeyyy]
mikecmpbll has joined #ruby
nanoxd has joined #ruby
jleishman has joined #ruby
whowantstolivef2 has quit [Ping timeout: 264 seconds]
thepreacher has quit [Quit: Leaving]
iboB has quit []
yaymukund has joined #ruby
man40khi_ has quit [Ping timeout: 256 seconds]
l33_ has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
pel_daniel has left #ruby [#ruby]
l33__ has joined #ruby
carlyle_ has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
alienaut has joined #ruby
<alienaut> hey!
lethjakm1 is now known as lethjakman
someish has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
l33_ has quit [Ping timeout: 276 seconds]
fyz1x has joined #ruby
mlpinit has joined #ruby
around_ has quit [Quit: around_]
shajra has joined #ruby
shajra has left #ruby [#ruby]
dhruvasagar has joined #ruby
axeman- has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
kevinfagan has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
shredding has quit [Quit: shredding]
Astral_ has joined #ruby
freerobby has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
kevinfagan has joined #ruby
geggam has joined #ruby
around_ has joined #ruby
strk has joined #ruby
<strk> how do I install bundler ?
iliketur_ has joined #ruby
<strk> ie: /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [] (Gem::LoadError)
iliketur_ has quit [Max SendQ exceeded]
yacks has joined #ruby
<davidcelis> how are you trying
<davidcelis> apparently you have no gems at all?
aryaching has joined #ruby
iliketur_ has joined #ruby
<strk> right, I wiped them all out, taken by a chrisis
iliketur_ has quit [Client Quit]
Matriks has joined #ruby
bklane has quit [Remote host closed the connection]
<davidcelis> gem --help
tonni has quit [Ping timeout: 245 seconds]
<strk> thanks davidcelis
pel_daniel has joined #ruby
Astralum has quit [Ping timeout: 268 seconds]
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zachrab has quit [Remote host closed the connection]
sambao21 has joined #ruby
Davey_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
awc737 has quit [Max SendQ exceeded]
twoism has joined #ruby
Matriks has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 260 seconds]
awc737 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
fantazo has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
<lupine> a = MyStructSubclass.new(disc, 1) ; s = Set.new([a]); a.speed = 2 ; s.include?(a) => false
terlar has quit [Quit: leaving]
ananthakumaran has joined #ruby
<lupine> why on earth does Struct#hash change when the values of an instance's attributes change?
andikr has quit [Remote host closed the connection]
tbrock has joined #ruby
nomenkun has joined #ruby
jefflyne has joined #ruby
<hanmac> lupine its for nearly each other object too … the problem is the syntax in Set, it uses Hash
strk has left #ruby [#ruby]
hamakn has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
<lupine> hanmac, class Foo ; attr_accessor :foo ; end ; a = Foo.new ; s = Set.new( [a] ) ; a.foo = 2 ; s.include?(a) => true
hamakn has joined #ruby
<lupine> The problem is that Struct#hash is ridiculous
joshmyers has quit [Remote host closed the connection]
allsystemsarego has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Remote host closed the connection]
axeman- has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
TheRealPygo is now known as pygospa
zph has joined #ruby
maktig has quit [Ping timeout: 268 seconds]
michaeldeol has joined #ruby
<apeiros> lupine: because the hash value is calculated via its members
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> if you want it differently, you have to override #hash and #eql?
<lupine> yes, that's the crazy I'm referring to
buenob has joined #ruby
<apeiros> e.g. def hash; [self.class, object_id].hash; end
hamakn has quit [Ping timeout: 264 seconds]
<apeiros> and alias eql? equal?
<apeiros> it's not crazy
<apeiros> it's pretty sane
l33__ has quit [Remote host closed the connection]
<apeiros> think about it
sambao21 has joined #ruby
<apeiros> given: X = Struct.new(:a, :b); a = X.new(1,2); h = {a => 1}
<apeiros> what do you expect: `h[X.new(1,2)]` to return?
v0n has quit [Ping timeout: 276 seconds]
s2013 has joined #ruby
zeade has joined #ruby
<apeiros> make it simpler, given: `k = "foo"; h = {k => 1}` - what do you expect `h["foo"]` to return?
Krajsnick has joined #ruby
sambao21 has quit [Client Quit]
<lupine> apeiros, I'd expect it to return nil,
<apeiros> both?
kumarat9pm has joined #ruby
thepreacher has joined #ruby
<lupine> which suggests there are two conflicting uses for structs
<apeiros> if you say nil in both cases, then you want an identity map, not a hash (Hash can do that, Set can't)
kristiandelay has quit [Remote host closed the connection]
browndawg has quit [Read error: Connection timed out]
browndawg has joined #ruby
<lupine> first, as an anonymous holder of other values, and second, as a quick way to create a class, instances of which have their own identity
sambao21 has joined #ruby
<apeiros> and if you say 1 in at least one case, then you should override #eql? and #hash appropriatly
<lupine> or, the version that doesn't break set should be default
<lupine> one can always have a separate class, maybe called Tuple, that does the anonymous business
<apeiros> I think you have a misunderstanding
<lupine> Tupleish ^^
ArchBeOS has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0/20130730113002]]
axeman- has quit [Remote host closed the connection]
maktig has joined #ruby
Criztian has joined #ruby
alvaro_o has joined #ruby
<apeiros> it has nothing to do with being anonymous btw.
<lupine> that's what "#hash is computed from the values" means
Criztian has quit [Excess Flood]
guns has joined #ruby
snovak has quit [Remote host closed the connection]
<lupine> maybe I should just stop using struct in general. it obviously doesn't fit with my expectations
havenwood has joined #ruby
<apeiros> o0
brcrth has joined #ruby
Criztian has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
snovak has joined #ruby
mlpinit has quit [Remote host closed the connection]
kvirani has joined #ruby
<apeiros> Person = Struct.new(:first_name, :last_name); peter1 = Person.new("peter", "parker"); peter2 = Person.new("peter", "parker"); h = {peter1 => 1}; h[peter2]
<apeiros> I pretty much expect that to return 1, not nil
mlpinit has joined #ruby
<apeiros> IMO perfectly sane to compute the hash from the values
tatsuya_o has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<lupine> yes, you expect the instances of the Person class to not have a distinct identity of their own
<lupine> I expect the opposite
will_b_ has joined #ruby
<apeiros> anyway, as said: you obviously want comparison based on identity
lurch_ has joined #ruby
<apeiros> and then just provide proper #hash and #eql?. I showed you how. it's easy enough.
<apeiros> you can also Subclass Struct to make that easier.
<lupine> in my mind, the use of struct pulls up the C construct, and I model #hash as being the pointer value
RichardBaker has joined #ruby
brcrth has quit [Remote host closed the connection]
axeman- has joined #ruby
will_b_ has quit [Client Quit]
ixti has joined #ruby
BillCriswell has joined #ruby
alekst has joined #ruby
mityaz has joined #ruby
wagster has joined #ruby
sambao21 has joined #ruby
nomenkun has quit [Read error: No route to host]
nomenkun has joined #ruby
Kudos has quit [Quit: IRCRelay - http://ircrelay.com]
Kudos has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has quit [Excess Flood]
aryaching has quit [Ping timeout: 256 seconds]
zeropx has joined #ruby
aryaching has joined #ruby
dummy has joined #ruby
Wixy has joined #ruby
<Wixy> Hello guys
<Wixy> I'm getting this error:
<Wixy> *** ERROR ***: [Passenger] Cannot execute /usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby: Permission denied (13)
<Wixy> this is the file: -rwxr-xr-x. 1 root rvm 269 Aug 16 09:31 /usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby
Kudos has joined #ruby
Kudos has quit [Excess Flood]
<Wixy> I'm tring to run a webapp using passenger and apache
<dummy> Can somebody explain me why "URI::Generic.find_proxy" persistently returns: NoMethodError: undefined method `find_proxy' for URI::Generic:Class | ruby 1.8.7 os x
<Wixy> any idea?
vlad_starkov has quit [Read error: Connection reset by peer]
<Morrolan> Wixy: There's something about passenger requiring +x on all folders above the ruby executable up to a certain level.
<dummy> of curse I have required 'URI', 'URI/Generic', even 'open-uri'
<Morrolan> It's mentioned in Passenger's documentation.
vlad_starkov has joined #ruby
<hanmac> dummy your ruby version doesnt get any support anymore … use an newer one
timonv has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
ixti has quit [Ping timeout: 264 seconds]
<dummy> @hanmac unfortunately that is still default ruby on os x
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
zets has quit [Ping timeout: 256 seconds]
<Wixy> Morrolan, I can't find it
tricon_ has joined #ruby
nari has joined #ruby
iliketur_ has joined #ruby
<dummy> @hanmac I get same with 2.0.0
<apeiros> dummy: fortunately it is very easy to install a newer version
camilasan has quit [Remote host closed the connection]
barratt has joined #ruby
<Wixy> it's not exactly the same problem
Tricon has quit [Quit: Linkinus - http://linkinus.com]
yfeldblum has quit [Ping timeout: 240 seconds]
devoldmx3 has quit [Remote host closed the connection]
v0n has joined #ruby
<Morrolan> http://www.modrails.com/documentation/Users%20guide%20Apache.html -> Search for 'loosen permissions'
brennanMKE has quit [Remote host closed the connection]
<Morrolan> The important part's probably just that "you need to make sure that the Phusion Passenger gem directory is accessible by your web server."
<dummy> I do have 2.0.0 installed with homebrew but issue it still present
michaeldeol has quit [Remote host closed the connection]
randomautomator has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
<s2013> any tips on how to write your own gems?
awc737 has joined #ruby
<apeiros> dummy: what makes you think the method should exist?
<Morrolan> dummy: http://www.ruby-doc.org/stdlib-2.0/libdoc/uri/rdoc/URI/Generic.html claims there's no such method. :)
<apeiros> dummy: oh, I see, you confuse class- and instance-methods
aryaching has quit [Ping timeout: 256 seconds]
<apeiros> there is no class method URI::Generic::find_proxy, only an instance method URI::Generic#find_proxy
<apeiros> means you need to create an instace of URI::Generic to call it.
baordog has quit [Remote host closed the connection]
jim0thy_ has quit [Quit: jim0thy_]
xue has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<pontiki> there's probably a good reason it doesn't
Kelet has joined #ruby
aryaching has joined #ruby
<dummy> @apeiros but URI::Generic does not seem to have new
<apeiros> not all classes can be instantiated through new
tommyvyo has quit [Quit:]
<apeiros> but from what I see, URI::Generic has new
<apeiros> but probably you're not supposed to use URI::Generic directly
<apeiros> given that it is Generic. I'd assume there are subclasses.
<apeiros> I suggest you spend some quality time reading the docs.
Evixion has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zeade has quit [Quit: Leaving.]
lurch_ has quit [Quit: lurch_]
devoldmx has joined #ruby
someish has quit [Quit: someish]
saarinen has joined #ruby
jtgiri_ has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
<dummy> @apeiros I have understood that it is equivalent to java static method since it does not need any input to return proxy, I have tried URI::HTTP.find_proxy that still didn't work, I just cannot wrap my head around, so if you could elaborate a bit more it would could help me
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
ephemerian has left #ruby [#ruby]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
ndrei has quit [Ping timeout: 276 seconds]
<dummy> @apeiros doesn't URI::Generic returns instance ?
<Wixy> Morrolan, I set all the permissions, same error
<Wixy> !
sambao21 has joined #ruby
<Morrolan> Wixy: I'm afraid that's as far as my Passenger knowledge goes. :)
<Morrolan> They have an IRC channel, though. Might want to give that one a try.
aryaching has quit [Ping timeout: 256 seconds]
<Wixy> in my case it's /usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby, I set the permissions for all the dirs in that path
<Wixy> :|
<Morrolan> (#passenger, probably)
<Wixy> 11 users, I'll try there anyway :P
<Wixy> thanks
ndrei has joined #ruby
<Morrolan> G'luck. :)
zeade has joined #ruby
ColKurtz has joined #ruby
chrisja has joined #ruby
barratt has quit [Quit: Linkinus - http://linkinus.com]
dmyers has quit [Quit: dmyers]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<apeiros> dummy: no, it's not equivalent to a static method
brennanMKE has joined #ruby
spider-mario has joined #ruby
<apeiros> dummy: a class method would be similar. an instance method is not.
<dummy> @apeiros URI::Generic itself is not an instance ?
<apeiros> no
<apeiros> it's a class
<apeiros> >> require 'uri/generic'; URI::Generic.class
<eval-in> apeiros => Class (https://eval.in/44076)
nari has quit [Ping timeout: 256 seconds]
<apeiros> (well, yes, it is an instance - an instance of the class Class - which makes it a class)
browndawg has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
yfeldblum has joined #ruby
enebo has quit [Quit: enebo]
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
<Xeago> Am I still online?
<apeiros> you're disconnected
<apeiros> please reboot your computer
burlyscudd has joined #ruby
<apeiros> flaky connection?
aryaching has joined #ruby
jrobeson has quit [Ping timeout: 256 seconds]
nanoxd has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
ixti has joined #ruby
Senjai has joined #ruby
aryaching_ has joined #ruby
dangerousdave has quit [Quit: Leaving...]
<dummy> @apeiros Net::HTTP.new('api.github.com', 443).find_proxy => NoMethodError
around_ has quit [Ping timeout: 264 seconds]
<dummy> oops
<apeiros> dummy: I don't follow by what logic you imply Net::HTTP had #find_proxy…
aryaching has quit [Client Quit]
aryaching_ is now known as aryaching
cookiemonsta has quit [Quit: Leaving.]
will_b has quit [Quit: Lost terminal]
yaymukund has quit [Ping timeout: 264 seconds]
druonysus has quit [Ping timeout: 264 seconds]
dodosan has joined #ruby
<pontiki> crikey
tkuchiki has quit [Remote host closed the connection]
Xeago has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
locriani has quit [Remote host closed the connection]
avril14th has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
anay has quit [Remote host closed the connection]
sayan has joined #ruby
anay has joined #ruby
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has joined #ruby
<dummy> @apeiros sorry that was just mad desperation, got I do have to URI.parse() to be able to use find_proxy which does look like a bad design to me
Senjai has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Ping timeout: 256 seconds]
<Wixy> no luck :(
<dummy> @apeiros I do not get their logic but it works
senayar has quit [Ping timeout: 264 seconds]
<apeiros> m, lol?
browndawg has joined #ruby
<dummy> @apeiros thank you anyway
browndawg has quit [Max SendQ exceeded]
<apeiros> you don't understand the logic, yet you think it's bad design…
<apeiros> yay for reasoning.
shaunbaker has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
<apeiros> also, you don't yet seem to have understood how ruby works, yet you think you're ready to judge API design?
browndawg has joined #ruby
<apeiros> sorry lad, but please, learn the basics before you go around judging things.
anay has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
Doc_X has joined #ruby
klaut has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
Guest66696 is now known as jan1337zZz
around_ has joined #ruby
kvirani has joined #ruby
starship has quit [Quit: Leaving]
<atmosx> hello
dankest has joined #ruby
<dummy> @apeiros whatever thanks. I just would not require you instantiate object to use utility method that is in no [obvious] way dependent to said object data. that is all.
andrew565 has joined #ruby
starship has joined #ruby
starship has quit [Read error: Connection reset by peer]
love_color_text has quit [Remote host closed the connection]
michaeldeol has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
huoxito has quit [Quit: Leaving]
krz has quit [Quit: krz]
starship has joined #ruby
<apeiros> dummy: your premise is wrong.
Bio has joined #ruby
brianpWins has joined #ruby
jdenen has joined #ruby
starship has quit [Client Quit]
starship has joined #ruby
twoism has quit [Read error: Connection reset by peer]
rupee has joined #ruby
twoism_ has joined #ruby
bricker`1way has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
<apeiros> dummy: your "utility method" would not find the proper proxy because it wouldn't be able to make heads or tails of which proxy you want. there are proxies for more protocols than just http.
sqd has quit [Quit: sqd]
<apeiros> your "utility method" would also utterly fail to apply NO_PROXY because that's very much related to the URI you have at hand.
<apeiros> so again, before you go around judging things you don't understand, please go and learn the basics. thanks.
kvirani has quit [Ping timeout: 276 seconds]
<pontiki> you need at least the scheme to figure out the response to find_proxy
<dummy> well there are URI:HTTP, URI:FTP ... why I cannot have my own opinion ?
<dummy> :-)
zeade has joined #ruby
<apeiros> because it's not a thing of opinion
carlyle has joined #ruby
jtgiri_ has joined #ruby
SHyx0rmZ has joined #ruby
<apeiros> it's a question of whether it's possible or not. your suggestion of a utility method is simply not possible and hence doesn't make sense.
bricker`away has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troessner has quit [Read error: Connection reset by peer]
<apeiros> even if you'd use URI::HTTP (*not* URI:HTTP - basics, again), you still can't apply NO_PROXY properly without having an URI.
Davey_ is now known as Davey
seich| has quit [Ping timeout: 245 seconds]
huoxito has joined #ruby
goodwill has joined #ruby
goodwill has left #ruby ["+++ OK ATH OK"]
banisterfiend has quit [Quit: Computer has gone to sleep.]
kvirani has joined #ruby
jan1337zZz is now known as jan1337z
jan1337z is now known as Jan
Jan is now known as Guest58021
noname001 has quit [Ping timeout: 268 seconds]
akells`` has joined #ruby
tylersmith has joined #ruby
michaeldeol has quit [Ping timeout: 245 seconds]
pierre1 has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dummy> @apeiros yeah probably
v0n has quit [Ping timeout: 260 seconds]
atyz has quit [Quit: Leaving...]
atyz has joined #ruby
jefflyne has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
alienaut has left #ruby [#ruby]
musl has quit [Quit: WeeChat 0.4.1]
jefflyne has joined #ruby
brianpWins has quit [Quit: brianpWins]
aryaching has quit []
aryaching_ has joined #ruby
<apeiros> …yeah… "probably". whatever indeed.
clooth has joined #ruby
mityaz_ has joined #ruby
banisterfiend has joined #ruby
jleishman has quit [Remote host closed the connection]
<pontiki> dummy, what do you need the proxy for?
ndrei has quit [Ping timeout: 246 seconds]
Monie has joined #ruby
<dummy> @pontiki I don't, I wish I don't :-) just some PR on github and somebody is using proxy and so I will add it
wallerdev has quit [Quit: wallerdev]
thebastl has joined #ruby
v0n has joined #ruby
jleishman has joined #ruby
jtgiri_ has quit [Ping timeout: 248 seconds]
hamed_r has joined #ruby
moos3 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bklane has joined #ruby
<pontiki> so you don't need it but you do?
altamic has joined #ruby
<dummy> @pontiki yeah
timonv has quit [Remote host closed the connection]
altamic has left #ruby [#ruby]
<pontiki> a && !a == what?
altamic has joined #ruby
<pontiki> anyway
francisfish has joined #ruby
<dummy> false | 0 why ?
andrew565 has left #ruby [#ruby]
altamic has left #ruby [#ruby]
brtdv has joined #ruby
<eka> dummy: how long programming in ruby?
mando has joined #ruby
musl has joined #ruby
<dummy> @eka only occasionally
<pontiki> dummy: it's imperitive to know the scheme (i.e. http, https, ftp) to figure out the proxy
mengu has quit [Ping timeout: 264 seconds]
<dummy> yes I have looked up NO_PROXY :-)
<eka> dummy: how long programming at all?
Wixy has quit [Ping timeout: 264 seconds]
maz-dev has joined #ruby
<dummy> I do not really program, like I'm not a bot type of thing sorry for no ego boost
alex__c2022 has joined #ruby
<pontiki> oh my
mrsolo has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
<eka> you lost me there
<pontiki> now you can expect to never get any more help
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<pontiki> because we bots are just that temperamental things
<pontiki> because that's not actually an insult or anything, is it?
dkamioka has joined #ruby
<eka> now I'm tempted to ask the age… but I will not
<dummy> not at all, walk on the bright side of life my friend
<dummy> and have some humor
<dummy> ! :-)
brtdv has quit [Client Quit]
dummy has quit [Quit: Page closed]
<pontiki> calling people who you are asking for help "bots" is a deep insult, my friend
hadees has quit [Quit: hadees]
<apeiros> what? you're not a bot pontiki? *so confused now*
<apeiros> ;-)
<pontiki> if you believe you walk on the bright side by insulting people, well, i guess i just feel sorry for you, dummy
<eka> left
* apeiros is a somewhat complex biochemomechanical bot
hadees has joined #ruby
<pontiki> ta, eka. i have joins/parts/quits ignored
* apeiros still wants a client with proper smart join/parts/quits
shadoi1 is now known as shadoi
pinage404 has quit [Excess Flood]
<pontiki> what would "smart" be for you?
<apeiros> show me j/p/q of people I'm interested in, without me having to configure.
<eka> pontiki: can't see if left or what… it's no more… have to config those settings I think
<pontiki> nodnod
kumarat9pm has quit [Ping timeout: 276 seconds]
<apeiros> naive implementation would be to keep track of who you talked to, or who talked recently
<pontiki> and /ignore everyone i'm not interested in :)
<eka> apeiros: +1
<pontiki> that could work
<apeiros> na, that part I think is better suited for manual config ;-)
<pontiki> if you remember to start off the convo with their nick
jtgiri_ has joined #ruby
<apeiros> I know limechat had mechanics in its code to detect "message threads"
<apeiros> i.e. when you were talking to somebody else
pinage404 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<apeiros> pontiki: well, it's sane to infer that you either a) continue a previous discussion or b) reply to the most recent talker
<pontiki> yes, it is
<apeiros> I'm actually fine if it just puts both into the "bag of people of interest"
DanKnox_away is now known as DanKnox
<pontiki> but if you start a new convo, include to whom (that's actually sort of good irc practice anyway, really)
<pontiki> group convos are a bit hard
<apeiros> and if it fails for a minuscule percentage - fine. still better than seeing all j/p/q
<pontiki> yup
<apeiros> well, those fall into "recent talker" anyway
<apeiros> to whom I talked is mostly relevant for smart join
lkba has joined #ruby
ndrei has joined #ruby
maz-dev has quit [Remote host closed the connection]
mark_locklear has joined #ruby
<apeiros> also, messages of `<nick> <text>` style with <nick> no longer being present should issue a warning
<apeiros> and/or offer to memo it
<apeiros> gotta commute
<pontiki> that's a good idea
<apeiros> cya guys & girl(s?)
<pontiki> seeya
RichardBaker has quit [Quit: RichardBaker]
s2013 has quit [Ping timeout: 276 seconds]
<pontiki> rubyfen
<pontiki> hehe
zph has quit [Quit: Computer has gone to sleep.]
RichardBaker has joined #ruby
seich- has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
c0rn has joined #ruby
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
blackmesa has quit [Quit: WeeChat 0.4.1]
atyz has quit [Quit: Leaving...]
awc737_ has joined #ruby
Xeago has quit [Remote host closed the connection]
rburton- has joined #ruby
atyz has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
cody-- has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
Voodoofish430 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
erry is now known as error
cody-- has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
huevon has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Es0teric has joined #ruby
dhruvasagar has joined #ruby
Al_ has quit [Quit: Al_]
ndrei has quit [Ping timeout: 264 seconds]
tommyvyo has joined #ruby
error is now known as erry
havenwood has joined #ruby
mrsolo has quit [Quit: Leaving]
popl has joined #ruby
BRMatt has quit [Ping timeout: 260 seconds]
twoism_ has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
twoism has joined #ruby
workmad3 has joined #ruby
twoism has quit [Remote host closed the connection]
kumarat9pm has joined #ruby
twoism has joined #ruby
twoism has quit [Read error: Connection reset by peer]
a7d7p has joined #ruby
twoism has joined #ruby
strg has joined #ruby
mrsolo has joined #ruby
burlyscudd has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
Quashie has quit [Ping timeout: 256 seconds]
user64 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby
user64 has left #ruby [#ruby]
thesheff17 has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
qnix has joined #ruby
<qnix> No fribidi implementation for ruby ?
zacts has quit [Quit: leaving]
<qnix> no love for other languages ?
<hanmac> isnt fribidi only a question for the output?
Alina-malina has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
Alina-malina has joined #ruby
<qnix> hanmac: ?
bklane_ has joined #ruby
bklane has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
clooth has quit [Quit: clooth]
<qnix> hanmac: fribidi does bidi for text some conversions and much more can parse text in for eg: arabic, hebrew,chinese,jap,..etc in the correct form
clooth has joined #ruby
blaxter has quit [Ping timeout: 245 seconds]
<hanmac> i mean i currently dont see a reason why ruby would need fribidi … i mean ruby strings can hold different type of chars … even arabic …
clooth has quit [Client Quit]
braincra- has joined #ruby
thepreacher has quit [Quit: Leaving]
<qnix> hanmac: hold != parse correctly
guitsaru_ has joined #ruby
guitsaru_ has quit [Client Quit]
<Nilium> What do you mean by parse?
Neomex has joined #ruby
SirFunk_ is now known as SirFunk
johnnyfuchs has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
<qnix> Nilium: arabic/hebrew/..etc characters/words need to follow the unicode bidirectional algorithim for shaping, character connection, reshaping and so on
banisterfiend has joined #ruby
apeiros has joined #ruby
<qnix> fribidi is a library that does that and it's ported to various languages, python for eg
io_syl has joined #ruby
braincrash has quit [Ping timeout: 276 seconds]
<qnix> Unicode standard A#9 describes the algorithim
iliketur_ has quit [Quit: zzzzz…..]
tatsuya_o has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
yaymukund has joined #ruby
<Nilium> So, without reading the long as heck standard, what makes Ruby's current strings deficient in this regard?
tonni has joined #ruby
<Nilium> I'll trust that you have read the standard.
JDHankle has quit [Remote host closed the connection]
<qnix> yes ruby strings doesn't do bidi it's not supposed to
RichardBaker has joined #ruby
Zolo has joined #ruby
anis has joined #ruby
<Nilium> What do you mean by "doesn't do bidi" though?
graft has quit [Ping timeout: 276 seconds]
<qnix> Can you read this "مرحبا" ?
<Nilium> Yes.
ebouchut has joined #ruby
<qnix> the characters should be RTL and connected
narcan has quit [Ping timeout: 256 seconds]
anis has left #ruby [#ruby]
<Nilium> So can you not have a directional formatting code in Ruby or what?
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
<qnix> directional and shaping, by shaping I mean .. dude just read the algorithim or bidi
JimmyNeutron has joined #ruby
<qnix> some languages work totoally different than english they need special handling
<Nilium> I could, but it'd be easier if you just explained why a Ruby string being able to hold arbitrary data isn't sufficient
around_ has quit [Quit: around_]
<Nilium> I mean, that's what a string is, it's arbitrary data.
zacts has joined #ruby
<qnix> so you're saying you can 'print' arabic words corrcetly in ruby ?
qnix has left #ruby [#ruby]
tommyvyo has quit [Quit:]
akells`` has quit [Remote host closed the connection]
noname001 has joined #ruby
predator217 has quit [Ping timeout: 246 seconds]
pitzips has joined #ruby
<Nilium> What is printing correctly vs. incorrectly? How do you incorrectly write an arbitrary string of bytes to an output?
<hanmac> Nilium: he is gone ;P
<Nilium> Dude be crazy
XenoWolf has joined #ruby
<gazarsgo> if you use the wrong encoding you'll print it wrong
<Nilium> So use UTF-8 and job done.
<gazarsgo> lol.
<hanmac> gazarsgo: the encoding maybe has nothing todo with that
<Nilium> I think the problem is he's confusing text with strings.
lyanchih has quit [Quit: lyanchih]
fantazo has quit [Ping timeout: 260 seconds]
iliketur_ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
sahoal has joined #ruby
interactionjaxsn has joined #ruby
<hanmac> like the string he posted in there, in my irc the chars are connected but when i try to post them into irb they are not connected anymore :/
carlyle has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 248 seconds]
raul782 has joined #ruby
JDHankle has joined #ruby
carlyle has joined #ruby
<Nilium> But is that an issue with IRB or the terminal?
ananthakumaran has quit [Quit: Leaving.]
<Nilium> My understanding is that most terminals hate RTL text.
michaeldeol has quit [Remote host closed the connection]
lyanchih has joined #ruby
tommyvyo has joined #ruby
burlyscudd has joined #ruby
rippa has joined #ruby
<pipework> Except when you're using zsh rprompt, rite.
<Nilium> Not sure if sarcasm.
timonv has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
interactionjaxsn has quit [Ping timeout: 264 seconds]
ryandeussing has quit [Remote host closed the connection]
ryandeussing has joined #ruby
raul782 has left #ruby [#ruby]
axeman- has quit [Ping timeout: 264 seconds]
aryaching_ is now known as aryaching
jprovazn_afk is now known as jprovazn
arietis has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
Spooner has quit [Remote host closed the connection]
ffio_ has joined #ruby
mklappst_ has quit [Remote host closed the connection]
lambda_ has quit [Quit: lambda_]
ndrei has quit [Quit: leaving]
devoldmx has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
pjeide has quit [Quit: Leaving.]
graft has quit [Ping timeout: 248 seconds]
ffio has quit [Ping timeout: 268 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
ebanoid has quit [Quit: brbomgwtfbbq]
sqd has joined #ruby
rickmasta has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
xcv has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
ndrei has quit [Client Quit]
Davey has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
interactionjaxsn has joined #ruby
ndrei has joined #ruby
around_ has joined #ruby
ndrei has quit [Write error: Broken pipe]
ndrei has joined #ruby
krawchyk has joined #ruby
predator117 has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
dweeb has joined #ruby
browndawg has quit [Quit: Leaving.]
alex__c2022 has joined #ruby
sqd has quit [Quit: sqd]
Naoe-Kanno has joined #ruby
pel_daniel has left #ruby [#ruby]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Ping timeout: 264 seconds]
whowantstolivefo has joined #ruby
SHyx0rmZ has quit [Ping timeout: 264 seconds]
graft has joined #ruby
graft has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
sqd has joined #ruby
tatsuya_o has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
sqd has quit [Client Quit]
brianpWins has joined #ruby
xcv has quit [Remote host closed the connection]
strg has quit [Quit: Linkinus - http://linkinus.com]
xcv has joined #ruby
anderson has joined #ruby
sqd has joined #ruby
chxane has joined #ruby
predator117 has joined #ruby
sqd has quit [Client Quit]
lambda has joined #ruby
bricker`LA is now known as bricker
dweeb has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
xcv has quit [Ping timeout: 256 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nomenkun has quit [Remote host closed the connection]
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
rupee has quit [Quit: Leaving]
kirun has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
lyanchih has quit [Quit: lyanchih]
predator117 has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
fenicks has joined #ruby
relix has joined #ruby
sparq_ has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
mmitchel_ has joined #ruby
hadees has quit [Ping timeout: 276 seconds]
jblack has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
cookiemonsta has joined #ruby
cookiemonsta has quit [Max SendQ exceeded]
mmitchell has quit [Ping timeout: 276 seconds]
iliketur_ has quit [Quit: zzzzz…..]
cookiemonsta has joined #ruby
wallerdev has joined #ruby
sparq_ has quit [Remote host closed the connection]
hamed_r has quit [Quit: Ex-Chat]
sqd has joined #ruby
sparq_ has joined #ruby
MarioEIU has joined #ruby
hadees has joined #ruby
Lewix has quit [Remote host closed the connection]
sqd has quit [Client Quit]
chriskk has joined #ruby
carlyle has quit [Remote host closed the connection]
devinus has joined #ruby
sml0820 has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
jleishman has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
jleishman has joined #ruby
devoldmx27 has joined #ruby
devoldmx has quit [Read error: No route to host]
splittingred has joined #ruby
brennanMKE has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
sqd has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
johnnyfuchs has joined #ruby
axl__ has joined #ruby
maz-dev has joined #ruby
axl_ has quit [Ping timeout: 264 seconds]
axl__ is now known as axl_
zmansiv has joined #ruby
<bricker> In your opinion, which one of these two is better? Return value doesn't matter. https://gist.github.com/bricker/6285844
<bricker> I'm inclined to say that the first example is better because it's more clear what is happening
BillCriswell has quit [Remote host closed the connection]
zorg24 has joined #ruby
<fryguy> bricker: i'd remove the unused variable declaration
michaeldeol has joined #ruby
<bricker> fryguy: what do you mean?
<bricker> fryguy: oh, I see
<bricker> fryguy: sorry, I should have been more clear, this is not the full method
<bricker> the rest of the method goes on to use that variable
<fryguy> bricker: then use the first option, and pull it out to be the result of the if
<devinus> what's the easiest way to turn {"foo"=>1, "bar"=>2} into "foo=1;bar=2" ?
kaldrenon has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
johnnyfuchs has quit [Remote host closed the connection]
<bricker> devinus: hash.map { |k, v| "#{k}=#{v}" }.join(";")
<fryguy> devinus: straightforwward is something like hashed_var.map {|k,v| "{k}={v}"}.join(';')
<bricker> :)
<fryguy> missed pound signs, bricker got it
<devinus> that's what i currently have. i thought maybe you could do it with two join's tho
<fryguy> this is a really fragile method though, so probably not the best
<fryguy> notably, if '=' appears in a key or value, it's broken
Spami has joined #ruby
<devinus> the keys and values will be quoted
michaeldeol has quit [Remote host closed the connection]
<devinus> uri quoted
michaeldeol has joined #ruby
akells`` has joined #ruby
carlyle has joined #ruby
maz-dev has quit [Remote host closed the connection]
SmoothPorcupine has joined #ruby
<SmoothPorcupine> This is so surreal.
decoponio has quit [Quit: Leaving...]
JDHankle has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 256 seconds]
starfox21 has quit [Ping timeout: 276 seconds]
devoldmx has joined #ruby
hadees has quit [Quit: hadees]
sml0820 has left #ruby [#ruby]
gyre007 has joined #ruby
krawchyk has quit [Remote host closed the connection]
akells`` has quit [Ping timeout: 248 seconds]
Bosox20051 has joined #ruby
ebouchut has joined #ruby
sqd has quit [Quit: sqd]
devoldmx27 has quit [Ping timeout: 264 seconds]
ebanoid has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
gr33n7007h has joined #ruby
sqd has joined #ruby
axl_ has quit [Quit: axl_]
mmitchel_ has quit [Read error: Connection reset by peer]
kevinykchan has quit [Quit: Computer has gone to sleep.]
<SmoothPorcupine> It bugs inside the loop but not at the top of the file.
<gyre007> ruby masters....how can I turn ["host", "port"] array into {host: "host", port: "port"} hash ?
eldariof has joined #ruby
mmitchell has joined #ruby
anonymuse has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
anonymuse has joined #ruby
mmitchell has joined #ruby
<hanmac> gyre with Hash[] and zip
Wixy has joined #ruby
<SmoothPorcupine> Hash[arr.map{|n|[n.to_sym,n]}]
<Morrolan> >> ary = ["host", "port"]; Hash[ary.map(&:to_sym).zip(ary)]
* Morrolan prods eval-in
<eval-in> Morrolan => {:host=>"host", :port=>"port"} (https://eval.in/44100)
axl_ has joined #ruby
* Morrolan gives eval-in a pat on the back
<hanmac> >> Hash[["host","port"].zip ["localhost","80"]]
<eval-in> Hanmac => {"host"=>"localhost", "port"=>"80"} (https://eval.in/44101)
sjltaylor has joined #ruby
jonahR has joined #ruby
<Morrolan> Seems to have been a temporary hiccup, then.
chriskk has quit [Remote host closed the connection]
axl_ has quit [Client Quit]
<heftig> or just {host: arr[0], port: arr[1]}
carraroj has joined #ruby
<Morrolan> I had kind of assumed his array wouldn't be static. :P
<Morrolan> Because if it is, then the best solution is {host: 'host', port: 'port'} :P
<heftig> Morrolan: I had assumed "host" and "port" are really just placeholders for stuff like "example.com" and "454"
<Morrolan> Ah, I see.
<SmoothPorcupine> I hope you have an actual use for this Hash.
<heftig> and the expected output is still {host: "example.com", port: "454"}
<Morrolan> I do admit that this would be the most realistic use case.
Wixy has left #ruby [#ruby]
<Morrolan> In that case I'd like to stab him a little, for supplying us with an 'obfuscated' input. ;)
<gyre007> cheers I'll have a look how I can use it...
* Morrolan snrks
jleishman has quit [Remote host closed the connection]
<SmoothPorcupine> And next time don't call us masters.
iliketur_ has joined #ruby
browndawg has joined #ruby
brianpWins has quit [Quit: brianpWins]
michaeldeol has quit [Remote host closed the connection]
<gyre007> SmoothPorcupine: why not ? :)
pkrnj has joined #ruby
twoism has quit [Read error: Connection reset by peer]
<SmoothPorcupine> Senpai is more accurate.
twoism has joined #ruby
iboB has joined #ruby
dash_ has joined #ruby
companion is now known as Companion
ahawkins has joined #ruby
<iboB> i'm writing a gem that often uses a specific way to join arrays, i want to create a function to do this, instead of calling the exact same join every time. where is the best place to put it?
<bricker> Okay, another "best-practice" question - this one is not really ruby-specific. Which of the two "build_custom_changes" methods is better programming practice? https://gist.github.com/bricker/6286155 if `self.class.versioned?` is true, then it *should* define the instance method `build_version`, and I feel like #2 is more clear about about the meaning of the code. #1 is safer though. Thoughts? Sorry for the kind-of contrived example, I
<iboB> obviously adding it to Array is simple and will look nice but isn't this a bad practice?
<SmoothPorcupine> No.
<SmoothPorcupine> Adding methods to Array that belong on Array is sane.
<SmoothPorcupine> Anything else is anti-OO.
robustus has quit [Ping timeout: 245 seconds]
carlyle has quit [Remote host closed the connection]
<SmoothPorcupine> bricker, why bother checking something that is irrelevant?
<SmoothPorcupine> Ask the object only of the method you want, nothing more, nothing less.
endash has quit [Quit: endash]
<waxjar> tell, don't ask! :D
<iboB> SmoothPorcupine i'm talking about a join that results in elements separated by newlines, where each element is in quotes: "\"#{ar.join("\"\n\"")}\""
Quashie has joined #ruby
<iboB> does this belong in Array?
<SmoothPorcupine> Yeah.
<SmoothPorcupine> Probably Enumerable or something.
robustus has joined #ruby
<SmoothPorcupine> Wherever #join is.
tatsuya__ has joined #ruby
<waxjar> i quite like to use extend on individual instances instead of "polluting" a core class
ffio_ has quit [Quit: WeeChat 0.4.1]
Lewix has joined #ruby
splittingred_ has joined #ruby
<SmoothPorcupine> Ruby was designed specifically to fuck that paradigm.
<iboB> i too thought that this might be considered poluting
<SmoothPorcupine> "Want to override a core method? GO THE FUCK AHEAD."
<SmoothPorcupine> "THE CORE IS NOT SACRED."
splittingred has quit [Ping timeout: 264 seconds]
splittingred_ is now known as splittingred
<SmoothPorcupine> "ABUSE MEEEEEEE."
timonv has quit [Remote host closed the connection]
<banisterfiend> iboB: if you can achieve what you want without monkey patching Array, then do it that way :)
<SmoothPorcupine> iboB my friend, it's not.
<gyre007> so senpais :)
<havenwood> iboB: Refine ALL THE THINGS! \o/
<SmoothPorcupine> /You/ consider it pollution.
visof has joined #ruby
visof has joined #ruby
<iboB> well of couse i could have a function my_join_array(array)
senayar has joined #ruby
<gyre007> how do I make this code https://gist.github.com/milosgajdos83/6286276 looks like ruby so that I dont get killed by ruby senpai when he/she sees the code ? :)
devoldmx has quit [Ping timeout: 276 seconds]
<gyre007> I'm looking for some advise on code style....this is craziness I know
tatsuya_o has quit [Ping timeout: 264 seconds]
<gyre007> but it works
snath has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
<iboB> havenwood is this 2.0 only?
<iboB> does it work in 1.9.2
<havenwood> gyre007: Use #map every time, don't intermix #collect.
<havenwood> iboB: Nope, 2.0+ only.
ndrei has quit [Read error: Operation timed out]
<iboB> then alas i can't use it
<SmoothPorcupine> gyre007 my friend, #map and #collect are the same thing, you can combine the calls.
<gyre007> thats it ? :)
Speed has joined #ruby
<gyre007> yeah I had a slight suspicion about those :)
johnnyfuchs has joined #ruby
<banisterfiend> SmoothPorcupine your "my friend" thing is really cringey
<havenwood> gyre007: Only other thing is you're using irb not Pry. :P
<havenwood> gyre007: http://pryrepl.org/
<SmoothPorcupine> Yeah I know. :V
<SmoothPorcupine> But I can't very well just default to it being offensive can I?
<gyre007> Im a sysad doing some tool script and only just beginning with ruby...2-3 days kid I am :)
<gyre007> hows pry better than irb ?
<popl> It's got electrolytes.
ner0x has quit [Quit: Leaving]
<Lewix> It's not, gyre007
<havenwood> gyre007: First thing you'll notice is color.
<Lewix> It's different
mando has quit [Remote host closed the connection]
<havenwood> Lewix: better.
<gyre007> ah
<Lewix> not
flak has joined #ruby
<havenwood> gyre007: Type `help` in Pry for a list of the awesome.
<havenwood> Lewix: Way, way better.
<SmoothPorcupine> gyre007 my friend, PRY add the "can call from my own ruby code" feature.
<Lewix> havenwood: you're a good friend, I know that much
flak is now known as Guest74830
<SmoothPorcupine> But it's not actually /better/.
<SmoothPorcupine> adds*
<havenwood> SmoothPorcupine: Is so, is so!
<gyre007> mmm
ndrei has joined #ruby
<gyre007> i will check it out
<pontiki> "better" is such a personal thing
* SmoothPorcupine created tur own IRB clone specifically because IRB could not be hacked into being callable easily.
zph has joined #ruby
<havenwood> <3 syntax highlighting
carlyle has joined #ruby
<pontiki> "better" for what? "better" for whom? "better" in what situations? "better" in how comfy one is with change?
<havenwood> indentation and color make code so much more readable for me
rippa has quit [Ping timeout: 248 seconds]
maz-dev has joined #ruby
shemerey has joined #ruby
<SmoothPorcupine> I literally do not notice if code is colored or not.
<pontiki> that's ok
mityaz_ has quit [Quit: See ya!]
mityaz has quit [Quit: See ya!]
<pontiki> pry has a *whole* bunch of extra features
<havenwood> SmoothPorcupine: Hugely matters for me. So strange looking at Go code or other langs that tend to not syntax highlight.
<pontiki> but that doesn't make pry better than irb universally
wagster has quit [Quit: Textual IRC Client: www.textualapp.com]
<SmoothPorcupine> Makes it worse IMO.
<pontiki> i still haven't wired pry into my emacs environment
<pontiki> it would if you couldn't use those features
spyderman4g63 has quit [Remote host closed the connection]
<SmoothPorcupine> Nah, I don't need them loaded.
<SmoothPorcupine> I want a clean environment when testing code samples.
<pontiki> but i do find it rather nice to be able to step into code in pry and look around while i'm trying to explore how things work
<SmoothPorcupine> I just use ruby -e anymore.
<havenwood> pontiki: Disable all the Pry commands? :P
BlakeRG has joined #ruby
<SmoothPorcupine> Dropping into a prompt doesn't help me.
<pontiki> not me, havenwood !!
<pontiki> i like them all
<BlakeRG> why do i get "rake aborted! undefined method `accept' for nil:NilClass" when i run "bundle exec rake db:setup" for this rails project? any ideas?
yacks has quit [Ping timeout: 264 seconds]
Wildhoney has joined #ruby
<banisterfiend> SmoothPorcupine well irb had some bugs (not sure if it does anymore) that pry did not have related to parsing some syntax
nomenkun has joined #ruby
zph has quit [Client Quit]
<SmoothPorcupine> >parsing
<banisterfiend> SmoothPorcupine: also irb's auto-indentation is broken, but that's not necessarily a big deal for some people
s2013 has joined #ruby
s2013 has quit [Client Quit]
verto has quit [Ping timeout: 276 seconds]
<SmoothPorcupine> I don't trust pre-parsers.
<gazarsgo> is there a way to get irb to reload without losing my command history ?
<SmoothPorcupine> Hahahahahahahahaha.
<banisterfiend> SmoothPorcupine: that's another thing, IRB has its own custom lexer that has been buggy, whereas Pry just uses ruby itself
<SmoothPorcupine> >get IRB to
<banisterfiend> it doesn't have a custom lexer, it just relies on ruby to do process the input stream
<SmoothPorcupine> Oh that is interesting.
<SmoothPorcupine> Does it do it by evaling and checking the SyntaxError?
flughafe1_ has joined #ruby
<banisterfiend> Pry is also a lot easier to extend, much more highly documented, and has a tonne of plugins that provide powerful functionality
<SmoothPorcupine> Wait.
<banisterfiend> SmoothPorcupine: not quite
<SmoothPorcupine> >input stream
<SmoothPorcupine> The *interactive* terminal reads form STDIN?!
<SmoothPorcupine> from*
<banisterfiend> SmoothPorcupine: it can read from any object that has a #readline method
<SmoothPorcupine> >can
eldariof has quit [Ping timeout: 248 seconds]
<SmoothPorcupine> If I drop into a PRY prompt in the middle of my code, is it going to eat STDIN data?
<banisterfiend> so it typically reads from Readline, but it can also read from StringIOs or whatever
ixti has quit [Ping timeout: 246 seconds]
dagen has joined #ruby
visof has quit [Ping timeout: 248 seconds]
<banisterfiend> SmoothPorcupine: if you tell it to, but by default it just uses Readline
* SmoothPorcupine isn't sure where Readline reads from
nomenkun has quit [Ping timeout: 264 seconds]
ehaliewicz has joined #ruby
thebastl has quit [Quit: Ex-Chat]
jefflyne has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
Woodsman has joined #ruby
mfilipe has joined #ruby
<waxjar> whatever's in Readline.input
<waxjar> returned by, rather
Guest74830 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<mfilipe> hi! I have a class and I wanna rewrite a protected method but it is in a lib which I don't wanna change. Is there some way to rewrite that method?
<SmoothPorcupine> Does PRY ensure that will be STDERR?
<Lewix> what does the term anonymous function stand for. Why do we we call proc and lambdas anonymous functions
jefflyne has joined #ruby
<banisterfiend> Lewix a function without a name ;)
<banisterfiend> but ruby doesn't really have named functions either ;)
michaeldeol has joined #ruby
mklappstuhl has joined #ruby
<Lewix> banisterfiend: thanks =). And what do you mean by ruby doesn't have named functions
<banisterfiend> ruby's methods aren't really functions
<banisterfiend> and they're the closest to a named function ruby has, i guess
dagen has left #ruby [#ruby]
<banisterfiend> but for the purpose of discussion we'll just consider them to be named functions ;)
<banisterfiend> Lewix the advantage of anonymous functions is you can define them inline
<Lewix> what's the difference between functions and methods
leeurooi has joined #ruby
<Lewix> I use it interchangeably. Apparently I'm wrong
burlyscudd has quit [Quit: Leaving.]
pjeide has quit [Quit: Leaving.]
leeurooi has quit [Client Quit]
<shevy> Lewix methods are attached to an object: cat = Cat.new; cat.meow()
fmcgeough has joined #ruby
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
visof has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
<popl> Lewix: the distinction is minor but it exists :)
<shevy> Lewix in ruby there are no real functions, if you just do: "def test; puts 'test'; end" it becomes a private method on class Object I think
<banisterfiend> Lewix, well a method is bound to an object, it has an implicit 'self' argument that gets passed to it so it can access ivars, and so on. Also methods can be overridden by subclasses and all that kind of OOP magic going on
<popl> coroutine, method, function/subroutine
brianpWins has joined #ruby
<Lewix> shevy: no it doesn't
<shevy> Lewix what does it become
<mfilipe> hi! I have a class and I wanna rewrite a protected method but it is in a lib which I don't wanna change in its code. Is there some way to rewrite that method?
<Lewix> shevy: public method
senayar has quit [Remote host closed the connection]
<banisterfiend> Lewix no shevy is right
<banisterfiend> Lewix if you define a method at top-level (i assume that's what we mean) then it becomes a private method on Object
<popl> I am interested in the answer to mfilipe's question too.
maz-dev has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
<shevy> hmm
<popl> in Perl I can do that with Moose, is there something like that in Ruby?
<banisterfiend> mfilipe: just override it ;)
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mfilipe> banisterfiend: how?
aaronmcadam has joined #ruby
<banisterfiend> mfilipe just re-open the class, and redefine it
nanoxd has joined #ruby
<popl> re-open?
<mfilipe> banisterfiend: I can't, that method is in a lib class which I can't change
<banisterfiend> mfilipe except in ruby you *can* change it
<mfilipe> I wanna rewrtie that method but without change the lib directly
<banisterfiend> all classes, even library classes, even core classes you can change
<Lewix> shevy: ah you meant top-level method. And I didn't even know that anyways. thanks
<mfilipe> cool! show me :)
popl has quit [Quit: We must make an idol of our fear, and call it God.]
browndawg has quit [Quit: Leaving.]
kilophoton has quit [Quit: leaving]
<pontiki> mfilipe: google for "Open Classing" and "monkeypatching"
<Eiam> reopen the class, Class << Something
thepumpkin has quit [Remote host closed the connection]
<mfilipe> pontiki: thanks a lot
<shevy> mfilipe well, just write the name of the module or class, and redefine what you want to change
<Lewix> banisterfiend: someone else put it like this - method is the object-oriented word for function.and that perpetuating the idea that there's a difference is wrong?
BlakeRG has left #ruby [#ruby]
<shevy> I never tried to change a protected method to private that way though
Xeago has joined #ruby
<shevy> Lewix well an object carries a specific state, all instance variables for instance. how do you do the same in functions alone?
zathras has joined #ruby
<zathras> hi. I do not get this gem problem. How can I fix it please? http://pastie.org/private/egtnoentozppuy8bo2klvw
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
zacts is now known as hipster
<zathras> seems to me I comply to the required version yet it complains
<shevy> then there is also public/private (and protected), how do you do this with functions alone
<canton7> zathras, and you ran 'bundle install'?
yalue has quit [Quit: Leaving]
<fryguy> zathras: no you don't
<fryguy> you want 1.3, you have 2.14
gildo has quit [Ping timeout: 260 seconds]
<mfilipe> shevy, pontiki, banisterfiend: thanks guys!
browndawg has joined #ruby
<zathras> bundle install fails due to not recovering from Fetching source index from http://rubygems.org/
<canton7> ah yeah your gemfile needs fixing
<canton7> rubygems stopped server stuff over http a while back iirc
<havenwood> zathras: put an 's' on that 'http'
hipster is now known as zacts
<havenwood> zathras: in your Gemfile
fmcgeough has quit [Quit: fmcgeough]
<shevy> Lewix you can unbind methods though... or at least get a handle on it... through method() ... and remove_method) perhaps...
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<shevy> String.new.method(:size)
<zathras> which gemfile please (I am new to ruby). A general one or a specific one?
<shevy> or rather on a specific object instead
<shevy> hanmac is the bundle expert
<zathras> how can explicitly install v 1.3
<shevy> Hanmac wake up!!!
<canton7> zathras, or if you've got 'source :rubygems' change that to source 'https://rubygems.org'
<canton7> zathras, the Gemfile in the current dir
<pontiki> application root
<canton7> then run 'bundle install', like it says
<zathras> is this defined in /etc/ruby something?
<canton7> also read http://bundler.io
<banisterfiend> Lewix that person is wrong
<banisterfiend> IMO
<pontiki> zathras: your application's Gemfile should be in the application's root directory
<canton7> zathras, no! current directory (or one of its close parents) there's a file called 'Gemfile'
devoldmx has joined #ruby
<zathras> yes. it says: source: rubygems
<canton7> then follow my instructions
<canton7> from above
<zathras> so I will change it
<pontiki> be careful about that colon!
<banisterfiend> Lewix there are may languages which have both methods and functions, and they are distinct
<banisterfiend> Lewix like C++ for example
<banisterfiend> many*
<SmoothPorcupine> Is Ruby one of them?
<banisterfiend> Lewix python is an interesting case too
Criztian has quit [Remote host closed the connection]
<banisterfiend> SmoothPorcupine kind of.. but it's a bit confusing in ruby's case
<havenwood> SmoothPorcupine: Nope, just methods.
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<flughafe1_> are there any cross-language code coverage analysis tools? i run a ruby/rake/cucumber test suite against a java/bash/python/perl garbage...
<SmoothPorcupine> havenwood my friend, I see, how simple.
<Lewix> banisterfiend: shevy: thanks for your input
axl_ has quit [Quit: axl_]
<havenwood> SmoothPorcupine: Good buddy, ole pall, glad to help. :P
rupee has joined #ruby
<havenwood> pal have two ll's? looks odd
sqd has quit [Quit: sqd]
<havenwood> I'm not your friend, buddy. I'm not your buddy, pal.
apeiros_ has joined #ruby
<pontiki> no, pall is a different thing
<havenwood> pall mall
apeiros has quit [Read error: Connection reset by peer]
<SmoothPorcupine> I'm appalled.
_honning_ has joined #ruby
mando has joined #ruby
<pontiki> interesting in ruby though is "module_function"
<banisterfiend> Lewix i even vaguely remember matz saying (at a conference) that he wished he did provide named functions for ruby
<Lewix> who's matz
<Lewix> that was a joke
<iboB> i can call foo for each element in ar with ar.each(&:foo), but can I do it in such a short way if foo has an argument (instead of ar.each { |elem| elem.foo(arg) })
<pontiki> watza matz u?
<bricker> SmoothPorcupine: so `respond_to?` doesn't look at private methods, which I know now. So that is reason I guess not to use the respond_to example (I know my example didn't specify that the method was private)
MrZYX|off is now known as MrZYX
<banisterfiend> iboB: I have a friend who wrote a thing for that, look up ampex
<hanmac> SmoothPorcupine & bricker respond_to? has a second parameter
<bricker> hanmac: ohhh yeah I forgot about that
<bricker> kinda seems like it's not good practice to use it though
<SmoothPorcupine> I forget the use case but I never check first.
<SmoothPorcupine> bricker, you will never write good or useful code if you think in terms of what is and isn't considered good practice.
elux has quit [Quit: Bye!]
maz-dev has joined #ruby
<SmoothPorcupine> Coding is about the alogrimth, not what other people think.
jprovazn has quit [Quit: Odcházím]
<bricker> SmoothPorcupine: I'm more concerned that the behavior will change in a future version of Ruby
<SmoothPorcupine> algorithm*
<iboB> thanks banisterfiend
Aristata has joined #ruby
timonv has joined #ruby
<SmoothPorcupine> Deal with that when the future arrives.
<Aristata> How can I get this: " ' ".gsub(" ' ", "\ ' ") to return "\' "
browndawg has quit [Quit: Leaving.]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<SmoothPorcupine> >>print "\ - "
<eval-in> SmoothPorcupine => - nil (https://eval.in/44103)
JDHankle has joined #ruby
<SmoothPorcupine> >>print "\\ - "
<eval-in> SmoothPorcupine => \ - nil (https://eval.in/44104)
<SmoothPorcupine> Aristata my friend, ^^
<hanmac> Aristata: you need to escape the \ more when using gsub
<SmoothPorcupine> NO.
<SmoothPorcupine> THAT IS NOT CORRECT.
<SmoothPorcupine> This has nothing to do with gsub.
kpshek has quit []
<SmoothPorcupine> This is simple string escaping.
<pontiki> banisterfiend: ampex is p.cool
<SmoothPorcupine> >>"\ "
<eval-in> SmoothPorcupine => " " (https://eval.in/44105)
<hanmac> SmoothPorcupine: you need to understand gsub first
<Aristata> I tried subbing it with \\ ' but that returned an empty string
<banisterfiend> pontiki: yeah i think it uses method_missing magic though, so not sure how performant it is ;)
<SmoothPorcupine> hanmac my friend, you need to understand string escaping first.
jarray52 has joined #ruby
maz-dev has quit [Remote host closed the connection]
<Eiam> >> %q{'}
<eval-in> Eiam => "'" (https://eval.in/44106)
<Aristata> By the way I am adding spaces so you can see the characters they aren't really there
<Aristata> I see a lot of evals but none of this is helping me...
<Eiam> Aristata: you try to encapsulate it in %q?
<SmoothPorcupine> "''''''".gsub "'","\\'"
<SmoothPorcupine> >>"''''''".gsub "'","\\'"
<eval-in> SmoothPorcupine => "'''''''''''''''" (https://eval.in/44107)
<SmoothPorcupine> I don't see it replacing with empty string.
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<Aristata> Alright, without quotes this is my string ' what I want is this \'
alex__c2022 has quit [Quit: alex__c2022]
<Aristata> I am feeding this into a json parser which is thrown off by having quotes
<Aristata> so I need to throw in an escaping backslash
<SmoothPorcupine> >>"''''''".gsub "'","\\\\'"
<eval-in> SmoothPorcupine => "\\'\\'\\'\\'\\'\\'" (https://eval.in/44114)
<Aristata> but doing that with gsub gives me just the '
<Eiam> Aristata: uh, then just to_json the string?
<SmoothPorcupine> >>puts "''''''".gsub "'","\\\\'"
<eval-in> SmoothPorcupine => \'\'\'\'\'\' ... (https://eval.in/44115)
<Eiam> and it will escape it for you
<Eiam> >> "'".to_json
<eval-in> Eiam => undefined method `to_json' for "'":String (NoMethodError) ... (https://eval.in/44116)
<pontiki> require json first
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Eiam> >> require json; "'".to_json
<eval-in> Eiam => undefined local variable or method `json' for main:Object (NameError) ... (https://eval.in/44117)
<pontiki> maybe?
JDHankle has quit [Ping timeout: 276 seconds]
<Eiam> i don't think you can load a gem into eval-in
<pontiki> >> require 'json'; "'".to_json
<eval-in> pontiki => (https://eval.in/44118)
brbcoding has quit []
<Aristata> Checking the to_json solution now
alex__c2022 has joined #ruby
<Eiam> Aristata: I mean you starting saying "I have a string I want to escape some character" then ended up at "I have data I want to turn into valid json"
<SmoothPorcupine> OH MY GOD.
<Eiam> different class of problems, one certainly handles the job of escaping
<SmoothPorcupine> ARE YOU RECOMMENDING JSON FOR STRING ESCAPING?!
<Eiam> SmoothPorcupine: no, he SAID he is *converting the data to json*
<Eiam> so I'm recommending he CONVERT IT TO JSON
<SmoothPorcupine> Sorry.
<Eiam> instead of trying to hack his own json conversion method
hadees has joined #ruby
<pontiki> >> require 'json'; {a: "on no you din't"; b: "'"}.to_json
<eval-in> pontiki => /tmp/execpad-2e1260447e84/source-2e1260447e84:2: syntax error, unexpected ';', expecting '}' ... (https://eval.in/44119)
<pontiki> >> require 'json'; {a: "on no you din't", b: "'"}.to_json
<eval-in> pontiki => (https://eval.in/44120)
<Eiam> SmoothPorcupine: 13:33:45] <Aristata> I am feeding this into a json parser which is thrown off by having quotes
<Eiam> SmoothPorcupine: ergo solution => convert it to JSON then.
<pontiki> fascinating
<SmoothPorcupine> Yes I see now.
<Eiam> SmoothPorcupine: also, be nice.
<Aristata> The json parser is reading the literal string off an html page
<Aristata> Via javasrcript
<SmoothPorcupine> It's important to understand string escaping before you use JSON.
kpshek has joined #ruby
<Eiam> Aristata: so why don't you have the browser convert it to json?
<SmoothPorcupine> For that exact reason.
<SmoothPorcupine> Aristata my friend, if you link me your thing I guarantee I can find a way to XSS.
St_Marx has joined #ruby
<Aristata> For those of you still confused by this, this is exactly what gets written to the page in javascript:
<SmoothPorcupine> This is because string escaping is non-trivial.
<Aristata> var meetingAddresses = [ jQuery.parseJSON( '{"label":"Bldg A #2105, Ping'An International Financial Center, Beijing, ","value":{"street":"Bldg A #2105, Ping'An International Financial Center","street_two":"No. 3 Xinyuan South Road, Chao Yang District","city":"Beijing","country":"CN","zip_code":"100027","state":""}}' )]
<zathras> 15+ mins later: Fetching source index from https://rubygems.org/
timonv has quit [Remote host closed the connection]
<SmoothPorcupine> Because EVERYONE USES THE SAME EXACT ESCAPE CHARACTER FOR EVERY PURPOSE.
<SmoothPorcupine> ;-;
<zathras> seems still not too fast
Liquid-- has joined #ruby
hadees has quit [Client Quit]
visof has quit [Remote host closed the connection]
<Aristata> Now this will get rendered:
<Aristata> var meetingAddresses = [ jQuery.parseJSON( '{"label":"Bldg A #2105, Ping\'An International Financial Center, Beijing, ","value":{"street":"Bldg A #2105, Ping\'An International Financial Center","street_two":"No. 3 Xinyuan South Road, Chao Yang District","city":"Beijing","country":"CN","zip_code":"100027","state":""}}' )]
c0rn has joined #ruby
<Aristata> And javasript won't choke on it
<SmoothPorcupine> Aristata my friend, obj.to_json.to_json
nonamehero has quit [Read error: Connection reset by peer]
nonamehero has joined #ruby
<SmoothPorcupine> No matter how you phrase your problem you're going to need double escaping. :V
<SmoothPorcupine> I mean, if you /insist/ on using jQuery.parseJSON here.
JDHankle has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<SmoothPorcupine> You could avoid all this by just doing var meetingAddresses = #{obj.to_json};
pygospa has quit [Quit: leaving]
carraroj has quit [Quit: Konversation terminated!]
pygospa has joined #ruby
devoldmx has joined #ruby
JDHankle has quit [Remote host closed the connection]
chuck has quit [Ping timeout: 268 seconds]
pipework has quit [Remote host closed the connection]
Myconix has joined #ruby
pygospa has quit [Client Quit]
sahoal has quit [Ping timeout: 264 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
<SmoothPorcupine> Hahahaha.
conner has quit [Read error: Operation timed out]
<SmoothPorcupine> Oh excellent.
<SmoothPorcupine> I can perform an XSS with your current code.
<SmoothPorcupine> Aristata my friend, you are literally safer embedding the JSON object in the JS without passing it needlessly through jQuery.parseJSON.
cads has joined #ruby
<flughafe1_> f
pygospa has joined #ruby
devoldmx3 has joined #ruby
<flughafe1_> are there any cross-language code coverage analysis tools? i run a ruby/rake/cucumber test suite against a java/bash/python/perl garbage...
<SmoothPorcupine> Your misunderstanding of literally all the technologies you're employing here is opening security vulnerabilities.
devoldmx has quit [Read error: No route to host]
hackingoff has quit [Ping timeout: 240 seconds]
<Aristata> I don't know what your talking about
<Aristata> And I don't appreciate you being an ass hole
<SmoothPorcupine> Okay.
dankest has quit [Quit: Peace]
<SmoothPorcupine> 1. You don't understand Ruby's string escaping.
<SmoothPorcupine> 2. You don't understand regex escaping.
dankest has joined #ruby
devoldmx has joined #ruby
<SmoothPorcupine> 3. You don't understand JS(ON) escaping.
cookiemonsta has quit [Ping timeout: 245 seconds]
<pontiki> Aristata: porky does have a point about rendering the data directly with the download and not feeding it through the jQuery
<SmoothPorcupine> 4. You don't understand JSON.
<pontiki> it just ends up right there on your page, very tidy
kpshek has quit []
mansi has quit [Read error: Connection reset by peer]
<SmoothPorcupine> 5. You have a legitimate XSS attack right in front of you.
JDHankle has joined #ruby
<Eiam> yep, I use that all the time
mansi has joined #ruby
<shevy> Aristata don't mind SmoothPorcupine, he is a time thief
<Eiam> I tend to just have haml crap out the object into a #hidden-data div
blackmesa has joined #ruby
<skyjumper> i'm having a debugger problem... in both 'debugger' and 'byebug', the 'next' and 'step' commands seem to do the same thing
<skyjumper> anyone ever seen that?
<pontiki> eek, no
<Eiam> skyjumper: I've run into that with pry
<skyjumper> Eiam: pry causes it
<Eiam> and the pry-nav gem
<banisterfiend> skyjumper: in bye bug it should work ok, what ruby version are you on?
<skyjumper> ?
sahoal has joined #ruby
huoxito has quit [Quit: Leaving]
<skyjumper> banisterfiend: 2.0.0-p247
Myconix has quit [Read error: Connection reset by peer]
devoldmx3 has quit [Ping timeout: 264 seconds]
<Eiam> I'll do a step or next and it does the same thing, or gets caught in the same statement without going down or over/out
<banisterfiend> Eiam are you using pry-byebug or pry-debugger though?
<Eiam> no
<skyjumper> yeah, 'next' steps into the method call instead of skipping to the next line
<Eiam> just pry & pry-nav
<banisterfiend> oh ok, try using pry-byebug instead
<Aristata> SmoothPorcupine: There is no way you could determine that an XSS attack is present without knowing the context of that variable. And all it does is populate some inputs, which are validated. Also, this is in an admin area, behind logins and basic auth. So good luck.
<SmoothPorcupine> I said /if/ you can provide me a link.
<SmoothPorcupine> If I can't access the page because it's on the moon, that would pose an issue to me.
<Aristata> You still couldn't do it fear monger
lurch_ has joined #ruby
<Eiam> banisterfiend: hrm, why?
endash has joined #ruby
<skyjumper> yep... 'next' still broken in byebug without pry loaded
<Eiam> pry-nav seems fine
<banisterfiend> Eiam: because pry-byebug does not (afaik) have that step/next bug
mansi has quit [Remote host closed the connection]
<SmoothPorcupine> Aristata my friend, do you know what JSON is?
Liquid-- has quit [Quit: Computer has gone to sleep.]
<fryguy> Aristata: you don't know how XSS works, do you?
<Eiam> fryguy: something about "Cross"
mansi has joined #ruby
<bricker> I don't understand this: `result &&= insert_record(rec)` I've never seen the `&&=` syntax before. Is it saying, "if `result` is truthy, then reassign it to [...]" ?
<Aristata> SmoothPorcupine: Go fuck yourself ass hole.
sambao21 has quit [Quit: Computer has gone to sleep.]
<Aristata> You think your so big basing on people coming here to get some help
sailias has quit [Quit: Leaving.]
<skyjumper> banisterfiend: are you familiar with that bug?
<SmoothPorcupine> bricker, result = result && etc.
<SmoothPorcupine> Same as ||=.
<bricker> ah
mando has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<SmoothPorcupine> Only && instead of ||.
<banisterfiend> skyjumper: no, but i've heard of it, never encountered it myself however :)
<Aristata> I didn't come in here claiming to be the best coder in the world, if you want to shit all over people looking for answers have fun choking on a dick
Aristata has left #ruby [#ruby]
hadees has joined #ruby
<SmoothPorcupine> I didn't come in here to be yelled at while trying to help.
<SmoothPorcupine> ....
<SmoothPorcupine> Actually I kind of did. <.<
<SmoothPorcupine> Go figure.
havenwood has joined #ruby
<shevy> now you drove him away SmoothPorcupine
devinus has left #ruby ["devintorr.es"]
<SmoothPorcupine> It's okay.
<pontiki> he needed to chill out for a few anyway
sqd has joined #ruby
Companion is now known as companion
<SmoothPorcupine> I think they'll put more effort into learning.
<pontiki> i doubt it
* SmoothPorcupine mentored someone who tried to learn JS and HTML and PHP all at once
<SmoothPorcupine> Not fun. <.<
<pontiki> to use that method of "teaching" requires the student respect the teacher and want to please them
<pontiki> this is not the way of the Internet
conner has joined #ruby
<SmoothPorcupine> They're not going to do it for me.
c0rn has quit [Ping timeout: 246 seconds]
mansi has quit [Ping timeout: 256 seconds]
maz-dev has joined #ruby
<pontiki> they aren't going to do it in spite of you either
<shevy> haha
brain_shim has quit [Ping timeout: 256 seconds]
<pontiki> if they're going to do it, it's because they become interested
<SmoothPorcupine> Yeah, it'll have nothing to do with me.
aprilthemoo has joined #ruby
<SmoothPorcupine> Honestly I think they'll probably do it to avoid shame.
<SmoothPorcupine> Now I feel bad. :(
<pontiki> which, like, might happen more if they get bit
Spami has joined #ruby
mansi has joined #ruby
Spami has joined #ruby
sambao21 has joined #ruby
fyz1x has quit [Quit: Textual IRC Client: www.textualapp.com]
nonamehero has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
mando has joined #ruby
niceguyjames has joined #ruby
burlyscudd has joined #ruby
<SmoothPorcupine> <_<
IceyEC has quit [Quit: IceyEC]
<SmoothPorcupine> File.socket? "/dev/fd/#{fd}";load "/usr/lib/ruby/1.9.1/socket.rb" rescue $!.trace #=> Bad file descriptor - /usr/lib/ruby/1.9.1/socket.rb (Errno::EBADF)
<SmoothPorcupine> File.socket? "/dev/fd/#{fd}".tap{load "/usr/lib/ruby/1.9.1/socket.rb" rescue $!.trace} #=> Works.
brennanMKE has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
<SmoothPorcupine> -2,+0s/=>
sarkis has quit [Ping timeout: 246 seconds]
JDHankle has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
dash_ has quit [Quit: dash_]
jonathanwallace has joined #ruby
breakingthings has quit [Quit: breakingthings]
ffranz has quit [Quit: Leaving]
<SmoothPorcupine> 17GA unless e.message == "Bad file descriptor - /usr/lib/ruby/1.9.1/socket.rb"
burlyscudd has quit [Ping timeout: 264 seconds]
* SmoothPorcupine gets on with tur life
Xaitec has joined #ruby
around_ has quit [Quit: around_]
maz-dev has quit [Remote host closed the connection]
<zathras> I get the same thing as this guy (different paths and ruby 1.9.1) : http://stackoverflow.com/questions/18342345/zentest-4-9-3-shows-as-invalid-gemspec
kirun has quit [Quit: Client exiting]
seich- has quit [Ping timeout: 245 seconds]
shunt has quit [Quit: leaving]
nfk has joined #ruby
Kruppe has joined #ruby
amacgregor has joined #ruby
thepumpkin has joined #ruby
agush has joined #ruby
<agush> hi
a7d7p has quit [Quit: a7d7p]
jblack has quit [Ping timeout: 264 seconds]
Xaitec has quit [Remote host closed the connection]
<SmoothPorcupine> Hello agush.
<agush> hey smoothporcupine
zmike123 has joined #ruby
<agush> I'm looking for ruby ecommerce solutions
<agush> and I'm between ror-ecommerce and spree
<agush> has anyone tried them?
<agush> and care to comment?
atyz has quit [Quit: Linkinus - http://linkinus.com]
<skyjumper> learn to hate yourself, use magento
<agush> haha ok
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
adambeynon has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
<graft> does anyone know about the performance of File.readlines vs. File.each_line vs. File.foreach?
devoldmx has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
saarinen has quit [Quit: saarinen]
zmike123 has quit [Client Quit]
<hanmac> graft each_line and foreach should work the same, readlines would return an array
bleubeard has joined #ruby
<graft> what's fastest?
hasrb has joined #ruby
<fryguy> graft: try them out and you tell us
ldnunes has quit [Quit: Leaving]
jdenen has quit [Read error: Connection reset by peer]
michaeldeol has quit [Remote host closed the connection]
Guest58021 is now known as jan1337zZz
<hanmac> graft what would you think, do you want to lift 100kg or 100 times 1kg ?
rcedillor has joined #ruby
weems2 has joined #ruby
wmoxam has quit [Ping timeout: 256 seconds]
<hanmac> graft try to open an file that is bigger than your ram with readlines and then with foreach
carlyle has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 256 seconds]
<graft> i have 65GB of ram
brain_shim has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
<graft> readlines is faster by a lot
<Eiam> okay so dump your production database and readlines that baby in! =)
xcv has joined #ruby
<Eiam> protip: BBEdit can totally open that sucker! text mate, not so much!
bleubeard has quit [Remote host closed the connection]
weems2 is now known as weeems
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
mansi has joined #ruby
<SmoothPorcupine> IO#readlines isn't the same process as IO#each_line.
<SmoothPorcupine> There's no point comparing then.
<SmoothPorcupine> them.*
Liquid-- has joined #ruby
<Mon_Ouie> Is he doing readlienes.each { |x| … }?
<Mon_Ouie> readlines*
<pontiki> ok, contrast instead of compare
mando has quit [Remote host closed the connection]
senayar has joined #ruby
devoldmx has joined #ruby
<SmoothPorcupine> Mon_Ouie my friend, that's not specified in the question.
<SmoothPorcupine> The question as asked is fallacious.
mark_locklear has quit [Ping timeout: 260 seconds]
agush has quit [Quit: Page closed]
<SmoothPorcupine> Two of the options are the same and the third isn't comparable.
Liquid-- has quit [Client Quit]
smigg has quit [Ping timeout: 240 seconds]
Liquid-- has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xaitec has joined #ruby
zph has joined #ruby
iboB has quit []
thesheff17 has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
<graft> SmoothPorcupine: stop being so pedantic
senayar has quit [Ping timeout: 246 seconds]
<SmoothPorcupine> You're accusing /me/ of being pedantic? :V
<SmoothPorcupine> After a question like that?
<hanmac> SmoothPorcupine: maybe he plays "odd men out" with us?
<SmoothPorcupine> graft my friend, how about File.read.scan(/^.*$/)?
<SmoothPorcupine> Or .split(/\n/)?
tommyvyo has joined #ruby
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> SmoothPorcupine how should that help him
agjacome has joined #ruby
devoldmx has joined #ruby
saarinen has joined #ruby
<zathras> anyone please regarding my ZenTest 4.9.3 shows as invalid gemspec issue?
<zathras> not my post but I have the same problem
<SmoothPorcupine> shevy my friend, speed.
zph has quit [Quit: Computer has gone to sleep.]
<SmoothPorcupine> Won't know what's fast until it's tried.
seich- has joined #ruby
<pontiki> oh, crikey, zentest
<pontiki> went through several rounds of problems with that regarding versions
<pontiki> let me see if i can dig them up
<zathras> ty
colonolGron has joined #ruby
sjltaylor has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
hanmac has quit [Quit: Leaving.]
axl_ has joined #ruby
<zathras> the requirement conflict is what I am experiencing too. Same version demands
MarioEIU has left #ruby [#ruby]
Guedes has joined #ruby
<zathras> Invalid gemspec in [/var/lib/gems/1.9.1/specifications/ZenTest-4.9.3.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
<pontiki> https://github.com/seattlerb/zentest/issues/29 <- wind your way through this. do *exactly* what they say
<fryguy> zathras: you could try to use it straight from the github repo too
ebanoid has quit [Quit: brbomgwtfbbq]
<SmoothPorcupine> I would honestly find what throws the error and remove that line of code.
brennanMKE has joined #ruby
<SmoothPorcupine> raises*
<pontiki> bundler?
<e-dard> It's interesting that if you do pointerToSliceFoo… the Foos get pulled out and passed through, but you have to do *Foo when you have a pointer to a Foo.
spider-mario has quit [Ping timeout: 246 seconds]
<e-dard> oh no I'm wrong. I never had a pointer to the slice in the first place...
<SmoothPorcupine> I think you're in the wrong tab.
unRealElite has quit [Quit: This computer has gone to sleep]
Spooner has joined #ruby
Xaitec has quit [Remote host closed the connection]
jrobeson has joined #ruby
<e-dard> SmoothPorcupine: doubly wrong then
failshell has quit [Ping timeout: 276 seconds]
fuzzy has quit [Remote host closed the connection]
<SmoothPorcupine> That sounds suspiciously #go-nuts.
colonolGron has quit [Ping timeout: 264 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fuzzy has joined #ruby
superscott[8] has joined #ruby
jan1337zZz is now known as jan1337z
jan1337z is now known as Jan
mando has joined #ruby
Jan is now known as Guest72575
internet_user has joined #ruby
guns has quit [Ping timeout: 260 seconds]
Liothen has joined #ruby
jonkri has quit [Quit: jonkri]
devoldmx has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 256 seconds]
internet_user has quit [Remote host closed the connection]
SmoothPorcupine has left #ruby ["I'd 11GA rescue retry but that runs the risk of making an infinite loop if the error raised is /not/ that exact string."]
kumarat9pm has quit [Quit: Leaving.]
brennanMKE has quit [Ping timeout: 248 seconds]
optimusprimem has quit [Quit: Saindo]
terrellt has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
Guedes has left #ruby ["Saindo"]
devoldmx has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
r0bglees0n has quit [Ping timeout: 276 seconds]
splittingred has quit [Quit: splittingred]
michaeldeol has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Quit: jonahR]
devoldmx has quit [Read error: Connection reset by peer]
St_Marx has quit [Quit: Konversation terminated!]
St_Marx has joined #ruby
enebo has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
enebo has joined #ruby
linux_noob_666 has quit [Read error: Connection reset by peer]
vince_prignano has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
Krajsnick has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
relix has joined #ruby
apeiros has joined #ruby
guns has joined #ruby
nopolitica has joined #ruby
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Ping timeout: 264 seconds]
gyzmodo has quit []
Kruppe has quit [Ping timeout: 248 seconds]
enebo has quit [Ping timeout: 256 seconds]
hadees has quit [Quit: hadees]
Chat4716 has joined #ruby
enebo has joined #ruby
Monie has joined #ruby
tylersmith has quit [Remote host closed the connection]
tatsuya__ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
tylersmith has joined #ruby
splittingred has joined #ruby
Chat4716 has quit [Client Quit]
maz-dev has joined #ruby
Liquid-- has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
lurch_ has quit [Quit: lurch_]
peregrine81 has quit [Quit: peregrine81]
cosmin has joined #ruby
aknagi has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
nari has joined #ruby
Kruppe has joined #ruby
jonahR has joined #ruby
pinage404 has quit [Excess Flood]
tylersmith has quit [Ping timeout: 260 seconds]
jonathanwallace has joined #ruby
cloke has joined #ruby
whowantstolivefo has quit [Quit: whowantstolivefo]
r0bglees0n has joined #ruby
thillux has quit [Quit: Leaving]
terrellt has quit [Ping timeout: 246 seconds]
axl_ has quit [Quit: axl_]
gazarsgo has quit [Quit: gazarsgo]
mary5030 has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
jonahR has quit [Quit: jonahR]
mklappstuhl has quit [Remote host closed the connection]
tommyvyo has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
maz-dev has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
khushildep has quit [Read error: Connection reset by peer]
a7d7p has joined #ruby
tricon_ has quit [Quit: Bye!]
pinage404 has joined #ruby
suffix has quit [Ping timeout: 256 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
brennanMKE has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
amacgregor has quit [Ping timeout: 256 seconds]
amacgregor has joined #ruby
michaeldeol has quit [Remote host closed the connection]
enebo has quit [Read error: Connection reset by peer]
ner0x has joined #ruby
enebo has joined #ruby
brianpWins has quit [Quit: brianpWins]
gyre007 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brianpWins has joined #ruby
jaimef has quit [Excess Flood]
aknagi has left #ruby [#ruby]
niceguyjames has quit [Write error: Broken pipe]
sarkis has joined #ruby
pjeide has quit [Quit: Leaving.]
shemerey has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 264 seconds]
gazarsgo has joined #ruby
razi has quit [Ping timeout: 256 seconds]
nopolitica has quit [Quit: leaving]
endash has quit [Quit: endash]
akells`` has joined #ruby
brianpWins has quit [Client Quit]
postmodern has joined #ruby
devoldmx3 has joined #ruby
bklane_ has quit [Remote host closed the connection]
_honning_ has quit [Ping timeout: 245 seconds]
ehc has quit [Quit: ehc]
weeems has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: Leaving...]
Matriks has joined #ruby
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrThePlague has quit [Ping timeout: 256 seconds]
jaimef has joined #ruby
endzyme has joined #ruby
dodosan has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
rhys has quit [Quit: Leaving]
speakingcode-wor has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
Quashie has quit [Ping timeout: 276 seconds]
JDHankle has joined #ruby
endzyme has quit [Remote host closed the connection]
speakingcode-wor has joined #ruby
carlyle has joined #ruby
MrZYX is now known as MrZYX|off
shevy has quit [Quit: ""]
orionstein is now known as orionstein_away
mlpinit has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
pierre1 has quit [Ping timeout: 264 seconds]
mmitchell has quit [Ping timeout: 256 seconds]
gazarsgo has quit [Quit: gazarsgo]
mootpointer has joined #ruby
enebo has quit [Read error: Connection reset by peer]
osvico has joined #ruby
enebo has joined #ruby
axsuul has joined #ruby
zeade has quit [Quit: Leaving.]
jerius has quit [Ping timeout: 240 seconds]
Woodsman has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 256 seconds]
carlyle has quit [Ping timeout: 245 seconds]
pjeide has joined #ruby
pjeide has quit [Changing host]
pjeide has joined #ruby
rburton- has joined #ruby
anonymuse has quit [Remote host closed the connection]
weeems has joined #ruby
ryandeussing has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 248 seconds]
colonolGron has joined #ruby
yaymukund has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
colonolGron has quit [Client Quit]
tomzx_mac has joined #ruby
robonerd has quit [Quit: zzz]
emergion has joined #ruby
aknagi has joined #ruby
chxane has quit [Ping timeout: 256 seconds]
zph has joined #ruby
chuck has joined #ruby
axl_ has joined #ruby
sqd has quit [Quit: sqd]
jblack has joined #ruby
hasrb has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
__maes_ has quit [Quit: __maes_]
mstksg has quit [Read error: Connection reset by peer]
threesome has quit [Ping timeout: 264 seconds]
ewnd9 has joined #ruby
axl_ has quit [Quit: axl_]
rcedillor has quit [Ping timeout: 264 seconds]
xcv_ has joined #ruby
robonerd has joined #ruby
chxane has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Neomex has joined #ruby
Xaitec_ has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
yekta has joined #ruby
xcv has quit [Ping timeout: 276 seconds]
<yekta> HALP - what is this?? ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
<yekta> SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: tlsv1 alert access denied
jblack has quit [Ping timeout: 264 seconds]
<yekta> I did `rvm pkg install openssl` and then reinstalled ruby… so I'm not sure what to do from here.
gstamp has joined #ruby
Lewix has quit [Remote host closed the connection]
jblack has joined #ruby
mary5030 has joined #ruby
JDHankle has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
ixti has joined #ruby
banisterfiend has joined #ruby
momomomomo has joined #ruby
Xeago has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
gazarsgo has joined #ruby
nadirvardar has joined #ruby
<yekta> Am I running into this? https://www.ruby-forum.com/topic/4410719
<yekta> I'm on ruby-2.0.0-p247
Senjai has quit [Ping timeout: 256 seconds]
VTLob has quit [Quit: VTLob]
axl_ has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
axl_ has quit [Client Quit]
terrellt has joined #ruby
seich- has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
splittingred has quit [Quit: splittingred]
<ned> yekta: are you negotiating tls?
<ned> can you connect to like https google?
mikepack has quit [Remote host closed the connection]
<yekta> I'm on lucid and have openssl 0.9.8k which seems to be the latest apt-cache can offer.
zph has quit [Ping timeout: 256 seconds]
tatsuya_o has quit [Remote host closed the connection]
Xaitec_ has quit [Remote host closed the connection]
Matriks has quit [Remote host closed the connection]
sarkis has joined #ruby
tatsuya_o has joined #ruby
ryandeussing has joined #ruby
<yekta> ned: I can dig https://google.com, not sure how else I might confirm connecting.
jblack has quit [Ping timeout: 276 seconds]
<ned> yekta: access denied sounds like its not a gem/library problem
ixti has quit [Ping timeout: 264 seconds]
Xuerian has quit [Remote host closed the connection]
jblack has joined #ruby
snovak has quit [Remote host closed the connection]
Xuerian has joined #ruby
<yekta> OK, I can connect to https://google.com
<yekta> 2.0.0-p247 :001 > require 'open-uri'
<yekta> => true
<yekta> 2.0.0-p247 :002 > open('https://google.com')
<yekta> => #<Tempfile:/tmp/open-uri20130820-16383-1x20j5w>
snovak has joined #ruby
michaeldeol has joined #ruby
noname001 has quit [Ping timeout: 245 seconds]
geggam has quit [Remote host closed the connection]
snovak has quit [Read error: Connection reset by peer]
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<yekta> I can even get a 200 response from rubygems.org, I'm not sure why `gem install passenger` throws that SSL error.
caveat- has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
caveat- has joined #ruby
ner0x has quit [Remote host closed the connection]
noname001 has joined #ruby
xk_id has joined #ruby
JDHankle has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
endash has joined #ruby
zph has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Remote host closed the connection]
Myconix has joined #ruby
devoldmx3 has quit [Ping timeout: 276 seconds]
eka has quit [Quit: Computer has gone to sleep.]
amacgregor has quit [Ping timeout: 248 seconds]
osvico has quit [Ping timeout: 276 seconds]
zph has quit [Client Quit]
yaymukund has joined #ruby
Guedes0 has joined #ruby
tatsuya_o has joined #ruby
tylersmith has joined #ruby
seich- has joined #ruby
<pontiki> iirc, 0.9.8 had some problems
shevy2 has joined #ruby
shevy2 is now known as shevy
<pontiki> i had to source build on a dev box ages ago to get around some bogus security checking thing
<pontiki> but that was years ago
<pontiki> is it always with passenger?
<pontiki> and no other gem?
zph has joined #ruby
<shevy> what shall I do when I have a gem called chemistry
<shevy> but there is already a gem called chemistry by someone else
amacgregor has joined #ruby
<pontiki> yekta: and tried stupid stuff like upgrading rubygems?
<pontiki> rename you gem
baroquebobcat has quit [Quit: baroquebobcat]
<pontiki> in the current scheme of things, first in wins forever
devoldmx has joined #ruby
<shevy> :(
<yekta> pontiki: I could actually install it from 1.8.7, so now I'm installing 1.9.3 just to install passenger
Xaitec has joined #ruby
<yekta> shevy: call it "breakingbad"
<pontiki> yekta: i'm kinda just tossing things out there -- i don't know specifically what's causing the problem
staafl has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Remote host closed the connection]
<shevy> yekta the problem is that I use: require 'chemistry'
<pontiki> my escapades with OpenSSL 0.9.8.. had nothing to do with rubygems
<Kelet> So fork the gem and give it a new name if the license allows.
<pontiki> shevy: you can still do this
<yekta> pontiki: with Ruby 2.0.0-p247?
<pontiki> but it's going to make other users go bugeyed
<pontiki> no, see, when you require something, you're requiring the library files
<pontiki> not the name of the gem itself
lethjakman has quit [Ping timeout: 246 seconds]
<pontiki> while these things should match (YES YES YES) they don't have to (much of rails active*)
tatsuya_o has quit [Remote host closed the connection]
mlpinit has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
<pontiki> so your gem name can be mychemicalromance, and the code can be in lib/chemistry
<pontiki> get it?
mlpinit has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
devoldmx has quit [Ping timeout: 245 seconds]
thesheff17 has joined #ruby
<pontiki> the big reason you should *not* do this, is someone else can do the same thing, and your gem space is polluted
speakingcode-wor has quit [Ping timeout: 264 seconds]
Guest72575 is now known as jan1337zZz
wargasm has joined #ruby
speakingcode-wor has joined #ruby
<pontiki> or actually worse, someone *else's* gem space has been polluted
devoldmx has joined #ruby
<shevy> pontiki I think there can indeed be only one winner
<shevy> Kelet hmm interesting idea, let me think a bit
<pontiki> you won't be able to push yours, even if you fork it
<pontiki> i don't think anyway
sahoal has quit [Quit: sahoal]
burlyscudd has quit [Quit: Leaving.]
<pontiki> that'd be bad news anyway, if the original owner decided to reup development on their gem, and overwrote yours
<shevy> alright that's it
<shevy> it's time to slay a kitten again
mando has quit [Remote host closed the connection]
mengu_ has quit [Quit: Konversation terminated!]
zarubin has quit [Ping timeout: 246 seconds]
tomzx_mac_ has joined #ruby
GeissT has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
snovak has joined #ruby
around_ has joined #ruby
devoldmx3 has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
IceyEC has joined #ruby
jblack has quit [Ping timeout: 245 seconds]
predator217 has joined #ruby
jblack has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
terrellt has quit [Read error: Connection reset by peer]
zph has quit [Quit: Computer has gone to sleep.]
predator117 has quit [Ping timeout: 264 seconds]
pjeide has quit [Quit: Leaving.]
JDHankle has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
snovak has quit [Ping timeout: 245 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
aknagi has quit [Quit: aknagi]
zathras has quit [Quit: Leaving]
sambao21 has joined #ruby
aknagi has joined #ruby
JDHankle has joined #ruby