apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p385: http://ruby-lang.org (ruby-2.0.0-rc2) || Paste >3 lines of text on http://gist.github.com
ferdev is now known as ferdev|away
_nitti has quit [Ping timeout: 256 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
dagnachew has quit [Remote host closed the connection]
objectivemo_ has joined #ruby
stopbit has quit [Quit: Leaving]
lancepantz_ is now known as lancepantz
thinkclay has joined #ruby
itsdavem has joined #ruby
mmitchell has quit [Ping timeout: 252 seconds]
dagnachew has joined #ruby
SCommette has quit [Quit: SCommette]
bean__ has joined #ruby
bean__ has quit [Client Quit]
stormetrooper has joined #ruby
ferdev|away is now known as ferdev
larissa has joined #ruby
joofsh has quit [Remote host closed the connection]
tehdekan has quit [Remote host closed the connection]
objectivemo has quit [Ping timeout: 245 seconds]
objectivemo_ is now known as objectivemo
jonathanwallace1 has joined #ruby
flyinprogramer has quit [Quit: flyinprogramer]
woolite64 has quit [Ping timeout: 252 seconds]
woolite64_ has joined #ruby
rheoli has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
arya_ has quit [Ping timeout: 248 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
DarkFoxDK has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 255 seconds]
zykes- has quit [Ping timeout: 245 seconds]
v0n has quit [Read error: Operation timed out]
twshelton has joined #ruby
havenwood has joined #ruby
pandawarrior has quit [Quit: Leaving.]
bigmac has quit [Quit: Leaving]
havenn has joined #ruby
matchaw has quit [Read error: Connection reset by peer]
MartinCleaver has quit [Quit: MartinCleaver]
zykes- has joined #ruby
jrendell has joined #ruby
v0n has joined #ruby
tcstar has quit [Ping timeout: 272 seconds]
pandawarrior has joined #ruby
tish has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
geggam has joined #ruby
matchaw has joined #ruby
predator217 has joined #ruby
gaahrdner has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 264 seconds]
gaahrdner has joined #ruby
occupant has quit [Read error: Connection reset by peer]
<cloaked1> Someone please have a look at http://pastebin.com/ZKN5TCpv on lines 76 and 77 showing, seemingly, good data but then I keep getting the error on line 80. New to ruby. Anyone explain why this is happening?
occupant has joined #ruby
wmoxam has joined #ruby
gaahrdne_ has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
DrCode has quit [Ping timeout: 276 seconds]
JonnieCache has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
timols_ has joined #ruby
Matriks has quit [Remote host closed the connection]
JonnieCache has joined #ruby
gtc has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
elux has quit [Quit: Leaving...]
TDJACR has joined #ruby
arya_ has joined #ruby
havenn has joined #ruby
aces1up has quit []
ahokaomaeha has joined #ruby
gtc has joined #ruby
gaahrdner has quit [Ping timeout: 264 seconds]
artOfWar has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
yshh has quit [Remote host closed the connection]
postmodern has joined #ruby
PanPan has joined #ruby
stormetrooper has quit [Quit: Leaving]
ozgura has joined #ruby
jeremywrowe_ has joined #ruby
enebo has quit [Quit: enebo]
mattbl has quit [Quit: This computer has gone to sleep]
havenn has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 256 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
TDJACR has quit [Remote host closed the connection]
jeremywrowe has quit [Ping timeout: 245 seconds]
PanPan has quit [Ping timeout: 255 seconds]
jeremywrowe_ has quit [Ping timeout: 248 seconds]
ishe has joined #ruby
idkazuma has quit [Read error: Connection reset by peer]
sepp2k1 has quit [Remote host closed the connection]
chussenot has joined #ruby
V8Energy has quit []
mfridh has quit [Read error: Operation timed out]
DrCode has joined #ruby
mfridh has joined #ruby
chussenot has left #ruby [#ruby]
hogeo has joined #ruby
havenn has joined #ruby
jonathanwallace1 has quit [Ping timeout: 248 seconds]
dagnachew has quit [Remote host closed the connection]
dankest has joined #ruby
segv- has quit [Quit: segv-]
Setheck has joined #ruby
pbarnes09 has joined #ruby
wyhaines has quit [Remote host closed the connection]
Setheck has left #ruby [#ruby]
wyhaines has joined #ruby
wyhaines has quit [Remote host closed the connection]
codekoala has joined #ruby
nari has quit [Ping timeout: 256 seconds]
<pbarnes09> sure is lively in here
pbarnes09 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- *I* use it, so it must be good!]
jeremywrowe has joined #ruby
tcstar has joined #ruby
havenn has quit [Remote host closed the connection]
<Spooner> cloaked1, Yeah, that makes no sense to me either.
havenn has joined #ruby
<Spooner> cloaked1, We don't put () around if (and you should probably use case method; when "GET"; ...; when "POST"; ...)
codekoala has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
<cloaked1> havenn: the parens wouldn't cause the expression eval to fail like that though, would it?
bubblehead has joined #ruby
cantonic has quit [Quit: cantonic]
<cloaked1> good idea on the case for the METHOD.
<Spooner> cloaked1, Oh no, it is just completely unnecessary, so we leave it off.
<cloaked1> oops, meant spooner. Sorry
<cloaked1> hmm. ok
BrindleFly has joined #ruby
<cloaked1> yeah, coming from a long and strong Perl background. Very tough to stop using parens and whatnots.
<cloaked1> that and I like em.
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
havenn has quit [Ping timeout: 252 seconds]
<Spooner> Thing is that params is presumably a method, so maybe cache it in a local rather than keeping calling it, because obviously it returns nil later (no idea why it would, but that seems most likely).
<cloaked1> hm
<Spooner> Oh, it is just args[:params]. *shrugs*
<cloaked1> yeah
<cloaked1> :)
sn0wb1rd_ has joined #ruby
stkowski has quit [Quit: stkowski]
<cloaked1> had me confused for a sec.
jaygen has quit [Remote host closed the connection]
<Spooner> The other alternative is that request is called twice, one with valid data and once without and it just looks like the error is in #80, when it is actuall yin #76 the second time?
pac1 has joined #ruby
Jake232 has joined #ruby
yshh has joined #ruby
<cloaked1> well, from what I can tell in how the object is getting invoked, it's only being done once from the caller...
<cloaked1> but I can certainly try and double-check that
<Spooner> cloaked1, And another - never use unless/else. if/else (with reversed order of blocks) or just unless.
mattbl has joined #ruby
sn0wb1rd has quit [Ping timeout: 255 seconds]
<Spooner> I'm just guessing...
io_syl has quit [Read error: Connection reset by peer]
sn0wb1rd_ has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 260 seconds]
`brendan has joined #ruby
mattbl is now known as MattRB
<Spooner> Oh: @port ||= 7777
io_syl has joined #ruby
<cloaked1> I try to write the code as human readable as possible to that when I can use if object.nil? I do. Otherwise, I will use unless in place of any expression where it would be written if ! object.nil
<cloaked1> er something like that :)
<cloaked1> if ! object
joshman_ has quit [Ping timeout: 240 seconds]
<Spooner> Yes, but you can do unless x; a; else; b; end but should do if x; b; else; a; end (to avoid using !, that is).
fedza has quit []
<cloaked1> k
<cloaked1> thx!
garbagecollectio has joined #ruby
io_syl has quit [Remote host closed the connection]
BrindleFly has quit [Quit: BrindleFly]
mrsolo has quit [Quit: Leaving]
Chryson has joined #ruby
sn0wb1rd has joined #ruby
<Spooner> cloaked1, #131 the {} are implicit in the method call, so you can throw those away too.
<Spooner> But as to your actual problem, I haven't a clue ;)
<cloaked1> lol. :) thx
<cloaked1> yeah, this is a weerd one!
<cloaked1> er weird
elaptics is now known as elaptics`away
locriani has quit [Read error: Connection reset by peer]
<Spooner> I'd add $std.puts params.class at #75 and #78. Might give a clearer impression. Might not ;)
<cloaked1> $std.puts?
slainer68 has quit [Remote host closed the connection]
<cloaked1> what's that do?
justsee has quit [Quit: Leaving...]
<cloaked1> oh
<cloaked1> nm
locriani has joined #ruby
<Spooner> Mistype. $stderr.
<cloaked1> actually, that's a good idea.
<cloaked1> just a sec.
cupakromer has joined #ruby
BrianJ has joined #ruby
jerikl has quit [Quit: jerikl]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
twshelton has joined #ruby
taoru has joined #ruby
codekoala has joined #ruby
Roa has quit [Ping timeout: 248 seconds]
subbyyy has joined #ruby
k3rn3lito has quit [Ping timeout: 252 seconds]
danneu has joined #ruby
d2dchat has quit [Remote host closed the connection]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
k3rn3lito has joined #ruby
Jake232 has quit [Read error: Connection reset by peer]
nari has joined #ruby
kofno has quit [Remote host closed the connection]
Axsuul has joined #ruby
Jake232 has joined #ruby
v0n has quit [Read error: Connection reset by peer]
bwlang has joined #ruby
<Spooner> By the way, you might prefer to use a Logger: $log = Logger.new($stderr); $log.debug params
<Spooner> Or not ;)
v0n has joined #ruby
<Spooner> (and, of course, you could hide it in MyDB rather than using a global, but I'll leave that to you).
mercwithamouth has quit [Ping timeout: 256 seconds]
SilverKey has quit [Quit: "Sleep now."]
<cloaked1> I have never seen that Logger class before. I'll check that out
dankest has quit [Quit: Leaving...]
<Spooner> It is in the standard lib(require logger), but log4r is an improved gem equivalent.
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<cloaked1> good to know.
io_syl has joined #ruby
<cloaked1> just a sec...grappling with an issue with my changes. :)
jeremywrowe has quit [Quit: jeremywrowe]
<Spooner> Doesn't help you fix the problem, but I'm trying to unperlise you, which is more important anyway :D
cantonic has joined #ruby
<cloaked1> I appreciate it. I am very new to Ruby so any pointers I can get are appreciated.
cantonic has quit [Client Quit]
Kingy has quit [Quit: Leaving]
apeiros has joined #ruby
PanPan has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
dmiller has quit [Quit: WeeChat 0.3.9.2]
niklasb has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
<tjbiddle> Would anyone suggest a different way to traverse up a folder structure to see if .some_folder/ is included apart from this? http://pastie.org/6232608 (Imagine how git works, it recognizes if it's a git repo if there's a .git folder - Something like that)
marr has quit [Ping timeout: 264 seconds]
__BigO__ has joined #ruby
_bart has joined #ruby
invisime has quit [Quit: Leaving.]
Nisstyre-laptop has joined #ruby
<cloaked1> Spooner: NoMethodError - undefined method `code' for nil:NilClass: (from params.class)
<cloaked1> so that's interesting.
mmitchell has joined #ruby
<Spooner> tjbiddle, You could avoid changing the path by using while (current_path = File.expand_path("..", current_path)) (Yes, we _do_ use parens in that case, since we have a = in the expression).
<cloaked1> stand corrected:
<Spooner> tjbiddle, I mean while (current_path = File.expand_path("..", current_path)) != "/"
niklasb has joined #ruby
__BigO__ has quit [Read error: Connection reset by peer]
<tjbiddle> Spooner: Cool - one improvement, thanks! Is that method in general a good way to go about it?
<Spooner> I'd avoid using chdir if you don't need to.
<Spooner> Though I recognise you reset it.
codekoala has quit [Quit: WeeChat 0.4.0]
<cloaked1> actually: TypeError - can't convert Class into String:
<Spooner> Oh, right, I'm used to always using p on debugs (or loggering it). You'd need to to_s or inspect it.
<cloaked1> I've found that Ruby inspect is inferior to Perl's Data::Dumper imho...that said, however, it could be that I'm simply not using the full strength of it.
mercwithamouth has joined #ruby
<cloaked1> k
<Spooner> cloaked1, You want to use pp or ap if you are using large data structures.
goraxe has joined #ruby
bwlang has left #ruby [#ruby]
itsdavem has quit [Remote host closed the connection]
<cloaked1> params.class:Hash
<fuzai> So if i have a string that looks like this "23487c87d3s4d958abc09fe and I know it's exact size, but it's in the middle of a string and I want to catch everyting behind it into a text string how would I got about this? /(\h{25}) (.+)$/
bwlang has joined #ruby
<cloaked1> *interesting*
<fuzai> I think i might answered my own question just asking it
<fuzai> :)
<Spooner> tjbiddle, And I wouldn't assume that Dir.pwd was actually the current directory. User can run a script from anywhere!
<Spooner> tjbiddle, http://pastie.org/6232670
undersc0re97 has quit [Read error: Connection reset by peer]
<Spooner> Oops, I missed a closing parens on #4. You get the idea.
jonahR has joined #ruby
<Spooner> tjbiddle, And obviously #2 might be completely wrong.
NiteRain has quit [Ping timeout: 246 seconds]
horofox has quit [Quit: horofox]
verysoftoiletppr has quit []
undersc0re97 has joined #ruby
_bart has quit [Quit: _bart]
jeremywrowe has joined #ruby
goraxe has quit [Read error: Connection reset by peer]
jrendell has quit [Ping timeout: 240 seconds]
<Spooner> cloaked1, It should be a hash, so that is fine. I was wondering, as I said, whether it ran through more than once with different data say. Clutching at straws.
d2dchat has joined #ruby
endzyme has quit [Ping timeout: 272 seconds]
<cloaked1> Spooner: you could be right. I'm digging into that right now.
Guedes has quit [Ping timeout: 276 seconds]
Jake232 has quit [Read error: Connection reset by peer]
verysoftoiletppr has joined #ruby
Bry8Star has joined #ruby
mengu has quit [Quit: Leaving]
Virunga has quit [Remote host closed the connection]
<cloaked1> Nope. it's all for the same call.
slainer68 has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
<cloaked1> here's something that is interesting
<cloaked1> the if expression is seemingly working
<cloaked1> the expression: params = params['xml'] is what's failing
<Spooner> params = params[xml] is not the same as params = params['xml'] (just noticed, but that would give a different error).
<cloaked1> yeah, fixed that second instance of the expression
<cloaked1> both are 'xml' now
<Spooner> I'd call it xml = params['xml'] though since reusing params might be what is causing you to burst (probably not, but it confused me for a moment)l
<cloaked1> hmm
<Spooner> Which line is failing then, sorry?
<cloaked1> logical
Onii-san has quit [Ping timeout: 240 seconds]
<cloaked1> um, sec
<Spooner> OR do you want to re-paste?
twshelton has quit [Quit: Computer has gone to sleep.]
Jake232 has joined #ruby
<cloaked1> nah, it would take forever to repaste :)
<cloaked1> line 79 was failing but it's not now...so I had to have done something .
d2dchat has quit [Remote host closed the connection]
<Spooner> Yeah, but I imagine your lines have moved around a bit by now ;)
AndChat| has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
<bean> why would it take forever to paste?
<bean> you can usually pastebin from a terminal
havenwood has joined #ruby
Banistergalaxy has joined #ruby
<cloaked1> Spooner: interesting. Switching params = ... to xml = fixes the problem.
<Spooner> Even ctrl-A ctrl-C move to pastbin ctrl-V isn't a big effort ;)
<Spooner> Logical variable naming wins again (though I care not why ;) )
<cloaked1> thx again
aedorn has joined #ruby
etcetera has quit []
slainer68 has quit [Ping timeout: 256 seconds]
Ontolog has quit [Remote host closed the connection]
Onii-san has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
joeycarmello has quit [Remote host closed the connection]
mudfly has joined #ruby
mockra has quit [Remote host closed the connection]
bigkm has quit [Quit: Computer has gone to sleep.]
PanPan has quit [Remote host closed the connection]
techlife has quit [Ping timeout: 244 seconds]
io_syl has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
krz has joined #ruby
mosesaro has joined #ruby
io_syl has quit [Client Quit]
nerd has quit [Quit: WeeChat 0.4.0]
ferdev is now known as ferdev|away
willob has joined #ruby
taoru has quit [Remote host closed the connection]
swills has joined #ruby
hbpoison has joined #ruby
brianpWins has quit [Quit: brianpWins]
megha has joined #ruby
QaDeS__ has joined #ruby
rburton- has joined #ruby
tish has quit [Ping timeout: 255 seconds]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
garbagecollectio has quit [Quit: garbagecollectio]
inao has joined #ruby
cloaked1 has left #ruby [#ruby]
eka has quit [Quit: Computer has gone to sleep.]
QaDeS_ has quit [Ping timeout: 244 seconds]
techlife has joined #ruby
mosesaro has quit [Remote host closed the connection]
d2dchat has joined #ruby
chico_chicote has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
joeycarmello has joined #ruby
nilobject has quit [Quit: nilobject]
Hanmac2 has joined #ruby
io_syl has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
garbagecollectio has joined #ruby
SilverKey has joined #ruby
evenix has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
seich- has quit [Ping timeout: 240 seconds]
aedornm has joined #ruby
pandawarrior has quit [Quit: Leaving.]
yshh has quit [Read error: No route to host]
yshh has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
rburton- has quit [Quit: Leaving...]
squidBits has quit [Quit: whoops]
tish has joined #ruby
stillEPIK is now known as EPIK
kofno has joined #ruby
pothibo has joined #ruby
seich- has joined #ruby
jarred has joined #ruby
havenwood has joined #ruby
itsdavem has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
lenswipe has joined #ruby
<lenswipe> hi guys
horofox has joined #ruby
<jarred> What's a good library for validating, formatting, normalizing phone numbers? I tried using Phony, but it had a tendency to inconsistently remove parts of the phone number
QaDeS__ has quit [Quit: Ex-Chat]
<jarred> (i.e parts besides country codes)
tjbiddle has joined #ruby
bradhe has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
ahokaomaeha has quit [Ping timeout: 255 seconds]
tjbiddle has quit [Client Quit]
thinkclay has quit [Quit: Leaving.]
ahokaomaeha has joined #ruby
maletor has joined #ruby
marcgg_ has quit [Ping timeout: 256 seconds]
Mo0O has quit [Ping timeout: 272 seconds]
arya_ has quit [Ping timeout: 248 seconds]
marcgg has joined #ruby
daniel_- has quit [Ping timeout: 255 seconds]
kofno has joined #ruby
timols_ is now known as timols
Mo0O has joined #ruby
arya_ has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<havenwood> jarred: looks to me like phony is the best option, have you tried submitting an issue ticket on the githubs for the number that borks?
seich- has quit [Ping timeout: 276 seconds]
<havenwood> jarred: Have an example of a number that gets parts removed? I'm curious!
<vabenjamin> jarred you should just use regular expressions
<vabenjamin> jarred can you paste some examples of your problem
<vabenjamin> if you learn regex you can easily create regular expression statements for any new phone number format you encounter as well
pavilionXP has joined #ruby
<vabenjamin> i can help you get started if you need
jpfuentes2 has joined #ruby
<vabenjamin> then again I have a bad habit of re-inventing the wheel every time I program
francisfish has quit [Read error: Connection reset by peer]
ozgura has quit [Read error: Connection reset by peer]
<havenwood> vabenjamin: there are a *ton* of formats though, might be easier to start with phony and fork it and modify the existing methods as you need them?
francisfish has joined #ruby
<lenswipe> can someone tell me what to run to install rails
<jarred> havenwood: A coworker noticed the issue. I'm going to ask him when he comes back what the specific phone numbers he noticed problems with are
ozgura has joined #ruby
matled has quit [Remote host closed the connection]
<havenwood> lenswipe: gem install rails
<lenswipe> havenwood, hmm - I was right then...
<vabenjamin> havenwood probably a better idea to do that
matled has joined #ruby
seich- has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
jekotia has quit [Quit: die();]
<lenswipe> havenwood, bundle install seems to be failing
arya_ has quit [Ping timeout: 248 seconds]
<jarred> vabenjamin: I'm currently using a combination of regex and manual formatting. It's complicated because the phone numbers need to be normalized. If the user types in "+19252008843" for the number, it should store it exactly the same as if they type in "19252008843" or "9252008843"
elux has joined #ruby
<jarred> (I don't care which of those it is, as long as they're the same value. It's probably best if it's "+1925200843" for the sake of verbosity though)
<havenwood> lenswipe: so you successfully installed the rails gem, but can't run `bundle` from a generated rails app
<havenwood> ?
kofno has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<lenswipe> havenwood, well when i do rails new <appname> it installs a bunch of stuff and then fails on the json native gem
<lenswipe> well, fuck
<lenswipe> >: {
maletor has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
ozgura has quit [Read error: Connection reset by peer]
<vabenjamin> jarred Ive done the same thing in Java before for formatting article dates from v arious sources to a standardized format for SQL queries. Basically I just parsed out different portions of each date using different regex patterns and groupings (captures in Ruby I think) to reconstruct dates. I think you could do something similar with phone numbers and it would only take you 6-8 regex tops? Not sure how many different formats you would encounter.
<vabenjamin> If you decide to go that route and need help let me know, or when you get the numbers that were giving you trouble, perhaps we can add some new patterns to phony and build off of it
ozgura has joined #ruby
banjara has quit [Quit: Leaving.]
mlr has quit [Ping timeout: 256 seconds]
<lenswipe> wat do?
sandGorgon has joined #ruby
hogeo has quit [Remote host closed the connection]
tish has quit [Ping timeout: 248 seconds]
hogeo has joined #ruby
stopbit has joined #ruby
chrishough has quit [Quit: chrishough]
ishe has quit [Remote host closed the connection]
marcgg has quit [Ping timeout: 260 seconds]
sn0wb1rd has joined #ruby
NiteRain has joined #ruby
tish has joined #ruby
d2dchat has quit [Remote host closed the connection]
sn0wb1rd has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
dallasm has joined #ruby
<jarred> vabenjamin: I'm tempted to write my own library, but it's probably more sensible to fix Phony (or ensure I wasn't using it wrongly). I'd also like to add an additional format to Phony: (XXX) XXX-XXXX (I guess that's US-centric)
sandGorgon has quit [Ping timeout: 248 seconds]
willob has quit [Quit: Leaving.]
<jarred> My cowroker will probably be back in a half hour and I'll ask him then
hogeo has quit [Ping timeout: 255 seconds]
slainer68 has joined #ruby
marcgg has joined #ruby
thufir_ has joined #ruby
kpshek has joined #ruby
<vabenjamin> regex pattern for (XXX) XXX-XXXX is /\((.*)\)\s(.*)-(.*)\z/
<vabenjamin> I think
<vabenjamin> depends on if the end of the phone number is the end of the string you input into phony
<vabenjamin> area code captured in group 1, first 3 digits in group 2, last 4 in group 3
<vabenjamin> (ruby indexes off of 1 or 0?)
<jarred> It's 0 with arrays, but with count/length it's 1
<vabenjamin> ah ok
<jarred> Yeah, I see. I mean as the outputted format — so I give it a phone number to normalize and later, when I need to format it, it returns (XXX) XXX-XXXX
caleb_io has joined #ruby
<vabenjamin> what is the distinction between normalizing and formatting, maybe im missing that
slainer68 has quit [Ping timeout: 276 seconds]
<vabenjamin> I thought your initial problem was just you are handling a bunch of differently formatted phoen numbers as input, and you need to standardize them all to one format and store the
<vabenjamin> them*
<Spooner> /\((\d{3})\)\s+(\d{3})-(\d{4})\z/ is a bit more sensible. Really, however, the complexity of the regexp is dependent on the amount of leeway you want the user to have in entering a number.
<jarred> vabenjamin: Yeah, that's what I mean
<jarred> I want to output it a specific way too
<jarred> but it's more the input that's the problem, than the output
<vabenjamin> jared for the input, you could just set up a case or if statement to cycle through different potential regex patterns to parse the input number (or add to whatever phoney does, Im not familiar with it)
<vabenjamin> for output, you could just take different substrings for the standardized input and generate a new form for output, couldnt you?
PanPan has joined #ruby
tjbiddle has joined #ruby
<vabenjamin> i think you wouldnt realistically have to create more than a handful of regex patterns to capture nearly all ways people reasonable format their phone number
<jarred> Yeah, it's more the input that's the problem. I guess that, if I remove characters matching "-\(\)\.[a-zA-Z]" from it, then there are like 3-5 cases left
gaahrdne_ has quit [Remote host closed the connection]
<jarred> (and spaces)
adeponte has quit [Remote host closed the connection]
mlr has joined #ruby
<vabenjamin> is the phone number the only part of the string passed as input to the number formatter?
<jarred> Yeah, pretty much
<lenswipe> anyone able to help me with a json problem?
<lenswipe> at least i think it's a json problem
<Spooner> Well, lenswipe, just do what it says (or use 1.9 where json is in the std lib).
<vabenjamin> if you paste the samples of different number types, we can just bang out the regex right now and then all you will have to do is matcch the input to the right egex pattern and go from there
Monie has quit [Quit: Quit]
<lenswipe> Spooner,
chichou has quit [Remote host closed the connection]
[rupee] has quit [Ping timeout: 255 seconds]
<lenswipe> im trying to get devkit and i can't find it
<lenswipe> there is no download link for devkit
<lenswipe> jarred, ty
<jarred> lenswipe: np
<Spooner> Yeah, http://rubyinstaller.org/downloads/ - it is actually on the download page.
<lenswipe> Spooner, not anymore
<vabenjamin> man I cant type worth crap today
<lenswipe> jarred, C:\Rub193\DevKit ?
etcetera has joined #ruby
<jarred> vabenjamin: They'll look like
<Spooner> lenswipe, It is on the download page I just linked.
median has quit []
<jarred> vabenjamin: XXX-XXX-XXXX, +$COUNTRY_CODE XXX-XXX-XXXX, and $COUNTRY_CODE XXX-XXX-XXXX (ignore dashes/spaces)
<jarred> vabenjamin: I'm not sure about international phone numbers though
<lenswipe> Spooner, oh yeah I see it now - my bad
<vabenjamin> so you have the first regex frome arlier
megha is now known as bsd_freak
<jarred> lenswipe: You probably mean C:\Ruby193\DevKit
<lenswipe> jarred, yes - that's what I meant :P
PanPan has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Quit: tjbiddle]
mudfly_ has joined #ruby
bsd_freak is now known as BSD_freak
<jarred> vabenjamin: Yeah, but I'm still unsure because of the international phone numbers — UK phone numbers can look like, "+44 844 335 1801", "0844 335 1801", etc
<jarred> I'll look around for a list of national phone number formats for different countries
<vabenjamin> jarred give me one second to test a regex i just wrote
mudfly has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
<jarred> vabenjamin: Okay
<vabenjamin> jarred if you run an operation to trim white space and remove all non digit characters before matching in regex
<vabenjamin> you could then just parse the entire thing as /(.*?)(\d{3})\s(\d{4})/
<vabenjamin> every time I believe
etcetera has quit []
<vabenjamin> is 44 844 the country code for that UK example
<swarley> string.dropWhile {|x| x !~ /\d/ }
arya_ has joined #ruby
<vabenjamin> ignore that \s btw in my example
<vabenjamin> thats for white space, you dont need it if you remove white space
<jarred> vabenjamin: Hmmm. That works for 10 digit phone numbers (or really, phone numbers that have 2 spaces in them), but it combines country codes with area codes
horofox has quit [Quit: horofox]
<Spooner> swarley, dropWhile? Where are you ;) That would just trim leading spaces anyway (if you did string.chars.drop_while { })
<swarley> oh whoops, I'm in haskell
gaahrdner has joined #ruby
<vabenjamin> you could do .*?\d{3}\d{3}\d{4}
<vabenjamin> im not quite sure what some of the UK patterns are though
<swarley> >> "hello 1234121".chars.drop_while {|x| x !~ /\d/ }.to_a.display
<eval-in> swarley: Output: "[\"1\", \"2\", \"3\", \"4\", \"1\", \"2\", \"1\"]" (http://eval.in/10780)
<swarley> >> "hello 1234121".chars.drop_while {|x| x !~ /\d/ }.to_a.join('')display
<eval-in> swarley: Output: "/tmp/execpad-535fe99eda7b/source-535fe99eda7b:1: syntax error, unexpected tIDENTIFIER, expecting $end\n\"hello 1234121\".chars.drop_while {|x| x !~ /\\d/ }.to_a.join('')display\n ^\n" (http://eval.in/10781)
<swarley> err
<swarley> >> "hello 1234121".chars.drop_while {|x| x !~ /\d/ }.to_a.join('').display
<eval-in> swarley: Output: "1234121" (http://eval.in/10782)
<swarley> It works, technically
`p has joined #ruby
<jarred> vabenjamin: hmmm, I guess really the best to approach it is to only support specific formats of phone numbers, rather than trying to do a catch-all
<Spooner> swarley, Yeah, but you can just lstrip it ;) string.chars.grep(/\d/).join('') might be better.
timols has quit [Quit: timols]
<swarley> >> "hello 1234121".chars.drop_while {|x| x.ord > ?9.ord && x.ord < ?0.ord }.to_a.join('').display
<eval-in> swarley: Output: "hello 1234121" (http://eval.in/10783)
<swarley> whoops LOL
<Spooner> Or string.gsub(/[^\d]+/, '') ;) It is Ruby. No one way.
<swarley> >> "hello 1234121".chars.drop_while {|x| x.ord > ?9.ord || x.ord < ?0.ord }.to_a.join('').display
<eval-in> swarley: Output: "1234121" (http://eval.in/10784)
<swarley> there we go
<vabenjamin> how many different types of patterns are in your data set?
<swarley> That way is probably faster
<swarley> >> "hello 1234121".chars.drop_while {|x| !x.ord.between?(?0.ord, ?9.ord) }.to_a.join('').display
<eval-in> swarley: Output: "1234121" (http://eval.in/10785)
<swarley> there
<Spooner> swarley :D {|x| !x.between?("0", "9") }
<swarley> >> "hello 1234121".chars.drop_while {|x| !x.ord.between?(?0, ?9) }.to_a.join('').display
<eval-in> swarley: Output: "/tmp/execpad-ee2e582c5dd8/source-ee2e582c5dd8:1:in `between?': comparison of Fixnum with String failed (ArgumentError)\n\tfrom /tmp/execpad-ee2e582c5dd8/source-ee2e582c5dd8:1:in `block in <main>'\n\tfrom / ..." (http://eval.in/10786)
<swarley> >> "hello 1234121".chars.drop_while {|x| !x.between?(?0.ord, ?9.ord) }.to_a.join('').display
<eval-in> swarley: Output: "/tmp/execpad-b4c080791c3e/source-b4c080791c3e:1:in `between?': comparison of String with 48 failed (ArgumentError)\n\tfrom /tmp/execpad-b4c080791c3e/source-b4c080791c3e:1:in `block in <main>'\n\tfrom /tmp/ ..." (http://eval.in/10787)
horofox has joined #ruby
<swarley> fail
<swarley> i give up, I'm sure it works
<swarley> I just didn't know there was String#between?
<Spooner> swarley, Test in Pry. Only eval-in when it works ;)
horofox has quit [Client Quit]
alvaro_o__ has quit [Quit: Ex-Chat]
<Spooner> I didn't either, but most comparisons work on strings, so it seemed reasonable.
<jarred> vabenjamin: Just 3. I'm just going to implement those three types I was talking about earlier, and, if there's a plus, expect it to be a full, international phone number
<jarred> Thanks a ton for your help vabenjamin!
<vabenjamin> np if you need any help writing the regex let me know, I do it for work every day so it doesnt take me any time =P
MartinCleaver has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
Banistergalaxy has quit [Ping timeout: 252 seconds]
<swarley> Spooner, I was pretty sure that it would have worked, it was just that everytime I corrected one thing, i broke another because of the scrollback
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
<lenswipe> jarred, so i have the devkit extracted
<lenswipe> jarred, now what?
<Spooner> lenswipe, There should be a readme. If not, there is a .rb file in the main dir you run and it should tell you what to do with it.
horofox has joined #ruby
horofox has quit [Client Quit]
<lenswipe> ok
<jarred> If I remember correctly, there's a file called setup.rb or install.rb in there. Run it (either by double-clicking it, or by running "ruby install.rb" in CMD)
shadowshell has quit [Remote host closed the connection]
<lenswipe> ok
etcetera has joined #ruby
<Spooner> I think it is dk.rb
<vabenjamin> shameless plug: I'm writing a data mining gem for Ruby with algorithms actually implemented in Ruby - every gem I've seen so far is just a wrapper for some python or java code. If you are interested, follow the project at https://github.com/vabenjamin/BrilliantRuby and I'll be updating it slowly but steadily over time as I get the opportunity to port some of my java work to ruby over time. If anyone is good at writing "Ruby"-ish code, I could use
<vabenjamin> some pointers because I write Ruby like I write Java
<lenswipe> jarred, dk.rb?
jonahR has quit [Quit: jonahR]
<jarred> lenswipe: Yeah, that sounds right
<lenswipe> jarred, okay that seems to have worked - should everything be okay now?
<jarred> lenswipe: Yeah, you may need to open up a new command prompt window though — just type "cmd" into it
<Spooner> vabenjamin, Unusual to explicitly return in ruby (e.g. in word_tokenizer, you could just have NLP.work_tokenizer(sentence) without the temp var.
<lenswipe> jarred, i have command prompt with ruby open
<jarred> Yeah, just close it and re-open it again. It needs to refresh your PATH variable — and it only does that when CMD starts up
<Spooner> vabenjamin, And BrilliantRuby should be a module, not a class, since it is not something that is instantiated - just a namespace.
<lenswipe> jarred, no i mean i re-opened it
<lenswipe> :P
kpshek has quit [Ping timeout: 276 seconds]
<lenswipe> jarred,
<lenswipe> Installing json (1.7.7)
<lenswipe> Gem::InstallError: The 'json' native gem requires installed build tools.
<lenswipe> *deskflip*
<jarred> hmmm
arya_ has quit [Ping timeout: 260 seconds]
<jarred> There was a thing
<jarred> try running
<jarred> ruby dk.rb install
<jarred> in cmd
<lenswipe> [INFO] Updating convenience notice gem override for 'C:/Ruby193'
<lenswipe> [WARN] Skipping existing DevKit helper library for 'C:/Ruby193'
pothibo has quit [Quit: pothibo]
joofsh has joined #ruby
<lenswipe> jarred, that seems to be it working now....
<lenswipe> ...that was weird
arya_ has joined #ruby
<lenswipe> jarred, oddly though "rails server" seems to throw a syntax error
<lenswipe> o.o
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<jarred> lenswipe: It's probably unrelated, or try reinstalling rails ("gem install rails")
jonahR has joined #ruby
<lenswipe> okay.jpg ( I have a poor internet connection )
<lenswipe> this should be fun :p
<lenswipe> ...ooohh that was fast!
<lenswipe> actually i think i know why it didnt work - i wasnt in my app dir
<lenswipe> yeah it works now
<lenswipe> D'oh
Jake232 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
MartinCleaver has quit [Quit: MartinCleaver]
`brendan has quit [Read error: Connection reset by peer]
`brendan has joined #ruby
stonevil has joined #ruby
gtuckerkellogg has joined #ruby
twshelton has joined #ruby
Mo0O has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
chimmy has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
twoism has quit [Remote host closed the connection]
itsdavem has quit [Remote host closed the connection]
itsdavem has joined #ruby
Mo0O has joined #ruby
insel has joined #ruby
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
skcin7 has joined #ruby
marcgg has quit [Read error: No route to host]
itsdavem has quit [Remote host closed the connection]
marcgg has joined #ruby
lancepantz is now known as lancepantz_
arya_ has quit [Ping timeout: 256 seconds]
gatopan has quit [Quit: Leaving]
Mo0O has quit [Ping timeout: 276 seconds]
<aedornm> Hmm. I had an urge to do something in Perl...
banjara has joined #ruby
Mo0O has joined #ruby
adeponte has joined #ruby
inao has quit [Read error: Connection reset by peer]
inao_ has joined #ruby
arya_ has joined #ruby
<havenwood> aedornm: Perl6? :P
<havenwood> rakudo star! ⭐
<aedornm> negative
roadt has joined #ruby
Mo0O has quit [Ping timeout: 248 seconds]
twshelton has quit [Quit: Computer has gone to sleep.]
<havenwood> Perl6 deserves its own name as does Perl5, I don't think they should share.
<aedornm> Okay, this is getting annoying and I can't seem to track it down. When I instantiate an FTP session using Net::FTP, there are times when it will just sit there indefinitely. It won't open the session, it won't time out or raise an exception, it will just sit there. Forever.
garbagecollectio has quit [Quit: garbagecollectio]
<aedornm> You would also think that after 500,000 attempts, with a 1% probability of it happening, there would be some sort of pattern.
Mo0O has joined #ruby
hogeo has joined #ruby
snuglepuss has quit [Remote host closed the connection]
kodeart has left #ruby [#ruby]
<aedornm> I guess it's actually closer to 1.5 million now. Adding is hard.
PanPan has joined #ruby
Asher has joined #ruby
jonathanwallace1 has joined #ruby
io_syl has quit [Ping timeout: 256 seconds]
cupakromer has quit []
reset has quit [Ping timeout: 260 seconds]
zph has joined #ruby
zph has quit [Client Quit]
garbagecollectio has joined #ruby
PanPan has quit [Ping timeout: 276 seconds]
yeahgreg has joined #ruby
<yeahgreg> /
<yeahgreg> ,
<yeahgreg> \ ,,..---------.,,, |
<yeahgreg> \, ,-`` | / |
<yeahgreg> , ` / | |
<yeahgreg> ,' `'-.,,,,,,,,,,.--'``` | |
<yeahgreg> / | |
<yeahgreg> / | |
<yeahgreg> / | |
<yeahgreg> | | /
<yeahgreg> \ _,..--------- - | |
<ner0x> How do I do static variables in ruby?
<yeahgreg> ', . '``` . | |
<yeahgreg> ' '- ,,,,,,,--'`` |
<yeahgreg> -` |
<yeahgreg> ,' /
<yeahgreg> / ` |
<yeahgreg> | ,' |
<yeahgreg> | _,,-` |
<yeahgreg> '., __,,,..-''`` |
<yeahgreg> ``'''---''````` |
<yeahgreg> /
<yeahgreg> ,-
<yeahgreg> ,.-'`
<yeahgreg> ,.'`
<yeahgreg> . ,.'`
roadt has quit [Ping timeout: 248 seconds]
<yeahgreg> \ ,-'`
<yeahgreg> \ ,.-``
<yeahgreg> `.,_ _,,.-'``
<yeahgreg> ``
<yeahgreg> â ááááááááááááááááá
<yeahgreg> â á ááá ææææ
<ner0x> As in, the more I call def "do_this" it increments a variable and keeps the value.
<yeahgreg> â á á æææ æ
<yeahgreg> â ,.-á,,_ ææææ æ áá
<yeahgreg> â ,' á `.ääääääää ææææ á æ áá
<yeahgreg> â / äääää . ææææä á æ á
<yeahgreg> äääääääääää á æææææ ä á æ á
<yeahgreg> ää â æææ , ä ààààáààààààæàààààá
<yeahgreg> äâ`. æææ áàààààààààäà á æ áà
<yeahgreg> äääæææ àààà á \ ä á æ á àà
<yeahgreg> ææææææ äääää`'''-á 'ä á æ á à
<yeahgreg> ææææ â ããääää á ä\, á æ á à
<yeahgreg> æææ â ã ääää ä á æ á à
Beoran_ has joined #ruby
<yeahgreg> æææ ã ääää á æ á à
<yeahgreg> âæææ ã á ääääää æ á àà
<yeahgreg> â ææ ã áäá ääää æ àáààà
<yeahgreg> â æææã äá äääæààá
<yeahgreg> àààâàààààààææ áäàáàààààààà æäääá
<yeahgreg> à â àæææàä á æ áääää
<yeahgreg> à â áããæä áá á ää
<yeahgreg> à â áá ä æææ á á ää
<yeahgreg> ää àà â á äã ææ á á äää
speakingcode has joined #ruby
<yeahgreg> ääää ààâàáá ä ã æææ á
<yeahgreg> ääää âáàààààààäàààããà æææááààààà
<yeahgreg> äääá â ä ãàààààááææ à
<yeahgreg> ááá äääâ ä ã á à
<yeahgreg> á äää ä ã áá á ààààà
<yeahgreg> á âäää ãáààààá
<yeahgreg> áàààààààààààâààààààààààááã áá
<yeahgreg> áá â áá ãã á
<yeahgreg> áá ââ áááá á
<yeahgreg> áá áâáá áá
<yeahgreg> áááááá â
statarb3 has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
<Spooner> ner0x, Look up "class instance variables" (do NOT use "class variables").
<havenwood> ner0x: is it instance variables you're looking for?
bnagy has joined #ruby
Beoran__ has quit [Read error: Operation timed out]
statarb3 has joined #ruby
<havenwood> @instance_variable = "i'm a class instance variable"
spaceships has quit [Remote host closed the connection]
dankest has joined #ruby
Spooner has quit [Quit: Leaving]
* ner0x looks it up.
<yeahgreg>  , / 
<yeahgreg>  ` , /  
<yeahgreg>  . . |   
<yeahgreg>  ' `. |   
<yeahgreg>  \ '- |   
<yeahgreg>  `. |   
<yeahgreg> ä  `,|   
<yeahgreg> ää  |   
<yeahgreg> ää  |   
<yeahgreg> ää |  
<yeahgreg> ä |
<yeahgreg> ää | 
<yeahgreg> \`, ää | 
<yeahgreg> | . ää |
<yeahgreg> \ \ ä , ,,,,,,,,.---',`
<yeahgreg> \ \ ää
<yeahgreg> \ \ ä /`
<yeahgreg> \ \ ä ,` ,
<speakingcode> really...
<yeahgreg> \ \ ää / ,.`
<yeahgreg> | `. ää / - /
<ner0x> Has no one kicked this douchebucket yet?
<yeahgreg> \ \ / _. ` /
<yeahgreg> `` , | \ ,` _,-` ,
<yeahgreg> \ ` , \ . ` ,'
<yeahgreg> \ `. | \ .` ,
<yeahgreg> \ `\ \ \ ,' , ,`
<yeahgreg> \ `, \ \ ,' , ` /
<yeahgreg> \ ,\ | / ,-` ,
<yeahgreg> \ ` ` ,-` ,'
<yeahgreg> `. ,-` / '|
<yeahgreg> \ ,'` .` .` ,
<speakingcode> mess
<yeahgreg> , | _-` / ,-` \
<yeahgreg> ,. . -'``` ,' ,-'` ,'
<speakingcode> up
<yeahgreg> ` , .` ,-' ` _,-'``
<yeahgreg> ``''---` `` ` ````
<speakingcode> his
<yeahgreg> --, _
<yeahgreg> ,' `. |
<yeahgreg> / ', ., |
<yeahgreg> | ', ,'` \ |
<yeahgreg> | ', _-` `. |
<yeahgreg> | ', .' \ |
Spooner has joined #ruby
<yeahgreg> | ', ,-` \ |
<yeahgreg> | ',.` \ |
<ner0x> havenwood: So it's just the @@ over the @ variables?
<yeahgreg> \ ,'``. | |
<yeahgreg> \ _-` `. | |
<speakingcode> img***************************************************************************************************************************************************************************************************
<yeahgreg> \ .' `. | |
<yeahgreg> ', ,-` `\ `, | |
<yeahgreg> \_` ___\ ,, . .'` `. | |
<yeahgreg> , _ _ ``|_ | |.,, \, `. / |
<yeahgreg> / / \, \``\ | ',` | \, `. | |
<yeahgreg> \ , | | | \ ' `` `` ``. / /
<wmoxam> herp derp
<yeahgreg> `` ` _,.-'''```````''''--.,,, ` |
<yeahgreg> _.'` |
<yeahgreg> -` |
<havenwood> apeiros: ping ^ channel flooder
<yeahgreg> ,' |
<yeahgreg> ,' _,,,,,, /
<yeahgreg> / ,.-``` \ |
<yeahgreg> | ,.'`` | |
<yeahgreg> ',_ _,-` | |
<yeahgreg> ```''---'` / `
<yeahgreg> ,' /
<yeahgreg> _,-` /
<yeahgreg> | _,.-''` /
<yeahgreg> | ,,,,,,,,,,..---'''```` /
<yeahgreg> \ _.`
<yeahgreg> `-, _,.'
<yeahgreg> ``````````````````````````````
<yeahgreg>  | - ,, _. ,
<yeahgreg>  `\ ' .,,,.-`` \
<yeahgreg>   '' ,_ `
<yeahgreg>  ˆˆˆˆˆ  `````''--,
<yeahgreg>  ˆˆˆˆ  ˆˆˆ  `\
<yeahgreg>  ˆˆˆˆ  ˆˆˆ  |
<yeahgreg> ˆˆˆˆˆˆˆˆˆˆˆˆˆ  ˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆ |
<yeahgreg>   |
stonevil has quit [Ping timeout: 248 seconds]
<yeahgreg> .'''''-, |
<yeahgreg> __ ,-` ¸¸¸¸¸¸¸`', |
<yeahgreg> ††† .'¸¸¸¸ ¸¸ ``''''````''. |
<yeahgreg> † ††††† ¸ ¸ \ /
<yeahgreg> ††|' † | ¸¸¸¸¸¸¸¸¸¸¸ Farting's fun! \ /
<yeahgreg> † ` † / / /
<yeahgreg> †††††† | _,---, ` |
<yeahgreg> /- '., ,.-'` `'-.,,,,,-' /
<yeahgreg> ,- ``` `
<yeahgreg> / -'`` _.-'```````''---'``
<yeahgreg> \ ,,--'``
<yeahgreg> `'''''--'```
<yeahgreg> ,,.-..,
<havenwood> ner0x: @@ is class variables. @ is class instance variables (commonly referred to as instance variables.
<yeahgreg> ,-` `',
<yeahgreg> - ',
<yeahgreg> ,' _,,,,,__
<yeahgreg> / `,.....,``
<yeahgreg> | `| | |
<yeahgreg> _.-`` | ,` /
<yeahgreg> ,` _,-` ,.-` ,`
<yeahgreg> | | | ,,,.-''`` _.'
<yeahgreg> ` ,\ -'''``````````` _,.'`
<yeahgreg> `'-.,,,,,,,,,,----''``` |
<yeahgreg> \ '
aapzak has quit [Ping timeout: 248 seconds]
<yeahgreg> \ `
<yeahgreg> `. ,`
<yeahgreg> `., _.`
<yeahgreg> `''-''`
<yeahgreg> ,
stonevil has joined #ruby
<yeahgreg> g' 4f xM9=* 4g ]&_ 4f A & pMF~~~!
<yeahgreg> J! 7 .q_,N 4~_ ]8B M B' f 0g
<yeahgreg> 0 /! 6^`$ &mQL ]& *jT 0 .8 ~~"W,
Spooner has quit [Client Quit]
<yeahgreg> ]T_ .N *} # pX Nc ]# 0! 0 _# q,_,g0
<yeahgreg> ""~' `^ ~ ` ~' ^ " ~~~ `````
<yeahgreg> _____, ,g, _g
<yeahgreg> ``Z`` _M "" 0&c
<yeahgreg> .I 4&g,_ #V_p
<yeahgreg> $ ___jp y!"~~&
<yeahgreg> wr0#gae ~~~"` "
hogeo has left #ruby ["Leaving..."]
<yeahgreg>
<yeahgreg> QN"MQ & m p q1 gwwmw, mmqpmmv
<yeahgreg> M_ p! F _0Mq *RQ 4$ # 4f
<speakingcode> what a fgt. good ole /ignore
<yeahgreg> N~~^^ ]Y #@_j& QS Muj6 M8*M 0
<yeahgreg> # 0Nmamgq,_0M~^~Mq #& #8 N____ ]#
<yeahgreg> ` `' " ~``~^ ^
<yeahgreg>
<yeahgreg>
yeahgreg has quit [Killed (idoru (Spam is off topic on freenode.))]
psyprus has quit [Ping timeout: 248 seconds]
psyprus has joined #ruby
Eldariof28-ru has joined #ruby
<havenwood> as he goes to look for something else to paste... :P
<havenwood> never seen the fun in it
<speakingcode> need to write a ruby flood-kick bot
<wmoxam> nothing better to do in Middletown NJ I guess
aapzak has joined #ruby
<havenwood> speakingcode: I'd prefer that to having eval-in :P
<havenwood> wmoxam: hehe
<ner0x> havenwood: I'm a bit lax on the terminology because I'm new. I'll try it out.
<ner0x> havenwood: Thanks.
`p has quit [Ping timeout: 248 seconds]
PanPan has joined #ruby
cctv43 has quit [Ping timeout: 264 seconds]
<havenwood> ner0x: TL;DR: use local variables (barewords) when you can, and @instance_variables when you need them, avoid @@class_variables
`p has joined #ruby
rburton- has joined #ruby
<havenwood> definitely avoid $global_variables, but that goes without saying..
Eldariof93-ru has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
ebobby has quit [Quit: Lost terminal]
cctv43 has joined #ruby
twshelton has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
rezzack has quit [Ping timeout: 244 seconds]
Demux has quit [Quit: Bye]
garbagecollectio has quit [Quit: garbagecollectio]
Demux has joined #ruby
<vabenjamin> is there any reason 'input.gsub(/\.{3}/imx,' <elipses> ')' doesn't work but gsub! does
<havenwood> vabenjamin: the bang (!) method modifies the receiver
<vabenjamin> I tried input = input.gsub(
<vabenjamin> that should have done the trick shouldnt it?
`p has quit [Ping timeout: 260 seconds]
<havenwood> vabenjamin: i'd presume so, hm
jonathanwallace1 has quit [Ping timeout: 248 seconds]
<vabenjamin> if I output 'input' inside of the method it looks fine
<vabenjamin> but it returns to another method incorrectly
<vabenjamin> def self.clean_input(input)
<vabenjamin> end
<vabenjamin>
<vabenjamin> input = input.gsub(/\.{3}/m,' <elipses> ').tr(",.!?;:~"," ")
aces1up has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<aces1up> do you guys know what is faster a to get an random hash key/pair or array via hash[hash.keys.sample] or array.sample ???
ahokaomaeha has quit [Ping timeout: 276 seconds]
<havenwood> vabenjamin: ahh, add an `input` to the end of the method so input is returned maybe?
<vabenjamin> I got it actually...I had another method accessing the method I copy pasted
<vabenjamin> and it was malforming the returned value in the method doing the calling :X
<vabenjamin> im a moron
<havenwood> vabenjamin: oooh, was gunna say that is confusing!
<dekz__> what is the typical behaviour with Rake and Rake Multi tasks and their prereqs
<havenwood> aces1up: i'd assume the latter, should be easy to bench on an implementation or two
<aces1up> havenwood ok thanks.
<dekz__> When Running 2 tasks which have the same prerequisite task as a multitask, should the prereq be called twice?
mmitchell has quit [Remote host closed the connection]
byteit101 has quit [Remote host closed the connection]
<havenwood> aces1up: since you're returning an array from the hash before the sample you'd not get the fast lookup advantage
havenwood has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
twshelton has quit [Quit: Computer has gone to sleep.]
lenswipe has quit [Read error: Connection reset by peer]
tcstar has joined #ruby
araujo has quit [Quit: Leaving]
tish1 has joined #ruby
mlr has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
tish has quit [Read error: No route to host]
danneu has quit [Quit: WeeChat 0.3.8]
bubblehead has quit [Remote host closed the connection]
uris has quit [Quit: Leaving]
himsin has quit [Remote host closed the connection]
bigkm has joined #ruby
himsin has joined #ruby
rburton- has quit [Quit: Leaving...]
arya_ has quit [Ping timeout: 260 seconds]
aces1up has quit []
gaahrdner has quit [Remote host closed the connection]
thinkclay has joined #ruby
eldariof has joined #ruby
arya_ has joined #ruby
itsdavem has joined #ruby
DanTheBeastMan has joined #ruby
baroquebobcat has joined #ruby
radic has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
Eldariof28-ru has quit [Ping timeout: 264 seconds]
pac1 has quit [Ping timeout: 260 seconds]
vikhyat has joined #ruby
itsdavem has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
havenwood has joined #ruby
h4mz1d has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
insel has quit []
baroquebobcat has quit [Client Quit]
dhruvasagar has joined #ruby
carlyle has joined #ruby
`p has joined #ruby
<aedornm> Is there a relatively decent way to mimic "dd if=/dev/urandom of=somefile bs=1024 count=size >/dev/null"?
caleb_io has quit [Quit: caleb_io]
macmartine has joined #ruby
baroquebobcat has joined #ruby
nilobject has joined #ruby
io_syl has joined #ruby
arya has joined #ruby
ner0x has quit [Quit: Leaving]
arya_ has quit [Ping timeout: 248 seconds]
elux has quit [Quit: Leaving...]
axl_ has joined #ruby
mahmoudimus has joined #ruby
gtuckerkellogg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rburton- has joined #ruby
yacks has joined #ruby
SilverKey has quit [Quit: "Sleep now."]
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
axl_ has quit [Quit: axl_]
yacks has quit [Read error: Connection reset by peer]
yacks has joined #ruby
pdamer has quit [Quit: pdamer]
locriani has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
locriani has joined #ruby
inao has joined #ruby
inao_ has quit [Read error: Connection reset by peer]
rburton- has quit [Quit: Leaving...]
inao_ has joined #ruby
ananthakumaran1 has joined #ruby
bwlang has left #ruby [#ruby]
inao has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Ping timeout: 240 seconds]
tcstar has quit [Quit: Leaving]
marcgg has quit [Read error: No route to host]
robbyoconnor has joined #ruby
marcgg has joined #ruby
statarb3 has quit [Ping timeout: 248 seconds]
Matip has joined #ruby
flyinprogramer has joined #ruby
decoponio has joined #ruby
arya has quit [Ping timeout: 248 seconds]
etcetera has quit []
hashmal has quit [Quit: Computer has gone to sleep.]
sayan has quit [Read error: Connection reset by peer]
Mattix has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
DanTheBeastMan has quit [Quit: WeeChat 0.3.7]
arya has joined #ruby
megha has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
thinkclay has quit [Quit: Leaving.]
BSD_freak has quit [Ping timeout: 240 seconds]
aspen has joined #ruby
havenwood has quit [Remote host closed the connection]
divout has joined #ruby
baroquebobcat has joined #ruby
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
h4mz1d has quit [Ping timeout: 248 seconds]
rburton- has joined #ruby
ryanf has quit [Quit: leaving]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
sambio has quit []
MattRB has quit [Quit: This computer has gone to sleep]
aspen has quit [Quit: WeeChat 0.3.9.2]
baroquebobcat has quit [Quit: baroquebobcat]
undersc0re97 is now known as Ethan
havenwood has joined #ruby
joofsh has quit [Remote host closed the connection]
flyinprogramer has quit [Quit: flyinprogramer]
skattyadz has joined #ruby
jeremywrowe has quit [Quit: jeremywrowe]
etcetera has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
mmitchell has joined #ruby
Eldariof-ru has joined #ruby
CreativeEmbassy has joined #ruby
ABK has joined #ruby
a_a_g has joined #ruby
lepht_afk has quit [Ping timeout: 244 seconds]
jkbbwr has quit [Ping timeout: 244 seconds]
eldariof has quit [Ping timeout: 255 seconds]
mmitchell has quit [Ping timeout: 260 seconds]
mudfly_ has quit [Quit: Leaving]
jkbbwr has joined #ruby
dmiller has quit [Ping timeout: 255 seconds]
gosshedd has joined #ruby
stopbit has quit [Quit: Leaving]
lepht_afk has joined #ruby
codezombie has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
CreativeEmbassy has joined #ruby
arya has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
ananthakumaran1 has quit [Ping timeout: 240 seconds]
sayan has quit [Read error: Connection reset by peer]
CreativeEmbassy has quit [Client Quit]
thinkclay has joined #ruby
skattyadz has quit [Quit: skattyadz]
baroquebobcat has joined #ruby
arya has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
meoblast001 has quit [Remote host closed the connection]
ryanf has joined #ruby
ABK has quit [Ping timeout: 260 seconds]
CreativeEmbassy has joined #ruby
SilverKey has joined #ruby
lemonsparrow has joined #ruby
<lemonsparrow> Is TDD specific to any specific application or is it applicable in all areas?
ahokaomaeha has joined #ruby
Jackneill has joined #ruby
<Hanmac1> lemonsparrow what is TDD?
chrishough has joined #ruby
<lemonsparrow> Test Driven Development
Jackneill has quit [Read error: Connection reset by peer]
<Hanmac1> hm i think you can do it with rubynonrails too
carlyle has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
_jc has joined #ruby
_jc has quit [Client Quit]
<aedornm> Hmmmm.. think FakeFTP needs a robust update.
inao_ has quit [Read error: Connection reset by peer]
inao has joined #ruby
mockra has joined #ruby
radic has quit [Ping timeout: 276 seconds]
ABK has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
<dawkirst> silly syntactical question: why must I go YAML::dump(o) but with JSON it's JSON.dump(o)?
nanothief has joined #ruby
adeponte has quit [Remote host closed the connection]
noop has joined #ruby
dmonjo has joined #ruby
<aedornm> You should be able to do either way
<aedornm> as in YAML::dump == YAML.dump
<aedornm> same with JSON
codecop has joined #ruby
sayan has joined #ruby
havenwood has quit [Remote host closed the connection]
radic has joined #ruby
abionic has joined #ruby
gosshedd has quit [Ping timeout: 264 seconds]
generalissimo has joined #ruby
lethjakman has joined #ruby
Slivka has joined #ruby
ABK has quit [Ping timeout: 248 seconds]
<dawkirst> aedorn, ok, thanks
kenneth has quit [Quit: kenneth]
wmoxam has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
twoism has joined #ruby
jarred has left #ruby [#ruby]
ryanneufeld has joined #ruby
krainboltgreene has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
lethjakman has quit [Ping timeout: 248 seconds]
gosshedd has joined #ruby
twoism has quit [Remote host closed the connection]
mattbl has joined #ruby
krainboltgreene has quit [Client Quit]
twoism has joined #ruby
krainboltgreene has joined #ruby
CMFD has joined #ruby
lethjakman has joined #ruby
kx has quit [Ping timeout: 255 seconds]
etcetera has quit []
<shevy> ryanneufeld the pickaxe is better I suppose
cha1tanya has joined #ruby
mockra has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
<shevy> dawkirst you will usually be able to use . rather than :: for methods
<shevy> I think there are too many tutorials using YAML::dump for no real reason
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<Mon_Ouie> Probably because why_ used that conventation
Eldariof-ru has quit []
kx has joined #ruby
carlyle has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
thufir_ has quit [Quit: Leaving.]
carraroj has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<dawkirst> aedorn, what's the easiest way to append to a hash?
<Mon_Ouie> Just set a value to a new key: hash[key] = value
cha1tanya has quit [Ping timeout: 260 seconds]
rburton- has quit [Quit: Leaving...]
CMFD has quit [Remote host closed the connection]
vikhyat has quit [Ping timeout: 248 seconds]
carlyle has quit [Ping timeout: 245 seconds]
<apeiros> and if it's an old key, delete it, then set it
* apeiros thinks since hashes are now ordered, they really need stuff like sort, sort!, sort_by, sort_by!, unshift(key, value) and push(key, value)
dmiller has joined #ruby
<apeiros> maybe different names for unshift & push since they work differently than Array's counterparts
<apeiros> prepend/append?
<Hanmac1> the bad thing is that its inseration orderd ... so new pairs will not added at the end (it may be wanted)
<fuzai> can do |val| end almost always be replaced by { |val| }?
<Hanmac1> fuzai yes and no ... it depends on the usage of () ... p m do |val| end is different from p m {|val| }
<apeiros> Hanmac1: "new pairs will not added at the end", um, yes? that's what Hash does now. Add new pairs at the end.
mattbl has quit [Quit: This computer has gone to sleep]
<fuzai> I had client.room.listeners.each do |user| ….. end and i want to replace it with client.room.listeners.each { |user| ……. }
vikhyat has joined #ruby
<fuzai> it's just in a tight spot to debgu
<fuzai> debug
<Hanmac1> apeiros_ really? ... i need to debug it (is it new?)
<fuzai> client.room.listeners.each { |user| user.boot('You are on the blacklist.') if blacklist.include?(user.id) }
<apeiros> Hanmac1: ever since Hashes became ordered
<Hanmac1> >> def m(*args) ;p block_given?;end; p m m {|v|}
<eval-in> Hanmac1: Output: "true\nfalse\nfalse\n" (http://eval.in/10795)
<Hanmac1> >> def m(*args) ;p block_given?;end; m m do |v| end
<eval-in> Hanmac1: Output: "false\ntrue\n" (http://eval.in/10796)
<Hanmac1> fuzai did you see the difference? but in your case they should act equal
<fuzai> i'm trying to digest that
generali_ has joined #ruby
<apeiros> `foo bar do … end` is `foo(bar) do … end`
<apeiros> `foo bar { … }` is `foo(bar { … })`
<Hanmac1> apeiros o sorry i mean it different ... yeah new keys gets at the end, but old keys stay at the position
<apeiros> different precedence
<apeiros> Hanmac1: aha, ok, that was not clear from what you said :)
sieson has joined #ruby
<Hanmac1> fuzai its the same with && and "and" they are also different in the precedence
timols has joined #ruby
<fuzai> ok
<fuzai> so if i don't care about order it doesn't matter
<fuzai> i can use either one?
<sieson> Can anyone comment on whats happening in this small code snippet https://gist.github.com/spadidar/4993467 ?
ananthakumaran1 has joined #ruby
generalissimo has quit [Ping timeout: 248 seconds]
Ethan has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
<Hanmac1> sieson: n and h are the same object, not a copy
<sieson> Hanmac1: I dont think thats the case. Setting n to empty wont affect h
rburton- has joined #ruby
Slivka has quit [Remote host closed the connection]
<Mon_Ouie> Because the '=' operator is not a method
itsdavem has joined #ruby
<Mon_Ouie> It changes the object the left hand side refers to
yacks has quit [Ping timeout: 252 seconds]
Weazy has quit [Ping timeout: 245 seconds]
<sieson> Mon_Ouie: So to clarify, its the same object but you can modify that object only when you call a method on that object? If n is reference to h, what does n = {} do?
<Mon_Ouie> n becomes a reference to a new, empty hash
dankest has quit [Quit: Leaving...]
gosshedd has quit [Ping timeout: 255 seconds]
<Mon_Ouie> (variables aren't object. They're references to objects)
generali_ has quit [Remote host closed the connection]
<sieson> Mon_Ouie: right. But if you do n[:b] = {} that also gets added to h after you have run n = {}. How is that possible?
<dawkirst> thanks Mon_Ouie, apeiros
<Mon_Ouie> Because when you call the Hash#[]= method, n and h are the same objects
thinkclay has quit [Quit: Leaving.]
ananthakumaran1 has quit [Ping timeout: 252 seconds]
<Mon_Ouie> (well, references to the same object)
ananthakumaran has joined #ruby
Morkel has joined #ruby
itsdavem has quit [Ping timeout: 244 seconds]
<Mon_Ouie> Since the object is the one that's being modified, not the variable, you can see the change in both h and n
<sieson> Mon_Ouie: ok, so n and h are references to the same object, but how come when you set n = {} (a new hash) its still pointing to the old hash?
banjara has quit [Remote host closed the connection]
<Mon_Ouie> It's not anymore
<Mon_Ouie> If you run n[:foo] = bar after that it won't affect h
<Hanmac1> i think he missunderstood the []= part
<sieson> Mon_Ouie: ah I got it. The Trie implementation (http://en.wikipedia.org/wiki/Trie) confused me. Thanks for the explanation.
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<Mon_Ouie> Oh, 'x && true'
mercwithamouth has joined #ruby
<Mon_Ouie> I hadn't seen that version of 'object -> bool' yet
<apeiros> it isn't
<apeiros> nil && true # => nil, not bool
<Mon_Ouie> Ah, right
<apeiros> damn swiss socks
<apeiros> all with holes…
<apeiros> :-S
<Mon_Ouie> Not sure there's a point, considering node[:end] will be true or nil in this case
* apeiros off, cya guys
elico has joined #ruby
apeiros has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 256 seconds]
<Hanmac1> i think the Trie#build method in ruby can be more fun with inject
ananthakumaran has quit [Ping timeout: 256 seconds]
<sieson> Hanmac1: how would you do it with inject?
<Mon_Ouie> inject(@root) { |ch, node| node[ch] = {} }[:end] = true
<Hanmac1> str.each_char.inject(@root) {|ch,node| node[ch] ||= {} }[:end]=true
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<Mon_Ouie> Oh, yeah, it should still be ||=
<sieson> this is much easier to understand
cha1tanya has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
<Hanmac1> sieson oh sorry we both Mon_Ouie got fooled by inject ... its str.each_char.inject(root){|node,ch|node[ch] ||= {}}[:end]=true
etcetera has joined #ruby
ABK has joined #ruby
abionic has quit [Quit: Leaving]
<Mon_Ouie> Indeed. I usually get it right :p
<shevy> I dont know why but somehow Hanmac1 has the ugliest code out there!
<Mon_Ouie> I'd probably make root = Hash.new { |h, k| h[k] = Hash.new(&h.default_proc) }
<Mon_Ouie> So it would just be inject(root, :[])[:end] = true
etcetera has quit [Client Quit]
yacks has joined #ruby
<sieson> woa thats pretty clean
gosshedd has joined #ruby
<Mon_Ouie> Gotta go too, bye
yacks has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
<Hanmac1> beware! hashes with default_proc are not dumpable
<Hanmac1> sieson: and the find method will me (str.each_char.inject(root) {|node,ch| node[ch]}||{})[:end]==true
yacks has joined #ruby
Morkel_ has joined #ruby
JoeyJoeJo has quit [Ping timeout: 245 seconds]
etcetera has joined #ruby
b1rkh0ff has quit [Ping timeout: 260 seconds]
gosshedd has quit [Read error: Operation timed out]
<Hanmac1> shevy do you know:
<Hanmac1> >> p :abc[1]
<eval-in> Hanmac1: Output: "\"b\"\n" (http://eval.in/10797)
m3pow has quit [Read error: Connection reset by peer]
Morkel has quit [Ping timeout: 276 seconds]
Morkel_ is now known as Morkel
<shevy> ewwww
<shevy> but yeah
<shevy> they changed that
<shevy> I myself still specify the range
Mon_Ouie has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
<Hanmac1> you mean like:
<Hanmac1> >> p :abcde[1..2]
<eval-in> Hanmac1: Output: "\"bc\"\n" (http://eval.in/10798)
a_a_g has quit [Quit: Leaving.]
voodoofish has quit [Quit: Leaving]
<sieson> Hanmac1: thanks for the find
sieson has left #ruby [#ruby]
Hanmac1 has quit [Quit: Leaving.]
workmad3 has joined #ruby
<scepticulous> does anyone know how to disable the "pem password" prompt of ruby-openssl, when no password is provided when reading a password protected private-key?
atyz has joined #ruby
sayan has quit [Read error: Connection reset by peer]
elico has quit [Quit: elico]
radic has quit [Ping timeout: 252 seconds]
b1rkh0ff has joined #ruby
tjbiddle has joined #ruby
andikr has joined #ruby
radic has joined #ruby
tjbiddle has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
lemonsparrow has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
Hanmac has quit [Client Quit]
Hanmac has joined #ruby
Loaft has joined #ruby
etcetera has quit []
radic has quit [Read error: Operation timed out]
subbyyy_ has joined #ruby
radic has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
u- has joined #ruby
sayan has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
mafolz has joined #ruby
sayan has quit [Max SendQ exceeded]
sayan has joined #ruby
horofox has joined #ruby
horofox has quit [Client Quit]
Elhu has joined #ruby
havenwood has joined #ruby
mlr has joined #ruby
SilverKey has quit [Quit: "Sleep now."]
krainboltgreene has quit []
etcetera has joined #ruby
etcetera has quit [Client Quit]
jprovazn has joined #ruby
arya_ has joined #ruby
aganov has joined #ruby
dr_bob has joined #ruby
timols has quit [Quit: timols]
dmiller has joined #ruby
Asher has quit [Quit: Leaving.]
arya has quit [Ping timeout: 256 seconds]
Asher has joined #ruby
razibog has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
eldariof has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
dankest has joined #ruby
arya_ has quit [Ping timeout: 276 seconds]
twoism has quit [Ping timeout: 260 seconds]
undersc0re97_ has joined #ruby
imami|afk is now known as banseljaj
Chryson has quit [Quit: Leaving]
undersc0re97_ has quit [Client Quit]
browndawg has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
chrishough has quit [Quit: chrishough]
arya has joined #ruby
horofox has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
hbpoison has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
the_mentat has quit [Quit: Computer has gone to sleep.]
browndawg has left #ruby [#ruby]
<reactormonk> scepticulous, pass ""?
DarkFoxDK has joined #ruby
CraHan|out is now known as CraHan
JohnBat26 has joined #ruby
TheFuzzball has joined #ruby
divout has quit [Ping timeout: 248 seconds]
<scepticulous> reactormonk: I hope decryption would fail if I use "" as a password for a key, that does not have a password, or is no password implemented as "" ?
abionic has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
subbyyy_ has quit [Quit: none 0.3.9.2]
kenneth has joined #ruby
ABK_ has joined #ruby
agarie has quit [Remote host closed the connection]
abionic has quit [Read error: Operation timed out]
ABK has quit [Ping timeout: 248 seconds]
abionic has joined #ruby
horofox has quit [Quit: horofox]
Nisstran has joined #ruby
unix has joined #ruby
dankest has quit [Quit: Leaving...]
ABK_ has quit [Ping timeout: 264 seconds]
<Nisstran> Hi to all, a question, i have in a file this lina CO=23 TA=14 MI=45 DE="System not load" DS=34
<Nisstran> i want to get DE="System not load"
horofox has joined #ruby
<Nisstran> how can i get this value?
verysoftoiletppr has quit []
<Hanmac> >> p "CO=23 TA=14 MI=45 DE=\"System not load\" DS=34"[/DE\="(.+)"/,1]
<eval-in> Hanmac: Output: "\"System not load\"\n" (http://eval.in/10800)
dallasm has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
gosshedd has joined #ruby
ryanf has quit [Quit: leaving]
razibog has quit [Ping timeout: 240 seconds]
pen has quit [Remote host closed the connection]
schaerli has joined #ruby
<Nisstran> thanks Hanmac
<fuzai> hiya, if i have an array of hashes and i would like to extract all the 'userids' and make an array with them. How would I do this?
<Nisstran> and if i want to get the TA value?
lkba has quit [Ping timeout: 256 seconds]
<Hanmac> >> p "CO=23 TA=14 MI=45 DE=\"System not load\" DS=34"[/TA\=(\d+)/,1]
<eval-in> Hanmac: Output: "\"14\"\n" (http://eval.in/10801)
blaxter has joined #ruby
<Hanmac> fuzai: hasharray.map {|h|h['userid']}
<Nisstran> okey thanks again Hanmac
verysoftoiletppr has joined #ruby
<fuzai> ty
apeiros_ has joined #ruby
<Nisstran> do you know if exist any way to read data from a network interface?
hbpoison has joined #ruby
anderse has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
predator217 has quit [Quit: leaving]
ferdev|away is now known as ferdev
chussenot has joined #ruby
browndawg has joined #ruby
Slivka has joined #ruby
horofox has quit [Quit: horofox]
predator117 has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
arturas_ has joined #ruby
tjbiddle has joined #ruby
m3pow has joined #ruby
horofox has joined #ruby
noxoc has joined #ruby
tjbiddle has quit [Client Quit]
dmiller has joined #ruby
<Nisstran> Hanmac i get this error: Exception: invalid byte sequence in UTF-8
<Nisstran> trying to catch "System not load"
nilobject has quit [Quit: nilobject]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
<Nisstran> Hanmac solver adding this line.unpack("C*").pack("U*")[/DE\="(.+)"/,1]
<Nisstran> exit
Nisstran has quit [Quit: Page closed]
pen has joined #ruby
lkba has joined #ruby
justme1 has joined #ruby
gaahrdner has joined #ruby
<justme1> which file implements class.instance_methods?
dmiller has quit [Ping timeout: 264 seconds]
Neomex has joined #ruby
predator117 has quit [Quit: leaving]
predator117 has joined #ruby
<Hanmac> justme1 its defined in class.c
maxmanders has joined #ruby
gaahrdner has quit [Ping timeout: 248 seconds]
vikhyat has quit [Remote host closed the connection]
<justme1> Hanmac: that's the c implementation, I'm talking about the ruby implemantation
<Hanmac> justme1 there is no ruby implmentation of this function on MRI
<justme1> Hanmac: hmm..
anderse has quit [Quit: anderse]
<Hanmac> justme1 in object.c it binds the C method into the module class
<justme1> Hanmac: I'm want to be able to go to definition in vim to ruby framework methods, such as .class.instance_methods. I ran 'ctags -R * ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby
Yakko is now known as yakko_zzz
jimeh has joined #ruby
<justme1> Hanmac: is it possible to go to defintion of ruby framework classes/methods?
simas has joined #ruby
<Hanmac> justme1 you cant for all ... the only way to get info about is to ask RI
<justme1> Hanmac: ok
simas is now known as saimaz
pandawarrior has joined #ruby
pandawarrior has quit [Client Quit]
<justme1> Hanmac: so usually I shouldn't go to the definition of the method, but rather read ri or the docs online, correct?
<Hanmac> justme1 like i said before, some one are defined as C methods, so you cant get the method definition from it
Elhu has joined #ruby
<justme1> Hanmac: ok, thanks
<Hanmac> that is possible: LANG=C grep rb_class_instance_methods *.so #=> Binary file libruby.so matches but nothing more
horofox has quit [Quit: horofox]
divout has joined #ruby
jgrevich has quit [Remote host closed the connection]
itsdavem has joined #ruby
horofox has joined #ruby
pandawarrior has joined #ruby
Axsuul has quit [Ping timeout: 276 seconds]
hbpoison has joined #ruby
pandawarrior has quit [Client Quit]
tvl has joined #ruby
nomenkun has joined #ruby
tvl is now known as Spug
predator117 has quit [Quit: Changing server]
pandawarrior has joined #ruby
speakingcode has quit [Ping timeout: 252 seconds]
Spug is now known as tobiasvl
itsdavem has quit [Ping timeout: 256 seconds]
predator117 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
horofox has quit [Quit: horofox]
havenwood has quit [Remote host closed the connection]
twoism has joined #ruby
zzing has quit [Quit: Computer has gone to sleep.]
horofox has joined #ruby
arturas_ is now known as arturaz
arturaz is now known as arturaz_
arturaz_ is now known as arturaz__
arturaz__ is now known as arturaz
vabenjamin has left #ruby [#ruby]
obs has joined #ruby
mpfundstein has joined #ruby
kevinfagan has joined #ruby
chussenot has quit [Quit: chussenot]
dmiller has joined #ruby
scepticulous has left #ruby ["Gone"]
DarkFoxDK has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 264 seconds]
DarkFoxDK has joined #ruby
codespectator has quit [Quit: Computer has gone to sleep.]
toekutr has quit [Read error: Connection reset by peer]
horofox has quit [Quit: horofox]
QaDeS has joined #ruby
adambeynon has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
vikhyat has joined #ruby
francisfish has joined #ruby
m3pow has quit [Remote host closed the connection]
mlr has quit [Ping timeout: 252 seconds]
m3pow has joined #ruby
cdt has joined #ruby
marr has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
ferdev has quit [Quit: Leaving...]
ozgura has quit [Remote host closed the connection]
codespectator has joined #ruby
timonv has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
Pandaen has joined #ruby
Vainoharhainen has joined #ruby
chichou has joined #ruby
pen has quit [Read error: Connection reset by peer]
pencilcheck has joined #ruby
arya has quit [Ping timeout: 244 seconds]
justme1 has quit [Quit: Leaving.]
dmiller has joined #ruby
bluOxigen has joined #ruby
segv- has joined #ruby
atno has quit [Ping timeout: 252 seconds]
pencilcheck has quit [Remote host closed the connection]
arya has joined #ruby
nari has quit [Ping timeout: 276 seconds]
Criztian has joined #ruby
workmad3 has joined #ruby
hoelzro|away is now known as hoelzro
rippa has joined #ruby
ferdev has joined #ruby
chussenot has joined #ruby
dmiller has quit [Ping timeout: 255 seconds]
pyrac has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
blueOxigen has joined #ruby
joonty has quit [Quit: leaving]
casheew has quit [Read error: Connection reset by peer]
Patteh has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
gregorg_taf has quit [Read error: Connection reset by peer]
casheew has joined #ruby
sayan has quit [Read error: Connection reset by peer]
gregorg_taf has joined #ruby
ephemerian has joined #ruby
saimaz has quit [Read error: Connection reset by peer]
saimaz has joined #ruby
atyz has joined #ruby
Weazy has joined #ruby
zzing has joined #ruby
predator117 has quit [Ping timeout: 276 seconds]
saimaz has quit [Read error: Connection reset by peer]
saimaz has joined #ruby
ozgura has joined #ruby
Stilo has joined #ruby
akemrir has joined #ruby
timmow has joined #ruby
slainer68 has joined #ruby
banseljaj is now known as imami|afk
eka has joined #ruby
yacks has quit [Remote host closed the connection]
arietis has joined #ruby
zzing has quit [Ping timeout: 255 seconds]
DarkFoxDK has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
nkr has joined #ruby
gyre007 has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
razibog has joined #ruby
DarkFoxDK has joined #ruby
dmiller has joined #ruby
spider-mario has joined #ruby
anderse has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Ping timeout: 248 seconds]
slainer6_ has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
jerikl has joined #ruby
arya has joined #ruby
yacks has joined #ruby
kandinski has quit [Ping timeout: 252 seconds]
thufir_ has joined #ruby
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
sayan has joined #ruby
kandinski has joined #ruby
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
timols has joined #ruby
sayan has quit [Max SendQ exceeded]
arya has quit [Ping timeout: 248 seconds]
tish1 has quit [Quit: Leaving.]
sayan has joined #ruby
yacks has quit [Max SendQ exceeded]
niklasb has joined #ruby
beach has joined #ruby
Criztian has quit [Read error: Connection reset by peer]
yacks has joined #ruby
Neomex has quit [Quit: Neomex]
Neomex has joined #ruby
Neomex has quit [Client Quit]
slainer6_ has quit [Remote host closed the connection]
TomJ has joined #ruby
slainer68 has joined #ruby
devyn has quit [Ping timeout: 255 seconds]
pyrac has quit [Quit: pyrac]
arya has joined #ruby
timols has quit [Ping timeout: 255 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
idl0r has joined #ruby
devyn has joined #ruby
skattyadz has joined #ruby
<idl0r> hey guys, http://dpaste.com/949245/ - is it possible to get the interface names as well by chance?
arya has quit [Ping timeout: 248 seconds]
<JonnieCache> Hanmac: you can get the method defintion, its just in C
<JonnieCache> pry is perfectly happy to show you C method sources
yacks has quit [Ping timeout: 256 seconds]
<Hanmac> JonnieCache is it possible to get it with RDoc::RI working too?
<JonnieCache> hmm not sure. there are definitely rdoc websites which show you C source so i expect you cna
arya has joined #ruby
dmiller has joined #ruby
Gonzih has joined #ruby
wargasm has quit [Ping timeout: 248 seconds]
hbpoison has quit [Ping timeout: 276 seconds]
<JonnieCache> >> 123_000_000
<eval-in> JonnieCache: Output: "" (http://eval.in/10810)
<JonnieCache> >> puts 123_000_000
<eval-in> JonnieCache: Output: "123000000\n" (http://eval.in/10811)
<JonnieCache> >> puts 123_000_000.class
<eval-in> JonnieCache: Output: "Fixnum\n" (http://eval.in/10812)
<JonnieCache> that is amazing.
<JonnieCache> no more counting digits with my fingers and smudging my screen haha
dmiller has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 248 seconds]
Virunga has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
<Hanmac> "1_23_0_0_00_00" works too, but "1__3" does not
atyz has quit [Quit: Leaving...]
lkba has joined #ruby
heidar has quit [Quit: leaving]
tian has joined #ruby
<hoelzro> yet another great feature from Perl ;)
monkegjinni has joined #ruby
<JonnieCache> ah was wondering where it came from
gaahrdner has joined #ruby
<JonnieCache> should have known :)
dmonjo has quit [Ping timeout: 252 seconds]
k610 has joined #ruby
arya has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
Criztian has joined #ruby
dmonjo has joined #ruby
heidar has joined #ruby
arya has joined #ruby
beach has quit [Quit: This computer has gone to sleep]
<atmosx> hello
carraroj has joined #ruby
<JonnieCache> yo
gaahrdner has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Ping timeout: 248 seconds]
itsdavem has joined #ruby
<atmosx> how' slife JonnieCache
psyprus has quit [Ping timeout: 248 seconds]
psyprus has joined #ruby
arya has quit [Ping timeout: 252 seconds]
atyz has joined #ruby
dmonjo has quit [Read error: Connection reset by peer]
<JonnieCache> same old same olfd
<JonnieCache> tried doing some meditation this morning
<JonnieCache> its hard
<atmosx> define meditation
<JonnieCache> trying to stop all discursive thought for 5 minutes at a time
<atmosx> oh that's hard.
<atmosx> I'm listening this "podcast", more of an audiobook, over and over again.
<atmosx> it's about it.
<atmosx> anyway, gonna grab something to it
<atmosx> err to eat
<atmosx> bb
Qfwfq has joined #ruby
Qfwfq has left #ruby [#ruby]
atmosx has quit [Quit: WeeChat 0.4.0-rc1]
itsdavem has quit [Ping timeout: 260 seconds]
akemrir has quit [Quit: WeeChat 0.4.0]
aspiers has quit [Read error: Operation timed out]
arya has joined #ruby
samphippen has joined #ruby
pandawarrior has quit [Quit: Leaving.]
aspiers has joined #ruby
LouisRoR has joined #ruby
freeayu has quit [Remote host closed the connection]
dmiller has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
Matip has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 252 seconds]
hashmal has joined #ruby
aqabiz has joined #ruby
pyrac has joined #ruby
zerba has joined #ruby
lolmaus has joined #ruby
tish has joined #ruby
nari has joined #ruby
a_a_g has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
<mpfundstein> JonnieCache: did a 10 min editation this morning. But my mind wanders off a lot. even though i am way more relaxed afterwards
browndawg has quit [Quit: Leaving.]
<mpfundstein> JonnieCache: i also found that if i smoke weed the day before, my mind is more active the morning after. quite funny
<JonnieCache> i did 5 minutes then another 5 minutes
arya has quit [Ping timeout: 252 seconds]
<JonnieCache> the first was relaxing but my mind wandered a lot, so i tried it again to see if i could do it better
<JonnieCache> the second time my mind wandered more, and i got frustrated and tense because i couldnt do it
<JonnieCache> im pretty sure that little scenario sums up the whole thing :)
johnchapman has joined #ruby
<johnchapman> How can I use registration-free COM with Ruby?
BrianJ has joined #ruby
psyprus has joined #ruby
* johnchapman changes to his "real" name...
johnchapman is now known as Arafangion
Takehiro has quit [Remote host closed the connection]
daniel_- has joined #ruby
BrianJ has quit [Client Quit]
daniel_- has quit [Read error: Operation timed out]
ferdev has quit [Quit: Leaving...]
ferdev has joined #ruby
pskosinski has joined #ruby
jerikl has quit [Quit: jerikl]
Gonzih has quit [Quit: bye]
thufir_ has quit [Quit: Leaving.]
sayan has quit [Quit: Leaving]
dhruvasagar has joined #ruby
jprovazn has quit [Quit: Leaving]
jonahR has quit [Quit: jonahR]
<mpfundstein> JonnieCache; whats very important is that you dont get mad if your mind wanders off
<mpfundstein> JonnieCache: Just focus on breathing
BrindleFly has joined #ruby
<JonnieCache> yeah exactly, "getting mad because you cant do it" is exactly the kind of thinking youre working to prevent
<JonnieCache> i tried to focus on my breathing and i also ran up a little track with some looping bell-type noises, and concentrated on that, which made it easier
yshh has quit [Remote host closed the connection]
<shevy> you begin to scare me JonnieCache
<JonnieCache> lol why
<shevy> I am not sure whether I can sleep in peace today... if I hear any strange breathing noise nearby...
yshh has joined #ruby
luddemen1 has quit [Quit: leaving]
<shevy> I was very good in running when I was younger :(
* Arafangion is thankful, for the first time, that he's deaf.
<shevy> hehe
<shevy> Arafangion you miss the awesome music in the movie "psycho" ;P
<Arafangion> shevy: It has music!?
<shevy> well, the stabby-noise when the murderer kills his victim... the music is more shocking than the video sequence
AlHafoudh has joined #ruby
<AlHafoudh> hi all
<Arafangion> shevy: I also miss the music you get on phones when you call companies. :)
<shevy> Arafangion now *THAT* is actually a good thing, this is soooo annoying in the subway
<AlHafoudh> what is the best way to "wait for block" in ruby? iam using 1.9.3-p385
<shevy> wait for block?
dmiller has joined #ruby
<Arafangion> AlHafoudh: Waiting for a block to execute?
<Arafangion> shevy: All the same to me. :)
<AlHafoudh> I have adhearsion all that maked outbound calls, the call events arrive as block calls, i need in one point of time to know when something happens and wait for that event on main thread so I can return the value
<AlHafoudh> all=call
<Arafangion> *adhearsion?
<shevy> Arafangion hehe, I have terrible eyesight, but late at night I take off my glasses and go running, and it creates a completely different world when I ran for a while and stare into the bright, diffuse lights
yshh has quit [Ping timeout: 260 seconds]
<Arafangion> AlHafoudh: You are using terms that with meanings that differ from what they mean in Ruby.
<Arafangion> shevy: That must be horrible. :)
<shevy> Arafangion yeah, but it also helps to think on other things you know? like, you get completely different input, and you can focus more easily on your own thoughts (and the exhaustion from running often helps too)
<shevy> I am significantly dumber when sitting in front of a computer
zoonfafer has joined #ruby
<shevy> AlHafoudh you use "Thread" in your ruby scripts?
dmiller has quit [Ping timeout: 260 seconds]
<Arafangion> shevy: I realy too much on my sight to appreciate your point of view, sadly.
<shevy> AlHafoudh there are not so many ways in ruby to work in a concurrent way, as far as I know, only via Thread and fiber, I think
JarJar has joined #ruby
<Arafangion> I've heard that jRuby might be more concurrent.
timols has joined #ruby
<shevy> AlHafoudh sounds arabic :P
<AlHafoudh> yes, that arabic
<AlHafoudh> shevy: adhearsion uses celluloid internally
atno has joined #ruby
skattyadz has quit [Quit: skattyadz]
wargasm has joined #ruby
Virunga has quit [Remote host closed the connection]
<AlHafoudh> i solved it with ConditionVariable
Virunga has joined #ruby
<shevy> hehe
<shevy> he uses funny words indeed Arafangion
timols has quit [Ping timeout: 260 seconds]
maycon has quit [Remote host closed the connection]
divout has quit [Remote host closed the connection]
browndawg has joined #ruby
itsdavem has joined #ruby
tish has quit [Quit: Leaving.]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
pyrac has quit [Quit: pyrac]
lemonsparrow has joined #ruby
br4ndon has joined #ruby
nkts has joined #ruby
noxoc has quit [Quit: noxoc]
Al__ has joined #ruby
vlad_starkov has joined #ruby
ferdev has quit [Quit: Leaving...]
stetho has joined #ruby
dmiller has joined #ruby
ferdev has joined #ruby
rhyselsmore_ has joined #ruby
Kuifje has joined #ruby
Kuifje has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
stonevil has quit [Quit: stonevil]
rlb3 has joined #ruby
wf2f has quit []
`p has quit [Ping timeout: 260 seconds]
carloslopes has joined #ruby
fuzai has quit [Ping timeout: 264 seconds]
justme1 has joined #ruby
kop has quit [Ping timeout: 264 seconds]
jrajav has joined #ruby
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
zigomir has joined #ruby
noxoc has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<alexhanh> How do you guys measure how much a Ruby script consumes memory in total?
twshelton has joined #ruby
br4ndon has joined #ruby
<Arafangion> OS and runtime dependant.
br4ndon has quit [Client Quit]
br4ndon has joined #ruby
br4ndon has quit [Client Quit]
br4ndon has joined #ruby
<jrajav> alexhanh: With a profiler
<jrajav> https://github.com/rdp/ruby-prof is an example
nfk has joined #ruby
<jrajav> (Disclaimer: Haven't used it)
sayan has joined #ruby
rhyselsmore_ has quit [Quit: Computer has gone to sleep.]
obs has quit [Quit: Konversation terminated!]
kofno_ has joined #ruby
banister`sleep has quit [Remote host closed the connection]
pac1 has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
<alexhanh> jrajav: yeah, I've tried it but don't understand the output http://pastie.org/private/4fobwbz5vdpm5uacg8udg
kop has joined #ruby
beach has joined #ruby
banister`sleep has joined #ruby
stephanvd has joined #ruby
<jrajav> alexhanh: Hrrm. Looks like you need a patched interpreter for that mode http://rubyforge.org/tracker/index.php?func=detail&aid=17676&group_id=1814&atid=7062
<jrajav> alexhanh: Maybe you could take a look at Google's perftools, too. I'm not sure if that has a memory mode
hybris has joined #ruby
<alexhanh> I've patched my ruby with railsexpress (ruby-1.9.3-p194-railsexpress)
arietis has quit [Quit: Computer has gone to sleep.]
_bart has joined #ruby
beach has left #ruby [#ruby]
arietis has joined #ruby
aqabiz has quit [Quit: aqabiz]
emergion has quit [Quit: Computer has gone to sleep.]
noxoc has quit [Quit: noxoc]
itsdavem has quit [Remote host closed the connection]
twshelton has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
noxoc has joined #ruby
m8 has joined #ruby
niklasb has quit [Read error: Operation timed out]
dmiller has quit [Ping timeout: 255 seconds]
verysoftoiletppr has quit []
kevinfagan has quit [Quit: Leaving...]
samphippen has quit [Quit: Computer has gone to sleep.]
kevinfagan has joined #ruby
jkbbwr has left #ruby [#ruby]
statarb3 has quit [Read error: Connection reset by peer]
justme1 has left #ruby [#ruby]
justsee has quit [Quit: Linkinus - http://linkinus.com]
krz has quit [Quit: krz]
gregorg_taf has quit [Read error: Connection reset by peer]
gregorg_taf has joined #ruby
CreativeEmbassy has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
dawkirst has quit [Read error: Operation timed out]
trietptm has joined #ruby
_main_ has joined #ruby
etcetera has joined #ruby
grayson_ has joined #ruby
etcetera has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 248 seconds]
gregorg_taf has quit [Client Quit]
lemonsparrow has quit [Quit: Page closed]
__main__ has quit [Ping timeout: 252 seconds]
CreativeEmbassy has quit [Ping timeout: 240 seconds]
_main_ is now known as __main__
atyz has quit [Quit: Leaving...]
Arafangion has quit [Ping timeout: 252 seconds]
xemu has joined #ruby
daniel_- has joined #ruby
_JamieD_ has joined #ruby
Al__ has quit [Quit: Al__]
jonathanwallace1 has joined #ruby
dmiller has joined #ruby
_bart has left #ruby [#ruby]
timols has joined #ruby
tommyvyo has joined #ruby
blaxter has quit [Quit: foo]
mark_locklear has joined #ruby
dustint has joined #ruby
beiter has quit [Quit: beiter]
robustus has quit [Ping timeout: 255 seconds]
DarkFoxDK has quit [Quit: ZNC - http://znc.sourceforge.net]
dmiller has quit [Ping timeout: 256 seconds]
jonathanwallace1 has quit [Ping timeout: 244 seconds]
robustus has joined #ruby
atyz has joined #ruby
DarkFoxDK has joined #ruby
timols has quit [Ping timeout: 248 seconds]
AlHafoudh has quit []
sie has joined #ruby
<sie> Why does pry stop for three seconds I press every time I press tab?
tahnok has left #ruby [#ruby]
<matti> sie: I guess its trying to auto-complete every single method from every single object there is.
<banister`sleep> sie: what operating system are oyu on? what pry version? what ruby version? can you record yourself doing it here: http://showterm.io
CreativeEmbassy has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<matti> banister`sleep: Go sleep!
<matti> ;]
<Hanmac> matti we is sleep-typing :P
<Hanmac> he
<matti> I know.
banister`sleep has quit [Remote host closed the connection]
<matti> :)
emanon_ has joined #ruby
<matti> BTW, showterm.io +1
<matti> Pretty cool.
alyawn has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
baba has joined #ruby
ikbenhet has joined #ruby
casheew has quit [Read error: Connection reset by peer]
unix has quit [Ping timeout: 255 seconds]
ner0x has joined #ruby
casheew has joined #ruby
F1skr has joined #ruby
garbagecollectio has joined #ruby
PanPan has quit [Remote host closed the connection]
<sie> b1rkh0ff, osx 10.8, 0.9.10, 1.8.7, http://showterm.io/1a6ecd2a886960bd8bdfc
emanon_ has quit [Quit: emanon_]
sayan has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
saimaz has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
ahokaomaeha has quit [Ping timeout: 264 seconds]
<sie> banister`sleep, ^
saimaz has joined #ruby
niklasb has joined #ruby
<banister`sleep> sie: ? i dont see anything
<banister`sleep> because i was dc when u posted it, u probably have to post it again :)
Udom0 has joined #ruby
ctp has joined #ruby
casheew has joined #ruby
geekbri has joined #ruby
banister`sleep has quit [Remote host closed the connection]
ferdev is now known as ferdev|away
tish has joined #ruby
skattyadz has joined #ruby
senayar has joined #ruby
bubblehead has joined #ruby
banister`sleep has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
<banister`sleep> sie: lol ok
<trietptm> Hello everybody, I'm a new Ruby comer :) .
_main_ has joined #ruby
<banister`sleep> sie: a few issues: 1.8.7 is practically dead so we barely focus on supporting that anymore, sorry. 2. 0.9.10 is not our most recent release, update the gem to get 0.9.12
<trietptm> Here's my first ruby program to solve a quadratic equation: https://gist.github.com/trietptm/4995338
<banister`sleep> trietptm: wow what langauge is that?
<banister`sleep> i mean is that thai/vietnamese?
<trietptm> ah vietnamese :D
<banister`sleep> very cool
<banister`sleep> trietptm: not bad code for your first program
abionic has quit [Ping timeout: 248 seconds]
<banister`sleep> trietptm: one thing you could do is make a function to help you get input, something like
wmoxam has joined #ruby
carloslopes has quit [Remote host closed the connection]
<banister`sleep> def get_float(prompt); puts prompt; gets.chomp.to_f; end
<banister`sleep> get_float("a: ")
cibs has joined #ruby
<banister`sleep> get_float("b: ")
<banister`sleep> etc
<trietptm> Thank you :) . I don't know how to replace the 2 lines printf with an equivalent version of puts.
dmiller has joined #ruby
beiter has joined #ruby
_main_ is now known as __main__
NiteRain has quit [Ping timeout: 246 seconds]
beiter has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 248 seconds]
guiguidoc has joined #ruby
freeayu has joined #ruby
anonymuse has joined #ruby
vlad_starkov has joined #ruby
velCzupa has joined #ruby
carloslopes has joined #ruby
justme1 has joined #ruby
beiter has joined #ruby
m8 has quit [Quit: Sto andando via]
blacktulip has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
freeayu has quit [Remote host closed the connection]
<shevy> wheee is this vietnamese
RonScagz has joined #ruby
<shevy> trietptm sprintf() also exists, returns the string, which you could then feed to puts
<shevy> but in your example, I dont think it is worth it
<shevy> ah you already use %
<shevy> puts "X1 = " "%6.4f" % root1
<shevy> don't think it can become much shorter than that
ikbenhet has quit [Quit: ikbenhet]
AlSquire has quit [Read error: Connection reset by peer]
svandiepen has joined #ruby
AlSquire has joined #ruby
monkegjinni has joined #ruby
<sie> trietptm, Shouldn't it be a discriminant, not delta?
Qwak has joined #ruby
<Hanmac> its fun to use sprintf and % with hashs :P
bjeanes has quit [Ping timeout: 244 seconds]
thone_ has joined #ruby
<trietptm> @sie: Yeah, it's a discriminant :D
cibs has quit [Ping timeout: 255 seconds]
cibs has joined #ruby
lingon has joined #ruby
<lingon> How do I convert a binary string to something readable?
bradhe has joined #ruby
gtc has quit [Quit: kill -9 gtc]
bjeanes has joined #ruby
sayan has joined #ruby
thone has quit [Ping timeout: 245 seconds]
etcetera has joined #ruby
<apeiros_> lingon: every string is binary… what precisely do you mean?
<sie> how do I call shell here?
<sie> > 1+1
<apeiros_> >> p 1+1
<eval-in> apeiros_: Output: "2\n" (http://eval.in/10817)
<sie> >> 101.to_s.to_i(2)
<eval-in> sie: Output: "" (http://eval.in/10818)
<apeiros_> you must use a print statement
<lingon> apeiros_: I don't know what I mean. I try to use YAML.load() but some of the result looks like this: http://pastie.org/6241327
<apeiros_> it doesn't work like irb
<sie> >> p 101.to_s.to_i(2)
<eval-in> sie: Output: "5\n" (http://eval.in/10819)
ikbenhet has joined #ruby
PanPan has joined #ruby
<apeiros_> lingon: that doesn't look like any encoding I'd know. how does it look in the YAML then?
skattyadz has quit [Quit: skattyadz]
jerius has joined #ruby
sailias has joined #ruby
hbpoison has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
jtharris has quit [Quit: WeeChat 0.4.0]
niklasb has quit [Ping timeout: 255 seconds]
<apeiros_> lingon: well, that *is* binary data
<apeiros_> the thing you see is about as readable as it gets
bradhe has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
svandiepen has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 276 seconds]
svandiepen has joined #ruby
<lingon> apeiros_: oh, so I can't convert it to something readable?
<Hanmac> lingon is the string base64 encoded?
pothibo has joined #ruby
<apeiros_> Hanmac: there *is nothing* to read
<apeiros_> err, lingon
pdamer has joined #ruby
<apeiros_> you can't read e.g. an image file and expect prose as output…
Guest___ has joined #ruby
<Morrolan> Even though an image says more than a thousand words? :o
KevinSjoberg has joined #ruby
<apeiros_> Morrolan: when you keep it an image and don't make text out of it :-p
<Morrolan> Oh, that sounds reasonable. :P
<apeiros_> lingon: "\x1F\x8B\b\x00\x00\x00\x00\x00\x00" that's the beginning of your data - you have 6 NULL bytes right there in the middle of nowhere. this is NOT text.
<Hanmac> apeiros_ with some kind of aa-lib it would be possible :P
<ninegrid> Morrolan: re "an image says more than a thousand words"
<apeiros_> Hanmac: that's not "reading an image file's content as text"
<apeiros_> that's "converting an image file"
DrCode has joined #ruby
svandiepen has quit [Ping timeout: 244 seconds]
PanPan has quit [Ping timeout: 248 seconds]
wting has quit [Ping timeout: 260 seconds]
<Morrolan> ninegrid: Heh, I guess I know what I'll do the next 14 minutes. ;D
<ninegrid> lol
<apeiros_> ninegrid: shame on you! who does my work now? :(
sepp2k has joined #ruby
ffranz has joined #ruby
<ninegrid> apeiros_: the man who just finished watching TED
<apeiros_> that man would have to travel 12min back in time…
<ninegrid> do you work a fry grill?
wting has joined #ruby
<apeiros_> -_-
atyz has quit [Quit: Leaving...]
Guest___ is now known as Guest123
jrajav has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
hybris has quit [Quit: Leaving]
hybris has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
dmiller has joined #ruby
tish has quit [Quit: Leaving.]
skattyadz has joined #ruby
kevinfagan has quit [Quit: Leaving...]
hbpoison has quit [Ping timeout: 276 seconds]
dmiller has quit [Ping timeout: 248 seconds]
breakingthings has joined #ruby
noop has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
Guest123 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cibs has quit [Ping timeout: 255 seconds]
elux has joined #ruby
cibs has joined #ruby
carlyle has joined #ruby
inao has quit [Quit: Leaving...]
breakingthings has quit []
jlast has joined #ruby
lolmaus has quit []
jtharris has joined #ruby
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
nanothief has quit [Ping timeout: 240 seconds]
hbpoison has joined #ruby
willob has joined #ruby
alyawn has quit [Quit: alyawn]
breakingthings has joined #ruby
v0n has joined #ruby
pandawarrior has joined #ruby
alyawn has joined #ruby
arya has joined #ruby
<pandawarrior> can anyone point me in the direction of some github accounts, that have really nice clean code
hbpoison has quit [Ping timeout: 260 seconds]
<Hanmac> you dont want to see my code :P
Gu_______ has joined #ruby
Gu_______ is now known as Guest123
wallerdev has joined #ruby
codecop has quit [Remote host closed the connection]
solidoodlesuppor has joined #ruby
sulaiman has joined #ruby
<sulaiman> Hello.
jpfuentes2 has joined #ruby
<sulaiman> I have a question about XML editing. If I want to programmatically add new elements to an existing xml document...
<sulaiman> do I read the xml document, add the new elements, and then save the entire document again to the same file?
Inoperable has joined #ruby
timols has joined #ruby
Inoperable has quit [Remote host closed the connection]
<sulaiman> even if I have to add one element to an huge xml document?
uris has joined #ruby
invisime has joined #ruby
preller has quit [Quit: Lost terminal]
Es0teric has joined #ruby
<csmrfx> sulaiman: you mean *you* use an editor? works fine
<jrajav> pandawarrior: https://github.com/languages/Ruby
<csmrfx> wouldn't call "you read"ing something "programmatically"
<jrajav> pandawarrior: And the ever-ubiquitous Rails has pretty decent source: https://github.com/rails/rails
Es0teric has quit [Client Quit]
mmitchell has joined #ruby
<csmrfx> sulaiman: if you actually meant using nokogiri or similar library to parse the xml into memory, yes, thats one way of doing it programmatically
<sulaiman> csmrfx, I meant reading the xml document into a variable and updating it and then writing it back to a file.
<sulaiman> using REXML
preller has joined #ruby
<csmrfx> reading it into a variable as string, you wouldnt need REXML
philcrissman has joined #ruby
<sulaiman> i meant, creating a REXML::Document instance out of it, so that I could add new elements to it
zz_Inoperable has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
monkegjinni has joined #ruby
dmiller has joined #ruby
timols has quit [Ping timeout: 248 seconds]
<sulaiman> csmrfx, you said that's one way of doing it, can you tell me about the other ways?
philcrissman has quit [Remote host closed the connection]
MartinCleaver has joined #ruby
<pandawarrior> Hanmac: nor mine:, jrajav cheers
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
aquaranto has joined #ruby
<Hanmac> pandaworrir i mean that my code is mostly beauty and evil at the same time :P
PragCypher has quit [Quit: Leaving]
aquaranto has left #ruby [#ruby]
ferdev|away is now known as ferdev
dmiller has quit [Ping timeout: 256 seconds]
BrindleFly has quit [Quit: BrindleFly]
<csmrfx> sulaiman: well old unix guys might just insert text into a text file...
krz has joined #ruby
PanPan has joined #ruby
<csmrfx> ...ie. without parsing, this may introduce the danger of malformed xml, though, depending.
zz_Inoperable has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
<v0n> hi
philcrissman has joined #ruby
<GeekOnCoffee> is there a master list of stable ruby patch versions vs non?
<v0n> I don't really get the point of the Ruby 1.9.2 string...
Vert has joined #ruby
alyawn has quit [Read error: Connection reset by peer]
<Hanmac> v0n String does not respond to each anymore ... so you need an [String]
skcin7 has quit []
`p has joined #ruby
<v0n> ok
wmoxam has quit [Ping timeout: 256 seconds]
alyawn has joined #ruby
rlb3 has quit [Quit: rlb3]
<v0n> Hanmac: it's weird that Rack still try to call #each then...
stonevil has joined #ruby
banister`sleep is now known as banisterfiend
<Hanmac> v0n because in older versions its splitted at lines ... but in newer versions, where each_char, each_line, each_codepoint, and other where defined, and normal each is ambigous
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
wmoxam has joined #ruby
DrCode has joined #ruby
<shevy> v0n I think it was due to the encoding change
<pandawarrior> can anyone explain why you would use a proc / lambda rather than a normal method?
<JonnieCache> is everyone else having trouble with bundler today?
<shevy> pandawarrior I cant. I use methods all the time
rlb3 has joined #ruby
<shevy> JonnieCache I only had trouble with bundler hahaha :D
monkegjinni has quit [Remote host closed the connection]
<shevy> pandawarrior perhaps proc is when you need the surrounding context
cibs has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Connection reset by peer]
<csmrfx> pandawarrior: you can pass them around easier than methods, I suppose
<Hanmac> pandawarrior you can use it for something like that : add_callback(:key) { |event| ... }
<pandawarrior> right but you could still have like a case statement that called a particular method depending on the current context?
slainer6_ has joined #ruby
<pandawarrior> Hanmac: i'm not sure i follow..
slainer6_ has quit [Read error: Connection reset by peer]
slainer6_ has joined #ruby
jeremywrowe has joined #ruby
<shevy> pandawarrior yeah, I was never able to see the definite advantage of procs
<csmrfx> compared to what?
<csmrfx> a proc is a proc
<shevy> csmrfx compared to methods
hbpoison has joined #ruby
<pandawarrior> yes compared to a simple method
casheew has joined #ruby
HalfMadDad has joined #ruby
pyrac has joined #ruby
<csmrfx> Also, see if you can read the Matz Ruby Book on this topic
inokenty has joined #ruby
inokenty has quit [Max SendQ exceeded]
<Hanmac> pandawarrior you could use it when you want to call something with different objects with different types ..
slainer68 has quit [Ping timeout: 260 seconds]
beiter has quit [Ping timeout: 240 seconds]
<shevy> pandawarrior, do you know know the advantage of procs? ;)
<shevy> *now know
<csmrfx> See page 12 of that slideshare
<pandawarrior> shevy:
<csmrfx> (and forwards)
<pandawarrior> i don't please enlighten me :)
<shevy> pandawarrior no idea, the guys here give links, but dont explain :(
<csmrfx> I would link to Matz book but thats not possible 8(
<pandawarrior> csmrfx: reading...
baroquebobcat has joined #ruby
jonathanwallace1 has joined #ruby
<pandawarrior> csmrfx: page 12 i in german
kevinfagan has joined #ruby
jonahR has joined #ruby
DaltonUS has joined #ruby
<pandawarrior> is in*
<csmrfx> strange, I see english
spider-mario has quit [Read error: Connection reset by peer]
<pandawarrior> sorry that was for the 'ruby is magic' link that was sent ot by Hanmac
<pandawarrior> out*
slainer68 has joined #ruby
blaxter has joined #ruby
beiter has joined #ruby
slainer6_ has quit [Ping timeout: 240 seconds]
drago757 has joined #ruby
cibs has joined #ruby
DaltonUS has quit [Client Quit]
Adsisco has joined #ruby
nari has quit [Ping timeout: 255 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
alyawn has quit [Quit: alyawn]
<pandawarrior> csmrfx: is see that if you want to use some code later on in a program, people tend to use procs/lambdas and use .call to return the result of some arbitrary process. but methods also allow you to do exactly the same thing
hbpoison has quit [Ping timeout: 256 seconds]
<pandawarrior> i could call a method on an object whenever i liked, just as long as that object is self
<csmrfx> Sure, kind of.
stopbit has joined #ruby
<shevy> pandawarrior yup
<csmrfx> Methods, otoh, are bound to a specific scope.
<pandawarrior> so, do procs and lambda go beyond being bound by self or scope?
<csmrfx> well you can have 'em unbound/anon, too
<csmrfx> or pass them around
Hanmac has joined #ruby
<csmrfx> unlike methods
<pandawarrior> so they are like secure global vars
DaltonUS has joined #ruby
<csmrfx> wait, no
<pandawarrior> oh
<csmrfx> variables are variables
<pandawarrior> right
<csmrfx> globals are globals
<csmrfx> and secure? no such thing 8)
<pandawarrior> lol
timonv has quit [Read error: Connection reset by peer]
<pandawarrior> so what breed of thing is a proc/lambda and why are they so ubiquitous?
timonv has joined #ruby
forrest has joined #ruby
<shevy> wicked black vodoo magic
NiteRain has joined #ruby
mattbl has joined #ruby
<shevy> I dont know if they are that ubiquitous, I use them rarely
<shevy> but other things use them, like Readline:
<shevy> Readline.completion_proc = proc {|word|
<shevy> READLINE_COMPLETION_WORDS.grep /\A#{Regexp.quote(word)}/)
<shevy> }
monkegjinni has joined #ruby
<shevy> hmm one off indent level in the middle
<csmrfx> methods are a side-effect of OOP and classes and objects and that culture. Lambdas and procs are side-effect of more functional mindset.
hbpoison has joined #ruby
<csmrfx> or something like that...
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> that's a nice way of putting it!
banister_ has joined #ruby
<shevy> ruby is like a melting pot of ideas
oposomme has joined #ruby
<pandawarrior> ummm
tcstar has joined #ruby
<pandawarrior> that's interesting
<csmrfx> just a little bit context
<shevy> pandawarrior you can be quite prototypic in ruby too... use Structs for everything, and Object.new and never use any specific class
<Hanmac> shevy and like in a real melting pot, it has shit above that noone wants :P (like Rails)
<shevy> or @@vars
<shevy> or constants that are not constant at all
<shevy> or thousand different ways to eval
<pandawarrior> ummm
stonevil has quit [Quit: stonevil]
<pandawarrior> so where do code blocks fit into the mix
<shevy> code blocks? you mean
<shevy> foo() {}
<shevy> ?
<pandawarrior> are they a by product of ruby oop or functional
<shevy> define "code blocks"
<Hanmac> they are like old-c callback functions
_nitti has joined #ruby
<csmrfx> I think lisp or scheme might be blamed, along with C
<shevy> Hanmac demystified them just now :(
<pandawarrior> shevy: blah.map {|thing| thing * 2}
hbpoison has quit [Read error: Connection reset by peer]
<shevy> pandawarrior right, that is simply a block to the method map(), you can pass one block to every method in ruby for free
<csmrfx> The First Class.
zerba has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 260 seconds]
<pandawarrior> i've heard of that
<shevy> pandawarrior that is much easier to understand than proc/lambda
<Hanmac> it may cost on REPL :P
caveat- has quit [Remote host closed the connection]
stonevil has joined #ruby
<pandawarrior> read, execute, print, loop?
<shevy> pandawarrior the ability to pass a block to every method simply gives you flexibility
dmiller has joined #ruby
yshh has joined #ruby
Qwak has quit [Ping timeout: 244 seconds]
<shevy> csmrfx hmmm but the example... are on the same scope
<shevy> f = Foo.new; bar_method = f.method(:bar)
<shevy> so he could pass f.bar to an argument just as well
hbpoison has joined #ruby
caveat- has joined #ruby
tish has joined #ruby
<shevy> hehe it's funny that the author there refers to read another article :D
<pandawarrior> reading...
__BigO__ has joined #ruby
axl_ has joined #ruby
<csmrfx> oh well, it cost 0 euros!
<shevy> pandawarrior I really think you only need a proc when you need to keep the surrounding scope
<Hanmac> shevy dont read the refered page, its a cirult reference :P
Kadma has joined #ruby
bubblehead has quit [Remote host closed the connection]
<shevy> though, I think you could solve that without proc too ...
noxoc has quit [Quit: noxoc]
<pandawarrior> right
<shevy> you could even use constants as data structures in modules alone, and use class variables to change those
<shevy> ugly but works!
johnpcamara has joined #ruby
<pandawarrior> so procs and lambdas are *one* way of calling particular functions within a particular context
<shevy> aha
dmiller has quit [Ping timeout: 255 seconds]
<shevy> ArgumentError: tried to create Proc object without a block
<shevy> this means every Proc object must have a block
stonevil has quit [Ping timeout: 272 seconds]
<csmrfx> particular blocks of code
<csmrfx> functions, not quite
<pandawarrior> okay
TheDeadSerious_ has quit [Ping timeout: 256 seconds]
slainer6_ has joined #ruby
<csmrfx> but yes, important to realize they "bring context"
<pandawarrior> liking
Jedi_SCT1 has quit [Ping timeout: 248 seconds]
<pandawarrior> also
Hanmac has quit [Read error: Operation timed out]
hbpoison has quit [Ping timeout: 260 seconds]
<pandawarrior> a code bloc, proc and lambdas they are different
<pandawarrior> but in what way?
<pandawarrior> in ruby 1.9 procs and lamdas are the same, right?
spaceships has joined #ruby
tobiasvl has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
<hoelzro> I think they're still different
<apeiros_> pandawarrior: a block is not an object
<apeiros_> a block can be converted to a Proc (and that way become an object)
daniel_- has quit [Ping timeout: 255 seconds]
<pandawarrior> ahhh
<apeiros_> and no, lambdas and procs differ
<shevy> pandawarrior a code block is much simpler, you should not include them into proc and lambdas man
slainer6_ has quit [Read error: Connection reset by peer]
<apeiros_> lambdas perform arity checks, procs don't
Mon_Ouie has joined #ruby
<shevy> pandawarrior keep them separate in your brain
tobiasvl has joined #ruby
<apeiros_> lambda { |x| }.call # raises, wouldn't with proc
frem has joined #ruby
justme1 has quit [Quit: Leaving.]
slainer6_ has joined #ruby
<apeiros_> also lambda and proc behave differently with regards to return statements (can't recite them, though, too exotic)
monkegjinni has quit [Remote host closed the connection]
<pandawarrior> umm
<csmrfx> hehe its all in that slideshare
slainer68 has quit [Ping timeout: 272 seconds]
<pandawarrior> apeiros_: artery checks?
<pandawarrior> ok reading those articles
<banister_> artery
<pandawarrior> i'll be back!
<banister_> haha
enebo has joined #ruby
interactionjaxsn has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
mboro has joined #ruby
<apeiros_> pandawarrior: arity. amount of parameters
<mboro> why isn't there any documentation on the write method? http://www.ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html
<apeiros_> pandawarrior: I made an example. just run it in irb.
<pandawarrior> apeiros_: where is it?
<pandawarrior> i missed that post
PanPan has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
Sou|cutter has quit [Quit: WeeChat 0.3.9.2]
end_guy has quit [Ping timeout: 276 seconds]
nomenkun has quit [Remote host closed the connection]
demet8 has joined #ruby
end_guy has joined #ruby
Sou|cutter has joined #ruby
krz has quit [Quit: krz]
browndawg has quit [Quit: Leaving.]
LouisRoR has quit [Ping timeout: 260 seconds]
zoonfafer has quit [Ping timeout: 248 seconds]
andikr has quit [Remote host closed the connection]
<apeiros_> pandawarrior: dude, backlog
<apeiros_> pandawarrior: 16:15 apeiros_: lambda { |x| }.call # raises, wouldn't with proc
<pandawarrior> apeiros_: right, sorry
mattbl has quit [Quit: This computer has gone to sleep]
nir has joined #ruby
Hanmac has joined #ruby
m3pow has quit [Read error: Connection reset by peer]
nir has left #ruby [#ruby]
nir has joined #ruby
the_mentat has joined #ruby
Jedi_SCT1 has joined #ruby
dmerrick has joined #ruby
monkegjinni has joined #ruby
<mboro> why isn't there any documentation on the write method? http://www.ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html
baroquebobcat has joined #ruby
rippa has joined #ruby
taboo has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<csmrfx> mboro: nobody had the time to write it?
knockers has joined #ruby
hybris has quit [Read error: Connection reset by peer]
knockers has left #ruby [#ruby]
hybris has joined #ruby
<csmrfx> mboro: or perhaps it is on File
timonv has quit [Read error: Connection reset by peer]
himsin has quit [Ping timeout: 248 seconds]
<csmrfx> mboro: try $ ri File.write
timonv has joined #ruby
<v0n> hey guys, I don't see the point of Thor.
<v0n> When Thor is better than Rake?
Morkel has quit [Quit: Morkel]
m3pow has joined #ruby
<v0n> seems like it adds boilerplate by having to define classes and method instead of just tasks()
<mboro> csmrfx: thx :)
hbpoison has joined #ruby
sqrel has joined #ruby
slainer68 has joined #ruby
grn_ has joined #ruby
nir has left #ruby [#ruby]
Jedi_SCT1 has quit [Ping timeout: 248 seconds]
Jedi_SCT1 has joined #ruby
tish has quit [Quit: Leaving.]
grn has quit [Ping timeout: 248 seconds]
slainer6_ has quit [Ping timeout: 260 seconds]
jonathanwallace1 has quit [Ping timeout: 252 seconds]
nari has joined #ruby
postmodern has quit [Quit: Leaving]
alex__c2022 has joined #ruby
Evixion` has joined #ruby
Evixion has quit [Disconnected by services]
Evixion` is now known as Evixion
justme1 has joined #ruby
jerikl has joined #ruby
sie has quit [Quit: WeeChat 0.3.9.2]
bubblehead has joined #ruby
Stilo has joined #ruby
jgarvey has joined #ruby
tish has joined #ruby
<justme1> what's wrong with this 5 line code: http://pastebin.com/E0MPPjmS (it's an example from a book metaprogramming ruby)
apeiros_ has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
jgrevich has joined #ruby
philcrissman has quit [Remote host closed the connection]
ikbenhet has quit [Quit: ikbenhet]
bubblehead has quit [Ping timeout: 276 seconds]
geggam_wk has joined #ruby
<taboo> hi
Guest123 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
apeiros_ has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
nari has quit [Ping timeout: 252 seconds]
joshman_ has joined #ruby
a_a_g has joined #ruby
timols has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
zzing has joined #ruby
kristofers has joined #ruby
jonathanwallace1 has joined #ruby
oposomme is now known as oposomme|away
brian_ has joined #ruby
zzing has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
whowantstolivefo has quit [Ping timeout: 260 seconds]
<mboro> can anyone tell me how to escape a string for single and double quotes?
BrindleFly has joined #ruby
timols has quit [Ping timeout: 260 seconds]
eldariof has quit [Ping timeout: 260 seconds]
kraljev3 has joined #ruby
kpshek has joined #ruby
fedza has joined #ruby
<kraljev3> I have nested array of ints, unspecified depth and dimensions
<speakingcode-wor> mboro \" \' ?
<kraljev3> how can i map() every element (leaf)
<JonnieCache> >> %Q{lolol'"''}
<eval-in> JonnieCache: Output: "" (http://eval.in/10823)
<kraljev3> i could do recursion, but is there a nicer option?
<mboro> speakingcode-wor: I have a variable with a lot of text and I need to use gsub
<JonnieCache> goddammit i always forget puts
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<JonnieCache> mboro: but yeah surround it with %Q{}
<mboro> %Q{myVariable}?
<JonnieCache> oh hold on you want to put escape chars into a string right?
philcrissman has joined #ruby
<mboro> yeah
schaerli has joined #ruby
<JonnieCache> hmmm what kind of escape chars? for a regex?
<JonnieCache> regexes dont need quotes to be escaped
<mboro> I have a string with arbitrary chars and I need to put this string into another but it nees to be escaped before-hand if that makes sense
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
<kraljev3> [[1,3], [3, [4,5]], 7].map()
Spooner has joined #ruby
<kraljev3> how can I map nested array
yshh has quit [Remote host closed the connection]
<JonnieCache> mboro: escaped for what though?
<mboro> double and single quotes
yshh has joined #ruby
<mboro> actually, just single quotes
<JonnieCache> string.gsub("'", "\") maybe?
<JonnieCache> you havent said what youre trying to escape for
<kraljev3> so, call me, maybe?
<JonnieCache> a url? a regex?
hbpoison has quit [Read error: Connection reset by peer]
<mboro> JonnieCache: for a string in javascript. var x = '___REPLACE___'
carlyle has quit [Remote host closed the connection]
<JonnieCache> all the other boys trying to chase you?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
hbpoison has joined #ruby
<JonnieCache> ahh well in rails there is escape_javascript
x0F_ is now known as x0F
<mboro> not using rails, bummer
johnpcamara_ has joined #ruby
CraHan is now known as CraHan|out
trietptm has quit [Quit: Page closed]
maletor has joined #ruby
gregor3005 has joined #ruby
<JonnieCache> you could jsut copy paste the method out of activesupport
baroquebobcat has quit [Quit: baroquebobcat]
<gregor3005> is it possible to update the ruby files during the application is running?
<gregor3005> i try to build an update method into my client
<JonnieCache> mboro: thats the one
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
<JonnieCache> gregor3005: banister_ knows about that kind of thing
yshh has quit [Ping timeout: 276 seconds]
<banister_> gregor3005: you just need to call load()
bean__ has joined #ruby
<banister_> it'll apply any changes that have been saved in that file
codecop has joined #ruby
johnpcamara has quit [Ping timeout: 264 seconds]
<Sou|cutter> How can I change rack's error stream?
<gregor3005> banister_: on which object?
adkron has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
<banister_> gregor3005: load() is a top-level method, it behaves like a function and is accessible anywhere
<banister_> it just loads stuff into top-level
<mboro> JonnieCache: nice, works. now my only problem is that my string gets cut off at the first single quote when using gsub
mephux has quit [Excess Flood]
<mboro> JonnieCache: content.gsub!(/___REPLACE___/, escape_javascript(File.open(File.join(root, 'mycss.css')).read))
<gregor3005> banister_: thx i try it. is it also possible to reload the application? (after the update finished)
mephux has joined #ruby
<gregor3005> i meant restart the application
<banister_> gregor3005: you have to build support in for that, like keep track of which files are loaded, so that you can reload all of them when u want
schaerli has quit [Remote host closed the connection]
<banister_> it's not so easy
<banister_> but doable
<banister_> gregor3005: using something like Guard could help
<gregor3005> banister_: thx i try it, whats is guard?
Mattix has joined #ruby
tian has quit [Read error: Connection reset by peer]
<banister_> i think u can tell it what files to watch, and you can perform an action when they change
monkegjinni has quit [Remote host closed the connection]
<gregor3005> banister_: or i build in the startup rb file any function such an wrapper in bash to start the real application
<banister_> up2u
taboo has quit [Quit: Quitte]
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
tian has joined #ruby
<Sou|cutter> I want to set something in the Rack env, but I'm not sure how to access it unless I register my own middleware...
<Sou|cutter> (is that the only way?)
whitedawg has joined #ruby
Umren has joined #ruby
johnmilton has joined #ruby
PanPan has joined #ruby
LouisRoR has joined #ruby
tommyvyo has joined #ruby
<JonnieCache> Sou|cutter: in rails you can call request.env to get it whenever you want
jerikl has quit [Quit: jerikl]
baroquebobcat has joined #ruby
psyprus has quit [Quit: leaving]
<Sou|cutter> JonnieCache: hrm, I guess the env only lives within the context of a request, then?
psyprus has joined #ruby
<JonnieCache> yeah thats what it is
<JonnieCache> literally the context of a request
nobuoka has joined #ruby
PanPan has quit [Ping timeout: 248 seconds]
oposomme|away is now known as oposomme
<Sou|cutter> JonnieCache: right on. Thanks for your patience, I think I got it now :)
oposomme has quit [Quit: Linkinus - http://linkinus.com]
zzing has joined #ruby
daig0ro has joined #ruby
tish has quit [Quit: Leaving.]
chrishough has joined #ruby
monkegjinni has joined #ruby
daig0ro has quit [Client Quit]
<mboro> JonnieCache: do I need to escape my regex or why won't it replace properly?
mib_mib has joined #ruby
pyrac has quit [Quit: pyrac]
gosshedd has quit [Read error: Operation timed out]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
slainer6_ has joined #ruby
mlr has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
Udom0 has left #ruby [#ruby]
SeySayux has quit [Read error: Operation timed out]
zzing has quit [Ping timeout: 255 seconds]
Villadelfia has quit [Ping timeout: 240 seconds]
interact_ has joined #ruby
a_a_g has quit [Quit: Leaving.]
elico has joined #ruby
lethjakman_lapto has joined #ruby
endzyme has joined #ruby
thedoty has quit [Quit: leaving]
interac__ has joined #ruby
interactionjaxsn has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
elico has quit [Client Quit]
browndawg has joined #ruby
BrindleFly has quit [Ping timeout: 252 seconds]
interact_ has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
hoelzro is now known as hoelzro|away
BrindleFly has joined #ruby
chussenot has quit [Quit: chussenot]
willob has quit [Ping timeout: 276 seconds]
johnpcamara_ has quit [Quit: johnpcamara_]
johnpcamara has joined #ruby
Mattix has quit [Quit: Leaving]
johnpcamara has quit [Client Quit]
johnpcamara has joined #ruby
joeycarmello has quit [Remote host closed the connection]
johnpcamara has quit [Client Quit]
jpcamara has joined #ruby
m3pow has quit [Read error: Connection reset by peer]
aganov has quit [Quit: aganov]
hoelzro|away is now known as hoelzro
bradhe has joined #ruby
tagrudev has quit [Remote host closed the connection]
joeycarmello has joined #ruby
nazty has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Ping timeout: 276 seconds]
sayan has quit [Ping timeout: 248 seconds]
carloslopes has quit [Remote host closed the connection]
spider-mario has joined #ruby
atyz has joined #ruby
io_syl has joined #ruby
beiter has quit [Quit: beiter]
k611 has joined #ruby
niklasb has joined #ruby
dallasm has joined #ruby
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
chussenot has joined #ruby
Spooner has quit [Remote host closed the connection]
lmg_ has joined #ruby
Uranio has joined #ruby
banister_ has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 256 seconds]
alyawn has joined #ruby
k611 has quit [Ping timeout: 272 seconds]
angusiguess has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
alyawn has quit [Client Quit]
DaltonUS has joined #ruby
DaltonUS has quit [Client Quit]
bawigga has joined #ruby
robbyoconnor has joined #ruby
beiter has joined #ruby
gaahrdner has joined #ruby
beiter has quit [Client Quit]
alvaro_o has joined #ruby
aedornv has joined #ruby
codespectator has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby
monkegjinni has quit [Remote host closed the connection]
alyawn has joined #ruby
brettnem has joined #ruby
<brettnem> hey all!
alyawn has quit [Client Quit]
pavilionXP has joined #ruby
<brettnem> I'm trying to do active record without rails.. I'm still a little new to ruby, so I'm sure that's part of my problem here.. My model (class?) works great with find, but doesn't work at all with query or where.. Its like it's not actually inheriting the model stuff. Anyone know what I'm running into here? thanks!
kraljev3 has quit [Remote host closed the connection]
kraljev3 has joined #ruby
wmoxam has quit [Ping timeout: 260 seconds]
fedza_ has joined #ruby
<lethjakman_lapto> brettnem: gist.github.com post some code.
Voodoofish430 has joined #ruby
TheDeadSerious_ has joined #ruby
<brettnem> ok I can do that
puppeh has quit [Read error: Connection reset by peer]
fedza has quit [Ping timeout: 244 seconds]
puppeh has joined #ruby
philcrissman has quit [Remote host closed the connection]
slainer6_ has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: kenneth]
slainer68 has joined #ruby
dr_bob has left #ruby [#ruby]
pandawarrior has quit [Quit: Leaving.]
justme1 has quit [Quit: Leaving.]
sayan has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
slainer68 has joined #ruby
octoberry has joined #ruby
hoelzro is now known as hoelzro|away
yshh has joined #ruby
<brettnem> lethjakman_lapto: https://gist.github.com/brettnem/4997225
mafolz has quit [Quit: mafolz]
willob has joined #ruby
jonahR_ has joined #ruby
demet8 has quit [Quit: demet8]
LouisRoR has quit [Ping timeout: 252 seconds]
PanPan has joined #ruby
Proshot has joined #ruby
snowyrooftops has joined #ruby
yshh has quit [Ping timeout: 264 seconds]
dallasm has left #ruby [#ruby]
mkultra has joined #ruby
codespectator has joined #ruby
timols_ has joined #ruby
jonahR has quit [Ping timeout: 264 seconds]
jonahR_ is now known as jonahR
timonv_ has joined #ruby
<mkultra> hi, gem explosions going on here.... Installing charlock_holmes (0.6.9) with native extensions..... Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
timonv has quit [Read error: Connection reset by peer]
<JonnieCache> mkultra: did you install the native lib it depends on?
whitedawg has quit [Ping timeout: 240 seconds]
alyawn has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
PanPan has quit [Ping timeout: 256 seconds]
chrisja has joined #ruby
thinkclay has joined #ruby
dEPy has joined #ruby
<lethjakman_lapto> do you have the require and such in?
<lethjakman_lapto> and do you make the connection?
whitedawg has joined #ruby
gosshedd has joined #ruby
atyz has quit [Quit: Leaving...]
timols_ has quit [Ping timeout: 244 seconds]
velCzupa has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 256 seconds]
ckrailo has joined #ruby
<qubit> is there a way to set SO_REUSEADDR when unicorn goes to bind to a socket? My app is failing to start when old connections are sitting in TIME_WAIT state, and unicorn cant bind because it doesnt seem to be setting SO_REUSEADDR
banisterfiend has joined #ruby
breakingthings has quit []
philcrissman has joined #ruby
<jokke> okay, this is weird.. I just imploded rvm, because i'm just having trouble with it. And now i get /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find dynmenu (>= 0) amongst [] (Gem::LoadError) when i'm trying to start a gem i installed after i imploded rvm
<lethjakman_lapto> mkultra: what system?
chrishough has quit [Quit: chrishough]
<lethjakman_lapto> jokke: did you run 'rvm use' on a specific version?
<jokke> ah yes
francisfish has quit [Remote host closed the connection]
mattbl has joined #ruby
wmoxam has joined #ruby
mpfundstein has quit [Remote host closed the connection]
<jokke> lethjakman_lapto: why?
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
<brettnem> lethjakman_lapto: yeah, that was the basis of what I did.. like I said, "find" methods work great. switch to a where and it says the method isn't valid
joeycarmello has joined #ruby
<lethjakman_lapto> I've had it that rvm is set to a different version and installs the gem for a different version than everything else is using. try reinstalling the rails gem and whatever else you need immediatly after running rvm use on a version
angusiguess has quit [Ping timeout: 256 seconds]
<jokke> lethjakman_lapto: well i removed rvm from my system
<lethjakman_lapto> are you on OSX?
<lethjakman_lapto> brettnem: I didn't see it in your code, that's why I asked
dhruvasagar has joined #ruby
<mkultra> sorry
<mkultra> gentoo
gregor3005 has quit [Quit: Leaving.]
<mkultra> it has mysql, im trying to adapt gitlab from debian to gentoo, and am like 4/5ths done
<jokke> lethjakman_lapto: me? no i'm on linux
<jokke> ah after a reoot all is well
<lethjakman_lapto> that makes sense, yeah you were looking for a version that wasn't there
<jokke> probably some env vars
<lethjakman_lapto> yep
<mkultra> i stil have not adapted rvm to gentoo yet, though rails and passenger work well
VolodymyrB has joined #ruby
VolodymyrB has quit [Client Quit]
Xeago_ has joined #ruby
<Xeago_> apeiros_: you up for some new patch fun?
timmow has quit [Ping timeout: 252 seconds]
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
SCommette has joined #ruby
<mkultra> eselect ruby18, and eselect ruby 19 were both tried and same failure, it doesnt really say what it depends upon. the compilation shows yes yes yes yes to having its backends, then common.h:23:14: warning: 'charlock_new_str' defined but not used errors
<lethjakman_lapto> brettnem: test = CDR.where("account_id = 1234")
<lethjakman_lapto> what happens if you try to use it that way instead
mityaz has joined #ruby
banisterfiend has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
<aedornv> mkultra: are you installing this from the ebuild, or doing it from rubygems?
<mkultra> i ebuilt ruby, then hammering gems the rest of the way
demet8 has joined #ruby
<bean__> gentoo, ew./
<bean__> idk why you'd put yourself through that pain
<mkultra> its less painful than linux from scratch, thats why
<JonnieCache> good answer
<aedornv> Gentoo, Arch, and Slack are the only distros where you can still build what you want, when you want, how you want... =p
twoism has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<bean__> fuck that.
<bean__> lol
<mkultra> and linux from scratch
<bean__> LFS is nice to do once.
<bean__> cuz you learn a lot.
<mkultra> yeah
mmitchell has quit [Ping timeout: 248 seconds]
a_a_g1 has joined #ruby
<mkultra> arch is far better documented than gentoo, so i chose gentoo to write up tons of stuff, im almost done writing up gitlab
<lethjakman_lapto> I hated gentoos ports system, it breaks so much
<lethjakman_lapto> freeBSD for me :)
<yxhuvud> aedorn: thing about building is that for most people, building when you want means 'never'.
<mkultra> LOL
twig has joined #ruby
zigomir has quit [Quit: zigomir]
c0rn has joined #ruby
<mkultra> almost everything is latest on my system, the vm im beating up is defacto stable packages
<brettnem> lethjakman_lapto: still get "undefined method `where' for #<Class:0x7f734e35ceb0>"
<JonnieCache> i did a stage zero gentoo install years upon years ago around the turn of the millenium
kenneth has joined #ruby
<aedornv> mkultra: right, back to your thing .. have you looked at the mkmf.log file?
<mkultra> its stage 3 only now, its come a long ways, ive never seen portage broken
carraroj has quit [Quit: Konversation terminated!]
<mkultra> ill locate it
Catbuntu has joined #ruby
generalissimo has joined #ruby
<aedornv> Should be /usr/lib/ruby/gems/1.9.1/charlock_holmes-0.6.9/ext/charlock_holmes... can't remember where the ebuild puts ruby.. /usr, or /usr/local.
<aedornv> er.. ruby/gems/1.9.1/gems/ ...etc
timonv has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
<lethjakman_lapto> brettnem: run test.class.name after setting it to CDR
BoomCow has joined #ruby
<Sou|cutter> wrote a post about shutting up rack-cache verbose logging - sorta curious if anybody thinks there is a better way: www.soulcutter.com/blog/2013/how-to-turn-off-dragonflys-default-verbose-rack-cache/
cdt has quit [Remote host closed the connection]
<mkultra> /usr/local....... but for me, my problem /home/gitlab/gitlab
<aedornv> oh, bundler..
elico has joined #ruby
elico has quit [Client Quit]
j^2 has joined #ruby
<mkultra> yeah i have both locations, seems /home/gitlab/gitlab is where the relevant one is
<banisterfiend> Sou|cutter: man, im sick of that cookie-cutter blog format :) i see it absolutely everywhere, what's it called again?
<Sou|cutter> banisterfiend: octopress
<banisterfiend> ah
<banisterfiend> i dont know why people even choose it, it doesn't even look nice
techhelp has joined #ruby
<Sou|cutter> banisterfiend: it's the default theme. I am too lazy to design my own
<banisterfiend> Sou|cutter: but your article looks cool ;)
<aedornv> yeah, then it's vendor/bundle/ruby/1.9.1/gems/charlock ... etc
schaerli has quit [Remote host closed the connection]
<banisterfiend> Sou|cutter: what do you use to render source code?
<Sou|cutter> banisterfiend: one day I promise I'll get around to hacking my own theme
<banisterfiend> Sou|cutter: is that just a gist, or someting else?
<brettnem> lethjakman_lapto: I can't really because it dies when it hits that NoMethodError
stetho has quit [Quit: stetho]
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<Sou|cutter> banisterfiend: It's using some octopress-customized pygments thing I think
<banisterfiend> oh ok
<Sou|cutter> banisterfiend: http://octopress.org/docs/blogging/code/ <-- described here
<banisterfiend> that looks nice
aquaranto has joined #ruby
mengu has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
zzing has joined #ruby
<lethjakman_lapto> brettnem: even with test = CDR ?
<brettnem> oh, I can try that
justme1 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<brettnem> lethjakman_lapto: I just get "Class"
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
k610 has joined #ruby
chrishough has joined #ruby
adeponte has joined #ruby
rupee has joined #ruby
gaahrdner has quit [Remote host closed the connection]
<lethjakman_lapto> brettnem: hmmmm that's weird. yeah it's not extending ActiveRecord at all.
Vainoharhainen has quit [Quit: Leaving...]
dmiller has joined #ruby
kpshek has quit []
sayan has quit [Read error: Connection reset by peer]
sambio has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
<brettnem> lethjakman_lapto: yeah, that's what I thought, but not sure what to do about it
twig has quit [Quit: Page closed]
jeremywrowe has quit [Quit: jeremywrowe]
backjlack has quit [Remote host closed the connection]
stringoO has joined #ruby
xardas has joined #ruby
<v0n> what the start means in lambda {|*|} ?
skattyadz has quit [Quit: skattyadz]
<justme1> I don't understand the difference between object and object's class. My understanding is that an object only has instance variables and a reference to its class where its methods are. A class is an object, therefore it has instance variables, too. How could a class(as an object) have methods in it?
artOfWar has joined #ruby
Kadma has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
Adsisco has left #ruby [#ruby]
skattyadz has joined #ruby
k610 has quit [Ping timeout: 276 seconds]
m3pow has joined #ruby
demet8 has quit [Quit: demet8]
slainer68 has joined #ruby
<jokke> hey, who was the one who wrote the irc logging app again?
mahmoudimus has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<Xeago_> justme1: your thought pattern is kinda correct
rippa has joined #ruby
<jokke> the one on this channel?
Elhu has quit [Quit: Computer has gone to sleep.]
<Xeago_> because a class is an object, it also has a reference to its class (object I think), which has a method reference lookup table
<Xeago_> and that recurses up the inheritance chain
<lethjakman_lapto> brettnem: I'm not sure, I'd have to mock up some code to try and figure it out. I might be able to at lunch
Takehiro has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
<lethjakman_lapto> let me know if you find the solutino because I'm curious. I'm nto sure if it's your system or how it's written.
jonathanwallace1 has quit [Quit: WeeChat 0.3.9.2]
<lethjakman_lapto> it might be a weird typo somewhere.
* Xeago_ off
jonathanwallace has joined #ruby
<justme1> I didn't quite get it.
Rizzle has joined #ruby
fmcgeough has joined #ruby
<lethjakman_lapto> justme1: do you know C++?
johnallright has joined #ruby
<justme1> lethjakman_lapto: a bit.
mattbl has quit [Quit: This computer has gone to sleep]
brettnem has quit [Quit: brettnem]
Takehiro_ has joined #ruby
mockra has joined #ruby
<johnallright> Is there somewhere I can get downloadable Ruby documentation? I tried http://ruby-doc.org/downloads/, but it's all raw unformatted HTML, to the point of being very hard to read. I'd like to basically read http://www.ruby-doc.org/core-1.9.3/ offline. Any ideas?
k610 has joined #ruby
fmcgeough has quit [Client Quit]
kpshek has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mattbl has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
nanothief has joined #ruby
havenwood has joined #ruby
ozgura has quit [Remote host closed the connection]
nobuoka has quit [Quit: Leaving...]
mrsolo has joined #ruby
techhelp has quit [Quit: Leaving]
gyre008 has joined #ruby
techhelp has joined #ruby
a_a_g1 has quit [Quit: Leaving.]
gregor3005 has joined #ruby
octoberry has quit [Ping timeout: 272 seconds]
<johnallright> aedornv: thanks
_nitti has quit [Remote host closed the connection]
alvaro_o has quit [Remote host closed the connection]
johnallright has quit [Quit: Page closed]
alvaro_o has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
nanothief has quit [Ping timeout: 276 seconds]
_nitti has joined #ruby
jerikl has joined #ruby
<gregor3005> is it possible to set the tabulator position? i want to refactor my shell menu so it looks nicer
etcetera has quit []
kevinfagan has quit [Quit: Leaving...]
<gregor3005> this didn't helped me: "%10s%25s" % ["help", "print this help info"]
sayan has joined #ruby
dmiller has quit [Ping timeout: 272 seconds]
<lethjakman_lapto> justme1: you understnad what a class is?
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
gyre007 has quit [Ping timeout: 260 seconds]
schaerli has joined #ruby
sh42 has joined #ruby
sh42 has quit [Changing host]
sh42 has joined #ruby
<lethjakman_lapto> justme1: like how a class is different from an int and so on?
<justme1> lethjakman_lapto: I hope so, but I don't think I understand what a class is in Ruby.
gyre008 has quit [Ping timeout: 260 seconds]
etcetera has joined #ruby
whitedawg has quit [Quit: Leaving.]
<lethjakman_lapto> justme1: so in languages like c++ you have an integer, and all it is is an integer. nothing else. you can't run integer.count integer.length or anything like that
<gregor3005> a class in ruby is a object
Takehiro_ has quit [Remote host closed the connection]
<gregor3005> :-)
<lethjakman_lapto> but in languages like ruby everything is a class
robbyoconnor has quit [Ping timeout: 240 seconds]
<lethjakman_lapto> so it comes with a bunch of functions and stuff attached to it
<justme1> lethjakman_lapto: that part I understand. but does what class has?
bradleyprice has joined #ruby
<gregor3005> lethjakman_lapto: i tought in ruby everything is a object becaus its objectoriented not class oriented
ferdev has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 252 seconds]
<lethjakman_lapto> objects are variables that come from classes
ebobby has joined #ruby
<gregor3005> but classes are also object
<gregor3005> because you can but singleton methods to it
jeremywrowe has joined #ruby
sn0wb1rd has joined #ruby
<gregor3005> and execute it
robbyoconnor has joined #ruby
<gregor3005> btw does anybody know i can set a left/right/center tabulator in strings
slainer68 has quit [Remote host closed the connection]
<havenwood> gregor3005: tabulator?
skattyadz has quit [Quit: skattyadz]
miskander has joined #ruby
<havenwood> gregor3005: "\t" for tabs, or is it you want to center and right-justify?
<lethjakman_lapto> justme1: yep, all true, but just focus on classes being objects. when someone talks about a class they're generally talking about the code to make up an a class, but when they're talking about an object they're usually refering to a specific instance of that class.
<gregor3005> havenwood: ? \t but center or left/right shift it (justify)
ffranz has quit [Quit: Leaving]
hukl has joined #ruby
<gregor3005> sry, wrong transatedit i ment tabs
BoomCow has quit [Read error: Connection reset by peer]
Monie has joined #ruby
<gregor3005> havenwood: i try it with ljust, rjust and center
<havenwood> gregor3005: that seems best
<kraljev3> array value must start with "{" or dimension information
<kraljev3> SELECT ARRAY['a', ARRAY['b', 'c']]
<kraljev3> why doesn't this work
ffranz has joined #ruby
eindoofus has joined #ruby
schaerli has quit [Remote host closed the connection]
arya has quit []
arya has joined #ruby
breakingthings has joined #ruby
punknology has joined #ruby
eldariof has joined #ruby
jgarvey has quit [Quit: Leaving]
alyawn has quit [Quit: alyawn]
hbpoison has joined #ruby
<lethjakman_lapto> kraljev3: what are you trying to do with that? you want to make a nested array?
alyawn has joined #ruby
_nitti has quit [Remote host closed the connection]
m8 has joined #ruby
<kraljev3> sorry, wrong window
<lethjakman_lapto> oh ok lol
Xeago_ has quit [Ping timeout: 245 seconds]
jgrevich_ has joined #ruby
jgrevich has quit [Read error: Operation timed out]
jgrevich_ is now known as jgrevich
alyawn has quit [Client Quit]
backjlack has joined #ruby
graft has joined #ruby
sayan has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 256 seconds]
alyawn has joined #ruby
mercwithamouth has joined #ruby
<graft> what's the most wget-like protocol agnostic module i can get via ruby?
<graft> so i don't have to worry about ftp or http or whatnot
hbpoison has quit [Ping timeout: 264 seconds]
<graft> short of just doing `wget -O - <url>`
chopmo has joined #ruby
BoomCow has joined #ruby
hoelzro|away is now known as hoelzro
kpshek has quit []
generalissimo has quit [Remote host closed the connection]
mkultra has quit [Quit: Leaving]
Banistergalaxy has quit [Ping timeout: 244 seconds]
chopmo has quit [Client Quit]
maxmanders has joined #ruby
chopmo has joined #ruby
Banistergalaxy has joined #ruby
kpshek has joined #ruby
ahokaomaeha has joined #ruby
daniel_hinojosa has quit [Ping timeout: 248 seconds]
Xeago_ has joined #ruby
maycon has joined #ruby
baba has quit [Quit: WeeChat 0.4.0]
marr has quit [Ping timeout: 240 seconds]
<havenwood> graft: Hrm, maybe one of the curl wrappers, curb or patron?
the_mentat has quit [Quit: Computer has gone to sleep.]
ahokaomaeha has quit [Read error: Connection reset by peer]
ahokaomaeha has joined #ruby
mib_mib has quit [Ping timeout: 245 seconds]
sebkomianos has joined #ruby
lingon has quit [Ping timeout: 245 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
codecop has quit [Quit: Išeinu]
nazty has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
pyrac has joined #ruby
Takehiro has joined #ruby
ferdev has joined #ruby
anderse has quit [Quit: anderse]
m3pow has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130218103006]]
mattbl has quit [Quit: This computer has gone to sleep]
aquaranto has left #ruby [#ruby]
<eindoofus> I'm coming from the world of C# and Java and I'm starting to get a grip on Ruby, however, I'm completely confused as to the concept of statements outside of classes/methods, and also methods without a class. Can someone help clear this up for me? I'm used to running a program with a traditional "public static void main" method.
<hoelzro> eindoofus: methods without a class (as in def foo ... end in the top level) are still on a class
<hoelzro> they're on Object and private
kenneth has quit [Ping timeout: 255 seconds]
squidBits has joined #ruby
dmerrick_ has joined #ruby
<hoelzro> statements outside of a method or class are evaluated in the context of a main object
<sebkomianos> and everything is an object in ruby
<hoelzro> it's some "sugar" to make things easier at first
lancepantz_ is now known as lancepantz
<bean__> .. def myfunc; end; p myfunc.class
<bean__> >> def myfunc; end; p myfunc.class
<eval-in> bean__: Output: "NilClass\n" (http://eval.in/10827)
dmerrick has quit [Read error: Connection reset by peer]
dmerrick_ is now known as dmerrick
* bean__ wasn't sure if that would work
<eindoofus> hoelzro, so methods and statements outside of classes are part of a "main object", is that correct?
sh42 is now known as zeroSignal
Amnesia has joined #ruby
kenneth has joined #ruby
<kraljev3> I hae nested array in ruby [1,2,[3,4, [1], [1]],[2]]
<hoelzro> eindoofus: that's the best way to think of them, I think
<bean__> >> def myfunc; end; p myfunc.ancestors
<eval-in> bean__: Output: "/tmp/execpad-78b34b5e5646/source-78b34b5e5646:1:in `<main>': undefined method `ancestors' for nil:NilClass (NoMethodError)\n" (http://eval.in/10828)
<kraljev3> how to map() all numbers
<Amnesia> question, how's it possible that ARGV's available everywhere?
generalissimo has joined #ruby
<kraljev3> easist way
<hoelzro> Amnesia: it's a global
johnmilton has joined #ruby
<shevy> kraljev3 what does "map all numbers" mean. you can use .flatten
LouisRoR has joined #ruby
<eindoofus> thanks hoelzro
<kraljev3> how to call map() on all leaves
<kraljev3> i want to preserve structure
<shevy> leaves?!?!
<Amnesia> hoelzro: how's that possible if it doesn't contain a $ ?
<hoelzro> kraljev3: flatten + map?
ozgura has joined #ruby
pandawarrior has joined #ruby
<shevy> why do you want to "preserve" a structure...
<hoelzro> Amnesia: oh, good point; then technically it's a constant
<Amnesia> yeah, but constants aren't available everywhere..
<kraljev3> leaves = plural of leaf
* Amnesia no understand
<apeiros_> o0
<kraljev3> so, no other option than recursion?
<hoelzro> Amnesia: sure they are
<bean__> kraljev3: what do you expect to be returned after you "map" it
<apeiros_> where are constants not available?
the_mentat has joined #ruby
<hoelzro> constants belonging to Kernel and Object are
<Amnesia> ah..
<kraljev3> [1,[2, 3]].map_special { |num| num += 1 }
Takehiro_ has joined #ruby
<kraljev3> [2, [3,4]]
imami|afk is now known as banseljaj
<Amnesia> ok, so a constant which has been declared in the highest scope ( main() ), is more or less the same as a var defined using a $ sign?
<kraljev3> i could flatten, but then i would get flat array
jaygen has joined #ruby
icole has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
alyawn has quit [Quit: alyawn]
sn0wb1rd has quit [Remote host closed the connection]
<shevy> [1,[2, 3]].map {|x| if x.is_a? Array; x.map(){|y| y+1}; else; x+1; end} # => [2, [3, 4]]
<Amnesia> hoelzro: ?
sn0wb1rd has joined #ruby
mattbl has joined #ruby
<hoelzro> pretty much
<kraljev3> TypeError: can't convert Fixnum into Array
<kraljev3> [1,[2, [3]]]
<hoelzro> >> puts [1,[2, 3]].flatten.map {|x| x + 1 }
<Amnesia> hoelzro: hmkay, ty:)
<havenwood> kraljev3: Like shevy's this is just for that particular array, but you could make a recursive version: [1,[2, 3]].map { |n| n.class == Fixnum ? n + 1 : n.map { |n| n + 1 } }
<eval-in> hoelzro: Output: "2\n3\n4\n" (http://eval.in/10829)
<hoelzro> oh, I see the issue now
<bean__> >> p [1,[2, 3]].map {|x| if x.is_a? Array; x.map(){|y| y+1}; else; x+1; end}
<eval-in> bean__: Output: "[2, [3, 4]]\n" (http://eval.in/10830)
etcetera has quit []
<bean__> really you could use recursion though
<bean__> I've written many a thing like this in scheme
<shevy> kraljev3 you changed the dataset
browndawg has quit [Quit: Leaving.]
dmiller has joined #ruby
<shevy> kraljev3 give the most complicated input rather than change your condition all the time
<kraljev3> if I had given you depth 3 array
chussenot has quit [Quit: chussenot]
<shevy> yes, give
<kraljev3> you could write it just in that case
<shevy> yes, the problem was solved
endzyme has quit [Remote host closed the connection]
<kraljev3> [[[[1]]]].map{ |i| i+1}
<kraljev3> [[[[2]]]]
<shevy> is this the most complicated input?
_nitti_ has joined #ruby
<kraljev3> [[[[1]], [2]]] this one is
<kraljev3> [[[[2]], [3]]]
etcetera has joined #ruby
<shevy> havenwood your code doesn't seem to work on that input
Takehiro_ has quit [Remote host closed the connection]
<havenwood> shevy: i didn't do a recursive version >.>
<bean__> there you go
<bean__> that'll use recursion
<bean__> and should work on any level of nested
<kraljev3> bean, could that be done using lambda
<kraljev3> so I don't polute namespace?
<shevy> undef add_1_to_all
* bean__ would probably just monkey patch it in to Array
<bean__> and call it something else / make it generic.
angusiguess has joined #ruby
* bean__ isn't very good at using lambda is ruby
<sebkomianos> guys, if you had a moment to read (and maybe even answer) I'd appreciate you forever :) http://stackoverflow.com/q/14985822/1175943
hoelzro is now known as hoelzro|away
kevinfagan has joined #ruby
kevinfagan has quit [Read error: Connection reset by peer]
kevinfagan has joined #ruby
banjara has joined #ruby
banjara has left #ruby [#ruby]
greenarrow has quit [Read error: Connection reset by peer]
eldariof has quit []
greenarrow has joined #ruby
sulaiman has quit [Quit: This computer has gone to sleep]
miskander has quit [Quit: miskander]
<shevy> sebkomianos this is rails or? the railsers are on #rubyonrails, not many here on #ruby are rails experts
<sebkomianos> shevy it's ruby and rails :D
<sebkomianos> I asked the railsers too, they seem busy though
chopmo has quit [Remote host closed the connection]
_nitti_ has quit [Ping timeout: 264 seconds]
<shevy> well this method seems to be used only in rails, so it is only rails really
<bean__> kraljev3: did you get it figured out
miskander has joined #ruby
<kraljev3> hm, checking it out
<kraljev3> if it works if the type changes
PanPan has joined #ruby
<kraljev3> for exampkle .to_s()
<aedornv> sebkomianos: because it's content_tag tag, content_OR_options .. and you're trying to do content_tag tag, block
<aedornv> what you want is just content_tag :th, day
<Amnesia> hm, is there some way to select 2 keys from a hash at once?
decoponio has quit [Quit: Leaving...]
Uranio has quit [Quit: while you reading this, a kitty dies]
ctp has quit [Quit: Leaving...]
gaahrdner has joined #ruby
Pandaen has quit [Ping timeout: 248 seconds]
jpcamara has quit [Quit: jpcamara]
PanPan has quit [Ping timeout: 276 seconds]
mark_locklear has quit [Remote host closed the connection]
budmang has joined #ruby
<shevy> Amnesia hmm could be
__BigO__ has quit [Remote host closed the connection]
<Amnesia> hash['keyone','keytwo'] doesn't work obviously
<bean__> kraljev3: i have a version that is a lambda if you want
__BigO__ has joined #ruby
reset has joined #ruby
<kraljev3> yes, sure :) thanks, bean!
<shevy> Amnesia no but I think you can reverse a hash, then do .values_at
rlb3 has quit [Quit: rlb3]
<kraljev3> I wish ruby had .filter() call on Hash
__BigO__ has quit [Remote host closed the connection]
<kraljev3> you could select which keys you want kept
<Amnesia> hm ok:)
budmang_ has quit [Ping timeout: 276 seconds]
<kraljev3> {a: 1, b: 2, c: 3, d: 4}.keep :a, :c
<kraljev3> {a:1, c:3}
<kraljev3> filter() would also be a good synonym
<bean__> kraljev3: there is #reject
jrendell has joined #ruby
<kraljev3> there is also #select!
m3pow has joined #ruby
_nitti has joined #ruby
<kraljev3> but only works with blocks
pyrac has quit [Quit: pyrac]
razibog has quit [Ping timeout: 256 seconds]
kevinfagan has quit [Quit: Leaving...]
<kraljev3> so you have to do it like this:
<kraljev3> hash.select{ |key, val| true if [:a, :b].include? key }
<bean__> yeah, I don't think that's too unreasonable
mahmoudimus has joined #ruby
antonishen has joined #ruby
<Sou|cutter> 'true if' is sorta redundant
<bean__> ^
<kraljev3> sorta :D
timonv_ has quit [Remote host closed the connection]
<Sou|cutter> I was trying to cushion the blow
<epitron> kraljev3: keep! i never thought of that. that's way better than slice/values_at
sulaiman has joined #ruby
gosshedd has quit [Ping timeout: 248 seconds]
apok has joined #ruby
pyrac has joined #ruby
j^2 has quit [Quit: leaving]
gosshedd has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
mahmoudi_ has joined #ruby
blaxter has quit [Quit: foo]
mahmoudimus has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
aedornv has quit [Quit: Leaving]
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
piotr_ has joined #ruby
jimeh has joined #ruby
slainer68 has joined #ruby
justme1 has quit [Quit: Leaving.]
iamjarvo has joined #ruby
justme1 has joined #ruby
Takehiro has joined #ruby
slainer6_ has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
kirun has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
huttan has quit [Remote host closed the connection]
pandawarrior has quit [Quit: Leaving.]
nomenkun has joined #ruby
ebobby has quit [Quit: Lost terminal]
brianpWins has joined #ruby
Takehiro has quit [Ping timeout: 276 seconds]
alx- has joined #ruby
sayem has joined #ruby
kennyvb has quit [Quit: ZNC - http://znc.in]
ferdev has quit [Quit: Leaving...]
atyz has joined #ruby
sayem has quit [Remote host closed the connection]
kennyvb has joined #ruby
carloslopes has quit [Remote host closed the connection]
jpcamara has joined #ruby
axl_ has quit [Quit: axl_]
toekutr has joined #ruby
lushious has quit [Remote host closed the connection]
jpcamara has quit [Remote host closed the connection]
jpcamara has joined #ruby
huttan has joined #ruby
shevy has joined #ruby
axl_ has joined #ruby
justme1 has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
arturaz has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
bradhe has joined #ruby
Es0teric has joined #ruby
wallerdev has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
horofox has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
jrendell has quit [Quit: jrendell]
monkegjinni has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
mahmoudi_ has quit [Ping timeout: 252 seconds]
mahmoudimus has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Remote host closed the connection]
j^2 has joined #ruby
rezzack has joined #ruby
pandawarrior has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
angusigu1ss has joined #ruby
horofox has quit [Quit: horofox]
mmitchell has joined #ruby
monkegjinni has quit [Remote host closed the connection]
_JamieD_ has quit [Quit: _JamieD_]
angusiguess has quit [Ping timeout: 276 seconds]
Al__ has joined #ruby
Al__ has quit [Client Quit]
reset has quit [Quit: Leaving...]
marr has joined #ruby
becom33 has joined #ruby
nicoulaj has joined #ruby
monkegjinni has joined #ruby
<becom33> I was thinking if there is a way of sending mails without having to config smtp like in php the mail() function
<becom33> does anyone have any idea how can I do that ?
johnmilton has quit [Quit: Leaving]
ebobby has joined #ruby
rlb3 has joined #ruby
tylersmith has joined #ruby
<bean__> Typically sending mail requires some sort of SMTP server.
MartinCleaver has joined #ruby
<becom33> yes inneed but I was thinking if we use smtp we need to mention a sender with a real smtp account
carlyle has joined #ruby
rlb3 has quit [Client Quit]
jrendell has joined #ruby
<becom33> but in mail() function in php doesnt require a real email account
j^2 has quit [Quit: WeeChat 0.3.9.2]
_nitti has quit [Ping timeout: 252 seconds]
dankest has joined #ruby
_nitti has joined #ruby
<GeekOnCoffee> becom33: what happens if you don't configure smtp?
<becom33> it won't send obviously
<GeekOnCoffee> why is that obvious?
ukd1 has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
reset has joined #ruby
ThePicard has quit [Quit: Engage]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
endzyme has joined #ruby
<ukd1> Does anyone know how I can find out what happened the crypt19 gem? It appears to have been removed from rubygems
ThePicard has joined #ruby
j^2 has joined #ruby
kevinfagan has joined #ruby
alvaro_o has joined #ruby
banisterfiend has joined #ruby
allaire has joined #ruby
PanPan has joined #ruby
tian has quit [Ping timeout: 252 seconds]
tian has joined #ruby
glennt has joined #ruby
bradhe has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
j^2 has quit [Remote host closed the connection]
alvaro_o has quit [Read error: Connection reset by peer]
j^2 has joined #ruby
alvaro_o_ has joined #ruby
PanPan has quit [Ping timeout: 240 seconds]
j^2 has quit [Client Quit]
j^2 has joined #ruby
br4ndon has joined #ruby
jimeh has joined #ruby
octoberry has joined #ruby
j^2 has quit [Client Quit]
kold has joined #ruby
jimeh has quit [Client Quit]
vikhyat has quit [Remote host closed the connection]
j^2 has joined #ruby
pothibo has joined #ruby
BoomCow has joined #ruby
bradhe has quit [Remote host closed the connection]
ferdev has joined #ruby
bradhe has joined #ruby
apeiros_ has joined #ruby
philcrissman has joined #ruby
vikhyat has joined #ruby
j^2 has quit [Client Quit]
s1kx has quit [Quit: Leaving]
jimeh has joined #ruby
Xeago_ has quit [Quit: Page closed]
<Sou|cutter> I hereby dub zero or more unused method parameters the "one eyed man" operator
<Sou|cutter> def thing(*_)
jimeh has quit [Client Quit]
rowsdower has joined #ruby
AndChat| has quit [Quit: Bye]
verysoftoiletppr has joined #ruby
lkba has joined #ruby
hbpoison has joined #ruby
stephanvd has quit [Ping timeout: 245 seconds]
niklasb has quit [Ping timeout: 255 seconds]
gosshedd has quit [Read error: Operation timed out]
alvaro_o_ is now known as alvaro_o
hbpoison has quit [Ping timeout: 272 seconds]
LouisRoR has quit [Ping timeout: 272 seconds]
jimeh has joined #ruby
jimeh has quit [Client Quit]
<pandawarrior> hi, any recommendations for how the web works as a primer and how rails fits into the web ecosystem?
kold has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
havenwood has joined #ruby
mboro has quit [Quit: leaving]
alvaro_o has quit [Quit: Ex-Chat]
alvaro_o has joined #ruby
BrindleFly has quit [Quit: BrindleFly]
Al__ has joined #ruby
snowyrooftops has left #ruby ["Leaving"]
swex_ has quit [Remote host closed the connection]
gosshedd has joined #ruby
jonahR has quit [Quit: jonahR]
ryanf has joined #ruby
bradhe has quit [Remote host closed the connection]
gaahrdner has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
arturaz has joined #ruby
<shevy> pandawarrior a rails question! off with you to #rubyonrails :D
failshell has quit [Remote host closed the connection]
<shevy> but if you ask me
<shevy> rails has no place in the world
<shevy> :P
<arturaz> world begs to differ
maletor has quit [Quit: Computer has gone to sleep.]
<pandawarrior> shevy: i realised i posted to the wrong channel railed my ass over to rails a minute ago :)
Nisstyre-laptop has joined #ruby
<pandawarrior> although the question still stands, even if the answers given aren't specific to rails
<pandawarrior> i need, like a how the web works primer
<pandawarrior> so many resources out there, going into too much depth. i'm looking for a whistle stop tour
nicoulaj has quit [Remote host closed the connection]
<shevy> you query data from a remote computer
<shevy> basically as far as I know, REST is what is happening all the time
kostine has joined #ruby
<shevy> somesite.com/buy/cheese/5
arya has joined #ruby
<shevy> or how is it called... routing blabla
<pandawarrior> lol
workmad3 has joined #ruby
Myconix has joined #ruby
invisime has left #ruby [#ruby]
jonathanwallace has quit [Ping timeout: 260 seconds]
<pandawarrior> but how do http headers work? or networks play a role?
miskander has quit [Quit: miskander]
mityaz has quit [Quit: See ya!]
hybris has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Quit: leaving]
mercwithamouth has joined #ruby
khedrub has joined #ruby
Catbuntu has quit [Quit: achús]
antonishen has left #ruby [#ruby]
gaahrdner has joined #ruby
jrajav has joined #ruby
sebkomianos has quit [Quit: sebkomianos]
baroquebobcat has quit [Quit: baroquebobcat]
alyawn has joined #ruby
<khedrub> hi. I was trying to get redmine to run on our ubuntu 10.04 webserver and was drowning in ruby errors and I decided to uninstall and reinstall it. Now I really messed it up it seems, because I can't even get ruby-gems to install at all anymore. Please somebody who has some experience walk me through it, since all the tutorials end up in the same dead ends for me :-(
kpshek has quit []
huoxito has quit [Ping timeout: 256 seconds]
jpcamara has quit [Quit: jpcamara]
ctp has joined #ruby
alyawn has quit [Client Quit]
Jackneill has quit [Ping timeout: 252 seconds]
pyrac has quit [Quit: pyrac]
Banistergalaxy has quit [Ping timeout: 272 seconds]
Kingy has joined #ruby
<shevy> pandawarrior no idea, arent http headers sent before a request is made? or while a request is made?
<khedrub> now after apt-getting ruby and installing ruby-gems via apt-get, /usr/bin/gem does not get installed. And if I try via downloading the tar-ball instead and do a ruby setup.rb, it throws this: sudo ruby setup.rb
<khedrub> ./lib/rubygems.rb:29:in `require': no such file to load -- rbconfig (LoadError)
<khedrub> from setup.rb:27:in `require'
<khedrub> from ./lib/rubygems.rb:29
<khedrub> from setup.rb:27
<shevy> khedrub look, you use ubuntu
<pandawarrior> shevy: don't know...
<shevy> ubuntu changed things in ruby
<pandawarrior> i'm on #web now hopefully i'll get some answers there :)
Banistergalaxy has joined #ruby
<khedrub> shevy: okay, so what do I do about that?
alyawn has joined #ruby
<shevy> khedrub if you abandon ubuntu, you could use RVM or compile straight from source into /usr prefix, ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p385.tar.bz2
<shevy> khedrub I can not decide for you. you need to decide whether you stay in ubuntu or not
<shevy> there are also a few people here using ubuntu
<shevy> Hanmac for example
<shevy> he can help
elaptics`away is now known as elaptics
<khedrub> shevy: no choice, we have to stay with it now. Everything (except redmine) is already completely configures and in use
<shevy> there is usually a way to decripple the ubuntu ruby
Megamind has joined #ruby
<Megamind> pure ruby or use rails?
<shevy> Megamind pure ruby!!!!!!!!!
kraljev3 has quit [Ping timeout: 255 seconds]
<Megamind> i'm practically just starting now : - )
<shevy> well
<shevy> if you ask this question
<shevy> chances are high you only came to ruby because of rails :(
<Megamind> i'm an advanced java and not so happy php engineer
<shevy> good!
<shevy> dump php, enter the ruby!
<bean__> I use ubuntu, and usually stick with the system packages
kpshek has joined #ruby
<bean__> on my mac I use rvm though
<shevy> see khedrub here is another wise ubuntu man :)
rowsdower has left #ruby ["Konversation terminated!"]
<Megamind> whats about the performance down sides of ruby? (i'm not sure if thats old talk)
<shevy> it's probably some "apt-get install ruby-supermagicfix-all"
__BigO__ has joined #ruby
<Megamind> ^^
<shevy> Megamind ruby 1.9.x is quite fast
Alex-_ has joined #ruby
<bean__> khedrub: so how did you remove ruby?
<khedrub> bean__: any advice on how to get ruby, rails and gems running again on our ubuntu? Just apt-get purged it and installed again, ... without luck
<apeiros_> Megamind: you can develop very fast on ruby
<apeiros_> Megamind: and with jruby, you can fall back to java if you need
Ontolog has joined #ruby
<aedorn> There's never any love for Rubinius!
Retistic has joined #ruby
<shevy> rubinius died when the project starter abandoned it
<shevy> just like shoes is different without _why
carraroj has joined #ruby
<bean__> khedrub: so "apt-get install rubygems" does nothing
<Megamind> what about development speed?
zeroSignal has quit [Quit: sysctl sleepMode=1]
<shevy> new owners will kill a project 80% of the time, I saw this with gobolinux and other projects :(
<Ontolog> I have a Proc that is to be defined in a module and used in different classes. I want that Proc to have the binding of the class that it is used in. Is there a way, given a Proc object, to ask for another Proc object with the current binding?
apok has quit [Ping timeout: 260 seconds]
<Retistic> i have a simple each loop that executes different code for the first iteration, is there a way to do this cleaner than an if/else to check the index?
alx- has quit [Ping timeout: 252 seconds]
malkomalko has joined #ruby
<apeiros_> Retistic: on what datastructure?
<shevy> Megamind if you use terse style, few characters, few lines of code, ruby can be very fast. the typing speed wont hold you back, sometimes thinking may hold you back
<Retistic> apeiros_: activerecord models
<khedrub> bean__: it installes without errors, but /usr/bin/gem does not exist afterwards
kevinfagan has quit [Quit: Leaving...]
<shevy> Megamind for instance, I have to solve this problem "output some data on the commandline in ASCII table format"
nkr has quit [Quit: Linkinus - http://linkinus.com]
<bean__> khedrub: does /usr/bin/gem1.8 or /usr/bin/gem1.9 exist?
yakko_zzz is now known as yakko
yakko is now known as Yakko
<khedrub> bean__: no
<bean__> khedrub: so "apt-get install rubygems --reinstall"
<bean__> lets see if that helps
vikhyat has quit [Remote host closed the connection]
<aedorn> eh, I don't think it's dead. Besides, he didn't really leave Rubinius, he left EngineYard, and I think EY is still endorsing the project.
<apeiros_> Retistic: hm… you can convert the relation to an array and split it up, e.g. first, *rest = Foo.bars
<apeiros_> then run the each on rest
<khedrub> bean__: still nothing like /usr/bin/gem*
punknology has quit []
<Retistic> apeiros_: ehh, ruby doesn't have a different kind of loop for this case?
jpcamara has joined #ruby
<bean__> okay, lets do apt-get remove --purge rubygems*
jpcamara has quit [Remote host closed the connection]
maletor has joined #ruby
<Megamind> shevy thanks for being so informative !
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
jpcamara has joined #ruby
<Megamind> shevy do you see any downsides in using rails ?
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
maycon has quit [Ping timeout: 276 seconds]
<bean__> khedrub: apt-get remove --purge rubygems*
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
<khedrub> bean__: okay, finally one step further. :-) the * at the end of that command I didnt try before and sure enough some more stuff did get purged. Now I have the gems.
bigkm has joined #ruby
snuglepuss has joined #ruby
<bean__> cool
<khedrub> bean__: now if I call gem it throws this:
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
<khedrub> /usr/lib/ruby/1.8/rubygems.rb:9:in `require': no such file to load -- thread (LoadError)
<khedrub> from /usr/lib/ruby/1.8/rubygems.rb:9
<khedrub> from /usr/bin/gem:8
<khedrub> from /usr/bin/gem:8:in `require'
<bean__> pastebin if its > 3 lines please.
Umren has quit [Read error: Connection reset by peer]
<khedrub> ok
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
<bean__> khedrub: gem install thread
<bean__> ?
angusigu1ss has quit [Ping timeout: 264 seconds]
punknology has joined #ruby
PanPan has joined #ruby
punknology has quit [Max SendQ exceeded]
<khedrub> gem install thread
<khedrub> /usr/lib/ruby/1.8/rubygems.rb:9:in `require': no such file to load -- thread (LoadError)
<bean__> neat
<shevy> Megamind yeah you must know a lot in order to use rails efficiently
jimeh has joined #ruby
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
<bean__> hmmm, khedrub, did you run that "gem install" as root?
<Megamind> about code patterns and best practices or about ruby?
<khedrub> That was actually the initial reason to purge and reinstall everything. Hoped a completely reinstall of ruby and gems would fix this hell
<khedrub> yes
<Megamind> well, i'd like to use jRuby with RoR
<shevy> Megamind no, about rails -> "<Megamind> shevy do you see any downsides in using rails ?"
<khedrub> I did
<bean__> khedrub: we may want to "apt-get remove --purge ruby*
<bean__> "
punknology has joined #ruby
banjara has joined #ruby
punknology has quit [Max SendQ exceeded]
s0ber_ has joined #ruby
<shevy> khedrub you would think so but no! this is ubuntuuuuu! :P
<Megamind> i feel like jruby scales better with RoR
<bean__> >feel like
<bean__> >has never used rails
punknology has joined #ruby
jimeh has quit [Client Quit]
<shevy> Megamind hehehe you are like the guy who never starts, but always thinks about the finish line
punknology has quit [Max SendQ exceeded]
baustin has joined #ruby
<Megamind> : D
<khedrub> bean__: that won't be possible, it will remove even grub-common and other "useful" things :-p
<Megamind> ruby is just so different
<bean__> ah okay
ffranz has quit [Quit: Leaving]
<shevy> Megamind go learn ruby. it's like php but nicer to read and write
<Megamind> i just wanted to hear some opinions : - ( ... but good point you mentioned
<bean__> khedrub: "apt-get install --reinstall ruby"
pewter_tao has joined #ruby
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
pewter_tao has left #ruby [#ruby]
<shevy> Megamind well, see. you need RoR only when you wanna do something related to web, right?
carraroj has quit [Ping timeout: 276 seconds]
pewter_tao has joined #ruby
kevinfagan has joined #ruby
<Megamind> yes
bradhe has joined #ruby
<shevy> ok... but ruby, you can use for every purpose you can ever think of
reset has quit [Quit: Leaving...]
<Megamind> i just want to learn ruby for web purpose
<khedrub> bean__: it suggests to remove those... should I purge those only? irb* irb1.8* libdbd-mysql-ruby* libdbd-mysql-ruby1.8* libdbi-ruby1.8*
<khedrub> libdbm-ruby* libdbm-ruby1.8* libdeprecated-ruby1.8* libgdbm-ruby* libgdbm-ruby1.8*
<khedrub> libreadline-ruby* libreadline-ruby1.8* librmagick-ruby* librmagick-ruby1.8* libruby1.8*
<khedrub> libmysql-ruby1.8* libopenssl-ruby* libopenssl-ruby1.8* librack-ruby* librack-ruby1.8*
<khedrub> libtcltk-ruby* libtcltk-ruby1.8* rdoc* rdoc1.8* redmine-mysql* ri* ri1.8* ruby* ruby-elisp* ruby-full* ruby1.8* ruby1.8-dev* ruby1.8-elisp* rubygems* rubygems1.8*
<shevy> you can even write .cgi pages with ruby!!!
punknology has joined #ruby
<Megamind> no projects
<shevy> omg khedrub
punknology has quit [Max SendQ exceeded]
<Megamind> plain learning
<khedrub> sorry for the multi lines
<shevy> Megamind, nah, always have goals
<bean__> khedrub: yeah, that should probably do it.
workmad3 has quit [Ping timeout: 260 seconds]
<shevy> Megamind my first ruby project was an IRC bot
s0ber has quit [Ping timeout: 252 seconds]
<bean__> if it'll let you without removing grub, etc
<Megamind> shevy you're a nice guy
<shevy> my php IRC bot failed :(
<pewter_tao> If I do system('ssh etc') - and the bash command fails, how do I make it throw an error (it's not exiting with non-zero because it isn't bash)?
s0ber_ is now known as s0ber
<Megamind> i cant see php anymore
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
<shevy> I also had help, people helped me to write the irc bot
<kenneth> shevy: that description of ruby just made me cry
dankest has quit [Quit: Leaving...]
<Megamind> i work for a client where i'm refactoring messed up pure php
<Megamind> its a nightmare
Slivka has quit [Ping timeout: 248 seconds]
<kenneth> php, but nicer to read. :'(
<shevy> kenneth hehehe
<Megamind> no structure... no organization
<shevy> and better!
gosshedd has quit [Ping timeout: 255 seconds]
miskander has joined #ruby
ffranz has joined #ruby
PanPan has quit [Ping timeout: 272 seconds]
<kenneth> comparing ruby to php is sacrilege
punknology has joined #ruby
punknology has quit [Max SendQ exceeded]
mengu has quit [Quit: Konversation terminated!]
<Megamind> ah well.. i don't like the discussions whats better
RonScagz has joined #ruby
<shevy> Megamind rewrites are always annoying
<Megamind> leads nowhere
<shevy> you can have ugly code in ruby too
<shevy> but the less you have to write, the lower those chances
<khedrub> bean__: no it wouldn't. So I will just apt-get remove --purge ruby ruby-full
punknology has joined #ruby
adkron has quit [Ping timeout: 260 seconds]
<Megamind> well coming from java and OOP forcing
<jrajav> Is there a language you can't have ugly code in?
<bean__> >> p [1,2,3,4].inject(:*)
<eval-in> bean__: Output: "24\n" (http://eval.in/10833)
<jrajav> Shut up, Haskell
<Megamind> php looks like a language for kids starting to code
<shevy> Megamind OOP is ok... cat.meow
<Megamind> ;P
<shevy> yeah but php is also simple
<khedrub> bean__: should I now reinstall ruby or ruby-full?
<jrajav> Megamind: Erm. You think Java is an example of.. "mature" coding?
<shevy> you have array() in php right? in ruby you have hash + array
<Megamind> not at all
<bean__> khedrub: i'd try ruby-full
tian has quit [Quit: tian]
<Megamind> i started with C ... and i like java
gosshedd has joined #ruby
<shevy> in ruby you have one block to every method, in php you dont
<bean__> >likes java
<bean__> thats a good one
speakingcode-wor has quit [Quit: Lost terminal]
<shevy> lol bean__
<shevy> bean__ reminds me of a CSI investigation expert, collecting datasets about Megamind ;)
angusiguess has joined #ruby
<bean__> I've made a bunch of money off of Android java crap, still couldn't pay me to write it probably, now.
<aedorn> Megamind: Learn Ruby, then Rails if you must. Do not try to learn just Rails. It will take you longer as it's not as simple as it first appears.
banisterfiend has quit [Remote host closed the connection]
kenneth_ has joined #ruby
<khedrub> bean__: the error message remained
b1rkh0ff has quit [Quit: Leaving]
<kenneth_> ruby is a functional object oriented programming language that has its root in two languages that were pioneers in computer science: LISP and Smalltalk
sailias has quit [Ping timeout: 248 seconds]
<jrajav> Android is a lot less painful to work on than most things Java
<kenneth_> php is a template pre-processor that turned into a clusterfuck of a language over time, tacking on bullet points as feature with little to no vision or direction
<shevy> I avoided java, now that I used ruby for years, I dont want to learn java anymore but I may have to for one class ... :(
<bean__> khedrub: may want to re-ssh, there could be some env variables in the way.
<jrajav> kenneth_: lol where'd you copy/paste that from?
<arturaz> aedorn, learning rails and ruby along with it worked for me. Ruby is not magic. Except for metaprogramming its plain simple.
<shevy> php is chaotic design!
kraljev3 has joined #ruby
<shevy> ruby is creative chaos
kenneth_ has quit [Read error: Connection reset by peer]
<khedrub> bean__: nope, no change after re-ssh
SeoxyS has joined #ruby
<jrajav> shevy: If it's for a class it will be dirt easy....
<bean__> khedrub: is this 32 bit or 64 bit
<bean__> j/w
Squarepy has joined #ruby
niklasb has joined #ruby
bradhe has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
<jrajav> shevy: The hard part is modifying huge existing codebases written in bass-ackwards design patterns
bradhe has joined #ruby
twoism has quit [Read error: Connection reset by peer]
kenneth has quit [Ping timeout: 252 seconds]
SeoxyS is now known as kenneth
<bean__> khedrub: does /usr/lib/ruby/1.8/x86_64-linux/thread.so or /usr/lib/ruby/1.8/x86-linux/thread.so exist?
<kraljev3> sory, my internet connection dropped, so please assist again
<kraljev3> kraljev3: let's say I have attr_accessor :user in an object
chrishough has quit [Quit: chrishough]
<kraljev3> Is there a huge performance pemanlty for refering to user instead of @user?
<kraljev3> kraljev3: what is good practice in this case?
twoism has joined #ruby
<bean__> kraljev3: please dont paste like that.
arya_ has joined #ruby
ferdev has quit [Quit: Leaving...]
ferdev has joined #ruby
<shevy> jrajav oh man but I have to overcome my own hate first ... I nurtured it for so many years ... :(
<jrajav> It's okay
<jrajav> Store it away
<jrajav> Keep it secret
bubblehead has joined #ruby
<jrajav> Keep it safe
<shevy> lol
twshelton has joined #ruby
<khedrub> this "Linux dev.tibet.de 2.6.32-41-generic-pae #94-Ubuntu SMP Fri Jul 6 17:08:20 UTC 2012 i686 GNU/Linux" seems to be 32 bit, bean__
arya has quit [Ping timeout: 248 seconds]
<pewter_tao> will "output=`ls no_existing_file` ; result=$?.success?" return a non-zero exit code?
<aedorn> arturaz: Never said Ruby was magic. Also what works for you is still not really "good advice". Spending even a week learning Ruby and then beginning into Rails is far more productive in practice than beginning Rails on day one.
<shevy> pewter_tao you could try this in irb quickly
<bean__> khedrub: okay, if you do "locate thread.so" what does it return
thufir_ has joined #ruby
otters is now known as others
<kraljev3> Ok, I'll rephrase.
<kraljev3> I have an instance variable @user and user() function wrapper.
<kraljev3> What is preferred - to use @user to avoid function call, or user to get cleaner code?
<shevy> pewter_tao, here it returns this to me:
<shevy> ls: cannot access no_existing_file: No such file or directory
<shevy> # => ""
<shevy> which means, output variable is empty
<khedrub> bean__: /lib/libpthread.so.0 and /lib/tls/i686/cmov/libpthread.so.0 and /usr/lib/libpthread.so
<bean__> khedrub: i have an idea -- "apt-get install --reinstall libruby"
iamjarvo has quit [Quit: Leaving.]
<shevy> kraljev3 do you mean internally for your class?
<khedrub> bean__: no change
<bean__> bah
* bean__ sshs to his ubuntu server
<khedrub> :-p
<pewter_tao> shevy, but it does the same without the 'result=$?.success?' part
<kraljev3> yes, i have @user, and attr_wrapper :user
<kraljev3> attr_reader :user
<shevy> kraljev3 well, calling a method is usually more accurate
<kraljev3> which one do I use in the current class
<bean__> khedrub: apt-get install --reinstall libruby1.8 ?
<shevy> in the example you gave here, it should not make a big difference
<shevy> for readability, @user may be simpler to understand though
<khedrub> bean__: YES!
workmad3 has joined #ruby
<bean__> dammit ubuntu
<bean__> lol
<khedrub> bean__: that seems to have done the trick
<bean__> awesome
<shevy> bean__ fixes the ubuntus of the world
* bean__ is a sysadmin by trade, but is transitioning into more of a devops role
<shevy> pewter_tao hmm...
<Squarepy> kraljev, does user() give you more flexibility in respect do the data type/ storage, shevy ?
jonathanwallace has joined #ruby
iamjarvo has joined #ruby
<khedrub> so, now I may return to my redmine installation
elaptics is now known as elaptics`away
<khedrub> bean__: so far thank you VERY much! That was a serious pain that already had cost me hours before coming here
<bean__> np
pothibo has quit [Quit: pothibo]
kodeart has joined #ruby
i_s has joined #ruby
hbpoison has joined #ruby
<bean__> man I miss writing in scheme
Megamind has left #ruby [#ruby]
jonahR has joined #ruby
Marius has joined #ruby
hexus0 has joined #ruby
carloslopes has joined #ruby
<shevy> hmmm
<shevy> (ruby(can(also(have(lots(of(parens
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
demet8 has joined #ruby
<JMcAfreak> dammit
<JMcAfreak> )))))))
hbpoison has quit [Ping timeout: 276 seconds]
<sam113101> parseError
squidBits has quit [Read error: Connection reset by peer]
<JMcAfreak> 0x-1
kostine has quit [Quit: kostine]
geekbri has quit [Remote host closed the connection]
Morkel has joined #ruby
carloslopes has quit [Remote host closed the connection]
swex has joined #ruby
reset has joined #ruby
carloslopes has joined #ruby
brian_ has quit [Quit: Leaving]
JEisen has joined #ruby
<JEisen> Hey, I've got a module I'm mixing in that provides methods in ClassMethods to set @variables (for dynamic annotations). This works great until I try and subclass something that set one already -- it doesn't seem to inherit the value. Is there a straightforward way to get that (even using standard gems)?
postmodern has joined #ruby
<JMcAfreak> shevy: be more careful when you throw those things around!
<khedrub> bean__: now I did gem install rails and it informed me that I only have 1.3.5 while "bundler requires RubyGems version >= 1.3.6". So the ubuntu version does not run rails?
<bean__> it wouldn't surprise me
arturaz has quit [Remote host closed the connection]
<shevy> JMcAfreak one day I will trap a black hole in lisp !!!
<bean__> you could install the ruby1.9 packages
chussenot has joined #ruby
chussenot has left #ruby [#ruby]
<shevy> khedrub see? stuck with ubuntu ;P
<shevy> my gem version is 1.8.25
<shevy> rubygem source releases are at http://rubyforge.org/frs/?group_id=126&release_id=23118
<JMcAfreak> shevy: good luck with the black hole thing.
<khedrub> how did you do that? is there a "gem update" command?
<shevy> in theory you could try to just download the latest and install it, but ubuntu may want to forever hate you
<shevy> khedrub nah, I am insane, I always install or compile from source. hmm ... not sure if there is a gem update command in itself
squidBits has joined #ruby
wmoxam has quit [Ping timeout: 272 seconds]
<shevy> gem is quite limited in what it can do :\
tian has joined #ruby
<shevy> oh
becom33 has quit [Ping timeout: 256 seconds]
<shevy> khedrub, "gem update" will update all .gem files you have locally, but not the gem file in itself
dankest has joined #ruby
Demux has quit [Ping timeout: 260 seconds]
<khedrub> okay I did now apt-get install ruby1.9 rdoc1.9 ri1.9 rubygems1.9 and changed the symlink for /usr/bin/ruby
banseljaj is now known as imami|afk
<khedrub> and I guess I will also have to change /usr/bin/gem
banisterfiend has joined #ruby
tuxillo has left #ruby [#ruby]
<bean__> yep
<khedrub> what.... I changed gem to use gem1.9 but: /usr/bin # gem -v
<khedrub> 1.3.5
jgarvey has joined #ruby
seich- is now known as Seich
ctp has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
<khedrub> I am growing a serious dislike for ruby and that whole gem-hell :-(
mahmoudi_ has joined #ruby
mahmoudimus has quit [Ping timeout: 260 seconds]
joofsh has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<JEisen> that's why I stick to bundler even for small projects
RORgasm has joined #ruby
<graft> yeah, use bundler
<graft> especially if the gems you are using break with different versions
ffranz has quit [Ping timeout: 255 seconds]
tian has quit [Read error: Connection reset by peer]
<khedrub> gem install bundler: ERROR: Error installing bundler: bundler requires RubyGems version >= 1.3.6
Myconix has quit [Read error: Connection reset by peer]
bubblehead has quit [Remote host closed the connection]
hexus0 has quit [Read error: Operation timed out]
alyawn has quit [Quit: alyawn]
ffranz has joined #ruby
dmiller has joined #ruby
bubblehead has joined #ruby
<graft> are you on ubuntu?
<khedrub> yes
jimeh has joined #ruby
<graft> ditch the ubuntu ruby installation and use rvm
<graft> and by ditch, i mean remove --purge
<graft> rvm has instructions about this
reset has quit [Ping timeout: 260 seconds]
stormetrooper has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
tian has joined #ruby
jekotia has joined #ruby
Monie has quit [Quit: Quit]
kevinfagan has quit [Quit: Leaving...]
larissa has joined #ruby
<khedrub> graft: I will try that, thanks
pdamer has quit [Quit: pdamer]
dmerrick has quit [Ping timeout: 248 seconds]
justsee has joined #ruby
demet8 has quit [Quit: demet8]
angusiguess has quit [Ping timeout: 252 seconds]
demet8 has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Al__ has quit [Quit: Al__]
elux has quit [Remote host closed the connection]
elux has joined #ruby
aedornm has quit [Remote host closed the connection]
elux_ has joined #ruby
<shevy> khedrub no, bad boy bad
<shevy> "khedrub> I am growing a serious dislike for ruby and that whole gem-hell :-("
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<shevy> I told you before
<shevy> you are in ubuntu hell
<shevy> I can assure you ruby and gems run perfectly well here for me
carloslopes has quit [Remote host closed the connection]
<shevy> when you use a distribution, you are in a prison. sometimes they give you cushions and roses and candy but you must never forget that you are in that prison
mengu has joined #ruby
gosshedd has quit [Ping timeout: 255 seconds]
<shevy> and when you break out of prison, you'll enjoy freedom, but the cops may try to find and chase you, so it is not always a win-win situation either
* JMcAfreak puts shevy in mindjail
<shevy> but the most important thing to realize, is!
<shevy> you decided to remain in the ubuntu prison!!!
<shevy> I broke out of windows to linux. now I hate both, but windows more :(
LazyNoop has joined #ruby
Kingy has quit [Quit: Leaving]
carlyle has joined #ruby
<JMcAfreak> go go Mac OS X?
emergion has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
jpcamara has quit [Quit: jpcamara]
<shevy> yeah that is the one thing I have not done yet
<nate_h> i'm looking at an example script someone wrote and they used instance variables but they aren't in a class, does this make any sense?
arya has joined #ruby
<nate_h> or should they have just used regular local variables?
elux has quit [Ping timeout: 256 seconds]
<shevy> nate_h it could make sense, it depends
<shevy> nate_h can you paste it on a pastie site?
<nate_h> yeah
<shevy> basically you can use @ivars as data storage, like local vars, but with better scope
greenarrow has quit [Ping timeout: 256 seconds]
<shevy> yeah, typical free form ruby style
<shevy> he just was too lazy to use a class nate_h :P
greenarrow has joined #ruby
<nate_h> that's kind of what I thought :)
<nate_h> just wanted to make sure I understood
<shevy> well, he did not really need it in this example either
<shevy> actually...
<nate_h> i don't undersatnd how it would make sense at all out of a class?
<shevy> he could have used a local variable too
Morkel has quit [Quit: Morkel]
Spooner has joined #ruby
<shevy> nate_h, well, I write mostly classes these days
<shevy> one script that solves one problem -> create one .rb file -> put one class into it. that is what I usually do
<shevy> in that example here, though, he just loads or requires some files
<JMcAfreak> shevy: the kernel (Darwin) is BSD-based. Fully Unix compliant, whereas linux is not. Kind of ironic.
<shevy> hehe
BrindleFly has joined #ruby
<shevy> the linux kernel even removed i386 now
<JMcAfreak> and if you want some of the extra tools that lenny gets, homebrew is a great solution
<shevy> it is killing its legacy :(
jgrevich has quit [Ping timeout: 260 seconds]
<JMcAfreak> (and please, for the love of god, don't use MacPorts)
<shevy> yeah this annoys me
kirun has quit [Quit: Client exiting]
<shevy> the mac guys have homebrew
<shevy> the linux guys don't
arya has quit [Ping timeout: 248 seconds]
xemu2 has joined #ruby
<shevy> the windows guys have nothing (hahaha)
<JMcAfreak> debian-based linux has aptitude. It's first-party. Homebrew is 3rd-party
xemu has quit [Ping timeout: 248 seconds]
<JMcAfreak> but I prefer it over linux.
<JMcAfreak> (though I will use linux when I need a lightweight operating system that can be made very, very specific)
<JMcAfreak> (i.e. more specific than I could get on a Mac)
tommyvyo has joined #ruby
<JMcAfreak> (which is rare :P)
<JEisen> brew is great for when you know exactly what you want and that it's available at the versions you need. ;)
<JMcAfreak> JEisen: yep
PanPan has joined #ruby
<JMcAfreak> JEisen: and then there's MacPorts.... where to begin... it's so awful.
<JEisen> and yeah, it's the closest thing you can get to apt-get. it's a lot better than nothing. and MacPorts.
stormetrooper has quit [Read error: Connection reset by peer]
jrendell has quit [Quit: jrendell]
LazyNoop has left #ruby [#ruby]
mattbl has joined #ruby
slackfan has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
arya has joined #ruby
malkomalko has quit [Remote host closed the connection]
<shevy> hmmm
atyz has quit [Read error: Connection reset by peer]
<shevy> I never used it
dankest has quit [Quit: Leaving...]
DuoSRX has joined #ruby
<shevy> say, how would you use brew on a fresh mac install? compile like 100 programs with it?
miskander has quit [Quit: miskander]
PanPan has quit [Ping timeout: 276 seconds]
mattbl has quit [Client Quit]
<JMcAfreak> you'd have to install it
ahokaomaeha has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
gregor3005 has left #ruby [#ruby]
miskander has joined #ruby
ferdev has quit [Quit: Leaving...]
tian has quit [Quit: tian]
hukl has quit [Quit: Leaving...]
pewter_tao has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
<shevy> ok, I then install homebrew
<shevy> then what
<shevy> :)
novato has joined #ruby
<shevy> can I, say... download the latest source tarball of curl and then use brew to compile from that tarball?
<JMcAfreak> it's much like apt
<JMcAfreak> example: $ brew install wget
mattbl has joined #ruby
<novato> What would be the reasons for somebody interested in web programming to choose Ruby over PHP?
<JMcAfreak> http://mxcl.github.com/homebrew/ will give you the full info
ngoldman has joined #ruby
j^2 has joined #ruby
kraljev3 has left #ruby [#ruby]
ferdev has joined #ruby
BoomCow has quit [Ping timeout: 244 seconds]
<slackfan> Hi guys, I have a short question, when doing IO.popen(['mode', 'CON:', 'COLS=80', 'LINES=40', :err => [:child, :out]]) e.g. a following
<slackfan> $stdout.puts "foo"
<slackfan> is no more written to stdout. Any idea why this happens? mode is a Windows command prompt builtin. Without the redirect everything behaves as I would expect it.
arya has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
<JMcAfreak> novato: that article should answer every question about PHP
brianpWins has quit [Quit: brianpWins]
<novato> JMcAfreak: Thanks for the link! :-)
dustint has quit [Quit: Leaving]
samsonjs has joined #ruby
kofno_ has quit [Remote host closed the connection]
jerius has quit []
<JMcAfreak> no problem
interac__ has quit [Remote host closed the connection]
joshman_ has quit [Ping timeout: 252 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
F1skr has quit [Quit: WeeChat 0.4.0]
sepp2k1 has joined #ruby
Criztian has quit [Remote host closed the connection]
joshman_ has joined #ruby
sepp2k has quit [Ping timeout: 248 seconds]
dankest has joined #ruby
jimeh has joined #ruby
jgrevich has joined #ruby
babinho has quit [Ping timeout: 248 seconds]
wmoxam has joined #ruby
<shevy> novato it depends. as a language, I think ruby is much better than php
<shevy> it however also is larger than php, more things to know
<novato> shevy: Why do people say that PHP is ugly?
asobrasil has left #ruby [#ruby]
<shevy> novato if it is only because of web stuff, then I think you can stick with php
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
<shevy> novato you must use $ and ; and () for instance
jimeh has quit [Client Quit]
elux_ has quit [Quit: Leaving...]
<novato> shevy: But does that make a language ugly?
dmiller has quit [Ping timeout: 252 seconds]
<shevy> Ruby: class Cat; def meow; puts 'The cat meows.'; end; end; cat = Cat.new; cat.meow
wmoxam has quit [Client Quit]
<shevy> novato yeah
wmoxam has joined #ruby
<shevy> novato when you express ideas through code, you try to talk to your future self, and possibly other people
blacktulip has quit [Remote host closed the connection]
<shevy> the machine does not care about beauty in code, does not care much about formatting
miskander has quit [Quit: miskander]
BoomCow has joined #ruby
<shevy> the moment you have to modify code, you need to care about how beautiful a language is
<shevy> the more constructs it requires, the uglier it will become
<shevy> the verboser it is, the more boilerplate code it mandates, the uglier it will be
Al__ has joined #ruby
samsonjs has quit [Quit: samsonjs]
hbpoison has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
jphpsf has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
Marius has quit []
ferdev has quit [Quit: Leaving...]
<novato> shevy: And PHP is verboser?
ferdev has joined #ruby
rafacv has joined #ruby
fedza_ has quit [Ping timeout: 276 seconds]
daniel_hinojosa has joined #ruby
<matti> novato: God.
vabenjamin has joined #ruby
<matti> novato: My brain parsed that as "groser"
<matti> novato: Which might be kinda true.
<matti> ;d
<shevy> novato yeah
miskander has joined #ruby
<shevy> novato give any example you want for PHP string manipulation and I show you the ruby way for it
<shevy> (on a pastie, please, not here)
<novato> matti: ^^
<shevy> matti!
<JMcAfreak> shevy: also, see the article. Plenty of reasons there :P
<shevy> matti is always helpfully here to make a great comment
<novato> shevy: I am not very experienced, thus my question.
<shevy> then he goes back to work relentlessly
ffranz has quit [Quit: Leaving]
<novato> ^^
<matti> shevy: Of course.
<matti> ;p
<shevy> novato well. then do it like how I did! I started with perl... then switched to php... then had to decide between ruby and python
<shevy> novato so go use php for a while
hbpoison has quit [Ping timeout: 240 seconds]
<shevy> then you have to decide for yourself whether it will be ruby or python
chrishough has quit [Quit: chrishough]
<shevy> because you won't stay with php, I am 100% sure
jphpsf has joined #ruby
* JMcAfreak shudders
chico_chicote has joined #ruby
<shevy> novato also you must read this article ONCE, it is the most important article. it explains the philosophy of ruby: http://www.artima.com/intv/ruby.html
<novato> shevy: okay, thanks
thams has joined #ruby
<novato> I will have a look at these articles!
<novato> Thanks to everybody!
carlyle has quit [Remote host closed the connection]
twshelton has quit [Quit: Computer has gone to sleep.]
jrendell has joined #ruby
pyx has joined #ruby
baroquebobcat has joined #ruby
Kingy has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
Marius has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
zoonfafer has joined #ruby
brandon|work is now known as _____
novato has left #ruby [#ruby]
zorbyte has quit [Quit: leaving]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
chrishough has joined #ruby
chrishough has quit [Client Quit]
damienbrz has joined #ruby
chrishough has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
breakingthings has quit []
_____ is now known as brandon|work
khedrub has quit [Quit: Verlassend]
kenneth has quit [Ping timeout: 276 seconds]
jimeh has joined #ruby
<Amnesia> is there some way to define a multiline string and not screwing up your markup besides of using all 'str << ' statements?
bigkevmcd has joined #ruby
alanp_ has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
apeiros_ has quit [Remote host closed the connection]
emergion has joined #ruby
havenwood has quit [Remote host closed the connection]
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
kpshek has quit []
rheoli has joined #ruby
BoomCow has joined #ruby
cantonic has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
Jedi_SCT1 has quit [Ping timeout: 248 seconds]
gaahrdner has quit [Remote host closed the connection]
squidBits has quit [Quit: whoops]
aedornm has joined #ruby
anonymuse has quit [Quit: Leaving...]
BoomCow has quit [Client Quit]
rheoli has quit [Client Quit]
apeiros_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
toekutr has quit [Remote host closed the connection]
emergion has quit [Ping timeout: 264 seconds]
pierre1_ has joined #ruby
bubblehead has quit [Remote host closed the connection]
arya has joined #ruby
Myconix has joined #ruby
j^2 has quit [Quit: WeeChat 0.3.9.2]
j^2 has joined #ruby
enebo has quit [Quit: enebo]
lele has quit [Ping timeout: 264 seconds]
lmg_ has quit [Ping timeout: 256 seconds]
Jedi_SCT1 has joined #ruby
dmerrick has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
alex__c2022 has quit [Quit: alex__c2022]
Hanmac has quit [Ping timeout: 240 seconds]
theRoUS has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 264 seconds]
lele has joined #ruby
mahmoudi_ has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
jgarvey has quit [Quit: Leaving]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
mercwithamouth has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby
j^2 has quit [Quit: WeeChat 0.3.9.2]
apok has joined #ruby
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
jonathanwallace has quit [Ping timeout: 260 seconds]
larissa has quit [Quit: Leaving]
j^2 has joined #ruby
v0n has quit [Read error: Operation timed out]
Al__ has quit [Quit: Al__]
jgrevich_ has joined #ruby
DrCode has quit [Remote host closed the connection]
airbrush has joined #ruby
thufir_ has quit [Quit: Leaving.]
forrest has quit [Quit: Leaving]
piotr__ has joined #ruby
klaas has joined #ruby
jgrevich has quit [Ping timeout: 256 seconds]
jgrevich_ is now known as jgrevich
piotr_ has quit [Ping timeout: 252 seconds]
Es0teric has quit [Read error: Connection reset by peer]
elico has joined #ruby
dankest has quit [Quit: Leaving...]
geggam_wk has quit [Ping timeout: 244 seconds]
_nitti has quit [Remote host closed the connection]
JEisen has quit [Quit: JEisen]
arya has joined #ruby
generalissimo has quit [Remote host closed the connection]
emmanuelux has joined #ruby
jpcamara has joined #ruby
horofox has joined #ruby
airbrush has left #ruby [#ruby]
Proshot has quit [Quit: Leaving]
__BigO__ has quit [Remote host closed the connection]
Myconix has quit [Quit: NT Shared Folders >:(]
geggam_wk has joined #ruby
jonahR_ has joined #ruby
Squarepy has quit [Quit: Leaving]
arya has quit [Ping timeout: 244 seconds]
Vargas has joined #ruby
geggam_wk has quit [Remote host closed the connection]
jonahR_ has quit [Client Quit]
JarJar has quit [Quit: Leaving]
hexus0 has joined #ruby
kristofers has quit []
ehc has joined #ruby
jonahR has quit [Ping timeout: 272 seconds]
ner0x has quit [Quit: Leaving]
BoomCow has joined #ruby
Kingy has quit [Quit: Leaving]
ylluminate has joined #ruby
NiallIain has joined #ruby
wmoxam has quit [Ping timeout: 248 seconds]
frem has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
nari has joined #ruby
damienbrz has quit [Remote host closed the connection]
solidoodlesuppor has quit [Remote host closed the connection]
Slivka has joined #ruby
Alex-_ has quit [Ping timeout: 276 seconds]
dankest has joined #ruby
Onii-san has quit [Ping timeout: 276 seconds]
wmoxam has joined #ruby
Onii-san has joined #ruby
willob has quit [Quit: Leaving.]
mengu has quit [Quit: This computer has gone to sleep]
philcrissman has quit [Remote host closed the connection]
willob has joined #ruby
etcetera has quit []
hbpoison has joined #ruby
`p has quit [Ping timeout: 260 seconds]
Kuifje has quit [Ping timeout: 260 seconds]
demet8 has quit [Quit: demet8]
daniel_-_ has joined #ruby
arya has joined #ruby
NiallIain has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 240 seconds]
horofox has quit [Quit: horofox]
joofsh has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 252 seconds]
<vabenjamin> hi everybody
zoonfafer has quit [Ping timeout: 260 seconds]
h4mz1d has joined #ruby
tommyvyo has joined #ruby
arya has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
jonathanwallace has joined #ruby
sulaiman has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
lancepantz is now known as lancepantz_
Al__ has joined #ruby
piotr__ has quit [Ping timeout: 248 seconds]
dankest has quit [Quit: Leaving...]
maycon has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
sulaiman has joined #ruby
etcetera has quit [Client Quit]
carloslopes has joined #ruby
demet8 has joined #ruby
Vargas has quit []
lancepantz_ is now known as lancepantz
tvw has joined #ruby
breakingthings has joined #ruby
`p has joined #ruby
xardas has quit [Read error: Connection reset by peer]
twshelton has joined #ruby
DuoSRX has quit [Remote host closed the connection]