ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
lcdhoffman has quit [Quit: lcdhoffman]
irleif has quit [Quit: Computer has gone to sleep.]
<blazes816> ...
<drbrain> ….
datanoise has quit [Ping timeout: 255 seconds]
<matti> o_O
woollyams has quit [Quit: Computer has gone to sleep.]
<blazes816> u r not doin it right matti
justinram has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
<matti> blazes816: Sorry.
woollyams has joined #ruby-lang
<blazes816> no probe just please ascii art correctly next time thx
<matti> blazes816: Can I throw a comma to a full-stop fight?
<blazes816> i'll allow it
<matti> \o\
<matti> OK
<matti> , <-- here it is
<matti> :>
chimkan_ has joined #ruby-lang
nitti has joined #ruby-lang
<blazes816> that was emaculate
chimkan_ has quit [Client Quit]
<matti> Thank you, thank you!
<matti> My moment to shine.
<matti> ;s
chimkan_ has joined #ruby-lang
enebo has quit [Quit: enebo]
nitti has quit [Ping timeout: 244 seconds]
lsegal has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
rebelcan has quit [Quit: leaving]
senekis has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
Artheist has joined #ruby-lang
icooba has quit [Ping timeout: 252 seconds]
<richardjortega> how do you use Ruby CSV to add rows to another CSV at the end of the rows
<matti> richardjortega: You can just append to the file, I guess?
<richardjortega> will that work and add it
<richardjortega> what method would that be?
<matti> richardjortega: You open a file for writing and appending, then build your CSV value, and save it.
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
<richardjortega> awesome
<richardjortega> i guess i little googling would've a good idea
<matti> Yeah ;]
<richardjortega> matti: thanks!
<matti> No worries ;]
icooba has joined #ruby-lang
pbjorklund has quit [Read error: Connection reset by peer]
pbjorklund has joined #ruby-lang
imajes has quit [Excess Flood]
FastJack has quit [Ping timeout: 245 seconds]
blazes816 has quit [Quit: blazes816]
imajes has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
FastJack has joined #ruby-lang
kurko_ has joined #ruby-lang
jamjam has quit [Ping timeout: 255 seconds]
irleif has joined #ruby-lang
methods has quit [Quit: Leaving.]
kurko_ has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: Leaving]
sn0wb1rd has quit [Quit: sn0wb1rd]
kurko_ has joined #ruby-lang
methods has joined #ruby-lang
ListenerZ has joined #ruby-lang
krzbrg has quit [Remote host closed the connection]
krzbrg has joined #ruby-lang
<krzbrg> I have a simple loop that isn't quite behaving as I expected it would
<krzbrg> thoughts? (comments in the gist)
ListenerZ has left #ruby-lang [#ruby-lang]
<bluepojo> krzbrg: trace the path you're trying to read with File.read
<bluepojo> and confirm that the file exists where you're looking
<bluepojo> File#expand_path might help
<bluepojo> to be sure you know where you are
outoftime has quit [Read error: Operation timed out]
<krzbrg> well, it's just a little test I set up for myself
<krzbrg> so I know all the files exist
mpan has quit [Read error: Connection reset by peer]
<krzbrg> when it iterates through only one file gets compiled (usually the HTML file)
mpan has joined #ruby-lang
<krzbrg> but I have moved some things around in the ruby script and had the CSS be outputted
irleif has quit [Ping timeout: 260 seconds]
lcdhoffman has joined #ruby-lang
datanoise has joined #ruby-lang
<krzbrg> thank you
<krzbrg> oh, interesting
bfreeman has joined #ruby-lang
<krzbrg> when it attempts to render the second file it is looking in the root directory, not input/
kurko_ has quit [Ping timeout: 252 seconds]
swarley has joined #ruby-lang
kurko_ has joined #ruby-lang
<bluepojo> that's your problem, then
guns has quit [Ping timeout: 276 seconds]
<krzbrg> hah, it is
irleif has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
cultureulterior_ has quit [Quit: cultureulterior_]
nettsundere has quit [Quit: Leaving]
irleif has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
irleif has joined #ruby-lang
liquid has joined #ruby-lang
liquid is now known as Guest59713
Guest59713 has left #ruby-lang [#ruby-lang]
krohrbaugh has quit [Quit: Leaving.]
sn0wb1rd has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
lcdhoffman has quit [Ping timeout: 260 seconds]
kurko_ has quit [Ping timeout: 260 seconds]
headius has joined #ruby-lang
kurko_ has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
chancancode has joined #ruby-lang
chancancode has quit [Remote host closed the connection]
towski has quit [Remote host closed the connection]
fp- has joined #ruby-lang
<fp-> hi guys
<fp-> i built an api client modeled similar to activeresource
<fp-> so if you do something like Client.all it calls instantiate_record(attributes) and you get a Client with the various attributes
<fp-> this is running a lot slower than when i just had it return a hash of attributes
<fp-> and i was wondering if someone could help me figure out how to debug
<fp-> the issue is exponential … the more Clients, the slower the load
<sent_hil> is this valid code: https://gist.github.com/3984282
<Aria> Exponential, not linear?
<erikh> sent_hil: yes but it probably doesn't do what you want.
<Aria> Heh, what I was about to say.
<erikh> sent_hil: fwiw, the next time you have that question, just running it will answer it better than asking here.
<erikh> I mean, feel free to ask, but plugging it into irb will serve you better.
<sent_hil> erikh: erikh when I do `Post.class_variables`, I get an empty array
<erikh> right
<fp-> Aria: sorry, my terminology may be wrong
<sent_hil> so where is the @@one stored?
imajes has quit [Excess Flood]
<erikh> on the module
<sent_hil> damn dbrain left
<fp-> is there a gem or any code i can use during the loop to see what my slowdown is?
<sent_hil> erikh: how do i get a hold of it from Post instance?
<erikh> I'm pretty sure you can't
<erikh> but I could be wrong there. I avoid class vars like the plague
<erikh> anyhow, nap time
<erikh> l8r
<Aria> Yeah, those are so often wacky. You probably want a class singleton variable and an accessor
<erikh> ^
<sent_hil> Aria: like class << self; attr_accessor :one; end ?
imajes has joined #ruby-lang
<sent_hil> how would that work for @@ vars
<Aria> Yeah. That doesn't use @@ vars, that's the point.
fp- has quit [Quit: fp-]
<Aria> @@ variables are seriously weird, a total misfeature.
<sent_hil> Aria: Yea def...been reading up on 'Ruby under a microscope' book and was just curious about it
<Aria> Yeah.
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
mpan has quit [Ping timeout: 260 seconds]
flebel has quit [Excess Flood]
flebel has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Ping timeout: 252 seconds]
nazty has quit [Read error: No route to host]
kurko_ has joined #ruby-lang
nazty has joined #ruby-lang
Aria has quit [Remote host closed the connection]
albybisy has joined #ruby-lang
<totallymike> Is there a way to create an rspec test double that doesn't care what it receives except the messages I tell it to watch for?
phaedrix has quit [Ping timeout: 240 seconds]
<totallymike> I want to test a method that instantiates a socket connection, puts some stuff to it, and then closes it. I have a few different expectations about the method, but I don't want to put them all in the same example what with that being bad style and all
sepp2k1 has quit [Read error: Connection reset by peer]
krzbrg has quit [Remote host closed the connection]
Madis has quit [Remote host closed the connection]
WhoNeedszzz has joined #ruby-lang
<WhoNeedszzz> Hey guys
<WhoNeedszzz> What exactly is reflection in Ruby?
<totallymike> Like so
krohrbaugh has joined #ruby-lang
<totallymike> WhoNeedszzz: sorry, I realized that looks like a response to your question; it's a sample to a question I just asked.
kurko_ has quit [Ping timeout: 260 seconds]
<totallymike> The problem with my gist is that the doubles flip out when they receive the other methods
<totallymike> The double in the first example will flip out when the bar method sends the close, and the double in the second example flips out when the bar method sends puts
kurko_ has joined #ruby-lang
postmodern has joined #ruby-lang
albybisy has quit [Remote host closed the connection]
<zenspider> ugh.
justinmcp has quit [Remote host closed the connection]
<totallymike> I suppose I could just make sock an ivar like so '@sock', and stub both calls in a before hook, then when it actually counts override the stubs with expectations
<richardjortega> how do you append one csv file to another csv file?
<zenspider> man I hate that style of testing...
* zenspider shudders
<richardjortega> i've tried using File.open and a+ , but not sure how to pull the other csv file
<zenspider> richardjortega: cat file1.csv file2.csv
<totallymike> zenspider: elaborate? I'd love to improve
<richardjortega> zenspider: can i use that in a ruby script?
savage- has joined #ruby-lang
<zenspider> totallymike: what's the value of specifying ".once"?
<zenspider> (or at_least(:once), etc)
<zenspider> and that code SHOULD fail, regardless of the expectations failing for unrelated stuffs
<totallymike> I'd be willing to bet that the 'once' method just passes the expectation right through
<totallymike> but it makes it clear to me that the test's intent is to see that it's only called once
<totallymike> And yes I wrote the bar method such that it will fail
<zenspider> what do you care if it is only called once or not? (course ... in this case we're talking about a socket... but I'm complaining about BDD in general, not specifically about your tests)
<totallymike> Opening and closing socket connections is comparatively expensive. I noticed by accident that I was doing it one level too deep in a method I'd written, so it would happen for each item in a list
alvaro_o has quit [Quit: Ex-Chat]
<totallymike> oh derp, the critique's about BDD not about my wanting to make sure I'm not banging sockets around
mpan has joined #ruby-lang
WhoNeedszzz has quit [Ping timeout: 246 seconds]
thinkdevcode has joined #ruby-lang
chimkan has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
wyhaines has joined #ruby-lang
kurko_ has joined #ruby-lang
facest has quit [Read error: Connection reset by peer]
WhoNeedszzz has joined #ruby-lang
kurko_ has quit [Client Quit]
facest has joined #ruby-lang
snk has quit [Ping timeout: 248 seconds]
snk has joined #ruby-lang
facest has quit [Read error: Connection reset by peer]
facest has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
<WhoNeedszzz> What is reflection useful for?
facest has quit [Ping timeout: 245 seconds]
<totallymike> For the record, that's exactly what I did. I instantiated the stub in a before(:each) hook, and in the example I set the expectations the example needed
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
faces has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
xalei_ has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 264 seconds]
xalei has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby-lang
mpan has quit [Read error: Connection reset by peer]
Aria has joined #ruby-lang
mpan has joined #ruby-lang
Aria has quit [Ping timeout: 260 seconds]
chimkan has quit [Remote host closed the connection]
chimkan_ has joined #ruby-lang
kurko_ has joined #ruby-lang
datanoise has joined #ruby-lang
seoaqua has joined #ruby-lang
areil has joined #ruby-lang
lenilson-dias has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
achiu has joined #ruby-lang
woollyams has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
Serial_Killer_C has joined #ruby-lang
kurko_ has joined #ruby-lang
lenilson-dias has quit [Ping timeout: 248 seconds]
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
kurko_ has quit [Client Quit]
WNz has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
WhoNeedszzz has quit [Ping timeout: 246 seconds]
WNz is now known as WhoNeedszzz
mihar has quit [Ping timeout: 246 seconds]
<Paradox> totallymike, BDD, like all other methodologies, isnt absolute
mihar has joined #ruby-lang
<Paradox> its a good one
<Paradox> but doesnt fit all the time
<Paradox> for many projects you just overly complicate your projects
thone has joined #ruby-lang
<totallymike> Nope. It's the One True Maxim
<richardjortega> how do you use the Ruby CSV class to handle special characters in text?
matled has quit [Remote host closed the connection]
matled has joined #ruby-lang
thone_ has quit [Ping timeout: 240 seconds]
<totallymike> In all honesty, I'm relatively new to 'driven development' methodologies of any kind. I do, however, appreciate the documentation and sanity having good test coverage provides
Serial_Killer_C has quit [Read error: Connection timed out]
Serial_Killer_C has joined #ruby-lang
savage- has quit [Quit: savage-]
justinmcp has joined #ruby-lang
headius has quit [Quit: headius]
seanstickle has quit [Quit: seanstickle]
spuk has quit [Ping timeout: 255 seconds]
Artheist has quit [Ping timeout: 260 seconds]
blazes816 has joined #ruby-lang
Xzyx987X has joined #ruby-lang
kingcrawler has quit [Quit: Computer has gone to sleep]
verbad has joined #ruby-lang
spuk has joined #ruby-lang
HikkiJP has joined #ruby-lang
verbad has quit [Client Quit]
k4k1_c0der has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
HikkiJP has quit [Quit: .•«UPP»•.]
anannie has joined #ruby-lang
WhoNeedszzz has left #ruby-lang ["P00f!"]
anannie has quit [Read error: Connection reset by peer]
Serial_Killer_C has quit [Remote host closed the connection]
anannie has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
stardiviner has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
aredridel has joined #ruby-lang
anannie has joined #ruby-lang
savage- has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
guest has joined #ruby-lang
guest has quit [Client Quit]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
chimkan___ has joined #ruby-lang
senekis has joined #ruby-lang
svyatov has joined #ruby-lang
havenn has joined #ruby-lang
tallship has quit [Quit: Too Hip gotta go - Going..... Down..... Mr. Tyler?]
chimkan_ has quit [Ping timeout: 260 seconds]
hakunin has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
CrazyHorse18 has joined #ruby-lang
<CrazyHorse18> what's the general idea with rubininus
dhruvasagar has joined #ruby-lang
<CrazyHorse18> most of it's writtain in ruby.. and it has a compiler
<CrazyHorse18> what's the competative advantage of that and say standard ruby
shachaf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<xuser> supposely performance
<CrazyHorse18> … eventually?
<xuser> don't they have a website?
<CrazyHorse18> they have
<CrazyHorse18> i read it
<shachaf> Is there some Ruby package with an equivalent to lenses/traversals/folds in Haskell? I'm wondering how it would work.
<shachaf> They're a generalization of references that lets you do various neat things.
<rking> shachaf: Elaborate?
<shachaf> For example, world.monsters.all.position += 1 to move all the monsters in the world by 1 unit.
<shachaf> Or world.monsters.all.appendages.all.position += 1 to move all the appendages of all monsters by 1 unit.
<rking> That particular thing you could piece together with some metaprogramming.
<rking> Don't know what other cases you'd need to cover.
<shachaf> Or "toListOf (monsters.all.appendages.all) world" to get a list of all the appendages in the world.
datanoise has quit [Ping timeout: 255 seconds]
<rking> shachaf: Between Iteratorꜱ and method_missing, I think you'd be able to make a fairly generic thing.
cirenyc has joined #ruby-lang
<rking> Then you can have your very own thing as confusing as RSpec. ☺
aredridel has quit [Remote host closed the connection]
<shachaf> rking: And it just works automatically with normal lenses!
<shachaf> I knew the answer in here would involve method_missing, though.
phaedrix has joined #ruby-lang
<rking> shachaf: I'd like to know more about this, but am about to have to perform the little death (logging out for the night).
<rking> I'm not quite picturing how Haskell does the part I'm picturing method_missing for
<lianj> certainly not at runtime
<shachaf> Nope, it's all done statically.
<shachaf> There's the idea of a Traversal which is composable.
<shachaf> monsters :: SimpleLens World [Monster]
<shachaf> traverse :: SimpleTraversal [Monster] Monster
cirenyc has quit [Ping timeout: 256 seconds]
<shachaf> So you can combine them into monsters.traverse :: SimpleTraversal World Monster
<rking> Well heck, if we're going to go around pre-declaring things, I can do it without method_missing as well.
<shachaf> It's not as if you're not predeclaring things normally.
<shachaf> You have the accessor "monster"
<rking> I've got to learn Haskell just so I can talk to shachaf.
<steveklabnik> heh
<shachaf> The fastest and easiest way to learn: Haskell
<steveklabnik> learnyouahaskell.com
aredridel has joined #ruby-lang
solars has quit [Ping timeout: 276 seconds]
Guest___ has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
WhoNeedszzz has joined #ruby-lang
<WhoNeedszzz> What are the main application areas of Ruby?
<heftig> rails
<WhoNeedszzz> and?
<aredridel> Writing command line tools.
<aredridel> Parsing text and XML and general shell scripting.
<aredridel> Writing chat bots.
<heftig> pretty much anything you use perl for
<aredridel> Making MacOS apps.
<aredridel> Being a calculator.
<heftig> you can embed it as a scripting language, though it's a bit heavy. mruby, however, is a promising replacement for lua
charliesome has joined #ruby-lang
<aredridel> Not really that heavy all told.
<aredridel> Not like Lua, but really good.
k4k1_c0der has quit []
Guest___ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
guest has joined #ruby-lang
guest is now known as Guest98107
ryanf has quit [Ping timeout: 252 seconds]
Guest98107 has quit [Client Quit]
Guest___ has joined #ruby-lang
Guest___ has quit [Client Quit]
anannie has quit [Read error: Connection reset by peer]
SoAwesom_ has joined #ruby-lang
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
perryh has quit [Excess Flood]
anannie has joined #ruby-lang
cantonic_ has joined #ruby-lang
svyatov has quit [Quit: svyatov]
kitallis has joined #ruby-lang
perryh has joined #ruby-lang
SoAwesom_ has quit [Client Quit]
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
CrazyHorse18 has left #ruby-lang [#ruby-lang]
vlad_starkov has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
aredridel is now known as Aria
facest has joined #ruby-lang
faces has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
cirenyc has quit [Ping timeout: 244 seconds]
WhoNeedszzz has left #ruby-lang ["P00f!"]
wyhaines has joined #ruby-lang
artOfWar_ has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
lsegal` has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal` has quit [Client Quit]
lsegal has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
rippa has joined #ruby-lang
xalei_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
svyatov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
senekis has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
JohnBat26 has joined #ruby-lang
roadt has joined #ruby-lang
rippa has quit [Ping timeout: 252 seconds]
solars has joined #ruby-lang
cirenyc has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
javilm has joined #ruby-lang
cirenyc has quit [Ping timeout: 272 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
woollyams has quit [Ping timeout: 255 seconds]
dc5ala has joined #ruby-lang
tonni has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
Aria has quit [Remote host closed the connection]
artOfWar_ has quit [Remote host closed the connection]
irleif has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby-lang
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
workmad3 has joined #ruby-lang
Axsuul has quit [Ping timeout: 268 seconds]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
workmad3 has quit [Ping timeout: 252 seconds]
crankharder has joined #ruby-lang
rue|w has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
svyatov has quit [Quit: svyatov]
anannie has joined #ruby-lang
svyatov has joined #ruby-lang
chimkan___ has quit [Quit: chimkan___]
SoAwesomeMan has joined #ruby-lang
tbuehlmann has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
burgestrand has quit [Ping timeout: 268 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
blacktulip has joined #ruby-lang
SoAwesomeMan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
jarib has quit [Excess Flood]
vlad_starkov has joined #ruby-lang
jarib has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
cirenyc has joined #ruby-lang
shtirlic has joined #ruby-lang
cirenyc has quit [Ping timeout: 260 seconds]
dr_bob has joined #ruby-lang
bosie has joined #ruby-lang
justinmcp has joined #ruby-lang
irleif has joined #ruby-lang
cschwartz has joined #ruby-lang
gnufied has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
mylordangus has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
bmaland has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
<yorickpeterse> Morning
rolfb has joined #ruby-lang
solars has joined #ruby-lang
heftig has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
savage- has quit [Quit: savage-]
heftig has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
burgestrand has joined #ruby-lang
Axsuul has joined #ruby-lang
VGoff_afk is now known as VGoff
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
judofyr has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
jamjam has joined #ruby-lang
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
shtirlic has quit [Remote host closed the connection]
anannie has joined #ruby-lang
javilm has quit [Quit: http://www.lavandeira.net]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
<gnufied> morning
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
ryanf has quit [Ping timeout: 256 seconds]
runeb has joined #ruby-lang
franckverrot has quit [Quit: Connection closed for inactivity]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
nitti has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
nitti has quit [Ping timeout: 260 seconds]
anannie has joined #ruby-lang
robotmay has joined #ruby-lang
kitallis has joined #ruby-lang
workmad3 has joined #ruby-lang
workmad3_ has joined #ruby-lang
mylordangus has quit [Remote host closed the connection]
alex_k has quit [Quit: Lost terminal]
seoaqua has quit [Ping timeout: 248 seconds]
havenn has quit [Remote host closed the connection]
anannie has quit [Read error: Connection reset by peer]
nazty has quit [Ping timeout: 260 seconds]
anannie has joined #ruby-lang
seoaqua has joined #ruby-lang
ttilley has quit [Ping timeout: 240 seconds]
thisirs has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
lteo has quit [Read error: Operation timed out]
seoaqua has quit [Ping timeout: 244 seconds]
franckverrot has joined #ruby-lang
futurechimp has joined #ruby-lang
jaimef has quit [Ping timeout: 244 seconds]
jaimef has joined #ruby-lang
lteo has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
<jashank> Evening
<jashank> Is it possible to add a local patch to a gem?
anannie has quit [Read error: Connection reset by peer]
<jashank> Or, perhaps, a way to stop gem clobbering an extracted gem build directory?
anannie has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
<workmad3> jashank: it is possible to patch a gem... it's called monkey-patching
nitti has joined #ruby-lang
<jashank> In the native-C extension?
<workmad3> jashank: ooh, no, that's probably a bit difficult
<jashank> Yeeeah.
<workmad3> jashank: any chance you're using bundler to install project dependencies?
<jashank> Nope. I'm just installing rb-gsl with some patches to make it compile/run against GSL-1.15.
svyatov has quit [Quit: svyatov]
agarcia has joined #ruby-lang
<workmad3> jashank: only way I know then is to either a) only ever install that gem from a locally built gemfile or b) set up a personal gem repo that has your customised version of that gem in it (or c) patch it and send a pull request for the gem)
roadt has quit [Ping timeout: 256 seconds]
GarethAdams has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
<jashank> Well, this bug in rb-gsl has been around for a while 9
<jashank> (ie. since GSL-1.15 was released)
<jashank> so I doubt it'll be fixed upstream; I guess the stopgap I currently have will have to do.
* jashank goes back to fiddling with Classifier::LSI.
<workmad3> jashank: could be the maintainer just hasn't had a chance to sort it... so if you have a patch and submit it upstream, it could very well be pulled in and released ;)
<workmad3> jashank: or you could fork the gem and release your own 'rb-gsl115' gem
vlad_starkov has quit [Remote host closed the connection]
<darix> jashank: gem unpack foo.gem ; gem spec --ruby foo.gem > foo.gemspec ; push foo*/ ; patchpatch ; gem build ../foo.gemspec ; gem install foo*.gem
sepp2k has joined #ruby-lang
<darix> s/push/pushd/
anannie has quit [Ping timeout: 248 seconds]
sush24 has joined #ruby-lang
flebel has quit [Excess Flood]
flebel has joined #ruby-lang
seoaqua has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
cultureulterior_ has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
JohnBat26 has joined #ruby-lang
jarib has quit [Excess Flood]
<jashank> darix: Aaha, cheers.
jarib has joined #ruby-lang
heftig has quit [Quit: leaving]
<darix> jashank: if you need it for multiple hosts you can run your own gem server
rue|w has quit [Remote host closed the connection]
sush24 has quit [Quit: Leaving]
adambeynon has joined #ruby-lang
sush24 has joined #ruby-lang
levicole has quit [Ping timeout: 246 seconds]
levicole has joined #ruby-lang
steez has quit [Ping timeout: 248 seconds]
steez has joined #ruby-lang
freedrull has quit [Ping timeout: 260 seconds]
yellow5 has quit [Ping timeout: 252 seconds]
steez is now known as Guest39810
miah has quit [Ping timeout: 252 seconds]
chendo_ is now known as chendo
yellow5 has joined #ruby-lang
miah has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
freedrull has joined #ruby-lang
kurko_ has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
gnufied has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
gnufied has quit [Client Quit]
gnufied has joined #ruby-lang
<andrewvos> Anyone here ever had the need to edit files on a Windows box from a Mac with vim?
<andrewvos> Because if I have to use IntelliJ one more time I'm going to literally cry
<andrewvos> And I don't want to install gvim on a while lot of machines.
<Muz> Mount the windows files over Samba?
<Muz> If you have a local login on the Windows box, you may be able to get to the ADministrative shares; eg smb://user@box/C$ etc.
<andrewvos> I suppose that is an easy option.
<andrewvos> I was thinking of using something like sshfs, but mounting shares is probably a lot better.
<andrewvos> Oh yeah I forgot about Admin shares!
<andrewvos> But actually no I don't have a local login.
<jashank> I regularly forget those things...
<andrewvos> Or any login really.
<andrewvos> Damn
<andrewvos> Got excited there for a second
sush24 has quit [Quit: Leaving]
dr_bob has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby-lang
<andrewvos> Sharing directories might be blocked too
<andrewvos> But that's neither here nor there
kurko_ has quit [Ping timeout: 260 seconds]
injekt has quit [Quit: leaving]
kurko_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
shachaf has left #ruby-lang [#ruby-lang]
kylemcgill has quit [Remote host closed the connection]
anannie has joined #ruby-lang
anannie has quit [Client Quit]
seoaqua has quit [Quit: 离开]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
ruurd has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
heftig has joined #ruby-lang
<burgestrand> andrewvos: put it on dropbox :P
<andrewvos> heh
<andrewvos> that's a bit slow
<andrewvos> burgestrand: And this is on other peoples machines.
<andrewvos> burgestrand: I'm just pairing with them on and off.
yalue has joined #ruby-lang
<burgestrand> andrewvos: build a trojan and distribute it and give yourself shell access.
<burgestrand> ^^
<burgestrand> andrewvos: maybe some shared screen session thing. Anyhow, out of ideas for now.
Artheist has joined #ruby-lang
<andrewvos> burgestrand: = me getting fired :)
<andrewvos> I'm just hoping smb shares will work.
carloslopes has joined #ruby-lang
Paradox has quit [Read error: Operation timed out]
Paradox has joined #ruby-lang
jxie has quit [Quit: leaving]
Mon_Ouie has joined #ruby-lang
d3vic3 has joined #ruby-lang
<darix> andrewvos: if all you need is an editor for windows: try intype
<judofyr> or Sublime Text 2
<darix> judofyr: works too.
<andrewvos> No my vim config has achieved a perfection that I cannot move away from
<andrewvos> NO
<judofyr> my vim config is way Unix focused
<bmaland> emacs with tramp-mode? :-)
<andrewvos> What is tramp-mode?
<bmaland> transparent remote editing, supports both ssh and smb (and a bunch of other protocols)
lcdhoffman has joined #ruby-lang
<bmaland> maybe vim has something similar also
<darix> bmaland: if andrewvos cant open shares and stuff ... it all wont help
<judofyr> burgestrand: "ssh vim"
<judofyr> :D
<oddmunds> yeah, that's a typical example of the different philosophies of vim and emacs
<bmaland> yep a way to access the files is of course a requirement for remote editing
<burgestrand> judofyr: I assumed that wasn’t an acceptable solution :p
<darix> andrewvos: btw: i just thought about intype as a smaller alternative to installing intellij or gvim. because you can unpack it and go
<andrewvos> Oh cool
irleif has quit [Quit: Computer has gone to sleep.]
<darix> and it can read mac/unix files, has syntax hilighting and similar editing features to sublime
<bmaland> oddmunds: no kidding, tramp alone is larger than vi :P
imajes has quit [Excess Flood]
mytrile has joined #ruby-lang
<judofyr> bmaland: your name seems known. are you famous or something?
<judofyr> s/known/familiar/
imajes has joined #ruby-lang
<bmaland> no but i am norwegian
<judofyr> ah
<judofyr> famous enough
<judofyr> have we met?
<gnufied> judofyr: do you meet only famous people?
<bmaland> nope, i dont think so
<oddmunds> gnufied: he's met me :)
<judofyr> gnufied: of course
<judofyr> gnufied: they become famous by meeting me
<judofyr> :D
<gnufied> where do I signup?
<judofyr> bmaland: ah, I think I've seen some Emacs twats from you
<oddmunds> judofyr: were you at the last ruby meetup?
<bmaland> thats probably it
<judofyr> oddmunds: what was the topic?
<judofyr> it's been a while, no?
<oddmunds> roy osherove talked about testing for nubies
<oddmunds> judofyr: this was some weeks ago
<oddmunds> 19th, perhaps
<judofyr> oddmunds: oh, I missed it :(
<judofyr> oddmunds: I was in Dublin
<oddmunds> i hope it won't be so long until next time
<judofyr> oddmunds: was it goood?
<oddmunds> i weren't there, either. work came in the way.
<judofyr> ah
<oddmunds> do you study/work atm?
<judofyr> work
<judofyr> at Nordaaker
irleif has joined #ruby-lang
Axsuul has quit [Ping timeout: 260 seconds]
svyatov has joined #ruby-lang
<oddmunds> ah. i thought rune worked at bengler/origo.
<oddmunds> (looking at your about page)
<judofyr> he did
<judofyr> now he's sitting right next to me!
<oddmunds> is it a great place to work?
<judofyr> yup. pretty nice :D
<oddmunds> should i quit my job at the microsoft stacked place i work now, and come work for you?
<andrewvos> Yes. always quit your job. It's the best thing to do.
<oddmunds> :)
<judofyr> y'know, I've actually heard good things about microsoft lately: C#, F#, Visual Studio etc. the only thing that seems to suck is Windows :/
<judofyr> oh, and the open-sourcing they're doing now
<oddmunds> i'm not super content at my work, because i think i'm the only nerd there. everyone else are just there to get paid.
<judofyr> aw, that sucks
jxie has joined #ruby-lang
<gnufied> judofyr: and secure boot
Hakon has joined #ruby-lang
banisterfiend has joined #ruby-lang
<banisterfiend> anyone here got anyone here got 'practical object oriented programming' http://www.poodr.info/book/ is it good?
<judofyr> banisterfiend: I've only read klabnik's review
<oddmunds> judofyr: i only just started, so i'll give my current place a decent chance. maybe i can be a good influence.
<banisterfiend> judofyr: do u have a link to that?
toretore has joined #ruby-lang
<banisterfiend> thanks
nyuszika7h has quit [Read error: Connection reset by peer]
nyuszika7h has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
kurko_ has quit [Ping timeout: 260 seconds]
Ryhnn has joined #ruby-lang
kurko_ has joined #ruby-lang
lcdhoffman has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
kurko_ has quit [Ping timeout: 252 seconds]
keymone has joined #ruby-lang
kurko_ has joined #ruby-lang
FiXato|VPS has joined #ruby-lang
FiXato has quit [Read error: Connection reset by peer]
afader has joined #ruby-lang
afader has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
d3vic3 has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
d3vic3 has joined #ruby-lang
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
nyuszika7h has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Artheist has quit [Remote host closed the connection]
nitti has joined #ruby-lang
lcdhoffman has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
nertzy has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
outoftime has joined #ruby-lang
robotmay has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
dr_bob has joined #ruby-lang
methods has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
jarib has quit [Excess Flood]
nertzy has quit [Quit: This computer has gone to sleep]
jarib has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
coryf has joined #ruby-lang
imperator has joined #ruby-lang
thisirs has quit [Ping timeout: 240 seconds]
thisirs has joined #ruby-lang
irleif has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
runeb has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
nertzy has joined #ruby-lang
thisirs has quit [Ping timeout: 244 seconds]
vlad_sta_ has joined #ruby-lang
gsav has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
<imperator> good morning
<banisterfiend> imperator: sup
Hakon has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 244 seconds]
gix has quit [Ping timeout: 244 seconds]
datanoise has joined #ruby-lang
thisirs has joined #ruby-lang
mistym has quit [Remote host closed the connection]
shtirlic has joined #ruby-lang
gix has joined #ruby-lang
gsav_ has joined #ruby-lang
gsav__ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
bmaland has quit [Ping timeout: 260 seconds]
runeb has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 256 seconds]
dr_bob has quit [Quit: Leaving.]
dhruvasagar has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
nitti has joined #ruby-lang
dr_bob has joined #ruby-lang
darix has quit [Ping timeout: 246 seconds]
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
svyatov has quit [Quit: svyatov]
dhruvasagar has quit [Read error: Connection reset by peer]
desmondmonster has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gsav__ has quit [Read error: Connection reset by peer]
gsav_ has quit [Read error: Connection reset by peer]
gsav has quit [Read error: Connection reset by peer]
desmondmonster has left #ruby-lang [#ruby-lang]
postmodern has quit [Quit: Leaving]
kurko_ has quit [Ping timeout: 252 seconds]
jbwiv has joined #ruby-lang
kurko_ has joined #ruby-lang
svyatov has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
seydar has joined #ruby-lang
<seydar> _Mon_Ouie_: ping
dhruvasagar has quit [Ping timeout: 260 seconds]
JohnBat26 has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
carloslopes has quit [Ping timeout: 260 seconds]
methods has left #ruby-lang [#ruby-lang]
ddd has quit [Quit: Leaving.]
ddd has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Client Quit]
krohrbaugh has joined #ruby-lang
tocki_ has joined #ruby-lang
<tocki_> class C; @a = 101; end # how to add read accessor for @a ??
dhruvasagar has quit [Ping timeout: 248 seconds]
<judofyr> tocki_: class C; class << self; attr_accessor :a; end end
<judofyr> C.a # => 101
nyuszika7h has joined #ruby-lang
anachronistic has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
<manveru> def C.a; @a; end
<manveru> ;)
dhruvasagar has joined #ruby-lang
kurko_ has joined #ruby-lang
<tocki_> correct!
<judofyr> heh, manveru's one is probably simpler in this case :)
thisirs has quit [Remote host closed the connection]
<tocki_> is there any reason to use "self.a" instead of "a" for method invocation within ?
<tocki_> is there difference in semantics ?
seydar has quit [Quit: leaving]
<manveru> yeah
<burgestrand> tocki_: you cannot call private methods with self.a
<tocki_> what it is :)
<tocki_> anything else ?
<burgestrand> tocki_: and you cannot call setters without it: "a = 5" is different from "self.a = 5"
<tocki_> true!
<manveru> burgestrand for president! :D
<jaska> at first i read burgerstand
<burgestrand> \o/
<burgestrand> you are not alone
<manveru> i trust my autocomplete not to betray my thoughts
desmondmonster_ has joined #ruby-lang
<tocki_> what is rationale for "elsif" keyword ?
krohrbaugh has quit [Quit: Leaving.]
<burgestrand> matz preferred it
* burgestrand shrugs
desmondmonster_ has left #ruby-lang [#ruby-lang]
<judofyr> and Perl has it
<burgestrand> probably those two combined then
<judofyr> yeah
<judofyr> he was probably just used to it from Perl
<burgestrand> at least it’s not elif
<judofyr> elves
<burgestrand> elvesif
<tocki_> and Perls rationale for this is "you'll choose your own keywords when you get to design own language" :)
<judofyr> :)
<tocki_> anyway is there a way for module to expose its class variables to class (and instances) which include it ?
bmaland has joined #ruby-lang
enebo has joined #ruby-lang
fa1ur has joined #ruby-lang
mwjcomputing has joined #ruby-lang
g0bl1n has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
bmaland has quit [Ping timeout: 255 seconds]
<judofyr> tocki_: def foo; ModuleName.foo end ?
outoftime has quit [Ping timeout: 264 seconds]
<manveru> you mean class instance variables?
rippa has joined #ruby-lang
savage- has joined #ruby-lang
g0bl1n has quit [Quit: g0bl1n]
kain has quit [Ping timeout: 252 seconds]
kain_ has joined #ruby-lang
g0bl1n has joined #ruby-lang
outoftime has joined #ruby-lang
blacktulip has quit [Ping timeout: 260 seconds]
blacktulip has joined #ruby-lang
alexkira has joined #ruby-lang
headius has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
blazes816 has joined #ruby-lang
irleif has joined #ruby-lang
toertore has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
nitti_ has joined #ruby-lang
kurko_ has joined #ruby-lang
blacktulip has quit [Ping timeout: 244 seconds]
blacktulip has joined #ruby-lang
toretore has quit [Ping timeout: 276 seconds]
nitti has quit [Ping timeout: 265 seconds]
dr_bob has quit [Quit: Leaving.]
runeb has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
senekis has joined #ruby-lang
Nektye has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
irleif has joined #ruby-lang
gsav has joined #ruby-lang
gsav_ has joined #ruby-lang
gsav__ has joined #ruby-lang
senekis_ has joined #ruby-lang
senekis has quit [Ping timeout: 256 seconds]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
g0bl1n has quit [Quit: g0bl1n]
kain_ is now known as kain
blacktulip has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 265 seconds]
thinkdevcode has joined #ruby-lang
blacktulip has joined #ruby-lang
melter_ has joined #ruby-lang
melter_ has quit [Client Quit]
melter_ has joined #ruby-lang
dpatel has joined #ruby-lang
melter_ has quit [Read error: Connection reset by peer]
melter has quit [Remote host closed the connection]
melter has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
g0bl1n has joined #ruby-lang
snafoo has quit [Ping timeout: 246 seconds]
mantono has quit [Ping timeout: 260 seconds]
savage- has quit [Quit: savage-]
burgestrand has quit [Quit: Leaving.]
heftig has quit [Quit: leaving]
Dreamer3__ has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
snafoo has joined #ruby-lang
snafoo has joined #ruby-lang
snafoo has quit [Changing host]
wallerdev has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
svyatov has quit [Quit: svyatov]
dc5ala has quit [Quit: Ex-Chat]
kurko_ has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
johntit0r has joined #ruby-lang
johntit0r has left #ruby-lang [#ruby-lang]
krohrbaugh has joined #ruby-lang
countdigi has joined #ruby-lang
Nektye has quit [Quit: Leaving]
<andrewvos> erikh: Is it later?
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
nazty has joined #ruby-lang
futurechimp has quit [Quit: Leaving]
judofyr has quit [Ping timeout: 265 seconds]
runeb has joined #ruby-lang
enebo has quit [Quit: enebo]
corecode has joined #ruby-lang
<corecode> hi there
<corecode> is there a way to set the Binding that is used for a require?
<corecode> i.e. if i have a file "settings.rb" with content "foo = 3", that i can require "settings" so that the assignment to foo winds up at a Binding of my choice?
<bougyman> no
svyatov has joined #ruby-lang
<corecode> that's sad
<corecode> alternative suggestions?
carloslopes has joined #ruby-lang
dabradley has joined #ruby-lang
<bougyman> depends on the use case.
<bougyman> I can't see any sane use case for this.
<corecode> reading settings
<bougyman> i'd use json or yaml for that.
<corecode> yea, i want to use ruby
wallerdev has quit [Quit: wallerdev]
<bougyman> JSON.parse File.read("test.json")
<bougyman> => {"foo"=>"bar"}
<bougyman> that is using ruby
<bougyman> json is just the settings file format.
<darix> corecode: why not something like Settings.foo ?
<bougyman> that's the best way to do it in ruby, namespace it to a module or class or instance
shtirlic has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
d3vic3 has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby-lang
d3vic3 has joined #ruby-lang
ryanlecompte has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
darix has quit [Ping timeout: 246 seconds]
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
alvaro_o has joined #ruby-lang
nitti_ has quit [Remote host closed the connection]
Paradox has quit [Ping timeout: 246 seconds]
rwilcox has joined #ruby-lang
Paradox has joined #ruby-lang
pbjorklund has quit [Read error: Connection reset by peer]
pbjorklund has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
cschwartz has quit [Ping timeout: 252 seconds]
jarib has quit [Excess Flood]
dr_bob has joined #ruby-lang
jarib has joined #ruby-lang
nazty has quit [Ping timeout: 260 seconds]
mrsolo has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
Uranio has joined #ruby-lang
gix has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
nazty has joined #ruby-lang
apeiros_ has joined #ruby-lang
perryh has quit [Excess Flood]
perryh has joined #ruby-lang
perryh has quit [Changing host]
perryh has joined #ruby-lang
gix has joined #ruby-lang
AlHafoudh has joined #ruby-lang
irleif has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
mwjcomputing has quit [Quit: Leaving]
brianpWins has joined #ruby-lang
fa1ur has quit [Quit: Leaving]
lcdhoffman has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
GarethAdams has quit [Quit: Leaving...]
nitti has joined #ruby-lang
dpatel has quit [Ping timeout: 260 seconds]
dpatel has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 256 seconds]
imperator has quit [Quit: Leaving]
Mon_Ouie has joined #ruby-lang
dhruvasagar has joined #ruby-lang
nitti has quit [Ping timeout: 276 seconds]
bosie has quit [Ping timeout: 245 seconds]
<zzak> what is the world coming to: http://aozora.github.com/bootmetro/hub.html
workmad3 has quit [Ping timeout: 260 seconds]
justinmcp has joined #ruby-lang
methods has joined #ruby-lang
Carnage\ has joined #ruby-lang
jasiek has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
<blazes816> f having your framework tied to a particular template engine, I want mine tied to a particular design
headius has quit [Quit: headius]
methods has left #ruby-lang [#ruby-lang]
d3vic3 has quit [Quit: leaving]
<Paradox> zzak, for the idiots developing for windows 8 that might be nice, but still looks stupid as crap
<corecode> darix: just as an academic exercise
headius has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
nitti has joined #ruby-lang
headius has quit [Client Quit]
Uranio has quit [Read error: Connection reset by peer]
jgomez has joined #ruby-lang
heftig has joined #ruby-lang
mantono has joined #ruby-lang
bmaland has joined #ruby-lang
justinram has joined #ruby-lang
sean_ has joined #ruby-lang
sean_ has quit [Client Quit]
rebelcan has joined #ruby-lang
kingcrawler has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
svyatov has quit [Quit: svyatov]
jgomez has quit [Quit: Leaving]
ryanf has quit [Quit: leaving]
Uranio has joined #ruby-lang
<ddd> bougyman: dude!
nertzy has joined #ruby-lang
<apeiros_> bougyman, man of the day…
<ddd> bougyman: ltnt.
<ddd> hehe haven't been paying much attention to this chan, been busy on others. didn;t know he came active :)
<tocki_> what does module_eval (module_exec) do for Class ?
<bougyman> sups up
<ddd> not much. how ya been?
<ddd> moved back to the states. living in KY now
__butch__ has joined #ruby-lang
<ddd> yourself?
runeb has quit [Remote host closed the connection]
nitti_ has joined #ruby-lang
nitti has quit [Ping timeout: 248 seconds]
cultureulterior_ has quit [Quit: cultureulterior_]
sailias has joined #ruby-lang
kingcrawler has quit [Quit: [kingCrawler release]]
sailias has quit [Ping timeout: 260 seconds]
__butch__ has quit [Quit: Leaving.]
kurko_ has quit [Ping timeout: 252 seconds]
areil has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
countdigi has quit [Quit: Lost terminal]
imajes has quit [Excess Flood]
g0bl1n has quit [Quit: g0bl1n]
__butch__ has joined #ruby-lang
gyre008 has joined #ruby-lang
imajes has joined #ruby-lang
Guest15771 has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
nertzy2 has joined #ruby-lang
gyre008 has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
nertzy has quit [Ping timeout: 244 seconds]
<tocki_> how to check if hash structure is subset of of another hash structure (nested list/hashes)
<apeiros_> you'll have to recursively walk it
bosie has joined #ruby-lang
cjs226 has joined #ruby-lang
yalue has quit [Quit: Leaving]
kurko_ has quit [Remote host closed the connection]
<darix> well depending on the depth he could also just do some_hash.values.include? someotherhash
kurko_ has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
<apeiros_> darix: the moment you do that on more than just the first level, you're already recursively walking it :-p
qpingu has joined #ruby-lang
Kingy has joined #ruby-lang
Guest39810 has left #ruby-lang [#ruby-lang]
steez has joined #ruby-lang
Kingy has quit [Client Quit]
<tocki_> o/ apeiros_
mwjcomputing has joined #ruby-lang
rippa has quit [Ping timeout: 260 seconds]
<tocki_> how to check if class type belongs to core classes or not ?
<cout> tocki_: from ruby or from C?
<tocki_> ruby
<cout> in C it's easy
vlad_starkov has quit [Ping timeout: 260 seconds]
<cout> if(BUILTIN_T(klass)) iirc
<cout> but in ruby you can do something like if [ Array, Hash, ... ].include?(klass)
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
runeb has joined #ruby-lang
headius has joined #ruby-lang
runeb has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
imajes has quit [Excess Flood]
erichmenge has joined #ruby-lang
imajes has joined #ruby-lang
erichmenge has quit [Client Quit]
mwjcomputing has quit [Quit: Leaving]
sandbags has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 252 seconds]
erichmenge has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
Mon_Ouie has quit [Read error: Connection reset by peer]
justinram has quit [Read error: Connection reset by peer]
justinram has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
rebelcan has quit [Quit: leaving]
rebelcan has joined #ruby-lang
kurko_ has quit [Read error: Connection reset by peer]
outoftime has quit [Ping timeout: 246 seconds]
shtirlic has joined #ruby-lang
outoftime has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
<agib> does anyone know if the fastthread gem is still relevant for Ruby 1.9.3?
solars has joined #ruby-lang
Kingy has joined #ruby-lang
chancancode has joined #ruby-lang
<apeiros_> agib: fastthread was incorporated into ruby back in 1.8.5, you only need it if you need a newer version that is in ruby already
bmaland has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
<agib> apeiros_: oh whoa, ok -- yeah it's in my Gemfile for some reason... can't remember why, but not sure if it really needs to be there
<agib> thank you!
<apeiros_> some ruby versions had broken fastthread
<apeiros_> there it was meaningful to still use the gem
afader has quit [Ping timeout: 276 seconds]
<agib> kk -- by any chance do you know about ruby 1.9.3-p0?
banisterfiend has joined #ruby-lang
<apeiros_> I don't, sorry.
<chancancode> Since class instance variables are basically global variables.. should I be locking a class method that does something like "def civar; @civar ||= sth_expensive; end"? (in a threaded environment)
<apeiros_> if you use 1.9.3, you should use the newest patchlevel, though
<chancancode> or are assignments guaranteed to be thread safe in ruby?
<agib> apeiros_: but I guess since no other gems of in my Gemfile depend on it, it's probably not necessary...
<apeiros_> chancancode: where do you have that misconception from that class ivars where almost like globals?
<apeiros_> they're nothing like globals.
<agib> apeiros_: good call
<apeiros_> agib: to my knowledge, 1.8.5 was the only one with a broken fastthread. but I might be mistaken.
<apeiros_> s/where almost/were almost/
<chancancode> apeiros_: well i guess that part is irrelevant and i didn't explain it well
<chancancode> but anyways
<chancancode> just wondering what's the worst that could happen if i don't lock a ||= assignment
<apeiros_> a resource is not responsible for making itself thread-safe
<agib> apeiros_: cool, I will test out my app without it and see. Thank you again for the help, really appreciate it
<apeiros_> the threading user is responsible to put correct locks around it
<apeiros_> (thread-safe datastructures would be the exception)
<chancancode> apeiros_: I guess I'll post the code somewhere to show you what I'm doing
<chancancode> maybe that would help
vlad_starkov has quit [Ping timeout: 260 seconds]
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nertzy2 has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
nertzy has joined #ruby-lang
<chancancode> It's a bit simplified but that's more or less what I am trying to do
<apeiros_> yeah, no point in making that thread-safe
<chancancode> I'm not super concerned about the data being loaded more than once.. (it's just a bit wasteful but it won't cause any damage) but i'm just wondering if this is going cause problems (corrupted memory) in threaded env
<apeiros_> you're messing up responsibility
<chancancode> cause i'm not sure if assignment is atomic in ruby
<apeiros_> that wouldn't matter, you do more than assignment there.
<apeiros_> anyway, again: no, putting thread safety in that piece of code would put the responsibility in the wrong place.
<chancancode> hm okay
anannie has joined #ruby-lang
rdavila has joined #ruby-lang
irleif has joined #ruby-lang
<chancancode> thanks btw
headius has quit [Quit: headius]
Kingy has quit [Read error: Connection reset by peer]
Kingy has joined #ruby-lang
Ryhnn has quit [Ping timeout: 244 seconds]
outoftime has quit [Read error: No route to host]
justinmcp has joined #ruby-lang
kylemcgill has joined #ruby-lang
workmad3 has quit [Ping timeout: 248 seconds]
justinram has quit [Read error: Connection reset by peer]
justinram has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby-lang
nignaztic has joined #ruby-lang
benanne has joined #ruby-lang
nazty has quit [Ping timeout: 260 seconds]
Xzyx987X has quit [Quit: Leaving]
nignaztic has quit [Read error: Connection reset by peer]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
<matti> ;]
Xzyx987X has joined #ruby-lang
blacktulip has quit [Ping timeout: 256 seconds]
blacktulip has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
Kingy has quit [Read error: Connection reset by peer]
Kingy has joined #ruby-lang
nazty has joined #ruby-lang
workmad3 has joined #ruby-lang
Xzyx987X has quit [Quit: Leaving]
justinmcp has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
justinmcp has joined #ruby-lang
outoftime has joined #ruby-lang
irleif has joined #ruby-lang
Xzyx987X has joined #ruby-lang
justinmcp has quit [Ping timeout: 260 seconds]
coryf has quit [Remote host closed the connection]
nitti_ has quit [Remote host closed the connection]
benanne has quit [Read error: Connection reset by peer]
Axsuul has joined #ruby-lang
benanne has joined #ruby-lang
anachronistic has left #ruby-lang [#ruby-lang]
FiXato|VPS is now known as FiXato
thinkdevcode has quit [Remote host closed the connection]
robotmay has quit [Read error: No route to host]
robotmay has joined #ruby-lang
benanne has quit [Quit: kbai]
robotmay has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
Guest15771 has quit [Quit: Guest15771]
kylemcgi_ has joined #ruby-lang
bluepojo has quit [Read error: Connection reset by peer]
keymone has quit [Ping timeout: 264 seconds]
voker57 has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
kylemcgill has quit [Ping timeout: 268 seconds]
voker57 has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
flebel has quit [Excess Flood]
keymone has joined #ruby-lang
flebel has joined #ruby-lang
gregmoreno has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
Carnage\ has quit []
Xzyx987X has quit [Quit: Leaving]
justinmcp has joined #ruby-lang
miah has quit [Read error: Operation timed out]
kurko_ has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
ddd has quit [Quit: Leaving.]
miah has joined #ruby-lang
mistym has quit [Remote host closed the connection]
SkyEye has joined #ruby-lang
SkyEye has quit [Client Quit]
gaveen has quit [Quit: Leaving]
__butch__ has quit [Quit: Leaving.]
nertzy has quit [Quit: This computer has gone to sleep]
wyhaines has joined #ruby-lang
<sn0wb1rd> @Paradox: That is awesome!
rhizmoe has quit [Quit: leaving]
rdavila has quit [Quit: rdavila]
mpan has quit [Read error: Connection reset by peer]
<tocki_> what does module_eval method do ?
<apeiros_> ri Module#module_eval
<apeiros_> type that in your shell (bash, tcsh, zsh, whatever)
mpan has joined #ruby-lang
<tocki_> apeiros_, what it does in class context ?
<apeiros_> class_eval == module_eval
<apeiros_> same thing
<tocki_> Class#module_eval ?
<apeiros_> Class inherits from Module, so still Module#module_eval
<tocki_> or Object#module_eval ?
<tocki_> ok.. that solves it :)
<tocki_> though.. what happens on invoking this method ?
<apeiros_> did you do `ri Module#module_eval` in your shell?
nitti has joined #ruby-lang
<tocki_> If class is also Module, and string is evaluated pretending that class is Module ?
<tocki_> > Nothing known about Module
bosie has quit [Read error: Operation timed out]
<apeiros_> install the docs then
<apeiros_> if you use rvm, then: rvm docs generate
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<tocki_> Evaluates the string or block in the context of mod. This can be used to add methods to a class. module_eval returns the result of evaluating its argument. (from practical guide to ruby)
<tocki_> generating.. there is notice about process taking *long* time
<apeiros_> on a halfway decent machines, "long time" = ~3min
<tocki_> done, same error msg
<apeiros_> o0
nitti has quit [Ping timeout: 240 seconds]
<tocki_> yep
<apeiros_> you did generate the docs for the same version for which you run ri now, right?
<tocki_> correct
<apeiros_> no idea why you're not getting docs with ri then.
<tocki_> i suppose so, but that wasn't my problem either
enebo has joined #ruby-lang
kurko_ has quit [Ping timeout: 244 seconds]
kurko_ has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
Xzyx987X has joined #ruby-lang
<freedrull> would there be a point to spinning up threads to process a bunch of database records, or would the mysql driver block anyway
mistym has quit [Remote host closed the connection]
xalei has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
Xzyx987X has quit [Quit: Leaving]
rebelcan has quit [Quit: leaving]
methods has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
SoAwesomeMan has joined #ruby-lang
kurko_ has joined #ruby-lang
Xzyx987X has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
Xzyx987X has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
cantonic_ has joined #ruby-lang
shtirlic_ has joined #ruby-lang
kurko_ has joined #ruby-lang
wnd^ has joined #ruby-lang
perryh has quit [Ping timeout: 264 seconds]
wnd has quit [Excess Flood]
shtirlic has quit [Ping timeout: 264 seconds]
darix has quit [Ping timeout: 264 seconds]
cantonic has quit [Ping timeout: 264 seconds]
grandy has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
grandy has joined #ruby-lang
ryanf has joined #ruby-lang
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
perryh has joined #ruby-lang
solars has quit [Ping timeout: 256 seconds]
methods has quit [Quit: Leaving.]
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
ddd has joined #ruby-lang
<zzak> freedrull: i thought mysql2 could do async stuff
AlHafoudh has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
banisterfiend has quit [Read error: Connection timed out]
lele has quit [Quit: Coyote finally caught me]
tbuehlmann has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
nitti has joined #ruby-lang
mistym has joined #ruby-lang
flebel has quit [Excess Flood]
seanstickle has joined #ruby-lang
lele has joined #ruby-lang
flebel has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
nitti has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
erichmenge has joined #ruby-lang
davidbalber|away is now known as davidbalbert