apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
baroquebobcat has quit [Quit: baroquebobcat]
ctp has quit [Ping timeout: 264 seconds]
toekutr has joined #ruby
benlieb has quit [Client Quit]
Honeycomb has quit [Quit: Leaving.]
mengu has quit [Read error: Connection reset by peer]
sirish has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
banseljaj is now known as imami|afk
Slivka has quit [Ping timeout: 245 seconds]
tcstar has quit [Remote host closed the connection]
punchfac_ has joined #ruby
verysoftoiletppr has quit []
dexec has quit [Ping timeout: 246 seconds]
zoonfafer has quit [Ping timeout: 245 seconds]
v0n has quit [Ping timeout: 276 seconds]
verysoftoiletppr has joined #ruby
punchfacechamp has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 248 seconds]
FenrirReturns has joined #ruby
nat_home has joined #ruby
duosrx has quit [Remote host closed the connection]
<chipotle_> havenwood: so what do you think?
punchfac_ has quit [Remote host closed the connection]
<havenwood> i've heard good things about the other two you mentioned, but haven't read them so impossible to say! probably all three are good
adamjleonard has joined #ruby
<pandawarrior1> is there a way to overide a class but only locally?
<pandawarrior1> like within the context of a particular class
<Xeago> pandawarrior1: you can redefine methods on an object
icole has quit [Remote host closed the connection]
<pandawarrior1> if i do that, will i be changing the behaviour of the class throughout my program?
punchfacechampio has joined #ruby
<Xeago> if you change a class-instance, no, if you change a class yes
<pandawarrior1> i only want the overiding to happen exclusivly within a class
<chipotle_> what ruby ide is recommended?
<Xeago> (classes are objects too)
<Xeago> chipotle_: none, use whatever you like
dnyy has quit [Read error: Operation timed out]
<Xeago> vim, emacs, textmate, sublimetext, and there are some others too that focus on ruby
punchfacechampio has quit [Client Quit]
<Xeago> but they are less popular
<banister`sleep> pandawarrior1: you want refinements
<banister`sleep> pandawarrior1: but they're only in ruby 2.0, and they're not fully fledged just yet :)
punchfacechampio has joined #ruby
jpcamara has joined #ruby
<banister`sleep> pandawarrior1: but i think they should work (even in their 2.0 form) for what u want
Gadgetoid has quit [Ping timeout: 252 seconds]
<pandawarrior1> banister`sleep: Xeago what if i created a new instance of, say, the string class and called it MyStringClass
wallerdev has joined #ruby
baroquebobcat has joined #ruby
<pandawarrior1> then i could change it
Gadgetoid has joined #ruby
<pandawarrior1> ?
SeanTAllen has quit [Ping timeout: 255 seconds]
<Xeago> yes
arya has joined #ruby
<banister`sleep> pandawarrior1: but you could just create normal strings and add singleton methods to them
<Xeago> not sure how you would do that tho
<banister`sleep> pandawarrior1: like this
<pandawarrior1> is there a rubyist way of doing so?
<banister`sleep> module MyExtraStringMethods
<Xeago> banister`sleep knows better
ahokaomaeha has quit [Ping timeout: 248 seconds]
<banister`sleep> def pig
<banister`sleep> "#{self} pig"
<banister`sleep> end
<banister`sleep> end
dexec has joined #ruby
<banister`sleep> my_string = "hello"
im0b has quit [Ping timeout: 276 seconds]
<banister`sleep> my_string.extend MyExtraStringMethods
<Xeago> yea, just include your stuff in a module, and include that module on every object instance you create?
PragCypher has quit [Quit: Leaving]
<bnagy> extend not include
joshman_ has quit [Quit: Computer has gone to sleep.]
spanx has quit [Ping timeout: 264 seconds]
dexec has quit [Client Quit]
<bnagy> much cleaner than screwing around inside a core class
<Xeago> by extending it you are including it in its programming interface..
<bnagy> but still probably fundamentally dodgy imho
<Xeago> different level of terminology
niklasb has quit [Ping timeout: 248 seconds]
<pandawarrior1> so:
<Xeago> you will be bursting method caches tho
juco has quit [Ping timeout: 240 seconds]
<Xeago> not sure if that is feasible
<pandawarrior1> MyString = String.new?
<bnagy> Xeago: it's not a semantic difference, they're both keywords and they do different things
bean has joined #ruby
punchfacechampio has quit [Client Quit]
marr has quit [Ping timeout: 264 seconds]
<banister`sleep> pandawarrior1: https://gist.github.com/ff42fbc72ef6ebd516e3
<Xeago> bnagy: they are equal when talking not just specific to ruby (I get most of my terminology from uml/java)
<Xeago> sorry if that upsets you :P trying to learn ruby :)
<pandawarrior1> banister`sleep: thanks, but I want to do this for the ruby String class
yshh has quit [Remote host closed the connection]
<bnagy> it doesn't upset me, I was just pointing out that you weren't right and that it wasn't 'the same thing'
<Xeago> bnagy: thanks for the correction tho, wasn't aware there was such a distinct difference
<banister`sleep> pandawarrior1: why? why not just do it for the specific strings u want to have this feature?
<pandawarrior1> but when I open up #puts it complains about private method called
punchfacechamp has joined #ruby
mikurubeam has joined #ruby
cisco has joined #ruby
<banister`sleep> pandawarrior1: try #display
<pandawarrior1> i could use :send but i'm not sure it that's a rubyist way
<banister`sleep> pandawarrior1: "hello".display
juco has joined #ruby
juco has quit [Changing host]
juco has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
<banister`sleep> pandawarrior1: a rubyist would need a much higher threshold before he'd consider monkeypatching the String class
<pandawarrior1> ummm
<banister`sleep> would have a*
d2dchat has joined #ruby
<bnagy> monkeypatching String is always wrong
<pandawarrior1> banister`sleep: i feel like i'm being a bit slow
<pandawarrior1> i'm just not sure how to implement what you are saying
<banister`sleep> pandawarrior1: what feature do you want to add to String ?
<pandawarrior1> and i think it's because i'm not understaing your explaintion
<pandawarrior1> i want to override the #p method
<banister`sleep> to do what
<pandawarrior1> so that it doesn't put "" on the screen
predator117 has joined #ruby
<banister`sleep> dafaq..
nat_home has quit [Quit: Leaving.]
oposomme has joined #ruby
<pandawarrior1> just the content of the thing without the "" at the begining and end
<bnagy> lol
<pandawarrior1> ...
<banister`sleep> pandawarrior1: then just use either: puts string or string.display
brum has joined #ruby
<banister`sleep> when you use 'p' you're seeing the inspect of the string, which includes quotes
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
tvw has quit []
<banister`sleep> pandawarrior1: also, 'p' is not part of the String class :)
chrishough has quit [Quit: chrishough]
punchfacechamp has quit [Remote host closed the connection]
arya_ has joined #ruby
punchfacechamp has joined #ruby
<pandawarrior1> interesting...
punchfacechamp has quit [Remote host closed the connection]
<pandawarrior1> .display is actually what i needed
Nisstyre-laptop has quit [Quit: Leaving]
<banister`sleep> k00
punchfacechamp has joined #ruby
<pandawarrior1> but in the ruby-doc page it doesn't mention it as a method available to String
jamesfung14 has quit [Ping timeout: 255 seconds]
mneorr has joined #ruby
<pandawarrior1> banister`sleep: cheers, you saved me hours of metamadness
<pandawarrior1> :)
bean__ has joined #ruby
<Xeago> banister`sleep: how long you living in nl already?
<Xeago> and how long you planning on?
<banister`sleep> Xeago: 5 months, im not sure....i'm kind of getting annoyed with everyone speaking dutch
punchfacechamp has quit [Client Quit]
<Xeago> what'd you expect?
bean has quit [Ping timeout: 264 seconds]
bean__ is now known as bean
<banister`sleep> English would be good ;) Dutch just sounds like english spoken by a four year old with a sore throat, anyway
MehLaptop has joined #ruby
Louth has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<banister`sleep> Xeago: agree? :P
arya has joined #ruby
<Xeago> yes, I do think the same about swedish
brum has quit [Ping timeout: 248 seconds]
<Xeago> but it is not a motivator for me to move away
<pandawarrior1> ahhh display is a method on Object! that's why it's not listed in the doc for String …..
<Xeago> why did you come to the nl anyways?
<Xeago> pandawarrior1: in 1.8.7 (yuck) Object.new.display errors..
<banister`sleep> Xeago: the weed
<banister`sleep> :D
cisco1 has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
<Xeago> honestly?
<Xeago> is it worth it?
<dorei> banister`sleep: u could move to denver xD
<banister`sleep> Xeago: well i have an EU passport, may as well use it :) Centered here i get to explore europe, too
<banister`sleep> remember i'm from new zealand
<Xeago> ah yea, forgot that for a sec
<banister`sleep> bottom of the world, nowhere else (apart from australia) anywhere near us
verysoftoiletppr has quit []
<banister`sleep> Xeago: but i do like it here, it's a cute country
<banister`sleep> very clean, and pretty
<banister`sleep> though it's a bit of a concrete/stone jungle
cisco has quit [Ping timeout: 240 seconds]
<banister`sleep> not much in the way of nature
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<Xeago> depends on where you live tho
theRoUS has joined #ruby
<banister`sleep> i guess it's all reclaimed land, pulled out of the swamp
<banister`sleep> so it's not too surprising
<Xeago> I overlook several fields when walking to the busstation
<Xeago> takes a bit long tho :\
<banister`sleep> Xeago: well most places i've been have been like that, amsterdam/leiden/delft/den haag/utrecht
<Xeago> also, there are no hills where you are :P
takeru has joined #ruby
<banister`sleep> masstrict
<Xeago> don't go to city's
hogeo has joined #ruby
<Xeago> go to little towns
<banister`sleep> like leidendorp?:P
<bnagy> there are hills in .nl?
<Xeago> too close to leiden
<banister`sleep> Xeago: oh i've been to texel
<banister`sleep> texel was cool
<Xeago> bnagy: tiny hills
<Xeago> big for dutch measures because the average height of a hill is low
niklasb has joined #ruby
cisco1 has quit [Client Quit]
<Xeago> only Limburg has some 'waves'
<banister`sleep> Xeago: scheiveniningienn is nice too
<Xeago> did you walk from the land to texel?
<Xeago> I did that once
<Xeago> so cool
<banister`sleep> no, i took the ferry
<Xeago> bah
<banister`sleep> and biked around the whole island
<Xeago> heh :)
karupanerura has quit [Excess Flood]
cisco has joined #ruby
oposomme has quit [Quit: Leaving...]
<banister`sleep> Xeago: btw, girls on okcupid are much nicer here than in nz ;)
postmodern has joined #ruby
<Xeago> what is okcupid?
etcetera has quit []
<banister`sleep> i've already got 2-3 im planning to meet, and they're significantly higher quality than the nz equivalents
carlyle has joined #ruby
<banister`sleep> Xeago: internet dating site
<Xeago> I like that it defaults to I'm female..
<banister`sleep> i dont think i said you were female
<banister`sleep> oh
cisco1 has joined #ruby
<banister`sleep> i didnt notice that
<Xeago> just catches my eyes lol
karupanerura has joined #ruby
cisco1 has quit [Client Quit]
<Xeago> also, when switching to gay, the female changes into a dude
<Xeago> but when selecting female and straight it doesn't change into a dude?
cisco has quit [Read error: Connection reset by peer]
etcetera has joined #ruby
icole has joined #ruby
<Xeago> so straight, gay and bi females always see the female logo
backjlack has quit [Remote host closed the connection]
<banister`sleep> Xeago: okcupid is a webapp written in c++
<Xeago> and only men get difference
<banister`sleep> it's pretty crazy
takeru has quit [Ping timeout: 248 seconds]
<banister`sleep> they pride themselves on that
<Xeago> let me know how the girls are tho!
<Xeago> currently doing fine with my gf tho...
<Louth> so, any QA devs out there looking for a job?
icole_ has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
jamesfung14 has joined #ruby
<banister`sleep> Louth: what does a QA dev do? write capybara tests?
SCommette has joined #ruby
chrishough has joined #ruby
chipotle_ has quit [Quit: cya]
<Louth> banister`sleep, i don't know, it's probably made up - i'm not part of the dev team ;)
<pandawarrior1> yup
<pandawarrior1> they create a framework
<Xeago> at videofyme, they studied code and hand tested it
<pandawarrior1> and write capybara/watir test
<Xeago> they were tarded..
piotr__ has quit [Ping timeout: 248 seconds]
yacks has joined #ruby
mikurubeam has quit [Ping timeout: 255 seconds]
Honeycomb has joined #ruby
icole has quit [Ping timeout: 260 seconds]
<pandawarrior1> nowadays they use cucumber/capybara for the most part
<Xeago> they caught some edgecases (also detected by integration tests that they wrote in the first place), but most of them were rubbish
duosrx has joined #ruby
nari has quit [Ping timeout: 240 seconds]
carlyle has quit [Ping timeout: 245 seconds]
nat_home has joined #ruby
<Louth> well, this is what we're looking for: http://www.di.fm/jobs#qa
jdunck has joined #ruby
<jdunck> nuby here - can someone familiar w/ python point me at a thing like its timeit module?
<jdunck> (or what do people use for micro-bencing?)
<Xeago> Benchmark
<Xeago> don't know the exact name or syntax, but that should help ddg-fu
xardas has quit [Ping timeout: 248 seconds]
<jdunck> thanks
elaptics is now known as elaptics`away
hakunin has quit [Remote host closed the connection]
tylersmith has quit [Quit: tylersmith]
duosrx has quit [Ping timeout: 246 seconds]
mephux has quit [Excess Flood]
<banister`sleep> Louth: "Salary is determined based on your qualifications and your location -- we pay market rates for your area, not for ours. If you are one of our ideal candidates, let’s talk about how to make this the perfect job for you."
<banister`sleep> sucks if you live in india
<Louth> haha
generalissimo has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
<Louth> our dev team is currently in America, England and Germany
<aedornm> That job is pretty much what I do now .. except add in embedded devices, system programming, networking, administration and IT. ... I should outsource half my job.
mephux has joined #ruby
<dorei> banister`sleep: sucks if you live in greece too
<banister`sleep> true
<dorei> altough ios dev jobs are still highly paid here
sdavis has quit [Quit: sdavis]
spider-mario has quit [Read error: Connection reset by peer]
mikurubeam has joined #ruby
mikurubeam has quit [Client Quit]
mikurubeam has joined #ruby
nari has joined #ruby
yshh has joined #ruby
<Mattix> wtf!?
<Mattix> @priorities = priorities.scan /([\w ]+?) +(.) +(.) +(.) +(.) +(.)/i <-- works
<Mattix> @priorities = priorities.scan / +([\w ]+?) +(.) +(.) +(.) +(.) +(.)/i <-- crashes
philcrissman has joined #ruby
<dorei> doesnt the first + need something to its left?
Cicloid has quit [Remote host closed the connection]
<dorei> o, it has, a whitespace
<Mattix> weird
<bnagy> Mattix: why on EARTH would you not just split on ' '?
_nitti has joined #ruby
<bnagy> man, regex abuse really winds me up :(
<Xeago> bnagy: I once had a senior developer resort to regex because he didn't know what a nbsp/hardspace was
<Xeago> the regex engine treated them the same..
<Mattix> because... a) split doesn't guarantee that it has exactly 5 sections and b) the first chunk can have spaces
<aedornm> Mattix: yeah, replace "/ +" with "/\s+"
brianpWins has joined #ruby
<Mattix> why is that?
<aedornm> alternatively
<bnagy> >> "a b c d e f g h".split(' ',5)
<eval-in> bnagy: Output: "" (http://eval.in/11317)
<Mattix> I know it works, I tried it before
<bnagy> stupid bot
<Mattix> but I can't see why / + doesn't
iamjarvo has joined #ruby
<aedornm> use parenthesis: @priorities = priorities.scan(/ +([\w ]+?) +(.) +(.) +(.) +(.) +(.)/i)
<Mattix> why on Earth is it required? :P
tomzx_mac has joined #ruby
<dorei> the space it tricks the parser probably
<aedornm> Division is funny that way.
<Mattix> I se
<Mattix> see
<aedornm> Basically the expression doesn't end
<Mattix> >> "foo bar 1 2 3 4 5".split ' '
<eval-in> Mattix: Output: "" (http://eval.in/11318)
<Mattix> bnagy, ^
toekutr has quit [Remote host closed the connection]
<Mattix> [1] pry(main)> "foo bar 1 2 3 4 5".split ' '
<Mattix> => ["foo", "bar", "1", "2", "3", "4", "5"]
hbpoison has joined #ruby
<_br_> Anyone have an idea how to pass a value into the configure method of a Sinatra::Base class ?
<banister`sleep> Louth: your website design is weird http://www.di.fm/
angusiguess has quit [Ping timeout: 244 seconds]
<Louth> banister`sleep, that's why we're hiring
<Mattix> I have to concat first two if I use split :P
<Mattix> which is uglier than using a regexp
<banister`sleep> margins are way too big ;)
<banister`sleep> IMO
<banister`sleep> esp the top margin
V8Energy has joined #ruby
<Louth> banister`sleep, it hasn't changed since 2003
<V8Energy> someone help please. how do i set read time out for Net::HTTP::DigestAuth
<banister`sleep> Louth: wow
_nitti has quit [Ping timeout: 248 seconds]
<dorei> louth: oldskool, like japanese forum sites :)
zehrizzatti has quit [Quit: Leaving...]
<banister`sleep> Louth: what version of rails are you running?
<brandon|work> V8Energy: you could put in a while loop, and count time
<Louth> banister`sleep, 3.1.10
<banister`sleep> Louth: hehe cool, i thought it could be <= 2.0 or something :)
nari has quit [Ping timeout: 240 seconds]
<Louth> banister`sleep, well the back end was redone about 12 months ago, front end is 10 years old :P
motto has quit [Quit: Sto andando via]
<banister`sleep> sweet
samphippen has quit [Quit: Computer has gone to sleep.]
<V8Energy> h.open_timeout = 0.1 doesn't seem to work
<V8Energy> i don't get any error
mootpointer has joined #ruby
<V8Energy> yet it doesn't timeout after 0.1 seconds
<dorei> V8Energy: how about using Timeout { }
<V8Energy> how would that work?
<dorei> V8Energy: you puts the code that read stuffs in the Timeout block, if it takes more, it'll be interrupted
LS\MFT has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Kuifje has quit [Ping timeout: 264 seconds]
<V8Energy> thanks
ph^ has joined #ruby
icole_ has quit [Remote host closed the connection]
casion has joined #ruby
Takehiro has joined #ruby
t-mart has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<V8Energy> i've tried status = Timeout::timeout(1) {
<V8Energy> which helped a little bit, but it wasn't a second
<V8Energy> it was more like 5-10 seconds
bigkevmcd has quit [Ping timeout: 264 seconds]
taoru has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
jjbohn has joined #ruby
<casion> I'd like to learn ruby and ruby on rails, are there any guides or tutorials that work from the ground up teaching ruby in context of rails?
gyre007 has joined #ruby
<casion> V8Energy: I've been looking through this, and it does not seem to be written for someone with no ruby experience
niklasb has quit [Ping timeout: 245 seconds]
newUser1234 has joined #ruby
Zta has quit [Quit: Leaving.]
splud has joined #ruby
<splud> very new to ruby here.
tehdekan has joined #ruby
<splud> need to parse a file with lines like: VARNAME=value
<havenwood> Have you gone through http://tryruby.org?
<splud> would like to make into an associative array.
banjara has quit [Quit: Leaving.]
zehrizzatti has joined #ruby
<splud> need to get something done quick - intend to learn more ruby later this year, but there's not time to dig into everything now.
<havenwood> Good list of resources for starting Ruby at: http://www.ruby-lang.org/en/documentation/
dopie has joined #ruby
<havenwood> splud: Stored in env vars?
<V8Energy> i don't understand why after setting the timeout like this: http://pastebin.com/ByNa6dsd it doesn't timeout after a second. any ideas?
zehrizzatti has quit [Client Quit]
taoru has quit [Remote host closed the connection]
banjara has joined #ruby
endzyme has joined #ruby
<casion> havenwood: thanks
adeponte has quit [Remote host closed the connection]
mneorr has joined #ruby
<splud> havenwood: no, it is /sys/..../uevent data.
<splud> but yea, they have the env var appearance.
<havenwood> splud: ah, gotcha
<dopie> Hello all, is there a method in which I can only allow the user to enter numbers????
<bnagy> splud: how are you getting it? a string?
otherj has joined #ruby
<splud> opening file and reading it.
<splud> Need to parse one file, get value and use that to create another filename to parse to get some values from.
<bnagy> without testing maybe Hash[*(s.each_line.map {|l| l.split '='})]
<bnagy> you could just put File.read(fn) instead of s there I suppose
adam12 has joined #ruby
<bnagy> but it's getting a bit busy at that point
<havenwood> dopie: What should happen if they enter non-numeric?
h4mz1d has joined #ruby
pskosinski has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
mpfundstein_ has quit [Read error: Connection reset by peer]
<dopie> havenwood: i want it to say no non-numerics allowed
mpfundstein__ has quit [Read error: Connection reset by peer]
<bnagy> splud: hm actually, again without testing, I bet that needs a flatten
tehdekan has quit [Quit: BitchX: use it, it makes you bulletproof]
edelpero has joined #ruby
mpfundstein has joined #ruby
mpfundstein_ has joined #ruby
<dopie> im assuming this is an if statement?
<bnagy> otherwise it should work if the data is a=b one entry per line
slashslashbaka has quit [Ping timeout: 245 seconds]
forced_request has joined #ruby
<splud> a=b one per line. l isn't an array though in your code, is it?
brum has joined #ruby
<bnagy> dopie: unless gets=~/^[0-9]*$/ ...
realDAB has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
<bnagy> splud: so, each_line processes the string line by line, then each line gets mapped into an array [a,b] by the split
Bosma has quit [Ping timeout: 260 seconds]
<bnagy> so at that point it will look like [[a,b],[b,c] ...
<bnagy> then Hash provides a [] method for slurping flat arrays with even numbers or elements or (I _think_) arrays of two-element arrays
<bnagy> splud: but try it all out in irb is best
ner0x has joined #ruby
alexim has quit [Quit: sleep]
mikepack has quit [Remote host closed the connection]
<V8Energy> Please someone explain to me why this method doesn't timeout after 1 second? http://pastebin.com/TX1ynSN2
<V8Energy> my bad, look here: http://pastebin.com/LDNa4Dyf
<splud> irb?
<V8Energy> no sir
banjara has quit [Quit: Leaving.]
horofox_ has quit [Quit: horofox_]
<V8Energy> running it using ruby
<V8Energy> it's on windows tho
<V8Energy> though*
brum has quit [Ping timeout: 248 seconds]
<dorei> V8Energy: try Timeout::timeout maybe
<V8Energy> trying
horofox_ has joined #ruby
<V8Energy> same problem.. it just hangs until the request times out
brum has joined #ruby
nari has joined #ruby
nat_home has quit [Quit: Leaving.]
JarJar has quit [Quit: This computer has gone to sleep]
bigkevmcd has joined #ruby
<havenwood> splud: updated gist to include example file, if it doesn't work paste a gist of the actually input file
<splud> crap, everything is working against me on this system.
<splud> chomp (in gist above) isn't available.
<havenwood> splud: Ruby version?
aaronm has left #ruby [#ruby]
ctp_ has quit [Quit: Linkinus - http://linkinus.com]
<splud> on my devhost 1.9.2 (soon to be 2.x) , but on the embedded system 1.8.7 or something
<edelpero> Hello there, I'm having some troubles to get pg gem running locally. I've already installed postgresql and libpq-dev as it says in various posts and I'm still getting this error http://bit.ly/15UEf7N . Can anyone help me please? by the way I'm running ubuntu 12.04
<havenwood> splud: how bout #strip there instead?
<V8Energy> dorei: http.rb:762:in `initialize': execution expired (Timeout::Error)
<bnagy> curely chomp has been around since the dawn of time
<bnagy> *surely
eka has quit [Quit: Computer has gone to sleep.]
<splud> doing something for an embedded platform, but not all tools are current - there's script differences between 1.8.7 and newer versions.
<havenwood> splud: you could swap out chomp for strip, or if that isn't available there are other options
<dorei> V8Energy: i've checked your code locally at my pc and it timesout perfectly
<V8Energy> Hmm... i wonder what's wrong
<V8Energy> Windows?
<V8Energy> I will try to upload it to linux box
<shevy> splud on what RUBY_VERSION do you try it and how do you try it
<dorei> i dont remember having problems using timeout in windows
bean has quit [Ping timeout: 240 seconds]
<V8Energy> I don't have to use rescue Timeout::Error for it to timeout properly, do i?
thorncp has left #ruby [#ruby]
<V8Energy> I am getting http.rb:762:in `initialize': execution expired (Timeout::Error) after about 15 seconds or so
jonahR has quit [Read error: Operation timed out]
<bnagy> 1.8.7 has String#chomp
<dorei> V8Energy: nop, it'll throw an exception whether u rescue it or not
<havenwood> splud: 1.8.7 does have chomp, but you can reimplement it if you're on some crazy Ruby.
<bnagy> I am prepared to bet String has had chomp since birth, it's a perlism
Xeago has quit [Remote host closed the connection]
<V8Energy> dorei: so then I need to rescue it? or is my code fine the way it is?
<havenwood> bnagy: I don't know of an MRI version that is missing it, but I haven't been around long.
<bnagy> in other words, that's not the problem
MehLaptop has quit [Remote host closed the connection]
bean has joined #ruby
hiroyuki has quit [Ping timeout: 248 seconds]
<bnagy> if it's erroring on chomp then most likely it's because you're invoking it on a not-String
macmartine has joined #ruby
<dorei> V8Energy: i dont know what you're looking to achive, the way it is now, when it timeouts, it sets the output to false, i dont know if that's what you're aiming at
nat_home has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<V8Energy> dorei: that's exactly what i am aiming for. but unfortunately it sets output to false only after 15+ seconds instead of 1
newUser1234 has joined #ruby
tar_ has joined #ruby
<dorei> V8Energy: let me paste you what i've checked here
newUser1_ has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
mibitzi has joined #ruby
mibitzi has quit [Client Quit]
<dorei> V8Energy: test it by setting something to listen at localhost port 9999, like nc -l 9999 and then run the ruby script
<dorei> u'll notice that it timeouts correctly
newUser1_ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
joeycarmello has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
Louth has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
<dorei> V8Energy: and i think that you should put the rescue after the timeout so as to rescue the timeout exception
newUser1234 has quit [Read error: No route to host]
mpfundstein_ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
<V8Energy> not having the rescue causes it not to timeout after 5 seconds?
<dorei> i dont think so
<dopie> o in a unless statement .... the false statement comes first and then the true statement comes 2nd?
Domon has joined #ruby
<V8Energy> it checks for a false condition
subbyyy has joined #ruby
mpfundstein has quit [Ping timeout: 264 seconds]
horofox_ has quit [Quit: horofox_]
pdamer has joined #ruby
MehLaptop has joined #ruby
mibitzi has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
nat_home has quit [Quit: Leaving.]
tish has quit [Quit: Leaving.]
nat_home has joined #ruby
<pandawarrior1> would it be a code smell if i had a singleton class with references to class variables in most methods?
<pandawarrior1> but no instance methods or instance variables listed anywhere
rking has quit [Quit: Rebooting weechat to see if it helps RAM situation]
bradhe has quit [Remote host closed the connection]
sirish has joined #ruby
chrishough has quit [Quit: chrishough]
bradhe has joined #ruby
rking has joined #ruby
brum has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 240 seconds]
angusiguess has joined #ruby
jjbohn is now known as jjbohn|afk
inao has joined #ruby
sirish has quit [Ping timeout: 255 seconds]
h4mz1d has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
forced_request has quit [Ping timeout: 240 seconds]
etcetera has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 256 seconds]
dmiller1 has quit [Ping timeout: 240 seconds]
Spooner has quit [Remote host closed the connection]
joeycarmello has joined #ruby
etcetera has joined #ruby
huoxito has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
mfridh has quit [Ping timeout: 256 seconds]
aleph-null has joined #ruby
spanx has joined #ruby
im0b has joined #ruby
kofno has quit [Remote host closed the connection]
SeanTAllen has joined #ruby
zeade1 has joined #ruby
nat_home has quit [Quit: Leaving.]
<splud> undefined method map for "foo=bar":String
<splud> have a string from a file. Want to make it a hash. Why is this so friggin' hellish?
nat_home has joined #ruby
zeade has quit [Ping timeout: 240 seconds]
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge, please contact an administrator]
freeayu has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
<havenwood> splud: Paste a gist of your code.
<havenwood> splud: "i'm a string".map; #NoMethodError
kofno has joined #ruby
tish has joined #ruby
<havenwood> splud: "i'm a string".split.map #=> #<Enumerator: ["i'm", "a", "string"]:map>
nomenkun has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
pandawarrior1 has quit [Quit: Leaving.]
Guest____ has joined #ruby
oposomme has joined #ruby
<splud> I might have it - if I can append a hash to another. how? += not valid here >> not either...
dnyy has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
jamesfung14 has quit [Quit: Leaving]
bradhe has joined #ruby
<havenwood> splud: #merge
dhruvasagar has quit [Ping timeout: 255 seconds]
mneorr has joined #ruby
jrendell_ has joined #ruby
<mootpointer> Hmmm… That raises an interesting question...
sandGorgon has joined #ruby
jrendell has quit [Ping timeout: 245 seconds]
jrendell_ is now known as jrendell
<splud> damn, I just LOVE this ORA Ruby book. merge isn't in the index.
<splud> lines = file.readlines.each.map{|l| l1,l2=l.split('='); {l1 => l2}}
h4mz1d has quit [Ping timeout: 276 seconds]
brum has joined #ruby
dhruvasagar has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
aleph-null has quit [Read error: Connection reset by peer]
Vert has quit [Ping timeout: 252 seconds]
douglarek is now known as douglarek_away
<splud> but it's pulling the = out and using it as a separate assignment I get the VARNAMEvalue(newline) = and nothing as the value when I print #{key} = {$value}
<splud> gawd, I want to be dealing with the data I need to parse. Could have done this in C or Perl, but the scripting in the web stuff is ruby...
jpfuentes2 has joined #ruby
Eerbin has quit [Ping timeout: 272 seconds]
kumavis has quit [Quit: kumavis]
q99 has quit [Quit: Computer has gone to sleep.]
rhinux has joined #ruby
zeade has joined #ruby
<bean> maybe you should gist your code
nOStahl has quit [Quit: Going To Sleep]
heliumsocket has joined #ruby
takeru_ has joined #ruby
zeade1 has quit [Ping timeout: 245 seconds]
oposomme has quit [Quit: Leaving...]
endzyme has quit [Remote host closed the connection]
zzing has joined #ruby
zzing has left #ruby [#ruby]
ephemerian has quit [Quit: Leaving.]
apok has quit [Quit: apok]
hbpoison has quit [Ping timeout: 264 seconds]
takeru_ has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
mneorr has quit [Remote host closed the connection]
jrendell has quit [Quit: jrendell]
dhruvasagar has joined #ruby
chrrz has joined #ruby
philcrissman has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
i_s has quit [Quit: i_s]
FenrirReturns has quit [Ping timeout: 245 seconds]
crackfu has joined #ruby
<splud> beh, if I use pp, I see the hash is in fact parsed properly...
crodas has quit [Ping timeout: 276 seconds]
Voodoofish430 has quit [Quit: Leaving.]
etcetera has quit []
sn0wb1rd has joined #ruby
mneorr has joined #ruby
meoblast001 has joined #ruby
mneorr has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
heliumsocket has quit [Remote host closed the connection]
inao_ has joined #ruby
jeffreybaird has joined #ruby
jeffreybaird has quit [Client Quit]
inao has quit [Ping timeout: 264 seconds]
atyz has joined #ruby
Honeycomb has quit [Quit: Leaving.]
arya has quit [Ping timeout: 248 seconds]
jsilver has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
nOStahl has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jrendell has joined #ruby
crodas has joined #ruby
locriani has quit [Remote host closed the connection]
atyz has quit [Ping timeout: 248 seconds]
arya has joined #ruby
locriani has joined #ruby
adamjleonard has quit [Quit: Leaving...]
Guest34862 is now known as ddd
casion has left #ruby [#ruby]
Hanmac1 has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
jamesfung14 has joined #ruby
chipotle_ has joined #ruby
i_s has joined #ruby
sandGorgon has quit [Read error: Connection reset by peer]
mootpointer has quit [Quit: Exit, pursued by a bear.]
alvaro_o has quit [Quit: Ex-Chat]
sandGorgon has joined #ruby
newUser1234 has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
philcrissman has joined #ruby
newUser1234 has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
Guest____ has quit [Quit: Textual IRC Client: www.textualapp.com]
__Big0__ has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
rupee has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
heliumsocket has joined #ruby
jamesfung14 has quit [Read error: Operation timed out]
becom33 has joined #ruby
jamesfung14 has joined #ruby
<becom33> anyone used libusb lib ?
newUser1234 has quit [Ping timeout: 255 seconds]
philcrissman_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
zyrex has joined #ruby
mengu has quit [Quit: Leaving]
jrendell has quit [Quit: jrendell]
ebobby has quit [Quit: leaving]
jrendell has joined #ruby
<splud> hehe becom33: I'm trying to parse some usb data from sysfs...
kumavis has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
<splud> not using libusb because this is on an embedded system and that lib isn't in the dev environ for cross compiling with...
philcrissman has quit [Ping timeout: 248 seconds]
<becom33> splud, I was wondering is it possible to make a keyboard emulator trough libusb
<bnagy> splud: turn it into a big array first, then slurp it all into a hash afterwards
<becom33> I wanna send keystrokes trough USB to a another computer
chrrz has quit [Ping timeout: 240 seconds]
arya has joined #ruby
<splud> what I'm noticing is that my hash appears to be a one element array with a hash in it...
zodiak has quit [Ping timeout: 246 seconds]
newUser1234 has joined #ruby
<bnagy> splud: try file.readlines.map {|l| l.split('=') for a start
<splud> [{"key"=>"val"}{"key"=>"val"}]
<bnagy> that will give you an array
heliumsocket has quit [Ping timeout: 245 seconds]
<bnagy> then Hash[*ary.flatten] bang done
<splud> your suggestion gets me precisely one element.
<bnagy> ?
<bnagy> pastie your input :)
nat_home has quit [Read error: No route to host]
<becom33> gem installation error http://pastebin.com/MQvDsrzC
<bnagy> becom33: I would be amazed if that works
<becom33> why ?
<bnagy> linusb is for reading from usb, not for pretending to be a keyboard
<bnagy> *libusb
<becom33> no no
<becom33> even I can't install a gem
<becom33> yea I got that
<becom33> just thinking googling how can I do that
jrajav has joined #ruby
jpfuentes2 has joined #ruby
tommyvyo has quit [Quit:]
<becom33> bnagy, any idea ?
krz has joined #ruby
<bnagy> Hash[*s.each_line.map {|l| l.split('=')}.flatten]
<bnagy> => {"DEVTYPE"=>"wlan\n", "PHYSDEVPATH"=>"/devices/platform/musb_hdrc/usb1/1-1/1-1.2/1-1.2:1.0\n", ...
<bnagy> becom33: pretend to be a keyboard?
ner0x has quit [Quit: Leaving]
<bnagy> google GoodFET by travis goodspeed
<splud> got it now. thanks becom33.
<bnagy> but it's nontrivial
jonahR has joined #ruby
<splud> what country/region are you in?
<becom33> well I what I need is to fake a keyboard and send the keystrokes trough a USB to a another device
edelpero has quit [Quit: Ex-Chat]
Takehiro has quit [Remote host closed the connection]
<bnagy> yeah... oh, also I think there are some projects that do that with a usb key
<splud> thanks bnagy
tommyvyo has joined #ruby
<splud> er, had wrong b....
<bnagy> splud: should be easy to modify if you want to chomp your lines, as well
heliumsocket has joined #ruby
<havenwood> splud: Two other ways to do it: https://gist.github.com/havenwood/5061744
<bnagy> becom33: the issue is that a computer won't answer all the host controller questions etc
zyrex has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
<havenwood> splud: The former better for larger files, the latter simpler for small.
<bnagy> havenwood: ha. Yeah I always use * so I get stuck having to flatten, for some reason I never use the array of array of pairs :/
<Nom-> Anyone know if there's packaged versions of Ruby for installation onto Debian based machines? I'm chasing 1.9.3.anything that I can load onto a Ubuntu 10.04 server to run a production app, and it doesn't have external 'net access
rocket has joined #ruby
<bnagy> Nom-: get get the tgz and ./configure make && make install
<bnagy> *just get
<bnagy> man my fingers hate me today
<Nom-> I don't want to stomp over the version already installed though... I was hoping to do it under rvm or rbenv
<bnagy> rbenv supports that just fine
<bnagy> just don't make install
<havenwood> Nom-: Since you want to use RVM or rbenv, I think you should use chruby! https://github.com/postmodern/chruby
<bnagy> chruby I would imagine works as well
zodiak has joined #ruby
jamesfung14 has quit [Ping timeout: 244 seconds]
<havenwood> Nom-: Really though, chruby is worth a look. As simple as can be and just works.
<bnagy> but doing an offline install of either of those is probably annoying anyway. You can just use update-alternatives, if you like
nomenkun has quit [Ping timeout: 248 seconds]
<havenwood> bnagy: Oh yeah, I always forget about update-alternatives
<Nom-> mmm
<postmodern> yeah if you need to change the global ruby, update-alternatives works
<postmodern> and don't mind using sudo
<Nom-> Yeah, I'm not sure whether it's safe to update the global ruby is all i'm worried about
<bnagy> how easy is it to install chruby offline, postmodern?
Quebert has quit [Ping timeout: 260 seconds]
<Nom-> oh wait ruby isn't even installed by default lol
<bnagy> Nom-: totally safe, no system stuff uses ruby it's all perl
<Nom-> I'll just get standard 1.9.3 gems
<Nom-> Yeah, I keep forgetting Ubuntu is all Python
<postmodern> bnagy, provided you have the .tar.gz, just make install
<bnagy> postmodern: I promise I'll look at it one day if rbenv stops meeting my minimal needs :)
<Nom-> Looks like there's packages for Ruby 1.9.3 on packages.debian.org so I should be good now :P
tylersmith has quit [Quit: tylersmith]
<bnagy> oh, I thought you weren't internet connected?
<bnagy> I guess you could get them, transfer them and then install em with dpkg or something but that sounds like way more work
dhruvasagar has quit [Read error: Connection reset by peer]
<bnagy> also I fucking hate debian ruby packages
Retistic has quit [Quit: Retistic]
<Nom-> Yeah, we have an internal .deb repo
<Nom-> I can built it on a development machine, upload to repo and the install via apt-get
<Nom-> I just can't do things like wget direct from various sources because production only has internal network access
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
baroquebobcat has joined #ruby
delqn has joined #ruby
<bnagy> imvho internal package repos are a little bit more of a security worry
dhruvasagar has joined #ruby
<bnagy> but still way better than giving your prod machines internet access
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
halida_ has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<halida_> So any great feature in ruby2.0?
feedbackloop has joined #ruby
carlyle_ has joined #ruby
<bnagy> it has infinitely more '2's in the name
twoism has quit [Remote host closed the connection]
jrendell has quit [Quit: jrendell]
<halida_> OK then..
NiteRain has quit [Ping timeout: 246 seconds]
<Nom-> Worth putting falcon patches onto thos build you reckon? I've never used them before, but heard good things..
<bnagy> falcon whatnow?
<halida_> When I use rails console under ruby2.0, it cost me 5 seconds to open, under 1.9.3 it cost me 25 seconds, maybe a big inpact.
philcrissman has joined #ruby
mneorr has joined #ruby
<halida_> And memory usage changed from 150M to 135M(1.9.3 to 2.0.0p0)
<splud> one more fix...
<splud> how to strip the newlines from readlines in the hash generation?
<Nom-> falcon patch is a set of performance patches as far as i can tell
<Nom-> memory management amongst other things
<splud> (without having to iterate the array again)
<bnagy> splud: Hash[s.each_line.map {|l| l.chomp}.map {|l| l.split('=')}] for example
<Nom-> No reason you can't do both ops in one map either
chendo_ has joined #ruby
halida_ is now known as linjunhalida
<bnagy> yeah that was horrible :)
chipotle_ has quit [Quit: cya]
<bnagy> should map after the split. Normally I would write Hash[s.each_line.map {|l| l.split('=').map(&:chomp)}]
Bosma has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<splud> bnagy: that works, but Nom - how would you merge them into one? l.chomp ; l.split ... does't do it.
<bnagy> but it has to run on 1.8 and I don't think they have that syntax
hemanth has joined #ruby
<Nom-> l.chomp.split('=')
<splud> yea, great, I'm testing this on my dev box...
mneorr has quit [Remote host closed the connection]
<bnagy> yeah or that. %(
meoblast001 has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
pdamer has quit [Quit: pdamer]
meoblast001 has joined #ruby
drkpyn has joined #ruby
<splud> the or that works there.
<splud> thanks.
shadowshell has quit [Remote host closed the connection]
atyz has joined #ruby
carlyle_ has quit [Remote host closed the connection]
VonKingsley has joined #ruby
tar_ has quit [Quit: farewell]
drkpyn has left #ruby [#ruby]
krz has quit [Ping timeout: 255 seconds]
justsee has quit [Ping timeout: 245 seconds]
freakazoid0223 has joined #ruby
dorei has quit []
Dreamer3 has quit [Quit: Leaving...]
tomzx_mac_ has joined #ruby
pdamer has joined #ruby
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
atyz has quit [Ping timeout: 264 seconds]
Dreamer3 has joined #ruby
tomzx_mac has quit [Ping timeout: 276 seconds]
i_s has quit [Quit: i_s]
newUser1234 has quit [Ping timeout: 244 seconds]
Dreamer3 has quit [Client Quit]
fire has joined #ruby
gtc has joined #ruby
Dreamer3 has joined #ruby
toekutr has joined #ruby
krz has joined #ruby
MehLaptop has quit [Remote host closed the connection]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
Takehiro has joined #ruby
__Big0__ has quit [Remote host closed the connection]
joofsh has joined #ruby
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
gtc has quit [Quit: kill -9 gtc]
Takehiro has quit [Remote host closed the connection]
divout has joined #ruby
xemu has quit [Ping timeout: 245 seconds]
squidBits has quit [Quit: squidBits]
carlyle has joined #ruby
momomomomo has joined #ruby
Takehiro has joined #ruby
momomomomo has quit [Remote host closed the connection]
macq has quit [Ping timeout: 264 seconds]
macq has joined #ruby
love_color_text has quit [Remote host closed the connection]
gyre007 has joined #ruby
love_color_text has joined #ruby
bubblehead has quit [Remote host closed the connection]
zodiak has quit [Ping timeout: 245 seconds]
mibitzi has quit [Quit: Leaving]
love_color_text has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
zodiak has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
gyre007 has quit [Ping timeout: 248 seconds]
radic has joined #ruby
johnjohn101 has joined #ruby
mootpointer has joined #ruby
pdamer has quit [Quit: pdamer]
love_color_text has quit [Ping timeout: 264 seconds]
<johnjohn101> have not done ruby in quite some time. is there a way to run on windows and query sql server?
radic_ has quit [Ping timeout: 272 seconds]
stopbit has quit [Quit: Leaving]
IrishGringo has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: yawn]
r0bgleeson has quit [Ping timeout: 264 seconds]
Honeycomb has joined #ruby
<aytch> johnjohn101: ms-sql or mysql?
<johnjohn101> microsoft sql server
jrajav has quit [Quit: I tend to be neutral about apples]
rippa has joined #ruby
<johnjohn101> wanted to start with 2.0 on windows if at all possible
<aytch> It looks like there are ways to do it, but why not just run mysql on Windows?
<johnjohn101> client db is ms-sql for now.
<aytch> seems like it has some advice
scruple has joined #ruby
keyvan has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
<johnjohn101> aytch: tx, i'll check it out.
takeru_ has joined #ruby
<johnjohn101> how do you like ruby 2.0?
<aytch> I'm honestly not experienced enough to have an opinion
<aytch> all my scripts and amateur hacks that I've tested so far work...so I'd say it's great
splud has quit [Quit: splud]
<johnjohn101> last time i messed with ruby was ironruby 1.0.3 way back when
Ontolog has quit [Remote host closed the connection]
<johnjohn101> looks like almost 2 years ago
gwillickers has joined #ruby
gwillickers has quit [Client Quit]
<aytch> it's probably come a long way. Ruby development seems...really, really fast compared to most languages.
punchfacechampio has joined #ruby
takeru_ has quit [Ping timeout: 255 seconds]
johnjohn101 has quit [Quit: Leaving.]
gwillickers has joined #ruby
ocnam has joined #ruby
punchfacechampio has quit [Client Quit]
punchfacechampio has joined #ruby
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Rick has joined #ruby
tommyvyo has joined #ruby
Rick is now known as Guest88136
splud has joined #ruby
generalissimo has quit [Read error: Connection reset by peer]
generalissimo has joined #ruby
hadees has quit [Quit: hadees]
arya has joined #ruby
NiteRain has joined #ruby
dallasm has joined #ruby
<splud> bnagy: where are you located? Any chance you're in the San Francisco area?
dhruvasagar has quit [Ping timeout: 256 seconds]
<splud> I'd like to buy you a brew sometime.
chimkan_ has joined #ruby
otherj has quit []
tommyvyo has quit [Quit:]
huoxito has quit [Quit: Leaving]
hadees has joined #ruby
paulchandler has joined #ruby
decoponio has joined #ruby
ner0x has joined #ruby
paulchandler has quit [Quit: leaving]
carlyle has quit [Remote host closed the connection]
macmartine has joined #ruby
girija has joined #ruby
lancepantz_ is now known as lancepantz
havenwood has quit [Remote host closed the connection]
neurotech has joined #ruby
freakazoid0223 has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
mneorr has joined #ruby
lancepantz is now known as lancepantz_
<neurotech> How can I get ruby to read an environment variable that I've set via zsh?
codezombie has joined #ruby
<neurotech> e.g. Is this correct: password = ENV['PASSWORD']
philcrissman has quit [Remote host closed the connection]
chimkan_ has quit [Quit: chimkan_]
chimkan has joined #ruby
hakunin has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Quit:]
mibitzi has joined #ruby
MrZYX is now known as MrZYX|off
Dreamer3 has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby
divout has quit [Ping timeout: 255 seconds]
joofsh has quit [Remote host closed the connection]
endzyme has joined #ruby
neurotech has quit [Remote host closed the connection]
Dreamer3 has quit [Client Quit]
Dreamer3 has joined #ruby
hashmal has joined #ruby
gwillickers has quit [Quit: leaving]
Voting has quit [Ping timeout: 276 seconds]
ananthakumaran has joined #ruby
divout has joined #ruby
love_color_text has joined #ruby
sn0wb1rd has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
ananthakumaran has quit [Client Quit]
linjunhalida has quit [Quit: linjunhalida]
dankest has quit [Quit: Leaving...]
tomzx_mac has joined #ruby
Guest88136 has quit [Quit: Leaving...]
sirish has joined #ruby
chimkan has quit [Quit: chimkan]
tomzx_mac_ has quit [Ping timeout: 248 seconds]
<bnagy> splud: I seldom get to the US, sorry :) Right now I'm in Australia, but I "live" in random different countries
<bnagy> but it was Nom-'s code that was correct, anyhow ;)
jonahR has quit [Quit: jonahR]
Mattix has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
io_syl has joined #ruby
flagg0205 has joined #ruby
Adys_ has joined #ruby
lancepan- has joined #ruby
love_color_text has quit [Remote host closed the connection]
lancepan- is now known as lancepantz
bradhe_ has joined #ruby
jaimef_ has joined #ruby
virtuose has quit [Ping timeout: 276 seconds]
lancepantz_ has quit [Ping timeout: 248 seconds]
generali_ has joined #ruby
Emplitz has joined #ruby
psyprus has quit [Ping timeout: 248 seconds]
SeanTAllen has quit [Ping timeout: 248 seconds]
flagg0204 has quit [Ping timeout: 248 seconds]
brum has quit [Ping timeout: 248 seconds]
perun_ has quit [Ping timeout: 248 seconds]
ner0x has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 248 seconds]
undersc0re97 has quit [Ping timeout: 248 seconds]
psyprus has joined #ruby
ner0x has joined #ruby
Adys has quit [Ping timeout: 248 seconds]
dnyy has quit [Ping timeout: 248 seconds]
generalissimo has quit [Ping timeout: 248 seconds]
jaimef has quit [Ping timeout: 248 seconds]
heliumsocket has quit [Quit: heliumsocket]
krz has quit [Quit: krz]
sn0wb1rd has joined #ruby
dankest has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
Pandaen has quit [Remote host closed the connection]
nachtwandler has joined #ruby
perun__ has joined #ruby
Pandaen has joined #ruby
nOStahl has quit [Quit: Going To Sleep]
chrishough has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
<codezombie> Was looking for a way to get a list of hash key/value pairs based on an array of keys. Found an accepted answer on SO, however it doesn't appear to work. https://gist.github.com/gitt/5062669 Can anyone tell me why that doesn't work?
<Tricon> codezombie: What's your expected result?
<codezombie> Tricon: ideally, a new hash with only the allowed keys and their values.
baroquebobcat has quit [Quit: baroquebobcat]
iamjarvo has quit [Quit: Leaving.]
blahwoop has quit [Ping timeout: 255 seconds]
linjunhalida has joined #ruby
<codezombie> inject is something I don't use very often. I suppose I could be looking at this all wrong.
<Tricon> Inject is gonig to run that method an each value.
zeade has quit [Quit: Leaving.]
<splud> nom provided the last bit to streamline the op, but it was the overall help. I musta blown about 2 hours dealing with that aggravating hash.
thinkclay has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
elico has joined #ruby
sandGorgon has quit [Ping timeout: 264 seconds]
duosrx has joined #ruby
sandGorgon has joined #ruby
M- has joined #ruby
<Tricon> codezombie...
<Tricon> You want puts params.values_at(*ALLOWED_KEYS)
sandGorgon has quit [Max SendQ exceeded]
<codezombie> Tricon: yeah, I gave that a try, however it drops the keys.
<Tricon> BRB.
Tricon has quit [Quit: Leaving...]
dankest has quit [Quit: Leaving...]
sandGorgon has joined #ruby
duosrx has quit [Ping timeout: 245 seconds]
miso1337 has joined #ruby
<codezombie> This does what I want: ALLOWED_KEYS.inject({}) { |k,v| k[v] = params[v]; k }
brum has joined #ruby
ner0x has quit [Quit: Leaving]
nOStahl has joined #ruby
mfcabrera has joined #ruby
nOStahl has quit [Client Quit]
a_a_g has joined #ruby
M- has quit [Quit: This computer has gone to sleep]
Tricon has joined #ruby
M- has joined #ruby
brum has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
Artheist has joined #ruby
<Tricon> Ah, new hash. Forgot that part.
<Nom-> You could also do params.reject {|k,v| <some check here>}
<Nom-> To wittle out params you don't want
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
M- has quit [Client Quit]
fir_ed has quit [Ping timeout: 264 seconds]
noop has joined #ruby
Voting has joined #ruby
<Tricon> Yeah. Reject would word.
<Tricon> *work
<Tricon> Or...
<Tricon> Map or some other options.
<Tricon> But I'd use reject.
<Tricon> Or select.
<Tricon> If you need this a lot, you could make a Hash extension.
brianpWins has joined #ruby
baroquebobcat has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
linjunhalida has quit [Quit: linjunhalida]
<Nom-> Ruby has lots of awesome functions for doings lots of awesome things. You just need to read the doco to know they exist sometimes :)
Pandaen has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Client Quit]
cableray has joined #ruby
SCommette has quit [Quit: SCommette]
jjbohn|afk has quit [Quit: Leaving...]
kumavis has quit [Quit: kumavis]
Mil has joined #ruby
JohnBat26|2 has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
JohnBat26 has joined #ruby
kumavis has joined #ruby
inao_ has quit [Quit: Leaving...]
iamjarvo has quit [Quit: Leaving.]
twoism has joined #ruby
cableray has quit [Quit: See you 'round like a donut.]
JohnBat26|2 has quit [Ping timeout: 255 seconds]
<codezombie> Tricon: I figured out what I needed.
<codezombie> ah, nvm
<codezombie> I see that you saw
cableray has joined #ruby
Mon_Ouie has joined #ruby
v0n has joined #ruby
dmiller1 has joined #ruby
kirotan has quit [Read error: Operation timed out]
endzyme has quit [Remote host closed the connection]
<Tricon> codezombie: Glad you got it.
ZT has joined #ruby
kirotan has joined #ruby
Mil is now known as milp
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JohnBat26|2 has joined #ruby
havenwood has joined #ruby
HecAtic has quit [Quit: HecAtic]
IrishGringo has joined #ruby
becom33 has quit [Ping timeout: 244 seconds]
takeru_ has joined #ruby
tjbiddle has joined #ruby
twoism has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
etcetera has joined #ruby
fire has quit [Quit: WeeChat 0.4.0]
mootpointer has quit [Quit: Computer has gone to sleep.]
bean has quit [Quit: Computer has gone to sleep.]
tjbiddle has quit [Client Quit]
neurotech has joined #ruby
takeru_ has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
lewix has quit [Remote host closed the connection]
dmiller1 has quit [Read error: Connection reset by peer]
arya has joined #ruby
carraroj has joined #ruby
dmiller1 has joined #ruby
luckyruby has quit [Remote host closed the connection]
tjbiddle has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
virtuose has joined #ruby
tjbiddle has quit [Client Quit]
apeiros_ has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
meoblast001 has quit [Read error: Connection reset by peer]
fire has joined #ruby
codecop has joined #ruby
neurone-1337 has quit [Ping timeout: 255 seconds]
t-mart has joined #ruby
__Big0__ has joined #ruby
nachtwandler has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
codecop has quit [Client Quit]
averiso has joined #ruby
v0n has quit [Ping timeout: 244 seconds]
icole has joined #ruby
codecop has joined #ruby
chopmo has joined #ruby
tjbiddle has joined #ruby
ananthakumaran1 has joined #ruby
mahmoudimus has joined #ruby
neurone-1337 has joined #ruby
dhruvasagar has joined #ruby
mneorr has quit [Read error: Connection timed out]
ananthakumaran has quit [Ping timeout: 240 seconds]
rippa has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
brum has joined #ruby
Zespre has quit [Quit: leaving]
subbyyy has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby
angusiguess has joined #ruby
averiso has quit [Ping timeout: 276 seconds]
atyz has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
dmiller1 has quit [Ping timeout: 264 seconds]
<becom33> I'm having a issue installing a gem file http://pastebin.com/9S10qSDy
brum has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
<becom33> help ?
<havenwood> becom33: OS/distro?
chopmo has quit [Remote host closed the connection]
carlzulauf has quit [Ping timeout: 246 seconds]
zmike123 has joined #ruby
<becom33> ubuntu 12.10
generali_ has quit [Remote host closed the connection]
zmike123 has quit [Read error: Connection reset by peer]
<havenwood> becom33: Might check that you have build dependencies installed?: https://github.com/postmodern/chruby/wiki/MRI
<dmonjo> fastest way to convert "hello" to array?
<havenwood> dmonjo: "hello".to_a
<havenwood> #=> ["hello"]
<dmonjo> cool
etcetera has quit []
<havenwood> actually, i lie
<havenwood> Array("hello")
<dmonjo> no such method to_a
<dmonjo> "hello".to_a
<dallasm> i used splat
<dallasm> hello = *"hello"
<havenwood> dmonjo: yeah, fail on my part
<Hanmac> becom33 ribusb looks not to be compatible with your ruby version
mercwithamouth has joined #ruby
averiso has joined #ruby
tjbiddle_ has joined #ruby
atyz has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
<dmonjo> so?
charles_manson_4 has joined #ruby
charles_manson_4 has quit [Client Quit]
<lewix> I/join #rubymotion
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
<dmonjo> print (my_array.reject { |x| x == 'P' })
<dmonjo> doesnt work
Zta has joined #ruby
brianpWins has quit [Quit: brianpWins]
<dmonjo> also Array("string") is wrong
<dallasm> so?
<becom33> Hanmac, Im running ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
carlzulauf has joined #ruby
<Hanmac> becom33 yeah ... ribusb looks after an 1.8 gem ... 1.8.7 or maybe older 1.8.6 ...
mneorr has quit [Read error: Connection timed out]
<Hanmac> it is NOT compatible with the 1.9 C-API .. that why the compile does fail
browndawg has joined #ruby
<dmonjo> string hello to array holw can i do it the fastest way
tagrudev has joined #ruby
mneorr has joined #ruby
<dallasm> dmonjo: havenwood and i both gave you working examples. his and my example work on ruby versions from 1.8.5 -> 1.9.3
Mon_Ouie has quit [Ping timeout: 248 seconds]
BoomerBile has joined #ruby
<Hanmac> dmonjo Array("string") is not wrong
<BoomerBile> anyone here familiar with net/smtp.rb ?
<lewix> to_a is deprecated?
atyz has joined #ruby
grzywacz has joined #ruby
<dallasm> lewix: must be, it don't work on 1.9.3
Villadelfia has quit [Read error: Connection reset by peer]
SeySayux has quit [Read error: Connection reset by peer]
<lewix> dallasm: apparently
chussenot has joined #ruby
<lewix> what's the reason behind that hmm
<BoomerBile> i've written a small script that sends an email i was using msg= <<END_OF_MESSAGE From: To: Subject: END_OF_MESSAGE but the way i'm using ruby does not allow me to do this so I changed it to msg="From: To: Subject:" the emails are being sent but they aren't going to the right place
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<dallasm> lewix: <%= reason %> ?
neurone-1337 has quit [Ping timeout: 276 seconds]
<Hanmac> because String it is not an Enumerable anymore, because its ambigous
<lewix> Hanmac: so it's only deprecated for the string class?
postmodern has quit [Ping timeout: 248 seconds]
<Hanmac> dallasm look at: each_line, each_char, each_byte, each_codepoint
<dmonjo> my_array = Array("hello") does not return an array
<dallasm> i was just joking around, your explanation makes sense
<Hanmac> dmonjo: it does! what does it for you???
<dmonjo> retuns hello in array[0]
<dallasm> dominikh: what version of ruby are you using?
__Big0__ has quit [Remote host closed the connection]
neurone-1337 has joined #ruby
<dmonjo> running 1.9.3
<dallasm> so what you want is an array of each string char?
<dallasm> that's different than just type conversion
<dmonjo> yes
<Hanmac> dmonjo: you need to be specific if you want: ["hello"] or ["h,"e","l","l","o"]
<dmonjo> ok
<dmonjo> the later one
<Hanmac> dmonjo: look at the each_char and chars method
Villadelfia has joined #ruby
<dmonjo> i want "hello" to go h,e,l,o,o each char in an array element
SeySayux has joined #ruby
<Hanmac> >> p "hello".chars.to_a
<eval-in> Hanmac: Output: "[\"h\", \"e\", \"l\", \"l\", \"o\"]\n" (http://eval.in/11325)
<dmonjo> "hello".each_char_index { |x| array[index] = x }
icole has quit [Remote host closed the connection]
SeanTAllen has joined #ruby
jetblack has quit [Ping timeout: 244 seconds]
<thinkclay> what is this exactly? def foo=(param) is that like a variable function or a static method?
<thinkclay> the = sign is what i dont get
<Hanmac> why ? why do you use _index ? i dont have told you that??
Jeaye has quit [Quit: zzzZZZzzzzz]
<Hanmac> thinkclay: its a setter method
<Hanmac> = is part of the method name
<thinkclay> Hanmac, ahh cool so like the other is_a? and toupper! its just there to be more readable?!
<Hanmac> yeah an method can have one of the ? ! = at the end
tjbiddle has quit [Ping timeout: 255 seconds]
fhd has left #ruby [#ruby]
dmiller1 has joined #ruby
<thinkclay> awesome. Friggin love ruby more and more every day
averiso has quit [Ping timeout: 244 seconds]
fire has quit [Ping timeout: 248 seconds]
jetblack has joined #ruby
averiso has joined #ruby
francisfish has joined #ruby
miso1337 has quit [Ping timeout: 246 seconds]
<dmonjo> print my_array1.reject { |x| x == 'P' }.to_s
joeycarmello has quit [Remote host closed the connection]
<dmonjo> i wnt to now map that array back into a string
<dmonjo> .to_s is wrong i think
<Hanmac> .join
<dmonjo> ok
<dallasm> yes, print is like p on arrays
dnyy has joined #ruby
dallasm has quit []
dmonjo has quit [Remote host closed the connection]
dmiller1 has quit [Ping timeout: 246 seconds]
<lewix> what's the difference between to_ary and to_a
apeiros_ has joined #ruby
<Tricon> lewix: What's it being called on?
jetblack has quit [Ping timeout: 255 seconds]
jetblack has joined #ruby
mneorr has quit [Read error: Connection timed out]
<lewix> Tricon: anything. Just asking out of curiosity
mneorr has joined #ruby
<lewix> I understand that Array(foo) calls to_ary first then to_a if the former didn't work?
<Tricon> Usually the same, but on an Array, to_ary will return itself while, if to_a is called on a subclass of Array, will convert the subclass to an array.
postmodern has joined #ruby
zmike123 has joined #ruby
<codezombie> is it possible to have a tempfile stick around long enough for send_file? It keeps getting garbage collected before send_file can do it's thing.
VonKingsley has quit [Quit: VonKingsley]
<Tricon> codezombie: Are you closing the handler early?
jrendell has joined #ruby
<codezombie> Tricon: I've got a sinatra app, that calls my image processor class. This class uses minimagick to manipulate the file, and then shoot it back to the user. All I'm doing on my end is pass the image to minimagick, and then pass the returned path to send_file. I'm not explicitly closing anything.
miso1337 has joined #ruby
<codezombie> Tricon: this is what I'm doing: https://gist.github.com/gitt/5062570
Bry8Star has quit [Ping timeout: 276 seconds]
<codezombie> did a quick update to the gist
<codezombie> I did try explicitly creating a Tempfile, via Tempfile.new, however I had the same result that minimagick gave me. The file gets garbage collected.
<Tricon> What's the exact error?
<codezombie> Tricon: The file identified by body.to_path does not exist
<Tricon> K.
fjfish has joined #ruby
zmike1234 has joined #ruby
zmike1234 has quit [Client Quit]
zmike123 has quit [Quit: Выходжу]
<codezombie> Tricon: might be worth to note, if the image result is very small, just a few kb everything works.
<codezombie> It's when the larger file has to be read, that causes the issue.
zmike123 has joined #ruby
Morkel has joined #ruby
<Tricon> Well...
<Tricon> You could do: GC.enable/GC.disable.
eldariof has joined #ruby
<Tricon> Would put that in a begin/rescue/ensure.
francisfish has quit [Ping timeout: 276 seconds]
<codezombie> hmm
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
jpcamara has quit [Quit: jpcamara]
ninegrid has quit [Quit: leaving]
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 248 seconds]
Morkel_ is now known as Morkel
gphillips has joined #ruby
imami|afk is now known as banseljaj
aganov has joined #ruby
<Tricon> codezombie: Ideally, you would delay job something like this, but that can be overkill for a simple app.
jpcamara has joined #ruby
gphillips has left #ruby [#ruby]
<codezombie> Tricon: I think I've got it. I can write the file using File instead of Tempfile. And using begin/ensure make sure the file is removed after the send_file
<Nom-> Slightly off topic, but anyone know if there's a "bundle package" command that will include the binary compiled gems too? I'm wanting to deploy to a system which doesn't have build tools :)
<Tricon> codezombie: Good call.
ocnam has quit [Quit: Tan Tan!]
mneorr has quit [Read error: Connection timed out]
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
scruple has quit [Quit: Leaving]
mneorr has joined #ruby
bobdobbs has joined #ruby
noxoc has joined #ruby
ZT has quit [Quit: Leaving]
<codezombie> damn, it appears that ensure runs, and deletes the file before send_file finishes.
<codezombie> I could write a simple cron to just clean up
brum has joined #ruby
<bobdobbs> I've been using wordpress to build small sites. I've been throwing in things like galleries, simple shops... I'm curious about ruby, Which ruby framework should I play with, that might replace wordpress for me?
Pufferfo_ has quit []
Pufferfood has joined #ruby
<nightfly> Jekyll, Rails, etc..
chrishough has quit [Quit: chrishough]
vlad_starkov has quit [Remote host closed the connection]
<shevy> bobdobbs raaaails
<shevy> or you build it from scratch :D
mercwithamouth has quit [Ping timeout: 264 seconds]
brum has quit [Ping timeout: 248 seconds]
<bobdobbs> cool. I reckon I'll play with rails tonight then :)
zigomir has joined #ruby
testingb0t has joined #ruby
<Tricon> WHOOPS.
<Tricon> Old version.
mfridh has joined #ruby
codezombie has quit [Read error: Connection reset by peer]
codezombie has joined #ruby
emergion has joined #ruby
mfcabrera has quit [Quit: This computer has gone to sleep]
solars has joined #ruby
inao has joined #ruby
puppeh has joined #ruby
railsbros_dirk has joined #ruby
krz has joined #ruby
Honeycomb has quit [Quit: Leaving.]
timonv has joined #ruby
mneorr has quit [Read error: Connection timed out]
<bobdobbs> Tricon: thanks
mafolz has joined #ruby
Honeycomb has joined #ruby
Honeycomb has quit [Client Quit]
mneorr has joined #ruby
emergion has quit [Read error: Connection reset by peer]
aapzak has quit [Ping timeout: 276 seconds]
chrishough has joined #ruby
solars has quit [Quit: WeeChat 0.3.7]
Honeycomb has joined #ruby
Eerbin has joined #ruby
wargasm has quit [Ping timeout: 244 seconds]
brianpWins has joined #ruby
jpcamara has quit [Quit: jpcamara]
yacks has quit [Ping timeout: 255 seconds]
fjfish has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
dankest has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
kumavis has quit [Quit: kumavis]
havenn has joined #ruby
dmiller1 has joined #ruby
frihd has joined #ruby
mneorr has quit [Read error: Connection timed out]
arya has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
takeru_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
dmiller1 has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
mneorr has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
aapzak has joined #ruby
jrendell has quit [Quit: jrendell]
takeru_ has quit [Ping timeout: 255 seconds]
Artheist has quit [Ping timeout: 248 seconds]
kpshek has joined #ruby
justsee has quit [Quit: Leaving...]
pyrac has joined #ruby
wargasm has joined #ruby
helvete has joined #ruby
joeycarmello has joined #ruby
verysoftoiletppr has joined #ruby
JohnBat26|2 has quit [Read error: Connection reset by peer]
takeru_ has joined #ruby
takeru_ has quit [Remote host closed the connection]
takeru_ has joined #ruby
monkegjinni has joined #ruby
lkba has joined #ruby
piotr_ has joined #ruby
atyz has quit [Disconnected by services]
obs has joined #ruby
monkegjinni has quit [Remote host closed the connection]
helvete is now known as atyz
Slivka has joined #ruby
angusiguess has joined #ruby
aapzak has quit [Ping timeout: 246 seconds]
noxoc has quit [Quit: noxoc]
marr has joined #ruby
fixl has quit [Remote host closed the connection]
joeycarmello has quit [Ping timeout: 256 seconds]
senayar has quit [Quit: Quitte]
kpshek has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby
aapzak has joined #ruby
aedornm has quit [Quit: Leaving]
maxmanders has quit [Client Quit]
maxmanders has joined #ruby
JarJar has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
hoelzro|away is now known as hoelzro
mockra has joined #ruby
ninegrid has joined #ruby
Dreamer3 has joined #ruby
kirchevsky has joined #ruby
backjlack has joined #ruby
wreckimnaked has joined #ruby
tjbiddle has joined #ruby
mpfundstein has joined #ruby
niklasb has joined #ruby
mpfundstein_ has joined #ruby
monkegjinni has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
bonhoeffer_ has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
browndawg has quit [Ping timeout: 245 seconds]
jimeh has joined #ruby
kevinfagan has joined #ruby
chrishough has quit [Quit: chrishough]
bonhoeffer has quit [Ping timeout: 260 seconds]
Weazy has quit [Quit: leaving]
Weazy has joined #ruby
ephemerian has quit [Quit: Leaving.]
noxoc has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
duosrx has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
Weazy has quit [Client Quit]
blacktulip has joined #ruby
Dreamer3 has joined #ruby
Weazy has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
ph^ has joined #ruby
ephemerian has joined #ruby
zz_Inoperable has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
Weazy has quit [Client Quit]
duosrx has quit [Ping timeout: 246 seconds]
m3pow has joined #ruby
Weazy has joined #ruby
clocKwize has joined #ruby
douglarek_away has quit [Remote host closed the connection]
kpshek has joined #ruby
douglarek_away has joined #ruby
earthquake has joined #ruby
nomenkun has joined #ruby
nari has quit [Ping timeout: 276 seconds]
browndawg has joined #ruby
Bry8Star has joined #ruby
Inoperable has joined #ruby
bluOxigen has joined #ruby
ph^ has quit [Ping timeout: 255 seconds]
ferdev has quit [Quit: ferdev]
timmow has joined #ruby
thinkclay has quit [Quit: Leaving.]
timmow has quit [Read error: Connection reset by peer]
timmow has joined #ruby
kpshek has quit [Ping timeout: 248 seconds]
duosrx has joined #ruby
yacks has joined #ruby
Honeycomb has quit [Quit: Leaving.]
Honeycomb has joined #ruby
takeru_ has quit [Remote host closed the connection]
ozgura has quit [Remote host closed the connection]
charliesome_ has joined #ruby
Honeycomb has quit [Client Quit]
KevinSjoberg has joined #ruby
mfcabrera has joined #ruby
mockra has joined #ruby
Vainoharhainen has joined #ruby
samphippen has joined #ruby
Criztian has joined #ruby
monkegjinni has joined #ruby
dmiller1 has joined #ruby
rdark has joined #ruby
geggam has quit [Ping timeout: 276 seconds]
blaxter has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
IrishGringo has quit [Ping timeout: 245 seconds]
charliesome_ is now known as charliesome
hbpoison has joined #ruby
dmiller1 has quit [Ping timeout: 246 seconds]
EMPZ has joined #ruby
geggam has joined #ruby
khismetix has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
io_syl has quit [Quit: Computer has gone to sleep.]
mibitzi has quit [Ping timeout: 240 seconds]
Axsuul has quit [Ping timeout: 255 seconds]
Emplitz has quit [Ping timeout: 245 seconds]
buscon has joined #ruby
davetherat has quit [Read error: Connection reset by peer]
davetherat has joined #ruby
milp has quit [Remote host closed the connection]
workmad3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
codezombie has quit [Quit: Leaving...]
tjbiddle has quit [Quit: tjbiddle]
ferdev has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
dayepa1 has quit [Ping timeout: 272 seconds]
ph^ has joined #ruby
mfcabrera has quit [Ping timeout: 246 seconds]
atyz has quit [Quit: Leaving...]
MrZYX|off is now known as MrZYX
mikecmpbll has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
_bart has joined #ruby
slainer68 has joined #ruby
<_bart> Is ruby regexp multiline by default? (and if yes, how do I turn it of?)
Al__ has joined #ruby
<rdark> _bart: anchor your regex?
arietis has joined #ruby
<_bart> rdark: I'm doing [^$]+ to get to the end of the line, but it gets to the bottom of the string and passes newlines
mibitzi has joined #ruby
<puppeh> _bart: /m
khismetix has quit [Quit: Computer has gone to sleep.]
<puppeh> _bart: that is, you append a "m" after the closing "/" of the regexp
<BoomerBile> haha figured it out
atyz has joined #ruby
<BoomerBile> now my game server will post it's status for the players to see in the facebook group, nice
angusiguess has joined #ruby
<_bart> puppeh: It's not working on rubular: http://rubular.com/r/t1isxSkXi8
<rdark> _bart: won't that regex mean anything that's not a line ending, then more of that?
<puppeh> _bart: you want to fetch the registration service provider?
<_bart> puppeh: yes
averiso has quit [Read error: Connection timed out]
ph^ has quit [Ping timeout: 245 seconds]
<puppeh> _bart: what about http://rubular.com/r/CYbyywFiZN?
<_bart> puppeh: ah cool, but I've been told that using dot operands is bad
pakchoi2 has joined #ruby
ozgura has joined #ruby
beiter has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
<workmad3> _bart: http://rubular.com/r/LDzIAk3299 was my variation
Tricon has joined #ruby
<puppeh> in other words, ruby regexp is not multiline by default
pakchoi2 has quit [Read error: Connection reset by peer]
<_bart> cool, thanks
averiso has joined #ruby
<workmad3> _bart: in non-multiline mode, . matches everything except a newline
nari has joined #ruby
<workmad3> _bart: in multiline, . matches everything
haxrbyte_ has joined #ruby
<workmad3> _bart: if you know you have limits on allowable data there though, you could do [\w\s]+ or similar, which would match any word characters or any whitespace
krz has quit [Ping timeout: 240 seconds]
haxrbyte has quit [Ping timeout: 248 seconds]
<workmad3> _bart: e.g. something like this http://rubular.com/r/boftfVSbLc
<workmad3> _bart: that one works irrespective of if you have multiline regex or not
nkr has joined #ruby
jaygen has joined #ruby
emergion has joined #ruby
Criztian has quit [Remote host closed the connection]
<_bart> workmad3: ah good to know, but I think the first version with the dot is fine, thanks
<rdark> workmad3: just out of interest, does \w support UTF8 in ruby?
<rdark> (I'm from a perl background myself..)
marr has quit [Ping timeout: 246 seconds]
<hoelzro> rdark: as am I =)
<workmad3> rdark: last time I checked, it didn't seem to
<rdark> hoelzro: good to know :)
<workmad3> rdark: it might be locale dependent
averiso has quit [Quit: Quit.]
<hoelzro> according to that page, it's fixed
<workmad3> rdark: I think you can use \p{Word} for that
sayan has quit [Ping timeout: 248 seconds]
<workmad3> ah, the [[]] classes apaprently match them
krz has joined #ruby
<workmad3> rdark: so, that [\s\w.] character class expands to '[[[:word:]][[:punct:]][[:blank:]]]' in order to allow unicode :)
gtc has joined #ruby
smokie has joined #ruby
Dreamer3 has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
<smokie> hey guys, can someone help me out with a ruby issue im having on ubuntu server? im trying to run redmine but its giving me this error: Redmine requires Bundler 1.0.21 (you're using 1.0.15). Please install a newer version with `gem install bundler`.
<smokie> when i run this command it says it sucessfully installed bundler-1.3.0, but i still get the same error when running redmine
bradhe_ has quit [Ping timeout: 256 seconds]
Dreamer3 has quit [Client Quit]
seich- has quit [Ping timeout: 276 seconds]
<workmad3> smokie: run 'gem install bundler -v "1.0.21"
<_bart> workmad3: how do I match a single newline?
<workmad3> _bart: $ I believe
pyrac has quit [Read error: Connection reset by peer]
<_bart> workmad3: You then a$b should match a\nb
pyrac_ has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
<_bart> workmad3: it doesn't according to rubular
<workmad3> _bart: ah, /a\nb/
<workmad3> _bart: it was even more obvious than I thought :P
<smokie> workmad3, thanks.. i ran that, i still get the same error msg
Xeago has joined #ruby
<mikecmpbll> why is updating ruby such a monumental pain in the arse.
<mikecmpbll> nothing seems to be able to find openssl even though i installed it.
<mikecmpbll> ERROR: Loading command: install (LoadError) \ cannot load such file -- openssl
<mikecmpbll> when I ran gem install bundler.
dankest has quit [Quit: Leaving...]
mibitzi has quit [Ping timeout: 240 seconds]
<workmad3> mikecmpbll: because the ruby module for it isn't compiled?
skattyadz has joined #ruby
gyre007 has joined #ruby
pandawarrior has joined #ruby
haxrbyte has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
<mikecmpbll> well, when i installed ruby 2 from RVM it said:
slainer68 has joined #ruby
<mikecmpbll> Compiling openssl in /Users/mike.campbell/.rvm/src/openssl-1.0.1c.
Dreamer3 has joined #ruby
becom33 has quit [Ping timeout: 248 seconds]
<mikecmpbll> and all the rest.
Dreamer3 has quit [Remote host closed the connection]
<workmad3> mikecmpbll: bleh, I kept getting ssl issues with installing ruby 2 on my mac until I installed openssl with homebrew
mockra has joined #ruby
<workmad3> mikecmpbll: I've not had any success with the ruby-build attempt to updated it, don't know about the rvm attempt, but wouldn't surprise me if it's also a bit tempermental
haxrbyte_ has quit [Ping timeout: 245 seconds]
mibitzi has joined #ruby
<mikecmpbll> i see. ok thanks, something else to try.
grzywacz has quit [Quit: :wq]
Dreamer3 has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 276 seconds]
sayan has joined #ruby
lewix has quit [Remote host closed the connection]
dmiller1 has joined #ruby
khismetix has joined #ruby
<pandawarrior> is it a code smell if i have a class that has only class methods?
samphippen has joined #ruby
<pandawarrior> and all the variables are class variables, so no instance methods/variables at all?
mockra has quit [Ping timeout: 276 seconds]
Dreamer3 has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
<Hanmac> pandawarrior you should use a module for that
<workmad3> pandawarrior: seems a bit smelly to me
<MrZYX> pandawarrior: sounds like a singleton
dmiller1 has quit [Ping timeout: 246 seconds]
yewton has quit [Excess Flood]
bradhe has joined #ruby
Loaft has quit [Read error: Connection reset by peer]
Dreamer3 has joined #ruby
yewton has joined #ruby
<Hanmac> hm you dont need an Singleton instance ... class methods in a module is good enough
Takehiro has quit [Remote host closed the connection]
<MrZYX> if he has lots of internal variables?
Takehiro has joined #ruby
<workmad3> pandawarrior: the real question is, how are you using this class and why is everything at the class-level on it?
<smokie> any help with my issue by any chance?
samphippen has quit [Ping timeout: 255 seconds]
<Hanmac> MrZYX they are dont need to be external, so class instance variables are good enough
<pandawarrior> sorry was away
<Hanmac> smokie: what was your issue?
<pandawarrior> i have a Print class
<pandawarrior> and it's sole resposibility is to print stuff to the screen
<pandawarrior> so no need to have an instance
<pandawarrior> if i turned it into a module
Pufferfood has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
<pandawarrior> i'd have to include it into my Number class
<pandawarrior> which doesn't make sense to me
<pandawarrior> so instead i new up n Number objects
Dreamer3 has quit [Remote host closed the connection]
<pandawarrior> and send those as an argument into my Print class
<workmad3> why do you have a Number class? :/
Pufferfood has joined #ruby
<pandawarrior> which then prints the number
mpfundstein_ has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<smokie> Hanmac, i upgraded my redmine and im getting a ruby error when i try to run it now, this is what i get http://img14.imageshack.us/img14/4198/rubyt.png
Takehiro has quit [Remote host closed the connection]
<pandawarrior> because I need to create a number of only a particalr type
<workmad3> pandawarrior: care to try that explanation again, but this time with a bit of sense in it? ;)
fire has joined #ruby
<pandawarrior> :S
huoxito has joined #ruby
<Hanmac> smokie did you try what the error message sais?
<smokie> Hanmac, yes, i tried to run 'gem install bundler' and it says it installas 1.3 fine, then i removed it and tried to run 'gem install bundler -v "1.0.21"' like workmad3 suggested
<smokie> it says 1 gem installed but i still get the same error
<_bart> workmad3: why would I want to use /registration service provider:(.+)$/i over /registration service provider:(.+)/i ? (the $)
seich- has joined #ruby
<pandawarrior> I have a Number class that is responsible for producing roman numeral numbers and a print class that prints them in a table format. the print class have only class methods and class variable in in. should i leave it as a class or turn it into a module
<Hanmac> smokie did you use some kind of rvm? maybe its pointing to the wrong ruby?
<workmad3> _bart: I just like to be explicit with my anchors
samphippen has quit [Ping timeout: 246 seconds]
<workmad3> pandawarrior: ah, so your Number class should really be called RomanNumeral
<pandawarrior> good point, yes a RomanNumeral class
<workmad3> pandawarrior: and your Print class is a RomanNumeralPrinter, or a RomanNumeralOutput maybe
<smokie> Hanmac, tbh i dont know.. i know 0 about ruby and the ppl in #redmine or the redmine forum are not helpful at all
thmz has joined #ruby
<pandawarrior> workmad3: agreed
<pandawarrior> so i can be a singleton class?
<pandawarrior> it just seems a bit wrong
<pandawarrior> with all those class variables....
<workmad3> pandawarrior: right, what I'd be tempted to do is have a RomanNumeralOutput class as a normal class
<workmad3> pandawarrior: without a load of class variables, have them as instance variables
whitedawg has joined #ruby
<workmad3> pandawarrior: and when you create it, you pass it an IO object for that particular instance
tish has quit [Quit: Leaving.]
ph^ has joined #ruby
dr_bob has joined #ruby
hiroyuki has quit [Ping timeout: 246 seconds]
<workmad3> pandawarrior: so it would have something like 'def initialize(io=$stdout); @io = io; end'
<pandawarrior> ummm
<workmad3> pandawarrior: and then instead of random 'puts' method calls, you'd do '@io.puts' etc
<pandawarrior> intereting
<workmad3> pandawarrior: that way you decouple your RomanNumberOutput from the exact IO object you're using, so you can instead bind to any IO object for changing the output
apod has joined #ruby
<pandawarrior> yeah
<pandawarrior> that makes much more sense
<pandawarrior> to the IO just prints
Dreamer3 has quit [Quit: Leaving...]
<pandawarrior> and the RNO class formats
<workmad3> pandawarrior: exactly, it's a more explicit separation of responsibilities too
Dreamer3 has joined #ruby
<pandawarrior> lovely
<workmad3> pandawarrior: the IO class knows how to print strings to it's particular target, your RNO knows how to transform RNs into strings
verysoftoiletppr has quit []
<pandawarrior> and all i need to do is take the puts stuff and put it into a new IO class and keep the formating logic in the original Print class, rename that to RNO and change all the vars and methods to instance ones!!!
<pandawarrior> mwhahahahhahahaha!
ph^ has quit [Ping timeout: 245 seconds]
* pandawarrior apologies for the evil laugh. just happy to solve a problem. :)
maligree has quit [Quit: I've had it.]
<workmad3> pandawarrior: that's the joy of code smells ;) noticing them is the point to challenge your design assumptions and see if you can justify them
<workmad3> pandawarrior: you don't need to create your own IO class
<workmad3> pandawarrior: $stdout *is* an IO class
Domon has quit [Remote host closed the connection]
<workmad3> pandawarrior: $stdout.puts "foobar" will print "foobar" to stdout ;)
browndawg has quit [Quit: Leaving.]
<pandawarrior> ahhh okay i see, so format and the shove off to $stdout
<workmad3> pandawarrior: there's also a StringIO class that can do similar
miso1337 has quit [Quit: afk]
<pandawarrior> which is best to use?
<workmad3> pandawarrior: and also File instances are IO classes and respond to puts ;)
<workmad3> pandawarrior: as I said, your Output should take a parameter for the specific IO object to use
<workmad3> pandawarrior: and then use @io.puts throughout your output
monkegjinni has quit [Remote host closed the connection]
<pandawarrior> nice
<workmad3> pandawarrior: then provide a default value in your initializer so that 'RomanNumeralOutput.new' will default to outputting to $stdout
angusiguess has joined #ruby
<pandawarrior> oh la la
<workmad3> pandawarrior: but you can also do 'RomanNumeralOutput.new File.open("foobar", "w") ' and instead you'll be outputting to the file 'foobar' ;)
khismetix has quit [Quit: Computer has gone to sleep.]
<pandawarrior> my white belt is slipping, lol
freeayu has quit [Ping timeout: 248 seconds]
<pandawarrior> okay i had to write that done but i get it
<pandawarrior> right off to put this into codzzzzzz
tvw has joined #ruby
backjlack has quit [Read error: Connection reset by peer]
<smokie> restarting apache2 is enough for any changes to take affect after making changes?
monkegjinni has joined #ruby
backjlack has joined #ruby
t-mart_ has joined #ruby
EMPZ has quit [Quit: Leaving]
slainer68 has quit [Remote host closed the connection]
Spooner_ has joined #ruby
backjlack_ has joined #ruby
t-mart has quit [Ping timeout: 248 seconds]
oposomme has joined #ruby
<oposomme> hi, what is the best way to deal with multidimensionnal array as it doesn't seem to be built-in?
zmike123 has quit [Ping timeout: 256 seconds]
backjlack has quit [Ping timeout: 245 seconds]
matchaw has joined #ruby
dawkirst_ has joined #ruby
dmonjo has joined #ruby
holahola has joined #ruby
sonda has joined #ruby
holahola has quit [Remote host closed the connection]
dmonjo has quit [Client Quit]
wobblini has joined #ruby
jaygen_ has joined #ruby
jaygen has quit [Read error: Operation timed out]
spider-mario has joined #ruby
hbpoison has joined #ruby
pcboy_ has quit [Ping timeout: 244 seconds]
eka has joined #ruby
dmonjo has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
zmike123 has joined #ruby
Adys_ is now known as Adys
cableray has quit [Quit: cableray]
railsbros_dirk_ has joined #ruby
railsbros_dirk has quit [Ping timeout: 240 seconds]
railsbros_dirk_ is now known as railsbros_dirk
gyre007 has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
jaygen has joined #ruby
BizarreCake has joined #ruby
samphippen has joined #ruby
sirish has quit [Ping timeout: 264 seconds]
jaygen_ has quit [Read error: Operation timed out]
frihd has quit [Quit: Leaving.]
frihd has joined #ruby
frihd has quit [Client Quit]
slainer68 has joined #ruby
yshh has quit [Remote host closed the connection]
samphippen has quit [Ping timeout: 246 seconds]
takeru_ has joined #ruby
rhinux has quit [Quit: Konversation terminated!]
freeayu has joined #ruby
krz has quit [Read error: Connection reset by peer]
whitedawg has quit [Quit: Leaving.]
mockra has joined #ruby
crackfu has quit [Remote host closed the connection]
takeru_ has quit [Ping timeout: 255 seconds]
banseljaj has quit [Excess Flood]
Es0teric has quit [Quit: Computer has gone to sleep.]
dmiller1 has joined #ruby
zoonfafer has joined #ruby
samphippen has joined #ruby
greenarrow has quit [Ping timeout: 276 seconds]
greenarrow has joined #ruby
mockra has quit [Ping timeout: 244 seconds]
banseljaj has joined #ruby
dmiller1 has quit [Ping timeout: 248 seconds]
samphippen has quit [Ping timeout: 255 seconds]
dmonjo has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
pcboy_ has joined #ruby
workmad3 has joined #ruby
verysoftoiletppr has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
fire has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
greenarrow has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
kaen has quit [Ping timeout: 252 seconds]
zmike123 has quit [Ping timeout: 244 seconds]
philcrissman has joined #ruby
Targen has quit [Ping timeout: 276 seconds]
ph^ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zmike123 has joined #ruby
greenarrow has joined #ruby
samphippen has joined #ruby
pcboy_ has quit [Ping timeout: 248 seconds]
kofno has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
berserkr has joined #ruby
pcboy_ has joined #ruby
mfcabrera has joined #ruby
fire has joined #ruby
samphippen has quit [Ping timeout: 240 seconds]
himsin has quit [Remote host closed the connection]
pyrac_ has quit [Read error: Connection reset by peer]
himsin has joined #ruby
pyrac has joined #ruby
divout has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 248 seconds]
mfcabrera has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
pcboy_ has quit [Ping timeout: 248 seconds]
zmike123 has quit [Quit: Выходжу]
wreckimnaked has quit [Ping timeout: 240 seconds]
marr has joined #ruby
monkegjinni has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
samphippen has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
<clocKwize> is there an object that you can define stuff just by referencing it?
<clocKwize> like a dynamic ostruct
<clocKwize> Blah.new, blah.x = 123
<clocKwize> blah.x => 123
<sam113101> yes
lkba has joined #ruby
<sam113101> Struct
<sam113101> or
wobblini has quit [Ping timeout: 260 seconds]
<sam113101> OpenStruct
Bry8Star has quit [Ping timeout: 276 seconds]
<sam113101> this is what you want I think
<clocKwize> nah because you have to pass in what accessors you want on it
<clocKwize> I want it to create them on the fly
<clocKwize> I don't know what will be defined on the object at the time of creation
<clocKwize> oh wait, openstruct does that
<clocKwize> my bad :)
<apeiros_> you don't have to pass in the accessors in OpenStruct
<clocKwize> I've always used openstruct by passing in a hash, so assumed you had to :)
monkegjinni has joined #ruby
<apeiros_> assumptions… the bane of programming…
Kuifje has joined #ruby
<clocKwize> ;)
<clocKwize> thanks guys
girija has quit [Ping timeout: 245 seconds]
<sam113101> np
BizarreCake has quit [Ping timeout: 255 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<clocKwize> Ideally I'd like to be able to do blah.x.y.z = 4 and them be openstructs all the way down, but meh.
<e-dard> Hi suppose I have when *%w{FOO BAR ETC ETC} but it extends beyond 80 characters, is it possible to have array literals on multiple lines?
samphippen has quit [Ping timeout: 244 seconds]
gyre007 has joined #ruby
<Tricon> e-dard: Yes.
hbpoison has quit [Ping timeout: 276 seconds]
khismetix has joined #ruby
Bry8Star has joined #ruby
<clocKwize> e-dard: try it, " " is probably matched as "any whitespace" including new lines
<e-dard> I'm trying it in irb but return is executing the statement :p
<Tricon> e-dard: Doesn't do that in my irb.
<Tricon> %w{foo bar
<Tricon> lint}
<e-dard> Tricon: guess I need a better REPL :p
<Tricon> e-dard: Just using standard irb. Which Ruby version?
<clocKwize> 1.9.3-p194 :001 > %w{a b
<clocKwize> 1.9.3-p194 :002]> c}
<clocKwize> => ["a", "b", "c"]
<clocKwize> works for me?
<Tricon> Yeah.
sayan has joined #ruby
<e-dard> wait never mind. It works
<e-dard> \me facepalm
<apeiros_> that's /me
gazarsgo has joined #ruby
* e-dard face palm the facepalm
* Tricon inception the face palm
<gazarsgo> i'm trying to replace one part of a string with another, and replace does something completely unintuitive, what function am i actually looking for? tr only operates on single characters...
rocket has quit [Quit: Linkinus - http://linkinus.com]
<Tricon> gazarsgo: gsub
<gazarsgo> awesome. thank you
<apeiros_> replace does exactly what it says - it replaces the string :-p
Virunga has joined #ruby
Hanmac has joined #ruby
<gazarsgo> i'd be happy to argue about why the semantics of 'replace' in ruby are poor, but i have code to write :)
<gazarsgo> what characters are illegal in a ruby class name ?
<apeiros_> class names are constants, constants are [A-Z]\w*
<apeiros_> with utf-8 encoded source files, that *might* be [A-Z]\p{word}*
krz has joined #ruby
<workmad3> apeiros_: [A
<workmad3> apeiros_: [[:word:]] also works
<apeiros_> seems like… `Blöd = 1` works fine here
gyre008 has joined #ruby
<gazarsgo> how is a constant distinct from an 'identifier' ? and can you translate into non-regex ?
<apeiros_> no I can't. I have code to write.
yalue has joined #ruby
<gazarsgo> zing!
kofno has quit [Remote host closed the connection]
frihd has joined #ruby
ikst has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
<gazarsgo> i found a lexical reference, but it doesn't seem to use 'constants' in the same manner as you refer to them: http://web.njit.edu/all_topics/Prog_Lang_Docs/html/ruby/syntax.html#lexical
monkegjinni has quit [Remote host closed the connection]
<gazarsgo> oh no, there it is, "Class definition defines the constant automatically, all class names are constants."
d34th4ck3r has joined #ruby
mockra has joined #ruby
carloslopes has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
Virunga has quit [Remote host closed the connection]
dmiller1 has joined #ruby
mockra has quit [Ping timeout: 255 seconds]
kofno has joined #ruby
banister`sleep has quit [Remote host closed the connection]
yshh has joined #ruby
dmiller1 has quit [Ping timeout: 248 seconds]
daniel_- has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
yshh has quit [Ping timeout: 245 seconds]
<e-dard> Is it possible with array literal of strings to have spaces in resulting output?, e.g., %w{FOO BAR 'JOINED UP'} should be ['FOO', 'BAR', 'JOINED UP'] ?
<hoelzro> e-dard: yes
<hoelzro> ['FOO', 'BAR', 'JOINED UP']
v0n has joined #ruby
<e-dard> hoelzro: so you really mean no?
wodKa has joined #ruby
Al___ has joined #ruby
<hoelzro> e-dard: well, you asked for an array literal containing a string with a space in it =)
<macq> e-dard: array of literals designed to have list of items separated by space
deadalus has quit [Changing host]
deadalus has joined #ruby
<e-dard> macq: exactly, so the %w notation does not support any way of keeping a space in the resulting output array? Correct?
<macq> it's like asking if you can write asm code in java
rickmasta has joined #ruby
<hoelzro> e-dard: yes
<hoelzro> that is correct
<wodKa> the way I always saw it was %w is for lazy/quick prototyping and then you switch it to a real array or something later
pyrac has quit [Ping timeout: 276 seconds]
<hoelzro> I use %w (or rather the Perl equivalent) all the time
<e-dard> OK, understood. Thanks
<hoelzro> prototyping or not
obs has quit [Quit: Konversation terminated!]
Al__ has quit [Ping timeout: 245 seconds]
pac1 has quit [Ping timeout: 248 seconds]
hogeo has quit [Remote host closed the connection]
Al___ has quit [Ping timeout: 264 seconds]
<wodKa> hoelzro: guess i've never had arrays that conform to %w use :D
<wodKa> though, I only really do web stuff, so arrays are usually for drop down boxes etc
<hoelzro> I think that you use them more in Perl and less in Ruby because of the absence/presence of symbols
geekbri has joined #ruby
ph^ has joined #ruby
Rollabunna has joined #ruby
pcboy_ has joined #ruby
adkron has joined #ruby
<macq> actually%W[aaaaaa bbbb\x20cccc] => ["aaaaaa", "bbbb cccc"]
adkron_ has joined #ruby
<gazarsgo> why is ruby expecting a } here? https://gist.github.com/anonymous/ffb5efc35445aad2a553
Azure has quit [Ping timeout: 245 seconds]
adkron__ has joined #ruby
hbpoison has joined #ruby
<macq> gazarsgo: wtf?
<macq> is it php?
elaptics is now known as elaptics`away
ph^ has quit [Ping timeout: 245 seconds]
<Tricon> LOL.
<sam113101> what is this
<gazarsgo> are you asking for more context or just poking fun?
<Kuifje> that's definitely not ruby
<Kuifje> that's php
<apeiros_> I think he refers to your syntax being rather off
<apeiros_> $vars are globals in ruby
<apeiros_> class names start with uppercase letters (as said before)
<apeiros_> filenames are .rb, not .pp
wreckimnaked has joined #ruby
<apeiros_> and class blocks are not enclosed by { … }
<apeiros_> just class Name; …; end (; is interchangeable with newlines)
<macq> as far as i remember puppet use it's own language
Azure has joined #ruby
<gazarsgo> ahhh, i thought puppet embedded ruby
<Kuifje> oh wait. puppet.
<apeiros_> hm
rickmasta has quit [Quit: Leaving...]
<apeiros_> right… why use an existing language when you can invent a new one…
<Kuifje> puppet has its own language, but it also supports ruby?
BoomerBile has quit [Quit: Leaving]
Stilo has joined #ruby
ikst has quit [Remote host closed the connection]
splud has quit [Quit: splud]
adkron__ has quit [Ping timeout: 255 seconds]
adkron_ has quit [Ping timeout: 248 seconds]
heliumsocket has joined #ruby
<macq> it uses both, ruby for scripting and it's own for 'patterns'
Gx4 has joined #ruby
<Gx4> hi
daniel_- has quit [Ping timeout: 264 seconds]
<gazarsgo> i figured it out, i just have to call inline_template('<%= ... ruby code ... %>')
<gazarsgo> what a cluster
mfcabrera has joined #ruby
brum has joined #ruby
<macq> there is a language reference - http://docs.puppetlabs.com/guides/language_guide.html
<macq> gl with that =)
kofno has quit [Remote host closed the connection]
pskosinski has joined #ruby
Phatz0 has joined #ruby
<gazarsgo> yeah, scope isn't automatically passed into inline_template...jalklskfgjl
<Kuifje> maybe you can switch to cheff. *trollface*
<Kuifje> chef*
<Phatz0> Any good ideas how to create communications between a java application and a ruby backend? Savon (SOAP) ?
<gazarsgo> i hear that AJAX/JSON thing is catching on
brum has quit [Ping timeout: 248 seconds]
<Phatz0> json is ofcourse one option.
kofno has joined #ruby
monkegjinni has joined #ruby
robustus has quit [Read error: Connection reset by peer]
<csmrfx> I hear there is this thing called HTTP
elaptics`away is now known as elaptics
Virunga has joined #ruby
nyuszika7h has quit [Quit: -yes]
pyrac has joined #ruby
miso1337 has joined #ruby
nyuszika7h has joined #ruby
berserkr has quit [Quit: Leaving.]
robustus has joined #ruby
cantonic has quit [Quit: cantonic]
V8Energy has quit [Ping timeout: 248 seconds]
IrishGringo has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
mark_locklear has joined #ruby
miso1337 has quit [Read error: Connection reset by peer]
miso1337 has joined #ruby
mikecmpbll has joined #ruby
jjbohn has joined #ruby
iamjarvo has joined #ruby
<apeiros_> gah, can't use "history" as variable name in pry…
threesome has quit [Ping timeout: 264 seconds]
AltGrendel has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
Virunga has quit [Remote host closed the connection]
Raboo has quit [Remote host closed the connection]
<Hanmac> haha :P
monkegjinni has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
<apeiros_> Hanmac: you're one of the contributors of pry?
<Hanmac> noper
<apeiros_> :/
<apeiros_> banister & my_hearing aren't around either…
cantonic has joined #ruby
<macq> just type <space>history
daniel_- has joined #ruby
<apeiros_> macq: well, I just use another varname
<apeiros_> but I think it's a bug
<apeiros_> afaik commands should not shadow existing methods/variables
<macq> it's not shadowed
brum has joined #ruby
<macq> type ' history' in your pry console
brum has quit [Remote host closed the connection]
<macq> without quotes ofc
krawchyk has joined #ruby
<apeiros_> macq: that shows the pry history. and that's precisely what shadowing is.
<apeiros_> ah you mean with the space
<macq> it doesn't
<apeiros_> yes it does. you're redefining what "shadowing" means.
arya has joined #ruby
chussenot has quit [Quit: chussenot]
<macq> it's pry console, not irb
takeru_ has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
<apeiros_> did I say it was irb?
adambeynon has joined #ruby
monkegjinni has joined #ruby
* Tricon grabs popcorn
Phatz0 has quit [Quit: *code code*]
gyre008 has quit [Read error: Connection reset by peer]
* macq doh
gyre007 has joined #ruby
<d34th4ck3r> how can I find value of a fraction upto 10000 decimal points?
<d34th4ck3r> for example, 103993/33102 ?
mneorr has joined #ruby
girija has joined #ruby
<apeiros_> d34th4ck3r: project euler?
<apeiros_> I think you can use BigDecimal
monkegjinni has quit [Remote host closed the connection]
bluOxigen has joined #ruby
ExxKA has joined #ruby
<d34th4ck3r> apeiros_: how exactly? can you give me an example, or a link where I can read how to do this?
<apeiros_> d34th4ck3r: I haven't done it myself, so no. I suggest reading BigDecimals docs. You can set its precision.
mockra has joined #ruby
takeru_ has quit [Ping timeout: 260 seconds]
<apeiros_> I'd assume it's just "create nominator with a precision of >10000", "create denominator with a precision of >10000", "divide", "convert to string"
Voting has quit [Ping timeout: 244 seconds]
subbyyy has joined #ruby
Virunga has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
mneorr has quit [Ping timeout: 264 seconds]
Al__ has joined #ruby
<d34th4ck3r> apeiros_: I did what u said, it gave me this: "0.3141592653011902604E1"
<d34th4ck3r> which is correct but not what i want.
Al__ has quit [Read error: Connection reset by peer]
dblack_ has joined #ruby
neurotech has quit [Remote host closed the connection]
Al__ has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
slainer68 has joined #ruby
nfk has joined #ruby
chussenot has joined #ruby
girija has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
AltGrendel has quit [Quit: Leaving.]
monkegjinni has quit [Remote host closed the connection]
Tricon has quit [Quit: Leaving...]
<oposomme> I would like to use my mixin module with a log method inside and call it from the host class so I write 'extend MyMixin' and then 'self.log "bar"' but I have a NoMethodError. How do I do to use it inside the host class?
joofsh has joined #ruby
threesome has joined #ruby
<nmeum> oposomme: include MyMixin?
<nmeum> ähhh
<oposomme> nmeum: it seems to work I don't understand because I thought self.log calls correctly a class method
<nmeum> you have a module and you want to include this module in a different class?
<oposomme> nmeum: In the host class of the mixin only
<nmeum> aha
wargasm has quit [Read error: Connection reset by peer]
r0bgleeson has joined #ruby
<d34th4ck3r> apeiros_: any idea?
buscon has quit [Quit: Leaving]
angusiguess has joined #ruby
<apeiros_> not really. I'd have to investigate myself.
banister`sleep has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
a_a_g has quit [Quit: Leaving.]
ph^ has joined #ruby
carloslopes has quit [Remote host closed the connection]
<d34th4ck3r> apeiros_: I still can't get one thing, you said "create nominator with a precision of >10000" , how would I do that, I created a simple BigDecimal(103993) ?
<csmrfx> d34th4ck3r: maybe you just should calc those pi decimals as arr
hiroyuki has joined #ruby
<d34th4ck3r> csmrfx: hwo?
<d34th4ck3r> *how
<d34th4ck3r> maually ?
<d34th4ck3r> *manually
daed has joined #ruby
end_guy has joined #ruby
adkron has quit [Ping timeout: 276 seconds]
runixo has joined #ruby
ph^ has quit [Ping timeout: 245 seconds]
noop has quit [Remote host closed the connection]
<csmrfx> d34th4ck3r: well what exactly is your task at hand?
<csmrfx> thousandth pi decimal?
<d34th4ck3r> csmrfx: No, to print 103993/33102 upto 10^6 decimal points
samuelj has joined #ruby
philcrissman has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
tcstar has joined #ruby
<csmrfx> whoa 10^6 decimal points
<csmrfx> does bignum help here, I dont think so
niklasb has joined #ruby
samuelj has left #ruby [#ruby]
<csmrfx> I hope you are good at algebra
wmoxam has joined #ruby
runixo has left #ruby [#ruby]
<d34th4ck3r> csmrfx: haha
angusiguess has quit [Ping timeout: 255 seconds]
tommyvyo has joined #ruby
<d34th4ck3r> csmrfx: Is there no inbuilt library to acheive that?
<csmrfx> inbuilt meaning core or standard library? I dont know
rippa has joined #ruby
samphippen has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
jpfuentes2 has joined #ruby
<apeiros_> csmrfx: bigdecimal should not have any troubles with 10^6 digits
theRoUS has quit [Ping timeout: 255 seconds]
Al__ has left #ruby [#ruby]
hiroyuki has quit [Ping timeout: 255 seconds]
dustint has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
daniel_- has quit [Ping timeout: 245 seconds]
solidoodlesuppor has joined #ruby
moos3 has joined #ruby
jpcamara has joined #ruby
<apeiros_> d34th4ck3r: a = BigDecimal("103993")*(10**10000); b = BigDecimal("33102")*(10**10000); (a/b).to_s('f')
<apeiros_> seems to work. I can't get BigDecimal to use N digits after the decimal point, though.
al_d has joined #ruby
pandawarrior has left #ruby [#ruby]
ebouchut has joined #ruby
zykes- has quit [Ping timeout: 245 seconds]
splud has joined #ruby
<csmrfx> hence DecNum
d34th4ck3r has quit [Read error: Operation timed out]
d34th4ck3r has joined #ruby
xemu has joined #ruby
<apeiros_> d34th4ck3r: a = BigDecimal("103993")*(10**10000); b = BigDecimal("33102")*(10**10000); (a/b).to_s('f')
<apeiros_> seems to work. I can't get BigDecimal to use N digits after the decimal point, though.
atyz has joined #ruby
<macq> a.div(b, 10**6).to_s('f')
<csmrfx> One of the major problems with BigDecimal is that it’s not easy to control the number of significant digits of the results. While addition, subtraction and multiplication are exact (unless a limit is used), divisions will need to be passed precision explicitly or else an indeterminate number of significant digits will be lost.
<apeiros_> csmrfx: no, hence fix the f'ing docs and/or add a usable BigDecimal#to_s
khismetix has quit [Quit: Computer has gone to sleep.]
<csmrfx> With DecNum, Context objects are used to specify the exact number of digits to be used for all operations making the code cleaner and the results more easily predictable.
<macq> where a = BigDecimal("103993"); b = BigDecimal("33102")
sayan has joined #ruby
<apeiros_> macq: aha, there's the result precision hiding. thanks.
macsim has joined #ruby
<_bart> {1=>1, 4=>2, 7=>1}
<macsim> hi, I try using sass on ubuntu, when I launch it I got this error : Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string), how can I fix this ? thanks
<_bart> How do I order this thing, based on the value (not the key)
Voting has joined #ruby
<apeiros_> docs being awesome on BigDecimal#div :-/
<apeiros_> _bart: .sort_by(&:last)
<_bart> apeiros_: thanks, cool
<apeiros_> returns an array. can be converted back to a Hash using Hash[]
<macq> apeiros_: just read source code, it's not that hard...
* macq ,-)
<apeiros_> macq: thanks, but no thanks :-p
haxrbyte_ has joined #ruby
zykes- has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
jjbohn has quit [Quit: Leaving...]
haxrbyte has quit [Ping timeout: 255 seconds]
jeffreybaird has joined #ruby
<d34th4ck3r> macq, apeiros_,csmrfx : Thanks! :)
subbyyy has quit [Quit: none 0.3.9.2]
skattyadz has quit [Quit: skattyadz]
breakingthings has joined #ruby
<apeiros_> d34th4ck3r: and, what is it? homework? project euler?
Dreamer3 has quit [Quit: Leaving...]
haxrbyte has joined #ruby
<d34th4ck3r> apeiros_: project euler
<d34th4ck3r> kinda
ph^ has joined #ruby
<d34th4ck3r> not exactly
joofsh has quit [Remote host closed the connection]
pdamer has joined #ruby
monkegjinni has joined #ruby
haxrbyte_ has quit [Ping timeout: 248 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
dustint has quit [Remote host closed the connection]
binw has joined #ruby
enroxorz-work has joined #ruby
wargasm has joined #ruby
codecop has quit [Remote host closed the connection]
adamjleonard has joined #ruby
moos3 has joined #ruby
niklasb has joined #ruby
jerius has joined #ruby
yfeldblum has joined #ruby
krz has quit [Quit: krz]
EPIK has quit [Ping timeout: 255 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
stopbit has joined #ruby
invisime has joined #ruby
tommyvyo has quit [Quit:]
Rollabunna has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
mockra has joined #ruby
Slivka has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
daniel_- has joined #ruby
bubblehead has joined #ruby
forced_request has joined #ruby
dr_bob has quit [Quit: Leaving.]
moos3 has quit [Quit: Computer has gone to sleep.]
adkron has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
eldariof has quit [Ping timeout: 255 seconds]
tommyvyo has joined #ruby
dmiller1 has joined #ruby
mockra has quit [Ping timeout: 255 seconds]
tomzx_mac has joined #ruby
dr_bob has joined #ruby
Fabian_ has joined #ruby
blahwoop has joined #ruby
tagrudev has quit [Remote host closed the connection]
nari has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
bobdobbs has quit [Ping timeout: 276 seconds]
girija has joined #ruby
poikon has joined #ruby
jrajav has joined #ruby
<Spooner_> #python have a strict "NO Project Euler" policy in their MOTD :D
tcstar has quit [Remote host closed the connection]
skattyadz has joined #ruby
heliumsocket has joined #ruby
wodKa has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
Virunga has quit [Remote host closed the connection]
pyrac has quit [Read error: Connection reset by peer]
<jrajav> Which is kind of silly
pyrac has joined #ruby
<jrajav> You should teach people how to make good, specific questions, rather than categorically exclude them just for a choice of site
jtharris has joined #ruby
<jrajav> Not even silly so much as plain dumb
arietis has joined #ruby
<jrajav> They also have a bot that warns you you may be kicked, every time you say 'lol'
<Hanmac> i recently saw an "why python is better than ruby" slideshow ... it was totally crap :P
<jrajav> Some people should never have been given ops
Fabian_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<Spooner_> And you need to be registered to even get in. We get all the riff-raff :D
bluOxigen has quit [Ping timeout: 246 seconds]
<clocKwize> refactoring some shopping basket stuff
<clocKwize> busker just doesn't look right anymore :(
<shevy> it's hard to really find where python and ruby are better over one another
kpshek has joined #ruby
Gx4 has quit [Ping timeout: 248 seconds]
<Spooner_> Python has dead parrots in the examples and we have chunky bacon.
khismetix has joined #ruby
khismetix has quit [Remote host closed the connection]
<shevy> how can you compare different philosophies for example?
<breakingthings> subjectively, that's how.
<shevy> Spooner_ what about vegetarians :P
<jrajav> shevy: I find yelling to be effective
inao has quit [Quit: Linkinus - http://linkinus.com]
* Hanmac hmm "Bacon"
<shevy> jrajav haha
<Spooner_> shevy, We just lick the foxes, not eat the bacon.
<shevy> ewwww ... all that fur ...
codespectator has joined #ruby
Demonen has joined #ruby
<jrajav> Vegetarians lick foxes eh?
<Spooner_> We can taste, but we can't swallow.
<breakingthings> All of what you just said
<breakingthings> gross.
<Demonen> Hi all. I'm having issues with gitlab. Is this an appropriate channel to bother with this problem? raking gitlab:setup fails with "rake aborted!" when trying to create the admin user, like so: http://pastebin.com/siGcyq89
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Spooner_> Demonen, #rubyonrails ?
backjlack_ has quit [Remote host closed the connection]
Takehiro has joined #ruby
whowantstolivefo has quit [Ping timeout: 264 seconds]
oposomme has quit [Quit: Linkinus - http://linkinus.com]
<Demonen> Thanks Spooner_, I'll pester them in stead.
Demonen has left #ruby ["So long, and thaks for all the ... foxes?"]
angusiguess has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
browndawg has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
ebouchut has quit [Quit: Quitte]
nOStahl has joined #ruby
_nitti has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
al_d_ has joined #ruby
Al___ has joined #ruby
robbyoconnor has joined #ruby
skattyadz has quit [Quit: skattyadz]
sailias1 has joined #ruby
krz has joined #ruby
dustint has joined #ruby
baroquebobcat has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
al_d has quit [Ping timeout: 248 seconds]
al_d_ is now known as al_d
ffranz1 has joined #ruby
Al___ has quit [Client Quit]
al_d has quit [Client Quit]
DrCode has quit [Ping timeout: 276 seconds]
Virunga has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Virunga has quit [Remote host closed the connection]
newUser1234 has joined #ruby
etcetera has joined #ruby
gazarsgo has quit [Quit: Page closed]
krawchyk_ has joined #ruby
DrCode has joined #ruby
<roolo> Hi
whitedawg has joined #ruby
<roolo> I am trying to write Accept header error reporting. Sinatra has provides route parameter for formats, but when i make a call with wrong/not privided Accept header value it jumps to not_found how can detect there, that it's caused by format?
macsim has quit [Quit: Quitte]
elux has joined #ruby
krawchyk has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ananthakumaran has joined #ruby
SCommette has joined #ruby
ffranz1 is now known as ffranz
theRoUS has quit [Ping timeout: 264 seconds]
codespectator has quit [Read error: Connection reset by peer]
SCommette has quit [Client Quit]
ninjanoise has joined #ruby
interactionjaxsn has joined #ruby
SCommette has joined #ruby
philcrissman has joined #ruby
dblack_ is now known as realDAB
sailias1 has quit [Quit: Leaving.]
sailias has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
iambic has joined #ruby
skattyadz has joined #ruby
dmerrick has joined #ruby
freeayu has quit [Remote host closed the connection]
jlwestsr has joined #ruby
shadowshell has joined #ruby
girija has quit [Ping timeout: 240 seconds]
daniel_- has quit [Ping timeout: 240 seconds]
banister`sleep is now known as banisterfiend
joofsh has joined #ruby
chandlpa has joined #ruby
daniel_- has joined #ruby
`p has quit [Remote host closed the connection]
m3pow has quit [Read error: Connection reset by peer]
peregrine81 has joined #ruby
joshman_ has joined #ruby
arya has joined #ruby
`p has joined #ruby
v0n has joined #ruby
locriani has quit [Remote host closed the connection]
mafolz has quit [Remote host closed the connection]
enebo has joined #ruby
takeru has joined #ruby
aganov has quit [Quit: aganov]
robbyoconnor has quit [Max SendQ exceeded]
nomenkun has quit [Remote host closed the connection]
atmosx has joined #ruby
robbyoconnor has joined #ruby
ferdev has quit [Ping timeout: 240 seconds]
malkomalko has joined #ruby
__Big0__ has joined #ruby
geekbri_ has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
forrest has joined #ruby
ferdev has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
takeru has quit [Ping timeout: 244 seconds]
mockra has joined #ruby
geekbri has quit [Ping timeout: 245 seconds]
locriani has joined #ruby
jjbohn has joined #ruby
zigomir has quit [Quit: zigomir]
tk_ has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
dmiller1 has quit [Ping timeout: 248 seconds]
girija has joined #ruby
mibitzi has quit [Ping timeout: 240 seconds]
slainer6_ has joined #ruby
fff has joined #ruby
mockra has quit [Ping timeout: 244 seconds]
fff is now known as Guest53378
<Guest53378> hi
NiteRain has quit [Ping timeout: 246 seconds]
<hoelzro> ahoy
slainer68 has quit [Ping timeout: 245 seconds]
reset_ has joined #ruby
reset has quit [Read error: Connection reset by peer]
<lectrick> Anyone know of a decent static code analysis tool for Ruby? I found https://github.com/simplabs/excellent but it hasn't been updated in 3 years (mostly) and the small amount of flaws it checks is laughable
<breakingthings> lectrick: codeclimate
slainer6_ has quit [Ping timeout: 245 seconds]
<breakingthings> code-rating as a service.
joofsh has quit [Remote host closed the connection]
Slivka has joined #ruby
sailias1 has joined #ruby
d34th4ck3r has quit [Ping timeout: 255 seconds]
<lectrick> breakingthings: I know of it but is there any way for it to spit out more specific information than "B -> A : String class has *improved*."
<banisterfiend> lectrick: check out zenspider's tools
<banisterfiend> flog/flay,etc
<breakingthings> lectrick: it includes more information than that.
<banisterfiend> lectrick: codeclimate gives u specific information
<banisterfiend> lectrick: if you click on the class it shows you metrics
<lectrick> https://codeclimate.com/github/rails/rails ... "C -> D: ActionDispatch::Request has gotten worse." lol
<lectrick> aha OK
chandlpa has quit [Ping timeout: 245 seconds]
<breakingthings> the rating is merely an indicator that "we found something"
<breakingthings> there's real data in the application.
<breakingthings> take a good look at it and see.
Guest53378 has left #ruby [#ruby]
<lectrick> ok I am impressed. But I still wish the underlying engine was OS
jonahR has joined #ruby
ferdev has joined #ruby
atmosx has quit [*.net *.split]
peregrine81 has quit [*.net *.split]
dmerrick has quit [*.net *.split]
enebo has quit [*.net *.split]
iambic has quit [*.net *.split]
ananthakumaran has quit [*.net *.split]
malkomalko has quit [*.net *.split]
timmow has quit [*.net *.split]
Whoop has quit [*.net *.split]
Rious has quit [*.net *.split]
kpwz has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
soulcake has quit [*.net *.split]
alexspeller has quit [*.net *.split]
Caius has quit [*.net *.split]
witchdoc has quit [*.net *.split]
kseifried has quit [*.net *.split]
Schmidt has quit [*.net *.split]
daaaan has quit [*.net *.split]
tk_ has quit [*.net *.split]
dustint has quit [*.net *.split]
v0n has quit [*.net *.split]
sailias has quit [*.net *.split]
srid has quit [*.net *.split]
regedarek has quit [*.net *.split]
sharpobject has quit [*.net *.split]
DanKnox has quit [*.net *.split]
rolloTomasi has quit [*.net *.split]
vetsin has quit [*.net *.split]
<lectrick> They could charge for support and a fancy UI and still give back to the community with a decent code analyzer that can run locally or as part of a build workflow
apod has quit []
tk_ has joined #ruby
sharpobject has joined #ruby
regedarek has joined #ruby
rolloTomasi has joined #ruby
dustint has joined #ruby
DanKnox has joined #ruby
srid has joined #ruby
vetsin has joined #ruby
v0n has joined #ruby
* breakingthings shrugs
<breakingthings> Ask brynary about it.
malkomalko has joined #ruby
peregrine81 has joined #ruby
enebo has joined #ruby
dmerrick has joined #ruby
atmosx has joined #ruby
iambic has joined #ruby
timmow has joined #ruby
cjk101010 has joined #ruby
Whoop has joined #ruby
ananthakumaran has joined #ruby
kpwz has joined #ruby
alexspeller has joined #ruby
Caius has joined #ruby
Schmidt has joined #ruby
soulcake has joined #ruby
daaaan has joined #ruby
kseifried has joined #ruby
Rious has joined #ruby
witchdoc has joined #ruby
jlwestsr has quit [Ping timeout: 264 seconds]
sailias1 is now known as sailias
daniel_- has quit [Ping timeout: 260 seconds]
bean has joined #ruby
tjbiddle has joined #ruby
codespectator has joined #ruby
amacleod has joined #ruby
alex__c2022 has joined #ruby
harumph has joined #ruby
apok has joined #ruby
bradleyprice has joined #ruby
dmiller1 has joined #ruby
postmodern has quit [Quit: Leaving]
tjbiddle has quit [Ping timeout: 252 seconds]
ffranz has quit [Quit: Leaving]
codezombie has joined #ruby
angusiguess has joined #ruby
elux has quit [Quit: Bye!]
danneu has joined #ruby
ffranz has joined #ruby
poga has joined #ruby
ged has quit [Quit: WeeChat 0.4.0]
<lectrick> hey banisterfiend, do you know of a way to run (for example) 3 ruby tests in a row *after* loading the associated stack of code they are testing *only once*?
jeffreybaird has quit [Quit: jeffreybaird]
decoponio has quit [Quit: Leaving...]
tvw has quit [Ping timeout: 245 seconds]
<lectrick> Also, ever run ruby with the -W switch? Specifically I wanted to know when methods were redefined but wow, there's a lot of spurious output there
<banisterfiend> lectrick: i assume that's totally dependent on the testing library
tomzx_mac has quit [Ping timeout: 255 seconds]
gyre007 has joined #ruby
jeffreybaird has joined #ruby
<lectrick> banisterfiend: Just using minitest... just wondering if there's something out-of-the-box that can do that
<banisterfiend> sry, i dont use minitest, i normall use bacon :)
<banisterfiend> and i just use the simple/standard features
<banisterfiend> normally*
Mon_Ouie has joined #ruby
sonda has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
jlwestsr has joined #ruby
fire has quit [Quit: WeeChat 0.4.0]
<lectrick> how's pry looking on 2.0.0? :)
monkegjinni has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 240 seconds]
<oz> good
apok has quit [Quit: apok]
rickmasta has joined #ruby
<lectrick> someone has told me "no good debuggers on 2.0" and I was suspicious
<lectrick> TIL about bacon.
geggam_wk has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
<banisterfiend> lectrick: who said that? well it's true that 'debugger' doesnt work that well, but it seems to be on the path to getting fixed
chrishunt has joined #ruby
jamesfung14 has joined #ruby
snearch has joined #ruby
elico has quit [Quit: elico]
monkegjinni has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
snearch has quit [Max SendQ exceeded]
<solidoodlesuppor> OK guys. Relatively simple Ruby question: What is the best way to compare / replace with a large number of options? I want to parse a string, and each letter should be replaced by a different letter from a dictionary.
<solidoodlesuppor> Dealing with strings here
ExxKA has joined #ruby
codezombie has quit [Quit: Leaving...]
<strtok> are you making an options file parser ?:)
robbyoconnor has quit [Ping timeout: 256 seconds]
<solidoodlesuppor> Erm, no. Probably didn't work that well. Basically like a simple compiler
atmosx has quit [Quit: And so the story goes…]
jeffreybaird has quit [Quit: jeffreybaird]
<solidoodlesuppor> takes strings like asfkjdkjdafkjdhfdsakjfh and turns each letter into a command in a text file
railsbros_dirk has quit [Quit: railsbros_dirk]
jeffreybaird has joined #ruby
samphippen has quit [Read error: Connection reset by peer]
philcrissman has quit [Remote host closed the connection]
mikurubeam has quit [Ping timeout: 244 seconds]
<macq> solidoodlesuppor: what have you tried allready?
<banisterfiend> solidoodlesuppor: look at String#each_char
samphippen has joined #ruby
<solidoodlesuppor> macq: Nothing. I had some kind of idea to do it with a big gnarly regex, but it seemed dumb to go about it without asking
snearch has joined #ruby
clocKwize has quit [Quit: clocKwize]
snearch has quit [Max SendQ exceeded]
aedornm has joined #ruby
tcstar has joined #ruby
snearch has joined #ruby
snearch has quit [Read error: Connection reset by peer]
rovalent has joined #ruby
<Xeago> so, graduated — what to do now..
<amacleod> solidoodlesuppor, you might try just having a Hash of letter->letter mappings, and only try other things if that's not fast enough.
zastern has joined #ruby
snearch has joined #ruby
pyrac has quit [Ping timeout: 264 seconds]
Kruppe has joined #ruby
<aedornm> Xeago: College?
snearch has quit [Max SendQ exceeded]
maxme has joined #ruby
<Xeago> yea
<Xeago> not sure what the international term is
<amacleod> university?
<Xeago> bachelor of applied sciences of computer engineering now
<Xeago> my school calls itself an university
<Xeago> Zuyd University if you want to look it up
snearch has joined #ruby
<aedornm> Well... graduating college in the US just means you have a pile of bills to pay that you'll probably never be able to in our wonderful economy unless you get a high paying job *right now*
<aedornm> In other countries.. you can go to Disneyland!
<amacleod> Some people just pop out of the end of one university and into the orifice of another.
<Xeago> lol, I don't get to go to disneyland, but every month that I am still enrolled is about 150eur of income
<Xeago> I could do that too amacleod, but the company where I did my final work at (that I presented/defended today at school) isn't financially stable
<Xeago> and I am migrating to that country
<Xeago> and don't want a permit based on a relationship with a company that is unstable
snearch has quit [Max SendQ exceeded]
<aedornm> Time for a start-up business then!
<Xeago> in europe?
<Xeago> maybe
snearch has joined #ruby
sayan has quit [Quit: Leaving]
<Xeago> tho, more interested in joining twitch, twitter, github and sorts
<Xeago> not interested in facebook tho
rovalent has quit [Quit: Linkinus - http://linkinus.com]
generalissimo has joined #ruby
<aedornm> Better do something amazing then
<banisterfiend> i got asked to interview at facebook
snearch has quit [Max SendQ exceeded]
<banisterfiend> they were only offering php work
snearch has joined #ruby
<Xeago> if I have to do php
<shevy> Xeago isn't that damn boring?
<Xeago> it is not going to be web based
mengu has joined #ruby
<Xeago> and not going to involve any form of storage
skattyadz has quit [Read error: Connection reset by peer]
snearch has quit [Max SendQ exceeded]
<aedornm> I have to go hang with some people from Google in a bit... but I just want to sleep
banjara has joined #ruby
m3pow has joined #ruby
io_syl has joined #ruby
<aedornm> Best first impression ever is being like a zombie, right?
hbpoison has quit [Ping timeout: 248 seconds]
jpcamara has quit [Quit: jpcamara]
tvw has joined #ruby
j^2 has joined #ruby
banjara has quit [Client Quit]
Morkel has joined #ruby
<aedornm> CodeClimate ignores files that begin with "test"
d2dchat has quit [Remote host closed the connection]
banjara has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> aedornm lol
<shevy> it's not a bug, it's a feature
apod has joined #ruby
banjara has quit [Client Quit]
stkowski has joined #ruby
joofsh has joined #ruby
chrishough has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<aedornm> shevy: I think it might really be! I just can't find where it says it..
danneu has quit [Ping timeout: 252 seconds]
IrishGringo has joined #ruby
<breakingthings> It ignores files that follow unit test conventions
maxme has left #ruby [#ruby]
freakazoid0223 has joined #ruby
<breakingthings> don't know where it says that on the site
<breakingthings> but it's there
JarJar has quit [Quit: Leaving]
rickmasta has quit [Quit: Leaving...]
mengu has quit [Ping timeout: 245 seconds]
s1n4 has joined #ruby
<aedornm> I don't think lib/test_* is a convention though
<aedornm> Or at least, it should not be. Putting tests in the actual code library directory seems a bit muddy to me
kumavis has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
s1n4 has quit [Client Quit]
pdamer has quit [Quit: pdamer]
jlwestsr has quit [Quit: Ex-Chat]
apod has quit []
fedza has joined #ruby
bradhe has quit [Remote host closed the connection]
astronaute has quit [Ping timeout: 264 seconds]
astronaute has joined #ruby
bradhe has joined #ruby
<breakingthings> aedornm: might be a flaw in the setup :)
<breakingthings> hit up @codeclimate on twitter maybe?
<breakingthings> Bryan's a cool guy, he'll help.
<breakingthings> on an unrelated note, I almost feel bad whenever I say cool because I'm pinging cool.
rickmasta has joined #ruby
<aedornm> heh
frem has joined #ruby
<breakingthings> but then again, he probably would have changed it if it bothered him
<breakingthings> and it's gotta be pretty cool to think that people type 'whois cool' and get him back.
mneorr has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 248 seconds]
nkr has quit [Quit: Linkinus - http://linkinus.com]
Neomex has joined #ruby
LouisRoR has joined #ruby
philcrissman has joined #ruby
IrishGringo has joined #ruby
kaen has joined #ruby
mneorr_ has joined #ruby
Fitzsimmons has joined #ruby
d2dchat has joined #ruby
<aedornm> Sent an email. I uh.. actually don't use Twitter.
mneorr has quit [Ping timeout: 272 seconds]
hbpoison has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
* breakingthings shrugs
<breakingthings> I can yell at him for you if you want
<breakingthings> :)
<breakingthings> (Twitter's a nice place, not that I care whether you use it or not.)
frihd has quit [Quit: Leaving.]
mneorr has joined #ruby
LouisRoR has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
rickmasta has quit [Quit: Be back later]
<aedornm> haha. nah.. I'll probably rejoin Twitter and hitt him up if I don't see a response after Monday. Got too much work to do until then, anyway!
hoelzro is now known as hoelzro|away
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<Fitzsimmons> I've got a loop iterating over a large CSV file and doing several various farily complicated things to manipulate the data and save it into a DB, but there's a massive memory leak somewhere, and I have no idea how to track it down. any suggestions? (1.9.3)
rickmasta has joined #ruby
mneorr_ has quit [Ping timeout: 245 seconds]
tk_ has quit [Quit: ばいばい]
woolite64_ has joined #ruby
woolite64__ has joined #ruby
piotr_ has quit [Ping timeout: 248 seconds]
straind has quit [Read error: Connection reset by peer]
astronaute has quit []
Chryson has joined #ruby
mockra has joined #ruby
woolite64 has quit [Ping timeout: 260 seconds]
<Hanmac> Fitzsimmons depends how you oben the File and read it
woolite64 has joined #ruby
woolite64_ has quit [Ping timeout: 245 seconds]
woolite64__ has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit:]
<Fitzsimmons> Hanmac, well, maybe, but it's about 500 lines of code spread across several classes
woolite64_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
woolite64 has quit [Ping timeout: 248 seconds]
sepp2k has quit [Ping timeout: 245 seconds]
ozgura has quit [Remote host closed the connection]
anonymuse has joined #ruby
endzyme has joined #ruby
sepp2k has joined #ruby
pyrac has joined #ruby
<Hanmac> Fitzsimmons for sample so you use File.read or File.open { } ... and how do you read the CSV? did you use the foreach method?
blacktul_ has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
kumavis has quit [Quit: kumavis]
ffranz has quit [Quit: Leaving]
endzyme_ has joined #ruby
endzyme has quit [Read error: Connection reset by peer]
blacktulip has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
mpfundstein has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
etcetera has quit []
ffranz has joined #ruby
tenmilestereo has joined #ruby
`p has quit [Remote host closed the connection]
krawchyk_ has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
philcrissman has quit [Remote host closed the connection]
<Fitzsimmons> Hanmac, the entire string is in RAM, but that's somewhat irrelevant because the the file might be 2 MB but we're seeing GBs of memory leakage
zoonfafer has quit [Ping timeout: 245 seconds]
girija has quit [Ping timeout: 245 seconds]
<shevy> 500 lines of code
<shevy> spread across several classes
krawchyk has joined #ruby
joofsh has quit [Remote host closed the connection]
<shevy> I have a class with about 2400 lines (including comments though)
<Fitzsimmons> cool story bro
<shevy> yeah, so I can clearly see you are overwhelmed with your 500 lines man
sn0wb1rd has quit [Quit: sn0wb1rd]
Astralum has joined #ruby
dmiller1 has quit [Ping timeout: 244 seconds]
codespectator has quit [Read error: Connection reset by peer]
<shevy> you have not even defined how "large" large actually is for your CSV file
puppeh has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 240 seconds]
ckrailo has joined #ruby
<Hanmac> Fitzsimmons i thought that reading in steps is a better way ...
alvaro_o has joined #ruby
zeade has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
noxoc has quit [Quit: noxoc]
takeru has joined #ruby
newUser1234 has joined #ruby
etcetera has joined #ruby
Al__ has joined #ruby
Mattix has quit [Ping timeout: 246 seconds]
`p has joined #ruby
mikepack has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sandGorgon has joined #ruby
w400z has joined #ruby
Al__ has quit [Client Quit]
khismetix has joined #ruby
havenwood has joined #ruby
carloslopes has joined #ruby
Al__ has joined #ruby
takeru has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: sk87]
yshh has joined #ruby
<shevy> hmm Hanmac does your $LOAD_PATH include '.' ?
statarb3 has quit [Ping timeout: 248 seconds]
Tricon has joined #ruby
dr_bob has left #ruby [#ruby]
psyprus has quit [Changing host]
psyprus has joined #ruby
jpcamara has joined #ruby
kumavis has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
brianpWins has joined #ruby
nachtwandler has joined #ruby
slainer68 has joined #ruby
Mattix has joined #ruby
mercwithamouth has joined #ruby
heliumsocket has joined #ruby
malkomalko has quit [Remote host closed the connection]
atyz has joined #ruby
<Hanmac> shevy never :P
<shevy> hmmmm
<Fitzsimmons> is there any way to profile the heap on ruby 1.9?
sayan has joined #ruby
<yxhuvud> well.
joeycarmello has joined #ruby
<yxhuvud> you could go through Objectspace and count the different types of objects.
mahmoudimus has joined #ruby
<yxhuvud> probably won't help a lot of there are a lot of strings though.
wreckimnaked has quit [Ping timeout: 264 seconds]
<yxhuvud> of -> if
rickmasta has quit [Quit: Leaving...]
<yxhuvud> you could try to divide and conquer your problem domain until you find it
ortuna has joined #ruby
noxoc has joined #ruby
testingb0t has quit [Quit: Leaving.]
mityaz has joined #ruby
__Big0__ has quit [Remote host closed the connection]
codespectator has joined #ruby
mengu has joined #ruby
tylersmith has joined #ruby
dblack__ has joined #ruby
woolite64_ has quit [Ping timeout: 256 seconds]
__Big0__ has joined #ruby
hiroyuki has joined #ruby
<havenwood> Fitzsimmons: What are you trying to find out in particular, or just general profiling?
noxoc has quit [Quit: noxoc]
twoism has joined #ruby
daniel_- has joined #ruby
atyz has quit [Ping timeout: 244 seconds]
jerius has quit [Ping timeout: 244 seconds]
rdark has quit [Quit: leaving]
Choobie has quit [Ping timeout: 260 seconds]
Mattix has quit [Quit: Leaving]
ffranz has quit [Quit: Leaving]
etcetera has quit []
mikurubeam has joined #ruby
rickmasta has joined #ruby
fedza has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
etcetera has joined #ruby
ffranz has joined #ruby
fedza has joined #ruby
thone has joined #ruby
apeiros_ has joined #ruby
browndawg has quit [Quit: Leaving.]
slainer68 has quit [Read error: Connection reset by peer]
thone_ has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
mneorr has quit [Remote host closed the connection]
malkomalko has joined #ruby
<X-Jester> does anyone have a suggestion for monitoring a mongo database for changes besides writing a polling method?
henn1nk has joined #ruby
jerius has joined #ruby
ozgura has joined #ruby
mneorr has joined #ruby
<henn1nk> i have the hash data. at the moment i receive the labels for my pie via data.keys. the count is saved in data.values... now i would like to add the count/data.values to the keys. how can i do this?
jrendell has joined #ruby
tommyvyo has joined #ruby
Vainoharhainen has quit [Ping timeout: 260 seconds]
Qwak has joined #ruby
banjara has joined #ruby
banjara has quit [Remote host closed the connection]
etcetera has quit []
w400z has quit []
My_Hearing has joined #ruby
pdamer has joined #ruby
samphippen has joined #ruby
carloslopes has quit [Read error: Connection reset by peer]
Jeaye has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
Jeaye has left #ruby [#ruby]
carloslopes has joined #ruby
thorncp has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
dmerrick has quit [Ping timeout: 252 seconds]
_carloslopes has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
dmerrick has joined #ruby
Tricon has quit [Quit: Leaving...]
ferdev has quit [Quit: ferdev]
angusiguess has joined #ruby
kevinfagan has quit [Ping timeout: 245 seconds]
<henn1nk> got it
henn1nk has left #ruby [#ruby]
_nitti has quit [Quit: Leaving...]
generalissimo is now known as chill_trep
rupee has joined #ruby
hiroyuki has quit [Ping timeout: 272 seconds]
mpfundstein has joined #ruby
Fitzsimmons has quit [Read error: Connection reset by peer]
dankest has joined #ruby
carloslopes has quit [Ping timeout: 264 seconds]
Fitzsimmons has joined #ruby
<csmrfx> X-Jester: maybe your abstraction library has event hooks
<csmrfx> there may be logs
hiroyuki has joined #ruby
duosrx has quit [Remote host closed the connection]
Tricon has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
uris has joined #ruby
yshh has quit [Read error: Connection reset by peer]
mpfundstein has quit [Remote host closed the connection]
mpfundstein has joined #ruby
arya has quit [Ping timeout: 248 seconds]
chrishough has quit [Quit: chrishough]
rickmasta has quit [Quit: Leaving...]
mephux has quit [Excess Flood]
lledet has joined #ruby
mephux has joined #ruby
chill_trep has quit [Remote host closed the connection]
generalissimo has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
hiroyuki has quit [Ping timeout: 256 seconds]
jrendell has quit [Quit: jrendell]
thone_ has joined #ruby
yshh has joined #ruby
arya has joined #ruby
velCzupa has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
blahwoop has quit [Ping timeout: 255 seconds]
yshh_ has joined #ruby
yshh has quit [Read error: Connection reset by peer]
thone has quit [Ping timeout: 255 seconds]
Es0teric has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
__Big0__ has quit [Remote host closed the connection]
__Big0__ has joined #ruby
blahwoop has joined #ruby
_bart has quit [Ping timeout: 240 seconds]
ExxKA has quit [Quit: This computer has gone to sleep]
breakingthings has quit []
interactionjaxsn has quit [Remote host closed the connection]
monkegjinni has joined #ruby
dankest has quit [Quit: Leaving...]
jrendell has joined #ruby
dmiller1 has joined #ruby
noxoc has joined #ruby
Es0teric has quit [Client Quit]
ph^ has quit [Remote host closed the connection]
pdamer has quit [Quit: pdamer]
chrishough has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Hanmac> shevy google has a new zlib like kompression libary ... they call it "zopfli" :P
ph^ has joined #ruby
<apeiros_> named after a swiss product :)
xardas has joined #ruby
<apeiros_> (which I usually consume on sundays)
dmiller1 has quit [Ping timeout: 245 seconds]
d34th4ck3r has joined #ruby
<Hanmac> yeah and googles next product will be a "Rädli" :P
ferdev has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
<apeiros_> o0
khismetix has quit [Quit: Computer has gone to sleep.]
thinkclay has joined #ruby
duosrx has joined #ruby
<banisterfiend> apeiros_: do you think german is terrifying: http://norberthaupt.files.wordpress.com/2013/02/i-love-you.jpg
dmiller1 has joined #ruby
<apeiros_> no
<apeiros_> you can make almost any language sound terrifying
My_Hearing has quit [Ping timeout: 255 seconds]
whitedawg has quit [Quit: Leaving.]
<amacleod> If Rammstein sang in a programming language, would it be scary?
<LiquidInsect> Yes, if it was PHP.
<Hanmac> :P
<LiquidInsect> but that's scary no matter who sings it
interactionjaxsn has joined #ruby
Neomex has quit [Quit: Neomex]
<shevy> lol
<banisterfiend> apeiros_: kafka said he could never truly love his mother as he ought to due to the german word for mother being/sounding so ugly ;)
<shevy> LiquidInsect and what is Ruby then... a singing sailormoon?
slainer68 has quit [Ping timeout: 272 seconds]
<apeiros_> banisterfiend: he should have listened to rammstein
<apeiros_> they say that word in such a lovely manner
<banisterfiend> apeiros_: what is the german word for mother anyway?
<apeiros_> mutter
<apeiros_> or mama
_carloslopes has quit [Read error: Connection reset by peer]
<Kovensky> it's pretty interesting how "mama" means the same thing in almost all languages
<Kovensky> well, it also means "tits" in portuguese, but that's besides the point
<banisterfiend> mutter doesn't sound fluffy enough, the word for mother should be soft/fluffy
carloslopes has joined #ruby
<apeiros_> that's because the mama aliens implanted it in all of us
Al__ has quit [Quit: Al__]
<banisterfiend> Kovensky: it's an ancient indo-european word, i think the same is true for 'water'
NiteRain has joined #ruby
<banisterfiend> and there's a few other basic words of really ancient origin
<Kovensky> yeah, but oddly it's also in japanese
<banisterfiend> 'digit'
<Kovensky> and there's evidence it was there before the jesuites showed up
<apeiros_> aliens. I tells you!
sn0wb1rd has joined #ruby
<Hanmac> do you want to see the newest joke on the ruby mailing list? http://www.ruby-forum.com/topic/4411519#new
jpcamara has quit [Quit: jpcamara]
Voodoofish430 has joined #ruby
Chryson has quit [Read error: Operation timed out]
noxoc has quit [Ping timeout: 272 seconds]
bonhoeffer_ has quit [Quit: Leaving]
<yxhuvud> well, I wouldn't mind if def returned the symbol name of the function
noxoc has joined #ruby
danneu has joined #ruby
<Hanmac> okay that would be okay too
lledet has quit [Quit: lledet]
<lewix> is mixins in ruby polymorphism
atyz has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
aedornm has quit [Quit: Leaving]
moted has quit [Remote host closed the connection]
ebobby has joined #ruby
undersc0re97 has quit [Read error: Connection reset by peer]
moted has joined #ruby
robert__ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
philcrissman has joined #ruby
mattbl has joined #ruby
atyz has quit [Ping timeout: 272 seconds]
dmiller1 has quit [Quit: WeeChat 0.3.9.2]
<shevy> hmm
heliumsocket has joined #ruby
Chryson has joined #ruby
marr has quit [Ping timeout: 245 seconds]
<shevy> yxhuvud instead of other return types?
<yxhuvud> instead of nil. I suppose a string would suffice as well
zorbyte has quit [Quit: leaving]
robert_ has quit [Ping timeout: 255 seconds]
<dblack__> doesn't def return a method object in rubinius?
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
freakazoid0223 has quit [Read error: Connection reset by peer]
<shevy> dunno, I couldnt even get rubinius to compile :(
jdunck has joined #ruby
jblack has joined #ruby
* dblack__ notices that rubinius on ruby-versions.net is quite old
<dblack__> i really must maintain that stuff better
<dblack__> anyway...
<dblack__> rubinius-1.2.4 :001 > def x; end
<dblack__> => #<Rubinius::CompiledMethod x file=(irb)>
ezekielnoob_ has joined #ruby
<dblack__> i'm not exactly sure what that object does. i can't 'call' it.
<amacleod> Abstractly speaking, it would be kind of nice if such a thing were very much like a lambda.
jblack has quit [Client Quit]
<banisterfiend> amacleod: how do you mean
eldariof has joined #ruby
jrendell has quit [Quit: jrendell]
Takehiro has quit [Remote host closed the connection]
<amacleod> Well, dblack mentioned that he can't 'call' the Rubiniu::CompiledMethod object. My gut feeling is that if def has a return value, that value should be callable like a function.
monkegjinni has quit [Remote host closed the connection]
<banisterfiend> amacleod: is there a use case for that?
<amacleod> Maybe, maybe not.
heliumsocket has quit [Quit: heliumsocket]
<banisterfiend> i think a CompiledMethod object is just rbx exposing its internals, it'll be a wrapper around the bytecode for that method
<banisterfiend> you can probably call methods on it that reveal that bytecode and so on
Takehiro has joined #ruby
twoism has quit [Read error: Connection reset by peer]
<amacleod> I could imagine it being useful for defining a dispatch table, but not eminently easier, syntactically, than just referring to methods by name.
apok has joined #ruby
jblack has joined #ruby
twoism has joined #ruby
<amacleod> Like: dispatch = { zig: def move_zig; end, zag: def move_zag; end }
etcetera has joined #ruby
<amacleod> You could then do something like dispatch[:zig].call, but you could also just call move_zig.
<banisterfiend> amacleod: seems more like a use for lambdas
<amacleod> I'm not sure if that would really even be useful.
jblack has quit [Client Quit]
mpfundstein has quit [Remote host closed the connection]
BRMatt has joined #ruby
<banisterfiend> here's a quick play with them: http://showterm.io/7a87d5910b003806413ee
<banisterfiend> amacleod: ^
bonhoeffer has joined #ruby
<banisterfiend> kind of cool you can pull source of them
<bonhoeffer> how do i split on "\n"
noxoc has quit [Quit: noxoc]
<dblack__> bonhoeffer: string.split(/\n/)
<dblack__> or "\n" if you prefer
<bonhoeffer> got it -- i needed a regex
<bonhoeffer> so "\n" is not working for me
<amacleod> banisterfiend, yeah, that is pretty neat.
<dblack__> bonhoeffer: "a\nb".split("\n")
<dblack__> => ["a", "b"]
himsin has quit [Ping timeout: 260 seconds]
<bonhoeffer> the regex works though
Quebert has joined #ruby
angusiguess has joined #ruby
<banisterfiend> amacleod: though pry can do that anyway, even for methods defined in MRI ;)
breakingthings has joined #ruby
arya_ has joined #ruby
rdark has joined #ruby
<dblack__> bonhoeffer: can you post an example of the non-working string version?
Takehiro has quit [Ping timeout: 244 seconds]
<bonhoeffer> yes -- but i have to clean things up
arya has quit [Ping timeout: 248 seconds]
endzyme_ has quit [Remote host closed the connection]
ph^ has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
blacktul_ has quit [Remote host closed the connection]
nik_-_ has joined #ruby
nik_-_ has quit [Client Quit]
nik_-_ has joined #ruby
<lectrick> amacleod: dblack__ dblack: I have oft wished that a "def" returned a value which was the symbol of the method name, for 2 reasons: 1) the symbol is already created in the C code that actually creates the method. 2) It would allow you to put "private" or "protected" keywords right in front of the def, which I think is kind of elegant.
<banisterfiend> lectrick: that's kind of cool
<amacleod> lectrick, "private" would be a method in an internal domain specific language that just operates on the resulting symbol?
<banisterfiend> amacleod: private already exists
<lectrick> banisterfiend: i know, but when I proposed it to the ruby-lang list, I kind of got shot down, perhaps because I was new?
razibog has joined #ruby
bryanjswift has quit [Ping timeout: 255 seconds]
<dblack__> amacleod: it already is a method
<amacleod> Oh, right. It's normally private :foo \n def foo; end #?
<lectrick> amacleod: no, "private" already takes a symbol as an argument
<lewix> dblack__: the d black?
* amacleod apologizes for his airheadedness. So many languages crammed in there, it's hard to remember what features belong to which :)
<lectrick> normally you do "def foo; end; private :foo" so this would allow you to do "private def foo; end" since "def foo; end" returns :foo
<amacleod> lectrick, yeah, that would be really cool.
<dblack__> lewix: yes, if you mean David A. Black :-)
lledet has joined #ruby
interactionjaxsn has joined #ruby
* dblack__ doesn't know what other "the" d blacks may be lurking :-)
<lewix> dblack__: :-) you're the man
mrsolo has joined #ruby
<dblack__> :-) thanks
<lectrick> amacleod: banisterfiend: well, I am happy to have you guys help me gang up on the ruby list... :)
jblack_ has joined #ruby
<lectrick> amacleod: it's simple but nice, I think
sandGorgon has quit [Ping timeout: 272 seconds]
<LiquidInsect> "No, just a Zaphod Beeblebrox, didn't you hear I come in six packs?"
<lectrick> I mean it would literally probably be a 1 line change of Ruby code
<lectrick> I mean its C code
monkegjinni has joined #ruby
<amacleod> Is the list the approved way to make feature requests? :)
<lectrick> I don't know but they sure didn't seem open to some upstart nerd proposing ideas who has not been greybeard-vetted
kristofers has joined #ruby
cableray has joined #ruby
<lectrick> So if one of you has more clout than I and wants to steal this feather to put in your cap, go nuts
<lectrick> (I'd appreciate the cred, though)
irichlau2 has joined #ruby
<shevy> lectrick just give it a try, file a feature request at https://bugs.ruby-lang.org/projects/ruby-trunk
blahwoop has quit [Ping timeout: 264 seconds]
<shevy> I think I filed about 6 or 7 in total, one or two were accepted (tiny things seem to get accepted much easier)
* dblack__ used to run the official feature request site, RCRchive
<shevy> hehe
<dblack__> long gone
<shevy> dblack__ fame does not last for long, you need to long ahead!
<Hanmac> shevy: WF104 is pointing at you :P
<lectrick> shevy: thanks. on it!
jlwestsr has joined #ruby
<shevy> I mean, look ahead
tish has joined #ruby
<dblack__> shevy: i'm pretty good at longing :-)
<amacleod> look longingly ahead?
<shevy> my brain is not quite concentrated right now ;(
nyuszika7h has quit [Ping timeout: 246 seconds]
<Hanmac> shevy i mean WR104
jjbohn is now known as jjbohn|afk
pnbeast has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
nyuszika7h has joined #ruby
<shevy> what is this prepend functionality?
<shevy> Fixnum.send(:prepend, M)
zodiak has quit [Ping timeout: 245 seconds]
<LiquidInsect> prepends a module to a class (or I guess other module) and puts it BEFORE that class in the ancestor tree
<LiquidInsect> so method lookup would hit the prepended module first
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<shevy> hmm
gyre007 has quit [Ping timeout: 245 seconds]
takeru has joined #ruby
<shevy> can this be done with a class as well?
<LiquidInsect> prepend a class? No
<LiquidInsect> like Module#include and Module#extend
Nisstyre has quit [Quit: Leaving]
kevinfagan has joined #ruby
<LiquidInsect> at least I don't THINK you can
<shevy> this is all a bit confusing
<LiquidInsect> but isn't Class a subtype of Module?
<shevy> this prepending reminds me of subclassing
pyrac has quit [Quit: pyrac]
bryanjswift has joined #ruby
jblack_ has quit [Ping timeout: 252 seconds]
<Hanmac> shevy the called order of an object: singleton methods, extended methods, prepended methods, class methods, included methods, super*
jlwestsr has quit [Quit: Ex-Chat]
<shevy> wt
<shevy> f
ezekielnoob_ has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
<shevy> I think Hanmac does that on purpose
jblack has joined #ruby
<shevy> same why his one liners always look so strange
<shevy> who can remember such a chain just from memory alone!
<lectrick> shevy: dblack__: amacleod: banisterfiend: Done... https://bugs.ruby-lang.org/issues/7998 :)
<shevy> lectrick \o/
<amacleod> Cool :)
takeru has quit [Ping timeout: 257 seconds]
<dblack__> shevy: method lookup goes first to your singleton class, then to any modules mixed into that class; then to your original class, then to any modules mixed in; then to that class's superclass, then to its mixed-in modules…. etc.
codecop has joined #ruby
<lectrick> I don't know if you guys can comment on feature requests like that, but would totally appreciate it if you could
<dblack__> shevy: unless you prepend :-)
sandGorgon has joined #ruby
<shevy> dblack__ grrrr that was the long version, now Hanmac's shorter version looks better :P
jpcamara has joined #ruby
<dblack__> shevy: heh :-)
<shevy> lectrick I could but I could not really comment anything useful so I better don't comment
<shevy> I am, I am not pro, or contra this... I very rarely use protected ...
<dblack__> shevy: we're saying the same thing in slightly different terms
rupee has quit [Quit: Leaving]
<Hanmac> shorted more: singleton,extended,prepended,class,included,super*
<shevy> no wait... I actually never used protected, and private only sometimes when it makes the intent clearer
<shevy> though if someone has a good use case for protected... I am all ears
mneorr has quit [Remote host closed the connection]
<Hanmac> shevy you can use it in an <=> method
velCzupa has quit [Remote host closed the connection]
<Hanmac> self.value <=> other.value #where value are protected methods
<shevy> hmm
<dblack__> Hanmac: except…. if you prepend a module to the singleton class, those prepended methods get called before the object's singleton methods
rupee has joined #ruby
jonahR has joined #ruby
Slivka has quit [Ping timeout: 260 seconds]
<shevy> ...
* dblack__ is already dreading having to revise certain diagrams in edition 2 of the well-grounded rubyist :-)
<LiquidInsect> haha
asobrasil has quit [Remote host closed the connection]
aleph-null has joined #ruby
a_a_g has joined #ruby
krz has quit [Quit: krz]
mpfundstein has joined #ruby
<Hanmac> dblack__ hm maybe but not for normal instance objects like Object.new
werdnativ has joined #ruby
statarb3 has joined #ruby
mneorr has joined #ruby
IrishGringo has quit [Ping timeout: 252 seconds]
rocket has joined #ruby
ckrailo has joined #ruby
_nitti has joined #ruby
Quebert has quit [Ping timeout: 248 seconds]
shevy has quit [Ping timeout: 240 seconds]
__Big0__ has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
<dblack__> Hanmac: any object (just about) can have modules prepended to its singleton class
<dblack__> Hanmac: i'm not saying a lot of them do (or will), but they can :-)
__Big0__ has joined #ruby
<dblack__> Hanmac: that's why i tend to describe the lookup chain in terms of classes and modules rather than methods
<Hanmac> huch you are right ... and PS: an extend is "similar" to an include into singleton class ... i wonder why there is no such command for prepend
bryanjswift has quit [Quit: Computer has gone to sleep.]
<apeiros_> does prepend also invoke something on the module?
chussenot has quit [Quit: chussenot]
<apeiros_> i.e. like extended/included/append_features
<sam113101> an inspection method?
nicoulaj has joined #ruby
atyz has joined #ruby
<sam113101> prepended I think
bonhoeffer has quit [Quit: bonhoeffer]
<Hanmac> fuck i forgot to make my feature request again ... i wanted to change the callback methods extended/included when a exception is raised inside them
horofox_ has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
Chryson has quit [Ping timeout: 272 seconds]
eldariof has quit []
squidBits has joined #ruby
tish has left #ruby [#ruby]
My_Hearing has joined #ruby
atyz has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
Takehiro has quit [Ping timeout: 260 seconds]
himsin has joined #ruby
sayan has quit [Read error: Connection reset by peer]
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
jjbohn|afk is now known as jjbohn
Qwak has quit []
<lewix> dblack__: have you played with rubymotion
mpfundstein has quit [Remote host closed the connection]
swex has quit [Remote host closed the connection]
shevy has joined #ruby
zmanfx has joined #ruby
havenwood has joined #ruby
sgmac has joined #ruby
<dblack__> lewix: played and used it at work (currently working on a ruby motion app for a client)
sgmac is now known as Guest5483
jblack has quit [Ping timeout: 255 seconds]
<zmanfx> so does Ruby 2.0 play nice with clang?
<zmanfx> or should I still build with gcc?
angusiguess has joined #ruby
<lewix> dblack__: ok I'm off to finish your book
<lewix> have a good day everybody
duosrx_ has joined #ruby
<dblack__> see you lewix
<zmanfx> I guess I'll find out
philcrissman has quit [Remote host closed the connection]
duosrx has quit [Read error: Connection reset by peer]
wrench has joined #ruby
bonhoeffer has joined #ruby
<dblack__> zmanfx: with rvm i had to do CC=clang to get it to compile
jeffreybaird has joined #ruby
alexim has joined #ruby
<Hanmac> hm i dont trust clang ...
<zmanfx> dblack__: i assume that's good news for OS X users
<Hanmac> and rubymotion is not a solution for me
t-mart_ has quit [Remote host closed the connection]
<zmanfx> since GCC doesn't ship with Xcode anymore
nomenkun has joined #ruby
kpshek has quit []
<wrench> I'm playing with the dashing gem for building dashboards. I understand from the examples how to feed to a number widget but I can't figure out what to feed the 'List' type widget. I would guess an array -- but can't get that to work. The example looks like its feeding a hash in the job file. Anyone know how to feed data to the 'List' widget in dashing?
<Hanmac> zmanfx can clang build c++ code too?
jeffreybaird has quit [Client Quit]
Guest5483 has left #ruby ["Leaving"]
<dblack__> Hanmac: yes
marr has joined #ruby
<zmanfx> Hanmac: I'm pretty sure it's not only able to build it, but it has great C++ support
yacks has quit [Remote host closed the connection]
slainer68 has joined #ruby
<zmanfx> but yes it must, C++ is supported with Xcode, and if they only ship clang they would have to
n1x has joined #ruby
jblack_ has joined #ruby
<zmanfx> many iOS devs use C and C++ just because Obj-C isn't good with CoreFoundation like frameworks
<zmanfx> and by that i mean, they use it in conjuction
<zmanfx> conjunction
marr123 has joined #ruby
joshman_ has quit [Ping timeout: 272 seconds]
thmz has quit [Ping timeout: 248 seconds]
Jebron has joined #ruby
__Big0__ has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
robert__ is now known as robert_
joshman_ has joined #ruby
marr has quit [Ping timeout: 252 seconds]
heliumsocket has joined #ruby
rupee has quit [Quit: Leaving]
duosrx_ has quit [Remote host closed the connection]
Retistic has joined #ruby
<Hanmac> zmanfx because my gems are i most cases C++ gems for C++ libs ... thats why i need C++
pkrnj has joined #ruby
<shevy> C++ is hardcore
<zmanfx> i'd say it should be fine unless your gems that use C/C++ extensions
<zmanfx> that require
<zmanfx> gcc to compile
<Hanmac> hm i dont think so ... (i check if GCC is used for compile before i use something like __attribute__ ((visibility ("hidden"))))
kpshek has joined #ruby
My_Hearing is now known as Mon_Ouie
sandGorgon has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
mityaz has quit [Quit: See ya!]
ckrailo has quit [Ping timeout: 276 seconds]
marr has joined #ruby
irichlau2 has quit [Ping timeout: 256 seconds]
aleph-null has quit [Remote host closed the connection]
m8 has joined #ruby
sgmac26 has joined #ruby
Takehiro has joined #ruby
mikeg has joined #ruby
chrishough has quit [Quit: chrishough]
sayan has joined #ruby
<robert_> so i18n isn't compiling
sgmac26 is now known as geek
geek is now known as geek_on_the_road
ph^ has joined #ruby
<shevy> robert_ trying to use 2.0 ? :>
<robert_> nope :p
<robert_> 1.9 on freebsd
<shevy> oh I see
<robert_> I'm trying to install nokogiri there.
<robert_> buuut no such luck.
Takehiro has quit [Ping timeout: 245 seconds]
aleph-null has joined #ruby
<csmrfx> robert_: install a network debian inside a vm
etcetera has quit []
<csmrfx> then in a term apt-get install ruby1.9 libnokogiri-ruby1.9
<csmrfx> done
chrishunt has quit [Quit: ZzZzZz...]
<csmrfx> hm, I wonder if freebsd has vbox
mneorr has quit [Read error: Connection reset by peer]
ph^ has quit [Ping timeout: 272 seconds]
punchfacechampio has quit []
punchfacechamp has joined #ruby
<robert_> csmrfx: it's freebsd, though. I can't use linux ELF files in freebsd. the emulation is sort of busted. :p
atyz has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
freakazoid0223 has joined #ruby
<csmrfx> seems there is a project to port vbox to freebsd
jrendell has joined #ruby
<csmrfx> even claims it runs
sayan has quit [Read error: Connection reset by peer]
n1x has quit [Quit: Ex-Chat]
tish has joined #ruby
Dreamer3 has joined #ruby
sandGorgon has quit [Read error: Connection reset by peer]
Kruppe` has joined #ruby
ckrailo has joined #ruby
sandGorgon has joined #ruby
Kruppe has quit [Ping timeout: 272 seconds]
jrendell has quit [Ping timeout: 246 seconds]
fire has joined #ruby
etcetera has joined #ruby
<robert_> csmrfx: Oh, neat.
thmz has joined #ruby
Liquid-- has joined #ruby
beiter has quit [Quit: beiter]
alv-r- has joined #ruby
jeffreybaird has joined #ruby
mehwork has quit [Quit: leaving]
jjbohn is now known as jjbohn|afk
jeffreybaird has quit [Client Quit]
jpcamara has quit [Quit: jpcamara]
<csmrfx> lol crazy to install debian for nokogiri
nOStahl has quit [Quit: Going To Sleep]
jjbohn|afk is now known as jjbohn
nOStahl has joined #ruby
arietis has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Retistic has quit [Quit: Retistic]
lapinferoce has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
huoxito has quit [Quit: Leaving]
heliumsocket has quit [Quit: heliumsocket]
jblack_ has quit [Ping timeout: 260 seconds]
jrendell has joined #ruby
byped has joined #ruby
nOStahl has quit [Quit: Going To Sleep]
<lectrick> oh look it's my programmer theme song http://www.youtube.com/watch?v=HUDKGyXpitw ("Machines Can Do The Work" by Fatboy Slim)
Myconix has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
nOStahl has joined #ruby
reppard has joined #ruby
kirun has joined #ruby
nOStahl has quit [Client Quit]
nOStahl has joined #ruby
ninjanoise has quit [Remote host closed the connection]
<lectrick> This audio is compatible with my interests
mattbl has joined #ruby
dawkirst_ has quit [Ping timeout: 276 seconds]
<csmrfx> *tophat-monocle-fish
<csmrfx> https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQoX6bWRv_0C0sQPauehlLzqGpl_TsWSPQ5SnBEQutPt2zbsyrT
seanmccann has joined #ruby
alv-r- has quit [Quit: Konversation terminated!]
blahwoop has joined #ruby
ddd has quit [Read error: Connection reset by peer]
io_syl has quit [Ping timeout: 264 seconds]
moos3 has joined #ruby
Es0teric has joined #ruby
mikeg has quit [Quit: Leaving]
horofox__ has joined #ruby
geekbri_ has quit [Remote host closed the connection]
io_syl has joined #ruby
endzyme has joined #ruby
horofox_ has quit [Ping timeout: 246 seconds]
irichlau2 has joined #ruby
blahwoop has quit [Ping timeout: 256 seconds]
<lewix> what's the difference between to_s and inspect
mpfundstein has joined #ruby
<lewix> it seems to me that in ruby 1.9> they're the same thing
chrisnicola has joined #ruby
swex has joined #ruby
<gf3> lewix: IIRC in r19 #inspect calls #to_s
fire has quit [Quit: WeeChat 0.4.0]
<gf3> lewix: And does no longer in r20
mpfundstein has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 248 seconds]
danneu has quit [Ping timeout: 256 seconds]
Kruppe` has quit [Remote host closed the connection]
endzyme has quit [Ping timeout: 260 seconds]
<apeiros_> lewix: to_s is for printing, inspect for debugging/introspection
<lewix> gf3: what doe it do in r2
<apeiros_> things like #{} and puts invoke to_s
jpcamara has joined #ruby
<amacleod> One notable difference is when you use 'em on a variable whose value is nil.
<amacleod> x = nil; [x.to_s, x.inspect] => ["", "nil"]
dawkirst_ has joined #ruby
<amacleod> Actually, same is true for literal nil... try nil.to_s and nil.inspect in IRB.
<Mon_Ouie> That's because you call methods on objects, not variables
<lewix> amacleod: is it the only difference you know of
dmerrick has quit [Quit: dmerrick]
<amacleod> (dunno if "literal nil" is actually even a meaningful phrase)
<Mon_Ouie> There are many classes that have different methods for to_s and inspect
<amacleod> lewix, I think it might differ for symbols too, but I can't remember.
<Mon_Ouie> String, Symbol, etc.
<amacleod> I use inspect a lot in diagnostic prints and/or logging.
etcetera has quit []
seanmccann has quit []
<lewix> the difference is not clear clut
aapzak has quit [Read error: Connection reset by peer]
pen has joined #ruby
<lewix> amacleod: you could also use to_s
<amacleod> lewix, not if I want to see that nil is nil and not just an empty string.
<lewix> gf3: can't remember the last time I read C code
etcetera has joined #ruby
<gf3> Just now
<gf3> *wink*
<amacleod> When I'm logging diagnostics, I care about very specifically what the value of a thing is.
<lewix> lol
<amacleod> s/care about very specifically/care very specifically about/
<amacleod> I seem to remember that inspect versus to_s mattered to me for Hashes too, but that may be an old memory from 1.8.x days.
<gf3> lewix: Even just the comments give a good comparison
ckrailo has joined #ruby
TDJACR has quit [Quit: Exiting.]
pyx has joined #ruby
samuel02 has joined #ruby
carloslopes has quit [Remote host closed the connection]
Kruppe` has joined #ruby
aapzak has joined #ruby
skattyadz has joined #ruby
Artheist has joined #ruby
mengu has quit [Quit: Konversation terminated!]
elaptics is now known as elaptics`away
Kruppe` is now known as Kruppe
testingb0t has joined #ruby
TheDick has joined #ruby
rupee has joined #ruby
whowantstolivefo has joined #ruby
peregrine81 has quit [Quit: Goodbye.]
pyx has quit [Quit: WeeChat 0.4.0]
danneu has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
TheDick has left #ruby [#ruby]
pyx has joined #ruby
<Mon_Ouie> The code itself would be kind of irrelevant to the difference anyway, since Object#to_s and Object#inspect do the same thing
swex_ has joined #ruby
swex has quit [Ping timeout: 272 seconds]
takeru has joined #ruby
slainer68 has quit [Remote host closed the connection]
etcetera has quit []
s0ber has quit [Read error: Connection reset by peer]
razibog has quit [Quit: Leaving.]
etcetera has joined #ruby
ebobby has quit [Ping timeout: 248 seconds]
s0ber has joined #ruby
etcetera has quit [Client Quit]
ecto has joined #ruby
razibog has joined #ruby
razibog1 has joined #ruby
razibog1 has quit [Client Quit]
banseljaj is now known as imami|afk
takeru has quit [Ping timeout: 245 seconds]
fedza has quit [Ping timeout: 260 seconds]
dblack__ has quit [Quit: dblack__]
Liquid-- has quit [Quit: Computer has gone to sleep.]
bluesnow has joined #ruby
sn0wb1rd_ has joined #ruby
atno has quit [Remote host closed the connection]
sandGorgon has quit [Ping timeout: 255 seconds]
chrishough has joined #ruby
<bluesnow> Hi, I'm getting confused by this string syntax %{ffmbc -i "#{uri}" -ss #{seek_seconds.to_f+nudge} -t 1 -s #{size}} +
<bluesnow> %{ -r #{fps} -f image2 -y "#{File.join(dump_dir, '%03d.jpg')}" }
<bluesnow> I'm not sure what the % at the start is for
sn0wb1rd has quit [Ping timeout: 272 seconds]
sn0wb1rd_ is now known as sn0wb1rd
<Spooner_> %{} just means the same as "" (but you can put " in it without needing to \")
<havenwood> bluesnow: %{} is a String notation
<bluesnow> ah, I see. Thanks!
testingb0t has quit [Quit: Leaving.]
yalue has quit [Quit: Leaving]
endzyme has joined #ruby
<Spooner_> The string can be wrapped by any character or paired character though (e.g. %() or %!!)
<havenwood> >> p %|i'm a string|
<eval-in> havenwood: Output: "\"i'm a string\"\n" (http://eval.in/11393)
thmz has quit [Ping timeout: 260 seconds]
atno has joined #ruby
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
moos3 has quit [Quit: Computer has gone to sleep.]
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge. Please contact an administrator]
txdv has quit [Ping timeout: 255 seconds]
philcrissman has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
joeycarmello has quit [Read error: Connection reset by peer]
krawchyk has quit [Remote host closed the connection]
joeycarmello has joined #ruby
irichlau2 has quit [Ping timeout: 276 seconds]
blueOxigen has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
ebobby has joined #ruby
atyz has quit [Ping timeout: 248 seconds]
<csmrfx> >> var super-if-case-do-yield-break-finally;
<eval-in> csmrfx: Output: "/tmp/execpad-86eee988b97e/source-86eee988b97e:1: syntax error, unexpected keyword_do_block\nvar super-if-case-do-yield-break-finally;\n ^\n/tmp/execpad-86eee988b97e/source-86eee988b97e: ..." (http://eval.in/11394)
Quebert has joined #ruby
aeontech has joined #ruby
love_color_text has joined #ruby
* csmrfx snaps the whip at execpad
<csmrfx> squeeeal!
poikon_work has joined #ruby
ecto has quit [Quit: Textual IRC Client: www.textualapp.com]
Virunga has joined #ruby
rocket has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
v0n has quit [Read error: Operation timed out]
ckrailo has quit [Quit: Computer has gone to sleep.]
sailias has quit [Ping timeout: 245 seconds]
poikon_work has quit [Ping timeout: 260 seconds]
kpshek has quit []
khismetix has joined #ruby
kpshek has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
wakingideas has joined #ruby
_nitti has joined #ruby
arya_ has quit [Ping timeout: 252 seconds]
geek_on_the_road has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
<zastern> This is stupid but
<zastern> why is false && false # => false
<zastern> Isn't it true that both things are false, or something?
danneu has quit [Ping timeout: 252 seconds]
lapinferoce has quit [Quit: Konversation terminated!]
malkomalko has quit [Read error: Connection reset by peer]
V8Energy has joined #ruby
<burgestrand> zastern: no
tvw has quit []
<burgestrand> zastern: :)
<Morrolan> zastern - '&&' evaluates to true if both are true, not if both are equal.
arya has joined #ruby
malkomalko has joined #ruby
<burgestrand> zastern: false == false # => true
TheFuzzball has joined #ruby
<burgestrand> zastern: && is a different kind of operator
<zastern> oh ok so its just setting a sort of combined truthiness
<zastern> or falsiness
harumph has quit [Ping timeout: 252 seconds]
<zastern> and one false spoils the bunch
<csmrfx> evaluates to
<Morrolan> For example: "If it is not good weather outside (false) and I do not have an umbrella (false) I will not go outside (false)"
<csmrfx> true
<zastern> Morrolan: but that last one sounds like true to me
<burgestrand> zastern: think of it as the condition between two parents.
<zastern> its TRUE that I will not go outside
<burgestrand> zastern: if mom says no, it does not matter what dad says, and vice-versa
<zastern> it's false that i will go outside
love_color_text has quit [Remote host closed the connection]
<burgestrand> zastern: if both say no it’s definitely no!
<Morrolan> Yes, I will not win any price with that example.
<burgestrand> zastern: but if both says yes…
<Morrolan> Especially since it's more of an OR, come to think of it.
<zastern> mm
<zastern> I get it though. Thanks guys.
<Morrolan> \o/
<burgestrand> \o/
<zastern> Code academy is more "this is how this works" not "this is why this works"
<burgestrand> \o\
<zastern> so i was a little confused
codecop has quit [Remote host closed the connection]
<burgestrand> zastern: it’s a part of discrete mathematics (logic math), which is probably why it’s taught in a similar way
<zastern> I wish I had taken more math
<zastern> I'm a weirdo
<zastern> Love computers, hate math.
<zastern> Not a good combonation.
<amacleod> It's never too late to take more math :-)
<elliottcable> learn fun math, instead.
<burgestrand> zastern: it’s pretty much the only part of math needed for basic CS that isn’t commonly taught
<elliottcable> lambda calculus is just fucking interesting.
<elliottcable> no numbers involved.
arya has quit [Ping timeout: 256 seconds]
<amacleod> elliottcable, not even Church numerals?
<csmrfx> plenty of lectures on youtube and academic earth
<csmrfx> CS, Math, Algebra, Number theory....
NemesisD has joined #ruby
<burgestrand> zastern: it’s usually taught by showing you the operator (&&, conjunction, ^), and a table showing you what happens when you give it different things, and you pretty much learn it by heart to use it
<csmrfx> what? functions?
kpshek has quit []
<NemesisD> anyone use Net::SSH? trying to figure out if a command fails, http://stackoverflow.com/questions/3386233/how-to-get-exit-status-with-rubys-netssh-library i cannot fathom how these answers could catch the case where the command fails *at the end* since they register data callbacks *after* checking the 'success' variable
ckrailo has joined #ruby
<amacleod> Is there a name for the operation that is opposite of XOR? That is, if Mom and Dad agree, do it, otherwise don't?
<NemesisD> amacleod: AND?
<burgestrand> :p
<zastern> burgestrand: I'm more about understanding WHY it's true or false, and evaluating in my head. Not good at memorizing tables. Better at using knowledge to figure things out.
<NemesisD> or am i missing something
<amacleod> I mean even if they both say no.
<csmrfx> lel
<zastern> Even if that is slower.
<csmrfx> ! && !
jlast has quit [Remote host closed the connection]
<csmrfx> >> !true && !true
<eval-in> csmrfx: Output: "" (http://eval.in/11399)
<csmrfx> >> (!true && !true).toString()
<eval-in> csmrfx: Output: "/tmp/execpad-73d7b2a365f8/source-73d7b2a365f8:1:in `<main>': undefined method `toString' for false:FalseClass (NoMethodError)\n" (http://eval.in/11400)
huoxito has joined #ruby
<amacleod> csmrfx, that's called lel?
<csmrfx> >> (!true && !true)
<eval-in> csmrfx: Output: "" (http://eval.in/11401)
<amacleod> >> (!true && !true).inspect
<eval-in> amacleod: Output: "" (http://eval.in/11402)
snearch has joined #ruby
<csmrfx> >> (!true && !true) ? console.log(true) : console.log(false)
<eval-in> csmrfx: Output: "/tmp/execpad-4af21b969750/source-4af21b969750:1:in `<main>': undefined local variable or method `console' for main:Object (NameError)\n" (http://eval.in/11403)
arya has joined #ruby
<burgestrand> zastern: yeah, me too, luckily the only other real table you need is for OR (written as || in ruby, disjunction in math), which is true if either side is true, and only false if both sides are false
<NemesisD> lol jesus christ
<csmrfx> >> print "die bot!"
<eval-in> csmrfx: Output: "die bot!" (http://eval.in/11404)
snearch has quit [Max SendQ exceeded]
<csmrfx> >> (!true && !true) ? print(true) : print(false)
<eval-in> csmrfx: Output: "false" (http://eval.in/11405)
<burgestrand> zastern: and by table I mean learn it by heart ;)
soulcake has quit [Quit: ZNC - http://znc.in]
<csmrfx> >> (!false && !false) ? print(true) : print(false) // this, logically
<eval-in> csmrfx: Output: "/tmp/execpad-bc7983d5f93b/source-bc7983d5f93b:1: unterminated regexp meets end of file\n" (http://eval.in/11406)
<csmrfx> lel
<csmrfx> rofl
<csmrfx> >> (!false && !false) ? print(true) : print(false); // this, logically
<eval-in> csmrfx: Output: "/tmp/execpad-9cda437d6a9c/source-9cda437d6a9c:1: syntax error, unexpected tIDENTIFIER, expecting $end\n(!false && !false) ? print(true) : print(false); // this, logically\n ^\n" (http://eval.in/11407)
<amacleod> csmrfx, you clearly suffer from the same affliction I do: too many programming languages in head.
<csmrfx> nm kthx bye
<burgestrand> oO
<burgestrand> what language does it eval in?
<burgestrand> >> print "Hey"
<eval-in> burgestrand: Output: "Hey" (http://eval.in/11408)
* csmrfx goes to wonder why he attempts evaling js in #ruby
<amacleod> Presumably ruby, since this is #ruby :-P
<burgestrand> you never know :P
<burgestrand> >> p RUBY_VERSION
<eval-in> burgestrand: Output: "\"1.9.3\"\n" (http://eval.in/11409)
cantonic_ has joined #ruby
<burgestrand> ^^
<burgestrand> nice to have a bot again
jrendell has quit [Quit: jrendell]
thmz has joined #ruby
nOStahl has quit [Ping timeout: 252 seconds]
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
newUser1234 has quit [Remote host closed the connection]
<burgestrand> hah
<burgestrand> >> Gem.constants.take(2)
<eval-in> burgestrand: Output: "" (http://eval.in/11410)
arya has quit [Ping timeout: 272 seconds]
axl_ has joined #ruby
<burgestrand> >> p Gem.constants.take(2)
<eval-in> burgestrand: Output: "[:QUICKLOADER_SUCKAGE, :GEM_PRELUDE_SUCKAGE]\n" (http://eval.in/11411)
nOStahl has joined #ruby
newUser1234 has joined #ruby
mikurubeam has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
<burgestrand> >> p Gem::Specification.map { |s| s.name }
<eval-in> burgestrand: Output: "" (http://eval.in/11412)
<burgestrand> Ah, no gems, sounds sane.
dayepa has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
arya has joined #ruby
love_color_text has joined #ruby
Morkel has quit [Quit: Morkel]
newUser1234 has quit [Ping timeout: 248 seconds]
huoxito has quit [Ping timeout: 248 seconds]
DrShoggoth has joined #ruby
lewix has quit [Remote host closed the connection]
r0bgleeson has quit [Quit: WeeChat 0.3.8]
lewix has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
DrShoggoth has quit [Max SendQ exceeded]
mark_locklear has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
Mon_Ouie has quit [Ping timeout: 245 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
huoxito has joined #ruby
nOStahl has quit [Quit: Going To Sleep]
byped has quit [Quit: byped]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
dayepa_ has joined #ruby
whowantstolivefo has quit [Ping timeout: 272 seconds]
kraljev2 has joined #ruby
arya has quit [Ping timeout: 252 seconds]
<kraljev2> is there a simple option to iterate Array, along with it's keys?
mercwithamouth has joined #ruby
<kraljev2> arr = [1,2,3]
<kraljev2> arr.each { |key, val|
<kraljev2> }
earthquake has quit [Quit: earthquake]
<interactionjaxsn> arr.each_with_index
mpfundstein has joined #ruby
codespectator has quit [Ping timeout: 272 seconds]
jerius has quit [Read error: Operation timed out]
<kraljev2> you mean #each_index
pdamer has joined #ruby
<kraljev2> that gives just index
<kraljev2> you have to make anotner access
<kraljev2> if you have like this
<breakingthings> I think he means each_with_index.
mattbl has quit [Quit: This computer has gone to sleep]
<breakingthings> >>arr = [1,2,3]; arr.each_with_index { |k,v| puts "#{k}: #{v}" };
<eval-in> breakingthings: Output: "1: 0\n2: 1\n3: 2\n" (http://eval.in/11413)
benlieb has joined #ruby
hiroyuki has joined #ruby
bradleyprice has quit [Remote host closed the connection]
<breakingthings> looks like k,v are backwards there
<breakingthings> >>arr = [1,2,3]; arr.each_with_index { |v,k| puts "#{k}: #{v}" };
<eval-in> breakingthings: Output: "0: 1\n1: 2\n2: 3\n" (http://eval.in/11414)
codespectator has joined #ruby
Gadgetoid has quit [Read error: Connection reset by peer]
<kraljev2> what is a difference between #each_with_index and #with_index?
freakazoid0223 has quit [Read error: Connection reset by peer]
<breakingthings> each_with_index returns both.
<interactionjaxsn> with_index only provides the index
<breakingthings> s/returns/provides
khismetix has quit [Quit: Computer has gone to sleep.]
lewix has quit [Remote host closed the connection]
poga_ has joined #ruby
<banisterfiend> kraljev2: #with_index is kind of more modern, it works on any enumerable method
<interactionjaxsn> also Enumberable#each_with_index and Array#each_index
<banisterfiend> kraljev2: map.with_index
love_color_text has quit [Remote host closed the connection]
arya has joined #ruby
pdamer has quit [Quit: pdamer]
zenergi has joined #ruby
fn_ has joined #ruby
<interactionjaxsn> i think it's important to show that they belong to separate class
tenmilestereo has quit [Quit: Leaving]
<Spooner_> Also, it is with_index(starting_index = 0) (can't do that with the older version).
<banisterfiend> interactionjaxsn: each_index != with_index
reppard has quit [Read error: Connection reset by peer]
reppard has joined #ruby
<banisterfiend> with_index is only defined on Enumerator
<banisterfiend> each_with_index is on Enumerator
<interactionjaxsn> banisterfiend: your right... fat fingers
<LiquidInsect> You mean Enumerable for that last one?
<breakingthings> ^
<banisterfiend> interactionjaxsn: you're*
<banisterfiend> LiquidInsect: yes, sorry
<banisterfiend> Enumerable
poga has quit [Ping timeout: 244 seconds]
sailias has joined #ruby
reppard has quit [Client Quit]
<interactionjaxsn> banisterfiend: would you believe for brevity ;)
<banisterfiend> no:P
pdamer has joined #ruby
endzyme has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
jrendell has joined #ruby
love_color_text has joined #ruby
ryanf has quit [Quit: leaving]
adamjleonard has quit [Quit: Leaving...]
ryanf has joined #ruby
m8 has quit [Read error: Connection reset by peer]
Gadgetoid has joined #ruby
monkegjinni has joined #ruby
m8 has joined #ruby
snugglepus has joined #ruby
tish has quit [Quit: Leaving.]
tommyvyo has joined #ruby
byped has joined #ruby
TheFuzzball has joined #ruby
earthquake has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
jamie_ca has left #ruby [#ruby]
jamie_ca has joined #ruby
jamie_ca has left #ruby [#ruby]
etcetera has joined #ruby
m8 has quit [Quit: Sto andando via]
mattbl has joined #ruby
Catbuntu has joined #ruby
wakingideas has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 252 seconds]
jonahR has quit [Quit: jonahR]
verysoftoiletppr has quit []
fn_ has quit [Remote host closed the connection]
invisime has quit [Quit: Leaving.]
huoxito has quit [Ping timeout: 264 seconds]
verysoftoiletppr has joined #ruby
anonymuse has quit [Quit: Leaving...]
alex__c2022 has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
_nitti has quit [Remote host closed the connection]
joofsh has joined #ruby
arya has joined #ruby
generalissimo has quit [Remote host closed the connection]
alanp_ has joined #ruby
alanp_ has joined #ruby
poikon has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
poikon has joined #ruby
timonv has quit [Remote host closed the connection]
thmz has quit [Ping timeout: 272 seconds]
forrest has quit [Quit: Leaving]
interactionjaxsn has quit [Remote host closed the connection]
mpfundstein has quit [Remote host closed the connection]
angusiguess has quit [Read error: Connection reset by peer]
nik_-_ has quit [Quit: nik_-_]
DrShoggoth has quit [Quit: Leaving]
alex__c2022 has quit [Ping timeout: 272 seconds]
tommyvyo has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
SCommette has quit [Quit: SCommette]
Pandaen has joined #ruby
alanp has quit [Ping timeout: 248 seconds]
etcetera has quit []
poikon has quit [Remote host closed the connection]
iambic has quit [Quit: leaving]
kirun has quit [Quit: Client exiting]
nik_-_ has joined #ruby
poikon has joined #ruby
a_a_g has quit [Quit: Leaving.]
Fitzsimmons has quit [Read error: Operation timed out]
amacleod has quit [Quit: Leaving]
earthquake has quit [Quit: earthquake]
<tommylommykins> (background to this question is that the professional software engineering that I do is very formal)
<tommylommykins> having read the answer to that question
<tommylommykins> my question is
<tommylommykins> why would a customer want to read your unit tests?
cyberflux has joined #ruby
angusiguess has joined #ruby
Virunga has joined #ruby
mattbl has quit [Quit: Leaving]
apok has quit [Quit: apok]
chrishunt has joined #ruby
mattbl has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
<apeiros_> tommylommykins: I guess he wrote "customer" in quotes because a customer may very well be a coder
fixl has joined #ruby
<apeiros_> i.e., you write a lib/gem, you publish it.
breakingthings has quit []
Kruppe has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
d34th4ck3r has quit [Read error: Operation timed out]
endzyme has joined #ruby
<banisterfiend> tommylommykins: i think it's also just personal preference, some ppl prefer the spec style. You can also use nested 'describe' blocks in the spec style to more nicely group things, i haven't figured out an equivalent to that with methods/classes
pdamer has quit [Quit: pdamer]
poga_ has quit [Remote host closed the connection]
poga has joined #ruby
sailias has quit [Quit: Leaving.]
love_color_text has quit [Remote host closed the connection]
<banisterfiend> i also dont agree that: def test_foo; assert(bar, foo); end is significantly more terse than: it 'foo' do; bar.should == foo; end
byped has quit [Quit: byped]
wmoxam has joined #ruby
EPIK has joined #ruby
love_color_text has joined #ruby
<tommylommykins> apeiros_: I interpreted the answer as meaning that coders should be able to read unit::testcase style, but noncoders would find minitest::spec style easier :s
<banisterfiend> tommylommykins: that argument is more applicable to cucumber vs *, rather than spec vs test/unit
niklasb has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
axl_ has quit [Quit: axl_]
nicoulaj has quit [Remote host closed the connection]
Lemtzas has quit [Ping timeout: 260 seconds]
<apeiros_> tommylommykins: if that was indeed the meaning, then I have the same question as you
<apeiros_> I don't think it's realistic that any non-coder reads unit tests
<apeiros_> cucumber features maybe
<apeiros_> but even that is probably rare
soulcake has joined #ruby
soulcake has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
hybris has joined #ruby
Quebert has quit [Ping timeout: 255 seconds]
danblack has joined #ruby
soulcake has joined #ruby
arya has quit [Read error: Connection reset by peer]
dustint has quit [Read error: Operation timed out]
arya has joined #ruby
zastern has quit [Remote host closed the connection]
solidoodlesuppor has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
thmz has joined #ruby
snugglepus has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 252 seconds]
takeru has joined #ruby
verysoftoiletppr has quit []
angusiguess has quit [Ping timeout: 260 seconds]
Pandaen_ has joined #ruby
etcetera has joined #ruby
Pandaen_ has quit [Remote host closed the connection]
j^2 has quit [Ping timeout: 248 seconds]
niklasb has quit [Ping timeout: 260 seconds]
ph^ has joined #ruby
iamjarvo has quit [Quit: Leaving.]
angusiguess has joined #ruby
takeru has quit [Ping timeout: 248 seconds]
love_color_text has quit [Remote host closed the connection]
postmodern has joined #ruby
love_color_text has joined #ruby
jjbohn has quit [Quit: Leaving...]
fir_ed has joined #ruby
<apeiros_> hm, he actually writes "to a non-programmer" - I wouldn't ever show specs to a non-programmer. that's pretty pointless IMO (even if you make it as readable as possible)
huoxito has joined #ruby
thinkclay has quit [Quit: Leaving.]
Nisstyre-laptop has joined #ruby
d2dchat has quit [Remote host closed the connection]
jrendell has quit [Quit: jrendell]
thinkclay has joined #ruby
Voting has quit [Ping timeout: 248 seconds]
ph^ has quit [Ping timeout: 272 seconds]
arya has quit [Ping timeout: 244 seconds]
spider-mario has quit [Remote host closed the connection]
chico_chicote has joined #ruby
mneorr has joined #ruby
snugglepus has joined #ruby
geggam_wk has quit [Remote host closed the connection]
lledet has quit [Quit: lledet]
etcetera has quit []
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
arya has joined #ruby
niklasb has joined #ruby
rburton- has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
daniel_- has quit [Ping timeout: 272 seconds]
monkegjinni has quit [Ping timeout: 272 seconds]
rdark has quit [Ping timeout: 272 seconds]
spider-mario has joined #ruby
mikepack has quit [Remote host closed the connection]
Fitzsimmons has joined #ruby
Fitzsimmons has quit [Changing host]
Fitzsimmons has joined #ruby
etcetera has joined #ruby
adamjleonard has joined #ruby
jrendell has joined #ruby
bradhe has joined #ruby
Virunga has quit [Remote host closed the connection]
<snugglepus> Does ruby have something similar to python's sys.setrecursionlimit? A setting that avoids the stack level too deep error.
zoonfafer has joined #ruby
apok has joined #ruby
<apeiros_> out of curiosity - what does python do when that limit is hit?
reset has joined #ruby
<pnbeast> I think I just accidentally discovered that hash elements may be addressed via array indices, e,g. x={}; #fill x somehow; x.each {|i| puts "#{i[0]} -> #{i[1]}"}. Is it safe & sane to rely on that? I can't find reference to it in the Pickaxe book, though I'm not really sure how to look.
neurotech has joined #ruby
<apeiros_> pnbeast: .each yields key & value
<apeiros_> you only supplied one argument, so you get [key, value]
luckyruby has joined #ruby
<apeiros_> i.e., an array. which - of course - you can access via index
<pnbeast> apeiros_: Yep, that's how I consider it, but those two items are in a two element array?
<apeiros_> yes
<pnbeast> Okay, thank you.
xardas has quit [Read error: Connection reset by peer]
<apeiros_> you can easily inspect that
theRoUS has quit [Ping timeout: 252 seconds]
<apeiros_> >> {a: 1}.each { |x| p x, x.class }; 0
<eval-in> apeiros_: Output: "[:a, 1]\nArray\n" (http://eval.in/11415)
reset_ has quit [Ping timeout: 248 seconds]
<snugglepus> apeiros_, not sure what python does exactly, I just have a large recursion I'm trying to run but am getting the stack too deap error
<apeiros_> snugglepus: ruby isn't very good with recursion. rewrite it to iteration.
<Paradox> the only people who talk about self more than python programmers are narcissists
reset_ has joined #ruby
<pnbeast> apeiros_: Got it; thank you very much.
hashmal has joined #ruby
<apeiros_> yw
JMcAfreak has joined #ruby