apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
iamjarvo has joined #ruby
catphish has left #ruby ["Leaving"]
tommyvyo has quit [Quit: Computer has gone to sleep.]
etcetera has quit []
fyolnish has quit [Remote host closed the connection]
c0rn has joined #ruby
joeycarmello has joined #ruby
zomgbie has joined #ruby
dilas has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
BrianJ has quit [Quit: BrianJ]
rh1n0 has joined #ruby
zomgbie has quit [Ping timeout: 240 seconds]
piotr_ has joined #ruby
BSaboia has joined #ruby
bier_ has quit [Quit: Ex-Chat]
ryanlecompte has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby
Xeago has joined #ruby
SuperrMann has quit [Quit: Computer has gone to sleep.]
tomsthumb has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
dilas has left #ruby ["Leaving"]
jgrevich has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
yuike has joined #ruby
yuike has quit [Client Quit]
Vert has joined #ruby
_alejandro has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
alejandro_ has quit [Ping timeout: 264 seconds]
ij has quit [Ping timeout: 264 seconds]
samphippen has joined #ruby
etcetera has joined #ruby
jgrevich_ has joined #ruby
xsbeats has joined #ruby
xsbeats__ has joined #ruby
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
toekutr has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
_bart has left #ruby [#ruby]
<dorei> lol
<dorei> just found it out
c0rn has quit []
qwerxy has quit [Quit: offski]
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
mr-rich has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
AlbireoX has quit [Remote host closed the connection]
AlbireoX has joined #ruby
My_Hearing has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
BoomCow has joined #ruby
sepuku has joined #ruby
<wallmani> dorei: nice one :DDDD
Iszak has quit []
<jrajav> I can safely say that I've never made a drama-filled pull request
charliesome has joined #ruby
yshh has quit [Remote host closed the connection]
tommyvyo has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
skattyadz has quit [Quit: skattyadz]
mr-rich has joined #ruby
fyolnish has joined #ruby
atmosx has quit [Quit: And so the story goes…]
<Azure> Am I the only one who finds it ironic that it says "powered by php" at the top right-hand corner? :p
Goles_ has quit [Remote host closed the connection]
shiin has quit [Quit: Computer has gone to sleep.]
manizzle has quit [Ping timeout: 276 seconds]
daniel_- has joined #ruby
caleb_io has quit [Quit: caleb_io]
pyreal has joined #ruby
joeycarmello has quit [Remote host closed the connection]
piotr_ has quit [Ping timeout: 246 seconds]
<jrajav> I don't think that's ironic at all.
<blazes816> php developers don't have drama because the can't ever remember the correct order of arguments
<jrajav> hahahaha
xsbeats__ has quit [Ping timeout: 244 seconds]
xsbeats has quit [Ping timeout: 244 seconds]
emmanuelux has quit [Ping timeout: 246 seconds]
dedis has joined #ruby
dedis has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
dedis has joined #ruby
patrickgombert has quit [Quit: I've ignored you all long enough to sleep.]
zomgbie has joined #ruby
yakko has joined #ruby
dedis has quit [Remote host closed the connection]
chessguy has joined #ruby
bradhe has quit [Remote host closed the connection]
thone_ has joined #ruby
dedis0 has joined #ruby
ddd has joined #ruby
chimkan has joined #ruby
skaczor has joined #ruby
zomgbie has quit [Ping timeout: 268 seconds]
chimkan has quit [Read error: Connection reset by peer]
alejandro_ has joined #ruby
thone has quit [Ping timeout: 260 seconds]
chimkan has joined #ruby
J-_-L has joined #ruby
J-_-L has quit [Client Quit]
_alejandro has quit [Ping timeout: 246 seconds]
J-_-L has joined #ruby
yoklov has joined #ruby
dedis0 has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 252 seconds]
skaragianis has joined #ruby
yshh has joined #ruby
chimkan has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
statarb3 has quit [Quit: Leaving]
flip_digits has joined #ruby
J-_-L has quit [Ping timeout: 246 seconds]
emergion has joined #ruby
xsbeats has joined #ruby
alee_ has quit [Ping timeout: 276 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
ephemerian has quit [Quit: Leaving.]
n0x00 has quit [Quit: Textual IRC Client: www.textualapp.com]
chimkan has quit [Read error: Connection reset by peer]
yuike has joined #ruby
atmosx has joined #ruby
xsbeats__ has joined #ruby
chimkan has joined #ruby
tommyvyo has joined #ruby
manizzle has joined #ruby
pac1 has joined #ruby
Chryson has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
dagnachew has quit [Quit: Leaving]
clj_newb has quit [Ping timeout: 246 seconds]
chimkan has quit [Client Quit]
_cheney2 has joined #ruby
_cheney has quit [Ping timeout: 252 seconds]
skaragianis has quit [Read error: Connection reset by peer]
skaragianis_ has joined #ruby
nat2610 has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
Bosma has joined #ruby
yuike has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Remote host closed the connection]
chrisbislr has joined #ruby
<chrisbislr> does anyone know why I'd be having trouble with directory_watcher under the latest revision of ruby 1.9.3?
freakazoid0223 has joined #ruby
kil0byte has joined #ruby
<chrisbislr> don't worry I think I fixed it
_alejandro has joined #ruby
marknyc has joined #ruby
alejandro_ has quit [Ping timeout: 246 seconds]
osvico has quit [Ping timeout: 248 seconds]
Chryson has quit [Quit: Leaving]
mercwithamouth has joined #ruby
osvico has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
alejandro_ has joined #ruby
mikemac has quit [Read error: Connection reset by peer]
J-_-L has joined #ruby
Ivo has quit [Quit: WeeChat 0.3.9.1]
<jrajav> Phew
<jrajav> You had my worried there
<chrisbislr> ha ha
daniel_- has quit [Ping timeout: 246 seconds]
_alejandro has quit [Ping timeout: 246 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
ttt has joined #ruby
joeycarmello has joined #ruby
arya_ has joined #ruby
tjbiddle has joined #ruby
zomgbie has joined #ruby
skaragianis_ has quit [Quit: skaragianis_]
joeycarmello has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
bradhe has joined #ruby
tjbiddle has quit [Client Quit]
thinkdev_ has quit [Remote host closed the connection]
My_Hearing has quit [Ping timeout: 246 seconds]
My_Hearing has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
zomgbie has quit [Ping timeout: 276 seconds]
tjbiddle has joined #ruby
slainer68 has joined #ruby
bbloom has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
wpaulson has joined #ruby
nari has joined #ruby
wpaulson has quit [Client Quit]
Hanmac1 has joined #ruby
elkclone has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
JodaZ has quit [Quit: No Ping reply in 180 seconds.]
mengu has quit [Read error: Operation timed out]
JodaZ has joined #ruby
sheerun has left #ruby [#ruby]
slainer68 has quit [Ping timeout: 255 seconds]
tjbiddle has quit [Quit: tjbiddle]
JodaZ has quit [Quit: No Ping reply in 180 seconds.]
JodaZ has joined #ruby
u89 has quit [Remote host closed the connection]
pyreal has quit [Quit: pyreal]
<Elico> Is there any way class\gem that can help parse this output into parts? http://pastie.org/5399150
JodaZ has quit [Client Quit]
JodaZ has joined #ruby
<Elico> it's like a tree with leafs
<Elico> category and from there into sub and options. it has specific rules of structure.
nari has quit [Ping timeout: 260 seconds]
notVert has joined #ruby
cyong has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
slash_nick has quit [Read error: Operation timed out]
_alejandro has joined #ruby
<blazes816> Elico: check out treetop
atmosx has quit [Quit: And so the story goes…]
chrisbislr has quit [Remote host closed the connection]
<Elico> blazes816: thanks
Synthead has quit [Ping timeout: 244 seconds]
alejandro_ has quit [Ping timeout: 260 seconds]
joeycarmello has joined #ruby
kil0byte has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
tommyvyo has joined #ruby
joeycarmello has joined #ruby
Ivo has joined #ruby
diegoviola has joined #ruby
adeponte has quit [Remote host closed the connection]
jeffreybaird has joined #ruby
nari has joined #ruby
kil0byte has joined #ruby
bier_ has joined #ruby
SDr has left #ruby [#ruby]
BSaboia has quit [Read error: Connection reset by peer]
tbrock has joined #ruby
<Elico> blazes816: I am a bit confused on how to use it but I think that regex match can do me the trick if I will think more. it's kind of recursive but since it's only 2-3 levels deep... it's not that bad.
JodaZ has quit [Quit: No Ping reply in 180 seconds.]
JodaZ has joined #ruby
celthunder has quit [Remote host closed the connection]
pac1 has quit [Quit: I got it one line of code at a time]
celthunder has joined #ruby
tbrock has quit [Ping timeout: 260 seconds]
tbrock has joined #ruby
celthunder has quit [Remote host closed the connection]
celthunder has joined #ruby
celthunder has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
pipopopo has quit [Read error: Connection reset by peer]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
medik has quit [Quit: medik has no reason]
zomgbie has joined #ruby
CaptainJet has joined #ruby
bluOxigen has joined #ruby
pipopopo has joined #ruby
emergion has joined #ruby
bradhe has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
_alejandro has quit [Remote host closed the connection]
zomgbie has quit [Ping timeout: 252 seconds]
synthetix has joined #ruby
c0rn has joined #ruby
emergion has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 276 seconds]
cyong has quit [Quit: Leaving.]
swarley has quit [Remote host closed the connection]
emergion has joined #ruby
bradhe has joined #ruby
tbrock has joined #ruby
c0rn has quit []
BoomCow has quit [Quit: This computer has gone to sleep]
swarley has joined #ruby
LBRapid has quit [Quit: Leaving]
Slivka has quit [Read error: Connection reset by peer]
etcetera has quit [Ping timeout: 264 seconds]
BoomCow has joined #ruby
chessguy has quit [Remote host closed the connection]
LouisGB has quit [Ping timeout: 240 seconds]
xenoterracide has joined #ruby
tbrock has quit [Ping timeout: 248 seconds]
xenoterracide has left #ruby ["Konversation terminated!"]
tbrock has joined #ruby
J-_-L has quit [Ping timeout: 252 seconds]
tbrock has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby
dorei has quit []
tjbiddle has joined #ruby
chrishunt has joined #ruby
zzyybb has joined #ruby
etcetera has joined #ruby
NuclearLucifer has quit [Ping timeout: 265 seconds]
tjbiddle has quit [Client Quit]
emergion has quit [Read error: Connection reset by peer]
marius has quit []
gbchaosmaster has joined #ruby
areil has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
niklasb has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
arya has joined #ruby
ghanima has joined #ruby
<ghanima> hello all
cyong has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<ghanima> I was wondering if I can ask your opinion... I am working with an HTML table I have pulled from nokogiri. The table is nested and classified in 3 ways. What I am trying to do is organize the results were each classification is in its own array(i think)... example [class1[entry0][element1, element2, element3]]
<ghanima> is this the right approach
d2dchat has joined #ruby
ewag has joined #ruby
hemanth has joined #ruby
nat2610 has quit [Quit: Leaving.]
_alejandro has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
nat2610 has joined #ruby
blazes816 has quit [Quit: blazes816]
pu22l3r has joined #ruby
dedis has joined #ruby
dedis has quit [Excess Flood]
rohit has joined #ruby
zomgbie has joined #ruby
sawu has joined #ruby
stephenjudkins has joined #ruby
dedis has joined #ruby
dedis has quit [Excess Flood]
AlbireoX`Laptop has joined #ruby
zomgbie has quit [Ping timeout: 255 seconds]
AlbireoX has quit [Ping timeout: 268 seconds]
ner0x has quit [Quit: Leaving]
AlbireoX`Laptop has quit [Remote host closed the connection]
dedis has joined #ruby
dedis has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
jxf has quit [Ping timeout: 246 seconds]
andrewhl has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
cyong has joined #ruby
marknyc has quit []
haxrbyte has joined #ruby
rachelE has joined #ruby
<rachelE> hi
Elico has quit [Quit: elico]
sawu is now known as _sah
adeponte has joined #ruby
CaptainJet has quit []
<rachelE> I have a question about join models and Rails. I have two tables and I want to return each customer that has ever been contacted, the last time they have been contacted, who contacted them at that time and how they where contacted
haxrbyte_ has joined #ruby
dedis has joined #ruby
bigmac has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Ping timeout: 244 seconds]
arya has quit [Ping timeout: 244 seconds]
<rohit> rachelE, I think you'll get a response in #RubyOnRails rather then here
ewag has quit [Ping timeout: 245 seconds]
Zolrath has quit []
jgrevich_ has joined #ruby
arya has joined #ruby
RantriX has joined #ruby
d2dchat has quit [Remote host closed the connection]
x82_nicole has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
krz has joined #ruby
Nisstyre-laptop has joined #ruby
noyb has joined #ruby
Zolrath has joined #ruby
pu22l3r has quit [Quit: Leaving]
gimpygoo has joined #ruby
flip_digits has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<gbchaosmaster> ghanima: Gimme an example input array and the output that you want from that and I'll see what I can do.
<swarley> I'm just going to put this right here https://github.com/swarley/pry-hack
<gbchaosmaster> swarley: Someone forgot to .gitignore .yardoc. =P
<swarley> whoops :p
<swarley> there, added
<ghanima> gbcgaosmaster: "\n -\n \n P3\n ** PROBLEM - host.usa.orig.com.orig/HostSystem Memory Usage Status is WARNING **\n Active\n ipautomata\n 11/1721:43\n 11/1805:08\n 11/17 22:07\n \n Orig-vmware-escalation 7504043\n \n \n \n \n \n IPmon\n \n \n \n \n \n "
<ghanima> this is an example of a single entry
<ghanima> gbchaosmaster
<ghanima> this is my code example
cj3kim has joined #ruby
cj3kim has left #ruby [#ruby]
<gbchaosmaster> ghanima: And the output that you want from that?
BoomCow has quit [Quit: Leaving]
<ghanima> gbchaosmaster: I need to parse all of those entries and put them into a hash
<ghanima> each entry should represent a key, value pair
<ghanima> but the hash should be nested
<ghanima> does that make sense?
Jasko has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
Jasko has joined #ruby
<gbchaosmaster> ghanima: Sort of. Could I get that input as a paste on http://gist.github.com and not as a raw string, i.e. actual newlines instead of \n so I can see what the table looks when printed?
<ghanima> gbchaosmaster: Sure one moment
<swarley> [0] pry(main)> %S{hello symbol world!}
<swarley> => [:hello, :symbol, :world]
<swarley> because i'm just that awesome
<swarley> owait
radic has quit [Ping timeout: 246 seconds]
* swarley changes a regex paren
<swarley> => [:hello, :symbol, :world!]
<swarley> That's better
<gbchaosmaster> swarley: Is this really possible in 1.9.3?! I know that 2.0 is going to have a %i literal, but I didn't know that you could monkey patch that.
<gbchaosmaster> Thought it was hardcoded in the parser.
alexshenoy has quit [Quit: alexshenoy]
<reactormonk> swarley, nice, didn't know that
<swarley> gbchaosmaster; Its only with my gem haha, and only in pry. I could probably extend it to work with eval and require
<swarley> reactormonk; only works because of this
<swarley> Pry.add_hack(:%, :symbol_array, Pry::Hackage::Hack.new('S') { replace_with "%w#{delimiter.open}#{content}#{delimiter.close}.map(&:to_sym)" })
<reactormonk> haha
<swarley> Err, I need to change some class names around, because that should be ModOpHack
<gbchaosmaster> swarley: I will likely spend more time than it healthy playing with this code. Thanks for the link.
<gbchaosmaster> s/it/is/
<swarley> No problem
<swarley> You can also modify methods
<swarley> object.@instance_variable
<swarley> and then the commented out area of the first OpenStruct are the hack areas that are planned to be implemented https://github.com/swarley/pry-hack/blob/master/lib/pry/hack.rb
<ghanima> gbchaosmaster: sample located here https://gist.github.com/4109046
Guest92676 has joined #ruby
fbernier has quit [Read error: Connection reset by peer]
<gbchaosmaster> Hmm, nasty text to parse, but definitely doable. If you don't mind, just type out a bit of what the resulting hash would look like? You don't have to type out the whole thing, just one or two entries so I know if I'm doing it right.
Zolrath has quit []
<ghanima> gbchaosmaster: Tell me about it
<ghanima> gbchaosmaster: The has should look like this
<dcope> anyone know why the guy calls subject.build when the method fails?
* dcope is new to rspec
vlad_starkov has joined #ruby
ZubKonst has joined #ruby
radic has joined #ruby
manizzle has quit [Ping timeout: 240 seconds]
love_color_text has quit [Remote host closed the connection]
Guest92676 has quit [Quit: Guest92676]
forced_request has quit [Read error: Connection reset by peer]
ZubKonst_ has quit [Ping timeout: 246 seconds]
<ghanima> data = { critical => { entry1 => { status => "", priority => "", statusmsg => "", status => "", alertgen => "", createdate => "", moddate => "", compledate => "", nulldata => "", escpath => "" }}}
vlad_starkov has quit [Remote host closed the connection]
My_Hearing has quit [Ping timeout: 246 seconds]
<ghanima> gbchaosmaster: I hope that makes sense
<a215> the C.H.U.D.S.
ewag has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
triskt has joined #ruby
d2dchat has joined #ruby
verbad has joined #ruby
Hanmac1 is now known as Hanmac
jrajav has quit [Quit: I tend to be neutral about apples]
<gbchaosmaster> Can you edit that Gist and put that in there as a separate file so I can see them right next to each other? I don't have my computer with me and I'm workin' off of a tablet, sorry for any slowness/neediness. =P
<rking> dcope: That's just the confusing way RSpec rolls.
<rking> They didn't want the stubbing to be less confusing than the rest of RSpec, so they made it convoluted.
<rking> You say the assertion before the code runs, then some handwavy thing at the end of the 'it' block checks them all
sdk has joined #ruby
<dcope> rking: ah, that's rather interesting
<gbchaosmaster> ghanima: Ahh, forgot to highlight you above
<gbchaosmaster> ghanima: See ^
<ghanima> np
ananthakumaran has quit [Quit: Leaving.]
yakko has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
synthetix has quit [Ping timeout: 246 seconds]
havenn has quit [Remote host closed the connection]
<ghanima> gbchaosmaster: https://gist.github.com/4109083
havenn has joined #ruby
<gbchaosmaster> ghanima: Thanks
hsbt is now known as hsbt_away
manizzle has joined #ruby
Shamgar has quit [Ping timeout: 276 seconds]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
J-_-L has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
cyong has quit [Quit: Leaving.]
Jasko has joined #ruby
havenn has quit [Ping timeout: 240 seconds]
<dcope> rking: Why does it get called in every it block?
<rking> dcope: Because of some crazy bit of RSpec. Do you want me to find the crazy bit?
<dcope> Sure
bigmcq77 has joined #ruby
<rking> K
<rking> I'm going into RSpec code. If I don't come out alive tell my repos I loved them.
<dcope> heh
<dcope> :D
hsbt_away is now known as hsbt
<dcope> I'm looking at this test file and just can't seem to grasp it :/
chrishunt has quit [Quit: Leaving...]
J-_-L has quit [Ping timeout: 245 seconds]
AnarchoTroll has joined #ruby
Shamgar has joined #ruby
<rking> Ha, there's a classic confusing thing from rspec: klass.any_instance.should_not_receive(:existing_method)
<rking> Trying so hard to sound like English and yet ending up pretty kooky (unless every instance in all of ObjectSpace recieves :existing_method, that should assert true)
Shrink has quit [Ping timeout: 268 seconds]
<rking> dcope: Here's the basic idea:
<rking> def should_receive(message, opts={}, &block)
<rking> __mock_proxy.add_message_expectation(opts[:expected_from] || caller(1)[0], message.to_sym, opts, &block
<rking> 1min
sdk is now known as Marius
arya has quit [Ping timeout: 244 seconds]
<gbchaosmaster> ghanima: text.split.map(&:strip).reject(&:empty?) gets you a little closer to where you wanna be, but man, I'm not sure if this data is consistently spread out enough to be parsed reliably.
My_Hearing is now known as Mon_Ouie
verbad has quit []
cyong has joined #ruby
cyong has quit [Client Quit]
iamjarvo has quit [Quit: Computer has gone to sleep.]
<rking> dcope: Then those message_expectations get spooled up, and eventually this line triggers them: https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/example.rb#L305
alexshenoy has joined #ruby
kil0byte has quit [Remote host closed the connection]
hotovson has joined #ruby
alexshenoy has quit [Quit: alexshenoy]
skaczor has quit [Remote host closed the connection]
poRz has quit [Remote host closed the connection]
yuike has joined #ruby
poRz has joined #ruby
asuka has quit [Ping timeout: 276 seconds]
ananthakumaran has joined #ruby
hotovson has quit [Read error: No route to host]
<ghanima> gbchaosmaster: Let me give that a try
<gbchaosmaster> That'll just reduce everything down to a more managable string array.
nomenkun_ has quit [Remote host closed the connection]
asuka has joined #ruby
yuike has quit [Quit: Computer has gone to sleep.]
chrishunt has joined #ruby
_cheney2 has quit [Read error: Connection reset by peer]
_cheney has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
yuike has joined #ruby
joofsh has quit [Remote host closed the connection]
philips_ has quit [Excess Flood]
SPYGAME has joined #ruby
Markvilla has joined #ruby
philips_ has joined #ruby
Markvilla has quit [Client Quit]
Shrink has joined #ruby
adeponte has joined #ruby
triskt has quit [Remote host closed the connection]
fantazo_ has joined #ruby
seanyo has quit [Ping timeout: 252 seconds]
sixtenei1hty is now known as sixteneighty
yoklov has quit [Quit: bye!]
theRoUS has joined #ruby
bradhe has quit [Remote host closed the connection]
Noobsauce has joined #ruby
JohnBat26 has joined #ruby
rohit has quit [Quit: Leaving]
sspiff has joined #ruby
<Noobsauce> anybody know why I'm getting integers when setting a BigDecimal equal to a float?
jekotia has quit [Read error: Connection reset by peer]
<Hanmac> show us your code
<Noobsauce> racer.finish_time = SENSOR.finish_times[i] / 1000.0
<Noobsauce> finish_time is a BigDecimal, and finish_times[i] is equal to 24200 at the moment, yet when I print the BD, I get 24
<gbchaosmaster> What does #to_f'ing SENSOR.finish_times[i] do?
<Hanmac> ruby does not have an assignment operator
<phelps> opinions on using Persona as my only login method ?
NuclearLucifer has joined #ruby
<Hanmac> noobsauce, i dont see where is BigDecimal in your code ... the finish_time= may override your BigDecimal with an float
yuike has quit [Quit: Computer has gone to sleep.]
<Noobsauce> finish_time is in a database BigDecimal :finish_time, :size=>[10, 0]
arietis has joined #ruby
postmodern has joined #ruby
<Hanmac> try: racer.finish_time = Rational(SENSOR.finish_times[i], 1000)
Jasko has quit [Read error: Connection reset by peer]
d2dchat has quit [Remote host closed the connection]
Jasko has joined #ruby
monkegji_ has joined #ruby
iamjarvo has joined #ruby
<Noobsauce> even with Rational it seems to be storing my number as an integer
<Noobsauce> when i print the value of the rational i get 2647/500, but 5.00 for the BigDecimal
<Hanmac> BigDecimal(Rational(24200,1000),3)
BoomCow has joined #ruby
<Hanmac> if this does not work, than yoru database may be broken
noyb has quit [Ping timeout: 255 seconds]
<Hanmac> otherwise, ask in the #rubyonrails channel ...
kil0byte has joined #ruby
yuike has joined #ruby
etcetera has quit [Quit: Computer has gone to sleep.]
<Noobsauce> no luck with that one either, thanks so much for trying everyone :)
<Noobsauce> I'll take a look at my db, must've messed something up there
lolcathost has joined #ruby
lolcathost has quit [Client Quit]
Bosma has quit [Read error: Connection reset by peer]
oposomme|away has quit [Read error: Connection reset by peer]
oposomme has joined #ruby
no_i_wont has quit [Ping timeout: 260 seconds]
wf2f has quit []
no_i_wont has joined #ruby
KevinSjoberg has joined #ruby
KevinSjoberg has quit [Client Quit]
greenarrow has quit [Ping timeout: 268 seconds]
greenarrow has joined #ruby
Bosma has joined #ruby
tagrudev has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
adeponte has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
d2dchat has joined #ruby
kiyoura has quit [Quit: Leaving]
<Noobsauce> just in case anyone's curious, I believe this may be the root of my problem http://codingrecipes.com/sqlite-and-the-problem-of-storing-long-long-integers
theRoUS has quit [Ping timeout: 255 seconds]
BryanWB_ has joined #ruby
<BryanWB_> how do i remove a gem that i have publish to rubygems.org?
_sah has quit [Quit: Zzzzzzzz...]
aleiphoenix has joined #ruby
aleiphoenix has left #ruby [#ruby]
hotovson has joined #ruby
shtirlic has joined #ruby
<BryanWB_> ok, gem yank
BryanWB_ has left #ruby [#ruby]
pavilionXP has joined #ruby
hotovson has quit [Ping timeout: 248 seconds]
shtirlic has quit [Ping timeout: 252 seconds]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
greenarrow has quit [Ping timeout: 268 seconds]
greenarrow has joined #ruby
topek has joined #ruby
nomenkun has joined #ruby
pavilionXP__ has joined #ruby
pavilionXP__ has quit [Client Quit]
FredLe has joined #ruby
answer_42 has joined #ruby
vlad_starkov has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.1]
pcarrier has quit []
nomenkun has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
hotovson_ has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
AndChat| has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
hotovson_ has quit [Ping timeout: 246 seconds]
kil0byte_ has joined #ruby
vlad_starkov has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
twinturbo has joined #ruby
mahmoudimus has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
_sah has joined #ruby
slainer68 has joined #ruby
ecart has joined #ruby
dhruvasagar has joined #ruby
<ecart> I got some emails and would like to see if they are valid
<ecart> someone has a script ready for this?
tuannat has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<cirwin> ecart: the mail gem
<cirwin> though it depends what you mean by valid?
Juul has joined #ruby
BoomCow has quit [Quit: Leaving]
BoomCow has joined #ruby
nilg has joined #ruby
<ecart> jnr_ssa@hotmail.com - Result: Ok
<ecart> MX record about hotmail.com exists.
<ecart> Connection succeeded to mx4.hotmail.com SMTP.
<ecart> 220 SNT0-MC4-F6.Snt0.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.microsoft.com/en-us/anti-spam.mspx. Sun, 18 Nov 2012 23:17:13 -0800
<ecart> > HELO verify-email.org
<ecart> 250 SNT0-MC4-F6.Snt0.hotmail.com (3.16.0.67) Hello [66.36.231.122]
<ecart> > MAIL FROM: <check@verify-email.org>
<ecart> =250 check@verify-email.org....Sender OK
<ecart> this for me ta great
adeponte has joined #ruby
cantonic has quit [Quit: cantonic]
<ecart> the problem I have a mailing list
piotr_ has joined #ruby
<ecart> and this site only accepts one at a time
<ecart> cirwin
slainer68 has quit [Ping timeout: 276 seconds]
Jasko has quit [Read error: Connection reset by peer]
<cirwin> ecart: I can't help you
Jasko has joined #ruby
<ecart> O.o
<ecart> thank you
zommi has joined #ruby
anildigital_work has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 265 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tomsthumb has quit [Quit: Leaving.]
aganov has joined #ruby
_sah has left #ruby ["Quit."]
hotovson has joined #ruby
topek has quit [Quit: Leaving.]
topek has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
hotovson has quit [Read error: Operation timed out]
iamjarvo has quit [Quit: Computer has gone to sleep.]
eddie_ has joined #ruby
cezar-b has joined #ruby
tuannat has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
broon has joined #ruby
<rking> What he heck is the return value of the defined? keyword good for?
<heftig> rking: tells you what it is that's defined
yuike has quit [Quit: Computer has gone to sleep.]
<rking> When would you use it, though?
<dakine> n e 1 for ps3 carl on dooty
<rking> These are the values it can have: nil self true false expression local-variable assignment
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<heftig> puts defined?(sprintf); sprintf = 3; puts defined?(sprintf)
<rking> So like `defined? a = 3` ⇒ assignment
tuannat has joined #ruby
<rking> heftig: But what is a use of that?
answer_42 has quit [Ping timeout: 264 seconds]
swarley has quit [Ping timeout: 260 seconds]
dmiller has quit [Remote host closed the connection]
<rking> Hehe, I really don't get it.
zomgbie has joined #ruby
qwerxy has joined #ruby
oivoodoo has joined #ruby
fantazo_ has quit [Remote host closed the connection]
haxrbyte_ has quit [Remote host closed the connection]
nat2610 has left #ruby [#ruby]
gbchaosmaster has quit [Ping timeout: 264 seconds]
MissionCritical has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
timonv has joined #ruby
dr_bob has joined #ruby
chendo_ has joined #ruby
codecaster has joined #ruby
eldariof has joined #ruby
burgestrand1 has joined #ruby
tomsthumb has joined #ruby
ecart has quit []
d2dchat has quit [Remote host closed the connection]
Marius has quit []
burgestrand1 has quit [Client Quit]
joeycarmello has joined #ruby
BoomCow has quit [Quit: Leaving]
burgestrand has quit [Ping timeout: 244 seconds]
schaary has joined #ruby
<rking> What a strange keyword.
lolmaus has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
eldariof has quit []
Jasko has joined #ruby
Mission-Critical has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Elico has joined #ruby
Amirh has joined #ruby
eldariof has joined #ruby
tonini has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
jds_ has joined #ruby
nari has quit [Ping timeout: 260 seconds]
jds_ has quit [Read error: No route to host]
dnyy has quit [Remote host closed the connection]
Elico has quit [Quit: elico]
zommi has quit [Ping timeout: 244 seconds]
jds_ has joined #ruby
adeponte has quit [Remote host closed the connection]
jrn_ has joined #ruby
Mission-Critical is now known as MissionCritical
adeponte has joined #ruby
shtirlic has joined #ruby
filipe has joined #ruby
zzyybb has quit [Ping timeout: 276 seconds]
foofoobar has joined #ruby
genshu has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
morf has joined #ruby
xorigin has joined #ruby
dmiller has joined #ruby
dnyy has joined #ruby
punkrawkR has joined #ruby
Morkel has joined #ruby
chimkan has joined #ruby
nari has joined #ruby
workmad3 has joined #ruby
love_color_text has quit [Ping timeout: 260 seconds]
diegovio1a has joined #ruby
JohnBat26 has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
tuannat has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bradhe has quit [Remote host closed the connection]
diegovio1a is now known as diegoviola
ninegrid has quit [Read error: Connection reset by peer]
zommi has joined #ruby
hsbt is now known as hsbt_away
dmiller has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
ninegrid has joined #ruby
hoelzro|away is now known as hoelzro
workmad3 has quit [Ping timeout: 245 seconds]
ninegrid has quit [Read error: Operation timed out]
margle has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
<RantriX> does anyone know ios here?
FredLe has quit [Quit: Leaving.]
Jasko has joined #ruby
ninegrid has joined #ruby
zzyybb has joined #ruby
cantonic has joined #ruby
Erfankam has joined #ruby
jgrevich_ has joined #ruby
<eddie_> can anyone help me with factory girl?
chimkan has quit [Read error: Connection reset by peer]
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
arturaz has joined #ruby
chimkan has joined #ruby
timonv has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
shtirlic has quit [Remote host closed the connection]
RantriX has quit [Remote host closed the connection]
Juul has quit [Ping timeout: 265 seconds]
chimkan has quit [Client Quit]
BoomCow has joined #ruby
dr_bob has joined #ruby
<Noobsauce> would someone kindly explain what the || does in this line? racer.speed(racer.finish_time||SENSOR.time)
k610 has joined #ruby
ananthakumaran1 has joined #ruby
<hoelzro> noobsauce: racer.finish_time || SENSOR.time yields racer.finish_time, or SENSOR.time if racer.finish_time is nil
artur_x651231 has joined #ruby
<Noobsauce> ooh, thank you for the explanation, I've only ever seen || in the context of booleans
sonne has joined #ruby
<sonne> hey there
<sonne> what would you folks recommend for compiling/bundling ruby apps?
ananthakumaran has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
qwerxy has quit [Quit: offski]
knirhs has joined #ruby
jds_ has quit [Remote host closed the connection]
Elhu has joined #ruby
Shrink has quit [Ping timeout: 276 seconds]
<oivoodoo> @eddie_ what's the problem with factory girl?
<eddie_> I wold like to know how factory girl works
<eddie_> Once the factory files are loaded
dmiller has joined #ruby
<eddie_> how are the definitions accessed
<eddie_> in the factory girl code i mean
kil0byte has joined #ruby
<eddie_> oivoodoo: find_definitions.rb loads the factoy files we mentions
<oivoodoo> you should require factories into your app. but to be honest the easiest way to learn how it's working to open sources. I think when you specify class or not specify(put only name of the factory) for the factory it will classify string
elentras has joined #ruby
<eddie_> I am not a ruby pro
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<eddie_> wat does FactoryGirl.define do
<eddie_> end
<eddie_> do
<eddie_> ?
jgrevich has quit [Quit: jgrevich]
<reactormonk> eddie_, "I am not a pro" is no excuse to be too lazy to read the documentation
<eddie_> :D
<eddie_> i am actually reading the code
kil0byte_ has quit [Ping timeout: 260 seconds]
<eddie_> i am not understanding many things
pcarrier has joined #ruby
chendo_ has quit [Ping timeout: 260 seconds]
hamed_r has joined #ruby
<oivoodoo> FactoryGirl.define take a block with factories definitions. I think it will define schemes for the factories and then in your code using cresate or build instantiate the factories.
sspiff has quit [Read error: Connection reset by peer]
<eddie_> it creates FactoryGirl instancese ? right?
jimeh has joined #ruby
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
<reactormonk> eddie_, btw #rubyonrails
nemesit has joined #ruby
<eddie_> thanks reactormonk
<oivoodoo> yeah. it would be great to ask on the rails channel. but I think it will use factory definitions for applying attributes for existing classes.
dmiller has quit [Ping timeout: 246 seconds]
chendo_ has joined #ruby
kil0byte_ has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
Jasko has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
kil0byte has quit [Ping timeout: 265 seconds]
kil0byte has joined #ruby
Jasko has joined #ruby
arturaz has quit [Remote host closed the connection]
nilg has quit [Remote host closed the connection]
kil0byte_ has quit [Ping timeout: 260 seconds]
[Neurotic] has quit [Ping timeout: 244 seconds]
chendo_ has quit [Ping timeout: 246 seconds]
JohnBat26 has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
xpen has joined #ruby
Noobsauce has quit [Quit: irc2go]
chendo_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
[Neurotic] has joined #ruby
sspiff has joined #ruby
[Neurotic] has quit [Excess Flood]
[Neurotic] has joined #ruby
blacktulip has joined #ruby
afd___ has joined #ruby
swex_ has quit [Read error: Operation timed out]
clj_newb has joined #ruby
love_color_text has joined #ruby
rohit has joined #ruby
richardjapenga has joined #ruby
cantonic has quit [Quit: cantonic]
swex has joined #ruby
adrianmn1 has joined #ruby
cantonic has joined #ruby
hsbt_away is now known as hsbt
adrianmn has quit [Read error: Operation timed out]
beilabs has joined #ruby
rdark has joined #ruby
adeponte has quit [Remote host closed the connection]
bradhe has joined #ruby
zomgbie_ has joined #ruby
JohnBat26 has joined #ruby
gregorg has joined #ruby
mikecmpbll has joined #ruby
zomgbie has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
LouisGB has joined #ruby
broon has quit [Quit: Bye!]
Amirh1 has joined #ruby
Vainoharhainen has joined #ruby
slainer68 has joined #ruby
djdb has joined #ruby
afd____ has joined #ruby
Amirh has quit [Ping timeout: 276 seconds]
clj_newb has quit [Ping timeout: 264 seconds]
ewag has quit [Ping timeout: 246 seconds]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
hsbt is now known as hsbt_away
Iszak has joined #ruby
nari has quit [Ping timeout: 268 seconds]
zzyybb has quit [Read error: Connection reset by peer]
tulak has joined #ruby
robotmay has joined #ruby
fyolnish has quit [Remote host closed the connection]
<tulak> hello, I'm having an issue with memmory usage on one of my scripts, it runs as daemon (using the daemons gem), can you recomend me some tool I can profile that script with to see what's going on ? thanks
love_color_text has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<sonne> tulak, what do you mean?
ephemerian has joined #ruby
<Xeago> tulak: god allows more specific manipulation, but not really debugging of that
<tulak> I mean, i want to see what Objects are being stuck in memory, that are not processed by GC
<tulak> It's a daemon that runs rufus-scheduler in it. and after few tasks executed, the top command shows me that it's usig a lot of memory, i want to somehow determine what part of my code is doing that
sepp2k has joined #ruby
haxrbyte_ has joined #ruby
ephemerian has quit [Client Quit]
haxrbyte has quit [Read error: Connection reset by peer]
zomgbie_ has quit [Ping timeout: 245 seconds]
<oivoodoo> @tulak Is it possible that you are running your daemon using rake command with :environment setting for the rails project?
timmow has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
stetho has joined #ruby
jsegura has joined #ruby
<tulak> oivoodoo no i am running it as separate script in scripts/scheduler which contains Daemons.run(…) command, and i also require config/environment.rb to that script
dmiller has joined #ruby
F1skr has joined #ruby
kil0byte has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby
casheew has joined #ruby
databyte_ has joined #ruby
Floydzy has joined #ruby
tomsthumb has quit [Quit: Leaving.]
chussenot has joined #ruby
gcds has joined #ruby
jds_ has joined #ruby
<gcds> Maybe someone would like to help with this? http://www.ruby-forum.com/topic/4408037
databyte has quit [Ping timeout: 252 seconds]
<oivoodoo> tulak In one project I had a problem with several times loading environments daemon. someone put rake command with environment setting to the Daemon run it cause loading for environment every time.
dmiller has quit [Ping timeout: 246 seconds]
gcds has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
gcds has joined #ruby
jds_ has quit [Ping timeout: 252 seconds]
niall_obrien1 has joined #ruby
pavilionXP has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
gcds has quit [Read error: Connection reset by peer]
xpen has quit [Ping timeout: 260 seconds]
gcds has joined #ruby
niall_obrien1 has left #ruby [#ruby]
gcds has quit [Read error: Connection reset by peer]
cirwin has quit [Quit: sleep...ping!]
gcds has joined #ruby
dakine has quit [Quit: Leaving]
lkba has quit [Ping timeout: 256 seconds]
himsin has joined #ruby
oposomme is now known as oposomme|away
ewag has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
qwerxy has quit [Quit: offski]
qwerxy has joined #ruby
gcds has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
timonv has joined #ruby
gcds has joined #ruby
bradhe has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
codecaster has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
gcds has quit [Read error: Connection reset by peer]
alup has joined #ruby
gcds has joined #ruby
cdt has joined #ruby
daniel_- has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
zomgbie has joined #ruby
zz_chrismcg is now known as chrismcg
raunicolae has joined #ruby
love_color_text has joined #ruby
gcds has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
gcds has joined #ruby
berserkr has joined #ruby
databyte_ has quit [Remote host closed the connection]
SPYGAME has quit [Ping timeout: 268 seconds]
Virunga has joined #ruby
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
rohit has quit [Quit: Leaving]
codecaster has quit [Quit: Leaving.]
foofoobar has left #ruby ["Textual IRC Client: www.textualapp.com"]
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
Axsuul has quit [Ping timeout: 255 seconds]
<gcds> searching for someone who is experienced in metaprogramming and willing to help
slamice has quit [Quit: slamice]
maesbn has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
afd___ has quit [Read error: Connection reset by peer]
afd____ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
u89 has joined #ruby
haxrbyte_ has quit [Ping timeout: 256 seconds]
csalvato has joined #ruby
SPYGAME has joined #ruby
RantriX has joined #ruby
<RantriX> any know ios here?
Morkel has quit [Quit: Morkel]
gcds has quit [Read error: Connection reset by peer]
csalvato has left #ruby [#ruby]
gcds has joined #ruby
<gcds> RantriX: probably me if you asking things that I know about ios
haxrbyte has quit [Ping timeout: 255 seconds]
ground has joined #ruby
<ground> Hello
zommi has quit [Ping timeout: 244 seconds]
<ground> How can i get to the private vars without using attr accessor and get set std methods?
zommi has joined #ruby
dmiller has joined #ruby
<hoelzro> ground: @var_name
ewag has quit [Ping timeout: 260 seconds]
tulak has quit [Quit: Leaving.]
kkiero has quit [Ping timeout: 246 seconds]
ananthakumaran1 has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
<ground> Yeah i mean instance vats not priv and also i want access from the outside of the object
maasha has joined #ruby
<maasha> hey. something funny is going on here: http://pastie.org/5400535
<maasha> line 14 is causing a dereferencing that surprises me (I am building a tree using hashes.
haxrbyte has joined #ruby
SPYGAME has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
tulak has joined #ruby
volta has joined #ruby
<maasha> can I change that behaviour?
eka has joined #ruby
<eka> hi all... does Class variables are private? should I provide a getter?
haxrbyte_ has joined #ruby
tulak1 has joined #ruby
afd__ has quit [Remote host closed the connection]
hamed_r has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
tulak has quit [Ping timeout: 246 seconds]
<JonnieCache> in ruby all variables are private until you create a getter
mucker has joined #ruby
<eka> JonnieCache: right... thanks
haxrbyte has quit [Ping timeout: 268 seconds]
staafl has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
margle has joined #ruby
love_color_text_ has quit [Remote host closed the connection]
love_color_text_ has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
love_color_text_ has quit [Changing host]
love_color_text_ has joined #ruby
Jasko has joined #ruby
beiter has quit [Quit: beiter]
schaary has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
twinturbo has quit [Quit: twinturbo]
Zolrath has joined #ruby
rohit has joined #ruby
Bosma has quit [Ping timeout: 252 seconds]
beiter has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
ground has quit [Quit: Bye]
ewag has joined #ruby
skattyadz has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
fyolnish has joined #ruby
hotovson has joined #ruby
tulak1 has quit [Ping timeout: 246 seconds]
knirhs has quit [Ping timeout: 260 seconds]
tulak has joined #ruby
akemrir has joined #ruby
tk__ has joined #ruby
havenn has joined #ruby
pcarrier has quit []
ij has joined #ruby
ephemerian has joined #ruby
SPYGAME has joined #ruby
eka has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Retistic has quit [Quit: Retistic]
<maasha> grr
Rizzle has quit [Ping timeout: 276 seconds]
knirhs has joined #ruby
<maasha> do we have any options for explicit creating references?
<Hanmac> maasha everything in ruby is an reference to an object :D, but i think you mean something else
Virunga has quit [Remote host closed the connection]
nomenkun has quit [Read error: Connection reset by peer]
<maasha> Hanmac: in line 14 http://pastie.org/5400535 I need some way of creating a reference otherwise the content of hash is wiped.
<maasha> Hanmac: or I need to figure the correct way to do this with ruby :/
nomenkun has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<Hanmac> your object you defined above is still there (until the GC finds it), only the variable name is overwritten
<workmad3> maasha: why are you even doing line 14?
oposomme|away has quit [Quit: Leaving...]
<maasha> workmad3: building a tree of hashes
Jasko has quit [Read error: Connection reset by peer]
<maasha> to dump as json
<workmad3> maasha: that doesn't explain why you're doing it...
oposomme has joined #ruby
Jasko has joined #ruby
LineByLine has joined #ruby
nomenkun_ has joined #ruby
bier has quit [Ping timeout: 246 seconds]
bier_ has quit [Read error: Operation timed out]
nomenkun has quit [Ping timeout: 260 seconds]
<maasha> workmad3: using hashes as node I want to set a new parent node.
<workmad3> maasha: you mean you want to set a new current node
<maasha> of cause
<workmad3> maasha: which is why you should use better names for variables
<workmad3> maasha: because 'hash' is a poor name
<workmad3> maasha: and invites itself for reuse
<workmad3> maasha: which you shouldn't be doing
<maasha> right
samphippen has joined #ruby
samphippen has quit [Client Quit]
* maasha %s/hash/node/g
<workmad3> maasha: you really want two variables
<workmad3> maasha: you want a root_node, and a current_node
<Hanmac> maasha: tax_string.scan(/\w__([^;]+)/).inject(node={}){|h,s| h[s[0].delete("[]")] ||= {} }; pp node
<Hanmac> or maybe s[1], i currently has no data to test it
ebouchut has joined #ruby
<Hanmac> shevy are you available?
shevy has joined #ruby
<Hanmac> XD
larissa has joined #ruby
adeponte has joined #ruby
<Hanmac> shevy 20 seconds before you appears i asked irc if you are available :D
qwerxy has quit [Quit: offski]
<shevy> well
AndChat| has joined #ruby
<shevy> I finally have xchat again
<shevy> that is the good news
<shevy> the bad news is
<shevy> I am on ubuntu
<shevy> :\
<shevy> :/
JustinCampbell has joined #ruby
arturaz has joined #ruby
<Hanmac> i am on ubuntu too, it could be worse :)
samphippen has joined #ruby
<shevy> this unity thing makes me want to beat up someone... and the ruby I have here by default uses /usr/local/lib (????)
haxrbyte has joined #ruby
<shevy> yah, well. xchat is better than this webchat thing
adeponte has quit [Remote host closed the connection]
<shevy> but first I must find out how to get rid of this unity stuff
haxrbyte_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
tulak has left #ruby [#ruby]
<Hanmac> shevy i think gnome-session-fallback is what you want
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<shevy> when I click on gnome-terminal, all the other windows are gone, and I can't minimize it either...
<shevy> and I dont understand why the X close button is on the top left area
<shevy> lol Hanmac
<shevy> that poor cat
<Hanmac> why the cat is still cute :D
<shevy> it's becoming some kind of pseudo cat
dmiller has joined #ruby
<shevy> like an elephant-cat
<shevy> ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
<shevy> this is the default in ubuntu?
bier_ has joined #ruby
darksk1ez has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
<shevy> Hanmac what is your ruby version?
<Hanmac> shevy my ruby has 1.9.3.194-1ubuntu1.2
atmosx has joined #ruby
<darksk1ez> i have a gem which is exiting my rails console somewhere, how can i track where this is exiting ?
<Hanmac> and its installed under /usr/lib/ruby
<shevy> strange
slainer68 has quit [Remote host closed the connection]
<shevy> hmmm why is my ruby different ...
<shevy> Hanmac, look:
<shevy> Rubygems Version: 1.8.11
<shevy> Rubygems Installation Directory: /var/lib/gems/1.9.1
bier has joined #ruby
Goles has joined #ruby
hamed_r has joined #ruby
<Hanmac> shevy - RUBYGEMS VERSION: 1.8.23; - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]; - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
<shevy> hmm I think I dont have the latest hehe
instinkt has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby
instinkt has quit [Client Quit]
havenn has quit [Remote host closed the connection]
Goles has quit [Ping timeout: 264 seconds]
jeff_sebring has quit [Quit: Leaving]
Goles has joined #ruby
rohit has quit [Quit: Leaving]
tvw has joined #ruby
Goles_ has joined #ruby
hoelzro is now known as hoelzro|away
kil0byte_ has joined #ruby
Goles has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
Goles_ has quit [Remote host closed the connection]
hoelzro|away is now known as hoelzro
oposomme has quit [Quit: Leaving...]
kil0byte has quit [Ping timeout: 246 seconds]
<shevy> so, getting better... oddly enough, ruby 1.8.x compiles too, so now I have 1.8.x and 1.9.3psomethingsomething
skattyadz has quit [Quit: skattyadz]
SPYGAME has quit [Ping timeout: 245 seconds]
<Hanmac> shevy the ubuntu i fresh installed is not shipped with ruby1.8 anymore :D (but you could install it if you want)
Jasko has quit [Read error: Connection reset by peer]
<shevy> yeah
<shevy> it's my legacy now
Jasko has joined #ruby
<shevy> better than having to use shell scripts
skattyadz has joined #ruby
pcarrier has joined #ruby
greenarrow has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: And so the story goes…]
greenarrow has joined #ruby
qwerxy has quit [Quit: offski]
claymore has joined #ruby
instinkt has joined #ruby
bradhe has joined #ruby
nomenkun_ has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
RantriX has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 265 seconds]
rakl has quit [Quit: sleeping]
rohit has joined #ruby
SPYGAME has joined #ruby
u89 has quit [Remote host closed the connection]
rcvalle has joined #ruby
slainer68 has joined #ruby
answer_42 has joined #ruby
nomenkun has quit [Remote host closed the connection]
kil0byte has joined #ruby
nomenkun has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
kil0byte_ has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby
Slivka has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Ping timeout: 255 seconds]
phantasm66 has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
Erfankam has quit [Remote host closed the connection]
jamesaxl has joined #ruby
akemrir has quit [Ping timeout: 246 seconds]
himsin has quit [Quit: Leaving]
dhruvasagar has quit [Read error: Operation timed out]
rohit has quit [Read error: Connection reset by peer]
jackiechan0 has joined #ruby
workmad3 has joined #ruby
u89 has joined #ruby
[Neurotic] has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby
samphippen has joined #ruby
agu10^_ has quit [Read error: Connection reset by peer]
agu10^_ has joined #ruby
mengu has joined #ruby
krz has quit [Quit: krz]
Goles has joined #ruby
Goles has quit [Remote host closed the connection]
daniel_- has joined #ruby
Spami has joined #ruby
<Spami> hello
Goles has joined #ruby
<Spami> I'm trying to use take_while method with an each but I do something wrong and I can't figure out what
<Spami> I have this: @user.coupons.take_while{|time| time > DateTime.now }.each do |coupon|
<Spami> and the error is: undefined method `>' for #<Coupon:0x007f9e2c868bd0>
samphippen has quit [Quit: Computer has gone to sleep.]
Jasko has quit [Ping timeout: 246 seconds]
Amirh1 has quit [Quit: Leaving.]
<Hanmac> Spami: .take_while{|coupon| coupon.time > DateTime.now }.
statarb3 has quit [Quit: Leaving]
<Spami> thanks Hanmac !
<Xeago> Hanmac: nice figuring that one out there..
<Hanmac> Xeago when you master ruby you get a feeling how the code wants to look like :D
ffranz has joined #ruby
<Xeago> I wouldn't say coupon would have a time property, rather expiration_date or something
grzywacz has joined #ruby
jgarvey has joined #ruby
<Spami> Xeago, me too, that's why I should not work when i'm half sleeping
<Spami> fixed now :)
Elhu has quit [Quit: Computer has gone to sleep.]
elentras has quit [Remote host closed the connection]
iamjarvo has joined #ruby
elentras has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
claymore has quit [Quit: Leaving]
dmiller has joined #ruby
elsifaka has joined #ruby
beiter_ has joined #ruby
statarb3 has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
jackiechan0 has joined #ruby
nanderoo has joined #ruby
niklasb has joined #ruby
samphippen has joined #ruby
beiter has quit [Ping timeout: 246 seconds]
beiter_ is now known as beiter
samphippen has quit [Client Quit]
Jasko has joined #ruby
geekbri has joined #ruby
flip_digits has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
<Spami> damn
kil0byte_ has joined #ruby
grzywacz has quit [Ping timeout: 246 seconds]
<Spami> something weird guys. So I have a coupon with expiration_date set to: "2015-11-19" and when I do a @user.coupons.take_while{|coupon| coupon.expiration_date > DateTime.now }
<Spami> I get nothing but I should get the coupon expiring in 2015
<Xeago> "2015-11-19" the string, or equivalent Date object?
<Spami> date object
<Xeago> you should compare dates to dates
<Spami> I do
kil0byte has quit [Ping timeout: 255 seconds]
<Xeago> you are copmaring a date to a datetime
<Xeago> compare to Date.today
<Xeago> (after a require of 'date'
<Spami> still
slainer68 has joined #ruby
<Spami> getting an empty array
<Spami> but working fine if I do <
<Hanmac> do ">="
kil0byte has joined #ruby
<Spami> Hanmac, already tried :)
<Xeago> Hanmac: why would that be?
<Hanmac> dont know
<Xeago> Spami: could you gist your code?
<Xeago> Date.parse("2015-11-19") > Date.today #=> true
<Xeago> Date.parse("2015-11-19") > DateTime.now #=> true a,s
<Xeago> also*
zomgbie_ has joined #ruby
zomgbie has quit [Ping timeout: 260 seconds]
<shevy> hey Hanmac do you use unity?
robbyoconnor has quit [Ping timeout: 246 seconds]
<Hanmac> shevy i use gnome classic
notVert has quit [Remote host closed the connection]
fbernier has joined #ruby
kil0byte_ has quit [Ping timeout: 248 seconds]
<Xeago> Spami: try printing the coupon, for example with tap
<shevy> Hanmac hehe I see
<Xeago> take_while{|coupon| coupon.expiration_date > Date.today }.tap {|c| pp c}.each..
<Xeago> tap is like tee in unix
<Hanmac> like: .tap(&:display)
<Xeago> hmm, never seen #display before! cool
Goles has quit [Remote host closed the connection]
<Xeago> does it use #inspect?
gcds has quit [Quit: gcds]
cakehero has joined #ruby
<Spami> nothing is displaying
<Spami> I'm just getting []
<Xeago> move the .tap in front of the take_while
u89 has quit [Remote host closed the connection]
mark_locklear has joined #ruby
<Xeago> see if that displays something
<Xeago> are you sure the association is loaded and not empty?
<Hanmac> Xeago: display uses to_s
chussenot has joined #ruby
<Spami> yes both coupons I have in the DB
<Xeago> thanks
bdpuk has quit [Quit: Leaving]
<Xeago> Spami: do you get them in the @users.coupons array?
<Spami> yes
<Xeago> did you check with a tap before .take_while?
<Spami> and I'm getting the expired coupon when I do < Date.today
<Spami> Xeago, ye si did
mikecmpbll has quit [Quit: Computer has gone to sleep.]
<Xeago> Hanmac: shouldn't he be using select?
<Hanmac> hm yeah i think so (or find_all)
<Xeago> take_while stops when the block returns false for the element passed?
<Xeago> Spami: try select instead of take_while
<Xeago> as your first element in coupons does not satisfy the condition, the loop stops
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
x0F_ is now known as x0F
bradhe has joined #ruby
<Spami> It's working
<Spami> damn
<Spami> thanks guys !
<Spami> I learned a lot :)
<Xeago> no problem :)
jackiechan0 has quit [Quit: Sto andando via]
toto_ has joined #ruby
cantonic has quit [Quit: cantonic]
J-_-L has joined #ruby
cantonic has joined #ruby
etehtsea has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
krawchyk has joined #ruby
jamesaxl has quit [Ping timeout: 264 seconds]
jamesaxl has joined #ruby
perlsyntax has joined #ruby
rcvalle has left #ruby ["Leaving"]
aajjbb has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
amaya_ has joined #ruby
monkegji_ has quit [Read error: No route to host]
monkegj__ has joined #ruby
<amaya_> :)
shiin has joined #ruby
jrist-afk is now known as jrist
sspiff has quit [Remote host closed the connection]
lotus2015 has joined #ruby
<lotus2015> /usr/local/lib/libreadline.so.6: undefined symbol: UP
<lotus2015> Is there anyone have any idea?
joofsh has joined #ruby
SPYGAME has quit [Read error: Connection reset by peer]
<lotus2015> I've tried many times. It just doesn't work
<lotus2015> Any idea?
tommyvyo has joined #ruby
<lotus2015> I also googled for a long time.
seanyo has joined #ruby
verto|off is now known as verto
elsifaka has quit [Quit: Veloma e!]
daniel_- has joined #ruby
<k610> a gem to build a cisco-like cli with autocompletion end colors ?
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<lotus2015> No, the irb does not work well with readline
<lotus2015> I'When I issued require 'readline' in irb, it prompt '/usr/local/lib/libreadline.so.6: undefined symbol: UP'
aajjbb has quit [Quit: Leaving]
<lotus2015> Any idea with that?
<k610> i tried thor, commander, gli, main but none of these have autocompletion of subcommands or options
mklappstuhl has joined #ruby
mikecmpbll has joined #ruby
<heftig> lotus2015: UP is defined in ncurses
<heftig> so something is wrong with your libreadline. it should be linking to libncursesw.so
Elhu has joined #ruby
elentras has quit [Remote host closed the connection]
<lotus2015> So what should I do?
<heftig> arch fixes it by building readline with make SHLIB_LIBS=-lncurses
elentras has joined #ruby
<lotus2015> I'm using ubuntu 12.04 64bit
Goles has joined #ruby
<heftig> then your system is broken
near has joined #ruby
<heftig> you shouldn't have any libs in /usr/local/lib unless you installed things manually
phantasm66 has quit [Quit: *sleeeeep*]
<lotus2015> I gotta say thank you, man. It works when I removed libreadline* from /usr/local/lib
<lotus2015> Thank you very much. Heftig
<lotus2015> :-D
kpshek has joined #ruby
SPYGAME has joined #ruby
invisime has joined #ruby
oposomme has joined #ruby
dp has joined #ruby
shtirlic has joined #ruby
ttt has quit [Disconnected by services]
dmiller has joined #ruby
near has left #ruby ["Konversation terminated!"]
verto is now known as verto|off
<dp> I'm trying to do .has_key?('keyname') on an object, but I'm told that's an undefined method. any suggestions?
qwerxy has quit [Quit: offski]
ttt_ has joined #ruby
<Hanmac> dp, you may have the wrong object
akemrir has joined #ruby
<dp> Hanmac: afaik, this code worked correctly last week
<Hanmac> show me your code
jxf has joined #ruby
emergion has joined #ruby
<dp> it's part of jekyll, but http://codepad.org/nezcs25K
<dp> specifically, line 43
k610 has quit [Ping timeout: 265 seconds]
<Hanmac> self.data is not set, that means it cant work
k610 has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
jgarvey has quit [Quit: Leaving]
linoj has joined #ruby
<dp> what's the appropriate way to check to see if it's set?
<Xeago> .present?
<Xeago> not sure if .present comes with core ruby
<Hanmac> it does not :D
<Xeago> than use .nil?
<Hanmac> its an rails trap
<Xeago> or .empty?
<Xeago> but nil does not have #empty?
<Hanmac> .nil? is the best
cantonic has quit [Read error: Connection reset by peer]
<Xeago> I kinda like #present? gives an easy way to know if there is a value in the lefthand object
krawchyk_ has joined #ruby
cantonic has joined #ruby
banisterfiend has quit [Remote host closed the connection]
haxrbyte has joined #ruby
macabre has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
nari has joined #ruby
yalue has joined #ruby
<Hanmac> Xeago: i dont like it because its false on "" ... this may not wanted ... and present? is only there to evaluate [], "", {} to false ... this is php style and trying to copy that into ruby is a very wrong way
eddie_ has quit [Quit: Ex-Chat]
ttt_ has quit [Remote host closed the connection]
derpops has joined #ruby
krawchyk has quit [Ping timeout: 244 seconds]
<Xeago> I do see your concerns, but I am ridden in a system here that supplies "" [] and {} all over..
<Xeago> instead of nils..
sailias has joined #ruby
<Xeago> hence I have to use it a lot and therefore my bias
<Xeago> this app here is horrid
samphippen has joined #ruby
<Xeago> less than 3% of code is commented (there are really nasty business constraints going on and many many external dependencies) , and 80% of those are mine
xsbeats__ has left #ruby [#ruby]
hamed_r has quit [Quit: Leaving]
d2dchat has joined #ruby
<Xeago> source is about 1MB big
<Xeago> (of 1 part of the whole system here)
<dp> so then what's the suggested method here?
yaymukund has joined #ruby
tk__ has quit [Quit: ばいばい]
<Xeago> probably !value.nil?
chimkan has joined #ruby
elsifaka has joined #ruby
agu10^_ has quit [Read error: Connection reset by peer]
AndChat| has quit [Ping timeout: 268 seconds]
agu10^_ has joined #ruby
agu10^_ has joined #ruby
agu10^_ has quit [Changing host]
<dp> ok, I can see in the code where it's doing self.data ||= {}
<dp> would that be .empty?
mmitchell has joined #ruby
<Xeago> if data is {}
<Xeago> you should be able to check for has_key?
toto_ is now known as ToTo
<lotus2015> I just recalled that I failed to install ruby 1.8.6 with rbenv, I also googled for a long time. https://github.com/sstephenson/ruby-build/issues/88, Is there anyone can give me a hand. What should I do. I tried apply the patches. But it didn't work.
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
jamesaxl has quit [Remote host closed the connection]
<Hanmac> Xeago: my source of one of my projects is ~400kb and the result is ~40MB ... its an nice growing :D
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ananthakumaran has joined #ruby
bpfh has joined #ruby
<Xeago> I have rarely seen the source of an app in production be bigger than a MB..
<dp> heh. bad data in my case. whoops
<Hanmac> lotus2015 what is your OS/OSVersion?
<Xeago> we produce about 4TB of data daily tho :3
<Hanmac> Xeago: its an binding, so its allowed to grow while building
dp has left #ruby [#ruby]
derpops has quit []
manizzle has quit [Ping timeout: 246 seconds]
<lotus2015> Ubuntu 12.04 64bit
<lotus2015> Any idea with that? Hanmac?
<Hanmac> yeah, not use 1.8.6 :D
<Hanmac> use 1.8.7 is the oldest you are allowed to use (not from me)
<shevy> hehe
GoGoGarrett has joined #ruby
<shevy> the problem with ubuntu is that it cripples packages by default
seanyo has quit [Read error: Connection reset by peer]
<shevy> so when you compile ruby from source, you need all the .h files
ZubKonst has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
samphippen has quit [Quit: Computer has gone to sleep.]
<Xeago> what's the closest linux os, when coming from mac os x
k610 has quit [Ping timeout: 246 seconds]
<Xeago> flavor/distro*
<shevy> gobolinux
<shevy> :)
<lotus2015> Thank you very much.
<Xeago> that's the first that's listed at gnu right?
ZubKonst has joined #ruby
<shevy> lotus2015, the source to latest 1.8.x branch is: ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p358.tar.bz2
<shevy> Xeago, I am kind of kidding, gobolinux sadly died years ago :(
<shevy> I dont think any linux distribution has a .bundle like mechanism
<Xeago> yea, 4 years ago :\
k610 has joined #ruby
<shevy> PC-BSD perhaps comes close with their .pbi files, or whatever was the name
<shevy> but BSD is strange for me ...
<lotus2015> Thank you ,shevy
<ddd> there is no linux distrib thats close to osx. freebsd is closer. for UI you could use Ubuntu, which is about the closest
<Xeago> for ui I will go with i3 prolly
<shevy> lotus2015, I can compile that ruby from source even on a default ubuntu. but some extensions will not be built, they reside in the ext/ subdirectory
eldariof has quit [Ping timeout: 252 seconds]
<shevy> like you would have to use apt-get to install readline headers, openssl... libyaml you will also need...
asaaki has joined #ruby
schaary has joined #ruby
asaaki has quit [Max SendQ exceeded]
<shevy> ewwww Unity interface in Ubuntu
<shevy> that thing is awful ddd!
<ddd> yeah :/
<shevy> I am using it right now... it is colourful and shiny and UNUSABLE
<ddd> hehe
<Xeago> I will go solely with i3 or another tiling wm
<Xeago> don't need anything else
asaaki has joined #ruby
asaaki has quit [Max SendQ exceeded]
<shevy> :)
<shevy> at least those small wm get less in the way
<ddd> I just stick with what I'm trying to mimic. I stick with OS X :)
<lotus2015> :-)
<shevy> I like fluxbox more, it's a bit easier to use than the small wm
<Xeago> don't have the funds to buy a new good macbook
<shevy> and then I use gnome and kde apps in fluxbox
<Xeago> don't have the interest in hackintosh
<ddd> icewm is nice, and small.
Coolhand has quit [Read error: Connection reset by peer]
<Xeago> nor compatibility stuff
jeffreybaird has joined #ruby
asaaki has joined #ruby
asaaki has quit [Excess Flood]
<ddd> you're going to have to worry about compatibility either way, even with linux
<JonnieCache> xmonad ftw
perlsyntax has quit [Quit: Leaving]
<Xeago> not having any issue's on osx, guess that's what I am paying for then..
<shevy> icewm is ok too
lotus2015 has left #ruby [#ruby]
<ddd> not all devices are supported, and there are tons of windows devices that uses stub libs that will need ndis or that other wrapper (i forget the name) to work right if at all
<shevy> what I do not understand is why KDE and GNOME are trying so hard to become less and less useful
<ddd> there's always compatability to worry about
<ddd> Xeago: yeah I have zero issues on OSX which is why I paid for it, the hardware, and the ACP
<Xeago> acp?
<ddd> well worth the money to me
<shevy> most hardware tends to work for me on linux fairly well
<ddd> AppleCare Program
<Xeago> ah yea, 3year warranty, I buy it around the end of the first year
larissa has quit [Read error: Operation timed out]
<Xeago> never needed the phonesupport past the first 90 days
<shevy> sex
<ddd> shevy: in i'd say 80-85% of cases (arbitrary guesstimate numbers) they will. maybe even a bit higher. Still, one does have to keep an eye out
larissa has joined #ruby
<shevy> ddd, yeah
qwerxy has joined #ruby
<Xeago> only used it once, when I got delivered a faulty mainboard and couldn't diagnose it myself
<shevy> ddd: for me it is ok, I can invest my time searching for solutions, trying out things etc... but I think for most people, this is all too much work and time spent
elsifaka has quit [Quit: Veloma e!]
Coolhand has joined #ruby
theRoUS has joined #ruby
<ddd> Xeago: i've used it 2 or 3 times, but my problem got fixed fast, no issues, and even a couple wear and tear items were fixed for free. I had nothing but bellyaching and trying to get out of warranty work using every little trick they could think of from HP/Compaq, Dell, IBM, and Acer
<Xeago> the phonesupport?
<ddd> I admit its pricier with Apple on the initial buy, however, if I could still do 3rd party addons like the 16GB RAM, SSD drives etc, I'd do it again
aquaranto has joined #ruby
<ddd> no, the AppleCare. Haven't ever used the phone support (thats setup and stuff)
<Xeago> yea, beeing able to just drop it off and picking it up again is perfect
<JonnieCache> when i found out that they could actually fix inside a couple of hours my jaw hit the floor
<ddd> yep
<ddd> I only had one case where my keyboard shorted out for some reason where it took a couple days but thats because they had to ship it to get it fixed.
<JonnieCache> "when can i get that back?" "about 4" "which day" "today." "wtf?"
<ddd> battery issue, and a screen issue they fixed in store
skaczor has joined #ruby
<ddd> iirc its because they didn't have any replacement keyboards in the back, only reason it shipped
kil0byte_ has joined #ruby
<Xeago> slip pads, 5 minute fix, had one get the laptop out of balance
<ddd> the one at the Walden Galleria Mall in Cheektowaga, NY is super busy
zooz has joined #ruby
<zooz> hi people
piotr__ has joined #ruby
<shevy> hi zooz
<zooz> could you suggest an interactive ruby shell?
<Xeago> pry
<zooz> similar to ipython for instance
<ddd> Apple even gave me Lion coupon for free. To upgrade from Snow Leopard when I bought the machine. It wasn't released yet
piotr_ has quit [Ping timeout: 240 seconds]
<ddd> that was cool
<ddd> zooz: Pry is probably closer to that, and IRB is like idle
<zooz> thanks!
macabre has quit [Remote host closed the connection]
<shevy> zooz, on what OS are you?
<zooz> all those years I was trying hard not to learn ruby, but I cannot work without knowing ruby nowadays...
kil0byte has quit [Ping timeout: 276 seconds]
<zooz> shevy, Fedora Linux
richardjapenga has quit [Quit: Leaving]
<shevy> debian usually has irb at /usr/bin/irb1.9 and a symlink there "irb" pointing to that (or vice versa, I forgot)
<ddd> its a good solid additional language to know
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
<shevy> zooz, hehe, scripting languages are useful. have you been using other scripting languages so far?
emergion has quit [Quit: Computer has gone to sleep.]
<ddd> shevy: usually an irb symlink to irb#.#
<Xeago> how's fedora for ruby development?
shiin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<zooz> ddd, yep, especially when using puppet and friends
<ddd> Xeago: just as good as every other linux
<shevy> ddd, yeah, I can never remember that... this versioning of binaries in /usr/bin confuses me
<Xeago> ddd: isn't it usually a hardlink instead of a symlink?
<ddd> yea i hate it too
chrishunt has quit [Read error: Connection reset by peer]
iPhoneMRZ has joined #ruby
<ddd> Xeago: no. its managed by update-alternatives which is symlink
<Xeago> hmm, ok
<ddd> rarely do hardlinks get used these days. people usually split their drives or un multiple drives. hardlinks don't cross disks
<ddd> s/ un / run /
Uranio has joined #ruby
samphippen has joined #ruby
<shevy> and there is /etc/alternatives too, lookie: stat ruby File: `ruby' -> `/usr/bin/ruby1.9.1 it points at the versioned name directly, not at /usr/bin/ruby :)
<zooz> one more question, could you suggest me a beginner's guide to ruby? I can write code with Python, bash, etc, what I really need is to learn ruby syntax and be able to write simple functions, string manipulation, nothing too complicated
<zooz> I am referencing: http://www.sapphiresteel.com/IMG/pdf/LittleBookOfRuby.pdf at the moment
<ddd> also, iwanttolearnruby.com
<zooz> cool, thanks
<ddd> yep
BoomCow has quit [Ping timeout: 260 seconds]
ascarpino has joined #ruby
ascarpino has joined #ruby
ascarpino has quit [Changing host]
<shevy> zooz, something that should be easy for you is to work through this tutorial here as quickly as possible: http://pine.fm/LearnToProgram/?Chapter=01
<shevy> it is very easy so you can finish in 8 minutes!
ner0x has joined #ruby
<ddd> retention is up to you :)
<zooz> thanks guys
<zooz> brilliant support!
asaaki has joined #ruby
<shevy> you probably know 80% already if you know python
<shevy> ruby and python are somewhat similar, save some syntax differences and differences in philosophy
headius has joined #ruby
tommyvyo has quit [Read error: Connection reset by peer]
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 16.0.2/20121024073032]]
x82_nicole has joined #ruby
<ddd> biggest being whitespace dependence
qwerxy has quit [Quit: offski]
_alejandro has quit [Remote host closed the connection]
atno has joined #ruby
<atno> morning #ruby
<shevy> hi atno
tommyvyo has joined #ruby
u89 has joined #ruby
nicolaerau has joined #ruby
raunicolae has quit [Ping timeout: 268 seconds]
macabre has joined #ruby
Goles has quit [Read error: Connection reset by peer]
<zooz> shevy, I probably do, but the syntax somewhat is painful so far - hurts my eyes, but I am sure once I understand it, it will be fine :-)
Goles has joined #ruby
nari has quit [Ping timeout: 255 seconds]
phantasm66 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
stopbit has joined #ruby
bpfh has quit [Read error: Connection reset by peer]
yaymukund has left #ruby [#ruby]
oposomme has quit [Quit: Linkinus - http://linkinus.com]
<ddd> hah, you are the absolute first i've seen complain that the syntax is painful
bpfh has joined #ruby
dmerrick has joined #ruby
<shevy> zooz ah it can be confusing if other people wrote something
<shevy> you can however use a pythonistic ruby style
<shevy> object.name_of_method()
dmiller has joined #ruby
bbttxu has joined #ruby
<shevy> hmm...
mr-rich has quit [Ping timeout: 245 seconds]
<shevy> and you can use "for x in y" or something... but in ruby this is not so natural
maesbn_ has joined #ruby
<shevy> collection.each is much easier to read and understand
<shevy> or collection.map
areil has quit [Remote host closed the connection]
<shevy> and!
<shevy> you can use print() too!
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> unfortunately the "end" keyword is mandatory :(
<shevy> except in do/end blocks, where {} could be used instead
<shevy> hmm
rcsheets has quit [Quit: Connection closed for inactivity]
<shevy> actually you could use define_method() {} but this is kind of ugly to do on a regular base
<shevy> def foo
<shevy> puts 'hi from foo()'
<shevy> end
<shevy> foo
<shevy> foo()
maesbn has quit [Ping timeout: 265 seconds]
qwerxy has joined #ruby
apeiros_ has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
krawchyk has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
morf has quit [Quit: eof]
andrewhl has joined #ruby
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
akemrir has quit [Ping timeout: 246 seconds]
grzywacz has joined #ruby
axl_ has joined #ruby
<zooz> I prefer "do end" syntax instead of ugly { }
_nitti has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
<apeiros_> zooz: so you chain on `end` :)
<apeiros_> ary.select do |x| … end.map do |x| … end
<Xeago> array.select { |e| e.value }.etc
slainer68 has quit [Remote host closed the connection]
n0x00 has joined #ruby
<Hanmac> array.select(&:value).etc
n0x00 has left #ruby [#ruby]
<rking> I've started shrink-wrapping all the space on one-line blocks. Might as well go all the way with it: array.select{|e|value * 2}
<Xeago> ary.map(&:value).each instead of ary.map do |a| a.value end.each
v0n has joined #ruby
instinkt has quit [Ping timeout: 256 seconds]
<apeiros_> Xeago: yes, that's what I do too. but see what zooz wrote.
<apeiros_> rking: meh, dislike. code needs air to breathe. therefore: array.select { |value| value*2 }
<rking> apeiros_: Might as well go with array.select do |value| value * 2 end
nateberkopec has joined #ruby
<apeiros_> rking: might, but it's ugly. see chaining.
<workmad3> apeiros_: I quite like to do 'array.select{ |value| value * 2 }' if I'm chaining
adeponte has joined #ruby
<rking> apeiros_: BTW I have a good reason for not cuddling math ops
<apeiros_> cuddling?
carlyle has joined #ruby
<apeiros_> yeah, that's what people say about their use of goto too… :-p
<apeiros_> (I have good reason to…)
<workmad3> value*2 vs value * 2 I guess
<apeiros_> ah
<rking> Because I hope, deep in my heart, that someday programming language designers will wake up and realize that dashes in symbol names would be a bigger win than the ability to say: a = 1; b = 2; a-b
<apeiros_> my point was more about `{|x|code` vs. `{ |value| code`
<Xeago> hmm
<Xeago> if your code is utf8
<apeiros_> value * 2 vs. value*2 - don't care
bradhe has joined #ruby
<Xeago> you can use hyphen minus-sign dash, en dash and em-dash
<Xeago> :)
<rking> apeiros_: OK, that's just a knee-jerk reaction on your part
Eplemosen has joined #ruby
etcetera has joined #ruby
<apeiros_> rking: which one? (and no, it isn't a knee-jerk reaction)
<workmad3> Xeago: sure... and how do you input those on a standard 102 key keyboard? :P
<rking> All of these things that are 'ugly' or 'should be', with no deeper explanation, are things you'd get used to in about 2 hours of changing
<Xeago> workmad3: using escape sequences
mohanmcgeek has joined #ruby
zommi has quit [Quit: Leaving.]
<workmad3> Xeago: sounds crappy :P
<Xeago> yea
<Xeago> have you seen swedish people program?
jlast has joined #ruby
<apeiros_> rking: correct. I agree that when it's about code style without functional implication, it's far far more important to have a common team style than to insist on your personal style being better
<Xeago> ()-?{}[] are all escape characters
<apeiros_> rking: and I agree that you get used to about any style in no time
jrist is now known as jrist-afk
<Xeago> oh and /\><
<apeiros_> Xeago: coding with unicode is instafail IMO :-p
<rking> workmad3: Xcompose is great. Have you used it?
<rking> apeiros_: Yay! Agreement. \o/
<Xeago> yea.. swedish people need to use escape sequences by standard, it's horrible!
<Xeago> whenever I touch a coworkers laptop I shiver
<apeiros_> rking: that said, MY STYLE IS BETTER!!!!! :-p
gyre008 has joined #ruby
<gyre008> is anyone here using backup gem ?
ttt_ has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
<Xeago> I use tarsnap for backups besides time machine
<gyre008> Xeago: well..you cant really use time machine on the Linux production servers :)
yuike has joined #ruby
yuike has quit [Max SendQ exceeded]
kil0byte has joined #ruby
<Xeago> tarsnap
<shevy> ok time to restart... hopefully I manage to come back...
shevy has quit [Quit: ""]
yuike has joined #ruby
zaki has quit [Read error: Operation timed out]
bwlang has joined #ruby
yuike has quit [Max SendQ exceeded]
katherinem13 has quit [Remote host closed the connection]
yuike has joined #ruby
samphippen has joined #ruby
nomenkun_ has joined #ruby
dmiller has joined #ruby
kil0byte_ has quit [Ping timeout: 246 seconds]
ttt_ has quit [Ping timeout: 276 seconds]
nomenkun_ has quit [Remote host closed the connection]
nomenkun_ has joined #ruby
tijmencc has joined #ruby
dmiller has quit [Remote host closed the connection]
katherinem13 has joined #ruby
dmiller has joined #ruby
tijmencc has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
witchdoc has joined #ruby
<witchdoc> hi all
ThaDick has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
chimkan has joined #ruby
mercwithamouth has joined #ruby
mohanmcgeek has left #ruby [#ruby]
dmiller has quit [Remote host closed the connection]
tagrudev has quit [Quit: I am going home, I am going home, tell the world I am going home (for a beer)]
_alejandro has joined #ruby
adeponte has quit [Remote host closed the connection]
jackiechan0 has joined #ruby
Zolrath has quit []
nomenkun_ has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
carlyle has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 252 seconds]
rmcafee has joined #ruby
Elico has joined #ruby
OldOats has joined #ruby
dnstbr has joined #ruby
synthetix has joined #ruby
im0b has joined #ruby
instinkt has joined #ruby
Goles_ has joined #ruby
Goles has quit [Ping timeout: 260 seconds]
zaki has joined #ruby
awarner has joined #ruby
<sonne> how would you do logging in a ruby daemon, in order to be able to log to either stdout or syslog?
tonini has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
Goles has joined #ruby
fmcgeough has joined #ruby
Goles_ has quit [Read error: Connection reset by peer]
rippa has joined #ruby
larissa has quit [Quit: Leaving]
arya_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<JonnieCache> sonne: there's a Logger class in stdlib thats very flexible
<sonne> not really.. it can't log to syslog
<sonne> there's the syslog class, but it's nowhere similar to Logger
<JonnieCache> oh sorry i thought Logger could talk to syslog
Spaceboy has joined #ruby
<JonnieCache> you can make Logger output to an IO, could you use that to push stuff into syslog
samphippen has joined #ruby
qwerxy has quit [Quit: offski]
atno is now known as atno|AFK
instinkt has quit [Ping timeout: 265 seconds]
atno|AFK is now known as PhillSparks
d2dchat has joined #ruby
PhillSparks is now known as atno
zigomir has quit [Ping timeout: 260 seconds]
atno is now known as atno|AFK
bbttxu has quit [Quit: bbttxu]
yuike has quit [Quit: Computer has gone to sleep.]
qwerxy has joined #ruby
carlyle has joined #ruby
Guest92676 has joined #ruby
dmiller has joined #ruby
BrianJ has joined #ruby
<CamonZ> to catch all exceptions on a rescue block simply rescue => e is enough right?
<heftig> sonne: you could probably write a simple wrapper around Syslog.log
friskd has quit [Quit: friskd]
qwerxy has quit [Client Quit]
<hoelzro> camonz: that'll only catch StandardError subclasses, I believe
<heftig> rescue Exception => e
<sonne> heftig, that's the direction i went... i was hoping there was something already
heftig has quit [Quit: leaving]
instinkt has joined #ruby
kil0byte_ has joined #ruby
aganov has quit [Remote host closed the connection]
axl__ has joined #ruby
<CamonZ> hoelzro, heftig: thanks
grzywacz has quit [Ping timeout: 248 seconds]
<Paradox> ( ͡° ͜ʖ ͡°)
Goles has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
Goles has joined #ruby
Neomex has quit [Client Quit]
axl_ has quit [Ping timeout: 252 seconds]
tnk1 has quit [Ping timeout: 244 seconds]
kil0byte has quit [Ping timeout: 240 seconds]
dmiller has quit [Ping timeout: 276 seconds]
mikepack has joined #ruby
jrist-afk is now known as jrist
alex__c2022 has joined #ruby
axl_ has joined #ruby
cantonic has quit [Quit: cantonic]
<davidcelis> | (• ◡•)| (❍ᴥ❍ʋ)
axl__ has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
tnk1 has joined #ruby
<Hanmac> davidcelis thats Mathematical! xD
<davidcelis> algebraic
<Hanmac> Rhombus! :D
<Paradox> ʕ •ᴥ•ʔ
<Paradox> koala watches you ruby
<Paradox> loel
<JonnieCache> ☃ snowman is watching you koala
<Paradox> ಠ‿ಠ
<Hanmac> Paradox you mean this koala? http://www.youtube.com/watch?v=ApGBY4IWluo
topek has quit [Quit: Leaving.]
<Paradox> Hanmac, that looks like a drop bear
dmiller has joined #ruby
<Hanmac> i knew it! drop bears are real!
<Paradox> yeah
vlad_starkov has joined #ruby
<Hanmac> Paradox: you read TerryPratchett right?
<Paradox> no
<Paradox> but i know him
<Paradox> hes from a town i lived in
axl_ has quit [Ping timeout: 240 seconds]
<Hanmac> cool
<JonnieCache> Paradox: you must be from near me
Eplemosen has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
<JonnieCache> or near where im from anyway
<Paradox> you gotta put some beer behind your ears
<Paradox> JonnieCache, eastern wa?
<Paradox> if you put some beer, the drop bears stay away
<JonnieCache> lol no
<Paradox> if you dont
<Paradox> they eat your head off
<JonnieCache> terry pratchett is from SW england
<Paradox> wait
<Paradox> yeah
<Paradox> not him
<Paradox> derp
Eplemosen has joined #ruby
<Paradox> i meant the guy who wrote fight club
axl_ has joined #ruby
<Paradox> chuck paliniachuckaluckaduck
<JonnieCache> oh chuck whatsisface
<Paradox> or whatever
apeiros_ has quit [Remote host closed the connection]
<Hanmac> Paradox i thought that drop bears are falling from the trees while you are under the tree
<JonnieCache> but drop bears are in pratchett not fight club surely?
<Paradox> drop bears are old aussie lore
chrishunt has joined #ruby
katherinem13 has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
ckrailo has joined #ruby
<JonnieCache> yeah but they feature heavily in the discworld book about australia, and as far as i remember theres none in fight club
<Paradox> Hanmac, they can fall from anywhere high
<Hanmac> 2013 there will be an new OZ movie
<Paradox> they fall on your head and rip it off
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
<Paradox> unless you have beer behind your ears
<Paradox> gotta be a shitty beer
<Paradox> like fosters
jackiechan0 has quit [Quit: Sto andando via]
skattyadz has quit [Quit: skattyadz]
<Hanmac> JonnieCache: you mean "the last continent" there drop bears appear in an chapter
<JonnieCache> yep
<Paradox> ringworld > discworld
katherinem13 has joined #ruby
iamjarvo has joined #ruby
jamesaxl has quit [Ping timeout: 245 seconds]
<JonnieCache> is that the one with The Culture?
vlad_starkov has quit [Ping timeout: 240 seconds]
Uranio has quit [Quit: WeeChat 0.3.8]
maesbn_ has quit [Remote host closed the connection]
jamesaxl has joined #ruby
<Paradox> no
<JonnieCache> i tried to read that on many reccomendations, but it sucked
<Paradox> but he does get into furry weird crap in books 2 and 3
<Paradox> but 1 and 4 are good
maesbn has joined #ruby
<Paradox> and niven is one of the best scifi authors ever
instinkt has quit [Ping timeout: 246 seconds]
<JonnieCache> which is the one with the culture then
axl_ has quit [Ping timeout: 264 seconds]
<Paradox> i dont know
<Paradox> sounds like new age scifi
<Paradox> i like hardcore scifi
pothibo has joined #ruby
<JonnieCache> oh its iaian m banks apparently
<JonnieCache> its a classic space opera thing but it was too classic for me
ToTo has quit [Quit: Leaving...]
<Hanmac> JonnieCache, one of the oldest PTerry Books are the best, do you read "the Carpet People" or " The Nome Trilogy " ?
<JonnieCache> too many names with fucking apostrophes in them
<JonnieCache> Hanmac: yeah read those. i like pretty much everything he does. do you know he has altzheimers/
<Paradox> JonnieCache, you don't like m'ekan'ibab'aernskajoakskajok
seanyo has joined #ruby
bradhe has joined #ruby
friskd has joined #ruby
katherinem13 has quit [Quit: Might IS right.]
<Hanmac> JonnieCache yeah i know ... it seems that it slows his writing ... :/ (and some of the newer books are not SO good than the older ...)
<JonnieCache> well they have changed style a lot, which is inevitable if you want to keep a seires like that going into 50+ books or whatever it is
maesbn has quit [Ping timeout: 246 seconds]
<JonnieCache> the early ones are very simple by compairson
_nitti has quit [Remote host closed the connection]
nateberkopec has joined #ruby
<JonnieCache> all about this guy's books: http://en.wikipedia.org/wiki/Altered_Carbon
<JonnieCache> one day that one will be turned into a movie and hopefully it will be awesome
haxrbyte_ has joined #ruby
philips_ has quit [Excess Flood]
axl_ has joined #ruby
<Hanmac> JonnieCache: i heard there was an movie planed for "The Wee Free Men", but i think the plan was droped :'(
Nosrat has joined #ruby
<JonnieCache> Hanmac: the recent(ish) tv adaptations were good
tjbiddle has joined #ruby
philips_ has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
<Hanmac> JonnieCache: Angua 's Werewolf Form was cool :D
maletor has joined #ruby
<workmad3> no as big as medium jock but bigger than wee jock jock...
haxrbyte has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Client Quit]
mr-rich has joined #ruby
<Hanmac> workmad3: what is the best weapon for monsterhunt? and iron-pan :D
katherinem13 has joined #ruby
<workmad3> Hanmac: assuming you can get it into fairy, yeah
davidcelis has quit [Quit: K-Lined.]
<Hanmac> hm it seems some bot wants to anoy me
ryanlecompte has quit [Remote host closed the connection]
SCommette has joined #ruby
Goles has quit [Remote host closed the connection]
zomgbie_ has quit [Ping timeout: 265 seconds]
maletor has quit [Ping timeout: 240 seconds]
<workmad3> Hanmac: not surprising :)
oivoodoo has quit [Read error: Connection timed out]
<Hanmac> an woll rug could be useful too
axl__ has joined #ruby
Guest____ has joined #ruby
volta has quit [Read error: Operation timed out]
axl_ has quit [Read error: Connection reset by peer]
axl__ is now known as axl_
Goles has joined #ruby
frem has joined #ruby
fantazo has joined #ruby
brtdv has joined #ruby
otters has quit [Ping timeout: 255 seconds]
_nitti has joined #ruby
staafl_alt has joined #ruby
cantonic has joined #ruby
oivoodoo_ has joined #ruby
Goles has quit [Remote host closed the connection]
staafl has quit [Read error: Connection reset by peer]
jamesaxl has quit [Ping timeout: 255 seconds]
yxhuvud2 has joined #ruby
thomasfedb has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 252 seconds]
thomasfedb has joined #ruby
otters has joined #ruby
yxhuvud has quit [Ping timeout: 246 seconds]
skattyadz has joined #ruby
J-_-L has quit [Ping timeout: 260 seconds]
mityaz has joined #ruby
agu10^_ has quit [Read error: Connection reset by peer]
<mityaz> hmm
<mityaz> ;)
stderr- has joined #ruby
<JonnieCache> a woll rog for woll smoth
<mityaz> not very pollite bot...
cardoni has joined #ruby
<mityaz> hmm I'm getting messages from Nosrat, that are kind of: "Notice from Nosrat: Hey mityaz. Get the fuck out of #ruby" and others. I expect it to be some bot, bad bot
Guest____ is now known as asteve
<JonnieCache> wtf
<Xeago> never heard of him before,,
<mityaz> Xeago: I checked it's whois. Some guy from mIrc
bbttxu has joined #ruby
<mityaz> and after each message I get notice from Nosrat: hey mityaz, don't say bullshit on #ruby
<JonnieCache> probably a 13 year old boy with a l33t war script
<mityaz> yep
axl_ has quit [Remote host closed the connection]
<mityaz> but it's annoying...
<Xeago> I think you can report it in #help tho
<JonnieCache> theres always /ignore
axl_ has joined #ruby
<Xeago> I wonder why id on't get it tho
BadProphet has joined #ruby
<mityaz> JonnieCache: thanks, I forgot about /ignore. Now it's ok
rh1n0 has joined #ruby
jamesaxl has joined #ruby
daniel_- has joined #ruby
<Xeago> how is minix3?
chrishunt has quit [Quit: Leaving...]
<wmoxam> Xeago: last I heard its fine aside from a lack of drivers :p
ThaDick has quit [Quit: zzzZZZ ...]
CaptainJet has joined #ruby
kidoz has joined #ruby
asobrasil has joined #ruby
thisirs has joined #ruby
moshee has quit [Ping timeout: 268 seconds]
<Xeago> thx
moshee has joined #ruby
yuike has joined #ruby
bradhe has joined #ruby
Eplemosen has quit [Ping timeout: 246 seconds]
<Xeago> mityaz: got the notice aswell
mucker has quit [Read error: Connection reset by peer]
<JonnieCache> aperios isnt here. who else has ops?
yan_ has joined #ruby
<rking> I want a special spam message, too.
<JonnieCache> banister aint here either...
AnarchoTroll has quit [Ping timeout: 245 seconds]
<yan_> is there a simple way to bundle all gems (including bundler) in a single metagem such that i can just drop a targz file on an internet-disconnected machine and have the environment up and running?
samphippen has quit [Quit: Computer has gone to sleep.]
Rydefalk has quit [Remote host closed the connection]
<JonnieCache> rking: join #bitcoin-otc you get all sorts of fun spam
<mityaz> Xeago: yep, even /ignore does not help ;( I would report it, but don't know how
TBloemink has joined #ruby
<TBloemink> hi there
dr_bob has quit [Quit: Leaving.]
<JonnieCache> mityaz: the people who run freenode are in #help
bradhe has quit [Ping timeout: 248 seconds]
xorigin has quit [Quit: leaving]
Plazma has joined #ruby
cardoni has quit [Quit: Linkinus - http://linkinus.com]
qwerxy has joined #ruby
Nosrat has quit [K-Lined]
<Xeago> there we go :)
TBloemink has left #ruby ["I'll remember this."]
<mityaz> JonnieCache: thank you
<mityaz> Xeago: thx ;)
tjbiddle has joined #ruby
mahmoudimus has joined #ruby
ThaDick has joined #ruby
yuike has quit [Quit: Computer has gone to sleep.]
Plazma has left #ruby [#ruby]
Plazma has joined #ruby
DrShoggoth has joined #ruby
<JonnieCache> yan_: you can download the .gem files for all your gems and install them from those files
<JonnieCache> yan_: theres no tool that does this automatically as far as im aware but itd be very easy to make one
adeponte has joined #ruby
<yan_> JonnieCache: is there a shorter way to gather all the dependencies? or save the .gem files
<JonnieCache> hint: `gem fetch foo` downloads the .gem files
<Xeago> can't you install with bundler into a directory
<Xeago> tar that up and throw it over?
<JonnieCache> yeah theres the `bundle package` command
<JonnieCache> if youre using bundler (which you should be) thats the best solution
d2dchat has quit [Remote host closed the connection]
<yan_> JonnieCache: does 'bundler package' include all those gems that the system already has installed? that's my worry
Eplemosen has joined #ruby
<JonnieCache> it includes everything in gemfile.lock
<JonnieCache> everything in the bundle
<Hanmac> when i say "gem install package" it does install all depends even without bundler ... what do i wrong? :D
tjbiddle has quit [Client Quit]
<yan_> JonnieCache: including those gems' dependencies or just stuff in gemfile?
axl_ has quit [Quit: axl_]
Plazma has left #ruby [#ruby]
invisime has quit [Ping timeout: 252 seconds]
invisime has joined #ruby
schaary has quit [Quit: Leaving.]
Drewch_ has quit [Remote host closed the connection]
Drewch_ has joined #ruby
chimkan has quit [Quit: chimkan]
<JonnieCache> look in gemfile.lock
<JonnieCache> it has all the dependencies. thats the point :)
greasegum has joined #ruby
slash_nick has joined #ruby
Bosma has joined #ruby
lkba has joined #ruby
<workmad3> Hanmac: rubygem's dependency resolution is a 'one at a time' affair rather than the 'resolve as a whole' approach that bundler uses
Goles has joined #ruby
Drewch_ is now known as Drewch
axl_ has joined #ruby
d2dchat has joined #ruby
timonv has quit [Remote host closed the connection]
Goles has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
Goles has joined #ruby
shevy2 has joined #ruby
d2dchat has quit [Remote host closed the connection]
dnstbr has quit [Quit: Computer has gone to sleep.]
davidcelis has joined #ruby
bradhe has joined #ruby
d2dchat has joined #ruby
ryanlecompte has joined #ruby
twinturbo has joined #ruby
hoelzro is now known as hoelzro|away
friskd has quit [Quit: friskd]
<shevy> wheee
tbrock has joined #ruby
d2dchat has quit [Remote host closed the connection]
<shevy> xfce works, konsole works, xchat works, resolution works too. I am happy.
eldariof has joined #ruby
samphippen has joined #ruby
jackiechan0 has joined #ruby
cezar-b has quit [Quit: Leaving]
cezar has joined #ruby
cezar has quit [Client Quit]
cezar has joined #ruby
dakine has joined #ruby
skattyadz has quit [Quit: skattyadz]
mballou has joined #ruby
dnstbr has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
aantix has joined #ruby
<Hanmac> shevy my system had xfce per default (because its an ubuntu studio system) but i prefer gnome classic more ... :/
<shevy> no idea how to start gnome classic
<shevy> this lightdm or whatever was the name confused me
maletor has joined #ruby
<shevy> and unity is an attack against users really
friskd has joined #ruby
banisterfiend has joined #ruby
<Hanmac> lightdm is an display manager like gdm and kdm, but smaller, and yes unity is tablet-crap IMO
volta has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
<yan_> is there a way to make bundler not install gems system-wide, but to ~/.gem?
<yan_> or any local path
rakl has joined #ruby
filipe has quit [Remote host closed the connection]
<Hanmac> yan_ #bundler
dmiller has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
jackiechan0 has quit [Quit: Sto andando via]
Xeago has quit [Ping timeout: 264 seconds]
d2dchat has joined #ruby
<shevy> Hanmac yeah well, for me as a user it's again another thing that I would have to spend time reading documentation
blazes816 has joined #ruby
atmosx has joined #ruby
<shevy> then in one year it's a completely new display manager again
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
adambeynon has joined #ruby
<shevy> I use only xinitrc, anything more complicated than that I want to kill
<Hanmac> shevy for a beginner you dont need to care about the display manager itself
nateberkopec has quit [Quit: Leaving...]
u89 has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 252 seconds]
<shevy> I dont know how to configure it to give me fluxbox!
u89 has joined #ruby
<shevy> hmm or xfce for that matter
Goles has quit [Remote host closed the connection]
rampantmonkey has joined #ruby
atmosx has quit [Client Quit]
Goles has joined #ruby
jgrevich has joined #ruby
freakazoid0223 has joined #ruby
CaptainJet has joined #ruby
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
rampantmonkey has quit [Client Quit]
jonathanwallace has joined #ruby
joeycarmello has quit [Remote host closed the connection]
man40khi_ has joined #ruby
mballou has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
bluOxigen has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
rakm has quit [Max SendQ exceeded]
GeekOnCoffee_ has joined #ruby
joeycarmello has joined #ruby
GeekOnCoffee has quit [Ping timeout: 244 seconds]
GeekOnCoffee_ is now known as GeekOnCoffee
rakm has joined #ruby
rakm has quit [Max SendQ exceeded]
kil0byte has joined #ruby
rakm has joined #ruby
rakm has quit [Max SendQ exceeded]
rakm has joined #ruby
rakm has quit [Max SendQ exceeded]
Goles has quit [Remote host closed the connection]
ascarpino is now known as help
help is now known as ascarpino
nateberkopec has joined #ruby
rakm has joined #ruby
skattyadz has joined #ruby
Goles has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
akemrir has joined #ruby
jivD has joined #ruby
kil0byte_ has quit [Ping timeout: 252 seconds]
xsbeats has quit [Ping timeout: 264 seconds]
chrishunt has joined #ruby
IrishGringo has joined #ruby
the_jeebster has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
gozes has quit [Quit: Lost terminal]
jxf has quit [Ping timeout: 246 seconds]
Synthead has joined #ruby
schaerli has joined #ruby
Synthead has quit [Client Quit]
Synthead has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
gmci has joined #ruby
gmci is now known as Guest62005
akemrir has quit [Quit: WeeChat 0.3.9.2]
etehtsea has quit [Quit: Computer has gone to sleep.]
hakunin has joined #ruby
man40khi_ has quit [Read error: Connection reset by peer]
rakm has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bluOxigen has joined #ruby
alvaro_o has joined #ruby
jackiechan0 has joined #ruby
arietis has joined #ruby
nat2610 has joined #ruby
vlad_sta_ has quit [Ping timeout: 264 seconds]
jsegura has quit [Quit: Leaving]
statarb3 has quit [Ping timeout: 276 seconds]
d2dchat has quit [Remote host closed the connection]
friskd_ has joined #ruby
yan_ has left #ruby [#ruby]
minijupe has joined #ruby
SPYGAME has quit [Quit: Leaving]
F1skr has quit [Quit: WeeChat 0.3.9.2]
wallerdev has joined #ruby
Spami has quit [Quit: Leaving]
friskd has quit [Ping timeout: 260 seconds]
friskd_ is now known as friskd
nickbuff has joined #ruby
gcds has joined #ruby
nickbuff has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 256 seconds]
<gcds> maybe someone could tell my why B class Gets A class values?
cezar has quit [Remote host closed the connection]
<Gate> gcds: because you are using @@
sepp2k1 has joined #ruby
<matti> ;]
<gcds> Gate: how to make variables invidual each classes?
<Gate> gcds: @@ variables are shared through inheritance, the best advice I can give you is don't use them
pkrnj has joined #ruby
KevinSjoberg has joined #ruby
<Gate> gcds: you can use @ instance variables in class methods, wich should eliminate the problem
wallerdev has quit [Quit: wallerdev]
<Gate> so def self.required_attributes; @required_attributes; end
banisterfiend has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 246 seconds]
asaaki has quit [Remote host closed the connection]
<gcds> Gate: thank you
<Gate> gcds: I believe this artcile has a good explaination, and alternatives: http://railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/
ascarpino has quit [Quit: Konversation terminated!]
<Gate> good luck :)
codezombie has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
nateberkopec has joined #ruby
sn0wb1rd has joined #ruby
sn0wb1rd has quit [Remote host closed the connection]
chrishunt has quit [Quit: Leaving...]
sn0wb1rd has joined #ruby
rdark has quit [Quit: leaving]
tvw has quit [Remote host closed the connection]
Vainoharhainen has quit [Quit: Leaving...]
chrishunt has joined #ruby
manizzle has joined #ruby
krawchyk_ has joined #ruby
<gcds> Gate: I modified with getter and setters and now got error `attribute': undefined method `<<' for nil:NilClass
yuike has joined #ruby
yuike has quit [Max SendQ exceeded]
punkrawkR^Home has joined #ruby
kil0byte has quit [Remote host closed the connection]
yuike has joined #ruby
yuike has quit [Max SendQ exceeded]
yuike has joined #ruby
krawchyk has quit [Ping timeout: 240 seconds]
<workmad3> gcds: @required_attributes isn't initialised
<workmad3> gcds: because you're not accessing it through the getter
<gcds> oh
Vert has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
<gcds> thats the best way to initialize variables without calling any method?
<gcds> like I would set initialize but it ist called
<workmad3> gcds: the best way is to always use your getter, even internally in your class
<workmad3> gcds: so your attributes method would use 'required_attributes' rather than '@required_attributes'
friskd has quit [Quit: friskd]
<Poapfel> How do I extract every element of an array even if the array itself contains arrays or to be less confusing: how do I fix this example code? http://sprunge.us/ZaQB?lang=ruby
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
<workmad3> Poapfel: flatten the array
<Poapfel> workmad3: how?
johnmilton has joined #ruby
friskd has joined #ruby
friskd has quit [Read error: Connection reset by peer]
<workmad3> Poapfel: care to take a guess based on my previous comment?
<gcds> workmad3: what if I initialize variable with ||= in setter before modyfing?
<workmad3> gcds: what if you just access your variables through the getter?
<gcds> Poapfel: array.flatten
asteve has quit [Quit: Computer has gone to sleep.]
<Poapfel> gcds: oh, I didn't know this instance method existed
<gcds> workmad3: I know but everytime access variable without any reason
dnstbr has quit [Quit: Computer has gone to sleep.]
<gcds> workmad3: is just waste of time
<gcds> workmad3: i think
<workmad3> gcds: ok, you're now no longer making any sense at all
ThaDick has joined #ruby
OldOats has quit [Quit: Page closed]
k610 has quit [Ping timeout: 244 seconds]
BigO has joined #ruby
qwerxy has quit [Quit: offski]
robustus has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<workmad3> gcds: so just trust me on this... the simplest, easiest, least time consuming, least annoying, best way to do what you want is to *just use the getter method you've created for this purpose*
ninegrid has quit [Ping timeout: 255 seconds]
Mkman has joined #ruby
<gcds> workmad3: ohhhh gosh i am so dump :DDDDDDD
qwerxy has joined #ruby
<gcds> workmad3: if replace @variable with getter it will be called :D
<workmad3> gcds: yes
<gcds> gosh I am dump..
<workmad3> gcds: s/dump/dumb/ :P
jslowe has joined #ruby
<workmad3> right, home time
chrishunt has quit [Quit: Leaving...]
qwerxy has quit [Client Quit]
ninegrid has joined #ruby
chrishunt has joined #ruby
<gcds> workmad3: now instance method doenst get anything :(
<gcds> just nil
c0rn has joined #ruby
timonv has joined #ruby
<gcds> oh self.class
arya_ has left #ruby [#ruby]
slainer68 has quit [Remote host closed the connection]
Luceo has quit [Ping timeout: 276 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
gcds has quit [Read error: Connection reset by peer]
Amirh has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
seanyo has quit [Read error: Connection reset by peer]
gcds has joined #ruby
JohnBat26 has quit [Ping timeout: 252 seconds]
Jasko2 has joined #ruby
pcarrier has quit []
spike|spiegel has joined #ruby
twinturbo has quit [Quit: twinturbo]
dakine has quit [Quit: Leaving]
jackiechan0 has quit [Quit: Sto andando via]
greasegum has quit [Ping timeout: 264 seconds]
Jasko has quit [Ping timeout: 260 seconds]
LEMTZAS is now known as Lemtzas
ninegrid has quit [Ping timeout: 276 seconds]
m_3 has quit [Remote host closed the connection]
mascool has joined #ruby
tjasko__ has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
sn0wb1rd_ has joined #ruby
spike|spiegel has quit [Ping timeout: 260 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
sn0wb1rd has quit [Read error: Operation timed out]
sn0wb1rd_ is now known as sn0wb1rd
m_3 has joined #ruby
adeponte has quit [Remote host closed the connection]
Jasko2 has quit [Ping timeout: 255 seconds]
artur_x651231 has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
adeponte has joined #ruby
JohnBat26 has joined #ruby
axl__ has joined #ruby
kpshek has quit []
Floydzy has quit [Quit: Floydzy]
kil0byte has joined #ruby
ninegrid has joined #ruby
robbyoconnor has joined #ruby
arya has joined #ruby
JohnBat26 has quit [Client Quit]
wallerdev has joined #ruby
arya has left #ruby [#ruby]
gridaphobe has joined #ruby
axl_ has quit [Ping timeout: 255 seconds]
axl__ is now known as axl_
bricker has joined #ruby
Cicloid has joined #ruby
spike|spiegel has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
kpshek has joined #ruby
arya has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
cdt has quit [Ping timeout: 268 seconds]
shtirlic has quit [Remote host closed the connection]
tomsthumb has joined #ruby
Trioke has joined #ruby
haxrbyte_ has quit [Ping timeout: 260 seconds]
kidoz has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
Slivka has joined #ruby
<gcds> hmm maybe someone knows how to compare value against array of regex?
clj_newb has joined #ruby
arya has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
jrist is now known as jrist-afk
headius has quit [Quit: headius]
stephenjudkins has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
Dreamer3 has joined #ruby
nkts_ has joined #ruby
icole has joined #ruby
voodoofish430 has joined #ruby
h4mz1d has joined #ruby
gcds has quit [Read error: Connection reset by peer]
shiin has joined #ruby
gcds has joined #ruby
<jivD> array.detect{|a| a =~ value} gcds ?
jaygen has quit [Remote host closed the connection]
berserkr has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
<gcds> jivD: Now I searching the way how to check value against array of mix of string or regex
krawchyk_ has quit [Remote host closed the connection]
krawchyk has joined #ruby
oivoodoo_ has quit [Read error: Connection timed out]
d2dchat has joined #ruby
sailias has joined #ruby
cdt has joined #ruby
oivoodoo has joined #ruby
answer_42 has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
answer_42 has joined #ruby
<jivD> array.detect{|a| Regexp.new(a) =~ value}
<jivD> if a is a string it'll convert it to regex
jxf has joined #ruby
<gcds> but the problem is that Regex would create regex which doesnt have ^ and $
ltsstar has joined #ruby
asteve has joined #ruby
<jivD> so do that as part of the loop?
qwerxy has joined #ruby
heftig has joined #ruby
<jivD> if its a str, wrap it in ^ $ and create a new regex
answer_42 has quit [Write error: Connection reset by peer]
<gcds> so Regexp.new('Name') =~ "Name" will return false
answer_42 has joined #ruby
<gcds> yeah
<gcds> thank yo
pkrnj has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
d2dchat has quit [Read error: Connection reset by peer]
answer_42 has left #ruby [#ruby]
Mon_Ouie has joined #ruby
maasha has quit [Ping timeout: 245 seconds]
gcds has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
swarley| has joined #ruby
zomgbie has joined #ruby
gcds has joined #ruby
swarley- has joined #ruby
Neomex has quit [Client Quit]
nasso has quit [Quit: No Ping reply in 180 seconds.]
nasso has joined #ruby
berserkr has joined #ruby
gcds has quit [Read error: Connection reset by peer]
swarley| has quit [Ping timeout: 244 seconds]
gcds has joined #ruby
yuike has quit [Quit: Computer has gone to sleep.]
answer_42 has joined #ruby
pyr0commie has joined #ruby
nasso has quit [Client Quit]
nasso has joined #ruby
swarley has joined #ruby
<swarley> Really open up a lot of possibilities for commands
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
jaygen has joined #ruby
swarley- has quit [Ping timeout: 246 seconds]
Leitz has joined #ruby
zomgbie has quit [Ping timeout: 240 seconds]
qwerxy has quit [Quit: offski]
dangerousdave has joined #ruby
BadProphet has quit [Remote host closed the connection]
swarley| has joined #ruby
atno|AFK is now known as atno
yuike has joined #ruby
<mkillebrew> Are hash keys always ordered by insert, or is it somewhat arbitrary?
synthetix has quit [Remote host closed the connection]
yuike has quit [Remote host closed the connection]
<swarley|> Yes they are ordered
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
swarley has quit [Ping timeout: 246 seconds]
swarley has joined #ruby
<Leitz> If I'm trying to learn Ruby basics, and learn best from a book and a keyboard, is the 2001 Thomas and Hunt "Programming Ruby" still good for Ruby 1.9?
<gcds> I have strange problems with regexp maybe someone could look? https://gist.github.com/4113047
<canton7> mkillebrew, in 1.9 they are
<canton7> 1.8 = unordered
<Hanmac> 1.8 should not be used anymore
zomgbie has joined #ruby
<Leitz> 1.8 is standard on some enterprise Operating Systems.
<lectrick> I saw http://www.antiifcampaign.com/ and due to the lack of any examples I have to wonder if this is a spoof site? :O
<canton7> gcds, p value.class
<Hanmac> Leitz that is no excuse
<gcds> canton7: String
swarley| has quit [Ping timeout: 252 seconds]
alexim has joined #ruby
<canton7> ah misread it anyway
swarley has quit [Ping timeout: 246 seconds]
mseidl has joined #ruby
jamesaxl has quit [Ping timeout: 268 seconds]
jamesaxl has joined #ruby
<canton7> gcds, p Regexp.new(valid_value) =~ value
<mseidl> best site/ruby tutorial?
vlad_starkov has joined #ruby
<gcds> canton7: 0
swarley has joined #ruby
<gcds> wtf 1.9.2p320 :014 > /^yes$/ =~ "yes"
skattyadz has quit [Quit: skattyadz]
<gcds> => 0
<canton7> that's right...
<gcds> canton7: yes
<gcds> so why array detect fails..
<gcds> if is_valid :DDDDDD
dnstbr has joined #ruby
<gcds> should be unless
<canton7> aha
<canton7> so simple :P
pogo has joined #ruby
J-_-L has joined #ruby
<gcds> canton7: thanks for helping
<mseidl> whats the best/recommended site for learning ruby?
qwerxy has joined #ruby
skattyadz has joined #ruby
pkrnj has joined #ruby
gyre008 has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 276 seconds]
clj_newb_ has joined #ruby
<mseidl> atno: thanks
gcds has quit [Quit: gcds]
apeiros_ has joined #ruby
skattyadz has quit [Client Quit]
volta has quit [Remote host closed the connection]
qwerxy has quit [Client Quit]
arturaz has quit [Remote host closed the connection]
<canton7> why's poignent guide was popular for a while
<mseidl> is there a word for ruby like pythonic?
<canton7> ''ruby'
atno is now known as atno|AFK
<canton7> ruby-like also maybe? depending on context
Nisstyre has joined #ruby
<mseidl> rubonic!
cdt has quit [Quit: Ex-Chat]
adeponte has quit [Remote host closed the connection]
tenmilestereo has joined #ruby
etcetera has quit [Quit: Computer has gone to sleep.]
nicolaerau has quit [Ping timeout: 260 seconds]
clj_newb_ has quit [Ping timeout: 276 seconds]
etcetera has joined #ruby
zomgbie has quit [Ping timeout: 256 seconds]
zomgbie has joined #ruby
EPIK has joined #ruby
casheew has quit [Read error: Connection reset by peer]
h4mz1d has quit [Ping timeout: 240 seconds]
alex__c2022 has quit [Quit: alex__c2022]
vlad_starkov has quit [Ping timeout: 246 seconds]
casheew has joined #ruby
mityaz has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
instinkt has joined #ruby
rh1n0 has joined #ruby
qwerxy has joined #ruby
jackiechan0 has joined #ruby
havenn has quit [Remote host closed the connection]
qwerxy has quit [Client Quit]
havenn has joined #ruby
casheew has quit [Read error: Connection reset by peer]
krawchyk has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jekotia has joined #ruby
kpshek has quit []
casheew has joined #ruby
Elhu has joined #ruby
J-_-L has quit [Quit: Leaving.]
jphpsf has quit [Remote host closed the connection]
hotovson has quit [Remote host closed the connection]
Goles has quit [Remote host closed the connection]
swarley_ has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
jphpsf has joined #ruby
Goles has joined #ruby
Virunga has joined #ruby
DanBoy has joined #ruby
musl has quit [Quit: WeeChat 0.3.9]
musl has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
ascarpino has joined #ruby
friskd has joined #ruby
atno|AFK is now known as atno
ChampS666 has joined #ruby
pothibo has quit [Quit: pothibo]
slainer68 has joined #ruby
joeycarmello has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
swarley has quit [Disconnected by services]
kpshek has joined #ruby
swarley has joined #ruby
maletor has joined #ruby
swarley has quit [Disconnected by services]
swarley_ is now known as swarley
nateberkopec has quit [Quit: Leaving...]
Norrin has joined #ruby
osvico has joined #ruby
ltsstar has quit [Quit: ltsstar]
freakazoid0223 has quit [Quit: Leaving]
mseidl has quit [Quit: leaving]
_bart has joined #ruby
qwerxy has joined #ruby
nateberkopec has joined #ruby
qwerxy has quit [Client Quit]
dmiller has quit [Remote host closed the connection]
codecaster has joined #ruby
codecaster has quit [Client Quit]
h8R has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
swarley| has joined #ruby
asteve has quit [Quit: Computer has gone to sleep.]
raunicolae has joined #ruby
havenn has joined #ruby
havenn has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 265 seconds]
havenn has joined #ruby
chrishunt has quit [Quit: Leaving...]
atno is now known as atno|AFK
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
brianpWins has quit [Quit: brianpWins]
slash_nick has quit [Quit: leaving]
swex has quit [Read error: Connection reset by peer]
chrishunt has joined #ruby
bbttxu has quit [Quit: bbttxu]
pkrnj has joined #ruby
clj_newb has joined #ruby
arturaz has joined #ruby
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chrishunt has quit [Client Quit]
kirun has quit [Read error: Operation timed out]
alee___ has joined #ruby
ryanf has quit [Quit: leaving]
knirhs has quit [Read error: Connection reset by peer]
twinturbo has joined #ruby
axl_ has quit [Quit: axl_]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
clj_newb has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
atno|AFK is now known as atno
clj_newb has joined #ruby
chrishunt has joined #ruby
moshee has quit [Remote host closed the connection]
hydrozen has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby
joeycarmello has quit [Client Quit]
<bwlang> mseidl: "idomatic" is language neutral...
<bwlang> err.. idiomatic
Tuxist has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
osvico has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
awaage has joined #ruby
rampantmonkey has joined #ruby
lolmaus has quit [Client Quit]
seich is now known as Seich
jackiechan0 has quit [Quit: Sto andando via]
swex has joined #ruby
xsbeats_ has joined #ruby
xsbeats_ has quit [Client Quit]
rampantmonkey has quit [Client Quit]
xsbeats has joined #ruby
pcarrier has joined #ruby
Amirh has quit [Quit: Leaving.]
schaerli has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 240 seconds]
shtirlic has joined #ruby
mercwithamouth has joined #ruby
Elhu has joined #ruby
jekotia has quit [Ping timeout: 246 seconds]
Guest62005 has quit [Read error: Operation timed out]
johnny_ has joined #ruby
nat2610 has quit [Quit: Leaving.]
<johnny_> hi
atno is now known as atno|AFK
<johnny_> I'm having some problems with my gem installation. Any chance I can convince someone here to help?
zooz_ has joined #ruby
nat2610 has joined #ruby
oposomme has joined #ruby
<bwlang> johnny_: just ask… try gem install foo
<johnny_> so here's the problem
<johnny_> several of my installed gems are not working anymore
<johnny_> for eample rack-test
pkrnj has quit [Quit: Computer has gone to sleep.]
<johnny_> gem which rack/test gives me the path to the gem
dnstbr has quit [Quit: Computer has gone to sleep.]
<johnny_> but ruby -rrack/test -e 1
<johnny_> gives me /home/jacky/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- rack/test (LoadError)
<johnny_> from /home/jacky/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
<johnny_> i can't figure out what the problem might be
<johnny_> i tried reinstalling
<johnny_> and i looked at the file permissions
<johnny_> they all seem ok
jrist-afk is now known as jrist
<johnny_> any ideas?
kjellski has joined #ruby
minijupe has quit [Quit: minijupe]
banisterfiend has joined #ruby
<bwlang> maybe you're not running the ruby you think you're running… which ruby?
havenn_ has joined #ruby
Hanmac has joined #ruby
<johnny_> it's 1.9.3
<johnny_> it's the only one i have installed afaik
dmiller has joined #ruby
<bwlang> which 1.9.3 though… the system one or the rvm one.
sailias has quit [Quit: Leaving.]
Seich is now known as Seichleon
Seichleon is now known as Seich
<johnny_> i removed the old installation of ruby (1.8.6) a while ago and switched to rvm, but two days ago was the first time i noticed gems not working
<bwlang> what about gem - which gem is that ?
Raboo has quit [Ping timeout: 246 seconds]
<johnny_> 1.8.24
<bwlang> johnny_: if that's not it, I don't know.
Myk267 has joined #ruby
printesoi has joined #ruby
<johnny_> i can't figure out why some gems are working and others are not
gcds has joined #ruby
<johnny_> they're all installed in the same parent directory
havenn has quit [Ping timeout: 252 seconds]
<bwlang> johnny_: i mean which one on your filesystem - could be /usr/bin/gem or ~/bin/gem or some such.
bradhe has quit [Remote host closed the connection]
<johnny_> oh, /usr/bin/gem is a soft link to /home/jacky/.rvm/rubies/ruby-1.9.3-p194/bin/gem
chrishunt has quit [Quit: Leaving...]
<ner0x> When processing .erb files is it possible to stop processing? With some sort of __END__ command, etc?
gmci has joined #ruby
joeycarmello has joined #ruby
gmci is now known as Guest59035
tenmilestereo has quit [Ping timeout: 246 seconds]
sekyourbox has joined #ruby
chrishunt has joined #ruby
<sekyourbox> so, I'm working on a project for Diabold, and they want an easier way to rigg the voting machines. Can somone help me with this code?
d34th4ck3r has joined #ruby
h4mz1d has joined #ruby
printesoi has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: Leaving...]
<sekyourbox> diebold
Guest59035 has quit [Ping timeout: 260 seconds]
Raboo has joined #ruby
manizzle has quit [Ping timeout: 252 seconds]
etcetera has quit [Quit: Computer has gone to sleep.]
printesoi has joined #ruby
gmci_ has joined #ruby
swex has quit [Read error: Connection reset by peer]
<printesoi> if someone answered to my question, can you please repeat, because I was disconnected from the internet
atno|AFK is now known as atno
dedis has quit [Read error: Operation timed out]
grzywacz has quit [Quit: :wq]
chrishunt has quit [Quit: Leaving...]
clj_newb has quit [Ping timeout: 248 seconds]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
swex has joined #ruby
adeponte has joined #ruby
etcetera has joined #ruby
gmci_ has quit [Read error: Operation timed out]
berserkr has quit [Ping timeout: 260 seconds]
casheew has quit [Read error: Connection reset by peer]
answer_42 has quit [Quit: WeeChat 0.3.9]
brianpWins has joined #ruby
casheew has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
Leitz has quit [Quit: ciao!]
gmci_ has joined #ruby
diegoviola has joined #ruby
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
<d34th4ck3r> can you repeat the question printesoi ?
Slivka has joined #ruby
eldariof has quit []
shtirlic has quit [Remote host closed the connection]
diegovio1a has joined #ruby
grzywacz has quit [Quit: :wq]
samuel02 has joined #ruby
chrishunt has joined #ruby
<printesoi> why the following code works: a = [1,2,3]
<printesoi> a & b = [2,3,4]
<printesoi> and it returns [2,3]
<printesoi> & doesn't have greater priority than = ?
beiter has quit [Quit: beiter]
<d34th4ck3r> what is b ?
clj_newb has joined #ruby
<apeiros_> printesoi: precedence
<havenn_> Was surprised to see Proc used in "Naive Implementation" of Futures article, so I implemented it with &block. Any thoughts on preferred method?: https://gist.github.com/4113840
<apeiros_> seems that & indeed has a lower precedence than =
vlad_starkov has quit [Ping timeout: 240 seconds]
<apeiros_> havenn_: yield is faster than block.call
<apeiros_> havenn_: you could use Thread.new(&future), that again would be more efficient than yield
<apeiros_> (you can use Thread#value to get the return value)
workmad3 has joined #ruby
<havenn_> apeiros_: Hmmm, didn't think of that... Interesting!
ascarpino has left #ruby ["Konversation terminated!"]
<apeiros_> havenn_: Thread#value will also block if the thread isn't done yet
<apeiros_> so you can save yourself the .join
<printesoi> I am now reading the Ruby Programming Language, and it's written that & has a greater precedence than =
bradhe has joined #ruby
<apeiros_> don't know how to do the .ready?, though :-/
diegovio1a has quit [Ping timeout: 268 seconds]
<printesoi> this means that that code must only give an error
diegovio1a has joined #ruby
<Mon_Ouie> Are you sure it was "&" and not "&&"?
pkrnj has joined #ruby
<swarley> Yeah, its not often you see a bitwise and use in ruby
<havenn_> apeiros_: Much nicer with the direct #value call to @thread. Thanks!
<printesoi> both & and && have greater precedence than =
<swarley> That's because they're methods
diegoviola has quit [Ping timeout: 245 seconds]
<swarley> And ruby wants to get the result of your method chain before it does any assignments
caleb_io has joined #ruby
<Mon_Ouie> && isn't a method, just an operator; if it were a method, it would have to evaluate the right hand side
<apeiros_> printesoi: left/right probably matters too
<ninjanoise> quit
ninjanoise has quit [Quit: leaving]
alee___ is now known as alee-
<apeiros_> i.e., a = b & c # --> a = (b & c)
timonv has joined #ruby
<apeiros_> but a & b = c # --> a & (b = c)
kkh has quit [Quit: Good bye!]
timonv has quit [Read error: Connection reset by peer]
<Mon_Ouie> Isn't that just equal precedence with left associativity?
kkh has joined #ruby
_alejandro has quit [Remote host closed the connection]
DanBoy has quit [Read error: Connection reset by peer]
<swarley> I always just use parens if i can't tell what the code does immediately at a glance
<printesoi> apeiros_: thanks, I understand now
sekyourbox has left #ruby [#ruby]
etcetera has quit [Quit: Computer has gone to sleep.]
Guest92676 has quit [Quit: Guest92676]
diegovio1a has quit [Ping timeout: 246 seconds]
<apeiros_> Mon_Ouie: no idea. I was never good about precedence rules
timonv has joined #ruby
axl_ has joined #ruby
berserkr has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<swarley> I understand precedence, I just can't explain it
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
vlad_starkov has joined #ruby
yoklov has joined #ruby
timonv has joined #ruby
macabre has quit [Remote host closed the connection]
<workmad3> swarley: () > *, what more do you need? :)
nomenkun has joined #ruby
Dreamer3 has quit [Ping timeout: 265 seconds]
yshh has quit [Remote host closed the connection]
nanderoo has quit [Quit: Leaving.]
geekbri has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
dmiller has quit [Remote host closed the connection]
etcetera has joined #ruby
alee- has quit [Ping timeout: 276 seconds]
Dreamer3 has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
macabre has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
alee- has joined #ruby
phortx has joined #ruby
ffranz has quit [Quit: Leaving]
w400z has joined #ruby
phortx has left #ruby ["Leaving"]
chrishunt has quit [Quit: Leaving...]
raunicolae has quit [Ping timeout: 240 seconds]
jaygen has quit [Remote host closed the connection]
ThaDick has quit [Quit: I'm outta here!]
qwerxy has joined #ruby
jaygen has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
chrishunt has joined #ruby
vlad_sta_ has joined #ruby
jaygen has quit [Read error: Operation timed out]
jamesaxl has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
tjasko__ has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
raunicolae has joined #ruby
Grieg has quit [Quit: laterz! :D]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jlast_ has joined #ruby
kirun has joined #ruby
oivoodoo has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 252 seconds]
qwerxy has quit [Quit: offski]
cascalheira has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
bricker_ has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
jordan_ has joined #ruby
jordan_ has quit [Remote host closed the connection]
casheew has joined #ruby
joeycarmello has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 260 seconds]
zomgbie has quit [Ping timeout: 248 seconds]
love_color_text_ has quit [Remote host closed the connection]
onibox has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
dakine has joined #ruby
vlad_sta_ has quit [Ping timeout: 260 seconds]
babinho has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
joeycarmello has joined #ruby
<gcds> Maybe someone could look why line 42 doesnt set value and somehow it gets replaced by default one? https://gist.github.com/4114221
sepp2k1 has quit [Read error: Connection reset by peer]
_alejandro has joined #ruby
<heftig> gcds: use @base.instance_variable_...
<heftig> or wait, nevermind
mark_locklear has quit [Remote host closed the connection]
<heftig> your code is weird
IrishGringo has joined #ruby
c_melder is now known as melder
dakine has quit [Quit: Leaving]
yshh has joined #ruby
<heftig> gcds: i think you're confusing the class object and the instance objects
invisime has quit [Quit: Leaving.]
miss0r has joined #ruby
<heftig> saving the attributes in a hash would probably be better and save you all this instance variable ugliness
<Cadwallion> I can't get over XML, XAML, and XMAL in the same source
<miss0r> I am looking for a respectable ruby programmer. I am offering a part time job. /msg me if you are interrested.
Cicloid has quit [Remote host closed the connection]
<heftig> Cadwallion: that too
<shevy> I find that I often need way too many lines of code to solve something
Goles has quit [Remote host closed the connection]
kjellski_ has joined #ruby
mikepack has quit [Remote host closed the connection]
johnny_ has quit [Quit: Ex-Chat]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
mikepack has joined #ruby
kjellski has quit [Ping timeout: 268 seconds]
_nitti has quit [Remote host closed the connection]
headius has joined #ruby
jackiechan0 has joined #ruby
ij has quit [Ping timeout: 255 seconds]
chrismcg is now known as zz_chrismcg
codeFiend has joined #ruby
<gcds> Cadwallion: thanks for pointing out :D that all should be xmal
mikepack has quit [Remote host closed the connection]
alexwh has left #ruby [#ruby]
jaygen has joined #ruby
jlast_ has quit [Remote host closed the connection]
jlast has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
zooz_ has quit [Quit: Leaving IRC]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
staafl_alt has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
w400z has joined #ruby
dmiller has quit [Remote host closed the connection]
etcetera has quit [Quit: Computer has gone to sleep.]
caleb_io has quit [Quit: caleb_io]
arya_ has joined #ruby
qwerxy has joined #ruby
Nisstyre has quit [Read error: Operation timed out]
spike|spiegel has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 244 seconds]
spike|spiegel has joined #ruby
dakine has joined #ruby
dangerousdave has joined #ruby
dakine has quit [Client Quit]
guillaum has joined #ruby
ner0x has quit [Quit: Leaving]
gcds has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
gabrielrotbart has joined #ruby
babinho has joined #ruby
gcds has joined #ruby
Jasko has joined #ruby
kpshek has quit []
oposomme has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 246 seconds]
CamonZ_ has joined #ruby
linoj has quit [Read error: Operation timed out]
micsha has joined #ruby
atno is now known as atno|AFK
<micsha> ok, so quick question, I just want to know what this is called so I can look it up. I've come across a method that is defined like this
<micsha> def method(*arg)
<micsha> arg1, arg2 = arg
<micsha> end
swarley| has quit [Ping timeout: 244 seconds]
arya_ has quit [Ping timeout: 244 seconds]
<micsha> what is the "*arg" called?
thisirs has quit [Remote host closed the connection]
<micsha> or more specifically, what is the * in front of the arg called?
guillaum has quit [Ping timeout: 244 seconds]
<micsha> I just need a name that I can look up.
<dermot> splat
<dermot> micsha:
[Neurotic] has joined #ruby
Tuxist has quit [Remote host closed the connection]
<micsha> is it a method or something else?
<Hanmac> "splat operator" it turns an Array into an argumentlist and versa
gabrielrotbart has quit [Remote host closed the connection]
snearch has joined #ruby
<Hanmac> micsha its an interpreter feature
<micsha> so I wont find it in the ruby core language documentation?
hoelzro|away is now known as hoelzro
dmiller has joined #ruby
kpshek has joined #ruby
jphpsf has quit [Quit: Leaving]
mengu has quit [Quit: Konversation terminated!]
jphpsf has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
staafl_alt has joined #ruby
arya has joined #ruby
jaygen has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby
arturaz has quit [Remote host closed the connection]
asteve has joined #ruby
<micsha> Me: "no body would name that a 'splat'... wow, they named it the splat operator"
swarley has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
printesoi has quit [Quit: WeeChat 0.3.9.1]
<micsha> Thanks everyone.
pavilionXP has joined #ruby
raunicolae has quit [Ping timeout: 260 seconds]
jackiechan0 has quit [Quit: Sto andando via]
swarley has joined #ruby
flip_digits has quit [Read error: Connection reset by peer]
jaygen has joined #ruby
BBonifield has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
asteve has quit [Client Quit]
blacktulip has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
gabrielrotbart has joined #ruby
<BBonifield> So I'm getting a weird control level, ruby level, and c level backtrace in my app when i try to exec shell commands (tar in this case) using ``. The error reads: activesupport-3.1.0/lib/active_support/core_ext/kernel/agnostics.rb:7: [BUG] native_cond_broadcast: Resource temporarily unavailable (EAGAIN). Some quick googling makes it seem close to http://bugs.ruby-lang.org/issues/5155. Also, the machine in question is runing osx lion, whi
<BBonifield> is what the bug was about.
<BBonifield> thoughts?
stephenjudkins has joined #ruby
<CamonZ_> hi, is there a way to alias an array to different params in a method call
bricker has joined #ruby
<CamonZ_> and have as a last param another value not in the array
Cicloid has joined #ruby
nomenkun has quit [Remote host closed the connection]
qwerxy has joined #ruby
alexshenoy has joined #ruby
dakine has joined #ruby
axl__ has joined #ruby
bricker_ has quit [Ping timeout: 260 seconds]
miss0r has quit []
Elhu has quit [Quit: Computer has gone to sleep.]
<Sou|cutter> camonz_: maybe take a dup of your source array, add an element to it, then pass it to your method with a splat?
monkegjinni has quit [Remote host closed the connection]
<CamonZ_> Sou|cutter: thanks, going to do that
joeycarmello has quit [Quit: Leaving...]
axl_ has quit [Ping timeout: 260 seconds]
axl__ is now known as axl_
dorei has joined #ruby
etcetera has joined #ruby
maletor has joined #ruby
timonv has quit [Remote host closed the connection]
<micsha> BBonifield: do a ruby -v on your installation
jslowe has quit [Quit: Leaving]
phantasm66 has quit [Quit: *sleeeeep*]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
bwlang has left #ruby [#ruby]
Mkman has quit [Quit: Lost terminal]
<micsha> it appears to have been fixed in rev 32846, if your ruby install is older than that, it might be the problem.
hoelzro is now known as hoelzro|away
theRoUS has quit [Ping timeout: 255 seconds]
gabrielrotbart has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
emptyflask has joined #ruby
workmad3 has joined #ruby
macabre has quit [Remote host closed the connection]
ChampS666 has quit [Ping timeout: 246 seconds]
ij has joined #ruby
<micsha> if you have a function like
<micsha> def foo(*arg)
<micsha> arg1, arg2 = arg
<micsha> end
<micsha> is that commonly refered to as 'unpacking' arguments?
etcetera has quit [Ping timeout: 245 seconds]
ossareh has joined #ruby
nkts_ has quit []
<apeiros_> s/function/method/
zomgbie has joined #ruby
<apeiros_> unsplat
jeffreybaird has quit [Quit: jeffreybaird]
rmcafee has quit [Quit: rmcafee]
ChampS666 has joined #ruby
<BBonifield> micsha: yeah, i'm at 32553
dangerousdave has quit [Quit: Leaving...]
etcetera has joined #ruby
skattyadz has joined #ruby
<micsha> oh, I mean the arg1, arg2 = arg, commonly known as unpacking or is that just what this tutorial is telling me?
<BBonifield> i'm wondering if switching to 1.9.3 will simply fix it
mmitchell has quit [Remote host closed the connection]
<micsha> if it doesn't break anything you might just try it.
ChampS666 has quit [Client Quit]
zomgbie has quit [Ping timeout: 260 seconds]
mmitchell has joined #ruby
havenn_ has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 276 seconds]
havenn has joined #ruby
snearch has quit [Quit: Verlassend]
jxf has quit [Ping timeout: 246 seconds]
LouisGB has quit [Ping timeout: 246 seconds]
Pip has joined #ruby
emergion has joined #ruby
<Pip> Anyway to make irb colorful?
etcetera has quit []
_nitti has joined #ruby
havenn_ has joined #ruby
emergion has quit [Client Quit]
atmosx has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<d34th4ck3r> does anyone know how to use open-uri if I am behind proxy ? :-/
micsha has quit [Ping timeout: 255 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
_nitti has quit [Ping timeout: 240 seconds]
[1]micsha has joined #ruby
micsha has joined #ruby
<atmosx> d34th4ck3r: you need to proxy the request.
v0n has quit [Ping timeout: 246 seconds]
etcetera has joined #ruby
dmiller has quit [Remote host closed the connection]
jds_ has joined #ruby
jxf has joined #ruby
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
phantasm66 has joined #ruby
banseljaj is now known as imami|afk
nari has joined #ruby
ner0x has joined #ruby
hsbt_away is now known as hsbt
osvico has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
gabrielrotbart has joined #ruby
jaygen has quit [Ping timeout: 252 seconds]
Virunga has quit [Remote host closed the connection]
headius has quit [Quit: headius]
ikaros has joined #ruby
<rking> Trying to make this better (has to be Ruby 1.8):
<rking> %w(bhc bde x z a).sort{|a,b| len_cmp = a.length <=> b.length; len_cmp != 0 ? len_cmp : a <=> b }
the_jeebster has quit [Quit: Leaving.]
<rking> %w(bhc bde x z a).group_by(&:length).sort_by{|e| e[0]}.map{|e| e[1].sort!}.flatten
<havenn_> rking: 1.8: boo hiss!
arya has quit [Ping timeout: 244 seconds]
<rking> hehe
<rking> I'll even take a nice 1.9 to keep in my pocket for when I get this think flipped to 1.9
pkrnj has quit [Quit: Computer has gone to sleep.]
joeycarmello has joined #ruby
rcsheets has joined #ruby
apok has joined #ruby
chimkan has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
<rking> English version: sort by length with secondary sort lexically
arya has joined #ruby
<BBonifield> micsha: yeah, that's the route i'm headed
qwerxy has quit [Quit: offski]
phantasm66 has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
clj_newb has quit [Ping timeout: 255 seconds]
dmiller has quit [Remote host closed the connection]
nazty has quit [Ping timeout: 252 seconds]
clj_newb has joined #ruby
LouisGB has joined #ruby
Xeago has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 260 seconds]
bapa has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 244 seconds]
Zolrath has joined #ruby
nazty has joined #ruby
ninegrid has quit [Ping timeout: 252 seconds]
the_jeebster has joined #ruby
hydrozen has quit [Quit: Computer has gone to sleep.]
swarley has joined #ruby
arya has joined #ruby
emptyflask has quit [Remote host closed the connection]
jrist is now known as jrist-afk
twopoint718 has quit [Ping timeout: 248 seconds]
pcarrier has quit []
matrixis1 has joined #ruby
hotovson_ has joined #ruby
samuel02 has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 256 seconds]
jlast has quit [Remote host closed the connection]
staafl_alt has quit [Ping timeout: 252 seconds]
<Cadwallion> rking: define 'better' :P
monkegj__ has quit [Remote host closed the connection]
<Cadwallion> %w(bhc bde x z a).sort { |a,b| (len = a.length <=> b.length) == 0 ? a <=> b : len }
<Cadwallion> is one line
<Cadwallion> but 'better' ?
* Cadwallion shrugs
matrixis1 is now known as matrixise
w400z has quit []
ninegrid has joined #ruby
BigO has quit [Remote host closed the connection]
[1]micsha has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Chicks dig it]
micsha has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Would you like to know more?]
CamonZ_ has quit [Quit: Linkinus - http://linkinus.com]
dmiller has joined #ruby
_alejandro has quit [Remote host closed the connection]
CamonZ has quit [Quit: Linkinus - http://linkinus.com]
timonv has joined #ruby
cakehero has joined #ruby
<dorei> Cadwallion: the one liner is art :)
onibox has quit [Quit: leaving]
<RubyPanther> I can hear the word "line" being tortured from here
osvico has joined #ruby
<dorei> lol
<apeiros_> rking: sort_by
<apeiros_> %w(bhc bde x z a).sort_by { |e| [e.length, e] }
<havenn_> %w(bhc bde x z a).sort_by { |word| [word.length, word] }
<havenn_> apeiros_: Beaten...
<havenn_> Boo hiss.
<apeiros_> nyaahahaha
jaygen has joined #ruby
stopbit has quit [Quit: Leaving]
chimkan has quit [Quit: chimkan]
<Cadwallion> bah, sort_by is expensive compared to sort ;)
emptyflask has joined #ruby
phantasm66 has joined #ruby
love_color_text_ has joined #ruby
love_color_text_ has quit [Changing host]
love_color_text_ has joined #ruby
<Pip> WARNING: You don't have /root/.gem/ruby/1.9.1/bin in your PATH,
<Pip> gem executables will not run.
mmitchell has quit [Remote host closed the connection]
u89 has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
kpshek has quit []
love_color_text_ has quit [Ping timeout: 252 seconds]
<apeiros_> Cadwallion: um, yeah, no
lordnaz has joined #ruby
<havenn_> Pip: What Ruby do you have installed (ruby -v)? What rubygems (gem -v)? Are you using a Ruby version manager (rvm, chruby, rbenv, rbfu)?
mercwithamouth has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<Pip> ruby 1.9.3p327 (2012-11-10 revision 37606)
Vert has joined #ruby
<Pip> havenn_, no, I don't use Ruby version manager
<Pip> and there is only one ruby installed
mercwithamouth has joined #ruby
<havenn_> Pip: Have you set $RUBY, $RUBY_ENGINE, $RUBY_VERSION and $GEM_ROOT?
<Pip> havenn_, Should I?
<atmosx> Pip: installed manually or through package manager?
<Pip> latter
<havenn_> You mean former, no? Manually.
<Pip> no, package manager
<havenn_> Oh, nvm - I misread
<havenn_> Pip: Gotcha. Yum? Apt-get?
<Pip> pacman
cakehero has quit [Quit: Computer has gone to sleep.]
<atmosx> ruby trough package managers always gave me troubles
<atmosx> I use rvm or manually install --prefix=/usr/local/ to avoid troubles...
<atmosx> rvm has the + to avoid sudo-ing for installing gems
workmad3 has quit [Ping timeout: 255 seconds]
<atmosx> or "certain gems"
<atmosx> like sqlite3
<havenn_> I <3 ruby-build. RVM or chruby + ruby-build are a good way for painlessness!
axl_ has quit [Quit: axl_]
cakehero has joined #ruby
mda_ has joined #ruby
<atmosx> I consider rvm painless, but … the important thing is to build your environment and be able to work with it apparently
<reactormonk> havenn_, just use an OS with sane packages ;-)
Retistic has joined #ruby
<atmosx> no one cares about your config
<postmodern> Pip, interesting, i wonder if the pacman build is different from vanila ruby?
<havenn_> reactormonk: Or that. >.>
<Pip> postmodern, there is gem built-in
<atmosx> postmodern: yeah, 99% it's patched and stacked etc.
diffgeorge has joined #ruby
<havenn_> postmodern: I'm pimping chruby, btw. Too elegant to be unknown!
<reactormonk> postmodern, I think the only non-standard stuff is the /etc/gemrc
slamice has joined #ruby
<mda_> Is there a more low-level version of inspect() to look at the underlying datastructures of an object? For example, a floating point number.
<postmodern> Pip, 1.9.x has rubygems built-in, plus a few pre-installed gems, bigdecimal, io-console, rake, etc
<Pip> postmodern, http://ideone.com/FrvEYh
<atmosx> drb
<postmodern> havenn_, thank you <3
<atmosx> Pip: plz change your nickname… you use bash right?
<havenn_> Pip: As long as you are using ruby-1.9.2+ you are good. If it a *real* install not some mediocre fail package.
<atmosx> tab-completion wont' work and it's annoying
osvico has quit [Ping timeout: 256 seconds]
<havenn_> ^
thone_ has quit [Ping timeout: 260 seconds]
<postmodern> Pip, ok I'm guessing they did the same thing that Fedora did, and forced gems to be installed into ~/.gem/...
<havenn_> pipopopo != Pip
<Pip> atmosx, yes, bash, so?
<postmodern> Pip, but forgot to add ~/.gem/.../bin to $PATH
<atmosx> did you try to add the path to bash?
<postmodern> Pip, Fedora did something like this, but had executables go into ~/bin/ instead
<Pip> --user-install is the default gem option
<atmosx> like export GEM_PATH= ...
<Pip> that's why
<postmodern> Pip, bingo
ninegrid has quit [Read error: Connection reset by peer]
<mda_> anyone?
nari has quit [Ping timeout: 245 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
<postmodern> Pip, yeah just add that bin/ path to PATH in your .bashrc
<reactormonk> mda_, nope
<mda_> reactormonk: what if I write a C plugin?
<atmosx> mda_: lookign at the code won't help?
diffgeorge has quit [Quit: diffgeorge]
piotr__ has quit [Ping timeout: 264 seconds]
<Pip> postmodern, there is no .gem/ruby/1.9.1/bin here
<Pip> the bin folder doesn't exist
redbull has joined #ruby
kirun has quit [Quit: Client exiting]
<postmodern> Pip, add it anyways
<atmosx> seriously, won't do yourself a favor and install rvm or … whateveR?
<mda_> The reason I'm curious is because Python doesn't implement floating point rounding or summation correctly....math.fsum([0.1,0.1,0.1]) stores an errant bit in the significand (mantissa), but str() discards it. Ruby's inspect just shows the correct answer.
<postmodern> Pip, as soon as you install a gem with a bin/ script, the dir will be created
<Pip> postmodern, wirble doesn't work for me here
<Pip> even I created .irbrc
<atmosx> mda_: I wish I could follow you, but I don't understand what do you mean by errant bit